@pod-os/core 0.22.1-rc.77c38a0.0 → 0.23.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 +945 -111
- package/lib/index.js +1021 -183
- package/package.json +2 -1
- package/types/Store.d.ts +13 -1
- package/types/Store.findMembers.spec.d.ts +1 -0
- package/types/index.d.ts +1 -0
- package/types/namespaces/index.d.ts +1 -0
- package/types/profile/ProfileGateway.d.ts +7 -0
- package/types/profile/ProfileGateway.spec.d.ts +1 -0
- package/types/profile/WebIdProfile.d.ts +12 -3
- package/types/profile/index.d.ts +1 -0
- package/types/type-index/TypeIndex.d.ts +13 -0
- package/types/type-index/TypeIndex.spec.d.ts +1 -0
- package/types/type-index/TypeRegistration.d.ts +26 -0
- package/types/type-index/index.d.ts +1 -0
package/lib/index.js
CHANGED
|
@@ -16,11 +16,11 @@ var PodOS = (() => {
|
|
|
16
16
|
for (var name9 in all)
|
|
17
17
|
__defProp(target6, name9, { get: all[name9], enumerable: true });
|
|
18
18
|
};
|
|
19
|
-
var __copyProps = (to2,
|
|
20
|
-
if (
|
|
21
|
-
for (let key3 of __getOwnPropNames(
|
|
19
|
+
var __copyProps = (to2, from2, except, desc) => {
|
|
20
|
+
if (from2 && typeof from2 === "object" || typeof from2 === "function") {
|
|
21
|
+
for (let key3 of __getOwnPropNames(from2))
|
|
22
22
|
if (!__hasOwnProp.call(to2, key3) && key3 !== except)
|
|
23
|
-
__defProp(to2, key3, { get: () =>
|
|
23
|
+
__defProp(to2, key3, { get: () => from2[key3], enumerable: !(desc = __getOwnPropDesc(from2, key3)) || desc.enumerable });
|
|
24
24
|
}
|
|
25
25
|
return to2;
|
|
26
26
|
};
|
|
@@ -1871,10 +1871,10 @@ var PodOS = (() => {
|
|
|
1871
1871
|
lookupPrefix: function(namespaceURI) {
|
|
1872
1872
|
var el = this;
|
|
1873
1873
|
while (el) {
|
|
1874
|
-
var
|
|
1875
|
-
if (
|
|
1876
|
-
for (var n2 in
|
|
1877
|
-
if (Object.prototype.hasOwnProperty.call(
|
|
1874
|
+
var map5 = el._nsMap;
|
|
1875
|
+
if (map5) {
|
|
1876
|
+
for (var n2 in map5) {
|
|
1877
|
+
if (Object.prototype.hasOwnProperty.call(map5, n2) && map5[n2] === namespaceURI) {
|
|
1878
1878
|
return n2;
|
|
1879
1879
|
}
|
|
1880
1880
|
}
|
|
@@ -1887,10 +1887,10 @@ var PodOS = (() => {
|
|
|
1887
1887
|
lookupNamespaceURI: function(prefix3) {
|
|
1888
1888
|
var el = this;
|
|
1889
1889
|
while (el) {
|
|
1890
|
-
var
|
|
1891
|
-
if (
|
|
1892
|
-
if (Object.prototype.hasOwnProperty.call(
|
|
1893
|
-
return
|
|
1890
|
+
var map5 = el._nsMap;
|
|
1891
|
+
if (map5) {
|
|
1892
|
+
if (Object.prototype.hasOwnProperty.call(map5, prefix3)) {
|
|
1893
|
+
return map5[prefix3];
|
|
1894
1894
|
}
|
|
1895
1895
|
}
|
|
1896
1896
|
el = el.nodeType == ATTRIBUTE_NODE ? el.ownerDocument : el.parentNode;
|
|
@@ -10691,8 +10691,8 @@ var PodOS = (() => {
|
|
|
10691
10691
|
context4.base.push(uri6);
|
|
10692
10692
|
return;
|
|
10693
10693
|
}
|
|
10694
|
-
const
|
|
10695
|
-
if (
|
|
10694
|
+
const last4 = context4.base[context4.base.length - 1];
|
|
10695
|
+
if (last4 !== uri6) context4.base.push(new URL(uri6, last4).toString());
|
|
10696
10696
|
},
|
|
10697
10697
|
addPrefix: function(prefix3, uri6) {
|
|
10698
10698
|
const list = context4.data[prefix3];
|
|
@@ -13240,12 +13240,12 @@ var PodOS = (() => {
|
|
|
13240
13240
|
* @param sts - The list of statements to check
|
|
13241
13241
|
* @param from - An index with the array ['subject', 'predicate', 'object', 'why']
|
|
13242
13242
|
*/
|
|
13243
|
-
checkStatementList(sts,
|
|
13244
|
-
if (
|
|
13245
|
-
|
|
13243
|
+
checkStatementList(sts, from2) {
|
|
13244
|
+
if (from2 === void 0) {
|
|
13245
|
+
from2 = 0;
|
|
13246
13246
|
}
|
|
13247
13247
|
var names = ["subject", "predicate", "object", "why"];
|
|
13248
|
-
var origin4 = " found in " + names[
|
|
13248
|
+
var origin4 = " found in " + names[from2] + " index.";
|
|
13249
13249
|
var st2;
|
|
13250
13250
|
for (var j = 0; j < sts.length; j++) {
|
|
13251
13251
|
st2 = sts[j];
|
|
@@ -17228,8 +17228,8 @@ var PodOS = (() => {
|
|
|
17228
17228
|
const rel2 = api.parse(iri.substr(root.length));
|
|
17229
17229
|
const baseSegments = base2.normalizedPath.split("/");
|
|
17230
17230
|
const iriSegments = rel2.normalizedPath.split("/");
|
|
17231
|
-
const
|
|
17232
|
-
while (baseSegments.length > 0 && iriSegments.length >
|
|
17231
|
+
const last4 = rel2.fragment || rel2.query ? 0 : 1;
|
|
17232
|
+
while (baseSegments.length > 0 && iriSegments.length > last4) {
|
|
17233
17233
|
if (baseSegments[0] !== iriSegments[0]) {
|
|
17234
17234
|
break;
|
|
17235
17235
|
}
|
|
@@ -17657,26 +17657,26 @@ var PodOS = (() => {
|
|
|
17657
17657
|
}
|
|
17658
17658
|
return arr;
|
|
17659
17659
|
};
|
|
17660
|
-
Yallist.prototype.slice = function(
|
|
17660
|
+
Yallist.prototype.slice = function(from2, to2) {
|
|
17661
17661
|
to2 = to2 || this.length;
|
|
17662
17662
|
if (to2 < 0) {
|
|
17663
17663
|
to2 += this.length;
|
|
17664
17664
|
}
|
|
17665
|
-
|
|
17666
|
-
if (
|
|
17667
|
-
|
|
17665
|
+
from2 = from2 || 0;
|
|
17666
|
+
if (from2 < 0) {
|
|
17667
|
+
from2 += this.length;
|
|
17668
17668
|
}
|
|
17669
17669
|
var ret = new Yallist();
|
|
17670
|
-
if (to2 <
|
|
17670
|
+
if (to2 < from2 || to2 < 0) {
|
|
17671
17671
|
return ret;
|
|
17672
17672
|
}
|
|
17673
|
-
if (
|
|
17674
|
-
|
|
17673
|
+
if (from2 < 0) {
|
|
17674
|
+
from2 = 0;
|
|
17675
17675
|
}
|
|
17676
17676
|
if (to2 > this.length) {
|
|
17677
17677
|
to2 = this.length;
|
|
17678
17678
|
}
|
|
17679
|
-
for (var i = 0, walker = this.head; walker !== null && i <
|
|
17679
|
+
for (var i = 0, walker = this.head; walker !== null && i < from2; i++) {
|
|
17680
17680
|
walker = walker.next;
|
|
17681
17681
|
}
|
|
17682
17682
|
for (; walker !== null && i < to2; i++, walker = walker.next) {
|
|
@@ -17684,21 +17684,21 @@ var PodOS = (() => {
|
|
|
17684
17684
|
}
|
|
17685
17685
|
return ret;
|
|
17686
17686
|
};
|
|
17687
|
-
Yallist.prototype.sliceReverse = function(
|
|
17687
|
+
Yallist.prototype.sliceReverse = function(from2, to2) {
|
|
17688
17688
|
to2 = to2 || this.length;
|
|
17689
17689
|
if (to2 < 0) {
|
|
17690
17690
|
to2 += this.length;
|
|
17691
17691
|
}
|
|
17692
|
-
|
|
17693
|
-
if (
|
|
17694
|
-
|
|
17692
|
+
from2 = from2 || 0;
|
|
17693
|
+
if (from2 < 0) {
|
|
17694
|
+
from2 += this.length;
|
|
17695
17695
|
}
|
|
17696
17696
|
var ret = new Yallist();
|
|
17697
|
-
if (to2 <
|
|
17697
|
+
if (to2 < from2 || to2 < 0) {
|
|
17698
17698
|
return ret;
|
|
17699
17699
|
}
|
|
17700
|
-
if (
|
|
17701
|
-
|
|
17700
|
+
if (from2 < 0) {
|
|
17701
|
+
from2 = 0;
|
|
17702
17702
|
}
|
|
17703
17703
|
if (to2 > this.length) {
|
|
17704
17704
|
to2 = this.length;
|
|
@@ -17706,7 +17706,7 @@ var PodOS = (() => {
|
|
|
17706
17706
|
for (var i = this.length, walker = this.tail; walker !== null && i > to2; i--) {
|
|
17707
17707
|
walker = walker.prev;
|
|
17708
17708
|
}
|
|
17709
|
-
for (; walker !== null && i >
|
|
17709
|
+
for (; walker !== null && i > from2; i--, walker = walker.prev) {
|
|
17710
17710
|
ret.push(walker.value);
|
|
17711
17711
|
}
|
|
17712
17712
|
return ret;
|
|
@@ -18748,16 +18748,16 @@ var PodOS = (() => {
|
|
|
18748
18748
|
});
|
|
18749
18749
|
if (_isObject(ctx[key3]) && "@context" in ctx[key3]) {
|
|
18750
18750
|
const keyCtx = ctx[key3]["@context"];
|
|
18751
|
-
let
|
|
18751
|
+
let process4 = true;
|
|
18752
18752
|
if (_isString(keyCtx)) {
|
|
18753
18753
|
const url7 = prependBase(options.base, keyCtx);
|
|
18754
18754
|
if (cycles.has(url7)) {
|
|
18755
|
-
|
|
18755
|
+
process4 = false;
|
|
18756
18756
|
} else {
|
|
18757
18757
|
cycles.add(url7);
|
|
18758
18758
|
}
|
|
18759
18759
|
}
|
|
18760
|
-
if (
|
|
18760
|
+
if (process4) {
|
|
18761
18761
|
try {
|
|
18762
18762
|
await api.process({
|
|
18763
18763
|
activeCtx: rval.clone(),
|
|
@@ -21401,8 +21401,8 @@ var PodOS = (() => {
|
|
|
21401
21401
|
const first4 = { termType: "NamedNode", value: RDF_FIRST };
|
|
21402
21402
|
const rest3 = { termType: "NamedNode", value: RDF_REST };
|
|
21403
21403
|
const nil = { termType: "NamedNode", value: RDF_NIL };
|
|
21404
|
-
const
|
|
21405
|
-
const result6 =
|
|
21404
|
+
const last4 = list.pop();
|
|
21405
|
+
const result6 = last4 ? { termType: "BlankNode", value: issuer2.getId() } : nil;
|
|
21406
21406
|
let subject8 = result6;
|
|
21407
21407
|
for (const item4 of list) {
|
|
21408
21408
|
const object8 = _objectToRDF(
|
|
@@ -21428,9 +21428,9 @@ var PodOS = (() => {
|
|
|
21428
21428
|
});
|
|
21429
21429
|
subject8 = next4;
|
|
21430
21430
|
}
|
|
21431
|
-
if (
|
|
21431
|
+
if (last4) {
|
|
21432
21432
|
const object8 = _objectToRDF(
|
|
21433
|
-
|
|
21433
|
+
last4,
|
|
21434
21434
|
issuer2,
|
|
21435
21435
|
dataset3,
|
|
21436
21436
|
graphTerm,
|
|
@@ -23982,10 +23982,10 @@ var PodOS = (() => {
|
|
|
23982
23982
|
}
|
|
23983
23983
|
return allocUnsafe(arg2);
|
|
23984
23984
|
}
|
|
23985
|
-
return
|
|
23985
|
+
return from2(arg2, encodingOrOffset, length3);
|
|
23986
23986
|
}
|
|
23987
23987
|
Buffer3.poolSize = 8192;
|
|
23988
|
-
function
|
|
23988
|
+
function from2(value7, encodingOrOffset, length3) {
|
|
23989
23989
|
if (typeof value7 === "string") {
|
|
23990
23990
|
return fromString(value7, encodingOrOffset);
|
|
23991
23991
|
}
|
|
@@ -24022,7 +24022,7 @@ var PodOS = (() => {
|
|
|
24022
24022
|
);
|
|
24023
24023
|
}
|
|
24024
24024
|
Buffer3.from = function(value7, encodingOrOffset, length3) {
|
|
24025
|
-
return
|
|
24025
|
+
return from2(value7, encodingOrOffset, length3);
|
|
24026
24026
|
};
|
|
24027
24027
|
Object.setPrototypeOf(Buffer3.prototype, Uint8Array.prototype);
|
|
24028
24028
|
Object.setPrototypeOf(Buffer3, Uint8Array);
|
|
@@ -24071,7 +24071,7 @@ var PodOS = (() => {
|
|
|
24071
24071
|
}
|
|
24072
24072
|
return buf;
|
|
24073
24073
|
}
|
|
24074
|
-
function
|
|
24074
|
+
function fromArrayLike2(array) {
|
|
24075
24075
|
const length3 = array.length < 0 ? 0 : checked(array.length) | 0;
|
|
24076
24076
|
const buf = createBuffer(length3);
|
|
24077
24077
|
for (let i = 0; i < length3; i += 1) {
|
|
@@ -24084,7 +24084,7 @@ var PodOS = (() => {
|
|
|
24084
24084
|
const copy = new Uint8Array(arrayView);
|
|
24085
24085
|
return fromArrayBuffer(copy.buffer, copy.byteOffset, copy.byteLength);
|
|
24086
24086
|
}
|
|
24087
|
-
return
|
|
24087
|
+
return fromArrayLike2(arrayView);
|
|
24088
24088
|
}
|
|
24089
24089
|
function fromArrayBuffer(array, byteOffset, length3) {
|
|
24090
24090
|
if (byteOffset < 0 || array.byteLength < byteOffset) {
|
|
@@ -24118,10 +24118,10 @@ var PodOS = (() => {
|
|
|
24118
24118
|
if (typeof obj.length !== "number" || numberIsNaN(obj.length)) {
|
|
24119
24119
|
return createBuffer(0);
|
|
24120
24120
|
}
|
|
24121
|
-
return
|
|
24121
|
+
return fromArrayLike2(obj);
|
|
24122
24122
|
}
|
|
24123
24123
|
if (obj.type === "Buffer" && Array.isArray(obj.data)) {
|
|
24124
|
-
return
|
|
24124
|
+
return fromArrayLike2(obj.data);
|
|
24125
24125
|
}
|
|
24126
24126
|
}
|
|
24127
24127
|
function checked(length3) {
|
|
@@ -24179,7 +24179,7 @@ var PodOS = (() => {
|
|
|
24179
24179
|
return false;
|
|
24180
24180
|
}
|
|
24181
24181
|
};
|
|
24182
|
-
Buffer3.concat = function
|
|
24182
|
+
Buffer3.concat = function concat2(list, length3) {
|
|
24183
24183
|
if (!Array.isArray(list)) {
|
|
24184
24184
|
throw new TypeError('"list" argument must be an Array of Buffers');
|
|
24185
24185
|
}
|
|
@@ -24817,24 +24817,24 @@ var PodOS = (() => {
|
|
|
24817
24817
|
offset3 = offset3 >>> 0;
|
|
24818
24818
|
validateNumber(offset3, "offset");
|
|
24819
24819
|
const first4 = this[offset3];
|
|
24820
|
-
const
|
|
24821
|
-
if (first4 === void 0 ||
|
|
24820
|
+
const last4 = this[offset3 + 7];
|
|
24821
|
+
if (first4 === void 0 || last4 === void 0) {
|
|
24822
24822
|
boundsError(offset3, this.length - 8);
|
|
24823
24823
|
}
|
|
24824
24824
|
const lo = first4 + this[++offset3] * 2 ** 8 + this[++offset3] * 2 ** 16 + this[++offset3] * 2 ** 24;
|
|
24825
|
-
const hi = this[++offset3] + this[++offset3] * 2 ** 8 + this[++offset3] * 2 ** 16 +
|
|
24825
|
+
const hi = this[++offset3] + this[++offset3] * 2 ** 8 + this[++offset3] * 2 ** 16 + last4 * 2 ** 24;
|
|
24826
24826
|
return BigInt(lo) + (BigInt(hi) << BigInt(32));
|
|
24827
24827
|
});
|
|
24828
24828
|
Buffer3.prototype.readBigUInt64BE = defineBigIntMethod(function readBigUInt64BE(offset3) {
|
|
24829
24829
|
offset3 = offset3 >>> 0;
|
|
24830
24830
|
validateNumber(offset3, "offset");
|
|
24831
24831
|
const first4 = this[offset3];
|
|
24832
|
-
const
|
|
24833
|
-
if (first4 === void 0 ||
|
|
24832
|
+
const last4 = this[offset3 + 7];
|
|
24833
|
+
if (first4 === void 0 || last4 === void 0) {
|
|
24834
24834
|
boundsError(offset3, this.length - 8);
|
|
24835
24835
|
}
|
|
24836
24836
|
const hi = first4 * 2 ** 24 + this[++offset3] * 2 ** 16 + this[++offset3] * 2 ** 8 + this[++offset3];
|
|
24837
|
-
const lo = this[++offset3] * 2 ** 24 + this[++offset3] * 2 ** 16 + this[++offset3] * 2 ** 8 +
|
|
24837
|
+
const lo = this[++offset3] * 2 ** 24 + this[++offset3] * 2 ** 16 + this[++offset3] * 2 ** 8 + last4;
|
|
24838
24838
|
return (BigInt(hi) << BigInt(32)) + BigInt(lo);
|
|
24839
24839
|
});
|
|
24840
24840
|
Buffer3.prototype.readIntLE = function readIntLE(offset3, byteLength2, noAssert) {
|
|
@@ -24897,24 +24897,24 @@ var PodOS = (() => {
|
|
|
24897
24897
|
offset3 = offset3 >>> 0;
|
|
24898
24898
|
validateNumber(offset3, "offset");
|
|
24899
24899
|
const first4 = this[offset3];
|
|
24900
|
-
const
|
|
24901
|
-
if (first4 === void 0 ||
|
|
24900
|
+
const last4 = this[offset3 + 7];
|
|
24901
|
+
if (first4 === void 0 || last4 === void 0) {
|
|
24902
24902
|
boundsError(offset3, this.length - 8);
|
|
24903
24903
|
}
|
|
24904
|
-
const val = this[offset3 + 4] + this[offset3 + 5] * 2 ** 8 + this[offset3 + 6] * 2 ** 16 + (
|
|
24904
|
+
const val = this[offset3 + 4] + this[offset3 + 5] * 2 ** 8 + this[offset3 + 6] * 2 ** 16 + (last4 << 24);
|
|
24905
24905
|
return (BigInt(val) << BigInt(32)) + BigInt(first4 + this[++offset3] * 2 ** 8 + this[++offset3] * 2 ** 16 + this[++offset3] * 2 ** 24);
|
|
24906
24906
|
});
|
|
24907
24907
|
Buffer3.prototype.readBigInt64BE = defineBigIntMethod(function readBigInt64BE(offset3) {
|
|
24908
24908
|
offset3 = offset3 >>> 0;
|
|
24909
24909
|
validateNumber(offset3, "offset");
|
|
24910
24910
|
const first4 = this[offset3];
|
|
24911
|
-
const
|
|
24912
|
-
if (first4 === void 0 ||
|
|
24911
|
+
const last4 = this[offset3 + 7];
|
|
24912
|
+
if (first4 === void 0 || last4 === void 0) {
|
|
24913
24913
|
boundsError(offset3, this.length - 8);
|
|
24914
24914
|
}
|
|
24915
24915
|
const val = (first4 << 24) + // Overflow
|
|
24916
24916
|
this[++offset3] * 2 ** 16 + this[++offset3] * 2 ** 8 + this[++offset3];
|
|
24917
|
-
return (BigInt(val) << BigInt(32)) + BigInt(this[++offset3] * 2 ** 24 + this[++offset3] * 2 ** 16 + this[++offset3] * 2 ** 8 +
|
|
24917
|
+
return (BigInt(val) << BigInt(32)) + BigInt(this[++offset3] * 2 ** 24 + this[++offset3] * 2 ** 16 + this[++offset3] * 2 ** 8 + last4);
|
|
24918
24918
|
});
|
|
24919
24919
|
Buffer3.prototype.readFloatLE = function readFloatLE(offset3, noAssert) {
|
|
24920
24920
|
offset3 = offset3 >>> 0;
|
|
@@ -28725,18 +28725,18 @@ var PodOS = (() => {
|
|
|
28725
28725
|
return value7;
|
|
28726
28726
|
}
|
|
28727
28727
|
function iteratorFor(items2) {
|
|
28728
|
-
var
|
|
28728
|
+
var iterator2 = {
|
|
28729
28729
|
next: function() {
|
|
28730
28730
|
var value7 = items2.shift();
|
|
28731
28731
|
return { done: value7 === void 0, value: value7 };
|
|
28732
28732
|
}
|
|
28733
28733
|
};
|
|
28734
28734
|
if (support2.iterable) {
|
|
28735
|
-
|
|
28736
|
-
return
|
|
28735
|
+
iterator2[Symbol.iterator] = function() {
|
|
28736
|
+
return iterator2;
|
|
28737
28737
|
};
|
|
28738
28738
|
}
|
|
28739
|
-
return
|
|
28739
|
+
return iterator2;
|
|
28740
28740
|
}
|
|
28741
28741
|
function Headers2(headers) {
|
|
28742
28742
|
this.map = {};
|
|
@@ -31716,11 +31716,11 @@ _:patch
|
|
|
31716
31716
|
for (var name9 in all)
|
|
31717
31717
|
__defProp2(target6, name9, { get: all[name9], enumerable: true });
|
|
31718
31718
|
};
|
|
31719
|
-
var __copyProps2 = (to2,
|
|
31720
|
-
if (
|
|
31721
|
-
for (let key3 of __getOwnPropNames2(
|
|
31719
|
+
var __copyProps2 = (to2, from2, except, desc) => {
|
|
31720
|
+
if (from2 && typeof from2 === "object" || typeof from2 === "function") {
|
|
31721
|
+
for (let key3 of __getOwnPropNames2(from2))
|
|
31722
31722
|
if (!__hasOwnProp2.call(to2, key3) && key3 !== except)
|
|
31723
|
-
__defProp2(to2, key3, { get: () =>
|
|
31723
|
+
__defProp2(to2, key3, { get: () => from2[key3], enumerable: !(desc = __getOwnPropDesc2(from2, key3)) || desc.enumerable });
|
|
31724
31724
|
}
|
|
31725
31725
|
return to2;
|
|
31726
31726
|
};
|
|
@@ -34753,6 +34753,7 @@ _:patch
|
|
|
34753
34753
|
OfflineCapableFetcher: () => OfflineCapableFetcher,
|
|
34754
34754
|
PictureGateway: () => PictureGateway,
|
|
34755
34755
|
PodOS: () => PodOS,
|
|
34756
|
+
ProfileGateway: () => ProfileGateway,
|
|
34756
34757
|
RdfDocument: () => RdfDocument,
|
|
34757
34758
|
SearchGateway: () => SearchGateway,
|
|
34758
34759
|
SearchIndex: () => SearchIndex,
|
|
@@ -34785,6 +34786,102 @@ _:patch
|
|
|
34785
34786
|
}
|
|
34786
34787
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
34787
34788
|
}
|
|
34789
|
+
function __awaiter(thisArg, _arguments, P, generator3) {
|
|
34790
|
+
function adopt(value7) {
|
|
34791
|
+
return value7 instanceof P ? value7 : new P(function(resolve) {
|
|
34792
|
+
resolve(value7);
|
|
34793
|
+
});
|
|
34794
|
+
}
|
|
34795
|
+
return new (P || (P = Promise))(function(resolve, reject) {
|
|
34796
|
+
function fulfilled(value7) {
|
|
34797
|
+
try {
|
|
34798
|
+
step4(generator3.next(value7));
|
|
34799
|
+
} catch (e) {
|
|
34800
|
+
reject(e);
|
|
34801
|
+
}
|
|
34802
|
+
}
|
|
34803
|
+
function rejected(value7) {
|
|
34804
|
+
try {
|
|
34805
|
+
step4(generator3["throw"](value7));
|
|
34806
|
+
} catch (e) {
|
|
34807
|
+
reject(e);
|
|
34808
|
+
}
|
|
34809
|
+
}
|
|
34810
|
+
function step4(result6) {
|
|
34811
|
+
result6.done ? resolve(result6.value) : adopt(result6.value).then(fulfilled, rejected);
|
|
34812
|
+
}
|
|
34813
|
+
step4((generator3 = generator3.apply(thisArg, _arguments || [])).next());
|
|
34814
|
+
});
|
|
34815
|
+
}
|
|
34816
|
+
function __generator(thisArg, body) {
|
|
34817
|
+
var _ = { label: 0, sent: function() {
|
|
34818
|
+
if (t[0] & 1) throw t[1];
|
|
34819
|
+
return t[1];
|
|
34820
|
+
}, trys: [], ops: [] }, f, y, t, g;
|
|
34821
|
+
return g = { next: verb2(0), "throw": verb2(1), "return": verb2(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() {
|
|
34822
|
+
return this;
|
|
34823
|
+
}), g;
|
|
34824
|
+
function verb2(n2) {
|
|
34825
|
+
return function(v2) {
|
|
34826
|
+
return step4([n2, v2]);
|
|
34827
|
+
};
|
|
34828
|
+
}
|
|
34829
|
+
function step4(op2) {
|
|
34830
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
34831
|
+
while (g && (g = 0, op2[0] && (_ = 0)), _) try {
|
|
34832
|
+
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) return t;
|
|
34833
|
+
if (y = 0, t) op2 = [op2[0] & 2, t.value];
|
|
34834
|
+
switch (op2[0]) {
|
|
34835
|
+
case 0:
|
|
34836
|
+
case 1:
|
|
34837
|
+
t = op2;
|
|
34838
|
+
break;
|
|
34839
|
+
case 4:
|
|
34840
|
+
_.label++;
|
|
34841
|
+
return { value: op2[1], done: false };
|
|
34842
|
+
case 5:
|
|
34843
|
+
_.label++;
|
|
34844
|
+
y = op2[1];
|
|
34845
|
+
op2 = [0];
|
|
34846
|
+
continue;
|
|
34847
|
+
case 7:
|
|
34848
|
+
op2 = _.ops.pop();
|
|
34849
|
+
_.trys.pop();
|
|
34850
|
+
continue;
|
|
34851
|
+
default:
|
|
34852
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op2[0] === 6 || op2[0] === 2)) {
|
|
34853
|
+
_ = 0;
|
|
34854
|
+
continue;
|
|
34855
|
+
}
|
|
34856
|
+
if (op2[0] === 3 && (!t || op2[1] > t[0] && op2[1] < t[3])) {
|
|
34857
|
+
_.label = op2[1];
|
|
34858
|
+
break;
|
|
34859
|
+
}
|
|
34860
|
+
if (op2[0] === 6 && _.label < t[1]) {
|
|
34861
|
+
_.label = t[1];
|
|
34862
|
+
t = op2;
|
|
34863
|
+
break;
|
|
34864
|
+
}
|
|
34865
|
+
if (t && _.label < t[2]) {
|
|
34866
|
+
_.label = t[2];
|
|
34867
|
+
_.ops.push(op2);
|
|
34868
|
+
break;
|
|
34869
|
+
}
|
|
34870
|
+
if (t[2]) _.ops.pop();
|
|
34871
|
+
_.trys.pop();
|
|
34872
|
+
continue;
|
|
34873
|
+
}
|
|
34874
|
+
op2 = body.call(thisArg, _);
|
|
34875
|
+
} catch (e) {
|
|
34876
|
+
op2 = [6, e];
|
|
34877
|
+
y = 0;
|
|
34878
|
+
} finally {
|
|
34879
|
+
f = t = 0;
|
|
34880
|
+
}
|
|
34881
|
+
if (op2[0] & 5) throw op2[1];
|
|
34882
|
+
return { value: op2[0] ? op2[1] : void 0, done: true };
|
|
34883
|
+
}
|
|
34884
|
+
}
|
|
34788
34885
|
function __values(o) {
|
|
34789
34886
|
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
34790
34887
|
if (m) return m.call(o);
|
|
@@ -34813,14 +34910,69 @@ _:patch
|
|
|
34813
34910
|
}
|
|
34814
34911
|
return ar;
|
|
34815
34912
|
}
|
|
34816
|
-
function __spreadArray(to2,
|
|
34817
|
-
if (pack || arguments.length === 2) for (var i = 0, l =
|
|
34818
|
-
if (ar || !(i in
|
|
34819
|
-
if (!ar) ar = Array.prototype.slice.call(
|
|
34820
|
-
ar[i] =
|
|
34913
|
+
function __spreadArray(to2, from2, pack) {
|
|
34914
|
+
if (pack || arguments.length === 2) for (var i = 0, l = from2.length, ar; i < l; i++) {
|
|
34915
|
+
if (ar || !(i in from2)) {
|
|
34916
|
+
if (!ar) ar = Array.prototype.slice.call(from2, 0, i);
|
|
34917
|
+
ar[i] = from2[i];
|
|
34821
34918
|
}
|
|
34822
34919
|
}
|
|
34823
|
-
return to2.concat(ar || Array.prototype.slice.call(
|
|
34920
|
+
return to2.concat(ar || Array.prototype.slice.call(from2));
|
|
34921
|
+
}
|
|
34922
|
+
function __await(v2) {
|
|
34923
|
+
return this instanceof __await ? (this.v = v2, this) : new __await(v2);
|
|
34924
|
+
}
|
|
34925
|
+
function __asyncGenerator(thisArg, _arguments, generator3) {
|
|
34926
|
+
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
34927
|
+
var g = generator3.apply(thisArg, _arguments || []), i, q = [];
|
|
34928
|
+
return i = {}, verb2("next"), verb2("throw"), verb2("return"), i[Symbol.asyncIterator] = function() {
|
|
34929
|
+
return this;
|
|
34930
|
+
}, i;
|
|
34931
|
+
function verb2(n2) {
|
|
34932
|
+
if (g[n2]) i[n2] = function(v2) {
|
|
34933
|
+
return new Promise(function(a, b) {
|
|
34934
|
+
q.push([n2, v2, a, b]) > 1 || resume(n2, v2);
|
|
34935
|
+
});
|
|
34936
|
+
};
|
|
34937
|
+
}
|
|
34938
|
+
function resume(n2, v2) {
|
|
34939
|
+
try {
|
|
34940
|
+
step4(g[n2](v2));
|
|
34941
|
+
} catch (e) {
|
|
34942
|
+
settle(q[0][3], e);
|
|
34943
|
+
}
|
|
34944
|
+
}
|
|
34945
|
+
function step4(r) {
|
|
34946
|
+
r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r);
|
|
34947
|
+
}
|
|
34948
|
+
function fulfill(value7) {
|
|
34949
|
+
resume("next", value7);
|
|
34950
|
+
}
|
|
34951
|
+
function reject(value7) {
|
|
34952
|
+
resume("throw", value7);
|
|
34953
|
+
}
|
|
34954
|
+
function settle(f, v2) {
|
|
34955
|
+
if (f(v2), q.shift(), q.length) resume(q[0][0], q[0][1]);
|
|
34956
|
+
}
|
|
34957
|
+
}
|
|
34958
|
+
function __asyncValues(o) {
|
|
34959
|
+
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
34960
|
+
var m = o[Symbol.asyncIterator], i;
|
|
34961
|
+
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() {
|
|
34962
|
+
return this;
|
|
34963
|
+
}, i);
|
|
34964
|
+
function verb2(n2) {
|
|
34965
|
+
i[n2] = o[n2] && function(v2) {
|
|
34966
|
+
return new Promise(function(resolve, reject) {
|
|
34967
|
+
v2 = o[n2](v2), settle(resolve, reject, v2.done, v2.value);
|
|
34968
|
+
});
|
|
34969
|
+
};
|
|
34970
|
+
}
|
|
34971
|
+
function settle(resolve, reject, d, v2) {
|
|
34972
|
+
Promise.resolve(v2).then(function(v3) {
|
|
34973
|
+
resolve({ value: v3, done: d });
|
|
34974
|
+
}, reject);
|
|
34975
|
+
}
|
|
34824
34976
|
}
|
|
34825
34977
|
|
|
34826
34978
|
// ../node_modules/rxjs/dist/esm5/internal/util/isFunction.js
|
|
@@ -35275,18 +35427,18 @@ _:patch
|
|
|
35275
35427
|
|
|
35276
35428
|
// ../node_modules/rxjs/dist/esm5/internal/Observable.js
|
|
35277
35429
|
var Observable = (function() {
|
|
35278
|
-
function
|
|
35430
|
+
function Observable3(subscribe) {
|
|
35279
35431
|
if (subscribe) {
|
|
35280
35432
|
this._subscribe = subscribe;
|
|
35281
35433
|
}
|
|
35282
35434
|
}
|
|
35283
|
-
|
|
35284
|
-
var observable2 = new
|
|
35435
|
+
Observable3.prototype.lift = function(operator2) {
|
|
35436
|
+
var observable2 = new Observable3();
|
|
35285
35437
|
observable2.source = this;
|
|
35286
35438
|
observable2.operator = operator2;
|
|
35287
35439
|
return observable2;
|
|
35288
35440
|
};
|
|
35289
|
-
|
|
35441
|
+
Observable3.prototype.subscribe = function(observerOrNext, error4, complete2) {
|
|
35290
35442
|
var _this = this;
|
|
35291
35443
|
var subscriber3 = isSubscriber(observerOrNext) ? observerOrNext : new SafeSubscriber(observerOrNext, error4, complete2);
|
|
35292
35444
|
errorContext(function() {
|
|
@@ -35295,14 +35447,14 @@ _:patch
|
|
|
35295
35447
|
});
|
|
35296
35448
|
return subscriber3;
|
|
35297
35449
|
};
|
|
35298
|
-
|
|
35450
|
+
Observable3.prototype._trySubscribe = function(sink) {
|
|
35299
35451
|
try {
|
|
35300
35452
|
return this._subscribe(sink);
|
|
35301
35453
|
} catch (err2) {
|
|
35302
35454
|
sink.error(err2);
|
|
35303
35455
|
}
|
|
35304
35456
|
};
|
|
35305
|
-
|
|
35457
|
+
Observable3.prototype.forEach = function(next4, promiseCtor) {
|
|
35306
35458
|
var _this = this;
|
|
35307
35459
|
promiseCtor = getPromiseCtor(promiseCtor);
|
|
35308
35460
|
return new promiseCtor(function(resolve, reject) {
|
|
@@ -35321,21 +35473,21 @@ _:patch
|
|
|
35321
35473
|
_this.subscribe(subscriber3);
|
|
35322
35474
|
});
|
|
35323
35475
|
};
|
|
35324
|
-
|
|
35476
|
+
Observable3.prototype._subscribe = function(subscriber3) {
|
|
35325
35477
|
var _a;
|
|
35326
35478
|
return (_a = this.source) === null || _a === void 0 ? void 0 : _a.subscribe(subscriber3);
|
|
35327
35479
|
};
|
|
35328
|
-
|
|
35480
|
+
Observable3.prototype[observable] = function() {
|
|
35329
35481
|
return this;
|
|
35330
35482
|
};
|
|
35331
|
-
|
|
35483
|
+
Observable3.prototype.pipe = function() {
|
|
35332
35484
|
var operations = [];
|
|
35333
35485
|
for (var _i = 0; _i < arguments.length; _i++) {
|
|
35334
35486
|
operations[_i] = arguments[_i];
|
|
35335
35487
|
}
|
|
35336
35488
|
return pipeFromArray(operations)(this);
|
|
35337
35489
|
};
|
|
35338
|
-
|
|
35490
|
+
Observable3.prototype.toPromise = function(promiseCtor) {
|
|
35339
35491
|
var _this = this;
|
|
35340
35492
|
promiseCtor = getPromiseCtor(promiseCtor);
|
|
35341
35493
|
return new promiseCtor(function(resolve, reject) {
|
|
@@ -35349,10 +35501,10 @@ _:patch
|
|
|
35349
35501
|
});
|
|
35350
35502
|
});
|
|
35351
35503
|
};
|
|
35352
|
-
|
|
35353
|
-
return new
|
|
35504
|
+
Observable3.create = function(subscribe) {
|
|
35505
|
+
return new Observable3(subscribe);
|
|
35354
35506
|
};
|
|
35355
|
-
return
|
|
35507
|
+
return Observable3;
|
|
35356
35508
|
})();
|
|
35357
35509
|
function getPromiseCtor(promiseCtor) {
|
|
35358
35510
|
var _a;
|
|
@@ -35630,6 +35782,585 @@ _:patch
|
|
|
35630
35782
|
return BehaviorSubject3;
|
|
35631
35783
|
})(Subject);
|
|
35632
35784
|
|
|
35785
|
+
// ../node_modules/rxjs/dist/esm5/internal/observable/empty.js
|
|
35786
|
+
var EMPTY = new Observable(function(subscriber3) {
|
|
35787
|
+
return subscriber3.complete();
|
|
35788
|
+
});
|
|
35789
|
+
|
|
35790
|
+
// ../node_modules/rxjs/dist/esm5/internal/util/isScheduler.js
|
|
35791
|
+
function isScheduler(value7) {
|
|
35792
|
+
return value7 && isFunction(value7.schedule);
|
|
35793
|
+
}
|
|
35794
|
+
|
|
35795
|
+
// ../node_modules/rxjs/dist/esm5/internal/util/args.js
|
|
35796
|
+
function last(arr) {
|
|
35797
|
+
return arr[arr.length - 1];
|
|
35798
|
+
}
|
|
35799
|
+
function popScheduler(args) {
|
|
35800
|
+
return isScheduler(last(args)) ? args.pop() : void 0;
|
|
35801
|
+
}
|
|
35802
|
+
function popNumber(args, defaultValue5) {
|
|
35803
|
+
return typeof last(args) === "number" ? args.pop() : defaultValue5;
|
|
35804
|
+
}
|
|
35805
|
+
|
|
35806
|
+
// ../node_modules/rxjs/dist/esm5/internal/util/isArrayLike.js
|
|
35807
|
+
var isArrayLike = (function(x) {
|
|
35808
|
+
return x && typeof x.length === "number" && typeof x !== "function";
|
|
35809
|
+
});
|
|
35810
|
+
|
|
35811
|
+
// ../node_modules/rxjs/dist/esm5/internal/util/isPromise.js
|
|
35812
|
+
function isPromise(value7) {
|
|
35813
|
+
return isFunction(value7 === null || value7 === void 0 ? void 0 : value7.then);
|
|
35814
|
+
}
|
|
35815
|
+
|
|
35816
|
+
// ../node_modules/rxjs/dist/esm5/internal/util/isInteropObservable.js
|
|
35817
|
+
function isInteropObservable(input2) {
|
|
35818
|
+
return isFunction(input2[observable]);
|
|
35819
|
+
}
|
|
35820
|
+
|
|
35821
|
+
// ../node_modules/rxjs/dist/esm5/internal/util/isAsyncIterable.js
|
|
35822
|
+
function isAsyncIterable(obj) {
|
|
35823
|
+
return Symbol.asyncIterator && isFunction(obj === null || obj === void 0 ? void 0 : obj[Symbol.asyncIterator]);
|
|
35824
|
+
}
|
|
35825
|
+
|
|
35826
|
+
// ../node_modules/rxjs/dist/esm5/internal/util/throwUnobservableError.js
|
|
35827
|
+
function createInvalidObservableTypeError(input2) {
|
|
35828
|
+
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.");
|
|
35829
|
+
}
|
|
35830
|
+
|
|
35831
|
+
// ../node_modules/rxjs/dist/esm5/internal/symbol/iterator.js
|
|
35832
|
+
function getSymbolIterator() {
|
|
35833
|
+
if (typeof Symbol !== "function" || !Symbol.iterator) {
|
|
35834
|
+
return "@@iterator";
|
|
35835
|
+
}
|
|
35836
|
+
return Symbol.iterator;
|
|
35837
|
+
}
|
|
35838
|
+
var iterator = getSymbolIterator();
|
|
35839
|
+
|
|
35840
|
+
// ../node_modules/rxjs/dist/esm5/internal/util/isIterable.js
|
|
35841
|
+
function isIterable(input2) {
|
|
35842
|
+
return isFunction(input2 === null || input2 === void 0 ? void 0 : input2[iterator]);
|
|
35843
|
+
}
|
|
35844
|
+
|
|
35845
|
+
// ../node_modules/rxjs/dist/esm5/internal/util/isReadableStreamLike.js
|
|
35846
|
+
function readableStreamLikeToAsyncGenerator(readableStream) {
|
|
35847
|
+
return __asyncGenerator(this, arguments, function readableStreamLikeToAsyncGenerator_1() {
|
|
35848
|
+
var reader, _a, value7, done;
|
|
35849
|
+
return __generator(this, function(_b) {
|
|
35850
|
+
switch (_b.label) {
|
|
35851
|
+
case 0:
|
|
35852
|
+
reader = readableStream.getReader();
|
|
35853
|
+
_b.label = 1;
|
|
35854
|
+
case 1:
|
|
35855
|
+
_b.trys.push([1, , 9, 10]);
|
|
35856
|
+
_b.label = 2;
|
|
35857
|
+
case 2:
|
|
35858
|
+
if (false) return [3, 8];
|
|
35859
|
+
return [4, __await(reader.read())];
|
|
35860
|
+
case 3:
|
|
35861
|
+
_a = _b.sent(), value7 = _a.value, done = _a.done;
|
|
35862
|
+
if (!done) return [3, 5];
|
|
35863
|
+
return [4, __await(void 0)];
|
|
35864
|
+
case 4:
|
|
35865
|
+
return [2, _b.sent()];
|
|
35866
|
+
case 5:
|
|
35867
|
+
return [4, __await(value7)];
|
|
35868
|
+
case 6:
|
|
35869
|
+
return [4, _b.sent()];
|
|
35870
|
+
case 7:
|
|
35871
|
+
_b.sent();
|
|
35872
|
+
return [3, 2];
|
|
35873
|
+
case 8:
|
|
35874
|
+
return [3, 10];
|
|
35875
|
+
case 9:
|
|
35876
|
+
reader.releaseLock();
|
|
35877
|
+
return [7];
|
|
35878
|
+
case 10:
|
|
35879
|
+
return [2];
|
|
35880
|
+
}
|
|
35881
|
+
});
|
|
35882
|
+
});
|
|
35883
|
+
}
|
|
35884
|
+
function isReadableStreamLike(obj) {
|
|
35885
|
+
return isFunction(obj === null || obj === void 0 ? void 0 : obj.getReader);
|
|
35886
|
+
}
|
|
35887
|
+
|
|
35888
|
+
// ../node_modules/rxjs/dist/esm5/internal/observable/innerFrom.js
|
|
35889
|
+
function innerFrom(input2) {
|
|
35890
|
+
if (input2 instanceof Observable) {
|
|
35891
|
+
return input2;
|
|
35892
|
+
}
|
|
35893
|
+
if (input2 != null) {
|
|
35894
|
+
if (isInteropObservable(input2)) {
|
|
35895
|
+
return fromInteropObservable(input2);
|
|
35896
|
+
}
|
|
35897
|
+
if (isArrayLike(input2)) {
|
|
35898
|
+
return fromArrayLike(input2);
|
|
35899
|
+
}
|
|
35900
|
+
if (isPromise(input2)) {
|
|
35901
|
+
return fromPromise(input2);
|
|
35902
|
+
}
|
|
35903
|
+
if (isAsyncIterable(input2)) {
|
|
35904
|
+
return fromAsyncIterable(input2);
|
|
35905
|
+
}
|
|
35906
|
+
if (isIterable(input2)) {
|
|
35907
|
+
return fromIterable(input2);
|
|
35908
|
+
}
|
|
35909
|
+
if (isReadableStreamLike(input2)) {
|
|
35910
|
+
return fromReadableStreamLike(input2);
|
|
35911
|
+
}
|
|
35912
|
+
}
|
|
35913
|
+
throw createInvalidObservableTypeError(input2);
|
|
35914
|
+
}
|
|
35915
|
+
function fromInteropObservable(obj) {
|
|
35916
|
+
return new Observable(function(subscriber3) {
|
|
35917
|
+
var obs = obj[observable]();
|
|
35918
|
+
if (isFunction(obs.subscribe)) {
|
|
35919
|
+
return obs.subscribe(subscriber3);
|
|
35920
|
+
}
|
|
35921
|
+
throw new TypeError("Provided object does not correctly implement Symbol.observable");
|
|
35922
|
+
});
|
|
35923
|
+
}
|
|
35924
|
+
function fromArrayLike(array) {
|
|
35925
|
+
return new Observable(function(subscriber3) {
|
|
35926
|
+
for (var i = 0; i < array.length && !subscriber3.closed; i++) {
|
|
35927
|
+
subscriber3.next(array[i]);
|
|
35928
|
+
}
|
|
35929
|
+
subscriber3.complete();
|
|
35930
|
+
});
|
|
35931
|
+
}
|
|
35932
|
+
function fromPromise(promise) {
|
|
35933
|
+
return new Observable(function(subscriber3) {
|
|
35934
|
+
promise.then(function(value7) {
|
|
35935
|
+
if (!subscriber3.closed) {
|
|
35936
|
+
subscriber3.next(value7);
|
|
35937
|
+
subscriber3.complete();
|
|
35938
|
+
}
|
|
35939
|
+
}, function(err2) {
|
|
35940
|
+
return subscriber3.error(err2);
|
|
35941
|
+
}).then(null, reportUnhandledError);
|
|
35942
|
+
});
|
|
35943
|
+
}
|
|
35944
|
+
function fromIterable(iterable) {
|
|
35945
|
+
return new Observable(function(subscriber3) {
|
|
35946
|
+
var e_1, _a;
|
|
35947
|
+
try {
|
|
35948
|
+
for (var iterable_1 = __values(iterable), iterable_1_1 = iterable_1.next(); !iterable_1_1.done; iterable_1_1 = iterable_1.next()) {
|
|
35949
|
+
var value7 = iterable_1_1.value;
|
|
35950
|
+
subscriber3.next(value7);
|
|
35951
|
+
if (subscriber3.closed) {
|
|
35952
|
+
return;
|
|
35953
|
+
}
|
|
35954
|
+
}
|
|
35955
|
+
} catch (e_1_1) {
|
|
35956
|
+
e_1 = { error: e_1_1 };
|
|
35957
|
+
} finally {
|
|
35958
|
+
try {
|
|
35959
|
+
if (iterable_1_1 && !iterable_1_1.done && (_a = iterable_1.return)) _a.call(iterable_1);
|
|
35960
|
+
} finally {
|
|
35961
|
+
if (e_1) throw e_1.error;
|
|
35962
|
+
}
|
|
35963
|
+
}
|
|
35964
|
+
subscriber3.complete();
|
|
35965
|
+
});
|
|
35966
|
+
}
|
|
35967
|
+
function fromAsyncIterable(asyncIterable) {
|
|
35968
|
+
return new Observable(function(subscriber3) {
|
|
35969
|
+
process2(asyncIterable, subscriber3).catch(function(err2) {
|
|
35970
|
+
return subscriber3.error(err2);
|
|
35971
|
+
});
|
|
35972
|
+
});
|
|
35973
|
+
}
|
|
35974
|
+
function fromReadableStreamLike(readableStream) {
|
|
35975
|
+
return fromAsyncIterable(readableStreamLikeToAsyncGenerator(readableStream));
|
|
35976
|
+
}
|
|
35977
|
+
function process2(asyncIterable, subscriber3) {
|
|
35978
|
+
var asyncIterable_1, asyncIterable_1_1;
|
|
35979
|
+
var e_2, _a;
|
|
35980
|
+
return __awaiter(this, void 0, void 0, function() {
|
|
35981
|
+
var value7, e_2_1;
|
|
35982
|
+
return __generator(this, function(_b) {
|
|
35983
|
+
switch (_b.label) {
|
|
35984
|
+
case 0:
|
|
35985
|
+
_b.trys.push([0, 5, 6, 11]);
|
|
35986
|
+
asyncIterable_1 = __asyncValues(asyncIterable);
|
|
35987
|
+
_b.label = 1;
|
|
35988
|
+
case 1:
|
|
35989
|
+
return [4, asyncIterable_1.next()];
|
|
35990
|
+
case 2:
|
|
35991
|
+
if (!(asyncIterable_1_1 = _b.sent(), !asyncIterable_1_1.done)) return [3, 4];
|
|
35992
|
+
value7 = asyncIterable_1_1.value;
|
|
35993
|
+
subscriber3.next(value7);
|
|
35994
|
+
if (subscriber3.closed) {
|
|
35995
|
+
return [2];
|
|
35996
|
+
}
|
|
35997
|
+
_b.label = 3;
|
|
35998
|
+
case 3:
|
|
35999
|
+
return [3, 1];
|
|
36000
|
+
case 4:
|
|
36001
|
+
return [3, 11];
|
|
36002
|
+
case 5:
|
|
36003
|
+
e_2_1 = _b.sent();
|
|
36004
|
+
e_2 = { error: e_2_1 };
|
|
36005
|
+
return [3, 11];
|
|
36006
|
+
case 6:
|
|
36007
|
+
_b.trys.push([6, , 9, 10]);
|
|
36008
|
+
if (!(asyncIterable_1_1 && !asyncIterable_1_1.done && (_a = asyncIterable_1.return))) return [3, 8];
|
|
36009
|
+
return [4, _a.call(asyncIterable_1)];
|
|
36010
|
+
case 7:
|
|
36011
|
+
_b.sent();
|
|
36012
|
+
_b.label = 8;
|
|
36013
|
+
case 8:
|
|
36014
|
+
return [3, 10];
|
|
36015
|
+
case 9:
|
|
36016
|
+
if (e_2) throw e_2.error;
|
|
36017
|
+
return [7];
|
|
36018
|
+
case 10:
|
|
36019
|
+
return [7];
|
|
36020
|
+
case 11:
|
|
36021
|
+
subscriber3.complete();
|
|
36022
|
+
return [2];
|
|
36023
|
+
}
|
|
36024
|
+
});
|
|
36025
|
+
});
|
|
36026
|
+
}
|
|
36027
|
+
|
|
36028
|
+
// ../node_modules/rxjs/dist/esm5/internal/util/executeSchedule.js
|
|
36029
|
+
function executeSchedule(parentSubscription, scheduler, work, delay, repeat3) {
|
|
36030
|
+
if (delay === void 0) {
|
|
36031
|
+
delay = 0;
|
|
36032
|
+
}
|
|
36033
|
+
if (repeat3 === void 0) {
|
|
36034
|
+
repeat3 = false;
|
|
36035
|
+
}
|
|
36036
|
+
var scheduleSubscription = scheduler.schedule(function() {
|
|
36037
|
+
work();
|
|
36038
|
+
if (repeat3) {
|
|
36039
|
+
parentSubscription.add(this.schedule(null, delay));
|
|
36040
|
+
} else {
|
|
36041
|
+
this.unsubscribe();
|
|
36042
|
+
}
|
|
36043
|
+
}, delay);
|
|
36044
|
+
parentSubscription.add(scheduleSubscription);
|
|
36045
|
+
if (!repeat3) {
|
|
36046
|
+
return scheduleSubscription;
|
|
36047
|
+
}
|
|
36048
|
+
}
|
|
36049
|
+
|
|
36050
|
+
// ../node_modules/rxjs/dist/esm5/internal/operators/observeOn.js
|
|
36051
|
+
function observeOn(scheduler, delay) {
|
|
36052
|
+
if (delay === void 0) {
|
|
36053
|
+
delay = 0;
|
|
36054
|
+
}
|
|
36055
|
+
return operate(function(source8, subscriber3) {
|
|
36056
|
+
source8.subscribe(createOperatorSubscriber(subscriber3, function(value7) {
|
|
36057
|
+
return executeSchedule(subscriber3, scheduler, function() {
|
|
36058
|
+
return subscriber3.next(value7);
|
|
36059
|
+
}, delay);
|
|
36060
|
+
}, function() {
|
|
36061
|
+
return executeSchedule(subscriber3, scheduler, function() {
|
|
36062
|
+
return subscriber3.complete();
|
|
36063
|
+
}, delay);
|
|
36064
|
+
}, function(err2) {
|
|
36065
|
+
return executeSchedule(subscriber3, scheduler, function() {
|
|
36066
|
+
return subscriber3.error(err2);
|
|
36067
|
+
}, delay);
|
|
36068
|
+
}));
|
|
36069
|
+
});
|
|
36070
|
+
}
|
|
36071
|
+
|
|
36072
|
+
// ../node_modules/rxjs/dist/esm5/internal/operators/subscribeOn.js
|
|
36073
|
+
function subscribeOn(scheduler, delay) {
|
|
36074
|
+
if (delay === void 0) {
|
|
36075
|
+
delay = 0;
|
|
36076
|
+
}
|
|
36077
|
+
return operate(function(source8, subscriber3) {
|
|
36078
|
+
subscriber3.add(scheduler.schedule(function() {
|
|
36079
|
+
return source8.subscribe(subscriber3);
|
|
36080
|
+
}, delay));
|
|
36081
|
+
});
|
|
36082
|
+
}
|
|
36083
|
+
|
|
36084
|
+
// ../node_modules/rxjs/dist/esm5/internal/scheduled/scheduleObservable.js
|
|
36085
|
+
function scheduleObservable(input2, scheduler) {
|
|
36086
|
+
return innerFrom(input2).pipe(subscribeOn(scheduler), observeOn(scheduler));
|
|
36087
|
+
}
|
|
36088
|
+
|
|
36089
|
+
// ../node_modules/rxjs/dist/esm5/internal/scheduled/schedulePromise.js
|
|
36090
|
+
function schedulePromise(input2, scheduler) {
|
|
36091
|
+
return innerFrom(input2).pipe(subscribeOn(scheduler), observeOn(scheduler));
|
|
36092
|
+
}
|
|
36093
|
+
|
|
36094
|
+
// ../node_modules/rxjs/dist/esm5/internal/scheduled/scheduleArray.js
|
|
36095
|
+
function scheduleArray(input2, scheduler) {
|
|
36096
|
+
return new Observable(function(subscriber3) {
|
|
36097
|
+
var i = 0;
|
|
36098
|
+
return scheduler.schedule(function() {
|
|
36099
|
+
if (i === input2.length) {
|
|
36100
|
+
subscriber3.complete();
|
|
36101
|
+
} else {
|
|
36102
|
+
subscriber3.next(input2[i++]);
|
|
36103
|
+
if (!subscriber3.closed) {
|
|
36104
|
+
this.schedule();
|
|
36105
|
+
}
|
|
36106
|
+
}
|
|
36107
|
+
});
|
|
36108
|
+
});
|
|
36109
|
+
}
|
|
36110
|
+
|
|
36111
|
+
// ../node_modules/rxjs/dist/esm5/internal/scheduled/scheduleIterable.js
|
|
36112
|
+
function scheduleIterable(input2, scheduler) {
|
|
36113
|
+
return new Observable(function(subscriber3) {
|
|
36114
|
+
var iterator2;
|
|
36115
|
+
executeSchedule(subscriber3, scheduler, function() {
|
|
36116
|
+
iterator2 = input2[iterator]();
|
|
36117
|
+
executeSchedule(subscriber3, scheduler, function() {
|
|
36118
|
+
var _a;
|
|
36119
|
+
var value7;
|
|
36120
|
+
var done;
|
|
36121
|
+
try {
|
|
36122
|
+
_a = iterator2.next(), value7 = _a.value, done = _a.done;
|
|
36123
|
+
} catch (err2) {
|
|
36124
|
+
subscriber3.error(err2);
|
|
36125
|
+
return;
|
|
36126
|
+
}
|
|
36127
|
+
if (done) {
|
|
36128
|
+
subscriber3.complete();
|
|
36129
|
+
} else {
|
|
36130
|
+
subscriber3.next(value7);
|
|
36131
|
+
}
|
|
36132
|
+
}, 0, true);
|
|
36133
|
+
});
|
|
36134
|
+
return function() {
|
|
36135
|
+
return isFunction(iterator2 === null || iterator2 === void 0 ? void 0 : iterator2.return) && iterator2.return();
|
|
36136
|
+
};
|
|
36137
|
+
});
|
|
36138
|
+
}
|
|
36139
|
+
|
|
36140
|
+
// ../node_modules/rxjs/dist/esm5/internal/scheduled/scheduleAsyncIterable.js
|
|
36141
|
+
function scheduleAsyncIterable(input2, scheduler) {
|
|
36142
|
+
if (!input2) {
|
|
36143
|
+
throw new Error("Iterable cannot be null");
|
|
36144
|
+
}
|
|
36145
|
+
return new Observable(function(subscriber3) {
|
|
36146
|
+
executeSchedule(subscriber3, scheduler, function() {
|
|
36147
|
+
var iterator2 = input2[Symbol.asyncIterator]();
|
|
36148
|
+
executeSchedule(subscriber3, scheduler, function() {
|
|
36149
|
+
iterator2.next().then(function(result6) {
|
|
36150
|
+
if (result6.done) {
|
|
36151
|
+
subscriber3.complete();
|
|
36152
|
+
} else {
|
|
36153
|
+
subscriber3.next(result6.value);
|
|
36154
|
+
}
|
|
36155
|
+
});
|
|
36156
|
+
}, 0, true);
|
|
36157
|
+
});
|
|
36158
|
+
});
|
|
36159
|
+
}
|
|
36160
|
+
|
|
36161
|
+
// ../node_modules/rxjs/dist/esm5/internal/scheduled/scheduleReadableStreamLike.js
|
|
36162
|
+
function scheduleReadableStreamLike(input2, scheduler) {
|
|
36163
|
+
return scheduleAsyncIterable(readableStreamLikeToAsyncGenerator(input2), scheduler);
|
|
36164
|
+
}
|
|
36165
|
+
|
|
36166
|
+
// ../node_modules/rxjs/dist/esm5/internal/scheduled/scheduled.js
|
|
36167
|
+
function scheduled(input2, scheduler) {
|
|
36168
|
+
if (input2 != null) {
|
|
36169
|
+
if (isInteropObservable(input2)) {
|
|
36170
|
+
return scheduleObservable(input2, scheduler);
|
|
36171
|
+
}
|
|
36172
|
+
if (isArrayLike(input2)) {
|
|
36173
|
+
return scheduleArray(input2, scheduler);
|
|
36174
|
+
}
|
|
36175
|
+
if (isPromise(input2)) {
|
|
36176
|
+
return schedulePromise(input2, scheduler);
|
|
36177
|
+
}
|
|
36178
|
+
if (isAsyncIterable(input2)) {
|
|
36179
|
+
return scheduleAsyncIterable(input2, scheduler);
|
|
36180
|
+
}
|
|
36181
|
+
if (isIterable(input2)) {
|
|
36182
|
+
return scheduleIterable(input2, scheduler);
|
|
36183
|
+
}
|
|
36184
|
+
if (isReadableStreamLike(input2)) {
|
|
36185
|
+
return scheduleReadableStreamLike(input2, scheduler);
|
|
36186
|
+
}
|
|
36187
|
+
}
|
|
36188
|
+
throw createInvalidObservableTypeError(input2);
|
|
36189
|
+
}
|
|
36190
|
+
|
|
36191
|
+
// ../node_modules/rxjs/dist/esm5/internal/observable/from.js
|
|
36192
|
+
function from(input2, scheduler) {
|
|
36193
|
+
return scheduler ? scheduled(input2, scheduler) : innerFrom(input2);
|
|
36194
|
+
}
|
|
36195
|
+
|
|
36196
|
+
// ../node_modules/rxjs/dist/esm5/internal/operators/map.js
|
|
36197
|
+
function map(project, thisArg) {
|
|
36198
|
+
return operate(function(source8, subscriber3) {
|
|
36199
|
+
var index2 = 0;
|
|
36200
|
+
source8.subscribe(createOperatorSubscriber(subscriber3, function(value7) {
|
|
36201
|
+
subscriber3.next(project.call(thisArg, value7, index2++));
|
|
36202
|
+
}));
|
|
36203
|
+
});
|
|
36204
|
+
}
|
|
36205
|
+
|
|
36206
|
+
// ../node_modules/rxjs/dist/esm5/internal/operators/mergeInternals.js
|
|
36207
|
+
function mergeInternals(source8, subscriber3, project, concurrent, onBeforeNext, expand, innerSubScheduler, additionalFinalizer) {
|
|
36208
|
+
var buffer = [];
|
|
36209
|
+
var active2 = 0;
|
|
36210
|
+
var index2 = 0;
|
|
36211
|
+
var isComplete = false;
|
|
36212
|
+
var checkComplete = function() {
|
|
36213
|
+
if (isComplete && !buffer.length && !active2) {
|
|
36214
|
+
subscriber3.complete();
|
|
36215
|
+
}
|
|
36216
|
+
};
|
|
36217
|
+
var outerNext = function(value7) {
|
|
36218
|
+
return active2 < concurrent ? doInnerSub(value7) : buffer.push(value7);
|
|
36219
|
+
};
|
|
36220
|
+
var doInnerSub = function(value7) {
|
|
36221
|
+
expand && subscriber3.next(value7);
|
|
36222
|
+
active2++;
|
|
36223
|
+
var innerComplete = false;
|
|
36224
|
+
innerFrom(project(value7, index2++)).subscribe(createOperatorSubscriber(subscriber3, function(innerValue) {
|
|
36225
|
+
onBeforeNext === null || onBeforeNext === void 0 ? void 0 : onBeforeNext(innerValue);
|
|
36226
|
+
if (expand) {
|
|
36227
|
+
outerNext(innerValue);
|
|
36228
|
+
} else {
|
|
36229
|
+
subscriber3.next(innerValue);
|
|
36230
|
+
}
|
|
36231
|
+
}, function() {
|
|
36232
|
+
innerComplete = true;
|
|
36233
|
+
}, void 0, function() {
|
|
36234
|
+
if (innerComplete) {
|
|
36235
|
+
try {
|
|
36236
|
+
active2--;
|
|
36237
|
+
var _loop_1 = function() {
|
|
36238
|
+
var bufferedValue = buffer.shift();
|
|
36239
|
+
if (innerSubScheduler) {
|
|
36240
|
+
executeSchedule(subscriber3, innerSubScheduler, function() {
|
|
36241
|
+
return doInnerSub(bufferedValue);
|
|
36242
|
+
});
|
|
36243
|
+
} else {
|
|
36244
|
+
doInnerSub(bufferedValue);
|
|
36245
|
+
}
|
|
36246
|
+
};
|
|
36247
|
+
while (buffer.length && active2 < concurrent) {
|
|
36248
|
+
_loop_1();
|
|
36249
|
+
}
|
|
36250
|
+
checkComplete();
|
|
36251
|
+
} catch (err2) {
|
|
36252
|
+
subscriber3.error(err2);
|
|
36253
|
+
}
|
|
36254
|
+
}
|
|
36255
|
+
}));
|
|
36256
|
+
};
|
|
36257
|
+
source8.subscribe(createOperatorSubscriber(subscriber3, outerNext, function() {
|
|
36258
|
+
isComplete = true;
|
|
36259
|
+
checkComplete();
|
|
36260
|
+
}));
|
|
36261
|
+
return function() {
|
|
36262
|
+
additionalFinalizer === null || additionalFinalizer === void 0 ? void 0 : additionalFinalizer();
|
|
36263
|
+
};
|
|
36264
|
+
}
|
|
36265
|
+
|
|
36266
|
+
// ../node_modules/rxjs/dist/esm5/internal/operators/mergeMap.js
|
|
36267
|
+
function mergeMap(project, resultSelector, concurrent) {
|
|
36268
|
+
if (concurrent === void 0) {
|
|
36269
|
+
concurrent = Infinity;
|
|
36270
|
+
}
|
|
36271
|
+
if (isFunction(resultSelector)) {
|
|
36272
|
+
return mergeMap(function(a, i) {
|
|
36273
|
+
return map(function(b, ii) {
|
|
36274
|
+
return resultSelector(a, b, i, ii);
|
|
36275
|
+
})(innerFrom(project(a, i)));
|
|
36276
|
+
}, concurrent);
|
|
36277
|
+
} else if (typeof resultSelector === "number") {
|
|
36278
|
+
concurrent = resultSelector;
|
|
36279
|
+
}
|
|
36280
|
+
return operate(function(source8, subscriber3) {
|
|
36281
|
+
return mergeInternals(source8, subscriber3, project, concurrent);
|
|
36282
|
+
});
|
|
36283
|
+
}
|
|
36284
|
+
|
|
36285
|
+
// ../node_modules/rxjs/dist/esm5/internal/operators/mergeAll.js
|
|
36286
|
+
function mergeAll(concurrent) {
|
|
36287
|
+
if (concurrent === void 0) {
|
|
36288
|
+
concurrent = Infinity;
|
|
36289
|
+
}
|
|
36290
|
+
return mergeMap(identity, concurrent);
|
|
36291
|
+
}
|
|
36292
|
+
|
|
36293
|
+
// ../node_modules/rxjs/dist/esm5/internal/operators/concatAll.js
|
|
36294
|
+
function concatAll() {
|
|
36295
|
+
return mergeAll(1);
|
|
36296
|
+
}
|
|
36297
|
+
|
|
36298
|
+
// ../node_modules/rxjs/dist/esm5/internal/observable/concat.js
|
|
36299
|
+
function concat() {
|
|
36300
|
+
var args = [];
|
|
36301
|
+
for (var _i = 0; _i < arguments.length; _i++) {
|
|
36302
|
+
args[_i] = arguments[_i];
|
|
36303
|
+
}
|
|
36304
|
+
return concatAll()(from(args, popScheduler(args)));
|
|
36305
|
+
}
|
|
36306
|
+
|
|
36307
|
+
// ../node_modules/rxjs/dist/esm5/internal/observable/merge.js
|
|
36308
|
+
function merge() {
|
|
36309
|
+
var args = [];
|
|
36310
|
+
for (var _i = 0; _i < arguments.length; _i++) {
|
|
36311
|
+
args[_i] = arguments[_i];
|
|
36312
|
+
}
|
|
36313
|
+
var scheduler = popScheduler(args);
|
|
36314
|
+
var concurrent = popNumber(args, Infinity);
|
|
36315
|
+
var sources = args;
|
|
36316
|
+
return !sources.length ? EMPTY : sources.length === 1 ? innerFrom(sources[0]) : mergeAll(concurrent)(from(sources, scheduler));
|
|
36317
|
+
}
|
|
36318
|
+
|
|
36319
|
+
// ../node_modules/rxjs/dist/esm5/internal/operators/filter.js
|
|
36320
|
+
function filter(predicate4, thisArg) {
|
|
36321
|
+
return operate(function(source8, subscriber3) {
|
|
36322
|
+
var index2 = 0;
|
|
36323
|
+
source8.subscribe(createOperatorSubscriber(subscriber3, function(value7) {
|
|
36324
|
+
return predicate4.call(thisArg, value7, index2++) && subscriber3.next(value7);
|
|
36325
|
+
}));
|
|
36326
|
+
});
|
|
36327
|
+
}
|
|
36328
|
+
|
|
36329
|
+
// ../node_modules/rxjs/dist/esm5/internal/operators/distinctUntilChanged.js
|
|
36330
|
+
function distinctUntilChanged(comparator2, keySelector) {
|
|
36331
|
+
if (keySelector === void 0) {
|
|
36332
|
+
keySelector = identity;
|
|
36333
|
+
}
|
|
36334
|
+
comparator2 = comparator2 !== null && comparator2 !== void 0 ? comparator2 : defaultCompare;
|
|
36335
|
+
return operate(function(source8, subscriber3) {
|
|
36336
|
+
var previousKey;
|
|
36337
|
+
var first4 = true;
|
|
36338
|
+
source8.subscribe(createOperatorSubscriber(subscriber3, function(value7) {
|
|
36339
|
+
var currentKey = keySelector(value7);
|
|
36340
|
+
if (first4 || !comparator2(previousKey, currentKey)) {
|
|
36341
|
+
first4 = false;
|
|
36342
|
+
previousKey = currentKey;
|
|
36343
|
+
subscriber3.next(value7);
|
|
36344
|
+
}
|
|
36345
|
+
}));
|
|
36346
|
+
});
|
|
36347
|
+
}
|
|
36348
|
+
function defaultCompare(a, b) {
|
|
36349
|
+
return a === b;
|
|
36350
|
+
}
|
|
36351
|
+
|
|
36352
|
+
// ../node_modules/rxjs/dist/esm5/internal/operators/startWith.js
|
|
36353
|
+
function startWith() {
|
|
36354
|
+
var values2 = [];
|
|
36355
|
+
for (var _i = 0; _i < arguments.length; _i++) {
|
|
36356
|
+
values2[_i] = arguments[_i];
|
|
36357
|
+
}
|
|
36358
|
+
var scheduler = popScheduler(values2);
|
|
36359
|
+
return operate(function(source8, subscriber3) {
|
|
36360
|
+
(scheduler ? concat(values2, source8, scheduler) : concat(values2, source8)).subscribe(subscriber3);
|
|
36361
|
+
});
|
|
36362
|
+
}
|
|
36363
|
+
|
|
35633
36364
|
// ../node_modules/rxjs/dist/esm5/internal/operators/tap.js
|
|
35634
36365
|
function tap(observerOrNext, error4, complete2) {
|
|
35635
36366
|
var tapObserver = isFunction(observerOrNext) || error4 || complete2 ? { next: observerOrNext, error: error4, complete: complete2 } : observerOrNext;
|
|
@@ -35727,7 +36458,7 @@ _:patch
|
|
|
35727
36458
|
stack: maybeStack
|
|
35728
36459
|
};
|
|
35729
36460
|
};
|
|
35730
|
-
function
|
|
36461
|
+
function __awaiter2(thisArg, _arguments, P, generator3) {
|
|
35731
36462
|
function adopt(value7) {
|
|
35732
36463
|
return value7 instanceof P ? value7 : new P(function(resolve) {
|
|
35733
36464
|
resolve(value7);
|
|
@@ -35765,10 +36496,10 @@ _:patch
|
|
|
35765
36496
|
};
|
|
35766
36497
|
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
35767
36498
|
}
|
|
35768
|
-
function
|
|
35769
|
-
return this instanceof
|
|
36499
|
+
function __await2(v2) {
|
|
36500
|
+
return this instanceof __await2 ? (this.v = v2, this) : new __await2(v2);
|
|
35770
36501
|
}
|
|
35771
|
-
function
|
|
36502
|
+
function __asyncGenerator2(thisArg, _arguments, generator3) {
|
|
35772
36503
|
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
35773
36504
|
var g = generator3.apply(thisArg, _arguments || []), i, q = [];
|
|
35774
36505
|
return i = Object.create((typeof AsyncIterator === "function" ? AsyncIterator : Object).prototype), verb2("next"), verb2("throw"), verb2("return", awaitReturn), i[Symbol.asyncIterator] = function() {
|
|
@@ -35797,7 +36528,7 @@ _:patch
|
|
|
35797
36528
|
}
|
|
35798
36529
|
}
|
|
35799
36530
|
function step4(r) {
|
|
35800
|
-
r.value instanceof
|
|
36531
|
+
r.value instanceof __await2 ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r);
|
|
35801
36532
|
}
|
|
35802
36533
|
function fulfill(value7) {
|
|
35803
36534
|
resume("next", value7);
|
|
@@ -35818,11 +36549,11 @@ _:patch
|
|
|
35818
36549
|
}, i;
|
|
35819
36550
|
function verb2(n2, f) {
|
|
35820
36551
|
i[n2] = o[n2] ? function(v2) {
|
|
35821
|
-
return (p = !p) ? { value:
|
|
36552
|
+
return (p = !p) ? { value: __await2(o[n2](v2)), done: false } : f ? f(v2) : v2;
|
|
35822
36553
|
} : f;
|
|
35823
36554
|
}
|
|
35824
36555
|
}
|
|
35825
|
-
function
|
|
36556
|
+
function __asyncValues2(o) {
|
|
35826
36557
|
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
35827
36558
|
var m = o[Symbol.asyncIterator], i;
|
|
35828
36559
|
return m ? m.call(o) : (o = typeof __values2 === "function" ? __values2(o) : o[Symbol.iterator](), i = {}, verb2("next"), verb2("throw"), verb2("return"), i[Symbol.asyncIterator] = function() {
|
|
@@ -35856,7 +36587,7 @@ _:patch
|
|
|
35856
36587
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
35857
36588
|
static fromThrowable(fn2, errorFn) {
|
|
35858
36589
|
return (...args) => {
|
|
35859
|
-
return new _ResultAsync((() =>
|
|
36590
|
+
return new _ResultAsync((() => __awaiter2(this, void 0, void 0, function* () {
|
|
35860
36591
|
try {
|
|
35861
36592
|
return new Ok(yield fn2(...args));
|
|
35862
36593
|
} catch (error4) {
|
|
@@ -35872,7 +36603,7 @@ _:patch
|
|
|
35872
36603
|
return combineResultAsyncListWithAllErrors(asyncResultList);
|
|
35873
36604
|
}
|
|
35874
36605
|
map(f) {
|
|
35875
|
-
return new _ResultAsync(this._promise.then((res) =>
|
|
36606
|
+
return new _ResultAsync(this._promise.then((res) => __awaiter2(this, void 0, void 0, function* () {
|
|
35876
36607
|
if (res.isErr()) {
|
|
35877
36608
|
return new Err(res.error);
|
|
35878
36609
|
}
|
|
@@ -35880,7 +36611,7 @@ _:patch
|
|
|
35880
36611
|
})));
|
|
35881
36612
|
}
|
|
35882
36613
|
andThrough(f) {
|
|
35883
|
-
return new _ResultAsync(this._promise.then((res) =>
|
|
36614
|
+
return new _ResultAsync(this._promise.then((res) => __awaiter2(this, void 0, void 0, function* () {
|
|
35884
36615
|
if (res.isErr()) {
|
|
35885
36616
|
return new Err(res.error);
|
|
35886
36617
|
}
|
|
@@ -35892,7 +36623,7 @@ _:patch
|
|
|
35892
36623
|
})));
|
|
35893
36624
|
}
|
|
35894
36625
|
andTee(f) {
|
|
35895
|
-
return new _ResultAsync(this._promise.then((res) =>
|
|
36626
|
+
return new _ResultAsync(this._promise.then((res) => __awaiter2(this, void 0, void 0, function* () {
|
|
35896
36627
|
if (res.isErr()) {
|
|
35897
36628
|
return new Err(res.error);
|
|
35898
36629
|
}
|
|
@@ -35904,7 +36635,7 @@ _:patch
|
|
|
35904
36635
|
})));
|
|
35905
36636
|
}
|
|
35906
36637
|
orTee(f) {
|
|
35907
|
-
return new _ResultAsync(this._promise.then((res) =>
|
|
36638
|
+
return new _ResultAsync(this._promise.then((res) => __awaiter2(this, void 0, void 0, function* () {
|
|
35908
36639
|
if (res.isOk()) {
|
|
35909
36640
|
return new Ok(res.value);
|
|
35910
36641
|
}
|
|
@@ -35916,7 +36647,7 @@ _:patch
|
|
|
35916
36647
|
})));
|
|
35917
36648
|
}
|
|
35918
36649
|
mapErr(f) {
|
|
35919
|
-
return new _ResultAsync(this._promise.then((res) =>
|
|
36650
|
+
return new _ResultAsync(this._promise.then((res) => __awaiter2(this, void 0, void 0, function* () {
|
|
35920
36651
|
if (res.isOk()) {
|
|
35921
36652
|
return new Ok(res.value);
|
|
35922
36653
|
}
|
|
@@ -35935,7 +36666,7 @@ _:patch
|
|
|
35935
36666
|
}
|
|
35936
36667
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/explicit-module-boundary-types
|
|
35937
36668
|
orElse(f) {
|
|
35938
|
-
return new _ResultAsync(this._promise.then((res) =>
|
|
36669
|
+
return new _ResultAsync(this._promise.then((res) => __awaiter2(this, void 0, void 0, function* () {
|
|
35939
36670
|
if (res.isErr()) {
|
|
35940
36671
|
return f(res.error);
|
|
35941
36672
|
}
|
|
@@ -35961,8 +36692,8 @@ _:patch
|
|
|
35961
36692
|
* Emulates Rust's `?` operator in `safeTry`'s body. See also `safeTry`.
|
|
35962
36693
|
*/
|
|
35963
36694
|
safeUnwrap() {
|
|
35964
|
-
return
|
|
35965
|
-
return yield
|
|
36695
|
+
return __asyncGenerator2(this, arguments, function* safeUnwrap_1() {
|
|
36696
|
+
return yield __await2(yield __await2(yield* __asyncDelegator(__asyncValues2(yield __await2(this._promise.then((res) => res.safeUnwrap()))))));
|
|
35966
36697
|
});
|
|
35967
36698
|
}
|
|
35968
36699
|
// Makes ResultAsync implement PromiseLike<Result>
|
|
@@ -35970,19 +36701,19 @@ _:patch
|
|
|
35970
36701
|
return this._promise.then(successCallback, failureCallback);
|
|
35971
36702
|
}
|
|
35972
36703
|
[Symbol.asyncIterator]() {
|
|
35973
|
-
return
|
|
35974
|
-
const result6 = yield
|
|
36704
|
+
return __asyncGenerator2(this, arguments, function* _a() {
|
|
36705
|
+
const result6 = yield __await2(this._promise);
|
|
35975
36706
|
if (result6.isErr()) {
|
|
35976
|
-
yield yield
|
|
36707
|
+
yield yield __await2(errAsync(result6.error));
|
|
35977
36708
|
}
|
|
35978
|
-
return yield
|
|
36709
|
+
return yield __await2(result6.value);
|
|
35979
36710
|
});
|
|
35980
36711
|
}
|
|
35981
36712
|
};
|
|
35982
36713
|
function errAsync(err2) {
|
|
35983
36714
|
return new ResultAsync(Promise.resolve(new Err(err2)));
|
|
35984
36715
|
}
|
|
35985
|
-
var
|
|
36716
|
+
var fromPromise2 = ResultAsync.fromPromise;
|
|
35986
36717
|
var fromSafePromise = ResultAsync.fromSafePromise;
|
|
35987
36718
|
var fromAsyncThrowable = ResultAsync.fromThrowable;
|
|
35988
36719
|
var combineResultList = (resultList) => {
|
|
@@ -36607,10 +37338,10 @@ _:patch
|
|
|
36607
37338
|
getType(path3) {
|
|
36608
37339
|
if (typeof path3 !== "string")
|
|
36609
37340
|
return null;
|
|
36610
|
-
const
|
|
36611
|
-
const ext =
|
|
36612
|
-
const hasPath =
|
|
36613
|
-
const hasDot = ext.length <
|
|
37341
|
+
const last4 = path3.replace(/^.*[/\\]/s, "").toLowerCase();
|
|
37342
|
+
const ext = last4.replace(/^.*\./s, "").toLowerCase();
|
|
37343
|
+
const hasPath = last4.length < path3.length;
|
|
37344
|
+
const hasDot = ext.length < last4.length - 1;
|
|
36614
37345
|
if (!hasDot && hasPath)
|
|
36615
37346
|
return null;
|
|
36616
37347
|
return __classPrivateFieldGet(this, _Mime_extensionToType, "f").get(ext) ?? null;
|
|
@@ -37057,51 +37788,6 @@ _:patch
|
|
|
37057
37788
|
}
|
|
37058
37789
|
};
|
|
37059
37790
|
|
|
37060
|
-
// src/profile/WebIdProfile.ts
|
|
37061
|
-
init_esm();
|
|
37062
|
-
var WebIdProfile = class extends Thing {
|
|
37063
|
-
constructor(webId, store, editable = false) {
|
|
37064
|
-
super(webId, store, editable);
|
|
37065
|
-
this.webId = webId;
|
|
37066
|
-
this.store = store;
|
|
37067
|
-
this.editable = editable;
|
|
37068
|
-
}
|
|
37069
|
-
/**
|
|
37070
|
-
* Returns te URI of the preferences document
|
|
37071
|
-
*/
|
|
37072
|
-
getPreferencesFile() {
|
|
37073
|
-
return this.store.anyValue(
|
|
37074
|
-
namedNode(this.webId),
|
|
37075
|
-
namedNode("http://www.w3.org/ns/pim/space#preferencesFile"),
|
|
37076
|
-
void 0,
|
|
37077
|
-
namedNode(this.webId).doc()
|
|
37078
|
-
);
|
|
37079
|
-
}
|
|
37080
|
-
/**
|
|
37081
|
-
* Returns the URIs of the private label indexes
|
|
37082
|
-
*/
|
|
37083
|
-
getPrivateLabelIndexes() {
|
|
37084
|
-
const profileNodes = this.store.each(
|
|
37085
|
-
namedNode(this.webId),
|
|
37086
|
-
namedNode("http://www.w3.org/ns/solid/terms#privateLabelIndex"),
|
|
37087
|
-
void 0,
|
|
37088
|
-
namedNode(this.webId).doc()
|
|
37089
|
-
);
|
|
37090
|
-
const preferences = this.getPreferencesFile();
|
|
37091
|
-
if (preferences) {
|
|
37092
|
-
const preferencesNodes = this.store.each(
|
|
37093
|
-
namedNode(this.webId),
|
|
37094
|
-
namedNode("http://www.w3.org/ns/solid/terms#privateLabelIndex"),
|
|
37095
|
-
void 0,
|
|
37096
|
-
namedNode(preferences)
|
|
37097
|
-
);
|
|
37098
|
-
return [...profileNodes, ...preferencesNodes].map((it) => it.value);
|
|
37099
|
-
} else {
|
|
37100
|
-
return profileNodes.map((it) => it.value);
|
|
37101
|
-
}
|
|
37102
|
-
}
|
|
37103
|
-
};
|
|
37104
|
-
|
|
37105
37791
|
// src/search/SearchIndex.ts
|
|
37106
37792
|
var import_lunr = __toESM(require_lunr(), 1);
|
|
37107
37793
|
var SearchIndex = class {
|
|
@@ -37189,6 +37875,7 @@ _:patch
|
|
|
37189
37875
|
init_esm();
|
|
37190
37876
|
var rdfs = Namespace("http://www.w3.org/2000/01/rdf-schema#");
|
|
37191
37877
|
var pim2 = Namespace("http://www.w3.org/ns/pim/space#");
|
|
37878
|
+
var schema = Namespace("https://schema.org/");
|
|
37192
37879
|
|
|
37193
37880
|
// src/search/LabelIndex.ts
|
|
37194
37881
|
var LabelIndex = class extends RdfDocument {
|
|
@@ -37236,6 +37923,9 @@ _:patch
|
|
|
37236
37923
|
});
|
|
37237
37924
|
}
|
|
37238
37925
|
|
|
37926
|
+
// node_modules/@solid-data-modules/rdflib-utils/dist/queries/PreferencesQuery.js
|
|
37927
|
+
init_esm();
|
|
37928
|
+
|
|
37239
37929
|
// node_modules/@solid-data-modules/rdflib-utils/dist/namespaces/index.js
|
|
37240
37930
|
init_esm();
|
|
37241
37931
|
var rdf4 = Namespace("http://www.w3.org/1999/02/22-rdf-syntax-ns#");
|
|
@@ -37243,6 +37933,55 @@ _:patch
|
|
|
37243
37933
|
var pim3 = Namespace("http://www.w3.org/ns/pim/space#");
|
|
37244
37934
|
var ldp2 = Namespace("http://www.w3.org/ns/ldp#");
|
|
37245
37935
|
|
|
37936
|
+
// node_modules/@solid-data-modules/rdflib-utils/dist/queries/PreferencesQuery.js
|
|
37937
|
+
var PreferencesQuery2 = class {
|
|
37938
|
+
constructor(store, webIdNode, preferencesDoc) {
|
|
37939
|
+
this.store = store;
|
|
37940
|
+
this.webIdNode = webIdNode;
|
|
37941
|
+
this.preferencesDoc = preferencesDoc;
|
|
37942
|
+
}
|
|
37943
|
+
/**
|
|
37944
|
+
* Look up the private type index. Returns null if none is found or if the predicated does not link to a proper named node
|
|
37945
|
+
*/
|
|
37946
|
+
queryPrivateTypeIndex() {
|
|
37947
|
+
const node3 = this.store.any(this.webIdNode, solid2("privateTypeIndex"), null, this.preferencesDoc);
|
|
37948
|
+
if (isNamedNode(node3)) {
|
|
37949
|
+
return node3;
|
|
37950
|
+
}
|
|
37951
|
+
return null;
|
|
37952
|
+
}
|
|
37953
|
+
};
|
|
37954
|
+
|
|
37955
|
+
// node_modules/@solid-data-modules/rdflib-utils/dist/queries/ProfileQuery.js
|
|
37956
|
+
init_esm();
|
|
37957
|
+
var ProfileQuery2 = class {
|
|
37958
|
+
constructor(webIdNode, store) {
|
|
37959
|
+
this.webIdNode = webIdNode;
|
|
37960
|
+
this.store = store;
|
|
37961
|
+
}
|
|
37962
|
+
/**
|
|
37963
|
+
* Look up the public type index. Returns null if none is found or if the predicated does not link to a proper named node
|
|
37964
|
+
*/
|
|
37965
|
+
queryPublicTypeIndex() {
|
|
37966
|
+
const predicate4 = solid2("publicTypeIndex");
|
|
37967
|
+
return this.queryNamedNode(predicate4);
|
|
37968
|
+
}
|
|
37969
|
+
/**
|
|
37970
|
+
* Look up the preferences file. Returns null if none is found or if the predicated does not link to a proper named node
|
|
37971
|
+
*/
|
|
37972
|
+
queryPreferencesFile() {
|
|
37973
|
+
const predicate4 = pim3("preferencesFile");
|
|
37974
|
+
return this.queryNamedNode(predicate4);
|
|
37975
|
+
}
|
|
37976
|
+
queryNamedNode(predicate4) {
|
|
37977
|
+
const node3 = this.store.any(this.webIdNode, predicate4, null, this.webIdNode.doc());
|
|
37978
|
+
if (isNamedNode(node3)) {
|
|
37979
|
+
return node3;
|
|
37980
|
+
}
|
|
37981
|
+
return null;
|
|
37982
|
+
}
|
|
37983
|
+
};
|
|
37984
|
+
|
|
37246
37985
|
// node_modules/@solid-data-modules/rdflib-utils/dist/identifier/generate-id.js
|
|
37247
37986
|
var import_short_unique_id2 = __toESM(require_short_unique_id(), 1);
|
|
37248
37987
|
var uid2 = new import_short_unique_id2.default({ length: 10 });
|
|
@@ -37512,6 +38251,29 @@ _:patch
|
|
|
37512
38251
|
updater: this.updater
|
|
37513
38252
|
});
|
|
37514
38253
|
}
|
|
38254
|
+
/**
|
|
38255
|
+
* Finds instances of the given class or its sub-classes
|
|
38256
|
+
* @param {string} classUri
|
|
38257
|
+
* @returns {string[]} An array of URIs
|
|
38258
|
+
*/
|
|
38259
|
+
findMembers(classUri) {
|
|
38260
|
+
return Object.keys(this.internalStore.findMemberURIs(namedNode(classUri)));
|
|
38261
|
+
}
|
|
38262
|
+
/**
|
|
38263
|
+
* Get an Observable that will push new results from {@link findMembers} when it changes
|
|
38264
|
+
* @param {string} classUri
|
|
38265
|
+
* @returns {Observable<string[]>} Observable that pushes an array of URIs of instances of the given class or its sub-classes
|
|
38266
|
+
*/
|
|
38267
|
+
observeFindMembers(classUri) {
|
|
38268
|
+
return merge(this.additions$, this.removals$).pipe(
|
|
38269
|
+
filter(
|
|
38270
|
+
(quad3) => quad3.predicate.value == "http://www.w3.org/1999/02/22-rdf-syntax-ns#type" || quad3.predicate.value == "http://www.w3.org/2000/01/rdf-schema#subClassOf"
|
|
38271
|
+
),
|
|
38272
|
+
map(() => this.findMembers(classUri)),
|
|
38273
|
+
startWith(this.findMembers(classUri)),
|
|
38274
|
+
distinctUntilChanged((prev2, curr) => prev2.length == curr.length)
|
|
38275
|
+
);
|
|
38276
|
+
}
|
|
37515
38277
|
};
|
|
37516
38278
|
|
|
37517
38279
|
// ../node_modules/rdf-namespaces/dist/index.es.js
|
|
@@ -37538,7 +38300,7 @@ _:patch
|
|
|
37538
38300
|
rdf: () => rdf5,
|
|
37539
38301
|
rdfs: () => rdfs2,
|
|
37540
38302
|
sched: () => sched,
|
|
37541
|
-
schema: () =>
|
|
38303
|
+
schema: () => schema2,
|
|
37542
38304
|
schema_https: () => schema_https,
|
|
37543
38305
|
sec: () => sec,
|
|
37544
38306
|
shacl: () => shacl,
|
|
@@ -37632,7 +38394,7 @@ _:patch
|
|
|
37632
38394
|
var image = "https://www.w3.org/ns/activitystreams#image";
|
|
37633
38395
|
var inReplyTo = "https://www.w3.org/ns/activitystreams#inReplyTo";
|
|
37634
38396
|
var items = "https://www.w3.org/ns/activitystreams#items";
|
|
37635
|
-
var
|
|
38397
|
+
var last2 = "https://www.w3.org/ns/activitystreams#last";
|
|
37636
38398
|
var location = "https://www.w3.org/ns/activitystreams#location";
|
|
37637
38399
|
var next = "https://www.w3.org/ns/activitystreams#next";
|
|
37638
38400
|
var object = "https://www.w3.org/ns/activitystreams#object";
|
|
@@ -37757,7 +38519,7 @@ _:patch
|
|
|
37757
38519
|
image,
|
|
37758
38520
|
inReplyTo,
|
|
37759
38521
|
items,
|
|
37760
|
-
last,
|
|
38522
|
+
last: last2,
|
|
37761
38523
|
location,
|
|
37762
38524
|
next,
|
|
37763
38525
|
object,
|
|
@@ -38337,7 +39099,7 @@ _:patch
|
|
|
38337
39099
|
var appliesToAll = "http://hl7.org/fhir/appliesToAll";
|
|
38338
39100
|
var _appointmentRequired = "http://hl7.org/fhir/_appointmentRequired";
|
|
38339
39101
|
var _canFilterBy = "http://hl7.org/fhir/_canFilterBy";
|
|
38340
|
-
var
|
|
39102
|
+
var filter2 = "http://hl7.org/fhir/filter";
|
|
38341
39103
|
var _targetNumber = "http://hl7.org/fhir/_targetNumber";
|
|
38342
39104
|
var _additive = "http://hl7.org/fhir/_additive";
|
|
38343
39105
|
var _management = "http://hl7.org/fhir/_management";
|
|
@@ -39370,7 +40132,7 @@ _:patch
|
|
|
39370
40132
|
var Specimen = "http://hl7.org/fhir/Specimen";
|
|
39371
40133
|
var _MedicinalProductDefinition = "http://hl7.org/fhir/_MedicinalProductDefinition";
|
|
39372
40134
|
var OperationDefinition = "http://hl7.org/fhir/OperationDefinition";
|
|
39373
|
-
var
|
|
40135
|
+
var process3 = "http://hl7.org/fhir/process";
|
|
39374
40136
|
var CitationCitedArtifactContributorshipEntryContributionInstanceComponent = "http://hl7.org/fhir/CitationCitedArtifactContributorshipEntryContributionInstanceComponent";
|
|
39375
40137
|
var EncounterAdmissionComponent = "http://hl7.org/fhir/EncounterAdmissionComponent";
|
|
39376
40138
|
var _MedicationDispense = "http://hl7.org/fhir/_MedicationDispense";
|
|
@@ -41969,7 +42731,7 @@ _:patch
|
|
|
41969
42731
|
var ElementDefinitionMappingComponent = "http://hl7.org/fhir/ElementDefinitionMappingComponent";
|
|
41970
42732
|
var copackagedIndicator = "http://hl7.org/fhir/copackagedIndicator";
|
|
41971
42733
|
var precheckBehavior = "http://hl7.org/fhir/precheckBehavior";
|
|
41972
|
-
var
|
|
42734
|
+
var map2 = "http://hl7.org/fhir/map";
|
|
41973
42735
|
var additionalInfo = "http://hl7.org/fhir/additionalInfo";
|
|
41974
42736
|
var preConditions = "http://hl7.org/fhir/preConditions";
|
|
41975
42737
|
var numberOfSubunits = "http://hl7.org/fhir/numberOfSubunits";
|
|
@@ -42572,7 +43334,7 @@ _:patch
|
|
|
42572
43334
|
appliesToAll,
|
|
42573
43335
|
_appointmentRequired,
|
|
42574
43336
|
_canFilterBy,
|
|
42575
|
-
filter,
|
|
43337
|
+
filter: filter2,
|
|
42576
43338
|
_targetNumber,
|
|
42577
43339
|
_additive,
|
|
42578
43340
|
_management,
|
|
@@ -43605,7 +44367,7 @@ _:patch
|
|
|
43605
44367
|
Specimen,
|
|
43606
44368
|
_MedicinalProductDefinition,
|
|
43607
44369
|
OperationDefinition,
|
|
43608
|
-
process:
|
|
44370
|
+
process: process3,
|
|
43609
44371
|
CitationCitedArtifactContributorshipEntryContributionInstanceComponent,
|
|
43610
44372
|
EncounterAdmissionComponent,
|
|
43611
44373
|
_MedicationDispense,
|
|
@@ -46204,7 +46966,7 @@ _:patch
|
|
|
46204
46966
|
ElementDefinitionMappingComponent,
|
|
46205
46967
|
copackagedIndicator,
|
|
46206
46968
|
precheckBehavior,
|
|
46207
|
-
map,
|
|
46969
|
+
map: map2,
|
|
46208
46970
|
additionalInfo,
|
|
46209
46971
|
preConditions,
|
|
46210
46972
|
numberOfSubunits,
|
|
@@ -46960,7 +47722,7 @@ _:patch
|
|
|
46960
47722
|
var first2 = "http://www.w3.org/ns/hydra/core#first";
|
|
46961
47723
|
var freetextQuery = "http://www.w3.org/ns/hydra/core#freetextQuery";
|
|
46962
47724
|
var headerName = "http://www.w3.org/ns/hydra/core#headerName";
|
|
46963
|
-
var
|
|
47725
|
+
var last3 = "http://www.w3.org/ns/hydra/core#last";
|
|
46964
47726
|
var limit2 = "http://www.w3.org/ns/hydra/core#limit";
|
|
46965
47727
|
var mapping2 = "http://www.w3.org/ns/hydra/core#mapping";
|
|
46966
47728
|
var member3 = "http://www.w3.org/ns/hydra/core#member";
|
|
@@ -47022,7 +47784,7 @@ _:patch
|
|
|
47022
47784
|
first: first2,
|
|
47023
47785
|
freetextQuery,
|
|
47024
47786
|
headerName,
|
|
47025
|
-
last:
|
|
47787
|
+
last: last3,
|
|
47026
47788
|
limit: limit2,
|
|
47027
47789
|
mapping: mapping2,
|
|
47028
47790
|
member: member3,
|
|
@@ -49222,7 +49984,7 @@ _:patch
|
|
|
49222
49984
|
var lyrics = "http://schema.org/lyrics";
|
|
49223
49985
|
var maintainer = "http://schema.org/maintainer";
|
|
49224
49986
|
var manufacturer2 = "http://schema.org/manufacturer";
|
|
49225
|
-
var
|
|
49987
|
+
var map3 = "http://schema.org/map";
|
|
49226
49988
|
var mapType = "http://schema.org/mapType";
|
|
49227
49989
|
var maps = "http://schema.org/maps";
|
|
49228
49990
|
var marginOfError = "http://schema.org/marginOfError";
|
|
@@ -51661,7 +52423,7 @@ _:patch
|
|
|
51661
52423
|
lyrics,
|
|
51662
52424
|
maintainer,
|
|
51663
52425
|
manufacturer: manufacturer2,
|
|
51664
|
-
map:
|
|
52426
|
+
map: map3,
|
|
51665
52427
|
mapType,
|
|
51666
52428
|
maps,
|
|
51667
52429
|
marginOfError,
|
|
@@ -54102,7 +54864,7 @@ _:patch
|
|
|
54102
54864
|
var lyrics2 = "https://schema.org/lyrics";
|
|
54103
54865
|
var maintainer2 = "https://schema.org/maintainer";
|
|
54104
54866
|
var manufacturer3 = "https://schema.org/manufacturer";
|
|
54105
|
-
var
|
|
54867
|
+
var map4 = "https://schema.org/map";
|
|
54106
54868
|
var mapType2 = "https://schema.org/mapType";
|
|
54107
54869
|
var maps2 = "https://schema.org/maps";
|
|
54108
54870
|
var marginOfError2 = "https://schema.org/marginOfError";
|
|
@@ -56541,7 +57303,7 @@ _:patch
|
|
|
56541
57303
|
lyrics: lyrics2,
|
|
56542
57304
|
maintainer: maintainer2,
|
|
56543
57305
|
manufacturer: manufacturer3,
|
|
56544
|
-
map:
|
|
57306
|
+
map: map4,
|
|
56545
57307
|
mapType: mapType2,
|
|
56546
57308
|
maps: maps2,
|
|
56547
57309
|
marginOfError: marginOfError2,
|
|
@@ -58792,7 +59554,7 @@ _:patch
|
|
|
58792
59554
|
var rdf5 = rdfImport;
|
|
58793
59555
|
var rdfs2 = rdfsImport;
|
|
58794
59556
|
var sched = schedImport;
|
|
58795
|
-
var
|
|
59557
|
+
var schema2 = schemaImport;
|
|
58796
59558
|
var schema_https = schema_httpsImport;
|
|
58797
59559
|
var sec = secImport;
|
|
58798
59560
|
var shacl = shaclImport;
|
|
@@ -58842,6 +59604,87 @@ _:patch
|
|
|
58842
59604
|
}
|
|
58843
59605
|
};
|
|
58844
59606
|
|
|
59607
|
+
// src/profile/WebIdProfile.ts
|
|
59608
|
+
init_esm();
|
|
59609
|
+
var WebIdProfile = class extends Thing {
|
|
59610
|
+
constructor(webId, store, editable = false) {
|
|
59611
|
+
super(webId, store, editable);
|
|
59612
|
+
this.webId = webId;
|
|
59613
|
+
this.store = store;
|
|
59614
|
+
this.editable = editable;
|
|
59615
|
+
this.profileQuery = new ProfileQuery2(namedNode(this.webId), this.store);
|
|
59616
|
+
}
|
|
59617
|
+
/**
|
|
59618
|
+
* Returns the URI of the preferences document
|
|
59619
|
+
*/
|
|
59620
|
+
getPreferencesFile() {
|
|
59621
|
+
return this.profileQuery.queryPreferencesFile()?.value;
|
|
59622
|
+
}
|
|
59623
|
+
/**
|
|
59624
|
+
* Returns the URI of the public type index document
|
|
59625
|
+
*/
|
|
59626
|
+
getPublicTypeIndex() {
|
|
59627
|
+
return this.profileQuery.queryPublicTypeIndex()?.value;
|
|
59628
|
+
}
|
|
59629
|
+
/**
|
|
59630
|
+
* Returns the URI of the private type index document
|
|
59631
|
+
*/
|
|
59632
|
+
getPrivateTypeIndex() {
|
|
59633
|
+
const preferences = this.profileQuery.queryPreferencesFile();
|
|
59634
|
+
if (!preferences) return void 0;
|
|
59635
|
+
const query4 = new PreferencesQuery2(
|
|
59636
|
+
this.store,
|
|
59637
|
+
namedNode(this.webId),
|
|
59638
|
+
preferences
|
|
59639
|
+
);
|
|
59640
|
+
return query4.queryPrivateTypeIndex()?.value;
|
|
59641
|
+
}
|
|
59642
|
+
/**
|
|
59643
|
+
* Returns the URIs of the private label indexes
|
|
59644
|
+
*/
|
|
59645
|
+
getPrivateLabelIndexes() {
|
|
59646
|
+
const profileNodes = this.store.each(
|
|
59647
|
+
namedNode(this.webId),
|
|
59648
|
+
namedNode("http://www.w3.org/ns/solid/terms#privateLabelIndex"),
|
|
59649
|
+
void 0,
|
|
59650
|
+
namedNode(this.webId).doc()
|
|
59651
|
+
);
|
|
59652
|
+
const preferences = this.getPreferencesFile();
|
|
59653
|
+
if (preferences) {
|
|
59654
|
+
const preferencesNodes = this.store.each(
|
|
59655
|
+
namedNode(this.webId),
|
|
59656
|
+
namedNode("http://www.w3.org/ns/solid/terms#privateLabelIndex"),
|
|
59657
|
+
void 0,
|
|
59658
|
+
namedNode(preferences)
|
|
59659
|
+
);
|
|
59660
|
+
return [...profileNodes, ...preferencesNodes].map((it) => it.value);
|
|
59661
|
+
} else {
|
|
59662
|
+
return profileNodes.map((it) => it.value);
|
|
59663
|
+
}
|
|
59664
|
+
}
|
|
59665
|
+
};
|
|
59666
|
+
|
|
59667
|
+
// src/profile/ProfileGateway.ts
|
|
59668
|
+
var ProfileGateway = class {
|
|
59669
|
+
constructor(store) {
|
|
59670
|
+
this.store = store;
|
|
59671
|
+
}
|
|
59672
|
+
async fetchProfile(webId) {
|
|
59673
|
+
await this.store.fetch(webId);
|
|
59674
|
+
const profile2 = this.store.get(webId).assume(WebIdProfile);
|
|
59675
|
+
const preferences = profile2.getPreferencesFile();
|
|
59676
|
+
if (preferences) {
|
|
59677
|
+
await this.store.fetch(preferences);
|
|
59678
|
+
}
|
|
59679
|
+
const publicTypeIndex2 = profile2.getPublicTypeIndex();
|
|
59680
|
+
const privateTypeIndex2 = profile2.getPrivateTypeIndex();
|
|
59681
|
+
await this.store.fetchAll(
|
|
59682
|
+
[privateTypeIndex2, publicTypeIndex2].filter((it) => it !== void 0)
|
|
59683
|
+
);
|
|
59684
|
+
return profile2;
|
|
59685
|
+
}
|
|
59686
|
+
};
|
|
59687
|
+
|
|
58845
59688
|
// src/authentication/index.ts
|
|
58846
59689
|
var AnonymousSession = class {
|
|
58847
59690
|
constructor() {
|
|
@@ -58885,6 +59728,7 @@ _:patch
|
|
|
58885
59728
|
this.pictureGateway = new PictureGateway(this.store, this.fileFetcher);
|
|
58886
59729
|
this.flagAuthorizationMetaDataOnSessionChange();
|
|
58887
59730
|
this.uriService = new UriService(this.store);
|
|
59731
|
+
this.profileGateway = new ProfileGateway(this.store);
|
|
58888
59732
|
}
|
|
58889
59733
|
/*
|
|
58890
59734
|
Flagging authorization metadata is necessary every time the user
|
|
@@ -58944,13 +59788,7 @@ _:patch
|
|
|
58944
59788
|
* @param webId
|
|
58945
59789
|
*/
|
|
58946
59790
|
async fetchProfile(webId) {
|
|
58947
|
-
|
|
58948
|
-
const profile2 = this.store.get(webId).assume(WebIdProfile);
|
|
58949
|
-
const preferences = profile2.getPreferencesFile();
|
|
58950
|
-
if (preferences) {
|
|
58951
|
-
await this.fetch(preferences);
|
|
58952
|
-
}
|
|
58953
|
-
return profile2;
|
|
59791
|
+
return this.profileGateway.fetchProfile(webId);
|
|
58954
59792
|
}
|
|
58955
59793
|
/**
|
|
58956
59794
|
* Fetch the private label index for the given profile and build a search index from it
|