@pod-os/core 0.11.2-7dc8fd4.0 → 0.11.2-b41ffeb.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -7,9 +7,8 @@ import {
7
7
  isNamedNode,
8
8
  lit,
9
9
  namedNode,
10
- st,
11
- v4_default
12
- } from "./chunk-NJZBRQIY.js";
10
+ st
11
+ } from "./chunk-K3YKITD7.js";
13
12
  import {
14
13
  __commonJS,
15
14
  __export,
@@ -7589,7 +7588,7 @@ var require_oidc_client_min = __commonJS({
7589
7588
  var require_lunr = __commonJS({
7590
7589
  "../node_modules/lunr/lunr.js"(exports, module2) {
7591
7590
  (function() {
7592
- var lunr2 = function(config) {
7591
+ var lunr2 = function(config2) {
7593
7592
  var builder = new lunr2.Builder();
7594
7593
  builder.pipeline.add(
7595
7594
  lunr2.trimmer,
@@ -7599,7 +7598,7 @@ var require_lunr = __commonJS({
7599
7598
  builder.searchPipeline.add(
7600
7599
  lunr2.stemmer
7601
7600
  );
7602
- config.call(builder, builder);
7601
+ config2.call(builder, builder);
7603
7602
  return builder.build();
7604
7603
  };
7605
7604
  lunr2.version = "2.3.9";
@@ -9548,8 +9547,8 @@ function checkUsage(key3, usages) {
9548
9547
  if (usages.length && !usages.some((expected) => key3.usages.includes(expected))) {
9549
9548
  let msg = "CryptoKey does not support this operation, its usages must include ";
9550
9549
  if (usages.length > 2) {
9551
- const last2 = usages.pop();
9552
- msg += `one of ${usages.join(", ")}, or ${last2}.`;
9550
+ const last3 = usages.pop();
9551
+ msg += `one of ${usages.join(", ")}, or ${last3}.`;
9553
9552
  } else if (usages.length === 2) {
9554
9553
  msg += `one of ${usages[0]} or ${usages[1]}.`;
9555
9554
  } else {
@@ -9619,8 +9618,8 @@ function checkSigCryptoKey(key3, alg, ...usages) {
9619
9618
  // ../node_modules/jose/dist/browser/lib/invalid_key_input.js
9620
9619
  function message(msg, actual2, ...types2) {
9621
9620
  if (types2.length > 2) {
9622
- const last2 = types2.pop();
9623
- msg += `one of type ${types2.join(", ")}, or ${last2}.`;
9621
+ const last3 = types2.pop();
9622
+ msg += `one of type ${types2.join(", ")}, or ${last3}.`;
9624
9623
  } else if (types2.length === 2) {
9625
9624
  msg += `one of type ${types2[0]} or ${types2[1]}.`;
9626
9625
  } else {
@@ -10594,6 +10593,54 @@ async function generateKeyPair2(alg, options) {
10594
10593
  return generateKeyPair(alg, options);
10595
10594
  }
10596
10595
 
10596
+ // ../node_modules/uuid/dist/esm-browser/rng.js
10597
+ var getRandomValues;
10598
+ var rnds8 = new Uint8Array(16);
10599
+ function rng() {
10600
+ if (!getRandomValues) {
10601
+ getRandomValues = typeof crypto !== "undefined" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto);
10602
+ if (!getRandomValues) {
10603
+ throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
10604
+ }
10605
+ }
10606
+ return getRandomValues(rnds8);
10607
+ }
10608
+
10609
+ // ../node_modules/uuid/dist/esm-browser/stringify.js
10610
+ var byteToHex = [];
10611
+ for (let i = 0; i < 256; ++i) {
10612
+ byteToHex.push((i + 256).toString(16).slice(1));
10613
+ }
10614
+ function unsafeStringify(arr, offset3 = 0) {
10615
+ return byteToHex[arr[offset3 + 0]] + byteToHex[arr[offset3 + 1]] + byteToHex[arr[offset3 + 2]] + byteToHex[arr[offset3 + 3]] + "-" + byteToHex[arr[offset3 + 4]] + byteToHex[arr[offset3 + 5]] + "-" + byteToHex[arr[offset3 + 6]] + byteToHex[arr[offset3 + 7]] + "-" + byteToHex[arr[offset3 + 8]] + byteToHex[arr[offset3 + 9]] + "-" + byteToHex[arr[offset3 + 10]] + byteToHex[arr[offset3 + 11]] + byteToHex[arr[offset3 + 12]] + byteToHex[arr[offset3 + 13]] + byteToHex[arr[offset3 + 14]] + byteToHex[arr[offset3 + 15]];
10616
+ }
10617
+
10618
+ // ../node_modules/uuid/dist/esm-browser/native.js
10619
+ var randomUUID = typeof crypto !== "undefined" && crypto.randomUUID && crypto.randomUUID.bind(crypto);
10620
+ var native_default = {
10621
+ randomUUID
10622
+ };
10623
+
10624
+ // ../node_modules/uuid/dist/esm-browser/v4.js
10625
+ function v4(options, buf, offset3) {
10626
+ if (native_default.randomUUID && !buf && !options) {
10627
+ return native_default.randomUUID();
10628
+ }
10629
+ options = options || {};
10630
+ const rnds = options.random || (options.rng || rng)();
10631
+ rnds[6] = rnds[6] & 15 | 64;
10632
+ rnds[8] = rnds[8] & 63 | 128;
10633
+ if (buf) {
10634
+ offset3 = offset3 || 0;
10635
+ for (let i = 0; i < 16; ++i) {
10636
+ buf[offset3 + i] = rnds[i];
10637
+ }
10638
+ return buf;
10639
+ }
10640
+ return unsafeStringify(rnds);
10641
+ }
10642
+ var v4_default = v4;
10643
+
10597
10644
  // ../node_modules/@inrupt/solid-client-authn-core/dist/index.mjs
10598
10645
  var SOLID_CLIENT_AUTHN_KEY_PREFIX = "solidClientAuthn:";
10599
10646
  var PREFERRED_SIGNING_ALG = ["ES256", "RS256"];
@@ -11280,7 +11327,7 @@ async function registerClient(options, issuerConfig) {
11280
11327
  throw new Error("The OIDC issuer discovery profile is missing the 'id_token_signing_alg_values_supported' value, which is mandatory.");
11281
11328
  }
11282
11329
  const signingAlg = determineSigningAlg(issuerConfig.idTokenSigningAlgValuesSupported, PREFERRED_SIGNING_ALG);
11283
- const config = {
11330
+ const config2 = {
11284
11331
  /* eslint-disable camelcase */
11285
11332
  client_name: options.clientName,
11286
11333
  application_type: "web",
@@ -11297,7 +11344,7 @@ async function registerClient(options, issuerConfig) {
11297
11344
  const registerResponse = await fetch(issuerConfig.registrationEndpoint.toString(), {
11298
11345
  method: "POST",
11299
11346
  headers,
11300
- body: JSON.stringify(config)
11347
+ body: JSON.stringify(config2)
11301
11348
  });
11302
11349
  if (registerResponse.ok) {
11303
11350
  const responseBody = await registerResponse.json();
@@ -11794,11 +11841,11 @@ var issuerConfigKeyMap = {
11794
11841
  convertToUrl: true
11795
11842
  }
11796
11843
  };
11797
- function processConfig(config) {
11844
+ function processConfig(config2) {
11798
11845
  const parsedConfig = {};
11799
- Object.keys(config).forEach((key3) => {
11846
+ Object.keys(config2).forEach((key3) => {
11800
11847
  if (issuerConfigKeyMap[key3]) {
11801
- parsedConfig[issuerConfigKeyMap[key3].toKey] = config[key3];
11848
+ parsedConfig[issuerConfigKeyMap[key3].toKey] = config2[key3];
11802
11849
  }
11803
11850
  });
11804
11851
  if (!Array.isArray(parsedConfig.scopesSupported)) {
@@ -12340,6 +12387,1654 @@ var Session = class _Session extends import_events2.default {
12340
12387
  }
12341
12388
  };
12342
12389
 
12390
+ // ../node_modules/tslib/tslib.es6.mjs
12391
+ var extendStatics = function(d, b) {
12392
+ extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
12393
+ d2.__proto__ = b2;
12394
+ } || function(d2, b2) {
12395
+ for (var p in b2)
12396
+ if (Object.prototype.hasOwnProperty.call(b2, p))
12397
+ d2[p] = b2[p];
12398
+ };
12399
+ return extendStatics(d, b);
12400
+ };
12401
+ function __extends(d, b) {
12402
+ if (typeof b !== "function" && b !== null)
12403
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
12404
+ extendStatics(d, b);
12405
+ function __() {
12406
+ this.constructor = d;
12407
+ }
12408
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
12409
+ }
12410
+ function __awaiter(thisArg, _arguments, P, generator3) {
12411
+ function adopt(value6) {
12412
+ return value6 instanceof P ? value6 : new P(function(resolve) {
12413
+ resolve(value6);
12414
+ });
12415
+ }
12416
+ return new (P || (P = Promise))(function(resolve, reject2) {
12417
+ function fulfilled(value6) {
12418
+ try {
12419
+ step4(generator3.next(value6));
12420
+ } catch (e) {
12421
+ reject2(e);
12422
+ }
12423
+ }
12424
+ function rejected(value6) {
12425
+ try {
12426
+ step4(generator3["throw"](value6));
12427
+ } catch (e) {
12428
+ reject2(e);
12429
+ }
12430
+ }
12431
+ function step4(result5) {
12432
+ result5.done ? resolve(result5.value) : adopt(result5.value).then(fulfilled, rejected);
12433
+ }
12434
+ step4((generator3 = generator3.apply(thisArg, _arguments || [])).next());
12435
+ });
12436
+ }
12437
+ function __generator(thisArg, body) {
12438
+ var _ = { label: 0, sent: function() {
12439
+ if (t[0] & 1)
12440
+ throw t[1];
12441
+ return t[1];
12442
+ }, trys: [], ops: [] }, f, y, t, g;
12443
+ return g = { next: verb2(0), "throw": verb2(1), "return": verb2(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() {
12444
+ return this;
12445
+ }), g;
12446
+ function verb2(n2) {
12447
+ return function(v2) {
12448
+ return step4([n2, v2]);
12449
+ };
12450
+ }
12451
+ function step4(op2) {
12452
+ if (f)
12453
+ throw new TypeError("Generator is already executing.");
12454
+ while (g && (g = 0, op2[0] && (_ = 0)), _)
12455
+ try {
12456
+ if (f = 1, y && (t = op2[0] & 2 ? y["return"] : op2[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op2[1])).done)
12457
+ return t;
12458
+ if (y = 0, t)
12459
+ op2 = [op2[0] & 2, t.value];
12460
+ switch (op2[0]) {
12461
+ case 0:
12462
+ case 1:
12463
+ t = op2;
12464
+ break;
12465
+ case 4:
12466
+ _.label++;
12467
+ return { value: op2[1], done: false };
12468
+ case 5:
12469
+ _.label++;
12470
+ y = op2[1];
12471
+ op2 = [0];
12472
+ continue;
12473
+ case 7:
12474
+ op2 = _.ops.pop();
12475
+ _.trys.pop();
12476
+ continue;
12477
+ default:
12478
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op2[0] === 6 || op2[0] === 2)) {
12479
+ _ = 0;
12480
+ continue;
12481
+ }
12482
+ if (op2[0] === 3 && (!t || op2[1] > t[0] && op2[1] < t[3])) {
12483
+ _.label = op2[1];
12484
+ break;
12485
+ }
12486
+ if (op2[0] === 6 && _.label < t[1]) {
12487
+ _.label = t[1];
12488
+ t = op2;
12489
+ break;
12490
+ }
12491
+ if (t && _.label < t[2]) {
12492
+ _.label = t[2];
12493
+ _.ops.push(op2);
12494
+ break;
12495
+ }
12496
+ if (t[2])
12497
+ _.ops.pop();
12498
+ _.trys.pop();
12499
+ continue;
12500
+ }
12501
+ op2 = body.call(thisArg, _);
12502
+ } catch (e) {
12503
+ op2 = [6, e];
12504
+ y = 0;
12505
+ } finally {
12506
+ f = t = 0;
12507
+ }
12508
+ if (op2[0] & 5)
12509
+ throw op2[1];
12510
+ return { value: op2[0] ? op2[1] : void 0, done: true };
12511
+ }
12512
+ }
12513
+ function __values(o) {
12514
+ var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
12515
+ if (m)
12516
+ return m.call(o);
12517
+ if (o && typeof o.length === "number")
12518
+ return {
12519
+ next: function() {
12520
+ if (o && i >= o.length)
12521
+ o = void 0;
12522
+ return { value: o && o[i++], done: !o };
12523
+ }
12524
+ };
12525
+ throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
12526
+ }
12527
+ function __read(o, n2) {
12528
+ var m = typeof Symbol === "function" && o[Symbol.iterator];
12529
+ if (!m)
12530
+ return o;
12531
+ var i = m.call(o), r, ar = [], e;
12532
+ try {
12533
+ while ((n2 === void 0 || n2-- > 0) && !(r = i.next()).done)
12534
+ ar.push(r.value);
12535
+ } catch (error4) {
12536
+ e = { error: error4 };
12537
+ } finally {
12538
+ try {
12539
+ if (r && !r.done && (m = i["return"]))
12540
+ m.call(i);
12541
+ } finally {
12542
+ if (e)
12543
+ throw e.error;
12544
+ }
12545
+ }
12546
+ return ar;
12547
+ }
12548
+ function __spreadArray(to2, from2, pack) {
12549
+ if (pack || arguments.length === 2)
12550
+ for (var i = 0, l = from2.length, ar; i < l; i++) {
12551
+ if (ar || !(i in from2)) {
12552
+ if (!ar)
12553
+ ar = Array.prototype.slice.call(from2, 0, i);
12554
+ ar[i] = from2[i];
12555
+ }
12556
+ }
12557
+ return to2.concat(ar || Array.prototype.slice.call(from2));
12558
+ }
12559
+ function __await(v2) {
12560
+ return this instanceof __await ? (this.v = v2, this) : new __await(v2);
12561
+ }
12562
+ function __asyncGenerator(thisArg, _arguments, generator3) {
12563
+ if (!Symbol.asyncIterator)
12564
+ throw new TypeError("Symbol.asyncIterator is not defined.");
12565
+ var g = generator3.apply(thisArg, _arguments || []), i, q = [];
12566
+ return i = {}, verb2("next"), verb2("throw"), verb2("return"), i[Symbol.asyncIterator] = function() {
12567
+ return this;
12568
+ }, i;
12569
+ function verb2(n2) {
12570
+ if (g[n2])
12571
+ i[n2] = function(v2) {
12572
+ return new Promise(function(a, b) {
12573
+ q.push([n2, v2, a, b]) > 1 || resume(n2, v2);
12574
+ });
12575
+ };
12576
+ }
12577
+ function resume(n2, v2) {
12578
+ try {
12579
+ step4(g[n2](v2));
12580
+ } catch (e) {
12581
+ settle(q[0][3], e);
12582
+ }
12583
+ }
12584
+ function step4(r) {
12585
+ r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject2) : settle(q[0][2], r);
12586
+ }
12587
+ function fulfill(value6) {
12588
+ resume("next", value6);
12589
+ }
12590
+ function reject2(value6) {
12591
+ resume("throw", value6);
12592
+ }
12593
+ function settle(f, v2) {
12594
+ if (f(v2), q.shift(), q.length)
12595
+ resume(q[0][0], q[0][1]);
12596
+ }
12597
+ }
12598
+ function __asyncValues(o) {
12599
+ if (!Symbol.asyncIterator)
12600
+ throw new TypeError("Symbol.asyncIterator is not defined.");
12601
+ var m = o[Symbol.asyncIterator], i;
12602
+ return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb2("next"), verb2("throw"), verb2("return"), i[Symbol.asyncIterator] = function() {
12603
+ return this;
12604
+ }, i);
12605
+ function verb2(n2) {
12606
+ i[n2] = o[n2] && function(v2) {
12607
+ return new Promise(function(resolve, reject2) {
12608
+ v2 = o[n2](v2), settle(resolve, reject2, v2.done, v2.value);
12609
+ });
12610
+ };
12611
+ }
12612
+ function settle(resolve, reject2, d, v2) {
12613
+ Promise.resolve(v2).then(function(v3) {
12614
+ resolve({ value: v3, done: d });
12615
+ }, reject2);
12616
+ }
12617
+ }
12618
+
12619
+ // ../node_modules/rxjs/dist/esm5/internal/util/isFunction.js
12620
+ function isFunction(value6) {
12621
+ return typeof value6 === "function";
12622
+ }
12623
+
12624
+ // ../node_modules/rxjs/dist/esm5/internal/util/createErrorClass.js
12625
+ function createErrorClass(createImpl) {
12626
+ var _super = function(instance3) {
12627
+ Error.call(instance3);
12628
+ instance3.stack = new Error().stack;
12629
+ };
12630
+ var ctorFunc = createImpl(_super);
12631
+ ctorFunc.prototype = Object.create(Error.prototype);
12632
+ ctorFunc.prototype.constructor = ctorFunc;
12633
+ return ctorFunc;
12634
+ }
12635
+
12636
+ // ../node_modules/rxjs/dist/esm5/internal/util/UnsubscriptionError.js
12637
+ var UnsubscriptionError = createErrorClass(function(_super) {
12638
+ return function UnsubscriptionErrorImpl(errors) {
12639
+ _super(this);
12640
+ this.message = errors ? errors.length + " errors occurred during unsubscription:\n" + errors.map(function(err, i) {
12641
+ return i + 1 + ") " + err.toString();
12642
+ }).join("\n ") : "";
12643
+ this.name = "UnsubscriptionError";
12644
+ this.errors = errors;
12645
+ };
12646
+ });
12647
+
12648
+ // ../node_modules/rxjs/dist/esm5/internal/util/arrRemove.js
12649
+ function arrRemove(arr, item4) {
12650
+ if (arr) {
12651
+ var index2 = arr.indexOf(item4);
12652
+ 0 <= index2 && arr.splice(index2, 1);
12653
+ }
12654
+ }
12655
+
12656
+ // ../node_modules/rxjs/dist/esm5/internal/Subscription.js
12657
+ var Subscription = function() {
12658
+ function Subscription3(initialTeardown) {
12659
+ this.initialTeardown = initialTeardown;
12660
+ this.closed = false;
12661
+ this._parentage = null;
12662
+ this._finalizers = null;
12663
+ }
12664
+ Subscription3.prototype.unsubscribe = function() {
12665
+ var e_1, _a, e_2, _b;
12666
+ var errors;
12667
+ if (!this.closed) {
12668
+ this.closed = true;
12669
+ var _parentage = this._parentage;
12670
+ if (_parentage) {
12671
+ this._parentage = null;
12672
+ if (Array.isArray(_parentage)) {
12673
+ try {
12674
+ for (var _parentage_1 = __values(_parentage), _parentage_1_1 = _parentage_1.next(); !_parentage_1_1.done; _parentage_1_1 = _parentage_1.next()) {
12675
+ var parent_1 = _parentage_1_1.value;
12676
+ parent_1.remove(this);
12677
+ }
12678
+ } catch (e_1_1) {
12679
+ e_1 = { error: e_1_1 };
12680
+ } finally {
12681
+ try {
12682
+ if (_parentage_1_1 && !_parentage_1_1.done && (_a = _parentage_1.return))
12683
+ _a.call(_parentage_1);
12684
+ } finally {
12685
+ if (e_1)
12686
+ throw e_1.error;
12687
+ }
12688
+ }
12689
+ } else {
12690
+ _parentage.remove(this);
12691
+ }
12692
+ }
12693
+ var initialFinalizer = this.initialTeardown;
12694
+ if (isFunction(initialFinalizer)) {
12695
+ try {
12696
+ initialFinalizer();
12697
+ } catch (e) {
12698
+ errors = e instanceof UnsubscriptionError ? e.errors : [e];
12699
+ }
12700
+ }
12701
+ var _finalizers = this._finalizers;
12702
+ if (_finalizers) {
12703
+ this._finalizers = null;
12704
+ try {
12705
+ for (var _finalizers_1 = __values(_finalizers), _finalizers_1_1 = _finalizers_1.next(); !_finalizers_1_1.done; _finalizers_1_1 = _finalizers_1.next()) {
12706
+ var finalizer = _finalizers_1_1.value;
12707
+ try {
12708
+ execFinalizer(finalizer);
12709
+ } catch (err) {
12710
+ errors = errors !== null && errors !== void 0 ? errors : [];
12711
+ if (err instanceof UnsubscriptionError) {
12712
+ errors = __spreadArray(__spreadArray([], __read(errors)), __read(err.errors));
12713
+ } else {
12714
+ errors.push(err);
12715
+ }
12716
+ }
12717
+ }
12718
+ } catch (e_2_1) {
12719
+ e_2 = { error: e_2_1 };
12720
+ } finally {
12721
+ try {
12722
+ if (_finalizers_1_1 && !_finalizers_1_1.done && (_b = _finalizers_1.return))
12723
+ _b.call(_finalizers_1);
12724
+ } finally {
12725
+ if (e_2)
12726
+ throw e_2.error;
12727
+ }
12728
+ }
12729
+ }
12730
+ if (errors) {
12731
+ throw new UnsubscriptionError(errors);
12732
+ }
12733
+ }
12734
+ };
12735
+ Subscription3.prototype.add = function(teardown2) {
12736
+ var _a;
12737
+ if (teardown2 && teardown2 !== this) {
12738
+ if (this.closed) {
12739
+ execFinalizer(teardown2);
12740
+ } else {
12741
+ if (teardown2 instanceof Subscription3) {
12742
+ if (teardown2.closed || teardown2._hasParent(this)) {
12743
+ return;
12744
+ }
12745
+ teardown2._addParent(this);
12746
+ }
12747
+ (this._finalizers = (_a = this._finalizers) !== null && _a !== void 0 ? _a : []).push(teardown2);
12748
+ }
12749
+ }
12750
+ };
12751
+ Subscription3.prototype._hasParent = function(parent4) {
12752
+ var _parentage = this._parentage;
12753
+ return _parentage === parent4 || Array.isArray(_parentage) && _parentage.includes(parent4);
12754
+ };
12755
+ Subscription3.prototype._addParent = function(parent4) {
12756
+ var _parentage = this._parentage;
12757
+ this._parentage = Array.isArray(_parentage) ? (_parentage.push(parent4), _parentage) : _parentage ? [_parentage, parent4] : parent4;
12758
+ };
12759
+ Subscription3.prototype._removeParent = function(parent4) {
12760
+ var _parentage = this._parentage;
12761
+ if (_parentage === parent4) {
12762
+ this._parentage = null;
12763
+ } else if (Array.isArray(_parentage)) {
12764
+ arrRemove(_parentage, parent4);
12765
+ }
12766
+ };
12767
+ Subscription3.prototype.remove = function(teardown2) {
12768
+ var _finalizers = this._finalizers;
12769
+ _finalizers && arrRemove(_finalizers, teardown2);
12770
+ if (teardown2 instanceof Subscription3) {
12771
+ teardown2._removeParent(this);
12772
+ }
12773
+ };
12774
+ Subscription3.EMPTY = function() {
12775
+ var empty = new Subscription3();
12776
+ empty.closed = true;
12777
+ return empty;
12778
+ }();
12779
+ return Subscription3;
12780
+ }();
12781
+ var EMPTY_SUBSCRIPTION = Subscription.EMPTY;
12782
+ function isSubscription(value6) {
12783
+ return value6 instanceof Subscription || value6 && "closed" in value6 && isFunction(value6.remove) && isFunction(value6.add) && isFunction(value6.unsubscribe);
12784
+ }
12785
+ function execFinalizer(finalizer) {
12786
+ if (isFunction(finalizer)) {
12787
+ finalizer();
12788
+ } else {
12789
+ finalizer.unsubscribe();
12790
+ }
12791
+ }
12792
+
12793
+ // ../node_modules/rxjs/dist/esm5/internal/config.js
12794
+ var config = {
12795
+ onUnhandledError: null,
12796
+ onStoppedNotification: null,
12797
+ Promise: void 0,
12798
+ useDeprecatedSynchronousErrorHandling: false,
12799
+ useDeprecatedNextContext: false
12800
+ };
12801
+
12802
+ // ../node_modules/rxjs/dist/esm5/internal/scheduler/timeoutProvider.js
12803
+ var timeoutProvider = {
12804
+ setTimeout: function(handler, timeout2) {
12805
+ var args = [];
12806
+ for (var _i = 2; _i < arguments.length; _i++) {
12807
+ args[_i - 2] = arguments[_i];
12808
+ }
12809
+ var delegate = timeoutProvider.delegate;
12810
+ if (delegate === null || delegate === void 0 ? void 0 : delegate.setTimeout) {
12811
+ return delegate.setTimeout.apply(delegate, __spreadArray([handler, timeout2], __read(args)));
12812
+ }
12813
+ return setTimeout.apply(void 0, __spreadArray([handler, timeout2], __read(args)));
12814
+ },
12815
+ clearTimeout: function(handle) {
12816
+ var delegate = timeoutProvider.delegate;
12817
+ return ((delegate === null || delegate === void 0 ? void 0 : delegate.clearTimeout) || clearTimeout)(handle);
12818
+ },
12819
+ delegate: void 0
12820
+ };
12821
+
12822
+ // ../node_modules/rxjs/dist/esm5/internal/util/reportUnhandledError.js
12823
+ function reportUnhandledError(err) {
12824
+ timeoutProvider.setTimeout(function() {
12825
+ var onUnhandledError = config.onUnhandledError;
12826
+ if (onUnhandledError) {
12827
+ onUnhandledError(err);
12828
+ } else {
12829
+ throw err;
12830
+ }
12831
+ });
12832
+ }
12833
+
12834
+ // ../node_modules/rxjs/dist/esm5/internal/util/noop.js
12835
+ function noop() {
12836
+ }
12837
+
12838
+ // ../node_modules/rxjs/dist/esm5/internal/NotificationFactories.js
12839
+ var COMPLETE_NOTIFICATION = function() {
12840
+ return createNotification("C", void 0, void 0);
12841
+ }();
12842
+ function errorNotification(error4) {
12843
+ return createNotification("E", void 0, error4);
12844
+ }
12845
+ function nextNotification(value6) {
12846
+ return createNotification("N", value6, void 0);
12847
+ }
12848
+ function createNotification(kind2, value6, error4) {
12849
+ return {
12850
+ kind: kind2,
12851
+ value: value6,
12852
+ error: error4
12853
+ };
12854
+ }
12855
+
12856
+ // ../node_modules/rxjs/dist/esm5/internal/util/errorContext.js
12857
+ var context = null;
12858
+ function errorContext(cb) {
12859
+ if (config.useDeprecatedSynchronousErrorHandling) {
12860
+ var isRoot = !context;
12861
+ if (isRoot) {
12862
+ context = { errorThrown: false, error: null };
12863
+ }
12864
+ cb();
12865
+ if (isRoot) {
12866
+ var _a = context, errorThrown = _a.errorThrown, error4 = _a.error;
12867
+ context = null;
12868
+ if (errorThrown) {
12869
+ throw error4;
12870
+ }
12871
+ }
12872
+ } else {
12873
+ cb();
12874
+ }
12875
+ }
12876
+ function captureError(err) {
12877
+ if (config.useDeprecatedSynchronousErrorHandling && context) {
12878
+ context.errorThrown = true;
12879
+ context.error = err;
12880
+ }
12881
+ }
12882
+
12883
+ // ../node_modules/rxjs/dist/esm5/internal/Subscriber.js
12884
+ var Subscriber = function(_super) {
12885
+ __extends(Subscriber2, _super);
12886
+ function Subscriber2(destination2) {
12887
+ var _this = _super.call(this) || this;
12888
+ _this.isStopped = false;
12889
+ if (destination2) {
12890
+ _this.destination = destination2;
12891
+ if (isSubscription(destination2)) {
12892
+ destination2.add(_this);
12893
+ }
12894
+ } else {
12895
+ _this.destination = EMPTY_OBSERVER;
12896
+ }
12897
+ return _this;
12898
+ }
12899
+ Subscriber2.create = function(next3, error4, complete2) {
12900
+ return new SafeSubscriber(next3, error4, complete2);
12901
+ };
12902
+ Subscriber2.prototype.next = function(value6) {
12903
+ if (this.isStopped) {
12904
+ handleStoppedNotification(nextNotification(value6), this);
12905
+ } else {
12906
+ this._next(value6);
12907
+ }
12908
+ };
12909
+ Subscriber2.prototype.error = function(err) {
12910
+ if (this.isStopped) {
12911
+ handleStoppedNotification(errorNotification(err), this);
12912
+ } else {
12913
+ this.isStopped = true;
12914
+ this._error(err);
12915
+ }
12916
+ };
12917
+ Subscriber2.prototype.complete = function() {
12918
+ if (this.isStopped) {
12919
+ handleStoppedNotification(COMPLETE_NOTIFICATION, this);
12920
+ } else {
12921
+ this.isStopped = true;
12922
+ this._complete();
12923
+ }
12924
+ };
12925
+ Subscriber2.prototype.unsubscribe = function() {
12926
+ if (!this.closed) {
12927
+ this.isStopped = true;
12928
+ _super.prototype.unsubscribe.call(this);
12929
+ this.destination = null;
12930
+ }
12931
+ };
12932
+ Subscriber2.prototype._next = function(value6) {
12933
+ this.destination.next(value6);
12934
+ };
12935
+ Subscriber2.prototype._error = function(err) {
12936
+ try {
12937
+ this.destination.error(err);
12938
+ } finally {
12939
+ this.unsubscribe();
12940
+ }
12941
+ };
12942
+ Subscriber2.prototype._complete = function() {
12943
+ try {
12944
+ this.destination.complete();
12945
+ } finally {
12946
+ this.unsubscribe();
12947
+ }
12948
+ };
12949
+ return Subscriber2;
12950
+ }(Subscription);
12951
+ var _bind = Function.prototype.bind;
12952
+ function bind(fn2, thisArg) {
12953
+ return _bind.call(fn2, thisArg);
12954
+ }
12955
+ var ConsumerObserver = function() {
12956
+ function ConsumerObserver2(partialObserver) {
12957
+ this.partialObserver = partialObserver;
12958
+ }
12959
+ ConsumerObserver2.prototype.next = function(value6) {
12960
+ var partialObserver = this.partialObserver;
12961
+ if (partialObserver.next) {
12962
+ try {
12963
+ partialObserver.next(value6);
12964
+ } catch (error4) {
12965
+ handleUnhandledError(error4);
12966
+ }
12967
+ }
12968
+ };
12969
+ ConsumerObserver2.prototype.error = function(err) {
12970
+ var partialObserver = this.partialObserver;
12971
+ if (partialObserver.error) {
12972
+ try {
12973
+ partialObserver.error(err);
12974
+ } catch (error4) {
12975
+ handleUnhandledError(error4);
12976
+ }
12977
+ } else {
12978
+ handleUnhandledError(err);
12979
+ }
12980
+ };
12981
+ ConsumerObserver2.prototype.complete = function() {
12982
+ var partialObserver = this.partialObserver;
12983
+ if (partialObserver.complete) {
12984
+ try {
12985
+ partialObserver.complete();
12986
+ } catch (error4) {
12987
+ handleUnhandledError(error4);
12988
+ }
12989
+ }
12990
+ };
12991
+ return ConsumerObserver2;
12992
+ }();
12993
+ var SafeSubscriber = function(_super) {
12994
+ __extends(SafeSubscriber2, _super);
12995
+ function SafeSubscriber2(observerOrNext, error4, complete2) {
12996
+ var _this = _super.call(this) || this;
12997
+ var partialObserver;
12998
+ if (isFunction(observerOrNext) || !observerOrNext) {
12999
+ partialObserver = {
13000
+ next: observerOrNext !== null && observerOrNext !== void 0 ? observerOrNext : void 0,
13001
+ error: error4 !== null && error4 !== void 0 ? error4 : void 0,
13002
+ complete: complete2 !== null && complete2 !== void 0 ? complete2 : void 0
13003
+ };
13004
+ } else {
13005
+ var context_1;
13006
+ if (_this && config.useDeprecatedNextContext) {
13007
+ context_1 = Object.create(observerOrNext);
13008
+ context_1.unsubscribe = function() {
13009
+ return _this.unsubscribe();
13010
+ };
13011
+ partialObserver = {
13012
+ next: observerOrNext.next && bind(observerOrNext.next, context_1),
13013
+ error: observerOrNext.error && bind(observerOrNext.error, context_1),
13014
+ complete: observerOrNext.complete && bind(observerOrNext.complete, context_1)
13015
+ };
13016
+ } else {
13017
+ partialObserver = observerOrNext;
13018
+ }
13019
+ }
13020
+ _this.destination = new ConsumerObserver(partialObserver);
13021
+ return _this;
13022
+ }
13023
+ return SafeSubscriber2;
13024
+ }(Subscriber);
13025
+ function handleUnhandledError(error4) {
13026
+ if (config.useDeprecatedSynchronousErrorHandling) {
13027
+ captureError(error4);
13028
+ } else {
13029
+ reportUnhandledError(error4);
13030
+ }
13031
+ }
13032
+ function defaultErrorHandler(err) {
13033
+ throw err;
13034
+ }
13035
+ function handleStoppedNotification(notification2, subscriber3) {
13036
+ var onStoppedNotification = config.onStoppedNotification;
13037
+ onStoppedNotification && timeoutProvider.setTimeout(function() {
13038
+ return onStoppedNotification(notification2, subscriber3);
13039
+ });
13040
+ }
13041
+ var EMPTY_OBSERVER = {
13042
+ closed: true,
13043
+ next: noop,
13044
+ error: defaultErrorHandler,
13045
+ complete: noop
13046
+ };
13047
+
13048
+ // ../node_modules/rxjs/dist/esm5/internal/symbol/observable.js
13049
+ var observable = function() {
13050
+ return typeof Symbol === "function" && Symbol.observable || "@@observable";
13051
+ }();
13052
+
13053
+ // ../node_modules/rxjs/dist/esm5/internal/util/identity.js
13054
+ function identity(x) {
13055
+ return x;
13056
+ }
13057
+
13058
+ // ../node_modules/rxjs/dist/esm5/internal/util/pipe.js
13059
+ function pipeFromArray(fns) {
13060
+ if (fns.length === 0) {
13061
+ return identity;
13062
+ }
13063
+ if (fns.length === 1) {
13064
+ return fns[0];
13065
+ }
13066
+ return function piped(input2) {
13067
+ return fns.reduce(function(prev, fn2) {
13068
+ return fn2(prev);
13069
+ }, input2);
13070
+ };
13071
+ }
13072
+
13073
+ // ../node_modules/rxjs/dist/esm5/internal/Observable.js
13074
+ var Observable = function() {
13075
+ function Observable2(subscribe) {
13076
+ if (subscribe) {
13077
+ this._subscribe = subscribe;
13078
+ }
13079
+ }
13080
+ Observable2.prototype.lift = function(operator2) {
13081
+ var observable2 = new Observable2();
13082
+ observable2.source = this;
13083
+ observable2.operator = operator2;
13084
+ return observable2;
13085
+ };
13086
+ Observable2.prototype.subscribe = function(observerOrNext, error4, complete2) {
13087
+ var _this = this;
13088
+ var subscriber3 = isSubscriber(observerOrNext) ? observerOrNext : new SafeSubscriber(observerOrNext, error4, complete2);
13089
+ errorContext(function() {
13090
+ var _a = _this, operator2 = _a.operator, source8 = _a.source;
13091
+ subscriber3.add(operator2 ? operator2.call(subscriber3, source8) : source8 ? _this._subscribe(subscriber3) : _this._trySubscribe(subscriber3));
13092
+ });
13093
+ return subscriber3;
13094
+ };
13095
+ Observable2.prototype._trySubscribe = function(sink) {
13096
+ try {
13097
+ return this._subscribe(sink);
13098
+ } catch (err) {
13099
+ sink.error(err);
13100
+ }
13101
+ };
13102
+ Observable2.prototype.forEach = function(next3, promiseCtor) {
13103
+ var _this = this;
13104
+ promiseCtor = getPromiseCtor(promiseCtor);
13105
+ return new promiseCtor(function(resolve, reject2) {
13106
+ var subscriber3 = new SafeSubscriber({
13107
+ next: function(value6) {
13108
+ try {
13109
+ next3(value6);
13110
+ } catch (err) {
13111
+ reject2(err);
13112
+ subscriber3.unsubscribe();
13113
+ }
13114
+ },
13115
+ error: reject2,
13116
+ complete: resolve
13117
+ });
13118
+ _this.subscribe(subscriber3);
13119
+ });
13120
+ };
13121
+ Observable2.prototype._subscribe = function(subscriber3) {
13122
+ var _a;
13123
+ return (_a = this.source) === null || _a === void 0 ? void 0 : _a.subscribe(subscriber3);
13124
+ };
13125
+ Observable2.prototype[observable] = function() {
13126
+ return this;
13127
+ };
13128
+ Observable2.prototype.pipe = function() {
13129
+ var operations = [];
13130
+ for (var _i = 0; _i < arguments.length; _i++) {
13131
+ operations[_i] = arguments[_i];
13132
+ }
13133
+ return pipeFromArray(operations)(this);
13134
+ };
13135
+ Observable2.prototype.toPromise = function(promiseCtor) {
13136
+ var _this = this;
13137
+ promiseCtor = getPromiseCtor(promiseCtor);
13138
+ return new promiseCtor(function(resolve, reject2) {
13139
+ var value6;
13140
+ _this.subscribe(function(x) {
13141
+ return value6 = x;
13142
+ }, function(err) {
13143
+ return reject2(err);
13144
+ }, function() {
13145
+ return resolve(value6);
13146
+ });
13147
+ });
13148
+ };
13149
+ Observable2.create = function(subscribe) {
13150
+ return new Observable2(subscribe);
13151
+ };
13152
+ return Observable2;
13153
+ }();
13154
+ function getPromiseCtor(promiseCtor) {
13155
+ var _a;
13156
+ return (_a = promiseCtor !== null && promiseCtor !== void 0 ? promiseCtor : config.Promise) !== null && _a !== void 0 ? _a : Promise;
13157
+ }
13158
+ function isObserver(value6) {
13159
+ return value6 && isFunction(value6.next) && isFunction(value6.error) && isFunction(value6.complete);
13160
+ }
13161
+ function isSubscriber(value6) {
13162
+ return value6 && value6 instanceof Subscriber || isObserver(value6) && isSubscription(value6);
13163
+ }
13164
+
13165
+ // ../node_modules/rxjs/dist/esm5/internal/util/lift.js
13166
+ function hasLift(source8) {
13167
+ return isFunction(source8 === null || source8 === void 0 ? void 0 : source8.lift);
13168
+ }
13169
+ function operate(init) {
13170
+ return function(source8) {
13171
+ if (hasLift(source8)) {
13172
+ return source8.lift(function(liftedSource) {
13173
+ try {
13174
+ return init(liftedSource, this);
13175
+ } catch (err) {
13176
+ this.error(err);
13177
+ }
13178
+ });
13179
+ }
13180
+ throw new TypeError("Unable to lift unknown Observable type");
13181
+ };
13182
+ }
13183
+
13184
+ // ../node_modules/rxjs/dist/esm5/internal/operators/OperatorSubscriber.js
13185
+ function createOperatorSubscriber(destination2, onNext, onComplete, onError, onFinalize) {
13186
+ return new OperatorSubscriber(destination2, onNext, onComplete, onError, onFinalize);
13187
+ }
13188
+ var OperatorSubscriber = function(_super) {
13189
+ __extends(OperatorSubscriber2, _super);
13190
+ function OperatorSubscriber2(destination2, onNext, onComplete, onError, onFinalize, shouldUnsubscribe) {
13191
+ var _this = _super.call(this, destination2) || this;
13192
+ _this.onFinalize = onFinalize;
13193
+ _this.shouldUnsubscribe = shouldUnsubscribe;
13194
+ _this._next = onNext ? function(value6) {
13195
+ try {
13196
+ onNext(value6);
13197
+ } catch (err) {
13198
+ destination2.error(err);
13199
+ }
13200
+ } : _super.prototype._next;
13201
+ _this._error = onError ? function(err) {
13202
+ try {
13203
+ onError(err);
13204
+ } catch (err2) {
13205
+ destination2.error(err2);
13206
+ } finally {
13207
+ this.unsubscribe();
13208
+ }
13209
+ } : _super.prototype._error;
13210
+ _this._complete = onComplete ? function() {
13211
+ try {
13212
+ onComplete();
13213
+ } catch (err) {
13214
+ destination2.error(err);
13215
+ } finally {
13216
+ this.unsubscribe();
13217
+ }
13218
+ } : _super.prototype._complete;
13219
+ return _this;
13220
+ }
13221
+ OperatorSubscriber2.prototype.unsubscribe = function() {
13222
+ var _a;
13223
+ if (!this.shouldUnsubscribe || this.shouldUnsubscribe()) {
13224
+ var closed_1 = this.closed;
13225
+ _super.prototype.unsubscribe.call(this);
13226
+ !closed_1 && ((_a = this.onFinalize) === null || _a === void 0 ? void 0 : _a.call(this));
13227
+ }
13228
+ };
13229
+ return OperatorSubscriber2;
13230
+ }(Subscriber);
13231
+
13232
+ // ../node_modules/rxjs/dist/esm5/internal/util/ObjectUnsubscribedError.js
13233
+ var ObjectUnsubscribedError = createErrorClass(function(_super) {
13234
+ return function ObjectUnsubscribedErrorImpl() {
13235
+ _super(this);
13236
+ this.name = "ObjectUnsubscribedError";
13237
+ this.message = "object unsubscribed";
13238
+ };
13239
+ });
13240
+
13241
+ // ../node_modules/rxjs/dist/esm5/internal/Subject.js
13242
+ var Subject = function(_super) {
13243
+ __extends(Subject2, _super);
13244
+ function Subject2() {
13245
+ var _this = _super.call(this) || this;
13246
+ _this.closed = false;
13247
+ _this.currentObservers = null;
13248
+ _this.observers = [];
13249
+ _this.isStopped = false;
13250
+ _this.hasError = false;
13251
+ _this.thrownError = null;
13252
+ return _this;
13253
+ }
13254
+ Subject2.prototype.lift = function(operator2) {
13255
+ var subject5 = new AnonymousSubject(this, this);
13256
+ subject5.operator = operator2;
13257
+ return subject5;
13258
+ };
13259
+ Subject2.prototype._throwIfClosed = function() {
13260
+ if (this.closed) {
13261
+ throw new ObjectUnsubscribedError();
13262
+ }
13263
+ };
13264
+ Subject2.prototype.next = function(value6) {
13265
+ var _this = this;
13266
+ errorContext(function() {
13267
+ var e_1, _a;
13268
+ _this._throwIfClosed();
13269
+ if (!_this.isStopped) {
13270
+ if (!_this.currentObservers) {
13271
+ _this.currentObservers = Array.from(_this.observers);
13272
+ }
13273
+ try {
13274
+ for (var _b = __values(_this.currentObservers), _c = _b.next(); !_c.done; _c = _b.next()) {
13275
+ var observer2 = _c.value;
13276
+ observer2.next(value6);
13277
+ }
13278
+ } catch (e_1_1) {
13279
+ e_1 = { error: e_1_1 };
13280
+ } finally {
13281
+ try {
13282
+ if (_c && !_c.done && (_a = _b.return))
13283
+ _a.call(_b);
13284
+ } finally {
13285
+ if (e_1)
13286
+ throw e_1.error;
13287
+ }
13288
+ }
13289
+ }
13290
+ });
13291
+ };
13292
+ Subject2.prototype.error = function(err) {
13293
+ var _this = this;
13294
+ errorContext(function() {
13295
+ _this._throwIfClosed();
13296
+ if (!_this.isStopped) {
13297
+ _this.hasError = _this.isStopped = true;
13298
+ _this.thrownError = err;
13299
+ var observers = _this.observers;
13300
+ while (observers.length) {
13301
+ observers.shift().error(err);
13302
+ }
13303
+ }
13304
+ });
13305
+ };
13306
+ Subject2.prototype.complete = function() {
13307
+ var _this = this;
13308
+ errorContext(function() {
13309
+ _this._throwIfClosed();
13310
+ if (!_this.isStopped) {
13311
+ _this.isStopped = true;
13312
+ var observers = _this.observers;
13313
+ while (observers.length) {
13314
+ observers.shift().complete();
13315
+ }
13316
+ }
13317
+ });
13318
+ };
13319
+ Subject2.prototype.unsubscribe = function() {
13320
+ this.isStopped = this.closed = true;
13321
+ this.observers = this.currentObservers = null;
13322
+ };
13323
+ Object.defineProperty(Subject2.prototype, "observed", {
13324
+ get: function() {
13325
+ var _a;
13326
+ return ((_a = this.observers) === null || _a === void 0 ? void 0 : _a.length) > 0;
13327
+ },
13328
+ enumerable: false,
13329
+ configurable: true
13330
+ });
13331
+ Subject2.prototype._trySubscribe = function(subscriber3) {
13332
+ this._throwIfClosed();
13333
+ return _super.prototype._trySubscribe.call(this, subscriber3);
13334
+ };
13335
+ Subject2.prototype._subscribe = function(subscriber3) {
13336
+ this._throwIfClosed();
13337
+ this._checkFinalizedStatuses(subscriber3);
13338
+ return this._innerSubscribe(subscriber3);
13339
+ };
13340
+ Subject2.prototype._innerSubscribe = function(subscriber3) {
13341
+ var _this = this;
13342
+ var _a = this, hasError2 = _a.hasError, isStopped = _a.isStopped, observers = _a.observers;
13343
+ if (hasError2 || isStopped) {
13344
+ return EMPTY_SUBSCRIPTION;
13345
+ }
13346
+ this.currentObservers = null;
13347
+ observers.push(subscriber3);
13348
+ return new Subscription(function() {
13349
+ _this.currentObservers = null;
13350
+ arrRemove(observers, subscriber3);
13351
+ });
13352
+ };
13353
+ Subject2.prototype._checkFinalizedStatuses = function(subscriber3) {
13354
+ var _a = this, hasError2 = _a.hasError, thrownError = _a.thrownError, isStopped = _a.isStopped;
13355
+ if (hasError2) {
13356
+ subscriber3.error(thrownError);
13357
+ } else if (isStopped) {
13358
+ subscriber3.complete();
13359
+ }
13360
+ };
13361
+ Subject2.prototype.asObservable = function() {
13362
+ var observable2 = new Observable();
13363
+ observable2.source = this;
13364
+ return observable2;
13365
+ };
13366
+ Subject2.create = function(destination2, source8) {
13367
+ return new AnonymousSubject(destination2, source8);
13368
+ };
13369
+ return Subject2;
13370
+ }(Observable);
13371
+ var AnonymousSubject = function(_super) {
13372
+ __extends(AnonymousSubject2, _super);
13373
+ function AnonymousSubject2(destination2, source8) {
13374
+ var _this = _super.call(this) || this;
13375
+ _this.destination = destination2;
13376
+ _this.source = source8;
13377
+ return _this;
13378
+ }
13379
+ AnonymousSubject2.prototype.next = function(value6) {
13380
+ var _a, _b;
13381
+ (_b = (_a = this.destination) === null || _a === void 0 ? void 0 : _a.next) === null || _b === void 0 ? void 0 : _b.call(_a, value6);
13382
+ };
13383
+ AnonymousSubject2.prototype.error = function(err) {
13384
+ var _a, _b;
13385
+ (_b = (_a = this.destination) === null || _a === void 0 ? void 0 : _a.error) === null || _b === void 0 ? void 0 : _b.call(_a, err);
13386
+ };
13387
+ AnonymousSubject2.prototype.complete = function() {
13388
+ var _a, _b;
13389
+ (_b = (_a = this.destination) === null || _a === void 0 ? void 0 : _a.complete) === null || _b === void 0 ? void 0 : _b.call(_a);
13390
+ };
13391
+ AnonymousSubject2.prototype._subscribe = function(subscriber3) {
13392
+ var _a, _b;
13393
+ return (_b = (_a = this.source) === null || _a === void 0 ? void 0 : _a.subscribe(subscriber3)) !== null && _b !== void 0 ? _b : EMPTY_SUBSCRIPTION;
13394
+ };
13395
+ return AnonymousSubject2;
13396
+ }(Subject);
13397
+
13398
+ // ../node_modules/rxjs/dist/esm5/internal/BehaviorSubject.js
13399
+ var BehaviorSubject = function(_super) {
13400
+ __extends(BehaviorSubject2, _super);
13401
+ function BehaviorSubject2(_value2) {
13402
+ var _this = _super.call(this) || this;
13403
+ _this._value = _value2;
13404
+ return _this;
13405
+ }
13406
+ Object.defineProperty(BehaviorSubject2.prototype, "value", {
13407
+ get: function() {
13408
+ return this.getValue();
13409
+ },
13410
+ enumerable: false,
13411
+ configurable: true
13412
+ });
13413
+ BehaviorSubject2.prototype._subscribe = function(subscriber3) {
13414
+ var subscription2 = _super.prototype._subscribe.call(this, subscriber3);
13415
+ !subscription2.closed && subscriber3.next(this._value);
13416
+ return subscription2;
13417
+ };
13418
+ BehaviorSubject2.prototype.getValue = function() {
13419
+ var _a = this, hasError2 = _a.hasError, thrownError = _a.thrownError, _value2 = _a._value;
13420
+ if (hasError2) {
13421
+ throw thrownError;
13422
+ }
13423
+ this._throwIfClosed();
13424
+ return _value2;
13425
+ };
13426
+ BehaviorSubject2.prototype.next = function(value6) {
13427
+ _super.prototype.next.call(this, this._value = value6);
13428
+ };
13429
+ return BehaviorSubject2;
13430
+ }(Subject);
13431
+
13432
+ // ../node_modules/rxjs/dist/esm5/internal/observable/empty.js
13433
+ var EMPTY = new Observable(function(subscriber3) {
13434
+ return subscriber3.complete();
13435
+ });
13436
+
13437
+ // ../node_modules/rxjs/dist/esm5/internal/util/isScheduler.js
13438
+ function isScheduler(value6) {
13439
+ return value6 && isFunction(value6.schedule);
13440
+ }
13441
+
13442
+ // ../node_modules/rxjs/dist/esm5/internal/util/args.js
13443
+ function last(arr) {
13444
+ return arr[arr.length - 1];
13445
+ }
13446
+ function popScheduler(args) {
13447
+ return isScheduler(last(args)) ? args.pop() : void 0;
13448
+ }
13449
+ function popNumber(args, defaultValue4) {
13450
+ return typeof last(args) === "number" ? args.pop() : defaultValue4;
13451
+ }
13452
+
13453
+ // ../node_modules/rxjs/dist/esm5/internal/util/isArrayLike.js
13454
+ var isArrayLike = function(x) {
13455
+ return x && typeof x.length === "number" && typeof x !== "function";
13456
+ };
13457
+
13458
+ // ../node_modules/rxjs/dist/esm5/internal/util/isPromise.js
13459
+ function isPromise(value6) {
13460
+ return isFunction(value6 === null || value6 === void 0 ? void 0 : value6.then);
13461
+ }
13462
+
13463
+ // ../node_modules/rxjs/dist/esm5/internal/util/isInteropObservable.js
13464
+ function isInteropObservable(input2) {
13465
+ return isFunction(input2[observable]);
13466
+ }
13467
+
13468
+ // ../node_modules/rxjs/dist/esm5/internal/util/isAsyncIterable.js
13469
+ function isAsyncIterable(obj) {
13470
+ return Symbol.asyncIterator && isFunction(obj === null || obj === void 0 ? void 0 : obj[Symbol.asyncIterator]);
13471
+ }
13472
+
13473
+ // ../node_modules/rxjs/dist/esm5/internal/util/throwUnobservableError.js
13474
+ function createInvalidObservableTypeError(input2) {
13475
+ return new TypeError("You provided " + (input2 !== null && typeof input2 === "object" ? "an invalid object" : "'" + input2 + "'") + " where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.");
13476
+ }
13477
+
13478
+ // ../node_modules/rxjs/dist/esm5/internal/symbol/iterator.js
13479
+ function getSymbolIterator() {
13480
+ if (typeof Symbol !== "function" || !Symbol.iterator) {
13481
+ return "@@iterator";
13482
+ }
13483
+ return Symbol.iterator;
13484
+ }
13485
+ var iterator = getSymbolIterator();
13486
+
13487
+ // ../node_modules/rxjs/dist/esm5/internal/util/isIterable.js
13488
+ function isIterable(input2) {
13489
+ return isFunction(input2 === null || input2 === void 0 ? void 0 : input2[iterator]);
13490
+ }
13491
+
13492
+ // ../node_modules/rxjs/dist/esm5/internal/util/isReadableStreamLike.js
13493
+ function readableStreamLikeToAsyncGenerator(readableStream) {
13494
+ return __asyncGenerator(this, arguments, function readableStreamLikeToAsyncGenerator_1() {
13495
+ var reader, _a, value6, done;
13496
+ return __generator(this, function(_b) {
13497
+ switch (_b.label) {
13498
+ case 0:
13499
+ reader = readableStream.getReader();
13500
+ _b.label = 1;
13501
+ case 1:
13502
+ _b.trys.push([1, , 9, 10]);
13503
+ _b.label = 2;
13504
+ case 2:
13505
+ if (false)
13506
+ return [3, 8];
13507
+ return [4, __await(reader.read())];
13508
+ case 3:
13509
+ _a = _b.sent(), value6 = _a.value, done = _a.done;
13510
+ if (!done)
13511
+ return [3, 5];
13512
+ return [4, __await(void 0)];
13513
+ case 4:
13514
+ return [2, _b.sent()];
13515
+ case 5:
13516
+ return [4, __await(value6)];
13517
+ case 6:
13518
+ return [4, _b.sent()];
13519
+ case 7:
13520
+ _b.sent();
13521
+ return [3, 2];
13522
+ case 8:
13523
+ return [3, 10];
13524
+ case 9:
13525
+ reader.releaseLock();
13526
+ return [7];
13527
+ case 10:
13528
+ return [2];
13529
+ }
13530
+ });
13531
+ });
13532
+ }
13533
+ function isReadableStreamLike(obj) {
13534
+ return isFunction(obj === null || obj === void 0 ? void 0 : obj.getReader);
13535
+ }
13536
+
13537
+ // ../node_modules/rxjs/dist/esm5/internal/observable/innerFrom.js
13538
+ function innerFrom(input2) {
13539
+ if (input2 instanceof Observable) {
13540
+ return input2;
13541
+ }
13542
+ if (input2 != null) {
13543
+ if (isInteropObservable(input2)) {
13544
+ return fromInteropObservable(input2);
13545
+ }
13546
+ if (isArrayLike(input2)) {
13547
+ return fromArrayLike(input2);
13548
+ }
13549
+ if (isPromise(input2)) {
13550
+ return fromPromise(input2);
13551
+ }
13552
+ if (isAsyncIterable(input2)) {
13553
+ return fromAsyncIterable(input2);
13554
+ }
13555
+ if (isIterable(input2)) {
13556
+ return fromIterable(input2);
13557
+ }
13558
+ if (isReadableStreamLike(input2)) {
13559
+ return fromReadableStreamLike(input2);
13560
+ }
13561
+ }
13562
+ throw createInvalidObservableTypeError(input2);
13563
+ }
13564
+ function fromInteropObservable(obj) {
13565
+ return new Observable(function(subscriber3) {
13566
+ var obs = obj[observable]();
13567
+ if (isFunction(obs.subscribe)) {
13568
+ return obs.subscribe(subscriber3);
13569
+ }
13570
+ throw new TypeError("Provided object does not correctly implement Symbol.observable");
13571
+ });
13572
+ }
13573
+ function fromArrayLike(array) {
13574
+ return new Observable(function(subscriber3) {
13575
+ for (var i = 0; i < array.length && !subscriber3.closed; i++) {
13576
+ subscriber3.next(array[i]);
13577
+ }
13578
+ subscriber3.complete();
13579
+ });
13580
+ }
13581
+ function fromPromise(promise) {
13582
+ return new Observable(function(subscriber3) {
13583
+ promise.then(function(value6) {
13584
+ if (!subscriber3.closed) {
13585
+ subscriber3.next(value6);
13586
+ subscriber3.complete();
13587
+ }
13588
+ }, function(err) {
13589
+ return subscriber3.error(err);
13590
+ }).then(null, reportUnhandledError);
13591
+ });
13592
+ }
13593
+ function fromIterable(iterable) {
13594
+ return new Observable(function(subscriber3) {
13595
+ var e_1, _a;
13596
+ try {
13597
+ for (var iterable_1 = __values(iterable), iterable_1_1 = iterable_1.next(); !iterable_1_1.done; iterable_1_1 = iterable_1.next()) {
13598
+ var value6 = iterable_1_1.value;
13599
+ subscriber3.next(value6);
13600
+ if (subscriber3.closed) {
13601
+ return;
13602
+ }
13603
+ }
13604
+ } catch (e_1_1) {
13605
+ e_1 = { error: e_1_1 };
13606
+ } finally {
13607
+ try {
13608
+ if (iterable_1_1 && !iterable_1_1.done && (_a = iterable_1.return))
13609
+ _a.call(iterable_1);
13610
+ } finally {
13611
+ if (e_1)
13612
+ throw e_1.error;
13613
+ }
13614
+ }
13615
+ subscriber3.complete();
13616
+ });
13617
+ }
13618
+ function fromAsyncIterable(asyncIterable) {
13619
+ return new Observable(function(subscriber3) {
13620
+ process(asyncIterable, subscriber3).catch(function(err) {
13621
+ return subscriber3.error(err);
13622
+ });
13623
+ });
13624
+ }
13625
+ function fromReadableStreamLike(readableStream) {
13626
+ return fromAsyncIterable(readableStreamLikeToAsyncGenerator(readableStream));
13627
+ }
13628
+ function process(asyncIterable, subscriber3) {
13629
+ var asyncIterable_1, asyncIterable_1_1;
13630
+ var e_2, _a;
13631
+ return __awaiter(this, void 0, void 0, function() {
13632
+ var value6, e_2_1;
13633
+ return __generator(this, function(_b) {
13634
+ switch (_b.label) {
13635
+ case 0:
13636
+ _b.trys.push([0, 5, 6, 11]);
13637
+ asyncIterable_1 = __asyncValues(asyncIterable);
13638
+ _b.label = 1;
13639
+ case 1:
13640
+ return [4, asyncIterable_1.next()];
13641
+ case 2:
13642
+ if (!(asyncIterable_1_1 = _b.sent(), !asyncIterable_1_1.done))
13643
+ return [3, 4];
13644
+ value6 = asyncIterable_1_1.value;
13645
+ subscriber3.next(value6);
13646
+ if (subscriber3.closed) {
13647
+ return [2];
13648
+ }
13649
+ _b.label = 3;
13650
+ case 3:
13651
+ return [3, 1];
13652
+ case 4:
13653
+ return [3, 11];
13654
+ case 5:
13655
+ e_2_1 = _b.sent();
13656
+ e_2 = { error: e_2_1 };
13657
+ return [3, 11];
13658
+ case 6:
13659
+ _b.trys.push([6, , 9, 10]);
13660
+ if (!(asyncIterable_1_1 && !asyncIterable_1_1.done && (_a = asyncIterable_1.return)))
13661
+ return [3, 8];
13662
+ return [4, _a.call(asyncIterable_1)];
13663
+ case 7:
13664
+ _b.sent();
13665
+ _b.label = 8;
13666
+ case 8:
13667
+ return [3, 10];
13668
+ case 9:
13669
+ if (e_2)
13670
+ throw e_2.error;
13671
+ return [7];
13672
+ case 10:
13673
+ return [7];
13674
+ case 11:
13675
+ subscriber3.complete();
13676
+ return [2];
13677
+ }
13678
+ });
13679
+ });
13680
+ }
13681
+
13682
+ // ../node_modules/rxjs/dist/esm5/internal/util/executeSchedule.js
13683
+ function executeSchedule(parentSubscription, scheduler, work, delay, repeat3) {
13684
+ if (delay === void 0) {
13685
+ delay = 0;
13686
+ }
13687
+ if (repeat3 === void 0) {
13688
+ repeat3 = false;
13689
+ }
13690
+ var scheduleSubscription = scheduler.schedule(function() {
13691
+ work();
13692
+ if (repeat3) {
13693
+ parentSubscription.add(this.schedule(null, delay));
13694
+ } else {
13695
+ this.unsubscribe();
13696
+ }
13697
+ }, delay);
13698
+ parentSubscription.add(scheduleSubscription);
13699
+ if (!repeat3) {
13700
+ return scheduleSubscription;
13701
+ }
13702
+ }
13703
+
13704
+ // ../node_modules/rxjs/dist/esm5/internal/operators/observeOn.js
13705
+ function observeOn(scheduler, delay) {
13706
+ if (delay === void 0) {
13707
+ delay = 0;
13708
+ }
13709
+ return operate(function(source8, subscriber3) {
13710
+ source8.subscribe(createOperatorSubscriber(subscriber3, function(value6) {
13711
+ return executeSchedule(subscriber3, scheduler, function() {
13712
+ return subscriber3.next(value6);
13713
+ }, delay);
13714
+ }, function() {
13715
+ return executeSchedule(subscriber3, scheduler, function() {
13716
+ return subscriber3.complete();
13717
+ }, delay);
13718
+ }, function(err) {
13719
+ return executeSchedule(subscriber3, scheduler, function() {
13720
+ return subscriber3.error(err);
13721
+ }, delay);
13722
+ }));
13723
+ });
13724
+ }
13725
+
13726
+ // ../node_modules/rxjs/dist/esm5/internal/operators/subscribeOn.js
13727
+ function subscribeOn(scheduler, delay) {
13728
+ if (delay === void 0) {
13729
+ delay = 0;
13730
+ }
13731
+ return operate(function(source8, subscriber3) {
13732
+ subscriber3.add(scheduler.schedule(function() {
13733
+ return source8.subscribe(subscriber3);
13734
+ }, delay));
13735
+ });
13736
+ }
13737
+
13738
+ // ../node_modules/rxjs/dist/esm5/internal/scheduled/scheduleObservable.js
13739
+ function scheduleObservable(input2, scheduler) {
13740
+ return innerFrom(input2).pipe(subscribeOn(scheduler), observeOn(scheduler));
13741
+ }
13742
+
13743
+ // ../node_modules/rxjs/dist/esm5/internal/scheduled/schedulePromise.js
13744
+ function schedulePromise(input2, scheduler) {
13745
+ return innerFrom(input2).pipe(subscribeOn(scheduler), observeOn(scheduler));
13746
+ }
13747
+
13748
+ // ../node_modules/rxjs/dist/esm5/internal/scheduled/scheduleArray.js
13749
+ function scheduleArray(input2, scheduler) {
13750
+ return new Observable(function(subscriber3) {
13751
+ var i = 0;
13752
+ return scheduler.schedule(function() {
13753
+ if (i === input2.length) {
13754
+ subscriber3.complete();
13755
+ } else {
13756
+ subscriber3.next(input2[i++]);
13757
+ if (!subscriber3.closed) {
13758
+ this.schedule();
13759
+ }
13760
+ }
13761
+ });
13762
+ });
13763
+ }
13764
+
13765
+ // ../node_modules/rxjs/dist/esm5/internal/scheduled/scheduleIterable.js
13766
+ function scheduleIterable(input2, scheduler) {
13767
+ return new Observable(function(subscriber3) {
13768
+ var iterator2;
13769
+ executeSchedule(subscriber3, scheduler, function() {
13770
+ iterator2 = input2[iterator]();
13771
+ executeSchedule(subscriber3, scheduler, function() {
13772
+ var _a;
13773
+ var value6;
13774
+ var done;
13775
+ try {
13776
+ _a = iterator2.next(), value6 = _a.value, done = _a.done;
13777
+ } catch (err) {
13778
+ subscriber3.error(err);
13779
+ return;
13780
+ }
13781
+ if (done) {
13782
+ subscriber3.complete();
13783
+ } else {
13784
+ subscriber3.next(value6);
13785
+ }
13786
+ }, 0, true);
13787
+ });
13788
+ return function() {
13789
+ return isFunction(iterator2 === null || iterator2 === void 0 ? void 0 : iterator2.return) && iterator2.return();
13790
+ };
13791
+ });
13792
+ }
13793
+
13794
+ // ../node_modules/rxjs/dist/esm5/internal/scheduled/scheduleAsyncIterable.js
13795
+ function scheduleAsyncIterable(input2, scheduler) {
13796
+ if (!input2) {
13797
+ throw new Error("Iterable cannot be null");
13798
+ }
13799
+ return new Observable(function(subscriber3) {
13800
+ executeSchedule(subscriber3, scheduler, function() {
13801
+ var iterator2 = input2[Symbol.asyncIterator]();
13802
+ executeSchedule(subscriber3, scheduler, function() {
13803
+ iterator2.next().then(function(result5) {
13804
+ if (result5.done) {
13805
+ subscriber3.complete();
13806
+ } else {
13807
+ subscriber3.next(result5.value);
13808
+ }
13809
+ });
13810
+ }, 0, true);
13811
+ });
13812
+ });
13813
+ }
13814
+
13815
+ // ../node_modules/rxjs/dist/esm5/internal/scheduled/scheduleReadableStreamLike.js
13816
+ function scheduleReadableStreamLike(input2, scheduler) {
13817
+ return scheduleAsyncIterable(readableStreamLikeToAsyncGenerator(input2), scheduler);
13818
+ }
13819
+
13820
+ // ../node_modules/rxjs/dist/esm5/internal/scheduled/scheduled.js
13821
+ function scheduled(input2, scheduler) {
13822
+ if (input2 != null) {
13823
+ if (isInteropObservable(input2)) {
13824
+ return scheduleObservable(input2, scheduler);
13825
+ }
13826
+ if (isArrayLike(input2)) {
13827
+ return scheduleArray(input2, scheduler);
13828
+ }
13829
+ if (isPromise(input2)) {
13830
+ return schedulePromise(input2, scheduler);
13831
+ }
13832
+ if (isAsyncIterable(input2)) {
13833
+ return scheduleAsyncIterable(input2, scheduler);
13834
+ }
13835
+ if (isIterable(input2)) {
13836
+ return scheduleIterable(input2, scheduler);
13837
+ }
13838
+ if (isReadableStreamLike(input2)) {
13839
+ return scheduleReadableStreamLike(input2, scheduler);
13840
+ }
13841
+ }
13842
+ throw createInvalidObservableTypeError(input2);
13843
+ }
13844
+
13845
+ // ../node_modules/rxjs/dist/esm5/internal/observable/from.js
13846
+ function from(input2, scheduler) {
13847
+ return scheduler ? scheduled(input2, scheduler) : innerFrom(input2);
13848
+ }
13849
+
13850
+ // ../node_modules/rxjs/dist/esm5/internal/operators/map.js
13851
+ function map(project, thisArg) {
13852
+ return operate(function(source8, subscriber3) {
13853
+ var index2 = 0;
13854
+ source8.subscribe(createOperatorSubscriber(subscriber3, function(value6) {
13855
+ subscriber3.next(project.call(thisArg, value6, index2++));
13856
+ }));
13857
+ });
13858
+ }
13859
+
13860
+ // ../node_modules/rxjs/dist/esm5/internal/util/mapOneOrManyArgs.js
13861
+ var isArray = Array.isArray;
13862
+ function callOrApply(fn2, args) {
13863
+ return isArray(args) ? fn2.apply(void 0, __spreadArray([], __read(args))) : fn2(args);
13864
+ }
13865
+ function mapOneOrManyArgs(fn2) {
13866
+ return map(function(args) {
13867
+ return callOrApply(fn2, args);
13868
+ });
13869
+ }
13870
+
13871
+ // ../node_modules/rxjs/dist/esm5/internal/operators/mergeInternals.js
13872
+ function mergeInternals(source8, subscriber3, project, concurrent, onBeforeNext, expand, innerSubScheduler, additionalFinalizer) {
13873
+ var buffer = [];
13874
+ var active2 = 0;
13875
+ var index2 = 0;
13876
+ var isComplete = false;
13877
+ var checkComplete = function() {
13878
+ if (isComplete && !buffer.length && !active2) {
13879
+ subscriber3.complete();
13880
+ }
13881
+ };
13882
+ var outerNext = function(value6) {
13883
+ return active2 < concurrent ? doInnerSub(value6) : buffer.push(value6);
13884
+ };
13885
+ var doInnerSub = function(value6) {
13886
+ expand && subscriber3.next(value6);
13887
+ active2++;
13888
+ var innerComplete = false;
13889
+ innerFrom(project(value6, index2++)).subscribe(createOperatorSubscriber(subscriber3, function(innerValue) {
13890
+ onBeforeNext === null || onBeforeNext === void 0 ? void 0 : onBeforeNext(innerValue);
13891
+ if (expand) {
13892
+ outerNext(innerValue);
13893
+ } else {
13894
+ subscriber3.next(innerValue);
13895
+ }
13896
+ }, function() {
13897
+ innerComplete = true;
13898
+ }, void 0, function() {
13899
+ if (innerComplete) {
13900
+ try {
13901
+ active2--;
13902
+ var _loop_1 = function() {
13903
+ var bufferedValue = buffer.shift();
13904
+ if (innerSubScheduler) {
13905
+ executeSchedule(subscriber3, innerSubScheduler, function() {
13906
+ return doInnerSub(bufferedValue);
13907
+ });
13908
+ } else {
13909
+ doInnerSub(bufferedValue);
13910
+ }
13911
+ };
13912
+ while (buffer.length && active2 < concurrent) {
13913
+ _loop_1();
13914
+ }
13915
+ checkComplete();
13916
+ } catch (err) {
13917
+ subscriber3.error(err);
13918
+ }
13919
+ }
13920
+ }));
13921
+ };
13922
+ source8.subscribe(createOperatorSubscriber(subscriber3, outerNext, function() {
13923
+ isComplete = true;
13924
+ checkComplete();
13925
+ }));
13926
+ return function() {
13927
+ additionalFinalizer === null || additionalFinalizer === void 0 ? void 0 : additionalFinalizer();
13928
+ };
13929
+ }
13930
+
13931
+ // ../node_modules/rxjs/dist/esm5/internal/operators/mergeMap.js
13932
+ function mergeMap(project, resultSelector, concurrent) {
13933
+ if (concurrent === void 0) {
13934
+ concurrent = Infinity;
13935
+ }
13936
+ if (isFunction(resultSelector)) {
13937
+ return mergeMap(function(a, i) {
13938
+ return map(function(b, ii) {
13939
+ return resultSelector(a, b, i, ii);
13940
+ })(innerFrom(project(a, i)));
13941
+ }, concurrent);
13942
+ } else if (typeof resultSelector === "number") {
13943
+ concurrent = resultSelector;
13944
+ }
13945
+ return operate(function(source8, subscriber3) {
13946
+ return mergeInternals(source8, subscriber3, project, concurrent);
13947
+ });
13948
+ }
13949
+
13950
+ // ../node_modules/rxjs/dist/esm5/internal/operators/mergeAll.js
13951
+ function mergeAll(concurrent) {
13952
+ if (concurrent === void 0) {
13953
+ concurrent = Infinity;
13954
+ }
13955
+ return mergeMap(identity, concurrent);
13956
+ }
13957
+
13958
+ // ../node_modules/rxjs/dist/esm5/internal/observable/fromEvent.js
13959
+ var nodeEventEmitterMethods = ["addListener", "removeListener"];
13960
+ var eventTargetMethods = ["addEventListener", "removeEventListener"];
13961
+ var jqueryMethods = ["on", "off"];
13962
+ function fromEvent(target5, eventName, options, resultSelector) {
13963
+ if (isFunction(options)) {
13964
+ resultSelector = options;
13965
+ options = void 0;
13966
+ }
13967
+ if (resultSelector) {
13968
+ return fromEvent(target5, eventName, options).pipe(mapOneOrManyArgs(resultSelector));
13969
+ }
13970
+ var _a = __read(isEventTarget(target5) ? eventTargetMethods.map(function(methodName) {
13971
+ return function(handler) {
13972
+ return target5[methodName](eventName, handler, options);
13973
+ };
13974
+ }) : isNodeStyleEventEmitter(target5) ? nodeEventEmitterMethods.map(toCommonHandlerRegistry(target5, eventName)) : isJQueryStyleEventEmitter(target5) ? jqueryMethods.map(toCommonHandlerRegistry(target5, eventName)) : [], 2), add2 = _a[0], remove = _a[1];
13975
+ if (!add2) {
13976
+ if (isArrayLike(target5)) {
13977
+ return mergeMap(function(subTarget) {
13978
+ return fromEvent(subTarget, eventName, options);
13979
+ })(innerFrom(target5));
13980
+ }
13981
+ }
13982
+ if (!add2) {
13983
+ throw new TypeError("Invalid event target");
13984
+ }
13985
+ return new Observable(function(subscriber3) {
13986
+ var handler = function() {
13987
+ var args = [];
13988
+ for (var _i = 0; _i < arguments.length; _i++) {
13989
+ args[_i] = arguments[_i];
13990
+ }
13991
+ return subscriber3.next(1 < args.length ? args : args[0]);
13992
+ };
13993
+ add2(handler);
13994
+ return function() {
13995
+ return remove(handler);
13996
+ };
13997
+ });
13998
+ }
13999
+ function toCommonHandlerRegistry(target5, eventName) {
14000
+ return function(methodName) {
14001
+ return function(handler) {
14002
+ return target5[methodName](eventName, handler);
14003
+ };
14004
+ };
14005
+ }
14006
+ function isNodeStyleEventEmitter(target5) {
14007
+ return isFunction(target5.addListener) && isFunction(target5.removeListener);
14008
+ }
14009
+ function isJQueryStyleEventEmitter(target5) {
14010
+ return isFunction(target5.on) && isFunction(target5.off);
14011
+ }
14012
+ function isEventTarget(target5) {
14013
+ return isFunction(target5.addEventListener) && isFunction(target5.removeEventListener);
14014
+ }
14015
+
14016
+ // ../node_modules/rxjs/dist/esm5/internal/observable/merge.js
14017
+ function merge() {
14018
+ var args = [];
14019
+ for (var _i = 0; _i < arguments.length; _i++) {
14020
+ args[_i] = arguments[_i];
14021
+ }
14022
+ var scheduler = popScheduler(args);
14023
+ var concurrent = popNumber(args, Infinity);
14024
+ var sources = args;
14025
+ return !sources.length ? EMPTY : sources.length === 1 ? innerFrom(sources[0]) : mergeAll(concurrent)(from(sources, scheduler));
14026
+ }
14027
+
14028
+ // src/authentication/observeSession.ts
14029
+ function observeSession(session4) {
14030
+ const sessionInfoSubject = new BehaviorSubject(session4.info);
14031
+ const login = fromEvent(session4.events, EVENTS.LOGIN);
14032
+ const logout = fromEvent(session4.events, EVENTS.LOGOUT);
14033
+ const sessionRestored = fromEvent(session4.events, EVENTS.SESSION_RESTORED);
14034
+ merge(login, logout, sessionRestored).pipe(map(() => sessionInfoSubject.next(session4.info))).subscribe();
14035
+ return sessionInfoSubject;
14036
+ }
14037
+
12343
14038
  // src/authentication/index.ts
12344
14039
  var BrowserSession = class {
12345
14040
  get authenticatedFetch() {
@@ -12347,13 +14042,12 @@ var BrowserSession = class {
12347
14042
  }
12348
14043
  constructor() {
12349
14044
  this.session = new Session();
14045
+ this.sessionInfo$ = observeSession(this.session);
12350
14046
  this._authenticatedFetch = this.session.fetch;
12351
14047
  }
12352
- async handleIncomingRedirect() {
14048
+ async handleIncomingRedirect(restorePreviousSession = false) {
12353
14049
  return this.session.handleIncomingRedirect({
12354
- // session restore disabled, due to
12355
- // https://github.com/inrupt/solid-client-authn-js/issues/1647
12356
- restorePreviousSession: false
14050
+ restorePreviousSession
12357
14051
  });
12358
14052
  }
12359
14053
  async login(oidcIssuer2) {
@@ -12366,12 +14060,21 @@ var BrowserSession = class {
12366
14060
  async logout() {
12367
14061
  return this.session.logout();
12368
14062
  }
14063
+ /**
14064
+ * @deprecated use observeSession instead
14065
+ */
12369
14066
  trackSession(callback) {
12370
- this.session.onLogin(() => callback(this.session.info));
12371
- this.session.onLogout(() => callback(this.session.info));
12372
- this.session.onSessionRestore(() => callback(this.session.info));
14067
+ this.session.on(EVENTS.LOGIN, () => callback(this.session.info));
14068
+ this.session.on(EVENTS.LOGOUT, () => callback(this.session.info));
14069
+ this.session.on(EVENTS.SESSION_RESTORED, () => callback(this.session.info));
12373
14070
  callback(this.session.info);
12374
14071
  }
14072
+ observeSession() {
14073
+ return this.sessionInfo$;
14074
+ }
14075
+ onSessionRestore(callback) {
14076
+ this.session.on(EVENTS.SESSION_RESTORED, callback);
14077
+ }
12375
14078
  };
12376
14079
 
12377
14080
  // src/files/BinaryFile.ts
@@ -12431,7 +14134,7 @@ var FileFetcher = class {
12431
14134
 
12432
14135
  // src/modules/contacts.ts
12433
14136
  async function loadContactsModule(store) {
12434
- const module2 = await import("./dist-D3HKZNEN.js");
14137
+ const module2 = await import("./dist-L3AA3UET.js");
12435
14138
  return new module2.default({
12436
14139
  store: store.graph,
12437
14140
  fetcher: store.fetcher,
@@ -12642,6 +14345,52 @@ var WebIdProfile = class extends Thing {
12642
14345
  }
12643
14346
  };
12644
14347
 
14348
+ // src/search/SearchIndex.ts
14349
+ var import_lunr = __toESM(require_lunr());
14350
+ var SearchIndex = class {
14351
+ constructor(indexes) {
14352
+ this.index = (0, import_lunr.default)(function() {
14353
+ this.ref("uri");
14354
+ this.field("uri");
14355
+ this.field("label");
14356
+ this.metadataWhitelist = ["position"];
14357
+ const items2 = indexes.flatMap((it) => it.getIndexedItems());
14358
+ items2.forEach((item4) => {
14359
+ this.add({
14360
+ uri: item4.uri,
14361
+ label: item4.label
14362
+ });
14363
+ });
14364
+ });
14365
+ }
14366
+ /**
14367
+ * Search the index for a given term. It finds partial matches, but will rank exact matches higher.
14368
+ *
14369
+ * The rank order is:
14370
+ *
14371
+ * 1. exact matches
14372
+ * 2. prefix matches
14373
+ * 3. suffix matches
14374
+ * 4. any matches inside a literal
14375
+ *
14376
+ * @param term The (partial) term to search for
14377
+ * @param maxResults The maximum number of results to return (defaults to 10)
14378
+ */
14379
+ search(term2, maxResults = 10) {
14380
+ const escapedTerm = term2.replace(/[~^+:]/g, (x) => `\\${x}`);
14381
+ return this.index.search(
14382
+ `${escapedTerm}^100 ${escapedTerm}*^20 *${escapedTerm}^10 *${escapedTerm}*^5`
14383
+ ).slice(0, maxResults);
14384
+ }
14385
+ /**
14386
+ * Remove all data from the search index.
14387
+ */
14388
+ clear() {
14389
+ this.index = (0, import_lunr.default)(() => {
14390
+ });
14391
+ }
14392
+ };
14393
+
12645
14394
  // src/rdf-document/RdfDocument.ts
12646
14395
  var RdfDocument = class extends Thing {
12647
14396
  constructor(uri6, store, editable = false) {
@@ -12693,52 +14442,6 @@ var LabelIndex = class extends RdfDocument {
12693
14442
  }
12694
14443
  };
12695
14444
 
12696
- // src/search/SearchIndex.ts
12697
- var import_lunr = __toESM(require_lunr());
12698
- var SearchIndex = class {
12699
- constructor(indexes) {
12700
- this.index = (0, import_lunr.default)(function() {
12701
- this.ref("uri");
12702
- this.field("uri");
12703
- this.field("label");
12704
- this.metadataWhitelist = ["position"];
12705
- const items2 = indexes.flatMap((it) => it.getIndexedItems());
12706
- items2.forEach((item4) => {
12707
- this.add({
12708
- uri: item4.uri,
12709
- label: item4.label
12710
- });
12711
- });
12712
- });
12713
- }
12714
- /**
12715
- * Search the index for a given term. It finds partial matches, but will rank exact matches higher.
12716
- *
12717
- * The rank order is:
12718
- *
12719
- * 1. exact matches
12720
- * 2. prefix matches
12721
- * 3. suffix matches
12722
- * 4. any matches inside a literal
12723
- *
12724
- * @param term The (partial) term to search for
12725
- * @param maxResults The maximum number of results to return (defaults to 10)
12726
- */
12727
- search(term2, maxResults = 10) {
12728
- const escapedTerm = term2.replace(/[~^+:]/g, (x) => `\\${x}`);
12729
- return this.index.search(
12730
- `${escapedTerm}^100 ${escapedTerm}*^20 *${escapedTerm}^10 *${escapedTerm}*^5`
12731
- ).slice(0, maxResults);
12732
- }
12733
- /**
12734
- * Remove all data from the search index.
12735
- */
12736
- clear() {
12737
- this.index = (0, import_lunr.default)(() => {
12738
- });
12739
- }
12740
- };
12741
-
12742
14445
  // src/Store.ts
12743
14446
  var Store = class {
12744
14447
  constructor(session4) {
@@ -12931,7 +14634,7 @@ var author = "http://www.w3.org/ns/activitystreams#author";
12931
14634
  var bcc = "http://www.w3.org/ns/activitystreams#bcc";
12932
14635
  var bto = "http://www.w3.org/ns/activitystreams#bto";
12933
14636
  var cc = "http://www.w3.org/ns/activitystreams#cc";
12934
- var context = "http://www.w3.org/ns/activitystreams#context";
14637
+ var context2 = "http://www.w3.org/ns/activitystreams#context";
12935
14638
  var generator = "http://www.w3.org/ns/activitystreams#generator";
12936
14639
  var icon = "http://www.w3.org/ns/activitystreams#icon";
12937
14640
  var image = "http://www.w3.org/ns/activitystreams#image";
@@ -13049,7 +14752,7 @@ var asImport = /* @__PURE__ */ Object.freeze({
13049
14752
  bcc,
13050
14753
  bto,
13051
14754
  cc,
13052
- context,
14755
+ context: context2,
13053
14756
  generator,
13054
14757
  icon,
13055
14758
  image,
@@ -13693,7 +15396,7 @@ var testRun = "http://hl7.org/fhir/testRun";
13693
15396
  var SubstanceProtein = "http://hl7.org/fhir/SubstanceProtein";
13694
15397
  var _focalDevice = "http://hl7.org/fhir/_focalDevice";
13695
15398
  var _operationType = "http://hl7.org/fhir/_operationType";
13696
- var context2 = "http://hl7.org/fhir/context";
15399
+ var context3 = "http://hl7.org/fhir/context";
13697
15400
  var occurrenceDateTime = "http://hl7.org/fhir/occurrenceDateTime";
13698
15401
  var DetectedIssueEvidenceComponent = "http://hl7.org/fhir/DetectedIssueEvidenceComponent";
13699
15402
  var _ExplanationOfBenefit = "http://hl7.org/fhir/_ExplanationOfBenefit";
@@ -14038,7 +15741,7 @@ var _revenue = "http://hl7.org/fhir/_revenue";
14038
15741
  var _returnedAmount = "http://hl7.org/fhir/_returnedAmount";
14039
15742
  var MedicationKnowledgeDefinitionalIngredientComponent = "http://hl7.org/fhir/MedicationKnowledgeDefinitionalIngredientComponent";
14040
15743
  var candidate = "http://hl7.org/fhir/candidate";
14041
- var Subscription = "http://hl7.org/fhir/Subscription";
15744
+ var Subscription2 = "http://hl7.org/fhir/Subscription";
14042
15745
  var relatedAction = "http://hl7.org/fhir/relatedAction";
14043
15746
  var textPresentation = "http://hl7.org/fhir/textPresentation";
14044
15747
  var _supplements = "http://hl7.org/fhir/_supplements";
@@ -14639,7 +16342,7 @@ var rule = "http://hl7.org/fhir/rule";
14639
16342
  var Specimen = "http://hl7.org/fhir/Specimen";
14640
16343
  var _MedicinalProductDefinition = "http://hl7.org/fhir/_MedicinalProductDefinition";
14641
16344
  var OperationDefinition = "http://hl7.org/fhir/OperationDefinition";
14642
- var process = "http://hl7.org/fhir/process";
16345
+ var process2 = "http://hl7.org/fhir/process";
14643
16346
  var CitationCitedArtifactContributorshipEntryContributionInstanceComponent = "http://hl7.org/fhir/CitationCitedArtifactContributorshipEntryContributionInstanceComponent";
14644
16347
  var EncounterAdmissionComponent = "http://hl7.org/fhir/EncounterAdmissionComponent";
14645
16348
  var _MedicationDispense = "http://hl7.org/fhir/_MedicationDispense";
@@ -16050,7 +17753,7 @@ var Payee = "http://hl7.org/fhir/Payee";
16050
17753
  var _measurementType = "http://hl7.org/fhir/_measurementType";
16051
17754
  var RelatedArtifact = "http://hl7.org/fhir/RelatedArtifact";
16052
17755
  var RequestOrchestrationActionDynamicValueComponent = "http://hl7.org/fhir/RequestOrchestrationActionDynamicValueComponent";
16053
- var identity = "http://hl7.org/fhir/identity";
17756
+ var identity2 = "http://hl7.org/fhir/identity";
16054
17757
  var subType = "http://hl7.org/fhir/subType";
16055
17758
  var ValueSetExpansionContainsComponent = "http://hl7.org/fhir/ValueSetExpansionContainsComponent";
16056
17759
  var MedicationKnowledgePackagingComponent = "http://hl7.org/fhir/MedicationKnowledgePackagingComponent";
@@ -17238,7 +18941,7 @@ var freeToShare = "http://hl7.org/fhir/freeToShare";
17238
18941
  var ElementDefinitionMappingComponent = "http://hl7.org/fhir/ElementDefinitionMappingComponent";
17239
18942
  var copackagedIndicator = "http://hl7.org/fhir/copackagedIndicator";
17240
18943
  var precheckBehavior = "http://hl7.org/fhir/precheckBehavior";
17241
- var map = "http://hl7.org/fhir/map";
18944
+ var map2 = "http://hl7.org/fhir/map";
17242
18945
  var additionalInfo = "http://hl7.org/fhir/additionalInfo";
17243
18946
  var preConditions = "http://hl7.org/fhir/preConditions";
17244
18947
  var numberOfSubunits = "http://hl7.org/fhir/numberOfSubunits";
@@ -17926,7 +19629,7 @@ var fhirImport = /* @__PURE__ */ Object.freeze({
17926
19629
  SubstanceProtein,
17927
19630
  _focalDevice,
17928
19631
  _operationType,
17929
- context: context2,
19632
+ context: context3,
17930
19633
  occurrenceDateTime,
17931
19634
  DetectedIssueEvidenceComponent,
17932
19635
  _ExplanationOfBenefit,
@@ -18271,7 +19974,7 @@ var fhirImport = /* @__PURE__ */ Object.freeze({
18271
19974
  _returnedAmount,
18272
19975
  MedicationKnowledgeDefinitionalIngredientComponent,
18273
19976
  candidate,
18274
- Subscription,
19977
+ Subscription: Subscription2,
18275
19978
  relatedAction,
18276
19979
  textPresentation,
18277
19980
  _supplements,
@@ -18872,7 +20575,7 @@ var fhirImport = /* @__PURE__ */ Object.freeze({
18872
20575
  Specimen,
18873
20576
  _MedicinalProductDefinition,
18874
20577
  OperationDefinition,
18875
- process,
20578
+ process: process2,
18876
20579
  CitationCitedArtifactContributorshipEntryContributionInstanceComponent,
18877
20580
  EncounterAdmissionComponent,
18878
20581
  _MedicationDispense,
@@ -20283,7 +21986,7 @@ var fhirImport = /* @__PURE__ */ Object.freeze({
20283
21986
  _measurementType,
20284
21987
  RelatedArtifact,
20285
21988
  RequestOrchestrationActionDynamicValueComponent,
20286
- identity,
21989
+ identity: identity2,
20287
21990
  subType,
20288
21991
  ValueSetExpansionContainsComponent,
20289
21992
  MedicationKnowledgePackagingComponent,
@@ -21471,7 +23174,7 @@ var fhirImport = /* @__PURE__ */ Object.freeze({
21471
23174
  ElementDefinitionMappingComponent,
21472
23175
  copackagedIndicator,
21473
23176
  precheckBehavior,
21474
- map,
23177
+ map: map2,
21475
23178
  additionalInfo,
21476
23179
  preConditions,
21477
23180
  numberOfSubunits,
@@ -22203,7 +23906,7 @@ var extension2 = "http://www.w3.org/ns/hydra/core#extension";
22203
23906
  var first = "http://www.w3.org/ns/hydra/core#first";
22204
23907
  var freetextQuery = "http://www.w3.org/ns/hydra/core#freetextQuery";
22205
23908
  var headerName = "http://www.w3.org/ns/hydra/core#headerName";
22206
- var last = "http://www.w3.org/ns/hydra/core#last";
23909
+ var last2 = "http://www.w3.org/ns/hydra/core#last";
22207
23910
  var limit2 = "http://www.w3.org/ns/hydra/core#limit";
22208
23911
  var mapping2 = "http://www.w3.org/ns/hydra/core#mapping";
22209
23912
  var member3 = "http://www.w3.org/ns/hydra/core#member";
@@ -22265,7 +23968,7 @@ var hydraImport = /* @__PURE__ */ Object.freeze({
22265
23968
  first,
22266
23969
  freetextQuery,
22267
23970
  headerName,
22268
- last,
23971
+ last: last2,
22269
23972
  limit: limit2,
22270
23973
  mapping: mapping2,
22271
23974
  member: member3,
@@ -22353,7 +24056,7 @@ var Mailbox = "http://www.w3.org/2007/ont/link#Mailbox";
22353
24056
  var ProtocolEvent = "http://www.w3.org/2007/ont/link#ProtocolEvent";
22354
24057
  var RDFDocument = "http://www.w3.org/2007/ont/link#RDFDocument";
22355
24058
  var Response2 = "http://www.w3.org/2007/ont/link#Response";
22356
- var Session2 = "http://www.w3.org/2007/ont/link#Session";
24059
+ var Session3 = "http://www.w3.org/2007/ont/link#Session";
22357
24060
  var isMentionedIn = "http://www.w3.org/2007/ont/link#isMentionedIn";
22358
24061
  var mentionsClass = "http://www.w3.org/2007/ont/link#mentionsClass";
22359
24062
  var protocol2 = "http://www.w3.org/2007/ont/link#protocol";
@@ -22373,7 +24076,7 @@ var linkImport = /* @__PURE__ */ Object.freeze({
22373
24076
  ProtocolEvent,
22374
24077
  RDFDocument,
22375
24078
  Response: Response2,
22376
- Session: Session2,
24079
+ Session: Session3,
22377
24080
  isMentionedIn,
22378
24081
  mentionsClass,
22379
24082
  protocol: protocol2,
@@ -24403,7 +26106,7 @@ var lyricist = "http://schema.org/lyricist";
24403
26106
  var lyrics = "http://schema.org/lyrics";
24404
26107
  var maintainer = "http://schema.org/maintainer";
24405
26108
  var manufacturer2 = "http://schema.org/manufacturer";
24406
- var map2 = "http://schema.org/map";
26109
+ var map3 = "http://schema.org/map";
24407
26110
  var mapType = "http://schema.org/mapType";
24408
26111
  var maps = "http://schema.org/maps";
24409
26112
  var marginOfError = "http://schema.org/marginOfError";
@@ -26771,7 +28474,7 @@ var schemaImport = /* @__PURE__ */ Object.freeze({
26771
28474
  lyrics,
26772
28475
  maintainer,
26773
28476
  manufacturer: manufacturer2,
26774
- map: map2,
28477
+ map: map3,
26775
28478
  mapType,
26776
28479
  maps,
26777
28480
  marginOfError,
@@ -29141,7 +30844,7 @@ var lyricist2 = "https://schema.org/lyricist";
29141
30844
  var lyrics2 = "https://schema.org/lyrics";
29142
30845
  var maintainer2 = "https://schema.org/maintainer";
29143
30846
  var manufacturer3 = "https://schema.org/manufacturer";
29144
- var map3 = "https://schema.org/map";
30847
+ var map4 = "https://schema.org/map";
29145
30848
  var mapType2 = "https://schema.org/mapType";
29146
30849
  var maps2 = "https://schema.org/maps";
29147
30850
  var marginOfError2 = "https://schema.org/marginOfError";
@@ -31509,7 +33212,7 @@ var schema_httpsImport = /* @__PURE__ */ Object.freeze({
31509
33212
  lyrics: lyrics2,
31510
33213
  maintainer: maintainer2,
31511
33214
  manufacturer: manufacturer3,
31512
- map: map3,
33215
+ map: map4,
31513
33216
  mapType: mapType2,
31514
33217
  maps: maps2,
31515
33218
  marginOfError: marginOfError2,
@@ -32639,7 +34342,7 @@ var Mailbox2 = "http://www.w3.org/2007/ont/link#Mailbox";
32639
34342
  var ProtocolEvent2 = "http://www.w3.org/2007/ont/link#ProtocolEvent";
32640
34343
  var RDFDocument2 = "http://www.w3.org/2007/ont/link#RDFDocument";
32641
34344
  var Response3 = "http://www.w3.org/2007/ont/link#Response";
32642
- var Session3 = "http://www.w3.org/2007/ont/link#Session";
34345
+ var Session4 = "http://www.w3.org/2007/ont/link#Session";
32643
34346
  var isMentionedIn2 = "http://www.w3.org/2007/ont/link#isMentionedIn";
32644
34347
  var mentionsClass2 = "http://www.w3.org/2007/ont/link#mentionsClass";
32645
34348
  var protocol3 = "http://www.w3.org/2007/ont/link#protocol";
@@ -32659,7 +34362,7 @@ var tabImport = /* @__PURE__ */ Object.freeze({
32659
34362
  ProtocolEvent: ProtocolEvent2,
32660
34363
  RDFDocument: RDFDocument2,
32661
34364
  Response: Response3,
32662
- Session: Session3,
34365
+ Session: Session4,
32663
34366
  isMentionedIn: isMentionedIn2,
32664
34367
  mentionsClass: mentionsClass2,
32665
34368
  protocol: protocol3,
@@ -32681,7 +34384,7 @@ var Mailbox3 = "http://www.w3.org/2007/ont/link#Mailbox";
32681
34384
  var ProtocolEvent3 = "http://www.w3.org/2007/ont/link#ProtocolEvent";
32682
34385
  var RDFDocument3 = "http://www.w3.org/2007/ont/link#RDFDocument";
32683
34386
  var Response4 = "http://www.w3.org/2007/ont/link#Response";
32684
- var Session4 = "http://www.w3.org/2007/ont/link#Session";
34387
+ var Session5 = "http://www.w3.org/2007/ont/link#Session";
32685
34388
  var isMentionedIn3 = "http://www.w3.org/2007/ont/link#isMentionedIn";
32686
34389
  var mentionsClass3 = "http://www.w3.org/2007/ont/link#mentionsClass";
32687
34390
  var protocol4 = "http://www.w3.org/2007/ont/link#protocol";
@@ -32701,7 +34404,7 @@ var tabontImport = /* @__PURE__ */ Object.freeze({
32701
34404
  ProtocolEvent: ProtocolEvent3,
32702
34405
  RDFDocument: RDFDocument3,
32703
34406
  Response: Response4,
32704
- Session: Session4,
34407
+ Session: Session5,
32705
34408
  isMentionedIn: isMentionedIn3,
32706
34409
  mentionsClass: mentionsClass3,
32707
34410
  protocol: protocol4,
@@ -33178,8 +34881,8 @@ var PodOS = class {
33178
34881
  this.uriService = new UriService(this.store);
33179
34882
  this.fileFetcher = new FileFetcher(this.session);
33180
34883
  }
33181
- handleIncomingRedirect() {
33182
- this.session.handleIncomingRedirect();
34884
+ handleIncomingRedirect(restorePreviousSession = false) {
34885
+ this.session.handleIncomingRedirect(restorePreviousSession);
33183
34886
  }
33184
34887
  fetch(uri6) {
33185
34888
  return this.store.fetch(uri6);
@@ -33202,12 +34905,29 @@ var PodOS = class {
33202
34905
  proposeUriForNewThing(referenceUri, name7) {
33203
34906
  return this.uriService.proposeUriForNewThing(referenceUri, name7);
33204
34907
  }
34908
+ /**
34909
+ * @deprecated use observeSession instead
34910
+ * @param callback
34911
+ */
33205
34912
  trackSession(callback) {
33206
34913
  return this.session.trackSession((session4) => {
33207
34914
  this.store.updater.flagAuthorizationMetadata();
33208
34915
  callback(session4);
33209
34916
  });
33210
34917
  }
34918
+ /**
34919
+ * returns a behavior subject that can be used to observe changes in the session state
34920
+ */
34921
+ observeSession() {
34922
+ return this.session.observeSession();
34923
+ }
34924
+ /**
34925
+ * Calls the provided callback with the original URL that was open before the silent auth redirect
34926
+ * @param callback
34927
+ */
34928
+ onSessionRestore(callback) {
34929
+ this.session.onSessionRestore(callback);
34930
+ }
33211
34931
  /**
33212
34932
  * Fetch the WebId profile and preferences file for the given WebID
33213
34933
  * @param webId