@fedify/vocab 2.0.29-dev.2121 → 2.0.29-dev.2143

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.
@@ -869,7 +869,17 @@ var Object$1 = class Object$1 {
869
869
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "attachment" in this._cachedJsonLd) {
870
870
  const prop = this._cachedJsonLd["attachment"];
871
871
  const obj = Array.isArray(prop) ? prop[i] : prop;
872
- if (obj != null && typeof obj === "object" && "@context" in obj) v = await this.#attachment_fromJsonLd(obj, options);
872
+ if (obj != null && typeof obj === "object" && "@context" in obj) try {
873
+ v = await this.#attachment_fromJsonLd(obj, options);
874
+ } catch (error) {
875
+ if (!options.suppressError) throw error;
876
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
877
+ property: "https://www.w3.org/ns/activitystreams#attachment",
878
+ index: i,
879
+ error
880
+ });
881
+ continue;
882
+ }
873
883
  }
874
884
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_49BipA5dq9eoH8LX8xdsVumveTca_attachment.has(0)) {
875
885
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -1038,7 +1048,16 @@ var Object$1 = class Object$1 {
1038
1048
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "attributedTo" in this._cachedJsonLd) {
1039
1049
  const prop = this._cachedJsonLd["attributedTo"];
1040
1050
  const doc = Array.isArray(prop) ? prop[0] : prop;
1041
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#attribution_fromJsonLd(doc, options);
1051
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
1052
+ v = await this.#attribution_fromJsonLd(doc, options);
1053
+ } catch (error) {
1054
+ if (!options.suppressError) throw error;
1055
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
1056
+ property: "https://www.w3.org/ns/activitystreams#attributedTo",
1057
+ error
1058
+ });
1059
+ return null;
1060
+ }
1042
1061
  }
1043
1062
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_42CGqJ94zgQ3ZBbfHwD8Hrr2L5Py_attributedTo.has(0)) {
1044
1063
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -1081,7 +1100,17 @@ var Object$1 = class Object$1 {
1081
1100
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "attributedTo" in this._cachedJsonLd) {
1082
1101
  const prop = this._cachedJsonLd["attributedTo"];
1083
1102
  const obj = Array.isArray(prop) ? prop[i] : prop;
1084
- if (obj != null && typeof obj === "object" && "@context" in obj) v = await this.#attribution_fromJsonLd(obj, options);
1103
+ if (obj != null && typeof obj === "object" && "@context" in obj) try {
1104
+ v = await this.#attribution_fromJsonLd(obj, options);
1105
+ } catch (error) {
1106
+ if (!options.suppressError) throw error;
1107
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
1108
+ property: "https://www.w3.org/ns/activitystreams#attributedTo",
1109
+ index: i,
1110
+ error
1111
+ });
1112
+ continue;
1113
+ }
1085
1114
  }
1086
1115
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_42CGqJ94zgQ3ZBbfHwD8Hrr2L5Py_attributedTo.has(0)) {
1087
1116
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -1203,7 +1232,16 @@ var Object$1 = class Object$1 {
1203
1232
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "audience" in this._cachedJsonLd) {
1204
1233
  const prop = this._cachedJsonLd["audience"];
1205
1234
  const doc = Array.isArray(prop) ? prop[0] : prop;
1206
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#audience_fromJsonLd(doc, options);
1235
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
1236
+ v = await this.#audience_fromJsonLd(doc, options);
1237
+ } catch (error) {
1238
+ if (!options.suppressError) throw error;
1239
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
1240
+ property: "https://www.w3.org/ns/activitystreams#audience",
1241
+ error
1242
+ });
1243
+ return null;
1244
+ }
1207
1245
  }
1208
1246
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3ocC3VVi88cEd5sPWL8djkZsvTN6_audience.has(0)) {
1209
1247
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -1245,7 +1283,17 @@ var Object$1 = class Object$1 {
1245
1283
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "audience" in this._cachedJsonLd) {
1246
1284
  const prop = this._cachedJsonLd["audience"];
1247
1285
  const obj = Array.isArray(prop) ? prop[i] : prop;
1248
- if (obj != null && typeof obj === "object" && "@context" in obj) v = await this.#audience_fromJsonLd(obj, options);
1286
+ if (obj != null && typeof obj === "object" && "@context" in obj) try {
1287
+ v = await this.#audience_fromJsonLd(obj, options);
1288
+ } catch (error) {
1289
+ if (!options.suppressError) throw error;
1290
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
1291
+ property: "https://www.w3.org/ns/activitystreams#audience",
1292
+ index: i,
1293
+ error
1294
+ });
1295
+ continue;
1296
+ }
1249
1297
  }
1250
1298
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3ocC3VVi88cEd5sPWL8djkZsvTN6_audience.has(0)) {
1251
1299
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -1401,7 +1449,17 @@ var Object$1 = class Object$1 {
1401
1449
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "context" in this._cachedJsonLd) {
1402
1450
  const prop = this._cachedJsonLd["context"];
1403
1451
  const obj = Array.isArray(prop) ? prop[i] : prop;
1404
- if (obj != null && typeof obj === "object" && "@context" in obj) v = await this.#context_fromJsonLd(obj, options);
1452
+ if (obj != null && typeof obj === "object" && "@context" in obj) try {
1453
+ v = await this.#context_fromJsonLd(obj, options);
1454
+ } catch (error) {
1455
+ if (!options.suppressError) throw error;
1456
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
1457
+ property: "https://www.w3.org/ns/activitystreams#context",
1458
+ index: i,
1459
+ error
1460
+ });
1461
+ continue;
1462
+ }
1405
1463
  }
1406
1464
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3mhZzGXSpQ431mBSz2kvych22v4e_context.has(0)) {
1407
1465
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -1557,7 +1615,17 @@ var Object$1 = class Object$1 {
1557
1615
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "generator" in this._cachedJsonLd) {
1558
1616
  const prop = this._cachedJsonLd["generator"];
1559
1617
  const obj = Array.isArray(prop) ? prop[i] : prop;
1560
- if (obj != null && typeof obj === "object" && "@context" in obj) v = await this.#generator_fromJsonLd(obj, options);
1618
+ if (obj != null && typeof obj === "object" && "@context" in obj) try {
1619
+ v = await this.#generator_fromJsonLd(obj, options);
1620
+ } catch (error) {
1621
+ if (!options.suppressError) throw error;
1622
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
1623
+ property: "https://www.w3.org/ns/activitystreams#generator",
1624
+ index: i,
1625
+ error
1626
+ });
1627
+ continue;
1628
+ }
1561
1629
  }
1562
1630
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_86xFhmgBapoMvYqjbjRuDPayTrS_generator.has(0)) {
1563
1631
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -1680,7 +1748,16 @@ var Object$1 = class Object$1 {
1680
1748
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "icon" in this._cachedJsonLd) {
1681
1749
  const prop = this._cachedJsonLd["icon"];
1682
1750
  const doc = Array.isArray(prop) ? prop[0] : prop;
1683
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#icon_fromJsonLd(doc, options);
1751
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
1752
+ v = await this.#icon_fromJsonLd(doc, options);
1753
+ } catch (error) {
1754
+ if (!options.suppressError) throw error;
1755
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
1756
+ property: "https://www.w3.org/ns/activitystreams#icon",
1757
+ error
1758
+ });
1759
+ return null;
1760
+ }
1684
1761
  }
1685
1762
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_33CjRLy5ujtsUrwRSCrsggvGdKuR_icon.has(0)) {
1686
1763
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -1723,7 +1800,17 @@ var Object$1 = class Object$1 {
1723
1800
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "icon" in this._cachedJsonLd) {
1724
1801
  const prop = this._cachedJsonLd["icon"];
1725
1802
  const obj = Array.isArray(prop) ? prop[i] : prop;
1726
- if (obj != null && typeof obj === "object" && "@context" in obj) v = await this.#icon_fromJsonLd(obj, options);
1803
+ if (obj != null && typeof obj === "object" && "@context" in obj) try {
1804
+ v = await this.#icon_fromJsonLd(obj, options);
1805
+ } catch (error) {
1806
+ if (!options.suppressError) throw error;
1807
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
1808
+ property: "https://www.w3.org/ns/activitystreams#icon",
1809
+ index: i,
1810
+ error
1811
+ });
1812
+ continue;
1813
+ }
1727
1814
  }
1728
1815
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_33CjRLy5ujtsUrwRSCrsggvGdKuR_icon.has(0)) {
1729
1816
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -1846,7 +1933,16 @@ var Object$1 = class Object$1 {
1846
1933
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "image" in this._cachedJsonLd) {
1847
1934
  const prop = this._cachedJsonLd["image"];
1848
1935
  const doc = Array.isArray(prop) ? prop[0] : prop;
1849
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#image_fromJsonLd(doc, options);
1936
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
1937
+ v = await this.#image_fromJsonLd(doc, options);
1938
+ } catch (error) {
1939
+ if (!options.suppressError) throw error;
1940
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
1941
+ property: "https://www.w3.org/ns/activitystreams#image",
1942
+ error
1943
+ });
1944
+ return null;
1945
+ }
1850
1946
  }
1851
1947
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3dXrUdkARxwyJLtJcYi1AJ92H41U_image.has(0)) {
1852
1948
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -1889,7 +1985,17 @@ var Object$1 = class Object$1 {
1889
1985
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "image" in this._cachedJsonLd) {
1890
1986
  const prop = this._cachedJsonLd["image"];
1891
1987
  const obj = Array.isArray(prop) ? prop[i] : prop;
1892
- if (obj != null && typeof obj === "object" && "@context" in obj) v = await this.#image_fromJsonLd(obj, options);
1988
+ if (obj != null && typeof obj === "object" && "@context" in obj) try {
1989
+ v = await this.#image_fromJsonLd(obj, options);
1990
+ } catch (error) {
1991
+ if (!options.suppressError) throw error;
1992
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
1993
+ property: "https://www.w3.org/ns/activitystreams#image",
1994
+ index: i,
1995
+ error
1996
+ });
1997
+ continue;
1998
+ }
1893
1999
  }
1894
2000
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3dXrUdkARxwyJLtJcYi1AJ92H41U_image.has(0)) {
1895
2001
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -2021,7 +2127,16 @@ var Object$1 = class Object$1 {
2021
2127
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "inReplyTo" in this._cachedJsonLd) {
2022
2128
  const prop = this._cachedJsonLd["inReplyTo"];
2023
2129
  const doc = Array.isArray(prop) ? prop[0] : prop;
2024
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#replyTarget_fromJsonLd(doc, options);
2130
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
2131
+ v = await this.#replyTarget_fromJsonLd(doc, options);
2132
+ } catch (error) {
2133
+ if (!options.suppressError) throw error;
2134
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
2135
+ property: "https://www.w3.org/ns/activitystreams#inReplyTo",
2136
+ error
2137
+ });
2138
+ return null;
2139
+ }
2025
2140
  }
2026
2141
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3fpbDrvZgf3Kq1a5V9aByFn8kx3s_inReplyTo.has(0)) {
2027
2142
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -2063,7 +2178,17 @@ var Object$1 = class Object$1 {
2063
2178
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "inReplyTo" in this._cachedJsonLd) {
2064
2179
  const prop = this._cachedJsonLd["inReplyTo"];
2065
2180
  const obj = Array.isArray(prop) ? prop[i] : prop;
2066
- if (obj != null && typeof obj === "object" && "@context" in obj) v = await this.#replyTarget_fromJsonLd(obj, options);
2181
+ if (obj != null && typeof obj === "object" && "@context" in obj) try {
2182
+ v = await this.#replyTarget_fromJsonLd(obj, options);
2183
+ } catch (error) {
2184
+ if (!options.suppressError) throw error;
2185
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
2186
+ property: "https://www.w3.org/ns/activitystreams#inReplyTo",
2187
+ index: i,
2188
+ error
2189
+ });
2190
+ continue;
2191
+ }
2067
2192
  }
2068
2193
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3fpbDrvZgf3Kq1a5V9aByFn8kx3s_inReplyTo.has(0)) {
2069
2194
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -2195,7 +2320,16 @@ var Object$1 = class Object$1 {
2195
2320
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "location" in this._cachedJsonLd) {
2196
2321
  const prop = this._cachedJsonLd["location"];
2197
2322
  const doc = Array.isArray(prop) ? prop[0] : prop;
2198
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#location_fromJsonLd(doc, options);
2323
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
2324
+ v = await this.#location_fromJsonLd(doc, options);
2325
+ } catch (error) {
2326
+ if (!options.suppressError) throw error;
2327
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
2328
+ property: "https://www.w3.org/ns/activitystreams#location",
2329
+ error
2330
+ });
2331
+ return null;
2332
+ }
2199
2333
  }
2200
2334
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_31k5MUZJsnsPNg8dQQJieWaXTFnR_location.has(0)) {
2201
2335
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -2237,7 +2371,17 @@ var Object$1 = class Object$1 {
2237
2371
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "location" in this._cachedJsonLd) {
2238
2372
  const prop = this._cachedJsonLd["location"];
2239
2373
  const obj = Array.isArray(prop) ? prop[i] : prop;
2240
- if (obj != null && typeof obj === "object" && "@context" in obj) v = await this.#location_fromJsonLd(obj, options);
2374
+ if (obj != null && typeof obj === "object" && "@context" in obj) try {
2375
+ v = await this.#location_fromJsonLd(obj, options);
2376
+ } catch (error) {
2377
+ if (!options.suppressError) throw error;
2378
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
2379
+ property: "https://www.w3.org/ns/activitystreams#location",
2380
+ index: i,
2381
+ error
2382
+ });
2383
+ continue;
2384
+ }
2241
2385
  }
2242
2386
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_31k5MUZJsnsPNg8dQQJieWaXTFnR_location.has(0)) {
2243
2387
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -2368,7 +2512,16 @@ var Object$1 = class Object$1 {
2368
2512
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "preview" in this._cachedJsonLd) {
2369
2513
  const prop = this._cachedJsonLd["preview"];
2370
2514
  const doc = Array.isArray(prop) ? prop[0] : prop;
2371
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#preview_fromJsonLd(doc, options);
2515
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
2516
+ v = await this.#preview_fromJsonLd(doc, options);
2517
+ } catch (error) {
2518
+ if (!options.suppressError) throw error;
2519
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
2520
+ property: "https://www.w3.org/ns/activitystreams#preview",
2521
+ error
2522
+ });
2523
+ return null;
2524
+ }
2372
2525
  }
2373
2526
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_gCVTegXxWWCw6wWRxa1QF65zusg_preview.has(0)) {
2374
2527
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -2409,7 +2562,17 @@ var Object$1 = class Object$1 {
2409
2562
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "preview" in this._cachedJsonLd) {
2410
2563
  const prop = this._cachedJsonLd["preview"];
2411
2564
  const obj = Array.isArray(prop) ? prop[i] : prop;
2412
- if (obj != null && typeof obj === "object" && "@context" in obj) v = await this.#preview_fromJsonLd(obj, options);
2565
+ if (obj != null && typeof obj === "object" && "@context" in obj) try {
2566
+ v = await this.#preview_fromJsonLd(obj, options);
2567
+ } catch (error) {
2568
+ if (!options.suppressError) throw error;
2569
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
2570
+ property: "https://www.w3.org/ns/activitystreams#preview",
2571
+ index: i,
2572
+ error
2573
+ });
2574
+ continue;
2575
+ }
2413
2576
  }
2414
2577
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_gCVTegXxWWCw6wWRxa1QF65zusg_preview.has(0)) {
2415
2578
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -2538,7 +2701,16 @@ var Object$1 = class Object$1 {
2538
2701
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "replies" in this._cachedJsonLd) {
2539
2702
  const prop = this._cachedJsonLd["replies"];
2540
2703
  const doc = Array.isArray(prop) ? prop[0] : prop;
2541
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#replies_fromJsonLd(doc, options);
2704
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
2705
+ v = await this.#replies_fromJsonLd(doc, options);
2706
+ } catch (error) {
2707
+ if (!options.suppressError) throw error;
2708
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
2709
+ property: "https://www.w3.org/ns/activitystreams#replies",
2710
+ error
2711
+ });
2712
+ return null;
2713
+ }
2542
2714
  }
