@fedify/vocab 2.5.0-dev.2568 → 2.5.0-dev.2609

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.
Files changed (38) hide show
  1. package/deno.json +1 -1
  2. package/dist/mod.cjs +792 -248
  3. package/dist/mod.d.cts +50 -0
  4. package/dist/mod.d.ts +50 -0
  5. package/dist/mod.js +792 -248
  6. package/dist-tests/{actor-ZkO1CVwO.mjs → actor-5WK9i29Z.mjs} +2 -2
  7. package/dist-tests/actor.test.mjs +2 -2
  8. package/dist-tests/application.yaml +16 -0
  9. package/dist-tests/attribution-domains.test.mjs +122 -0
  10. package/dist-tests/deep-clone.test.mjs +1 -1
  11. package/dist-tests/gateway.test.mjs +2 -2
  12. package/dist-tests/group.yaml +16 -0
  13. package/dist-tests/license.test.mjs +2 -2
  14. package/dist-tests/{lookup-4iQsZ6hT.mjs → lookup-BbKlnDBY.mjs} +2 -2
  15. package/dist-tests/lookup.test.mjs +2 -2
  16. package/dist-tests/organization.yaml +16 -0
  17. package/dist-tests/person.yaml +16 -0
  18. package/dist-tests/portable-lookup.test.mjs +3 -3
  19. package/dist-tests/service.yaml +16 -0
  20. package/dist-tests/signed-representation.test.mjs +1 -1
  21. package/dist-tests/sparse-arrays.test.mjs +1 -1
  22. package/dist-tests/{src-OznPocrm.mjs → src-BTYI_oxm.mjs} +3 -3
  23. package/dist-tests/translation.test.mjs +2 -2
  24. package/dist-tests/type.test.mjs +1 -1
  25. package/dist-tests/update.yaml +3 -0
  26. package/dist-tests/{vocab-D1YJL9OP.mjs → vocab-CJeCJq7G.mjs} +791 -247
  27. package/dist-tests/vocab.test.mjs +12 -3
  28. package/package.json +5 -5
  29. package/src/__snapshots__/vocab.test.ts.snap +15 -0
  30. package/src/application.yaml +16 -0
  31. package/src/attribution-domains.test.ts +177 -0
  32. package/src/group.yaml +16 -0
  33. package/src/organization.yaml +16 -0
  34. package/src/person.yaml +16 -0
  35. package/src/service.yaml +16 -0
  36. package/src/update.yaml +3 -0
  37. package/src/vocab.test.ts +8 -0
  38. package/tsconfig.check.json +14 -0
package/dist/mod.js CHANGED
@@ -12,7 +12,7 @@ import { isTemporalDuration, isTemporalInstant } from "@fedify/vocab-runtime/tem
12
12
  import { delay } from "es-toolkit";
13
13
  //#region deno.json
14
14
  var name = "@fedify/vocab";
15
- var version = "2.5.0-dev.2568+889927c4";
15
+ var version = "2.5.0-dev.2609+017171aa";
16
16
  //#endregion
17
17
  //#region src/type.ts
