@openfeature/flagd-provider 0.7.0 → 0.7.1

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