@blackglory/match 0.3.3
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.
- package/CHANGELOG.md +62 -0
- package/LICENSE +21 -0
- package/README.md +273 -0
- package/dist/es2015/index.min.mjs +2 -0
- package/dist/es2015/index.min.mjs.map +1 -0
- package/dist/es2015/index.mjs +3918 -0
- package/dist/es2015/index.mjs.map +1 -0
- package/dist/es2015/index.umd.js +3944 -0
- package/dist/es2015/index.umd.js.map +1 -0
- package/dist/es2015/index.umd.min.js +2 -0
- package/dist/es2015/index.umd.min.js.map +1 -0
- package/dist/es2018/index.min.mjs +2 -0
- package/dist/es2018/index.min.mjs.map +1 -0
- package/dist/es2018/index.mjs +3926 -0
- package/dist/es2018/index.mjs.map +1 -0
- package/dist/es2018/index.umd.js +3952 -0
- package/dist/es2018/index.umd.js.map +1 -0
- package/dist/es2018/index.umd.min.js +2 -0
- package/dist/es2018/index.umd.min.js.map +1 -0
- package/lib/es2015/index.d.ts +17 -0
- package/lib/es2015/index.js +38 -0
- package/lib/es2015/index.js.map +1 -0
- package/lib/es2015/match-element.d.ts +4 -0
- package/lib/es2015/match-element.js +22 -0
- package/lib/es2015/match-element.js.map +1 -0
- package/lib/es2015/match.d.ts +4 -0
- package/lib/es2015/match.js +22 -0
- package/lib/es2015/match.js.map +1 -0
- package/lib/es2015/matchers/any-of.d.ts +6 -0
- package/lib/es2015/matchers/any-of.js +10 -0
- package/lib/es2015/matchers/any-of.js.map +1 -0
- package/lib/es2015/matchers/child-nodes.d.ts +2 -0
- package/lib/es2015/matchers/child-nodes.js +23 -0
- package/lib/es2015/matchers/child-nodes.js.map +1 -0
- package/lib/es2015/matchers/children.d.ts +2 -0
- package/lib/es2015/matchers/children.js +23 -0
- package/lib/es2015/matchers/children.js.map +1 -0
- package/lib/es2015/matchers/css.d.ts +3 -0
- package/lib/es2015/matchers/css.js +18 -0
- package/lib/es2015/matchers/css.js.map +1 -0
- package/lib/es2015/matchers/element.d.ts +4 -0
- package/lib/es2015/matchers/element.js +34 -0
- package/lib/es2015/matchers/element.js.map +1 -0
- package/lib/es2015/matchers/multiple.d.ts +10 -0
- package/lib/es2015/matchers/multiple.js +42 -0
- package/lib/es2015/matchers/multiple.js.map +1 -0
- package/lib/es2015/matchers/node.d.ts +4 -0
- package/lib/es2015/matchers/node.js +31 -0
- package/lib/es2015/matchers/node.js.map +1 -0
- package/lib/es2015/matchers/optional.d.ts +2 -0
- package/lib/es2015/matchers/optional.js +9 -0
- package/lib/es2015/matchers/optional.js.map +1 -0
- package/lib/es2015/matchers/repeat.d.ts +2 -0
- package/lib/es2015/matchers/repeat.js +20 -0
- package/lib/es2015/matchers/repeat.js.map +1 -0
- package/lib/es2015/matchers/tap.d.ts +2 -0
- package/lib/es2015/matchers/tap.js +12 -0
- package/lib/es2015/matchers/tap.js.map +1 -0
- package/lib/es2015/matchers/text-content-equals.d.ts +7 -0
- package/lib/es2015/matchers/text-content-equals.js +20 -0
- package/lib/es2015/matchers/text-content-equals.js.map +1 -0
- package/lib/es2015/matchers/text-content-includes.d.ts +7 -0
- package/lib/es2015/matchers/text-content-includes.js +20 -0
- package/lib/es2015/matchers/text-content-includes.js.map +1 -0
- package/lib/es2015/matchers/text-content-matches.d.ts +6 -0
- package/lib/es2015/matchers/text-content-matches.js +16 -0
- package/lib/es2015/matchers/text-content-matches.js.map +1 -0
- package/lib/es2015/matchers/text-node.d.ts +4 -0
- package/lib/es2015/matchers/text-node.js +34 -0
- package/lib/es2015/matchers/text-node.js.map +1 -0
- package/lib/es2015/matchers/xpath.d.ts +3 -0
- package/lib/es2015/matchers/xpath.js +34 -0
- package/lib/es2015/matchers/xpath.js.map +1 -0
- package/lib/es2015/types.d.ts +18 -0
- package/lib/es2015/types.js +3 -0
- package/lib/es2015/types.js.map +1 -0
- package/lib/es2015/utils/concat.d.ts +1 -0
- package/lib/es2015/utils/concat.js +14 -0
- package/lib/es2015/utils/concat.js.map +1 -0
- package/lib/es2015/utils/match-multiple.d.ts +2 -0
- package/lib/es2015/utils/match-multiple.js +21 -0
- package/lib/es2015/utils/match-multiple.js.map +1 -0
- package/lib/es2015/utils/match-one-by-one.d.ts +2 -0
- package/lib/es2015/utils/match-one-by-one.js +38 -0
- package/lib/es2015/utils/match-one-by-one.js.map +1 -0
- package/lib/es2015/utils/merge.d.ts +5 -0
- package/lib/es2015/utils/merge.js +30 -0
- package/lib/es2015/utils/merge.js.map +1 -0
- package/lib/es2015/utils/next-element-sibling.d.ts +1 -0
- package/lib/es2015/utils/next-element-sibling.js +11 -0
- package/lib/es2015/utils/next-element-sibling.js.map +1 -0
- package/lib/es2015/utils/next-sibling.d.ts +1 -0
- package/lib/es2015/utils/next-sibling.js +11 -0
- package/lib/es2015/utils/next-sibling.js.map +1 -0
- package/lib/es2018/index.d.ts +17 -0
- package/lib/es2018/index.js +38 -0
- package/lib/es2018/index.js.map +1 -0
- package/lib/es2018/match-element.d.ts +4 -0
- package/lib/es2018/match-element.js +22 -0
- package/lib/es2018/match-element.js.map +1 -0
- package/lib/es2018/match.d.ts +4 -0
- package/lib/es2018/match.js +22 -0
- package/lib/es2018/match.js.map +1 -0
- package/lib/es2018/matchers/any-of.d.ts +6 -0
- package/lib/es2018/matchers/any-of.js +10 -0
- package/lib/es2018/matchers/any-of.js.map +1 -0
- package/lib/es2018/matchers/child-nodes.d.ts +2 -0
- package/lib/es2018/matchers/child-nodes.js +27 -0
- package/lib/es2018/matchers/child-nodes.js.map +1 -0
- package/lib/es2018/matchers/children.d.ts +2 -0
- package/lib/es2018/matchers/children.js +27 -0
- package/lib/es2018/matchers/children.js.map +1 -0
- package/lib/es2018/matchers/css.d.ts +3 -0
- package/lib/es2018/matchers/css.js +18 -0
- package/lib/es2018/matchers/css.js.map +1 -0
- package/lib/es2018/matchers/element.d.ts +4 -0
- package/lib/es2018/matchers/element.js +34 -0
- package/lib/es2018/matchers/element.js.map +1 -0
- package/lib/es2018/matchers/multiple.d.ts +10 -0
- package/lib/es2018/matchers/multiple.js +42 -0
- package/lib/es2018/matchers/multiple.js.map +1 -0
- package/lib/es2018/matchers/node.d.ts +4 -0
- package/lib/es2018/matchers/node.js +31 -0
- package/lib/es2018/matchers/node.js.map +1 -0
- package/lib/es2018/matchers/optional.d.ts +2 -0
- package/lib/es2018/matchers/optional.js +9 -0
- package/lib/es2018/matchers/optional.js.map +1 -0
- package/lib/es2018/matchers/repeat.d.ts +2 -0
- package/lib/es2018/matchers/repeat.js +20 -0
- package/lib/es2018/matchers/repeat.js.map +1 -0
- package/lib/es2018/matchers/tap.d.ts +2 -0
- package/lib/es2018/matchers/tap.js +12 -0
- package/lib/es2018/matchers/tap.js.map +1 -0
- package/lib/es2018/matchers/text-content-equals.d.ts +7 -0
- package/lib/es2018/matchers/text-content-equals.js +20 -0
- package/lib/es2018/matchers/text-content-equals.js.map +1 -0
- package/lib/es2018/matchers/text-content-includes.d.ts +7 -0
- package/lib/es2018/matchers/text-content-includes.js +20 -0
- package/lib/es2018/matchers/text-content-includes.js.map +1 -0
- package/lib/es2018/matchers/text-content-matches.d.ts +6 -0
- package/lib/es2018/matchers/text-content-matches.js +16 -0
- package/lib/es2018/matchers/text-content-matches.js.map +1 -0
- package/lib/es2018/matchers/text-node.d.ts +4 -0
- package/lib/es2018/matchers/text-node.js +34 -0
- package/lib/es2018/matchers/text-node.js.map +1 -0
- package/lib/es2018/matchers/xpath.d.ts +3 -0
- package/lib/es2018/matchers/xpath.js +34 -0
- package/lib/es2018/matchers/xpath.js.map +1 -0
- package/lib/es2018/types.d.ts +18 -0
- package/lib/es2018/types.js +3 -0
- package/lib/es2018/types.js.map +1 -0
- package/lib/es2018/utils/concat.d.ts +1 -0
- package/lib/es2018/utils/concat.js +14 -0
- package/lib/es2018/utils/concat.js.map +1 -0
- package/lib/es2018/utils/match-multiple.d.ts +2 -0
- package/lib/es2018/utils/match-multiple.js +21 -0
- package/lib/es2018/utils/match-multiple.js.map +1 -0
- package/lib/es2018/utils/match-one-by-one.d.ts +2 -0
- package/lib/es2018/utils/match-one-by-one.js +38 -0
- package/lib/es2018/utils/match-one-by-one.js.map +1 -0
- package/lib/es2018/utils/merge.d.ts +5 -0
- package/lib/es2018/utils/merge.js +30 -0
- package/lib/es2018/utils/merge.js.map +1 -0
- package/lib/es2018/utils/next-element-sibling.d.ts +1 -0
- package/lib/es2018/utils/next-element-sibling.js +11 -0
- package/lib/es2018/utils/next-element-sibling.js.map +1 -0
- package/lib/es2018/utils/next-sibling.d.ts +1 -0
- package/lib/es2018/utils/next-sibling.js +11 -0
- package/lib/es2018/utils/next-sibling.js.map +1 -0
- package/package.json +78 -0
|
@@ -0,0 +1,3944 @@
|
|
|
1
|
+
(function (global, factory) {
|
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
|
|
3
|
+
typeof define === 'function' && define.amd ? define(['exports'], factory) :
|
|
4
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.Match = {}));
|
|
5
|
+
})(this, (function (exports) { 'use strict';
|
|
6
|
+
|
|
7
|
+
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
8
|
+
|
|
9
|
+
var es2018$6 = {};
|
|
10
|
+
|
|
11
|
+
var flatMap$1 = {};
|
|
12
|
+
|
|
13
|
+
var utils$1 = {};
|
|
14
|
+
|
|
15
|
+
utils$1.copyNodesToChildNodes = utils$1.cloneNodes = utils$1.clone = void 0;
|
|
16
|
+
function clone(node) {
|
|
17
|
+
return node.cloneNode(true);
|
|
18
|
+
}
|
|
19
|
+
utils$1.clone = clone;
|
|
20
|
+
function cloneNodes(nodes) {
|
|
21
|
+
return nodes.map(x => clone(x));
|
|
22
|
+
}
|
|
23
|
+
utils$1.cloneNodes = cloneNodes;
|
|
24
|
+
function copyNodesToChildNodes(nodes, node) {
|
|
25
|
+
nodes.forEach(x => node.appendChild(x));
|
|
26
|
+
}
|
|
27
|
+
utils$1.copyNodesToChildNodes = copyNodesToChildNodes;
|
|
28
|
+
|
|
29
|
+
var removeAllChildren$1 = {};
|
|
30
|
+
|
|
31
|
+
removeAllChildren$1.removeAllChildren = void 0;
|
|
32
|
+
function removeAllChildren(node) {
|
|
33
|
+
while (node.firstChild) {
|
|
34
|
+
node.removeChild(node.firstChild);
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
removeAllChildren$1.removeAllChildren = removeAllChildren;
|
|
38
|
+
|
|
39
|
+
flatMap$1.flatMap = void 0;
|
|
40
|
+
const utils_1$5 = utils$1;
|
|
41
|
+
const remove_all_children_1 = removeAllChildren$1;
|
|
42
|
+
function flatMap(node, fn) {
|
|
43
|
+
const newNodes = (0, utils_1$5.cloneNodes)(fn((0, utils_1$5.clone)(node)));
|
|
44
|
+
return newNodes.map(node => {
|
|
45
|
+
const newChildNodes = [];
|
|
46
|
+
for (const childNode of node.childNodes) {
|
|
47
|
+
newChildNodes.push(...(0, utils_1$5.cloneNodes)(flatMap(childNode, fn)));
|
|
48
|
+
}
|
|
49
|
+
(0, remove_all_children_1.removeAllChildren)(node);
|
|
50
|
+
(0, utils_1$5.copyNodesToChildNodes)(newChildNodes, node);
|
|
51
|
+
return node;
|
|
52
|
+
});
|
|
53
|
+
}
|
|
54
|
+
flatMap$1.flatMap = flatMap;
|
|
55
|
+
|
|
56
|
+
var map$3 = {};
|
|
57
|
+
|
|
58
|
+
map$3.map = void 0;
|
|
59
|
+
const utils_1$4 = utils$1;
|
|
60
|
+
function map$2(node, fn) {
|
|
61
|
+
const newNode = (0, utils_1$4.clone)(fn((0, utils_1$4.clone)(node)));
|
|
62
|
+
for (const node of newNode.childNodes) {
|
|
63
|
+
newNode.replaceChild(map$2(node, fn), node);
|
|
64
|
+
}
|
|
65
|
+
return newNode;
|
|
66
|
+
}
|
|
67
|
+
map$3.map = map$2;
|
|
68
|
+
|
|
69
|
+
var filter$3 = {};
|
|
70
|
+
|
|
71
|
+
filter$3.filter = void 0;
|
|
72
|
+
const flat_map_1$1 = flatMap$1;
|
|
73
|
+
function filter$2(node, predicate) {
|
|
74
|
+
const results = (0, flat_map_1$1.flatMap)(node, node => {
|
|
75
|
+
if (predicate(node)) {
|
|
76
|
+
return [node];
|
|
77
|
+
}
|
|
78
|
+
else {
|
|
79
|
+
return [];
|
|
80
|
+
}
|
|
81
|
+
});
|
|
82
|
+
if (results.length === 1)
|
|
83
|
+
return results[0];
|
|
84
|
+
return undefined;
|
|
85
|
+
}
|
|
86
|
+
filter$3.filter = filter$2;
|
|
87
|
+
|
|
88
|
+
var unwrap$1 = {};
|
|
89
|
+
|
|
90
|
+
var es2018$5 = {};
|
|
91
|
+
|
|
92
|
+
var middleware = {};
|
|
93
|
+
|
|
94
|
+
var chunkAsync$1 = {};
|
|
95
|
+
|
|
96
|
+
var es2018$4 = {};
|
|
97
|
+
|
|
98
|
+
var go$1 = {};
|
|
99
|
+
|
|
100
|
+
go$1.go = void 0;
|
|
101
|
+
function go(fn) {
|
|
102
|
+
return fn();
|
|
103
|
+
}
|
|
104
|
+
go$1.go = go;
|
|
105
|
+
|
|
106
|
+
(function (exports) {
|
|
107
|
+
var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
108
|
+
if (k2 === undefined) k2 = k;
|
|
109
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
110
|
+
}) : (function(o, m, k, k2) {
|
|
111
|
+
if (k2 === undefined) k2 = k;
|
|
112
|
+
o[k2] = m[k];
|
|
113
|
+
}));
|
|
114
|
+
var __exportStar = (commonjsGlobal && commonjsGlobal.__exportStar) || function(m, exports) {
|
|
115
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
116
|
+
};__exportStar(go$1, exports);
|
|
117
|
+
|
|
118
|
+
}(es2018$4));
|
|
119
|
+
|
|
120
|
+
var es2018$3 = {};
|
|
121
|
+
|
|
122
|
+
var customError = {};
|
|
123
|
+
|
|
124
|
+
customError.CustomError = void 0;
|
|
125
|
+
class CustomError extends Error {
|
|
126
|
+
get name() {
|
|
127
|
+
return this.constructor.name;
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
customError.CustomError = CustomError;
|
|
131
|
+
|
|
132
|
+
var expectedError = {};
|
|
133
|
+
|
|
134
|
+
expectedError.ExpectedError = void 0;
|
|
135
|
+
const custom_error_1$1 = customError;
|
|
136
|
+
class ExpectedError extends custom_error_1$1.CustomError {
|
|
137
|
+
}
|
|
138
|
+
expectedError.ExpectedError = ExpectedError;
|
|
139
|
+
|
|
140
|
+
var assertionError = {};
|
|
141
|
+
|
|
142
|
+
assertionError.AssertionError = void 0;
|
|
143
|
+
const custom_error_1 = customError;
|
|
144
|
+
class AssertionError extends custom_error_1.CustomError {
|
|
145
|
+
}
|
|
146
|
+
assertionError.AssertionError = AssertionError;
|
|
147
|
+
|
|
148
|
+
var normalize$3 = {};
|
|
149
|
+
|
|
150
|
+
normalize$3.normalize = void 0;
|
|
151
|
+
function normalize$2(err) {
|
|
152
|
+
var _a;
|
|
153
|
+
return {
|
|
154
|
+
name: err.name,
|
|
155
|
+
message: err.message,
|
|
156
|
+
stack: (_a = err.stack) !== null && _a !== void 0 ? _a : null
|
|
157
|
+
};
|
|
158
|
+
}
|
|
159
|
+
normalize$3.normalize = normalize$2;
|
|
160
|
+
|
|
161
|
+
var refute$1 = {};
|
|
162
|
+
|
|
163
|
+
refute$1.refute = void 0;
|
|
164
|
+
const expected_error_1 = expectedError;
|
|
165
|
+
function refute(condition, message) {
|
|
166
|
+
if (condition)
|
|
167
|
+
throw new expected_error_1.ExpectedError(message);
|
|
168
|
+
}
|
|
169
|
+
refute$1.refute = refute;
|
|
170
|
+
|
|
171
|
+
var assert$1 = {};
|
|
172
|
+
|
|
173
|
+
assert$1.assert = void 0;
|
|
174
|
+
const assertion_error_1 = assertionError;
|
|
175
|
+
function assert(condition, message) {
|
|
176
|
+
if (!condition)
|
|
177
|
+
throw new assertion_error_1.AssertionError(message);
|
|
178
|
+
}
|
|
179
|
+
assert$1.assert = assert;
|
|
180
|
+
|
|
181
|
+
(function (exports) {
|
|
182
|
+
var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
183
|
+
if (k2 === undefined) k2 = k;
|
|
184
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
185
|
+
}) : (function(o, m, k, k2) {
|
|
186
|
+
if (k2 === undefined) k2 = k;
|
|
187
|
+
o[k2] = m[k];
|
|
188
|
+
}));
|
|
189
|
+
var __exportStar = (commonjsGlobal && commonjsGlobal.__exportStar) || function(m, exports) {
|
|
190
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
191
|
+
};__exportStar(customError, exports);
|
|
192
|
+
__exportStar(expectedError, exports);
|
|
193
|
+
__exportStar(assertionError, exports);
|
|
194
|
+
__exportStar(normalize$3, exports);
|
|
195
|
+
__exportStar(refute$1, exports);
|
|
196
|
+
__exportStar(assert$1, exports);
|
|
197
|
+
|
|
198
|
+
}(es2018$3));
|
|
199
|
+
|
|
200
|
+
chunkAsync$1.chunkAsync = void 0;
|
|
201
|
+
const go_1$f = es2018$4;
|
|
202
|
+
const errors_1$m = es2018$3;
|
|
203
|
+
function chunkAsync(iterable, size) {
|
|
204
|
+
(0, errors_1$m.assert)(Number.isInteger(size), 'The parameter size must be an integer');
|
|
205
|
+
(0, errors_1$m.assert)(size > 0, 'The parameter size must be greater than 0');
|
|
206
|
+
return (0, go_1$f.go)(async function* () {
|
|
207
|
+
let buffer = [];
|
|
208
|
+
for await (const element of iterable) {
|
|
209
|
+
buffer.push(element);
|
|
210
|
+
if (buffer.length >= size) {
|
|
211
|
+
yield buffer;
|
|
212
|
+
buffer = [];
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
if (buffer.length)
|
|
216
|
+
yield buffer;
|
|
217
|
+
});
|
|
218
|
+
}
|
|
219
|
+
chunkAsync$1.chunkAsync = chunkAsync;
|
|
220
|
+
|
|
221
|
+
var chunkByAsync$1 = {};
|
|
222
|
+
|
|
223
|
+
var es2018$2 = {};
|
|
224
|
+
|
|
225
|
+
var array = {};
|
|
226
|
+
|
|
227
|
+
array.isntEmptyArray = array.isEmptyArray = array.isntArray = array.isArray = void 0;
|
|
228
|
+
function isArray(val) {
|
|
229
|
+
return Array.isArray(val);
|
|
230
|
+
}
|
|
231
|
+
array.isArray = isArray;
|
|
232
|
+
function isntArray(val) {
|
|
233
|
+
return !isArray(val);
|
|
234
|
+
}
|
|
235
|
+
array.isntArray = isntArray;
|
|
236
|
+
function isEmptyArray(val) {
|
|
237
|
+
return val.length === 0;
|
|
238
|
+
}
|
|
239
|
+
array.isEmptyArray = isEmptyArray;
|
|
240
|
+
function isntEmptyArray(val) {
|
|
241
|
+
return val.length !== 0;
|
|
242
|
+
}
|
|
243
|
+
array.isntEmptyArray = isntEmptyArray;
|
|
244
|
+
|
|
245
|
+
var asyncIterable = {};
|
|
246
|
+
|
|
247
|
+
var _null = {};
|
|
248
|
+
|
|
249
|
+
_null.isntNull = _null.isNull = void 0;
|
|
250
|
+
function isNull(val) {
|
|
251
|
+
return val === null;
|
|
252
|
+
}
|
|
253
|
+
_null.isNull = isNull;
|
|
254
|
+
function isntNull(val) {
|
|
255
|
+
return !isNull(val);
|
|
256
|
+
}
|
|
257
|
+
_null.isntNull = isntNull;
|
|
258
|
+
|
|
259
|
+
var _undefined = {};
|
|
260
|
+
|
|
261
|
+
_undefined.isntUndefined = _undefined.isUndefined = void 0;
|
|
262
|
+
function isUndefined(val) {
|
|
263
|
+
return val === undefined;
|
|
264
|
+
}
|
|
265
|
+
_undefined.isUndefined = isUndefined;
|
|
266
|
+
function isntUndefined(val) {
|
|
267
|
+
return !isUndefined(val);
|
|
268
|
+
}
|
|
269
|
+
_undefined.isntUndefined = isntUndefined;
|
|
270
|
+
|
|
271
|
+
asyncIterable.isntAsyncIterable = asyncIterable.isAsyncIterable = void 0;
|
|
272
|
+
const null_1$1 = _null;
|
|
273
|
+
const undefined_1$2 = _undefined;
|
|
274
|
+
function isAsyncIterable(val) {
|
|
275
|
+
return (0, null_1$1.isntNull)(val)
|
|
276
|
+
&& (0, undefined_1$2.isntUndefined)(val)
|
|
277
|
+
&& typeof val[Symbol.asyncIterator] === 'function';
|
|
278
|
+
}
|
|
279
|
+
asyncIterable.isAsyncIterable = isAsyncIterable;
|
|
280
|
+
function isntAsyncIterable(val) {
|
|
281
|
+
return !isAsyncIterable(val);
|
|
282
|
+
}
|
|
283
|
+
asyncIterable.isntAsyncIterable = isntAsyncIterable;
|
|
284
|
+
|
|
285
|
+
var bigint = {};
|
|
286
|
+
|
|
287
|
+
bigint.isntBigInt = bigint.isBigInt = void 0;
|
|
288
|
+
function isBigInt(val) {
|
|
289
|
+
return typeof val === 'bigint';
|
|
290
|
+
}
|
|
291
|
+
bigint.isBigInt = isBigInt;
|
|
292
|
+
function isntBigInt(val) {
|
|
293
|
+
return !isBigInt(val);
|
|
294
|
+
}
|
|
295
|
+
bigint.isntBigInt = isntBigInt;
|
|
296
|
+
|
|
297
|
+
var boolean = {};
|
|
298
|
+
|
|
299
|
+
boolean.isntBoolean = boolean.isBoolean = void 0;
|
|
300
|
+
function isBoolean(val) {
|
|
301
|
+
return typeof val === 'boolean';
|
|
302
|
+
}
|
|
303
|
+
boolean.isBoolean = isBoolean;
|
|
304
|
+
function isntBoolean(val) {
|
|
305
|
+
return !isBoolean(val);
|
|
306
|
+
}
|
|
307
|
+
boolean.isntBoolean = isntBoolean;
|
|
308
|
+
|
|
309
|
+
var char = {};
|
|
310
|
+
|
|
311
|
+
var string = {};
|
|
312
|
+
|
|
313
|
+
string.isntString = string.isString = void 0;
|
|
314
|
+
function isString(val) {
|
|
315
|
+
return typeof val === 'string';
|
|
316
|
+
}
|
|
317
|
+
string.isString = isString;
|
|
318
|
+
function isntString(val) {
|
|
319
|
+
return !isString(val);
|
|
320
|
+
}
|
|
321
|
+
string.isntString = isntString;
|
|
322
|
+
|
|
323
|
+
char.isntChar = char.isChar = void 0;
|
|
324
|
+
const string_1$1 = string;
|
|
325
|
+
function isChar(val) {
|
|
326
|
+
return (0, string_1$1.isString)(val)
|
|
327
|
+
&& val.length === 1;
|
|
328
|
+
}
|
|
329
|
+
char.isChar = isChar;
|
|
330
|
+
function isntChar(val) {
|
|
331
|
+
return !isChar(val);
|
|
332
|
+
}
|
|
333
|
+
char.isntChar = isntChar;
|
|
334
|
+
|
|
335
|
+
var date = {};
|
|
336
|
+
|
|
337
|
+
date.isntDate = date.isDate = void 0;
|
|
338
|
+
function isDate(val) {
|
|
339
|
+
return val instanceof Date;
|
|
340
|
+
}
|
|
341
|
+
date.isDate = isDate;
|
|
342
|
+
function isntDate(val) {
|
|
343
|
+
return !isDate(val);
|
|
344
|
+
}
|
|
345
|
+
date.isntDate = isntDate;
|
|
346
|
+
|
|
347
|
+
var _enum = {};
|
|
348
|
+
|
|
349
|
+
_enum.inEnum = void 0;
|
|
350
|
+
function inEnum(val, _enum) {
|
|
351
|
+
return Object.values(_enum).includes(val);
|
|
352
|
+
}
|
|
353
|
+
_enum.inEnum = inEnum;
|
|
354
|
+
|
|
355
|
+
var error = {};
|
|
356
|
+
|
|
357
|
+
error.isntError = error.isError = void 0;
|
|
358
|
+
function isError(val) {
|
|
359
|
+
return val instanceof Error;
|
|
360
|
+
}
|
|
361
|
+
error.isError = isError;
|
|
362
|
+
function isntError(val) {
|
|
363
|
+
return !isError(val);
|
|
364
|
+
}
|
|
365
|
+
error.isntError = isntError;
|
|
366
|
+
|
|
367
|
+
var falsy = {};
|
|
368
|
+
|
|
369
|
+
falsy.isntFalsy = falsy.isFalsy = void 0;
|
|
370
|
+
function isFalsy(val) {
|
|
371
|
+
return !val;
|
|
372
|
+
}
|
|
373
|
+
falsy.isFalsy = isFalsy;
|
|
374
|
+
function isntFalsy(val) {
|
|
375
|
+
return !isFalsy(val);
|
|
376
|
+
}
|
|
377
|
+
falsy.isntFalsy = isntFalsy;
|
|
378
|
+
|
|
379
|
+
var _function = {};
|
|
380
|
+
|
|
381
|
+
_function.isntFunction = _function.isFunction = void 0;
|
|
382
|
+
function isFunction(val) {
|
|
383
|
+
return typeof val === 'function';
|
|
384
|
+
}
|
|
385
|
+
_function.isFunction = isFunction;
|
|
386
|
+
function isntFunction(val) {
|
|
387
|
+
return !isFunction(val);
|
|
388
|
+
}
|
|
389
|
+
_function.isntFunction = isntFunction;
|
|
390
|
+
|
|
391
|
+
var iterable = {};
|
|
392
|
+
|
|
393
|
+
iterable.isntIterable = iterable.isIterable = void 0;
|
|
394
|
+
const null_1 = _null;
|
|
395
|
+
const undefined_1$1 = _undefined;
|
|
396
|
+
function isIterable(val) {
|
|
397
|
+
return (0, null_1.isntNull)(val)
|
|
398
|
+
&& (0, undefined_1$1.isntUndefined)(val)
|
|
399
|
+
&& typeof val[Symbol.iterator] === 'function';
|
|
400
|
+
}
|
|
401
|
+
iterable.isIterable = isIterable;
|
|
402
|
+
function isntIterable(val) {
|
|
403
|
+
return !isIterable(val);
|
|
404
|
+
}
|
|
405
|
+
iterable.isntIterable = isntIterable;
|
|
406
|
+
|
|
407
|
+
var jsonRpc = {};
|
|
408
|
+
|
|
409
|
+
var object = {};
|
|
410
|
+
|
|
411
|
+
object.isntEmptyObject = object.isEmptyObject = object.isRecord = object.isntObject = object.isObject = void 0;
|
|
412
|
+
function isObject$1(val) {
|
|
413
|
+
return val !== null && typeof val === 'object';
|
|
414
|
+
}
|
|
415
|
+
object.isObject = isObject$1;
|
|
416
|
+
function isntObject(val) {
|
|
417
|
+
return !isObject$1(val);
|
|
418
|
+
}
|
|
419
|
+
object.isntObject = isntObject;
|
|
420
|
+
function isRecord(val) {
|
|
421
|
+
return isObject$1(val);
|
|
422
|
+
}
|
|
423
|
+
object.isRecord = isRecord;
|
|
424
|
+
function isEmptyObject(val) {
|
|
425
|
+
return Object.keys(val).length === 0;
|
|
426
|
+
}
|
|
427
|
+
object.isEmptyObject = isEmptyObject;
|
|
428
|
+
function isntEmptyObject(val) {
|
|
429
|
+
return Object.keys(val).length !== 0;
|
|
430
|
+
}
|
|
431
|
+
object.isntEmptyObject = isntEmptyObject;
|
|
432
|
+
|
|
433
|
+
var number = {};
|
|
434
|
+
|
|
435
|
+
number.isntNumber = number.isNumber = void 0;
|
|
436
|
+
function isNumber(val) {
|
|
437
|
+
return typeof val === 'number';
|
|
438
|
+
}
|
|
439
|
+
number.isNumber = isNumber;
|
|
440
|
+
function isntNumber(val) {
|
|
441
|
+
return !isNumber(val);
|
|
442
|
+
}
|
|
443
|
+
number.isntNumber = isntNumber;
|
|
444
|
+
|
|
445
|
+
jsonRpc.isntJsonRpcError = jsonRpc.isJsonRpcError = jsonRpc.isntJsonRpcSuccess = jsonRpc.isJsonRpcSuccess = jsonRpc.isntJsonRpcRequest = jsonRpc.isJsonRpcRequest = jsonRpc.isntJsonRpcNotification = jsonRpc.isJsonRpcNotification = void 0;
|
|
446
|
+
const array_1 = array;
|
|
447
|
+
const object_1 = object;
|
|
448
|
+
const string_1 = string;
|
|
449
|
+
const number_1 = number;
|
|
450
|
+
const undefined_1 = _undefined;
|
|
451
|
+
function isJsonRpcId(val) {
|
|
452
|
+
return (0, string_1.isString)(val) || (0, number_1.isNumber)(val);
|
|
453
|
+
}
|
|
454
|
+
function isJsonRpcParams(val) {
|
|
455
|
+
return (0, array_1.isArray)(val) || (0, object_1.isObject)(val);
|
|
456
|
+
}
|
|
457
|
+
function isJsonRpcNotification(val) {
|
|
458
|
+
return (0, object_1.isRecord)(val)
|
|
459
|
+
&& (0, string_1.isString)(val.jsonrpc)
|
|
460
|
+
&& (0, string_1.isString)(val.method)
|
|
461
|
+
&& (0, undefined_1.isUndefined)(val.id)
|
|
462
|
+
&& isJsonRpcParams(val.params);
|
|
463
|
+
}
|
|
464
|
+
jsonRpc.isJsonRpcNotification = isJsonRpcNotification;
|
|
465
|
+
function isntJsonRpcNotification(val) {
|
|
466
|
+
return !isJsonRpcNotification(val);
|
|
467
|
+
}
|
|
468
|
+
jsonRpc.isntJsonRpcNotification = isntJsonRpcNotification;
|
|
469
|
+
function isJsonRpcRequest(val) {
|
|
470
|
+
return (0, object_1.isRecord)(val)
|
|
471
|
+
&& (0, string_1.isString)(val.jsonrpc)
|
|
472
|
+
&& (0, string_1.isString)(val.method)
|
|
473
|
+
&& isJsonRpcId(val.id)
|
|
474
|
+
&& isJsonRpcParams(val.params);
|
|
475
|
+
}
|
|
476
|
+
jsonRpc.isJsonRpcRequest = isJsonRpcRequest;
|
|
477
|
+
function isntJsonRpcRequest(val) {
|
|
478
|
+
return !isJsonRpcRequest(val);
|
|
479
|
+
}
|
|
480
|
+
jsonRpc.isntJsonRpcRequest = isntJsonRpcRequest;
|
|
481
|
+
function isJsonRpcSuccess(val) {
|
|
482
|
+
return (0, object_1.isRecord)(val)
|
|
483
|
+
&& (0, string_1.isString)(val.jsonrpc)
|
|
484
|
+
&& (0, string_1.isString)(val.id)
|
|
485
|
+
&& (0, undefined_1.isntUndefined)(val.result);
|
|
486
|
+
}
|
|
487
|
+
jsonRpc.isJsonRpcSuccess = isJsonRpcSuccess;
|
|
488
|
+
function isntJsonRpcSuccess(val) {
|
|
489
|
+
return !isJsonRpcSuccess(val);
|
|
490
|
+
}
|
|
491
|
+
jsonRpc.isntJsonRpcSuccess = isntJsonRpcSuccess;
|
|
492
|
+
function isJsonRpcError(val) {
|
|
493
|
+
return (0, object_1.isRecord)(val)
|
|
494
|
+
&& (0, string_1.isString)(val.jsonrpc)
|
|
495
|
+
&& isJsonRpcId(val.id)
|
|
496
|
+
&& isJsonRpcErrorObject(val.error);
|
|
497
|
+
}
|
|
498
|
+
jsonRpc.isJsonRpcError = isJsonRpcError;
|
|
499
|
+
function isntJsonRpcError(val) {
|
|
500
|
+
return !isJsonRpcError(val);
|
|
501
|
+
}
|
|
502
|
+
jsonRpc.isntJsonRpcError = isntJsonRpcError;
|
|
503
|
+
function isJsonRpcErrorObject(val) {
|
|
504
|
+
return (0, object_1.isRecord)(val)
|
|
505
|
+
&& (0, number_1.isNumber)(val.code)
|
|
506
|
+
&& (0, string_1.isString)(val.message)
|
|
507
|
+
&& ((0, undefined_1.isUndefined)(val.data) || (0, object_1.isObject)(val.data));
|
|
508
|
+
}
|
|
509
|
+
|
|
510
|
+
var json = {};
|
|
511
|
+
|
|
512
|
+
json.isntJson = json.isJson = void 0;
|
|
513
|
+
function isJson(val) {
|
|
514
|
+
try {
|
|
515
|
+
JSON.stringify(val);
|
|
516
|
+
return true;
|
|
517
|
+
}
|
|
518
|
+
catch (_a) {
|
|
519
|
+
return false;
|
|
520
|
+
}
|
|
521
|
+
}
|
|
522
|
+
json.isJson = isJson;
|
|
523
|
+
function isntJson(val) {
|
|
524
|
+
return !isntJson();
|
|
525
|
+
}
|
|
526
|
+
json.isntJson = isntJson;
|
|
527
|
+
|
|
528
|
+
var url = {};
|
|
529
|
+
|
|
530
|
+
url.isAbsoluteURL = void 0;
|
|
531
|
+
function isAbsoluteURL(str) {
|
|
532
|
+
try {
|
|
533
|
+
new URL(str);
|
|
534
|
+
return true;
|
|
535
|
+
}
|
|
536
|
+
catch (_a) {
|
|
537
|
+
return false;
|
|
538
|
+
}
|
|
539
|
+
}
|
|
540
|
+
url.isAbsoluteURL = isAbsoluteURL;
|
|
541
|
+
|
|
542
|
+
(function (exports) {
|
|
543
|
+
var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
544
|
+
if (k2 === undefined) k2 = k;
|
|
545
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
546
|
+
}) : (function(o, m, k, k2) {
|
|
547
|
+
if (k2 === undefined) k2 = k;
|
|
548
|
+
o[k2] = m[k];
|
|
549
|
+
}));
|
|
550
|
+
var __exportStar = (commonjsGlobal && commonjsGlobal.__exportStar) || function(m, exports) {
|
|
551
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
552
|
+
};__exportStar(array, exports);
|
|
553
|
+
__exportStar(asyncIterable, exports);
|
|
554
|
+
__exportStar(bigint, exports);
|
|
555
|
+
__exportStar(boolean, exports);
|
|
556
|
+
__exportStar(char, exports);
|
|
557
|
+
__exportStar(date, exports);
|
|
558
|
+
__exportStar(_enum, exports);
|
|
559
|
+
__exportStar(error, exports);
|
|
560
|
+
__exportStar(falsy, exports);
|
|
561
|
+
__exportStar(_function, exports);
|
|
562
|
+
__exportStar(iterable, exports);
|
|
563
|
+
__exportStar(jsonRpc, exports);
|
|
564
|
+
__exportStar(json, exports);
|
|
565
|
+
__exportStar(_null, exports);
|
|
566
|
+
__exportStar(number, exports);
|
|
567
|
+
__exportStar(object, exports);
|
|
568
|
+
__exportStar(string, exports);
|
|
569
|
+
__exportStar(_undefined, exports);
|
|
570
|
+
__exportStar(url, exports);
|
|
571
|
+
|
|
572
|
+
}(es2018$2));
|
|
573
|
+
|
|
574
|
+
chunkByAsync$1.chunkByAsync = void 0;
|
|
575
|
+
const types_1$l = es2018$2;
|
|
576
|
+
function chunkByAsync(iterable, predicate) {
|
|
577
|
+
if ((0, types_1$l.isAsyncIterable)(iterable)) {
|
|
578
|
+
return chunkByAsyncIterable(iterable);
|
|
579
|
+
}
|
|
580
|
+
else {
|
|
581
|
+
return chunkByIterable(iterable);
|
|
582
|
+
}
|
|
583
|
+
async function* chunkByAsyncIterable(iterable) {
|
|
584
|
+
let buffer = [];
|
|
585
|
+
let index = 0;
|
|
586
|
+
for await (const element of iterable) {
|
|
587
|
+
buffer.push(element);
|
|
588
|
+
if (await predicate(element, index)) {
|
|
589
|
+
yield buffer;
|
|
590
|
+
buffer = [];
|
|
591
|
+
}
|
|
592
|
+
index++;
|
|
593
|
+
}
|
|
594
|
+
if (buffer.length)
|
|
595
|
+
yield buffer;
|
|
596
|
+
}
|
|
597
|
+
async function* chunkByIterable(iterable) {
|
|
598
|
+
let buffer = [];
|
|
599
|
+
let index = 0;
|
|
600
|
+
for (const element of iterable) {
|
|
601
|
+
buffer.push(element);
|
|
602
|
+
if (await predicate(element, index)) {
|
|
603
|
+
yield buffer;
|
|
604
|
+
buffer = [];
|
|
605
|
+
}
|
|
606
|
+
index++;
|
|
607
|
+
}
|
|
608
|
+
if (buffer.length)
|
|
609
|
+
yield buffer;
|
|
610
|
+
}
|
|
611
|
+
}
|
|
612
|
+
chunkByAsync$1.chunkByAsync = chunkByAsync;
|
|
613
|
+
|
|
614
|
+
var chunkBy$1 = {};
|
|
615
|
+
|
|
616
|
+
chunkBy$1.chunkBy = void 0;
|
|
617
|
+
function* chunkBy(iterable, predicate) {
|
|
618
|
+
let buffer = [];
|
|
619
|
+
let index = 0;
|
|
620
|
+
for (const element of iterable) {
|
|
621
|
+
buffer.push(element);
|
|
622
|
+
if (predicate(element, index)) {
|
|
623
|
+
yield buffer;
|
|
624
|
+
buffer = [];
|
|
625
|
+
}
|
|
626
|
+
index++;
|
|
627
|
+
}
|
|
628
|
+
if (buffer.length)
|
|
629
|
+
yield buffer;
|
|
630
|
+
}
|
|
631
|
+
chunkBy$1.chunkBy = chunkBy;
|
|
632
|
+
|
|
633
|
+
var chunk$1 = {};
|
|
634
|
+
|
|
635
|
+
chunk$1.chunk = void 0;
|
|
636
|
+
const go_1$e = es2018$4;
|
|
637
|
+
const errors_1$l = es2018$3;
|
|
638
|
+
function chunk(iterable, size) {
|
|
639
|
+
(0, errors_1$l.assert)(Number.isInteger(size), 'The parameter size must be an integer');
|
|
640
|
+
(0, errors_1$l.assert)(size > 0, 'The parameter size must be greater than 0');
|
|
641
|
+
return (0, go_1$e.go)(function* () {
|
|
642
|
+
let buffer = [];
|
|
643
|
+
for (const element of iterable) {
|
|
644
|
+
buffer.push(element);
|
|
645
|
+
if (buffer.length >= size) {
|
|
646
|
+
yield buffer;
|
|
647
|
+
buffer = [];
|
|
648
|
+
}
|
|
649
|
+
}
|
|
650
|
+
if (buffer.length)
|
|
651
|
+
yield buffer;
|
|
652
|
+
});
|
|
653
|
+
}
|
|
654
|
+
chunk$1.chunk = chunk;
|
|
655
|
+
|
|
656
|
+
var concatAsync$1 = {};
|
|
657
|
+
|
|
658
|
+
concatAsync$1.concatAsync = void 0;
|
|
659
|
+
const types_1$k = es2018$2;
|
|
660
|
+
const go_1$d = es2018$4;
|
|
661
|
+
function concatAsync(iterable, ...otherIterables) {
|
|
662
|
+
return (0, go_1$d.go)(async function* () {
|
|
663
|
+
for (const iter of [iterable, ...otherIterables]) {
|
|
664
|
+
if ((0, types_1$k.isAsyncIterable)(iter)) {
|
|
665
|
+
for await (const element of iter) {
|
|
666
|
+
yield element;
|
|
667
|
+
}
|
|
668
|
+
}
|
|
669
|
+
else {
|
|
670
|
+
for (const element of iter) {
|
|
671
|
+
yield element;
|
|
672
|
+
}
|
|
673
|
+
}
|
|
674
|
+
}
|
|
675
|
+
});
|
|
676
|
+
}
|
|
677
|
+
concatAsync$1.concatAsync = concatAsync;
|
|
678
|
+
|
|
679
|
+
var concat$2 = {};
|
|
680
|
+
|
|
681
|
+
concat$2.concat = void 0;
|
|
682
|
+
const go_1$c = es2018$4;
|
|
683
|
+
function concat$1(iterable, ...otherIterables) {
|
|
684
|
+
return (0, go_1$c.go)(function* () {
|
|
685
|
+
for (const iter of [iterable, ...otherIterables]) {
|
|
686
|
+
yield* iter;
|
|
687
|
+
}
|
|
688
|
+
});
|
|
689
|
+
}
|
|
690
|
+
concat$2.concat = concat$1;
|
|
691
|
+
|
|
692
|
+
var dropAsync$1 = {};
|
|
693
|
+
|
|
694
|
+
var utils = {};
|
|
695
|
+
|
|
696
|
+
utils.copyIterable = utils.copyAsyncIterable = void 0;
|
|
697
|
+
async function* copyAsyncIterable(iterable) {
|
|
698
|
+
for await (const element of iterable) {
|
|
699
|
+
yield element;
|
|
700
|
+
}
|
|
701
|
+
}
|
|
702
|
+
utils.copyAsyncIterable = copyAsyncIterable;
|
|
703
|
+
function* copyIterable(iterable) {
|
|
704
|
+
for (const element of iterable) {
|
|
705
|
+
yield element;
|
|
706
|
+
}
|
|
707
|
+
}
|
|
708
|
+
utils.copyIterable = copyIterable;
|
|
709
|
+
|
|
710
|
+
dropAsync$1.dropAsync = void 0;
|
|
711
|
+
const go_1$b = es2018$4;
|
|
712
|
+
const utils_1$3 = utils;
|
|
713
|
+
const errors_1$k = es2018$3;
|
|
714
|
+
function dropAsync(iterable, count) {
|
|
715
|
+
(0, errors_1$k.assert)(Number.isInteger(count), 'The parameter count must be an integer');
|
|
716
|
+
(0, errors_1$k.assert)(count >= 0, 'The parameter count must be greater than or equal to 0');
|
|
717
|
+
if (count === 0)
|
|
718
|
+
return (0, utils_1$3.copyAsyncIterable)(iterable);
|
|
719
|
+
return (0, go_1$b.go)(async function* () {
|
|
720
|
+
var _a;
|
|
721
|
+
const iterator = iterable[Symbol.asyncIterator]();
|
|
722
|
+
let done;
|
|
723
|
+
try {
|
|
724
|
+
let value;
|
|
725
|
+
while ({ value, done } = await iterator.next(), !done) {
|
|
726
|
+
if (count <= 0)
|
|
727
|
+
break;
|
|
728
|
+
count--;
|
|
729
|
+
}
|
|
730
|
+
while (!done) {
|
|
731
|
+
yield value;
|
|
732
|
+
({ value, done } = await iterator.next());
|
|
733
|
+
}
|
|
734
|
+
}
|
|
735
|
+
finally {
|
|
736
|
+
if (!done)
|
|
737
|
+
await ((_a = iterator.return) === null || _a === void 0 ? void 0 : _a.call(iterator));
|
|
738
|
+
}
|
|
739
|
+
});
|
|
740
|
+
}
|
|
741
|
+
dropAsync$1.dropAsync = dropAsync;
|
|
742
|
+
|
|
743
|
+
var dropRightAsync$1 = {};
|
|
744
|
+
|
|
745
|
+
dropRightAsync$1.dropRightAsync = void 0;
|
|
746
|
+
const go_1$a = es2018$4;
|
|
747
|
+
const utils_1$2 = utils;
|
|
748
|
+
const errors_1$j = es2018$3;
|
|
749
|
+
function dropRightAsync(iterable, count) {
|
|
750
|
+
(0, errors_1$j.assert)(Number.isInteger(count), 'The parameter count must be an integer');
|
|
751
|
+
(0, errors_1$j.assert)(count >= 0, 'The parameter count must be greater than or equal to 0');
|
|
752
|
+
if (count === 0)
|
|
753
|
+
return (0, utils_1$2.copyAsyncIterable)(iterable);
|
|
754
|
+
return (0, go_1$a.go)(async function* () {
|
|
755
|
+
const arr = await toArrayAsync$2(iterable);
|
|
756
|
+
const result = arr.slice(0, -count);
|
|
757
|
+
for (const value of result) {
|
|
758
|
+
yield value;
|
|
759
|
+
}
|
|
760
|
+
});
|
|
761
|
+
}
|
|
762
|
+
dropRightAsync$1.dropRightAsync = dropRightAsync;
|
|
763
|
+
async function toArrayAsync$2(iterable) {
|
|
764
|
+
const result = [];
|
|
765
|
+
for await (const element of iterable) {
|
|
766
|
+
result.push(element);
|
|
767
|
+
}
|
|
768
|
+
return result;
|
|
769
|
+
}
|
|
770
|
+
|
|
771
|
+
var dropRight$1 = {};
|
|
772
|
+
|
|
773
|
+
dropRight$1.dropRight = void 0;
|
|
774
|
+
const go_1$9 = es2018$4;
|
|
775
|
+
const utils_1$1 = utils;
|
|
776
|
+
const errors_1$i = es2018$3;
|
|
777
|
+
function dropRight(iterable, count) {
|
|
778
|
+
(0, errors_1$i.assert)(Number.isInteger(count), 'The parameter count must be an integer');
|
|
779
|
+
(0, errors_1$i.assert)(count >= 0, 'The parameter count must be greater than or equal to 0');
|
|
780
|
+
if (count === 0)
|
|
781
|
+
return (0, utils_1$1.copyIterable)(iterable);
|
|
782
|
+
return (0, go_1$9.go)(function* () {
|
|
783
|
+
const arr = Array.from(iterable);
|
|
784
|
+
yield* arr.slice(0, -count);
|
|
785
|
+
});
|
|
786
|
+
}
|
|
787
|
+
dropRight$1.dropRight = dropRight;
|
|
788
|
+
|
|
789
|
+
var dropUntilAsync$1 = {};
|
|
790
|
+
|
|
791
|
+
dropUntilAsync$1.dropUntilAsync = void 0;
|
|
792
|
+
const types_1$j = es2018$2;
|
|
793
|
+
function dropUntilAsync(iterable, predicate) {
|
|
794
|
+
if ((0, types_1$j.isAsyncIterable)(iterable)) {
|
|
795
|
+
return dropUntilAsyncIterable(iterable);
|
|
796
|
+
}
|
|
797
|
+
else {
|
|
798
|
+
return dropUntilIterable(iterable);
|
|
799
|
+
}
|
|
800
|
+
async function* dropUntilAsyncIterable(iterable) {
|
|
801
|
+
var _a;
|
|
802
|
+
const iterator = iterable[Symbol.asyncIterator]();
|
|
803
|
+
let done;
|
|
804
|
+
try {
|
|
805
|
+
let index = 0;
|
|
806
|
+
let value;
|
|
807
|
+
while ({ value, done } = await iterator.next(), !done) {
|
|
808
|
+
if (await predicate(value, index++))
|
|
809
|
+
break;
|
|
810
|
+
}
|
|
811
|
+
while (!done) {
|
|
812
|
+
yield value;
|
|
813
|
+
({ value, done } = await iterator.next());
|
|
814
|
+
}
|
|
815
|
+
}
|
|
816
|
+
finally {
|
|
817
|
+
if (!done)
|
|
818
|
+
await ((_a = iterator.return) === null || _a === void 0 ? void 0 : _a.call(iterator));
|
|
819
|
+
}
|
|
820
|
+
}
|
|
821
|
+
async function* dropUntilIterable(iterable) {
|
|
822
|
+
var _a;
|
|
823
|
+
const iterator = iterable[Symbol.iterator]();
|
|
824
|
+
let done;
|
|
825
|
+
try {
|
|
826
|
+
let index = 0;
|
|
827
|
+
let value;
|
|
828
|
+
while ({ value, done } = iterator.next(), !done) {
|
|
829
|
+
if (await predicate(value, index++))
|
|
830
|
+
break;
|
|
831
|
+
}
|
|
832
|
+
while (!done) {
|
|
833
|
+
yield value;
|
|
834
|
+
({ value, done } = iterator.next());
|
|
835
|
+
}
|
|
836
|
+
}
|
|
837
|
+
finally {
|
|
838
|
+
if (!done)
|
|
839
|
+
(_a = iterator.return) === null || _a === void 0 ? void 0 : _a.call(iterator);
|
|
840
|
+
}
|
|
841
|
+
}
|
|
842
|
+
}
|
|
843
|
+
dropUntilAsync$1.dropUntilAsync = dropUntilAsync;
|
|
844
|
+
|
|
845
|
+
var dropUntil$1 = {};
|
|
846
|
+
|
|
847
|
+
dropUntil$1.dropUntil = void 0;
|
|
848
|
+
function* dropUntil(iterable, predicate) {
|
|
849
|
+
var _a;
|
|
850
|
+
const iterator = iterable[Symbol.iterator]();
|
|
851
|
+
let done;
|
|
852
|
+
try {
|
|
853
|
+
let index = 0;
|
|
854
|
+
let value;
|
|
855
|
+
while ({ value, done } = iterator.next(), !done) {
|
|
856
|
+
if (predicate(value, index++))
|
|
857
|
+
break;
|
|
858
|
+
}
|
|
859
|
+
while (!done) {
|
|
860
|
+
yield value;
|
|
861
|
+
({ value, done } = iterator.next());
|
|
862
|
+
}
|
|
863
|
+
}
|
|
864
|
+
finally {
|
|
865
|
+
if (!done)
|
|
866
|
+
(_a = iterator.return) === null || _a === void 0 ? void 0 : _a.call(iterator);
|
|
867
|
+
}
|
|
868
|
+
}
|
|
869
|
+
dropUntil$1.dropUntil = dropUntil;
|
|
870
|
+
|
|
871
|
+
var drop$1 = {};
|
|
872
|
+
|
|
873
|
+
drop$1.drop = void 0;
|
|
874
|
+
const go_1$8 = es2018$4;
|
|
875
|
+
const utils_1 = utils;
|
|
876
|
+
const errors_1$h = es2018$3;
|
|
877
|
+
function drop(iterable, count) {
|
|
878
|
+
(0, errors_1$h.assert)(Number.isInteger(count), 'The parameter count must be an integer');
|
|
879
|
+
(0, errors_1$h.assert)(count >= 0, 'The parameter count must be greater than or equal to 0');
|
|
880
|
+
if (count === 0)
|
|
881
|
+
return (0, utils_1.copyIterable)(iterable);
|
|
882
|
+
return (0, go_1$8.go)(function* () {
|
|
883
|
+
var _a;
|
|
884
|
+
const iterator = iterable[Symbol.iterator]();
|
|
885
|
+
let done;
|
|
886
|
+
try {
|
|
887
|
+
let value;
|
|
888
|
+
while ({ value, done } = iterator.next(), !done) {
|
|
889
|
+
if (count <= 0)
|
|
890
|
+
break;
|
|
891
|
+
count--;
|
|
892
|
+
}
|
|
893
|
+
while (!done) {
|
|
894
|
+
yield value;
|
|
895
|
+
({ value, done } = iterator.next());
|
|
896
|
+
}
|
|
897
|
+
}
|
|
898
|
+
finally {
|
|
899
|
+
if (!done)
|
|
900
|
+
(_a = iterator.return) === null || _a === void 0 ? void 0 : _a.call(iterator);
|
|
901
|
+
}
|
|
902
|
+
});
|
|
903
|
+
}
|
|
904
|
+
drop$1.drop = drop;
|
|
905
|
+
|
|
906
|
+
var filterAsync$1 = {};
|
|
907
|
+
|
|
908
|
+
filterAsync$1.filterAsync = void 0;
|
|
909
|
+
const types_1$i = es2018$2;
|
|
910
|
+
function filterAsync(iterable, predicate) {
|
|
911
|
+
if ((0, types_1$i.isAsyncIterable)(iterable)) {
|
|
912
|
+
return filterAsyncIterable(iterable);
|
|
913
|
+
}
|
|
914
|
+
else {
|
|
915
|
+
return filterIterable(iterable);
|
|
916
|
+
}
|
|
917
|
+
async function* filterAsyncIterable(iterable) {
|
|
918
|
+
let index = 0;
|
|
919
|
+
for await (const element of iterable) {
|
|
920
|
+
if (await predicate(element, index))
|
|
921
|
+
yield element;
|
|
922
|
+
index++;
|
|
923
|
+
}
|
|
924
|
+
}
|
|
925
|
+
async function* filterIterable(iterable) {
|
|
926
|
+
let index = 0;
|
|
927
|
+
for (const element of iterable) {
|
|
928
|
+
if (await predicate(element, index))
|
|
929
|
+
yield element;
|
|
930
|
+
index++;
|
|
931
|
+
}
|
|
932
|
+
}
|
|
933
|
+
}
|
|
934
|
+
filterAsync$1.filterAsync = filterAsync;
|
|
935
|
+
|
|
936
|
+
var filter$1 = {};
|
|
937
|
+
|
|
938
|
+
filter$1.filter = void 0;
|
|
939
|
+
function* filter(iterable, predicate) {
|
|
940
|
+
let index = 0;
|
|
941
|
+
for (const element of iterable) {
|
|
942
|
+
if (predicate(element, index))
|
|
943
|
+
yield element;
|
|
944
|
+
index++;
|
|
945
|
+
}
|
|
946
|
+
}
|
|
947
|
+
filter$1.filter = filter;
|
|
948
|
+
|
|
949
|
+
var flattenAsync$1 = {};
|
|
950
|
+
|
|
951
|
+
var flattenDeepAsync$1 = {};
|
|
952
|
+
|
|
953
|
+
var flattenByAsync$1 = {};
|
|
954
|
+
|
|
955
|
+
flattenByAsync$1.flattenByAsync = void 0;
|
|
956
|
+
const types_1$h = es2018$2;
|
|
957
|
+
function flattenByAsync(iterable, predicate) {
|
|
958
|
+
if ((0, types_1$h.isAsyncIterable)(iterable)) {
|
|
959
|
+
return flattenByAsyncIterable(iterable);
|
|
960
|
+
}
|
|
961
|
+
else {
|
|
962
|
+
return flattenByIterable(iterable);
|
|
963
|
+
}
|
|
964
|
+
async function* flattenByAsyncIterable(iterable) {
|
|
965
|
+
const level = 1;
|
|
966
|
+
for await (const element of iterable) {
|
|
967
|
+
if (isFiniteIterable$1(element) && await predicate(element, level)) {
|
|
968
|
+
yield* flatten(element, level + 1);
|
|
969
|
+
}
|
|
970
|
+
else {
|
|
971
|
+
yield element;
|
|
972
|
+
}
|
|
973
|
+
}
|
|
974
|
+
}
|
|
975
|
+
function flattenByIterable(iterable) {
|
|
976
|
+
return flatten(iterable, 1);
|
|
977
|
+
}
|
|
978
|
+
async function* flatten(iterable, level) {
|
|
979
|
+
for (const element of iterable) {
|
|
980
|
+
if (isFiniteIterable$1(element) && await predicate(element, level)) {
|
|
981
|
+
yield* flatten(element, level + 1);
|
|
982
|
+
}
|
|
983
|
+
else {
|
|
984
|
+
yield element;
|
|
985
|
+
}
|
|
986
|
+
}
|
|
987
|
+
}
|
|
988
|
+
}
|
|
989
|
+
flattenByAsync$1.flattenByAsync = flattenByAsync;
|
|
990
|
+
function isFiniteIterable$1(val) {
|
|
991
|
+
return (0, types_1$h.isIterable)(val) && (0, types_1$h.isntChar)(val);
|
|
992
|
+
}
|
|
993
|
+
|
|
994
|
+
flattenDeepAsync$1.flattenDeepAsync = void 0;
|
|
995
|
+
const flatten_by_async_1 = flattenByAsync$1;
|
|
996
|
+
const errors_1$g = es2018$3;
|
|
997
|
+
function flattenDeepAsync(iterable, depth = Infinity) {
|
|
998
|
+
(0, errors_1$g.assert)(depth === Infinity || Number.isInteger(depth), 'The parameter depth must be an integer');
|
|
999
|
+
(0, errors_1$g.assert)(depth >= 0, 'The parameter depth must be greater than or equal to 0');
|
|
1000
|
+
return (0, flatten_by_async_1.flattenByAsync)(iterable, (_, level) => level <= depth);
|
|
1001
|
+
}
|
|
1002
|
+
flattenDeepAsync$1.flattenDeepAsync = flattenDeepAsync;
|
|
1003
|
+
|
|
1004
|
+
flattenAsync$1.flattenAsync = void 0;
|
|
1005
|
+
const flatten_deep_async_1 = flattenDeepAsync$1;
|
|
1006
|
+
function flattenAsync(iterable) {
|
|
1007
|
+
return (0, flatten_deep_async_1.flattenDeepAsync)(iterable, 1);
|
|
1008
|
+
}
|
|
1009
|
+
flattenAsync$1.flattenAsync = flattenAsync;
|
|
1010
|
+
|
|
1011
|
+
var flattenBy$1 = {};
|
|
1012
|
+
|
|
1013
|
+
flattenBy$1.flattenBy = void 0;
|
|
1014
|
+
const types_1$g = es2018$2;
|
|
1015
|
+
function flattenBy(iterable, predicate) {
|
|
1016
|
+
return flatten(iterable, 1);
|
|
1017
|
+
function* flatten(iterable, level) {
|
|
1018
|
+
for (const element of iterable) {
|
|
1019
|
+
if (isFiniteIterable(element) && predicate(element, level)) {
|
|
1020
|
+
yield* flatten(element, level + 1);
|
|
1021
|
+
}
|
|
1022
|
+
else {
|
|
1023
|
+
yield element;
|
|
1024
|
+
}
|
|
1025
|
+
}
|
|
1026
|
+
}
|
|
1027
|
+
}
|
|
1028
|
+
flattenBy$1.flattenBy = flattenBy;
|
|
1029
|
+
function isFiniteIterable(val) {
|
|
1030
|
+
return (0, types_1$g.isIterable)(val) && (0, types_1$g.isntChar)(val);
|
|
1031
|
+
}
|
|
1032
|
+
|
|
1033
|
+
var flattenDeep$1 = {};
|
|
1034
|
+
|
|
1035
|
+
flattenDeep$1.flattenDeep = void 0;
|
|
1036
|
+
const flatten_by_1 = flattenBy$1;
|
|
1037
|
+
const errors_1$f = es2018$3;
|
|
1038
|
+
function flattenDeep(iterable, depth = Infinity) {
|
|
1039
|
+
(0, errors_1$f.assert)(depth === Infinity || Number.isInteger(depth), 'The parameter depth must be an integer');
|
|
1040
|
+
(0, errors_1$f.assert)(depth >= 0, 'The parameter depth must be greater than or equal to 0');
|
|
1041
|
+
return (0, flatten_by_1.flattenBy)(iterable, (_, level) => level <= depth);
|
|
1042
|
+
}
|
|
1043
|
+
flattenDeep$1.flattenDeep = flattenDeep;
|
|
1044
|
+
|
|
1045
|
+
var flatten$1 = {};
|
|
1046
|
+
|
|
1047
|
+
flatten$1.flatten = void 0;
|
|
1048
|
+
const flatten_deep_1 = flattenDeep$1;
|
|
1049
|
+
function flatten(iterable) {
|
|
1050
|
+
return (0, flatten_deep_1.flattenDeep)(iterable, 1);
|
|
1051
|
+
}
|
|
1052
|
+
flatten$1.flatten = flatten;
|
|
1053
|
+
|
|
1054
|
+
var mapAsync$1 = {};
|
|
1055
|
+
|
|
1056
|
+
mapAsync$1.mapAsync = void 0;
|
|
1057
|
+
const types_1$f = es2018$2;
|
|
1058
|
+
function mapAsync(iterable, fn) {
|
|
1059
|
+
if ((0, types_1$f.isAsyncIterable)(iterable)) {
|
|
1060
|
+
return mapAsyncIterable(iterable);
|
|
1061
|
+
}
|
|
1062
|
+
else {
|
|
1063
|
+
return mapIterable(iterable);
|
|
1064
|
+
}
|
|
1065
|
+
async function* mapAsyncIterable(iterable) {
|
|
1066
|
+
let index = 0;
|
|
1067
|
+
for await (const element of iterable) {
|
|
1068
|
+
yield await fn(element, index);
|
|
1069
|
+
index++;
|
|
1070
|
+
}
|
|
1071
|
+
}
|
|
1072
|
+
async function* mapIterable(iterable) {
|
|
1073
|
+
let index = 0;
|
|
1074
|
+
for (const element of iterable) {
|
|
1075
|
+
yield await fn(element, index);
|
|
1076
|
+
index++;
|
|
1077
|
+
}
|
|
1078
|
+
}
|
|
1079
|
+
}
|
|
1080
|
+
mapAsync$1.mapAsync = mapAsync;
|
|
1081
|
+
|
|
1082
|
+
var map$1 = {};
|
|
1083
|
+
|
|
1084
|
+
map$1.map = void 0;
|
|
1085
|
+
function* map(iterable, fn) {
|
|
1086
|
+
let index = 0;
|
|
1087
|
+
for (const element of iterable) {
|
|
1088
|
+
yield fn(element, index);
|
|
1089
|
+
index++;
|
|
1090
|
+
}
|
|
1091
|
+
}
|
|
1092
|
+
map$1.map = map;
|
|
1093
|
+
|
|
1094
|
+
var repeatAsync$1 = {};
|
|
1095
|
+
|
|
1096
|
+
repeatAsync$1.repeatAsync = void 0;
|
|
1097
|
+
const go_1$7 = es2018$4;
|
|
1098
|
+
const errors_1$e = es2018$3;
|
|
1099
|
+
function repeatAsync(iterable, times) {
|
|
1100
|
+
(0, errors_1$e.assert)(times === Infinity || Number.isInteger(times), 'The parameter times must be an integer');
|
|
1101
|
+
(0, errors_1$e.assert)(times >= 0, 'The parameter times must be greater than or equal to 0');
|
|
1102
|
+
if (times === Infinity)
|
|
1103
|
+
warnInfiniteLoop$1();
|
|
1104
|
+
return (0, go_1$7.go)(async function* () {
|
|
1105
|
+
const cache = [];
|
|
1106
|
+
if (times > 0) {
|
|
1107
|
+
for await (const element of iterable) {
|
|
1108
|
+
yield element;
|
|
1109
|
+
cache.push(element);
|
|
1110
|
+
}
|
|
1111
|
+
times--;
|
|
1112
|
+
}
|
|
1113
|
+
while (times > 0) {
|
|
1114
|
+
yield* cache;
|
|
1115
|
+
times--;
|
|
1116
|
+
}
|
|
1117
|
+
});
|
|
1118
|
+
}
|
|
1119
|
+
repeatAsync$1.repeatAsync = repeatAsync;
|
|
1120
|
+
function warnInfiniteLoop$1() {
|
|
1121
|
+
if (isProduction$1())
|
|
1122
|
+
return;
|
|
1123
|
+
console.warn('When iterable has no elements and times is Infinity, repeat() will be in dead loop');
|
|
1124
|
+
}
|
|
1125
|
+
function isProduction$1() {
|
|
1126
|
+
return process.env.NODE_ENV === 'production';
|
|
1127
|
+
}
|
|
1128
|
+
|
|
1129
|
+
var repeat$4 = {};
|
|
1130
|
+
|
|
1131
|
+
repeat$4.repeat = void 0;
|
|
1132
|
+
const go_1$6 = es2018$4;
|
|
1133
|
+
const errors_1$d = es2018$3;
|
|
1134
|
+
function repeat$3(iterable, times) {
|
|
1135
|
+
(0, errors_1$d.assert)(times === Infinity || Number.isInteger(times), 'The parameter times must be an integer');
|
|
1136
|
+
(0, errors_1$d.assert)(times >= 0, 'The parameter times must be greater than or equal to 0');
|
|
1137
|
+
if (times === Infinity)
|
|
1138
|
+
warnInfiniteLoop();
|
|
1139
|
+
return (0, go_1$6.go)(function* () {
|
|
1140
|
+
const cache = [];
|
|
1141
|
+
if (times > 0) {
|
|
1142
|
+
for (const element of iterable) {
|
|
1143
|
+
yield element;
|
|
1144
|
+
cache.push(element);
|
|
1145
|
+
}
|
|
1146
|
+
times--;
|
|
1147
|
+
}
|
|
1148
|
+
while (times > 0) {
|
|
1149
|
+
yield* cache;
|
|
1150
|
+
times--;
|
|
1151
|
+
}
|
|
1152
|
+
});
|
|
1153
|
+
}
|
|
1154
|
+
repeat$4.repeat = repeat$3;
|
|
1155
|
+
function warnInfiniteLoop() {
|
|
1156
|
+
if (isProduction())
|
|
1157
|
+
return;
|
|
1158
|
+
console.warn('When iterable has no elements and times is Infinity, repeat() will be in dead loop');
|
|
1159
|
+
}
|
|
1160
|
+
function isProduction() {
|
|
1161
|
+
return process.env.NODE_ENV === 'production';
|
|
1162
|
+
}
|
|
1163
|
+
|
|
1164
|
+
var sliceAsync$1 = {};
|
|
1165
|
+
|
|
1166
|
+
sliceAsync$1.sliceAsync = void 0;
|
|
1167
|
+
const go_1$5 = es2018$4;
|
|
1168
|
+
const errors_1$c = es2018$3;
|
|
1169
|
+
function sliceAsync(iterable, start, end = Infinity) {
|
|
1170
|
+
(0, errors_1$c.assert)(Number.isInteger(start), 'The parameter start must be an integer');
|
|
1171
|
+
(0, errors_1$c.assert)(start >= 0, 'The parameter start must be greater than or equal to 0');
|
|
1172
|
+
(0, errors_1$c.assert)(Number.isInteger(end), 'The parameter end must be an integer');
|
|
1173
|
+
(0, errors_1$c.assert)(end >= start, 'The parameter end must be greater than or equal to start');
|
|
1174
|
+
return (0, go_1$5.go)(async function* () {
|
|
1175
|
+
let index = 0;
|
|
1176
|
+
for await (const element of iterable) {
|
|
1177
|
+
if (index >= end)
|
|
1178
|
+
break;
|
|
1179
|
+
if (index >= start)
|
|
1180
|
+
yield element;
|
|
1181
|
+
index++;
|
|
1182
|
+
}
|
|
1183
|
+
});
|
|
1184
|
+
}
|
|
1185
|
+
sliceAsync$1.sliceAsync = sliceAsync;
|
|
1186
|
+
|
|
1187
|
+
var slice$1 = {};
|
|
1188
|
+
|
|
1189
|
+
slice$1.slice = void 0;
|
|
1190
|
+
const go_1$4 = es2018$4;
|
|
1191
|
+
const errors_1$b = es2018$3;
|
|
1192
|
+
function slice(iterable, start, end = Infinity) {
|
|
1193
|
+
(0, errors_1$b.assert)(Number.isInteger(start), 'The parameter start must be an integer');
|
|
1194
|
+
(0, errors_1$b.assert)(start >= 0, 'The parameter start must be greater than or equal to 0');
|
|
1195
|
+
(0, errors_1$b.assert)(Number.isInteger(end), 'The parameter end must be an integer');
|
|
1196
|
+
(0, errors_1$b.assert)(end >= start, 'The parameter end must be greater than or equal to start');
|
|
1197
|
+
return (0, go_1$4.go)(function* () {
|
|
1198
|
+
let index = 0;
|
|
1199
|
+
for (const element of iterable) {
|
|
1200
|
+
if (index >= end)
|
|
1201
|
+
break;
|
|
1202
|
+
if (index >= start)
|
|
1203
|
+
yield element;
|
|
1204
|
+
index++;
|
|
1205
|
+
}
|
|
1206
|
+
});
|
|
1207
|
+
}
|
|
1208
|
+
slice$1.slice = slice;
|
|
1209
|
+
|
|
1210
|
+
var splitAsync$1 = {};
|
|
1211
|
+
|
|
1212
|
+
splitAsync$1.splitAsync = void 0;
|
|
1213
|
+
async function* splitAsync(iterable, separator) {
|
|
1214
|
+
let buffer = [];
|
|
1215
|
+
for await (const element of iterable) {
|
|
1216
|
+
if (element === separator) {
|
|
1217
|
+
yield buffer;
|
|
1218
|
+
buffer = [];
|
|
1219
|
+
}
|
|
1220
|
+
else {
|
|
1221
|
+
buffer.push(element);
|
|
1222
|
+
}
|
|
1223
|
+
}
|
|
1224
|
+
yield buffer;
|
|
1225
|
+
}
|
|
1226
|
+
splitAsync$1.splitAsync = splitAsync;
|
|
1227
|
+
|
|
1228
|
+
var splitByAsync$1 = {};
|
|
1229
|
+
|
|
1230
|
+
splitByAsync$1.splitByAsync = void 0;
|
|
1231
|
+
const types_1$e = es2018$2;
|
|
1232
|
+
function splitByAsync(iterable, predicate) {
|
|
1233
|
+
if ((0, types_1$e.isAsyncIterable)(iterable)) {
|
|
1234
|
+
return splitByAsyncIterable(iterable);
|
|
1235
|
+
}
|
|
1236
|
+
else {
|
|
1237
|
+
return splitByIterable(iterable);
|
|
1238
|
+
}
|
|
1239
|
+
async function* splitByIterable(iterable) {
|
|
1240
|
+
let buffer = [];
|
|
1241
|
+
let index = 0;
|
|
1242
|
+
for (const element of iterable) {
|
|
1243
|
+
if (await predicate(element, index)) {
|
|
1244
|
+
yield buffer;
|
|
1245
|
+
buffer = [];
|
|
1246
|
+
}
|
|
1247
|
+
else {
|
|
1248
|
+
buffer.push(element);
|
|
1249
|
+
}
|
|
1250
|
+
index++;
|
|
1251
|
+
}
|
|
1252
|
+
yield buffer;
|
|
1253
|
+
}
|
|
1254
|
+
async function* splitByAsyncIterable(iterable) {
|
|
1255
|
+
let buffer = [];
|
|
1256
|
+
let index = 0;
|
|
1257
|
+
for await (const element of iterable) {
|
|
1258
|
+
if (await predicate(element, index)) {
|
|
1259
|
+
yield buffer;
|
|
1260
|
+
buffer = [];
|
|
1261
|
+
}
|
|
1262
|
+
else {
|
|
1263
|
+
buffer.push(element);
|
|
1264
|
+
}
|
|
1265
|
+
index++;
|
|
1266
|
+
}
|
|
1267
|
+
yield buffer;
|
|
1268
|
+
}
|
|
1269
|
+
}
|
|
1270
|
+
splitByAsync$1.splitByAsync = splitByAsync;
|
|
1271
|
+
|
|
1272
|
+
var splitBy$1 = {};
|
|
1273
|
+
|
|
1274
|
+
splitBy$1.splitBy = void 0;
|
|
1275
|
+
function* splitBy(iterable, predicate) {
|
|
1276
|
+
let buffer = [];
|
|
1277
|
+
let index = 0;
|
|
1278
|
+
for (const element of iterable) {
|
|
1279
|
+
if (predicate(element, index)) {
|
|
1280
|
+
yield buffer;
|
|
1281
|
+
buffer = [];
|
|
1282
|
+
}
|
|
1283
|
+
else {
|
|
1284
|
+
buffer.push(element);
|
|
1285
|
+
}
|
|
1286
|
+
index++;
|
|
1287
|
+
}
|
|
1288
|
+
yield buffer;
|
|
1289
|
+
}
|
|
1290
|
+
splitBy$1.splitBy = splitBy;
|
|
1291
|
+
|
|
1292
|
+
var split$1 = {};
|
|
1293
|
+
|
|
1294
|
+
split$1.split = void 0;
|
|
1295
|
+
function* split(iterable, separator) {
|
|
1296
|
+
let buffer = [];
|
|
1297
|
+
for (const element of iterable) {
|
|
1298
|
+
if (element === separator) {
|
|
1299
|
+
yield buffer;
|
|
1300
|
+
buffer = [];
|
|
1301
|
+
}
|
|
1302
|
+
else {
|
|
1303
|
+
buffer.push(element);
|
|
1304
|
+
}
|
|
1305
|
+
}
|
|
1306
|
+
yield buffer;
|
|
1307
|
+
}
|
|
1308
|
+
split$1.split = split;
|
|
1309
|
+
|
|
1310
|
+
var takeAsync$1 = {};
|
|
1311
|
+
|
|
1312
|
+
takeAsync$1.takeAsync = void 0;
|
|
1313
|
+
const go_1$3 = es2018$4;
|
|
1314
|
+
const errors_1$a = es2018$3;
|
|
1315
|
+
function takeAsync(iterable, count) {
|
|
1316
|
+
(0, errors_1$a.assert)(Number.isInteger(count), 'The parameter count must be an integer');
|
|
1317
|
+
(0, errors_1$a.assert)(count >= 0, 'The parameter count must be greater than or equal to 0');
|
|
1318
|
+
return (0, go_1$3.go)(async function* () {
|
|
1319
|
+
if (count === 0)
|
|
1320
|
+
return;
|
|
1321
|
+
for await (const element of iterable) {
|
|
1322
|
+
yield element;
|
|
1323
|
+
count--;
|
|
1324
|
+
if (count === 0)
|
|
1325
|
+
break;
|
|
1326
|
+
}
|
|
1327
|
+
});
|
|
1328
|
+
}
|
|
1329
|
+
takeAsync$1.takeAsync = takeAsync;
|
|
1330
|
+
|
|
1331
|
+
var takeRightAsync$1 = {};
|
|
1332
|
+
|
|
1333
|
+
takeRightAsync$1.takeRightAsync = void 0;
|
|
1334
|
+
const go_1$2 = es2018$4;
|
|
1335
|
+
const errors_1$9 = es2018$3;
|
|
1336
|
+
function takeRightAsync(iterable, count) {
|
|
1337
|
+
(0, errors_1$9.assert)(Number.isInteger(count), 'The parameter count must be an integer');
|
|
1338
|
+
(0, errors_1$9.assert)(count >= 0, 'The parameter count must be greater than or equal to 0');
|
|
1339
|
+
return (0, go_1$2.go)(async function* () {
|
|
1340
|
+
var _a;
|
|
1341
|
+
const iterator = iterable[Symbol.asyncIterator]();
|
|
1342
|
+
let done;
|
|
1343
|
+
try {
|
|
1344
|
+
const buffer = [];
|
|
1345
|
+
let value;
|
|
1346
|
+
while ({ value, done } = await iterator.next(), !done) {
|
|
1347
|
+
buffer.push(value);
|
|
1348
|
+
if (buffer.length > count)
|
|
1349
|
+
buffer.shift();
|
|
1350
|
+
}
|
|
1351
|
+
yield* buffer;
|
|
1352
|
+
}
|
|
1353
|
+
finally {
|
|
1354
|
+
if (!done)
|
|
1355
|
+
await ((_a = iterator.return) === null || _a === void 0 ? void 0 : _a.call(iterator));
|
|
1356
|
+
}
|
|
1357
|
+
});
|
|
1358
|
+
}
|
|
1359
|
+
takeRightAsync$1.takeRightAsync = takeRightAsync;
|
|
1360
|
+
|
|
1361
|
+
var takeRight$1 = {};
|
|
1362
|
+
|
|
1363
|
+
takeRight$1.takeRight = void 0;
|
|
1364
|
+
const go_1$1 = es2018$4;
|
|
1365
|
+
const errors_1$8 = es2018$3;
|
|
1366
|
+
function takeRight(iterable, count) {
|
|
1367
|
+
(0, errors_1$8.assert)(Number.isInteger(count), 'The parameter count must be an integer');
|
|
1368
|
+
(0, errors_1$8.assert)(count >= 0, 'The parameter count must be greater than or equal to 0');
|
|
1369
|
+
return (0, go_1$1.go)(function* () {
|
|
1370
|
+
var _a;
|
|
1371
|
+
const iterator = iterable[Symbol.iterator]();
|
|
1372
|
+
let done;
|
|
1373
|
+
try {
|
|
1374
|
+
const buffer = [];
|
|
1375
|
+
let value;
|
|
1376
|
+
while ({ value, done } = iterator.next(), !done) {
|
|
1377
|
+
buffer.push(value);
|
|
1378
|
+
if (buffer.length > count)
|
|
1379
|
+
buffer.shift();
|
|
1380
|
+
}
|
|
1381
|
+
yield* buffer;
|
|
1382
|
+
}
|
|
1383
|
+
finally {
|
|
1384
|
+
if (!done)
|
|
1385
|
+
(_a = iterator.return) === null || _a === void 0 ? void 0 : _a.call(iterator);
|
|
1386
|
+
}
|
|
1387
|
+
});
|
|
1388
|
+
}
|
|
1389
|
+
takeRight$1.takeRight = takeRight;
|
|
1390
|
+
|
|
1391
|
+
var takeUntilAsync$1 = {};
|
|
1392
|
+
|
|
1393
|
+
takeUntilAsync$1.takeUntilAsync = void 0;
|
|
1394
|
+
const types_1$d = es2018$2;
|
|
1395
|
+
function takeUntilAsync(iterable, predicate) {
|
|
1396
|
+
if ((0, types_1$d.isAsyncIterable)(iterable)) {
|
|
1397
|
+
return takeUntilAsyncIterable(iterable);
|
|
1398
|
+
}
|
|
1399
|
+
else {
|
|
1400
|
+
return takeUntilIterable(iterable);
|
|
1401
|
+
}
|
|
1402
|
+
async function* takeUntilAsyncIterable(iterable) {
|
|
1403
|
+
let index = 0;
|
|
1404
|
+
for await (const element of iterable) {
|
|
1405
|
+
if (await predicate(element, index))
|
|
1406
|
+
break;
|
|
1407
|
+
yield element;
|
|
1408
|
+
index++;
|
|
1409
|
+
}
|
|
1410
|
+
}
|
|
1411
|
+
async function* takeUntilIterable(iterable) {
|
|
1412
|
+
let index = 0;
|
|
1413
|
+
for (const element of iterable) {
|
|
1414
|
+
if (await predicate(element, index))
|
|
1415
|
+
break;
|
|
1416
|
+
yield element;
|
|
1417
|
+
index++;
|
|
1418
|
+
}
|
|
1419
|
+
}
|
|
1420
|
+
}
|
|
1421
|
+
takeUntilAsync$1.takeUntilAsync = takeUntilAsync;
|
|
1422
|
+
|
|
1423
|
+
var takeUntil$1 = {};
|
|
1424
|
+
|
|
1425
|
+
takeUntil$1.takeUntil = void 0;
|
|
1426
|
+
function* takeUntil(iterable, predicate) {
|
|
1427
|
+
let index = 0;
|
|
1428
|
+
for (const element of iterable) {
|
|
1429
|
+
if (predicate(element, index))
|
|
1430
|
+
break;
|
|
1431
|
+
yield element;
|
|
1432
|
+
index++;
|
|
1433
|
+
}
|
|
1434
|
+
}
|
|
1435
|
+
takeUntil$1.takeUntil = takeUntil;
|
|
1436
|
+
|
|
1437
|
+
var take$1 = {};
|
|
1438
|
+
|
|
1439
|
+
take$1.take = void 0;
|
|
1440
|
+
const go_1 = es2018$4;
|
|
1441
|
+
const errors_1$7 = es2018$3;
|
|
1442
|
+
function take(iterable, count) {
|
|
1443
|
+
(0, errors_1$7.assert)(Number.isInteger(count), 'The parameter count must be an integer');
|
|
1444
|
+
(0, errors_1$7.assert)(count >= 0, 'The parameter count must be greater than or equal to 0');
|
|
1445
|
+
return (0, go_1.go)(function* () {
|
|
1446
|
+
if (count === 0)
|
|
1447
|
+
return;
|
|
1448
|
+
for (const element of iterable) {
|
|
1449
|
+
yield element;
|
|
1450
|
+
count--;
|
|
1451
|
+
if (count === 0)
|
|
1452
|
+
break;
|
|
1453
|
+
}
|
|
1454
|
+
});
|
|
1455
|
+
}
|
|
1456
|
+
take$1.take = take;
|
|
1457
|
+
|
|
1458
|
+
var tapAsync$1 = {};
|
|
1459
|
+
|
|
1460
|
+
tapAsync$1.tapAsync = void 0;
|
|
1461
|
+
const types_1$c = es2018$2;
|
|
1462
|
+
function tapAsync(iterable, fn) {
|
|
1463
|
+
if ((0, types_1$c.isAsyncIterable)(iterable)) {
|
|
1464
|
+
return tapAsyncIterable(iterable);
|
|
1465
|
+
}
|
|
1466
|
+
else {
|
|
1467
|
+
return tapIterable(iterable);
|
|
1468
|
+
}
|
|
1469
|
+
async function* tapIterable(iterable) {
|
|
1470
|
+
let index = 0;
|
|
1471
|
+
for (const element of iterable) {
|
|
1472
|
+
await fn(element, index);
|
|
1473
|
+
yield element;
|
|
1474
|
+
index++;
|
|
1475
|
+
}
|
|
1476
|
+
}
|
|
1477
|
+
async function* tapAsyncIterable(iterable) {
|
|
1478
|
+
let index = 0;
|
|
1479
|
+
for await (const element of iterable) {
|
|
1480
|
+
await fn(element, index);
|
|
1481
|
+
yield element;
|
|
1482
|
+
index++;
|
|
1483
|
+
}
|
|
1484
|
+
}
|
|
1485
|
+
}
|
|
1486
|
+
tapAsync$1.tapAsync = tapAsync;
|
|
1487
|
+
|
|
1488
|
+
var tap$2 = {};
|
|
1489
|
+
|
|
1490
|
+
tap$2.tap = void 0;
|
|
1491
|
+
function* tap$1(iterable, fn) {
|
|
1492
|
+
let index = 0;
|
|
1493
|
+
for (const element of iterable) {
|
|
1494
|
+
fn(element, index);
|
|
1495
|
+
yield element;
|
|
1496
|
+
index++;
|
|
1497
|
+
}
|
|
1498
|
+
}
|
|
1499
|
+
tap$2.tap = tap$1;
|
|
1500
|
+
|
|
1501
|
+
var toAsyncIterable$1 = {};
|
|
1502
|
+
|
|
1503
|
+
toAsyncIterable$1.toAsyncIterable = void 0;
|
|
1504
|
+
async function* toAsyncIterable(iterable) {
|
|
1505
|
+
for (const value of iterable) {
|
|
1506
|
+
yield value;
|
|
1507
|
+
}
|
|
1508
|
+
}
|
|
1509
|
+
toAsyncIterable$1.toAsyncIterable = toAsyncIterable;
|
|
1510
|
+
|
|
1511
|
+
var transformAsync$1 = {};
|
|
1512
|
+
|
|
1513
|
+
transformAsync$1.transformAsync = void 0;
|
|
1514
|
+
async function* transformAsync(iterable, transformer) {
|
|
1515
|
+
yield* transformer(iterable);
|
|
1516
|
+
}
|
|
1517
|
+
transformAsync$1.transformAsync = transformAsync;
|
|
1518
|
+
|
|
1519
|
+
var transform$1 = {};
|
|
1520
|
+
|
|
1521
|
+
transform$1.transform = void 0;
|
|
1522
|
+
function* transform(iterable, transformer) {
|
|
1523
|
+
yield* transformer(iterable);
|
|
1524
|
+
}
|
|
1525
|
+
transform$1.transform = transform;
|
|
1526
|
+
|
|
1527
|
+
var uniqAsync$1 = {};
|
|
1528
|
+
|
|
1529
|
+
uniqAsync$1.uniqAsync = void 0;
|
|
1530
|
+
async function* uniqAsync(iterable) {
|
|
1531
|
+
const bucket = new Set();
|
|
1532
|
+
for await (const element of iterable) {
|
|
1533
|
+
if (!bucket.has(element)) {
|
|
1534
|
+
yield element;
|
|
1535
|
+
bucket.add(element);
|
|
1536
|
+
}
|
|
1537
|
+
}
|
|
1538
|
+
}
|
|
1539
|
+
uniqAsync$1.uniqAsync = uniqAsync;
|
|
1540
|
+
|
|
1541
|
+
var uniqByAsync$1 = {};
|
|
1542
|
+
|
|
1543
|
+
uniqByAsync$1.uniqByAsync = void 0;
|
|
1544
|
+
const types_1$b = es2018$2;
|
|
1545
|
+
function uniqByAsync(iterable, fn) {
|
|
1546
|
+
if ((0, types_1$b.isAsyncIterable)(iterable)) {
|
|
1547
|
+
return uniqByAsyncIterable(iterable);
|
|
1548
|
+
}
|
|
1549
|
+
else {
|
|
1550
|
+
return uniqByIterable(iterable);
|
|
1551
|
+
}
|
|
1552
|
+
async function* uniqByAsyncIterable(iterable) {
|
|
1553
|
+
const bucket = new Set();
|
|
1554
|
+
let index = 0;
|
|
1555
|
+
for await (const element of iterable) {
|
|
1556
|
+
const result = await fn(element, index);
|
|
1557
|
+
if (!bucket.has(result)) {
|
|
1558
|
+
yield element;
|
|
1559
|
+
bucket.add(result);
|
|
1560
|
+
}
|
|
1561
|
+
index++;
|
|
1562
|
+
}
|
|
1563
|
+
}
|
|
1564
|
+
async function* uniqByIterable(iterable) {
|
|
1565
|
+
const bucket = new Set();
|
|
1566
|
+
let index = 0;
|
|
1567
|
+
for (const element of iterable) {
|
|
1568
|
+
const result = await fn(element, index);
|
|
1569
|
+
if (!bucket.has(result)) {
|
|
1570
|
+
yield element;
|
|
1571
|
+
bucket.add(result);
|
|
1572
|
+
}
|
|
1573
|
+
index++;
|
|
1574
|
+
}
|
|
1575
|
+
}
|
|
1576
|
+
}
|
|
1577
|
+
uniqByAsync$1.uniqByAsync = uniqByAsync;
|
|
1578
|
+
|
|
1579
|
+
var uniqBy$1 = {};
|
|
1580
|
+
|
|
1581
|
+
uniqBy$1.uniqBy = void 0;
|
|
1582
|
+
function* uniqBy(iterable, fn) {
|
|
1583
|
+
const bucket = new Set();
|
|
1584
|
+
let index = 0;
|
|
1585
|
+
for (const element of iterable) {
|
|
1586
|
+
const result = fn(element, index);
|
|
1587
|
+
if (!bucket.has(result)) {
|
|
1588
|
+
yield element;
|
|
1589
|
+
bucket.add(result);
|
|
1590
|
+
}
|
|
1591
|
+
index++;
|
|
1592
|
+
}
|
|
1593
|
+
}
|
|
1594
|
+
uniqBy$1.uniqBy = uniqBy;
|
|
1595
|
+
|
|
1596
|
+
var uniq$1 = {};
|
|
1597
|
+
|
|
1598
|
+
uniq$1.uniq = void 0;
|
|
1599
|
+
function* uniq(iterable) {
|
|
1600
|
+
const bucket = new Set();
|
|
1601
|
+
for (const element of iterable) {
|
|
1602
|
+
if (!bucket.has(element)) {
|
|
1603
|
+
yield element;
|
|
1604
|
+
bucket.add(element);
|
|
1605
|
+
}
|
|
1606
|
+
}
|
|
1607
|
+
}
|
|
1608
|
+
uniq$1.uniq = uniq;
|
|
1609
|
+
|
|
1610
|
+
var zipAsync$1 = {};
|
|
1611
|
+
|
|
1612
|
+
zipAsync$1.zipAsync = void 0;
|
|
1613
|
+
const types_1$a = es2018$2;
|
|
1614
|
+
var Kind;
|
|
1615
|
+
(function (Kind) {
|
|
1616
|
+
Kind[Kind["Sync"] = 0] = "Sync";
|
|
1617
|
+
Kind[Kind["Async"] = 1] = "Async";
|
|
1618
|
+
})(Kind || (Kind = {}));
|
|
1619
|
+
function zipAsync(iterable, ...otherIterables) {
|
|
1620
|
+
return zipWithSize$1(iterable, ...otherIterables);
|
|
1621
|
+
}
|
|
1622
|
+
zipAsync$1.zipAsync = zipAsync;
|
|
1623
|
+
async function* zipWithSize$1(...iterables) {
|
|
1624
|
+
var _a, _b, _c, _d;
|
|
1625
|
+
const length = iterables.length;
|
|
1626
|
+
const iterators = iterables.map(iterable => {
|
|
1627
|
+
if ((0, types_1$a.isAsyncIterable)(iterable)) {
|
|
1628
|
+
return [Kind.Async, iterable[Symbol.asyncIterator]()];
|
|
1629
|
+
}
|
|
1630
|
+
else {
|
|
1631
|
+
return [Kind.Sync, iterable[Symbol.iterator]()];
|
|
1632
|
+
}
|
|
1633
|
+
});
|
|
1634
|
+
const dones = iterators.map(() => false);
|
|
1635
|
+
try {
|
|
1636
|
+
while (true) {
|
|
1637
|
+
const result = new Array(length);
|
|
1638
|
+
for (let i = 0; i < length; i++) {
|
|
1639
|
+
const [kind, iterator] = iterators[i];
|
|
1640
|
+
let temp;
|
|
1641
|
+
if (kind === Kind.Async) {
|
|
1642
|
+
temp = await iterator.next();
|
|
1643
|
+
}
|
|
1644
|
+
else {
|
|
1645
|
+
temp = iterator.next();
|
|
1646
|
+
}
|
|
1647
|
+
if (temp.done) {
|
|
1648
|
+
dones[i] = true;
|
|
1649
|
+
return;
|
|
1650
|
+
}
|
|
1651
|
+
result[i] = temp.value;
|
|
1652
|
+
}
|
|
1653
|
+
yield result;
|
|
1654
|
+
}
|
|
1655
|
+
}
|
|
1656
|
+
finally {
|
|
1657
|
+
const undoneIterators = iterators.filter((_, i) => !dones[i]);
|
|
1658
|
+
for (const [kind, iterator] of undoneIterators) {
|
|
1659
|
+
if (kind === Kind.Async) {
|
|
1660
|
+
await ((_b = (_a = iterator).return) === null || _b === void 0 ? void 0 : _b.call(_a));
|
|
1661
|
+
}
|
|
1662
|
+
else {
|
|
1663
|
+
(_d = (_c = iterator).return) === null || _d === void 0 ? void 0 : _d.call(_c);
|
|
1664
|
+
}
|
|
1665
|
+
}
|
|
1666
|
+
}
|
|
1667
|
+
}
|
|
1668
|
+
|
|
1669
|
+
var zip$1 = {};
|
|
1670
|
+
|
|
1671
|
+
zip$1.zip = void 0;
|
|
1672
|
+
function zip(iterable, ...otherIterables) {
|
|
1673
|
+
return zipWithSize(iterable, ...otherIterables);
|
|
1674
|
+
}
|
|
1675
|
+
zip$1.zip = zip;
|
|
1676
|
+
function* zipWithSize(...iterables) {
|
|
1677
|
+
const length = iterables.length;
|
|
1678
|
+
const iterators = iterables.map(iterable => iterable[Symbol.iterator]());
|
|
1679
|
+
const dones = iterators.map(() => false);
|
|
1680
|
+
try {
|
|
1681
|
+
while (true) {
|
|
1682
|
+
const result = new Array(length);
|
|
1683
|
+
for (let i = 0; i < length; i++) {
|
|
1684
|
+
const { value, done } = iterators[i].next();
|
|
1685
|
+
if (done) {
|
|
1686
|
+
dones[i] = true;
|
|
1687
|
+
return;
|
|
1688
|
+
}
|
|
1689
|
+
result[i] = value;
|
|
1690
|
+
}
|
|
1691
|
+
yield result;
|
|
1692
|
+
}
|
|
1693
|
+
}
|
|
1694
|
+
finally {
|
|
1695
|
+
const undoneIterators = iterators.filter((_, i) => !dones[i]);
|
|
1696
|
+
undoneIterators.forEach(x => { var _a; return (_a = x.return) === null || _a === void 0 ? void 0 : _a.call(x); });
|
|
1697
|
+
}
|
|
1698
|
+
}
|
|
1699
|
+
|
|
1700
|
+
(function (exports) {
|
|
1701
|
+
var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
1702
|
+
if (k2 === undefined) k2 = k;
|
|
1703
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
1704
|
+
}) : (function(o, m, k, k2) {
|
|
1705
|
+
if (k2 === undefined) k2 = k;
|
|
1706
|
+
o[k2] = m[k];
|
|
1707
|
+
}));
|
|
1708
|
+
var __exportStar = (commonjsGlobal && commonjsGlobal.__exportStar) || function(m, exports) {
|
|
1709
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
1710
|
+
};__exportStar(chunkAsync$1, exports);
|
|
1711
|
+
__exportStar(chunkByAsync$1, exports);
|
|
1712
|
+
__exportStar(chunkBy$1, exports);
|
|
1713
|
+
__exportStar(chunk$1, exports);
|
|
1714
|
+
__exportStar(concatAsync$1, exports);
|
|
1715
|
+
__exportStar(concat$2, exports);
|
|
1716
|
+
__exportStar(dropAsync$1, exports);
|
|
1717
|
+
__exportStar(dropRightAsync$1, exports);
|
|
1718
|
+
__exportStar(dropRight$1, exports);
|
|
1719
|
+
__exportStar(dropUntilAsync$1, exports);
|
|
1720
|
+
__exportStar(dropUntil$1, exports);
|
|
1721
|
+
__exportStar(drop$1, exports);
|
|
1722
|
+
__exportStar(filterAsync$1, exports);
|
|
1723
|
+
__exportStar(filter$1, exports);
|
|
1724
|
+
__exportStar(flattenAsync$1, exports);
|
|
1725
|
+
__exportStar(flattenByAsync$1, exports);
|
|
1726
|
+
__exportStar(flattenBy$1, exports);
|
|
1727
|
+
__exportStar(flattenDeepAsync$1, exports);
|
|
1728
|
+
__exportStar(flattenDeep$1, exports);
|
|
1729
|
+
__exportStar(flatten$1, exports);
|
|
1730
|
+
__exportStar(mapAsync$1, exports);
|
|
1731
|
+
__exportStar(map$1, exports);
|
|
1732
|
+
__exportStar(repeatAsync$1, exports);
|
|
1733
|
+
__exportStar(repeat$4, exports);
|
|
1734
|
+
__exportStar(sliceAsync$1, exports);
|
|
1735
|
+
__exportStar(slice$1, exports);
|
|
1736
|
+
__exportStar(splitAsync$1, exports);
|
|
1737
|
+
__exportStar(splitByAsync$1, exports);
|
|
1738
|
+
__exportStar(splitBy$1, exports);
|
|
1739
|
+
__exportStar(split$1, exports);
|
|
1740
|
+
__exportStar(takeAsync$1, exports);
|
|
1741
|
+
__exportStar(takeRightAsync$1, exports);
|
|
1742
|
+
__exportStar(takeRight$1, exports);
|
|
1743
|
+
__exportStar(takeUntilAsync$1, exports);
|
|
1744
|
+
__exportStar(takeUntil$1, exports);
|
|
1745
|
+
__exportStar(take$1, exports);
|
|
1746
|
+
__exportStar(tapAsync$1, exports);
|
|
1747
|
+
__exportStar(tap$2, exports);
|
|
1748
|
+
__exportStar(toAsyncIterable$1, exports);
|
|
1749
|
+
__exportStar(transformAsync$1, exports);
|
|
1750
|
+
__exportStar(transform$1, exports);
|
|
1751
|
+
__exportStar(uniqAsync$1, exports);
|
|
1752
|
+
__exportStar(uniqByAsync$1, exports);
|
|
1753
|
+
__exportStar(uniqBy$1, exports);
|
|
1754
|
+
__exportStar(uniq$1, exports);
|
|
1755
|
+
__exportStar(zipAsync$1, exports);
|
|
1756
|
+
__exportStar(zip$1, exports);
|
|
1757
|
+
|
|
1758
|
+
}(middleware));
|
|
1759
|
+
|
|
1760
|
+
var output = {};
|
|
1761
|
+
|
|
1762
|
+
var consume$1 = {};
|
|
1763
|
+
|
|
1764
|
+
consume$1.consume = void 0;
|
|
1765
|
+
function consume(iterable, consumer) {
|
|
1766
|
+
return consumer(iterable);
|
|
1767
|
+
}
|
|
1768
|
+
consume$1.consume = consume;
|
|
1769
|
+
|
|
1770
|
+
var eachAsync$1 = {};
|
|
1771
|
+
|
|
1772
|
+
eachAsync$1.eachAsync = void 0;
|
|
1773
|
+
const types_1$9 = es2018$2;
|
|
1774
|
+
function eachAsync(iterable, fn) {
|
|
1775
|
+
if ((0, types_1$9.isAsyncIterable)(iterable)) {
|
|
1776
|
+
return eachAsyncIterable(iterable);
|
|
1777
|
+
}
|
|
1778
|
+
else {
|
|
1779
|
+
return eachIterable(iterable);
|
|
1780
|
+
}
|
|
1781
|
+
async function eachAsyncIterable(iterable) {
|
|
1782
|
+
let index = 0;
|
|
1783
|
+
for await (const element of iterable) {
|
|
1784
|
+
await fn(element, index);
|
|
1785
|
+
index++;
|
|
1786
|
+
}
|
|
1787
|
+
}
|
|
1788
|
+
async function eachIterable(iterable) {
|
|
1789
|
+
let index = 0;
|
|
1790
|
+
for (const element of iterable) {
|
|
1791
|
+
await fn(element, index);
|
|
1792
|
+
index++;
|
|
1793
|
+
}
|
|
1794
|
+
}
|
|
1795
|
+
}
|
|
1796
|
+
eachAsync$1.eachAsync = eachAsync;
|
|
1797
|
+
|
|
1798
|
+
var each$1 = {};
|
|
1799
|
+
|
|
1800
|
+
each$1.each = void 0;
|
|
1801
|
+
function each(iterable, fn) {
|
|
1802
|
+
let index = 0;
|
|
1803
|
+
for (const element of iterable) {
|
|
1804
|
+
fn(element, index);
|
|
1805
|
+
index++;
|
|
1806
|
+
}
|
|
1807
|
+
}
|
|
1808
|
+
each$1.each = each;
|
|
1809
|
+
|
|
1810
|
+
var everyAsync$1 = {};
|
|
1811
|
+
|
|
1812
|
+
everyAsync$1.everyAsync = void 0;
|
|
1813
|
+
const types_1$8 = es2018$2;
|
|
1814
|
+
function everyAsync(iterable, predicate) {
|
|
1815
|
+
if ((0, types_1$8.isAsyncIterable)(iterable)) {
|
|
1816
|
+
return everyAsyncIterable(iterable);
|
|
1817
|
+
}
|
|
1818
|
+
else {
|
|
1819
|
+
return everyIterable(iterable);
|
|
1820
|
+
}
|
|
1821
|
+
async function everyIterable(iterable) {
|
|
1822
|
+
let index = 0;
|
|
1823
|
+
for (const element of iterable) {
|
|
1824
|
+
if (!await predicate(element, index))
|
|
1825
|
+
return false;
|
|
1826
|
+
index++;
|
|
1827
|
+
}
|
|
1828
|
+
return true;
|
|
1829
|
+
}
|
|
1830
|
+
async function everyAsyncIterable(iterable) {
|
|
1831
|
+
let index = 0;
|
|
1832
|
+
for await (const element of iterable) {
|
|
1833
|
+
if (!await predicate(element, index))
|
|
1834
|
+
return false;
|
|
1835
|
+
index++;
|
|
1836
|
+
}
|
|
1837
|
+
return true;
|
|
1838
|
+
}
|
|
1839
|
+
}
|
|
1840
|
+
everyAsync$1.everyAsync = everyAsync;
|
|
1841
|
+
|
|
1842
|
+
var every$1 = {};
|
|
1843
|
+
|
|
1844
|
+
every$1.every = void 0;
|
|
1845
|
+
function every(iterable, predicate) {
|
|
1846
|
+
let index = 0;
|
|
1847
|
+
for (const element of iterable) {
|
|
1848
|
+
if (!predicate(element, index))
|
|
1849
|
+
return false;
|
|
1850
|
+
index++;
|
|
1851
|
+
}
|
|
1852
|
+
return true;
|
|
1853
|
+
}
|
|
1854
|
+
every$1.every = every;
|
|
1855
|
+
|
|
1856
|
+
var findAsync$1 = {};
|
|
1857
|
+
|
|
1858
|
+
findAsync$1.findAsync = void 0;
|
|
1859
|
+
const types_1$7 = es2018$2;
|
|
1860
|
+
function findAsync(iterable, predicate) {
|
|
1861
|
+
if ((0, types_1$7.isAsyncIterable)(iterable)) {
|
|
1862
|
+
return findAsyncIterable(iterable);
|
|
1863
|
+
}
|
|
1864
|
+
else {
|
|
1865
|
+
return findIterable(iterable);
|
|
1866
|
+
}
|
|
1867
|
+
async function findIterable(iterable) {
|
|
1868
|
+
let index = 0;
|
|
1869
|
+
for (const element of iterable) {
|
|
1870
|
+
if (await predicate(element, index))
|
|
1871
|
+
return element;
|
|
1872
|
+
index++;
|
|
1873
|
+
}
|
|
1874
|
+
return undefined;
|
|
1875
|
+
}
|
|
1876
|
+
async function findAsyncIterable(iterable) {
|
|
1877
|
+
let index = 0;
|
|
1878
|
+
for await (const element of iterable) {
|
|
1879
|
+
if (await predicate(element, index))
|
|
1880
|
+
return element;
|
|
1881
|
+
index++;
|
|
1882
|
+
}
|
|
1883
|
+
return undefined;
|
|
1884
|
+
}
|
|
1885
|
+
}
|
|
1886
|
+
findAsync$1.findAsync = findAsync;
|
|
1887
|
+
|
|
1888
|
+
var find$3 = {};
|
|
1889
|
+
|
|
1890
|
+
find$3.find = void 0;
|
|
1891
|
+
function find$2(iterable, predicate) {
|
|
1892
|
+
let index = 0;
|
|
1893
|
+
for (const element of iterable) {
|
|
1894
|
+
if (predicate(element, index))
|
|
1895
|
+
return element;
|
|
1896
|
+
index++;
|
|
1897
|
+
}
|
|
1898
|
+
return undefined;
|
|
1899
|
+
}
|
|
1900
|
+
find$3.find = find$2;
|
|
1901
|
+
|
|
1902
|
+
var firstAsync$1 = {};
|
|
1903
|
+
|
|
1904
|
+
firstAsync$1.firstAsync = void 0;
|
|
1905
|
+
async function firstAsync(iterable) {
|
|
1906
|
+
for await (const element of iterable) {
|
|
1907
|
+
return element;
|
|
1908
|
+
}
|
|
1909
|
+
return undefined;
|
|
1910
|
+
}
|
|
1911
|
+
firstAsync$1.firstAsync = firstAsync;
|
|
1912
|
+
|
|
1913
|
+
var first$1 = {};
|
|
1914
|
+
|
|
1915
|
+
first$1.first = void 0;
|
|
1916
|
+
function first(iterable) {
|
|
1917
|
+
for (const element of iterable) {
|
|
1918
|
+
return element;
|
|
1919
|
+
}
|
|
1920
|
+
return undefined;
|
|
1921
|
+
}
|
|
1922
|
+
first$1.first = first;
|
|
1923
|
+
|
|
1924
|
+
var includesAsync$1 = {};
|
|
1925
|
+
|
|
1926
|
+
includesAsync$1.includesAsync = void 0;
|
|
1927
|
+
async function includesAsync(iterable, value) {
|
|
1928
|
+
for await (const element of iterable) {
|
|
1929
|
+
if (element === value)
|
|
1930
|
+
return true;
|
|
1931
|
+
}
|
|
1932
|
+
return false;
|
|
1933
|
+
}
|
|
1934
|
+
includesAsync$1.includesAsync = includesAsync;
|
|
1935
|
+
|
|
1936
|
+
var includes$1 = {};
|
|
1937
|
+
|
|
1938
|
+
includes$1.includes = void 0;
|
|
1939
|
+
function includes(iterable, value) {
|
|
1940
|
+
for (const element of iterable) {
|
|
1941
|
+
if (element === value)
|
|
1942
|
+
return true;
|
|
1943
|
+
}
|
|
1944
|
+
return false;
|
|
1945
|
+
}
|
|
1946
|
+
includes$1.includes = includes;
|
|
1947
|
+
|
|
1948
|
+
var matchAsync$1 = {};
|
|
1949
|
+
|
|
1950
|
+
matchAsync$1.matchAsync = void 0;
|
|
1951
|
+
async function matchAsync(iterable, sequence) {
|
|
1952
|
+
const sequenceLength = sequence.length;
|
|
1953
|
+
let matchCount = 0;
|
|
1954
|
+
for await (const element of iterable) {
|
|
1955
|
+
if (element === sequence[matchCount])
|
|
1956
|
+
matchCount++;
|
|
1957
|
+
if (matchCount === sequenceLength)
|
|
1958
|
+
return true;
|
|
1959
|
+
}
|
|
1960
|
+
return false;
|
|
1961
|
+
}
|
|
1962
|
+
matchAsync$1.matchAsync = matchAsync;
|
|
1963
|
+
|
|
1964
|
+
var match$2 = {};
|
|
1965
|
+
|
|
1966
|
+
match$2.match = void 0;
|
|
1967
|
+
function match$1(iterable, sequence) {
|
|
1968
|
+
const sequenceLength = sequence.length;
|
|
1969
|
+
let matchCount = 0;
|
|
1970
|
+
for (const element of iterable) {
|
|
1971
|
+
if (element === sequence[matchCount])
|
|
1972
|
+
matchCount++;
|
|
1973
|
+
if (matchCount === sequenceLength)
|
|
1974
|
+
return true;
|
|
1975
|
+
}
|
|
1976
|
+
return false;
|
|
1977
|
+
}
|
|
1978
|
+
match$2.match = match$1;
|
|
1979
|
+
|
|
1980
|
+
var reduceAsync$1 = {};
|
|
1981
|
+
|
|
1982
|
+
reduceAsync$1.reduceAsync = void 0;
|
|
1983
|
+
const types_1$6 = es2018$2;
|
|
1984
|
+
function reduceAsync(iterable, fn, initialValue) {
|
|
1985
|
+
if ((0, types_1$6.isUndefined)(initialValue)) {
|
|
1986
|
+
return reduceAsyncWithoutInitialValue(iterable, fn);
|
|
1987
|
+
}
|
|
1988
|
+
else {
|
|
1989
|
+
return reduceAsyncWithInitialValue(iterable, fn, initialValue);
|
|
1990
|
+
}
|
|
1991
|
+
}
|
|
1992
|
+
reduceAsync$1.reduceAsync = reduceAsync;
|
|
1993
|
+
function reduceAsyncWithInitialValue(iterable, fn, initialValue) {
|
|
1994
|
+
if ((0, types_1$6.isAsyncIterable)(iterable)) {
|
|
1995
|
+
return reduceAsyncIterable(iterable);
|
|
1996
|
+
}
|
|
1997
|
+
else {
|
|
1998
|
+
return reduceIterable(iterable);
|
|
1999
|
+
}
|
|
2000
|
+
async function reduceIterable(iterable) {
|
|
2001
|
+
let result = initialValue, index = 0;
|
|
2002
|
+
for (const currentValue of iterable) {
|
|
2003
|
+
result = await fn(result, currentValue, index++);
|
|
2004
|
+
}
|
|
2005
|
+
return result;
|
|
2006
|
+
}
|
|
2007
|
+
async function reduceAsyncIterable(iterable) {
|
|
2008
|
+
let result = initialValue, index = 0;
|
|
2009
|
+
for await (const currentValue of iterable) {
|
|
2010
|
+
result = await fn(result, currentValue, index++);
|
|
2011
|
+
}
|
|
2012
|
+
return result;
|
|
2013
|
+
}
|
|
2014
|
+
}
|
|
2015
|
+
function reduceAsyncWithoutInitialValue(iterable, fn) {
|
|
2016
|
+
if ((0, types_1$6.isAsyncIterable)(iterable)) {
|
|
2017
|
+
return reduceAsyncIterable(iterable);
|
|
2018
|
+
}
|
|
2019
|
+
else {
|
|
2020
|
+
return reduceIterable(iterable);
|
|
2021
|
+
}
|
|
2022
|
+
async function reduceAsyncIterable(iterable) {
|
|
2023
|
+
var _a;
|
|
2024
|
+
const iterator = iterable[Symbol.asyncIterator]();
|
|
2025
|
+
let done;
|
|
2026
|
+
try {
|
|
2027
|
+
let result = await readInitialValue(iterator);
|
|
2028
|
+
let index = 1;
|
|
2029
|
+
let value;
|
|
2030
|
+
while ({ value, done } = await iterator.next(), !done) {
|
|
2031
|
+
result = await fn(result, value, index++);
|
|
2032
|
+
}
|
|
2033
|
+
return result;
|
|
2034
|
+
}
|
|
2035
|
+
finally {
|
|
2036
|
+
if (!done)
|
|
2037
|
+
await ((_a = iterator.return) === null || _a === void 0 ? void 0 : _a.call(iterator));
|
|
2038
|
+
}
|
|
2039
|
+
async function readInitialValue(iterator) {
|
|
2040
|
+
const result = await iterator.next();
|
|
2041
|
+
if (result.done) {
|
|
2042
|
+
done = true;
|
|
2043
|
+
throw new Error('Reduce of empty iterable with no initial value');
|
|
2044
|
+
}
|
|
2045
|
+
return result.value;
|
|
2046
|
+
}
|
|
2047
|
+
}
|
|
2048
|
+
async function reduceIterable(iterable) {
|
|
2049
|
+
var _a;
|
|
2050
|
+
const iterator = iterable[Symbol.iterator]();
|
|
2051
|
+
let done;
|
|
2052
|
+
try {
|
|
2053
|
+
let result = readInitialValue(iterator);
|
|
2054
|
+
let index = 1;
|
|
2055
|
+
let value;
|
|
2056
|
+
while ({ value, done } = iterator.next(), !done) {
|
|
2057
|
+
result = await fn(result, value, index++);
|
|
2058
|
+
}
|
|
2059
|
+
return result;
|
|
2060
|
+
}
|
|
2061
|
+
finally {
|
|
2062
|
+
if (!done)
|
|
2063
|
+
(_a = iterator.return) === null || _a === void 0 ? void 0 : _a.call(iterator);
|
|
2064
|
+
}
|
|
2065
|
+
function readInitialValue(iterator) {
|
|
2066
|
+
const result = iterator.next();
|
|
2067
|
+
if (result.done) {
|
|
2068
|
+
done = true;
|
|
2069
|
+
throw new Error('Reduce of empty iterable with no initial value');
|
|
2070
|
+
}
|
|
2071
|
+
return result.value;
|
|
2072
|
+
}
|
|
2073
|
+
}
|
|
2074
|
+
}
|
|
2075
|
+
|
|
2076
|
+
var reduce$1 = {};
|
|
2077
|
+
|
|
2078
|
+
reduce$1.reduce = void 0;
|
|
2079
|
+
const types_1$5 = es2018$2;
|
|
2080
|
+
function reduce(iterable, fn, initialValue) {
|
|
2081
|
+
if ((0, types_1$5.isUndefined)(initialValue)) {
|
|
2082
|
+
return reduceWithoutInitialValue(iterable, fn);
|
|
2083
|
+
}
|
|
2084
|
+
else {
|
|
2085
|
+
return reduceWithInitialValue(iterable, fn, initialValue);
|
|
2086
|
+
}
|
|
2087
|
+
}
|
|
2088
|
+
reduce$1.reduce = reduce;
|
|
2089
|
+
function reduceWithInitialValue(iterable, fn, initialValue) {
|
|
2090
|
+
let result = initialValue, index = 0;
|
|
2091
|
+
for (const currentValue of iterable) {
|
|
2092
|
+
result = fn(result, currentValue, index++);
|
|
2093
|
+
}
|
|
2094
|
+
return result;
|
|
2095
|
+
}
|
|
2096
|
+
function reduceWithoutInitialValue(iterable, fn) {
|
|
2097
|
+
var _a;
|
|
2098
|
+
const iterator = iterable[Symbol.iterator]();
|
|
2099
|
+
let done;
|
|
2100
|
+
try {
|
|
2101
|
+
let result = readInitialValue(iterator);
|
|
2102
|
+
let index = 1;
|
|
2103
|
+
let value;
|
|
2104
|
+
while ({ value, done } = iterator.next(), !done) {
|
|
2105
|
+
result = fn(result, value, index++);
|
|
2106
|
+
}
|
|
2107
|
+
return result;
|
|
2108
|
+
}
|
|
2109
|
+
finally {
|
|
2110
|
+
if (!done)
|
|
2111
|
+
(_a = iterator.return) === null || _a === void 0 ? void 0 : _a.call(iterator);
|
|
2112
|
+
}
|
|
2113
|
+
function readInitialValue(iterator) {
|
|
2114
|
+
const result = iterator.next();
|
|
2115
|
+
if (result.done) {
|
|
2116
|
+
done = true;
|
|
2117
|
+
throw new Error('Reduce of empty iterable with no initial value');
|
|
2118
|
+
}
|
|
2119
|
+
return result.value;
|
|
2120
|
+
}
|
|
2121
|
+
}
|
|
2122
|
+
|
|
2123
|
+
var someAsync$1 = {};
|
|
2124
|
+
|
|
2125
|
+
someAsync$1.someAsync = void 0;
|
|
2126
|
+
const types_1$4 = es2018$2;
|
|
2127
|
+
function someAsync(iterable, predicate) {
|
|
2128
|
+
if ((0, types_1$4.isAsyncIterable)(iterable)) {
|
|
2129
|
+
return someAsyncIterable(iterable);
|
|
2130
|
+
}
|
|
2131
|
+
else {
|
|
2132
|
+
return someIterable(iterable);
|
|
2133
|
+
}
|
|
2134
|
+
async function someIterable(iterable) {
|
|
2135
|
+
let index = 0;
|
|
2136
|
+
for (const element of iterable) {
|
|
2137
|
+
if (await predicate(element, index))
|
|
2138
|
+
return true;
|
|
2139
|
+
index++;
|
|
2140
|
+
}
|
|
2141
|
+
return false;
|
|
2142
|
+
}
|
|
2143
|
+
async function someAsyncIterable(iterable) {
|
|
2144
|
+
let index = 0;
|
|
2145
|
+
for await (const element of iterable) {
|
|
2146
|
+
if (await predicate(element, index))
|
|
2147
|
+
return true;
|
|
2148
|
+
index++;
|
|
2149
|
+
}
|
|
2150
|
+
return false;
|
|
2151
|
+
}
|
|
2152
|
+
}
|
|
2153
|
+
someAsync$1.someAsync = someAsync;
|
|
2154
|
+
|
|
2155
|
+
var some$1 = {};
|
|
2156
|
+
|
|
2157
|
+
some$1.some = void 0;
|
|
2158
|
+
function some(iterable, predicate) {
|
|
2159
|
+
let index = 0;
|
|
2160
|
+
for (const element of iterable) {
|
|
2161
|
+
if (predicate(element, index))
|
|
2162
|
+
return true;
|
|
2163
|
+
index++;
|
|
2164
|
+
}
|
|
2165
|
+
return false;
|
|
2166
|
+
}
|
|
2167
|
+
some$1.some = some;
|
|
2168
|
+
|
|
2169
|
+
var lastAsync$1 = {};
|
|
2170
|
+
|
|
2171
|
+
lastAsync$1.lastAsync = void 0;
|
|
2172
|
+
async function lastAsync(iterable) {
|
|
2173
|
+
var _a;
|
|
2174
|
+
const iterator = iterable[Symbol.asyncIterator]();
|
|
2175
|
+
let done;
|
|
2176
|
+
try {
|
|
2177
|
+
let value;
|
|
2178
|
+
let result;
|
|
2179
|
+
while ({ value, done } = await iterator.next(), !done) {
|
|
2180
|
+
result = value;
|
|
2181
|
+
}
|
|
2182
|
+
return result;
|
|
2183
|
+
}
|
|
2184
|
+
finally {
|
|
2185
|
+
if (!done)
|
|
2186
|
+
await ((_a = iterator.return) === null || _a === void 0 ? void 0 : _a.call(iterator));
|
|
2187
|
+
}
|
|
2188
|
+
}
|
|
2189
|
+
lastAsync$1.lastAsync = lastAsync;
|
|
2190
|
+
|
|
2191
|
+
var last$1 = {};
|
|
2192
|
+
|
|
2193
|
+
last$1.last = void 0;
|
|
2194
|
+
function last(iterable) {
|
|
2195
|
+
var _a;
|
|
2196
|
+
const iterator = iterable[Symbol.iterator]();
|
|
2197
|
+
let done;
|
|
2198
|
+
try {
|
|
2199
|
+
let value;
|
|
2200
|
+
let result;
|
|
2201
|
+
while ({ value, done } = iterator.next(), !done) {
|
|
2202
|
+
result = value;
|
|
2203
|
+
}
|
|
2204
|
+
return result;
|
|
2205
|
+
}
|
|
2206
|
+
finally {
|
|
2207
|
+
if (!done)
|
|
2208
|
+
(_a = iterator.return) === null || _a === void 0 ? void 0 : _a.call(iterator);
|
|
2209
|
+
}
|
|
2210
|
+
}
|
|
2211
|
+
last$1.last = last;
|
|
2212
|
+
|
|
2213
|
+
var toArrayAsync$1 = {};
|
|
2214
|
+
|
|
2215
|
+
toArrayAsync$1.toArrayAsync = void 0;
|
|
2216
|
+
const consume_1$3 = consume$1;
|
|
2217
|
+
function toArrayAsync(iterable) {
|
|
2218
|
+
return (0, consume_1$3.consume)(iterable, async (iterable) => {
|
|
2219
|
+
const result = [];
|
|
2220
|
+
for await (const element of iterable) {
|
|
2221
|
+
result.push(element);
|
|
2222
|
+
}
|
|
2223
|
+
return result;
|
|
2224
|
+
});
|
|
2225
|
+
}
|
|
2226
|
+
toArrayAsync$1.toArrayAsync = toArrayAsync;
|
|
2227
|
+
|
|
2228
|
+
var toArray$1 = {};
|
|
2229
|
+
|
|
2230
|
+
toArray$1.toArray = void 0;
|
|
2231
|
+
const consume_1$2 = consume$1;
|
|
2232
|
+
function toArray(iterable) {
|
|
2233
|
+
return (0, consume_1$2.consume)(iterable, iterable => Array.from(iterable));
|
|
2234
|
+
}
|
|
2235
|
+
toArray$1.toArray = toArray;
|
|
2236
|
+
|
|
2237
|
+
var toSetAsync$1 = {};
|
|
2238
|
+
|
|
2239
|
+
toSetAsync$1.toSetAsync = void 0;
|
|
2240
|
+
const consume_1$1 = consume$1;
|
|
2241
|
+
function toSetAsync(iterable) {
|
|
2242
|
+
return (0, consume_1$1.consume)(iterable, async (iterable) => {
|
|
2243
|
+
const result = new Set();
|
|
2244
|
+
for await (const element of iterable) {
|
|
2245
|
+
result.add(element);
|
|
2246
|
+
}
|
|
2247
|
+
return result;
|
|
2248
|
+
});
|
|
2249
|
+
}
|
|
2250
|
+
toSetAsync$1.toSetAsync = toSetAsync;
|
|
2251
|
+
|
|
2252
|
+
var toSet$1 = {};
|
|
2253
|
+
|
|
2254
|
+
toSet$1.toSet = void 0;
|
|
2255
|
+
const consume_1 = consume$1;
|
|
2256
|
+
function toSet(iterable) {
|
|
2257
|
+
return (0, consume_1.consume)(iterable, iterable => new Set(iterable));
|
|
2258
|
+
}
|
|
2259
|
+
toSet$1.toSet = toSet;
|
|
2260
|
+
|
|
2261
|
+
(function (exports) {
|
|
2262
|
+
var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
2263
|
+
if (k2 === undefined) k2 = k;
|
|
2264
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
2265
|
+
}) : (function(o, m, k, k2) {
|
|
2266
|
+
if (k2 === undefined) k2 = k;
|
|
2267
|
+
o[k2] = m[k];
|
|
2268
|
+
}));
|
|
2269
|
+
var __exportStar = (commonjsGlobal && commonjsGlobal.__exportStar) || function(m, exports) {
|
|
2270
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
2271
|
+
};__exportStar(consume$1, exports);
|
|
2272
|
+
__exportStar(eachAsync$1, exports);
|
|
2273
|
+
__exportStar(each$1, exports);
|
|
2274
|
+
__exportStar(everyAsync$1, exports);
|
|
2275
|
+
__exportStar(every$1, exports);
|
|
2276
|
+
__exportStar(findAsync$1, exports);
|
|
2277
|
+
__exportStar(find$3, exports);
|
|
2278
|
+
__exportStar(firstAsync$1, exports);
|
|
2279
|
+
__exportStar(first$1, exports);
|
|
2280
|
+
__exportStar(includesAsync$1, exports);
|
|
2281
|
+
__exportStar(includes$1, exports);
|
|
2282
|
+
__exportStar(matchAsync$1, exports);
|
|
2283
|
+
__exportStar(match$2, exports);
|
|
2284
|
+
__exportStar(reduceAsync$1, exports);
|
|
2285
|
+
__exportStar(reduce$1, exports);
|
|
2286
|
+
__exportStar(someAsync$1, exports);
|
|
2287
|
+
__exportStar(some$1, exports);
|
|
2288
|
+
__exportStar(lastAsync$1, exports);
|
|
2289
|
+
__exportStar(last$1, exports);
|
|
2290
|
+
__exportStar(toArrayAsync$1, exports);
|
|
2291
|
+
__exportStar(toArray$1, exports);
|
|
2292
|
+
__exportStar(toSetAsync$1, exports);
|
|
2293
|
+
__exportStar(toSet$1, exports);
|
|
2294
|
+
|
|
2295
|
+
}(output));
|
|
2296
|
+
|
|
2297
|
+
(function (exports) {
|
|
2298
|
+
var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
2299
|
+
if (k2 === undefined) k2 = k;
|
|
2300
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
2301
|
+
}) : (function(o, m, k, k2) {
|
|
2302
|
+
if (k2 === undefined) k2 = k;
|
|
2303
|
+
o[k2] = m[k];
|
|
2304
|
+
}));
|
|
2305
|
+
var __exportStar = (commonjsGlobal && commonjsGlobal.__exportStar) || function(m, exports) {
|
|
2306
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
2307
|
+
};__exportStar(middleware, exports);
|
|
2308
|
+
__exportStar(output, exports);
|
|
2309
|
+
|
|
2310
|
+
}(es2018$5));
|
|
2311
|
+
|
|
2312
|
+
unwrap$1.unwrap = void 0;
|
|
2313
|
+
const flat_map_1 = flatMap$1;
|
|
2314
|
+
const iterable_operator_1$2 = es2018$5;
|
|
2315
|
+
function unwrap(node, predicate) {
|
|
2316
|
+
return (0, flat_map_1.flatMap)(node, node => {
|
|
2317
|
+
if (predicate(node)) {
|
|
2318
|
+
return (0, iterable_operator_1$2.toArray)((0, iterable_operator_1$2.flatten)((0, iterable_operator_1$2.map)(node.childNodes, node => unwrap(node, predicate))));
|
|
2319
|
+
}
|
|
2320
|
+
else {
|
|
2321
|
+
return [node];
|
|
2322
|
+
}
|
|
2323
|
+
});
|
|
2324
|
+
}
|
|
2325
|
+
unwrap$1.unwrap = unwrap;
|
|
2326
|
+
|
|
2327
|
+
var find$1 = {};
|
|
2328
|
+
|
|
2329
|
+
var findInDescendantNodes$1 = {};
|
|
2330
|
+
|
|
2331
|
+
var traverseDescendantNodes$1 = {};
|
|
2332
|
+
|
|
2333
|
+
traverseDescendantNodes$1.traverseDescendantNodes = void 0;
|
|
2334
|
+
function* traverseDescendantNodes(node) {
|
|
2335
|
+
for (const childNode of node.childNodes) {
|
|
2336
|
+
yield childNode;
|
|
2337
|
+
yield* traverseDescendantNodes(childNode);
|
|
2338
|
+
}
|
|
2339
|
+
}
|
|
2340
|
+
traverseDescendantNodes$1.traverseDescendantNodes = traverseDescendantNodes;
|
|
2341
|
+
|
|
2342
|
+
findInDescendantNodes$1.findInDescendantNodes = void 0;
|
|
2343
|
+
const traverse_descendant_nodes_1 = traverseDescendantNodes$1;
|
|
2344
|
+
const iterable_operator_1$1 = es2018$5;
|
|
2345
|
+
function findInDescendantNodes(node, predicate) {
|
|
2346
|
+
return (0, iterable_operator_1$1.find)((0, traverse_descendant_nodes_1.traverseDescendantNodes)(node), node => predicate(node));
|
|
2347
|
+
}
|
|
2348
|
+
findInDescendantNodes$1.findInDescendantNodes = findInDescendantNodes;
|
|
2349
|
+
|
|
2350
|
+
find$1.find = void 0;
|
|
2351
|
+
const find_in_descendant_nodes_1 = findInDescendantNodes$1;
|
|
2352
|
+
function find(node, predicate) {
|
|
2353
|
+
if (predicate(node))
|
|
2354
|
+
return node;
|
|
2355
|
+
return (0, find_in_descendant_nodes_1.findInDescendantNodes)(node, predicate);
|
|
2356
|
+
}
|
|
2357
|
+
find$1.find = find;
|
|
2358
|
+
|
|
2359
|
+
var parse$1 = {};
|
|
2360
|
+
|
|
2361
|
+
parse$1.parse = void 0;
|
|
2362
|
+
function parse(html) {
|
|
2363
|
+
const div = document.createElement('div');
|
|
2364
|
+
div.innerHTML = html;
|
|
2365
|
+
return [...div.childNodes];
|
|
2366
|
+
}
|
|
2367
|
+
parse$1.parse = parse;
|
|
2368
|
+
|
|
2369
|
+
var stringify$1 = {};
|
|
2370
|
+
|
|
2371
|
+
stringify$1.stringify = void 0;
|
|
2372
|
+
function stringify(nodes) {
|
|
2373
|
+
const div = document.createElement('div');
|
|
2374
|
+
nodes.forEach(x => div.append(x.cloneNode(true)));
|
|
2375
|
+
return div.innerHTML;
|
|
2376
|
+
}
|
|
2377
|
+
stringify$1.stringify = stringify;
|
|
2378
|
+
|
|
2379
|
+
var normalize$1 = {};
|
|
2380
|
+
|
|
2381
|
+
normalize$1.normalize = void 0;
|
|
2382
|
+
const parse_1 = parse$1;
|
|
2383
|
+
const stringify_1 = stringify$1;
|
|
2384
|
+
function normalize(html) {
|
|
2385
|
+
return (0, stringify_1.stringify)((0, parse_1.parse)(html));
|
|
2386
|
+
}
|
|
2387
|
+
normalize$1.normalize = normalize;
|
|
2388
|
+
|
|
2389
|
+
var removeAttributes$1 = {};
|
|
2390
|
+
|
|
2391
|
+
removeAttributes$1.removeAttributes = void 0;
|
|
2392
|
+
function removeAttributes(node, predicate) {
|
|
2393
|
+
if (node instanceof Element) {
|
|
2394
|
+
const attributeNames = Array.from(node.attributes).map(x => x.name);
|
|
2395
|
+
for (const name of attributeNames) {
|
|
2396
|
+
if (predicate(name)) {
|
|
2397
|
+
node.removeAttribute(name);
|
|
2398
|
+
}
|
|
2399
|
+
}
|
|
2400
|
+
}
|
|
2401
|
+
}
|
|
2402
|
+
removeAttributes$1.removeAttributes = removeAttributes;
|
|
2403
|
+
|
|
2404
|
+
var getBySelector$1 = {};
|
|
2405
|
+
|
|
2406
|
+
var isDocument$1 = {};
|
|
2407
|
+
|
|
2408
|
+
var nodeType = {};
|
|
2409
|
+
|
|
2410
|
+
(function (exports) {
|
|
2411
|
+
exports.NodeType = void 0;
|
|
2412
|
+
const nodeExists = 'Node' in globalThis;
|
|
2413
|
+
(function (NodeType) {
|
|
2414
|
+
NodeType[NodeType["ELEMENT_NODE"] = nodeExists
|
|
2415
|
+
? globalThis.Node.ELEMENT_NODE
|
|
2416
|
+
: 1] = "ELEMENT_NODE";
|
|
2417
|
+
NodeType[NodeType["ATTRIBUTE_NODE"] = nodeExists
|
|
2418
|
+
? globalThis.Node.ATTRIBUTE_NODE
|
|
2419
|
+
: 2] = "ATTRIBUTE_NODE";
|
|
2420
|
+
NodeType[NodeType["TEXT_NODE"] = nodeExists
|
|
2421
|
+
? globalThis.Node.TEXT_NODE
|
|
2422
|
+
: 3] = "TEXT_NODE";
|
|
2423
|
+
NodeType[NodeType["CDATA_SECTION_NODE"] = nodeExists
|
|
2424
|
+
? globalThis.Node.CDATA_SECTION_NODE
|
|
2425
|
+
: 4] = "CDATA_SECTION_NODE";
|
|
2426
|
+
NodeType[NodeType["ENTITY_REFERENCE_NODE"] = nodeExists
|
|
2427
|
+
? globalThis.Node.ENTITY_REFERENCE_NODE
|
|
2428
|
+
: 5] = "ENTITY_REFERENCE_NODE";
|
|
2429
|
+
NodeType[NodeType["ENTITY_NODE"] = nodeExists
|
|
2430
|
+
? globalThis.Node.ENTITY_NODE
|
|
2431
|
+
: 6] = "ENTITY_NODE";
|
|
2432
|
+
NodeType[NodeType["PROCESSING_INSTRUCTION_NODE"] = nodeExists
|
|
2433
|
+
? globalThis.Node.PROCESSING_INSTRUCTION_NODE
|
|
2434
|
+
: 7] = "PROCESSING_INSTRUCTION_NODE";
|
|
2435
|
+
NodeType[NodeType["COMMENT_NODE"] = nodeExists
|
|
2436
|
+
? globalThis.Node.COMMENT_NODE
|
|
2437
|
+
: 8] = "COMMENT_NODE";
|
|
2438
|
+
NodeType[NodeType["DOCUMENT_NODE"] = nodeExists
|
|
2439
|
+
? globalThis.Node.DOCUMENT_NODE
|
|
2440
|
+
: 9] = "DOCUMENT_NODE";
|
|
2441
|
+
NodeType[NodeType["DOCUMENT_TYPE_NODE"] = nodeExists
|
|
2442
|
+
? globalThis.Node.DOCUMENT_TYPE_NODE
|
|
2443
|
+
: 10] = "DOCUMENT_TYPE_NODE";
|
|
2444
|
+
NodeType[NodeType["DOCUMENT_FRAGMENT_NODE"] = nodeExists
|
|
2445
|
+
? globalThis.Node.DOCUMENT_FRAGMENT_NODE
|
|
2446
|
+
: 11] = "DOCUMENT_FRAGMENT_NODE";
|
|
2447
|
+
NodeType[NodeType["NOTATION_NODE"] = nodeExists
|
|
2448
|
+
? globalThis.Node.NOTATION_NODE
|
|
2449
|
+
: 12] = "NOTATION_NODE";
|
|
2450
|
+
})(exports.NodeType || (exports.NodeType = {}));
|
|
2451
|
+
|
|
2452
|
+
}(nodeType));
|
|
2453
|
+
|
|
2454
|
+
isDocument$1.isDocument = void 0;
|
|
2455
|
+
const node_type_1$2 = nodeType;
|
|
2456
|
+
const types_1$3 = es2018$2;
|
|
2457
|
+
function isDocument(val) {
|
|
2458
|
+
if ('HTMLDocument' in globalThis && val instanceof HTMLDocument)
|
|
2459
|
+
return true;
|
|
2460
|
+
return (0, types_1$3.isRecord)(val) && val.nodeType === node_type_1$2.NodeType.DOCUMENT_NODE;
|
|
2461
|
+
}
|
|
2462
|
+
isDocument$1.isDocument = isDocument;
|
|
2463
|
+
|
|
2464
|
+
var isElement$1 = {};
|
|
2465
|
+
|
|
2466
|
+
isElement$1.isElement = void 0;
|
|
2467
|
+
const node_type_1$1 = nodeType;
|
|
2468
|
+
const types_1$2 = es2018$2;
|
|
2469
|
+
function isElement(val) {
|
|
2470
|
+
if ('HTMLElement' in globalThis && val instanceof HTMLElement)
|
|
2471
|
+
return true;
|
|
2472
|
+
return (0, types_1$2.isRecord)(val) && val.nodeType === node_type_1$1.NodeType.ELEMENT_NODE;
|
|
2473
|
+
}
|
|
2474
|
+
isElement$1.isElement = isElement;
|
|
2475
|
+
|
|
2476
|
+
getBySelector$1.getBySelector = void 0;
|
|
2477
|
+
const is_document_1$2 = isDocument$1;
|
|
2478
|
+
const is_element_1$4 = isElement$1;
|
|
2479
|
+
function getBySelector(selectors) {
|
|
2480
|
+
const root = ((0, is_element_1$4.isElement)(this) || (0, is_document_1$2.isDocument)(this)
|
|
2481
|
+
? this
|
|
2482
|
+
: document);
|
|
2483
|
+
const result = root.querySelector(selectors);
|
|
2484
|
+
if (result) {
|
|
2485
|
+
return result;
|
|
2486
|
+
}
|
|
2487
|
+
else {
|
|
2488
|
+
throw new Error(`Could not find any elements matching ${selectors}`);
|
|
2489
|
+
}
|
|
2490
|
+
}
|
|
2491
|
+
getBySelector$1.getBySelector = getBySelector;
|
|
2492
|
+
|
|
2493
|
+
var getAllBySelector$1 = {};
|
|
2494
|
+
|
|
2495
|
+
getAllBySelector$1.getAllBySelector = void 0;
|
|
2496
|
+
const is_document_1$1 = isDocument$1;
|
|
2497
|
+
const is_element_1$3 = isElement$1;
|
|
2498
|
+
function getAllBySelector(selectors) {
|
|
2499
|
+
const root = ((0, is_element_1$3.isElement)(this) || (0, is_document_1$1.isDocument)(this)
|
|
2500
|
+
? this
|
|
2501
|
+
: document);
|
|
2502
|
+
const results = root.querySelectorAll(selectors);
|
|
2503
|
+
if (results.length) {
|
|
2504
|
+
return Array.from(results);
|
|
2505
|
+
}
|
|
2506
|
+
else {
|
|
2507
|
+
throw new Error(`Could not find any elements matching ${selectors}`);
|
|
2508
|
+
}
|
|
2509
|
+
}
|
|
2510
|
+
getAllBySelector$1.getAllBySelector = getAllBySelector;
|
|
2511
|
+
|
|
2512
|
+
var traverseAncestorNodes$1 = {};
|
|
2513
|
+
|
|
2514
|
+
traverseAncestorNodes$1.traverseAncestorNodes = void 0;
|
|
2515
|
+
function* traverseAncestorNodes(node) {
|
|
2516
|
+
const parentNode = node.parentNode;
|
|
2517
|
+
if (parentNode) {
|
|
2518
|
+
yield parentNode;
|
|
2519
|
+
yield* traverseAncestorNodes(parentNode);
|
|
2520
|
+
}
|
|
2521
|
+
}
|
|
2522
|
+
traverseAncestorNodes$1.traverseAncestorNodes = traverseAncestorNodes;
|
|
2523
|
+
|
|
2524
|
+
var findInAncestorNodes$1 = {};
|
|
2525
|
+
|
|
2526
|
+
findInAncestorNodes$1.findInAncestorNodes = void 0;
|
|
2527
|
+
const traverse_ancestor_nodes_1 = traverseAncestorNodes$1;
|
|
2528
|
+
const iterable_operator_1 = es2018$5;
|
|
2529
|
+
function findInAncestorNodes(node, predicate) {
|
|
2530
|
+
return (0, iterable_operator_1.find)((0, traverse_ancestor_nodes_1.traverseAncestorNodes)(node), node => predicate(node));
|
|
2531
|
+
}
|
|
2532
|
+
findInAncestorNodes$1.findInAncestorNodes = findInAncestorNodes;
|
|
2533
|
+
|
|
2534
|
+
var findInFollowingSiblingNodes$1 = {};
|
|
2535
|
+
|
|
2536
|
+
findInFollowingSiblingNodes$1.findInFollowingSiblingNodes = void 0;
|
|
2537
|
+
function findInFollowingSiblingNodes(node, predicate) {
|
|
2538
|
+
const nextNode = node.nextSibling;
|
|
2539
|
+
if (!nextNode)
|
|
2540
|
+
return undefined;
|
|
2541
|
+
if (predicate(nextNode)) {
|
|
2542
|
+
return nextNode;
|
|
2543
|
+
}
|
|
2544
|
+
else {
|
|
2545
|
+
return findInFollowingSiblingNodes(nextNode, predicate);
|
|
2546
|
+
}
|
|
2547
|
+
}
|
|
2548
|
+
findInFollowingSiblingNodes$1.findInFollowingSiblingNodes = findInFollowingSiblingNodes;
|
|
2549
|
+
|
|
2550
|
+
var findInPrecedingSiblingNodes$1 = {};
|
|
2551
|
+
|
|
2552
|
+
findInPrecedingSiblingNodes$1.findInPrecedingSiblingNodes = void 0;
|
|
2553
|
+
function findInPrecedingSiblingNodes(node, predicate) {
|
|
2554
|
+
const previousNode = node.previousSibling;
|
|
2555
|
+
if (!previousNode)
|
|
2556
|
+
return undefined;
|
|
2557
|
+
if (predicate(previousNode)) {
|
|
2558
|
+
return previousNode;
|
|
2559
|
+
}
|
|
2560
|
+
else {
|
|
2561
|
+
return findInPrecedingSiblingNodes(previousNode, predicate);
|
|
2562
|
+
}
|
|
2563
|
+
}
|
|
2564
|
+
findInPrecedingSiblingNodes$1.findInPrecedingSiblingNodes = findInPrecedingSiblingNodes;
|
|
2565
|
+
|
|
2566
|
+
var parentNode$1 = {};
|
|
2567
|
+
|
|
2568
|
+
parentNode$1.parentNode = void 0;
|
|
2569
|
+
const errors_1$6 = es2018$3;
|
|
2570
|
+
function parentNode(node, distance = 1) {
|
|
2571
|
+
(0, errors_1$6.assert)(Number.isInteger(distance), 'parameter distance must be an integer');
|
|
2572
|
+
(0, errors_1$6.assert)(distance >= 1, 'parameter distance must be greater than or equal to 1');
|
|
2573
|
+
return _parentNode(node, distance);
|
|
2574
|
+
}
|
|
2575
|
+
parentNode$1.parentNode = parentNode;
|
|
2576
|
+
function _parentNode(node, distance) {
|
|
2577
|
+
const currentNode = node.parentNode;
|
|
2578
|
+
if (!currentNode)
|
|
2579
|
+
return undefined;
|
|
2580
|
+
if (distance === 1) {
|
|
2581
|
+
return currentNode;
|
|
2582
|
+
}
|
|
2583
|
+
else {
|
|
2584
|
+
return _parentNode(currentNode, distance - 1);
|
|
2585
|
+
}
|
|
2586
|
+
}
|
|
2587
|
+
|
|
2588
|
+
var nextSibling$2 = {};
|
|
2589
|
+
|
|
2590
|
+
nextSibling$2.nextSibling = void 0;
|
|
2591
|
+
const errors_1$5 = es2018$3;
|
|
2592
|
+
function nextSibling$1(node, distance = 1) {
|
|
2593
|
+
(0, errors_1$5.assert)(Number.isInteger(distance), 'parameter distance must be an integer');
|
|
2594
|
+
(0, errors_1$5.assert)(distance >= 1, 'parameter distance must be greater than or equal to 1');
|
|
2595
|
+
return _nextSibling(node, distance);
|
|
2596
|
+
}
|
|
2597
|
+
nextSibling$2.nextSibling = nextSibling$1;
|
|
2598
|
+
function _nextSibling(node, distance) {
|
|
2599
|
+
const currentNode = node.nextSibling;
|
|
2600
|
+
if (!currentNode)
|
|
2601
|
+
return undefined;
|
|
2602
|
+
if (distance === 1) {
|
|
2603
|
+
return currentNode;
|
|
2604
|
+
}
|
|
2605
|
+
else {
|
|
2606
|
+
return _nextSibling(currentNode, distance - 1);
|
|
2607
|
+
}
|
|
2608
|
+
}
|
|
2609
|
+
|
|
2610
|
+
var previousSibling$1 = {};
|
|
2611
|
+
|
|
2612
|
+
previousSibling$1.previousSibling = void 0;
|
|
2613
|
+
const errors_1$4 = es2018$3;
|
|
2614
|
+
function previousSibling(node, distance = 1) {
|
|
2615
|
+
(0, errors_1$4.assert)(Number.isInteger(distance), 'parameter distance must be an integer');
|
|
2616
|
+
(0, errors_1$4.assert)(distance >= 1, 'parameter distance must be greater than or equal to 1');
|
|
2617
|
+
return _previousSibling(node, distance);
|
|
2618
|
+
}
|
|
2619
|
+
previousSibling$1.previousSibling = previousSibling;
|
|
2620
|
+
function _previousSibling(node, distance = 1) {
|
|
2621
|
+
const currentNode = node.previousSibling;
|
|
2622
|
+
if (!currentNode)
|
|
2623
|
+
return undefined;
|
|
2624
|
+
if (distance === 1) {
|
|
2625
|
+
return currentNode;
|
|
2626
|
+
}
|
|
2627
|
+
else {
|
|
2628
|
+
return _previousSibling(currentNode, distance - 1);
|
|
2629
|
+
}
|
|
2630
|
+
}
|
|
2631
|
+
|
|
2632
|
+
var nextElementSibling$2 = {};
|
|
2633
|
+
|
|
2634
|
+
nextElementSibling$2.nextElementSibling = void 0;
|
|
2635
|
+
const is_element_1$2 = isElement$1;
|
|
2636
|
+
const errors_1$3 = es2018$3;
|
|
2637
|
+
function nextElementSibling$1(node, distance = 1) {
|
|
2638
|
+
(0, errors_1$3.assert)(Number.isInteger(distance), 'parameter distance must be an integer');
|
|
2639
|
+
(0, errors_1$3.assert)(distance >= 1, 'parameter distance must be greater than or equal to 1');
|
|
2640
|
+
return _nextElementSibling(node, distance);
|
|
2641
|
+
}
|
|
2642
|
+
nextElementSibling$2.nextElementSibling = nextElementSibling$1;
|
|
2643
|
+
function _nextElementSibling(node, distance) {
|
|
2644
|
+
const currentNode = node.nextSibling;
|
|
2645
|
+
if (!currentNode)
|
|
2646
|
+
return undefined;
|
|
2647
|
+
if ((0, is_element_1$2.isElement)(currentNode)) {
|
|
2648
|
+
if (distance === 1) {
|
|
2649
|
+
return currentNode;
|
|
2650
|
+
}
|
|
2651
|
+
else {
|
|
2652
|
+
return _nextElementSibling(currentNode, distance - 1);
|
|
2653
|
+
}
|
|
2654
|
+
}
|
|
2655
|
+
else {
|
|
2656
|
+
return _nextElementSibling(currentNode, distance);
|
|
2657
|
+
}
|
|
2658
|
+
}
|
|
2659
|
+
|
|
2660
|
+
var previousElementSibling$1 = {};
|
|
2661
|
+
|
|
2662
|
+
previousElementSibling$1.previousElementSibling = void 0;
|
|
2663
|
+
const is_element_1$1 = isElement$1;
|
|
2664
|
+
const errors_1$2 = es2018$3;
|
|
2665
|
+
function previousElementSibling(node, distance = 1) {
|
|
2666
|
+
(0, errors_1$2.assert)(Number.isInteger(distance), 'parameter distance must be an integer');
|
|
2667
|
+
(0, errors_1$2.assert)(distance >= 1, 'parameter distance must be greater than or equal to 1');
|
|
2668
|
+
return _previousElementSibling(node, distance);
|
|
2669
|
+
}
|
|
2670
|
+
previousElementSibling$1.previousElementSibling = previousElementSibling;
|
|
2671
|
+
function _previousElementSibling(node, distance = 1) {
|
|
2672
|
+
const currentNode = node.previousSibling;
|
|
2673
|
+
if (!currentNode)
|
|
2674
|
+
return undefined;
|
|
2675
|
+
if ((0, is_element_1$1.isElement)(currentNode)) {
|
|
2676
|
+
if (distance === 1) {
|
|
2677
|
+
return currentNode;
|
|
2678
|
+
}
|
|
2679
|
+
else {
|
|
2680
|
+
return _previousElementSibling(currentNode, distance - 1);
|
|
2681
|
+
}
|
|
2682
|
+
}
|
|
2683
|
+
else {
|
|
2684
|
+
return _previousElementSibling(currentNode, distance);
|
|
2685
|
+
}
|
|
2686
|
+
}
|
|
2687
|
+
|
|
2688
|
+
var isntDocument$1 = {};
|
|
2689
|
+
|
|
2690
|
+
isntDocument$1.isntDocument = void 0;
|
|
2691
|
+
const is_document_1 = isDocument$1;
|
|
2692
|
+
function isntDocument(val) {
|
|
2693
|
+
return !(0, is_document_1.isDocument)(val);
|
|
2694
|
+
}
|
|
2695
|
+
isntDocument$1.isntDocument = isntDocument;
|
|
2696
|
+
|
|
2697
|
+
var isntElement$1 = {};
|
|
2698
|
+
|
|
2699
|
+
isntElement$1.isntElement = void 0;
|
|
2700
|
+
const is_element_1 = isElement$1;
|
|
2701
|
+
function isntElement(val) {
|
|
2702
|
+
return !(0, is_element_1.isElement)(val);
|
|
2703
|
+
}
|
|
2704
|
+
isntElement$1.isntElement = isntElement;
|
|
2705
|
+
|
|
2706
|
+
var isNode$1 = {};
|
|
2707
|
+
|
|
2708
|
+
isNode$1.isNode = void 0;
|
|
2709
|
+
const types_1$1 = es2018$2;
|
|
2710
|
+
function isNode(val) {
|
|
2711
|
+
if ('Node' in globalThis && val instanceof Node)
|
|
2712
|
+
return true;
|
|
2713
|
+
return (0, types_1$1.isObject)(val) && 'nodeType' in val;
|
|
2714
|
+
}
|
|
2715
|
+
isNode$1.isNode = isNode;
|
|
2716
|
+
|
|
2717
|
+
var isntNode$1 = {};
|
|
2718
|
+
|
|
2719
|
+
isntNode$1.isntNode = void 0;
|
|
2720
|
+
const is_node_1$1 = isNode$1;
|
|
2721
|
+
function isntNode(val) {
|
|
2722
|
+
return !(0, is_node_1$1.isNode)(val);
|
|
2723
|
+
}
|
|
2724
|
+
isntNode$1.isntNode = isntNode;
|
|
2725
|
+
|
|
2726
|
+
var isTextNode$1 = {};
|
|
2727
|
+
|
|
2728
|
+
isTextNode$1.isTextNode = void 0;
|
|
2729
|
+
const node_type_1 = nodeType;
|
|
2730
|
+
const types_1 = es2018$2;
|
|
2731
|
+
function isTextNode(val) {
|
|
2732
|
+
if ('Text' in globalThis && val instanceof Text)
|
|
2733
|
+
return true;
|
|
2734
|
+
return (0, types_1.isRecord)(val) && val.nodeType === node_type_1.NodeType.TEXT_NODE;
|
|
2735
|
+
}
|
|
2736
|
+
isTextNode$1.isTextNode = isTextNode;
|
|
2737
|
+
|
|
2738
|
+
var isntTextNode$1 = {};
|
|
2739
|
+
|
|
2740
|
+
isntTextNode$1.isntTextNode = void 0;
|
|
2741
|
+
const is_text_node_1 = isTextNode$1;
|
|
2742
|
+
function isntTextNode(val) {
|
|
2743
|
+
return !(0, is_text_node_1.isTextNode)(val);
|
|
2744
|
+
}
|
|
2745
|
+
isntTextNode$1.isntTextNode = isntTextNode;
|
|
2746
|
+
|
|
2747
|
+
var isParentNode$1 = {};
|
|
2748
|
+
|
|
2749
|
+
isParentNode$1.isParentNode = void 0;
|
|
2750
|
+
const is_node_1 = isNode$1;
|
|
2751
|
+
function isParentNode(val) {
|
|
2752
|
+
return (0, is_node_1.isNode)(val) && 'children' in val;
|
|
2753
|
+
}
|
|
2754
|
+
isParentNode$1.isParentNode = isParentNode;
|
|
2755
|
+
|
|
2756
|
+
var isntParentNode$1 = {};
|
|
2757
|
+
|
|
2758
|
+
isntParentNode$1.isntParentNode = void 0;
|
|
2759
|
+
const is_parent_node_1 = isParentNode$1;
|
|
2760
|
+
function isntParentNode(val) {
|
|
2761
|
+
return !(0, is_parent_node_1.isParentNode)(val);
|
|
2762
|
+
}
|
|
2763
|
+
isntParentNode$1.isntParentNode = isntParentNode;
|
|
2764
|
+
|
|
2765
|
+
var xpathResultType = {};
|
|
2766
|
+
|
|
2767
|
+
(function (exports) {
|
|
2768
|
+
exports.XPathResultType = void 0;
|
|
2769
|
+
const xpathResultExists = 'XPathResult' in globalThis;
|
|
2770
|
+
(function (XPathResultType) {
|
|
2771
|
+
XPathResultType[XPathResultType["ANY_TYPE"] = xpathResultExists
|
|
2772
|
+
? globalThis.XPathResult.ANY_TYPE
|
|
2773
|
+
: 0] = "ANY_TYPE";
|
|
2774
|
+
XPathResultType[XPathResultType["NUMBER_TYPE"] = xpathResultExists
|
|
2775
|
+
? globalThis.XPathResult.NUMBER_TYPE
|
|
2776
|
+
: 1] = "NUMBER_TYPE";
|
|
2777
|
+
XPathResultType[XPathResultType["STRING_TYPE"] = xpathResultExists
|
|
2778
|
+
? globalThis.XPathResult.STRING_TYPE
|
|
2779
|
+
: 2] = "STRING_TYPE";
|
|
2780
|
+
XPathResultType[XPathResultType["BOOLEAN_TYPE"] = xpathResultExists
|
|
2781
|
+
? globalThis.XPathResult.BOOLEAN_TYPE
|
|
2782
|
+
: 3] = "BOOLEAN_TYPE";
|
|
2783
|
+
XPathResultType[XPathResultType["UNORDERED_NODE_ITERATOR_TYPE"] = xpathResultExists
|
|
2784
|
+
? globalThis.XPathResult.UNORDERED_NODE_ITERATOR_TYPE
|
|
2785
|
+
: 4] = "UNORDERED_NODE_ITERATOR_TYPE";
|
|
2786
|
+
XPathResultType[XPathResultType["ORDERED_NODE_ITERATOR_TYPE"] = xpathResultExists
|
|
2787
|
+
? globalThis.XPathResult.ORDERED_NODE_ITERATOR_TYPE
|
|
2788
|
+
: 5] = "ORDERED_NODE_ITERATOR_TYPE";
|
|
2789
|
+
XPathResultType[XPathResultType["UNORDERED_NODE_SNAPSHOT_TYPE"] = xpathResultExists
|
|
2790
|
+
? globalThis.XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE
|
|
2791
|
+
: 6] = "UNORDERED_NODE_SNAPSHOT_TYPE";
|
|
2792
|
+
XPathResultType[XPathResultType["ORDERED_NODE_SNAPSHOT_TYPE"] = xpathResultExists
|
|
2793
|
+
? globalThis.XPathResult.ORDERED_NODE_SNAPSHOT_TYPE
|
|
2794
|
+
: 7] = "ORDERED_NODE_SNAPSHOT_TYPE";
|
|
2795
|
+
XPathResultType[XPathResultType["ANY_UNORDERED_NODE_TYPE"] = xpathResultExists
|
|
2796
|
+
? globalThis.XPathResult.ANY_UNORDERED_NODE_TYPE
|
|
2797
|
+
: 8] = "ANY_UNORDERED_NODE_TYPE";
|
|
2798
|
+
XPathResultType[XPathResultType["FIRST_ORDERED_NODE_TYPE"] = xpathResultExists
|
|
2799
|
+
? globalThis.XPathResult.FIRST_ORDERED_NODE_TYPE
|
|
2800
|
+
: 9] = "FIRST_ORDERED_NODE_TYPE";
|
|
2801
|
+
})(exports.XPathResultType || (exports.XPathResultType = {}));
|
|
2802
|
+
|
|
2803
|
+
}(xpathResultType));
|
|
2804
|
+
|
|
2805
|
+
var replaceBrWithNewline$1 = {};
|
|
2806
|
+
|
|
2807
|
+
replaceBrWithNewline$1.replaceBrWithNewline = void 0;
|
|
2808
|
+
const map_1 = map$3;
|
|
2809
|
+
function replaceBrWithNewline(node) {
|
|
2810
|
+
return (0, map_1.map)(node, node => {
|
|
2811
|
+
if (node.nodeName === 'BR') {
|
|
2812
|
+
return document.createTextNode('\n');
|
|
2813
|
+
}
|
|
2814
|
+
else {
|
|
2815
|
+
return node;
|
|
2816
|
+
}
|
|
2817
|
+
});
|
|
2818
|
+
}
|
|
2819
|
+
replaceBrWithNewline$1.replaceBrWithNewline = replaceBrWithNewline;
|
|
2820
|
+
|
|
2821
|
+
var isBefore$1 = {};
|
|
2822
|
+
|
|
2823
|
+
isBefore$1.isBefore = void 0;
|
|
2824
|
+
function isBefore(subject, object) {
|
|
2825
|
+
if (subject.compareDocumentPosition(object) & Node.DOCUMENT_POSITION_FOLLOWING) {
|
|
2826
|
+
return true;
|
|
2827
|
+
}
|
|
2828
|
+
else {
|
|
2829
|
+
return false;
|
|
2830
|
+
}
|
|
2831
|
+
}
|
|
2832
|
+
isBefore$1.isBefore = isBefore;
|
|
2833
|
+
|
|
2834
|
+
var isAfter$1 = {};
|
|
2835
|
+
|
|
2836
|
+
isAfter$1.isAfter = void 0;
|
|
2837
|
+
function isAfter(subject, object) {
|
|
2838
|
+
if (subject.compareDocumentPosition(object) & Node.DOCUMENT_POSITION_PRECEDING) {
|
|
2839
|
+
return true;
|
|
2840
|
+
}
|
|
2841
|
+
else {
|
|
2842
|
+
return false;
|
|
2843
|
+
}
|
|
2844
|
+
}
|
|
2845
|
+
isAfter$1.isAfter = isAfter;
|
|
2846
|
+
|
|
2847
|
+
(function (exports) {
|
|
2848
|
+
var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
2849
|
+
if (k2 === undefined) k2 = k;
|
|
2850
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
2851
|
+
}) : (function(o, m, k, k2) {
|
|
2852
|
+
if (k2 === undefined) k2 = k;
|
|
2853
|
+
o[k2] = m[k];
|
|
2854
|
+
}));
|
|
2855
|
+
var __exportStar = (commonjsGlobal && commonjsGlobal.__exportStar) || function(m, exports) {
|
|
2856
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
2857
|
+
};__exportStar(flatMap$1, exports);
|
|
2858
|
+
__exportStar(map$3, exports);
|
|
2859
|
+
__exportStar(filter$3, exports);
|
|
2860
|
+
__exportStar(unwrap$1, exports);
|
|
2861
|
+
__exportStar(find$1, exports);
|
|
2862
|
+
__exportStar(parse$1, exports);
|
|
2863
|
+
__exportStar(stringify$1, exports);
|
|
2864
|
+
__exportStar(normalize$1, exports);
|
|
2865
|
+
__exportStar(removeAllChildren$1, exports);
|
|
2866
|
+
__exportStar(removeAttributes$1, exports);
|
|
2867
|
+
__exportStar(getBySelector$1, exports);
|
|
2868
|
+
__exportStar(getAllBySelector$1, exports);
|
|
2869
|
+
__exportStar(traverseAncestorNodes$1, exports);
|
|
2870
|
+
__exportStar(findInAncestorNodes$1, exports);
|
|
2871
|
+
__exportStar(traverseDescendantNodes$1, exports);
|
|
2872
|
+
__exportStar(findInDescendantNodes$1, exports);
|
|
2873
|
+
__exportStar(findInFollowingSiblingNodes$1, exports);
|
|
2874
|
+
__exportStar(findInPrecedingSiblingNodes$1, exports);
|
|
2875
|
+
__exportStar(parentNode$1, exports);
|
|
2876
|
+
__exportStar(nextSibling$2, exports);
|
|
2877
|
+
__exportStar(previousSibling$1, exports);
|
|
2878
|
+
__exportStar(nextElementSibling$2, exports);
|
|
2879
|
+
__exportStar(previousElementSibling$1, exports);
|
|
2880
|
+
__exportStar(isDocument$1, exports);
|
|
2881
|
+
__exportStar(isntDocument$1, exports);
|
|
2882
|
+
__exportStar(isElement$1, exports);
|
|
2883
|
+
__exportStar(isntElement$1, exports);
|
|
2884
|
+
__exportStar(isNode$1, exports);
|
|
2885
|
+
__exportStar(isntNode$1, exports);
|
|
2886
|
+
__exportStar(isTextNode$1, exports);
|
|
2887
|
+
__exportStar(isntTextNode$1, exports);
|
|
2888
|
+
__exportStar(isParentNode$1, exports);
|
|
2889
|
+
__exportStar(isntParentNode$1, exports);
|
|
2890
|
+
__exportStar(nodeType, exports);
|
|
2891
|
+
__exportStar(xpathResultType, exports);
|
|
2892
|
+
__exportStar(replaceBrWithNewline$1, exports);
|
|
2893
|
+
__exportStar(isBefore$1, exports);
|
|
2894
|
+
__exportStar(isAfter$1, exports);
|
|
2895
|
+
|
|
2896
|
+
}(es2018$6));
|
|
2897
|
+
|
|
2898
|
+
function matchOneByOne(context, source, ...matchers) {
|
|
2899
|
+
if (matchers.length === 0)
|
|
2900
|
+
return true;
|
|
2901
|
+
if (!source)
|
|
2902
|
+
return false;
|
|
2903
|
+
const [matcher, ...otherMatchers] = matchers;
|
|
2904
|
+
const result = Reflect.apply(matcher, context, [source]);
|
|
2905
|
+
// TerminalMatcher
|
|
2906
|
+
if (es2018$2.isBoolean(result)) {
|
|
2907
|
+
if (result) {
|
|
2908
|
+
const nextNode = context.next(source);
|
|
2909
|
+
return matchOneByOne(context, nextNode, ...otherMatchers);
|
|
2910
|
+
}
|
|
2911
|
+
else {
|
|
2912
|
+
return false;
|
|
2913
|
+
}
|
|
2914
|
+
}
|
|
2915
|
+
// 此处一定是成功匹配, 因为SkipMatcher在失败时会返回false.
|
|
2916
|
+
if (es2018$2.isNumber(result)) {
|
|
2917
|
+
const distance = result;
|
|
2918
|
+
const nextNode = context.next(source, distance);
|
|
2919
|
+
return matchOneByOne(context, nextNode, ...otherMatchers);
|
|
2920
|
+
}
|
|
2921
|
+
// SkipMatcher返回Iterable意味着存在多种可能性, 可能出现失败回溯.
|
|
2922
|
+
if (es2018$2.isIterable(result)) {
|
|
2923
|
+
for (const distance of result) {
|
|
2924
|
+
const nextNode = context.next(source, distance);
|
|
2925
|
+
if (matchOneByOne(context, nextNode, ...otherMatchers)) {
|
|
2926
|
+
return true;
|
|
2927
|
+
}
|
|
2928
|
+
}
|
|
2929
|
+
// 尝试了所有可能性, 未发现可以匹配的结果
|
|
2930
|
+
return false;
|
|
2931
|
+
}
|
|
2932
|
+
throw new Error('Unknown return value');
|
|
2933
|
+
}
|
|
2934
|
+
|
|
2935
|
+
function nextSibling(node, distance = 1) {
|
|
2936
|
+
if (distance === 0)
|
|
2937
|
+
return node;
|
|
2938
|
+
return es2018$6.nextSibling(node, distance);
|
|
2939
|
+
}
|
|
2940
|
+
|
|
2941
|
+
function match(node, ...matchers) {
|
|
2942
|
+
const document = es2018$6.isDocument(this) ? this : globalThis.document;
|
|
2943
|
+
const context = {
|
|
2944
|
+
document,
|
|
2945
|
+
collection: {},
|
|
2946
|
+
next: nextSibling
|
|
2947
|
+
};
|
|
2948
|
+
if (matchOneByOne(context, node, ...matchers)) {
|
|
2949
|
+
return context.collection;
|
|
2950
|
+
}
|
|
2951
|
+
else {
|
|
2952
|
+
return null;
|
|
2953
|
+
}
|
|
2954
|
+
}
|
|
2955
|
+
|
|
2956
|
+
function nextElementSibling(node, distance = 1) {
|
|
2957
|
+
if (distance === 0)
|
|
2958
|
+
return node;
|
|
2959
|
+
return es2018$6.nextElementSibling(node, distance);
|
|
2960
|
+
}
|
|
2961
|
+
|
|
2962
|
+
function matchElement(element, ...matchers) {
|
|
2963
|
+
const document = es2018$6.isDocument(this) ? this : globalThis.document;
|
|
2964
|
+
const context = {
|
|
2965
|
+
document,
|
|
2966
|
+
collection: {},
|
|
2967
|
+
next: nextElementSibling
|
|
2968
|
+
};
|
|
2969
|
+
if (matchOneByOne(context, element, ...matchers)) {
|
|
2970
|
+
return context.collection;
|
|
2971
|
+
}
|
|
2972
|
+
else {
|
|
2973
|
+
return null;
|
|
2974
|
+
}
|
|
2975
|
+
}
|
|
2976
|
+
|
|
2977
|
+
function anyOf(...matchers) {
|
|
2978
|
+
return function (node) {
|
|
2979
|
+
return matchers.some(match => match.call(this, node));
|
|
2980
|
+
};
|
|
2981
|
+
}
|
|
2982
|
+
|
|
2983
|
+
function merge(target, source) {
|
|
2984
|
+
for (const [key, value] of Object.entries(source)) {
|
|
2985
|
+
if (target[key]) {
|
|
2986
|
+
if (Array.isArray(target[key])) {
|
|
2987
|
+
if (Array.isArray(value)) {
|
|
2988
|
+
target[key] = [...target[key], ...value];
|
|
2989
|
+
}
|
|
2990
|
+
else {
|
|
2991
|
+
target[key] = [...target[key], value];
|
|
2992
|
+
}
|
|
2993
|
+
}
|
|
2994
|
+
else {
|
|
2995
|
+
if (Array.isArray(value)) {
|
|
2996
|
+
target[key] = [target[key], ...value];
|
|
2997
|
+
}
|
|
2998
|
+
else {
|
|
2999
|
+
target[key] = [target[key], value];
|
|
3000
|
+
}
|
|
3001
|
+
}
|
|
3002
|
+
}
|
|
3003
|
+
else {
|
|
3004
|
+
target[key] = value;
|
|
3005
|
+
}
|
|
3006
|
+
}
|
|
3007
|
+
}
|
|
3008
|
+
|
|
3009
|
+
function childNodes(...matchers) {
|
|
3010
|
+
return function (node) {
|
|
3011
|
+
// 空matchers意味着"childNodes应该为空".
|
|
3012
|
+
if (matchers.length === 0) {
|
|
3013
|
+
return node.childNodes.length === 0;
|
|
3014
|
+
}
|
|
3015
|
+
if (node.childNodes.length === 0)
|
|
3016
|
+
return false;
|
|
3017
|
+
const context = Object.assign(Object.assign({}, this), { collection: {}, next: nextSibling });
|
|
3018
|
+
const result = matchOneByOne(context, node.childNodes[0], ...matchers);
|
|
3019
|
+
if (result) {
|
|
3020
|
+
merge(this.collection, context.collection);
|
|
3021
|
+
}
|
|
3022
|
+
return result;
|
|
3023
|
+
};
|
|
3024
|
+
}
|
|
3025
|
+
|
|
3026
|
+
function children(...matchers) {
|
|
3027
|
+
return function (element) {
|
|
3028
|
+
// 空matchers意味着"children应该为空".
|
|
3029
|
+
if (matchers.length === 0) {
|
|
3030
|
+
return element.children.length === 0;
|
|
3031
|
+
}
|
|
3032
|
+
if (element.children.length === 0)
|
|
3033
|
+
return false;
|
|
3034
|
+
const context = Object.assign(Object.assign({}, this), { collection: {}, next: nextElementSibling });
|
|
3035
|
+
const result = matchOneByOne(context, element.children[0], ...matchers);
|
|
3036
|
+
if (result) {
|
|
3037
|
+
merge(this.collection, context.collection);
|
|
3038
|
+
}
|
|
3039
|
+
return result;
|
|
3040
|
+
};
|
|
3041
|
+
}
|
|
3042
|
+
|
|
3043
|
+
function concat(strings, values) {
|
|
3044
|
+
const result = [];
|
|
3045
|
+
for (let i = 0, len = values.length; i < len; i++) {
|
|
3046
|
+
result.push(strings[i]);
|
|
3047
|
+
result.push(values[i]);
|
|
3048
|
+
}
|
|
3049
|
+
result.push(strings[strings.length - 1]);
|
|
3050
|
+
return result;
|
|
3051
|
+
}
|
|
3052
|
+
|
|
3053
|
+
function css(...args) {
|
|
3054
|
+
if (es2018$2.isString(args[0])) {
|
|
3055
|
+
const [selector] = args;
|
|
3056
|
+
return (element) => element.matches(selector);
|
|
3057
|
+
}
|
|
3058
|
+
else {
|
|
3059
|
+
const [strings, ...values] = args;
|
|
3060
|
+
const selector = concat(strings, values).join('');
|
|
3061
|
+
return css(selector);
|
|
3062
|
+
}
|
|
3063
|
+
}
|
|
3064
|
+
|
|
3065
|
+
function element(...args) {
|
|
3066
|
+
if (Array.isArray(args[0])) {
|
|
3067
|
+
const [strings, ...values] = args;
|
|
3068
|
+
const name = concat(strings, values).join('');
|
|
3069
|
+
return (...matchers) => element(name, ...matchers);
|
|
3070
|
+
}
|
|
3071
|
+
if (es2018$2.isString(args[0])) {
|
|
3072
|
+
const [name, ...matchers] = args;
|
|
3073
|
+
return function (_element) {
|
|
3074
|
+
const result = element(...matchers).call(this, _element);
|
|
3075
|
+
if (result) {
|
|
3076
|
+
merge(this.collection, { [name]: _element });
|
|
3077
|
+
}
|
|
3078
|
+
return result;
|
|
3079
|
+
};
|
|
3080
|
+
}
|
|
3081
|
+
const [...matchers] = args;
|
|
3082
|
+
return function (element) {
|
|
3083
|
+
if (es2018$6.isntElement(element))
|
|
3084
|
+
return false;
|
|
3085
|
+
if (matchers.length === 0)
|
|
3086
|
+
return true;
|
|
3087
|
+
return matchers.every(match => match.call(this, element));
|
|
3088
|
+
};
|
|
3089
|
+
}
|
|
3090
|
+
|
|
3091
|
+
var es2018$1 = {};
|
|
3092
|
+
|
|
3093
|
+
var of$1 = {};
|
|
3094
|
+
|
|
3095
|
+
of$1.of = void 0;
|
|
3096
|
+
function* of(val) {
|
|
3097
|
+
yield val;
|
|
3098
|
+
}
|
|
3099
|
+
of$1.of = of;
|
|
3100
|
+
|
|
3101
|
+
var repeat$2 = {};
|
|
3102
|
+
|
|
3103
|
+
repeat$2.repeat = void 0;
|
|
3104
|
+
const errors_1$1 = es2018$3;
|
|
3105
|
+
function repeat$1(val, times = Infinity) {
|
|
3106
|
+
(0, errors_1$1.assert)(times === Infinity || Number.isInteger(times), 'The parameter times must be an integer');
|
|
3107
|
+
return (function* () {
|
|
3108
|
+
while (times-- > 0) {
|
|
3109
|
+
yield val;
|
|
3110
|
+
}
|
|
3111
|
+
})();
|
|
3112
|
+
}
|
|
3113
|
+
repeat$2.repeat = repeat$1;
|
|
3114
|
+
|
|
3115
|
+
var countdown$1 = {};
|
|
3116
|
+
|
|
3117
|
+
countdown$1.countdown = void 0;
|
|
3118
|
+
function* countdown(begin, end) {
|
|
3119
|
+
if (begin < end)
|
|
3120
|
+
return;
|
|
3121
|
+
for (let i = begin; i >= end; i--) {
|
|
3122
|
+
yield i;
|
|
3123
|
+
}
|
|
3124
|
+
}
|
|
3125
|
+
countdown$1.countdown = countdown;
|
|
3126
|
+
|
|
3127
|
+
var countup$1 = {};
|
|
3128
|
+
|
|
3129
|
+
countup$1.countup = void 0;
|
|
3130
|
+
function* countup(begin, end) {
|
|
3131
|
+
if (begin > end)
|
|
3132
|
+
return;
|
|
3133
|
+
for (let i = begin; i <= end; i++) {
|
|
3134
|
+
yield i;
|
|
3135
|
+
}
|
|
3136
|
+
}
|
|
3137
|
+
countup$1.countup = countup;
|
|
3138
|
+
|
|
3139
|
+
var range$1 = {};
|
|
3140
|
+
|
|
3141
|
+
range$1.range = void 0;
|
|
3142
|
+
const errors_1 = es2018$3;
|
|
3143
|
+
function range(start, end, step = 1) {
|
|
3144
|
+
(0, errors_1.assert)(step > 0, 'step parameter must be greater than 0');
|
|
3145
|
+
return rangeByUnsignedStep(start, end, step);
|
|
3146
|
+
}
|
|
3147
|
+
range$1.range = range;
|
|
3148
|
+
function* rangeByUnsignedStep(start, end, step) {
|
|
3149
|
+
if (start < end) {
|
|
3150
|
+
for (let i = start; i < end; i += step) {
|
|
3151
|
+
yield i;
|
|
3152
|
+
}
|
|
3153
|
+
}
|
|
3154
|
+
else {
|
|
3155
|
+
for (let i = start; i > end; i -= step) {
|
|
3156
|
+
yield i;
|
|
3157
|
+
}
|
|
3158
|
+
}
|
|
3159
|
+
}
|
|
3160
|
+
|
|
3161
|
+
var stringifyJsonStream = {};
|
|
3162
|
+
|
|
3163
|
+
stringifyJsonStream.stringifyJSONStream = void 0;
|
|
3164
|
+
function* stringifyJSONStream(iterable) {
|
|
3165
|
+
var _a;
|
|
3166
|
+
const iter = iterable[Symbol.iterator]();
|
|
3167
|
+
let done;
|
|
3168
|
+
try {
|
|
3169
|
+
let value;
|
|
3170
|
+
({ value, done } = iter.next());
|
|
3171
|
+
yield '[';
|
|
3172
|
+
if (!done)
|
|
3173
|
+
yield JSON.stringify(value);
|
|
3174
|
+
while ({ value, done } = iter.next(), !done) {
|
|
3175
|
+
yield ',' + JSON.stringify(value);
|
|
3176
|
+
}
|
|
3177
|
+
yield ']';
|
|
3178
|
+
}
|
|
3179
|
+
finally {
|
|
3180
|
+
if (!done)
|
|
3181
|
+
(_a = iter.return) === null || _a === void 0 ? void 0 : _a.call(iter);
|
|
3182
|
+
}
|
|
3183
|
+
}
|
|
3184
|
+
stringifyJsonStream.stringifyJSONStream = stringifyJSONStream;
|
|
3185
|
+
|
|
3186
|
+
var stringifyJsonStreamAsync = {};
|
|
3187
|
+
|
|
3188
|
+
stringifyJsonStreamAsync.stringifyJSONStreamAsync = void 0;
|
|
3189
|
+
async function* stringifyJSONStreamAsync(asyncIterable) {
|
|
3190
|
+
var _a;
|
|
3191
|
+
const iter = asyncIterable[Symbol.asyncIterator]();
|
|
3192
|
+
let done;
|
|
3193
|
+
try {
|
|
3194
|
+
let value;
|
|
3195
|
+
({ value, done } = await iter.next());
|
|
3196
|
+
yield '[';
|
|
3197
|
+
if (!done)
|
|
3198
|
+
yield JSON.stringify(value);
|
|
3199
|
+
while ({ value, done } = await iter.next(), !done) {
|
|
3200
|
+
yield ',' + JSON.stringify(value);
|
|
3201
|
+
}
|
|
3202
|
+
yield ']';
|
|
3203
|
+
}
|
|
3204
|
+
finally {
|
|
3205
|
+
if (!done)
|
|
3206
|
+
await ((_a = iter.return) === null || _a === void 0 ? void 0 : _a.call(iter));
|
|
3207
|
+
}
|
|
3208
|
+
}
|
|
3209
|
+
stringifyJsonStreamAsync.stringifyJSONStreamAsync = stringifyJSONStreamAsync;
|
|
3210
|
+
|
|
3211
|
+
var stringifyNdjsonStream = {};
|
|
3212
|
+
|
|
3213
|
+
stringifyNdjsonStream.stringifyNDJSONStream = void 0;
|
|
3214
|
+
function* stringifyNDJSONStream(iterable) {
|
|
3215
|
+
var _a;
|
|
3216
|
+
const iter = iterable[Symbol.iterator]();
|
|
3217
|
+
let done;
|
|
3218
|
+
try {
|
|
3219
|
+
let value;
|
|
3220
|
+
({ value, done } = iter.next());
|
|
3221
|
+
if (!done)
|
|
3222
|
+
yield JSON.stringify(value);
|
|
3223
|
+
while ({ value, done } = iter.next(), !done) {
|
|
3224
|
+
yield '\n' + JSON.stringify(value);
|
|
3225
|
+
}
|
|
3226
|
+
}
|
|
3227
|
+
finally {
|
|
3228
|
+
if (!done)
|
|
3229
|
+
(_a = iter.return) === null || _a === void 0 ? void 0 : _a.call(iter);
|
|
3230
|
+
}
|
|
3231
|
+
}
|
|
3232
|
+
stringifyNdjsonStream.stringifyNDJSONStream = stringifyNDJSONStream;
|
|
3233
|
+
|
|
3234
|
+
var stringifyNdjsonStreamAsync = {};
|
|
3235
|
+
|
|
3236
|
+
stringifyNdjsonStreamAsync.stringifyNDJSONStreamAsync = void 0;
|
|
3237
|
+
async function* stringifyNDJSONStreamAsync(asyncIterable) {
|
|
3238
|
+
var _a;
|
|
3239
|
+
const iter = asyncIterable[Symbol.asyncIterator]();
|
|
3240
|
+
let done;
|
|
3241
|
+
try {
|
|
3242
|
+
let value;
|
|
3243
|
+
({ value, done } = await iter.next());
|
|
3244
|
+
if (!done)
|
|
3245
|
+
yield JSON.stringify(value);
|
|
3246
|
+
while ({ value, done } = await iter.next(), !done) {
|
|
3247
|
+
yield '\n' + JSON.stringify(value);
|
|
3248
|
+
}
|
|
3249
|
+
}
|
|
3250
|
+
finally {
|
|
3251
|
+
if (!done)
|
|
3252
|
+
await ((_a = iter.return) === null || _a === void 0 ? void 0 : _a.call(iter));
|
|
3253
|
+
}
|
|
3254
|
+
}
|
|
3255
|
+
stringifyNdjsonStreamAsync.stringifyNDJSONStreamAsync = stringifyNDJSONStreamAsync;
|
|
3256
|
+
|
|
3257
|
+
var sse$1 = {};
|
|
3258
|
+
|
|
3259
|
+
sse$1.sse = void 0;
|
|
3260
|
+
function* sse(message) {
|
|
3261
|
+
if (message.event)
|
|
3262
|
+
yield `event: ${message.event}\n`;
|
|
3263
|
+
for (const line of message.data.split('\n')) {
|
|
3264
|
+
yield `data: ${line}\n`;
|
|
3265
|
+
}
|
|
3266
|
+
if (message.id)
|
|
3267
|
+
yield `id: ${message.id}\n`;
|
|
3268
|
+
if (message.retry)
|
|
3269
|
+
yield `retry: ${message.retry}\n`;
|
|
3270
|
+
yield '\n';
|
|
3271
|
+
}
|
|
3272
|
+
sse$1.sse = sse;
|
|
3273
|
+
|
|
3274
|
+
var reusableIterable = {};
|
|
3275
|
+
|
|
3276
|
+
var es2018 = {};
|
|
3277
|
+
|
|
3278
|
+
var lazy$1 = {};
|
|
3279
|
+
|
|
3280
|
+
/**
|
|
3281
|
+
* lodash (Custom Build) <https://lodash.com/>
|
|
3282
|
+
* Build: `lodash modularize exports="npm" -o ./`
|
|
3283
|
+
* Copyright jQuery Foundation and other contributors <https://jquery.org/>
|
|
3284
|
+
* Released under MIT license <https://lodash.com/license>
|
|
3285
|
+
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
|
3286
|
+
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|
3287
|
+
*/
|
|
3288
|
+
|
|
3289
|
+
/** Used as the `TypeError` message for "Functions" methods. */
|
|
3290
|
+
var FUNC_ERROR_TEXT = 'Expected a function';
|
|
3291
|
+
|
|
3292
|
+
/** Used as references for various `Number` constants. */
|
|
3293
|
+
var INFINITY = 1 / 0,
|
|
3294
|
+
MAX_INTEGER = 1.7976931348623157e+308,
|
|
3295
|
+
NAN = 0 / 0;
|
|
3296
|
+
|
|
3297
|
+
/** `Object#toString` result references. */
|
|
3298
|
+
var symbolTag = '[object Symbol]';
|
|
3299
|
+
|
|
3300
|
+
/** Used to match leading and trailing whitespace. */
|
|
3301
|
+
var reTrim = /^\s+|\s+$/g;
|
|
3302
|
+
|
|
3303
|
+
/** Used to detect bad signed hexadecimal string values. */
|
|
3304
|
+
var reIsBadHex = /^[-+]0x[0-9a-f]+$/i;
|
|
3305
|
+
|
|
3306
|
+
/** Used to detect binary string values. */
|
|
3307
|
+
var reIsBinary = /^0b[01]+$/i;
|
|
3308
|
+
|
|
3309
|
+
/** Used to detect octal string values. */
|
|
3310
|
+
var reIsOctal = /^0o[0-7]+$/i;
|
|
3311
|
+
|
|
3312
|
+
/** Built-in method references without a dependency on `root`. */
|
|
3313
|
+
var freeParseInt = parseInt;
|
|
3314
|
+
|
|
3315
|
+
/** Used for built-in method references. */
|
|
3316
|
+
var objectProto = Object.prototype;
|
|
3317
|
+
|
|
3318
|
+
/**
|
|
3319
|
+
* Used to resolve the
|
|
3320
|
+
* [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
|
|
3321
|
+
* of values.
|
|
3322
|
+
*/
|
|
3323
|
+
var objectToString = objectProto.toString;
|
|
3324
|
+
|
|
3325
|
+
/**
|
|
3326
|
+
* Creates a function that invokes `func`, with the `this` binding and arguments
|
|
3327
|
+
* of the created function, while it's called less than `n` times. Subsequent
|
|
3328
|
+
* calls to the created function return the result of the last `func` invocation.
|
|
3329
|
+
*
|
|
3330
|
+
* @static
|
|
3331
|
+
* @memberOf _
|
|
3332
|
+
* @since 3.0.0
|
|
3333
|
+
* @category Function
|
|
3334
|
+
* @param {number} n The number of calls at which `func` is no longer invoked.
|
|
3335
|
+
* @param {Function} func The function to restrict.
|
|
3336
|
+
* @returns {Function} Returns the new restricted function.
|
|
3337
|
+
* @example
|
|
3338
|
+
*
|
|
3339
|
+
* jQuery(element).on('click', _.before(5, addContactToList));
|
|
3340
|
+
* // => Allows adding up to 4 contacts to the list.
|
|
3341
|
+
*/
|
|
3342
|
+
function before(n, func) {
|
|
3343
|
+
var result;
|
|
3344
|
+
if (typeof func != 'function') {
|
|
3345
|
+
throw new TypeError(FUNC_ERROR_TEXT);
|
|
3346
|
+
}
|
|
3347
|
+
n = toInteger(n);
|
|
3348
|
+
return function() {
|
|
3349
|
+
if (--n > 0) {
|
|
3350
|
+
result = func.apply(this, arguments);
|
|
3351
|
+
}
|
|
3352
|
+
if (n <= 1) {
|
|
3353
|
+
func = undefined;
|
|
3354
|
+
}
|
|
3355
|
+
return result;
|
|
3356
|
+
};
|
|
3357
|
+
}
|
|
3358
|
+
|
|
3359
|
+
/**
|
|
3360
|
+
* Creates a function that is restricted to invoking `func` once. Repeat calls
|
|
3361
|
+
* to the function return the value of the first invocation. The `func` is
|
|
3362
|
+
* invoked with the `this` binding and arguments of the created function.
|
|
3363
|
+
*
|
|
3364
|
+
* @static
|
|
3365
|
+
* @memberOf _
|
|
3366
|
+
* @since 0.1.0
|
|
3367
|
+
* @category Function
|
|
3368
|
+
* @param {Function} func The function to restrict.
|
|
3369
|
+
* @returns {Function} Returns the new restricted function.
|
|
3370
|
+
* @example
|
|
3371
|
+
*
|
|
3372
|
+
* var initialize = _.once(createApplication);
|
|
3373
|
+
* initialize();
|
|
3374
|
+
* initialize();
|
|
3375
|
+
* // => `createApplication` is invoked once
|
|
3376
|
+
*/
|
|
3377
|
+
function once(func) {
|
|
3378
|
+
return before(2, func);
|
|
3379
|
+
}
|
|
3380
|
+
|
|
3381
|
+
/**
|
|
3382
|
+
* Checks if `value` is the
|
|
3383
|
+
* [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
|
|
3384
|
+
* of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
|
|
3385
|
+
*
|
|
3386
|
+
* @static
|
|
3387
|
+
* @memberOf _
|
|
3388
|
+
* @since 0.1.0
|
|
3389
|
+
* @category Lang
|
|
3390
|
+
* @param {*} value The value to check.
|
|
3391
|
+
* @returns {boolean} Returns `true` if `value` is an object, else `false`.
|
|
3392
|
+
* @example
|
|
3393
|
+
*
|
|
3394
|
+
* _.isObject({});
|
|
3395
|
+
* // => true
|
|
3396
|
+
*
|
|
3397
|
+
* _.isObject([1, 2, 3]);
|
|
3398
|
+
* // => true
|
|
3399
|
+
*
|
|
3400
|
+
* _.isObject(_.noop);
|
|
3401
|
+
* // => true
|
|
3402
|
+
*
|
|
3403
|
+
* _.isObject(null);
|
|
3404
|
+
* // => false
|
|
3405
|
+
*/
|
|
3406
|
+
function isObject(value) {
|
|
3407
|
+
var type = typeof value;
|
|
3408
|
+
return !!value && (type == 'object' || type == 'function');
|
|
3409
|
+
}
|
|
3410
|
+
|
|
3411
|
+
/**
|
|
3412
|
+
* Checks if `value` is object-like. A value is object-like if it's not `null`
|
|
3413
|
+
* and has a `typeof` result of "object".
|
|
3414
|
+
*
|
|
3415
|
+
* @static
|
|
3416
|
+
* @memberOf _
|
|
3417
|
+
* @since 4.0.0
|
|
3418
|
+
* @category Lang
|
|
3419
|
+
* @param {*} value The value to check.
|
|
3420
|
+
* @returns {boolean} Returns `true` if `value` is object-like, else `false`.
|
|
3421
|
+
* @example
|
|
3422
|
+
*
|
|
3423
|
+
* _.isObjectLike({});
|
|
3424
|
+
* // => true
|
|
3425
|
+
*
|
|
3426
|
+
* _.isObjectLike([1, 2, 3]);
|
|
3427
|
+
* // => true
|
|
3428
|
+
*
|
|
3429
|
+
* _.isObjectLike(_.noop);
|
|
3430
|
+
* // => false
|
|
3431
|
+
*
|
|
3432
|
+
* _.isObjectLike(null);
|
|
3433
|
+
* // => false
|
|
3434
|
+
*/
|
|
3435
|
+
function isObjectLike(value) {
|
|
3436
|
+
return !!value && typeof value == 'object';
|
|
3437
|
+
}
|
|
3438
|
+
|
|
3439
|
+
/**
|
|
3440
|
+
* Checks if `value` is classified as a `Symbol` primitive or object.
|
|
3441
|
+
*
|
|
3442
|
+
* @static
|
|
3443
|
+
* @memberOf _
|
|
3444
|
+
* @since 4.0.0
|
|
3445
|
+
* @category Lang
|
|
3446
|
+
* @param {*} value The value to check.
|
|
3447
|
+
* @returns {boolean} Returns `true` if `value` is a symbol, else `false`.
|
|
3448
|
+
* @example
|
|
3449
|
+
*
|
|
3450
|
+
* _.isSymbol(Symbol.iterator);
|
|
3451
|
+
* // => true
|
|
3452
|
+
*
|
|
3453
|
+
* _.isSymbol('abc');
|
|
3454
|
+
* // => false
|
|
3455
|
+
*/
|
|
3456
|
+
function isSymbol(value) {
|
|
3457
|
+
return typeof value == 'symbol' ||
|
|
3458
|
+
(isObjectLike(value) && objectToString.call(value) == symbolTag);
|
|
3459
|
+
}
|
|
3460
|
+
|
|
3461
|
+
/**
|
|
3462
|
+
* Converts `value` to a finite number.
|
|
3463
|
+
*
|
|
3464
|
+
* @static
|
|
3465
|
+
* @memberOf _
|
|
3466
|
+
* @since 4.12.0
|
|
3467
|
+
* @category Lang
|
|
3468
|
+
* @param {*} value The value to convert.
|
|
3469
|
+
* @returns {number} Returns the converted number.
|
|
3470
|
+
* @example
|
|
3471
|
+
*
|
|
3472
|
+
* _.toFinite(3.2);
|
|
3473
|
+
* // => 3.2
|
|
3474
|
+
*
|
|
3475
|
+
* _.toFinite(Number.MIN_VALUE);
|
|
3476
|
+
* // => 5e-324
|
|
3477
|
+
*
|
|
3478
|
+
* _.toFinite(Infinity);
|
|
3479
|
+
* // => 1.7976931348623157e+308
|
|
3480
|
+
*
|
|
3481
|
+
* _.toFinite('3.2');
|
|
3482
|
+
* // => 3.2
|
|
3483
|
+
*/
|
|
3484
|
+
function toFinite(value) {
|
|
3485
|
+
if (!value) {
|
|
3486
|
+
return value === 0 ? value : 0;
|
|
3487
|
+
}
|
|
3488
|
+
value = toNumber(value);
|
|
3489
|
+
if (value === INFINITY || value === -INFINITY) {
|
|
3490
|
+
var sign = (value < 0 ? -1 : 1);
|
|
3491
|
+
return sign * MAX_INTEGER;
|
|
3492
|
+
}
|
|
3493
|
+
return value === value ? value : 0;
|
|
3494
|
+
}
|
|
3495
|
+
|
|
3496
|
+
/**
|
|
3497
|
+
* Converts `value` to an integer.
|
|
3498
|
+
*
|
|
3499
|
+
* **Note:** This method is loosely based on
|
|
3500
|
+
* [`ToInteger`](http://www.ecma-international.org/ecma-262/7.0/#sec-tointeger).
|
|
3501
|
+
*
|
|
3502
|
+
* @static
|
|
3503
|
+
* @memberOf _
|
|
3504
|
+
* @since 4.0.0
|
|
3505
|
+
* @category Lang
|
|
3506
|
+
* @param {*} value The value to convert.
|
|
3507
|
+
* @returns {number} Returns the converted integer.
|
|
3508
|
+
* @example
|
|
3509
|
+
*
|
|
3510
|
+
* _.toInteger(3.2);
|
|
3511
|
+
* // => 3
|
|
3512
|
+
*
|
|
3513
|
+
* _.toInteger(Number.MIN_VALUE);
|
|
3514
|
+
* // => 0
|
|
3515
|
+
*
|
|
3516
|
+
* _.toInteger(Infinity);
|
|
3517
|
+
* // => 1.7976931348623157e+308
|
|
3518
|
+
*
|
|
3519
|
+
* _.toInteger('3.2');
|
|
3520
|
+
* // => 3
|
|
3521
|
+
*/
|
|
3522
|
+
function toInteger(value) {
|
|
3523
|
+
var result = toFinite(value),
|
|
3524
|
+
remainder = result % 1;
|
|
3525
|
+
|
|
3526
|
+
return result === result ? (remainder ? result - remainder : result) : 0;
|
|
3527
|
+
}
|
|
3528
|
+
|
|
3529
|
+
/**
|
|
3530
|
+
* Converts `value` to a number.
|
|
3531
|
+
*
|
|
3532
|
+
* @static
|
|
3533
|
+
* @memberOf _
|
|
3534
|
+
* @since 4.0.0
|
|
3535
|
+
* @category Lang
|
|
3536
|
+
* @param {*} value The value to process.
|
|
3537
|
+
* @returns {number} Returns the number.
|
|
3538
|
+
* @example
|
|
3539
|
+
*
|
|
3540
|
+
* _.toNumber(3.2);
|
|
3541
|
+
* // => 3.2
|
|
3542
|
+
*
|
|
3543
|
+
* _.toNumber(Number.MIN_VALUE);
|
|
3544
|
+
* // => 5e-324
|
|
3545
|
+
*
|
|
3546
|
+
* _.toNumber(Infinity);
|
|
3547
|
+
* // => Infinity
|
|
3548
|
+
*
|
|
3549
|
+
* _.toNumber('3.2');
|
|
3550
|
+
* // => 3.2
|
|
3551
|
+
*/
|
|
3552
|
+
function toNumber(value) {
|
|
3553
|
+
if (typeof value == 'number') {
|
|
3554
|
+
return value;
|
|
3555
|
+
}
|
|
3556
|
+
if (isSymbol(value)) {
|
|
3557
|
+
return NAN;
|
|
3558
|
+
}
|
|
3559
|
+
if (isObject(value)) {
|
|
3560
|
+
var other = typeof value.valueOf == 'function' ? value.valueOf() : value;
|
|
3561
|
+
value = isObject(other) ? (other + '') : other;
|
|
3562
|
+
}
|
|
3563
|
+
if (typeof value != 'string') {
|
|
3564
|
+
return value === 0 ? value : +value;
|
|
3565
|
+
}
|
|
3566
|
+
value = value.replace(reTrim, '');
|
|
3567
|
+
var isBinary = reIsBinary.test(value);
|
|
3568
|
+
return (isBinary || reIsOctal.test(value))
|
|
3569
|
+
? freeParseInt(value.slice(2), isBinary ? 2 : 8)
|
|
3570
|
+
: (reIsBadHex.test(value) ? NAN : +value);
|
|
3571
|
+
}
|
|
3572
|
+
|
|
3573
|
+
var lodash_once = once;
|
|
3574
|
+
|
|
3575
|
+
var __importDefault = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
3576
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
3577
|
+
};lazy$1.lazy = void 0;
|
|
3578
|
+
const lodash_once_1 = __importDefault(lodash_once);
|
|
3579
|
+
function lazy(getter) {
|
|
3580
|
+
return (0, lodash_once_1.default)(getter);
|
|
3581
|
+
}
|
|
3582
|
+
lazy$1.lazy = lazy;
|
|
3583
|
+
|
|
3584
|
+
var lazyFunction$1 = {};
|
|
3585
|
+
|
|
3586
|
+
lazyFunction$1.lazyFunction = void 0;
|
|
3587
|
+
const lazy_1 = lazy$1;
|
|
3588
|
+
function lazyFunction(getter) {
|
|
3589
|
+
const getFn = (0, lazy_1.lazy)(getter);
|
|
3590
|
+
return (...args) => getFn()(...args);
|
|
3591
|
+
}
|
|
3592
|
+
lazyFunction$1.lazyFunction = lazyFunction;
|
|
3593
|
+
|
|
3594
|
+
(function (exports) {
|
|
3595
|
+
var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3596
|
+
if (k2 === undefined) k2 = k;
|
|
3597
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
3598
|
+
}) : (function(o, m, k, k2) {
|
|
3599
|
+
if (k2 === undefined) k2 = k;
|
|
3600
|
+
o[k2] = m[k];
|
|
3601
|
+
}));
|
|
3602
|
+
var __exportStar = (commonjsGlobal && commonjsGlobal.__exportStar) || function(m, exports) {
|
|
3603
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
3604
|
+
};__exportStar(lazy$1, exports);
|
|
3605
|
+
__exportStar(lazyFunction$1, exports);
|
|
3606
|
+
|
|
3607
|
+
}(es2018));
|
|
3608
|
+
|
|
3609
|
+
var __classPrivateFieldGet$1 = (commonjsGlobal && commonjsGlobal.__classPrivateFieldGet) || function (receiver, state, kind, f) {
|
|
3610
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
3611
|
+
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");
|
|
3612
|
+
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
3613
|
+
};
|
|
3614
|
+
var __classPrivateFieldSet$1 = (commonjsGlobal && commonjsGlobal.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
|
|
3615
|
+
if (kind === "m") throw new TypeError("Private method is not writable");
|
|
3616
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
|
|
3617
|
+
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");
|
|
3618
|
+
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
3619
|
+
};
|
|
3620
|
+
var _ReusableIterable_done;reusableIterable.ReusableIterable = void 0;
|
|
3621
|
+
const extra_lazy_1$1 = es2018;
|
|
3622
|
+
class ReusableIterable {
|
|
3623
|
+
constructor(iterable) {
|
|
3624
|
+
_ReusableIterable_done.set(this, void 0);
|
|
3625
|
+
this.getIterator = (0, extra_lazy_1$1.lazy)(() => iterable[Symbol.iterator]());
|
|
3626
|
+
}
|
|
3627
|
+
get done() {
|
|
3628
|
+
return __classPrivateFieldGet$1(this, _ReusableIterable_done, "f");
|
|
3629
|
+
}
|
|
3630
|
+
close() {
|
|
3631
|
+
var _a, _b;
|
|
3632
|
+
if (!this.done) {
|
|
3633
|
+
__classPrivateFieldSet$1(this, _ReusableIterable_done, true, "f");
|
|
3634
|
+
(_b = (_a = this.getIterator()).return) === null || _b === void 0 ? void 0 : _b.call(_a);
|
|
3635
|
+
}
|
|
3636
|
+
}
|
|
3637
|
+
[(_ReusableIterable_done = new WeakMap(), Symbol.iterator)]() {
|
|
3638
|
+
return {
|
|
3639
|
+
next: () => {
|
|
3640
|
+
if (__classPrivateFieldGet$1(this, _ReusableIterable_done, "f"))
|
|
3641
|
+
return { done: true, value: undefined };
|
|
3642
|
+
const { value, done } = this.getIterator().next();
|
|
3643
|
+
if (done) {
|
|
3644
|
+
__classPrivateFieldSet$1(this, _ReusableIterable_done, true, "f");
|
|
3645
|
+
}
|
|
3646
|
+
return { value, done };
|
|
3647
|
+
}
|
|
3648
|
+
};
|
|
3649
|
+
}
|
|
3650
|
+
}
|
|
3651
|
+
reusableIterable.ReusableIterable = ReusableIterable;
|
|
3652
|
+
|
|
3653
|
+
var reusableAsyncIterable = {};
|
|
3654
|
+
|
|
3655
|
+
var __classPrivateFieldGet = (commonjsGlobal && commonjsGlobal.__classPrivateFieldGet) || function (receiver, state, kind, f) {
|
|
3656
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
3657
|
+
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");
|
|
3658
|
+
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
3659
|
+
};
|
|
3660
|
+
var __classPrivateFieldSet = (commonjsGlobal && commonjsGlobal.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
|
|
3661
|
+
if (kind === "m") throw new TypeError("Private method is not writable");
|
|
3662
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
|
|
3663
|
+
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");
|
|
3664
|
+
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
3665
|
+
};
|
|
3666
|
+
var _ReusableAsyncIterable_done;reusableAsyncIterable.ReusableAsyncIterable = void 0;
|
|
3667
|
+
const extra_lazy_1 = es2018;
|
|
3668
|
+
class ReusableAsyncIterable {
|
|
3669
|
+
constructor(iterable) {
|
|
3670
|
+
_ReusableAsyncIterable_done.set(this, void 0);
|
|
3671
|
+
this.getIterator = (0, extra_lazy_1.lazy)(() => iterable[Symbol.asyncIterator]());
|
|
3672
|
+
}
|
|
3673
|
+
get done() {
|
|
3674
|
+
return __classPrivateFieldGet(this, _ReusableAsyncIterable_done, "f");
|
|
3675
|
+
}
|
|
3676
|
+
async close() {
|
|
3677
|
+
var _a, _b;
|
|
3678
|
+
if (!this.done) {
|
|
3679
|
+
__classPrivateFieldSet(this, _ReusableAsyncIterable_done, true, "f");
|
|
3680
|
+
await ((_b = (_a = this.getIterator()).return) === null || _b === void 0 ? void 0 : _b.call(_a));
|
|
3681
|
+
}
|
|
3682
|
+
}
|
|
3683
|
+
[(_ReusableAsyncIterable_done = new WeakMap(), Symbol.asyncIterator)]() {
|
|
3684
|
+
return {
|
|
3685
|
+
next: async () => {
|
|
3686
|
+
if (__classPrivateFieldGet(this, _ReusableAsyncIterable_done, "f"))
|
|
3687
|
+
return { done: true, value: undefined };
|
|
3688
|
+
const { value, done } = await this.getIterator().next();
|
|
3689
|
+
if (done) {
|
|
3690
|
+
__classPrivateFieldSet(this, _ReusableAsyncIterable_done, true, "f");
|
|
3691
|
+
}
|
|
3692
|
+
return { value, done };
|
|
3693
|
+
}
|
|
3694
|
+
};
|
|
3695
|
+
}
|
|
3696
|
+
}
|
|
3697
|
+
reusableAsyncIterable.ReusableAsyncIterable = ReusableAsyncIterable;
|
|
3698
|
+
|
|
3699
|
+
(function (exports) {
|
|
3700
|
+
var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3701
|
+
if (k2 === undefined) k2 = k;
|
|
3702
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
3703
|
+
}) : (function(o, m, k, k2) {
|
|
3704
|
+
if (k2 === undefined) k2 = k;
|
|
3705
|
+
o[k2] = m[k];
|
|
3706
|
+
}));
|
|
3707
|
+
var __exportStar = (commonjsGlobal && commonjsGlobal.__exportStar) || function(m, exports) {
|
|
3708
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
3709
|
+
};__exportStar(of$1, exports);
|
|
3710
|
+
__exportStar(repeat$2, exports);
|
|
3711
|
+
__exportStar(countdown$1, exports);
|
|
3712
|
+
__exportStar(countup$1, exports);
|
|
3713
|
+
__exportStar(range$1, exports);
|
|
3714
|
+
__exportStar(stringifyJsonStream, exports);
|
|
3715
|
+
__exportStar(stringifyJsonStreamAsync, exports);
|
|
3716
|
+
__exportStar(stringifyNdjsonStream, exports);
|
|
3717
|
+
__exportStar(stringifyNdjsonStreamAsync, exports);
|
|
3718
|
+
__exportStar(sse$1, exports);
|
|
3719
|
+
__exportStar(reusableIterable, exports);
|
|
3720
|
+
__exportStar(reusableAsyncIterable, exports);
|
|
3721
|
+
|
|
3722
|
+
}(es2018$1));
|
|
3723
|
+
|
|
3724
|
+
/**
|
|
3725
|
+
* @returns {number} 返回值为成功匹配的元素个数, 当此值等于ubound时, 代表匹配成功.
|
|
3726
|
+
*/
|
|
3727
|
+
function matchMultiple(node, ubound, matcher) {
|
|
3728
|
+
let currentNode = node;
|
|
3729
|
+
for (const round of es2018$1.countup(1, ubound)) {
|
|
3730
|
+
if (!currentNode)
|
|
3731
|
+
return round - 1;
|
|
3732
|
+
const result = matcher.call(this, currentNode);
|
|
3733
|
+
if (result) {
|
|
3734
|
+
currentNode = this.next(currentNode);
|
|
3735
|
+
}
|
|
3736
|
+
else {
|
|
3737
|
+
return round - 1;
|
|
3738
|
+
}
|
|
3739
|
+
}
|
|
3740
|
+
return ubound;
|
|
3741
|
+
}
|
|
3742
|
+
|
|
3743
|
+
var Range;
|
|
3744
|
+
(function (Range) {
|
|
3745
|
+
Range[Range["Min"] = 0] = "Min";
|
|
3746
|
+
Range[Range["Max"] = 1] = "Max";
|
|
3747
|
+
})(Range || (Range = {}));
|
|
3748
|
+
function multiple([min, max], matcher, options = { greedy: true }) {
|
|
3749
|
+
es2018$3.assert(Number.isInteger(min), 'parameter min must be an integer');
|
|
3750
|
+
es2018$3.assert(Number.isInteger(max) || max === Infinity, 'parameter max must be an integer or Infinity');
|
|
3751
|
+
es2018$3.assert(min >= 0, 'parameter min must be greater than or equal to 0');
|
|
3752
|
+
es2018$3.assert(min <= max, 'parameter max must be greater than or equal to min');
|
|
3753
|
+
return function* (node) {
|
|
3754
|
+
if (options.greedy) {
|
|
3755
|
+
let ubound = max;
|
|
3756
|
+
while (true) {
|
|
3757
|
+
const round = matchMultiple.call(this, node, ubound, matcher);
|
|
3758
|
+
if (round < min)
|
|
3759
|
+
break;
|
|
3760
|
+
yield round;
|
|
3761
|
+
ubound = round - 1;
|
|
3762
|
+
if (ubound < min)
|
|
3763
|
+
break;
|
|
3764
|
+
}
|
|
3765
|
+
}
|
|
3766
|
+
else {
|
|
3767
|
+
for (const ubound of es2018$1.countup(min, max)) {
|
|
3768
|
+
const result = matchMultiple.call(this, node, ubound, matcher);
|
|
3769
|
+
// 如果匹配的节点数量少于ubound, 说明匹配失败, 即使尝试更长的匹配也不会成功.
|
|
3770
|
+
if (result < ubound)
|
|
3771
|
+
break;
|
|
3772
|
+
if (result === ubound)
|
|
3773
|
+
yield ubound;
|
|
3774
|
+
}
|
|
3775
|
+
}
|
|
3776
|
+
};
|
|
3777
|
+
}
|
|
3778
|
+
|
|
3779
|
+
function node(...args) {
|
|
3780
|
+
if (Array.isArray(args[0])) {
|
|
3781
|
+
const [strings, ...values] = args;
|
|
3782
|
+
const name = concat(strings, values).join('');
|
|
3783
|
+
return (...matchers) => node(name, ...matchers);
|
|
3784
|
+
}
|
|
3785
|
+
if (es2018$2.isString(args[0])) {
|
|
3786
|
+
const [name, ...matchers] = args;
|
|
3787
|
+
return function (_node) {
|
|
3788
|
+
const result = node(...matchers).call(this, _node);
|
|
3789
|
+
if (result) {
|
|
3790
|
+
merge(this.collection, { [name]: _node });
|
|
3791
|
+
}
|
|
3792
|
+
return result;
|
|
3793
|
+
};
|
|
3794
|
+
}
|
|
3795
|
+
const [...matchers] = args;
|
|
3796
|
+
return function (node) {
|
|
3797
|
+
if (matchers.length === 0)
|
|
3798
|
+
return true;
|
|
3799
|
+
return matchers.every(match => match.call(this, node));
|
|
3800
|
+
};
|
|
3801
|
+
}
|
|
3802
|
+
|
|
3803
|
+
function optional(matcher) {
|
|
3804
|
+
return multiple([0, 1], matcher, { greedy: true });
|
|
3805
|
+
}
|
|
3806
|
+
|
|
3807
|
+
function repeat(times, matcher) {
|
|
3808
|
+
es2018$3.assert(Number.isInteger(times), 'parameter times must be an integer');
|
|
3809
|
+
es2018$3.assert(times >= 0, 'parameter number must be greater than or equal to 0');
|
|
3810
|
+
return function (node) {
|
|
3811
|
+
const result = matchMultiple.call(this, node, times, matcher);
|
|
3812
|
+
if (result === times) {
|
|
3813
|
+
return times;
|
|
3814
|
+
}
|
|
3815
|
+
else {
|
|
3816
|
+
return false;
|
|
3817
|
+
}
|
|
3818
|
+
};
|
|
3819
|
+
}
|
|
3820
|
+
|
|
3821
|
+
function tap(matcher, callback) {
|
|
3822
|
+
return function (node) {
|
|
3823
|
+
const result = matcher.call(this, node);
|
|
3824
|
+
callback(result);
|
|
3825
|
+
return result;
|
|
3826
|
+
};
|
|
3827
|
+
}
|
|
3828
|
+
|
|
3829
|
+
function textContentEquals(text, { caseSensitive = true, trim = false } = {}) {
|
|
3830
|
+
return (node) => {
|
|
3831
|
+
if (es2018$2.isNull(node.textContent))
|
|
3832
|
+
return false;
|
|
3833
|
+
let textContent = node.textContent;
|
|
3834
|
+
if (!caseSensitive) {
|
|
3835
|
+
textContent = textContent.toLowerCase();
|
|
3836
|
+
text = text.toLowerCase();
|
|
3837
|
+
}
|
|
3838
|
+
if (trim)
|
|
3839
|
+
textContent = textContent.trim();
|
|
3840
|
+
return textContent === text;
|
|
3841
|
+
};
|
|
3842
|
+
}
|
|
3843
|
+
|
|
3844
|
+
function textContentIncludes(searchString, { caseSensitive = true, trim = false } = {}) {
|
|
3845
|
+
return (node) => {
|
|
3846
|
+
if (es2018$2.isNull(node.textContent))
|
|
3847
|
+
return false;
|
|
3848
|
+
let textContent = node.textContent;
|
|
3849
|
+
if (!caseSensitive) {
|
|
3850
|
+
textContent = textContent.toLowerCase();
|
|
3851
|
+
searchString = searchString.toLowerCase();
|
|
3852
|
+
}
|
|
3853
|
+
if (trim)
|
|
3854
|
+
textContent = textContent.trim();
|
|
3855
|
+
return textContent.includes(searchString);
|
|
3856
|
+
};
|
|
3857
|
+
}
|
|
3858
|
+
|
|
3859
|
+
function textContentMatches(pattern, { trim = false } = {}) {
|
|
3860
|
+
return (node) => {
|
|
3861
|
+
if (es2018$2.isNull(node.textContent))
|
|
3862
|
+
return false;
|
|
3863
|
+
let textContent = node.textContent;
|
|
3864
|
+
if (trim)
|
|
3865
|
+
textContent = textContent.trim();
|
|
3866
|
+
return pattern.test(textContent);
|
|
3867
|
+
};
|
|
3868
|
+
}
|
|
3869
|
+
|
|
3870
|
+
function textNode(...args) {
|
|
3871
|
+
if (Array.isArray(args[0])) {
|
|
3872
|
+
const [strings, ...values] = args;
|
|
3873
|
+
const name = concat(strings, values).join('');
|
|
3874
|
+
return (...matchers) => textNode(name, ...matchers);
|
|
3875
|
+
}
|
|
3876
|
+
if (es2018$2.isString(args[0])) {
|
|
3877
|
+
const [name, ...matchers] = args;
|
|
3878
|
+
return function (node) {
|
|
3879
|
+
const result = textNode(...matchers).call(this, node);
|
|
3880
|
+
if (result) {
|
|
3881
|
+
merge(this.collection, { [name]: node });
|
|
3882
|
+
}
|
|
3883
|
+
return result;
|
|
3884
|
+
};
|
|
3885
|
+
}
|
|
3886
|
+
const [...matchers] = args;
|
|
3887
|
+
return function (node) {
|
|
3888
|
+
if (es2018$6.isntTextNode(node))
|
|
3889
|
+
return false;
|
|
3890
|
+
if (matchers.length === 0)
|
|
3891
|
+
return true;
|
|
3892
|
+
return matchers.every(match => match.call(this, node));
|
|
3893
|
+
};
|
|
3894
|
+
}
|
|
3895
|
+
|
|
3896
|
+
const UNORDERED_NODE_ITERATOR_TYPE = 'XPathResult' in globalThis
|
|
3897
|
+
? XPathResult.UNORDERED_NODE_ITERATOR_TYPE
|
|
3898
|
+
: 4;
|
|
3899
|
+
function xpath(...args) {
|
|
3900
|
+
if (es2018$2.isString(args[0])) {
|
|
3901
|
+
const [expression] = args;
|
|
3902
|
+
es2018$3.assert(expression.startsWith('//*'), 'XPath expressions must start with "//*"');
|
|
3903
|
+
return function (node) {
|
|
3904
|
+
return xpathMatches(this.document, expression, node);
|
|
3905
|
+
};
|
|
3906
|
+
}
|
|
3907
|
+
else {
|
|
3908
|
+
const [strings, ...values] = args;
|
|
3909
|
+
const expression = concat(strings, values).join('');
|
|
3910
|
+
return xpath(expression);
|
|
3911
|
+
}
|
|
3912
|
+
}
|
|
3913
|
+
function xpathMatches(document, expression, node) {
|
|
3914
|
+
const iterator = document.evaluate(expression, node, null, UNORDERED_NODE_ITERATOR_TYPE, null);
|
|
3915
|
+
let value;
|
|
3916
|
+
while ((value = iterator.iterateNext()) !== null) {
|
|
3917
|
+
if (value === node)
|
|
3918
|
+
return true;
|
|
3919
|
+
}
|
|
3920
|
+
return false;
|
|
3921
|
+
}
|
|
3922
|
+
|
|
3923
|
+
exports.anyOf = anyOf;
|
|
3924
|
+
exports.childNodes = childNodes;
|
|
3925
|
+
exports.children = children;
|
|
3926
|
+
exports.css = css;
|
|
3927
|
+
exports.element = element;
|
|
3928
|
+
exports.match = match;
|
|
3929
|
+
exports.matchElement = matchElement;
|
|
3930
|
+
exports.multiple = multiple;
|
|
3931
|
+
exports.node = node;
|
|
3932
|
+
exports.optional = optional;
|
|
3933
|
+
exports.repeat = repeat;
|
|
3934
|
+
exports.tap = tap;
|
|
3935
|
+
exports.textContentEquals = textContentEquals;
|
|
3936
|
+
exports.textContentIncludes = textContentIncludes;
|
|
3937
|
+
exports.textContentMatches = textContentMatches;
|
|
3938
|
+
exports.textNode = textNode;
|
|
3939
|
+
exports.xpath = xpath;
|
|
3940
|
+
|
|
3941
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
3942
|
+
|
|
3943
|
+
}));
|
|
3944
|
+
//# sourceMappingURL=index.umd.js.map
|