2543
2715
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_7UpwM3JWcXhADcscukEehBorf6k_replies.has(0)) {
2544
2716
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -2665,7 +2837,16 @@ var Object$1 = class Object$1 {
2665
2837
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "shares" in this._cachedJsonLd) {
2666
2838
  const prop = this._cachedJsonLd["shares"];
2667
2839
  const doc = Array.isArray(prop) ? prop[0] : prop;
2668
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#shares_fromJsonLd(doc, options);
2840
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
2841
+ v = await this.#shares_fromJsonLd(doc, options);
2842
+ } catch (error) {
2843
+ if (!options.suppressError) throw error;
2844
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
2845
+ property: "https://www.w3.org/ns/activitystreams#shares",
2846
+ error
2847
+ });
2848
+ return null;
2849
+ }
2669
2850
  }
2670
2851
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3kAfck9PcEYt2L7xug5y99YPbANs_shares.has(0)) {
2671
2852
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -2792,7 +2973,16 @@ var Object$1 = class Object$1 {
2792
2973
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "likes" in this._cachedJsonLd) {
2793
2974
  const prop = this._cachedJsonLd["likes"];
2794
2975
  const doc = Array.isArray(prop) ? prop[0] : prop;
2795
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#likes_fromJsonLd(doc, options);
2976
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
2977
+ v = await this.#likes_fromJsonLd(doc, options);
2978
+ } catch (error) {
2979
+ if (!options.suppressError) throw error;
2980
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
2981
+ property: "https://www.w3.org/ns/activitystreams#likes",
2982
+ error
2983
+ });
2984
+ return null;
2985
+ }
2796
2986
  }
2797
2987
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_S3ceDnpMdzoTRCccB9FkJWrEzYW_likes.has(0)) {
2798
2988
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -2913,7 +3103,16 @@ var Object$1 = class Object$1 {
2913
3103
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "emojiReactions" in this._cachedJsonLd) {
2914
3104
  const prop = this._cachedJsonLd["emojiReactions"];
2915
3105
  const doc = Array.isArray(prop) ? prop[0] : prop;
2916
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#emojiReactions_fromJsonLd(doc, options);
3106
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
3107
+ v = await this.#emojiReactions_fromJsonLd(doc, options);
3108
+ } catch (error) {
3109
+ if (!options.suppressError) throw error;
3110
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
3111
+ property: "http://fedibird.com/ns#emojiReactions",
3112
+ error
3113
+ });
3114
+ return null;
3115
+ }
2917
3116
  }
2918
3117
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_kMatyyNAuxoTD8GQMBfA5ogThMR_emojiReactions.has(0)) {
2919
3118
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -3069,7 +3268,17 @@ var Object$1 = class Object$1 {
3069
3268
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "tag" in this._cachedJsonLd) {
3070
3269
  const prop = this._cachedJsonLd["tag"];
3071
3270
  const obj = Array.isArray(prop) ? prop[i] : prop;
3072
- if (obj != null && typeof obj === "object" && "@context" in obj) v = await this.#tag_fromJsonLd(obj, options);
3271
+ if (obj != null && typeof obj === "object" && "@context" in obj) try {
3272
+ v = await this.#tag_fromJsonLd(obj, options);
3273
+ } catch (error) {
3274
+ if (!options.suppressError) throw error;
3275
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
3276
+ property: "https://www.w3.org/ns/activitystreams#tag",
3277
+ index: i,
3278
+ error
3279
+ });
3280
+ continue;
3281
+ }
3073
3282
  }
3074
3283
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_5chuqj6s95p5gg2sk1HntGfarRf_tag.has(0)) {
3075
3284
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -3210,7 +3419,16 @@ var Object$1 = class Object$1 {
3210
3419
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "to" in this._cachedJsonLd) {
3211
3420
  const prop = this._cachedJsonLd["to"];
3212
3421
  const doc = Array.isArray(prop) ? prop[0] : prop;
3213
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#to_fromJsonLd(doc, options);
3422
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
3423
+ v = await this.#to_fromJsonLd(doc, options);
3424
+ } catch (error) {
3425
+ if (!options.suppressError) throw error;
3426
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
3427
+ property: "https://www.w3.org/ns/activitystreams#to",
3428
+ error
3429
+ });
3430
+ return null;
3431
+ }
3214
3432
  }
3215
3433
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3hFbw7DTpHhq3cvVhkY8njhcsXbd_to.has(0)) {
3216
3434
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -3252,7 +3470,17 @@ var Object$1 = class Object$1 {
3252
3470
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "to" in this._cachedJsonLd) {
3253
3471
  const prop = this._cachedJsonLd["to"];
3254
3472
  const obj = Array.isArray(prop) ? prop[i] : prop;
3255
- if (obj != null && typeof obj === "object" && "@context" in obj) v = await this.#to_fromJsonLd(obj, options);
3473
+ if (obj != null && typeof obj === "object" && "@context" in obj) try {
3474
+ v = await this.#to_fromJsonLd(obj, options);
3475
+ } catch (error) {
3476
+ if (!options.suppressError) throw error;
3477
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
3478
+ property: "https://www.w3.org/ns/activitystreams#to",
3479
+ index: i,
3480
+ error
3481
+ });
3482
+ continue;
3483
+ }
3256
3484
  }
3257
3485
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3hFbw7DTpHhq3cvVhkY8njhcsXbd_to.has(0)) {
3258
3486
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -3374,7 +3602,16 @@ var Object$1 = class Object$1 {
3374
3602
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "bto" in this._cachedJsonLd) {
3375
3603
  const prop = this._cachedJsonLd["bto"];
3376
3604
  const doc = Array.isArray(prop) ? prop[0] : prop;
3377
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#bto_fromJsonLd(doc, options);
3605
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
3606
+ v = await this.#bto_fromJsonLd(doc, options);
3607
+ } catch (error) {
3608
+ if (!options.suppressError) throw error;
3609
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
3610
+ property: "https://www.w3.org/ns/activitystreams#bto",
3611
+ error
3612
+ });
3613
+ return null;
3614
+ }
3378
3615
  }
3379
3616
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_aLZupjwL8XB7tzdLgCMXdjZ6qej_bto.has(0)) {
3380
3617
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -3416,7 +3653,17 @@ var Object$1 = class Object$1 {
3416
3653
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "bto" in this._cachedJsonLd) {
3417
3654
  const prop = this._cachedJsonLd["bto"];
3418
3655
  const obj = Array.isArray(prop) ? prop[i] : prop;
3419
- if (obj != null && typeof obj === "object" && "@context" in obj) v = await this.#bto_fromJsonLd(obj, options);
3656
+ if (obj != null && typeof obj === "object" && "@context" in obj) try {
3657
+ v = await this.#bto_fromJsonLd(obj, options);
3658
+ } catch (error) {
3659
+ if (!options.suppressError) throw error;
3660
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
3661
+ property: "https://www.w3.org/ns/activitystreams#bto",
3662
+ index: i,
3663
+ error
3664
+ });
3665
+ continue;
3666
+ }
3420
3667
  }
3421
3668
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_aLZupjwL8XB7tzdLgCMXdjZ6qej_bto.has(0)) {
3422
3669
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -3538,7 +3785,16 @@ var Object$1 = class Object$1 {
3538
3785
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "cc" in this._cachedJsonLd) {
3539
3786
  const prop = this._cachedJsonLd["cc"];
3540
3787
  const doc = Array.isArray(prop) ? prop[0] : prop;
3541
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#cc_fromJsonLd(doc, options);
3788
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
3789
+ v = await this.#cc_fromJsonLd(doc, options);
3790
+ } catch (error) {
3791
+ if (!options.suppressError) throw error;
3792
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
3793
+ property: "https://www.w3.org/ns/activitystreams#cc",
3794
+ error
3795
+ });
3796
+ return null;
3797
+ }
3542
3798
  }
3543
3799
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_42a1SvBs24QSLzKcfjCyNTjW5a1g_cc.has(0)) {
3544
3800
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -3580,7 +3836,17 @@ var Object$1 = class Object$1 {
3580
3836
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "cc" in this._cachedJsonLd) {
3581
3837
  const prop = this._cachedJsonLd["cc"];
3582
3838
  const obj = Array.isArray(prop) ? prop[i] : prop;
3583
- if (obj != null && typeof obj === "object" && "@context" in obj) v = await this.#cc_fromJsonLd(obj, options);
3839
+ if (obj != null && typeof obj === "object" && "@context" in obj) try {
3840
+ v = await this.#cc_fromJsonLd(obj, options);
3841
+ } catch (error) {
3842
+ if (!options.suppressError) throw error;
3843
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
3844
+ property: "https://www.w3.org/ns/activitystreams#cc",
3845
+ index: i,
3846
+ error
3847
+ });
3848
+ continue;
3849
+ }
3584
3850
  }
3585
3851
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_42a1SvBs24QSLzKcfjCyNTjW5a1g_cc.has(0)) {
3586
3852
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -3702,7 +3968,16 @@ var Object$1 = class Object$1 {
3702
3968
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "bcc" in this._cachedJsonLd) {
3703
3969
  const prop = this._cachedJsonLd["bcc"];
3704
3970
  const doc = Array.isArray(prop) ? prop[0] : prop;
3705
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#bcc_fromJsonLd(doc, options);
3971
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
3972
+ v = await this.#bcc_fromJsonLd(doc, options);
3973
+ } catch (error) {
3974
+ if (!options.suppressError) throw error;
3975
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
3976
+ property: "https://www.w3.org/ns/activitystreams#bcc",
3977
+ error
3978
+ });
3979
+ return null;
3980
+ }
3706
3981
  }
3707
3982
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3qvegKUB8YLgTXRpEf8E6JZSkz2H_bcc.has(0)) {
3708
3983
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -3744,7 +4019,17 @@ var Object$1 = class Object$1 {
3744
4019
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "bcc" in this._cachedJsonLd) {
3745
4020
  const prop = this._cachedJsonLd["bcc"];
3746
4021
  const obj = Array.isArray(prop) ? prop[i] : prop;
3747
- if (obj != null && typeof obj === "object" && "@context" in obj) v = await this.#bcc_fromJsonLd(obj, options);
4022
+ if (obj != null && typeof obj === "object" && "@context" in obj) try {
4023
+ v = await this.#bcc_fromJsonLd(obj, options);
4024
+ } catch (error) {
4025
+ if (!options.suppressError) throw error;
4026
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
4027
+ property: "https://www.w3.org/ns/activitystreams#bcc",
4028
+ index: i,
4029
+ error
4030
+ });
4031
+ continue;
4032
+ }
3748
4033
  }
3749
4034
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3qvegKUB8YLgTXRpEf8E6JZSkz2H_bcc.has(0)) {
3750
4035
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -3902,7 +4187,16 @@ var Object$1 = class Object$1 {
3902
4187
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "proof" in this._cachedJsonLd) {
3903
4188
  const prop = this._cachedJsonLd["proof"];
3904
4189
  const doc = Array.isArray(prop) ? prop[0] : prop;
3905
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#proof_fromJsonLd(doc, options);
4190
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
4191
+ v = await this.#proof_fromJsonLd(doc, options);
4192
+ } catch (error) {
4193
+ if (!options.suppressError) throw error;
4194
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
4195
+ property: "https://w3id.org/security#proof",
4196
+ error
4197
+ });
4198
+ return null;
4199
+ }
3906
4200
  }
3907
4201
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_42rPnotok1ivQ2RNCKNbeFJgx8b8_proof.has(0)) {
3908
4202
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -3943,7 +4237,17 @@ var Object$1 = class Object$1 {
3943
4237
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "proof" in this._cachedJsonLd) {
3944
4238
  const prop = this._cachedJsonLd["proof"];
3945
4239
  const obj = Array.isArray(prop) ? prop[i] : prop;
3946
- if (obj != null && typeof obj === "object" && "@context" in obj) v = await this.#proof_fromJsonLd(obj, options);
4240
+ if (obj != null && typeof obj === "object" && "@context" in obj) try {
4241
+ v = await this.#proof_fromJsonLd(obj, options);
4242
+ } catch (error) {
4243
+ if (!options.suppressError) throw error;
4244
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
4245
+ property: "https://w3id.org/security#proof",
4246
+ index: i,
4247
+ error
4248
+ });
4249
+ continue;
4250
+ }
3947
4251
  }
3948
4252
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_42rPnotok1ivQ2RNCKNbeFJgx8b8_proof.has(0)) {
3949
4253
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -6601,7 +6905,16 @@ var Activity = class Activity extends Object$1 {
6601
6905
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "actor" in this._cachedJsonLd) {
6602
6906
  const prop = this._cachedJsonLd["actor"];
6603
6907
  const doc = Array.isArray(prop) ? prop[0] : prop;
6604
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#actor_fromJsonLd(doc, options);
6908
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
6909
+ v = await this.#actor_fromJsonLd(doc, options);
6910
+ } catch (error) {
6911
+ if (!options.suppressError) throw error;
6912
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
6913
+ property: "https://www.w3.org/ns/activitystreams#actor",
6914
+ error
6915
+ });
6916
+ return null;
6917
+ }
6605
6918
  }
6606
6919
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_2DjTTboo3CNHU2a2JQqUSE2dbv9D_actor.has(0)) {
6607
6920
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -6644,7 +6957,17 @@ var Activity = class Activity extends Object$1 {
6644
6957
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "actor" in this._cachedJsonLd) {
6645
6958
  const prop = this._cachedJsonLd["actor"];
6646
6959
  const obj = Array.isArray(prop) ? prop[i] : prop;
6647
- if (obj != null && typeof obj === "object" && "@context" in obj) v = await this.#actor_fromJsonLd(obj, options);
6960
+ if (obj != null && typeof obj === "object" && "@context" in obj) try {
6961
+ v = await this.#actor_fromJsonLd(obj, options);
6962
+ } catch (error) {
6963
+ if (!options.suppressError) throw error;
6964
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
6965
+ property: "https://www.w3.org/ns/activitystreams#actor",
6966
+ index: i,
6967
+ error
6968
+ });
6969
+ continue;
6970
+ }
6648
6971
  }
6649
6972
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_2DjTTboo3CNHU2a2JQqUSE2dbv9D_actor.has(0)) {
6650
6973
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -6767,7 +7090,16 @@ var Activity = class Activity extends Object$1 {
6767
7090
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "object" in this._cachedJsonLd) {
6768
7091
  const prop = this._cachedJsonLd["object"];
6769
7092
  const doc = Array.isArray(prop) ? prop[0] : prop;
6770
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#object_fromJsonLd(doc, options);
7093
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
7094
+ v = await this.#object_fromJsonLd(doc, options);
7095
+ } catch (error) {
7096
+ if (!options.suppressError) throw error;
7097
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
7098
+ property: "https://www.w3.org/ns/activitystreams#object",
7099
+ error
7100
+ });
7101
+ return null;
7102
+ }
6771
7103
  }
6772
7104
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object.has(0)) {
6773
7105
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -6810,7 +7142,17 @@ var Activity = class Activity extends Object$1 {
6810
7142
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "object" in this._cachedJsonLd) {
6811
7143
  const prop = this._cachedJsonLd["object"];
6812
7144
  const obj = Array.isArray(prop) ? prop[i] : prop;
6813
- if (obj != null && typeof obj === "object" && "@context" in obj) v = await this.#object_fromJsonLd(obj, options);
7145
+ if (obj != null && typeof obj === "object" && "@context" in obj) try {
7146
+ v = await this.#object_fromJsonLd(obj, options);
7147
+ } catch (error) {
7148
+ if (!options.suppressError) throw error;
7149
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
7150
+ property: "https://www.w3.org/ns/activitystreams#object",
7151
+ index: i,
7152
+ error
7153
+ });
7154
+ continue;
7155
+ }
6814
7156
  }
6815
7157
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object.has(0)) {
6816
7158
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -6936,7 +7278,16 @@ var Activity = class Activity extends Object$1 {
6936
7278
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "target" in this._cachedJsonLd) {
6937
7279
  const prop = this._cachedJsonLd["target"];
6938
7280
  const doc = Array.isArray(prop) ? prop[0] : prop;
6939
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#target_fromJsonLd(doc, options);
7281
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
7282
+ v = await this.#target_fromJsonLd(doc, options);
7283
+ } catch (error) {
7284
+ if (!options.suppressError) throw error;
7285
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
7286
+ property: "https://www.w3.org/ns/activitystreams#target",
7287
+ error
7288
+ });
7289
+ return null;
7290
+ }
6940
7291
  }
