@acrobits/ipc-sdk 0.1.0 → 0.1.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/README.md +34 -0
- package/docs/assets/highlight.css +7 -0
- package/docs/assets/search.js +1 -1
- package/docs/classes/IPCManager.html +19 -17
- package/docs/enums/IPCEvents.html +3 -1
- package/docs/index.html +4 -2
- package/docs/interfaces/BaseContactItem.html +8 -6
- package/docs/interfaces/CloudUsernameContactItem.html +7 -5
- package/docs/interfaces/DetailedContactItem.html +14 -12
- package/docs/interfaces/ILogger.html +3 -1
- package/docs/interfaces/{SipUriContactItem.html → UriContactItem.html} +16 -14
- package/docs/modules.html +6 -2
- package/docs/types/ContactItem.html +5 -3
- package/docs/types/ContactLabel.html +4 -2
- package/docs/types/ContactType.html +59 -0
- package/docs/types/ContactURI.html +62 -0
- package/docs/types/HostType.html +4 -2
- package/docs/types/IPCContext.html +3 -1
- package/docs/types/IpcProtocolVersion.html +4 -2
- package/docs/types/UnsubscribeCallback.html +3 -1
- package/lib/index.d.ts +134 -20
- package/lib/ipc-sdk.js +272 -283
- package/lib/ipc-sdk.js.map +1 -1
- package/lib/ipc-sdk.umd.cjs +3 -3
- package/lib/ipc-sdk.umd.cjs.map +1 -1
- package/package.json +3 -3
package/lib/ipc-sdk.js
CHANGED
|
@@ -1,33 +1,24 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var _ = (r, t, e) => (
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
};
|
|
7
|
-
var ue = (r, t, e) => {
|
|
8
|
-
if (t.has(r))
|
|
9
|
-
throw TypeError("Cannot add the same private member more than once");
|
|
10
|
-
t instanceof WeakSet ? t.add(r) : t.set(r, e);
|
|
11
|
-
};
|
|
12
|
-
var B = (r, t, e) => (Ve(r, t, "access private method"), e);
|
|
13
|
-
var C = /* @__PURE__ */ ((r) => (r.BadgeQuery = "BADGE QUERY", r.HostInForeground = "HOST IN FOREGROUND", r))(C || {}), G = function(r, t) {
|
|
14
|
-
return G = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(e, n) {
|
|
1
|
+
var Ae = Object.defineProperty;
|
|
2
|
+
var Te = (r, t, e) => t in r ? Ae(r, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : r[t] = e;
|
|
3
|
+
var _ = (r, t, e) => (Te(r, typeof t != "symbol" ? t + "" : t, e), e);
|
|
4
|
+
var C = /* @__PURE__ */ ((r) => (r.BadgeQuery = "BADGE QUERY", r.HostInForeground = "HOST IN FOREGROUND", r))(C || {}), z = function(r, t) {
|
|
5
|
+
return z = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(e, n) {
|
|
15
6
|
e.__proto__ = n;
|
|
16
7
|
} || function(e, n) {
|
|
17
8
|
for (var i in n)
|
|
18
9
|
Object.prototype.hasOwnProperty.call(n, i) && (e[i] = n[i]);
|
|
19
|
-
},
|
|
10
|
+
}, z(r, t);
|
|
20
11
|
};
|
|
21
12
|
function x(r, t) {
|
|
22
13
|
if (typeof t != "function" && t !== null)
|
|
23
14
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
24
|
-
|
|
15
|
+
z(r, t);
|
|
25
16
|
function e() {
|
|
26
17
|
this.constructor = r;
|
|
27
18
|
}
|
|
28
19
|
r.prototype = t === null ? Object.create(t) : (e.prototype = t.prototype, new e());
|
|
29
20
|
}
|
|
30
|
-
function
|
|
21
|
+
function Q(r) {
|
|
31
22
|
var t = typeof Symbol == "function" && Symbol.iterator, e = t && r[t], n = 0;
|
|
32
23
|
if (e)
|
|
33
24
|
return e.call(r);
|
|
@@ -68,13 +59,13 @@ function I(r, t, e) {
|
|
|
68
59
|
function b(r) {
|
|
69
60
|
return typeof r == "function";
|
|
70
61
|
}
|
|
71
|
-
function
|
|
62
|
+
function Z(r) {
|
|
72
63
|
var t = function(n) {
|
|
73
64
|
Error.call(n), n.stack = new Error().stack;
|
|
74
65
|
}, e = r(t);
|
|
75
66
|
return e.prototype = Object.create(Error.prototype), e.prototype.constructor = e, e;
|
|
76
67
|
}
|
|
77
|
-
var
|
|
68
|
+
var k = Z(function(r) {
|
|
78
69
|
return function(e) {
|
|
79
70
|
r(this), this.message = e ? e.length + ` errors occurred during unsubscription:
|
|
80
71
|
` + e.map(function(n, i) {
|
|
@@ -83,13 +74,13 @@ var N = re(function(r) {
|
|
|
83
74
|
`) : "", this.name = "UnsubscriptionError", this.errors = e;
|
|
84
75
|
};
|
|
85
76
|
});
|
|
86
|
-
function
|
|
77
|
+
function j(r, t) {
|
|
87
78
|
if (r) {
|
|
88
79
|
var e = r.indexOf(t);
|
|
89
80
|
0 <= e && r.splice(e, 1);
|
|
90
81
|
}
|
|
91
82
|
}
|
|
92
|
-
var
|
|
83
|
+
var P = function() {
|
|
93
84
|
function r(t) {
|
|
94
85
|
this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
|
|
95
86
|
}
|
|
@@ -101,7 +92,7 @@ var A = function() {
|
|
|
101
92
|
if (s)
|
|
102
93
|
if (this._parentage = null, Array.isArray(s))
|
|
103
94
|
try {
|
|
104
|
-
for (var c =
|
|
95
|
+
for (var c = Q(s), u = c.next(); !u.done; u = c.next()) {
|
|
105
96
|
var a = u.value;
|
|
106
97
|
a.remove(this);
|
|
107
98
|
}
|
|
@@ -122,18 +113,18 @@ var A = function() {
|
|
|
122
113
|
try {
|
|
123
114
|
d();
|
|
124
115
|
} catch (l) {
|
|
125
|
-
o = l instanceof
|
|
116
|
+
o = l instanceof k ? l.errors : [l];
|
|
126
117
|
}
|
|
127
118
|
var f = this._finalizers;
|
|
128
119
|
if (f) {
|
|
129
120
|
this._finalizers = null;
|
|
130
121
|
try {
|
|
131
|
-
for (var w =
|
|
132
|
-
var
|
|
122
|
+
for (var w = Q(f), y = w.next(); !y.done; y = w.next()) {
|
|
123
|
+
var L = y.value;
|
|
133
124
|
try {
|
|
134
|
-
|
|
125
|
+
ie(L);
|
|
135
126
|
} catch (l) {
|
|
136
|
-
o = o ?? [], l instanceof
|
|
127
|
+
o = o ?? [], l instanceof k ? o = I(I([], M(o)), M(l.errors)) : o.push(l);
|
|
137
128
|
}
|
|
138
129
|
}
|
|
139
130
|
} catch (l) {
|
|
@@ -148,13 +139,13 @@ var A = function() {
|
|
|
148
139
|
}
|
|
149
140
|
}
|
|
150
141
|
if (o)
|
|
151
|
-
throw new
|
|
142
|
+
throw new k(o);
|
|
152
143
|
}
|
|
153
144
|
}, r.prototype.add = function(t) {
|
|
154
145
|
var e;
|
|
155
146
|
if (t && t !== this)
|
|
156
147
|
if (this.closed)
|
|
157
|
-
|
|
148
|
+
ie(t);
|
|
158
149
|
else {
|
|
159
150
|
if (t instanceof r) {
|
|
160
151
|
if (t.closed || t._hasParent(this))
|
|
@@ -171,58 +162,58 @@ var A = function() {
|
|
|
171
162
|
this._parentage = Array.isArray(e) ? (e.push(t), e) : e ? [e, t] : t;
|
|
172
163
|
}, r.prototype._removeParent = function(t) {
|
|
173
164
|
var e = this._parentage;
|
|
174
|
-
e === t ? this._parentage = null : Array.isArray(e) &&
|
|
165
|
+
e === t ? this._parentage = null : Array.isArray(e) && j(e, t);
|
|
175
166
|
}, r.prototype.remove = function(t) {
|
|
176
167
|
var e = this._finalizers;
|
|
177
|
-
e &&
|
|
168
|
+
e && j(e, t), t instanceof r && t._removeParent(this);
|
|
178
169
|
}, r.EMPTY = function() {
|
|
179
170
|
var t = new r();
|
|
180
171
|
return t.closed = !0, t;
|
|
181
172
|
}(), r;
|
|
182
|
-
}(),
|
|
183
|
-
function
|
|
184
|
-
return r instanceof
|
|
173
|
+
}(), ye = P.EMPTY;
|
|
174
|
+
function me(r) {
|
|
175
|
+
return r instanceof P || r && "closed" in r && b(r.remove) && b(r.add) && b(r.unsubscribe);
|
|
185
176
|
}
|
|
186
|
-
function
|
|
177
|
+
function ie(r) {
|
|
187
178
|
b(r) ? r() : r.unsubscribe();
|
|
188
179
|
}
|
|
189
|
-
var
|
|
180
|
+
var we = {
|
|
190
181
|
onUnhandledError: null,
|
|
191
182
|
onStoppedNotification: null,
|
|
192
183
|
Promise: void 0,
|
|
193
184
|
useDeprecatedSynchronousErrorHandling: !1,
|
|
194
185
|
useDeprecatedNextContext: !1
|
|
195
|
-
},
|
|
186
|
+
}, G = {
|
|
196
187
|
setTimeout: function(r, t) {
|
|
197
188
|
for (var e = [], n = 2; n < arguments.length; n++)
|
|
198
189
|
e[n - 2] = arguments[n];
|
|
199
|
-
var i =
|
|
190
|
+
var i = G.delegate;
|
|
200
191
|
return i != null && i.setTimeout ? i.setTimeout.apply(i, I([r, t], M(e))) : setTimeout.apply(void 0, I([r, t], M(e)));
|
|
201
192
|
},
|
|
202
193
|
clearTimeout: function(r) {
|
|
203
|
-
var t =
|
|
194
|
+
var t = G.delegate;
|
|
204
195
|
return ((t == null ? void 0 : t.clearTimeout) || clearTimeout)(r);
|
|
205
196
|
},
|
|
206
197
|
delegate: void 0
|
|
207
198
|
};
|
|
208
|
-
function
|
|
209
|
-
|
|
199
|
+
function Re(r) {
|
|
200
|
+
G.setTimeout(function() {
|
|
210
201
|
throw r;
|
|
211
202
|
});
|
|
212
203
|
}
|
|
213
|
-
function
|
|
204
|
+
function oe() {
|
|
214
205
|
}
|
|
215
|
-
function
|
|
206
|
+
function U(r) {
|
|
216
207
|
r();
|
|
217
208
|
}
|
|
218
|
-
var
|
|
209
|
+
var ee = function(r) {
|
|
219
210
|
x(t, r);
|
|
220
211
|
function t(e) {
|
|
221
212
|
var n = r.call(this) || this;
|
|
222
|
-
return n.isStopped = !1, e ? (n.destination = e,
|
|
213
|
+
return n.isStopped = !1, e ? (n.destination = e, me(e) && e.add(n)) : n.destination = Ve, n;
|
|
223
214
|
}
|
|
224
215
|
return t.create = function(e, n, i) {
|
|
225
|
-
return new
|
|
216
|
+
return new V(e, n, i);
|
|
226
217
|
}, t.prototype.next = function(e) {
|
|
227
218
|
this.isStopped || this._next(e);
|
|
228
219
|
}, t.prototype.error = function(e) {
|
|
@@ -246,11 +237,11 @@ var ne = function(r) {
|
|
|
246
237
|
this.unsubscribe();
|
|
247
238
|
}
|
|
248
239
|
}, t;
|
|
249
|
-
}(
|
|
250
|
-
function
|
|
251
|
-
return
|
|
240
|
+
}(P), Ue = Function.prototype.bind;
|
|
241
|
+
function B(r, t) {
|
|
242
|
+
return Ue.call(r, t);
|
|
252
243
|
}
|
|
253
|
-
var
|
|
244
|
+
var $e = function() {
|
|
254
245
|
function r(t) {
|
|
255
246
|
this.partialObserver = t;
|
|
256
247
|
}
|
|
@@ -260,7 +251,7 @@ var De = function() {
|
|
|
260
251
|
try {
|
|
261
252
|
e.next(t);
|
|
262
253
|
} catch (n) {
|
|
263
|
-
|
|
254
|
+
A(n);
|
|
264
255
|
}
|
|
265
256
|
}, r.prototype.error = function(t) {
|
|
266
257
|
var e = this.partialObserver;
|
|
@@ -268,20 +259,20 @@ var De = function() {
|
|
|
268
259
|
try {
|
|
269
260
|
e.error(t);
|
|
270
261
|
} catch (n) {
|
|
271
|
-
|
|
262
|
+
A(n);
|
|
272
263
|
}
|
|
273
264
|
else
|
|
274
|
-
|
|
265
|
+
A(t);
|
|
275
266
|
}, r.prototype.complete = function() {
|
|
276
267
|
var t = this.partialObserver;
|
|
277
268
|
if (t.complete)
|
|
278
269
|
try {
|
|
279
270
|
t.complete();
|
|
280
271
|
} catch (e) {
|
|
281
|
-
|
|
272
|
+
A(e);
|
|
282
273
|
}
|
|
283
274
|
}, r;
|
|
284
|
-
}(),
|
|
275
|
+
}(), V = function(r) {
|
|
285
276
|
x(t, r);
|
|
286
277
|
function t(e, n, i) {
|
|
287
278
|
var o = r.call(this) || this, s;
|
|
@@ -293,43 +284,43 @@ var De = function() {
|
|
|
293
284
|
};
|
|
294
285
|
else {
|
|
295
286
|
var c;
|
|
296
|
-
o &&
|
|
287
|
+
o && we.useDeprecatedNextContext ? (c = Object.create(e), c.unsubscribe = function() {
|
|
297
288
|
return o.unsubscribe();
|
|
298
289
|
}, s = {
|
|
299
|
-
next: e.next &&
|
|
300
|
-
error: e.error &&
|
|
301
|
-
complete: e.complete &&
|
|
290
|
+
next: e.next && B(e.next, c),
|
|
291
|
+
error: e.error && B(e.error, c),
|
|
292
|
+
complete: e.complete && B(e.complete, c)
|
|
302
293
|
}) : s = e;
|
|
303
294
|
}
|
|
304
|
-
return o.destination = new
|
|
295
|
+
return o.destination = new $e(s), o;
|
|
305
296
|
}
|
|
306
297
|
return t;
|
|
307
|
-
}(
|
|
308
|
-
function
|
|
309
|
-
|
|
298
|
+
}(ee);
|
|
299
|
+
function A(r) {
|
|
300
|
+
Re(r);
|
|
310
301
|
}
|
|
311
|
-
function
|
|
302
|
+
function je(r) {
|
|
312
303
|
throw r;
|
|
313
304
|
}
|
|
314
|
-
var
|
|
305
|
+
var Ve = {
|
|
315
306
|
closed: !0,
|
|
316
|
-
next:
|
|
317
|
-
error:
|
|
318
|
-
complete:
|
|
319
|
-
},
|
|
307
|
+
next: oe,
|
|
308
|
+
error: je,
|
|
309
|
+
complete: oe
|
|
310
|
+
}, Fe = function() {
|
|
320
311
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
321
312
|
}();
|
|
322
|
-
function
|
|
313
|
+
function Se(r) {
|
|
323
314
|
return r;
|
|
324
315
|
}
|
|
325
|
-
function
|
|
326
|
-
return r.length === 0 ?
|
|
316
|
+
function He(r) {
|
|
317
|
+
return r.length === 0 ? Se : r.length === 1 ? r[0] : function(e) {
|
|
327
318
|
return r.reduce(function(n, i) {
|
|
328
319
|
return i(n);
|
|
329
320
|
}, e);
|
|
330
321
|
};
|
|
331
322
|
}
|
|
332
|
-
var
|
|
323
|
+
var Y = function() {
|
|
333
324
|
function r(t) {
|
|
334
325
|
t && (this._subscribe = t);
|
|
335
326
|
}
|
|
@@ -337,8 +328,8 @@ var K = function() {
|
|
|
337
328
|
var e = new r();
|
|
338
329
|
return e.source = this, e.operator = t, e;
|
|
339
330
|
}, r.prototype.subscribe = function(t, e, n) {
|
|
340
|
-
var i = this, o =
|
|
341
|
-
return
|
|
331
|
+
var i = this, o = Le(t) ? t : new V(t, e, n);
|
|
332
|
+
return U(function() {
|
|
342
333
|
var s = i, c = s.operator, u = s.source;
|
|
343
334
|
o.add(c ? c.call(o, u) : u ? i._subscribe(o) : i._trySubscribe(o));
|
|
344
335
|
}), o;
|
|
@@ -350,8 +341,8 @@ var K = function() {
|
|
|
350
341
|
}
|
|
351
342
|
}, r.prototype.forEach = function(t, e) {
|
|
352
343
|
var n = this;
|
|
353
|
-
return e =
|
|
354
|
-
var s = new
|
|
344
|
+
return e = se(e), new e(function(i, o) {
|
|
345
|
+
var s = new V({
|
|
355
346
|
next: function(c) {
|
|
356
347
|
try {
|
|
357
348
|
t(c);
|
|
@@ -367,15 +358,15 @@ var K = function() {
|
|
|
367
358
|
}, r.prototype._subscribe = function(t) {
|
|
368
359
|
var e;
|
|
369
360
|
return (e = this.source) === null || e === void 0 ? void 0 : e.subscribe(t);
|
|
370
|
-
}, r.prototype[
|
|
361
|
+
}, r.prototype[Fe] = function() {
|
|
371
362
|
return this;
|
|
372
363
|
}, r.prototype.pipe = function() {
|
|
373
364
|
for (var t = [], e = 0; e < arguments.length; e++)
|
|
374
365
|
t[e] = arguments[e];
|
|
375
|
-
return
|
|
366
|
+
return He(t)(this);
|
|
376
367
|
}, r.prototype.toPromise = function(t) {
|
|
377
368
|
var e = this;
|
|
378
|
-
return t =
|
|
369
|
+
return t = se(t), new t(function(n, i) {
|
|
379
370
|
var o;
|
|
380
371
|
e.subscribe(function(s) {
|
|
381
372
|
return o = s;
|
|
@@ -389,22 +380,22 @@ var K = function() {
|
|
|
389
380
|
return new r(t);
|
|
390
381
|
}, r;
|
|
391
382
|
}();
|
|
392
|
-
function
|
|
383
|
+
function se(r) {
|
|
393
384
|
var t;
|
|
394
|
-
return (t = r ??
|
|
385
|
+
return (t = r ?? we.Promise) !== null && t !== void 0 ? t : Promise;
|
|
395
386
|
}
|
|
396
|
-
function
|
|
387
|
+
function De(r) {
|
|
397
388
|
return r && b(r.next) && b(r.error) && b(r.complete);
|
|
398
389
|
}
|
|
399
|
-
function
|
|
400
|
-
return r && r instanceof
|
|
390
|
+
function Le(r) {
|
|
391
|
+
return r && r instanceof ee || De(r) && me(r);
|
|
401
392
|
}
|
|
402
|
-
function
|
|
393
|
+
function ke(r) {
|
|
403
394
|
return b(r == null ? void 0 : r.lift);
|
|
404
395
|
}
|
|
405
|
-
function
|
|
396
|
+
function Ce(r) {
|
|
406
397
|
return function(t) {
|
|
407
|
-
if (
|
|
398
|
+
if (ke(t))
|
|
408
399
|
return t.lift(function(e) {
|
|
409
400
|
try {
|
|
410
401
|
return r(e, this);
|
|
@@ -415,10 +406,10 @@ function Me(r) {
|
|
|
415
406
|
throw new TypeError("Unable to lift unknown Observable type");
|
|
416
407
|
};
|
|
417
408
|
}
|
|
418
|
-
function
|
|
419
|
-
return new
|
|
409
|
+
function Ee(r, t, e, n, i) {
|
|
410
|
+
return new Be(r, t, e, n, i);
|
|
420
411
|
}
|
|
421
|
-
var
|
|
412
|
+
var Be = function(r) {
|
|
422
413
|
x(t, r);
|
|
423
414
|
function t(e, n, i, o, s, c) {
|
|
424
415
|
var u = r.call(this, e) || this;
|
|
@@ -453,30 +444,30 @@ var Ge = function(r) {
|
|
|
453
444
|
r.prototype.unsubscribe.call(this), !n && ((e = this.onFinalize) === null || e === void 0 || e.call(this));
|
|
454
445
|
}
|
|
455
446
|
}, t;
|
|
456
|
-
}(
|
|
447
|
+
}(ee), Ne = Z(function(r) {
|
|
457
448
|
return function() {
|
|
458
449
|
r(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
459
450
|
};
|
|
460
|
-
}),
|
|
451
|
+
}), xe = function(r) {
|
|
461
452
|
x(t, r);
|
|
462
453
|
function t() {
|
|
463
454
|
var e = r.call(this) || this;
|
|
464
455
|
return e.closed = !1, e.currentObservers = null, e.observers = [], e.isStopped = !1, e.hasError = !1, e.thrownError = null, e;
|
|
465
456
|
}
|
|
466
457
|
return t.prototype.lift = function(e) {
|
|
467
|
-
var n = new
|
|
458
|
+
var n = new ue(this, this);
|
|
468
459
|
return n.operator = e, n;
|
|
469
460
|
}, t.prototype._throwIfClosed = function() {
|
|
470
461
|
if (this.closed)
|
|
471
|
-
throw new
|
|
462
|
+
throw new Ne();
|
|
472
463
|
}, t.prototype.next = function(e) {
|
|
473
464
|
var n = this;
|
|
474
|
-
|
|
465
|
+
U(function() {
|
|
475
466
|
var i, o;
|
|
476
467
|
if (n._throwIfClosed(), !n.isStopped) {
|
|
477
468
|
n.currentObservers || (n.currentObservers = Array.from(n.observers));
|
|
478
469
|
try {
|
|
479
|
-
for (var s =
|
|
470
|
+
for (var s = Q(n.currentObservers), c = s.next(); !c.done; c = s.next()) {
|
|
480
471
|
var u = c.value;
|
|
481
472
|
u.next(e);
|
|
482
473
|
}
|
|
@@ -494,7 +485,7 @@ var Ge = function(r) {
|
|
|
494
485
|
});
|
|
495
486
|
}, t.prototype.error = function(e) {
|
|
496
487
|
var n = this;
|
|
497
|
-
|
|
488
|
+
U(function() {
|
|
498
489
|
if (n._throwIfClosed(), !n.isStopped) {
|
|
499
490
|
n.hasError = n.isStopped = !0, n.thrownError = e;
|
|
500
491
|
for (var i = n.observers; i.length; )
|
|
@@ -503,7 +494,7 @@ var Ge = function(r) {
|
|
|
503
494
|
});
|
|
504
495
|
}, t.prototype.complete = function() {
|
|
505
496
|
var e = this;
|
|
506
|
-
|
|
497
|
+
U(function() {
|
|
507
498
|
if (e._throwIfClosed(), !e.isStopped) {
|
|
508
499
|
e.isStopped = !0;
|
|
509
500
|
for (var n = e.observers; n.length; )
|
|
@@ -525,19 +516,19 @@ var Ge = function(r) {
|
|
|
525
516
|
return this._throwIfClosed(), this._checkFinalizedStatuses(e), this._innerSubscribe(e);
|
|
526
517
|
}, t.prototype._innerSubscribe = function(e) {
|
|
527
518
|
var n = this, i = this, o = i.hasError, s = i.isStopped, c = i.observers;
|
|
528
|
-
return o || s ?
|
|
529
|
-
n.currentObservers = null,
|
|
519
|
+
return o || s ? ye : (this.currentObservers = null, c.push(e), new P(function() {
|
|
520
|
+
n.currentObservers = null, j(c, e);
|
|
530
521
|
}));
|
|
531
522
|
}, t.prototype._checkFinalizedStatuses = function(e) {
|
|
532
523
|
var n = this, i = n.hasError, o = n.thrownError, s = n.isStopped;
|
|
533
524
|
i ? e.error(o) : s && e.complete();
|
|
534
525
|
}, t.prototype.asObservable = function() {
|
|
535
|
-
var e = new
|
|
526
|
+
var e = new Y();
|
|
536
527
|
return e.source = this, e;
|
|
537
528
|
}, t.create = function(e, n) {
|
|
538
|
-
return new
|
|
529
|
+
return new ue(e, n);
|
|
539
530
|
}, t;
|
|
540
|
-
}(
|
|
531
|
+
}(Y), ue = function(r) {
|
|
541
532
|
x(t, r);
|
|
542
533
|
function t(e, n) {
|
|
543
534
|
var i = r.call(this) || this;
|
|
@@ -554,14 +545,14 @@ var Ge = function(r) {
|
|
|
554
545
|
(n = (e = this.destination) === null || e === void 0 ? void 0 : e.complete) === null || n === void 0 || n.call(e);
|
|
555
546
|
}, t.prototype._subscribe = function(e) {
|
|
556
547
|
var n, i;
|
|
557
|
-
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(e)) !== null && i !== void 0 ? i :
|
|
548
|
+
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(e)) !== null && i !== void 0 ? i : ye;
|
|
558
549
|
}, t;
|
|
559
|
-
}(
|
|
550
|
+
}(xe), _e = {
|
|
560
551
|
now: function() {
|
|
561
|
-
return (
|
|
552
|
+
return (_e.delegate || Date).now();
|
|
562
553
|
},
|
|
563
554
|
delegate: void 0
|
|
564
|
-
},
|
|
555
|
+
}, qe = function(r) {
|
|
565
556
|
x(t, r);
|
|
566
557
|
function t(e, n) {
|
|
567
558
|
return r.call(this) || this;
|
|
@@ -569,19 +560,19 @@ var Ge = function(r) {
|
|
|
569
560
|
return t.prototype.schedule = function(e, n) {
|
|
570
561
|
return this;
|
|
571
562
|
}, t;
|
|
572
|
-
}(
|
|
563
|
+
}(P), F = {
|
|
573
564
|
setInterval: function(r, t) {
|
|
574
565
|
for (var e = [], n = 2; n < arguments.length; n++)
|
|
575
566
|
e[n - 2] = arguments[n];
|
|
576
|
-
var i =
|
|
567
|
+
var i = F.delegate;
|
|
577
568
|
return i != null && i.setInterval ? i.setInterval.apply(i, I([r, t], M(e))) : setInterval.apply(void 0, I([r, t], M(e)));
|
|
578
569
|
},
|
|
579
570
|
clearInterval: function(r) {
|
|
580
|
-
var t =
|
|
571
|
+
var t = F.delegate;
|
|
581
572
|
return ((t == null ? void 0 : t.clearInterval) || clearInterval)(r);
|
|
582
573
|
},
|
|
583
574
|
delegate: void 0
|
|
584
|
-
},
|
|
575
|
+
}, ze = function(r) {
|
|
585
576
|
x(t, r);
|
|
586
577
|
function t(e, n) {
|
|
587
578
|
var i = r.call(this, e, n) || this;
|
|
@@ -595,11 +586,11 @@ var Ge = function(r) {
|
|
|
595
586
|
var o = this.id, s = this.scheduler;
|
|
596
587
|
return o != null && (this.id = this.recycleAsyncId(s, o, n)), this.pending = !0, this.delay = n, this.id = (i = this.id) !== null && i !== void 0 ? i : this.requestAsyncId(s, this.id, n), this;
|
|
597
588
|
}, t.prototype.requestAsyncId = function(e, n, i) {
|
|
598
|
-
return i === void 0 && (i = 0),
|
|
589
|
+
return i === void 0 && (i = 0), F.setInterval(e.flush.bind(e, this), i);
|
|
599
590
|
}, t.prototype.recycleAsyncId = function(e, n, i) {
|
|
600
591
|
if (i === void 0 && (i = 0), i != null && this.delay === i && this.pending === !1)
|
|
601
592
|
return n;
|
|
602
|
-
n != null &&
|
|
593
|
+
n != null && F.clearInterval(n);
|
|
603
594
|
}, t.prototype.execute = function(e, n) {
|
|
604
595
|
if (this.closed)
|
|
605
596
|
return new Error("executing a cancelled action");
|
|
@@ -620,20 +611,20 @@ var Ge = function(r) {
|
|
|
620
611
|
}, t.prototype.unsubscribe = function() {
|
|
621
612
|
if (!this.closed) {
|
|
622
613
|
var e = this, n = e.id, i = e.scheduler, o = i.actions;
|
|
623
|
-
this.work = this.state = this.scheduler = null, this.pending = !1,
|
|
614
|
+
this.work = this.state = this.scheduler = null, this.pending = !1, j(o, this), n != null && (this.id = this.recycleAsyncId(i, n, null)), this.delay = null, r.prototype.unsubscribe.call(this);
|
|
624
615
|
}
|
|
625
616
|
}, t;
|
|
626
|
-
}(
|
|
617
|
+
}(qe), ce = function() {
|
|
627
618
|
function r(t, e) {
|
|
628
619
|
e === void 0 && (e = r.now), this.schedulerActionCtor = t, this.now = e;
|
|
629
620
|
}
|
|
630
621
|
return r.prototype.schedule = function(t, e, n) {
|
|
631
622
|
return e === void 0 && (e = 0), new this.schedulerActionCtor(this, t).schedule(n, e);
|
|
632
|
-
}, r.now =
|
|
633
|
-
}(),
|
|
623
|
+
}, r.now = _e.now, r;
|
|
624
|
+
}(), Qe = function(r) {
|
|
634
625
|
x(t, r);
|
|
635
626
|
function t(e, n) {
|
|
636
|
-
n === void 0 && (n =
|
|
627
|
+
n === void 0 && (n = ce.now);
|
|
637
628
|
var i = r.call(this, e, n) || this;
|
|
638
629
|
return i.actions = [], i._active = !1, i;
|
|
639
630
|
}
|
|
@@ -655,11 +646,11 @@ var Ge = function(r) {
|
|
|
655
646
|
throw i;
|
|
656
647
|
}
|
|
657
648
|
}, t;
|
|
658
|
-
}(
|
|
659
|
-
function
|
|
649
|
+
}(ce), Ge = new Qe(ze), Ye = Ge;
|
|
650
|
+
function Je(r) {
|
|
660
651
|
return r && b(r.schedule);
|
|
661
652
|
}
|
|
662
|
-
var
|
|
653
|
+
var Ke = Z(function(r) {
|
|
663
654
|
return function() {
|
|
664
655
|
r(this), this.name = "EmptyError", this.message = "no elements in sequence";
|
|
665
656
|
};
|
|
@@ -667,34 +658,34 @@ var tt = re(function(r) {
|
|
|
667
658
|
function O(r, t) {
|
|
668
659
|
var e = typeof t == "object";
|
|
669
660
|
return new Promise(function(n, i) {
|
|
670
|
-
var o = new
|
|
661
|
+
var o = new V({
|
|
671
662
|
next: function(s) {
|
|
672
663
|
n(s), o.unsubscribe();
|
|
673
664
|
},
|
|
674
665
|
error: i,
|
|
675
666
|
complete: function() {
|
|
676
|
-
e ? n(t.defaultValue) : i(new
|
|
667
|
+
e ? n(t.defaultValue) : i(new Ke());
|
|
677
668
|
}
|
|
678
669
|
});
|
|
679
670
|
r.subscribe(o);
|
|
680
671
|
});
|
|
681
672
|
}
|
|
682
|
-
function
|
|
673
|
+
function We(r) {
|
|
683
674
|
return r instanceof Date && !isNaN(r);
|
|
684
675
|
}
|
|
685
|
-
function
|
|
686
|
-
return
|
|
676
|
+
function T(r, t) {
|
|
677
|
+
return Ce(function(e, n) {
|
|
687
678
|
var i = 0;
|
|
688
|
-
e.subscribe(
|
|
679
|
+
e.subscribe(Ee(n, function(o) {
|
|
689
680
|
n.next(r.call(t, o, i++));
|
|
690
681
|
}));
|
|
691
682
|
});
|
|
692
683
|
}
|
|
693
|
-
function
|
|
694
|
-
r === void 0 && (r = 0), e === void 0 && (e =
|
|
684
|
+
function Xe(r, t, e) {
|
|
685
|
+
r === void 0 && (r = 0), e === void 0 && (e = Ye);
|
|
695
686
|
var n = -1;
|
|
696
|
-
return t != null && (
|
|
697
|
-
var o =
|
|
687
|
+
return t != null && (Je(t) ? e = t : n = t), new Y(function(i) {
|
|
688
|
+
var o = We(r) ? +r - e.now() : r;
|
|
698
689
|
o < 0 && (o = 0);
|
|
699
690
|
var s = 0;
|
|
700
691
|
return e.schedule(function() {
|
|
@@ -702,13 +693,13 @@ function nt(r, t, e) {
|
|
|
702
693
|
}, o);
|
|
703
694
|
});
|
|
704
695
|
}
|
|
705
|
-
function
|
|
696
|
+
function Ze(r, t, e) {
|
|
706
697
|
var n = b(r) || t || e ? { next: r, error: t, complete: e } : r;
|
|
707
|
-
return n ?
|
|
698
|
+
return n ? Ce(function(i, o) {
|
|
708
699
|
var s;
|
|
709
700
|
(s = n.subscribe) === null || s === void 0 || s.call(n);
|
|
710
701
|
var c = !0;
|
|
711
|
-
i.subscribe(
|
|
702
|
+
i.subscribe(Ee(o, function(u) {
|
|
712
703
|
var a;
|
|
713
704
|
(a = n.next) === null || a === void 0 || a.call(n, u), o.next(u);
|
|
714
705
|
}, function() {
|
|
@@ -721,37 +712,37 @@ function it(r, t, e) {
|
|
|
721
712
|
var u, a;
|
|
722
713
|
c && ((u = n.unsubscribe) === null || u === void 0 || u.call(n)), (a = n.finalize) === null || a === void 0 || a.call(n);
|
|
723
714
|
}));
|
|
724
|
-
}) :
|
|
715
|
+
}) : Se;
|
|
725
716
|
}
|
|
726
|
-
var
|
|
717
|
+
var et = Object.defineProperty, tt = (r, t, e) => t in r ? et(r, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : r[t] = e, E = (r, t, e) => (tt(r, typeof t != "symbol" ? t + "" : t, e), e);
|
|
727
718
|
class p extends Error {
|
|
728
719
|
constructor(t) {
|
|
729
720
|
super(`Incorrect context (${t}). Cannot perform the requested operation.`), E(this, "context"), this.context = t;
|
|
730
721
|
}
|
|
731
722
|
}
|
|
732
|
-
class
|
|
723
|
+
class $ extends Error {
|
|
733
724
|
constructor(t, e, n) {
|
|
734
725
|
super(`Invalid parameter (${t}). ${n}`), this.param = t, this.value = e, this.reason = n;
|
|
735
726
|
}
|
|
736
727
|
}
|
|
737
|
-
class
|
|
728
|
+
class rt extends Error {
|
|
738
729
|
constructor(t, e) {
|
|
739
730
|
super(
|
|
740
731
|
`'streamId' value of "${t}" is different from what we expected ("${e}")`
|
|
741
732
|
), this.streamId = t, this.expectedStreamId = e;
|
|
742
733
|
}
|
|
743
734
|
}
|
|
744
|
-
class
|
|
735
|
+
class nt extends Error {
|
|
745
736
|
constructor(t) {
|
|
746
737
|
super(`Invalid version format: ${t}`);
|
|
747
738
|
}
|
|
748
739
|
}
|
|
749
|
-
class
|
|
740
|
+
class ae extends Error {
|
|
750
741
|
constructor(t) {
|
|
751
742
|
super(`${t} needs to be initialized before it can be used.`);
|
|
752
743
|
}
|
|
753
744
|
}
|
|
754
|
-
class
|
|
745
|
+
class le extends Error {
|
|
755
746
|
constructor(t, e) {
|
|
756
747
|
let n = `Unsupported Protocol ${Array.isArray(t) ? "versions" : "version"}: (${t}).`;
|
|
757
748
|
e && (n += ` Minimum version supported is ${e}.`), super(n), this.version = t;
|
|
@@ -760,12 +751,12 @@ class fe extends Error {
|
|
|
760
751
|
function m(r) {
|
|
761
752
|
return typeof r == "function";
|
|
762
753
|
}
|
|
763
|
-
function
|
|
754
|
+
function it(r) {
|
|
764
755
|
return m(r == null ? void 0 : r.lift);
|
|
765
756
|
}
|
|
766
|
-
function
|
|
757
|
+
function H(r) {
|
|
767
758
|
return function(t) {
|
|
768
|
-
if (
|
|
759
|
+
if (it(t))
|
|
769
760
|
return t.lift(function(e) {
|
|
770
761
|
try {
|
|
771
762
|
return r(e, this);
|
|
@@ -776,24 +767,24 @@ function D(r) {
|
|
|
776
767
|
throw new TypeError("Unable to lift unknown Observable type");
|
|
777
768
|
};
|
|
778
769
|
}
|
|
779
|
-
var
|
|
780
|
-
return
|
|
770
|
+
var J = function(r, t) {
|
|
771
|
+
return J = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(e, n) {
|
|
781
772
|
e.__proto__ = n;
|
|
782
773
|
} || function(e, n) {
|
|
783
774
|
for (var i in n)
|
|
784
775
|
Object.prototype.hasOwnProperty.call(n, i) && (e[i] = n[i]);
|
|
785
|
-
},
|
|
776
|
+
}, J(r, t);
|
|
786
777
|
};
|
|
787
|
-
function
|
|
778
|
+
function te(r, t) {
|
|
788
779
|
if (typeof t != "function" && t !== null)
|
|
789
780
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
790
|
-
|
|
781
|
+
J(r, t);
|
|
791
782
|
function e() {
|
|
792
783
|
this.constructor = r;
|
|
793
784
|
}
|
|
794
785
|
r.prototype = t === null ? Object.create(t) : (e.prototype = t.prototype, new e());
|
|
795
786
|
}
|
|
796
|
-
function
|
|
787
|
+
function he(r) {
|
|
797
788
|
var t = typeof Symbol == "function" && Symbol.iterator, e = t && r[t], n = 0;
|
|
798
789
|
if (e)
|
|
799
790
|
return e.call(r);
|
|
@@ -805,7 +796,7 @@ function ve(r) {
|
|
|
805
796
|
};
|
|
806
797
|
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
807
798
|
}
|
|
808
|
-
function
|
|
799
|
+
function K(r, t) {
|
|
809
800
|
var e = typeof Symbol == "function" && r[Symbol.iterator];
|
|
810
801
|
if (!e)
|
|
811
802
|
return r;
|
|
@@ -825,19 +816,19 @@ function X(r, t) {
|
|
|
825
816
|
}
|
|
826
817
|
return o;
|
|
827
818
|
}
|
|
828
|
-
function
|
|
819
|
+
function W(r, t, e) {
|
|
829
820
|
if (e || arguments.length === 2)
|
|
830
821
|
for (var n = 0, i = t.length, o; n < i; n++)
|
|
831
822
|
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
832
823
|
return r.concat(o || Array.prototype.slice.call(t));
|
|
833
824
|
}
|
|
834
|
-
function
|
|
825
|
+
function ot(r) {
|
|
835
826
|
var t = function(n) {
|
|
836
827
|
Error.call(n), n.stack = new Error().stack;
|
|
837
828
|
}, e = r(t);
|
|
838
829
|
return e.prototype = Object.create(Error.prototype), e.prototype.constructor = e, e;
|
|
839
830
|
}
|
|
840
|
-
var
|
|
831
|
+
var N = ot(function(r) {
|
|
841
832
|
return function(t) {
|
|
842
833
|
r(this), this.message = t ? t.length + ` errors occurred during unsubscription:
|
|
843
834
|
` + t.map(function(e, n) {
|
|
@@ -846,13 +837,13 @@ var z = lt(function(r) {
|
|
|
846
837
|
`) : "", this.name = "UnsubscriptionError", this.errors = t;
|
|
847
838
|
};
|
|
848
839
|
});
|
|
849
|
-
function
|
|
840
|
+
function pe(r, t) {
|
|
850
841
|
if (r) {
|
|
851
842
|
var e = r.indexOf(t);
|
|
852
843
|
0 <= e && r.splice(e, 1);
|
|
853
844
|
}
|
|
854
845
|
}
|
|
855
|
-
var
|
|
846
|
+
var re = function() {
|
|
856
847
|
function r(t) {
|
|
857
848
|
this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
|
|
858
849
|
}
|
|
@@ -864,7 +855,7 @@ var oe = function() {
|
|
|
864
855
|
if (s)
|
|
865
856
|
if (this._parentage = null, Array.isArray(s))
|
|
866
857
|
try {
|
|
867
|
-
for (var c =
|
|
858
|
+
for (var c = he(s), u = c.next(); !u.done; u = c.next()) {
|
|
868
859
|
var a = u.value;
|
|
869
860
|
a.remove(this);
|
|
870
861
|
}
|
|
@@ -885,18 +876,18 @@ var oe = function() {
|
|
|
885
876
|
try {
|
|
886
877
|
d();
|
|
887
878
|
} catch (l) {
|
|
888
|
-
o = l instanceof
|
|
879
|
+
o = l instanceof N ? l.errors : [l];
|
|
889
880
|
}
|
|
890
881
|
var f = this._finalizers;
|
|
891
882
|
if (f) {
|
|
892
883
|
this._finalizers = null;
|
|
893
884
|
try {
|
|
894
|
-
for (var w =
|
|
895
|
-
var
|
|
885
|
+
for (var w = he(f), y = w.next(); !y.done; y = w.next()) {
|
|
886
|
+
var L = y.value;
|
|
896
887
|
try {
|
|
897
|
-
|
|
888
|
+
de(L);
|
|
898
889
|
} catch (l) {
|
|
899
|
-
o = o ?? [], l instanceof
|
|
890
|
+
o = o ?? [], l instanceof N ? o = W(W([], K(o)), K(l.errors)) : o.push(l);
|
|
900
891
|
}
|
|
901
892
|
}
|
|
902
893
|
} catch (l) {
|
|
@@ -911,13 +902,13 @@ var oe = function() {
|
|
|
911
902
|
}
|
|
912
903
|
}
|
|
913
904
|
if (o)
|
|
914
|
-
throw new
|
|
905
|
+
throw new N(o);
|
|
915
906
|
}
|
|
916
907
|
}, r.prototype.add = function(t) {
|
|
917
908
|
var e;
|
|
918
909
|
if (t && t !== this)
|
|
919
910
|
if (this.closed)
|
|
920
|
-
|
|
911
|
+
de(t);
|
|
921
912
|
else {
|
|
922
913
|
if (t instanceof r) {
|
|
923
914
|
if (t.closed || t._hasParent(this))
|
|
@@ -934,57 +925,57 @@ var oe = function() {
|
|
|
934
925
|
this._parentage = Array.isArray(e) ? (e.push(t), e) : e ? [e, t] : t;
|
|
935
926
|
}, r.prototype._removeParent = function(t) {
|
|
936
927
|
var e = this._parentage;
|
|
937
|
-
e === t ? this._parentage = null : Array.isArray(e) &&
|
|
928
|
+
e === t ? this._parentage = null : Array.isArray(e) && pe(e, t);
|
|
938
929
|
}, r.prototype.remove = function(t) {
|
|
939
930
|
var e = this._finalizers;
|
|
940
|
-
e &&
|
|
931
|
+
e && pe(e, t), t instanceof r && t._removeParent(this);
|
|
941
932
|
}, r.EMPTY = function() {
|
|
942
933
|
var t = new r();
|
|
943
934
|
return t.closed = !0, t;
|
|
944
935
|
}(), r;
|
|
945
936
|
}();
|
|
946
|
-
|
|
947
|
-
function
|
|
948
|
-
return r instanceof
|
|
937
|
+
re.EMPTY;
|
|
938
|
+
function Me(r) {
|
|
939
|
+
return r instanceof re || r && "closed" in r && m(r.remove) && m(r.add) && m(r.unsubscribe);
|
|
949
940
|
}
|
|
950
|
-
function
|
|
941
|
+
function de(r) {
|
|
951
942
|
m(r) ? r() : r.unsubscribe();
|
|
952
943
|
}
|
|
953
|
-
var
|
|
944
|
+
var Ie = {
|
|
954
945
|
onUnhandledError: null,
|
|
955
946
|
onStoppedNotification: null,
|
|
956
947
|
Promise: void 0,
|
|
957
948
|
useDeprecatedSynchronousErrorHandling: !1,
|
|
958
949
|
useDeprecatedNextContext: !1
|
|
959
|
-
},
|
|
950
|
+
}, st = {
|
|
960
951
|
setTimeout: function(r, t) {
|
|
961
952
|
for (var e = [], n = 2; n < arguments.length; n++)
|
|
962
953
|
e[n - 2] = arguments[n];
|
|
963
|
-
return setTimeout.apply(void 0,
|
|
954
|
+
return setTimeout.apply(void 0, W([r, t], K(e)));
|
|
964
955
|
},
|
|
965
956
|
clearTimeout: function(r) {
|
|
966
957
|
return clearTimeout(r);
|
|
967
958
|
},
|
|
968
959
|
delegate: void 0
|
|
969
960
|
};
|
|
970
|
-
function
|
|
971
|
-
|
|
961
|
+
function ut(r) {
|
|
962
|
+
st.setTimeout(function() {
|
|
972
963
|
throw r;
|
|
973
964
|
});
|
|
974
965
|
}
|
|
975
|
-
function
|
|
966
|
+
function fe() {
|
|
976
967
|
}
|
|
977
|
-
function
|
|
968
|
+
function ct(r) {
|
|
978
969
|
r();
|
|
979
970
|
}
|
|
980
|
-
var
|
|
981
|
-
|
|
971
|
+
var ne = function(r) {
|
|
972
|
+
te(t, r);
|
|
982
973
|
function t(e) {
|
|
983
974
|
var n = r.call(this) || this;
|
|
984
|
-
return n.isStopped = !1, e ? (n.destination = e,
|
|
975
|
+
return n.isStopped = !1, e ? (n.destination = e, Me(e) && e.add(n)) : n.destination = pt, n;
|
|
985
976
|
}
|
|
986
977
|
return t.create = function(e, n, i) {
|
|
987
|
-
return new
|
|
978
|
+
return new X(e, n, i);
|
|
988
979
|
}, t.prototype.next = function(e) {
|
|
989
980
|
this.isStopped || this._next(e);
|
|
990
981
|
}, t.prototype.error = function(e) {
|
|
@@ -1008,11 +999,11 @@ var se = function(r) {
|
|
|
1008
999
|
this.unsubscribe();
|
|
1009
1000
|
}
|
|
1010
1001
|
}, t;
|
|
1011
|
-
}(
|
|
1012
|
-
function
|
|
1013
|
-
return
|
|
1002
|
+
}(re), at = Function.prototype.bind;
|
|
1003
|
+
function q(r, t) {
|
|
1004
|
+
return at.call(r, t);
|
|
1014
1005
|
}
|
|
1015
|
-
var
|
|
1006
|
+
var lt = function() {
|
|
1016
1007
|
function r(t) {
|
|
1017
1008
|
this.partialObserver = t;
|
|
1018
1009
|
}
|
|
@@ -1022,7 +1013,7 @@ var vt = function() {
|
|
|
1022
1013
|
try {
|
|
1023
1014
|
e.next(t);
|
|
1024
1015
|
} catch (n) {
|
|
1025
|
-
|
|
1016
|
+
R(n);
|
|
1026
1017
|
}
|
|
1027
1018
|
}, r.prototype.error = function(t) {
|
|
1028
1019
|
var e = this.partialObserver;
|
|
@@ -1030,21 +1021,21 @@ var vt = function() {
|
|
|
1030
1021
|
try {
|
|
1031
1022
|
e.error(t);
|
|
1032
1023
|
} catch (n) {
|
|
1033
|
-
|
|
1024
|
+
R(n);
|
|
1034
1025
|
}
|
|
1035
1026
|
else
|
|
1036
|
-
|
|
1027
|
+
R(t);
|
|
1037
1028
|
}, r.prototype.complete = function() {
|
|
1038
1029
|
var t = this.partialObserver;
|
|
1039
1030
|
if (t.complete)
|
|
1040
1031
|
try {
|
|
1041
1032
|
t.complete();
|
|
1042
1033
|
} catch (e) {
|
|
1043
|
-
|
|
1034
|
+
R(e);
|
|
1044
1035
|
}
|
|
1045
1036
|
}, r;
|
|
1046
|
-
}(),
|
|
1047
|
-
|
|
1037
|
+
}(), X = function(r) {
|
|
1038
|
+
te(t, r);
|
|
1048
1039
|
function t(e, n, i) {
|
|
1049
1040
|
var o = r.call(this) || this, s;
|
|
1050
1041
|
if (m(e) || !e)
|
|
@@ -1055,43 +1046,43 @@ var vt = function() {
|
|
|
1055
1046
|
};
|
|
1056
1047
|
else {
|
|
1057
1048
|
var c;
|
|
1058
|
-
o &&
|
|
1049
|
+
o && Ie.useDeprecatedNextContext ? (c = Object.create(e), c.unsubscribe = function() {
|
|
1059
1050
|
return o.unsubscribe();
|
|
1060
1051
|
}, s = {
|
|
1061
|
-
next: e.next &&
|
|
1062
|
-
error: e.error &&
|
|
1063
|
-
complete: e.complete &&
|
|
1052
|
+
next: e.next && q(e.next, c),
|
|
1053
|
+
error: e.error && q(e.error, c),
|
|
1054
|
+
complete: e.complete && q(e.complete, c)
|
|
1064
1055
|
}) : s = e;
|
|
1065
1056
|
}
|
|
1066
|
-
return o.destination = new
|
|
1057
|
+
return o.destination = new lt(s), o;
|
|
1067
1058
|
}
|
|
1068
1059
|
return t;
|
|
1069
|
-
}(
|
|
1070
|
-
function
|
|
1071
|
-
|
|
1060
|
+
}(ne);
|
|
1061
|
+
function R(r) {
|
|
1062
|
+
ut(r);
|
|
1072
1063
|
}
|
|
1073
|
-
function
|
|
1064
|
+
function ht(r) {
|
|
1074
1065
|
throw r;
|
|
1075
1066
|
}
|
|
1076
|
-
var
|
|
1067
|
+
var pt = {
|
|
1077
1068
|
closed: !0,
|
|
1078
|
-
next:
|
|
1079
|
-
error:
|
|
1080
|
-
complete:
|
|
1081
|
-
},
|
|
1069
|
+
next: fe,
|
|
1070
|
+
error: ht,
|
|
1071
|
+
complete: fe
|
|
1072
|
+
}, dt = function() {
|
|
1082
1073
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
1083
1074
|
}();
|
|
1084
|
-
function
|
|
1075
|
+
function Oe(r) {
|
|
1085
1076
|
return r;
|
|
1086
1077
|
}
|
|
1087
|
-
function
|
|
1088
|
-
return r.length === 0 ?
|
|
1078
|
+
function ft(r) {
|
|
1079
|
+
return r.length === 0 ? Oe : r.length === 1 ? r[0] : function(t) {
|
|
1089
1080
|
return r.reduce(function(e, n) {
|
|
1090
1081
|
return n(e);
|
|
1091
1082
|
}, t);
|
|
1092
1083
|
};
|
|
1093
1084
|
}
|
|
1094
|
-
var
|
|
1085
|
+
var vt = function() {
|
|
1095
1086
|
function r(t) {
|
|
1096
1087
|
t && (this._subscribe = t);
|
|
1097
1088
|
}
|
|
@@ -1099,8 +1090,8 @@ var wt = function() {
|
|
|
1099
1090
|
var e = new r();
|
|
1100
1091
|
return e.source = this, e.operator = t, e;
|
|
1101
1092
|
}, r.prototype.subscribe = function(t, e, n) {
|
|
1102
|
-
var i = this, o =
|
|
1103
|
-
return
|
|
1093
|
+
var i = this, o = bt(t) ? t : new X(t, e, n);
|
|
1094
|
+
return ct(function() {
|
|
1104
1095
|
var s = i, c = s.operator, u = s.source;
|
|
1105
1096
|
o.add(c ? c.call(o, u) : u ? i._subscribe(o) : i._trySubscribe(o));
|
|
1106
1097
|
}), o;
|
|
@@ -1112,8 +1103,8 @@ var wt = function() {
|
|
|
1112
1103
|
}
|
|
1113
1104
|
}, r.prototype.forEach = function(t, e) {
|
|
1114
1105
|
var n = this;
|
|
1115
|
-
return e =
|
|
1116
|
-
var s = new
|
|
1106
|
+
return e = ve(e), new e(function(i, o) {
|
|
1107
|
+
var s = new X({
|
|
1117
1108
|
next: function(c) {
|
|
1118
1109
|
try {
|
|
1119
1110
|
t(c);
|
|
@@ -1129,15 +1120,15 @@ var wt = function() {
|
|
|
1129
1120
|
}, r.prototype._subscribe = function(t) {
|
|
1130
1121
|
var e;
|
|
1131
1122
|
return (e = this.source) === null || e === void 0 ? void 0 : e.subscribe(t);
|
|
1132
|
-
}, r.prototype[
|
|
1123
|
+
}, r.prototype[dt] = function() {
|
|
1133
1124
|
return this;
|
|
1134
1125
|
}, r.prototype.pipe = function() {
|
|
1135
1126
|
for (var t = [], e = 0; e < arguments.length; e++)
|
|
1136
1127
|
t[e] = arguments[e];
|
|
1137
|
-
return
|
|
1128
|
+
return ft(t)(this);
|
|
1138
1129
|
}, r.prototype.toPromise = function(t) {
|
|
1139
1130
|
var e = this;
|
|
1140
|
-
return t =
|
|
1131
|
+
return t = ve(t), new t(function(n, i) {
|
|
1141
1132
|
var o;
|
|
1142
1133
|
e.subscribe(function(s) {
|
|
1143
1134
|
return o = s;
|
|
@@ -1151,21 +1142,21 @@ var wt = function() {
|
|
|
1151
1142
|
return new r(t);
|
|
1152
1143
|
}, r;
|
|
1153
1144
|
}();
|
|
1154
|
-
function
|
|
1145
|
+
function ve(r) {
|
|
1155
1146
|
var t;
|
|
1156
|
-
return (t = r ??
|
|
1147
|
+
return (t = r ?? Ie.Promise) !== null && t !== void 0 ? t : Promise;
|
|
1157
1148
|
}
|
|
1158
|
-
function
|
|
1149
|
+
function gt(r) {
|
|
1159
1150
|
return r && m(r.next) && m(r.error) && m(r.complete);
|
|
1160
1151
|
}
|
|
1161
|
-
function
|
|
1162
|
-
return r && r instanceof
|
|
1152
|
+
function bt(r) {
|
|
1153
|
+
return r && r instanceof ne || gt(r) && Me(r);
|
|
1163
1154
|
}
|
|
1164
|
-
function
|
|
1165
|
-
return new
|
|
1155
|
+
function D(r, t, e, n, i) {
|
|
1156
|
+
return new yt(r, t, e, n, i);
|
|
1166
1157
|
}
|
|
1167
|
-
var
|
|
1168
|
-
|
|
1158
|
+
var yt = function(r) {
|
|
1159
|
+
te(t, r);
|
|
1169
1160
|
function t(e, n, i, o, s, c) {
|
|
1170
1161
|
var u = r.call(this, e) || this;
|
|
1171
1162
|
return u.onFinalize = s, u.shouldUnsubscribe = c, u._next = n ? function(a) {
|
|
@@ -1199,43 +1190,43 @@ var Et = function(r) {
|
|
|
1199
1190
|
r.prototype.unsubscribe.call(this), !n && ((e = this.onFinalize) === null || e === void 0 || e.call(this));
|
|
1200
1191
|
}
|
|
1201
1192
|
}, t;
|
|
1202
|
-
}(
|
|
1193
|
+
}(ne);
|
|
1203
1194
|
function h(r, t) {
|
|
1204
|
-
return
|
|
1195
|
+
return H(function(e, n) {
|
|
1205
1196
|
var i = 0;
|
|
1206
|
-
e.subscribe(
|
|
1197
|
+
e.subscribe(D(n, function(o) {
|
|
1207
1198
|
n.next(r.call(t, o, i++));
|
|
1208
1199
|
}));
|
|
1209
1200
|
});
|
|
1210
1201
|
}
|
|
1211
|
-
var
|
|
1202
|
+
var mt = new vt(function(r) {
|
|
1212
1203
|
return r.complete();
|
|
1213
1204
|
});
|
|
1214
1205
|
function S(r) {
|
|
1215
1206
|
return r <= 0 ? function() {
|
|
1216
|
-
return
|
|
1217
|
-
} :
|
|
1207
|
+
return mt;
|
|
1208
|
+
} : H(function(t, e) {
|
|
1218
1209
|
var n = 0;
|
|
1219
|
-
t.subscribe(
|
|
1210
|
+
t.subscribe(D(e, function(i) {
|
|
1220
1211
|
++n <= r && (e.next(i), r <= n && e.complete());
|
|
1221
1212
|
}));
|
|
1222
1213
|
});
|
|
1223
1214
|
}
|
|
1224
1215
|
function g(r, t) {
|
|
1225
|
-
return
|
|
1216
|
+
return H(function(e, n) {
|
|
1226
1217
|
var i = 0;
|
|
1227
|
-
e.subscribe(
|
|
1218
|
+
e.subscribe(D(n, function(o) {
|
|
1228
1219
|
return r.call(t, o, i++) && n.next(o);
|
|
1229
1220
|
}));
|
|
1230
1221
|
});
|
|
1231
1222
|
}
|
|
1232
1223
|
function v(r, t, e) {
|
|
1233
1224
|
var n = m(r) || t || e ? { next: r, error: t, complete: e } : r;
|
|
1234
|
-
return n ?
|
|
1225
|
+
return n ? H(function(i, o) {
|
|
1235
1226
|
var s;
|
|
1236
1227
|
(s = n.subscribe) === null || s === void 0 || s.call(n);
|
|
1237
1228
|
var c = !0;
|
|
1238
|
-
i.subscribe(
|
|
1229
|
+
i.subscribe(D(o, function(u) {
|
|
1239
1230
|
var a;
|
|
1240
1231
|
(a = n.next) === null || a === void 0 || a.call(n, u), o.next(u);
|
|
1241
1232
|
}, function() {
|
|
@@ -1248,33 +1239,33 @@ function v(r, t, e) {
|
|
|
1248
1239
|
var u, a;
|
|
1249
1240
|
c && ((u = n.unsubscribe) === null || u === void 0 || u.call(n)), (a = n.finalize) === null || a === void 0 || a.call(n);
|
|
1250
1241
|
}));
|
|
1251
|
-
}) :
|
|
1242
|
+
}) : Oe;
|
|
1252
1243
|
}
|
|
1253
|
-
const
|
|
1254
|
-
function
|
|
1244
|
+
const wt = /^(\d+)\.(\d+)$/;
|
|
1245
|
+
function St(r) {
|
|
1255
1246
|
if (typeof r == "string") {
|
|
1256
|
-
const t = r.match(
|
|
1247
|
+
const t = r.match(wt);
|
|
1257
1248
|
if (t)
|
|
1258
1249
|
return `${t[1]}.${t[2]}`;
|
|
1259
1250
|
}
|
|
1260
|
-
throw new
|
|
1251
|
+
throw new nt(r);
|
|
1261
1252
|
}
|
|
1262
|
-
function
|
|
1263
|
-
const t =
|
|
1253
|
+
function ge(r) {
|
|
1254
|
+
const t = St(r), [e, n] = t.split("."), [i, o] = [parseInt(e), parseInt(n)];
|
|
1264
1255
|
return [i, o];
|
|
1265
1256
|
}
|
|
1266
|
-
function
|
|
1267
|
-
const [e, n] =
|
|
1257
|
+
function Pe(r, t) {
|
|
1258
|
+
const [e, n] = ge(r), [i, o] = ge(t);
|
|
1268
1259
|
return e < i ? -1 : e > i ? 1 : n < o ? -1 : n > o ? 1 : 0;
|
|
1269
1260
|
}
|
|
1270
|
-
function
|
|
1271
|
-
return
|
|
1261
|
+
function Ct(r, t) {
|
|
1262
|
+
return Pe(r, t) === 1;
|
|
1272
1263
|
}
|
|
1273
|
-
function
|
|
1274
|
-
return
|
|
1264
|
+
function Et(r, t) {
|
|
1265
|
+
return Pe(r, t) >= 0;
|
|
1275
1266
|
}
|
|
1276
|
-
const
|
|
1277
|
-
class
|
|
1267
|
+
const be = "2.0";
|
|
1268
|
+
class xt {
|
|
1278
1269
|
/**
|
|
1279
1270
|
* Create a new instance of the {@link IpcHelper | IPC Protocol Helper}.
|
|
1280
1271
|
*
|
|
@@ -1285,8 +1276,8 @@ class Pt {
|
|
|
1285
1276
|
* @param logService - An instance of a logging service or utility
|
|
1286
1277
|
*/
|
|
1287
1278
|
constructor(t, e) {
|
|
1288
|
-
if (E(this, "negotiatedProtocolVersion"), E(this, "currentContext"), E(this, "incomingMessages$"), E(this, "inIframe", !1), E(this, "embeddedResult"), E(this, "iframePort1"), E(this, "iframePort2"), this.supportedVersions = t, this.logService = e, this.incomingMessages$ = new
|
|
1289
|
-
throw new
|
|
1279
|
+
if (E(this, "negotiatedProtocolVersion"), E(this, "currentContext"), E(this, "incomingMessages$"), E(this, "inIframe", !1), E(this, "embeddedResult"), E(this, "iframePort1"), E(this, "iframePort2"), this.supportedVersions = t, this.logService = e, this.incomingMessages$ = new xe(), this.supportedVersions = t.filter((n) => Et(n, be)), !this.supportedVersions.length)
|
|
1280
|
+
throw new le(t, be);
|
|
1290
1281
|
this.negotiatedProtocolVersion = this.supportedVersions[0], this.embeddedResult = null, this.iframePort2 = null;
|
|
1291
1282
|
}
|
|
1292
1283
|
get parent() {
|
|
@@ -1308,11 +1299,11 @@ class Pt {
|
|
|
1308
1299
|
var t, e, n, i;
|
|
1309
1300
|
if (this.inIframe) {
|
|
1310
1301
|
if (!this.iframePort2)
|
|
1311
|
-
throw new
|
|
1302
|
+
throw new ae("port2");
|
|
1312
1303
|
return this.iframePort2;
|
|
1313
1304
|
} else {
|
|
1314
1305
|
if (!((e = (t = window.Acrobits) == null ? void 0 : t.messageChannel) != null && e.port2))
|
|
1315
|
-
throw new
|
|
1306
|
+
throw new ae("port2");
|
|
1316
1307
|
return (i = (n = window.Acrobits) == null ? void 0 : n.messageChannel) == null ? void 0 : i.port2;
|
|
1317
1308
|
}
|
|
1318
1309
|
}
|
|
@@ -1322,7 +1313,7 @@ class Pt {
|
|
|
1322
1313
|
* @returns Observable with the {@link AppContext} the app is running under. Emits once.
|
|
1323
1314
|
*/
|
|
1324
1315
|
determineContext() {
|
|
1325
|
-
return
|
|
1316
|
+
return Xe(1e3).pipe(
|
|
1326
1317
|
h(() => (this.isEmbedded() ? this.currentContext = "user" : this.currentContext = "guest", this.currentContext)),
|
|
1327
1318
|
S(1)
|
|
1328
1319
|
);
|
|
@@ -1343,8 +1334,8 @@ class Pt {
|
|
|
1343
1334
|
h((i) => i),
|
|
1344
1335
|
v(this.logReceived(t)),
|
|
1345
1336
|
h((i) => {
|
|
1346
|
-
if (this.supportedVersions.some((o) =>
|
|
1347
|
-
throw new
|
|
1337
|
+
if (this.supportedVersions.some((o) => Ct(o, i.protocolVersion)))
|
|
1338
|
+
throw new le(i.protocolVersion, this.supportedVersions[0]);
|
|
1348
1339
|
return i;
|
|
1349
1340
|
}),
|
|
1350
1341
|
v((i) => {
|
|
@@ -1636,13 +1627,13 @@ class Pt {
|
|
|
1636
1627
|
if (!this.isEmbedded())
|
|
1637
1628
|
throw new p(this.currentContext);
|
|
1638
1629
|
if (e === "group" && n === void 0)
|
|
1639
|
-
throw new
|
|
1630
|
+
throw new $(
|
|
1640
1631
|
"currentContacts",
|
|
1641
1632
|
n,
|
|
1642
1633
|
"currentContacts is required for group streams"
|
|
1643
1634
|
);
|
|
1644
1635
|
if (e === "direct" && n !== void 0)
|
|
1645
|
-
throw new
|
|
1636
|
+
throw new $(
|
|
1646
1637
|
"currentContacts",
|
|
1647
1638
|
n,
|
|
1648
1639
|
"currentContacts should not be passed for direct streams"
|
|
@@ -1656,7 +1647,7 @@ class Pt {
|
|
|
1656
1647
|
h((c) => {
|
|
1657
1648
|
const u = c;
|
|
1658
1649
|
if (u.streamId !== t)
|
|
1659
|
-
throw new
|
|
1650
|
+
throw new rt(u.streamId, t);
|
|
1660
1651
|
return e === "direct" && u.contacts.length > 1 && (u.contacts = [u.contacts[0]]), u;
|
|
1661
1652
|
}),
|
|
1662
1653
|
S(1)
|
|
@@ -1675,7 +1666,7 @@ class Pt {
|
|
|
1675
1666
|
if (!this.isEmbedded())
|
|
1676
1667
|
throw new p(this.currentContext);
|
|
1677
1668
|
if (!t.length)
|
|
1678
|
-
throw new
|
|
1669
|
+
throw new $("contacts", t, "At least one contact is required");
|
|
1679
1670
|
const e = "MATCH CONTACTS", n = this.createMessage(e);
|
|
1680
1671
|
n.contacts = [...t], this.logCreated(e, n);
|
|
1681
1672
|
const i = this.incomingMessages$.pipe(
|
|
@@ -1854,9 +1845,8 @@ class Pt {
|
|
|
1854
1845
|
return i.join("");
|
|
1855
1846
|
}
|
|
1856
1847
|
}
|
|
1857
|
-
const
|
|
1858
|
-
|
|
1859
|
-
class Rt {
|
|
1848
|
+
const _t = ["2.0"];
|
|
1849
|
+
class It {
|
|
1860
1850
|
/**
|
|
1861
1851
|
* A class that manages the IPC communication between the `Client` and the `Host`.
|
|
1862
1852
|
*
|
|
@@ -1868,7 +1858,6 @@ class Rt {
|
|
|
1868
1858
|
* will be used.
|
|
1869
1859
|
*/
|
|
1870
1860
|
constructor(t) {
|
|
1871
|
-
ue(this, P);
|
|
1872
1861
|
/**
|
|
1873
1862
|
* The type of the `Host` app the `Client` is embedded in.
|
|
1874
1863
|
*/
|
|
@@ -1880,14 +1869,14 @@ class Rt {
|
|
|
1880
1869
|
_(this, "logger");
|
|
1881
1870
|
_(this, "helper");
|
|
1882
1871
|
_(this, "listeners");
|
|
1883
|
-
this.logger = t ?? console, this.helper = new
|
|
1872
|
+
this.logger = t ?? console, this.helper = new xt(_t, this.logger), this.listeners = /* @__PURE__ */ new Map(), this.listeners.set(C.BadgeQuery, /* @__PURE__ */ new Set()), this.listeners.set(C.HostInForeground, /* @__PURE__ */ new Set());
|
|
1884
1873
|
}
|
|
1885
1874
|
/**
|
|
1886
1875
|
* Returns whether the app is running inside a native WebView (`host` context) or as a
|
|
1887
1876
|
* `standalone` app.
|
|
1888
1877
|
*/
|
|
1889
1878
|
get context() {
|
|
1890
|
-
return
|
|
1879
|
+
return this.evaluateContext(this.helper.currentContext);
|
|
1891
1880
|
}
|
|
1892
1881
|
/**
|
|
1893
1882
|
* Determines if the app is connected to a `Host` app.
|
|
@@ -1910,7 +1899,7 @@ class Rt {
|
|
|
1910
1899
|
const t = await O(this.helper.determineContext(), {
|
|
1911
1900
|
defaultValue: "guest"
|
|
1912
1901
|
});
|
|
1913
|
-
return
|
|
1902
|
+
return this.evaluateContext(t);
|
|
1914
1903
|
}
|
|
1915
1904
|
/**
|
|
1916
1905
|
* Initiates the IPC handshake with the `Host` app.
|
|
@@ -1918,7 +1907,7 @@ class Rt {
|
|
|
1918
1907
|
initiateConnection() {
|
|
1919
1908
|
return O(
|
|
1920
1909
|
this.helper.openBridge().pipe(
|
|
1921
|
-
|
|
1910
|
+
Ze((t) => {
|
|
1922
1911
|
this.helper.onBadgeQueryMessage().subscribe((e) => {
|
|
1923
1912
|
var n;
|
|
1924
1913
|
this.logger.debug("Received Badge Query: ", e);
|
|
@@ -1931,7 +1920,7 @@ class Rt {
|
|
|
1931
1920
|
i();
|
|
1932
1921
|
}), this.cloudId = t.cloudId, this.host = t.host;
|
|
1933
1922
|
}),
|
|
1934
|
-
|
|
1923
|
+
T(() => {
|
|
1935
1924
|
})
|
|
1936
1925
|
)
|
|
1937
1926
|
);
|
|
@@ -1941,7 +1930,7 @@ class Rt {
|
|
|
1941
1930
|
let i;
|
|
1942
1931
|
if (e === "multi") {
|
|
1943
1932
|
if (!n)
|
|
1944
|
-
throw new
|
|
1933
|
+
throw new $(
|
|
1945
1934
|
"currentContacts",
|
|
1946
1935
|
n,
|
|
1947
1936
|
"currentContacts is required for group streams"
|
|
@@ -1949,7 +1938,7 @@ class Rt {
|
|
|
1949
1938
|
i = this.helper.selectContacts(t.toString(), "group", n);
|
|
1950
1939
|
} else
|
|
1951
1940
|
i = this.helper.selectContacts(t.toString(), "direct");
|
|
1952
|
-
return O(i.pipe(
|
|
1941
|
+
return O(i.pipe(T((o) => o.contacts)));
|
|
1953
1942
|
}
|
|
1954
1943
|
/**
|
|
1955
1944
|
* Matches batch of {@link ContactItem} objects against the Host's contact list to fetch detailed
|
|
@@ -1961,7 +1950,7 @@ class Rt {
|
|
|
1961
1950
|
* Host's contact list.
|
|
1962
1951
|
*/
|
|
1963
1952
|
matchContacts(t) {
|
|
1964
|
-
return this.logger.debug("Match Contacts: ", t), O(this.helper.matchContacts(t).pipe(
|
|
1953
|
+
return this.logger.debug("Match Contacts: ", t), O(this.helper.matchContacts(t).pipe(T((e) => e.contacts)));
|
|
1965
1954
|
}
|
|
1966
1955
|
/**
|
|
1967
1956
|
* Requests the `Host` app to provide the Push Token for the current device.
|
|
@@ -1969,7 +1958,7 @@ class Rt {
|
|
|
1969
1958
|
* @returns A promise with the Push Token as `string`.
|
|
1970
1959
|
*/
|
|
1971
1960
|
requestPushToken() {
|
|
1972
|
-
return this.logger.debug("Requesting Push Token"), O(this.helper.requestPushToken().pipe(
|
|
1961
|
+
return this.logger.debug("Requesting Push Token"), O(this.helper.requestPushToken().pipe(T((t) => t.pushToken)));
|
|
1973
1962
|
}
|
|
1974
1963
|
/**
|
|
1975
1964
|
* Sends the current badge count to the `Host` app.
|
|
@@ -2007,14 +1996,14 @@ class Rt {
|
|
|
2007
1996
|
return (n = this.listeners.get(C.HostInForeground)) == null ? void 0 : n.delete(t);
|
|
2008
1997
|
};
|
|
2009
1998
|
}
|
|
1999
|
+
evaluateContext(t) {
|
|
2000
|
+
if (t === "user")
|
|
2001
|
+
return "host";
|
|
2002
|
+
if (t === "guest")
|
|
2003
|
+
return "standalone";
|
|
2004
|
+
}
|
|
2010
2005
|
}
|
|
2011
|
-
P = new WeakSet(), te = function(t) {
|
|
2012
|
-
if (t === "user")
|
|
2013
|
-
return "host";
|
|
2014
|
-
if (t === "guest")
|
|
2015
|
-
return "standalone";
|
|
2016
|
-
};
|
|
2017
2006
|
export {
|
|
2018
2007
|
C as IPCEvents,
|
|
2019
|
-
|
|
2008
|
+
It as IPCManager
|
|
2020
2009
|
};
|