18
18
  function getTypeId(object) {
@@ -2724,7 +2724,7 @@ var Object$1 = class Object$1 {
2724
2724
  const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
2725
2725
  const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
2726
2726
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
2727
- const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2568+889927c4");
2727
+ const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2609+017171aa");
2728
2728
  const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
2729
2729
  return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
2730
2730
  const dereferencePortable = async (portableUrl, extra = {}) => {
@@ -2981,7 +2981,7 @@ var Object$1 = class Object$1 {
2981
2981
  const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
2982
2982
  const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
2983
2983
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
2984
- const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2568+889927c4");
2984
+ const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2609+017171aa");
2985
2985
  const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
2986
2986
  return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
2987
2987
  const dereferencePortable = async (portableUrl, extra = {}) => {
@@ -3333,7 +3333,7 @@ var Object$1 = class Object$1 {
3333
3333
  const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
3334
3334
  const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
3335
3335
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
3336
- const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2568+889927c4");
3336
+ const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2609+017171aa");
3337
3337
  const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
3338
3338
  return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
3339
3339
  const dereferencePortable = async (portableUrl, extra = {}) => {
@@ -3653,7 +3653,7 @@ var Object$1 = class Object$1 {
3653
3653
  const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
3654
3654
  const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
3655
3655
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
3656
- const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2568+889927c4");
3656
+ const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2609+017171aa");
3657
3657
  const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
3658
3658
  return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
3659
3659
  const dereferencePortable = async (portableUrl, extra = {}) => {
@@ -3925,7 +3925,7 @@ var Object$1 = class Object$1 {
3925
3925
  const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
3926
3926
  const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
3927
3927
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
3928
- const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2568+889927c4");
3928
+ const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2609+017171aa");
3929
3929
  const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
3930
3930
  return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
3931
3931
  const dereferencePortable = async (portableUrl, extra = {}) => {
@@ -4165,7 +4165,7 @@ var Object$1 = class Object$1 {
4165
4165
  const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
4166
4166
  const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
4167
4167
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
4168
- const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2568+889927c4");
4168
+ const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2609+017171aa");
4169
4169
  const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
4170
4170
  return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
4171
4171
  const dereferencePortable = async (portableUrl, extra = {}) => {
@@ -4484,7 +4484,7 @@ var Object$1 = class Object$1 {
4484
4484
  const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
4485
4485
  const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
4486
4486
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
4487
- const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2568+889927c4");
4487
+ const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2609+017171aa");
4488
4488
  const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
4489
4489
  return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
4490
4490
  const dereferencePortable = async (portableUrl, extra = {}) => {
@@ -4803,7 +4803,7 @@ var Object$1 = class Object$1 {
4803
4803
  const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
4804
4804
  const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
4805
4805
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
4806
- const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2568+889927c4");
4806
+ const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2609+017171aa");
4807
4807
  const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
4808
4808
  return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
4809
4809
  const dereferencePortable = async (portableUrl, extra = {}) => {
@@ -5114,7 +5114,7 @@ var Object$1 = class Object$1 {
5114
5114
  const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
5115
5115
  const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
5116
5116
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
5117
- const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2568+889927c4");
5117
+ const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2609+017171aa");
5118
5118
  const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
5119
5119
  return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
5120
5120
  const dereferencePortable = async (portableUrl, extra = {}) => {
@@ -5425,7 +5425,7 @@ var Object$1 = class Object$1 {
5425
5425
  const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
5426
5426
  const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
5427
5427
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
5428
- const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2568+889927c4");
5428
+ const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2609+017171aa");
5429
5429
  const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
5430
5430
  return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
5431
5431
  const dereferencePortable = async (portableUrl, extra = {}) => {
@@ -5741,7 +5741,7 @@ var Object$1 = class Object$1 {
5741
5741
  const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
5742
5742
  const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
5743
5743
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
5744
- const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2568+889927c4");
5744
+ const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2609+017171aa");
5745
5745
  const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
5746
5746
  return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
5747
5747
  const dereferencePortable = async (portableUrl, extra = {}) => {
@@ -5967,7 +5967,7 @@ var Object$1 = class Object$1 {
5967
5967
  const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
5968
5968
  const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
5969
5969
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
5970
- const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2568+889927c4");
5970
+ const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2609+017171aa");
5971
5971
  const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
5972
5972
  return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
5973
5973
  const dereferencePortable = async (portableUrl, extra = {}) => {
@@ -6199,7 +6199,7 @@ var Object$1 = class Object$1 {
6199
6199
  const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
6200
6200
  const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
6201
6201
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
6202
- const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2568+889927c4");
6202
+ const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2609+017171aa");
6203
6203
  const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
6204
6204
  return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
6205
6205
  const dereferencePortable = async (portableUrl, extra = {}) => {
@@ -6431,7 +6431,7 @@ var Object$1 = class Object$1 {
6431
6431
  const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
6432
6432
  const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
6433
6433
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
6434
- const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2568+889927c4");
6434
+ const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2609+017171aa");
6435
6435
  const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
6436
6436
  return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
6437
6437
  const dereferencePortable = async (portableUrl, extra = {}) => {
@@ -6681,7 +6681,7 @@ var Object$1 = class Object$1 {
6681
6681
  const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
6682
6682
  const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
6683
6683
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
6684
- const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2568+889927c4");
6684
+ const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2609+017171aa");
6685
6685
  const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
6686
6686
  return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
6687
6687
  const dereferencePortable = async (portableUrl, extra = {}) => {
@@ -6943,7 +6943,7 @@ var Object$1 = class Object$1 {
6943
6943
  const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
6944
6944
  const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
6945
6945
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
6946
- const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2568+889927c4");
6946
+ const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2609+017171aa");
6947
6947
  const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
6948
6948
  return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
6949
6949
  const dereferencePortable = async (portableUrl, extra = {}) => {
@@ -7243,7 +7243,7 @@ var Object$1 = class Object$1 {
7243
7243
  const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
7244
7244
  const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
7245
7245
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
7246
- const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2568+889927c4");
7246
+ const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2609+017171aa");
7247
7247
  const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
7248
7248
  return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
7249
7249
  const dereferencePortable = async (portableUrl, extra = {}) => {
@@ -7543,7 +7543,7 @@ var Object$1 = class Object$1 {
7543
7543
  const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
7544
7544
  const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
7545
7545
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
7546
- const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2568+889927c4");
7546
+ const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2609+017171aa");
7547
7547
  const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
7548
7548
  return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
7549
7549
  const dereferencePortable = async (portableUrl, extra = {}) => {
@@ -7843,7 +7843,7 @@ var Object$1 = class Object$1 {
7843
7843
  const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
7844
7844
  const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
7845
7845
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
7846
- const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2568+889927c4");
7846
+ const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2609+017171aa");
7847
7847
  const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
7848
7848
  return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
7849
7849
  const dereferencePortable = async (portableUrl, extra = {}) => {
@@ -8180,7 +8180,7 @@ var Object$1 = class Object$1 {
8180
8180
  const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
8181
8181
  const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
8182
8182
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
8183
- const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2568+889927c4");
8183
+ const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2609+017171aa");
8184
8184
  const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
8185
8185
  return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
8186
8186
  const dereferencePortable = async (portableUrl, extra = {}) => {
@@ -8503,7 +8503,7 @@ var Object$1 = class Object$1 {
8503
8503
  const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
8504
8504
  const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
8505
8505
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
8506
- const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2568+889927c4");
8506
+ const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2609+017171aa");
8507
8507
  const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
8508
8508
  return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
8509
8509
  const dereferencePortable = async (portableUrl, extra = {}) => {
@@ -8729,7 +8729,7 @@ var Object$1 = class Object$1 {
8729
8729
  const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
8730
8730
  const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
8731
8731
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
8732
- const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2568+889927c4");
8732
+ const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2609+017171aa");
8733
8733
  const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
8734
8734
  return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
8735
8735
  const dereferencePortable = async (portableUrl, extra = {}) => {
@@ -8955,7 +8955,7 @@ var Object$1 = class Object$1 {
8955
8955
  const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
8956
8956
  const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
8957
8957
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
8958
- const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2568+889927c4");
8958
+ const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2609+017171aa");
8959
8959
  const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
8960
8960
  return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
8961
8961
  const dereferencePortable = async (portableUrl, extra = {}) => {
@@ -10164,7 +10164,7 @@ var Object$1 = class Object$1 {
10164
10164
  * @throws {TypeError} If the given `json` is invalid.
10165
10165
  */
10166
10166
  static async fromJsonLd(json, options = {}) {
10167
- return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2568+889927c4").startActiveSpan("activitypub.parse_object", async (span) => {
10167
+ return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2609+017171aa").startActiveSpan("activitypub.parse_object", async (span) => {
10168
10168
  try {
10169
10169
  const object = await this.__fromJsonLd__Object__(json, span, options);
10170
10170
  if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
@@ -11389,7 +11389,7 @@ var Object$1 = class Object$1 {
11389
11389
  let _3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType__array = values["https://www.w3.org/ns/activitystreams#mediaType"];
11390
11390
  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) {
11391
11391
  if (v == null) continue;
11392
- const decoded = v["@value"];
11392
+ const decoded = typeof v === "object" && "@value" in v && typeof v["@value"] === "string" && !("@language" in v) ? v["@value"] : void 0;
11393
11393
  if (typeof decoded === "undefined") {
11394
11394
  shouldCacheJsonLd = false;
11395
11395
  continue;
@@ -12008,7 +12008,7 @@ var Emoji = class Emoji extends Object$1 {
12008
12008
  * @throws {TypeError} If the given `json` is invalid.
12009
12009
  */
12010
12010
  static async fromJsonLd(json, options = {}) {
12011
- return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2568+889927c4").startActiveSpan("activitypub.parse_object", async (span) => {
12011
+ return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2609+017171aa").startActiveSpan("activitypub.parse_object", async (span) => {
12012
12012
  try {
12013
12013
  const object = await this.__fromJsonLd__Emoji__(json, span, options);
12014
12014
  if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
@@ -12279,7 +12279,7 @@ var ChatMessage = class ChatMessage extends Object$1 {
12279
12279
  const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
12280
12280
  const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
12281
12281
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
12282
- const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2568+889927c4");
12282
+ const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2609+017171aa");
12283
12283
  const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
12284
12284
  return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
12285
12285
  const dereferencePortable = async (portableUrl, extra = {}) => {
@@ -12522,7 +12522,7 @@ var ChatMessage = class ChatMessage extends Object$1 {
12522
12522
  const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
12523
12523
  const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
12524
12524
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
12525
- const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2568+889927c4");
12525
+ const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2609+017171aa");
12526
12526
  const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
12527
12527
  return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
12528
12528
  const dereferencePortable = async (portableUrl, extra = {}) => {
@@ -12947,7 +12947,7 @@ var ChatMessage = class ChatMessage extends Object$1 {
12947
12947
  * @throws {TypeError} If the given `json` is invalid.
12948
12948
  */
12949
12949
  static async fromJsonLd(json, options = {}) {
12950
- return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2568+889927c4").startActiveSpan("activitypub.parse_object", async (span) => {
12950
+ return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2609+017171aa").startActiveSpan("activitypub.parse_object", async (span) => {
12951
12951
  try {
12952
12952
  const object = await this.__fromJsonLd__ChatMessage__(json, span, options);
12953
12953
  if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
@@ -13742,7 +13742,7 @@ var Activity = class Activity extends Object$1 {
13742
13742
  const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
13743
13743
  const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
13744
13744
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
13745
- const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2568+889927c4");
13745
+ const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2609+017171aa");
13746
13746
  const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
13747
13747
  return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
13748
13748
  const dereferencePortable = async (portableUrl, extra = {}) => {
@@ -14094,7 +14094,7 @@ var Activity = class Activity extends Object$1 {
14094
14094
  const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
14095
14095
  const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
14096
14096
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
14097
- const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2568+889927c4");
14097
+ const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2609+017171aa");
14098
14098
  const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
14099
14099
  return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
14100
14100
  const dereferencePortable = async (portableUrl, extra = {}) => {
@@ -14396,7 +14396,7 @@ var Activity = class Activity extends Object$1 {
14396
14396
  const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
14397
14397
  const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
14398
14398
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
14399
- const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2568+889927c4");
14399
+ const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2609+017171aa");
14400
14400
  const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
14401
14401
  return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
14402
14402
  const dereferencePortable = async (portableUrl, extra = {}) => {
@@ -14704,7 +14704,7 @@ var Activity = class Activity extends Object$1 {
14704
14704
  const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
14705
14705
  const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
14706
14706
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
14707
- const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2568+889927c4");
14707
+ const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2609+017171aa");
14708
14708
  const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
14709
14709
  return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
14710
14710
  const dereferencePortable = async (portableUrl, extra = {}) => {
@@ -15006,7 +15006,7 @@ var Activity = class Activity extends Object$1 {
15006
15006
  const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
15007
15007
  const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
15008
15008
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
15009
- const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2568+889927c4");
15009
+ const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2609+017171aa");
15010
15010
  const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
15011
15011
  return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
15012
15012
  const dereferencePortable = async (portableUrl, extra = {}) => {
@@ -15310,7 +15310,7 @@ var Activity = class Activity extends Object$1 {
15310
15310
  const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
15311
15311
  const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
15312
15312
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
15313
- const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2568+889927c4");
15313
+ const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2609+017171aa");
15314
15314
  const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
15315
15315
  return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
15316
15316
  const dereferencePortable = async (portableUrl, extra = {}) => {
@@ -15748,7 +15748,7 @@ var Activity = class Activity extends Object$1 {
15748
15748
  * @throws {TypeError} If the given `json` is invalid.
15749
15749
  */
15750
15750
  static async fromJsonLd(json, options = {}) {
15751
- return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2568+889927c4").startActiveSpan("activitypub.parse_object", async (span) => {
15751
+ return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2609+017171aa").startActiveSpan("activitypub.parse_object", async (span) => {
15752
15752
  try {
15753
15753
  const object = await this.__fromJsonLd__Activity__(json, span, options);
15754
15754
  if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
@@ -16219,7 +16219,7 @@ var EmojiReact = class EmojiReact extends Activity {
16219
16219
  * @throws {TypeError} If the given `json` is invalid.
16220
16220
  */
16221
16221
  static async fromJsonLd(json, options = {}) {
16222
- return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2568+889927c4").startActiveSpan("activitypub.parse_object", async (span) => {
16222
+ return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2609+017171aa").startActiveSpan("activitypub.parse_object", async (span) => {
16223
16223
  try {
16224
16224
  const object = await this.__fromJsonLd__EmojiReact__(json, span, options);
16225
16225
  if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
@@ -16630,7 +16630,7 @@ var PropertyValue = class {
16630
16630
  * @throws {TypeError} If the given `json` is invalid.
16631
16631
  */
16632
16632
  static async fromJsonLd(json, options = {}) {
16633
- return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2568+889927c4").startActiveSpan("activitypub.parse_object", async (span) => {
16633
+ return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2609+017171aa").startActiveSpan("activitypub.parse_object", async (span) => {
16634
16634
  try {
16635
16635
  const object = await this.__fromJsonLd__PropertyValue__(json, span, options);
16636
16636
  if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
@@ -17067,7 +17067,7 @@ var Measure = class {
17067
17067
  * @throws {TypeError} If the given `json` is invalid.
17068
17068
  */
17069
17069
  static async fromJsonLd(json, options = {}) {
17070
- return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2568+889927c4").startActiveSpan("activitypub.parse_object", async (span) => {
17070
+ return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2609+017171aa").startActiveSpan("activitypub.parse_object", async (span) => {
17071
17071
  try {
17072
17072
  const object = await this.__fromJsonLd__Measure__(json, span, options);
17073
17073
  if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
@@ -17124,7 +17124,7 @@ var Measure = class {
17124
17124
  let _27fgyFbosTtMAhuepJH8K3ZGURT6__array = values["http://www.ontology-of-units-of-measure.org/resource/om-2/hasUnit"];
17125
17125
  for (const v of _27fgyFbosTtMAhuepJH8K3ZGURT6__array == null ? [] : _27fgyFbosTtMAhuepJH8K3ZGURT6__array.length === 1 && "@list" in _27fgyFbosTtMAhuepJH8K3ZGURT6__array[0] ? _27fgyFbosTtMAhuepJH8K3ZGURT6__array[0]["@list"] : _27fgyFbosTtMAhuepJH8K3ZGURT6__array) {
17126
17126
  if (v == null) continue;
17127
- const decoded = v["@value"];
17127
+ const decoded = typeof v === "object" && "@value" in v && typeof v["@value"] === "string" && !("@language" in v) ? v["@value"] : void 0;
17128
17128
  if (typeof decoded === "undefined") {
17129
17129
  shouldCacheJsonLd = false;
17130
17130
  continue;
@@ -17358,7 +17358,7 @@ var AnnounceAuthorization = class AnnounceAuthorization extends Object$1 {
17358
17358
  const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
17359
17359
  const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
17360
17360
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
17361
- const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2568+889927c4");
17361
+ const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2609+017171aa");
17362
17362
  const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
17363
17363
  return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
17364
17364
  const dereferencePortable = async (portableUrl, extra = {}) => {
@@ -17584,7 +17584,7 @@ var AnnounceAuthorization = class AnnounceAuthorization extends Object$1 {
17584
17584
  const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
17585
17585
  const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
17586
17586
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
17587
- const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2568+889927c4");
17587
+ const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2609+017171aa");
17588
17588
  const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
17589
17589
  return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
17590
17590
  const dereferencePortable = async (portableUrl, extra = {}) => {
@@ -17936,7 +17936,7 @@ var AnnounceAuthorization = class AnnounceAuthorization extends Object$1 {
17936
17936
  * @throws {TypeError} If the given `json` is invalid.
17937
17937
  */
17938
17938
  static async fromJsonLd(json, options = {}) {
17939
- return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2568+889927c4").startActiveSpan("activitypub.parse_object", async (span) => {
17939
+ return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2609+017171aa").startActiveSpan("activitypub.parse_object", async (span) => {
17940
17940
  try {
17941
17941
  const object = await this.__fromJsonLd__AnnounceAuthorization__(json, span, options);
17942
17942
  if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
@@ -18254,7 +18254,7 @@ var AnnounceRequest = class AnnounceRequest extends Activity {
18254
18254
  * @throws {TypeError} If the given `json` is invalid.
18255
18255
  */
18256
18256
  static async fromJsonLd(json, options = {}) {
18257
- return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2568+889927c4").startActiveSpan("activitypub.parse_object", async (span) => {
18257
+ return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2609+017171aa").startActiveSpan("activitypub.parse_object", async (span) => {
18258
18258
  try {
18259
18259
  const object = await this.__fromJsonLd__AnnounceRequest__(json, span, options);
18260
18260
  if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
@@ -18787,7 +18787,7 @@ var InteractionPolicy = class {
18787
18787
  * @throws {TypeError} If the given `json` is invalid.
18788
18788
  */
18789
18789
  static async fromJsonLd(json, options = {}) {
18790
- return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2568+889927c4").startActiveSpan("activitypub.parse_object", async (span) => {
18790
+ return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2609+017171aa").startActiveSpan("activitypub.parse_object", async (span) => {
18791
18791
  try {
18792
18792
  const object = await this.__fromJsonLd__InteractionPolicy__(json, span, options);
18793
18793
  if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
@@ -19432,7 +19432,7 @@ var InteractionRule = class {
19432
19432
  * @throws {TypeError} If the given `json` is invalid.
19433
19433
  */
19434
19434
  static async fromJsonLd(json, options = {}) {
19435
- return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2568+889927c4").startActiveSpan("activitypub.parse_object", async (span) => {
19435
+ return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2609+017171aa").startActiveSpan("activitypub.parse_object", async (span) => {
19436
19436
  try {
19437
19437
  const object = await this.__fromJsonLd__InteractionRule__(json, span, options);
19438
19438
  if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
@@ -19724,7 +19724,7 @@ var LikeAuthorization = class LikeAuthorization extends Object$1 {
19724
19724
  const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
19725
19725
  const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
19726
19726
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
19727
- const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2568+889927c4");
19727
+ const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2609+017171aa");
19728
19728
  const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
19729
19729
  return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
19730
19730
  const dereferencePortable = async (portableUrl, extra = {}) => {
@@ -19950,7 +19950,7 @@ var LikeAuthorization = class LikeAuthorization extends Object$1 {
19950
19950
  const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
19951
19951
  const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
19952
19952
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
19953
- const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2568+889927c4");
19953
+ const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2609+017171aa");
19954
19954
  const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
19955
19955
  return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
19956
19956
  const dereferencePortable = async (portableUrl, extra = {}) => {
@@ -20302,7 +20302,7 @@ var LikeAuthorization = class LikeAuthorization extends Object$1 {
20302
20302
  * @throws {TypeError} If the given `json` is invalid.
20303
20303
  */
20304
20304
  static async fromJsonLd(json, options = {}) {
20305
- return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2568+889927c4").startActiveSpan("activitypub.parse_object", async (span) => {
20305
+ return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2609+017171aa").startActiveSpan("activitypub.parse_object", async (span) => {
20306
20306
  try {
20307
20307
  const object = await this.__fromJsonLd__LikeAuthorization__(json, span, options);
20308
20308
  if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
@@ -20619,7 +20619,7 @@ var LikeRequest = class LikeRequest extends Activity {
20619
20619
  * @throws {TypeError} If the given `json` is invalid.
20620
20620
  */
20621
20621
  static async fromJsonLd(json, options = {}) {
20622
- return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2568+889927c4").startActiveSpan("activitypub.parse_object", async (span) => {
20622
+ return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2609+017171aa").startActiveSpan("activitypub.parse_object", async (span) => {
20623
20623
  try {
20624
20624
  const object = await this.__fromJsonLd__LikeRequest__(json, span, options);
20625
20625
  if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
@@ -20874,7 +20874,7 @@ var ReplyAuthorization = class ReplyAuthorization extends Object$1 {
20874
20874
  const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
20875
20875
  const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
20876
20876
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
20877
- const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2568+889927c4");
20877
+ const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2609+017171aa");
20878
20878
  const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
20879
20879
  return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
20880
20880
  const dereferencePortable = async (portableUrl, extra = {}) => {
@@ -21100,7 +21100,7 @@ var ReplyAuthorization = class ReplyAuthorization extends Object$1 {
21100
21100
  const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
21101
21101
  const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
21102
21102
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
21103
- const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2568+889927c4");
21103
+ const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2609+017171aa");
21104
21104
  const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
21105
21105
  return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
21106
21106
  const dereferencePortable = async (portableUrl, extra = {}) => {
@@ -21452,7 +21452,7 @@ var ReplyAuthorization = class ReplyAuthorization extends Object$1 {
21452
21452
  * @throws {TypeError} If the given `json` is invalid.
21453
21453
  */
21454
21454
  static async fromJsonLd(json, options = {}) {
21455
- return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2568+889927c4").startActiveSpan("activitypub.parse_object", async (span) => {
21455
+ return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2609+017171aa").startActiveSpan("activitypub.parse_object", async (span) => {
21456
21456
  try {
21457
21457
  const object = await this.__fromJsonLd__ReplyAuthorization__(json, span, options);
21458
21458
  if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
@@ -21769,7 +21769,7 @@ var ReplyRequest = class ReplyRequest extends Activity {
21769
21769
  * @throws {TypeError} If the given `json` is invalid.
21770
21770
  */
21771
21771
  static async fromJsonLd(json, options = {}) {
21772
- return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2568+889927c4").startActiveSpan("activitypub.parse_object", async (span) => {
21772
+ return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2609+017171aa").startActiveSpan("activitypub.parse_object", async (span) => {
21773
21773
  try {
21774
21774
  const object = await this.__fromJsonLd__ReplyRequest__(json, span, options);
21775
21775
  if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
@@ -22024,7 +22024,7 @@ var QuoteAuthorization = class QuoteAuthorization extends Object$1 {
22024
22024
  const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
22025
22025
  const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
22026
22026
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
22027
- const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2568+889927c4");
22027
+ const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2609+017171aa");
22028
22028
  const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
22029
22029
  return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
22030
22030
  const dereferencePortable = async (portableUrl, extra = {}) => {
@@ -22249,7 +22249,7 @@ var QuoteAuthorization = class QuoteAuthorization extends Object$1 {
22249
22249
  const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
22250
22250
  const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
22251
22251
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
22252
- const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2568+889927c4");
22252
+ const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2609+017171aa");
22253
22253
  const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
22254
22254
  return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
22255
22255
  const dereferencePortable = async (portableUrl, extra = {}) => {
@@ -22603,7 +22603,7 @@ var QuoteAuthorization = class QuoteAuthorization extends Object$1 {
22603
22603
  * @throws {TypeError} If the given `json` is invalid.
22604
22604
  */
22605
22605
  static async fromJsonLd(json, options = {}) {
22606
- return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2568+889927c4").startActiveSpan("activitypub.parse_object", async (span) => {
22606
+ return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2609+017171aa").startActiveSpan("activitypub.parse_object", async (span) => {
22607
22607
  try {
22608
22608
  const object = await this.__fromJsonLd__QuoteAuthorization__(json, span, options);
22609
22609
  if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
@@ -22950,7 +22950,7 @@ var QuoteRequest = class QuoteRequest extends Activity {
22950
22950
  * @throws {TypeError} If the given `json` is invalid.
22951
22951
  */
22952
22952
  static async fromJsonLd(json, options = {}) {
22953
- return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2568+889927c4").startActiveSpan("activitypub.parse_object", async (span) => {
22953
+ return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2609+017171aa").startActiveSpan("activitypub.parse_object", async (span) => {
22954
22954
  try {
22955
22955
  const object = await this.__fromJsonLd__QuoteRequest__(json, span, options);
22956
22956
  if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
@@ -23440,7 +23440,7 @@ var Translation = class {
23440
23440
  const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
23441
23441
  const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
23442
23442
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
23443
- const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2568+889927c4");
23443
+ const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2609+017171aa");
23444
23444
  const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
23445
23445
  return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
23446
23446
  const dereferencePortable = async (portableUrl, extra = {}) => {
@@ -24034,7 +24034,7 @@ var Translation = class {
24034
24034
  * @throws {TypeError} If the given `json` is invalid.
24035
24035
  */
24036
24036
  static async fromJsonLd(json, options = {}) {
24037
- return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2568+889927c4").startActiveSpan("activitypub.parse_object", async (span) => {
24037
+ return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2609+017171aa").startActiveSpan("activitypub.parse_object", async (span) => {
24038
24038
  try {
24039
24039
  const object = await this.__fromJsonLd__Translation__(json, span, options);
24040
24040
  if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
@@ -24421,7 +24421,7 @@ var FeatureAuthorization = class FeatureAuthorization extends Object$1 {
24421
24421
  const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
24422
24422
  const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
24423
24423
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
24424
- const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2568+889927c4");
24424
+ const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2609+017171aa");
24425
24425
  const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
24426
24426
  return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
24427
24427
  const dereferencePortable = async (portableUrl, extra = {}) => {
@@ -24646,7 +24646,7 @@ var FeatureAuthorization = class FeatureAuthorization extends Object$1 {
24646
24646
  const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
24647
24647
  const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
24648
24648
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
24649
- const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2568+889927c4");
24649
+ const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2609+017171aa");
24650
24650
  const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
24651
24651
  return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
24652
24652
  const dereferencePortable = async (portableUrl, extra = {}) => {
@@ -25000,7 +25000,7 @@ var FeatureAuthorization = class FeatureAuthorization extends Object$1 {
25000
25000
  * @throws {TypeError} If the given `json` is invalid.
25001
25001
  */
25002
25002
  static async fromJsonLd(json, options = {}) {
25003
- return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2568+889927c4").startActiveSpan("activitypub.parse_object", async (span) => {
25003
+ return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2609+017171aa").startActiveSpan("activitypub.parse_object", async (span) => {
25004
25004
  try {
25005
25005
  const object = await this.__fromJsonLd__FeatureAuthorization__(json, span, options);
25006
25006
  if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
@@ -25315,7 +25315,7 @@ var FeatureRequest = class FeatureRequest extends Activity {
25315
25315
  * @throws {TypeError} If the given `json` is invalid.
25316
25316
  */
25317
25317
  static async fromJsonLd(json, options = {}) {
25318
- return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2568+889927c4").startActiveSpan("activitypub.parse_object", async (span) => {
25318
+ return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2609+017171aa").startActiveSpan("activitypub.parse_object", async (span) => {
25319
25319
  try {
25320
25320
  const object = await this.__fromJsonLd__FeatureRequest__(json, span, options);
25321
25321
  if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
@@ -25892,7 +25892,7 @@ var Collection = class Collection extends Object$1 {
25892
25892
  const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
25893
25893
  const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
25894
25894
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
25895
- const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2568+889927c4");
25895
+ const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2609+017171aa");
25896
25896
  const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
25897
25897
  return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
25898
25898
  const dereferencePortable = async (portableUrl, extra = {}) => {
@@ -26118,7 +26118,7 @@ var Collection = class Collection extends Object$1 {
26118
26118
  const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
26119
26119
  const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
26120
26120
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
26121
- const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2568+889927c4");
26121
+ const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2609+017171aa");
26122
26122
  const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
26123
26123
  return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
26124
26124
  const dereferencePortable = async (portableUrl, extra = {}) => {
@@ -26344,7 +26344,7 @@ var Collection = class Collection extends Object$1 {
26344
26344
  const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
26345
26345
  const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
26346
26346
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
26347
- const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2568+889927c4");
26347
+ const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2609+017171aa");
26348
26348
  const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
26349
26349
  return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
26350
26350
  const dereferencePortable = async (portableUrl, extra = {}) => {
@@ -26570,7 +26570,7 @@ var Collection = class Collection extends Object$1 {
26570
26570
  const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
26571
26571
  const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
26572
26572
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
26573
- const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2568+889927c4");
26573
+ const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2609+017171aa");
26574
26574
  const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
26575
26575
  return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
26576
26576
  const dereferencePortable = async (portableUrl, extra = {}) => {
@@ -26811,7 +26811,7 @@ var Collection = class Collection extends Object$1 {
26811
26811
  const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
26812
26812
  const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
26813
26813
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
26814
- const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2568+889927c4");
26814
+ const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2609+017171aa");
26815
26815
  const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
26816
26816
  return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
26817
26817
  const dereferencePortable = async (portableUrl, extra = {}) => {
@@ -27036,7 +27036,7 @@ var Collection = class Collection extends Object$1 {
27036
27036
  const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
27037
27037
  const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
27038
27038
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
27039
- const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2568+889927c4");
27039
+ const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2609+017171aa");
27040
27040
  const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
27041
27041
  return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
27042
27042
  const dereferencePortable = async (portableUrl, extra = {}) => {
@@ -27261,7 +27261,7 @@ var Collection = class Collection extends Object$1 {
27261
27261
  const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
27262
27262
  const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
27263
27263
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
27264
- const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2568+889927c4");
27264
+ const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2609+017171aa");
27265
27265
  const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
27266
27266
  return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
27267
27267
  const dereferencePortable = async (portableUrl, extra = {}) => {
@@ -27486,7 +27486,7 @@ var Collection = class Collection extends Object$1 {
27486
27486
  const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
27487
27487
  const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
27488
27488
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
27489
- const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2568+889927c4");
27489
+ const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2609+017171aa");
27490
27490
  const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
27491
27491
  return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
27492
27492
  const dereferencePortable = async (portableUrl, extra = {}) => {
@@ -27711,7 +27711,7 @@ var Collection = class Collection extends Object$1 {
27711
27711
  const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
27712
27712
  const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
27713
27713
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
27714
- const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2568+889927c4");
27714
+ const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2609+017171aa");
27715
27715
  const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
27716
27716
  return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
27717
27717
  const dereferencePortable = async (portableUrl, extra = {}) => {
@@ -27936,7 +27936,7 @@ var Collection = class Collection extends Object$1 {
27936
27936
  const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
27937
27937
  const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
27938
27938
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
27939
- const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2568+889927c4");
27939
+ const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2609+017171aa");
27940
27940
  const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
27941
27941
  return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
27942
27942
  const dereferencePortable = async (portableUrl, extra = {}) => {
@@ -28161,7 +28161,7 @@ var Collection = class Collection extends Object$1 {
28161
28161
  const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
28162
28162
  const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
28163
28163
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
28164
- const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2568+889927c4");
28164
+ const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2609+017171aa");
28165
28165
  const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
28166
28166
  return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
28167
28167
  const dereferencePortable = async (portableUrl, extra = {}) => {
@@ -28386,7 +28386,7 @@ var Collection = class Collection extends Object$1 {
28386
28386
  const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
28387
28387
  const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
28388
28388
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
28389
- const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2568+889927c4");
28389
+ const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2609+017171aa");
28390
28390
  const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
28391
28391
  return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
28392
28392
  const dereferencePortable = async (portableUrl, extra = {}) => {
@@ -29026,7 +29026,7 @@ var Collection = class Collection extends Object$1 {
29026
29026
  * @throws {TypeError} If the given `json` is invalid.
29027
29027
  */
29028
29028
  static async fromJsonLd(json, options = {}) {
29029
- return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2568+889927c4").startActiveSpan("activitypub.parse_object", async (span) => {
29029
+ return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2609+017171aa").startActiveSpan("activitypub.parse_object", async (span) => {
29030
29030
  try {
29031
29031
  const object = await this.__fromJsonLd__Collection__(json, span, options);
29032
29032
  if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
@@ -29711,7 +29711,7 @@ var OrderedCollection = class OrderedCollection extends Collection {
29711
29711
  const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
29712
29712
  const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
29713
29713
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
29714
- const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2568+889927c4");
29714
+ const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2609+017171aa");
29715
29715
  const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
29716
29716
  return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
29717
29717
  const dereferencePortable = async (portableUrl, extra = {}) => {
@@ -30117,7 +30117,7 @@ var OrderedCollection = class OrderedCollection extends Collection {
30117
30117
  * @throws {TypeError} If the given `json` is invalid.
30118
30118
  */
30119
30119
  static async fromJsonLd(json, options = {}) {
30120
- return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2568+889927c4").startActiveSpan("activitypub.parse_object", async (span) => {
30120
+ return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2609+017171aa").startActiveSpan("activitypub.parse_object", async (span) => {
30121
30121
  try {
30122
30122
  const object = await this.__fromJsonLd__OrderedCollection__(json, span, options);
30123
30123
  if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
@@ -30599,7 +30599,7 @@ var FeaturedCollection = class FeaturedCollection extends OrderedCollection {
30599
30599
  * @throws {TypeError} If the given `json` is invalid.
30600
30600
  */
30601
30601
  static async fromJsonLd(json, options = {}) {
30602
- return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2568+889927c4").startActiveSpan("activitypub.parse_object", async (span) => {
30602
+ return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2609+017171aa").startActiveSpan("activitypub.parse_object", async (span) => {
30603
30603
  try {
30604
30604
  const object = await this.__fromJsonLd__FeaturedCollection__(json, span, options);
30605
30605
  if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
@@ -30889,7 +30889,7 @@ var FeaturedItem = class FeaturedItem extends Object$1 {
30889
30889
  const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
30890
30890
  const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
30891
30891
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
30892
- const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2568+889927c4");
30892
+ const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2609+017171aa");
30893
30893
  const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
30894
30894
  return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
30895
30895
  const dereferencePortable = async (portableUrl, extra = {}) => {
@@ -31114,7 +31114,7 @@ var FeaturedItem = class FeaturedItem extends Object$1 {
31114
31114
  const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
31115
31115
  const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
31116
31116
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
31117
- const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2568+889927c4");
31117
+ const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2609+017171aa");
31118
31118
  const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
31119
31119
  return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
31120
31120
  const dereferencePortable = async (portableUrl, extra = {}) => {
@@ -31469,7 +31469,7 @@ var FeaturedItem = class FeaturedItem extends Object$1 {
31469
31469
  * @throws {TypeError} If the given `json` is invalid.
31470
31470
  */
31471
31471
  static async fromJsonLd(json, options = {}) {
31472
- return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2568+889927c4").startActiveSpan("activitypub.parse_object", async (span) => {
31472
+ return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2609+017171aa").startActiveSpan("activitypub.parse_object", async (span) => {
31473
31473
  try {
31474
31474
  const object = await this.__fromJsonLd__FeaturedItem__(json, span, options);
31475
31475
  if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
@@ -31948,7 +31948,7 @@ var DidService = class {
31948
31948
  * @throws {TypeError} If the given `json` is invalid.
31949
31949
  */
31950
31950
  static async fromJsonLd(json, options = {}) {
31951
- return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2568+889927c4").startActiveSpan("activitypub.parse_object", async (span) => {
31951
+ return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2609+017171aa").startActiveSpan("activitypub.parse_object", async (span) => {
31952
31952
  try {
31953
31953
  const object = await this.__fromJsonLd__DidService__(json, span, options);
31954
31954
  if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
@@ -32214,7 +32214,7 @@ var Export = class Export extends DidService {
32214
32214
  * @throws {TypeError} If the given `json` is invalid.
32215
32215
  */
32216
32216
  static async fromJsonLd(json, options = {}) {
32217
- return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2568+889927c4").startActiveSpan("activitypub.parse_object", async (span) => {
32217
+ return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2609+017171aa").startActiveSpan("activitypub.parse_object", async (span) => {
32218
32218
  try {
32219
32219
  const object = await this.__fromJsonLd__Export__(json, span, options);
32220
32220
  if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
@@ -32549,7 +32549,7 @@ var DataIntegrityProof = class {
32549
32549
  const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
32550
32550
  const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
32551
32551
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
32552
- const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2568+889927c4");
32552
+ const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2609+017171aa");
32553
32553
  const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
32554
32554
  return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
32555
32555
  const dereferencePortable = async (portableUrl, extra = {}) => {
@@ -32906,7 +32906,7 @@ var DataIntegrityProof = class {
32906
32906
  * @throws {TypeError} If the given `json` is invalid.
32907
32907
  */
32908
32908
  static async fromJsonLd(json, options = {}) {
32909
- return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2568+889927c4").startActiveSpan("activitypub.parse_object", async (span) => {
32909
+ return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2609+017171aa").startActiveSpan("activitypub.parse_object", async (span) => {
32910
32910
  try {
32911
32911
  const object = await this.__fromJsonLd__DataIntegrityProof__(json, span, options);
32912
32912
  if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
@@ -33299,7 +33299,7 @@ var CryptographicKey = class {
33299
33299
  const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
33300
33300
  const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
33301
33301
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
33302
- const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2568+889927c4");
33302
+ const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2609+017171aa");
33303
33303
  const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
33304
33304
  return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
33305
33305
  const dereferencePortable = async (portableUrl, extra = {}) => {
@@ -33701,7 +33701,7 @@ var CryptographicKey = class {
33701
33701
  * @throws {TypeError} If the given `json` is invalid.
33702
33702
  */
33703
33703
  static async fromJsonLd(json, options = {}) {
33704
- return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2568+889927c4").startActiveSpan("activitypub.parse_object", async (span) => {
33704
+ return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2609+017171aa").startActiveSpan("activitypub.parse_object", async (span) => {
33705
33705
  try {
33706
33706
  const object = await this.__fromJsonLd__CryptographicKey__(json, span, options);
33707
33707
  if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
@@ -34055,7 +34055,7 @@ var Multikey = class {
34055
34055
  const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
34056
34056
  const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
34057
34057
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
34058
- const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2568+889927c4");
34058
+ const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2609+017171aa");
34059
34059
  const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
34060
34060
  return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
34061
34061
  const dereferencePortable = async (portableUrl, extra = {}) => {
@@ -34463,7 +34463,7 @@ var Multikey = class {
34463
34463
  * @throws {TypeError} If the given `json` is invalid.
34464
34464
  */
34465
34465
  static async fromJsonLd(json, options = {}) {
34466
- return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2568+889927c4").startActiveSpan("activitypub.parse_object", async (span) => {
34466
+ return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2609+017171aa").startActiveSpan("activitypub.parse_object", async (span) => {
34467
34467
  try {
34468
34468
  const object = await this.__fromJsonLd__Multikey__(json, span, options);
34469
34469
  if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
@@ -34950,7 +34950,7 @@ var Agreement = class Agreement extends Object$1 {
34950
34950
  * @throws {TypeError} If the given `json` is invalid.
34951
34951
  */
34952
34952
  static async fromJsonLd(json, options = {}) {
34953
- return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2568+889927c4").startActiveSpan("activitypub.parse_object", async (span) => {
34953
+ return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2609+017171aa").startActiveSpan("activitypub.parse_object", async (span) => {
34954
34954
  try {
34955
34955
  const object = await this.__fromJsonLd__Agreement__(json, span, options);
34956
34956
  if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
@@ -35444,7 +35444,7 @@ var Commitment = class {
35444
35444
  * @throws {TypeError} If the given `json` is invalid.
35445
35445
  */
35446
35446
  static async fromJsonLd(json, options = {}) {
35447
- return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2568+889927c4").startActiveSpan("activitypub.parse_object", async (span) => {
35447
+ return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2609+017171aa").startActiveSpan("activitypub.parse_object", async (span) => {
35448
35448
  try {
35449
35449
  const object = await this.__fromJsonLd__Commitment__(json, span, options);
35450
35450
  if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
@@ -36056,7 +36056,7 @@ var Intent = class {
36056
36056
  * @throws {TypeError} If the given `json` is invalid.
36057
36057
  */
36058
36058
  static async fromJsonLd(json, options = {}) {
36059
- return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2568+889927c4").startActiveSpan("activitypub.parse_object", async (span) => {
36059
+ return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2609+017171aa").startActiveSpan("activitypub.parse_object", async (span) => {
36060
36060
  try {
36061
36061
  const object = await this.__fromJsonLd__Intent__(json, span, options);
36062
36062
  if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
@@ -36113,7 +36113,7 @@ var Intent = class {
36113
36113
  let _38VmZKmXJSBy3AvgqNa9GVqbdphy_action__array = values["https://w3id.org/valueflows/ont/vf#action"];
36114
36114
  for (const v of _38VmZKmXJSBy3AvgqNa9GVqbdphy_action__array == null ? [] : _38VmZKmXJSBy3AvgqNa9GVqbdphy_action__array.length === 1 && "@list" in _38VmZKmXJSBy3AvgqNa9GVqbdphy_action__array[0] ? _38VmZKmXJSBy3AvgqNa9GVqbdphy_action__array[0]["@list"] : _38VmZKmXJSBy3AvgqNa9GVqbdphy_action__array) {
36115
36115
  if (v == null) continue;
36116
- const decoded = v["@value"];
36116
+ const decoded = typeof v === "object" && "@value" in v && typeof v["@value"] === "string" && !("@language" in v) ? v["@value"] : void 0;
36117
36117
  if (typeof decoded === "undefined") {
36118
36118
  shouldCacheJsonLd = false;
36119
36119
  continue;
@@ -36655,7 +36655,7 @@ var Proposal = class Proposal extends Object$1 {
36655
36655
  * @throws {TypeError} If the given `json` is invalid.
36656
36656
  */
36657
36657
  static async fromJsonLd(json, options = {}) {
36658
- return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2568+889927c4").startActiveSpan("activitypub.parse_object", async (span) => {
36658
+ return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2609+017171aa").startActiveSpan("activitypub.parse_object", async (span) => {
36659
36659
  try {
36660
36660
  const object = await this.__fromJsonLd__Proposal__(json, span, options);
36661
36661
  if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
@@ -36718,7 +36718,7 @@ var Proposal = class Proposal extends Object$1 {
36718
36718
  let _4wb2xgUBheR2gaD2Se8QBH4LEC7_purpose__array = values["https://w3id.org/valueflows/ont/vf#purpose"];
36719
36719
  for (const v of _4wb2xgUBheR2gaD2Se8QBH4LEC7_purpose__array == null ? [] : _4wb2xgUBheR2gaD2Se8QBH4LEC7_purpose__array.length === 1 && "@list" in _4wb2xgUBheR2gaD2Se8QBH4LEC7_purpose__array[0] ? _4wb2xgUBheR2gaD2Se8QBH4LEC7_purpose__array[0]["@list"] : _4wb2xgUBheR2gaD2Se8QBH4LEC7_purpose__array) {
36720
36720
  if (v == null) continue;
36721
- const decoded = v["@value"];
36721
+ const decoded = typeof v === "object" && "@value" in v && typeof v["@value"] === "string" && !("@language" in v) ? v["@value"] : void 0;
36722
36722
  if (typeof decoded === "undefined") {
36723
36723
  shouldCacheJsonLd = false;
36724
36724
  continue;
@@ -36991,7 +36991,7 @@ var Accept = class Accept extends Activity {
36991
36991
  * @throws {TypeError} If the given `json` is invalid.
36992
36992
  */
36993
36993
  static async fromJsonLd(json, options = {}) {
36994
- return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2568+889927c4").startActiveSpan("activitypub.parse_object", async (span) => {
36994
+ return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2609+017171aa").startActiveSpan("activitypub.parse_object", async (span) => {
36995
36995
  try {
36996
36996
  const object = await this.__fromJsonLd__Accept__(json, span, options);
36997
36997
  if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
@@ -37250,7 +37250,7 @@ var Add = class Add extends Activity {
37250
37250
  * @throws {TypeError} If the given `json` is invalid.
37251
37251
  */
37252
37252
  static async fromJsonLd(json, options = {}) {
37253
- return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2568+889927c4").startActiveSpan("activitypub.parse_object", async (span) => {
37253
+ return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2609+017171aa").startActiveSpan("activitypub.parse_object", async (span) => {
37254
37254
  try {
37255
37255
  const object = await this.__fromJsonLd__Add__(json, span, options);
37256
37256
  if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
@@ -37536,7 +37536,7 @@ var Announce = class Announce extends Activity {
37536
37536
  * @throws {TypeError} If the given `json` is invalid.
37537
37537
  */
37538
37538
  static async fromJsonLd(json, options = {}) {
37539
- return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2568+889927c4").startActiveSpan("activitypub.parse_object", async (span) => {
37539
+ return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2609+017171aa").startActiveSpan("activitypub.parse_object", async (span) => {
37540
37540
  try {
37541
37541
  const object = await this.__fromJsonLd__Announce__(json, span, options);
37542
37542
  if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
@@ -37657,6 +37657,7 @@ var Application = class Application extends Object$1 {
37657
37657
  #_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended = [];
37658
37658
  #_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial = [];
37659
37659
  #_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable = [];
37660
+ #_4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains = [];
37660
37661
  #_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = [];
37661
37662
  #_trust_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = /* @__PURE__ */ new Set();
37662
37663
  #_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = [];
@@ -37874,6 +37875,33 @@ var Application = class Application extends Object$1 {
37874
37875
  else throw new TypeError("The memorial must be of type boolean.");
37875
37876
  if ("indexable" in values && values.indexable != null) if (typeof values.indexable === "boolean") this.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable = [values.indexable];
37876
37877
  else throw new TypeError("The indexable must be of type boolean.");
37878
+ if ("attributionDomains" in values && values.attributionDomains != null) {
37879
+ let copied;
37880
+ let valid = false;
37881
+ if (Array.isArray(values.attributionDomains)) {
37882
+ const array = values.attributionDomains;
37883
+ const test = (v) => typeof v === "string";
37884
+ let checked;
37885
+ if (array.length < vocabSparseArrayMinimumLength ? array.every(test) : (checked = vocabValidatePropertyArray(array, test)).valid) {
37886
+ const input = values.attributionDomains;
37887
+ if (input.length < vocabSparseArrayMinimumLength && !checked?.sparse) {
37888
+ copied = input.slice();
37889
+ valid = true;
37890
+ } else {
37891
+ const result = vocabCopyValidatedPropertyArray(input, test, checked ?? {
37892
+ valid: true,
37893
+ sparse: false
37894
+ });
37895
+ if (result.ok) {
37896
+ copied = result.array;
37897
+ valid = true;
37898
+ }
37899
+ }
37900
+ }
37901
+ }
37902
+ if (valid) this.#_4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains = copied;
37903
+ else throw new TypeError("The attributionDomains must be an array of type string.");
37904
+ }
37877
37905
  if ("successor" in values && values.successor != null) if (values.successor instanceof Application || values.successor instanceof Group || values.successor instanceof Organization || values.successor instanceof Person || values.successor instanceof Service || values.successor instanceof URL) {
37878
37906
  this.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = [values.successor];
37879
37907
  this.#_trust_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo.add(0);
@@ -38233,6 +38261,34 @@ var Application = class Application extends Object$1 {
38233
38261
  clone.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable = this.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable.length < vocabSparseArrayMinimumLength ? this.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable.slice() : vocabCopyPropertyArray(this.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable);
38234
38262
  if ("indexable" in values && values.indexable != null) if (typeof values.indexable === "boolean") clone.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable = [values.indexable];
38235
38263
  else throw new TypeError("The indexable must be of type boolean.");
38264
+ clone.#_4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains = this.#_4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains.length < vocabSparseArrayMinimumLength ? this.#_4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains.slice() : vocabCopyPropertyArray(this.#_4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains);
38265
+ if ("attributionDomains" in values && values.attributionDomains != null) {
38266
+ let copied;
38267
+ let valid = false;
38268
+ if (Array.isArray(values.attributionDomains)) {
38269
+ const array = values.attributionDomains;
38270
+ const test = (v) => typeof v === "string";
38271
+ let checked;
38272
+ if (array.length < vocabSparseArrayMinimumLength ? array.every(test) : (checked = vocabValidatePropertyArray(array, test)).valid) {
38273
+ const input = values.attributionDomains;
38274
+ if (input.length < vocabSparseArrayMinimumLength && !checked?.sparse) {
38275
+ copied = input.slice();
38276
+ valid = true;
38277
+ } else {
38278
+ const result = vocabCopyValidatedPropertyArray(input, test, checked ?? {
38279
+ valid: true,
38280
+ sparse: false
38281
+ });
38282
+ if (result.ok) {
38283
+ copied = result.array;
38284
+ valid = true;
38285
+ }
38286
+ }
38287
+ }
38288
+ }
38289
+ if (valid) clone.#_4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains = copied;
38290
+ else throw new TypeError("The attributionDomains must be an array of type string.");
38291
+ }
38236
38292
  clone.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = this.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo.length < vocabSparseArrayMinimumLength ? this.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo.slice() : vocabCopyPropertyArray(this.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo);
38237
38293
  clone.#_trust_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = vocabCopyTrustSet(this.#_trust_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo, clone.#_trust_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo);
38238
38294
  if ("successor" in values && values.successor != null) if (values.successor instanceof Application || values.successor instanceof Group || values.successor instanceof Organization || values.successor instanceof Person || values.successor instanceof Service || values.successor instanceof URL) {
@@ -38621,7 +38677,7 @@ var Application = class Application extends Object$1 {
38621
38677
  const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
38622
38678
  const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
38623
38679
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
38624
- const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2568+889927c4");
38680
+ const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2609+017171aa");
38625
38681
  const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
38626
38682
  return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
38627
38683
  const dereferencePortable = async (portableUrl, extra = {}) => {
@@ -38919,7 +38975,7 @@ var Application = class Application extends Object$1 {
38919
38975
  const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
38920
38976
  const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
38921
38977
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
38922
- const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2568+889927c4");
38978
+ const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2609+017171aa");
38923
38979
  const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
38924
38980
  return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
38925
38981
  const dereferencePortable = async (portableUrl, extra = {}) => {
@@ -39253,7 +39309,7 @@ var Application = class Application extends Object$1 {
39253
39309
  const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
39254
39310
  const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
39255
39311
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
39256
- const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2568+889927c4");
39312
+ const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2609+017171aa");
39257
39313
  const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
39258
39314
  return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
39259
39315
  const dereferencePortable = async (portableUrl, extra = {}) => {
@@ -39501,7 +39557,7 @@ var Application = class Application extends Object$1 {
39501
39557
  const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
39502
39558
  const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
39503
39559
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
39504
- const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2568+889927c4");
39560
+ const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2609+017171aa");
39505
39561
  const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
39506
39562
  return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
39507
39563
  const dereferencePortable = async (portableUrl, extra = {}) => {
@@ -39746,7 +39802,7 @@ var Application = class Application extends Object$1 {
39746
39802
  const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
39747
39803
  const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
39748
39804
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
39749
- const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2568+889927c4");
39805
+ const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2609+017171aa");
39750
39806
  const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
39751
39807
  return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
39752
39808
  const dereferencePortable = async (portableUrl, extra = {}) => {
@@ -39975,7 +40031,7 @@ var Application = class Application extends Object$1 {
39975
40031
  const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
39976
40032
  const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
39977
40033
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
39978
- const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2568+889927c4");
40034
+ const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2609+017171aa");
39979
40035
  const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
39980
40036
  return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
39981
40037
  const dereferencePortable = async (portableUrl, extra = {}) => {
@@ -40207,7 +40263,7 @@ var Application = class Application extends Object$1 {
40207
40263
  const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
40208
40264
  const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
40209
40265
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
40210
- const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2568+889927c4");
40266
+ const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2609+017171aa");
40211
40267
  const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
40212
40268
  return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
40213
40269
  const dereferencePortable = async (portableUrl, extra = {}) => {
@@ -40437,7 +40493,7 @@ var Application = class Application extends Object$1 {
40437
40493
  const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
40438
40494
  const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
40439
40495
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
40440
- const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2568+889927c4");
40496
+ const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2609+017171aa");
40441
40497
  const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
40442
40498
  return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
40443
40499
  const dereferencePortable = async (portableUrl, extra = {}) => {
@@ -40665,7 +40721,7 @@ var Application = class Application extends Object$1 {
40665
40721
  const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
40666
40722
  const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
40667
40723
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
40668
- const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2568+889927c4");
40724
+ const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2609+017171aa");
40669
40725
  const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
40670
40726
  return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
40671
40727
  const dereferencePortable = async (portableUrl, extra = {}) => {
@@ -40893,7 +40949,7 @@ var Application = class Application extends Object$1 {
40893
40949
  const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
40894
40950
  const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
40895
40951
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
40896
- const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2568+889927c4");
40952
+ const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2609+017171aa");
40897
40953
  const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
40898
40954
  return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
40899
40955
  const dereferencePortable = async (portableUrl, extra = {}) => {
@@ -41118,7 +41174,7 @@ var Application = class Application extends Object$1 {
41118
41174
  const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
41119
41175
  const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
41120
41176
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
41121
- const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2568+889927c4");
41177
+ const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2609+017171aa");
41122
41178
  const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
41123
41179
  return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
41124
41180
  const dereferencePortable = async (portableUrl, extra = {}) => {
@@ -41385,11 +41441,20 @@ var Application = class Application extends Object$1 {
41385
41441
  if (this.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable.length < 1) return null;
41386
41442
  return this.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable[0];
41387
41443
  }
41444
+ /** Domains this actor claims as its own, so that Mastodon can credit the
41445
+ * actor on link preview cards that point at one of them. Each value is a
41446
+ * bare host name, without a scheme, port, path, or leading `*.`. Fedify
41447
+ * treats the values as opaque strings and does not normalize or validate
41448
+ * them; applications are responsible for producing normalized host names.
41449
+ */
41450
+ get attributionDomains() {
41451
+ return this.#_4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains;
41452
+ }
41388
41453
  async #fetchSuccessor(url, options = {}) {
41389
41454
  const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
41390
41455
  const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
41391
41456
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
41392
- const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2568+889927c4");
41457
+ const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2609+017171aa");
41393
41458
  const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
41394
41459
  return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
41395
41460
  const dereferencePortable = async (portableUrl, extra = {}) => {
@@ -41664,7 +41729,7 @@ var Application = class Application extends Object$1 {
41664
41729
  const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
41665
41730
  const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
41666
41731
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
41667
- const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2568+889927c4");
41732
+ const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2609+017171aa");
41668
41733
  const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
41669
41734
  return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
41670
41735
  const dereferencePortable = async (portableUrl, extra = {}) => {
@@ -42018,7 +42083,7 @@ var Application = class Application extends Object$1 {
42018
42083
  const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
42019
42084
  const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
42020
42085
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
42021
- const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2568+889927c4");
42086
+ const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2609+017171aa");
42022
42087
  const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
42023
42088
  return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
42024
42089
  const dereferencePortable = async (portableUrl, extra = {}) => {
@@ -42545,6 +42610,12 @@ var Application = class Application extends Object$1 {
42545
42610
  }
42546
42611
  if (compactItems.length > 0) result["indexable"] = compactItems.length > 1 ? compactItems : compactItems[0];
42547
42612
  compactItems = [];
42613
+ for (const v of this.#_4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains) {
42614
+ const item = v;
42615
+ compactItems.push(item);
42616
+ }
42617
+ if (compactItems.length > 0) result["attributionDomains"] = compactItems.length > 1 ? compactItems : compactItems[0];
42618
+ compactItems = [];
42548
42619
  for (const v of this.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo) {
42549
42620
  const item = retainedSignedValueRef(v, signedValues.scope) ?? (v instanceof URL ? formatIri(v) : v instanceof Application ? await v.toJsonLd({
42550
42621
  ...options,
@@ -42663,6 +42734,10 @@ var Application = class Application extends Object$1 {
42663
42734
  "suspended": "toot:suspended",
42664
42735
  "memorial": "toot:memorial",
42665
42736
  "indexable": "toot:indexable",
42737
+ "attributionDomains": {
42738
+ "@id": "toot:attributionDomains",
42739
+ "@container": "@set"
42740
+ },
42666
42741
  "schema": "http://schema.org#",
42667
42742
  "PropertyValue": "schema:PropertyValue",
42668
42743
  "value": "schema:value",
@@ -42892,6 +42967,17 @@ var Application = class Application extends Object$1 {
42892
42967
  }
42893
42968
  if (array.length > 0) values["http://joinmastodon.org/ns#indexable"] = array;
42894
42969
  array = [];
42970
+ for (const v of this.#_4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains) {
42971
+ let element = { "@value": v };
42972
+ if (Array.isArray(element)) {
42973
+ if (element.length < 1) continue;
42974
+ if (element.length == 1) element = element[0];
42975
+ }
42976
+ if (typeof element === "undefined") continue;
42977
+ array.push(element);
42978
+ }
42979
+ if (array.length > 0) values["http://joinmastodon.org/ns#attributionDomains"] = array;
42980
+ array = [];
42895
42981
  for (const v of this.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo) {
42896
42982
  let element = retainedSignedValueRef(v, signedValues.scope) ?? (v instanceof URL ? { "@id": formatIri(v) } : v instanceof Application ? await v.toJsonLd(options) : v instanceof Group ? await v.toJsonLd(options) : v instanceof Organization ? await v.toJsonLd(options) : v instanceof Person ? await v.toJsonLd(options) : await v.toJsonLd(options));
42897
42983
  if (Array.isArray(element)) {
@@ -43000,6 +43086,10 @@ var Application = class Application extends Object$1 {
43000
43086
  "suspended": "toot:suspended",
43001
43087
  "memorial": "toot:memorial",
43002
43088
  "indexable": "toot:indexable",
43089
+ "attributionDomains": {
43090
+ "@id": "toot:attributionDomains",
43091
+ "@container": "@set"
43092
+ },
43003
43093
  "schema": "http://schema.org#",
43004
43094
  "PropertyValue": "schema:PropertyValue",
43005
43095
  "value": "schema:value",
@@ -43050,7 +43140,7 @@ var Application = class Application extends Object$1 {
43050
43140
  * @throws {TypeError} If the given `json` is invalid.
43051
43141
  */
43052
43142
  static async fromJsonLd(json, options = {}) {
43053
- return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2568+889927c4").startActiveSpan("activitypub.parse_object", async (span) => {
43143
+ return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2609+017171aa").startActiveSpan("activitypub.parse_object", async (span) => {
43054
43144
  try {
43055
43145
  const object = await this.__fromJsonLd__Application__(json, span, options);
43056
43146
  if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
@@ -43453,6 +43543,19 @@ var Application = class Application extends Object$1 {
43453
43543
  _2diCorzqPGQQqftp6e4SrCEwEnyk_indexable.push(decoded);
43454
43544
  }
43455
43545
  instance.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable = _2diCorzqPGQQqftp6e4SrCEwEnyk_indexable;
43546
+ const _4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains = [];
43547
+ let _4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains__array = values["http://joinmastodon.org/ns#attributionDomains"];
43548
+ for (const v of _4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains__array == null ? [] : _4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains__array.length === 1 && "@list" in _4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains__array[0] ? _4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains__array[0]["@list"] : _4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains__array) {
43549
+ if (v == null) continue;
43550
+ const decoded = typeof v === "object" && "@value" in v && typeof v["@value"] === "string" && !("@language" in v) ? v["@value"] : void 0;
43551
+ if (typeof decoded === "undefined") {
43552
+ shouldCacheJsonLd = false;
43553
+ continue;
43554
+ }
43555
+ if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
43556
+ _4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains.push(decoded);
43557
+ }
43558
+ instance.#_4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains = _4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains;
43456
43559
  const _2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = [];
43457
43560
  let _2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo__array = values["https://www.w3.org/ns/activitystreams#movedTo"];
43458
43561
  for (const v of _2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo__array == null ? [] : _2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo__array.length === 1 && "@list" in _2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo__array[0] ? _2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo__array[0]["@list"] : _2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo__array) {
@@ -43544,7 +43647,7 @@ var Application = class Application extends Object$1 {
43544
43647
  let _QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage__array = values["https://misskey-hub.net/ns#_misskey_followedMessage"];
43545
43648
  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) {
43546
43649
  if (v == null) continue;
43547
- const decoded = v["@value"];
43650
+ const decoded = typeof v === "object" && "@value" in v && typeof v["@value"] === "string" && !("@language" in v) ? v["@value"] : void 0;
43548
43651
  if (typeof decoded === "undefined") {
43549
43652
  shouldCacheJsonLd = false;
43550
43653
  continue;
@@ -43693,6 +43796,11 @@ var Application = class Application extends Object$1 {
43693
43796
  [Symbol.for("nodejs.util.inspect.custom")]: (_depth, options, inspect) => "URL " + inspect(inspectIri(v), options)
43694
43797
  } : v);
43695
43798
  if (_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable.length == 1) proxy.indexable = _2diCorzqPGQQqftp6e4SrCEwEnyk_indexable[0];
43799
+ const _4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains = this.#_4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains.map((v) => v instanceof URL ? {
43800
+ [Symbol.for("Deno.customInspect")]: (inspect, options) => "URL " + inspect(inspectIri(v), options),
43801
+ [Symbol.for("nodejs.util.inspect.custom")]: (_depth, options, inspect) => "URL " + inspect(inspectIri(v), options)
43802
+ } : v);
43803
+ if (_4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains.length > 1 || !("attributionDomain" in proxy) && _4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains.length > 0) proxy.attributionDomains = _4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains;
43696
43804
  const _2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = this.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo.map((v) => v instanceof URL ? {
43697
43805
  [Symbol.for("Deno.customInspect")]: (inspect, options) => "URL " + inspect(inspectIri(v), options),
43698
43806
  [Symbol.for("nodejs.util.inspect.custom")]: (_depth, options, inspect) => "URL " + inspect(inspectIri(v), options)
@@ -43909,7 +44017,7 @@ var IntransitiveActivity = class IntransitiveActivity extends Activity {
43909
44017
  * @throws {TypeError} If the given `json` is invalid.
43910
44018
  */
43911
44019
  static async fromJsonLd(json, options = {}) {
43912
- return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2568+889927c4").startActiveSpan("activitypub.parse_object", async (span) => {
44020
+ return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2609+017171aa").startActiveSpan("activitypub.parse_object", async (span) => {
43913
44021
  try {
43914
44022
  const object = await this.__fromJsonLd__IntransitiveActivity__(json, span, options);
43915
44023
  if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
@@ -44169,7 +44277,7 @@ var Arrive = class Arrive extends IntransitiveActivity {
44169
44277
  * @throws {TypeError} If the given `json` is invalid.
44170
44278
  */
44171
44279
  static async fromJsonLd(json, options = {}) {
44172
- return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2568+889927c4").startActiveSpan("activitypub.parse_object", async (span) => {
44280
+ return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2609+017171aa").startActiveSpan("activitypub.parse_object", async (span) => {
44173
44281
  try {
44174
44282
  const object = await this.__fromJsonLd__Arrive__(json, span, options);
44175
44283
  if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
@@ -44436,7 +44544,7 @@ var Article = class Article extends Object$1 {
44436
44544
  const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
44437
44545
  const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
44438
44546
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
44439
- const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2568+889927c4");
44547
+ const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2609+017171aa");
44440
44548
  const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
44441
44549
  return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
44442
44550
  const dereferencePortable = async (portableUrl, extra = {}) => {
@@ -44679,7 +44787,7 @@ var Article = class Article extends Object$1 {
44679
44787
  const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
44680
44788
  const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
44681
44789
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
44682
- const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2568+889927c4");
44790
+ const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2609+017171aa");
44683
44791
  const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
44684
44792
  return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
44685
44793
  const dereferencePortable = async (portableUrl, extra = {}) => {
@@ -45106,7 +45214,7 @@ var Article = class Article extends Object$1 {
45106
45214
  * @throws {TypeError} If the given `json` is invalid.
45107
45215
  */
45108
45216
  static async fromJsonLd(json, options = {}) {
45109
- return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2568+889927c4").startActiveSpan("activitypub.parse_object", async (span) => {
45217
+ return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2609+017171aa").startActiveSpan("activitypub.parse_object", async (span) => {
45110
45218
  try {
45111
45219
  const object = await this.__fromJsonLd__Article__(json, span, options);
45112
45220
  if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
@@ -45553,7 +45661,7 @@ var Document = class Document extends Object$1 {
45553
45661
  * @throws {TypeError} If the given `json` is invalid.
45554
45662
  */
45555
45663
  static async fromJsonLd(json, options = {}) {
45556
- return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2568+889927c4").startActiveSpan("activitypub.parse_object", async (span) => {
45664
+ return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2609+017171aa").startActiveSpan("activitypub.parse_object", async (span) => {
45557
45665
  try {
45558
45666
  const object = await this.__fromJsonLd__Document__(json, span, options);
45559
45667
  if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
@@ -45646,7 +45754,7 @@ var Document = class Document extends Object$1 {
45646
45754
  let _2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase__array = values["https://www.w3.org/ns/credentials/v2#digestMultibase"];
45647
45755
  for (const v of _2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase__array == null ? [] : _2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase__array.length === 1 && "@list" in _2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase__array[0] ? _2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase__array[0]["@list"] : _2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase__array) {
45648
45756
  if (v == null) continue;
45649
- const decoded = v["@value"];
45757
+ const decoded = typeof v === "object" && "@value" in v && typeof v["@value"] === "string" && !("@language" in v) ? v["@value"] : void 0;
45650
45758
  if (typeof decoded === "undefined") {
45651
45759
  shouldCacheJsonLd = false;
45652
45760
  continue;
@@ -45883,7 +45991,7 @@ var Audio = class Audio extends Document {
45883
45991
  * @throws {TypeError} If the given `json` is invalid.
45884
45992
  */
45885
45993
  static async fromJsonLd(json, options = {}) {
45886
- return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2568+889927c4").startActiveSpan("activitypub.parse_object", async (span) => {
45994
+ return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2609+017171aa").startActiveSpan("activitypub.parse_object", async (span) => {
45887
45995
  try {
45888
45996
  const object = await this.__fromJsonLd__Audio__(json, span, options);
45889
45997
  if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
@@ -46139,7 +46247,7 @@ var Ignore = class Ignore extends Activity {
46139
46247
  * @throws {TypeError} If the given `json` is invalid.
46140
46248
  */
46141
46249
  static async fromJsonLd(json, options = {}) {
46142
- return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2568+889927c4").startActiveSpan("activitypub.parse_object", async (span) => {
46250
+ return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2609+017171aa").startActiveSpan("activitypub.parse_object", async (span) => {
46143
46251
  try {
46144
46252
  const object = await this.__fromJsonLd__Ignore__(json, span, options);
46145
46253
  if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
@@ -46398,7 +46506,7 @@ var Block = class Block extends Ignore {
46398
46506
  * @throws {TypeError} If the given `json` is invalid.
46399
46507
  */
46400
46508
  static async fromJsonLd(json, options = {}) {
46401
- return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2568+889927c4").startActiveSpan("activitypub.parse_object", async (span) => {
46509
+ return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2609+017171aa").startActiveSpan("activitypub.parse_object", async (span) => {
46402
46510
  try {
46403
46511
  const object = await this.__fromJsonLd__Block__(json, span, options);
46404
46512
  if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
@@ -46674,7 +46782,7 @@ var CollectionPage = class CollectionPage extends Collection {
46674
46782
  const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
46675
46783
  const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
46676
46784
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
46677
- const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2568+889927c4");
46785
+ const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2609+017171aa");
46678
46786
  const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
46679
46787
  return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
46680
46788
  const dereferencePortable = async (portableUrl, extra = {}) => {
@@ -46900,7 +47008,7 @@ var CollectionPage = class CollectionPage extends Collection {
46900
47008
  const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
46901
47009
  const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
46902
47010
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
46903
- const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2568+889927c4");
47011
+ const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2609+017171aa");
46904
47012
  const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
46905
47013
  return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
46906
47014
  const dereferencePortable = async (portableUrl, extra = {}) => {
@@ -47125,7 +47233,7 @@ var CollectionPage = class CollectionPage extends Collection {
47125
47233
  const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
47126
47234
  const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
47127
47235
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
47128
- const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2568+889927c4");
47236
+ const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2609+017171aa");
47129
47237
  const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
47130
47238
  return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
47131
47239
  const dereferencePortable = async (portableUrl, extra = {}) => {
@@ -47552,7 +47660,7 @@ var CollectionPage = class CollectionPage extends Collection {
47552
47660
  * @throws {TypeError} If the given `json` is invalid.
47553
47661
  */
47554
47662
  static async fromJsonLd(json, options = {}) {
47555
- return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2568+889927c4").startActiveSpan("activitypub.parse_object", async (span) => {
47663
+ return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2609+017171aa").startActiveSpan("activitypub.parse_object", async (span) => {
47556
47664
  try {
47557
47665
  const object = await this.__fromJsonLd__CollectionPage__(json, span, options);
47558
47666
  if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
@@ -47917,7 +48025,7 @@ var Create = class Create extends Activity {
47917
48025
  * @throws {TypeError} If the given `json` is invalid.
47918
48026
  */
47919
48027
  static async fromJsonLd(json, options = {}) {
47920
- return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2568+889927c4").startActiveSpan("activitypub.parse_object", async (span) => {
48028
+ return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2609+017171aa").startActiveSpan("activitypub.parse_object", async (span) => {
47921
48029
  try {
47922
48030
  const object = await this.__fromJsonLd__Create__(json, span, options);
47923
48031
  if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
@@ -48199,7 +48307,7 @@ var Delete = class Delete extends Activity {
48199
48307
  * @throws {TypeError} If the given `json` is invalid.
48200
48308
  */
48201
48309
  static async fromJsonLd(json, options = {}) {
48202
- return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2568+889927c4").startActiveSpan("activitypub.parse_object", async (span) => {
48310
+ return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2609+017171aa").startActiveSpan("activitypub.parse_object", async (span) => {
48203
48311
  try {
48204
48312
  const object = await this.__fromJsonLd__Delete__(json, span, options);
48205
48313
  if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
@@ -48458,7 +48566,7 @@ var Dislike = class Dislike extends Activity {
48458
48566
  * @throws {TypeError} If the given `json` is invalid.
48459
48567
  */
48460
48568
  static async fromJsonLd(json, options = {}) {
48461
- return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2568+889927c4").startActiveSpan("activitypub.parse_object", async (span) => {
48569
+ return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2609+017171aa").startActiveSpan("activitypub.parse_object", async (span) => {
48462
48570
  try {
48463
48571
  const object = await this.__fromJsonLd__Dislike__(json, span, options);
48464
48572
  if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
@@ -49115,7 +49223,7 @@ var Endpoints = class {
49115
49223
  * @throws {TypeError} If the given `json` is invalid.
49116
49224
  */
49117
49225
  static async fromJsonLd(json, options = {}) {
49118
- return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2568+889927c4").startActiveSpan("activitypub.parse_object", async (span) => {
49226
+ return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2609+017171aa").startActiveSpan("activitypub.parse_object", async (span) => {
49119
49227
  try {
49120
49228
  const object = await this.__fromJsonLd__Endpoints__(json, span, options);
49121
49229
  if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
@@ -49509,7 +49617,7 @@ var Event = class Event extends Object$1 {
49509
49617
  * @throws {TypeError} If the given `json` is invalid.
49510
49618
  */
49511
49619
  static async fromJsonLd(json, options = {}) {
49512
- return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2568+889927c4").startActiveSpan("activitypub.parse_object", async (span) => {
49620
+ return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2609+017171aa").startActiveSpan("activitypub.parse_object", async (span) => {
49513
49621
  try {
49514
49622
  const object = await this.__fromJsonLd__Event__(json, span, options);
49515
49623
  if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
@@ -49766,7 +49874,7 @@ var Flag = class Flag extends Activity {
49766
49874
  * @throws {TypeError} If the given `json` is invalid.
49767
49875
  */
49768
49876
  static async fromJsonLd(json, options = {}) {
49769
- return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2568+889927c4").startActiveSpan("activitypub.parse_object", async (span) => {
49877
+ return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2609+017171aa").startActiveSpan("activitypub.parse_object", async (span) => {
49770
49878
  try {
49771
49879
  const object = await this.__fromJsonLd__Flag__(json, span, options);
49772
49880
  if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
@@ -50027,7 +50135,7 @@ var Follow = class Follow extends Activity {
50027
50135
  * @throws {TypeError} If the given `json` is invalid.
50028
50136
  */
50029
50137
  static async fromJsonLd(json, options = {}) {
50030
- return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2568+889927c4").startActiveSpan("activitypub.parse_object", async (span) => {
50138
+ return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2609+017171aa").startActiveSpan("activitypub.parse_object", async (span) => {
50031
50139
  try {
50032
50140
  const object = await this.__fromJsonLd__Follow__(json, span, options);
50033
50141
  if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
@@ -50148,6 +50256,7 @@ var Group = class Group extends Object$1 {
50148
50256
  #_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended = [];
50149
50257
  #_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial = [];
50150
50258
  #_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable = [];
50259
+ #_4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains = [];
50151
50260
  #_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = [];
50152
50261
  #_trust_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = /* @__PURE__ */ new Set();
50153
50262
  #_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = [];
@@ -50365,6 +50474,33 @@ var Group = class Group extends Object$1 {
50365
50474
  else throw new TypeError("The memorial must be of type boolean.");
50366
50475
  if ("indexable" in values && values.indexable != null) if (typeof values.indexable === "boolean") this.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable = [values.indexable];
50367
50476
  else throw new TypeError("The indexable must be of type boolean.");
50477
+ if ("attributionDomains" in values && values.attributionDomains != null) {
50478
+ let copied;
50479
+ let valid = false;
50480
+ if (Array.isArray(values.attributionDomains)) {
50481
+ const array = values.attributionDomains;
50482
+ const test = (v) => typeof v === "string";
50483
+ let checked;
50484
+ if (array.length < vocabSparseArrayMinimumLength ? array.every(test) : (checked = vocabValidatePropertyArray(array, test)).valid) {
50485
+ const input = values.attributionDomains;
50486
+ if (input.length < vocabSparseArrayMinimumLength && !checked?.sparse) {
50487
+ copied = input.slice();
50488
+ valid = true;
50489
+ } else {
50490
+ const result = vocabCopyValidatedPropertyArray(input, test, checked ?? {
50491
+ valid: true,
50492
+ sparse: false
50493
+ });
50494
+ if (result.ok) {
50495
+ copied = result.array;
50496
+ valid = true;
50497
+ }
50498
+ }
50499
+ }
50500
+ }
50501
+ if (valid) this.#_4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains = copied;
50502
+ else throw new TypeError("The attributionDomains must be an array of type string.");
50503
+ }
50368
50504
  if ("successor" in values && values.successor != null) if (values.successor instanceof Application || values.successor instanceof Group || values.successor instanceof Organization || values.successor instanceof Person || values.successor instanceof Service || values.successor instanceof URL) {
50369
50505
  this.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = [values.successor];
50370
50506
  this.#_trust_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo.add(0);
@@ -50724,6 +50860,34 @@ var Group = class Group extends Object$1 {
50724
50860
  clone.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable = this.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable.length < vocabSparseArrayMinimumLength ? this.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable.slice() : vocabCopyPropertyArray(this.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable);
50725
50861
  if ("indexable" in values && values.indexable != null) if (typeof values.indexable === "boolean") clone.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable = [values.indexable];
50726
50862
  else throw new TypeError("The indexable must be of type boolean.");
50863
+ clone.#_4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains = this.#_4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains.length < vocabSparseArrayMinimumLength ? this.#_4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains.slice() : vocabCopyPropertyArray(this.#_4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains);
50864
+ if ("attributionDomains" in values && values.attributionDomains != null) {
50865
+ let copied;
50866
+ let valid = false;
50867
+ if (Array.isArray(values.attributionDomains)) {
50868
+ const array = values.attributionDomains;
50869
+ const test = (v) => typeof v === "string";
50870
+ let checked;
50871
+ if (array.length < vocabSparseArrayMinimumLength ? array.every(test) : (checked = vocabValidatePropertyArray(array, test)).valid) {
50872
+ const input = values.attributionDomains;
50873
+ if (input.length < vocabSparseArrayMinimumLength && !checked?.sparse) {
50874
+ copied = input.slice();
50875
+ valid = true;
50876
+ } else {
50877
+ const result = vocabCopyValidatedPropertyArray(input, test, checked ?? {
50878
+ valid: true,
50879
+ sparse: false
50880
+ });
50881
+ if (result.ok) {
50882
+ copied = result.array;
50883
+ valid = true;
50884
+ }
50885
+ }
50886
+ }
50887
+ }
50888
+ if (valid) clone.#_4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains = copied;
50889
+ else throw new TypeError("The attributionDomains must be an array of type string.");
50890
+ }
50727
50891
  clone.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = this.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo.length < vocabSparseArrayMinimumLength ? this.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo.slice() : vocabCopyPropertyArray(this.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo);
50728
50892
  clone.#_trust_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = vocabCopyTrustSet(this.#_trust_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo, clone.#_trust_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo);
50729
50893
  if ("successor" in values && values.successor != null) if (values.successor instanceof Application || values.successor instanceof Group || values.successor instanceof Organization || values.successor instanceof Person || values.successor instanceof Service || values.successor instanceof URL) {
@@ -51112,7 +51276,7 @@ var Group = class Group extends Object$1 {
51112
51276
  const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
51113
51277
  const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
51114
51278
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
51115
- const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2568+889927c4");
51279
+ const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2609+017171aa");
51116
51280
  const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
51117
51281
  return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
51118
51282
  const dereferencePortable = async (portableUrl, extra = {}) => {
@@ -51410,7 +51574,7 @@ var Group = class Group extends Object$1 {
51410
51574
  const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
51411
51575
  const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
51412
51576
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
51413
- const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2568+889927c4");
51577
+ const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2609+017171aa");
51414
51578
  const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
51415
51579
  return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
51416
51580
  const dereferencePortable = async (portableUrl, extra = {}) => {
@@ -51744,7 +51908,7 @@ var Group = class Group extends Object$1 {
51744
51908
  const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
51745
51909
  const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
51746
51910
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
51747
- const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2568+889927c4");
51911
+ const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2609+017171aa");
51748
51912
  const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
51749
51913
  return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
51750
51914
  const dereferencePortable = async (portableUrl, extra = {}) => {
@@ -51992,7 +52156,7 @@ var Group = class Group extends Object$1 {
51992
52156
  const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
51993
52157
  const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
51994
52158
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
51995
- const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2568+889927c4");
52159
+ const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2609+017171aa");
51996
52160
  const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
51997
52161
  return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
51998
52162
  const dereferencePortable = async (portableUrl, extra = {}) => {
@@ -52237,7 +52401,7 @@ var Group = class Group extends Object$1 {
52237
52401
  const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
52238
52402
  const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
52239
52403
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
52240
- const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2568+889927c4");
52404
+ const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2609+017171aa");
52241
52405
  const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
52242
52406
  return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
52243
52407
  const dereferencePortable = async (portableUrl, extra = {}) => {
@@ -52466,7 +52630,7 @@ var Group = class Group extends Object$1 {
52466
52630
  const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
52467
52631
  const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
52468
52632
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
52469
- const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2568+889927c4");
52633
+ const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2609+017171aa");
52470
52634
  const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
52471
52635
  return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
52472
52636
  const dereferencePortable = async (portableUrl, extra = {}) => {
@@ -52698,7 +52862,7 @@ var Group = class Group extends Object$1 {
52698
52862
  const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
52699
52863
  const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
52700
52864
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
52701
- const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2568+889927c4");
52865
+ const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2609+017171aa");
52702
52866
  const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
52703
52867
  return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
52704
52868
  const dereferencePortable = async (portableUrl, extra = {}) => {
@@ -52928,7 +53092,7 @@ var Group = class Group extends Object$1 {
52928
53092
  const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
52929
53093
  const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
52930
53094
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
52931
- const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2568+889927c4");
53095
+ const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2609+017171aa");
52932
53096
  const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
52933
53097
  return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
52934
53098
  const dereferencePortable = async (portableUrl, extra = {}) => {
@@ -53156,7 +53320,7 @@ var Group = class Group extends Object$1 {
53156
53320
  const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
53157
53321
  const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
53158
53322
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
53159
- const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2568+889927c4");
53323
+ const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2609+017171aa");
53160
53324
  const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
53161
53325
  return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
53162
53326
  const dereferencePortable = async (portableUrl, extra = {}) => {
@@ -53384,7 +53548,7 @@ var Group = class Group extends Object$1 {
53384
53548
  const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
53385
53549
  const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
53386
53550
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
53387
- const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2568+889927c4");
53551
+ const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2609+017171aa");
53388
53552
  const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
53389
53553
  return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
53390
53554
  const dereferencePortable = async (portableUrl, extra = {}) => {
@@ -53609,7 +53773,7 @@ var Group = class Group extends Object$1 {
53609
53773
  const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
53610
53774
  const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
53611
53775
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
53612
- const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2568+889927c4");
53776
+ const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2609+017171aa");
53613
53777
  const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
53614
53778
  return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
53615
53779
  const dereferencePortable = async (portableUrl, extra = {}) => {
@@ -53876,11 +54040,20 @@ var Group = class Group extends Object$1 {
53876
54040
  if (this.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable.length < 1) return null;
53877
54041
  return this.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable[0];
53878
54042
  }
54043
+ /** Domains this actor claims as its own, so that Mastodon can credit the
54044
+ * actor on link preview cards that point at one of them. Each value is a
54045
+ * bare host name, without a scheme, port, path, or leading `*.`. Fedify
54046
+ * treats the values as opaque strings and does not normalize or validate
54047
+ * them; applications are responsible for producing normalized host names.
54048
+ */
54049
+ get attributionDomains() {
54050
+ return this.#_4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains;
54051
+ }
53879
54052
  async #fetchSuccessor(url, options = {}) {
53880
54053
  const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
53881
54054
  const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
53882
54055
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
53883
- const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2568+889927c4");
54056
+ const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2609+017171aa");
53884
54057
  const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
53885
54058
  return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
53886
54059
  const dereferencePortable = async (portableUrl, extra = {}) => {
@@ -54155,7 +54328,7 @@ var Group = class Group extends Object$1 {
54155
54328
  const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
54156
54329
  const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
54157
54330
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
54158
- const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2568+889927c4");
54331
+ const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2609+017171aa");
54159
54332
  const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
54160
54333
  return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
54161
54334
  const dereferencePortable = async (portableUrl, extra = {}) => {
@@ -54509,7 +54682,7 @@ var Group = class Group extends Object$1 {
54509
54682
  const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
54510
54683
  const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
54511
54684
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
54512
- const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2568+889927c4");
54685
+ const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2609+017171aa");
54513
54686
  const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
54514
54687
  return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
54515
54688
  const dereferencePortable = async (portableUrl, extra = {}) => {
@@ -55036,6 +55209,12 @@ var Group = class Group extends Object$1 {
55036
55209
  }
55037
55210
  if (compactItems.length > 0) result["indexable"] = compactItems.length > 1 ? compactItems : compactItems[0];
55038
55211
  compactItems = [];
55212
+ for (const v of this.#_4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains) {
55213
+ const item = v;
55214
+ compactItems.push(item);
55215
+ }
55216
+ if (compactItems.length > 0) result["attributionDomains"] = compactItems.length > 1 ? compactItems : compactItems[0];
55217
+ compactItems = [];
55039
55218
  for (const v of this.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo) {
55040
55219
  const item = retainedSignedValueRef(v, signedValues.scope) ?? (v instanceof URL ? formatIri(v) : v instanceof Application ? await v.toJsonLd({
55041
55220
  ...options,
@@ -55154,6 +55333,10 @@ var Group = class Group extends Object$1 {
55154
55333
  "suspended": "toot:suspended",
55155
55334
  "memorial": "toot:memorial",
55156
55335
  "indexable": "toot:indexable",
55336
+ "attributionDomains": {
55337
+ "@id": "toot:attributionDomains",
55338
+ "@container": "@set"
55339
+ },
55157
55340
  "schema": "http://schema.org#",
55158
55341
  "PropertyValue": "schema:PropertyValue",
55159
55342
  "value": "schema:value",
@@ -55383,6 +55566,17 @@ var Group = class Group extends Object$1 {
55383
55566
  }
55384
55567
  if (array.length > 0) values["http://joinmastodon.org/ns#indexable"] = array;
55385
55568
  array = [];
55569
+ for (const v of this.#_4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains) {
55570
+ let element = { "@value": v };
55571
+ if (Array.isArray(element)) {
55572
+ if (element.length < 1) continue;
55573
+ if (element.length == 1) element = element[0];
55574
+ }
55575
+ if (typeof element === "undefined") continue;
55576
+ array.push(element);
55577
+ }
55578
+ if (array.length > 0) values["http://joinmastodon.org/ns#attributionDomains"] = array;
55579
+ array = [];
55386
55580
  for (const v of this.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo) {
55387
55581
  let element = retainedSignedValueRef(v, signedValues.scope) ?? (v instanceof URL ? { "@id": formatIri(v) } : v instanceof Application ? await v.toJsonLd(options) : v instanceof Group ? await v.toJsonLd(options) : v instanceof Organization ? await v.toJsonLd(options) : v instanceof Person ? await v.toJsonLd(options) : await v.toJsonLd(options));
55388
55582
  if (Array.isArray(element)) {
@@ -55491,6 +55685,10 @@ var Group = class Group extends Object$1 {
55491
55685
  "suspended": "toot:suspended",
55492
55686
  "memorial": "toot:memorial",
55493
55687
  "indexable": "toot:indexable",
55688
+ "attributionDomains": {
55689
+ "@id": "toot:attributionDomains",
55690
+ "@container": "@set"
55691
+ },
55494
55692
  "schema": "http://schema.org#",
55495
55693
  "PropertyValue": "schema:PropertyValue",
55496
55694
  "value": "schema:value",
@@ -55541,7 +55739,7 @@ var Group = class Group extends Object$1 {
55541
55739
  * @throws {TypeError} If the given `json` is invalid.
55542
55740
  */
55543
55741
  static async fromJsonLd(json, options = {}) {
55544
- return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2568+889927c4").startActiveSpan("activitypub.parse_object", async (span) => {
55742
+ return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2609+017171aa").startActiveSpan("activitypub.parse_object", async (span) => {
55545
55743
  try {
55546
55744
  const object = await this.__fromJsonLd__Group__(json, span, options);
55547
55745
  if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
@@ -55944,6 +56142,19 @@ var Group = class Group extends Object$1 {
55944
56142
  _2diCorzqPGQQqftp6e4SrCEwEnyk_indexable.push(decoded);
55945
56143
  }
55946
56144
  instance.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable = _2diCorzqPGQQqftp6e4SrCEwEnyk_indexable;
56145
+ const _4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains = [];
56146
+ let _4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains__array = values["http://joinmastodon.org/ns#attributionDomains"];
56147
+ for (const v of _4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains__array == null ? [] : _4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains__array.length === 1 && "@list" in _4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains__array[0] ? _4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains__array[0]["@list"] : _4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains__array) {
56148
+ if (v == null) continue;
56149
+ const decoded = typeof v === "object" && "@value" in v && typeof v["@value"] === "string" && !("@language" in v) ? v["@value"] : void 0;
56150
+ if (typeof decoded === "undefined") {
56151
+ shouldCacheJsonLd = false;
56152
+ continue;
56153
+ }
56154
+ if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
56155
+ _4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains.push(decoded);
56156
+ }
56157
+ instance.#_4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains = _4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains;
55947
56158
  const _2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = [];
55948
56159
  let _2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo__array = values["https://www.w3.org/ns/activitystreams#movedTo"];
55949
56160
  for (const v of _2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo__array == null ? [] : _2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo__array.length === 1 && "@list" in _2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo__array[0] ? _2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo__array[0]["@list"] : _2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo__array) {
@@ -56035,7 +56246,7 @@ var Group = class Group extends Object$1 {
56035
56246
  let _QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage__array = values["https://misskey-hub.net/ns#_misskey_followedMessage"];
56036
56247
  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) {
56037
56248
  if (v == null) continue;
56038
- const decoded = v["@value"];
56249
+ const decoded = typeof v === "object" && "@value" in v && typeof v["@value"] === "string" && !("@language" in v) ? v["@value"] : void 0;
56039
56250
  if (typeof decoded === "undefined") {
56040
56251
  shouldCacheJsonLd = false;
56041
56252
  continue;
@@ -56184,6 +56395,11 @@ var Group = class Group extends Object$1 {
56184
56395
  [Symbol.for("nodejs.util.inspect.custom")]: (_depth, options, inspect) => "URL " + inspect(inspectIri(v), options)
56185
56396
  } : v);
56186
56397
  if (_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable.length == 1) proxy.indexable = _2diCorzqPGQQqftp6e4SrCEwEnyk_indexable[0];
56398
+ const _4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains = this.#_4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains.map((v) => v instanceof URL ? {
56399
+ [Symbol.for("Deno.customInspect")]: (inspect, options) => "URL " + inspect(inspectIri(v), options),
56400
+ [Symbol.for("nodejs.util.inspect.custom")]: (_depth, options, inspect) => "URL " + inspect(inspectIri(v), options)
56401
+ } : v);
56402
+ if (_4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains.length > 1 || !("attributionDomain" in proxy) && _4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains.length > 0) proxy.attributionDomains = _4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains;
56187
56403
  const _2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = this.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo.map((v) => v instanceof URL ? {
56188
56404
  [Symbol.for("Deno.customInspect")]: (inspect, options) => "URL " + inspect(inspectIri(v), options),
56189
56405
  [Symbol.for("nodejs.util.inspect.custom")]: (_depth, options, inspect) => "URL " + inspect(inspectIri(v), options)
@@ -56818,7 +57034,7 @@ var Link = class Link {
56818
57034
  const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
56819
57035
  const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
56820
57036
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
56821
- const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2568+889927c4");
57037
+ const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2609+017171aa");
56822
57038
  const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
56823
57039
  return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
56824
57040
  const dereferencePortable = async (portableUrl, extra = {}) => {
@@ -57332,7 +57548,7 @@ var Link = class Link {
57332
57548
  * @throws {TypeError} If the given `json` is invalid.
57333
57549
  */
57334
57550
  static async fromJsonLd(json, options = {}) {
57335
- return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2568+889927c4").startActiveSpan("activitypub.parse_object", async (span) => {
57551
+ return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2609+017171aa").startActiveSpan("activitypub.parse_object", async (span) => {
57336
57552
  try {
57337
57553
  const object = await this.__fromJsonLd__Link__(json, span, options);
57338
57554
  if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
@@ -57404,7 +57620,7 @@ var Link = class Link {
57404
57620
  let _2a1c5GkfkQsnyyLybF8UXBQfFuHZ_rel__array = values["https://www.w3.org/ns/activitystreams#rel"];
57405
57621
  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) {
57406
57622
  if (v == null) continue;
57407
- const decoded = v["@value"];
57623
+ const decoded = typeof v === "object" && "@value" in v && typeof v["@value"] === "string" && !("@language" in v) ? v["@value"] : void 0;
57408
57624
  if (typeof decoded === "undefined") {
57409
57625
  shouldCacheJsonLd = false;
57410
57626
  continue;
@@ -57417,7 +57633,7 @@ var Link = class Link {
57417
57633
  let _3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType__array = values["https://www.w3.org/ns/activitystreams#mediaType"];
57418
57634
  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) {
57419
57635
  if (v == null) continue;
57420
- const decoded = v["@value"];
57636
+ const decoded = typeof v === "object" && "@value" in v && typeof v["@value"] === "string" && !("@language" in v) ? v["@value"] : void 0;
57421
57637
  if (typeof decoded === "undefined") {
57422
57638
  shouldCacheJsonLd = false;
57423
57639
  continue;
@@ -57430,7 +57646,7 @@ var Link = class Link {
57430
57646
  let _2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase__array = values["https://www.w3.org/ns/credentials/v2#digestMultibase"];
57431
57647
  for (const v of _2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase__array == null ? [] : _2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase__array.length === 1 && "@list" in _2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase__array[0] ? _2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase__array[0]["@list"] : _2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase__array) {
57432
57648
  if (v == null) continue;
57433
- const decoded = v["@value"];
57649
+ const decoded = typeof v === "object" && "@value" in v && typeof v["@value"] === "string" && !("@language" in v) ? v["@value"] : void 0;
57434
57650
  if (typeof decoded === "undefined") {
57435
57651
  shouldCacheJsonLd = false;
57436
57652
  continue;
@@ -57862,7 +58078,7 @@ var Hashtag = class Hashtag extends Link {
57862
58078
  * @throws {TypeError} If the given `json` is invalid.
57863
58079
  */
57864
58080
  static async fromJsonLd(json, options = {}) {
57865
- return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2568+889927c4").startActiveSpan("activitypub.parse_object", async (span) => {
58081
+ return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2609+017171aa").startActiveSpan("activitypub.parse_object", async (span) => {
57866
58082
  try {
57867
58083
  const object = await this.__fromJsonLd__Hashtag__(json, span, options);
57868
58084
  if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
@@ -58133,7 +58349,7 @@ var Image = class Image extends Document {
58133
58349
  * @throws {TypeError} If the given `json` is invalid.
58134
58350
  */
58135
58351
  static async fromJsonLd(json, options = {}) {
58136
- return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2568+889927c4").startActiveSpan("activitypub.parse_object", async (span) => {
58352
+ return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2609+017171aa").startActiveSpan("activitypub.parse_object", async (span) => {
58137
58353
  try {
58138
58354
  const object = await this.__fromJsonLd__Image__(json, span, options);
58139
58355
  if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
@@ -58390,7 +58606,7 @@ var Offer = class Offer extends Activity {
58390
58606
  * @throws {TypeError} If the given `json` is invalid.
58391
58607
  */
58392
58608
  static async fromJsonLd(json, options = {}) {
58393
- return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2568+889927c4").startActiveSpan("activitypub.parse_object", async (span) => {
58609
+ return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2609+017171aa").startActiveSpan("activitypub.parse_object", async (span) => {
58394
58610
  try {
58395
58611
  const object = await this.__fromJsonLd__Offer__(json, span, options);
58396
58612
  if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
@@ -58647,7 +58863,7 @@ var Invite = class Invite extends Offer {
58647
58863
  * @throws {TypeError} If the given `json` is invalid.
58648
58864
  */
58649
58865
  static async fromJsonLd(json, options = {}) {
58650
- return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2568+889927c4").startActiveSpan("activitypub.parse_object", async (span) => {
58866
+ return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2609+017171aa").startActiveSpan("activitypub.parse_object", async (span) => {
58651
58867
  try {
58652
58868
  const object = await this.__fromJsonLd__Invite__(json, span, options);
58653
58869
  if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
@@ -58903,7 +59119,7 @@ var Join = class Join extends Activity {
58903
59119
  * @throws {TypeError} If the given `json` is invalid.
58904
59120
  */
58905
59121
  static async fromJsonLd(json, options = {}) {
58906
- return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2568+889927c4").startActiveSpan("activitypub.parse_object", async (span) => {
59122
+ return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2609+017171aa").startActiveSpan("activitypub.parse_object", async (span) => {
58907
59123
  try {
58908
59124
  const object = await this.__fromJsonLd__Join__(json, span, options);
58909
59125
  if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
@@ -59159,7 +59375,7 @@ var Leave = class Leave extends Activity {
59159
59375
  * @throws {TypeError} If the given `json` is invalid.
59160
59376
  */
59161
59377
  static async fromJsonLd(json, options = {}) {
59162
- return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2568+889927c4").startActiveSpan("activitypub.parse_object", async (span) => {
59378
+ return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2609+017171aa").startActiveSpan("activitypub.parse_object", async (span) => {
59163
59379
  try {
59164
59380
  const object = await this.__fromJsonLd__Leave__(json, span, options);
59165
59381
  if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
@@ -59419,7 +59635,7 @@ var Like = class Like extends Activity {
59419
59635
  * @throws {TypeError} If the given `json` is invalid.
59420
59636
  */
59421
59637
  static async fromJsonLd(json, options = {}) {
59422
- return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2568+889927c4").startActiveSpan("activitypub.parse_object", async (span) => {
59638
+ return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2609+017171aa").startActiveSpan("activitypub.parse_object", async (span) => {
59423
59639
  try {
59424
59640
  const object = await this.__fromJsonLd__Like__(json, span, options);
59425
59641
  if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
@@ -59674,7 +59890,7 @@ var Listen = class Listen extends Activity {
59674
59890
  * @throws {TypeError} If the given `json` is invalid.
59675
59891
  */
59676
59892
  static async fromJsonLd(json, options = {}) {
59677
- return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2568+889927c4").startActiveSpan("activitypub.parse_object", async (span) => {
59893
+ return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2609+017171aa").startActiveSpan("activitypub.parse_object", async (span) => {
59678
59894
  try {
59679
59895
  const object = await this.__fromJsonLd__Listen__(json, span, options);
59680
59896
  if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
@@ -59932,7 +60148,7 @@ var Mention = class Mention extends Link {
59932
60148
  * @throws {TypeError} If the given `json` is invalid.
59933
60149
  */
59934
60150
  static async fromJsonLd(json, options = {}) {
59935
- return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2568+889927c4").startActiveSpan("activitypub.parse_object", async (span) => {
60151
+ return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2609+017171aa").startActiveSpan("activitypub.parse_object", async (span) => {
59936
60152
  try {
59937
60153
  const object = await this.__fromJsonLd__Mention__(json, span, options);
59938
60154
  if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
@@ -60189,7 +60405,7 @@ var Move = class Move extends Activity {
60189
60405
  * @throws {TypeError} If the given `json` is invalid.
60190
60406
  */
60191
60407
  static async fromJsonLd(json, options = {}) {
60192
- return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2568+889927c4").startActiveSpan("activitypub.parse_object", async (span) => {
60408
+ return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2609+017171aa").startActiveSpan("activitypub.parse_object", async (span) => {
60193
60409
  try {
60194
60410
  const object = await this.__fromJsonLd__Move__(json, span, options);
60195
60411
  if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
@@ -60457,7 +60673,7 @@ var Note = class Note extends Object$1 {
60457
60673
  const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
60458
60674
  const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
60459
60675
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
60460
- const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2568+889927c4");
60676
+ const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2609+017171aa");
60461
60677
  const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
60462
60678
  return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
60463
60679
  const dereferencePortable = async (portableUrl, extra = {}) => {
@@ -60700,7 +60916,7 @@ var Note = class Note extends Object$1 {
60700
60916
  const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
60701
60917
  const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
60702
60918
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
60703
- const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2568+889927c4");
60919
+ const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2609+017171aa");
60704
60920
  const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
60705
60921
  return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
60706
60922
  const dereferencePortable = async (portableUrl, extra = {}) => {
@@ -61127,7 +61343,7 @@ var Note = class Note extends Object$1 {
61127
61343
  * @throws {TypeError} If the given `json` is invalid.
61128
61344
  */
61129
61345
  static async fromJsonLd(json, options = {}) {
61130
- return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2568+889927c4").startActiveSpan("activitypub.parse_object", async (span) => {
61346
+ return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2609+017171aa").startActiveSpan("activitypub.parse_object", async (span) => {
61131
61347
  try {
61132
61348
  const object = await this.__fromJsonLd__Note__(json, span, options);
61133
61349
  if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
@@ -61480,7 +61696,7 @@ var OrderedCollectionPage = class OrderedCollectionPage extends CollectionPage {
61480
61696
  const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
61481
61697
  const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
61482
61698
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
61483
- const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2568+889927c4");
61699
+ const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2609+017171aa");
61484
61700
  const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
61485
61701
  return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
61486
61702
  const dereferencePortable = async (portableUrl, extra = {}) => {
@@ -61914,7 +62130,7 @@ var OrderedCollectionPage = class OrderedCollectionPage extends CollectionPage {
61914
62130
  * @throws {TypeError} If the given `json` is invalid.
61915
62131
  */
61916
62132
  static async fromJsonLd(json, options = {}) {
61917
- return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2568+889927c4").startActiveSpan("activitypub.parse_object", async (span) => {
62133
+ return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2609+017171aa").startActiveSpan("activitypub.parse_object", async (span) => {
61918
62134
  try {
61919
62135
  const object = await this.__fromJsonLd__OrderedCollectionPage__(json, span, options);
61920
62136
  if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
@@ -62157,6 +62373,7 @@ var Organization = class Organization extends Object$1 {
62157
62373
  #_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended = [];
62158
62374
  #_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial = [];
62159
62375
  #_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable = [];
62376
+ #_4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains = [];
62160
62377
  #_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = [];
62161
62378
  #_trust_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = /* @__PURE__ */ new Set();
62162
62379
  #_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = [];
@@ -62374,6 +62591,33 @@ var Organization = class Organization extends Object$1 {
62374
62591
  else throw new TypeError("The memorial must be of type boolean.");
62375
62592
  if ("indexable" in values && values.indexable != null) if (typeof values.indexable === "boolean") this.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable = [values.indexable];
62376
62593
  else throw new TypeError("The indexable must be of type boolean.");
62594
+ if ("attributionDomains" in values && values.attributionDomains != null) {
62595
+ let copied;
62596
+ let valid = false;
62597
+ if (Array.isArray(values.attributionDomains)) {
62598
+ const array = values.attributionDomains;
62599
+ const test = (v) => typeof v === "string";
62600
+ let checked;
62601
+ if (array.length < vocabSparseArrayMinimumLength ? array.every(test) : (checked = vocabValidatePropertyArray(array, test)).valid) {
62602
+ const input = values.attributionDomains;
62603
+ if (input.length < vocabSparseArrayMinimumLength && !checked?.sparse) {
62604
+ copied = input.slice();
62605
+ valid = true;
62606
+ } else {
62607
+ const result = vocabCopyValidatedPropertyArray(input, test, checked ?? {
62608
+ valid: true,
62609
+ sparse: false
62610
+ });
62611
+ if (result.ok) {
62612
+ copied = result.array;
62613
+ valid = true;
62614
+ }
62615
+ }
62616
+ }
62617
+ }
62618
+ if (valid) this.#_4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains = copied;
62619
+ else throw new TypeError("The attributionDomains must be an array of type string.");
62620
+ }
62377
62621
  if ("successor" in values && values.successor != null) if (values.successor instanceof Application || values.successor instanceof Group || values.successor instanceof Organization || values.successor instanceof Person || values.successor instanceof Service || values.successor instanceof URL) {
62378
62622
  this.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = [values.successor];
62379
62623
  this.#_trust_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo.add(0);
@@ -62733,6 +62977,34 @@ var Organization = class Organization extends Object$1 {
62733
62977
  clone.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable = this.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable.length < vocabSparseArrayMinimumLength ? this.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable.slice() : vocabCopyPropertyArray(this.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable);
62734
62978
  if ("indexable" in values && values.indexable != null) if (typeof values.indexable === "boolean") clone.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable = [values.indexable];
62735
62979
  else throw new TypeError("The indexable must be of type boolean.");
62980
+ clone.#_4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains = this.#_4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains.length < vocabSparseArrayMinimumLength ? this.#_4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains.slice() : vocabCopyPropertyArray(this.#_4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains);
62981
+ if ("attributionDomains" in values && values.attributionDomains != null) {
62982
+ let copied;
62983
+ let valid = false;
62984
+ if (Array.isArray(values.attributionDomains)) {
62985
+ const array = values.attributionDomains;
62986
+ const test = (v) => typeof v === "string";
62987
+ let checked;
62988
+ if (array.length < vocabSparseArrayMinimumLength ? array.every(test) : (checked = vocabValidatePropertyArray(array, test)).valid) {
62989
+ const input = values.attributionDomains;
62990
+ if (input.length < vocabSparseArrayMinimumLength && !checked?.sparse) {
62991
+ copied = input.slice();
62992
+ valid = true;
62993
+ } else {
62994
+ const result = vocabCopyValidatedPropertyArray(input, test, checked ?? {
62995
+ valid: true,
62996
+ sparse: false
62997
+ });
62998
+ if (result.ok) {
62999
+ copied = result.array;
63000
+ valid = true;
63001
+ }
63002
+ }
63003
+ }
63004
+ }
63005
+ if (valid) clone.#_4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains = copied;
63006
+ else throw new TypeError("The attributionDomains must be an array of type string.");
63007
+ }
62736
63008
  clone.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = this.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo.length < vocabSparseArrayMinimumLength ? this.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo.slice() : vocabCopyPropertyArray(this.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo);
62737
63009
  clone.#_trust_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = vocabCopyTrustSet(this.#_trust_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo, clone.#_trust_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo);
62738
63010
  if ("successor" in values && values.successor != null) if (values.successor instanceof Application || values.successor instanceof Group || values.successor instanceof Organization || values.successor instanceof Person || values.successor instanceof Service || values.successor instanceof URL) {
@@ -63121,7 +63393,7 @@ var Organization = class Organization extends Object$1 {
63121
63393
  const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
63122
63394
  const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
63123
63395
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
63124
- const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2568+889927c4");
63396
+ const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2609+017171aa");
63125
63397
  const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
63126
63398
  return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
63127
63399
  const dereferencePortable = async (portableUrl, extra = {}) => {
@@ -63419,7 +63691,7 @@ var Organization = class Organization extends Object$1 {
63419
63691
  const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
63420
63692
  const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
63421
63693
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
63422
- const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2568+889927c4");
63694
+ const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2609+017171aa");
63423
63695
  const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
63424
63696
  return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
63425
63697
  const dereferencePortable = async (portableUrl, extra = {}) => {
@@ -63753,7 +64025,7 @@ var Organization = class Organization extends Object$1 {
63753
64025
  const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
63754
64026
  const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
63755
64027
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
63756
- const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2568+889927c4");
64028
+ const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2609+017171aa");
63757
64029
  const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
63758
64030
  return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
63759
64031
  const dereferencePortable = async (portableUrl, extra = {}) => {
@@ -64001,7 +64273,7 @@ var Organization = class Organization extends Object$1 {
64001
64273
  const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
64002
64274
  const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
64003
64275
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
64004
- const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2568+889927c4");
64276
+ const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2609+017171aa");
64005
64277
  const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
64006
64278
  return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
64007
64279
  const dereferencePortable = async (portableUrl, extra = {}) => {
@@ -64246,7 +64518,7 @@ var Organization = class Organization extends Object$1 {
64246
64518
  const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
64247
64519
  const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
64248
64520
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
64249
- const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2568+889927c4");
64521
+ const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2609+017171aa");
64250
64522
  const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
64251
64523
  return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
64252
64524
  const dereferencePortable = async (portableUrl, extra = {}) => {
@@ -64475,7 +64747,7 @@ var Organization = class Organization extends Object$1 {
64475
64747
  const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
64476
64748
  const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
64477
64749
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
64478
- const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2568+889927c4");
64750
+ const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2609+017171aa");
64479
64751
  const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
64480
64752
  return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
64481
64753
  const dereferencePortable = async (portableUrl, extra = {}) => {
@@ -64707,7 +64979,7 @@ var Organization = class Organization extends Object$1 {
64707
64979
  const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
64708
64980
  const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
64709
64981
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
64710
- const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2568+889927c4");
64982
+ const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2609+017171aa");
64711
64983
  const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
64712
64984
  return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
64713
64985
  const dereferencePortable = async (portableUrl, extra = {}) => {
@@ -64937,7 +65209,7 @@ var Organization = class Organization extends Object$1 {
64937
65209
  const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
64938
65210
  const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
64939
65211
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
64940
- const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2568+889927c4");
65212
+ const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2609+017171aa");
64941
65213
  const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
64942
65214
  return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
64943
65215
  const dereferencePortable = async (portableUrl, extra = {}) => {
@@ -65165,7 +65437,7 @@ var Organization = class Organization extends Object$1 {
65165
65437
  const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
65166
65438
  const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
65167
65439
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
65168
- const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2568+889927c4");
65440
+ const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2609+017171aa");
65169
65441
  const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
65170
65442
  return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
65171
65443
  const dereferencePortable = async (portableUrl, extra = {}) => {
@@ -65393,7 +65665,7 @@ var Organization = class Organization extends Object$1 {
65393
65665
  const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
65394
65666
  const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
65395
65667
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
65396
- const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2568+889927c4");
65668
+ const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2609+017171aa");
65397
65669
  const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
65398
65670
  return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
65399
65671
  const dereferencePortable = async (portableUrl, extra = {}) => {
@@ -65618,7 +65890,7 @@ var Organization = class Organization extends Object$1 {
65618
65890
  const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
65619
65891
  const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
65620
65892
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
65621
- const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2568+889927c4");
65893
+ const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2609+017171aa");
65622
65894
  const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
65623
65895
  return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
65624
65896
  const dereferencePortable = async (portableUrl, extra = {}) => {
@@ -65885,11 +66157,20 @@ var Organization = class Organization extends Object$1 {
65885
66157
  if (this.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable.length < 1) return null;
65886
66158
  return this.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable[0];
65887
66159
  }
66160
+ /** Domains this actor claims as its own, so that Mastodon can credit the
66161
+ * actor on link preview cards that point at one of them. Each value is a
66162
+ * bare host name, without a scheme, port, path, or leading `*.`. Fedify
66163
+ * treats the values as opaque strings and does not normalize or validate
66164
+ * them; applications are responsible for producing normalized host names.
66165
+ */
66166
+ get attributionDomains() {
66167
+ return this.#_4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains;
66168
+ }
65888
66169
  async #fetchSuccessor(url, options = {}) {
65889
66170
  const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
65890
66171
  const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
65891
66172
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
65892
- const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2568+889927c4");
66173
+ const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2609+017171aa");
65893
66174
  const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
65894
66175
  return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
65895
66176
  const dereferencePortable = async (portableUrl, extra = {}) => {
@@ -66164,7 +66445,7 @@ var Organization = class Organization extends Object$1 {
66164
66445
  const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
66165
66446
  const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
66166
66447
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
66167
- const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2568+889927c4");
66448
+ const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2609+017171aa");
66168
66449
  const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
66169
66450
  return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
66170
66451
  const dereferencePortable = async (portableUrl, extra = {}) => {
@@ -66518,7 +66799,7 @@ var Organization = class Organization extends Object$1 {
66518
66799
  const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
66519
66800
  const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
66520
66801
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
66521
- const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2568+889927c4");
66802
+ const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2609+017171aa");
66522
66803
  const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
66523
66804
  return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
66524
66805
  const dereferencePortable = async (portableUrl, extra = {}) => {
@@ -67045,6 +67326,12 @@ var Organization = class Organization extends Object$1 {
67045
67326
  }
67046
67327
  if (compactItems.length > 0) result["indexable"] = compactItems.length > 1 ? compactItems : compactItems[0];
67047
67328
  compactItems = [];
67329
+ for (const v of this.#_4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains) {
67330
+ const item = v;
67331
+ compactItems.push(item);
67332
+ }
67333
+ if (compactItems.length > 0) result["attributionDomains"] = compactItems.length > 1 ? compactItems : compactItems[0];
67334
+ compactItems = [];
67048
67335
  for (const v of this.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo) {
67049
67336
  const item = retainedSignedValueRef(v, signedValues.scope) ?? (v instanceof URL ? formatIri(v) : v instanceof Application ? await v.toJsonLd({
67050
67337
  ...options,
@@ -67163,6 +67450,10 @@ var Organization = class Organization extends Object$1 {
67163
67450
  "suspended": "toot:suspended",
67164
67451
  "memorial": "toot:memorial",
67165
67452
  "indexable": "toot:indexable",
67453
+ "attributionDomains": {
67454
+ "@id": "toot:attributionDomains",
67455
+ "@container": "@set"
67456
+ },
67166
67457
  "schema": "http://schema.org#",
67167
67458
  "PropertyValue": "schema:PropertyValue",
67168
67459
  "value": "schema:value",
@@ -67392,6 +67683,17 @@ var Organization = class Organization extends Object$1 {
67392
67683
  }
67393
67684
  if (array.length > 0) values["http://joinmastodon.org/ns#indexable"] = array;
67394
67685
  array = [];
67686
+ for (const v of this.#_4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains) {
67687
+ let element = { "@value": v };
67688
+ if (Array.isArray(element)) {
67689
+ if (element.length < 1) continue;
67690
+ if (element.length == 1) element = element[0];
67691
+ }
67692
+ if (typeof element === "undefined") continue;
67693
+ array.push(element);
67694
+ }
67695
+ if (array.length > 0) values["http://joinmastodon.org/ns#attributionDomains"] = array;
67696
+ array = [];
67395
67697
  for (const v of this.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo) {
67396
67698
  let element = retainedSignedValueRef(v, signedValues.scope) ?? (v instanceof URL ? { "@id": formatIri(v) } : v instanceof Application ? await v.toJsonLd(options) : v instanceof Group ? await v.toJsonLd(options) : v instanceof Organization ? await v.toJsonLd(options) : v instanceof Person ? await v.toJsonLd(options) : await v.toJsonLd(options));
67397
67699
  if (Array.isArray(element)) {
@@ -67500,6 +67802,10 @@ var Organization = class Organization extends Object$1 {
67500
67802
  "suspended": "toot:suspended",
67501
67803
  "memorial": "toot:memorial",
67502
67804
  "indexable": "toot:indexable",
67805
+ "attributionDomains": {
67806
+ "@id": "toot:attributionDomains",
67807
+ "@container": "@set"
67808
+ },
67503
67809
  "schema": "http://schema.org#",
67504
67810
  "PropertyValue": "schema:PropertyValue",
67505
67811
  "value": "schema:value",
@@ -67550,7 +67856,7 @@ var Organization = class Organization extends Object$1 {
67550
67856
  * @throws {TypeError} If the given `json` is invalid.
67551
67857
  */
67552
67858
  static async fromJsonLd(json, options = {}) {
67553
- return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2568+889927c4").startActiveSpan("activitypub.parse_object", async (span) => {
67859
+ return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2609+017171aa").startActiveSpan("activitypub.parse_object", async (span) => {
67554
67860
  try {
67555
67861
  const object = await this.__fromJsonLd__Organization__(json, span, options);
67556
67862
  if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
@@ -67953,6 +68259,19 @@ var Organization = class Organization extends Object$1 {
67953
68259
  _2diCorzqPGQQqftp6e4SrCEwEnyk_indexable.push(decoded);
67954
68260
  }
67955
68261
  instance.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable = _2diCorzqPGQQqftp6e4SrCEwEnyk_indexable;
68262
+ const _4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains = [];
68263
+ let _4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains__array = values["http://joinmastodon.org/ns#attributionDomains"];
68264
+ for (const v of _4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains__array == null ? [] : _4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains__array.length === 1 && "@list" in _4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains__array[0] ? _4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains__array[0]["@list"] : _4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains__array) {
68265
+ if (v == null) continue;
68266
+ const decoded = typeof v === "object" && "@value" in v && typeof v["@value"] === "string" && !("@language" in v) ? v["@value"] : void 0;
68267
+ if (typeof decoded === "undefined") {
68268
+ shouldCacheJsonLd = false;
68269
+ continue;
68270
+ }
68271
+ if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
68272
+ _4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains.push(decoded);
68273
+ }
68274
+ instance.#_4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains = _4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains;
67956
68275
  const _2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = [];
67957
68276
  let _2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo__array = values["https://www.w3.org/ns/activitystreams#movedTo"];
67958
68277
  for (const v of _2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo__array == null ? [] : _2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo__array.length === 1 && "@list" in _2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo__array[0] ? _2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo__array[0]["@list"] : _2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo__array) {
@@ -68044,7 +68363,7 @@ var Organization = class Organization extends Object$1 {
68044
68363
  let _QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage__array = values["https://misskey-hub.net/ns#_misskey_followedMessage"];
68045
68364
  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) {
68046
68365
  if (v == null) continue;
68047
- const decoded = v["@value"];
68366
+ const decoded = typeof v === "object" && "@value" in v && typeof v["@value"] === "string" && !("@language" in v) ? v["@value"] : void 0;
68048
68367
  if (typeof decoded === "undefined") {
68049
68368
  shouldCacheJsonLd = false;
68050
68369
  continue;
@@ -68193,6 +68512,11 @@ var Organization = class Organization extends Object$1 {
68193
68512
  [Symbol.for("nodejs.util.inspect.custom")]: (_depth, options, inspect) => "URL " + inspect(inspectIri(v), options)
68194
68513
  } : v);
68195
68514
  if (_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable.length == 1) proxy.indexable = _2diCorzqPGQQqftp6e4SrCEwEnyk_indexable[0];
68515
+ const _4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains = this.#_4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains.map((v) => v instanceof URL ? {
68516
+ [Symbol.for("Deno.customInspect")]: (inspect, options) => "URL " + inspect(inspectIri(v), options),
68517
+ [Symbol.for("nodejs.util.inspect.custom")]: (_depth, options, inspect) => "URL " + inspect(inspectIri(v), options)
68518
+ } : v);
68519
+ if (_4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains.length > 1 || !("attributionDomain" in proxy) && _4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains.length > 0) proxy.attributionDomains = _4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains;
68196
68520
  const _2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = this.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo.map((v) => v instanceof URL ? {
68197
68521
  [Symbol.for("Deno.customInspect")]: (inspect, options) => "URL " + inspect(inspectIri(v), options),
68198
68522
  [Symbol.for("nodejs.util.inspect.custom")]: (_depth, options, inspect) => "URL " + inspect(inspectIri(v), options)
@@ -68423,7 +68747,7 @@ var Page = class Page extends Document {
68423
68747
  * @throws {TypeError} If the given `json` is invalid.
68424
68748
  */
68425
68749
  static async fromJsonLd(json, options = {}) {
68426
- return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2568+889927c4").startActiveSpan("activitypub.parse_object", async (span) => {
68750
+ return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2609+017171aa").startActiveSpan("activitypub.parse_object", async (span) => {
68427
68751
  try {
68428
68752
  const object = await this.__fromJsonLd__Page__(json, span, options);
68429
68753
  if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
@@ -68544,6 +68868,7 @@ var Person = class Person extends Object$1 {
68544
68868
  #_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended = [];
68545
68869
  #_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial = [];
68546
68870
  #_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable = [];
68871
+ #_4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains = [];
68547
68872
  #_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = [];
68548
68873
  #_trust_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = /* @__PURE__ */ new Set();
68549
68874
  #_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = [];
@@ -68761,6 +69086,33 @@ var Person = class Person extends Object$1 {
68761
69086
  else throw new TypeError("The memorial must be of type boolean.");
68762
69087
  if ("indexable" in values && values.indexable != null) if (typeof values.indexable === "boolean") this.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable = [values.indexable];
68763
69088
  else throw new TypeError("The indexable must be of type boolean.");
69089
+ if ("attributionDomains" in values && values.attributionDomains != null) {
69090
+ let copied;
69091
+ let valid = false;
69092
+ if (Array.isArray(values.attributionDomains)) {
69093
+ const array = values.attributionDomains;
69094
+ const test = (v) => typeof v === "string";
69095
+ let checked;
69096
+ if (array.length < vocabSparseArrayMinimumLength ? array.every(test) : (checked = vocabValidatePropertyArray(array, test)).valid) {
69097
+ const input = values.attributionDomains;
69098
+ if (input.length < vocabSparseArrayMinimumLength && !checked?.sparse) {
69099
+ copied = input.slice();
69100
+ valid = true;
69101
+ } else {
69102
+ const result = vocabCopyValidatedPropertyArray(input, test, checked ?? {
69103
+ valid: true,
69104
+ sparse: false
69105
+ });
69106
+ if (result.ok) {
69107
+ copied = result.array;
69108
+ valid = true;
69109
+ }
69110
+ }
69111
+ }
69112
+ }
69113
+ if (valid) this.#_4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains = copied;
69114
+ else throw new TypeError("The attributionDomains must be an array of type string.");
69115
+ }
68764
69116
  if ("successor" in values && values.successor != null) if (values.successor instanceof Application || values.successor instanceof Group || values.successor instanceof Organization || values.successor instanceof Person || values.successor instanceof Service || values.successor instanceof URL) {
68765
69117
  this.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = [values.successor];
68766
69118
  this.#_trust_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo.add(0);
@@ -69120,6 +69472,34 @@ var Person = class Person extends Object$1 {
69120
69472
  clone.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable = this.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable.length < vocabSparseArrayMinimumLength ? this.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable.slice() : vocabCopyPropertyArray(this.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable);
69121
69473
  if ("indexable" in values && values.indexable != null) if (typeof values.indexable === "boolean") clone.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable = [values.indexable];
69122
69474
  else throw new TypeError("The indexable must be of type boolean.");
69475
+ clone.#_4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains = this.#_4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains.length < vocabSparseArrayMinimumLength ? this.#_4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains.slice() : vocabCopyPropertyArray(this.#_4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains);
69476
+ if ("attributionDomains" in values && values.attributionDomains != null) {
69477
+ let copied;
69478
+ let valid = false;
69479
+ if (Array.isArray(values.attributionDomains)) {
69480
+ const array = values.attributionDomains;
69481
+ const test = (v) => typeof v === "string";
69482
+ let checked;
69483
+ if (array.length < vocabSparseArrayMinimumLength ? array.every(test) : (checked = vocabValidatePropertyArray(array, test)).valid) {
69484
+ const input = values.attributionDomains;
69485
+ if (input.length < vocabSparseArrayMinimumLength && !checked?.sparse) {
69486
+ copied = input.slice();
69487
+ valid = true;
69488
+ } else {
69489
+ const result = vocabCopyValidatedPropertyArray(input, test, checked ?? {
69490
+ valid: true,
69491
+ sparse: false
69492
+ });
69493
+ if (result.ok) {
69494
+ copied = result.array;
69495
+ valid = true;
69496
+ }
69497
+ }
69498
+ }
69499
+ }
69500
+ if (valid) clone.#_4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains = copied;
69501
+ else throw new TypeError("The attributionDomains must be an array of type string.");
69502
+ }
69123
69503
  clone.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = this.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo.length < vocabSparseArrayMinimumLength ? this.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo.slice() : vocabCopyPropertyArray(this.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo);
69124
69504
  clone.#_trust_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = vocabCopyTrustSet(this.#_trust_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo, clone.#_trust_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo);
69125
69505
  if ("successor" in values && values.successor != null) if (values.successor instanceof Application || values.successor instanceof Group || values.successor instanceof Organization || values.successor instanceof Person || values.successor instanceof Service || values.successor instanceof URL) {
@@ -69508,7 +69888,7 @@ var Person = class Person extends Object$1 {
69508
69888
  const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
69509
69889
  const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
69510
69890
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
69511
- const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2568+889927c4");
69891
+ const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2609+017171aa");
69512
69892
  const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
69513
69893
  return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
69514
69894
  const dereferencePortable = async (portableUrl, extra = {}) => {
@@ -69806,7 +70186,7 @@ var Person = class Person extends Object$1 {
69806
70186
  const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
69807
70187
  const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
69808
70188
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
69809
- const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2568+889927c4");
70189
+ const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2609+017171aa");
69810
70190
  const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
69811
70191
  return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
69812
70192
  const dereferencePortable = async (portableUrl, extra = {}) => {
@@ -70140,7 +70520,7 @@ var Person = class Person extends Object$1 {
70140
70520
  const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
70141
70521
  const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
70142
70522
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
70143
- const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2568+889927c4");
70523
+ const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2609+017171aa");
70144
70524
  const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
70145
70525
  return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
70146
70526
  const dereferencePortable = async (portableUrl, extra = {}) => {
@@ -70388,7 +70768,7 @@ var Person = class Person extends Object$1 {
70388
70768
  const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
70389
70769
  const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
70390
70770
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
70391
- const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2568+889927c4");
70771
+ const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2609+017171aa");
70392
70772
  const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
70393
70773
  return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
70394
70774
  const dereferencePortable = async (portableUrl, extra = {}) => {
@@ -70633,7 +71013,7 @@ var Person = class Person extends Object$1 {
70633
71013
  const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
70634
71014
  const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
70635
71015
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
70636
- const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2568+889927c4");
71016
+ const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2609+017171aa");
70637
71017
  const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
70638
71018
  return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
70639
71019
  const dereferencePortable = async (portableUrl, extra = {}) => {
@@ -70862,7 +71242,7 @@ var Person = class Person extends Object$1 {
70862
71242
  const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
70863
71243
  const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
70864
71244
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
70865
- const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2568+889927c4");
71245
+ const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2609+017171aa");
70866
71246
  const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
70867
71247
  return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
70868
71248
  const dereferencePortable = async (portableUrl, extra = {}) => {
@@ -71094,7 +71474,7 @@ var Person = class Person extends Object$1 {
71094
71474
  const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
71095
71475
  const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
71096
71476
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
71097
- const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2568+889927c4");
71477
+ const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2609+017171aa");
71098
71478
  const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
71099
71479
  return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
71100
71480
  const dereferencePortable = async (portableUrl, extra = {}) => {
@@ -71324,7 +71704,7 @@ var Person = class Person extends Object$1 {
71324
71704
  const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
71325
71705
  const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
71326
71706
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
71327
- const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2568+889927c4");
71707
+ const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2609+017171aa");
71328
71708
  const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
71329
71709
  return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
71330
71710
  const dereferencePortable = async (portableUrl, extra = {}) => {
@@ -71552,7 +71932,7 @@ var Person = class Person extends Object$1 {
71552
71932
  const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
71553
71933
  const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
71554
71934
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
71555
- const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2568+889927c4");
71935
+ const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2609+017171aa");
71556
71936
  const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
71557
71937
  return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
71558
71938
  const dereferencePortable = async (portableUrl, extra = {}) => {
@@ -71780,7 +72160,7 @@ var Person = class Person extends Object$1 {
71780
72160
  const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
71781
72161
  const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
71782
72162
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
71783
- const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2568+889927c4");
72163
+ const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2609+017171aa");
71784
72164
  const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
71785
72165
  return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
71786
72166
  const dereferencePortable = async (portableUrl, extra = {}) => {
@@ -72005,7 +72385,7 @@ var Person = class Person extends Object$1 {
72005
72385
  const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
72006
72386
  const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
72007
72387
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
72008
- const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2568+889927c4");
72388
+ const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2609+017171aa");
72009
72389
  const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
72010
72390
  return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
72011
72391
  const dereferencePortable = async (portableUrl, extra = {}) => {
@@ -72272,11 +72652,20 @@ var Person = class Person extends Object$1 {
72272
72652
  if (this.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable.length < 1) return null;
72273
72653
  return this.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable[0];
72274
72654
  }
72655
+ /** Domains this actor claims as its own, so that Mastodon can credit the
72656
+ * actor on link preview cards that point at one of them. Each value is a
72657
+ * bare host name, without a scheme, port, path, or leading `*.`. Fedify
72658
+ * treats the values as opaque strings and does not normalize or validate
72659
+ * them; applications are responsible for producing normalized host names.
72660
+ */
72661
+ get attributionDomains() {
72662
+ return this.#_4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains;
72663
+ }
72275
72664
  async #fetchSuccessor(url, options = {}) {
72276
72665
  const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
72277
72666
  const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
72278
72667
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
72279
- const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2568+889927c4");
72668
+ const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2609+017171aa");
72280
72669
  const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
72281
72670
  return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
72282
72671
  const dereferencePortable = async (portableUrl, extra = {}) => {
@@ -72551,7 +72940,7 @@ var Person = class Person extends Object$1 {
72551
72940
  const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
72552
72941
  const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
72553
72942
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
72554
- const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2568+889927c4");
72943
+ const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2609+017171aa");
72555
72944
  const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
72556
72945
  return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
72557
72946
  const dereferencePortable = async (portableUrl, extra = {}) => {
@@ -72905,7 +73294,7 @@ var Person = class Person extends Object$1 {
72905
73294
  const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
72906
73295
  const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
72907
73296
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
72908
- const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2568+889927c4");
73297
+ const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2609+017171aa");
72909
73298
  const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
72910
73299
  return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
72911
73300
  const dereferencePortable = async (portableUrl, extra = {}) => {
@@ -73432,6 +73821,12 @@ var Person = class Person extends Object$1 {
73432
73821
  }
73433
73822
  if (compactItems.length > 0) result["indexable"] = compactItems.length > 1 ? compactItems : compactItems[0];
73434
73823
  compactItems = [];
73824
+ for (const v of this.#_4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains) {
73825
+ const item = v;
73826
+ compactItems.push(item);
73827
+ }
73828
+ if (compactItems.length > 0) result["attributionDomains"] = compactItems.length > 1 ? compactItems : compactItems[0];
73829
+ compactItems = [];
73435
73830
  for (const v of this.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo) {
73436
73831
  const item = retainedSignedValueRef(v, signedValues.scope) ?? (v instanceof URL ? formatIri(v) : v instanceof Application ? await v.toJsonLd({
73437
73832
  ...options,
@@ -73550,6 +73945,10 @@ var Person = class Person extends Object$1 {
73550
73945
  "suspended": "toot:suspended",
73551
73946
  "memorial": "toot:memorial",
73552
73947
  "indexable": "toot:indexable",
73948
+ "attributionDomains": {
73949
+ "@id": "toot:attributionDomains",
73950
+ "@container": "@set"
73951
+ },
73553
73952
  "schema": "http://schema.org#",
73554
73953
  "PropertyValue": "schema:PropertyValue",
73555
73954
  "value": "schema:value",
@@ -73779,6 +74178,17 @@ var Person = class Person extends Object$1 {
73779
74178
  }
73780
74179
  if (array.length > 0) values["http://joinmastodon.org/ns#indexable"] = array;
73781
74180
  array = [];
74181
+ for (const v of this.#_4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains) {
74182
+ let element = { "@value": v };
74183
+ if (Array.isArray(element)) {
74184
+ if (element.length < 1) continue;
74185
+ if (element.length == 1) element = element[0];
74186
+ }
74187
+ if (typeof element === "undefined") continue;
74188
+ array.push(element);
74189
+ }
74190
+ if (array.length > 0) values["http://joinmastodon.org/ns#attributionDomains"] = array;
74191
+ array = [];
73782
74192
  for (const v of this.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo) {
73783
74193
  let element = retainedSignedValueRef(v, signedValues.scope) ?? (v instanceof URL ? { "@id": formatIri(v) } : v instanceof Application ? await v.toJsonLd(options) : v instanceof Group ? await v.toJsonLd(options) : v instanceof Organization ? await v.toJsonLd(options) : v instanceof Person ? await v.toJsonLd(options) : await v.toJsonLd(options));
73784
74194
  if (Array.isArray(element)) {
@@ -73887,6 +74297,10 @@ var Person = class Person extends Object$1 {
73887
74297
  "suspended": "toot:suspended",
73888
74298
  "memorial": "toot:memorial",
73889
74299
  "indexable": "toot:indexable",
74300
+ "attributionDomains": {
74301
+ "@id": "toot:attributionDomains",
74302
+ "@container": "@set"
74303
+ },
73890
74304
  "schema": "http://schema.org#",
73891
74305
  "PropertyValue": "schema:PropertyValue",
73892
74306
  "value": "schema:value",
@@ -73937,7 +74351,7 @@ var Person = class Person extends Object$1 {
73937
74351
  * @throws {TypeError} If the given `json` is invalid.
73938
74352
  */
73939
74353
  static async fromJsonLd(json, options = {}) {
73940
- return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2568+889927c4").startActiveSpan("activitypub.parse_object", async (span) => {
74354
+ return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2609+017171aa").startActiveSpan("activitypub.parse_object", async (span) => {
73941
74355
  try {
73942
74356
  const object = await this.__fromJsonLd__Person__(json, span, options);
73943
74357
  if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
@@ -74340,6 +74754,19 @@ var Person = class Person extends Object$1 {
74340
74754
  _2diCorzqPGQQqftp6e4SrCEwEnyk_indexable.push(decoded);
74341
74755
  }
74342
74756
  instance.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable = _2diCorzqPGQQqftp6e4SrCEwEnyk_indexable;
74757
+ const _4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains = [];
74758
+ let _4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains__array = values["http://joinmastodon.org/ns#attributionDomains"];
74759
+ for (const v of _4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains__array == null ? [] : _4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains__array.length === 1 && "@list" in _4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains__array[0] ? _4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains__array[0]["@list"] : _4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains__array) {
74760
+ if (v == null) continue;
74761
+ const decoded = typeof v === "object" && "@value" in v && typeof v["@value"] === "string" && !("@language" in v) ? v["@value"] : void 0;
74762
+ if (typeof decoded === "undefined") {
74763
+ shouldCacheJsonLd = false;
74764
+ continue;
74765
+ }
74766
+ if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
74767
+ _4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains.push(decoded);
74768
+ }
74769
+ instance.#_4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains = _4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains;
74343
74770
  const _2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = [];
74344
74771
  let _2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo__array = values["https://www.w3.org/ns/activitystreams#movedTo"];
74345
74772
  for (const v of _2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo__array == null ? [] : _2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo__array.length === 1 && "@list" in _2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo__array[0] ? _2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo__array[0]["@list"] : _2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo__array) {
@@ -74431,7 +74858,7 @@ var Person = class Person extends Object$1 {
74431
74858
  let _QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage__array = values["https://misskey-hub.net/ns#_misskey_followedMessage"];
74432
74859
  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) {
74433
74860
  if (v == null) continue;
74434
- const decoded = v["@value"];
74861
+ const decoded = typeof v === "object" && "@value" in v && typeof v["@value"] === "string" && !("@language" in v) ? v["@value"] : void 0;
74435
74862
  if (typeof decoded === "undefined") {
74436
74863
  shouldCacheJsonLd = false;
74437
74864
  continue;
@@ -74580,6 +75007,11 @@ var Person = class Person extends Object$1 {
74580
75007
  [Symbol.for("nodejs.util.inspect.custom")]: (_depth, options, inspect) => "URL " + inspect(inspectIri(v), options)
74581
75008
  } : v);
74582
75009
  if (_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable.length == 1) proxy.indexable = _2diCorzqPGQQqftp6e4SrCEwEnyk_indexable[0];
75010
+ const _4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains = this.#_4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains.map((v) => v instanceof URL ? {
75011
+ [Symbol.for("Deno.customInspect")]: (inspect, options) => "URL " + inspect(inspectIri(v), options),
75012
+ [Symbol.for("nodejs.util.inspect.custom")]: (_depth, options, inspect) => "URL " + inspect(inspectIri(v), options)
75013
+ } : v);
75014
+ if (_4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains.length > 1 || !("attributionDomain" in proxy) && _4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains.length > 0) proxy.attributionDomains = _4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains;
74583
75015
  const _2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = this.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo.map((v) => v instanceof URL ? {
74584
75016
  [Symbol.for("Deno.customInspect")]: (inspect, options) => "URL " + inspect(inspectIri(v), options),
74585
75017
  [Symbol.for("nodejs.util.inspect.custom")]: (_depth, options, inspect) => "URL " + inspect(inspectIri(v), options)
@@ -75038,7 +75470,7 @@ var Place = class Place extends Object$1 {
75038
75470
  * @throws {TypeError} If the given `json` is invalid.
75039
75471
  */
75040
75472
  static async fromJsonLd(json, options = {}) {
75041
- return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2568+889927c4").startActiveSpan("activitypub.parse_object", async (span) => {
75473
+ return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2609+017171aa").startActiveSpan("activitypub.parse_object", async (span) => {
75042
75474
  try {
75043
75475
  const object = await this.__fromJsonLd__Place__(json, span, options);
75044
75476
  if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
@@ -75373,7 +75805,7 @@ var Profile = class Profile extends Object$1 {
75373
75805
  const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
75374
75806
  const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
75375
75807
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
75376
- const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2568+889927c4");
75808
+ const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2609+017171aa");
75377
75809
  const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
75378
75810
  return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
75379
75811
  const dereferencePortable = async (portableUrl, extra = {}) => {
@@ -75705,7 +76137,7 @@ var Profile = class Profile extends Object$1 {
75705
76137
  * @throws {TypeError} If the given `json` is invalid.
75706
76138
  */
75707
76139
  static async fromJsonLd(json, options = {}) {
75708
- return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2568+889927c4").startActiveSpan("activitypub.parse_object", async (span) => {
76140
+ return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2609+017171aa").startActiveSpan("activitypub.parse_object", async (span) => {
75709
76141
  try {
75710
76142
  const object = await this.__fromJsonLd__Profile__(json, span, options);
75711
76143
  if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
@@ -76170,7 +76602,7 @@ var Question = class Question extends IntransitiveActivity {
76170
76602
  const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
76171
76603
  const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
76172
76604
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
76173
- const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2568+889927c4");
76605
+ const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2609+017171aa");
76174
76606
  const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
76175
76607
  return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
76176
76608
  const dereferencePortable = async (portableUrl, extra = {}) => {
@@ -76401,7 +76833,7 @@ var Question = class Question extends IntransitiveActivity {
76401
76833
  const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
76402
76834
  const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
76403
76835
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
76404
- const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2568+889927c4");
76836
+ const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2609+017171aa");
76405
76837
  const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
76406
76838
  return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
76407
76839
  const dereferencePortable = async (portableUrl, extra = {}) => {
@@ -76648,7 +77080,7 @@ var Question = class Question extends IntransitiveActivity {
76648
77080
  const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
76649
77081
  const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
76650
77082
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
76651
- const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2568+889927c4");
77083
+ const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2609+017171aa");
76652
77084
  const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
76653
77085
  return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
76654
77086
  const dereferencePortable = async (portableUrl, extra = {}) => {
@@ -76891,7 +77323,7 @@ var Question = class Question extends IntransitiveActivity {
76891
77323
  const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
76892
77324
  const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
76893
77325
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
76894
- const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2568+889927c4");
77326
+ const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2609+017171aa");
76895
77327
  const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
76896
77328
  return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
76897
77329
  const dereferencePortable = async (portableUrl, extra = {}) => {
@@ -77304,7 +77736,7 @@ var Question = class Question extends IntransitiveActivity {
77304
77736
  * @throws {TypeError} If the given `json` is invalid.
77305
77737
  */
77306
77738
  static async fromJsonLd(json, options = {}) {
77307
- return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2568+889927c4").startActiveSpan("activitypub.parse_object", async (span) => {
77739
+ return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2609+017171aa").startActiveSpan("activitypub.parse_object", async (span) => {
77308
77740
  try {
77309
77741
  const object = await this.__fromJsonLd__Question__(json, span, options);
77310
77742
  if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
@@ -77720,7 +78152,7 @@ var Read = class Read extends Activity {
77720
78152
  * @throws {TypeError} If the given `json` is invalid.
77721
78153
  */
77722
78154
  static async fromJsonLd(json, options = {}) {
77723
- return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2568+889927c4").startActiveSpan("activitypub.parse_object", async (span) => {
78155
+ return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2609+017171aa").startActiveSpan("activitypub.parse_object", async (span) => {
77724
78156
  try {
77725
78157
  const object = await this.__fromJsonLd__Read__(json, span, options);
77726
78158
  if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
@@ -77976,7 +78408,7 @@ var Reject = class Reject extends Activity {
77976
78408
  * @throws {TypeError} If the given `json` is invalid.
77977
78409
  */
77978
78410
  static async fromJsonLd(json, options = {}) {
77979
- return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2568+889927c4").startActiveSpan("activitypub.parse_object", async (span) => {
78411
+ return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2609+017171aa").startActiveSpan("activitypub.parse_object", async (span) => {
77980
78412
  try {
77981
78413
  const object = await this.__fromJsonLd__Reject__(json, span, options);
77982
78414
  if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
@@ -78379,7 +78811,7 @@ var Relationship = class Relationship extends Object$1 {
78379
78811
  const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
78380
78812
  const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
78381
78813
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
78382
- const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2568+889927c4");
78814
+ const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2609+017171aa");
78383
78815
  const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
78384
78816
  return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
78385
78817
  const dereferencePortable = async (portableUrl, extra = {}) => {
@@ -78607,7 +79039,7 @@ var Relationship = class Relationship extends Object$1 {
78607
79039
  const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
78608
79040
  const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
78609
79041
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
78610
- const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2568+889927c4");
79042
+ const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2609+017171aa");
78611
79043
  const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
78612
79044
  return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
78613
79045
  const dereferencePortable = async (portableUrl, extra = {}) => {
@@ -78905,7 +79337,7 @@ var Relationship = class Relationship extends Object$1 {
78905
79337
  const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
78906
79338
  const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
78907
79339
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
78908
- const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2568+889927c4");
79340
+ const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2609+017171aa");
78909
79341
  const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
78910
79342
  return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
78911
79343
  const dereferencePortable = async (portableUrl, extra = {}) => {
@@ -79355,7 +79787,7 @@ var Relationship = class Relationship extends Object$1 {
79355
79787
  * @throws {TypeError} If the given `json` is invalid.
79356
79788
  */
79357
79789
  static async fromJsonLd(json, options = {}) {
79358
- return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2568+889927c4").startActiveSpan("activitypub.parse_object", async (span) => {
79790
+ return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2609+017171aa").startActiveSpan("activitypub.parse_object", async (span) => {
79359
79791
  try {
79360
79792
  const object = await this.__fromJsonLd__Relationship__(json, span, options);
79361
79793
  if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
@@ -79692,7 +80124,7 @@ var Remove = class Remove extends Activity {
79692
80124
  * @throws {TypeError} If the given `json` is invalid.
79693
80125
  */
79694
80126
  static async fromJsonLd(json, options = {}) {
79695
- return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2568+889927c4").startActiveSpan("activitypub.parse_object", async (span) => {
80127
+ return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2609+017171aa").startActiveSpan("activitypub.parse_object", async (span) => {
79696
80128
  try {
79697
80129
  const object = await this.__fromJsonLd__Remove__(json, span, options);
79698
80130
  if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
@@ -79813,6 +80245,7 @@ var Service = class Service extends Object$1 {
79813
80245
  #_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended = [];
79814
80246
  #_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial = [];
79815
80247
  #_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable = [];
80248
+ #_4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains = [];
79816
80249
  #_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = [];
79817
80250
  #_trust_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = /* @__PURE__ */ new Set();
79818
80251
  #_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = [];
@@ -80030,6 +80463,33 @@ var Service = class Service extends Object$1 {
80030
80463
  else throw new TypeError("The memorial must be of type boolean.");
80031
80464
  if ("indexable" in values && values.indexable != null) if (typeof values.indexable === "boolean") this.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable = [values.indexable];
80032
80465
  else throw new TypeError("The indexable must be of type boolean.");
80466
+ if ("attributionDomains" in values && values.attributionDomains != null) {
80467
+ let copied;
80468
+ let valid = false;
80469
+ if (Array.isArray(values.attributionDomains)) {
80470
+ const array = values.attributionDomains;
80471
+ const test = (v) => typeof v === "string";
80472
+ let checked;
80473
+ if (array.length < vocabSparseArrayMinimumLength ? array.every(test) : (checked = vocabValidatePropertyArray(array, test)).valid) {
80474
+ const input = values.attributionDomains;
80475
+ if (input.length < vocabSparseArrayMinimumLength && !checked?.sparse) {
80476
+ copied = input.slice();
80477
+ valid = true;
80478
+ } else {
80479
+ const result = vocabCopyValidatedPropertyArray(input, test, checked ?? {
80480
+ valid: true,
80481
+ sparse: false
80482
+ });
80483
+ if (result.ok) {
80484
+ copied = result.array;
80485
+ valid = true;
80486
+ }
80487
+ }
80488
+ }
80489
+ }
80490
+ if (valid) this.#_4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains = copied;
80491
+ else throw new TypeError("The attributionDomains must be an array of type string.");
80492
+ }
80033
80493
  if ("successor" in values && values.successor != null) if (values.successor instanceof Application || values.successor instanceof Group || values.successor instanceof Organization || values.successor instanceof Person || values.successor instanceof Service || values.successor instanceof URL) {
80034
80494
  this.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = [values.successor];
80035
80495
  this.#_trust_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo.add(0);
@@ -80389,6 +80849,34 @@ var Service = class Service extends Object$1 {
80389
80849
  clone.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable = this.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable.length < vocabSparseArrayMinimumLength ? this.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable.slice() : vocabCopyPropertyArray(this.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable);
80390
80850
  if ("indexable" in values && values.indexable != null) if (typeof values.indexable === "boolean") clone.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable = [values.indexable];
80391
80851
  else throw new TypeError("The indexable must be of type boolean.");
80852
+ clone.#_4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains = this.#_4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains.length < vocabSparseArrayMinimumLength ? this.#_4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains.slice() : vocabCopyPropertyArray(this.#_4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains);
80853
+ if ("attributionDomains" in values && values.attributionDomains != null) {
80854
+ let copied;
80855
+ let valid = false;
80856
+ if (Array.isArray(values.attributionDomains)) {
80857
+ const array = values.attributionDomains;
80858
+ const test = (v) => typeof v === "string";
80859
+ let checked;
80860
+ if (array.length < vocabSparseArrayMinimumLength ? array.every(test) : (checked = vocabValidatePropertyArray(array, test)).valid) {
80861
+ const input = values.attributionDomains;
80862
+ if (input.length < vocabSparseArrayMinimumLength && !checked?.sparse) {
80863
+ copied = input.slice();
80864
+ valid = true;
80865
+ } else {
80866
+ const result = vocabCopyValidatedPropertyArray(input, test, checked ?? {
80867
+ valid: true,
80868
+ sparse: false
80869
+ });
80870
+ if (result.ok) {
80871
+ copied = result.array;
80872
+ valid = true;
80873
+ }
80874
+ }
80875
+ }
80876
+ }
80877
+ if (valid) clone.#_4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains = copied;
80878
+ else throw new TypeError("The attributionDomains must be an array of type string.");
80879
+ }
80392
80880
  clone.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = this.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo.length < vocabSparseArrayMinimumLength ? this.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo.slice() : vocabCopyPropertyArray(this.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo);
80393
80881
  clone.#_trust_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = vocabCopyTrustSet(this.#_trust_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo, clone.#_trust_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo);
80394
80882
  if ("successor" in values && values.successor != null) if (values.successor instanceof Application || values.successor instanceof Group || values.successor instanceof Organization || values.successor instanceof Person || values.successor instanceof Service || values.successor instanceof URL) {
@@ -80777,7 +81265,7 @@ var Service = class Service extends Object$1 {
80777
81265
  const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
80778
81266
  const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
80779
81267
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
80780
- const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2568+889927c4");
81268
+ const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2609+017171aa");
80781
81269
  const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
80782
81270
  return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
80783
81271
  const dereferencePortable = async (portableUrl, extra = {}) => {
@@ -81075,7 +81563,7 @@ var Service = class Service extends Object$1 {
81075
81563
  const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
81076
81564
  const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
81077
81565
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
81078
- const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2568+889927c4");
81566
+ const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2609+017171aa");
81079
81567
  const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
81080
81568
  return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
81081
81569
  const dereferencePortable = async (portableUrl, extra = {}) => {
@@ -81409,7 +81897,7 @@ var Service = class Service extends Object$1 {
81409
81897
  const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
81410
81898
  const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
81411
81899
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
81412
- const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2568+889927c4");
81900
+ const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2609+017171aa");
81413
81901
  const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
81414
81902
  return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
81415
81903
  const dereferencePortable = async (portableUrl, extra = {}) => {
@@ -81657,7 +82145,7 @@ var Service = class Service extends Object$1 {
81657
82145
  const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
81658
82146
  const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
81659
82147
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
81660
- const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2568+889927c4");
82148
+ const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2609+017171aa");
81661
82149
  const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
81662
82150
  return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
81663
82151
  const dereferencePortable = async (portableUrl, extra = {}) => {
@@ -81902,7 +82390,7 @@ var Service = class Service extends Object$1 {
81902
82390
  const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
81903
82391
  const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
81904
82392
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
81905
- const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2568+889927c4");
82393
+ const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2609+017171aa");
81906
82394
  const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
81907
82395
  return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
81908
82396
  const dereferencePortable = async (portableUrl, extra = {}) => {
@@ -82131,7 +82619,7 @@ var Service = class Service extends Object$1 {
82131
82619
  const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
82132
82620
  const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
82133
82621
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
82134
- const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2568+889927c4");
82622
+ const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2609+017171aa");
82135
82623
  const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
82136
82624
  return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
82137
82625
  const dereferencePortable = async (portableUrl, extra = {}) => {
@@ -82363,7 +82851,7 @@ var Service = class Service extends Object$1 {
82363
82851
  const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
82364
82852
  const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
82365
82853
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
82366
- const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2568+889927c4");
82854
+ const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2609+017171aa");
82367
82855
  const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
82368
82856
  return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
82369
82857
  const dereferencePortable = async (portableUrl, extra = {}) => {
@@ -82593,7 +83081,7 @@ var Service = class Service extends Object$1 {
82593
83081
  const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
82594
83082
  const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
82595
83083
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
82596
- const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2568+889927c4");
83084
+ const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2609+017171aa");
82597
83085
  const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
82598
83086
  return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
82599
83087
  const dereferencePortable = async (portableUrl, extra = {}) => {
@@ -82821,7 +83309,7 @@ var Service = class Service extends Object$1 {
82821
83309
  const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
82822
83310
  const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
82823
83311
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
82824
- const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2568+889927c4");
83312
+ const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2609+017171aa");
82825
83313
  const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
82826
83314
  return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
82827
83315
  const dereferencePortable = async (portableUrl, extra = {}) => {
@@ -83049,7 +83537,7 @@ var Service = class Service extends Object$1 {
83049
83537
  const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
83050
83538
  const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
83051
83539
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
83052
- const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2568+889927c4");
83540
+ const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2609+017171aa");
83053
83541
  const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
83054
83542
  return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
83055
83543
  const dereferencePortable = async (portableUrl, extra = {}) => {
@@ -83274,7 +83762,7 @@ var Service = class Service extends Object$1 {
83274
83762
  const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
83275
83763
  const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
83276
83764
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
83277
- const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2568+889927c4");
83765
+ const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2609+017171aa");
83278
83766
  const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
83279
83767
  return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
83280
83768
  const dereferencePortable = async (portableUrl, extra = {}) => {
@@ -83541,11 +84029,20 @@ var Service = class Service extends Object$1 {
83541
84029
  if (this.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable.length < 1) return null;
83542
84030
  return this.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable[0];
83543
84031
  }
84032
+ /** Domains this actor claims as its own, so that Mastodon can credit the
84033
+ * actor on link preview cards that point at one of them. Each value is a
84034
+ * bare host name, without a scheme, port, path, or leading `*.`. Fedify
84035
+ * treats the values as opaque strings and does not normalize or validate
84036
+ * them; applications are responsible for producing normalized host names.
84037
+ */
84038
+ get attributionDomains() {
84039
+ return this.#_4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains;
84040
+ }
83544
84041
  async #fetchSuccessor(url, options = {}) {
83545
84042
  const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
83546
84043
  const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
83547
84044
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
83548
- const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2568+889927c4");
84045
+ const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2609+017171aa");
83549
84046
  const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
83550
84047
  return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
83551
84048
  const dereferencePortable = async (portableUrl, extra = {}) => {
@@ -83820,7 +84317,7 @@ var Service = class Service extends Object$1 {
83820
84317
  const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
83821
84318
  const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
83822
84319
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
83823
- const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2568+889927c4");
84320
+ const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2609+017171aa");
83824
84321
  const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
83825
84322
  return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
83826
84323
  const dereferencePortable = async (portableUrl, extra = {}) => {
@@ -84174,7 +84671,7 @@ var Service = class Service extends Object$1 {
84174
84671
  const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
84175
84672
  const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
84176
84673
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
84177
- const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2568+889927c4");
84674
+ const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2609+017171aa");
84178
84675
  const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
84179
84676
  return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
84180
84677
  const dereferencePortable = async (portableUrl, extra = {}) => {
@@ -84701,6 +85198,12 @@ var Service = class Service extends Object$1 {
84701
85198
  }
84702
85199
  if (compactItems.length > 0) result["indexable"] = compactItems.length > 1 ? compactItems : compactItems[0];
84703
85200
  compactItems = [];
85201
+ for (const v of this.#_4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains) {
85202
+ const item = v;
85203
+ compactItems.push(item);
85204
+ }
85205
+ if (compactItems.length > 0) result["attributionDomains"] = compactItems.length > 1 ? compactItems : compactItems[0];
85206
+ compactItems = [];
84704
85207
  for (const v of this.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo) {
84705
85208
  const item = retainedSignedValueRef(v, signedValues.scope) ?? (v instanceof URL ? formatIri(v) : v instanceof Application ? await v.toJsonLd({
84706
85209
  ...options,
@@ -84819,6 +85322,10 @@ var Service = class Service extends Object$1 {
84819
85322
  "suspended": "toot:suspended",
84820
85323
  "memorial": "toot:memorial",
84821
85324
  "indexable": "toot:indexable",
85325
+ "attributionDomains": {
85326
+ "@id": "toot:attributionDomains",
85327
+ "@container": "@set"
85328
+ },
84822
85329
  "schema": "http://schema.org#",
84823
85330
  "PropertyValue": "schema:PropertyValue",
84824
85331
  "value": "schema:value",
@@ -85048,6 +85555,17 @@ var Service = class Service extends Object$1 {
85048
85555
  }
85049
85556
  if (array.length > 0) values["http://joinmastodon.org/ns#indexable"] = array;
85050
85557
  array = [];
85558
+ for (const v of this.#_4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains) {
85559
+ let element = { "@value": v };
85560
+ if (Array.isArray(element)) {
85561
+ if (element.length < 1) continue;
85562
+ if (element.length == 1) element = element[0];
85563
+ }
85564
+ if (typeof element === "undefined") continue;
85565
+ array.push(element);
85566
+ }
85567
+ if (array.length > 0) values["http://joinmastodon.org/ns#attributionDomains"] = array;
85568
+ array = [];
85051
85569
  for (const v of this.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo) {
85052
85570
  let element = retainedSignedValueRef(v, signedValues.scope) ?? (v instanceof URL ? { "@id": formatIri(v) } : v instanceof Application ? await v.toJsonLd(options) : v instanceof Group ? await v.toJsonLd(options) : v instanceof Organization ? await v.toJsonLd(options) : v instanceof Person ? await v.toJsonLd(options) : await v.toJsonLd(options));
85053
85571
  if (Array.isArray(element)) {
@@ -85156,6 +85674,10 @@ var Service = class Service extends Object$1 {
85156
85674
  "suspended": "toot:suspended",
85157
85675
  "memorial": "toot:memorial",
85158
85676
  "indexable": "toot:indexable",
85677
+ "attributionDomains": {
85678
+ "@id": "toot:attributionDomains",
85679
+ "@container": "@set"
85680
+ },
85159
85681
  "schema": "http://schema.org#",
85160
85682
  "PropertyValue": "schema:PropertyValue",
85161
85683
  "value": "schema:value",
@@ -85206,7 +85728,7 @@ var Service = class Service extends Object$1 {
85206
85728
  * @throws {TypeError} If the given `json` is invalid.
85207
85729
  */
85208
85730
  static async fromJsonLd(json, options = {}) {
85209
- return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2568+889927c4").startActiveSpan("activitypub.parse_object", async (span) => {
85731
+ return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2609+017171aa").startActiveSpan("activitypub.parse_object", async (span) => {
85210
85732
  try {
85211
85733
  const object = await this.__fromJsonLd__Service__(json, span, options);
85212
85734
  if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
@@ -85609,6 +86131,19 @@ var Service = class Service extends Object$1 {
85609
86131
  _2diCorzqPGQQqftp6e4SrCEwEnyk_indexable.push(decoded);
85610
86132
  }
85611
86133
  instance.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable = _2diCorzqPGQQqftp6e4SrCEwEnyk_indexable;
86134
+ const _4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains = [];
86135
+ let _4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains__array = values["http://joinmastodon.org/ns#attributionDomains"];
86136
+ for (const v of _4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains__array == null ? [] : _4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains__array.length === 1 && "@list" in _4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains__array[0] ? _4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains__array[0]["@list"] : _4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains__array) {
86137
+ if (v == null) continue;
86138
+ const decoded = typeof v === "object" && "@value" in v && typeof v["@value"] === "string" && !("@language" in v) ? v["@value"] : void 0;
86139
+ if (typeof decoded === "undefined") {
86140
+ shouldCacheJsonLd = false;
86141
+ continue;
86142
+ }
86143
+ if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
86144
+ _4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains.push(decoded);
86145
+ }
86146
+ instance.#_4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains = _4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains;
85612
86147
  const _2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = [];
85613
86148
  let _2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo__array = values["https://www.w3.org/ns/activitystreams#movedTo"];
85614
86149
  for (const v of _2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo__array == null ? [] : _2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo__array.length === 1 && "@list" in _2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo__array[0] ? _2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo__array[0]["@list"] : _2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo__array) {
@@ -85700,7 +86235,7 @@ var Service = class Service extends Object$1 {
85700
86235
  let _QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage__array = values["https://misskey-hub.net/ns#_misskey_followedMessage"];
85701
86236
  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) {
85702
86237
  if (v == null) continue;
85703
- const decoded = v["@value"];
86238
+ const decoded = typeof v === "object" && "@value" in v && typeof v["@value"] === "string" && !("@language" in v) ? v["@value"] : void 0;
85704
86239
  if (typeof decoded === "undefined") {
85705
86240
  shouldCacheJsonLd = false;
85706
86241
  continue;
@@ -85849,6 +86384,11 @@ var Service = class Service extends Object$1 {
85849
86384
  [Symbol.for("nodejs.util.inspect.custom")]: (_depth, options, inspect) => "URL " + inspect(inspectIri(v), options)
85850
86385
  } : v);
85851
86386
  if (_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable.length == 1) proxy.indexable = _2diCorzqPGQQqftp6e4SrCEwEnyk_indexable[0];
86387
+ const _4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains = this.#_4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains.map((v) => v instanceof URL ? {
86388
+ [Symbol.for("Deno.customInspect")]: (inspect, options) => "URL " + inspect(inspectIri(v), options),
86389
+ [Symbol.for("nodejs.util.inspect.custom")]: (_depth, options, inspect) => "URL " + inspect(inspectIri(v), options)
86390
+ } : v);
86391
+ if (_4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains.length > 1 || !("attributionDomain" in proxy) && _4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains.length > 0) proxy.attributionDomains = _4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains;
85852
86392
  const _2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = this.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo.map((v) => v instanceof URL ? {
85853
86393
  [Symbol.for("Deno.customInspect")]: (inspect, options) => "URL " + inspect(inspectIri(v), options),
85854
86394
  [Symbol.for("nodejs.util.inspect.custom")]: (_depth, options, inspect) => "URL " + inspect(inspectIri(v), options)
@@ -86263,7 +86803,7 @@ var Source = class {
86263
86803
  * @throws {TypeError} If the given `json` is invalid.
86264
86804
  */
86265
86805
  static async fromJsonLd(json, options = {}) {
86266
- return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2568+889927c4").startActiveSpan("activitypub.parse_object", async (span) => {
86806
+ return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2609+017171aa").startActiveSpan("activitypub.parse_object", async (span) => {
86267
86807
  try {
86268
86808
  const object = await this.__fromJsonLd__Source__(json, span, options);
86269
86809
  if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
@@ -86333,7 +86873,7 @@ var Source = class {
86333
86873
  let _3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType__array = values["https://www.w3.org/ns/activitystreams#mediaType"];
86334
86874
  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) {
86335
86875
  if (v == null) continue;
86336
- const decoded = v["@value"];
86876
+ const decoded = typeof v === "object" && "@value" in v && typeof v["@value"] === "string" && !("@language" in v) ? v["@value"] : void 0;
86337
86877
  if (typeof decoded === "undefined") {
86338
86878
  shouldCacheJsonLd = false;
86339
86879
  continue;
@@ -86555,7 +87095,7 @@ var TentativeAccept = class TentativeAccept extends Accept {
86555
87095
  * @throws {TypeError} If the given `json` is invalid.
86556
87096
  */
86557
87097
  static async fromJsonLd(json, options = {}) {
86558
- return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2568+889927c4").startActiveSpan("activitypub.parse_object", async (span) => {
87098
+ return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2609+017171aa").startActiveSpan("activitypub.parse_object", async (span) => {
86559
87099
  try {
86560
87100
  const object = await this.__fromJsonLd__TentativeAccept__(json, span, options);
86561
87101
  if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
@@ -86811,7 +87351,7 @@ var TentativeReject = class TentativeReject extends Reject {
86811
87351
  * @throws {TypeError} If the given `json` is invalid.
86812
87352
  */
86813
87353
  static async fromJsonLd(json, options = {}) {
86814
- return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2568+889927c4").startActiveSpan("activitypub.parse_object", async (span) => {
87354
+ return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2609+017171aa").startActiveSpan("activitypub.parse_object", async (span) => {
86815
87355
  try {
86816
87356
  const object = await this.__fromJsonLd__TentativeReject__(json, span, options);
86817
87357
  if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
@@ -87212,7 +87752,7 @@ var Tombstone = class Tombstone extends Object$1 {
87212
87752
  * @throws {TypeError} If the given `json` is invalid.
87213
87753
  */
87214
87754
  static async fromJsonLd(json, options = {}) {
87215
- return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2568+889927c4").startActiveSpan("activitypub.parse_object", async (span) => {
87755
+ return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2609+017171aa").startActiveSpan("activitypub.parse_object", async (span) => {
87216
87756
  try {
87217
87757
  const object = await this.__fromJsonLd__Tombstone__(json, span, options);
87218
87758
  if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
@@ -87513,7 +88053,7 @@ var Travel = class Travel extends IntransitiveActivity {
87513
88053
  * @throws {TypeError} If the given `json` is invalid.
87514
88054
  */
87515
88055
  static async fromJsonLd(json, options = {}) {
87516
- return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2568+889927c4").startActiveSpan("activitypub.parse_object", async (span) => {
88056
+ return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2609+017171aa").startActiveSpan("activitypub.parse_object", async (span) => {
87517
88057
  try {
87518
88058
  const object = await this.__fromJsonLd__Travel__(json, span, options);
87519
88059
  if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
@@ -87783,7 +88323,7 @@ var Undo = class Undo extends Activity {
87783
88323
  * @throws {TypeError} If the given `json` is invalid.
87784
88324
  */
87785
88325
  static async fromJsonLd(json, options = {}) {
87786
- return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2568+889927c4").startActiveSpan("activitypub.parse_object", async (span) => {
88326
+ return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2609+017171aa").startActiveSpan("activitypub.parse_object", async (span) => {
87787
88327
  try {
87788
88328
  const object = await this.__fromJsonLd__Undo__(json, span, options);
87789
88329
  if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
@@ -88030,6 +88570,10 @@ var Update = class Update extends Activity {
88030
88570
  "suspended": "toot:suspended",
88031
88571
  "memorial": "toot:memorial",
88032
88572
  "indexable": "toot:indexable",
88573
+ "attributionDomains": {
88574
+ "@id": "toot:attributionDomains",
88575
+ "@container": "@set"
88576
+ },
88033
88577
  "votersCount": {
88034
88578
  "@id": "toot:votersCount",
88035
88579
  "@type": "http://www.w3.org/2001/XMLSchema#nonNegativeInteger"
@@ -88101,7 +88645,7 @@ var Update = class Update extends Activity {
88101
88645
  * @throws {TypeError} If the given `json` is invalid.
88102
88646
  */
88103
88647
  static async fromJsonLd(json, options = {}) {
88104
- return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2568+889927c4").startActiveSpan("activitypub.parse_object", async (span) => {
88648
+ return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2609+017171aa").startActiveSpan("activitypub.parse_object", async (span) => {
88105
88649
  try {
88106
88650
  const object = await this.__fromJsonLd__Update__(json, span, options);
88107
88651
  if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
@@ -88372,7 +88916,7 @@ var Video = class Video extends Document {
88372
88916
  * @throws {TypeError} If the given `json` is invalid.
88373
88917
  */
88374
88918
  static async fromJsonLd(json, options = {}) {
88375
- return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2568+889927c4").startActiveSpan("activitypub.parse_object", async (span) => {
88919
+ return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2609+017171aa").startActiveSpan("activitypub.parse_object", async (span) => {
88376
88920
  try {
88377
88921
  const object = await this.__fromJsonLd__Video__(json, span, options);
88378
88922
  if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
@@ -88627,7 +89171,7 @@ var View = class View extends Activity {
88627
89171
  * @throws {TypeError} If the given `json` is invalid.
88628
89172
  */
88629
89173
  static async fromJsonLd(json, options = {}) {
88630
- return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2568+889927c4").startActiveSpan("activitypub.parse_object", async (span) => {
89174
+ return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2609+017171aa").startActiveSpan("activitypub.parse_object", async (span) => {
88631
89175
  try {
88632
89176
  const object = await this.__fromJsonLd__View__(json, span, options);
88633
89177
  if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);