6941
7292
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3JQCmF2Ww56Ag9EWRYoSZRDNCYtF_target.has(0)) {
6942
7293
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -6982,7 +7333,17 @@ var Activity = class Activity extends Object$1 {
6982
7333
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "target" in this._cachedJsonLd) {
6983
7334
  const prop = this._cachedJsonLd["target"];
6984
7335
  const obj = Array.isArray(prop) ? prop[i] : prop;
6985
- if (obj != null && typeof obj === "object" && "@context" in obj) v = await this.#target_fromJsonLd(obj, options);
7336
+ if (obj != null && typeof obj === "object" && "@context" in obj) try {
7337
+ v = await this.#target_fromJsonLd(obj, options);
7338
+ } catch (error) {
7339
+ if (!options.suppressError) throw error;
7340
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
7341
+ property: "https://www.w3.org/ns/activitystreams#target",
7342
+ index: i,
7343
+ error
7344
+ });
7345
+ continue;
7346
+ }
6986
7347
  }
6987
7348
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3JQCmF2Ww56Ag9EWRYoSZRDNCYtF_target.has(0)) {
6988
7349
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -7105,7 +7466,16 @@ var Activity = class Activity extends Object$1 {
7105
7466
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "result" in this._cachedJsonLd) {
7106
7467
  const prop = this._cachedJsonLd["result"];
7107
7468
  const doc = Array.isArray(prop) ? prop[0] : prop;
7108
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#result_fromJsonLd(doc, options);
7469
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
7470
+ v = await this.#result_fromJsonLd(doc, options);
7471
+ } catch (error) {
7472
+ if (!options.suppressError) throw error;
7473
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
7474
+ property: "https://www.w3.org/ns/activitystreams#result",
7475
+ error
7476
+ });
7477
+ return null;
7478
+ }
7109
7479
  }
7110
7480
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_u4QGFbRFcYmPEKGbPv1hpBR9r5G_result.has(0)) {
7111
7481
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -7148,7 +7518,17 @@ var Activity = class Activity extends Object$1 {
7148
7518
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "result" in this._cachedJsonLd) {
7149
7519
  const prop = this._cachedJsonLd["result"];
7150
7520
  const obj = Array.isArray(prop) ? prop[i] : prop;
7151
- if (obj != null && typeof obj === "object" && "@context" in obj) v = await this.#result_fromJsonLd(obj, options);
7521
+ if (obj != null && typeof obj === "object" && "@context" in obj) try {
7522
+ v = await this.#result_fromJsonLd(obj, options);
7523
+ } catch (error) {
7524
+ if (!options.suppressError) throw error;
7525
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
7526
+ property: "https://www.w3.org/ns/activitystreams#result",
7527
+ index: i,
7528
+ error
7529
+ });
7530
+ continue;
7531
+ }
7152
7532
  }
7153
7533
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_u4QGFbRFcYmPEKGbPv1hpBR9r5G_result.has(0)) {
7154
7534
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -7272,7 +7652,16 @@ var Activity = class Activity extends Object$1 {
7272
7652
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "origin" in this._cachedJsonLd) {
7273
7653
  const prop = this._cachedJsonLd["origin"];
7274
7654
  const doc = Array.isArray(prop) ? prop[0] : prop;
7275
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#origin_fromJsonLd(doc, options);
7655
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
7656
+ v = await this.#origin_fromJsonLd(doc, options);
7657
+ } catch (error) {
7658
+ if (!options.suppressError) throw error;
7659
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
7660
+ property: "https://www.w3.org/ns/activitystreams#origin",
7661
+ error
7662
+ });
7663
+ return null;
7664
+ }
7276
7665
  }
7277
7666
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_25zu2s3VxVujgEKqrDycjE284XQR_origin.has(0)) {
7278
7667
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -7316,7 +7705,17 @@ var Activity = class Activity extends Object$1 {
7316
7705
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "origin" in this._cachedJsonLd) {
7317
7706
  const prop = this._cachedJsonLd["origin"];
7318
7707
  const obj = Array.isArray(prop) ? prop[i] : prop;
7319
- if (obj != null && typeof obj === "object" && "@context" in obj) v = await this.#origin_fromJsonLd(obj, options);
7708
+ if (obj != null && typeof obj === "object" && "@context" in obj) try {
7709
+ v = await this.#origin_fromJsonLd(obj, options);
7710
+ } catch (error) {
7711
+ if (!options.suppressError) throw error;
7712
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
7713
+ property: "https://www.w3.org/ns/activitystreams#origin",
7714
+ index: i,
7715
+ error
7716
+ });
7717
+ continue;
7718
+ }
7320
7719
  }
7321
7720
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_25zu2s3VxVujgEKqrDycjE284XQR_origin.has(0)) {
7322
7721
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -7438,7 +7837,16 @@ var Activity = class Activity extends Object$1 {
7438
7837
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "instrument" in this._cachedJsonLd) {
7439
7838
  const prop = this._cachedJsonLd["instrument"];
7440
7839
  const doc = Array.isArray(prop) ? prop[0] : prop;
7441
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#instrument_fromJsonLd(doc, options);
7840
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
7841
+ v = await this.#instrument_fromJsonLd(doc, options);
7842
+ } catch (error) {
7843
+ if (!options.suppressError) throw error;
7844
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
7845
+ property: "https://www.w3.org/ns/activitystreams#instrument",
7846
+ error
7847
+ });
7848
+ return null;
7849
+ }
7442
7850
  }
7443
7851
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3c5t2x7DYRo2shwTxpkd4kYSS5WQ_instrument.has(0)) {
7444
7852
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -7480,7 +7888,17 @@ var Activity = class Activity extends Object$1 {
7480
7888
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "instrument" in this._cachedJsonLd) {
7481
7889
  const prop = this._cachedJsonLd["instrument"];
7482
7890
  const obj = Array.isArray(prop) ? prop[i] : prop;
7483
- if (obj != null && typeof obj === "object" && "@context" in obj) v = await this.#instrument_fromJsonLd(obj, options);
7891
+ if (obj != null && typeof obj === "object" && "@context" in obj) try {
7892
+ v = await this.#instrument_fromJsonLd(obj, options);
7893
+ } catch (error) {
7894
+ if (!options.suppressError) throw error;
7895
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
7896
+ property: "https://www.w3.org/ns/activitystreams#instrument",
7897
+ index: i,
7898
+ error
7899
+ });
7900
+ continue;
7901
+ }
7484
7902
  }
7485
7903
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3c5t2x7DYRo2shwTxpkd4kYSS5WQ_instrument.has(0)) {
7486
7904
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -9385,7 +9803,16 @@ var CryptographicKey = class {
9385
9803
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "owner" in this._cachedJsonLd) {
9386
9804
  const prop = this._cachedJsonLd["owner"];
9387
9805
  const doc = Array.isArray(prop) ? prop[0] : prop;
9388
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#owner_fromJsonLd(doc, options);
9806
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
9807
+ v = await this.#owner_fromJsonLd(doc, options);
9808
+ } catch (error) {
9809
+ if (!options.suppressError) throw error;
9810
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
9811
+ property: "https://w3id.org/security#owner",
9812
+ error
9813
+ });
9814
+ return null;
9815
+ }
9389
9816
  }
9390
9817
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_5UJq9NDh3ZHgswFwwdVxQvJxdx2_owner.has(0)) {
9391
9818
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -9862,7 +10289,16 @@ var Multikey = class {
9862
10289
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "controller" in this._cachedJsonLd) {
9863
10290
  const prop = this._cachedJsonLd["controller"];
9864
10291
  const doc = Array.isArray(prop) ? prop[0] : prop;
9865
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#controller_fromJsonLd(doc, options);
10292
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
10293
+ v = await this.#controller_fromJsonLd(doc, options);
10294
+ } catch (error) {
10295
+ if (!options.suppressError) throw error;
10296
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
10297
+ property: "https://w3id.org/security#controller",
10298
+ error
10299
+ });
10300
+ return null;
10301
+ }
9866
10302
  }
9867
10303
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_2yr3eUBTP6cNcyaxKzAXWjFsnGzN_controller.has(0)) {
9868
10304
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -11006,7 +11442,16 @@ var Application = class Application extends Object$1 {
11006
11442
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "publicKey" in this._cachedJsonLd) {
11007
11443
  const prop = this._cachedJsonLd["publicKey"];
11008
11444
  const doc = Array.isArray(prop) ? prop[0] : prop;
11009
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#publicKey_fromJsonLd(doc, options);
11445
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
11446
+ v = await this.#publicKey_fromJsonLd(doc, options);
11447
+ } catch (error) {
11448
+ if (!options.suppressError) throw error;
11449
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
11450
+ property: "https://w3id.org/security#publicKey",
11451
+ error
11452
+ });
11453
+ return null;
11454
+ }
11010
11455
  }
11011
11456
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey.has(0)) {
11012
11457
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -11047,7 +11492,17 @@ var Application = class Application extends Object$1 {
11047
11492
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "publicKey" in this._cachedJsonLd) {
11048
11493
  const prop = this._cachedJsonLd["publicKey"];
11049
11494
  const obj = Array.isArray(prop) ? prop[i] : prop;
11050
- if (obj != null && typeof obj === "object" && "@context" in obj) v = await this.#publicKey_fromJsonLd(obj, options);
11495
+ if (obj != null && typeof obj === "object" && "@context" in obj) try {
11496
+ v = await this.#publicKey_fromJsonLd(obj, options);
11497
+ } catch (error) {
11498
+ if (!options.suppressError) throw error;
11499
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
11500
+ property: "https://w3id.org/security#publicKey",
11501
+ index: i,
11502
+ error
11503
+ });
11504
+ continue;
11505
+ }
11051
11506
  }
11052
11507
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey.has(0)) {
11053
11508
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -11171,7 +11626,16 @@ var Application = class Application extends Object$1 {
11171
11626
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "assertionMethod" in this._cachedJsonLd) {
11172
11627
  const prop = this._cachedJsonLd["assertionMethod"];
11173
11628
  const doc = Array.isArray(prop) ? prop[0] : prop;
11174
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#assertionMethod_fromJsonLd(doc, options);
11629
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
11630
+ v = await this.#assertionMethod_fromJsonLd(doc, options);
11631
+ } catch (error) {
11632
+ if (!options.suppressError) throw error;
11633
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
11634
+ property: "https://w3id.org/security#assertionMethod",
11635
+ error
11636
+ });
11637
+ return null;
11638
+ }
11175
11639
  }
11176
11640
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.has(0)) {
11177
11641
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -11215,7 +11679,17 @@ var Application = class Application extends Object$1 {
11215
11679
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "assertionMethod" in this._cachedJsonLd) {
11216
11680
  const prop = this._cachedJsonLd["assertionMethod"];
11217
11681
  const obj = Array.isArray(prop) ? prop[i] : prop;
11218
- if (obj != null && typeof obj === "object" && "@context" in obj) v = await this.#assertionMethod_fromJsonLd(obj, options);
11682
+ if (obj != null && typeof obj === "object" && "@context" in obj) try {
11683
+ v = await this.#assertionMethod_fromJsonLd(obj, options);
11684
+ } catch (error) {
11685
+ if (!options.suppressError) throw error;
11686
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
11687
+ property: "https://w3id.org/security#assertionMethod",
11688
+ index: i,
11689
+ error
11690
+ });
11691
+ continue;
11692
+ }
11219
11693
  }
11220
11694
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.has(0)) {
11221
11695
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -11370,7 +11844,16 @@ var Application = class Application extends Object$1 {
11370
11844
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "inbox" in this._cachedJsonLd) {
11371
11845
  const prop = this._cachedJsonLd["inbox"];
11372
11846
  const doc = Array.isArray(prop) ? prop[0] : prop;
11373
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#inbox_fromJsonLd(doc, options);
11847
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
11848
+ v = await this.#inbox_fromJsonLd(doc, options);
11849
+ } catch (error) {
11850
+ if (!options.suppressError) throw error;
11851
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
11852
+ property: "http://www.w3.org/ns/ldp#inbox",
11853
+ error
11854
+ });
11855
+ return null;
11856
+ }
11374
11857
  }
11375
11858
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox.has(0)) {
11376
11859
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -11509,7 +11992,16 @@ var Application = class Application extends Object$1 {
11509
11992
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "outbox" in this._cachedJsonLd) {
11510
11993
  const prop = this._cachedJsonLd["outbox"];
11511
11994
  const doc = Array.isArray(prop) ? prop[0] : prop;
11512
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#outbox_fromJsonLd(doc, options);
11995
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
11996
+ v = await this.#outbox_fromJsonLd(doc, options);
11997
+ } catch (error) {
11998
+ if (!options.suppressError) throw error;
11999
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
12000
+ property: "https://www.w3.org/ns/activitystreams#outbox",
12001
+ error
12002
+ });
12003
+ return null;
12004
+ }
11513
12005
  }
11514
12006
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_41QwhqJouoLg3h8dRPKat21brynC_outbox.has(0)) {
11515
12007
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -11633,7 +12125,16 @@ var Application = class Application extends Object$1 {
11633
12125
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "following" in this._cachedJsonLd) {
11634
12126
  const prop = this._cachedJsonLd["following"];
11635
12127
  const doc = Array.isArray(prop) ? prop[0] : prop;
11636
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#following_fromJsonLd(doc, options);
12128
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
12129
+ v = await this.#following_fromJsonLd(doc, options);
12130
+ } catch (error) {
12131
+ if (!options.suppressError) throw error;
12132
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
12133
+ property: "https://www.w3.org/ns/activitystreams#following",
12134
+ error
12135
+ });
12136
+ return null;
12137
+ }
11637
12138
  }
11638
12139
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following.has(0)) {
11639
12140
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -11760,7 +12261,16 @@ var Application = class Application extends Object$1 {
11760
12261
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "followers" in this._cachedJsonLd) {
11761
12262
  const prop = this._cachedJsonLd["followers"];
11762
12263
  const doc = Array.isArray(prop) ? prop[0] : prop;
11763
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#followers_fromJsonLd(doc, options);
12264
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
12265
+ v = await this.#followers_fromJsonLd(doc, options);
12266
+ } catch (error) {
12267
+ if (!options.suppressError) throw error;
12268
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
12269
+ property: "https://www.w3.org/ns/activitystreams#followers",
12270
+ error
12271
+ });
12272
+ return null;
12273
+ }
11764
12274
  }
11765
12275
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_BBCTgfphhsFzpVfKTykGSpBNwoA_followers.has(0)) {
11766
12276
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -11885,7 +12395,16 @@ var Application = class Application extends Object$1 {
11885
12395
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "liked" in this._cachedJsonLd) {
11886
12396
  const prop = this._cachedJsonLd["liked"];
11887
12397
  const doc = Array.isArray(prop) ? prop[0] : prop;
11888
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#liked_fromJsonLd(doc, options);
12398
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
12399
+ v = await this.#liked_fromJsonLd(doc, options);
12400
+ } catch (error) {
12401
+ if (!options.suppressError) throw error;
12402
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
12403
+ property: "https://www.w3.org/ns/activitystreams#liked",
12404
+ error
12405
+ });
12406
+ return null;
12407
+ }
11889
12408
  }
11890
12409
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked.has(0)) {
11891
12410
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -12008,7 +12527,16 @@ var Application = class Application extends Object$1 {
12008
12527
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "featured" in this._cachedJsonLd) {
12009
12528
  const prop = this._cachedJsonLd["featured"];
12010
12529
  const doc = Array.isArray(prop) ? prop[0] : prop;
12011
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#featured_fromJsonLd(doc, options);
12530
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
12531
+ v = await this.#featured_fromJsonLd(doc, options);
12532
+ } catch (error) {
12533
+ if (!options.suppressError) throw error;
12534
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
12535
+ property: "http://joinmastodon.org/ns#featured",
12536
+ error
12537
+ });
12538
+ return null;
12539
+ }
12012
12540
  }
12013
12541
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_4N1vBJzXDf8NbBumeECQMFvKetja_featured.has(0)) {
12014
12542
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -12131,7 +12659,16 @@ var Application = class Application extends Object$1 {
12131
12659
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "featuredTags" in this._cachedJsonLd) {
12132
12660
  const prop = this._cachedJsonLd["featuredTags"];
12133
12661
  const doc = Array.isArray(prop) ? prop[0] : prop;
12134
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#featuredTags_fromJsonLd(doc, options);
12662
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
12663
+ v = await this.#featuredTags_fromJsonLd(doc, options);
12664
+ } catch (error) {
12665
+ if (!options.suppressError) throw error;
12666
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
12667
+ property: "http://joinmastodon.org/ns#featuredTags",
12668
+ error
12669
+ });
12670
+ return null;
12671
+ }
12135
12672
  }
