@openfeature/flagd-provider 0.7.0 → 0.7.2
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/index.cjs +59 -1793
- package/index.js +38 -1772
- package/package.json +5 -11
- package/{index.d.ts → src/index.d.ts} +0 -0
- package/{lib → src/lib}/configuration.d.ts +1 -1
- package/{lib → src/lib}/flagd-provider.d.ts +0 -0
- package/{lib → src/lib}/service/grpc/service.d.ts +0 -0
- package/{lib → src/lib}/service/service.d.ts +0 -0
- package/{proto → src/proto}/ts/google/protobuf/struct.d.ts +0 -0
- package/{proto → src/proto}/ts/schema/v1/schema.client.d.ts +9 -5
- package/{proto → src/proto}/ts/schema/v1/schema.d.ts +96 -0
- package/proto/ts/google/protobuf/empty.d.ts +0 -32
package/index.js
CHANGED
|
@@ -1,1054 +1,12 @@
|
|
|
1
|
+
import 'core-js/modules/es.object.assign.js';
|
|
1
2
|
import * as grpc from '@grpc/grpc-js';
|
|
2
3
|
import { GeneralError, FlagNotFoundError, TypeMismatchError, ParseError } from '@openfeature/js-sdk';
|
|
3
4
|
import { GrpcTransport } from '@protobuf-ts/grpc-transport';
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
};
|
|
10
|
-
|
|
11
|
-
// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
|
|
12
|
-
var global$c =
|
|
13
|
-
// eslint-disable-next-line es-x/no-global-this -- safe
|
|
14
|
-
check(typeof globalThis == 'object' && globalThis) ||
|
|
15
|
-
check(typeof window == 'object' && window) ||
|
|
16
|
-
// eslint-disable-next-line no-restricted-globals -- safe
|
|
17
|
-
check(typeof self == 'object' && self) ||
|
|
18
|
-
check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
|
|
19
|
-
// eslint-disable-next-line no-new-func -- fallback
|
|
20
|
-
(function () { return this; })() || Function('return this')();
|
|
21
|
-
|
|
22
|
-
var objectGetOwnPropertyDescriptor = {};
|
|
23
|
-
|
|
24
|
-
var fails$c = function (exec) {
|
|
25
|
-
try {
|
|
26
|
-
return !!exec();
|
|
27
|
-
} catch (error) {
|
|
28
|
-
return true;
|
|
29
|
-
}
|
|
30
|
-
};
|
|
31
|
-
|
|
32
|
-
var fails$b = fails$c;
|
|
33
|
-
|
|
34
|
-
// Detect IE8's incomplete defineProperty implementation
|
|
35
|
-
var descriptors = !fails$b(function () {
|
|
36
|
-
// eslint-disable-next-line es-x/no-object-defineproperty -- required for testing
|
|
37
|
-
return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7;
|
|
38
|
-
});
|
|
39
|
-
|
|
40
|
-
var fails$a = fails$c;
|
|
41
|
-
|
|
42
|
-
var functionBindNative = !fails$a(function () {
|
|
43
|
-
// eslint-disable-next-line es-x/no-function-prototype-bind -- safe
|
|
44
|
-
var test = (function () { /* empty */ }).bind();
|
|
45
|
-
// eslint-disable-next-line no-prototype-builtins -- safe
|
|
46
|
-
return typeof test != 'function' || test.hasOwnProperty('prototype');
|
|
47
|
-
});
|
|
48
|
-
|
|
49
|
-
var NATIVE_BIND$1 = functionBindNative;
|
|
50
|
-
|
|
51
|
-
var call$7 = Function.prototype.call;
|
|
52
|
-
|
|
53
|
-
var functionCall = NATIVE_BIND$1 ? call$7.bind(call$7) : function () {
|
|
54
|
-
return call$7.apply(call$7, arguments);
|
|
55
|
-
};
|
|
56
|
-
|
|
57
|
-
var objectPropertyIsEnumerable = {};
|
|
58
|
-
|
|
59
|
-
var $propertyIsEnumerable = {}.propertyIsEnumerable;
|
|
60
|
-
// eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
|
|
61
|
-
var getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
|
|
62
|
-
|
|
63
|
-
// Nashorn ~ JDK8 bug
|
|
64
|
-
var NASHORN_BUG = getOwnPropertyDescriptor$1 && !$propertyIsEnumerable.call({ 1: 2 }, 1);
|
|
65
|
-
|
|
66
|
-
// `Object.prototype.propertyIsEnumerable` method implementation
|
|
67
|
-
// https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable
|
|
68
|
-
objectPropertyIsEnumerable.f = NASHORN_BUG ? function propertyIsEnumerable(V) {
|
|
69
|
-
var descriptor = getOwnPropertyDescriptor$1(this, V);
|
|
70
|
-
return !!descriptor && descriptor.enumerable;
|
|
71
|
-
} : $propertyIsEnumerable;
|
|
72
|
-
|
|
73
|
-
var createPropertyDescriptor$3 = function (bitmap, value) {
|
|
74
|
-
return {
|
|
75
|
-
enumerable: !(bitmap & 1),
|
|
76
|
-
configurable: !(bitmap & 2),
|
|
77
|
-
writable: !(bitmap & 4),
|
|
78
|
-
value: value
|
|
79
|
-
};
|
|
80
|
-
};
|
|
81
|
-
|
|
82
|
-
var NATIVE_BIND = functionBindNative;
|
|
83
|
-
|
|
84
|
-
var FunctionPrototype$1 = Function.prototype;
|
|
85
|
-
var bind = FunctionPrototype$1.bind;
|
|
86
|
-
var call$6 = FunctionPrototype$1.call;
|
|
87
|
-
var uncurryThis$b = NATIVE_BIND && bind.bind(call$6, call$6);
|
|
88
|
-
|
|
89
|
-
var functionUncurryThis = NATIVE_BIND ? function (fn) {
|
|
90
|
-
return fn && uncurryThis$b(fn);
|
|
91
|
-
} : function (fn) {
|
|
92
|
-
return fn && function () {
|
|
93
|
-
return call$6.apply(fn, arguments);
|
|
94
|
-
};
|
|
95
|
-
};
|
|
96
|
-
|
|
97
|
-
var uncurryThis$a = functionUncurryThis;
|
|
98
|
-
|
|
99
|
-
var toString$2 = uncurryThis$a({}.toString);
|
|
100
|
-
var stringSlice = uncurryThis$a(''.slice);
|
|
101
|
-
|
|
102
|
-
var classofRaw$1 = function (it) {
|
|
103
|
-
return stringSlice(toString$2(it), 8, -1);
|
|
104
|
-
};
|
|
105
|
-
|
|
106
|
-
var uncurryThis$9 = functionUncurryThis;
|
|
107
|
-
var fails$9 = fails$c;
|
|
108
|
-
var classof$2 = classofRaw$1;
|
|
109
|
-
|
|
110
|
-
var $Object$4 = Object;
|
|
111
|
-
var split = uncurryThis$9(''.split);
|
|
112
|
-
|
|
113
|
-
// fallback for non-array-like ES3 and non-enumerable old V8 strings
|
|
114
|
-
var indexedObject = fails$9(function () {
|
|
115
|
-
// throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
|
|
116
|
-
// eslint-disable-next-line no-prototype-builtins -- safe
|
|
117
|
-
return !$Object$4('z').propertyIsEnumerable(0);
|
|
118
|
-
}) ? function (it) {
|
|
119
|
-
return classof$2(it) == 'String' ? split(it, '') : $Object$4(it);
|
|
120
|
-
} : $Object$4;
|
|
121
|
-
|
|
122
|
-
var $TypeError$6 = TypeError;
|
|
123
|
-
|
|
124
|
-
// `RequireObjectCoercible` abstract operation
|
|
125
|
-
// https://tc39.es/ecma262/#sec-requireobjectcoercible
|
|
126
|
-
var requireObjectCoercible$2 = function (it) {
|
|
127
|
-
if (it == undefined) throw $TypeError$6("Can't call method on " + it);
|
|
128
|
-
return it;
|
|
129
|
-
};
|
|
130
|
-
|
|
131
|
-
// toObject with fallback for non-array-like ES3 strings
|
|
132
|
-
var IndexedObject$1 = indexedObject;
|
|
133
|
-
var requireObjectCoercible$1 = requireObjectCoercible$2;
|
|
134
|
-
|
|
135
|
-
var toIndexedObject$5 = function (it) {
|
|
136
|
-
return IndexedObject$1(requireObjectCoercible$1(it));
|
|
137
|
-
};
|
|
138
|
-
|
|
139
|
-
// `IsCallable` abstract operation
|
|
140
|
-
// https://tc39.es/ecma262/#sec-iscallable
|
|
141
|
-
var isCallable$f = function (argument) {
|
|
142
|
-
return typeof argument == 'function';
|
|
143
|
-
};
|
|
144
|
-
|
|
145
|
-
var isCallable$e = isCallable$f;
|
|
146
|
-
|
|
147
|
-
var isObject$5 = function (it) {
|
|
148
|
-
return typeof it == 'object' ? it !== null : isCallable$e(it);
|
|
149
|
-
};
|
|
150
|
-
|
|
151
|
-
var global$b = global$c;
|
|
152
|
-
var isCallable$d = isCallable$f;
|
|
153
|
-
|
|
154
|
-
var aFunction = function (argument) {
|
|
155
|
-
return isCallable$d(argument) ? argument : undefined;
|
|
156
|
-
};
|
|
157
|
-
|
|
158
|
-
var getBuiltIn$4 = function (namespace, method) {
|
|
159
|
-
return arguments.length < 2 ? aFunction(global$b[namespace]) : global$b[namespace] && global$b[namespace][method];
|
|
160
|
-
};
|
|
161
|
-
|
|
162
|
-
var uncurryThis$8 = functionUncurryThis;
|
|
163
|
-
|
|
164
|
-
var objectIsPrototypeOf = uncurryThis$8({}.isPrototypeOf);
|
|
165
|
-
|
|
166
|
-
var getBuiltIn$3 = getBuiltIn$4;
|
|
167
|
-
|
|
168
|
-
var engineUserAgent = getBuiltIn$3('navigator', 'userAgent') || '';
|
|
169
|
-
|
|
170
|
-
var global$a = global$c;
|
|
171
|
-
var userAgent = engineUserAgent;
|
|
172
|
-
|
|
173
|
-
var process$1 = global$a.process;
|
|
174
|
-
var Deno = global$a.Deno;
|
|
175
|
-
var versions = process$1 && process$1.versions || Deno && Deno.version;
|
|
176
|
-
var v8 = versions && versions.v8;
|
|
177
|
-
var match, version;
|
|
178
|
-
|
|
179
|
-
if (v8) {
|
|
180
|
-
match = v8.split('.');
|
|
181
|
-
// in old Chrome, versions of V8 isn't V8 = Chrome / 10
|
|
182
|
-
// but their correct versions are not interesting for us
|
|
183
|
-
version = match[0] > 0 && match[0] < 4 ? 1 : +(match[0] + match[1]);
|
|
184
|
-
}
|
|
185
|
-
|
|
186
|
-
// BrowserFS NodeJS `process` polyfill incorrectly set `.v8` to `0.0`
|
|
187
|
-
// so check `userAgent` even if `.v8` exists, but 0
|
|
188
|
-
if (!version && userAgent) {
|
|
189
|
-
match = userAgent.match(/Edge\/(\d+)/);
|
|
190
|
-
if (!match || match[1] >= 74) {
|
|
191
|
-
match = userAgent.match(/Chrome\/(\d+)/);
|
|
192
|
-
if (match) version = +match[1];
|
|
193
|
-
}
|
|
194
|
-
}
|
|
195
|
-
|
|
196
|
-
var engineV8Version = version;
|
|
197
|
-
|
|
198
|
-
/* eslint-disable es-x/no-symbol -- required for testing */
|
|
199
|
-
|
|
200
|
-
var V8_VERSION = engineV8Version;
|
|
201
|
-
var fails$8 = fails$c;
|
|
202
|
-
|
|
203
|
-
// eslint-disable-next-line es-x/no-object-getownpropertysymbols -- required for testing
|
|
204
|
-
var nativeSymbol = !!Object.getOwnPropertySymbols && !fails$8(function () {
|
|
205
|
-
var symbol = Symbol();
|
|
206
|
-
// Chrome 38 Symbol has incorrect toString conversion
|
|
207
|
-
// `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
|
|
208
|
-
return !String(symbol) || !(Object(symbol) instanceof Symbol) ||
|
|
209
|
-
// Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
|
|
210
|
-
!Symbol.sham && V8_VERSION && V8_VERSION < 41;
|
|
211
|
-
});
|
|
212
|
-
|
|
213
|
-
/* eslint-disable es-x/no-symbol -- required for testing */
|
|
214
|
-
|
|
215
|
-
var NATIVE_SYMBOL$1 = nativeSymbol;
|
|
216
|
-
|
|
217
|
-
var useSymbolAsUid = NATIVE_SYMBOL$1
|
|
218
|
-
&& !Symbol.sham
|
|
219
|
-
&& typeof Symbol.iterator == 'symbol';
|
|
220
|
-
|
|
221
|
-
var getBuiltIn$2 = getBuiltIn$4;
|
|
222
|
-
var isCallable$c = isCallable$f;
|
|
223
|
-
var isPrototypeOf$1 = objectIsPrototypeOf;
|
|
224
|
-
var USE_SYMBOL_AS_UID$1 = useSymbolAsUid;
|
|
225
|
-
|
|
226
|
-
var $Object$3 = Object;
|
|
227
|
-
|
|
228
|
-
var isSymbol$2 = USE_SYMBOL_AS_UID$1 ? function (it) {
|
|
229
|
-
return typeof it == 'symbol';
|
|
230
|
-
} : function (it) {
|
|
231
|
-
var $Symbol = getBuiltIn$2('Symbol');
|
|
232
|
-
return isCallable$c($Symbol) && isPrototypeOf$1($Symbol.prototype, $Object$3(it));
|
|
233
|
-
};
|
|
234
|
-
|
|
235
|
-
var $String$3 = String;
|
|
236
|
-
|
|
237
|
-
var tryToString$1 = function (argument) {
|
|
238
|
-
try {
|
|
239
|
-
return $String$3(argument);
|
|
240
|
-
} catch (error) {
|
|
241
|
-
return 'Object';
|
|
242
|
-
}
|
|
243
|
-
};
|
|
244
|
-
|
|
245
|
-
var isCallable$b = isCallable$f;
|
|
246
|
-
var tryToString = tryToString$1;
|
|
247
|
-
|
|
248
|
-
var $TypeError$5 = TypeError;
|
|
249
|
-
|
|
250
|
-
// `Assert: IsCallable(argument) is true`
|
|
251
|
-
var aCallable$1 = function (argument) {
|
|
252
|
-
if (isCallable$b(argument)) return argument;
|
|
253
|
-
throw $TypeError$5(tryToString(argument) + ' is not a function');
|
|
254
|
-
};
|
|
255
|
-
|
|
256
|
-
var aCallable = aCallable$1;
|
|
257
|
-
|
|
258
|
-
// `GetMethod` abstract operation
|
|
259
|
-
// https://tc39.es/ecma262/#sec-getmethod
|
|
260
|
-
var getMethod$1 = function (V, P) {
|
|
261
|
-
var func = V[P];
|
|
262
|
-
return func == null ? undefined : aCallable(func);
|
|
263
|
-
};
|
|
264
|
-
|
|
265
|
-
var call$5 = functionCall;
|
|
266
|
-
var isCallable$a = isCallable$f;
|
|
267
|
-
var isObject$4 = isObject$5;
|
|
268
|
-
|
|
269
|
-
var $TypeError$4 = TypeError;
|
|
270
|
-
|
|
271
|
-
// `OrdinaryToPrimitive` abstract operation
|
|
272
|
-
// https://tc39.es/ecma262/#sec-ordinarytoprimitive
|
|
273
|
-
var ordinaryToPrimitive$1 = function (input, pref) {
|
|
274
|
-
var fn, val;
|
|
275
|
-
if (pref === 'string' && isCallable$a(fn = input.toString) && !isObject$4(val = call$5(fn, input))) return val;
|
|
276
|
-
if (isCallable$a(fn = input.valueOf) && !isObject$4(val = call$5(fn, input))) return val;
|
|
277
|
-
if (pref !== 'string' && isCallable$a(fn = input.toString) && !isObject$4(val = call$5(fn, input))) return val;
|
|
278
|
-
throw $TypeError$4("Can't convert object to primitive value");
|
|
279
|
-
};
|
|
280
|
-
|
|
281
|
-
var shared$3 = {exports: {}};
|
|
282
|
-
|
|
283
|
-
var global$9 = global$c;
|
|
284
|
-
|
|
285
|
-
// eslint-disable-next-line es-x/no-object-defineproperty -- safe
|
|
286
|
-
var defineProperty$5 = Object.defineProperty;
|
|
287
|
-
|
|
288
|
-
var defineGlobalProperty$3 = function (key, value) {
|
|
289
|
-
try {
|
|
290
|
-
defineProperty$5(global$9, key, { value: value, configurable: true, writable: true });
|
|
291
|
-
} catch (error) {
|
|
292
|
-
global$9[key] = value;
|
|
293
|
-
} return value;
|
|
294
|
-
};
|
|
295
|
-
|
|
296
|
-
var global$8 = global$c;
|
|
297
|
-
var defineGlobalProperty$2 = defineGlobalProperty$3;
|
|
298
|
-
|
|
299
|
-
var SHARED = '__core-js_shared__';
|
|
300
|
-
var store$3 = global$8[SHARED] || defineGlobalProperty$2(SHARED, {});
|
|
301
|
-
|
|
302
|
-
var sharedStore = store$3;
|
|
303
|
-
|
|
304
|
-
var store$2 = sharedStore;
|
|
305
|
-
|
|
306
|
-
(shared$3.exports = function (key, value) {
|
|
307
|
-
return store$2[key] || (store$2[key] = value !== undefined ? value : {});
|
|
308
|
-
})('versions', []).push({
|
|
309
|
-
version: '3.22.8',
|
|
310
|
-
mode: 'global',
|
|
311
|
-
copyright: '© 2014-2022 Denis Pushkarev (zloirock.ru)',
|
|
312
|
-
license: 'https://github.com/zloirock/core-js/blob/v3.22.8/LICENSE',
|
|
313
|
-
source: 'https://github.com/zloirock/core-js'
|
|
314
|
-
});
|
|
315
|
-
|
|
316
|
-
var requireObjectCoercible = requireObjectCoercible$2;
|
|
317
|
-
|
|
318
|
-
var $Object$2 = Object;
|
|
319
|
-
|
|
320
|
-
// `ToObject` abstract operation
|
|
321
|
-
// https://tc39.es/ecma262/#sec-toobject
|
|
322
|
-
var toObject$3 = function (argument) {
|
|
323
|
-
return $Object$2(requireObjectCoercible(argument));
|
|
324
|
-
};
|
|
325
|
-
|
|
326
|
-
var uncurryThis$7 = functionUncurryThis;
|
|
327
|
-
var toObject$2 = toObject$3;
|
|
328
|
-
|
|
329
|
-
var hasOwnProperty = uncurryThis$7({}.hasOwnProperty);
|
|
330
|
-
|
|
331
|
-
// `HasOwnProperty` abstract operation
|
|
332
|
-
// https://tc39.es/ecma262/#sec-hasownproperty
|
|
333
|
-
// eslint-disable-next-line es-x/no-object-hasown -- safe
|
|
334
|
-
var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
|
|
335
|
-
return hasOwnProperty(toObject$2(it), key);
|
|
336
|
-
};
|
|
337
|
-
|
|
338
|
-
var uncurryThis$6 = functionUncurryThis;
|
|
339
|
-
|
|
340
|
-
var id = 0;
|
|
341
|
-
var postfix = Math.random();
|
|
342
|
-
var toString$1 = uncurryThis$6(1.0.toString);
|
|
343
|
-
|
|
344
|
-
var uid$2 = function (key) {
|
|
345
|
-
return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$1(++id + postfix, 36);
|
|
346
|
-
};
|
|
347
|
-
|
|
348
|
-
var global$7 = global$c;
|
|
349
|
-
var shared$2 = shared$3.exports;
|
|
350
|
-
var hasOwn$9 = hasOwnProperty_1;
|
|
351
|
-
var uid$1 = uid$2;
|
|
352
|
-
var NATIVE_SYMBOL = nativeSymbol;
|
|
353
|
-
var USE_SYMBOL_AS_UID = useSymbolAsUid;
|
|
354
|
-
|
|
355
|
-
var WellKnownSymbolsStore = shared$2('wks');
|
|
356
|
-
var Symbol$1 = global$7.Symbol;
|
|
357
|
-
var symbolFor = Symbol$1 && Symbol$1['for'];
|
|
358
|
-
var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid$1;
|
|
359
|
-
|
|
360
|
-
var wellKnownSymbol$8 = function (name) {
|
|
361
|
-
if (!hasOwn$9(WellKnownSymbolsStore, name) || !(NATIVE_SYMBOL || typeof WellKnownSymbolsStore[name] == 'string')) {
|
|
362
|
-
var description = 'Symbol.' + name;
|
|
363
|
-
if (NATIVE_SYMBOL && hasOwn$9(Symbol$1, name)) {
|
|
364
|
-
WellKnownSymbolsStore[name] = Symbol$1[name];
|
|
365
|
-
} else if (USE_SYMBOL_AS_UID && symbolFor) {
|
|
366
|
-
WellKnownSymbolsStore[name] = symbolFor(description);
|
|
367
|
-
} else {
|
|
368
|
-
WellKnownSymbolsStore[name] = createWellKnownSymbol(description);
|
|
369
|
-
}
|
|
370
|
-
} return WellKnownSymbolsStore[name];
|
|
371
|
-
};
|
|
372
|
-
|
|
373
|
-
var call$4 = functionCall;
|
|
374
|
-
var isObject$3 = isObject$5;
|
|
375
|
-
var isSymbol$1 = isSymbol$2;
|
|
376
|
-
var getMethod = getMethod$1;
|
|
377
|
-
var ordinaryToPrimitive = ordinaryToPrimitive$1;
|
|
378
|
-
var wellKnownSymbol$7 = wellKnownSymbol$8;
|
|
379
|
-
|
|
380
|
-
var $TypeError$3 = TypeError;
|
|
381
|
-
var TO_PRIMITIVE = wellKnownSymbol$7('toPrimitive');
|
|
382
|
-
|
|
383
|
-
// `ToPrimitive` abstract operation
|
|
384
|
-
// https://tc39.es/ecma262/#sec-toprimitive
|
|
385
|
-
var toPrimitive$1 = function (input, pref) {
|
|
386
|
-
if (!isObject$3(input) || isSymbol$1(input)) return input;
|
|
387
|
-
var exoticToPrim = getMethod(input, TO_PRIMITIVE);
|
|
388
|
-
var result;
|
|
389
|
-
if (exoticToPrim) {
|
|
390
|
-
if (pref === undefined) pref = 'default';
|
|
391
|
-
result = call$4(exoticToPrim, input, pref);
|
|
392
|
-
if (!isObject$3(result) || isSymbol$1(result)) return result;
|
|
393
|
-
throw $TypeError$3("Can't convert object to primitive value");
|
|
394
|
-
}
|
|
395
|
-
if (pref === undefined) pref = 'number';
|
|
396
|
-
return ordinaryToPrimitive(input, pref);
|
|
397
|
-
};
|
|
398
|
-
|
|
399
|
-
var toPrimitive = toPrimitive$1;
|
|
400
|
-
var isSymbol = isSymbol$2;
|
|
401
|
-
|
|
402
|
-
// `ToPropertyKey` abstract operation
|
|
403
|
-
// https://tc39.es/ecma262/#sec-topropertykey
|
|
404
|
-
var toPropertyKey$2 = function (argument) {
|
|
405
|
-
var key = toPrimitive(argument, 'string');
|
|
406
|
-
return isSymbol(key) ? key : key + '';
|
|
407
|
-
};
|
|
408
|
-
|
|
409
|
-
var global$6 = global$c;
|
|
410
|
-
var isObject$2 = isObject$5;
|
|
411
|
-
|
|
412
|
-
var document$1 = global$6.document;
|
|
413
|
-
// typeof document.createElement is 'object' in old IE
|
|
414
|
-
var EXISTS$1 = isObject$2(document$1) && isObject$2(document$1.createElement);
|
|
415
|
-
|
|
416
|
-
var documentCreateElement$2 = function (it) {
|
|
417
|
-
return EXISTS$1 ? document$1.createElement(it) : {};
|
|
418
|
-
};
|
|
419
|
-
|
|
420
|
-
var DESCRIPTORS$9 = descriptors;
|
|
421
|
-
var fails$7 = fails$c;
|
|
422
|
-
var createElement = documentCreateElement$2;
|
|
423
|
-
|
|
424
|
-
// Thanks to IE8 for its funny defineProperty
|
|
425
|
-
var ie8DomDefine = !DESCRIPTORS$9 && !fails$7(function () {
|
|
426
|
-
// eslint-disable-next-line es-x/no-object-defineproperty -- required for testing
|
|
427
|
-
return Object.defineProperty(createElement('div'), 'a', {
|
|
428
|
-
get: function () { return 7; }
|
|
429
|
-
}).a != 7;
|
|
430
|
-
});
|
|
431
|
-
|
|
432
|
-
var DESCRIPTORS$8 = descriptors;
|
|
433
|
-
var call$3 = functionCall;
|
|
434
|
-
var propertyIsEnumerableModule$1 = objectPropertyIsEnumerable;
|
|
435
|
-
var createPropertyDescriptor$2 = createPropertyDescriptor$3;
|
|
436
|
-
var toIndexedObject$4 = toIndexedObject$5;
|
|
437
|
-
var toPropertyKey$1 = toPropertyKey$2;
|
|
438
|
-
var hasOwn$8 = hasOwnProperty_1;
|
|
439
|
-
var IE8_DOM_DEFINE$1 = ie8DomDefine;
|
|
440
|
-
|
|
441
|
-
// eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
|
|
442
|
-
var $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
|
|
443
|
-
|
|
444
|
-
// `Object.getOwnPropertyDescriptor` method
|
|
445
|
-
// https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
|
|
446
|
-
objectGetOwnPropertyDescriptor.f = DESCRIPTORS$8 ? $getOwnPropertyDescriptor$1 : function getOwnPropertyDescriptor(O, P) {
|
|
447
|
-
O = toIndexedObject$4(O);
|
|
448
|
-
P = toPropertyKey$1(P);
|
|
449
|
-
if (IE8_DOM_DEFINE$1) try {
|
|
450
|
-
return $getOwnPropertyDescriptor$1(O, P);
|
|
451
|
-
} catch (error) { /* empty */ }
|
|
452
|
-
if (hasOwn$8(O, P)) return createPropertyDescriptor$2(!call$3(propertyIsEnumerableModule$1.f, O, P), O[P]);
|
|
453
|
-
};
|
|
454
|
-
|
|
455
|
-
var objectDefineProperty = {};
|
|
456
|
-
|
|
457
|
-
var DESCRIPTORS$7 = descriptors;
|
|
458
|
-
var fails$6 = fails$c;
|
|
459
|
-
|
|
460
|
-
// V8 ~ Chrome 36-
|
|
461
|
-
// https://bugs.chromium.org/p/v8/issues/detail?id=3334
|
|
462
|
-
var v8PrototypeDefineBug = DESCRIPTORS$7 && fails$6(function () {
|
|
463
|
-
// eslint-disable-next-line es-x/no-object-defineproperty -- required for testing
|
|
464
|
-
return Object.defineProperty(function () { /* empty */ }, 'prototype', {
|
|
465
|
-
value: 42,
|
|
466
|
-
writable: false
|
|
467
|
-
}).prototype != 42;
|
|
468
|
-
});
|
|
469
|
-
|
|
470
|
-
var isObject$1 = isObject$5;
|
|
471
|
-
|
|
472
|
-
var $String$2 = String;
|
|
473
|
-
var $TypeError$2 = TypeError;
|
|
474
|
-
|
|
475
|
-
// `Assert: Type(argument) is Object`
|
|
476
|
-
var anObject$7 = function (argument) {
|
|
477
|
-
if (isObject$1(argument)) return argument;
|
|
478
|
-
throw $TypeError$2($String$2(argument) + ' is not an object');
|
|
479
|
-
};
|
|
480
|
-
|
|
481
|
-
var DESCRIPTORS$6 = descriptors;
|
|
482
|
-
var IE8_DOM_DEFINE = ie8DomDefine;
|
|
483
|
-
var V8_PROTOTYPE_DEFINE_BUG$1 = v8PrototypeDefineBug;
|
|
484
|
-
var anObject$6 = anObject$7;
|
|
485
|
-
var toPropertyKey = toPropertyKey$2;
|
|
486
|
-
|
|
487
|
-
var $TypeError$1 = TypeError;
|
|
488
|
-
// eslint-disable-next-line es-x/no-object-defineproperty -- safe
|
|
489
|
-
var $defineProperty = Object.defineProperty;
|
|
490
|
-
// eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
|
|
491
|
-
var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
|
|
492
|
-
var ENUMERABLE = 'enumerable';
|
|
493
|
-
var CONFIGURABLE$1 = 'configurable';
|
|
494
|
-
var WRITABLE = 'writable';
|
|
495
|
-
|
|
496
|
-
// `Object.defineProperty` method
|
|
497
|
-
// https://tc39.es/ecma262/#sec-object.defineproperty
|
|
498
|
-
objectDefineProperty.f = DESCRIPTORS$6 ? V8_PROTOTYPE_DEFINE_BUG$1 ? function defineProperty(O, P, Attributes) {
|
|
499
|
-
anObject$6(O);
|
|
500
|
-
P = toPropertyKey(P);
|
|
501
|
-
anObject$6(Attributes);
|
|
502
|
-
if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {
|
|
503
|
-
var current = $getOwnPropertyDescriptor(O, P);
|
|
504
|
-
if (current && current[WRITABLE]) {
|
|
505
|
-
O[P] = Attributes.value;
|
|
506
|
-
Attributes = {
|
|
507
|
-
configurable: CONFIGURABLE$1 in Attributes ? Attributes[CONFIGURABLE$1] : current[CONFIGURABLE$1],
|
|
508
|
-
enumerable: ENUMERABLE in Attributes ? Attributes[ENUMERABLE] : current[ENUMERABLE],
|
|
509
|
-
writable: false
|
|
510
|
-
};
|
|
511
|
-
}
|
|
512
|
-
} return $defineProperty(O, P, Attributes);
|
|
513
|
-
} : $defineProperty : function defineProperty(O, P, Attributes) {
|
|
514
|
-
anObject$6(O);
|
|
515
|
-
P = toPropertyKey(P);
|
|
516
|
-
anObject$6(Attributes);
|
|
517
|
-
if (IE8_DOM_DEFINE) try {
|
|
518
|
-
return $defineProperty(O, P, Attributes);
|
|
519
|
-
} catch (error) { /* empty */ }
|
|
520
|
-
if ('get' in Attributes || 'set' in Attributes) throw $TypeError$1('Accessors not supported');
|
|
521
|
-
if ('value' in Attributes) O[P] = Attributes.value;
|
|
522
|
-
return O;
|
|
523
|
-
};
|
|
524
|
-
|
|
525
|
-
var DESCRIPTORS$5 = descriptors;
|
|
526
|
-
var definePropertyModule$2 = objectDefineProperty;
|
|
527
|
-
var createPropertyDescriptor$1 = createPropertyDescriptor$3;
|
|
528
|
-
|
|
529
|
-
var createNonEnumerableProperty$5 = DESCRIPTORS$5 ? function (object, key, value) {
|
|
530
|
-
return definePropertyModule$2.f(object, key, createPropertyDescriptor$1(1, value));
|
|
531
|
-
} : function (object, key, value) {
|
|
532
|
-
object[key] = value;
|
|
533
|
-
return object;
|
|
534
|
-
};
|
|
535
|
-
|
|
536
|
-
var makeBuiltIn$2 = {exports: {}};
|
|
537
|
-
|
|
538
|
-
var DESCRIPTORS$4 = descriptors;
|
|
539
|
-
var hasOwn$7 = hasOwnProperty_1;
|
|
540
|
-
|
|
541
|
-
var FunctionPrototype = Function.prototype;
|
|
542
|
-
// eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
|
|
543
|
-
var getDescriptor = DESCRIPTORS$4 && Object.getOwnPropertyDescriptor;
|
|
544
|
-
|
|
545
|
-
var EXISTS = hasOwn$7(FunctionPrototype, 'name');
|
|
546
|
-
// additional protection from minified / mangled / dropped function names
|
|
547
|
-
var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';
|
|
548
|
-
var CONFIGURABLE = EXISTS && (!DESCRIPTORS$4 || (DESCRIPTORS$4 && getDescriptor(FunctionPrototype, 'name').configurable));
|
|
549
|
-
|
|
550
|
-
var functionName = {
|
|
551
|
-
EXISTS: EXISTS,
|
|
552
|
-
PROPER: PROPER,
|
|
553
|
-
CONFIGURABLE: CONFIGURABLE
|
|
554
|
-
};
|
|
555
|
-
|
|
556
|
-
var uncurryThis$5 = functionUncurryThis;
|
|
557
|
-
var isCallable$9 = isCallable$f;
|
|
558
|
-
var store$1 = sharedStore;
|
|
559
|
-
|
|
560
|
-
var functionToString = uncurryThis$5(Function.toString);
|
|
561
|
-
|
|
562
|
-
// this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
|
|
563
|
-
if (!isCallable$9(store$1.inspectSource)) {
|
|
564
|
-
store$1.inspectSource = function (it) {
|
|
565
|
-
return functionToString(it);
|
|
566
|
-
};
|
|
567
|
-
}
|
|
568
|
-
|
|
569
|
-
var inspectSource$2 = store$1.inspectSource;
|
|
570
|
-
|
|
571
|
-
var global$5 = global$c;
|
|
572
|
-
var isCallable$8 = isCallable$f;
|
|
573
|
-
var inspectSource$1 = inspectSource$2;
|
|
574
|
-
|
|
575
|
-
var WeakMap$1 = global$5.WeakMap;
|
|
576
|
-
|
|
577
|
-
var nativeWeakMap = isCallable$8(WeakMap$1) && /native code/.test(inspectSource$1(WeakMap$1));
|
|
578
|
-
|
|
579
|
-
var shared$1 = shared$3.exports;
|
|
580
|
-
var uid = uid$2;
|
|
581
|
-
|
|
582
|
-
var keys = shared$1('keys');
|
|
583
|
-
|
|
584
|
-
var sharedKey$3 = function (key) {
|
|
585
|
-
return keys[key] || (keys[key] = uid(key));
|
|
586
|
-
};
|
|
587
|
-
|
|
588
|
-
var hiddenKeys$4 = {};
|
|
589
|
-
|
|
590
|
-
var NATIVE_WEAK_MAP = nativeWeakMap;
|
|
591
|
-
var global$4 = global$c;
|
|
592
|
-
var uncurryThis$4 = functionUncurryThis;
|
|
593
|
-
var isObject = isObject$5;
|
|
594
|
-
var createNonEnumerableProperty$4 = createNonEnumerableProperty$5;
|
|
595
|
-
var hasOwn$6 = hasOwnProperty_1;
|
|
596
|
-
var shared = sharedStore;
|
|
597
|
-
var sharedKey$2 = sharedKey$3;
|
|
598
|
-
var hiddenKeys$3 = hiddenKeys$4;
|
|
599
|
-
|
|
600
|
-
var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
|
|
601
|
-
var TypeError$1 = global$4.TypeError;
|
|
602
|
-
var WeakMap = global$4.WeakMap;
|
|
603
|
-
var set, get, has;
|
|
604
|
-
|
|
605
|
-
var enforce = function (it) {
|
|
606
|
-
return has(it) ? get(it) : set(it, {});
|
|
607
|
-
};
|
|
608
|
-
|
|
609
|
-
var getterFor = function (TYPE) {
|
|
610
|
-
return function (it) {
|
|
611
|
-
var state;
|
|
612
|
-
if (!isObject(it) || (state = get(it)).type !== TYPE) {
|
|
613
|
-
throw TypeError$1('Incompatible receiver, ' + TYPE + ' required');
|
|
614
|
-
} return state;
|
|
615
|
-
};
|
|
616
|
-
};
|
|
617
|
-
|
|
618
|
-
if (NATIVE_WEAK_MAP || shared.state) {
|
|
619
|
-
var store = shared.state || (shared.state = new WeakMap());
|
|
620
|
-
var wmget = uncurryThis$4(store.get);
|
|
621
|
-
var wmhas = uncurryThis$4(store.has);
|
|
622
|
-
var wmset = uncurryThis$4(store.set);
|
|
623
|
-
set = function (it, metadata) {
|
|
624
|
-
if (wmhas(store, it)) throw new TypeError$1(OBJECT_ALREADY_INITIALIZED);
|
|
625
|
-
metadata.facade = it;
|
|
626
|
-
wmset(store, it, metadata);
|
|
627
|
-
return metadata;
|
|
628
|
-
};
|
|
629
|
-
get = function (it) {
|
|
630
|
-
return wmget(store, it) || {};
|
|
631
|
-
};
|
|
632
|
-
has = function (it) {
|
|
633
|
-
return wmhas(store, it);
|
|
634
|
-
};
|
|
635
|
-
} else {
|
|
636
|
-
var STATE = sharedKey$2('state');
|
|
637
|
-
hiddenKeys$3[STATE] = true;
|
|
638
|
-
set = function (it, metadata) {
|
|
639
|
-
if (hasOwn$6(it, STATE)) throw new TypeError$1(OBJECT_ALREADY_INITIALIZED);
|
|
640
|
-
metadata.facade = it;
|
|
641
|
-
createNonEnumerableProperty$4(it, STATE, metadata);
|
|
642
|
-
return metadata;
|
|
643
|
-
};
|
|
644
|
-
get = function (it) {
|
|
645
|
-
return hasOwn$6(it, STATE) ? it[STATE] : {};
|
|
646
|
-
};
|
|
647
|
-
has = function (it) {
|
|
648
|
-
return hasOwn$6(it, STATE);
|
|
649
|
-
};
|
|
650
|
-
}
|
|
651
|
-
|
|
652
|
-
var internalState = {
|
|
653
|
-
set: set,
|
|
654
|
-
get: get,
|
|
655
|
-
has: has,
|
|
656
|
-
enforce: enforce,
|
|
657
|
-
getterFor: getterFor
|
|
658
|
-
};
|
|
659
|
-
|
|
660
|
-
var fails$5 = fails$c;
|
|
661
|
-
var isCallable$7 = isCallable$f;
|
|
662
|
-
var hasOwn$5 = hasOwnProperty_1;
|
|
663
|
-
var DESCRIPTORS$3 = descriptors;
|
|
664
|
-
var CONFIGURABLE_FUNCTION_NAME$1 = functionName.CONFIGURABLE;
|
|
665
|
-
var inspectSource = inspectSource$2;
|
|
666
|
-
var InternalStateModule$1 = internalState;
|
|
667
|
-
|
|
668
|
-
var enforceInternalState = InternalStateModule$1.enforce;
|
|
669
|
-
var getInternalState$1 = InternalStateModule$1.get;
|
|
670
|
-
// eslint-disable-next-line es-x/no-object-defineproperty -- safe
|
|
671
|
-
var defineProperty$4 = Object.defineProperty;
|
|
672
|
-
|
|
673
|
-
var CONFIGURABLE_LENGTH = DESCRIPTORS$3 && !fails$5(function () {
|
|
674
|
-
return defineProperty$4(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
|
|
675
|
-
});
|
|
676
|
-
|
|
677
|
-
var TEMPLATE = String(String).split('String');
|
|
678
|
-
|
|
679
|
-
var makeBuiltIn$1 = makeBuiltIn$2.exports = function (value, name, options) {
|
|
680
|
-
if (String(name).slice(0, 7) === 'Symbol(') {
|
|
681
|
-
name = '[' + String(name).replace(/^Symbol\(([^)]*)\)/, '$1') + ']';
|
|
682
|
-
}
|
|
683
|
-
if (options && options.getter) name = 'get ' + name;
|
|
684
|
-
if (options && options.setter) name = 'set ' + name;
|
|
685
|
-
if (!hasOwn$5(value, 'name') || (CONFIGURABLE_FUNCTION_NAME$1 && value.name !== name)) {
|
|
686
|
-
defineProperty$4(value, 'name', { value: name, configurable: true });
|
|
687
|
-
}
|
|
688
|
-
if (CONFIGURABLE_LENGTH && options && hasOwn$5(options, 'arity') && value.length !== options.arity) {
|
|
689
|
-
defineProperty$4(value, 'length', { value: options.arity });
|
|
690
|
-
}
|
|
691
|
-
try {
|
|
692
|
-
if (options && hasOwn$5(options, 'constructor') && options.constructor) {
|
|
693
|
-
if (DESCRIPTORS$3) defineProperty$4(value, 'prototype', { writable: false });
|
|
694
|
-
// in V8 ~ Chrome 53, prototypes of some methods, like `Array.prototype.values`, are non-writable
|
|
695
|
-
} else if (value.prototype) value.prototype = undefined;
|
|
696
|
-
} catch (error) { /* empty */ }
|
|
697
|
-
var state = enforceInternalState(value);
|
|
698
|
-
if (!hasOwn$5(state, 'source')) {
|
|
699
|
-
state.source = TEMPLATE.join(typeof name == 'string' ? name : '');
|
|
700
|
-
} return value;
|
|
701
|
-
};
|
|
702
|
-
|
|
703
|
-
// add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
|
|
704
|
-
// eslint-disable-next-line no-extend-native -- required
|
|
705
|
-
Function.prototype.toString = makeBuiltIn$1(function toString() {
|
|
706
|
-
return isCallable$7(this) && getInternalState$1(this).source || inspectSource(this);
|
|
707
|
-
}, 'toString');
|
|
708
|
-
|
|
709
|
-
var isCallable$6 = isCallable$f;
|
|
710
|
-
var createNonEnumerableProperty$3 = createNonEnumerableProperty$5;
|
|
711
|
-
var makeBuiltIn = makeBuiltIn$2.exports;
|
|
712
|
-
var defineGlobalProperty$1 = defineGlobalProperty$3;
|
|
713
|
-
|
|
714
|
-
var defineBuiltIn$4 = function (O, key, value, options) {
|
|
715
|
-
if (!options) options = {};
|
|
716
|
-
var simple = options.enumerable;
|
|
717
|
-
var name = options.name !== undefined ? options.name : key;
|
|
718
|
-
if (isCallable$6(value)) makeBuiltIn(value, name, options);
|
|
719
|
-
if (options.global) {
|
|
720
|
-
if (simple) O[key] = value;
|
|
721
|
-
else defineGlobalProperty$1(key, value);
|
|
722
|
-
} else {
|
|
723
|
-
if (!options.unsafe) delete O[key];
|
|
724
|
-
else if (O[key]) simple = true;
|
|
725
|
-
if (simple) O[key] = value;
|
|
726
|
-
else createNonEnumerableProperty$3(O, key, value);
|
|
727
|
-
} return O;
|
|
728
|
-
};
|
|
729
|
-
|
|
730
|
-
var objectGetOwnPropertyNames = {};
|
|
731
|
-
|
|
732
|
-
var ceil = Math.ceil;
|
|
733
|
-
var floor = Math.floor;
|
|
734
|
-
|
|
735
|
-
// `Math.trunc` method
|
|
736
|
-
// https://tc39.es/ecma262/#sec-math.trunc
|
|
737
|
-
// eslint-disable-next-line es-x/no-math-trunc -- safe
|
|
738
|
-
var mathTrunc = Math.trunc || function trunc(x) {
|
|
739
|
-
var n = +x;
|
|
740
|
-
return (n > 0 ? floor : ceil)(n);
|
|
741
|
-
};
|
|
742
|
-
|
|
743
|
-
var trunc = mathTrunc;
|
|
744
|
-
|
|
745
|
-
// `ToIntegerOrInfinity` abstract operation
|
|
746
|
-
// https://tc39.es/ecma262/#sec-tointegerorinfinity
|
|
747
|
-
var toIntegerOrInfinity$2 = function (argument) {
|
|
748
|
-
var number = +argument;
|
|
749
|
-
// eslint-disable-next-line no-self-compare -- NaN check
|
|
750
|
-
return number !== number || number === 0 ? 0 : trunc(number);
|
|
751
|
-
};
|
|
752
|
-
|
|
753
|
-
var toIntegerOrInfinity$1 = toIntegerOrInfinity$2;
|
|
754
|
-
|
|
755
|
-
var max = Math.max;
|
|
756
|
-
var min$1 = Math.min;
|
|
757
|
-
|
|
758
|
-
// Helper for a popular repeating case of the spec:
|
|
759
|
-
// Let integer be ? ToInteger(index).
|
|
760
|
-
// If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).
|
|
761
|
-
var toAbsoluteIndex$1 = function (index, length) {
|
|
762
|
-
var integer = toIntegerOrInfinity$1(index);
|
|
763
|
-
return integer < 0 ? max(integer + length, 0) : min$1(integer, length);
|
|
764
|
-
};
|
|
765
|
-
|
|
766
|
-
var toIntegerOrInfinity = toIntegerOrInfinity$2;
|
|
767
|
-
|
|
768
|
-
var min = Math.min;
|
|
769
|
-
|
|
770
|
-
// `ToLength` abstract operation
|
|
771
|
-
// https://tc39.es/ecma262/#sec-tolength
|
|
772
|
-
var toLength$1 = function (argument) {
|
|
773
|
-
return argument > 0 ? min(toIntegerOrInfinity(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
|
|
774
|
-
};
|
|
775
|
-
|
|
776
|
-
var toLength = toLength$1;
|
|
777
|
-
|
|
778
|
-
// `LengthOfArrayLike` abstract operation
|
|
779
|
-
// https://tc39.es/ecma262/#sec-lengthofarraylike
|
|
780
|
-
var lengthOfArrayLike$1 = function (obj) {
|
|
781
|
-
return toLength(obj.length);
|
|
782
|
-
};
|
|
783
|
-
|
|
784
|
-
var toIndexedObject$3 = toIndexedObject$5;
|
|
785
|
-
var toAbsoluteIndex = toAbsoluteIndex$1;
|
|
786
|
-
var lengthOfArrayLike = lengthOfArrayLike$1;
|
|
787
|
-
|
|
788
|
-
// `Array.prototype.{ indexOf, includes }` methods implementation
|
|
789
|
-
var createMethod = function (IS_INCLUDES) {
|
|
790
|
-
return function ($this, el, fromIndex) {
|
|
791
|
-
var O = toIndexedObject$3($this);
|
|
792
|
-
var length = lengthOfArrayLike(O);
|
|
793
|
-
var index = toAbsoluteIndex(fromIndex, length);
|
|
794
|
-
var value;
|
|
795
|
-
// Array#includes uses SameValueZero equality algorithm
|
|
796
|
-
// eslint-disable-next-line no-self-compare -- NaN check
|
|
797
|
-
if (IS_INCLUDES && el != el) while (length > index) {
|
|
798
|
-
value = O[index++];
|
|
799
|
-
// eslint-disable-next-line no-self-compare -- NaN check
|
|
800
|
-
if (value != value) return true;
|
|
801
|
-
// Array#indexOf ignores holes, Array#includes - not
|
|
802
|
-
} else for (;length > index; index++) {
|
|
803
|
-
if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0;
|
|
804
|
-
} return !IS_INCLUDES && -1;
|
|
805
|
-
};
|
|
806
|
-
};
|
|
807
|
-
|
|
808
|
-
var arrayIncludes = {
|
|
809
|
-
// `Array.prototype.includes` method
|
|
810
|
-
// https://tc39.es/ecma262/#sec-array.prototype.includes
|
|
811
|
-
includes: createMethod(true),
|
|
812
|
-
// `Array.prototype.indexOf` method
|
|
813
|
-
// https://tc39.es/ecma262/#sec-array.prototype.indexof
|
|
814
|
-
indexOf: createMethod(false)
|
|
815
|
-
};
|
|
816
|
-
|
|
817
|
-
var uncurryThis$3 = functionUncurryThis;
|
|
818
|
-
var hasOwn$4 = hasOwnProperty_1;
|
|
819
|
-
var toIndexedObject$2 = toIndexedObject$5;
|
|
820
|
-
var indexOf = arrayIncludes.indexOf;
|
|
821
|
-
var hiddenKeys$2 = hiddenKeys$4;
|
|
822
|
-
|
|
823
|
-
var push = uncurryThis$3([].push);
|
|
824
|
-
|
|
825
|
-
var objectKeysInternal = function (object, names) {
|
|
826
|
-
var O = toIndexedObject$2(object);
|
|
827
|
-
var i = 0;
|
|
828
|
-
var result = [];
|
|
829
|
-
var key;
|
|
830
|
-
for (key in O) !hasOwn$4(hiddenKeys$2, key) && hasOwn$4(O, key) && push(result, key);
|
|
831
|
-
// Don't enum bug & hidden keys
|
|
832
|
-
while (names.length > i) if (hasOwn$4(O, key = names[i++])) {
|
|
833
|
-
~indexOf(result, key) || push(result, key);
|
|
834
|
-
}
|
|
835
|
-
return result;
|
|
836
|
-
};
|
|
837
|
-
|
|
838
|
-
// IE8- don't enum bug keys
|
|
839
|
-
var enumBugKeys$3 = [
|
|
840
|
-
'constructor',
|
|
841
|
-
'hasOwnProperty',
|
|
842
|
-
'isPrototypeOf',
|
|
843
|
-
'propertyIsEnumerable',
|
|
844
|
-
'toLocaleString',
|
|
845
|
-
'toString',
|
|
846
|
-
'valueOf'
|
|
847
|
-
];
|
|
848
|
-
|
|
849
|
-
var internalObjectKeys$1 = objectKeysInternal;
|
|
850
|
-
var enumBugKeys$2 = enumBugKeys$3;
|
|
851
|
-
|
|
852
|
-
var hiddenKeys$1 = enumBugKeys$2.concat('length', 'prototype');
|
|
853
|
-
|
|
854
|
-
// `Object.getOwnPropertyNames` method
|
|
855
|
-
// https://tc39.es/ecma262/#sec-object.getownpropertynames
|
|
856
|
-
// eslint-disable-next-line es-x/no-object-getownpropertynames -- safe
|
|
857
|
-
objectGetOwnPropertyNames.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
|
|
858
|
-
return internalObjectKeys$1(O, hiddenKeys$1);
|
|
859
|
-
};
|
|
860
|
-
|
|
861
|
-
var objectGetOwnPropertySymbols = {};
|
|
862
|
-
|
|
863
|
-
// eslint-disable-next-line es-x/no-object-getownpropertysymbols -- safe
|
|
864
|
-
objectGetOwnPropertySymbols.f = Object.getOwnPropertySymbols;
|
|
865
|
-
|
|
866
|
-
var getBuiltIn$1 = getBuiltIn$4;
|
|
867
|
-
var uncurryThis$2 = functionUncurryThis;
|
|
868
|
-
var getOwnPropertyNamesModule = objectGetOwnPropertyNames;
|
|
869
|
-
var getOwnPropertySymbolsModule$1 = objectGetOwnPropertySymbols;
|
|
870
|
-
var anObject$5 = anObject$7;
|
|
871
|
-
|
|
872
|
-
var concat$1 = uncurryThis$2([].concat);
|
|
873
|
-
|
|
874
|
-
// all object keys, includes non-enumerable and symbols
|
|
875
|
-
var ownKeys$1 = getBuiltIn$1('Reflect', 'ownKeys') || function ownKeys(it) {
|
|
876
|
-
var keys = getOwnPropertyNamesModule.f(anObject$5(it));
|
|
877
|
-
var getOwnPropertySymbols = getOwnPropertySymbolsModule$1.f;
|
|
878
|
-
return getOwnPropertySymbols ? concat$1(keys, getOwnPropertySymbols(it)) : keys;
|
|
879
|
-
};
|
|
880
|
-
|
|
881
|
-
var hasOwn$3 = hasOwnProperty_1;
|
|
882
|
-
var ownKeys = ownKeys$1;
|
|
883
|
-
var getOwnPropertyDescriptorModule = objectGetOwnPropertyDescriptor;
|
|
884
|
-
var definePropertyModule$1 = objectDefineProperty;
|
|
885
|
-
|
|
886
|
-
var copyConstructorProperties$1 = function (target, source, exceptions) {
|
|
887
|
-
var keys = ownKeys(source);
|
|
888
|
-
var defineProperty = definePropertyModule$1.f;
|
|
889
|
-
var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
|
|
890
|
-
for (var i = 0; i < keys.length; i++) {
|
|
891
|
-
var key = keys[i];
|
|
892
|
-
if (!hasOwn$3(target, key) && !(exceptions && hasOwn$3(exceptions, key))) {
|
|
893
|
-
defineProperty(target, key, getOwnPropertyDescriptor(source, key));
|
|
894
|
-
}
|
|
895
|
-
}
|
|
896
|
-
};
|
|
897
|
-
|
|
898
|
-
var fails$4 = fails$c;
|
|
899
|
-
var isCallable$5 = isCallable$f;
|
|
900
|
-
|
|
901
|
-
var replacement = /#|\.prototype\./;
|
|
902
|
-
|
|
903
|
-
var isForced$1 = function (feature, detection) {
|
|
904
|
-
var value = data[normalize(feature)];
|
|
905
|
-
return value == POLYFILL ? true
|
|
906
|
-
: value == NATIVE ? false
|
|
907
|
-
: isCallable$5(detection) ? fails$4(detection)
|
|
908
|
-
: !!detection;
|
|
909
|
-
};
|
|
910
|
-
|
|
911
|
-
var normalize = isForced$1.normalize = function (string) {
|
|
912
|
-
return String(string).replace(replacement, '.').toLowerCase();
|
|
913
|
-
};
|
|
914
|
-
|
|
915
|
-
var data = isForced$1.data = {};
|
|
916
|
-
var NATIVE = isForced$1.NATIVE = 'N';
|
|
917
|
-
var POLYFILL = isForced$1.POLYFILL = 'P';
|
|
918
|
-
|
|
919
|
-
var isForced_1 = isForced$1;
|
|
920
|
-
|
|
921
|
-
var global$3 = global$c;
|
|
922
|
-
var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
|
|
923
|
-
var createNonEnumerableProperty$2 = createNonEnumerableProperty$5;
|
|
924
|
-
var defineBuiltIn$3 = defineBuiltIn$4;
|
|
925
|
-
var defineGlobalProperty = defineGlobalProperty$3;
|
|
926
|
-
var copyConstructorProperties = copyConstructorProperties$1;
|
|
927
|
-
var isForced = isForced_1;
|
|
928
|
-
|
|
929
|
-
/*
|
|
930
|
-
options.target - name of the target object
|
|
931
|
-
options.global - target is the global object
|
|
932
|
-
options.stat - export as static methods of target
|
|
933
|
-
options.proto - export as prototype methods of target
|
|
934
|
-
options.real - real prototype method for the `pure` version
|
|
935
|
-
options.forced - export even if the native feature is available
|
|
936
|
-
options.bind - bind methods to the target, required for the `pure` version
|
|
937
|
-
options.wrap - wrap constructors to preventing global pollution, required for the `pure` version
|
|
938
|
-
options.unsafe - use the simple assignment of property instead of delete + defineProperty
|
|
939
|
-
options.sham - add a flag to not completely full polyfills
|
|
940
|
-
options.enumerable - export as enumerable property
|
|
941
|
-
options.dontCallGetSet - prevent calling a getter on target
|
|
942
|
-
options.name - the .name of the function if it does not match the key
|
|
943
|
-
*/
|
|
944
|
-
var _export = function (options, source) {
|
|
945
|
-
var TARGET = options.target;
|
|
946
|
-
var GLOBAL = options.global;
|
|
947
|
-
var STATIC = options.stat;
|
|
948
|
-
var FORCED, target, key, targetProperty, sourceProperty, descriptor;
|
|
949
|
-
if (GLOBAL) {
|
|
950
|
-
target = global$3;
|
|
951
|
-
} else if (STATIC) {
|
|
952
|
-
target = global$3[TARGET] || defineGlobalProperty(TARGET, {});
|
|
953
|
-
} else {
|
|
954
|
-
target = (global$3[TARGET] || {}).prototype;
|
|
955
|
-
}
|
|
956
|
-
if (target) for (key in source) {
|
|
957
|
-
sourceProperty = source[key];
|
|
958
|
-
if (options.dontCallGetSet) {
|
|
959
|
-
descriptor = getOwnPropertyDescriptor(target, key);
|
|
960
|
-
targetProperty = descriptor && descriptor.value;
|
|
961
|
-
} else targetProperty = target[key];
|
|
962
|
-
FORCED = isForced(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);
|
|
963
|
-
// contained in target
|
|
964
|
-
if (!FORCED && targetProperty !== undefined) {
|
|
965
|
-
if (typeof sourceProperty == typeof targetProperty) continue;
|
|
966
|
-
copyConstructorProperties(sourceProperty, targetProperty);
|
|
967
|
-
}
|
|
968
|
-
// add a flag to not completely full polyfills
|
|
969
|
-
if (options.sham || (targetProperty && targetProperty.sham)) {
|
|
970
|
-
createNonEnumerableProperty$2(sourceProperty, 'sham', true);
|
|
971
|
-
}
|
|
972
|
-
defineBuiltIn$3(target, key, sourceProperty, options);
|
|
973
|
-
}
|
|
974
|
-
};
|
|
975
|
-
|
|
976
|
-
var internalObjectKeys = objectKeysInternal;
|
|
977
|
-
var enumBugKeys$1 = enumBugKeys$3;
|
|
978
|
-
|
|
979
|
-
// `Object.keys` method
|
|
980
|
-
// https://tc39.es/ecma262/#sec-object.keys
|
|
981
|
-
// eslint-disable-next-line es-x/no-object-keys -- safe
|
|
982
|
-
var objectKeys$2 = Object.keys || function keys(O) {
|
|
983
|
-
return internalObjectKeys(O, enumBugKeys$1);
|
|
984
|
-
};
|
|
985
|
-
|
|
986
|
-
var DESCRIPTORS$2 = descriptors;
|
|
987
|
-
var uncurryThis$1 = functionUncurryThis;
|
|
988
|
-
var call$2 = functionCall;
|
|
989
|
-
var fails$3 = fails$c;
|
|
990
|
-
var objectKeys$1 = objectKeys$2;
|
|
991
|
-
var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols;
|
|
992
|
-
var propertyIsEnumerableModule = objectPropertyIsEnumerable;
|
|
993
|
-
var toObject$1 = toObject$3;
|
|
994
|
-
var IndexedObject = indexedObject;
|
|
995
|
-
|
|
996
|
-
// eslint-disable-next-line es-x/no-object-assign -- safe
|
|
997
|
-
var $assign = Object.assign;
|
|
998
|
-
// eslint-disable-next-line es-x/no-object-defineproperty -- required for testing
|
|
999
|
-
var defineProperty$3 = Object.defineProperty;
|
|
1000
|
-
var concat = uncurryThis$1([].concat);
|
|
1001
|
-
|
|
1002
|
-
// `Object.assign` method
|
|
1003
|
-
// https://tc39.es/ecma262/#sec-object.assign
|
|
1004
|
-
var objectAssign = !$assign || fails$3(function () {
|
|
1005
|
-
// should have correct order of operations (Edge bug)
|
|
1006
|
-
if (DESCRIPTORS$2 && $assign({ b: 1 }, $assign(defineProperty$3({}, 'a', {
|
|
1007
|
-
enumerable: true,
|
|
1008
|
-
get: function () {
|
|
1009
|
-
defineProperty$3(this, 'b', {
|
|
1010
|
-
value: 3,
|
|
1011
|
-
enumerable: false
|
|
1012
|
-
});
|
|
1013
|
-
}
|
|
1014
|
-
}), { b: 2 })).b !== 1) return true;
|
|
1015
|
-
// should work with symbols and should have deterministic property order (V8 bug)
|
|
1016
|
-
var A = {};
|
|
1017
|
-
var B = {};
|
|
1018
|
-
// eslint-disable-next-line es-x/no-symbol -- safe
|
|
1019
|
-
var symbol = Symbol();
|
|
1020
|
-
var alphabet = 'abcdefghijklmnopqrst';
|
|
1021
|
-
A[symbol] = 7;
|
|
1022
|
-
alphabet.split('').forEach(function (chr) { B[chr] = chr; });
|
|
1023
|
-
return $assign({}, A)[symbol] != 7 || objectKeys$1($assign({}, B)).join('') != alphabet;
|
|
1024
|
-
}) ? function assign(target, source) { // eslint-disable-line no-unused-vars -- required for `.length`
|
|
1025
|
-
var T = toObject$1(target);
|
|
1026
|
-
var argumentsLength = arguments.length;
|
|
1027
|
-
var index = 1;
|
|
1028
|
-
var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;
|
|
1029
|
-
var propertyIsEnumerable = propertyIsEnumerableModule.f;
|
|
1030
|
-
while (argumentsLength > index) {
|
|
1031
|
-
var S = IndexedObject(arguments[index++]);
|
|
1032
|
-
var keys = getOwnPropertySymbols ? concat(objectKeys$1(S), getOwnPropertySymbols(S)) : objectKeys$1(S);
|
|
1033
|
-
var length = keys.length;
|
|
1034
|
-
var j = 0;
|
|
1035
|
-
var key;
|
|
1036
|
-
while (length > j) {
|
|
1037
|
-
key = keys[j++];
|
|
1038
|
-
if (!DESCRIPTORS$2 || call$2(propertyIsEnumerable, S, key)) T[key] = S[key];
|
|
1039
|
-
}
|
|
1040
|
-
} return T;
|
|
1041
|
-
} : $assign;
|
|
1042
|
-
|
|
1043
|
-
var $$2 = _export;
|
|
1044
|
-
var assign = objectAssign;
|
|
1045
|
-
|
|
1046
|
-
// `Object.assign` method
|
|
1047
|
-
// https://tc39.es/ecma262/#sec-object.assign
|
|
1048
|
-
// eslint-disable-next-line es-x/no-object-assign -- required for testing
|
|
1049
|
-
$$2({ target: 'Object', stat: true, arity: 2, forced: Object.assign !== assign }, {
|
|
1050
|
-
assign: assign
|
|
1051
|
-
});
|
|
5
|
+
import 'core-js/modules/es.array.iterator.js';
|
|
6
|
+
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
7
|
+
import 'core-js/modules/esnext.global-this.js';
|
|
8
|
+
import 'core-js/modules/es.regexp.to-string.js';
|
|
9
|
+
import { ServiceType, stackIntercept } from '@protobuf-ts/runtime-rpc';
|
|
1052
10
|
|
|
1053
11
|
const DEFAULT_CONFIG={host:"localhost",port:8013,tls:!1};var ENV_VAR;(function(a){a.FLAGD_HOST="FLAGD_HOST",a.FLAGD_PORT="FLAGD_PORT",a.FLAGD_TLS="FLAGD_TLS",a.FLAGD_SOCKET_PATH="FLAGD_SOCKET_PATH";})(ENV_VAR||(ENV_VAR={}));const getEnvVarConfig=()=>{var a;return Object.assign(Object.assign(Object.assign(Object.assign({},process.env[ENV_VAR.FLAGD_HOST]&&{host:process.env[ENV_VAR.FLAGD_HOST]}),+process.env[ENV_VAR.FLAGD_PORT]&&{port:+process.env[ENV_VAR.FLAGD_PORT]}),process.env[ENV_VAR.FLAGD_TLS]&&{tls:"true"===(null===(a=process.env[ENV_VAR.FLAGD_TLS])||void 0===a?void 0:a.toLowerCase())}),process.env[ENV_VAR.FLAGD_SOCKET_PATH]&&{socketPath:process.env[ENV_VAR.FLAGD_SOCKET_PATH]})};function getConfig(a={}){return Object.assign(Object.assign(Object.assign({},DEFAULT_CONFIG),getEnvVarConfig()),a)}
|
|
1054
12
|
|
|
@@ -1077,534 +35,6 @@ function __awaiter(thisArg, _arguments, P, generator) {
|
|
|
1077
35
|
});
|
|
1078
36
|
}
|
|
1079
37
|
|
|
1080
|
-
var objectDefineProperties = {};
|
|
1081
|
-
|
|
1082
|
-
var DESCRIPTORS$1 = descriptors;
|
|
1083
|
-
var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug;
|
|
1084
|
-
var definePropertyModule = objectDefineProperty;
|
|
1085
|
-
var anObject$4 = anObject$7;
|
|
1086
|
-
var toIndexedObject$1 = toIndexedObject$5;
|
|
1087
|
-
var objectKeys = objectKeys$2;
|
|
1088
|
-
|
|
1089
|
-
// `Object.defineProperties` method
|
|
1090
|
-
// https://tc39.es/ecma262/#sec-object.defineproperties
|
|
1091
|
-
// eslint-disable-next-line es-x/no-object-defineproperties -- safe
|
|
1092
|
-
objectDefineProperties.f = DESCRIPTORS$1 && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) {
|
|
1093
|
-
anObject$4(O);
|
|
1094
|
-
var props = toIndexedObject$1(Properties);
|
|
1095
|
-
var keys = objectKeys(Properties);
|
|
1096
|
-
var length = keys.length;
|
|
1097
|
-
var index = 0;
|
|
1098
|
-
var key;
|
|
1099
|
-
while (length > index) definePropertyModule.f(O, key = keys[index++], props[key]);
|
|
1100
|
-
return O;
|
|
1101
|
-
};
|
|
1102
|
-
|
|
1103
|
-
var getBuiltIn = getBuiltIn$4;
|
|
1104
|
-
|
|
1105
|
-
var html$1 = getBuiltIn('document', 'documentElement');
|
|
1106
|
-
|
|
1107
|
-
/* global ActiveXObject -- old IE, WSH */
|
|
1108
|
-
|
|
1109
|
-
var anObject$3 = anObject$7;
|
|
1110
|
-
var definePropertiesModule = objectDefineProperties;
|
|
1111
|
-
var enumBugKeys = enumBugKeys$3;
|
|
1112
|
-
var hiddenKeys = hiddenKeys$4;
|
|
1113
|
-
var html = html$1;
|
|
1114
|
-
var documentCreateElement$1 = documentCreateElement$2;
|
|
1115
|
-
var sharedKey$1 = sharedKey$3;
|
|
1116
|
-
|
|
1117
|
-
var GT = '>';
|
|
1118
|
-
var LT = '<';
|
|
1119
|
-
var PROTOTYPE = 'prototype';
|
|
1120
|
-
var SCRIPT = 'script';
|
|
1121
|
-
var IE_PROTO$1 = sharedKey$1('IE_PROTO');
|
|
1122
|
-
|
|
1123
|
-
var EmptyConstructor = function () { /* empty */ };
|
|
1124
|
-
|
|
1125
|
-
var scriptTag = function (content) {
|
|
1126
|
-
return LT + SCRIPT + GT + content + LT + '/' + SCRIPT + GT;
|
|
1127
|
-
};
|
|
1128
|
-
|
|
1129
|
-
// Create object with fake `null` prototype: use ActiveX Object with cleared prototype
|
|
1130
|
-
var NullProtoObjectViaActiveX = function (activeXDocument) {
|
|
1131
|
-
activeXDocument.write(scriptTag(''));
|
|
1132
|
-
activeXDocument.close();
|
|
1133
|
-
var temp = activeXDocument.parentWindow.Object;
|
|
1134
|
-
activeXDocument = null; // avoid memory leak
|
|
1135
|
-
return temp;
|
|
1136
|
-
};
|
|
1137
|
-
|
|
1138
|
-
// Create object with fake `null` prototype: use iframe Object with cleared prototype
|
|
1139
|
-
var NullProtoObjectViaIFrame = function () {
|
|
1140
|
-
// Thrash, waste and sodomy: IE GC bug
|
|
1141
|
-
var iframe = documentCreateElement$1('iframe');
|
|
1142
|
-
var JS = 'java' + SCRIPT + ':';
|
|
1143
|
-
var iframeDocument;
|
|
1144
|
-
iframe.style.display = 'none';
|
|
1145
|
-
html.appendChild(iframe);
|
|
1146
|
-
// https://github.com/zloirock/core-js/issues/475
|
|
1147
|
-
iframe.src = String(JS);
|
|
1148
|
-
iframeDocument = iframe.contentWindow.document;
|
|
1149
|
-
iframeDocument.open();
|
|
1150
|
-
iframeDocument.write(scriptTag('document.F=Object'));
|
|
1151
|
-
iframeDocument.close();
|
|
1152
|
-
return iframeDocument.F;
|
|
1153
|
-
};
|
|
1154
|
-
|
|
1155
|
-
// Check for document.domain and active x support
|
|
1156
|
-
// No need to use active x approach when document.domain is not set
|
|
1157
|
-
// see https://github.com/es-shims/es5-shim/issues/150
|
|
1158
|
-
// variation of https://github.com/kitcambridge/es5-shim/commit/4f738ac066346
|
|
1159
|
-
// avoid IE GC bug
|
|
1160
|
-
var activeXDocument;
|
|
1161
|
-
var NullProtoObject = function () {
|
|
1162
|
-
try {
|
|
1163
|
-
activeXDocument = new ActiveXObject('htmlfile');
|
|
1164
|
-
} catch (error) { /* ignore */ }
|
|
1165
|
-
NullProtoObject = typeof document != 'undefined'
|
|
1166
|
-
? document.domain && activeXDocument
|
|
1167
|
-
? NullProtoObjectViaActiveX(activeXDocument) // old IE
|
|
1168
|
-
: NullProtoObjectViaIFrame()
|
|
1169
|
-
: NullProtoObjectViaActiveX(activeXDocument); // WSH
|
|
1170
|
-
var length = enumBugKeys.length;
|
|
1171
|
-
while (length--) delete NullProtoObject[PROTOTYPE][enumBugKeys[length]];
|
|
1172
|
-
return NullProtoObject();
|
|
1173
|
-
};
|
|
1174
|
-
|
|
1175
|
-
hiddenKeys[IE_PROTO$1] = true;
|
|
1176
|
-
|
|
1177
|
-
// `Object.create` method
|
|
1178
|
-
// https://tc39.es/ecma262/#sec-object.create
|
|
1179
|
-
// eslint-disable-next-line es-x/no-object-create -- safe
|
|
1180
|
-
var objectCreate = Object.create || function create(O, Properties) {
|
|
1181
|
-
var result;
|
|
1182
|
-
if (O !== null) {
|
|
1183
|
-
EmptyConstructor[PROTOTYPE] = anObject$3(O);
|
|
1184
|
-
result = new EmptyConstructor();
|
|
1185
|
-
EmptyConstructor[PROTOTYPE] = null;
|
|
1186
|
-
// add "__proto__" for Object.getPrototypeOf polyfill
|
|
1187
|
-
result[IE_PROTO$1] = O;
|
|
1188
|
-
} else result = NullProtoObject();
|
|
1189
|
-
return Properties === undefined ? result : definePropertiesModule.f(result, Properties);
|
|
1190
|
-
};
|
|
1191
|
-
|
|
1192
|
-
var wellKnownSymbol$6 = wellKnownSymbol$8;
|
|
1193
|
-
var create$1 = objectCreate;
|
|
1194
|
-
var defineProperty$2 = objectDefineProperty.f;
|
|
1195
|
-
|
|
1196
|
-
var UNSCOPABLES = wellKnownSymbol$6('unscopables');
|
|
1197
|
-
var ArrayPrototype = Array.prototype;
|
|
1198
|
-
|
|
1199
|
-
// Array.prototype[@@unscopables]
|
|
1200
|
-
// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
|
|
1201
|
-
if (ArrayPrototype[UNSCOPABLES] == undefined) {
|
|
1202
|
-
defineProperty$2(ArrayPrototype, UNSCOPABLES, {
|
|
1203
|
-
configurable: true,
|
|
1204
|
-
value: create$1(null)
|
|
1205
|
-
});
|
|
1206
|
-
}
|
|
1207
|
-
|
|
1208
|
-
// add a key to Array.prototype[@@unscopables]
|
|
1209
|
-
var addToUnscopables$1 = function (key) {
|
|
1210
|
-
ArrayPrototype[UNSCOPABLES][key] = true;
|
|
1211
|
-
};
|
|
1212
|
-
|
|
1213
|
-
var iterators = {};
|
|
1214
|
-
|
|
1215
|
-
var fails$2 = fails$c;
|
|
1216
|
-
|
|
1217
|
-
var correctPrototypeGetter = !fails$2(function () {
|
|
1218
|
-
function F() { /* empty */ }
|
|
1219
|
-
F.prototype.constructor = null;
|
|
1220
|
-
// eslint-disable-next-line es-x/no-object-getprototypeof -- required for testing
|
|
1221
|
-
return Object.getPrototypeOf(new F()) !== F.prototype;
|
|
1222
|
-
});
|
|
1223
|
-
|
|
1224
|
-
var hasOwn$2 = hasOwnProperty_1;
|
|
1225
|
-
var isCallable$4 = isCallable$f;
|
|
1226
|
-
var toObject = toObject$3;
|
|
1227
|
-
var sharedKey = sharedKey$3;
|
|
1228
|
-
var CORRECT_PROTOTYPE_GETTER = correctPrototypeGetter;
|
|
1229
|
-
|
|
1230
|
-
var IE_PROTO = sharedKey('IE_PROTO');
|
|
1231
|
-
var $Object$1 = Object;
|
|
1232
|
-
var ObjectPrototype = $Object$1.prototype;
|
|
1233
|
-
|
|
1234
|
-
// `Object.getPrototypeOf` method
|
|
1235
|
-
// https://tc39.es/ecma262/#sec-object.getprototypeof
|
|
1236
|
-
// eslint-disable-next-line es-x/no-object-getprototypeof -- safe
|
|
1237
|
-
var objectGetPrototypeOf = CORRECT_PROTOTYPE_GETTER ? $Object$1.getPrototypeOf : function (O) {
|
|
1238
|
-
var object = toObject(O);
|
|
1239
|
-
if (hasOwn$2(object, IE_PROTO)) return object[IE_PROTO];
|
|
1240
|
-
var constructor = object.constructor;
|
|
1241
|
-
if (isCallable$4(constructor) && object instanceof constructor) {
|
|
1242
|
-
return constructor.prototype;
|
|
1243
|
-
} return object instanceof $Object$1 ? ObjectPrototype : null;
|
|
1244
|
-
};
|
|
1245
|
-
|
|
1246
|
-
var fails$1 = fails$c;
|
|
1247
|
-
var isCallable$3 = isCallable$f;
|
|
1248
|
-
var getPrototypeOf$1 = objectGetPrototypeOf;
|
|
1249
|
-
var defineBuiltIn$2 = defineBuiltIn$4;
|
|
1250
|
-
var wellKnownSymbol$5 = wellKnownSymbol$8;
|
|
1251
|
-
|
|
1252
|
-
var ITERATOR$2 = wellKnownSymbol$5('iterator');
|
|
1253
|
-
var BUGGY_SAFARI_ITERATORS$1 = false;
|
|
1254
|
-
|
|
1255
|
-
// `%IteratorPrototype%` object
|
|
1256
|
-
// https://tc39.es/ecma262/#sec-%iteratorprototype%-object
|
|
1257
|
-
var IteratorPrototype$2, PrototypeOfArrayIteratorPrototype, arrayIterator;
|
|
1258
|
-
|
|
1259
|
-
/* eslint-disable es-x/no-array-prototype-keys -- safe */
|
|
1260
|
-
if ([].keys) {
|
|
1261
|
-
arrayIterator = [].keys();
|
|
1262
|
-
// Safari 8 has buggy iterators w/o `next`
|
|
1263
|
-
if (!('next' in arrayIterator)) BUGGY_SAFARI_ITERATORS$1 = true;
|
|
1264
|
-
else {
|
|
1265
|
-
PrototypeOfArrayIteratorPrototype = getPrototypeOf$1(getPrototypeOf$1(arrayIterator));
|
|
1266
|
-
if (PrototypeOfArrayIteratorPrototype !== Object.prototype) IteratorPrototype$2 = PrototypeOfArrayIteratorPrototype;
|
|
1267
|
-
}
|
|
1268
|
-
}
|
|
1269
|
-
|
|
1270
|
-
var NEW_ITERATOR_PROTOTYPE = IteratorPrototype$2 == undefined || fails$1(function () {
|
|
1271
|
-
var test = {};
|
|
1272
|
-
// FF44- legacy iterators case
|
|
1273
|
-
return IteratorPrototype$2[ITERATOR$2].call(test) !== test;
|
|
1274
|
-
});
|
|
1275
|
-
|
|
1276
|
-
if (NEW_ITERATOR_PROTOTYPE) IteratorPrototype$2 = {};
|
|
1277
|
-
|
|
1278
|
-
// `%IteratorPrototype%[@@iterator]()` method
|
|
1279
|
-
// https://tc39.es/ecma262/#sec-%iteratorprototype%-@@iterator
|
|
1280
|
-
if (!isCallable$3(IteratorPrototype$2[ITERATOR$2])) {
|
|
1281
|
-
defineBuiltIn$2(IteratorPrototype$2, ITERATOR$2, function () {
|
|
1282
|
-
return this;
|
|
1283
|
-
});
|
|
1284
|
-
}
|
|
1285
|
-
|
|
1286
|
-
var iteratorsCore = {
|
|
1287
|
-
IteratorPrototype: IteratorPrototype$2,
|
|
1288
|
-
BUGGY_SAFARI_ITERATORS: BUGGY_SAFARI_ITERATORS$1
|
|
1289
|
-
};
|
|
1290
|
-
|
|
1291
|
-
var defineProperty$1 = objectDefineProperty.f;
|
|
1292
|
-
var hasOwn$1 = hasOwnProperty_1;
|
|
1293
|
-
var wellKnownSymbol$4 = wellKnownSymbol$8;
|
|
1294
|
-
|
|
1295
|
-
var TO_STRING_TAG$3 = wellKnownSymbol$4('toStringTag');
|
|
1296
|
-
|
|
1297
|
-
var setToStringTag$2 = function (target, TAG, STATIC) {
|
|
1298
|
-
if (target && !STATIC) target = target.prototype;
|
|
1299
|
-
if (target && !hasOwn$1(target, TO_STRING_TAG$3)) {
|
|
1300
|
-
defineProperty$1(target, TO_STRING_TAG$3, { configurable: true, value: TAG });
|
|
1301
|
-
}
|
|
1302
|
-
};
|
|
1303
|
-
|
|
1304
|
-
var IteratorPrototype$1 = iteratorsCore.IteratorPrototype;
|
|
1305
|
-
var create = objectCreate;
|
|
1306
|
-
var createPropertyDescriptor = createPropertyDescriptor$3;
|
|
1307
|
-
var setToStringTag$1 = setToStringTag$2;
|
|
1308
|
-
var Iterators$2 = iterators;
|
|
1309
|
-
|
|
1310
|
-
var returnThis$1 = function () { return this; };
|
|
1311
|
-
|
|
1312
|
-
var createIteratorConstructor$1 = function (IteratorConstructor, NAME, next, ENUMERABLE_NEXT) {
|
|
1313
|
-
var TO_STRING_TAG = NAME + ' Iterator';
|
|
1314
|
-
IteratorConstructor.prototype = create(IteratorPrototype$1, { next: createPropertyDescriptor(+!ENUMERABLE_NEXT, next) });
|
|
1315
|
-
setToStringTag$1(IteratorConstructor, TO_STRING_TAG, false);
|
|
1316
|
-
Iterators$2[TO_STRING_TAG] = returnThis$1;
|
|
1317
|
-
return IteratorConstructor;
|
|
1318
|
-
};
|
|
1319
|
-
|
|
1320
|
-
var isCallable$2 = isCallable$f;
|
|
1321
|
-
|
|
1322
|
-
var $String$1 = String;
|
|
1323
|
-
var $TypeError = TypeError;
|
|
1324
|
-
|
|
1325
|
-
var aPossiblePrototype$1 = function (argument) {
|
|
1326
|
-
if (typeof argument == 'object' || isCallable$2(argument)) return argument;
|
|
1327
|
-
throw $TypeError("Can't set " + $String$1(argument) + ' as a prototype');
|
|
1328
|
-
};
|
|
1329
|
-
|
|
1330
|
-
/* eslint-disable no-proto -- safe */
|
|
1331
|
-
|
|
1332
|
-
var uncurryThis = functionUncurryThis;
|
|
1333
|
-
var anObject$2 = anObject$7;
|
|
1334
|
-
var aPossiblePrototype = aPossiblePrototype$1;
|
|
1335
|
-
|
|
1336
|
-
// `Object.setPrototypeOf` method
|
|
1337
|
-
// https://tc39.es/ecma262/#sec-object.setprototypeof
|
|
1338
|
-
// Works with __proto__ only. Old v8 can't work with null proto objects.
|
|
1339
|
-
// eslint-disable-next-line es-x/no-object-setprototypeof -- safe
|
|
1340
|
-
var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? function () {
|
|
1341
|
-
var CORRECT_SETTER = false;
|
|
1342
|
-
var test = {};
|
|
1343
|
-
var setter;
|
|
1344
|
-
try {
|
|
1345
|
-
// eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
|
|
1346
|
-
setter = uncurryThis(Object.getOwnPropertyDescriptor(Object.prototype, '__proto__').set);
|
|
1347
|
-
setter(test, []);
|
|
1348
|
-
CORRECT_SETTER = test instanceof Array;
|
|
1349
|
-
} catch (error) { /* empty */ }
|
|
1350
|
-
return function setPrototypeOf(O, proto) {
|
|
1351
|
-
anObject$2(O);
|
|
1352
|
-
aPossiblePrototype(proto);
|
|
1353
|
-
if (CORRECT_SETTER) setter(O, proto);
|
|
1354
|
-
else O.__proto__ = proto;
|
|
1355
|
-
return O;
|
|
1356
|
-
};
|
|
1357
|
-
}() : undefined);
|
|
1358
|
-
|
|
1359
|
-
var $$1 = _export;
|
|
1360
|
-
var call$1 = functionCall;
|
|
1361
|
-
var FunctionName = functionName;
|
|
1362
|
-
var isCallable$1 = isCallable$f;
|
|
1363
|
-
var createIteratorConstructor = createIteratorConstructor$1;
|
|
1364
|
-
var getPrototypeOf = objectGetPrototypeOf;
|
|
1365
|
-
var setPrototypeOf = objectSetPrototypeOf;
|
|
1366
|
-
var setToStringTag = setToStringTag$2;
|
|
1367
|
-
var createNonEnumerableProperty$1 = createNonEnumerableProperty$5;
|
|
1368
|
-
var defineBuiltIn$1 = defineBuiltIn$4;
|
|
1369
|
-
var wellKnownSymbol$3 = wellKnownSymbol$8;
|
|
1370
|
-
var Iterators$1 = iterators;
|
|
1371
|
-
var IteratorsCore = iteratorsCore;
|
|
1372
|
-
|
|
1373
|
-
var PROPER_FUNCTION_NAME$1 = FunctionName.PROPER;
|
|
1374
|
-
var CONFIGURABLE_FUNCTION_NAME = FunctionName.CONFIGURABLE;
|
|
1375
|
-
var IteratorPrototype = IteratorsCore.IteratorPrototype;
|
|
1376
|
-
var BUGGY_SAFARI_ITERATORS = IteratorsCore.BUGGY_SAFARI_ITERATORS;
|
|
1377
|
-
var ITERATOR$1 = wellKnownSymbol$3('iterator');
|
|
1378
|
-
var KEYS = 'keys';
|
|
1379
|
-
var VALUES = 'values';
|
|
1380
|
-
var ENTRIES = 'entries';
|
|
1381
|
-
|
|
1382
|
-
var returnThis = function () { return this; };
|
|
1383
|
-
|
|
1384
|
-
var defineIterator$1 = function (Iterable, NAME, IteratorConstructor, next, DEFAULT, IS_SET, FORCED) {
|
|
1385
|
-
createIteratorConstructor(IteratorConstructor, NAME, next);
|
|
1386
|
-
|
|
1387
|
-
var getIterationMethod = function (KIND) {
|
|
1388
|
-
if (KIND === DEFAULT && defaultIterator) return defaultIterator;
|
|
1389
|
-
if (!BUGGY_SAFARI_ITERATORS && KIND in IterablePrototype) return IterablePrototype[KIND];
|
|
1390
|
-
switch (KIND) {
|
|
1391
|
-
case KEYS: return function keys() { return new IteratorConstructor(this, KIND); };
|
|
1392
|
-
case VALUES: return function values() { return new IteratorConstructor(this, KIND); };
|
|
1393
|
-
case ENTRIES: return function entries() { return new IteratorConstructor(this, KIND); };
|
|
1394
|
-
} return function () { return new IteratorConstructor(this); };
|
|
1395
|
-
};
|
|
1396
|
-
|
|
1397
|
-
var TO_STRING_TAG = NAME + ' Iterator';
|
|
1398
|
-
var INCORRECT_VALUES_NAME = false;
|
|
1399
|
-
var IterablePrototype = Iterable.prototype;
|
|
1400
|
-
var nativeIterator = IterablePrototype[ITERATOR$1]
|
|
1401
|
-
|| IterablePrototype['@@iterator']
|
|
1402
|
-
|| DEFAULT && IterablePrototype[DEFAULT];
|
|
1403
|
-
var defaultIterator = !BUGGY_SAFARI_ITERATORS && nativeIterator || getIterationMethod(DEFAULT);
|
|
1404
|
-
var anyNativeIterator = NAME == 'Array' ? IterablePrototype.entries || nativeIterator : nativeIterator;
|
|
1405
|
-
var CurrentIteratorPrototype, methods, KEY;
|
|
1406
|
-
|
|
1407
|
-
// fix native
|
|
1408
|
-
if (anyNativeIterator) {
|
|
1409
|
-
CurrentIteratorPrototype = getPrototypeOf(anyNativeIterator.call(new Iterable()));
|
|
1410
|
-
if (CurrentIteratorPrototype !== Object.prototype && CurrentIteratorPrototype.next) {
|
|
1411
|
-
if (getPrototypeOf(CurrentIteratorPrototype) !== IteratorPrototype) {
|
|
1412
|
-
if (setPrototypeOf) {
|
|
1413
|
-
setPrototypeOf(CurrentIteratorPrototype, IteratorPrototype);
|
|
1414
|
-
} else if (!isCallable$1(CurrentIteratorPrototype[ITERATOR$1])) {
|
|
1415
|
-
defineBuiltIn$1(CurrentIteratorPrototype, ITERATOR$1, returnThis);
|
|
1416
|
-
}
|
|
1417
|
-
}
|
|
1418
|
-
// Set @@toStringTag to native iterators
|
|
1419
|
-
setToStringTag(CurrentIteratorPrototype, TO_STRING_TAG, true);
|
|
1420
|
-
}
|
|
1421
|
-
}
|
|
1422
|
-
|
|
1423
|
-
// fix Array.prototype.{ values, @@iterator }.name in V8 / FF
|
|
1424
|
-
if (PROPER_FUNCTION_NAME$1 && DEFAULT == VALUES && nativeIterator && nativeIterator.name !== VALUES) {
|
|
1425
|
-
if (CONFIGURABLE_FUNCTION_NAME) {
|
|
1426
|
-
createNonEnumerableProperty$1(IterablePrototype, 'name', VALUES);
|
|
1427
|
-
} else {
|
|
1428
|
-
INCORRECT_VALUES_NAME = true;
|
|
1429
|
-
defaultIterator = function values() { return call$1(nativeIterator, this); };
|
|
1430
|
-
}
|
|
1431
|
-
}
|
|
1432
|
-
|
|
1433
|
-
// export additional methods
|
|
1434
|
-
if (DEFAULT) {
|
|
1435
|
-
methods = {
|
|
1436
|
-
values: getIterationMethod(VALUES),
|
|
1437
|
-
keys: IS_SET ? defaultIterator : getIterationMethod(KEYS),
|
|
1438
|
-
entries: getIterationMethod(ENTRIES)
|
|
1439
|
-
};
|
|
1440
|
-
if (FORCED) for (KEY in methods) {
|
|
1441
|
-
if (BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME || !(KEY in IterablePrototype)) {
|
|
1442
|
-
defineBuiltIn$1(IterablePrototype, KEY, methods[KEY]);
|
|
1443
|
-
}
|
|
1444
|
-
} else $$1({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME }, methods);
|
|
1445
|
-
}
|
|
1446
|
-
|
|
1447
|
-
// define iterator
|
|
1448
|
-
if (IterablePrototype[ITERATOR$1] !== defaultIterator) {
|
|
1449
|
-
defineBuiltIn$1(IterablePrototype, ITERATOR$1, defaultIterator, { name: DEFAULT });
|
|
1450
|
-
}
|
|
1451
|
-
Iterators$1[NAME] = defaultIterator;
|
|
1452
|
-
|
|
1453
|
-
return methods;
|
|
1454
|
-
};
|
|
1455
|
-
|
|
1456
|
-
var toIndexedObject = toIndexedObject$5;
|
|
1457
|
-
var addToUnscopables = addToUnscopables$1;
|
|
1458
|
-
var Iterators = iterators;
|
|
1459
|
-
var InternalStateModule = internalState;
|
|
1460
|
-
var defineProperty = objectDefineProperty.f;
|
|
1461
|
-
var defineIterator = defineIterator$1;
|
|
1462
|
-
var DESCRIPTORS = descriptors;
|
|
1463
|
-
|
|
1464
|
-
var ARRAY_ITERATOR = 'Array Iterator';
|
|
1465
|
-
var setInternalState = InternalStateModule.set;
|
|
1466
|
-
var getInternalState = InternalStateModule.getterFor(ARRAY_ITERATOR);
|
|
1467
|
-
|
|
1468
|
-
// `Array.prototype.entries` method
|
|
1469
|
-
// https://tc39.es/ecma262/#sec-array.prototype.entries
|
|
1470
|
-
// `Array.prototype.keys` method
|
|
1471
|
-
// https://tc39.es/ecma262/#sec-array.prototype.keys
|
|
1472
|
-
// `Array.prototype.values` method
|
|
1473
|
-
// https://tc39.es/ecma262/#sec-array.prototype.values
|
|
1474
|
-
// `Array.prototype[@@iterator]` method
|
|
1475
|
-
// https://tc39.es/ecma262/#sec-array.prototype-@@iterator
|
|
1476
|
-
// `CreateArrayIterator` internal method
|
|
1477
|
-
// https://tc39.es/ecma262/#sec-createarrayiterator
|
|
1478
|
-
var es_array_iterator = defineIterator(Array, 'Array', function (iterated, kind) {
|
|
1479
|
-
setInternalState(this, {
|
|
1480
|
-
type: ARRAY_ITERATOR,
|
|
1481
|
-
target: toIndexedObject(iterated), // target
|
|
1482
|
-
index: 0, // next index
|
|
1483
|
-
kind: kind // kind
|
|
1484
|
-
});
|
|
1485
|
-
// `%ArrayIteratorPrototype%.next` method
|
|
1486
|
-
// https://tc39.es/ecma262/#sec-%arrayiteratorprototype%.next
|
|
1487
|
-
}, function () {
|
|
1488
|
-
var state = getInternalState(this);
|
|
1489
|
-
var target = state.target;
|
|
1490
|
-
var kind = state.kind;
|
|
1491
|
-
var index = state.index++;
|
|
1492
|
-
if (!target || index >= target.length) {
|
|
1493
|
-
state.target = undefined;
|
|
1494
|
-
return { value: undefined, done: true };
|
|
1495
|
-
}
|
|
1496
|
-
if (kind == 'keys') return { value: index, done: false };
|
|
1497
|
-
if (kind == 'values') return { value: target[index], done: false };
|
|
1498
|
-
return { value: [index, target[index]], done: false };
|
|
1499
|
-
}, 'values');
|
|
1500
|
-
|
|
1501
|
-
// argumentsList[@@iterator] is %ArrayProto_values%
|
|
1502
|
-
// https://tc39.es/ecma262/#sec-createunmappedargumentsobject
|
|
1503
|
-
// https://tc39.es/ecma262/#sec-createmappedargumentsobject
|
|
1504
|
-
var values = Iterators.Arguments = Iterators.Array;
|
|
1505
|
-
|
|
1506
|
-
// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
|
|
1507
|
-
addToUnscopables('keys');
|
|
1508
|
-
addToUnscopables('values');
|
|
1509
|
-
addToUnscopables('entries');
|
|
1510
|
-
|
|
1511
|
-
// V8 ~ Chrome 45- bug
|
|
1512
|
-
if (DESCRIPTORS && values.name !== 'values') try {
|
|
1513
|
-
defineProperty(values, 'name', { value: 'values' });
|
|
1514
|
-
} catch (error) { /* empty */ }
|
|
1515
|
-
|
|
1516
|
-
// iterable DOM collections
|
|
1517
|
-
// flag - `iterable` interface - 'entries', 'keys', 'values', 'forEach' methods
|
|
1518
|
-
var domIterables = {
|
|
1519
|
-
CSSRuleList: 0,
|
|
1520
|
-
CSSStyleDeclaration: 0,
|
|
1521
|
-
CSSValueList: 0,
|
|
1522
|
-
ClientRectList: 0,
|
|
1523
|
-
DOMRectList: 0,
|
|
1524
|
-
DOMStringList: 0,
|
|
1525
|
-
DOMTokenList: 1,
|
|
1526
|
-
DataTransferItemList: 0,
|
|
1527
|
-
FileList: 0,
|
|
1528
|
-
HTMLAllCollection: 0,
|
|
1529
|
-
HTMLCollection: 0,
|
|
1530
|
-
HTMLFormElement: 0,
|
|
1531
|
-
HTMLSelectElement: 0,
|
|
1532
|
-
MediaList: 0,
|
|
1533
|
-
MimeTypeArray: 0,
|
|
1534
|
-
NamedNodeMap: 0,
|
|
1535
|
-
NodeList: 1,
|
|
1536
|
-
PaintRequestList: 0,
|
|
1537
|
-
Plugin: 0,
|
|
1538
|
-
PluginArray: 0,
|
|
1539
|
-
SVGLengthList: 0,
|
|
1540
|
-
SVGNumberList: 0,
|
|
1541
|
-
SVGPathSegList: 0,
|
|
1542
|
-
SVGPointList: 0,
|
|
1543
|
-
SVGStringList: 0,
|
|
1544
|
-
SVGTransformList: 0,
|
|
1545
|
-
SourceBufferList: 0,
|
|
1546
|
-
StyleSheetList: 0,
|
|
1547
|
-
TextTrackCueList: 0,
|
|
1548
|
-
TextTrackList: 0,
|
|
1549
|
-
TouchList: 0
|
|
1550
|
-
};
|
|
1551
|
-
|
|
1552
|
-
// in old WebKit versions, `element.classList` is not an instance of global `DOMTokenList`
|
|
1553
|
-
var documentCreateElement = documentCreateElement$2;
|
|
1554
|
-
|
|
1555
|
-
var classList = documentCreateElement('span').classList;
|
|
1556
|
-
var DOMTokenListPrototype$1 = classList && classList.constructor && classList.constructor.prototype;
|
|
1557
|
-
|
|
1558
|
-
var domTokenListPrototype = DOMTokenListPrototype$1 === Object.prototype ? undefined : DOMTokenListPrototype$1;
|
|
1559
|
-
|
|
1560
|
-
var global$2 = global$c;
|
|
1561
|
-
var DOMIterables = domIterables;
|
|
1562
|
-
var DOMTokenListPrototype = domTokenListPrototype;
|
|
1563
|
-
var ArrayIteratorMethods = es_array_iterator;
|
|
1564
|
-
var createNonEnumerableProperty = createNonEnumerableProperty$5;
|
|
1565
|
-
var wellKnownSymbol$2 = wellKnownSymbol$8;
|
|
1566
|
-
|
|
1567
|
-
var ITERATOR = wellKnownSymbol$2('iterator');
|
|
1568
|
-
var TO_STRING_TAG$2 = wellKnownSymbol$2('toStringTag');
|
|
1569
|
-
var ArrayValues = ArrayIteratorMethods.values;
|
|
1570
|
-
|
|
1571
|
-
var handlePrototype = function (CollectionPrototype, COLLECTION_NAME) {
|
|
1572
|
-
if (CollectionPrototype) {
|
|
1573
|
-
// some Chrome versions have non-configurable methods on DOMTokenList
|
|
1574
|
-
if (CollectionPrototype[ITERATOR] !== ArrayValues) try {
|
|
1575
|
-
createNonEnumerableProperty(CollectionPrototype, ITERATOR, ArrayValues);
|
|
1576
|
-
} catch (error) {
|
|
1577
|
-
CollectionPrototype[ITERATOR] = ArrayValues;
|
|
1578
|
-
}
|
|
1579
|
-
if (!CollectionPrototype[TO_STRING_TAG$2]) {
|
|
1580
|
-
createNonEnumerableProperty(CollectionPrototype, TO_STRING_TAG$2, COLLECTION_NAME);
|
|
1581
|
-
}
|
|
1582
|
-
if (DOMIterables[COLLECTION_NAME]) for (var METHOD_NAME in ArrayIteratorMethods) {
|
|
1583
|
-
// some Chrome versions have non-configurable methods on DOMTokenList
|
|
1584
|
-
if (CollectionPrototype[METHOD_NAME] !== ArrayIteratorMethods[METHOD_NAME]) try {
|
|
1585
|
-
createNonEnumerableProperty(CollectionPrototype, METHOD_NAME, ArrayIteratorMethods[METHOD_NAME]);
|
|
1586
|
-
} catch (error) {
|
|
1587
|
-
CollectionPrototype[METHOD_NAME] = ArrayIteratorMethods[METHOD_NAME];
|
|
1588
|
-
}
|
|
1589
|
-
}
|
|
1590
|
-
}
|
|
1591
|
-
};
|
|
1592
|
-
|
|
1593
|
-
for (var COLLECTION_NAME in DOMIterables) {
|
|
1594
|
-
handlePrototype(global$2[COLLECTION_NAME] && global$2[COLLECTION_NAME].prototype, COLLECTION_NAME);
|
|
1595
|
-
}
|
|
1596
|
-
|
|
1597
|
-
handlePrototype(DOMTokenListPrototype, 'DOMTokenList');
|
|
1598
|
-
|
|
1599
|
-
var $ = _export;
|
|
1600
|
-
var global$1 = global$c;
|
|
1601
|
-
|
|
1602
|
-
// `globalThis` object
|
|
1603
|
-
// https://tc39.es/ecma262/#sec-globalthis
|
|
1604
|
-
$({ global: true }, {
|
|
1605
|
-
globalThis: global$1
|
|
1606
|
-
});
|
|
1607
|
-
|
|
1608
38
|
/**
|
|
1609
39
|
* Get the type of a JSON value.
|
|
1610
40
|
* Distinguishes between array, null and object.
|
|
@@ -1987,7 +417,7 @@ function int64toString(bitsLow, bitsHigh) {
|
|
|
1987
417
|
// Skip the expensive conversion if the number is small enough to use the
|
|
1988
418
|
// built-in conversions.
|
|
1989
419
|
if (bitsHigh <= 0x1FFFFF) {
|
|
1990
|
-
return '' + (TWO_PWR_32_DBL$1 * bitsHigh + bitsLow);
|
|
420
|
+
return '' + (TWO_PWR_32_DBL$1 * bitsHigh + (bitsLow >>> 0));
|
|
1991
421
|
}
|
|
1992
422
|
// What this code is doing is essentially converting the input number from
|
|
1993
423
|
// base-2 to base-1e7, which allows us to represent the 64-bit range with
|
|
@@ -2343,7 +773,8 @@ class BinaryReader {
|
|
|
2343
773
|
this.pos = 0;
|
|
2344
774
|
this.view = new DataView(buf.buffer, buf.byteOffset, buf.byteLength);
|
|
2345
775
|
this.textDecoder = textDecoder !== null && textDecoder !== void 0 ? textDecoder : new TextDecoder("utf-8", {
|
|
2346
|
-
fatal: true
|
|
776
|
+
fatal: true,
|
|
777
|
+
ignoreBOM: true,
|
|
2347
778
|
});
|
|
2348
779
|
}
|
|
2349
780
|
/**
|
|
@@ -2504,12 +935,6 @@ function assert(condition, msg) {
|
|
|
2504
935
|
throw new Error(msg);
|
|
2505
936
|
}
|
|
2506
937
|
}
|
|
2507
|
-
/**
|
|
2508
|
-
* assert that value cannot exist = type `never`. throw runtime error if it does.
|
|
2509
|
-
*/
|
|
2510
|
-
function assertNever(value, msg) {
|
|
2511
|
-
throw new Error(msg !== null && msg !== void 0 ? msg : 'Unexpected object: ' + value);
|
|
2512
|
-
}
|
|
2513
938
|
const FLOAT32_MAX = 3.4028234663852886e+38, FLOAT32_MIN = -3.4028234663852886e+38, UINT32_MAX = 0xFFFFFFFF, INT32_MAX = 0X7FFFFFFF, INT32_MIN = -0X80000000;
|
|
2514
939
|
function assertInt32(arg) {
|
|
2515
940
|
if (typeof arg !== "number")
|
|
@@ -4219,16 +2644,24 @@ function reflectionCreate(type) {
|
|
|
4219
2644
|
/**
|
|
4220
2645
|
* Copy partial data into the target message.
|
|
4221
2646
|
*
|
|
4222
|
-
*
|
|
4223
|
-
*
|
|
2647
|
+
* If a singular scalar or enum field is present in the source, it
|
|
2648
|
+
* replaces the field in the target.
|
|
2649
|
+
*
|
|
2650
|
+
* If a singular message field is present in the source, it is merged
|
|
2651
|
+
* with the target field by calling mergePartial() of the responsible
|
|
2652
|
+
* message type.
|
|
2653
|
+
*
|
|
2654
|
+
* If a repeated field is present in the source, its values replace
|
|
2655
|
+
* all values in the target array, removing extraneous values.
|
|
2656
|
+
* Repeated message fields are copied, not merged.
|
|
4224
2657
|
*
|
|
4225
|
-
*
|
|
4226
|
-
*
|
|
4227
|
-
*
|
|
2658
|
+
* If a map field is present in the source, entries are added to the
|
|
2659
|
+
* target map, replacing entries with the same key. Entries that only
|
|
2660
|
+
* exist in the target remain. Entries with message values are copied,
|
|
2661
|
+
* not merged.
|
|
4228
2662
|
*
|
|
4229
|
-
*
|
|
4230
|
-
*
|
|
4231
|
-
* are simply overwritten, not appended or merged.
|
|
2663
|
+
* Note that this function differs from protobuf merge semantics,
|
|
2664
|
+
* which appends repeated fields.
|
|
4232
2665
|
*/
|
|
4233
2666
|
function reflectionMergePartial(info, target, source) {
|
|
4234
2667
|
let fieldValue, // the field value we are working with
|
|
@@ -4237,7 +2670,7 @@ function reflectionMergePartial(info, target, source) {
|
|
|
4237
2670
|
let name = field.localName;
|
|
4238
2671
|
if (field.oneof) {
|
|
4239
2672
|
const group = input[field.oneof]; // this is the oneof`s group in the source
|
|
4240
|
-
if (group == undefined) { // the user is free to omit
|
|
2673
|
+
if ((group === null || group === void 0 ? void 0 : group.oneofKind) == undefined) { // the user is free to omit
|
|
4241
2674
|
continue; // we skip this field, and all other members too
|
|
4242
2675
|
}
|
|
4243
2676
|
fieldValue = group[name]; // our value comes from the the oneof group of the source
|
|
@@ -4255,12 +2688,15 @@ function reflectionMergePartial(info, target, source) {
|
|
|
4255
2688
|
continue; // skip further work on field, existing value is used as is
|
|
4256
2689
|
}
|
|
4257
2690
|
}
|
|
2691
|
+
if (field.repeat)
|
|
2692
|
+
output[name].length = fieldValue.length; // resize target array to match source array
|
|
4258
2693
|
// now we just work with `fieldValue` and `output` to merge the value
|
|
4259
2694
|
switch (field.kind) {
|
|
4260
2695
|
case "scalar":
|
|
4261
2696
|
case "enum":
|
|
4262
2697
|
if (field.repeat)
|
|
4263
|
-
|
|
2698
|
+
for (let i = 0; i < fieldValue.length; i++)
|
|
2699
|
+
output[name][i] = fieldValue[i]; // not a reference type
|
|
4264
2700
|
else
|
|
4265
2701
|
output[name] = fieldValue; // not a reference type
|
|
4266
2702
|
break;
|
|
@@ -4555,181 +2991,6 @@ class ListValue$Type extends MessageType{constructor(){super("google.protobuf.Li
|
|
|
4555
2991
|
* @generated MessageType for protobuf message google.protobuf.ListValue
|
|
4556
2992
|
*/const ListValue=new ListValue$Type;
|
|
4557
2993
|
|
|
4558
|
-
var wellKnownSymbol$1 = wellKnownSymbol$8;
|
|
4559
|
-
|
|
4560
|
-
var TO_STRING_TAG$1 = wellKnownSymbol$1('toStringTag');
|
|
4561
|
-
var test = {};
|
|
4562
|
-
|
|
4563
|
-
test[TO_STRING_TAG$1] = 'z';
|
|
4564
|
-
|
|
4565
|
-
var toStringTagSupport = String(test) === '[object z]';
|
|
4566
|
-
|
|
4567
|
-
var TO_STRING_TAG_SUPPORT = toStringTagSupport;
|
|
4568
|
-
var isCallable = isCallable$f;
|
|
4569
|
-
var classofRaw = classofRaw$1;
|
|
4570
|
-
var wellKnownSymbol = wellKnownSymbol$8;
|
|
4571
|
-
|
|
4572
|
-
var TO_STRING_TAG = wellKnownSymbol('toStringTag');
|
|
4573
|
-
var $Object = Object;
|
|
4574
|
-
|
|
4575
|
-
// ES3 wrong here
|
|
4576
|
-
var CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) == 'Arguments';
|
|
4577
|
-
|
|
4578
|
-
// fallback for IE11 Script Access Denied error
|
|
4579
|
-
var tryGet = function (it, key) {
|
|
4580
|
-
try {
|
|
4581
|
-
return it[key];
|
|
4582
|
-
} catch (error) { /* empty */ }
|
|
4583
|
-
};
|
|
4584
|
-
|
|
4585
|
-
// getting tag from ES6+ `Object.prototype.toString`
|
|
4586
|
-
var classof$1 = TO_STRING_TAG_SUPPORT ? classofRaw : function (it) {
|
|
4587
|
-
var O, tag, result;
|
|
4588
|
-
return it === undefined ? 'Undefined' : it === null ? 'Null'
|
|
4589
|
-
// @@toStringTag case
|
|
4590
|
-
: typeof (tag = tryGet(O = $Object(it), TO_STRING_TAG)) == 'string' ? tag
|
|
4591
|
-
// builtinTag case
|
|
4592
|
-
: CORRECT_ARGUMENTS ? classofRaw(O)
|
|
4593
|
-
// ES3 arguments fallback
|
|
4594
|
-
: (result = classofRaw(O)) == 'Object' && isCallable(O.callee) ? 'Arguments' : result;
|
|
4595
|
-
};
|
|
4596
|
-
|
|
4597
|
-
var classof = classof$1;
|
|
4598
|
-
|
|
4599
|
-
var $String = String;
|
|
4600
|
-
|
|
4601
|
-
var toString = function (argument) {
|
|
4602
|
-
if (classof(argument) === 'Symbol') throw TypeError('Cannot convert a Symbol value to a string');
|
|
4603
|
-
return $String(argument);
|
|
4604
|
-
};
|
|
4605
|
-
|
|
4606
|
-
var anObject$1 = anObject$7;
|
|
4607
|
-
|
|
4608
|
-
// `RegExp.prototype.flags` getter implementation
|
|
4609
|
-
// https://tc39.es/ecma262/#sec-get-regexp.prototype.flags
|
|
4610
|
-
var regexpFlags = function () {
|
|
4611
|
-
var that = anObject$1(this);
|
|
4612
|
-
var result = '';
|
|
4613
|
-
if (that.hasIndices) result += 'd';
|
|
4614
|
-
if (that.global) result += 'g';
|
|
4615
|
-
if (that.ignoreCase) result += 'i';
|
|
4616
|
-
if (that.multiline) result += 'm';
|
|
4617
|
-
if (that.dotAll) result += 's';
|
|
4618
|
-
if (that.unicode) result += 'u';
|
|
4619
|
-
if (that.sticky) result += 'y';
|
|
4620
|
-
return result;
|
|
4621
|
-
};
|
|
4622
|
-
|
|
4623
|
-
var call = functionCall;
|
|
4624
|
-
var hasOwn = hasOwnProperty_1;
|
|
4625
|
-
var isPrototypeOf = objectIsPrototypeOf;
|
|
4626
|
-
var regExpFlags = regexpFlags;
|
|
4627
|
-
|
|
4628
|
-
var RegExpPrototype$1 = RegExp.prototype;
|
|
4629
|
-
|
|
4630
|
-
var regexpGetFlags = function (R) {
|
|
4631
|
-
var flags = R.flags;
|
|
4632
|
-
return flags === undefined && !('flags' in RegExpPrototype$1) && !hasOwn(R, 'flags') && isPrototypeOf(RegExpPrototype$1, R)
|
|
4633
|
-
? call(regExpFlags, R) : flags;
|
|
4634
|
-
};
|
|
4635
|
-
|
|
4636
|
-
var PROPER_FUNCTION_NAME = functionName.PROPER;
|
|
4637
|
-
var defineBuiltIn = defineBuiltIn$4;
|
|
4638
|
-
var anObject = anObject$7;
|
|
4639
|
-
var $toString = toString;
|
|
4640
|
-
var fails = fails$c;
|
|
4641
|
-
var getRegExpFlags = regexpGetFlags;
|
|
4642
|
-
|
|
4643
|
-
var TO_STRING = 'toString';
|
|
4644
|
-
var RegExpPrototype = RegExp.prototype;
|
|
4645
|
-
var n$ToString = RegExpPrototype[TO_STRING];
|
|
4646
|
-
|
|
4647
|
-
var NOT_GENERIC = fails(function () { return n$ToString.call({ source: 'a', flags: 'b' }) != '/a/b'; });
|
|
4648
|
-
// FF44- RegExp#toString has a wrong name
|
|
4649
|
-
var INCORRECT_NAME = PROPER_FUNCTION_NAME && n$ToString.name != TO_STRING;
|
|
4650
|
-
|
|
4651
|
-
// `RegExp.prototype.toString` method
|
|
4652
|
-
// https://tc39.es/ecma262/#sec-regexp.prototype.tostring
|
|
4653
|
-
if (NOT_GENERIC || INCORRECT_NAME) {
|
|
4654
|
-
defineBuiltIn(RegExp.prototype, TO_STRING, function toString() {
|
|
4655
|
-
var R = anObject(this);
|
|
4656
|
-
var pattern = $toString(R.source);
|
|
4657
|
-
var flags = $toString(getRegExpFlags(R));
|
|
4658
|
-
return '/' + pattern + '/' + flags;
|
|
4659
|
-
}, { unsafe: true });
|
|
4660
|
-
}
|
|
4661
|
-
|
|
4662
|
-
class Empty$Type extends MessageType{constructor(){super("google.protobuf.Empty",[]);}create(a){const b={};return globalThis.Object.defineProperty(b,MESSAGE_TYPE,{enumerable:!1,value:this}),void 0!==a&&reflectionMergePartial(this,b,a),b}internalBinaryRead(a,b,c,d){return null!==d&&void 0!==d?d:this.create()}internalBinaryWrite(a,b,c){let d=c.writeUnknownFields;return !1!==d&&(!0==d?UnknownFieldHandler.onWrite:d)(this.typeName,a,b),b}}/**
|
|
4663
|
-
* @generated MessageType for protobuf message google.protobuf.Empty
|
|
4664
|
-
*/const Empty=new Empty$Type;
|
|
4665
|
-
|
|
4666
|
-
/**
|
|
4667
|
-
* Turns PartialMethodInfo into MethodInfo.
|
|
4668
|
-
*/
|
|
4669
|
-
function normalizeMethodInfo(method, service) {
|
|
4670
|
-
var _a, _b, _c;
|
|
4671
|
-
let m = method;
|
|
4672
|
-
m.service = service;
|
|
4673
|
-
m.localName = (_a = m.localName) !== null && _a !== void 0 ? _a : lowerCamelCase(m.name);
|
|
4674
|
-
// noinspection PointlessBooleanExpressionJS
|
|
4675
|
-
m.serverStreaming = !!m.serverStreaming;
|
|
4676
|
-
// noinspection PointlessBooleanExpressionJS
|
|
4677
|
-
m.clientStreaming = !!m.clientStreaming;
|
|
4678
|
-
m.options = (_b = m.options) !== null && _b !== void 0 ? _b : {};
|
|
4679
|
-
m.idempotency = (_c = m.idempotency) !== null && _c !== void 0 ? _c : undefined;
|
|
4680
|
-
return m;
|
|
4681
|
-
}
|
|
4682
|
-
|
|
4683
|
-
class ServiceType {
|
|
4684
|
-
constructor(typeName, methods, options) {
|
|
4685
|
-
this.typeName = typeName;
|
|
4686
|
-
this.methods = methods.map(i => normalizeMethodInfo(i, this));
|
|
4687
|
-
this.options = options !== null && options !== void 0 ? options : {};
|
|
4688
|
-
}
|
|
4689
|
-
}
|
|
4690
|
-
|
|
4691
|
-
/**
|
|
4692
|
-
* Creates a "stack" of of all interceptors specified in the given `RpcOptions`.
|
|
4693
|
-
* Used by generated client implementations.
|
|
4694
|
-
* @internal
|
|
4695
|
-
*/
|
|
4696
|
-
function stackIntercept(kind, transport, method, options, input) {
|
|
4697
|
-
var _a, _b, _c, _d;
|
|
4698
|
-
if (kind == "unary") {
|
|
4699
|
-
let tail = (mtd, inp, opt) => transport.unary(mtd, inp, opt);
|
|
4700
|
-
for (const curr of ((_a = options.interceptors) !== null && _a !== void 0 ? _a : []).filter(i => i.interceptUnary).reverse()) {
|
|
4701
|
-
const next = tail;
|
|
4702
|
-
tail = (mtd, inp, opt) => curr.interceptUnary(next, mtd, inp, opt);
|
|
4703
|
-
}
|
|
4704
|
-
return tail(method, input, options);
|
|
4705
|
-
}
|
|
4706
|
-
if (kind == "serverStreaming") {
|
|
4707
|
-
let tail = (mtd, inp, opt) => transport.serverStreaming(mtd, inp, opt);
|
|
4708
|
-
for (const curr of ((_b = options.interceptors) !== null && _b !== void 0 ? _b : []).filter(i => i.interceptServerStreaming).reverse()) {
|
|
4709
|
-
const next = tail;
|
|
4710
|
-
tail = (mtd, inp, opt) => curr.interceptServerStreaming(next, mtd, inp, opt);
|
|
4711
|
-
}
|
|
4712
|
-
return tail(method, input, options);
|
|
4713
|
-
}
|
|
4714
|
-
if (kind == "clientStreaming") {
|
|
4715
|
-
let tail = (mtd, opt) => transport.clientStreaming(mtd, opt);
|
|
4716
|
-
for (const curr of ((_c = options.interceptors) !== null && _c !== void 0 ? _c : []).filter(i => i.interceptClientStreaming).reverse()) {
|
|
4717
|
-
const next = tail;
|
|
4718
|
-
tail = (mtd, opt) => curr.interceptClientStreaming(next, mtd, opt);
|
|
4719
|
-
}
|
|
4720
|
-
return tail(method, options);
|
|
4721
|
-
}
|
|
4722
|
-
if (kind == "duplex") {
|
|
4723
|
-
let tail = (mtd, opt) => transport.duplex(mtd, opt);
|
|
4724
|
-
for (const curr of ((_d = options.interceptors) !== null && _d !== void 0 ? _d : []).filter(i => i.interceptDuplex).reverse()) {
|
|
4725
|
-
const next = tail;
|
|
4726
|
-
tail = (mtd, opt) => curr.interceptDuplex(next, mtd, opt);
|
|
4727
|
-
}
|
|
4728
|
-
return tail(method, options);
|
|
4729
|
-
}
|
|
4730
|
-
assertNever(kind);
|
|
4731
|
-
}
|
|
4732
|
-
|
|
4733
2994
|
class ResolveBooleanRequest$Type extends MessageType{constructor(){super("schema.v1.ResolveBooleanRequest",[{no:1,name:"flag_key",kind:"scalar",T:9/*ScalarType.STRING*/},{no:2,name:"context",kind:"message",T:()=>Struct}]);}create(a){const b={flagKey:""};return globalThis.Object.defineProperty(b,MESSAGE_TYPE,{enumerable:!1,value:this}),void 0!==a&&reflectionMergePartial(this,b,a),b}internalBinaryRead(a,b,c,d){let e=null!==d&&void 0!==d?d:this.create(),f=a.pos+b;for(;a.pos<f;){let[b,f]=a.tag();switch(b){case/* string flag_key */1:e.flagKey=a.string();break;case/* google.protobuf.Struct context */2:e.context=Struct.internalBinaryRead(a,a.uint32(),c,e.context);break;default:let g=c.readUnknownField;if("throw"===g)throw new globalThis.Error(`Unknown field ${b} (wire type ${f}) for ${this.typeName}`);let h=a.skip(f);!1!==g&&(!0===g?UnknownFieldHandler.onRead:g)(this.typeName,e,b,f,h);}}return e}internalBinaryWrite(a,b,c){""!==a.flagKey&&b.tag(1,WireType.LengthDelimited).string(a.flagKey),a.context&&Struct.internalBinaryWrite(a.context,b.tag(2,WireType.LengthDelimited).fork(),c).join();let d=c.writeUnknownFields;return !1!==d&&(!0==d?UnknownFieldHandler.onWrite:d)(this.typeName,a,b),b}}/**
|
|
4734
2995
|
* @generated MessageType for protobuf message schema.v1.ResolveBooleanRequest
|
|
4735
2996
|
*/const ResolveBooleanRequest=new ResolveBooleanRequest$Type;// @generated message type with reflection information, may provide speed optimized methods
|
|
@@ -4762,11 +3023,16 @@ class ResolveObjectResponse$Type extends MessageType{constructor(){super("schema
|
|
|
4762
3023
|
*/const ResolveObjectResponse=new ResolveObjectResponse$Type;// @generated message type with reflection information, may provide speed optimized methods
|
|
4763
3024
|
class EventStreamResponse$Type extends MessageType{constructor(){super("schema.v1.EventStreamResponse",[{no:1,name:"type",kind:"scalar",T:9/*ScalarType.STRING*/},{no:2,name:"data",kind:"message",T:()=>Struct}]);}create(a){const b={type:""};return globalThis.Object.defineProperty(b,MESSAGE_TYPE,{enumerable:!1,value:this}),void 0!==a&&reflectionMergePartial(this,b,a),b}internalBinaryRead(a,b,c,d){let e=null!==d&&void 0!==d?d:this.create(),f=a.pos+b;for(;a.pos<f;){let[b,f]=a.tag();switch(b){case/* string type */1:e.type=a.string();break;case/* google.protobuf.Struct data */2:e.data=Struct.internalBinaryRead(a,a.uint32(),c,e.data);break;default:let g=c.readUnknownField;if("throw"===g)throw new globalThis.Error(`Unknown field ${b} (wire type ${f}) for ${this.typeName}`);let h=a.skip(f);!1!==g&&(!0===g?UnknownFieldHandler.onRead:g)(this.typeName,e,b,f,h);}}return e}internalBinaryWrite(a,b,c){""!==a.type&&b.tag(1,WireType.LengthDelimited).string(a.type),a.data&&Struct.internalBinaryWrite(a.data,b.tag(2,WireType.LengthDelimited).fork(),c).join();let d=c.writeUnknownFields;return !1!==d&&(!0==d?UnknownFieldHandler.onWrite:d)(this.typeName,a,b),b}}/**
|
|
4764
3025
|
* @generated MessageType for protobuf message schema.v1.EventStreamResponse
|
|
4765
|
-
*/const EventStreamResponse=new EventStreamResponse$Type
|
|
3026
|
+
*/const EventStreamResponse=new EventStreamResponse$Type;// @generated message type with reflection information, may provide speed optimized methods
|
|
3027
|
+
class EventStreamRequest$Type extends MessageType{constructor(){super("schema.v1.EventStreamRequest",[]);}create(a){const b={};return globalThis.Object.defineProperty(b,MESSAGE_TYPE,{enumerable:!1,value:this}),void 0!==a&&reflectionMergePartial(this,b,a),b}internalBinaryRead(a,b,c,d){return null!==d&&void 0!==d?d:this.create()}internalBinaryWrite(a,b,c){let d=c.writeUnknownFields;return !1!==d&&(!0==d?UnknownFieldHandler.onWrite:d)(this.typeName,a,b),b}}/**
|
|
3028
|
+
* @generated MessageType for protobuf message schema.v1.EventStreamRequest
|
|
3029
|
+
*/const EventStreamRequest=new EventStreamRequest$Type;/**
|
|
4766
3030
|
* @generated ServiceType for protobuf service schema.v1.Service
|
|
4767
|
-
*/const Service=new ServiceType("schema.v1.Service",[{name:"ResolveBoolean",options:{},I:ResolveBooleanRequest,O:ResolveBooleanResponse},{name:"ResolveString",options:{},I:ResolveStringRequest,O:ResolveStringResponse},{name:"ResolveFloat",options:{},I:ResolveFloatRequest,O:ResolveFloatResponse},{name:"ResolveInt",options:{},I:ResolveIntRequest,O:ResolveIntResponse},{name:"ResolveObject",options:{},I:ResolveObjectRequest,O:ResolveObjectResponse},{name:"EventStream",serverStreaming:!0,options:{},I:
|
|
3031
|
+
*/const Service=new ServiceType("schema.v1.Service",[{name:"ResolveBoolean",options:{},I:ResolveBooleanRequest,O:ResolveBooleanResponse},{name:"ResolveString",options:{},I:ResolveStringRequest,O:ResolveStringResponse},{name:"ResolveFloat",options:{},I:ResolveFloatRequest,O:ResolveFloatResponse},{name:"ResolveInt",options:{},I:ResolveIntRequest,O:ResolveIntResponse},{name:"ResolveObject",options:{},I:ResolveObjectRequest,O:ResolveObjectResponse},{name:"EventStream",serverStreaming:!0,options:{},I:EventStreamRequest,O:EventStreamResponse}]);
|
|
4768
3032
|
|
|
4769
3033
|
/**
|
|
3034
|
+
* Service defines the exposed rpcs of flagd
|
|
3035
|
+
*
|
|
4770
3036
|
* @generated from protobuf service schema.v1.Service
|
|
4771
3037
|
*/class ServiceClient{constructor(a){this._transport=a,this.typeName=Service.typeName,this.methods=Service.methods,this.options=Service.options;}/**
|
|
4772
3038
|
* @generated from protobuf rpc: ResolveBoolean(schema.v1.ResolveBooleanRequest) returns (schema.v1.ResolveBooleanResponse);
|
|
@@ -4779,7 +3045,7 @@ class EventStreamResponse$Type extends MessageType{constructor(){super("schema.v
|
|
|
4779
3045
|
*/resolveInt(a,b){const c=this.methods[3],d=this._transport.mergeOptions(b);return stackIntercept("unary",this._transport,c,d,a)}/**
|
|
4780
3046
|
* @generated from protobuf rpc: ResolveObject(schema.v1.ResolveObjectRequest) returns (schema.v1.ResolveObjectResponse);
|
|
4781
3047
|
*/resolveObject(a,b){const c=this.methods[4],d=this._transport.mergeOptions(b);return stackIntercept("unary",this._transport,c,d,a)}/**
|
|
4782
|
-
* @generated from protobuf rpc: EventStream(
|
|
3048
|
+
* @generated from protobuf rpc: EventStream(schema.v1.EventStreamRequest) returns (stream schema.v1.EventStreamResponse);
|
|
4783
3049
|
*/eventStream(a,b){const c=this.methods[5],d=this._transport.mergeOptions(b);return stackIntercept("serverStreaming",this._transport,c,d,a)}}
|
|
4784
3050
|
|
|
4785
3051
|
const Codes={InvalidArgument:"INVALID_ARGUMENT",NotFound:"NOT_FOUND",DataLoss:"DATA_LOSS",Unavailable:"UNAVAILABLE"};class GRPCService{constructor(a,b){this.onFulfilled=a=>a,this.onRejected=a=>{// map the errors
|