@fedify/vocab 2.0.22-dev.1440 → 2.0.22-dev.1482
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/deno.json +1 -1
- package/dist/mod.cjs +1165 -384
- package/dist/mod.d.cts +27 -0
- package/dist/mod.d.ts +27 -0
- package/dist/mod.js +1165 -384
- package/dist-tests/actor.test.mjs +2 -2
- package/dist-tests/{deno-BTopG74J.mjs → deno-CcGLQmUF.mjs} +2 -2
- package/dist-tests/lookup.test.mjs +2 -2
- package/dist-tests/type.test.mjs +1 -1
- package/dist-tests/{vocab-D1CEMtLN.mjs → vocab-ClsmZIAo.mjs} +1165 -384
- package/dist-tests/vocab.test.mjs +31 -1
- package/package.json +4 -4
- package/src/vocab.test.ts +36 -0
package/dist/mod.cjs
CHANGED
|
@@ -33,7 +33,7 @@ let _fedify_vocab_runtime_temporal = require("@fedify/vocab-runtime/temporal");
|
|
|
33
33
|
let es_toolkit = require("es-toolkit");
|
|
34
34
|
//#region deno.json
|
|
35
35
|
var name = "@fedify/vocab";
|
|
36
|
-
var version = "2.0.22-dev.
|
|
36
|
+
var version = "2.0.22-dev.1482+e4fba16e";
|
|
37
37
|
//#endregion
|
|
38
38
|
//#region src/type.ts
|
|
39
39
|
function getTypeId(object) {
|
|
@@ -42,6 +42,15 @@ function getTypeId(object) {
|
|
|
42
42
|
}
|
|
43
43
|
//#endregion
|
|
44
44
|
//#region src/vocab.ts
|
|
45
|
+
function isValidLanguageTag(language) {
|
|
46
|
+
try {
|
|
47
|
+
new Intl.Locale(language);
|
|
48
|
+
return true;
|
|
49
|
+
} catch (error) {
|
|
50
|
+
if (error instanceof RangeError) return false;
|
|
51
|
+
throw error;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
45
54
|
/** Describes an object of any kind. The Object type serves as the base type for
|
|
46
55
|
* most of the other kinds of objects defined in the Activity Vocabulary,
|
|
47
56
|
* including other Core types such as {@link Activity},
|
|
@@ -54,6 +63,7 @@ var Object$1 = class Object$1 {
|
|
|
54
63
|
#tracerProvider;
|
|
55
64
|
#warning;
|
|
56
65
|
#cachedJsonLd;
|
|
66
|
+
#shouldCacheJsonLd = true;
|
|
57
67
|
id;
|
|
58
68
|
get _documentLoader() {
|
|
59
69
|
return this.#documentLoader;
|
|
@@ -73,6 +83,17 @@ var Object$1 = class Object$1 {
|
|
|
73
83
|
set _cachedJsonLd(value) {
|
|
74
84
|
this.#cachedJsonLd = value;
|
|
75
85
|
}
|
|
86
|
+
get _shouldCacheJsonLd() {
|
|
87
|
+
return this.#shouldCacheJsonLd;
|
|
88
|
+
}
|
|
89
|
+
set _shouldCacheJsonLd(value) {
|
|
90
|
+
this.#shouldCacheJsonLd = value;
|
|
91
|
+
}
|
|
92
|
+
static _shouldCacheDecodedJsonLd(value) {
|
|
93
|
+
if (value == null || typeof value !== "object") return true;
|
|
94
|
+
if (!("_shouldCacheJsonLd" in value)) return true;
|
|
95
|
+
return value._shouldCacheJsonLd;
|
|
96
|
+
}
|
|
76
97
|
/**
|
|
77
98
|
* The type URI of {@link Object}: `https://www.w3.org/ns/activitystreams#Object`.
|
|
78
99
|
*/
|
|
@@ -4590,6 +4611,7 @@ var Object$1 = class Object$1 {
|
|
|
4590
4611
|
if (!values["@type"].includes("https://www.w3.org/ns/activitystreams#Object")) throw new TypeError("Invalid type: " + values["@type"]);
|
|
4591
4612
|
}
|
|
4592
4613
|
const instance = new this({ id: "@id" in values ? new URL(values["@id"]) : void 0 }, options);
|
|
4614
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
4593
4615
|
const _49BipA5dq9eoH8LX8xdsVumveTca_attachment = [];
|
|
4594
4616
|
let _49BipA5dq9eoH8LX8xdsVumveTca_attachment__array = values["https://www.w3.org/ns/activitystreams#attachment"];
|
|
4595
4617
|
for (const v of _49BipA5dq9eoH8LX8xdsVumveTca_attachment__array == null ? [] : _49BipA5dq9eoH8LX8xdsVumveTca_attachment__array.length === 1 && "@list" in _49BipA5dq9eoH8LX8xdsVumveTca_attachment__array[0] ? _49BipA5dq9eoH8LX8xdsVumveTca_attachment__array[0]["@list"] : _49BipA5dq9eoH8LX8xdsVumveTca_attachment__array) {
|
|
@@ -4668,7 +4690,11 @@ var Object$1 = class Object$1 {
|
|
|
4668
4690
|
...options,
|
|
4669
4691
|
baseUrl: values["@id"] == null ? options.baseUrl : new URL(values["@id"])
|
|
4670
4692
|
}) : void 0;
|
|
4671
|
-
if (typeof decoded === "undefined")
|
|
4693
|
+
if (typeof decoded === "undefined") {
|
|
4694
|
+
shouldCacheJsonLd = false;
|
|
4695
|
+
continue;
|
|
4696
|
+
}
|
|
4697
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
4672
4698
|
_49BipA5dq9eoH8LX8xdsVumveTca_attachment.push(decoded);
|
|
4673
4699
|
}
|
|
4674
4700
|
instance.#_49BipA5dq9eoH8LX8xdsVumveTca_attachment = _49BipA5dq9eoH8LX8xdsVumveTca_attachment;
|
|
@@ -4696,7 +4722,11 @@ var Object$1 = class Object$1 {
|
|
|
4696
4722
|
...options,
|
|
4697
4723
|
baseUrl: values["@id"] == null ? options.baseUrl : new URL(values["@id"])
|
|
4698
4724
|
}) : void 0;
|
|
4699
|
-
if (typeof decoded === "undefined")
|
|
4725
|
+
if (typeof decoded === "undefined") {
|
|
4726
|
+
shouldCacheJsonLd = false;
|
|
4727
|
+
continue;
|
|
4728
|
+
}
|
|
4729
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
4700
4730
|
_42CGqJ94zgQ3ZBbfHwD8Hrr2L5Py_attributedTo.push(decoded);
|
|
4701
4731
|
}
|
|
4702
4732
|
instance.#_42CGqJ94zgQ3ZBbfHwD8Hrr2L5Py_attributedTo = _42CGqJ94zgQ3ZBbfHwD8Hrr2L5Py_attributedTo;
|
|
@@ -4708,18 +4738,24 @@ var Object$1 = class Object$1 {
|
|
|
4708
4738
|
_3ocC3VVi88cEd5sPWL8djkZsvTN6_audience.push(!URL.canParse(v["@id"]) && v["@id"].startsWith("at://") ? new URL("at://" + encodeURIComponent(v["@id"].substring(5))) : new URL(v["@id"]));
|
|
4709
4739
|
continue;
|
|
4710
4740
|
}
|
|
4711
|
-
|
|
4741
|
+
const decoded = await Object$1.fromJsonLd(v, {
|
|
4712
4742
|
...options,
|
|
4713
4743
|
baseUrl: values["@id"] == null ? options.baseUrl : new URL(values["@id"])
|
|
4714
|
-
})
|
|
4744
|
+
});
|
|
4745
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
4746
|
+
_3ocC3VVi88cEd5sPWL8djkZsvTN6_audience.push(decoded);
|
|
4715
4747
|
}
|
|
4716
4748
|
instance.#_3ocC3VVi88cEd5sPWL8djkZsvTN6_audience = _3ocC3VVi88cEd5sPWL8djkZsvTN6_audience;
|
|
4717
4749
|
const _4HuuRSdSrXq8Jj2J9gcdYfoCzeuz_content = [];
|
|
4718
4750
|
let _4HuuRSdSrXq8Jj2J9gcdYfoCzeuz_content__array = values["https://www.w3.org/ns/activitystreams#content"];
|
|
4719
4751
|
for (const v of _4HuuRSdSrXq8Jj2J9gcdYfoCzeuz_content__array == null ? [] : _4HuuRSdSrXq8Jj2J9gcdYfoCzeuz_content__array.length === 1 && "@list" in _4HuuRSdSrXq8Jj2J9gcdYfoCzeuz_content__array[0] ? _4HuuRSdSrXq8Jj2J9gcdYfoCzeuz_content__array[0]["@list"] : _4HuuRSdSrXq8Jj2J9gcdYfoCzeuz_content__array) {
|
|
4720
4752
|
if (v == null) continue;
|
|
4721
|
-
const decoded = typeof v === "object" && "@value" in v && typeof v["@value"] === "string" && !("@language" in v) ? v["@value"] : typeof v === "object" && "@language" in v && "@value" in v && typeof v["@language"] === "string" && typeof v["@value"] === "string" ? new _fedify_vocab_runtime.LanguageString(v["@value"], v["@language"]) : void 0;
|
|
4722
|
-
if (typeof decoded === "undefined")
|
|
4753
|
+
const decoded = typeof v === "object" && "@value" in v && typeof v["@value"] === "string" && !("@language" in v) ? v["@value"] : typeof v === "object" && "@language" in v && "@value" in v && typeof v["@language"] === "string" && typeof v["@value"] === "string" && isValidLanguageTag(v["@language"]) ? new _fedify_vocab_runtime.LanguageString(v["@value"], v["@language"]) : void 0;
|
|
4754
|
+
if (typeof decoded === "undefined") {
|
|
4755
|
+
shouldCacheJsonLd = false;
|
|
4756
|
+
continue;
|
|
4757
|
+
}
|
|
4758
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
4723
4759
|
_4HuuRSdSrXq8Jj2J9gcdYfoCzeuz_content.push(decoded);
|
|
4724
4760
|
}
|
|
4725
4761
|
instance.#_4HuuRSdSrXq8Jj2J9gcdYfoCzeuz_content = _4HuuRSdSrXq8Jj2J9gcdYfoCzeuz_content;
|
|
@@ -4798,7 +4834,11 @@ var Object$1 = class Object$1 {
|
|
|
4798
4834
|
...options,
|
|
4799
4835
|
baseUrl: values["@id"] == null ? options.baseUrl : new URL(values["@id"])
|
|
4800
4836
|
}) : void 0;
|
|
4801
|
-
if (typeof decoded === "undefined")
|
|
4837
|
+
if (typeof decoded === "undefined") {
|
|
4838
|
+
shouldCacheJsonLd = false;
|
|
4839
|
+
continue;
|
|
4840
|
+
}
|
|
4841
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
4802
4842
|
_3mhZzGXSpQ431mBSz2kvych22v4e_context.push(decoded);
|
|
4803
4843
|
}
|
|
4804
4844
|
instance.#_3mhZzGXSpQ431mBSz2kvych22v4e_context = _3mhZzGXSpQ431mBSz2kvych22v4e_context;
|
|
@@ -4806,8 +4846,12 @@ var Object$1 = class Object$1 {
|
|
|
4806
4846
|
let _4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name__array = values["https://www.w3.org/ns/activitystreams#name"];
|
|
4807
4847
|
for (const v of _4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name__array == null ? [] : _4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name__array.length === 1 && "@list" in _4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name__array[0] ? _4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name__array[0]["@list"] : _4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name__array) {
|
|
4808
4848
|
if (v == null) continue;
|
|
4809
|
-
const decoded = typeof v === "object" && "@value" in v && typeof v["@value"] === "string" && !("@language" in v) ? v["@value"] : typeof v === "object" && "@language" in v && "@value" in v && typeof v["@language"] === "string" && typeof v["@value"] === "string" ? new _fedify_vocab_runtime.LanguageString(v["@value"], v["@language"]) : void 0;
|
|
4810
|
-
if (typeof decoded === "undefined")
|
|
4849
|
+
const decoded = typeof v === "object" && "@value" in v && typeof v["@value"] === "string" && !("@language" in v) ? v["@value"] : typeof v === "object" && "@language" in v && "@value" in v && typeof v["@language"] === "string" && typeof v["@value"] === "string" && isValidLanguageTag(v["@language"]) ? new _fedify_vocab_runtime.LanguageString(v["@value"], v["@language"]) : void 0;
|
|
4850
|
+
if (typeof decoded === "undefined") {
|
|
4851
|
+
shouldCacheJsonLd = false;
|
|
4852
|
+
continue;
|
|
4853
|
+
}
|
|
4854
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
4811
4855
|
_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name.push(decoded);
|
|
4812
4856
|
}
|
|
4813
4857
|
instance.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name = _4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name;
|
|
@@ -4815,7 +4859,9 @@ var Object$1 = class Object$1 {
|
|
|
4815
4859
|
let _219RwDanjScTv5tYCjwGZVCM7KZ9_endTime__array = values["https://www.w3.org/ns/activitystreams#endTime"];
|
|
4816
4860
|
for (const v of _219RwDanjScTv5tYCjwGZVCM7KZ9_endTime__array == null ? [] : _219RwDanjScTv5tYCjwGZVCM7KZ9_endTime__array.length === 1 && "@list" in _219RwDanjScTv5tYCjwGZVCM7KZ9_endTime__array[0] ? _219RwDanjScTv5tYCjwGZVCM7KZ9_endTime__array[0]["@list"] : _219RwDanjScTv5tYCjwGZVCM7KZ9_endTime__array) {
|
|
4817
4861
|
if (v == null) continue;
|
|
4818
|
-
|
|
4862
|
+
const decoded = Temporal.Instant.from(v["@value"].substring(19).match(/[Z+-]/) ? v["@value"] : v["@value"] + "Z");
|
|
4863
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
4864
|
+
_219RwDanjScTv5tYCjwGZVCM7KZ9_endTime.push(decoded);
|
|
4819
4865
|
}
|
|
4820
4866
|
instance.#_219RwDanjScTv5tYCjwGZVCM7KZ9_endTime = _219RwDanjScTv5tYCjwGZVCM7KZ9_endTime;
|
|
4821
4867
|
const _86xFhmgBapoMvYqjbjRuDPayTrS_generator = [];
|
|
@@ -4893,7 +4939,11 @@ var Object$1 = class Object$1 {
|
|
|
4893
4939
|
...options,
|
|
4894
4940
|
baseUrl: values["@id"] == null ? options.baseUrl : new URL(values["@id"])
|
|
4895
4941
|
}) : void 0;
|
|
4896
|
-
if (typeof decoded === "undefined")
|
|
4942
|
+
if (typeof decoded === "undefined") {
|
|
4943
|
+
shouldCacheJsonLd = false;
|
|
4944
|
+
continue;
|
|
4945
|
+
}
|
|
4946
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
4897
4947
|
_86xFhmgBapoMvYqjbjRuDPayTrS_generator.push(decoded);
|
|
4898
4948
|
}
|
|
4899
4949
|
instance.#_86xFhmgBapoMvYqjbjRuDPayTrS_generator = _86xFhmgBapoMvYqjbjRuDPayTrS_generator;
|
|
@@ -4905,10 +4955,12 @@ var Object$1 = class Object$1 {
|
|
|
4905
4955
|
_33CjRLy5ujtsUrwRSCrsggvGdKuR_icon.push(!URL.canParse(v["@id"]) && v["@id"].startsWith("at://") ? new URL("at://" + encodeURIComponent(v["@id"].substring(5))) : new URL(v["@id"]));
|
|
4906
4956
|
continue;
|
|
4907
4957
|
}
|
|
4908
|
-
|
|
4958
|
+
const decoded = await Image.fromJsonLd(v, {
|
|
4909
4959
|
...options,
|
|
4910
4960
|
baseUrl: values["@id"] == null ? options.baseUrl : new URL(values["@id"])
|
|
4911
|
-
})
|
|
4961
|
+
});
|
|
4962
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
4963
|
+
_33CjRLy5ujtsUrwRSCrsggvGdKuR_icon.push(decoded);
|
|
4912
4964
|
}
|
|
4913
4965
|
instance.#_33CjRLy5ujtsUrwRSCrsggvGdKuR_icon = _33CjRLy5ujtsUrwRSCrsggvGdKuR_icon;
|
|
4914
4966
|
const _3dXrUdkARxwyJLtJcYi1AJ92H41U_image = [];
|
|
@@ -4919,10 +4971,12 @@ var Object$1 = class Object$1 {
|
|
|
4919
4971
|
_3dXrUdkARxwyJLtJcYi1AJ92H41U_image.push(!URL.canParse(v["@id"]) && v["@id"].startsWith("at://") ? new URL("at://" + encodeURIComponent(v["@id"].substring(5))) : new URL(v["@id"]));
|
|
4920
4972
|
continue;
|
|
4921
4973
|
}
|
|
4922
|
-
|
|
4974
|
+
const decoded = await Image.fromJsonLd(v, {
|
|
4923
4975
|
...options,
|
|
4924
4976
|
baseUrl: values["@id"] == null ? options.baseUrl : new URL(values["@id"])
|
|
4925
|
-
})
|
|
4977
|
+
});
|
|
4978
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
4979
|
+
_3dXrUdkARxwyJLtJcYi1AJ92H41U_image.push(decoded);
|
|
4926
4980
|
}
|
|
4927
4981
|
instance.#_3dXrUdkARxwyJLtJcYi1AJ92H41U_image = _3dXrUdkARxwyJLtJcYi1AJ92H41U_image;
|
|
4928
4982
|
const _3fpbDrvZgf3Kq1a5V9aByFn8kx3s_inReplyTo = [];
|
|
@@ -5000,7 +5054,11 @@ var Object$1 = class Object$1 {
|
|
|
5000
5054
|
...options,
|
|
5001
5055
|
baseUrl: values["@id"] == null ? options.baseUrl : new URL(values["@id"])
|
|
5002
5056
|
}) : void 0;
|
|
5003
|
-
if (typeof decoded === "undefined")
|
|
5057
|
+
if (typeof decoded === "undefined") {
|
|
5058
|
+
shouldCacheJsonLd = false;
|
|
5059
|
+
continue;
|
|
5060
|
+
}
|
|
5061
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
5004
5062
|
_3fpbDrvZgf3Kq1a5V9aByFn8kx3s_inReplyTo.push(decoded);
|
|
5005
5063
|
}
|
|
5006
5064
|
instance.#_3fpbDrvZgf3Kq1a5V9aByFn8kx3s_inReplyTo = _3fpbDrvZgf3Kq1a5V9aByFn8kx3s_inReplyTo;
|
|
@@ -5079,7 +5137,11 @@ var Object$1 = class Object$1 {
|
|
|
5079
5137
|
...options,
|
|
5080
5138
|
baseUrl: values["@id"] == null ? options.baseUrl : new URL(values["@id"])
|
|
5081
5139
|
}) : void 0;
|
|
5082
|
-
if (typeof decoded === "undefined")
|
|
5140
|
+
if (typeof decoded === "undefined") {
|
|
5141
|
+
shouldCacheJsonLd = false;
|
|
5142
|
+
continue;
|
|
5143
|
+
}
|
|
5144
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
5083
5145
|
_31k5MUZJsnsPNg8dQQJieWaXTFnR_location.push(decoded);
|
|
5084
5146
|
}
|
|
5085
5147
|
instance.#_31k5MUZJsnsPNg8dQQJieWaXTFnR_location = _31k5MUZJsnsPNg8dQQJieWaXTFnR_location;
|
|
@@ -5158,7 +5220,11 @@ var Object$1 = class Object$1 {
|
|
|
5158
5220
|
...options,
|
|
5159
5221
|
baseUrl: values["@id"] == null ? options.baseUrl : new URL(values["@id"])
|
|
5160
5222
|
}) : void 0;
|
|
5161
|
-
if (typeof decoded === "undefined")
|
|
5223
|
+
if (typeof decoded === "undefined") {
|
|
5224
|
+
shouldCacheJsonLd = false;
|
|
5225
|
+
continue;
|
|
5226
|
+
}
|
|
5227
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
5162
5228
|
_gCVTegXxWWCw6wWRxa1QF65zusg_preview.push(decoded);
|
|
5163
5229
|
}
|
|
5164
5230
|
instance.#_gCVTegXxWWCw6wWRxa1QF65zusg_preview = _gCVTegXxWWCw6wWRxa1QF65zusg_preview;
|
|
@@ -5166,7 +5232,9 @@ var Object$1 = class Object$1 {
|
|
|
5166
5232
|
let _5e258TDXtuhaFRPZiGoDfEpjdMr_published__array = values["https://www.w3.org/ns/activitystreams#published"];
|
|
5167
5233
|
for (const v of _5e258TDXtuhaFRPZiGoDfEpjdMr_published__array == null ? [] : _5e258TDXtuhaFRPZiGoDfEpjdMr_published__array.length === 1 && "@list" in _5e258TDXtuhaFRPZiGoDfEpjdMr_published__array[0] ? _5e258TDXtuhaFRPZiGoDfEpjdMr_published__array[0]["@list"] : _5e258TDXtuhaFRPZiGoDfEpjdMr_published__array) {
|
|
5168
5234
|
if (v == null) continue;
|
|
5169
|
-
|
|
5235
|
+
const decoded = Temporal.Instant.from(v["@value"].substring(19).match(/[Z+-]/) ? v["@value"] : v["@value"] + "Z");
|
|
5236
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
5237
|
+
_5e258TDXtuhaFRPZiGoDfEpjdMr_published.push(decoded);
|
|
5170
5238
|
}
|
|
5171
5239
|
instance.#_5e258TDXtuhaFRPZiGoDfEpjdMr_published = _5e258TDXtuhaFRPZiGoDfEpjdMr_published;
|
|
5172
5240
|
const _7UpwM3JWcXhADcscukEehBorf6k_replies = [];
|
|
@@ -5177,10 +5245,12 @@ var Object$1 = class Object$1 {
|
|
|
5177
5245
|
_7UpwM3JWcXhADcscukEehBorf6k_replies.push(!URL.canParse(v["@id"]) && v["@id"].startsWith("at://") ? new URL("at://" + encodeURIComponent(v["@id"].substring(5))) : new URL(v["@id"]));
|
|
5178
5246
|
continue;
|
|
5179
5247
|
}
|
|
5180
|
-
|
|
5248
|
+
const decoded = await Collection.fromJsonLd(v, {
|
|
5181
5249
|
...options,
|
|
5182
5250
|
baseUrl: values["@id"] == null ? options.baseUrl : new URL(values["@id"])
|
|
5183
|
-
})
|
|
5251
|
+
});
|
|
5252
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
5253
|
+
_7UpwM3JWcXhADcscukEehBorf6k_replies.push(decoded);
|
|
5184
5254
|
}
|
|
5185
5255
|
instance.#_7UpwM3JWcXhADcscukEehBorf6k_replies = _7UpwM3JWcXhADcscukEehBorf6k_replies;
|
|
5186
5256
|
const _3kAfck9PcEYt2L7xug5y99YPbANs_shares = [];
|
|
@@ -5191,10 +5261,12 @@ var Object$1 = class Object$1 {
|
|
|
5191
5261
|
_3kAfck9PcEYt2L7xug5y99YPbANs_shares.push(!URL.canParse(v["@id"]) && v["@id"].startsWith("at://") ? new URL("at://" + encodeURIComponent(v["@id"].substring(5))) : new URL(v["@id"]));
|
|
5192
5262
|
continue;
|
|
5193
5263
|
}
|
|
5194
|
-
|
|
5264
|
+
const decoded = await Collection.fromJsonLd(v, {
|
|
5195
5265
|
...options,
|
|
5196
5266
|
baseUrl: values["@id"] == null ? options.baseUrl : new URL(values["@id"])
|
|
5197
|
-
})
|
|
5267
|
+
});
|
|
5268
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
5269
|
+
_3kAfck9PcEYt2L7xug5y99YPbANs_shares.push(decoded);
|
|
5198
5270
|
}
|
|
5199
5271
|
instance.#_3kAfck9PcEYt2L7xug5y99YPbANs_shares = _3kAfck9PcEYt2L7xug5y99YPbANs_shares;
|
|
5200
5272
|
const _S3ceDnpMdzoTRCccB9FkJWrEzYW_likes = [];
|
|
@@ -5205,10 +5277,12 @@ var Object$1 = class Object$1 {
|
|
|
5205
5277
|
_S3ceDnpMdzoTRCccB9FkJWrEzYW_likes.push(!URL.canParse(v["@id"]) && v["@id"].startsWith("at://") ? new URL("at://" + encodeURIComponent(v["@id"].substring(5))) : new URL(v["@id"]));
|
|
5206
5278
|
continue;
|
|
5207
5279
|
}
|
|
5208
|
-
|
|
5280
|
+
const decoded = await Collection.fromJsonLd(v, {
|
|
5209
5281
|
...options,
|
|
5210
5282
|
baseUrl: values["@id"] == null ? options.baseUrl : new URL(values["@id"])
|
|
5211
|
-
})
|
|
5283
|
+
});
|
|
5284
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
5285
|
+
_S3ceDnpMdzoTRCccB9FkJWrEzYW_likes.push(decoded);
|
|
5212
5286
|
}
|
|
5213
5287
|
instance.#_S3ceDnpMdzoTRCccB9FkJWrEzYW_likes = _S3ceDnpMdzoTRCccB9FkJWrEzYW_likes;
|
|
5214
5288
|
const _kMatyyNAuxoTD8GQMBfA5ogThMR_emojiReactions = [];
|
|
@@ -5219,25 +5293,33 @@ var Object$1 = class Object$1 {
|
|
|
5219
5293
|
_kMatyyNAuxoTD8GQMBfA5ogThMR_emojiReactions.push(!URL.canParse(v["@id"]) && v["@id"].startsWith("at://") ? new URL("at://" + encodeURIComponent(v["@id"].substring(5))) : new URL(v["@id"]));
|
|
5220
5294
|
continue;
|
|
5221
5295
|
}
|
|
5222
|
-
|
|
5296
|
+
const decoded = await Collection.fromJsonLd(v, {
|
|
5223
5297
|
...options,
|
|
5224
5298
|
baseUrl: values["@id"] == null ? options.baseUrl : new URL(values["@id"])
|
|
5225
|
-
})
|
|
5299
|
+
});
|
|
5300
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
5301
|
+
_kMatyyNAuxoTD8GQMBfA5ogThMR_emojiReactions.push(decoded);
|
|
5226
5302
|
}
|
|
5227
5303
|
instance.#_kMatyyNAuxoTD8GQMBfA5ogThMR_emojiReactions = _kMatyyNAuxoTD8GQMBfA5ogThMR_emojiReactions;
|
|
5228
5304
|
const _2w3Jmue4up8iVDUA51WZqomEF438_startTime = [];
|
|
5229
5305
|
let _2w3Jmue4up8iVDUA51WZqomEF438_startTime__array = values["https://www.w3.org/ns/activitystreams#startTime"];
|
|
5230
5306
|
for (const v of _2w3Jmue4up8iVDUA51WZqomEF438_startTime__array == null ? [] : _2w3Jmue4up8iVDUA51WZqomEF438_startTime__array.length === 1 && "@list" in _2w3Jmue4up8iVDUA51WZqomEF438_startTime__array[0] ? _2w3Jmue4up8iVDUA51WZqomEF438_startTime__array[0]["@list"] : _2w3Jmue4up8iVDUA51WZqomEF438_startTime__array) {
|
|
5231
5307
|
if (v == null) continue;
|
|
5232
|
-
|
|
5308
|
+
const decoded = Temporal.Instant.from(v["@value"].substring(19).match(/[Z+-]/) ? v["@value"] : v["@value"] + "Z");
|
|
5309
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
5310
|
+
_2w3Jmue4up8iVDUA51WZqomEF438_startTime.push(decoded);
|
|
5233
5311
|
}
|
|
5234
5312
|
instance.#_2w3Jmue4up8iVDUA51WZqomEF438_startTime = _2w3Jmue4up8iVDUA51WZqomEF438_startTime;
|
|
5235
5313
|
const _4LqirZspQbFWWQEbFcXAxm7tTDN1_summary = [];
|
|
5236
5314
|
let _4LqirZspQbFWWQEbFcXAxm7tTDN1_summary__array = values["https://www.w3.org/ns/activitystreams#summary"];
|
|
5237
5315
|
for (const v of _4LqirZspQbFWWQEbFcXAxm7tTDN1_summary__array == null ? [] : _4LqirZspQbFWWQEbFcXAxm7tTDN1_summary__array.length === 1 && "@list" in _4LqirZspQbFWWQEbFcXAxm7tTDN1_summary__array[0] ? _4LqirZspQbFWWQEbFcXAxm7tTDN1_summary__array[0]["@list"] : _4LqirZspQbFWWQEbFcXAxm7tTDN1_summary__array) {
|
|
5238
5316
|
if (v == null) continue;
|
|
5239
|
-
const decoded = typeof v === "object" && "@value" in v && typeof v["@value"] === "string" && !("@language" in v) ? v["@value"] : typeof v === "object" && "@language" in v && "@value" in v && typeof v["@language"] === "string" && typeof v["@value"] === "string" ? new _fedify_vocab_runtime.LanguageString(v["@value"], v["@language"]) : void 0;
|
|
5240
|
-
if (typeof decoded === "undefined")
|
|
5317
|
+
const decoded = typeof v === "object" && "@value" in v && typeof v["@value"] === "string" && !("@language" in v) ? v["@value"] : typeof v === "object" && "@language" in v && "@value" in v && typeof v["@language"] === "string" && typeof v["@value"] === "string" && isValidLanguageTag(v["@language"]) ? new _fedify_vocab_runtime.LanguageString(v["@value"], v["@language"]) : void 0;
|
|
5318
|
+
if (typeof decoded === "undefined") {
|
|
5319
|
+
shouldCacheJsonLd = false;
|
|
5320
|
+
continue;
|
|
5321
|
+
}
|
|
5322
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
5241
5323
|
_4LqirZspQbFWWQEbFcXAxm7tTDN1_summary.push(decoded);
|
|
5242
5324
|
}
|
|
5243
5325
|
instance.#_4LqirZspQbFWWQEbFcXAxm7tTDN1_summary = _4LqirZspQbFWWQEbFcXAxm7tTDN1_summary;
|
|
@@ -5316,7 +5398,11 @@ var Object$1 = class Object$1 {
|
|
|
5316
5398
|
...options,
|
|
5317
5399
|
baseUrl: values["@id"] == null ? options.baseUrl : new URL(values["@id"])
|
|
5318
5400
|
}) : void 0;
|
|
5319
|
-
if (typeof decoded === "undefined")
|
|
5401
|
+
if (typeof decoded === "undefined") {
|
|
5402
|
+
shouldCacheJsonLd = false;
|
|
5403
|
+
continue;
|
|
5404
|
+
}
|
|
5405
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
5320
5406
|
_5chuqj6s95p5gg2sk1HntGfarRf_tag.push(decoded);
|
|
5321
5407
|
}
|
|
5322
5408
|
instance.#_5chuqj6s95p5gg2sk1HntGfarRf_tag = _5chuqj6s95p5gg2sk1HntGfarRf_tag;
|
|
@@ -5324,7 +5410,9 @@ var Object$1 = class Object$1 {
|
|
|
5324
5410
|
let _385aB7ySixcf5Un6z3VsWmThgCzQ_updated__array = values["https://www.w3.org/ns/activitystreams#updated"];
|
|
5325
5411
|
for (const v of _385aB7ySixcf5Un6z3VsWmThgCzQ_updated__array == null ? [] : _385aB7ySixcf5Un6z3VsWmThgCzQ_updated__array.length === 1 && "@list" in _385aB7ySixcf5Un6z3VsWmThgCzQ_updated__array[0] ? _385aB7ySixcf5Un6z3VsWmThgCzQ_updated__array[0]["@list"] : _385aB7ySixcf5Un6z3VsWmThgCzQ_updated__array) {
|
|
5326
5412
|
if (v == null) continue;
|
|
5327
|
-
|
|
5413
|
+
const decoded = Temporal.Instant.from(v["@value"].substring(19).match(/[Z+-]/) ? v["@value"] : v["@value"] + "Z");
|
|
5414
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
5415
|
+
_385aB7ySixcf5Un6z3VsWmThgCzQ_updated.push(decoded);
|
|
5328
5416
|
}
|
|
5329
5417
|
instance.#_385aB7ySixcf5Un6z3VsWmThgCzQ_updated = _385aB7ySixcf5Un6z3VsWmThgCzQ_updated;
|
|
5330
5418
|
const _2oPEH9MQ3aj8JVwyYuWkqoVwV865_url = [];
|
|
@@ -5339,7 +5427,11 @@ var Object$1 = class Object$1 {
|
|
|
5339
5427
|
...options,
|
|
5340
5428
|
baseUrl: values["@id"] == null ? options.baseUrl : new URL(values["@id"])
|
|
5341
5429
|
}) : void 0;
|
|
5342
|
-
if (typeof decoded === "undefined")
|
|
5430
|
+
if (typeof decoded === "undefined") {
|
|
5431
|
+
shouldCacheJsonLd = false;
|
|
5432
|
+
continue;
|
|
5433
|
+
}
|
|
5434
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
5343
5435
|
_2oPEH9MQ3aj8JVwyYuWkqoVwV865_url.push(decoded);
|
|
5344
5436
|
}
|
|
5345
5437
|
instance.#_2oPEH9MQ3aj8JVwyYuWkqoVwV865_url = _2oPEH9MQ3aj8JVwyYuWkqoVwV865_url;
|
|
@@ -5351,10 +5443,12 @@ var Object$1 = class Object$1 {
|
|
|
5351
5443
|
_3hFbw7DTpHhq3cvVhkY8njhcsXbd_to.push(!URL.canParse(v["@id"]) && v["@id"].startsWith("at://") ? new URL("at://" + encodeURIComponent(v["@id"].substring(5))) : new URL(v["@id"]));
|
|
5352
5444
|
continue;
|
|
5353
5445
|
}
|
|
5354
|
-
|
|
5446
|
+
const decoded = await Object$1.fromJsonLd(v, {
|
|
5355
5447
|
...options,
|
|
5356
5448
|
baseUrl: values["@id"] == null ? options.baseUrl : new URL(values["@id"])
|
|
5357
|
-
})
|
|
5449
|
+
});
|
|
5450
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
5451
|
+
_3hFbw7DTpHhq3cvVhkY8njhcsXbd_to.push(decoded);
|
|
5358
5452
|
}
|
|
5359
5453
|
instance.#_3hFbw7DTpHhq3cvVhkY8njhcsXbd_to = _3hFbw7DTpHhq3cvVhkY8njhcsXbd_to;
|
|
5360
5454
|
const _aLZupjwL8XB7tzdLgCMXdjZ6qej_bto = [];
|
|
@@ -5365,10 +5459,12 @@ var Object$1 = class Object$1 {
|
|
|
5365
5459
|
_aLZupjwL8XB7tzdLgCMXdjZ6qej_bto.push(!URL.canParse(v["@id"]) && v["@id"].startsWith("at://") ? new URL("at://" + encodeURIComponent(v["@id"].substring(5))) : new URL(v["@id"]));
|
|
5366
5460
|
continue;
|
|
5367
5461
|
}
|
|
5368
|
-
|
|
5462
|
+
const decoded = await Object$1.fromJsonLd(v, {
|
|
5369
5463
|
...options,
|
|
5370
5464
|
baseUrl: values["@id"] == null ? options.baseUrl : new URL(values["@id"])
|
|
5371
|
-
})
|
|
5465
|
+
});
|
|
5466
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
5467
|
+
_aLZupjwL8XB7tzdLgCMXdjZ6qej_bto.push(decoded);
|
|
5372
5468
|
}
|
|
5373
5469
|
instance.#_aLZupjwL8XB7tzdLgCMXdjZ6qej_bto = _aLZupjwL8XB7tzdLgCMXdjZ6qej_bto;
|
|
5374
5470
|
const _42a1SvBs24QSLzKcfjCyNTjW5a1g_cc = [];
|
|
@@ -5379,10 +5475,12 @@ var Object$1 = class Object$1 {
|
|
|
5379
5475
|
_42a1SvBs24QSLzKcfjCyNTjW5a1g_cc.push(!URL.canParse(v["@id"]) && v["@id"].startsWith("at://") ? new URL("at://" + encodeURIComponent(v["@id"].substring(5))) : new URL(v["@id"]));
|
|
5380
5476
|
continue;
|
|
5381
5477
|
}
|
|
5382
|
-
|
|
5478
|
+
const decoded = await Object$1.fromJsonLd(v, {
|
|
5383
5479
|
...options,
|
|
5384
5480
|
baseUrl: values["@id"] == null ? options.baseUrl : new URL(values["@id"])
|
|
5385
|
-
})
|
|
5481
|
+
});
|
|
5482
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
5483
|
+
_42a1SvBs24QSLzKcfjCyNTjW5a1g_cc.push(decoded);
|
|
5386
5484
|
}
|
|
5387
5485
|
instance.#_42a1SvBs24QSLzKcfjCyNTjW5a1g_cc = _42a1SvBs24QSLzKcfjCyNTjW5a1g_cc;
|
|
5388
5486
|
const _3qvegKUB8YLgTXRpEf8E6JZSkz2H_bcc = [];
|
|
@@ -5393,41 +5491,51 @@ var Object$1 = class Object$1 {
|
|
|
5393
5491
|
_3qvegKUB8YLgTXRpEf8E6JZSkz2H_bcc.push(!URL.canParse(v["@id"]) && v["@id"].startsWith("at://") ? new URL("at://" + encodeURIComponent(v["@id"].substring(5))) : new URL(v["@id"]));
|
|
5394
5492
|
continue;
|
|
5395
5493
|
}
|
|
5396
|
-
|
|
5494
|
+
const decoded = await Object$1.fromJsonLd(v, {
|
|
5397
5495
|
...options,
|
|
5398
5496
|
baseUrl: values["@id"] == null ? options.baseUrl : new URL(values["@id"])
|
|
5399
|
-
})
|
|
5497
|
+
});
|
|
5498
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
5499
|
+
_3qvegKUB8YLgTXRpEf8E6JZSkz2H_bcc.push(decoded);
|
|
5400
5500
|
}
|
|
5401
5501
|
instance.#_3qvegKUB8YLgTXRpEf8E6JZSkz2H_bcc = _3qvegKUB8YLgTXRpEf8E6JZSkz2H_bcc;
|
|
5402
5502
|
const _3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType = [];
|
|
5403
5503
|
let _3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType__array = values["https://www.w3.org/ns/activitystreams#mediaType"];
|
|
5404
5504
|
for (const v of _3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType__array == null ? [] : _3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType__array.length === 1 && "@list" in _3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType__array[0] ? _3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType__array[0]["@list"] : _3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType__array) {
|
|
5405
5505
|
if (v == null) continue;
|
|
5406
|
-
|
|
5506
|
+
const decoded = v["@value"];
|
|
5507
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
5508
|
+
_3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType.push(decoded);
|
|
5407
5509
|
}
|
|
5408
5510
|
instance.#_3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType = _3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType;
|
|
5409
5511
|
const _3bNvLMBN1bCJETiTihM3wvi1B2JX_duration = [];
|
|
5410
5512
|
let _3bNvLMBN1bCJETiTihM3wvi1B2JX_duration__array = values["https://www.w3.org/ns/activitystreams#duration"];
|
|
5411
5513
|
for (const v of _3bNvLMBN1bCJETiTihM3wvi1B2JX_duration__array == null ? [] : _3bNvLMBN1bCJETiTihM3wvi1B2JX_duration__array.length === 1 && "@list" in _3bNvLMBN1bCJETiTihM3wvi1B2JX_duration__array[0] ? _3bNvLMBN1bCJETiTihM3wvi1B2JX_duration__array[0]["@list"] : _3bNvLMBN1bCJETiTihM3wvi1B2JX_duration__array) {
|
|
5412
5514
|
if (v == null) continue;
|
|
5413
|
-
|
|
5515
|
+
const decoded = Temporal.Duration.from(v["@value"]);
|
|
5516
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
5517
|
+
_3bNvLMBN1bCJETiTihM3wvi1B2JX_duration.push(decoded);
|
|
5414
5518
|
}
|
|
5415
5519
|
instance.#_3bNvLMBN1bCJETiTihM3wvi1B2JX_duration = _3bNvLMBN1bCJETiTihM3wvi1B2JX_duration;
|
|
5416
5520
|
const _u8gdcDTtChQ4tbSQMXc4cYWyum7_sensitive = [];
|
|
5417
5521
|
let _u8gdcDTtChQ4tbSQMXc4cYWyum7_sensitive__array = values["https://www.w3.org/ns/activitystreams#sensitive"];
|
|
5418
5522
|
for (const v of _u8gdcDTtChQ4tbSQMXc4cYWyum7_sensitive__array == null ? [] : _u8gdcDTtChQ4tbSQMXc4cYWyum7_sensitive__array.length === 1 && "@list" in _u8gdcDTtChQ4tbSQMXc4cYWyum7_sensitive__array[0] ? _u8gdcDTtChQ4tbSQMXc4cYWyum7_sensitive__array[0]["@list"] : _u8gdcDTtChQ4tbSQMXc4cYWyum7_sensitive__array) {
|
|
5419
5523
|
if (v == null) continue;
|
|
5420
|
-
|
|
5524
|
+
const decoded = v["@value"];
|
|
5525
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
5526
|
+
_u8gdcDTtChQ4tbSQMXc4cYWyum7_sensitive.push(decoded);
|
|
5421
5527
|
}
|
|
5422
5528
|
instance.#_u8gdcDTtChQ4tbSQMXc4cYWyum7_sensitive = _u8gdcDTtChQ4tbSQMXc4cYWyum7_sensitive;
|
|
5423
5529
|
const _2ZwCFoS787v8y8bXKjMoE6MAbrEB_source = [];
|
|
5424
5530
|
let _2ZwCFoS787v8y8bXKjMoE6MAbrEB_source__array = values["https://www.w3.org/ns/activitystreams#source"];
|
|
5425
5531
|
for (const v of _2ZwCFoS787v8y8bXKjMoE6MAbrEB_source__array == null ? [] : _2ZwCFoS787v8y8bXKjMoE6MAbrEB_source__array.length === 1 && "@list" in _2ZwCFoS787v8y8bXKjMoE6MAbrEB_source__array[0] ? _2ZwCFoS787v8y8bXKjMoE6MAbrEB_source__array[0]["@list"] : _2ZwCFoS787v8y8bXKjMoE6MAbrEB_source__array) {
|
|
5426
5532
|
if (v == null) continue;
|
|
5427
|
-
|
|
5533
|
+
const decoded = await Source.fromJsonLd(v, {
|
|
5428
5534
|
...options,
|
|
5429
5535
|
baseUrl: values["@id"] == null ? options.baseUrl : new URL(values["@id"])
|
|
5430
|
-
})
|
|
5536
|
+
});
|
|
5537
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
5538
|
+
_2ZwCFoS787v8y8bXKjMoE6MAbrEB_source.push(decoded);
|
|
5431
5539
|
}
|
|
5432
5540
|
instance.#_2ZwCFoS787v8y8bXKjMoE6MAbrEB_source = _2ZwCFoS787v8y8bXKjMoE6MAbrEB_source;
|
|
5433
5541
|
const _42rPnotok1ivQ2RNCKNbeFJgx8b8_proof = [];
|
|
@@ -5438,13 +5546,16 @@ var Object$1 = class Object$1 {
|
|
|
5438
5546
|
_42rPnotok1ivQ2RNCKNbeFJgx8b8_proof.push(!URL.canParse(v["@id"]) && v["@id"].startsWith("at://") ? new URL("at://" + encodeURIComponent(v["@id"].substring(5))) : new URL(v["@id"]));
|
|
5439
5547
|
continue;
|
|
5440
5548
|
}
|
|
5441
|
-
|
|
5549
|
+
const decoded = await DataIntegrityProof.fromJsonLd(v, {
|
|
5442
5550
|
...options,
|
|
5443
5551
|
baseUrl: values["@id"] == null ? options.baseUrl : new URL(values["@id"])
|
|
5444
|
-
})
|
|
5552
|
+
});
|
|
5553
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
5554
|
+
_42rPnotok1ivQ2RNCKNbeFJgx8b8_proof.push(decoded);
|
|
5445
5555
|
}
|
|
5446
5556
|
instance.#_42rPnotok1ivQ2RNCKNbeFJgx8b8_proof = _42rPnotok1ivQ2RNCKNbeFJgx8b8_proof;
|
|
5447
|
-
|
|
5557
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
5558
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
5448
5559
|
instance._cachedJsonLd = structuredClone(json);
|
|
5449
5560
|
} catch {
|
|
5450
5561
|
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -5785,7 +5896,9 @@ var Emoji = class Emoji extends Object$1 {
|
|
|
5785
5896
|
_fromSubclass: true
|
|
5786
5897
|
});
|
|
5787
5898
|
if (!(instance instanceof Emoji)) throw new TypeError("Unexpected type: " + instance.constructor.name);
|
|
5788
|
-
|
|
5899
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
5900
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
5901
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
5789
5902
|
instance._cachedJsonLd = structuredClone(json);
|
|
5790
5903
|
} catch {
|
|
5791
5904
|
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -6022,16 +6135,20 @@ var ChatMessage = class ChatMessage extends Object$1 {
|
|
|
6022
6135
|
_fromSubclass: true
|
|
6023
6136
|
});
|
|
6024
6137
|
if (!(instance instanceof ChatMessage)) throw new TypeError("Unexpected type: " + instance.constructor.name);
|
|
6138
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
6025
6139
|
const _K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl = [];
|
|
6026
6140
|
let _K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl__array = values["https://www.w3.org/ns/activitystreams#quoteUrl"];
|
|
6027
6141
|
if (_K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl__array == null || _K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl__array.length < 1) _K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl__array = values["https://misskey-hub.net/ns#_misskey_quote"];
|
|
6028
6142
|
if (_K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl__array == null || _K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl__array.length < 1) _K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl__array = values["http://fedibird.com/ns#quoteUri"];
|
|
6029
6143
|
for (const v of _K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl__array == null ? [] : _K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl__array.length === 1 && "@list" in _K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl__array[0] ? _K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl__array[0]["@list"] : _K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl__array) {
|
|
6030
6144
|
if (v == null) continue;
|
|
6031
|
-
|
|
6145
|
+
const decoded = new URL(v["@value"]);
|
|
6146
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
6147
|
+
_K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl.push(decoded);
|
|
6032
6148
|
}
|
|
6033
6149
|
instance.#_K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl = _K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl;
|
|
6034
|
-
|
|
6150
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
6151
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
6035
6152
|
instance._cachedJsonLd = structuredClone(json);
|
|
6036
6153
|
} catch {
|
|
6037
6154
|
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -7467,6 +7584,7 @@ var Activity = class Activity extends Object$1 {
|
|
|
7467
7584
|
_fromSubclass: true
|
|
7468
7585
|
});
|
|
7469
7586
|
if (!(instance instanceof Activity)) throw new TypeError("Unexpected type: " + instance.constructor.name);
|
|
7587
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
7470
7588
|
const _2DjTTboo3CNHU2a2JQqUSE2dbv9D_actor = [];
|
|
7471
7589
|
let _2DjTTboo3CNHU2a2JQqUSE2dbv9D_actor__array = values["https://www.w3.org/ns/activitystreams#actor"];
|
|
7472
7590
|
for (const v of _2DjTTboo3CNHU2a2JQqUSE2dbv9D_actor__array == null ? [] : _2DjTTboo3CNHU2a2JQqUSE2dbv9D_actor__array.length === 1 && "@list" in _2DjTTboo3CNHU2a2JQqUSE2dbv9D_actor__array[0] ? _2DjTTboo3CNHU2a2JQqUSE2dbv9D_actor__array[0]["@list"] : _2DjTTboo3CNHU2a2JQqUSE2dbv9D_actor__array) {
|
|
@@ -7491,7 +7609,11 @@ var Activity = class Activity extends Object$1 {
|
|
|
7491
7609
|
...options,
|
|
7492
7610
|
baseUrl: values["@id"] == null ? options.baseUrl : new URL(values["@id"])
|
|
7493
7611
|
}) : void 0;
|
|
7494
|
-
if (typeof decoded === "undefined")
|
|
7612
|
+
if (typeof decoded === "undefined") {
|
|
7613
|
+
shouldCacheJsonLd = false;
|
|
7614
|
+
continue;
|
|
7615
|
+
}
|
|
7616
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
7495
7617
|
_2DjTTboo3CNHU2a2JQqUSE2dbv9D_actor.push(decoded);
|
|
7496
7618
|
}
|
|
7497
7619
|
instance.#_2DjTTboo3CNHU2a2JQqUSE2dbv9D_actor = _2DjTTboo3CNHU2a2JQqUSE2dbv9D_actor;
|
|
@@ -7503,10 +7625,12 @@ var Activity = class Activity extends Object$1 {
|
|
|
7503
7625
|
_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object.push(!URL.canParse(v["@id"]) && v["@id"].startsWith("at://") ? new URL("at://" + encodeURIComponent(v["@id"].substring(5))) : new URL(v["@id"]));
|
|
7504
7626
|
continue;
|
|
7505
7627
|
}
|
|
7506
|
-
|
|
7628
|
+
const decoded = await Object$1.fromJsonLd(v, {
|
|
7507
7629
|
...options,
|
|
7508
7630
|
baseUrl: values["@id"] == null ? options.baseUrl : new URL(values["@id"])
|
|
7509
|
-
})
|
|
7631
|
+
});
|
|
7632
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
7633
|
+
_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object.push(decoded);
|
|
7510
7634
|
}
|
|
7511
7635
|
instance.#_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object = _2MH19yxjn1wnHsNfa5n4JBhJzxyc_object;
|
|
7512
7636
|
const _3JQCmF2Ww56Ag9EWRYoSZRDNCYtF_target = [];
|
|
@@ -7517,10 +7641,12 @@ var Activity = class Activity extends Object$1 {
|
|
|
7517
7641
|
_3JQCmF2Ww56Ag9EWRYoSZRDNCYtF_target.push(!URL.canParse(v["@id"]) && v["@id"].startsWith("at://") ? new URL("at://" + encodeURIComponent(v["@id"].substring(5))) : new URL(v["@id"]));
|
|
7518
7642
|
continue;
|
|
7519
7643
|
}
|
|
7520
|
-
|
|
7644
|
+
const decoded = await Object$1.fromJsonLd(v, {
|
|
7521
7645
|
...options,
|
|
7522
7646
|
baseUrl: values["@id"] == null ? options.baseUrl : new URL(values["@id"])
|
|
7523
|
-
})
|
|
7647
|
+
});
|
|
7648
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
7649
|
+
_3JQCmF2Ww56Ag9EWRYoSZRDNCYtF_target.push(decoded);
|
|
7524
7650
|
}
|
|
7525
7651
|
instance.#_3JQCmF2Ww56Ag9EWRYoSZRDNCYtF_target = _3JQCmF2Ww56Ag9EWRYoSZRDNCYtF_target;
|
|
7526
7652
|
const _u4QGFbRFcYmPEKGbPv1hpBR9r5G_result = [];
|
|
@@ -7531,10 +7657,12 @@ var Activity = class Activity extends Object$1 {
|
|
|
7531
7657
|
_u4QGFbRFcYmPEKGbPv1hpBR9r5G_result.push(!URL.canParse(v["@id"]) && v["@id"].startsWith("at://") ? new URL("at://" + encodeURIComponent(v["@id"].substring(5))) : new URL(v["@id"]));
|
|
7532
7658
|
continue;
|
|
7533
7659
|
}
|
|
7534
|
-
|
|
7660
|
+
const decoded = await Object$1.fromJsonLd(v, {
|
|
7535
7661
|
...options,
|
|
7536
7662
|
baseUrl: values["@id"] == null ? options.baseUrl : new URL(values["@id"])
|
|
7537
|
-
})
|
|
7663
|
+
});
|
|
7664
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
7665
|
+
_u4QGFbRFcYmPEKGbPv1hpBR9r5G_result.push(decoded);
|
|
7538
7666
|
}
|
|
7539
7667
|
instance.#_u4QGFbRFcYmPEKGbPv1hpBR9r5G_result = _u4QGFbRFcYmPEKGbPv1hpBR9r5G_result;
|
|
7540
7668
|
const _25zu2s3VxVujgEKqrDycjE284XQR_origin = [];
|
|
@@ -7545,10 +7673,12 @@ var Activity = class Activity extends Object$1 {
|
|
|
7545
7673
|
_25zu2s3VxVujgEKqrDycjE284XQR_origin.push(!URL.canParse(v["@id"]) && v["@id"].startsWith("at://") ? new URL("at://" + encodeURIComponent(v["@id"].substring(5))) : new URL(v["@id"]));
|
|
7546
7674
|
continue;
|
|
7547
7675
|
}
|
|
7548
|
-
|
|
7676
|
+
const decoded = await Object$1.fromJsonLd(v, {
|
|
7549
7677
|
...options,
|
|
7550
7678
|
baseUrl: values["@id"] == null ? options.baseUrl : new URL(values["@id"])
|
|
7551
|
-
})
|
|
7679
|
+
});
|
|
7680
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
7681
|
+
_25zu2s3VxVujgEKqrDycjE284XQR_origin.push(decoded);
|
|
7552
7682
|
}
|
|
7553
7683
|
instance.#_25zu2s3VxVujgEKqrDycjE284XQR_origin = _25zu2s3VxVujgEKqrDycjE284XQR_origin;
|
|
7554
7684
|
const _3c5t2x7DYRo2shwTxpkd4kYSS5WQ_instrument = [];
|
|
@@ -7559,13 +7689,16 @@ var Activity = class Activity extends Object$1 {
|
|
|
7559
7689
|
_3c5t2x7DYRo2shwTxpkd4kYSS5WQ_instrument.push(!URL.canParse(v["@id"]) && v["@id"].startsWith("at://") ? new URL("at://" + encodeURIComponent(v["@id"].substring(5))) : new URL(v["@id"]));
|
|
7560
7690
|
continue;
|
|
7561
7691
|
}
|
|
7562
|
-
|
|
7692
|
+
const decoded = await Object$1.fromJsonLd(v, {
|
|
7563
7693
|
...options,
|
|
7564
7694
|
baseUrl: values["@id"] == null ? options.baseUrl : new URL(values["@id"])
|
|
7565
|
-
})
|
|
7695
|
+
});
|
|
7696
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
7697
|
+
_3c5t2x7DYRo2shwTxpkd4kYSS5WQ_instrument.push(decoded);
|
|
7566
7698
|
}
|
|
7567
7699
|
instance.#_3c5t2x7DYRo2shwTxpkd4kYSS5WQ_instrument = _3c5t2x7DYRo2shwTxpkd4kYSS5WQ_instrument;
|
|
7568
|
-
|
|
7700
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
7701
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
7569
7702
|
instance._cachedJsonLd = structuredClone(json);
|
|
7570
7703
|
} catch {
|
|
7571
7704
|
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -7755,7 +7888,9 @@ var EmojiReact = class EmojiReact extends Activity {
|
|
|
7755
7888
|
_fromSubclass: true
|
|
7756
7889
|
});
|
|
7757
7890
|
if (!(instance instanceof EmojiReact)) throw new TypeError("Unexpected type: " + instance.constructor.name);
|
|
7758
|
-
|
|
7891
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
7892
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
7893
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
7759
7894
|
instance._cachedJsonLd = structuredClone(json);
|
|
7760
7895
|
} catch {
|
|
7761
7896
|
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -7780,6 +7915,7 @@ var PropertyValue = class {
|
|
|
7780
7915
|
#tracerProvider;
|
|
7781
7916
|
#warning;
|
|
7782
7917
|
#cachedJsonLd;
|
|
7918
|
+
#shouldCacheJsonLd = true;
|
|
7783
7919
|
id;
|
|
7784
7920
|
get _documentLoader() {
|
|
7785
7921
|
return this.#documentLoader;
|
|
@@ -7799,6 +7935,17 @@ var PropertyValue = class {
|
|
|
7799
7935
|
set _cachedJsonLd(value) {
|
|
7800
7936
|
this.#cachedJsonLd = value;
|
|
7801
7937
|
}
|
|
7938
|
+
get _shouldCacheJsonLd() {
|
|
7939
|
+
return this.#shouldCacheJsonLd;
|
|
7940
|
+
}
|
|
7941
|
+
set _shouldCacheJsonLd(value) {
|
|
7942
|
+
this.#shouldCacheJsonLd = value;
|
|
7943
|
+
}
|
|
7944
|
+
static _shouldCacheDecodedJsonLd(value) {
|
|
7945
|
+
if (value == null || typeof value !== "object") return true;
|
|
7946
|
+
if (!("_shouldCacheJsonLd" in value)) return true;
|
|
7947
|
+
return value._shouldCacheJsonLd;
|
|
7948
|
+
}
|
|
7802
7949
|
/**
|
|
7803
7950
|
* The type URI of {@link PropertyValue}: `http://schema.org#PropertyValue`.
|
|
7804
7951
|
*/
|
|
@@ -7996,12 +8143,17 @@ var PropertyValue = class {
|
|
|
7996
8143
|
if (!values["@type"].includes("http://schema.org#PropertyValue")) throw new TypeError("Invalid type: " + values["@type"]);
|
|
7997
8144
|
}
|
|
7998
8145
|
const instance = new this({ id: "@id" in values ? new URL(values["@id"]) : void 0 }, options);
|
|
8146
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
7999
8147
|
const _4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name = [];
|
|
8000
8148
|
let _4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name__array = values["https://www.w3.org/ns/activitystreams#name"];
|
|
8001
8149
|
for (const v of _4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name__array == null ? [] : _4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name__array.length === 1 && "@list" in _4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name__array[0] ? _4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name__array[0]["@list"] : _4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name__array) {
|
|
8002
8150
|
if (v == null) continue;
|
|
8003
|
-
const decoded = typeof v === "object" && "@value" in v && typeof v["@value"] === "string" && !("@language" in v) ? v["@value"] : typeof v === "object" && "@language" in v && "@value" in v && typeof v["@language"] === "string" && typeof v["@value"] === "string" ? new _fedify_vocab_runtime.LanguageString(v["@value"], v["@language"]) : void 0;
|
|
8004
|
-
if (typeof decoded === "undefined")
|
|
8151
|
+
const decoded = typeof v === "object" && "@value" in v && typeof v["@value"] === "string" && !("@language" in v) ? v["@value"] : typeof v === "object" && "@language" in v && "@value" in v && typeof v["@language"] === "string" && typeof v["@value"] === "string" && isValidLanguageTag(v["@language"]) ? new _fedify_vocab_runtime.LanguageString(v["@value"], v["@language"]) : void 0;
|
|
8152
|
+
if (typeof decoded === "undefined") {
|
|
8153
|
+
shouldCacheJsonLd = false;
|
|
8154
|
+
continue;
|
|
8155
|
+
}
|
|
8156
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
8005
8157
|
_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name.push(decoded);
|
|
8006
8158
|
}
|
|
8007
8159
|
instance.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name = _4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name;
|
|
@@ -8009,12 +8161,17 @@ var PropertyValue = class {
|
|
|
8009
8161
|
let _2cSy2magg4iZ7zLaG8U7DiJMoCkx_value__array = values["http://schema.org#value"];
|
|
8010
8162
|
for (const v of _2cSy2magg4iZ7zLaG8U7DiJMoCkx_value__array == null ? [] : _2cSy2magg4iZ7zLaG8U7DiJMoCkx_value__array.length === 1 && "@list" in _2cSy2magg4iZ7zLaG8U7DiJMoCkx_value__array[0] ? _2cSy2magg4iZ7zLaG8U7DiJMoCkx_value__array[0]["@list"] : _2cSy2magg4iZ7zLaG8U7DiJMoCkx_value__array) {
|
|
8011
8163
|
if (v == null) continue;
|
|
8012
|
-
const decoded = typeof v === "object" && "@value" in v && typeof v["@value"] === "string" && !("@language" in v) ? v["@value"] : typeof v === "object" && "@language" in v && "@value" in v && typeof v["@language"] === "string" && typeof v["@value"] === "string" ? new _fedify_vocab_runtime.LanguageString(v["@value"], v["@language"]) : void 0;
|
|
8013
|
-
if (typeof decoded === "undefined")
|
|
8164
|
+
const decoded = typeof v === "object" && "@value" in v && typeof v["@value"] === "string" && !("@language" in v) ? v["@value"] : typeof v === "object" && "@language" in v && "@value" in v && typeof v["@language"] === "string" && typeof v["@value"] === "string" && isValidLanguageTag(v["@language"]) ? new _fedify_vocab_runtime.LanguageString(v["@value"], v["@language"]) : void 0;
|
|
8165
|
+
if (typeof decoded === "undefined") {
|
|
8166
|
+
shouldCacheJsonLd = false;
|
|
8167
|
+
continue;
|
|
8168
|
+
}
|
|
8169
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
8014
8170
|
_2cSy2magg4iZ7zLaG8U7DiJMoCkx_value.push(decoded);
|
|
8015
8171
|
}
|
|
8016
8172
|
instance.#_2cSy2magg4iZ7zLaG8U7DiJMoCkx_value = _2cSy2magg4iZ7zLaG8U7DiJMoCkx_value;
|
|
8017
|
-
|
|
8173
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
8174
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
8018
8175
|
instance._cachedJsonLd = structuredClone(json);
|
|
8019
8176
|
} catch {
|
|
8020
8177
|
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -8057,6 +8214,7 @@ var DidService = class {
|
|
|
8057
8214
|
#tracerProvider;
|
|
8058
8215
|
#warning;
|
|
8059
8216
|
#cachedJsonLd;
|
|
8217
|
+
#shouldCacheJsonLd = true;
|
|
8060
8218
|
id;
|
|
8061
8219
|
get _documentLoader() {
|
|
8062
8220
|
return this.#documentLoader;
|
|
@@ -8076,6 +8234,17 @@ var DidService = class {
|
|
|
8076
8234
|
set _cachedJsonLd(value) {
|
|
8077
8235
|
this.#cachedJsonLd = value;
|
|
8078
8236
|
}
|
|
8237
|
+
get _shouldCacheJsonLd() {
|
|
8238
|
+
return this.#shouldCacheJsonLd;
|
|
8239
|
+
}
|
|
8240
|
+
set _shouldCacheJsonLd(value) {
|
|
8241
|
+
this.#shouldCacheJsonLd = value;
|
|
8242
|
+
}
|
|
8243
|
+
static _shouldCacheDecodedJsonLd(value) {
|
|
8244
|
+
if (value == null || typeof value !== "object") return true;
|
|
8245
|
+
if (!("_shouldCacheJsonLd" in value)) return true;
|
|
8246
|
+
return value._shouldCacheJsonLd;
|
|
8247
|
+
}
|
|
8079
8248
|
/**
|
|
8080
8249
|
* The type URI of {@link DidService}: `https://www.w3.org/ns/did#Service`.
|
|
8081
8250
|
*/
|
|
@@ -8231,14 +8400,18 @@ var DidService = class {
|
|
|
8231
8400
|
if (!values["@type"].includes("https://www.w3.org/ns/did#Service")) throw new TypeError("Invalid type: " + values["@type"]);
|
|
8232
8401
|
}
|
|
8233
8402
|
const instance = new this({ id: "@id" in values ? new URL(values["@id"]) : void 0 }, options);
|
|
8403
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
8234
8404
|
const _2KM4fetG6FTJ1cphj76rzJ8Dyv7p_serviceEndpoint = [];
|
|
8235
8405
|
let _2KM4fetG6FTJ1cphj76rzJ8Dyv7p_serviceEndpoint__array = values["https://www.w3.org/ns/did#serviceEndpoint"];
|
|
8236
8406
|
for (const v of _2KM4fetG6FTJ1cphj76rzJ8Dyv7p_serviceEndpoint__array == null ? [] : _2KM4fetG6FTJ1cphj76rzJ8Dyv7p_serviceEndpoint__array.length === 1 && "@list" in _2KM4fetG6FTJ1cphj76rzJ8Dyv7p_serviceEndpoint__array[0] ? _2KM4fetG6FTJ1cphj76rzJ8Dyv7p_serviceEndpoint__array[0]["@list"] : _2KM4fetG6FTJ1cphj76rzJ8Dyv7p_serviceEndpoint__array) {
|
|
8237
8407
|
if (v == null) continue;
|
|
8238
|
-
|
|
8408
|
+
const decoded = v["@id"].startsWith("at://") ? new URL("at://" + encodeURIComponent(v["@id"].includes("/", 5) ? v["@id"].slice(5, v["@id"].indexOf("/", 5)) : v["@id"].slice(5)) + (v["@id"].includes("/", 5) ? v["@id"].slice(v["@id"].indexOf("/", 5)) : "")) : URL.canParse(v["@id"]) && (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) ? new URL(v["@id"]) : new URL(v["@id"], values["@id"] == null ? options.baseUrl : new URL(values["@id"]));
|
|
8409
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
8410
|
+
_2KM4fetG6FTJ1cphj76rzJ8Dyv7p_serviceEndpoint.push(decoded);
|
|
8239
8411
|
}
|
|
8240
8412
|
instance.#_2KM4fetG6FTJ1cphj76rzJ8Dyv7p_serviceEndpoint = _2KM4fetG6FTJ1cphj76rzJ8Dyv7p_serviceEndpoint;
|
|
8241
|
-
|
|
8413
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
8414
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
8242
8415
|
instance._cachedJsonLd = structuredClone(json);
|
|
8243
8416
|
} catch {
|
|
8244
8417
|
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -8389,7 +8562,9 @@ var Export = class Export extends DidService {
|
|
|
8389
8562
|
_fromSubclass: true
|
|
8390
8563
|
});
|
|
8391
8564
|
if (!(instance instanceof Export)) throw new TypeError("Unexpected type: " + instance.constructor.name);
|
|
8392
|
-
|
|
8565
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
8566
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
8567
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
8393
8568
|
instance._cachedJsonLd = structuredClone(json);
|
|
8394
8569
|
} catch {
|
|
8395
8570
|
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -8415,6 +8590,7 @@ var DataIntegrityProof = class {
|
|
|
8415
8590
|
#tracerProvider;
|
|
8416
8591
|
#warning;
|
|
8417
8592
|
#cachedJsonLd;
|
|
8593
|
+
#shouldCacheJsonLd = true;
|
|
8418
8594
|
id;
|
|
8419
8595
|
get _documentLoader() {
|
|
8420
8596
|
return this.#documentLoader;
|
|
@@ -8434,6 +8610,17 @@ var DataIntegrityProof = class {
|
|
|
8434
8610
|
set _cachedJsonLd(value) {
|
|
8435
8611
|
this.#cachedJsonLd = value;
|
|
8436
8612
|
}
|
|
8613
|
+
get _shouldCacheJsonLd() {
|
|
8614
|
+
return this.#shouldCacheJsonLd;
|
|
8615
|
+
}
|
|
8616
|
+
set _shouldCacheJsonLd(value) {
|
|
8617
|
+
this.#shouldCacheJsonLd = value;
|
|
8618
|
+
}
|
|
8619
|
+
static _shouldCacheDecodedJsonLd(value) {
|
|
8620
|
+
if (value == null || typeof value !== "object") return true;
|
|
8621
|
+
if (!("_shouldCacheJsonLd" in value)) return true;
|
|
8622
|
+
return value._shouldCacheJsonLd;
|
|
8623
|
+
}
|
|
8437
8624
|
/**
|
|
8438
8625
|
* The type URI of {@link DataIntegrityProof}: `https://w3id.org/security#DataIntegrityProof`.
|
|
8439
8626
|
*/
|
|
@@ -8776,11 +8963,14 @@ var DataIntegrityProof = class {
|
|
|
8776
8963
|
if (!values["@type"].includes("https://w3id.org/security#DataIntegrityProof")) throw new TypeError("Invalid type: " + values["@type"]);
|
|
8777
8964
|
}
|
|
8778
8965
|
const instance = new this({ id: "@id" in values ? new URL(values["@id"]) : void 0 }, options);
|
|
8966
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
8779
8967
|
const _3RurJsa7tnptyqMFR5hDGcP9pMs5_cryptosuite = [];
|
|
8780
8968
|
let _3RurJsa7tnptyqMFR5hDGcP9pMs5_cryptosuite__array = values["https://w3id.org/security#cryptosuite"];
|
|
8781
8969
|
for (const v of _3RurJsa7tnptyqMFR5hDGcP9pMs5_cryptosuite__array == null ? [] : _3RurJsa7tnptyqMFR5hDGcP9pMs5_cryptosuite__array.length === 1 && "@list" in _3RurJsa7tnptyqMFR5hDGcP9pMs5_cryptosuite__array[0] ? _3RurJsa7tnptyqMFR5hDGcP9pMs5_cryptosuite__array[0]["@list"] : _3RurJsa7tnptyqMFR5hDGcP9pMs5_cryptosuite__array) {
|
|
8782
8970
|
if (v == null) continue;
|
|
8783
|
-
|
|
8971
|
+
const decoded = v["@value"];
|
|
8972
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
8973
|
+
_3RurJsa7tnptyqMFR5hDGcP9pMs5_cryptosuite.push(decoded);
|
|
8784
8974
|
}
|
|
8785
8975
|
instance.#_3RurJsa7tnptyqMFR5hDGcP9pMs5_cryptosuite = _3RurJsa7tnptyqMFR5hDGcP9pMs5_cryptosuite;
|
|
8786
8976
|
const _2mHVKxqA7zncjveJrDEo3pWpMZqg_verificationMethod = [];
|
|
@@ -8791,34 +8981,43 @@ var DataIntegrityProof = class {
|
|
|
8791
8981
|
_2mHVKxqA7zncjveJrDEo3pWpMZqg_verificationMethod.push(!URL.canParse(v["@id"]) && v["@id"].startsWith("at://") ? new URL("at://" + encodeURIComponent(v["@id"].substring(5))) : new URL(v["@id"]));
|
|
8792
8982
|
continue;
|
|
8793
8983
|
}
|
|
8794
|
-
|
|
8984
|
+
const decoded = await Multikey.fromJsonLd(v, {
|
|
8795
8985
|
...options,
|
|
8796
8986
|
baseUrl: values["@id"] == null ? options.baseUrl : new URL(values["@id"])
|
|
8797
|
-
})
|
|
8987
|
+
});
|
|
8988
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
8989
|
+
_2mHVKxqA7zncjveJrDEo3pWpMZqg_verificationMethod.push(decoded);
|
|
8798
8990
|
}
|
|
8799
8991
|
instance.#_2mHVKxqA7zncjveJrDEo3pWpMZqg_verificationMethod = _2mHVKxqA7zncjveJrDEo3pWpMZqg_verificationMethod;
|
|
8800
8992
|
const _2AeEnPcAvVrPEuKbpmn9ZKNmWHKb_proofPurpose = [];
|
|
8801
8993
|
let _2AeEnPcAvVrPEuKbpmn9ZKNmWHKb_proofPurpose__array = values["https://w3id.org/security#proofPurpose"];
|
|
8802
8994
|
for (const v of _2AeEnPcAvVrPEuKbpmn9ZKNmWHKb_proofPurpose__array == null ? [] : _2AeEnPcAvVrPEuKbpmn9ZKNmWHKb_proofPurpose__array.length === 1 && "@list" in _2AeEnPcAvVrPEuKbpmn9ZKNmWHKb_proofPurpose__array[0] ? _2AeEnPcAvVrPEuKbpmn9ZKNmWHKb_proofPurpose__array[0]["@list"] : _2AeEnPcAvVrPEuKbpmn9ZKNmWHKb_proofPurpose__array) {
|
|
8803
8995
|
if (v == null) continue;
|
|
8804
|
-
|
|
8996
|
+
const decoded = v["@id"].substring(26);
|
|
8997
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
8998
|
+
_2AeEnPcAvVrPEuKbpmn9ZKNmWHKb_proofPurpose.push(decoded);
|
|
8805
8999
|
}
|
|
8806
9000
|
instance.#_2AeEnPcAvVrPEuKbpmn9ZKNmWHKb_proofPurpose = _2AeEnPcAvVrPEuKbpmn9ZKNmWHKb_proofPurpose;
|
|
8807
9001
|
const _3CjFK5vfKpX4HQuNh2b18TykoVLq_proofValue = [];
|
|
8808
9002
|
let _3CjFK5vfKpX4HQuNh2b18TykoVLq_proofValue__array = values["https://w3id.org/security#proofValue"];
|
|
8809
9003
|
for (const v of _3CjFK5vfKpX4HQuNh2b18TykoVLq_proofValue__array == null ? [] : _3CjFK5vfKpX4HQuNh2b18TykoVLq_proofValue__array.length === 1 && "@list" in _3CjFK5vfKpX4HQuNh2b18TykoVLq_proofValue__array[0] ? _3CjFK5vfKpX4HQuNh2b18TykoVLq_proofValue__array[0]["@list"] : _3CjFK5vfKpX4HQuNh2b18TykoVLq_proofValue__array) {
|
|
8810
9004
|
if (v == null) continue;
|
|
8811
|
-
|
|
9005
|
+
const decoded = (0, _fedify_vocab_runtime.decodeMultibase)(v["@value"]);
|
|
9006
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
9007
|
+
_3CjFK5vfKpX4HQuNh2b18TykoVLq_proofValue.push(decoded);
|
|
8812
9008
|
}
|
|
8813
9009
|
instance.#_3CjFK5vfKpX4HQuNh2b18TykoVLq_proofValue = _3CjFK5vfKpX4HQuNh2b18TykoVLq_proofValue;
|
|
8814
9010
|
const _3qzP3ukEZoUziK5FEiA1RhU4aqac = [];
|
|
8815
9011
|
let _3qzP3ukEZoUziK5FEiA1RhU4aqac__array = values["http://purl.org/dc/terms/created"];
|
|
8816
9012
|
for (const v of _3qzP3ukEZoUziK5FEiA1RhU4aqac__array == null ? [] : _3qzP3ukEZoUziK5FEiA1RhU4aqac__array.length === 1 && "@list" in _3qzP3ukEZoUziK5FEiA1RhU4aqac__array[0] ? _3qzP3ukEZoUziK5FEiA1RhU4aqac__array[0]["@list"] : _3qzP3ukEZoUziK5FEiA1RhU4aqac__array) {
|
|
8817
9013
|
if (v == null) continue;
|
|
8818
|
-
|
|
9014
|
+
const decoded = Temporal.Instant.from(v["@value"].substring(19).match(/[Z+-]/) ? v["@value"] : v["@value"] + "Z");
|
|
9015
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
9016
|
+
_3qzP3ukEZoUziK5FEiA1RhU4aqac.push(decoded);
|
|
8819
9017
|
}
|
|
8820
9018
|
instance.#_3qzP3ukEZoUziK5FEiA1RhU4aqac = _3qzP3ukEZoUziK5FEiA1RhU4aqac;
|
|
8821
|
-
|
|
9019
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
9020
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
8822
9021
|
instance._cachedJsonLd = structuredClone(json);
|
|
8823
9022
|
} catch {
|
|
8824
9023
|
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -8873,6 +9072,7 @@ var CryptographicKey = class {
|
|
|
8873
9072
|
#tracerProvider;
|
|
8874
9073
|
#warning;
|
|
8875
9074
|
#cachedJsonLd;
|
|
9075
|
+
#shouldCacheJsonLd = true;
|
|
8876
9076
|
id;
|
|
8877
9077
|
get _documentLoader() {
|
|
8878
9078
|
return this.#documentLoader;
|
|
@@ -8892,6 +9092,17 @@ var CryptographicKey = class {
|
|
|
8892
9092
|
set _cachedJsonLd(value) {
|
|
8893
9093
|
this.#cachedJsonLd = value;
|
|
8894
9094
|
}
|
|
9095
|
+
get _shouldCacheJsonLd() {
|
|
9096
|
+
return this.#shouldCacheJsonLd;
|
|
9097
|
+
}
|
|
9098
|
+
set _shouldCacheJsonLd(value) {
|
|
9099
|
+
this.#shouldCacheJsonLd = value;
|
|
9100
|
+
}
|
|
9101
|
+
static _shouldCacheDecodedJsonLd(value) {
|
|
9102
|
+
if (value == null || typeof value !== "object") return true;
|
|
9103
|
+
if (!("_shouldCacheJsonLd" in value)) return true;
|
|
9104
|
+
return value._shouldCacheJsonLd;
|
|
9105
|
+
}
|
|
8895
9106
|
/**
|
|
8896
9107
|
* The type URI of {@link CryptographicKey}: `https://w3id.org/security#Key`.
|
|
8897
9108
|
*/
|
|
@@ -9252,6 +9463,7 @@ var CryptographicKey = class {
|
|
|
9252
9463
|
if (!values["@type"].includes("https://w3id.org/security#Key")) throw new TypeError("Invalid type: " + values["@type"]);
|
|
9253
9464
|
}
|
|
9254
9465
|
const instance = new this({ id: "@id" in values ? new URL(values["@id"]) : void 0 }, options);
|
|
9466
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
9255
9467
|
const _5UJq9NDh3ZHgswFwwdVxQvJxdx2_owner = [];
|
|
9256
9468
|
let _5UJq9NDh3ZHgswFwwdVxQvJxdx2_owner__array = values["https://w3id.org/security#owner"];
|
|
9257
9469
|
for (const v of _5UJq9NDh3ZHgswFwwdVxQvJxdx2_owner__array == null ? [] : _5UJq9NDh3ZHgswFwwdVxQvJxdx2_owner__array.length === 1 && "@list" in _5UJq9NDh3ZHgswFwwdVxQvJxdx2_owner__array[0] ? _5UJq9NDh3ZHgswFwwdVxQvJxdx2_owner__array[0]["@list"] : _5UJq9NDh3ZHgswFwwdVxQvJxdx2_owner__array) {
|
|
@@ -9276,7 +9488,11 @@ var CryptographicKey = class {
|
|
|
9276
9488
|
...options,
|
|
9277
9489
|
baseUrl: values["@id"] == null ? options.baseUrl : new URL(values["@id"])
|
|
9278
9490
|
}) : void 0;
|
|
9279
|
-
if (typeof decoded === "undefined")
|
|
9491
|
+
if (typeof decoded === "undefined") {
|
|
9492
|
+
shouldCacheJsonLd = false;
|
|
9493
|
+
continue;
|
|
9494
|
+
}
|
|
9495
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
9280
9496
|
_5UJq9NDh3ZHgswFwwdVxQvJxdx2_owner.push(decoded);
|
|
9281
9497
|
}
|
|
9282
9498
|
instance.#_5UJq9NDh3ZHgswFwwdVxQvJxdx2_owner = _5UJq9NDh3ZHgswFwwdVxQvJxdx2_owner;
|
|
@@ -9284,10 +9500,13 @@ var CryptographicKey = class {
|
|
|
9284
9500
|
let _2fE2QMDdg6KFGqa4NEC3TmjApSAD_publicKeyPem__array = values["https://w3id.org/security#publicKeyPem"];
|
|
9285
9501
|
for (const v of _2fE2QMDdg6KFGqa4NEC3TmjApSAD_publicKeyPem__array == null ? [] : _2fE2QMDdg6KFGqa4NEC3TmjApSAD_publicKeyPem__array.length === 1 && "@list" in _2fE2QMDdg6KFGqa4NEC3TmjApSAD_publicKeyPem__array[0] ? _2fE2QMDdg6KFGqa4NEC3TmjApSAD_publicKeyPem__array[0]["@list"] : _2fE2QMDdg6KFGqa4NEC3TmjApSAD_publicKeyPem__array) {
|
|
9286
9502
|
if (v == null) continue;
|
|
9287
|
-
|
|
9503
|
+
const decoded = await (0, _fedify_vocab_runtime.importPem)(v["@value"]);
|
|
9504
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
9505
|
+
_2fE2QMDdg6KFGqa4NEC3TmjApSAD_publicKeyPem.push(decoded);
|
|
9288
9506
|
}
|
|
9289
9507
|
instance.#_2fE2QMDdg6KFGqa4NEC3TmjApSAD_publicKeyPem = _2fE2QMDdg6KFGqa4NEC3TmjApSAD_publicKeyPem;
|
|
9290
|
-
|
|
9508
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
9509
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
9291
9510
|
instance._cachedJsonLd = structuredClone(json);
|
|
9292
9511
|
} catch {
|
|
9293
9512
|
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -9330,6 +9549,7 @@ var Multikey = class {
|
|
|
9330
9549
|
#tracerProvider;
|
|
9331
9550
|
#warning;
|
|
9332
9551
|
#cachedJsonLd;
|
|
9552
|
+
#shouldCacheJsonLd = true;
|
|
9333
9553
|
id;
|
|
9334
9554
|
get _documentLoader() {
|
|
9335
9555
|
return this.#documentLoader;
|
|
@@ -9349,6 +9569,17 @@ var Multikey = class {
|
|
|
9349
9569
|
set _cachedJsonLd(value) {
|
|
9350
9570
|
this.#cachedJsonLd = value;
|
|
9351
9571
|
}
|
|
9572
|
+
get _shouldCacheJsonLd() {
|
|
9573
|
+
return this.#shouldCacheJsonLd;
|
|
9574
|
+
}
|
|
9575
|
+
set _shouldCacheJsonLd(value) {
|
|
9576
|
+
this.#shouldCacheJsonLd = value;
|
|
9577
|
+
}
|
|
9578
|
+
static _shouldCacheDecodedJsonLd(value) {
|
|
9579
|
+
if (value == null || typeof value !== "object") return true;
|
|
9580
|
+
if (!("_shouldCacheJsonLd" in value)) return true;
|
|
9581
|
+
return value._shouldCacheJsonLd;
|
|
9582
|
+
}
|
|
9352
9583
|
/**
|
|
9353
9584
|
* The type URI of {@link Multikey}: `https://w3id.org/security#Multikey`.
|
|
9354
9585
|
*/
|
|
@@ -9715,6 +9946,7 @@ var Multikey = class {
|
|
|
9715
9946
|
if (!values["@type"].includes("https://w3id.org/security#Multikey")) throw new TypeError("Invalid type: " + values["@type"]);
|
|
9716
9947
|
}
|
|
9717
9948
|
const instance = new this({ id: "@id" in values ? new URL(values["@id"]) : void 0 }, options);
|
|
9949
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
9718
9950
|
const _2yr3eUBTP6cNcyaxKzAXWjFsnGzN_controller = [];
|
|
9719
9951
|
let _2yr3eUBTP6cNcyaxKzAXWjFsnGzN_controller__array = values["https://w3id.org/security#controller"];
|
|
9720
9952
|
for (const v of _2yr3eUBTP6cNcyaxKzAXWjFsnGzN_controller__array == null ? [] : _2yr3eUBTP6cNcyaxKzAXWjFsnGzN_controller__array.length === 1 && "@list" in _2yr3eUBTP6cNcyaxKzAXWjFsnGzN_controller__array[0] ? _2yr3eUBTP6cNcyaxKzAXWjFsnGzN_controller__array[0]["@list"] : _2yr3eUBTP6cNcyaxKzAXWjFsnGzN_controller__array) {
|
|
@@ -9739,7 +9971,11 @@ var Multikey = class {
|
|
|
9739
9971
|
...options,
|
|
9740
9972
|
baseUrl: values["@id"] == null ? options.baseUrl : new URL(values["@id"])
|
|
9741
9973
|
}) : void 0;
|
|
9742
|
-
if (typeof decoded === "undefined")
|
|
9974
|
+
if (typeof decoded === "undefined") {
|
|
9975
|
+
shouldCacheJsonLd = false;
|
|
9976
|
+
continue;
|
|
9977
|
+
}
|
|
9978
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
9743
9979
|
_2yr3eUBTP6cNcyaxKzAXWjFsnGzN_controller.push(decoded);
|
|
9744
9980
|
}
|
|
9745
9981
|
instance.#_2yr3eUBTP6cNcyaxKzAXWjFsnGzN_controller = _2yr3eUBTP6cNcyaxKzAXWjFsnGzN_controller;
|
|
@@ -9747,10 +9983,13 @@ var Multikey = class {
|
|
|
9747
9983
|
let _4XLHbsR2gLVWU3NpEqKt9wANzn4F_publicKeyMultibase__array = values["https://w3id.org/security#publicKeyMultibase"];
|
|
9748
9984
|
for (const v of _4XLHbsR2gLVWU3NpEqKt9wANzn4F_publicKeyMultibase__array == null ? [] : _4XLHbsR2gLVWU3NpEqKt9wANzn4F_publicKeyMultibase__array.length === 1 && "@list" in _4XLHbsR2gLVWU3NpEqKt9wANzn4F_publicKeyMultibase__array[0] ? _4XLHbsR2gLVWU3NpEqKt9wANzn4F_publicKeyMultibase__array[0]["@list"] : _4XLHbsR2gLVWU3NpEqKt9wANzn4F_publicKeyMultibase__array) {
|
|
9749
9985
|
if (v == null) continue;
|
|
9750
|
-
|
|
9986
|
+
const decoded = await (0, _fedify_vocab_runtime.importMultibaseKey)(v["@value"]);
|
|
9987
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
9988
|
+
_4XLHbsR2gLVWU3NpEqKt9wANzn4F_publicKeyMultibase.push(decoded);
|
|
9751
9989
|
}
|
|
9752
9990
|
instance.#_4XLHbsR2gLVWU3NpEqKt9wANzn4F_publicKeyMultibase = _4XLHbsR2gLVWU3NpEqKt9wANzn4F_publicKeyMultibase;
|
|
9753
|
-
|
|
9991
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
9992
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
9754
9993
|
instance._cachedJsonLd = structuredClone(json);
|
|
9755
9994
|
} catch {
|
|
9756
9995
|
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -9915,7 +10154,9 @@ var Accept = class Accept extends Activity {
|
|
|
9915
10154
|
_fromSubclass: true
|
|
9916
10155
|
});
|
|
9917
10156
|
if (!(instance instanceof Accept)) throw new TypeError("Unexpected type: " + instance.constructor.name);
|
|
9918
|
-
|
|
10157
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
10158
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
10159
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
9919
10160
|
instance._cachedJsonLd = structuredClone(json);
|
|
9920
10161
|
} catch {
|
|
9921
10162
|
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -10065,7 +10306,9 @@ var Add = class Add extends Activity {
|
|
|
10065
10306
|
_fromSubclass: true
|
|
10066
10307
|
});
|
|
10067
10308
|
if (!(instance instanceof Add)) throw new TypeError("Unexpected type: " + instance.constructor.name);
|
|
10068
|
-
|
|
10309
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
10310
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
10311
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
10069
10312
|
instance._cachedJsonLd = structuredClone(json);
|
|
10070
10313
|
} catch {
|
|
10071
10314
|
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -10233,7 +10476,9 @@ var Announce = class Announce extends Activity {
|
|
|
10233
10476
|
_fromSubclass: true
|
|
10234
10477
|
});
|
|
10235
10478
|
if (!(instance instanceof Announce)) throw new TypeError("Unexpected type: " + instance.constructor.name);
|
|
10236
|
-
|
|
10479
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
10480
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
10481
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
10237
10482
|
instance._cachedJsonLd = structuredClone(json);
|
|
10238
10483
|
} catch {
|
|
10239
10484
|
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -13098,12 +13343,17 @@ var Application = class Application extends Object$1 {
|
|
|
13098
13343
|
_fromSubclass: true
|
|
13099
13344
|
});
|
|
13100
13345
|
if (!(instance instanceof Application)) throw new TypeError("Unexpected type: " + instance.constructor.name);
|
|
13346
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
13101
13347
|
const _3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = [];
|
|
13102
13348
|
let _3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername__array = values["https://www.w3.org/ns/activitystreams#preferredUsername"];
|
|
13103
13349
|
for (const v of _3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername__array == null ? [] : _3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername__array.length === 1 && "@list" in _3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername__array[0] ? _3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername__array[0]["@list"] : _3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername__array) {
|
|
13104
13350
|
if (v == null) continue;
|
|
13105
|
-
const decoded = typeof v === "object" && "@value" in v && typeof v["@value"] === "string" && !("@language" in v) ? v["@value"] : typeof v === "object" && "@language" in v && "@value" in v && typeof v["@language"] === "string" && typeof v["@value"] === "string" ? new _fedify_vocab_runtime.LanguageString(v["@value"], v["@language"]) : void 0;
|
|
13106
|
-
if (typeof decoded === "undefined")
|
|
13351
|
+
const decoded = typeof v === "object" && "@value" in v && typeof v["@value"] === "string" && !("@language" in v) ? v["@value"] : typeof v === "object" && "@language" in v && "@value" in v && typeof v["@language"] === "string" && typeof v["@value"] === "string" && isValidLanguageTag(v["@language"]) ? new _fedify_vocab_runtime.LanguageString(v["@value"], v["@language"]) : void 0;
|
|
13352
|
+
if (typeof decoded === "undefined") {
|
|
13353
|
+
shouldCacheJsonLd = false;
|
|
13354
|
+
continue;
|
|
13355
|
+
}
|
|
13356
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
13107
13357
|
_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername.push(decoded);
|
|
13108
13358
|
}
|
|
13109
13359
|
instance.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = _3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername;
|
|
@@ -13115,10 +13365,12 @@ var Application = class Application extends Object$1 {
|
|
|
13115
13365
|
_axq166E2eZADq34V4MYUc8KMZdC_publicKey.push(!URL.canParse(v["@id"]) && v["@id"].startsWith("at://") ? new URL("at://" + encodeURIComponent(v["@id"].substring(5))) : new URL(v["@id"]));
|
|
13116
13366
|
continue;
|
|
13117
13367
|
}
|
|
13118
|
-
|
|
13368
|
+
const decoded = await CryptographicKey.fromJsonLd(v, {
|
|
13119
13369
|
...options,
|
|
13120
13370
|
baseUrl: values["@id"] == null ? options.baseUrl : new URL(values["@id"])
|
|
13121
|
-
})
|
|
13371
|
+
});
|
|
13372
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
13373
|
+
_axq166E2eZADq34V4MYUc8KMZdC_publicKey.push(decoded);
|
|
13122
13374
|
}
|
|
13123
13375
|
instance.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = _axq166E2eZADq34V4MYUc8KMZdC_publicKey;
|
|
13124
13376
|
const _4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = [];
|
|
@@ -13129,17 +13381,21 @@ var Application = class Application extends Object$1 {
|
|
|
13129
13381
|
_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.push(!URL.canParse(v["@id"]) && v["@id"].startsWith("at://") ? new URL("at://" + encodeURIComponent(v["@id"].substring(5))) : new URL(v["@id"]));
|
|
13130
13382
|
continue;
|
|
13131
13383
|
}
|
|
13132
|
-
|
|
13384
|
+
const decoded = await Multikey.fromJsonLd(v, {
|
|
13133
13385
|
...options,
|
|
13134
13386
|
baseUrl: values["@id"] == null ? options.baseUrl : new URL(values["@id"])
|
|
13135
|
-
})
|
|
13387
|
+
});
|
|
13388
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
13389
|
+
_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.push(decoded);
|
|
13136
13390
|
}
|
|
13137
13391
|
instance.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = _4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod;
|
|
13138
13392
|
const _36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = [];
|
|
13139
13393
|
let _36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers__array = values["https://www.w3.org/ns/activitystreams#manuallyApprovesFollowers"];
|
|
13140
13394
|
for (const v of _36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers__array == null ? [] : _36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers__array.length === 1 && "@list" in _36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers__array[0] ? _36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers__array[0]["@list"] : _36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers__array) {
|
|
13141
13395
|
if (v == null) continue;
|
|
13142
|
-
|
|
13396
|
+
const decoded = v["@value"];
|
|
13397
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
13398
|
+
_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers.push(decoded);
|
|
13143
13399
|
}
|
|
13144
13400
|
instance.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = _36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers;
|
|
13145
13401
|
const _3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox = [];
|
|
@@ -13157,7 +13413,11 @@ var Application = class Application extends Object$1 {
|
|
|
13157
13413
|
...options,
|
|
13158
13414
|
baseUrl: values["@id"] == null ? options.baseUrl : new URL(values["@id"])
|
|
13159
13415
|
}) : void 0;
|
|
13160
|
-
if (typeof decoded === "undefined")
|
|
13416
|
+
if (typeof decoded === "undefined") {
|
|
13417
|
+
shouldCacheJsonLd = false;
|
|
13418
|
+
continue;
|
|
13419
|
+
}
|
|
13420
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
13161
13421
|
_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox.push(decoded);
|
|
13162
13422
|
}
|
|
13163
13423
|
instance.#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox = _3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox;
|
|
@@ -13176,7 +13436,11 @@ var Application = class Application extends Object$1 {
|
|
|
13176
13436
|
...options,
|
|
13177
13437
|
baseUrl: values["@id"] == null ? options.baseUrl : new URL(values["@id"])
|
|
13178
13438
|
}) : void 0;
|
|
13179
|
-
if (typeof decoded === "undefined")
|
|
13439
|
+
if (typeof decoded === "undefined") {
|
|
13440
|
+
shouldCacheJsonLd = false;
|
|
13441
|
+
continue;
|
|
13442
|
+
}
|
|
13443
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
13180
13444
|
_41QwhqJouoLg3h8dRPKat21brynC_outbox.push(decoded);
|
|
13181
13445
|
}
|
|
13182
13446
|
instance.#_41QwhqJouoLg3h8dRPKat21brynC_outbox = _41QwhqJouoLg3h8dRPKat21brynC_outbox;
|
|
@@ -13188,10 +13452,12 @@ var Application = class Application extends Object$1 {
|
|
|
13188
13452
|
_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following.push(!URL.canParse(v["@id"]) && v["@id"].startsWith("at://") ? new URL("at://" + encodeURIComponent(v["@id"].substring(5))) : new URL(v["@id"]));
|
|
13189
13453
|
continue;
|
|
13190
13454
|
}
|
|
13191
|
-
|
|
13455
|
+
const decoded = await Collection.fromJsonLd(v, {
|
|
13192
13456
|
...options,
|
|
13193
13457
|
baseUrl: values["@id"] == null ? options.baseUrl : new URL(values["@id"])
|
|
13194
|
-
})
|
|
13458
|
+
});
|
|
13459
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
13460
|
+
_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following.push(decoded);
|
|
13195
13461
|
}
|
|
13196
13462
|
instance.#_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following = _3yAv8jymNfNuJUDuBzJ1NQhdbAee_following;
|
|
13197
13463
|
const _BBCTgfphhsFzpVfKTykGSpBNwoA_followers = [];
|
|
@@ -13202,10 +13468,12 @@ var Application = class Application extends Object$1 {
|
|
|
13202
13468
|
_BBCTgfphhsFzpVfKTykGSpBNwoA_followers.push(!URL.canParse(v["@id"]) && v["@id"].startsWith("at://") ? new URL("at://" + encodeURIComponent(v["@id"].substring(5))) : new URL(v["@id"]));
|
|
13203
13469
|
continue;
|
|
13204
13470
|
}
|
|
13205
|
-
|
|
13471
|
+
const decoded = await Collection.fromJsonLd(v, {
|
|
13206
13472
|
...options,
|
|
13207
13473
|
baseUrl: values["@id"] == null ? options.baseUrl : new URL(values["@id"])
|
|
13208
|
-
})
|
|
13474
|
+
});
|
|
13475
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
13476
|
+
_BBCTgfphhsFzpVfKTykGSpBNwoA_followers.push(decoded);
|
|
13209
13477
|
}
|
|
13210
13478
|
instance.#_BBCTgfphhsFzpVfKTykGSpBNwoA_followers = _BBCTgfphhsFzpVfKTykGSpBNwoA_followers;
|
|
13211
13479
|
const _3bgkPwJanyTCoVFM9ovRcus8tKkU_liked = [];
|
|
@@ -13216,10 +13484,12 @@ var Application = class Application extends Object$1 {
|
|
|
13216
13484
|
_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked.push(!URL.canParse(v["@id"]) && v["@id"].startsWith("at://") ? new URL("at://" + encodeURIComponent(v["@id"].substring(5))) : new URL(v["@id"]));
|
|
13217
13485
|
continue;
|
|
13218
13486
|
}
|
|
13219
|
-
|
|
13487
|
+
const decoded = await Collection.fromJsonLd(v, {
|
|
13220
13488
|
...options,
|
|
13221
13489
|
baseUrl: values["@id"] == null ? options.baseUrl : new URL(values["@id"])
|
|
13222
|
-
})
|
|
13490
|
+
});
|
|
13491
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
13492
|
+
_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked.push(decoded);
|
|
13223
13493
|
}
|
|
13224
13494
|
instance.#_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked = _3bgkPwJanyTCoVFM9ovRcus8tKkU_liked;
|
|
13225
13495
|
const _4N1vBJzXDf8NbBumeECQMFvKetja_featured = [];
|
|
@@ -13230,10 +13500,12 @@ var Application = class Application extends Object$1 {
|
|
|
13230
13500
|
_4N1vBJzXDf8NbBumeECQMFvKetja_featured.push(!URL.canParse(v["@id"]) && v["@id"].startsWith("at://") ? new URL("at://" + encodeURIComponent(v["@id"].substring(5))) : new URL(v["@id"]));
|
|
13231
13501
|
continue;
|
|
13232
13502
|
}
|
|
13233
|
-
|
|
13503
|
+
const decoded = await Collection.fromJsonLd(v, {
|
|
13234
13504
|
...options,
|
|
13235
13505
|
baseUrl: values["@id"] == null ? options.baseUrl : new URL(values["@id"])
|
|
13236
|
-
})
|
|
13506
|
+
});
|
|
13507
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
13508
|
+
_4N1vBJzXDf8NbBumeECQMFvKetja_featured.push(decoded);
|
|
13237
13509
|
}
|
|
13238
13510
|
instance.#_4N1vBJzXDf8NbBumeECQMFvKetja_featured = _4N1vBJzXDf8NbBumeECQMFvKetja_featured;
|
|
13239
13511
|
const _2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags = [];
|
|
@@ -13244,10 +13516,12 @@ var Application = class Application extends Object$1 {
|
|
|
13244
13516
|
_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags.push(!URL.canParse(v["@id"]) && v["@id"].startsWith("at://") ? new URL("at://" + encodeURIComponent(v["@id"].substring(5))) : new URL(v["@id"]));
|
|
13245
13517
|
continue;
|
|
13246
13518
|
}
|
|
13247
|
-
|
|
13519
|
+
const decoded = await Collection.fromJsonLd(v, {
|
|
13248
13520
|
...options,
|
|
13249
13521
|
baseUrl: values["@id"] == null ? options.baseUrl : new URL(values["@id"])
|
|
13250
|
-
})
|
|
13522
|
+
});
|
|
13523
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
13524
|
+
_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags.push(decoded);
|
|
13251
13525
|
}
|
|
13252
13526
|
instance.#_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags = _2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags;
|
|
13253
13527
|
const _3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = [];
|
|
@@ -13258,48 +13532,60 @@ var Application = class Application extends Object$1 {
|
|
|
13258
13532
|
_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.push(!URL.canParse(v["@id"]) && v["@id"].startsWith("at://") ? new URL("at://" + encodeURIComponent(v["@id"].substring(5))) : new URL(v["@id"]));
|
|
13259
13533
|
continue;
|
|
13260
13534
|
}
|
|
13261
|
-
|
|
13535
|
+
const decoded = await Collection.fromJsonLd(v, {
|
|
13262
13536
|
...options,
|
|
13263
13537
|
baseUrl: values["@id"] == null ? options.baseUrl : new URL(values["@id"])
|
|
13264
|
-
})
|
|
13538
|
+
});
|
|
13539
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
13540
|
+
_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.push(decoded);
|
|
13265
13541
|
}
|
|
13266
13542
|
instance.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = _3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams;
|
|
13267
13543
|
const _sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints = [];
|
|
13268
13544
|
let _sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints__array = values["https://www.w3.org/ns/activitystreams#endpoints"];
|
|
13269
13545
|
for (const v of _sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints__array == null ? [] : _sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints__array.length === 1 && "@list" in _sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints__array[0] ? _sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints__array[0]["@list"] : _sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints__array) {
|
|
13270
13546
|
if (v == null) continue;
|
|
13271
|
-
|
|
13547
|
+
const decoded = await Endpoints.fromJsonLd(v, {
|
|
13272
13548
|
...options,
|
|
13273
13549
|
baseUrl: values["@id"] == null ? options.baseUrl : new URL(values["@id"])
|
|
13274
|
-
})
|
|
13550
|
+
});
|
|
13551
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
13552
|
+
_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints.push(decoded);
|
|
13275
13553
|
}
|
|
13276
13554
|
instance.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints = _sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints;
|
|
13277
13555
|
const _gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable = [];
|
|
13278
13556
|
let _gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable__array = values["http://joinmastodon.org/ns#discoverable"];
|
|
13279
13557
|
for (const v of _gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable__array == null ? [] : _gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable__array.length === 1 && "@list" in _gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable__array[0] ? _gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable__array[0]["@list"] : _gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable__array) {
|
|
13280
13558
|
if (v == null) continue;
|
|
13281
|
-
|
|
13559
|
+
const decoded = v["@value"];
|
|
13560
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
13561
|
+
_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable.push(decoded);
|
|
13282
13562
|
}
|
|
13283
13563
|
instance.#_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable = _gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable;
|
|
13284
13564
|
const _2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended = [];
|
|
13285
13565
|
let _2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended__array = values["http://joinmastodon.org/ns#suspended"];
|
|
13286
13566
|
for (const v of _2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended__array == null ? [] : _2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended__array.length === 1 && "@list" in _2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended__array[0] ? _2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended__array[0]["@list"] : _2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended__array) {
|
|
13287
13567
|
if (v == null) continue;
|
|
13288
|
-
|
|
13568
|
+
const decoded = v["@value"];
|
|
13569
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
13570
|
+
_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended.push(decoded);
|
|
13289
13571
|
}
|
|
13290
13572
|
instance.#_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended = _2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended;
|
|
13291
13573
|
const _79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial = [];
|
|
13292
13574
|
let _79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial__array = values["http://joinmastodon.org/ns#memorial"];
|
|
13293
13575
|
for (const v of _79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial__array == null ? [] : _79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial__array.length === 1 && "@list" in _79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial__array[0] ? _79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial__array[0]["@list"] : _79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial__array) {
|
|
13294
13576
|
if (v == null) continue;
|
|
13295
|
-
|
|
13577
|
+
const decoded = v["@value"];
|
|
13578
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
13579
|
+
_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial.push(decoded);
|
|
13296
13580
|
}
|
|
13297
13581
|
instance.#_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial = _79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial;
|
|
13298
13582
|
const _2diCorzqPGQQqftp6e4SrCEwEnyk_indexable = [];
|
|
13299
13583
|
let _2diCorzqPGQQqftp6e4SrCEwEnyk_indexable__array = values["http://joinmastodon.org/ns#indexable"];
|
|
13300
13584
|
for (const v of _2diCorzqPGQQqftp6e4SrCEwEnyk_indexable__array == null ? [] : _2diCorzqPGQQqftp6e4SrCEwEnyk_indexable__array.length === 1 && "@list" in _2diCorzqPGQQqftp6e4SrCEwEnyk_indexable__array[0] ? _2diCorzqPGQQqftp6e4SrCEwEnyk_indexable__array[0]["@list"] : _2diCorzqPGQQqftp6e4SrCEwEnyk_indexable__array) {
|
|
13301
13585
|
if (v == null) continue;
|
|
13302
|
-
|
|
13586
|
+
const decoded = v["@value"];
|
|
13587
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
13588
|
+
_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable.push(decoded);
|
|
13303
13589
|
}
|
|
13304
13590
|
instance.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable = _2diCorzqPGQQqftp6e4SrCEwEnyk_indexable;
|
|
13305
13591
|
const _2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = [];
|
|
@@ -13326,7 +13612,11 @@ var Application = class Application extends Object$1 {
|
|
|
13326
13612
|
...options,
|
|
13327
13613
|
baseUrl: values["@id"] == null ? options.baseUrl : new URL(values["@id"])
|
|
13328
13614
|
}) : void 0;
|
|
13329
|
-
if (typeof decoded === "undefined")
|
|
13615
|
+
if (typeof decoded === "undefined") {
|
|
13616
|
+
shouldCacheJsonLd = false;
|
|
13617
|
+
continue;
|
|
13618
|
+
}
|
|
13619
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
13330
13620
|
_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo.push(decoded);
|
|
13331
13621
|
}
|
|
13332
13622
|
instance.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = _2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo;
|
|
@@ -13354,7 +13644,11 @@ var Application = class Application extends Object$1 {
|
|
|
13354
13644
|
...options,
|
|
13355
13645
|
baseUrl: values["@id"] == null ? options.baseUrl : new URL(values["@id"])
|
|
13356
13646
|
}) : void 0;
|
|
13357
|
-
if (typeof decoded === "undefined")
|
|
13647
|
+
if (typeof decoded === "undefined") {
|
|
13648
|
+
shouldCacheJsonLd = false;
|
|
13649
|
+
continue;
|
|
13650
|
+
}
|
|
13651
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
13358
13652
|
_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs.push(decoded);
|
|
13359
13653
|
}
|
|
13360
13654
|
instance.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = _3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs;
|
|
@@ -13366,27 +13660,34 @@ var Application = class Application extends Object$1 {
|
|
|
13366
13660
|
_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.push(!URL.canParse(v["@id"]) && v["@id"].startsWith("at://") ? new URL("at://" + encodeURIComponent(v["@id"].substring(5))) : new URL(v["@id"]));
|
|
13367
13661
|
continue;
|
|
13368
13662
|
}
|
|
13369
|
-
|
|
13663
|
+
const decoded = await DidService.fromJsonLd(v, {
|
|
13370
13664
|
...options,
|
|
13371
13665
|
baseUrl: values["@id"] == null ? options.baseUrl : new URL(values["@id"])
|
|
13372
|
-
})
|
|
13666
|
+
});
|
|
13667
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
13668
|
+
_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.push(decoded);
|
|
13373
13669
|
}
|
|
13374
13670
|
instance.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = _4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service;
|
|
13375
13671
|
const _QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage = [];
|
|
13376
13672
|
let _QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage__array = values["https://misskey-hub.net/ns#_misskey_followedMessage"];
|
|
13377
13673
|
for (const v of _QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage__array == null ? [] : _QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage__array.length === 1 && "@list" in _QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage__array[0] ? _QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage__array[0]["@list"] : _QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage__array) {
|
|
13378
13674
|
if (v == null) continue;
|
|
13379
|
-
|
|
13675
|
+
const decoded = v["@value"];
|
|
13676
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
13677
|
+
_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage.push(decoded);
|
|
13380
13678
|
}
|
|
13381
13679
|
instance.#_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage = _QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage;
|
|
13382
13680
|
const _2xEU4QtkC53RAun67T81Egqt9vmL_isCat = [];
|
|
13383
13681
|
let _2xEU4QtkC53RAun67T81Egqt9vmL_isCat__array = values["https://misskey-hub.net/ns#isCat"];
|
|
13384
13682
|
for (const v of _2xEU4QtkC53RAun67T81Egqt9vmL_isCat__array == null ? [] : _2xEU4QtkC53RAun67T81Egqt9vmL_isCat__array.length === 1 && "@list" in _2xEU4QtkC53RAun67T81Egqt9vmL_isCat__array[0] ? _2xEU4QtkC53RAun67T81Egqt9vmL_isCat__array[0]["@list"] : _2xEU4QtkC53RAun67T81Egqt9vmL_isCat__array) {
|
|
13385
13683
|
if (v == null) continue;
|
|
13386
|
-
|
|
13684
|
+
const decoded = v["@value"];
|
|
13685
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
13686
|
+
_2xEU4QtkC53RAun67T81Egqt9vmL_isCat.push(decoded);
|
|
13387
13687
|
}
|
|
13388
13688
|
instance.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat = _2xEU4QtkC53RAun67T81Egqt9vmL_isCat;
|
|
13389
|
-
|
|
13689
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
13690
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
13390
13691
|
instance._cachedJsonLd = structuredClone(json);
|
|
13391
13692
|
} catch {
|
|
13392
13693
|
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -13654,7 +13955,9 @@ var IntransitiveActivity = class IntransitiveActivity extends Activity {
|
|
|
13654
13955
|
_fromSubclass: true
|
|
13655
13956
|
});
|
|
13656
13957
|
if (!(instance instanceof IntransitiveActivity)) throw new TypeError("Unexpected type: " + instance.constructor.name);
|
|
13657
|
-
|
|
13958
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
13959
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
13960
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
13658
13961
|
instance._cachedJsonLd = structuredClone(json);
|
|
13659
13962
|
} catch {
|
|
13660
13963
|
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -13803,7 +14106,9 @@ var Arrive = class Arrive extends IntransitiveActivity {
|
|
|
13803
14106
|
_fromSubclass: true
|
|
13804
14107
|
});
|
|
13805
14108
|
if (!(instance instanceof Arrive)) throw new TypeError("Unexpected type: " + instance.constructor.name);
|
|
13806
|
-
|
|
14109
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
14110
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
14111
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
13807
14112
|
instance._cachedJsonLd = structuredClone(json);
|
|
13808
14113
|
} catch {
|
|
13809
14114
|
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -14038,16 +14343,20 @@ var Article = class Article extends Object$1 {
|
|
|
14038
14343
|
_fromSubclass: true
|
|
14039
14344
|
});
|
|
14040
14345
|
if (!(instance instanceof Article)) throw new TypeError("Unexpected type: " + instance.constructor.name);
|
|
14346
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
14041
14347
|
const _K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl = [];
|
|
14042
14348
|
let _K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl__array = values["https://www.w3.org/ns/activitystreams#quoteUrl"];
|
|
14043
14349
|
if (_K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl__array == null || _K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl__array.length < 1) _K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl__array = values["https://misskey-hub.net/ns#_misskey_quote"];
|
|
14044
14350
|
if (_K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl__array == null || _K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl__array.length < 1) _K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl__array = values["http://fedibird.com/ns#quoteUri"];
|
|
14045
14351
|
for (const v of _K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl__array == null ? [] : _K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl__array.length === 1 && "@list" in _K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl__array[0] ? _K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl__array[0]["@list"] : _K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl__array) {
|
|
14046
14352
|
if (v == null) continue;
|
|
14047
|
-
|
|
14353
|
+
const decoded = new URL(v["@value"]);
|
|
14354
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
14355
|
+
_K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl.push(decoded);
|
|
14048
14356
|
}
|
|
14049
14357
|
instance.#_K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl = _K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl;
|
|
14050
|
-
|
|
14358
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
14359
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
14051
14360
|
instance._cachedJsonLd = structuredClone(json);
|
|
14052
14361
|
} catch {
|
|
14053
14362
|
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -14271,21 +14580,27 @@ var Document = class Document extends Object$1 {
|
|
|
14271
14580
|
_fromSubclass: true
|
|
14272
14581
|
});
|
|
14273
14582
|
if (!(instance instanceof Document)) throw new TypeError("Unexpected type: " + instance.constructor.name);
|
|
14583
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
14274
14584
|
const _2e9AP7WdHBJYAgXG6GEyq7nSkNMe_width = [];
|
|
14275
14585
|
let _2e9AP7WdHBJYAgXG6GEyq7nSkNMe_width__array = values["https://www.w3.org/ns/activitystreams#width"];
|
|
14276
14586
|
for (const v of _2e9AP7WdHBJYAgXG6GEyq7nSkNMe_width__array == null ? [] : _2e9AP7WdHBJYAgXG6GEyq7nSkNMe_width__array.length === 1 && "@list" in _2e9AP7WdHBJYAgXG6GEyq7nSkNMe_width__array[0] ? _2e9AP7WdHBJYAgXG6GEyq7nSkNMe_width__array[0]["@list"] : _2e9AP7WdHBJYAgXG6GEyq7nSkNMe_width__array) {
|
|
14277
14587
|
if (v == null) continue;
|
|
14278
|
-
|
|
14588
|
+
const decoded = v["@value"];
|
|
14589
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
14590
|
+
_2e9AP7WdHBJYAgXG6GEyq7nSkNMe_width.push(decoded);
|
|
14279
14591
|
}
|
|
14280
14592
|
instance.#_2e9AP7WdHBJYAgXG6GEyq7nSkNMe_width = _2e9AP7WdHBJYAgXG6GEyq7nSkNMe_width;
|
|
14281
14593
|
const _2cGKFeFJMmiNpGZFEF75mCwFQsKb_height = [];
|
|
14282
14594
|
let _2cGKFeFJMmiNpGZFEF75mCwFQsKb_height__array = values["https://www.w3.org/ns/activitystreams#height"];
|
|
14283
14595
|
for (const v of _2cGKFeFJMmiNpGZFEF75mCwFQsKb_height__array == null ? [] : _2cGKFeFJMmiNpGZFEF75mCwFQsKb_height__array.length === 1 && "@list" in _2cGKFeFJMmiNpGZFEF75mCwFQsKb_height__array[0] ? _2cGKFeFJMmiNpGZFEF75mCwFQsKb_height__array[0]["@list"] : _2cGKFeFJMmiNpGZFEF75mCwFQsKb_height__array) {
|
|
14284
14596
|
if (v == null) continue;
|
|
14285
|
-
|
|
14597
|
+
const decoded = v["@value"];
|
|
14598
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
14599
|
+
_2cGKFeFJMmiNpGZFEF75mCwFQsKb_height.push(decoded);
|
|
14286
14600
|
}
|
|
14287
14601
|
instance.#_2cGKFeFJMmiNpGZFEF75mCwFQsKb_height = _2cGKFeFJMmiNpGZFEF75mCwFQsKb_height;
|
|
14288
|
-
|
|
14602
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
14603
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
14289
14604
|
instance._cachedJsonLd = structuredClone(json);
|
|
14290
14605
|
} catch {
|
|
14291
14606
|
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -14450,7 +14765,9 @@ var Audio = class Audio extends Document {
|
|
|
14450
14765
|
_fromSubclass: true
|
|
14451
14766
|
});
|
|
14452
14767
|
if (!(instance instanceof Audio)) throw new TypeError("Unexpected type: " + instance.constructor.name);
|
|
14453
|
-
|
|
14768
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
14769
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
14770
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
14454
14771
|
instance._cachedJsonLd = structuredClone(json);
|
|
14455
14772
|
} catch {
|
|
14456
14773
|
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -14599,7 +14916,9 @@ var Ignore = class Ignore extends Activity {
|
|
|
14599
14916
|
_fromSubclass: true
|
|
14600
14917
|
});
|
|
14601
14918
|
if (!(instance instanceof Ignore)) throw new TypeError("Unexpected type: " + instance.constructor.name);
|
|
14602
|
-
|
|
14919
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
14920
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
14921
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
14603
14922
|
instance._cachedJsonLd = structuredClone(json);
|
|
14604
14923
|
} catch {
|
|
14605
14924
|
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -14749,7 +15068,9 @@ var Block = class Block extends Ignore {
|
|
|
14749
15068
|
_fromSubclass: true
|
|
14750
15069
|
});
|
|
14751
15070
|
if (!(instance instanceof Block)) throw new TypeError("Unexpected type: " + instance.constructor.name);
|
|
14752
|
-
|
|
15071
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
15072
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
15073
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
14753
15074
|
instance._cachedJsonLd = structuredClone(json);
|
|
14754
15075
|
} catch {
|
|
14755
15076
|
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -16777,11 +17098,14 @@ var Collection = class Collection extends Object$1 {
|
|
|
16777
17098
|
_fromSubclass: true
|
|
16778
17099
|
});
|
|
16779
17100
|
if (!(instance instanceof Collection)) throw new TypeError("Unexpected type: " + instance.constructor.name);
|
|
17101
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
16780
17102
|
const _XDbmNDuWHmrhqH712zqtecdbv1V_totalItems = [];
|
|
16781
17103
|
let _XDbmNDuWHmrhqH712zqtecdbv1V_totalItems__array = values["https://www.w3.org/ns/activitystreams#totalItems"];
|
|
16782
17104
|
for (const v of _XDbmNDuWHmrhqH712zqtecdbv1V_totalItems__array == null ? [] : _XDbmNDuWHmrhqH712zqtecdbv1V_totalItems__array.length === 1 && "@list" in _XDbmNDuWHmrhqH712zqtecdbv1V_totalItems__array[0] ? _XDbmNDuWHmrhqH712zqtecdbv1V_totalItems__array[0]["@list"] : _XDbmNDuWHmrhqH712zqtecdbv1V_totalItems__array) {
|
|
16783
17105
|
if (v == null) continue;
|
|
16784
|
-
|
|
17106
|
+
const decoded = v["@value"];
|
|
17107
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
17108
|
+
_XDbmNDuWHmrhqH712zqtecdbv1V_totalItems.push(decoded);
|
|
16785
17109
|
}
|
|
16786
17110
|
instance.#_XDbmNDuWHmrhqH712zqtecdbv1V_totalItems = _XDbmNDuWHmrhqH712zqtecdbv1V_totalItems;
|
|
16787
17111
|
const _3UyUdxnyn6cDn53QKrh4MBiearma_current = [];
|
|
@@ -16792,10 +17116,12 @@ var Collection = class Collection extends Object$1 {
|
|
|
16792
17116
|
_3UyUdxnyn6cDn53QKrh4MBiearma_current.push(!URL.canParse(v["@id"]) && v["@id"].startsWith("at://") ? new URL("at://" + encodeURIComponent(v["@id"].substring(5))) : new URL(v["@id"]));
|
|
16793
17117
|
continue;
|
|
16794
17118
|
}
|
|
16795
|
-
|
|
17119
|
+
const decoded = await CollectionPage.fromJsonLd(v, {
|
|
16796
17120
|
...options,
|
|
16797
17121
|
baseUrl: values["@id"] == null ? options.baseUrl : new URL(values["@id"])
|
|
16798
|
-
})
|
|
17122
|
+
});
|
|
17123
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
17124
|
+
_3UyUdxnyn6cDn53QKrh4MBiearma_current.push(decoded);
|
|
16799
17125
|
}
|
|
16800
17126
|
instance.#_3UyUdxnyn6cDn53QKrh4MBiearma_current = _3UyUdxnyn6cDn53QKrh4MBiearma_current;
|
|
16801
17127
|
const _J52RqweMe6hhv7RnLJMC8BExTE5_first = [];
|
|
@@ -16806,10 +17132,12 @@ var Collection = class Collection extends Object$1 {
|
|
|
16806
17132
|
_J52RqweMe6hhv7RnLJMC8BExTE5_first.push(!URL.canParse(v["@id"]) && v["@id"].startsWith("at://") ? new URL("at://" + encodeURIComponent(v["@id"].substring(5))) : new URL(v["@id"]));
|
|
16807
17133
|
continue;
|
|
16808
17134
|
}
|
|
16809
|
-
|
|
17135
|
+
const decoded = await CollectionPage.fromJsonLd(v, {
|
|
16810
17136
|
...options,
|
|
16811
17137
|
baseUrl: values["@id"] == null ? options.baseUrl : new URL(values["@id"])
|
|
16812
|
-
})
|
|
17138
|
+
});
|
|
17139
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
17140
|
+
_J52RqweMe6hhv7RnLJMC8BExTE5_first.push(decoded);
|
|
16813
17141
|
}
|
|
16814
17142
|
instance.#_J52RqweMe6hhv7RnLJMC8BExTE5_first = _J52RqweMe6hhv7RnLJMC8BExTE5_first;
|
|
16815
17143
|
const _gyJJnyEFnuNVi1HFZKfAn3Hfn26_last = [];
|
|
@@ -16820,10 +17148,12 @@ var Collection = class Collection extends Object$1 {
|
|
|
16820
17148
|
_gyJJnyEFnuNVi1HFZKfAn3Hfn26_last.push(!URL.canParse(v["@id"]) && v["@id"].startsWith("at://") ? new URL("at://" + encodeURIComponent(v["@id"].substring(5))) : new URL(v["@id"]));
|
|
16821
17149
|
continue;
|
|
16822
17150
|
}
|
|
16823
|
-
|
|
17151
|
+
const decoded = await CollectionPage.fromJsonLd(v, {
|
|
16824
17152
|
...options,
|
|
16825
17153
|
baseUrl: values["@id"] == null ? options.baseUrl : new URL(values["@id"])
|
|
16826
|
-
})
|
|
17154
|
+
});
|
|
17155
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
17156
|
+
_gyJJnyEFnuNVi1HFZKfAn3Hfn26_last.push(decoded);
|
|
16827
17157
|
}
|
|
16828
17158
|
instance.#_gyJJnyEFnuNVi1HFZKfAn3Hfn26_last = _gyJJnyEFnuNVi1HFZKfAn3Hfn26_last;
|
|
16829
17159
|
const _2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items = [];
|
|
@@ -16901,7 +17231,11 @@ var Collection = class Collection extends Object$1 {
|
|
|
16901
17231
|
...options,
|
|
16902
17232
|
baseUrl: values["@id"] == null ? options.baseUrl : new URL(values["@id"])
|
|
16903
17233
|
}) : void 0;
|
|
16904
|
-
if (typeof decoded === "undefined")
|
|
17234
|
+
if (typeof decoded === "undefined") {
|
|
17235
|
+
shouldCacheJsonLd = false;
|
|
17236
|
+
continue;
|
|
17237
|
+
}
|
|
17238
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
16905
17239
|
_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items.push(decoded);
|
|
16906
17240
|
}
|
|
16907
17241
|
instance.#_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items = _2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items;
|
|
@@ -16913,10 +17247,12 @@ var Collection = class Collection extends Object$1 {
|
|
|
16913
17247
|
_4TB9Qd9ddtcZEpMfzbHhzafE6jaJ_likesOf.push(!URL.canParse(v["@id"]) && v["@id"].startsWith("at://") ? new URL("at://" + encodeURIComponent(v["@id"].substring(5))) : new URL(v["@id"]));
|
|
16914
17248
|
continue;
|
|
16915
17249
|
}
|
|
16916
|
-
|
|
17250
|
+
const decoded = await Object$1.fromJsonLd(v, {
|
|
16917
17251
|
...options,
|
|
16918
17252
|
baseUrl: values["@id"] == null ? options.baseUrl : new URL(values["@id"])
|
|
16919
|
-
})
|
|
17253
|
+
});
|
|
17254
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
17255
|
+
_4TB9Qd9ddtcZEpMfzbHhzafE6jaJ_likesOf.push(decoded);
|
|
16920
17256
|
}
|
|
16921
17257
|
instance.#_4TB9Qd9ddtcZEpMfzbHhzafE6jaJ_likesOf = _4TB9Qd9ddtcZEpMfzbHhzafE6jaJ_likesOf;
|
|
16922
17258
|
const _3manzgeKiPsugpztKGiaUUwJ3ito_sharesOf = [];
|
|
@@ -16927,10 +17263,12 @@ var Collection = class Collection extends Object$1 {
|
|
|
16927
17263
|
_3manzgeKiPsugpztKGiaUUwJ3ito_sharesOf.push(!URL.canParse(v["@id"]) && v["@id"].startsWith("at://") ? new URL("at://" + encodeURIComponent(v["@id"].substring(5))) : new URL(v["@id"]));
|
|
16928
17264
|
continue;
|
|
16929
17265
|
}
|
|
16930
|
-
|
|
17266
|
+
const decoded = await Object$1.fromJsonLd(v, {
|
|
16931
17267
|
...options,
|
|
16932
17268
|
baseUrl: values["@id"] == null ? options.baseUrl : new URL(values["@id"])
|
|
16933
|
-
})
|
|
17269
|
+
});
|
|
17270
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
17271
|
+
_3manzgeKiPsugpztKGiaUUwJ3ito_sharesOf.push(decoded);
|
|
16934
17272
|
}
|
|
16935
17273
|
instance.#_3manzgeKiPsugpztKGiaUUwJ3ito_sharesOf = _3manzgeKiPsugpztKGiaUUwJ3ito_sharesOf;
|
|
16936
17274
|
const _3T3oGm3twpcQUcrnMisXQtmDZ32X_repliesOf = [];
|
|
@@ -16941,10 +17279,12 @@ var Collection = class Collection extends Object$1 {
|
|
|
16941
17279
|
_3T3oGm3twpcQUcrnMisXQtmDZ32X_repliesOf.push(!URL.canParse(v["@id"]) && v["@id"].startsWith("at://") ? new URL("at://" + encodeURIComponent(v["@id"].substring(5))) : new URL(v["@id"]));
|
|
16942
17280
|
continue;
|
|
16943
17281
|
}
|
|
16944
|
-
|
|
17282
|
+
const decoded = await Object$1.fromJsonLd(v, {
|
|
16945
17283
|
...options,
|
|
16946
17284
|
baseUrl: values["@id"] == null ? options.baseUrl : new URL(values["@id"])
|
|
16947
|
-
})
|
|
17285
|
+
});
|
|
17286
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
17287
|
+
_3T3oGm3twpcQUcrnMisXQtmDZ32X_repliesOf.push(decoded);
|
|
16948
17288
|
}
|
|
16949
17289
|
instance.#_3T3oGm3twpcQUcrnMisXQtmDZ32X_repliesOf = _3T3oGm3twpcQUcrnMisXQtmDZ32X_repliesOf;
|
|
16950
17290
|
const _2bvRkAFZjMfVD8jiUWZJr5YokSeN_inboxOf = [];
|
|
@@ -16955,10 +17295,12 @@ var Collection = class Collection extends Object$1 {
|
|
|
16955
17295
|
_2bvRkAFZjMfVD8jiUWZJr5YokSeN_inboxOf.push(!URL.canParse(v["@id"]) && v["@id"].startsWith("at://") ? new URL("at://" + encodeURIComponent(v["@id"].substring(5))) : new URL(v["@id"]));
|
|
16956
17296
|
continue;
|
|
16957
17297
|
}
|
|
16958
|
-
|
|
17298
|
+
const decoded = await Object$1.fromJsonLd(v, {
|
|
16959
17299
|
...options,
|
|
16960
17300
|
baseUrl: values["@id"] == null ? options.baseUrl : new URL(values["@id"])
|
|
16961
|
-
})
|
|
17301
|
+
});
|
|
17302
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
17303
|
+
_2bvRkAFZjMfVD8jiUWZJr5YokSeN_inboxOf.push(decoded);
|
|
16962
17304
|
}
|
|
16963
17305
|
instance.#_2bvRkAFZjMfVD8jiUWZJr5YokSeN_inboxOf = _2bvRkAFZjMfVD8jiUWZJr5YokSeN_inboxOf;
|
|
16964
17306
|
const _4AHzVZDxHjK6uEWa9UiKHGK34yYm_outboxOf = [];
|
|
@@ -16969,10 +17311,12 @@ var Collection = class Collection extends Object$1 {
|
|
|
16969
17311
|
_4AHzVZDxHjK6uEWa9UiKHGK34yYm_outboxOf.push(!URL.canParse(v["@id"]) && v["@id"].startsWith("at://") ? new URL("at://" + encodeURIComponent(v["@id"].substring(5))) : new URL(v["@id"]));
|
|
16970
17312
|
continue;
|
|
16971
17313
|
}
|
|
16972
|
-
|
|
17314
|
+
const decoded = await Object$1.fromJsonLd(v, {
|
|
16973
17315
|
...options,
|
|
16974
17316
|
baseUrl: values["@id"] == null ? options.baseUrl : new URL(values["@id"])
|
|
16975
|
-
})
|
|
17317
|
+
});
|
|
17318
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
17319
|
+
_4AHzVZDxHjK6uEWa9UiKHGK34yYm_outboxOf.push(decoded);
|
|
16976
17320
|
}
|
|
16977
17321
|
instance.#_4AHzVZDxHjK6uEWa9UiKHGK34yYm_outboxOf = _4AHzVZDxHjK6uEWa9UiKHGK34yYm_outboxOf;
|
|
16978
17322
|
const _41aoZ5M6yRUHy3Zx8q6iuZQxtopb_followersOf = [];
|
|
@@ -16983,10 +17327,12 @@ var Collection = class Collection extends Object$1 {
|
|
|
16983
17327
|
_41aoZ5M6yRUHy3Zx8q6iuZQxtopb_followersOf.push(!URL.canParse(v["@id"]) && v["@id"].startsWith("at://") ? new URL("at://" + encodeURIComponent(v["@id"].substring(5))) : new URL(v["@id"]));
|
|
16984
17328
|
continue;
|
|
16985
17329
|
}
|
|
16986
|
-
|
|
17330
|
+
const decoded = await Object$1.fromJsonLd(v, {
|
|
16987
17331
|
...options,
|
|
16988
17332
|
baseUrl: values["@id"] == null ? options.baseUrl : new URL(values["@id"])
|
|
16989
|
-
})
|
|
17333
|
+
});
|
|
17334
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
17335
|
+
_41aoZ5M6yRUHy3Zx8q6iuZQxtopb_followersOf.push(decoded);
|
|
16990
17336
|
}
|
|
16991
17337
|
instance.#_41aoZ5M6yRUHy3Zx8q6iuZQxtopb_followersOf = _41aoZ5M6yRUHy3Zx8q6iuZQxtopb_followersOf;
|
|
16992
17338
|
const _2nXT2Ah42UjEEQF5oJQ39CbKB1xj_followingOf = [];
|
|
@@ -16997,10 +17343,12 @@ var Collection = class Collection extends Object$1 {
|
|
|
16997
17343
|
_2nXT2Ah42UjEEQF5oJQ39CbKB1xj_followingOf.push(!URL.canParse(v["@id"]) && v["@id"].startsWith("at://") ? new URL("at://" + encodeURIComponent(v["@id"].substring(5))) : new URL(v["@id"]));
|
|
16998
17344
|
continue;
|
|
16999
17345
|
}
|
|
17000
|
-
|
|
17346
|
+
const decoded = await Object$1.fromJsonLd(v, {
|
|
17001
17347
|
...options,
|
|
17002
17348
|
baseUrl: values["@id"] == null ? options.baseUrl : new URL(values["@id"])
|
|
17003
|
-
})
|
|
17349
|
+
});
|
|
17350
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
17351
|
+
_2nXT2Ah42UjEEQF5oJQ39CbKB1xj_followingOf.push(decoded);
|
|
17004
17352
|
}
|
|
17005
17353
|
instance.#_2nXT2Ah42UjEEQF5oJQ39CbKB1xj_followingOf = _2nXT2Ah42UjEEQF5oJQ39CbKB1xj_followingOf;
|
|
17006
17354
|
const _2bsySzmT3qEZcrnoe3tZ5xBjXSju_likedOf = [];
|
|
@@ -17011,13 +17359,16 @@ var Collection = class Collection extends Object$1 {
|
|
|
17011
17359
|
_2bsySzmT3qEZcrnoe3tZ5xBjXSju_likedOf.push(!URL.canParse(v["@id"]) && v["@id"].startsWith("at://") ? new URL("at://" + encodeURIComponent(v["@id"].substring(5))) : new URL(v["@id"]));
|
|
17012
17360
|
continue;
|
|
17013
17361
|
}
|
|
17014
|
-
|
|
17362
|
+
const decoded = await Object$1.fromJsonLd(v, {
|
|
17015
17363
|
...options,
|
|
17016
17364
|
baseUrl: values["@id"] == null ? options.baseUrl : new URL(values["@id"])
|
|
17017
|
-
})
|
|
17365
|
+
});
|
|
17366
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
17367
|
+
_2bsySzmT3qEZcrnoe3tZ5xBjXSju_likedOf.push(decoded);
|
|
17018
17368
|
}
|
|
17019
17369
|
instance.#_2bsySzmT3qEZcrnoe3tZ5xBjXSju_likedOf = _2bsySzmT3qEZcrnoe3tZ5xBjXSju_likedOf;
|
|
17020
|
-
|
|
17370
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
17371
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
17021
17372
|
instance._cachedJsonLd = structuredClone(json);
|
|
17022
17373
|
} catch {
|
|
17023
17374
|
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -17727,6 +18078,7 @@ var CollectionPage = class CollectionPage extends Collection {
|
|
|
17727
18078
|
_fromSubclass: true
|
|
17728
18079
|
});
|
|
17729
18080
|
if (!(instance instanceof CollectionPage)) throw new TypeError("Unexpected type: " + instance.constructor.name);
|
|
18081
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
17730
18082
|
const _2kWgBhQKjEauxx8C6qF3ZQamK4Le_partOf = [];
|
|
17731
18083
|
let _2kWgBhQKjEauxx8C6qF3ZQamK4Le_partOf__array = values["https://www.w3.org/ns/activitystreams#partOf"];
|
|
17732
18084
|
for (const v of _2kWgBhQKjEauxx8C6qF3ZQamK4Le_partOf__array == null ? [] : _2kWgBhQKjEauxx8C6qF3ZQamK4Le_partOf__array.length === 1 && "@list" in _2kWgBhQKjEauxx8C6qF3ZQamK4Le_partOf__array[0] ? _2kWgBhQKjEauxx8C6qF3ZQamK4Le_partOf__array[0]["@list"] : _2kWgBhQKjEauxx8C6qF3ZQamK4Le_partOf__array) {
|
|
@@ -17735,10 +18087,12 @@ var CollectionPage = class CollectionPage extends Collection {
|
|
|
17735
18087
|
_2kWgBhQKjEauxx8C6qF3ZQamK4Le_partOf.push(!URL.canParse(v["@id"]) && v["@id"].startsWith("at://") ? new URL("at://" + encodeURIComponent(v["@id"].substring(5))) : new URL(v["@id"]));
|
|
17736
18088
|
continue;
|
|
17737
18089
|
}
|
|
17738
|
-
|
|
18090
|
+
const decoded = await Collection.fromJsonLd(v, {
|
|
17739
18091
|
...options,
|
|
17740
18092
|
baseUrl: values["@id"] == null ? options.baseUrl : new URL(values["@id"])
|
|
17741
|
-
})
|
|
18093
|
+
});
|
|
18094
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
18095
|
+
_2kWgBhQKjEauxx8C6qF3ZQamK4Le_partOf.push(decoded);
|
|
17742
18096
|
}
|
|
17743
18097
|
instance.#_2kWgBhQKjEauxx8C6qF3ZQamK4Le_partOf = _2kWgBhQKjEauxx8C6qF3ZQamK4Le_partOf;
|
|
17744
18098
|
const _3BT4kQLcXhHx7TAWaNDKh8nFn9eY_next = [];
|
|
@@ -17749,10 +18103,12 @@ var CollectionPage = class CollectionPage extends Collection {
|
|
|
17749
18103
|
_3BT4kQLcXhHx7TAWaNDKh8nFn9eY_next.push(!URL.canParse(v["@id"]) && v["@id"].startsWith("at://") ? new URL("at://" + encodeURIComponent(v["@id"].substring(5))) : new URL(v["@id"]));
|
|
17750
18104
|
continue;
|
|
17751
18105
|
}
|
|
17752
|
-
|
|
18106
|
+
const decoded = await CollectionPage.fromJsonLd(v, {
|
|
17753
18107
|
...options,
|
|
17754
18108
|
baseUrl: values["@id"] == null ? options.baseUrl : new URL(values["@id"])
|
|
17755
|
-
})
|
|
18109
|
+
});
|
|
18110
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
18111
|
+
_3BT4kQLcXhHx7TAWaNDKh8nFn9eY_next.push(decoded);
|
|
17756
18112
|
}
|
|
17757
18113
|
instance.#_3BT4kQLcXhHx7TAWaNDKh8nFn9eY_next = _3BT4kQLcXhHx7TAWaNDKh8nFn9eY_next;
|
|
17758
18114
|
const _3b8yG8tDNzQFFEnWhCc13G8eHooA_prev = [];
|
|
@@ -17763,13 +18119,16 @@ var CollectionPage = class CollectionPage extends Collection {
|
|
|
17763
18119
|
_3b8yG8tDNzQFFEnWhCc13G8eHooA_prev.push(!URL.canParse(v["@id"]) && v["@id"].startsWith("at://") ? new URL("at://" + encodeURIComponent(v["@id"].substring(5))) : new URL(v["@id"]));
|
|
17764
18120
|
continue;
|
|
17765
18121
|
}
|
|
17766
|
-
|
|
18122
|
+
const decoded = await CollectionPage.fromJsonLd(v, {
|
|
17767
18123
|
...options,
|
|
17768
18124
|
baseUrl: values["@id"] == null ? options.baseUrl : new URL(values["@id"])
|
|
17769
|
-
})
|
|
18125
|
+
});
|
|
18126
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
18127
|
+
_3b8yG8tDNzQFFEnWhCc13G8eHooA_prev.push(decoded);
|
|
17770
18128
|
}
|
|
17771
18129
|
instance.#_3b8yG8tDNzQFFEnWhCc13G8eHooA_prev = _3b8yG8tDNzQFFEnWhCc13G8eHooA_prev;
|
|
17772
|
-
|
|
18130
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
18131
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
17773
18132
|
instance._cachedJsonLd = structuredClone(json);
|
|
17774
18133
|
} catch {
|
|
17775
18134
|
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -17952,7 +18311,9 @@ var Create = class Create extends Activity {
|
|
|
17952
18311
|
_fromSubclass: true
|
|
17953
18312
|
});
|
|
17954
18313
|
if (!(instance instanceof Create)) throw new TypeError("Unexpected type: " + instance.constructor.name);
|
|
17955
|
-
|
|
18314
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
18315
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
18316
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
17956
18317
|
instance._cachedJsonLd = structuredClone(json);
|
|
17957
18318
|
} catch {
|
|
17958
18319
|
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -18116,7 +18477,9 @@ var Delete = class Delete extends Activity {
|
|
|
18116
18477
|
_fromSubclass: true
|
|
18117
18478
|
});
|
|
18118
18479
|
if (!(instance instanceof Delete)) throw new TypeError("Unexpected type: " + instance.constructor.name);
|
|
18119
|
-
|
|
18480
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
18481
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
18482
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
18120
18483
|
instance._cachedJsonLd = structuredClone(json);
|
|
18121
18484
|
} catch {
|
|
18122
18485
|
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -18267,7 +18630,9 @@ var Dislike = class Dislike extends Activity {
|
|
|
18267
18630
|
_fromSubclass: true
|
|
18268
18631
|
});
|
|
18269
18632
|
if (!(instance instanceof Dislike)) throw new TypeError("Unexpected type: " + instance.constructor.name);
|
|
18270
|
-
|
|
18633
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
18634
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
18635
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
18271
18636
|
instance._cachedJsonLd = structuredClone(json);
|
|
18272
18637
|
} catch {
|
|
18273
18638
|
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -18292,6 +18657,7 @@ var Endpoints = class {
|
|
|
18292
18657
|
#tracerProvider;
|
|
18293
18658
|
#warning;
|
|
18294
18659
|
#cachedJsonLd;
|
|
18660
|
+
#shouldCacheJsonLd = true;
|
|
18295
18661
|
id;
|
|
18296
18662
|
get _documentLoader() {
|
|
18297
18663
|
return this.#documentLoader;
|
|
@@ -18311,6 +18677,17 @@ var Endpoints = class {
|
|
|
18311
18677
|
set _cachedJsonLd(value) {
|
|
18312
18678
|
this.#cachedJsonLd = value;
|
|
18313
18679
|
}
|
|
18680
|
+
get _shouldCacheJsonLd() {
|
|
18681
|
+
return this.#shouldCacheJsonLd;
|
|
18682
|
+
}
|
|
18683
|
+
set _shouldCacheJsonLd(value) {
|
|
18684
|
+
this.#shouldCacheJsonLd = value;
|
|
18685
|
+
}
|
|
18686
|
+
static _shouldCacheDecodedJsonLd(value) {
|
|
18687
|
+
if (value == null || typeof value !== "object") return true;
|
|
18688
|
+
if (!("_shouldCacheJsonLd" in value)) return true;
|
|
18689
|
+
return value._shouldCacheJsonLd;
|
|
18690
|
+
}
|
|
18314
18691
|
/**
|
|
18315
18692
|
* The type URI of {@link Endpoints}: `https://www.w3.org/ns/activitystreams#Endpoints`.
|
|
18316
18693
|
*/
|
|
@@ -18609,49 +18986,63 @@ var Endpoints = class {
|
|
|
18609
18986
|
if (!values["@type"].includes("https://www.w3.org/ns/activitystreams#Endpoints")) throw new TypeError("Invalid type: " + values["@type"]);
|
|
18610
18987
|
}
|
|
18611
18988
|
const instance = new this({ id: "@id" in values ? new URL(values["@id"]) : void 0 }, options);
|
|
18989
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
18612
18990
|
const _2JCYDbSxEHCCLdBYed33cCETfGyR_proxyUrl = [];
|
|
18613
18991
|
let _2JCYDbSxEHCCLdBYed33cCETfGyR_proxyUrl__array = values["https://www.w3.org/ns/activitystreams#proxyUrl"];
|
|
18614
18992
|
for (const v of _2JCYDbSxEHCCLdBYed33cCETfGyR_proxyUrl__array == null ? [] : _2JCYDbSxEHCCLdBYed33cCETfGyR_proxyUrl__array.length === 1 && "@list" in _2JCYDbSxEHCCLdBYed33cCETfGyR_proxyUrl__array[0] ? _2JCYDbSxEHCCLdBYed33cCETfGyR_proxyUrl__array[0]["@list"] : _2JCYDbSxEHCCLdBYed33cCETfGyR_proxyUrl__array) {
|
|
18615
18993
|
if (v == null) continue;
|
|
18616
|
-
|
|
18994
|
+
const decoded = v["@id"].startsWith("at://") ? new URL("at://" + encodeURIComponent(v["@id"].includes("/", 5) ? v["@id"].slice(5, v["@id"].indexOf("/", 5)) : v["@id"].slice(5)) + (v["@id"].includes("/", 5) ? v["@id"].slice(v["@id"].indexOf("/", 5)) : "")) : URL.canParse(v["@id"]) && (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) ? new URL(v["@id"]) : new URL(v["@id"], values["@id"] == null ? options.baseUrl : new URL(values["@id"]));
|
|
18995
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
18996
|
+
_2JCYDbSxEHCCLdBYed33cCETfGyR_proxyUrl.push(decoded);
|
|
18617
18997
|
}
|
|
18618
18998
|
instance.#_2JCYDbSxEHCCLdBYed33cCETfGyR_proxyUrl = _2JCYDbSxEHCCLdBYed33cCETfGyR_proxyUrl;
|
|
18619
18999
|
const _25S6UmgzDead8hxL5sQFezZTAusd_oauthAuthorizationEndpoint = [];
|
|
18620
19000
|
let _25S6UmgzDead8hxL5sQFezZTAusd_oauthAuthorizationEndpoint__array = values["https://www.w3.org/ns/activitystreams#oauthAuthorizationEndpoint"];
|
|
18621
19001
|
for (const v of _25S6UmgzDead8hxL5sQFezZTAusd_oauthAuthorizationEndpoint__array == null ? [] : _25S6UmgzDead8hxL5sQFezZTAusd_oauthAuthorizationEndpoint__array.length === 1 && "@list" in _25S6UmgzDead8hxL5sQFezZTAusd_oauthAuthorizationEndpoint__array[0] ? _25S6UmgzDead8hxL5sQFezZTAusd_oauthAuthorizationEndpoint__array[0]["@list"] : _25S6UmgzDead8hxL5sQFezZTAusd_oauthAuthorizationEndpoint__array) {
|
|
18622
19002
|
if (v == null) continue;
|
|
18623
|
-
|
|
19003
|
+
const decoded = v["@id"].startsWith("at://") ? new URL("at://" + encodeURIComponent(v["@id"].includes("/", 5) ? v["@id"].slice(5, v["@id"].indexOf("/", 5)) : v["@id"].slice(5)) + (v["@id"].includes("/", 5) ? v["@id"].slice(v["@id"].indexOf("/", 5)) : "")) : URL.canParse(v["@id"]) && (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) ? new URL(v["@id"]) : new URL(v["@id"], values["@id"] == null ? options.baseUrl : new URL(values["@id"]));
|
|
19004
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
19005
|
+
_25S6UmgzDead8hxL5sQFezZTAusd_oauthAuthorizationEndpoint.push(decoded);
|
|
18624
19006
|
}
|
|
18625
19007
|
instance.#_25S6UmgzDead8hxL5sQFezZTAusd_oauthAuthorizationEndpoint = _25S6UmgzDead8hxL5sQFezZTAusd_oauthAuthorizationEndpoint;
|
|
18626
19008
|
const _iAMxqrSba7yBCRB1FZ5kEVdKEZ3_oauthTokenEndpoint = [];
|
|
18627
19009
|
let _iAMxqrSba7yBCRB1FZ5kEVdKEZ3_oauthTokenEndpoint__array = values["https://www.w3.org/ns/activitystreams#oauthTokenEndpoint"];
|
|
18628
19010
|
for (const v of _iAMxqrSba7yBCRB1FZ5kEVdKEZ3_oauthTokenEndpoint__array == null ? [] : _iAMxqrSba7yBCRB1FZ5kEVdKEZ3_oauthTokenEndpoint__array.length === 1 && "@list" in _iAMxqrSba7yBCRB1FZ5kEVdKEZ3_oauthTokenEndpoint__array[0] ? _iAMxqrSba7yBCRB1FZ5kEVdKEZ3_oauthTokenEndpoint__array[0]["@list"] : _iAMxqrSba7yBCRB1FZ5kEVdKEZ3_oauthTokenEndpoint__array) {
|
|
18629
19011
|
if (v == null) continue;
|
|
18630
|
-
|
|
19012
|
+
const decoded = v["@id"].startsWith("at://") ? new URL("at://" + encodeURIComponent(v["@id"].includes("/", 5) ? v["@id"].slice(5, v["@id"].indexOf("/", 5)) : v["@id"].slice(5)) + (v["@id"].includes("/", 5) ? v["@id"].slice(v["@id"].indexOf("/", 5)) : "")) : URL.canParse(v["@id"]) && (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) ? new URL(v["@id"]) : new URL(v["@id"], values["@id"] == null ? options.baseUrl : new URL(values["@id"]));
|
|
19013
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
19014
|
+
_iAMxqrSba7yBCRB1FZ5kEVdKEZ3_oauthTokenEndpoint.push(decoded);
|
|
18631
19015
|
}
|
|
18632
19016
|
instance.#_iAMxqrSba7yBCRB1FZ5kEVdKEZ3_oauthTokenEndpoint = _iAMxqrSba7yBCRB1FZ5kEVdKEZ3_oauthTokenEndpoint;
|
|
18633
19017
|
const _8Bx9qN8oU7Bpt2xi6khaxWp1gMr_provideClientKey = [];
|
|
18634
19018
|
let _8Bx9qN8oU7Bpt2xi6khaxWp1gMr_provideClientKey__array = values["https://www.w3.org/ns/activitystreams#provideClientKey"];
|
|
18635
19019
|
for (const v of _8Bx9qN8oU7Bpt2xi6khaxWp1gMr_provideClientKey__array == null ? [] : _8Bx9qN8oU7Bpt2xi6khaxWp1gMr_provideClientKey__array.length === 1 && "@list" in _8Bx9qN8oU7Bpt2xi6khaxWp1gMr_provideClientKey__array[0] ? _8Bx9qN8oU7Bpt2xi6khaxWp1gMr_provideClientKey__array[0]["@list"] : _8Bx9qN8oU7Bpt2xi6khaxWp1gMr_provideClientKey__array) {
|
|
18636
19020
|
if (v == null) continue;
|
|
18637
|
-
|
|
19021
|
+
const decoded = v["@id"].startsWith("at://") ? new URL("at://" + encodeURIComponent(v["@id"].includes("/", 5) ? v["@id"].slice(5, v["@id"].indexOf("/", 5)) : v["@id"].slice(5)) + (v["@id"].includes("/", 5) ? v["@id"].slice(v["@id"].indexOf("/", 5)) : "")) : URL.canParse(v["@id"]) && (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) ? new URL(v["@id"]) : new URL(v["@id"], values["@id"] == null ? options.baseUrl : new URL(values["@id"]));
|
|
19022
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
19023
|
+
_8Bx9qN8oU7Bpt2xi6khaxWp1gMr_provideClientKey.push(decoded);
|
|
18638
19024
|
}
|
|
18639
19025
|
instance.#_8Bx9qN8oU7Bpt2xi6khaxWp1gMr_provideClientKey = _8Bx9qN8oU7Bpt2xi6khaxWp1gMr_provideClientKey;
|
|
18640
19026
|
const _3dU7PMVQZJpsCpo2F4RQXxBXdPmS_signClientKey = [];
|
|
18641
19027
|
let _3dU7PMVQZJpsCpo2F4RQXxBXdPmS_signClientKey__array = values["https://www.w3.org/ns/activitystreams#signClientKey"];
|
|
18642
19028
|
for (const v of _3dU7PMVQZJpsCpo2F4RQXxBXdPmS_signClientKey__array == null ? [] : _3dU7PMVQZJpsCpo2F4RQXxBXdPmS_signClientKey__array.length === 1 && "@list" in _3dU7PMVQZJpsCpo2F4RQXxBXdPmS_signClientKey__array[0] ? _3dU7PMVQZJpsCpo2F4RQXxBXdPmS_signClientKey__array[0]["@list"] : _3dU7PMVQZJpsCpo2F4RQXxBXdPmS_signClientKey__array) {
|
|
18643
19029
|
if (v == null) continue;
|
|
18644
|
-
|
|
19030
|
+
const decoded = v["@id"].startsWith("at://") ? new URL("at://" + encodeURIComponent(v["@id"].includes("/", 5) ? v["@id"].slice(5, v["@id"].indexOf("/", 5)) : v["@id"].slice(5)) + (v["@id"].includes("/", 5) ? v["@id"].slice(v["@id"].indexOf("/", 5)) : "")) : URL.canParse(v["@id"]) && (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) ? new URL(v["@id"]) : new URL(v["@id"], values["@id"] == null ? options.baseUrl : new URL(values["@id"]));
|
|
19031
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
19032
|
+
_3dU7PMVQZJpsCpo2F4RQXxBXdPmS_signClientKey.push(decoded);
|
|
18645
19033
|
}
|
|
18646
19034
|
instance.#_3dU7PMVQZJpsCpo2F4RQXxBXdPmS_signClientKey = _3dU7PMVQZJpsCpo2F4RQXxBXdPmS_signClientKey;
|
|
18647
19035
|
const _3JprUSDLVqqX4dwHRi37qGZZCRCc_sharedInbox = [];
|
|
18648
19036
|
let _3JprUSDLVqqX4dwHRi37qGZZCRCc_sharedInbox__array = values["https://www.w3.org/ns/activitystreams#sharedInbox"];
|
|
18649
19037
|
for (const v of _3JprUSDLVqqX4dwHRi37qGZZCRCc_sharedInbox__array == null ? [] : _3JprUSDLVqqX4dwHRi37qGZZCRCc_sharedInbox__array.length === 1 && "@list" in _3JprUSDLVqqX4dwHRi37qGZZCRCc_sharedInbox__array[0] ? _3JprUSDLVqqX4dwHRi37qGZZCRCc_sharedInbox__array[0]["@list"] : _3JprUSDLVqqX4dwHRi37qGZZCRCc_sharedInbox__array) {
|
|
18650
19038
|
if (v == null) continue;
|
|
18651
|
-
|
|
19039
|
+
const decoded = v["@id"].startsWith("at://") ? new URL("at://" + encodeURIComponent(v["@id"].includes("/", 5) ? v["@id"].slice(5, v["@id"].indexOf("/", 5)) : v["@id"].slice(5)) + (v["@id"].includes("/", 5) ? v["@id"].slice(v["@id"].indexOf("/", 5)) : "")) : URL.canParse(v["@id"]) && (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) ? new URL(v["@id"]) : new URL(v["@id"], values["@id"] == null ? options.baseUrl : new URL(values["@id"]));
|
|
19040
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
19041
|
+
_3JprUSDLVqqX4dwHRi37qGZZCRCc_sharedInbox.push(decoded);
|
|
18652
19042
|
}
|
|
18653
19043
|
instance.#_3JprUSDLVqqX4dwHRi37qGZZCRCc_sharedInbox = _3JprUSDLVqqX4dwHRi37qGZZCRCc_sharedInbox;
|
|
18654
|
-
|
|
19044
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
19045
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
18655
19046
|
instance._cachedJsonLd = structuredClone(json);
|
|
18656
19047
|
} catch {
|
|
18657
19048
|
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -18840,7 +19231,9 @@ var Event = class Event extends Object$1 {
|
|
|
18840
19231
|
_fromSubclass: true
|
|
18841
19232
|
});
|
|
18842
19233
|
if (!(instance instanceof Event)) throw new TypeError("Unexpected type: " + instance.constructor.name);
|
|
18843
|
-
|
|
19234
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
19235
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
19236
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
18844
19237
|
instance._cachedJsonLd = structuredClone(json);
|
|
18845
19238
|
} catch {
|
|
18846
19239
|
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -18989,7 +19382,9 @@ var Flag = class Flag extends Activity {
|
|
|
18989
19382
|
_fromSubclass: true
|
|
18990
19383
|
});
|
|
18991
19384
|
if (!(instance instanceof Flag)) throw new TypeError("Unexpected type: " + instance.constructor.name);
|
|
18992
|
-
|
|
19385
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
19386
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
19387
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
18993
19388
|
instance._cachedJsonLd = structuredClone(json);
|
|
18994
19389
|
} catch {
|
|
18995
19390
|
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -19142,7 +19537,9 @@ var Follow = class Follow extends Activity {
|
|
|
19142
19537
|
_fromSubclass: true
|
|
19143
19538
|
});
|
|
19144
19539
|
if (!(instance instanceof Follow)) throw new TypeError("Unexpected type: " + instance.constructor.name);
|
|
19145
|
-
|
|
19540
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
19541
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
19542
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
19146
19543
|
instance._cachedJsonLd = structuredClone(json);
|
|
19147
19544
|
} catch {
|
|
19148
19545
|
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -22007,12 +22404,17 @@ var Group = class Group extends Object$1 {
|
|
|
22007
22404
|
_fromSubclass: true
|
|
22008
22405
|
});
|
|
22009
22406
|
if (!(instance instanceof Group)) throw new TypeError("Unexpected type: " + instance.constructor.name);
|
|
22407
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
22010
22408
|
const _3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = [];
|
|
22011
22409
|
let _3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername__array = values["https://www.w3.org/ns/activitystreams#preferredUsername"];
|
|
22012
22410
|
for (const v of _3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername__array == null ? [] : _3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername__array.length === 1 && "@list" in _3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername__array[0] ? _3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername__array[0]["@list"] : _3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername__array) {
|
|
22013
22411
|
if (v == null) continue;
|
|
22014
|
-
const decoded = typeof v === "object" && "@value" in v && typeof v["@value"] === "string" && !("@language" in v) ? v["@value"] : typeof v === "object" && "@language" in v && "@value" in v && typeof v["@language"] === "string" && typeof v["@value"] === "string" ? new _fedify_vocab_runtime.LanguageString(v["@value"], v["@language"]) : void 0;
|
|
22015
|
-
if (typeof decoded === "undefined")
|
|
22412
|
+
const decoded = typeof v === "object" && "@value" in v && typeof v["@value"] === "string" && !("@language" in v) ? v["@value"] : typeof v === "object" && "@language" in v && "@value" in v && typeof v["@language"] === "string" && typeof v["@value"] === "string" && isValidLanguageTag(v["@language"]) ? new _fedify_vocab_runtime.LanguageString(v["@value"], v["@language"]) : void 0;
|
|
22413
|
+
if (typeof decoded === "undefined") {
|
|
22414
|
+
shouldCacheJsonLd = false;
|
|
22415
|
+
continue;
|
|
22416
|
+
}
|
|
22417
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
22016
22418
|
_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername.push(decoded);
|
|
22017
22419
|
}
|
|
22018
22420
|
instance.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = _3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername;
|
|
@@ -22024,10 +22426,12 @@ var Group = class Group extends Object$1 {
|
|
|
22024
22426
|
_axq166E2eZADq34V4MYUc8KMZdC_publicKey.push(!URL.canParse(v["@id"]) && v["@id"].startsWith("at://") ? new URL("at://" + encodeURIComponent(v["@id"].substring(5))) : new URL(v["@id"]));
|
|
22025
22427
|
continue;
|
|
22026
22428
|
}
|
|
22027
|
-
|
|
22429
|
+
const decoded = await CryptographicKey.fromJsonLd(v, {
|
|
22028
22430
|
...options,
|
|
22029
22431
|
baseUrl: values["@id"] == null ? options.baseUrl : new URL(values["@id"])
|
|
22030
|
-
})
|
|
22432
|
+
});
|
|
22433
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
22434
|
+
_axq166E2eZADq34V4MYUc8KMZdC_publicKey.push(decoded);
|
|
22031
22435
|
}
|
|
22032
22436
|
instance.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = _axq166E2eZADq34V4MYUc8KMZdC_publicKey;
|
|
22033
22437
|
const _4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = [];
|
|
@@ -22038,17 +22442,21 @@ var Group = class Group extends Object$1 {
|
|
|
22038
22442
|
_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.push(!URL.canParse(v["@id"]) && v["@id"].startsWith("at://") ? new URL("at://" + encodeURIComponent(v["@id"].substring(5))) : new URL(v["@id"]));
|
|
22039
22443
|
continue;
|
|
22040
22444
|
}
|
|
22041
|
-
|
|
22445
|
+
const decoded = await Multikey.fromJsonLd(v, {
|
|
22042
22446
|
...options,
|
|
22043
22447
|
baseUrl: values["@id"] == null ? options.baseUrl : new URL(values["@id"])
|
|
22044
|
-
})
|
|
22448
|
+
});
|
|
22449
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
22450
|
+
_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.push(decoded);
|
|
22045
22451
|
}
|
|
22046
22452
|
instance.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = _4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod;
|
|
22047
22453
|
const _36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = [];
|
|
22048
22454
|
let _36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers__array = values["https://www.w3.org/ns/activitystreams#manuallyApprovesFollowers"];
|
|
22049
22455
|
for (const v of _36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers__array == null ? [] : _36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers__array.length === 1 && "@list" in _36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers__array[0] ? _36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers__array[0]["@list"] : _36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers__array) {
|
|
22050
22456
|
if (v == null) continue;
|
|
22051
|
-
|
|
22457
|
+
const decoded = v["@value"];
|
|
22458
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
22459
|
+
_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers.push(decoded);
|
|
22052
22460
|
}
|
|
22053
22461
|
instance.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = _36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers;
|
|
22054
22462
|
const _3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox = [];
|
|
@@ -22066,7 +22474,11 @@ var Group = class Group extends Object$1 {
|
|
|
22066
22474
|
...options,
|
|
22067
22475
|
baseUrl: values["@id"] == null ? options.baseUrl : new URL(values["@id"])
|
|
22068
22476
|
}) : void 0;
|
|
22069
|
-
if (typeof decoded === "undefined")
|
|
22477
|
+
if (typeof decoded === "undefined") {
|
|
22478
|
+
shouldCacheJsonLd = false;
|
|
22479
|
+
continue;
|
|
22480
|
+
}
|
|
22481
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
22070
22482
|
_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox.push(decoded);
|
|
22071
22483
|
}
|
|
22072
22484
|
instance.#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox = _3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox;
|
|
@@ -22085,7 +22497,11 @@ var Group = class Group extends Object$1 {
|
|
|
22085
22497
|
...options,
|
|
22086
22498
|
baseUrl: values["@id"] == null ? options.baseUrl : new URL(values["@id"])
|
|
22087
22499
|
}) : void 0;
|
|
22088
|
-
if (typeof decoded === "undefined")
|
|
22500
|
+
if (typeof decoded === "undefined") {
|
|
22501
|
+
shouldCacheJsonLd = false;
|
|
22502
|
+
continue;
|
|
22503
|
+
}
|
|
22504
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
22089
22505
|
_41QwhqJouoLg3h8dRPKat21brynC_outbox.push(decoded);
|
|
22090
22506
|
}
|
|
22091
22507
|
instance.#_41QwhqJouoLg3h8dRPKat21brynC_outbox = _41QwhqJouoLg3h8dRPKat21brynC_outbox;
|
|
@@ -22097,10 +22513,12 @@ var Group = class Group extends Object$1 {
|
|
|
22097
22513
|
_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following.push(!URL.canParse(v["@id"]) && v["@id"].startsWith("at://") ? new URL("at://" + encodeURIComponent(v["@id"].substring(5))) : new URL(v["@id"]));
|
|
22098
22514
|
continue;
|
|
22099
22515
|
}
|
|
22100
|
-
|
|
22516
|
+
const decoded = await Collection.fromJsonLd(v, {
|
|
22101
22517
|
...options,
|
|
22102
22518
|
baseUrl: values["@id"] == null ? options.baseUrl : new URL(values["@id"])
|
|
22103
|
-
})
|
|
22519
|
+
});
|
|
22520
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
22521
|
+
_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following.push(decoded);
|
|
22104
22522
|
}
|
|
22105
22523
|
instance.#_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following = _3yAv8jymNfNuJUDuBzJ1NQhdbAee_following;
|
|
22106
22524
|
const _BBCTgfphhsFzpVfKTykGSpBNwoA_followers = [];
|
|
@@ -22111,10 +22529,12 @@ var Group = class Group extends Object$1 {
|
|
|
22111
22529
|
_BBCTgfphhsFzpVfKTykGSpBNwoA_followers.push(!URL.canParse(v["@id"]) && v["@id"].startsWith("at://") ? new URL("at://" + encodeURIComponent(v["@id"].substring(5))) : new URL(v["@id"]));
|
|
22112
22530
|
continue;
|
|
22113
22531
|
}
|
|
22114
|
-
|
|
22532
|
+
const decoded = await Collection.fromJsonLd(v, {
|
|
22115
22533
|
...options,
|
|
22116
22534
|
baseUrl: values["@id"] == null ? options.baseUrl : new URL(values["@id"])
|
|
22117
|
-
})
|
|
22535
|
+
});
|
|
22536
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
22537
|
+
_BBCTgfphhsFzpVfKTykGSpBNwoA_followers.push(decoded);
|
|
22118
22538
|
}
|
|
22119
22539
|
instance.#_BBCTgfphhsFzpVfKTykGSpBNwoA_followers = _BBCTgfphhsFzpVfKTykGSpBNwoA_followers;
|
|
22120
22540
|
const _3bgkPwJanyTCoVFM9ovRcus8tKkU_liked = [];
|
|
@@ -22125,10 +22545,12 @@ var Group = class Group extends Object$1 {
|
|
|
22125
22545
|
_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked.push(!URL.canParse(v["@id"]) && v["@id"].startsWith("at://") ? new URL("at://" + encodeURIComponent(v["@id"].substring(5))) : new URL(v["@id"]));
|
|
22126
22546
|
continue;
|
|
22127
22547
|
}
|
|
22128
|
-
|
|
22548
|
+
const decoded = await Collection.fromJsonLd(v, {
|
|
22129
22549
|
...options,
|
|
22130
22550
|
baseUrl: values["@id"] == null ? options.baseUrl : new URL(values["@id"])
|
|
22131
|
-
})
|
|
22551
|
+
});
|
|
22552
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
22553
|
+
_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked.push(decoded);
|
|
22132
22554
|
}
|
|
22133
22555
|
instance.#_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked = _3bgkPwJanyTCoVFM9ovRcus8tKkU_liked;
|
|
22134
22556
|
const _4N1vBJzXDf8NbBumeECQMFvKetja_featured = [];
|
|
@@ -22139,10 +22561,12 @@ var Group = class Group extends Object$1 {
|
|
|
22139
22561
|
_4N1vBJzXDf8NbBumeECQMFvKetja_featured.push(!URL.canParse(v["@id"]) && v["@id"].startsWith("at://") ? new URL("at://" + encodeURIComponent(v["@id"].substring(5))) : new URL(v["@id"]));
|
|
22140
22562
|
continue;
|
|
22141
22563
|
}
|
|
22142
|
-
|
|
22564
|
+
const decoded = await Collection.fromJsonLd(v, {
|
|
22143
22565
|
...options,
|
|
22144
22566
|
baseUrl: values["@id"] == null ? options.baseUrl : new URL(values["@id"])
|
|
22145
|
-
})
|
|
22567
|
+
});
|
|
22568
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
22569
|
+
_4N1vBJzXDf8NbBumeECQMFvKetja_featured.push(decoded);
|
|
22146
22570
|
}
|
|
22147
22571
|
instance.#_4N1vBJzXDf8NbBumeECQMFvKetja_featured = _4N1vBJzXDf8NbBumeECQMFvKetja_featured;
|
|
22148
22572
|
const _2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags = [];
|
|
@@ -22153,10 +22577,12 @@ var Group = class Group extends Object$1 {
|
|
|
22153
22577
|
_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags.push(!URL.canParse(v["@id"]) && v["@id"].startsWith("at://") ? new URL("at://" + encodeURIComponent(v["@id"].substring(5))) : new URL(v["@id"]));
|
|
22154
22578
|
continue;
|
|
22155
22579
|
}
|
|
22156
|
-
|
|
22580
|
+
const decoded = await Collection.fromJsonLd(v, {
|
|
22157
22581
|
...options,
|
|
22158
22582
|
baseUrl: values["@id"] == null ? options.baseUrl : new URL(values["@id"])
|
|
22159
|
-
})
|
|
22583
|
+
});
|
|
22584
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
22585
|
+
_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags.push(decoded);
|
|
22160
22586
|
}
|
|
22161
22587
|
instance.#_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags = _2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags;
|
|
22162
22588
|
const _3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = [];
|
|
@@ -22167,48 +22593,60 @@ var Group = class Group extends Object$1 {
|
|
|
22167
22593
|
_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.push(!URL.canParse(v["@id"]) && v["@id"].startsWith("at://") ? new URL("at://" + encodeURIComponent(v["@id"].substring(5))) : new URL(v["@id"]));
|
|
22168
22594
|
continue;
|
|
22169
22595
|
}
|
|
22170
|
-
|
|
22596
|
+
const decoded = await Collection.fromJsonLd(v, {
|
|
22171
22597
|
...options,
|
|
22172
22598
|
baseUrl: values["@id"] == null ? options.baseUrl : new URL(values["@id"])
|
|
22173
|
-
})
|
|
22599
|
+
});
|
|
22600
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
22601
|
+
_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.push(decoded);
|
|
22174
22602
|
}
|
|
22175
22603
|
instance.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = _3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams;
|
|
22176
22604
|
const _sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints = [];
|
|
22177
22605
|
let _sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints__array = values["https://www.w3.org/ns/activitystreams#endpoints"];
|
|
22178
22606
|
for (const v of _sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints__array == null ? [] : _sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints__array.length === 1 && "@list" in _sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints__array[0] ? _sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints__array[0]["@list"] : _sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints__array) {
|
|
22179
22607
|
if (v == null) continue;
|
|
22180
|
-
|
|
22608
|
+
const decoded = await Endpoints.fromJsonLd(v, {
|
|
22181
22609
|
...options,
|
|
22182
22610
|
baseUrl: values["@id"] == null ? options.baseUrl : new URL(values["@id"])
|
|
22183
|
-
})
|
|
22611
|
+
});
|
|
22612
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
22613
|
+
_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints.push(decoded);
|
|
22184
22614
|
}
|
|
22185
22615
|
instance.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints = _sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints;
|
|
22186
22616
|
const _gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable = [];
|
|
22187
22617
|
let _gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable__array = values["http://joinmastodon.org/ns#discoverable"];
|
|
22188
22618
|
for (const v of _gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable__array == null ? [] : _gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable__array.length === 1 && "@list" in _gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable__array[0] ? _gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable__array[0]["@list"] : _gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable__array) {
|
|
22189
22619
|
if (v == null) continue;
|
|
22190
|
-
|
|
22620
|
+
const decoded = v["@value"];
|
|
22621
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
22622
|
+
_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable.push(decoded);
|
|
22191
22623
|
}
|
|
22192
22624
|
instance.#_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable = _gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable;
|
|
22193
22625
|
const _2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended = [];
|
|
22194
22626
|
let _2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended__array = values["http://joinmastodon.org/ns#suspended"];
|
|
22195
22627
|
for (const v of _2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended__array == null ? [] : _2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended__array.length === 1 && "@list" in _2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended__array[0] ? _2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended__array[0]["@list"] : _2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended__array) {
|
|
22196
22628
|
if (v == null) continue;
|
|
22197
|
-
|
|
22629
|
+
const decoded = v["@value"];
|
|
22630
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
22631
|
+
_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended.push(decoded);
|
|
22198
22632
|
}
|
|
22199
22633
|
instance.#_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended = _2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended;
|
|
22200
22634
|
const _79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial = [];
|
|
22201
22635
|
let _79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial__array = values["http://joinmastodon.org/ns#memorial"];
|
|
22202
22636
|
for (const v of _79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial__array == null ? [] : _79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial__array.length === 1 && "@list" in _79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial__array[0] ? _79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial__array[0]["@list"] : _79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial__array) {
|
|
22203
22637
|
if (v == null) continue;
|
|
22204
|
-
|
|
22638
|
+
const decoded = v["@value"];
|
|
22639
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
22640
|
+
_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial.push(decoded);
|
|
22205
22641
|
}
|
|
22206
22642
|
instance.#_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial = _79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial;
|
|
22207
22643
|
const _2diCorzqPGQQqftp6e4SrCEwEnyk_indexable = [];
|
|
22208
22644
|
let _2diCorzqPGQQqftp6e4SrCEwEnyk_indexable__array = values["http://joinmastodon.org/ns#indexable"];
|
|
22209
22645
|
for (const v of _2diCorzqPGQQqftp6e4SrCEwEnyk_indexable__array == null ? [] : _2diCorzqPGQQqftp6e4SrCEwEnyk_indexable__array.length === 1 && "@list" in _2diCorzqPGQQqftp6e4SrCEwEnyk_indexable__array[0] ? _2diCorzqPGQQqftp6e4SrCEwEnyk_indexable__array[0]["@list"] : _2diCorzqPGQQqftp6e4SrCEwEnyk_indexable__array) {
|
|
22210
22646
|
if (v == null) continue;
|
|
22211
|
-
|
|
22647
|
+
const decoded = v["@value"];
|
|
22648
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
22649
|
+
_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable.push(decoded);
|
|
22212
22650
|
}
|
|
22213
22651
|
instance.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable = _2diCorzqPGQQqftp6e4SrCEwEnyk_indexable;
|
|
22214
22652
|
const _2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = [];
|
|
@@ -22235,7 +22673,11 @@ var Group = class Group extends Object$1 {
|
|
|
22235
22673
|
...options,
|
|
22236
22674
|
baseUrl: values["@id"] == null ? options.baseUrl : new URL(values["@id"])
|
|
22237
22675
|
}) : void 0;
|
|
22238
|
-
if (typeof decoded === "undefined")
|
|
22676
|
+
if (typeof decoded === "undefined") {
|
|
22677
|
+
shouldCacheJsonLd = false;
|
|
22678
|
+
continue;
|
|
22679
|
+
}
|
|
22680
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
22239
22681
|
_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo.push(decoded);
|
|
22240
22682
|
}
|
|
22241
22683
|
instance.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = _2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo;
|
|
@@ -22263,7 +22705,11 @@ var Group = class Group extends Object$1 {
|
|
|
22263
22705
|
...options,
|
|
22264
22706
|
baseUrl: values["@id"] == null ? options.baseUrl : new URL(values["@id"])
|
|
22265
22707
|
}) : void 0;
|
|
22266
|
-
if (typeof decoded === "undefined")
|
|
22708
|
+
if (typeof decoded === "undefined") {
|
|
22709
|
+
shouldCacheJsonLd = false;
|
|
22710
|
+
continue;
|
|
22711
|
+
}
|
|
22712
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
22267
22713
|
_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs.push(decoded);
|
|
22268
22714
|
}
|
|
22269
22715
|
instance.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = _3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs;
|
|
@@ -22275,27 +22721,34 @@ var Group = class Group extends Object$1 {
|
|
|
22275
22721
|
_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.push(!URL.canParse(v["@id"]) && v["@id"].startsWith("at://") ? new URL("at://" + encodeURIComponent(v["@id"].substring(5))) : new URL(v["@id"]));
|
|
22276
22722
|
continue;
|
|
22277
22723
|
}
|
|
22278
|
-
|
|
22724
|
+
const decoded = await DidService.fromJsonLd(v, {
|
|
22279
22725
|
...options,
|
|
22280
22726
|
baseUrl: values["@id"] == null ? options.baseUrl : new URL(values["@id"])
|
|
22281
|
-
})
|
|
22727
|
+
});
|
|
22728
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
22729
|
+
_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.push(decoded);
|
|
22282
22730
|
}
|
|
22283
22731
|
instance.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = _4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service;
|
|
22284
22732
|
const _QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage = [];
|
|
22285
22733
|
let _QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage__array = values["https://misskey-hub.net/ns#_misskey_followedMessage"];
|
|
22286
22734
|
for (const v of _QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage__array == null ? [] : _QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage__array.length === 1 && "@list" in _QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage__array[0] ? _QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage__array[0]["@list"] : _QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage__array) {
|
|
22287
22735
|
if (v == null) continue;
|
|
22288
|
-
|
|
22736
|
+
const decoded = v["@value"];
|
|
22737
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
22738
|
+
_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage.push(decoded);
|
|
22289
22739
|
}
|
|
22290
22740
|
instance.#_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage = _QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage;
|
|
22291
22741
|
const _2xEU4QtkC53RAun67T81Egqt9vmL_isCat = [];
|
|
22292
22742
|
let _2xEU4QtkC53RAun67T81Egqt9vmL_isCat__array = values["https://misskey-hub.net/ns#isCat"];
|
|
22293
22743
|
for (const v of _2xEU4QtkC53RAun67T81Egqt9vmL_isCat__array == null ? [] : _2xEU4QtkC53RAun67T81Egqt9vmL_isCat__array.length === 1 && "@list" in _2xEU4QtkC53RAun67T81Egqt9vmL_isCat__array[0] ? _2xEU4QtkC53RAun67T81Egqt9vmL_isCat__array[0]["@list"] : _2xEU4QtkC53RAun67T81Egqt9vmL_isCat__array) {
|
|
22294
22744
|
if (v == null) continue;
|
|
22295
|
-
|
|
22745
|
+
const decoded = v["@value"];
|
|
22746
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
22747
|
+
_2xEU4QtkC53RAun67T81Egqt9vmL_isCat.push(decoded);
|
|
22296
22748
|
}
|
|
22297
22749
|
instance.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat = _2xEU4QtkC53RAun67T81Egqt9vmL_isCat;
|
|
22298
|
-
|
|
22750
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
22751
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
22299
22752
|
instance._cachedJsonLd = structuredClone(json);
|
|
22300
22753
|
} catch {
|
|
22301
22754
|
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -22443,6 +22896,7 @@ var Link = class Link {
|
|
|
22443
22896
|
#tracerProvider;
|
|
22444
22897
|
#warning;
|
|
22445
22898
|
#cachedJsonLd;
|
|
22899
|
+
#shouldCacheJsonLd = true;
|
|
22446
22900
|
id;
|
|
22447
22901
|
get _documentLoader() {
|
|
22448
22902
|
return this.#documentLoader;
|
|
@@ -22462,6 +22916,17 @@ var Link = class Link {
|
|
|
22462
22916
|
set _cachedJsonLd(value) {
|
|
22463
22917
|
this.#cachedJsonLd = value;
|
|
22464
22918
|
}
|
|
22919
|
+
get _shouldCacheJsonLd() {
|
|
22920
|
+
return this.#shouldCacheJsonLd;
|
|
22921
|
+
}
|
|
22922
|
+
set _shouldCacheJsonLd(value) {
|
|
22923
|
+
this.#shouldCacheJsonLd = value;
|
|
22924
|
+
}
|
|
22925
|
+
static _shouldCacheDecodedJsonLd(value) {
|
|
22926
|
+
if (value == null || typeof value !== "object") return true;
|
|
22927
|
+
if (!("_shouldCacheJsonLd" in value)) return true;
|
|
22928
|
+
return value._shouldCacheJsonLd;
|
|
22929
|
+
}
|
|
22465
22930
|
/**
|
|
22466
22931
|
* The type URI of {@link Link}: `https://www.w3.org/ns/activitystreams#Link`.
|
|
22467
22932
|
*/
|
|
@@ -22988,33 +23453,44 @@ var Link = class Link {
|
|
|
22988
23453
|
if (!values["@type"].includes("https://www.w3.org/ns/activitystreams#Link")) throw new TypeError("Invalid type: " + values["@type"]);
|
|
22989
23454
|
}
|
|
22990
23455
|
const instance = new this({ id: "@id" in values ? new URL(values["@id"]) : void 0 }, options);
|
|
23456
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
22991
23457
|
const _pVjLsybKQdmkjuU7MHjiVmNnuj7_href = [];
|
|
22992
23458
|
let _pVjLsybKQdmkjuU7MHjiVmNnuj7_href__array = values["https://www.w3.org/ns/activitystreams#href"];
|
|
22993
23459
|
for (const v of _pVjLsybKQdmkjuU7MHjiVmNnuj7_href__array == null ? [] : _pVjLsybKQdmkjuU7MHjiVmNnuj7_href__array.length === 1 && "@list" in _pVjLsybKQdmkjuU7MHjiVmNnuj7_href__array[0] ? _pVjLsybKQdmkjuU7MHjiVmNnuj7_href__array[0]["@list"] : _pVjLsybKQdmkjuU7MHjiVmNnuj7_href__array) {
|
|
22994
23460
|
if (v == null) continue;
|
|
22995
|
-
|
|
23461
|
+
const decoded = v["@id"].startsWith("at://") ? new URL("at://" + encodeURIComponent(v["@id"].includes("/", 5) ? v["@id"].slice(5, v["@id"].indexOf("/", 5)) : v["@id"].slice(5)) + (v["@id"].includes("/", 5) ? v["@id"].slice(v["@id"].indexOf("/", 5)) : "")) : URL.canParse(v["@id"]) && (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) ? new URL(v["@id"]) : new URL(v["@id"], values["@id"] == null ? options.baseUrl : new URL(values["@id"]));
|
|
23462
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
23463
|
+
_pVjLsybKQdmkjuU7MHjiVmNnuj7_href.push(decoded);
|
|
22996
23464
|
}
|
|
22997
23465
|
instance.#_pVjLsybKQdmkjuU7MHjiVmNnuj7_href = _pVjLsybKQdmkjuU7MHjiVmNnuj7_href;
|
|
22998
23466
|
const _2a1c5GkfkQsnyyLybF8UXBQfFuHZ_rel = [];
|
|
22999
23467
|
let _2a1c5GkfkQsnyyLybF8UXBQfFuHZ_rel__array = values["https://www.w3.org/ns/activitystreams#rel"];
|
|
23000
23468
|
for (const v of _2a1c5GkfkQsnyyLybF8UXBQfFuHZ_rel__array == null ? [] : _2a1c5GkfkQsnyyLybF8UXBQfFuHZ_rel__array.length === 1 && "@list" in _2a1c5GkfkQsnyyLybF8UXBQfFuHZ_rel__array[0] ? _2a1c5GkfkQsnyyLybF8UXBQfFuHZ_rel__array[0]["@list"] : _2a1c5GkfkQsnyyLybF8UXBQfFuHZ_rel__array) {
|
|
23001
23469
|
if (v == null) continue;
|
|
23002
|
-
|
|
23470
|
+
const decoded = v["@value"];
|
|
23471
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
23472
|
+
_2a1c5GkfkQsnyyLybF8UXBQfFuHZ_rel.push(decoded);
|
|
23003
23473
|
}
|
|
23004
23474
|
instance.#_2a1c5GkfkQsnyyLybF8UXBQfFuHZ_rel = _2a1c5GkfkQsnyyLybF8UXBQfFuHZ_rel;
|
|
23005
23475
|
const _3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType = [];
|
|
23006
23476
|
let _3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType__array = values["https://www.w3.org/ns/activitystreams#mediaType"];
|
|
23007
23477
|
for (const v of _3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType__array == null ? [] : _3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType__array.length === 1 && "@list" in _3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType__array[0] ? _3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType__array[0]["@list"] : _3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType__array) {
|
|
23008
23478
|
if (v == null) continue;
|
|
23009
|
-
|
|
23479
|
+
const decoded = v["@value"];
|
|
23480
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
23481
|
+
_3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType.push(decoded);
|
|
23010
23482
|
}
|
|
23011
23483
|
instance.#_3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType = _3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType;
|
|
23012
23484
|
const _4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name = [];
|
|
23013
23485
|
let _4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name__array = values["https://www.w3.org/ns/activitystreams#name"];
|
|
23014
23486
|
for (const v of _4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name__array == null ? [] : _4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name__array.length === 1 && "@list" in _4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name__array[0] ? _4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name__array[0]["@list"] : _4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name__array) {
|
|
23015
23487
|
if (v == null) continue;
|
|
23016
|
-
const decoded = typeof v === "object" && "@value" in v && typeof v["@value"] === "string" && !("@language" in v) ? v["@value"] : typeof v === "object" && "@language" in v && "@value" in v && typeof v["@language"] === "string" && typeof v["@value"] === "string" ? new _fedify_vocab_runtime.LanguageString(v["@value"], v["@language"]) : void 0;
|
|
23017
|
-
if (typeof decoded === "undefined")
|
|
23488
|
+
const decoded = typeof v === "object" && "@value" in v && typeof v["@value"] === "string" && !("@language" in v) ? v["@value"] : typeof v === "object" && "@language" in v && "@value" in v && typeof v["@language"] === "string" && typeof v["@value"] === "string" && isValidLanguageTag(v["@language"]) ? new _fedify_vocab_runtime.LanguageString(v["@value"], v["@language"]) : void 0;
|
|
23489
|
+
if (typeof decoded === "undefined") {
|
|
23490
|
+
shouldCacheJsonLd = false;
|
|
23491
|
+
continue;
|
|
23492
|
+
}
|
|
23493
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
23018
23494
|
_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name.push(decoded);
|
|
23019
23495
|
}
|
|
23020
23496
|
instance.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name = _4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name;
|
|
@@ -23022,21 +23498,27 @@ var Link = class Link {
|
|
|
23022
23498
|
let _f57HKWCp1YRBbTJE8PF12RbDJGf_hreflang__array = values["https://www.w3.org/ns/activitystreams#hreflang"];
|
|
23023
23499
|
for (const v of _f57HKWCp1YRBbTJE8PF12RbDJGf_hreflang__array == null ? [] : _f57HKWCp1YRBbTJE8PF12RbDJGf_hreflang__array.length === 1 && "@list" in _f57HKWCp1YRBbTJE8PF12RbDJGf_hreflang__array[0] ? _f57HKWCp1YRBbTJE8PF12RbDJGf_hreflang__array[0]["@list"] : _f57HKWCp1YRBbTJE8PF12RbDJGf_hreflang__array) {
|
|
23024
23500
|
if (v == null) continue;
|
|
23025
|
-
|
|
23501
|
+
const decoded = new Intl.Locale(v["@value"]);
|
|
23502
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
23503
|
+
_f57HKWCp1YRBbTJE8PF12RbDJGf_hreflang.push(decoded);
|
|
23026
23504
|
}
|
|
23027
23505
|
instance.#_f57HKWCp1YRBbTJE8PF12RbDJGf_hreflang = _f57HKWCp1YRBbTJE8PF12RbDJGf_hreflang;
|
|
23028
23506
|
const _2cGKFeFJMmiNpGZFEF75mCwFQsKb_height = [];
|
|
23029
23507
|
let _2cGKFeFJMmiNpGZFEF75mCwFQsKb_height__array = values["https://www.w3.org/ns/activitystreams#height"];
|
|
23030
23508
|
for (const v of _2cGKFeFJMmiNpGZFEF75mCwFQsKb_height__array == null ? [] : _2cGKFeFJMmiNpGZFEF75mCwFQsKb_height__array.length === 1 && "@list" in _2cGKFeFJMmiNpGZFEF75mCwFQsKb_height__array[0] ? _2cGKFeFJMmiNpGZFEF75mCwFQsKb_height__array[0]["@list"] : _2cGKFeFJMmiNpGZFEF75mCwFQsKb_height__array) {
|
|
23031
23509
|
if (v == null) continue;
|
|
23032
|
-
|
|
23510
|
+
const decoded = v["@value"];
|
|
23511
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
23512
|
+
_2cGKFeFJMmiNpGZFEF75mCwFQsKb_height.push(decoded);
|
|
23033
23513
|
}
|
|
23034
23514
|
instance.#_2cGKFeFJMmiNpGZFEF75mCwFQsKb_height = _2cGKFeFJMmiNpGZFEF75mCwFQsKb_height;
|
|
23035
23515
|
const _2e9AP7WdHBJYAgXG6GEyq7nSkNMe_width = [];
|
|
23036
23516
|
let _2e9AP7WdHBJYAgXG6GEyq7nSkNMe_width__array = values["https://www.w3.org/ns/activitystreams#width"];
|
|
23037
23517
|
for (const v of _2e9AP7WdHBJYAgXG6GEyq7nSkNMe_width__array == null ? [] : _2e9AP7WdHBJYAgXG6GEyq7nSkNMe_width__array.length === 1 && "@list" in _2e9AP7WdHBJYAgXG6GEyq7nSkNMe_width__array[0] ? _2e9AP7WdHBJYAgXG6GEyq7nSkNMe_width__array[0]["@list"] : _2e9AP7WdHBJYAgXG6GEyq7nSkNMe_width__array) {
|
|
23038
23518
|
if (v == null) continue;
|
|
23039
|
-
|
|
23519
|
+
const decoded = v["@value"];
|
|
23520
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
23521
|
+
_2e9AP7WdHBJYAgXG6GEyq7nSkNMe_width.push(decoded);
|
|
23040
23522
|
}
|
|
23041
23523
|
instance.#_2e9AP7WdHBJYAgXG6GEyq7nSkNMe_width = _2e9AP7WdHBJYAgXG6GEyq7nSkNMe_width;
|
|
23042
23524
|
const _gCVTegXxWWCw6wWRxa1QF65zusg_preview = [];
|
|
@@ -23114,11 +23596,16 @@ var Link = class Link {
|
|
|
23114
23596
|
...options,
|
|
23115
23597
|
baseUrl: values["@id"] == null ? options.baseUrl : new URL(values["@id"])
|
|
23116
23598
|
}) : void 0;
|
|
23117
|
-
if (typeof decoded === "undefined")
|
|
23599
|
+
if (typeof decoded === "undefined") {
|
|
23600
|
+
shouldCacheJsonLd = false;
|
|
23601
|
+
continue;
|
|
23602
|
+
}
|
|
23603
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
23118
23604
|
_gCVTegXxWWCw6wWRxa1QF65zusg_preview.push(decoded);
|
|
23119
23605
|
}
|
|
23120
23606
|
instance.#_gCVTegXxWWCw6wWRxa1QF65zusg_preview = _gCVTegXxWWCw6wWRxa1QF65zusg_preview;
|
|
23121
|
-
|
|
23607
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
23608
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
23122
23609
|
instance._cachedJsonLd = structuredClone(json);
|
|
23123
23610
|
} catch {
|
|
23124
23611
|
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -23318,7 +23805,9 @@ var Hashtag = class Hashtag extends Link {
|
|
|
23318
23805
|
_fromSubclass: true
|
|
23319
23806
|
});
|
|
23320
23807
|
if (!(instance instanceof Hashtag)) throw new TypeError("Unexpected type: " + instance.constructor.name);
|
|
23321
|
-
|
|
23808
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
23809
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
23810
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
23322
23811
|
instance._cachedJsonLd = structuredClone(json);
|
|
23323
23812
|
} catch {
|
|
23324
23813
|
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -23472,7 +23961,9 @@ var Image = class Image extends Document {
|
|
|
23472
23961
|
_fromSubclass: true
|
|
23473
23962
|
});
|
|
23474
23963
|
if (!(instance instanceof Image)) throw new TypeError("Unexpected type: " + instance.constructor.name);
|
|
23475
|
-
|
|
23964
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
23965
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
23966
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
23476
23967
|
instance._cachedJsonLd = structuredClone(json);
|
|
23477
23968
|
} catch {
|
|
23478
23969
|
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -23622,7 +24113,9 @@ var Offer = class Offer extends Activity {
|
|
|
23622
24113
|
_fromSubclass: true
|
|
23623
24114
|
});
|
|
23624
24115
|
if (!(instance instanceof Offer)) throw new TypeError("Unexpected type: " + instance.constructor.name);
|
|
23625
|
-
|
|
24116
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
24117
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
24118
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
23626
24119
|
instance._cachedJsonLd = structuredClone(json);
|
|
23627
24120
|
} catch {
|
|
23628
24121
|
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -23770,7 +24263,9 @@ var Invite = class Invite extends Offer {
|
|
|
23770
24263
|
_fromSubclass: true
|
|
23771
24264
|
});
|
|
23772
24265
|
if (!(instance instanceof Invite)) throw new TypeError("Unexpected type: " + instance.constructor.name);
|
|
23773
|
-
|
|
24266
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
24267
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
24268
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
23774
24269
|
instance._cachedJsonLd = structuredClone(json);
|
|
23775
24270
|
} catch {
|
|
23776
24271
|
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -23918,7 +24413,9 @@ var Join = class Join extends Activity {
|
|
|
23918
24413
|
_fromSubclass: true
|
|
23919
24414
|
});
|
|
23920
24415
|
if (!(instance instanceof Join)) throw new TypeError("Unexpected type: " + instance.constructor.name);
|
|
23921
|
-
|
|
24416
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
24417
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
24418
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
23922
24419
|
instance._cachedJsonLd = structuredClone(json);
|
|
23923
24420
|
} catch {
|
|
23924
24421
|
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -24066,7 +24563,9 @@ var Leave = class Leave extends Activity {
|
|
|
24066
24563
|
_fromSubclass: true
|
|
24067
24564
|
});
|
|
24068
24565
|
if (!(instance instanceof Leave)) throw new TypeError("Unexpected type: " + instance.constructor.name);
|
|
24069
|
-
|
|
24566
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
24567
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
24568
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
24070
24569
|
instance._cachedJsonLd = structuredClone(json);
|
|
24071
24570
|
} catch {
|
|
24072
24571
|
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -24218,7 +24717,9 @@ var Like = class Like extends Activity {
|
|
|
24218
24717
|
_fromSubclass: true
|
|
24219
24718
|
});
|
|
24220
24719
|
if (!(instance instanceof Like)) throw new TypeError("Unexpected type: " + instance.constructor.name);
|
|
24221
|
-
|
|
24720
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
24721
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
24722
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
24222
24723
|
instance._cachedJsonLd = structuredClone(json);
|
|
24223
24724
|
} catch {
|
|
24224
24725
|
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -24365,7 +24866,9 @@ var Listen = class Listen extends Activity {
|
|
|
24365
24866
|
_fromSubclass: true
|
|
24366
24867
|
});
|
|
24367
24868
|
if (!(instance instanceof Listen)) throw new TypeError("Unexpected type: " + instance.constructor.name);
|
|
24368
|
-
|
|
24869
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
24870
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
24871
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
24369
24872
|
instance._cachedJsonLd = structuredClone(json);
|
|
24370
24873
|
} catch {
|
|
24371
24874
|
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -24516,7 +25019,9 @@ var Mention = class Mention extends Link {
|
|
|
24516
25019
|
_fromSubclass: true
|
|
24517
25020
|
});
|
|
24518
25021
|
if (!(instance instanceof Mention)) throw new TypeError("Unexpected type: " + instance.constructor.name);
|
|
24519
|
-
|
|
25022
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
25023
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
25024
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
24520
25025
|
instance._cachedJsonLd = structuredClone(json);
|
|
24521
25026
|
} catch {
|
|
24522
25027
|
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -24665,7 +25170,9 @@ var Move = class Move extends Activity {
|
|
|
24665
25170
|
_fromSubclass: true
|
|
24666
25171
|
});
|
|
24667
25172
|
if (!(instance instanceof Move)) throw new TypeError("Unexpected type: " + instance.constructor.name);
|
|
24668
|
-
|
|
25173
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
25174
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
25175
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
24669
25176
|
instance._cachedJsonLd = structuredClone(json);
|
|
24670
25177
|
} catch {
|
|
24671
25178
|
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -24901,16 +25408,20 @@ var Note = class Note extends Object$1 {
|
|
|
24901
25408
|
_fromSubclass: true
|
|
24902
25409
|
});
|
|
24903
25410
|
if (!(instance instanceof Note)) throw new TypeError("Unexpected type: " + instance.constructor.name);
|
|
25411
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
24904
25412
|
const _K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl = [];
|
|
24905
25413
|
let _K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl__array = values["https://www.w3.org/ns/activitystreams#quoteUrl"];
|
|
24906
25414
|
if (_K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl__array == null || _K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl__array.length < 1) _K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl__array = values["https://misskey-hub.net/ns#_misskey_quote"];
|
|
24907
25415
|
if (_K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl__array == null || _K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl__array.length < 1) _K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl__array = values["http://fedibird.com/ns#quoteUri"];
|
|
24908
25416
|
for (const v of _K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl__array == null ? [] : _K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl__array.length === 1 && "@list" in _K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl__array[0] ? _K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl__array[0]["@list"] : _K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl__array) {
|
|
24909
25417
|
if (v == null) continue;
|
|
24910
|
-
|
|
25418
|
+
const decoded = new URL(v["@value"]);
|
|
25419
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
25420
|
+
_K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl.push(decoded);
|
|
24911
25421
|
}
|
|
24912
25422
|
instance.#_K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl = _K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl;
|
|
24913
|
-
|
|
25423
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
25424
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
24914
25425
|
instance._cachedJsonLd = structuredClone(json);
|
|
24915
25426
|
} catch {
|
|
24916
25427
|
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -25278,6 +25789,7 @@ var OrderedCollection = class OrderedCollection extends Collection {
|
|
|
25278
25789
|
_fromSubclass: true
|
|
25279
25790
|
});
|
|
25280
25791
|
if (!(instance instanceof OrderedCollection)) throw new TypeError("Unexpected type: " + instance.constructor.name);
|
|
25792
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
25281
25793
|
const _2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items = [];
|
|
25282
25794
|
let _2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items__array = values["https://www.w3.org/ns/activitystreams#items"];
|
|
25283
25795
|
for (const v of _2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items__array == null ? [] : _2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items__array.length === 1 && "@list" in _2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items__array[0] ? _2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items__array[0]["@list"] : _2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items__array) {
|
|
@@ -25353,11 +25865,16 @@ var OrderedCollection = class OrderedCollection extends Collection {
|
|
|
25353
25865
|
...options,
|
|
25354
25866
|
baseUrl: values["@id"] == null ? options.baseUrl : new URL(values["@id"])
|
|
25355
25867
|
}) : void 0;
|
|
25356
|
-
if (typeof decoded === "undefined")
|
|
25868
|
+
if (typeof decoded === "undefined") {
|
|
25869
|
+
shouldCacheJsonLd = false;
|
|
25870
|
+
continue;
|
|
25871
|
+
}
|
|
25872
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
25357
25873
|
_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items.push(decoded);
|
|
25358
25874
|
}
|
|
25359
25875
|
instance.#_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items = _2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items;
|
|
25360
|
-
|
|
25876
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
25877
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
25361
25878
|
instance._cachedJsonLd = structuredClone(json);
|
|
25362
25879
|
} catch {
|
|
25363
25880
|
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -25755,6 +26272,7 @@ var OrderedCollectionPage = class OrderedCollectionPage extends CollectionPage {
|
|
|
25755
26272
|
_fromSubclass: true
|
|
25756
26273
|
});
|
|
25757
26274
|
if (!(instance instanceof OrderedCollectionPage)) throw new TypeError("Unexpected type: " + instance.constructor.name);
|
|
26275
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
25758
26276
|
const _2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items = [];
|
|
25759
26277
|
let _2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items__array = values["https://www.w3.org/ns/activitystreams#items"];
|
|
25760
26278
|
for (const v of _2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items__array == null ? [] : _2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items__array.length === 1 && "@list" in _2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items__array[0] ? _2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items__array[0]["@list"] : _2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items__array) {
|
|
@@ -25830,7 +26348,11 @@ var OrderedCollectionPage = class OrderedCollectionPage extends CollectionPage {
|
|
|
25830
26348
|
...options,
|
|
25831
26349
|
baseUrl: values["@id"] == null ? options.baseUrl : new URL(values["@id"])
|
|
25832
26350
|
}) : void 0;
|
|
25833
|
-
if (typeof decoded === "undefined")
|
|
26351
|
+
if (typeof decoded === "undefined") {
|
|
26352
|
+
shouldCacheJsonLd = false;
|
|
26353
|
+
continue;
|
|
26354
|
+
}
|
|
26355
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
25834
26356
|
_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items.push(decoded);
|
|
25835
26357
|
}
|
|
25836
26358
|
instance.#_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items = _2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items;
|
|
@@ -25838,10 +26360,13 @@ var OrderedCollectionPage = class OrderedCollectionPage extends CollectionPage {
|
|
|
25838
26360
|
let _2W4yinFwqmpneu2h4m1mZ3pcLADd_startIndex__array = values["https://www.w3.org/ns/activitystreams#startIndex"];
|
|
25839
26361
|
for (const v of _2W4yinFwqmpneu2h4m1mZ3pcLADd_startIndex__array == null ? [] : _2W4yinFwqmpneu2h4m1mZ3pcLADd_startIndex__array.length === 1 && "@list" in _2W4yinFwqmpneu2h4m1mZ3pcLADd_startIndex__array[0] ? _2W4yinFwqmpneu2h4m1mZ3pcLADd_startIndex__array[0]["@list"] : _2W4yinFwqmpneu2h4m1mZ3pcLADd_startIndex__array) {
|
|
25840
26362
|
if (v == null) continue;
|
|
25841
|
-
|
|
26363
|
+
const decoded = v["@value"];
|
|
26364
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
26365
|
+
_2W4yinFwqmpneu2h4m1mZ3pcLADd_startIndex.push(decoded);
|
|
25842
26366
|
}
|
|
25843
26367
|
instance.#_2W4yinFwqmpneu2h4m1mZ3pcLADd_startIndex = _2W4yinFwqmpneu2h4m1mZ3pcLADd_startIndex;
|
|
25844
|
-
|
|
26368
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
26369
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
25845
26370
|
instance._cachedJsonLd = structuredClone(json);
|
|
25846
26371
|
} catch {
|
|
25847
26372
|
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -28717,12 +29242,17 @@ var Organization = class Organization extends Object$1 {
|
|
|
28717
29242
|
_fromSubclass: true
|
|
28718
29243
|
});
|
|
28719
29244
|
if (!(instance instanceof Organization)) throw new TypeError("Unexpected type: " + instance.constructor.name);
|
|
29245
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
28720
29246
|
const _3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = [];
|
|
28721
29247
|
let _3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername__array = values["https://www.w3.org/ns/activitystreams#preferredUsername"];
|
|
28722
29248
|
for (const v of _3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername__array == null ? [] : _3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername__array.length === 1 && "@list" in _3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername__array[0] ? _3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername__array[0]["@list"] : _3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername__array) {
|
|
28723
29249
|
if (v == null) continue;
|
|
28724
|
-
const decoded = typeof v === "object" && "@value" in v && typeof v["@value"] === "string" && !("@language" in v) ? v["@value"] : typeof v === "object" && "@language" in v && "@value" in v && typeof v["@language"] === "string" && typeof v["@value"] === "string" ? new _fedify_vocab_runtime.LanguageString(v["@value"], v["@language"]) : void 0;
|
|
28725
|
-
if (typeof decoded === "undefined")
|
|
29250
|
+
const decoded = typeof v === "object" && "@value" in v && typeof v["@value"] === "string" && !("@language" in v) ? v["@value"] : typeof v === "object" && "@language" in v && "@value" in v && typeof v["@language"] === "string" && typeof v["@value"] === "string" && isValidLanguageTag(v["@language"]) ? new _fedify_vocab_runtime.LanguageString(v["@value"], v["@language"]) : void 0;
|
|
29251
|
+
if (typeof decoded === "undefined") {
|
|
29252
|
+
shouldCacheJsonLd = false;
|
|
29253
|
+
continue;
|
|
29254
|
+
}
|
|
29255
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
28726
29256
|
_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername.push(decoded);
|
|
28727
29257
|
}
|
|
28728
29258
|
instance.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = _3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername;
|
|
@@ -28734,10 +29264,12 @@ var Organization = class Organization extends Object$1 {
|
|
|
28734
29264
|
_axq166E2eZADq34V4MYUc8KMZdC_publicKey.push(!URL.canParse(v["@id"]) && v["@id"].startsWith("at://") ? new URL("at://" + encodeURIComponent(v["@id"].substring(5))) : new URL(v["@id"]));
|
|
28735
29265
|
continue;
|
|
28736
29266
|
}
|
|
28737
|
-
|
|
29267
|
+
const decoded = await CryptographicKey.fromJsonLd(v, {
|
|
28738
29268
|
...options,
|
|
28739
29269
|
baseUrl: values["@id"] == null ? options.baseUrl : new URL(values["@id"])
|
|
28740
|
-
})
|
|
29270
|
+
});
|
|
29271
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
29272
|
+
_axq166E2eZADq34V4MYUc8KMZdC_publicKey.push(decoded);
|
|
28741
29273
|
}
|
|
28742
29274
|
instance.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = _axq166E2eZADq34V4MYUc8KMZdC_publicKey;
|
|
28743
29275
|
const _4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = [];
|
|
@@ -28748,17 +29280,21 @@ var Organization = class Organization extends Object$1 {
|
|
|
28748
29280
|
_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.push(!URL.canParse(v["@id"]) && v["@id"].startsWith("at://") ? new URL("at://" + encodeURIComponent(v["@id"].substring(5))) : new URL(v["@id"]));
|
|
28749
29281
|
continue;
|
|
28750
29282
|
}
|
|
28751
|
-
|
|
29283
|
+
const decoded = await Multikey.fromJsonLd(v, {
|
|
28752
29284
|
...options,
|
|
28753
29285
|
baseUrl: values["@id"] == null ? options.baseUrl : new URL(values["@id"])
|
|
28754
|
-
})
|
|
29286
|
+
});
|
|
29287
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
29288
|
+
_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.push(decoded);
|
|
28755
29289
|
}
|
|
28756
29290
|
instance.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = _4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod;
|
|
28757
29291
|
const _36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = [];
|
|
28758
29292
|
let _36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers__array = values["https://www.w3.org/ns/activitystreams#manuallyApprovesFollowers"];
|
|
28759
29293
|
for (const v of _36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers__array == null ? [] : _36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers__array.length === 1 && "@list" in _36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers__array[0] ? _36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers__array[0]["@list"] : _36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers__array) {
|
|
28760
29294
|
if (v == null) continue;
|
|
28761
|
-
|
|
29295
|
+
const decoded = v["@value"];
|
|
29296
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
29297
|
+
_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers.push(decoded);
|
|
28762
29298
|
}
|
|
28763
29299
|
instance.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = _36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers;
|
|
28764
29300
|
const _3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox = [];
|
|
@@ -28776,7 +29312,11 @@ var Organization = class Organization extends Object$1 {
|
|
|
28776
29312
|
...options,
|
|
28777
29313
|
baseUrl: values["@id"] == null ? options.baseUrl : new URL(values["@id"])
|
|
28778
29314
|
}) : void 0;
|
|
28779
|
-
if (typeof decoded === "undefined")
|
|
29315
|
+
if (typeof decoded === "undefined") {
|
|
29316
|
+
shouldCacheJsonLd = false;
|
|
29317
|
+
continue;
|
|
29318
|
+
}
|
|
29319
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
28780
29320
|
_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox.push(decoded);
|
|
28781
29321
|
}
|
|
28782
29322
|
instance.#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox = _3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox;
|
|
@@ -28795,7 +29335,11 @@ var Organization = class Organization extends Object$1 {
|
|
|
28795
29335
|
...options,
|
|
28796
29336
|
baseUrl: values["@id"] == null ? options.baseUrl : new URL(values["@id"])
|
|
28797
29337
|
}) : void 0;
|
|
28798
|
-
if (typeof decoded === "undefined")
|
|
29338
|
+
if (typeof decoded === "undefined") {
|
|
29339
|
+
shouldCacheJsonLd = false;
|
|
29340
|
+
continue;
|
|
29341
|
+
}
|
|
29342
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
28799
29343
|
_41QwhqJouoLg3h8dRPKat21brynC_outbox.push(decoded);
|
|
28800
29344
|
}
|
|
28801
29345
|
instance.#_41QwhqJouoLg3h8dRPKat21brynC_outbox = _41QwhqJouoLg3h8dRPKat21brynC_outbox;
|
|
@@ -28807,10 +29351,12 @@ var Organization = class Organization extends Object$1 {
|
|
|
28807
29351
|
_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following.push(!URL.canParse(v["@id"]) && v["@id"].startsWith("at://") ? new URL("at://" + encodeURIComponent(v["@id"].substring(5))) : new URL(v["@id"]));
|
|
28808
29352
|
continue;
|
|
28809
29353
|
}
|
|
28810
|
-
|
|
29354
|
+
const decoded = await Collection.fromJsonLd(v, {
|
|
28811
29355
|
...options,
|
|
28812
29356
|
baseUrl: values["@id"] == null ? options.baseUrl : new URL(values["@id"])
|
|
28813
|
-
})
|
|
29357
|
+
});
|
|
29358
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
29359
|
+
_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following.push(decoded);
|
|
28814
29360
|
}
|
|
28815
29361
|
instance.#_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following = _3yAv8jymNfNuJUDuBzJ1NQhdbAee_following;
|
|
28816
29362
|
const _BBCTgfphhsFzpVfKTykGSpBNwoA_followers = [];
|
|
@@ -28821,10 +29367,12 @@ var Organization = class Organization extends Object$1 {
|
|
|
28821
29367
|
_BBCTgfphhsFzpVfKTykGSpBNwoA_followers.push(!URL.canParse(v["@id"]) && v["@id"].startsWith("at://") ? new URL("at://" + encodeURIComponent(v["@id"].substring(5))) : new URL(v["@id"]));
|
|
28822
29368
|
continue;
|
|
28823
29369
|
}
|
|
28824
|
-
|
|
29370
|
+
const decoded = await Collection.fromJsonLd(v, {
|
|
28825
29371
|
...options,
|
|
28826
29372
|
baseUrl: values["@id"] == null ? options.baseUrl : new URL(values["@id"])
|
|
28827
|
-
})
|
|
29373
|
+
});
|
|
29374
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
29375
|
+
_BBCTgfphhsFzpVfKTykGSpBNwoA_followers.push(decoded);
|
|
28828
29376
|
}
|
|
28829
29377
|
instance.#_BBCTgfphhsFzpVfKTykGSpBNwoA_followers = _BBCTgfphhsFzpVfKTykGSpBNwoA_followers;
|
|
28830
29378
|
const _3bgkPwJanyTCoVFM9ovRcus8tKkU_liked = [];
|
|
@@ -28835,10 +29383,12 @@ var Organization = class Organization extends Object$1 {
|
|
|
28835
29383
|
_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked.push(!URL.canParse(v["@id"]) && v["@id"].startsWith("at://") ? new URL("at://" + encodeURIComponent(v["@id"].substring(5))) : new URL(v["@id"]));
|
|
28836
29384
|
continue;
|
|
28837
29385
|
}
|
|
28838
|
-
|
|
29386
|
+
const decoded = await Collection.fromJsonLd(v, {
|
|
28839
29387
|
...options,
|
|
28840
29388
|
baseUrl: values["@id"] == null ? options.baseUrl : new URL(values["@id"])
|
|
28841
|
-
})
|
|
29389
|
+
});
|
|
29390
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
29391
|
+
_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked.push(decoded);
|
|
28842
29392
|
}
|
|
28843
29393
|
instance.#_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked = _3bgkPwJanyTCoVFM9ovRcus8tKkU_liked;
|
|
28844
29394
|
const _4N1vBJzXDf8NbBumeECQMFvKetja_featured = [];
|
|
@@ -28849,10 +29399,12 @@ var Organization = class Organization extends Object$1 {
|
|
|
28849
29399
|
_4N1vBJzXDf8NbBumeECQMFvKetja_featured.push(!URL.canParse(v["@id"]) && v["@id"].startsWith("at://") ? new URL("at://" + encodeURIComponent(v["@id"].substring(5))) : new URL(v["@id"]));
|
|
28850
29400
|
continue;
|
|
28851
29401
|
}
|
|
28852
|
-
|
|
29402
|
+
const decoded = await Collection.fromJsonLd(v, {
|
|
28853
29403
|
...options,
|
|
28854
29404
|
baseUrl: values["@id"] == null ? options.baseUrl : new URL(values["@id"])
|
|
28855
|
-
})
|
|
29405
|
+
});
|
|
29406
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
29407
|
+
_4N1vBJzXDf8NbBumeECQMFvKetja_featured.push(decoded);
|
|
28856
29408
|
}
|
|
28857
29409
|
instance.#_4N1vBJzXDf8NbBumeECQMFvKetja_featured = _4N1vBJzXDf8NbBumeECQMFvKetja_featured;
|
|
28858
29410
|
const _2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags = [];
|
|
@@ -28863,10 +29415,12 @@ var Organization = class Organization extends Object$1 {
|
|
|
28863
29415
|
_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags.push(!URL.canParse(v["@id"]) && v["@id"].startsWith("at://") ? new URL("at://" + encodeURIComponent(v["@id"].substring(5))) : new URL(v["@id"]));
|
|
28864
29416
|
continue;
|
|
28865
29417
|
}
|
|
28866
|
-
|
|
29418
|
+
const decoded = await Collection.fromJsonLd(v, {
|
|
28867
29419
|
...options,
|
|
28868
29420
|
baseUrl: values["@id"] == null ? options.baseUrl : new URL(values["@id"])
|
|
28869
|
-
})
|
|
29421
|
+
});
|
|
29422
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
29423
|
+
_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags.push(decoded);
|
|
28870
29424
|
}
|
|
28871
29425
|
instance.#_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags = _2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags;
|
|
28872
29426
|
const _3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = [];
|
|
@@ -28877,48 +29431,60 @@ var Organization = class Organization extends Object$1 {
|
|
|
28877
29431
|
_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.push(!URL.canParse(v["@id"]) && v["@id"].startsWith("at://") ? new URL("at://" + encodeURIComponent(v["@id"].substring(5))) : new URL(v["@id"]));
|
|
28878
29432
|
continue;
|
|
28879
29433
|
}
|
|
28880
|
-
|
|
29434
|
+
const decoded = await Collection.fromJsonLd(v, {
|
|
28881
29435
|
...options,
|
|
28882
29436
|
baseUrl: values["@id"] == null ? options.baseUrl : new URL(values["@id"])
|
|
28883
|
-
})
|
|
29437
|
+
});
|
|
29438
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
29439
|
+
_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.push(decoded);
|
|
28884
29440
|
}
|
|
28885
29441
|
instance.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = _3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams;
|
|
28886
29442
|
const _sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints = [];
|
|
28887
29443
|
let _sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints__array = values["https://www.w3.org/ns/activitystreams#endpoints"];
|
|
28888
29444
|
for (const v of _sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints__array == null ? [] : _sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints__array.length === 1 && "@list" in _sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints__array[0] ? _sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints__array[0]["@list"] : _sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints__array) {
|
|
28889
29445
|
if (v == null) continue;
|
|
28890
|
-
|
|
29446
|
+
const decoded = await Endpoints.fromJsonLd(v, {
|
|
28891
29447
|
...options,
|
|
28892
29448
|
baseUrl: values["@id"] == null ? options.baseUrl : new URL(values["@id"])
|
|
28893
|
-
})
|
|
29449
|
+
});
|
|
29450
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
29451
|
+
_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints.push(decoded);
|
|
28894
29452
|
}
|
|
28895
29453
|
instance.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints = _sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints;
|
|
28896
29454
|
const _gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable = [];
|
|
28897
29455
|
let _gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable__array = values["http://joinmastodon.org/ns#discoverable"];
|
|
28898
29456
|
for (const v of _gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable__array == null ? [] : _gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable__array.length === 1 && "@list" in _gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable__array[0] ? _gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable__array[0]["@list"] : _gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable__array) {
|
|
28899
29457
|
if (v == null) continue;
|
|
28900
|
-
|
|
29458
|
+
const decoded = v["@value"];
|
|
29459
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
29460
|
+
_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable.push(decoded);
|
|
28901
29461
|
}
|
|
28902
29462
|
instance.#_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable = _gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable;
|
|
28903
29463
|
const _2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended = [];
|
|
28904
29464
|
let _2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended__array = values["http://joinmastodon.org/ns#suspended"];
|
|
28905
29465
|
for (const v of _2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended__array == null ? [] : _2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended__array.length === 1 && "@list" in _2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended__array[0] ? _2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended__array[0]["@list"] : _2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended__array) {
|
|
28906
29466
|
if (v == null) continue;
|
|
28907
|
-
|
|
29467
|
+
const decoded = v["@value"];
|
|
29468
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
29469
|
+
_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended.push(decoded);
|
|
28908
29470
|
}
|
|
28909
29471
|
instance.#_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended = _2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended;
|
|
28910
29472
|
const _79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial = [];
|
|
28911
29473
|
let _79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial__array = values["http://joinmastodon.org/ns#memorial"];
|
|
28912
29474
|
for (const v of _79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial__array == null ? [] : _79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial__array.length === 1 && "@list" in _79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial__array[0] ? _79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial__array[0]["@list"] : _79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial__array) {
|
|
28913
29475
|
if (v == null) continue;
|
|
28914
|
-
|
|
29476
|
+
const decoded = v["@value"];
|
|
29477
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
29478
|
+
_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial.push(decoded);
|
|
28915
29479
|
}
|
|
28916
29480
|
instance.#_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial = _79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial;
|
|
28917
29481
|
const _2diCorzqPGQQqftp6e4SrCEwEnyk_indexable = [];
|
|
28918
29482
|
let _2diCorzqPGQQqftp6e4SrCEwEnyk_indexable__array = values["http://joinmastodon.org/ns#indexable"];
|
|
28919
29483
|
for (const v of _2diCorzqPGQQqftp6e4SrCEwEnyk_indexable__array == null ? [] : _2diCorzqPGQQqftp6e4SrCEwEnyk_indexable__array.length === 1 && "@list" in _2diCorzqPGQQqftp6e4SrCEwEnyk_indexable__array[0] ? _2diCorzqPGQQqftp6e4SrCEwEnyk_indexable__array[0]["@list"] : _2diCorzqPGQQqftp6e4SrCEwEnyk_indexable__array) {
|
|
28920
29484
|
if (v == null) continue;
|
|
28921
|
-
|
|
29485
|
+
const decoded = v["@value"];
|
|
29486
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
29487
|
+
_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable.push(decoded);
|
|
28922
29488
|
}
|
|
28923
29489
|
instance.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable = _2diCorzqPGQQqftp6e4SrCEwEnyk_indexable;
|
|
28924
29490
|
const _2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = [];
|
|
@@ -28945,7 +29511,11 @@ var Organization = class Organization extends Object$1 {
|
|
|
28945
29511
|
...options,
|
|
28946
29512
|
baseUrl: values["@id"] == null ? options.baseUrl : new URL(values["@id"])
|
|
28947
29513
|
}) : void 0;
|
|
28948
|
-
if (typeof decoded === "undefined")
|
|
29514
|
+
if (typeof decoded === "undefined") {
|
|
29515
|
+
shouldCacheJsonLd = false;
|
|
29516
|
+
continue;
|
|
29517
|
+
}
|
|
29518
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
28949
29519
|
_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo.push(decoded);
|
|
28950
29520
|
}
|
|
28951
29521
|
instance.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = _2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo;
|
|
@@ -28973,7 +29543,11 @@ var Organization = class Organization extends Object$1 {
|
|
|
28973
29543
|
...options,
|
|
28974
29544
|
baseUrl: values["@id"] == null ? options.baseUrl : new URL(values["@id"])
|
|
28975
29545
|
}) : void 0;
|
|
28976
|
-
if (typeof decoded === "undefined")
|
|
29546
|
+
if (typeof decoded === "undefined") {
|
|
29547
|
+
shouldCacheJsonLd = false;
|
|
29548
|
+
continue;
|
|
29549
|
+
}
|
|
29550
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
28977
29551
|
_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs.push(decoded);
|
|
28978
29552
|
}
|
|
28979
29553
|
instance.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = _3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs;
|
|
@@ -28985,27 +29559,34 @@ var Organization = class Organization extends Object$1 {
|
|
|
28985
29559
|
_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.push(!URL.canParse(v["@id"]) && v["@id"].startsWith("at://") ? new URL("at://" + encodeURIComponent(v["@id"].substring(5))) : new URL(v["@id"]));
|
|
28986
29560
|
continue;
|
|
28987
29561
|
}
|
|
28988
|
-
|
|
29562
|
+
const decoded = await DidService.fromJsonLd(v, {
|
|
28989
29563
|
...options,
|
|
28990
29564
|
baseUrl: values["@id"] == null ? options.baseUrl : new URL(values["@id"])
|
|
28991
|
-
})
|
|
29565
|
+
});
|
|
29566
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
29567
|
+
_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.push(decoded);
|
|
28992
29568
|
}
|
|
28993
29569
|
instance.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = _4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service;
|
|
28994
29570
|
const _QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage = [];
|
|
28995
29571
|
let _QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage__array = values["https://misskey-hub.net/ns#_misskey_followedMessage"];
|
|
28996
29572
|
for (const v of _QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage__array == null ? [] : _QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage__array.length === 1 && "@list" in _QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage__array[0] ? _QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage__array[0]["@list"] : _QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage__array) {
|
|
28997
29573
|
if (v == null) continue;
|
|
28998
|
-
|
|
29574
|
+
const decoded = v["@value"];
|
|
29575
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
29576
|
+
_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage.push(decoded);
|
|
28999
29577
|
}
|
|
29000
29578
|
instance.#_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage = _QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage;
|
|
29001
29579
|
const _2xEU4QtkC53RAun67T81Egqt9vmL_isCat = [];
|
|
29002
29580
|
let _2xEU4QtkC53RAun67T81Egqt9vmL_isCat__array = values["https://misskey-hub.net/ns#isCat"];
|
|
29003
29581
|
for (const v of _2xEU4QtkC53RAun67T81Egqt9vmL_isCat__array == null ? [] : _2xEU4QtkC53RAun67T81Egqt9vmL_isCat__array.length === 1 && "@list" in _2xEU4QtkC53RAun67T81Egqt9vmL_isCat__array[0] ? _2xEU4QtkC53RAun67T81Egqt9vmL_isCat__array[0]["@list"] : _2xEU4QtkC53RAun67T81Egqt9vmL_isCat__array) {
|
|
29004
29582
|
if (v == null) continue;
|
|
29005
|
-
|
|
29583
|
+
const decoded = v["@value"];
|
|
29584
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
29585
|
+
_2xEU4QtkC53RAun67T81Egqt9vmL_isCat.push(decoded);
|
|
29006
29586
|
}
|
|
29007
29587
|
instance.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat = _2xEU4QtkC53RAun67T81Egqt9vmL_isCat;
|
|
29008
|
-
|
|
29588
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
29589
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
29009
29590
|
instance._cachedJsonLd = structuredClone(json);
|
|
29010
29591
|
} catch {
|
|
29011
29592
|
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -29275,7 +29856,9 @@ var Page = class Page extends Document {
|
|
|
29275
29856
|
_fromSubclass: true
|
|
29276
29857
|
});
|
|
29277
29858
|
if (!(instance instanceof Page)) throw new TypeError("Unexpected type: " + instance.constructor.name);
|
|
29278
|
-
|
|
29859
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
29860
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
29861
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
29279
29862
|
instance._cachedJsonLd = structuredClone(json);
|
|
29280
29863
|
} catch {
|
|
29281
29864
|
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -32140,12 +32723,17 @@ var Person = class Person extends Object$1 {
|
|
|
32140
32723
|
_fromSubclass: true
|
|
32141
32724
|
});
|
|
32142
32725
|
if (!(instance instanceof Person)) throw new TypeError("Unexpected type: " + instance.constructor.name);
|
|
32726
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
32143
32727
|
const _3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = [];
|
|
32144
32728
|
let _3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername__array = values["https://www.w3.org/ns/activitystreams#preferredUsername"];
|
|
32145
32729
|
for (const v of _3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername__array == null ? [] : _3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername__array.length === 1 && "@list" in _3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername__array[0] ? _3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername__array[0]["@list"] : _3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername__array) {
|
|
32146
32730
|
if (v == null) continue;
|
|
32147
|
-
const decoded = typeof v === "object" && "@value" in v && typeof v["@value"] === "string" && !("@language" in v) ? v["@value"] : typeof v === "object" && "@language" in v && "@value" in v && typeof v["@language"] === "string" && typeof v["@value"] === "string" ? new _fedify_vocab_runtime.LanguageString(v["@value"], v["@language"]) : void 0;
|
|
32148
|
-
if (typeof decoded === "undefined")
|
|
32731
|
+
const decoded = typeof v === "object" && "@value" in v && typeof v["@value"] === "string" && !("@language" in v) ? v["@value"] : typeof v === "object" && "@language" in v && "@value" in v && typeof v["@language"] === "string" && typeof v["@value"] === "string" && isValidLanguageTag(v["@language"]) ? new _fedify_vocab_runtime.LanguageString(v["@value"], v["@language"]) : void 0;
|
|
32732
|
+
if (typeof decoded === "undefined") {
|
|
32733
|
+
shouldCacheJsonLd = false;
|
|
32734
|
+
continue;
|
|
32735
|
+
}
|
|
32736
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
32149
32737
|
_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername.push(decoded);
|
|
32150
32738
|
}
|
|
32151
32739
|
instance.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = _3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername;
|
|
@@ -32157,10 +32745,12 @@ var Person = class Person extends Object$1 {
|
|
|
32157
32745
|
_axq166E2eZADq34V4MYUc8KMZdC_publicKey.push(!URL.canParse(v["@id"]) && v["@id"].startsWith("at://") ? new URL("at://" + encodeURIComponent(v["@id"].substring(5))) : new URL(v["@id"]));
|
|
32158
32746
|
continue;
|
|
32159
32747
|
}
|
|
32160
|
-
|
|
32748
|
+
const decoded = await CryptographicKey.fromJsonLd(v, {
|
|
32161
32749
|
...options,
|
|
32162
32750
|
baseUrl: values["@id"] == null ? options.baseUrl : new URL(values["@id"])
|
|
32163
|
-
})
|
|
32751
|
+
});
|
|
32752
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
32753
|
+
_axq166E2eZADq34V4MYUc8KMZdC_publicKey.push(decoded);
|
|
32164
32754
|
}
|
|
32165
32755
|
instance.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = _axq166E2eZADq34V4MYUc8KMZdC_publicKey;
|
|
32166
32756
|
const _4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = [];
|
|
@@ -32171,17 +32761,21 @@ var Person = class Person extends Object$1 {
|
|
|
32171
32761
|
_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.push(!URL.canParse(v["@id"]) && v["@id"].startsWith("at://") ? new URL("at://" + encodeURIComponent(v["@id"].substring(5))) : new URL(v["@id"]));
|
|
32172
32762
|
continue;
|
|
32173
32763
|
}
|
|
32174
|
-
|
|
32764
|
+
const decoded = await Multikey.fromJsonLd(v, {
|
|
32175
32765
|
...options,
|
|
32176
32766
|
baseUrl: values["@id"] == null ? options.baseUrl : new URL(values["@id"])
|
|
32177
|
-
})
|
|
32767
|
+
});
|
|
32768
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
32769
|
+
_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.push(decoded);
|
|
32178
32770
|
}
|
|
32179
32771
|
instance.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = _4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod;
|
|
32180
32772
|
const _36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = [];
|
|
32181
32773
|
let _36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers__array = values["https://www.w3.org/ns/activitystreams#manuallyApprovesFollowers"];
|
|
32182
32774
|
for (const v of _36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers__array == null ? [] : _36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers__array.length === 1 && "@list" in _36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers__array[0] ? _36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers__array[0]["@list"] : _36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers__array) {
|
|
32183
32775
|
if (v == null) continue;
|
|
32184
|
-
|
|
32776
|
+
const decoded = v["@value"];
|
|
32777
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
32778
|
+
_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers.push(decoded);
|
|
32185
32779
|
}
|
|
32186
32780
|
instance.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = _36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers;
|
|
32187
32781
|
const _3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox = [];
|
|
@@ -32199,7 +32793,11 @@ var Person = class Person extends Object$1 {
|
|
|
32199
32793
|
...options,
|
|
32200
32794
|
baseUrl: values["@id"] == null ? options.baseUrl : new URL(values["@id"])
|
|
32201
32795
|
}) : void 0;
|
|
32202
|
-
if (typeof decoded === "undefined")
|
|
32796
|
+
if (typeof decoded === "undefined") {
|
|
32797
|
+
shouldCacheJsonLd = false;
|
|
32798
|
+
continue;
|
|
32799
|
+
}
|
|
32800
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
32203
32801
|
_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox.push(decoded);
|
|
32204
32802
|
}
|
|
32205
32803
|
instance.#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox = _3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox;
|
|
@@ -32218,7 +32816,11 @@ var Person = class Person extends Object$1 {
|
|
|
32218
32816
|
...options,
|
|
32219
32817
|
baseUrl: values["@id"] == null ? options.baseUrl : new URL(values["@id"])
|
|
32220
32818
|
}) : void 0;
|
|
32221
|
-
if (typeof decoded === "undefined")
|
|
32819
|
+
if (typeof decoded === "undefined") {
|
|
32820
|
+
shouldCacheJsonLd = false;
|
|
32821
|
+
continue;
|
|
32822
|
+
}
|
|
32823
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
32222
32824
|
_41QwhqJouoLg3h8dRPKat21brynC_outbox.push(decoded);
|
|
32223
32825
|
}
|
|
32224
32826
|
instance.#_41QwhqJouoLg3h8dRPKat21brynC_outbox = _41QwhqJouoLg3h8dRPKat21brynC_outbox;
|
|
@@ -32230,10 +32832,12 @@ var Person = class Person extends Object$1 {
|
|
|
32230
32832
|
_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following.push(!URL.canParse(v["@id"]) && v["@id"].startsWith("at://") ? new URL("at://" + encodeURIComponent(v["@id"].substring(5))) : new URL(v["@id"]));
|
|
32231
32833
|
continue;
|
|
32232
32834
|
}
|
|
32233
|
-
|
|
32835
|
+
const decoded = await Collection.fromJsonLd(v, {
|
|
32234
32836
|
...options,
|
|
32235
32837
|
baseUrl: values["@id"] == null ? options.baseUrl : new URL(values["@id"])
|
|
32236
|
-
})
|
|
32838
|
+
});
|
|
32839
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
32840
|
+
_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following.push(decoded);
|
|
32237
32841
|
}
|
|
32238
32842
|
instance.#_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following = _3yAv8jymNfNuJUDuBzJ1NQhdbAee_following;
|
|
32239
32843
|
const _BBCTgfphhsFzpVfKTykGSpBNwoA_followers = [];
|
|
@@ -32244,10 +32848,12 @@ var Person = class Person extends Object$1 {
|
|
|
32244
32848
|
_BBCTgfphhsFzpVfKTykGSpBNwoA_followers.push(!URL.canParse(v["@id"]) && v["@id"].startsWith("at://") ? new URL("at://" + encodeURIComponent(v["@id"].substring(5))) : new URL(v["@id"]));
|
|
32245
32849
|
continue;
|
|
32246
32850
|
}
|
|
32247
|
-
|
|
32851
|
+
const decoded = await Collection.fromJsonLd(v, {
|
|
32248
32852
|
...options,
|
|
32249
32853
|
baseUrl: values["@id"] == null ? options.baseUrl : new URL(values["@id"])
|
|
32250
|
-
})
|
|
32854
|
+
});
|
|
32855
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
32856
|
+
_BBCTgfphhsFzpVfKTykGSpBNwoA_followers.push(decoded);
|
|
32251
32857
|
}
|
|
32252
32858
|
instance.#_BBCTgfphhsFzpVfKTykGSpBNwoA_followers = _BBCTgfphhsFzpVfKTykGSpBNwoA_followers;
|
|
32253
32859
|
const _3bgkPwJanyTCoVFM9ovRcus8tKkU_liked = [];
|
|
@@ -32258,10 +32864,12 @@ var Person = class Person extends Object$1 {
|
|
|
32258
32864
|
_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked.push(!URL.canParse(v["@id"]) && v["@id"].startsWith("at://") ? new URL("at://" + encodeURIComponent(v["@id"].substring(5))) : new URL(v["@id"]));
|
|
32259
32865
|
continue;
|
|
32260
32866
|
}
|
|
32261
|
-
|
|
32867
|
+
const decoded = await Collection.fromJsonLd(v, {
|
|
32262
32868
|
...options,
|
|
32263
32869
|
baseUrl: values["@id"] == null ? options.baseUrl : new URL(values["@id"])
|
|
32264
|
-
})
|
|
32870
|
+
});
|
|
32871
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
32872
|
+
_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked.push(decoded);
|
|
32265
32873
|
}
|
|
32266
32874
|
instance.#_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked = _3bgkPwJanyTCoVFM9ovRcus8tKkU_liked;
|
|
32267
32875
|
const _4N1vBJzXDf8NbBumeECQMFvKetja_featured = [];
|
|
@@ -32272,10 +32880,12 @@ var Person = class Person extends Object$1 {
|
|
|
32272
32880
|
_4N1vBJzXDf8NbBumeECQMFvKetja_featured.push(!URL.canParse(v["@id"]) && v["@id"].startsWith("at://") ? new URL("at://" + encodeURIComponent(v["@id"].substring(5))) : new URL(v["@id"]));
|
|
32273
32881
|
continue;
|
|
32274
32882
|
}
|
|
32275
|
-
|
|
32883
|
+
const decoded = await Collection.fromJsonLd(v, {
|
|
32276
32884
|
...options,
|
|
32277
32885
|
baseUrl: values["@id"] == null ? options.baseUrl : new URL(values["@id"])
|
|
32278
|
-
})
|
|
32886
|
+
});
|
|
32887
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
32888
|
+
_4N1vBJzXDf8NbBumeECQMFvKetja_featured.push(decoded);
|
|
32279
32889
|
}
|
|
32280
32890
|
instance.#_4N1vBJzXDf8NbBumeECQMFvKetja_featured = _4N1vBJzXDf8NbBumeECQMFvKetja_featured;
|
|
32281
32891
|
const _2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags = [];
|
|
@@ -32286,10 +32896,12 @@ var Person = class Person extends Object$1 {
|
|
|
32286
32896
|
_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags.push(!URL.canParse(v["@id"]) && v["@id"].startsWith("at://") ? new URL("at://" + encodeURIComponent(v["@id"].substring(5))) : new URL(v["@id"]));
|
|
32287
32897
|
continue;
|
|
32288
32898
|
}
|
|
32289
|
-
|
|
32899
|
+
const decoded = await Collection.fromJsonLd(v, {
|
|
32290
32900
|
...options,
|
|
32291
32901
|
baseUrl: values["@id"] == null ? options.baseUrl : new URL(values["@id"])
|
|
32292
|
-
})
|
|
32902
|
+
});
|
|
32903
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
32904
|
+
_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags.push(decoded);
|
|
32293
32905
|
}
|
|
32294
32906
|
instance.#_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags = _2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags;
|
|
32295
32907
|
const _3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = [];
|
|
@@ -32300,48 +32912,60 @@ var Person = class Person extends Object$1 {
|
|
|
32300
32912
|
_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.push(!URL.canParse(v["@id"]) && v["@id"].startsWith("at://") ? new URL("at://" + encodeURIComponent(v["@id"].substring(5))) : new URL(v["@id"]));
|
|
32301
32913
|
continue;
|
|
32302
32914
|
}
|
|
32303
|
-
|
|
32915
|
+
const decoded = await Collection.fromJsonLd(v, {
|
|
32304
32916
|
...options,
|
|
32305
32917
|
baseUrl: values["@id"] == null ? options.baseUrl : new URL(values["@id"])
|
|
32306
|
-
})
|
|
32918
|
+
});
|
|
32919
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
32920
|
+
_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.push(decoded);
|
|
32307
32921
|
}
|
|
32308
32922
|
instance.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = _3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams;
|
|
32309
32923
|
const _sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints = [];
|
|
32310
32924
|
let _sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints__array = values["https://www.w3.org/ns/activitystreams#endpoints"];
|
|
32311
32925
|
for (const v of _sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints__array == null ? [] : _sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints__array.length === 1 && "@list" in _sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints__array[0] ? _sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints__array[0]["@list"] : _sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints__array) {
|
|
32312
32926
|
if (v == null) continue;
|
|
32313
|
-
|
|
32927
|
+
const decoded = await Endpoints.fromJsonLd(v, {
|
|
32314
32928
|
...options,
|
|
32315
32929
|
baseUrl: values["@id"] == null ? options.baseUrl : new URL(values["@id"])
|
|
32316
|
-
})
|
|
32930
|
+
});
|
|
32931
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
32932
|
+
_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints.push(decoded);
|
|
32317
32933
|
}
|
|
32318
32934
|
instance.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints = _sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints;
|
|
32319
32935
|
const _gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable = [];
|
|
32320
32936
|
let _gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable__array = values["http://joinmastodon.org/ns#discoverable"];
|
|
32321
32937
|
for (const v of _gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable__array == null ? [] : _gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable__array.length === 1 && "@list" in _gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable__array[0] ? _gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable__array[0]["@list"] : _gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable__array) {
|
|
32322
32938
|
if (v == null) continue;
|
|
32323
|
-
|
|
32939
|
+
const decoded = v["@value"];
|
|
32940
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
32941
|
+
_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable.push(decoded);
|
|
32324
32942
|
}
|
|
32325
32943
|
instance.#_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable = _gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable;
|
|
32326
32944
|
const _2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended = [];
|
|
32327
32945
|
let _2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended__array = values["http://joinmastodon.org/ns#suspended"];
|
|
32328
32946
|
for (const v of _2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended__array == null ? [] : _2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended__array.length === 1 && "@list" in _2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended__array[0] ? _2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended__array[0]["@list"] : _2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended__array) {
|
|
32329
32947
|
if (v == null) continue;
|
|
32330
|
-
|
|
32948
|
+
const decoded = v["@value"];
|
|
32949
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
32950
|
+
_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended.push(decoded);
|
|
32331
32951
|
}
|
|
32332
32952
|
instance.#_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended = _2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended;
|
|
32333
32953
|
const _79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial = [];
|
|
32334
32954
|
let _79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial__array = values["http://joinmastodon.org/ns#memorial"];
|
|
32335
32955
|
for (const v of _79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial__array == null ? [] : _79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial__array.length === 1 && "@list" in _79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial__array[0] ? _79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial__array[0]["@list"] : _79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial__array) {
|
|
32336
32956
|
if (v == null) continue;
|
|
32337
|
-
|
|
32957
|
+
const decoded = v["@value"];
|
|
32958
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
32959
|
+
_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial.push(decoded);
|
|
32338
32960
|
}
|
|
32339
32961
|
instance.#_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial = _79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial;
|
|
32340
32962
|
const _2diCorzqPGQQqftp6e4SrCEwEnyk_indexable = [];
|
|
32341
32963
|
let _2diCorzqPGQQqftp6e4SrCEwEnyk_indexable__array = values["http://joinmastodon.org/ns#indexable"];
|
|
32342
32964
|
for (const v of _2diCorzqPGQQqftp6e4SrCEwEnyk_indexable__array == null ? [] : _2diCorzqPGQQqftp6e4SrCEwEnyk_indexable__array.length === 1 && "@list" in _2diCorzqPGQQqftp6e4SrCEwEnyk_indexable__array[0] ? _2diCorzqPGQQqftp6e4SrCEwEnyk_indexable__array[0]["@list"] : _2diCorzqPGQQqftp6e4SrCEwEnyk_indexable__array) {
|
|
32343
32965
|
if (v == null) continue;
|
|
32344
|
-
|
|
32966
|
+
const decoded = v["@value"];
|
|
32967
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
32968
|
+
_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable.push(decoded);
|
|
32345
32969
|
}
|
|
32346
32970
|
instance.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable = _2diCorzqPGQQqftp6e4SrCEwEnyk_indexable;
|
|
32347
32971
|
const _2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = [];
|
|
@@ -32368,7 +32992,11 @@ var Person = class Person extends Object$1 {
|
|
|
32368
32992
|
...options,
|
|
32369
32993
|
baseUrl: values["@id"] == null ? options.baseUrl : new URL(values["@id"])
|
|
32370
32994
|
}) : void 0;
|
|
32371
|
-
if (typeof decoded === "undefined")
|
|
32995
|
+
if (typeof decoded === "undefined") {
|
|
32996
|
+
shouldCacheJsonLd = false;
|
|
32997
|
+
continue;
|
|
32998
|
+
}
|
|
32999
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
32372
33000
|
_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo.push(decoded);
|
|
32373
33001
|
}
|
|
32374
33002
|
instance.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = _2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo;
|
|
@@ -32396,7 +33024,11 @@ var Person = class Person extends Object$1 {
|
|
|
32396
33024
|
...options,
|
|
32397
33025
|
baseUrl: values["@id"] == null ? options.baseUrl : new URL(values["@id"])
|
|
32398
33026
|
}) : void 0;
|
|
32399
|
-
if (typeof decoded === "undefined")
|
|
33027
|
+
if (typeof decoded === "undefined") {
|
|
33028
|
+
shouldCacheJsonLd = false;
|
|
33029
|
+
continue;
|
|
33030
|
+
}
|
|
33031
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
32400
33032
|
_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs.push(decoded);
|
|
32401
33033
|
}
|
|
32402
33034
|
instance.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = _3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs;
|
|
@@ -32408,27 +33040,34 @@ var Person = class Person extends Object$1 {
|
|
|
32408
33040
|
_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.push(!URL.canParse(v["@id"]) && v["@id"].startsWith("at://") ? new URL("at://" + encodeURIComponent(v["@id"].substring(5))) : new URL(v["@id"]));
|
|
32409
33041
|
continue;
|
|
32410
33042
|
}
|
|
32411
|
-
|
|
33043
|
+
const decoded = await DidService.fromJsonLd(v, {
|
|
32412
33044
|
...options,
|
|
32413
33045
|
baseUrl: values["@id"] == null ? options.baseUrl : new URL(values["@id"])
|
|
32414
|
-
})
|
|
33046
|
+
});
|
|
33047
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
33048
|
+
_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.push(decoded);
|
|
32415
33049
|
}
|
|
32416
33050
|
instance.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = _4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service;
|
|
32417
33051
|
const _QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage = [];
|
|
32418
33052
|
let _QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage__array = values["https://misskey-hub.net/ns#_misskey_followedMessage"];
|
|
32419
33053
|
for (const v of _QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage__array == null ? [] : _QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage__array.length === 1 && "@list" in _QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage__array[0] ? _QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage__array[0]["@list"] : _QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage__array) {
|
|
32420
33054
|
if (v == null) continue;
|
|
32421
|
-
|
|
33055
|
+
const decoded = v["@value"];
|
|
33056
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
33057
|
+
_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage.push(decoded);
|
|
32422
33058
|
}
|
|
32423
33059
|
instance.#_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage = _QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage;
|
|
32424
33060
|
const _2xEU4QtkC53RAun67T81Egqt9vmL_isCat = [];
|
|
32425
33061
|
let _2xEU4QtkC53RAun67T81Egqt9vmL_isCat__array = values["https://misskey-hub.net/ns#isCat"];
|
|
32426
33062
|
for (const v of _2xEU4QtkC53RAun67T81Egqt9vmL_isCat__array == null ? [] : _2xEU4QtkC53RAun67T81Egqt9vmL_isCat__array.length === 1 && "@list" in _2xEU4QtkC53RAun67T81Egqt9vmL_isCat__array[0] ? _2xEU4QtkC53RAun67T81Egqt9vmL_isCat__array[0]["@list"] : _2xEU4QtkC53RAun67T81Egqt9vmL_isCat__array) {
|
|
32427
33063
|
if (v == null) continue;
|
|
32428
|
-
|
|
33064
|
+
const decoded = v["@value"];
|
|
33065
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
33066
|
+
_2xEU4QtkC53RAun67T81Egqt9vmL_isCat.push(decoded);
|
|
32429
33067
|
}
|
|
32430
33068
|
instance.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat = _2xEU4QtkC53RAun67T81Egqt9vmL_isCat;
|
|
32431
|
-
|
|
33069
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
33070
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
32432
33071
|
instance._cachedJsonLd = structuredClone(json);
|
|
32433
33072
|
} catch {
|
|
32434
33073
|
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -32875,39 +33514,50 @@ var Place = class Place extends Object$1 {
|
|
|
32875
33514
|
_fromSubclass: true
|
|
32876
33515
|
});
|
|
32877
33516
|
if (!(instance instanceof Place)) throw new TypeError("Unexpected type: " + instance.constructor.name);
|
|
33517
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
32878
33518
|
const _3UCsHnBHvDAXJnBuzw3zw1VVs3Ne_accuracy = [];
|
|
32879
33519
|
let _3UCsHnBHvDAXJnBuzw3zw1VVs3Ne_accuracy__array = values["https://www.w3.org/ns/activitystreams#accuracy"];
|
|
32880
33520
|
for (const v of _3UCsHnBHvDAXJnBuzw3zw1VVs3Ne_accuracy__array == null ? [] : _3UCsHnBHvDAXJnBuzw3zw1VVs3Ne_accuracy__array.length === 1 && "@list" in _3UCsHnBHvDAXJnBuzw3zw1VVs3Ne_accuracy__array[0] ? _3UCsHnBHvDAXJnBuzw3zw1VVs3Ne_accuracy__array[0]["@list"] : _3UCsHnBHvDAXJnBuzw3zw1VVs3Ne_accuracy__array) {
|
|
32881
33521
|
if (v == null) continue;
|
|
32882
|
-
|
|
33522
|
+
const decoded = v["@value"];
|
|
33523
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
33524
|
+
_3UCsHnBHvDAXJnBuzw3zw1VVs3Ne_accuracy.push(decoded);
|
|
32883
33525
|
}
|
|
32884
33526
|
instance.#_3UCsHnBHvDAXJnBuzw3zw1VVs3Ne_accuracy = _3UCsHnBHvDAXJnBuzw3zw1VVs3Ne_accuracy;
|
|
32885
33527
|
const _3Q6KDcFQUJRRaBux1BL2yp5QWiBi_altitude = [];
|
|
32886
33528
|
let _3Q6KDcFQUJRRaBux1BL2yp5QWiBi_altitude__array = values["https://www.w3.org/ns/activitystreams#altitude"];
|
|
32887
33529
|
for (const v of _3Q6KDcFQUJRRaBux1BL2yp5QWiBi_altitude__array == null ? [] : _3Q6KDcFQUJRRaBux1BL2yp5QWiBi_altitude__array.length === 1 && "@list" in _3Q6KDcFQUJRRaBux1BL2yp5QWiBi_altitude__array[0] ? _3Q6KDcFQUJRRaBux1BL2yp5QWiBi_altitude__array[0]["@list"] : _3Q6KDcFQUJRRaBux1BL2yp5QWiBi_altitude__array) {
|
|
32888
33530
|
if (v == null) continue;
|
|
32889
|
-
|
|
33531
|
+
const decoded = v["@value"];
|
|
33532
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
33533
|
+
_3Q6KDcFQUJRRaBux1BL2yp5QWiBi_altitude.push(decoded);
|
|
32890
33534
|
}
|
|
32891
33535
|
instance.#_3Q6KDcFQUJRRaBux1BL2yp5QWiBi_altitude = _3Q6KDcFQUJRRaBux1BL2yp5QWiBi_altitude;
|
|
32892
33536
|
const _3g85RoKRnaNjP7DFyLSvsWDg7HGM_latitude = [];
|
|
32893
33537
|
let _3g85RoKRnaNjP7DFyLSvsWDg7HGM_latitude__array = values["https://www.w3.org/ns/activitystreams#latitude"];
|
|
32894
33538
|
for (const v of _3g85RoKRnaNjP7DFyLSvsWDg7HGM_latitude__array == null ? [] : _3g85RoKRnaNjP7DFyLSvsWDg7HGM_latitude__array.length === 1 && "@list" in _3g85RoKRnaNjP7DFyLSvsWDg7HGM_latitude__array[0] ? _3g85RoKRnaNjP7DFyLSvsWDg7HGM_latitude__array[0]["@list"] : _3g85RoKRnaNjP7DFyLSvsWDg7HGM_latitude__array) {
|
|
32895
33539
|
if (v == null) continue;
|
|
32896
|
-
|
|
33540
|
+
const decoded = v["@value"];
|
|
33541
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
33542
|
+
_3g85RoKRnaNjP7DFyLSvsWDg7HGM_latitude.push(decoded);
|
|
32897
33543
|
}
|
|
32898
33544
|
instance.#_3g85RoKRnaNjP7DFyLSvsWDg7HGM_latitude = _3g85RoKRnaNjP7DFyLSvsWDg7HGM_latitude;
|
|
32899
33545
|
const _B2GEYdS9yBAF3ho1pm1rcRg7cSf_longitude = [];
|
|
32900
33546
|
let _B2GEYdS9yBAF3ho1pm1rcRg7cSf_longitude__array = values["https://www.w3.org/ns/activitystreams#longitude"];
|
|
32901
33547
|
for (const v of _B2GEYdS9yBAF3ho1pm1rcRg7cSf_longitude__array == null ? [] : _B2GEYdS9yBAF3ho1pm1rcRg7cSf_longitude__array.length === 1 && "@list" in _B2GEYdS9yBAF3ho1pm1rcRg7cSf_longitude__array[0] ? _B2GEYdS9yBAF3ho1pm1rcRg7cSf_longitude__array[0]["@list"] : _B2GEYdS9yBAF3ho1pm1rcRg7cSf_longitude__array) {
|
|
32902
33548
|
if (v == null) continue;
|
|
32903
|
-
|
|
33549
|
+
const decoded = v["@value"];
|
|
33550
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
33551
|
+
_B2GEYdS9yBAF3ho1pm1rcRg7cSf_longitude.push(decoded);
|
|
32904
33552
|
}
|
|
32905
33553
|
instance.#_B2GEYdS9yBAF3ho1pm1rcRg7cSf_longitude = _B2GEYdS9yBAF3ho1pm1rcRg7cSf_longitude;
|
|
32906
33554
|
const _3ga86BKHUtRkGx5PHBjRiUXXzwnw_radius = [];
|
|
32907
33555
|
let _3ga86BKHUtRkGx5PHBjRiUXXzwnw_radius__array = values["https://www.w3.org/ns/activitystreams#radius"];
|
|
32908
33556
|
for (const v of _3ga86BKHUtRkGx5PHBjRiUXXzwnw_radius__array == null ? [] : _3ga86BKHUtRkGx5PHBjRiUXXzwnw_radius__array.length === 1 && "@list" in _3ga86BKHUtRkGx5PHBjRiUXXzwnw_radius__array[0] ? _3ga86BKHUtRkGx5PHBjRiUXXzwnw_radius__array[0]["@list"] : _3ga86BKHUtRkGx5PHBjRiUXXzwnw_radius__array) {
|
|
32909
33557
|
if (v == null) continue;
|
|
32910
|
-
|
|
33558
|
+
const decoded = v["@value"];
|
|
33559
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
33560
|
+
_3ga86BKHUtRkGx5PHBjRiUXXzwnw_radius.push(decoded);
|
|
32911
33561
|
}
|
|
32912
33562
|
instance.#_3ga86BKHUtRkGx5PHBjRiUXXzwnw_radius = _3ga86BKHUtRkGx5PHBjRiUXXzwnw_radius;
|
|
32913
33563
|
const _oKrwxU4V8wiKhMW1QEYQibcJh8c_units = [];
|
|
@@ -32915,11 +33565,16 @@ var Place = class Place extends Object$1 {
|
|
|
32915
33565
|
for (const v of _oKrwxU4V8wiKhMW1QEYQibcJh8c_units__array == null ? [] : _oKrwxU4V8wiKhMW1QEYQibcJh8c_units__array.length === 1 && "@list" in _oKrwxU4V8wiKhMW1QEYQibcJh8c_units__array[0] ? _oKrwxU4V8wiKhMW1QEYQibcJh8c_units__array[0]["@list"] : _oKrwxU4V8wiKhMW1QEYQibcJh8c_units__array) {
|
|
32916
33566
|
if (v == null) continue;
|
|
32917
33567
|
const decoded = typeof v === "object" && "@value" in v && (v["@value"] == "cm" || v["@value"] == "feet" || v["@value"] == "inches" || v["@value"] == "km" || v["@value"] == "m" || v["@value"] == "miles") ? v["@value"] : typeof v === "object" && "@id" in v && typeof v["@id"] === "string" && v["@id"] !== "" ? v["@id"].startsWith("at://") ? new URL("at://" + encodeURIComponent(v["@id"].includes("/", 5) ? v["@id"].slice(5, v["@id"].indexOf("/", 5)) : v["@id"].slice(5)) + (v["@id"].includes("/", 5) ? v["@id"].slice(v["@id"].indexOf("/", 5)) : "")) : URL.canParse(v["@id"]) && (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) ? new URL(v["@id"]) : new URL(v["@id"], values["@id"] == null ? options.baseUrl : new URL(values["@id"])) : void 0;
|
|
32918
|
-
if (typeof decoded === "undefined")
|
|
33568
|
+
if (typeof decoded === "undefined") {
|
|
33569
|
+
shouldCacheJsonLd = false;
|
|
33570
|
+
continue;
|
|
33571
|
+
}
|
|
33572
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
32919
33573
|
_oKrwxU4V8wiKhMW1QEYQibcJh8c_units.push(decoded);
|
|
32920
33574
|
}
|
|
32921
33575
|
instance.#_oKrwxU4V8wiKhMW1QEYQibcJh8c_units = _oKrwxU4V8wiKhMW1QEYQibcJh8c_units;
|
|
32922
|
-
|
|
33576
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
33577
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
32923
33578
|
instance._cachedJsonLd = structuredClone(json);
|
|
32924
33579
|
} catch {
|
|
32925
33580
|
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -33259,6 +33914,7 @@ var Profile = class Profile extends Object$1 {
|
|
|
33259
33914
|
_fromSubclass: true
|
|
33260
33915
|
});
|
|
33261
33916
|
if (!(instance instanceof Profile)) throw new TypeError("Unexpected type: " + instance.constructor.name);
|
|
33917
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
33262
33918
|
const _3CLQ1PLSXrhSQbTGGHuxNyaEFKM1_describes = [];
|
|
33263
33919
|
let _3CLQ1PLSXrhSQbTGGHuxNyaEFKM1_describes__array = values["https://www.w3.org/ns/activitystreams#describes"];
|
|
33264
33920
|
for (const v of _3CLQ1PLSXrhSQbTGGHuxNyaEFKM1_describes__array == null ? [] : _3CLQ1PLSXrhSQbTGGHuxNyaEFKM1_describes__array.length === 1 && "@list" in _3CLQ1PLSXrhSQbTGGHuxNyaEFKM1_describes__array[0] ? _3CLQ1PLSXrhSQbTGGHuxNyaEFKM1_describes__array[0]["@list"] : _3CLQ1PLSXrhSQbTGGHuxNyaEFKM1_describes__array) {
|
|
@@ -33267,13 +33923,16 @@ var Profile = class Profile extends Object$1 {
|
|
|
33267
33923
|
_3CLQ1PLSXrhSQbTGGHuxNyaEFKM1_describes.push(!URL.canParse(v["@id"]) && v["@id"].startsWith("at://") ? new URL("at://" + encodeURIComponent(v["@id"].substring(5))) : new URL(v["@id"]));
|
|
33268
33924
|
continue;
|
|
33269
33925
|
}
|
|
33270
|
-
|
|
33926
|
+
const decoded = await Object$1.fromJsonLd(v, {
|
|
33271
33927
|
...options,
|
|
33272
33928
|
baseUrl: values["@id"] == null ? options.baseUrl : new URL(values["@id"])
|
|
33273
|
-
})
|
|
33929
|
+
});
|
|
33930
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
33931
|
+
_3CLQ1PLSXrhSQbTGGHuxNyaEFKM1_describes.push(decoded);
|
|
33274
33932
|
}
|
|
33275
33933
|
instance.#_3CLQ1PLSXrhSQbTGGHuxNyaEFKM1_describes = _3CLQ1PLSXrhSQbTGGHuxNyaEFKM1_describes;
|
|
33276
|
-
|
|
33934
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
33935
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
33277
33936
|
instance._cachedJsonLd = structuredClone(json);
|
|
33278
33937
|
} catch {
|
|
33279
33938
|
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -33815,6 +34474,7 @@ var Question = class Question extends IntransitiveActivity {
|
|
|
33815
34474
|
_fromSubclass: true
|
|
33816
34475
|
});
|
|
33817
34476
|
if (!(instance instanceof Question)) throw new TypeError("Unexpected type: " + instance.constructor.name);
|
|
34477
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
33818
34478
|
const _2N5scKaVEcdYHFmfKYYacAwUhUgQ_oneOf = [];
|
|
33819
34479
|
let _2N5scKaVEcdYHFmfKYYacAwUhUgQ_oneOf__array = values["https://www.w3.org/ns/activitystreams#oneOf"];
|
|
33820
34480
|
for (const v of _2N5scKaVEcdYHFmfKYYacAwUhUgQ_oneOf__array == null ? [] : _2N5scKaVEcdYHFmfKYYacAwUhUgQ_oneOf__array.length === 1 && "@list" in _2N5scKaVEcdYHFmfKYYacAwUhUgQ_oneOf__array[0] ? _2N5scKaVEcdYHFmfKYYacAwUhUgQ_oneOf__array[0]["@list"] : _2N5scKaVEcdYHFmfKYYacAwUhUgQ_oneOf__array) {
|
|
@@ -33823,10 +34483,12 @@ var Question = class Question extends IntransitiveActivity {
|
|
|
33823
34483
|
_2N5scKaVEcdYHFmfKYYacAwUhUgQ_oneOf.push(!URL.canParse(v["@id"]) && v["@id"].startsWith("at://") ? new URL("at://" + encodeURIComponent(v["@id"].substring(5))) : new URL(v["@id"]));
|
|
33824
34484
|
continue;
|
|
33825
34485
|
}
|
|
33826
|
-
|
|
34486
|
+
const decoded = await Object$1.fromJsonLd(v, {
|
|
33827
34487
|
...options,
|
|
33828
34488
|
baseUrl: values["@id"] == null ? options.baseUrl : new URL(values["@id"])
|
|
33829
|
-
})
|
|
34489
|
+
});
|
|
34490
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
34491
|
+
_2N5scKaVEcdYHFmfKYYacAwUhUgQ_oneOf.push(decoded);
|
|
33830
34492
|
}
|
|
33831
34493
|
instance.#_2N5scKaVEcdYHFmfKYYacAwUhUgQ_oneOf = _2N5scKaVEcdYHFmfKYYacAwUhUgQ_oneOf;
|
|
33832
34494
|
const _2mV6isMTPRKbWdLCjcpiEysq5dAY_anyOf = [];
|
|
@@ -33837,10 +34499,12 @@ var Question = class Question extends IntransitiveActivity {
|
|
|
33837
34499
|
_2mV6isMTPRKbWdLCjcpiEysq5dAY_anyOf.push(!URL.canParse(v["@id"]) && v["@id"].startsWith("at://") ? new URL("at://" + encodeURIComponent(v["@id"].substring(5))) : new URL(v["@id"]));
|
|
33838
34500
|
continue;
|
|
33839
34501
|
}
|
|
33840
|
-
|
|
34502
|
+
const decoded = await Object$1.fromJsonLd(v, {
|
|
33841
34503
|
...options,
|
|
33842
34504
|
baseUrl: values["@id"] == null ? options.baseUrl : new URL(values["@id"])
|
|
33843
|
-
})
|
|
34505
|
+
});
|
|
34506
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
34507
|
+
_2mV6isMTPRKbWdLCjcpiEysq5dAY_anyOf.push(decoded);
|
|
33844
34508
|
}
|
|
33845
34509
|
instance.#_2mV6isMTPRKbWdLCjcpiEysq5dAY_anyOf = _2mV6isMTPRKbWdLCjcpiEysq5dAY_anyOf;
|
|
33846
34510
|
const _3KronwL8DiiKBRcJFKQPiEHm8xb6_closed = [];
|
|
@@ -33848,7 +34512,11 @@ var Question = class Question extends IntransitiveActivity {
|
|
|
33848
34512
|
for (const v of _3KronwL8DiiKBRcJFKQPiEHm8xb6_closed__array == null ? [] : _3KronwL8DiiKBRcJFKQPiEHm8xb6_closed__array.length === 1 && "@list" in _3KronwL8DiiKBRcJFKQPiEHm8xb6_closed__array[0] ? _3KronwL8DiiKBRcJFKQPiEHm8xb6_closed__array[0]["@list"] : _3KronwL8DiiKBRcJFKQPiEHm8xb6_closed__array) {
|
|
33849
34513
|
if (v == null) continue;
|
|
33850
34514
|
const decoded = typeof v === "object" && "@type" in v && "@value" in v && typeof v["@value"] === "string" && v["@type"] === "http://www.w3.org/2001/XMLSchema#dateTime" && new Date(v["@value"]).toString() !== "Invalid Date" ? Temporal.Instant.from(v["@value"].substring(19).match(/[Z+-]/) ? v["@value"] : v["@value"] + "Z") : typeof v === "object" && "@value" in v && typeof v["@value"] === "boolean" ? v["@value"] : void 0;
|
|
33851
|
-
if (typeof decoded === "undefined")
|
|
34515
|
+
if (typeof decoded === "undefined") {
|
|
34516
|
+
shouldCacheJsonLd = false;
|
|
34517
|
+
continue;
|
|
34518
|
+
}
|
|
34519
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
33852
34520
|
_3KronwL8DiiKBRcJFKQPiEHm8xb6_closed.push(decoded);
|
|
33853
34521
|
}
|
|
33854
34522
|
instance.#_3KronwL8DiiKBRcJFKQPiEHm8xb6_closed = _3KronwL8DiiKBRcJFKQPiEHm8xb6_closed;
|
|
@@ -33856,7 +34524,9 @@ var Question = class Question extends IntransitiveActivity {
|
|
|
33856
34524
|
let _3H4RdST7dxfmghccvE3rKD3KgcxG_votersCount__array = values["http://joinmastodon.org/ns#votersCount"];
|
|
33857
34525
|
for (const v of _3H4RdST7dxfmghccvE3rKD3KgcxG_votersCount__array == null ? [] : _3H4RdST7dxfmghccvE3rKD3KgcxG_votersCount__array.length === 1 && "@list" in _3H4RdST7dxfmghccvE3rKD3KgcxG_votersCount__array[0] ? _3H4RdST7dxfmghccvE3rKD3KgcxG_votersCount__array[0]["@list"] : _3H4RdST7dxfmghccvE3rKD3KgcxG_votersCount__array) {
|
|
33858
34526
|
if (v == null) continue;
|
|
33859
|
-
|
|
34527
|
+
const decoded = v["@value"];
|
|
34528
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
34529
|
+
_3H4RdST7dxfmghccvE3rKD3KgcxG_votersCount.push(decoded);
|
|
33860
34530
|
}
|
|
33861
34531
|
instance.#_3H4RdST7dxfmghccvE3rKD3KgcxG_votersCount = _3H4RdST7dxfmghccvE3rKD3KgcxG_votersCount;
|
|
33862
34532
|
const _K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl = [];
|
|
@@ -33865,10 +34535,13 @@ var Question = class Question extends IntransitiveActivity {
|
|
|
33865
34535
|
if (_K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl__array == null || _K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl__array.length < 1) _K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl__array = values["http://fedibird.com/ns#quoteUri"];
|
|
33866
34536
|
for (const v of _K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl__array == null ? [] : _K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl__array.length === 1 && "@list" in _K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl__array[0] ? _K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl__array[0]["@list"] : _K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl__array) {
|
|
33867
34537
|
if (v == null) continue;
|
|
33868
|
-
|
|
34538
|
+
const decoded = new URL(v["@value"]);
|
|
34539
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
34540
|
+
_K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl.push(decoded);
|
|
33869
34541
|
}
|
|
33870
34542
|
instance.#_K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl = _K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl;
|
|
33871
|
-
|
|
34543
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
34544
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
33872
34545
|
instance._cachedJsonLd = structuredClone(json);
|
|
33873
34546
|
} catch {
|
|
33874
34547
|
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -34041,7 +34714,9 @@ var Read = class Read extends Activity {
|
|
|
34041
34714
|
_fromSubclass: true
|
|
34042
34715
|
});
|
|
34043
34716
|
if (!(instance instanceof Read)) throw new TypeError("Unexpected type: " + instance.constructor.name);
|
|
34044
|
-
|
|
34717
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
34718
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
34719
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
34045
34720
|
instance._cachedJsonLd = structuredClone(json);
|
|
34046
34721
|
} catch {
|
|
34047
34722
|
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -34190,7 +34865,9 @@ var Reject = class Reject extends Activity {
|
|
|
34190
34865
|
_fromSubclass: true
|
|
34191
34866
|
});
|
|
34192
34867
|
if (!(instance instanceof Reject)) throw new TypeError("Unexpected type: " + instance.constructor.name);
|
|
34193
|
-
|
|
34868
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
34869
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
34870
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
34194
34871
|
instance._cachedJsonLd = structuredClone(json);
|
|
34195
34872
|
} catch {
|
|
34196
34873
|
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -34917,6 +35594,7 @@ var Relationship = class Relationship extends Object$1 {
|
|
|
34917
35594
|
_fromSubclass: true
|
|
34918
35595
|
});
|
|
34919
35596
|
if (!(instance instanceof Relationship)) throw new TypeError("Unexpected type: " + instance.constructor.name);
|
|
35597
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
34920
35598
|
const _2Zqdmi46ZnDQsECS6mzwhrv3rUKq_subject = [];
|
|
34921
35599
|
let _2Zqdmi46ZnDQsECS6mzwhrv3rUKq_subject__array = values["https://www.w3.org/ns/activitystreams#subject"];
|
|
34922
35600
|
for (const v of _2Zqdmi46ZnDQsECS6mzwhrv3rUKq_subject__array == null ? [] : _2Zqdmi46ZnDQsECS6mzwhrv3rUKq_subject__array.length === 1 && "@list" in _2Zqdmi46ZnDQsECS6mzwhrv3rUKq_subject__array[0] ? _2Zqdmi46ZnDQsECS6mzwhrv3rUKq_subject__array[0]["@list"] : _2Zqdmi46ZnDQsECS6mzwhrv3rUKq_subject__array) {
|
|
@@ -34925,10 +35603,12 @@ var Relationship = class Relationship extends Object$1 {
|
|
|
34925
35603
|
_2Zqdmi46ZnDQsECS6mzwhrv3rUKq_subject.push(!URL.canParse(v["@id"]) && v["@id"].startsWith("at://") ? new URL("at://" + encodeURIComponent(v["@id"].substring(5))) : new URL(v["@id"]));
|
|
34926
35604
|
continue;
|
|
34927
35605
|
}
|
|
34928
|
-
|
|
35606
|
+
const decoded = await Object$1.fromJsonLd(v, {
|
|
34929
35607
|
...options,
|
|
34930
35608
|
baseUrl: values["@id"] == null ? options.baseUrl : new URL(values["@id"])
|
|
34931
|
-
})
|
|
35609
|
+
});
|
|
35610
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
35611
|
+
_2Zqdmi46ZnDQsECS6mzwhrv3rUKq_subject.push(decoded);
|
|
34932
35612
|
}
|
|
34933
35613
|
instance.#_2Zqdmi46ZnDQsECS6mzwhrv3rUKq_subject = _2Zqdmi46ZnDQsECS6mzwhrv3rUKq_subject;
|
|
34934
35614
|
const _2MH19yxjn1wnHsNfa5n4JBhJzxyc_object = [];
|
|
@@ -34939,10 +35619,12 @@ var Relationship = class Relationship extends Object$1 {
|
|
|
34939
35619
|
_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object.push(!URL.canParse(v["@id"]) && v["@id"].startsWith("at://") ? new URL("at://" + encodeURIComponent(v["@id"].substring(5))) : new URL(v["@id"]));
|
|
34940
35620
|
continue;
|
|
34941
35621
|
}
|
|
34942
|
-
|
|
35622
|
+
const decoded = await Object$1.fromJsonLd(v, {
|
|
34943
35623
|
...options,
|
|
34944
35624
|
baseUrl: values["@id"] == null ? options.baseUrl : new URL(values["@id"])
|
|
34945
|
-
})
|
|
35625
|
+
});
|
|
35626
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
35627
|
+
_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object.push(decoded);
|
|
34946
35628
|
}
|
|
34947
35629
|
instance.#_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object = _2MH19yxjn1wnHsNfa5n4JBhJzxyc_object;
|
|
34948
35630
|
const _4Lzz89F9qipAQSGkWyX9DGWiUojG_relationship = [];
|
|
@@ -34953,13 +35635,16 @@ var Relationship = class Relationship extends Object$1 {
|
|
|
34953
35635
|
_4Lzz89F9qipAQSGkWyX9DGWiUojG_relationship.push(!URL.canParse(v["@id"]) && v["@id"].startsWith("at://") ? new URL("at://" + encodeURIComponent(v["@id"].substring(5))) : new URL(v["@id"]));
|
|
34954
35636
|
continue;
|
|
34955
35637
|
}
|
|
34956
|
-
|
|
35638
|
+
const decoded = await Object$1.fromJsonLd(v, {
|
|
34957
35639
|
...options,
|
|
34958
35640
|
baseUrl: values["@id"] == null ? options.baseUrl : new URL(values["@id"])
|
|
34959
|
-
})
|
|
35641
|
+
});
|
|
35642
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
35643
|
+
_4Lzz89F9qipAQSGkWyX9DGWiUojG_relationship.push(decoded);
|
|
34960
35644
|
}
|
|
34961
35645
|
instance.#_4Lzz89F9qipAQSGkWyX9DGWiUojG_relationship = _4Lzz89F9qipAQSGkWyX9DGWiUojG_relationship;
|
|
34962
|
-
|
|
35646
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
35647
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
34963
35648
|
instance._cachedJsonLd = structuredClone(json);
|
|
34964
35649
|
} catch {
|
|
34965
35650
|
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -35125,7 +35810,9 @@ var Remove = class Remove extends Activity {
|
|
|
35125
35810
|
_fromSubclass: true
|
|
35126
35811
|
});
|
|
35127
35812
|
if (!(instance instanceof Remove)) throw new TypeError("Unexpected type: " + instance.constructor.name);
|
|
35128
|
-
|
|
35813
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
35814
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
35815
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
35129
35816
|
instance._cachedJsonLd = structuredClone(json);
|
|
35130
35817
|
} catch {
|
|
35131
35818
|
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -37990,12 +38677,17 @@ var Service = class Service extends Object$1 {
|
|
|
37990
38677
|
_fromSubclass: true
|
|
37991
38678
|
});
|
|
37992
38679
|
if (!(instance instanceof Service)) throw new TypeError("Unexpected type: " + instance.constructor.name);
|
|
38680
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
37993
38681
|
const _3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = [];
|
|
37994
38682
|
let _3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername__array = values["https://www.w3.org/ns/activitystreams#preferredUsername"];
|
|
37995
38683
|
for (const v of _3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername__array == null ? [] : _3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername__array.length === 1 && "@list" in _3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername__array[0] ? _3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername__array[0]["@list"] : _3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername__array) {
|
|
37996
38684
|
if (v == null) continue;
|
|
37997
|
-
const decoded = typeof v === "object" && "@value" in v && typeof v["@value"] === "string" && !("@language" in v) ? v["@value"] : typeof v === "object" && "@language" in v && "@value" in v && typeof v["@language"] === "string" && typeof v["@value"] === "string" ? new _fedify_vocab_runtime.LanguageString(v["@value"], v["@language"]) : void 0;
|
|
37998
|
-
if (typeof decoded === "undefined")
|
|
38685
|
+
const decoded = typeof v === "object" && "@value" in v && typeof v["@value"] === "string" && !("@language" in v) ? v["@value"] : typeof v === "object" && "@language" in v && "@value" in v && typeof v["@language"] === "string" && typeof v["@value"] === "string" && isValidLanguageTag(v["@language"]) ? new _fedify_vocab_runtime.LanguageString(v["@value"], v["@language"]) : void 0;
|
|
38686
|
+
if (typeof decoded === "undefined") {
|
|
38687
|
+
shouldCacheJsonLd = false;
|
|
38688
|
+
continue;
|
|
38689
|
+
}
|
|
38690
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
37999
38691
|
_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername.push(decoded);
|
|
38000
38692
|
}
|
|
38001
38693
|
instance.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = _3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername;
|
|
@@ -38007,10 +38699,12 @@ var Service = class Service extends Object$1 {
|
|
|
38007
38699
|
_axq166E2eZADq34V4MYUc8KMZdC_publicKey.push(!URL.canParse(v["@id"]) && v["@id"].startsWith("at://") ? new URL("at://" + encodeURIComponent(v["@id"].substring(5))) : new URL(v["@id"]));
|
|
38008
38700
|
continue;
|
|
38009
38701
|
}
|
|
38010
|
-
|
|
38702
|
+
const decoded = await CryptographicKey.fromJsonLd(v, {
|
|
38011
38703
|
...options,
|
|
38012
38704
|
baseUrl: values["@id"] == null ? options.baseUrl : new URL(values["@id"])
|
|
38013
|
-
})
|
|
38705
|
+
});
|
|
38706
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
38707
|
+
_axq166E2eZADq34V4MYUc8KMZdC_publicKey.push(decoded);
|
|
38014
38708
|
}
|
|
38015
38709
|
instance.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = _axq166E2eZADq34V4MYUc8KMZdC_publicKey;
|
|
38016
38710
|
const _4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = [];
|
|
@@ -38021,17 +38715,21 @@ var Service = class Service extends Object$1 {
|
|
|
38021
38715
|
_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.push(!URL.canParse(v["@id"]) && v["@id"].startsWith("at://") ? new URL("at://" + encodeURIComponent(v["@id"].substring(5))) : new URL(v["@id"]));
|
|
38022
38716
|
continue;
|
|
38023
38717
|
}
|
|
38024
|
-
|
|
38718
|
+
const decoded = await Multikey.fromJsonLd(v, {
|
|
38025
38719
|
...options,
|
|
38026
38720
|
baseUrl: values["@id"] == null ? options.baseUrl : new URL(values["@id"])
|
|
38027
|
-
})
|
|
38721
|
+
});
|
|
38722
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
38723
|
+
_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.push(decoded);
|
|
38028
38724
|
}
|
|
38029
38725
|
instance.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = _4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod;
|
|
38030
38726
|
const _36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = [];
|
|
38031
38727
|
let _36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers__array = values["https://www.w3.org/ns/activitystreams#manuallyApprovesFollowers"];
|
|
38032
38728
|
for (const v of _36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers__array == null ? [] : _36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers__array.length === 1 && "@list" in _36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers__array[0] ? _36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers__array[0]["@list"] : _36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers__array) {
|
|
38033
38729
|
if (v == null) continue;
|
|
38034
|
-
|
|
38730
|
+
const decoded = v["@value"];
|
|
38731
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
38732
|
+
_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers.push(decoded);
|
|
38035
38733
|
}
|
|
38036
38734
|
instance.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = _36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers;
|
|
38037
38735
|
const _3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox = [];
|
|
@@ -38049,7 +38747,11 @@ var Service = class Service extends Object$1 {
|
|
|
38049
38747
|
...options,
|
|
38050
38748
|
baseUrl: values["@id"] == null ? options.baseUrl : new URL(values["@id"])
|
|
38051
38749
|
}) : void 0;
|
|
38052
|
-
if (typeof decoded === "undefined")
|
|
38750
|
+
if (typeof decoded === "undefined") {
|
|
38751
|
+
shouldCacheJsonLd = false;
|
|
38752
|
+
continue;
|
|
38753
|
+
}
|
|
38754
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
38053
38755
|
_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox.push(decoded);
|
|
38054
38756
|
}
|
|
38055
38757
|
instance.#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox = _3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox;
|
|
@@ -38068,7 +38770,11 @@ var Service = class Service extends Object$1 {
|
|
|
38068
38770
|
...options,
|
|
38069
38771
|
baseUrl: values["@id"] == null ? options.baseUrl : new URL(values["@id"])
|
|
38070
38772
|
}) : void 0;
|
|
38071
|
-
if (typeof decoded === "undefined")
|
|
38773
|
+
if (typeof decoded === "undefined") {
|
|
38774
|
+
shouldCacheJsonLd = false;
|
|
38775
|
+
continue;
|
|
38776
|
+
}
|
|
38777
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
38072
38778
|
_41QwhqJouoLg3h8dRPKat21brynC_outbox.push(decoded);
|
|
38073
38779
|
}
|
|
38074
38780
|
instance.#_41QwhqJouoLg3h8dRPKat21brynC_outbox = _41QwhqJouoLg3h8dRPKat21brynC_outbox;
|
|
@@ -38080,10 +38786,12 @@ var Service = class Service extends Object$1 {
|
|
|
38080
38786
|
_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following.push(!URL.canParse(v["@id"]) && v["@id"].startsWith("at://") ? new URL("at://" + encodeURIComponent(v["@id"].substring(5))) : new URL(v["@id"]));
|
|
38081
38787
|
continue;
|
|
38082
38788
|
}
|
|
38083
|
-
|
|
38789
|
+
const decoded = await Collection.fromJsonLd(v, {
|
|
38084
38790
|
...options,
|
|
38085
38791
|
baseUrl: values["@id"] == null ? options.baseUrl : new URL(values["@id"])
|
|
38086
|
-
})
|
|
38792
|
+
});
|
|
38793
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
38794
|
+
_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following.push(decoded);
|
|
38087
38795
|
}
|
|
38088
38796
|
instance.#_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following = _3yAv8jymNfNuJUDuBzJ1NQhdbAee_following;
|
|
38089
38797
|
const _BBCTgfphhsFzpVfKTykGSpBNwoA_followers = [];
|
|
@@ -38094,10 +38802,12 @@ var Service = class Service extends Object$1 {
|
|
|
38094
38802
|
_BBCTgfphhsFzpVfKTykGSpBNwoA_followers.push(!URL.canParse(v["@id"]) && v["@id"].startsWith("at://") ? new URL("at://" + encodeURIComponent(v["@id"].substring(5))) : new URL(v["@id"]));
|
|
38095
38803
|
continue;
|
|
38096
38804
|
}
|
|
38097
|
-
|
|
38805
|
+
const decoded = await Collection.fromJsonLd(v, {
|
|
38098
38806
|
...options,
|
|
38099
38807
|
baseUrl: values["@id"] == null ? options.baseUrl : new URL(values["@id"])
|
|
38100
|
-
})
|
|
38808
|
+
});
|
|
38809
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
38810
|
+
_BBCTgfphhsFzpVfKTykGSpBNwoA_followers.push(decoded);
|
|
38101
38811
|
}
|
|
38102
38812
|
instance.#_BBCTgfphhsFzpVfKTykGSpBNwoA_followers = _BBCTgfphhsFzpVfKTykGSpBNwoA_followers;
|
|
38103
38813
|
const _3bgkPwJanyTCoVFM9ovRcus8tKkU_liked = [];
|
|
@@ -38108,10 +38818,12 @@ var Service = class Service extends Object$1 {
|
|
|
38108
38818
|
_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked.push(!URL.canParse(v["@id"]) && v["@id"].startsWith("at://") ? new URL("at://" + encodeURIComponent(v["@id"].substring(5))) : new URL(v["@id"]));
|
|
38109
38819
|
continue;
|
|
38110
38820
|
}
|
|
38111
|
-
|
|
38821
|
+
const decoded = await Collection.fromJsonLd(v, {
|
|
38112
38822
|
...options,
|
|
38113
38823
|
baseUrl: values["@id"] == null ? options.baseUrl : new URL(values["@id"])
|
|
38114
|
-
})
|
|
38824
|
+
});
|
|
38825
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
38826
|
+
_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked.push(decoded);
|
|
38115
38827
|
}
|
|
38116
38828
|
instance.#_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked = _3bgkPwJanyTCoVFM9ovRcus8tKkU_liked;
|
|
38117
38829
|
const _4N1vBJzXDf8NbBumeECQMFvKetja_featured = [];
|
|
@@ -38122,10 +38834,12 @@ var Service = class Service extends Object$1 {
|
|
|
38122
38834
|
_4N1vBJzXDf8NbBumeECQMFvKetja_featured.push(!URL.canParse(v["@id"]) && v["@id"].startsWith("at://") ? new URL("at://" + encodeURIComponent(v["@id"].substring(5))) : new URL(v["@id"]));
|
|
38123
38835
|
continue;
|
|
38124
38836
|
}
|
|
38125
|
-
|
|
38837
|
+
const decoded = await Collection.fromJsonLd(v, {
|
|
38126
38838
|
...options,
|
|
38127
38839
|
baseUrl: values["@id"] == null ? options.baseUrl : new URL(values["@id"])
|
|
38128
|
-
})
|
|
38840
|
+
});
|
|
38841
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
38842
|
+
_4N1vBJzXDf8NbBumeECQMFvKetja_featured.push(decoded);
|
|
38129
38843
|
}
|
|
38130
38844
|
instance.#_4N1vBJzXDf8NbBumeECQMFvKetja_featured = _4N1vBJzXDf8NbBumeECQMFvKetja_featured;
|
|
38131
38845
|
const _2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags = [];
|
|
@@ -38136,10 +38850,12 @@ var Service = class Service extends Object$1 {
|
|
|
38136
38850
|
_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags.push(!URL.canParse(v["@id"]) && v["@id"].startsWith("at://") ? new URL("at://" + encodeURIComponent(v["@id"].substring(5))) : new URL(v["@id"]));
|
|
38137
38851
|
continue;
|
|
38138
38852
|
}
|
|
38139
|
-
|
|
38853
|
+
const decoded = await Collection.fromJsonLd(v, {
|
|
38140
38854
|
...options,
|
|
38141
38855
|
baseUrl: values["@id"] == null ? options.baseUrl : new URL(values["@id"])
|
|
38142
|
-
})
|
|
38856
|
+
});
|
|
38857
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
38858
|
+
_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags.push(decoded);
|
|
38143
38859
|
}
|
|
38144
38860
|
instance.#_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags = _2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags;
|
|
38145
38861
|
const _3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = [];
|
|
@@ -38150,48 +38866,60 @@ var Service = class Service extends Object$1 {
|
|
|
38150
38866
|
_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.push(!URL.canParse(v["@id"]) && v["@id"].startsWith("at://") ? new URL("at://" + encodeURIComponent(v["@id"].substring(5))) : new URL(v["@id"]));
|
|
38151
38867
|
continue;
|
|
38152
38868
|
}
|
|
38153
|
-
|
|
38869
|
+
const decoded = await Collection.fromJsonLd(v, {
|
|
38154
38870
|
...options,
|
|
38155
38871
|
baseUrl: values["@id"] == null ? options.baseUrl : new URL(values["@id"])
|
|
38156
|
-
})
|
|
38872
|
+
});
|
|
38873
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
38874
|
+
_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.push(decoded);
|
|
38157
38875
|
}
|
|
38158
38876
|
instance.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = _3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams;
|
|
38159
38877
|
const _sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints = [];
|
|
38160
38878
|
let _sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints__array = values["https://www.w3.org/ns/activitystreams#endpoints"];
|
|
38161
38879
|
for (const v of _sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints__array == null ? [] : _sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints__array.length === 1 && "@list" in _sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints__array[0] ? _sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints__array[0]["@list"] : _sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints__array) {
|
|
38162
38880
|
if (v == null) continue;
|
|
38163
|
-
|
|
38881
|
+
const decoded = await Endpoints.fromJsonLd(v, {
|
|
38164
38882
|
...options,
|
|
38165
38883
|
baseUrl: values["@id"] == null ? options.baseUrl : new URL(values["@id"])
|
|
38166
|
-
})
|
|
38884
|
+
});
|
|
38885
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
38886
|
+
_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints.push(decoded);
|
|
38167
38887
|
}
|
|
38168
38888
|
instance.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints = _sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints;
|
|
38169
38889
|
const _gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable = [];
|
|
38170
38890
|
let _gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable__array = values["http://joinmastodon.org/ns#discoverable"];
|
|
38171
38891
|
for (const v of _gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable__array == null ? [] : _gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable__array.length === 1 && "@list" in _gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable__array[0] ? _gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable__array[0]["@list"] : _gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable__array) {
|
|
38172
38892
|
if (v == null) continue;
|
|
38173
|
-
|
|
38893
|
+
const decoded = v["@value"];
|
|
38894
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
38895
|
+
_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable.push(decoded);
|
|
38174
38896
|
}
|
|
38175
38897
|
instance.#_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable = _gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable;
|
|
38176
38898
|
const _2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended = [];
|
|
38177
38899
|
let _2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended__array = values["http://joinmastodon.org/ns#suspended"];
|
|
38178
38900
|
for (const v of _2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended__array == null ? [] : _2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended__array.length === 1 && "@list" in _2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended__array[0] ? _2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended__array[0]["@list"] : _2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended__array) {
|
|
38179
38901
|
if (v == null) continue;
|
|
38180
|
-
|
|
38902
|
+
const decoded = v["@value"];
|
|
38903
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
38904
|
+
_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended.push(decoded);
|
|
38181
38905
|
}
|
|
38182
38906
|
instance.#_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended = _2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended;
|
|
38183
38907
|
const _79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial = [];
|
|
38184
38908
|
let _79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial__array = values["http://joinmastodon.org/ns#memorial"];
|
|
38185
38909
|
for (const v of _79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial__array == null ? [] : _79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial__array.length === 1 && "@list" in _79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial__array[0] ? _79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial__array[0]["@list"] : _79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial__array) {
|
|
38186
38910
|
if (v == null) continue;
|
|
38187
|
-
|
|
38911
|
+
const decoded = v["@value"];
|
|
38912
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
38913
|
+
_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial.push(decoded);
|
|
38188
38914
|
}
|
|
38189
38915
|
instance.#_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial = _79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial;
|
|
38190
38916
|
const _2diCorzqPGQQqftp6e4SrCEwEnyk_indexable = [];
|
|
38191
38917
|
let _2diCorzqPGQQqftp6e4SrCEwEnyk_indexable__array = values["http://joinmastodon.org/ns#indexable"];
|
|
38192
38918
|
for (const v of _2diCorzqPGQQqftp6e4SrCEwEnyk_indexable__array == null ? [] : _2diCorzqPGQQqftp6e4SrCEwEnyk_indexable__array.length === 1 && "@list" in _2diCorzqPGQQqftp6e4SrCEwEnyk_indexable__array[0] ? _2diCorzqPGQQqftp6e4SrCEwEnyk_indexable__array[0]["@list"] : _2diCorzqPGQQqftp6e4SrCEwEnyk_indexable__array) {
|
|
38193
38919
|
if (v == null) continue;
|
|
38194
|
-
|
|
38920
|
+
const decoded = v["@value"];
|
|
38921
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
38922
|
+
_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable.push(decoded);
|
|
38195
38923
|
}
|
|
38196
38924
|
instance.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable = _2diCorzqPGQQqftp6e4SrCEwEnyk_indexable;
|
|
38197
38925
|
const _2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = [];
|
|
@@ -38218,7 +38946,11 @@ var Service = class Service extends Object$1 {
|
|
|
38218
38946
|
...options,
|
|
38219
38947
|
baseUrl: values["@id"] == null ? options.baseUrl : new URL(values["@id"])
|
|
38220
38948
|
}) : void 0;
|
|
38221
|
-
if (typeof decoded === "undefined")
|
|
38949
|
+
if (typeof decoded === "undefined") {
|
|
38950
|
+
shouldCacheJsonLd = false;
|
|
38951
|
+
continue;
|
|
38952
|
+
}
|
|
38953
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
38222
38954
|
_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo.push(decoded);
|
|
38223
38955
|
}
|
|
38224
38956
|
instance.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = _2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo;
|
|
@@ -38246,7 +38978,11 @@ var Service = class Service extends Object$1 {
|
|
|
38246
38978
|
...options,
|
|
38247
38979
|
baseUrl: values["@id"] == null ? options.baseUrl : new URL(values["@id"])
|
|
38248
38980
|
}) : void 0;
|
|
38249
|
-
if (typeof decoded === "undefined")
|
|
38981
|
+
if (typeof decoded === "undefined") {
|
|
38982
|
+
shouldCacheJsonLd = false;
|
|
38983
|
+
continue;
|
|
38984
|
+
}
|
|
38985
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
38250
38986
|
_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs.push(decoded);
|
|
38251
38987
|
}
|
|
38252
38988
|
instance.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = _3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs;
|
|
@@ -38258,27 +38994,34 @@ var Service = class Service extends Object$1 {
|
|
|
38258
38994
|
_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.push(!URL.canParse(v["@id"]) && v["@id"].startsWith("at://") ? new URL("at://" + encodeURIComponent(v["@id"].substring(5))) : new URL(v["@id"]));
|
|
38259
38995
|
continue;
|
|
38260
38996
|
}
|
|
38261
|
-
|
|
38997
|
+
const decoded = await DidService.fromJsonLd(v, {
|
|
38262
38998
|
...options,
|
|
38263
38999
|
baseUrl: values["@id"] == null ? options.baseUrl : new URL(values["@id"])
|
|
38264
|
-
})
|
|
39000
|
+
});
|
|
39001
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
39002
|
+
_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.push(decoded);
|
|
38265
39003
|
}
|
|
38266
39004
|
instance.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = _4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service;
|
|
38267
39005
|
const _QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage = [];
|
|
38268
39006
|
let _QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage__array = values["https://misskey-hub.net/ns#_misskey_followedMessage"];
|
|
38269
39007
|
for (const v of _QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage__array == null ? [] : _QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage__array.length === 1 && "@list" in _QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage__array[0] ? _QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage__array[0]["@list"] : _QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage__array) {
|
|
38270
39008
|
if (v == null) continue;
|
|
38271
|
-
|
|
39009
|
+
const decoded = v["@value"];
|
|
39010
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
39011
|
+
_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage.push(decoded);
|
|
38272
39012
|
}
|
|
38273
39013
|
instance.#_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage = _QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage;
|
|
38274
39014
|
const _2xEU4QtkC53RAun67T81Egqt9vmL_isCat = [];
|
|
38275
39015
|
let _2xEU4QtkC53RAun67T81Egqt9vmL_isCat__array = values["https://misskey-hub.net/ns#isCat"];
|
|
38276
39016
|
for (const v of _2xEU4QtkC53RAun67T81Egqt9vmL_isCat__array == null ? [] : _2xEU4QtkC53RAun67T81Egqt9vmL_isCat__array.length === 1 && "@list" in _2xEU4QtkC53RAun67T81Egqt9vmL_isCat__array[0] ? _2xEU4QtkC53RAun67T81Egqt9vmL_isCat__array[0]["@list"] : _2xEU4QtkC53RAun67T81Egqt9vmL_isCat__array) {
|
|
38277
39017
|
if (v == null) continue;
|
|
38278
|
-
|
|
39018
|
+
const decoded = v["@value"];
|
|
39019
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
39020
|
+
_2xEU4QtkC53RAun67T81Egqt9vmL_isCat.push(decoded);
|
|
38279
39021
|
}
|
|
38280
39022
|
instance.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat = _2xEU4QtkC53RAun67T81Egqt9vmL_isCat;
|
|
38281
|
-
|
|
39023
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
39024
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
38282
39025
|
instance._cachedJsonLd = structuredClone(json);
|
|
38283
39026
|
} catch {
|
|
38284
39027
|
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -38419,6 +39162,7 @@ var Source = class {
|
|
|
38419
39162
|
#tracerProvider;
|
|
38420
39163
|
#warning;
|
|
38421
39164
|
#cachedJsonLd;
|
|
39165
|
+
#shouldCacheJsonLd = true;
|
|
38422
39166
|
id;
|
|
38423
39167
|
get _documentLoader() {
|
|
38424
39168
|
return this.#documentLoader;
|
|
@@ -38438,6 +39182,17 @@ var Source = class {
|
|
|
38438
39182
|
set _cachedJsonLd(value) {
|
|
38439
39183
|
this.#cachedJsonLd = value;
|
|
38440
39184
|
}
|
|
39185
|
+
get _shouldCacheJsonLd() {
|
|
39186
|
+
return this.#shouldCacheJsonLd;
|
|
39187
|
+
}
|
|
39188
|
+
set _shouldCacheJsonLd(value) {
|
|
39189
|
+
this.#shouldCacheJsonLd = value;
|
|
39190
|
+
}
|
|
39191
|
+
static _shouldCacheDecodedJsonLd(value) {
|
|
39192
|
+
if (value == null || typeof value !== "object") return true;
|
|
39193
|
+
if (!("_shouldCacheJsonLd" in value)) return true;
|
|
39194
|
+
return value._shouldCacheJsonLd;
|
|
39195
|
+
}
|
|
38441
39196
|
/**
|
|
38442
39197
|
* The type URI of {@link Source}: `https://www.w3.org/ns/activitystreams#Source`.
|
|
38443
39198
|
*/
|
|
@@ -38635,12 +39390,17 @@ var Source = class {
|
|
|
38635
39390
|
if (!values["@type"].includes("https://www.w3.org/ns/activitystreams#Source")) throw new TypeError("Invalid type: " + values["@type"]);
|
|
38636
39391
|
}
|
|
38637
39392
|
const instance = new this({ id: "@id" in values ? new URL(values["@id"]) : void 0 }, options);
|
|
39393
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
38638
39394
|
const _4HuuRSdSrXq8Jj2J9gcdYfoCzeuz_content = [];
|
|
38639
39395
|
let _4HuuRSdSrXq8Jj2J9gcdYfoCzeuz_content__array = values["https://www.w3.org/ns/activitystreams#content"];
|
|
38640
39396
|
for (const v of _4HuuRSdSrXq8Jj2J9gcdYfoCzeuz_content__array == null ? [] : _4HuuRSdSrXq8Jj2J9gcdYfoCzeuz_content__array.length === 1 && "@list" in _4HuuRSdSrXq8Jj2J9gcdYfoCzeuz_content__array[0] ? _4HuuRSdSrXq8Jj2J9gcdYfoCzeuz_content__array[0]["@list"] : _4HuuRSdSrXq8Jj2J9gcdYfoCzeuz_content__array) {
|
|
38641
39397
|
if (v == null) continue;
|
|
38642
|
-
const decoded = typeof v === "object" && "@value" in v && typeof v["@value"] === "string" && !("@language" in v) ? v["@value"] : typeof v === "object" && "@language" in v && "@value" in v && typeof v["@language"] === "string" && typeof v["@value"] === "string" ? new _fedify_vocab_runtime.LanguageString(v["@value"], v["@language"]) : void 0;
|
|
38643
|
-
if (typeof decoded === "undefined")
|
|
39398
|
+
const decoded = typeof v === "object" && "@value" in v && typeof v["@value"] === "string" && !("@language" in v) ? v["@value"] : typeof v === "object" && "@language" in v && "@value" in v && typeof v["@language"] === "string" && typeof v["@value"] === "string" && isValidLanguageTag(v["@language"]) ? new _fedify_vocab_runtime.LanguageString(v["@value"], v["@language"]) : void 0;
|
|
39399
|
+
if (typeof decoded === "undefined") {
|
|
39400
|
+
shouldCacheJsonLd = false;
|
|
39401
|
+
continue;
|
|
39402
|
+
}
|
|
39403
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
38644
39404
|
_4HuuRSdSrXq8Jj2J9gcdYfoCzeuz_content.push(decoded);
|
|
38645
39405
|
}
|
|
38646
39406
|
instance.#_4HuuRSdSrXq8Jj2J9gcdYfoCzeuz_content = _4HuuRSdSrXq8Jj2J9gcdYfoCzeuz_content;
|
|
@@ -38648,10 +39408,13 @@ var Source = class {
|
|
|
38648
39408
|
let _3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType__array = values["https://www.w3.org/ns/activitystreams#mediaType"];
|
|
38649
39409
|
for (const v of _3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType__array == null ? [] : _3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType__array.length === 1 && "@list" in _3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType__array[0] ? _3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType__array[0]["@list"] : _3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType__array) {
|
|
38650
39410
|
if (v == null) continue;
|
|
38651
|
-
|
|
39411
|
+
const decoded = v["@value"];
|
|
39412
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
39413
|
+
_3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType.push(decoded);
|
|
38652
39414
|
}
|
|
38653
39415
|
instance.#_3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType = _3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType;
|
|
38654
|
-
|
|
39416
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
39417
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
38655
39418
|
instance._cachedJsonLd = structuredClone(json);
|
|
38656
39419
|
} catch {
|
|
38657
39420
|
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -38815,7 +39578,9 @@ var TentativeAccept = class TentativeAccept extends Accept {
|
|
|
38815
39578
|
_fromSubclass: true
|
|
38816
39579
|
});
|
|
38817
39580
|
if (!(instance instanceof TentativeAccept)) throw new TypeError("Unexpected type: " + instance.constructor.name);
|
|
38818
|
-
|
|
39581
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
39582
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
39583
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
38819
39584
|
instance._cachedJsonLd = structuredClone(json);
|
|
38820
39585
|
} catch {
|
|
38821
39586
|
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -38963,7 +39728,9 @@ var TentativeReject = class TentativeReject extends Reject {
|
|
|
38963
39728
|
_fromSubclass: true
|
|
38964
39729
|
});
|
|
38965
39730
|
if (!(instance instanceof TentativeReject)) throw new TypeError("Unexpected type: " + instance.constructor.name);
|
|
38966
|
-
|
|
39731
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
39732
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
39733
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
38967
39734
|
instance._cachedJsonLd = structuredClone(json);
|
|
38968
39735
|
} catch {
|
|
38969
39736
|
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -39150,14 +39917,18 @@ var Tombstone = class Tombstone extends Object$1 {
|
|
|
39150
39917
|
_fromSubclass: true
|
|
39151
39918
|
});
|
|
39152
39919
|
if (!(instance instanceof Tombstone)) throw new TypeError("Unexpected type: " + instance.constructor.name);
|
|
39920
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
39153
39921
|
const _8g8g4LiVMhFTXskuDEqx4ascxUr_deleted = [];
|
|
39154
39922
|
let _8g8g4LiVMhFTXskuDEqx4ascxUr_deleted__array = values["https://www.w3.org/ns/activitystreams#deleted"];
|
|
39155
39923
|
for (const v of _8g8g4LiVMhFTXskuDEqx4ascxUr_deleted__array == null ? [] : _8g8g4LiVMhFTXskuDEqx4ascxUr_deleted__array.length === 1 && "@list" in _8g8g4LiVMhFTXskuDEqx4ascxUr_deleted__array[0] ? _8g8g4LiVMhFTXskuDEqx4ascxUr_deleted__array[0]["@list"] : _8g8g4LiVMhFTXskuDEqx4ascxUr_deleted__array) {
|
|
39156
39924
|
if (v == null) continue;
|
|
39157
|
-
|
|
39925
|
+
const decoded = Temporal.Instant.from(v["@value"].substring(19).match(/[Z+-]/) ? v["@value"] : v["@value"] + "Z");
|
|
39926
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
39927
|
+
_8g8g4LiVMhFTXskuDEqx4ascxUr_deleted.push(decoded);
|
|
39158
39928
|
}
|
|
39159
39929
|
instance.#_8g8g4LiVMhFTXskuDEqx4ascxUr_deleted = _8g8g4LiVMhFTXskuDEqx4ascxUr_deleted;
|
|
39160
|
-
|
|
39930
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
39931
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
39161
39932
|
instance._cachedJsonLd = structuredClone(json);
|
|
39162
39933
|
} catch {
|
|
39163
39934
|
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -39313,7 +40084,9 @@ var Travel = class Travel extends IntransitiveActivity {
|
|
|
39313
40084
|
_fromSubclass: true
|
|
39314
40085
|
});
|
|
39315
40086
|
if (!(instance instanceof Travel)) throw new TypeError("Unexpected type: " + instance.constructor.name);
|
|
39316
|
-
|
|
40087
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
40088
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
40089
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
39317
40090
|
instance._cachedJsonLd = structuredClone(json);
|
|
39318
40091
|
} catch {
|
|
39319
40092
|
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -39475,7 +40248,9 @@ var Undo = class Undo extends Activity {
|
|
|
39475
40248
|
_fromSubclass: true
|
|
39476
40249
|
});
|
|
39477
40250
|
if (!(instance instanceof Undo)) throw new TypeError("Unexpected type: " + instance.constructor.name);
|
|
39478
|
-
|
|
40251
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
40252
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
40253
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
39479
40254
|
instance._cachedJsonLd = structuredClone(json);
|
|
39480
40255
|
} catch {
|
|
39481
40256
|
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -39675,7 +40450,9 @@ var Update = class Update extends Activity {
|
|
|
39675
40450
|
_fromSubclass: true
|
|
39676
40451
|
});
|
|
39677
40452
|
if (!(instance instanceof Update)) throw new TypeError("Unexpected type: " + instance.constructor.name);
|
|
39678
|
-
|
|
40453
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
40454
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
40455
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
39679
40456
|
instance._cachedJsonLd = structuredClone(json);
|
|
39680
40457
|
} catch {
|
|
39681
40458
|
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -39829,7 +40606,9 @@ var Video = class Video extends Document {
|
|
|
39829
40606
|
_fromSubclass: true
|
|
39830
40607
|
});
|
|
39831
40608
|
if (!(instance instanceof Video)) throw new TypeError("Unexpected type: " + instance.constructor.name);
|
|
39832
|
-
|
|
40609
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
40610
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
40611
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
39833
40612
|
instance._cachedJsonLd = structuredClone(json);
|
|
39834
40613
|
} catch {
|
|
39835
40614
|
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -39976,7 +40755,9 @@ var View = class View extends Activity {
|
|
|
39976
40755
|
_fromSubclass: true
|
|
39977
40756
|
});
|
|
39978
40757
|
if (!(instance instanceof View)) throw new TypeError("Unexpected type: " + instance.constructor.name);
|
|
39979
|
-
|
|
40758
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
40759
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
40760
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
39980
40761
|
instance._cachedJsonLd = structuredClone(json);
|
|
39981
40762
|
} catch {
|
|
39982
40763
|
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|