12136
12673
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags.has(0)) {
12137
12674
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -12250,7 +12787,17 @@ var Application = class Application extends Object$1 {
12250
12787
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "streams" in this._cachedJsonLd) {
12251
12788
  const prop = this._cachedJsonLd["streams"];
12252
12789
  const obj = Array.isArray(prop) ? prop[i] : prop;
12253
- if (obj != null && typeof obj === "object" && "@context" in obj) v = await this.#stream_fromJsonLd(obj, options);
12790
+ if (obj != null && typeof obj === "object" && "@context" in obj) try {
12791
+ v = await this.#stream_fromJsonLd(obj, options);
12792
+ } catch (error) {
12793
+ if (!options.suppressError) throw error;
12794
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
12795
+ property: "https://www.w3.org/ns/activitystreams#streams",
12796
+ index: i,
12797
+ error
12798
+ });
12799
+ continue;
12800
+ }
12254
12801
  }
12255
12802
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.has(0)) {
12256
12803
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -12459,7 +13006,16 @@ var Application = class Application extends Object$1 {
12459
13006
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "movedTo" in this._cachedJsonLd) {
12460
13007
  const prop = this._cachedJsonLd["movedTo"];
12461
13008
  const doc = Array.isArray(prop) ? prop[0] : prop;
12462
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#successor_fromJsonLd(doc, options);
13009
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
13010
+ v = await this.#successor_fromJsonLd(doc, options);
13011
+ } catch (error) {
13012
+ if (!options.suppressError) throw error;
13013
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
13014
+ property: "https://www.w3.org/ns/activitystreams#movedTo",
13015
+ error
13016
+ });
13017
+ return null;
13018
+ }
12463
13019
  }
12464
13020
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo.has(0)) {
12465
13021
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -12628,7 +13184,16 @@ var Application = class Application extends Object$1 {
12628
13184
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "alsoKnownAs" in this._cachedJsonLd) {
12629
13185
  const prop = this._cachedJsonLd["alsoKnownAs"];
12630
13186
  const doc = Array.isArray(prop) ? prop[0] : prop;
12631
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#alias_fromJsonLd(doc, options);
13187
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
13188
+ v = await this.#alias_fromJsonLd(doc, options);
13189
+ } catch (error) {
13190
+ if (!options.suppressError) throw error;
13191
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
13192
+ property: "https://www.w3.org/ns/activitystreams#alsoKnownAs",
13193
+ error
13194
+ });
13195
+ return null;
13196
+ }
12632
13197
  }
12633
13198
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs.has(0)) {
12634
13199
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -12672,7 +13237,17 @@ var Application = class Application extends Object$1 {
12672
13237
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "alsoKnownAs" in this._cachedJsonLd) {
12673
13238
  const prop = this._cachedJsonLd["alsoKnownAs"];
12674
13239
  const obj = Array.isArray(prop) ? prop[i] : prop;
12675
- if (obj != null && typeof obj === "object" && "@context" in obj) v = await this.#alias_fromJsonLd(obj, options);
13240
+ if (obj != null && typeof obj === "object" && "@context" in obj) try {
13241
+ v = await this.#alias_fromJsonLd(obj, options);
13242
+ } catch (error) {
13243
+ if (!options.suppressError) throw error;
13244
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
13245
+ property: "https://www.w3.org/ns/activitystreams#alsoKnownAs",
13246
+ index: i,
13247
+ error
13248
+ });
13249
+ continue;
13250
+ }
12676
13251
  }
12677
13252
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs.has(0)) {
12678
13253
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -12796,7 +13371,16 @@ var Application = class Application extends Object$1 {
12796
13371
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "service" in this._cachedJsonLd) {
12797
13372
  const prop = this._cachedJsonLd["service"];
12798
13373
  const doc = Array.isArray(prop) ? prop[0] : prop;
12799
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#service_fromJsonLd(doc, options);
13374
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
13375
+ v = await this.#service_fromJsonLd(doc, options);
13376
+ } catch (error) {
13377
+ if (!options.suppressError) throw error;
13378
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
13379
+ property: "https://www.w3.org/ns/did#service",
13380
+ error
13381
+ });
13382
+ return null;
13383
+ }
12800
13384
  }
12801
13385
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.has(0)) {
12802
13386
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -12840,7 +13424,17 @@ var Application = class Application extends Object$1 {
12840
13424
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "service" in this._cachedJsonLd) {
12841
13425
  const prop = this._cachedJsonLd["service"];
12842
13426
  const obj = Array.isArray(prop) ? prop[i] : prop;
12843
- if (obj != null && typeof obj === "object" && "@context" in obj) v = await this.#service_fromJsonLd(obj, options);
13427
+ if (obj != null && typeof obj === "object" && "@context" in obj) try {
13428
+ v = await this.#service_fromJsonLd(obj, options);
13429
+ } catch (error) {
13430
+ if (!options.suppressError) throw error;
13431
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
13432
+ property: "https://www.w3.org/ns/did#service",
13433
+ index: i,
13434
+ error
13435
+ });
13436
+ continue;
13437
+ }
12844
13438
  }
12845
13439
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.has(0)) {
12846
13440
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -15472,7 +16066,16 @@ var Collection = class Collection extends Object$1 {
15472
16066
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "current" in this._cachedJsonLd) {
15473
16067
  const prop = this._cachedJsonLd["current"];
15474
16068
  const doc = Array.isArray(prop) ? prop[0] : prop;
15475
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#current_fromJsonLd(doc, options);
16069
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
16070
+ v = await this.#current_fromJsonLd(doc, options);
16071
+ } catch (error) {
16072
+ if (!options.suppressError) throw error;
16073
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
16074
+ property: "https://www.w3.org/ns/activitystreams#current",
16075
+ error
16076
+ });
16077
+ return null;
16078
+ }
15476
16079
  }
15477
16080
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3UyUdxnyn6cDn53QKrh4MBiearma_current.has(0)) {
15478
16081
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -15593,7 +16196,16 @@ var Collection = class Collection extends Object$1 {
15593
16196
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "first" in this._cachedJsonLd) {
15594
16197
  const prop = this._cachedJsonLd["first"];
15595
16198
  const doc = Array.isArray(prop) ? prop[0] : prop;
15596
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#first_fromJsonLd(doc, options);
16199
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
16200
+ v = await this.#first_fromJsonLd(doc, options);
16201
+ } catch (error) {
16202
+ if (!options.suppressError) throw error;
16203
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
16204
+ property: "https://www.w3.org/ns/activitystreams#first",
16205
+ error
16206
+ });
16207
+ return null;
16208
+ }
15597
16209
  }
15598
16210
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_J52RqweMe6hhv7RnLJMC8BExTE5_first.has(0)) {
15599
16211
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -15714,7 +16326,16 @@ var Collection = class Collection extends Object$1 {
15714
16326
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "last" in this._cachedJsonLd) {
15715
16327
  const prop = this._cachedJsonLd["last"];
15716
16328
  const doc = Array.isArray(prop) ? prop[0] : prop;
15717
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#last_fromJsonLd(doc, options);
16329
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
16330
+ v = await this.#last_fromJsonLd(doc, options);
16331
+ } catch (error) {
16332
+ if (!options.suppressError) throw error;
16333
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
16334
+ property: "https://www.w3.org/ns/activitystreams#last",
16335
+ error
16336
+ });
16337
+ return null;
16338
+ }
15718
16339
  }
15719
16340
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_gyJJnyEFnuNVi1HFZKfAn3Hfn26_last.has(0)) {
15720
16341
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -15844,7 +16465,17 @@ var Collection = class Collection extends Object$1 {
15844
16465
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "items" in this._cachedJsonLd) {
15845
16466
  const prop = this._cachedJsonLd["items"];
15846
16467
  const obj = Array.isArray(prop) ? prop[i] : prop;
15847
- if (obj != null && typeof obj === "object" && "@context" in obj) v = await this.#item_fromJsonLd(obj, options);
16468
+ if (obj != null && typeof obj === "object" && "@context" in obj) try {
16469
+ v = await this.#item_fromJsonLd(obj, options);
16470
+ } catch (error) {
16471
+ if (!options.suppressError) throw error;
16472
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
16473
+ property: "https://www.w3.org/ns/activitystreams#items",
16474
+ index: i,
16475
+ error
16476
+ });
16477
+ continue;
16478
+ }
15848
16479
  }
15849
16480
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items.has(0)) {
15850
16481
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -15965,7 +16596,16 @@ var Collection = class Collection extends Object$1 {
15965
16596
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "likesOf" in this._cachedJsonLd) {
15966
16597
  const prop = this._cachedJsonLd["likesOf"];
15967
16598
  const doc = Array.isArray(prop) ? prop[0] : prop;
15968
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#likesOf_fromJsonLd(doc, options);
16599
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
16600
+ v = await this.#likesOf_fromJsonLd(doc, options);
16601
+ } catch (error) {
16602
+ if (!options.suppressError) throw error;
16603
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
16604
+ property: "https://w3id.org/fep/5711#likesOf",
16605
+ error
16606
+ });
16607
+ return null;
16608
+ }
15969
16609
  }
15970
16610
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_4TB9Qd9ddtcZEpMfzbHhzafE6jaJ_likesOf.has(0)) {
15971
16611
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -16085,7 +16725,16 @@ var Collection = class Collection extends Object$1 {
16085
16725
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "sharesOf" in this._cachedJsonLd) {
16086
16726
  const prop = this._cachedJsonLd["sharesOf"];
16087
16727
  const doc = Array.isArray(prop) ? prop[0] : prop;
16088
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#sharesOf_fromJsonLd(doc, options);
16728
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
16729
+ v = await this.#sharesOf_fromJsonLd(doc, options);
16730
+ } catch (error) {
16731
+ if (!options.suppressError) throw error;
16732
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
16733
+ property: "https://w3id.org/fep/5711#sharesOf",
16734
+ error
16735
+ });
16736
+ return null;
16737
+ }
16089
16738
  }
16090
16739
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3manzgeKiPsugpztKGiaUUwJ3ito_sharesOf.has(0)) {
16091
16740
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -16205,7 +16854,16 @@ var Collection = class Collection extends Object$1 {
16205
16854
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "repliesOf" in this._cachedJsonLd) {
16206
16855
  const prop = this._cachedJsonLd["repliesOf"];
16207
16856
  const doc = Array.isArray(prop) ? prop[0] : prop;
16208
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#repliesOf_fromJsonLd(doc, options);
16857
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
16858
+ v = await this.#repliesOf_fromJsonLd(doc, options);
16859
+ } catch (error) {
16860
+ if (!options.suppressError) throw error;
16861
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
16862
+ property: "https://w3id.org/fep/5711#repliesOf",
16863
+ error
16864
+ });
16865
+ return null;
16866
+ }
16209
16867
  }
16210
16868
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3T3oGm3twpcQUcrnMisXQtmDZ32X_repliesOf.has(0)) {
16211
16869
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -16325,7 +16983,16 @@ var Collection = class Collection extends Object$1 {
16325
16983
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "inboxOf" in this._cachedJsonLd) {
16326
16984
  const prop = this._cachedJsonLd["inboxOf"];
16327
16985
  const doc = Array.isArray(prop) ? prop[0] : prop;
16328
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#inboxOf_fromJsonLd(doc, options);
16986
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
16987
+ v = await this.#inboxOf_fromJsonLd(doc, options);
16988
+ } catch (error) {
16989
+ if (!options.suppressError) throw error;
16990
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
16991
+ property: "https://w3id.org/fep/5711#inboxOf",
16992
+ error
16993
+ });
16994
+ return null;
16995
+ }
16329
16996
  }
16330
16997
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_2bvRkAFZjMfVD8jiUWZJr5YokSeN_inboxOf.has(0)) {
16331
16998
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -16445,7 +17112,16 @@ var Collection = class Collection extends Object$1 {
16445
17112
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "outboxOf" in this._cachedJsonLd) {
16446
17113
  const prop = this._cachedJsonLd["outboxOf"];
16447
17114
  const doc = Array.isArray(prop) ? prop[0] : prop;
16448
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#outboxOf_fromJsonLd(doc, options);
17115
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
17116
+ v = await this.#outboxOf_fromJsonLd(doc, options);
17117
+ } catch (error) {
17118
+ if (!options.suppressError) throw error;
17119
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
17120
+ property: "https://w3id.org/fep/5711#outboxOf",
17121
+ error
17122
+ });
17123
+ return null;
17124
+ }
16449
17125
  }
16450
17126
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_4AHzVZDxHjK6uEWa9UiKHGK34yYm_outboxOf.has(0)) {
16451
17127
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -16565,7 +17241,16 @@ var Collection = class Collection extends Object$1 {
16565
17241
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "followersOf" in this._cachedJsonLd) {
16566
17242
  const prop = this._cachedJsonLd["followersOf"];
16567
17243
  const doc = Array.isArray(prop) ? prop[0] : prop;
16568
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#followersOf_fromJsonLd(doc, options);
17244
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
17245
+ v = await this.#followersOf_fromJsonLd(doc, options);
17246
+ } catch (error) {
17247
+ if (!options.suppressError) throw error;
17248
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
17249
+ property: "https://w3id.org/fep/5711#followersOf",
17250
+ error
17251
+ });
17252
+ return null;
17253
+ }
16569
17254
  }
16570
17255
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_41aoZ5M6yRUHy3Zx8q6iuZQxtopb_followersOf.has(0)) {
16571
17256
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -16685,7 +17370,16 @@ var Collection = class Collection extends Object$1 {
16685
17370
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "followingOf" in this._cachedJsonLd) {
16686
17371
  const prop = this._cachedJsonLd["followingOf"];
16687
17372
  const doc = Array.isArray(prop) ? prop[0] : prop;
16688
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#followingOf_fromJsonLd(doc, options);
17373
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
17374
+ v = await this.#followingOf_fromJsonLd(doc, options);
17375
+ } catch (error) {
17376
+ if (!options.suppressError) throw error;
17377
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
17378
+ property: "https://w3id.org/fep/5711#followingOf",
17379
+ error
17380
+ });
17381
+ return null;
17382
+ }
16689
17383
  }
16690
17384
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_2nXT2Ah42UjEEQF5oJQ39CbKB1xj_followingOf.has(0)) {
16691
17385
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -16805,7 +17499,16 @@ var Collection = class Collection extends Object$1 {
16805
17499
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "likedOf" in this._cachedJsonLd) {
16806
17500
  const prop = this._cachedJsonLd["likedOf"];
16807
17501
  const doc = Array.isArray(prop) ? prop[0] : prop;
16808
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#likedOf_fromJsonLd(doc, options);
17502
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
17503
+ v = await this.#likedOf_fromJsonLd(doc, options);
17504
+ } catch (error) {
17505
+ if (!options.suppressError) throw error;
17506
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
17507
+ property: "https://w3id.org/fep/5711#likedOf",
17508
+ error
17509
+ });
17510
+ return null;
17511
+ }
16809
17512
  }
16810
17513
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_2bsySzmT3qEZcrnoe3tZ5xBjXSju_likedOf.has(0)) {
16811
17514
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -17710,7 +18413,16 @@ var CollectionPage = class CollectionPage extends Collection {
17710
18413
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "partOf" in this._cachedJsonLd) {
17711
18414
  const prop = this._cachedJsonLd["partOf"];
17712
18415
  const doc = Array.isArray(prop) ? prop[0] : prop;
17713
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#partOf_fromJsonLd(doc, options);
18416
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
18417
+ v = await this.#partOf_fromJsonLd(doc, options);
18418
+ } catch (error) {
18419
+ if (!options.suppressError) throw error;
18420
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
18421
+ property: "https://www.w3.org/ns/activitystreams#partOf",
18422
+ error
18423
+ });
18424
+ return null;
18425
+ }
17714
18426
  }
17715
18427
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_2kWgBhQKjEauxx8C6qF3ZQamK4Le_partOf.has(0)) {
17716
18428
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -17830,7 +18542,16 @@ var CollectionPage = class CollectionPage extends Collection {
17830
18542
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "next" in this._cachedJsonLd) {
17831
18543
  const prop = this._cachedJsonLd["next"];
17832
18544
  const doc = Array.isArray(prop) ? prop[0] : prop;
17833
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#next_fromJsonLd(doc, options);
18545
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
18546
+ v = await this.#next_fromJsonLd(doc, options);
18547
+ } catch (error) {
18548
+ if (!options.suppressError) throw error;
18549
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
18550
+ property: "https://www.w3.org/ns/activitystreams#next",
18551
+ error
18552
+ });
18553
+ return null;
18554
+ }
17834
18555
  }
17835
18556
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3BT4kQLcXhHx7TAWaNDKh8nFn9eY_next.has(0)) {
17836
18557
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -17950,7 +18671,16 @@ var CollectionPage = class CollectionPage extends Collection {
17950
18671
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "prev" in this._cachedJsonLd) {
17951
18672
  const prop = this._cachedJsonLd["prev"];
17952
18673
  const doc = Array.isArray(prop) ? prop[0] : prop;
17953
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#prev_fromJsonLd(doc, options);
18674
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
18675
+ v = await this.#prev_fromJsonLd(doc, options);
18676
+ } catch (error) {
18677
+ if (!options.suppressError) throw error;
18678
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
18679
+ property: "https://www.w3.org/ns/activitystreams#prev",
18680
+ error
18681
+ });
18682
+ return null;
18683
+ }
17954
18684
  }
17955
18685
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3b8yG8tDNzQFFEnWhCc13G8eHooA_prev.has(0)) {
17956
18686
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -20071,7 +20801,16 @@ var Group = class Group extends Object$1 {
20071
20801
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "publicKey" in this._cachedJsonLd) {
20072
20802
  const prop = this._cachedJsonLd["publicKey"];
20073
20803
  const doc = Array.isArray(prop) ? prop[0] : prop;
20074
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#publicKey_fromJsonLd(doc, options);
20804
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
20805
+ v = await this.#publicKey_fromJsonLd(doc, options);
20806
+ } catch (error) {
20807
+ if (!options.suppressError) throw error;
20808
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
20809
+ property: "https://w3id.org/security#publicKey",
20810
+ error
20811
+ });
20812
+ return null;
20813
+ }
20075
20814
  }
20076
20815
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey.has(0)) {
20077
20816
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -20112,7 +20851,17 @@ var Group = class Group extends Object$1 {
20112
20851
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "publicKey" in this._cachedJsonLd) {
20113
20852
  const prop = this._cachedJsonLd["publicKey"];
20114
20853
  const obj = Array.isArray(prop) ? prop[i] : prop;
20115
- if (obj != null && typeof obj === "object" && "@context" in obj) v = await this.#publicKey_fromJsonLd(obj, options);
20854
+ if (obj != null && typeof obj === "object" && "@context" in obj) try {
20855
+ v = await this.#publicKey_fromJsonLd(obj, options);
20856
+ } catch (error) {
20857
+ if (!options.suppressError) throw error;
20858
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
20859
+ property: "https://w3id.org/security#publicKey",
20860
+ index: i,
20861
+ error
20862
+ });
20863
+ continue;
20864
+ }
20116
20865
  }
20117
20866
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey.has(0)) {
20118
20867
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -20236,7 +20985,16 @@ var Group = class Group extends Object$1 {
20236
20985
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "assertionMethod" in this._cachedJsonLd) {
20237
20986
  const prop = this._cachedJsonLd["assertionMethod"];
20238
20987
  const doc = Array.isArray(prop) ? prop[0] : prop;
20239
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#assertionMethod_fromJsonLd(doc, options);
20988
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
20989
+ v = await this.#assertionMethod_fromJsonLd(doc, options);
20990
+ } catch (error) {
20991
+ if (!options.suppressError) throw error;
20992
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
20993
+ property: "https://w3id.org/security#assertionMethod",
20994
+ error
20995
+ });
20996
+ return null;
20997
+ }
20240
20998
  }
20241
20999
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.has(0)) {
20242
21000
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -20280,7 +21038,17 @@ var Group = class Group extends Object$1 {
20280
21038
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "assertionMethod" in this._cachedJsonLd) {
20281
21039
  const prop = this._cachedJsonLd["assertionMethod"];
20282
21040
  const obj = Array.isArray(prop) ? prop[i] : prop;
20283
- if (obj != null && typeof obj === "object" && "@context" in obj) v = await this.#assertionMethod_fromJsonLd(obj, options);
21041
+ if (obj != null && typeof obj === "object" && "@context" in obj) try {
21042
+ v = await this.#assertionMethod_fromJsonLd(obj, options);
21043
+ } catch (error) {
21044
+ if (!options.suppressError) throw error;
21045
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
21046
+ property: "https://w3id.org/security#assertionMethod",
21047
+ index: i,
21048
+ error
21049
+ });
21050
+ continue;
21051
+ }
20284
21052
  }
20285
21053
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.has(0)) {
20286
21054
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -20435,7 +21203,16 @@ var Group = class Group extends Object$1 {
20435
21203
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "inbox" in this._cachedJsonLd) {
20436
21204
  const prop = this._cachedJsonLd["inbox"];
20437
21205
  const doc = Array.isArray(prop) ? prop[0] : prop;
20438
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#inbox_fromJsonLd(doc, options);
21206
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
21207
+ v = await this.#inbox_fromJsonLd(doc, options);
21208
+ } catch (error) {
21209
+ if (!options.suppressError) throw error;
21210
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
21211
+ property: "http://www.w3.org/ns/ldp#inbox",
21212
+ error
21213
+ });
21214
+ return null;
21215
+ }
20439
21216
  }
20440
21217
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox.has(0)) {
20441
21218
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -20574,7 +21351,16 @@ var Group = class Group extends Object$1 {
20574
21351
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "outbox" in this._cachedJsonLd) {
20575
21352
  const prop = this._cachedJsonLd["outbox"];
20576
21353
  const doc = Array.isArray(prop) ? prop[0] : prop;
20577
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#outbox_fromJsonLd(doc, options);
21354
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
21355
+ v = await this.#outbox_fromJsonLd(doc, options);
21356
+ } catch (error) {
21357
+ if (!options.suppressError) throw error;
21358
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
21359
+ property: "https://www.w3.org/ns/activitystreams#outbox",
21360
+ error
21361
+ });
21362
+ return null;
21363
+ }
20578
21364
  }
20579
21365
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_41QwhqJouoLg3h8dRPKat21brynC_outbox.has(0)) {
20580
21366
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -20698,7 +21484,16 @@ var Group = class Group extends Object$1 {
20698
21484
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "following" in this._cachedJsonLd) {
20699
21485
  const prop = this._cachedJsonLd["following"];
20700
21486
  const doc = Array.isArray(prop) ? prop[0] : prop;
20701
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#following_fromJsonLd(doc, options);
21487
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
21488
+ v = await this.#following_fromJsonLd(doc, options);
21489
+ } catch (error) {
21490
+ if (!options.suppressError) throw error;
21491
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
21492
+ property: "https://www.w3.org/ns/activitystreams#following",
21493
+ error
21494
+ });
21495
+ return null;
21496
+ }
20702
21497
  }
20703
21498
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following.has(0)) {
20704
21499
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -20825,7 +21620,16 @@ var Group = class Group extends Object$1 {
20825
21620
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "followers" in this._cachedJsonLd) {
20826
21621
  const prop = this._cachedJsonLd["followers"];
20827
21622
  const doc = Array.isArray(prop) ? prop[0] : prop;
20828
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#followers_fromJsonLd(doc, options);
21623
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
21624
+ v = await this.#followers_fromJsonLd(doc, options);
21625
+ } catch (error) {
21626
+ if (!options.suppressError) throw error;
21627
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
21628
+ property: "https://www.w3.org/ns/activitystreams#followers",
21629
+ error
21630
+ });
21631
+ return null;
21632
+ }
20829
21633
  }
20830
21634
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_BBCTgfphhsFzpVfKTykGSpBNwoA_followers.has(0)) {
20831
21635
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -20950,7 +21754,16 @@ var Group = class Group extends Object$1 {
20950
21754
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "liked" in this._cachedJsonLd) {
20951
21755
  const prop = this._cachedJsonLd["liked"];
20952
21756
  const doc = Array.isArray(prop) ? prop[0] : prop;
20953
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#liked_fromJsonLd(doc, options);
21757
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
21758
+ v = await this.#liked_fromJsonLd(doc, options);
21759
+ } catch (error) {
21760
+ if (!options.suppressError) throw error;
21761
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
21762
+ property: "https://www.w3.org/ns/activitystreams#liked",
21763
+ error
21764
+ });
21765
+ return null;
21766
+ }
20954
21767
  }
20955
21768
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked.has(0)) {
20956
21769
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -21073,7 +21886,16 @@ var Group = class Group extends Object$1 {
21073
21886
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "featured" in this._cachedJsonLd) {
21074
21887
  const prop = this._cachedJsonLd["featured"];
21075
21888
  const doc = Array.isArray(prop) ? prop[0] : prop;
21076
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#featured_fromJsonLd(doc, options);
21889
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
21890
+ v = await this.#featured_fromJsonLd(doc, options);
21891
+ } catch (error) {
21892
+ if (!options.suppressError) throw error;
21893
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
21894
+ property: "http://joinmastodon.org/ns#featured",
21895
+ error
21896
+ });
21897
+ return null;
21898
+ }
21077
21899
  }
21078
21900
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_4N1vBJzXDf8NbBumeECQMFvKetja_featured.has(0)) {
21079
21901
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -21196,7 +22018,16 @@ var Group = class Group extends Object$1 {
21196
22018
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "featuredTags" in this._cachedJsonLd) {
21197
22019
  const prop = this._cachedJsonLd["featuredTags"];
21198
22020
  const doc = Array.isArray(prop) ? prop[0] : prop;
21199
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#featuredTags_fromJsonLd(doc, options);
22021
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
22022
+ v = await this.#featuredTags_fromJsonLd(doc, options);
22023
+ } catch (error) {
22024
+ if (!options.suppressError) throw error;
22025
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
22026
+ property: "http://joinmastodon.org/ns#featuredTags",
22027
+ error
22028
+ });
22029
+ return null;
22030
+ }
21200
22031
  }
21201
22032
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags.has(0)) {
21202
22033
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -21315,7 +22146,17 @@ var Group = class Group extends Object$1 {
21315
22146
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "streams" in this._cachedJsonLd) {
21316
22147
  const prop = this._cachedJsonLd["streams"];
21317
22148
  const obj = Array.isArray(prop) ? prop[i] : prop;
21318
- if (obj != null && typeof obj === "object" && "@context" in obj) v = await this.#stream_fromJsonLd(obj, options);
22149
+ if (obj != null && typeof obj === "object" && "@context" in obj) try {
22150
+ v = await this.#stream_fromJsonLd(obj, options);
22151
+ } catch (error) {
22152
+ if (!options.suppressError) throw error;
22153
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
22154
+ property: "https://www.w3.org/ns/activitystreams#streams",
22155
+ index: i,
22156
+ error
22157
+ });
22158
+ continue;
22159
+ }
21319
22160
  }
21320
22161
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.has(0)) {
21321
22162
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -21524,7 +22365,16 @@ var Group = class Group extends Object$1 {
21524
22365
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "movedTo" in this._cachedJsonLd) {
21525
22366
  const prop = this._cachedJsonLd["movedTo"];
21526
22367
  const doc = Array.isArray(prop) ? prop[0] : prop;
21527
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#successor_fromJsonLd(doc, options);
22368
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
22369
+ v = await this.#successor_fromJsonLd(doc, options);
22370
+ } catch (error) {
22371
+ if (!options.suppressError) throw error;
22372
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
22373
+ property: "https://www.w3.org/ns/activitystreams#movedTo",
22374
+ error
22375
+ });
22376
+ return null;
22377
+ }
21528
22378
  }
21529
22379
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo.has(0)) {
21530
22380
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -21693,7 +22543,16 @@ var Group = class Group extends Object$1 {
21693
22543
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "alsoKnownAs" in this._cachedJsonLd) {
21694
22544
  const prop = this._cachedJsonLd["alsoKnownAs"];
21695
22545
  const doc = Array.isArray(prop) ? prop[0] : prop;
21696
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#alias_fromJsonLd(doc, options);
22546
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
22547
+ v = await this.#alias_fromJsonLd(doc, options);
22548
+ } catch (error) {
22549
+ if (!options.suppressError) throw error;
22550
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
22551
+ property: "https://www.w3.org/ns/activitystreams#alsoKnownAs",
22552
+ error
22553
+ });
22554
+ return null;
22555
+ }
21697
22556
  }
21698
22557
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs.has(0)) {
21699
22558
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -21737,7 +22596,17 @@ var Group = class Group extends Object$1 {
21737
22596
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "alsoKnownAs" in this._cachedJsonLd) {
21738
22597
  const prop = this._cachedJsonLd["alsoKnownAs"];
21739
22598
  const obj = Array.isArray(prop) ? prop[i] : prop;
21740
- if (obj != null && typeof obj === "object" && "@context" in obj) v = await this.#alias_fromJsonLd(obj, options);
22599
+ if (obj != null && typeof obj === "object" && "@context" in obj) try {
22600
+ v = await this.#alias_fromJsonLd(obj, options);
22601
+ } catch (error) {
22602
+ if (!options.suppressError) throw error;
22603
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
22604
+ property: "https://www.w3.org/ns/activitystreams#alsoKnownAs",
22605
+ index: i,
22606
+ error
22607
+ });
22608
+ continue;
22609
+ }
21741
22610
  }
21742
22611
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs.has(0)) {
21743
22612
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -21861,7 +22730,16 @@ var Group = class Group extends Object$1 {
21861
22730
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "service" in this._cachedJsonLd) {
21862
22731
  const prop = this._cachedJsonLd["service"];
21863
22732
  const doc = Array.isArray(prop) ? prop[0] : prop;
21864
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#service_fromJsonLd(doc, options);
22733
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
22734
+ v = await this.#service_fromJsonLd(doc, options);
22735
+ } catch (error) {
22736
+ if (!options.suppressError) throw error;
22737
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
22738
+ property: "https://www.w3.org/ns/did#service",
22739
+ error
22740
+ });
22741
+ return null;
22742
+ }
21865
22743
  }
21866
22744
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.has(0)) {
21867
22745
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -21905,7 +22783,17 @@ var Group = class Group extends Object$1 {
21905
22783
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "service" in this._cachedJsonLd) {
21906
22784
  const prop = this._cachedJsonLd["service"];
21907
22785
  const obj = Array.isArray(prop) ? prop[i] : prop;
21908
- if (obj != null && typeof obj === "object" && "@context" in obj) v = await this.#service_fromJsonLd(obj, options);
22786
+ if (obj != null && typeof obj === "object" && "@context" in obj) try {
22787
+ v = await this.#service_fromJsonLd(obj, options);
22788
+ } catch (error) {
22789
+ if (!options.suppressError) throw error;
22790
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
22791
+ property: "https://www.w3.org/ns/did#service",
22792
+ index: i,
22793
+ error
22794
+ });
22795
+ continue;
22796
+ }
21909
22797
  }
21910
22798
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.has(0)) {
21911
22799
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -23310,7 +24198,17 @@ var Link = class Link {
23310
24198
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "preview" in this._cachedJsonLd) {
23311
24199
  const prop = this._cachedJsonLd["preview"];
23312
24200
  const obj = Array.isArray(prop) ? prop[i] : prop;
23313
- if (obj != null && typeof obj === "object" && "@context" in obj) v = await this.#preview_fromJsonLd(obj, options);
24201
+ if (obj != null && typeof obj === "object" && "@context" in obj) try {
24202
+ v = await this.#preview_fromJsonLd(obj, options);
24203
+ } catch (error) {
24204
+ if (!options.suppressError) throw error;
24205
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
24206
+ property: "https://www.w3.org/ns/activitystreams#preview",
24207
+ index: i,
24208
+ error
24209
+ });
24210
+ continue;
24211
+ }
23314
24212
  }
23315
24213
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_gCVTegXxWWCw6wWRxa1QF65zusg_preview.has(0)) {
23316
24214
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -25692,7 +26590,17 @@ var OrderedCollection = class OrderedCollection extends Collection {
25692
26590
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "orderedItems" in this._cachedJsonLd) {
25693
26591
  const prop = this._cachedJsonLd["orderedItems"];
25694
26592
  const obj = Array.isArray(prop) ? prop[i] : prop;
25695
- if (obj != null && typeof obj === "object" && "@context" in obj) v = await this.#item_fromJsonLd(obj, options);
26593
+ if (obj != null && typeof obj === "object" && "@context" in obj) try {
26594
+ v = await this.#item_fromJsonLd(obj, options);
26595
+ } catch (error) {
26596
+ if (!options.suppressError) throw error;
26597
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
26598
+ property: "https://www.w3.org/ns/activitystreams#items",
26599
+ index: i,
26600
+ error
26601
+ });
26602
+ continue;
26603
+ }
25696
26604
  }
25697
26605
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items.has(0)) {
25698
26606
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -26152,7 +27060,17 @@ var OrderedCollectionPage = class OrderedCollectionPage extends CollectionPage {
26152
27060
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "orderedItems" in this._cachedJsonLd) {
26153
27061
  const prop = this._cachedJsonLd["orderedItems"];
26154
27062
  const obj = Array.isArray(prop) ? prop[i] : prop;
26155
- if (obj != null && typeof obj === "object" && "@context" in obj) v = await this.#item_fromJsonLd(obj, options);
27063
+ if (obj != null && typeof obj === "object" && "@context" in obj) try {
27064
+ v = await this.#item_fromJsonLd(obj, options);
27065
+ } catch (error) {
27066
+ if (!options.suppressError) throw error;
27067
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
27068
+ property: "https://www.w3.org/ns/activitystreams#items",
27069
+ index: i,
27070
+ error
27071
+ });
27072
+ continue;
27073
+ }
26156
27074
  }
26157
27075
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items.has(0)) {
26158
27076
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -26913,7 +27831,16 @@ var Organization = class Organization extends Object$1 {
26913
27831
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "publicKey" in this._cachedJsonLd) {
26914
27832
  const prop = this._cachedJsonLd["publicKey"];
26915
27833
  const doc = Array.isArray(prop) ? prop[0] : prop;
26916
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#publicKey_fromJsonLd(doc, options);
27834
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
27835
+ v = await this.#publicKey_fromJsonLd(doc, options);
27836
+ } catch (error) {
27837
+ if (!options.suppressError) throw error;
27838
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
27839
+ property: "https://w3id.org/security#publicKey",
27840
+ error
27841
+ });
27842
+ return null;
27843
+ }
26917
27844
  }
26918
27845
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey.has(0)) {
26919
27846
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -26954,7 +27881,17 @@ var Organization = class Organization extends Object$1 {
26954
27881
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "publicKey" in this._cachedJsonLd) {
26955
27882
  const prop = this._cachedJsonLd["publicKey"];
26956
27883
  const obj = Array.isArray(prop) ? prop[i] : prop;
26957
- if (obj != null && typeof obj === "object" && "@context" in obj) v = await this.#publicKey_fromJsonLd(obj, options);
27884
+ if (obj != null && typeof obj === "object" && "@context" in obj) try {
27885
+ v = await this.#publicKey_fromJsonLd(obj, options);
27886
+ } catch (error) {
27887
+ if (!options.suppressError) throw error;
27888
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
27889
+ property: "https://w3id.org/security#publicKey",
27890
+ index: i,
27891
+ error
27892
+ });
27893
+ continue;
27894
+ }
26958
27895
  }
26959
27896
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey.has(0)) {
26960
27897
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -27078,7 +28015,16 @@ var Organization = class Organization extends Object$1 {
27078
28015
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "assertionMethod" in this._cachedJsonLd) {
27079
28016
  const prop = this._cachedJsonLd["assertionMethod"];
27080
28017
  const doc = Array.isArray(prop) ? prop[0] : prop;
27081
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#assertionMethod_fromJsonLd(doc, options);
28018
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
28019
+ v = await this.#assertionMethod_fromJsonLd(doc, options);
28020
+ } catch (error) {
28021
+ if (!options.suppressError) throw error;
28022
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
28023
+ property: "https://w3id.org/security#assertionMethod",
28024
+ error
28025
+ });
28026
+ return null;
28027
+ }
27082
28028
  }
27083
28029
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.has(0)) {
27084
28030
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -27122,7 +28068,17 @@ var Organization = class Organization extends Object$1 {
27122
28068
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "assertionMethod" in this._cachedJsonLd) {
27123
28069
  const prop = this._cachedJsonLd["assertionMethod"];
27124
28070
  const obj = Array.isArray(prop) ? prop[i] : prop;
27125
- if (obj != null && typeof obj === "object" && "@context" in obj) v = await this.#assertionMethod_fromJsonLd(obj, options);
28071
+ if (obj != null && typeof obj === "object" && "@context" in obj) try {
28072
+ v = await this.#assertionMethod_fromJsonLd(obj, options);
28073
+ } catch (error) {
28074
+ if (!options.suppressError) throw error;
28075
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
28076
+ property: "https://w3id.org/security#assertionMethod",
28077
+ index: i,
28078
+ error
28079
+ });
28080
+ continue;
28081
+ }
27126
28082
  }
27127
28083
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.has(0)) {
27128
28084
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -27277,7 +28233,16 @@ var Organization = class Organization extends Object$1 {
27277
28233
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "inbox" in this._cachedJsonLd) {
27278
28234
  const prop = this._cachedJsonLd["inbox"];
27279
28235
  const doc = Array.isArray(prop) ? prop[0] : prop;
27280
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#inbox_fromJsonLd(doc, options);
28236
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
28237
+ v = await this.#inbox_fromJsonLd(doc, options);
28238
+ } catch (error) {
28239
+ if (!options.suppressError) throw error;
28240
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
28241
+ property: "http://www.w3.org/ns/ldp#inbox",
28242
+ error
28243
+ });
28244
+ return null;
28245
+ }
27281
28246
  }
27282
28247
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox.has(0)) {
27283
28248
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -27416,7 +28381,16 @@ var Organization = class Organization extends Object$1 {
27416
28381
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "outbox" in this._cachedJsonLd) {
27417
28382
  const prop = this._cachedJsonLd["outbox"];
27418
28383
  const doc = Array.isArray(prop) ? prop[0] : prop;
27419
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#outbox_fromJsonLd(doc, options);
28384
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
28385
+ v = await this.#outbox_fromJsonLd(doc, options);
28386
+ } catch (error) {
28387
+ if (!options.suppressError) throw error;
28388
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
28389
+ property: "https://www.w3.org/ns/activitystreams#outbox",
28390
+ error
28391
+ });
28392
+ return null;
28393
+ }
27420
28394
  }
27421
28395
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_41QwhqJouoLg3h8dRPKat21brynC_outbox.has(0)) {
27422
28396
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -27540,7 +28514,16 @@ var Organization = class Organization extends Object$1 {
27540
28514
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "following" in this._cachedJsonLd) {
27541
28515
  const prop = this._cachedJsonLd["following"];
27542
28516
  const doc = Array.isArray(prop) ? prop[0] : prop;
27543
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#following_fromJsonLd(doc, options);
28517
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
28518
+ v = await this.#following_fromJsonLd(doc, options);
28519
+ } catch (error) {
28520
+ if (!options.suppressError) throw error;
28521
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
28522
+ property: "https://www.w3.org/ns/activitystreams#following",
28523
+ error
28524
+ });
28525
+ return null;
28526
+ }
27544
28527
  }
27545
28528
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following.has(0)) {
27546
28529
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -27667,7 +28650,16 @@ var Organization = class Organization extends Object$1 {
27667
28650
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "followers" in this._cachedJsonLd) {
27668
28651
  const prop = this._cachedJsonLd["followers"];
27669
28652
  const doc = Array.isArray(prop) ? prop[0] : prop;
27670
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#followers_fromJsonLd(doc, options);
28653
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
28654
+ v = await this.#followers_fromJsonLd(doc, options);
28655
+ } catch (error) {
28656
+ if (!options.suppressError) throw error;
28657
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
28658
+ property: "https://www.w3.org/ns/activitystreams#followers",
28659
+ error
28660
+ });
28661
+ return null;
28662
+ }
27671
28663
  }
27672
28664
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_BBCTgfphhsFzpVfKTykGSpBNwoA_followers.has(0)) {
27673
28665
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -27792,7 +28784,16 @@ var Organization = class Organization extends Object$1 {
27792
28784
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "liked" in this._cachedJsonLd) {
27793
28785
  const prop = this._cachedJsonLd["liked"];
27794
28786
  const doc = Array.isArray(prop) ? prop[0] : prop;
27795
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#liked_fromJsonLd(doc, options);
28787
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
28788
+ v = await this.#liked_fromJsonLd(doc, options);
28789
+ } catch (error) {
28790
+ if (!options.suppressError) throw error;
28791
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
28792
+ property: "https://www.w3.org/ns/activitystreams#liked",
28793
+ error
28794
+ });
28795
+ return null;
28796
+ }
27796
28797
  }
27797
28798
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked.has(0)) {
27798
28799
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -27915,7 +28916,16 @@ var Organization = class Organization extends Object$1 {
27915
28916
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "featured" in this._cachedJsonLd) {
27916
28917
  const prop = this._cachedJsonLd["featured"];
27917
28918
  const doc = Array.isArray(prop) ? prop[0] : prop;
27918
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#featured_fromJsonLd(doc, options);
28919
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
28920
+ v = await this.#featured_fromJsonLd(doc, options);
28921
+ } catch (error) {
28922
+ if (!options.suppressError) throw error;
28923
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
28924
+ property: "http://joinmastodon.org/ns#featured",
28925
+ error
28926
+ });
28927
+ return null;
28928
+ }
27919
28929
  }
27920
28930
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_4N1vBJzXDf8NbBumeECQMFvKetja_featured.has(0)) {
27921
28931
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -28038,7 +29048,16 @@ var Organization = class Organization extends Object$1 {
28038
29048
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "featuredTags" in this._cachedJsonLd) {
28039
29049
  const prop = this._cachedJsonLd["featuredTags"];
28040
29050
  const doc = Array.isArray(prop) ? prop[0] : prop;
28041
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#featuredTags_fromJsonLd(doc, options);
29051
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
29052
+ v = await this.#featuredTags_fromJsonLd(doc, options);
29053
+ } catch (error) {
29054
+ if (!options.suppressError) throw error;
29055
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
29056
+ property: "http://joinmastodon.org/ns#featuredTags",
29057
+ error
29058
+ });
29059
+ return null;
29060
+ }
28042
29061
  }
28043
29062
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags.has(0)) {
28044
29063
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -28157,7 +29176,17 @@ var Organization = class Organization extends Object$1 {
28157
29176
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "streams" in this._cachedJsonLd) {
28158
29177
  const prop = this._cachedJsonLd["streams"];
28159
29178
  const obj = Array.isArray(prop) ? prop[i] : prop;
28160
- if (obj != null && typeof obj === "object" && "@context" in obj) v = await this.#stream_fromJsonLd(obj, options);
29179
+ if (obj != null && typeof obj === "object" && "@context" in obj) try {
29180
+ v = await this.#stream_fromJsonLd(obj, options);
29181
+ } catch (error) {
29182
+ if (!options.suppressError) throw error;
29183
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
29184
+ property: "https://www.w3.org/ns/activitystreams#streams",
29185
+ index: i,
29186
+ error
29187
+ });
29188
+ continue;
29189
+ }
28161
29190
  }
28162
29191
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.has(0)) {
28163
29192
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -28366,7 +29395,16 @@ var Organization = class Organization extends Object$1 {
28366
29395
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "movedTo" in this._cachedJsonLd) {
28367
29396
  const prop = this._cachedJsonLd["movedTo"];
28368
29397
  const doc = Array.isArray(prop) ? prop[0] : prop;
28369
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#successor_fromJsonLd(doc, options);
29398
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
29399
+ v = await this.#successor_fromJsonLd(doc, options);
29400
+ } catch (error) {
29401
+ if (!options.suppressError) throw error;
29402
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
29403
+ property: "https://www.w3.org/ns/activitystreams#movedTo",
29404
+ error
29405
+ });
29406
+ return null;
29407
+ }
28370
29408
  }
28371
29409
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo.has(0)) {
28372
29410
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -28535,7 +29573,16 @@ var Organization = class Organization extends Object$1 {
28535
29573
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "alsoKnownAs" in this._cachedJsonLd) {
28536
29574
  const prop = this._cachedJsonLd["alsoKnownAs"];
28537
29575
  const doc = Array.isArray(prop) ? prop[0] : prop;
28538
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#alias_fromJsonLd(doc, options);
29576
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
29577
+ v = await this.#alias_fromJsonLd(doc, options);
29578
+ } catch (error) {
29579
+ if (!options.suppressError) throw error;
29580
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
29581
+ property: "https://www.w3.org/ns/activitystreams#alsoKnownAs",
29582
+ error
29583
+ });
29584
+ return null;
29585
+ }
28539
29586
  }
28540
29587
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs.has(0)) {
28541
29588
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -28579,7 +29626,17 @@ var Organization = class Organization extends Object$1 {
28579
29626
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "alsoKnownAs" in this._cachedJsonLd) {
28580
29627
  const prop = this._cachedJsonLd["alsoKnownAs"];
28581
29628
  const obj = Array.isArray(prop) ? prop[i] : prop;
28582
- if (obj != null && typeof obj === "object" && "@context" in obj) v = await this.#alias_fromJsonLd(obj, options);
29629
+ if (obj != null && typeof obj === "object" && "@context" in obj) try {
29630
+ v = await this.#alias_fromJsonLd(obj, options);
29631
+ } catch (error) {
29632
+ if (!options.suppressError) throw error;
29633
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
29634
+ property: "https://www.w3.org/ns/activitystreams#alsoKnownAs",
29635
+ index: i,
29636
+ error
29637
+ });
29638
+ continue;
29639
+ }
28583
29640
  }
28584
29641
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs.has(0)) {
28585
29642
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -28703,7 +29760,16 @@ var Organization = class Organization extends Object$1 {
28703
29760
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "service" in this._cachedJsonLd) {
28704
29761
  const prop = this._cachedJsonLd["service"];
28705
29762
  const doc = Array.isArray(prop) ? prop[0] : prop;
28706
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#service_fromJsonLd(doc, options);
29763
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
29764
+ v = await this.#service_fromJsonLd(doc, options);
29765
+ } catch (error) {
29766
+ if (!options.suppressError) throw error;
29767
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
29768
+ property: "https://www.w3.org/ns/did#service",
29769
+ error
29770
+ });
29771
+ return null;
29772
+ }
28707
29773
  }
28708
29774
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.has(0)) {
28709
29775
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -28747,7 +29813,17 @@ var Organization = class Organization extends Object$1 {
28747
29813
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "service" in this._cachedJsonLd) {
28748
29814
  const prop = this._cachedJsonLd["service"];
28749
29815
  const obj = Array.isArray(prop) ? prop[i] : prop;
28750
- if (obj != null && typeof obj === "object" && "@context" in obj) v = await this.#service_fromJsonLd(obj, options);
29816
+ if (obj != null && typeof obj === "object" && "@context" in obj) try {
29817
+ v = await this.#service_fromJsonLd(obj, options);
29818
+ } catch (error) {
29819
+ if (!options.suppressError) throw error;
29820
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
29821
+ property: "https://www.w3.org/ns/did#service",
29822
+ index: i,
29823
+ error
29824
+ });
29825
+ continue;
29826
+ }
28751
29827
  }
28752
29828
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.has(0)) {
28753
29829
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -30394,7 +31470,16 @@ var Person = class Person extends Object$1 {
30394
31470
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "publicKey" in this._cachedJsonLd) {
30395
31471
  const prop = this._cachedJsonLd["publicKey"];
30396
31472
  const doc = Array.isArray(prop) ? prop[0] : prop;
30397
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#publicKey_fromJsonLd(doc, options);
31473
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
31474
+ v = await this.#publicKey_fromJsonLd(doc, options);
31475
+ } catch (error) {
31476
+ if (!options.suppressError) throw error;
31477
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
31478
+ property: "https://w3id.org/security#publicKey",
31479
+ error
31480
+ });
31481
+ return null;
31482
+ }
30398
31483
  }
30399
31484
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey.has(0)) {
30400
31485
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -30435,7 +31520,17 @@ var Person = class Person extends Object$1 {
30435
31520
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "publicKey" in this._cachedJsonLd) {
30436
31521
  const prop = this._cachedJsonLd["publicKey"];
30437
31522
  const obj = Array.isArray(prop) ? prop[i] : prop;
30438
- if (obj != null && typeof obj === "object" && "@context" in obj) v = await this.#publicKey_fromJsonLd(obj, options);
31523
+ if (obj != null && typeof obj === "object" && "@context" in obj) try {
31524
+ v = await this.#publicKey_fromJsonLd(obj, options);
31525
+ } catch (error) {
31526
+ if (!options.suppressError) throw error;
31527
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
31528
+ property: "https://w3id.org/security#publicKey",
31529
+ index: i,
31530
+ error
31531
+ });
31532
+ continue;
31533
+ }
30439
31534
  }
30440
31535
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey.has(0)) {
30441
31536
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -30559,7 +31654,16 @@ var Person = class Person extends Object$1 {
30559
31654
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "assertionMethod" in this._cachedJsonLd) {
30560
31655
  const prop = this._cachedJsonLd["assertionMethod"];
30561
31656
  const doc = Array.isArray(prop) ? prop[0] : prop;
30562
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#assertionMethod_fromJsonLd(doc, options);
31657
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
31658
+ v = await this.#assertionMethod_fromJsonLd(doc, options);
31659
+ } catch (error) {
31660
+ if (!options.suppressError) throw error;
31661
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
31662
+ property: "https://w3id.org/security#assertionMethod",
31663
+ error
31664
+ });
31665
+ return null;
31666
+ }
30563
31667
  }
30564
31668
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.has(0)) {
30565
31669
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -30603,7 +31707,17 @@ var Person = class Person extends Object$1 {
30603
31707
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "assertionMethod" in this._cachedJsonLd) {
30604
31708
  const prop = this._cachedJsonLd["assertionMethod"];
30605
31709
  const obj = Array.isArray(prop) ? prop[i] : prop;
30606
- if (obj != null && typeof obj === "object" && "@context" in obj) v = await this.#assertionMethod_fromJsonLd(obj, options);
31710
+ if (obj != null && typeof obj === "object" && "@context" in obj) try {
31711
+ v = await this.#assertionMethod_fromJsonLd(obj, options);
31712
+ } catch (error) {
31713
+ if (!options.suppressError) throw error;
31714
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
31715
+ property: "https://w3id.org/security#assertionMethod",
31716
+ index: i,
31717
+ error
31718
+ });
31719
+ continue;
31720
+ }
30607
31721
  }
30608
31722
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.has(0)) {
30609
31723
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -30758,7 +31872,16 @@ var Person = class Person extends Object$1 {
30758
31872
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "inbox" in this._cachedJsonLd) {
30759
31873
  const prop = this._cachedJsonLd["inbox"];
30760
31874
  const doc = Array.isArray(prop) ? prop[0] : prop;
30761
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#inbox_fromJsonLd(doc, options);
31875
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
31876
+ v = await this.#inbox_fromJsonLd(doc, options);
31877
+ } catch (error) {
31878
+ if (!options.suppressError) throw error;
31879
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
31880
+ property: "http://www.w3.org/ns/ldp#inbox",
31881
+ error
31882
+ });
31883
+ return null;
31884
+ }
30762
31885
  }
30763
31886
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox.has(0)) {
30764
31887
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -30897,7 +32020,16 @@ var Person = class Person extends Object$1 {
30897
32020
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "outbox" in this._cachedJsonLd) {
30898
32021
  const prop = this._cachedJsonLd["outbox"];
30899
32022
  const doc = Array.isArray(prop) ? prop[0] : prop;
30900
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#outbox_fromJsonLd(doc, options);
32023
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
32024
+ v = await this.#outbox_fromJsonLd(doc, options);
32025
+ } catch (error) {
32026
+ if (!options.suppressError) throw error;
32027
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
32028
+ property: "https://www.w3.org/ns/activitystreams#outbox",
32029
+ error
32030
+ });
32031
+ return null;
32032
+ }
30901
32033
  }
30902
32034
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_41QwhqJouoLg3h8dRPKat21brynC_outbox.has(0)) {
30903
32035
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -31021,7 +32153,16 @@ var Person = class Person extends Object$1 {
31021
32153
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "following" in this._cachedJsonLd) {
31022
32154
  const prop = this._cachedJsonLd["following"];
31023
32155
  const doc = Array.isArray(prop) ? prop[0] : prop;
31024
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#following_fromJsonLd(doc, options);
32156
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
32157
+ v = await this.#following_fromJsonLd(doc, options);
32158
+ } catch (error) {
32159
+ if (!options.suppressError) throw error;
32160
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
32161
+ property: "https://www.w3.org/ns/activitystreams#following",
32162
+ error
32163
+ });
32164
+ return null;
32165
+ }
31025
32166
  }
31026
32167
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following.has(0)) {
31027
32168
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -31148,7 +32289,16 @@ var Person = class Person extends Object$1 {
31148
32289
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "followers" in this._cachedJsonLd) {
31149
32290
  const prop = this._cachedJsonLd["followers"];
31150
32291
  const doc = Array.isArray(prop) ? prop[0] : prop;
31151
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#followers_fromJsonLd(doc, options);
32292
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
32293
+ v = await this.#followers_fromJsonLd(doc, options);
32294
+ } catch (error) {
32295
+ if (!options.suppressError) throw error;
32296
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
32297
+ property: "https://www.w3.org/ns/activitystreams#followers",
32298
+ error
32299
+ });
32300
+ return null;
32301
+ }
31152
32302
  }
31153
32303
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_BBCTgfphhsFzpVfKTykGSpBNwoA_followers.has(0)) {
31154
32304
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -31273,7 +32423,16 @@ var Person = class Person extends Object$1 {
31273
32423
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "liked" in this._cachedJsonLd) {
31274
32424
  const prop = this._cachedJsonLd["liked"];
31275
32425
  const doc = Array.isArray(prop) ? prop[0] : prop;
31276
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#liked_fromJsonLd(doc, options);
32426
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
32427
+ v = await this.#liked_fromJsonLd(doc, options);
32428
+ } catch (error) {
32429
+ if (!options.suppressError) throw error;
32430
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
32431
+ property: "https://www.w3.org/ns/activitystreams#liked",
32432
+ error
32433
+ });
32434
+ return null;
32435
+ }
31277
32436
  }
31278
32437
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked.has(0)) {
31279
32438
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -31396,7 +32555,16 @@ var Person = class Person extends Object$1 {
31396
32555
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "featured" in this._cachedJsonLd) {
31397
32556
  const prop = this._cachedJsonLd["featured"];
31398
32557
  const doc = Array.isArray(prop) ? prop[0] : prop;
31399
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#featured_fromJsonLd(doc, options);
32558
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
32559
+ v = await this.#featured_fromJsonLd(doc, options);
32560
+ } catch (error) {
32561
+ if (!options.suppressError) throw error;
32562
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
32563
+ property: "http://joinmastodon.org/ns#featured",
32564
+ error
32565
+ });
32566
+ return null;
32567
+ }
31400
32568
  }
31401
32569
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_4N1vBJzXDf8NbBumeECQMFvKetja_featured.has(0)) {
31402
32570
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -31519,7 +32687,16 @@ var Person = class Person extends Object$1 {
31519
32687
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "featuredTags" in this._cachedJsonLd) {
31520
32688
  const prop = this._cachedJsonLd["featuredTags"];
31521
32689
  const doc = Array.isArray(prop) ? prop[0] : prop;
31522
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#featuredTags_fromJsonLd(doc, options);
32690
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
32691
+ v = await this.#featuredTags_fromJsonLd(doc, options);
32692
+ } catch (error) {
32693
+ if (!options.suppressError) throw error;
32694
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
32695
+ property: "http://joinmastodon.org/ns#featuredTags",
32696
+ error
32697
+ });
32698
+ return null;
32699
+ }
31523
32700
  }
31524
32701
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags.has(0)) {
31525
32702
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -31638,7 +32815,17 @@ var Person = class Person extends Object$1 {
31638
32815
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "streams" in this._cachedJsonLd) {
31639
32816
  const prop = this._cachedJsonLd["streams"];
31640
32817
  const obj = Array.isArray(prop) ? prop[i] : prop;
31641
- if (obj != null && typeof obj === "object" && "@context" in obj) v = await this.#stream_fromJsonLd(obj, options);
32818
+ if (obj != null && typeof obj === "object" && "@context" in obj) try {
32819
+ v = await this.#stream_fromJsonLd(obj, options);
32820
+ } catch (error) {
32821
+ if (!options.suppressError) throw error;
32822
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
32823
+ property: "https://www.w3.org/ns/activitystreams#streams",
32824
+ index: i,
32825
+ error
32826
+ });
32827
+ continue;
32828
+ }
31642
32829
  }
31643
32830
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.has(0)) {
31644
32831
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -31847,7 +33034,16 @@ var Person = class Person extends Object$1 {
31847
33034
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "movedTo" in this._cachedJsonLd) {
31848
33035
  const prop = this._cachedJsonLd["movedTo"];
31849
33036
  const doc = Array.isArray(prop) ? prop[0] : prop;
31850
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#successor_fromJsonLd(doc, options);
33037
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
33038
+ v = await this.#successor_fromJsonLd(doc, options);
33039
+ } catch (error) {
33040
+ if (!options.suppressError) throw error;
33041
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
33042
+ property: "https://www.w3.org/ns/activitystreams#movedTo",
33043
+ error
33044
+ });
33045
+ return null;
33046
+ }
31851
33047
  }
31852
33048
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo.has(0)) {
31853
33049
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -32016,7 +33212,16 @@ var Person = class Person extends Object$1 {
32016
33212
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "alsoKnownAs" in this._cachedJsonLd) {
32017
33213
  const prop = this._cachedJsonLd["alsoKnownAs"];
32018
33214
  const doc = Array.isArray(prop) ? prop[0] : prop;
32019
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#alias_fromJsonLd(doc, options);
33215
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
33216
+ v = await this.#alias_fromJsonLd(doc, options);
33217
+ } catch (error) {
33218
+ if (!options.suppressError) throw error;
33219
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
33220
+ property: "https://www.w3.org/ns/activitystreams#alsoKnownAs",
33221
+ error
33222
+ });
33223
+ return null;
33224
+ }
32020
33225
  }
32021
33226
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs.has(0)) {
32022
33227
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -32060,7 +33265,17 @@ var Person = class Person extends Object$1 {
32060
33265
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "alsoKnownAs" in this._cachedJsonLd) {
32061
33266
  const prop = this._cachedJsonLd["alsoKnownAs"];
32062
33267
  const obj = Array.isArray(prop) ? prop[i] : prop;
32063
- if (obj != null && typeof obj === "object" && "@context" in obj) v = await this.#alias_fromJsonLd(obj, options);
33268
+ if (obj != null && typeof obj === "object" && "@context" in obj) try {
33269
+ v = await this.#alias_fromJsonLd(obj, options);
33270
+ } catch (error) {
33271
+ if (!options.suppressError) throw error;
33272
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
33273
+ property: "https://www.w3.org/ns/activitystreams#alsoKnownAs",
33274
+ index: i,
33275
+ error
33276
+ });
33277
+ continue;
33278
+ }
32064
33279
  }
32065
33280
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs.has(0)) {
32066
33281
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -32184,7 +33399,16 @@ var Person = class Person extends Object$1 {
32184
33399
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "service" in this._cachedJsonLd) {
32185
33400
  const prop = this._cachedJsonLd["service"];
32186
33401
  const doc = Array.isArray(prop) ? prop[0] : prop;
32187
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#service_fromJsonLd(doc, options);
33402
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
33403
+ v = await this.#service_fromJsonLd(doc, options);
33404
+ } catch (error) {
33405
+ if (!options.suppressError) throw error;
33406
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
33407
+ property: "https://www.w3.org/ns/did#service",
33408
+ error
33409
+ });
33410
+ return null;
33411
+ }
32188
33412
  }
32189
33413
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.has(0)) {
32190
33414
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -32228,7 +33452,17 @@ var Person = class Person extends Object$1 {
32228
33452
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "service" in this._cachedJsonLd) {
32229
33453
  const prop = this._cachedJsonLd["service"];
32230
33454
  const obj = Array.isArray(prop) ? prop[i] : prop;
32231
- if (obj != null && typeof obj === "object" && "@context" in obj) v = await this.#service_fromJsonLd(obj, options);
33455
+ if (obj != null && typeof obj === "object" && "@context" in obj) try {
33456
+ v = await this.#service_fromJsonLd(obj, options);
33457
+ } catch (error) {
33458
+ if (!options.suppressError) throw error;
33459
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
33460
+ property: "https://www.w3.org/ns/did#service",
33461
+ index: i,
33462
+ error
33463
+ });
33464
+ continue;
33465
+ }
32232
33466
  }
32233
33467
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.has(0)) {
32234
33468
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -33863,7 +35097,16 @@ var Profile = class Profile extends Object$1 {
33863
35097
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "describes" in this._cachedJsonLd) {
33864
35098
  const prop = this._cachedJsonLd["describes"];
33865
35099
  const doc = Array.isArray(prop) ? prop[0] : prop;
33866
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#describes_fromJsonLd(doc, options);
35100
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
35101
+ v = await this.#describes_fromJsonLd(doc, options);
35102
+ } catch (error) {
35103
+ if (!options.suppressError) throw error;
35104
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
35105
+ property: "https://www.w3.org/ns/activitystreams#describes",
35106
+ error
35107
+ });
35108
+ return null;
35109
+ }
33867
35110
  }
33868
35111
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3CLQ1PLSXrhSQbTGGHuxNyaEFKM1_describes.has(0)) {
33869
35112
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -34231,7 +35474,17 @@ var Question = class Question extends IntransitiveActivity {
34231
35474
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "oneOf" in this._cachedJsonLd) {
34232
35475
  const prop = this._cachedJsonLd["oneOf"];
34233
35476
  const obj = Array.isArray(prop) ? prop[i] : prop;
34234
- if (obj != null && typeof obj === "object" && "@context" in obj) v = await this.#exclusiveOption_fromJsonLd(obj, options);
35477
+ if (obj != null && typeof obj === "object" && "@context" in obj) try {
35478
+ v = await this.#exclusiveOption_fromJsonLd(obj, options);
35479
+ } catch (error) {
35480
+ if (!options.suppressError) throw error;
35481
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
35482
+ property: "https://www.w3.org/ns/activitystreams#oneOf",
35483
+ index: i,
35484
+ error
35485
+ });
35486
+ continue;
35487
+ }
34235
35488
  }
34236
35489
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_2N5scKaVEcdYHFmfKYYacAwUhUgQ_oneOf.has(0)) {
34237
35490
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -34353,7 +35606,17 @@ var Question = class Question extends IntransitiveActivity {
34353
35606
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "anyOf" in this._cachedJsonLd) {
34354
35607
  const prop = this._cachedJsonLd["anyOf"];
34355
35608
  const obj = Array.isArray(prop) ? prop[i] : prop;
34356
- if (obj != null && typeof obj === "object" && "@context" in obj) v = await this.#inclusiveOption_fromJsonLd(obj, options);
35609
+ if (obj != null && typeof obj === "object" && "@context" in obj) try {
35610
+ v = await this.#inclusiveOption_fromJsonLd(obj, options);
35611
+ } catch (error) {
35612
+ if (!options.suppressError) throw error;
35613
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
35614
+ property: "https://www.w3.org/ns/activitystreams#anyOf",
35615
+ index: i,
35616
+ error
35617
+ });
35618
+ continue;
35619
+ }
34357
35620
  }
34358
35621
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_2mV6isMTPRKbWdLCjcpiEysq5dAY_anyOf.has(0)) {
34359
35622
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -35187,7 +36450,16 @@ var Relationship = class Relationship extends Object$1 {
35187
36450
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "subject" in this._cachedJsonLd) {
35188
36451
  const prop = this._cachedJsonLd["subject"];
35189
36452
  const doc = Array.isArray(prop) ? prop[0] : prop;
35190
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#subject_fromJsonLd(doc, options);
36453
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
36454
+ v = await this.#subject_fromJsonLd(doc, options);
36455
+ } catch (error) {
36456
+ if (!options.suppressError) throw error;
36457
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
36458
+ property: "https://www.w3.org/ns/activitystreams#subject",
36459
+ error
36460
+ });
36461
+ return null;
36462
+ }
35191
36463
  }
35192
36464
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_2Zqdmi46ZnDQsECS6mzwhrv3rUKq_subject.has(0)) {
35193
36465
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -35307,7 +36579,16 @@ var Relationship = class Relationship extends Object$1 {
35307
36579
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "object" in this._cachedJsonLd) {
35308
36580
  const prop = this._cachedJsonLd["object"];
35309
36581
  const doc = Array.isArray(prop) ? prop[0] : prop;
35310
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#object_fromJsonLd(doc, options);
36582
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
36583
+ v = await this.#object_fromJsonLd(doc, options);
36584
+ } catch (error) {
36585
+ if (!options.suppressError) throw error;
36586
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
36587
+ property: "https://www.w3.org/ns/activitystreams#object",
36588
+ error
36589
+ });
36590
+ return null;
36591
+ }
35311
36592
  }
35312
36593
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object.has(0)) {
35313
36594
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -35348,7 +36629,17 @@ var Relationship = class Relationship extends Object$1 {
35348
36629
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "object" in this._cachedJsonLd) {
35349
36630
  const prop = this._cachedJsonLd["object"];
35350
36631
  const obj = Array.isArray(prop) ? prop[i] : prop;
35351
- if (obj != null && typeof obj === "object" && "@context" in obj) v = await this.#object_fromJsonLd(obj, options);
36632
+ if (obj != null && typeof obj === "object" && "@context" in obj) try {
36633
+ v = await this.#object_fromJsonLd(obj, options);
36634
+ } catch (error) {
36635
+ if (!options.suppressError) throw error;
36636
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
36637
+ property: "https://www.w3.org/ns/activitystreams#object",
36638
+ index: i,
36639
+ error
36640
+ });
36641
+ continue;
36642
+ }
35352
36643
  }
35353
36644
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object.has(0)) {
35354
36645
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -35471,7 +36762,16 @@ var Relationship = class Relationship extends Object$1 {
35471
36762
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "relationship" in this._cachedJsonLd) {
35472
36763
  const prop = this._cachedJsonLd["relationship"];
35473
36764
  const doc = Array.isArray(prop) ? prop[0] : prop;
35474
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#relationship_fromJsonLd(doc, options);
36765
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
36766
+ v = await this.#relationship_fromJsonLd(doc, options);
36767
+ } catch (error) {
36768
+ if (!options.suppressError) throw error;
36769
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
36770
+ property: "https://www.w3.org/ns/activitystreams#relationship",
36771
+ error
36772
+ });
36773
+ return null;
36774
+ }
35475
36775
  }
35476
36776
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_4Lzz89F9qipAQSGkWyX9DGWiUojG_relationship.has(0)) {
35477
36777
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -35514,7 +36814,17 @@ var Relationship = class Relationship extends Object$1 {
35514
36814
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "relationship" in this._cachedJsonLd) {
35515
36815
  const prop = this._cachedJsonLd["relationship"];
35516
36816
  const obj = Array.isArray(prop) ? prop[i] : prop;
35517
- if (obj != null && typeof obj === "object" && "@context" in obj) v = await this.#relationship_fromJsonLd(obj, options);
36817
+ if (obj != null && typeof obj === "object" && "@context" in obj) try {
36818
+ v = await this.#relationship_fromJsonLd(obj, options);
36819
+ } catch (error) {
36820
+ if (!options.suppressError) throw error;
36821
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
36822
+ property: "https://www.w3.org/ns/activitystreams#relationship",
36823
+ index: i,
36824
+ error
36825
+ });
36826
+ continue;
36827
+ }
35518
36828
  }
35519
36829
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_4Lzz89F9qipAQSGkWyX9DGWiUojG_relationship.has(0)) {
35520
36830
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -36352,7 +37662,16 @@ var Service = class Service extends Object$1 {
36352
37662
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "publicKey" in this._cachedJsonLd) {
36353
37663
  const prop = this._cachedJsonLd["publicKey"];
36354
37664
  const doc = Array.isArray(prop) ? prop[0] : prop;
36355
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#publicKey_fromJsonLd(doc, options);
37665
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
37666
+ v = await this.#publicKey_fromJsonLd(doc, options);
37667
+ } catch (error) {
37668
+ if (!options.suppressError) throw error;
37669
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
37670
+ property: "https://w3id.org/security#publicKey",
37671
+ error
37672
+ });
37673
+ return null;
37674
+ }
36356
37675
  }
36357
37676
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey.has(0)) {
36358
37677
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -36393,7 +37712,17 @@ var Service = class Service extends Object$1 {
36393
37712
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "publicKey" in this._cachedJsonLd) {
36394
37713
  const prop = this._cachedJsonLd["publicKey"];
36395
37714
  const obj = Array.isArray(prop) ? prop[i] : prop;
36396
- if (obj != null && typeof obj === "object" && "@context" in obj) v = await this.#publicKey_fromJsonLd(obj, options);
37715
+ if (obj != null && typeof obj === "object" && "@context" in obj) try {
37716
+ v = await this.#publicKey_fromJsonLd(obj, options);
37717
+ } catch (error) {
37718
+ if (!options.suppressError) throw error;
37719
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
37720
+ property: "https://w3id.org/security#publicKey",
37721
+ index: i,
37722
+ error
37723
+ });
37724
+ continue;
37725
+ }
36397
37726
  }
36398
37727
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey.has(0)) {
36399
37728
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -36517,7 +37846,16 @@ var Service = class Service extends Object$1 {
36517
37846
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "assertionMethod" in this._cachedJsonLd) {
36518
37847
  const prop = this._cachedJsonLd["assertionMethod"];
36519
37848
  const doc = Array.isArray(prop) ? prop[0] : prop;
36520
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#assertionMethod_fromJsonLd(doc, options);
37849
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
37850
+ v = await this.#assertionMethod_fromJsonLd(doc, options);
37851
+ } catch (error) {
37852
+ if (!options.suppressError) throw error;
37853
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
37854
+ property: "https://w3id.org/security#assertionMethod",
37855
+ error
37856
+ });
37857
+ return null;
37858
+ }
36521
37859
  }
36522
37860
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.has(0)) {
36523
37861
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -36561,7 +37899,17 @@ var Service = class Service extends Object$1 {
36561
37899
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "assertionMethod" in this._cachedJsonLd) {
36562
37900
  const prop = this._cachedJsonLd["assertionMethod"];
36563
37901
  const obj = Array.isArray(prop) ? prop[i] : prop;
36564
- if (obj != null && typeof obj === "object" && "@context" in obj) v = await this.#assertionMethod_fromJsonLd(obj, options);
37902
+ if (obj != null && typeof obj === "object" && "@context" in obj) try {
37903
+ v = await this.#assertionMethod_fromJsonLd(obj, options);
37904
+ } catch (error) {
37905
+ if (!options.suppressError) throw error;
37906
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
37907
+ property: "https://w3id.org/security#assertionMethod",
37908
+ index: i,
37909
+ error
37910
+ });
37911
+ continue;
37912
+ }
36565
37913
  }
36566
37914
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.has(0)) {
36567
37915
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -36716,7 +38064,16 @@ var Service = class Service extends Object$1 {
36716
38064
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "inbox" in this._cachedJsonLd) {
36717
38065
  const prop = this._cachedJsonLd["inbox"];
36718
38066
  const doc = Array.isArray(prop) ? prop[0] : prop;
36719
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#inbox_fromJsonLd(doc, options);
38067
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
38068
+ v = await this.#inbox_fromJsonLd(doc, options);
38069
+ } catch (error) {
38070
+ if (!options.suppressError) throw error;
38071
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
38072
+ property: "http://www.w3.org/ns/ldp#inbox",
38073
+ error
38074
+ });
38075
+ return null;
38076
+ }
36720
38077
  }
36721
38078
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox.has(0)) {
36722
38079
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -36855,7 +38212,16 @@ var Service = class Service extends Object$1 {
36855
38212
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "outbox" in this._cachedJsonLd) {
36856
38213
  const prop = this._cachedJsonLd["outbox"];
36857
38214
  const doc = Array.isArray(prop) ? prop[0] : prop;
36858
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#outbox_fromJsonLd(doc, options);
38215
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
38216
+ v = await this.#outbox_fromJsonLd(doc, options);
38217
+ } catch (error) {
38218
+ if (!options.suppressError) throw error;
38219
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
38220
+ property: "https://www.w3.org/ns/activitystreams#outbox",
38221
+ error
38222
+ });
38223
+ return null;
38224
+ }
36859
38225
  }
36860
38226
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_41QwhqJouoLg3h8dRPKat21brynC_outbox.has(0)) {
36861
38227
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -36979,7 +38345,16 @@ var Service = class Service extends Object$1 {
36979
38345
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "following" in this._cachedJsonLd) {
36980
38346
  const prop = this._cachedJsonLd["following"];
36981
38347
  const doc = Array.isArray(prop) ? prop[0] : prop;
36982
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#following_fromJsonLd(doc, options);
38348
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
38349
+ v = await this.#following_fromJsonLd(doc, options);
38350
+ } catch (error) {
38351
+ if (!options.suppressError) throw error;
38352
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
38353
+ property: "https://www.w3.org/ns/activitystreams#following",
38354
+ error
38355
+ });
38356
+ return null;
38357
+ }
36983
38358
  }
36984
38359
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following.has(0)) {
36985
38360
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -37106,7 +38481,16 @@ var Service = class Service extends Object$1 {
37106
38481
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "followers" in this._cachedJsonLd) {
37107
38482
  const prop = this._cachedJsonLd["followers"];
37108
38483
  const doc = Array.isArray(prop) ? prop[0] : prop;
37109
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#followers_fromJsonLd(doc, options);
38484
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
38485
+ v = await this.#followers_fromJsonLd(doc, options);
38486
+ } catch (error) {
38487
+ if (!options.suppressError) throw error;
38488
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
38489
+ property: "https://www.w3.org/ns/activitystreams#followers",
38490
+ error
38491
+ });
38492
+ return null;
38493
+ }
37110
38494
  }
37111
38495
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_BBCTgfphhsFzpVfKTykGSpBNwoA_followers.has(0)) {
37112
38496
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -37231,7 +38615,16 @@ var Service = class Service extends Object$1 {
37231
38615
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "liked" in this._cachedJsonLd) {
37232
38616
  const prop = this._cachedJsonLd["liked"];
37233
38617
  const doc = Array.isArray(prop) ? prop[0] : prop;
37234
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#liked_fromJsonLd(doc, options);
38618
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
38619
+ v = await this.#liked_fromJsonLd(doc, options);
38620
+ } catch (error) {
38621
+ if (!options.suppressError) throw error;
38622
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
38623
+ property: "https://www.w3.org/ns/activitystreams#liked",
38624
+ error
38625
+ });
38626
+ return null;
38627
+ }
37235
38628
  }
37236
38629
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked.has(0)) {
37237
38630
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -37354,7 +38747,16 @@ var Service = class Service extends Object$1 {
37354
38747
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "featured" in this._cachedJsonLd) {
37355
38748
  const prop = this._cachedJsonLd["featured"];
37356
38749
  const doc = Array.isArray(prop) ? prop[0] : prop;
37357
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#featured_fromJsonLd(doc, options);
38750
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
38751
+ v = await this.#featured_fromJsonLd(doc, options);
38752
+ } catch (error) {
38753
+ if (!options.suppressError) throw error;
38754
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
38755
+ property: "http://joinmastodon.org/ns#featured",
38756
+ error
38757
+ });
38758
+ return null;
38759
+ }
37358
38760
  }
37359
38761
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_4N1vBJzXDf8NbBumeECQMFvKetja_featured.has(0)) {
37360
38762
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -37477,7 +38879,16 @@ var Service = class Service extends Object$1 {
37477
38879
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "featuredTags" in this._cachedJsonLd) {
37478
38880
  const prop = this._cachedJsonLd["featuredTags"];
37479
38881
  const doc = Array.isArray(prop) ? prop[0] : prop;
37480
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#featuredTags_fromJsonLd(doc, options);
38882
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
38883
+ v = await this.#featuredTags_fromJsonLd(doc, options);
38884
+ } catch (error) {
38885
+ if (!options.suppressError) throw error;
38886
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
38887
+ property: "http://joinmastodon.org/ns#featuredTags",
38888
+ error
38889
+ });
38890
+ return null;
38891
+ }
37481
38892
  }
37482
38893
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags.has(0)) {
37483
38894
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -37596,7 +39007,17 @@ var Service = class Service extends Object$1 {
37596
39007
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "streams" in this._cachedJsonLd) {
37597
39008
  const prop = this._cachedJsonLd["streams"];
37598
39009
  const obj = Array.isArray(prop) ? prop[i] : prop;
37599
- if (obj != null && typeof obj === "object" && "@context" in obj) v = await this.#stream_fromJsonLd(obj, options);
39010
+ if (obj != null && typeof obj === "object" && "@context" in obj) try {
39011
+ v = await this.#stream_fromJsonLd(obj, options);
39012
+ } catch (error) {
39013
+ if (!options.suppressError) throw error;
39014
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
39015
+ property: "https://www.w3.org/ns/activitystreams#streams",
39016
+ index: i,
39017
+ error
39018
+ });
39019
+ continue;
39020
+ }
37600
39021
  }
37601
39022
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.has(0)) {
37602
39023
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -37805,7 +39226,16 @@ var Service = class Service extends Object$1 {
37805
39226
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "movedTo" in this._cachedJsonLd) {
37806
39227
  const prop = this._cachedJsonLd["movedTo"];
37807
39228
  const doc = Array.isArray(prop) ? prop[0] : prop;
37808
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#successor_fromJsonLd(doc, options);
39229
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
39230
+ v = await this.#successor_fromJsonLd(doc, options);
39231
+ } catch (error) {
39232
+ if (!options.suppressError) throw error;
39233
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
39234
+ property: "https://www.w3.org/ns/activitystreams#movedTo",
39235
+ error
39236
+ });
39237
+ return null;
39238
+ }
37809
39239
  }
37810
39240
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo.has(0)) {
37811
39241
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -37974,7 +39404,16 @@ var Service = class Service extends Object$1 {
37974
39404
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "alsoKnownAs" in this._cachedJsonLd) {
37975
39405
  const prop = this._cachedJsonLd["alsoKnownAs"];
37976
39406
  const doc = Array.isArray(prop) ? prop[0] : prop;
37977
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#alias_fromJsonLd(doc, options);
39407
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
39408
+ v = await this.#alias_fromJsonLd(doc, options);
39409
+ } catch (error) {
39410
+ if (!options.suppressError) throw error;
39411
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
39412
+ property: "https://www.w3.org/ns/activitystreams#alsoKnownAs",
39413
+ error
39414
+ });
39415
+ return null;
39416
+ }
37978
39417
  }
37979
39418
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs.has(0)) {
37980
39419
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -38018,7 +39457,17 @@ var Service = class Service extends Object$1 {
38018
39457
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "alsoKnownAs" in this._cachedJsonLd) {
38019
39458
  const prop = this._cachedJsonLd["alsoKnownAs"];
38020
39459
  const obj = Array.isArray(prop) ? prop[i] : prop;
38021
- if (obj != null && typeof obj === "object" && "@context" in obj) v = await this.#alias_fromJsonLd(obj, options);
39460
+ if (obj != null && typeof obj === "object" && "@context" in obj) try {
39461
+ v = await this.#alias_fromJsonLd(obj, options);
39462
+ } catch (error) {
39463
+ if (!options.suppressError) throw error;
39464
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
39465
+ property: "https://www.w3.org/ns/activitystreams#alsoKnownAs",
39466
+ index: i,
39467
+ error
39468
+ });
39469
+ continue;
39470
+ }
38022
39471
  }
38023
39472
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs.has(0)) {
38024
39473
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -38142,7 +39591,16 @@ var Service = class Service extends Object$1 {
38142
39591
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "service" in this._cachedJsonLd) {
38143
39592
  const prop = this._cachedJsonLd["service"];
38144
39593
  const doc = Array.isArray(prop) ? prop[0] : prop;
38145
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#service_fromJsonLd(doc, options);
39594
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
39595
+ v = await this.#service_fromJsonLd(doc, options);
39596
+ } catch (error) {
39597
+ if (!options.suppressError) throw error;
39598
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
39599
+ property: "https://www.w3.org/ns/did#service",
39600
+ error
39601
+ });
39602
+ return null;
39603
+ }
38146
39604
  }
38147
39605
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.has(0)) {
38148
39606
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -38186,7 +39644,17 @@ var Service = class Service extends Object$1 {
38186
39644
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "service" in this._cachedJsonLd) {
38187
39645
  const prop = this._cachedJsonLd["service"];
38188
39646
  const obj = Array.isArray(prop) ? prop[i] : prop;
38189
- if (obj != null && typeof obj === "object" && "@context" in obj) v = await this.#service_fromJsonLd(obj, options);
39647
+ if (obj != null && typeof obj === "object" && "@context" in obj) try {
39648
+ v = await this.#service_fromJsonLd(obj, options);
39649
+ } catch (error) {
39650
+ if (!options.suppressError) throw error;
39651
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
39652
+ property: "https://www.w3.org/ns/did#service",
39653
+ index: i,
39654
+ error
39655
+ });
39656
+ continue;
39657
+ }
38190
39658
  }
38191
39659
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.has(0)) {
38192
39660
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");