From 1630f5509bc549a608eb878a8d49acd6be354525 Mon Sep 17 00:00:00 2001 From: Hong Minhee Date: Fri, 5 Jun 2026 20:37:59 +0900 Subject: [PATCH 01/25] Add vocabulary property preprocessors to vocab-tools Added `PropertyPreprocessor` types to `@fedify/vocab-runtime` and `preprocessors` schema support to `@fedify/vocab-tools`. Generated decoders now run property-level preprocessors before the normal range decoder for each expanded JSON-LD property value. A preprocessor receives an expanded JSON-LD value and may return a vocabulary object, `undefined` (fall through to normal decoder), or an `Error` (fail the decode). Module specifiers are resolved from the generated vocabulary source file and imported dynamically. Assisted-by: OpenCode:deepseek-v4-pro --- packages/vocab-runtime/src/mod.ts | 5 ++ packages/vocab-runtime/src/preprocessor.ts | 22 +++++++++ packages/vocab-tools/src/codec.ts | 53 +++++++++++++++++++++- packages/vocab-tools/src/mod.ts | 1 + packages/vocab-tools/src/property.ts | 26 +++++++++++ packages/vocab-tools/src/schema.ts | 27 +++++++++++ packages/vocab-tools/src/schema.yaml | 26 +++++++++++ 7 files changed, 159 insertions(+), 1 deletion(-) create mode 100644 packages/vocab-runtime/src/preprocessor.ts diff --git a/packages/vocab-runtime/src/mod.ts b/packages/vocab-runtime/src/mod.ts index 1a6bda9e7..9e7967c9e 100644 --- a/packages/vocab-runtime/src/mod.ts +++ b/packages/vocab-runtime/src/mod.ts @@ -44,6 +44,11 @@ export { type GetUserAgentOptions, logRequest, } from "./request.ts"; +export { + type Json, + type PropertyPreprocessor, + type PropertyPreprocessorContext, +} from "./preprocessor.ts"; export { expandIPv6Address, isValidPublicIPv4Address, diff --git a/packages/vocab-runtime/src/preprocessor.ts b/packages/vocab-runtime/src/preprocessor.ts new file mode 100644 index 000000000..944194612 --- /dev/null +++ b/packages/vocab-runtime/src/preprocessor.ts @@ -0,0 +1,22 @@ +import type { DocumentLoader } from "./docloader.ts"; +import type { TracerProvider } from "@opentelemetry/api"; + +export type Json = + | string + | number + | boolean + | null + | readonly Json[] + | { readonly [key: string]: Json }; + +export interface PropertyPreprocessorContext { + documentLoader?: DocumentLoader; + contextLoader?: DocumentLoader; + tracerProvider?: TracerProvider; + baseUrl?: URL; +} + +export type PropertyPreprocessor = ( + value: Json, + context: PropertyPreprocessorContext, +) => T | undefined | Error | Promise; diff --git a/packages/vocab-tools/src/codec.ts b/packages/vocab-tools/src/codec.ts index 7c0b4d2b6..36a6b2971 100644 --- a/packages/vocab-tools/src/codec.ts +++ b/packages/vocab-tools/src/codec.ts @@ -1,6 +1,6 @@ import metadata from "../deno.json" with { type: "json" }; import { generateField, getFieldName } from "./field.ts"; -import type { TypeSchema } from "./schema.ts"; +import type { PropertyPreprocessorSchema, TypeSchema } from "./schema.ts"; import { isNonFunctionalProperty } from "./schema.ts"; import { areAllScalarTypes, @@ -10,9 +10,54 @@ import { getDecoders, getEncoders, getSubtypes, + getTypeNames, isCompactableType, } from "./type.ts"; +function* generatePreprocessorBlock( + property: { preprocessors?: PropertyPreprocessorSchema[] }, + rangeTypeName: string, + variable: string, + baseUrlExpr: string, +): Iterable { + if (property.preprocessors == null || property.preprocessors.length === 0) { + return; + } + yield ` + { + let _handled: ${rangeTypeName} | undefined; + `; + let moduleIndex = 0; + for (const pp of property.preprocessors) { + yield ` + { + const _ppM${moduleIndex} = await import(${JSON.stringify(pp.module)}); + const _result = await _ppM${moduleIndex}[${ + JSON.stringify(pp.function) + }](v, { + documentLoader: options.documentLoader, + contextLoader: options.contextLoader, + tracerProvider: options.tracerProvider, + baseUrl: ${baseUrlExpr}, + }); + if (_result instanceof Error) throw _result; + if (_result !== undefined) { + _handled = _result as ${rangeTypeName}; + } + } + if (_handled !== undefined) break; + `; + moduleIndex++; + } + yield ` + if (_handled !== undefined) { + ${variable}.push(_handled); + continue; + } + } + `; +} + export async function* generateEncoder( typeUri: string, types: Record, @@ -426,6 +471,12 @@ export async function* generateDecoder( ) { if (v == null) continue; `; + yield* generatePreprocessorBlock( + property, + getTypeNames(property.range, types), + variable, + `(values["@id"] == null ? options.baseUrl : new URL(values["@id"]))`, + ); if (!areAllScalarTypes(property.range, types)) { yield ` if (typeof v === "object" && "@id" in v && !("@type" in v) diff --git a/packages/vocab-tools/src/mod.ts b/packages/vocab-tools/src/mod.ts index 5cd50a54e..0cd6bdc1e 100644 --- a/packages/vocab-tools/src/mod.ts +++ b/packages/vocab-tools/src/mod.ts @@ -1,6 +1,7 @@ export { default as generateVocab } from "./generate.ts"; export { loadSchemaFiles, + type PropertyPreprocessorSchema, type PropertySchema, type TypeSchema, } from "./schema.ts"; diff --git a/packages/vocab-tools/src/property.ts b/packages/vocab-tools/src/property.ts index 78c1772c3..4cd9096a2 100644 --- a/packages/vocab-tools/src/property.ts +++ b/packages/vocab-tools/src/property.ts @@ -165,6 +165,32 @@ async function* generateProperty( this._tracerProvider ?? trace.getTracerProvider(); const baseUrl = options.baseUrl; `; + if ( + property.preprocessors != null && + property.preprocessors.length > 0 + ) { + let moduleIndex = 0; + for (const pp of property.preprocessors) { + yield ` + { + const _ppM${moduleIndex} = await import(${JSON.stringify(pp.module)}); + const _result = await _ppM${moduleIndex}[${ + JSON.stringify(pp.function) + }](jsonLd, { + documentLoader, + contextLoader, + tracerProvider, + baseUrl, + }); + if (_result instanceof Error) throw _result; + if (_result !== undefined) return _result as ${ + getTypeNames(property.range, types) + }; + } + `; + moduleIndex++; + } + } for (const range of property.range) { if (!(range in types)) continue; const rangeType = types[range]; diff --git a/packages/vocab-tools/src/schema.ts b/packages/vocab-tools/src/schema.ts index 123ec7b60..3f4224f33 100644 --- a/packages/vocab-tools/src/schema.ts +++ b/packages/vocab-tools/src/schema.ts @@ -122,6 +122,33 @@ export interface PropertySchemaBase { */ inherit: true; }; + + /** + * Preprocessors for this property. Each preprocessor receives an expanded + * JSON-LD property value and may return a vocabulary object matching the + * property's declared range, `undefined` when it did not handle the value, + * or an `Error` when it recognized the value but failed while converting it. + * + * {@link module} is resolved from the generated vocabulary source file + * and imported dynamically at decode time. + */ + preprocessors?: PropertyPreprocessorSchema[]; +} + +/** + * A schema for a property preprocessor that normalizes wire-level values + * before the generated range decoder runs. + */ +export interface PropertyPreprocessorSchema { + /** + * Module specifier resolved from the generated vocabulary source file. + */ + module: string; + + /** + * The name of the exported function in the module. + */ + function: string; } export type PropertySchemaTyping = { diff --git a/packages/vocab-tools/src/schema.yaml b/packages/vocab-tools/src/schema.yaml index 4a059512f..6927df8b9 100644 --- a/packages/vocab-tools/src/schema.yaml +++ b/packages/vocab-tools/src/schema.yaml @@ -113,6 +113,32 @@ $defs: Whether the embedded context should be the same as the context of the enclosing document. const: true + preprocessors: + description: >- + Preprocessors for this property. Each preprocessor receives an + expanded JSON-LD property value and may return a vocabulary object + matching the property's declared range, `undefined` when it did not + handle the value, or an `Error` when it recognized the value but + failed while converting it. + + `module` is resolved from the generated vocabulary source file + and imported dynamically at decode time. + type: array + items: + type: object + properties: + module: + description: >- + Module specifier resolved from the generated vocabulary + source file. + type: string + function: + description: The name of the exported function in the module. + type: string + pattern: "^[a-zA-Z_$][a-zA-Z0-9_$]*$" + required: + - module + - function required: - singularName - uri From 82ec5eabb25ba6fb97df9a8875b3fad51a4653be Mon Sep 17 00:00:00 2001 From: Hong Minhee Date: Fri, 5 Jun 2026 22:00:34 +0900 Subject: [PATCH 02/25] Normalize Link icon and image values to Image objects Added `normalizeLinkToImage` preprocessor to `@fedify/vocab` that converts incoming explicit `Link` objects in the `icon` and `image` properties into `Image` objects during decoding. This keeps the public TypeScript API `Image`-oriented while allowing wire-level `Link` values to pass through without errors. The `icon` and `image` properties in `Object` now declare the new preprocessor in their schema definitions via the `preprocessors` field, and the generated decoders run it before the normal range decoder for each expanded JSON-LD value. Regression tests cover single and multiple Link icons, relative URL resolution, and mixed Link+Image arrays. Assisted-by: OpenCode:deepseek-v4-pro --- .../src/__snapshots__/class.test.ts.deno.snap | 72 ++++++++++++- packages/vocab-tools/src/class.ts | 2 +- packages/vocab-tools/src/codec.ts | 3 +- packages/vocab-tools/src/property.ts | 2 +- packages/vocab/src/object.yaml | 6 ++ packages/vocab/src/preprocessors.ts | 37 +++++++ packages/vocab/src/vocab.test.ts | 101 ++++++++++++++++++ 7 files changed, 218 insertions(+), 5 deletions(-) create mode 100644 packages/vocab/src/preprocessors.ts diff --git a/packages/vocab-tools/src/__snapshots__/class.test.ts.deno.snap b/packages/vocab-tools/src/__snapshots__/class.test.ts.deno.snap index e258d526d..9282b45b8 100644 --- a/packages/vocab-tools/src/__snapshots__/class.test.ts.deno.snap +++ b/packages/vocab-tools/src/__snapshots__/class.test.ts.deno.snap @@ -1,7 +1,7 @@ export const snapshot = {}; snapshot[`generateClasses() 1`] = ` -"// deno-lint-ignore-file ban-unused-ignore no-unused-vars prefer-const verbatim-module-syntax +"// deno-lint-ignore-file ban-unused-ignore no-explicit-any no-unused-vars prefer-const verbatim-module-syntax import jsonld from \\"@fedify/vocab-runtime/jsonld\\"; import { getLogger } from \\"@logtape/logtape\\"; import { type Span, SpanStatusCode, type TracerProvider, trace } @@ -3663,6 +3663,18 @@ get names(): ((string | LanguageString))[] { this._tracerProvider ?? trace.getTracerProvider(); const baseUrl = options.baseUrl; + { + const _ppM0 = await import(\\"./preprocessors.ts\\"); + const _result = await _ppM0[\\"normalizeLinkToImage\\"](jsonLd as any, { + documentLoader, + contextLoader, + tracerProvider, + baseUrl, + }); + if (_result instanceof Error) throw _result; + if (_result !== undefined) return _result as Image; + } + try { return await Image.fromJsonLd( jsonLd, @@ -3977,6 +3989,18 @@ get names(): ((string | LanguageString))[] { this._tracerProvider ?? trace.getTracerProvider(); const baseUrl = options.baseUrl; + { + const _ppM0 = await import(\\"./preprocessors.ts\\"); + const _result = await _ppM0[\\"normalizeLinkToImage\\"](jsonLd as any, { + documentLoader, + contextLoader, + tracerProvider, + baseUrl, + }); + if (_result instanceof Error) throw _result; + if (_result !== undefined) return _result as Image; + } + try { return await Image.fromJsonLd( jsonLd, @@ -10739,6 +10763,29 @@ get urls(): ((URL | Link))[] { ) { if (v == null) continue; + { + let _handled: Image | undefined; + + if (_handled === undefined) { + const _ppM0 = await import(\\"./preprocessors.ts\\"); + const _result = await _ppM0[\\"normalizeLinkToImage\\"](v, { + documentLoader: options.documentLoader, + contextLoader: options.contextLoader, + tracerProvider: options.tracerProvider, + baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])), + }); + if (_result instanceof Error) throw _result; + if (_result !== undefined) { + _handled = _result as Image; + } + } + + if (_handled !== undefined) { + _33CjRLy5ujtsUrwRSCrsggvGdKuR_icon.push(_handled); + continue; + } + } + if (typeof v === \\"object\\" && \\"@id\\" in v && !(\\"@type\\" in v) && globalThis.Object.keys(v).length === 1) { _33CjRLy5ujtsUrwRSCrsggvGdKuR_icon.push( @@ -10772,6 +10819,29 @@ get urls(): ((URL | Link))[] { ) { if (v == null) continue; + { + let _handled: Image | undefined; + + if (_handled === undefined) { + const _ppM0 = await import(\\"./preprocessors.ts\\"); + const _result = await _ppM0[\\"normalizeLinkToImage\\"](v, { + documentLoader: options.documentLoader, + contextLoader: options.contextLoader, + tracerProvider: options.tracerProvider, + baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])), + }); + if (_result instanceof Error) throw _result; + if (_result !== undefined) { + _handled = _result as Image; + } + } + + if (_handled !== undefined) { + _3dXrUdkARxwyJLtJcYi1AJ92H41U_image.push(_handled); + continue; + } + } + if (typeof v === \\"object\\" && \\"@id\\" in v && !(\\"@type\\" in v) && globalThis.Object.keys(v).length === 1) { _3dXrUdkARxwyJLtJcYi1AJ92H41U_image.push( diff --git a/packages/vocab-tools/src/class.ts b/packages/vocab-tools/src/class.ts index 9ae7e7a00..80233bf75 100644 --- a/packages/vocab-tools/src/class.ts +++ b/packages/vocab-tools/src/class.ts @@ -184,7 +184,7 @@ export async function* generateClasses( "parseDecimal", "type RemoteDocument", ]; - yield "// deno-lint-ignore-file ban-unused-ignore no-unused-vars prefer-const verbatim-module-syntax\n"; + yield "// deno-lint-ignore-file ban-unused-ignore no-explicit-any no-unused-vars prefer-const verbatim-module-syntax\n"; yield 'import jsonld from "@fedify/vocab-runtime/jsonld";\n'; yield 'import { getLogger } from "@logtape/logtape";\n'; yield `import { type Span, SpanStatusCode, type TracerProvider, trace } diff --git a/packages/vocab-tools/src/codec.ts b/packages/vocab-tools/src/codec.ts index 36a6b2971..850a9ab84 100644 --- a/packages/vocab-tools/src/codec.ts +++ b/packages/vocab-tools/src/codec.ts @@ -30,7 +30,7 @@ function* generatePreprocessorBlock( let moduleIndex = 0; for (const pp of property.preprocessors) { yield ` - { + if (_handled === undefined) { const _ppM${moduleIndex} = await import(${JSON.stringify(pp.module)}); const _result = await _ppM${moduleIndex}[${ JSON.stringify(pp.function) @@ -45,7 +45,6 @@ function* generatePreprocessorBlock( _handled = _result as ${rangeTypeName}; } } - if (_handled !== undefined) break; `; moduleIndex++; } diff --git a/packages/vocab-tools/src/property.ts b/packages/vocab-tools/src/property.ts index 4cd9096a2..f0af6c91f 100644 --- a/packages/vocab-tools/src/property.ts +++ b/packages/vocab-tools/src/property.ts @@ -176,7 +176,7 @@ async function* generateProperty( const _ppM${moduleIndex} = await import(${JSON.stringify(pp.module)}); const _result = await _ppM${moduleIndex}[${ JSON.stringify(pp.function) - }](jsonLd, { + }](jsonLd as any, { documentLoader, contextLoader, tracerProvider, diff --git a/packages/vocab/src/object.yaml b/packages/vocab/src/object.yaml index 8b8487372..d9382b9c3 100644 --- a/packages/vocab/src/object.yaml +++ b/packages/vocab/src/object.yaml @@ -137,6 +137,9 @@ properties: (vertical) and should be suitable for presentation at a small size. range: - "https://www.w3.org/ns/activitystreams#Image" + preprocessors: + - module: ./preprocessors.ts + function: normalizeLinkToImage - pluralName: images singularName: image @@ -149,6 +152,9 @@ properties: limitations assumed. range: - "https://www.w3.org/ns/activitystreams#Image" + preprocessors: + - module: ./preprocessors.ts + function: normalizeLinkToImage - pluralName: replyTargets singularName: replyTarget diff --git a/packages/vocab/src/preprocessors.ts b/packages/vocab/src/preprocessors.ts new file mode 100644 index 000000000..ac7aba185 --- /dev/null +++ b/packages/vocab/src/preprocessors.ts @@ -0,0 +1,37 @@ +import type { PropertyPreprocessor } from "@fedify/vocab-runtime"; +import { Image, Link } from "./vocab.ts"; + +export const normalizeLinkToImage: PropertyPreprocessor = async ( + value, + context, +) => { + if ( + typeof value !== "object" || + value === null || + Array.isArray(value) || + !("@type" in value) || + !Array.isArray(value["@type"]) || + !value["@type"].includes("https://www.w3.org/ns/activitystreams#Link") + ) { + return undefined; + } + + let link: Link; + try { + link = await Link.fromJsonLd(value, context); + } catch (error) { + return error instanceof Error ? error : new Error(String(error)); + } + + if (link.href == null) return undefined; + + return new Image({ + url: link.href, + mediaType: link.mediaType, + names: link.names?.length != null && link.names.length > 0 + ? link.names + : undefined, + width: link.width, + height: link.height, + }); +}; diff --git a/packages/vocab/src/vocab.test.ts b/packages/vocab/src/vocab.test.ts index 84284544b..71417cfad 100644 --- a/packages/vocab/src/vocab.test.ts +++ b/packages/vocab/src/vocab.test.ts @@ -1844,6 +1844,107 @@ test("Person.fromJsonLd() with relative URLs and baseUrl", async () => { ); }); +test("Object.fromJsonLd() normalizes Link icon to Image", async () => { + const json = { + "@context": "https://www.w3.org/ns/activitystreams", + "type": "Note", + "content": "Hello", + "icon": { + "type": "Link", + "href": "https://example.com/icon.png", + "mediaType": "image/png", + "name": "Icon", + "width": 64, + "height": 64, + }, + }; + const obj = await Object.fromJsonLd(json, { + documentLoader: mockDocumentLoader, + contextLoader: mockDocumentLoader, + }); + const icon = await obj.getIcon(); + deepStrictEqual( + icon?.url?.href, + "https://example.com/icon.png", + ); + deepStrictEqual(icon?.mediaType, "image/png"); + deepStrictEqual(icon?.names, ["Icon"]); + deepStrictEqual(icon?.width, 64); + deepStrictEqual(icon?.height, 64); +}); + +test("Object.fromJsonLd() normalizes Link image to Image", async () => { + const json = { + "@context": "https://www.w3.org/ns/activitystreams", + "type": "Note", + "content": "Hello", + "image": { + "type": "Link", + "href": "https://example.com/banner.png", + "mediaType": "image/png", + "width": 800, + "height": 200, + }, + }; + const obj = await Object.fromJsonLd(json, { + documentLoader: mockDocumentLoader, + contextLoader: mockDocumentLoader, + }); + const images = []; + for await (const img of obj.getImages()) { + images.push(img); + } + deepStrictEqual(images[0]?.url?.href, "https://example.com/banner.png"); + deepStrictEqual(images[0]?.mediaType, "image/png"); + deepStrictEqual(images[0]?.width, 800); + deepStrictEqual(images[0]?.height, 200); +}); + +test("Object.fromJsonLd() normalizes Link icon with relative URL", async () => { + const json = { + "@context": "https://www.w3.org/ns/activitystreams", + "type": "Note", + "id": "https://example.com/notes/1", + "content": "Hello", + "icon": { + "type": "Link", + "href": "/icons/icon.png", + }, + }; + const obj = await Object.fromJsonLd(json, { + documentLoader: mockDocumentLoader, + contextLoader: mockDocumentLoader, + }); + const icon = await obj.getIcon(); + deepStrictEqual( + icon?.url?.href, + "https://example.com/icons/icon.png", + ); +}); + +test("Object.fromJsonLd() normalizes multiple Link icons", async () => { + const json = { + "@context": "https://www.w3.org/ns/activitystreams", + "type": "Note", + "content": "Hello", + "icon": [ + { "type": "Link", "href": "https://example.com/a.png" }, + { "type": "Image", "url": "https://example.com/b.png" }, + ], + }; + const obj = await Object.fromJsonLd(json, { + documentLoader: mockDocumentLoader, + contextLoader: mockDocumentLoader, + }); + const icons = []; + for await (const i of obj.getIcons()) { + icons.push(i); + } + deepStrictEqual(icons.length, 2); + deepStrictEqual(icons[0]?.url?.href, "https://example.com/a.png"); + deepStrictEqual(icons[1]?.url?.href, "https://example.com/b.png"); +}); + test("FEP-fe34: Trust tracking in object construction", async () => { // Test that objects created with embedded objects have trust set const note = new Note({ From 469803e4a3faefc6bf542fac4f79171ed6758e84 Mon Sep 17 00:00:00 2001 From: Hong Minhee Date: Fri, 5 Jun 2026 22:03:49 +0900 Subject: [PATCH 03/25] Document property preprocessor changes Added changelog entries for @fedify/vocab-runtime, @fedify/vocab, and @fedify/vocab-tools describing the new PropertyPreprocessor types, Link-to-Image normalization, and schema preprocessors field. References: https://github.com/fedify-dev/fedify/issues/790 https://github.com/fedify-dev/fedify/issues/792 Assisted-by: OpenCode:deepseek-v4-pro --- CHANGES.md | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/CHANGES.md b/CHANGES.md index bc411e117..6061c3623 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -341,6 +341,30 @@ To be released. [#489]: https://github.com/fedify-dev/fedify/issues/489 +### @fedify/vocab-runtime + + - Added `PropertyPreprocessor`, `PropertyPreprocessorContext`, and `Json` + types for normalizing wire-level JSON-LD property values before the + generated range decoder runs. [[#792]] + +[#792]: https://github.com/fedify-dev/fedify/issues/792 + +### @fedify/vocab + + - Explicit ActivityStreams `Link` objects in `icon` and `image` properties + are now normalized to `Image` during decoding via the new + `normalizeLinkToImage` preprocessor. The public `Image`-oriented + TypeScript API is unchanged. [[#790], [#792]] + +[#790]: https://github.com/fedify-dev/fedify/issues/790 + +### @fedify/vocab-tools + + - Property schemas now support a `preprocessors` field that lists + module/function pairs. Generated decoders dynamically import and run + these preprocessors for each expanded JSON-LD property value before + falling back to the normal range decoder. [[#792]] + Version 2.2.5 ------------- From e4794550f193dd4d8303643dbd06a56ecda1a9ca Mon Sep 17 00:00:00 2001 From: Hong Minhee Date: Fri, 5 Jun 2026 22:55:17 +0900 Subject: [PATCH 04/25] Expand JSON-LD before preprocessors in property path The generated `#_fromJsonLd` helper now expands fetched documents before passing values to preprocessors. This ensures that remote `Link` icons and images resolved via URL dereferencing are normalized to `Image` objects, matching the decoder path's expanded value contract. Added a regression test for URL-backed icons that are fetched as compact Link documents. Assisted-by: OpenCode:deepseek-v4-pro Assisted-by: Codex:gpt-5.5 --- .../src/__snapshots__/class.test.ts.deno.snap | 60 ++++++++++++------- packages/vocab-tools/src/property.ts | 36 +++++++---- packages/vocab/src/vocab.test.ts | 39 ++++++++++++ 3 files changed, 101 insertions(+), 34 deletions(-) diff --git a/packages/vocab-tools/src/__snapshots__/class.test.ts.deno.snap b/packages/vocab-tools/src/__snapshots__/class.test.ts.deno.snap index 9282b45b8..6ea0a8eac 100644 --- a/packages/vocab-tools/src/__snapshots__/class.test.ts.deno.snap +++ b/packages/vocab-tools/src/__snapshots__/class.test.ts.deno.snap @@ -3663,18 +3663,26 @@ get names(): ((string | LanguageString))[] { this._tracerProvider ?? trace.getTracerProvider(); const baseUrl = options.baseUrl; - { - const _ppM0 = await import(\\"./preprocessors.ts\\"); - const _result = await _ppM0[\\"normalizeLinkToImage\\"](jsonLd as any, { - documentLoader, - contextLoader, - tracerProvider, - baseUrl, - }); - if (_result instanceof Error) throw _result; - if (_result !== undefined) return _result as Image; - } + const _expanded = await jsonld.expand(jsonLd, { + documentLoader: contextLoader, + keepFreeFloatingNodes: true, + }); + for (const _pp_obj of _expanded) { + + { + const _ppM0 = await import(\\"./preprocessors.ts\\"); + const _result = await _ppM0[\\"normalizeLinkToImage\\"](_pp_obj, { + documentLoader, + contextLoader, + tracerProvider, + baseUrl, + }); + if (_result instanceof Error) throw _result; + if (_result !== undefined) return _result as Image; + } + } + try { return await Image.fromJsonLd( jsonLd, @@ -3989,18 +3997,26 @@ get names(): ((string | LanguageString))[] { this._tracerProvider ?? trace.getTracerProvider(); const baseUrl = options.baseUrl; - { - const _ppM0 = await import(\\"./preprocessors.ts\\"); - const _result = await _ppM0[\\"normalizeLinkToImage\\"](jsonLd as any, { - documentLoader, - contextLoader, - tracerProvider, - baseUrl, - }); - if (_result instanceof Error) throw _result; - if (_result !== undefined) return _result as Image; - } + const _expanded = await jsonld.expand(jsonLd, { + documentLoader: contextLoader, + keepFreeFloatingNodes: true, + }); + for (const _pp_obj of _expanded) { + + { + const _ppM0 = await import(\\"./preprocessors.ts\\"); + const _result = await _ppM0[\\"normalizeLinkToImage\\"](_pp_obj, { + documentLoader, + contextLoader, + tracerProvider, + baseUrl, + }); + if (_result instanceof Error) throw _result; + if (_result !== undefined) return _result as Image; + } + } + try { return await Image.fromJsonLd( jsonLd, diff --git a/packages/vocab-tools/src/property.ts b/packages/vocab-tools/src/property.ts index f0af6c91f..ddbee0244 100644 --- a/packages/vocab-tools/src/property.ts +++ b/packages/vocab-tools/src/property.ts @@ -169,27 +169,39 @@ async function* generateProperty( property.preprocessors != null && property.preprocessors.length > 0 ) { + yield ` + const _expanded = await jsonld.expand(jsonLd, { + documentLoader: contextLoader, + keepFreeFloatingNodes: true, + }); + for (const _pp_obj of _expanded) { + `; let moduleIndex = 0; for (const pp of property.preprocessors) { yield ` - { - const _ppM${moduleIndex} = await import(${JSON.stringify(pp.module)}); - const _result = await _ppM${moduleIndex}[${ + { + const _ppM${moduleIndex} = await import(${ + JSON.stringify(pp.module) + }); + const _result = await _ppM${moduleIndex}[${ JSON.stringify(pp.function) - }](jsonLd as any, { - documentLoader, - contextLoader, - tracerProvider, - baseUrl, - }); - if (_result instanceof Error) throw _result; - if (_result !== undefined) return _result as ${ + }](_pp_obj, { + documentLoader, + contextLoader, + tracerProvider, + baseUrl, + }); + if (_result instanceof Error) throw _result; + if (_result !== undefined) return _result as ${ getTypeNames(property.range, types) }; - } + } `; moduleIndex++; } + yield ` + } + `; } for (const range of property.range) { if (!(range in types)) continue; diff --git a/packages/vocab/src/vocab.test.ts b/packages/vocab/src/vocab.test.ts index 71417cfad..2a4a73dc2 100644 --- a/packages/vocab/src/vocab.test.ts +++ b/packages/vocab/src/vocab.test.ts @@ -1945,6 +1945,45 @@ test("Object.fromJsonLd() normalizes multiple Link icons", async () => { deepStrictEqual(icons[1]?.url?.href, "https://example.com/b.png"); }); +test("Object.getIcon() normalizes fetched Link document to Image", async () => { + const linkDocUrl = "https://example.com/icons/avatar-link"; + const linkDoc = { + "@context": "https://www.w3.org/ns/activitystreams", + type: "Link", + href: "https://example.com/avatars/user.png", + mediaType: "image/png", + width: 128, + height: 128, + }; + const docLoader = async (url: string) => { + if (url === linkDocUrl) { + return { + document: linkDoc, + documentUrl: url, + contextUrl: null, + }; + } + return await mockDocumentLoader(url); + }; + + const person = new Person({ + id: new URL("https://example.com/ap/actors/test-user"), + icon: new URL(linkDocUrl), + }); + + const icon = await person.getIcon({ + documentLoader: docLoader, + contextLoader: mockDocumentLoader, + }); + deepStrictEqual( + icon?.url?.href, + "https://example.com/avatars/user.png", + ); + deepStrictEqual(icon?.mediaType, "image/png"); + deepStrictEqual(icon?.width, 128); + deepStrictEqual(icon?.height, 128); +}); + test("FEP-fe34: Trust tracking in object construction", async () => { // Test that objects created with embedded objects have trust set const note = new Note({ From 1db7fb7aa4106744c2d2d42d3372f43704a665a0 Mon Sep 17 00:00:00 2001 From: Hong Minhee Date: Fri, 5 Jun 2026 23:22:42 +0900 Subject: [PATCH 05/25] Update Node.js and Bun snapshots for preprocessor changes Regenerated snapshot files for the `generateClasses()` test that now includes preprocessor blocks in the emitted icon/image decoder code. Assisted-by: OpenCode:deepseek-v4-pro --- .../src/__snapshots__/class.test.ts.node.snap | 88 ++++++++++++++++++- .../src/__snapshots__/class.test.ts.snap | 88 ++++++++++++++++++- 2 files changed, 174 insertions(+), 2 deletions(-) diff --git a/packages/vocab-tools/src/__snapshots__/class.test.ts.node.snap b/packages/vocab-tools/src/__snapshots__/class.test.ts.node.snap index 0dc4db976..73d3c8b3f 100644 --- a/packages/vocab-tools/src/__snapshots__/class.test.ts.node.snap +++ b/packages/vocab-tools/src/__snapshots__/class.test.ts.node.snap @@ -1,5 +1,5 @@ exports[`generateClasses() 1`] = ` -"// deno-lint-ignore-file ban-unused-ignore no-unused-vars prefer-const verbatim-module-syntax +"// deno-lint-ignore-file ban-unused-ignore no-explicit-any no-unused-vars prefer-const verbatim-module-syntax import jsonld from \\"@fedify/vocab-runtime/jsonld\\"; import { getLogger } from \\"@logtape/logtape\\"; import { type Span, SpanStatusCode, type TracerProvider, trace } @@ -3661,6 +3661,26 @@ get names(): ((string | LanguageString))[] { this._tracerProvider ?? trace.getTracerProvider(); const baseUrl = options.baseUrl; + const _expanded = await jsonld.expand(jsonLd, { + documentLoader: contextLoader, + keepFreeFloatingNodes: true, + }); + for (const _pp_obj of _expanded) { + + { + const _ppM0 = await import(\\"./preprocessors.ts\\"); + const _result = await _ppM0[\\"normalizeLinkToImage\\"](_pp_obj, { + documentLoader, + contextLoader, + tracerProvider, + baseUrl, + }); + if (_result instanceof Error) throw _result; + if (_result !== undefined) return _result as Image; + } + + } + try { return await Image.fromJsonLd( jsonLd, @@ -3975,6 +3995,26 @@ get names(): ((string | LanguageString))[] { this._tracerProvider ?? trace.getTracerProvider(); const baseUrl = options.baseUrl; + const _expanded = await jsonld.expand(jsonLd, { + documentLoader: contextLoader, + keepFreeFloatingNodes: true, + }); + for (const _pp_obj of _expanded) { + + { + const _ppM0 = await import(\\"./preprocessors.ts\\"); + const _result = await _ppM0[\\"normalizeLinkToImage\\"](_pp_obj, { + documentLoader, + contextLoader, + tracerProvider, + baseUrl, + }); + if (_result instanceof Error) throw _result; + if (_result !== undefined) return _result as Image; + } + + } + try { return await Image.fromJsonLd( jsonLd, @@ -10737,6 +10777,29 @@ get urls(): ((URL | Link))[] { ) { if (v == null) continue; + { + let _handled: Image | undefined; + + if (_handled === undefined) { + const _ppM0 = await import(\\"./preprocessors.ts\\"); + const _result = await _ppM0[\\"normalizeLinkToImage\\"](v, { + documentLoader: options.documentLoader, + contextLoader: options.contextLoader, + tracerProvider: options.tracerProvider, + baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])), + }); + if (_result instanceof Error) throw _result; + if (_result !== undefined) { + _handled = _result as Image; + } + } + + if (_handled !== undefined) { + _33CjRLy5ujtsUrwRSCrsggvGdKuR_icon.push(_handled); + continue; + } + } + if (typeof v === \\"object\\" && \\"@id\\" in v && !(\\"@type\\" in v) && globalThis.Object.keys(v).length === 1) { _33CjRLy5ujtsUrwRSCrsggvGdKuR_icon.push( @@ -10770,6 +10833,29 @@ get urls(): ((URL | Link))[] { ) { if (v == null) continue; + { + let _handled: Image | undefined; + + if (_handled === undefined) { + const _ppM0 = await import(\\"./preprocessors.ts\\"); + const _result = await _ppM0[\\"normalizeLinkToImage\\"](v, { + documentLoader: options.documentLoader, + contextLoader: options.contextLoader, + tracerProvider: options.tracerProvider, + baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])), + }); + if (_result instanceof Error) throw _result; + if (_result !== undefined) { + _handled = _result as Image; + } + } + + if (_handled !== undefined) { + _3dXrUdkARxwyJLtJcYi1AJ92H41U_image.push(_handled); + continue; + } + } + if (typeof v === \\"object\\" && \\"@id\\" in v && !(\\"@type\\" in v) && globalThis.Object.keys(v).length === 1) { _3dXrUdkARxwyJLtJcYi1AJ92H41U_image.push( diff --git a/packages/vocab-tools/src/__snapshots__/class.test.ts.snap b/packages/vocab-tools/src/__snapshots__/class.test.ts.snap index d728d1625..a13c68e6f 100644 --- a/packages/vocab-tools/src/__snapshots__/class.test.ts.snap +++ b/packages/vocab-tools/src/__snapshots__/class.test.ts.snap @@ -1,7 +1,7 @@ // Bun Snapshot v1, https://bun.sh/docs/test/snapshots exports[`generateClasses() 1`] = ` -"// deno-lint-ignore-file ban-unused-ignore no-unused-vars prefer-const verbatim-module-syntax +"// deno-lint-ignore-file ban-unused-ignore no-explicit-any no-unused-vars prefer-const verbatim-module-syntax import jsonld from "@fedify/vocab-runtime/jsonld"; import { getLogger } from "@logtape/logtape"; import { type Span, SpanStatusCode, type TracerProvider, trace } @@ -3663,6 +3663,26 @@ get names(): ((string | LanguageString))[] { this._tracerProvider ?? trace.getTracerProvider(); const baseUrl = options.baseUrl; + const _expanded = await jsonld.expand(jsonLd, { + documentLoader: contextLoader, + keepFreeFloatingNodes: true, + }); + for (const _pp_obj of _expanded) { + + { + const _ppM0 = await import("./preprocessors.ts"); + const _result = await _ppM0["normalizeLinkToImage"](_pp_obj, { + documentLoader, + contextLoader, + tracerProvider, + baseUrl, + }); + if (_result instanceof Error) throw _result; + if (_result !== undefined) return _result as Image; + } + + } + try { return await Image.fromJsonLd( jsonLd, @@ -3977,6 +3997,26 @@ get names(): ((string | LanguageString))[] { this._tracerProvider ?? trace.getTracerProvider(); const baseUrl = options.baseUrl; + const _expanded = await jsonld.expand(jsonLd, { + documentLoader: contextLoader, + keepFreeFloatingNodes: true, + }); + for (const _pp_obj of _expanded) { + + { + const _ppM0 = await import("./preprocessors.ts"); + const _result = await _ppM0["normalizeLinkToImage"](_pp_obj, { + documentLoader, + contextLoader, + tracerProvider, + baseUrl, + }); + if (_result instanceof Error) throw _result; + if (_result !== undefined) return _result as Image; + } + + } + try { return await Image.fromJsonLd( jsonLd, @@ -10739,6 +10779,29 @@ get urls(): ((URL | Link))[] { ) { if (v == null) continue; + { + let _handled: Image | undefined; + + if (_handled === undefined) { + const _ppM0 = await import("./preprocessors.ts"); + const _result = await _ppM0["normalizeLinkToImage"](v, { + documentLoader: options.documentLoader, + contextLoader: options.contextLoader, + tracerProvider: options.tracerProvider, + baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])), + }); + if (_result instanceof Error) throw _result; + if (_result !== undefined) { + _handled = _result as Image; + } + } + + if (_handled !== undefined) { + _33CjRLy5ujtsUrwRSCrsggvGdKuR_icon.push(_handled); + continue; + } + } + if (typeof v === "object" && "@id" in v && !("@type" in v) && globalThis.Object.keys(v).length === 1) { _33CjRLy5ujtsUrwRSCrsggvGdKuR_icon.push( @@ -10772,6 +10835,29 @@ get urls(): ((URL | Link))[] { ) { if (v == null) continue; + { + let _handled: Image | undefined; + + if (_handled === undefined) { + const _ppM0 = await import("./preprocessors.ts"); + const _result = await _ppM0["normalizeLinkToImage"](v, { + documentLoader: options.documentLoader, + contextLoader: options.contextLoader, + tracerProvider: options.tracerProvider, + baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])), + }); + if (_result instanceof Error) throw _result; + if (_result !== undefined) { + _handled = _result as Image; + } + } + + if (_handled !== undefined) { + _3dXrUdkARxwyJLtJcYi1AJ92H41U_image.push(_handled); + continue; + } + } + if (typeof v === "object" && "@id" in v && !("@type" in v) && globalThis.Object.keys(v).length === 1) { _3dXrUdkARxwyJLtJcYi1AJ92H41U_image.push( From bbfe8d0a7e1d45856c748de64643978d766a39d1 Mon Sep 17 00:00:00 2001 From: Hong Minhee Date: Fri, 5 Jun 2026 23:39:04 +0900 Subject: [PATCH 06/25] Use static imports and fix review issues Switch from dynamic import() to static imports for preprocessor modules so the generated code works correctly in Node.js/Bun environments after tsdown compilation. Dynamic imports with .ts extensions are not rewritten by transpilers and cause runtime MODULE_NOT_FOUND errors. Also fix: - Blank node IDs (e.g. _:b0) no longer crash the decoder - Cached property reparse passes the parent baseUrl for relative URL resolution in Link-derived icon/image values - Schema now requires non-empty module specifiers - JSDoc comments added to public preprocessor types https://github.com/fedify-dev/fedify/pull/793#discussion_r3363198753 https://github.com/fedify-dev/fedify/pull/793#discussion_r3363198761 https://github.com/fedify-dev/fedify/pull/793#discussion_r3363236357 https://github.com/fedify-dev/fedify/pull/793#discussion_r3363245204 https://github.com/fedify-dev/fedify/pull/793#discussion_r3363245209 Assisted-by: OpenCode:deepseek-v4-pro --- packages/vocab-runtime/src/preprocessor.ts | 18 + .../src/__snapshots__/class.test.ts.deno.snap | 1350 +++++++++++++---- .../src/__snapshots__/class.test.ts.node.snap | 294 ++-- .../src/__snapshots__/class.test.ts.snap | 294 ++-- packages/vocab-tools/src/class.ts | 29 +- packages/vocab-tools/src/codec.ts | 16 +- packages/vocab-tools/src/property.ts | 25 +- packages/vocab-tools/src/schema.yaml | 1 + 8 files changed, 1387 insertions(+), 640 deletions(-) diff --git a/packages/vocab-runtime/src/preprocessor.ts b/packages/vocab-runtime/src/preprocessor.ts index 944194612..cea40559e 100644 --- a/packages/vocab-runtime/src/preprocessor.ts +++ b/packages/vocab-runtime/src/preprocessor.ts @@ -1,6 +1,9 @@ import type { DocumentLoader } from "./docloader.ts"; import type { TracerProvider } from "@opentelemetry/api"; +/** + * JSON value shape passed to property preprocessors. + */ export type Json = | string | number @@ -9,13 +12,28 @@ export type Json = | readonly Json[] | { readonly [key: string]: Json }; +/** + * Runtime context provided to property preprocessors. + */ export interface PropertyPreprocessorContext { + /** Loader for remote JSON-LD documents. */ documentLoader?: DocumentLoader; + /** Loader for remote JSON-LD contexts. */ contextLoader?: DocumentLoader; + /** OpenTelemetry tracer provider for instrumentation. */ tracerProvider?: TracerProvider; + /** Base URL for resolving relative references. */ baseUrl?: URL; } +/** + * Function signature for schema-configured property preprocessors. + * + * Receives an expanded JSON-LD property value and returns a vocabulary + * object when the value is handled, `undefined` when the value should + * fall through to the normal range decoder, or an `Error` when the value + * is recognized but cannot be converted. + */ export type PropertyPreprocessor = ( value: Json, context: PropertyPreprocessorContext, diff --git a/packages/vocab-tools/src/__snapshots__/class.test.ts.deno.snap b/packages/vocab-tools/src/__snapshots__/class.test.ts.deno.snap index 6ea0a8eac..1367536f1 100644 --- a/packages/vocab-tools/src/__snapshots__/class.test.ts.deno.snap +++ b/packages/vocab-tools/src/__snapshots__/class.test.ts.deno.snap @@ -28,6 +28,8 @@ import { } from \\"@fedify/vocab-runtime/temporal\\"; +import * as _ppM0 from \\"./preprocessors.ts\\"; + /** Describes an object of any kind. The Object type serves as the base type for * most of the other kinds of objects defined in the Activity Vocabulary, * including other Core types such as {@link Activity}, @@ -2334,7 +2336,11 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu \\"attachment\\"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) { - v = await this.#attachment_fromJsonLd(obj, options); + v = await this.#attachment_fromJsonLd(obj, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -2588,7 +2594,11 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu \\"attributedTo\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#attribution_fromJsonLd(doc, options); + v = await this.#attribution_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -2684,7 +2694,11 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu \\"attributedTo\\"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) { - v = await this.#attribution_fromJsonLd(obj, options); + v = await this.#attribution_fromJsonLd(obj, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -2901,7 +2915,11 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu \\"audience\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#audience_fromJsonLd(doc, options); + v = await this.#audience_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -2996,7 +3014,11 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu \\"audience\\"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) { - v = await this.#audience_fromJsonLd(obj, options); + v = await this.#audience_fromJsonLd(obj, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -3257,7 +3279,11 @@ get contents(): ((string | LanguageString))[] { \\"context\\"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) { - v = await this.#context_fromJsonLd(obj, options); + v = await this.#context_fromJsonLd(obj, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -3525,7 +3551,11 @@ get names(): ((string | LanguageString))[] { \\"generator\\"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) { - v = await this.#generator_fromJsonLd(obj, options); + v = await this.#generator_fromJsonLd(obj, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -3670,7 +3700,6 @@ get names(): ((string | LanguageString))[] { for (const _pp_obj of _expanded) { { - const _ppM0 = await import(\\"./preprocessors.ts\\"); const _result = await _ppM0[\\"normalizeLinkToImage\\"](_pp_obj, { documentLoader, contextLoader, @@ -3763,7 +3792,11 @@ get names(): ((string | LanguageString))[] { \\"icon\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#icon_fromJsonLd(doc, options); + v = await this.#icon_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -3859,7 +3892,11 @@ get names(): ((string | LanguageString))[] { \\"icon\\"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) { - v = await this.#icon_fromJsonLd(obj, options); + v = await this.#icon_fromJsonLd(obj, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -4004,7 +4041,6 @@ get names(): ((string | LanguageString))[] { for (const _pp_obj of _expanded) { { - const _ppM0 = await import(\\"./preprocessors.ts\\"); const _result = await _ppM0[\\"normalizeLinkToImage\\"](_pp_obj, { documentLoader, contextLoader, @@ -4097,7 +4133,11 @@ get names(): ((string | LanguageString))[] { \\"image\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#image_fromJsonLd(doc, options); + v = await this.#image_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -4193,7 +4233,11 @@ get names(): ((string | LanguageString))[] { \\"image\\"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) { - v = await this.#image_fromJsonLd(obj, options); + v = await this.#image_fromJsonLd(obj, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -4419,7 +4463,11 @@ get names(): ((string | LanguageString))[] { \\"inReplyTo\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#replyTarget_fromJsonLd(doc, options); + v = await this.#replyTarget_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -4514,7 +4562,11 @@ get names(): ((string | LanguageString))[] { \\"inReplyTo\\"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) { - v = await this.#replyTarget_fromJsonLd(obj, options); + v = await this.#replyTarget_fromJsonLd(obj, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -4740,7 +4792,11 @@ get names(): ((string | LanguageString))[] { \\"location\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#location_fromJsonLd(doc, options); + v = await this.#location_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -4835,7 +4891,11 @@ get names(): ((string | LanguageString))[] { \\"location\\"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) { - v = await this.#location_fromJsonLd(obj, options); + v = await this.#location_fromJsonLd(obj, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -5060,7 +5120,11 @@ get names(): ((string | LanguageString))[] { \\"preview\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#preview_fromJsonLd(doc, options); + v = await this.#preview_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -5154,7 +5218,11 @@ get names(): ((string | LanguageString))[] { \\"preview\\"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) { - v = await this.#preview_fromJsonLd(obj, options); + v = await this.#preview_fromJsonLd(obj, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -5384,7 +5452,11 @@ get names(): ((string | LanguageString))[] { \\"replies\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#replies_fromJsonLd(doc, options); + v = await this.#replies_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -5606,7 +5678,11 @@ get names(): ((string | LanguageString))[] { \\"shares\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#shares_fromJsonLd(doc, options); + v = await this.#shares_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -5828,7 +5904,11 @@ get names(): ((string | LanguageString))[] { \\"likes\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#likes_fromJsonLd(doc, options); + v = await this.#likes_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -6044,7 +6124,11 @@ get names(): ((string | LanguageString))[] { \\"emojiReactions\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#emojiReactions_fromJsonLd(doc, options); + v = await this.#emojiReactions_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -6312,7 +6396,11 @@ get summaries(): ((string | LanguageString))[] { \\"tag\\"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) { - v = await this.#tag_fromJsonLd(obj, options); + v = await this.#tag_fromJsonLd(obj, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -6563,7 +6651,11 @@ get urls(): ((URL | Link))[] { \\"to\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#to_fromJsonLd(doc, options); + v = await this.#to_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -6658,7 +6750,11 @@ get urls(): ((URL | Link))[] { \\"to\\"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) { - v = await this.#to_fromJsonLd(obj, options); + v = await this.#to_fromJsonLd(obj, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -6875,7 +6971,11 @@ get urls(): ((URL | Link))[] { \\"bto\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#bto_fromJsonLd(doc, options); + v = await this.#bto_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -6970,7 +7070,11 @@ get urls(): ((URL | Link))[] { \\"bto\\"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) { - v = await this.#bto_fromJsonLd(obj, options); + v = await this.#bto_fromJsonLd(obj, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -7187,7 +7291,11 @@ get urls(): ((URL | Link))[] { \\"cc\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#cc_fromJsonLd(doc, options); + v = await this.#cc_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -7282,7 +7390,11 @@ get urls(): ((URL | Link))[] { \\"cc\\"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) { - v = await this.#cc_fromJsonLd(obj, options); + v = await this.#cc_fromJsonLd(obj, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -7499,7 +7611,11 @@ get urls(): ((URL | Link))[] { \\"bcc\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#bcc_fromJsonLd(doc, options); + v = await this.#bcc_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -7594,7 +7710,11 @@ get urls(): ((URL | Link))[] { \\"bcc\\"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) { - v = await this.#bcc_fromJsonLd(obj, options); + v = await this.#bcc_fromJsonLd(obj, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -7874,7 +7994,11 @@ get urls(): ((URL | Link))[] { \\"proof\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#proof_fromJsonLd(doc, options); + v = await this.#proof_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -7968,7 +8092,11 @@ get urls(): ((URL | Link))[] { \\"proof\\"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) { - v = await this.#proof_fromJsonLd(obj, options); + v = await this.#proof_fromJsonLd(obj, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -8224,7 +8352,11 @@ get urls(): ((URL | Link))[] { \\"likeAuthorization\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#likeAuthorization_fromJsonLd(doc, options); + v = await this.#likeAuthorization_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -8440,7 +8572,11 @@ get urls(): ((URL | Link))[] { \\"replyAuthorization\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#replyAuthorization_fromJsonLd(doc, options); + v = await this.#replyAuthorization_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -8656,7 +8792,11 @@ get urls(): ((URL | Link))[] { \\"announceAuthorization\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#announceAuthorization_fromJsonLd(doc, options); + v = await this.#announceAuthorization_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -10602,7 +10742,7 @@ get urls(): ((URL | Link))[] { const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _3ocC3VVi88cEd5sPWL8djkZsvTN6_audience.push(decoded); @@ -10783,12 +10923,11 @@ get urls(): ((URL | Link))[] { let _handled: Image | undefined; if (_handled === undefined) { - const _ppM0 = await import(\\"./preprocessors.ts\\"); const _result = await _ppM0[\\"normalizeLinkToImage\\"](v, { documentLoader: options.documentLoader, contextLoader: options.contextLoader, tracerProvider: options.tracerProvider, - baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])), + baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])), }); if (_result instanceof Error) throw _result; if (_result !== undefined) { @@ -10814,7 +10953,7 @@ get urls(): ((URL | Link))[] { const decoded = await Image.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _33CjRLy5ujtsUrwRSCrsggvGdKuR_icon.push(decoded); @@ -10839,12 +10978,11 @@ get urls(): ((URL | Link))[] { let _handled: Image | undefined; if (_handled === undefined) { - const _ppM0 = await import(\\"./preprocessors.ts\\"); const _result = await _ppM0[\\"normalizeLinkToImage\\"](v, { documentLoader: options.documentLoader, contextLoader: options.contextLoader, tracerProvider: options.tracerProvider, - baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])), + baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])), }); if (_result instanceof Error) throw _result; if (_result !== undefined) { @@ -10870,7 +11008,7 @@ get urls(): ((URL | Link))[] { const decoded = await Image.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _3dXrUdkARxwyJLtJcYi1AJ92H41U_image.push(decoded); @@ -11054,7 +11192,7 @@ get urls(): ((URL | Link))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _7UpwM3JWcXhADcscukEehBorf6k_replies.push(decoded); @@ -11087,7 +11225,7 @@ get urls(): ((URL | Link))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _3kAfck9PcEYt2L7xug5y99YPbANs_shares.push(decoded); @@ -11120,7 +11258,7 @@ get urls(): ((URL | Link))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _S3ceDnpMdzoTRCccB9FkJWrEzYW_likes.push(decoded); @@ -11153,7 +11291,7 @@ get urls(): ((URL | Link))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _kMatyyNAuxoTD8GQMBfA5ogThMR_emojiReactions.push(decoded); @@ -11340,7 +11478,7 @@ get urls(): ((URL | Link))[] { const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _3hFbw7DTpHhq3cvVhkY8njhcsXbd_to.push(decoded); @@ -11373,7 +11511,7 @@ get urls(): ((URL | Link))[] { const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _aLZupjwL8XB7tzdLgCMXdjZ6qej_bto.push(decoded); @@ -11406,7 +11544,7 @@ get urls(): ((URL | Link))[] { const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _42a1SvBs24QSLzKcfjCyNTjW5a1g_cc.push(decoded); @@ -11439,7 +11577,7 @@ get urls(): ((URL | Link))[] { const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _3qvegKUB8YLgTXRpEf8E6JZSkz2H_bcc.push(decoded); @@ -11514,7 +11652,7 @@ get urls(): ((URL | Link))[] { const decoded = await Source.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _2ZwCFoS787v8y8bXKjMoE6MAbrEB_source.push(decoded); @@ -11547,7 +11685,7 @@ get urls(): ((URL | Link))[] { const decoded = await DataIntegrityProof.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _42rPnotok1ivQ2RNCKNbeFJgx8b8_proof.push(decoded); @@ -11568,7 +11706,7 @@ get urls(): ((URL | Link))[] { const decoded = await InteractionPolicy.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _2MHQfh2N74MMmDLDqYWFo7TxYQK2_interactionPolicy.push(decoded); @@ -11600,9 +11738,9 @@ get urls(): ((URL | Link))[] { : \\"\\" ) ) - : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) + : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) ? new URL(v[\\"@id\\"]) - : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"]))); + : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"]))); if (typeof decoded === \\"undefined\\") continue; _23YiVs2miQcEiUdn4u8SvjQKWYim_approvedBy.push(decoded); } @@ -11634,7 +11772,7 @@ get urls(): ((URL | Link))[] { const decoded = await LikeAuthorization.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _3fCeb5aXaDDd4fvkQ96BLWifBUBa_likeAuthorization.push(decoded); @@ -11667,7 +11805,7 @@ get urls(): ((URL | Link))[] { const decoded = await ReplyAuthorization.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _YA4wdUW7rYztAQ6SjhMnJCmcmtP_replyAuthorization.push(decoded); @@ -11700,7 +11838,7 @@ get urls(): ((URL | Link))[] { const decoded = await AnnounceAuthorization.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _446xEaDBs3Fz6MyzP3PSBaLupkbJ_announceAuthorization.push(decoded); @@ -13315,7 +13453,11 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu \\"quote\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#quote_fromJsonLd(doc, options); + v = await this.#quote_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -13554,7 +13696,11 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu \\"quoteAuthorization\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#quoteAuthorization_fromJsonLd(doc, options); + v = await this.#quoteAuthorization_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -13927,7 +14073,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote.push(decoded); @@ -13986,7 +14132,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await QuoteAuthorization.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization.push(decoded); @@ -14932,7 +15078,11 @@ instruments?: (Object | URL)[];} \\"actor\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#actor_fromJsonLd(doc, options); + v = await this.#actor_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -15028,7 +15178,11 @@ instruments?: (Object | URL)[];} \\"actor\\"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) { - v = await this.#actor_fromJsonLd(obj, options); + v = await this.#actor_fromJsonLd(obj, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -15246,7 +15400,11 @@ instruments?: (Object | URL)[];} \\"object\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#object_fromJsonLd(doc, options); + v = await this.#object_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -15342,7 +15500,11 @@ instruments?: (Object | URL)[];} \\"object\\"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) { - v = await this.#object_fromJsonLd(obj, options); + v = await this.#object_fromJsonLd(obj, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -15563,7 +15725,11 @@ instruments?: (Object | URL)[];} \\"target\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#target_fromJsonLd(doc, options); + v = await this.#target_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -15662,7 +15828,11 @@ instruments?: (Object | URL)[];} \\"target\\"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) { - v = await this.#target_fromJsonLd(obj, options); + v = await this.#target_fromJsonLd(obj, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -15880,7 +16050,11 @@ instruments?: (Object | URL)[];} \\"result\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#result_fromJsonLd(doc, options); + v = await this.#result_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -15976,7 +16150,11 @@ instruments?: (Object | URL)[];} \\"result\\"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) { - v = await this.#result_fromJsonLd(obj, options); + v = await this.#result_fromJsonLd(obj, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -16195,7 +16373,11 @@ instruments?: (Object | URL)[];} \\"origin\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#origin_fromJsonLd(doc, options); + v = await this.#origin_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -16292,7 +16474,11 @@ instruments?: (Object | URL)[];} \\"origin\\"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) { - v = await this.#origin_fromJsonLd(obj, options); + v = await this.#origin_fromJsonLd(obj, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -16509,7 +16695,11 @@ instruments?: (Object | URL)[];} \\"instrument\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#instrument_fromJsonLd(doc, options); + v = await this.#instrument_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -16604,7 +16794,11 @@ instruments?: (Object | URL)[];} \\"instrument\\"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) { - v = await this.#instrument_fromJsonLd(obj, options); + v = await this.#instrument_fromJsonLd(obj, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -17125,7 +17319,7 @@ instruments?: (Object | URL)[];} const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _2MH19yxjn1wnHsNfa5n4JBhJzxyc_object.push(decoded); @@ -17158,7 +17352,7 @@ instruments?: (Object | URL)[];} const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _3JQCmF2Ww56Ag9EWRYoSZRDNCYtF_target.push(decoded); @@ -17191,7 +17385,7 @@ instruments?: (Object | URL)[];} const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _u4QGFbRFcYmPEKGbPv1hpBR9r5G_result.push(decoded); @@ -17224,7 +17418,7 @@ instruments?: (Object | URL)[];} const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _25zu2s3VxVujgEKqrDycjE284XQR_origin.push(decoded); @@ -17257,7 +17451,7 @@ instruments?: (Object | URL)[];} const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _3c5t2x7DYRo2shwTxpkd4kYSS5WQ_instrument.push(decoded); @@ -19316,7 +19510,11 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu \\"interactingObject\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#interactingObject_fromJsonLd(doc, options); + v = await this.#interactingObject_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -19531,7 +19729,11 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu \\"interactionTarget\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#interactionTarget_fromJsonLd(doc, options); + v = await this.#interactionTarget_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -19859,7 +20061,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject.push(decoded); @@ -19892,7 +20094,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget.push(decoded); @@ -20882,7 +21084,7 @@ canLike?: InteractionRule | null;canReply?: InteractionRule | null;canAnnounce?: const decoded = await InteractionRule.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _3JkwVLb3BNCwCWdsb5RftGAg8vyT_canLike.push(decoded); @@ -20903,7 +21105,7 @@ canLike?: InteractionRule | null;canReply?: InteractionRule | null;canAnnounce?: const decoded = await InteractionRule.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _2UBgLRi5p3DRGGvWyB227i4Qjhzd_canReply.push(decoded); @@ -20924,7 +21126,7 @@ canLike?: InteractionRule | null;canReply?: InteractionRule | null;canAnnounce?: const decoded = await InteractionRule.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _fu5nmoAj528fBQfnxhY9Daok3Vi_canAnnounce.push(decoded); @@ -20945,7 +21147,7 @@ canLike?: InteractionRule | null;canReply?: InteractionRule | null;canAnnounce?: const decoded = await InteractionRule.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _LE3zBTVacTZw2LSyLt4wVUkXeUy_canQuote.push(decoded); @@ -21641,9 +21843,9 @@ get manualApprovals(): (URL)[] { : \\"\\" ) ) - : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) + : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) ? new URL(v[\\"@id\\"]) - : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"]))); + : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"]))); if (typeof decoded === \\"undefined\\") continue; _2rFyCF14HoyNjitj9PmCzek5iSsg_automaticApproval.push(decoded); } @@ -21674,9 +21876,9 @@ get manualApprovals(): (URL)[] { : \\"\\" ) ) - : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) + : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) ? new URL(v[\\"@id\\"]) - : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"]))); + : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"]))); if (typeof decoded === \\"undefined\\") continue; _sxj8y5XMMMBWUnRYFw85MKedCMj_manualApproval.push(decoded); } @@ -22136,7 +22338,11 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu \\"interactingObject\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#interactingObject_fromJsonLd(doc, options); + v = await this.#interactingObject_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -22351,7 +22557,11 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu \\"interactionTarget\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#interactionTarget_fromJsonLd(doc, options); + v = await this.#interactionTarget_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -22679,7 +22889,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject.push(decoded); @@ -22712,7 +22922,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget.push(decoded); @@ -23488,7 +23698,11 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu \\"interactingObject\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#interactingObject_fromJsonLd(doc, options); + v = await this.#interactingObject_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -23703,7 +23917,11 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu \\"interactionTarget\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#interactionTarget_fromJsonLd(doc, options); + v = await this.#interactionTarget_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -24031,7 +24249,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject.push(decoded); @@ -24064,7 +24282,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget.push(decoded); @@ -24839,7 +25057,11 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu \\"interactingObject\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#interactingObject_fromJsonLd(doc, options); + v = await this.#interactingObject_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -25054,7 +25276,11 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu \\"interactionTarget\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#interactionTarget_fromJsonLd(doc, options); + v = await this.#interactionTarget_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -25382,7 +25608,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject.push(decoded); @@ -25415,7 +25641,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget.push(decoded); @@ -26273,9 +26499,9 @@ get endpoints(): (URL)[] { : \\"\\" ) ) - : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) + : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) ? new URL(v[\\"@id\\"]) - : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"]))); + : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"]))); if (typeof decoded === \\"undefined\\") continue; _2KM4fetG6FTJ1cphj76rzJ8Dyv7p_serviceEndpoint.push(decoded); } @@ -27459,7 +27685,7 @@ cryptosuite?: \\"eddsa-jcs-2022\\" | null;verificationMethod?: Multikey | URL | const decoded = await Multikey.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _2mHVKxqA7zncjveJrDEo3pWpMZqg_verificationMethod.push(decoded); @@ -28085,7 +28311,11 @@ owner?: Application | Group | Organization | Person | Service | URL | null;publi \\"owner\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#owner_fromJsonLd(doc, options); + v = await this.#owner_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -28956,7 +29186,11 @@ controller?: Application | Group | Organization | Person | Service | URL | null; \\"controller\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#controller_fromJsonLd(doc, options); + v = await this.#controller_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -30136,9 +30370,9 @@ action?: string | null;resourceConformsTo?: URL | null;resourceQuantity?: Measur : \\"\\" ) ) - : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) + : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) ? new URL(v[\\"@id\\"]) - : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"]))); + : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"]))); if (typeof decoded === \\"undefined\\") continue; _BBAeMUUQDwBQn6cvu3P2Csd6b6h_resourceConformsTo.push(decoded); } @@ -30158,7 +30392,7 @@ action?: string | null;resourceConformsTo?: URL | null;resourceQuantity?: Measur const decoded = await Measure.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _2dLfqTbbRiggEcMQWbHpxkQrtmrc_resourceQuantity.push(decoded); @@ -30179,7 +30413,7 @@ action?: string | null;resourceConformsTo?: URL | null;resourceQuantity?: Measur const decoded = await Measure.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _YmNSnuih3Zk4VdR5JPVnQYroLAh_availableQuantity.push(decoded); @@ -30200,7 +30434,7 @@ action?: string | null;resourceConformsTo?: URL | null;resourceQuantity?: Measur const decoded = await Measure.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _3XueAFds2NBrqNpnV8b7aC8hV72S_minimumQuantity.push(decoded); @@ -31002,7 +31236,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Intent.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _sS5LvXX8cn4c3x6ux836AwYbTyJ_publishes.push(decoded); @@ -31023,7 +31257,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Intent.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _Z4ntJgFwR9BaNTbFvkRTGNEwUwy_reciprocal.push(decoded); @@ -33389,7 +33623,11 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"publicKey\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#publicKey_fromJsonLd(doc, options); + v = await this.#publicKey_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -33482,7 +33720,11 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"publicKey\\"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) { - v = await this.#publicKey_fromJsonLd(obj, options); + v = await this.#publicKey_fromJsonLd(obj, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -33701,7 +33943,11 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"assertionMethod\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#assertionMethod_fromJsonLd(doc, options); + v = await this.#assertionMethod_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -33798,7 +34044,11 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"assertionMethod\\"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) { - v = await this.#assertionMethod_fromJsonLd(obj, options); + v = await this.#assertionMethod_fromJsonLd(obj, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -34054,7 +34304,11 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"inbox\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#inbox_fromJsonLd(doc, options); + v = await this.#inbox_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -34287,7 +34541,11 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"outbox\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#outbox_fromJsonLd(doc, options); + v = await this.#outbox_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -34506,7 +34764,11 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"following\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#following_fromJsonLd(doc, options); + v = await this.#following_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -34728,7 +34990,11 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"followers\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#followers_fromJsonLd(doc, options); + v = await this.#followers_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -34948,7 +35214,11 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"liked\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#liked_fromJsonLd(doc, options); + v = await this.#liked_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -35166,7 +35436,11 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"featured\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#featured_fromJsonLd(doc, options); + v = await this.#featured_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -35384,7 +35658,11 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"featuredTags\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#featuredTags_fromJsonLd(doc, options); + v = await this.#featuredTags_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -35600,7 +35878,11 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"streams\\"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) { - v = await this.#stream_fromJsonLd(obj, options); + v = await this.#stream_fromJsonLd(obj, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -35926,7 +36208,11 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"movedTo\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#successor_fromJsonLd(doc, options); + v = await this.#successor_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -36180,7 +36466,11 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"alsoKnownAs\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#alias_fromJsonLd(doc, options); + v = await this.#alias_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -36277,7 +36567,11 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"alsoKnownAs\\"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) { - v = await this.#alias_fromJsonLd(obj, options); + v = await this.#alias_fromJsonLd(obj, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -36496,7 +36790,11 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"service\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#service_fromJsonLd(doc, options); + v = await this.#service_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -36593,7 +36891,11 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"service\\"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) { - v = await this.#service_fromJsonLd(obj, options); + v = await this.#service_fromJsonLd(obj, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -37701,7 +38003,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await CryptographicKey.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _axq166E2eZADq34V4MYUc8KMZdC_publicKey.push(decoded); @@ -37734,7 +38036,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Multikey.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.push(decoded); @@ -37867,7 +38169,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _3yAv8jymNfNuJUDuBzJ1NQhdbAee_following.push(decoded); @@ -37900,7 +38202,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _BBCTgfphhsFzpVfKTykGSpBNwoA_followers.push(decoded); @@ -37933,7 +38235,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _3bgkPwJanyTCoVFM9ovRcus8tKkU_liked.push(decoded); @@ -37966,7 +38268,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _4N1vBJzXDf8NbBumeECQMFvKetja_featured.push(decoded); @@ -37999,7 +38301,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags.push(decoded); @@ -38032,7 +38334,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.push(decoded); @@ -38053,7 +38355,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Endpoints.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints.push(decoded); @@ -38264,7 +38566,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await DidService.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.push(decoded); @@ -39868,7 +40170,11 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu \\"quote\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#quote_fromJsonLd(doc, options); + v = await this.#quote_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -40107,7 +40413,11 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu \\"quoteAuthorization\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#quoteAuthorization_fromJsonLd(doc, options); + v = await this.#quoteAuthorization_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -40480,7 +40790,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote.push(decoded); @@ -40539,7 +40849,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await QuoteAuthorization.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization.push(decoded); @@ -42928,7 +43238,11 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu \\"current\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#current_fromJsonLd(doc, options); + v = await this.#current_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -43144,7 +43458,11 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu \\"first\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#first_fromJsonLd(doc, options); + v = await this.#first_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -43360,7 +43678,11 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu \\"last\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#last_fromJsonLd(doc, options); + v = await this.#last_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -43586,7 +43908,11 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu \\"items\\"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) { - v = await this.#item_fromJsonLd(obj, options); + v = await this.#item_fromJsonLd(obj, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -43802,7 +44128,11 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu \\"likesOf\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#likesOf_fromJsonLd(doc, options); + v = await this.#likesOf_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -44017,7 +44347,11 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu \\"sharesOf\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#sharesOf_fromJsonLd(doc, options); + v = await this.#sharesOf_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -44232,7 +44566,11 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu \\"repliesOf\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#repliesOf_fromJsonLd(doc, options); + v = await this.#repliesOf_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -44447,7 +44785,11 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu \\"inboxOf\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#inboxOf_fromJsonLd(doc, options); + v = await this.#inboxOf_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -44662,7 +45004,11 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu \\"outboxOf\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#outboxOf_fromJsonLd(doc, options); + v = await this.#outboxOf_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -44877,7 +45223,11 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu \\"followersOf\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#followersOf_fromJsonLd(doc, options); + v = await this.#followersOf_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -45092,7 +45442,11 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu \\"followingOf\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#followingOf_fromJsonLd(doc, options); + v = await this.#followingOf_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -45307,7 +45661,11 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu \\"likedOf\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#likedOf_fromJsonLd(doc, options); + v = await this.#likedOf_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -46053,7 +46411,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await CollectionPage.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _3UyUdxnyn6cDn53QKrh4MBiearma_current.push(decoded); @@ -46086,7 +46444,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await CollectionPage.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _J52RqweMe6hhv7RnLJMC8BExTE5_first.push(decoded); @@ -46119,7 +46477,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await CollectionPage.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _gyJJnyEFnuNVi1HFZKfAn3Hfn26_last.push(decoded); @@ -46195,7 +46553,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _4TB9Qd9ddtcZEpMfzbHhzafE6jaJ_likesOf.push(decoded); @@ -46228,7 +46586,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _3manzgeKiPsugpztKGiaUUwJ3ito_sharesOf.push(decoded); @@ -46261,7 +46619,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _3T3oGm3twpcQUcrnMisXQtmDZ32X_repliesOf.push(decoded); @@ -46294,7 +46652,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _2bvRkAFZjMfVD8jiUWZJr5YokSeN_inboxOf.push(decoded); @@ -46327,7 +46685,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _4AHzVZDxHjK6uEWa9UiKHGK34yYm_outboxOf.push(decoded); @@ -46360,7 +46718,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _41aoZ5M6yRUHy3Zx8q6iuZQxtopb_followersOf.push(decoded); @@ -46393,7 +46751,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _2nXT2Ah42UjEEQF5oJQ39CbKB1xj_followingOf.push(decoded); @@ -46426,7 +46784,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _2bsySzmT3qEZcrnoe3tZ5xBjXSju_likedOf.push(decoded); @@ -47106,7 +47464,11 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu \\"partOf\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#partOf_fromJsonLd(doc, options); + v = await this.#partOf_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -47320,7 +47682,11 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu \\"next\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#next_fromJsonLd(doc, options); + v = await this.#next_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -47535,7 +47901,11 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu \\"prev\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#prev_fromJsonLd(doc, options); + v = await this.#prev_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -47902,7 +48272,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _2kWgBhQKjEauxx8C6qF3ZQamK4Le_partOf.push(decoded); @@ -47935,7 +48305,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await CollectionPage.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _3BT4kQLcXhHx7TAWaNDKh8nFn9eY_next.push(decoded); @@ -47968,7 +48338,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await CollectionPage.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _3b8yG8tDNzQFFEnWhCc13G8eHooA_prev.push(decoded); @@ -49847,9 +50217,9 @@ proxyUrl?: URL | null;oauthAuthorizationEndpoint?: URL | null;oauthTokenEndpoint : \\"\\" ) ) - : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) + : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) ? new URL(v[\\"@id\\"]) - : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"]))); + : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"]))); if (typeof decoded === \\"undefined\\") continue; _2JCYDbSxEHCCLdBYed33cCETfGyR_proxyUrl.push(decoded); } @@ -49880,9 +50250,9 @@ proxyUrl?: URL | null;oauthAuthorizationEndpoint?: URL | null;oauthTokenEndpoint : \\"\\" ) ) - : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) + : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) ? new URL(v[\\"@id\\"]) - : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"]))); + : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"]))); if (typeof decoded === \\"undefined\\") continue; _25S6UmgzDead8hxL5sQFezZTAusd_oauthAuthorizationEndpoint.push(decoded); } @@ -49913,9 +50283,9 @@ proxyUrl?: URL | null;oauthAuthorizationEndpoint?: URL | null;oauthTokenEndpoint : \\"\\" ) ) - : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) + : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) ? new URL(v[\\"@id\\"]) - : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"]))); + : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"]))); if (typeof decoded === \\"undefined\\") continue; _iAMxqrSba7yBCRB1FZ5kEVdKEZ3_oauthTokenEndpoint.push(decoded); } @@ -49946,9 +50316,9 @@ proxyUrl?: URL | null;oauthAuthorizationEndpoint?: URL | null;oauthTokenEndpoint : \\"\\" ) ) - : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) + : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) ? new URL(v[\\"@id\\"]) - : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"]))); + : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"]))); if (typeof decoded === \\"undefined\\") continue; _8Bx9qN8oU7Bpt2xi6khaxWp1gMr_provideClientKey.push(decoded); } @@ -49979,9 +50349,9 @@ proxyUrl?: URL | null;oauthAuthorizationEndpoint?: URL | null;oauthTokenEndpoint : \\"\\" ) ) - : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) + : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) ? new URL(v[\\"@id\\"]) - : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"]))); + : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"]))); if (typeof decoded === \\"undefined\\") continue; _3dU7PMVQZJpsCpo2F4RQXxBXdPmS_signClientKey.push(decoded); } @@ -50012,9 +50382,9 @@ proxyUrl?: URL | null;oauthAuthorizationEndpoint?: URL | null;oauthTokenEndpoint : \\"\\" ) ) - : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) + : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) ? new URL(v[\\"@id\\"]) - : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"]))); + : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"]))); if (typeof decoded === \\"undefined\\") continue; _3JprUSDLVqqX4dwHRi37qGZZCRCc_sharedInbox.push(decoded); } @@ -52414,7 +52784,11 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"publicKey\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#publicKey_fromJsonLd(doc, options); + v = await this.#publicKey_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -52507,7 +52881,11 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"publicKey\\"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) { - v = await this.#publicKey_fromJsonLd(obj, options); + v = await this.#publicKey_fromJsonLd(obj, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -52726,7 +53104,11 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"assertionMethod\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#assertionMethod_fromJsonLd(doc, options); + v = await this.#assertionMethod_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -52823,7 +53205,11 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"assertionMethod\\"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) { - v = await this.#assertionMethod_fromJsonLd(obj, options); + v = await this.#assertionMethod_fromJsonLd(obj, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -53079,7 +53465,11 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"inbox\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#inbox_fromJsonLd(doc, options); + v = await this.#inbox_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -53312,7 +53702,11 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"outbox\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#outbox_fromJsonLd(doc, options); + v = await this.#outbox_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -53531,7 +53925,11 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"following\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#following_fromJsonLd(doc, options); + v = await this.#following_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -53753,7 +54151,11 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"followers\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#followers_fromJsonLd(doc, options); + v = await this.#followers_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -53973,7 +54375,11 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"liked\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#liked_fromJsonLd(doc, options); + v = await this.#liked_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -54191,7 +54597,11 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"featured\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#featured_fromJsonLd(doc, options); + v = await this.#featured_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -54409,7 +54819,11 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"featuredTags\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#featuredTags_fromJsonLd(doc, options); + v = await this.#featuredTags_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -54625,7 +55039,11 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"streams\\"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) { - v = await this.#stream_fromJsonLd(obj, options); + v = await this.#stream_fromJsonLd(obj, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -54951,7 +55369,11 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"movedTo\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#successor_fromJsonLd(doc, options); + v = await this.#successor_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -55205,7 +55627,11 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"alsoKnownAs\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#alias_fromJsonLd(doc, options); + v = await this.#alias_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -55302,7 +55728,11 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"alsoKnownAs\\"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) { - v = await this.#alias_fromJsonLd(obj, options); + v = await this.#alias_fromJsonLd(obj, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -55521,7 +55951,11 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"service\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#service_fromJsonLd(doc, options); + v = await this.#service_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -55618,7 +56052,11 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"service\\"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) { - v = await this.#service_fromJsonLd(obj, options); + v = await this.#service_fromJsonLd(obj, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -56726,7 +57164,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await CryptographicKey.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _axq166E2eZADq34V4MYUc8KMZdC_publicKey.push(decoded); @@ -56759,7 +57197,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Multikey.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.push(decoded); @@ -56892,7 +57330,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _3yAv8jymNfNuJUDuBzJ1NQhdbAee_following.push(decoded); @@ -56925,7 +57363,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _BBCTgfphhsFzpVfKTykGSpBNwoA_followers.push(decoded); @@ -56958,7 +57396,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _3bgkPwJanyTCoVFM9ovRcus8tKkU_liked.push(decoded); @@ -56991,7 +57429,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _4N1vBJzXDf8NbBumeECQMFvKetja_featured.push(decoded); @@ -57024,7 +57462,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags.push(decoded); @@ -57057,7 +57495,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.push(decoded); @@ -57078,7 +57516,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Endpoints.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints.push(decoded); @@ -57289,7 +57727,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await DidService.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.push(decoded); @@ -58626,7 +59064,11 @@ get names(): ((string | LanguageString))[] { \\"preview\\"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) { - v = await this.#preview_fromJsonLd(obj, options); + v = await this.#preview_fromJsonLd(obj, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -59133,9 +59575,9 @@ get names(): ((string | LanguageString))[] { : \\"\\" ) ) - : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) + : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) ? new URL(v[\\"@id\\"]) - : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"]))); + : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"]))); if (typeof decoded === \\"undefined\\") continue; _pVjLsybKQdmkjuU7MHjiVmNnuj7_href.push(decoded); } @@ -63174,7 +63616,11 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu \\"quote\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#quote_fromJsonLd(doc, options); + v = await this.#quote_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -63413,7 +63859,11 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu \\"quoteAuthorization\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#quoteAuthorization_fromJsonLd(doc, options); + v = await this.#quoteAuthorization_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -63786,7 +64236,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote.push(decoded); @@ -63845,7 +64295,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await QuoteAuthorization.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization.push(decoded); @@ -64287,7 +64737,11 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu \\"orderedItems\\"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) { - v = await this.#item_fromJsonLd(obj, options); + v = await this.#item_fromJsonLd(obj, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -65024,7 +65478,11 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu \\"orderedItems\\"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) { - v = await this.#item_fromJsonLd(obj, options); + v = await this.#item_fromJsonLd(obj, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -66696,7 +67154,11 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"publicKey\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#publicKey_fromJsonLd(doc, options); + v = await this.#publicKey_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -66789,7 +67251,11 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"publicKey\\"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) { - v = await this.#publicKey_fromJsonLd(obj, options); + v = await this.#publicKey_fromJsonLd(obj, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -67008,7 +67474,11 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"assertionMethod\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#assertionMethod_fromJsonLd(doc, options); + v = await this.#assertionMethod_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -67105,7 +67575,11 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"assertionMethod\\"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) { - v = await this.#assertionMethod_fromJsonLd(obj, options); + v = await this.#assertionMethod_fromJsonLd(obj, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -67361,7 +67835,11 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"inbox\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#inbox_fromJsonLd(doc, options); + v = await this.#inbox_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -67594,7 +68072,11 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"outbox\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#outbox_fromJsonLd(doc, options); + v = await this.#outbox_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -67813,7 +68295,11 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"following\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#following_fromJsonLd(doc, options); + v = await this.#following_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -68035,7 +68521,11 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"followers\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#followers_fromJsonLd(doc, options); + v = await this.#followers_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -68255,7 +68745,11 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"liked\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#liked_fromJsonLd(doc, options); + v = await this.#liked_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -68473,7 +68967,11 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"featured\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#featured_fromJsonLd(doc, options); + v = await this.#featured_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -68691,7 +69189,11 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"featuredTags\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#featuredTags_fromJsonLd(doc, options); + v = await this.#featuredTags_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -68907,7 +69409,11 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"streams\\"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) { - v = await this.#stream_fromJsonLd(obj, options); + v = await this.#stream_fromJsonLd(obj, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -69233,7 +69739,11 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"movedTo\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#successor_fromJsonLd(doc, options); + v = await this.#successor_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -69487,7 +69997,11 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"alsoKnownAs\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#alias_fromJsonLd(doc, options); + v = await this.#alias_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -69584,7 +70098,11 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"alsoKnownAs\\"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) { - v = await this.#alias_fromJsonLd(obj, options); + v = await this.#alias_fromJsonLd(obj, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -69803,7 +70321,11 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"service\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#service_fromJsonLd(doc, options); + v = await this.#service_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -69900,7 +70422,11 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"service\\"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) { - v = await this.#service_fromJsonLd(obj, options); + v = await this.#service_fromJsonLd(obj, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -71008,7 +71534,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await CryptographicKey.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _axq166E2eZADq34V4MYUc8KMZdC_publicKey.push(decoded); @@ -71041,7 +71567,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Multikey.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.push(decoded); @@ -71174,7 +71700,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _3yAv8jymNfNuJUDuBzJ1NQhdbAee_following.push(decoded); @@ -71207,7 +71733,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _BBCTgfphhsFzpVfKTykGSpBNwoA_followers.push(decoded); @@ -71240,7 +71766,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _3bgkPwJanyTCoVFM9ovRcus8tKkU_liked.push(decoded); @@ -71273,7 +71799,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _4N1vBJzXDf8NbBumeECQMFvKetja_featured.push(decoded); @@ -71306,7 +71832,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags.push(decoded); @@ -71339,7 +71865,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.push(decoded); @@ -71360,7 +71886,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Endpoints.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints.push(decoded); @@ -71571,7 +72097,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await DidService.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.push(decoded); @@ -73674,7 +74200,11 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"publicKey\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#publicKey_fromJsonLd(doc, options); + v = await this.#publicKey_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -73767,7 +74297,11 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"publicKey\\"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) { - v = await this.#publicKey_fromJsonLd(obj, options); + v = await this.#publicKey_fromJsonLd(obj, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -73986,7 +74520,11 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"assertionMethod\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#assertionMethod_fromJsonLd(doc, options); + v = await this.#assertionMethod_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -74083,7 +74621,11 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"assertionMethod\\"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) { - v = await this.#assertionMethod_fromJsonLd(obj, options); + v = await this.#assertionMethod_fromJsonLd(obj, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -74339,7 +74881,11 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"inbox\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#inbox_fromJsonLd(doc, options); + v = await this.#inbox_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -74572,7 +75118,11 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"outbox\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#outbox_fromJsonLd(doc, options); + v = await this.#outbox_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -74791,7 +75341,11 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"following\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#following_fromJsonLd(doc, options); + v = await this.#following_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -75013,7 +75567,11 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"followers\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#followers_fromJsonLd(doc, options); + v = await this.#followers_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -75233,7 +75791,11 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"liked\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#liked_fromJsonLd(doc, options); + v = await this.#liked_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -75451,7 +76013,11 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"featured\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#featured_fromJsonLd(doc, options); + v = await this.#featured_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -75669,7 +76235,11 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"featuredTags\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#featuredTags_fromJsonLd(doc, options); + v = await this.#featuredTags_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -75885,7 +76455,11 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"streams\\"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) { - v = await this.#stream_fromJsonLd(obj, options); + v = await this.#stream_fromJsonLd(obj, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -76211,7 +76785,11 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"movedTo\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#successor_fromJsonLd(doc, options); + v = await this.#successor_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -76465,7 +77043,11 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"alsoKnownAs\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#alias_fromJsonLd(doc, options); + v = await this.#alias_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -76562,7 +77144,11 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"alsoKnownAs\\"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) { - v = await this.#alias_fromJsonLd(obj, options); + v = await this.#alias_fromJsonLd(obj, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -76781,7 +77367,11 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"service\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#service_fromJsonLd(doc, options); + v = await this.#service_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -76878,7 +77468,11 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"service\\"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) { - v = await this.#service_fromJsonLd(obj, options); + v = await this.#service_fromJsonLd(obj, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -77986,7 +78580,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await CryptographicKey.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _axq166E2eZADq34V4MYUc8KMZdC_publicKey.push(decoded); @@ -78019,7 +78613,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Multikey.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.push(decoded); @@ -78152,7 +78746,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _3yAv8jymNfNuJUDuBzJ1NQhdbAee_following.push(decoded); @@ -78185,7 +78779,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _BBCTgfphhsFzpVfKTykGSpBNwoA_followers.push(decoded); @@ -78218,7 +78812,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _3bgkPwJanyTCoVFM9ovRcus8tKkU_liked.push(decoded); @@ -78251,7 +78845,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _4N1vBJzXDf8NbBumeECQMFvKetja_featured.push(decoded); @@ -78284,7 +78878,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags.push(decoded); @@ -78317,7 +78911,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.push(decoded); @@ -78338,7 +78932,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Endpoints.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints.push(decoded); @@ -78549,7 +79143,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await DidService.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.push(decoded); @@ -80461,7 +81055,11 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu \\"describes\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#describes_fromJsonLd(doc, options); + v = await this.#describes_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -80754,7 +81352,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _3CLQ1PLSXrhSQbTGGHuxNyaEFKM1_describes.push(decoded); @@ -81347,7 +81945,11 @@ instruments?: (Object | URL)[];exclusiveOptions?: (Object | URL)[];inclusiveOpti \\"oneOf\\"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) { - v = await this.#exclusiveOption_fromJsonLd(obj, options); + v = await this.#exclusiveOption_fromJsonLd(obj, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -81566,7 +82168,11 @@ instruments?: (Object | URL)[];exclusiveOptions?: (Object | URL)[];inclusiveOpti \\"anyOf\\"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) { - v = await this.#inclusiveOption_fromJsonLd(obj, options); + v = await this.#inclusiveOption_fromJsonLd(obj, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -81814,7 +82420,11 @@ instruments?: (Object | URL)[];exclusiveOptions?: (Object | URL)[];inclusiveOpti \\"quote\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#quote_fromJsonLd(doc, options); + v = await this.#quote_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -82053,7 +82663,11 @@ instruments?: (Object | URL)[];exclusiveOptions?: (Object | URL)[];inclusiveOpti \\"quoteAuthorization\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#quoteAuthorization_fromJsonLd(doc, options); + v = await this.#quoteAuthorization_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -82409,7 +83023,7 @@ instruments?: (Object | URL)[];exclusiveOptions?: (Object | URL)[];inclusiveOpti const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _2N5scKaVEcdYHFmfKYYacAwUhUgQ_oneOf.push(decoded); @@ -82442,7 +83056,7 @@ instruments?: (Object | URL)[];exclusiveOptions?: (Object | URL)[];inclusiveOpti const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _2mV6isMTPRKbWdLCjcpiEysq5dAY_anyOf.push(decoded); @@ -82524,7 +83138,7 @@ instruments?: (Object | URL)[];exclusiveOptions?: (Object | URL)[];inclusiveOpti const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote.push(decoded); @@ -82583,7 +83197,7 @@ instruments?: (Object | URL)[];exclusiveOptions?: (Object | URL)[];inclusiveOpti const decoded = await QuoteAuthorization.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization.push(decoded); @@ -83936,7 +84550,11 @@ relationships?: (Object | URL)[];} \\"subject\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#subject_fromJsonLd(doc, options); + v = await this.#subject_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -84151,7 +84769,11 @@ relationships?: (Object | URL)[];} \\"object\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#object_fromJsonLd(doc, options); + v = await this.#object_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -84245,7 +84867,11 @@ relationships?: (Object | URL)[];} \\"object\\"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) { - v = await this.#object_fromJsonLd(obj, options); + v = await this.#object_fromJsonLd(obj, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -84463,7 +85089,11 @@ relationships?: (Object | URL)[];} \\"relationship\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#relationship_fromJsonLd(doc, options); + v = await this.#relationship_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -84559,7 +85189,11 @@ relationships?: (Object | URL)[];} \\"relationship\\"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) { - v = await this.#relationship_fromJsonLd(obj, options); + v = await this.#relationship_fromJsonLd(obj, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -84923,7 +85557,7 @@ relationships?: (Object | URL)[];} const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _2Zqdmi46ZnDQsECS6mzwhrv3rUKq_subject.push(decoded); @@ -84956,7 +85590,7 @@ relationships?: (Object | URL)[];} const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _2MH19yxjn1wnHsNfa5n4JBhJzxyc_object.push(decoded); @@ -84989,7 +85623,7 @@ relationships?: (Object | URL)[];} const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _4Lzz89F9qipAQSGkWyX9DGWiUojG_relationship.push(decoded); @@ -86653,7 +87287,11 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"publicKey\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#publicKey_fromJsonLd(doc, options); + v = await this.#publicKey_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -86746,7 +87384,11 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"publicKey\\"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) { - v = await this.#publicKey_fromJsonLd(obj, options); + v = await this.#publicKey_fromJsonLd(obj, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -86965,7 +87607,11 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"assertionMethod\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#assertionMethod_fromJsonLd(doc, options); + v = await this.#assertionMethod_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -87062,7 +87708,11 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"assertionMethod\\"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) { - v = await this.#assertionMethod_fromJsonLd(obj, options); + v = await this.#assertionMethod_fromJsonLd(obj, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -87318,7 +87968,11 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"inbox\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#inbox_fromJsonLd(doc, options); + v = await this.#inbox_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -87551,7 +88205,11 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"outbox\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#outbox_fromJsonLd(doc, options); + v = await this.#outbox_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -87770,7 +88428,11 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"following\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#following_fromJsonLd(doc, options); + v = await this.#following_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -87992,7 +88654,11 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"followers\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#followers_fromJsonLd(doc, options); + v = await this.#followers_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -88212,7 +88878,11 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"liked\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#liked_fromJsonLd(doc, options); + v = await this.#liked_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -88430,7 +89100,11 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"featured\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#featured_fromJsonLd(doc, options); + v = await this.#featured_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -88648,7 +89322,11 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"featuredTags\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#featuredTags_fromJsonLd(doc, options); + v = await this.#featuredTags_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -88864,7 +89542,11 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"streams\\"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) { - v = await this.#stream_fromJsonLd(obj, options); + v = await this.#stream_fromJsonLd(obj, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -89190,7 +89872,11 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"movedTo\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#successor_fromJsonLd(doc, options); + v = await this.#successor_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -89444,7 +90130,11 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"alsoKnownAs\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#alias_fromJsonLd(doc, options); + v = await this.#alias_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -89541,7 +90231,11 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"alsoKnownAs\\"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) { - v = await this.#alias_fromJsonLd(obj, options); + v = await this.#alias_fromJsonLd(obj, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -89760,7 +90454,11 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"service\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#service_fromJsonLd(doc, options); + v = await this.#service_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -89857,7 +90555,11 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"service\\"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) { - v = await this.#service_fromJsonLd(obj, options); + v = await this.#service_fromJsonLd(obj, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -90965,7 +91667,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await CryptographicKey.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _axq166E2eZADq34V4MYUc8KMZdC_publicKey.push(decoded); @@ -90998,7 +91700,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Multikey.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.push(decoded); @@ -91131,7 +91833,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _3yAv8jymNfNuJUDuBzJ1NQhdbAee_following.push(decoded); @@ -91164,7 +91866,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _BBCTgfphhsFzpVfKTykGSpBNwoA_followers.push(decoded); @@ -91197,7 +91899,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _3bgkPwJanyTCoVFM9ovRcus8tKkU_liked.push(decoded); @@ -91230,7 +91932,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _4N1vBJzXDf8NbBumeECQMFvKetja_featured.push(decoded); @@ -91263,7 +91965,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags.push(decoded); @@ -91296,7 +91998,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.push(decoded); @@ -91317,7 +92019,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Endpoints.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints.push(decoded); @@ -91528,7 +92230,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await DidService.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.push(decoded); diff --git a/packages/vocab-tools/src/__snapshots__/class.test.ts.node.snap b/packages/vocab-tools/src/__snapshots__/class.test.ts.node.snap index 73d3c8b3f..43c8df6f9 100644 --- a/packages/vocab-tools/src/__snapshots__/class.test.ts.node.snap +++ b/packages/vocab-tools/src/__snapshots__/class.test.ts.node.snap @@ -26,6 +26,8 @@ import { } from \\"@fedify/vocab-runtime/temporal\\"; +import * as _ppM0 from \\"./preprocessors.ts\\"; + /** Describes an object of any kind. The Object type serves as the base type for * most of the other kinds of objects defined in the Activity Vocabulary, * including other Core types such as {@link Activity}, @@ -3668,7 +3670,6 @@ get names(): ((string | LanguageString))[] { for (const _pp_obj of _expanded) { { - const _ppM0 = await import(\\"./preprocessors.ts\\"); const _result = await _ppM0[\\"normalizeLinkToImage\\"](_pp_obj, { documentLoader, contextLoader, @@ -4002,7 +4003,6 @@ get names(): ((string | LanguageString))[] { for (const _pp_obj of _expanded) { { - const _ppM0 = await import(\\"./preprocessors.ts\\"); const _result = await _ppM0[\\"normalizeLinkToImage\\"](_pp_obj, { documentLoader, contextLoader, @@ -10600,7 +10600,7 @@ get urls(): ((URL | Link))[] { const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _3ocC3VVi88cEd5sPWL8djkZsvTN6_audience.push(decoded); @@ -10781,12 +10781,11 @@ get urls(): ((URL | Link))[] { let _handled: Image | undefined; if (_handled === undefined) { - const _ppM0 = await import(\\"./preprocessors.ts\\"); const _result = await _ppM0[\\"normalizeLinkToImage\\"](v, { documentLoader: options.documentLoader, contextLoader: options.contextLoader, tracerProvider: options.tracerProvider, - baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])), + baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])), }); if (_result instanceof Error) throw _result; if (_result !== undefined) { @@ -10812,7 +10811,7 @@ get urls(): ((URL | Link))[] { const decoded = await Image.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _33CjRLy5ujtsUrwRSCrsggvGdKuR_icon.push(decoded); @@ -10837,12 +10836,11 @@ get urls(): ((URL | Link))[] { let _handled: Image | undefined; if (_handled === undefined) { - const _ppM0 = await import(\\"./preprocessors.ts\\"); const _result = await _ppM0[\\"normalizeLinkToImage\\"](v, { documentLoader: options.documentLoader, contextLoader: options.contextLoader, tracerProvider: options.tracerProvider, - baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])), + baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])), }); if (_result instanceof Error) throw _result; if (_result !== undefined) { @@ -10868,7 +10866,7 @@ get urls(): ((URL | Link))[] { const decoded = await Image.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _3dXrUdkARxwyJLtJcYi1AJ92H41U_image.push(decoded); @@ -11052,7 +11050,7 @@ get urls(): ((URL | Link))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _7UpwM3JWcXhADcscukEehBorf6k_replies.push(decoded); @@ -11085,7 +11083,7 @@ get urls(): ((URL | Link))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _3kAfck9PcEYt2L7xug5y99YPbANs_shares.push(decoded); @@ -11118,7 +11116,7 @@ get urls(): ((URL | Link))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _S3ceDnpMdzoTRCccB9FkJWrEzYW_likes.push(decoded); @@ -11151,7 +11149,7 @@ get urls(): ((URL | Link))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _kMatyyNAuxoTD8GQMBfA5ogThMR_emojiReactions.push(decoded); @@ -11338,7 +11336,7 @@ get urls(): ((URL | Link))[] { const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _3hFbw7DTpHhq3cvVhkY8njhcsXbd_to.push(decoded); @@ -11371,7 +11369,7 @@ get urls(): ((URL | Link))[] { const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _aLZupjwL8XB7tzdLgCMXdjZ6qej_bto.push(decoded); @@ -11404,7 +11402,7 @@ get urls(): ((URL | Link))[] { const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _42a1SvBs24QSLzKcfjCyNTjW5a1g_cc.push(decoded); @@ -11437,7 +11435,7 @@ get urls(): ((URL | Link))[] { const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _3qvegKUB8YLgTXRpEf8E6JZSkz2H_bcc.push(decoded); @@ -11512,7 +11510,7 @@ get urls(): ((URL | Link))[] { const decoded = await Source.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _2ZwCFoS787v8y8bXKjMoE6MAbrEB_source.push(decoded); @@ -11545,7 +11543,7 @@ get urls(): ((URL | Link))[] { const decoded = await DataIntegrityProof.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _42rPnotok1ivQ2RNCKNbeFJgx8b8_proof.push(decoded); @@ -11566,7 +11564,7 @@ get urls(): ((URL | Link))[] { const decoded = await InteractionPolicy.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _2MHQfh2N74MMmDLDqYWFo7TxYQK2_interactionPolicy.push(decoded); @@ -11598,9 +11596,9 @@ get urls(): ((URL | Link))[] { : \\"\\" ) ) - : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) + : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) ? new URL(v[\\"@id\\"]) - : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"]))); + : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"]))); if (typeof decoded === \\"undefined\\") continue; _23YiVs2miQcEiUdn4u8SvjQKWYim_approvedBy.push(decoded); } @@ -11632,7 +11630,7 @@ get urls(): ((URL | Link))[] { const decoded = await LikeAuthorization.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _3fCeb5aXaDDd4fvkQ96BLWifBUBa_likeAuthorization.push(decoded); @@ -11665,7 +11663,7 @@ get urls(): ((URL | Link))[] { const decoded = await ReplyAuthorization.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _YA4wdUW7rYztAQ6SjhMnJCmcmtP_replyAuthorization.push(decoded); @@ -11698,7 +11696,7 @@ get urls(): ((URL | Link))[] { const decoded = await AnnounceAuthorization.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _446xEaDBs3Fz6MyzP3PSBaLupkbJ_announceAuthorization.push(decoded); @@ -13925,7 +13923,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote.push(decoded); @@ -13984,7 +13982,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await QuoteAuthorization.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization.push(decoded); @@ -17123,7 +17121,7 @@ instruments?: (Object | URL)[];} const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _2MH19yxjn1wnHsNfa5n4JBhJzxyc_object.push(decoded); @@ -17156,7 +17154,7 @@ instruments?: (Object | URL)[];} const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _3JQCmF2Ww56Ag9EWRYoSZRDNCYtF_target.push(decoded); @@ -17189,7 +17187,7 @@ instruments?: (Object | URL)[];} const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _u4QGFbRFcYmPEKGbPv1hpBR9r5G_result.push(decoded); @@ -17222,7 +17220,7 @@ instruments?: (Object | URL)[];} const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _25zu2s3VxVujgEKqrDycjE284XQR_origin.push(decoded); @@ -17255,7 +17253,7 @@ instruments?: (Object | URL)[];} const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _3c5t2x7DYRo2shwTxpkd4kYSS5WQ_instrument.push(decoded); @@ -19857,7 +19855,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject.push(decoded); @@ -19890,7 +19888,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget.push(decoded); @@ -20880,7 +20878,7 @@ canLike?: InteractionRule | null;canReply?: InteractionRule | null;canAnnounce?: const decoded = await InteractionRule.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _3JkwVLb3BNCwCWdsb5RftGAg8vyT_canLike.push(decoded); @@ -20901,7 +20899,7 @@ canLike?: InteractionRule | null;canReply?: InteractionRule | null;canAnnounce?: const decoded = await InteractionRule.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _2UBgLRi5p3DRGGvWyB227i4Qjhzd_canReply.push(decoded); @@ -20922,7 +20920,7 @@ canLike?: InteractionRule | null;canReply?: InteractionRule | null;canAnnounce?: const decoded = await InteractionRule.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _fu5nmoAj528fBQfnxhY9Daok3Vi_canAnnounce.push(decoded); @@ -20943,7 +20941,7 @@ canLike?: InteractionRule | null;canReply?: InteractionRule | null;canAnnounce?: const decoded = await InteractionRule.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _LE3zBTVacTZw2LSyLt4wVUkXeUy_canQuote.push(decoded); @@ -21639,9 +21637,9 @@ get manualApprovals(): (URL)[] { : \\"\\" ) ) - : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) + : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) ? new URL(v[\\"@id\\"]) - : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"]))); + : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"]))); if (typeof decoded === \\"undefined\\") continue; _2rFyCF14HoyNjitj9PmCzek5iSsg_automaticApproval.push(decoded); } @@ -21672,9 +21670,9 @@ get manualApprovals(): (URL)[] { : \\"\\" ) ) - : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) + : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) ? new URL(v[\\"@id\\"]) - : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"]))); + : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"]))); if (typeof decoded === \\"undefined\\") continue; _sxj8y5XMMMBWUnRYFw85MKedCMj_manualApproval.push(decoded); } @@ -22677,7 +22675,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject.push(decoded); @@ -22710,7 +22708,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget.push(decoded); @@ -24029,7 +24027,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject.push(decoded); @@ -24062,7 +24060,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget.push(decoded); @@ -25380,7 +25378,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject.push(decoded); @@ -25413,7 +25411,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget.push(decoded); @@ -26271,9 +26269,9 @@ get endpoints(): (URL)[] { : \\"\\" ) ) - : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) + : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) ? new URL(v[\\"@id\\"]) - : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"]))); + : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"]))); if (typeof decoded === \\"undefined\\") continue; _2KM4fetG6FTJ1cphj76rzJ8Dyv7p_serviceEndpoint.push(decoded); } @@ -27457,7 +27455,7 @@ cryptosuite?: \\"eddsa-jcs-2022\\" | null;verificationMethod?: Multikey | URL | const decoded = await Multikey.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _2mHVKxqA7zncjveJrDEo3pWpMZqg_verificationMethod.push(decoded); @@ -30134,9 +30132,9 @@ action?: string | null;resourceConformsTo?: URL | null;resourceQuantity?: Measur : \\"\\" ) ) - : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) + : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) ? new URL(v[\\"@id\\"]) - : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"]))); + : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"]))); if (typeof decoded === \\"undefined\\") continue; _BBAeMUUQDwBQn6cvu3P2Csd6b6h_resourceConformsTo.push(decoded); } @@ -30156,7 +30154,7 @@ action?: string | null;resourceConformsTo?: URL | null;resourceQuantity?: Measur const decoded = await Measure.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _2dLfqTbbRiggEcMQWbHpxkQrtmrc_resourceQuantity.push(decoded); @@ -30177,7 +30175,7 @@ action?: string | null;resourceConformsTo?: URL | null;resourceQuantity?: Measur const decoded = await Measure.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _YmNSnuih3Zk4VdR5JPVnQYroLAh_availableQuantity.push(decoded); @@ -30198,7 +30196,7 @@ action?: string | null;resourceConformsTo?: URL | null;resourceQuantity?: Measur const decoded = await Measure.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _3XueAFds2NBrqNpnV8b7aC8hV72S_minimumQuantity.push(decoded); @@ -31000,7 +30998,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Intent.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _sS5LvXX8cn4c3x6ux836AwYbTyJ_publishes.push(decoded); @@ -31021,7 +31019,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Intent.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _Z4ntJgFwR9BaNTbFvkRTGNEwUwy_reciprocal.push(decoded); @@ -37699,7 +37697,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await CryptographicKey.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _axq166E2eZADq34V4MYUc8KMZdC_publicKey.push(decoded); @@ -37732,7 +37730,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Multikey.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.push(decoded); @@ -37865,7 +37863,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _3yAv8jymNfNuJUDuBzJ1NQhdbAee_following.push(decoded); @@ -37898,7 +37896,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _BBCTgfphhsFzpVfKTykGSpBNwoA_followers.push(decoded); @@ -37931,7 +37929,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _3bgkPwJanyTCoVFM9ovRcus8tKkU_liked.push(decoded); @@ -37964,7 +37962,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _4N1vBJzXDf8NbBumeECQMFvKetja_featured.push(decoded); @@ -37997,7 +37995,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags.push(decoded); @@ -38030,7 +38028,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.push(decoded); @@ -38051,7 +38049,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Endpoints.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints.push(decoded); @@ -38262,7 +38260,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await DidService.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.push(decoded); @@ -40478,7 +40476,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote.push(decoded); @@ -40537,7 +40535,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await QuoteAuthorization.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization.push(decoded); @@ -46051,7 +46049,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await CollectionPage.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _3UyUdxnyn6cDn53QKrh4MBiearma_current.push(decoded); @@ -46084,7 +46082,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await CollectionPage.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _J52RqweMe6hhv7RnLJMC8BExTE5_first.push(decoded); @@ -46117,7 +46115,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await CollectionPage.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _gyJJnyEFnuNVi1HFZKfAn3Hfn26_last.push(decoded); @@ -46193,7 +46191,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _4TB9Qd9ddtcZEpMfzbHhzafE6jaJ_likesOf.push(decoded); @@ -46226,7 +46224,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _3manzgeKiPsugpztKGiaUUwJ3ito_sharesOf.push(decoded); @@ -46259,7 +46257,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _3T3oGm3twpcQUcrnMisXQtmDZ32X_repliesOf.push(decoded); @@ -46292,7 +46290,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _2bvRkAFZjMfVD8jiUWZJr5YokSeN_inboxOf.push(decoded); @@ -46325,7 +46323,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _4AHzVZDxHjK6uEWa9UiKHGK34yYm_outboxOf.push(decoded); @@ -46358,7 +46356,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _41aoZ5M6yRUHy3Zx8q6iuZQxtopb_followersOf.push(decoded); @@ -46391,7 +46389,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _2nXT2Ah42UjEEQF5oJQ39CbKB1xj_followingOf.push(decoded); @@ -46424,7 +46422,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _2bsySzmT3qEZcrnoe3tZ5xBjXSju_likedOf.push(decoded); @@ -47900,7 +47898,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _2kWgBhQKjEauxx8C6qF3ZQamK4Le_partOf.push(decoded); @@ -47933,7 +47931,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await CollectionPage.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _3BT4kQLcXhHx7TAWaNDKh8nFn9eY_next.push(decoded); @@ -47966,7 +47964,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await CollectionPage.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _3b8yG8tDNzQFFEnWhCc13G8eHooA_prev.push(decoded); @@ -49845,9 +49843,9 @@ proxyUrl?: URL | null;oauthAuthorizationEndpoint?: URL | null;oauthTokenEndpoint : \\"\\" ) ) - : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) + : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) ? new URL(v[\\"@id\\"]) - : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"]))); + : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"]))); if (typeof decoded === \\"undefined\\") continue; _2JCYDbSxEHCCLdBYed33cCETfGyR_proxyUrl.push(decoded); } @@ -49878,9 +49876,9 @@ proxyUrl?: URL | null;oauthAuthorizationEndpoint?: URL | null;oauthTokenEndpoint : \\"\\" ) ) - : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) + : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) ? new URL(v[\\"@id\\"]) - : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"]))); + : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"]))); if (typeof decoded === \\"undefined\\") continue; _25S6UmgzDead8hxL5sQFezZTAusd_oauthAuthorizationEndpoint.push(decoded); } @@ -49911,9 +49909,9 @@ proxyUrl?: URL | null;oauthAuthorizationEndpoint?: URL | null;oauthTokenEndpoint : \\"\\" ) ) - : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) + : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) ? new URL(v[\\"@id\\"]) - : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"]))); + : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"]))); if (typeof decoded === \\"undefined\\") continue; _iAMxqrSba7yBCRB1FZ5kEVdKEZ3_oauthTokenEndpoint.push(decoded); } @@ -49944,9 +49942,9 @@ proxyUrl?: URL | null;oauthAuthorizationEndpoint?: URL | null;oauthTokenEndpoint : \\"\\" ) ) - : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) + : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) ? new URL(v[\\"@id\\"]) - : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"]))); + : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"]))); if (typeof decoded === \\"undefined\\") continue; _8Bx9qN8oU7Bpt2xi6khaxWp1gMr_provideClientKey.push(decoded); } @@ -49977,9 +49975,9 @@ proxyUrl?: URL | null;oauthAuthorizationEndpoint?: URL | null;oauthTokenEndpoint : \\"\\" ) ) - : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) + : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) ? new URL(v[\\"@id\\"]) - : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"]))); + : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"]))); if (typeof decoded === \\"undefined\\") continue; _3dU7PMVQZJpsCpo2F4RQXxBXdPmS_signClientKey.push(decoded); } @@ -50010,9 +50008,9 @@ proxyUrl?: URL | null;oauthAuthorizationEndpoint?: URL | null;oauthTokenEndpoint : \\"\\" ) ) - : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) + : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) ? new URL(v[\\"@id\\"]) - : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"]))); + : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"]))); if (typeof decoded === \\"undefined\\") continue; _3JprUSDLVqqX4dwHRi37qGZZCRCc_sharedInbox.push(decoded); } @@ -56724,7 +56722,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await CryptographicKey.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _axq166E2eZADq34V4MYUc8KMZdC_publicKey.push(decoded); @@ -56757,7 +56755,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Multikey.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.push(decoded); @@ -56890,7 +56888,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _3yAv8jymNfNuJUDuBzJ1NQhdbAee_following.push(decoded); @@ -56923,7 +56921,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _BBCTgfphhsFzpVfKTykGSpBNwoA_followers.push(decoded); @@ -56956,7 +56954,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _3bgkPwJanyTCoVFM9ovRcus8tKkU_liked.push(decoded); @@ -56989,7 +56987,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _4N1vBJzXDf8NbBumeECQMFvKetja_featured.push(decoded); @@ -57022,7 +57020,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags.push(decoded); @@ -57055,7 +57053,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.push(decoded); @@ -57076,7 +57074,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Endpoints.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints.push(decoded); @@ -57287,7 +57285,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await DidService.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.push(decoded); @@ -59131,9 +59129,9 @@ get names(): ((string | LanguageString))[] { : \\"\\" ) ) - : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) + : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) ? new URL(v[\\"@id\\"]) - : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"]))); + : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"]))); if (typeof decoded === \\"undefined\\") continue; _pVjLsybKQdmkjuU7MHjiVmNnuj7_href.push(decoded); } @@ -63784,7 +63782,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote.push(decoded); @@ -63843,7 +63841,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await QuoteAuthorization.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization.push(decoded); @@ -71006,7 +71004,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await CryptographicKey.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _axq166E2eZADq34V4MYUc8KMZdC_publicKey.push(decoded); @@ -71039,7 +71037,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Multikey.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.push(decoded); @@ -71172,7 +71170,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _3yAv8jymNfNuJUDuBzJ1NQhdbAee_following.push(decoded); @@ -71205,7 +71203,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _BBCTgfphhsFzpVfKTykGSpBNwoA_followers.push(decoded); @@ -71238,7 +71236,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _3bgkPwJanyTCoVFM9ovRcus8tKkU_liked.push(decoded); @@ -71271,7 +71269,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _4N1vBJzXDf8NbBumeECQMFvKetja_featured.push(decoded); @@ -71304,7 +71302,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags.push(decoded); @@ -71337,7 +71335,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.push(decoded); @@ -71358,7 +71356,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Endpoints.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints.push(decoded); @@ -71569,7 +71567,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await DidService.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.push(decoded); @@ -77984,7 +77982,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await CryptographicKey.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _axq166E2eZADq34V4MYUc8KMZdC_publicKey.push(decoded); @@ -78017,7 +78015,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Multikey.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.push(decoded); @@ -78150,7 +78148,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _3yAv8jymNfNuJUDuBzJ1NQhdbAee_following.push(decoded); @@ -78183,7 +78181,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _BBCTgfphhsFzpVfKTykGSpBNwoA_followers.push(decoded); @@ -78216,7 +78214,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _3bgkPwJanyTCoVFM9ovRcus8tKkU_liked.push(decoded); @@ -78249,7 +78247,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _4N1vBJzXDf8NbBumeECQMFvKetja_featured.push(decoded); @@ -78282,7 +78280,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags.push(decoded); @@ -78315,7 +78313,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.push(decoded); @@ -78336,7 +78334,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Endpoints.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints.push(decoded); @@ -78547,7 +78545,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await DidService.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.push(decoded); @@ -80752,7 +80750,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _3CLQ1PLSXrhSQbTGGHuxNyaEFKM1_describes.push(decoded); @@ -82407,7 +82405,7 @@ instruments?: (Object | URL)[];exclusiveOptions?: (Object | URL)[];inclusiveOpti const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _2N5scKaVEcdYHFmfKYYacAwUhUgQ_oneOf.push(decoded); @@ -82440,7 +82438,7 @@ instruments?: (Object | URL)[];exclusiveOptions?: (Object | URL)[];inclusiveOpti const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _2mV6isMTPRKbWdLCjcpiEysq5dAY_anyOf.push(decoded); @@ -82522,7 +82520,7 @@ instruments?: (Object | URL)[];exclusiveOptions?: (Object | URL)[];inclusiveOpti const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote.push(decoded); @@ -82581,7 +82579,7 @@ instruments?: (Object | URL)[];exclusiveOptions?: (Object | URL)[];inclusiveOpti const decoded = await QuoteAuthorization.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization.push(decoded); @@ -84921,7 +84919,7 @@ relationships?: (Object | URL)[];} const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _2Zqdmi46ZnDQsECS6mzwhrv3rUKq_subject.push(decoded); @@ -84954,7 +84952,7 @@ relationships?: (Object | URL)[];} const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _2MH19yxjn1wnHsNfa5n4JBhJzxyc_object.push(decoded); @@ -84987,7 +84985,7 @@ relationships?: (Object | URL)[];} const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _4Lzz89F9qipAQSGkWyX9DGWiUojG_relationship.push(decoded); @@ -90963,7 +90961,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await CryptographicKey.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _axq166E2eZADq34V4MYUc8KMZdC_publicKey.push(decoded); @@ -90996,7 +90994,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Multikey.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.push(decoded); @@ -91129,7 +91127,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _3yAv8jymNfNuJUDuBzJ1NQhdbAee_following.push(decoded); @@ -91162,7 +91160,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _BBCTgfphhsFzpVfKTykGSpBNwoA_followers.push(decoded); @@ -91195,7 +91193,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _3bgkPwJanyTCoVFM9ovRcus8tKkU_liked.push(decoded); @@ -91228,7 +91226,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _4N1vBJzXDf8NbBumeECQMFvKetja_featured.push(decoded); @@ -91261,7 +91259,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags.push(decoded); @@ -91294,7 +91292,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.push(decoded); @@ -91315,7 +91313,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Endpoints.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints.push(decoded); @@ -91526,7 +91524,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await DidService.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.push(decoded); diff --git a/packages/vocab-tools/src/__snapshots__/class.test.ts.snap b/packages/vocab-tools/src/__snapshots__/class.test.ts.snap index a13c68e6f..6b58c59a4 100644 --- a/packages/vocab-tools/src/__snapshots__/class.test.ts.snap +++ b/packages/vocab-tools/src/__snapshots__/class.test.ts.snap @@ -28,6 +28,8 @@ import { } from "@fedify/vocab-runtime/temporal"; +import * as _ppM0 from "./preprocessors.ts"; + /** Describes an object of any kind. The Object type serves as the base type for * most of the other kinds of objects defined in the Activity Vocabulary, * including other Core types such as {@link Activity}, @@ -3670,7 +3672,6 @@ get names(): ((string | LanguageString))[] { for (const _pp_obj of _expanded) { { - const _ppM0 = await import("./preprocessors.ts"); const _result = await _ppM0["normalizeLinkToImage"](_pp_obj, { documentLoader, contextLoader, @@ -4004,7 +4005,6 @@ get names(): ((string | LanguageString))[] { for (const _pp_obj of _expanded) { { - const _ppM0 = await import("./preprocessors.ts"); const _result = await _ppM0["normalizeLinkToImage"](_pp_obj, { documentLoader, contextLoader, @@ -10602,7 +10602,7 @@ get urls(): ((URL | Link))[] { const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _3ocC3VVi88cEd5sPWL8djkZsvTN6_audience.push(decoded); @@ -10783,12 +10783,11 @@ get urls(): ((URL | Link))[] { let _handled: Image | undefined; if (_handled === undefined) { - const _ppM0 = await import("./preprocessors.ts"); const _result = await _ppM0["normalizeLinkToImage"](v, { documentLoader: options.documentLoader, contextLoader: options.contextLoader, tracerProvider: options.tracerProvider, - baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])), + baseUrl: (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"])), }); if (_result instanceof Error) throw _result; if (_result !== undefined) { @@ -10814,7 +10813,7 @@ get urls(): ((URL | Link))[] { const decoded = await Image.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _33CjRLy5ujtsUrwRSCrsggvGdKuR_icon.push(decoded); @@ -10839,12 +10838,11 @@ get urls(): ((URL | Link))[] { let _handled: Image | undefined; if (_handled === undefined) { - const _ppM0 = await import("./preprocessors.ts"); const _result = await _ppM0["normalizeLinkToImage"](v, { documentLoader: options.documentLoader, contextLoader: options.contextLoader, tracerProvider: options.tracerProvider, - baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])), + baseUrl: (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"])), }); if (_result instanceof Error) throw _result; if (_result !== undefined) { @@ -10870,7 +10868,7 @@ get urls(): ((URL | Link))[] { const decoded = await Image.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _3dXrUdkARxwyJLtJcYi1AJ92H41U_image.push(decoded); @@ -11054,7 +11052,7 @@ get urls(): ((URL | Link))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _7UpwM3JWcXhADcscukEehBorf6k_replies.push(decoded); @@ -11087,7 +11085,7 @@ get urls(): ((URL | Link))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _3kAfck9PcEYt2L7xug5y99YPbANs_shares.push(decoded); @@ -11120,7 +11118,7 @@ get urls(): ((URL | Link))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _S3ceDnpMdzoTRCccB9FkJWrEzYW_likes.push(decoded); @@ -11153,7 +11151,7 @@ get urls(): ((URL | Link))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _kMatyyNAuxoTD8GQMBfA5ogThMR_emojiReactions.push(decoded); @@ -11340,7 +11338,7 @@ get urls(): ((URL | Link))[] { const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _3hFbw7DTpHhq3cvVhkY8njhcsXbd_to.push(decoded); @@ -11373,7 +11371,7 @@ get urls(): ((URL | Link))[] { const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _aLZupjwL8XB7tzdLgCMXdjZ6qej_bto.push(decoded); @@ -11406,7 +11404,7 @@ get urls(): ((URL | Link))[] { const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _42a1SvBs24QSLzKcfjCyNTjW5a1g_cc.push(decoded); @@ -11439,7 +11437,7 @@ get urls(): ((URL | Link))[] { const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _3qvegKUB8YLgTXRpEf8E6JZSkz2H_bcc.push(decoded); @@ -11514,7 +11512,7 @@ get urls(): ((URL | Link))[] { const decoded = await Source.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _2ZwCFoS787v8y8bXKjMoE6MAbrEB_source.push(decoded); @@ -11547,7 +11545,7 @@ get urls(): ((URL | Link))[] { const decoded = await DataIntegrityProof.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _42rPnotok1ivQ2RNCKNbeFJgx8b8_proof.push(decoded); @@ -11568,7 +11566,7 @@ get urls(): ((URL | Link))[] { const decoded = await InteractionPolicy.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _2MHQfh2N74MMmDLDqYWFo7TxYQK2_interactionPolicy.push(decoded); @@ -11600,9 +11598,9 @@ get urls(): ((URL | Link))[] { : "" ) ) - : URL.canParse(v["@id"]) && (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) + : URL.canParse(v["@id"]) && (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"])) ? new URL(v["@id"]) - : new URL(v["@id"], (values["@id"] == null ? options.baseUrl : new URL(values["@id"]))); + : new URL(v["@id"], (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"]))); if (typeof decoded === "undefined") continue; _23YiVs2miQcEiUdn4u8SvjQKWYim_approvedBy.push(decoded); } @@ -11634,7 +11632,7 @@ get urls(): ((URL | Link))[] { const decoded = await LikeAuthorization.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _3fCeb5aXaDDd4fvkQ96BLWifBUBa_likeAuthorization.push(decoded); @@ -11667,7 +11665,7 @@ get urls(): ((URL | Link))[] { const decoded = await ReplyAuthorization.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _YA4wdUW7rYztAQ6SjhMnJCmcmtP_replyAuthorization.push(decoded); @@ -11700,7 +11698,7 @@ get urls(): ((URL | Link))[] { const decoded = await AnnounceAuthorization.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _446xEaDBs3Fz6MyzP3PSBaLupkbJ_announceAuthorization.push(decoded); @@ -13927,7 +13925,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote.push(decoded); @@ -13986,7 +13984,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await QuoteAuthorization.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization.push(decoded); @@ -17125,7 +17123,7 @@ instruments?: (Object | URL)[];} const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _2MH19yxjn1wnHsNfa5n4JBhJzxyc_object.push(decoded); @@ -17158,7 +17156,7 @@ instruments?: (Object | URL)[];} const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _3JQCmF2Ww56Ag9EWRYoSZRDNCYtF_target.push(decoded); @@ -17191,7 +17189,7 @@ instruments?: (Object | URL)[];} const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _u4QGFbRFcYmPEKGbPv1hpBR9r5G_result.push(decoded); @@ -17224,7 +17222,7 @@ instruments?: (Object | URL)[];} const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _25zu2s3VxVujgEKqrDycjE284XQR_origin.push(decoded); @@ -17257,7 +17255,7 @@ instruments?: (Object | URL)[];} const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _3c5t2x7DYRo2shwTxpkd4kYSS5WQ_instrument.push(decoded); @@ -19859,7 +19857,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject.push(decoded); @@ -19892,7 +19890,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget.push(decoded); @@ -20882,7 +20880,7 @@ canLike?: InteractionRule | null;canReply?: InteractionRule | null;canAnnounce?: const decoded = await InteractionRule.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _3JkwVLb3BNCwCWdsb5RftGAg8vyT_canLike.push(decoded); @@ -20903,7 +20901,7 @@ canLike?: InteractionRule | null;canReply?: InteractionRule | null;canAnnounce?: const decoded = await InteractionRule.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _2UBgLRi5p3DRGGvWyB227i4Qjhzd_canReply.push(decoded); @@ -20924,7 +20922,7 @@ canLike?: InteractionRule | null;canReply?: InteractionRule | null;canAnnounce?: const decoded = await InteractionRule.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _fu5nmoAj528fBQfnxhY9Daok3Vi_canAnnounce.push(decoded); @@ -20945,7 +20943,7 @@ canLike?: InteractionRule | null;canReply?: InteractionRule | null;canAnnounce?: const decoded = await InteractionRule.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _LE3zBTVacTZw2LSyLt4wVUkXeUy_canQuote.push(decoded); @@ -21641,9 +21639,9 @@ get manualApprovals(): (URL)[] { : "" ) ) - : URL.canParse(v["@id"]) && (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) + : URL.canParse(v["@id"]) && (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"])) ? new URL(v["@id"]) - : new URL(v["@id"], (values["@id"] == null ? options.baseUrl : new URL(values["@id"]))); + : new URL(v["@id"], (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"]))); if (typeof decoded === "undefined") continue; _2rFyCF14HoyNjitj9PmCzek5iSsg_automaticApproval.push(decoded); } @@ -21674,9 +21672,9 @@ get manualApprovals(): (URL)[] { : "" ) ) - : URL.canParse(v["@id"]) && (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) + : URL.canParse(v["@id"]) && (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"])) ? new URL(v["@id"]) - : new URL(v["@id"], (values["@id"] == null ? options.baseUrl : new URL(values["@id"]))); + : new URL(v["@id"], (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"]))); if (typeof decoded === "undefined") continue; _sxj8y5XMMMBWUnRYFw85MKedCMj_manualApproval.push(decoded); } @@ -22679,7 +22677,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject.push(decoded); @@ -22712,7 +22710,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget.push(decoded); @@ -24031,7 +24029,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject.push(decoded); @@ -24064,7 +24062,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget.push(decoded); @@ -25382,7 +25380,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject.push(decoded); @@ -25415,7 +25413,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget.push(decoded); @@ -26273,9 +26271,9 @@ get endpoints(): (URL)[] { : "" ) ) - : URL.canParse(v["@id"]) && (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) + : URL.canParse(v["@id"]) && (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"])) ? new URL(v["@id"]) - : new URL(v["@id"], (values["@id"] == null ? options.baseUrl : new URL(values["@id"]))); + : new URL(v["@id"], (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"]))); if (typeof decoded === "undefined") continue; _2KM4fetG6FTJ1cphj76rzJ8Dyv7p_serviceEndpoint.push(decoded); } @@ -27459,7 +27457,7 @@ cryptosuite?: "eddsa-jcs-2022" | null;verificationMethod?: Multikey | URL | null const decoded = await Multikey.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _2mHVKxqA7zncjveJrDEo3pWpMZqg_verificationMethod.push(decoded); @@ -30136,9 +30134,9 @@ action?: string | null;resourceConformsTo?: URL | null;resourceQuantity?: Measur : "" ) ) - : URL.canParse(v["@id"]) && (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) + : URL.canParse(v["@id"]) && (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"])) ? new URL(v["@id"]) - : new URL(v["@id"], (values["@id"] == null ? options.baseUrl : new URL(values["@id"]))); + : new URL(v["@id"], (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"]))); if (typeof decoded === "undefined") continue; _BBAeMUUQDwBQn6cvu3P2Csd6b6h_resourceConformsTo.push(decoded); } @@ -30158,7 +30156,7 @@ action?: string | null;resourceConformsTo?: URL | null;resourceQuantity?: Measur const decoded = await Measure.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _2dLfqTbbRiggEcMQWbHpxkQrtmrc_resourceQuantity.push(decoded); @@ -30179,7 +30177,7 @@ action?: string | null;resourceConformsTo?: URL | null;resourceQuantity?: Measur const decoded = await Measure.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _YmNSnuih3Zk4VdR5JPVnQYroLAh_availableQuantity.push(decoded); @@ -30200,7 +30198,7 @@ action?: string | null;resourceConformsTo?: URL | null;resourceQuantity?: Measur const decoded = await Measure.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _3XueAFds2NBrqNpnV8b7aC8hV72S_minimumQuantity.push(decoded); @@ -31002,7 +31000,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Intent.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _sS5LvXX8cn4c3x6ux836AwYbTyJ_publishes.push(decoded); @@ -31023,7 +31021,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Intent.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _Z4ntJgFwR9BaNTbFvkRTGNEwUwy_reciprocal.push(decoded); @@ -37701,7 +37699,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await CryptographicKey.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _axq166E2eZADq34V4MYUc8KMZdC_publicKey.push(decoded); @@ -37734,7 +37732,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Multikey.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.push(decoded); @@ -37867,7 +37865,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _3yAv8jymNfNuJUDuBzJ1NQhdbAee_following.push(decoded); @@ -37900,7 +37898,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _BBCTgfphhsFzpVfKTykGSpBNwoA_followers.push(decoded); @@ -37933,7 +37931,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _3bgkPwJanyTCoVFM9ovRcus8tKkU_liked.push(decoded); @@ -37966,7 +37964,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _4N1vBJzXDf8NbBumeECQMFvKetja_featured.push(decoded); @@ -37999,7 +37997,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags.push(decoded); @@ -38032,7 +38030,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.push(decoded); @@ -38053,7 +38051,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Endpoints.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints.push(decoded); @@ -38264,7 +38262,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await DidService.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.push(decoded); @@ -40480,7 +40478,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote.push(decoded); @@ -40539,7 +40537,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await QuoteAuthorization.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization.push(decoded); @@ -46053,7 +46051,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await CollectionPage.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _3UyUdxnyn6cDn53QKrh4MBiearma_current.push(decoded); @@ -46086,7 +46084,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await CollectionPage.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _J52RqweMe6hhv7RnLJMC8BExTE5_first.push(decoded); @@ -46119,7 +46117,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await CollectionPage.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _gyJJnyEFnuNVi1HFZKfAn3Hfn26_last.push(decoded); @@ -46195,7 +46193,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _4TB9Qd9ddtcZEpMfzbHhzafE6jaJ_likesOf.push(decoded); @@ -46228,7 +46226,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _3manzgeKiPsugpztKGiaUUwJ3ito_sharesOf.push(decoded); @@ -46261,7 +46259,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _3T3oGm3twpcQUcrnMisXQtmDZ32X_repliesOf.push(decoded); @@ -46294,7 +46292,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _2bvRkAFZjMfVD8jiUWZJr5YokSeN_inboxOf.push(decoded); @@ -46327,7 +46325,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _4AHzVZDxHjK6uEWa9UiKHGK34yYm_outboxOf.push(decoded); @@ -46360,7 +46358,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _41aoZ5M6yRUHy3Zx8q6iuZQxtopb_followersOf.push(decoded); @@ -46393,7 +46391,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _2nXT2Ah42UjEEQF5oJQ39CbKB1xj_followingOf.push(decoded); @@ -46426,7 +46424,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _2bsySzmT3qEZcrnoe3tZ5xBjXSju_likedOf.push(decoded); @@ -47902,7 +47900,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _2kWgBhQKjEauxx8C6qF3ZQamK4Le_partOf.push(decoded); @@ -47935,7 +47933,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await CollectionPage.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _3BT4kQLcXhHx7TAWaNDKh8nFn9eY_next.push(decoded); @@ -47968,7 +47966,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await CollectionPage.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _3b8yG8tDNzQFFEnWhCc13G8eHooA_prev.push(decoded); @@ -49847,9 +49845,9 @@ proxyUrl?: URL | null;oauthAuthorizationEndpoint?: URL | null;oauthTokenEndpoint : "" ) ) - : URL.canParse(v["@id"]) && (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) + : URL.canParse(v["@id"]) && (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"])) ? new URL(v["@id"]) - : new URL(v["@id"], (values["@id"] == null ? options.baseUrl : new URL(values["@id"]))); + : new URL(v["@id"], (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"]))); if (typeof decoded === "undefined") continue; _2JCYDbSxEHCCLdBYed33cCETfGyR_proxyUrl.push(decoded); } @@ -49880,9 +49878,9 @@ proxyUrl?: URL | null;oauthAuthorizationEndpoint?: URL | null;oauthTokenEndpoint : "" ) ) - : URL.canParse(v["@id"]) && (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) + : URL.canParse(v["@id"]) && (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"])) ? new URL(v["@id"]) - : new URL(v["@id"], (values["@id"] == null ? options.baseUrl : new URL(values["@id"]))); + : new URL(v["@id"], (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"]))); if (typeof decoded === "undefined") continue; _25S6UmgzDead8hxL5sQFezZTAusd_oauthAuthorizationEndpoint.push(decoded); } @@ -49913,9 +49911,9 @@ proxyUrl?: URL | null;oauthAuthorizationEndpoint?: URL | null;oauthTokenEndpoint : "" ) ) - : URL.canParse(v["@id"]) && (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) + : URL.canParse(v["@id"]) && (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"])) ? new URL(v["@id"]) - : new URL(v["@id"], (values["@id"] == null ? options.baseUrl : new URL(values["@id"]))); + : new URL(v["@id"], (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"]))); if (typeof decoded === "undefined") continue; _iAMxqrSba7yBCRB1FZ5kEVdKEZ3_oauthTokenEndpoint.push(decoded); } @@ -49946,9 +49944,9 @@ proxyUrl?: URL | null;oauthAuthorizationEndpoint?: URL | null;oauthTokenEndpoint : "" ) ) - : URL.canParse(v["@id"]) && (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) + : URL.canParse(v["@id"]) && (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"])) ? new URL(v["@id"]) - : new URL(v["@id"], (values["@id"] == null ? options.baseUrl : new URL(values["@id"]))); + : new URL(v["@id"], (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"]))); if (typeof decoded === "undefined") continue; _8Bx9qN8oU7Bpt2xi6khaxWp1gMr_provideClientKey.push(decoded); } @@ -49979,9 +49977,9 @@ proxyUrl?: URL | null;oauthAuthorizationEndpoint?: URL | null;oauthTokenEndpoint : "" ) ) - : URL.canParse(v["@id"]) && (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) + : URL.canParse(v["@id"]) && (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"])) ? new URL(v["@id"]) - : new URL(v["@id"], (values["@id"] == null ? options.baseUrl : new URL(values["@id"]))); + : new URL(v["@id"], (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"]))); if (typeof decoded === "undefined") continue; _3dU7PMVQZJpsCpo2F4RQXxBXdPmS_signClientKey.push(decoded); } @@ -50012,9 +50010,9 @@ proxyUrl?: URL | null;oauthAuthorizationEndpoint?: URL | null;oauthTokenEndpoint : "" ) ) - : URL.canParse(v["@id"]) && (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) + : URL.canParse(v["@id"]) && (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"])) ? new URL(v["@id"]) - : new URL(v["@id"], (values["@id"] == null ? options.baseUrl : new URL(values["@id"]))); + : new URL(v["@id"], (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"]))); if (typeof decoded === "undefined") continue; _3JprUSDLVqqX4dwHRi37qGZZCRCc_sharedInbox.push(decoded); } @@ -56726,7 +56724,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await CryptographicKey.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _axq166E2eZADq34V4MYUc8KMZdC_publicKey.push(decoded); @@ -56759,7 +56757,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Multikey.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.push(decoded); @@ -56892,7 +56890,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _3yAv8jymNfNuJUDuBzJ1NQhdbAee_following.push(decoded); @@ -56925,7 +56923,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _BBCTgfphhsFzpVfKTykGSpBNwoA_followers.push(decoded); @@ -56958,7 +56956,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _3bgkPwJanyTCoVFM9ovRcus8tKkU_liked.push(decoded); @@ -56991,7 +56989,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _4N1vBJzXDf8NbBumeECQMFvKetja_featured.push(decoded); @@ -57024,7 +57022,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags.push(decoded); @@ -57057,7 +57055,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.push(decoded); @@ -57078,7 +57076,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Endpoints.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints.push(decoded); @@ -57289,7 +57287,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await DidService.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.push(decoded); @@ -59133,9 +59131,9 @@ get names(): ((string | LanguageString))[] { : "" ) ) - : URL.canParse(v["@id"]) && (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) + : URL.canParse(v["@id"]) && (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"])) ? new URL(v["@id"]) - : new URL(v["@id"], (values["@id"] == null ? options.baseUrl : new URL(values["@id"]))); + : new URL(v["@id"], (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"]))); if (typeof decoded === "undefined") continue; _pVjLsybKQdmkjuU7MHjiVmNnuj7_href.push(decoded); } @@ -63786,7 +63784,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote.push(decoded); @@ -63845,7 +63843,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await QuoteAuthorization.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization.push(decoded); @@ -71008,7 +71006,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await CryptographicKey.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _axq166E2eZADq34V4MYUc8KMZdC_publicKey.push(decoded); @@ -71041,7 +71039,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Multikey.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.push(decoded); @@ -71174,7 +71172,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _3yAv8jymNfNuJUDuBzJ1NQhdbAee_following.push(decoded); @@ -71207,7 +71205,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _BBCTgfphhsFzpVfKTykGSpBNwoA_followers.push(decoded); @@ -71240,7 +71238,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _3bgkPwJanyTCoVFM9ovRcus8tKkU_liked.push(decoded); @@ -71273,7 +71271,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _4N1vBJzXDf8NbBumeECQMFvKetja_featured.push(decoded); @@ -71306,7 +71304,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags.push(decoded); @@ -71339,7 +71337,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.push(decoded); @@ -71360,7 +71358,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Endpoints.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints.push(decoded); @@ -71571,7 +71569,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await DidService.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.push(decoded); @@ -77986,7 +77984,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await CryptographicKey.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _axq166E2eZADq34V4MYUc8KMZdC_publicKey.push(decoded); @@ -78019,7 +78017,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Multikey.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.push(decoded); @@ -78152,7 +78150,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _3yAv8jymNfNuJUDuBzJ1NQhdbAee_following.push(decoded); @@ -78185,7 +78183,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _BBCTgfphhsFzpVfKTykGSpBNwoA_followers.push(decoded); @@ -78218,7 +78216,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _3bgkPwJanyTCoVFM9ovRcus8tKkU_liked.push(decoded); @@ -78251,7 +78249,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _4N1vBJzXDf8NbBumeECQMFvKetja_featured.push(decoded); @@ -78284,7 +78282,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags.push(decoded); @@ -78317,7 +78315,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.push(decoded); @@ -78338,7 +78336,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Endpoints.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints.push(decoded); @@ -78549,7 +78547,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await DidService.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.push(decoded); @@ -80754,7 +80752,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _3CLQ1PLSXrhSQbTGGHuxNyaEFKM1_describes.push(decoded); @@ -82409,7 +82407,7 @@ instruments?: (Object | URL)[];exclusiveOptions?: (Object | URL)[];inclusiveOpti const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _2N5scKaVEcdYHFmfKYYacAwUhUgQ_oneOf.push(decoded); @@ -82442,7 +82440,7 @@ instruments?: (Object | URL)[];exclusiveOptions?: (Object | URL)[];inclusiveOpti const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _2mV6isMTPRKbWdLCjcpiEysq5dAY_anyOf.push(decoded); @@ -82524,7 +82522,7 @@ instruments?: (Object | URL)[];exclusiveOptions?: (Object | URL)[];inclusiveOpti const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote.push(decoded); @@ -82583,7 +82581,7 @@ instruments?: (Object | URL)[];exclusiveOptions?: (Object | URL)[];inclusiveOpti const decoded = await QuoteAuthorization.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization.push(decoded); @@ -84923,7 +84921,7 @@ relationships?: (Object | URL)[];} const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _2Zqdmi46ZnDQsECS6mzwhrv3rUKq_subject.push(decoded); @@ -84956,7 +84954,7 @@ relationships?: (Object | URL)[];} const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _2MH19yxjn1wnHsNfa5n4JBhJzxyc_object.push(decoded); @@ -84989,7 +84987,7 @@ relationships?: (Object | URL)[];} const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _4Lzz89F9qipAQSGkWyX9DGWiUojG_relationship.push(decoded); @@ -90965,7 +90963,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await CryptographicKey.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _axq166E2eZADq34V4MYUc8KMZdC_publicKey.push(decoded); @@ -90998,7 +90996,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Multikey.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.push(decoded); @@ -91131,7 +91129,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _3yAv8jymNfNuJUDuBzJ1NQhdbAee_following.push(decoded); @@ -91164,7 +91162,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _BBCTgfphhsFzpVfKTykGSpBNwoA_followers.push(decoded); @@ -91197,7 +91195,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _3bgkPwJanyTCoVFM9ovRcus8tKkU_liked.push(decoded); @@ -91230,7 +91228,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _4N1vBJzXDf8NbBumeECQMFvKetja_featured.push(decoded); @@ -91263,7 +91261,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags.push(decoded); @@ -91296,7 +91294,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.push(decoded); @@ -91317,7 +91315,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Endpoints.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints.push(decoded); @@ -91528,7 +91526,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await DidService.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.push(decoded); diff --git a/packages/vocab-tools/src/class.ts b/packages/vocab-tools/src/class.ts index 80233bf75..1bbd74f7f 100644 --- a/packages/vocab-tools/src/class.ts +++ b/packages/vocab-tools/src/class.ts @@ -37,6 +37,7 @@ export function sortTopologically(types: Record): string[] { async function* generateClass( typeUri: string, types: Record, + moduleVarNames: ReadonlyMap, ): AsyncIterable { const type = types[typeUri]; yield `/** ${type.description.replaceAll("\n", "\n * ")}\n */\n`; @@ -99,9 +100,13 @@ async function* generateClass( for await (const code of generateFields(typeUri, types)) yield code; for await (const code of generateConstructor(typeUri, types)) yield code; for await (const code of generateCloner(typeUri, types)) yield code; - for await (const code of generateProperties(typeUri, types)) yield code; + for await (const code of generateProperties(typeUri, types, moduleVarNames)) { + yield code; + } for await (const code of generateEncoder(typeUri, types)) yield code; - for await (const code of generateDecoder(typeUri, types)) yield code; + for await (const code of generateDecoder(typeUri, types, moduleVarNames)) { + yield code; + } for await (const code of generateInspector(typeUri, types)) yield code; yield "}\n\n"; for await (const code of generateInspectorPostClass(typeUri, types)) { @@ -197,9 +202,27 @@ export async function* generateClasses( isTemporalInstant, } from "@fedify/vocab-runtime/temporal";\n`; yield "\n\n"; + const moduleVarNames = new Map(); const sorted = sortTopologically(types); for (const typeUri of sorted) { - for await (const code of generateClass(typeUri, types)) yield code; + for (const property of types[typeUri].properties) { + if (property.preprocessors == null) continue; + for (const pp of property.preprocessors) { + if (!moduleVarNames.has(pp.module)) { + const name = `_ppM${moduleVarNames.size}`; + moduleVarNames.set(pp.module, name); + } + } + } + } + for (const [modulePath, varName] of moduleVarNames) { + yield `import * as ${varName} from ${JSON.stringify(modulePath)};\n`; + } + if (moduleVarNames.size > 0) yield "\n"; + for (const typeUri of sorted) { + for await (const code of generateClass(typeUri, types, moduleVarNames)) { + yield code; + } } for (const code of generateEntityTypeHelpers(sorted, types)) yield code; } diff --git a/packages/vocab-tools/src/codec.ts b/packages/vocab-tools/src/codec.ts index 850a9ab84..64643240d 100644 --- a/packages/vocab-tools/src/codec.ts +++ b/packages/vocab-tools/src/codec.ts @@ -19,6 +19,7 @@ function* generatePreprocessorBlock( rangeTypeName: string, variable: string, baseUrlExpr: string, + moduleVarNames: ReadonlyMap, ): Iterable { if (property.preprocessors == null || property.preprocessors.length === 0) { return; @@ -27,14 +28,12 @@ function* generatePreprocessorBlock( { let _handled: ${rangeTypeName} | undefined; `; - let moduleIndex = 0; for (const pp of property.preprocessors) { + const varName = moduleVarNames.get(pp.module); + if (varName == null) continue; yield ` if (_handled === undefined) { - const _ppM${moduleIndex} = await import(${JSON.stringify(pp.module)}); - const _result = await _ppM${moduleIndex}[${ - JSON.stringify(pp.function) - }](v, { + const _result = await ${varName}[${JSON.stringify(pp.function)}](v, { documentLoader: options.documentLoader, contextLoader: options.contextLoader, tracerProvider: options.tracerProvider, @@ -46,7 +45,6 @@ function* generatePreprocessorBlock( } } `; - moduleIndex++; } yield ` if (_handled !== undefined) { @@ -315,6 +313,7 @@ export async function* generateEncoder( export async function* generateDecoder( typeUri: string, types: Record, + moduleVarNames: ReadonlyMap, ): AsyncIterable { const type = types[typeUri]; yield ` @@ -474,7 +473,8 @@ export async function* generateDecoder( property, getTypeNames(property.range, types), variable, - `(values["@id"] == null ? options.baseUrl : new URL(values["@id"]))`, + `(values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"]))`, + moduleVarNames, ); if (!areAllScalarTypes(property.range, types)) { yield ` @@ -497,7 +497,7 @@ export async function* generateDecoder( types, "v", "options", - `(values["@id"] == null ? options.baseUrl : new URL(values["@id"]))`, + `(values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"]))`, ) }; if (typeof decoded === "undefined") continue; diff --git a/packages/vocab-tools/src/property.ts b/packages/vocab-tools/src/property.ts index ddbee0244..96c8f4766 100644 --- a/packages/vocab-tools/src/property.ts +++ b/packages/vocab-tools/src/property.ts @@ -26,6 +26,7 @@ async function* generateProperty( type: TypeSchema, property: PropertySchema, types: Record, + moduleVarNames: ReadonlyMap, ): AsyncIterable { const override = emitOverride(type.uri, types, property); const doc = `\n/** ${property.description.replaceAll("\n", "\n * ")}\n */\n`; @@ -176,14 +177,12 @@ async function* generateProperty( }); for (const _pp_obj of _expanded) { `; - let moduleIndex = 0; for (const pp of property.preprocessors) { + const varName = moduleVarNames.get(pp.module); + if (varName == null) continue; yield ` { - const _ppM${moduleIndex} = await import(${ - JSON.stringify(pp.module) - }); - const _result = await _ppM${moduleIndex}[${ + const _result = await ${varName}[${ JSON.stringify(pp.function) }](_pp_obj, { documentLoader, @@ -197,7 +196,6 @@ async function* generateProperty( }; } `; - moduleIndex++; } yield ` } @@ -289,7 +287,11 @@ async function* generateProperty( ${JSON.stringify(property.compactName)}]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === "object" && "@context" in doc) { - v = await this.#${property.singularName}_fromJsonLd(doc, options); + v = await this.#${property.singularName}_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } `; @@ -388,7 +390,11 @@ async function* generateProperty( ${JSON.stringify(property.compactName)}]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === "object" && "@context" in obj) { - v = await this.#${property.singularName}_fromJsonLd(obj, options); + v = await this.#${property.singularName}_fromJsonLd(obj, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } `; @@ -427,9 +433,10 @@ async function* generateProperty( export async function* generateProperties( typeUri: string, types: Record, + moduleVarNames: ReadonlyMap, ): AsyncIterable { const type = types[typeUri]; for (const property of type.properties) { - yield* generateProperty(type, property, types); + yield* generateProperty(type, property, types, moduleVarNames); } } diff --git a/packages/vocab-tools/src/schema.yaml b/packages/vocab-tools/src/schema.yaml index 6927df8b9..20330ddf8 100644 --- a/packages/vocab-tools/src/schema.yaml +++ b/packages/vocab-tools/src/schema.yaml @@ -132,6 +132,7 @@ $defs: Module specifier resolved from the generated vocabulary source file. type: string + minLength: 1 function: description: The name of the exported function in the module. type: string From 3152298dfbfafc243ca03afed1bab08721daa15e Mon Sep 17 00:00:00 2001 From: Hong Minhee Date: Sat, 6 Jun 2026 00:15:15 +0900 Subject: [PATCH 07/25] Guard blank-node IDs in remaining URL construction sites Two additional codec.ts branches constructed new URL(values["@id"]) without the URL.canParse guard: the options.baseUrl fallback and the getDecoders base URL argument. Both now use the same safe pattern as the preprocessor and getDecoder blocks so blank-node identifiers (e.g. _:b0) do not crash the decoder. Assisted-by: OpenCode:deepseek-v4-pro --- packages/vocab-tools/src/codec.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/vocab-tools/src/codec.ts b/packages/vocab-tools/src/codec.ts index 64643240d..39b758aa2 100644 --- a/packages/vocab-tools/src/codec.ts +++ b/packages/vocab-tools/src/codec.ts @@ -398,7 +398,7 @@ export async function* generateDecoder( // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null) { + if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { options = { ...options, baseUrl: new URL(values["@id"]) }; } `; @@ -511,7 +511,7 @@ export async function* generateDecoder( types, "v", "options", - `(values["@id"] == null ? options.baseUrl : new URL(values["@id"]))`, + `(values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"]))`, ); for (const code of decoders) yield code; yield ` From cc35832566fc1f167be752a7df26c74b892e7a39 Mon Sep 17 00:00:00 2001 From: Hong Minhee Date: Sat, 6 Jun 2026 00:21:12 +0900 Subject: [PATCH 08/25] Resolve relative @id URLs against baseUrl in decoder Pass options.baseUrl as the second argument to URL.canParse() and new URL() so that relative @id values (e.g. "notes/1") are correctly resolved rather than falling back to the document base URL. Also regenerated all vocabulary code generation snapshots to reflect the cached property reparse baseUrl change. https://github.com/fedify-dev/fedify/pull/793#discussion_r3363411406 https://github.com/fedify-dev/fedify/pull/793#discussion_r3363411415 https://github.com/fedify-dev/fedify/pull/793#discussion_r3363423300 Assisted-by: OpenCode:deepseek-v4-pro --- .../src/__snapshots__/class.test.ts.deno.snap | 682 +++---- .../src/__snapshots__/class.test.ts.node.snap | 1738 ++++++++++++----- .../src/__snapshots__/class.test.ts.snap | 1738 ++++++++++++----- packages/vocab-tools/src/codec.ts | 6 +- 4 files changed, 2786 insertions(+), 1378 deletions(-) diff --git a/packages/vocab-tools/src/__snapshots__/class.test.ts.deno.snap b/packages/vocab-tools/src/__snapshots__/class.test.ts.deno.snap index 1367536f1..f6f3db205 100644 --- a/packages/vocab-tools/src/__snapshots__/class.test.ts.deno.snap +++ b/packages/vocab-tools/src/__snapshots__/class.test.ts.deno.snap @@ -10344,7 +10344,7 @@ get urls(): ((URL | Link))[] { // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -10645,16 +10645,16 @@ get urls(): ((URL | Link))[] { && Array.isArray(v[\\"@type\\"])&& [\\"https://www.w3.org/ns/activitystreams#Object\\",\\"http://joinmastodon.org/ns#Emoji\\",\\"http://litepub.social/ns#ChatMessage\\",\\"https://gotosocial.org/ns#AnnounceAuthorization\\",\\"https://gotosocial.org/ns#LikeApproval\\",\\"https://gotosocial.org/ns#ReplyAuthorization\\",\\"https://w3id.org/fep/044f#QuoteAuthorization\\",\\"https://w3id.org/valueflows/ont/vf#Proposal\\",\\"https://www.w3.org/ns/activitystreams#Activity\\",\\"http://litepub.social/ns#EmojiReact\\",\\"https://gotosocial.org/ns#AnnounceRequest\\",\\"https://gotosocial.org/ns#LikeRequest\\",\\"https://gotosocial.org/ns#ReplyRequest\\",\\"https://w3id.org/fep/044f#QuoteRequest\\",\\"https://www.w3.org/ns/activitystreams#Accept\\",\\"https://www.w3.org/ns/activitystreams#TentativeAccept\\",\\"https://www.w3.org/ns/activitystreams#Add\\",\\"https://www.w3.org/ns/activitystreams#Announce\\",\\"https://www.w3.org/ns/activitystreams#Create\\",\\"https://www.w3.org/ns/activitystreams#Delete\\",\\"https://www.w3.org/ns/activitystreams#Dislike\\",\\"https://www.w3.org/ns/activitystreams#Flag\\",\\"https://www.w3.org/ns/activitystreams#Follow\\",\\"https://www.w3.org/ns/activitystreams#Ignore\\",\\"https://www.w3.org/ns/activitystreams#Block\\",\\"https://www.w3.org/ns/activitystreams#IntransitiveActivity\\",\\"https://www.w3.org/ns/activitystreams#Arrive\\",\\"https://www.w3.org/ns/activitystreams#Question\\",\\"https://www.w3.org/ns/activitystreams#Travel\\",\\"https://www.w3.org/ns/activitystreams#Join\\",\\"https://www.w3.org/ns/activitystreams#Leave\\",\\"https://www.w3.org/ns/activitystreams#Like\\",\\"https://www.w3.org/ns/activitystreams#Listen\\",\\"https://www.w3.org/ns/activitystreams#Move\\",\\"https://www.w3.org/ns/activitystreams#Offer\\",\\"https://www.w3.org/ns/activitystreams#Invite\\",\\"https://www.w3.org/ns/activitystreams#Read\\",\\"https://www.w3.org/ns/activitystreams#Reject\\",\\"https://www.w3.org/ns/activitystreams#TentativeReject\\",\\"https://www.w3.org/ns/activitystreams#Remove\\",\\"https://www.w3.org/ns/activitystreams#Undo\\",\\"https://www.w3.org/ns/activitystreams#Update\\",\\"https://www.w3.org/ns/activitystreams#View\\",\\"https://www.w3.org/ns/activitystreams#Application\\",\\"https://www.w3.org/ns/activitystreams#Article\\",\\"https://www.w3.org/ns/activitystreams#Collection\\",\\"https://www.w3.org/ns/activitystreams#CollectionPage\\",\\"https://www.w3.org/ns/activitystreams#OrderedCollectionPage\\",\\"https://www.w3.org/ns/activitystreams#OrderedCollection\\",\\"https://www.w3.org/ns/activitystreams#Document\\",\\"https://www.w3.org/ns/activitystreams#Audio\\",\\"https://www.w3.org/ns/activitystreams#Image\\",\\"https://www.w3.org/ns/activitystreams#Page\\",\\"https://www.w3.org/ns/activitystreams#Video\\",\\"https://www.w3.org/ns/activitystreams#Event\\",\\"https://www.w3.org/ns/activitystreams#Group\\",\\"https://www.w3.org/ns/activitystreams#Note\\",\\"https://www.w3.org/ns/activitystreams#Organization\\",\\"https://www.w3.org/ns/activitystreams#Person\\",\\"https://www.w3.org/ns/activitystreams#Place\\",\\"https://www.w3.org/ns/activitystreams#Profile\\",\\"https://www.w3.org/ns/activitystreams#Relationship\\",\\"https://www.w3.org/ns/activitystreams#Service\\",\\"https://www.w3.org/ns/activitystreams#Tombstone\\"].some( t => v[\\"@type\\"].includes(t)) ? await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& [\\"https://www.w3.org/ns/activitystreams#Link\\",\\"https://www.w3.org/ns/activitystreams#Hashtag\\",\\"https://www.w3.org/ns/activitystreams#Mention\\"].some( t => v[\\"@type\\"].includes(t)) ? await Link.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"http://schema.org#PropertyValue\\") ? await PropertyValue.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -10691,23 +10691,23 @@ get urls(): ((URL | Link))[] { typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Application\\") ? await Application.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Group\\") ? await Group.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Organization\\") ? await Organization.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Person\\") ? await Person.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Service\\") ? await Service.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -10742,7 +10742,7 @@ get urls(): ((URL | Link))[] { const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _3ocC3VVi88cEd5sPWL8djkZsvTN6_audience.push(decoded); @@ -10802,12 +10802,12 @@ get urls(): ((URL | Link))[] { && Array.isArray(v[\\"@type\\"])&& [\\"https://www.w3.org/ns/activitystreams#Object\\",\\"http://joinmastodon.org/ns#Emoji\\",\\"http://litepub.social/ns#ChatMessage\\",\\"https://gotosocial.org/ns#AnnounceAuthorization\\",\\"https://gotosocial.org/ns#LikeApproval\\",\\"https://gotosocial.org/ns#ReplyAuthorization\\",\\"https://w3id.org/fep/044f#QuoteAuthorization\\",\\"https://w3id.org/valueflows/ont/vf#Proposal\\",\\"https://www.w3.org/ns/activitystreams#Activity\\",\\"http://litepub.social/ns#EmojiReact\\",\\"https://gotosocial.org/ns#AnnounceRequest\\",\\"https://gotosocial.org/ns#LikeRequest\\",\\"https://gotosocial.org/ns#ReplyRequest\\",\\"https://w3id.org/fep/044f#QuoteRequest\\",\\"https://www.w3.org/ns/activitystreams#Accept\\",\\"https://www.w3.org/ns/activitystreams#TentativeAccept\\",\\"https://www.w3.org/ns/activitystreams#Add\\",\\"https://www.w3.org/ns/activitystreams#Announce\\",\\"https://www.w3.org/ns/activitystreams#Create\\",\\"https://www.w3.org/ns/activitystreams#Delete\\",\\"https://www.w3.org/ns/activitystreams#Dislike\\",\\"https://www.w3.org/ns/activitystreams#Flag\\",\\"https://www.w3.org/ns/activitystreams#Follow\\",\\"https://www.w3.org/ns/activitystreams#Ignore\\",\\"https://www.w3.org/ns/activitystreams#Block\\",\\"https://www.w3.org/ns/activitystreams#IntransitiveActivity\\",\\"https://www.w3.org/ns/activitystreams#Arrive\\",\\"https://www.w3.org/ns/activitystreams#Question\\",\\"https://www.w3.org/ns/activitystreams#Travel\\",\\"https://www.w3.org/ns/activitystreams#Join\\",\\"https://www.w3.org/ns/activitystreams#Leave\\",\\"https://www.w3.org/ns/activitystreams#Like\\",\\"https://www.w3.org/ns/activitystreams#Listen\\",\\"https://www.w3.org/ns/activitystreams#Move\\",\\"https://www.w3.org/ns/activitystreams#Offer\\",\\"https://www.w3.org/ns/activitystreams#Invite\\",\\"https://www.w3.org/ns/activitystreams#Read\\",\\"https://www.w3.org/ns/activitystreams#Reject\\",\\"https://www.w3.org/ns/activitystreams#TentativeReject\\",\\"https://www.w3.org/ns/activitystreams#Remove\\",\\"https://www.w3.org/ns/activitystreams#Undo\\",\\"https://www.w3.org/ns/activitystreams#Update\\",\\"https://www.w3.org/ns/activitystreams#View\\",\\"https://www.w3.org/ns/activitystreams#Application\\",\\"https://www.w3.org/ns/activitystreams#Article\\",\\"https://www.w3.org/ns/activitystreams#Collection\\",\\"https://www.w3.org/ns/activitystreams#CollectionPage\\",\\"https://www.w3.org/ns/activitystreams#OrderedCollectionPage\\",\\"https://www.w3.org/ns/activitystreams#OrderedCollection\\",\\"https://www.w3.org/ns/activitystreams#Document\\",\\"https://www.w3.org/ns/activitystreams#Audio\\",\\"https://www.w3.org/ns/activitystreams#Image\\",\\"https://www.w3.org/ns/activitystreams#Page\\",\\"https://www.w3.org/ns/activitystreams#Video\\",\\"https://www.w3.org/ns/activitystreams#Event\\",\\"https://www.w3.org/ns/activitystreams#Group\\",\\"https://www.w3.org/ns/activitystreams#Note\\",\\"https://www.w3.org/ns/activitystreams#Organization\\",\\"https://www.w3.org/ns/activitystreams#Person\\",\\"https://www.w3.org/ns/activitystreams#Place\\",\\"https://www.w3.org/ns/activitystreams#Profile\\",\\"https://www.w3.org/ns/activitystreams#Relationship\\",\\"https://www.w3.org/ns/activitystreams#Service\\",\\"https://www.w3.org/ns/activitystreams#Tombstone\\"].some( t => v[\\"@type\\"].includes(t)) ? await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& [\\"https://www.w3.org/ns/activitystreams#Link\\",\\"https://www.w3.org/ns/activitystreams#Hashtag\\",\\"https://www.w3.org/ns/activitystreams#Mention\\"].some( t => v[\\"@type\\"].includes(t)) ? await Link.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -10891,12 +10891,12 @@ get urls(): ((URL | Link))[] { && Array.isArray(v[\\"@type\\"])&& [\\"https://www.w3.org/ns/activitystreams#Object\\",\\"http://joinmastodon.org/ns#Emoji\\",\\"http://litepub.social/ns#ChatMessage\\",\\"https://gotosocial.org/ns#AnnounceAuthorization\\",\\"https://gotosocial.org/ns#LikeApproval\\",\\"https://gotosocial.org/ns#ReplyAuthorization\\",\\"https://w3id.org/fep/044f#QuoteAuthorization\\",\\"https://w3id.org/valueflows/ont/vf#Proposal\\",\\"https://www.w3.org/ns/activitystreams#Activity\\",\\"http://litepub.social/ns#EmojiReact\\",\\"https://gotosocial.org/ns#AnnounceRequest\\",\\"https://gotosocial.org/ns#LikeRequest\\",\\"https://gotosocial.org/ns#ReplyRequest\\",\\"https://w3id.org/fep/044f#QuoteRequest\\",\\"https://www.w3.org/ns/activitystreams#Accept\\",\\"https://www.w3.org/ns/activitystreams#TentativeAccept\\",\\"https://www.w3.org/ns/activitystreams#Add\\",\\"https://www.w3.org/ns/activitystreams#Announce\\",\\"https://www.w3.org/ns/activitystreams#Create\\",\\"https://www.w3.org/ns/activitystreams#Delete\\",\\"https://www.w3.org/ns/activitystreams#Dislike\\",\\"https://www.w3.org/ns/activitystreams#Flag\\",\\"https://www.w3.org/ns/activitystreams#Follow\\",\\"https://www.w3.org/ns/activitystreams#Ignore\\",\\"https://www.w3.org/ns/activitystreams#Block\\",\\"https://www.w3.org/ns/activitystreams#IntransitiveActivity\\",\\"https://www.w3.org/ns/activitystreams#Arrive\\",\\"https://www.w3.org/ns/activitystreams#Question\\",\\"https://www.w3.org/ns/activitystreams#Travel\\",\\"https://www.w3.org/ns/activitystreams#Join\\",\\"https://www.w3.org/ns/activitystreams#Leave\\",\\"https://www.w3.org/ns/activitystreams#Like\\",\\"https://www.w3.org/ns/activitystreams#Listen\\",\\"https://www.w3.org/ns/activitystreams#Move\\",\\"https://www.w3.org/ns/activitystreams#Offer\\",\\"https://www.w3.org/ns/activitystreams#Invite\\",\\"https://www.w3.org/ns/activitystreams#Read\\",\\"https://www.w3.org/ns/activitystreams#Reject\\",\\"https://www.w3.org/ns/activitystreams#TentativeReject\\",\\"https://www.w3.org/ns/activitystreams#Remove\\",\\"https://www.w3.org/ns/activitystreams#Undo\\",\\"https://www.w3.org/ns/activitystreams#Update\\",\\"https://www.w3.org/ns/activitystreams#View\\",\\"https://www.w3.org/ns/activitystreams#Application\\",\\"https://www.w3.org/ns/activitystreams#Article\\",\\"https://www.w3.org/ns/activitystreams#Collection\\",\\"https://www.w3.org/ns/activitystreams#CollectionPage\\",\\"https://www.w3.org/ns/activitystreams#OrderedCollectionPage\\",\\"https://www.w3.org/ns/activitystreams#OrderedCollection\\",\\"https://www.w3.org/ns/activitystreams#Document\\",\\"https://www.w3.org/ns/activitystreams#Audio\\",\\"https://www.w3.org/ns/activitystreams#Image\\",\\"https://www.w3.org/ns/activitystreams#Page\\",\\"https://www.w3.org/ns/activitystreams#Video\\",\\"https://www.w3.org/ns/activitystreams#Event\\",\\"https://www.w3.org/ns/activitystreams#Group\\",\\"https://www.w3.org/ns/activitystreams#Note\\",\\"https://www.w3.org/ns/activitystreams#Organization\\",\\"https://www.w3.org/ns/activitystreams#Person\\",\\"https://www.w3.org/ns/activitystreams#Place\\",\\"https://www.w3.org/ns/activitystreams#Profile\\",\\"https://www.w3.org/ns/activitystreams#Relationship\\",\\"https://www.w3.org/ns/activitystreams#Service\\",\\"https://www.w3.org/ns/activitystreams#Tombstone\\"].some( t => v[\\"@type\\"].includes(t)) ? await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& [\\"https://www.w3.org/ns/activitystreams#Link\\",\\"https://www.w3.org/ns/activitystreams#Hashtag\\",\\"https://www.w3.org/ns/activitystreams#Mention\\"].some( t => v[\\"@type\\"].includes(t)) ? await Link.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -10927,7 +10927,7 @@ get urls(): ((URL | Link))[] { documentLoader: options.documentLoader, contextLoader: options.contextLoader, tracerProvider: options.tracerProvider, - baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])), + baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)), }); if (_result instanceof Error) throw _result; if (_result !== undefined) { @@ -10953,7 +10953,7 @@ get urls(): ((URL | Link))[] { const decoded = await Image.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _33CjRLy5ujtsUrwRSCrsggvGdKuR_icon.push(decoded); @@ -10982,7 +10982,7 @@ get urls(): ((URL | Link))[] { documentLoader: options.documentLoader, contextLoader: options.contextLoader, tracerProvider: options.tracerProvider, - baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])), + baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)), }); if (_result instanceof Error) throw _result; if (_result !== undefined) { @@ -11008,7 +11008,7 @@ get urls(): ((URL | Link))[] { const decoded = await Image.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _3dXrUdkARxwyJLtJcYi1AJ92H41U_image.push(decoded); @@ -11044,12 +11044,12 @@ get urls(): ((URL | Link))[] { && Array.isArray(v[\\"@type\\"])&& [\\"https://www.w3.org/ns/activitystreams#Object\\",\\"http://joinmastodon.org/ns#Emoji\\",\\"http://litepub.social/ns#ChatMessage\\",\\"https://gotosocial.org/ns#AnnounceAuthorization\\",\\"https://gotosocial.org/ns#LikeApproval\\",\\"https://gotosocial.org/ns#ReplyAuthorization\\",\\"https://w3id.org/fep/044f#QuoteAuthorization\\",\\"https://w3id.org/valueflows/ont/vf#Proposal\\",\\"https://www.w3.org/ns/activitystreams#Activity\\",\\"http://litepub.social/ns#EmojiReact\\",\\"https://gotosocial.org/ns#AnnounceRequest\\",\\"https://gotosocial.org/ns#LikeRequest\\",\\"https://gotosocial.org/ns#ReplyRequest\\",\\"https://w3id.org/fep/044f#QuoteRequest\\",\\"https://www.w3.org/ns/activitystreams#Accept\\",\\"https://www.w3.org/ns/activitystreams#TentativeAccept\\",\\"https://www.w3.org/ns/activitystreams#Add\\",\\"https://www.w3.org/ns/activitystreams#Announce\\",\\"https://www.w3.org/ns/activitystreams#Create\\",\\"https://www.w3.org/ns/activitystreams#Delete\\",\\"https://www.w3.org/ns/activitystreams#Dislike\\",\\"https://www.w3.org/ns/activitystreams#Flag\\",\\"https://www.w3.org/ns/activitystreams#Follow\\",\\"https://www.w3.org/ns/activitystreams#Ignore\\",\\"https://www.w3.org/ns/activitystreams#Block\\",\\"https://www.w3.org/ns/activitystreams#IntransitiveActivity\\",\\"https://www.w3.org/ns/activitystreams#Arrive\\",\\"https://www.w3.org/ns/activitystreams#Question\\",\\"https://www.w3.org/ns/activitystreams#Travel\\",\\"https://www.w3.org/ns/activitystreams#Join\\",\\"https://www.w3.org/ns/activitystreams#Leave\\",\\"https://www.w3.org/ns/activitystreams#Like\\",\\"https://www.w3.org/ns/activitystreams#Listen\\",\\"https://www.w3.org/ns/activitystreams#Move\\",\\"https://www.w3.org/ns/activitystreams#Offer\\",\\"https://www.w3.org/ns/activitystreams#Invite\\",\\"https://www.w3.org/ns/activitystreams#Read\\",\\"https://www.w3.org/ns/activitystreams#Reject\\",\\"https://www.w3.org/ns/activitystreams#TentativeReject\\",\\"https://www.w3.org/ns/activitystreams#Remove\\",\\"https://www.w3.org/ns/activitystreams#Undo\\",\\"https://www.w3.org/ns/activitystreams#Update\\",\\"https://www.w3.org/ns/activitystreams#View\\",\\"https://www.w3.org/ns/activitystreams#Application\\",\\"https://www.w3.org/ns/activitystreams#Article\\",\\"https://www.w3.org/ns/activitystreams#Collection\\",\\"https://www.w3.org/ns/activitystreams#CollectionPage\\",\\"https://www.w3.org/ns/activitystreams#OrderedCollectionPage\\",\\"https://www.w3.org/ns/activitystreams#OrderedCollection\\",\\"https://www.w3.org/ns/activitystreams#Document\\",\\"https://www.w3.org/ns/activitystreams#Audio\\",\\"https://www.w3.org/ns/activitystreams#Image\\",\\"https://www.w3.org/ns/activitystreams#Page\\",\\"https://www.w3.org/ns/activitystreams#Video\\",\\"https://www.w3.org/ns/activitystreams#Event\\",\\"https://www.w3.org/ns/activitystreams#Group\\",\\"https://www.w3.org/ns/activitystreams#Note\\",\\"https://www.w3.org/ns/activitystreams#Organization\\",\\"https://www.w3.org/ns/activitystreams#Person\\",\\"https://www.w3.org/ns/activitystreams#Place\\",\\"https://www.w3.org/ns/activitystreams#Profile\\",\\"https://www.w3.org/ns/activitystreams#Relationship\\",\\"https://www.w3.org/ns/activitystreams#Service\\",\\"https://www.w3.org/ns/activitystreams#Tombstone\\"].some( t => v[\\"@type\\"].includes(t)) ? await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& [\\"https://www.w3.org/ns/activitystreams#Link\\",\\"https://www.w3.org/ns/activitystreams#Hashtag\\",\\"https://www.w3.org/ns/activitystreams#Mention\\"].some( t => v[\\"@type\\"].includes(t)) ? await Link.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -11087,12 +11087,12 @@ get urls(): ((URL | Link))[] { && Array.isArray(v[\\"@type\\"])&& [\\"https://www.w3.org/ns/activitystreams#Object\\",\\"http://joinmastodon.org/ns#Emoji\\",\\"http://litepub.social/ns#ChatMessage\\",\\"https://gotosocial.org/ns#AnnounceAuthorization\\",\\"https://gotosocial.org/ns#LikeApproval\\",\\"https://gotosocial.org/ns#ReplyAuthorization\\",\\"https://w3id.org/fep/044f#QuoteAuthorization\\",\\"https://w3id.org/valueflows/ont/vf#Proposal\\",\\"https://www.w3.org/ns/activitystreams#Activity\\",\\"http://litepub.social/ns#EmojiReact\\",\\"https://gotosocial.org/ns#AnnounceRequest\\",\\"https://gotosocial.org/ns#LikeRequest\\",\\"https://gotosocial.org/ns#ReplyRequest\\",\\"https://w3id.org/fep/044f#QuoteRequest\\",\\"https://www.w3.org/ns/activitystreams#Accept\\",\\"https://www.w3.org/ns/activitystreams#TentativeAccept\\",\\"https://www.w3.org/ns/activitystreams#Add\\",\\"https://www.w3.org/ns/activitystreams#Announce\\",\\"https://www.w3.org/ns/activitystreams#Create\\",\\"https://www.w3.org/ns/activitystreams#Delete\\",\\"https://www.w3.org/ns/activitystreams#Dislike\\",\\"https://www.w3.org/ns/activitystreams#Flag\\",\\"https://www.w3.org/ns/activitystreams#Follow\\",\\"https://www.w3.org/ns/activitystreams#Ignore\\",\\"https://www.w3.org/ns/activitystreams#Block\\",\\"https://www.w3.org/ns/activitystreams#IntransitiveActivity\\",\\"https://www.w3.org/ns/activitystreams#Arrive\\",\\"https://www.w3.org/ns/activitystreams#Question\\",\\"https://www.w3.org/ns/activitystreams#Travel\\",\\"https://www.w3.org/ns/activitystreams#Join\\",\\"https://www.w3.org/ns/activitystreams#Leave\\",\\"https://www.w3.org/ns/activitystreams#Like\\",\\"https://www.w3.org/ns/activitystreams#Listen\\",\\"https://www.w3.org/ns/activitystreams#Move\\",\\"https://www.w3.org/ns/activitystreams#Offer\\",\\"https://www.w3.org/ns/activitystreams#Invite\\",\\"https://www.w3.org/ns/activitystreams#Read\\",\\"https://www.w3.org/ns/activitystreams#Reject\\",\\"https://www.w3.org/ns/activitystreams#TentativeReject\\",\\"https://www.w3.org/ns/activitystreams#Remove\\",\\"https://www.w3.org/ns/activitystreams#Undo\\",\\"https://www.w3.org/ns/activitystreams#Update\\",\\"https://www.w3.org/ns/activitystreams#View\\",\\"https://www.w3.org/ns/activitystreams#Application\\",\\"https://www.w3.org/ns/activitystreams#Article\\",\\"https://www.w3.org/ns/activitystreams#Collection\\",\\"https://www.w3.org/ns/activitystreams#CollectionPage\\",\\"https://www.w3.org/ns/activitystreams#OrderedCollectionPage\\",\\"https://www.w3.org/ns/activitystreams#OrderedCollection\\",\\"https://www.w3.org/ns/activitystreams#Document\\",\\"https://www.w3.org/ns/activitystreams#Audio\\",\\"https://www.w3.org/ns/activitystreams#Image\\",\\"https://www.w3.org/ns/activitystreams#Page\\",\\"https://www.w3.org/ns/activitystreams#Video\\",\\"https://www.w3.org/ns/activitystreams#Event\\",\\"https://www.w3.org/ns/activitystreams#Group\\",\\"https://www.w3.org/ns/activitystreams#Note\\",\\"https://www.w3.org/ns/activitystreams#Organization\\",\\"https://www.w3.org/ns/activitystreams#Person\\",\\"https://www.w3.org/ns/activitystreams#Place\\",\\"https://www.w3.org/ns/activitystreams#Profile\\",\\"https://www.w3.org/ns/activitystreams#Relationship\\",\\"https://www.w3.org/ns/activitystreams#Service\\",\\"https://www.w3.org/ns/activitystreams#Tombstone\\"].some( t => v[\\"@type\\"].includes(t)) ? await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& [\\"https://www.w3.org/ns/activitystreams#Link\\",\\"https://www.w3.org/ns/activitystreams#Hashtag\\",\\"https://www.w3.org/ns/activitystreams#Mention\\"].some( t => v[\\"@type\\"].includes(t)) ? await Link.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -11130,12 +11130,12 @@ get urls(): ((URL | Link))[] { && Array.isArray(v[\\"@type\\"])&& [\\"https://www.w3.org/ns/activitystreams#Link\\",\\"https://www.w3.org/ns/activitystreams#Hashtag\\",\\"https://www.w3.org/ns/activitystreams#Mention\\"].some( t => v[\\"@type\\"].includes(t)) ? await Link.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& [\\"https://www.w3.org/ns/activitystreams#Object\\",\\"http://joinmastodon.org/ns#Emoji\\",\\"http://litepub.social/ns#ChatMessage\\",\\"https://gotosocial.org/ns#AnnounceAuthorization\\",\\"https://gotosocial.org/ns#LikeApproval\\",\\"https://gotosocial.org/ns#ReplyAuthorization\\",\\"https://w3id.org/fep/044f#QuoteAuthorization\\",\\"https://w3id.org/valueflows/ont/vf#Proposal\\",\\"https://www.w3.org/ns/activitystreams#Activity\\",\\"http://litepub.social/ns#EmojiReact\\",\\"https://gotosocial.org/ns#AnnounceRequest\\",\\"https://gotosocial.org/ns#LikeRequest\\",\\"https://gotosocial.org/ns#ReplyRequest\\",\\"https://w3id.org/fep/044f#QuoteRequest\\",\\"https://www.w3.org/ns/activitystreams#Accept\\",\\"https://www.w3.org/ns/activitystreams#TentativeAccept\\",\\"https://www.w3.org/ns/activitystreams#Add\\",\\"https://www.w3.org/ns/activitystreams#Announce\\",\\"https://www.w3.org/ns/activitystreams#Create\\",\\"https://www.w3.org/ns/activitystreams#Delete\\",\\"https://www.w3.org/ns/activitystreams#Dislike\\",\\"https://www.w3.org/ns/activitystreams#Flag\\",\\"https://www.w3.org/ns/activitystreams#Follow\\",\\"https://www.w3.org/ns/activitystreams#Ignore\\",\\"https://www.w3.org/ns/activitystreams#Block\\",\\"https://www.w3.org/ns/activitystreams#IntransitiveActivity\\",\\"https://www.w3.org/ns/activitystreams#Arrive\\",\\"https://www.w3.org/ns/activitystreams#Question\\",\\"https://www.w3.org/ns/activitystreams#Travel\\",\\"https://www.w3.org/ns/activitystreams#Join\\",\\"https://www.w3.org/ns/activitystreams#Leave\\",\\"https://www.w3.org/ns/activitystreams#Like\\",\\"https://www.w3.org/ns/activitystreams#Listen\\",\\"https://www.w3.org/ns/activitystreams#Move\\",\\"https://www.w3.org/ns/activitystreams#Offer\\",\\"https://www.w3.org/ns/activitystreams#Invite\\",\\"https://www.w3.org/ns/activitystreams#Read\\",\\"https://www.w3.org/ns/activitystreams#Reject\\",\\"https://www.w3.org/ns/activitystreams#TentativeReject\\",\\"https://www.w3.org/ns/activitystreams#Remove\\",\\"https://www.w3.org/ns/activitystreams#Undo\\",\\"https://www.w3.org/ns/activitystreams#Update\\",\\"https://www.w3.org/ns/activitystreams#View\\",\\"https://www.w3.org/ns/activitystreams#Application\\",\\"https://www.w3.org/ns/activitystreams#Article\\",\\"https://www.w3.org/ns/activitystreams#Collection\\",\\"https://www.w3.org/ns/activitystreams#CollectionPage\\",\\"https://www.w3.org/ns/activitystreams#OrderedCollectionPage\\",\\"https://www.w3.org/ns/activitystreams#OrderedCollection\\",\\"https://www.w3.org/ns/activitystreams#Document\\",\\"https://www.w3.org/ns/activitystreams#Audio\\",\\"https://www.w3.org/ns/activitystreams#Image\\",\\"https://www.w3.org/ns/activitystreams#Page\\",\\"https://www.w3.org/ns/activitystreams#Video\\",\\"https://www.w3.org/ns/activitystreams#Event\\",\\"https://www.w3.org/ns/activitystreams#Group\\",\\"https://www.w3.org/ns/activitystreams#Note\\",\\"https://www.w3.org/ns/activitystreams#Organization\\",\\"https://www.w3.org/ns/activitystreams#Person\\",\\"https://www.w3.org/ns/activitystreams#Place\\",\\"https://www.w3.org/ns/activitystreams#Profile\\",\\"https://www.w3.org/ns/activitystreams#Relationship\\",\\"https://www.w3.org/ns/activitystreams#Service\\",\\"https://www.w3.org/ns/activitystreams#Tombstone\\"].some( t => v[\\"@type\\"].includes(t)) ? await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -11192,7 +11192,7 @@ get urls(): ((URL | Link))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _7UpwM3JWcXhADcscukEehBorf6k_replies.push(decoded); @@ -11225,7 +11225,7 @@ get urls(): ((URL | Link))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _3kAfck9PcEYt2L7xug5y99YPbANs_shares.push(decoded); @@ -11258,7 +11258,7 @@ get urls(): ((URL | Link))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _S3ceDnpMdzoTRCccB9FkJWrEzYW_likes.push(decoded); @@ -11291,7 +11291,7 @@ get urls(): ((URL | Link))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _kMatyyNAuxoTD8GQMBfA5ogThMR_emojiReactions.push(decoded); @@ -11373,12 +11373,12 @@ get urls(): ((URL | Link))[] { && Array.isArray(v[\\"@type\\"])&& [\\"https://www.w3.org/ns/activitystreams#Object\\",\\"http://joinmastodon.org/ns#Emoji\\",\\"http://litepub.social/ns#ChatMessage\\",\\"https://gotosocial.org/ns#AnnounceAuthorization\\",\\"https://gotosocial.org/ns#LikeApproval\\",\\"https://gotosocial.org/ns#ReplyAuthorization\\",\\"https://w3id.org/fep/044f#QuoteAuthorization\\",\\"https://w3id.org/valueflows/ont/vf#Proposal\\",\\"https://www.w3.org/ns/activitystreams#Activity\\",\\"http://litepub.social/ns#EmojiReact\\",\\"https://gotosocial.org/ns#AnnounceRequest\\",\\"https://gotosocial.org/ns#LikeRequest\\",\\"https://gotosocial.org/ns#ReplyRequest\\",\\"https://w3id.org/fep/044f#QuoteRequest\\",\\"https://www.w3.org/ns/activitystreams#Accept\\",\\"https://www.w3.org/ns/activitystreams#TentativeAccept\\",\\"https://www.w3.org/ns/activitystreams#Add\\",\\"https://www.w3.org/ns/activitystreams#Announce\\",\\"https://www.w3.org/ns/activitystreams#Create\\",\\"https://www.w3.org/ns/activitystreams#Delete\\",\\"https://www.w3.org/ns/activitystreams#Dislike\\",\\"https://www.w3.org/ns/activitystreams#Flag\\",\\"https://www.w3.org/ns/activitystreams#Follow\\",\\"https://www.w3.org/ns/activitystreams#Ignore\\",\\"https://www.w3.org/ns/activitystreams#Block\\",\\"https://www.w3.org/ns/activitystreams#IntransitiveActivity\\",\\"https://www.w3.org/ns/activitystreams#Arrive\\",\\"https://www.w3.org/ns/activitystreams#Question\\",\\"https://www.w3.org/ns/activitystreams#Travel\\",\\"https://www.w3.org/ns/activitystreams#Join\\",\\"https://www.w3.org/ns/activitystreams#Leave\\",\\"https://www.w3.org/ns/activitystreams#Like\\",\\"https://www.w3.org/ns/activitystreams#Listen\\",\\"https://www.w3.org/ns/activitystreams#Move\\",\\"https://www.w3.org/ns/activitystreams#Offer\\",\\"https://www.w3.org/ns/activitystreams#Invite\\",\\"https://www.w3.org/ns/activitystreams#Read\\",\\"https://www.w3.org/ns/activitystreams#Reject\\",\\"https://www.w3.org/ns/activitystreams#TentativeReject\\",\\"https://www.w3.org/ns/activitystreams#Remove\\",\\"https://www.w3.org/ns/activitystreams#Undo\\",\\"https://www.w3.org/ns/activitystreams#Update\\",\\"https://www.w3.org/ns/activitystreams#View\\",\\"https://www.w3.org/ns/activitystreams#Application\\",\\"https://www.w3.org/ns/activitystreams#Article\\",\\"https://www.w3.org/ns/activitystreams#Collection\\",\\"https://www.w3.org/ns/activitystreams#CollectionPage\\",\\"https://www.w3.org/ns/activitystreams#OrderedCollectionPage\\",\\"https://www.w3.org/ns/activitystreams#OrderedCollection\\",\\"https://www.w3.org/ns/activitystreams#Document\\",\\"https://www.w3.org/ns/activitystreams#Audio\\",\\"https://www.w3.org/ns/activitystreams#Image\\",\\"https://www.w3.org/ns/activitystreams#Page\\",\\"https://www.w3.org/ns/activitystreams#Video\\",\\"https://www.w3.org/ns/activitystreams#Event\\",\\"https://www.w3.org/ns/activitystreams#Group\\",\\"https://www.w3.org/ns/activitystreams#Note\\",\\"https://www.w3.org/ns/activitystreams#Organization\\",\\"https://www.w3.org/ns/activitystreams#Person\\",\\"https://www.w3.org/ns/activitystreams#Place\\",\\"https://www.w3.org/ns/activitystreams#Profile\\",\\"https://www.w3.org/ns/activitystreams#Relationship\\",\\"https://www.w3.org/ns/activitystreams#Service\\",\\"https://www.w3.org/ns/activitystreams#Tombstone\\"].some( t => v[\\"@type\\"].includes(t)) ? await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& [\\"https://www.w3.org/ns/activitystreams#Link\\",\\"https://www.w3.org/ns/activitystreams#Hashtag\\",\\"https://www.w3.org/ns/activitystreams#Mention\\"].some( t => v[\\"@type\\"].includes(t)) ? await Link.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -11437,13 +11437,13 @@ get urls(): ((URL | Link))[] { : \\"\\" ) ) - : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) + : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) ? new URL(v[\\"@id\\"]) - : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"]))) : typeof v === \\"object\\" && \\"@type\\" in v + : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl))) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& [\\"https://www.w3.org/ns/activitystreams#Link\\",\\"https://www.w3.org/ns/activitystreams#Hashtag\\",\\"https://www.w3.org/ns/activitystreams#Mention\\"].some( t => v[\\"@type\\"].includes(t)) ? await Link.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -11478,7 +11478,7 @@ get urls(): ((URL | Link))[] { const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _3hFbw7DTpHhq3cvVhkY8njhcsXbd_to.push(decoded); @@ -11511,7 +11511,7 @@ get urls(): ((URL | Link))[] { const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _aLZupjwL8XB7tzdLgCMXdjZ6qej_bto.push(decoded); @@ -11544,7 +11544,7 @@ get urls(): ((URL | Link))[] { const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _42a1SvBs24QSLzKcfjCyNTjW5a1g_cc.push(decoded); @@ -11577,7 +11577,7 @@ get urls(): ((URL | Link))[] { const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _3qvegKUB8YLgTXRpEf8E6JZSkz2H_bcc.push(decoded); @@ -11652,7 +11652,7 @@ get urls(): ((URL | Link))[] { const decoded = await Source.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _2ZwCFoS787v8y8bXKjMoE6MAbrEB_source.push(decoded); @@ -11685,7 +11685,7 @@ get urls(): ((URL | Link))[] { const decoded = await DataIntegrityProof.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _42rPnotok1ivQ2RNCKNbeFJgx8b8_proof.push(decoded); @@ -11706,7 +11706,7 @@ get urls(): ((URL | Link))[] { const decoded = await InteractionPolicy.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _2MHQfh2N74MMmDLDqYWFo7TxYQK2_interactionPolicy.push(decoded); @@ -11738,9 +11738,9 @@ get urls(): ((URL | Link))[] { : \\"\\" ) ) - : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) + : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) ? new URL(v[\\"@id\\"]) - : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"]))); + : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl))); if (typeof decoded === \\"undefined\\") continue; _23YiVs2miQcEiUdn4u8SvjQKWYim_approvedBy.push(decoded); } @@ -11772,7 +11772,7 @@ get urls(): ((URL | Link))[] { const decoded = await LikeAuthorization.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _3fCeb5aXaDDd4fvkQ96BLWifBUBa_likeAuthorization.push(decoded); @@ -11805,7 +11805,7 @@ get urls(): ((URL | Link))[] { const decoded = await ReplyAuthorization.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _YA4wdUW7rYztAQ6SjhMnJCmcmtP_replyAuthorization.push(decoded); @@ -11838,7 +11838,7 @@ get urls(): ((URL | Link))[] { const decoded = await AnnounceAuthorization.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _446xEaDBs3Fz6MyzP3PSBaLupkbJ_announceAuthorization.push(decoded); @@ -13016,7 +13016,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -14022,7 +14022,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -14073,7 +14073,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote.push(decoded); @@ -14132,7 +14132,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await QuoteAuthorization.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization.push(decoded); @@ -17079,7 +17079,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -17268,23 +17268,23 @@ instruments?: (Object | URL)[];} typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Application\\") ? await Application.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Group\\") ? await Group.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Organization\\") ? await Organization.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Person\\") ? await Person.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Service\\") ? await Service.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -17319,7 +17319,7 @@ instruments?: (Object | URL)[];} const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _2MH19yxjn1wnHsNfa5n4JBhJzxyc_object.push(decoded); @@ -17352,7 +17352,7 @@ instruments?: (Object | URL)[];} const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _3JQCmF2Ww56Ag9EWRYoSZRDNCYtF_target.push(decoded); @@ -17385,7 +17385,7 @@ instruments?: (Object | URL)[];} const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _u4QGFbRFcYmPEKGbPv1hpBR9r5G_result.push(decoded); @@ -17418,7 +17418,7 @@ instruments?: (Object | URL)[];} const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _25zu2s3VxVujgEKqrDycjE284XQR_origin.push(decoded); @@ -17451,7 +17451,7 @@ instruments?: (Object | URL)[];} const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _3c5t2x7DYRo2shwTxpkd4kYSS5WQ_instrument.push(decoded); @@ -17922,7 +17922,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -18425,7 +18425,7 @@ name?: string | LanguageString | null;value?: string | LanguageString | null;} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -19011,7 +19011,7 @@ unit?: string | null;numericalValue?: Decimal | null;} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -20010,7 +20010,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -20061,7 +20061,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject.push(decoded); @@ -20094,7 +20094,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget.push(decoded); @@ -20459,7 +20459,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -21050,7 +21050,7 @@ canLike?: InteractionRule | null;canReply?: InteractionRule | null;canAnnounce?: // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -21084,7 +21084,7 @@ canLike?: InteractionRule | null;canReply?: InteractionRule | null;canAnnounce?: const decoded = await InteractionRule.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _3JkwVLb3BNCwCWdsb5RftGAg8vyT_canLike.push(decoded); @@ -21105,7 +21105,7 @@ canLike?: InteractionRule | null;canReply?: InteractionRule | null;canAnnounce?: const decoded = await InteractionRule.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _2UBgLRi5p3DRGGvWyB227i4Qjhzd_canReply.push(decoded); @@ -21126,7 +21126,7 @@ canLike?: InteractionRule | null;canReply?: InteractionRule | null;canAnnounce?: const decoded = await InteractionRule.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _fu5nmoAj528fBQfnxhY9Daok3Vi_canAnnounce.push(decoded); @@ -21147,7 +21147,7 @@ canLike?: InteractionRule | null;canReply?: InteractionRule | null;canAnnounce?: const decoded = await InteractionRule.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _LE3zBTVacTZw2LSyLt4wVUkXeUy_canQuote.push(decoded); @@ -21798,7 +21798,7 @@ get manualApprovals(): (URL)[] { // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -21843,9 +21843,9 @@ get manualApprovals(): (URL)[] { : \\"\\" ) ) - : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) + : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) ? new URL(v[\\"@id\\"]) - : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"]))); + : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl))); if (typeof decoded === \\"undefined\\") continue; _2rFyCF14HoyNjitj9PmCzek5iSsg_automaticApproval.push(decoded); } @@ -21876,9 +21876,9 @@ get manualApprovals(): (URL)[] { : \\"\\" ) ) - : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) + : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) ? new URL(v[\\"@id\\"]) - : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"]))); + : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl))); if (typeof decoded === \\"undefined\\") continue; _sxj8y5XMMMBWUnRYFw85MKedCMj_manualApproval.push(decoded); } @@ -22838,7 +22838,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -22889,7 +22889,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject.push(decoded); @@ -22922,7 +22922,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget.push(decoded); @@ -23286,7 +23286,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -24198,7 +24198,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -24249,7 +24249,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject.push(decoded); @@ -24282,7 +24282,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget.push(decoded); @@ -24646,7 +24646,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -25557,7 +25557,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -25608,7 +25608,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject.push(decoded); @@ -25641,7 +25641,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget.push(decoded); @@ -26005,7 +26005,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -26450,7 +26450,7 @@ get endpoints(): (URL)[] { // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -26499,9 +26499,9 @@ get endpoints(): (URL)[] { : \\"\\" ) ) - : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) + : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) ? new URL(v[\\"@id\\"]) - : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"]))); + : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl))); if (typeof decoded === \\"undefined\\") continue; _2KM4fetG6FTJ1cphj76rzJ8Dyv7p_serviceEndpoint.push(decoded); } @@ -26803,7 +26803,7 @@ endpoints?: (URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -27621,7 +27621,7 @@ cryptosuite?: \\"eddsa-jcs-2022\\" | null;verificationMethod?: Multikey | URL | // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -27685,7 +27685,7 @@ cryptosuite?: \\"eddsa-jcs-2022\\" | null;verificationMethod?: Multikey | URL | const decoded = await Multikey.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _2mHVKxqA7zncjveJrDEo3pWpMZqg_verificationMethod.push(decoded); @@ -28590,7 +28590,7 @@ owner?: Application | Group | Organization | Person | Service | URL | null;publi // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -28638,23 +28638,23 @@ owner?: Application | Group | Organization | Person | Service | URL | null;publi typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Application\\") ? await Application.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Group\\") ? await Group.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Organization\\") ? await Organization.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Person\\") ? await Person.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Service\\") ? await Service.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -29472,7 +29472,7 @@ controller?: Application | Group | Organization | Person | Service | URL | null; // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -29520,23 +29520,23 @@ controller?: Application | Group | Organization | Person | Service | URL | null; typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Application\\") ? await Application.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Group\\") ? await Group.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Organization\\") ? await Organization.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Person\\") ? await Person.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Service\\") ? await Service.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -30307,7 +30307,7 @@ action?: string | null;resourceConformsTo?: URL | null;resourceQuantity?: Measur // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -30370,9 +30370,9 @@ action?: string | null;resourceConformsTo?: URL | null;resourceQuantity?: Measur : \\"\\" ) ) - : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) + : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) ? new URL(v[\\"@id\\"]) - : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"]))); + : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl))); if (typeof decoded === \\"undefined\\") continue; _BBAeMUUQDwBQn6cvu3P2Csd6b6h_resourceConformsTo.push(decoded); } @@ -30392,7 +30392,7 @@ action?: string | null;resourceConformsTo?: URL | null;resourceQuantity?: Measur const decoded = await Measure.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _2dLfqTbbRiggEcMQWbHpxkQrtmrc_resourceQuantity.push(decoded); @@ -30413,7 +30413,7 @@ action?: string | null;resourceConformsTo?: URL | null;resourceQuantity?: Measur const decoded = await Measure.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _YmNSnuih3Zk4VdR5JPVnQYroLAh_availableQuantity.push(decoded); @@ -30434,7 +30434,7 @@ action?: string | null;resourceConformsTo?: URL | null;resourceQuantity?: Measur const decoded = await Measure.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _3XueAFds2NBrqNpnV8b7aC8hV72S_minimumQuantity.push(decoded); @@ -31179,7 +31179,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -31236,7 +31236,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Intent.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _sS5LvXX8cn4c3x6ux836AwYbTyJ_publishes.push(decoded); @@ -31257,7 +31257,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Intent.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _Z4ntJgFwR9BaNTbFvkRTGNEwUwy_reciprocal.push(decoded); @@ -31672,7 +31672,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -32012,7 +32012,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -32347,7 +32347,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -37928,7 +37928,7 @@ get preferredUsernames(): ((string | LanguageString))[] { // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -38003,7 +38003,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await CryptographicKey.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _axq166E2eZADq34V4MYUc8KMZdC_publicKey.push(decoded); @@ -38036,7 +38036,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Multikey.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.push(decoded); @@ -38089,11 +38089,11 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#OrderedCollection\\") ? await OrderedCollection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#OrderedCollectionPage\\") ? await OrderedCollectionPage.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -38130,11 +38130,11 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#OrderedCollection\\") ? await OrderedCollection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#OrderedCollectionPage\\") ? await OrderedCollectionPage.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -38169,7 +38169,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _3yAv8jymNfNuJUDuBzJ1NQhdbAee_following.push(decoded); @@ -38202,7 +38202,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _BBCTgfphhsFzpVfKTykGSpBNwoA_followers.push(decoded); @@ -38235,7 +38235,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _3bgkPwJanyTCoVFM9ovRcus8tKkU_liked.push(decoded); @@ -38268,7 +38268,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _4N1vBJzXDf8NbBumeECQMFvKetja_featured.push(decoded); @@ -38301,7 +38301,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags.push(decoded); @@ -38334,7 +38334,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.push(decoded); @@ -38355,7 +38355,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Endpoints.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints.push(decoded); @@ -38462,23 +38462,23 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Application\\") ? await Application.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Group\\") ? await Group.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Organization\\") ? await Organization.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Person\\") ? await Person.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Service\\") ? await Service.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -38515,23 +38515,23 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Application\\") ? await Application.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Group\\") ? await Group.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Organization\\") ? await Organization.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Person\\") ? await Person.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Service\\") ? await Service.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -38566,7 +38566,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await DidService.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.push(decoded); @@ -39391,7 +39391,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -39738,7 +39738,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -40739,7 +40739,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -40790,7 +40790,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote.push(decoded); @@ -40849,7 +40849,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await QuoteAuthorization.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization.push(decoded); @@ -41380,7 +41380,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -41809,7 +41809,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -42143,7 +42143,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -42483,7 +42483,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -46330,7 +46330,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -46411,7 +46411,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await CollectionPage.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _3UyUdxnyn6cDn53QKrh4MBiearma_current.push(decoded); @@ -46444,7 +46444,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await CollectionPage.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _J52RqweMe6hhv7RnLJMC8BExTE5_first.push(decoded); @@ -46477,7 +46477,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await CollectionPage.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _gyJJnyEFnuNVi1HFZKfAn3Hfn26_last.push(decoded); @@ -46513,12 +46513,12 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu && Array.isArray(v[\\"@type\\"])&& [\\"https://www.w3.org/ns/activitystreams#Object\\",\\"http://joinmastodon.org/ns#Emoji\\",\\"http://litepub.social/ns#ChatMessage\\",\\"https://gotosocial.org/ns#AnnounceAuthorization\\",\\"https://gotosocial.org/ns#LikeApproval\\",\\"https://gotosocial.org/ns#ReplyAuthorization\\",\\"https://w3id.org/fep/044f#QuoteAuthorization\\",\\"https://w3id.org/valueflows/ont/vf#Proposal\\",\\"https://www.w3.org/ns/activitystreams#Activity\\",\\"http://litepub.social/ns#EmojiReact\\",\\"https://gotosocial.org/ns#AnnounceRequest\\",\\"https://gotosocial.org/ns#LikeRequest\\",\\"https://gotosocial.org/ns#ReplyRequest\\",\\"https://w3id.org/fep/044f#QuoteRequest\\",\\"https://www.w3.org/ns/activitystreams#Accept\\",\\"https://www.w3.org/ns/activitystreams#TentativeAccept\\",\\"https://www.w3.org/ns/activitystreams#Add\\",\\"https://www.w3.org/ns/activitystreams#Announce\\",\\"https://www.w3.org/ns/activitystreams#Create\\",\\"https://www.w3.org/ns/activitystreams#Delete\\",\\"https://www.w3.org/ns/activitystreams#Dislike\\",\\"https://www.w3.org/ns/activitystreams#Flag\\",\\"https://www.w3.org/ns/activitystreams#Follow\\",\\"https://www.w3.org/ns/activitystreams#Ignore\\",\\"https://www.w3.org/ns/activitystreams#Block\\",\\"https://www.w3.org/ns/activitystreams#IntransitiveActivity\\",\\"https://www.w3.org/ns/activitystreams#Arrive\\",\\"https://www.w3.org/ns/activitystreams#Question\\",\\"https://www.w3.org/ns/activitystreams#Travel\\",\\"https://www.w3.org/ns/activitystreams#Join\\",\\"https://www.w3.org/ns/activitystreams#Leave\\",\\"https://www.w3.org/ns/activitystreams#Like\\",\\"https://www.w3.org/ns/activitystreams#Listen\\",\\"https://www.w3.org/ns/activitystreams#Move\\",\\"https://www.w3.org/ns/activitystreams#Offer\\",\\"https://www.w3.org/ns/activitystreams#Invite\\",\\"https://www.w3.org/ns/activitystreams#Read\\",\\"https://www.w3.org/ns/activitystreams#Reject\\",\\"https://www.w3.org/ns/activitystreams#TentativeReject\\",\\"https://www.w3.org/ns/activitystreams#Remove\\",\\"https://www.w3.org/ns/activitystreams#Undo\\",\\"https://www.w3.org/ns/activitystreams#Update\\",\\"https://www.w3.org/ns/activitystreams#View\\",\\"https://www.w3.org/ns/activitystreams#Application\\",\\"https://www.w3.org/ns/activitystreams#Article\\",\\"https://www.w3.org/ns/activitystreams#Collection\\",\\"https://www.w3.org/ns/activitystreams#CollectionPage\\",\\"https://www.w3.org/ns/activitystreams#OrderedCollectionPage\\",\\"https://www.w3.org/ns/activitystreams#OrderedCollection\\",\\"https://www.w3.org/ns/activitystreams#Document\\",\\"https://www.w3.org/ns/activitystreams#Audio\\",\\"https://www.w3.org/ns/activitystreams#Image\\",\\"https://www.w3.org/ns/activitystreams#Page\\",\\"https://www.w3.org/ns/activitystreams#Video\\",\\"https://www.w3.org/ns/activitystreams#Event\\",\\"https://www.w3.org/ns/activitystreams#Group\\",\\"https://www.w3.org/ns/activitystreams#Note\\",\\"https://www.w3.org/ns/activitystreams#Organization\\",\\"https://www.w3.org/ns/activitystreams#Person\\",\\"https://www.w3.org/ns/activitystreams#Place\\",\\"https://www.w3.org/ns/activitystreams#Profile\\",\\"https://www.w3.org/ns/activitystreams#Relationship\\",\\"https://www.w3.org/ns/activitystreams#Service\\",\\"https://www.w3.org/ns/activitystreams#Tombstone\\"].some( t => v[\\"@type\\"].includes(t)) ? await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& [\\"https://www.w3.org/ns/activitystreams#Link\\",\\"https://www.w3.org/ns/activitystreams#Hashtag\\",\\"https://www.w3.org/ns/activitystreams#Mention\\"].some( t => v[\\"@type\\"].includes(t)) ? await Link.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -46553,7 +46553,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _4TB9Qd9ddtcZEpMfzbHhzafE6jaJ_likesOf.push(decoded); @@ -46586,7 +46586,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _3manzgeKiPsugpztKGiaUUwJ3ito_sharesOf.push(decoded); @@ -46619,7 +46619,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _3T3oGm3twpcQUcrnMisXQtmDZ32X_repliesOf.push(decoded); @@ -46652,7 +46652,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _2bvRkAFZjMfVD8jiUWZJr5YokSeN_inboxOf.push(decoded); @@ -46685,7 +46685,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _4AHzVZDxHjK6uEWa9UiKHGK34yYm_outboxOf.push(decoded); @@ -46718,7 +46718,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _41aoZ5M6yRUHy3Zx8q6iuZQxtopb_followersOf.push(decoded); @@ -46751,7 +46751,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _2nXT2Ah42UjEEQF5oJQ39CbKB1xj_followingOf.push(decoded); @@ -46784,7 +46784,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _2bsySzmT3qEZcrnoe3tZ5xBjXSju_likedOf.push(decoded); @@ -48217,7 +48217,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -48272,7 +48272,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _2kWgBhQKjEauxx8C6qF3ZQamK4Le_partOf.push(decoded); @@ -48305,7 +48305,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await CollectionPage.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _3BT4kQLcXhHx7TAWaNDKh8nFn9eY_next.push(decoded); @@ -48338,7 +48338,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await CollectionPage.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _3b8yG8tDNzQFFEnWhCc13G8eHooA_prev.push(decoded); @@ -48712,7 +48712,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -49046,7 +49046,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -49378,7 +49378,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -50172,7 +50172,7 @@ proxyUrl?: URL | null;oauthAuthorizationEndpoint?: URL | null;oauthTokenEndpoint // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -50217,9 +50217,9 @@ proxyUrl?: URL | null;oauthAuthorizationEndpoint?: URL | null;oauthTokenEndpoint : \\"\\" ) ) - : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) + : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) ? new URL(v[\\"@id\\"]) - : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"]))); + : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl))); if (typeof decoded === \\"undefined\\") continue; _2JCYDbSxEHCCLdBYed33cCETfGyR_proxyUrl.push(decoded); } @@ -50250,9 +50250,9 @@ proxyUrl?: URL | null;oauthAuthorizationEndpoint?: URL | null;oauthTokenEndpoint : \\"\\" ) ) - : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) + : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) ? new URL(v[\\"@id\\"]) - : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"]))); + : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl))); if (typeof decoded === \\"undefined\\") continue; _25S6UmgzDead8hxL5sQFezZTAusd_oauthAuthorizationEndpoint.push(decoded); } @@ -50283,9 +50283,9 @@ proxyUrl?: URL | null;oauthAuthorizationEndpoint?: URL | null;oauthTokenEndpoint : \\"\\" ) ) - : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) + : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) ? new URL(v[\\"@id\\"]) - : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"]))); + : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl))); if (typeof decoded === \\"undefined\\") continue; _iAMxqrSba7yBCRB1FZ5kEVdKEZ3_oauthTokenEndpoint.push(decoded); } @@ -50316,9 +50316,9 @@ proxyUrl?: URL | null;oauthAuthorizationEndpoint?: URL | null;oauthTokenEndpoint : \\"\\" ) ) - : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) + : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) ? new URL(v[\\"@id\\"]) - : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"]))); + : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl))); if (typeof decoded === \\"undefined\\") continue; _8Bx9qN8oU7Bpt2xi6khaxWp1gMr_provideClientKey.push(decoded); } @@ -50349,9 +50349,9 @@ proxyUrl?: URL | null;oauthAuthorizationEndpoint?: URL | null;oauthTokenEndpoint : \\"\\" ) ) - : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) + : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) ? new URL(v[\\"@id\\"]) - : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"]))); + : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl))); if (typeof decoded === \\"undefined\\") continue; _3dU7PMVQZJpsCpo2F4RQXxBXdPmS_signClientKey.push(decoded); } @@ -50382,9 +50382,9 @@ proxyUrl?: URL | null;oauthAuthorizationEndpoint?: URL | null;oauthTokenEndpoint : \\"\\" ) ) - : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) + : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) ? new URL(v[\\"@id\\"]) - : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"]))); + : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl))); if (typeof decoded === \\"undefined\\") continue; _3JprUSDLVqqX4dwHRi37qGZZCRCc_sharedInbox.push(decoded); } @@ -50837,7 +50837,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -51172,7 +51172,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -51508,7 +51508,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -57089,7 +57089,7 @@ get preferredUsernames(): ((string | LanguageString))[] { // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -57164,7 +57164,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await CryptographicKey.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _axq166E2eZADq34V4MYUc8KMZdC_publicKey.push(decoded); @@ -57197,7 +57197,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Multikey.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.push(decoded); @@ -57250,11 +57250,11 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#OrderedCollection\\") ? await OrderedCollection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#OrderedCollectionPage\\") ? await OrderedCollectionPage.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -57291,11 +57291,11 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#OrderedCollection\\") ? await OrderedCollection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#OrderedCollectionPage\\") ? await OrderedCollectionPage.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -57330,7 +57330,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _3yAv8jymNfNuJUDuBzJ1NQhdbAee_following.push(decoded); @@ -57363,7 +57363,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _BBCTgfphhsFzpVfKTykGSpBNwoA_followers.push(decoded); @@ -57396,7 +57396,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _3bgkPwJanyTCoVFM9ovRcus8tKkU_liked.push(decoded); @@ -57429,7 +57429,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _4N1vBJzXDf8NbBumeECQMFvKetja_featured.push(decoded); @@ -57462,7 +57462,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags.push(decoded); @@ -57495,7 +57495,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.push(decoded); @@ -57516,7 +57516,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Endpoints.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints.push(decoded); @@ -57623,23 +57623,23 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Application\\") ? await Application.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Group\\") ? await Group.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Organization\\") ? await Organization.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Person\\") ? await Person.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Service\\") ? await Service.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -57676,23 +57676,23 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Application\\") ? await Application.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Group\\") ? await Group.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Organization\\") ? await Organization.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Person\\") ? await Person.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Service\\") ? await Service.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -57727,7 +57727,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await DidService.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.push(decoded); @@ -59522,7 +59522,7 @@ get names(): ((string | LanguageString))[] { // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -59575,9 +59575,9 @@ get names(): ((string | LanguageString))[] { : \\"\\" ) ) - : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) + : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) ? new URL(v[\\"@id\\"]) - : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"]))); + : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl))); if (typeof decoded === \\"undefined\\") continue; _pVjLsybKQdmkjuU7MHjiVmNnuj7_href.push(decoded); } @@ -59726,12 +59726,12 @@ get names(): ((string | LanguageString))[] { && Array.isArray(v[\\"@type\\"])&& [\\"https://www.w3.org/ns/activitystreams#Link\\",\\"https://www.w3.org/ns/activitystreams#Hashtag\\",\\"https://www.w3.org/ns/activitystreams#Mention\\"].some( t => v[\\"@type\\"].includes(t)) ? await Link.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& [\\"https://www.w3.org/ns/activitystreams#Object\\",\\"http://joinmastodon.org/ns#Emoji\\",\\"http://litepub.social/ns#ChatMessage\\",\\"https://gotosocial.org/ns#AnnounceAuthorization\\",\\"https://gotosocial.org/ns#LikeApproval\\",\\"https://gotosocial.org/ns#ReplyAuthorization\\",\\"https://w3id.org/fep/044f#QuoteAuthorization\\",\\"https://w3id.org/valueflows/ont/vf#Proposal\\",\\"https://www.w3.org/ns/activitystreams#Activity\\",\\"http://litepub.social/ns#EmojiReact\\",\\"https://gotosocial.org/ns#AnnounceRequest\\",\\"https://gotosocial.org/ns#LikeRequest\\",\\"https://gotosocial.org/ns#ReplyRequest\\",\\"https://w3id.org/fep/044f#QuoteRequest\\",\\"https://www.w3.org/ns/activitystreams#Accept\\",\\"https://www.w3.org/ns/activitystreams#TentativeAccept\\",\\"https://www.w3.org/ns/activitystreams#Add\\",\\"https://www.w3.org/ns/activitystreams#Announce\\",\\"https://www.w3.org/ns/activitystreams#Create\\",\\"https://www.w3.org/ns/activitystreams#Delete\\",\\"https://www.w3.org/ns/activitystreams#Dislike\\",\\"https://www.w3.org/ns/activitystreams#Flag\\",\\"https://www.w3.org/ns/activitystreams#Follow\\",\\"https://www.w3.org/ns/activitystreams#Ignore\\",\\"https://www.w3.org/ns/activitystreams#Block\\",\\"https://www.w3.org/ns/activitystreams#IntransitiveActivity\\",\\"https://www.w3.org/ns/activitystreams#Arrive\\",\\"https://www.w3.org/ns/activitystreams#Question\\",\\"https://www.w3.org/ns/activitystreams#Travel\\",\\"https://www.w3.org/ns/activitystreams#Join\\",\\"https://www.w3.org/ns/activitystreams#Leave\\",\\"https://www.w3.org/ns/activitystreams#Like\\",\\"https://www.w3.org/ns/activitystreams#Listen\\",\\"https://www.w3.org/ns/activitystreams#Move\\",\\"https://www.w3.org/ns/activitystreams#Offer\\",\\"https://www.w3.org/ns/activitystreams#Invite\\",\\"https://www.w3.org/ns/activitystreams#Read\\",\\"https://www.w3.org/ns/activitystreams#Reject\\",\\"https://www.w3.org/ns/activitystreams#TentativeReject\\",\\"https://www.w3.org/ns/activitystreams#Remove\\",\\"https://www.w3.org/ns/activitystreams#Undo\\",\\"https://www.w3.org/ns/activitystreams#Update\\",\\"https://www.w3.org/ns/activitystreams#View\\",\\"https://www.w3.org/ns/activitystreams#Application\\",\\"https://www.w3.org/ns/activitystreams#Article\\",\\"https://www.w3.org/ns/activitystreams#Collection\\",\\"https://www.w3.org/ns/activitystreams#CollectionPage\\",\\"https://www.w3.org/ns/activitystreams#OrderedCollectionPage\\",\\"https://www.w3.org/ns/activitystreams#OrderedCollection\\",\\"https://www.w3.org/ns/activitystreams#Document\\",\\"https://www.w3.org/ns/activitystreams#Audio\\",\\"https://www.w3.org/ns/activitystreams#Image\\",\\"https://www.w3.org/ns/activitystreams#Page\\",\\"https://www.w3.org/ns/activitystreams#Video\\",\\"https://www.w3.org/ns/activitystreams#Event\\",\\"https://www.w3.org/ns/activitystreams#Group\\",\\"https://www.w3.org/ns/activitystreams#Note\\",\\"https://www.w3.org/ns/activitystreams#Organization\\",\\"https://www.w3.org/ns/activitystreams#Person\\",\\"https://www.w3.org/ns/activitystreams#Place\\",\\"https://www.w3.org/ns/activitystreams#Profile\\",\\"https://www.w3.org/ns/activitystreams#Relationship\\",\\"https://www.w3.org/ns/activitystreams#Service\\",\\"https://www.w3.org/ns/activitystreams#Tombstone\\"].some( t => v[\\"@type\\"].includes(t)) ? await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -60205,7 +60205,7 @@ names?: ((string | LanguageString))[];language?: Intl.Locale | null;height?: num // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -60542,7 +60542,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -60877,7 +60877,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -61215,7 +61215,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -61549,7 +61549,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -61883,7 +61883,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -62217,7 +62217,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -62549,7 +62549,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -62847,7 +62847,7 @@ names?: ((string | LanguageString))[];language?: Intl.Locale | null;height?: num // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -63182,7 +63182,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -64185,7 +64185,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -64236,7 +64236,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote.push(decoded); @@ -64295,7 +64295,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await QuoteAuthorization.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization.push(decoded); @@ -64985,7 +64985,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -65039,12 +65039,12 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu && Array.isArray(v[\\"@type\\"])&& [\\"https://www.w3.org/ns/activitystreams#Object\\",\\"http://joinmastodon.org/ns#Emoji\\",\\"http://litepub.social/ns#ChatMessage\\",\\"https://gotosocial.org/ns#AnnounceAuthorization\\",\\"https://gotosocial.org/ns#LikeApproval\\",\\"https://gotosocial.org/ns#ReplyAuthorization\\",\\"https://w3id.org/fep/044f#QuoteAuthorization\\",\\"https://w3id.org/valueflows/ont/vf#Proposal\\",\\"https://www.w3.org/ns/activitystreams#Activity\\",\\"http://litepub.social/ns#EmojiReact\\",\\"https://gotosocial.org/ns#AnnounceRequest\\",\\"https://gotosocial.org/ns#LikeRequest\\",\\"https://gotosocial.org/ns#ReplyRequest\\",\\"https://w3id.org/fep/044f#QuoteRequest\\",\\"https://www.w3.org/ns/activitystreams#Accept\\",\\"https://www.w3.org/ns/activitystreams#TentativeAccept\\",\\"https://www.w3.org/ns/activitystreams#Add\\",\\"https://www.w3.org/ns/activitystreams#Announce\\",\\"https://www.w3.org/ns/activitystreams#Create\\",\\"https://www.w3.org/ns/activitystreams#Delete\\",\\"https://www.w3.org/ns/activitystreams#Dislike\\",\\"https://www.w3.org/ns/activitystreams#Flag\\",\\"https://www.w3.org/ns/activitystreams#Follow\\",\\"https://www.w3.org/ns/activitystreams#Ignore\\",\\"https://www.w3.org/ns/activitystreams#Block\\",\\"https://www.w3.org/ns/activitystreams#IntransitiveActivity\\",\\"https://www.w3.org/ns/activitystreams#Arrive\\",\\"https://www.w3.org/ns/activitystreams#Question\\",\\"https://www.w3.org/ns/activitystreams#Travel\\",\\"https://www.w3.org/ns/activitystreams#Join\\",\\"https://www.w3.org/ns/activitystreams#Leave\\",\\"https://www.w3.org/ns/activitystreams#Like\\",\\"https://www.w3.org/ns/activitystreams#Listen\\",\\"https://www.w3.org/ns/activitystreams#Move\\",\\"https://www.w3.org/ns/activitystreams#Offer\\",\\"https://www.w3.org/ns/activitystreams#Invite\\",\\"https://www.w3.org/ns/activitystreams#Read\\",\\"https://www.w3.org/ns/activitystreams#Reject\\",\\"https://www.w3.org/ns/activitystreams#TentativeReject\\",\\"https://www.w3.org/ns/activitystreams#Remove\\",\\"https://www.w3.org/ns/activitystreams#Undo\\",\\"https://www.w3.org/ns/activitystreams#Update\\",\\"https://www.w3.org/ns/activitystreams#View\\",\\"https://www.w3.org/ns/activitystreams#Application\\",\\"https://www.w3.org/ns/activitystreams#Article\\",\\"https://www.w3.org/ns/activitystreams#Collection\\",\\"https://www.w3.org/ns/activitystreams#CollectionPage\\",\\"https://www.w3.org/ns/activitystreams#OrderedCollectionPage\\",\\"https://www.w3.org/ns/activitystreams#OrderedCollection\\",\\"https://www.w3.org/ns/activitystreams#Document\\",\\"https://www.w3.org/ns/activitystreams#Audio\\",\\"https://www.w3.org/ns/activitystreams#Image\\",\\"https://www.w3.org/ns/activitystreams#Page\\",\\"https://www.w3.org/ns/activitystreams#Video\\",\\"https://www.w3.org/ns/activitystreams#Event\\",\\"https://www.w3.org/ns/activitystreams#Group\\",\\"https://www.w3.org/ns/activitystreams#Note\\",\\"https://www.w3.org/ns/activitystreams#Organization\\",\\"https://www.w3.org/ns/activitystreams#Person\\",\\"https://www.w3.org/ns/activitystreams#Place\\",\\"https://www.w3.org/ns/activitystreams#Profile\\",\\"https://www.w3.org/ns/activitystreams#Relationship\\",\\"https://www.w3.org/ns/activitystreams#Service\\",\\"https://www.w3.org/ns/activitystreams#Tombstone\\"].some( t => v[\\"@type\\"].includes(t)) ? await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& [\\"https://www.w3.org/ns/activitystreams#Link\\",\\"https://www.w3.org/ns/activitystreams#Hashtag\\",\\"https://www.w3.org/ns/activitystreams#Mention\\"].some( t => v[\\"@type\\"].includes(t)) ? await Link.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -65775,7 +65775,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -65829,12 +65829,12 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu && Array.isArray(v[\\"@type\\"])&& [\\"https://www.w3.org/ns/activitystreams#Object\\",\\"http://joinmastodon.org/ns#Emoji\\",\\"http://litepub.social/ns#ChatMessage\\",\\"https://gotosocial.org/ns#AnnounceAuthorization\\",\\"https://gotosocial.org/ns#LikeApproval\\",\\"https://gotosocial.org/ns#ReplyAuthorization\\",\\"https://w3id.org/fep/044f#QuoteAuthorization\\",\\"https://w3id.org/valueflows/ont/vf#Proposal\\",\\"https://www.w3.org/ns/activitystreams#Activity\\",\\"http://litepub.social/ns#EmojiReact\\",\\"https://gotosocial.org/ns#AnnounceRequest\\",\\"https://gotosocial.org/ns#LikeRequest\\",\\"https://gotosocial.org/ns#ReplyRequest\\",\\"https://w3id.org/fep/044f#QuoteRequest\\",\\"https://www.w3.org/ns/activitystreams#Accept\\",\\"https://www.w3.org/ns/activitystreams#TentativeAccept\\",\\"https://www.w3.org/ns/activitystreams#Add\\",\\"https://www.w3.org/ns/activitystreams#Announce\\",\\"https://www.w3.org/ns/activitystreams#Create\\",\\"https://www.w3.org/ns/activitystreams#Delete\\",\\"https://www.w3.org/ns/activitystreams#Dislike\\",\\"https://www.w3.org/ns/activitystreams#Flag\\",\\"https://www.w3.org/ns/activitystreams#Follow\\",\\"https://www.w3.org/ns/activitystreams#Ignore\\",\\"https://www.w3.org/ns/activitystreams#Block\\",\\"https://www.w3.org/ns/activitystreams#IntransitiveActivity\\",\\"https://www.w3.org/ns/activitystreams#Arrive\\",\\"https://www.w3.org/ns/activitystreams#Question\\",\\"https://www.w3.org/ns/activitystreams#Travel\\",\\"https://www.w3.org/ns/activitystreams#Join\\",\\"https://www.w3.org/ns/activitystreams#Leave\\",\\"https://www.w3.org/ns/activitystreams#Like\\",\\"https://www.w3.org/ns/activitystreams#Listen\\",\\"https://www.w3.org/ns/activitystreams#Move\\",\\"https://www.w3.org/ns/activitystreams#Offer\\",\\"https://www.w3.org/ns/activitystreams#Invite\\",\\"https://www.w3.org/ns/activitystreams#Read\\",\\"https://www.w3.org/ns/activitystreams#Reject\\",\\"https://www.w3.org/ns/activitystreams#TentativeReject\\",\\"https://www.w3.org/ns/activitystreams#Remove\\",\\"https://www.w3.org/ns/activitystreams#Undo\\",\\"https://www.w3.org/ns/activitystreams#Update\\",\\"https://www.w3.org/ns/activitystreams#View\\",\\"https://www.w3.org/ns/activitystreams#Application\\",\\"https://www.w3.org/ns/activitystreams#Article\\",\\"https://www.w3.org/ns/activitystreams#Collection\\",\\"https://www.w3.org/ns/activitystreams#CollectionPage\\",\\"https://www.w3.org/ns/activitystreams#OrderedCollectionPage\\",\\"https://www.w3.org/ns/activitystreams#OrderedCollection\\",\\"https://www.w3.org/ns/activitystreams#Document\\",\\"https://www.w3.org/ns/activitystreams#Audio\\",\\"https://www.w3.org/ns/activitystreams#Image\\",\\"https://www.w3.org/ns/activitystreams#Page\\",\\"https://www.w3.org/ns/activitystreams#Video\\",\\"https://www.w3.org/ns/activitystreams#Event\\",\\"https://www.w3.org/ns/activitystreams#Group\\",\\"https://www.w3.org/ns/activitystreams#Note\\",\\"https://www.w3.org/ns/activitystreams#Organization\\",\\"https://www.w3.org/ns/activitystreams#Person\\",\\"https://www.w3.org/ns/activitystreams#Place\\",\\"https://www.w3.org/ns/activitystreams#Profile\\",\\"https://www.w3.org/ns/activitystreams#Relationship\\",\\"https://www.w3.org/ns/activitystreams#Service\\",\\"https://www.w3.org/ns/activitystreams#Tombstone\\"].some( t => v[\\"@type\\"].includes(t)) ? await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& [\\"https://www.w3.org/ns/activitystreams#Link\\",\\"https://www.w3.org/ns/activitystreams#Hashtag\\",\\"https://www.w3.org/ns/activitystreams#Mention\\"].some( t => v[\\"@type\\"].includes(t)) ? await Link.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -71459,7 +71459,7 @@ get preferredUsernames(): ((string | LanguageString))[] { // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -71534,7 +71534,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await CryptographicKey.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _axq166E2eZADq34V4MYUc8KMZdC_publicKey.push(decoded); @@ -71567,7 +71567,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Multikey.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.push(decoded); @@ -71620,11 +71620,11 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#OrderedCollection\\") ? await OrderedCollection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#OrderedCollectionPage\\") ? await OrderedCollectionPage.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -71661,11 +71661,11 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#OrderedCollection\\") ? await OrderedCollection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#OrderedCollectionPage\\") ? await OrderedCollectionPage.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -71700,7 +71700,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _3yAv8jymNfNuJUDuBzJ1NQhdbAee_following.push(decoded); @@ -71733,7 +71733,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _BBCTgfphhsFzpVfKTykGSpBNwoA_followers.push(decoded); @@ -71766,7 +71766,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _3bgkPwJanyTCoVFM9ovRcus8tKkU_liked.push(decoded); @@ -71799,7 +71799,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _4N1vBJzXDf8NbBumeECQMFvKetja_featured.push(decoded); @@ -71832,7 +71832,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags.push(decoded); @@ -71865,7 +71865,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.push(decoded); @@ -71886,7 +71886,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Endpoints.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints.push(decoded); @@ -71993,23 +71993,23 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Application\\") ? await Application.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Group\\") ? await Group.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Organization\\") ? await Organization.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Person\\") ? await Person.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Service\\") ? await Service.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -72046,23 +72046,23 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Application\\") ? await Application.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Group\\") ? await Group.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Organization\\") ? await Organization.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Person\\") ? await Person.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Service\\") ? await Service.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -72097,7 +72097,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await DidService.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.push(decoded); @@ -72924,7 +72924,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -78505,7 +78505,7 @@ get preferredUsernames(): ((string | LanguageString))[] { // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -78580,7 +78580,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await CryptographicKey.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _axq166E2eZADq34V4MYUc8KMZdC_publicKey.push(decoded); @@ -78613,7 +78613,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Multikey.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.push(decoded); @@ -78666,11 +78666,11 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#OrderedCollection\\") ? await OrderedCollection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#OrderedCollectionPage\\") ? await OrderedCollectionPage.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -78707,11 +78707,11 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#OrderedCollection\\") ? await OrderedCollection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#OrderedCollectionPage\\") ? await OrderedCollectionPage.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -78746,7 +78746,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _3yAv8jymNfNuJUDuBzJ1NQhdbAee_following.push(decoded); @@ -78779,7 +78779,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _BBCTgfphhsFzpVfKTykGSpBNwoA_followers.push(decoded); @@ -78812,7 +78812,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _3bgkPwJanyTCoVFM9ovRcus8tKkU_liked.push(decoded); @@ -78845,7 +78845,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _4N1vBJzXDf8NbBumeECQMFvKetja_featured.push(decoded); @@ -78878,7 +78878,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags.push(decoded); @@ -78911,7 +78911,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.push(decoded); @@ -78932,7 +78932,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Endpoints.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints.push(decoded); @@ -79039,23 +79039,23 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Application\\") ? await Application.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Group\\") ? await Group.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Organization\\") ? await Organization.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Person\\") ? await Person.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Service\\") ? await Service.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -79092,23 +79092,23 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Application\\") ? await Application.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Group\\") ? await Group.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Organization\\") ? await Organization.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Person\\") ? await Person.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Service\\") ? await Service.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -79143,7 +79143,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await DidService.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.push(decoded); @@ -80426,7 +80426,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -80570,9 +80570,9 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu : \\"\\" ) ) - : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) + : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) ? new URL(v[\\"@id\\"]) - : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"]))) : undefined + : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl))) : undefined ; if (typeof decoded === \\"undefined\\") continue; _oKrwxU4V8wiKhMW1QEYQibcJh8c_units.push(decoded); @@ -81301,7 +81301,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -81352,7 +81352,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _3CLQ1PLSXrhSQbTGGHuxNyaEFKM1_describes.push(decoded); @@ -82972,7 +82972,7 @@ instruments?: (Object | URL)[];exclusiveOptions?: (Object | URL)[];inclusiveOpti // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -83023,7 +83023,7 @@ instruments?: (Object | URL)[];exclusiveOptions?: (Object | URL)[];inclusiveOpti const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _2N5scKaVEcdYHFmfKYYacAwUhUgQ_oneOf.push(decoded); @@ -83056,7 +83056,7 @@ instruments?: (Object | URL)[];exclusiveOptions?: (Object | URL)[];inclusiveOpti const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _2mV6isMTPRKbWdLCjcpiEysq5dAY_anyOf.push(decoded); @@ -83138,7 +83138,7 @@ instruments?: (Object | URL)[];exclusiveOptions?: (Object | URL)[];inclusiveOpti const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote.push(decoded); @@ -83197,7 +83197,7 @@ instruments?: (Object | URL)[];exclusiveOptions?: (Object | URL)[];inclusiveOpti const decoded = await QuoteAuthorization.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization.push(decoded); @@ -83656,7 +83656,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -83990,7 +83990,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -85506,7 +85506,7 @@ relationships?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -85557,7 +85557,7 @@ relationships?: (Object | URL)[];} const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _2Zqdmi46ZnDQsECS6mzwhrv3rUKq_subject.push(decoded); @@ -85590,7 +85590,7 @@ relationships?: (Object | URL)[];} const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _2MH19yxjn1wnHsNfa5n4JBhJzxyc_object.push(decoded); @@ -85623,7 +85623,7 @@ relationships?: (Object | URL)[];} const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _4Lzz89F9qipAQSGkWyX9DGWiUojG_relationship.push(decoded); @@ -86011,7 +86011,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -91592,7 +91592,7 @@ get preferredUsernames(): ((string | LanguageString))[] { // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -91667,7 +91667,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await CryptographicKey.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _axq166E2eZADq34V4MYUc8KMZdC_publicKey.push(decoded); @@ -91700,7 +91700,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Multikey.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.push(decoded); @@ -91753,11 +91753,11 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#OrderedCollection\\") ? await OrderedCollection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#OrderedCollectionPage\\") ? await OrderedCollectionPage.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -91794,11 +91794,11 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#OrderedCollection\\") ? await OrderedCollection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#OrderedCollectionPage\\") ? await OrderedCollectionPage.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -91833,7 +91833,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _3yAv8jymNfNuJUDuBzJ1NQhdbAee_following.push(decoded); @@ -91866,7 +91866,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _BBCTgfphhsFzpVfKTykGSpBNwoA_followers.push(decoded); @@ -91899,7 +91899,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _3bgkPwJanyTCoVFM9ovRcus8tKkU_liked.push(decoded); @@ -91932,7 +91932,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _4N1vBJzXDf8NbBumeECQMFvKetja_featured.push(decoded); @@ -91965,7 +91965,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags.push(decoded); @@ -91998,7 +91998,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.push(decoded); @@ -92019,7 +92019,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Endpoints.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints.push(decoded); @@ -92126,23 +92126,23 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Application\\") ? await Application.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Group\\") ? await Group.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Organization\\") ? await Organization.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Person\\") ? await Person.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Service\\") ? await Service.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -92179,23 +92179,23 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Application\\") ? await Application.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Group\\") ? await Group.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Organization\\") ? await Organization.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Person\\") ? await Person.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Service\\") ? await Service.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -92230,7 +92230,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await DidService.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.push(decoded); @@ -93266,7 +93266,7 @@ get contents(): ((string | LanguageString))[] { // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -93698,7 +93698,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -94032,7 +94032,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -94582,7 +94582,7 @@ get formerTypes(): (\$EntityType)[] { // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -95017,7 +95017,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -95356,7 +95356,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -95693,7 +95693,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -96030,7 +96030,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -96363,7 +96363,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } diff --git a/packages/vocab-tools/src/__snapshots__/class.test.ts.node.snap b/packages/vocab-tools/src/__snapshots__/class.test.ts.node.snap index 43c8df6f9..3246d6a4a 100644 --- a/packages/vocab-tools/src/__snapshots__/class.test.ts.node.snap +++ b/packages/vocab-tools/src/__snapshots__/class.test.ts.node.snap @@ -2334,7 +2334,11 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu \\"attachment\\"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) { - v = await this.#attachment_fromJsonLd(obj, options); + v = await this.#attachment_fromJsonLd(obj, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -2588,7 +2592,11 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu \\"attributedTo\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#attribution_fromJsonLd(doc, options); + v = await this.#attribution_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -2684,7 +2692,11 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu \\"attributedTo\\"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) { - v = await this.#attribution_fromJsonLd(obj, options); + v = await this.#attribution_fromJsonLd(obj, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -2901,7 +2913,11 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu \\"audience\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#audience_fromJsonLd(doc, options); + v = await this.#audience_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -2996,7 +3012,11 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu \\"audience\\"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) { - v = await this.#audience_fromJsonLd(obj, options); + v = await this.#audience_fromJsonLd(obj, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -3257,7 +3277,11 @@ get contents(): ((string | LanguageString))[] { \\"context\\"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) { - v = await this.#context_fromJsonLd(obj, options); + v = await this.#context_fromJsonLd(obj, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -3525,7 +3549,11 @@ get names(): ((string | LanguageString))[] { \\"generator\\"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) { - v = await this.#generator_fromJsonLd(obj, options); + v = await this.#generator_fromJsonLd(obj, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -3762,7 +3790,11 @@ get names(): ((string | LanguageString))[] { \\"icon\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#icon_fromJsonLd(doc, options); + v = await this.#icon_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -3858,7 +3890,11 @@ get names(): ((string | LanguageString))[] { \\"icon\\"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) { - v = await this.#icon_fromJsonLd(obj, options); + v = await this.#icon_fromJsonLd(obj, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -4095,7 +4131,11 @@ get names(): ((string | LanguageString))[] { \\"image\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#image_fromJsonLd(doc, options); + v = await this.#image_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -4191,7 +4231,11 @@ get names(): ((string | LanguageString))[] { \\"image\\"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) { - v = await this.#image_fromJsonLd(obj, options); + v = await this.#image_fromJsonLd(obj, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -4417,7 +4461,11 @@ get names(): ((string | LanguageString))[] { \\"inReplyTo\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#replyTarget_fromJsonLd(doc, options); + v = await this.#replyTarget_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -4512,7 +4560,11 @@ get names(): ((string | LanguageString))[] { \\"inReplyTo\\"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) { - v = await this.#replyTarget_fromJsonLd(obj, options); + v = await this.#replyTarget_fromJsonLd(obj, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -4738,7 +4790,11 @@ get names(): ((string | LanguageString))[] { \\"location\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#location_fromJsonLd(doc, options); + v = await this.#location_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -4833,7 +4889,11 @@ get names(): ((string | LanguageString))[] { \\"location\\"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) { - v = await this.#location_fromJsonLd(obj, options); + v = await this.#location_fromJsonLd(obj, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -5058,7 +5118,11 @@ get names(): ((string | LanguageString))[] { \\"preview\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#preview_fromJsonLd(doc, options); + v = await this.#preview_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -5152,7 +5216,11 @@ get names(): ((string | LanguageString))[] { \\"preview\\"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) { - v = await this.#preview_fromJsonLd(obj, options); + v = await this.#preview_fromJsonLd(obj, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -5382,7 +5450,11 @@ get names(): ((string | LanguageString))[] { \\"replies\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#replies_fromJsonLd(doc, options); + v = await this.#replies_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -5604,7 +5676,11 @@ get names(): ((string | LanguageString))[] { \\"shares\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#shares_fromJsonLd(doc, options); + v = await this.#shares_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -5826,7 +5902,11 @@ get names(): ((string | LanguageString))[] { \\"likes\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#likes_fromJsonLd(doc, options); + v = await this.#likes_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -6042,7 +6122,11 @@ get names(): ((string | LanguageString))[] { \\"emojiReactions\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#emojiReactions_fromJsonLd(doc, options); + v = await this.#emojiReactions_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -6310,7 +6394,11 @@ get summaries(): ((string | LanguageString))[] { \\"tag\\"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) { - v = await this.#tag_fromJsonLd(obj, options); + v = await this.#tag_fromJsonLd(obj, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -6561,7 +6649,11 @@ get urls(): ((URL | Link))[] { \\"to\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#to_fromJsonLd(doc, options); + v = await this.#to_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -6656,7 +6748,11 @@ get urls(): ((URL | Link))[] { \\"to\\"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) { - v = await this.#to_fromJsonLd(obj, options); + v = await this.#to_fromJsonLd(obj, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -6873,7 +6969,11 @@ get urls(): ((URL | Link))[] { \\"bto\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#bto_fromJsonLd(doc, options); + v = await this.#bto_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -6968,7 +7068,11 @@ get urls(): ((URL | Link))[] { \\"bto\\"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) { - v = await this.#bto_fromJsonLd(obj, options); + v = await this.#bto_fromJsonLd(obj, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -7185,7 +7289,11 @@ get urls(): ((URL | Link))[] { \\"cc\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#cc_fromJsonLd(doc, options); + v = await this.#cc_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -7280,7 +7388,11 @@ get urls(): ((URL | Link))[] { \\"cc\\"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) { - v = await this.#cc_fromJsonLd(obj, options); + v = await this.#cc_fromJsonLd(obj, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -7497,7 +7609,11 @@ get urls(): ((URL | Link))[] { \\"bcc\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#bcc_fromJsonLd(doc, options); + v = await this.#bcc_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -7592,7 +7708,11 @@ get urls(): ((URL | Link))[] { \\"bcc\\"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) { - v = await this.#bcc_fromJsonLd(obj, options); + v = await this.#bcc_fromJsonLd(obj, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -7872,7 +7992,11 @@ get urls(): ((URL | Link))[] { \\"proof\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#proof_fromJsonLd(doc, options); + v = await this.#proof_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -7966,7 +8090,11 @@ get urls(): ((URL | Link))[] { \\"proof\\"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) { - v = await this.#proof_fromJsonLd(obj, options); + v = await this.#proof_fromJsonLd(obj, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -8222,7 +8350,11 @@ get urls(): ((URL | Link))[] { \\"likeAuthorization\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#likeAuthorization_fromJsonLd(doc, options); + v = await this.#likeAuthorization_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -8438,7 +8570,11 @@ get urls(): ((URL | Link))[] { \\"replyAuthorization\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#replyAuthorization_fromJsonLd(doc, options); + v = await this.#replyAuthorization_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -8654,7 +8790,11 @@ get urls(): ((URL | Link))[] { \\"announceAuthorization\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#announceAuthorization_fromJsonLd(doc, options); + v = await this.#announceAuthorization_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -10202,7 +10342,7 @@ get urls(): ((URL | Link))[] { // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -10503,16 +10643,16 @@ get urls(): ((URL | Link))[] { && Array.isArray(v[\\"@type\\"])&& [\\"https://www.w3.org/ns/activitystreams#Object\\",\\"http://joinmastodon.org/ns#Emoji\\",\\"http://litepub.social/ns#ChatMessage\\",\\"https://gotosocial.org/ns#AnnounceAuthorization\\",\\"https://gotosocial.org/ns#LikeApproval\\",\\"https://gotosocial.org/ns#ReplyAuthorization\\",\\"https://w3id.org/fep/044f#QuoteAuthorization\\",\\"https://w3id.org/valueflows/ont/vf#Proposal\\",\\"https://www.w3.org/ns/activitystreams#Activity\\",\\"http://litepub.social/ns#EmojiReact\\",\\"https://gotosocial.org/ns#AnnounceRequest\\",\\"https://gotosocial.org/ns#LikeRequest\\",\\"https://gotosocial.org/ns#ReplyRequest\\",\\"https://w3id.org/fep/044f#QuoteRequest\\",\\"https://www.w3.org/ns/activitystreams#Accept\\",\\"https://www.w3.org/ns/activitystreams#TentativeAccept\\",\\"https://www.w3.org/ns/activitystreams#Add\\",\\"https://www.w3.org/ns/activitystreams#Announce\\",\\"https://www.w3.org/ns/activitystreams#Create\\",\\"https://www.w3.org/ns/activitystreams#Delete\\",\\"https://www.w3.org/ns/activitystreams#Dislike\\",\\"https://www.w3.org/ns/activitystreams#Flag\\",\\"https://www.w3.org/ns/activitystreams#Follow\\",\\"https://www.w3.org/ns/activitystreams#Ignore\\",\\"https://www.w3.org/ns/activitystreams#Block\\",\\"https://www.w3.org/ns/activitystreams#IntransitiveActivity\\",\\"https://www.w3.org/ns/activitystreams#Arrive\\",\\"https://www.w3.org/ns/activitystreams#Question\\",\\"https://www.w3.org/ns/activitystreams#Travel\\",\\"https://www.w3.org/ns/activitystreams#Join\\",\\"https://www.w3.org/ns/activitystreams#Leave\\",\\"https://www.w3.org/ns/activitystreams#Like\\",\\"https://www.w3.org/ns/activitystreams#Listen\\",\\"https://www.w3.org/ns/activitystreams#Move\\",\\"https://www.w3.org/ns/activitystreams#Offer\\",\\"https://www.w3.org/ns/activitystreams#Invite\\",\\"https://www.w3.org/ns/activitystreams#Read\\",\\"https://www.w3.org/ns/activitystreams#Reject\\",\\"https://www.w3.org/ns/activitystreams#TentativeReject\\",\\"https://www.w3.org/ns/activitystreams#Remove\\",\\"https://www.w3.org/ns/activitystreams#Undo\\",\\"https://www.w3.org/ns/activitystreams#Update\\",\\"https://www.w3.org/ns/activitystreams#View\\",\\"https://www.w3.org/ns/activitystreams#Application\\",\\"https://www.w3.org/ns/activitystreams#Article\\",\\"https://www.w3.org/ns/activitystreams#Collection\\",\\"https://www.w3.org/ns/activitystreams#CollectionPage\\",\\"https://www.w3.org/ns/activitystreams#OrderedCollectionPage\\",\\"https://www.w3.org/ns/activitystreams#OrderedCollection\\",\\"https://www.w3.org/ns/activitystreams#Document\\",\\"https://www.w3.org/ns/activitystreams#Audio\\",\\"https://www.w3.org/ns/activitystreams#Image\\",\\"https://www.w3.org/ns/activitystreams#Page\\",\\"https://www.w3.org/ns/activitystreams#Video\\",\\"https://www.w3.org/ns/activitystreams#Event\\",\\"https://www.w3.org/ns/activitystreams#Group\\",\\"https://www.w3.org/ns/activitystreams#Note\\",\\"https://www.w3.org/ns/activitystreams#Organization\\",\\"https://www.w3.org/ns/activitystreams#Person\\",\\"https://www.w3.org/ns/activitystreams#Place\\",\\"https://www.w3.org/ns/activitystreams#Profile\\",\\"https://www.w3.org/ns/activitystreams#Relationship\\",\\"https://www.w3.org/ns/activitystreams#Service\\",\\"https://www.w3.org/ns/activitystreams#Tombstone\\"].some( t => v[\\"@type\\"].includes(t)) ? await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& [\\"https://www.w3.org/ns/activitystreams#Link\\",\\"https://www.w3.org/ns/activitystreams#Hashtag\\",\\"https://www.w3.org/ns/activitystreams#Mention\\"].some( t => v[\\"@type\\"].includes(t)) ? await Link.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"http://schema.org#PropertyValue\\") ? await PropertyValue.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -10549,23 +10689,23 @@ get urls(): ((URL | Link))[] { typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Application\\") ? await Application.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Group\\") ? await Group.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Organization\\") ? await Organization.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Person\\") ? await Person.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Service\\") ? await Service.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -10600,7 +10740,7 @@ get urls(): ((URL | Link))[] { const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _3ocC3VVi88cEd5sPWL8djkZsvTN6_audience.push(decoded); @@ -10660,12 +10800,12 @@ get urls(): ((URL | Link))[] { && Array.isArray(v[\\"@type\\"])&& [\\"https://www.w3.org/ns/activitystreams#Object\\",\\"http://joinmastodon.org/ns#Emoji\\",\\"http://litepub.social/ns#ChatMessage\\",\\"https://gotosocial.org/ns#AnnounceAuthorization\\",\\"https://gotosocial.org/ns#LikeApproval\\",\\"https://gotosocial.org/ns#ReplyAuthorization\\",\\"https://w3id.org/fep/044f#QuoteAuthorization\\",\\"https://w3id.org/valueflows/ont/vf#Proposal\\",\\"https://www.w3.org/ns/activitystreams#Activity\\",\\"http://litepub.social/ns#EmojiReact\\",\\"https://gotosocial.org/ns#AnnounceRequest\\",\\"https://gotosocial.org/ns#LikeRequest\\",\\"https://gotosocial.org/ns#ReplyRequest\\",\\"https://w3id.org/fep/044f#QuoteRequest\\",\\"https://www.w3.org/ns/activitystreams#Accept\\",\\"https://www.w3.org/ns/activitystreams#TentativeAccept\\",\\"https://www.w3.org/ns/activitystreams#Add\\",\\"https://www.w3.org/ns/activitystreams#Announce\\",\\"https://www.w3.org/ns/activitystreams#Create\\",\\"https://www.w3.org/ns/activitystreams#Delete\\",\\"https://www.w3.org/ns/activitystreams#Dislike\\",\\"https://www.w3.org/ns/activitystreams#Flag\\",\\"https://www.w3.org/ns/activitystreams#Follow\\",\\"https://www.w3.org/ns/activitystreams#Ignore\\",\\"https://www.w3.org/ns/activitystreams#Block\\",\\"https://www.w3.org/ns/activitystreams#IntransitiveActivity\\",\\"https://www.w3.org/ns/activitystreams#Arrive\\",\\"https://www.w3.org/ns/activitystreams#Question\\",\\"https://www.w3.org/ns/activitystreams#Travel\\",\\"https://www.w3.org/ns/activitystreams#Join\\",\\"https://www.w3.org/ns/activitystreams#Leave\\",\\"https://www.w3.org/ns/activitystreams#Like\\",\\"https://www.w3.org/ns/activitystreams#Listen\\",\\"https://www.w3.org/ns/activitystreams#Move\\",\\"https://www.w3.org/ns/activitystreams#Offer\\",\\"https://www.w3.org/ns/activitystreams#Invite\\",\\"https://www.w3.org/ns/activitystreams#Read\\",\\"https://www.w3.org/ns/activitystreams#Reject\\",\\"https://www.w3.org/ns/activitystreams#TentativeReject\\",\\"https://www.w3.org/ns/activitystreams#Remove\\",\\"https://www.w3.org/ns/activitystreams#Undo\\",\\"https://www.w3.org/ns/activitystreams#Update\\",\\"https://www.w3.org/ns/activitystreams#View\\",\\"https://www.w3.org/ns/activitystreams#Application\\",\\"https://www.w3.org/ns/activitystreams#Article\\",\\"https://www.w3.org/ns/activitystreams#Collection\\",\\"https://www.w3.org/ns/activitystreams#CollectionPage\\",\\"https://www.w3.org/ns/activitystreams#OrderedCollectionPage\\",\\"https://www.w3.org/ns/activitystreams#OrderedCollection\\",\\"https://www.w3.org/ns/activitystreams#Document\\",\\"https://www.w3.org/ns/activitystreams#Audio\\",\\"https://www.w3.org/ns/activitystreams#Image\\",\\"https://www.w3.org/ns/activitystreams#Page\\",\\"https://www.w3.org/ns/activitystreams#Video\\",\\"https://www.w3.org/ns/activitystreams#Event\\",\\"https://www.w3.org/ns/activitystreams#Group\\",\\"https://www.w3.org/ns/activitystreams#Note\\",\\"https://www.w3.org/ns/activitystreams#Organization\\",\\"https://www.w3.org/ns/activitystreams#Person\\",\\"https://www.w3.org/ns/activitystreams#Place\\",\\"https://www.w3.org/ns/activitystreams#Profile\\",\\"https://www.w3.org/ns/activitystreams#Relationship\\",\\"https://www.w3.org/ns/activitystreams#Service\\",\\"https://www.w3.org/ns/activitystreams#Tombstone\\"].some( t => v[\\"@type\\"].includes(t)) ? await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& [\\"https://www.w3.org/ns/activitystreams#Link\\",\\"https://www.w3.org/ns/activitystreams#Hashtag\\",\\"https://www.w3.org/ns/activitystreams#Mention\\"].some( t => v[\\"@type\\"].includes(t)) ? await Link.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -10749,12 +10889,12 @@ get urls(): ((URL | Link))[] { && Array.isArray(v[\\"@type\\"])&& [\\"https://www.w3.org/ns/activitystreams#Object\\",\\"http://joinmastodon.org/ns#Emoji\\",\\"http://litepub.social/ns#ChatMessage\\",\\"https://gotosocial.org/ns#AnnounceAuthorization\\",\\"https://gotosocial.org/ns#LikeApproval\\",\\"https://gotosocial.org/ns#ReplyAuthorization\\",\\"https://w3id.org/fep/044f#QuoteAuthorization\\",\\"https://w3id.org/valueflows/ont/vf#Proposal\\",\\"https://www.w3.org/ns/activitystreams#Activity\\",\\"http://litepub.social/ns#EmojiReact\\",\\"https://gotosocial.org/ns#AnnounceRequest\\",\\"https://gotosocial.org/ns#LikeRequest\\",\\"https://gotosocial.org/ns#ReplyRequest\\",\\"https://w3id.org/fep/044f#QuoteRequest\\",\\"https://www.w3.org/ns/activitystreams#Accept\\",\\"https://www.w3.org/ns/activitystreams#TentativeAccept\\",\\"https://www.w3.org/ns/activitystreams#Add\\",\\"https://www.w3.org/ns/activitystreams#Announce\\",\\"https://www.w3.org/ns/activitystreams#Create\\",\\"https://www.w3.org/ns/activitystreams#Delete\\",\\"https://www.w3.org/ns/activitystreams#Dislike\\",\\"https://www.w3.org/ns/activitystreams#Flag\\",\\"https://www.w3.org/ns/activitystreams#Follow\\",\\"https://www.w3.org/ns/activitystreams#Ignore\\",\\"https://www.w3.org/ns/activitystreams#Block\\",\\"https://www.w3.org/ns/activitystreams#IntransitiveActivity\\",\\"https://www.w3.org/ns/activitystreams#Arrive\\",\\"https://www.w3.org/ns/activitystreams#Question\\",\\"https://www.w3.org/ns/activitystreams#Travel\\",\\"https://www.w3.org/ns/activitystreams#Join\\",\\"https://www.w3.org/ns/activitystreams#Leave\\",\\"https://www.w3.org/ns/activitystreams#Like\\",\\"https://www.w3.org/ns/activitystreams#Listen\\",\\"https://www.w3.org/ns/activitystreams#Move\\",\\"https://www.w3.org/ns/activitystreams#Offer\\",\\"https://www.w3.org/ns/activitystreams#Invite\\",\\"https://www.w3.org/ns/activitystreams#Read\\",\\"https://www.w3.org/ns/activitystreams#Reject\\",\\"https://www.w3.org/ns/activitystreams#TentativeReject\\",\\"https://www.w3.org/ns/activitystreams#Remove\\",\\"https://www.w3.org/ns/activitystreams#Undo\\",\\"https://www.w3.org/ns/activitystreams#Update\\",\\"https://www.w3.org/ns/activitystreams#View\\",\\"https://www.w3.org/ns/activitystreams#Application\\",\\"https://www.w3.org/ns/activitystreams#Article\\",\\"https://www.w3.org/ns/activitystreams#Collection\\",\\"https://www.w3.org/ns/activitystreams#CollectionPage\\",\\"https://www.w3.org/ns/activitystreams#OrderedCollectionPage\\",\\"https://www.w3.org/ns/activitystreams#OrderedCollection\\",\\"https://www.w3.org/ns/activitystreams#Document\\",\\"https://www.w3.org/ns/activitystreams#Audio\\",\\"https://www.w3.org/ns/activitystreams#Image\\",\\"https://www.w3.org/ns/activitystreams#Page\\",\\"https://www.w3.org/ns/activitystreams#Video\\",\\"https://www.w3.org/ns/activitystreams#Event\\",\\"https://www.w3.org/ns/activitystreams#Group\\",\\"https://www.w3.org/ns/activitystreams#Note\\",\\"https://www.w3.org/ns/activitystreams#Organization\\",\\"https://www.w3.org/ns/activitystreams#Person\\",\\"https://www.w3.org/ns/activitystreams#Place\\",\\"https://www.w3.org/ns/activitystreams#Profile\\",\\"https://www.w3.org/ns/activitystreams#Relationship\\",\\"https://www.w3.org/ns/activitystreams#Service\\",\\"https://www.w3.org/ns/activitystreams#Tombstone\\"].some( t => v[\\"@type\\"].includes(t)) ? await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& [\\"https://www.w3.org/ns/activitystreams#Link\\",\\"https://www.w3.org/ns/activitystreams#Hashtag\\",\\"https://www.w3.org/ns/activitystreams#Mention\\"].some( t => v[\\"@type\\"].includes(t)) ? await Link.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -10785,7 +10925,7 @@ get urls(): ((URL | Link))[] { documentLoader: options.documentLoader, contextLoader: options.contextLoader, tracerProvider: options.tracerProvider, - baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])), + baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)), }); if (_result instanceof Error) throw _result; if (_result !== undefined) { @@ -10811,7 +10951,7 @@ get urls(): ((URL | Link))[] { const decoded = await Image.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _33CjRLy5ujtsUrwRSCrsggvGdKuR_icon.push(decoded); @@ -10840,7 +10980,7 @@ get urls(): ((URL | Link))[] { documentLoader: options.documentLoader, contextLoader: options.contextLoader, tracerProvider: options.tracerProvider, - baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])), + baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)), }); if (_result instanceof Error) throw _result; if (_result !== undefined) { @@ -10866,7 +11006,7 @@ get urls(): ((URL | Link))[] { const decoded = await Image.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _3dXrUdkARxwyJLtJcYi1AJ92H41U_image.push(decoded); @@ -10902,12 +11042,12 @@ get urls(): ((URL | Link))[] { && Array.isArray(v[\\"@type\\"])&& [\\"https://www.w3.org/ns/activitystreams#Object\\",\\"http://joinmastodon.org/ns#Emoji\\",\\"http://litepub.social/ns#ChatMessage\\",\\"https://gotosocial.org/ns#AnnounceAuthorization\\",\\"https://gotosocial.org/ns#LikeApproval\\",\\"https://gotosocial.org/ns#ReplyAuthorization\\",\\"https://w3id.org/fep/044f#QuoteAuthorization\\",\\"https://w3id.org/valueflows/ont/vf#Proposal\\",\\"https://www.w3.org/ns/activitystreams#Activity\\",\\"http://litepub.social/ns#EmojiReact\\",\\"https://gotosocial.org/ns#AnnounceRequest\\",\\"https://gotosocial.org/ns#LikeRequest\\",\\"https://gotosocial.org/ns#ReplyRequest\\",\\"https://w3id.org/fep/044f#QuoteRequest\\",\\"https://www.w3.org/ns/activitystreams#Accept\\",\\"https://www.w3.org/ns/activitystreams#TentativeAccept\\",\\"https://www.w3.org/ns/activitystreams#Add\\",\\"https://www.w3.org/ns/activitystreams#Announce\\",\\"https://www.w3.org/ns/activitystreams#Create\\",\\"https://www.w3.org/ns/activitystreams#Delete\\",\\"https://www.w3.org/ns/activitystreams#Dislike\\",\\"https://www.w3.org/ns/activitystreams#Flag\\",\\"https://www.w3.org/ns/activitystreams#Follow\\",\\"https://www.w3.org/ns/activitystreams#Ignore\\",\\"https://www.w3.org/ns/activitystreams#Block\\",\\"https://www.w3.org/ns/activitystreams#IntransitiveActivity\\",\\"https://www.w3.org/ns/activitystreams#Arrive\\",\\"https://www.w3.org/ns/activitystreams#Question\\",\\"https://www.w3.org/ns/activitystreams#Travel\\",\\"https://www.w3.org/ns/activitystreams#Join\\",\\"https://www.w3.org/ns/activitystreams#Leave\\",\\"https://www.w3.org/ns/activitystreams#Like\\",\\"https://www.w3.org/ns/activitystreams#Listen\\",\\"https://www.w3.org/ns/activitystreams#Move\\",\\"https://www.w3.org/ns/activitystreams#Offer\\",\\"https://www.w3.org/ns/activitystreams#Invite\\",\\"https://www.w3.org/ns/activitystreams#Read\\",\\"https://www.w3.org/ns/activitystreams#Reject\\",\\"https://www.w3.org/ns/activitystreams#TentativeReject\\",\\"https://www.w3.org/ns/activitystreams#Remove\\",\\"https://www.w3.org/ns/activitystreams#Undo\\",\\"https://www.w3.org/ns/activitystreams#Update\\",\\"https://www.w3.org/ns/activitystreams#View\\",\\"https://www.w3.org/ns/activitystreams#Application\\",\\"https://www.w3.org/ns/activitystreams#Article\\",\\"https://www.w3.org/ns/activitystreams#Collection\\",\\"https://www.w3.org/ns/activitystreams#CollectionPage\\",\\"https://www.w3.org/ns/activitystreams#OrderedCollectionPage\\",\\"https://www.w3.org/ns/activitystreams#OrderedCollection\\",\\"https://www.w3.org/ns/activitystreams#Document\\",\\"https://www.w3.org/ns/activitystreams#Audio\\",\\"https://www.w3.org/ns/activitystreams#Image\\",\\"https://www.w3.org/ns/activitystreams#Page\\",\\"https://www.w3.org/ns/activitystreams#Video\\",\\"https://www.w3.org/ns/activitystreams#Event\\",\\"https://www.w3.org/ns/activitystreams#Group\\",\\"https://www.w3.org/ns/activitystreams#Note\\",\\"https://www.w3.org/ns/activitystreams#Organization\\",\\"https://www.w3.org/ns/activitystreams#Person\\",\\"https://www.w3.org/ns/activitystreams#Place\\",\\"https://www.w3.org/ns/activitystreams#Profile\\",\\"https://www.w3.org/ns/activitystreams#Relationship\\",\\"https://www.w3.org/ns/activitystreams#Service\\",\\"https://www.w3.org/ns/activitystreams#Tombstone\\"].some( t => v[\\"@type\\"].includes(t)) ? await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& [\\"https://www.w3.org/ns/activitystreams#Link\\",\\"https://www.w3.org/ns/activitystreams#Hashtag\\",\\"https://www.w3.org/ns/activitystreams#Mention\\"].some( t => v[\\"@type\\"].includes(t)) ? await Link.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -10945,12 +11085,12 @@ get urls(): ((URL | Link))[] { && Array.isArray(v[\\"@type\\"])&& [\\"https://www.w3.org/ns/activitystreams#Object\\",\\"http://joinmastodon.org/ns#Emoji\\",\\"http://litepub.social/ns#ChatMessage\\",\\"https://gotosocial.org/ns#AnnounceAuthorization\\",\\"https://gotosocial.org/ns#LikeApproval\\",\\"https://gotosocial.org/ns#ReplyAuthorization\\",\\"https://w3id.org/fep/044f#QuoteAuthorization\\",\\"https://w3id.org/valueflows/ont/vf#Proposal\\",\\"https://www.w3.org/ns/activitystreams#Activity\\",\\"http://litepub.social/ns#EmojiReact\\",\\"https://gotosocial.org/ns#AnnounceRequest\\",\\"https://gotosocial.org/ns#LikeRequest\\",\\"https://gotosocial.org/ns#ReplyRequest\\",\\"https://w3id.org/fep/044f#QuoteRequest\\",\\"https://www.w3.org/ns/activitystreams#Accept\\",\\"https://www.w3.org/ns/activitystreams#TentativeAccept\\",\\"https://www.w3.org/ns/activitystreams#Add\\",\\"https://www.w3.org/ns/activitystreams#Announce\\",\\"https://www.w3.org/ns/activitystreams#Create\\",\\"https://www.w3.org/ns/activitystreams#Delete\\",\\"https://www.w3.org/ns/activitystreams#Dislike\\",\\"https://www.w3.org/ns/activitystreams#Flag\\",\\"https://www.w3.org/ns/activitystreams#Follow\\",\\"https://www.w3.org/ns/activitystreams#Ignore\\",\\"https://www.w3.org/ns/activitystreams#Block\\",\\"https://www.w3.org/ns/activitystreams#IntransitiveActivity\\",\\"https://www.w3.org/ns/activitystreams#Arrive\\",\\"https://www.w3.org/ns/activitystreams#Question\\",\\"https://www.w3.org/ns/activitystreams#Travel\\",\\"https://www.w3.org/ns/activitystreams#Join\\",\\"https://www.w3.org/ns/activitystreams#Leave\\",\\"https://www.w3.org/ns/activitystreams#Like\\",\\"https://www.w3.org/ns/activitystreams#Listen\\",\\"https://www.w3.org/ns/activitystreams#Move\\",\\"https://www.w3.org/ns/activitystreams#Offer\\",\\"https://www.w3.org/ns/activitystreams#Invite\\",\\"https://www.w3.org/ns/activitystreams#Read\\",\\"https://www.w3.org/ns/activitystreams#Reject\\",\\"https://www.w3.org/ns/activitystreams#TentativeReject\\",\\"https://www.w3.org/ns/activitystreams#Remove\\",\\"https://www.w3.org/ns/activitystreams#Undo\\",\\"https://www.w3.org/ns/activitystreams#Update\\",\\"https://www.w3.org/ns/activitystreams#View\\",\\"https://www.w3.org/ns/activitystreams#Application\\",\\"https://www.w3.org/ns/activitystreams#Article\\",\\"https://www.w3.org/ns/activitystreams#Collection\\",\\"https://www.w3.org/ns/activitystreams#CollectionPage\\",\\"https://www.w3.org/ns/activitystreams#OrderedCollectionPage\\",\\"https://www.w3.org/ns/activitystreams#OrderedCollection\\",\\"https://www.w3.org/ns/activitystreams#Document\\",\\"https://www.w3.org/ns/activitystreams#Audio\\",\\"https://www.w3.org/ns/activitystreams#Image\\",\\"https://www.w3.org/ns/activitystreams#Page\\",\\"https://www.w3.org/ns/activitystreams#Video\\",\\"https://www.w3.org/ns/activitystreams#Event\\",\\"https://www.w3.org/ns/activitystreams#Group\\",\\"https://www.w3.org/ns/activitystreams#Note\\",\\"https://www.w3.org/ns/activitystreams#Organization\\",\\"https://www.w3.org/ns/activitystreams#Person\\",\\"https://www.w3.org/ns/activitystreams#Place\\",\\"https://www.w3.org/ns/activitystreams#Profile\\",\\"https://www.w3.org/ns/activitystreams#Relationship\\",\\"https://www.w3.org/ns/activitystreams#Service\\",\\"https://www.w3.org/ns/activitystreams#Tombstone\\"].some( t => v[\\"@type\\"].includes(t)) ? await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& [\\"https://www.w3.org/ns/activitystreams#Link\\",\\"https://www.w3.org/ns/activitystreams#Hashtag\\",\\"https://www.w3.org/ns/activitystreams#Mention\\"].some( t => v[\\"@type\\"].includes(t)) ? await Link.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -10988,12 +11128,12 @@ get urls(): ((URL | Link))[] { && Array.isArray(v[\\"@type\\"])&& [\\"https://www.w3.org/ns/activitystreams#Link\\",\\"https://www.w3.org/ns/activitystreams#Hashtag\\",\\"https://www.w3.org/ns/activitystreams#Mention\\"].some( t => v[\\"@type\\"].includes(t)) ? await Link.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& [\\"https://www.w3.org/ns/activitystreams#Object\\",\\"http://joinmastodon.org/ns#Emoji\\",\\"http://litepub.social/ns#ChatMessage\\",\\"https://gotosocial.org/ns#AnnounceAuthorization\\",\\"https://gotosocial.org/ns#LikeApproval\\",\\"https://gotosocial.org/ns#ReplyAuthorization\\",\\"https://w3id.org/fep/044f#QuoteAuthorization\\",\\"https://w3id.org/valueflows/ont/vf#Proposal\\",\\"https://www.w3.org/ns/activitystreams#Activity\\",\\"http://litepub.social/ns#EmojiReact\\",\\"https://gotosocial.org/ns#AnnounceRequest\\",\\"https://gotosocial.org/ns#LikeRequest\\",\\"https://gotosocial.org/ns#ReplyRequest\\",\\"https://w3id.org/fep/044f#QuoteRequest\\",\\"https://www.w3.org/ns/activitystreams#Accept\\",\\"https://www.w3.org/ns/activitystreams#TentativeAccept\\",\\"https://www.w3.org/ns/activitystreams#Add\\",\\"https://www.w3.org/ns/activitystreams#Announce\\",\\"https://www.w3.org/ns/activitystreams#Create\\",\\"https://www.w3.org/ns/activitystreams#Delete\\",\\"https://www.w3.org/ns/activitystreams#Dislike\\",\\"https://www.w3.org/ns/activitystreams#Flag\\",\\"https://www.w3.org/ns/activitystreams#Follow\\",\\"https://www.w3.org/ns/activitystreams#Ignore\\",\\"https://www.w3.org/ns/activitystreams#Block\\",\\"https://www.w3.org/ns/activitystreams#IntransitiveActivity\\",\\"https://www.w3.org/ns/activitystreams#Arrive\\",\\"https://www.w3.org/ns/activitystreams#Question\\",\\"https://www.w3.org/ns/activitystreams#Travel\\",\\"https://www.w3.org/ns/activitystreams#Join\\",\\"https://www.w3.org/ns/activitystreams#Leave\\",\\"https://www.w3.org/ns/activitystreams#Like\\",\\"https://www.w3.org/ns/activitystreams#Listen\\",\\"https://www.w3.org/ns/activitystreams#Move\\",\\"https://www.w3.org/ns/activitystreams#Offer\\",\\"https://www.w3.org/ns/activitystreams#Invite\\",\\"https://www.w3.org/ns/activitystreams#Read\\",\\"https://www.w3.org/ns/activitystreams#Reject\\",\\"https://www.w3.org/ns/activitystreams#TentativeReject\\",\\"https://www.w3.org/ns/activitystreams#Remove\\",\\"https://www.w3.org/ns/activitystreams#Undo\\",\\"https://www.w3.org/ns/activitystreams#Update\\",\\"https://www.w3.org/ns/activitystreams#View\\",\\"https://www.w3.org/ns/activitystreams#Application\\",\\"https://www.w3.org/ns/activitystreams#Article\\",\\"https://www.w3.org/ns/activitystreams#Collection\\",\\"https://www.w3.org/ns/activitystreams#CollectionPage\\",\\"https://www.w3.org/ns/activitystreams#OrderedCollectionPage\\",\\"https://www.w3.org/ns/activitystreams#OrderedCollection\\",\\"https://www.w3.org/ns/activitystreams#Document\\",\\"https://www.w3.org/ns/activitystreams#Audio\\",\\"https://www.w3.org/ns/activitystreams#Image\\",\\"https://www.w3.org/ns/activitystreams#Page\\",\\"https://www.w3.org/ns/activitystreams#Video\\",\\"https://www.w3.org/ns/activitystreams#Event\\",\\"https://www.w3.org/ns/activitystreams#Group\\",\\"https://www.w3.org/ns/activitystreams#Note\\",\\"https://www.w3.org/ns/activitystreams#Organization\\",\\"https://www.w3.org/ns/activitystreams#Person\\",\\"https://www.w3.org/ns/activitystreams#Place\\",\\"https://www.w3.org/ns/activitystreams#Profile\\",\\"https://www.w3.org/ns/activitystreams#Relationship\\",\\"https://www.w3.org/ns/activitystreams#Service\\",\\"https://www.w3.org/ns/activitystreams#Tombstone\\"].some( t => v[\\"@type\\"].includes(t)) ? await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -11050,7 +11190,7 @@ get urls(): ((URL | Link))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _7UpwM3JWcXhADcscukEehBorf6k_replies.push(decoded); @@ -11083,7 +11223,7 @@ get urls(): ((URL | Link))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _3kAfck9PcEYt2L7xug5y99YPbANs_shares.push(decoded); @@ -11116,7 +11256,7 @@ get urls(): ((URL | Link))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _S3ceDnpMdzoTRCccB9FkJWrEzYW_likes.push(decoded); @@ -11149,7 +11289,7 @@ get urls(): ((URL | Link))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _kMatyyNAuxoTD8GQMBfA5ogThMR_emojiReactions.push(decoded); @@ -11231,12 +11371,12 @@ get urls(): ((URL | Link))[] { && Array.isArray(v[\\"@type\\"])&& [\\"https://www.w3.org/ns/activitystreams#Object\\",\\"http://joinmastodon.org/ns#Emoji\\",\\"http://litepub.social/ns#ChatMessage\\",\\"https://gotosocial.org/ns#AnnounceAuthorization\\",\\"https://gotosocial.org/ns#LikeApproval\\",\\"https://gotosocial.org/ns#ReplyAuthorization\\",\\"https://w3id.org/fep/044f#QuoteAuthorization\\",\\"https://w3id.org/valueflows/ont/vf#Proposal\\",\\"https://www.w3.org/ns/activitystreams#Activity\\",\\"http://litepub.social/ns#EmojiReact\\",\\"https://gotosocial.org/ns#AnnounceRequest\\",\\"https://gotosocial.org/ns#LikeRequest\\",\\"https://gotosocial.org/ns#ReplyRequest\\",\\"https://w3id.org/fep/044f#QuoteRequest\\",\\"https://www.w3.org/ns/activitystreams#Accept\\",\\"https://www.w3.org/ns/activitystreams#TentativeAccept\\",\\"https://www.w3.org/ns/activitystreams#Add\\",\\"https://www.w3.org/ns/activitystreams#Announce\\",\\"https://www.w3.org/ns/activitystreams#Create\\",\\"https://www.w3.org/ns/activitystreams#Delete\\",\\"https://www.w3.org/ns/activitystreams#Dislike\\",\\"https://www.w3.org/ns/activitystreams#Flag\\",\\"https://www.w3.org/ns/activitystreams#Follow\\",\\"https://www.w3.org/ns/activitystreams#Ignore\\",\\"https://www.w3.org/ns/activitystreams#Block\\",\\"https://www.w3.org/ns/activitystreams#IntransitiveActivity\\",\\"https://www.w3.org/ns/activitystreams#Arrive\\",\\"https://www.w3.org/ns/activitystreams#Question\\",\\"https://www.w3.org/ns/activitystreams#Travel\\",\\"https://www.w3.org/ns/activitystreams#Join\\",\\"https://www.w3.org/ns/activitystreams#Leave\\",\\"https://www.w3.org/ns/activitystreams#Like\\",\\"https://www.w3.org/ns/activitystreams#Listen\\",\\"https://www.w3.org/ns/activitystreams#Move\\",\\"https://www.w3.org/ns/activitystreams#Offer\\",\\"https://www.w3.org/ns/activitystreams#Invite\\",\\"https://www.w3.org/ns/activitystreams#Read\\",\\"https://www.w3.org/ns/activitystreams#Reject\\",\\"https://www.w3.org/ns/activitystreams#TentativeReject\\",\\"https://www.w3.org/ns/activitystreams#Remove\\",\\"https://www.w3.org/ns/activitystreams#Undo\\",\\"https://www.w3.org/ns/activitystreams#Update\\",\\"https://www.w3.org/ns/activitystreams#View\\",\\"https://www.w3.org/ns/activitystreams#Application\\",\\"https://www.w3.org/ns/activitystreams#Article\\",\\"https://www.w3.org/ns/activitystreams#Collection\\",\\"https://www.w3.org/ns/activitystreams#CollectionPage\\",\\"https://www.w3.org/ns/activitystreams#OrderedCollectionPage\\",\\"https://www.w3.org/ns/activitystreams#OrderedCollection\\",\\"https://www.w3.org/ns/activitystreams#Document\\",\\"https://www.w3.org/ns/activitystreams#Audio\\",\\"https://www.w3.org/ns/activitystreams#Image\\",\\"https://www.w3.org/ns/activitystreams#Page\\",\\"https://www.w3.org/ns/activitystreams#Video\\",\\"https://www.w3.org/ns/activitystreams#Event\\",\\"https://www.w3.org/ns/activitystreams#Group\\",\\"https://www.w3.org/ns/activitystreams#Note\\",\\"https://www.w3.org/ns/activitystreams#Organization\\",\\"https://www.w3.org/ns/activitystreams#Person\\",\\"https://www.w3.org/ns/activitystreams#Place\\",\\"https://www.w3.org/ns/activitystreams#Profile\\",\\"https://www.w3.org/ns/activitystreams#Relationship\\",\\"https://www.w3.org/ns/activitystreams#Service\\",\\"https://www.w3.org/ns/activitystreams#Tombstone\\"].some( t => v[\\"@type\\"].includes(t)) ? await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& [\\"https://www.w3.org/ns/activitystreams#Link\\",\\"https://www.w3.org/ns/activitystreams#Hashtag\\",\\"https://www.w3.org/ns/activitystreams#Mention\\"].some( t => v[\\"@type\\"].includes(t)) ? await Link.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -11295,13 +11435,13 @@ get urls(): ((URL | Link))[] { : \\"\\" ) ) - : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) + : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) ? new URL(v[\\"@id\\"]) - : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"]))) : typeof v === \\"object\\" && \\"@type\\" in v + : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl))) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& [\\"https://www.w3.org/ns/activitystreams#Link\\",\\"https://www.w3.org/ns/activitystreams#Hashtag\\",\\"https://www.w3.org/ns/activitystreams#Mention\\"].some( t => v[\\"@type\\"].includes(t)) ? await Link.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -11336,7 +11476,7 @@ get urls(): ((URL | Link))[] { const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _3hFbw7DTpHhq3cvVhkY8njhcsXbd_to.push(decoded); @@ -11369,7 +11509,7 @@ get urls(): ((URL | Link))[] { const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _aLZupjwL8XB7tzdLgCMXdjZ6qej_bto.push(decoded); @@ -11402,7 +11542,7 @@ get urls(): ((URL | Link))[] { const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _42a1SvBs24QSLzKcfjCyNTjW5a1g_cc.push(decoded); @@ -11435,7 +11575,7 @@ get urls(): ((URL | Link))[] { const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _3qvegKUB8YLgTXRpEf8E6JZSkz2H_bcc.push(decoded); @@ -11510,7 +11650,7 @@ get urls(): ((URL | Link))[] { const decoded = await Source.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _2ZwCFoS787v8y8bXKjMoE6MAbrEB_source.push(decoded); @@ -11543,7 +11683,7 @@ get urls(): ((URL | Link))[] { const decoded = await DataIntegrityProof.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _42rPnotok1ivQ2RNCKNbeFJgx8b8_proof.push(decoded); @@ -11564,7 +11704,7 @@ get urls(): ((URL | Link))[] { const decoded = await InteractionPolicy.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _2MHQfh2N74MMmDLDqYWFo7TxYQK2_interactionPolicy.push(decoded); @@ -11596,9 +11736,9 @@ get urls(): ((URL | Link))[] { : \\"\\" ) ) - : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) + : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) ? new URL(v[\\"@id\\"]) - : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"]))); + : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl))); if (typeof decoded === \\"undefined\\") continue; _23YiVs2miQcEiUdn4u8SvjQKWYim_approvedBy.push(decoded); } @@ -11630,7 +11770,7 @@ get urls(): ((URL | Link))[] { const decoded = await LikeAuthorization.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _3fCeb5aXaDDd4fvkQ96BLWifBUBa_likeAuthorization.push(decoded); @@ -11663,7 +11803,7 @@ get urls(): ((URL | Link))[] { const decoded = await ReplyAuthorization.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _YA4wdUW7rYztAQ6SjhMnJCmcmtP_replyAuthorization.push(decoded); @@ -11696,7 +11836,7 @@ get urls(): ((URL | Link))[] { const decoded = await AnnounceAuthorization.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _446xEaDBs3Fz6MyzP3PSBaLupkbJ_announceAuthorization.push(decoded); @@ -12874,7 +13014,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -13311,7 +13451,11 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu \\"quote\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#quote_fromJsonLd(doc, options); + v = await this.#quote_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -13550,7 +13694,11 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu \\"quoteAuthorization\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#quoteAuthorization_fromJsonLd(doc, options); + v = await this.#quoteAuthorization_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -13872,7 +14020,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -13923,7 +14071,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote.push(decoded); @@ -13982,7 +14130,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await QuoteAuthorization.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization.push(decoded); @@ -14928,7 +15076,11 @@ instruments?: (Object | URL)[];} \\"actor\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#actor_fromJsonLd(doc, options); + v = await this.#actor_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -15024,7 +15176,11 @@ instruments?: (Object | URL)[];} \\"actor\\"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) { - v = await this.#actor_fromJsonLd(obj, options); + v = await this.#actor_fromJsonLd(obj, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -15242,7 +15398,11 @@ instruments?: (Object | URL)[];} \\"object\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#object_fromJsonLd(doc, options); + v = await this.#object_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -15338,7 +15498,11 @@ instruments?: (Object | URL)[];} \\"object\\"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) { - v = await this.#object_fromJsonLd(obj, options); + v = await this.#object_fromJsonLd(obj, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -15559,7 +15723,11 @@ instruments?: (Object | URL)[];} \\"target\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#target_fromJsonLd(doc, options); + v = await this.#target_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -15658,7 +15826,11 @@ instruments?: (Object | URL)[];} \\"target\\"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) { - v = await this.#target_fromJsonLd(obj, options); + v = await this.#target_fromJsonLd(obj, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -15876,7 +16048,11 @@ instruments?: (Object | URL)[];} \\"result\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#result_fromJsonLd(doc, options); + v = await this.#result_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -15972,7 +16148,11 @@ instruments?: (Object | URL)[];} \\"result\\"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) { - v = await this.#result_fromJsonLd(obj, options); + v = await this.#result_fromJsonLd(obj, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -16191,7 +16371,11 @@ instruments?: (Object | URL)[];} \\"origin\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#origin_fromJsonLd(doc, options); + v = await this.#origin_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -16288,7 +16472,11 @@ instruments?: (Object | URL)[];} \\"origin\\"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) { - v = await this.#origin_fromJsonLd(obj, options); + v = await this.#origin_fromJsonLd(obj, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -16505,7 +16693,11 @@ instruments?: (Object | URL)[];} \\"instrument\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#instrument_fromJsonLd(doc, options); + v = await this.#instrument_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -16600,7 +16792,11 @@ instruments?: (Object | URL)[];} \\"instrument\\"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) { - v = await this.#instrument_fromJsonLd(obj, options); + v = await this.#instrument_fromJsonLd(obj, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -16881,7 +17077,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -17070,23 +17266,23 @@ instruments?: (Object | URL)[];} typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Application\\") ? await Application.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Group\\") ? await Group.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Organization\\") ? await Organization.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Person\\") ? await Person.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Service\\") ? await Service.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -17121,7 +17317,7 @@ instruments?: (Object | URL)[];} const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _2MH19yxjn1wnHsNfa5n4JBhJzxyc_object.push(decoded); @@ -17154,7 +17350,7 @@ instruments?: (Object | URL)[];} const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _3JQCmF2Ww56Ag9EWRYoSZRDNCYtF_target.push(decoded); @@ -17187,7 +17383,7 @@ instruments?: (Object | URL)[];} const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _u4QGFbRFcYmPEKGbPv1hpBR9r5G_result.push(decoded); @@ -17220,7 +17416,7 @@ instruments?: (Object | URL)[];} const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _25zu2s3VxVujgEKqrDycjE284XQR_origin.push(decoded); @@ -17253,7 +17449,7 @@ instruments?: (Object | URL)[];} const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _3c5t2x7DYRo2shwTxpkd4kYSS5WQ_instrument.push(decoded); @@ -17724,7 +17920,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -18227,7 +18423,7 @@ name?: string | LanguageString | null;value?: string | LanguageString | null;} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -18813,7 +19009,7 @@ unit?: string | null;numericalValue?: Decimal | null;} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -19312,7 +19508,11 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu \\"interactingObject\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#interactingObject_fromJsonLd(doc, options); + v = await this.#interactingObject_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -19527,7 +19727,11 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu \\"interactionTarget\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#interactionTarget_fromJsonLd(doc, options); + v = await this.#interactionTarget_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -19804,7 +20008,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -19855,7 +20059,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject.push(decoded); @@ -19888,7 +20092,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget.push(decoded); @@ -20253,7 +20457,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -20844,7 +21048,7 @@ canLike?: InteractionRule | null;canReply?: InteractionRule | null;canAnnounce?: // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -20878,7 +21082,7 @@ canLike?: InteractionRule | null;canReply?: InteractionRule | null;canAnnounce?: const decoded = await InteractionRule.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _3JkwVLb3BNCwCWdsb5RftGAg8vyT_canLike.push(decoded); @@ -20899,7 +21103,7 @@ canLike?: InteractionRule | null;canReply?: InteractionRule | null;canAnnounce?: const decoded = await InteractionRule.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _2UBgLRi5p3DRGGvWyB227i4Qjhzd_canReply.push(decoded); @@ -20920,7 +21124,7 @@ canLike?: InteractionRule | null;canReply?: InteractionRule | null;canAnnounce?: const decoded = await InteractionRule.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _fu5nmoAj528fBQfnxhY9Daok3Vi_canAnnounce.push(decoded); @@ -20941,7 +21145,7 @@ canLike?: InteractionRule | null;canReply?: InteractionRule | null;canAnnounce?: const decoded = await InteractionRule.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _LE3zBTVacTZw2LSyLt4wVUkXeUy_canQuote.push(decoded); @@ -21592,7 +21796,7 @@ get manualApprovals(): (URL)[] { // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -21637,9 +21841,9 @@ get manualApprovals(): (URL)[] { : \\"\\" ) ) - : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) + : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) ? new URL(v[\\"@id\\"]) - : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"]))); + : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl))); if (typeof decoded === \\"undefined\\") continue; _2rFyCF14HoyNjitj9PmCzek5iSsg_automaticApproval.push(decoded); } @@ -21670,9 +21874,9 @@ get manualApprovals(): (URL)[] { : \\"\\" ) ) - : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) + : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) ? new URL(v[\\"@id\\"]) - : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"]))); + : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl))); if (typeof decoded === \\"undefined\\") continue; _sxj8y5XMMMBWUnRYFw85MKedCMj_manualApproval.push(decoded); } @@ -22132,7 +22336,11 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu \\"interactingObject\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#interactingObject_fromJsonLd(doc, options); + v = await this.#interactingObject_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -22347,7 +22555,11 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu \\"interactionTarget\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#interactionTarget_fromJsonLd(doc, options); + v = await this.#interactionTarget_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -22624,7 +22836,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -22675,7 +22887,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject.push(decoded); @@ -22708,7 +22920,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget.push(decoded); @@ -23072,7 +23284,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -23484,7 +23696,11 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu \\"interactingObject\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#interactingObject_fromJsonLd(doc, options); + v = await this.#interactingObject_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -23699,7 +23915,11 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu \\"interactionTarget\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#interactionTarget_fromJsonLd(doc, options); + v = await this.#interactionTarget_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -23976,7 +24196,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -24027,7 +24247,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject.push(decoded); @@ -24060,7 +24280,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget.push(decoded); @@ -24424,7 +24644,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -24835,7 +25055,11 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu \\"interactingObject\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#interactingObject_fromJsonLd(doc, options); + v = await this.#interactingObject_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -25050,7 +25274,11 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu \\"interactionTarget\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#interactionTarget_fromJsonLd(doc, options); + v = await this.#interactionTarget_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -25327,7 +25555,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -25378,7 +25606,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject.push(decoded); @@ -25411,7 +25639,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget.push(decoded); @@ -25775,7 +26003,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -26220,7 +26448,7 @@ get endpoints(): (URL)[] { // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -26269,9 +26497,9 @@ get endpoints(): (URL)[] { : \\"\\" ) ) - : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) + : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) ? new URL(v[\\"@id\\"]) - : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"]))); + : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl))); if (typeof decoded === \\"undefined\\") continue; _2KM4fetG6FTJ1cphj76rzJ8Dyv7p_serviceEndpoint.push(decoded); } @@ -26573,7 +26801,7 @@ endpoints?: (URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -27391,7 +27619,7 @@ cryptosuite?: \\"eddsa-jcs-2022\\" | null;verificationMethod?: Multikey | URL | // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -27455,7 +27683,7 @@ cryptosuite?: \\"eddsa-jcs-2022\\" | null;verificationMethod?: Multikey | URL | const decoded = await Multikey.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _2mHVKxqA7zncjveJrDEo3pWpMZqg_verificationMethod.push(decoded); @@ -28081,7 +28309,11 @@ owner?: Application | Group | Organization | Person | Service | URL | null;publi \\"owner\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#owner_fromJsonLd(doc, options); + v = await this.#owner_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -28356,7 +28588,7 @@ owner?: Application | Group | Organization | Person | Service | URL | null;publi // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -28404,23 +28636,23 @@ owner?: Application | Group | Organization | Person | Service | URL | null;publi typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Application\\") ? await Application.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Group\\") ? await Group.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Organization\\") ? await Organization.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Person\\") ? await Person.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Service\\") ? await Service.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -28952,7 +29184,11 @@ controller?: Application | Group | Organization | Person | Service | URL | null; \\"controller\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#controller_fromJsonLd(doc, options); + v = await this.#controller_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -29234,7 +29470,7 @@ controller?: Application | Group | Organization | Person | Service | URL | null; // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -29282,23 +29518,23 @@ controller?: Application | Group | Organization | Person | Service | URL | null; typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Application\\") ? await Application.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Group\\") ? await Group.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Organization\\") ? await Organization.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Person\\") ? await Person.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Service\\") ? await Service.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -30069,7 +30305,7 @@ action?: string | null;resourceConformsTo?: URL | null;resourceQuantity?: Measur // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -30132,9 +30368,9 @@ action?: string | null;resourceConformsTo?: URL | null;resourceQuantity?: Measur : \\"\\" ) ) - : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) + : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) ? new URL(v[\\"@id\\"]) - : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"]))); + : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl))); if (typeof decoded === \\"undefined\\") continue; _BBAeMUUQDwBQn6cvu3P2Csd6b6h_resourceConformsTo.push(decoded); } @@ -30154,7 +30390,7 @@ action?: string | null;resourceConformsTo?: URL | null;resourceQuantity?: Measur const decoded = await Measure.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _2dLfqTbbRiggEcMQWbHpxkQrtmrc_resourceQuantity.push(decoded); @@ -30175,7 +30411,7 @@ action?: string | null;resourceConformsTo?: URL | null;resourceQuantity?: Measur const decoded = await Measure.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _YmNSnuih3Zk4VdR5JPVnQYroLAh_availableQuantity.push(decoded); @@ -30196,7 +30432,7 @@ action?: string | null;resourceConformsTo?: URL | null;resourceQuantity?: Measur const decoded = await Measure.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _3XueAFds2NBrqNpnV8b7aC8hV72S_minimumQuantity.push(decoded); @@ -30941,7 +31177,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -30998,7 +31234,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Intent.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _sS5LvXX8cn4c3x6ux836AwYbTyJ_publishes.push(decoded); @@ -31019,7 +31255,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Intent.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _Z4ntJgFwR9BaNTbFvkRTGNEwUwy_reciprocal.push(decoded); @@ -31434,7 +31670,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -31774,7 +32010,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -32109,7 +32345,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -33385,7 +33621,11 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"publicKey\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#publicKey_fromJsonLd(doc, options); + v = await this.#publicKey_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -33478,7 +33718,11 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"publicKey\\"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) { - v = await this.#publicKey_fromJsonLd(obj, options); + v = await this.#publicKey_fromJsonLd(obj, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -33697,7 +33941,11 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"assertionMethod\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#assertionMethod_fromJsonLd(doc, options); + v = await this.#assertionMethod_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -33794,7 +34042,11 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"assertionMethod\\"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) { - v = await this.#assertionMethod_fromJsonLd(obj, options); + v = await this.#assertionMethod_fromJsonLd(obj, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -34050,7 +34302,11 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"inbox\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#inbox_fromJsonLd(doc, options); + v = await this.#inbox_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -34283,7 +34539,11 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"outbox\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#outbox_fromJsonLd(doc, options); + v = await this.#outbox_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -34502,7 +34762,11 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"following\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#following_fromJsonLd(doc, options); + v = await this.#following_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -34724,7 +34988,11 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"followers\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#followers_fromJsonLd(doc, options); + v = await this.#followers_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -34944,7 +35212,11 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"liked\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#liked_fromJsonLd(doc, options); + v = await this.#liked_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -35162,7 +35434,11 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"featured\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#featured_fromJsonLd(doc, options); + v = await this.#featured_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -35380,7 +35656,11 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"featuredTags\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#featuredTags_fromJsonLd(doc, options); + v = await this.#featuredTags_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -35596,7 +35876,11 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"streams\\"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) { - v = await this.#stream_fromJsonLd(obj, options); + v = await this.#stream_fromJsonLd(obj, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -35922,7 +36206,11 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"movedTo\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#successor_fromJsonLd(doc, options); + v = await this.#successor_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -36176,7 +36464,11 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"alsoKnownAs\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#alias_fromJsonLd(doc, options); + v = await this.#alias_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -36273,7 +36565,11 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"alsoKnownAs\\"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) { - v = await this.#alias_fromJsonLd(obj, options); + v = await this.#alias_fromJsonLd(obj, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -36492,7 +36788,11 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"service\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#service_fromJsonLd(doc, options); + v = await this.#service_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -36589,7 +36889,11 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"service\\"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) { - v = await this.#service_fromJsonLd(obj, options); + v = await this.#service_fromJsonLd(obj, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -37622,7 +37926,7 @@ get preferredUsernames(): ((string | LanguageString))[] { // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -37697,7 +38001,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await CryptographicKey.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _axq166E2eZADq34V4MYUc8KMZdC_publicKey.push(decoded); @@ -37730,7 +38034,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Multikey.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.push(decoded); @@ -37783,11 +38087,11 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#OrderedCollection\\") ? await OrderedCollection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#OrderedCollectionPage\\") ? await OrderedCollectionPage.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -37824,11 +38128,11 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#OrderedCollection\\") ? await OrderedCollection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#OrderedCollectionPage\\") ? await OrderedCollectionPage.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -37863,7 +38167,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _3yAv8jymNfNuJUDuBzJ1NQhdbAee_following.push(decoded); @@ -37896,7 +38200,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _BBCTgfphhsFzpVfKTykGSpBNwoA_followers.push(decoded); @@ -37929,7 +38233,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _3bgkPwJanyTCoVFM9ovRcus8tKkU_liked.push(decoded); @@ -37962,7 +38266,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _4N1vBJzXDf8NbBumeECQMFvKetja_featured.push(decoded); @@ -37995,7 +38299,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags.push(decoded); @@ -38028,7 +38332,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.push(decoded); @@ -38049,7 +38353,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Endpoints.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints.push(decoded); @@ -38156,23 +38460,23 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Application\\") ? await Application.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Group\\") ? await Group.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Organization\\") ? await Organization.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Person\\") ? await Person.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Service\\") ? await Service.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -38209,23 +38513,23 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Application\\") ? await Application.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Group\\") ? await Group.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Organization\\") ? await Organization.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Person\\") ? await Person.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Service\\") ? await Service.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -38260,7 +38564,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await DidService.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.push(decoded); @@ -39085,7 +39389,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -39432,7 +39736,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -39864,7 +40168,11 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu \\"quote\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#quote_fromJsonLd(doc, options); + v = await this.#quote_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -40103,7 +40411,11 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu \\"quoteAuthorization\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#quoteAuthorization_fromJsonLd(doc, options); + v = await this.#quoteAuthorization_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -40425,7 +40737,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -40476,7 +40788,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote.push(decoded); @@ -40535,7 +40847,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await QuoteAuthorization.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization.push(decoded); @@ -41066,7 +41378,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -41495,7 +41807,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -41829,7 +42141,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -42169,7 +42481,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -42924,7 +43236,11 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu \\"current\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#current_fromJsonLd(doc, options); + v = await this.#current_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -43140,7 +43456,11 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu \\"first\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#first_fromJsonLd(doc, options); + v = await this.#first_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -43356,7 +43676,11 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu \\"last\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#last_fromJsonLd(doc, options); + v = await this.#last_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -43582,7 +43906,11 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu \\"items\\"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) { - v = await this.#item_fromJsonLd(obj, options); + v = await this.#item_fromJsonLd(obj, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -43798,7 +44126,11 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu \\"likesOf\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#likesOf_fromJsonLd(doc, options); + v = await this.#likesOf_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -44013,7 +44345,11 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu \\"sharesOf\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#sharesOf_fromJsonLd(doc, options); + v = await this.#sharesOf_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -44228,7 +44564,11 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu \\"repliesOf\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#repliesOf_fromJsonLd(doc, options); + v = await this.#repliesOf_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -44443,7 +44783,11 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu \\"inboxOf\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#inboxOf_fromJsonLd(doc, options); + v = await this.#inboxOf_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -44658,7 +45002,11 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu \\"outboxOf\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#outboxOf_fromJsonLd(doc, options); + v = await this.#outboxOf_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -44873,7 +45221,11 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu \\"followersOf\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#followersOf_fromJsonLd(doc, options); + v = await this.#followersOf_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -45088,7 +45440,11 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu \\"followingOf\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#followingOf_fromJsonLd(doc, options); + v = await this.#followingOf_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -45303,7 +45659,11 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu \\"likedOf\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#likedOf_fromJsonLd(doc, options); + v = await this.#likedOf_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -45968,7 +46328,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -46049,7 +46409,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await CollectionPage.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _3UyUdxnyn6cDn53QKrh4MBiearma_current.push(decoded); @@ -46082,7 +46442,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await CollectionPage.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _J52RqweMe6hhv7RnLJMC8BExTE5_first.push(decoded); @@ -46115,7 +46475,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await CollectionPage.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _gyJJnyEFnuNVi1HFZKfAn3Hfn26_last.push(decoded); @@ -46151,12 +46511,12 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu && Array.isArray(v[\\"@type\\"])&& [\\"https://www.w3.org/ns/activitystreams#Object\\",\\"http://joinmastodon.org/ns#Emoji\\",\\"http://litepub.social/ns#ChatMessage\\",\\"https://gotosocial.org/ns#AnnounceAuthorization\\",\\"https://gotosocial.org/ns#LikeApproval\\",\\"https://gotosocial.org/ns#ReplyAuthorization\\",\\"https://w3id.org/fep/044f#QuoteAuthorization\\",\\"https://w3id.org/valueflows/ont/vf#Proposal\\",\\"https://www.w3.org/ns/activitystreams#Activity\\",\\"http://litepub.social/ns#EmojiReact\\",\\"https://gotosocial.org/ns#AnnounceRequest\\",\\"https://gotosocial.org/ns#LikeRequest\\",\\"https://gotosocial.org/ns#ReplyRequest\\",\\"https://w3id.org/fep/044f#QuoteRequest\\",\\"https://www.w3.org/ns/activitystreams#Accept\\",\\"https://www.w3.org/ns/activitystreams#TentativeAccept\\",\\"https://www.w3.org/ns/activitystreams#Add\\",\\"https://www.w3.org/ns/activitystreams#Announce\\",\\"https://www.w3.org/ns/activitystreams#Create\\",\\"https://www.w3.org/ns/activitystreams#Delete\\",\\"https://www.w3.org/ns/activitystreams#Dislike\\",\\"https://www.w3.org/ns/activitystreams#Flag\\",\\"https://www.w3.org/ns/activitystreams#Follow\\",\\"https://www.w3.org/ns/activitystreams#Ignore\\",\\"https://www.w3.org/ns/activitystreams#Block\\",\\"https://www.w3.org/ns/activitystreams#IntransitiveActivity\\",\\"https://www.w3.org/ns/activitystreams#Arrive\\",\\"https://www.w3.org/ns/activitystreams#Question\\",\\"https://www.w3.org/ns/activitystreams#Travel\\",\\"https://www.w3.org/ns/activitystreams#Join\\",\\"https://www.w3.org/ns/activitystreams#Leave\\",\\"https://www.w3.org/ns/activitystreams#Like\\",\\"https://www.w3.org/ns/activitystreams#Listen\\",\\"https://www.w3.org/ns/activitystreams#Move\\",\\"https://www.w3.org/ns/activitystreams#Offer\\",\\"https://www.w3.org/ns/activitystreams#Invite\\",\\"https://www.w3.org/ns/activitystreams#Read\\",\\"https://www.w3.org/ns/activitystreams#Reject\\",\\"https://www.w3.org/ns/activitystreams#TentativeReject\\",\\"https://www.w3.org/ns/activitystreams#Remove\\",\\"https://www.w3.org/ns/activitystreams#Undo\\",\\"https://www.w3.org/ns/activitystreams#Update\\",\\"https://www.w3.org/ns/activitystreams#View\\",\\"https://www.w3.org/ns/activitystreams#Application\\",\\"https://www.w3.org/ns/activitystreams#Article\\",\\"https://www.w3.org/ns/activitystreams#Collection\\",\\"https://www.w3.org/ns/activitystreams#CollectionPage\\",\\"https://www.w3.org/ns/activitystreams#OrderedCollectionPage\\",\\"https://www.w3.org/ns/activitystreams#OrderedCollection\\",\\"https://www.w3.org/ns/activitystreams#Document\\",\\"https://www.w3.org/ns/activitystreams#Audio\\",\\"https://www.w3.org/ns/activitystreams#Image\\",\\"https://www.w3.org/ns/activitystreams#Page\\",\\"https://www.w3.org/ns/activitystreams#Video\\",\\"https://www.w3.org/ns/activitystreams#Event\\",\\"https://www.w3.org/ns/activitystreams#Group\\",\\"https://www.w3.org/ns/activitystreams#Note\\",\\"https://www.w3.org/ns/activitystreams#Organization\\",\\"https://www.w3.org/ns/activitystreams#Person\\",\\"https://www.w3.org/ns/activitystreams#Place\\",\\"https://www.w3.org/ns/activitystreams#Profile\\",\\"https://www.w3.org/ns/activitystreams#Relationship\\",\\"https://www.w3.org/ns/activitystreams#Service\\",\\"https://www.w3.org/ns/activitystreams#Tombstone\\"].some( t => v[\\"@type\\"].includes(t)) ? await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& [\\"https://www.w3.org/ns/activitystreams#Link\\",\\"https://www.w3.org/ns/activitystreams#Hashtag\\",\\"https://www.w3.org/ns/activitystreams#Mention\\"].some( t => v[\\"@type\\"].includes(t)) ? await Link.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -46191,7 +46551,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _4TB9Qd9ddtcZEpMfzbHhzafE6jaJ_likesOf.push(decoded); @@ -46224,7 +46584,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _3manzgeKiPsugpztKGiaUUwJ3ito_sharesOf.push(decoded); @@ -46257,7 +46617,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _3T3oGm3twpcQUcrnMisXQtmDZ32X_repliesOf.push(decoded); @@ -46290,7 +46650,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _2bvRkAFZjMfVD8jiUWZJr5YokSeN_inboxOf.push(decoded); @@ -46323,7 +46683,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _4AHzVZDxHjK6uEWa9UiKHGK34yYm_outboxOf.push(decoded); @@ -46356,7 +46716,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _41aoZ5M6yRUHy3Zx8q6iuZQxtopb_followersOf.push(decoded); @@ -46389,7 +46749,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _2nXT2Ah42UjEEQF5oJQ39CbKB1xj_followingOf.push(decoded); @@ -46422,7 +46782,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _2bsySzmT3qEZcrnoe3tZ5xBjXSju_likedOf.push(decoded); @@ -47102,7 +47462,11 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu \\"partOf\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#partOf_fromJsonLd(doc, options); + v = await this.#partOf_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -47316,7 +47680,11 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu \\"next\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#next_fromJsonLd(doc, options); + v = await this.#next_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -47531,7 +47899,11 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu \\"prev\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#prev_fromJsonLd(doc, options); + v = await this.#prev_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -47843,7 +48215,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -47898,7 +48270,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _2kWgBhQKjEauxx8C6qF3ZQamK4Le_partOf.push(decoded); @@ -47931,7 +48303,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await CollectionPage.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _3BT4kQLcXhHx7TAWaNDKh8nFn9eY_next.push(decoded); @@ -47964,7 +48336,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await CollectionPage.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _3b8yG8tDNzQFFEnWhCc13G8eHooA_prev.push(decoded); @@ -48338,7 +48710,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -48672,7 +49044,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -49004,7 +49376,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -49798,7 +50170,7 @@ proxyUrl?: URL | null;oauthAuthorizationEndpoint?: URL | null;oauthTokenEndpoint // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -49843,9 +50215,9 @@ proxyUrl?: URL | null;oauthAuthorizationEndpoint?: URL | null;oauthTokenEndpoint : \\"\\" ) ) - : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) + : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) ? new URL(v[\\"@id\\"]) - : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"]))); + : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl))); if (typeof decoded === \\"undefined\\") continue; _2JCYDbSxEHCCLdBYed33cCETfGyR_proxyUrl.push(decoded); } @@ -49876,9 +50248,9 @@ proxyUrl?: URL | null;oauthAuthorizationEndpoint?: URL | null;oauthTokenEndpoint : \\"\\" ) ) - : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) + : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) ? new URL(v[\\"@id\\"]) - : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"]))); + : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl))); if (typeof decoded === \\"undefined\\") continue; _25S6UmgzDead8hxL5sQFezZTAusd_oauthAuthorizationEndpoint.push(decoded); } @@ -49909,9 +50281,9 @@ proxyUrl?: URL | null;oauthAuthorizationEndpoint?: URL | null;oauthTokenEndpoint : \\"\\" ) ) - : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) + : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) ? new URL(v[\\"@id\\"]) - : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"]))); + : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl))); if (typeof decoded === \\"undefined\\") continue; _iAMxqrSba7yBCRB1FZ5kEVdKEZ3_oauthTokenEndpoint.push(decoded); } @@ -49942,9 +50314,9 @@ proxyUrl?: URL | null;oauthAuthorizationEndpoint?: URL | null;oauthTokenEndpoint : \\"\\" ) ) - : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) + : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) ? new URL(v[\\"@id\\"]) - : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"]))); + : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl))); if (typeof decoded === \\"undefined\\") continue; _8Bx9qN8oU7Bpt2xi6khaxWp1gMr_provideClientKey.push(decoded); } @@ -49975,9 +50347,9 @@ proxyUrl?: URL | null;oauthAuthorizationEndpoint?: URL | null;oauthTokenEndpoint : \\"\\" ) ) - : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) + : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) ? new URL(v[\\"@id\\"]) - : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"]))); + : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl))); if (typeof decoded === \\"undefined\\") continue; _3dU7PMVQZJpsCpo2F4RQXxBXdPmS_signClientKey.push(decoded); } @@ -50008,9 +50380,9 @@ proxyUrl?: URL | null;oauthAuthorizationEndpoint?: URL | null;oauthTokenEndpoint : \\"\\" ) ) - : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) + : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) ? new URL(v[\\"@id\\"]) - : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"]))); + : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl))); if (typeof decoded === \\"undefined\\") continue; _3JprUSDLVqqX4dwHRi37qGZZCRCc_sharedInbox.push(decoded); } @@ -50463,7 +50835,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -50798,7 +51170,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -51134,7 +51506,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -52410,7 +52782,11 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"publicKey\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#publicKey_fromJsonLd(doc, options); + v = await this.#publicKey_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -52503,7 +52879,11 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"publicKey\\"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) { - v = await this.#publicKey_fromJsonLd(obj, options); + v = await this.#publicKey_fromJsonLd(obj, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -52722,7 +53102,11 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"assertionMethod\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#assertionMethod_fromJsonLd(doc, options); + v = await this.#assertionMethod_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -52819,7 +53203,11 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"assertionMethod\\"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) { - v = await this.#assertionMethod_fromJsonLd(obj, options); + v = await this.#assertionMethod_fromJsonLd(obj, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -53075,7 +53463,11 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"inbox\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#inbox_fromJsonLd(doc, options); + v = await this.#inbox_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -53308,7 +53700,11 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"outbox\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#outbox_fromJsonLd(doc, options); + v = await this.#outbox_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -53527,7 +53923,11 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"following\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#following_fromJsonLd(doc, options); + v = await this.#following_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -53749,7 +54149,11 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"followers\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#followers_fromJsonLd(doc, options); + v = await this.#followers_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -53969,7 +54373,11 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"liked\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#liked_fromJsonLd(doc, options); + v = await this.#liked_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -54187,7 +54595,11 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"featured\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#featured_fromJsonLd(doc, options); + v = await this.#featured_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -54405,7 +54817,11 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"featuredTags\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#featuredTags_fromJsonLd(doc, options); + v = await this.#featuredTags_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -54621,7 +55037,11 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"streams\\"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) { - v = await this.#stream_fromJsonLd(obj, options); + v = await this.#stream_fromJsonLd(obj, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -54947,7 +55367,11 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"movedTo\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#successor_fromJsonLd(doc, options); + v = await this.#successor_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -55201,7 +55625,11 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"alsoKnownAs\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#alias_fromJsonLd(doc, options); + v = await this.#alias_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -55298,7 +55726,11 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"alsoKnownAs\\"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) { - v = await this.#alias_fromJsonLd(obj, options); + v = await this.#alias_fromJsonLd(obj, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -55517,7 +55949,11 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"service\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#service_fromJsonLd(doc, options); + v = await this.#service_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -55614,7 +56050,11 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"service\\"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) { - v = await this.#service_fromJsonLd(obj, options); + v = await this.#service_fromJsonLd(obj, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -56647,7 +57087,7 @@ get preferredUsernames(): ((string | LanguageString))[] { // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -56722,7 +57162,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await CryptographicKey.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _axq166E2eZADq34V4MYUc8KMZdC_publicKey.push(decoded); @@ -56755,7 +57195,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Multikey.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.push(decoded); @@ -56808,11 +57248,11 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#OrderedCollection\\") ? await OrderedCollection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#OrderedCollectionPage\\") ? await OrderedCollectionPage.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -56849,11 +57289,11 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#OrderedCollection\\") ? await OrderedCollection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#OrderedCollectionPage\\") ? await OrderedCollectionPage.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -56888,7 +57328,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _3yAv8jymNfNuJUDuBzJ1NQhdbAee_following.push(decoded); @@ -56921,7 +57361,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _BBCTgfphhsFzpVfKTykGSpBNwoA_followers.push(decoded); @@ -56954,7 +57394,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _3bgkPwJanyTCoVFM9ovRcus8tKkU_liked.push(decoded); @@ -56987,7 +57427,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _4N1vBJzXDf8NbBumeECQMFvKetja_featured.push(decoded); @@ -57020,7 +57460,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags.push(decoded); @@ -57053,7 +57493,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.push(decoded); @@ -57074,7 +57514,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Endpoints.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints.push(decoded); @@ -57181,23 +57621,23 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Application\\") ? await Application.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Group\\") ? await Group.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Organization\\") ? await Organization.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Person\\") ? await Person.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Service\\") ? await Service.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -57234,23 +57674,23 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Application\\") ? await Application.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Group\\") ? await Group.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Organization\\") ? await Organization.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Person\\") ? await Person.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Service\\") ? await Service.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -57285,7 +57725,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await DidService.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.push(decoded); @@ -58622,7 +59062,11 @@ get names(): ((string | LanguageString))[] { \\"preview\\"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) { - v = await this.#preview_fromJsonLd(obj, options); + v = await this.#preview_fromJsonLd(obj, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -59076,7 +59520,7 @@ get names(): ((string | LanguageString))[] { // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -59129,9 +59573,9 @@ get names(): ((string | LanguageString))[] { : \\"\\" ) ) - : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) + : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) ? new URL(v[\\"@id\\"]) - : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"]))); + : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl))); if (typeof decoded === \\"undefined\\") continue; _pVjLsybKQdmkjuU7MHjiVmNnuj7_href.push(decoded); } @@ -59280,12 +59724,12 @@ get names(): ((string | LanguageString))[] { && Array.isArray(v[\\"@type\\"])&& [\\"https://www.w3.org/ns/activitystreams#Link\\",\\"https://www.w3.org/ns/activitystreams#Hashtag\\",\\"https://www.w3.org/ns/activitystreams#Mention\\"].some( t => v[\\"@type\\"].includes(t)) ? await Link.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& [\\"https://www.w3.org/ns/activitystreams#Object\\",\\"http://joinmastodon.org/ns#Emoji\\",\\"http://litepub.social/ns#ChatMessage\\",\\"https://gotosocial.org/ns#AnnounceAuthorization\\",\\"https://gotosocial.org/ns#LikeApproval\\",\\"https://gotosocial.org/ns#ReplyAuthorization\\",\\"https://w3id.org/fep/044f#QuoteAuthorization\\",\\"https://w3id.org/valueflows/ont/vf#Proposal\\",\\"https://www.w3.org/ns/activitystreams#Activity\\",\\"http://litepub.social/ns#EmojiReact\\",\\"https://gotosocial.org/ns#AnnounceRequest\\",\\"https://gotosocial.org/ns#LikeRequest\\",\\"https://gotosocial.org/ns#ReplyRequest\\",\\"https://w3id.org/fep/044f#QuoteRequest\\",\\"https://www.w3.org/ns/activitystreams#Accept\\",\\"https://www.w3.org/ns/activitystreams#TentativeAccept\\",\\"https://www.w3.org/ns/activitystreams#Add\\",\\"https://www.w3.org/ns/activitystreams#Announce\\",\\"https://www.w3.org/ns/activitystreams#Create\\",\\"https://www.w3.org/ns/activitystreams#Delete\\",\\"https://www.w3.org/ns/activitystreams#Dislike\\",\\"https://www.w3.org/ns/activitystreams#Flag\\",\\"https://www.w3.org/ns/activitystreams#Follow\\",\\"https://www.w3.org/ns/activitystreams#Ignore\\",\\"https://www.w3.org/ns/activitystreams#Block\\",\\"https://www.w3.org/ns/activitystreams#IntransitiveActivity\\",\\"https://www.w3.org/ns/activitystreams#Arrive\\",\\"https://www.w3.org/ns/activitystreams#Question\\",\\"https://www.w3.org/ns/activitystreams#Travel\\",\\"https://www.w3.org/ns/activitystreams#Join\\",\\"https://www.w3.org/ns/activitystreams#Leave\\",\\"https://www.w3.org/ns/activitystreams#Like\\",\\"https://www.w3.org/ns/activitystreams#Listen\\",\\"https://www.w3.org/ns/activitystreams#Move\\",\\"https://www.w3.org/ns/activitystreams#Offer\\",\\"https://www.w3.org/ns/activitystreams#Invite\\",\\"https://www.w3.org/ns/activitystreams#Read\\",\\"https://www.w3.org/ns/activitystreams#Reject\\",\\"https://www.w3.org/ns/activitystreams#TentativeReject\\",\\"https://www.w3.org/ns/activitystreams#Remove\\",\\"https://www.w3.org/ns/activitystreams#Undo\\",\\"https://www.w3.org/ns/activitystreams#Update\\",\\"https://www.w3.org/ns/activitystreams#View\\",\\"https://www.w3.org/ns/activitystreams#Application\\",\\"https://www.w3.org/ns/activitystreams#Article\\",\\"https://www.w3.org/ns/activitystreams#Collection\\",\\"https://www.w3.org/ns/activitystreams#CollectionPage\\",\\"https://www.w3.org/ns/activitystreams#OrderedCollectionPage\\",\\"https://www.w3.org/ns/activitystreams#OrderedCollection\\",\\"https://www.w3.org/ns/activitystreams#Document\\",\\"https://www.w3.org/ns/activitystreams#Audio\\",\\"https://www.w3.org/ns/activitystreams#Image\\",\\"https://www.w3.org/ns/activitystreams#Page\\",\\"https://www.w3.org/ns/activitystreams#Video\\",\\"https://www.w3.org/ns/activitystreams#Event\\",\\"https://www.w3.org/ns/activitystreams#Group\\",\\"https://www.w3.org/ns/activitystreams#Note\\",\\"https://www.w3.org/ns/activitystreams#Organization\\",\\"https://www.w3.org/ns/activitystreams#Person\\",\\"https://www.w3.org/ns/activitystreams#Place\\",\\"https://www.w3.org/ns/activitystreams#Profile\\",\\"https://www.w3.org/ns/activitystreams#Relationship\\",\\"https://www.w3.org/ns/activitystreams#Service\\",\\"https://www.w3.org/ns/activitystreams#Tombstone\\"].some( t => v[\\"@type\\"].includes(t)) ? await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -59759,7 +60203,7 @@ names?: ((string | LanguageString))[];language?: Intl.Locale | null;height?: num // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -60096,7 +60540,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -60431,7 +60875,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -60769,7 +61213,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -61103,7 +61547,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -61437,7 +61881,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -61771,7 +62215,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -62103,7 +62547,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -62401,7 +62845,7 @@ names?: ((string | LanguageString))[];language?: Intl.Locale | null;height?: num // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -62736,7 +63180,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -63170,7 +63614,11 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu \\"quote\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#quote_fromJsonLd(doc, options); + v = await this.#quote_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -63409,7 +63857,11 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu \\"quoteAuthorization\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#quoteAuthorization_fromJsonLd(doc, options); + v = await this.#quoteAuthorization_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -63731,7 +64183,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -63782,7 +64234,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote.push(decoded); @@ -63841,7 +64293,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await QuoteAuthorization.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization.push(decoded); @@ -64283,7 +64735,11 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu \\"orderedItems\\"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) { - v = await this.#item_fromJsonLd(obj, options); + v = await this.#item_fromJsonLd(obj, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -64527,7 +64983,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -64581,12 +65037,12 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu && Array.isArray(v[\\"@type\\"])&& [\\"https://www.w3.org/ns/activitystreams#Object\\",\\"http://joinmastodon.org/ns#Emoji\\",\\"http://litepub.social/ns#ChatMessage\\",\\"https://gotosocial.org/ns#AnnounceAuthorization\\",\\"https://gotosocial.org/ns#LikeApproval\\",\\"https://gotosocial.org/ns#ReplyAuthorization\\",\\"https://w3id.org/fep/044f#QuoteAuthorization\\",\\"https://w3id.org/valueflows/ont/vf#Proposal\\",\\"https://www.w3.org/ns/activitystreams#Activity\\",\\"http://litepub.social/ns#EmojiReact\\",\\"https://gotosocial.org/ns#AnnounceRequest\\",\\"https://gotosocial.org/ns#LikeRequest\\",\\"https://gotosocial.org/ns#ReplyRequest\\",\\"https://w3id.org/fep/044f#QuoteRequest\\",\\"https://www.w3.org/ns/activitystreams#Accept\\",\\"https://www.w3.org/ns/activitystreams#TentativeAccept\\",\\"https://www.w3.org/ns/activitystreams#Add\\",\\"https://www.w3.org/ns/activitystreams#Announce\\",\\"https://www.w3.org/ns/activitystreams#Create\\",\\"https://www.w3.org/ns/activitystreams#Delete\\",\\"https://www.w3.org/ns/activitystreams#Dislike\\",\\"https://www.w3.org/ns/activitystreams#Flag\\",\\"https://www.w3.org/ns/activitystreams#Follow\\",\\"https://www.w3.org/ns/activitystreams#Ignore\\",\\"https://www.w3.org/ns/activitystreams#Block\\",\\"https://www.w3.org/ns/activitystreams#IntransitiveActivity\\",\\"https://www.w3.org/ns/activitystreams#Arrive\\",\\"https://www.w3.org/ns/activitystreams#Question\\",\\"https://www.w3.org/ns/activitystreams#Travel\\",\\"https://www.w3.org/ns/activitystreams#Join\\",\\"https://www.w3.org/ns/activitystreams#Leave\\",\\"https://www.w3.org/ns/activitystreams#Like\\",\\"https://www.w3.org/ns/activitystreams#Listen\\",\\"https://www.w3.org/ns/activitystreams#Move\\",\\"https://www.w3.org/ns/activitystreams#Offer\\",\\"https://www.w3.org/ns/activitystreams#Invite\\",\\"https://www.w3.org/ns/activitystreams#Read\\",\\"https://www.w3.org/ns/activitystreams#Reject\\",\\"https://www.w3.org/ns/activitystreams#TentativeReject\\",\\"https://www.w3.org/ns/activitystreams#Remove\\",\\"https://www.w3.org/ns/activitystreams#Undo\\",\\"https://www.w3.org/ns/activitystreams#Update\\",\\"https://www.w3.org/ns/activitystreams#View\\",\\"https://www.w3.org/ns/activitystreams#Application\\",\\"https://www.w3.org/ns/activitystreams#Article\\",\\"https://www.w3.org/ns/activitystreams#Collection\\",\\"https://www.w3.org/ns/activitystreams#CollectionPage\\",\\"https://www.w3.org/ns/activitystreams#OrderedCollectionPage\\",\\"https://www.w3.org/ns/activitystreams#OrderedCollection\\",\\"https://www.w3.org/ns/activitystreams#Document\\",\\"https://www.w3.org/ns/activitystreams#Audio\\",\\"https://www.w3.org/ns/activitystreams#Image\\",\\"https://www.w3.org/ns/activitystreams#Page\\",\\"https://www.w3.org/ns/activitystreams#Video\\",\\"https://www.w3.org/ns/activitystreams#Event\\",\\"https://www.w3.org/ns/activitystreams#Group\\",\\"https://www.w3.org/ns/activitystreams#Note\\",\\"https://www.w3.org/ns/activitystreams#Organization\\",\\"https://www.w3.org/ns/activitystreams#Person\\",\\"https://www.w3.org/ns/activitystreams#Place\\",\\"https://www.w3.org/ns/activitystreams#Profile\\",\\"https://www.w3.org/ns/activitystreams#Relationship\\",\\"https://www.w3.org/ns/activitystreams#Service\\",\\"https://www.w3.org/ns/activitystreams#Tombstone\\"].some( t => v[\\"@type\\"].includes(t)) ? await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& [\\"https://www.w3.org/ns/activitystreams#Link\\",\\"https://www.w3.org/ns/activitystreams#Hashtag\\",\\"https://www.w3.org/ns/activitystreams#Mention\\"].some( t => v[\\"@type\\"].includes(t)) ? await Link.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -65020,7 +65476,11 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu \\"orderedItems\\"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) { - v = await this.#item_fromJsonLd(obj, options); + v = await this.#item_fromJsonLd(obj, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -65313,7 +65773,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -65367,12 +65827,12 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu && Array.isArray(v[\\"@type\\"])&& [\\"https://www.w3.org/ns/activitystreams#Object\\",\\"http://joinmastodon.org/ns#Emoji\\",\\"http://litepub.social/ns#ChatMessage\\",\\"https://gotosocial.org/ns#AnnounceAuthorization\\",\\"https://gotosocial.org/ns#LikeApproval\\",\\"https://gotosocial.org/ns#ReplyAuthorization\\",\\"https://w3id.org/fep/044f#QuoteAuthorization\\",\\"https://w3id.org/valueflows/ont/vf#Proposal\\",\\"https://www.w3.org/ns/activitystreams#Activity\\",\\"http://litepub.social/ns#EmojiReact\\",\\"https://gotosocial.org/ns#AnnounceRequest\\",\\"https://gotosocial.org/ns#LikeRequest\\",\\"https://gotosocial.org/ns#ReplyRequest\\",\\"https://w3id.org/fep/044f#QuoteRequest\\",\\"https://www.w3.org/ns/activitystreams#Accept\\",\\"https://www.w3.org/ns/activitystreams#TentativeAccept\\",\\"https://www.w3.org/ns/activitystreams#Add\\",\\"https://www.w3.org/ns/activitystreams#Announce\\",\\"https://www.w3.org/ns/activitystreams#Create\\",\\"https://www.w3.org/ns/activitystreams#Delete\\",\\"https://www.w3.org/ns/activitystreams#Dislike\\",\\"https://www.w3.org/ns/activitystreams#Flag\\",\\"https://www.w3.org/ns/activitystreams#Follow\\",\\"https://www.w3.org/ns/activitystreams#Ignore\\",\\"https://www.w3.org/ns/activitystreams#Block\\",\\"https://www.w3.org/ns/activitystreams#IntransitiveActivity\\",\\"https://www.w3.org/ns/activitystreams#Arrive\\",\\"https://www.w3.org/ns/activitystreams#Question\\",\\"https://www.w3.org/ns/activitystreams#Travel\\",\\"https://www.w3.org/ns/activitystreams#Join\\",\\"https://www.w3.org/ns/activitystreams#Leave\\",\\"https://www.w3.org/ns/activitystreams#Like\\",\\"https://www.w3.org/ns/activitystreams#Listen\\",\\"https://www.w3.org/ns/activitystreams#Move\\",\\"https://www.w3.org/ns/activitystreams#Offer\\",\\"https://www.w3.org/ns/activitystreams#Invite\\",\\"https://www.w3.org/ns/activitystreams#Read\\",\\"https://www.w3.org/ns/activitystreams#Reject\\",\\"https://www.w3.org/ns/activitystreams#TentativeReject\\",\\"https://www.w3.org/ns/activitystreams#Remove\\",\\"https://www.w3.org/ns/activitystreams#Undo\\",\\"https://www.w3.org/ns/activitystreams#Update\\",\\"https://www.w3.org/ns/activitystreams#View\\",\\"https://www.w3.org/ns/activitystreams#Application\\",\\"https://www.w3.org/ns/activitystreams#Article\\",\\"https://www.w3.org/ns/activitystreams#Collection\\",\\"https://www.w3.org/ns/activitystreams#CollectionPage\\",\\"https://www.w3.org/ns/activitystreams#OrderedCollectionPage\\",\\"https://www.w3.org/ns/activitystreams#OrderedCollection\\",\\"https://www.w3.org/ns/activitystreams#Document\\",\\"https://www.w3.org/ns/activitystreams#Audio\\",\\"https://www.w3.org/ns/activitystreams#Image\\",\\"https://www.w3.org/ns/activitystreams#Page\\",\\"https://www.w3.org/ns/activitystreams#Video\\",\\"https://www.w3.org/ns/activitystreams#Event\\",\\"https://www.w3.org/ns/activitystreams#Group\\",\\"https://www.w3.org/ns/activitystreams#Note\\",\\"https://www.w3.org/ns/activitystreams#Organization\\",\\"https://www.w3.org/ns/activitystreams#Person\\",\\"https://www.w3.org/ns/activitystreams#Place\\",\\"https://www.w3.org/ns/activitystreams#Profile\\",\\"https://www.w3.org/ns/activitystreams#Relationship\\",\\"https://www.w3.org/ns/activitystreams#Service\\",\\"https://www.w3.org/ns/activitystreams#Tombstone\\"].some( t => v[\\"@type\\"].includes(t)) ? await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& [\\"https://www.w3.org/ns/activitystreams#Link\\",\\"https://www.w3.org/ns/activitystreams#Hashtag\\",\\"https://www.w3.org/ns/activitystreams#Mention\\"].some( t => v[\\"@type\\"].includes(t)) ? await Link.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -66692,7 +67152,11 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"publicKey\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#publicKey_fromJsonLd(doc, options); + v = await this.#publicKey_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -66785,7 +67249,11 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"publicKey\\"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) { - v = await this.#publicKey_fromJsonLd(obj, options); + v = await this.#publicKey_fromJsonLd(obj, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -67004,7 +67472,11 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"assertionMethod\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#assertionMethod_fromJsonLd(doc, options); + v = await this.#assertionMethod_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -67101,7 +67573,11 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"assertionMethod\\"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) { - v = await this.#assertionMethod_fromJsonLd(obj, options); + v = await this.#assertionMethod_fromJsonLd(obj, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -67357,7 +67833,11 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"inbox\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#inbox_fromJsonLd(doc, options); + v = await this.#inbox_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -67590,7 +68070,11 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"outbox\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#outbox_fromJsonLd(doc, options); + v = await this.#outbox_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -67809,7 +68293,11 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"following\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#following_fromJsonLd(doc, options); + v = await this.#following_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -68031,7 +68519,11 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"followers\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#followers_fromJsonLd(doc, options); + v = await this.#followers_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -68251,7 +68743,11 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"liked\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#liked_fromJsonLd(doc, options); + v = await this.#liked_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -68469,7 +68965,11 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"featured\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#featured_fromJsonLd(doc, options); + v = await this.#featured_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -68687,7 +69187,11 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"featuredTags\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#featuredTags_fromJsonLd(doc, options); + v = await this.#featuredTags_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -68903,7 +69407,11 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"streams\\"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) { - v = await this.#stream_fromJsonLd(obj, options); + v = await this.#stream_fromJsonLd(obj, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -69229,7 +69737,11 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"movedTo\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#successor_fromJsonLd(doc, options); + v = await this.#successor_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -69483,7 +69995,11 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"alsoKnownAs\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#alias_fromJsonLd(doc, options); + v = await this.#alias_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -69580,7 +70096,11 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"alsoKnownAs\\"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) { - v = await this.#alias_fromJsonLd(obj, options); + v = await this.#alias_fromJsonLd(obj, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -69799,7 +70319,11 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"service\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#service_fromJsonLd(doc, options); + v = await this.#service_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -69896,7 +70420,11 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"service\\"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) { - v = await this.#service_fromJsonLd(obj, options); + v = await this.#service_fromJsonLd(obj, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -70929,7 +71457,7 @@ get preferredUsernames(): ((string | LanguageString))[] { // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -71004,7 +71532,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await CryptographicKey.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _axq166E2eZADq34V4MYUc8KMZdC_publicKey.push(decoded); @@ -71037,7 +71565,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Multikey.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.push(decoded); @@ -71090,11 +71618,11 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#OrderedCollection\\") ? await OrderedCollection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#OrderedCollectionPage\\") ? await OrderedCollectionPage.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -71131,11 +71659,11 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#OrderedCollection\\") ? await OrderedCollection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#OrderedCollectionPage\\") ? await OrderedCollectionPage.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -71170,7 +71698,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _3yAv8jymNfNuJUDuBzJ1NQhdbAee_following.push(decoded); @@ -71203,7 +71731,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _BBCTgfphhsFzpVfKTykGSpBNwoA_followers.push(decoded); @@ -71236,7 +71764,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _3bgkPwJanyTCoVFM9ovRcus8tKkU_liked.push(decoded); @@ -71269,7 +71797,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _4N1vBJzXDf8NbBumeECQMFvKetja_featured.push(decoded); @@ -71302,7 +71830,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags.push(decoded); @@ -71335,7 +71863,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.push(decoded); @@ -71356,7 +71884,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Endpoints.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints.push(decoded); @@ -71463,23 +71991,23 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Application\\") ? await Application.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Group\\") ? await Group.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Organization\\") ? await Organization.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Person\\") ? await Person.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Service\\") ? await Service.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -71516,23 +72044,23 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Application\\") ? await Application.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Group\\") ? await Group.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Organization\\") ? await Organization.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Person\\") ? await Person.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Service\\") ? await Service.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -71567,7 +72095,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await DidService.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.push(decoded); @@ -72394,7 +72922,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -73670,7 +74198,11 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"publicKey\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#publicKey_fromJsonLd(doc, options); + v = await this.#publicKey_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -73763,7 +74295,11 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"publicKey\\"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) { - v = await this.#publicKey_fromJsonLd(obj, options); + v = await this.#publicKey_fromJsonLd(obj, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -73982,7 +74518,11 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"assertionMethod\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#assertionMethod_fromJsonLd(doc, options); + v = await this.#assertionMethod_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -74079,7 +74619,11 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"assertionMethod\\"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) { - v = await this.#assertionMethod_fromJsonLd(obj, options); + v = await this.#assertionMethod_fromJsonLd(obj, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -74335,7 +74879,11 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"inbox\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#inbox_fromJsonLd(doc, options); + v = await this.#inbox_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -74568,7 +75116,11 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"outbox\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#outbox_fromJsonLd(doc, options); + v = await this.#outbox_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -74787,7 +75339,11 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"following\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#following_fromJsonLd(doc, options); + v = await this.#following_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -75009,7 +75565,11 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"followers\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#followers_fromJsonLd(doc, options); + v = await this.#followers_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -75229,7 +75789,11 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"liked\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#liked_fromJsonLd(doc, options); + v = await this.#liked_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -75447,7 +76011,11 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"featured\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#featured_fromJsonLd(doc, options); + v = await this.#featured_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -75665,7 +76233,11 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"featuredTags\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#featuredTags_fromJsonLd(doc, options); + v = await this.#featuredTags_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -75881,7 +76453,11 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"streams\\"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) { - v = await this.#stream_fromJsonLd(obj, options); + v = await this.#stream_fromJsonLd(obj, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -76207,7 +76783,11 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"movedTo\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#successor_fromJsonLd(doc, options); + v = await this.#successor_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -76461,7 +77041,11 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"alsoKnownAs\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#alias_fromJsonLd(doc, options); + v = await this.#alias_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -76558,7 +77142,11 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"alsoKnownAs\\"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) { - v = await this.#alias_fromJsonLd(obj, options); + v = await this.#alias_fromJsonLd(obj, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -76777,7 +77365,11 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"service\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#service_fromJsonLd(doc, options); + v = await this.#service_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -76874,7 +77466,11 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"service\\"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) { - v = await this.#service_fromJsonLd(obj, options); + v = await this.#service_fromJsonLd(obj, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -77907,7 +78503,7 @@ get preferredUsernames(): ((string | LanguageString))[] { // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -77982,7 +78578,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await CryptographicKey.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _axq166E2eZADq34V4MYUc8KMZdC_publicKey.push(decoded); @@ -78015,7 +78611,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Multikey.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.push(decoded); @@ -78068,11 +78664,11 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#OrderedCollection\\") ? await OrderedCollection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#OrderedCollectionPage\\") ? await OrderedCollectionPage.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -78109,11 +78705,11 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#OrderedCollection\\") ? await OrderedCollection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#OrderedCollectionPage\\") ? await OrderedCollectionPage.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -78148,7 +78744,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _3yAv8jymNfNuJUDuBzJ1NQhdbAee_following.push(decoded); @@ -78181,7 +78777,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _BBCTgfphhsFzpVfKTykGSpBNwoA_followers.push(decoded); @@ -78214,7 +78810,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _3bgkPwJanyTCoVFM9ovRcus8tKkU_liked.push(decoded); @@ -78247,7 +78843,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _4N1vBJzXDf8NbBumeECQMFvKetja_featured.push(decoded); @@ -78280,7 +78876,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags.push(decoded); @@ -78313,7 +78909,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.push(decoded); @@ -78334,7 +78930,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Endpoints.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints.push(decoded); @@ -78441,23 +79037,23 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Application\\") ? await Application.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Group\\") ? await Group.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Organization\\") ? await Organization.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Person\\") ? await Person.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Service\\") ? await Service.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -78494,23 +79090,23 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Application\\") ? await Application.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Group\\") ? await Group.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Organization\\") ? await Organization.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Person\\") ? await Person.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Service\\") ? await Service.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -78545,7 +79141,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await DidService.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.push(decoded); @@ -79828,7 +80424,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -79972,9 +80568,9 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu : \\"\\" ) ) - : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) + : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) ? new URL(v[\\"@id\\"]) - : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"]))) : undefined + : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl))) : undefined ; if (typeof decoded === \\"undefined\\") continue; _oKrwxU4V8wiKhMW1QEYQibcJh8c_units.push(decoded); @@ -80457,7 +81053,11 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu \\"describes\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#describes_fromJsonLd(doc, options); + v = await this.#describes_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -80699,7 +81299,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -80750,7 +81350,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _3CLQ1PLSXrhSQbTGGHuxNyaEFKM1_describes.push(decoded); @@ -81343,7 +81943,11 @@ instruments?: (Object | URL)[];exclusiveOptions?: (Object | URL)[];inclusiveOpti \\"oneOf\\"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) { - v = await this.#exclusiveOption_fromJsonLd(obj, options); + v = await this.#exclusiveOption_fromJsonLd(obj, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -81562,7 +82166,11 @@ instruments?: (Object | URL)[];exclusiveOptions?: (Object | URL)[];inclusiveOpti \\"anyOf\\"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) { - v = await this.#inclusiveOption_fromJsonLd(obj, options); + v = await this.#inclusiveOption_fromJsonLd(obj, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -81810,7 +82418,11 @@ instruments?: (Object | URL)[];exclusiveOptions?: (Object | URL)[];inclusiveOpti \\"quote\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#quote_fromJsonLd(doc, options); + v = await this.#quote_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -82049,7 +82661,11 @@ instruments?: (Object | URL)[];exclusiveOptions?: (Object | URL)[];inclusiveOpti \\"quoteAuthorization\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#quoteAuthorization_fromJsonLd(doc, options); + v = await this.#quoteAuthorization_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -82354,7 +82970,7 @@ instruments?: (Object | URL)[];exclusiveOptions?: (Object | URL)[];inclusiveOpti // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -82405,7 +83021,7 @@ instruments?: (Object | URL)[];exclusiveOptions?: (Object | URL)[];inclusiveOpti const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _2N5scKaVEcdYHFmfKYYacAwUhUgQ_oneOf.push(decoded); @@ -82438,7 +83054,7 @@ instruments?: (Object | URL)[];exclusiveOptions?: (Object | URL)[];inclusiveOpti const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _2mV6isMTPRKbWdLCjcpiEysq5dAY_anyOf.push(decoded); @@ -82520,7 +83136,7 @@ instruments?: (Object | URL)[];exclusiveOptions?: (Object | URL)[];inclusiveOpti const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote.push(decoded); @@ -82579,7 +83195,7 @@ instruments?: (Object | URL)[];exclusiveOptions?: (Object | URL)[];inclusiveOpti const decoded = await QuoteAuthorization.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization.push(decoded); @@ -83038,7 +83654,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -83372,7 +83988,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -83932,7 +84548,11 @@ relationships?: (Object | URL)[];} \\"subject\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#subject_fromJsonLd(doc, options); + v = await this.#subject_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -84147,7 +84767,11 @@ relationships?: (Object | URL)[];} \\"object\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#object_fromJsonLd(doc, options); + v = await this.#object_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -84241,7 +84865,11 @@ relationships?: (Object | URL)[];} \\"object\\"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) { - v = await this.#object_fromJsonLd(obj, options); + v = await this.#object_fromJsonLd(obj, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -84459,7 +85087,11 @@ relationships?: (Object | URL)[];} \\"relationship\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#relationship_fromJsonLd(doc, options); + v = await this.#relationship_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -84555,7 +85187,11 @@ relationships?: (Object | URL)[];} \\"relationship\\"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) { - v = await this.#relationship_fromJsonLd(obj, options); + v = await this.#relationship_fromJsonLd(obj, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -84868,7 +85504,7 @@ relationships?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -84919,7 +85555,7 @@ relationships?: (Object | URL)[];} const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _2Zqdmi46ZnDQsECS6mzwhrv3rUKq_subject.push(decoded); @@ -84952,7 +85588,7 @@ relationships?: (Object | URL)[];} const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _2MH19yxjn1wnHsNfa5n4JBhJzxyc_object.push(decoded); @@ -84985,7 +85621,7 @@ relationships?: (Object | URL)[];} const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _4Lzz89F9qipAQSGkWyX9DGWiUojG_relationship.push(decoded); @@ -85373,7 +86009,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -86649,7 +87285,11 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"publicKey\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#publicKey_fromJsonLd(doc, options); + v = await this.#publicKey_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -86742,7 +87382,11 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"publicKey\\"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) { - v = await this.#publicKey_fromJsonLd(obj, options); + v = await this.#publicKey_fromJsonLd(obj, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -86961,7 +87605,11 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"assertionMethod\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#assertionMethod_fromJsonLd(doc, options); + v = await this.#assertionMethod_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -87058,7 +87706,11 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"assertionMethod\\"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) { - v = await this.#assertionMethod_fromJsonLd(obj, options); + v = await this.#assertionMethod_fromJsonLd(obj, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -87314,7 +87966,11 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"inbox\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#inbox_fromJsonLd(doc, options); + v = await this.#inbox_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -87547,7 +88203,11 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"outbox\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#outbox_fromJsonLd(doc, options); + v = await this.#outbox_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -87766,7 +88426,11 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"following\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#following_fromJsonLd(doc, options); + v = await this.#following_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -87988,7 +88652,11 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"followers\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#followers_fromJsonLd(doc, options); + v = await this.#followers_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -88208,7 +88876,11 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"liked\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#liked_fromJsonLd(doc, options); + v = await this.#liked_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -88426,7 +89098,11 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"featured\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#featured_fromJsonLd(doc, options); + v = await this.#featured_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -88644,7 +89320,11 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"featuredTags\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#featuredTags_fromJsonLd(doc, options); + v = await this.#featuredTags_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -88860,7 +89540,11 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"streams\\"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) { - v = await this.#stream_fromJsonLd(obj, options); + v = await this.#stream_fromJsonLd(obj, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -89186,7 +89870,11 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"movedTo\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#successor_fromJsonLd(doc, options); + v = await this.#successor_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -89440,7 +90128,11 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"alsoKnownAs\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#alias_fromJsonLd(doc, options); + v = await this.#alias_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -89537,7 +90229,11 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"alsoKnownAs\\"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) { - v = await this.#alias_fromJsonLd(obj, options); + v = await this.#alias_fromJsonLd(obj, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -89756,7 +90452,11 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"service\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#service_fromJsonLd(doc, options); + v = await this.#service_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -89853,7 +90553,11 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"service\\"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) { - v = await this.#service_fromJsonLd(obj, options); + v = await this.#service_fromJsonLd(obj, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -90886,7 +91590,7 @@ get preferredUsernames(): ((string | LanguageString))[] { // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -90961,7 +91665,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await CryptographicKey.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _axq166E2eZADq34V4MYUc8KMZdC_publicKey.push(decoded); @@ -90994,7 +91698,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Multikey.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.push(decoded); @@ -91047,11 +91751,11 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#OrderedCollection\\") ? await OrderedCollection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#OrderedCollectionPage\\") ? await OrderedCollectionPage.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -91088,11 +91792,11 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#OrderedCollection\\") ? await OrderedCollection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#OrderedCollectionPage\\") ? await OrderedCollectionPage.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -91127,7 +91831,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _3yAv8jymNfNuJUDuBzJ1NQhdbAee_following.push(decoded); @@ -91160,7 +91864,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _BBCTgfphhsFzpVfKTykGSpBNwoA_followers.push(decoded); @@ -91193,7 +91897,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _3bgkPwJanyTCoVFM9ovRcus8tKkU_liked.push(decoded); @@ -91226,7 +91930,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _4N1vBJzXDf8NbBumeECQMFvKetja_featured.push(decoded); @@ -91259,7 +91963,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags.push(decoded); @@ -91292,7 +91996,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.push(decoded); @@ -91313,7 +92017,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Endpoints.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints.push(decoded); @@ -91420,23 +92124,23 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Application\\") ? await Application.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Group\\") ? await Group.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Organization\\") ? await Organization.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Person\\") ? await Person.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Service\\") ? await Service.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -91473,23 +92177,23 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Application\\") ? await Application.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Group\\") ? await Group.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Organization\\") ? await Organization.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Person\\") ? await Person.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Service\\") ? await Service.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -91524,7 +92228,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await DidService.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"]) ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.push(decoded); @@ -92560,7 +93264,7 @@ get contents(): ((string | LanguageString))[] { // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -92992,7 +93696,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -93326,7 +94030,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -93876,7 +94580,7 @@ get formerTypes(): ($EntityType)[] { // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -94311,7 +95015,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -94650,7 +95354,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -94987,7 +95691,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -95324,7 +96028,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -95657,7 +96361,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } diff --git a/packages/vocab-tools/src/__snapshots__/class.test.ts.snap b/packages/vocab-tools/src/__snapshots__/class.test.ts.snap index 6b58c59a4..0df722fe9 100644 --- a/packages/vocab-tools/src/__snapshots__/class.test.ts.snap +++ b/packages/vocab-tools/src/__snapshots__/class.test.ts.snap @@ -2336,7 +2336,11 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu "attachment"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === "object" && "@context" in obj) { - v = await this.#attachment_fromJsonLd(obj, options); + v = await this.#attachment_fromJsonLd(obj, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -2590,7 +2594,11 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu "attributedTo"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === "object" && "@context" in doc) { - v = await this.#attribution_fromJsonLd(doc, options); + v = await this.#attribution_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -2686,7 +2694,11 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu "attributedTo"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === "object" && "@context" in obj) { - v = await this.#attribution_fromJsonLd(obj, options); + v = await this.#attribution_fromJsonLd(obj, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -2903,7 +2915,11 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu "audience"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === "object" && "@context" in doc) { - v = await this.#audience_fromJsonLd(doc, options); + v = await this.#audience_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -2998,7 +3014,11 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu "audience"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === "object" && "@context" in obj) { - v = await this.#audience_fromJsonLd(obj, options); + v = await this.#audience_fromJsonLd(obj, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -3259,7 +3279,11 @@ get contents(): ((string | LanguageString))[] { "context"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === "object" && "@context" in obj) { - v = await this.#context_fromJsonLd(obj, options); + v = await this.#context_fromJsonLd(obj, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -3527,7 +3551,11 @@ get names(): ((string | LanguageString))[] { "generator"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === "object" && "@context" in obj) { - v = await this.#generator_fromJsonLd(obj, options); + v = await this.#generator_fromJsonLd(obj, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -3764,7 +3792,11 @@ get names(): ((string | LanguageString))[] { "icon"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === "object" && "@context" in doc) { - v = await this.#icon_fromJsonLd(doc, options); + v = await this.#icon_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -3860,7 +3892,11 @@ get names(): ((string | LanguageString))[] { "icon"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === "object" && "@context" in obj) { - v = await this.#icon_fromJsonLd(obj, options); + v = await this.#icon_fromJsonLd(obj, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -4097,7 +4133,11 @@ get names(): ((string | LanguageString))[] { "image"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === "object" && "@context" in doc) { - v = await this.#image_fromJsonLd(doc, options); + v = await this.#image_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -4193,7 +4233,11 @@ get names(): ((string | LanguageString))[] { "image"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === "object" && "@context" in obj) { - v = await this.#image_fromJsonLd(obj, options); + v = await this.#image_fromJsonLd(obj, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -4419,7 +4463,11 @@ get names(): ((string | LanguageString))[] { "inReplyTo"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === "object" && "@context" in doc) { - v = await this.#replyTarget_fromJsonLd(doc, options); + v = await this.#replyTarget_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -4514,7 +4562,11 @@ get names(): ((string | LanguageString))[] { "inReplyTo"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === "object" && "@context" in obj) { - v = await this.#replyTarget_fromJsonLd(obj, options); + v = await this.#replyTarget_fromJsonLd(obj, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -4740,7 +4792,11 @@ get names(): ((string | LanguageString))[] { "location"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === "object" && "@context" in doc) { - v = await this.#location_fromJsonLd(doc, options); + v = await this.#location_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -4835,7 +4891,11 @@ get names(): ((string | LanguageString))[] { "location"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === "object" && "@context" in obj) { - v = await this.#location_fromJsonLd(obj, options); + v = await this.#location_fromJsonLd(obj, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -5060,7 +5120,11 @@ get names(): ((string | LanguageString))[] { "preview"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === "object" && "@context" in doc) { - v = await this.#preview_fromJsonLd(doc, options); + v = await this.#preview_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -5154,7 +5218,11 @@ get names(): ((string | LanguageString))[] { "preview"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === "object" && "@context" in obj) { - v = await this.#preview_fromJsonLd(obj, options); + v = await this.#preview_fromJsonLd(obj, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -5384,7 +5452,11 @@ get names(): ((string | LanguageString))[] { "replies"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === "object" && "@context" in doc) { - v = await this.#replies_fromJsonLd(doc, options); + v = await this.#replies_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -5606,7 +5678,11 @@ get names(): ((string | LanguageString))[] { "shares"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === "object" && "@context" in doc) { - v = await this.#shares_fromJsonLd(doc, options); + v = await this.#shares_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -5828,7 +5904,11 @@ get names(): ((string | LanguageString))[] { "likes"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === "object" && "@context" in doc) { - v = await this.#likes_fromJsonLd(doc, options); + v = await this.#likes_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -6044,7 +6124,11 @@ get names(): ((string | LanguageString))[] { "emojiReactions"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === "object" && "@context" in doc) { - v = await this.#emojiReactions_fromJsonLd(doc, options); + v = await this.#emojiReactions_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -6312,7 +6396,11 @@ get summaries(): ((string | LanguageString))[] { "tag"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === "object" && "@context" in obj) { - v = await this.#tag_fromJsonLd(obj, options); + v = await this.#tag_fromJsonLd(obj, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -6563,7 +6651,11 @@ get urls(): ((URL | Link))[] { "to"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === "object" && "@context" in doc) { - v = await this.#to_fromJsonLd(doc, options); + v = await this.#to_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -6658,7 +6750,11 @@ get urls(): ((URL | Link))[] { "to"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === "object" && "@context" in obj) { - v = await this.#to_fromJsonLd(obj, options); + v = await this.#to_fromJsonLd(obj, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -6875,7 +6971,11 @@ get urls(): ((URL | Link))[] { "bto"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === "object" && "@context" in doc) { - v = await this.#bto_fromJsonLd(doc, options); + v = await this.#bto_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -6970,7 +7070,11 @@ get urls(): ((URL | Link))[] { "bto"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === "object" && "@context" in obj) { - v = await this.#bto_fromJsonLd(obj, options); + v = await this.#bto_fromJsonLd(obj, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -7187,7 +7291,11 @@ get urls(): ((URL | Link))[] { "cc"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === "object" && "@context" in doc) { - v = await this.#cc_fromJsonLd(doc, options); + v = await this.#cc_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -7282,7 +7390,11 @@ get urls(): ((URL | Link))[] { "cc"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === "object" && "@context" in obj) { - v = await this.#cc_fromJsonLd(obj, options); + v = await this.#cc_fromJsonLd(obj, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -7499,7 +7611,11 @@ get urls(): ((URL | Link))[] { "bcc"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === "object" && "@context" in doc) { - v = await this.#bcc_fromJsonLd(doc, options); + v = await this.#bcc_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -7594,7 +7710,11 @@ get urls(): ((URL | Link))[] { "bcc"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === "object" && "@context" in obj) { - v = await this.#bcc_fromJsonLd(obj, options); + v = await this.#bcc_fromJsonLd(obj, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -7874,7 +7994,11 @@ get urls(): ((URL | Link))[] { "proof"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === "object" && "@context" in doc) { - v = await this.#proof_fromJsonLd(doc, options); + v = await this.#proof_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -7968,7 +8092,11 @@ get urls(): ((URL | Link))[] { "proof"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === "object" && "@context" in obj) { - v = await this.#proof_fromJsonLd(obj, options); + v = await this.#proof_fromJsonLd(obj, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -8224,7 +8352,11 @@ get urls(): ((URL | Link))[] { "likeAuthorization"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === "object" && "@context" in doc) { - v = await this.#likeAuthorization_fromJsonLd(doc, options); + v = await this.#likeAuthorization_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -8440,7 +8572,11 @@ get urls(): ((URL | Link))[] { "replyAuthorization"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === "object" && "@context" in doc) { - v = await this.#replyAuthorization_fromJsonLd(doc, options); + v = await this.#replyAuthorization_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -8656,7 +8792,11 @@ get urls(): ((URL | Link))[] { "announceAuthorization"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === "object" && "@context" in doc) { - v = await this.#announceAuthorization_fromJsonLd(doc, options); + v = await this.#announceAuthorization_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -10204,7 +10344,7 @@ get urls(): ((URL | Link))[] { // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null) { + if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { options = { ...options, baseUrl: new URL(values["@id"]) }; } @@ -10505,16 +10645,16 @@ get urls(): ((URL | Link))[] { && Array.isArray(v["@type"])&& ["https://www.w3.org/ns/activitystreams#Object","http://joinmastodon.org/ns#Emoji","http://litepub.social/ns#ChatMessage","https://gotosocial.org/ns#AnnounceAuthorization","https://gotosocial.org/ns#LikeApproval","https://gotosocial.org/ns#ReplyAuthorization","https://w3id.org/fep/044f#QuoteAuthorization","https://w3id.org/valueflows/ont/vf#Proposal","https://www.w3.org/ns/activitystreams#Activity","http://litepub.social/ns#EmojiReact","https://gotosocial.org/ns#AnnounceRequest","https://gotosocial.org/ns#LikeRequest","https://gotosocial.org/ns#ReplyRequest","https://w3id.org/fep/044f#QuoteRequest","https://www.w3.org/ns/activitystreams#Accept","https://www.w3.org/ns/activitystreams#TentativeAccept","https://www.w3.org/ns/activitystreams#Add","https://www.w3.org/ns/activitystreams#Announce","https://www.w3.org/ns/activitystreams#Create","https://www.w3.org/ns/activitystreams#Delete","https://www.w3.org/ns/activitystreams#Dislike","https://www.w3.org/ns/activitystreams#Flag","https://www.w3.org/ns/activitystreams#Follow","https://www.w3.org/ns/activitystreams#Ignore","https://www.w3.org/ns/activitystreams#Block","https://www.w3.org/ns/activitystreams#IntransitiveActivity","https://www.w3.org/ns/activitystreams#Arrive","https://www.w3.org/ns/activitystreams#Question","https://www.w3.org/ns/activitystreams#Travel","https://www.w3.org/ns/activitystreams#Join","https://www.w3.org/ns/activitystreams#Leave","https://www.w3.org/ns/activitystreams#Like","https://www.w3.org/ns/activitystreams#Listen","https://www.w3.org/ns/activitystreams#Move","https://www.w3.org/ns/activitystreams#Offer","https://www.w3.org/ns/activitystreams#Invite","https://www.w3.org/ns/activitystreams#Read","https://www.w3.org/ns/activitystreams#Reject","https://www.w3.org/ns/activitystreams#TentativeReject","https://www.w3.org/ns/activitystreams#Remove","https://www.w3.org/ns/activitystreams#Undo","https://www.w3.org/ns/activitystreams#Update","https://www.w3.org/ns/activitystreams#View","https://www.w3.org/ns/activitystreams#Application","https://www.w3.org/ns/activitystreams#Article","https://www.w3.org/ns/activitystreams#Collection","https://www.w3.org/ns/activitystreams#CollectionPage","https://www.w3.org/ns/activitystreams#OrderedCollectionPage","https://www.w3.org/ns/activitystreams#OrderedCollection","https://www.w3.org/ns/activitystreams#Document","https://www.w3.org/ns/activitystreams#Audio","https://www.w3.org/ns/activitystreams#Image","https://www.w3.org/ns/activitystreams#Page","https://www.w3.org/ns/activitystreams#Video","https://www.w3.org/ns/activitystreams#Event","https://www.w3.org/ns/activitystreams#Group","https://www.w3.org/ns/activitystreams#Note","https://www.w3.org/ns/activitystreams#Organization","https://www.w3.org/ns/activitystreams#Person","https://www.w3.org/ns/activitystreams#Place","https://www.w3.org/ns/activitystreams#Profile","https://www.w3.org/ns/activitystreams#Relationship","https://www.w3.org/ns/activitystreams#Service","https://www.w3.org/ns/activitystreams#Tombstone"].some( t => v["@type"].includes(t)) ? await Object.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& ["https://www.w3.org/ns/activitystreams#Link","https://www.w3.org/ns/activitystreams#Hashtag","https://www.w3.org/ns/activitystreams#Mention"].some( t => v["@type"].includes(t)) ? await Link.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("http://schema.org#PropertyValue") ? await PropertyValue.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ) : undefined ; if (typeof decoded === "undefined") continue; @@ -10551,23 +10691,23 @@ get urls(): ((URL | Link))[] { typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Application") ? await Application.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Group") ? await Group.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Organization") ? await Organization.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Person") ? await Person.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Service") ? await Service.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ) : undefined ; if (typeof decoded === "undefined") continue; @@ -10602,7 +10742,7 @@ get urls(): ((URL | Link))[] { const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ); if (typeof decoded === "undefined") continue; _3ocC3VVi88cEd5sPWL8djkZsvTN6_audience.push(decoded); @@ -10662,12 +10802,12 @@ get urls(): ((URL | Link))[] { && Array.isArray(v["@type"])&& ["https://www.w3.org/ns/activitystreams#Object","http://joinmastodon.org/ns#Emoji","http://litepub.social/ns#ChatMessage","https://gotosocial.org/ns#AnnounceAuthorization","https://gotosocial.org/ns#LikeApproval","https://gotosocial.org/ns#ReplyAuthorization","https://w3id.org/fep/044f#QuoteAuthorization","https://w3id.org/valueflows/ont/vf#Proposal","https://www.w3.org/ns/activitystreams#Activity","http://litepub.social/ns#EmojiReact","https://gotosocial.org/ns#AnnounceRequest","https://gotosocial.org/ns#LikeRequest","https://gotosocial.org/ns#ReplyRequest","https://w3id.org/fep/044f#QuoteRequest","https://www.w3.org/ns/activitystreams#Accept","https://www.w3.org/ns/activitystreams#TentativeAccept","https://www.w3.org/ns/activitystreams#Add","https://www.w3.org/ns/activitystreams#Announce","https://www.w3.org/ns/activitystreams#Create","https://www.w3.org/ns/activitystreams#Delete","https://www.w3.org/ns/activitystreams#Dislike","https://www.w3.org/ns/activitystreams#Flag","https://www.w3.org/ns/activitystreams#Follow","https://www.w3.org/ns/activitystreams#Ignore","https://www.w3.org/ns/activitystreams#Block","https://www.w3.org/ns/activitystreams#IntransitiveActivity","https://www.w3.org/ns/activitystreams#Arrive","https://www.w3.org/ns/activitystreams#Question","https://www.w3.org/ns/activitystreams#Travel","https://www.w3.org/ns/activitystreams#Join","https://www.w3.org/ns/activitystreams#Leave","https://www.w3.org/ns/activitystreams#Like","https://www.w3.org/ns/activitystreams#Listen","https://www.w3.org/ns/activitystreams#Move","https://www.w3.org/ns/activitystreams#Offer","https://www.w3.org/ns/activitystreams#Invite","https://www.w3.org/ns/activitystreams#Read","https://www.w3.org/ns/activitystreams#Reject","https://www.w3.org/ns/activitystreams#TentativeReject","https://www.w3.org/ns/activitystreams#Remove","https://www.w3.org/ns/activitystreams#Undo","https://www.w3.org/ns/activitystreams#Update","https://www.w3.org/ns/activitystreams#View","https://www.w3.org/ns/activitystreams#Application","https://www.w3.org/ns/activitystreams#Article","https://www.w3.org/ns/activitystreams#Collection","https://www.w3.org/ns/activitystreams#CollectionPage","https://www.w3.org/ns/activitystreams#OrderedCollectionPage","https://www.w3.org/ns/activitystreams#OrderedCollection","https://www.w3.org/ns/activitystreams#Document","https://www.w3.org/ns/activitystreams#Audio","https://www.w3.org/ns/activitystreams#Image","https://www.w3.org/ns/activitystreams#Page","https://www.w3.org/ns/activitystreams#Video","https://www.w3.org/ns/activitystreams#Event","https://www.w3.org/ns/activitystreams#Group","https://www.w3.org/ns/activitystreams#Note","https://www.w3.org/ns/activitystreams#Organization","https://www.w3.org/ns/activitystreams#Person","https://www.w3.org/ns/activitystreams#Place","https://www.w3.org/ns/activitystreams#Profile","https://www.w3.org/ns/activitystreams#Relationship","https://www.w3.org/ns/activitystreams#Service","https://www.w3.org/ns/activitystreams#Tombstone"].some( t => v["@type"].includes(t)) ? await Object.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& ["https://www.w3.org/ns/activitystreams#Link","https://www.w3.org/ns/activitystreams#Hashtag","https://www.w3.org/ns/activitystreams#Mention"].some( t => v["@type"].includes(t)) ? await Link.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ) : undefined ; if (typeof decoded === "undefined") continue; @@ -10751,12 +10891,12 @@ get urls(): ((URL | Link))[] { && Array.isArray(v["@type"])&& ["https://www.w3.org/ns/activitystreams#Object","http://joinmastodon.org/ns#Emoji","http://litepub.social/ns#ChatMessage","https://gotosocial.org/ns#AnnounceAuthorization","https://gotosocial.org/ns#LikeApproval","https://gotosocial.org/ns#ReplyAuthorization","https://w3id.org/fep/044f#QuoteAuthorization","https://w3id.org/valueflows/ont/vf#Proposal","https://www.w3.org/ns/activitystreams#Activity","http://litepub.social/ns#EmojiReact","https://gotosocial.org/ns#AnnounceRequest","https://gotosocial.org/ns#LikeRequest","https://gotosocial.org/ns#ReplyRequest","https://w3id.org/fep/044f#QuoteRequest","https://www.w3.org/ns/activitystreams#Accept","https://www.w3.org/ns/activitystreams#TentativeAccept","https://www.w3.org/ns/activitystreams#Add","https://www.w3.org/ns/activitystreams#Announce","https://www.w3.org/ns/activitystreams#Create","https://www.w3.org/ns/activitystreams#Delete","https://www.w3.org/ns/activitystreams#Dislike","https://www.w3.org/ns/activitystreams#Flag","https://www.w3.org/ns/activitystreams#Follow","https://www.w3.org/ns/activitystreams#Ignore","https://www.w3.org/ns/activitystreams#Block","https://www.w3.org/ns/activitystreams#IntransitiveActivity","https://www.w3.org/ns/activitystreams#Arrive","https://www.w3.org/ns/activitystreams#Question","https://www.w3.org/ns/activitystreams#Travel","https://www.w3.org/ns/activitystreams#Join","https://www.w3.org/ns/activitystreams#Leave","https://www.w3.org/ns/activitystreams#Like","https://www.w3.org/ns/activitystreams#Listen","https://www.w3.org/ns/activitystreams#Move","https://www.w3.org/ns/activitystreams#Offer","https://www.w3.org/ns/activitystreams#Invite","https://www.w3.org/ns/activitystreams#Read","https://www.w3.org/ns/activitystreams#Reject","https://www.w3.org/ns/activitystreams#TentativeReject","https://www.w3.org/ns/activitystreams#Remove","https://www.w3.org/ns/activitystreams#Undo","https://www.w3.org/ns/activitystreams#Update","https://www.w3.org/ns/activitystreams#View","https://www.w3.org/ns/activitystreams#Application","https://www.w3.org/ns/activitystreams#Article","https://www.w3.org/ns/activitystreams#Collection","https://www.w3.org/ns/activitystreams#CollectionPage","https://www.w3.org/ns/activitystreams#OrderedCollectionPage","https://www.w3.org/ns/activitystreams#OrderedCollection","https://www.w3.org/ns/activitystreams#Document","https://www.w3.org/ns/activitystreams#Audio","https://www.w3.org/ns/activitystreams#Image","https://www.w3.org/ns/activitystreams#Page","https://www.w3.org/ns/activitystreams#Video","https://www.w3.org/ns/activitystreams#Event","https://www.w3.org/ns/activitystreams#Group","https://www.w3.org/ns/activitystreams#Note","https://www.w3.org/ns/activitystreams#Organization","https://www.w3.org/ns/activitystreams#Person","https://www.w3.org/ns/activitystreams#Place","https://www.w3.org/ns/activitystreams#Profile","https://www.w3.org/ns/activitystreams#Relationship","https://www.w3.org/ns/activitystreams#Service","https://www.w3.org/ns/activitystreams#Tombstone"].some( t => v["@type"].includes(t)) ? await Object.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& ["https://www.w3.org/ns/activitystreams#Link","https://www.w3.org/ns/activitystreams#Hashtag","https://www.w3.org/ns/activitystreams#Mention"].some( t => v["@type"].includes(t)) ? await Link.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ) : undefined ; if (typeof decoded === "undefined") continue; @@ -10787,7 +10927,7 @@ get urls(): ((URL | Link))[] { documentLoader: options.documentLoader, contextLoader: options.contextLoader, tracerProvider: options.tracerProvider, - baseUrl: (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"])), + baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)), }); if (_result instanceof Error) throw _result; if (_result !== undefined) { @@ -10813,7 +10953,7 @@ get urls(): ((URL | Link))[] { const decoded = await Image.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ); if (typeof decoded === "undefined") continue; _33CjRLy5ujtsUrwRSCrsggvGdKuR_icon.push(decoded); @@ -10842,7 +10982,7 @@ get urls(): ((URL | Link))[] { documentLoader: options.documentLoader, contextLoader: options.contextLoader, tracerProvider: options.tracerProvider, - baseUrl: (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"])), + baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)), }); if (_result instanceof Error) throw _result; if (_result !== undefined) { @@ -10868,7 +11008,7 @@ get urls(): ((URL | Link))[] { const decoded = await Image.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ); if (typeof decoded === "undefined") continue; _3dXrUdkARxwyJLtJcYi1AJ92H41U_image.push(decoded); @@ -10904,12 +11044,12 @@ get urls(): ((URL | Link))[] { && Array.isArray(v["@type"])&& ["https://www.w3.org/ns/activitystreams#Object","http://joinmastodon.org/ns#Emoji","http://litepub.social/ns#ChatMessage","https://gotosocial.org/ns#AnnounceAuthorization","https://gotosocial.org/ns#LikeApproval","https://gotosocial.org/ns#ReplyAuthorization","https://w3id.org/fep/044f#QuoteAuthorization","https://w3id.org/valueflows/ont/vf#Proposal","https://www.w3.org/ns/activitystreams#Activity","http://litepub.social/ns#EmojiReact","https://gotosocial.org/ns#AnnounceRequest","https://gotosocial.org/ns#LikeRequest","https://gotosocial.org/ns#ReplyRequest","https://w3id.org/fep/044f#QuoteRequest","https://www.w3.org/ns/activitystreams#Accept","https://www.w3.org/ns/activitystreams#TentativeAccept","https://www.w3.org/ns/activitystreams#Add","https://www.w3.org/ns/activitystreams#Announce","https://www.w3.org/ns/activitystreams#Create","https://www.w3.org/ns/activitystreams#Delete","https://www.w3.org/ns/activitystreams#Dislike","https://www.w3.org/ns/activitystreams#Flag","https://www.w3.org/ns/activitystreams#Follow","https://www.w3.org/ns/activitystreams#Ignore","https://www.w3.org/ns/activitystreams#Block","https://www.w3.org/ns/activitystreams#IntransitiveActivity","https://www.w3.org/ns/activitystreams#Arrive","https://www.w3.org/ns/activitystreams#Question","https://www.w3.org/ns/activitystreams#Travel","https://www.w3.org/ns/activitystreams#Join","https://www.w3.org/ns/activitystreams#Leave","https://www.w3.org/ns/activitystreams#Like","https://www.w3.org/ns/activitystreams#Listen","https://www.w3.org/ns/activitystreams#Move","https://www.w3.org/ns/activitystreams#Offer","https://www.w3.org/ns/activitystreams#Invite","https://www.w3.org/ns/activitystreams#Read","https://www.w3.org/ns/activitystreams#Reject","https://www.w3.org/ns/activitystreams#TentativeReject","https://www.w3.org/ns/activitystreams#Remove","https://www.w3.org/ns/activitystreams#Undo","https://www.w3.org/ns/activitystreams#Update","https://www.w3.org/ns/activitystreams#View","https://www.w3.org/ns/activitystreams#Application","https://www.w3.org/ns/activitystreams#Article","https://www.w3.org/ns/activitystreams#Collection","https://www.w3.org/ns/activitystreams#CollectionPage","https://www.w3.org/ns/activitystreams#OrderedCollectionPage","https://www.w3.org/ns/activitystreams#OrderedCollection","https://www.w3.org/ns/activitystreams#Document","https://www.w3.org/ns/activitystreams#Audio","https://www.w3.org/ns/activitystreams#Image","https://www.w3.org/ns/activitystreams#Page","https://www.w3.org/ns/activitystreams#Video","https://www.w3.org/ns/activitystreams#Event","https://www.w3.org/ns/activitystreams#Group","https://www.w3.org/ns/activitystreams#Note","https://www.w3.org/ns/activitystreams#Organization","https://www.w3.org/ns/activitystreams#Person","https://www.w3.org/ns/activitystreams#Place","https://www.w3.org/ns/activitystreams#Profile","https://www.w3.org/ns/activitystreams#Relationship","https://www.w3.org/ns/activitystreams#Service","https://www.w3.org/ns/activitystreams#Tombstone"].some( t => v["@type"].includes(t)) ? await Object.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& ["https://www.w3.org/ns/activitystreams#Link","https://www.w3.org/ns/activitystreams#Hashtag","https://www.w3.org/ns/activitystreams#Mention"].some( t => v["@type"].includes(t)) ? await Link.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ) : undefined ; if (typeof decoded === "undefined") continue; @@ -10947,12 +11087,12 @@ get urls(): ((URL | Link))[] { && Array.isArray(v["@type"])&& ["https://www.w3.org/ns/activitystreams#Object","http://joinmastodon.org/ns#Emoji","http://litepub.social/ns#ChatMessage","https://gotosocial.org/ns#AnnounceAuthorization","https://gotosocial.org/ns#LikeApproval","https://gotosocial.org/ns#ReplyAuthorization","https://w3id.org/fep/044f#QuoteAuthorization","https://w3id.org/valueflows/ont/vf#Proposal","https://www.w3.org/ns/activitystreams#Activity","http://litepub.social/ns#EmojiReact","https://gotosocial.org/ns#AnnounceRequest","https://gotosocial.org/ns#LikeRequest","https://gotosocial.org/ns#ReplyRequest","https://w3id.org/fep/044f#QuoteRequest","https://www.w3.org/ns/activitystreams#Accept","https://www.w3.org/ns/activitystreams#TentativeAccept","https://www.w3.org/ns/activitystreams#Add","https://www.w3.org/ns/activitystreams#Announce","https://www.w3.org/ns/activitystreams#Create","https://www.w3.org/ns/activitystreams#Delete","https://www.w3.org/ns/activitystreams#Dislike","https://www.w3.org/ns/activitystreams#Flag","https://www.w3.org/ns/activitystreams#Follow","https://www.w3.org/ns/activitystreams#Ignore","https://www.w3.org/ns/activitystreams#Block","https://www.w3.org/ns/activitystreams#IntransitiveActivity","https://www.w3.org/ns/activitystreams#Arrive","https://www.w3.org/ns/activitystreams#Question","https://www.w3.org/ns/activitystreams#Travel","https://www.w3.org/ns/activitystreams#Join","https://www.w3.org/ns/activitystreams#Leave","https://www.w3.org/ns/activitystreams#Like","https://www.w3.org/ns/activitystreams#Listen","https://www.w3.org/ns/activitystreams#Move","https://www.w3.org/ns/activitystreams#Offer","https://www.w3.org/ns/activitystreams#Invite","https://www.w3.org/ns/activitystreams#Read","https://www.w3.org/ns/activitystreams#Reject","https://www.w3.org/ns/activitystreams#TentativeReject","https://www.w3.org/ns/activitystreams#Remove","https://www.w3.org/ns/activitystreams#Undo","https://www.w3.org/ns/activitystreams#Update","https://www.w3.org/ns/activitystreams#View","https://www.w3.org/ns/activitystreams#Application","https://www.w3.org/ns/activitystreams#Article","https://www.w3.org/ns/activitystreams#Collection","https://www.w3.org/ns/activitystreams#CollectionPage","https://www.w3.org/ns/activitystreams#OrderedCollectionPage","https://www.w3.org/ns/activitystreams#OrderedCollection","https://www.w3.org/ns/activitystreams#Document","https://www.w3.org/ns/activitystreams#Audio","https://www.w3.org/ns/activitystreams#Image","https://www.w3.org/ns/activitystreams#Page","https://www.w3.org/ns/activitystreams#Video","https://www.w3.org/ns/activitystreams#Event","https://www.w3.org/ns/activitystreams#Group","https://www.w3.org/ns/activitystreams#Note","https://www.w3.org/ns/activitystreams#Organization","https://www.w3.org/ns/activitystreams#Person","https://www.w3.org/ns/activitystreams#Place","https://www.w3.org/ns/activitystreams#Profile","https://www.w3.org/ns/activitystreams#Relationship","https://www.w3.org/ns/activitystreams#Service","https://www.w3.org/ns/activitystreams#Tombstone"].some( t => v["@type"].includes(t)) ? await Object.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& ["https://www.w3.org/ns/activitystreams#Link","https://www.w3.org/ns/activitystreams#Hashtag","https://www.w3.org/ns/activitystreams#Mention"].some( t => v["@type"].includes(t)) ? await Link.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ) : undefined ; if (typeof decoded === "undefined") continue; @@ -10990,12 +11130,12 @@ get urls(): ((URL | Link))[] { && Array.isArray(v["@type"])&& ["https://www.w3.org/ns/activitystreams#Link","https://www.w3.org/ns/activitystreams#Hashtag","https://www.w3.org/ns/activitystreams#Mention"].some( t => v["@type"].includes(t)) ? await Link.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& ["https://www.w3.org/ns/activitystreams#Object","http://joinmastodon.org/ns#Emoji","http://litepub.social/ns#ChatMessage","https://gotosocial.org/ns#AnnounceAuthorization","https://gotosocial.org/ns#LikeApproval","https://gotosocial.org/ns#ReplyAuthorization","https://w3id.org/fep/044f#QuoteAuthorization","https://w3id.org/valueflows/ont/vf#Proposal","https://www.w3.org/ns/activitystreams#Activity","http://litepub.social/ns#EmojiReact","https://gotosocial.org/ns#AnnounceRequest","https://gotosocial.org/ns#LikeRequest","https://gotosocial.org/ns#ReplyRequest","https://w3id.org/fep/044f#QuoteRequest","https://www.w3.org/ns/activitystreams#Accept","https://www.w3.org/ns/activitystreams#TentativeAccept","https://www.w3.org/ns/activitystreams#Add","https://www.w3.org/ns/activitystreams#Announce","https://www.w3.org/ns/activitystreams#Create","https://www.w3.org/ns/activitystreams#Delete","https://www.w3.org/ns/activitystreams#Dislike","https://www.w3.org/ns/activitystreams#Flag","https://www.w3.org/ns/activitystreams#Follow","https://www.w3.org/ns/activitystreams#Ignore","https://www.w3.org/ns/activitystreams#Block","https://www.w3.org/ns/activitystreams#IntransitiveActivity","https://www.w3.org/ns/activitystreams#Arrive","https://www.w3.org/ns/activitystreams#Question","https://www.w3.org/ns/activitystreams#Travel","https://www.w3.org/ns/activitystreams#Join","https://www.w3.org/ns/activitystreams#Leave","https://www.w3.org/ns/activitystreams#Like","https://www.w3.org/ns/activitystreams#Listen","https://www.w3.org/ns/activitystreams#Move","https://www.w3.org/ns/activitystreams#Offer","https://www.w3.org/ns/activitystreams#Invite","https://www.w3.org/ns/activitystreams#Read","https://www.w3.org/ns/activitystreams#Reject","https://www.w3.org/ns/activitystreams#TentativeReject","https://www.w3.org/ns/activitystreams#Remove","https://www.w3.org/ns/activitystreams#Undo","https://www.w3.org/ns/activitystreams#Update","https://www.w3.org/ns/activitystreams#View","https://www.w3.org/ns/activitystreams#Application","https://www.w3.org/ns/activitystreams#Article","https://www.w3.org/ns/activitystreams#Collection","https://www.w3.org/ns/activitystreams#CollectionPage","https://www.w3.org/ns/activitystreams#OrderedCollectionPage","https://www.w3.org/ns/activitystreams#OrderedCollection","https://www.w3.org/ns/activitystreams#Document","https://www.w3.org/ns/activitystreams#Audio","https://www.w3.org/ns/activitystreams#Image","https://www.w3.org/ns/activitystreams#Page","https://www.w3.org/ns/activitystreams#Video","https://www.w3.org/ns/activitystreams#Event","https://www.w3.org/ns/activitystreams#Group","https://www.w3.org/ns/activitystreams#Note","https://www.w3.org/ns/activitystreams#Organization","https://www.w3.org/ns/activitystreams#Person","https://www.w3.org/ns/activitystreams#Place","https://www.w3.org/ns/activitystreams#Profile","https://www.w3.org/ns/activitystreams#Relationship","https://www.w3.org/ns/activitystreams#Service","https://www.w3.org/ns/activitystreams#Tombstone"].some( t => v["@type"].includes(t)) ? await Object.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ) : undefined ; if (typeof decoded === "undefined") continue; @@ -11052,7 +11192,7 @@ get urls(): ((URL | Link))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ); if (typeof decoded === "undefined") continue; _7UpwM3JWcXhADcscukEehBorf6k_replies.push(decoded); @@ -11085,7 +11225,7 @@ get urls(): ((URL | Link))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ); if (typeof decoded === "undefined") continue; _3kAfck9PcEYt2L7xug5y99YPbANs_shares.push(decoded); @@ -11118,7 +11258,7 @@ get urls(): ((URL | Link))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ); if (typeof decoded === "undefined") continue; _S3ceDnpMdzoTRCccB9FkJWrEzYW_likes.push(decoded); @@ -11151,7 +11291,7 @@ get urls(): ((URL | Link))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ); if (typeof decoded === "undefined") continue; _kMatyyNAuxoTD8GQMBfA5ogThMR_emojiReactions.push(decoded); @@ -11233,12 +11373,12 @@ get urls(): ((URL | Link))[] { && Array.isArray(v["@type"])&& ["https://www.w3.org/ns/activitystreams#Object","http://joinmastodon.org/ns#Emoji","http://litepub.social/ns#ChatMessage","https://gotosocial.org/ns#AnnounceAuthorization","https://gotosocial.org/ns#LikeApproval","https://gotosocial.org/ns#ReplyAuthorization","https://w3id.org/fep/044f#QuoteAuthorization","https://w3id.org/valueflows/ont/vf#Proposal","https://www.w3.org/ns/activitystreams#Activity","http://litepub.social/ns#EmojiReact","https://gotosocial.org/ns#AnnounceRequest","https://gotosocial.org/ns#LikeRequest","https://gotosocial.org/ns#ReplyRequest","https://w3id.org/fep/044f#QuoteRequest","https://www.w3.org/ns/activitystreams#Accept","https://www.w3.org/ns/activitystreams#TentativeAccept","https://www.w3.org/ns/activitystreams#Add","https://www.w3.org/ns/activitystreams#Announce","https://www.w3.org/ns/activitystreams#Create","https://www.w3.org/ns/activitystreams#Delete","https://www.w3.org/ns/activitystreams#Dislike","https://www.w3.org/ns/activitystreams#Flag","https://www.w3.org/ns/activitystreams#Follow","https://www.w3.org/ns/activitystreams#Ignore","https://www.w3.org/ns/activitystreams#Block","https://www.w3.org/ns/activitystreams#IntransitiveActivity","https://www.w3.org/ns/activitystreams#Arrive","https://www.w3.org/ns/activitystreams#Question","https://www.w3.org/ns/activitystreams#Travel","https://www.w3.org/ns/activitystreams#Join","https://www.w3.org/ns/activitystreams#Leave","https://www.w3.org/ns/activitystreams#Like","https://www.w3.org/ns/activitystreams#Listen","https://www.w3.org/ns/activitystreams#Move","https://www.w3.org/ns/activitystreams#Offer","https://www.w3.org/ns/activitystreams#Invite","https://www.w3.org/ns/activitystreams#Read","https://www.w3.org/ns/activitystreams#Reject","https://www.w3.org/ns/activitystreams#TentativeReject","https://www.w3.org/ns/activitystreams#Remove","https://www.w3.org/ns/activitystreams#Undo","https://www.w3.org/ns/activitystreams#Update","https://www.w3.org/ns/activitystreams#View","https://www.w3.org/ns/activitystreams#Application","https://www.w3.org/ns/activitystreams#Article","https://www.w3.org/ns/activitystreams#Collection","https://www.w3.org/ns/activitystreams#CollectionPage","https://www.w3.org/ns/activitystreams#OrderedCollectionPage","https://www.w3.org/ns/activitystreams#OrderedCollection","https://www.w3.org/ns/activitystreams#Document","https://www.w3.org/ns/activitystreams#Audio","https://www.w3.org/ns/activitystreams#Image","https://www.w3.org/ns/activitystreams#Page","https://www.w3.org/ns/activitystreams#Video","https://www.w3.org/ns/activitystreams#Event","https://www.w3.org/ns/activitystreams#Group","https://www.w3.org/ns/activitystreams#Note","https://www.w3.org/ns/activitystreams#Organization","https://www.w3.org/ns/activitystreams#Person","https://www.w3.org/ns/activitystreams#Place","https://www.w3.org/ns/activitystreams#Profile","https://www.w3.org/ns/activitystreams#Relationship","https://www.w3.org/ns/activitystreams#Service","https://www.w3.org/ns/activitystreams#Tombstone"].some( t => v["@type"].includes(t)) ? await Object.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& ["https://www.w3.org/ns/activitystreams#Link","https://www.w3.org/ns/activitystreams#Hashtag","https://www.w3.org/ns/activitystreams#Mention"].some( t => v["@type"].includes(t)) ? await Link.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ) : undefined ; if (typeof decoded === "undefined") continue; @@ -11297,13 +11437,13 @@ get urls(): ((URL | Link))[] { : "" ) ) - : URL.canParse(v["@id"]) && (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) + : URL.canParse(v["@id"]) && (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) ? new URL(v["@id"]) - : new URL(v["@id"], (values["@id"] == null ? options.baseUrl : new URL(values["@id"]))) : typeof v === "object" && "@type" in v + : new URL(v["@id"], (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl))) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& ["https://www.w3.org/ns/activitystreams#Link","https://www.w3.org/ns/activitystreams#Hashtag","https://www.w3.org/ns/activitystreams#Mention"].some( t => v["@type"].includes(t)) ? await Link.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ) : undefined ; if (typeof decoded === "undefined") continue; @@ -11338,7 +11478,7 @@ get urls(): ((URL | Link))[] { const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ); if (typeof decoded === "undefined") continue; _3hFbw7DTpHhq3cvVhkY8njhcsXbd_to.push(decoded); @@ -11371,7 +11511,7 @@ get urls(): ((URL | Link))[] { const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ); if (typeof decoded === "undefined") continue; _aLZupjwL8XB7tzdLgCMXdjZ6qej_bto.push(decoded); @@ -11404,7 +11544,7 @@ get urls(): ((URL | Link))[] { const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ); if (typeof decoded === "undefined") continue; _42a1SvBs24QSLzKcfjCyNTjW5a1g_cc.push(decoded); @@ -11437,7 +11577,7 @@ get urls(): ((URL | Link))[] { const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ); if (typeof decoded === "undefined") continue; _3qvegKUB8YLgTXRpEf8E6JZSkz2H_bcc.push(decoded); @@ -11512,7 +11652,7 @@ get urls(): ((URL | Link))[] { const decoded = await Source.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ); if (typeof decoded === "undefined") continue; _2ZwCFoS787v8y8bXKjMoE6MAbrEB_source.push(decoded); @@ -11545,7 +11685,7 @@ get urls(): ((URL | Link))[] { const decoded = await DataIntegrityProof.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ); if (typeof decoded === "undefined") continue; _42rPnotok1ivQ2RNCKNbeFJgx8b8_proof.push(decoded); @@ -11566,7 +11706,7 @@ get urls(): ((URL | Link))[] { const decoded = await InteractionPolicy.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ); if (typeof decoded === "undefined") continue; _2MHQfh2N74MMmDLDqYWFo7TxYQK2_interactionPolicy.push(decoded); @@ -11598,9 +11738,9 @@ get urls(): ((URL | Link))[] { : "" ) ) - : URL.canParse(v["@id"]) && (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"])) + : URL.canParse(v["@id"]) && (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) ? new URL(v["@id"]) - : new URL(v["@id"], (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"]))); + : new URL(v["@id"], (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl))); if (typeof decoded === "undefined") continue; _23YiVs2miQcEiUdn4u8SvjQKWYim_approvedBy.push(decoded); } @@ -11632,7 +11772,7 @@ get urls(): ((URL | Link))[] { const decoded = await LikeAuthorization.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ); if (typeof decoded === "undefined") continue; _3fCeb5aXaDDd4fvkQ96BLWifBUBa_likeAuthorization.push(decoded); @@ -11665,7 +11805,7 @@ get urls(): ((URL | Link))[] { const decoded = await ReplyAuthorization.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ); if (typeof decoded === "undefined") continue; _YA4wdUW7rYztAQ6SjhMnJCmcmtP_replyAuthorization.push(decoded); @@ -11698,7 +11838,7 @@ get urls(): ((URL | Link))[] { const decoded = await AnnounceAuthorization.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ); if (typeof decoded === "undefined") continue; _446xEaDBs3Fz6MyzP3PSBaLupkbJ_announceAuthorization.push(decoded); @@ -12876,7 +13016,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null) { + if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { options = { ...options, baseUrl: new URL(values["@id"]) }; } @@ -13313,7 +13453,11 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu "quote"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === "object" && "@context" in doc) { - v = await this.#quote_fromJsonLd(doc, options); + v = await this.#quote_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -13552,7 +13696,11 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu "quoteAuthorization"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === "object" && "@context" in doc) { - v = await this.#quoteAuthorization_fromJsonLd(doc, options); + v = await this.#quoteAuthorization_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -13874,7 +14022,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null) { + if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { options = { ...options, baseUrl: new URL(values["@id"]) }; } @@ -13925,7 +14073,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ); if (typeof decoded === "undefined") continue; _3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote.push(decoded); @@ -13984,7 +14132,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await QuoteAuthorization.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ); if (typeof decoded === "undefined") continue; _ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization.push(decoded); @@ -14930,7 +15078,11 @@ instruments?: (Object | URL)[];} "actor"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === "object" && "@context" in doc) { - v = await this.#actor_fromJsonLd(doc, options); + v = await this.#actor_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -15026,7 +15178,11 @@ instruments?: (Object | URL)[];} "actor"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === "object" && "@context" in obj) { - v = await this.#actor_fromJsonLd(obj, options); + v = await this.#actor_fromJsonLd(obj, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -15244,7 +15400,11 @@ instruments?: (Object | URL)[];} "object"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === "object" && "@context" in doc) { - v = await this.#object_fromJsonLd(doc, options); + v = await this.#object_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -15340,7 +15500,11 @@ instruments?: (Object | URL)[];} "object"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === "object" && "@context" in obj) { - v = await this.#object_fromJsonLd(obj, options); + v = await this.#object_fromJsonLd(obj, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -15561,7 +15725,11 @@ instruments?: (Object | URL)[];} "target"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === "object" && "@context" in doc) { - v = await this.#target_fromJsonLd(doc, options); + v = await this.#target_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -15660,7 +15828,11 @@ instruments?: (Object | URL)[];} "target"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === "object" && "@context" in obj) { - v = await this.#target_fromJsonLd(obj, options); + v = await this.#target_fromJsonLd(obj, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -15878,7 +16050,11 @@ instruments?: (Object | URL)[];} "result"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === "object" && "@context" in doc) { - v = await this.#result_fromJsonLd(doc, options); + v = await this.#result_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -15974,7 +16150,11 @@ instruments?: (Object | URL)[];} "result"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === "object" && "@context" in obj) { - v = await this.#result_fromJsonLd(obj, options); + v = await this.#result_fromJsonLd(obj, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -16193,7 +16373,11 @@ instruments?: (Object | URL)[];} "origin"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === "object" && "@context" in doc) { - v = await this.#origin_fromJsonLd(doc, options); + v = await this.#origin_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -16290,7 +16474,11 @@ instruments?: (Object | URL)[];} "origin"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === "object" && "@context" in obj) { - v = await this.#origin_fromJsonLd(obj, options); + v = await this.#origin_fromJsonLd(obj, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -16507,7 +16695,11 @@ instruments?: (Object | URL)[];} "instrument"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === "object" && "@context" in doc) { - v = await this.#instrument_fromJsonLd(doc, options); + v = await this.#instrument_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -16602,7 +16794,11 @@ instruments?: (Object | URL)[];} "instrument"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === "object" && "@context" in obj) { - v = await this.#instrument_fromJsonLd(obj, options); + v = await this.#instrument_fromJsonLd(obj, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -16883,7 +17079,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null) { + if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { options = { ...options, baseUrl: new URL(values["@id"]) }; } @@ -17072,23 +17268,23 @@ instruments?: (Object | URL)[];} typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Application") ? await Application.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Group") ? await Group.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Organization") ? await Organization.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Person") ? await Person.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Service") ? await Service.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ) : undefined ; if (typeof decoded === "undefined") continue; @@ -17123,7 +17319,7 @@ instruments?: (Object | URL)[];} const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ); if (typeof decoded === "undefined") continue; _2MH19yxjn1wnHsNfa5n4JBhJzxyc_object.push(decoded); @@ -17156,7 +17352,7 @@ instruments?: (Object | URL)[];} const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ); if (typeof decoded === "undefined") continue; _3JQCmF2Ww56Ag9EWRYoSZRDNCYtF_target.push(decoded); @@ -17189,7 +17385,7 @@ instruments?: (Object | URL)[];} const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ); if (typeof decoded === "undefined") continue; _u4QGFbRFcYmPEKGbPv1hpBR9r5G_result.push(decoded); @@ -17222,7 +17418,7 @@ instruments?: (Object | URL)[];} const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ); if (typeof decoded === "undefined") continue; _25zu2s3VxVujgEKqrDycjE284XQR_origin.push(decoded); @@ -17255,7 +17451,7 @@ instruments?: (Object | URL)[];} const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ); if (typeof decoded === "undefined") continue; _3c5t2x7DYRo2shwTxpkd4kYSS5WQ_instrument.push(decoded); @@ -17726,7 +17922,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null) { + if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { options = { ...options, baseUrl: new URL(values["@id"]) }; } @@ -18229,7 +18425,7 @@ name?: string | LanguageString | null;value?: string | LanguageString | null;} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null) { + if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { options = { ...options, baseUrl: new URL(values["@id"]) }; } @@ -18815,7 +19011,7 @@ unit?: string | null;numericalValue?: Decimal | null;} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null) { + if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { options = { ...options, baseUrl: new URL(values["@id"]) }; } @@ -19314,7 +19510,11 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu "interactingObject"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === "object" && "@context" in doc) { - v = await this.#interactingObject_fromJsonLd(doc, options); + v = await this.#interactingObject_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -19529,7 +19729,11 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu "interactionTarget"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === "object" && "@context" in doc) { - v = await this.#interactionTarget_fromJsonLd(doc, options); + v = await this.#interactionTarget_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -19806,7 +20010,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null) { + if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { options = { ...options, baseUrl: new URL(values["@id"]) }; } @@ -19857,7 +20061,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ); if (typeof decoded === "undefined") continue; _2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject.push(decoded); @@ -19890,7 +20094,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ); if (typeof decoded === "undefined") continue; _2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget.push(decoded); @@ -20255,7 +20459,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null) { + if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { options = { ...options, baseUrl: new URL(values["@id"]) }; } @@ -20846,7 +21050,7 @@ canLike?: InteractionRule | null;canReply?: InteractionRule | null;canAnnounce?: // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null) { + if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { options = { ...options, baseUrl: new URL(values["@id"]) }; } @@ -20880,7 +21084,7 @@ canLike?: InteractionRule | null;canReply?: InteractionRule | null;canAnnounce?: const decoded = await InteractionRule.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ); if (typeof decoded === "undefined") continue; _3JkwVLb3BNCwCWdsb5RftGAg8vyT_canLike.push(decoded); @@ -20901,7 +21105,7 @@ canLike?: InteractionRule | null;canReply?: InteractionRule | null;canAnnounce?: const decoded = await InteractionRule.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ); if (typeof decoded === "undefined") continue; _2UBgLRi5p3DRGGvWyB227i4Qjhzd_canReply.push(decoded); @@ -20922,7 +21126,7 @@ canLike?: InteractionRule | null;canReply?: InteractionRule | null;canAnnounce?: const decoded = await InteractionRule.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ); if (typeof decoded === "undefined") continue; _fu5nmoAj528fBQfnxhY9Daok3Vi_canAnnounce.push(decoded); @@ -20943,7 +21147,7 @@ canLike?: InteractionRule | null;canReply?: InteractionRule | null;canAnnounce?: const decoded = await InteractionRule.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ); if (typeof decoded === "undefined") continue; _LE3zBTVacTZw2LSyLt4wVUkXeUy_canQuote.push(decoded); @@ -21594,7 +21798,7 @@ get manualApprovals(): (URL)[] { // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null) { + if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { options = { ...options, baseUrl: new URL(values["@id"]) }; } @@ -21639,9 +21843,9 @@ get manualApprovals(): (URL)[] { : "" ) ) - : URL.canParse(v["@id"]) && (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"])) + : URL.canParse(v["@id"]) && (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) ? new URL(v["@id"]) - : new URL(v["@id"], (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"]))); + : new URL(v["@id"], (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl))); if (typeof decoded === "undefined") continue; _2rFyCF14HoyNjitj9PmCzek5iSsg_automaticApproval.push(decoded); } @@ -21672,9 +21876,9 @@ get manualApprovals(): (URL)[] { : "" ) ) - : URL.canParse(v["@id"]) && (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"])) + : URL.canParse(v["@id"]) && (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) ? new URL(v["@id"]) - : new URL(v["@id"], (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"]))); + : new URL(v["@id"], (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl))); if (typeof decoded === "undefined") continue; _sxj8y5XMMMBWUnRYFw85MKedCMj_manualApproval.push(decoded); } @@ -22134,7 +22338,11 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu "interactingObject"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === "object" && "@context" in doc) { - v = await this.#interactingObject_fromJsonLd(doc, options); + v = await this.#interactingObject_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -22349,7 +22557,11 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu "interactionTarget"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === "object" && "@context" in doc) { - v = await this.#interactionTarget_fromJsonLd(doc, options); + v = await this.#interactionTarget_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -22626,7 +22838,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null) { + if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { options = { ...options, baseUrl: new URL(values["@id"]) }; } @@ -22677,7 +22889,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ); if (typeof decoded === "undefined") continue; _2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject.push(decoded); @@ -22710,7 +22922,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ); if (typeof decoded === "undefined") continue; _2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget.push(decoded); @@ -23074,7 +23286,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null) { + if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { options = { ...options, baseUrl: new URL(values["@id"]) }; } @@ -23486,7 +23698,11 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu "interactingObject"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === "object" && "@context" in doc) { - v = await this.#interactingObject_fromJsonLd(doc, options); + v = await this.#interactingObject_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -23701,7 +23917,11 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu "interactionTarget"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === "object" && "@context" in doc) { - v = await this.#interactionTarget_fromJsonLd(doc, options); + v = await this.#interactionTarget_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -23978,7 +24198,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null) { + if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { options = { ...options, baseUrl: new URL(values["@id"]) }; } @@ -24029,7 +24249,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ); if (typeof decoded === "undefined") continue; _2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject.push(decoded); @@ -24062,7 +24282,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ); if (typeof decoded === "undefined") continue; _2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget.push(decoded); @@ -24426,7 +24646,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null) { + if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { options = { ...options, baseUrl: new URL(values["@id"]) }; } @@ -24837,7 +25057,11 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu "interactingObject"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === "object" && "@context" in doc) { - v = await this.#interactingObject_fromJsonLd(doc, options); + v = await this.#interactingObject_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -25052,7 +25276,11 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu "interactionTarget"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === "object" && "@context" in doc) { - v = await this.#interactionTarget_fromJsonLd(doc, options); + v = await this.#interactionTarget_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -25329,7 +25557,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null) { + if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { options = { ...options, baseUrl: new URL(values["@id"]) }; } @@ -25380,7 +25608,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ); if (typeof decoded === "undefined") continue; _2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject.push(decoded); @@ -25413,7 +25641,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ); if (typeof decoded === "undefined") continue; _2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget.push(decoded); @@ -25777,7 +26005,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null) { + if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { options = { ...options, baseUrl: new URL(values["@id"]) }; } @@ -26222,7 +26450,7 @@ get endpoints(): (URL)[] { // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null) { + if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { options = { ...options, baseUrl: new URL(values["@id"]) }; } @@ -26271,9 +26499,9 @@ get endpoints(): (URL)[] { : "" ) ) - : URL.canParse(v["@id"]) && (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"])) + : URL.canParse(v["@id"]) && (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) ? new URL(v["@id"]) - : new URL(v["@id"], (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"]))); + : new URL(v["@id"], (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl))); if (typeof decoded === "undefined") continue; _2KM4fetG6FTJ1cphj76rzJ8Dyv7p_serviceEndpoint.push(decoded); } @@ -26575,7 +26803,7 @@ endpoints?: (URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null) { + if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { options = { ...options, baseUrl: new URL(values["@id"]) }; } @@ -27393,7 +27621,7 @@ cryptosuite?: "eddsa-jcs-2022" | null;verificationMethod?: Multikey | URL | null // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null) { + if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { options = { ...options, baseUrl: new URL(values["@id"]) }; } @@ -27457,7 +27685,7 @@ cryptosuite?: "eddsa-jcs-2022" | null;verificationMethod?: Multikey | URL | null const decoded = await Multikey.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ); if (typeof decoded === "undefined") continue; _2mHVKxqA7zncjveJrDEo3pWpMZqg_verificationMethod.push(decoded); @@ -28083,7 +28311,11 @@ owner?: Application | Group | Organization | Person | Service | URL | null;publi "owner"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === "object" && "@context" in doc) { - v = await this.#owner_fromJsonLd(doc, options); + v = await this.#owner_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -28358,7 +28590,7 @@ owner?: Application | Group | Organization | Person | Service | URL | null;publi // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null) { + if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { options = { ...options, baseUrl: new URL(values["@id"]) }; } @@ -28406,23 +28638,23 @@ owner?: Application | Group | Organization | Person | Service | URL | null;publi typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Application") ? await Application.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Group") ? await Group.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Organization") ? await Organization.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Person") ? await Person.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Service") ? await Service.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ) : undefined ; if (typeof decoded === "undefined") continue; @@ -28954,7 +29186,11 @@ controller?: Application | Group | Organization | Person | Service | URL | null; "controller"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === "object" && "@context" in doc) { - v = await this.#controller_fromJsonLd(doc, options); + v = await this.#controller_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -29236,7 +29472,7 @@ controller?: Application | Group | Organization | Person | Service | URL | null; // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null) { + if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { options = { ...options, baseUrl: new URL(values["@id"]) }; } @@ -29284,23 +29520,23 @@ controller?: Application | Group | Organization | Person | Service | URL | null; typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Application") ? await Application.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Group") ? await Group.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Organization") ? await Organization.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Person") ? await Person.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Service") ? await Service.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ) : undefined ; if (typeof decoded === "undefined") continue; @@ -30071,7 +30307,7 @@ action?: string | null;resourceConformsTo?: URL | null;resourceQuantity?: Measur // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null) { + if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { options = { ...options, baseUrl: new URL(values["@id"]) }; } @@ -30134,9 +30370,9 @@ action?: string | null;resourceConformsTo?: URL | null;resourceQuantity?: Measur : "" ) ) - : URL.canParse(v["@id"]) && (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"])) + : URL.canParse(v["@id"]) && (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) ? new URL(v["@id"]) - : new URL(v["@id"], (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"]))); + : new URL(v["@id"], (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl))); if (typeof decoded === "undefined") continue; _BBAeMUUQDwBQn6cvu3P2Csd6b6h_resourceConformsTo.push(decoded); } @@ -30156,7 +30392,7 @@ action?: string | null;resourceConformsTo?: URL | null;resourceQuantity?: Measur const decoded = await Measure.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ); if (typeof decoded === "undefined") continue; _2dLfqTbbRiggEcMQWbHpxkQrtmrc_resourceQuantity.push(decoded); @@ -30177,7 +30413,7 @@ action?: string | null;resourceConformsTo?: URL | null;resourceQuantity?: Measur const decoded = await Measure.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ); if (typeof decoded === "undefined") continue; _YmNSnuih3Zk4VdR5JPVnQYroLAh_availableQuantity.push(decoded); @@ -30198,7 +30434,7 @@ action?: string | null;resourceConformsTo?: URL | null;resourceQuantity?: Measur const decoded = await Measure.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ); if (typeof decoded === "undefined") continue; _3XueAFds2NBrqNpnV8b7aC8hV72S_minimumQuantity.push(decoded); @@ -30943,7 +31179,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null) { + if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { options = { ...options, baseUrl: new URL(values["@id"]) }; } @@ -31000,7 +31236,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Intent.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ); if (typeof decoded === "undefined") continue; _sS5LvXX8cn4c3x6ux836AwYbTyJ_publishes.push(decoded); @@ -31021,7 +31257,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Intent.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ); if (typeof decoded === "undefined") continue; _Z4ntJgFwR9BaNTbFvkRTGNEwUwy_reciprocal.push(decoded); @@ -31436,7 +31672,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null) { + if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { options = { ...options, baseUrl: new URL(values["@id"]) }; } @@ -31776,7 +32012,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null) { + if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { options = { ...options, baseUrl: new URL(values["@id"]) }; } @@ -32111,7 +32347,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null) { + if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { options = { ...options, baseUrl: new URL(values["@id"]) }; } @@ -33387,7 +33623,11 @@ get preferredUsernames(): ((string | LanguageString))[] { "publicKey"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === "object" && "@context" in doc) { - v = await this.#publicKey_fromJsonLd(doc, options); + v = await this.#publicKey_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -33480,7 +33720,11 @@ get preferredUsernames(): ((string | LanguageString))[] { "publicKey"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === "object" && "@context" in obj) { - v = await this.#publicKey_fromJsonLd(obj, options); + v = await this.#publicKey_fromJsonLd(obj, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -33699,7 +33943,11 @@ get preferredUsernames(): ((string | LanguageString))[] { "assertionMethod"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === "object" && "@context" in doc) { - v = await this.#assertionMethod_fromJsonLd(doc, options); + v = await this.#assertionMethod_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -33796,7 +34044,11 @@ get preferredUsernames(): ((string | LanguageString))[] { "assertionMethod"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === "object" && "@context" in obj) { - v = await this.#assertionMethod_fromJsonLd(obj, options); + v = await this.#assertionMethod_fromJsonLd(obj, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -34052,7 +34304,11 @@ get preferredUsernames(): ((string | LanguageString))[] { "inbox"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === "object" && "@context" in doc) { - v = await this.#inbox_fromJsonLd(doc, options); + v = await this.#inbox_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -34285,7 +34541,11 @@ get preferredUsernames(): ((string | LanguageString))[] { "outbox"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === "object" && "@context" in doc) { - v = await this.#outbox_fromJsonLd(doc, options); + v = await this.#outbox_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -34504,7 +34764,11 @@ get preferredUsernames(): ((string | LanguageString))[] { "following"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === "object" && "@context" in doc) { - v = await this.#following_fromJsonLd(doc, options); + v = await this.#following_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -34726,7 +34990,11 @@ get preferredUsernames(): ((string | LanguageString))[] { "followers"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === "object" && "@context" in doc) { - v = await this.#followers_fromJsonLd(doc, options); + v = await this.#followers_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -34946,7 +35214,11 @@ get preferredUsernames(): ((string | LanguageString))[] { "liked"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === "object" && "@context" in doc) { - v = await this.#liked_fromJsonLd(doc, options); + v = await this.#liked_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -35164,7 +35436,11 @@ get preferredUsernames(): ((string | LanguageString))[] { "featured"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === "object" && "@context" in doc) { - v = await this.#featured_fromJsonLd(doc, options); + v = await this.#featured_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -35382,7 +35658,11 @@ get preferredUsernames(): ((string | LanguageString))[] { "featuredTags"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === "object" && "@context" in doc) { - v = await this.#featuredTags_fromJsonLd(doc, options); + v = await this.#featuredTags_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -35598,7 +35878,11 @@ get preferredUsernames(): ((string | LanguageString))[] { "streams"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === "object" && "@context" in obj) { - v = await this.#stream_fromJsonLd(obj, options); + v = await this.#stream_fromJsonLd(obj, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -35924,7 +36208,11 @@ get preferredUsernames(): ((string | LanguageString))[] { "movedTo"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === "object" && "@context" in doc) { - v = await this.#successor_fromJsonLd(doc, options); + v = await this.#successor_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -36178,7 +36466,11 @@ get preferredUsernames(): ((string | LanguageString))[] { "alsoKnownAs"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === "object" && "@context" in doc) { - v = await this.#alias_fromJsonLd(doc, options); + v = await this.#alias_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -36275,7 +36567,11 @@ get preferredUsernames(): ((string | LanguageString))[] { "alsoKnownAs"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === "object" && "@context" in obj) { - v = await this.#alias_fromJsonLd(obj, options); + v = await this.#alias_fromJsonLd(obj, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -36494,7 +36790,11 @@ get preferredUsernames(): ((string | LanguageString))[] { "service"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === "object" && "@context" in doc) { - v = await this.#service_fromJsonLd(doc, options); + v = await this.#service_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -36591,7 +36891,11 @@ get preferredUsernames(): ((string | LanguageString))[] { "service"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === "object" && "@context" in obj) { - v = await this.#service_fromJsonLd(obj, options); + v = await this.#service_fromJsonLd(obj, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -37624,7 +37928,7 @@ get preferredUsernames(): ((string | LanguageString))[] { // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null) { + if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { options = { ...options, baseUrl: new URL(values["@id"]) }; } @@ -37699,7 +38003,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await CryptographicKey.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ); if (typeof decoded === "undefined") continue; _axq166E2eZADq34V4MYUc8KMZdC_publicKey.push(decoded); @@ -37732,7 +38036,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Multikey.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ); if (typeof decoded === "undefined") continue; _4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.push(decoded); @@ -37785,11 +38089,11 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#OrderedCollection") ? await OrderedCollection.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#OrderedCollectionPage") ? await OrderedCollectionPage.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ) : undefined ; if (typeof decoded === "undefined") continue; @@ -37826,11 +38130,11 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#OrderedCollection") ? await OrderedCollection.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#OrderedCollectionPage") ? await OrderedCollectionPage.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ) : undefined ; if (typeof decoded === "undefined") continue; @@ -37865,7 +38169,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ); if (typeof decoded === "undefined") continue; _3yAv8jymNfNuJUDuBzJ1NQhdbAee_following.push(decoded); @@ -37898,7 +38202,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ); if (typeof decoded === "undefined") continue; _BBCTgfphhsFzpVfKTykGSpBNwoA_followers.push(decoded); @@ -37931,7 +38235,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ); if (typeof decoded === "undefined") continue; _3bgkPwJanyTCoVFM9ovRcus8tKkU_liked.push(decoded); @@ -37964,7 +38268,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ); if (typeof decoded === "undefined") continue; _4N1vBJzXDf8NbBumeECQMFvKetja_featured.push(decoded); @@ -37997,7 +38301,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ); if (typeof decoded === "undefined") continue; _2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags.push(decoded); @@ -38030,7 +38334,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ); if (typeof decoded === "undefined") continue; _3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.push(decoded); @@ -38051,7 +38355,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Endpoints.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ); if (typeof decoded === "undefined") continue; _sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints.push(decoded); @@ -38158,23 +38462,23 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Application") ? await Application.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Group") ? await Group.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Organization") ? await Organization.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Person") ? await Person.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Service") ? await Service.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ) : undefined ; if (typeof decoded === "undefined") continue; @@ -38211,23 +38515,23 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Application") ? await Application.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Group") ? await Group.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Organization") ? await Organization.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Person") ? await Person.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Service") ? await Service.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ) : undefined ; if (typeof decoded === "undefined") continue; @@ -38262,7 +38566,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await DidService.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ); if (typeof decoded === "undefined") continue; _4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.push(decoded); @@ -39087,7 +39391,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null) { + if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { options = { ...options, baseUrl: new URL(values["@id"]) }; } @@ -39434,7 +39738,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null) { + if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { options = { ...options, baseUrl: new URL(values["@id"]) }; } @@ -39866,7 +40170,11 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu "quote"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === "object" && "@context" in doc) { - v = await this.#quote_fromJsonLd(doc, options); + v = await this.#quote_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -40105,7 +40413,11 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu "quoteAuthorization"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === "object" && "@context" in doc) { - v = await this.#quoteAuthorization_fromJsonLd(doc, options); + v = await this.#quoteAuthorization_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -40427,7 +40739,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null) { + if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { options = { ...options, baseUrl: new URL(values["@id"]) }; } @@ -40478,7 +40790,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ); if (typeof decoded === "undefined") continue; _3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote.push(decoded); @@ -40537,7 +40849,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await QuoteAuthorization.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ); if (typeof decoded === "undefined") continue; _ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization.push(decoded); @@ -41068,7 +41380,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null) { + if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { options = { ...options, baseUrl: new URL(values["@id"]) }; } @@ -41497,7 +41809,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null) { + if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { options = { ...options, baseUrl: new URL(values["@id"]) }; } @@ -41831,7 +42143,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null) { + if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { options = { ...options, baseUrl: new URL(values["@id"]) }; } @@ -42171,7 +42483,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null) { + if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { options = { ...options, baseUrl: new URL(values["@id"]) }; } @@ -42926,7 +43238,11 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu "current"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === "object" && "@context" in doc) { - v = await this.#current_fromJsonLd(doc, options); + v = await this.#current_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -43142,7 +43458,11 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu "first"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === "object" && "@context" in doc) { - v = await this.#first_fromJsonLd(doc, options); + v = await this.#first_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -43358,7 +43678,11 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu "last"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === "object" && "@context" in doc) { - v = await this.#last_fromJsonLd(doc, options); + v = await this.#last_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -43584,7 +43908,11 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu "items"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === "object" && "@context" in obj) { - v = await this.#item_fromJsonLd(obj, options); + v = await this.#item_fromJsonLd(obj, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -43800,7 +44128,11 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu "likesOf"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === "object" && "@context" in doc) { - v = await this.#likesOf_fromJsonLd(doc, options); + v = await this.#likesOf_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -44015,7 +44347,11 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu "sharesOf"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === "object" && "@context" in doc) { - v = await this.#sharesOf_fromJsonLd(doc, options); + v = await this.#sharesOf_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -44230,7 +44566,11 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu "repliesOf"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === "object" && "@context" in doc) { - v = await this.#repliesOf_fromJsonLd(doc, options); + v = await this.#repliesOf_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -44445,7 +44785,11 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu "inboxOf"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === "object" && "@context" in doc) { - v = await this.#inboxOf_fromJsonLd(doc, options); + v = await this.#inboxOf_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -44660,7 +45004,11 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu "outboxOf"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === "object" && "@context" in doc) { - v = await this.#outboxOf_fromJsonLd(doc, options); + v = await this.#outboxOf_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -44875,7 +45223,11 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu "followersOf"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === "object" && "@context" in doc) { - v = await this.#followersOf_fromJsonLd(doc, options); + v = await this.#followersOf_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -45090,7 +45442,11 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu "followingOf"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === "object" && "@context" in doc) { - v = await this.#followingOf_fromJsonLd(doc, options); + v = await this.#followingOf_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -45305,7 +45661,11 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu "likedOf"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === "object" && "@context" in doc) { - v = await this.#likedOf_fromJsonLd(doc, options); + v = await this.#likedOf_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -45970,7 +46330,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null) { + if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { options = { ...options, baseUrl: new URL(values["@id"]) }; } @@ -46051,7 +46411,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await CollectionPage.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ); if (typeof decoded === "undefined") continue; _3UyUdxnyn6cDn53QKrh4MBiearma_current.push(decoded); @@ -46084,7 +46444,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await CollectionPage.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ); if (typeof decoded === "undefined") continue; _J52RqweMe6hhv7RnLJMC8BExTE5_first.push(decoded); @@ -46117,7 +46477,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await CollectionPage.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ); if (typeof decoded === "undefined") continue; _gyJJnyEFnuNVi1HFZKfAn3Hfn26_last.push(decoded); @@ -46153,12 +46513,12 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu && Array.isArray(v["@type"])&& ["https://www.w3.org/ns/activitystreams#Object","http://joinmastodon.org/ns#Emoji","http://litepub.social/ns#ChatMessage","https://gotosocial.org/ns#AnnounceAuthorization","https://gotosocial.org/ns#LikeApproval","https://gotosocial.org/ns#ReplyAuthorization","https://w3id.org/fep/044f#QuoteAuthorization","https://w3id.org/valueflows/ont/vf#Proposal","https://www.w3.org/ns/activitystreams#Activity","http://litepub.social/ns#EmojiReact","https://gotosocial.org/ns#AnnounceRequest","https://gotosocial.org/ns#LikeRequest","https://gotosocial.org/ns#ReplyRequest","https://w3id.org/fep/044f#QuoteRequest","https://www.w3.org/ns/activitystreams#Accept","https://www.w3.org/ns/activitystreams#TentativeAccept","https://www.w3.org/ns/activitystreams#Add","https://www.w3.org/ns/activitystreams#Announce","https://www.w3.org/ns/activitystreams#Create","https://www.w3.org/ns/activitystreams#Delete","https://www.w3.org/ns/activitystreams#Dislike","https://www.w3.org/ns/activitystreams#Flag","https://www.w3.org/ns/activitystreams#Follow","https://www.w3.org/ns/activitystreams#Ignore","https://www.w3.org/ns/activitystreams#Block","https://www.w3.org/ns/activitystreams#IntransitiveActivity","https://www.w3.org/ns/activitystreams#Arrive","https://www.w3.org/ns/activitystreams#Question","https://www.w3.org/ns/activitystreams#Travel","https://www.w3.org/ns/activitystreams#Join","https://www.w3.org/ns/activitystreams#Leave","https://www.w3.org/ns/activitystreams#Like","https://www.w3.org/ns/activitystreams#Listen","https://www.w3.org/ns/activitystreams#Move","https://www.w3.org/ns/activitystreams#Offer","https://www.w3.org/ns/activitystreams#Invite","https://www.w3.org/ns/activitystreams#Read","https://www.w3.org/ns/activitystreams#Reject","https://www.w3.org/ns/activitystreams#TentativeReject","https://www.w3.org/ns/activitystreams#Remove","https://www.w3.org/ns/activitystreams#Undo","https://www.w3.org/ns/activitystreams#Update","https://www.w3.org/ns/activitystreams#View","https://www.w3.org/ns/activitystreams#Application","https://www.w3.org/ns/activitystreams#Article","https://www.w3.org/ns/activitystreams#Collection","https://www.w3.org/ns/activitystreams#CollectionPage","https://www.w3.org/ns/activitystreams#OrderedCollectionPage","https://www.w3.org/ns/activitystreams#OrderedCollection","https://www.w3.org/ns/activitystreams#Document","https://www.w3.org/ns/activitystreams#Audio","https://www.w3.org/ns/activitystreams#Image","https://www.w3.org/ns/activitystreams#Page","https://www.w3.org/ns/activitystreams#Video","https://www.w3.org/ns/activitystreams#Event","https://www.w3.org/ns/activitystreams#Group","https://www.w3.org/ns/activitystreams#Note","https://www.w3.org/ns/activitystreams#Organization","https://www.w3.org/ns/activitystreams#Person","https://www.w3.org/ns/activitystreams#Place","https://www.w3.org/ns/activitystreams#Profile","https://www.w3.org/ns/activitystreams#Relationship","https://www.w3.org/ns/activitystreams#Service","https://www.w3.org/ns/activitystreams#Tombstone"].some( t => v["@type"].includes(t)) ? await Object.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& ["https://www.w3.org/ns/activitystreams#Link","https://www.w3.org/ns/activitystreams#Hashtag","https://www.w3.org/ns/activitystreams#Mention"].some( t => v["@type"].includes(t)) ? await Link.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ) : undefined ; if (typeof decoded === "undefined") continue; @@ -46193,7 +46553,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ); if (typeof decoded === "undefined") continue; _4TB9Qd9ddtcZEpMfzbHhzafE6jaJ_likesOf.push(decoded); @@ -46226,7 +46586,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ); if (typeof decoded === "undefined") continue; _3manzgeKiPsugpztKGiaUUwJ3ito_sharesOf.push(decoded); @@ -46259,7 +46619,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ); if (typeof decoded === "undefined") continue; _3T3oGm3twpcQUcrnMisXQtmDZ32X_repliesOf.push(decoded); @@ -46292,7 +46652,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ); if (typeof decoded === "undefined") continue; _2bvRkAFZjMfVD8jiUWZJr5YokSeN_inboxOf.push(decoded); @@ -46325,7 +46685,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ); if (typeof decoded === "undefined") continue; _4AHzVZDxHjK6uEWa9UiKHGK34yYm_outboxOf.push(decoded); @@ -46358,7 +46718,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ); if (typeof decoded === "undefined") continue; _41aoZ5M6yRUHy3Zx8q6iuZQxtopb_followersOf.push(decoded); @@ -46391,7 +46751,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ); if (typeof decoded === "undefined") continue; _2nXT2Ah42UjEEQF5oJQ39CbKB1xj_followingOf.push(decoded); @@ -46424,7 +46784,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ); if (typeof decoded === "undefined") continue; _2bsySzmT3qEZcrnoe3tZ5xBjXSju_likedOf.push(decoded); @@ -47104,7 +47464,11 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu "partOf"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === "object" && "@context" in doc) { - v = await this.#partOf_fromJsonLd(doc, options); + v = await this.#partOf_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -47318,7 +47682,11 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu "next"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === "object" && "@context" in doc) { - v = await this.#next_fromJsonLd(doc, options); + v = await this.#next_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -47533,7 +47901,11 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu "prev"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === "object" && "@context" in doc) { - v = await this.#prev_fromJsonLd(doc, options); + v = await this.#prev_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -47845,7 +48217,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null) { + if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { options = { ...options, baseUrl: new URL(values["@id"]) }; } @@ -47900,7 +48272,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ); if (typeof decoded === "undefined") continue; _2kWgBhQKjEauxx8C6qF3ZQamK4Le_partOf.push(decoded); @@ -47933,7 +48305,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await CollectionPage.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ); if (typeof decoded === "undefined") continue; _3BT4kQLcXhHx7TAWaNDKh8nFn9eY_next.push(decoded); @@ -47966,7 +48338,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await CollectionPage.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ); if (typeof decoded === "undefined") continue; _3b8yG8tDNzQFFEnWhCc13G8eHooA_prev.push(decoded); @@ -48340,7 +48712,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null) { + if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { options = { ...options, baseUrl: new URL(values["@id"]) }; } @@ -48674,7 +49046,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null) { + if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { options = { ...options, baseUrl: new URL(values["@id"]) }; } @@ -49006,7 +49378,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null) { + if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { options = { ...options, baseUrl: new URL(values["@id"]) }; } @@ -49800,7 +50172,7 @@ proxyUrl?: URL | null;oauthAuthorizationEndpoint?: URL | null;oauthTokenEndpoint // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null) { + if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { options = { ...options, baseUrl: new URL(values["@id"]) }; } @@ -49845,9 +50217,9 @@ proxyUrl?: URL | null;oauthAuthorizationEndpoint?: URL | null;oauthTokenEndpoint : "" ) ) - : URL.canParse(v["@id"]) && (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"])) + : URL.canParse(v["@id"]) && (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) ? new URL(v["@id"]) - : new URL(v["@id"], (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"]))); + : new URL(v["@id"], (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl))); if (typeof decoded === "undefined") continue; _2JCYDbSxEHCCLdBYed33cCETfGyR_proxyUrl.push(decoded); } @@ -49878,9 +50250,9 @@ proxyUrl?: URL | null;oauthAuthorizationEndpoint?: URL | null;oauthTokenEndpoint : "" ) ) - : URL.canParse(v["@id"]) && (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"])) + : URL.canParse(v["@id"]) && (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) ? new URL(v["@id"]) - : new URL(v["@id"], (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"]))); + : new URL(v["@id"], (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl))); if (typeof decoded === "undefined") continue; _25S6UmgzDead8hxL5sQFezZTAusd_oauthAuthorizationEndpoint.push(decoded); } @@ -49911,9 +50283,9 @@ proxyUrl?: URL | null;oauthAuthorizationEndpoint?: URL | null;oauthTokenEndpoint : "" ) ) - : URL.canParse(v["@id"]) && (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"])) + : URL.canParse(v["@id"]) && (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) ? new URL(v["@id"]) - : new URL(v["@id"], (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"]))); + : new URL(v["@id"], (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl))); if (typeof decoded === "undefined") continue; _iAMxqrSba7yBCRB1FZ5kEVdKEZ3_oauthTokenEndpoint.push(decoded); } @@ -49944,9 +50316,9 @@ proxyUrl?: URL | null;oauthAuthorizationEndpoint?: URL | null;oauthTokenEndpoint : "" ) ) - : URL.canParse(v["@id"]) && (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"])) + : URL.canParse(v["@id"]) && (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) ? new URL(v["@id"]) - : new URL(v["@id"], (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"]))); + : new URL(v["@id"], (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl))); if (typeof decoded === "undefined") continue; _8Bx9qN8oU7Bpt2xi6khaxWp1gMr_provideClientKey.push(decoded); } @@ -49977,9 +50349,9 @@ proxyUrl?: URL | null;oauthAuthorizationEndpoint?: URL | null;oauthTokenEndpoint : "" ) ) - : URL.canParse(v["@id"]) && (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"])) + : URL.canParse(v["@id"]) && (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) ? new URL(v["@id"]) - : new URL(v["@id"], (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"]))); + : new URL(v["@id"], (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl))); if (typeof decoded === "undefined") continue; _3dU7PMVQZJpsCpo2F4RQXxBXdPmS_signClientKey.push(decoded); } @@ -50010,9 +50382,9 @@ proxyUrl?: URL | null;oauthAuthorizationEndpoint?: URL | null;oauthTokenEndpoint : "" ) ) - : URL.canParse(v["@id"]) && (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"])) + : URL.canParse(v["@id"]) && (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) ? new URL(v["@id"]) - : new URL(v["@id"], (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"]))); + : new URL(v["@id"], (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl))); if (typeof decoded === "undefined") continue; _3JprUSDLVqqX4dwHRi37qGZZCRCc_sharedInbox.push(decoded); } @@ -50465,7 +50837,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null) { + if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { options = { ...options, baseUrl: new URL(values["@id"]) }; } @@ -50800,7 +51172,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null) { + if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { options = { ...options, baseUrl: new URL(values["@id"]) }; } @@ -51136,7 +51508,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null) { + if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { options = { ...options, baseUrl: new URL(values["@id"]) }; } @@ -52412,7 +52784,11 @@ get preferredUsernames(): ((string | LanguageString))[] { "publicKey"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === "object" && "@context" in doc) { - v = await this.#publicKey_fromJsonLd(doc, options); + v = await this.#publicKey_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -52505,7 +52881,11 @@ get preferredUsernames(): ((string | LanguageString))[] { "publicKey"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === "object" && "@context" in obj) { - v = await this.#publicKey_fromJsonLd(obj, options); + v = await this.#publicKey_fromJsonLd(obj, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -52724,7 +53104,11 @@ get preferredUsernames(): ((string | LanguageString))[] { "assertionMethod"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === "object" && "@context" in doc) { - v = await this.#assertionMethod_fromJsonLd(doc, options); + v = await this.#assertionMethod_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -52821,7 +53205,11 @@ get preferredUsernames(): ((string | LanguageString))[] { "assertionMethod"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === "object" && "@context" in obj) { - v = await this.#assertionMethod_fromJsonLd(obj, options); + v = await this.#assertionMethod_fromJsonLd(obj, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -53077,7 +53465,11 @@ get preferredUsernames(): ((string | LanguageString))[] { "inbox"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === "object" && "@context" in doc) { - v = await this.#inbox_fromJsonLd(doc, options); + v = await this.#inbox_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -53310,7 +53702,11 @@ get preferredUsernames(): ((string | LanguageString))[] { "outbox"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === "object" && "@context" in doc) { - v = await this.#outbox_fromJsonLd(doc, options); + v = await this.#outbox_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -53529,7 +53925,11 @@ get preferredUsernames(): ((string | LanguageString))[] { "following"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === "object" && "@context" in doc) { - v = await this.#following_fromJsonLd(doc, options); + v = await this.#following_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -53751,7 +54151,11 @@ get preferredUsernames(): ((string | LanguageString))[] { "followers"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === "object" && "@context" in doc) { - v = await this.#followers_fromJsonLd(doc, options); + v = await this.#followers_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -53971,7 +54375,11 @@ get preferredUsernames(): ((string | LanguageString))[] { "liked"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === "object" && "@context" in doc) { - v = await this.#liked_fromJsonLd(doc, options); + v = await this.#liked_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -54189,7 +54597,11 @@ get preferredUsernames(): ((string | LanguageString))[] { "featured"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === "object" && "@context" in doc) { - v = await this.#featured_fromJsonLd(doc, options); + v = await this.#featured_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -54407,7 +54819,11 @@ get preferredUsernames(): ((string | LanguageString))[] { "featuredTags"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === "object" && "@context" in doc) { - v = await this.#featuredTags_fromJsonLd(doc, options); + v = await this.#featuredTags_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -54623,7 +55039,11 @@ get preferredUsernames(): ((string | LanguageString))[] { "streams"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === "object" && "@context" in obj) { - v = await this.#stream_fromJsonLd(obj, options); + v = await this.#stream_fromJsonLd(obj, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -54949,7 +55369,11 @@ get preferredUsernames(): ((string | LanguageString))[] { "movedTo"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === "object" && "@context" in doc) { - v = await this.#successor_fromJsonLd(doc, options); + v = await this.#successor_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -55203,7 +55627,11 @@ get preferredUsernames(): ((string | LanguageString))[] { "alsoKnownAs"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === "object" && "@context" in doc) { - v = await this.#alias_fromJsonLd(doc, options); + v = await this.#alias_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -55300,7 +55728,11 @@ get preferredUsernames(): ((string | LanguageString))[] { "alsoKnownAs"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === "object" && "@context" in obj) { - v = await this.#alias_fromJsonLd(obj, options); + v = await this.#alias_fromJsonLd(obj, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -55519,7 +55951,11 @@ get preferredUsernames(): ((string | LanguageString))[] { "service"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === "object" && "@context" in doc) { - v = await this.#service_fromJsonLd(doc, options); + v = await this.#service_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -55616,7 +56052,11 @@ get preferredUsernames(): ((string | LanguageString))[] { "service"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === "object" && "@context" in obj) { - v = await this.#service_fromJsonLd(obj, options); + v = await this.#service_fromJsonLd(obj, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -56649,7 +57089,7 @@ get preferredUsernames(): ((string | LanguageString))[] { // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null) { + if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { options = { ...options, baseUrl: new URL(values["@id"]) }; } @@ -56724,7 +57164,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await CryptographicKey.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ); if (typeof decoded === "undefined") continue; _axq166E2eZADq34V4MYUc8KMZdC_publicKey.push(decoded); @@ -56757,7 +57197,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Multikey.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ); if (typeof decoded === "undefined") continue; _4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.push(decoded); @@ -56810,11 +57250,11 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#OrderedCollection") ? await OrderedCollection.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#OrderedCollectionPage") ? await OrderedCollectionPage.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ) : undefined ; if (typeof decoded === "undefined") continue; @@ -56851,11 +57291,11 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#OrderedCollection") ? await OrderedCollection.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#OrderedCollectionPage") ? await OrderedCollectionPage.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ) : undefined ; if (typeof decoded === "undefined") continue; @@ -56890,7 +57330,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ); if (typeof decoded === "undefined") continue; _3yAv8jymNfNuJUDuBzJ1NQhdbAee_following.push(decoded); @@ -56923,7 +57363,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ); if (typeof decoded === "undefined") continue; _BBCTgfphhsFzpVfKTykGSpBNwoA_followers.push(decoded); @@ -56956,7 +57396,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ); if (typeof decoded === "undefined") continue; _3bgkPwJanyTCoVFM9ovRcus8tKkU_liked.push(decoded); @@ -56989,7 +57429,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ); if (typeof decoded === "undefined") continue; _4N1vBJzXDf8NbBumeECQMFvKetja_featured.push(decoded); @@ -57022,7 +57462,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ); if (typeof decoded === "undefined") continue; _2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags.push(decoded); @@ -57055,7 +57495,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ); if (typeof decoded === "undefined") continue; _3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.push(decoded); @@ -57076,7 +57516,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Endpoints.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ); if (typeof decoded === "undefined") continue; _sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints.push(decoded); @@ -57183,23 +57623,23 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Application") ? await Application.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Group") ? await Group.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Organization") ? await Organization.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Person") ? await Person.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Service") ? await Service.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ) : undefined ; if (typeof decoded === "undefined") continue; @@ -57236,23 +57676,23 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Application") ? await Application.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Group") ? await Group.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Organization") ? await Organization.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Person") ? await Person.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Service") ? await Service.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ) : undefined ; if (typeof decoded === "undefined") continue; @@ -57287,7 +57727,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await DidService.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ); if (typeof decoded === "undefined") continue; _4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.push(decoded); @@ -58624,7 +59064,11 @@ get names(): ((string | LanguageString))[] { "preview"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === "object" && "@context" in obj) { - v = await this.#preview_fromJsonLd(obj, options); + v = await this.#preview_fromJsonLd(obj, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -59078,7 +59522,7 @@ get names(): ((string | LanguageString))[] { // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null) { + if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { options = { ...options, baseUrl: new URL(values["@id"]) }; } @@ -59131,9 +59575,9 @@ get names(): ((string | LanguageString))[] { : "" ) ) - : URL.canParse(v["@id"]) && (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"])) + : URL.canParse(v["@id"]) && (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) ? new URL(v["@id"]) - : new URL(v["@id"], (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"]))); + : new URL(v["@id"], (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl))); if (typeof decoded === "undefined") continue; _pVjLsybKQdmkjuU7MHjiVmNnuj7_href.push(decoded); } @@ -59282,12 +59726,12 @@ get names(): ((string | LanguageString))[] { && Array.isArray(v["@type"])&& ["https://www.w3.org/ns/activitystreams#Link","https://www.w3.org/ns/activitystreams#Hashtag","https://www.w3.org/ns/activitystreams#Mention"].some( t => v["@type"].includes(t)) ? await Link.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& ["https://www.w3.org/ns/activitystreams#Object","http://joinmastodon.org/ns#Emoji","http://litepub.social/ns#ChatMessage","https://gotosocial.org/ns#AnnounceAuthorization","https://gotosocial.org/ns#LikeApproval","https://gotosocial.org/ns#ReplyAuthorization","https://w3id.org/fep/044f#QuoteAuthorization","https://w3id.org/valueflows/ont/vf#Proposal","https://www.w3.org/ns/activitystreams#Activity","http://litepub.social/ns#EmojiReact","https://gotosocial.org/ns#AnnounceRequest","https://gotosocial.org/ns#LikeRequest","https://gotosocial.org/ns#ReplyRequest","https://w3id.org/fep/044f#QuoteRequest","https://www.w3.org/ns/activitystreams#Accept","https://www.w3.org/ns/activitystreams#TentativeAccept","https://www.w3.org/ns/activitystreams#Add","https://www.w3.org/ns/activitystreams#Announce","https://www.w3.org/ns/activitystreams#Create","https://www.w3.org/ns/activitystreams#Delete","https://www.w3.org/ns/activitystreams#Dislike","https://www.w3.org/ns/activitystreams#Flag","https://www.w3.org/ns/activitystreams#Follow","https://www.w3.org/ns/activitystreams#Ignore","https://www.w3.org/ns/activitystreams#Block","https://www.w3.org/ns/activitystreams#IntransitiveActivity","https://www.w3.org/ns/activitystreams#Arrive","https://www.w3.org/ns/activitystreams#Question","https://www.w3.org/ns/activitystreams#Travel","https://www.w3.org/ns/activitystreams#Join","https://www.w3.org/ns/activitystreams#Leave","https://www.w3.org/ns/activitystreams#Like","https://www.w3.org/ns/activitystreams#Listen","https://www.w3.org/ns/activitystreams#Move","https://www.w3.org/ns/activitystreams#Offer","https://www.w3.org/ns/activitystreams#Invite","https://www.w3.org/ns/activitystreams#Read","https://www.w3.org/ns/activitystreams#Reject","https://www.w3.org/ns/activitystreams#TentativeReject","https://www.w3.org/ns/activitystreams#Remove","https://www.w3.org/ns/activitystreams#Undo","https://www.w3.org/ns/activitystreams#Update","https://www.w3.org/ns/activitystreams#View","https://www.w3.org/ns/activitystreams#Application","https://www.w3.org/ns/activitystreams#Article","https://www.w3.org/ns/activitystreams#Collection","https://www.w3.org/ns/activitystreams#CollectionPage","https://www.w3.org/ns/activitystreams#OrderedCollectionPage","https://www.w3.org/ns/activitystreams#OrderedCollection","https://www.w3.org/ns/activitystreams#Document","https://www.w3.org/ns/activitystreams#Audio","https://www.w3.org/ns/activitystreams#Image","https://www.w3.org/ns/activitystreams#Page","https://www.w3.org/ns/activitystreams#Video","https://www.w3.org/ns/activitystreams#Event","https://www.w3.org/ns/activitystreams#Group","https://www.w3.org/ns/activitystreams#Note","https://www.w3.org/ns/activitystreams#Organization","https://www.w3.org/ns/activitystreams#Person","https://www.w3.org/ns/activitystreams#Place","https://www.w3.org/ns/activitystreams#Profile","https://www.w3.org/ns/activitystreams#Relationship","https://www.w3.org/ns/activitystreams#Service","https://www.w3.org/ns/activitystreams#Tombstone"].some( t => v["@type"].includes(t)) ? await Object.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ) : undefined ; if (typeof decoded === "undefined") continue; @@ -59761,7 +60205,7 @@ names?: ((string | LanguageString))[];language?: Intl.Locale | null;height?: num // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null) { + if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { options = { ...options, baseUrl: new URL(values["@id"]) }; } @@ -60098,7 +60542,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null) { + if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { options = { ...options, baseUrl: new URL(values["@id"]) }; } @@ -60433,7 +60877,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null) { + if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { options = { ...options, baseUrl: new URL(values["@id"]) }; } @@ -60771,7 +61215,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null) { + if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { options = { ...options, baseUrl: new URL(values["@id"]) }; } @@ -61105,7 +61549,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null) { + if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { options = { ...options, baseUrl: new URL(values["@id"]) }; } @@ -61439,7 +61883,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null) { + if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { options = { ...options, baseUrl: new URL(values["@id"]) }; } @@ -61773,7 +62217,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null) { + if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { options = { ...options, baseUrl: new URL(values["@id"]) }; } @@ -62105,7 +62549,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null) { + if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { options = { ...options, baseUrl: new URL(values["@id"]) }; } @@ -62403,7 +62847,7 @@ names?: ((string | LanguageString))[];language?: Intl.Locale | null;height?: num // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null) { + if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { options = { ...options, baseUrl: new URL(values["@id"]) }; } @@ -62738,7 +63182,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null) { + if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { options = { ...options, baseUrl: new URL(values["@id"]) }; } @@ -63172,7 +63616,11 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu "quote"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === "object" && "@context" in doc) { - v = await this.#quote_fromJsonLd(doc, options); + v = await this.#quote_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -63411,7 +63859,11 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu "quoteAuthorization"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === "object" && "@context" in doc) { - v = await this.#quoteAuthorization_fromJsonLd(doc, options); + v = await this.#quoteAuthorization_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -63733,7 +64185,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null) { + if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { options = { ...options, baseUrl: new URL(values["@id"]) }; } @@ -63784,7 +64236,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ); if (typeof decoded === "undefined") continue; _3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote.push(decoded); @@ -63843,7 +64295,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await QuoteAuthorization.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ); if (typeof decoded === "undefined") continue; _ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization.push(decoded); @@ -64285,7 +64737,11 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu "orderedItems"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === "object" && "@context" in obj) { - v = await this.#item_fromJsonLd(obj, options); + v = await this.#item_fromJsonLd(obj, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -64529,7 +64985,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null) { + if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { options = { ...options, baseUrl: new URL(values["@id"]) }; } @@ -64583,12 +65039,12 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu && Array.isArray(v["@type"])&& ["https://www.w3.org/ns/activitystreams#Object","http://joinmastodon.org/ns#Emoji","http://litepub.social/ns#ChatMessage","https://gotosocial.org/ns#AnnounceAuthorization","https://gotosocial.org/ns#LikeApproval","https://gotosocial.org/ns#ReplyAuthorization","https://w3id.org/fep/044f#QuoteAuthorization","https://w3id.org/valueflows/ont/vf#Proposal","https://www.w3.org/ns/activitystreams#Activity","http://litepub.social/ns#EmojiReact","https://gotosocial.org/ns#AnnounceRequest","https://gotosocial.org/ns#LikeRequest","https://gotosocial.org/ns#ReplyRequest","https://w3id.org/fep/044f#QuoteRequest","https://www.w3.org/ns/activitystreams#Accept","https://www.w3.org/ns/activitystreams#TentativeAccept","https://www.w3.org/ns/activitystreams#Add","https://www.w3.org/ns/activitystreams#Announce","https://www.w3.org/ns/activitystreams#Create","https://www.w3.org/ns/activitystreams#Delete","https://www.w3.org/ns/activitystreams#Dislike","https://www.w3.org/ns/activitystreams#Flag","https://www.w3.org/ns/activitystreams#Follow","https://www.w3.org/ns/activitystreams#Ignore","https://www.w3.org/ns/activitystreams#Block","https://www.w3.org/ns/activitystreams#IntransitiveActivity","https://www.w3.org/ns/activitystreams#Arrive","https://www.w3.org/ns/activitystreams#Question","https://www.w3.org/ns/activitystreams#Travel","https://www.w3.org/ns/activitystreams#Join","https://www.w3.org/ns/activitystreams#Leave","https://www.w3.org/ns/activitystreams#Like","https://www.w3.org/ns/activitystreams#Listen","https://www.w3.org/ns/activitystreams#Move","https://www.w3.org/ns/activitystreams#Offer","https://www.w3.org/ns/activitystreams#Invite","https://www.w3.org/ns/activitystreams#Read","https://www.w3.org/ns/activitystreams#Reject","https://www.w3.org/ns/activitystreams#TentativeReject","https://www.w3.org/ns/activitystreams#Remove","https://www.w3.org/ns/activitystreams#Undo","https://www.w3.org/ns/activitystreams#Update","https://www.w3.org/ns/activitystreams#View","https://www.w3.org/ns/activitystreams#Application","https://www.w3.org/ns/activitystreams#Article","https://www.w3.org/ns/activitystreams#Collection","https://www.w3.org/ns/activitystreams#CollectionPage","https://www.w3.org/ns/activitystreams#OrderedCollectionPage","https://www.w3.org/ns/activitystreams#OrderedCollection","https://www.w3.org/ns/activitystreams#Document","https://www.w3.org/ns/activitystreams#Audio","https://www.w3.org/ns/activitystreams#Image","https://www.w3.org/ns/activitystreams#Page","https://www.w3.org/ns/activitystreams#Video","https://www.w3.org/ns/activitystreams#Event","https://www.w3.org/ns/activitystreams#Group","https://www.w3.org/ns/activitystreams#Note","https://www.w3.org/ns/activitystreams#Organization","https://www.w3.org/ns/activitystreams#Person","https://www.w3.org/ns/activitystreams#Place","https://www.w3.org/ns/activitystreams#Profile","https://www.w3.org/ns/activitystreams#Relationship","https://www.w3.org/ns/activitystreams#Service","https://www.w3.org/ns/activitystreams#Tombstone"].some( t => v["@type"].includes(t)) ? await Object.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& ["https://www.w3.org/ns/activitystreams#Link","https://www.w3.org/ns/activitystreams#Hashtag","https://www.w3.org/ns/activitystreams#Mention"].some( t => v["@type"].includes(t)) ? await Link.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ) : undefined ; if (typeof decoded === "undefined") continue; @@ -65022,7 +65478,11 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu "orderedItems"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === "object" && "@context" in obj) { - v = await this.#item_fromJsonLd(obj, options); + v = await this.#item_fromJsonLd(obj, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -65315,7 +65775,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null) { + if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { options = { ...options, baseUrl: new URL(values["@id"]) }; } @@ -65369,12 +65829,12 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu && Array.isArray(v["@type"])&& ["https://www.w3.org/ns/activitystreams#Object","http://joinmastodon.org/ns#Emoji","http://litepub.social/ns#ChatMessage","https://gotosocial.org/ns#AnnounceAuthorization","https://gotosocial.org/ns#LikeApproval","https://gotosocial.org/ns#ReplyAuthorization","https://w3id.org/fep/044f#QuoteAuthorization","https://w3id.org/valueflows/ont/vf#Proposal","https://www.w3.org/ns/activitystreams#Activity","http://litepub.social/ns#EmojiReact","https://gotosocial.org/ns#AnnounceRequest","https://gotosocial.org/ns#LikeRequest","https://gotosocial.org/ns#ReplyRequest","https://w3id.org/fep/044f#QuoteRequest","https://www.w3.org/ns/activitystreams#Accept","https://www.w3.org/ns/activitystreams#TentativeAccept","https://www.w3.org/ns/activitystreams#Add","https://www.w3.org/ns/activitystreams#Announce","https://www.w3.org/ns/activitystreams#Create","https://www.w3.org/ns/activitystreams#Delete","https://www.w3.org/ns/activitystreams#Dislike","https://www.w3.org/ns/activitystreams#Flag","https://www.w3.org/ns/activitystreams#Follow","https://www.w3.org/ns/activitystreams#Ignore","https://www.w3.org/ns/activitystreams#Block","https://www.w3.org/ns/activitystreams#IntransitiveActivity","https://www.w3.org/ns/activitystreams#Arrive","https://www.w3.org/ns/activitystreams#Question","https://www.w3.org/ns/activitystreams#Travel","https://www.w3.org/ns/activitystreams#Join","https://www.w3.org/ns/activitystreams#Leave","https://www.w3.org/ns/activitystreams#Like","https://www.w3.org/ns/activitystreams#Listen","https://www.w3.org/ns/activitystreams#Move","https://www.w3.org/ns/activitystreams#Offer","https://www.w3.org/ns/activitystreams#Invite","https://www.w3.org/ns/activitystreams#Read","https://www.w3.org/ns/activitystreams#Reject","https://www.w3.org/ns/activitystreams#TentativeReject","https://www.w3.org/ns/activitystreams#Remove","https://www.w3.org/ns/activitystreams#Undo","https://www.w3.org/ns/activitystreams#Update","https://www.w3.org/ns/activitystreams#View","https://www.w3.org/ns/activitystreams#Application","https://www.w3.org/ns/activitystreams#Article","https://www.w3.org/ns/activitystreams#Collection","https://www.w3.org/ns/activitystreams#CollectionPage","https://www.w3.org/ns/activitystreams#OrderedCollectionPage","https://www.w3.org/ns/activitystreams#OrderedCollection","https://www.w3.org/ns/activitystreams#Document","https://www.w3.org/ns/activitystreams#Audio","https://www.w3.org/ns/activitystreams#Image","https://www.w3.org/ns/activitystreams#Page","https://www.w3.org/ns/activitystreams#Video","https://www.w3.org/ns/activitystreams#Event","https://www.w3.org/ns/activitystreams#Group","https://www.w3.org/ns/activitystreams#Note","https://www.w3.org/ns/activitystreams#Organization","https://www.w3.org/ns/activitystreams#Person","https://www.w3.org/ns/activitystreams#Place","https://www.w3.org/ns/activitystreams#Profile","https://www.w3.org/ns/activitystreams#Relationship","https://www.w3.org/ns/activitystreams#Service","https://www.w3.org/ns/activitystreams#Tombstone"].some( t => v["@type"].includes(t)) ? await Object.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& ["https://www.w3.org/ns/activitystreams#Link","https://www.w3.org/ns/activitystreams#Hashtag","https://www.w3.org/ns/activitystreams#Mention"].some( t => v["@type"].includes(t)) ? await Link.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ) : undefined ; if (typeof decoded === "undefined") continue; @@ -66694,7 +67154,11 @@ get preferredUsernames(): ((string | LanguageString))[] { "publicKey"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === "object" && "@context" in doc) { - v = await this.#publicKey_fromJsonLd(doc, options); + v = await this.#publicKey_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -66787,7 +67251,11 @@ get preferredUsernames(): ((string | LanguageString))[] { "publicKey"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === "object" && "@context" in obj) { - v = await this.#publicKey_fromJsonLd(obj, options); + v = await this.#publicKey_fromJsonLd(obj, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -67006,7 +67474,11 @@ get preferredUsernames(): ((string | LanguageString))[] { "assertionMethod"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === "object" && "@context" in doc) { - v = await this.#assertionMethod_fromJsonLd(doc, options); + v = await this.#assertionMethod_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -67103,7 +67575,11 @@ get preferredUsernames(): ((string | LanguageString))[] { "assertionMethod"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === "object" && "@context" in obj) { - v = await this.#assertionMethod_fromJsonLd(obj, options); + v = await this.#assertionMethod_fromJsonLd(obj, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -67359,7 +67835,11 @@ get preferredUsernames(): ((string | LanguageString))[] { "inbox"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === "object" && "@context" in doc) { - v = await this.#inbox_fromJsonLd(doc, options); + v = await this.#inbox_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -67592,7 +68072,11 @@ get preferredUsernames(): ((string | LanguageString))[] { "outbox"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === "object" && "@context" in doc) { - v = await this.#outbox_fromJsonLd(doc, options); + v = await this.#outbox_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -67811,7 +68295,11 @@ get preferredUsernames(): ((string | LanguageString))[] { "following"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === "object" && "@context" in doc) { - v = await this.#following_fromJsonLd(doc, options); + v = await this.#following_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -68033,7 +68521,11 @@ get preferredUsernames(): ((string | LanguageString))[] { "followers"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === "object" && "@context" in doc) { - v = await this.#followers_fromJsonLd(doc, options); + v = await this.#followers_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -68253,7 +68745,11 @@ get preferredUsernames(): ((string | LanguageString))[] { "liked"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === "object" && "@context" in doc) { - v = await this.#liked_fromJsonLd(doc, options); + v = await this.#liked_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -68471,7 +68967,11 @@ get preferredUsernames(): ((string | LanguageString))[] { "featured"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === "object" && "@context" in doc) { - v = await this.#featured_fromJsonLd(doc, options); + v = await this.#featured_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -68689,7 +69189,11 @@ get preferredUsernames(): ((string | LanguageString))[] { "featuredTags"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === "object" && "@context" in doc) { - v = await this.#featuredTags_fromJsonLd(doc, options); + v = await this.#featuredTags_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -68905,7 +69409,11 @@ get preferredUsernames(): ((string | LanguageString))[] { "streams"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === "object" && "@context" in obj) { - v = await this.#stream_fromJsonLd(obj, options); + v = await this.#stream_fromJsonLd(obj, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -69231,7 +69739,11 @@ get preferredUsernames(): ((string | LanguageString))[] { "movedTo"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === "object" && "@context" in doc) { - v = await this.#successor_fromJsonLd(doc, options); + v = await this.#successor_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -69485,7 +69997,11 @@ get preferredUsernames(): ((string | LanguageString))[] { "alsoKnownAs"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === "object" && "@context" in doc) { - v = await this.#alias_fromJsonLd(doc, options); + v = await this.#alias_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -69582,7 +70098,11 @@ get preferredUsernames(): ((string | LanguageString))[] { "alsoKnownAs"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === "object" && "@context" in obj) { - v = await this.#alias_fromJsonLd(obj, options); + v = await this.#alias_fromJsonLd(obj, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -69801,7 +70321,11 @@ get preferredUsernames(): ((string | LanguageString))[] { "service"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === "object" && "@context" in doc) { - v = await this.#service_fromJsonLd(doc, options); + v = await this.#service_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -69898,7 +70422,11 @@ get preferredUsernames(): ((string | LanguageString))[] { "service"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === "object" && "@context" in obj) { - v = await this.#service_fromJsonLd(obj, options); + v = await this.#service_fromJsonLd(obj, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -70931,7 +71459,7 @@ get preferredUsernames(): ((string | LanguageString))[] { // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null) { + if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { options = { ...options, baseUrl: new URL(values["@id"]) }; } @@ -71006,7 +71534,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await CryptographicKey.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ); if (typeof decoded === "undefined") continue; _axq166E2eZADq34V4MYUc8KMZdC_publicKey.push(decoded); @@ -71039,7 +71567,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Multikey.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ); if (typeof decoded === "undefined") continue; _4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.push(decoded); @@ -71092,11 +71620,11 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#OrderedCollection") ? await OrderedCollection.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#OrderedCollectionPage") ? await OrderedCollectionPage.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ) : undefined ; if (typeof decoded === "undefined") continue; @@ -71133,11 +71661,11 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#OrderedCollection") ? await OrderedCollection.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#OrderedCollectionPage") ? await OrderedCollectionPage.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ) : undefined ; if (typeof decoded === "undefined") continue; @@ -71172,7 +71700,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ); if (typeof decoded === "undefined") continue; _3yAv8jymNfNuJUDuBzJ1NQhdbAee_following.push(decoded); @@ -71205,7 +71733,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ); if (typeof decoded === "undefined") continue; _BBCTgfphhsFzpVfKTykGSpBNwoA_followers.push(decoded); @@ -71238,7 +71766,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ); if (typeof decoded === "undefined") continue; _3bgkPwJanyTCoVFM9ovRcus8tKkU_liked.push(decoded); @@ -71271,7 +71799,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ); if (typeof decoded === "undefined") continue; _4N1vBJzXDf8NbBumeECQMFvKetja_featured.push(decoded); @@ -71304,7 +71832,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ); if (typeof decoded === "undefined") continue; _2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags.push(decoded); @@ -71337,7 +71865,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ); if (typeof decoded === "undefined") continue; _3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.push(decoded); @@ -71358,7 +71886,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Endpoints.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ); if (typeof decoded === "undefined") continue; _sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints.push(decoded); @@ -71465,23 +71993,23 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Application") ? await Application.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Group") ? await Group.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Organization") ? await Organization.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Person") ? await Person.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Service") ? await Service.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ) : undefined ; if (typeof decoded === "undefined") continue; @@ -71518,23 +72046,23 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Application") ? await Application.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Group") ? await Group.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Organization") ? await Organization.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Person") ? await Person.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Service") ? await Service.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ) : undefined ; if (typeof decoded === "undefined") continue; @@ -71569,7 +72097,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await DidService.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ); if (typeof decoded === "undefined") continue; _4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.push(decoded); @@ -72396,7 +72924,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null) { + if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { options = { ...options, baseUrl: new URL(values["@id"]) }; } @@ -73672,7 +74200,11 @@ get preferredUsernames(): ((string | LanguageString))[] { "publicKey"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === "object" && "@context" in doc) { - v = await this.#publicKey_fromJsonLd(doc, options); + v = await this.#publicKey_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -73765,7 +74297,11 @@ get preferredUsernames(): ((string | LanguageString))[] { "publicKey"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === "object" && "@context" in obj) { - v = await this.#publicKey_fromJsonLd(obj, options); + v = await this.#publicKey_fromJsonLd(obj, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -73984,7 +74520,11 @@ get preferredUsernames(): ((string | LanguageString))[] { "assertionMethod"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === "object" && "@context" in doc) { - v = await this.#assertionMethod_fromJsonLd(doc, options); + v = await this.#assertionMethod_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -74081,7 +74621,11 @@ get preferredUsernames(): ((string | LanguageString))[] { "assertionMethod"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === "object" && "@context" in obj) { - v = await this.#assertionMethod_fromJsonLd(obj, options); + v = await this.#assertionMethod_fromJsonLd(obj, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -74337,7 +74881,11 @@ get preferredUsernames(): ((string | LanguageString))[] { "inbox"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === "object" && "@context" in doc) { - v = await this.#inbox_fromJsonLd(doc, options); + v = await this.#inbox_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -74570,7 +75118,11 @@ get preferredUsernames(): ((string | LanguageString))[] { "outbox"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === "object" && "@context" in doc) { - v = await this.#outbox_fromJsonLd(doc, options); + v = await this.#outbox_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -74789,7 +75341,11 @@ get preferredUsernames(): ((string | LanguageString))[] { "following"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === "object" && "@context" in doc) { - v = await this.#following_fromJsonLd(doc, options); + v = await this.#following_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -75011,7 +75567,11 @@ get preferredUsernames(): ((string | LanguageString))[] { "followers"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === "object" && "@context" in doc) { - v = await this.#followers_fromJsonLd(doc, options); + v = await this.#followers_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -75231,7 +75791,11 @@ get preferredUsernames(): ((string | LanguageString))[] { "liked"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === "object" && "@context" in doc) { - v = await this.#liked_fromJsonLd(doc, options); + v = await this.#liked_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -75449,7 +76013,11 @@ get preferredUsernames(): ((string | LanguageString))[] { "featured"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === "object" && "@context" in doc) { - v = await this.#featured_fromJsonLd(doc, options); + v = await this.#featured_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -75667,7 +76235,11 @@ get preferredUsernames(): ((string | LanguageString))[] { "featuredTags"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === "object" && "@context" in doc) { - v = await this.#featuredTags_fromJsonLd(doc, options); + v = await this.#featuredTags_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -75883,7 +76455,11 @@ get preferredUsernames(): ((string | LanguageString))[] { "streams"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === "object" && "@context" in obj) { - v = await this.#stream_fromJsonLd(obj, options); + v = await this.#stream_fromJsonLd(obj, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -76209,7 +76785,11 @@ get preferredUsernames(): ((string | LanguageString))[] { "movedTo"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === "object" && "@context" in doc) { - v = await this.#successor_fromJsonLd(doc, options); + v = await this.#successor_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -76463,7 +77043,11 @@ get preferredUsernames(): ((string | LanguageString))[] { "alsoKnownAs"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === "object" && "@context" in doc) { - v = await this.#alias_fromJsonLd(doc, options); + v = await this.#alias_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -76560,7 +77144,11 @@ get preferredUsernames(): ((string | LanguageString))[] { "alsoKnownAs"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === "object" && "@context" in obj) { - v = await this.#alias_fromJsonLd(obj, options); + v = await this.#alias_fromJsonLd(obj, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -76779,7 +77367,11 @@ get preferredUsernames(): ((string | LanguageString))[] { "service"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === "object" && "@context" in doc) { - v = await this.#service_fromJsonLd(doc, options); + v = await this.#service_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -76876,7 +77468,11 @@ get preferredUsernames(): ((string | LanguageString))[] { "service"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === "object" && "@context" in obj) { - v = await this.#service_fromJsonLd(obj, options); + v = await this.#service_fromJsonLd(obj, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -77909,7 +78505,7 @@ get preferredUsernames(): ((string | LanguageString))[] { // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null) { + if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { options = { ...options, baseUrl: new URL(values["@id"]) }; } @@ -77984,7 +78580,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await CryptographicKey.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ); if (typeof decoded === "undefined") continue; _axq166E2eZADq34V4MYUc8KMZdC_publicKey.push(decoded); @@ -78017,7 +78613,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Multikey.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ); if (typeof decoded === "undefined") continue; _4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.push(decoded); @@ -78070,11 +78666,11 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#OrderedCollection") ? await OrderedCollection.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#OrderedCollectionPage") ? await OrderedCollectionPage.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ) : undefined ; if (typeof decoded === "undefined") continue; @@ -78111,11 +78707,11 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#OrderedCollection") ? await OrderedCollection.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#OrderedCollectionPage") ? await OrderedCollectionPage.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ) : undefined ; if (typeof decoded === "undefined") continue; @@ -78150,7 +78746,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ); if (typeof decoded === "undefined") continue; _3yAv8jymNfNuJUDuBzJ1NQhdbAee_following.push(decoded); @@ -78183,7 +78779,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ); if (typeof decoded === "undefined") continue; _BBCTgfphhsFzpVfKTykGSpBNwoA_followers.push(decoded); @@ -78216,7 +78812,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ); if (typeof decoded === "undefined") continue; _3bgkPwJanyTCoVFM9ovRcus8tKkU_liked.push(decoded); @@ -78249,7 +78845,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ); if (typeof decoded === "undefined") continue; _4N1vBJzXDf8NbBumeECQMFvKetja_featured.push(decoded); @@ -78282,7 +78878,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ); if (typeof decoded === "undefined") continue; _2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags.push(decoded); @@ -78315,7 +78911,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ); if (typeof decoded === "undefined") continue; _3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.push(decoded); @@ -78336,7 +78932,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Endpoints.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ); if (typeof decoded === "undefined") continue; _sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints.push(decoded); @@ -78443,23 +79039,23 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Application") ? await Application.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Group") ? await Group.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Organization") ? await Organization.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Person") ? await Person.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Service") ? await Service.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ) : undefined ; if (typeof decoded === "undefined") continue; @@ -78496,23 +79092,23 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Application") ? await Application.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Group") ? await Group.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Organization") ? await Organization.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Person") ? await Person.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Service") ? await Service.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ) : undefined ; if (typeof decoded === "undefined") continue; @@ -78547,7 +79143,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await DidService.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ); if (typeof decoded === "undefined") continue; _4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.push(decoded); @@ -79830,7 +80426,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null) { + if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { options = { ...options, baseUrl: new URL(values["@id"]) }; } @@ -79974,9 +80570,9 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu : "" ) ) - : URL.canParse(v["@id"]) && (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) + : URL.canParse(v["@id"]) && (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) ? new URL(v["@id"]) - : new URL(v["@id"], (values["@id"] == null ? options.baseUrl : new URL(values["@id"]))) : undefined + : new URL(v["@id"], (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl))) : undefined ; if (typeof decoded === "undefined") continue; _oKrwxU4V8wiKhMW1QEYQibcJh8c_units.push(decoded); @@ -80459,7 +81055,11 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu "describes"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === "object" && "@context" in doc) { - v = await this.#describes_fromJsonLd(doc, options); + v = await this.#describes_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -80701,7 +81301,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null) { + if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { options = { ...options, baseUrl: new URL(values["@id"]) }; } @@ -80752,7 +81352,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ); if (typeof decoded === "undefined") continue; _3CLQ1PLSXrhSQbTGGHuxNyaEFKM1_describes.push(decoded); @@ -81345,7 +81945,11 @@ instruments?: (Object | URL)[];exclusiveOptions?: (Object | URL)[];inclusiveOpti "oneOf"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === "object" && "@context" in obj) { - v = await this.#exclusiveOption_fromJsonLd(obj, options); + v = await this.#exclusiveOption_fromJsonLd(obj, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -81564,7 +82168,11 @@ instruments?: (Object | URL)[];exclusiveOptions?: (Object | URL)[];inclusiveOpti "anyOf"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === "object" && "@context" in obj) { - v = await this.#inclusiveOption_fromJsonLd(obj, options); + v = await this.#inclusiveOption_fromJsonLd(obj, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -81812,7 +82420,11 @@ instruments?: (Object | URL)[];exclusiveOptions?: (Object | URL)[];inclusiveOpti "quote"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === "object" && "@context" in doc) { - v = await this.#quote_fromJsonLd(doc, options); + v = await this.#quote_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -82051,7 +82663,11 @@ instruments?: (Object | URL)[];exclusiveOptions?: (Object | URL)[];inclusiveOpti "quoteAuthorization"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === "object" && "@context" in doc) { - v = await this.#quoteAuthorization_fromJsonLd(doc, options); + v = await this.#quoteAuthorization_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -82356,7 +82972,7 @@ instruments?: (Object | URL)[];exclusiveOptions?: (Object | URL)[];inclusiveOpti // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null) { + if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { options = { ...options, baseUrl: new URL(values["@id"]) }; } @@ -82407,7 +83023,7 @@ instruments?: (Object | URL)[];exclusiveOptions?: (Object | URL)[];inclusiveOpti const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ); if (typeof decoded === "undefined") continue; _2N5scKaVEcdYHFmfKYYacAwUhUgQ_oneOf.push(decoded); @@ -82440,7 +83056,7 @@ instruments?: (Object | URL)[];exclusiveOptions?: (Object | URL)[];inclusiveOpti const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ); if (typeof decoded === "undefined") continue; _2mV6isMTPRKbWdLCjcpiEysq5dAY_anyOf.push(decoded); @@ -82522,7 +83138,7 @@ instruments?: (Object | URL)[];exclusiveOptions?: (Object | URL)[];inclusiveOpti const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ); if (typeof decoded === "undefined") continue; _3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote.push(decoded); @@ -82581,7 +83197,7 @@ instruments?: (Object | URL)[];exclusiveOptions?: (Object | URL)[];inclusiveOpti const decoded = await QuoteAuthorization.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ); if (typeof decoded === "undefined") continue; _ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization.push(decoded); @@ -83040,7 +83656,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null) { + if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { options = { ...options, baseUrl: new URL(values["@id"]) }; } @@ -83374,7 +83990,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null) { + if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { options = { ...options, baseUrl: new URL(values["@id"]) }; } @@ -83934,7 +84550,11 @@ relationships?: (Object | URL)[];} "subject"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === "object" && "@context" in doc) { - v = await this.#subject_fromJsonLd(doc, options); + v = await this.#subject_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -84149,7 +84769,11 @@ relationships?: (Object | URL)[];} "object"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === "object" && "@context" in doc) { - v = await this.#object_fromJsonLd(doc, options); + v = await this.#object_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -84243,7 +84867,11 @@ relationships?: (Object | URL)[];} "object"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === "object" && "@context" in obj) { - v = await this.#object_fromJsonLd(obj, options); + v = await this.#object_fromJsonLd(obj, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -84461,7 +85089,11 @@ relationships?: (Object | URL)[];} "relationship"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === "object" && "@context" in doc) { - v = await this.#relationship_fromJsonLd(doc, options); + v = await this.#relationship_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -84557,7 +85189,11 @@ relationships?: (Object | URL)[];} "relationship"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === "object" && "@context" in obj) { - v = await this.#relationship_fromJsonLd(obj, options); + v = await this.#relationship_fromJsonLd(obj, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -84870,7 +85506,7 @@ relationships?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null) { + if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { options = { ...options, baseUrl: new URL(values["@id"]) }; } @@ -84921,7 +85557,7 @@ relationships?: (Object | URL)[];} const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ); if (typeof decoded === "undefined") continue; _2Zqdmi46ZnDQsECS6mzwhrv3rUKq_subject.push(decoded); @@ -84954,7 +85590,7 @@ relationships?: (Object | URL)[];} const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ); if (typeof decoded === "undefined") continue; _2MH19yxjn1wnHsNfa5n4JBhJzxyc_object.push(decoded); @@ -84987,7 +85623,7 @@ relationships?: (Object | URL)[];} const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ); if (typeof decoded === "undefined") continue; _4Lzz89F9qipAQSGkWyX9DGWiUojG_relationship.push(decoded); @@ -85375,7 +86011,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null) { + if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { options = { ...options, baseUrl: new URL(values["@id"]) }; } @@ -86651,7 +87287,11 @@ get preferredUsernames(): ((string | LanguageString))[] { "publicKey"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === "object" && "@context" in doc) { - v = await this.#publicKey_fromJsonLd(doc, options); + v = await this.#publicKey_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -86744,7 +87384,11 @@ get preferredUsernames(): ((string | LanguageString))[] { "publicKey"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === "object" && "@context" in obj) { - v = await this.#publicKey_fromJsonLd(obj, options); + v = await this.#publicKey_fromJsonLd(obj, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -86963,7 +87607,11 @@ get preferredUsernames(): ((string | LanguageString))[] { "assertionMethod"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === "object" && "@context" in doc) { - v = await this.#assertionMethod_fromJsonLd(doc, options); + v = await this.#assertionMethod_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -87060,7 +87708,11 @@ get preferredUsernames(): ((string | LanguageString))[] { "assertionMethod"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === "object" && "@context" in obj) { - v = await this.#assertionMethod_fromJsonLd(obj, options); + v = await this.#assertionMethod_fromJsonLd(obj, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -87316,7 +87968,11 @@ get preferredUsernames(): ((string | LanguageString))[] { "inbox"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === "object" && "@context" in doc) { - v = await this.#inbox_fromJsonLd(doc, options); + v = await this.#inbox_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -87549,7 +88205,11 @@ get preferredUsernames(): ((string | LanguageString))[] { "outbox"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === "object" && "@context" in doc) { - v = await this.#outbox_fromJsonLd(doc, options); + v = await this.#outbox_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -87768,7 +88428,11 @@ get preferredUsernames(): ((string | LanguageString))[] { "following"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === "object" && "@context" in doc) { - v = await this.#following_fromJsonLd(doc, options); + v = await this.#following_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -87990,7 +88654,11 @@ get preferredUsernames(): ((string | LanguageString))[] { "followers"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === "object" && "@context" in doc) { - v = await this.#followers_fromJsonLd(doc, options); + v = await this.#followers_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -88210,7 +88878,11 @@ get preferredUsernames(): ((string | LanguageString))[] { "liked"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === "object" && "@context" in doc) { - v = await this.#liked_fromJsonLd(doc, options); + v = await this.#liked_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -88428,7 +89100,11 @@ get preferredUsernames(): ((string | LanguageString))[] { "featured"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === "object" && "@context" in doc) { - v = await this.#featured_fromJsonLd(doc, options); + v = await this.#featured_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -88646,7 +89322,11 @@ get preferredUsernames(): ((string | LanguageString))[] { "featuredTags"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === "object" && "@context" in doc) { - v = await this.#featuredTags_fromJsonLd(doc, options); + v = await this.#featuredTags_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -88862,7 +89542,11 @@ get preferredUsernames(): ((string | LanguageString))[] { "streams"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === "object" && "@context" in obj) { - v = await this.#stream_fromJsonLd(obj, options); + v = await this.#stream_fromJsonLd(obj, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -89188,7 +89872,11 @@ get preferredUsernames(): ((string | LanguageString))[] { "movedTo"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === "object" && "@context" in doc) { - v = await this.#successor_fromJsonLd(doc, options); + v = await this.#successor_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -89442,7 +90130,11 @@ get preferredUsernames(): ((string | LanguageString))[] { "alsoKnownAs"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === "object" && "@context" in doc) { - v = await this.#alias_fromJsonLd(doc, options); + v = await this.#alias_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -89539,7 +90231,11 @@ get preferredUsernames(): ((string | LanguageString))[] { "alsoKnownAs"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === "object" && "@context" in obj) { - v = await this.#alias_fromJsonLd(obj, options); + v = await this.#alias_fromJsonLd(obj, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -89758,7 +90454,11 @@ get preferredUsernames(): ((string | LanguageString))[] { "service"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === "object" && "@context" in doc) { - v = await this.#service_fromJsonLd(doc, options); + v = await this.#service_fromJsonLd(doc, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -89855,7 +90555,11 @@ get preferredUsernames(): ((string | LanguageString))[] { "service"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === "object" && "@context" in obj) { - v = await this.#service_fromJsonLd(obj, options); + v = await this.#service_fromJsonLd(obj, { + ...options, + baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? + undefined, + }); } } @@ -90888,7 +91592,7 @@ get preferredUsernames(): ((string | LanguageString))[] { // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null) { + if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { options = { ...options, baseUrl: new URL(values["@id"]) }; } @@ -90963,7 +91667,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await CryptographicKey.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ); if (typeof decoded === "undefined") continue; _axq166E2eZADq34V4MYUc8KMZdC_publicKey.push(decoded); @@ -90996,7 +91700,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Multikey.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ); if (typeof decoded === "undefined") continue; _4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.push(decoded); @@ -91049,11 +91753,11 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#OrderedCollection") ? await OrderedCollection.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#OrderedCollectionPage") ? await OrderedCollectionPage.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ) : undefined ; if (typeof decoded === "undefined") continue; @@ -91090,11 +91794,11 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#OrderedCollection") ? await OrderedCollection.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#OrderedCollectionPage") ? await OrderedCollectionPage.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ) : undefined ; if (typeof decoded === "undefined") continue; @@ -91129,7 +91833,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ); if (typeof decoded === "undefined") continue; _3yAv8jymNfNuJUDuBzJ1NQhdbAee_following.push(decoded); @@ -91162,7 +91866,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ); if (typeof decoded === "undefined") continue; _BBCTgfphhsFzpVfKTykGSpBNwoA_followers.push(decoded); @@ -91195,7 +91899,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ); if (typeof decoded === "undefined") continue; _3bgkPwJanyTCoVFM9ovRcus8tKkU_liked.push(decoded); @@ -91228,7 +91932,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ); if (typeof decoded === "undefined") continue; _4N1vBJzXDf8NbBumeECQMFvKetja_featured.push(decoded); @@ -91261,7 +91965,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ); if (typeof decoded === "undefined") continue; _2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags.push(decoded); @@ -91294,7 +91998,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ); if (typeof decoded === "undefined") continue; _3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.push(decoded); @@ -91315,7 +92019,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Endpoints.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ); if (typeof decoded === "undefined") continue; _sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints.push(decoded); @@ -91422,23 +92126,23 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Application") ? await Application.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Group") ? await Group.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Organization") ? await Organization.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Person") ? await Person.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Service") ? await Service.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ) : undefined ; if (typeof decoded === "undefined") continue; @@ -91475,23 +92179,23 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Application") ? await Application.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Group") ? await Group.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Organization") ? await Organization.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Person") ? await Person.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Service") ? await Service.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ) : undefined ; if (typeof decoded === "undefined") continue; @@ -91526,7 +92230,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await DidService.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ); if (typeof decoded === "undefined") continue; _4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.push(decoded); @@ -92562,7 +93266,7 @@ get contents(): ((string | LanguageString))[] { // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null) { + if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { options = { ...options, baseUrl: new URL(values["@id"]) }; } @@ -92994,7 +93698,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null) { + if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { options = { ...options, baseUrl: new URL(values["@id"]) }; } @@ -93328,7 +94032,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null) { + if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { options = { ...options, baseUrl: new URL(values["@id"]) }; } @@ -93878,7 +94582,7 @@ get formerTypes(): ($EntityType)[] { // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null) { + if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { options = { ...options, baseUrl: new URL(values["@id"]) }; } @@ -94313,7 +95017,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null) { + if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { options = { ...options, baseUrl: new URL(values["@id"]) }; } @@ -94652,7 +95356,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null) { + if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { options = { ...options, baseUrl: new URL(values["@id"]) }; } @@ -94989,7 +95693,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null) { + if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { options = { ...options, baseUrl: new URL(values["@id"]) }; } @@ -95326,7 +96030,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null) { + if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { options = { ...options, baseUrl: new URL(values["@id"]) }; } @@ -95659,7 +96363,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null) { + if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { options = { ...options, baseUrl: new URL(values["@id"]) }; } diff --git a/packages/vocab-tools/src/codec.ts b/packages/vocab-tools/src/codec.ts index 39b758aa2..7a0d4bee5 100644 --- a/packages/vocab-tools/src/codec.ts +++ b/packages/vocab-tools/src/codec.ts @@ -473,7 +473,7 @@ export async function* generateDecoder( property, getTypeNames(property.range, types), variable, - `(values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"]))`, + `(values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl))`, moduleVarNames, ); if (!areAllScalarTypes(property.range, types)) { @@ -497,7 +497,7 @@ export async function* generateDecoder( types, "v", "options", - `(values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"]))`, + `(values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl))`, ) }; if (typeof decoded === "undefined") continue; @@ -511,7 +511,7 @@ export async function* generateDecoder( types, "v", "options", - `(values["@id"] == null || !URL.canParse(values["@id"]) ? options.baseUrl : new URL(values["@id"]))`, + `(values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl))`, ); for (const code of decoders) yield code; yield ` From 57eb8518a2cdeb1abb3acfa3cf21b15d87b4e1a4 Mon Sep 17 00:00:00 2001 From: Hong Minhee Date: Sat, 6 Jun 2026 00:28:21 +0900 Subject: [PATCH 09/25] Throw on missing preprocessor module and extract baseUrl Replace silent skip with a descriptive error when a preprocessor module is not in the generated import map, so missing modules are caught at codegen time rather than silently at runtime. Extract the repeated baseUrl selection expression into a single `_baseUrl` constant computed once per decode invocation, used by the preprocessor block, getDecoder, and getDecoders call sites. Assisted-by: OpenCode:deepseek-v4-pro --- packages/vocab-tools/src/codec.ts | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/packages/vocab-tools/src/codec.ts b/packages/vocab-tools/src/codec.ts index 7a0d4bee5..4013befa5 100644 --- a/packages/vocab-tools/src/codec.ts +++ b/packages/vocab-tools/src/codec.ts @@ -30,7 +30,13 @@ function* generatePreprocessorBlock( `; for (const pp of property.preprocessors) { const varName = moduleVarNames.get(pp.module); - if (varName == null) continue; + if (varName == null) { + throw new Error( + `Preprocessor module "${pp.module}" is not registered ` + + `in the generated imports. Ensure all preprocessor ` + + `modules used in property schemas are available.`, + ); + } yield ` if (_handled === undefined) { const _result = await ${varName}[${JSON.stringify(pp.function)}](v, { @@ -401,6 +407,10 @@ export async function* generateDecoder( if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { options = { ...options, baseUrl: new URL(values["@id"]) }; } + const _baseUrl = + values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) + ? options.baseUrl + : new URL(values["@id"], options.baseUrl); `; const subtypes = getSubtypes(typeUri, types, true); yield ` @@ -473,7 +483,7 @@ export async function* generateDecoder( property, getTypeNames(property.range, types), variable, - `(values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl))`, + `_baseUrl`, moduleVarNames, ); if (!areAllScalarTypes(property.range, types)) { @@ -497,7 +507,7 @@ export async function* generateDecoder( types, "v", "options", - `(values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl))`, + `_baseUrl`, ) }; if (typeof decoded === "undefined") continue; @@ -511,7 +521,7 @@ export async function* generateDecoder( types, "v", "options", - `(values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl))`, + `_baseUrl`, ); for (const code of decoders) yield code; yield ` From 6a5265aa4eb894fc4f1612bf5a108a5e2f077a01 Mon Sep 17 00:00:00 2001 From: Hong Minhee Date: Sat, 6 Jun 2026 00:30:59 +0900 Subject: [PATCH 10/25] Compute resolved URL once for both options.baseUrl and _baseUrl Replace two separate new URL() calls with a single _resolvedUrl computed from values["@id"] against options.baseUrl. The result flows into both the options.baseUrl fallback assignment and the _baseUrl constant used by all downstream decode logic, eliminating duplication and ensuring consistent resolution with the base URL. Assisted-by: OpenCode:deepseek-v4-pro --- packages/vocab-tools/src/codec.ts | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/packages/vocab-tools/src/codec.ts b/packages/vocab-tools/src/codec.ts index 4013befa5..b1f44b7e6 100644 --- a/packages/vocab-tools/src/codec.ts +++ b/packages/vocab-tools/src/codec.ts @@ -404,13 +404,14 @@ export async function* generateDecoder( // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { - options = { ...options, baseUrl: new URL(values["@id"]) }; + const _resolvedUrl = + values["@id"] != null && URL.canParse(values["@id"], options.baseUrl) + ? new URL(values["@id"], options.baseUrl) + : undefined; + if (options.baseUrl == null && _resolvedUrl != null) { + options = { ...options, baseUrl: _resolvedUrl }; } - const _baseUrl = - values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) - ? options.baseUrl - : new URL(values["@id"], options.baseUrl); + const _baseUrl = _resolvedUrl ?? options.baseUrl; `; const subtypes = getSubtypes(typeUri, types, true); yield ` From 218543947d04b1e25edacb1b0a83f3ad76f2dbe0 Mon Sep 17 00:00:00 2001 From: Hong Minhee Date: Sat, 6 Jun 2026 00:32:48 +0900 Subject: [PATCH 11/25] Add JSDoc to new exported APIs Added `@since 2.3.0` tags to `Json`, `PropertyPreprocessorContext`, and `PropertyPreprocessor` in @fedify/vocab-runtime, and added full JSDoc with @since tag to `normalizeLinkToImage`. Assisted-by: OpenCode:deepseek-v4-pro --- packages/vocab-runtime/src/preprocessor.ts | 3 +++ packages/vocab/src/preprocessors.ts | 12 ++++++++++++ 2 files changed, 15 insertions(+) diff --git a/packages/vocab-runtime/src/preprocessor.ts b/packages/vocab-runtime/src/preprocessor.ts index cea40559e..1151ee31d 100644 --- a/packages/vocab-runtime/src/preprocessor.ts +++ b/packages/vocab-runtime/src/preprocessor.ts @@ -3,6 +3,7 @@ import type { TracerProvider } from "@opentelemetry/api"; /** * JSON value shape passed to property preprocessors. + * @since 2.3.0 */ export type Json = | string @@ -14,6 +15,7 @@ export type Json = /** * Runtime context provided to property preprocessors. + * @since 2.3.0 */ export interface PropertyPreprocessorContext { /** Loader for remote JSON-LD documents. */ @@ -33,6 +35,7 @@ export interface PropertyPreprocessorContext { * object when the value is handled, `undefined` when the value should * fall through to the normal range decoder, or an `Error` when the value * is recognized but cannot be converted. + * @since 2.3.0 */ export type PropertyPreprocessor = ( value: Json, diff --git a/packages/vocab/src/preprocessors.ts b/packages/vocab/src/preprocessors.ts index ac7aba185..9a3e657bb 100644 --- a/packages/vocab/src/preprocessors.ts +++ b/packages/vocab/src/preprocessors.ts @@ -1,6 +1,18 @@ import type { PropertyPreprocessor } from "@fedify/vocab-runtime"; import { Image, Link } from "./vocab.ts"; +/** + * A property preprocessor that normalizes Link values to Image objects. + * + * When an `icon` or `image` property on a vocabulary object contains an + * explicit ActivityStreams `Link` rather than an `Image`, this preprocessor + * converts it into an `Image` by mapping `href` to `url`, copying + * `mediaType`, `name`, `width`, and `height`, and discarding the rest. + * + * If the value is not a Link, or the Link has no `href`, it returns + * `undefined` so the normal range decoder continues. + * @since 2.3.0 + */ export const normalizeLinkToImage: PropertyPreprocessor = async ( value, context, From 456127fb6ef3c986be5944ce4813b3a4f4bdf23d Mon Sep 17 00:00:00 2001 From: Hong Minhee Date: Sat, 6 Jun 2026 00:35:19 +0900 Subject: [PATCH 12/25] Note normalizeLinkToImage is exported in CHANGES.md Assisted-by: OpenCode:deepseek-v4-pro --- CHANGES.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CHANGES.md b/CHANGES.md index 6061c3623..85babb291 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -352,8 +352,8 @@ To be released. ### @fedify/vocab - Explicit ActivityStreams `Link` objects in `icon` and `image` properties - are now normalized to `Image` during decoding via the new - `normalizeLinkToImage` preprocessor. The public `Image`-oriented + are now normalized to `Image` during decoding via the new exported + `normalizeLinkToImage()` preprocessor. The public `Image`-oriented TypeScript API is unchanged. [[#790], [#792]] [#790]: https://github.com/fedify-dev/fedify/issues/790 From 14d24ad236a3b5037ebd0400daeb74ae1859bba0 Mon Sep 17 00:00:00 2001 From: Hong Minhee Date: Sat, 6 Jun 2026 00:42:41 +0900 Subject: [PATCH 13/25] Update Node.js and Bun snapshots for codegen changes Regenerated snapshot files reflecting the current generated code output with preprocessor blocks, static imports, and baseUrl resolution. Assisted-by: OpenCode:deepseek-v4-pro --- .../src/__snapshots__/class.test.ts.node.snap | 1235 +++++++++++------ .../src/__snapshots__/class.test.ts.snap | 1235 +++++++++++------ 2 files changed, 1630 insertions(+), 840 deletions(-) diff --git a/packages/vocab-tools/src/__snapshots__/class.test.ts.node.snap b/packages/vocab-tools/src/__snapshots__/class.test.ts.node.snap index 3246d6a4a..c83f6716a 100644 --- a/packages/vocab-tools/src/__snapshots__/class.test.ts.node.snap +++ b/packages/vocab-tools/src/__snapshots__/class.test.ts.node.snap @@ -10342,9 +10342,14 @@ get urls(): ((URL | Link))[] { // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { - options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; + const _resolvedUrl = + values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) + ? new URL(values[\\"@id\\"], options.baseUrl) + : undefined; + if (options.baseUrl == null && _resolvedUrl != null) { + options = { ...options, baseUrl: _resolvedUrl }; } + const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -10643,16 +10648,16 @@ get urls(): ((URL | Link))[] { && Array.isArray(v[\\"@type\\"])&& [\\"https://www.w3.org/ns/activitystreams#Object\\",\\"http://joinmastodon.org/ns#Emoji\\",\\"http://litepub.social/ns#ChatMessage\\",\\"https://gotosocial.org/ns#AnnounceAuthorization\\",\\"https://gotosocial.org/ns#LikeApproval\\",\\"https://gotosocial.org/ns#ReplyAuthorization\\",\\"https://w3id.org/fep/044f#QuoteAuthorization\\",\\"https://w3id.org/valueflows/ont/vf#Proposal\\",\\"https://www.w3.org/ns/activitystreams#Activity\\",\\"http://litepub.social/ns#EmojiReact\\",\\"https://gotosocial.org/ns#AnnounceRequest\\",\\"https://gotosocial.org/ns#LikeRequest\\",\\"https://gotosocial.org/ns#ReplyRequest\\",\\"https://w3id.org/fep/044f#QuoteRequest\\",\\"https://www.w3.org/ns/activitystreams#Accept\\",\\"https://www.w3.org/ns/activitystreams#TentativeAccept\\",\\"https://www.w3.org/ns/activitystreams#Add\\",\\"https://www.w3.org/ns/activitystreams#Announce\\",\\"https://www.w3.org/ns/activitystreams#Create\\",\\"https://www.w3.org/ns/activitystreams#Delete\\",\\"https://www.w3.org/ns/activitystreams#Dislike\\",\\"https://www.w3.org/ns/activitystreams#Flag\\",\\"https://www.w3.org/ns/activitystreams#Follow\\",\\"https://www.w3.org/ns/activitystreams#Ignore\\",\\"https://www.w3.org/ns/activitystreams#Block\\",\\"https://www.w3.org/ns/activitystreams#IntransitiveActivity\\",\\"https://www.w3.org/ns/activitystreams#Arrive\\",\\"https://www.w3.org/ns/activitystreams#Question\\",\\"https://www.w3.org/ns/activitystreams#Travel\\",\\"https://www.w3.org/ns/activitystreams#Join\\",\\"https://www.w3.org/ns/activitystreams#Leave\\",\\"https://www.w3.org/ns/activitystreams#Like\\",\\"https://www.w3.org/ns/activitystreams#Listen\\",\\"https://www.w3.org/ns/activitystreams#Move\\",\\"https://www.w3.org/ns/activitystreams#Offer\\",\\"https://www.w3.org/ns/activitystreams#Invite\\",\\"https://www.w3.org/ns/activitystreams#Read\\",\\"https://www.w3.org/ns/activitystreams#Reject\\",\\"https://www.w3.org/ns/activitystreams#TentativeReject\\",\\"https://www.w3.org/ns/activitystreams#Remove\\",\\"https://www.w3.org/ns/activitystreams#Undo\\",\\"https://www.w3.org/ns/activitystreams#Update\\",\\"https://www.w3.org/ns/activitystreams#View\\",\\"https://www.w3.org/ns/activitystreams#Application\\",\\"https://www.w3.org/ns/activitystreams#Article\\",\\"https://www.w3.org/ns/activitystreams#Collection\\",\\"https://www.w3.org/ns/activitystreams#CollectionPage\\",\\"https://www.w3.org/ns/activitystreams#OrderedCollectionPage\\",\\"https://www.w3.org/ns/activitystreams#OrderedCollection\\",\\"https://www.w3.org/ns/activitystreams#Document\\",\\"https://www.w3.org/ns/activitystreams#Audio\\",\\"https://www.w3.org/ns/activitystreams#Image\\",\\"https://www.w3.org/ns/activitystreams#Page\\",\\"https://www.w3.org/ns/activitystreams#Video\\",\\"https://www.w3.org/ns/activitystreams#Event\\",\\"https://www.w3.org/ns/activitystreams#Group\\",\\"https://www.w3.org/ns/activitystreams#Note\\",\\"https://www.w3.org/ns/activitystreams#Organization\\",\\"https://www.w3.org/ns/activitystreams#Person\\",\\"https://www.w3.org/ns/activitystreams#Place\\",\\"https://www.w3.org/ns/activitystreams#Profile\\",\\"https://www.w3.org/ns/activitystreams#Relationship\\",\\"https://www.w3.org/ns/activitystreams#Service\\",\\"https://www.w3.org/ns/activitystreams#Tombstone\\"].some( t => v[\\"@type\\"].includes(t)) ? await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& [\\"https://www.w3.org/ns/activitystreams#Link\\",\\"https://www.w3.org/ns/activitystreams#Hashtag\\",\\"https://www.w3.org/ns/activitystreams#Mention\\"].some( t => v[\\"@type\\"].includes(t)) ? await Link.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"http://schema.org#PropertyValue\\") ? await PropertyValue.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -10689,23 +10694,23 @@ get urls(): ((URL | Link))[] { typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Application\\") ? await Application.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Group\\") ? await Group.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Organization\\") ? await Organization.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Person\\") ? await Person.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Service\\") ? await Service.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -10740,7 +10745,7 @@ get urls(): ((URL | Link))[] { const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === \\"undefined\\") continue; _3ocC3VVi88cEd5sPWL8djkZsvTN6_audience.push(decoded); @@ -10800,12 +10805,12 @@ get urls(): ((URL | Link))[] { && Array.isArray(v[\\"@type\\"])&& [\\"https://www.w3.org/ns/activitystreams#Object\\",\\"http://joinmastodon.org/ns#Emoji\\",\\"http://litepub.social/ns#ChatMessage\\",\\"https://gotosocial.org/ns#AnnounceAuthorization\\",\\"https://gotosocial.org/ns#LikeApproval\\",\\"https://gotosocial.org/ns#ReplyAuthorization\\",\\"https://w3id.org/fep/044f#QuoteAuthorization\\",\\"https://w3id.org/valueflows/ont/vf#Proposal\\",\\"https://www.w3.org/ns/activitystreams#Activity\\",\\"http://litepub.social/ns#EmojiReact\\",\\"https://gotosocial.org/ns#AnnounceRequest\\",\\"https://gotosocial.org/ns#LikeRequest\\",\\"https://gotosocial.org/ns#ReplyRequest\\",\\"https://w3id.org/fep/044f#QuoteRequest\\",\\"https://www.w3.org/ns/activitystreams#Accept\\",\\"https://www.w3.org/ns/activitystreams#TentativeAccept\\",\\"https://www.w3.org/ns/activitystreams#Add\\",\\"https://www.w3.org/ns/activitystreams#Announce\\",\\"https://www.w3.org/ns/activitystreams#Create\\",\\"https://www.w3.org/ns/activitystreams#Delete\\",\\"https://www.w3.org/ns/activitystreams#Dislike\\",\\"https://www.w3.org/ns/activitystreams#Flag\\",\\"https://www.w3.org/ns/activitystreams#Follow\\",\\"https://www.w3.org/ns/activitystreams#Ignore\\",\\"https://www.w3.org/ns/activitystreams#Block\\",\\"https://www.w3.org/ns/activitystreams#IntransitiveActivity\\",\\"https://www.w3.org/ns/activitystreams#Arrive\\",\\"https://www.w3.org/ns/activitystreams#Question\\",\\"https://www.w3.org/ns/activitystreams#Travel\\",\\"https://www.w3.org/ns/activitystreams#Join\\",\\"https://www.w3.org/ns/activitystreams#Leave\\",\\"https://www.w3.org/ns/activitystreams#Like\\",\\"https://www.w3.org/ns/activitystreams#Listen\\",\\"https://www.w3.org/ns/activitystreams#Move\\",\\"https://www.w3.org/ns/activitystreams#Offer\\",\\"https://www.w3.org/ns/activitystreams#Invite\\",\\"https://www.w3.org/ns/activitystreams#Read\\",\\"https://www.w3.org/ns/activitystreams#Reject\\",\\"https://www.w3.org/ns/activitystreams#TentativeReject\\",\\"https://www.w3.org/ns/activitystreams#Remove\\",\\"https://www.w3.org/ns/activitystreams#Undo\\",\\"https://www.w3.org/ns/activitystreams#Update\\",\\"https://www.w3.org/ns/activitystreams#View\\",\\"https://www.w3.org/ns/activitystreams#Application\\",\\"https://www.w3.org/ns/activitystreams#Article\\",\\"https://www.w3.org/ns/activitystreams#Collection\\",\\"https://www.w3.org/ns/activitystreams#CollectionPage\\",\\"https://www.w3.org/ns/activitystreams#OrderedCollectionPage\\",\\"https://www.w3.org/ns/activitystreams#OrderedCollection\\",\\"https://www.w3.org/ns/activitystreams#Document\\",\\"https://www.w3.org/ns/activitystreams#Audio\\",\\"https://www.w3.org/ns/activitystreams#Image\\",\\"https://www.w3.org/ns/activitystreams#Page\\",\\"https://www.w3.org/ns/activitystreams#Video\\",\\"https://www.w3.org/ns/activitystreams#Event\\",\\"https://www.w3.org/ns/activitystreams#Group\\",\\"https://www.w3.org/ns/activitystreams#Note\\",\\"https://www.w3.org/ns/activitystreams#Organization\\",\\"https://www.w3.org/ns/activitystreams#Person\\",\\"https://www.w3.org/ns/activitystreams#Place\\",\\"https://www.w3.org/ns/activitystreams#Profile\\",\\"https://www.w3.org/ns/activitystreams#Relationship\\",\\"https://www.w3.org/ns/activitystreams#Service\\",\\"https://www.w3.org/ns/activitystreams#Tombstone\\"].some( t => v[\\"@type\\"].includes(t)) ? await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& [\\"https://www.w3.org/ns/activitystreams#Link\\",\\"https://www.w3.org/ns/activitystreams#Hashtag\\",\\"https://www.w3.org/ns/activitystreams#Mention\\"].some( t => v[\\"@type\\"].includes(t)) ? await Link.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -10889,12 +10894,12 @@ get urls(): ((URL | Link))[] { && Array.isArray(v[\\"@type\\"])&& [\\"https://www.w3.org/ns/activitystreams#Object\\",\\"http://joinmastodon.org/ns#Emoji\\",\\"http://litepub.social/ns#ChatMessage\\",\\"https://gotosocial.org/ns#AnnounceAuthorization\\",\\"https://gotosocial.org/ns#LikeApproval\\",\\"https://gotosocial.org/ns#ReplyAuthorization\\",\\"https://w3id.org/fep/044f#QuoteAuthorization\\",\\"https://w3id.org/valueflows/ont/vf#Proposal\\",\\"https://www.w3.org/ns/activitystreams#Activity\\",\\"http://litepub.social/ns#EmojiReact\\",\\"https://gotosocial.org/ns#AnnounceRequest\\",\\"https://gotosocial.org/ns#LikeRequest\\",\\"https://gotosocial.org/ns#ReplyRequest\\",\\"https://w3id.org/fep/044f#QuoteRequest\\",\\"https://www.w3.org/ns/activitystreams#Accept\\",\\"https://www.w3.org/ns/activitystreams#TentativeAccept\\",\\"https://www.w3.org/ns/activitystreams#Add\\",\\"https://www.w3.org/ns/activitystreams#Announce\\",\\"https://www.w3.org/ns/activitystreams#Create\\",\\"https://www.w3.org/ns/activitystreams#Delete\\",\\"https://www.w3.org/ns/activitystreams#Dislike\\",\\"https://www.w3.org/ns/activitystreams#Flag\\",\\"https://www.w3.org/ns/activitystreams#Follow\\",\\"https://www.w3.org/ns/activitystreams#Ignore\\",\\"https://www.w3.org/ns/activitystreams#Block\\",\\"https://www.w3.org/ns/activitystreams#IntransitiveActivity\\",\\"https://www.w3.org/ns/activitystreams#Arrive\\",\\"https://www.w3.org/ns/activitystreams#Question\\",\\"https://www.w3.org/ns/activitystreams#Travel\\",\\"https://www.w3.org/ns/activitystreams#Join\\",\\"https://www.w3.org/ns/activitystreams#Leave\\",\\"https://www.w3.org/ns/activitystreams#Like\\",\\"https://www.w3.org/ns/activitystreams#Listen\\",\\"https://www.w3.org/ns/activitystreams#Move\\",\\"https://www.w3.org/ns/activitystreams#Offer\\",\\"https://www.w3.org/ns/activitystreams#Invite\\",\\"https://www.w3.org/ns/activitystreams#Read\\",\\"https://www.w3.org/ns/activitystreams#Reject\\",\\"https://www.w3.org/ns/activitystreams#TentativeReject\\",\\"https://www.w3.org/ns/activitystreams#Remove\\",\\"https://www.w3.org/ns/activitystreams#Undo\\",\\"https://www.w3.org/ns/activitystreams#Update\\",\\"https://www.w3.org/ns/activitystreams#View\\",\\"https://www.w3.org/ns/activitystreams#Application\\",\\"https://www.w3.org/ns/activitystreams#Article\\",\\"https://www.w3.org/ns/activitystreams#Collection\\",\\"https://www.w3.org/ns/activitystreams#CollectionPage\\",\\"https://www.w3.org/ns/activitystreams#OrderedCollectionPage\\",\\"https://www.w3.org/ns/activitystreams#OrderedCollection\\",\\"https://www.w3.org/ns/activitystreams#Document\\",\\"https://www.w3.org/ns/activitystreams#Audio\\",\\"https://www.w3.org/ns/activitystreams#Image\\",\\"https://www.w3.org/ns/activitystreams#Page\\",\\"https://www.w3.org/ns/activitystreams#Video\\",\\"https://www.w3.org/ns/activitystreams#Event\\",\\"https://www.w3.org/ns/activitystreams#Group\\",\\"https://www.w3.org/ns/activitystreams#Note\\",\\"https://www.w3.org/ns/activitystreams#Organization\\",\\"https://www.w3.org/ns/activitystreams#Person\\",\\"https://www.w3.org/ns/activitystreams#Place\\",\\"https://www.w3.org/ns/activitystreams#Profile\\",\\"https://www.w3.org/ns/activitystreams#Relationship\\",\\"https://www.w3.org/ns/activitystreams#Service\\",\\"https://www.w3.org/ns/activitystreams#Tombstone\\"].some( t => v[\\"@type\\"].includes(t)) ? await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& [\\"https://www.w3.org/ns/activitystreams#Link\\",\\"https://www.w3.org/ns/activitystreams#Hashtag\\",\\"https://www.w3.org/ns/activitystreams#Mention\\"].some( t => v[\\"@type\\"].includes(t)) ? await Link.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -10925,7 +10930,7 @@ get urls(): ((URL | Link))[] { documentLoader: options.documentLoader, contextLoader: options.contextLoader, tracerProvider: options.tracerProvider, - baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)), + baseUrl: _baseUrl, }); if (_result instanceof Error) throw _result; if (_result !== undefined) { @@ -10951,7 +10956,7 @@ get urls(): ((URL | Link))[] { const decoded = await Image.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === \\"undefined\\") continue; _33CjRLy5ujtsUrwRSCrsggvGdKuR_icon.push(decoded); @@ -10980,7 +10985,7 @@ get urls(): ((URL | Link))[] { documentLoader: options.documentLoader, contextLoader: options.contextLoader, tracerProvider: options.tracerProvider, - baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)), + baseUrl: _baseUrl, }); if (_result instanceof Error) throw _result; if (_result !== undefined) { @@ -11006,7 +11011,7 @@ get urls(): ((URL | Link))[] { const decoded = await Image.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === \\"undefined\\") continue; _3dXrUdkARxwyJLtJcYi1AJ92H41U_image.push(decoded); @@ -11042,12 +11047,12 @@ get urls(): ((URL | Link))[] { && Array.isArray(v[\\"@type\\"])&& [\\"https://www.w3.org/ns/activitystreams#Object\\",\\"http://joinmastodon.org/ns#Emoji\\",\\"http://litepub.social/ns#ChatMessage\\",\\"https://gotosocial.org/ns#AnnounceAuthorization\\",\\"https://gotosocial.org/ns#LikeApproval\\",\\"https://gotosocial.org/ns#ReplyAuthorization\\",\\"https://w3id.org/fep/044f#QuoteAuthorization\\",\\"https://w3id.org/valueflows/ont/vf#Proposal\\",\\"https://www.w3.org/ns/activitystreams#Activity\\",\\"http://litepub.social/ns#EmojiReact\\",\\"https://gotosocial.org/ns#AnnounceRequest\\",\\"https://gotosocial.org/ns#LikeRequest\\",\\"https://gotosocial.org/ns#ReplyRequest\\",\\"https://w3id.org/fep/044f#QuoteRequest\\",\\"https://www.w3.org/ns/activitystreams#Accept\\",\\"https://www.w3.org/ns/activitystreams#TentativeAccept\\",\\"https://www.w3.org/ns/activitystreams#Add\\",\\"https://www.w3.org/ns/activitystreams#Announce\\",\\"https://www.w3.org/ns/activitystreams#Create\\",\\"https://www.w3.org/ns/activitystreams#Delete\\",\\"https://www.w3.org/ns/activitystreams#Dislike\\",\\"https://www.w3.org/ns/activitystreams#Flag\\",\\"https://www.w3.org/ns/activitystreams#Follow\\",\\"https://www.w3.org/ns/activitystreams#Ignore\\",\\"https://www.w3.org/ns/activitystreams#Block\\",\\"https://www.w3.org/ns/activitystreams#IntransitiveActivity\\",\\"https://www.w3.org/ns/activitystreams#Arrive\\",\\"https://www.w3.org/ns/activitystreams#Question\\",\\"https://www.w3.org/ns/activitystreams#Travel\\",\\"https://www.w3.org/ns/activitystreams#Join\\",\\"https://www.w3.org/ns/activitystreams#Leave\\",\\"https://www.w3.org/ns/activitystreams#Like\\",\\"https://www.w3.org/ns/activitystreams#Listen\\",\\"https://www.w3.org/ns/activitystreams#Move\\",\\"https://www.w3.org/ns/activitystreams#Offer\\",\\"https://www.w3.org/ns/activitystreams#Invite\\",\\"https://www.w3.org/ns/activitystreams#Read\\",\\"https://www.w3.org/ns/activitystreams#Reject\\",\\"https://www.w3.org/ns/activitystreams#TentativeReject\\",\\"https://www.w3.org/ns/activitystreams#Remove\\",\\"https://www.w3.org/ns/activitystreams#Undo\\",\\"https://www.w3.org/ns/activitystreams#Update\\",\\"https://www.w3.org/ns/activitystreams#View\\",\\"https://www.w3.org/ns/activitystreams#Application\\",\\"https://www.w3.org/ns/activitystreams#Article\\",\\"https://www.w3.org/ns/activitystreams#Collection\\",\\"https://www.w3.org/ns/activitystreams#CollectionPage\\",\\"https://www.w3.org/ns/activitystreams#OrderedCollectionPage\\",\\"https://www.w3.org/ns/activitystreams#OrderedCollection\\",\\"https://www.w3.org/ns/activitystreams#Document\\",\\"https://www.w3.org/ns/activitystreams#Audio\\",\\"https://www.w3.org/ns/activitystreams#Image\\",\\"https://www.w3.org/ns/activitystreams#Page\\",\\"https://www.w3.org/ns/activitystreams#Video\\",\\"https://www.w3.org/ns/activitystreams#Event\\",\\"https://www.w3.org/ns/activitystreams#Group\\",\\"https://www.w3.org/ns/activitystreams#Note\\",\\"https://www.w3.org/ns/activitystreams#Organization\\",\\"https://www.w3.org/ns/activitystreams#Person\\",\\"https://www.w3.org/ns/activitystreams#Place\\",\\"https://www.w3.org/ns/activitystreams#Profile\\",\\"https://www.w3.org/ns/activitystreams#Relationship\\",\\"https://www.w3.org/ns/activitystreams#Service\\",\\"https://www.w3.org/ns/activitystreams#Tombstone\\"].some( t => v[\\"@type\\"].includes(t)) ? await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& [\\"https://www.w3.org/ns/activitystreams#Link\\",\\"https://www.w3.org/ns/activitystreams#Hashtag\\",\\"https://www.w3.org/ns/activitystreams#Mention\\"].some( t => v[\\"@type\\"].includes(t)) ? await Link.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -11085,12 +11090,12 @@ get urls(): ((URL | Link))[] { && Array.isArray(v[\\"@type\\"])&& [\\"https://www.w3.org/ns/activitystreams#Object\\",\\"http://joinmastodon.org/ns#Emoji\\",\\"http://litepub.social/ns#ChatMessage\\",\\"https://gotosocial.org/ns#AnnounceAuthorization\\",\\"https://gotosocial.org/ns#LikeApproval\\",\\"https://gotosocial.org/ns#ReplyAuthorization\\",\\"https://w3id.org/fep/044f#QuoteAuthorization\\",\\"https://w3id.org/valueflows/ont/vf#Proposal\\",\\"https://www.w3.org/ns/activitystreams#Activity\\",\\"http://litepub.social/ns#EmojiReact\\",\\"https://gotosocial.org/ns#AnnounceRequest\\",\\"https://gotosocial.org/ns#LikeRequest\\",\\"https://gotosocial.org/ns#ReplyRequest\\",\\"https://w3id.org/fep/044f#QuoteRequest\\",\\"https://www.w3.org/ns/activitystreams#Accept\\",\\"https://www.w3.org/ns/activitystreams#TentativeAccept\\",\\"https://www.w3.org/ns/activitystreams#Add\\",\\"https://www.w3.org/ns/activitystreams#Announce\\",\\"https://www.w3.org/ns/activitystreams#Create\\",\\"https://www.w3.org/ns/activitystreams#Delete\\",\\"https://www.w3.org/ns/activitystreams#Dislike\\",\\"https://www.w3.org/ns/activitystreams#Flag\\",\\"https://www.w3.org/ns/activitystreams#Follow\\",\\"https://www.w3.org/ns/activitystreams#Ignore\\",\\"https://www.w3.org/ns/activitystreams#Block\\",\\"https://www.w3.org/ns/activitystreams#IntransitiveActivity\\",\\"https://www.w3.org/ns/activitystreams#Arrive\\",\\"https://www.w3.org/ns/activitystreams#Question\\",\\"https://www.w3.org/ns/activitystreams#Travel\\",\\"https://www.w3.org/ns/activitystreams#Join\\",\\"https://www.w3.org/ns/activitystreams#Leave\\",\\"https://www.w3.org/ns/activitystreams#Like\\",\\"https://www.w3.org/ns/activitystreams#Listen\\",\\"https://www.w3.org/ns/activitystreams#Move\\",\\"https://www.w3.org/ns/activitystreams#Offer\\",\\"https://www.w3.org/ns/activitystreams#Invite\\",\\"https://www.w3.org/ns/activitystreams#Read\\",\\"https://www.w3.org/ns/activitystreams#Reject\\",\\"https://www.w3.org/ns/activitystreams#TentativeReject\\",\\"https://www.w3.org/ns/activitystreams#Remove\\",\\"https://www.w3.org/ns/activitystreams#Undo\\",\\"https://www.w3.org/ns/activitystreams#Update\\",\\"https://www.w3.org/ns/activitystreams#View\\",\\"https://www.w3.org/ns/activitystreams#Application\\",\\"https://www.w3.org/ns/activitystreams#Article\\",\\"https://www.w3.org/ns/activitystreams#Collection\\",\\"https://www.w3.org/ns/activitystreams#CollectionPage\\",\\"https://www.w3.org/ns/activitystreams#OrderedCollectionPage\\",\\"https://www.w3.org/ns/activitystreams#OrderedCollection\\",\\"https://www.w3.org/ns/activitystreams#Document\\",\\"https://www.w3.org/ns/activitystreams#Audio\\",\\"https://www.w3.org/ns/activitystreams#Image\\",\\"https://www.w3.org/ns/activitystreams#Page\\",\\"https://www.w3.org/ns/activitystreams#Video\\",\\"https://www.w3.org/ns/activitystreams#Event\\",\\"https://www.w3.org/ns/activitystreams#Group\\",\\"https://www.w3.org/ns/activitystreams#Note\\",\\"https://www.w3.org/ns/activitystreams#Organization\\",\\"https://www.w3.org/ns/activitystreams#Person\\",\\"https://www.w3.org/ns/activitystreams#Place\\",\\"https://www.w3.org/ns/activitystreams#Profile\\",\\"https://www.w3.org/ns/activitystreams#Relationship\\",\\"https://www.w3.org/ns/activitystreams#Service\\",\\"https://www.w3.org/ns/activitystreams#Tombstone\\"].some( t => v[\\"@type\\"].includes(t)) ? await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& [\\"https://www.w3.org/ns/activitystreams#Link\\",\\"https://www.w3.org/ns/activitystreams#Hashtag\\",\\"https://www.w3.org/ns/activitystreams#Mention\\"].some( t => v[\\"@type\\"].includes(t)) ? await Link.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -11128,12 +11133,12 @@ get urls(): ((URL | Link))[] { && Array.isArray(v[\\"@type\\"])&& [\\"https://www.w3.org/ns/activitystreams#Link\\",\\"https://www.w3.org/ns/activitystreams#Hashtag\\",\\"https://www.w3.org/ns/activitystreams#Mention\\"].some( t => v[\\"@type\\"].includes(t)) ? await Link.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& [\\"https://www.w3.org/ns/activitystreams#Object\\",\\"http://joinmastodon.org/ns#Emoji\\",\\"http://litepub.social/ns#ChatMessage\\",\\"https://gotosocial.org/ns#AnnounceAuthorization\\",\\"https://gotosocial.org/ns#LikeApproval\\",\\"https://gotosocial.org/ns#ReplyAuthorization\\",\\"https://w3id.org/fep/044f#QuoteAuthorization\\",\\"https://w3id.org/valueflows/ont/vf#Proposal\\",\\"https://www.w3.org/ns/activitystreams#Activity\\",\\"http://litepub.social/ns#EmojiReact\\",\\"https://gotosocial.org/ns#AnnounceRequest\\",\\"https://gotosocial.org/ns#LikeRequest\\",\\"https://gotosocial.org/ns#ReplyRequest\\",\\"https://w3id.org/fep/044f#QuoteRequest\\",\\"https://www.w3.org/ns/activitystreams#Accept\\",\\"https://www.w3.org/ns/activitystreams#TentativeAccept\\",\\"https://www.w3.org/ns/activitystreams#Add\\",\\"https://www.w3.org/ns/activitystreams#Announce\\",\\"https://www.w3.org/ns/activitystreams#Create\\",\\"https://www.w3.org/ns/activitystreams#Delete\\",\\"https://www.w3.org/ns/activitystreams#Dislike\\",\\"https://www.w3.org/ns/activitystreams#Flag\\",\\"https://www.w3.org/ns/activitystreams#Follow\\",\\"https://www.w3.org/ns/activitystreams#Ignore\\",\\"https://www.w3.org/ns/activitystreams#Block\\",\\"https://www.w3.org/ns/activitystreams#IntransitiveActivity\\",\\"https://www.w3.org/ns/activitystreams#Arrive\\",\\"https://www.w3.org/ns/activitystreams#Question\\",\\"https://www.w3.org/ns/activitystreams#Travel\\",\\"https://www.w3.org/ns/activitystreams#Join\\",\\"https://www.w3.org/ns/activitystreams#Leave\\",\\"https://www.w3.org/ns/activitystreams#Like\\",\\"https://www.w3.org/ns/activitystreams#Listen\\",\\"https://www.w3.org/ns/activitystreams#Move\\",\\"https://www.w3.org/ns/activitystreams#Offer\\",\\"https://www.w3.org/ns/activitystreams#Invite\\",\\"https://www.w3.org/ns/activitystreams#Read\\",\\"https://www.w3.org/ns/activitystreams#Reject\\",\\"https://www.w3.org/ns/activitystreams#TentativeReject\\",\\"https://www.w3.org/ns/activitystreams#Remove\\",\\"https://www.w3.org/ns/activitystreams#Undo\\",\\"https://www.w3.org/ns/activitystreams#Update\\",\\"https://www.w3.org/ns/activitystreams#View\\",\\"https://www.w3.org/ns/activitystreams#Application\\",\\"https://www.w3.org/ns/activitystreams#Article\\",\\"https://www.w3.org/ns/activitystreams#Collection\\",\\"https://www.w3.org/ns/activitystreams#CollectionPage\\",\\"https://www.w3.org/ns/activitystreams#OrderedCollectionPage\\",\\"https://www.w3.org/ns/activitystreams#OrderedCollection\\",\\"https://www.w3.org/ns/activitystreams#Document\\",\\"https://www.w3.org/ns/activitystreams#Audio\\",\\"https://www.w3.org/ns/activitystreams#Image\\",\\"https://www.w3.org/ns/activitystreams#Page\\",\\"https://www.w3.org/ns/activitystreams#Video\\",\\"https://www.w3.org/ns/activitystreams#Event\\",\\"https://www.w3.org/ns/activitystreams#Group\\",\\"https://www.w3.org/ns/activitystreams#Note\\",\\"https://www.w3.org/ns/activitystreams#Organization\\",\\"https://www.w3.org/ns/activitystreams#Person\\",\\"https://www.w3.org/ns/activitystreams#Place\\",\\"https://www.w3.org/ns/activitystreams#Profile\\",\\"https://www.w3.org/ns/activitystreams#Relationship\\",\\"https://www.w3.org/ns/activitystreams#Service\\",\\"https://www.w3.org/ns/activitystreams#Tombstone\\"].some( t => v[\\"@type\\"].includes(t)) ? await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -11190,7 +11195,7 @@ get urls(): ((URL | Link))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === \\"undefined\\") continue; _7UpwM3JWcXhADcscukEehBorf6k_replies.push(decoded); @@ -11223,7 +11228,7 @@ get urls(): ((URL | Link))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === \\"undefined\\") continue; _3kAfck9PcEYt2L7xug5y99YPbANs_shares.push(decoded); @@ -11256,7 +11261,7 @@ get urls(): ((URL | Link))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === \\"undefined\\") continue; _S3ceDnpMdzoTRCccB9FkJWrEzYW_likes.push(decoded); @@ -11289,7 +11294,7 @@ get urls(): ((URL | Link))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === \\"undefined\\") continue; _kMatyyNAuxoTD8GQMBfA5ogThMR_emojiReactions.push(decoded); @@ -11371,12 +11376,12 @@ get urls(): ((URL | Link))[] { && Array.isArray(v[\\"@type\\"])&& [\\"https://www.w3.org/ns/activitystreams#Object\\",\\"http://joinmastodon.org/ns#Emoji\\",\\"http://litepub.social/ns#ChatMessage\\",\\"https://gotosocial.org/ns#AnnounceAuthorization\\",\\"https://gotosocial.org/ns#LikeApproval\\",\\"https://gotosocial.org/ns#ReplyAuthorization\\",\\"https://w3id.org/fep/044f#QuoteAuthorization\\",\\"https://w3id.org/valueflows/ont/vf#Proposal\\",\\"https://www.w3.org/ns/activitystreams#Activity\\",\\"http://litepub.social/ns#EmojiReact\\",\\"https://gotosocial.org/ns#AnnounceRequest\\",\\"https://gotosocial.org/ns#LikeRequest\\",\\"https://gotosocial.org/ns#ReplyRequest\\",\\"https://w3id.org/fep/044f#QuoteRequest\\",\\"https://www.w3.org/ns/activitystreams#Accept\\",\\"https://www.w3.org/ns/activitystreams#TentativeAccept\\",\\"https://www.w3.org/ns/activitystreams#Add\\",\\"https://www.w3.org/ns/activitystreams#Announce\\",\\"https://www.w3.org/ns/activitystreams#Create\\",\\"https://www.w3.org/ns/activitystreams#Delete\\",\\"https://www.w3.org/ns/activitystreams#Dislike\\",\\"https://www.w3.org/ns/activitystreams#Flag\\",\\"https://www.w3.org/ns/activitystreams#Follow\\",\\"https://www.w3.org/ns/activitystreams#Ignore\\",\\"https://www.w3.org/ns/activitystreams#Block\\",\\"https://www.w3.org/ns/activitystreams#IntransitiveActivity\\",\\"https://www.w3.org/ns/activitystreams#Arrive\\",\\"https://www.w3.org/ns/activitystreams#Question\\",\\"https://www.w3.org/ns/activitystreams#Travel\\",\\"https://www.w3.org/ns/activitystreams#Join\\",\\"https://www.w3.org/ns/activitystreams#Leave\\",\\"https://www.w3.org/ns/activitystreams#Like\\",\\"https://www.w3.org/ns/activitystreams#Listen\\",\\"https://www.w3.org/ns/activitystreams#Move\\",\\"https://www.w3.org/ns/activitystreams#Offer\\",\\"https://www.w3.org/ns/activitystreams#Invite\\",\\"https://www.w3.org/ns/activitystreams#Read\\",\\"https://www.w3.org/ns/activitystreams#Reject\\",\\"https://www.w3.org/ns/activitystreams#TentativeReject\\",\\"https://www.w3.org/ns/activitystreams#Remove\\",\\"https://www.w3.org/ns/activitystreams#Undo\\",\\"https://www.w3.org/ns/activitystreams#Update\\",\\"https://www.w3.org/ns/activitystreams#View\\",\\"https://www.w3.org/ns/activitystreams#Application\\",\\"https://www.w3.org/ns/activitystreams#Article\\",\\"https://www.w3.org/ns/activitystreams#Collection\\",\\"https://www.w3.org/ns/activitystreams#CollectionPage\\",\\"https://www.w3.org/ns/activitystreams#OrderedCollectionPage\\",\\"https://www.w3.org/ns/activitystreams#OrderedCollection\\",\\"https://www.w3.org/ns/activitystreams#Document\\",\\"https://www.w3.org/ns/activitystreams#Audio\\",\\"https://www.w3.org/ns/activitystreams#Image\\",\\"https://www.w3.org/ns/activitystreams#Page\\",\\"https://www.w3.org/ns/activitystreams#Video\\",\\"https://www.w3.org/ns/activitystreams#Event\\",\\"https://www.w3.org/ns/activitystreams#Group\\",\\"https://www.w3.org/ns/activitystreams#Note\\",\\"https://www.w3.org/ns/activitystreams#Organization\\",\\"https://www.w3.org/ns/activitystreams#Person\\",\\"https://www.w3.org/ns/activitystreams#Place\\",\\"https://www.w3.org/ns/activitystreams#Profile\\",\\"https://www.w3.org/ns/activitystreams#Relationship\\",\\"https://www.w3.org/ns/activitystreams#Service\\",\\"https://www.w3.org/ns/activitystreams#Tombstone\\"].some( t => v[\\"@type\\"].includes(t)) ? await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& [\\"https://www.w3.org/ns/activitystreams#Link\\",\\"https://www.w3.org/ns/activitystreams#Hashtag\\",\\"https://www.w3.org/ns/activitystreams#Mention\\"].some( t => v[\\"@type\\"].includes(t)) ? await Link.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -11435,13 +11440,13 @@ get urls(): ((URL | Link))[] { : \\"\\" ) ) - : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) + : URL.canParse(v[\\"@id\\"]) && _baseUrl ? new URL(v[\\"@id\\"]) - : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl))) : typeof v === \\"object\\" && \\"@type\\" in v + : new URL(v[\\"@id\\"], _baseUrl) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& [\\"https://www.w3.org/ns/activitystreams#Link\\",\\"https://www.w3.org/ns/activitystreams#Hashtag\\",\\"https://www.w3.org/ns/activitystreams#Mention\\"].some( t => v[\\"@type\\"].includes(t)) ? await Link.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -11476,7 +11481,7 @@ get urls(): ((URL | Link))[] { const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === \\"undefined\\") continue; _3hFbw7DTpHhq3cvVhkY8njhcsXbd_to.push(decoded); @@ -11509,7 +11514,7 @@ get urls(): ((URL | Link))[] { const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === \\"undefined\\") continue; _aLZupjwL8XB7tzdLgCMXdjZ6qej_bto.push(decoded); @@ -11542,7 +11547,7 @@ get urls(): ((URL | Link))[] { const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === \\"undefined\\") continue; _42a1SvBs24QSLzKcfjCyNTjW5a1g_cc.push(decoded); @@ -11575,7 +11580,7 @@ get urls(): ((URL | Link))[] { const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === \\"undefined\\") continue; _3qvegKUB8YLgTXRpEf8E6JZSkz2H_bcc.push(decoded); @@ -11650,7 +11655,7 @@ get urls(): ((URL | Link))[] { const decoded = await Source.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === \\"undefined\\") continue; _2ZwCFoS787v8y8bXKjMoE6MAbrEB_source.push(decoded); @@ -11683,7 +11688,7 @@ get urls(): ((URL | Link))[] { const decoded = await DataIntegrityProof.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === \\"undefined\\") continue; _42rPnotok1ivQ2RNCKNbeFJgx8b8_proof.push(decoded); @@ -11704,7 +11709,7 @@ get urls(): ((URL | Link))[] { const decoded = await InteractionPolicy.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === \\"undefined\\") continue; _2MHQfh2N74MMmDLDqYWFo7TxYQK2_interactionPolicy.push(decoded); @@ -11736,9 +11741,9 @@ get urls(): ((URL | Link))[] { : \\"\\" ) ) - : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) + : URL.canParse(v[\\"@id\\"]) && _baseUrl ? new URL(v[\\"@id\\"]) - : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl))); + : new URL(v[\\"@id\\"], _baseUrl); if (typeof decoded === \\"undefined\\") continue; _23YiVs2miQcEiUdn4u8SvjQKWYim_approvedBy.push(decoded); } @@ -11770,7 +11775,7 @@ get urls(): ((URL | Link))[] { const decoded = await LikeAuthorization.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === \\"undefined\\") continue; _3fCeb5aXaDDd4fvkQ96BLWifBUBa_likeAuthorization.push(decoded); @@ -11803,7 +11808,7 @@ get urls(): ((URL | Link))[] { const decoded = await ReplyAuthorization.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === \\"undefined\\") continue; _YA4wdUW7rYztAQ6SjhMnJCmcmtP_replyAuthorization.push(decoded); @@ -11836,7 +11841,7 @@ get urls(): ((URL | Link))[] { const decoded = await AnnounceAuthorization.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === \\"undefined\\") continue; _446xEaDBs3Fz6MyzP3PSBaLupkbJ_announceAuthorization.push(decoded); @@ -13014,9 +13019,14 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { - options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; + const _resolvedUrl = + values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) + ? new URL(values[\\"@id\\"], options.baseUrl) + : undefined; + if (options.baseUrl == null && _resolvedUrl != null) { + options = { ...options, baseUrl: _resolvedUrl }; } + const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -14020,9 +14030,14 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { - options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; + const _resolvedUrl = + values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) + ? new URL(values[\\"@id\\"], options.baseUrl) + : undefined; + if (options.baseUrl == null && _resolvedUrl != null) { + options = { ...options, baseUrl: _resolvedUrl }; } + const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -14071,7 +14086,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === \\"undefined\\") continue; _3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote.push(decoded); @@ -14130,7 +14145,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await QuoteAuthorization.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === \\"undefined\\") continue; _ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization.push(decoded); @@ -17077,9 +17092,14 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { - options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; + const _resolvedUrl = + values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) + ? new URL(values[\\"@id\\"], options.baseUrl) + : undefined; + if (options.baseUrl == null && _resolvedUrl != null) { + options = { ...options, baseUrl: _resolvedUrl }; } + const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -17266,23 +17286,23 @@ instruments?: (Object | URL)[];} typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Application\\") ? await Application.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Group\\") ? await Group.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Organization\\") ? await Organization.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Person\\") ? await Person.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Service\\") ? await Service.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -17317,7 +17337,7 @@ instruments?: (Object | URL)[];} const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === \\"undefined\\") continue; _2MH19yxjn1wnHsNfa5n4JBhJzxyc_object.push(decoded); @@ -17350,7 +17370,7 @@ instruments?: (Object | URL)[];} const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === \\"undefined\\") continue; _3JQCmF2Ww56Ag9EWRYoSZRDNCYtF_target.push(decoded); @@ -17383,7 +17403,7 @@ instruments?: (Object | URL)[];} const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === \\"undefined\\") continue; _u4QGFbRFcYmPEKGbPv1hpBR9r5G_result.push(decoded); @@ -17416,7 +17436,7 @@ instruments?: (Object | URL)[];} const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === \\"undefined\\") continue; _25zu2s3VxVujgEKqrDycjE284XQR_origin.push(decoded); @@ -17449,7 +17469,7 @@ instruments?: (Object | URL)[];} const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === \\"undefined\\") continue; _3c5t2x7DYRo2shwTxpkd4kYSS5WQ_instrument.push(decoded); @@ -17920,9 +17940,14 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { - options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; + const _resolvedUrl = + values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) + ? new URL(values[\\"@id\\"], options.baseUrl) + : undefined; + if (options.baseUrl == null && _resolvedUrl != null) { + options = { ...options, baseUrl: _resolvedUrl }; } + const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -18423,9 +18448,14 @@ name?: string | LanguageString | null;value?: string | LanguageString | null;} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { - options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; + const _resolvedUrl = + values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) + ? new URL(values[\\"@id\\"], options.baseUrl) + : undefined; + if (options.baseUrl == null && _resolvedUrl != null) { + options = { ...options, baseUrl: _resolvedUrl }; } + const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -19009,9 +19039,14 @@ unit?: string | null;numericalValue?: Decimal | null;} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { - options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; + const _resolvedUrl = + values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) + ? new URL(values[\\"@id\\"], options.baseUrl) + : undefined; + if (options.baseUrl == null && _resolvedUrl != null) { + options = { ...options, baseUrl: _resolvedUrl }; } + const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -20008,9 +20043,14 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { - options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; + const _resolvedUrl = + values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) + ? new URL(values[\\"@id\\"], options.baseUrl) + : undefined; + if (options.baseUrl == null && _resolvedUrl != null) { + options = { ...options, baseUrl: _resolvedUrl }; } + const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -20059,7 +20099,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === \\"undefined\\") continue; _2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject.push(decoded); @@ -20092,7 +20132,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === \\"undefined\\") continue; _2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget.push(decoded); @@ -20457,9 +20497,14 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { - options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; + const _resolvedUrl = + values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) + ? new URL(values[\\"@id\\"], options.baseUrl) + : undefined; + if (options.baseUrl == null && _resolvedUrl != null) { + options = { ...options, baseUrl: _resolvedUrl }; } + const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -21048,9 +21093,14 @@ canLike?: InteractionRule | null;canReply?: InteractionRule | null;canAnnounce?: // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { - options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; + const _resolvedUrl = + values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) + ? new URL(values[\\"@id\\"], options.baseUrl) + : undefined; + if (options.baseUrl == null && _resolvedUrl != null) { + options = { ...options, baseUrl: _resolvedUrl }; } + const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -21082,7 +21132,7 @@ canLike?: InteractionRule | null;canReply?: InteractionRule | null;canAnnounce?: const decoded = await InteractionRule.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === \\"undefined\\") continue; _3JkwVLb3BNCwCWdsb5RftGAg8vyT_canLike.push(decoded); @@ -21103,7 +21153,7 @@ canLike?: InteractionRule | null;canReply?: InteractionRule | null;canAnnounce?: const decoded = await InteractionRule.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === \\"undefined\\") continue; _2UBgLRi5p3DRGGvWyB227i4Qjhzd_canReply.push(decoded); @@ -21124,7 +21174,7 @@ canLike?: InteractionRule | null;canReply?: InteractionRule | null;canAnnounce?: const decoded = await InteractionRule.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === \\"undefined\\") continue; _fu5nmoAj528fBQfnxhY9Daok3Vi_canAnnounce.push(decoded); @@ -21145,7 +21195,7 @@ canLike?: InteractionRule | null;canReply?: InteractionRule | null;canAnnounce?: const decoded = await InteractionRule.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === \\"undefined\\") continue; _LE3zBTVacTZw2LSyLt4wVUkXeUy_canQuote.push(decoded); @@ -21796,9 +21846,14 @@ get manualApprovals(): (URL)[] { // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { - options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; + const _resolvedUrl = + values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) + ? new URL(values[\\"@id\\"], options.baseUrl) + : undefined; + if (options.baseUrl == null && _resolvedUrl != null) { + options = { ...options, baseUrl: _resolvedUrl }; } + const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -21841,9 +21896,9 @@ get manualApprovals(): (URL)[] { : \\"\\" ) ) - : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) + : URL.canParse(v[\\"@id\\"]) && _baseUrl ? new URL(v[\\"@id\\"]) - : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl))); + : new URL(v[\\"@id\\"], _baseUrl); if (typeof decoded === \\"undefined\\") continue; _2rFyCF14HoyNjitj9PmCzek5iSsg_automaticApproval.push(decoded); } @@ -21874,9 +21929,9 @@ get manualApprovals(): (URL)[] { : \\"\\" ) ) - : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) + : URL.canParse(v[\\"@id\\"]) && _baseUrl ? new URL(v[\\"@id\\"]) - : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl))); + : new URL(v[\\"@id\\"], _baseUrl); if (typeof decoded === \\"undefined\\") continue; _sxj8y5XMMMBWUnRYFw85MKedCMj_manualApproval.push(decoded); } @@ -22836,9 +22891,14 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { - options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; + const _resolvedUrl = + values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) + ? new URL(values[\\"@id\\"], options.baseUrl) + : undefined; + if (options.baseUrl == null && _resolvedUrl != null) { + options = { ...options, baseUrl: _resolvedUrl }; } + const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -22887,7 +22947,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === \\"undefined\\") continue; _2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject.push(decoded); @@ -22920,7 +22980,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === \\"undefined\\") continue; _2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget.push(decoded); @@ -23284,9 +23344,14 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { - options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; + const _resolvedUrl = + values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) + ? new URL(values[\\"@id\\"], options.baseUrl) + : undefined; + if (options.baseUrl == null && _resolvedUrl != null) { + options = { ...options, baseUrl: _resolvedUrl }; } + const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -24196,9 +24261,14 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { - options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; + const _resolvedUrl = + values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) + ? new URL(values[\\"@id\\"], options.baseUrl) + : undefined; + if (options.baseUrl == null && _resolvedUrl != null) { + options = { ...options, baseUrl: _resolvedUrl }; } + const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -24247,7 +24317,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === \\"undefined\\") continue; _2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject.push(decoded); @@ -24280,7 +24350,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === \\"undefined\\") continue; _2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget.push(decoded); @@ -24644,9 +24714,14 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { - options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; + const _resolvedUrl = + values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) + ? new URL(values[\\"@id\\"], options.baseUrl) + : undefined; + if (options.baseUrl == null && _resolvedUrl != null) { + options = { ...options, baseUrl: _resolvedUrl }; } + const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -25555,9 +25630,14 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { - options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; + const _resolvedUrl = + values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) + ? new URL(values[\\"@id\\"], options.baseUrl) + : undefined; + if (options.baseUrl == null && _resolvedUrl != null) { + options = { ...options, baseUrl: _resolvedUrl }; } + const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -25606,7 +25686,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === \\"undefined\\") continue; _2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject.push(decoded); @@ -25639,7 +25719,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === \\"undefined\\") continue; _2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget.push(decoded); @@ -26003,9 +26083,14 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { - options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; + const _resolvedUrl = + values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) + ? new URL(values[\\"@id\\"], options.baseUrl) + : undefined; + if (options.baseUrl == null && _resolvedUrl != null) { + options = { ...options, baseUrl: _resolvedUrl }; } + const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -26448,9 +26533,14 @@ get endpoints(): (URL)[] { // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { - options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; + const _resolvedUrl = + values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) + ? new URL(values[\\"@id\\"], options.baseUrl) + : undefined; + if (options.baseUrl == null && _resolvedUrl != null) { + options = { ...options, baseUrl: _resolvedUrl }; } + const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -26497,9 +26587,9 @@ get endpoints(): (URL)[] { : \\"\\" ) ) - : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) + : URL.canParse(v[\\"@id\\"]) && _baseUrl ? new URL(v[\\"@id\\"]) - : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl))); + : new URL(v[\\"@id\\"], _baseUrl); if (typeof decoded === \\"undefined\\") continue; _2KM4fetG6FTJ1cphj76rzJ8Dyv7p_serviceEndpoint.push(decoded); } @@ -26801,9 +26891,14 @@ endpoints?: (URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { - options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; + const _resolvedUrl = + values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) + ? new URL(values[\\"@id\\"], options.baseUrl) + : undefined; + if (options.baseUrl == null && _resolvedUrl != null) { + options = { ...options, baseUrl: _resolvedUrl }; } + const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -27619,9 +27714,14 @@ cryptosuite?: \\"eddsa-jcs-2022\\" | null;verificationMethod?: Multikey | URL | // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { - options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; + const _resolvedUrl = + values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) + ? new URL(values[\\"@id\\"], options.baseUrl) + : undefined; + if (options.baseUrl == null && _resolvedUrl != null) { + options = { ...options, baseUrl: _resolvedUrl }; } + const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -27683,7 +27783,7 @@ cryptosuite?: \\"eddsa-jcs-2022\\" | null;verificationMethod?: Multikey | URL | const decoded = await Multikey.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === \\"undefined\\") continue; _2mHVKxqA7zncjveJrDEo3pWpMZqg_verificationMethod.push(decoded); @@ -28588,9 +28688,14 @@ owner?: Application | Group | Organization | Person | Service | URL | null;publi // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { - options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; + const _resolvedUrl = + values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) + ? new URL(values[\\"@id\\"], options.baseUrl) + : undefined; + if (options.baseUrl == null && _resolvedUrl != null) { + options = { ...options, baseUrl: _resolvedUrl }; } + const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -28636,23 +28741,23 @@ owner?: Application | Group | Organization | Person | Service | URL | null;publi typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Application\\") ? await Application.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Group\\") ? await Group.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Organization\\") ? await Organization.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Person\\") ? await Person.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Service\\") ? await Service.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -29470,9 +29575,14 @@ controller?: Application | Group | Organization | Person | Service | URL | null; // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { - options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; + const _resolvedUrl = + values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) + ? new URL(values[\\"@id\\"], options.baseUrl) + : undefined; + if (options.baseUrl == null && _resolvedUrl != null) { + options = { ...options, baseUrl: _resolvedUrl }; } + const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -29518,23 +29628,23 @@ controller?: Application | Group | Organization | Person | Service | URL | null; typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Application\\") ? await Application.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Group\\") ? await Group.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Organization\\") ? await Organization.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Person\\") ? await Person.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Service\\") ? await Service.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -30305,9 +30415,14 @@ action?: string | null;resourceConformsTo?: URL | null;resourceQuantity?: Measur // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { - options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; + const _resolvedUrl = + values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) + ? new URL(values[\\"@id\\"], options.baseUrl) + : undefined; + if (options.baseUrl == null && _resolvedUrl != null) { + options = { ...options, baseUrl: _resolvedUrl }; } + const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -30368,9 +30483,9 @@ action?: string | null;resourceConformsTo?: URL | null;resourceQuantity?: Measur : \\"\\" ) ) - : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) + : URL.canParse(v[\\"@id\\"]) && _baseUrl ? new URL(v[\\"@id\\"]) - : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl))); + : new URL(v[\\"@id\\"], _baseUrl); if (typeof decoded === \\"undefined\\") continue; _BBAeMUUQDwBQn6cvu3P2Csd6b6h_resourceConformsTo.push(decoded); } @@ -30390,7 +30505,7 @@ action?: string | null;resourceConformsTo?: URL | null;resourceQuantity?: Measur const decoded = await Measure.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === \\"undefined\\") continue; _2dLfqTbbRiggEcMQWbHpxkQrtmrc_resourceQuantity.push(decoded); @@ -30411,7 +30526,7 @@ action?: string | null;resourceConformsTo?: URL | null;resourceQuantity?: Measur const decoded = await Measure.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === \\"undefined\\") continue; _YmNSnuih3Zk4VdR5JPVnQYroLAh_availableQuantity.push(decoded); @@ -30432,7 +30547,7 @@ action?: string | null;resourceConformsTo?: URL | null;resourceQuantity?: Measur const decoded = await Measure.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === \\"undefined\\") continue; _3XueAFds2NBrqNpnV8b7aC8hV72S_minimumQuantity.push(decoded); @@ -31177,9 +31292,14 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { - options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; + const _resolvedUrl = + values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) + ? new URL(values[\\"@id\\"], options.baseUrl) + : undefined; + if (options.baseUrl == null && _resolvedUrl != null) { + options = { ...options, baseUrl: _resolvedUrl }; } + const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -31234,7 +31354,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Intent.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === \\"undefined\\") continue; _sS5LvXX8cn4c3x6ux836AwYbTyJ_publishes.push(decoded); @@ -31255,7 +31375,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Intent.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === \\"undefined\\") continue; _Z4ntJgFwR9BaNTbFvkRTGNEwUwy_reciprocal.push(decoded); @@ -31670,9 +31790,14 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { - options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; + const _resolvedUrl = + values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) + ? new URL(values[\\"@id\\"], options.baseUrl) + : undefined; + if (options.baseUrl == null && _resolvedUrl != null) { + options = { ...options, baseUrl: _resolvedUrl }; } + const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -32010,9 +32135,14 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { - options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; + const _resolvedUrl = + values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) + ? new URL(values[\\"@id\\"], options.baseUrl) + : undefined; + if (options.baseUrl == null && _resolvedUrl != null) { + options = { ...options, baseUrl: _resolvedUrl }; } + const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -32345,9 +32475,14 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { - options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; + const _resolvedUrl = + values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) + ? new URL(values[\\"@id\\"], options.baseUrl) + : undefined; + if (options.baseUrl == null && _resolvedUrl != null) { + options = { ...options, baseUrl: _resolvedUrl }; } + const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -37926,9 +38061,14 @@ get preferredUsernames(): ((string | LanguageString))[] { // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { - options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; + const _resolvedUrl = + values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) + ? new URL(values[\\"@id\\"], options.baseUrl) + : undefined; + if (options.baseUrl == null && _resolvedUrl != null) { + options = { ...options, baseUrl: _resolvedUrl }; } + const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -38001,7 +38141,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await CryptographicKey.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === \\"undefined\\") continue; _axq166E2eZADq34V4MYUc8KMZdC_publicKey.push(decoded); @@ -38034,7 +38174,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Multikey.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === \\"undefined\\") continue; _4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.push(decoded); @@ -38087,11 +38227,11 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#OrderedCollection\\") ? await OrderedCollection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#OrderedCollectionPage\\") ? await OrderedCollectionPage.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -38128,11 +38268,11 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#OrderedCollection\\") ? await OrderedCollection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#OrderedCollectionPage\\") ? await OrderedCollectionPage.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -38167,7 +38307,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === \\"undefined\\") continue; _3yAv8jymNfNuJUDuBzJ1NQhdbAee_following.push(decoded); @@ -38200,7 +38340,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === \\"undefined\\") continue; _BBCTgfphhsFzpVfKTykGSpBNwoA_followers.push(decoded); @@ -38233,7 +38373,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === \\"undefined\\") continue; _3bgkPwJanyTCoVFM9ovRcus8tKkU_liked.push(decoded); @@ -38266,7 +38406,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === \\"undefined\\") continue; _4N1vBJzXDf8NbBumeECQMFvKetja_featured.push(decoded); @@ -38299,7 +38439,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === \\"undefined\\") continue; _2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags.push(decoded); @@ -38332,7 +38472,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === \\"undefined\\") continue; _3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.push(decoded); @@ -38353,7 +38493,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Endpoints.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === \\"undefined\\") continue; _sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints.push(decoded); @@ -38460,23 +38600,23 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Application\\") ? await Application.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Group\\") ? await Group.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Organization\\") ? await Organization.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Person\\") ? await Person.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Service\\") ? await Service.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -38513,23 +38653,23 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Application\\") ? await Application.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Group\\") ? await Group.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Organization\\") ? await Organization.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Person\\") ? await Person.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Service\\") ? await Service.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -38564,7 +38704,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await DidService.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === \\"undefined\\") continue; _4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.push(decoded); @@ -39389,9 +39529,14 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { - options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; + const _resolvedUrl = + values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) + ? new URL(values[\\"@id\\"], options.baseUrl) + : undefined; + if (options.baseUrl == null && _resolvedUrl != null) { + options = { ...options, baseUrl: _resolvedUrl }; } + const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -39736,9 +39881,14 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { - options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; + const _resolvedUrl = + values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) + ? new URL(values[\\"@id\\"], options.baseUrl) + : undefined; + if (options.baseUrl == null && _resolvedUrl != null) { + options = { ...options, baseUrl: _resolvedUrl }; } + const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -40737,9 +40887,14 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { - options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; + const _resolvedUrl = + values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) + ? new URL(values[\\"@id\\"], options.baseUrl) + : undefined; + if (options.baseUrl == null && _resolvedUrl != null) { + options = { ...options, baseUrl: _resolvedUrl }; } + const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -40788,7 +40943,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === \\"undefined\\") continue; _3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote.push(decoded); @@ -40847,7 +41002,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await QuoteAuthorization.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === \\"undefined\\") continue; _ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization.push(decoded); @@ -41378,9 +41533,14 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { - options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; + const _resolvedUrl = + values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) + ? new URL(values[\\"@id\\"], options.baseUrl) + : undefined; + if (options.baseUrl == null && _resolvedUrl != null) { + options = { ...options, baseUrl: _resolvedUrl }; } + const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -41807,9 +41967,14 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { - options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; + const _resolvedUrl = + values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) + ? new URL(values[\\"@id\\"], options.baseUrl) + : undefined; + if (options.baseUrl == null && _resolvedUrl != null) { + options = { ...options, baseUrl: _resolvedUrl }; } + const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -42141,9 +42306,14 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { - options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; + const _resolvedUrl = + values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) + ? new URL(values[\\"@id\\"], options.baseUrl) + : undefined; + if (options.baseUrl == null && _resolvedUrl != null) { + options = { ...options, baseUrl: _resolvedUrl }; } + const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -42481,9 +42651,14 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { - options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; + const _resolvedUrl = + values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) + ? new URL(values[\\"@id\\"], options.baseUrl) + : undefined; + if (options.baseUrl == null && _resolvedUrl != null) { + options = { ...options, baseUrl: _resolvedUrl }; } + const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -46328,9 +46503,14 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { - options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; + const _resolvedUrl = + values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) + ? new URL(values[\\"@id\\"], options.baseUrl) + : undefined; + if (options.baseUrl == null && _resolvedUrl != null) { + options = { ...options, baseUrl: _resolvedUrl }; } + const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -46409,7 +46589,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await CollectionPage.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === \\"undefined\\") continue; _3UyUdxnyn6cDn53QKrh4MBiearma_current.push(decoded); @@ -46442,7 +46622,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await CollectionPage.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === \\"undefined\\") continue; _J52RqweMe6hhv7RnLJMC8BExTE5_first.push(decoded); @@ -46475,7 +46655,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await CollectionPage.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === \\"undefined\\") continue; _gyJJnyEFnuNVi1HFZKfAn3Hfn26_last.push(decoded); @@ -46511,12 +46691,12 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu && Array.isArray(v[\\"@type\\"])&& [\\"https://www.w3.org/ns/activitystreams#Object\\",\\"http://joinmastodon.org/ns#Emoji\\",\\"http://litepub.social/ns#ChatMessage\\",\\"https://gotosocial.org/ns#AnnounceAuthorization\\",\\"https://gotosocial.org/ns#LikeApproval\\",\\"https://gotosocial.org/ns#ReplyAuthorization\\",\\"https://w3id.org/fep/044f#QuoteAuthorization\\",\\"https://w3id.org/valueflows/ont/vf#Proposal\\",\\"https://www.w3.org/ns/activitystreams#Activity\\",\\"http://litepub.social/ns#EmojiReact\\",\\"https://gotosocial.org/ns#AnnounceRequest\\",\\"https://gotosocial.org/ns#LikeRequest\\",\\"https://gotosocial.org/ns#ReplyRequest\\",\\"https://w3id.org/fep/044f#QuoteRequest\\",\\"https://www.w3.org/ns/activitystreams#Accept\\",\\"https://www.w3.org/ns/activitystreams#TentativeAccept\\",\\"https://www.w3.org/ns/activitystreams#Add\\",\\"https://www.w3.org/ns/activitystreams#Announce\\",\\"https://www.w3.org/ns/activitystreams#Create\\",\\"https://www.w3.org/ns/activitystreams#Delete\\",\\"https://www.w3.org/ns/activitystreams#Dislike\\",\\"https://www.w3.org/ns/activitystreams#Flag\\",\\"https://www.w3.org/ns/activitystreams#Follow\\",\\"https://www.w3.org/ns/activitystreams#Ignore\\",\\"https://www.w3.org/ns/activitystreams#Block\\",\\"https://www.w3.org/ns/activitystreams#IntransitiveActivity\\",\\"https://www.w3.org/ns/activitystreams#Arrive\\",\\"https://www.w3.org/ns/activitystreams#Question\\",\\"https://www.w3.org/ns/activitystreams#Travel\\",\\"https://www.w3.org/ns/activitystreams#Join\\",\\"https://www.w3.org/ns/activitystreams#Leave\\",\\"https://www.w3.org/ns/activitystreams#Like\\",\\"https://www.w3.org/ns/activitystreams#Listen\\",\\"https://www.w3.org/ns/activitystreams#Move\\",\\"https://www.w3.org/ns/activitystreams#Offer\\",\\"https://www.w3.org/ns/activitystreams#Invite\\",\\"https://www.w3.org/ns/activitystreams#Read\\",\\"https://www.w3.org/ns/activitystreams#Reject\\",\\"https://www.w3.org/ns/activitystreams#TentativeReject\\",\\"https://www.w3.org/ns/activitystreams#Remove\\",\\"https://www.w3.org/ns/activitystreams#Undo\\",\\"https://www.w3.org/ns/activitystreams#Update\\",\\"https://www.w3.org/ns/activitystreams#View\\",\\"https://www.w3.org/ns/activitystreams#Application\\",\\"https://www.w3.org/ns/activitystreams#Article\\",\\"https://www.w3.org/ns/activitystreams#Collection\\",\\"https://www.w3.org/ns/activitystreams#CollectionPage\\",\\"https://www.w3.org/ns/activitystreams#OrderedCollectionPage\\",\\"https://www.w3.org/ns/activitystreams#OrderedCollection\\",\\"https://www.w3.org/ns/activitystreams#Document\\",\\"https://www.w3.org/ns/activitystreams#Audio\\",\\"https://www.w3.org/ns/activitystreams#Image\\",\\"https://www.w3.org/ns/activitystreams#Page\\",\\"https://www.w3.org/ns/activitystreams#Video\\",\\"https://www.w3.org/ns/activitystreams#Event\\",\\"https://www.w3.org/ns/activitystreams#Group\\",\\"https://www.w3.org/ns/activitystreams#Note\\",\\"https://www.w3.org/ns/activitystreams#Organization\\",\\"https://www.w3.org/ns/activitystreams#Person\\",\\"https://www.w3.org/ns/activitystreams#Place\\",\\"https://www.w3.org/ns/activitystreams#Profile\\",\\"https://www.w3.org/ns/activitystreams#Relationship\\",\\"https://www.w3.org/ns/activitystreams#Service\\",\\"https://www.w3.org/ns/activitystreams#Tombstone\\"].some( t => v[\\"@type\\"].includes(t)) ? await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& [\\"https://www.w3.org/ns/activitystreams#Link\\",\\"https://www.w3.org/ns/activitystreams#Hashtag\\",\\"https://www.w3.org/ns/activitystreams#Mention\\"].some( t => v[\\"@type\\"].includes(t)) ? await Link.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -46551,7 +46731,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === \\"undefined\\") continue; _4TB9Qd9ddtcZEpMfzbHhzafE6jaJ_likesOf.push(decoded); @@ -46584,7 +46764,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === \\"undefined\\") continue; _3manzgeKiPsugpztKGiaUUwJ3ito_sharesOf.push(decoded); @@ -46617,7 +46797,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === \\"undefined\\") continue; _3T3oGm3twpcQUcrnMisXQtmDZ32X_repliesOf.push(decoded); @@ -46650,7 +46830,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === \\"undefined\\") continue; _2bvRkAFZjMfVD8jiUWZJr5YokSeN_inboxOf.push(decoded); @@ -46683,7 +46863,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === \\"undefined\\") continue; _4AHzVZDxHjK6uEWa9UiKHGK34yYm_outboxOf.push(decoded); @@ -46716,7 +46896,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === \\"undefined\\") continue; _41aoZ5M6yRUHy3Zx8q6iuZQxtopb_followersOf.push(decoded); @@ -46749,7 +46929,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === \\"undefined\\") continue; _2nXT2Ah42UjEEQF5oJQ39CbKB1xj_followingOf.push(decoded); @@ -46782,7 +46962,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === \\"undefined\\") continue; _2bsySzmT3qEZcrnoe3tZ5xBjXSju_likedOf.push(decoded); @@ -48215,9 +48395,14 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { - options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; + const _resolvedUrl = + values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) + ? new URL(values[\\"@id\\"], options.baseUrl) + : undefined; + if (options.baseUrl == null && _resolvedUrl != null) { + options = { ...options, baseUrl: _resolvedUrl }; } + const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -48270,7 +48455,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === \\"undefined\\") continue; _2kWgBhQKjEauxx8C6qF3ZQamK4Le_partOf.push(decoded); @@ -48303,7 +48488,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await CollectionPage.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === \\"undefined\\") continue; _3BT4kQLcXhHx7TAWaNDKh8nFn9eY_next.push(decoded); @@ -48336,7 +48521,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await CollectionPage.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === \\"undefined\\") continue; _3b8yG8tDNzQFFEnWhCc13G8eHooA_prev.push(decoded); @@ -48710,9 +48895,14 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { - options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; + const _resolvedUrl = + values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) + ? new URL(values[\\"@id\\"], options.baseUrl) + : undefined; + if (options.baseUrl == null && _resolvedUrl != null) { + options = { ...options, baseUrl: _resolvedUrl }; } + const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -49044,9 +49234,14 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { - options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; + const _resolvedUrl = + values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) + ? new URL(values[\\"@id\\"], options.baseUrl) + : undefined; + if (options.baseUrl == null && _resolvedUrl != null) { + options = { ...options, baseUrl: _resolvedUrl }; } + const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -49376,9 +49571,14 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { - options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; + const _resolvedUrl = + values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) + ? new URL(values[\\"@id\\"], options.baseUrl) + : undefined; + if (options.baseUrl == null && _resolvedUrl != null) { + options = { ...options, baseUrl: _resolvedUrl }; } + const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -50170,9 +50370,14 @@ proxyUrl?: URL | null;oauthAuthorizationEndpoint?: URL | null;oauthTokenEndpoint // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { - options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; + const _resolvedUrl = + values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) + ? new URL(values[\\"@id\\"], options.baseUrl) + : undefined; + if (options.baseUrl == null && _resolvedUrl != null) { + options = { ...options, baseUrl: _resolvedUrl }; } + const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -50215,9 +50420,9 @@ proxyUrl?: URL | null;oauthAuthorizationEndpoint?: URL | null;oauthTokenEndpoint : \\"\\" ) ) - : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) + : URL.canParse(v[\\"@id\\"]) && _baseUrl ? new URL(v[\\"@id\\"]) - : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl))); + : new URL(v[\\"@id\\"], _baseUrl); if (typeof decoded === \\"undefined\\") continue; _2JCYDbSxEHCCLdBYed33cCETfGyR_proxyUrl.push(decoded); } @@ -50248,9 +50453,9 @@ proxyUrl?: URL | null;oauthAuthorizationEndpoint?: URL | null;oauthTokenEndpoint : \\"\\" ) ) - : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) + : URL.canParse(v[\\"@id\\"]) && _baseUrl ? new URL(v[\\"@id\\"]) - : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl))); + : new URL(v[\\"@id\\"], _baseUrl); if (typeof decoded === \\"undefined\\") continue; _25S6UmgzDead8hxL5sQFezZTAusd_oauthAuthorizationEndpoint.push(decoded); } @@ -50281,9 +50486,9 @@ proxyUrl?: URL | null;oauthAuthorizationEndpoint?: URL | null;oauthTokenEndpoint : \\"\\" ) ) - : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) + : URL.canParse(v[\\"@id\\"]) && _baseUrl ? new URL(v[\\"@id\\"]) - : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl))); + : new URL(v[\\"@id\\"], _baseUrl); if (typeof decoded === \\"undefined\\") continue; _iAMxqrSba7yBCRB1FZ5kEVdKEZ3_oauthTokenEndpoint.push(decoded); } @@ -50314,9 +50519,9 @@ proxyUrl?: URL | null;oauthAuthorizationEndpoint?: URL | null;oauthTokenEndpoint : \\"\\" ) ) - : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) + : URL.canParse(v[\\"@id\\"]) && _baseUrl ? new URL(v[\\"@id\\"]) - : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl))); + : new URL(v[\\"@id\\"], _baseUrl); if (typeof decoded === \\"undefined\\") continue; _8Bx9qN8oU7Bpt2xi6khaxWp1gMr_provideClientKey.push(decoded); } @@ -50347,9 +50552,9 @@ proxyUrl?: URL | null;oauthAuthorizationEndpoint?: URL | null;oauthTokenEndpoint : \\"\\" ) ) - : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) + : URL.canParse(v[\\"@id\\"]) && _baseUrl ? new URL(v[\\"@id\\"]) - : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl))); + : new URL(v[\\"@id\\"], _baseUrl); if (typeof decoded === \\"undefined\\") continue; _3dU7PMVQZJpsCpo2F4RQXxBXdPmS_signClientKey.push(decoded); } @@ -50380,9 +50585,9 @@ proxyUrl?: URL | null;oauthAuthorizationEndpoint?: URL | null;oauthTokenEndpoint : \\"\\" ) ) - : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) + : URL.canParse(v[\\"@id\\"]) && _baseUrl ? new URL(v[\\"@id\\"]) - : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl))); + : new URL(v[\\"@id\\"], _baseUrl); if (typeof decoded === \\"undefined\\") continue; _3JprUSDLVqqX4dwHRi37qGZZCRCc_sharedInbox.push(decoded); } @@ -50835,9 +51040,14 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { - options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; + const _resolvedUrl = + values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) + ? new URL(values[\\"@id\\"], options.baseUrl) + : undefined; + if (options.baseUrl == null && _resolvedUrl != null) { + options = { ...options, baseUrl: _resolvedUrl }; } + const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -51170,9 +51380,14 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { - options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; + const _resolvedUrl = + values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) + ? new URL(values[\\"@id\\"], options.baseUrl) + : undefined; + if (options.baseUrl == null && _resolvedUrl != null) { + options = { ...options, baseUrl: _resolvedUrl }; } + const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -51506,9 +51721,14 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { - options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; + const _resolvedUrl = + values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) + ? new URL(values[\\"@id\\"], options.baseUrl) + : undefined; + if (options.baseUrl == null && _resolvedUrl != null) { + options = { ...options, baseUrl: _resolvedUrl }; } + const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -57087,9 +57307,14 @@ get preferredUsernames(): ((string | LanguageString))[] { // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { - options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; + const _resolvedUrl = + values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) + ? new URL(values[\\"@id\\"], options.baseUrl) + : undefined; + if (options.baseUrl == null && _resolvedUrl != null) { + options = { ...options, baseUrl: _resolvedUrl }; } + const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -57162,7 +57387,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await CryptographicKey.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === \\"undefined\\") continue; _axq166E2eZADq34V4MYUc8KMZdC_publicKey.push(decoded); @@ -57195,7 +57420,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Multikey.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === \\"undefined\\") continue; _4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.push(decoded); @@ -57248,11 +57473,11 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#OrderedCollection\\") ? await OrderedCollection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#OrderedCollectionPage\\") ? await OrderedCollectionPage.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -57289,11 +57514,11 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#OrderedCollection\\") ? await OrderedCollection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#OrderedCollectionPage\\") ? await OrderedCollectionPage.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -57328,7 +57553,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === \\"undefined\\") continue; _3yAv8jymNfNuJUDuBzJ1NQhdbAee_following.push(decoded); @@ -57361,7 +57586,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === \\"undefined\\") continue; _BBCTgfphhsFzpVfKTykGSpBNwoA_followers.push(decoded); @@ -57394,7 +57619,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === \\"undefined\\") continue; _3bgkPwJanyTCoVFM9ovRcus8tKkU_liked.push(decoded); @@ -57427,7 +57652,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === \\"undefined\\") continue; _4N1vBJzXDf8NbBumeECQMFvKetja_featured.push(decoded); @@ -57460,7 +57685,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === \\"undefined\\") continue; _2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags.push(decoded); @@ -57493,7 +57718,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === \\"undefined\\") continue; _3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.push(decoded); @@ -57514,7 +57739,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Endpoints.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === \\"undefined\\") continue; _sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints.push(decoded); @@ -57621,23 +57846,23 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Application\\") ? await Application.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Group\\") ? await Group.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Organization\\") ? await Organization.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Person\\") ? await Person.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Service\\") ? await Service.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -57674,23 +57899,23 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Application\\") ? await Application.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Group\\") ? await Group.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Organization\\") ? await Organization.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Person\\") ? await Person.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Service\\") ? await Service.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -57725,7 +57950,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await DidService.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === \\"undefined\\") continue; _4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.push(decoded); @@ -59520,9 +59745,14 @@ get names(): ((string | LanguageString))[] { // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { - options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; + const _resolvedUrl = + values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) + ? new URL(values[\\"@id\\"], options.baseUrl) + : undefined; + if (options.baseUrl == null && _resolvedUrl != null) { + options = { ...options, baseUrl: _resolvedUrl }; } + const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -59573,9 +59803,9 @@ get names(): ((string | LanguageString))[] { : \\"\\" ) ) - : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) + : URL.canParse(v[\\"@id\\"]) && _baseUrl ? new URL(v[\\"@id\\"]) - : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl))); + : new URL(v[\\"@id\\"], _baseUrl); if (typeof decoded === \\"undefined\\") continue; _pVjLsybKQdmkjuU7MHjiVmNnuj7_href.push(decoded); } @@ -59724,12 +59954,12 @@ get names(): ((string | LanguageString))[] { && Array.isArray(v[\\"@type\\"])&& [\\"https://www.w3.org/ns/activitystreams#Link\\",\\"https://www.w3.org/ns/activitystreams#Hashtag\\",\\"https://www.w3.org/ns/activitystreams#Mention\\"].some( t => v[\\"@type\\"].includes(t)) ? await Link.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& [\\"https://www.w3.org/ns/activitystreams#Object\\",\\"http://joinmastodon.org/ns#Emoji\\",\\"http://litepub.social/ns#ChatMessage\\",\\"https://gotosocial.org/ns#AnnounceAuthorization\\",\\"https://gotosocial.org/ns#LikeApproval\\",\\"https://gotosocial.org/ns#ReplyAuthorization\\",\\"https://w3id.org/fep/044f#QuoteAuthorization\\",\\"https://w3id.org/valueflows/ont/vf#Proposal\\",\\"https://www.w3.org/ns/activitystreams#Activity\\",\\"http://litepub.social/ns#EmojiReact\\",\\"https://gotosocial.org/ns#AnnounceRequest\\",\\"https://gotosocial.org/ns#LikeRequest\\",\\"https://gotosocial.org/ns#ReplyRequest\\",\\"https://w3id.org/fep/044f#QuoteRequest\\",\\"https://www.w3.org/ns/activitystreams#Accept\\",\\"https://www.w3.org/ns/activitystreams#TentativeAccept\\",\\"https://www.w3.org/ns/activitystreams#Add\\",\\"https://www.w3.org/ns/activitystreams#Announce\\",\\"https://www.w3.org/ns/activitystreams#Create\\",\\"https://www.w3.org/ns/activitystreams#Delete\\",\\"https://www.w3.org/ns/activitystreams#Dislike\\",\\"https://www.w3.org/ns/activitystreams#Flag\\",\\"https://www.w3.org/ns/activitystreams#Follow\\",\\"https://www.w3.org/ns/activitystreams#Ignore\\",\\"https://www.w3.org/ns/activitystreams#Block\\",\\"https://www.w3.org/ns/activitystreams#IntransitiveActivity\\",\\"https://www.w3.org/ns/activitystreams#Arrive\\",\\"https://www.w3.org/ns/activitystreams#Question\\",\\"https://www.w3.org/ns/activitystreams#Travel\\",\\"https://www.w3.org/ns/activitystreams#Join\\",\\"https://www.w3.org/ns/activitystreams#Leave\\",\\"https://www.w3.org/ns/activitystreams#Like\\",\\"https://www.w3.org/ns/activitystreams#Listen\\",\\"https://www.w3.org/ns/activitystreams#Move\\",\\"https://www.w3.org/ns/activitystreams#Offer\\",\\"https://www.w3.org/ns/activitystreams#Invite\\",\\"https://www.w3.org/ns/activitystreams#Read\\",\\"https://www.w3.org/ns/activitystreams#Reject\\",\\"https://www.w3.org/ns/activitystreams#TentativeReject\\",\\"https://www.w3.org/ns/activitystreams#Remove\\",\\"https://www.w3.org/ns/activitystreams#Undo\\",\\"https://www.w3.org/ns/activitystreams#Update\\",\\"https://www.w3.org/ns/activitystreams#View\\",\\"https://www.w3.org/ns/activitystreams#Application\\",\\"https://www.w3.org/ns/activitystreams#Article\\",\\"https://www.w3.org/ns/activitystreams#Collection\\",\\"https://www.w3.org/ns/activitystreams#CollectionPage\\",\\"https://www.w3.org/ns/activitystreams#OrderedCollectionPage\\",\\"https://www.w3.org/ns/activitystreams#OrderedCollection\\",\\"https://www.w3.org/ns/activitystreams#Document\\",\\"https://www.w3.org/ns/activitystreams#Audio\\",\\"https://www.w3.org/ns/activitystreams#Image\\",\\"https://www.w3.org/ns/activitystreams#Page\\",\\"https://www.w3.org/ns/activitystreams#Video\\",\\"https://www.w3.org/ns/activitystreams#Event\\",\\"https://www.w3.org/ns/activitystreams#Group\\",\\"https://www.w3.org/ns/activitystreams#Note\\",\\"https://www.w3.org/ns/activitystreams#Organization\\",\\"https://www.w3.org/ns/activitystreams#Person\\",\\"https://www.w3.org/ns/activitystreams#Place\\",\\"https://www.w3.org/ns/activitystreams#Profile\\",\\"https://www.w3.org/ns/activitystreams#Relationship\\",\\"https://www.w3.org/ns/activitystreams#Service\\",\\"https://www.w3.org/ns/activitystreams#Tombstone\\"].some( t => v[\\"@type\\"].includes(t)) ? await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -60203,9 +60433,14 @@ names?: ((string | LanguageString))[];language?: Intl.Locale | null;height?: num // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { - options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; + const _resolvedUrl = + values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) + ? new URL(values[\\"@id\\"], options.baseUrl) + : undefined; + if (options.baseUrl == null && _resolvedUrl != null) { + options = { ...options, baseUrl: _resolvedUrl }; } + const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -60540,9 +60775,14 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { - options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; + const _resolvedUrl = + values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) + ? new URL(values[\\"@id\\"], options.baseUrl) + : undefined; + if (options.baseUrl == null && _resolvedUrl != null) { + options = { ...options, baseUrl: _resolvedUrl }; } + const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -60875,9 +61115,14 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { - options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; + const _resolvedUrl = + values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) + ? new URL(values[\\"@id\\"], options.baseUrl) + : undefined; + if (options.baseUrl == null && _resolvedUrl != null) { + options = { ...options, baseUrl: _resolvedUrl }; } + const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -61213,9 +61458,14 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { - options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; + const _resolvedUrl = + values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) + ? new URL(values[\\"@id\\"], options.baseUrl) + : undefined; + if (options.baseUrl == null && _resolvedUrl != null) { + options = { ...options, baseUrl: _resolvedUrl }; } + const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -61547,9 +61797,14 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { - options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; + const _resolvedUrl = + values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) + ? new URL(values[\\"@id\\"], options.baseUrl) + : undefined; + if (options.baseUrl == null && _resolvedUrl != null) { + options = { ...options, baseUrl: _resolvedUrl }; } + const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -61881,9 +62136,14 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { - options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; + const _resolvedUrl = + values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) + ? new URL(values[\\"@id\\"], options.baseUrl) + : undefined; + if (options.baseUrl == null && _resolvedUrl != null) { + options = { ...options, baseUrl: _resolvedUrl }; } + const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -62215,9 +62475,14 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { - options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; + const _resolvedUrl = + values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) + ? new URL(values[\\"@id\\"], options.baseUrl) + : undefined; + if (options.baseUrl == null && _resolvedUrl != null) { + options = { ...options, baseUrl: _resolvedUrl }; } + const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -62547,9 +62812,14 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { - options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; + const _resolvedUrl = + values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) + ? new URL(values[\\"@id\\"], options.baseUrl) + : undefined; + if (options.baseUrl == null && _resolvedUrl != null) { + options = { ...options, baseUrl: _resolvedUrl }; } + const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -62845,9 +63115,14 @@ names?: ((string | LanguageString))[];language?: Intl.Locale | null;height?: num // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { - options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; + const _resolvedUrl = + values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) + ? new URL(values[\\"@id\\"], options.baseUrl) + : undefined; + if (options.baseUrl == null && _resolvedUrl != null) { + options = { ...options, baseUrl: _resolvedUrl }; } + const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -63180,9 +63455,14 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { - options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; + const _resolvedUrl = + values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) + ? new URL(values[\\"@id\\"], options.baseUrl) + : undefined; + if (options.baseUrl == null && _resolvedUrl != null) { + options = { ...options, baseUrl: _resolvedUrl }; } + const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -64183,9 +64463,14 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { - options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; + const _resolvedUrl = + values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) + ? new URL(values[\\"@id\\"], options.baseUrl) + : undefined; + if (options.baseUrl == null && _resolvedUrl != null) { + options = { ...options, baseUrl: _resolvedUrl }; } + const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -64234,7 +64519,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === \\"undefined\\") continue; _3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote.push(decoded); @@ -64293,7 +64578,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await QuoteAuthorization.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === \\"undefined\\") continue; _ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization.push(decoded); @@ -64983,9 +65268,14 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { - options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; + const _resolvedUrl = + values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) + ? new URL(values[\\"@id\\"], options.baseUrl) + : undefined; + if (options.baseUrl == null && _resolvedUrl != null) { + options = { ...options, baseUrl: _resolvedUrl }; } + const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -65037,12 +65327,12 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu && Array.isArray(v[\\"@type\\"])&& [\\"https://www.w3.org/ns/activitystreams#Object\\",\\"http://joinmastodon.org/ns#Emoji\\",\\"http://litepub.social/ns#ChatMessage\\",\\"https://gotosocial.org/ns#AnnounceAuthorization\\",\\"https://gotosocial.org/ns#LikeApproval\\",\\"https://gotosocial.org/ns#ReplyAuthorization\\",\\"https://w3id.org/fep/044f#QuoteAuthorization\\",\\"https://w3id.org/valueflows/ont/vf#Proposal\\",\\"https://www.w3.org/ns/activitystreams#Activity\\",\\"http://litepub.social/ns#EmojiReact\\",\\"https://gotosocial.org/ns#AnnounceRequest\\",\\"https://gotosocial.org/ns#LikeRequest\\",\\"https://gotosocial.org/ns#ReplyRequest\\",\\"https://w3id.org/fep/044f#QuoteRequest\\",\\"https://www.w3.org/ns/activitystreams#Accept\\",\\"https://www.w3.org/ns/activitystreams#TentativeAccept\\",\\"https://www.w3.org/ns/activitystreams#Add\\",\\"https://www.w3.org/ns/activitystreams#Announce\\",\\"https://www.w3.org/ns/activitystreams#Create\\",\\"https://www.w3.org/ns/activitystreams#Delete\\",\\"https://www.w3.org/ns/activitystreams#Dislike\\",\\"https://www.w3.org/ns/activitystreams#Flag\\",\\"https://www.w3.org/ns/activitystreams#Follow\\",\\"https://www.w3.org/ns/activitystreams#Ignore\\",\\"https://www.w3.org/ns/activitystreams#Block\\",\\"https://www.w3.org/ns/activitystreams#IntransitiveActivity\\",\\"https://www.w3.org/ns/activitystreams#Arrive\\",\\"https://www.w3.org/ns/activitystreams#Question\\",\\"https://www.w3.org/ns/activitystreams#Travel\\",\\"https://www.w3.org/ns/activitystreams#Join\\",\\"https://www.w3.org/ns/activitystreams#Leave\\",\\"https://www.w3.org/ns/activitystreams#Like\\",\\"https://www.w3.org/ns/activitystreams#Listen\\",\\"https://www.w3.org/ns/activitystreams#Move\\",\\"https://www.w3.org/ns/activitystreams#Offer\\",\\"https://www.w3.org/ns/activitystreams#Invite\\",\\"https://www.w3.org/ns/activitystreams#Read\\",\\"https://www.w3.org/ns/activitystreams#Reject\\",\\"https://www.w3.org/ns/activitystreams#TentativeReject\\",\\"https://www.w3.org/ns/activitystreams#Remove\\",\\"https://www.w3.org/ns/activitystreams#Undo\\",\\"https://www.w3.org/ns/activitystreams#Update\\",\\"https://www.w3.org/ns/activitystreams#View\\",\\"https://www.w3.org/ns/activitystreams#Application\\",\\"https://www.w3.org/ns/activitystreams#Article\\",\\"https://www.w3.org/ns/activitystreams#Collection\\",\\"https://www.w3.org/ns/activitystreams#CollectionPage\\",\\"https://www.w3.org/ns/activitystreams#OrderedCollectionPage\\",\\"https://www.w3.org/ns/activitystreams#OrderedCollection\\",\\"https://www.w3.org/ns/activitystreams#Document\\",\\"https://www.w3.org/ns/activitystreams#Audio\\",\\"https://www.w3.org/ns/activitystreams#Image\\",\\"https://www.w3.org/ns/activitystreams#Page\\",\\"https://www.w3.org/ns/activitystreams#Video\\",\\"https://www.w3.org/ns/activitystreams#Event\\",\\"https://www.w3.org/ns/activitystreams#Group\\",\\"https://www.w3.org/ns/activitystreams#Note\\",\\"https://www.w3.org/ns/activitystreams#Organization\\",\\"https://www.w3.org/ns/activitystreams#Person\\",\\"https://www.w3.org/ns/activitystreams#Place\\",\\"https://www.w3.org/ns/activitystreams#Profile\\",\\"https://www.w3.org/ns/activitystreams#Relationship\\",\\"https://www.w3.org/ns/activitystreams#Service\\",\\"https://www.w3.org/ns/activitystreams#Tombstone\\"].some( t => v[\\"@type\\"].includes(t)) ? await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& [\\"https://www.w3.org/ns/activitystreams#Link\\",\\"https://www.w3.org/ns/activitystreams#Hashtag\\",\\"https://www.w3.org/ns/activitystreams#Mention\\"].some( t => v[\\"@type\\"].includes(t)) ? await Link.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -65773,9 +66063,14 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { - options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; + const _resolvedUrl = + values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) + ? new URL(values[\\"@id\\"], options.baseUrl) + : undefined; + if (options.baseUrl == null && _resolvedUrl != null) { + options = { ...options, baseUrl: _resolvedUrl }; } + const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -65827,12 +66122,12 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu && Array.isArray(v[\\"@type\\"])&& [\\"https://www.w3.org/ns/activitystreams#Object\\",\\"http://joinmastodon.org/ns#Emoji\\",\\"http://litepub.social/ns#ChatMessage\\",\\"https://gotosocial.org/ns#AnnounceAuthorization\\",\\"https://gotosocial.org/ns#LikeApproval\\",\\"https://gotosocial.org/ns#ReplyAuthorization\\",\\"https://w3id.org/fep/044f#QuoteAuthorization\\",\\"https://w3id.org/valueflows/ont/vf#Proposal\\",\\"https://www.w3.org/ns/activitystreams#Activity\\",\\"http://litepub.social/ns#EmojiReact\\",\\"https://gotosocial.org/ns#AnnounceRequest\\",\\"https://gotosocial.org/ns#LikeRequest\\",\\"https://gotosocial.org/ns#ReplyRequest\\",\\"https://w3id.org/fep/044f#QuoteRequest\\",\\"https://www.w3.org/ns/activitystreams#Accept\\",\\"https://www.w3.org/ns/activitystreams#TentativeAccept\\",\\"https://www.w3.org/ns/activitystreams#Add\\",\\"https://www.w3.org/ns/activitystreams#Announce\\",\\"https://www.w3.org/ns/activitystreams#Create\\",\\"https://www.w3.org/ns/activitystreams#Delete\\",\\"https://www.w3.org/ns/activitystreams#Dislike\\",\\"https://www.w3.org/ns/activitystreams#Flag\\",\\"https://www.w3.org/ns/activitystreams#Follow\\",\\"https://www.w3.org/ns/activitystreams#Ignore\\",\\"https://www.w3.org/ns/activitystreams#Block\\",\\"https://www.w3.org/ns/activitystreams#IntransitiveActivity\\",\\"https://www.w3.org/ns/activitystreams#Arrive\\",\\"https://www.w3.org/ns/activitystreams#Question\\",\\"https://www.w3.org/ns/activitystreams#Travel\\",\\"https://www.w3.org/ns/activitystreams#Join\\",\\"https://www.w3.org/ns/activitystreams#Leave\\",\\"https://www.w3.org/ns/activitystreams#Like\\",\\"https://www.w3.org/ns/activitystreams#Listen\\",\\"https://www.w3.org/ns/activitystreams#Move\\",\\"https://www.w3.org/ns/activitystreams#Offer\\",\\"https://www.w3.org/ns/activitystreams#Invite\\",\\"https://www.w3.org/ns/activitystreams#Read\\",\\"https://www.w3.org/ns/activitystreams#Reject\\",\\"https://www.w3.org/ns/activitystreams#TentativeReject\\",\\"https://www.w3.org/ns/activitystreams#Remove\\",\\"https://www.w3.org/ns/activitystreams#Undo\\",\\"https://www.w3.org/ns/activitystreams#Update\\",\\"https://www.w3.org/ns/activitystreams#View\\",\\"https://www.w3.org/ns/activitystreams#Application\\",\\"https://www.w3.org/ns/activitystreams#Article\\",\\"https://www.w3.org/ns/activitystreams#Collection\\",\\"https://www.w3.org/ns/activitystreams#CollectionPage\\",\\"https://www.w3.org/ns/activitystreams#OrderedCollectionPage\\",\\"https://www.w3.org/ns/activitystreams#OrderedCollection\\",\\"https://www.w3.org/ns/activitystreams#Document\\",\\"https://www.w3.org/ns/activitystreams#Audio\\",\\"https://www.w3.org/ns/activitystreams#Image\\",\\"https://www.w3.org/ns/activitystreams#Page\\",\\"https://www.w3.org/ns/activitystreams#Video\\",\\"https://www.w3.org/ns/activitystreams#Event\\",\\"https://www.w3.org/ns/activitystreams#Group\\",\\"https://www.w3.org/ns/activitystreams#Note\\",\\"https://www.w3.org/ns/activitystreams#Organization\\",\\"https://www.w3.org/ns/activitystreams#Person\\",\\"https://www.w3.org/ns/activitystreams#Place\\",\\"https://www.w3.org/ns/activitystreams#Profile\\",\\"https://www.w3.org/ns/activitystreams#Relationship\\",\\"https://www.w3.org/ns/activitystreams#Service\\",\\"https://www.w3.org/ns/activitystreams#Tombstone\\"].some( t => v[\\"@type\\"].includes(t)) ? await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& [\\"https://www.w3.org/ns/activitystreams#Link\\",\\"https://www.w3.org/ns/activitystreams#Hashtag\\",\\"https://www.w3.org/ns/activitystreams#Mention\\"].some( t => v[\\"@type\\"].includes(t)) ? await Link.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -71457,9 +71752,14 @@ get preferredUsernames(): ((string | LanguageString))[] { // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { - options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; + const _resolvedUrl = + values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) + ? new URL(values[\\"@id\\"], options.baseUrl) + : undefined; + if (options.baseUrl == null && _resolvedUrl != null) { + options = { ...options, baseUrl: _resolvedUrl }; } + const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -71532,7 +71832,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await CryptographicKey.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === \\"undefined\\") continue; _axq166E2eZADq34V4MYUc8KMZdC_publicKey.push(decoded); @@ -71565,7 +71865,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Multikey.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === \\"undefined\\") continue; _4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.push(decoded); @@ -71618,11 +71918,11 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#OrderedCollection\\") ? await OrderedCollection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#OrderedCollectionPage\\") ? await OrderedCollectionPage.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -71659,11 +71959,11 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#OrderedCollection\\") ? await OrderedCollection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#OrderedCollectionPage\\") ? await OrderedCollectionPage.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -71698,7 +71998,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === \\"undefined\\") continue; _3yAv8jymNfNuJUDuBzJ1NQhdbAee_following.push(decoded); @@ -71731,7 +72031,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === \\"undefined\\") continue; _BBCTgfphhsFzpVfKTykGSpBNwoA_followers.push(decoded); @@ -71764,7 +72064,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === \\"undefined\\") continue; _3bgkPwJanyTCoVFM9ovRcus8tKkU_liked.push(decoded); @@ -71797,7 +72097,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === \\"undefined\\") continue; _4N1vBJzXDf8NbBumeECQMFvKetja_featured.push(decoded); @@ -71830,7 +72130,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === \\"undefined\\") continue; _2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags.push(decoded); @@ -71863,7 +72163,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === \\"undefined\\") continue; _3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.push(decoded); @@ -71884,7 +72184,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Endpoints.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === \\"undefined\\") continue; _sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints.push(decoded); @@ -71991,23 +72291,23 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Application\\") ? await Application.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Group\\") ? await Group.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Organization\\") ? await Organization.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Person\\") ? await Person.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Service\\") ? await Service.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -72044,23 +72344,23 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Application\\") ? await Application.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Group\\") ? await Group.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Organization\\") ? await Organization.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Person\\") ? await Person.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Service\\") ? await Service.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -72095,7 +72395,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await DidService.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === \\"undefined\\") continue; _4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.push(decoded); @@ -72922,9 +73222,14 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { - options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; + const _resolvedUrl = + values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) + ? new URL(values[\\"@id\\"], options.baseUrl) + : undefined; + if (options.baseUrl == null && _resolvedUrl != null) { + options = { ...options, baseUrl: _resolvedUrl }; } + const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -78503,9 +78808,14 @@ get preferredUsernames(): ((string | LanguageString))[] { // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { - options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; + const _resolvedUrl = + values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) + ? new URL(values[\\"@id\\"], options.baseUrl) + : undefined; + if (options.baseUrl == null && _resolvedUrl != null) { + options = { ...options, baseUrl: _resolvedUrl }; } + const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -78578,7 +78888,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await CryptographicKey.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === \\"undefined\\") continue; _axq166E2eZADq34V4MYUc8KMZdC_publicKey.push(decoded); @@ -78611,7 +78921,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Multikey.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === \\"undefined\\") continue; _4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.push(decoded); @@ -78664,11 +78974,11 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#OrderedCollection\\") ? await OrderedCollection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#OrderedCollectionPage\\") ? await OrderedCollectionPage.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -78705,11 +79015,11 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#OrderedCollection\\") ? await OrderedCollection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#OrderedCollectionPage\\") ? await OrderedCollectionPage.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -78744,7 +79054,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === \\"undefined\\") continue; _3yAv8jymNfNuJUDuBzJ1NQhdbAee_following.push(decoded); @@ -78777,7 +79087,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === \\"undefined\\") continue; _BBCTgfphhsFzpVfKTykGSpBNwoA_followers.push(decoded); @@ -78810,7 +79120,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === \\"undefined\\") continue; _3bgkPwJanyTCoVFM9ovRcus8tKkU_liked.push(decoded); @@ -78843,7 +79153,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === \\"undefined\\") continue; _4N1vBJzXDf8NbBumeECQMFvKetja_featured.push(decoded); @@ -78876,7 +79186,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === \\"undefined\\") continue; _2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags.push(decoded); @@ -78909,7 +79219,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === \\"undefined\\") continue; _3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.push(decoded); @@ -78930,7 +79240,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Endpoints.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === \\"undefined\\") continue; _sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints.push(decoded); @@ -79037,23 +79347,23 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Application\\") ? await Application.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Group\\") ? await Group.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Organization\\") ? await Organization.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Person\\") ? await Person.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Service\\") ? await Service.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -79090,23 +79400,23 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Application\\") ? await Application.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Group\\") ? await Group.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Organization\\") ? await Organization.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Person\\") ? await Person.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Service\\") ? await Service.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -79141,7 +79451,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await DidService.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === \\"undefined\\") continue; _4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.push(decoded); @@ -80424,9 +80734,14 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { - options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; + const _resolvedUrl = + values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) + ? new URL(values[\\"@id\\"], options.baseUrl) + : undefined; + if (options.baseUrl == null && _resolvedUrl != null) { + options = { ...options, baseUrl: _resolvedUrl }; } + const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -80568,9 +80883,9 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu : \\"\\" ) ) - : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) + : URL.canParse(v[\\"@id\\"]) && _baseUrl ? new URL(v[\\"@id\\"]) - : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl))) : undefined + : new URL(v[\\"@id\\"], _baseUrl) : undefined ; if (typeof decoded === \\"undefined\\") continue; _oKrwxU4V8wiKhMW1QEYQibcJh8c_units.push(decoded); @@ -81299,9 +81614,14 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { - options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; + const _resolvedUrl = + values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) + ? new URL(values[\\"@id\\"], options.baseUrl) + : undefined; + if (options.baseUrl == null && _resolvedUrl != null) { + options = { ...options, baseUrl: _resolvedUrl }; } + const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -81350,7 +81670,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === \\"undefined\\") continue; _3CLQ1PLSXrhSQbTGGHuxNyaEFKM1_describes.push(decoded); @@ -82970,9 +83290,14 @@ instruments?: (Object | URL)[];exclusiveOptions?: (Object | URL)[];inclusiveOpti // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { - options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; + const _resolvedUrl = + values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) + ? new URL(values[\\"@id\\"], options.baseUrl) + : undefined; + if (options.baseUrl == null && _resolvedUrl != null) { + options = { ...options, baseUrl: _resolvedUrl }; } + const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -83021,7 +83346,7 @@ instruments?: (Object | URL)[];exclusiveOptions?: (Object | URL)[];inclusiveOpti const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === \\"undefined\\") continue; _2N5scKaVEcdYHFmfKYYacAwUhUgQ_oneOf.push(decoded); @@ -83054,7 +83379,7 @@ instruments?: (Object | URL)[];exclusiveOptions?: (Object | URL)[];inclusiveOpti const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === \\"undefined\\") continue; _2mV6isMTPRKbWdLCjcpiEysq5dAY_anyOf.push(decoded); @@ -83136,7 +83461,7 @@ instruments?: (Object | URL)[];exclusiveOptions?: (Object | URL)[];inclusiveOpti const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === \\"undefined\\") continue; _3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote.push(decoded); @@ -83195,7 +83520,7 @@ instruments?: (Object | URL)[];exclusiveOptions?: (Object | URL)[];inclusiveOpti const decoded = await QuoteAuthorization.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === \\"undefined\\") continue; _ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization.push(decoded); @@ -83654,9 +83979,14 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { - options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; + const _resolvedUrl = + values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) + ? new URL(values[\\"@id\\"], options.baseUrl) + : undefined; + if (options.baseUrl == null && _resolvedUrl != null) { + options = { ...options, baseUrl: _resolvedUrl }; } + const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -83988,9 +84318,14 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { - options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; + const _resolvedUrl = + values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) + ? new URL(values[\\"@id\\"], options.baseUrl) + : undefined; + if (options.baseUrl == null && _resolvedUrl != null) { + options = { ...options, baseUrl: _resolvedUrl }; } + const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -85504,9 +85839,14 @@ relationships?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { - options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; + const _resolvedUrl = + values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) + ? new URL(values[\\"@id\\"], options.baseUrl) + : undefined; + if (options.baseUrl == null && _resolvedUrl != null) { + options = { ...options, baseUrl: _resolvedUrl }; } + const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -85555,7 +85895,7 @@ relationships?: (Object | URL)[];} const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === \\"undefined\\") continue; _2Zqdmi46ZnDQsECS6mzwhrv3rUKq_subject.push(decoded); @@ -85588,7 +85928,7 @@ relationships?: (Object | URL)[];} const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === \\"undefined\\") continue; _2MH19yxjn1wnHsNfa5n4JBhJzxyc_object.push(decoded); @@ -85621,7 +85961,7 @@ relationships?: (Object | URL)[];} const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === \\"undefined\\") continue; _4Lzz89F9qipAQSGkWyX9DGWiUojG_relationship.push(decoded); @@ -86009,9 +86349,14 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { - options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; + const _resolvedUrl = + values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) + ? new URL(values[\\"@id\\"], options.baseUrl) + : undefined; + if (options.baseUrl == null && _resolvedUrl != null) { + options = { ...options, baseUrl: _resolvedUrl }; } + const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -91590,9 +91935,14 @@ get preferredUsernames(): ((string | LanguageString))[] { // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { - options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; + const _resolvedUrl = + values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) + ? new URL(values[\\"@id\\"], options.baseUrl) + : undefined; + if (options.baseUrl == null && _resolvedUrl != null) { + options = { ...options, baseUrl: _resolvedUrl }; } + const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -91665,7 +92015,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await CryptographicKey.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === \\"undefined\\") continue; _axq166E2eZADq34V4MYUc8KMZdC_publicKey.push(decoded); @@ -91698,7 +92048,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Multikey.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === \\"undefined\\") continue; _4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.push(decoded); @@ -91751,11 +92101,11 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#OrderedCollection\\") ? await OrderedCollection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#OrderedCollectionPage\\") ? await OrderedCollectionPage.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -91792,11 +92142,11 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#OrderedCollection\\") ? await OrderedCollection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#OrderedCollectionPage\\") ? await OrderedCollectionPage.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -91831,7 +92181,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === \\"undefined\\") continue; _3yAv8jymNfNuJUDuBzJ1NQhdbAee_following.push(decoded); @@ -91864,7 +92214,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === \\"undefined\\") continue; _BBCTgfphhsFzpVfKTykGSpBNwoA_followers.push(decoded); @@ -91897,7 +92247,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === \\"undefined\\") continue; _3bgkPwJanyTCoVFM9ovRcus8tKkU_liked.push(decoded); @@ -91930,7 +92280,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === \\"undefined\\") continue; _4N1vBJzXDf8NbBumeECQMFvKetja_featured.push(decoded); @@ -91963,7 +92313,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === \\"undefined\\") continue; _2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags.push(decoded); @@ -91996,7 +92346,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === \\"undefined\\") continue; _3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.push(decoded); @@ -92017,7 +92367,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Endpoints.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === \\"undefined\\") continue; _sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints.push(decoded); @@ -92124,23 +92474,23 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Application\\") ? await Application.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Group\\") ? await Group.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Organization\\") ? await Organization.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Person\\") ? await Person.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Service\\") ? await Service.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -92177,23 +92527,23 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Application\\") ? await Application.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Group\\") ? await Group.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Organization\\") ? await Organization.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Person\\") ? await Person.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Service\\") ? await Service.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -92228,7 +92578,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await DidService.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === \\"undefined\\") continue; _4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.push(decoded); @@ -93264,9 +93614,14 @@ get contents(): ((string | LanguageString))[] { // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { - options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; + const _resolvedUrl = + values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) + ? new URL(values[\\"@id\\"], options.baseUrl) + : undefined; + if (options.baseUrl == null && _resolvedUrl != null) { + options = { ...options, baseUrl: _resolvedUrl }; } + const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -93696,9 +94051,14 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { - options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; + const _resolvedUrl = + values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) + ? new URL(values[\\"@id\\"], options.baseUrl) + : undefined; + if (options.baseUrl == null && _resolvedUrl != null) { + options = { ...options, baseUrl: _resolvedUrl }; } + const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -94030,9 +94390,14 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { - options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; + const _resolvedUrl = + values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) + ? new URL(values[\\"@id\\"], options.baseUrl) + : undefined; + if (options.baseUrl == null && _resolvedUrl != null) { + options = { ...options, baseUrl: _resolvedUrl }; } + const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -94580,9 +94945,14 @@ get formerTypes(): ($EntityType)[] { // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { - options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; + const _resolvedUrl = + values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) + ? new URL(values[\\"@id\\"], options.baseUrl) + : undefined; + if (options.baseUrl == null && _resolvedUrl != null) { + options = { ...options, baseUrl: _resolvedUrl }; } + const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -95015,9 +95385,14 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { - options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; + const _resolvedUrl = + values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) + ? new URL(values[\\"@id\\"], options.baseUrl) + : undefined; + if (options.baseUrl == null && _resolvedUrl != null) { + options = { ...options, baseUrl: _resolvedUrl }; } + const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -95354,9 +95729,14 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { - options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; + const _resolvedUrl = + values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) + ? new URL(values[\\"@id\\"], options.baseUrl) + : undefined; + if (options.baseUrl == null && _resolvedUrl != null) { + options = { ...options, baseUrl: _resolvedUrl }; } + const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -95691,9 +96071,14 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { - options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; + const _resolvedUrl = + values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) + ? new URL(values[\\"@id\\"], options.baseUrl) + : undefined; + if (options.baseUrl == null && _resolvedUrl != null) { + options = { ...options, baseUrl: _resolvedUrl }; } + const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -96028,9 +96413,14 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { - options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; + const _resolvedUrl = + values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) + ? new URL(values[\\"@id\\"], options.baseUrl) + : undefined; + if (options.baseUrl == null && _resolvedUrl != null) { + options = { ...options, baseUrl: _resolvedUrl }; } + const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -96361,9 +96751,14 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { - options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; + const _resolvedUrl = + values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) + ? new URL(values[\\"@id\\"], options.baseUrl) + : undefined; + if (options.baseUrl == null && _resolvedUrl != null) { + options = { ...options, baseUrl: _resolvedUrl }; } + const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); diff --git a/packages/vocab-tools/src/__snapshots__/class.test.ts.snap b/packages/vocab-tools/src/__snapshots__/class.test.ts.snap index 0df722fe9..a9f10d5bf 100644 --- a/packages/vocab-tools/src/__snapshots__/class.test.ts.snap +++ b/packages/vocab-tools/src/__snapshots__/class.test.ts.snap @@ -10344,9 +10344,14 @@ get urls(): ((URL | Link))[] { // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { - options = { ...options, baseUrl: new URL(values["@id"]) }; + const _resolvedUrl = + values["@id"] != null && URL.canParse(values["@id"], options.baseUrl) + ? new URL(values["@id"], options.baseUrl) + : undefined; + if (options.baseUrl == null && _resolvedUrl != null) { + options = { ...options, baseUrl: _resolvedUrl }; } + const _baseUrl = _resolvedUrl ?? options.baseUrl; if ("@type" in values) { span.setAttribute("activitypub.object.type", values["@type"]); @@ -10645,16 +10650,16 @@ get urls(): ((URL | Link))[] { && Array.isArray(v["@type"])&& ["https://www.w3.org/ns/activitystreams#Object","http://joinmastodon.org/ns#Emoji","http://litepub.social/ns#ChatMessage","https://gotosocial.org/ns#AnnounceAuthorization","https://gotosocial.org/ns#LikeApproval","https://gotosocial.org/ns#ReplyAuthorization","https://w3id.org/fep/044f#QuoteAuthorization","https://w3id.org/valueflows/ont/vf#Proposal","https://www.w3.org/ns/activitystreams#Activity","http://litepub.social/ns#EmojiReact","https://gotosocial.org/ns#AnnounceRequest","https://gotosocial.org/ns#LikeRequest","https://gotosocial.org/ns#ReplyRequest","https://w3id.org/fep/044f#QuoteRequest","https://www.w3.org/ns/activitystreams#Accept","https://www.w3.org/ns/activitystreams#TentativeAccept","https://www.w3.org/ns/activitystreams#Add","https://www.w3.org/ns/activitystreams#Announce","https://www.w3.org/ns/activitystreams#Create","https://www.w3.org/ns/activitystreams#Delete","https://www.w3.org/ns/activitystreams#Dislike","https://www.w3.org/ns/activitystreams#Flag","https://www.w3.org/ns/activitystreams#Follow","https://www.w3.org/ns/activitystreams#Ignore","https://www.w3.org/ns/activitystreams#Block","https://www.w3.org/ns/activitystreams#IntransitiveActivity","https://www.w3.org/ns/activitystreams#Arrive","https://www.w3.org/ns/activitystreams#Question","https://www.w3.org/ns/activitystreams#Travel","https://www.w3.org/ns/activitystreams#Join","https://www.w3.org/ns/activitystreams#Leave","https://www.w3.org/ns/activitystreams#Like","https://www.w3.org/ns/activitystreams#Listen","https://www.w3.org/ns/activitystreams#Move","https://www.w3.org/ns/activitystreams#Offer","https://www.w3.org/ns/activitystreams#Invite","https://www.w3.org/ns/activitystreams#Read","https://www.w3.org/ns/activitystreams#Reject","https://www.w3.org/ns/activitystreams#TentativeReject","https://www.w3.org/ns/activitystreams#Remove","https://www.w3.org/ns/activitystreams#Undo","https://www.w3.org/ns/activitystreams#Update","https://www.w3.org/ns/activitystreams#View","https://www.w3.org/ns/activitystreams#Application","https://www.w3.org/ns/activitystreams#Article","https://www.w3.org/ns/activitystreams#Collection","https://www.w3.org/ns/activitystreams#CollectionPage","https://www.w3.org/ns/activitystreams#OrderedCollectionPage","https://www.w3.org/ns/activitystreams#OrderedCollection","https://www.w3.org/ns/activitystreams#Document","https://www.w3.org/ns/activitystreams#Audio","https://www.w3.org/ns/activitystreams#Image","https://www.w3.org/ns/activitystreams#Page","https://www.w3.org/ns/activitystreams#Video","https://www.w3.org/ns/activitystreams#Event","https://www.w3.org/ns/activitystreams#Group","https://www.w3.org/ns/activitystreams#Note","https://www.w3.org/ns/activitystreams#Organization","https://www.w3.org/ns/activitystreams#Person","https://www.w3.org/ns/activitystreams#Place","https://www.w3.org/ns/activitystreams#Profile","https://www.w3.org/ns/activitystreams#Relationship","https://www.w3.org/ns/activitystreams#Service","https://www.w3.org/ns/activitystreams#Tombstone"].some( t => v["@type"].includes(t)) ? await Object.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& ["https://www.w3.org/ns/activitystreams#Link","https://www.w3.org/ns/activitystreams#Hashtag","https://www.w3.org/ns/activitystreams#Mention"].some( t => v["@type"].includes(t)) ? await Link.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("http://schema.org#PropertyValue") ? await PropertyValue.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : undefined ; if (typeof decoded === "undefined") continue; @@ -10691,23 +10696,23 @@ get urls(): ((URL | Link))[] { typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Application") ? await Application.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Group") ? await Group.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Organization") ? await Organization.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Person") ? await Person.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Service") ? await Service.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : undefined ; if (typeof decoded === "undefined") continue; @@ -10742,7 +10747,7 @@ get urls(): ((URL | Link))[] { const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === "undefined") continue; _3ocC3VVi88cEd5sPWL8djkZsvTN6_audience.push(decoded); @@ -10802,12 +10807,12 @@ get urls(): ((URL | Link))[] { && Array.isArray(v["@type"])&& ["https://www.w3.org/ns/activitystreams#Object","http://joinmastodon.org/ns#Emoji","http://litepub.social/ns#ChatMessage","https://gotosocial.org/ns#AnnounceAuthorization","https://gotosocial.org/ns#LikeApproval","https://gotosocial.org/ns#ReplyAuthorization","https://w3id.org/fep/044f#QuoteAuthorization","https://w3id.org/valueflows/ont/vf#Proposal","https://www.w3.org/ns/activitystreams#Activity","http://litepub.social/ns#EmojiReact","https://gotosocial.org/ns#AnnounceRequest","https://gotosocial.org/ns#LikeRequest","https://gotosocial.org/ns#ReplyRequest","https://w3id.org/fep/044f#QuoteRequest","https://www.w3.org/ns/activitystreams#Accept","https://www.w3.org/ns/activitystreams#TentativeAccept","https://www.w3.org/ns/activitystreams#Add","https://www.w3.org/ns/activitystreams#Announce","https://www.w3.org/ns/activitystreams#Create","https://www.w3.org/ns/activitystreams#Delete","https://www.w3.org/ns/activitystreams#Dislike","https://www.w3.org/ns/activitystreams#Flag","https://www.w3.org/ns/activitystreams#Follow","https://www.w3.org/ns/activitystreams#Ignore","https://www.w3.org/ns/activitystreams#Block","https://www.w3.org/ns/activitystreams#IntransitiveActivity","https://www.w3.org/ns/activitystreams#Arrive","https://www.w3.org/ns/activitystreams#Question","https://www.w3.org/ns/activitystreams#Travel","https://www.w3.org/ns/activitystreams#Join","https://www.w3.org/ns/activitystreams#Leave","https://www.w3.org/ns/activitystreams#Like","https://www.w3.org/ns/activitystreams#Listen","https://www.w3.org/ns/activitystreams#Move","https://www.w3.org/ns/activitystreams#Offer","https://www.w3.org/ns/activitystreams#Invite","https://www.w3.org/ns/activitystreams#Read","https://www.w3.org/ns/activitystreams#Reject","https://www.w3.org/ns/activitystreams#TentativeReject","https://www.w3.org/ns/activitystreams#Remove","https://www.w3.org/ns/activitystreams#Undo","https://www.w3.org/ns/activitystreams#Update","https://www.w3.org/ns/activitystreams#View","https://www.w3.org/ns/activitystreams#Application","https://www.w3.org/ns/activitystreams#Article","https://www.w3.org/ns/activitystreams#Collection","https://www.w3.org/ns/activitystreams#CollectionPage","https://www.w3.org/ns/activitystreams#OrderedCollectionPage","https://www.w3.org/ns/activitystreams#OrderedCollection","https://www.w3.org/ns/activitystreams#Document","https://www.w3.org/ns/activitystreams#Audio","https://www.w3.org/ns/activitystreams#Image","https://www.w3.org/ns/activitystreams#Page","https://www.w3.org/ns/activitystreams#Video","https://www.w3.org/ns/activitystreams#Event","https://www.w3.org/ns/activitystreams#Group","https://www.w3.org/ns/activitystreams#Note","https://www.w3.org/ns/activitystreams#Organization","https://www.w3.org/ns/activitystreams#Person","https://www.w3.org/ns/activitystreams#Place","https://www.w3.org/ns/activitystreams#Profile","https://www.w3.org/ns/activitystreams#Relationship","https://www.w3.org/ns/activitystreams#Service","https://www.w3.org/ns/activitystreams#Tombstone"].some( t => v["@type"].includes(t)) ? await Object.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& ["https://www.w3.org/ns/activitystreams#Link","https://www.w3.org/ns/activitystreams#Hashtag","https://www.w3.org/ns/activitystreams#Mention"].some( t => v["@type"].includes(t)) ? await Link.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : undefined ; if (typeof decoded === "undefined") continue; @@ -10891,12 +10896,12 @@ get urls(): ((URL | Link))[] { && Array.isArray(v["@type"])&& ["https://www.w3.org/ns/activitystreams#Object","http://joinmastodon.org/ns#Emoji","http://litepub.social/ns#ChatMessage","https://gotosocial.org/ns#AnnounceAuthorization","https://gotosocial.org/ns#LikeApproval","https://gotosocial.org/ns#ReplyAuthorization","https://w3id.org/fep/044f#QuoteAuthorization","https://w3id.org/valueflows/ont/vf#Proposal","https://www.w3.org/ns/activitystreams#Activity","http://litepub.social/ns#EmojiReact","https://gotosocial.org/ns#AnnounceRequest","https://gotosocial.org/ns#LikeRequest","https://gotosocial.org/ns#ReplyRequest","https://w3id.org/fep/044f#QuoteRequest","https://www.w3.org/ns/activitystreams#Accept","https://www.w3.org/ns/activitystreams#TentativeAccept","https://www.w3.org/ns/activitystreams#Add","https://www.w3.org/ns/activitystreams#Announce","https://www.w3.org/ns/activitystreams#Create","https://www.w3.org/ns/activitystreams#Delete","https://www.w3.org/ns/activitystreams#Dislike","https://www.w3.org/ns/activitystreams#Flag","https://www.w3.org/ns/activitystreams#Follow","https://www.w3.org/ns/activitystreams#Ignore","https://www.w3.org/ns/activitystreams#Block","https://www.w3.org/ns/activitystreams#IntransitiveActivity","https://www.w3.org/ns/activitystreams#Arrive","https://www.w3.org/ns/activitystreams#Question","https://www.w3.org/ns/activitystreams#Travel","https://www.w3.org/ns/activitystreams#Join","https://www.w3.org/ns/activitystreams#Leave","https://www.w3.org/ns/activitystreams#Like","https://www.w3.org/ns/activitystreams#Listen","https://www.w3.org/ns/activitystreams#Move","https://www.w3.org/ns/activitystreams#Offer","https://www.w3.org/ns/activitystreams#Invite","https://www.w3.org/ns/activitystreams#Read","https://www.w3.org/ns/activitystreams#Reject","https://www.w3.org/ns/activitystreams#TentativeReject","https://www.w3.org/ns/activitystreams#Remove","https://www.w3.org/ns/activitystreams#Undo","https://www.w3.org/ns/activitystreams#Update","https://www.w3.org/ns/activitystreams#View","https://www.w3.org/ns/activitystreams#Application","https://www.w3.org/ns/activitystreams#Article","https://www.w3.org/ns/activitystreams#Collection","https://www.w3.org/ns/activitystreams#CollectionPage","https://www.w3.org/ns/activitystreams#OrderedCollectionPage","https://www.w3.org/ns/activitystreams#OrderedCollection","https://www.w3.org/ns/activitystreams#Document","https://www.w3.org/ns/activitystreams#Audio","https://www.w3.org/ns/activitystreams#Image","https://www.w3.org/ns/activitystreams#Page","https://www.w3.org/ns/activitystreams#Video","https://www.w3.org/ns/activitystreams#Event","https://www.w3.org/ns/activitystreams#Group","https://www.w3.org/ns/activitystreams#Note","https://www.w3.org/ns/activitystreams#Organization","https://www.w3.org/ns/activitystreams#Person","https://www.w3.org/ns/activitystreams#Place","https://www.w3.org/ns/activitystreams#Profile","https://www.w3.org/ns/activitystreams#Relationship","https://www.w3.org/ns/activitystreams#Service","https://www.w3.org/ns/activitystreams#Tombstone"].some( t => v["@type"].includes(t)) ? await Object.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& ["https://www.w3.org/ns/activitystreams#Link","https://www.w3.org/ns/activitystreams#Hashtag","https://www.w3.org/ns/activitystreams#Mention"].some( t => v["@type"].includes(t)) ? await Link.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : undefined ; if (typeof decoded === "undefined") continue; @@ -10927,7 +10932,7 @@ get urls(): ((URL | Link))[] { documentLoader: options.documentLoader, contextLoader: options.contextLoader, tracerProvider: options.tracerProvider, - baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)), + baseUrl: _baseUrl, }); if (_result instanceof Error) throw _result; if (_result !== undefined) { @@ -10953,7 +10958,7 @@ get urls(): ((URL | Link))[] { const decoded = await Image.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === "undefined") continue; _33CjRLy5ujtsUrwRSCrsggvGdKuR_icon.push(decoded); @@ -10982,7 +10987,7 @@ get urls(): ((URL | Link))[] { documentLoader: options.documentLoader, contextLoader: options.contextLoader, tracerProvider: options.tracerProvider, - baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)), + baseUrl: _baseUrl, }); if (_result instanceof Error) throw _result; if (_result !== undefined) { @@ -11008,7 +11013,7 @@ get urls(): ((URL | Link))[] { const decoded = await Image.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === "undefined") continue; _3dXrUdkARxwyJLtJcYi1AJ92H41U_image.push(decoded); @@ -11044,12 +11049,12 @@ get urls(): ((URL | Link))[] { && Array.isArray(v["@type"])&& ["https://www.w3.org/ns/activitystreams#Object","http://joinmastodon.org/ns#Emoji","http://litepub.social/ns#ChatMessage","https://gotosocial.org/ns#AnnounceAuthorization","https://gotosocial.org/ns#LikeApproval","https://gotosocial.org/ns#ReplyAuthorization","https://w3id.org/fep/044f#QuoteAuthorization","https://w3id.org/valueflows/ont/vf#Proposal","https://www.w3.org/ns/activitystreams#Activity","http://litepub.social/ns#EmojiReact","https://gotosocial.org/ns#AnnounceRequest","https://gotosocial.org/ns#LikeRequest","https://gotosocial.org/ns#ReplyRequest","https://w3id.org/fep/044f#QuoteRequest","https://www.w3.org/ns/activitystreams#Accept","https://www.w3.org/ns/activitystreams#TentativeAccept","https://www.w3.org/ns/activitystreams#Add","https://www.w3.org/ns/activitystreams#Announce","https://www.w3.org/ns/activitystreams#Create","https://www.w3.org/ns/activitystreams#Delete","https://www.w3.org/ns/activitystreams#Dislike","https://www.w3.org/ns/activitystreams#Flag","https://www.w3.org/ns/activitystreams#Follow","https://www.w3.org/ns/activitystreams#Ignore","https://www.w3.org/ns/activitystreams#Block","https://www.w3.org/ns/activitystreams#IntransitiveActivity","https://www.w3.org/ns/activitystreams#Arrive","https://www.w3.org/ns/activitystreams#Question","https://www.w3.org/ns/activitystreams#Travel","https://www.w3.org/ns/activitystreams#Join","https://www.w3.org/ns/activitystreams#Leave","https://www.w3.org/ns/activitystreams#Like","https://www.w3.org/ns/activitystreams#Listen","https://www.w3.org/ns/activitystreams#Move","https://www.w3.org/ns/activitystreams#Offer","https://www.w3.org/ns/activitystreams#Invite","https://www.w3.org/ns/activitystreams#Read","https://www.w3.org/ns/activitystreams#Reject","https://www.w3.org/ns/activitystreams#TentativeReject","https://www.w3.org/ns/activitystreams#Remove","https://www.w3.org/ns/activitystreams#Undo","https://www.w3.org/ns/activitystreams#Update","https://www.w3.org/ns/activitystreams#View","https://www.w3.org/ns/activitystreams#Application","https://www.w3.org/ns/activitystreams#Article","https://www.w3.org/ns/activitystreams#Collection","https://www.w3.org/ns/activitystreams#CollectionPage","https://www.w3.org/ns/activitystreams#OrderedCollectionPage","https://www.w3.org/ns/activitystreams#OrderedCollection","https://www.w3.org/ns/activitystreams#Document","https://www.w3.org/ns/activitystreams#Audio","https://www.w3.org/ns/activitystreams#Image","https://www.w3.org/ns/activitystreams#Page","https://www.w3.org/ns/activitystreams#Video","https://www.w3.org/ns/activitystreams#Event","https://www.w3.org/ns/activitystreams#Group","https://www.w3.org/ns/activitystreams#Note","https://www.w3.org/ns/activitystreams#Organization","https://www.w3.org/ns/activitystreams#Person","https://www.w3.org/ns/activitystreams#Place","https://www.w3.org/ns/activitystreams#Profile","https://www.w3.org/ns/activitystreams#Relationship","https://www.w3.org/ns/activitystreams#Service","https://www.w3.org/ns/activitystreams#Tombstone"].some( t => v["@type"].includes(t)) ? await Object.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& ["https://www.w3.org/ns/activitystreams#Link","https://www.w3.org/ns/activitystreams#Hashtag","https://www.w3.org/ns/activitystreams#Mention"].some( t => v["@type"].includes(t)) ? await Link.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : undefined ; if (typeof decoded === "undefined") continue; @@ -11087,12 +11092,12 @@ get urls(): ((URL | Link))[] { && Array.isArray(v["@type"])&& ["https://www.w3.org/ns/activitystreams#Object","http://joinmastodon.org/ns#Emoji","http://litepub.social/ns#ChatMessage","https://gotosocial.org/ns#AnnounceAuthorization","https://gotosocial.org/ns#LikeApproval","https://gotosocial.org/ns#ReplyAuthorization","https://w3id.org/fep/044f#QuoteAuthorization","https://w3id.org/valueflows/ont/vf#Proposal","https://www.w3.org/ns/activitystreams#Activity","http://litepub.social/ns#EmojiReact","https://gotosocial.org/ns#AnnounceRequest","https://gotosocial.org/ns#LikeRequest","https://gotosocial.org/ns#ReplyRequest","https://w3id.org/fep/044f#QuoteRequest","https://www.w3.org/ns/activitystreams#Accept","https://www.w3.org/ns/activitystreams#TentativeAccept","https://www.w3.org/ns/activitystreams#Add","https://www.w3.org/ns/activitystreams#Announce","https://www.w3.org/ns/activitystreams#Create","https://www.w3.org/ns/activitystreams#Delete","https://www.w3.org/ns/activitystreams#Dislike","https://www.w3.org/ns/activitystreams#Flag","https://www.w3.org/ns/activitystreams#Follow","https://www.w3.org/ns/activitystreams#Ignore","https://www.w3.org/ns/activitystreams#Block","https://www.w3.org/ns/activitystreams#IntransitiveActivity","https://www.w3.org/ns/activitystreams#Arrive","https://www.w3.org/ns/activitystreams#Question","https://www.w3.org/ns/activitystreams#Travel","https://www.w3.org/ns/activitystreams#Join","https://www.w3.org/ns/activitystreams#Leave","https://www.w3.org/ns/activitystreams#Like","https://www.w3.org/ns/activitystreams#Listen","https://www.w3.org/ns/activitystreams#Move","https://www.w3.org/ns/activitystreams#Offer","https://www.w3.org/ns/activitystreams#Invite","https://www.w3.org/ns/activitystreams#Read","https://www.w3.org/ns/activitystreams#Reject","https://www.w3.org/ns/activitystreams#TentativeReject","https://www.w3.org/ns/activitystreams#Remove","https://www.w3.org/ns/activitystreams#Undo","https://www.w3.org/ns/activitystreams#Update","https://www.w3.org/ns/activitystreams#View","https://www.w3.org/ns/activitystreams#Application","https://www.w3.org/ns/activitystreams#Article","https://www.w3.org/ns/activitystreams#Collection","https://www.w3.org/ns/activitystreams#CollectionPage","https://www.w3.org/ns/activitystreams#OrderedCollectionPage","https://www.w3.org/ns/activitystreams#OrderedCollection","https://www.w3.org/ns/activitystreams#Document","https://www.w3.org/ns/activitystreams#Audio","https://www.w3.org/ns/activitystreams#Image","https://www.w3.org/ns/activitystreams#Page","https://www.w3.org/ns/activitystreams#Video","https://www.w3.org/ns/activitystreams#Event","https://www.w3.org/ns/activitystreams#Group","https://www.w3.org/ns/activitystreams#Note","https://www.w3.org/ns/activitystreams#Organization","https://www.w3.org/ns/activitystreams#Person","https://www.w3.org/ns/activitystreams#Place","https://www.w3.org/ns/activitystreams#Profile","https://www.w3.org/ns/activitystreams#Relationship","https://www.w3.org/ns/activitystreams#Service","https://www.w3.org/ns/activitystreams#Tombstone"].some( t => v["@type"].includes(t)) ? await Object.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& ["https://www.w3.org/ns/activitystreams#Link","https://www.w3.org/ns/activitystreams#Hashtag","https://www.w3.org/ns/activitystreams#Mention"].some( t => v["@type"].includes(t)) ? await Link.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : undefined ; if (typeof decoded === "undefined") continue; @@ -11130,12 +11135,12 @@ get urls(): ((URL | Link))[] { && Array.isArray(v["@type"])&& ["https://www.w3.org/ns/activitystreams#Link","https://www.w3.org/ns/activitystreams#Hashtag","https://www.w3.org/ns/activitystreams#Mention"].some( t => v["@type"].includes(t)) ? await Link.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& ["https://www.w3.org/ns/activitystreams#Object","http://joinmastodon.org/ns#Emoji","http://litepub.social/ns#ChatMessage","https://gotosocial.org/ns#AnnounceAuthorization","https://gotosocial.org/ns#LikeApproval","https://gotosocial.org/ns#ReplyAuthorization","https://w3id.org/fep/044f#QuoteAuthorization","https://w3id.org/valueflows/ont/vf#Proposal","https://www.w3.org/ns/activitystreams#Activity","http://litepub.social/ns#EmojiReact","https://gotosocial.org/ns#AnnounceRequest","https://gotosocial.org/ns#LikeRequest","https://gotosocial.org/ns#ReplyRequest","https://w3id.org/fep/044f#QuoteRequest","https://www.w3.org/ns/activitystreams#Accept","https://www.w3.org/ns/activitystreams#TentativeAccept","https://www.w3.org/ns/activitystreams#Add","https://www.w3.org/ns/activitystreams#Announce","https://www.w3.org/ns/activitystreams#Create","https://www.w3.org/ns/activitystreams#Delete","https://www.w3.org/ns/activitystreams#Dislike","https://www.w3.org/ns/activitystreams#Flag","https://www.w3.org/ns/activitystreams#Follow","https://www.w3.org/ns/activitystreams#Ignore","https://www.w3.org/ns/activitystreams#Block","https://www.w3.org/ns/activitystreams#IntransitiveActivity","https://www.w3.org/ns/activitystreams#Arrive","https://www.w3.org/ns/activitystreams#Question","https://www.w3.org/ns/activitystreams#Travel","https://www.w3.org/ns/activitystreams#Join","https://www.w3.org/ns/activitystreams#Leave","https://www.w3.org/ns/activitystreams#Like","https://www.w3.org/ns/activitystreams#Listen","https://www.w3.org/ns/activitystreams#Move","https://www.w3.org/ns/activitystreams#Offer","https://www.w3.org/ns/activitystreams#Invite","https://www.w3.org/ns/activitystreams#Read","https://www.w3.org/ns/activitystreams#Reject","https://www.w3.org/ns/activitystreams#TentativeReject","https://www.w3.org/ns/activitystreams#Remove","https://www.w3.org/ns/activitystreams#Undo","https://www.w3.org/ns/activitystreams#Update","https://www.w3.org/ns/activitystreams#View","https://www.w3.org/ns/activitystreams#Application","https://www.w3.org/ns/activitystreams#Article","https://www.w3.org/ns/activitystreams#Collection","https://www.w3.org/ns/activitystreams#CollectionPage","https://www.w3.org/ns/activitystreams#OrderedCollectionPage","https://www.w3.org/ns/activitystreams#OrderedCollection","https://www.w3.org/ns/activitystreams#Document","https://www.w3.org/ns/activitystreams#Audio","https://www.w3.org/ns/activitystreams#Image","https://www.w3.org/ns/activitystreams#Page","https://www.w3.org/ns/activitystreams#Video","https://www.w3.org/ns/activitystreams#Event","https://www.w3.org/ns/activitystreams#Group","https://www.w3.org/ns/activitystreams#Note","https://www.w3.org/ns/activitystreams#Organization","https://www.w3.org/ns/activitystreams#Person","https://www.w3.org/ns/activitystreams#Place","https://www.w3.org/ns/activitystreams#Profile","https://www.w3.org/ns/activitystreams#Relationship","https://www.w3.org/ns/activitystreams#Service","https://www.w3.org/ns/activitystreams#Tombstone"].some( t => v["@type"].includes(t)) ? await Object.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : undefined ; if (typeof decoded === "undefined") continue; @@ -11192,7 +11197,7 @@ get urls(): ((URL | Link))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === "undefined") continue; _7UpwM3JWcXhADcscukEehBorf6k_replies.push(decoded); @@ -11225,7 +11230,7 @@ get urls(): ((URL | Link))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === "undefined") continue; _3kAfck9PcEYt2L7xug5y99YPbANs_shares.push(decoded); @@ -11258,7 +11263,7 @@ get urls(): ((URL | Link))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === "undefined") continue; _S3ceDnpMdzoTRCccB9FkJWrEzYW_likes.push(decoded); @@ -11291,7 +11296,7 @@ get urls(): ((URL | Link))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === "undefined") continue; _kMatyyNAuxoTD8GQMBfA5ogThMR_emojiReactions.push(decoded); @@ -11373,12 +11378,12 @@ get urls(): ((URL | Link))[] { && Array.isArray(v["@type"])&& ["https://www.w3.org/ns/activitystreams#Object","http://joinmastodon.org/ns#Emoji","http://litepub.social/ns#ChatMessage","https://gotosocial.org/ns#AnnounceAuthorization","https://gotosocial.org/ns#LikeApproval","https://gotosocial.org/ns#ReplyAuthorization","https://w3id.org/fep/044f#QuoteAuthorization","https://w3id.org/valueflows/ont/vf#Proposal","https://www.w3.org/ns/activitystreams#Activity","http://litepub.social/ns#EmojiReact","https://gotosocial.org/ns#AnnounceRequest","https://gotosocial.org/ns#LikeRequest","https://gotosocial.org/ns#ReplyRequest","https://w3id.org/fep/044f#QuoteRequest","https://www.w3.org/ns/activitystreams#Accept","https://www.w3.org/ns/activitystreams#TentativeAccept","https://www.w3.org/ns/activitystreams#Add","https://www.w3.org/ns/activitystreams#Announce","https://www.w3.org/ns/activitystreams#Create","https://www.w3.org/ns/activitystreams#Delete","https://www.w3.org/ns/activitystreams#Dislike","https://www.w3.org/ns/activitystreams#Flag","https://www.w3.org/ns/activitystreams#Follow","https://www.w3.org/ns/activitystreams#Ignore","https://www.w3.org/ns/activitystreams#Block","https://www.w3.org/ns/activitystreams#IntransitiveActivity","https://www.w3.org/ns/activitystreams#Arrive","https://www.w3.org/ns/activitystreams#Question","https://www.w3.org/ns/activitystreams#Travel","https://www.w3.org/ns/activitystreams#Join","https://www.w3.org/ns/activitystreams#Leave","https://www.w3.org/ns/activitystreams#Like","https://www.w3.org/ns/activitystreams#Listen","https://www.w3.org/ns/activitystreams#Move","https://www.w3.org/ns/activitystreams#Offer","https://www.w3.org/ns/activitystreams#Invite","https://www.w3.org/ns/activitystreams#Read","https://www.w3.org/ns/activitystreams#Reject","https://www.w3.org/ns/activitystreams#TentativeReject","https://www.w3.org/ns/activitystreams#Remove","https://www.w3.org/ns/activitystreams#Undo","https://www.w3.org/ns/activitystreams#Update","https://www.w3.org/ns/activitystreams#View","https://www.w3.org/ns/activitystreams#Application","https://www.w3.org/ns/activitystreams#Article","https://www.w3.org/ns/activitystreams#Collection","https://www.w3.org/ns/activitystreams#CollectionPage","https://www.w3.org/ns/activitystreams#OrderedCollectionPage","https://www.w3.org/ns/activitystreams#OrderedCollection","https://www.w3.org/ns/activitystreams#Document","https://www.w3.org/ns/activitystreams#Audio","https://www.w3.org/ns/activitystreams#Image","https://www.w3.org/ns/activitystreams#Page","https://www.w3.org/ns/activitystreams#Video","https://www.w3.org/ns/activitystreams#Event","https://www.w3.org/ns/activitystreams#Group","https://www.w3.org/ns/activitystreams#Note","https://www.w3.org/ns/activitystreams#Organization","https://www.w3.org/ns/activitystreams#Person","https://www.w3.org/ns/activitystreams#Place","https://www.w3.org/ns/activitystreams#Profile","https://www.w3.org/ns/activitystreams#Relationship","https://www.w3.org/ns/activitystreams#Service","https://www.w3.org/ns/activitystreams#Tombstone"].some( t => v["@type"].includes(t)) ? await Object.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& ["https://www.w3.org/ns/activitystreams#Link","https://www.w3.org/ns/activitystreams#Hashtag","https://www.w3.org/ns/activitystreams#Mention"].some( t => v["@type"].includes(t)) ? await Link.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : undefined ; if (typeof decoded === "undefined") continue; @@ -11437,13 +11442,13 @@ get urls(): ((URL | Link))[] { : "" ) ) - : URL.canParse(v["@id"]) && (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) + : URL.canParse(v["@id"]) && _baseUrl ? new URL(v["@id"]) - : new URL(v["@id"], (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl))) : typeof v === "object" && "@type" in v + : new URL(v["@id"], _baseUrl) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& ["https://www.w3.org/ns/activitystreams#Link","https://www.w3.org/ns/activitystreams#Hashtag","https://www.w3.org/ns/activitystreams#Mention"].some( t => v["@type"].includes(t)) ? await Link.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : undefined ; if (typeof decoded === "undefined") continue; @@ -11478,7 +11483,7 @@ get urls(): ((URL | Link))[] { const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === "undefined") continue; _3hFbw7DTpHhq3cvVhkY8njhcsXbd_to.push(decoded); @@ -11511,7 +11516,7 @@ get urls(): ((URL | Link))[] { const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === "undefined") continue; _aLZupjwL8XB7tzdLgCMXdjZ6qej_bto.push(decoded); @@ -11544,7 +11549,7 @@ get urls(): ((URL | Link))[] { const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === "undefined") continue; _42a1SvBs24QSLzKcfjCyNTjW5a1g_cc.push(decoded); @@ -11577,7 +11582,7 @@ get urls(): ((URL | Link))[] { const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === "undefined") continue; _3qvegKUB8YLgTXRpEf8E6JZSkz2H_bcc.push(decoded); @@ -11652,7 +11657,7 @@ get urls(): ((URL | Link))[] { const decoded = await Source.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === "undefined") continue; _2ZwCFoS787v8y8bXKjMoE6MAbrEB_source.push(decoded); @@ -11685,7 +11690,7 @@ get urls(): ((URL | Link))[] { const decoded = await DataIntegrityProof.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === "undefined") continue; _42rPnotok1ivQ2RNCKNbeFJgx8b8_proof.push(decoded); @@ -11706,7 +11711,7 @@ get urls(): ((URL | Link))[] { const decoded = await InteractionPolicy.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === "undefined") continue; _2MHQfh2N74MMmDLDqYWFo7TxYQK2_interactionPolicy.push(decoded); @@ -11738,9 +11743,9 @@ get urls(): ((URL | Link))[] { : "" ) ) - : URL.canParse(v["@id"]) && (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) + : URL.canParse(v["@id"]) && _baseUrl ? new URL(v["@id"]) - : new URL(v["@id"], (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl))); + : new URL(v["@id"], _baseUrl); if (typeof decoded === "undefined") continue; _23YiVs2miQcEiUdn4u8SvjQKWYim_approvedBy.push(decoded); } @@ -11772,7 +11777,7 @@ get urls(): ((URL | Link))[] { const decoded = await LikeAuthorization.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === "undefined") continue; _3fCeb5aXaDDd4fvkQ96BLWifBUBa_likeAuthorization.push(decoded); @@ -11805,7 +11810,7 @@ get urls(): ((URL | Link))[] { const decoded = await ReplyAuthorization.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === "undefined") continue; _YA4wdUW7rYztAQ6SjhMnJCmcmtP_replyAuthorization.push(decoded); @@ -11838,7 +11843,7 @@ get urls(): ((URL | Link))[] { const decoded = await AnnounceAuthorization.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === "undefined") continue; _446xEaDBs3Fz6MyzP3PSBaLupkbJ_announceAuthorization.push(decoded); @@ -13016,9 +13021,14 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { - options = { ...options, baseUrl: new URL(values["@id"]) }; + const _resolvedUrl = + values["@id"] != null && URL.canParse(values["@id"], options.baseUrl) + ? new URL(values["@id"], options.baseUrl) + : undefined; + if (options.baseUrl == null && _resolvedUrl != null) { + options = { ...options, baseUrl: _resolvedUrl }; } + const _baseUrl = _resolvedUrl ?? options.baseUrl; if ("@type" in values) { span.setAttribute("activitypub.object.type", values["@type"]); @@ -14022,9 +14032,14 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { - options = { ...options, baseUrl: new URL(values["@id"]) }; + const _resolvedUrl = + values["@id"] != null && URL.canParse(values["@id"], options.baseUrl) + ? new URL(values["@id"], options.baseUrl) + : undefined; + if (options.baseUrl == null && _resolvedUrl != null) { + options = { ...options, baseUrl: _resolvedUrl }; } + const _baseUrl = _resolvedUrl ?? options.baseUrl; if ("@type" in values) { span.setAttribute("activitypub.object.type", values["@type"]); @@ -14073,7 +14088,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === "undefined") continue; _3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote.push(decoded); @@ -14132,7 +14147,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await QuoteAuthorization.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === "undefined") continue; _ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization.push(decoded); @@ -17079,9 +17094,14 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { - options = { ...options, baseUrl: new URL(values["@id"]) }; + const _resolvedUrl = + values["@id"] != null && URL.canParse(values["@id"], options.baseUrl) + ? new URL(values["@id"], options.baseUrl) + : undefined; + if (options.baseUrl == null && _resolvedUrl != null) { + options = { ...options, baseUrl: _resolvedUrl }; } + const _baseUrl = _resolvedUrl ?? options.baseUrl; if ("@type" in values) { span.setAttribute("activitypub.object.type", values["@type"]); @@ -17268,23 +17288,23 @@ instruments?: (Object | URL)[];} typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Application") ? await Application.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Group") ? await Group.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Organization") ? await Organization.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Person") ? await Person.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Service") ? await Service.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : undefined ; if (typeof decoded === "undefined") continue; @@ -17319,7 +17339,7 @@ instruments?: (Object | URL)[];} const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === "undefined") continue; _2MH19yxjn1wnHsNfa5n4JBhJzxyc_object.push(decoded); @@ -17352,7 +17372,7 @@ instruments?: (Object | URL)[];} const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === "undefined") continue; _3JQCmF2Ww56Ag9EWRYoSZRDNCYtF_target.push(decoded); @@ -17385,7 +17405,7 @@ instruments?: (Object | URL)[];} const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === "undefined") continue; _u4QGFbRFcYmPEKGbPv1hpBR9r5G_result.push(decoded); @@ -17418,7 +17438,7 @@ instruments?: (Object | URL)[];} const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === "undefined") continue; _25zu2s3VxVujgEKqrDycjE284XQR_origin.push(decoded); @@ -17451,7 +17471,7 @@ instruments?: (Object | URL)[];} const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === "undefined") continue; _3c5t2x7DYRo2shwTxpkd4kYSS5WQ_instrument.push(decoded); @@ -17922,9 +17942,14 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { - options = { ...options, baseUrl: new URL(values["@id"]) }; + const _resolvedUrl = + values["@id"] != null && URL.canParse(values["@id"], options.baseUrl) + ? new URL(values["@id"], options.baseUrl) + : undefined; + if (options.baseUrl == null && _resolvedUrl != null) { + options = { ...options, baseUrl: _resolvedUrl }; } + const _baseUrl = _resolvedUrl ?? options.baseUrl; if ("@type" in values) { span.setAttribute("activitypub.object.type", values["@type"]); @@ -18425,9 +18450,14 @@ name?: string | LanguageString | null;value?: string | LanguageString | null;} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { - options = { ...options, baseUrl: new URL(values["@id"]) }; + const _resolvedUrl = + values["@id"] != null && URL.canParse(values["@id"], options.baseUrl) + ? new URL(values["@id"], options.baseUrl) + : undefined; + if (options.baseUrl == null && _resolvedUrl != null) { + options = { ...options, baseUrl: _resolvedUrl }; } + const _baseUrl = _resolvedUrl ?? options.baseUrl; if ("@type" in values) { span.setAttribute("activitypub.object.type", values["@type"]); @@ -19011,9 +19041,14 @@ unit?: string | null;numericalValue?: Decimal | null;} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { - options = { ...options, baseUrl: new URL(values["@id"]) }; + const _resolvedUrl = + values["@id"] != null && URL.canParse(values["@id"], options.baseUrl) + ? new URL(values["@id"], options.baseUrl) + : undefined; + if (options.baseUrl == null && _resolvedUrl != null) { + options = { ...options, baseUrl: _resolvedUrl }; } + const _baseUrl = _resolvedUrl ?? options.baseUrl; if ("@type" in values) { span.setAttribute("activitypub.object.type", values["@type"]); @@ -20010,9 +20045,14 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { - options = { ...options, baseUrl: new URL(values["@id"]) }; + const _resolvedUrl = + values["@id"] != null && URL.canParse(values["@id"], options.baseUrl) + ? new URL(values["@id"], options.baseUrl) + : undefined; + if (options.baseUrl == null && _resolvedUrl != null) { + options = { ...options, baseUrl: _resolvedUrl }; } + const _baseUrl = _resolvedUrl ?? options.baseUrl; if ("@type" in values) { span.setAttribute("activitypub.object.type", values["@type"]); @@ -20061,7 +20101,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === "undefined") continue; _2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject.push(decoded); @@ -20094,7 +20134,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === "undefined") continue; _2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget.push(decoded); @@ -20459,9 +20499,14 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { - options = { ...options, baseUrl: new URL(values["@id"]) }; + const _resolvedUrl = + values["@id"] != null && URL.canParse(values["@id"], options.baseUrl) + ? new URL(values["@id"], options.baseUrl) + : undefined; + if (options.baseUrl == null && _resolvedUrl != null) { + options = { ...options, baseUrl: _resolvedUrl }; } + const _baseUrl = _resolvedUrl ?? options.baseUrl; if ("@type" in values) { span.setAttribute("activitypub.object.type", values["@type"]); @@ -21050,9 +21095,14 @@ canLike?: InteractionRule | null;canReply?: InteractionRule | null;canAnnounce?: // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { - options = { ...options, baseUrl: new URL(values["@id"]) }; + const _resolvedUrl = + values["@id"] != null && URL.canParse(values["@id"], options.baseUrl) + ? new URL(values["@id"], options.baseUrl) + : undefined; + if (options.baseUrl == null && _resolvedUrl != null) { + options = { ...options, baseUrl: _resolvedUrl }; } + const _baseUrl = _resolvedUrl ?? options.baseUrl; if ("@type" in values) { span.setAttribute("activitypub.object.type", values["@type"]); @@ -21084,7 +21134,7 @@ canLike?: InteractionRule | null;canReply?: InteractionRule | null;canAnnounce?: const decoded = await InteractionRule.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === "undefined") continue; _3JkwVLb3BNCwCWdsb5RftGAg8vyT_canLike.push(decoded); @@ -21105,7 +21155,7 @@ canLike?: InteractionRule | null;canReply?: InteractionRule | null;canAnnounce?: const decoded = await InteractionRule.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === "undefined") continue; _2UBgLRi5p3DRGGvWyB227i4Qjhzd_canReply.push(decoded); @@ -21126,7 +21176,7 @@ canLike?: InteractionRule | null;canReply?: InteractionRule | null;canAnnounce?: const decoded = await InteractionRule.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === "undefined") continue; _fu5nmoAj528fBQfnxhY9Daok3Vi_canAnnounce.push(decoded); @@ -21147,7 +21197,7 @@ canLike?: InteractionRule | null;canReply?: InteractionRule | null;canAnnounce?: const decoded = await InteractionRule.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === "undefined") continue; _LE3zBTVacTZw2LSyLt4wVUkXeUy_canQuote.push(decoded); @@ -21798,9 +21848,14 @@ get manualApprovals(): (URL)[] { // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { - options = { ...options, baseUrl: new URL(values["@id"]) }; + const _resolvedUrl = + values["@id"] != null && URL.canParse(values["@id"], options.baseUrl) + ? new URL(values["@id"], options.baseUrl) + : undefined; + if (options.baseUrl == null && _resolvedUrl != null) { + options = { ...options, baseUrl: _resolvedUrl }; } + const _baseUrl = _resolvedUrl ?? options.baseUrl; if ("@type" in values) { span.setAttribute("activitypub.object.type", values["@type"]); @@ -21843,9 +21898,9 @@ get manualApprovals(): (URL)[] { : "" ) ) - : URL.canParse(v["@id"]) && (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) + : URL.canParse(v["@id"]) && _baseUrl ? new URL(v["@id"]) - : new URL(v["@id"], (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl))); + : new URL(v["@id"], _baseUrl); if (typeof decoded === "undefined") continue; _2rFyCF14HoyNjitj9PmCzek5iSsg_automaticApproval.push(decoded); } @@ -21876,9 +21931,9 @@ get manualApprovals(): (URL)[] { : "" ) ) - : URL.canParse(v["@id"]) && (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) + : URL.canParse(v["@id"]) && _baseUrl ? new URL(v["@id"]) - : new URL(v["@id"], (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl))); + : new URL(v["@id"], _baseUrl); if (typeof decoded === "undefined") continue; _sxj8y5XMMMBWUnRYFw85MKedCMj_manualApproval.push(decoded); } @@ -22838,9 +22893,14 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { - options = { ...options, baseUrl: new URL(values["@id"]) }; + const _resolvedUrl = + values["@id"] != null && URL.canParse(values["@id"], options.baseUrl) + ? new URL(values["@id"], options.baseUrl) + : undefined; + if (options.baseUrl == null && _resolvedUrl != null) { + options = { ...options, baseUrl: _resolvedUrl }; } + const _baseUrl = _resolvedUrl ?? options.baseUrl; if ("@type" in values) { span.setAttribute("activitypub.object.type", values["@type"]); @@ -22889,7 +22949,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === "undefined") continue; _2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject.push(decoded); @@ -22922,7 +22982,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === "undefined") continue; _2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget.push(decoded); @@ -23286,9 +23346,14 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { - options = { ...options, baseUrl: new URL(values["@id"]) }; + const _resolvedUrl = + values["@id"] != null && URL.canParse(values["@id"], options.baseUrl) + ? new URL(values["@id"], options.baseUrl) + : undefined; + if (options.baseUrl == null && _resolvedUrl != null) { + options = { ...options, baseUrl: _resolvedUrl }; } + const _baseUrl = _resolvedUrl ?? options.baseUrl; if ("@type" in values) { span.setAttribute("activitypub.object.type", values["@type"]); @@ -24198,9 +24263,14 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { - options = { ...options, baseUrl: new URL(values["@id"]) }; + const _resolvedUrl = + values["@id"] != null && URL.canParse(values["@id"], options.baseUrl) + ? new URL(values["@id"], options.baseUrl) + : undefined; + if (options.baseUrl == null && _resolvedUrl != null) { + options = { ...options, baseUrl: _resolvedUrl }; } + const _baseUrl = _resolvedUrl ?? options.baseUrl; if ("@type" in values) { span.setAttribute("activitypub.object.type", values["@type"]); @@ -24249,7 +24319,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === "undefined") continue; _2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject.push(decoded); @@ -24282,7 +24352,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === "undefined") continue; _2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget.push(decoded); @@ -24646,9 +24716,14 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { - options = { ...options, baseUrl: new URL(values["@id"]) }; + const _resolvedUrl = + values["@id"] != null && URL.canParse(values["@id"], options.baseUrl) + ? new URL(values["@id"], options.baseUrl) + : undefined; + if (options.baseUrl == null && _resolvedUrl != null) { + options = { ...options, baseUrl: _resolvedUrl }; } + const _baseUrl = _resolvedUrl ?? options.baseUrl; if ("@type" in values) { span.setAttribute("activitypub.object.type", values["@type"]); @@ -25557,9 +25632,14 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { - options = { ...options, baseUrl: new URL(values["@id"]) }; + const _resolvedUrl = + values["@id"] != null && URL.canParse(values["@id"], options.baseUrl) + ? new URL(values["@id"], options.baseUrl) + : undefined; + if (options.baseUrl == null && _resolvedUrl != null) { + options = { ...options, baseUrl: _resolvedUrl }; } + const _baseUrl = _resolvedUrl ?? options.baseUrl; if ("@type" in values) { span.setAttribute("activitypub.object.type", values["@type"]); @@ -25608,7 +25688,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === "undefined") continue; _2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject.push(decoded); @@ -25641,7 +25721,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === "undefined") continue; _2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget.push(decoded); @@ -26005,9 +26085,14 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { - options = { ...options, baseUrl: new URL(values["@id"]) }; + const _resolvedUrl = + values["@id"] != null && URL.canParse(values["@id"], options.baseUrl) + ? new URL(values["@id"], options.baseUrl) + : undefined; + if (options.baseUrl == null && _resolvedUrl != null) { + options = { ...options, baseUrl: _resolvedUrl }; } + const _baseUrl = _resolvedUrl ?? options.baseUrl; if ("@type" in values) { span.setAttribute("activitypub.object.type", values["@type"]); @@ -26450,9 +26535,14 @@ get endpoints(): (URL)[] { // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { - options = { ...options, baseUrl: new URL(values["@id"]) }; + const _resolvedUrl = + values["@id"] != null && URL.canParse(values["@id"], options.baseUrl) + ? new URL(values["@id"], options.baseUrl) + : undefined; + if (options.baseUrl == null && _resolvedUrl != null) { + options = { ...options, baseUrl: _resolvedUrl }; } + const _baseUrl = _resolvedUrl ?? options.baseUrl; if ("@type" in values) { span.setAttribute("activitypub.object.type", values["@type"]); @@ -26499,9 +26589,9 @@ get endpoints(): (URL)[] { : "" ) ) - : URL.canParse(v["@id"]) && (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) + : URL.canParse(v["@id"]) && _baseUrl ? new URL(v["@id"]) - : new URL(v["@id"], (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl))); + : new URL(v["@id"], _baseUrl); if (typeof decoded === "undefined") continue; _2KM4fetG6FTJ1cphj76rzJ8Dyv7p_serviceEndpoint.push(decoded); } @@ -26803,9 +26893,14 @@ endpoints?: (URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { - options = { ...options, baseUrl: new URL(values["@id"]) }; + const _resolvedUrl = + values["@id"] != null && URL.canParse(values["@id"], options.baseUrl) + ? new URL(values["@id"], options.baseUrl) + : undefined; + if (options.baseUrl == null && _resolvedUrl != null) { + options = { ...options, baseUrl: _resolvedUrl }; } + const _baseUrl = _resolvedUrl ?? options.baseUrl; if ("@type" in values) { span.setAttribute("activitypub.object.type", values["@type"]); @@ -27621,9 +27716,14 @@ cryptosuite?: "eddsa-jcs-2022" | null;verificationMethod?: Multikey | URL | null // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { - options = { ...options, baseUrl: new URL(values["@id"]) }; + const _resolvedUrl = + values["@id"] != null && URL.canParse(values["@id"], options.baseUrl) + ? new URL(values["@id"], options.baseUrl) + : undefined; + if (options.baseUrl == null && _resolvedUrl != null) { + options = { ...options, baseUrl: _resolvedUrl }; } + const _baseUrl = _resolvedUrl ?? options.baseUrl; if ("@type" in values) { span.setAttribute("activitypub.object.type", values["@type"]); @@ -27685,7 +27785,7 @@ cryptosuite?: "eddsa-jcs-2022" | null;verificationMethod?: Multikey | URL | null const decoded = await Multikey.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === "undefined") continue; _2mHVKxqA7zncjveJrDEo3pWpMZqg_verificationMethod.push(decoded); @@ -28590,9 +28690,14 @@ owner?: Application | Group | Organization | Person | Service | URL | null;publi // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { - options = { ...options, baseUrl: new URL(values["@id"]) }; + const _resolvedUrl = + values["@id"] != null && URL.canParse(values["@id"], options.baseUrl) + ? new URL(values["@id"], options.baseUrl) + : undefined; + if (options.baseUrl == null && _resolvedUrl != null) { + options = { ...options, baseUrl: _resolvedUrl }; } + const _baseUrl = _resolvedUrl ?? options.baseUrl; if ("@type" in values) { span.setAttribute("activitypub.object.type", values["@type"]); @@ -28638,23 +28743,23 @@ owner?: Application | Group | Organization | Person | Service | URL | null;publi typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Application") ? await Application.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Group") ? await Group.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Organization") ? await Organization.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Person") ? await Person.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Service") ? await Service.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : undefined ; if (typeof decoded === "undefined") continue; @@ -29472,9 +29577,14 @@ controller?: Application | Group | Organization | Person | Service | URL | null; // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { - options = { ...options, baseUrl: new URL(values["@id"]) }; + const _resolvedUrl = + values["@id"] != null && URL.canParse(values["@id"], options.baseUrl) + ? new URL(values["@id"], options.baseUrl) + : undefined; + if (options.baseUrl == null && _resolvedUrl != null) { + options = { ...options, baseUrl: _resolvedUrl }; } + const _baseUrl = _resolvedUrl ?? options.baseUrl; if ("@type" in values) { span.setAttribute("activitypub.object.type", values["@type"]); @@ -29520,23 +29630,23 @@ controller?: Application | Group | Organization | Person | Service | URL | null; typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Application") ? await Application.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Group") ? await Group.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Organization") ? await Organization.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Person") ? await Person.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Service") ? await Service.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : undefined ; if (typeof decoded === "undefined") continue; @@ -30307,9 +30417,14 @@ action?: string | null;resourceConformsTo?: URL | null;resourceQuantity?: Measur // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { - options = { ...options, baseUrl: new URL(values["@id"]) }; + const _resolvedUrl = + values["@id"] != null && URL.canParse(values["@id"], options.baseUrl) + ? new URL(values["@id"], options.baseUrl) + : undefined; + if (options.baseUrl == null && _resolvedUrl != null) { + options = { ...options, baseUrl: _resolvedUrl }; } + const _baseUrl = _resolvedUrl ?? options.baseUrl; if ("@type" in values) { span.setAttribute("activitypub.object.type", values["@type"]); @@ -30370,9 +30485,9 @@ action?: string | null;resourceConformsTo?: URL | null;resourceQuantity?: Measur : "" ) ) - : URL.canParse(v["@id"]) && (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) + : URL.canParse(v["@id"]) && _baseUrl ? new URL(v["@id"]) - : new URL(v["@id"], (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl))); + : new URL(v["@id"], _baseUrl); if (typeof decoded === "undefined") continue; _BBAeMUUQDwBQn6cvu3P2Csd6b6h_resourceConformsTo.push(decoded); } @@ -30392,7 +30507,7 @@ action?: string | null;resourceConformsTo?: URL | null;resourceQuantity?: Measur const decoded = await Measure.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === "undefined") continue; _2dLfqTbbRiggEcMQWbHpxkQrtmrc_resourceQuantity.push(decoded); @@ -30413,7 +30528,7 @@ action?: string | null;resourceConformsTo?: URL | null;resourceQuantity?: Measur const decoded = await Measure.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === "undefined") continue; _YmNSnuih3Zk4VdR5JPVnQYroLAh_availableQuantity.push(decoded); @@ -30434,7 +30549,7 @@ action?: string | null;resourceConformsTo?: URL | null;resourceQuantity?: Measur const decoded = await Measure.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === "undefined") continue; _3XueAFds2NBrqNpnV8b7aC8hV72S_minimumQuantity.push(decoded); @@ -31179,9 +31294,14 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { - options = { ...options, baseUrl: new URL(values["@id"]) }; + const _resolvedUrl = + values["@id"] != null && URL.canParse(values["@id"], options.baseUrl) + ? new URL(values["@id"], options.baseUrl) + : undefined; + if (options.baseUrl == null && _resolvedUrl != null) { + options = { ...options, baseUrl: _resolvedUrl }; } + const _baseUrl = _resolvedUrl ?? options.baseUrl; if ("@type" in values) { span.setAttribute("activitypub.object.type", values["@type"]); @@ -31236,7 +31356,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Intent.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === "undefined") continue; _sS5LvXX8cn4c3x6ux836AwYbTyJ_publishes.push(decoded); @@ -31257,7 +31377,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Intent.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === "undefined") continue; _Z4ntJgFwR9BaNTbFvkRTGNEwUwy_reciprocal.push(decoded); @@ -31672,9 +31792,14 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { - options = { ...options, baseUrl: new URL(values["@id"]) }; + const _resolvedUrl = + values["@id"] != null && URL.canParse(values["@id"], options.baseUrl) + ? new URL(values["@id"], options.baseUrl) + : undefined; + if (options.baseUrl == null && _resolvedUrl != null) { + options = { ...options, baseUrl: _resolvedUrl }; } + const _baseUrl = _resolvedUrl ?? options.baseUrl; if ("@type" in values) { span.setAttribute("activitypub.object.type", values["@type"]); @@ -32012,9 +32137,14 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { - options = { ...options, baseUrl: new URL(values["@id"]) }; + const _resolvedUrl = + values["@id"] != null && URL.canParse(values["@id"], options.baseUrl) + ? new URL(values["@id"], options.baseUrl) + : undefined; + if (options.baseUrl == null && _resolvedUrl != null) { + options = { ...options, baseUrl: _resolvedUrl }; } + const _baseUrl = _resolvedUrl ?? options.baseUrl; if ("@type" in values) { span.setAttribute("activitypub.object.type", values["@type"]); @@ -32347,9 +32477,14 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { - options = { ...options, baseUrl: new URL(values["@id"]) }; + const _resolvedUrl = + values["@id"] != null && URL.canParse(values["@id"], options.baseUrl) + ? new URL(values["@id"], options.baseUrl) + : undefined; + if (options.baseUrl == null && _resolvedUrl != null) { + options = { ...options, baseUrl: _resolvedUrl }; } + const _baseUrl = _resolvedUrl ?? options.baseUrl; if ("@type" in values) { span.setAttribute("activitypub.object.type", values["@type"]); @@ -37928,9 +38063,14 @@ get preferredUsernames(): ((string | LanguageString))[] { // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { - options = { ...options, baseUrl: new URL(values["@id"]) }; + const _resolvedUrl = + values["@id"] != null && URL.canParse(values["@id"], options.baseUrl) + ? new URL(values["@id"], options.baseUrl) + : undefined; + if (options.baseUrl == null && _resolvedUrl != null) { + options = { ...options, baseUrl: _resolvedUrl }; } + const _baseUrl = _resolvedUrl ?? options.baseUrl; if ("@type" in values) { span.setAttribute("activitypub.object.type", values["@type"]); @@ -38003,7 +38143,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await CryptographicKey.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === "undefined") continue; _axq166E2eZADq34V4MYUc8KMZdC_publicKey.push(decoded); @@ -38036,7 +38176,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Multikey.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === "undefined") continue; _4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.push(decoded); @@ -38089,11 +38229,11 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#OrderedCollection") ? await OrderedCollection.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#OrderedCollectionPage") ? await OrderedCollectionPage.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : undefined ; if (typeof decoded === "undefined") continue; @@ -38130,11 +38270,11 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#OrderedCollection") ? await OrderedCollection.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#OrderedCollectionPage") ? await OrderedCollectionPage.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : undefined ; if (typeof decoded === "undefined") continue; @@ -38169,7 +38309,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === "undefined") continue; _3yAv8jymNfNuJUDuBzJ1NQhdbAee_following.push(decoded); @@ -38202,7 +38342,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === "undefined") continue; _BBCTgfphhsFzpVfKTykGSpBNwoA_followers.push(decoded); @@ -38235,7 +38375,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === "undefined") continue; _3bgkPwJanyTCoVFM9ovRcus8tKkU_liked.push(decoded); @@ -38268,7 +38408,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === "undefined") continue; _4N1vBJzXDf8NbBumeECQMFvKetja_featured.push(decoded); @@ -38301,7 +38441,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === "undefined") continue; _2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags.push(decoded); @@ -38334,7 +38474,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === "undefined") continue; _3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.push(decoded); @@ -38355,7 +38495,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Endpoints.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === "undefined") continue; _sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints.push(decoded); @@ -38462,23 +38602,23 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Application") ? await Application.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Group") ? await Group.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Organization") ? await Organization.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Person") ? await Person.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Service") ? await Service.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : undefined ; if (typeof decoded === "undefined") continue; @@ -38515,23 +38655,23 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Application") ? await Application.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Group") ? await Group.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Organization") ? await Organization.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Person") ? await Person.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Service") ? await Service.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : undefined ; if (typeof decoded === "undefined") continue; @@ -38566,7 +38706,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await DidService.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === "undefined") continue; _4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.push(decoded); @@ -39391,9 +39531,14 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { - options = { ...options, baseUrl: new URL(values["@id"]) }; + const _resolvedUrl = + values["@id"] != null && URL.canParse(values["@id"], options.baseUrl) + ? new URL(values["@id"], options.baseUrl) + : undefined; + if (options.baseUrl == null && _resolvedUrl != null) { + options = { ...options, baseUrl: _resolvedUrl }; } + const _baseUrl = _resolvedUrl ?? options.baseUrl; if ("@type" in values) { span.setAttribute("activitypub.object.type", values["@type"]); @@ -39738,9 +39883,14 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { - options = { ...options, baseUrl: new URL(values["@id"]) }; + const _resolvedUrl = + values["@id"] != null && URL.canParse(values["@id"], options.baseUrl) + ? new URL(values["@id"], options.baseUrl) + : undefined; + if (options.baseUrl == null && _resolvedUrl != null) { + options = { ...options, baseUrl: _resolvedUrl }; } + const _baseUrl = _resolvedUrl ?? options.baseUrl; if ("@type" in values) { span.setAttribute("activitypub.object.type", values["@type"]); @@ -40739,9 +40889,14 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { - options = { ...options, baseUrl: new URL(values["@id"]) }; + const _resolvedUrl = + values["@id"] != null && URL.canParse(values["@id"], options.baseUrl) + ? new URL(values["@id"], options.baseUrl) + : undefined; + if (options.baseUrl == null && _resolvedUrl != null) { + options = { ...options, baseUrl: _resolvedUrl }; } + const _baseUrl = _resolvedUrl ?? options.baseUrl; if ("@type" in values) { span.setAttribute("activitypub.object.type", values["@type"]); @@ -40790,7 +40945,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === "undefined") continue; _3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote.push(decoded); @@ -40849,7 +41004,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await QuoteAuthorization.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === "undefined") continue; _ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization.push(decoded); @@ -41380,9 +41535,14 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { - options = { ...options, baseUrl: new URL(values["@id"]) }; + const _resolvedUrl = + values["@id"] != null && URL.canParse(values["@id"], options.baseUrl) + ? new URL(values["@id"], options.baseUrl) + : undefined; + if (options.baseUrl == null && _resolvedUrl != null) { + options = { ...options, baseUrl: _resolvedUrl }; } + const _baseUrl = _resolvedUrl ?? options.baseUrl; if ("@type" in values) { span.setAttribute("activitypub.object.type", values["@type"]); @@ -41809,9 +41969,14 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { - options = { ...options, baseUrl: new URL(values["@id"]) }; + const _resolvedUrl = + values["@id"] != null && URL.canParse(values["@id"], options.baseUrl) + ? new URL(values["@id"], options.baseUrl) + : undefined; + if (options.baseUrl == null && _resolvedUrl != null) { + options = { ...options, baseUrl: _resolvedUrl }; } + const _baseUrl = _resolvedUrl ?? options.baseUrl; if ("@type" in values) { span.setAttribute("activitypub.object.type", values["@type"]); @@ -42143,9 +42308,14 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { - options = { ...options, baseUrl: new URL(values["@id"]) }; + const _resolvedUrl = + values["@id"] != null && URL.canParse(values["@id"], options.baseUrl) + ? new URL(values["@id"], options.baseUrl) + : undefined; + if (options.baseUrl == null && _resolvedUrl != null) { + options = { ...options, baseUrl: _resolvedUrl }; } + const _baseUrl = _resolvedUrl ?? options.baseUrl; if ("@type" in values) { span.setAttribute("activitypub.object.type", values["@type"]); @@ -42483,9 +42653,14 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { - options = { ...options, baseUrl: new URL(values["@id"]) }; + const _resolvedUrl = + values["@id"] != null && URL.canParse(values["@id"], options.baseUrl) + ? new URL(values["@id"], options.baseUrl) + : undefined; + if (options.baseUrl == null && _resolvedUrl != null) { + options = { ...options, baseUrl: _resolvedUrl }; } + const _baseUrl = _resolvedUrl ?? options.baseUrl; if ("@type" in values) { span.setAttribute("activitypub.object.type", values["@type"]); @@ -46330,9 +46505,14 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { - options = { ...options, baseUrl: new URL(values["@id"]) }; + const _resolvedUrl = + values["@id"] != null && URL.canParse(values["@id"], options.baseUrl) + ? new URL(values["@id"], options.baseUrl) + : undefined; + if (options.baseUrl == null && _resolvedUrl != null) { + options = { ...options, baseUrl: _resolvedUrl }; } + const _baseUrl = _resolvedUrl ?? options.baseUrl; if ("@type" in values) { span.setAttribute("activitypub.object.type", values["@type"]); @@ -46411,7 +46591,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await CollectionPage.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === "undefined") continue; _3UyUdxnyn6cDn53QKrh4MBiearma_current.push(decoded); @@ -46444,7 +46624,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await CollectionPage.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === "undefined") continue; _J52RqweMe6hhv7RnLJMC8BExTE5_first.push(decoded); @@ -46477,7 +46657,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await CollectionPage.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === "undefined") continue; _gyJJnyEFnuNVi1HFZKfAn3Hfn26_last.push(decoded); @@ -46513,12 +46693,12 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu && Array.isArray(v["@type"])&& ["https://www.w3.org/ns/activitystreams#Object","http://joinmastodon.org/ns#Emoji","http://litepub.social/ns#ChatMessage","https://gotosocial.org/ns#AnnounceAuthorization","https://gotosocial.org/ns#LikeApproval","https://gotosocial.org/ns#ReplyAuthorization","https://w3id.org/fep/044f#QuoteAuthorization","https://w3id.org/valueflows/ont/vf#Proposal","https://www.w3.org/ns/activitystreams#Activity","http://litepub.social/ns#EmojiReact","https://gotosocial.org/ns#AnnounceRequest","https://gotosocial.org/ns#LikeRequest","https://gotosocial.org/ns#ReplyRequest","https://w3id.org/fep/044f#QuoteRequest","https://www.w3.org/ns/activitystreams#Accept","https://www.w3.org/ns/activitystreams#TentativeAccept","https://www.w3.org/ns/activitystreams#Add","https://www.w3.org/ns/activitystreams#Announce","https://www.w3.org/ns/activitystreams#Create","https://www.w3.org/ns/activitystreams#Delete","https://www.w3.org/ns/activitystreams#Dislike","https://www.w3.org/ns/activitystreams#Flag","https://www.w3.org/ns/activitystreams#Follow","https://www.w3.org/ns/activitystreams#Ignore","https://www.w3.org/ns/activitystreams#Block","https://www.w3.org/ns/activitystreams#IntransitiveActivity","https://www.w3.org/ns/activitystreams#Arrive","https://www.w3.org/ns/activitystreams#Question","https://www.w3.org/ns/activitystreams#Travel","https://www.w3.org/ns/activitystreams#Join","https://www.w3.org/ns/activitystreams#Leave","https://www.w3.org/ns/activitystreams#Like","https://www.w3.org/ns/activitystreams#Listen","https://www.w3.org/ns/activitystreams#Move","https://www.w3.org/ns/activitystreams#Offer","https://www.w3.org/ns/activitystreams#Invite","https://www.w3.org/ns/activitystreams#Read","https://www.w3.org/ns/activitystreams#Reject","https://www.w3.org/ns/activitystreams#TentativeReject","https://www.w3.org/ns/activitystreams#Remove","https://www.w3.org/ns/activitystreams#Undo","https://www.w3.org/ns/activitystreams#Update","https://www.w3.org/ns/activitystreams#View","https://www.w3.org/ns/activitystreams#Application","https://www.w3.org/ns/activitystreams#Article","https://www.w3.org/ns/activitystreams#Collection","https://www.w3.org/ns/activitystreams#CollectionPage","https://www.w3.org/ns/activitystreams#OrderedCollectionPage","https://www.w3.org/ns/activitystreams#OrderedCollection","https://www.w3.org/ns/activitystreams#Document","https://www.w3.org/ns/activitystreams#Audio","https://www.w3.org/ns/activitystreams#Image","https://www.w3.org/ns/activitystreams#Page","https://www.w3.org/ns/activitystreams#Video","https://www.w3.org/ns/activitystreams#Event","https://www.w3.org/ns/activitystreams#Group","https://www.w3.org/ns/activitystreams#Note","https://www.w3.org/ns/activitystreams#Organization","https://www.w3.org/ns/activitystreams#Person","https://www.w3.org/ns/activitystreams#Place","https://www.w3.org/ns/activitystreams#Profile","https://www.w3.org/ns/activitystreams#Relationship","https://www.w3.org/ns/activitystreams#Service","https://www.w3.org/ns/activitystreams#Tombstone"].some( t => v["@type"].includes(t)) ? await Object.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& ["https://www.w3.org/ns/activitystreams#Link","https://www.w3.org/ns/activitystreams#Hashtag","https://www.w3.org/ns/activitystreams#Mention"].some( t => v["@type"].includes(t)) ? await Link.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : undefined ; if (typeof decoded === "undefined") continue; @@ -46553,7 +46733,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === "undefined") continue; _4TB9Qd9ddtcZEpMfzbHhzafE6jaJ_likesOf.push(decoded); @@ -46586,7 +46766,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === "undefined") continue; _3manzgeKiPsugpztKGiaUUwJ3ito_sharesOf.push(decoded); @@ -46619,7 +46799,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === "undefined") continue; _3T3oGm3twpcQUcrnMisXQtmDZ32X_repliesOf.push(decoded); @@ -46652,7 +46832,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === "undefined") continue; _2bvRkAFZjMfVD8jiUWZJr5YokSeN_inboxOf.push(decoded); @@ -46685,7 +46865,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === "undefined") continue; _4AHzVZDxHjK6uEWa9UiKHGK34yYm_outboxOf.push(decoded); @@ -46718,7 +46898,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === "undefined") continue; _41aoZ5M6yRUHy3Zx8q6iuZQxtopb_followersOf.push(decoded); @@ -46751,7 +46931,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === "undefined") continue; _2nXT2Ah42UjEEQF5oJQ39CbKB1xj_followingOf.push(decoded); @@ -46784,7 +46964,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === "undefined") continue; _2bsySzmT3qEZcrnoe3tZ5xBjXSju_likedOf.push(decoded); @@ -48217,9 +48397,14 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { - options = { ...options, baseUrl: new URL(values["@id"]) }; + const _resolvedUrl = + values["@id"] != null && URL.canParse(values["@id"], options.baseUrl) + ? new URL(values["@id"], options.baseUrl) + : undefined; + if (options.baseUrl == null && _resolvedUrl != null) { + options = { ...options, baseUrl: _resolvedUrl }; } + const _baseUrl = _resolvedUrl ?? options.baseUrl; if ("@type" in values) { span.setAttribute("activitypub.object.type", values["@type"]); @@ -48272,7 +48457,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === "undefined") continue; _2kWgBhQKjEauxx8C6qF3ZQamK4Le_partOf.push(decoded); @@ -48305,7 +48490,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await CollectionPage.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === "undefined") continue; _3BT4kQLcXhHx7TAWaNDKh8nFn9eY_next.push(decoded); @@ -48338,7 +48523,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await CollectionPage.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === "undefined") continue; _3b8yG8tDNzQFFEnWhCc13G8eHooA_prev.push(decoded); @@ -48712,9 +48897,14 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { - options = { ...options, baseUrl: new URL(values["@id"]) }; + const _resolvedUrl = + values["@id"] != null && URL.canParse(values["@id"], options.baseUrl) + ? new URL(values["@id"], options.baseUrl) + : undefined; + if (options.baseUrl == null && _resolvedUrl != null) { + options = { ...options, baseUrl: _resolvedUrl }; } + const _baseUrl = _resolvedUrl ?? options.baseUrl; if ("@type" in values) { span.setAttribute("activitypub.object.type", values["@type"]); @@ -49046,9 +49236,14 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { - options = { ...options, baseUrl: new URL(values["@id"]) }; + const _resolvedUrl = + values["@id"] != null && URL.canParse(values["@id"], options.baseUrl) + ? new URL(values["@id"], options.baseUrl) + : undefined; + if (options.baseUrl == null && _resolvedUrl != null) { + options = { ...options, baseUrl: _resolvedUrl }; } + const _baseUrl = _resolvedUrl ?? options.baseUrl; if ("@type" in values) { span.setAttribute("activitypub.object.type", values["@type"]); @@ -49378,9 +49573,14 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { - options = { ...options, baseUrl: new URL(values["@id"]) }; + const _resolvedUrl = + values["@id"] != null && URL.canParse(values["@id"], options.baseUrl) + ? new URL(values["@id"], options.baseUrl) + : undefined; + if (options.baseUrl == null && _resolvedUrl != null) { + options = { ...options, baseUrl: _resolvedUrl }; } + const _baseUrl = _resolvedUrl ?? options.baseUrl; if ("@type" in values) { span.setAttribute("activitypub.object.type", values["@type"]); @@ -50172,9 +50372,14 @@ proxyUrl?: URL | null;oauthAuthorizationEndpoint?: URL | null;oauthTokenEndpoint // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { - options = { ...options, baseUrl: new URL(values["@id"]) }; + const _resolvedUrl = + values["@id"] != null && URL.canParse(values["@id"], options.baseUrl) + ? new URL(values["@id"], options.baseUrl) + : undefined; + if (options.baseUrl == null && _resolvedUrl != null) { + options = { ...options, baseUrl: _resolvedUrl }; } + const _baseUrl = _resolvedUrl ?? options.baseUrl; if ("@type" in values) { span.setAttribute("activitypub.object.type", values["@type"]); @@ -50217,9 +50422,9 @@ proxyUrl?: URL | null;oauthAuthorizationEndpoint?: URL | null;oauthTokenEndpoint : "" ) ) - : URL.canParse(v["@id"]) && (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) + : URL.canParse(v["@id"]) && _baseUrl ? new URL(v["@id"]) - : new URL(v["@id"], (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl))); + : new URL(v["@id"], _baseUrl); if (typeof decoded === "undefined") continue; _2JCYDbSxEHCCLdBYed33cCETfGyR_proxyUrl.push(decoded); } @@ -50250,9 +50455,9 @@ proxyUrl?: URL | null;oauthAuthorizationEndpoint?: URL | null;oauthTokenEndpoint : "" ) ) - : URL.canParse(v["@id"]) && (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) + : URL.canParse(v["@id"]) && _baseUrl ? new URL(v["@id"]) - : new URL(v["@id"], (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl))); + : new URL(v["@id"], _baseUrl); if (typeof decoded === "undefined") continue; _25S6UmgzDead8hxL5sQFezZTAusd_oauthAuthorizationEndpoint.push(decoded); } @@ -50283,9 +50488,9 @@ proxyUrl?: URL | null;oauthAuthorizationEndpoint?: URL | null;oauthTokenEndpoint : "" ) ) - : URL.canParse(v["@id"]) && (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) + : URL.canParse(v["@id"]) && _baseUrl ? new URL(v["@id"]) - : new URL(v["@id"], (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl))); + : new URL(v["@id"], _baseUrl); if (typeof decoded === "undefined") continue; _iAMxqrSba7yBCRB1FZ5kEVdKEZ3_oauthTokenEndpoint.push(decoded); } @@ -50316,9 +50521,9 @@ proxyUrl?: URL | null;oauthAuthorizationEndpoint?: URL | null;oauthTokenEndpoint : "" ) ) - : URL.canParse(v["@id"]) && (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) + : URL.canParse(v["@id"]) && _baseUrl ? new URL(v["@id"]) - : new URL(v["@id"], (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl))); + : new URL(v["@id"], _baseUrl); if (typeof decoded === "undefined") continue; _8Bx9qN8oU7Bpt2xi6khaxWp1gMr_provideClientKey.push(decoded); } @@ -50349,9 +50554,9 @@ proxyUrl?: URL | null;oauthAuthorizationEndpoint?: URL | null;oauthTokenEndpoint : "" ) ) - : URL.canParse(v["@id"]) && (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) + : URL.canParse(v["@id"]) && _baseUrl ? new URL(v["@id"]) - : new URL(v["@id"], (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl))); + : new URL(v["@id"], _baseUrl); if (typeof decoded === "undefined") continue; _3dU7PMVQZJpsCpo2F4RQXxBXdPmS_signClientKey.push(decoded); } @@ -50382,9 +50587,9 @@ proxyUrl?: URL | null;oauthAuthorizationEndpoint?: URL | null;oauthTokenEndpoint : "" ) ) - : URL.canParse(v["@id"]) && (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) + : URL.canParse(v["@id"]) && _baseUrl ? new URL(v["@id"]) - : new URL(v["@id"], (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl))); + : new URL(v["@id"], _baseUrl); if (typeof decoded === "undefined") continue; _3JprUSDLVqqX4dwHRi37qGZZCRCc_sharedInbox.push(decoded); } @@ -50837,9 +51042,14 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { - options = { ...options, baseUrl: new URL(values["@id"]) }; + const _resolvedUrl = + values["@id"] != null && URL.canParse(values["@id"], options.baseUrl) + ? new URL(values["@id"], options.baseUrl) + : undefined; + if (options.baseUrl == null && _resolvedUrl != null) { + options = { ...options, baseUrl: _resolvedUrl }; } + const _baseUrl = _resolvedUrl ?? options.baseUrl; if ("@type" in values) { span.setAttribute("activitypub.object.type", values["@type"]); @@ -51172,9 +51382,14 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { - options = { ...options, baseUrl: new URL(values["@id"]) }; + const _resolvedUrl = + values["@id"] != null && URL.canParse(values["@id"], options.baseUrl) + ? new URL(values["@id"], options.baseUrl) + : undefined; + if (options.baseUrl == null && _resolvedUrl != null) { + options = { ...options, baseUrl: _resolvedUrl }; } + const _baseUrl = _resolvedUrl ?? options.baseUrl; if ("@type" in values) { span.setAttribute("activitypub.object.type", values["@type"]); @@ -51508,9 +51723,14 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { - options = { ...options, baseUrl: new URL(values["@id"]) }; + const _resolvedUrl = + values["@id"] != null && URL.canParse(values["@id"], options.baseUrl) + ? new URL(values["@id"], options.baseUrl) + : undefined; + if (options.baseUrl == null && _resolvedUrl != null) { + options = { ...options, baseUrl: _resolvedUrl }; } + const _baseUrl = _resolvedUrl ?? options.baseUrl; if ("@type" in values) { span.setAttribute("activitypub.object.type", values["@type"]); @@ -57089,9 +57309,14 @@ get preferredUsernames(): ((string | LanguageString))[] { // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { - options = { ...options, baseUrl: new URL(values["@id"]) }; + const _resolvedUrl = + values["@id"] != null && URL.canParse(values["@id"], options.baseUrl) + ? new URL(values["@id"], options.baseUrl) + : undefined; + if (options.baseUrl == null && _resolvedUrl != null) { + options = { ...options, baseUrl: _resolvedUrl }; } + const _baseUrl = _resolvedUrl ?? options.baseUrl; if ("@type" in values) { span.setAttribute("activitypub.object.type", values["@type"]); @@ -57164,7 +57389,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await CryptographicKey.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === "undefined") continue; _axq166E2eZADq34V4MYUc8KMZdC_publicKey.push(decoded); @@ -57197,7 +57422,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Multikey.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === "undefined") continue; _4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.push(decoded); @@ -57250,11 +57475,11 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#OrderedCollection") ? await OrderedCollection.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#OrderedCollectionPage") ? await OrderedCollectionPage.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : undefined ; if (typeof decoded === "undefined") continue; @@ -57291,11 +57516,11 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#OrderedCollection") ? await OrderedCollection.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#OrderedCollectionPage") ? await OrderedCollectionPage.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : undefined ; if (typeof decoded === "undefined") continue; @@ -57330,7 +57555,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === "undefined") continue; _3yAv8jymNfNuJUDuBzJ1NQhdbAee_following.push(decoded); @@ -57363,7 +57588,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === "undefined") continue; _BBCTgfphhsFzpVfKTykGSpBNwoA_followers.push(decoded); @@ -57396,7 +57621,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === "undefined") continue; _3bgkPwJanyTCoVFM9ovRcus8tKkU_liked.push(decoded); @@ -57429,7 +57654,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === "undefined") continue; _4N1vBJzXDf8NbBumeECQMFvKetja_featured.push(decoded); @@ -57462,7 +57687,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === "undefined") continue; _2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags.push(decoded); @@ -57495,7 +57720,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === "undefined") continue; _3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.push(decoded); @@ -57516,7 +57741,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Endpoints.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === "undefined") continue; _sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints.push(decoded); @@ -57623,23 +57848,23 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Application") ? await Application.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Group") ? await Group.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Organization") ? await Organization.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Person") ? await Person.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Service") ? await Service.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : undefined ; if (typeof decoded === "undefined") continue; @@ -57676,23 +57901,23 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Application") ? await Application.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Group") ? await Group.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Organization") ? await Organization.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Person") ? await Person.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Service") ? await Service.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : undefined ; if (typeof decoded === "undefined") continue; @@ -57727,7 +57952,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await DidService.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === "undefined") continue; _4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.push(decoded); @@ -59522,9 +59747,14 @@ get names(): ((string | LanguageString))[] { // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { - options = { ...options, baseUrl: new URL(values["@id"]) }; + const _resolvedUrl = + values["@id"] != null && URL.canParse(values["@id"], options.baseUrl) + ? new URL(values["@id"], options.baseUrl) + : undefined; + if (options.baseUrl == null && _resolvedUrl != null) { + options = { ...options, baseUrl: _resolvedUrl }; } + const _baseUrl = _resolvedUrl ?? options.baseUrl; if ("@type" in values) { span.setAttribute("activitypub.object.type", values["@type"]); @@ -59575,9 +59805,9 @@ get names(): ((string | LanguageString))[] { : "" ) ) - : URL.canParse(v["@id"]) && (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) + : URL.canParse(v["@id"]) && _baseUrl ? new URL(v["@id"]) - : new URL(v["@id"], (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl))); + : new URL(v["@id"], _baseUrl); if (typeof decoded === "undefined") continue; _pVjLsybKQdmkjuU7MHjiVmNnuj7_href.push(decoded); } @@ -59726,12 +59956,12 @@ get names(): ((string | LanguageString))[] { && Array.isArray(v["@type"])&& ["https://www.w3.org/ns/activitystreams#Link","https://www.w3.org/ns/activitystreams#Hashtag","https://www.w3.org/ns/activitystreams#Mention"].some( t => v["@type"].includes(t)) ? await Link.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& ["https://www.w3.org/ns/activitystreams#Object","http://joinmastodon.org/ns#Emoji","http://litepub.social/ns#ChatMessage","https://gotosocial.org/ns#AnnounceAuthorization","https://gotosocial.org/ns#LikeApproval","https://gotosocial.org/ns#ReplyAuthorization","https://w3id.org/fep/044f#QuoteAuthorization","https://w3id.org/valueflows/ont/vf#Proposal","https://www.w3.org/ns/activitystreams#Activity","http://litepub.social/ns#EmojiReact","https://gotosocial.org/ns#AnnounceRequest","https://gotosocial.org/ns#LikeRequest","https://gotosocial.org/ns#ReplyRequest","https://w3id.org/fep/044f#QuoteRequest","https://www.w3.org/ns/activitystreams#Accept","https://www.w3.org/ns/activitystreams#TentativeAccept","https://www.w3.org/ns/activitystreams#Add","https://www.w3.org/ns/activitystreams#Announce","https://www.w3.org/ns/activitystreams#Create","https://www.w3.org/ns/activitystreams#Delete","https://www.w3.org/ns/activitystreams#Dislike","https://www.w3.org/ns/activitystreams#Flag","https://www.w3.org/ns/activitystreams#Follow","https://www.w3.org/ns/activitystreams#Ignore","https://www.w3.org/ns/activitystreams#Block","https://www.w3.org/ns/activitystreams#IntransitiveActivity","https://www.w3.org/ns/activitystreams#Arrive","https://www.w3.org/ns/activitystreams#Question","https://www.w3.org/ns/activitystreams#Travel","https://www.w3.org/ns/activitystreams#Join","https://www.w3.org/ns/activitystreams#Leave","https://www.w3.org/ns/activitystreams#Like","https://www.w3.org/ns/activitystreams#Listen","https://www.w3.org/ns/activitystreams#Move","https://www.w3.org/ns/activitystreams#Offer","https://www.w3.org/ns/activitystreams#Invite","https://www.w3.org/ns/activitystreams#Read","https://www.w3.org/ns/activitystreams#Reject","https://www.w3.org/ns/activitystreams#TentativeReject","https://www.w3.org/ns/activitystreams#Remove","https://www.w3.org/ns/activitystreams#Undo","https://www.w3.org/ns/activitystreams#Update","https://www.w3.org/ns/activitystreams#View","https://www.w3.org/ns/activitystreams#Application","https://www.w3.org/ns/activitystreams#Article","https://www.w3.org/ns/activitystreams#Collection","https://www.w3.org/ns/activitystreams#CollectionPage","https://www.w3.org/ns/activitystreams#OrderedCollectionPage","https://www.w3.org/ns/activitystreams#OrderedCollection","https://www.w3.org/ns/activitystreams#Document","https://www.w3.org/ns/activitystreams#Audio","https://www.w3.org/ns/activitystreams#Image","https://www.w3.org/ns/activitystreams#Page","https://www.w3.org/ns/activitystreams#Video","https://www.w3.org/ns/activitystreams#Event","https://www.w3.org/ns/activitystreams#Group","https://www.w3.org/ns/activitystreams#Note","https://www.w3.org/ns/activitystreams#Organization","https://www.w3.org/ns/activitystreams#Person","https://www.w3.org/ns/activitystreams#Place","https://www.w3.org/ns/activitystreams#Profile","https://www.w3.org/ns/activitystreams#Relationship","https://www.w3.org/ns/activitystreams#Service","https://www.w3.org/ns/activitystreams#Tombstone"].some( t => v["@type"].includes(t)) ? await Object.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : undefined ; if (typeof decoded === "undefined") continue; @@ -60205,9 +60435,14 @@ names?: ((string | LanguageString))[];language?: Intl.Locale | null;height?: num // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { - options = { ...options, baseUrl: new URL(values["@id"]) }; + const _resolvedUrl = + values["@id"] != null && URL.canParse(values["@id"], options.baseUrl) + ? new URL(values["@id"], options.baseUrl) + : undefined; + if (options.baseUrl == null && _resolvedUrl != null) { + options = { ...options, baseUrl: _resolvedUrl }; } + const _baseUrl = _resolvedUrl ?? options.baseUrl; if ("@type" in values) { span.setAttribute("activitypub.object.type", values["@type"]); @@ -60542,9 +60777,14 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { - options = { ...options, baseUrl: new URL(values["@id"]) }; + const _resolvedUrl = + values["@id"] != null && URL.canParse(values["@id"], options.baseUrl) + ? new URL(values["@id"], options.baseUrl) + : undefined; + if (options.baseUrl == null && _resolvedUrl != null) { + options = { ...options, baseUrl: _resolvedUrl }; } + const _baseUrl = _resolvedUrl ?? options.baseUrl; if ("@type" in values) { span.setAttribute("activitypub.object.type", values["@type"]); @@ -60877,9 +61117,14 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { - options = { ...options, baseUrl: new URL(values["@id"]) }; + const _resolvedUrl = + values["@id"] != null && URL.canParse(values["@id"], options.baseUrl) + ? new URL(values["@id"], options.baseUrl) + : undefined; + if (options.baseUrl == null && _resolvedUrl != null) { + options = { ...options, baseUrl: _resolvedUrl }; } + const _baseUrl = _resolvedUrl ?? options.baseUrl; if ("@type" in values) { span.setAttribute("activitypub.object.type", values["@type"]); @@ -61215,9 +61460,14 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { - options = { ...options, baseUrl: new URL(values["@id"]) }; + const _resolvedUrl = + values["@id"] != null && URL.canParse(values["@id"], options.baseUrl) + ? new URL(values["@id"], options.baseUrl) + : undefined; + if (options.baseUrl == null && _resolvedUrl != null) { + options = { ...options, baseUrl: _resolvedUrl }; } + const _baseUrl = _resolvedUrl ?? options.baseUrl; if ("@type" in values) { span.setAttribute("activitypub.object.type", values["@type"]); @@ -61549,9 +61799,14 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { - options = { ...options, baseUrl: new URL(values["@id"]) }; + const _resolvedUrl = + values["@id"] != null && URL.canParse(values["@id"], options.baseUrl) + ? new URL(values["@id"], options.baseUrl) + : undefined; + if (options.baseUrl == null && _resolvedUrl != null) { + options = { ...options, baseUrl: _resolvedUrl }; } + const _baseUrl = _resolvedUrl ?? options.baseUrl; if ("@type" in values) { span.setAttribute("activitypub.object.type", values["@type"]); @@ -61883,9 +62138,14 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { - options = { ...options, baseUrl: new URL(values["@id"]) }; + const _resolvedUrl = + values["@id"] != null && URL.canParse(values["@id"], options.baseUrl) + ? new URL(values["@id"], options.baseUrl) + : undefined; + if (options.baseUrl == null && _resolvedUrl != null) { + options = { ...options, baseUrl: _resolvedUrl }; } + const _baseUrl = _resolvedUrl ?? options.baseUrl; if ("@type" in values) { span.setAttribute("activitypub.object.type", values["@type"]); @@ -62217,9 +62477,14 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { - options = { ...options, baseUrl: new URL(values["@id"]) }; + const _resolvedUrl = + values["@id"] != null && URL.canParse(values["@id"], options.baseUrl) + ? new URL(values["@id"], options.baseUrl) + : undefined; + if (options.baseUrl == null && _resolvedUrl != null) { + options = { ...options, baseUrl: _resolvedUrl }; } + const _baseUrl = _resolvedUrl ?? options.baseUrl; if ("@type" in values) { span.setAttribute("activitypub.object.type", values["@type"]); @@ -62549,9 +62814,14 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { - options = { ...options, baseUrl: new URL(values["@id"]) }; + const _resolvedUrl = + values["@id"] != null && URL.canParse(values["@id"], options.baseUrl) + ? new URL(values["@id"], options.baseUrl) + : undefined; + if (options.baseUrl == null && _resolvedUrl != null) { + options = { ...options, baseUrl: _resolvedUrl }; } + const _baseUrl = _resolvedUrl ?? options.baseUrl; if ("@type" in values) { span.setAttribute("activitypub.object.type", values["@type"]); @@ -62847,9 +63117,14 @@ names?: ((string | LanguageString))[];language?: Intl.Locale | null;height?: num // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { - options = { ...options, baseUrl: new URL(values["@id"]) }; + const _resolvedUrl = + values["@id"] != null && URL.canParse(values["@id"], options.baseUrl) + ? new URL(values["@id"], options.baseUrl) + : undefined; + if (options.baseUrl == null && _resolvedUrl != null) { + options = { ...options, baseUrl: _resolvedUrl }; } + const _baseUrl = _resolvedUrl ?? options.baseUrl; if ("@type" in values) { span.setAttribute("activitypub.object.type", values["@type"]); @@ -63182,9 +63457,14 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { - options = { ...options, baseUrl: new URL(values["@id"]) }; + const _resolvedUrl = + values["@id"] != null && URL.canParse(values["@id"], options.baseUrl) + ? new URL(values["@id"], options.baseUrl) + : undefined; + if (options.baseUrl == null && _resolvedUrl != null) { + options = { ...options, baseUrl: _resolvedUrl }; } + const _baseUrl = _resolvedUrl ?? options.baseUrl; if ("@type" in values) { span.setAttribute("activitypub.object.type", values["@type"]); @@ -64185,9 +64465,14 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { - options = { ...options, baseUrl: new URL(values["@id"]) }; + const _resolvedUrl = + values["@id"] != null && URL.canParse(values["@id"], options.baseUrl) + ? new URL(values["@id"], options.baseUrl) + : undefined; + if (options.baseUrl == null && _resolvedUrl != null) { + options = { ...options, baseUrl: _resolvedUrl }; } + const _baseUrl = _resolvedUrl ?? options.baseUrl; if ("@type" in values) { span.setAttribute("activitypub.object.type", values["@type"]); @@ -64236,7 +64521,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === "undefined") continue; _3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote.push(decoded); @@ -64295,7 +64580,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await QuoteAuthorization.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === "undefined") continue; _ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization.push(decoded); @@ -64985,9 +65270,14 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { - options = { ...options, baseUrl: new URL(values["@id"]) }; + const _resolvedUrl = + values["@id"] != null && URL.canParse(values["@id"], options.baseUrl) + ? new URL(values["@id"], options.baseUrl) + : undefined; + if (options.baseUrl == null && _resolvedUrl != null) { + options = { ...options, baseUrl: _resolvedUrl }; } + const _baseUrl = _resolvedUrl ?? options.baseUrl; if ("@type" in values) { span.setAttribute("activitypub.object.type", values["@type"]); @@ -65039,12 +65329,12 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu && Array.isArray(v["@type"])&& ["https://www.w3.org/ns/activitystreams#Object","http://joinmastodon.org/ns#Emoji","http://litepub.social/ns#ChatMessage","https://gotosocial.org/ns#AnnounceAuthorization","https://gotosocial.org/ns#LikeApproval","https://gotosocial.org/ns#ReplyAuthorization","https://w3id.org/fep/044f#QuoteAuthorization","https://w3id.org/valueflows/ont/vf#Proposal","https://www.w3.org/ns/activitystreams#Activity","http://litepub.social/ns#EmojiReact","https://gotosocial.org/ns#AnnounceRequest","https://gotosocial.org/ns#LikeRequest","https://gotosocial.org/ns#ReplyRequest","https://w3id.org/fep/044f#QuoteRequest","https://www.w3.org/ns/activitystreams#Accept","https://www.w3.org/ns/activitystreams#TentativeAccept","https://www.w3.org/ns/activitystreams#Add","https://www.w3.org/ns/activitystreams#Announce","https://www.w3.org/ns/activitystreams#Create","https://www.w3.org/ns/activitystreams#Delete","https://www.w3.org/ns/activitystreams#Dislike","https://www.w3.org/ns/activitystreams#Flag","https://www.w3.org/ns/activitystreams#Follow","https://www.w3.org/ns/activitystreams#Ignore","https://www.w3.org/ns/activitystreams#Block","https://www.w3.org/ns/activitystreams#IntransitiveActivity","https://www.w3.org/ns/activitystreams#Arrive","https://www.w3.org/ns/activitystreams#Question","https://www.w3.org/ns/activitystreams#Travel","https://www.w3.org/ns/activitystreams#Join","https://www.w3.org/ns/activitystreams#Leave","https://www.w3.org/ns/activitystreams#Like","https://www.w3.org/ns/activitystreams#Listen","https://www.w3.org/ns/activitystreams#Move","https://www.w3.org/ns/activitystreams#Offer","https://www.w3.org/ns/activitystreams#Invite","https://www.w3.org/ns/activitystreams#Read","https://www.w3.org/ns/activitystreams#Reject","https://www.w3.org/ns/activitystreams#TentativeReject","https://www.w3.org/ns/activitystreams#Remove","https://www.w3.org/ns/activitystreams#Undo","https://www.w3.org/ns/activitystreams#Update","https://www.w3.org/ns/activitystreams#View","https://www.w3.org/ns/activitystreams#Application","https://www.w3.org/ns/activitystreams#Article","https://www.w3.org/ns/activitystreams#Collection","https://www.w3.org/ns/activitystreams#CollectionPage","https://www.w3.org/ns/activitystreams#OrderedCollectionPage","https://www.w3.org/ns/activitystreams#OrderedCollection","https://www.w3.org/ns/activitystreams#Document","https://www.w3.org/ns/activitystreams#Audio","https://www.w3.org/ns/activitystreams#Image","https://www.w3.org/ns/activitystreams#Page","https://www.w3.org/ns/activitystreams#Video","https://www.w3.org/ns/activitystreams#Event","https://www.w3.org/ns/activitystreams#Group","https://www.w3.org/ns/activitystreams#Note","https://www.w3.org/ns/activitystreams#Organization","https://www.w3.org/ns/activitystreams#Person","https://www.w3.org/ns/activitystreams#Place","https://www.w3.org/ns/activitystreams#Profile","https://www.w3.org/ns/activitystreams#Relationship","https://www.w3.org/ns/activitystreams#Service","https://www.w3.org/ns/activitystreams#Tombstone"].some( t => v["@type"].includes(t)) ? await Object.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& ["https://www.w3.org/ns/activitystreams#Link","https://www.w3.org/ns/activitystreams#Hashtag","https://www.w3.org/ns/activitystreams#Mention"].some( t => v["@type"].includes(t)) ? await Link.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : undefined ; if (typeof decoded === "undefined") continue; @@ -65775,9 +66065,14 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { - options = { ...options, baseUrl: new URL(values["@id"]) }; + const _resolvedUrl = + values["@id"] != null && URL.canParse(values["@id"], options.baseUrl) + ? new URL(values["@id"], options.baseUrl) + : undefined; + if (options.baseUrl == null && _resolvedUrl != null) { + options = { ...options, baseUrl: _resolvedUrl }; } + const _baseUrl = _resolvedUrl ?? options.baseUrl; if ("@type" in values) { span.setAttribute("activitypub.object.type", values["@type"]); @@ -65829,12 +66124,12 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu && Array.isArray(v["@type"])&& ["https://www.w3.org/ns/activitystreams#Object","http://joinmastodon.org/ns#Emoji","http://litepub.social/ns#ChatMessage","https://gotosocial.org/ns#AnnounceAuthorization","https://gotosocial.org/ns#LikeApproval","https://gotosocial.org/ns#ReplyAuthorization","https://w3id.org/fep/044f#QuoteAuthorization","https://w3id.org/valueflows/ont/vf#Proposal","https://www.w3.org/ns/activitystreams#Activity","http://litepub.social/ns#EmojiReact","https://gotosocial.org/ns#AnnounceRequest","https://gotosocial.org/ns#LikeRequest","https://gotosocial.org/ns#ReplyRequest","https://w3id.org/fep/044f#QuoteRequest","https://www.w3.org/ns/activitystreams#Accept","https://www.w3.org/ns/activitystreams#TentativeAccept","https://www.w3.org/ns/activitystreams#Add","https://www.w3.org/ns/activitystreams#Announce","https://www.w3.org/ns/activitystreams#Create","https://www.w3.org/ns/activitystreams#Delete","https://www.w3.org/ns/activitystreams#Dislike","https://www.w3.org/ns/activitystreams#Flag","https://www.w3.org/ns/activitystreams#Follow","https://www.w3.org/ns/activitystreams#Ignore","https://www.w3.org/ns/activitystreams#Block","https://www.w3.org/ns/activitystreams#IntransitiveActivity","https://www.w3.org/ns/activitystreams#Arrive","https://www.w3.org/ns/activitystreams#Question","https://www.w3.org/ns/activitystreams#Travel","https://www.w3.org/ns/activitystreams#Join","https://www.w3.org/ns/activitystreams#Leave","https://www.w3.org/ns/activitystreams#Like","https://www.w3.org/ns/activitystreams#Listen","https://www.w3.org/ns/activitystreams#Move","https://www.w3.org/ns/activitystreams#Offer","https://www.w3.org/ns/activitystreams#Invite","https://www.w3.org/ns/activitystreams#Read","https://www.w3.org/ns/activitystreams#Reject","https://www.w3.org/ns/activitystreams#TentativeReject","https://www.w3.org/ns/activitystreams#Remove","https://www.w3.org/ns/activitystreams#Undo","https://www.w3.org/ns/activitystreams#Update","https://www.w3.org/ns/activitystreams#View","https://www.w3.org/ns/activitystreams#Application","https://www.w3.org/ns/activitystreams#Article","https://www.w3.org/ns/activitystreams#Collection","https://www.w3.org/ns/activitystreams#CollectionPage","https://www.w3.org/ns/activitystreams#OrderedCollectionPage","https://www.w3.org/ns/activitystreams#OrderedCollection","https://www.w3.org/ns/activitystreams#Document","https://www.w3.org/ns/activitystreams#Audio","https://www.w3.org/ns/activitystreams#Image","https://www.w3.org/ns/activitystreams#Page","https://www.w3.org/ns/activitystreams#Video","https://www.w3.org/ns/activitystreams#Event","https://www.w3.org/ns/activitystreams#Group","https://www.w3.org/ns/activitystreams#Note","https://www.w3.org/ns/activitystreams#Organization","https://www.w3.org/ns/activitystreams#Person","https://www.w3.org/ns/activitystreams#Place","https://www.w3.org/ns/activitystreams#Profile","https://www.w3.org/ns/activitystreams#Relationship","https://www.w3.org/ns/activitystreams#Service","https://www.w3.org/ns/activitystreams#Tombstone"].some( t => v["@type"].includes(t)) ? await Object.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& ["https://www.w3.org/ns/activitystreams#Link","https://www.w3.org/ns/activitystreams#Hashtag","https://www.w3.org/ns/activitystreams#Mention"].some( t => v["@type"].includes(t)) ? await Link.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : undefined ; if (typeof decoded === "undefined") continue; @@ -71459,9 +71754,14 @@ get preferredUsernames(): ((string | LanguageString))[] { // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { - options = { ...options, baseUrl: new URL(values["@id"]) }; + const _resolvedUrl = + values["@id"] != null && URL.canParse(values["@id"], options.baseUrl) + ? new URL(values["@id"], options.baseUrl) + : undefined; + if (options.baseUrl == null && _resolvedUrl != null) { + options = { ...options, baseUrl: _resolvedUrl }; } + const _baseUrl = _resolvedUrl ?? options.baseUrl; if ("@type" in values) { span.setAttribute("activitypub.object.type", values["@type"]); @@ -71534,7 +71834,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await CryptographicKey.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === "undefined") continue; _axq166E2eZADq34V4MYUc8KMZdC_publicKey.push(decoded); @@ -71567,7 +71867,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Multikey.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === "undefined") continue; _4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.push(decoded); @@ -71620,11 +71920,11 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#OrderedCollection") ? await OrderedCollection.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#OrderedCollectionPage") ? await OrderedCollectionPage.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : undefined ; if (typeof decoded === "undefined") continue; @@ -71661,11 +71961,11 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#OrderedCollection") ? await OrderedCollection.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#OrderedCollectionPage") ? await OrderedCollectionPage.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : undefined ; if (typeof decoded === "undefined") continue; @@ -71700,7 +72000,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === "undefined") continue; _3yAv8jymNfNuJUDuBzJ1NQhdbAee_following.push(decoded); @@ -71733,7 +72033,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === "undefined") continue; _BBCTgfphhsFzpVfKTykGSpBNwoA_followers.push(decoded); @@ -71766,7 +72066,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === "undefined") continue; _3bgkPwJanyTCoVFM9ovRcus8tKkU_liked.push(decoded); @@ -71799,7 +72099,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === "undefined") continue; _4N1vBJzXDf8NbBumeECQMFvKetja_featured.push(decoded); @@ -71832,7 +72132,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === "undefined") continue; _2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags.push(decoded); @@ -71865,7 +72165,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === "undefined") continue; _3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.push(decoded); @@ -71886,7 +72186,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Endpoints.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === "undefined") continue; _sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints.push(decoded); @@ -71993,23 +72293,23 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Application") ? await Application.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Group") ? await Group.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Organization") ? await Organization.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Person") ? await Person.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Service") ? await Service.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : undefined ; if (typeof decoded === "undefined") continue; @@ -72046,23 +72346,23 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Application") ? await Application.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Group") ? await Group.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Organization") ? await Organization.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Person") ? await Person.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Service") ? await Service.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : undefined ; if (typeof decoded === "undefined") continue; @@ -72097,7 +72397,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await DidService.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === "undefined") continue; _4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.push(decoded); @@ -72924,9 +73224,14 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { - options = { ...options, baseUrl: new URL(values["@id"]) }; + const _resolvedUrl = + values["@id"] != null && URL.canParse(values["@id"], options.baseUrl) + ? new URL(values["@id"], options.baseUrl) + : undefined; + if (options.baseUrl == null && _resolvedUrl != null) { + options = { ...options, baseUrl: _resolvedUrl }; } + const _baseUrl = _resolvedUrl ?? options.baseUrl; if ("@type" in values) { span.setAttribute("activitypub.object.type", values["@type"]); @@ -78505,9 +78810,14 @@ get preferredUsernames(): ((string | LanguageString))[] { // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { - options = { ...options, baseUrl: new URL(values["@id"]) }; + const _resolvedUrl = + values["@id"] != null && URL.canParse(values["@id"], options.baseUrl) + ? new URL(values["@id"], options.baseUrl) + : undefined; + if (options.baseUrl == null && _resolvedUrl != null) { + options = { ...options, baseUrl: _resolvedUrl }; } + const _baseUrl = _resolvedUrl ?? options.baseUrl; if ("@type" in values) { span.setAttribute("activitypub.object.type", values["@type"]); @@ -78580,7 +78890,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await CryptographicKey.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === "undefined") continue; _axq166E2eZADq34V4MYUc8KMZdC_publicKey.push(decoded); @@ -78613,7 +78923,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Multikey.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === "undefined") continue; _4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.push(decoded); @@ -78666,11 +78976,11 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#OrderedCollection") ? await OrderedCollection.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#OrderedCollectionPage") ? await OrderedCollectionPage.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : undefined ; if (typeof decoded === "undefined") continue; @@ -78707,11 +79017,11 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#OrderedCollection") ? await OrderedCollection.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#OrderedCollectionPage") ? await OrderedCollectionPage.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : undefined ; if (typeof decoded === "undefined") continue; @@ -78746,7 +79056,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === "undefined") continue; _3yAv8jymNfNuJUDuBzJ1NQhdbAee_following.push(decoded); @@ -78779,7 +79089,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === "undefined") continue; _BBCTgfphhsFzpVfKTykGSpBNwoA_followers.push(decoded); @@ -78812,7 +79122,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === "undefined") continue; _3bgkPwJanyTCoVFM9ovRcus8tKkU_liked.push(decoded); @@ -78845,7 +79155,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === "undefined") continue; _4N1vBJzXDf8NbBumeECQMFvKetja_featured.push(decoded); @@ -78878,7 +79188,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === "undefined") continue; _2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags.push(decoded); @@ -78911,7 +79221,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === "undefined") continue; _3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.push(decoded); @@ -78932,7 +79242,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Endpoints.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === "undefined") continue; _sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints.push(decoded); @@ -79039,23 +79349,23 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Application") ? await Application.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Group") ? await Group.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Organization") ? await Organization.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Person") ? await Person.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Service") ? await Service.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : undefined ; if (typeof decoded === "undefined") continue; @@ -79092,23 +79402,23 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Application") ? await Application.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Group") ? await Group.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Organization") ? await Organization.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Person") ? await Person.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Service") ? await Service.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : undefined ; if (typeof decoded === "undefined") continue; @@ -79143,7 +79453,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await DidService.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === "undefined") continue; _4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.push(decoded); @@ -80426,9 +80736,14 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { - options = { ...options, baseUrl: new URL(values["@id"]) }; + const _resolvedUrl = + values["@id"] != null && URL.canParse(values["@id"], options.baseUrl) + ? new URL(values["@id"], options.baseUrl) + : undefined; + if (options.baseUrl == null && _resolvedUrl != null) { + options = { ...options, baseUrl: _resolvedUrl }; } + const _baseUrl = _resolvedUrl ?? options.baseUrl; if ("@type" in values) { span.setAttribute("activitypub.object.type", values["@type"]); @@ -80570,9 +80885,9 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu : "" ) ) - : URL.canParse(v["@id"]) && (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) + : URL.canParse(v["@id"]) && _baseUrl ? new URL(v["@id"]) - : new URL(v["@id"], (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl))) : undefined + : new URL(v["@id"], _baseUrl) : undefined ; if (typeof decoded === "undefined") continue; _oKrwxU4V8wiKhMW1QEYQibcJh8c_units.push(decoded); @@ -81301,9 +81616,14 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { - options = { ...options, baseUrl: new URL(values["@id"]) }; + const _resolvedUrl = + values["@id"] != null && URL.canParse(values["@id"], options.baseUrl) + ? new URL(values["@id"], options.baseUrl) + : undefined; + if (options.baseUrl == null && _resolvedUrl != null) { + options = { ...options, baseUrl: _resolvedUrl }; } + const _baseUrl = _resolvedUrl ?? options.baseUrl; if ("@type" in values) { span.setAttribute("activitypub.object.type", values["@type"]); @@ -81352,7 +81672,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === "undefined") continue; _3CLQ1PLSXrhSQbTGGHuxNyaEFKM1_describes.push(decoded); @@ -82972,9 +83292,14 @@ instruments?: (Object | URL)[];exclusiveOptions?: (Object | URL)[];inclusiveOpti // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { - options = { ...options, baseUrl: new URL(values["@id"]) }; + const _resolvedUrl = + values["@id"] != null && URL.canParse(values["@id"], options.baseUrl) + ? new URL(values["@id"], options.baseUrl) + : undefined; + if (options.baseUrl == null && _resolvedUrl != null) { + options = { ...options, baseUrl: _resolvedUrl }; } + const _baseUrl = _resolvedUrl ?? options.baseUrl; if ("@type" in values) { span.setAttribute("activitypub.object.type", values["@type"]); @@ -83023,7 +83348,7 @@ instruments?: (Object | URL)[];exclusiveOptions?: (Object | URL)[];inclusiveOpti const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === "undefined") continue; _2N5scKaVEcdYHFmfKYYacAwUhUgQ_oneOf.push(decoded); @@ -83056,7 +83381,7 @@ instruments?: (Object | URL)[];exclusiveOptions?: (Object | URL)[];inclusiveOpti const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === "undefined") continue; _2mV6isMTPRKbWdLCjcpiEysq5dAY_anyOf.push(decoded); @@ -83138,7 +83463,7 @@ instruments?: (Object | URL)[];exclusiveOptions?: (Object | URL)[];inclusiveOpti const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === "undefined") continue; _3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote.push(decoded); @@ -83197,7 +83522,7 @@ instruments?: (Object | URL)[];exclusiveOptions?: (Object | URL)[];inclusiveOpti const decoded = await QuoteAuthorization.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === "undefined") continue; _ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization.push(decoded); @@ -83656,9 +83981,14 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { - options = { ...options, baseUrl: new URL(values["@id"]) }; + const _resolvedUrl = + values["@id"] != null && URL.canParse(values["@id"], options.baseUrl) + ? new URL(values["@id"], options.baseUrl) + : undefined; + if (options.baseUrl == null && _resolvedUrl != null) { + options = { ...options, baseUrl: _resolvedUrl }; } + const _baseUrl = _resolvedUrl ?? options.baseUrl; if ("@type" in values) { span.setAttribute("activitypub.object.type", values["@type"]); @@ -83990,9 +84320,14 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { - options = { ...options, baseUrl: new URL(values["@id"]) }; + const _resolvedUrl = + values["@id"] != null && URL.canParse(values["@id"], options.baseUrl) + ? new URL(values["@id"], options.baseUrl) + : undefined; + if (options.baseUrl == null && _resolvedUrl != null) { + options = { ...options, baseUrl: _resolvedUrl }; } + const _baseUrl = _resolvedUrl ?? options.baseUrl; if ("@type" in values) { span.setAttribute("activitypub.object.type", values["@type"]); @@ -85506,9 +85841,14 @@ relationships?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { - options = { ...options, baseUrl: new URL(values["@id"]) }; + const _resolvedUrl = + values["@id"] != null && URL.canParse(values["@id"], options.baseUrl) + ? new URL(values["@id"], options.baseUrl) + : undefined; + if (options.baseUrl == null && _resolvedUrl != null) { + options = { ...options, baseUrl: _resolvedUrl }; } + const _baseUrl = _resolvedUrl ?? options.baseUrl; if ("@type" in values) { span.setAttribute("activitypub.object.type", values["@type"]); @@ -85557,7 +85897,7 @@ relationships?: (Object | URL)[];} const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === "undefined") continue; _2Zqdmi46ZnDQsECS6mzwhrv3rUKq_subject.push(decoded); @@ -85590,7 +85930,7 @@ relationships?: (Object | URL)[];} const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === "undefined") continue; _2MH19yxjn1wnHsNfa5n4JBhJzxyc_object.push(decoded); @@ -85623,7 +85963,7 @@ relationships?: (Object | URL)[];} const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === "undefined") continue; _4Lzz89F9qipAQSGkWyX9DGWiUojG_relationship.push(decoded); @@ -86011,9 +86351,14 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { - options = { ...options, baseUrl: new URL(values["@id"]) }; + const _resolvedUrl = + values["@id"] != null && URL.canParse(values["@id"], options.baseUrl) + ? new URL(values["@id"], options.baseUrl) + : undefined; + if (options.baseUrl == null && _resolvedUrl != null) { + options = { ...options, baseUrl: _resolvedUrl }; } + const _baseUrl = _resolvedUrl ?? options.baseUrl; if ("@type" in values) { span.setAttribute("activitypub.object.type", values["@type"]); @@ -91592,9 +91937,14 @@ get preferredUsernames(): ((string | LanguageString))[] { // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { - options = { ...options, baseUrl: new URL(values["@id"]) }; + const _resolvedUrl = + values["@id"] != null && URL.canParse(values["@id"], options.baseUrl) + ? new URL(values["@id"], options.baseUrl) + : undefined; + if (options.baseUrl == null && _resolvedUrl != null) { + options = { ...options, baseUrl: _resolvedUrl }; } + const _baseUrl = _resolvedUrl ?? options.baseUrl; if ("@type" in values) { span.setAttribute("activitypub.object.type", values["@type"]); @@ -91667,7 +92017,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await CryptographicKey.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === "undefined") continue; _axq166E2eZADq34V4MYUc8KMZdC_publicKey.push(decoded); @@ -91700,7 +92050,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Multikey.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === "undefined") continue; _4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.push(decoded); @@ -91753,11 +92103,11 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#OrderedCollection") ? await OrderedCollection.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#OrderedCollectionPage") ? await OrderedCollectionPage.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : undefined ; if (typeof decoded === "undefined") continue; @@ -91794,11 +92144,11 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#OrderedCollection") ? await OrderedCollection.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#OrderedCollectionPage") ? await OrderedCollectionPage.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : undefined ; if (typeof decoded === "undefined") continue; @@ -91833,7 +92183,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === "undefined") continue; _3yAv8jymNfNuJUDuBzJ1NQhdbAee_following.push(decoded); @@ -91866,7 +92216,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === "undefined") continue; _BBCTgfphhsFzpVfKTykGSpBNwoA_followers.push(decoded); @@ -91899,7 +92249,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === "undefined") continue; _3bgkPwJanyTCoVFM9ovRcus8tKkU_liked.push(decoded); @@ -91932,7 +92282,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === "undefined") continue; _4N1vBJzXDf8NbBumeECQMFvKetja_featured.push(decoded); @@ -91965,7 +92315,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === "undefined") continue; _2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags.push(decoded); @@ -91998,7 +92348,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === "undefined") continue; _3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.push(decoded); @@ -92019,7 +92369,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Endpoints.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === "undefined") continue; _sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints.push(decoded); @@ -92126,23 +92476,23 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Application") ? await Application.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Group") ? await Group.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Organization") ? await Organization.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Person") ? await Person.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Service") ? await Service.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : undefined ; if (typeof decoded === "undefined") continue; @@ -92179,23 +92529,23 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Application") ? await Application.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Group") ? await Group.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Organization") ? await Organization.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Person") ? await Person.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Service") ? await Service.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : undefined ; if (typeof decoded === "undefined") continue; @@ -92230,7 +92580,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await DidService.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === "undefined") continue; _4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.push(decoded); @@ -93266,9 +93616,14 @@ get contents(): ((string | LanguageString))[] { // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { - options = { ...options, baseUrl: new URL(values["@id"]) }; + const _resolvedUrl = + values["@id"] != null && URL.canParse(values["@id"], options.baseUrl) + ? new URL(values["@id"], options.baseUrl) + : undefined; + if (options.baseUrl == null && _resolvedUrl != null) { + options = { ...options, baseUrl: _resolvedUrl }; } + const _baseUrl = _resolvedUrl ?? options.baseUrl; if ("@type" in values) { span.setAttribute("activitypub.object.type", values["@type"]); @@ -93698,9 +94053,14 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { - options = { ...options, baseUrl: new URL(values["@id"]) }; + const _resolvedUrl = + values["@id"] != null && URL.canParse(values["@id"], options.baseUrl) + ? new URL(values["@id"], options.baseUrl) + : undefined; + if (options.baseUrl == null && _resolvedUrl != null) { + options = { ...options, baseUrl: _resolvedUrl }; } + const _baseUrl = _resolvedUrl ?? options.baseUrl; if ("@type" in values) { span.setAttribute("activitypub.object.type", values["@type"]); @@ -94032,9 +94392,14 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { - options = { ...options, baseUrl: new URL(values["@id"]) }; + const _resolvedUrl = + values["@id"] != null && URL.canParse(values["@id"], options.baseUrl) + ? new URL(values["@id"], options.baseUrl) + : undefined; + if (options.baseUrl == null && _resolvedUrl != null) { + options = { ...options, baseUrl: _resolvedUrl }; } + const _baseUrl = _resolvedUrl ?? options.baseUrl; if ("@type" in values) { span.setAttribute("activitypub.object.type", values["@type"]); @@ -94582,9 +94947,14 @@ get formerTypes(): ($EntityType)[] { // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { - options = { ...options, baseUrl: new URL(values["@id"]) }; + const _resolvedUrl = + values["@id"] != null && URL.canParse(values["@id"], options.baseUrl) + ? new URL(values["@id"], options.baseUrl) + : undefined; + if (options.baseUrl == null && _resolvedUrl != null) { + options = { ...options, baseUrl: _resolvedUrl }; } + const _baseUrl = _resolvedUrl ?? options.baseUrl; if ("@type" in values) { span.setAttribute("activitypub.object.type", values["@type"]); @@ -95017,9 +95387,14 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { - options = { ...options, baseUrl: new URL(values["@id"]) }; + const _resolvedUrl = + values["@id"] != null && URL.canParse(values["@id"], options.baseUrl) + ? new URL(values["@id"], options.baseUrl) + : undefined; + if (options.baseUrl == null && _resolvedUrl != null) { + options = { ...options, baseUrl: _resolvedUrl }; } + const _baseUrl = _resolvedUrl ?? options.baseUrl; if ("@type" in values) { span.setAttribute("activitypub.object.type", values["@type"]); @@ -95356,9 +95731,14 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { - options = { ...options, baseUrl: new URL(values["@id"]) }; + const _resolvedUrl = + values["@id"] != null && URL.canParse(values["@id"], options.baseUrl) + ? new URL(values["@id"], options.baseUrl) + : undefined; + if (options.baseUrl == null && _resolvedUrl != null) { + options = { ...options, baseUrl: _resolvedUrl }; } + const _baseUrl = _resolvedUrl ?? options.baseUrl; if ("@type" in values) { span.setAttribute("activitypub.object.type", values["@type"]); @@ -95693,9 +96073,14 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { - options = { ...options, baseUrl: new URL(values["@id"]) }; + const _resolvedUrl = + values["@id"] != null && URL.canParse(values["@id"], options.baseUrl) + ? new URL(values["@id"], options.baseUrl) + : undefined; + if (options.baseUrl == null && _resolvedUrl != null) { + options = { ...options, baseUrl: _resolvedUrl }; } + const _baseUrl = _resolvedUrl ?? options.baseUrl; if ("@type" in values) { span.setAttribute("activitypub.object.type", values["@type"]); @@ -96030,9 +96415,14 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { - options = { ...options, baseUrl: new URL(values["@id"]) }; + const _resolvedUrl = + values["@id"] != null && URL.canParse(values["@id"], options.baseUrl) + ? new URL(values["@id"], options.baseUrl) + : undefined; + if (options.baseUrl == null && _resolvedUrl != null) { + options = { ...options, baseUrl: _resolvedUrl }; } + const _baseUrl = _resolvedUrl ?? options.baseUrl; if ("@type" in values) { span.setAttribute("activitypub.object.type", values["@type"]); @@ -96363,9 +96753,14 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { - options = { ...options, baseUrl: new URL(values["@id"]) }; + const _resolvedUrl = + values["@id"] != null && URL.canParse(values["@id"], options.baseUrl) + ? new URL(values["@id"], options.baseUrl) + : undefined; + if (options.baseUrl == null && _resolvedUrl != null) { + options = { ...options, baseUrl: _resolvedUrl }; } + const _baseUrl = _resolvedUrl ?? options.baseUrl; if ("@type" in values) { span.setAttribute("activitypub.object.type", values["@type"]); From 0749718d5e99c27b3650587b237b78b69b17f84c Mon Sep 17 00:00:00 2001 From: Hong Minhee Date: Sat, 6 Jun 2026 01:31:08 +0900 Subject: [PATCH 14/25] Update Deno snapshot for codegen changes Assisted-by: OpenCode:deepseek-v4-pro --- .../src/__snapshots__/class.test.ts.deno.snap | 1235 +++++++++++------ 1 file changed, 815 insertions(+), 420 deletions(-) diff --git a/packages/vocab-tools/src/__snapshots__/class.test.ts.deno.snap b/packages/vocab-tools/src/__snapshots__/class.test.ts.deno.snap index f6f3db205..732917289 100644 --- a/packages/vocab-tools/src/__snapshots__/class.test.ts.deno.snap +++ b/packages/vocab-tools/src/__snapshots__/class.test.ts.deno.snap @@ -10344,9 +10344,14 @@ get urls(): ((URL | Link))[] { // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { - options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; + const _resolvedUrl = + values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) + ? new URL(values[\\"@id\\"], options.baseUrl) + : undefined; + if (options.baseUrl == null && _resolvedUrl != null) { + options = { ...options, baseUrl: _resolvedUrl }; } + const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -10645,16 +10650,16 @@ get urls(): ((URL | Link))[] { && Array.isArray(v[\\"@type\\"])&& [\\"https://www.w3.org/ns/activitystreams#Object\\",\\"http://joinmastodon.org/ns#Emoji\\",\\"http://litepub.social/ns#ChatMessage\\",\\"https://gotosocial.org/ns#AnnounceAuthorization\\",\\"https://gotosocial.org/ns#LikeApproval\\",\\"https://gotosocial.org/ns#ReplyAuthorization\\",\\"https://w3id.org/fep/044f#QuoteAuthorization\\",\\"https://w3id.org/valueflows/ont/vf#Proposal\\",\\"https://www.w3.org/ns/activitystreams#Activity\\",\\"http://litepub.social/ns#EmojiReact\\",\\"https://gotosocial.org/ns#AnnounceRequest\\",\\"https://gotosocial.org/ns#LikeRequest\\",\\"https://gotosocial.org/ns#ReplyRequest\\",\\"https://w3id.org/fep/044f#QuoteRequest\\",\\"https://www.w3.org/ns/activitystreams#Accept\\",\\"https://www.w3.org/ns/activitystreams#TentativeAccept\\",\\"https://www.w3.org/ns/activitystreams#Add\\",\\"https://www.w3.org/ns/activitystreams#Announce\\",\\"https://www.w3.org/ns/activitystreams#Create\\",\\"https://www.w3.org/ns/activitystreams#Delete\\",\\"https://www.w3.org/ns/activitystreams#Dislike\\",\\"https://www.w3.org/ns/activitystreams#Flag\\",\\"https://www.w3.org/ns/activitystreams#Follow\\",\\"https://www.w3.org/ns/activitystreams#Ignore\\",\\"https://www.w3.org/ns/activitystreams#Block\\",\\"https://www.w3.org/ns/activitystreams#IntransitiveActivity\\",\\"https://www.w3.org/ns/activitystreams#Arrive\\",\\"https://www.w3.org/ns/activitystreams#Question\\",\\"https://www.w3.org/ns/activitystreams#Travel\\",\\"https://www.w3.org/ns/activitystreams#Join\\",\\"https://www.w3.org/ns/activitystreams#Leave\\",\\"https://www.w3.org/ns/activitystreams#Like\\",\\"https://www.w3.org/ns/activitystreams#Listen\\",\\"https://www.w3.org/ns/activitystreams#Move\\",\\"https://www.w3.org/ns/activitystreams#Offer\\",\\"https://www.w3.org/ns/activitystreams#Invite\\",\\"https://www.w3.org/ns/activitystreams#Read\\",\\"https://www.w3.org/ns/activitystreams#Reject\\",\\"https://www.w3.org/ns/activitystreams#TentativeReject\\",\\"https://www.w3.org/ns/activitystreams#Remove\\",\\"https://www.w3.org/ns/activitystreams#Undo\\",\\"https://www.w3.org/ns/activitystreams#Update\\",\\"https://www.w3.org/ns/activitystreams#View\\",\\"https://www.w3.org/ns/activitystreams#Application\\",\\"https://www.w3.org/ns/activitystreams#Article\\",\\"https://www.w3.org/ns/activitystreams#Collection\\",\\"https://www.w3.org/ns/activitystreams#CollectionPage\\",\\"https://www.w3.org/ns/activitystreams#OrderedCollectionPage\\",\\"https://www.w3.org/ns/activitystreams#OrderedCollection\\",\\"https://www.w3.org/ns/activitystreams#Document\\",\\"https://www.w3.org/ns/activitystreams#Audio\\",\\"https://www.w3.org/ns/activitystreams#Image\\",\\"https://www.w3.org/ns/activitystreams#Page\\",\\"https://www.w3.org/ns/activitystreams#Video\\",\\"https://www.w3.org/ns/activitystreams#Event\\",\\"https://www.w3.org/ns/activitystreams#Group\\",\\"https://www.w3.org/ns/activitystreams#Note\\",\\"https://www.w3.org/ns/activitystreams#Organization\\",\\"https://www.w3.org/ns/activitystreams#Person\\",\\"https://www.w3.org/ns/activitystreams#Place\\",\\"https://www.w3.org/ns/activitystreams#Profile\\",\\"https://www.w3.org/ns/activitystreams#Relationship\\",\\"https://www.w3.org/ns/activitystreams#Service\\",\\"https://www.w3.org/ns/activitystreams#Tombstone\\"].some( t => v[\\"@type\\"].includes(t)) ? await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& [\\"https://www.w3.org/ns/activitystreams#Link\\",\\"https://www.w3.org/ns/activitystreams#Hashtag\\",\\"https://www.w3.org/ns/activitystreams#Mention\\"].some( t => v[\\"@type\\"].includes(t)) ? await Link.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"http://schema.org#PropertyValue\\") ? await PropertyValue.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -10691,23 +10696,23 @@ get urls(): ((URL | Link))[] { typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Application\\") ? await Application.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Group\\") ? await Group.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Organization\\") ? await Organization.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Person\\") ? await Person.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Service\\") ? await Service.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -10742,7 +10747,7 @@ get urls(): ((URL | Link))[] { const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === \\"undefined\\") continue; _3ocC3VVi88cEd5sPWL8djkZsvTN6_audience.push(decoded); @@ -10802,12 +10807,12 @@ get urls(): ((URL | Link))[] { && Array.isArray(v[\\"@type\\"])&& [\\"https://www.w3.org/ns/activitystreams#Object\\",\\"http://joinmastodon.org/ns#Emoji\\",\\"http://litepub.social/ns#ChatMessage\\",\\"https://gotosocial.org/ns#AnnounceAuthorization\\",\\"https://gotosocial.org/ns#LikeApproval\\",\\"https://gotosocial.org/ns#ReplyAuthorization\\",\\"https://w3id.org/fep/044f#QuoteAuthorization\\",\\"https://w3id.org/valueflows/ont/vf#Proposal\\",\\"https://www.w3.org/ns/activitystreams#Activity\\",\\"http://litepub.social/ns#EmojiReact\\",\\"https://gotosocial.org/ns#AnnounceRequest\\",\\"https://gotosocial.org/ns#LikeRequest\\",\\"https://gotosocial.org/ns#ReplyRequest\\",\\"https://w3id.org/fep/044f#QuoteRequest\\",\\"https://www.w3.org/ns/activitystreams#Accept\\",\\"https://www.w3.org/ns/activitystreams#TentativeAccept\\",\\"https://www.w3.org/ns/activitystreams#Add\\",\\"https://www.w3.org/ns/activitystreams#Announce\\",\\"https://www.w3.org/ns/activitystreams#Create\\",\\"https://www.w3.org/ns/activitystreams#Delete\\",\\"https://www.w3.org/ns/activitystreams#Dislike\\",\\"https://www.w3.org/ns/activitystreams#Flag\\",\\"https://www.w3.org/ns/activitystreams#Follow\\",\\"https://www.w3.org/ns/activitystreams#Ignore\\",\\"https://www.w3.org/ns/activitystreams#Block\\",\\"https://www.w3.org/ns/activitystreams#IntransitiveActivity\\",\\"https://www.w3.org/ns/activitystreams#Arrive\\",\\"https://www.w3.org/ns/activitystreams#Question\\",\\"https://www.w3.org/ns/activitystreams#Travel\\",\\"https://www.w3.org/ns/activitystreams#Join\\",\\"https://www.w3.org/ns/activitystreams#Leave\\",\\"https://www.w3.org/ns/activitystreams#Like\\",\\"https://www.w3.org/ns/activitystreams#Listen\\",\\"https://www.w3.org/ns/activitystreams#Move\\",\\"https://www.w3.org/ns/activitystreams#Offer\\",\\"https://www.w3.org/ns/activitystreams#Invite\\",\\"https://www.w3.org/ns/activitystreams#Read\\",\\"https://www.w3.org/ns/activitystreams#Reject\\",\\"https://www.w3.org/ns/activitystreams#TentativeReject\\",\\"https://www.w3.org/ns/activitystreams#Remove\\",\\"https://www.w3.org/ns/activitystreams#Undo\\",\\"https://www.w3.org/ns/activitystreams#Update\\",\\"https://www.w3.org/ns/activitystreams#View\\",\\"https://www.w3.org/ns/activitystreams#Application\\",\\"https://www.w3.org/ns/activitystreams#Article\\",\\"https://www.w3.org/ns/activitystreams#Collection\\",\\"https://www.w3.org/ns/activitystreams#CollectionPage\\",\\"https://www.w3.org/ns/activitystreams#OrderedCollectionPage\\",\\"https://www.w3.org/ns/activitystreams#OrderedCollection\\",\\"https://www.w3.org/ns/activitystreams#Document\\",\\"https://www.w3.org/ns/activitystreams#Audio\\",\\"https://www.w3.org/ns/activitystreams#Image\\",\\"https://www.w3.org/ns/activitystreams#Page\\",\\"https://www.w3.org/ns/activitystreams#Video\\",\\"https://www.w3.org/ns/activitystreams#Event\\",\\"https://www.w3.org/ns/activitystreams#Group\\",\\"https://www.w3.org/ns/activitystreams#Note\\",\\"https://www.w3.org/ns/activitystreams#Organization\\",\\"https://www.w3.org/ns/activitystreams#Person\\",\\"https://www.w3.org/ns/activitystreams#Place\\",\\"https://www.w3.org/ns/activitystreams#Profile\\",\\"https://www.w3.org/ns/activitystreams#Relationship\\",\\"https://www.w3.org/ns/activitystreams#Service\\",\\"https://www.w3.org/ns/activitystreams#Tombstone\\"].some( t => v[\\"@type\\"].includes(t)) ? await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& [\\"https://www.w3.org/ns/activitystreams#Link\\",\\"https://www.w3.org/ns/activitystreams#Hashtag\\",\\"https://www.w3.org/ns/activitystreams#Mention\\"].some( t => v[\\"@type\\"].includes(t)) ? await Link.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -10891,12 +10896,12 @@ get urls(): ((URL | Link))[] { && Array.isArray(v[\\"@type\\"])&& [\\"https://www.w3.org/ns/activitystreams#Object\\",\\"http://joinmastodon.org/ns#Emoji\\",\\"http://litepub.social/ns#ChatMessage\\",\\"https://gotosocial.org/ns#AnnounceAuthorization\\",\\"https://gotosocial.org/ns#LikeApproval\\",\\"https://gotosocial.org/ns#ReplyAuthorization\\",\\"https://w3id.org/fep/044f#QuoteAuthorization\\",\\"https://w3id.org/valueflows/ont/vf#Proposal\\",\\"https://www.w3.org/ns/activitystreams#Activity\\",\\"http://litepub.social/ns#EmojiReact\\",\\"https://gotosocial.org/ns#AnnounceRequest\\",\\"https://gotosocial.org/ns#LikeRequest\\",\\"https://gotosocial.org/ns#ReplyRequest\\",\\"https://w3id.org/fep/044f#QuoteRequest\\",\\"https://www.w3.org/ns/activitystreams#Accept\\",\\"https://www.w3.org/ns/activitystreams#TentativeAccept\\",\\"https://www.w3.org/ns/activitystreams#Add\\",\\"https://www.w3.org/ns/activitystreams#Announce\\",\\"https://www.w3.org/ns/activitystreams#Create\\",\\"https://www.w3.org/ns/activitystreams#Delete\\",\\"https://www.w3.org/ns/activitystreams#Dislike\\",\\"https://www.w3.org/ns/activitystreams#Flag\\",\\"https://www.w3.org/ns/activitystreams#Follow\\",\\"https://www.w3.org/ns/activitystreams#Ignore\\",\\"https://www.w3.org/ns/activitystreams#Block\\",\\"https://www.w3.org/ns/activitystreams#IntransitiveActivity\\",\\"https://www.w3.org/ns/activitystreams#Arrive\\",\\"https://www.w3.org/ns/activitystreams#Question\\",\\"https://www.w3.org/ns/activitystreams#Travel\\",\\"https://www.w3.org/ns/activitystreams#Join\\",\\"https://www.w3.org/ns/activitystreams#Leave\\",\\"https://www.w3.org/ns/activitystreams#Like\\",\\"https://www.w3.org/ns/activitystreams#Listen\\",\\"https://www.w3.org/ns/activitystreams#Move\\",\\"https://www.w3.org/ns/activitystreams#Offer\\",\\"https://www.w3.org/ns/activitystreams#Invite\\",\\"https://www.w3.org/ns/activitystreams#Read\\",\\"https://www.w3.org/ns/activitystreams#Reject\\",\\"https://www.w3.org/ns/activitystreams#TentativeReject\\",\\"https://www.w3.org/ns/activitystreams#Remove\\",\\"https://www.w3.org/ns/activitystreams#Undo\\",\\"https://www.w3.org/ns/activitystreams#Update\\",\\"https://www.w3.org/ns/activitystreams#View\\",\\"https://www.w3.org/ns/activitystreams#Application\\",\\"https://www.w3.org/ns/activitystreams#Article\\",\\"https://www.w3.org/ns/activitystreams#Collection\\",\\"https://www.w3.org/ns/activitystreams#CollectionPage\\",\\"https://www.w3.org/ns/activitystreams#OrderedCollectionPage\\",\\"https://www.w3.org/ns/activitystreams#OrderedCollection\\",\\"https://www.w3.org/ns/activitystreams#Document\\",\\"https://www.w3.org/ns/activitystreams#Audio\\",\\"https://www.w3.org/ns/activitystreams#Image\\",\\"https://www.w3.org/ns/activitystreams#Page\\",\\"https://www.w3.org/ns/activitystreams#Video\\",\\"https://www.w3.org/ns/activitystreams#Event\\",\\"https://www.w3.org/ns/activitystreams#Group\\",\\"https://www.w3.org/ns/activitystreams#Note\\",\\"https://www.w3.org/ns/activitystreams#Organization\\",\\"https://www.w3.org/ns/activitystreams#Person\\",\\"https://www.w3.org/ns/activitystreams#Place\\",\\"https://www.w3.org/ns/activitystreams#Profile\\",\\"https://www.w3.org/ns/activitystreams#Relationship\\",\\"https://www.w3.org/ns/activitystreams#Service\\",\\"https://www.w3.org/ns/activitystreams#Tombstone\\"].some( t => v[\\"@type\\"].includes(t)) ? await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& [\\"https://www.w3.org/ns/activitystreams#Link\\",\\"https://www.w3.org/ns/activitystreams#Hashtag\\",\\"https://www.w3.org/ns/activitystreams#Mention\\"].some( t => v[\\"@type\\"].includes(t)) ? await Link.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -10927,7 +10932,7 @@ get urls(): ((URL | Link))[] { documentLoader: options.documentLoader, contextLoader: options.contextLoader, tracerProvider: options.tracerProvider, - baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)), + baseUrl: _baseUrl, }); if (_result instanceof Error) throw _result; if (_result !== undefined) { @@ -10953,7 +10958,7 @@ get urls(): ((URL | Link))[] { const decoded = await Image.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === \\"undefined\\") continue; _33CjRLy5ujtsUrwRSCrsggvGdKuR_icon.push(decoded); @@ -10982,7 +10987,7 @@ get urls(): ((URL | Link))[] { documentLoader: options.documentLoader, contextLoader: options.contextLoader, tracerProvider: options.tracerProvider, - baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)), + baseUrl: _baseUrl, }); if (_result instanceof Error) throw _result; if (_result !== undefined) { @@ -11008,7 +11013,7 @@ get urls(): ((URL | Link))[] { const decoded = await Image.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === \\"undefined\\") continue; _3dXrUdkARxwyJLtJcYi1AJ92H41U_image.push(decoded); @@ -11044,12 +11049,12 @@ get urls(): ((URL | Link))[] { && Array.isArray(v[\\"@type\\"])&& [\\"https://www.w3.org/ns/activitystreams#Object\\",\\"http://joinmastodon.org/ns#Emoji\\",\\"http://litepub.social/ns#ChatMessage\\",\\"https://gotosocial.org/ns#AnnounceAuthorization\\",\\"https://gotosocial.org/ns#LikeApproval\\",\\"https://gotosocial.org/ns#ReplyAuthorization\\",\\"https://w3id.org/fep/044f#QuoteAuthorization\\",\\"https://w3id.org/valueflows/ont/vf#Proposal\\",\\"https://www.w3.org/ns/activitystreams#Activity\\",\\"http://litepub.social/ns#EmojiReact\\",\\"https://gotosocial.org/ns#AnnounceRequest\\",\\"https://gotosocial.org/ns#LikeRequest\\",\\"https://gotosocial.org/ns#ReplyRequest\\",\\"https://w3id.org/fep/044f#QuoteRequest\\",\\"https://www.w3.org/ns/activitystreams#Accept\\",\\"https://www.w3.org/ns/activitystreams#TentativeAccept\\",\\"https://www.w3.org/ns/activitystreams#Add\\",\\"https://www.w3.org/ns/activitystreams#Announce\\",\\"https://www.w3.org/ns/activitystreams#Create\\",\\"https://www.w3.org/ns/activitystreams#Delete\\",\\"https://www.w3.org/ns/activitystreams#Dislike\\",\\"https://www.w3.org/ns/activitystreams#Flag\\",\\"https://www.w3.org/ns/activitystreams#Follow\\",\\"https://www.w3.org/ns/activitystreams#Ignore\\",\\"https://www.w3.org/ns/activitystreams#Block\\",\\"https://www.w3.org/ns/activitystreams#IntransitiveActivity\\",\\"https://www.w3.org/ns/activitystreams#Arrive\\",\\"https://www.w3.org/ns/activitystreams#Question\\",\\"https://www.w3.org/ns/activitystreams#Travel\\",\\"https://www.w3.org/ns/activitystreams#Join\\",\\"https://www.w3.org/ns/activitystreams#Leave\\",\\"https://www.w3.org/ns/activitystreams#Like\\",\\"https://www.w3.org/ns/activitystreams#Listen\\",\\"https://www.w3.org/ns/activitystreams#Move\\",\\"https://www.w3.org/ns/activitystreams#Offer\\",\\"https://www.w3.org/ns/activitystreams#Invite\\",\\"https://www.w3.org/ns/activitystreams#Read\\",\\"https://www.w3.org/ns/activitystreams#Reject\\",\\"https://www.w3.org/ns/activitystreams#TentativeReject\\",\\"https://www.w3.org/ns/activitystreams#Remove\\",\\"https://www.w3.org/ns/activitystreams#Undo\\",\\"https://www.w3.org/ns/activitystreams#Update\\",\\"https://www.w3.org/ns/activitystreams#View\\",\\"https://www.w3.org/ns/activitystreams#Application\\",\\"https://www.w3.org/ns/activitystreams#Article\\",\\"https://www.w3.org/ns/activitystreams#Collection\\",\\"https://www.w3.org/ns/activitystreams#CollectionPage\\",\\"https://www.w3.org/ns/activitystreams#OrderedCollectionPage\\",\\"https://www.w3.org/ns/activitystreams#OrderedCollection\\",\\"https://www.w3.org/ns/activitystreams#Document\\",\\"https://www.w3.org/ns/activitystreams#Audio\\",\\"https://www.w3.org/ns/activitystreams#Image\\",\\"https://www.w3.org/ns/activitystreams#Page\\",\\"https://www.w3.org/ns/activitystreams#Video\\",\\"https://www.w3.org/ns/activitystreams#Event\\",\\"https://www.w3.org/ns/activitystreams#Group\\",\\"https://www.w3.org/ns/activitystreams#Note\\",\\"https://www.w3.org/ns/activitystreams#Organization\\",\\"https://www.w3.org/ns/activitystreams#Person\\",\\"https://www.w3.org/ns/activitystreams#Place\\",\\"https://www.w3.org/ns/activitystreams#Profile\\",\\"https://www.w3.org/ns/activitystreams#Relationship\\",\\"https://www.w3.org/ns/activitystreams#Service\\",\\"https://www.w3.org/ns/activitystreams#Tombstone\\"].some( t => v[\\"@type\\"].includes(t)) ? await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& [\\"https://www.w3.org/ns/activitystreams#Link\\",\\"https://www.w3.org/ns/activitystreams#Hashtag\\",\\"https://www.w3.org/ns/activitystreams#Mention\\"].some( t => v[\\"@type\\"].includes(t)) ? await Link.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -11087,12 +11092,12 @@ get urls(): ((URL | Link))[] { && Array.isArray(v[\\"@type\\"])&& [\\"https://www.w3.org/ns/activitystreams#Object\\",\\"http://joinmastodon.org/ns#Emoji\\",\\"http://litepub.social/ns#ChatMessage\\",\\"https://gotosocial.org/ns#AnnounceAuthorization\\",\\"https://gotosocial.org/ns#LikeApproval\\",\\"https://gotosocial.org/ns#ReplyAuthorization\\",\\"https://w3id.org/fep/044f#QuoteAuthorization\\",\\"https://w3id.org/valueflows/ont/vf#Proposal\\",\\"https://www.w3.org/ns/activitystreams#Activity\\",\\"http://litepub.social/ns#EmojiReact\\",\\"https://gotosocial.org/ns#AnnounceRequest\\",\\"https://gotosocial.org/ns#LikeRequest\\",\\"https://gotosocial.org/ns#ReplyRequest\\",\\"https://w3id.org/fep/044f#QuoteRequest\\",\\"https://www.w3.org/ns/activitystreams#Accept\\",\\"https://www.w3.org/ns/activitystreams#TentativeAccept\\",\\"https://www.w3.org/ns/activitystreams#Add\\",\\"https://www.w3.org/ns/activitystreams#Announce\\",\\"https://www.w3.org/ns/activitystreams#Create\\",\\"https://www.w3.org/ns/activitystreams#Delete\\",\\"https://www.w3.org/ns/activitystreams#Dislike\\",\\"https://www.w3.org/ns/activitystreams#Flag\\",\\"https://www.w3.org/ns/activitystreams#Follow\\",\\"https://www.w3.org/ns/activitystreams#Ignore\\",\\"https://www.w3.org/ns/activitystreams#Block\\",\\"https://www.w3.org/ns/activitystreams#IntransitiveActivity\\",\\"https://www.w3.org/ns/activitystreams#Arrive\\",\\"https://www.w3.org/ns/activitystreams#Question\\",\\"https://www.w3.org/ns/activitystreams#Travel\\",\\"https://www.w3.org/ns/activitystreams#Join\\",\\"https://www.w3.org/ns/activitystreams#Leave\\",\\"https://www.w3.org/ns/activitystreams#Like\\",\\"https://www.w3.org/ns/activitystreams#Listen\\",\\"https://www.w3.org/ns/activitystreams#Move\\",\\"https://www.w3.org/ns/activitystreams#Offer\\",\\"https://www.w3.org/ns/activitystreams#Invite\\",\\"https://www.w3.org/ns/activitystreams#Read\\",\\"https://www.w3.org/ns/activitystreams#Reject\\",\\"https://www.w3.org/ns/activitystreams#TentativeReject\\",\\"https://www.w3.org/ns/activitystreams#Remove\\",\\"https://www.w3.org/ns/activitystreams#Undo\\",\\"https://www.w3.org/ns/activitystreams#Update\\",\\"https://www.w3.org/ns/activitystreams#View\\",\\"https://www.w3.org/ns/activitystreams#Application\\",\\"https://www.w3.org/ns/activitystreams#Article\\",\\"https://www.w3.org/ns/activitystreams#Collection\\",\\"https://www.w3.org/ns/activitystreams#CollectionPage\\",\\"https://www.w3.org/ns/activitystreams#OrderedCollectionPage\\",\\"https://www.w3.org/ns/activitystreams#OrderedCollection\\",\\"https://www.w3.org/ns/activitystreams#Document\\",\\"https://www.w3.org/ns/activitystreams#Audio\\",\\"https://www.w3.org/ns/activitystreams#Image\\",\\"https://www.w3.org/ns/activitystreams#Page\\",\\"https://www.w3.org/ns/activitystreams#Video\\",\\"https://www.w3.org/ns/activitystreams#Event\\",\\"https://www.w3.org/ns/activitystreams#Group\\",\\"https://www.w3.org/ns/activitystreams#Note\\",\\"https://www.w3.org/ns/activitystreams#Organization\\",\\"https://www.w3.org/ns/activitystreams#Person\\",\\"https://www.w3.org/ns/activitystreams#Place\\",\\"https://www.w3.org/ns/activitystreams#Profile\\",\\"https://www.w3.org/ns/activitystreams#Relationship\\",\\"https://www.w3.org/ns/activitystreams#Service\\",\\"https://www.w3.org/ns/activitystreams#Tombstone\\"].some( t => v[\\"@type\\"].includes(t)) ? await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& [\\"https://www.w3.org/ns/activitystreams#Link\\",\\"https://www.w3.org/ns/activitystreams#Hashtag\\",\\"https://www.w3.org/ns/activitystreams#Mention\\"].some( t => v[\\"@type\\"].includes(t)) ? await Link.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -11130,12 +11135,12 @@ get urls(): ((URL | Link))[] { && Array.isArray(v[\\"@type\\"])&& [\\"https://www.w3.org/ns/activitystreams#Link\\",\\"https://www.w3.org/ns/activitystreams#Hashtag\\",\\"https://www.w3.org/ns/activitystreams#Mention\\"].some( t => v[\\"@type\\"].includes(t)) ? await Link.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& [\\"https://www.w3.org/ns/activitystreams#Object\\",\\"http://joinmastodon.org/ns#Emoji\\",\\"http://litepub.social/ns#ChatMessage\\",\\"https://gotosocial.org/ns#AnnounceAuthorization\\",\\"https://gotosocial.org/ns#LikeApproval\\",\\"https://gotosocial.org/ns#ReplyAuthorization\\",\\"https://w3id.org/fep/044f#QuoteAuthorization\\",\\"https://w3id.org/valueflows/ont/vf#Proposal\\",\\"https://www.w3.org/ns/activitystreams#Activity\\",\\"http://litepub.social/ns#EmojiReact\\",\\"https://gotosocial.org/ns#AnnounceRequest\\",\\"https://gotosocial.org/ns#LikeRequest\\",\\"https://gotosocial.org/ns#ReplyRequest\\",\\"https://w3id.org/fep/044f#QuoteRequest\\",\\"https://www.w3.org/ns/activitystreams#Accept\\",\\"https://www.w3.org/ns/activitystreams#TentativeAccept\\",\\"https://www.w3.org/ns/activitystreams#Add\\",\\"https://www.w3.org/ns/activitystreams#Announce\\",\\"https://www.w3.org/ns/activitystreams#Create\\",\\"https://www.w3.org/ns/activitystreams#Delete\\",\\"https://www.w3.org/ns/activitystreams#Dislike\\",\\"https://www.w3.org/ns/activitystreams#Flag\\",\\"https://www.w3.org/ns/activitystreams#Follow\\",\\"https://www.w3.org/ns/activitystreams#Ignore\\",\\"https://www.w3.org/ns/activitystreams#Block\\",\\"https://www.w3.org/ns/activitystreams#IntransitiveActivity\\",\\"https://www.w3.org/ns/activitystreams#Arrive\\",\\"https://www.w3.org/ns/activitystreams#Question\\",\\"https://www.w3.org/ns/activitystreams#Travel\\",\\"https://www.w3.org/ns/activitystreams#Join\\",\\"https://www.w3.org/ns/activitystreams#Leave\\",\\"https://www.w3.org/ns/activitystreams#Like\\",\\"https://www.w3.org/ns/activitystreams#Listen\\",\\"https://www.w3.org/ns/activitystreams#Move\\",\\"https://www.w3.org/ns/activitystreams#Offer\\",\\"https://www.w3.org/ns/activitystreams#Invite\\",\\"https://www.w3.org/ns/activitystreams#Read\\",\\"https://www.w3.org/ns/activitystreams#Reject\\",\\"https://www.w3.org/ns/activitystreams#TentativeReject\\",\\"https://www.w3.org/ns/activitystreams#Remove\\",\\"https://www.w3.org/ns/activitystreams#Undo\\",\\"https://www.w3.org/ns/activitystreams#Update\\",\\"https://www.w3.org/ns/activitystreams#View\\",\\"https://www.w3.org/ns/activitystreams#Application\\",\\"https://www.w3.org/ns/activitystreams#Article\\",\\"https://www.w3.org/ns/activitystreams#Collection\\",\\"https://www.w3.org/ns/activitystreams#CollectionPage\\",\\"https://www.w3.org/ns/activitystreams#OrderedCollectionPage\\",\\"https://www.w3.org/ns/activitystreams#OrderedCollection\\",\\"https://www.w3.org/ns/activitystreams#Document\\",\\"https://www.w3.org/ns/activitystreams#Audio\\",\\"https://www.w3.org/ns/activitystreams#Image\\",\\"https://www.w3.org/ns/activitystreams#Page\\",\\"https://www.w3.org/ns/activitystreams#Video\\",\\"https://www.w3.org/ns/activitystreams#Event\\",\\"https://www.w3.org/ns/activitystreams#Group\\",\\"https://www.w3.org/ns/activitystreams#Note\\",\\"https://www.w3.org/ns/activitystreams#Organization\\",\\"https://www.w3.org/ns/activitystreams#Person\\",\\"https://www.w3.org/ns/activitystreams#Place\\",\\"https://www.w3.org/ns/activitystreams#Profile\\",\\"https://www.w3.org/ns/activitystreams#Relationship\\",\\"https://www.w3.org/ns/activitystreams#Service\\",\\"https://www.w3.org/ns/activitystreams#Tombstone\\"].some( t => v[\\"@type\\"].includes(t)) ? await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -11192,7 +11197,7 @@ get urls(): ((URL | Link))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === \\"undefined\\") continue; _7UpwM3JWcXhADcscukEehBorf6k_replies.push(decoded); @@ -11225,7 +11230,7 @@ get urls(): ((URL | Link))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === \\"undefined\\") continue; _3kAfck9PcEYt2L7xug5y99YPbANs_shares.push(decoded); @@ -11258,7 +11263,7 @@ get urls(): ((URL | Link))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === \\"undefined\\") continue; _S3ceDnpMdzoTRCccB9FkJWrEzYW_likes.push(decoded); @@ -11291,7 +11296,7 @@ get urls(): ((URL | Link))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === \\"undefined\\") continue; _kMatyyNAuxoTD8GQMBfA5ogThMR_emojiReactions.push(decoded); @@ -11373,12 +11378,12 @@ get urls(): ((URL | Link))[] { && Array.isArray(v[\\"@type\\"])&& [\\"https://www.w3.org/ns/activitystreams#Object\\",\\"http://joinmastodon.org/ns#Emoji\\",\\"http://litepub.social/ns#ChatMessage\\",\\"https://gotosocial.org/ns#AnnounceAuthorization\\",\\"https://gotosocial.org/ns#LikeApproval\\",\\"https://gotosocial.org/ns#ReplyAuthorization\\",\\"https://w3id.org/fep/044f#QuoteAuthorization\\",\\"https://w3id.org/valueflows/ont/vf#Proposal\\",\\"https://www.w3.org/ns/activitystreams#Activity\\",\\"http://litepub.social/ns#EmojiReact\\",\\"https://gotosocial.org/ns#AnnounceRequest\\",\\"https://gotosocial.org/ns#LikeRequest\\",\\"https://gotosocial.org/ns#ReplyRequest\\",\\"https://w3id.org/fep/044f#QuoteRequest\\",\\"https://www.w3.org/ns/activitystreams#Accept\\",\\"https://www.w3.org/ns/activitystreams#TentativeAccept\\",\\"https://www.w3.org/ns/activitystreams#Add\\",\\"https://www.w3.org/ns/activitystreams#Announce\\",\\"https://www.w3.org/ns/activitystreams#Create\\",\\"https://www.w3.org/ns/activitystreams#Delete\\",\\"https://www.w3.org/ns/activitystreams#Dislike\\",\\"https://www.w3.org/ns/activitystreams#Flag\\",\\"https://www.w3.org/ns/activitystreams#Follow\\",\\"https://www.w3.org/ns/activitystreams#Ignore\\",\\"https://www.w3.org/ns/activitystreams#Block\\",\\"https://www.w3.org/ns/activitystreams#IntransitiveActivity\\",\\"https://www.w3.org/ns/activitystreams#Arrive\\",\\"https://www.w3.org/ns/activitystreams#Question\\",\\"https://www.w3.org/ns/activitystreams#Travel\\",\\"https://www.w3.org/ns/activitystreams#Join\\",\\"https://www.w3.org/ns/activitystreams#Leave\\",\\"https://www.w3.org/ns/activitystreams#Like\\",\\"https://www.w3.org/ns/activitystreams#Listen\\",\\"https://www.w3.org/ns/activitystreams#Move\\",\\"https://www.w3.org/ns/activitystreams#Offer\\",\\"https://www.w3.org/ns/activitystreams#Invite\\",\\"https://www.w3.org/ns/activitystreams#Read\\",\\"https://www.w3.org/ns/activitystreams#Reject\\",\\"https://www.w3.org/ns/activitystreams#TentativeReject\\",\\"https://www.w3.org/ns/activitystreams#Remove\\",\\"https://www.w3.org/ns/activitystreams#Undo\\",\\"https://www.w3.org/ns/activitystreams#Update\\",\\"https://www.w3.org/ns/activitystreams#View\\",\\"https://www.w3.org/ns/activitystreams#Application\\",\\"https://www.w3.org/ns/activitystreams#Article\\",\\"https://www.w3.org/ns/activitystreams#Collection\\",\\"https://www.w3.org/ns/activitystreams#CollectionPage\\",\\"https://www.w3.org/ns/activitystreams#OrderedCollectionPage\\",\\"https://www.w3.org/ns/activitystreams#OrderedCollection\\",\\"https://www.w3.org/ns/activitystreams#Document\\",\\"https://www.w3.org/ns/activitystreams#Audio\\",\\"https://www.w3.org/ns/activitystreams#Image\\",\\"https://www.w3.org/ns/activitystreams#Page\\",\\"https://www.w3.org/ns/activitystreams#Video\\",\\"https://www.w3.org/ns/activitystreams#Event\\",\\"https://www.w3.org/ns/activitystreams#Group\\",\\"https://www.w3.org/ns/activitystreams#Note\\",\\"https://www.w3.org/ns/activitystreams#Organization\\",\\"https://www.w3.org/ns/activitystreams#Person\\",\\"https://www.w3.org/ns/activitystreams#Place\\",\\"https://www.w3.org/ns/activitystreams#Profile\\",\\"https://www.w3.org/ns/activitystreams#Relationship\\",\\"https://www.w3.org/ns/activitystreams#Service\\",\\"https://www.w3.org/ns/activitystreams#Tombstone\\"].some( t => v[\\"@type\\"].includes(t)) ? await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& [\\"https://www.w3.org/ns/activitystreams#Link\\",\\"https://www.w3.org/ns/activitystreams#Hashtag\\",\\"https://www.w3.org/ns/activitystreams#Mention\\"].some( t => v[\\"@type\\"].includes(t)) ? await Link.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -11437,13 +11442,13 @@ get urls(): ((URL | Link))[] { : \\"\\" ) ) - : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) + : URL.canParse(v[\\"@id\\"]) && _baseUrl ? new URL(v[\\"@id\\"]) - : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl))) : typeof v === \\"object\\" && \\"@type\\" in v + : new URL(v[\\"@id\\"], _baseUrl) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& [\\"https://www.w3.org/ns/activitystreams#Link\\",\\"https://www.w3.org/ns/activitystreams#Hashtag\\",\\"https://www.w3.org/ns/activitystreams#Mention\\"].some( t => v[\\"@type\\"].includes(t)) ? await Link.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -11478,7 +11483,7 @@ get urls(): ((URL | Link))[] { const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === \\"undefined\\") continue; _3hFbw7DTpHhq3cvVhkY8njhcsXbd_to.push(decoded); @@ -11511,7 +11516,7 @@ get urls(): ((URL | Link))[] { const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === \\"undefined\\") continue; _aLZupjwL8XB7tzdLgCMXdjZ6qej_bto.push(decoded); @@ -11544,7 +11549,7 @@ get urls(): ((URL | Link))[] { const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === \\"undefined\\") continue; _42a1SvBs24QSLzKcfjCyNTjW5a1g_cc.push(decoded); @@ -11577,7 +11582,7 @@ get urls(): ((URL | Link))[] { const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === \\"undefined\\") continue; _3qvegKUB8YLgTXRpEf8E6JZSkz2H_bcc.push(decoded); @@ -11652,7 +11657,7 @@ get urls(): ((URL | Link))[] { const decoded = await Source.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === \\"undefined\\") continue; _2ZwCFoS787v8y8bXKjMoE6MAbrEB_source.push(decoded); @@ -11685,7 +11690,7 @@ get urls(): ((URL | Link))[] { const decoded = await DataIntegrityProof.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === \\"undefined\\") continue; _42rPnotok1ivQ2RNCKNbeFJgx8b8_proof.push(decoded); @@ -11706,7 +11711,7 @@ get urls(): ((URL | Link))[] { const decoded = await InteractionPolicy.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === \\"undefined\\") continue; _2MHQfh2N74MMmDLDqYWFo7TxYQK2_interactionPolicy.push(decoded); @@ -11738,9 +11743,9 @@ get urls(): ((URL | Link))[] { : \\"\\" ) ) - : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) + : URL.canParse(v[\\"@id\\"]) && _baseUrl ? new URL(v[\\"@id\\"]) - : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl))); + : new URL(v[\\"@id\\"], _baseUrl); if (typeof decoded === \\"undefined\\") continue; _23YiVs2miQcEiUdn4u8SvjQKWYim_approvedBy.push(decoded); } @@ -11772,7 +11777,7 @@ get urls(): ((URL | Link))[] { const decoded = await LikeAuthorization.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === \\"undefined\\") continue; _3fCeb5aXaDDd4fvkQ96BLWifBUBa_likeAuthorization.push(decoded); @@ -11805,7 +11810,7 @@ get urls(): ((URL | Link))[] { const decoded = await ReplyAuthorization.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === \\"undefined\\") continue; _YA4wdUW7rYztAQ6SjhMnJCmcmtP_replyAuthorization.push(decoded); @@ -11838,7 +11843,7 @@ get urls(): ((URL | Link))[] { const decoded = await AnnounceAuthorization.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === \\"undefined\\") continue; _446xEaDBs3Fz6MyzP3PSBaLupkbJ_announceAuthorization.push(decoded); @@ -13016,9 +13021,14 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { - options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; + const _resolvedUrl = + values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) + ? new URL(values[\\"@id\\"], options.baseUrl) + : undefined; + if (options.baseUrl == null && _resolvedUrl != null) { + options = { ...options, baseUrl: _resolvedUrl }; } + const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -14022,9 +14032,14 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { - options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; + const _resolvedUrl = + values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) + ? new URL(values[\\"@id\\"], options.baseUrl) + : undefined; + if (options.baseUrl == null && _resolvedUrl != null) { + options = { ...options, baseUrl: _resolvedUrl }; } + const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -14073,7 +14088,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === \\"undefined\\") continue; _3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote.push(decoded); @@ -14132,7 +14147,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await QuoteAuthorization.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === \\"undefined\\") continue; _ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization.push(decoded); @@ -17079,9 +17094,14 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { - options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; + const _resolvedUrl = + values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) + ? new URL(values[\\"@id\\"], options.baseUrl) + : undefined; + if (options.baseUrl == null && _resolvedUrl != null) { + options = { ...options, baseUrl: _resolvedUrl }; } + const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -17268,23 +17288,23 @@ instruments?: (Object | URL)[];} typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Application\\") ? await Application.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Group\\") ? await Group.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Organization\\") ? await Organization.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Person\\") ? await Person.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Service\\") ? await Service.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -17319,7 +17339,7 @@ instruments?: (Object | URL)[];} const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === \\"undefined\\") continue; _2MH19yxjn1wnHsNfa5n4JBhJzxyc_object.push(decoded); @@ -17352,7 +17372,7 @@ instruments?: (Object | URL)[];} const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === \\"undefined\\") continue; _3JQCmF2Ww56Ag9EWRYoSZRDNCYtF_target.push(decoded); @@ -17385,7 +17405,7 @@ instruments?: (Object | URL)[];} const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === \\"undefined\\") continue; _u4QGFbRFcYmPEKGbPv1hpBR9r5G_result.push(decoded); @@ -17418,7 +17438,7 @@ instruments?: (Object | URL)[];} const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === \\"undefined\\") continue; _25zu2s3VxVujgEKqrDycjE284XQR_origin.push(decoded); @@ -17451,7 +17471,7 @@ instruments?: (Object | URL)[];} const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === \\"undefined\\") continue; _3c5t2x7DYRo2shwTxpkd4kYSS5WQ_instrument.push(decoded); @@ -17922,9 +17942,14 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { - options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; + const _resolvedUrl = + values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) + ? new URL(values[\\"@id\\"], options.baseUrl) + : undefined; + if (options.baseUrl == null && _resolvedUrl != null) { + options = { ...options, baseUrl: _resolvedUrl }; } + const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -18425,9 +18450,14 @@ name?: string | LanguageString | null;value?: string | LanguageString | null;} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { - options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; + const _resolvedUrl = + values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) + ? new URL(values[\\"@id\\"], options.baseUrl) + : undefined; + if (options.baseUrl == null && _resolvedUrl != null) { + options = { ...options, baseUrl: _resolvedUrl }; } + const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -19011,9 +19041,14 @@ unit?: string | null;numericalValue?: Decimal | null;} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { - options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; + const _resolvedUrl = + values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) + ? new URL(values[\\"@id\\"], options.baseUrl) + : undefined; + if (options.baseUrl == null && _resolvedUrl != null) { + options = { ...options, baseUrl: _resolvedUrl }; } + const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -20010,9 +20045,14 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { - options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; + const _resolvedUrl = + values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) + ? new URL(values[\\"@id\\"], options.baseUrl) + : undefined; + if (options.baseUrl == null && _resolvedUrl != null) { + options = { ...options, baseUrl: _resolvedUrl }; } + const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -20061,7 +20101,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === \\"undefined\\") continue; _2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject.push(decoded); @@ -20094,7 +20134,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === \\"undefined\\") continue; _2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget.push(decoded); @@ -20459,9 +20499,14 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { - options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; + const _resolvedUrl = + values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) + ? new URL(values[\\"@id\\"], options.baseUrl) + : undefined; + if (options.baseUrl == null && _resolvedUrl != null) { + options = { ...options, baseUrl: _resolvedUrl }; } + const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -21050,9 +21095,14 @@ canLike?: InteractionRule | null;canReply?: InteractionRule | null;canAnnounce?: // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { - options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; + const _resolvedUrl = + values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) + ? new URL(values[\\"@id\\"], options.baseUrl) + : undefined; + if (options.baseUrl == null && _resolvedUrl != null) { + options = { ...options, baseUrl: _resolvedUrl }; } + const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -21084,7 +21134,7 @@ canLike?: InteractionRule | null;canReply?: InteractionRule | null;canAnnounce?: const decoded = await InteractionRule.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === \\"undefined\\") continue; _3JkwVLb3BNCwCWdsb5RftGAg8vyT_canLike.push(decoded); @@ -21105,7 +21155,7 @@ canLike?: InteractionRule | null;canReply?: InteractionRule | null;canAnnounce?: const decoded = await InteractionRule.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === \\"undefined\\") continue; _2UBgLRi5p3DRGGvWyB227i4Qjhzd_canReply.push(decoded); @@ -21126,7 +21176,7 @@ canLike?: InteractionRule | null;canReply?: InteractionRule | null;canAnnounce?: const decoded = await InteractionRule.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === \\"undefined\\") continue; _fu5nmoAj528fBQfnxhY9Daok3Vi_canAnnounce.push(decoded); @@ -21147,7 +21197,7 @@ canLike?: InteractionRule | null;canReply?: InteractionRule | null;canAnnounce?: const decoded = await InteractionRule.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === \\"undefined\\") continue; _LE3zBTVacTZw2LSyLt4wVUkXeUy_canQuote.push(decoded); @@ -21798,9 +21848,14 @@ get manualApprovals(): (URL)[] { // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { - options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; + const _resolvedUrl = + values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) + ? new URL(values[\\"@id\\"], options.baseUrl) + : undefined; + if (options.baseUrl == null && _resolvedUrl != null) { + options = { ...options, baseUrl: _resolvedUrl }; } + const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -21843,9 +21898,9 @@ get manualApprovals(): (URL)[] { : \\"\\" ) ) - : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) + : URL.canParse(v[\\"@id\\"]) && _baseUrl ? new URL(v[\\"@id\\"]) - : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl))); + : new URL(v[\\"@id\\"], _baseUrl); if (typeof decoded === \\"undefined\\") continue; _2rFyCF14HoyNjitj9PmCzek5iSsg_automaticApproval.push(decoded); } @@ -21876,9 +21931,9 @@ get manualApprovals(): (URL)[] { : \\"\\" ) ) - : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) + : URL.canParse(v[\\"@id\\"]) && _baseUrl ? new URL(v[\\"@id\\"]) - : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl))); + : new URL(v[\\"@id\\"], _baseUrl); if (typeof decoded === \\"undefined\\") continue; _sxj8y5XMMMBWUnRYFw85MKedCMj_manualApproval.push(decoded); } @@ -22838,9 +22893,14 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { - options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; + const _resolvedUrl = + values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) + ? new URL(values[\\"@id\\"], options.baseUrl) + : undefined; + if (options.baseUrl == null && _resolvedUrl != null) { + options = { ...options, baseUrl: _resolvedUrl }; } + const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -22889,7 +22949,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === \\"undefined\\") continue; _2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject.push(decoded); @@ -22922,7 +22982,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === \\"undefined\\") continue; _2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget.push(decoded); @@ -23286,9 +23346,14 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { - options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; + const _resolvedUrl = + values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) + ? new URL(values[\\"@id\\"], options.baseUrl) + : undefined; + if (options.baseUrl == null && _resolvedUrl != null) { + options = { ...options, baseUrl: _resolvedUrl }; } + const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -24198,9 +24263,14 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { - options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; + const _resolvedUrl = + values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) + ? new URL(values[\\"@id\\"], options.baseUrl) + : undefined; + if (options.baseUrl == null && _resolvedUrl != null) { + options = { ...options, baseUrl: _resolvedUrl }; } + const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -24249,7 +24319,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === \\"undefined\\") continue; _2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject.push(decoded); @@ -24282,7 +24352,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === \\"undefined\\") continue; _2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget.push(decoded); @@ -24646,9 +24716,14 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { - options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; + const _resolvedUrl = + values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) + ? new URL(values[\\"@id\\"], options.baseUrl) + : undefined; + if (options.baseUrl == null && _resolvedUrl != null) { + options = { ...options, baseUrl: _resolvedUrl }; } + const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -25557,9 +25632,14 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { - options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; + const _resolvedUrl = + values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) + ? new URL(values[\\"@id\\"], options.baseUrl) + : undefined; + if (options.baseUrl == null && _resolvedUrl != null) { + options = { ...options, baseUrl: _resolvedUrl }; } + const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -25608,7 +25688,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === \\"undefined\\") continue; _2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject.push(decoded); @@ -25641,7 +25721,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === \\"undefined\\") continue; _2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget.push(decoded); @@ -26005,9 +26085,14 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { - options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; + const _resolvedUrl = + values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) + ? new URL(values[\\"@id\\"], options.baseUrl) + : undefined; + if (options.baseUrl == null && _resolvedUrl != null) { + options = { ...options, baseUrl: _resolvedUrl }; } + const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -26450,9 +26535,14 @@ get endpoints(): (URL)[] { // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { - options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; + const _resolvedUrl = + values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) + ? new URL(values[\\"@id\\"], options.baseUrl) + : undefined; + if (options.baseUrl == null && _resolvedUrl != null) { + options = { ...options, baseUrl: _resolvedUrl }; } + const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -26499,9 +26589,9 @@ get endpoints(): (URL)[] { : \\"\\" ) ) - : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) + : URL.canParse(v[\\"@id\\"]) && _baseUrl ? new URL(v[\\"@id\\"]) - : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl))); + : new URL(v[\\"@id\\"], _baseUrl); if (typeof decoded === \\"undefined\\") continue; _2KM4fetG6FTJ1cphj76rzJ8Dyv7p_serviceEndpoint.push(decoded); } @@ -26803,9 +26893,14 @@ endpoints?: (URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { - options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; + const _resolvedUrl = + values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) + ? new URL(values[\\"@id\\"], options.baseUrl) + : undefined; + if (options.baseUrl == null && _resolvedUrl != null) { + options = { ...options, baseUrl: _resolvedUrl }; } + const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -27621,9 +27716,14 @@ cryptosuite?: \\"eddsa-jcs-2022\\" | null;verificationMethod?: Multikey | URL | // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { - options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; + const _resolvedUrl = + values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) + ? new URL(values[\\"@id\\"], options.baseUrl) + : undefined; + if (options.baseUrl == null && _resolvedUrl != null) { + options = { ...options, baseUrl: _resolvedUrl }; } + const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -27685,7 +27785,7 @@ cryptosuite?: \\"eddsa-jcs-2022\\" | null;verificationMethod?: Multikey | URL | const decoded = await Multikey.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === \\"undefined\\") continue; _2mHVKxqA7zncjveJrDEo3pWpMZqg_verificationMethod.push(decoded); @@ -28590,9 +28690,14 @@ owner?: Application | Group | Organization | Person | Service | URL | null;publi // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { - options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; + const _resolvedUrl = + values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) + ? new URL(values[\\"@id\\"], options.baseUrl) + : undefined; + if (options.baseUrl == null && _resolvedUrl != null) { + options = { ...options, baseUrl: _resolvedUrl }; } + const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -28638,23 +28743,23 @@ owner?: Application | Group | Organization | Person | Service | URL | null;publi typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Application\\") ? await Application.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Group\\") ? await Group.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Organization\\") ? await Organization.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Person\\") ? await Person.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Service\\") ? await Service.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -29472,9 +29577,14 @@ controller?: Application | Group | Organization | Person | Service | URL | null; // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { - options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; + const _resolvedUrl = + values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) + ? new URL(values[\\"@id\\"], options.baseUrl) + : undefined; + if (options.baseUrl == null && _resolvedUrl != null) { + options = { ...options, baseUrl: _resolvedUrl }; } + const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -29520,23 +29630,23 @@ controller?: Application | Group | Organization | Person | Service | URL | null; typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Application\\") ? await Application.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Group\\") ? await Group.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Organization\\") ? await Organization.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Person\\") ? await Person.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Service\\") ? await Service.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -30307,9 +30417,14 @@ action?: string | null;resourceConformsTo?: URL | null;resourceQuantity?: Measur // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { - options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; + const _resolvedUrl = + values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) + ? new URL(values[\\"@id\\"], options.baseUrl) + : undefined; + if (options.baseUrl == null && _resolvedUrl != null) { + options = { ...options, baseUrl: _resolvedUrl }; } + const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -30370,9 +30485,9 @@ action?: string | null;resourceConformsTo?: URL | null;resourceQuantity?: Measur : \\"\\" ) ) - : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) + : URL.canParse(v[\\"@id\\"]) && _baseUrl ? new URL(v[\\"@id\\"]) - : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl))); + : new URL(v[\\"@id\\"], _baseUrl); if (typeof decoded === \\"undefined\\") continue; _BBAeMUUQDwBQn6cvu3P2Csd6b6h_resourceConformsTo.push(decoded); } @@ -30392,7 +30507,7 @@ action?: string | null;resourceConformsTo?: URL | null;resourceQuantity?: Measur const decoded = await Measure.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === \\"undefined\\") continue; _2dLfqTbbRiggEcMQWbHpxkQrtmrc_resourceQuantity.push(decoded); @@ -30413,7 +30528,7 @@ action?: string | null;resourceConformsTo?: URL | null;resourceQuantity?: Measur const decoded = await Measure.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === \\"undefined\\") continue; _YmNSnuih3Zk4VdR5JPVnQYroLAh_availableQuantity.push(decoded); @@ -30434,7 +30549,7 @@ action?: string | null;resourceConformsTo?: URL | null;resourceQuantity?: Measur const decoded = await Measure.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === \\"undefined\\") continue; _3XueAFds2NBrqNpnV8b7aC8hV72S_minimumQuantity.push(decoded); @@ -31179,9 +31294,14 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { - options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; + const _resolvedUrl = + values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) + ? new URL(values[\\"@id\\"], options.baseUrl) + : undefined; + if (options.baseUrl == null && _resolvedUrl != null) { + options = { ...options, baseUrl: _resolvedUrl }; } + const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -31236,7 +31356,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Intent.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === \\"undefined\\") continue; _sS5LvXX8cn4c3x6ux836AwYbTyJ_publishes.push(decoded); @@ -31257,7 +31377,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Intent.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === \\"undefined\\") continue; _Z4ntJgFwR9BaNTbFvkRTGNEwUwy_reciprocal.push(decoded); @@ -31672,9 +31792,14 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { - options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; + const _resolvedUrl = + values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) + ? new URL(values[\\"@id\\"], options.baseUrl) + : undefined; + if (options.baseUrl == null && _resolvedUrl != null) { + options = { ...options, baseUrl: _resolvedUrl }; } + const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -32012,9 +32137,14 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { - options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; + const _resolvedUrl = + values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) + ? new URL(values[\\"@id\\"], options.baseUrl) + : undefined; + if (options.baseUrl == null && _resolvedUrl != null) { + options = { ...options, baseUrl: _resolvedUrl }; } + const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -32347,9 +32477,14 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { - options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; + const _resolvedUrl = + values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) + ? new URL(values[\\"@id\\"], options.baseUrl) + : undefined; + if (options.baseUrl == null && _resolvedUrl != null) { + options = { ...options, baseUrl: _resolvedUrl }; } + const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -37928,9 +38063,14 @@ get preferredUsernames(): ((string | LanguageString))[] { // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { - options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; + const _resolvedUrl = + values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) + ? new URL(values[\\"@id\\"], options.baseUrl) + : undefined; + if (options.baseUrl == null && _resolvedUrl != null) { + options = { ...options, baseUrl: _resolvedUrl }; } + const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -38003,7 +38143,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await CryptographicKey.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === \\"undefined\\") continue; _axq166E2eZADq34V4MYUc8KMZdC_publicKey.push(decoded); @@ -38036,7 +38176,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Multikey.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === \\"undefined\\") continue; _4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.push(decoded); @@ -38089,11 +38229,11 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#OrderedCollection\\") ? await OrderedCollection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#OrderedCollectionPage\\") ? await OrderedCollectionPage.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -38130,11 +38270,11 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#OrderedCollection\\") ? await OrderedCollection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#OrderedCollectionPage\\") ? await OrderedCollectionPage.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -38169,7 +38309,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === \\"undefined\\") continue; _3yAv8jymNfNuJUDuBzJ1NQhdbAee_following.push(decoded); @@ -38202,7 +38342,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === \\"undefined\\") continue; _BBCTgfphhsFzpVfKTykGSpBNwoA_followers.push(decoded); @@ -38235,7 +38375,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === \\"undefined\\") continue; _3bgkPwJanyTCoVFM9ovRcus8tKkU_liked.push(decoded); @@ -38268,7 +38408,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === \\"undefined\\") continue; _4N1vBJzXDf8NbBumeECQMFvKetja_featured.push(decoded); @@ -38301,7 +38441,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === \\"undefined\\") continue; _2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags.push(decoded); @@ -38334,7 +38474,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === \\"undefined\\") continue; _3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.push(decoded); @@ -38355,7 +38495,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Endpoints.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === \\"undefined\\") continue; _sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints.push(decoded); @@ -38462,23 +38602,23 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Application\\") ? await Application.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Group\\") ? await Group.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Organization\\") ? await Organization.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Person\\") ? await Person.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Service\\") ? await Service.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -38515,23 +38655,23 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Application\\") ? await Application.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Group\\") ? await Group.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Organization\\") ? await Organization.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Person\\") ? await Person.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Service\\") ? await Service.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -38566,7 +38706,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await DidService.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === \\"undefined\\") continue; _4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.push(decoded); @@ -39391,9 +39531,14 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { - options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; + const _resolvedUrl = + values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) + ? new URL(values[\\"@id\\"], options.baseUrl) + : undefined; + if (options.baseUrl == null && _resolvedUrl != null) { + options = { ...options, baseUrl: _resolvedUrl }; } + const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -39738,9 +39883,14 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { - options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; + const _resolvedUrl = + values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) + ? new URL(values[\\"@id\\"], options.baseUrl) + : undefined; + if (options.baseUrl == null && _resolvedUrl != null) { + options = { ...options, baseUrl: _resolvedUrl }; } + const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -40739,9 +40889,14 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { - options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; + const _resolvedUrl = + values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) + ? new URL(values[\\"@id\\"], options.baseUrl) + : undefined; + if (options.baseUrl == null && _resolvedUrl != null) { + options = { ...options, baseUrl: _resolvedUrl }; } + const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -40790,7 +40945,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === \\"undefined\\") continue; _3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote.push(decoded); @@ -40849,7 +41004,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await QuoteAuthorization.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === \\"undefined\\") continue; _ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization.push(decoded); @@ -41380,9 +41535,14 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { - options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; + const _resolvedUrl = + values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) + ? new URL(values[\\"@id\\"], options.baseUrl) + : undefined; + if (options.baseUrl == null && _resolvedUrl != null) { + options = { ...options, baseUrl: _resolvedUrl }; } + const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -41809,9 +41969,14 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { - options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; + const _resolvedUrl = + values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) + ? new URL(values[\\"@id\\"], options.baseUrl) + : undefined; + if (options.baseUrl == null && _resolvedUrl != null) { + options = { ...options, baseUrl: _resolvedUrl }; } + const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -42143,9 +42308,14 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { - options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; + const _resolvedUrl = + values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) + ? new URL(values[\\"@id\\"], options.baseUrl) + : undefined; + if (options.baseUrl == null && _resolvedUrl != null) { + options = { ...options, baseUrl: _resolvedUrl }; } + const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -42483,9 +42653,14 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { - options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; + const _resolvedUrl = + values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) + ? new URL(values[\\"@id\\"], options.baseUrl) + : undefined; + if (options.baseUrl == null && _resolvedUrl != null) { + options = { ...options, baseUrl: _resolvedUrl }; } + const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -46330,9 +46505,14 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { - options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; + const _resolvedUrl = + values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) + ? new URL(values[\\"@id\\"], options.baseUrl) + : undefined; + if (options.baseUrl == null && _resolvedUrl != null) { + options = { ...options, baseUrl: _resolvedUrl }; } + const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -46411,7 +46591,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await CollectionPage.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === \\"undefined\\") continue; _3UyUdxnyn6cDn53QKrh4MBiearma_current.push(decoded); @@ -46444,7 +46624,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await CollectionPage.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === \\"undefined\\") continue; _J52RqweMe6hhv7RnLJMC8BExTE5_first.push(decoded); @@ -46477,7 +46657,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await CollectionPage.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === \\"undefined\\") continue; _gyJJnyEFnuNVi1HFZKfAn3Hfn26_last.push(decoded); @@ -46513,12 +46693,12 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu && Array.isArray(v[\\"@type\\"])&& [\\"https://www.w3.org/ns/activitystreams#Object\\",\\"http://joinmastodon.org/ns#Emoji\\",\\"http://litepub.social/ns#ChatMessage\\",\\"https://gotosocial.org/ns#AnnounceAuthorization\\",\\"https://gotosocial.org/ns#LikeApproval\\",\\"https://gotosocial.org/ns#ReplyAuthorization\\",\\"https://w3id.org/fep/044f#QuoteAuthorization\\",\\"https://w3id.org/valueflows/ont/vf#Proposal\\",\\"https://www.w3.org/ns/activitystreams#Activity\\",\\"http://litepub.social/ns#EmojiReact\\",\\"https://gotosocial.org/ns#AnnounceRequest\\",\\"https://gotosocial.org/ns#LikeRequest\\",\\"https://gotosocial.org/ns#ReplyRequest\\",\\"https://w3id.org/fep/044f#QuoteRequest\\",\\"https://www.w3.org/ns/activitystreams#Accept\\",\\"https://www.w3.org/ns/activitystreams#TentativeAccept\\",\\"https://www.w3.org/ns/activitystreams#Add\\",\\"https://www.w3.org/ns/activitystreams#Announce\\",\\"https://www.w3.org/ns/activitystreams#Create\\",\\"https://www.w3.org/ns/activitystreams#Delete\\",\\"https://www.w3.org/ns/activitystreams#Dislike\\",\\"https://www.w3.org/ns/activitystreams#Flag\\",\\"https://www.w3.org/ns/activitystreams#Follow\\",\\"https://www.w3.org/ns/activitystreams#Ignore\\",\\"https://www.w3.org/ns/activitystreams#Block\\",\\"https://www.w3.org/ns/activitystreams#IntransitiveActivity\\",\\"https://www.w3.org/ns/activitystreams#Arrive\\",\\"https://www.w3.org/ns/activitystreams#Question\\",\\"https://www.w3.org/ns/activitystreams#Travel\\",\\"https://www.w3.org/ns/activitystreams#Join\\",\\"https://www.w3.org/ns/activitystreams#Leave\\",\\"https://www.w3.org/ns/activitystreams#Like\\",\\"https://www.w3.org/ns/activitystreams#Listen\\",\\"https://www.w3.org/ns/activitystreams#Move\\",\\"https://www.w3.org/ns/activitystreams#Offer\\",\\"https://www.w3.org/ns/activitystreams#Invite\\",\\"https://www.w3.org/ns/activitystreams#Read\\",\\"https://www.w3.org/ns/activitystreams#Reject\\",\\"https://www.w3.org/ns/activitystreams#TentativeReject\\",\\"https://www.w3.org/ns/activitystreams#Remove\\",\\"https://www.w3.org/ns/activitystreams#Undo\\",\\"https://www.w3.org/ns/activitystreams#Update\\",\\"https://www.w3.org/ns/activitystreams#View\\",\\"https://www.w3.org/ns/activitystreams#Application\\",\\"https://www.w3.org/ns/activitystreams#Article\\",\\"https://www.w3.org/ns/activitystreams#Collection\\",\\"https://www.w3.org/ns/activitystreams#CollectionPage\\",\\"https://www.w3.org/ns/activitystreams#OrderedCollectionPage\\",\\"https://www.w3.org/ns/activitystreams#OrderedCollection\\",\\"https://www.w3.org/ns/activitystreams#Document\\",\\"https://www.w3.org/ns/activitystreams#Audio\\",\\"https://www.w3.org/ns/activitystreams#Image\\",\\"https://www.w3.org/ns/activitystreams#Page\\",\\"https://www.w3.org/ns/activitystreams#Video\\",\\"https://www.w3.org/ns/activitystreams#Event\\",\\"https://www.w3.org/ns/activitystreams#Group\\",\\"https://www.w3.org/ns/activitystreams#Note\\",\\"https://www.w3.org/ns/activitystreams#Organization\\",\\"https://www.w3.org/ns/activitystreams#Person\\",\\"https://www.w3.org/ns/activitystreams#Place\\",\\"https://www.w3.org/ns/activitystreams#Profile\\",\\"https://www.w3.org/ns/activitystreams#Relationship\\",\\"https://www.w3.org/ns/activitystreams#Service\\",\\"https://www.w3.org/ns/activitystreams#Tombstone\\"].some( t => v[\\"@type\\"].includes(t)) ? await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& [\\"https://www.w3.org/ns/activitystreams#Link\\",\\"https://www.w3.org/ns/activitystreams#Hashtag\\",\\"https://www.w3.org/ns/activitystreams#Mention\\"].some( t => v[\\"@type\\"].includes(t)) ? await Link.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -46553,7 +46733,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === \\"undefined\\") continue; _4TB9Qd9ddtcZEpMfzbHhzafE6jaJ_likesOf.push(decoded); @@ -46586,7 +46766,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === \\"undefined\\") continue; _3manzgeKiPsugpztKGiaUUwJ3ito_sharesOf.push(decoded); @@ -46619,7 +46799,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === \\"undefined\\") continue; _3T3oGm3twpcQUcrnMisXQtmDZ32X_repliesOf.push(decoded); @@ -46652,7 +46832,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === \\"undefined\\") continue; _2bvRkAFZjMfVD8jiUWZJr5YokSeN_inboxOf.push(decoded); @@ -46685,7 +46865,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === \\"undefined\\") continue; _4AHzVZDxHjK6uEWa9UiKHGK34yYm_outboxOf.push(decoded); @@ -46718,7 +46898,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === \\"undefined\\") continue; _41aoZ5M6yRUHy3Zx8q6iuZQxtopb_followersOf.push(decoded); @@ -46751,7 +46931,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === \\"undefined\\") continue; _2nXT2Ah42UjEEQF5oJQ39CbKB1xj_followingOf.push(decoded); @@ -46784,7 +46964,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === \\"undefined\\") continue; _2bsySzmT3qEZcrnoe3tZ5xBjXSju_likedOf.push(decoded); @@ -48217,9 +48397,14 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { - options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; + const _resolvedUrl = + values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) + ? new URL(values[\\"@id\\"], options.baseUrl) + : undefined; + if (options.baseUrl == null && _resolvedUrl != null) { + options = { ...options, baseUrl: _resolvedUrl }; } + const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -48272,7 +48457,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === \\"undefined\\") continue; _2kWgBhQKjEauxx8C6qF3ZQamK4Le_partOf.push(decoded); @@ -48305,7 +48490,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await CollectionPage.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === \\"undefined\\") continue; _3BT4kQLcXhHx7TAWaNDKh8nFn9eY_next.push(decoded); @@ -48338,7 +48523,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await CollectionPage.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === \\"undefined\\") continue; _3b8yG8tDNzQFFEnWhCc13G8eHooA_prev.push(decoded); @@ -48712,9 +48897,14 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { - options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; + const _resolvedUrl = + values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) + ? new URL(values[\\"@id\\"], options.baseUrl) + : undefined; + if (options.baseUrl == null && _resolvedUrl != null) { + options = { ...options, baseUrl: _resolvedUrl }; } + const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -49046,9 +49236,14 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { - options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; + const _resolvedUrl = + values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) + ? new URL(values[\\"@id\\"], options.baseUrl) + : undefined; + if (options.baseUrl == null && _resolvedUrl != null) { + options = { ...options, baseUrl: _resolvedUrl }; } + const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -49378,9 +49573,14 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { - options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; + const _resolvedUrl = + values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) + ? new URL(values[\\"@id\\"], options.baseUrl) + : undefined; + if (options.baseUrl == null && _resolvedUrl != null) { + options = { ...options, baseUrl: _resolvedUrl }; } + const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -50172,9 +50372,14 @@ proxyUrl?: URL | null;oauthAuthorizationEndpoint?: URL | null;oauthTokenEndpoint // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { - options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; + const _resolvedUrl = + values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) + ? new URL(values[\\"@id\\"], options.baseUrl) + : undefined; + if (options.baseUrl == null && _resolvedUrl != null) { + options = { ...options, baseUrl: _resolvedUrl }; } + const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -50217,9 +50422,9 @@ proxyUrl?: URL | null;oauthAuthorizationEndpoint?: URL | null;oauthTokenEndpoint : \\"\\" ) ) - : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) + : URL.canParse(v[\\"@id\\"]) && _baseUrl ? new URL(v[\\"@id\\"]) - : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl))); + : new URL(v[\\"@id\\"], _baseUrl); if (typeof decoded === \\"undefined\\") continue; _2JCYDbSxEHCCLdBYed33cCETfGyR_proxyUrl.push(decoded); } @@ -50250,9 +50455,9 @@ proxyUrl?: URL | null;oauthAuthorizationEndpoint?: URL | null;oauthTokenEndpoint : \\"\\" ) ) - : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) + : URL.canParse(v[\\"@id\\"]) && _baseUrl ? new URL(v[\\"@id\\"]) - : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl))); + : new URL(v[\\"@id\\"], _baseUrl); if (typeof decoded === \\"undefined\\") continue; _25S6UmgzDead8hxL5sQFezZTAusd_oauthAuthorizationEndpoint.push(decoded); } @@ -50283,9 +50488,9 @@ proxyUrl?: URL | null;oauthAuthorizationEndpoint?: URL | null;oauthTokenEndpoint : \\"\\" ) ) - : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) + : URL.canParse(v[\\"@id\\"]) && _baseUrl ? new URL(v[\\"@id\\"]) - : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl))); + : new URL(v[\\"@id\\"], _baseUrl); if (typeof decoded === \\"undefined\\") continue; _iAMxqrSba7yBCRB1FZ5kEVdKEZ3_oauthTokenEndpoint.push(decoded); } @@ -50316,9 +50521,9 @@ proxyUrl?: URL | null;oauthAuthorizationEndpoint?: URL | null;oauthTokenEndpoint : \\"\\" ) ) - : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) + : URL.canParse(v[\\"@id\\"]) && _baseUrl ? new URL(v[\\"@id\\"]) - : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl))); + : new URL(v[\\"@id\\"], _baseUrl); if (typeof decoded === \\"undefined\\") continue; _8Bx9qN8oU7Bpt2xi6khaxWp1gMr_provideClientKey.push(decoded); } @@ -50349,9 +50554,9 @@ proxyUrl?: URL | null;oauthAuthorizationEndpoint?: URL | null;oauthTokenEndpoint : \\"\\" ) ) - : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) + : URL.canParse(v[\\"@id\\"]) && _baseUrl ? new URL(v[\\"@id\\"]) - : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl))); + : new URL(v[\\"@id\\"], _baseUrl); if (typeof decoded === \\"undefined\\") continue; _3dU7PMVQZJpsCpo2F4RQXxBXdPmS_signClientKey.push(decoded); } @@ -50382,9 +50587,9 @@ proxyUrl?: URL | null;oauthAuthorizationEndpoint?: URL | null;oauthTokenEndpoint : \\"\\" ) ) - : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) + : URL.canParse(v[\\"@id\\"]) && _baseUrl ? new URL(v[\\"@id\\"]) - : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl))); + : new URL(v[\\"@id\\"], _baseUrl); if (typeof decoded === \\"undefined\\") continue; _3JprUSDLVqqX4dwHRi37qGZZCRCc_sharedInbox.push(decoded); } @@ -50837,9 +51042,14 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { - options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; + const _resolvedUrl = + values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) + ? new URL(values[\\"@id\\"], options.baseUrl) + : undefined; + if (options.baseUrl == null && _resolvedUrl != null) { + options = { ...options, baseUrl: _resolvedUrl }; } + const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -51172,9 +51382,14 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { - options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; + const _resolvedUrl = + values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) + ? new URL(values[\\"@id\\"], options.baseUrl) + : undefined; + if (options.baseUrl == null && _resolvedUrl != null) { + options = { ...options, baseUrl: _resolvedUrl }; } + const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -51508,9 +51723,14 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { - options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; + const _resolvedUrl = + values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) + ? new URL(values[\\"@id\\"], options.baseUrl) + : undefined; + if (options.baseUrl == null && _resolvedUrl != null) { + options = { ...options, baseUrl: _resolvedUrl }; } + const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -57089,9 +57309,14 @@ get preferredUsernames(): ((string | LanguageString))[] { // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { - options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; + const _resolvedUrl = + values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) + ? new URL(values[\\"@id\\"], options.baseUrl) + : undefined; + if (options.baseUrl == null && _resolvedUrl != null) { + options = { ...options, baseUrl: _resolvedUrl }; } + const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -57164,7 +57389,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await CryptographicKey.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === \\"undefined\\") continue; _axq166E2eZADq34V4MYUc8KMZdC_publicKey.push(decoded); @@ -57197,7 +57422,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Multikey.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === \\"undefined\\") continue; _4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.push(decoded); @@ -57250,11 +57475,11 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#OrderedCollection\\") ? await OrderedCollection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#OrderedCollectionPage\\") ? await OrderedCollectionPage.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -57291,11 +57516,11 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#OrderedCollection\\") ? await OrderedCollection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#OrderedCollectionPage\\") ? await OrderedCollectionPage.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -57330,7 +57555,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === \\"undefined\\") continue; _3yAv8jymNfNuJUDuBzJ1NQhdbAee_following.push(decoded); @@ -57363,7 +57588,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === \\"undefined\\") continue; _BBCTgfphhsFzpVfKTykGSpBNwoA_followers.push(decoded); @@ -57396,7 +57621,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === \\"undefined\\") continue; _3bgkPwJanyTCoVFM9ovRcus8tKkU_liked.push(decoded); @@ -57429,7 +57654,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === \\"undefined\\") continue; _4N1vBJzXDf8NbBumeECQMFvKetja_featured.push(decoded); @@ -57462,7 +57687,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === \\"undefined\\") continue; _2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags.push(decoded); @@ -57495,7 +57720,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === \\"undefined\\") continue; _3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.push(decoded); @@ -57516,7 +57741,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Endpoints.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === \\"undefined\\") continue; _sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints.push(decoded); @@ -57623,23 +57848,23 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Application\\") ? await Application.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Group\\") ? await Group.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Organization\\") ? await Organization.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Person\\") ? await Person.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Service\\") ? await Service.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -57676,23 +57901,23 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Application\\") ? await Application.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Group\\") ? await Group.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Organization\\") ? await Organization.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Person\\") ? await Person.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Service\\") ? await Service.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -57727,7 +57952,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await DidService.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === \\"undefined\\") continue; _4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.push(decoded); @@ -59522,9 +59747,14 @@ get names(): ((string | LanguageString))[] { // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { - options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; + const _resolvedUrl = + values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) + ? new URL(values[\\"@id\\"], options.baseUrl) + : undefined; + if (options.baseUrl == null && _resolvedUrl != null) { + options = { ...options, baseUrl: _resolvedUrl }; } + const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -59575,9 +59805,9 @@ get names(): ((string | LanguageString))[] { : \\"\\" ) ) - : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) + : URL.canParse(v[\\"@id\\"]) && _baseUrl ? new URL(v[\\"@id\\"]) - : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl))); + : new URL(v[\\"@id\\"], _baseUrl); if (typeof decoded === \\"undefined\\") continue; _pVjLsybKQdmkjuU7MHjiVmNnuj7_href.push(decoded); } @@ -59726,12 +59956,12 @@ get names(): ((string | LanguageString))[] { && Array.isArray(v[\\"@type\\"])&& [\\"https://www.w3.org/ns/activitystreams#Link\\",\\"https://www.w3.org/ns/activitystreams#Hashtag\\",\\"https://www.w3.org/ns/activitystreams#Mention\\"].some( t => v[\\"@type\\"].includes(t)) ? await Link.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& [\\"https://www.w3.org/ns/activitystreams#Object\\",\\"http://joinmastodon.org/ns#Emoji\\",\\"http://litepub.social/ns#ChatMessage\\",\\"https://gotosocial.org/ns#AnnounceAuthorization\\",\\"https://gotosocial.org/ns#LikeApproval\\",\\"https://gotosocial.org/ns#ReplyAuthorization\\",\\"https://w3id.org/fep/044f#QuoteAuthorization\\",\\"https://w3id.org/valueflows/ont/vf#Proposal\\",\\"https://www.w3.org/ns/activitystreams#Activity\\",\\"http://litepub.social/ns#EmojiReact\\",\\"https://gotosocial.org/ns#AnnounceRequest\\",\\"https://gotosocial.org/ns#LikeRequest\\",\\"https://gotosocial.org/ns#ReplyRequest\\",\\"https://w3id.org/fep/044f#QuoteRequest\\",\\"https://www.w3.org/ns/activitystreams#Accept\\",\\"https://www.w3.org/ns/activitystreams#TentativeAccept\\",\\"https://www.w3.org/ns/activitystreams#Add\\",\\"https://www.w3.org/ns/activitystreams#Announce\\",\\"https://www.w3.org/ns/activitystreams#Create\\",\\"https://www.w3.org/ns/activitystreams#Delete\\",\\"https://www.w3.org/ns/activitystreams#Dislike\\",\\"https://www.w3.org/ns/activitystreams#Flag\\",\\"https://www.w3.org/ns/activitystreams#Follow\\",\\"https://www.w3.org/ns/activitystreams#Ignore\\",\\"https://www.w3.org/ns/activitystreams#Block\\",\\"https://www.w3.org/ns/activitystreams#IntransitiveActivity\\",\\"https://www.w3.org/ns/activitystreams#Arrive\\",\\"https://www.w3.org/ns/activitystreams#Question\\",\\"https://www.w3.org/ns/activitystreams#Travel\\",\\"https://www.w3.org/ns/activitystreams#Join\\",\\"https://www.w3.org/ns/activitystreams#Leave\\",\\"https://www.w3.org/ns/activitystreams#Like\\",\\"https://www.w3.org/ns/activitystreams#Listen\\",\\"https://www.w3.org/ns/activitystreams#Move\\",\\"https://www.w3.org/ns/activitystreams#Offer\\",\\"https://www.w3.org/ns/activitystreams#Invite\\",\\"https://www.w3.org/ns/activitystreams#Read\\",\\"https://www.w3.org/ns/activitystreams#Reject\\",\\"https://www.w3.org/ns/activitystreams#TentativeReject\\",\\"https://www.w3.org/ns/activitystreams#Remove\\",\\"https://www.w3.org/ns/activitystreams#Undo\\",\\"https://www.w3.org/ns/activitystreams#Update\\",\\"https://www.w3.org/ns/activitystreams#View\\",\\"https://www.w3.org/ns/activitystreams#Application\\",\\"https://www.w3.org/ns/activitystreams#Article\\",\\"https://www.w3.org/ns/activitystreams#Collection\\",\\"https://www.w3.org/ns/activitystreams#CollectionPage\\",\\"https://www.w3.org/ns/activitystreams#OrderedCollectionPage\\",\\"https://www.w3.org/ns/activitystreams#OrderedCollection\\",\\"https://www.w3.org/ns/activitystreams#Document\\",\\"https://www.w3.org/ns/activitystreams#Audio\\",\\"https://www.w3.org/ns/activitystreams#Image\\",\\"https://www.w3.org/ns/activitystreams#Page\\",\\"https://www.w3.org/ns/activitystreams#Video\\",\\"https://www.w3.org/ns/activitystreams#Event\\",\\"https://www.w3.org/ns/activitystreams#Group\\",\\"https://www.w3.org/ns/activitystreams#Note\\",\\"https://www.w3.org/ns/activitystreams#Organization\\",\\"https://www.w3.org/ns/activitystreams#Person\\",\\"https://www.w3.org/ns/activitystreams#Place\\",\\"https://www.w3.org/ns/activitystreams#Profile\\",\\"https://www.w3.org/ns/activitystreams#Relationship\\",\\"https://www.w3.org/ns/activitystreams#Service\\",\\"https://www.w3.org/ns/activitystreams#Tombstone\\"].some( t => v[\\"@type\\"].includes(t)) ? await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -60205,9 +60435,14 @@ names?: ((string | LanguageString))[];language?: Intl.Locale | null;height?: num // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { - options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; + const _resolvedUrl = + values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) + ? new URL(values[\\"@id\\"], options.baseUrl) + : undefined; + if (options.baseUrl == null && _resolvedUrl != null) { + options = { ...options, baseUrl: _resolvedUrl }; } + const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -60542,9 +60777,14 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { - options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; + const _resolvedUrl = + values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) + ? new URL(values[\\"@id\\"], options.baseUrl) + : undefined; + if (options.baseUrl == null && _resolvedUrl != null) { + options = { ...options, baseUrl: _resolvedUrl }; } + const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -60877,9 +61117,14 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { - options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; + const _resolvedUrl = + values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) + ? new URL(values[\\"@id\\"], options.baseUrl) + : undefined; + if (options.baseUrl == null && _resolvedUrl != null) { + options = { ...options, baseUrl: _resolvedUrl }; } + const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -61215,9 +61460,14 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { - options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; + const _resolvedUrl = + values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) + ? new URL(values[\\"@id\\"], options.baseUrl) + : undefined; + if (options.baseUrl == null && _resolvedUrl != null) { + options = { ...options, baseUrl: _resolvedUrl }; } + const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -61549,9 +61799,14 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { - options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; + const _resolvedUrl = + values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) + ? new URL(values[\\"@id\\"], options.baseUrl) + : undefined; + if (options.baseUrl == null && _resolvedUrl != null) { + options = { ...options, baseUrl: _resolvedUrl }; } + const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -61883,9 +62138,14 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { - options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; + const _resolvedUrl = + values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) + ? new URL(values[\\"@id\\"], options.baseUrl) + : undefined; + if (options.baseUrl == null && _resolvedUrl != null) { + options = { ...options, baseUrl: _resolvedUrl }; } + const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -62217,9 +62477,14 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { - options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; + const _resolvedUrl = + values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) + ? new URL(values[\\"@id\\"], options.baseUrl) + : undefined; + if (options.baseUrl == null && _resolvedUrl != null) { + options = { ...options, baseUrl: _resolvedUrl }; } + const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -62549,9 +62814,14 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { - options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; + const _resolvedUrl = + values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) + ? new URL(values[\\"@id\\"], options.baseUrl) + : undefined; + if (options.baseUrl == null && _resolvedUrl != null) { + options = { ...options, baseUrl: _resolvedUrl }; } + const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -62847,9 +63117,14 @@ names?: ((string | LanguageString))[];language?: Intl.Locale | null;height?: num // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { - options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; + const _resolvedUrl = + values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) + ? new URL(values[\\"@id\\"], options.baseUrl) + : undefined; + if (options.baseUrl == null && _resolvedUrl != null) { + options = { ...options, baseUrl: _resolvedUrl }; } + const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -63182,9 +63457,14 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { - options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; + const _resolvedUrl = + values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) + ? new URL(values[\\"@id\\"], options.baseUrl) + : undefined; + if (options.baseUrl == null && _resolvedUrl != null) { + options = { ...options, baseUrl: _resolvedUrl }; } + const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -64185,9 +64465,14 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { - options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; + const _resolvedUrl = + values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) + ? new URL(values[\\"@id\\"], options.baseUrl) + : undefined; + if (options.baseUrl == null && _resolvedUrl != null) { + options = { ...options, baseUrl: _resolvedUrl }; } + const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -64236,7 +64521,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === \\"undefined\\") continue; _3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote.push(decoded); @@ -64295,7 +64580,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await QuoteAuthorization.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === \\"undefined\\") continue; _ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization.push(decoded); @@ -64985,9 +65270,14 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { - options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; + const _resolvedUrl = + values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) + ? new URL(values[\\"@id\\"], options.baseUrl) + : undefined; + if (options.baseUrl == null && _resolvedUrl != null) { + options = { ...options, baseUrl: _resolvedUrl }; } + const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -65039,12 +65329,12 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu && Array.isArray(v[\\"@type\\"])&& [\\"https://www.w3.org/ns/activitystreams#Object\\",\\"http://joinmastodon.org/ns#Emoji\\",\\"http://litepub.social/ns#ChatMessage\\",\\"https://gotosocial.org/ns#AnnounceAuthorization\\",\\"https://gotosocial.org/ns#LikeApproval\\",\\"https://gotosocial.org/ns#ReplyAuthorization\\",\\"https://w3id.org/fep/044f#QuoteAuthorization\\",\\"https://w3id.org/valueflows/ont/vf#Proposal\\",\\"https://www.w3.org/ns/activitystreams#Activity\\",\\"http://litepub.social/ns#EmojiReact\\",\\"https://gotosocial.org/ns#AnnounceRequest\\",\\"https://gotosocial.org/ns#LikeRequest\\",\\"https://gotosocial.org/ns#ReplyRequest\\",\\"https://w3id.org/fep/044f#QuoteRequest\\",\\"https://www.w3.org/ns/activitystreams#Accept\\",\\"https://www.w3.org/ns/activitystreams#TentativeAccept\\",\\"https://www.w3.org/ns/activitystreams#Add\\",\\"https://www.w3.org/ns/activitystreams#Announce\\",\\"https://www.w3.org/ns/activitystreams#Create\\",\\"https://www.w3.org/ns/activitystreams#Delete\\",\\"https://www.w3.org/ns/activitystreams#Dislike\\",\\"https://www.w3.org/ns/activitystreams#Flag\\",\\"https://www.w3.org/ns/activitystreams#Follow\\",\\"https://www.w3.org/ns/activitystreams#Ignore\\",\\"https://www.w3.org/ns/activitystreams#Block\\",\\"https://www.w3.org/ns/activitystreams#IntransitiveActivity\\",\\"https://www.w3.org/ns/activitystreams#Arrive\\",\\"https://www.w3.org/ns/activitystreams#Question\\",\\"https://www.w3.org/ns/activitystreams#Travel\\",\\"https://www.w3.org/ns/activitystreams#Join\\",\\"https://www.w3.org/ns/activitystreams#Leave\\",\\"https://www.w3.org/ns/activitystreams#Like\\",\\"https://www.w3.org/ns/activitystreams#Listen\\",\\"https://www.w3.org/ns/activitystreams#Move\\",\\"https://www.w3.org/ns/activitystreams#Offer\\",\\"https://www.w3.org/ns/activitystreams#Invite\\",\\"https://www.w3.org/ns/activitystreams#Read\\",\\"https://www.w3.org/ns/activitystreams#Reject\\",\\"https://www.w3.org/ns/activitystreams#TentativeReject\\",\\"https://www.w3.org/ns/activitystreams#Remove\\",\\"https://www.w3.org/ns/activitystreams#Undo\\",\\"https://www.w3.org/ns/activitystreams#Update\\",\\"https://www.w3.org/ns/activitystreams#View\\",\\"https://www.w3.org/ns/activitystreams#Application\\",\\"https://www.w3.org/ns/activitystreams#Article\\",\\"https://www.w3.org/ns/activitystreams#Collection\\",\\"https://www.w3.org/ns/activitystreams#CollectionPage\\",\\"https://www.w3.org/ns/activitystreams#OrderedCollectionPage\\",\\"https://www.w3.org/ns/activitystreams#OrderedCollection\\",\\"https://www.w3.org/ns/activitystreams#Document\\",\\"https://www.w3.org/ns/activitystreams#Audio\\",\\"https://www.w3.org/ns/activitystreams#Image\\",\\"https://www.w3.org/ns/activitystreams#Page\\",\\"https://www.w3.org/ns/activitystreams#Video\\",\\"https://www.w3.org/ns/activitystreams#Event\\",\\"https://www.w3.org/ns/activitystreams#Group\\",\\"https://www.w3.org/ns/activitystreams#Note\\",\\"https://www.w3.org/ns/activitystreams#Organization\\",\\"https://www.w3.org/ns/activitystreams#Person\\",\\"https://www.w3.org/ns/activitystreams#Place\\",\\"https://www.w3.org/ns/activitystreams#Profile\\",\\"https://www.w3.org/ns/activitystreams#Relationship\\",\\"https://www.w3.org/ns/activitystreams#Service\\",\\"https://www.w3.org/ns/activitystreams#Tombstone\\"].some( t => v[\\"@type\\"].includes(t)) ? await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& [\\"https://www.w3.org/ns/activitystreams#Link\\",\\"https://www.w3.org/ns/activitystreams#Hashtag\\",\\"https://www.w3.org/ns/activitystreams#Mention\\"].some( t => v[\\"@type\\"].includes(t)) ? await Link.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -65775,9 +66065,14 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { - options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; + const _resolvedUrl = + values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) + ? new URL(values[\\"@id\\"], options.baseUrl) + : undefined; + if (options.baseUrl == null && _resolvedUrl != null) { + options = { ...options, baseUrl: _resolvedUrl }; } + const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -65829,12 +66124,12 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu && Array.isArray(v[\\"@type\\"])&& [\\"https://www.w3.org/ns/activitystreams#Object\\",\\"http://joinmastodon.org/ns#Emoji\\",\\"http://litepub.social/ns#ChatMessage\\",\\"https://gotosocial.org/ns#AnnounceAuthorization\\",\\"https://gotosocial.org/ns#LikeApproval\\",\\"https://gotosocial.org/ns#ReplyAuthorization\\",\\"https://w3id.org/fep/044f#QuoteAuthorization\\",\\"https://w3id.org/valueflows/ont/vf#Proposal\\",\\"https://www.w3.org/ns/activitystreams#Activity\\",\\"http://litepub.social/ns#EmojiReact\\",\\"https://gotosocial.org/ns#AnnounceRequest\\",\\"https://gotosocial.org/ns#LikeRequest\\",\\"https://gotosocial.org/ns#ReplyRequest\\",\\"https://w3id.org/fep/044f#QuoteRequest\\",\\"https://www.w3.org/ns/activitystreams#Accept\\",\\"https://www.w3.org/ns/activitystreams#TentativeAccept\\",\\"https://www.w3.org/ns/activitystreams#Add\\",\\"https://www.w3.org/ns/activitystreams#Announce\\",\\"https://www.w3.org/ns/activitystreams#Create\\",\\"https://www.w3.org/ns/activitystreams#Delete\\",\\"https://www.w3.org/ns/activitystreams#Dislike\\",\\"https://www.w3.org/ns/activitystreams#Flag\\",\\"https://www.w3.org/ns/activitystreams#Follow\\",\\"https://www.w3.org/ns/activitystreams#Ignore\\",\\"https://www.w3.org/ns/activitystreams#Block\\",\\"https://www.w3.org/ns/activitystreams#IntransitiveActivity\\",\\"https://www.w3.org/ns/activitystreams#Arrive\\",\\"https://www.w3.org/ns/activitystreams#Question\\",\\"https://www.w3.org/ns/activitystreams#Travel\\",\\"https://www.w3.org/ns/activitystreams#Join\\",\\"https://www.w3.org/ns/activitystreams#Leave\\",\\"https://www.w3.org/ns/activitystreams#Like\\",\\"https://www.w3.org/ns/activitystreams#Listen\\",\\"https://www.w3.org/ns/activitystreams#Move\\",\\"https://www.w3.org/ns/activitystreams#Offer\\",\\"https://www.w3.org/ns/activitystreams#Invite\\",\\"https://www.w3.org/ns/activitystreams#Read\\",\\"https://www.w3.org/ns/activitystreams#Reject\\",\\"https://www.w3.org/ns/activitystreams#TentativeReject\\",\\"https://www.w3.org/ns/activitystreams#Remove\\",\\"https://www.w3.org/ns/activitystreams#Undo\\",\\"https://www.w3.org/ns/activitystreams#Update\\",\\"https://www.w3.org/ns/activitystreams#View\\",\\"https://www.w3.org/ns/activitystreams#Application\\",\\"https://www.w3.org/ns/activitystreams#Article\\",\\"https://www.w3.org/ns/activitystreams#Collection\\",\\"https://www.w3.org/ns/activitystreams#CollectionPage\\",\\"https://www.w3.org/ns/activitystreams#OrderedCollectionPage\\",\\"https://www.w3.org/ns/activitystreams#OrderedCollection\\",\\"https://www.w3.org/ns/activitystreams#Document\\",\\"https://www.w3.org/ns/activitystreams#Audio\\",\\"https://www.w3.org/ns/activitystreams#Image\\",\\"https://www.w3.org/ns/activitystreams#Page\\",\\"https://www.w3.org/ns/activitystreams#Video\\",\\"https://www.w3.org/ns/activitystreams#Event\\",\\"https://www.w3.org/ns/activitystreams#Group\\",\\"https://www.w3.org/ns/activitystreams#Note\\",\\"https://www.w3.org/ns/activitystreams#Organization\\",\\"https://www.w3.org/ns/activitystreams#Person\\",\\"https://www.w3.org/ns/activitystreams#Place\\",\\"https://www.w3.org/ns/activitystreams#Profile\\",\\"https://www.w3.org/ns/activitystreams#Relationship\\",\\"https://www.w3.org/ns/activitystreams#Service\\",\\"https://www.w3.org/ns/activitystreams#Tombstone\\"].some( t => v[\\"@type\\"].includes(t)) ? await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& [\\"https://www.w3.org/ns/activitystreams#Link\\",\\"https://www.w3.org/ns/activitystreams#Hashtag\\",\\"https://www.w3.org/ns/activitystreams#Mention\\"].some( t => v[\\"@type\\"].includes(t)) ? await Link.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -71459,9 +71754,14 @@ get preferredUsernames(): ((string | LanguageString))[] { // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { - options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; + const _resolvedUrl = + values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) + ? new URL(values[\\"@id\\"], options.baseUrl) + : undefined; + if (options.baseUrl == null && _resolvedUrl != null) { + options = { ...options, baseUrl: _resolvedUrl }; } + const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -71534,7 +71834,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await CryptographicKey.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === \\"undefined\\") continue; _axq166E2eZADq34V4MYUc8KMZdC_publicKey.push(decoded); @@ -71567,7 +71867,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Multikey.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === \\"undefined\\") continue; _4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.push(decoded); @@ -71620,11 +71920,11 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#OrderedCollection\\") ? await OrderedCollection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#OrderedCollectionPage\\") ? await OrderedCollectionPage.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -71661,11 +71961,11 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#OrderedCollection\\") ? await OrderedCollection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#OrderedCollectionPage\\") ? await OrderedCollectionPage.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -71700,7 +72000,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === \\"undefined\\") continue; _3yAv8jymNfNuJUDuBzJ1NQhdbAee_following.push(decoded); @@ -71733,7 +72033,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === \\"undefined\\") continue; _BBCTgfphhsFzpVfKTykGSpBNwoA_followers.push(decoded); @@ -71766,7 +72066,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === \\"undefined\\") continue; _3bgkPwJanyTCoVFM9ovRcus8tKkU_liked.push(decoded); @@ -71799,7 +72099,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === \\"undefined\\") continue; _4N1vBJzXDf8NbBumeECQMFvKetja_featured.push(decoded); @@ -71832,7 +72132,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === \\"undefined\\") continue; _2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags.push(decoded); @@ -71865,7 +72165,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === \\"undefined\\") continue; _3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.push(decoded); @@ -71886,7 +72186,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Endpoints.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === \\"undefined\\") continue; _sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints.push(decoded); @@ -71993,23 +72293,23 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Application\\") ? await Application.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Group\\") ? await Group.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Organization\\") ? await Organization.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Person\\") ? await Person.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Service\\") ? await Service.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -72046,23 +72346,23 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Application\\") ? await Application.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Group\\") ? await Group.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Organization\\") ? await Organization.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Person\\") ? await Person.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Service\\") ? await Service.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -72097,7 +72397,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await DidService.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === \\"undefined\\") continue; _4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.push(decoded); @@ -72924,9 +73224,14 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { - options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; + const _resolvedUrl = + values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) + ? new URL(values[\\"@id\\"], options.baseUrl) + : undefined; + if (options.baseUrl == null && _resolvedUrl != null) { + options = { ...options, baseUrl: _resolvedUrl }; } + const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -78505,9 +78810,14 @@ get preferredUsernames(): ((string | LanguageString))[] { // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { - options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; + const _resolvedUrl = + values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) + ? new URL(values[\\"@id\\"], options.baseUrl) + : undefined; + if (options.baseUrl == null && _resolvedUrl != null) { + options = { ...options, baseUrl: _resolvedUrl }; } + const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -78580,7 +78890,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await CryptographicKey.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === \\"undefined\\") continue; _axq166E2eZADq34V4MYUc8KMZdC_publicKey.push(decoded); @@ -78613,7 +78923,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Multikey.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === \\"undefined\\") continue; _4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.push(decoded); @@ -78666,11 +78976,11 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#OrderedCollection\\") ? await OrderedCollection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#OrderedCollectionPage\\") ? await OrderedCollectionPage.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -78707,11 +79017,11 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#OrderedCollection\\") ? await OrderedCollection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#OrderedCollectionPage\\") ? await OrderedCollectionPage.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -78746,7 +79056,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === \\"undefined\\") continue; _3yAv8jymNfNuJUDuBzJ1NQhdbAee_following.push(decoded); @@ -78779,7 +79089,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === \\"undefined\\") continue; _BBCTgfphhsFzpVfKTykGSpBNwoA_followers.push(decoded); @@ -78812,7 +79122,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === \\"undefined\\") continue; _3bgkPwJanyTCoVFM9ovRcus8tKkU_liked.push(decoded); @@ -78845,7 +79155,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === \\"undefined\\") continue; _4N1vBJzXDf8NbBumeECQMFvKetja_featured.push(decoded); @@ -78878,7 +79188,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === \\"undefined\\") continue; _2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags.push(decoded); @@ -78911,7 +79221,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === \\"undefined\\") continue; _3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.push(decoded); @@ -78932,7 +79242,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Endpoints.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === \\"undefined\\") continue; _sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints.push(decoded); @@ -79039,23 +79349,23 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Application\\") ? await Application.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Group\\") ? await Group.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Organization\\") ? await Organization.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Person\\") ? await Person.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Service\\") ? await Service.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -79092,23 +79402,23 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Application\\") ? await Application.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Group\\") ? await Group.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Organization\\") ? await Organization.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Person\\") ? await Person.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Service\\") ? await Service.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -79143,7 +79453,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await DidService.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === \\"undefined\\") continue; _4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.push(decoded); @@ -80426,9 +80736,14 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { - options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; + const _resolvedUrl = + values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) + ? new URL(values[\\"@id\\"], options.baseUrl) + : undefined; + if (options.baseUrl == null && _resolvedUrl != null) { + options = { ...options, baseUrl: _resolvedUrl }; } + const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -80570,9 +80885,9 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu : \\"\\" ) ) - : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) + : URL.canParse(v[\\"@id\\"]) && _baseUrl ? new URL(v[\\"@id\\"]) - : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl))) : undefined + : new URL(v[\\"@id\\"], _baseUrl) : undefined ; if (typeof decoded === \\"undefined\\") continue; _oKrwxU4V8wiKhMW1QEYQibcJh8c_units.push(decoded); @@ -81301,9 +81616,14 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { - options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; + const _resolvedUrl = + values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) + ? new URL(values[\\"@id\\"], options.baseUrl) + : undefined; + if (options.baseUrl == null && _resolvedUrl != null) { + options = { ...options, baseUrl: _resolvedUrl }; } + const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -81352,7 +81672,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === \\"undefined\\") continue; _3CLQ1PLSXrhSQbTGGHuxNyaEFKM1_describes.push(decoded); @@ -82972,9 +83292,14 @@ instruments?: (Object | URL)[];exclusiveOptions?: (Object | URL)[];inclusiveOpti // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { - options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; + const _resolvedUrl = + values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) + ? new URL(values[\\"@id\\"], options.baseUrl) + : undefined; + if (options.baseUrl == null && _resolvedUrl != null) { + options = { ...options, baseUrl: _resolvedUrl }; } + const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -83023,7 +83348,7 @@ instruments?: (Object | URL)[];exclusiveOptions?: (Object | URL)[];inclusiveOpti const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === \\"undefined\\") continue; _2N5scKaVEcdYHFmfKYYacAwUhUgQ_oneOf.push(decoded); @@ -83056,7 +83381,7 @@ instruments?: (Object | URL)[];exclusiveOptions?: (Object | URL)[];inclusiveOpti const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === \\"undefined\\") continue; _2mV6isMTPRKbWdLCjcpiEysq5dAY_anyOf.push(decoded); @@ -83138,7 +83463,7 @@ instruments?: (Object | URL)[];exclusiveOptions?: (Object | URL)[];inclusiveOpti const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === \\"undefined\\") continue; _3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote.push(decoded); @@ -83197,7 +83522,7 @@ instruments?: (Object | URL)[];exclusiveOptions?: (Object | URL)[];inclusiveOpti const decoded = await QuoteAuthorization.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === \\"undefined\\") continue; _ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization.push(decoded); @@ -83656,9 +83981,14 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { - options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; + const _resolvedUrl = + values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) + ? new URL(values[\\"@id\\"], options.baseUrl) + : undefined; + if (options.baseUrl == null && _resolvedUrl != null) { + options = { ...options, baseUrl: _resolvedUrl }; } + const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -83990,9 +84320,14 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { - options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; + const _resolvedUrl = + values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) + ? new URL(values[\\"@id\\"], options.baseUrl) + : undefined; + if (options.baseUrl == null && _resolvedUrl != null) { + options = { ...options, baseUrl: _resolvedUrl }; } + const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -85506,9 +85841,14 @@ relationships?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { - options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; + const _resolvedUrl = + values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) + ? new URL(values[\\"@id\\"], options.baseUrl) + : undefined; + if (options.baseUrl == null && _resolvedUrl != null) { + options = { ...options, baseUrl: _resolvedUrl }; } + const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -85557,7 +85897,7 @@ relationships?: (Object | URL)[];} const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === \\"undefined\\") continue; _2Zqdmi46ZnDQsECS6mzwhrv3rUKq_subject.push(decoded); @@ -85590,7 +85930,7 @@ relationships?: (Object | URL)[];} const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === \\"undefined\\") continue; _2MH19yxjn1wnHsNfa5n4JBhJzxyc_object.push(decoded); @@ -85623,7 +85963,7 @@ relationships?: (Object | URL)[];} const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === \\"undefined\\") continue; _4Lzz89F9qipAQSGkWyX9DGWiUojG_relationship.push(decoded); @@ -86011,9 +86351,14 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { - options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; + const _resolvedUrl = + values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) + ? new URL(values[\\"@id\\"], options.baseUrl) + : undefined; + if (options.baseUrl == null && _resolvedUrl != null) { + options = { ...options, baseUrl: _resolvedUrl }; } + const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -91592,9 +91937,14 @@ get preferredUsernames(): ((string | LanguageString))[] { // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { - options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; + const _resolvedUrl = + values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) + ? new URL(values[\\"@id\\"], options.baseUrl) + : undefined; + if (options.baseUrl == null && _resolvedUrl != null) { + options = { ...options, baseUrl: _resolvedUrl }; } + const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -91667,7 +92017,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await CryptographicKey.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === \\"undefined\\") continue; _axq166E2eZADq34V4MYUc8KMZdC_publicKey.push(decoded); @@ -91700,7 +92050,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Multikey.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === \\"undefined\\") continue; _4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.push(decoded); @@ -91753,11 +92103,11 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#OrderedCollection\\") ? await OrderedCollection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#OrderedCollectionPage\\") ? await OrderedCollectionPage.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -91794,11 +92144,11 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#OrderedCollection\\") ? await OrderedCollection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#OrderedCollectionPage\\") ? await OrderedCollectionPage.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -91833,7 +92183,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === \\"undefined\\") continue; _3yAv8jymNfNuJUDuBzJ1NQhdbAee_following.push(decoded); @@ -91866,7 +92216,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === \\"undefined\\") continue; _BBCTgfphhsFzpVfKTykGSpBNwoA_followers.push(decoded); @@ -91899,7 +92249,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === \\"undefined\\") continue; _3bgkPwJanyTCoVFM9ovRcus8tKkU_liked.push(decoded); @@ -91932,7 +92282,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === \\"undefined\\") continue; _4N1vBJzXDf8NbBumeECQMFvKetja_featured.push(decoded); @@ -91965,7 +92315,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === \\"undefined\\") continue; _2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags.push(decoded); @@ -91998,7 +92348,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === \\"undefined\\") continue; _3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.push(decoded); @@ -92019,7 +92369,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Endpoints.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === \\"undefined\\") continue; _sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints.push(decoded); @@ -92126,23 +92476,23 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Application\\") ? await Application.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Group\\") ? await Group.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Organization\\") ? await Organization.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Person\\") ? await Person.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Service\\") ? await Service.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -92179,23 +92529,23 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Application\\") ? await Application.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Group\\") ? await Group.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Organization\\") ? await Organization.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Person\\") ? await Person.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Service\\") ? await Service.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -92230,7 +92580,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await DidService.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: _baseUrl } ); if (typeof decoded === \\"undefined\\") continue; _4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.push(decoded); @@ -93266,9 +93616,14 @@ get contents(): ((string | LanguageString))[] { // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { - options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; + const _resolvedUrl = + values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) + ? new URL(values[\\"@id\\"], options.baseUrl) + : undefined; + if (options.baseUrl == null && _resolvedUrl != null) { + options = { ...options, baseUrl: _resolvedUrl }; } + const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -93698,9 +94053,14 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { - options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; + const _resolvedUrl = + values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) + ? new URL(values[\\"@id\\"], options.baseUrl) + : undefined; + if (options.baseUrl == null && _resolvedUrl != null) { + options = { ...options, baseUrl: _resolvedUrl }; } + const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -94032,9 +94392,14 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { - options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; + const _resolvedUrl = + values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) + ? new URL(values[\\"@id\\"], options.baseUrl) + : undefined; + if (options.baseUrl == null && _resolvedUrl != null) { + options = { ...options, baseUrl: _resolvedUrl }; } + const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -94582,9 +94947,14 @@ get formerTypes(): (\$EntityType)[] { // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { - options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; + const _resolvedUrl = + values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) + ? new URL(values[\\"@id\\"], options.baseUrl) + : undefined; + if (options.baseUrl == null && _resolvedUrl != null) { + options = { ...options, baseUrl: _resolvedUrl }; } + const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -95017,9 +95387,14 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { - options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; + const _resolvedUrl = + values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) + ? new URL(values[\\"@id\\"], options.baseUrl) + : undefined; + if (options.baseUrl == null && _resolvedUrl != null) { + options = { ...options, baseUrl: _resolvedUrl }; } + const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -95356,9 +95731,14 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { - options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; + const _resolvedUrl = + values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) + ? new URL(values[\\"@id\\"], options.baseUrl) + : undefined; + if (options.baseUrl == null && _resolvedUrl != null) { + options = { ...options, baseUrl: _resolvedUrl }; } + const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -95693,9 +96073,14 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { - options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; + const _resolvedUrl = + values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) + ? new URL(values[\\"@id\\"], options.baseUrl) + : undefined; + if (options.baseUrl == null && _resolvedUrl != null) { + options = { ...options, baseUrl: _resolvedUrl }; } + const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -96030,9 +96415,14 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { - options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; + const _resolvedUrl = + values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) + ? new URL(values[\\"@id\\"], options.baseUrl) + : undefined; + if (options.baseUrl == null && _resolvedUrl != null) { + options = { ...options, baseUrl: _resolvedUrl }; } + const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -96363,9 +96753,14 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { - options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; + const _resolvedUrl = + values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) + ? new URL(values[\\"@id\\"], options.baseUrl) + : undefined; + if (options.baseUrl == null && _resolvedUrl != null) { + options = { ...options, baseUrl: _resolvedUrl }; } + const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); From 2548564e6aa2a88e1ce63b26dfa96b0cd3fe77d1 Mon Sep 17 00:00:00 2001 From: Hong Minhee Date: Sat, 6 Jun 2026 11:56:11 +0900 Subject: [PATCH 15/25] Re-export normalizeLinkToImage and fix root @id resolution Export normalizeLinkToImage from @fedify/vocab entry point and use the pre-resolved _resolvedUrl for the root instance id instead of constructing a new URL directly. Also fix a JSDoc {@link} tag in schema.ts. https://github.com/fedify-dev/fedify/pull/793#discussion_r3365868419 https://github.com/fedify-dev/fedify/pull/793#discussion_r3365881568 https://github.com/fedify-dev/fedify/pull/793#discussion_r3365881581 Assisted-by: OpenCode:deepseek-v4-pro --- packages/vocab-tools/src/codec.ts | 2 +- packages/vocab-tools/src/schema.ts | 2 +- packages/vocab/src/mod.ts | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/vocab-tools/src/codec.ts b/packages/vocab-tools/src/codec.ts index b1f44b7e6..cd146e86e 100644 --- a/packages/vocab-tools/src/codec.ts +++ b/packages/vocab-tools/src/codec.ts @@ -437,7 +437,7 @@ export async function* generateDecoder( if (type.extends == null) { yield ` const instance = new this( - { id: "@id" in values ? new URL(values["@id"] as string) : undefined }, + { id: _resolvedUrl }, options, ); `; diff --git a/packages/vocab-tools/src/schema.ts b/packages/vocab-tools/src/schema.ts index 3f4224f33..fc6b4da0b 100644 --- a/packages/vocab-tools/src/schema.ts +++ b/packages/vocab-tools/src/schema.ts @@ -129,7 +129,7 @@ export interface PropertySchemaBase { * property's declared range, `undefined` when it did not handle the value, * or an `Error` when it recognized the value but failed while converting it. * - * {@link module} is resolved from the generated vocabulary source file + * `module` is resolved from the generated vocabulary source file * and imported dynamically at decode time. */ preprocessors?: PropertyPreprocessorSchema[]; diff --git a/packages/vocab/src/mod.ts b/packages/vocab/src/mod.ts index aca32146a..b928ecd80 100644 --- a/packages/vocab/src/mod.ts +++ b/packages/vocab/src/mod.ts @@ -53,6 +53,7 @@ export * from "./actor.ts"; export * from "./constants.ts"; export * from "./handle.ts"; export * from "./lookup.ts"; +export * from "./preprocessors.ts"; export * from "./type.ts"; export * from "./vocab.ts"; export { LanguageString } from "@fedify/vocab-runtime"; From 9fed0786c5bc432891a443cfaf1b02e936ed1ec3 Mon Sep 17 00:00:00 2001 From: Hong Minhee Date: Sat, 6 Jun 2026 13:32:47 +0900 Subject: [PATCH 16/25] Guard root @id URL construction and update snapshots Add URL.canParse guard to the root instance id construction to prevent crashes on blank-node identifiers, while preserving the original resolution semantics (no baseUrl for root @id). Assisted-by: OpenCode:deepseek-v4-pro --- .../src/__snapshots__/class.test.ts.deno.snap | 26 +++++++++---------- .../src/__snapshots__/class.test.ts.node.snap | 26 +++++++++---------- .../src/__snapshots__/class.test.ts.snap | 26 +++++++++---------- packages/vocab-tools/src/codec.ts | 2 +- 4 files changed, 40 insertions(+), 40 deletions(-) diff --git a/packages/vocab-tools/src/__snapshots__/class.test.ts.deno.snap b/packages/vocab-tools/src/__snapshots__/class.test.ts.deno.snap index 732917289..6433b58c0 100644 --- a/packages/vocab-tools/src/__snapshots__/class.test.ts.deno.snap +++ b/packages/vocab-tools/src/__snapshots__/class.test.ts.deno.snap @@ -10617,7 +10617,7 @@ get urls(): ((URL | Link))[] { } const instance = new this( - { id: \\"@id\\" in values ? new URL(values[\\"@id\\"] as string) : undefined }, + { id: \\"@id\\" in values && URL.canParse(values[\\"@id\\"] as string) ? new URL(values[\\"@id\\"] as string) : undefined }, options, ); @@ -18471,7 +18471,7 @@ name?: string | LanguageString | null;value?: string | LanguageString | null;} } const instance = new this( - { id: \\"@id\\" in values ? new URL(values[\\"@id\\"] as string) : undefined }, + { id: \\"@id\\" in values && URL.canParse(values[\\"@id\\"] as string) ? new URL(values[\\"@id\\"] as string) : undefined }, options, ); const _4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name: ((string | LanguageString))[] = []; @@ -19062,7 +19062,7 @@ unit?: string | null;numericalValue?: Decimal | null;} } const instance = new this( - { id: \\"@id\\" in values ? new URL(values[\\"@id\\"] as string) : undefined }, + { id: \\"@id\\" in values && URL.canParse(values[\\"@id\\"] as string) ? new URL(values[\\"@id\\"] as string) : undefined }, options, ); const _27fgyFbosTtMAhuepJH8K3ZGURT6: (string)[] = []; @@ -21116,7 +21116,7 @@ canLike?: InteractionRule | null;canReply?: InteractionRule | null;canAnnounce?: } const instance = new this( - { id: \\"@id\\" in values ? new URL(values[\\"@id\\"] as string) : undefined }, + { id: \\"@id\\" in values && URL.canParse(values[\\"@id\\"] as string) ? new URL(values[\\"@id\\"] as string) : undefined }, options, ); const _3JkwVLb3BNCwCWdsb5RftGAg8vyT_canLike: (InteractionRule)[] = []; @@ -21869,7 +21869,7 @@ get manualApprovals(): (URL)[] { } const instance = new this( - { id: \\"@id\\" in values ? new URL(values[\\"@id\\"] as string) : undefined }, + { id: \\"@id\\" in values && URL.canParse(values[\\"@id\\"] as string) ? new URL(values[\\"@id\\"] as string) : undefined }, options, ); const _2rFyCF14HoyNjitj9PmCzek5iSsg_automaticApproval: (URL)[] = []; @@ -26560,7 +26560,7 @@ get endpoints(): (URL)[] { } const instance = new this( - { id: \\"@id\\" in values ? new URL(values[\\"@id\\"] as string) : undefined }, + { id: \\"@id\\" in values && URL.canParse(values[\\"@id\\"] as string) ? new URL(values[\\"@id\\"] as string) : undefined }, options, ); const _2KM4fetG6FTJ1cphj76rzJ8Dyv7p_serviceEndpoint: (URL)[] = []; @@ -27737,7 +27737,7 @@ cryptosuite?: \\"eddsa-jcs-2022\\" | null;verificationMethod?: Multikey | URL | } const instance = new this( - { id: \\"@id\\" in values ? new URL(values[\\"@id\\"] as string) : undefined }, + { id: \\"@id\\" in values && URL.canParse(values[\\"@id\\"] as string) ? new URL(values[\\"@id\\"] as string) : undefined }, options, ); const _3RurJsa7tnptyqMFR5hDGcP9pMs5_cryptosuite: (\\"eddsa-jcs-2022\\")[] = []; @@ -28711,7 +28711,7 @@ owner?: Application | Group | Organization | Person | Service | URL | null;publi } const instance = new this( - { id: \\"@id\\" in values ? new URL(values[\\"@id\\"] as string) : undefined }, + { id: \\"@id\\" in values && URL.canParse(values[\\"@id\\"] as string) ? new URL(values[\\"@id\\"] as string) : undefined }, options, ); @@ -29598,7 +29598,7 @@ controller?: Application | Group | Organization | Person | Service | URL | null; } const instance = new this( - { id: \\"@id\\" in values ? new URL(values[\\"@id\\"] as string) : undefined }, + { id: \\"@id\\" in values && URL.canParse(values[\\"@id\\"] as string) ? new URL(values[\\"@id\\"] as string) : undefined }, options, ); @@ -30438,7 +30438,7 @@ action?: string | null;resourceConformsTo?: URL | null;resourceQuantity?: Measur } const instance = new this( - { id: \\"@id\\" in values ? new URL(values[\\"@id\\"] as string) : undefined }, + { id: \\"@id\\" in values && URL.canParse(values[\\"@id\\"] as string) ? new URL(values[\\"@id\\"] as string) : undefined }, options, ); const _38VmZKmXJSBy3AvgqNa9GVqbdphy_action: (string)[] = []; @@ -50393,7 +50393,7 @@ proxyUrl?: URL | null;oauthAuthorizationEndpoint?: URL | null;oauthTokenEndpoint } const instance = new this( - { id: \\"@id\\" in values ? new URL(values[\\"@id\\"] as string) : undefined }, + { id: \\"@id\\" in values && URL.canParse(values[\\"@id\\"] as string) ? new URL(values[\\"@id\\"] as string) : undefined }, options, ); const _2JCYDbSxEHCCLdBYed33cCETfGyR_proxyUrl: (URL)[] = []; @@ -59776,7 +59776,7 @@ get names(): ((string | LanguageString))[] { } const instance = new this( - { id: \\"@id\\" in values ? new URL(values[\\"@id\\"] as string) : undefined }, + { id: \\"@id\\" in values && URL.canParse(values[\\"@id\\"] as string) ? new URL(values[\\"@id\\"] as string) : undefined }, options, ); const _pVjLsybKQdmkjuU7MHjiVmNnuj7_href: (URL)[] = []; @@ -93637,7 +93637,7 @@ get contents(): ((string | LanguageString))[] { } const instance = new this( - { id: \\"@id\\" in values ? new URL(values[\\"@id\\"] as string) : undefined }, + { id: \\"@id\\" in values && URL.canParse(values[\\"@id\\"] as string) ? new URL(values[\\"@id\\"] as string) : undefined }, options, ); const _4HuuRSdSrXq8Jj2J9gcdYfoCzeuz_content: ((string | LanguageString))[] = []; diff --git a/packages/vocab-tools/src/__snapshots__/class.test.ts.node.snap b/packages/vocab-tools/src/__snapshots__/class.test.ts.node.snap index c83f6716a..f2ee9ac86 100644 --- a/packages/vocab-tools/src/__snapshots__/class.test.ts.node.snap +++ b/packages/vocab-tools/src/__snapshots__/class.test.ts.node.snap @@ -10615,7 +10615,7 @@ get urls(): ((URL | Link))[] { } const instance = new this( - { id: \\"@id\\" in values ? new URL(values[\\"@id\\"] as string) : undefined }, + { id: \\"@id\\" in values && URL.canParse(values[\\"@id\\"] as string) ? new URL(values[\\"@id\\"] as string) : undefined }, options, ); @@ -18469,7 +18469,7 @@ name?: string | LanguageString | null;value?: string | LanguageString | null;} } const instance = new this( - { id: \\"@id\\" in values ? new URL(values[\\"@id\\"] as string) : undefined }, + { id: \\"@id\\" in values && URL.canParse(values[\\"@id\\"] as string) ? new URL(values[\\"@id\\"] as string) : undefined }, options, ); const _4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name: ((string | LanguageString))[] = []; @@ -19060,7 +19060,7 @@ unit?: string | null;numericalValue?: Decimal | null;} } const instance = new this( - { id: \\"@id\\" in values ? new URL(values[\\"@id\\"] as string) : undefined }, + { id: \\"@id\\" in values && URL.canParse(values[\\"@id\\"] as string) ? new URL(values[\\"@id\\"] as string) : undefined }, options, ); const _27fgyFbosTtMAhuepJH8K3ZGURT6: (string)[] = []; @@ -21114,7 +21114,7 @@ canLike?: InteractionRule | null;canReply?: InteractionRule | null;canAnnounce?: } const instance = new this( - { id: \\"@id\\" in values ? new URL(values[\\"@id\\"] as string) : undefined }, + { id: \\"@id\\" in values && URL.canParse(values[\\"@id\\"] as string) ? new URL(values[\\"@id\\"] as string) : undefined }, options, ); const _3JkwVLb3BNCwCWdsb5RftGAg8vyT_canLike: (InteractionRule)[] = []; @@ -21867,7 +21867,7 @@ get manualApprovals(): (URL)[] { } const instance = new this( - { id: \\"@id\\" in values ? new URL(values[\\"@id\\"] as string) : undefined }, + { id: \\"@id\\" in values && URL.canParse(values[\\"@id\\"] as string) ? new URL(values[\\"@id\\"] as string) : undefined }, options, ); const _2rFyCF14HoyNjitj9PmCzek5iSsg_automaticApproval: (URL)[] = []; @@ -26558,7 +26558,7 @@ get endpoints(): (URL)[] { } const instance = new this( - { id: \\"@id\\" in values ? new URL(values[\\"@id\\"] as string) : undefined }, + { id: \\"@id\\" in values && URL.canParse(values[\\"@id\\"] as string) ? new URL(values[\\"@id\\"] as string) : undefined }, options, ); const _2KM4fetG6FTJ1cphj76rzJ8Dyv7p_serviceEndpoint: (URL)[] = []; @@ -27735,7 +27735,7 @@ cryptosuite?: \\"eddsa-jcs-2022\\" | null;verificationMethod?: Multikey | URL | } const instance = new this( - { id: \\"@id\\" in values ? new URL(values[\\"@id\\"] as string) : undefined }, + { id: \\"@id\\" in values && URL.canParse(values[\\"@id\\"] as string) ? new URL(values[\\"@id\\"] as string) : undefined }, options, ); const _3RurJsa7tnptyqMFR5hDGcP9pMs5_cryptosuite: (\\"eddsa-jcs-2022\\")[] = []; @@ -28709,7 +28709,7 @@ owner?: Application | Group | Organization | Person | Service | URL | null;publi } const instance = new this( - { id: \\"@id\\" in values ? new URL(values[\\"@id\\"] as string) : undefined }, + { id: \\"@id\\" in values && URL.canParse(values[\\"@id\\"] as string) ? new URL(values[\\"@id\\"] as string) : undefined }, options, ); @@ -29596,7 +29596,7 @@ controller?: Application | Group | Organization | Person | Service | URL | null; } const instance = new this( - { id: \\"@id\\" in values ? new URL(values[\\"@id\\"] as string) : undefined }, + { id: \\"@id\\" in values && URL.canParse(values[\\"@id\\"] as string) ? new URL(values[\\"@id\\"] as string) : undefined }, options, ); @@ -30436,7 +30436,7 @@ action?: string | null;resourceConformsTo?: URL | null;resourceQuantity?: Measur } const instance = new this( - { id: \\"@id\\" in values ? new URL(values[\\"@id\\"] as string) : undefined }, + { id: \\"@id\\" in values && URL.canParse(values[\\"@id\\"] as string) ? new URL(values[\\"@id\\"] as string) : undefined }, options, ); const _38VmZKmXJSBy3AvgqNa9GVqbdphy_action: (string)[] = []; @@ -50391,7 +50391,7 @@ proxyUrl?: URL | null;oauthAuthorizationEndpoint?: URL | null;oauthTokenEndpoint } const instance = new this( - { id: \\"@id\\" in values ? new URL(values[\\"@id\\"] as string) : undefined }, + { id: \\"@id\\" in values && URL.canParse(values[\\"@id\\"] as string) ? new URL(values[\\"@id\\"] as string) : undefined }, options, ); const _2JCYDbSxEHCCLdBYed33cCETfGyR_proxyUrl: (URL)[] = []; @@ -59774,7 +59774,7 @@ get names(): ((string | LanguageString))[] { } const instance = new this( - { id: \\"@id\\" in values ? new URL(values[\\"@id\\"] as string) : undefined }, + { id: \\"@id\\" in values && URL.canParse(values[\\"@id\\"] as string) ? new URL(values[\\"@id\\"] as string) : undefined }, options, ); const _pVjLsybKQdmkjuU7MHjiVmNnuj7_href: (URL)[] = []; @@ -93635,7 +93635,7 @@ get contents(): ((string | LanguageString))[] { } const instance = new this( - { id: \\"@id\\" in values ? new URL(values[\\"@id\\"] as string) : undefined }, + { id: \\"@id\\" in values && URL.canParse(values[\\"@id\\"] as string) ? new URL(values[\\"@id\\"] as string) : undefined }, options, ); const _4HuuRSdSrXq8Jj2J9gcdYfoCzeuz_content: ((string | LanguageString))[] = []; diff --git a/packages/vocab-tools/src/__snapshots__/class.test.ts.snap b/packages/vocab-tools/src/__snapshots__/class.test.ts.snap index a9f10d5bf..2ea2593d4 100644 --- a/packages/vocab-tools/src/__snapshots__/class.test.ts.snap +++ b/packages/vocab-tools/src/__snapshots__/class.test.ts.snap @@ -10617,7 +10617,7 @@ get urls(): ((URL | Link))[] { } const instance = new this( - { id: "@id" in values ? new URL(values["@id"] as string) : undefined }, + { id: "@id" in values && URL.canParse(values["@id"] as string) ? new URL(values["@id"] as string) : undefined }, options, ); @@ -18471,7 +18471,7 @@ name?: string | LanguageString | null;value?: string | LanguageString | null;} } const instance = new this( - { id: "@id" in values ? new URL(values["@id"] as string) : undefined }, + { id: "@id" in values && URL.canParse(values["@id"] as string) ? new URL(values["@id"] as string) : undefined }, options, ); const _4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name: ((string | LanguageString))[] = []; @@ -19062,7 +19062,7 @@ unit?: string | null;numericalValue?: Decimal | null;} } const instance = new this( - { id: "@id" in values ? new URL(values["@id"] as string) : undefined }, + { id: "@id" in values && URL.canParse(values["@id"] as string) ? new URL(values["@id"] as string) : undefined }, options, ); const _27fgyFbosTtMAhuepJH8K3ZGURT6: (string)[] = []; @@ -21116,7 +21116,7 @@ canLike?: InteractionRule | null;canReply?: InteractionRule | null;canAnnounce?: } const instance = new this( - { id: "@id" in values ? new URL(values["@id"] as string) : undefined }, + { id: "@id" in values && URL.canParse(values["@id"] as string) ? new URL(values["@id"] as string) : undefined }, options, ); const _3JkwVLb3BNCwCWdsb5RftGAg8vyT_canLike: (InteractionRule)[] = []; @@ -21869,7 +21869,7 @@ get manualApprovals(): (URL)[] { } const instance = new this( - { id: "@id" in values ? new URL(values["@id"] as string) : undefined }, + { id: "@id" in values && URL.canParse(values["@id"] as string) ? new URL(values["@id"] as string) : undefined }, options, ); const _2rFyCF14HoyNjitj9PmCzek5iSsg_automaticApproval: (URL)[] = []; @@ -26560,7 +26560,7 @@ get endpoints(): (URL)[] { } const instance = new this( - { id: "@id" in values ? new URL(values["@id"] as string) : undefined }, + { id: "@id" in values && URL.canParse(values["@id"] as string) ? new URL(values["@id"] as string) : undefined }, options, ); const _2KM4fetG6FTJ1cphj76rzJ8Dyv7p_serviceEndpoint: (URL)[] = []; @@ -27737,7 +27737,7 @@ cryptosuite?: "eddsa-jcs-2022" | null;verificationMethod?: Multikey | URL | null } const instance = new this( - { id: "@id" in values ? new URL(values["@id"] as string) : undefined }, + { id: "@id" in values && URL.canParse(values["@id"] as string) ? new URL(values["@id"] as string) : undefined }, options, ); const _3RurJsa7tnptyqMFR5hDGcP9pMs5_cryptosuite: ("eddsa-jcs-2022")[] = []; @@ -28711,7 +28711,7 @@ owner?: Application | Group | Organization | Person | Service | URL | null;publi } const instance = new this( - { id: "@id" in values ? new URL(values["@id"] as string) : undefined }, + { id: "@id" in values && URL.canParse(values["@id"] as string) ? new URL(values["@id"] as string) : undefined }, options, ); @@ -29598,7 +29598,7 @@ controller?: Application | Group | Organization | Person | Service | URL | null; } const instance = new this( - { id: "@id" in values ? new URL(values["@id"] as string) : undefined }, + { id: "@id" in values && URL.canParse(values["@id"] as string) ? new URL(values["@id"] as string) : undefined }, options, ); @@ -30438,7 +30438,7 @@ action?: string | null;resourceConformsTo?: URL | null;resourceQuantity?: Measur } const instance = new this( - { id: "@id" in values ? new URL(values["@id"] as string) : undefined }, + { id: "@id" in values && URL.canParse(values["@id"] as string) ? new URL(values["@id"] as string) : undefined }, options, ); const _38VmZKmXJSBy3AvgqNa9GVqbdphy_action: (string)[] = []; @@ -50393,7 +50393,7 @@ proxyUrl?: URL | null;oauthAuthorizationEndpoint?: URL | null;oauthTokenEndpoint } const instance = new this( - { id: "@id" in values ? new URL(values["@id"] as string) : undefined }, + { id: "@id" in values && URL.canParse(values["@id"] as string) ? new URL(values["@id"] as string) : undefined }, options, ); const _2JCYDbSxEHCCLdBYed33cCETfGyR_proxyUrl: (URL)[] = []; @@ -59776,7 +59776,7 @@ get names(): ((string | LanguageString))[] { } const instance = new this( - { id: "@id" in values ? new URL(values["@id"] as string) : undefined }, + { id: "@id" in values && URL.canParse(values["@id"] as string) ? new URL(values["@id"] as string) : undefined }, options, ); const _pVjLsybKQdmkjuU7MHjiVmNnuj7_href: (URL)[] = []; @@ -93637,7 +93637,7 @@ get contents(): ((string | LanguageString))[] { } const instance = new this( - { id: "@id" in values ? new URL(values["@id"] as string) : undefined }, + { id: "@id" in values && URL.canParse(values["@id"] as string) ? new URL(values["@id"] as string) : undefined }, options, ); const _4HuuRSdSrXq8Jj2J9gcdYfoCzeuz_content: ((string | LanguageString))[] = []; diff --git a/packages/vocab-tools/src/codec.ts b/packages/vocab-tools/src/codec.ts index cd146e86e..9b6a707a8 100644 --- a/packages/vocab-tools/src/codec.ts +++ b/packages/vocab-tools/src/codec.ts @@ -437,7 +437,7 @@ export async function* generateDecoder( if (type.extends == null) { yield ` const instance = new this( - { id: _resolvedUrl }, + { id: "@id" in values && URL.canParse(values["@id"] as string) ? new URL(values["@id"] as string) : undefined }, options, ); `; From a29690b542c65849869e4ebb77b505f1ee3bb9b4 Mon Sep 17 00:00:00 2001 From: Hong Minhee Date: Sat, 6 Jun 2026 13:55:21 +0900 Subject: [PATCH 17/25] Revert URL resolution changes and scope baseUrl spread Revert the _resolvedUrl/_baseUrl computation back to the original main-branch logic to avoid regressions in the root @id and property base URL resolution paths. The scope of the baseUrl spread in cached property reparse calls is now limited to properties that declare preprocessors rather than all compact-name properties. Assisted-by: OpenCode:deepseek-v4-pro --- docs/.gitignore | 2 +- docs/.vitepress/config.mts | 68 +- .../src/__snapshots__/class.test.ts.deno.snap | 2619 ++++++----------- .../src/__snapshots__/class.test.ts.node.snap | 2619 ++++++----------- .../src/__snapshots__/class.test.ts.snap | 2619 ++++++----------- packages/vocab-tools/src/codec.ts | 15 +- packages/vocab-tools/src/property.ts | 26 + 7 files changed, 2881 insertions(+), 5087 deletions(-) diff --git a/docs/.gitignore b/docs/.gitignore index 8b7451b4e..f6bb50c63 100644 --- a/docs/.gitignore +++ b/docs/.gitignore @@ -1,5 +1,5 @@ .jsr-cache.json -.jsr-*-cache.json +.jsr-cache-*.json .vitepress/cache/ .vitepress/dist/ node_modules/ diff --git a/docs/.vitepress/config.mts b/docs/.vitepress/config.mts index a71503133..a2613096f 100644 --- a/docs/.vitepress/config.mts +++ b/docs/.vitepress/config.mts @@ -1,4 +1,3 @@ -import taskLists from "@hackmd/markdown-it-task-lists"; import { transformerTwoslash } from "@shikijs/vitepress-twoslash"; import abbr from "markdown-it-abbr"; import deflist from "markdown-it-deflist"; @@ -15,24 +14,15 @@ import { import llmstxt from "vitepress-plugin-llms"; import { withMermaid } from "vitepress-plugin-mermaid"; -const jsrRefVersion = process.env.JSR_REF_VERSION ?? "unstable"; -const jsrRefPackages = [ - ["@fedify/fedify", ".jsr-cache.json"], - ["@fedify/vocab", ".jsr-vocab-cache.json"], - ["@fedify/vocab-runtime", ".jsr-vocab-runtime-cache.json"], - ["@fedify/webfinger", ".jsr-webfinger-cache.json"], - ["@fedify/debugger", ".jsr-debugger-cache.json"], - ["@fedify/testing", ".jsr-testing-cache.json"], -] as const; -const jsrRefPlugins = await Promise.all( - jsrRefPackages.map(([packageName, cachePath]) => - jsrRef({ - package: packageName, - version: jsrRefVersion, - cachePath, - }) - ), -); +const jsrRefPlugins: (Awaited>)[] = []; +for (const pkg of ["fedify", "vocab", "vocab-runtime", "webfinger"]) { + const jsrRefPlugin = await jsrRef({ + package: `@fedify/${pkg}`, + version: process.env.JSR_REF_VERSION ?? "unstable", + cachePath: `.jsr-cache-${pkg}.json`, + }); + jsrRefPlugins.push(jsrRefPlugin); +} let extraNav: { text: string; link: string }[] = []; if (process.env.EXTRA_NAV_TEXT && process.env.EXTRA_NAV_LINK) { @@ -112,15 +102,6 @@ const TUTORIAL = { }, { text: "Learning the basics", link: "/tutorial/basics.md" }, { text: "Creating a microblog", link: "/tutorial/microblog.md" }, - { - text: "Creating an image sharing service", - link: "/tutorial/content-sharing.md", - }, - { text: "Building a federated blog", link: "/tutorial/astro-blog.md" }, - { - text: "Building a threadiverse community", - link: "/tutorial/threadiverse.md", - }, ], activeMatch: "/tutorial", }; @@ -134,7 +115,6 @@ const MANUAL = { { text: "Vocabulary", link: "/manual/vocab.md" }, { text: "Actor dispatcher", link: "/manual/actor.md" }, { text: "Inbox listeners", link: "/manual/inbox.md" }, - { text: "Outbox listeners", link: "/manual/outbox.md" }, { text: "Sending activities", link: "/manual/send.md" }, { text: "Collections", link: "/manual/collections.md" }, { text: "Object dispatcher", link: "/manual/object.md" }, @@ -145,16 +125,13 @@ const MANUAL = { { text: "Pragmatics", link: "/manual/pragmatics.md" }, { text: "Key–value store", link: "/manual/kv.md" }, { text: "Message queue", link: "/manual/mq.md" }, - { text: "Circuit breaker", link: "/manual/circuit-breaker.md" }, { text: "Integration", link: "/manual/integration.md" }, - { text: "Migration", link: "/manual/migrate.md" }, { text: "Relay", link: "/manual/relay.md" }, { text: "Testing", link: "/manual/test.md" }, { text: "Debugging", link: "/manual/debug.md" }, { text: "Linting", link: "/manual/lint.md" }, { text: "Logging", link: "/manual/log.md" }, { text: "OpenTelemetry", link: "/manual/opentelemetry.md" }, - { text: "Benchmarking", link: "/manual/benchmarking.md" }, { text: "Deployment", link: "/manual/deploy.md" }, ], activeMatch: "/manual", @@ -297,10 +274,6 @@ export default withMermaid(defineConfig({ target: ScriptTarget.ESNext, experimentalDecorators: true, // For @fedify/nestjs emitDecoratorMetadata: true, // For @fedify/nestjs - // Silences TS5101 about the `baseUrl` injected by @typescript/vfs - // when Twoslash spins up its virtual TS environment; the option - // is deprecated in TypeScript 6.0 and removed in 7.0. - ignoreDeprecations: "6.0", lib: ["dom", "dom.iterable", "esnext"], types: [ "dom", @@ -321,7 +294,6 @@ export default withMermaid(defineConfig({ md.use(abbr); md.use(deflist); md.use(footnote); - md.use(taskLists); md.use(groupIconMdPlugin); for (const jsrRefPlugin of jsrRefPlugins) { md.use(jsrRefPlugin); @@ -336,20 +308,14 @@ export default withMermaid(defineConfig({ plugins: [ groupIconVitePlugin(), llmstxt({ - ignoreFilesPerOutput: { - llmsTxt: [ - "changelog.md", - "contribute.md", - "README.md", - "sponsors.md", - ], - llmsFullTxt: [ - "changelog.md", - "contribute.md", - "README.md", - "sponsors.md", - ], - }, + ignoreFiles: [ + "changelog.md", + "contribute.md", + "README.md", + "security.md", + "sponsors.md", + "tutorial.md", + ], }), ], }, diff --git a/packages/vocab-tools/src/__snapshots__/class.test.ts.deno.snap b/packages/vocab-tools/src/__snapshots__/class.test.ts.deno.snap index 6433b58c0..a0a4d88a0 100644 --- a/packages/vocab-tools/src/__snapshots__/class.test.ts.deno.snap +++ b/packages/vocab-tools/src/__snapshots__/class.test.ts.deno.snap @@ -2336,11 +2336,9 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu \\"attachment\\"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) { - v = await this.#attachment_fromJsonLd(obj, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#attachment_fromJsonLd(obj, options); + } } @@ -2594,11 +2592,9 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu \\"attributedTo\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#attribution_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#attribution_fromJsonLd(doc, options); + } } @@ -2694,11 +2690,9 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu \\"attributedTo\\"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) { - v = await this.#attribution_fromJsonLd(obj, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#attribution_fromJsonLd(obj, options); + } } @@ -2915,11 +2909,9 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu \\"audience\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#audience_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#audience_fromJsonLd(doc, options); + } } @@ -3014,11 +3006,9 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu \\"audience\\"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) { - v = await this.#audience_fromJsonLd(obj, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#audience_fromJsonLd(obj, options); + } } @@ -3279,11 +3269,9 @@ get contents(): ((string | LanguageString))[] { \\"context\\"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) { - v = await this.#context_fromJsonLd(obj, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#context_fromJsonLd(obj, options); + } } @@ -3551,11 +3539,9 @@ get names(): ((string | LanguageString))[] { \\"generator\\"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) { - v = await this.#generator_fromJsonLd(obj, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#generator_fromJsonLd(obj, options); + } } @@ -3792,11 +3778,13 @@ get names(): ((string | LanguageString))[] { \\"icon\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { + v = await this.#icon_fromJsonLd(doc, { ...options, baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? undefined, }); + } } @@ -3892,11 +3880,13 @@ get names(): ((string | LanguageString))[] { \\"icon\\"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) { + v = await this.#icon_fromJsonLd(obj, { ...options, baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? undefined, }); + } } @@ -4133,11 +4123,13 @@ get names(): ((string | LanguageString))[] { \\"image\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { + v = await this.#image_fromJsonLd(doc, { ...options, baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? undefined, }); + } } @@ -4233,11 +4225,13 @@ get names(): ((string | LanguageString))[] { \\"image\\"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) { + v = await this.#image_fromJsonLd(obj, { ...options, baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? undefined, }); + } } @@ -4463,11 +4457,9 @@ get names(): ((string | LanguageString))[] { \\"inReplyTo\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#replyTarget_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#replyTarget_fromJsonLd(doc, options); + } } @@ -4562,11 +4554,9 @@ get names(): ((string | LanguageString))[] { \\"inReplyTo\\"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) { - v = await this.#replyTarget_fromJsonLd(obj, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#replyTarget_fromJsonLd(obj, options); + } } @@ -4792,11 +4782,9 @@ get names(): ((string | LanguageString))[] { \\"location\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#location_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#location_fromJsonLd(doc, options); + } } @@ -4891,11 +4879,9 @@ get names(): ((string | LanguageString))[] { \\"location\\"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) { - v = await this.#location_fromJsonLd(obj, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#location_fromJsonLd(obj, options); + } } @@ -5120,11 +5106,9 @@ get names(): ((string | LanguageString))[] { \\"preview\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#preview_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#preview_fromJsonLd(doc, options); + } } @@ -5218,11 +5202,9 @@ get names(): ((string | LanguageString))[] { \\"preview\\"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) { - v = await this.#preview_fromJsonLd(obj, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#preview_fromJsonLd(obj, options); + } } @@ -5452,11 +5434,9 @@ get names(): ((string | LanguageString))[] { \\"replies\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#replies_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#replies_fromJsonLd(doc, options); + } } @@ -5678,11 +5658,9 @@ get names(): ((string | LanguageString))[] { \\"shares\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#shares_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#shares_fromJsonLd(doc, options); + } } @@ -5904,11 +5882,9 @@ get names(): ((string | LanguageString))[] { \\"likes\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#likes_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#likes_fromJsonLd(doc, options); + } } @@ -6124,11 +6100,9 @@ get names(): ((string | LanguageString))[] { \\"emojiReactions\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#emojiReactions_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#emojiReactions_fromJsonLd(doc, options); + } } @@ -6396,11 +6370,9 @@ get summaries(): ((string | LanguageString))[] { \\"tag\\"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) { - v = await this.#tag_fromJsonLd(obj, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#tag_fromJsonLd(obj, options); + } } @@ -6651,11 +6623,9 @@ get urls(): ((URL | Link))[] { \\"to\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#to_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#to_fromJsonLd(doc, options); + } } @@ -6750,11 +6720,9 @@ get urls(): ((URL | Link))[] { \\"to\\"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) { - v = await this.#to_fromJsonLd(obj, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#to_fromJsonLd(obj, options); + } } @@ -6971,11 +6939,9 @@ get urls(): ((URL | Link))[] { \\"bto\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#bto_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#bto_fromJsonLd(doc, options); + } } @@ -7070,11 +7036,9 @@ get urls(): ((URL | Link))[] { \\"bto\\"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) { - v = await this.#bto_fromJsonLd(obj, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#bto_fromJsonLd(obj, options); + } } @@ -7291,11 +7255,9 @@ get urls(): ((URL | Link))[] { \\"cc\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#cc_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#cc_fromJsonLd(doc, options); + } } @@ -7390,11 +7352,9 @@ get urls(): ((URL | Link))[] { \\"cc\\"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) { - v = await this.#cc_fromJsonLd(obj, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#cc_fromJsonLd(obj, options); + } } @@ -7611,11 +7571,9 @@ get urls(): ((URL | Link))[] { \\"bcc\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#bcc_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#bcc_fromJsonLd(doc, options); + } } @@ -7710,11 +7668,9 @@ get urls(): ((URL | Link))[] { \\"bcc\\"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) { - v = await this.#bcc_fromJsonLd(obj, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#bcc_fromJsonLd(obj, options); + } } @@ -7994,11 +7950,9 @@ get urls(): ((URL | Link))[] { \\"proof\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#proof_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#proof_fromJsonLd(doc, options); + } } @@ -8092,11 +8046,9 @@ get urls(): ((URL | Link))[] { \\"proof\\"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) { - v = await this.#proof_fromJsonLd(obj, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#proof_fromJsonLd(obj, options); + } } @@ -8352,11 +8304,9 @@ get urls(): ((URL | Link))[] { \\"likeAuthorization\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#likeAuthorization_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#likeAuthorization_fromJsonLd(doc, options); + } } @@ -8572,11 +8522,9 @@ get urls(): ((URL | Link))[] { \\"replyAuthorization\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#replyAuthorization_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#replyAuthorization_fromJsonLd(doc, options); + } } @@ -8792,11 +8740,9 @@ get urls(): ((URL | Link))[] { \\"announceAuthorization\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#announceAuthorization_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#announceAuthorization_fromJsonLd(doc, options); + } } @@ -10344,14 +10290,9 @@ get urls(): ((URL | Link))[] { // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - const _resolvedUrl = - values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) - ? new URL(values[\\"@id\\"], options.baseUrl) - : undefined; - if (options.baseUrl == null && _resolvedUrl != null) { - options = { ...options, baseUrl: _resolvedUrl }; + if (options.baseUrl == null && values[\\"@id\\"] != null) { + options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } - const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -10650,16 +10591,16 @@ get urls(): ((URL | Link))[] { && Array.isArray(v[\\"@type\\"])&& [\\"https://www.w3.org/ns/activitystreams#Object\\",\\"http://joinmastodon.org/ns#Emoji\\",\\"http://litepub.social/ns#ChatMessage\\",\\"https://gotosocial.org/ns#AnnounceAuthorization\\",\\"https://gotosocial.org/ns#LikeApproval\\",\\"https://gotosocial.org/ns#ReplyAuthorization\\",\\"https://w3id.org/fep/044f#QuoteAuthorization\\",\\"https://w3id.org/valueflows/ont/vf#Proposal\\",\\"https://www.w3.org/ns/activitystreams#Activity\\",\\"http://litepub.social/ns#EmojiReact\\",\\"https://gotosocial.org/ns#AnnounceRequest\\",\\"https://gotosocial.org/ns#LikeRequest\\",\\"https://gotosocial.org/ns#ReplyRequest\\",\\"https://w3id.org/fep/044f#QuoteRequest\\",\\"https://www.w3.org/ns/activitystreams#Accept\\",\\"https://www.w3.org/ns/activitystreams#TentativeAccept\\",\\"https://www.w3.org/ns/activitystreams#Add\\",\\"https://www.w3.org/ns/activitystreams#Announce\\",\\"https://www.w3.org/ns/activitystreams#Create\\",\\"https://www.w3.org/ns/activitystreams#Delete\\",\\"https://www.w3.org/ns/activitystreams#Dislike\\",\\"https://www.w3.org/ns/activitystreams#Flag\\",\\"https://www.w3.org/ns/activitystreams#Follow\\",\\"https://www.w3.org/ns/activitystreams#Ignore\\",\\"https://www.w3.org/ns/activitystreams#Block\\",\\"https://www.w3.org/ns/activitystreams#IntransitiveActivity\\",\\"https://www.w3.org/ns/activitystreams#Arrive\\",\\"https://www.w3.org/ns/activitystreams#Question\\",\\"https://www.w3.org/ns/activitystreams#Travel\\",\\"https://www.w3.org/ns/activitystreams#Join\\",\\"https://www.w3.org/ns/activitystreams#Leave\\",\\"https://www.w3.org/ns/activitystreams#Like\\",\\"https://www.w3.org/ns/activitystreams#Listen\\",\\"https://www.w3.org/ns/activitystreams#Move\\",\\"https://www.w3.org/ns/activitystreams#Offer\\",\\"https://www.w3.org/ns/activitystreams#Invite\\",\\"https://www.w3.org/ns/activitystreams#Read\\",\\"https://www.w3.org/ns/activitystreams#Reject\\",\\"https://www.w3.org/ns/activitystreams#TentativeReject\\",\\"https://www.w3.org/ns/activitystreams#Remove\\",\\"https://www.w3.org/ns/activitystreams#Undo\\",\\"https://www.w3.org/ns/activitystreams#Update\\",\\"https://www.w3.org/ns/activitystreams#View\\",\\"https://www.w3.org/ns/activitystreams#Application\\",\\"https://www.w3.org/ns/activitystreams#Article\\",\\"https://www.w3.org/ns/activitystreams#Collection\\",\\"https://www.w3.org/ns/activitystreams#CollectionPage\\",\\"https://www.w3.org/ns/activitystreams#OrderedCollectionPage\\",\\"https://www.w3.org/ns/activitystreams#OrderedCollection\\",\\"https://www.w3.org/ns/activitystreams#Document\\",\\"https://www.w3.org/ns/activitystreams#Audio\\",\\"https://www.w3.org/ns/activitystreams#Image\\",\\"https://www.w3.org/ns/activitystreams#Page\\",\\"https://www.w3.org/ns/activitystreams#Video\\",\\"https://www.w3.org/ns/activitystreams#Event\\",\\"https://www.w3.org/ns/activitystreams#Group\\",\\"https://www.w3.org/ns/activitystreams#Note\\",\\"https://www.w3.org/ns/activitystreams#Organization\\",\\"https://www.w3.org/ns/activitystreams#Person\\",\\"https://www.w3.org/ns/activitystreams#Place\\",\\"https://www.w3.org/ns/activitystreams#Profile\\",\\"https://www.w3.org/ns/activitystreams#Relationship\\",\\"https://www.w3.org/ns/activitystreams#Service\\",\\"https://www.w3.org/ns/activitystreams#Tombstone\\"].some( t => v[\\"@type\\"].includes(t)) ? await Object.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& [\\"https://www.w3.org/ns/activitystreams#Link\\",\\"https://www.w3.org/ns/activitystreams#Hashtag\\",\\"https://www.w3.org/ns/activitystreams#Mention\\"].some( t => v[\\"@type\\"].includes(t)) ? await Link.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"http://schema.org#PropertyValue\\") ? await PropertyValue.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -10696,23 +10637,23 @@ get urls(): ((URL | Link))[] { typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Application\\") ? await Application.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Group\\") ? await Group.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Organization\\") ? await Organization.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Person\\") ? await Person.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Service\\") ? await Service.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -10747,7 +10688,7 @@ get urls(): ((URL | Link))[] { const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _3ocC3VVi88cEd5sPWL8djkZsvTN6_audience.push(decoded); @@ -10807,12 +10748,12 @@ get urls(): ((URL | Link))[] { && Array.isArray(v[\\"@type\\"])&& [\\"https://www.w3.org/ns/activitystreams#Object\\",\\"http://joinmastodon.org/ns#Emoji\\",\\"http://litepub.social/ns#ChatMessage\\",\\"https://gotosocial.org/ns#AnnounceAuthorization\\",\\"https://gotosocial.org/ns#LikeApproval\\",\\"https://gotosocial.org/ns#ReplyAuthorization\\",\\"https://w3id.org/fep/044f#QuoteAuthorization\\",\\"https://w3id.org/valueflows/ont/vf#Proposal\\",\\"https://www.w3.org/ns/activitystreams#Activity\\",\\"http://litepub.social/ns#EmojiReact\\",\\"https://gotosocial.org/ns#AnnounceRequest\\",\\"https://gotosocial.org/ns#LikeRequest\\",\\"https://gotosocial.org/ns#ReplyRequest\\",\\"https://w3id.org/fep/044f#QuoteRequest\\",\\"https://www.w3.org/ns/activitystreams#Accept\\",\\"https://www.w3.org/ns/activitystreams#TentativeAccept\\",\\"https://www.w3.org/ns/activitystreams#Add\\",\\"https://www.w3.org/ns/activitystreams#Announce\\",\\"https://www.w3.org/ns/activitystreams#Create\\",\\"https://www.w3.org/ns/activitystreams#Delete\\",\\"https://www.w3.org/ns/activitystreams#Dislike\\",\\"https://www.w3.org/ns/activitystreams#Flag\\",\\"https://www.w3.org/ns/activitystreams#Follow\\",\\"https://www.w3.org/ns/activitystreams#Ignore\\",\\"https://www.w3.org/ns/activitystreams#Block\\",\\"https://www.w3.org/ns/activitystreams#IntransitiveActivity\\",\\"https://www.w3.org/ns/activitystreams#Arrive\\",\\"https://www.w3.org/ns/activitystreams#Question\\",\\"https://www.w3.org/ns/activitystreams#Travel\\",\\"https://www.w3.org/ns/activitystreams#Join\\",\\"https://www.w3.org/ns/activitystreams#Leave\\",\\"https://www.w3.org/ns/activitystreams#Like\\",\\"https://www.w3.org/ns/activitystreams#Listen\\",\\"https://www.w3.org/ns/activitystreams#Move\\",\\"https://www.w3.org/ns/activitystreams#Offer\\",\\"https://www.w3.org/ns/activitystreams#Invite\\",\\"https://www.w3.org/ns/activitystreams#Read\\",\\"https://www.w3.org/ns/activitystreams#Reject\\",\\"https://www.w3.org/ns/activitystreams#TentativeReject\\",\\"https://www.w3.org/ns/activitystreams#Remove\\",\\"https://www.w3.org/ns/activitystreams#Undo\\",\\"https://www.w3.org/ns/activitystreams#Update\\",\\"https://www.w3.org/ns/activitystreams#View\\",\\"https://www.w3.org/ns/activitystreams#Application\\",\\"https://www.w3.org/ns/activitystreams#Article\\",\\"https://www.w3.org/ns/activitystreams#Collection\\",\\"https://www.w3.org/ns/activitystreams#CollectionPage\\",\\"https://www.w3.org/ns/activitystreams#OrderedCollectionPage\\",\\"https://www.w3.org/ns/activitystreams#OrderedCollection\\",\\"https://www.w3.org/ns/activitystreams#Document\\",\\"https://www.w3.org/ns/activitystreams#Audio\\",\\"https://www.w3.org/ns/activitystreams#Image\\",\\"https://www.w3.org/ns/activitystreams#Page\\",\\"https://www.w3.org/ns/activitystreams#Video\\",\\"https://www.w3.org/ns/activitystreams#Event\\",\\"https://www.w3.org/ns/activitystreams#Group\\",\\"https://www.w3.org/ns/activitystreams#Note\\",\\"https://www.w3.org/ns/activitystreams#Organization\\",\\"https://www.w3.org/ns/activitystreams#Person\\",\\"https://www.w3.org/ns/activitystreams#Place\\",\\"https://www.w3.org/ns/activitystreams#Profile\\",\\"https://www.w3.org/ns/activitystreams#Relationship\\",\\"https://www.w3.org/ns/activitystreams#Service\\",\\"https://www.w3.org/ns/activitystreams#Tombstone\\"].some( t => v[\\"@type\\"].includes(t)) ? await Object.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& [\\"https://www.w3.org/ns/activitystreams#Link\\",\\"https://www.w3.org/ns/activitystreams#Hashtag\\",\\"https://www.w3.org/ns/activitystreams#Mention\\"].some( t => v[\\"@type\\"].includes(t)) ? await Link.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -10896,12 +10837,12 @@ get urls(): ((URL | Link))[] { && Array.isArray(v[\\"@type\\"])&& [\\"https://www.w3.org/ns/activitystreams#Object\\",\\"http://joinmastodon.org/ns#Emoji\\",\\"http://litepub.social/ns#ChatMessage\\",\\"https://gotosocial.org/ns#AnnounceAuthorization\\",\\"https://gotosocial.org/ns#LikeApproval\\",\\"https://gotosocial.org/ns#ReplyAuthorization\\",\\"https://w3id.org/fep/044f#QuoteAuthorization\\",\\"https://w3id.org/valueflows/ont/vf#Proposal\\",\\"https://www.w3.org/ns/activitystreams#Activity\\",\\"http://litepub.social/ns#EmojiReact\\",\\"https://gotosocial.org/ns#AnnounceRequest\\",\\"https://gotosocial.org/ns#LikeRequest\\",\\"https://gotosocial.org/ns#ReplyRequest\\",\\"https://w3id.org/fep/044f#QuoteRequest\\",\\"https://www.w3.org/ns/activitystreams#Accept\\",\\"https://www.w3.org/ns/activitystreams#TentativeAccept\\",\\"https://www.w3.org/ns/activitystreams#Add\\",\\"https://www.w3.org/ns/activitystreams#Announce\\",\\"https://www.w3.org/ns/activitystreams#Create\\",\\"https://www.w3.org/ns/activitystreams#Delete\\",\\"https://www.w3.org/ns/activitystreams#Dislike\\",\\"https://www.w3.org/ns/activitystreams#Flag\\",\\"https://www.w3.org/ns/activitystreams#Follow\\",\\"https://www.w3.org/ns/activitystreams#Ignore\\",\\"https://www.w3.org/ns/activitystreams#Block\\",\\"https://www.w3.org/ns/activitystreams#IntransitiveActivity\\",\\"https://www.w3.org/ns/activitystreams#Arrive\\",\\"https://www.w3.org/ns/activitystreams#Question\\",\\"https://www.w3.org/ns/activitystreams#Travel\\",\\"https://www.w3.org/ns/activitystreams#Join\\",\\"https://www.w3.org/ns/activitystreams#Leave\\",\\"https://www.w3.org/ns/activitystreams#Like\\",\\"https://www.w3.org/ns/activitystreams#Listen\\",\\"https://www.w3.org/ns/activitystreams#Move\\",\\"https://www.w3.org/ns/activitystreams#Offer\\",\\"https://www.w3.org/ns/activitystreams#Invite\\",\\"https://www.w3.org/ns/activitystreams#Read\\",\\"https://www.w3.org/ns/activitystreams#Reject\\",\\"https://www.w3.org/ns/activitystreams#TentativeReject\\",\\"https://www.w3.org/ns/activitystreams#Remove\\",\\"https://www.w3.org/ns/activitystreams#Undo\\",\\"https://www.w3.org/ns/activitystreams#Update\\",\\"https://www.w3.org/ns/activitystreams#View\\",\\"https://www.w3.org/ns/activitystreams#Application\\",\\"https://www.w3.org/ns/activitystreams#Article\\",\\"https://www.w3.org/ns/activitystreams#Collection\\",\\"https://www.w3.org/ns/activitystreams#CollectionPage\\",\\"https://www.w3.org/ns/activitystreams#OrderedCollectionPage\\",\\"https://www.w3.org/ns/activitystreams#OrderedCollection\\",\\"https://www.w3.org/ns/activitystreams#Document\\",\\"https://www.w3.org/ns/activitystreams#Audio\\",\\"https://www.w3.org/ns/activitystreams#Image\\",\\"https://www.w3.org/ns/activitystreams#Page\\",\\"https://www.w3.org/ns/activitystreams#Video\\",\\"https://www.w3.org/ns/activitystreams#Event\\",\\"https://www.w3.org/ns/activitystreams#Group\\",\\"https://www.w3.org/ns/activitystreams#Note\\",\\"https://www.w3.org/ns/activitystreams#Organization\\",\\"https://www.w3.org/ns/activitystreams#Person\\",\\"https://www.w3.org/ns/activitystreams#Place\\",\\"https://www.w3.org/ns/activitystreams#Profile\\",\\"https://www.w3.org/ns/activitystreams#Relationship\\",\\"https://www.w3.org/ns/activitystreams#Service\\",\\"https://www.w3.org/ns/activitystreams#Tombstone\\"].some( t => v[\\"@type\\"].includes(t)) ? await Object.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& [\\"https://www.w3.org/ns/activitystreams#Link\\",\\"https://www.w3.org/ns/activitystreams#Hashtag\\",\\"https://www.w3.org/ns/activitystreams#Mention\\"].some( t => v[\\"@type\\"].includes(t)) ? await Link.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -10932,7 +10873,7 @@ get urls(): ((URL | Link))[] { documentLoader: options.documentLoader, contextLoader: options.contextLoader, tracerProvider: options.tracerProvider, - baseUrl: _baseUrl, + baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])), }); if (_result instanceof Error) throw _result; if (_result !== undefined) { @@ -10958,7 +10899,7 @@ get urls(): ((URL | Link))[] { const decoded = await Image.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _33CjRLy5ujtsUrwRSCrsggvGdKuR_icon.push(decoded); @@ -10987,7 +10928,7 @@ get urls(): ((URL | Link))[] { documentLoader: options.documentLoader, contextLoader: options.contextLoader, tracerProvider: options.tracerProvider, - baseUrl: _baseUrl, + baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])), }); if (_result instanceof Error) throw _result; if (_result !== undefined) { @@ -11013,7 +10954,7 @@ get urls(): ((URL | Link))[] { const decoded = await Image.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _3dXrUdkARxwyJLtJcYi1AJ92H41U_image.push(decoded); @@ -11049,12 +10990,12 @@ get urls(): ((URL | Link))[] { && Array.isArray(v[\\"@type\\"])&& [\\"https://www.w3.org/ns/activitystreams#Object\\",\\"http://joinmastodon.org/ns#Emoji\\",\\"http://litepub.social/ns#ChatMessage\\",\\"https://gotosocial.org/ns#AnnounceAuthorization\\",\\"https://gotosocial.org/ns#LikeApproval\\",\\"https://gotosocial.org/ns#ReplyAuthorization\\",\\"https://w3id.org/fep/044f#QuoteAuthorization\\",\\"https://w3id.org/valueflows/ont/vf#Proposal\\",\\"https://www.w3.org/ns/activitystreams#Activity\\",\\"http://litepub.social/ns#EmojiReact\\",\\"https://gotosocial.org/ns#AnnounceRequest\\",\\"https://gotosocial.org/ns#LikeRequest\\",\\"https://gotosocial.org/ns#ReplyRequest\\",\\"https://w3id.org/fep/044f#QuoteRequest\\",\\"https://www.w3.org/ns/activitystreams#Accept\\",\\"https://www.w3.org/ns/activitystreams#TentativeAccept\\",\\"https://www.w3.org/ns/activitystreams#Add\\",\\"https://www.w3.org/ns/activitystreams#Announce\\",\\"https://www.w3.org/ns/activitystreams#Create\\",\\"https://www.w3.org/ns/activitystreams#Delete\\",\\"https://www.w3.org/ns/activitystreams#Dislike\\",\\"https://www.w3.org/ns/activitystreams#Flag\\",\\"https://www.w3.org/ns/activitystreams#Follow\\",\\"https://www.w3.org/ns/activitystreams#Ignore\\",\\"https://www.w3.org/ns/activitystreams#Block\\",\\"https://www.w3.org/ns/activitystreams#IntransitiveActivity\\",\\"https://www.w3.org/ns/activitystreams#Arrive\\",\\"https://www.w3.org/ns/activitystreams#Question\\",\\"https://www.w3.org/ns/activitystreams#Travel\\",\\"https://www.w3.org/ns/activitystreams#Join\\",\\"https://www.w3.org/ns/activitystreams#Leave\\",\\"https://www.w3.org/ns/activitystreams#Like\\",\\"https://www.w3.org/ns/activitystreams#Listen\\",\\"https://www.w3.org/ns/activitystreams#Move\\",\\"https://www.w3.org/ns/activitystreams#Offer\\",\\"https://www.w3.org/ns/activitystreams#Invite\\",\\"https://www.w3.org/ns/activitystreams#Read\\",\\"https://www.w3.org/ns/activitystreams#Reject\\",\\"https://www.w3.org/ns/activitystreams#TentativeReject\\",\\"https://www.w3.org/ns/activitystreams#Remove\\",\\"https://www.w3.org/ns/activitystreams#Undo\\",\\"https://www.w3.org/ns/activitystreams#Update\\",\\"https://www.w3.org/ns/activitystreams#View\\",\\"https://www.w3.org/ns/activitystreams#Application\\",\\"https://www.w3.org/ns/activitystreams#Article\\",\\"https://www.w3.org/ns/activitystreams#Collection\\",\\"https://www.w3.org/ns/activitystreams#CollectionPage\\",\\"https://www.w3.org/ns/activitystreams#OrderedCollectionPage\\",\\"https://www.w3.org/ns/activitystreams#OrderedCollection\\",\\"https://www.w3.org/ns/activitystreams#Document\\",\\"https://www.w3.org/ns/activitystreams#Audio\\",\\"https://www.w3.org/ns/activitystreams#Image\\",\\"https://www.w3.org/ns/activitystreams#Page\\",\\"https://www.w3.org/ns/activitystreams#Video\\",\\"https://www.w3.org/ns/activitystreams#Event\\",\\"https://www.w3.org/ns/activitystreams#Group\\",\\"https://www.w3.org/ns/activitystreams#Note\\",\\"https://www.w3.org/ns/activitystreams#Organization\\",\\"https://www.w3.org/ns/activitystreams#Person\\",\\"https://www.w3.org/ns/activitystreams#Place\\",\\"https://www.w3.org/ns/activitystreams#Profile\\",\\"https://www.w3.org/ns/activitystreams#Relationship\\",\\"https://www.w3.org/ns/activitystreams#Service\\",\\"https://www.w3.org/ns/activitystreams#Tombstone\\"].some( t => v[\\"@type\\"].includes(t)) ? await Object.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& [\\"https://www.w3.org/ns/activitystreams#Link\\",\\"https://www.w3.org/ns/activitystreams#Hashtag\\",\\"https://www.w3.org/ns/activitystreams#Mention\\"].some( t => v[\\"@type\\"].includes(t)) ? await Link.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -11092,12 +11033,12 @@ get urls(): ((URL | Link))[] { && Array.isArray(v[\\"@type\\"])&& [\\"https://www.w3.org/ns/activitystreams#Object\\",\\"http://joinmastodon.org/ns#Emoji\\",\\"http://litepub.social/ns#ChatMessage\\",\\"https://gotosocial.org/ns#AnnounceAuthorization\\",\\"https://gotosocial.org/ns#LikeApproval\\",\\"https://gotosocial.org/ns#ReplyAuthorization\\",\\"https://w3id.org/fep/044f#QuoteAuthorization\\",\\"https://w3id.org/valueflows/ont/vf#Proposal\\",\\"https://www.w3.org/ns/activitystreams#Activity\\",\\"http://litepub.social/ns#EmojiReact\\",\\"https://gotosocial.org/ns#AnnounceRequest\\",\\"https://gotosocial.org/ns#LikeRequest\\",\\"https://gotosocial.org/ns#ReplyRequest\\",\\"https://w3id.org/fep/044f#QuoteRequest\\",\\"https://www.w3.org/ns/activitystreams#Accept\\",\\"https://www.w3.org/ns/activitystreams#TentativeAccept\\",\\"https://www.w3.org/ns/activitystreams#Add\\",\\"https://www.w3.org/ns/activitystreams#Announce\\",\\"https://www.w3.org/ns/activitystreams#Create\\",\\"https://www.w3.org/ns/activitystreams#Delete\\",\\"https://www.w3.org/ns/activitystreams#Dislike\\",\\"https://www.w3.org/ns/activitystreams#Flag\\",\\"https://www.w3.org/ns/activitystreams#Follow\\",\\"https://www.w3.org/ns/activitystreams#Ignore\\",\\"https://www.w3.org/ns/activitystreams#Block\\",\\"https://www.w3.org/ns/activitystreams#IntransitiveActivity\\",\\"https://www.w3.org/ns/activitystreams#Arrive\\",\\"https://www.w3.org/ns/activitystreams#Question\\",\\"https://www.w3.org/ns/activitystreams#Travel\\",\\"https://www.w3.org/ns/activitystreams#Join\\",\\"https://www.w3.org/ns/activitystreams#Leave\\",\\"https://www.w3.org/ns/activitystreams#Like\\",\\"https://www.w3.org/ns/activitystreams#Listen\\",\\"https://www.w3.org/ns/activitystreams#Move\\",\\"https://www.w3.org/ns/activitystreams#Offer\\",\\"https://www.w3.org/ns/activitystreams#Invite\\",\\"https://www.w3.org/ns/activitystreams#Read\\",\\"https://www.w3.org/ns/activitystreams#Reject\\",\\"https://www.w3.org/ns/activitystreams#TentativeReject\\",\\"https://www.w3.org/ns/activitystreams#Remove\\",\\"https://www.w3.org/ns/activitystreams#Undo\\",\\"https://www.w3.org/ns/activitystreams#Update\\",\\"https://www.w3.org/ns/activitystreams#View\\",\\"https://www.w3.org/ns/activitystreams#Application\\",\\"https://www.w3.org/ns/activitystreams#Article\\",\\"https://www.w3.org/ns/activitystreams#Collection\\",\\"https://www.w3.org/ns/activitystreams#CollectionPage\\",\\"https://www.w3.org/ns/activitystreams#OrderedCollectionPage\\",\\"https://www.w3.org/ns/activitystreams#OrderedCollection\\",\\"https://www.w3.org/ns/activitystreams#Document\\",\\"https://www.w3.org/ns/activitystreams#Audio\\",\\"https://www.w3.org/ns/activitystreams#Image\\",\\"https://www.w3.org/ns/activitystreams#Page\\",\\"https://www.w3.org/ns/activitystreams#Video\\",\\"https://www.w3.org/ns/activitystreams#Event\\",\\"https://www.w3.org/ns/activitystreams#Group\\",\\"https://www.w3.org/ns/activitystreams#Note\\",\\"https://www.w3.org/ns/activitystreams#Organization\\",\\"https://www.w3.org/ns/activitystreams#Person\\",\\"https://www.w3.org/ns/activitystreams#Place\\",\\"https://www.w3.org/ns/activitystreams#Profile\\",\\"https://www.w3.org/ns/activitystreams#Relationship\\",\\"https://www.w3.org/ns/activitystreams#Service\\",\\"https://www.w3.org/ns/activitystreams#Tombstone\\"].some( t => v[\\"@type\\"].includes(t)) ? await Object.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& [\\"https://www.w3.org/ns/activitystreams#Link\\",\\"https://www.w3.org/ns/activitystreams#Hashtag\\",\\"https://www.w3.org/ns/activitystreams#Mention\\"].some( t => v[\\"@type\\"].includes(t)) ? await Link.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -11135,12 +11076,12 @@ get urls(): ((URL | Link))[] { && Array.isArray(v[\\"@type\\"])&& [\\"https://www.w3.org/ns/activitystreams#Link\\",\\"https://www.w3.org/ns/activitystreams#Hashtag\\",\\"https://www.w3.org/ns/activitystreams#Mention\\"].some( t => v[\\"@type\\"].includes(t)) ? await Link.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& [\\"https://www.w3.org/ns/activitystreams#Object\\",\\"http://joinmastodon.org/ns#Emoji\\",\\"http://litepub.social/ns#ChatMessage\\",\\"https://gotosocial.org/ns#AnnounceAuthorization\\",\\"https://gotosocial.org/ns#LikeApproval\\",\\"https://gotosocial.org/ns#ReplyAuthorization\\",\\"https://w3id.org/fep/044f#QuoteAuthorization\\",\\"https://w3id.org/valueflows/ont/vf#Proposal\\",\\"https://www.w3.org/ns/activitystreams#Activity\\",\\"http://litepub.social/ns#EmojiReact\\",\\"https://gotosocial.org/ns#AnnounceRequest\\",\\"https://gotosocial.org/ns#LikeRequest\\",\\"https://gotosocial.org/ns#ReplyRequest\\",\\"https://w3id.org/fep/044f#QuoteRequest\\",\\"https://www.w3.org/ns/activitystreams#Accept\\",\\"https://www.w3.org/ns/activitystreams#TentativeAccept\\",\\"https://www.w3.org/ns/activitystreams#Add\\",\\"https://www.w3.org/ns/activitystreams#Announce\\",\\"https://www.w3.org/ns/activitystreams#Create\\",\\"https://www.w3.org/ns/activitystreams#Delete\\",\\"https://www.w3.org/ns/activitystreams#Dislike\\",\\"https://www.w3.org/ns/activitystreams#Flag\\",\\"https://www.w3.org/ns/activitystreams#Follow\\",\\"https://www.w3.org/ns/activitystreams#Ignore\\",\\"https://www.w3.org/ns/activitystreams#Block\\",\\"https://www.w3.org/ns/activitystreams#IntransitiveActivity\\",\\"https://www.w3.org/ns/activitystreams#Arrive\\",\\"https://www.w3.org/ns/activitystreams#Question\\",\\"https://www.w3.org/ns/activitystreams#Travel\\",\\"https://www.w3.org/ns/activitystreams#Join\\",\\"https://www.w3.org/ns/activitystreams#Leave\\",\\"https://www.w3.org/ns/activitystreams#Like\\",\\"https://www.w3.org/ns/activitystreams#Listen\\",\\"https://www.w3.org/ns/activitystreams#Move\\",\\"https://www.w3.org/ns/activitystreams#Offer\\",\\"https://www.w3.org/ns/activitystreams#Invite\\",\\"https://www.w3.org/ns/activitystreams#Read\\",\\"https://www.w3.org/ns/activitystreams#Reject\\",\\"https://www.w3.org/ns/activitystreams#TentativeReject\\",\\"https://www.w3.org/ns/activitystreams#Remove\\",\\"https://www.w3.org/ns/activitystreams#Undo\\",\\"https://www.w3.org/ns/activitystreams#Update\\",\\"https://www.w3.org/ns/activitystreams#View\\",\\"https://www.w3.org/ns/activitystreams#Application\\",\\"https://www.w3.org/ns/activitystreams#Article\\",\\"https://www.w3.org/ns/activitystreams#Collection\\",\\"https://www.w3.org/ns/activitystreams#CollectionPage\\",\\"https://www.w3.org/ns/activitystreams#OrderedCollectionPage\\",\\"https://www.w3.org/ns/activitystreams#OrderedCollection\\",\\"https://www.w3.org/ns/activitystreams#Document\\",\\"https://www.w3.org/ns/activitystreams#Audio\\",\\"https://www.w3.org/ns/activitystreams#Image\\",\\"https://www.w3.org/ns/activitystreams#Page\\",\\"https://www.w3.org/ns/activitystreams#Video\\",\\"https://www.w3.org/ns/activitystreams#Event\\",\\"https://www.w3.org/ns/activitystreams#Group\\",\\"https://www.w3.org/ns/activitystreams#Note\\",\\"https://www.w3.org/ns/activitystreams#Organization\\",\\"https://www.w3.org/ns/activitystreams#Person\\",\\"https://www.w3.org/ns/activitystreams#Place\\",\\"https://www.w3.org/ns/activitystreams#Profile\\",\\"https://www.w3.org/ns/activitystreams#Relationship\\",\\"https://www.w3.org/ns/activitystreams#Service\\",\\"https://www.w3.org/ns/activitystreams#Tombstone\\"].some( t => v[\\"@type\\"].includes(t)) ? await Object.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -11197,7 +11138,7 @@ get urls(): ((URL | Link))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _7UpwM3JWcXhADcscukEehBorf6k_replies.push(decoded); @@ -11230,7 +11171,7 @@ get urls(): ((URL | Link))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _3kAfck9PcEYt2L7xug5y99YPbANs_shares.push(decoded); @@ -11263,7 +11204,7 @@ get urls(): ((URL | Link))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _S3ceDnpMdzoTRCccB9FkJWrEzYW_likes.push(decoded); @@ -11296,7 +11237,7 @@ get urls(): ((URL | Link))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _kMatyyNAuxoTD8GQMBfA5ogThMR_emojiReactions.push(decoded); @@ -11378,12 +11319,12 @@ get urls(): ((URL | Link))[] { && Array.isArray(v[\\"@type\\"])&& [\\"https://www.w3.org/ns/activitystreams#Object\\",\\"http://joinmastodon.org/ns#Emoji\\",\\"http://litepub.social/ns#ChatMessage\\",\\"https://gotosocial.org/ns#AnnounceAuthorization\\",\\"https://gotosocial.org/ns#LikeApproval\\",\\"https://gotosocial.org/ns#ReplyAuthorization\\",\\"https://w3id.org/fep/044f#QuoteAuthorization\\",\\"https://w3id.org/valueflows/ont/vf#Proposal\\",\\"https://www.w3.org/ns/activitystreams#Activity\\",\\"http://litepub.social/ns#EmojiReact\\",\\"https://gotosocial.org/ns#AnnounceRequest\\",\\"https://gotosocial.org/ns#LikeRequest\\",\\"https://gotosocial.org/ns#ReplyRequest\\",\\"https://w3id.org/fep/044f#QuoteRequest\\",\\"https://www.w3.org/ns/activitystreams#Accept\\",\\"https://www.w3.org/ns/activitystreams#TentativeAccept\\",\\"https://www.w3.org/ns/activitystreams#Add\\",\\"https://www.w3.org/ns/activitystreams#Announce\\",\\"https://www.w3.org/ns/activitystreams#Create\\",\\"https://www.w3.org/ns/activitystreams#Delete\\",\\"https://www.w3.org/ns/activitystreams#Dislike\\",\\"https://www.w3.org/ns/activitystreams#Flag\\",\\"https://www.w3.org/ns/activitystreams#Follow\\",\\"https://www.w3.org/ns/activitystreams#Ignore\\",\\"https://www.w3.org/ns/activitystreams#Block\\",\\"https://www.w3.org/ns/activitystreams#IntransitiveActivity\\",\\"https://www.w3.org/ns/activitystreams#Arrive\\",\\"https://www.w3.org/ns/activitystreams#Question\\",\\"https://www.w3.org/ns/activitystreams#Travel\\",\\"https://www.w3.org/ns/activitystreams#Join\\",\\"https://www.w3.org/ns/activitystreams#Leave\\",\\"https://www.w3.org/ns/activitystreams#Like\\",\\"https://www.w3.org/ns/activitystreams#Listen\\",\\"https://www.w3.org/ns/activitystreams#Move\\",\\"https://www.w3.org/ns/activitystreams#Offer\\",\\"https://www.w3.org/ns/activitystreams#Invite\\",\\"https://www.w3.org/ns/activitystreams#Read\\",\\"https://www.w3.org/ns/activitystreams#Reject\\",\\"https://www.w3.org/ns/activitystreams#TentativeReject\\",\\"https://www.w3.org/ns/activitystreams#Remove\\",\\"https://www.w3.org/ns/activitystreams#Undo\\",\\"https://www.w3.org/ns/activitystreams#Update\\",\\"https://www.w3.org/ns/activitystreams#View\\",\\"https://www.w3.org/ns/activitystreams#Application\\",\\"https://www.w3.org/ns/activitystreams#Article\\",\\"https://www.w3.org/ns/activitystreams#Collection\\",\\"https://www.w3.org/ns/activitystreams#CollectionPage\\",\\"https://www.w3.org/ns/activitystreams#OrderedCollectionPage\\",\\"https://www.w3.org/ns/activitystreams#OrderedCollection\\",\\"https://www.w3.org/ns/activitystreams#Document\\",\\"https://www.w3.org/ns/activitystreams#Audio\\",\\"https://www.w3.org/ns/activitystreams#Image\\",\\"https://www.w3.org/ns/activitystreams#Page\\",\\"https://www.w3.org/ns/activitystreams#Video\\",\\"https://www.w3.org/ns/activitystreams#Event\\",\\"https://www.w3.org/ns/activitystreams#Group\\",\\"https://www.w3.org/ns/activitystreams#Note\\",\\"https://www.w3.org/ns/activitystreams#Organization\\",\\"https://www.w3.org/ns/activitystreams#Person\\",\\"https://www.w3.org/ns/activitystreams#Place\\",\\"https://www.w3.org/ns/activitystreams#Profile\\",\\"https://www.w3.org/ns/activitystreams#Relationship\\",\\"https://www.w3.org/ns/activitystreams#Service\\",\\"https://www.w3.org/ns/activitystreams#Tombstone\\"].some( t => v[\\"@type\\"].includes(t)) ? await Object.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& [\\"https://www.w3.org/ns/activitystreams#Link\\",\\"https://www.w3.org/ns/activitystreams#Hashtag\\",\\"https://www.w3.org/ns/activitystreams#Mention\\"].some( t => v[\\"@type\\"].includes(t)) ? await Link.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -11442,13 +11383,13 @@ get urls(): ((URL | Link))[] { : \\"\\" ) ) - : URL.canParse(v[\\"@id\\"]) && _baseUrl + : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) ? new URL(v[\\"@id\\"]) - : new URL(v[\\"@id\\"], _baseUrl) : typeof v === \\"object\\" && \\"@type\\" in v + : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"]))) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& [\\"https://www.w3.org/ns/activitystreams#Link\\",\\"https://www.w3.org/ns/activitystreams#Hashtag\\",\\"https://www.w3.org/ns/activitystreams#Mention\\"].some( t => v[\\"@type\\"].includes(t)) ? await Link.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -11483,7 +11424,7 @@ get urls(): ((URL | Link))[] { const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _3hFbw7DTpHhq3cvVhkY8njhcsXbd_to.push(decoded); @@ -11516,7 +11457,7 @@ get urls(): ((URL | Link))[] { const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _aLZupjwL8XB7tzdLgCMXdjZ6qej_bto.push(decoded); @@ -11549,7 +11490,7 @@ get urls(): ((URL | Link))[] { const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _42a1SvBs24QSLzKcfjCyNTjW5a1g_cc.push(decoded); @@ -11582,7 +11523,7 @@ get urls(): ((URL | Link))[] { const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _3qvegKUB8YLgTXRpEf8E6JZSkz2H_bcc.push(decoded); @@ -11657,7 +11598,7 @@ get urls(): ((URL | Link))[] { const decoded = await Source.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _2ZwCFoS787v8y8bXKjMoE6MAbrEB_source.push(decoded); @@ -11690,7 +11631,7 @@ get urls(): ((URL | Link))[] { const decoded = await DataIntegrityProof.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _42rPnotok1ivQ2RNCKNbeFJgx8b8_proof.push(decoded); @@ -11711,7 +11652,7 @@ get urls(): ((URL | Link))[] { const decoded = await InteractionPolicy.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _2MHQfh2N74MMmDLDqYWFo7TxYQK2_interactionPolicy.push(decoded); @@ -11743,9 +11684,9 @@ get urls(): ((URL | Link))[] { : \\"\\" ) ) - : URL.canParse(v[\\"@id\\"]) && _baseUrl + : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) ? new URL(v[\\"@id\\"]) - : new URL(v[\\"@id\\"], _baseUrl); + : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"]))); if (typeof decoded === \\"undefined\\") continue; _23YiVs2miQcEiUdn4u8SvjQKWYim_approvedBy.push(decoded); } @@ -11777,7 +11718,7 @@ get urls(): ((URL | Link))[] { const decoded = await LikeAuthorization.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _3fCeb5aXaDDd4fvkQ96BLWifBUBa_likeAuthorization.push(decoded); @@ -11810,7 +11751,7 @@ get urls(): ((URL | Link))[] { const decoded = await ReplyAuthorization.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _YA4wdUW7rYztAQ6SjhMnJCmcmtP_replyAuthorization.push(decoded); @@ -11843,7 +11784,7 @@ get urls(): ((URL | Link))[] { const decoded = await AnnounceAuthorization.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _446xEaDBs3Fz6MyzP3PSBaLupkbJ_announceAuthorization.push(decoded); @@ -13021,14 +12962,9 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - const _resolvedUrl = - values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) - ? new URL(values[\\"@id\\"], options.baseUrl) - : undefined; - if (options.baseUrl == null && _resolvedUrl != null) { - options = { ...options, baseUrl: _resolvedUrl }; + if (options.baseUrl == null && values[\\"@id\\"] != null) { + options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } - const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -13463,11 +13399,9 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu \\"quote\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#quote_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#quote_fromJsonLd(doc, options); + } } @@ -13706,11 +13640,9 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu \\"quoteAuthorization\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#quoteAuthorization_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#quoteAuthorization_fromJsonLd(doc, options); + } } @@ -14032,14 +13964,9 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - const _resolvedUrl = - values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) - ? new URL(values[\\"@id\\"], options.baseUrl) - : undefined; - if (options.baseUrl == null && _resolvedUrl != null) { - options = { ...options, baseUrl: _resolvedUrl }; + if (options.baseUrl == null && values[\\"@id\\"] != null) { + options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } - const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -14088,7 +14015,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote.push(decoded); @@ -14147,7 +14074,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await QuoteAuthorization.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization.push(decoded); @@ -15093,11 +15020,9 @@ instruments?: (Object | URL)[];} \\"actor\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#actor_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#actor_fromJsonLd(doc, options); + } } @@ -15193,11 +15118,9 @@ instruments?: (Object | URL)[];} \\"actor\\"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) { - v = await this.#actor_fromJsonLd(obj, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#actor_fromJsonLd(obj, options); + } } @@ -15415,11 +15338,9 @@ instruments?: (Object | URL)[];} \\"object\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#object_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#object_fromJsonLd(doc, options); + } } @@ -15515,11 +15436,9 @@ instruments?: (Object | URL)[];} \\"object\\"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) { - v = await this.#object_fromJsonLd(obj, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#object_fromJsonLd(obj, options); + } } @@ -15740,11 +15659,9 @@ instruments?: (Object | URL)[];} \\"target\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#target_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#target_fromJsonLd(doc, options); + } } @@ -15843,11 +15760,9 @@ instruments?: (Object | URL)[];} \\"target\\"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) { - v = await this.#target_fromJsonLd(obj, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#target_fromJsonLd(obj, options); + } } @@ -16065,11 +15980,9 @@ instruments?: (Object | URL)[];} \\"result\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#result_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#result_fromJsonLd(doc, options); + } } @@ -16165,11 +16078,9 @@ instruments?: (Object | URL)[];} \\"result\\"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) { - v = await this.#result_fromJsonLd(obj, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#result_fromJsonLd(obj, options); + } } @@ -16388,11 +16299,9 @@ instruments?: (Object | URL)[];} \\"origin\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#origin_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#origin_fromJsonLd(doc, options); + } } @@ -16489,11 +16398,9 @@ instruments?: (Object | URL)[];} \\"origin\\"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) { - v = await this.#origin_fromJsonLd(obj, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#origin_fromJsonLd(obj, options); + } } @@ -16710,11 +16617,9 @@ instruments?: (Object | URL)[];} \\"instrument\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#instrument_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#instrument_fromJsonLd(doc, options); + } } @@ -16809,11 +16714,9 @@ instruments?: (Object | URL)[];} \\"instrument\\"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) { - v = await this.#instrument_fromJsonLd(obj, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#instrument_fromJsonLd(obj, options); + } } @@ -17094,14 +16997,9 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - const _resolvedUrl = - values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) - ? new URL(values[\\"@id\\"], options.baseUrl) - : undefined; - if (options.baseUrl == null && _resolvedUrl != null) { - options = { ...options, baseUrl: _resolvedUrl }; + if (options.baseUrl == null && values[\\"@id\\"] != null) { + options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } - const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -17288,23 +17186,23 @@ instruments?: (Object | URL)[];} typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Application\\") ? await Application.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Group\\") ? await Group.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Organization\\") ? await Organization.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Person\\") ? await Person.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Service\\") ? await Service.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -17339,7 +17237,7 @@ instruments?: (Object | URL)[];} const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _2MH19yxjn1wnHsNfa5n4JBhJzxyc_object.push(decoded); @@ -17372,7 +17270,7 @@ instruments?: (Object | URL)[];} const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _3JQCmF2Ww56Ag9EWRYoSZRDNCYtF_target.push(decoded); @@ -17405,7 +17303,7 @@ instruments?: (Object | URL)[];} const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _u4QGFbRFcYmPEKGbPv1hpBR9r5G_result.push(decoded); @@ -17438,7 +17336,7 @@ instruments?: (Object | URL)[];} const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _25zu2s3VxVujgEKqrDycjE284XQR_origin.push(decoded); @@ -17471,7 +17369,7 @@ instruments?: (Object | URL)[];} const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _3c5t2x7DYRo2shwTxpkd4kYSS5WQ_instrument.push(decoded); @@ -17942,14 +17840,9 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - const _resolvedUrl = - values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) - ? new URL(values[\\"@id\\"], options.baseUrl) - : undefined; - if (options.baseUrl == null && _resolvedUrl != null) { - options = { ...options, baseUrl: _resolvedUrl }; + if (options.baseUrl == null && values[\\"@id\\"] != null) { + options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } - const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -18450,14 +18343,9 @@ name?: string | LanguageString | null;value?: string | LanguageString | null;} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - const _resolvedUrl = - values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) - ? new URL(values[\\"@id\\"], options.baseUrl) - : undefined; - if (options.baseUrl == null && _resolvedUrl != null) { - options = { ...options, baseUrl: _resolvedUrl }; + if (options.baseUrl == null && values[\\"@id\\"] != null) { + options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } - const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -19041,14 +18929,9 @@ unit?: string | null;numericalValue?: Decimal | null;} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - const _resolvedUrl = - values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) - ? new URL(values[\\"@id\\"], options.baseUrl) - : undefined; - if (options.baseUrl == null && _resolvedUrl != null) { - options = { ...options, baseUrl: _resolvedUrl }; + if (options.baseUrl == null && values[\\"@id\\"] != null) { + options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } - const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -19545,11 +19428,9 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu \\"interactingObject\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#interactingObject_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#interactingObject_fromJsonLd(doc, options); + } } @@ -19764,11 +19645,9 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu \\"interactionTarget\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#interactionTarget_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#interactionTarget_fromJsonLd(doc, options); + } } @@ -20045,14 +19924,9 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - const _resolvedUrl = - values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) - ? new URL(values[\\"@id\\"], options.baseUrl) - : undefined; - if (options.baseUrl == null && _resolvedUrl != null) { - options = { ...options, baseUrl: _resolvedUrl }; + if (options.baseUrl == null && values[\\"@id\\"] != null) { + options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } - const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -20101,7 +19975,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject.push(decoded); @@ -20134,7 +20008,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget.push(decoded); @@ -20499,14 +20373,9 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - const _resolvedUrl = - values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) - ? new URL(values[\\"@id\\"], options.baseUrl) - : undefined; - if (options.baseUrl == null && _resolvedUrl != null) { - options = { ...options, baseUrl: _resolvedUrl }; + if (options.baseUrl == null && values[\\"@id\\"] != null) { + options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } - const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -21095,14 +20964,9 @@ canLike?: InteractionRule | null;canReply?: InteractionRule | null;canAnnounce?: // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - const _resolvedUrl = - values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) - ? new URL(values[\\"@id\\"], options.baseUrl) - : undefined; - if (options.baseUrl == null && _resolvedUrl != null) { - options = { ...options, baseUrl: _resolvedUrl }; + if (options.baseUrl == null && values[\\"@id\\"] != null) { + options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } - const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -21134,7 +20998,7 @@ canLike?: InteractionRule | null;canReply?: InteractionRule | null;canAnnounce?: const decoded = await InteractionRule.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _3JkwVLb3BNCwCWdsb5RftGAg8vyT_canLike.push(decoded); @@ -21155,7 +21019,7 @@ canLike?: InteractionRule | null;canReply?: InteractionRule | null;canAnnounce?: const decoded = await InteractionRule.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _2UBgLRi5p3DRGGvWyB227i4Qjhzd_canReply.push(decoded); @@ -21176,7 +21040,7 @@ canLike?: InteractionRule | null;canReply?: InteractionRule | null;canAnnounce?: const decoded = await InteractionRule.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _fu5nmoAj528fBQfnxhY9Daok3Vi_canAnnounce.push(decoded); @@ -21197,7 +21061,7 @@ canLike?: InteractionRule | null;canReply?: InteractionRule | null;canAnnounce?: const decoded = await InteractionRule.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _LE3zBTVacTZw2LSyLt4wVUkXeUy_canQuote.push(decoded); @@ -21848,14 +21712,9 @@ get manualApprovals(): (URL)[] { // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - const _resolvedUrl = - values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) - ? new URL(values[\\"@id\\"], options.baseUrl) - : undefined; - if (options.baseUrl == null && _resolvedUrl != null) { - options = { ...options, baseUrl: _resolvedUrl }; + if (options.baseUrl == null && values[\\"@id\\"] != null) { + options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } - const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -21898,9 +21757,9 @@ get manualApprovals(): (URL)[] { : \\"\\" ) ) - : URL.canParse(v[\\"@id\\"]) && _baseUrl + : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) ? new URL(v[\\"@id\\"]) - : new URL(v[\\"@id\\"], _baseUrl); + : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"]))); if (typeof decoded === \\"undefined\\") continue; _2rFyCF14HoyNjitj9PmCzek5iSsg_automaticApproval.push(decoded); } @@ -21931,9 +21790,9 @@ get manualApprovals(): (URL)[] { : \\"\\" ) ) - : URL.canParse(v[\\"@id\\"]) && _baseUrl + : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) ? new URL(v[\\"@id\\"]) - : new URL(v[\\"@id\\"], _baseUrl); + : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"]))); if (typeof decoded === \\"undefined\\") continue; _sxj8y5XMMMBWUnRYFw85MKedCMj_manualApproval.push(decoded); } @@ -22393,11 +22252,9 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu \\"interactingObject\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#interactingObject_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#interactingObject_fromJsonLd(doc, options); + } } @@ -22612,11 +22469,9 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu \\"interactionTarget\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#interactionTarget_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#interactionTarget_fromJsonLd(doc, options); + } } @@ -22893,14 +22748,9 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - const _resolvedUrl = - values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) - ? new URL(values[\\"@id\\"], options.baseUrl) - : undefined; - if (options.baseUrl == null && _resolvedUrl != null) { - options = { ...options, baseUrl: _resolvedUrl }; + if (options.baseUrl == null && values[\\"@id\\"] != null) { + options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } - const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -22949,7 +22799,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject.push(decoded); @@ -22982,7 +22832,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget.push(decoded); @@ -23346,14 +23196,9 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - const _resolvedUrl = - values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) - ? new URL(values[\\"@id\\"], options.baseUrl) - : undefined; - if (options.baseUrl == null && _resolvedUrl != null) { - options = { ...options, baseUrl: _resolvedUrl }; + if (options.baseUrl == null && values[\\"@id\\"] != null) { + options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } - const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -23763,11 +23608,9 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu \\"interactingObject\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#interactingObject_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#interactingObject_fromJsonLd(doc, options); + } } @@ -23982,11 +23825,9 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu \\"interactionTarget\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#interactionTarget_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#interactionTarget_fromJsonLd(doc, options); + } } @@ -24263,14 +24104,9 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - const _resolvedUrl = - values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) - ? new URL(values[\\"@id\\"], options.baseUrl) - : undefined; - if (options.baseUrl == null && _resolvedUrl != null) { - options = { ...options, baseUrl: _resolvedUrl }; + if (options.baseUrl == null && values[\\"@id\\"] != null) { + options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } - const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -24319,7 +24155,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject.push(decoded); @@ -24352,7 +24188,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget.push(decoded); @@ -24716,14 +24552,9 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - const _resolvedUrl = - values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) - ? new URL(values[\\"@id\\"], options.baseUrl) - : undefined; - if (options.baseUrl == null && _resolvedUrl != null) { - options = { ...options, baseUrl: _resolvedUrl }; + if (options.baseUrl == null && values[\\"@id\\"] != null) { + options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } - const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -25132,11 +24963,9 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu \\"interactingObject\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#interactingObject_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#interactingObject_fromJsonLd(doc, options); + } } @@ -25351,11 +25180,9 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu \\"interactionTarget\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#interactionTarget_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#interactionTarget_fromJsonLd(doc, options); + } } @@ -25632,14 +25459,9 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - const _resolvedUrl = - values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) - ? new URL(values[\\"@id\\"], options.baseUrl) - : undefined; - if (options.baseUrl == null && _resolvedUrl != null) { - options = { ...options, baseUrl: _resolvedUrl }; + if (options.baseUrl == null && values[\\"@id\\"] != null) { + options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } - const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -25688,7 +25510,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject.push(decoded); @@ -25721,7 +25543,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget.push(decoded); @@ -26085,14 +25907,9 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - const _resolvedUrl = - values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) - ? new URL(values[\\"@id\\"], options.baseUrl) - : undefined; - if (options.baseUrl == null && _resolvedUrl != null) { - options = { ...options, baseUrl: _resolvedUrl }; + if (options.baseUrl == null && values[\\"@id\\"] != null) { + options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } - const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -26535,14 +26352,9 @@ get endpoints(): (URL)[] { // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - const _resolvedUrl = - values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) - ? new URL(values[\\"@id\\"], options.baseUrl) - : undefined; - if (options.baseUrl == null && _resolvedUrl != null) { - options = { ...options, baseUrl: _resolvedUrl }; + if (options.baseUrl == null && values[\\"@id\\"] != null) { + options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } - const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -26589,9 +26401,9 @@ get endpoints(): (URL)[] { : \\"\\" ) ) - : URL.canParse(v[\\"@id\\"]) && _baseUrl + : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) ? new URL(v[\\"@id\\"]) - : new URL(v[\\"@id\\"], _baseUrl); + : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"]))); if (typeof decoded === \\"undefined\\") continue; _2KM4fetG6FTJ1cphj76rzJ8Dyv7p_serviceEndpoint.push(decoded); } @@ -26893,14 +26705,9 @@ endpoints?: (URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - const _resolvedUrl = - values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) - ? new URL(values[\\"@id\\"], options.baseUrl) - : undefined; - if (options.baseUrl == null && _resolvedUrl != null) { - options = { ...options, baseUrl: _resolvedUrl }; + if (options.baseUrl == null && values[\\"@id\\"] != null) { + options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } - const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -27716,14 +27523,9 @@ cryptosuite?: \\"eddsa-jcs-2022\\" | null;verificationMethod?: Multikey | URL | // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - const _resolvedUrl = - values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) - ? new URL(values[\\"@id\\"], options.baseUrl) - : undefined; - if (options.baseUrl == null && _resolvedUrl != null) { - options = { ...options, baseUrl: _resolvedUrl }; + if (options.baseUrl == null && values[\\"@id\\"] != null) { + options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } - const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -27785,7 +27587,7 @@ cryptosuite?: \\"eddsa-jcs-2022\\" | null;verificationMethod?: Multikey | URL | const decoded = await Multikey.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _2mHVKxqA7zncjveJrDEo3pWpMZqg_verificationMethod.push(decoded); @@ -28411,11 +28213,9 @@ owner?: Application | Group | Organization | Person | Service | URL | null;publi \\"owner\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#owner_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#owner_fromJsonLd(doc, options); + } } @@ -28690,14 +28490,9 @@ owner?: Application | Group | Organization | Person | Service | URL | null;publi // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - const _resolvedUrl = - values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) - ? new URL(values[\\"@id\\"], options.baseUrl) - : undefined; - if (options.baseUrl == null && _resolvedUrl != null) { - options = { ...options, baseUrl: _resolvedUrl }; + if (options.baseUrl == null && values[\\"@id\\"] != null) { + options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } - const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -28743,23 +28538,23 @@ owner?: Application | Group | Organization | Person | Service | URL | null;publi typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Application\\") ? await Application.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Group\\") ? await Group.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Organization\\") ? await Organization.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Person\\") ? await Person.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Service\\") ? await Service.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -29291,11 +29086,9 @@ controller?: Application | Group | Organization | Person | Service | URL | null; \\"controller\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#controller_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#controller_fromJsonLd(doc, options); + } } @@ -29577,14 +29370,9 @@ controller?: Application | Group | Organization | Person | Service | URL | null; // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - const _resolvedUrl = - values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) - ? new URL(values[\\"@id\\"], options.baseUrl) - : undefined; - if (options.baseUrl == null && _resolvedUrl != null) { - options = { ...options, baseUrl: _resolvedUrl }; + if (options.baseUrl == null && values[\\"@id\\"] != null) { + options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } - const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -29630,23 +29418,23 @@ controller?: Application | Group | Organization | Person | Service | URL | null; typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Application\\") ? await Application.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Group\\") ? await Group.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Organization\\") ? await Organization.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Person\\") ? await Person.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Service\\") ? await Service.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -30417,14 +30205,9 @@ action?: string | null;resourceConformsTo?: URL | null;resourceQuantity?: Measur // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - const _resolvedUrl = - values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) - ? new URL(values[\\"@id\\"], options.baseUrl) - : undefined; - if (options.baseUrl == null && _resolvedUrl != null) { - options = { ...options, baseUrl: _resolvedUrl }; + if (options.baseUrl == null && values[\\"@id\\"] != null) { + options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } - const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -30485,9 +30268,9 @@ action?: string | null;resourceConformsTo?: URL | null;resourceQuantity?: Measur : \\"\\" ) ) - : URL.canParse(v[\\"@id\\"]) && _baseUrl + : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) ? new URL(v[\\"@id\\"]) - : new URL(v[\\"@id\\"], _baseUrl); + : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"]))); if (typeof decoded === \\"undefined\\") continue; _BBAeMUUQDwBQn6cvu3P2Csd6b6h_resourceConformsTo.push(decoded); } @@ -30507,7 +30290,7 @@ action?: string | null;resourceConformsTo?: URL | null;resourceQuantity?: Measur const decoded = await Measure.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _2dLfqTbbRiggEcMQWbHpxkQrtmrc_resourceQuantity.push(decoded); @@ -30528,7 +30311,7 @@ action?: string | null;resourceConformsTo?: URL | null;resourceQuantity?: Measur const decoded = await Measure.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _YmNSnuih3Zk4VdR5JPVnQYroLAh_availableQuantity.push(decoded); @@ -30549,7 +30332,7 @@ action?: string | null;resourceConformsTo?: URL | null;resourceQuantity?: Measur const decoded = await Measure.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _3XueAFds2NBrqNpnV8b7aC8hV72S_minimumQuantity.push(decoded); @@ -31294,14 +31077,9 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - const _resolvedUrl = - values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) - ? new URL(values[\\"@id\\"], options.baseUrl) - : undefined; - if (options.baseUrl == null && _resolvedUrl != null) { - options = { ...options, baseUrl: _resolvedUrl }; + if (options.baseUrl == null && values[\\"@id\\"] != null) { + options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } - const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -31356,7 +31134,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Intent.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _sS5LvXX8cn4c3x6ux836AwYbTyJ_publishes.push(decoded); @@ -31377,7 +31155,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Intent.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _Z4ntJgFwR9BaNTbFvkRTGNEwUwy_reciprocal.push(decoded); @@ -31792,14 +31570,9 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - const _resolvedUrl = - values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) - ? new URL(values[\\"@id\\"], options.baseUrl) - : undefined; - if (options.baseUrl == null && _resolvedUrl != null) { - options = { ...options, baseUrl: _resolvedUrl }; + if (options.baseUrl == null && values[\\"@id\\"] != null) { + options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } - const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -32137,14 +31910,9 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - const _resolvedUrl = - values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) - ? new URL(values[\\"@id\\"], options.baseUrl) - : undefined; - if (options.baseUrl == null && _resolvedUrl != null) { - options = { ...options, baseUrl: _resolvedUrl }; + if (options.baseUrl == null && values[\\"@id\\"] != null) { + options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } - const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -32477,14 +32245,9 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - const _resolvedUrl = - values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) - ? new URL(values[\\"@id\\"], options.baseUrl) - : undefined; - if (options.baseUrl == null && _resolvedUrl != null) { - options = { ...options, baseUrl: _resolvedUrl }; + if (options.baseUrl == null && values[\\"@id\\"] != null) { + options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } - const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -33758,11 +33521,9 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"publicKey\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#publicKey_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#publicKey_fromJsonLd(doc, options); + } } @@ -33855,11 +33616,9 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"publicKey\\"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) { - v = await this.#publicKey_fromJsonLd(obj, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#publicKey_fromJsonLd(obj, options); + } } @@ -34078,11 +33837,9 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"assertionMethod\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#assertionMethod_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#assertionMethod_fromJsonLd(doc, options); + } } @@ -34179,11 +33936,9 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"assertionMethod\\"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) { - v = await this.#assertionMethod_fromJsonLd(obj, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#assertionMethod_fromJsonLd(obj, options); + } } @@ -34439,11 +34194,9 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"inbox\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#inbox_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#inbox_fromJsonLd(doc, options); + } } @@ -34676,11 +34429,9 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"outbox\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#outbox_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#outbox_fromJsonLd(doc, options); + } } @@ -34899,11 +34650,9 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"following\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#following_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#following_fromJsonLd(doc, options); + } } @@ -35125,11 +34874,9 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"followers\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#followers_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#followers_fromJsonLd(doc, options); + } } @@ -35349,11 +35096,9 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"liked\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#liked_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#liked_fromJsonLd(doc, options); + } } @@ -35571,11 +35316,9 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"featured\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#featured_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#featured_fromJsonLd(doc, options); + } } @@ -35793,11 +35536,9 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"featuredTags\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#featuredTags_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#featuredTags_fromJsonLd(doc, options); + } } @@ -36013,11 +35754,9 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"streams\\"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) { - v = await this.#stream_fromJsonLd(obj, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#stream_fromJsonLd(obj, options); + } } @@ -36343,11 +36082,9 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"movedTo\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#successor_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#successor_fromJsonLd(doc, options); + } } @@ -36601,11 +36338,9 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"alsoKnownAs\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#alias_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#alias_fromJsonLd(doc, options); + } } @@ -36702,11 +36437,9 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"alsoKnownAs\\"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) { - v = await this.#alias_fromJsonLd(obj, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#alias_fromJsonLd(obj, options); + } } @@ -36925,11 +36658,9 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"service\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#service_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#service_fromJsonLd(doc, options); + } } @@ -37026,11 +36757,9 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"service\\"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) { - v = await this.#service_fromJsonLd(obj, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#service_fromJsonLd(obj, options); + } } @@ -38063,14 +37792,9 @@ get preferredUsernames(): ((string | LanguageString))[] { // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - const _resolvedUrl = - values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) - ? new URL(values[\\"@id\\"], options.baseUrl) - : undefined; - if (options.baseUrl == null && _resolvedUrl != null) { - options = { ...options, baseUrl: _resolvedUrl }; + if (options.baseUrl == null && values[\\"@id\\"] != null) { + options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } - const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -38143,7 +37867,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await CryptographicKey.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _axq166E2eZADq34V4MYUc8KMZdC_publicKey.push(decoded); @@ -38176,7 +37900,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Multikey.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.push(decoded); @@ -38229,11 +37953,11 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#OrderedCollection\\") ? await OrderedCollection.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#OrderedCollectionPage\\") ? await OrderedCollectionPage.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -38270,11 +37994,11 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#OrderedCollection\\") ? await OrderedCollection.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#OrderedCollectionPage\\") ? await OrderedCollectionPage.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -38309,7 +38033,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _3yAv8jymNfNuJUDuBzJ1NQhdbAee_following.push(decoded); @@ -38342,7 +38066,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _BBCTgfphhsFzpVfKTykGSpBNwoA_followers.push(decoded); @@ -38375,7 +38099,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _3bgkPwJanyTCoVFM9ovRcus8tKkU_liked.push(decoded); @@ -38408,7 +38132,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _4N1vBJzXDf8NbBumeECQMFvKetja_featured.push(decoded); @@ -38441,7 +38165,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags.push(decoded); @@ -38474,7 +38198,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.push(decoded); @@ -38495,7 +38219,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Endpoints.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints.push(decoded); @@ -38602,23 +38326,23 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Application\\") ? await Application.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Group\\") ? await Group.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Organization\\") ? await Organization.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Person\\") ? await Person.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Service\\") ? await Service.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -38655,23 +38379,23 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Application\\") ? await Application.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Group\\") ? await Group.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Organization\\") ? await Organization.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Person\\") ? await Person.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Service\\") ? await Service.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -38706,7 +38430,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await DidService.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.push(decoded); @@ -39531,14 +39255,9 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - const _resolvedUrl = - values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) - ? new URL(values[\\"@id\\"], options.baseUrl) - : undefined; - if (options.baseUrl == null && _resolvedUrl != null) { - options = { ...options, baseUrl: _resolvedUrl }; + if (options.baseUrl == null && values[\\"@id\\"] != null) { + options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } - const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -39883,14 +39602,9 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - const _resolvedUrl = - values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) - ? new URL(values[\\"@id\\"], options.baseUrl) - : undefined; - if (options.baseUrl == null && _resolvedUrl != null) { - options = { ...options, baseUrl: _resolvedUrl }; + if (options.baseUrl == null && values[\\"@id\\"] != null) { + options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } - const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -40320,11 +40034,9 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu \\"quote\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#quote_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#quote_fromJsonLd(doc, options); + } } @@ -40563,11 +40275,9 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu \\"quoteAuthorization\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#quoteAuthorization_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#quoteAuthorization_fromJsonLd(doc, options); + } } @@ -40889,14 +40599,9 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - const _resolvedUrl = - values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) - ? new URL(values[\\"@id\\"], options.baseUrl) - : undefined; - if (options.baseUrl == null && _resolvedUrl != null) { - options = { ...options, baseUrl: _resolvedUrl }; + if (options.baseUrl == null && values[\\"@id\\"] != null) { + options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } - const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -40945,7 +40650,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote.push(decoded); @@ -41004,7 +40709,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await QuoteAuthorization.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization.push(decoded); @@ -41535,14 +41240,9 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - const _resolvedUrl = - values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) - ? new URL(values[\\"@id\\"], options.baseUrl) - : undefined; - if (options.baseUrl == null && _resolvedUrl != null) { - options = { ...options, baseUrl: _resolvedUrl }; + if (options.baseUrl == null && values[\\"@id\\"] != null) { + options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } - const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -41969,14 +41669,9 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - const _resolvedUrl = - values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) - ? new URL(values[\\"@id\\"], options.baseUrl) - : undefined; - if (options.baseUrl == null && _resolvedUrl != null) { - options = { ...options, baseUrl: _resolvedUrl }; + if (options.baseUrl == null && values[\\"@id\\"] != null) { + options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } - const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -42308,14 +42003,9 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - const _resolvedUrl = - values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) - ? new URL(values[\\"@id\\"], options.baseUrl) - : undefined; - if (options.baseUrl == null && _resolvedUrl != null) { - options = { ...options, baseUrl: _resolvedUrl }; + if (options.baseUrl == null && values[\\"@id\\"] != null) { + options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } - const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -42653,14 +42343,9 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - const _resolvedUrl = - values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) - ? new URL(values[\\"@id\\"], options.baseUrl) - : undefined; - if (options.baseUrl == null && _resolvedUrl != null) { - options = { ...options, baseUrl: _resolvedUrl }; + if (options.baseUrl == null && values[\\"@id\\"] != null) { + options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } - const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -43413,11 +43098,9 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu \\"current\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#current_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#current_fromJsonLd(doc, options); + } } @@ -43633,11 +43316,9 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu \\"first\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#first_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#first_fromJsonLd(doc, options); + } } @@ -43853,11 +43534,9 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu \\"last\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#last_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#last_fromJsonLd(doc, options); + } } @@ -44083,11 +43762,9 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu \\"items\\"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) { - v = await this.#item_fromJsonLd(obj, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#item_fromJsonLd(obj, options); + } } @@ -44303,11 +43980,9 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu \\"likesOf\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#likesOf_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#likesOf_fromJsonLd(doc, options); + } } @@ -44522,11 +44197,9 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu \\"sharesOf\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#sharesOf_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#sharesOf_fromJsonLd(doc, options); + } } @@ -44741,11 +44414,9 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu \\"repliesOf\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#repliesOf_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#repliesOf_fromJsonLd(doc, options); + } } @@ -44960,11 +44631,9 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu \\"inboxOf\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#inboxOf_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#inboxOf_fromJsonLd(doc, options); + } } @@ -45179,11 +44848,9 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu \\"outboxOf\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#outboxOf_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#outboxOf_fromJsonLd(doc, options); + } } @@ -45398,11 +45065,9 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu \\"followersOf\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#followersOf_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#followersOf_fromJsonLd(doc, options); + } } @@ -45617,11 +45282,9 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu \\"followingOf\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#followingOf_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#followingOf_fromJsonLd(doc, options); + } } @@ -45836,11 +45499,9 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu \\"likedOf\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#likedOf_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#likedOf_fromJsonLd(doc, options); + } } @@ -46505,14 +46166,9 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - const _resolvedUrl = - values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) - ? new URL(values[\\"@id\\"], options.baseUrl) - : undefined; - if (options.baseUrl == null && _resolvedUrl != null) { - options = { ...options, baseUrl: _resolvedUrl }; + if (options.baseUrl == null && values[\\"@id\\"] != null) { + options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } - const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -46591,7 +46247,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await CollectionPage.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _3UyUdxnyn6cDn53QKrh4MBiearma_current.push(decoded); @@ -46624,7 +46280,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await CollectionPage.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _J52RqweMe6hhv7RnLJMC8BExTE5_first.push(decoded); @@ -46657,7 +46313,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await CollectionPage.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _gyJJnyEFnuNVi1HFZKfAn3Hfn26_last.push(decoded); @@ -46693,12 +46349,12 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu && Array.isArray(v[\\"@type\\"])&& [\\"https://www.w3.org/ns/activitystreams#Object\\",\\"http://joinmastodon.org/ns#Emoji\\",\\"http://litepub.social/ns#ChatMessage\\",\\"https://gotosocial.org/ns#AnnounceAuthorization\\",\\"https://gotosocial.org/ns#LikeApproval\\",\\"https://gotosocial.org/ns#ReplyAuthorization\\",\\"https://w3id.org/fep/044f#QuoteAuthorization\\",\\"https://w3id.org/valueflows/ont/vf#Proposal\\",\\"https://www.w3.org/ns/activitystreams#Activity\\",\\"http://litepub.social/ns#EmojiReact\\",\\"https://gotosocial.org/ns#AnnounceRequest\\",\\"https://gotosocial.org/ns#LikeRequest\\",\\"https://gotosocial.org/ns#ReplyRequest\\",\\"https://w3id.org/fep/044f#QuoteRequest\\",\\"https://www.w3.org/ns/activitystreams#Accept\\",\\"https://www.w3.org/ns/activitystreams#TentativeAccept\\",\\"https://www.w3.org/ns/activitystreams#Add\\",\\"https://www.w3.org/ns/activitystreams#Announce\\",\\"https://www.w3.org/ns/activitystreams#Create\\",\\"https://www.w3.org/ns/activitystreams#Delete\\",\\"https://www.w3.org/ns/activitystreams#Dislike\\",\\"https://www.w3.org/ns/activitystreams#Flag\\",\\"https://www.w3.org/ns/activitystreams#Follow\\",\\"https://www.w3.org/ns/activitystreams#Ignore\\",\\"https://www.w3.org/ns/activitystreams#Block\\",\\"https://www.w3.org/ns/activitystreams#IntransitiveActivity\\",\\"https://www.w3.org/ns/activitystreams#Arrive\\",\\"https://www.w3.org/ns/activitystreams#Question\\",\\"https://www.w3.org/ns/activitystreams#Travel\\",\\"https://www.w3.org/ns/activitystreams#Join\\",\\"https://www.w3.org/ns/activitystreams#Leave\\",\\"https://www.w3.org/ns/activitystreams#Like\\",\\"https://www.w3.org/ns/activitystreams#Listen\\",\\"https://www.w3.org/ns/activitystreams#Move\\",\\"https://www.w3.org/ns/activitystreams#Offer\\",\\"https://www.w3.org/ns/activitystreams#Invite\\",\\"https://www.w3.org/ns/activitystreams#Read\\",\\"https://www.w3.org/ns/activitystreams#Reject\\",\\"https://www.w3.org/ns/activitystreams#TentativeReject\\",\\"https://www.w3.org/ns/activitystreams#Remove\\",\\"https://www.w3.org/ns/activitystreams#Undo\\",\\"https://www.w3.org/ns/activitystreams#Update\\",\\"https://www.w3.org/ns/activitystreams#View\\",\\"https://www.w3.org/ns/activitystreams#Application\\",\\"https://www.w3.org/ns/activitystreams#Article\\",\\"https://www.w3.org/ns/activitystreams#Collection\\",\\"https://www.w3.org/ns/activitystreams#CollectionPage\\",\\"https://www.w3.org/ns/activitystreams#OrderedCollectionPage\\",\\"https://www.w3.org/ns/activitystreams#OrderedCollection\\",\\"https://www.w3.org/ns/activitystreams#Document\\",\\"https://www.w3.org/ns/activitystreams#Audio\\",\\"https://www.w3.org/ns/activitystreams#Image\\",\\"https://www.w3.org/ns/activitystreams#Page\\",\\"https://www.w3.org/ns/activitystreams#Video\\",\\"https://www.w3.org/ns/activitystreams#Event\\",\\"https://www.w3.org/ns/activitystreams#Group\\",\\"https://www.w3.org/ns/activitystreams#Note\\",\\"https://www.w3.org/ns/activitystreams#Organization\\",\\"https://www.w3.org/ns/activitystreams#Person\\",\\"https://www.w3.org/ns/activitystreams#Place\\",\\"https://www.w3.org/ns/activitystreams#Profile\\",\\"https://www.w3.org/ns/activitystreams#Relationship\\",\\"https://www.w3.org/ns/activitystreams#Service\\",\\"https://www.w3.org/ns/activitystreams#Tombstone\\"].some( t => v[\\"@type\\"].includes(t)) ? await Object.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& [\\"https://www.w3.org/ns/activitystreams#Link\\",\\"https://www.w3.org/ns/activitystreams#Hashtag\\",\\"https://www.w3.org/ns/activitystreams#Mention\\"].some( t => v[\\"@type\\"].includes(t)) ? await Link.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -46733,7 +46389,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _4TB9Qd9ddtcZEpMfzbHhzafE6jaJ_likesOf.push(decoded); @@ -46766,7 +46422,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _3manzgeKiPsugpztKGiaUUwJ3ito_sharesOf.push(decoded); @@ -46799,7 +46455,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _3T3oGm3twpcQUcrnMisXQtmDZ32X_repliesOf.push(decoded); @@ -46832,7 +46488,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _2bvRkAFZjMfVD8jiUWZJr5YokSeN_inboxOf.push(decoded); @@ -46865,7 +46521,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _4AHzVZDxHjK6uEWa9UiKHGK34yYm_outboxOf.push(decoded); @@ -46898,7 +46554,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _41aoZ5M6yRUHy3Zx8q6iuZQxtopb_followersOf.push(decoded); @@ -46931,7 +46587,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _2nXT2Ah42UjEEQF5oJQ39CbKB1xj_followingOf.push(decoded); @@ -46964,7 +46620,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _2bsySzmT3qEZcrnoe3tZ5xBjXSju_likedOf.push(decoded); @@ -47644,11 +47300,9 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu \\"partOf\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#partOf_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#partOf_fromJsonLd(doc, options); + } } @@ -47862,11 +47516,9 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu \\"next\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#next_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#next_fromJsonLd(doc, options); + } } @@ -48081,11 +47733,9 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu \\"prev\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#prev_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#prev_fromJsonLd(doc, options); + } } @@ -48397,14 +48047,9 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - const _resolvedUrl = - values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) - ? new URL(values[\\"@id\\"], options.baseUrl) - : undefined; - if (options.baseUrl == null && _resolvedUrl != null) { - options = { ...options, baseUrl: _resolvedUrl }; + if (options.baseUrl == null && values[\\"@id\\"] != null) { + options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } - const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -48457,7 +48102,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _2kWgBhQKjEauxx8C6qF3ZQamK4Le_partOf.push(decoded); @@ -48490,7 +48135,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await CollectionPage.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _3BT4kQLcXhHx7TAWaNDKh8nFn9eY_next.push(decoded); @@ -48523,7 +48168,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await CollectionPage.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _3b8yG8tDNzQFFEnWhCc13G8eHooA_prev.push(decoded); @@ -48897,14 +48542,9 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - const _resolvedUrl = - values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) - ? new URL(values[\\"@id\\"], options.baseUrl) - : undefined; - if (options.baseUrl == null && _resolvedUrl != null) { - options = { ...options, baseUrl: _resolvedUrl }; + if (options.baseUrl == null && values[\\"@id\\"] != null) { + options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } - const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -49236,14 +48876,9 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - const _resolvedUrl = - values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) - ? new URL(values[\\"@id\\"], options.baseUrl) - : undefined; - if (options.baseUrl == null && _resolvedUrl != null) { - options = { ...options, baseUrl: _resolvedUrl }; + if (options.baseUrl == null && values[\\"@id\\"] != null) { + options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } - const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -49573,14 +49208,9 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - const _resolvedUrl = - values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) - ? new URL(values[\\"@id\\"], options.baseUrl) - : undefined; - if (options.baseUrl == null && _resolvedUrl != null) { - options = { ...options, baseUrl: _resolvedUrl }; + if (options.baseUrl == null && values[\\"@id\\"] != null) { + options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } - const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -50372,14 +50002,9 @@ proxyUrl?: URL | null;oauthAuthorizationEndpoint?: URL | null;oauthTokenEndpoint // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - const _resolvedUrl = - values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) - ? new URL(values[\\"@id\\"], options.baseUrl) - : undefined; - if (options.baseUrl == null && _resolvedUrl != null) { - options = { ...options, baseUrl: _resolvedUrl }; + if (options.baseUrl == null && values[\\"@id\\"] != null) { + options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } - const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -50422,9 +50047,9 @@ proxyUrl?: URL | null;oauthAuthorizationEndpoint?: URL | null;oauthTokenEndpoint : \\"\\" ) ) - : URL.canParse(v[\\"@id\\"]) && _baseUrl + : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) ? new URL(v[\\"@id\\"]) - : new URL(v[\\"@id\\"], _baseUrl); + : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"]))); if (typeof decoded === \\"undefined\\") continue; _2JCYDbSxEHCCLdBYed33cCETfGyR_proxyUrl.push(decoded); } @@ -50455,9 +50080,9 @@ proxyUrl?: URL | null;oauthAuthorizationEndpoint?: URL | null;oauthTokenEndpoint : \\"\\" ) ) - : URL.canParse(v[\\"@id\\"]) && _baseUrl + : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) ? new URL(v[\\"@id\\"]) - : new URL(v[\\"@id\\"], _baseUrl); + : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"]))); if (typeof decoded === \\"undefined\\") continue; _25S6UmgzDead8hxL5sQFezZTAusd_oauthAuthorizationEndpoint.push(decoded); } @@ -50488,9 +50113,9 @@ proxyUrl?: URL | null;oauthAuthorizationEndpoint?: URL | null;oauthTokenEndpoint : \\"\\" ) ) - : URL.canParse(v[\\"@id\\"]) && _baseUrl + : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) ? new URL(v[\\"@id\\"]) - : new URL(v[\\"@id\\"], _baseUrl); + : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"]))); if (typeof decoded === \\"undefined\\") continue; _iAMxqrSba7yBCRB1FZ5kEVdKEZ3_oauthTokenEndpoint.push(decoded); } @@ -50521,9 +50146,9 @@ proxyUrl?: URL | null;oauthAuthorizationEndpoint?: URL | null;oauthTokenEndpoint : \\"\\" ) ) - : URL.canParse(v[\\"@id\\"]) && _baseUrl + : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) ? new URL(v[\\"@id\\"]) - : new URL(v[\\"@id\\"], _baseUrl); + : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"]))); if (typeof decoded === \\"undefined\\") continue; _8Bx9qN8oU7Bpt2xi6khaxWp1gMr_provideClientKey.push(decoded); } @@ -50554,9 +50179,9 @@ proxyUrl?: URL | null;oauthAuthorizationEndpoint?: URL | null;oauthTokenEndpoint : \\"\\" ) ) - : URL.canParse(v[\\"@id\\"]) && _baseUrl + : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) ? new URL(v[\\"@id\\"]) - : new URL(v[\\"@id\\"], _baseUrl); + : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"]))); if (typeof decoded === \\"undefined\\") continue; _3dU7PMVQZJpsCpo2F4RQXxBXdPmS_signClientKey.push(decoded); } @@ -50587,9 +50212,9 @@ proxyUrl?: URL | null;oauthAuthorizationEndpoint?: URL | null;oauthTokenEndpoint : \\"\\" ) ) - : URL.canParse(v[\\"@id\\"]) && _baseUrl + : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) ? new URL(v[\\"@id\\"]) - : new URL(v[\\"@id\\"], _baseUrl); + : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"]))); if (typeof decoded === \\"undefined\\") continue; _3JprUSDLVqqX4dwHRi37qGZZCRCc_sharedInbox.push(decoded); } @@ -51042,14 +50667,9 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - const _resolvedUrl = - values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) - ? new URL(values[\\"@id\\"], options.baseUrl) - : undefined; - if (options.baseUrl == null && _resolvedUrl != null) { - options = { ...options, baseUrl: _resolvedUrl }; + if (options.baseUrl == null && values[\\"@id\\"] != null) { + options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } - const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -51382,14 +51002,9 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - const _resolvedUrl = - values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) - ? new URL(values[\\"@id\\"], options.baseUrl) - : undefined; - if (options.baseUrl == null && _resolvedUrl != null) { - options = { ...options, baseUrl: _resolvedUrl }; + if (options.baseUrl == null && values[\\"@id\\"] != null) { + options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } - const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -51723,14 +51338,9 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - const _resolvedUrl = - values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) - ? new URL(values[\\"@id\\"], options.baseUrl) - : undefined; - if (options.baseUrl == null && _resolvedUrl != null) { - options = { ...options, baseUrl: _resolvedUrl }; + if (options.baseUrl == null && values[\\"@id\\"] != null) { + options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } - const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -53004,11 +52614,9 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"publicKey\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#publicKey_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#publicKey_fromJsonLd(doc, options); + } } @@ -53101,11 +52709,9 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"publicKey\\"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) { - v = await this.#publicKey_fromJsonLd(obj, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#publicKey_fromJsonLd(obj, options); + } } @@ -53324,11 +52930,9 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"assertionMethod\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#assertionMethod_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#assertionMethod_fromJsonLd(doc, options); + } } @@ -53425,11 +53029,9 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"assertionMethod\\"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) { - v = await this.#assertionMethod_fromJsonLd(obj, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#assertionMethod_fromJsonLd(obj, options); + } } @@ -53685,11 +53287,9 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"inbox\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#inbox_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#inbox_fromJsonLd(doc, options); + } } @@ -53922,11 +53522,9 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"outbox\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#outbox_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#outbox_fromJsonLd(doc, options); + } } @@ -54145,11 +53743,9 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"following\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#following_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#following_fromJsonLd(doc, options); + } } @@ -54371,11 +53967,9 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"followers\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#followers_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#followers_fromJsonLd(doc, options); + } } @@ -54595,11 +54189,9 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"liked\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#liked_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#liked_fromJsonLd(doc, options); + } } @@ -54817,11 +54409,9 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"featured\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#featured_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#featured_fromJsonLd(doc, options); + } } @@ -55039,11 +54629,9 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"featuredTags\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#featuredTags_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#featuredTags_fromJsonLd(doc, options); + } } @@ -55259,11 +54847,9 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"streams\\"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) { - v = await this.#stream_fromJsonLd(obj, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#stream_fromJsonLd(obj, options); + } } @@ -55589,11 +55175,9 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"movedTo\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#successor_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#successor_fromJsonLd(doc, options); + } } @@ -55847,11 +55431,9 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"alsoKnownAs\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#alias_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#alias_fromJsonLd(doc, options); + } } @@ -55948,11 +55530,9 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"alsoKnownAs\\"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) { - v = await this.#alias_fromJsonLd(obj, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#alias_fromJsonLd(obj, options); + } } @@ -56171,11 +55751,9 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"service\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#service_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#service_fromJsonLd(doc, options); + } } @@ -56272,11 +55850,9 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"service\\"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) { - v = await this.#service_fromJsonLd(obj, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#service_fromJsonLd(obj, options); + } } @@ -57309,14 +56885,9 @@ get preferredUsernames(): ((string | LanguageString))[] { // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - const _resolvedUrl = - values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) - ? new URL(values[\\"@id\\"], options.baseUrl) - : undefined; - if (options.baseUrl == null && _resolvedUrl != null) { - options = { ...options, baseUrl: _resolvedUrl }; + if (options.baseUrl == null && values[\\"@id\\"] != null) { + options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } - const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -57389,7 +56960,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await CryptographicKey.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _axq166E2eZADq34V4MYUc8KMZdC_publicKey.push(decoded); @@ -57422,7 +56993,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Multikey.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.push(decoded); @@ -57475,11 +57046,11 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#OrderedCollection\\") ? await OrderedCollection.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#OrderedCollectionPage\\") ? await OrderedCollectionPage.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -57516,11 +57087,11 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#OrderedCollection\\") ? await OrderedCollection.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#OrderedCollectionPage\\") ? await OrderedCollectionPage.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -57555,7 +57126,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _3yAv8jymNfNuJUDuBzJ1NQhdbAee_following.push(decoded); @@ -57588,7 +57159,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _BBCTgfphhsFzpVfKTykGSpBNwoA_followers.push(decoded); @@ -57621,7 +57192,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _3bgkPwJanyTCoVFM9ovRcus8tKkU_liked.push(decoded); @@ -57654,7 +57225,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _4N1vBJzXDf8NbBumeECQMFvKetja_featured.push(decoded); @@ -57687,7 +57258,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags.push(decoded); @@ -57720,7 +57291,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.push(decoded); @@ -57741,7 +57312,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Endpoints.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints.push(decoded); @@ -57848,23 +57419,23 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Application\\") ? await Application.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Group\\") ? await Group.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Organization\\") ? await Organization.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Person\\") ? await Person.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Service\\") ? await Service.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -57901,23 +57472,23 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Application\\") ? await Application.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Group\\") ? await Group.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Organization\\") ? await Organization.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Person\\") ? await Person.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Service\\") ? await Service.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -57952,7 +57523,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await DidService.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.push(decoded); @@ -59289,11 +58860,9 @@ get names(): ((string | LanguageString))[] { \\"preview\\"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) { - v = await this.#preview_fromJsonLd(obj, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#preview_fromJsonLd(obj, options); + } } @@ -59747,14 +59316,9 @@ get names(): ((string | LanguageString))[] { // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - const _resolvedUrl = - values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) - ? new URL(values[\\"@id\\"], options.baseUrl) - : undefined; - if (options.baseUrl == null && _resolvedUrl != null) { - options = { ...options, baseUrl: _resolvedUrl }; + if (options.baseUrl == null && values[\\"@id\\"] != null) { + options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } - const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -59805,9 +59369,9 @@ get names(): ((string | LanguageString))[] { : \\"\\" ) ) - : URL.canParse(v[\\"@id\\"]) && _baseUrl + : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) ? new URL(v[\\"@id\\"]) - : new URL(v[\\"@id\\"], _baseUrl); + : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"]))); if (typeof decoded === \\"undefined\\") continue; _pVjLsybKQdmkjuU7MHjiVmNnuj7_href.push(decoded); } @@ -59956,12 +59520,12 @@ get names(): ((string | LanguageString))[] { && Array.isArray(v[\\"@type\\"])&& [\\"https://www.w3.org/ns/activitystreams#Link\\",\\"https://www.w3.org/ns/activitystreams#Hashtag\\",\\"https://www.w3.org/ns/activitystreams#Mention\\"].some( t => v[\\"@type\\"].includes(t)) ? await Link.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& [\\"https://www.w3.org/ns/activitystreams#Object\\",\\"http://joinmastodon.org/ns#Emoji\\",\\"http://litepub.social/ns#ChatMessage\\",\\"https://gotosocial.org/ns#AnnounceAuthorization\\",\\"https://gotosocial.org/ns#LikeApproval\\",\\"https://gotosocial.org/ns#ReplyAuthorization\\",\\"https://w3id.org/fep/044f#QuoteAuthorization\\",\\"https://w3id.org/valueflows/ont/vf#Proposal\\",\\"https://www.w3.org/ns/activitystreams#Activity\\",\\"http://litepub.social/ns#EmojiReact\\",\\"https://gotosocial.org/ns#AnnounceRequest\\",\\"https://gotosocial.org/ns#LikeRequest\\",\\"https://gotosocial.org/ns#ReplyRequest\\",\\"https://w3id.org/fep/044f#QuoteRequest\\",\\"https://www.w3.org/ns/activitystreams#Accept\\",\\"https://www.w3.org/ns/activitystreams#TentativeAccept\\",\\"https://www.w3.org/ns/activitystreams#Add\\",\\"https://www.w3.org/ns/activitystreams#Announce\\",\\"https://www.w3.org/ns/activitystreams#Create\\",\\"https://www.w3.org/ns/activitystreams#Delete\\",\\"https://www.w3.org/ns/activitystreams#Dislike\\",\\"https://www.w3.org/ns/activitystreams#Flag\\",\\"https://www.w3.org/ns/activitystreams#Follow\\",\\"https://www.w3.org/ns/activitystreams#Ignore\\",\\"https://www.w3.org/ns/activitystreams#Block\\",\\"https://www.w3.org/ns/activitystreams#IntransitiveActivity\\",\\"https://www.w3.org/ns/activitystreams#Arrive\\",\\"https://www.w3.org/ns/activitystreams#Question\\",\\"https://www.w3.org/ns/activitystreams#Travel\\",\\"https://www.w3.org/ns/activitystreams#Join\\",\\"https://www.w3.org/ns/activitystreams#Leave\\",\\"https://www.w3.org/ns/activitystreams#Like\\",\\"https://www.w3.org/ns/activitystreams#Listen\\",\\"https://www.w3.org/ns/activitystreams#Move\\",\\"https://www.w3.org/ns/activitystreams#Offer\\",\\"https://www.w3.org/ns/activitystreams#Invite\\",\\"https://www.w3.org/ns/activitystreams#Read\\",\\"https://www.w3.org/ns/activitystreams#Reject\\",\\"https://www.w3.org/ns/activitystreams#TentativeReject\\",\\"https://www.w3.org/ns/activitystreams#Remove\\",\\"https://www.w3.org/ns/activitystreams#Undo\\",\\"https://www.w3.org/ns/activitystreams#Update\\",\\"https://www.w3.org/ns/activitystreams#View\\",\\"https://www.w3.org/ns/activitystreams#Application\\",\\"https://www.w3.org/ns/activitystreams#Article\\",\\"https://www.w3.org/ns/activitystreams#Collection\\",\\"https://www.w3.org/ns/activitystreams#CollectionPage\\",\\"https://www.w3.org/ns/activitystreams#OrderedCollectionPage\\",\\"https://www.w3.org/ns/activitystreams#OrderedCollection\\",\\"https://www.w3.org/ns/activitystreams#Document\\",\\"https://www.w3.org/ns/activitystreams#Audio\\",\\"https://www.w3.org/ns/activitystreams#Image\\",\\"https://www.w3.org/ns/activitystreams#Page\\",\\"https://www.w3.org/ns/activitystreams#Video\\",\\"https://www.w3.org/ns/activitystreams#Event\\",\\"https://www.w3.org/ns/activitystreams#Group\\",\\"https://www.w3.org/ns/activitystreams#Note\\",\\"https://www.w3.org/ns/activitystreams#Organization\\",\\"https://www.w3.org/ns/activitystreams#Person\\",\\"https://www.w3.org/ns/activitystreams#Place\\",\\"https://www.w3.org/ns/activitystreams#Profile\\",\\"https://www.w3.org/ns/activitystreams#Relationship\\",\\"https://www.w3.org/ns/activitystreams#Service\\",\\"https://www.w3.org/ns/activitystreams#Tombstone\\"].some( t => v[\\"@type\\"].includes(t)) ? await Object.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -60435,14 +59999,9 @@ names?: ((string | LanguageString))[];language?: Intl.Locale | null;height?: num // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - const _resolvedUrl = - values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) - ? new URL(values[\\"@id\\"], options.baseUrl) - : undefined; - if (options.baseUrl == null && _resolvedUrl != null) { - options = { ...options, baseUrl: _resolvedUrl }; + if (options.baseUrl == null && values[\\"@id\\"] != null) { + options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } - const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -60777,14 +60336,9 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - const _resolvedUrl = - values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) - ? new URL(values[\\"@id\\"], options.baseUrl) - : undefined; - if (options.baseUrl == null && _resolvedUrl != null) { - options = { ...options, baseUrl: _resolvedUrl }; + if (options.baseUrl == null && values[\\"@id\\"] != null) { + options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } - const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -61117,14 +60671,9 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - const _resolvedUrl = - values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) - ? new URL(values[\\"@id\\"], options.baseUrl) - : undefined; - if (options.baseUrl == null && _resolvedUrl != null) { - options = { ...options, baseUrl: _resolvedUrl }; + if (options.baseUrl == null && values[\\"@id\\"] != null) { + options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } - const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -61460,14 +61009,9 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - const _resolvedUrl = - values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) - ? new URL(values[\\"@id\\"], options.baseUrl) - : undefined; - if (options.baseUrl == null && _resolvedUrl != null) { - options = { ...options, baseUrl: _resolvedUrl }; + if (options.baseUrl == null && values[\\"@id\\"] != null) { + options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } - const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -61799,14 +61343,9 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - const _resolvedUrl = - values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) - ? new URL(values[\\"@id\\"], options.baseUrl) - : undefined; - if (options.baseUrl == null && _resolvedUrl != null) { - options = { ...options, baseUrl: _resolvedUrl }; + if (options.baseUrl == null && values[\\"@id\\"] != null) { + options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } - const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -62138,14 +61677,9 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - const _resolvedUrl = - values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) - ? new URL(values[\\"@id\\"], options.baseUrl) - : undefined; - if (options.baseUrl == null && _resolvedUrl != null) { - options = { ...options, baseUrl: _resolvedUrl }; + if (options.baseUrl == null && values[\\"@id\\"] != null) { + options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } - const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -62477,14 +62011,9 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - const _resolvedUrl = - values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) - ? new URL(values[\\"@id\\"], options.baseUrl) - : undefined; - if (options.baseUrl == null && _resolvedUrl != null) { - options = { ...options, baseUrl: _resolvedUrl }; + if (options.baseUrl == null && values[\\"@id\\"] != null) { + options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } - const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -62814,14 +62343,9 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - const _resolvedUrl = - values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) - ? new URL(values[\\"@id\\"], options.baseUrl) - : undefined; - if (options.baseUrl == null && _resolvedUrl != null) { - options = { ...options, baseUrl: _resolvedUrl }; + if (options.baseUrl == null && values[\\"@id\\"] != null) { + options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } - const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -63117,14 +62641,9 @@ names?: ((string | LanguageString))[];language?: Intl.Locale | null;height?: num // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - const _resolvedUrl = - values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) - ? new URL(values[\\"@id\\"], options.baseUrl) - : undefined; - if (options.baseUrl == null && _resolvedUrl != null) { - options = { ...options, baseUrl: _resolvedUrl }; + if (options.baseUrl == null && values[\\"@id\\"] != null) { + options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } - const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -63457,14 +62976,9 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - const _resolvedUrl = - values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) - ? new URL(values[\\"@id\\"], options.baseUrl) - : undefined; - if (options.baseUrl == null && _resolvedUrl != null) { - options = { ...options, baseUrl: _resolvedUrl }; + if (options.baseUrl == null && values[\\"@id\\"] != null) { + options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } - const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -63896,11 +63410,9 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu \\"quote\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#quote_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#quote_fromJsonLd(doc, options); + } } @@ -64139,11 +63651,9 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu \\"quoteAuthorization\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#quoteAuthorization_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#quoteAuthorization_fromJsonLd(doc, options); + } } @@ -64465,14 +63975,9 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - const _resolvedUrl = - values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) - ? new URL(values[\\"@id\\"], options.baseUrl) - : undefined; - if (options.baseUrl == null && _resolvedUrl != null) { - options = { ...options, baseUrl: _resolvedUrl }; + if (options.baseUrl == null && values[\\"@id\\"] != null) { + options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } - const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -64521,7 +64026,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote.push(decoded); @@ -64580,7 +64085,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await QuoteAuthorization.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization.push(decoded); @@ -65022,11 +64527,9 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu \\"orderedItems\\"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) { - v = await this.#item_fromJsonLd(obj, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#item_fromJsonLd(obj, options); + } } @@ -65270,14 +64773,9 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - const _resolvedUrl = - values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) - ? new URL(values[\\"@id\\"], options.baseUrl) - : undefined; - if (options.baseUrl == null && _resolvedUrl != null) { - options = { ...options, baseUrl: _resolvedUrl }; + if (options.baseUrl == null && values[\\"@id\\"] != null) { + options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } - const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -65329,12 +64827,12 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu && Array.isArray(v[\\"@type\\"])&& [\\"https://www.w3.org/ns/activitystreams#Object\\",\\"http://joinmastodon.org/ns#Emoji\\",\\"http://litepub.social/ns#ChatMessage\\",\\"https://gotosocial.org/ns#AnnounceAuthorization\\",\\"https://gotosocial.org/ns#LikeApproval\\",\\"https://gotosocial.org/ns#ReplyAuthorization\\",\\"https://w3id.org/fep/044f#QuoteAuthorization\\",\\"https://w3id.org/valueflows/ont/vf#Proposal\\",\\"https://www.w3.org/ns/activitystreams#Activity\\",\\"http://litepub.social/ns#EmojiReact\\",\\"https://gotosocial.org/ns#AnnounceRequest\\",\\"https://gotosocial.org/ns#LikeRequest\\",\\"https://gotosocial.org/ns#ReplyRequest\\",\\"https://w3id.org/fep/044f#QuoteRequest\\",\\"https://www.w3.org/ns/activitystreams#Accept\\",\\"https://www.w3.org/ns/activitystreams#TentativeAccept\\",\\"https://www.w3.org/ns/activitystreams#Add\\",\\"https://www.w3.org/ns/activitystreams#Announce\\",\\"https://www.w3.org/ns/activitystreams#Create\\",\\"https://www.w3.org/ns/activitystreams#Delete\\",\\"https://www.w3.org/ns/activitystreams#Dislike\\",\\"https://www.w3.org/ns/activitystreams#Flag\\",\\"https://www.w3.org/ns/activitystreams#Follow\\",\\"https://www.w3.org/ns/activitystreams#Ignore\\",\\"https://www.w3.org/ns/activitystreams#Block\\",\\"https://www.w3.org/ns/activitystreams#IntransitiveActivity\\",\\"https://www.w3.org/ns/activitystreams#Arrive\\",\\"https://www.w3.org/ns/activitystreams#Question\\",\\"https://www.w3.org/ns/activitystreams#Travel\\",\\"https://www.w3.org/ns/activitystreams#Join\\",\\"https://www.w3.org/ns/activitystreams#Leave\\",\\"https://www.w3.org/ns/activitystreams#Like\\",\\"https://www.w3.org/ns/activitystreams#Listen\\",\\"https://www.w3.org/ns/activitystreams#Move\\",\\"https://www.w3.org/ns/activitystreams#Offer\\",\\"https://www.w3.org/ns/activitystreams#Invite\\",\\"https://www.w3.org/ns/activitystreams#Read\\",\\"https://www.w3.org/ns/activitystreams#Reject\\",\\"https://www.w3.org/ns/activitystreams#TentativeReject\\",\\"https://www.w3.org/ns/activitystreams#Remove\\",\\"https://www.w3.org/ns/activitystreams#Undo\\",\\"https://www.w3.org/ns/activitystreams#Update\\",\\"https://www.w3.org/ns/activitystreams#View\\",\\"https://www.w3.org/ns/activitystreams#Application\\",\\"https://www.w3.org/ns/activitystreams#Article\\",\\"https://www.w3.org/ns/activitystreams#Collection\\",\\"https://www.w3.org/ns/activitystreams#CollectionPage\\",\\"https://www.w3.org/ns/activitystreams#OrderedCollectionPage\\",\\"https://www.w3.org/ns/activitystreams#OrderedCollection\\",\\"https://www.w3.org/ns/activitystreams#Document\\",\\"https://www.w3.org/ns/activitystreams#Audio\\",\\"https://www.w3.org/ns/activitystreams#Image\\",\\"https://www.w3.org/ns/activitystreams#Page\\",\\"https://www.w3.org/ns/activitystreams#Video\\",\\"https://www.w3.org/ns/activitystreams#Event\\",\\"https://www.w3.org/ns/activitystreams#Group\\",\\"https://www.w3.org/ns/activitystreams#Note\\",\\"https://www.w3.org/ns/activitystreams#Organization\\",\\"https://www.w3.org/ns/activitystreams#Person\\",\\"https://www.w3.org/ns/activitystreams#Place\\",\\"https://www.w3.org/ns/activitystreams#Profile\\",\\"https://www.w3.org/ns/activitystreams#Relationship\\",\\"https://www.w3.org/ns/activitystreams#Service\\",\\"https://www.w3.org/ns/activitystreams#Tombstone\\"].some( t => v[\\"@type\\"].includes(t)) ? await Object.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& [\\"https://www.w3.org/ns/activitystreams#Link\\",\\"https://www.w3.org/ns/activitystreams#Hashtag\\",\\"https://www.w3.org/ns/activitystreams#Mention\\"].some( t => v[\\"@type\\"].includes(t)) ? await Link.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -65768,11 +65266,9 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu \\"orderedItems\\"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) { - v = await this.#item_fromJsonLd(obj, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#item_fromJsonLd(obj, options); + } } @@ -66065,14 +65561,9 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - const _resolvedUrl = - values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) - ? new URL(values[\\"@id\\"], options.baseUrl) - : undefined; - if (options.baseUrl == null && _resolvedUrl != null) { - options = { ...options, baseUrl: _resolvedUrl }; + if (options.baseUrl == null && values[\\"@id\\"] != null) { + options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } - const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -66124,12 +65615,12 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu && Array.isArray(v[\\"@type\\"])&& [\\"https://www.w3.org/ns/activitystreams#Object\\",\\"http://joinmastodon.org/ns#Emoji\\",\\"http://litepub.social/ns#ChatMessage\\",\\"https://gotosocial.org/ns#AnnounceAuthorization\\",\\"https://gotosocial.org/ns#LikeApproval\\",\\"https://gotosocial.org/ns#ReplyAuthorization\\",\\"https://w3id.org/fep/044f#QuoteAuthorization\\",\\"https://w3id.org/valueflows/ont/vf#Proposal\\",\\"https://www.w3.org/ns/activitystreams#Activity\\",\\"http://litepub.social/ns#EmojiReact\\",\\"https://gotosocial.org/ns#AnnounceRequest\\",\\"https://gotosocial.org/ns#LikeRequest\\",\\"https://gotosocial.org/ns#ReplyRequest\\",\\"https://w3id.org/fep/044f#QuoteRequest\\",\\"https://www.w3.org/ns/activitystreams#Accept\\",\\"https://www.w3.org/ns/activitystreams#TentativeAccept\\",\\"https://www.w3.org/ns/activitystreams#Add\\",\\"https://www.w3.org/ns/activitystreams#Announce\\",\\"https://www.w3.org/ns/activitystreams#Create\\",\\"https://www.w3.org/ns/activitystreams#Delete\\",\\"https://www.w3.org/ns/activitystreams#Dislike\\",\\"https://www.w3.org/ns/activitystreams#Flag\\",\\"https://www.w3.org/ns/activitystreams#Follow\\",\\"https://www.w3.org/ns/activitystreams#Ignore\\",\\"https://www.w3.org/ns/activitystreams#Block\\",\\"https://www.w3.org/ns/activitystreams#IntransitiveActivity\\",\\"https://www.w3.org/ns/activitystreams#Arrive\\",\\"https://www.w3.org/ns/activitystreams#Question\\",\\"https://www.w3.org/ns/activitystreams#Travel\\",\\"https://www.w3.org/ns/activitystreams#Join\\",\\"https://www.w3.org/ns/activitystreams#Leave\\",\\"https://www.w3.org/ns/activitystreams#Like\\",\\"https://www.w3.org/ns/activitystreams#Listen\\",\\"https://www.w3.org/ns/activitystreams#Move\\",\\"https://www.w3.org/ns/activitystreams#Offer\\",\\"https://www.w3.org/ns/activitystreams#Invite\\",\\"https://www.w3.org/ns/activitystreams#Read\\",\\"https://www.w3.org/ns/activitystreams#Reject\\",\\"https://www.w3.org/ns/activitystreams#TentativeReject\\",\\"https://www.w3.org/ns/activitystreams#Remove\\",\\"https://www.w3.org/ns/activitystreams#Undo\\",\\"https://www.w3.org/ns/activitystreams#Update\\",\\"https://www.w3.org/ns/activitystreams#View\\",\\"https://www.w3.org/ns/activitystreams#Application\\",\\"https://www.w3.org/ns/activitystreams#Article\\",\\"https://www.w3.org/ns/activitystreams#Collection\\",\\"https://www.w3.org/ns/activitystreams#CollectionPage\\",\\"https://www.w3.org/ns/activitystreams#OrderedCollectionPage\\",\\"https://www.w3.org/ns/activitystreams#OrderedCollection\\",\\"https://www.w3.org/ns/activitystreams#Document\\",\\"https://www.w3.org/ns/activitystreams#Audio\\",\\"https://www.w3.org/ns/activitystreams#Image\\",\\"https://www.w3.org/ns/activitystreams#Page\\",\\"https://www.w3.org/ns/activitystreams#Video\\",\\"https://www.w3.org/ns/activitystreams#Event\\",\\"https://www.w3.org/ns/activitystreams#Group\\",\\"https://www.w3.org/ns/activitystreams#Note\\",\\"https://www.w3.org/ns/activitystreams#Organization\\",\\"https://www.w3.org/ns/activitystreams#Person\\",\\"https://www.w3.org/ns/activitystreams#Place\\",\\"https://www.w3.org/ns/activitystreams#Profile\\",\\"https://www.w3.org/ns/activitystreams#Relationship\\",\\"https://www.w3.org/ns/activitystreams#Service\\",\\"https://www.w3.org/ns/activitystreams#Tombstone\\"].some( t => v[\\"@type\\"].includes(t)) ? await Object.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& [\\"https://www.w3.org/ns/activitystreams#Link\\",\\"https://www.w3.org/ns/activitystreams#Hashtag\\",\\"https://www.w3.org/ns/activitystreams#Mention\\"].some( t => v[\\"@type\\"].includes(t)) ? await Link.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -67449,11 +66940,9 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"publicKey\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#publicKey_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#publicKey_fromJsonLd(doc, options); + } } @@ -67546,11 +67035,9 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"publicKey\\"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) { - v = await this.#publicKey_fromJsonLd(obj, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#publicKey_fromJsonLd(obj, options); + } } @@ -67769,11 +67256,9 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"assertionMethod\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#assertionMethod_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#assertionMethod_fromJsonLd(doc, options); + } } @@ -67870,11 +67355,9 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"assertionMethod\\"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) { - v = await this.#assertionMethod_fromJsonLd(obj, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#assertionMethod_fromJsonLd(obj, options); + } } @@ -68130,11 +67613,9 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"inbox\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#inbox_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#inbox_fromJsonLd(doc, options); + } } @@ -68367,11 +67848,9 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"outbox\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#outbox_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#outbox_fromJsonLd(doc, options); + } } @@ -68590,11 +68069,9 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"following\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#following_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#following_fromJsonLd(doc, options); + } } @@ -68816,11 +68293,9 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"followers\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#followers_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#followers_fromJsonLd(doc, options); + } } @@ -69040,11 +68515,9 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"liked\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#liked_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#liked_fromJsonLd(doc, options); + } } @@ -69262,11 +68735,9 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"featured\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#featured_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#featured_fromJsonLd(doc, options); + } } @@ -69484,11 +68955,9 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"featuredTags\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#featuredTags_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#featuredTags_fromJsonLd(doc, options); + } } @@ -69704,11 +69173,9 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"streams\\"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) { - v = await this.#stream_fromJsonLd(obj, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#stream_fromJsonLd(obj, options); + } } @@ -70034,11 +69501,9 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"movedTo\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#successor_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#successor_fromJsonLd(doc, options); + } } @@ -70292,11 +69757,9 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"alsoKnownAs\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#alias_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#alias_fromJsonLd(doc, options); + } } @@ -70393,11 +69856,9 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"alsoKnownAs\\"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) { - v = await this.#alias_fromJsonLd(obj, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#alias_fromJsonLd(obj, options); + } } @@ -70616,11 +70077,9 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"service\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#service_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#service_fromJsonLd(doc, options); + } } @@ -70717,11 +70176,9 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"service\\"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) { - v = await this.#service_fromJsonLd(obj, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#service_fromJsonLd(obj, options); + } } @@ -71754,14 +71211,9 @@ get preferredUsernames(): ((string | LanguageString))[] { // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - const _resolvedUrl = - values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) - ? new URL(values[\\"@id\\"], options.baseUrl) - : undefined; - if (options.baseUrl == null && _resolvedUrl != null) { - options = { ...options, baseUrl: _resolvedUrl }; + if (options.baseUrl == null && values[\\"@id\\"] != null) { + options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } - const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -71834,7 +71286,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await CryptographicKey.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _axq166E2eZADq34V4MYUc8KMZdC_publicKey.push(decoded); @@ -71867,7 +71319,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Multikey.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.push(decoded); @@ -71920,11 +71372,11 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#OrderedCollection\\") ? await OrderedCollection.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#OrderedCollectionPage\\") ? await OrderedCollectionPage.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -71961,11 +71413,11 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#OrderedCollection\\") ? await OrderedCollection.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#OrderedCollectionPage\\") ? await OrderedCollectionPage.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -72000,7 +71452,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _3yAv8jymNfNuJUDuBzJ1NQhdbAee_following.push(decoded); @@ -72033,7 +71485,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _BBCTgfphhsFzpVfKTykGSpBNwoA_followers.push(decoded); @@ -72066,7 +71518,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _3bgkPwJanyTCoVFM9ovRcus8tKkU_liked.push(decoded); @@ -72099,7 +71551,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _4N1vBJzXDf8NbBumeECQMFvKetja_featured.push(decoded); @@ -72132,7 +71584,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags.push(decoded); @@ -72165,7 +71617,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.push(decoded); @@ -72186,7 +71638,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Endpoints.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints.push(decoded); @@ -72293,23 +71745,23 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Application\\") ? await Application.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Group\\") ? await Group.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Organization\\") ? await Organization.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Person\\") ? await Person.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Service\\") ? await Service.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -72346,23 +71798,23 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Application\\") ? await Application.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Group\\") ? await Group.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Organization\\") ? await Organization.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Person\\") ? await Person.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Service\\") ? await Service.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -72397,7 +71849,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await DidService.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.push(decoded); @@ -73224,14 +72676,9 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - const _resolvedUrl = - values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) - ? new URL(values[\\"@id\\"], options.baseUrl) - : undefined; - if (options.baseUrl == null && _resolvedUrl != null) { - options = { ...options, baseUrl: _resolvedUrl }; + if (options.baseUrl == null && values[\\"@id\\"] != null) { + options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } - const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -74505,11 +73952,9 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"publicKey\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#publicKey_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#publicKey_fromJsonLd(doc, options); + } } @@ -74602,11 +74047,9 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"publicKey\\"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) { - v = await this.#publicKey_fromJsonLd(obj, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#publicKey_fromJsonLd(obj, options); + } } @@ -74825,11 +74268,9 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"assertionMethod\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#assertionMethod_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#assertionMethod_fromJsonLd(doc, options); + } } @@ -74926,11 +74367,9 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"assertionMethod\\"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) { - v = await this.#assertionMethod_fromJsonLd(obj, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#assertionMethod_fromJsonLd(obj, options); + } } @@ -75186,11 +74625,9 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"inbox\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#inbox_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#inbox_fromJsonLd(doc, options); + } } @@ -75423,11 +74860,9 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"outbox\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#outbox_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#outbox_fromJsonLd(doc, options); + } } @@ -75646,11 +75081,9 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"following\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#following_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#following_fromJsonLd(doc, options); + } } @@ -75872,11 +75305,9 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"followers\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#followers_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#followers_fromJsonLd(doc, options); + } } @@ -76096,11 +75527,9 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"liked\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#liked_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#liked_fromJsonLd(doc, options); + } } @@ -76318,11 +75747,9 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"featured\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#featured_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#featured_fromJsonLd(doc, options); + } } @@ -76540,11 +75967,9 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"featuredTags\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#featuredTags_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#featuredTags_fromJsonLd(doc, options); + } } @@ -76760,11 +76185,9 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"streams\\"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) { - v = await this.#stream_fromJsonLd(obj, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#stream_fromJsonLd(obj, options); + } } @@ -77090,11 +76513,9 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"movedTo\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#successor_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#successor_fromJsonLd(doc, options); + } } @@ -77348,11 +76769,9 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"alsoKnownAs\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#alias_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#alias_fromJsonLd(doc, options); + } } @@ -77449,11 +76868,9 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"alsoKnownAs\\"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) { - v = await this.#alias_fromJsonLd(obj, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#alias_fromJsonLd(obj, options); + } } @@ -77672,11 +77089,9 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"service\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#service_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#service_fromJsonLd(doc, options); + } } @@ -77773,11 +77188,9 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"service\\"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) { - v = await this.#service_fromJsonLd(obj, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#service_fromJsonLd(obj, options); + } } @@ -78810,14 +78223,9 @@ get preferredUsernames(): ((string | LanguageString))[] { // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - const _resolvedUrl = - values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) - ? new URL(values[\\"@id\\"], options.baseUrl) - : undefined; - if (options.baseUrl == null && _resolvedUrl != null) { - options = { ...options, baseUrl: _resolvedUrl }; + if (options.baseUrl == null && values[\\"@id\\"] != null) { + options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } - const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -78890,7 +78298,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await CryptographicKey.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _axq166E2eZADq34V4MYUc8KMZdC_publicKey.push(decoded); @@ -78923,7 +78331,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Multikey.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.push(decoded); @@ -78976,11 +78384,11 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#OrderedCollection\\") ? await OrderedCollection.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#OrderedCollectionPage\\") ? await OrderedCollectionPage.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -79017,11 +78425,11 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#OrderedCollection\\") ? await OrderedCollection.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#OrderedCollectionPage\\") ? await OrderedCollectionPage.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -79056,7 +78464,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _3yAv8jymNfNuJUDuBzJ1NQhdbAee_following.push(decoded); @@ -79089,7 +78497,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _BBCTgfphhsFzpVfKTykGSpBNwoA_followers.push(decoded); @@ -79122,7 +78530,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _3bgkPwJanyTCoVFM9ovRcus8tKkU_liked.push(decoded); @@ -79155,7 +78563,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _4N1vBJzXDf8NbBumeECQMFvKetja_featured.push(decoded); @@ -79188,7 +78596,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags.push(decoded); @@ -79221,7 +78629,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.push(decoded); @@ -79242,7 +78650,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Endpoints.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints.push(decoded); @@ -79349,23 +78757,23 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Application\\") ? await Application.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Group\\") ? await Group.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Organization\\") ? await Organization.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Person\\") ? await Person.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Service\\") ? await Service.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -79402,23 +78810,23 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Application\\") ? await Application.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Group\\") ? await Group.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Organization\\") ? await Organization.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Person\\") ? await Person.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Service\\") ? await Service.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -79453,7 +78861,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await DidService.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.push(decoded); @@ -80736,14 +80144,9 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - const _resolvedUrl = - values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) - ? new URL(values[\\"@id\\"], options.baseUrl) - : undefined; - if (options.baseUrl == null && _resolvedUrl != null) { - options = { ...options, baseUrl: _resolvedUrl }; + if (options.baseUrl == null && values[\\"@id\\"] != null) { + options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } - const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -80885,9 +80288,9 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu : \\"\\" ) ) - : URL.canParse(v[\\"@id\\"]) && _baseUrl + : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) ? new URL(v[\\"@id\\"]) - : new URL(v[\\"@id\\"], _baseUrl) : undefined + : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"]))) : undefined ; if (typeof decoded === \\"undefined\\") continue; _oKrwxU4V8wiKhMW1QEYQibcJh8c_units.push(decoded); @@ -81370,11 +80773,9 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu \\"describes\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#describes_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#describes_fromJsonLd(doc, options); + } } @@ -81616,14 +81017,9 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - const _resolvedUrl = - values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) - ? new URL(values[\\"@id\\"], options.baseUrl) - : undefined; - if (options.baseUrl == null && _resolvedUrl != null) { - options = { ...options, baseUrl: _resolvedUrl }; + if (options.baseUrl == null && values[\\"@id\\"] != null) { + options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } - const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -81672,7 +81068,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _3CLQ1PLSXrhSQbTGGHuxNyaEFKM1_describes.push(decoded); @@ -82265,11 +81661,9 @@ instruments?: (Object | URL)[];exclusiveOptions?: (Object | URL)[];inclusiveOpti \\"oneOf\\"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) { - v = await this.#exclusiveOption_fromJsonLd(obj, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#exclusiveOption_fromJsonLd(obj, options); + } } @@ -82488,11 +81882,9 @@ instruments?: (Object | URL)[];exclusiveOptions?: (Object | URL)[];inclusiveOpti \\"anyOf\\"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) { - v = await this.#inclusiveOption_fromJsonLd(obj, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#inclusiveOption_fromJsonLd(obj, options); + } } @@ -82740,11 +82132,9 @@ instruments?: (Object | URL)[];exclusiveOptions?: (Object | URL)[];inclusiveOpti \\"quote\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#quote_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#quote_fromJsonLd(doc, options); + } } @@ -82983,11 +82373,9 @@ instruments?: (Object | URL)[];exclusiveOptions?: (Object | URL)[];inclusiveOpti \\"quoteAuthorization\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#quoteAuthorization_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#quoteAuthorization_fromJsonLd(doc, options); + } } @@ -83292,14 +82680,9 @@ instruments?: (Object | URL)[];exclusiveOptions?: (Object | URL)[];inclusiveOpti // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - const _resolvedUrl = - values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) - ? new URL(values[\\"@id\\"], options.baseUrl) - : undefined; - if (options.baseUrl == null && _resolvedUrl != null) { - options = { ...options, baseUrl: _resolvedUrl }; + if (options.baseUrl == null && values[\\"@id\\"] != null) { + options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } - const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -83348,7 +82731,7 @@ instruments?: (Object | URL)[];exclusiveOptions?: (Object | URL)[];inclusiveOpti const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _2N5scKaVEcdYHFmfKYYacAwUhUgQ_oneOf.push(decoded); @@ -83381,7 +82764,7 @@ instruments?: (Object | URL)[];exclusiveOptions?: (Object | URL)[];inclusiveOpti const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _2mV6isMTPRKbWdLCjcpiEysq5dAY_anyOf.push(decoded); @@ -83463,7 +82846,7 @@ instruments?: (Object | URL)[];exclusiveOptions?: (Object | URL)[];inclusiveOpti const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote.push(decoded); @@ -83522,7 +82905,7 @@ instruments?: (Object | URL)[];exclusiveOptions?: (Object | URL)[];inclusiveOpti const decoded = await QuoteAuthorization.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization.push(decoded); @@ -83981,14 +83364,9 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - const _resolvedUrl = - values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) - ? new URL(values[\\"@id\\"], options.baseUrl) - : undefined; - if (options.baseUrl == null && _resolvedUrl != null) { - options = { ...options, baseUrl: _resolvedUrl }; + if (options.baseUrl == null && values[\\"@id\\"] != null) { + options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } - const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -84320,14 +83698,9 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - const _resolvedUrl = - values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) - ? new URL(values[\\"@id\\"], options.baseUrl) - : undefined; - if (options.baseUrl == null && _resolvedUrl != null) { - options = { ...options, baseUrl: _resolvedUrl }; + if (options.baseUrl == null && values[\\"@id\\"] != null) { + options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } - const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -84885,11 +84258,9 @@ relationships?: (Object | URL)[];} \\"subject\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#subject_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#subject_fromJsonLd(doc, options); + } } @@ -85104,11 +84475,9 @@ relationships?: (Object | URL)[];} \\"object\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#object_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#object_fromJsonLd(doc, options); + } } @@ -85202,11 +84571,9 @@ relationships?: (Object | URL)[];} \\"object\\"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) { - v = await this.#object_fromJsonLd(obj, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#object_fromJsonLd(obj, options); + } } @@ -85424,11 +84791,9 @@ relationships?: (Object | URL)[];} \\"relationship\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#relationship_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#relationship_fromJsonLd(doc, options); + } } @@ -85524,11 +84889,9 @@ relationships?: (Object | URL)[];} \\"relationship\\"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) { - v = await this.#relationship_fromJsonLd(obj, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#relationship_fromJsonLd(obj, options); + } } @@ -85841,14 +85204,9 @@ relationships?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - const _resolvedUrl = - values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) - ? new URL(values[\\"@id\\"], options.baseUrl) - : undefined; - if (options.baseUrl == null && _resolvedUrl != null) { - options = { ...options, baseUrl: _resolvedUrl }; + if (options.baseUrl == null && values[\\"@id\\"] != null) { + options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } - const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -85897,7 +85255,7 @@ relationships?: (Object | URL)[];} const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _2Zqdmi46ZnDQsECS6mzwhrv3rUKq_subject.push(decoded); @@ -85930,7 +85288,7 @@ relationships?: (Object | URL)[];} const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _2MH19yxjn1wnHsNfa5n4JBhJzxyc_object.push(decoded); @@ -85963,7 +85321,7 @@ relationships?: (Object | URL)[];} const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _4Lzz89F9qipAQSGkWyX9DGWiUojG_relationship.push(decoded); @@ -86351,14 +85709,9 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - const _resolvedUrl = - values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) - ? new URL(values[\\"@id\\"], options.baseUrl) - : undefined; - if (options.baseUrl == null && _resolvedUrl != null) { - options = { ...options, baseUrl: _resolvedUrl }; + if (options.baseUrl == null && values[\\"@id\\"] != null) { + options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } - const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -87632,11 +86985,9 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"publicKey\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#publicKey_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#publicKey_fromJsonLd(doc, options); + } } @@ -87729,11 +87080,9 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"publicKey\\"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) { - v = await this.#publicKey_fromJsonLd(obj, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#publicKey_fromJsonLd(obj, options); + } } @@ -87952,11 +87301,9 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"assertionMethod\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#assertionMethod_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#assertionMethod_fromJsonLd(doc, options); + } } @@ -88053,11 +87400,9 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"assertionMethod\\"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) { - v = await this.#assertionMethod_fromJsonLd(obj, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#assertionMethod_fromJsonLd(obj, options); + } } @@ -88313,11 +87658,9 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"inbox\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#inbox_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#inbox_fromJsonLd(doc, options); + } } @@ -88550,11 +87893,9 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"outbox\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#outbox_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#outbox_fromJsonLd(doc, options); + } } @@ -88773,11 +88114,9 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"following\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#following_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#following_fromJsonLd(doc, options); + } } @@ -88999,11 +88338,9 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"followers\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#followers_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#followers_fromJsonLd(doc, options); + } } @@ -89223,11 +88560,9 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"liked\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#liked_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#liked_fromJsonLd(doc, options); + } } @@ -89445,11 +88780,9 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"featured\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#featured_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#featured_fromJsonLd(doc, options); + } } @@ -89667,11 +89000,9 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"featuredTags\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#featuredTags_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#featuredTags_fromJsonLd(doc, options); + } } @@ -89887,11 +89218,9 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"streams\\"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) { - v = await this.#stream_fromJsonLd(obj, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#stream_fromJsonLd(obj, options); + } } @@ -90217,11 +89546,9 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"movedTo\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#successor_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#successor_fromJsonLd(doc, options); + } } @@ -90475,11 +89802,9 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"alsoKnownAs\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#alias_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#alias_fromJsonLd(doc, options); + } } @@ -90576,11 +89901,9 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"alsoKnownAs\\"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) { - v = await this.#alias_fromJsonLd(obj, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#alias_fromJsonLd(obj, options); + } } @@ -90799,11 +90122,9 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"service\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#service_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#service_fromJsonLd(doc, options); + } } @@ -90900,11 +90221,9 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"service\\"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) { - v = await this.#service_fromJsonLd(obj, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#service_fromJsonLd(obj, options); + } } @@ -91937,14 +91256,9 @@ get preferredUsernames(): ((string | LanguageString))[] { // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - const _resolvedUrl = - values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) - ? new URL(values[\\"@id\\"], options.baseUrl) - : undefined; - if (options.baseUrl == null && _resolvedUrl != null) { - options = { ...options, baseUrl: _resolvedUrl }; + if (options.baseUrl == null && values[\\"@id\\"] != null) { + options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } - const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -92017,7 +91331,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await CryptographicKey.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _axq166E2eZADq34V4MYUc8KMZdC_publicKey.push(decoded); @@ -92050,7 +91364,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Multikey.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.push(decoded); @@ -92103,11 +91417,11 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#OrderedCollection\\") ? await OrderedCollection.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#OrderedCollectionPage\\") ? await OrderedCollectionPage.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -92144,11 +91458,11 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#OrderedCollection\\") ? await OrderedCollection.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#OrderedCollectionPage\\") ? await OrderedCollectionPage.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -92183,7 +91497,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _3yAv8jymNfNuJUDuBzJ1NQhdbAee_following.push(decoded); @@ -92216,7 +91530,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _BBCTgfphhsFzpVfKTykGSpBNwoA_followers.push(decoded); @@ -92249,7 +91563,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _3bgkPwJanyTCoVFM9ovRcus8tKkU_liked.push(decoded); @@ -92282,7 +91596,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _4N1vBJzXDf8NbBumeECQMFvKetja_featured.push(decoded); @@ -92315,7 +91629,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags.push(decoded); @@ -92348,7 +91662,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.push(decoded); @@ -92369,7 +91683,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Endpoints.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints.push(decoded); @@ -92476,23 +91790,23 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Application\\") ? await Application.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Group\\") ? await Group.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Organization\\") ? await Organization.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Person\\") ? await Person.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Service\\") ? await Service.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -92529,23 +91843,23 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Application\\") ? await Application.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Group\\") ? await Group.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Organization\\") ? await Organization.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Person\\") ? await Person.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Service\\") ? await Service.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -92580,7 +91894,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await DidService.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.push(decoded); @@ -93616,14 +92930,9 @@ get contents(): ((string | LanguageString))[] { // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - const _resolvedUrl = - values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) - ? new URL(values[\\"@id\\"], options.baseUrl) - : undefined; - if (options.baseUrl == null && _resolvedUrl != null) { - options = { ...options, baseUrl: _resolvedUrl }; + if (options.baseUrl == null && values[\\"@id\\"] != null) { + options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } - const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -94053,14 +93362,9 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - const _resolvedUrl = - values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) - ? new URL(values[\\"@id\\"], options.baseUrl) - : undefined; - if (options.baseUrl == null && _resolvedUrl != null) { - options = { ...options, baseUrl: _resolvedUrl }; + if (options.baseUrl == null && values[\\"@id\\"] != null) { + options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } - const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -94392,14 +93696,9 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - const _resolvedUrl = - values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) - ? new URL(values[\\"@id\\"], options.baseUrl) - : undefined; - if (options.baseUrl == null && _resolvedUrl != null) { - options = { ...options, baseUrl: _resolvedUrl }; + if (options.baseUrl == null && values[\\"@id\\"] != null) { + options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } - const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -94947,14 +94246,9 @@ get formerTypes(): (\$EntityType)[] { // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - const _resolvedUrl = - values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) - ? new URL(values[\\"@id\\"], options.baseUrl) - : undefined; - if (options.baseUrl == null && _resolvedUrl != null) { - options = { ...options, baseUrl: _resolvedUrl }; + if (options.baseUrl == null && values[\\"@id\\"] != null) { + options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } - const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -95387,14 +94681,9 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - const _resolvedUrl = - values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) - ? new URL(values[\\"@id\\"], options.baseUrl) - : undefined; - if (options.baseUrl == null && _resolvedUrl != null) { - options = { ...options, baseUrl: _resolvedUrl }; + if (options.baseUrl == null && values[\\"@id\\"] != null) { + options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } - const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -95731,14 +95020,9 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - const _resolvedUrl = - values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) - ? new URL(values[\\"@id\\"], options.baseUrl) - : undefined; - if (options.baseUrl == null && _resolvedUrl != null) { - options = { ...options, baseUrl: _resolvedUrl }; + if (options.baseUrl == null && values[\\"@id\\"] != null) { + options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } - const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -96073,14 +95357,9 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - const _resolvedUrl = - values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) - ? new URL(values[\\"@id\\"], options.baseUrl) - : undefined; - if (options.baseUrl == null && _resolvedUrl != null) { - options = { ...options, baseUrl: _resolvedUrl }; + if (options.baseUrl == null && values[\\"@id\\"] != null) { + options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } - const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -96415,14 +95694,9 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - const _resolvedUrl = - values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) - ? new URL(values[\\"@id\\"], options.baseUrl) - : undefined; - if (options.baseUrl == null && _resolvedUrl != null) { - options = { ...options, baseUrl: _resolvedUrl }; + if (options.baseUrl == null && values[\\"@id\\"] != null) { + options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } - const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -96753,14 +96027,9 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - const _resolvedUrl = - values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) - ? new URL(values[\\"@id\\"], options.baseUrl) - : undefined; - if (options.baseUrl == null && _resolvedUrl != null) { - options = { ...options, baseUrl: _resolvedUrl }; + if (options.baseUrl == null && values[\\"@id\\"] != null) { + options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } - const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); diff --git a/packages/vocab-tools/src/__snapshots__/class.test.ts.node.snap b/packages/vocab-tools/src/__snapshots__/class.test.ts.node.snap index f2ee9ac86..f63dececc 100644 --- a/packages/vocab-tools/src/__snapshots__/class.test.ts.node.snap +++ b/packages/vocab-tools/src/__snapshots__/class.test.ts.node.snap @@ -2334,11 +2334,9 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu \\"attachment\\"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) { - v = await this.#attachment_fromJsonLd(obj, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#attachment_fromJsonLd(obj, options); + } } @@ -2592,11 +2590,9 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu \\"attributedTo\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#attribution_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#attribution_fromJsonLd(doc, options); + } } @@ -2692,11 +2688,9 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu \\"attributedTo\\"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) { - v = await this.#attribution_fromJsonLd(obj, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#attribution_fromJsonLd(obj, options); + } } @@ -2913,11 +2907,9 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu \\"audience\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#audience_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#audience_fromJsonLd(doc, options); + } } @@ -3012,11 +3004,9 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu \\"audience\\"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) { - v = await this.#audience_fromJsonLd(obj, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#audience_fromJsonLd(obj, options); + } } @@ -3277,11 +3267,9 @@ get contents(): ((string | LanguageString))[] { \\"context\\"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) { - v = await this.#context_fromJsonLd(obj, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#context_fromJsonLd(obj, options); + } } @@ -3549,11 +3537,9 @@ get names(): ((string | LanguageString))[] { \\"generator\\"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) { - v = await this.#generator_fromJsonLd(obj, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#generator_fromJsonLd(obj, options); + } } @@ -3790,11 +3776,13 @@ get names(): ((string | LanguageString))[] { \\"icon\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { + v = await this.#icon_fromJsonLd(doc, { ...options, baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? undefined, }); + } } @@ -3890,11 +3878,13 @@ get names(): ((string | LanguageString))[] { \\"icon\\"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) { + v = await this.#icon_fromJsonLd(obj, { ...options, baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? undefined, }); + } } @@ -4131,11 +4121,13 @@ get names(): ((string | LanguageString))[] { \\"image\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { + v = await this.#image_fromJsonLd(doc, { ...options, baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? undefined, }); + } } @@ -4231,11 +4223,13 @@ get names(): ((string | LanguageString))[] { \\"image\\"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) { + v = await this.#image_fromJsonLd(obj, { ...options, baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? undefined, }); + } } @@ -4461,11 +4455,9 @@ get names(): ((string | LanguageString))[] { \\"inReplyTo\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#replyTarget_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#replyTarget_fromJsonLd(doc, options); + } } @@ -4560,11 +4552,9 @@ get names(): ((string | LanguageString))[] { \\"inReplyTo\\"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) { - v = await this.#replyTarget_fromJsonLd(obj, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#replyTarget_fromJsonLd(obj, options); + } } @@ -4790,11 +4780,9 @@ get names(): ((string | LanguageString))[] { \\"location\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#location_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#location_fromJsonLd(doc, options); + } } @@ -4889,11 +4877,9 @@ get names(): ((string | LanguageString))[] { \\"location\\"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) { - v = await this.#location_fromJsonLd(obj, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#location_fromJsonLd(obj, options); + } } @@ -5118,11 +5104,9 @@ get names(): ((string | LanguageString))[] { \\"preview\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#preview_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#preview_fromJsonLd(doc, options); + } } @@ -5216,11 +5200,9 @@ get names(): ((string | LanguageString))[] { \\"preview\\"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) { - v = await this.#preview_fromJsonLd(obj, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#preview_fromJsonLd(obj, options); + } } @@ -5450,11 +5432,9 @@ get names(): ((string | LanguageString))[] { \\"replies\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#replies_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#replies_fromJsonLd(doc, options); + } } @@ -5676,11 +5656,9 @@ get names(): ((string | LanguageString))[] { \\"shares\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#shares_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#shares_fromJsonLd(doc, options); + } } @@ -5902,11 +5880,9 @@ get names(): ((string | LanguageString))[] { \\"likes\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#likes_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#likes_fromJsonLd(doc, options); + } } @@ -6122,11 +6098,9 @@ get names(): ((string | LanguageString))[] { \\"emojiReactions\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#emojiReactions_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#emojiReactions_fromJsonLd(doc, options); + } } @@ -6394,11 +6368,9 @@ get summaries(): ((string | LanguageString))[] { \\"tag\\"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) { - v = await this.#tag_fromJsonLd(obj, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#tag_fromJsonLd(obj, options); + } } @@ -6649,11 +6621,9 @@ get urls(): ((URL | Link))[] { \\"to\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#to_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#to_fromJsonLd(doc, options); + } } @@ -6748,11 +6718,9 @@ get urls(): ((URL | Link))[] { \\"to\\"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) { - v = await this.#to_fromJsonLd(obj, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#to_fromJsonLd(obj, options); + } } @@ -6969,11 +6937,9 @@ get urls(): ((URL | Link))[] { \\"bto\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#bto_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#bto_fromJsonLd(doc, options); + } } @@ -7068,11 +7034,9 @@ get urls(): ((URL | Link))[] { \\"bto\\"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) { - v = await this.#bto_fromJsonLd(obj, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#bto_fromJsonLd(obj, options); + } } @@ -7289,11 +7253,9 @@ get urls(): ((URL | Link))[] { \\"cc\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#cc_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#cc_fromJsonLd(doc, options); + } } @@ -7388,11 +7350,9 @@ get urls(): ((URL | Link))[] { \\"cc\\"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) { - v = await this.#cc_fromJsonLd(obj, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#cc_fromJsonLd(obj, options); + } } @@ -7609,11 +7569,9 @@ get urls(): ((URL | Link))[] { \\"bcc\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#bcc_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#bcc_fromJsonLd(doc, options); + } } @@ -7708,11 +7666,9 @@ get urls(): ((URL | Link))[] { \\"bcc\\"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) { - v = await this.#bcc_fromJsonLd(obj, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#bcc_fromJsonLd(obj, options); + } } @@ -7992,11 +7948,9 @@ get urls(): ((URL | Link))[] { \\"proof\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#proof_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#proof_fromJsonLd(doc, options); + } } @@ -8090,11 +8044,9 @@ get urls(): ((URL | Link))[] { \\"proof\\"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) { - v = await this.#proof_fromJsonLd(obj, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#proof_fromJsonLd(obj, options); + } } @@ -8350,11 +8302,9 @@ get urls(): ((URL | Link))[] { \\"likeAuthorization\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#likeAuthorization_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#likeAuthorization_fromJsonLd(doc, options); + } } @@ -8570,11 +8520,9 @@ get urls(): ((URL | Link))[] { \\"replyAuthorization\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#replyAuthorization_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#replyAuthorization_fromJsonLd(doc, options); + } } @@ -8790,11 +8738,9 @@ get urls(): ((URL | Link))[] { \\"announceAuthorization\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#announceAuthorization_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#announceAuthorization_fromJsonLd(doc, options); + } } @@ -10342,14 +10288,9 @@ get urls(): ((URL | Link))[] { // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - const _resolvedUrl = - values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) - ? new URL(values[\\"@id\\"], options.baseUrl) - : undefined; - if (options.baseUrl == null && _resolvedUrl != null) { - options = { ...options, baseUrl: _resolvedUrl }; + if (options.baseUrl == null && values[\\"@id\\"] != null) { + options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } - const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -10648,16 +10589,16 @@ get urls(): ((URL | Link))[] { && Array.isArray(v[\\"@type\\"])&& [\\"https://www.w3.org/ns/activitystreams#Object\\",\\"http://joinmastodon.org/ns#Emoji\\",\\"http://litepub.social/ns#ChatMessage\\",\\"https://gotosocial.org/ns#AnnounceAuthorization\\",\\"https://gotosocial.org/ns#LikeApproval\\",\\"https://gotosocial.org/ns#ReplyAuthorization\\",\\"https://w3id.org/fep/044f#QuoteAuthorization\\",\\"https://w3id.org/valueflows/ont/vf#Proposal\\",\\"https://www.w3.org/ns/activitystreams#Activity\\",\\"http://litepub.social/ns#EmojiReact\\",\\"https://gotosocial.org/ns#AnnounceRequest\\",\\"https://gotosocial.org/ns#LikeRequest\\",\\"https://gotosocial.org/ns#ReplyRequest\\",\\"https://w3id.org/fep/044f#QuoteRequest\\",\\"https://www.w3.org/ns/activitystreams#Accept\\",\\"https://www.w3.org/ns/activitystreams#TentativeAccept\\",\\"https://www.w3.org/ns/activitystreams#Add\\",\\"https://www.w3.org/ns/activitystreams#Announce\\",\\"https://www.w3.org/ns/activitystreams#Create\\",\\"https://www.w3.org/ns/activitystreams#Delete\\",\\"https://www.w3.org/ns/activitystreams#Dislike\\",\\"https://www.w3.org/ns/activitystreams#Flag\\",\\"https://www.w3.org/ns/activitystreams#Follow\\",\\"https://www.w3.org/ns/activitystreams#Ignore\\",\\"https://www.w3.org/ns/activitystreams#Block\\",\\"https://www.w3.org/ns/activitystreams#IntransitiveActivity\\",\\"https://www.w3.org/ns/activitystreams#Arrive\\",\\"https://www.w3.org/ns/activitystreams#Question\\",\\"https://www.w3.org/ns/activitystreams#Travel\\",\\"https://www.w3.org/ns/activitystreams#Join\\",\\"https://www.w3.org/ns/activitystreams#Leave\\",\\"https://www.w3.org/ns/activitystreams#Like\\",\\"https://www.w3.org/ns/activitystreams#Listen\\",\\"https://www.w3.org/ns/activitystreams#Move\\",\\"https://www.w3.org/ns/activitystreams#Offer\\",\\"https://www.w3.org/ns/activitystreams#Invite\\",\\"https://www.w3.org/ns/activitystreams#Read\\",\\"https://www.w3.org/ns/activitystreams#Reject\\",\\"https://www.w3.org/ns/activitystreams#TentativeReject\\",\\"https://www.w3.org/ns/activitystreams#Remove\\",\\"https://www.w3.org/ns/activitystreams#Undo\\",\\"https://www.w3.org/ns/activitystreams#Update\\",\\"https://www.w3.org/ns/activitystreams#View\\",\\"https://www.w3.org/ns/activitystreams#Application\\",\\"https://www.w3.org/ns/activitystreams#Article\\",\\"https://www.w3.org/ns/activitystreams#Collection\\",\\"https://www.w3.org/ns/activitystreams#CollectionPage\\",\\"https://www.w3.org/ns/activitystreams#OrderedCollectionPage\\",\\"https://www.w3.org/ns/activitystreams#OrderedCollection\\",\\"https://www.w3.org/ns/activitystreams#Document\\",\\"https://www.w3.org/ns/activitystreams#Audio\\",\\"https://www.w3.org/ns/activitystreams#Image\\",\\"https://www.w3.org/ns/activitystreams#Page\\",\\"https://www.w3.org/ns/activitystreams#Video\\",\\"https://www.w3.org/ns/activitystreams#Event\\",\\"https://www.w3.org/ns/activitystreams#Group\\",\\"https://www.w3.org/ns/activitystreams#Note\\",\\"https://www.w3.org/ns/activitystreams#Organization\\",\\"https://www.w3.org/ns/activitystreams#Person\\",\\"https://www.w3.org/ns/activitystreams#Place\\",\\"https://www.w3.org/ns/activitystreams#Profile\\",\\"https://www.w3.org/ns/activitystreams#Relationship\\",\\"https://www.w3.org/ns/activitystreams#Service\\",\\"https://www.w3.org/ns/activitystreams#Tombstone\\"].some( t => v[\\"@type\\"].includes(t)) ? await Object.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& [\\"https://www.w3.org/ns/activitystreams#Link\\",\\"https://www.w3.org/ns/activitystreams#Hashtag\\",\\"https://www.w3.org/ns/activitystreams#Mention\\"].some( t => v[\\"@type\\"].includes(t)) ? await Link.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"http://schema.org#PropertyValue\\") ? await PropertyValue.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -10694,23 +10635,23 @@ get urls(): ((URL | Link))[] { typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Application\\") ? await Application.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Group\\") ? await Group.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Organization\\") ? await Organization.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Person\\") ? await Person.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Service\\") ? await Service.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -10745,7 +10686,7 @@ get urls(): ((URL | Link))[] { const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _3ocC3VVi88cEd5sPWL8djkZsvTN6_audience.push(decoded); @@ -10805,12 +10746,12 @@ get urls(): ((URL | Link))[] { && Array.isArray(v[\\"@type\\"])&& [\\"https://www.w3.org/ns/activitystreams#Object\\",\\"http://joinmastodon.org/ns#Emoji\\",\\"http://litepub.social/ns#ChatMessage\\",\\"https://gotosocial.org/ns#AnnounceAuthorization\\",\\"https://gotosocial.org/ns#LikeApproval\\",\\"https://gotosocial.org/ns#ReplyAuthorization\\",\\"https://w3id.org/fep/044f#QuoteAuthorization\\",\\"https://w3id.org/valueflows/ont/vf#Proposal\\",\\"https://www.w3.org/ns/activitystreams#Activity\\",\\"http://litepub.social/ns#EmojiReact\\",\\"https://gotosocial.org/ns#AnnounceRequest\\",\\"https://gotosocial.org/ns#LikeRequest\\",\\"https://gotosocial.org/ns#ReplyRequest\\",\\"https://w3id.org/fep/044f#QuoteRequest\\",\\"https://www.w3.org/ns/activitystreams#Accept\\",\\"https://www.w3.org/ns/activitystreams#TentativeAccept\\",\\"https://www.w3.org/ns/activitystreams#Add\\",\\"https://www.w3.org/ns/activitystreams#Announce\\",\\"https://www.w3.org/ns/activitystreams#Create\\",\\"https://www.w3.org/ns/activitystreams#Delete\\",\\"https://www.w3.org/ns/activitystreams#Dislike\\",\\"https://www.w3.org/ns/activitystreams#Flag\\",\\"https://www.w3.org/ns/activitystreams#Follow\\",\\"https://www.w3.org/ns/activitystreams#Ignore\\",\\"https://www.w3.org/ns/activitystreams#Block\\",\\"https://www.w3.org/ns/activitystreams#IntransitiveActivity\\",\\"https://www.w3.org/ns/activitystreams#Arrive\\",\\"https://www.w3.org/ns/activitystreams#Question\\",\\"https://www.w3.org/ns/activitystreams#Travel\\",\\"https://www.w3.org/ns/activitystreams#Join\\",\\"https://www.w3.org/ns/activitystreams#Leave\\",\\"https://www.w3.org/ns/activitystreams#Like\\",\\"https://www.w3.org/ns/activitystreams#Listen\\",\\"https://www.w3.org/ns/activitystreams#Move\\",\\"https://www.w3.org/ns/activitystreams#Offer\\",\\"https://www.w3.org/ns/activitystreams#Invite\\",\\"https://www.w3.org/ns/activitystreams#Read\\",\\"https://www.w3.org/ns/activitystreams#Reject\\",\\"https://www.w3.org/ns/activitystreams#TentativeReject\\",\\"https://www.w3.org/ns/activitystreams#Remove\\",\\"https://www.w3.org/ns/activitystreams#Undo\\",\\"https://www.w3.org/ns/activitystreams#Update\\",\\"https://www.w3.org/ns/activitystreams#View\\",\\"https://www.w3.org/ns/activitystreams#Application\\",\\"https://www.w3.org/ns/activitystreams#Article\\",\\"https://www.w3.org/ns/activitystreams#Collection\\",\\"https://www.w3.org/ns/activitystreams#CollectionPage\\",\\"https://www.w3.org/ns/activitystreams#OrderedCollectionPage\\",\\"https://www.w3.org/ns/activitystreams#OrderedCollection\\",\\"https://www.w3.org/ns/activitystreams#Document\\",\\"https://www.w3.org/ns/activitystreams#Audio\\",\\"https://www.w3.org/ns/activitystreams#Image\\",\\"https://www.w3.org/ns/activitystreams#Page\\",\\"https://www.w3.org/ns/activitystreams#Video\\",\\"https://www.w3.org/ns/activitystreams#Event\\",\\"https://www.w3.org/ns/activitystreams#Group\\",\\"https://www.w3.org/ns/activitystreams#Note\\",\\"https://www.w3.org/ns/activitystreams#Organization\\",\\"https://www.w3.org/ns/activitystreams#Person\\",\\"https://www.w3.org/ns/activitystreams#Place\\",\\"https://www.w3.org/ns/activitystreams#Profile\\",\\"https://www.w3.org/ns/activitystreams#Relationship\\",\\"https://www.w3.org/ns/activitystreams#Service\\",\\"https://www.w3.org/ns/activitystreams#Tombstone\\"].some( t => v[\\"@type\\"].includes(t)) ? await Object.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& [\\"https://www.w3.org/ns/activitystreams#Link\\",\\"https://www.w3.org/ns/activitystreams#Hashtag\\",\\"https://www.w3.org/ns/activitystreams#Mention\\"].some( t => v[\\"@type\\"].includes(t)) ? await Link.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -10894,12 +10835,12 @@ get urls(): ((URL | Link))[] { && Array.isArray(v[\\"@type\\"])&& [\\"https://www.w3.org/ns/activitystreams#Object\\",\\"http://joinmastodon.org/ns#Emoji\\",\\"http://litepub.social/ns#ChatMessage\\",\\"https://gotosocial.org/ns#AnnounceAuthorization\\",\\"https://gotosocial.org/ns#LikeApproval\\",\\"https://gotosocial.org/ns#ReplyAuthorization\\",\\"https://w3id.org/fep/044f#QuoteAuthorization\\",\\"https://w3id.org/valueflows/ont/vf#Proposal\\",\\"https://www.w3.org/ns/activitystreams#Activity\\",\\"http://litepub.social/ns#EmojiReact\\",\\"https://gotosocial.org/ns#AnnounceRequest\\",\\"https://gotosocial.org/ns#LikeRequest\\",\\"https://gotosocial.org/ns#ReplyRequest\\",\\"https://w3id.org/fep/044f#QuoteRequest\\",\\"https://www.w3.org/ns/activitystreams#Accept\\",\\"https://www.w3.org/ns/activitystreams#TentativeAccept\\",\\"https://www.w3.org/ns/activitystreams#Add\\",\\"https://www.w3.org/ns/activitystreams#Announce\\",\\"https://www.w3.org/ns/activitystreams#Create\\",\\"https://www.w3.org/ns/activitystreams#Delete\\",\\"https://www.w3.org/ns/activitystreams#Dislike\\",\\"https://www.w3.org/ns/activitystreams#Flag\\",\\"https://www.w3.org/ns/activitystreams#Follow\\",\\"https://www.w3.org/ns/activitystreams#Ignore\\",\\"https://www.w3.org/ns/activitystreams#Block\\",\\"https://www.w3.org/ns/activitystreams#IntransitiveActivity\\",\\"https://www.w3.org/ns/activitystreams#Arrive\\",\\"https://www.w3.org/ns/activitystreams#Question\\",\\"https://www.w3.org/ns/activitystreams#Travel\\",\\"https://www.w3.org/ns/activitystreams#Join\\",\\"https://www.w3.org/ns/activitystreams#Leave\\",\\"https://www.w3.org/ns/activitystreams#Like\\",\\"https://www.w3.org/ns/activitystreams#Listen\\",\\"https://www.w3.org/ns/activitystreams#Move\\",\\"https://www.w3.org/ns/activitystreams#Offer\\",\\"https://www.w3.org/ns/activitystreams#Invite\\",\\"https://www.w3.org/ns/activitystreams#Read\\",\\"https://www.w3.org/ns/activitystreams#Reject\\",\\"https://www.w3.org/ns/activitystreams#TentativeReject\\",\\"https://www.w3.org/ns/activitystreams#Remove\\",\\"https://www.w3.org/ns/activitystreams#Undo\\",\\"https://www.w3.org/ns/activitystreams#Update\\",\\"https://www.w3.org/ns/activitystreams#View\\",\\"https://www.w3.org/ns/activitystreams#Application\\",\\"https://www.w3.org/ns/activitystreams#Article\\",\\"https://www.w3.org/ns/activitystreams#Collection\\",\\"https://www.w3.org/ns/activitystreams#CollectionPage\\",\\"https://www.w3.org/ns/activitystreams#OrderedCollectionPage\\",\\"https://www.w3.org/ns/activitystreams#OrderedCollection\\",\\"https://www.w3.org/ns/activitystreams#Document\\",\\"https://www.w3.org/ns/activitystreams#Audio\\",\\"https://www.w3.org/ns/activitystreams#Image\\",\\"https://www.w3.org/ns/activitystreams#Page\\",\\"https://www.w3.org/ns/activitystreams#Video\\",\\"https://www.w3.org/ns/activitystreams#Event\\",\\"https://www.w3.org/ns/activitystreams#Group\\",\\"https://www.w3.org/ns/activitystreams#Note\\",\\"https://www.w3.org/ns/activitystreams#Organization\\",\\"https://www.w3.org/ns/activitystreams#Person\\",\\"https://www.w3.org/ns/activitystreams#Place\\",\\"https://www.w3.org/ns/activitystreams#Profile\\",\\"https://www.w3.org/ns/activitystreams#Relationship\\",\\"https://www.w3.org/ns/activitystreams#Service\\",\\"https://www.w3.org/ns/activitystreams#Tombstone\\"].some( t => v[\\"@type\\"].includes(t)) ? await Object.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& [\\"https://www.w3.org/ns/activitystreams#Link\\",\\"https://www.w3.org/ns/activitystreams#Hashtag\\",\\"https://www.w3.org/ns/activitystreams#Mention\\"].some( t => v[\\"@type\\"].includes(t)) ? await Link.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -10930,7 +10871,7 @@ get urls(): ((URL | Link))[] { documentLoader: options.documentLoader, contextLoader: options.contextLoader, tracerProvider: options.tracerProvider, - baseUrl: _baseUrl, + baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])), }); if (_result instanceof Error) throw _result; if (_result !== undefined) { @@ -10956,7 +10897,7 @@ get urls(): ((URL | Link))[] { const decoded = await Image.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _33CjRLy5ujtsUrwRSCrsggvGdKuR_icon.push(decoded); @@ -10985,7 +10926,7 @@ get urls(): ((URL | Link))[] { documentLoader: options.documentLoader, contextLoader: options.contextLoader, tracerProvider: options.tracerProvider, - baseUrl: _baseUrl, + baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])), }); if (_result instanceof Error) throw _result; if (_result !== undefined) { @@ -11011,7 +10952,7 @@ get urls(): ((URL | Link))[] { const decoded = await Image.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _3dXrUdkARxwyJLtJcYi1AJ92H41U_image.push(decoded); @@ -11047,12 +10988,12 @@ get urls(): ((URL | Link))[] { && Array.isArray(v[\\"@type\\"])&& [\\"https://www.w3.org/ns/activitystreams#Object\\",\\"http://joinmastodon.org/ns#Emoji\\",\\"http://litepub.social/ns#ChatMessage\\",\\"https://gotosocial.org/ns#AnnounceAuthorization\\",\\"https://gotosocial.org/ns#LikeApproval\\",\\"https://gotosocial.org/ns#ReplyAuthorization\\",\\"https://w3id.org/fep/044f#QuoteAuthorization\\",\\"https://w3id.org/valueflows/ont/vf#Proposal\\",\\"https://www.w3.org/ns/activitystreams#Activity\\",\\"http://litepub.social/ns#EmojiReact\\",\\"https://gotosocial.org/ns#AnnounceRequest\\",\\"https://gotosocial.org/ns#LikeRequest\\",\\"https://gotosocial.org/ns#ReplyRequest\\",\\"https://w3id.org/fep/044f#QuoteRequest\\",\\"https://www.w3.org/ns/activitystreams#Accept\\",\\"https://www.w3.org/ns/activitystreams#TentativeAccept\\",\\"https://www.w3.org/ns/activitystreams#Add\\",\\"https://www.w3.org/ns/activitystreams#Announce\\",\\"https://www.w3.org/ns/activitystreams#Create\\",\\"https://www.w3.org/ns/activitystreams#Delete\\",\\"https://www.w3.org/ns/activitystreams#Dislike\\",\\"https://www.w3.org/ns/activitystreams#Flag\\",\\"https://www.w3.org/ns/activitystreams#Follow\\",\\"https://www.w3.org/ns/activitystreams#Ignore\\",\\"https://www.w3.org/ns/activitystreams#Block\\",\\"https://www.w3.org/ns/activitystreams#IntransitiveActivity\\",\\"https://www.w3.org/ns/activitystreams#Arrive\\",\\"https://www.w3.org/ns/activitystreams#Question\\",\\"https://www.w3.org/ns/activitystreams#Travel\\",\\"https://www.w3.org/ns/activitystreams#Join\\",\\"https://www.w3.org/ns/activitystreams#Leave\\",\\"https://www.w3.org/ns/activitystreams#Like\\",\\"https://www.w3.org/ns/activitystreams#Listen\\",\\"https://www.w3.org/ns/activitystreams#Move\\",\\"https://www.w3.org/ns/activitystreams#Offer\\",\\"https://www.w3.org/ns/activitystreams#Invite\\",\\"https://www.w3.org/ns/activitystreams#Read\\",\\"https://www.w3.org/ns/activitystreams#Reject\\",\\"https://www.w3.org/ns/activitystreams#TentativeReject\\",\\"https://www.w3.org/ns/activitystreams#Remove\\",\\"https://www.w3.org/ns/activitystreams#Undo\\",\\"https://www.w3.org/ns/activitystreams#Update\\",\\"https://www.w3.org/ns/activitystreams#View\\",\\"https://www.w3.org/ns/activitystreams#Application\\",\\"https://www.w3.org/ns/activitystreams#Article\\",\\"https://www.w3.org/ns/activitystreams#Collection\\",\\"https://www.w3.org/ns/activitystreams#CollectionPage\\",\\"https://www.w3.org/ns/activitystreams#OrderedCollectionPage\\",\\"https://www.w3.org/ns/activitystreams#OrderedCollection\\",\\"https://www.w3.org/ns/activitystreams#Document\\",\\"https://www.w3.org/ns/activitystreams#Audio\\",\\"https://www.w3.org/ns/activitystreams#Image\\",\\"https://www.w3.org/ns/activitystreams#Page\\",\\"https://www.w3.org/ns/activitystreams#Video\\",\\"https://www.w3.org/ns/activitystreams#Event\\",\\"https://www.w3.org/ns/activitystreams#Group\\",\\"https://www.w3.org/ns/activitystreams#Note\\",\\"https://www.w3.org/ns/activitystreams#Organization\\",\\"https://www.w3.org/ns/activitystreams#Person\\",\\"https://www.w3.org/ns/activitystreams#Place\\",\\"https://www.w3.org/ns/activitystreams#Profile\\",\\"https://www.w3.org/ns/activitystreams#Relationship\\",\\"https://www.w3.org/ns/activitystreams#Service\\",\\"https://www.w3.org/ns/activitystreams#Tombstone\\"].some( t => v[\\"@type\\"].includes(t)) ? await Object.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& [\\"https://www.w3.org/ns/activitystreams#Link\\",\\"https://www.w3.org/ns/activitystreams#Hashtag\\",\\"https://www.w3.org/ns/activitystreams#Mention\\"].some( t => v[\\"@type\\"].includes(t)) ? await Link.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -11090,12 +11031,12 @@ get urls(): ((URL | Link))[] { && Array.isArray(v[\\"@type\\"])&& [\\"https://www.w3.org/ns/activitystreams#Object\\",\\"http://joinmastodon.org/ns#Emoji\\",\\"http://litepub.social/ns#ChatMessage\\",\\"https://gotosocial.org/ns#AnnounceAuthorization\\",\\"https://gotosocial.org/ns#LikeApproval\\",\\"https://gotosocial.org/ns#ReplyAuthorization\\",\\"https://w3id.org/fep/044f#QuoteAuthorization\\",\\"https://w3id.org/valueflows/ont/vf#Proposal\\",\\"https://www.w3.org/ns/activitystreams#Activity\\",\\"http://litepub.social/ns#EmojiReact\\",\\"https://gotosocial.org/ns#AnnounceRequest\\",\\"https://gotosocial.org/ns#LikeRequest\\",\\"https://gotosocial.org/ns#ReplyRequest\\",\\"https://w3id.org/fep/044f#QuoteRequest\\",\\"https://www.w3.org/ns/activitystreams#Accept\\",\\"https://www.w3.org/ns/activitystreams#TentativeAccept\\",\\"https://www.w3.org/ns/activitystreams#Add\\",\\"https://www.w3.org/ns/activitystreams#Announce\\",\\"https://www.w3.org/ns/activitystreams#Create\\",\\"https://www.w3.org/ns/activitystreams#Delete\\",\\"https://www.w3.org/ns/activitystreams#Dislike\\",\\"https://www.w3.org/ns/activitystreams#Flag\\",\\"https://www.w3.org/ns/activitystreams#Follow\\",\\"https://www.w3.org/ns/activitystreams#Ignore\\",\\"https://www.w3.org/ns/activitystreams#Block\\",\\"https://www.w3.org/ns/activitystreams#IntransitiveActivity\\",\\"https://www.w3.org/ns/activitystreams#Arrive\\",\\"https://www.w3.org/ns/activitystreams#Question\\",\\"https://www.w3.org/ns/activitystreams#Travel\\",\\"https://www.w3.org/ns/activitystreams#Join\\",\\"https://www.w3.org/ns/activitystreams#Leave\\",\\"https://www.w3.org/ns/activitystreams#Like\\",\\"https://www.w3.org/ns/activitystreams#Listen\\",\\"https://www.w3.org/ns/activitystreams#Move\\",\\"https://www.w3.org/ns/activitystreams#Offer\\",\\"https://www.w3.org/ns/activitystreams#Invite\\",\\"https://www.w3.org/ns/activitystreams#Read\\",\\"https://www.w3.org/ns/activitystreams#Reject\\",\\"https://www.w3.org/ns/activitystreams#TentativeReject\\",\\"https://www.w3.org/ns/activitystreams#Remove\\",\\"https://www.w3.org/ns/activitystreams#Undo\\",\\"https://www.w3.org/ns/activitystreams#Update\\",\\"https://www.w3.org/ns/activitystreams#View\\",\\"https://www.w3.org/ns/activitystreams#Application\\",\\"https://www.w3.org/ns/activitystreams#Article\\",\\"https://www.w3.org/ns/activitystreams#Collection\\",\\"https://www.w3.org/ns/activitystreams#CollectionPage\\",\\"https://www.w3.org/ns/activitystreams#OrderedCollectionPage\\",\\"https://www.w3.org/ns/activitystreams#OrderedCollection\\",\\"https://www.w3.org/ns/activitystreams#Document\\",\\"https://www.w3.org/ns/activitystreams#Audio\\",\\"https://www.w3.org/ns/activitystreams#Image\\",\\"https://www.w3.org/ns/activitystreams#Page\\",\\"https://www.w3.org/ns/activitystreams#Video\\",\\"https://www.w3.org/ns/activitystreams#Event\\",\\"https://www.w3.org/ns/activitystreams#Group\\",\\"https://www.w3.org/ns/activitystreams#Note\\",\\"https://www.w3.org/ns/activitystreams#Organization\\",\\"https://www.w3.org/ns/activitystreams#Person\\",\\"https://www.w3.org/ns/activitystreams#Place\\",\\"https://www.w3.org/ns/activitystreams#Profile\\",\\"https://www.w3.org/ns/activitystreams#Relationship\\",\\"https://www.w3.org/ns/activitystreams#Service\\",\\"https://www.w3.org/ns/activitystreams#Tombstone\\"].some( t => v[\\"@type\\"].includes(t)) ? await Object.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& [\\"https://www.w3.org/ns/activitystreams#Link\\",\\"https://www.w3.org/ns/activitystreams#Hashtag\\",\\"https://www.w3.org/ns/activitystreams#Mention\\"].some( t => v[\\"@type\\"].includes(t)) ? await Link.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -11133,12 +11074,12 @@ get urls(): ((URL | Link))[] { && Array.isArray(v[\\"@type\\"])&& [\\"https://www.w3.org/ns/activitystreams#Link\\",\\"https://www.w3.org/ns/activitystreams#Hashtag\\",\\"https://www.w3.org/ns/activitystreams#Mention\\"].some( t => v[\\"@type\\"].includes(t)) ? await Link.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& [\\"https://www.w3.org/ns/activitystreams#Object\\",\\"http://joinmastodon.org/ns#Emoji\\",\\"http://litepub.social/ns#ChatMessage\\",\\"https://gotosocial.org/ns#AnnounceAuthorization\\",\\"https://gotosocial.org/ns#LikeApproval\\",\\"https://gotosocial.org/ns#ReplyAuthorization\\",\\"https://w3id.org/fep/044f#QuoteAuthorization\\",\\"https://w3id.org/valueflows/ont/vf#Proposal\\",\\"https://www.w3.org/ns/activitystreams#Activity\\",\\"http://litepub.social/ns#EmojiReact\\",\\"https://gotosocial.org/ns#AnnounceRequest\\",\\"https://gotosocial.org/ns#LikeRequest\\",\\"https://gotosocial.org/ns#ReplyRequest\\",\\"https://w3id.org/fep/044f#QuoteRequest\\",\\"https://www.w3.org/ns/activitystreams#Accept\\",\\"https://www.w3.org/ns/activitystreams#TentativeAccept\\",\\"https://www.w3.org/ns/activitystreams#Add\\",\\"https://www.w3.org/ns/activitystreams#Announce\\",\\"https://www.w3.org/ns/activitystreams#Create\\",\\"https://www.w3.org/ns/activitystreams#Delete\\",\\"https://www.w3.org/ns/activitystreams#Dislike\\",\\"https://www.w3.org/ns/activitystreams#Flag\\",\\"https://www.w3.org/ns/activitystreams#Follow\\",\\"https://www.w3.org/ns/activitystreams#Ignore\\",\\"https://www.w3.org/ns/activitystreams#Block\\",\\"https://www.w3.org/ns/activitystreams#IntransitiveActivity\\",\\"https://www.w3.org/ns/activitystreams#Arrive\\",\\"https://www.w3.org/ns/activitystreams#Question\\",\\"https://www.w3.org/ns/activitystreams#Travel\\",\\"https://www.w3.org/ns/activitystreams#Join\\",\\"https://www.w3.org/ns/activitystreams#Leave\\",\\"https://www.w3.org/ns/activitystreams#Like\\",\\"https://www.w3.org/ns/activitystreams#Listen\\",\\"https://www.w3.org/ns/activitystreams#Move\\",\\"https://www.w3.org/ns/activitystreams#Offer\\",\\"https://www.w3.org/ns/activitystreams#Invite\\",\\"https://www.w3.org/ns/activitystreams#Read\\",\\"https://www.w3.org/ns/activitystreams#Reject\\",\\"https://www.w3.org/ns/activitystreams#TentativeReject\\",\\"https://www.w3.org/ns/activitystreams#Remove\\",\\"https://www.w3.org/ns/activitystreams#Undo\\",\\"https://www.w3.org/ns/activitystreams#Update\\",\\"https://www.w3.org/ns/activitystreams#View\\",\\"https://www.w3.org/ns/activitystreams#Application\\",\\"https://www.w3.org/ns/activitystreams#Article\\",\\"https://www.w3.org/ns/activitystreams#Collection\\",\\"https://www.w3.org/ns/activitystreams#CollectionPage\\",\\"https://www.w3.org/ns/activitystreams#OrderedCollectionPage\\",\\"https://www.w3.org/ns/activitystreams#OrderedCollection\\",\\"https://www.w3.org/ns/activitystreams#Document\\",\\"https://www.w3.org/ns/activitystreams#Audio\\",\\"https://www.w3.org/ns/activitystreams#Image\\",\\"https://www.w3.org/ns/activitystreams#Page\\",\\"https://www.w3.org/ns/activitystreams#Video\\",\\"https://www.w3.org/ns/activitystreams#Event\\",\\"https://www.w3.org/ns/activitystreams#Group\\",\\"https://www.w3.org/ns/activitystreams#Note\\",\\"https://www.w3.org/ns/activitystreams#Organization\\",\\"https://www.w3.org/ns/activitystreams#Person\\",\\"https://www.w3.org/ns/activitystreams#Place\\",\\"https://www.w3.org/ns/activitystreams#Profile\\",\\"https://www.w3.org/ns/activitystreams#Relationship\\",\\"https://www.w3.org/ns/activitystreams#Service\\",\\"https://www.w3.org/ns/activitystreams#Tombstone\\"].some( t => v[\\"@type\\"].includes(t)) ? await Object.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -11195,7 +11136,7 @@ get urls(): ((URL | Link))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _7UpwM3JWcXhADcscukEehBorf6k_replies.push(decoded); @@ -11228,7 +11169,7 @@ get urls(): ((URL | Link))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _3kAfck9PcEYt2L7xug5y99YPbANs_shares.push(decoded); @@ -11261,7 +11202,7 @@ get urls(): ((URL | Link))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _S3ceDnpMdzoTRCccB9FkJWrEzYW_likes.push(decoded); @@ -11294,7 +11235,7 @@ get urls(): ((URL | Link))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _kMatyyNAuxoTD8GQMBfA5ogThMR_emojiReactions.push(decoded); @@ -11376,12 +11317,12 @@ get urls(): ((URL | Link))[] { && Array.isArray(v[\\"@type\\"])&& [\\"https://www.w3.org/ns/activitystreams#Object\\",\\"http://joinmastodon.org/ns#Emoji\\",\\"http://litepub.social/ns#ChatMessage\\",\\"https://gotosocial.org/ns#AnnounceAuthorization\\",\\"https://gotosocial.org/ns#LikeApproval\\",\\"https://gotosocial.org/ns#ReplyAuthorization\\",\\"https://w3id.org/fep/044f#QuoteAuthorization\\",\\"https://w3id.org/valueflows/ont/vf#Proposal\\",\\"https://www.w3.org/ns/activitystreams#Activity\\",\\"http://litepub.social/ns#EmojiReact\\",\\"https://gotosocial.org/ns#AnnounceRequest\\",\\"https://gotosocial.org/ns#LikeRequest\\",\\"https://gotosocial.org/ns#ReplyRequest\\",\\"https://w3id.org/fep/044f#QuoteRequest\\",\\"https://www.w3.org/ns/activitystreams#Accept\\",\\"https://www.w3.org/ns/activitystreams#TentativeAccept\\",\\"https://www.w3.org/ns/activitystreams#Add\\",\\"https://www.w3.org/ns/activitystreams#Announce\\",\\"https://www.w3.org/ns/activitystreams#Create\\",\\"https://www.w3.org/ns/activitystreams#Delete\\",\\"https://www.w3.org/ns/activitystreams#Dislike\\",\\"https://www.w3.org/ns/activitystreams#Flag\\",\\"https://www.w3.org/ns/activitystreams#Follow\\",\\"https://www.w3.org/ns/activitystreams#Ignore\\",\\"https://www.w3.org/ns/activitystreams#Block\\",\\"https://www.w3.org/ns/activitystreams#IntransitiveActivity\\",\\"https://www.w3.org/ns/activitystreams#Arrive\\",\\"https://www.w3.org/ns/activitystreams#Question\\",\\"https://www.w3.org/ns/activitystreams#Travel\\",\\"https://www.w3.org/ns/activitystreams#Join\\",\\"https://www.w3.org/ns/activitystreams#Leave\\",\\"https://www.w3.org/ns/activitystreams#Like\\",\\"https://www.w3.org/ns/activitystreams#Listen\\",\\"https://www.w3.org/ns/activitystreams#Move\\",\\"https://www.w3.org/ns/activitystreams#Offer\\",\\"https://www.w3.org/ns/activitystreams#Invite\\",\\"https://www.w3.org/ns/activitystreams#Read\\",\\"https://www.w3.org/ns/activitystreams#Reject\\",\\"https://www.w3.org/ns/activitystreams#TentativeReject\\",\\"https://www.w3.org/ns/activitystreams#Remove\\",\\"https://www.w3.org/ns/activitystreams#Undo\\",\\"https://www.w3.org/ns/activitystreams#Update\\",\\"https://www.w3.org/ns/activitystreams#View\\",\\"https://www.w3.org/ns/activitystreams#Application\\",\\"https://www.w3.org/ns/activitystreams#Article\\",\\"https://www.w3.org/ns/activitystreams#Collection\\",\\"https://www.w3.org/ns/activitystreams#CollectionPage\\",\\"https://www.w3.org/ns/activitystreams#OrderedCollectionPage\\",\\"https://www.w3.org/ns/activitystreams#OrderedCollection\\",\\"https://www.w3.org/ns/activitystreams#Document\\",\\"https://www.w3.org/ns/activitystreams#Audio\\",\\"https://www.w3.org/ns/activitystreams#Image\\",\\"https://www.w3.org/ns/activitystreams#Page\\",\\"https://www.w3.org/ns/activitystreams#Video\\",\\"https://www.w3.org/ns/activitystreams#Event\\",\\"https://www.w3.org/ns/activitystreams#Group\\",\\"https://www.w3.org/ns/activitystreams#Note\\",\\"https://www.w3.org/ns/activitystreams#Organization\\",\\"https://www.w3.org/ns/activitystreams#Person\\",\\"https://www.w3.org/ns/activitystreams#Place\\",\\"https://www.w3.org/ns/activitystreams#Profile\\",\\"https://www.w3.org/ns/activitystreams#Relationship\\",\\"https://www.w3.org/ns/activitystreams#Service\\",\\"https://www.w3.org/ns/activitystreams#Tombstone\\"].some( t => v[\\"@type\\"].includes(t)) ? await Object.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& [\\"https://www.w3.org/ns/activitystreams#Link\\",\\"https://www.w3.org/ns/activitystreams#Hashtag\\",\\"https://www.w3.org/ns/activitystreams#Mention\\"].some( t => v[\\"@type\\"].includes(t)) ? await Link.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -11440,13 +11381,13 @@ get urls(): ((URL | Link))[] { : \\"\\" ) ) - : URL.canParse(v[\\"@id\\"]) && _baseUrl + : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) ? new URL(v[\\"@id\\"]) - : new URL(v[\\"@id\\"], _baseUrl) : typeof v === \\"object\\" && \\"@type\\" in v + : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"]))) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& [\\"https://www.w3.org/ns/activitystreams#Link\\",\\"https://www.w3.org/ns/activitystreams#Hashtag\\",\\"https://www.w3.org/ns/activitystreams#Mention\\"].some( t => v[\\"@type\\"].includes(t)) ? await Link.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -11481,7 +11422,7 @@ get urls(): ((URL | Link))[] { const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _3hFbw7DTpHhq3cvVhkY8njhcsXbd_to.push(decoded); @@ -11514,7 +11455,7 @@ get urls(): ((URL | Link))[] { const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _aLZupjwL8XB7tzdLgCMXdjZ6qej_bto.push(decoded); @@ -11547,7 +11488,7 @@ get urls(): ((URL | Link))[] { const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _42a1SvBs24QSLzKcfjCyNTjW5a1g_cc.push(decoded); @@ -11580,7 +11521,7 @@ get urls(): ((URL | Link))[] { const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _3qvegKUB8YLgTXRpEf8E6JZSkz2H_bcc.push(decoded); @@ -11655,7 +11596,7 @@ get urls(): ((URL | Link))[] { const decoded = await Source.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _2ZwCFoS787v8y8bXKjMoE6MAbrEB_source.push(decoded); @@ -11688,7 +11629,7 @@ get urls(): ((URL | Link))[] { const decoded = await DataIntegrityProof.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _42rPnotok1ivQ2RNCKNbeFJgx8b8_proof.push(decoded); @@ -11709,7 +11650,7 @@ get urls(): ((URL | Link))[] { const decoded = await InteractionPolicy.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _2MHQfh2N74MMmDLDqYWFo7TxYQK2_interactionPolicy.push(decoded); @@ -11741,9 +11682,9 @@ get urls(): ((URL | Link))[] { : \\"\\" ) ) - : URL.canParse(v[\\"@id\\"]) && _baseUrl + : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) ? new URL(v[\\"@id\\"]) - : new URL(v[\\"@id\\"], _baseUrl); + : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"]))); if (typeof decoded === \\"undefined\\") continue; _23YiVs2miQcEiUdn4u8SvjQKWYim_approvedBy.push(decoded); } @@ -11775,7 +11716,7 @@ get urls(): ((URL | Link))[] { const decoded = await LikeAuthorization.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _3fCeb5aXaDDd4fvkQ96BLWifBUBa_likeAuthorization.push(decoded); @@ -11808,7 +11749,7 @@ get urls(): ((URL | Link))[] { const decoded = await ReplyAuthorization.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _YA4wdUW7rYztAQ6SjhMnJCmcmtP_replyAuthorization.push(decoded); @@ -11841,7 +11782,7 @@ get urls(): ((URL | Link))[] { const decoded = await AnnounceAuthorization.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _446xEaDBs3Fz6MyzP3PSBaLupkbJ_announceAuthorization.push(decoded); @@ -13019,14 +12960,9 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - const _resolvedUrl = - values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) - ? new URL(values[\\"@id\\"], options.baseUrl) - : undefined; - if (options.baseUrl == null && _resolvedUrl != null) { - options = { ...options, baseUrl: _resolvedUrl }; + if (options.baseUrl == null && values[\\"@id\\"] != null) { + options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } - const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -13461,11 +13397,9 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu \\"quote\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#quote_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#quote_fromJsonLd(doc, options); + } } @@ -13704,11 +13638,9 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu \\"quoteAuthorization\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#quoteAuthorization_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#quoteAuthorization_fromJsonLd(doc, options); + } } @@ -14030,14 +13962,9 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - const _resolvedUrl = - values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) - ? new URL(values[\\"@id\\"], options.baseUrl) - : undefined; - if (options.baseUrl == null && _resolvedUrl != null) { - options = { ...options, baseUrl: _resolvedUrl }; + if (options.baseUrl == null && values[\\"@id\\"] != null) { + options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } - const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -14086,7 +14013,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote.push(decoded); @@ -14145,7 +14072,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await QuoteAuthorization.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization.push(decoded); @@ -15091,11 +15018,9 @@ instruments?: (Object | URL)[];} \\"actor\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#actor_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#actor_fromJsonLd(doc, options); + } } @@ -15191,11 +15116,9 @@ instruments?: (Object | URL)[];} \\"actor\\"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) { - v = await this.#actor_fromJsonLd(obj, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#actor_fromJsonLd(obj, options); + } } @@ -15413,11 +15336,9 @@ instruments?: (Object | URL)[];} \\"object\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#object_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#object_fromJsonLd(doc, options); + } } @@ -15513,11 +15434,9 @@ instruments?: (Object | URL)[];} \\"object\\"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) { - v = await this.#object_fromJsonLd(obj, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#object_fromJsonLd(obj, options); + } } @@ -15738,11 +15657,9 @@ instruments?: (Object | URL)[];} \\"target\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#target_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#target_fromJsonLd(doc, options); + } } @@ -15841,11 +15758,9 @@ instruments?: (Object | URL)[];} \\"target\\"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) { - v = await this.#target_fromJsonLd(obj, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#target_fromJsonLd(obj, options); + } } @@ -16063,11 +15978,9 @@ instruments?: (Object | URL)[];} \\"result\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#result_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#result_fromJsonLd(doc, options); + } } @@ -16163,11 +16076,9 @@ instruments?: (Object | URL)[];} \\"result\\"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) { - v = await this.#result_fromJsonLd(obj, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#result_fromJsonLd(obj, options); + } } @@ -16386,11 +16297,9 @@ instruments?: (Object | URL)[];} \\"origin\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#origin_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#origin_fromJsonLd(doc, options); + } } @@ -16487,11 +16396,9 @@ instruments?: (Object | URL)[];} \\"origin\\"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) { - v = await this.#origin_fromJsonLd(obj, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#origin_fromJsonLd(obj, options); + } } @@ -16708,11 +16615,9 @@ instruments?: (Object | URL)[];} \\"instrument\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#instrument_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#instrument_fromJsonLd(doc, options); + } } @@ -16807,11 +16712,9 @@ instruments?: (Object | URL)[];} \\"instrument\\"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) { - v = await this.#instrument_fromJsonLd(obj, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#instrument_fromJsonLd(obj, options); + } } @@ -17092,14 +16995,9 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - const _resolvedUrl = - values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) - ? new URL(values[\\"@id\\"], options.baseUrl) - : undefined; - if (options.baseUrl == null && _resolvedUrl != null) { - options = { ...options, baseUrl: _resolvedUrl }; + if (options.baseUrl == null && values[\\"@id\\"] != null) { + options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } - const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -17286,23 +17184,23 @@ instruments?: (Object | URL)[];} typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Application\\") ? await Application.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Group\\") ? await Group.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Organization\\") ? await Organization.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Person\\") ? await Person.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Service\\") ? await Service.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -17337,7 +17235,7 @@ instruments?: (Object | URL)[];} const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _2MH19yxjn1wnHsNfa5n4JBhJzxyc_object.push(decoded); @@ -17370,7 +17268,7 @@ instruments?: (Object | URL)[];} const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _3JQCmF2Ww56Ag9EWRYoSZRDNCYtF_target.push(decoded); @@ -17403,7 +17301,7 @@ instruments?: (Object | URL)[];} const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _u4QGFbRFcYmPEKGbPv1hpBR9r5G_result.push(decoded); @@ -17436,7 +17334,7 @@ instruments?: (Object | URL)[];} const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _25zu2s3VxVujgEKqrDycjE284XQR_origin.push(decoded); @@ -17469,7 +17367,7 @@ instruments?: (Object | URL)[];} const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _3c5t2x7DYRo2shwTxpkd4kYSS5WQ_instrument.push(decoded); @@ -17940,14 +17838,9 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - const _resolvedUrl = - values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) - ? new URL(values[\\"@id\\"], options.baseUrl) - : undefined; - if (options.baseUrl == null && _resolvedUrl != null) { - options = { ...options, baseUrl: _resolvedUrl }; + if (options.baseUrl == null && values[\\"@id\\"] != null) { + options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } - const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -18448,14 +18341,9 @@ name?: string | LanguageString | null;value?: string | LanguageString | null;} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - const _resolvedUrl = - values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) - ? new URL(values[\\"@id\\"], options.baseUrl) - : undefined; - if (options.baseUrl == null && _resolvedUrl != null) { - options = { ...options, baseUrl: _resolvedUrl }; + if (options.baseUrl == null && values[\\"@id\\"] != null) { + options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } - const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -19039,14 +18927,9 @@ unit?: string | null;numericalValue?: Decimal | null;} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - const _resolvedUrl = - values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) - ? new URL(values[\\"@id\\"], options.baseUrl) - : undefined; - if (options.baseUrl == null && _resolvedUrl != null) { - options = { ...options, baseUrl: _resolvedUrl }; + if (options.baseUrl == null && values[\\"@id\\"] != null) { + options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } - const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -19543,11 +19426,9 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu \\"interactingObject\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#interactingObject_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#interactingObject_fromJsonLd(doc, options); + } } @@ -19762,11 +19643,9 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu \\"interactionTarget\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#interactionTarget_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#interactionTarget_fromJsonLd(doc, options); + } } @@ -20043,14 +19922,9 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - const _resolvedUrl = - values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) - ? new URL(values[\\"@id\\"], options.baseUrl) - : undefined; - if (options.baseUrl == null && _resolvedUrl != null) { - options = { ...options, baseUrl: _resolvedUrl }; + if (options.baseUrl == null && values[\\"@id\\"] != null) { + options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } - const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -20099,7 +19973,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject.push(decoded); @@ -20132,7 +20006,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget.push(decoded); @@ -20497,14 +20371,9 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - const _resolvedUrl = - values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) - ? new URL(values[\\"@id\\"], options.baseUrl) - : undefined; - if (options.baseUrl == null && _resolvedUrl != null) { - options = { ...options, baseUrl: _resolvedUrl }; + if (options.baseUrl == null && values[\\"@id\\"] != null) { + options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } - const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -21093,14 +20962,9 @@ canLike?: InteractionRule | null;canReply?: InteractionRule | null;canAnnounce?: // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - const _resolvedUrl = - values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) - ? new URL(values[\\"@id\\"], options.baseUrl) - : undefined; - if (options.baseUrl == null && _resolvedUrl != null) { - options = { ...options, baseUrl: _resolvedUrl }; + if (options.baseUrl == null && values[\\"@id\\"] != null) { + options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } - const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -21132,7 +20996,7 @@ canLike?: InteractionRule | null;canReply?: InteractionRule | null;canAnnounce?: const decoded = await InteractionRule.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _3JkwVLb3BNCwCWdsb5RftGAg8vyT_canLike.push(decoded); @@ -21153,7 +21017,7 @@ canLike?: InteractionRule | null;canReply?: InteractionRule | null;canAnnounce?: const decoded = await InteractionRule.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _2UBgLRi5p3DRGGvWyB227i4Qjhzd_canReply.push(decoded); @@ -21174,7 +21038,7 @@ canLike?: InteractionRule | null;canReply?: InteractionRule | null;canAnnounce?: const decoded = await InteractionRule.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _fu5nmoAj528fBQfnxhY9Daok3Vi_canAnnounce.push(decoded); @@ -21195,7 +21059,7 @@ canLike?: InteractionRule | null;canReply?: InteractionRule | null;canAnnounce?: const decoded = await InteractionRule.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _LE3zBTVacTZw2LSyLt4wVUkXeUy_canQuote.push(decoded); @@ -21846,14 +21710,9 @@ get manualApprovals(): (URL)[] { // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - const _resolvedUrl = - values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) - ? new URL(values[\\"@id\\"], options.baseUrl) - : undefined; - if (options.baseUrl == null && _resolvedUrl != null) { - options = { ...options, baseUrl: _resolvedUrl }; + if (options.baseUrl == null && values[\\"@id\\"] != null) { + options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } - const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -21896,9 +21755,9 @@ get manualApprovals(): (URL)[] { : \\"\\" ) ) - : URL.canParse(v[\\"@id\\"]) && _baseUrl + : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) ? new URL(v[\\"@id\\"]) - : new URL(v[\\"@id\\"], _baseUrl); + : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"]))); if (typeof decoded === \\"undefined\\") continue; _2rFyCF14HoyNjitj9PmCzek5iSsg_automaticApproval.push(decoded); } @@ -21929,9 +21788,9 @@ get manualApprovals(): (URL)[] { : \\"\\" ) ) - : URL.canParse(v[\\"@id\\"]) && _baseUrl + : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) ? new URL(v[\\"@id\\"]) - : new URL(v[\\"@id\\"], _baseUrl); + : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"]))); if (typeof decoded === \\"undefined\\") continue; _sxj8y5XMMMBWUnRYFw85MKedCMj_manualApproval.push(decoded); } @@ -22391,11 +22250,9 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu \\"interactingObject\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#interactingObject_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#interactingObject_fromJsonLd(doc, options); + } } @@ -22610,11 +22467,9 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu \\"interactionTarget\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#interactionTarget_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#interactionTarget_fromJsonLd(doc, options); + } } @@ -22891,14 +22746,9 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - const _resolvedUrl = - values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) - ? new URL(values[\\"@id\\"], options.baseUrl) - : undefined; - if (options.baseUrl == null && _resolvedUrl != null) { - options = { ...options, baseUrl: _resolvedUrl }; + if (options.baseUrl == null && values[\\"@id\\"] != null) { + options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } - const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -22947,7 +22797,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject.push(decoded); @@ -22980,7 +22830,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget.push(decoded); @@ -23344,14 +23194,9 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - const _resolvedUrl = - values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) - ? new URL(values[\\"@id\\"], options.baseUrl) - : undefined; - if (options.baseUrl == null && _resolvedUrl != null) { - options = { ...options, baseUrl: _resolvedUrl }; + if (options.baseUrl == null && values[\\"@id\\"] != null) { + options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } - const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -23761,11 +23606,9 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu \\"interactingObject\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#interactingObject_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#interactingObject_fromJsonLd(doc, options); + } } @@ -23980,11 +23823,9 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu \\"interactionTarget\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#interactionTarget_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#interactionTarget_fromJsonLd(doc, options); + } } @@ -24261,14 +24102,9 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - const _resolvedUrl = - values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) - ? new URL(values[\\"@id\\"], options.baseUrl) - : undefined; - if (options.baseUrl == null && _resolvedUrl != null) { - options = { ...options, baseUrl: _resolvedUrl }; + if (options.baseUrl == null && values[\\"@id\\"] != null) { + options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } - const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -24317,7 +24153,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject.push(decoded); @@ -24350,7 +24186,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget.push(decoded); @@ -24714,14 +24550,9 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - const _resolvedUrl = - values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) - ? new URL(values[\\"@id\\"], options.baseUrl) - : undefined; - if (options.baseUrl == null && _resolvedUrl != null) { - options = { ...options, baseUrl: _resolvedUrl }; + if (options.baseUrl == null && values[\\"@id\\"] != null) { + options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } - const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -25130,11 +24961,9 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu \\"interactingObject\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#interactingObject_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#interactingObject_fromJsonLd(doc, options); + } } @@ -25349,11 +25178,9 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu \\"interactionTarget\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#interactionTarget_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#interactionTarget_fromJsonLd(doc, options); + } } @@ -25630,14 +25457,9 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - const _resolvedUrl = - values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) - ? new URL(values[\\"@id\\"], options.baseUrl) - : undefined; - if (options.baseUrl == null && _resolvedUrl != null) { - options = { ...options, baseUrl: _resolvedUrl }; + if (options.baseUrl == null && values[\\"@id\\"] != null) { + options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } - const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -25686,7 +25508,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject.push(decoded); @@ -25719,7 +25541,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget.push(decoded); @@ -26083,14 +25905,9 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - const _resolvedUrl = - values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) - ? new URL(values[\\"@id\\"], options.baseUrl) - : undefined; - if (options.baseUrl == null && _resolvedUrl != null) { - options = { ...options, baseUrl: _resolvedUrl }; + if (options.baseUrl == null && values[\\"@id\\"] != null) { + options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } - const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -26533,14 +26350,9 @@ get endpoints(): (URL)[] { // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - const _resolvedUrl = - values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) - ? new URL(values[\\"@id\\"], options.baseUrl) - : undefined; - if (options.baseUrl == null && _resolvedUrl != null) { - options = { ...options, baseUrl: _resolvedUrl }; + if (options.baseUrl == null && values[\\"@id\\"] != null) { + options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } - const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -26587,9 +26399,9 @@ get endpoints(): (URL)[] { : \\"\\" ) ) - : URL.canParse(v[\\"@id\\"]) && _baseUrl + : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) ? new URL(v[\\"@id\\"]) - : new URL(v[\\"@id\\"], _baseUrl); + : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"]))); if (typeof decoded === \\"undefined\\") continue; _2KM4fetG6FTJ1cphj76rzJ8Dyv7p_serviceEndpoint.push(decoded); } @@ -26891,14 +26703,9 @@ endpoints?: (URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - const _resolvedUrl = - values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) - ? new URL(values[\\"@id\\"], options.baseUrl) - : undefined; - if (options.baseUrl == null && _resolvedUrl != null) { - options = { ...options, baseUrl: _resolvedUrl }; + if (options.baseUrl == null && values[\\"@id\\"] != null) { + options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } - const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -27714,14 +27521,9 @@ cryptosuite?: \\"eddsa-jcs-2022\\" | null;verificationMethod?: Multikey | URL | // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - const _resolvedUrl = - values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) - ? new URL(values[\\"@id\\"], options.baseUrl) - : undefined; - if (options.baseUrl == null && _resolvedUrl != null) { - options = { ...options, baseUrl: _resolvedUrl }; + if (options.baseUrl == null && values[\\"@id\\"] != null) { + options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } - const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -27783,7 +27585,7 @@ cryptosuite?: \\"eddsa-jcs-2022\\" | null;verificationMethod?: Multikey | URL | const decoded = await Multikey.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _2mHVKxqA7zncjveJrDEo3pWpMZqg_verificationMethod.push(decoded); @@ -28409,11 +28211,9 @@ owner?: Application | Group | Organization | Person | Service | URL | null;publi \\"owner\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#owner_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#owner_fromJsonLd(doc, options); + } } @@ -28688,14 +28488,9 @@ owner?: Application | Group | Organization | Person | Service | URL | null;publi // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - const _resolvedUrl = - values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) - ? new URL(values[\\"@id\\"], options.baseUrl) - : undefined; - if (options.baseUrl == null && _resolvedUrl != null) { - options = { ...options, baseUrl: _resolvedUrl }; + if (options.baseUrl == null && values[\\"@id\\"] != null) { + options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } - const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -28741,23 +28536,23 @@ owner?: Application | Group | Organization | Person | Service | URL | null;publi typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Application\\") ? await Application.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Group\\") ? await Group.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Organization\\") ? await Organization.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Person\\") ? await Person.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Service\\") ? await Service.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -29289,11 +29084,9 @@ controller?: Application | Group | Organization | Person | Service | URL | null; \\"controller\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#controller_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#controller_fromJsonLd(doc, options); + } } @@ -29575,14 +29368,9 @@ controller?: Application | Group | Organization | Person | Service | URL | null; // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - const _resolvedUrl = - values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) - ? new URL(values[\\"@id\\"], options.baseUrl) - : undefined; - if (options.baseUrl == null && _resolvedUrl != null) { - options = { ...options, baseUrl: _resolvedUrl }; + if (options.baseUrl == null && values[\\"@id\\"] != null) { + options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } - const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -29628,23 +29416,23 @@ controller?: Application | Group | Organization | Person | Service | URL | null; typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Application\\") ? await Application.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Group\\") ? await Group.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Organization\\") ? await Organization.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Person\\") ? await Person.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Service\\") ? await Service.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -30415,14 +30203,9 @@ action?: string | null;resourceConformsTo?: URL | null;resourceQuantity?: Measur // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - const _resolvedUrl = - values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) - ? new URL(values[\\"@id\\"], options.baseUrl) - : undefined; - if (options.baseUrl == null && _resolvedUrl != null) { - options = { ...options, baseUrl: _resolvedUrl }; + if (options.baseUrl == null && values[\\"@id\\"] != null) { + options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } - const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -30483,9 +30266,9 @@ action?: string | null;resourceConformsTo?: URL | null;resourceQuantity?: Measur : \\"\\" ) ) - : URL.canParse(v[\\"@id\\"]) && _baseUrl + : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) ? new URL(v[\\"@id\\"]) - : new URL(v[\\"@id\\"], _baseUrl); + : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"]))); if (typeof decoded === \\"undefined\\") continue; _BBAeMUUQDwBQn6cvu3P2Csd6b6h_resourceConformsTo.push(decoded); } @@ -30505,7 +30288,7 @@ action?: string | null;resourceConformsTo?: URL | null;resourceQuantity?: Measur const decoded = await Measure.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _2dLfqTbbRiggEcMQWbHpxkQrtmrc_resourceQuantity.push(decoded); @@ -30526,7 +30309,7 @@ action?: string | null;resourceConformsTo?: URL | null;resourceQuantity?: Measur const decoded = await Measure.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _YmNSnuih3Zk4VdR5JPVnQYroLAh_availableQuantity.push(decoded); @@ -30547,7 +30330,7 @@ action?: string | null;resourceConformsTo?: URL | null;resourceQuantity?: Measur const decoded = await Measure.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _3XueAFds2NBrqNpnV8b7aC8hV72S_minimumQuantity.push(decoded); @@ -31292,14 +31075,9 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - const _resolvedUrl = - values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) - ? new URL(values[\\"@id\\"], options.baseUrl) - : undefined; - if (options.baseUrl == null && _resolvedUrl != null) { - options = { ...options, baseUrl: _resolvedUrl }; + if (options.baseUrl == null && values[\\"@id\\"] != null) { + options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } - const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -31354,7 +31132,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Intent.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _sS5LvXX8cn4c3x6ux836AwYbTyJ_publishes.push(decoded); @@ -31375,7 +31153,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Intent.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _Z4ntJgFwR9BaNTbFvkRTGNEwUwy_reciprocal.push(decoded); @@ -31790,14 +31568,9 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - const _resolvedUrl = - values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) - ? new URL(values[\\"@id\\"], options.baseUrl) - : undefined; - if (options.baseUrl == null && _resolvedUrl != null) { - options = { ...options, baseUrl: _resolvedUrl }; + if (options.baseUrl == null && values[\\"@id\\"] != null) { + options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } - const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -32135,14 +31908,9 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - const _resolvedUrl = - values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) - ? new URL(values[\\"@id\\"], options.baseUrl) - : undefined; - if (options.baseUrl == null && _resolvedUrl != null) { - options = { ...options, baseUrl: _resolvedUrl }; + if (options.baseUrl == null && values[\\"@id\\"] != null) { + options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } - const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -32475,14 +32243,9 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - const _resolvedUrl = - values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) - ? new URL(values[\\"@id\\"], options.baseUrl) - : undefined; - if (options.baseUrl == null && _resolvedUrl != null) { - options = { ...options, baseUrl: _resolvedUrl }; + if (options.baseUrl == null && values[\\"@id\\"] != null) { + options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } - const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -33756,11 +33519,9 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"publicKey\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#publicKey_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#publicKey_fromJsonLd(doc, options); + } } @@ -33853,11 +33614,9 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"publicKey\\"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) { - v = await this.#publicKey_fromJsonLd(obj, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#publicKey_fromJsonLd(obj, options); + } } @@ -34076,11 +33835,9 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"assertionMethod\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#assertionMethod_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#assertionMethod_fromJsonLd(doc, options); + } } @@ -34177,11 +33934,9 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"assertionMethod\\"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) { - v = await this.#assertionMethod_fromJsonLd(obj, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#assertionMethod_fromJsonLd(obj, options); + } } @@ -34437,11 +34192,9 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"inbox\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#inbox_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#inbox_fromJsonLd(doc, options); + } } @@ -34674,11 +34427,9 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"outbox\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#outbox_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#outbox_fromJsonLd(doc, options); + } } @@ -34897,11 +34648,9 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"following\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#following_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#following_fromJsonLd(doc, options); + } } @@ -35123,11 +34872,9 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"followers\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#followers_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#followers_fromJsonLd(doc, options); + } } @@ -35347,11 +35094,9 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"liked\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#liked_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#liked_fromJsonLd(doc, options); + } } @@ -35569,11 +35314,9 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"featured\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#featured_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#featured_fromJsonLd(doc, options); + } } @@ -35791,11 +35534,9 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"featuredTags\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#featuredTags_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#featuredTags_fromJsonLd(doc, options); + } } @@ -36011,11 +35752,9 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"streams\\"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) { - v = await this.#stream_fromJsonLd(obj, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#stream_fromJsonLd(obj, options); + } } @@ -36341,11 +36080,9 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"movedTo\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#successor_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#successor_fromJsonLd(doc, options); + } } @@ -36599,11 +36336,9 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"alsoKnownAs\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#alias_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#alias_fromJsonLd(doc, options); + } } @@ -36700,11 +36435,9 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"alsoKnownAs\\"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) { - v = await this.#alias_fromJsonLd(obj, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#alias_fromJsonLd(obj, options); + } } @@ -36923,11 +36656,9 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"service\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#service_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#service_fromJsonLd(doc, options); + } } @@ -37024,11 +36755,9 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"service\\"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) { - v = await this.#service_fromJsonLd(obj, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#service_fromJsonLd(obj, options); + } } @@ -38061,14 +37790,9 @@ get preferredUsernames(): ((string | LanguageString))[] { // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - const _resolvedUrl = - values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) - ? new URL(values[\\"@id\\"], options.baseUrl) - : undefined; - if (options.baseUrl == null && _resolvedUrl != null) { - options = { ...options, baseUrl: _resolvedUrl }; + if (options.baseUrl == null && values[\\"@id\\"] != null) { + options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } - const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -38141,7 +37865,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await CryptographicKey.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _axq166E2eZADq34V4MYUc8KMZdC_publicKey.push(decoded); @@ -38174,7 +37898,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Multikey.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.push(decoded); @@ -38227,11 +37951,11 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#OrderedCollection\\") ? await OrderedCollection.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#OrderedCollectionPage\\") ? await OrderedCollectionPage.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -38268,11 +37992,11 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#OrderedCollection\\") ? await OrderedCollection.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#OrderedCollectionPage\\") ? await OrderedCollectionPage.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -38307,7 +38031,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _3yAv8jymNfNuJUDuBzJ1NQhdbAee_following.push(decoded); @@ -38340,7 +38064,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _BBCTgfphhsFzpVfKTykGSpBNwoA_followers.push(decoded); @@ -38373,7 +38097,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _3bgkPwJanyTCoVFM9ovRcus8tKkU_liked.push(decoded); @@ -38406,7 +38130,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _4N1vBJzXDf8NbBumeECQMFvKetja_featured.push(decoded); @@ -38439,7 +38163,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags.push(decoded); @@ -38472,7 +38196,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.push(decoded); @@ -38493,7 +38217,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Endpoints.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints.push(decoded); @@ -38600,23 +38324,23 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Application\\") ? await Application.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Group\\") ? await Group.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Organization\\") ? await Organization.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Person\\") ? await Person.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Service\\") ? await Service.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -38653,23 +38377,23 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Application\\") ? await Application.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Group\\") ? await Group.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Organization\\") ? await Organization.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Person\\") ? await Person.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Service\\") ? await Service.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -38704,7 +38428,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await DidService.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.push(decoded); @@ -39529,14 +39253,9 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - const _resolvedUrl = - values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) - ? new URL(values[\\"@id\\"], options.baseUrl) - : undefined; - if (options.baseUrl == null && _resolvedUrl != null) { - options = { ...options, baseUrl: _resolvedUrl }; + if (options.baseUrl == null && values[\\"@id\\"] != null) { + options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } - const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -39881,14 +39600,9 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - const _resolvedUrl = - values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) - ? new URL(values[\\"@id\\"], options.baseUrl) - : undefined; - if (options.baseUrl == null && _resolvedUrl != null) { - options = { ...options, baseUrl: _resolvedUrl }; + if (options.baseUrl == null && values[\\"@id\\"] != null) { + options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } - const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -40318,11 +40032,9 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu \\"quote\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#quote_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#quote_fromJsonLd(doc, options); + } } @@ -40561,11 +40273,9 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu \\"quoteAuthorization\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#quoteAuthorization_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#quoteAuthorization_fromJsonLd(doc, options); + } } @@ -40887,14 +40597,9 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - const _resolvedUrl = - values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) - ? new URL(values[\\"@id\\"], options.baseUrl) - : undefined; - if (options.baseUrl == null && _resolvedUrl != null) { - options = { ...options, baseUrl: _resolvedUrl }; + if (options.baseUrl == null && values[\\"@id\\"] != null) { + options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } - const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -40943,7 +40648,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote.push(decoded); @@ -41002,7 +40707,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await QuoteAuthorization.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization.push(decoded); @@ -41533,14 +41238,9 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - const _resolvedUrl = - values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) - ? new URL(values[\\"@id\\"], options.baseUrl) - : undefined; - if (options.baseUrl == null && _resolvedUrl != null) { - options = { ...options, baseUrl: _resolvedUrl }; + if (options.baseUrl == null && values[\\"@id\\"] != null) { + options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } - const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -41967,14 +41667,9 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - const _resolvedUrl = - values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) - ? new URL(values[\\"@id\\"], options.baseUrl) - : undefined; - if (options.baseUrl == null && _resolvedUrl != null) { - options = { ...options, baseUrl: _resolvedUrl }; + if (options.baseUrl == null && values[\\"@id\\"] != null) { + options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } - const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -42306,14 +42001,9 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - const _resolvedUrl = - values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) - ? new URL(values[\\"@id\\"], options.baseUrl) - : undefined; - if (options.baseUrl == null && _resolvedUrl != null) { - options = { ...options, baseUrl: _resolvedUrl }; + if (options.baseUrl == null && values[\\"@id\\"] != null) { + options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } - const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -42651,14 +42341,9 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - const _resolvedUrl = - values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) - ? new URL(values[\\"@id\\"], options.baseUrl) - : undefined; - if (options.baseUrl == null && _resolvedUrl != null) { - options = { ...options, baseUrl: _resolvedUrl }; + if (options.baseUrl == null && values[\\"@id\\"] != null) { + options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } - const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -43411,11 +43096,9 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu \\"current\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#current_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#current_fromJsonLd(doc, options); + } } @@ -43631,11 +43314,9 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu \\"first\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#first_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#first_fromJsonLd(doc, options); + } } @@ -43851,11 +43532,9 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu \\"last\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#last_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#last_fromJsonLd(doc, options); + } } @@ -44081,11 +43760,9 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu \\"items\\"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) { - v = await this.#item_fromJsonLd(obj, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#item_fromJsonLd(obj, options); + } } @@ -44301,11 +43978,9 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu \\"likesOf\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#likesOf_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#likesOf_fromJsonLd(doc, options); + } } @@ -44520,11 +44195,9 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu \\"sharesOf\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#sharesOf_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#sharesOf_fromJsonLd(doc, options); + } } @@ -44739,11 +44412,9 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu \\"repliesOf\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#repliesOf_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#repliesOf_fromJsonLd(doc, options); + } } @@ -44958,11 +44629,9 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu \\"inboxOf\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#inboxOf_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#inboxOf_fromJsonLd(doc, options); + } } @@ -45177,11 +44846,9 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu \\"outboxOf\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#outboxOf_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#outboxOf_fromJsonLd(doc, options); + } } @@ -45396,11 +45063,9 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu \\"followersOf\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#followersOf_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#followersOf_fromJsonLd(doc, options); + } } @@ -45615,11 +45280,9 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu \\"followingOf\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#followingOf_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#followingOf_fromJsonLd(doc, options); + } } @@ -45834,11 +45497,9 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu \\"likedOf\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#likedOf_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#likedOf_fromJsonLd(doc, options); + } } @@ -46503,14 +46164,9 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - const _resolvedUrl = - values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) - ? new URL(values[\\"@id\\"], options.baseUrl) - : undefined; - if (options.baseUrl == null && _resolvedUrl != null) { - options = { ...options, baseUrl: _resolvedUrl }; + if (options.baseUrl == null && values[\\"@id\\"] != null) { + options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } - const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -46589,7 +46245,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await CollectionPage.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _3UyUdxnyn6cDn53QKrh4MBiearma_current.push(decoded); @@ -46622,7 +46278,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await CollectionPage.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _J52RqweMe6hhv7RnLJMC8BExTE5_first.push(decoded); @@ -46655,7 +46311,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await CollectionPage.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _gyJJnyEFnuNVi1HFZKfAn3Hfn26_last.push(decoded); @@ -46691,12 +46347,12 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu && Array.isArray(v[\\"@type\\"])&& [\\"https://www.w3.org/ns/activitystreams#Object\\",\\"http://joinmastodon.org/ns#Emoji\\",\\"http://litepub.social/ns#ChatMessage\\",\\"https://gotosocial.org/ns#AnnounceAuthorization\\",\\"https://gotosocial.org/ns#LikeApproval\\",\\"https://gotosocial.org/ns#ReplyAuthorization\\",\\"https://w3id.org/fep/044f#QuoteAuthorization\\",\\"https://w3id.org/valueflows/ont/vf#Proposal\\",\\"https://www.w3.org/ns/activitystreams#Activity\\",\\"http://litepub.social/ns#EmojiReact\\",\\"https://gotosocial.org/ns#AnnounceRequest\\",\\"https://gotosocial.org/ns#LikeRequest\\",\\"https://gotosocial.org/ns#ReplyRequest\\",\\"https://w3id.org/fep/044f#QuoteRequest\\",\\"https://www.w3.org/ns/activitystreams#Accept\\",\\"https://www.w3.org/ns/activitystreams#TentativeAccept\\",\\"https://www.w3.org/ns/activitystreams#Add\\",\\"https://www.w3.org/ns/activitystreams#Announce\\",\\"https://www.w3.org/ns/activitystreams#Create\\",\\"https://www.w3.org/ns/activitystreams#Delete\\",\\"https://www.w3.org/ns/activitystreams#Dislike\\",\\"https://www.w3.org/ns/activitystreams#Flag\\",\\"https://www.w3.org/ns/activitystreams#Follow\\",\\"https://www.w3.org/ns/activitystreams#Ignore\\",\\"https://www.w3.org/ns/activitystreams#Block\\",\\"https://www.w3.org/ns/activitystreams#IntransitiveActivity\\",\\"https://www.w3.org/ns/activitystreams#Arrive\\",\\"https://www.w3.org/ns/activitystreams#Question\\",\\"https://www.w3.org/ns/activitystreams#Travel\\",\\"https://www.w3.org/ns/activitystreams#Join\\",\\"https://www.w3.org/ns/activitystreams#Leave\\",\\"https://www.w3.org/ns/activitystreams#Like\\",\\"https://www.w3.org/ns/activitystreams#Listen\\",\\"https://www.w3.org/ns/activitystreams#Move\\",\\"https://www.w3.org/ns/activitystreams#Offer\\",\\"https://www.w3.org/ns/activitystreams#Invite\\",\\"https://www.w3.org/ns/activitystreams#Read\\",\\"https://www.w3.org/ns/activitystreams#Reject\\",\\"https://www.w3.org/ns/activitystreams#TentativeReject\\",\\"https://www.w3.org/ns/activitystreams#Remove\\",\\"https://www.w3.org/ns/activitystreams#Undo\\",\\"https://www.w3.org/ns/activitystreams#Update\\",\\"https://www.w3.org/ns/activitystreams#View\\",\\"https://www.w3.org/ns/activitystreams#Application\\",\\"https://www.w3.org/ns/activitystreams#Article\\",\\"https://www.w3.org/ns/activitystreams#Collection\\",\\"https://www.w3.org/ns/activitystreams#CollectionPage\\",\\"https://www.w3.org/ns/activitystreams#OrderedCollectionPage\\",\\"https://www.w3.org/ns/activitystreams#OrderedCollection\\",\\"https://www.w3.org/ns/activitystreams#Document\\",\\"https://www.w3.org/ns/activitystreams#Audio\\",\\"https://www.w3.org/ns/activitystreams#Image\\",\\"https://www.w3.org/ns/activitystreams#Page\\",\\"https://www.w3.org/ns/activitystreams#Video\\",\\"https://www.w3.org/ns/activitystreams#Event\\",\\"https://www.w3.org/ns/activitystreams#Group\\",\\"https://www.w3.org/ns/activitystreams#Note\\",\\"https://www.w3.org/ns/activitystreams#Organization\\",\\"https://www.w3.org/ns/activitystreams#Person\\",\\"https://www.w3.org/ns/activitystreams#Place\\",\\"https://www.w3.org/ns/activitystreams#Profile\\",\\"https://www.w3.org/ns/activitystreams#Relationship\\",\\"https://www.w3.org/ns/activitystreams#Service\\",\\"https://www.w3.org/ns/activitystreams#Tombstone\\"].some( t => v[\\"@type\\"].includes(t)) ? await Object.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& [\\"https://www.w3.org/ns/activitystreams#Link\\",\\"https://www.w3.org/ns/activitystreams#Hashtag\\",\\"https://www.w3.org/ns/activitystreams#Mention\\"].some( t => v[\\"@type\\"].includes(t)) ? await Link.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -46731,7 +46387,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _4TB9Qd9ddtcZEpMfzbHhzafE6jaJ_likesOf.push(decoded); @@ -46764,7 +46420,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _3manzgeKiPsugpztKGiaUUwJ3ito_sharesOf.push(decoded); @@ -46797,7 +46453,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _3T3oGm3twpcQUcrnMisXQtmDZ32X_repliesOf.push(decoded); @@ -46830,7 +46486,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _2bvRkAFZjMfVD8jiUWZJr5YokSeN_inboxOf.push(decoded); @@ -46863,7 +46519,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _4AHzVZDxHjK6uEWa9UiKHGK34yYm_outboxOf.push(decoded); @@ -46896,7 +46552,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _41aoZ5M6yRUHy3Zx8q6iuZQxtopb_followersOf.push(decoded); @@ -46929,7 +46585,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _2nXT2Ah42UjEEQF5oJQ39CbKB1xj_followingOf.push(decoded); @@ -46962,7 +46618,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _2bsySzmT3qEZcrnoe3tZ5xBjXSju_likedOf.push(decoded); @@ -47642,11 +47298,9 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu \\"partOf\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#partOf_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#partOf_fromJsonLd(doc, options); + } } @@ -47860,11 +47514,9 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu \\"next\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#next_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#next_fromJsonLd(doc, options); + } } @@ -48079,11 +47731,9 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu \\"prev\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#prev_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#prev_fromJsonLd(doc, options); + } } @@ -48395,14 +48045,9 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - const _resolvedUrl = - values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) - ? new URL(values[\\"@id\\"], options.baseUrl) - : undefined; - if (options.baseUrl == null && _resolvedUrl != null) { - options = { ...options, baseUrl: _resolvedUrl }; + if (options.baseUrl == null && values[\\"@id\\"] != null) { + options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } - const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -48455,7 +48100,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _2kWgBhQKjEauxx8C6qF3ZQamK4Le_partOf.push(decoded); @@ -48488,7 +48133,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await CollectionPage.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _3BT4kQLcXhHx7TAWaNDKh8nFn9eY_next.push(decoded); @@ -48521,7 +48166,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await CollectionPage.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _3b8yG8tDNzQFFEnWhCc13G8eHooA_prev.push(decoded); @@ -48895,14 +48540,9 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - const _resolvedUrl = - values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) - ? new URL(values[\\"@id\\"], options.baseUrl) - : undefined; - if (options.baseUrl == null && _resolvedUrl != null) { - options = { ...options, baseUrl: _resolvedUrl }; + if (options.baseUrl == null && values[\\"@id\\"] != null) { + options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } - const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -49234,14 +48874,9 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - const _resolvedUrl = - values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) - ? new URL(values[\\"@id\\"], options.baseUrl) - : undefined; - if (options.baseUrl == null && _resolvedUrl != null) { - options = { ...options, baseUrl: _resolvedUrl }; + if (options.baseUrl == null && values[\\"@id\\"] != null) { + options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } - const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -49571,14 +49206,9 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - const _resolvedUrl = - values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) - ? new URL(values[\\"@id\\"], options.baseUrl) - : undefined; - if (options.baseUrl == null && _resolvedUrl != null) { - options = { ...options, baseUrl: _resolvedUrl }; + if (options.baseUrl == null && values[\\"@id\\"] != null) { + options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } - const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -50370,14 +50000,9 @@ proxyUrl?: URL | null;oauthAuthorizationEndpoint?: URL | null;oauthTokenEndpoint // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - const _resolvedUrl = - values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) - ? new URL(values[\\"@id\\"], options.baseUrl) - : undefined; - if (options.baseUrl == null && _resolvedUrl != null) { - options = { ...options, baseUrl: _resolvedUrl }; + if (options.baseUrl == null && values[\\"@id\\"] != null) { + options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } - const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -50420,9 +50045,9 @@ proxyUrl?: URL | null;oauthAuthorizationEndpoint?: URL | null;oauthTokenEndpoint : \\"\\" ) ) - : URL.canParse(v[\\"@id\\"]) && _baseUrl + : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) ? new URL(v[\\"@id\\"]) - : new URL(v[\\"@id\\"], _baseUrl); + : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"]))); if (typeof decoded === \\"undefined\\") continue; _2JCYDbSxEHCCLdBYed33cCETfGyR_proxyUrl.push(decoded); } @@ -50453,9 +50078,9 @@ proxyUrl?: URL | null;oauthAuthorizationEndpoint?: URL | null;oauthTokenEndpoint : \\"\\" ) ) - : URL.canParse(v[\\"@id\\"]) && _baseUrl + : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) ? new URL(v[\\"@id\\"]) - : new URL(v[\\"@id\\"], _baseUrl); + : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"]))); if (typeof decoded === \\"undefined\\") continue; _25S6UmgzDead8hxL5sQFezZTAusd_oauthAuthorizationEndpoint.push(decoded); } @@ -50486,9 +50111,9 @@ proxyUrl?: URL | null;oauthAuthorizationEndpoint?: URL | null;oauthTokenEndpoint : \\"\\" ) ) - : URL.canParse(v[\\"@id\\"]) && _baseUrl + : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) ? new URL(v[\\"@id\\"]) - : new URL(v[\\"@id\\"], _baseUrl); + : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"]))); if (typeof decoded === \\"undefined\\") continue; _iAMxqrSba7yBCRB1FZ5kEVdKEZ3_oauthTokenEndpoint.push(decoded); } @@ -50519,9 +50144,9 @@ proxyUrl?: URL | null;oauthAuthorizationEndpoint?: URL | null;oauthTokenEndpoint : \\"\\" ) ) - : URL.canParse(v[\\"@id\\"]) && _baseUrl + : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) ? new URL(v[\\"@id\\"]) - : new URL(v[\\"@id\\"], _baseUrl); + : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"]))); if (typeof decoded === \\"undefined\\") continue; _8Bx9qN8oU7Bpt2xi6khaxWp1gMr_provideClientKey.push(decoded); } @@ -50552,9 +50177,9 @@ proxyUrl?: URL | null;oauthAuthorizationEndpoint?: URL | null;oauthTokenEndpoint : \\"\\" ) ) - : URL.canParse(v[\\"@id\\"]) && _baseUrl + : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) ? new URL(v[\\"@id\\"]) - : new URL(v[\\"@id\\"], _baseUrl); + : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"]))); if (typeof decoded === \\"undefined\\") continue; _3dU7PMVQZJpsCpo2F4RQXxBXdPmS_signClientKey.push(decoded); } @@ -50585,9 +50210,9 @@ proxyUrl?: URL | null;oauthAuthorizationEndpoint?: URL | null;oauthTokenEndpoint : \\"\\" ) ) - : URL.canParse(v[\\"@id\\"]) && _baseUrl + : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) ? new URL(v[\\"@id\\"]) - : new URL(v[\\"@id\\"], _baseUrl); + : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"]))); if (typeof decoded === \\"undefined\\") continue; _3JprUSDLVqqX4dwHRi37qGZZCRCc_sharedInbox.push(decoded); } @@ -51040,14 +50665,9 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - const _resolvedUrl = - values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) - ? new URL(values[\\"@id\\"], options.baseUrl) - : undefined; - if (options.baseUrl == null && _resolvedUrl != null) { - options = { ...options, baseUrl: _resolvedUrl }; + if (options.baseUrl == null && values[\\"@id\\"] != null) { + options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } - const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -51380,14 +51000,9 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - const _resolvedUrl = - values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) - ? new URL(values[\\"@id\\"], options.baseUrl) - : undefined; - if (options.baseUrl == null && _resolvedUrl != null) { - options = { ...options, baseUrl: _resolvedUrl }; + if (options.baseUrl == null && values[\\"@id\\"] != null) { + options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } - const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -51721,14 +51336,9 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - const _resolvedUrl = - values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) - ? new URL(values[\\"@id\\"], options.baseUrl) - : undefined; - if (options.baseUrl == null && _resolvedUrl != null) { - options = { ...options, baseUrl: _resolvedUrl }; + if (options.baseUrl == null && values[\\"@id\\"] != null) { + options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } - const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -53002,11 +52612,9 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"publicKey\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#publicKey_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#publicKey_fromJsonLd(doc, options); + } } @@ -53099,11 +52707,9 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"publicKey\\"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) { - v = await this.#publicKey_fromJsonLd(obj, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#publicKey_fromJsonLd(obj, options); + } } @@ -53322,11 +52928,9 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"assertionMethod\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#assertionMethod_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#assertionMethod_fromJsonLd(doc, options); + } } @@ -53423,11 +53027,9 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"assertionMethod\\"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) { - v = await this.#assertionMethod_fromJsonLd(obj, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#assertionMethod_fromJsonLd(obj, options); + } } @@ -53683,11 +53285,9 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"inbox\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#inbox_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#inbox_fromJsonLd(doc, options); + } } @@ -53920,11 +53520,9 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"outbox\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#outbox_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#outbox_fromJsonLd(doc, options); + } } @@ -54143,11 +53741,9 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"following\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#following_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#following_fromJsonLd(doc, options); + } } @@ -54369,11 +53965,9 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"followers\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#followers_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#followers_fromJsonLd(doc, options); + } } @@ -54593,11 +54187,9 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"liked\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#liked_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#liked_fromJsonLd(doc, options); + } } @@ -54815,11 +54407,9 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"featured\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#featured_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#featured_fromJsonLd(doc, options); + } } @@ -55037,11 +54627,9 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"featuredTags\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#featuredTags_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#featuredTags_fromJsonLd(doc, options); + } } @@ -55257,11 +54845,9 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"streams\\"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) { - v = await this.#stream_fromJsonLd(obj, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#stream_fromJsonLd(obj, options); + } } @@ -55587,11 +55173,9 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"movedTo\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#successor_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#successor_fromJsonLd(doc, options); + } } @@ -55845,11 +55429,9 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"alsoKnownAs\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#alias_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#alias_fromJsonLd(doc, options); + } } @@ -55946,11 +55528,9 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"alsoKnownAs\\"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) { - v = await this.#alias_fromJsonLd(obj, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#alias_fromJsonLd(obj, options); + } } @@ -56169,11 +55749,9 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"service\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#service_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#service_fromJsonLd(doc, options); + } } @@ -56270,11 +55848,9 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"service\\"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) { - v = await this.#service_fromJsonLd(obj, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#service_fromJsonLd(obj, options); + } } @@ -57307,14 +56883,9 @@ get preferredUsernames(): ((string | LanguageString))[] { // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - const _resolvedUrl = - values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) - ? new URL(values[\\"@id\\"], options.baseUrl) - : undefined; - if (options.baseUrl == null && _resolvedUrl != null) { - options = { ...options, baseUrl: _resolvedUrl }; + if (options.baseUrl == null && values[\\"@id\\"] != null) { + options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } - const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -57387,7 +56958,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await CryptographicKey.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _axq166E2eZADq34V4MYUc8KMZdC_publicKey.push(decoded); @@ -57420,7 +56991,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Multikey.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.push(decoded); @@ -57473,11 +57044,11 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#OrderedCollection\\") ? await OrderedCollection.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#OrderedCollectionPage\\") ? await OrderedCollectionPage.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -57514,11 +57085,11 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#OrderedCollection\\") ? await OrderedCollection.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#OrderedCollectionPage\\") ? await OrderedCollectionPage.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -57553,7 +57124,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _3yAv8jymNfNuJUDuBzJ1NQhdbAee_following.push(decoded); @@ -57586,7 +57157,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _BBCTgfphhsFzpVfKTykGSpBNwoA_followers.push(decoded); @@ -57619,7 +57190,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _3bgkPwJanyTCoVFM9ovRcus8tKkU_liked.push(decoded); @@ -57652,7 +57223,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _4N1vBJzXDf8NbBumeECQMFvKetja_featured.push(decoded); @@ -57685,7 +57256,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags.push(decoded); @@ -57718,7 +57289,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.push(decoded); @@ -57739,7 +57310,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Endpoints.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints.push(decoded); @@ -57846,23 +57417,23 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Application\\") ? await Application.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Group\\") ? await Group.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Organization\\") ? await Organization.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Person\\") ? await Person.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Service\\") ? await Service.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -57899,23 +57470,23 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Application\\") ? await Application.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Group\\") ? await Group.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Organization\\") ? await Organization.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Person\\") ? await Person.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Service\\") ? await Service.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -57950,7 +57521,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await DidService.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.push(decoded); @@ -59287,11 +58858,9 @@ get names(): ((string | LanguageString))[] { \\"preview\\"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) { - v = await this.#preview_fromJsonLd(obj, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#preview_fromJsonLd(obj, options); + } } @@ -59745,14 +59314,9 @@ get names(): ((string | LanguageString))[] { // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - const _resolvedUrl = - values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) - ? new URL(values[\\"@id\\"], options.baseUrl) - : undefined; - if (options.baseUrl == null && _resolvedUrl != null) { - options = { ...options, baseUrl: _resolvedUrl }; + if (options.baseUrl == null && values[\\"@id\\"] != null) { + options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } - const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -59803,9 +59367,9 @@ get names(): ((string | LanguageString))[] { : \\"\\" ) ) - : URL.canParse(v[\\"@id\\"]) && _baseUrl + : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) ? new URL(v[\\"@id\\"]) - : new URL(v[\\"@id\\"], _baseUrl); + : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"]))); if (typeof decoded === \\"undefined\\") continue; _pVjLsybKQdmkjuU7MHjiVmNnuj7_href.push(decoded); } @@ -59954,12 +59518,12 @@ get names(): ((string | LanguageString))[] { && Array.isArray(v[\\"@type\\"])&& [\\"https://www.w3.org/ns/activitystreams#Link\\",\\"https://www.w3.org/ns/activitystreams#Hashtag\\",\\"https://www.w3.org/ns/activitystreams#Mention\\"].some( t => v[\\"@type\\"].includes(t)) ? await Link.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& [\\"https://www.w3.org/ns/activitystreams#Object\\",\\"http://joinmastodon.org/ns#Emoji\\",\\"http://litepub.social/ns#ChatMessage\\",\\"https://gotosocial.org/ns#AnnounceAuthorization\\",\\"https://gotosocial.org/ns#LikeApproval\\",\\"https://gotosocial.org/ns#ReplyAuthorization\\",\\"https://w3id.org/fep/044f#QuoteAuthorization\\",\\"https://w3id.org/valueflows/ont/vf#Proposal\\",\\"https://www.w3.org/ns/activitystreams#Activity\\",\\"http://litepub.social/ns#EmojiReact\\",\\"https://gotosocial.org/ns#AnnounceRequest\\",\\"https://gotosocial.org/ns#LikeRequest\\",\\"https://gotosocial.org/ns#ReplyRequest\\",\\"https://w3id.org/fep/044f#QuoteRequest\\",\\"https://www.w3.org/ns/activitystreams#Accept\\",\\"https://www.w3.org/ns/activitystreams#TentativeAccept\\",\\"https://www.w3.org/ns/activitystreams#Add\\",\\"https://www.w3.org/ns/activitystreams#Announce\\",\\"https://www.w3.org/ns/activitystreams#Create\\",\\"https://www.w3.org/ns/activitystreams#Delete\\",\\"https://www.w3.org/ns/activitystreams#Dislike\\",\\"https://www.w3.org/ns/activitystreams#Flag\\",\\"https://www.w3.org/ns/activitystreams#Follow\\",\\"https://www.w3.org/ns/activitystreams#Ignore\\",\\"https://www.w3.org/ns/activitystreams#Block\\",\\"https://www.w3.org/ns/activitystreams#IntransitiveActivity\\",\\"https://www.w3.org/ns/activitystreams#Arrive\\",\\"https://www.w3.org/ns/activitystreams#Question\\",\\"https://www.w3.org/ns/activitystreams#Travel\\",\\"https://www.w3.org/ns/activitystreams#Join\\",\\"https://www.w3.org/ns/activitystreams#Leave\\",\\"https://www.w3.org/ns/activitystreams#Like\\",\\"https://www.w3.org/ns/activitystreams#Listen\\",\\"https://www.w3.org/ns/activitystreams#Move\\",\\"https://www.w3.org/ns/activitystreams#Offer\\",\\"https://www.w3.org/ns/activitystreams#Invite\\",\\"https://www.w3.org/ns/activitystreams#Read\\",\\"https://www.w3.org/ns/activitystreams#Reject\\",\\"https://www.w3.org/ns/activitystreams#TentativeReject\\",\\"https://www.w3.org/ns/activitystreams#Remove\\",\\"https://www.w3.org/ns/activitystreams#Undo\\",\\"https://www.w3.org/ns/activitystreams#Update\\",\\"https://www.w3.org/ns/activitystreams#View\\",\\"https://www.w3.org/ns/activitystreams#Application\\",\\"https://www.w3.org/ns/activitystreams#Article\\",\\"https://www.w3.org/ns/activitystreams#Collection\\",\\"https://www.w3.org/ns/activitystreams#CollectionPage\\",\\"https://www.w3.org/ns/activitystreams#OrderedCollectionPage\\",\\"https://www.w3.org/ns/activitystreams#OrderedCollection\\",\\"https://www.w3.org/ns/activitystreams#Document\\",\\"https://www.w3.org/ns/activitystreams#Audio\\",\\"https://www.w3.org/ns/activitystreams#Image\\",\\"https://www.w3.org/ns/activitystreams#Page\\",\\"https://www.w3.org/ns/activitystreams#Video\\",\\"https://www.w3.org/ns/activitystreams#Event\\",\\"https://www.w3.org/ns/activitystreams#Group\\",\\"https://www.w3.org/ns/activitystreams#Note\\",\\"https://www.w3.org/ns/activitystreams#Organization\\",\\"https://www.w3.org/ns/activitystreams#Person\\",\\"https://www.w3.org/ns/activitystreams#Place\\",\\"https://www.w3.org/ns/activitystreams#Profile\\",\\"https://www.w3.org/ns/activitystreams#Relationship\\",\\"https://www.w3.org/ns/activitystreams#Service\\",\\"https://www.w3.org/ns/activitystreams#Tombstone\\"].some( t => v[\\"@type\\"].includes(t)) ? await Object.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -60433,14 +59997,9 @@ names?: ((string | LanguageString))[];language?: Intl.Locale | null;height?: num // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - const _resolvedUrl = - values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) - ? new URL(values[\\"@id\\"], options.baseUrl) - : undefined; - if (options.baseUrl == null && _resolvedUrl != null) { - options = { ...options, baseUrl: _resolvedUrl }; + if (options.baseUrl == null && values[\\"@id\\"] != null) { + options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } - const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -60775,14 +60334,9 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - const _resolvedUrl = - values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) - ? new URL(values[\\"@id\\"], options.baseUrl) - : undefined; - if (options.baseUrl == null && _resolvedUrl != null) { - options = { ...options, baseUrl: _resolvedUrl }; + if (options.baseUrl == null && values[\\"@id\\"] != null) { + options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } - const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -61115,14 +60669,9 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - const _resolvedUrl = - values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) - ? new URL(values[\\"@id\\"], options.baseUrl) - : undefined; - if (options.baseUrl == null && _resolvedUrl != null) { - options = { ...options, baseUrl: _resolvedUrl }; + if (options.baseUrl == null && values[\\"@id\\"] != null) { + options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } - const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -61458,14 +61007,9 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - const _resolvedUrl = - values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) - ? new URL(values[\\"@id\\"], options.baseUrl) - : undefined; - if (options.baseUrl == null && _resolvedUrl != null) { - options = { ...options, baseUrl: _resolvedUrl }; + if (options.baseUrl == null && values[\\"@id\\"] != null) { + options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } - const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -61797,14 +61341,9 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - const _resolvedUrl = - values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) - ? new URL(values[\\"@id\\"], options.baseUrl) - : undefined; - if (options.baseUrl == null && _resolvedUrl != null) { - options = { ...options, baseUrl: _resolvedUrl }; + if (options.baseUrl == null && values[\\"@id\\"] != null) { + options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } - const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -62136,14 +61675,9 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - const _resolvedUrl = - values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) - ? new URL(values[\\"@id\\"], options.baseUrl) - : undefined; - if (options.baseUrl == null && _resolvedUrl != null) { - options = { ...options, baseUrl: _resolvedUrl }; + if (options.baseUrl == null && values[\\"@id\\"] != null) { + options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } - const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -62475,14 +62009,9 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - const _resolvedUrl = - values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) - ? new URL(values[\\"@id\\"], options.baseUrl) - : undefined; - if (options.baseUrl == null && _resolvedUrl != null) { - options = { ...options, baseUrl: _resolvedUrl }; + if (options.baseUrl == null && values[\\"@id\\"] != null) { + options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } - const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -62812,14 +62341,9 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - const _resolvedUrl = - values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) - ? new URL(values[\\"@id\\"], options.baseUrl) - : undefined; - if (options.baseUrl == null && _resolvedUrl != null) { - options = { ...options, baseUrl: _resolvedUrl }; + if (options.baseUrl == null && values[\\"@id\\"] != null) { + options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } - const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -63115,14 +62639,9 @@ names?: ((string | LanguageString))[];language?: Intl.Locale | null;height?: num // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - const _resolvedUrl = - values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) - ? new URL(values[\\"@id\\"], options.baseUrl) - : undefined; - if (options.baseUrl == null && _resolvedUrl != null) { - options = { ...options, baseUrl: _resolvedUrl }; + if (options.baseUrl == null && values[\\"@id\\"] != null) { + options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } - const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -63455,14 +62974,9 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - const _resolvedUrl = - values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) - ? new URL(values[\\"@id\\"], options.baseUrl) - : undefined; - if (options.baseUrl == null && _resolvedUrl != null) { - options = { ...options, baseUrl: _resolvedUrl }; + if (options.baseUrl == null && values[\\"@id\\"] != null) { + options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } - const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -63894,11 +63408,9 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu \\"quote\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#quote_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#quote_fromJsonLd(doc, options); + } } @@ -64137,11 +63649,9 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu \\"quoteAuthorization\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#quoteAuthorization_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#quoteAuthorization_fromJsonLd(doc, options); + } } @@ -64463,14 +63973,9 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - const _resolvedUrl = - values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) - ? new URL(values[\\"@id\\"], options.baseUrl) - : undefined; - if (options.baseUrl == null && _resolvedUrl != null) { - options = { ...options, baseUrl: _resolvedUrl }; + if (options.baseUrl == null && values[\\"@id\\"] != null) { + options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } - const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -64519,7 +64024,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote.push(decoded); @@ -64578,7 +64083,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await QuoteAuthorization.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization.push(decoded); @@ -65020,11 +64525,9 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu \\"orderedItems\\"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) { - v = await this.#item_fromJsonLd(obj, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#item_fromJsonLd(obj, options); + } } @@ -65268,14 +64771,9 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - const _resolvedUrl = - values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) - ? new URL(values[\\"@id\\"], options.baseUrl) - : undefined; - if (options.baseUrl == null && _resolvedUrl != null) { - options = { ...options, baseUrl: _resolvedUrl }; + if (options.baseUrl == null && values[\\"@id\\"] != null) { + options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } - const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -65327,12 +64825,12 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu && Array.isArray(v[\\"@type\\"])&& [\\"https://www.w3.org/ns/activitystreams#Object\\",\\"http://joinmastodon.org/ns#Emoji\\",\\"http://litepub.social/ns#ChatMessage\\",\\"https://gotosocial.org/ns#AnnounceAuthorization\\",\\"https://gotosocial.org/ns#LikeApproval\\",\\"https://gotosocial.org/ns#ReplyAuthorization\\",\\"https://w3id.org/fep/044f#QuoteAuthorization\\",\\"https://w3id.org/valueflows/ont/vf#Proposal\\",\\"https://www.w3.org/ns/activitystreams#Activity\\",\\"http://litepub.social/ns#EmojiReact\\",\\"https://gotosocial.org/ns#AnnounceRequest\\",\\"https://gotosocial.org/ns#LikeRequest\\",\\"https://gotosocial.org/ns#ReplyRequest\\",\\"https://w3id.org/fep/044f#QuoteRequest\\",\\"https://www.w3.org/ns/activitystreams#Accept\\",\\"https://www.w3.org/ns/activitystreams#TentativeAccept\\",\\"https://www.w3.org/ns/activitystreams#Add\\",\\"https://www.w3.org/ns/activitystreams#Announce\\",\\"https://www.w3.org/ns/activitystreams#Create\\",\\"https://www.w3.org/ns/activitystreams#Delete\\",\\"https://www.w3.org/ns/activitystreams#Dislike\\",\\"https://www.w3.org/ns/activitystreams#Flag\\",\\"https://www.w3.org/ns/activitystreams#Follow\\",\\"https://www.w3.org/ns/activitystreams#Ignore\\",\\"https://www.w3.org/ns/activitystreams#Block\\",\\"https://www.w3.org/ns/activitystreams#IntransitiveActivity\\",\\"https://www.w3.org/ns/activitystreams#Arrive\\",\\"https://www.w3.org/ns/activitystreams#Question\\",\\"https://www.w3.org/ns/activitystreams#Travel\\",\\"https://www.w3.org/ns/activitystreams#Join\\",\\"https://www.w3.org/ns/activitystreams#Leave\\",\\"https://www.w3.org/ns/activitystreams#Like\\",\\"https://www.w3.org/ns/activitystreams#Listen\\",\\"https://www.w3.org/ns/activitystreams#Move\\",\\"https://www.w3.org/ns/activitystreams#Offer\\",\\"https://www.w3.org/ns/activitystreams#Invite\\",\\"https://www.w3.org/ns/activitystreams#Read\\",\\"https://www.w3.org/ns/activitystreams#Reject\\",\\"https://www.w3.org/ns/activitystreams#TentativeReject\\",\\"https://www.w3.org/ns/activitystreams#Remove\\",\\"https://www.w3.org/ns/activitystreams#Undo\\",\\"https://www.w3.org/ns/activitystreams#Update\\",\\"https://www.w3.org/ns/activitystreams#View\\",\\"https://www.w3.org/ns/activitystreams#Application\\",\\"https://www.w3.org/ns/activitystreams#Article\\",\\"https://www.w3.org/ns/activitystreams#Collection\\",\\"https://www.w3.org/ns/activitystreams#CollectionPage\\",\\"https://www.w3.org/ns/activitystreams#OrderedCollectionPage\\",\\"https://www.w3.org/ns/activitystreams#OrderedCollection\\",\\"https://www.w3.org/ns/activitystreams#Document\\",\\"https://www.w3.org/ns/activitystreams#Audio\\",\\"https://www.w3.org/ns/activitystreams#Image\\",\\"https://www.w3.org/ns/activitystreams#Page\\",\\"https://www.w3.org/ns/activitystreams#Video\\",\\"https://www.w3.org/ns/activitystreams#Event\\",\\"https://www.w3.org/ns/activitystreams#Group\\",\\"https://www.w3.org/ns/activitystreams#Note\\",\\"https://www.w3.org/ns/activitystreams#Organization\\",\\"https://www.w3.org/ns/activitystreams#Person\\",\\"https://www.w3.org/ns/activitystreams#Place\\",\\"https://www.w3.org/ns/activitystreams#Profile\\",\\"https://www.w3.org/ns/activitystreams#Relationship\\",\\"https://www.w3.org/ns/activitystreams#Service\\",\\"https://www.w3.org/ns/activitystreams#Tombstone\\"].some( t => v[\\"@type\\"].includes(t)) ? await Object.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& [\\"https://www.w3.org/ns/activitystreams#Link\\",\\"https://www.w3.org/ns/activitystreams#Hashtag\\",\\"https://www.w3.org/ns/activitystreams#Mention\\"].some( t => v[\\"@type\\"].includes(t)) ? await Link.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -65766,11 +65264,9 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu \\"orderedItems\\"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) { - v = await this.#item_fromJsonLd(obj, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#item_fromJsonLd(obj, options); + } } @@ -66063,14 +65559,9 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - const _resolvedUrl = - values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) - ? new URL(values[\\"@id\\"], options.baseUrl) - : undefined; - if (options.baseUrl == null && _resolvedUrl != null) { - options = { ...options, baseUrl: _resolvedUrl }; + if (options.baseUrl == null && values[\\"@id\\"] != null) { + options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } - const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -66122,12 +65613,12 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu && Array.isArray(v[\\"@type\\"])&& [\\"https://www.w3.org/ns/activitystreams#Object\\",\\"http://joinmastodon.org/ns#Emoji\\",\\"http://litepub.social/ns#ChatMessage\\",\\"https://gotosocial.org/ns#AnnounceAuthorization\\",\\"https://gotosocial.org/ns#LikeApproval\\",\\"https://gotosocial.org/ns#ReplyAuthorization\\",\\"https://w3id.org/fep/044f#QuoteAuthorization\\",\\"https://w3id.org/valueflows/ont/vf#Proposal\\",\\"https://www.w3.org/ns/activitystreams#Activity\\",\\"http://litepub.social/ns#EmojiReact\\",\\"https://gotosocial.org/ns#AnnounceRequest\\",\\"https://gotosocial.org/ns#LikeRequest\\",\\"https://gotosocial.org/ns#ReplyRequest\\",\\"https://w3id.org/fep/044f#QuoteRequest\\",\\"https://www.w3.org/ns/activitystreams#Accept\\",\\"https://www.w3.org/ns/activitystreams#TentativeAccept\\",\\"https://www.w3.org/ns/activitystreams#Add\\",\\"https://www.w3.org/ns/activitystreams#Announce\\",\\"https://www.w3.org/ns/activitystreams#Create\\",\\"https://www.w3.org/ns/activitystreams#Delete\\",\\"https://www.w3.org/ns/activitystreams#Dislike\\",\\"https://www.w3.org/ns/activitystreams#Flag\\",\\"https://www.w3.org/ns/activitystreams#Follow\\",\\"https://www.w3.org/ns/activitystreams#Ignore\\",\\"https://www.w3.org/ns/activitystreams#Block\\",\\"https://www.w3.org/ns/activitystreams#IntransitiveActivity\\",\\"https://www.w3.org/ns/activitystreams#Arrive\\",\\"https://www.w3.org/ns/activitystreams#Question\\",\\"https://www.w3.org/ns/activitystreams#Travel\\",\\"https://www.w3.org/ns/activitystreams#Join\\",\\"https://www.w3.org/ns/activitystreams#Leave\\",\\"https://www.w3.org/ns/activitystreams#Like\\",\\"https://www.w3.org/ns/activitystreams#Listen\\",\\"https://www.w3.org/ns/activitystreams#Move\\",\\"https://www.w3.org/ns/activitystreams#Offer\\",\\"https://www.w3.org/ns/activitystreams#Invite\\",\\"https://www.w3.org/ns/activitystreams#Read\\",\\"https://www.w3.org/ns/activitystreams#Reject\\",\\"https://www.w3.org/ns/activitystreams#TentativeReject\\",\\"https://www.w3.org/ns/activitystreams#Remove\\",\\"https://www.w3.org/ns/activitystreams#Undo\\",\\"https://www.w3.org/ns/activitystreams#Update\\",\\"https://www.w3.org/ns/activitystreams#View\\",\\"https://www.w3.org/ns/activitystreams#Application\\",\\"https://www.w3.org/ns/activitystreams#Article\\",\\"https://www.w3.org/ns/activitystreams#Collection\\",\\"https://www.w3.org/ns/activitystreams#CollectionPage\\",\\"https://www.w3.org/ns/activitystreams#OrderedCollectionPage\\",\\"https://www.w3.org/ns/activitystreams#OrderedCollection\\",\\"https://www.w3.org/ns/activitystreams#Document\\",\\"https://www.w3.org/ns/activitystreams#Audio\\",\\"https://www.w3.org/ns/activitystreams#Image\\",\\"https://www.w3.org/ns/activitystreams#Page\\",\\"https://www.w3.org/ns/activitystreams#Video\\",\\"https://www.w3.org/ns/activitystreams#Event\\",\\"https://www.w3.org/ns/activitystreams#Group\\",\\"https://www.w3.org/ns/activitystreams#Note\\",\\"https://www.w3.org/ns/activitystreams#Organization\\",\\"https://www.w3.org/ns/activitystreams#Person\\",\\"https://www.w3.org/ns/activitystreams#Place\\",\\"https://www.w3.org/ns/activitystreams#Profile\\",\\"https://www.w3.org/ns/activitystreams#Relationship\\",\\"https://www.w3.org/ns/activitystreams#Service\\",\\"https://www.w3.org/ns/activitystreams#Tombstone\\"].some( t => v[\\"@type\\"].includes(t)) ? await Object.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& [\\"https://www.w3.org/ns/activitystreams#Link\\",\\"https://www.w3.org/ns/activitystreams#Hashtag\\",\\"https://www.w3.org/ns/activitystreams#Mention\\"].some( t => v[\\"@type\\"].includes(t)) ? await Link.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -67447,11 +66938,9 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"publicKey\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#publicKey_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#publicKey_fromJsonLd(doc, options); + } } @@ -67544,11 +67033,9 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"publicKey\\"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) { - v = await this.#publicKey_fromJsonLd(obj, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#publicKey_fromJsonLd(obj, options); + } } @@ -67767,11 +67254,9 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"assertionMethod\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#assertionMethod_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#assertionMethod_fromJsonLd(doc, options); + } } @@ -67868,11 +67353,9 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"assertionMethod\\"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) { - v = await this.#assertionMethod_fromJsonLd(obj, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#assertionMethod_fromJsonLd(obj, options); + } } @@ -68128,11 +67611,9 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"inbox\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#inbox_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#inbox_fromJsonLd(doc, options); + } } @@ -68365,11 +67846,9 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"outbox\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#outbox_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#outbox_fromJsonLd(doc, options); + } } @@ -68588,11 +68067,9 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"following\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#following_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#following_fromJsonLd(doc, options); + } } @@ -68814,11 +68291,9 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"followers\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#followers_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#followers_fromJsonLd(doc, options); + } } @@ -69038,11 +68513,9 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"liked\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#liked_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#liked_fromJsonLd(doc, options); + } } @@ -69260,11 +68733,9 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"featured\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#featured_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#featured_fromJsonLd(doc, options); + } } @@ -69482,11 +68953,9 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"featuredTags\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#featuredTags_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#featuredTags_fromJsonLd(doc, options); + } } @@ -69702,11 +69171,9 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"streams\\"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) { - v = await this.#stream_fromJsonLd(obj, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#stream_fromJsonLd(obj, options); + } } @@ -70032,11 +69499,9 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"movedTo\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#successor_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#successor_fromJsonLd(doc, options); + } } @@ -70290,11 +69755,9 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"alsoKnownAs\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#alias_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#alias_fromJsonLd(doc, options); + } } @@ -70391,11 +69854,9 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"alsoKnownAs\\"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) { - v = await this.#alias_fromJsonLd(obj, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#alias_fromJsonLd(obj, options); + } } @@ -70614,11 +70075,9 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"service\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#service_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#service_fromJsonLd(doc, options); + } } @@ -70715,11 +70174,9 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"service\\"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) { - v = await this.#service_fromJsonLd(obj, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#service_fromJsonLd(obj, options); + } } @@ -71752,14 +71209,9 @@ get preferredUsernames(): ((string | LanguageString))[] { // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - const _resolvedUrl = - values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) - ? new URL(values[\\"@id\\"], options.baseUrl) - : undefined; - if (options.baseUrl == null && _resolvedUrl != null) { - options = { ...options, baseUrl: _resolvedUrl }; + if (options.baseUrl == null && values[\\"@id\\"] != null) { + options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } - const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -71832,7 +71284,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await CryptographicKey.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _axq166E2eZADq34V4MYUc8KMZdC_publicKey.push(decoded); @@ -71865,7 +71317,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Multikey.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.push(decoded); @@ -71918,11 +71370,11 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#OrderedCollection\\") ? await OrderedCollection.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#OrderedCollectionPage\\") ? await OrderedCollectionPage.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -71959,11 +71411,11 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#OrderedCollection\\") ? await OrderedCollection.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#OrderedCollectionPage\\") ? await OrderedCollectionPage.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -71998,7 +71450,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _3yAv8jymNfNuJUDuBzJ1NQhdbAee_following.push(decoded); @@ -72031,7 +71483,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _BBCTgfphhsFzpVfKTykGSpBNwoA_followers.push(decoded); @@ -72064,7 +71516,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _3bgkPwJanyTCoVFM9ovRcus8tKkU_liked.push(decoded); @@ -72097,7 +71549,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _4N1vBJzXDf8NbBumeECQMFvKetja_featured.push(decoded); @@ -72130,7 +71582,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags.push(decoded); @@ -72163,7 +71615,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.push(decoded); @@ -72184,7 +71636,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Endpoints.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints.push(decoded); @@ -72291,23 +71743,23 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Application\\") ? await Application.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Group\\") ? await Group.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Organization\\") ? await Organization.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Person\\") ? await Person.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Service\\") ? await Service.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -72344,23 +71796,23 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Application\\") ? await Application.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Group\\") ? await Group.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Organization\\") ? await Organization.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Person\\") ? await Person.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Service\\") ? await Service.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -72395,7 +71847,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await DidService.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.push(decoded); @@ -73222,14 +72674,9 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - const _resolvedUrl = - values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) - ? new URL(values[\\"@id\\"], options.baseUrl) - : undefined; - if (options.baseUrl == null && _resolvedUrl != null) { - options = { ...options, baseUrl: _resolvedUrl }; + if (options.baseUrl == null && values[\\"@id\\"] != null) { + options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } - const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -74503,11 +73950,9 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"publicKey\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#publicKey_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#publicKey_fromJsonLd(doc, options); + } } @@ -74600,11 +74045,9 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"publicKey\\"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) { - v = await this.#publicKey_fromJsonLd(obj, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#publicKey_fromJsonLd(obj, options); + } } @@ -74823,11 +74266,9 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"assertionMethod\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#assertionMethod_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#assertionMethod_fromJsonLd(doc, options); + } } @@ -74924,11 +74365,9 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"assertionMethod\\"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) { - v = await this.#assertionMethod_fromJsonLd(obj, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#assertionMethod_fromJsonLd(obj, options); + } } @@ -75184,11 +74623,9 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"inbox\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#inbox_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#inbox_fromJsonLd(doc, options); + } } @@ -75421,11 +74858,9 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"outbox\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#outbox_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#outbox_fromJsonLd(doc, options); + } } @@ -75644,11 +75079,9 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"following\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#following_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#following_fromJsonLd(doc, options); + } } @@ -75870,11 +75303,9 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"followers\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#followers_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#followers_fromJsonLd(doc, options); + } } @@ -76094,11 +75525,9 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"liked\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#liked_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#liked_fromJsonLd(doc, options); + } } @@ -76316,11 +75745,9 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"featured\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#featured_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#featured_fromJsonLd(doc, options); + } } @@ -76538,11 +75965,9 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"featuredTags\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#featuredTags_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#featuredTags_fromJsonLd(doc, options); + } } @@ -76758,11 +76183,9 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"streams\\"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) { - v = await this.#stream_fromJsonLd(obj, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#stream_fromJsonLd(obj, options); + } } @@ -77088,11 +76511,9 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"movedTo\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#successor_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#successor_fromJsonLd(doc, options); + } } @@ -77346,11 +76767,9 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"alsoKnownAs\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#alias_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#alias_fromJsonLd(doc, options); + } } @@ -77447,11 +76866,9 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"alsoKnownAs\\"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) { - v = await this.#alias_fromJsonLd(obj, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#alias_fromJsonLd(obj, options); + } } @@ -77670,11 +77087,9 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"service\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#service_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#service_fromJsonLd(doc, options); + } } @@ -77771,11 +77186,9 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"service\\"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) { - v = await this.#service_fromJsonLd(obj, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#service_fromJsonLd(obj, options); + } } @@ -78808,14 +78221,9 @@ get preferredUsernames(): ((string | LanguageString))[] { // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - const _resolvedUrl = - values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) - ? new URL(values[\\"@id\\"], options.baseUrl) - : undefined; - if (options.baseUrl == null && _resolvedUrl != null) { - options = { ...options, baseUrl: _resolvedUrl }; + if (options.baseUrl == null && values[\\"@id\\"] != null) { + options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } - const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -78888,7 +78296,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await CryptographicKey.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _axq166E2eZADq34V4MYUc8KMZdC_publicKey.push(decoded); @@ -78921,7 +78329,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Multikey.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.push(decoded); @@ -78974,11 +78382,11 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#OrderedCollection\\") ? await OrderedCollection.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#OrderedCollectionPage\\") ? await OrderedCollectionPage.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -79015,11 +78423,11 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#OrderedCollection\\") ? await OrderedCollection.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#OrderedCollectionPage\\") ? await OrderedCollectionPage.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -79054,7 +78462,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _3yAv8jymNfNuJUDuBzJ1NQhdbAee_following.push(decoded); @@ -79087,7 +78495,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _BBCTgfphhsFzpVfKTykGSpBNwoA_followers.push(decoded); @@ -79120,7 +78528,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _3bgkPwJanyTCoVFM9ovRcus8tKkU_liked.push(decoded); @@ -79153,7 +78561,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _4N1vBJzXDf8NbBumeECQMFvKetja_featured.push(decoded); @@ -79186,7 +78594,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags.push(decoded); @@ -79219,7 +78627,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.push(decoded); @@ -79240,7 +78648,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Endpoints.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints.push(decoded); @@ -79347,23 +78755,23 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Application\\") ? await Application.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Group\\") ? await Group.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Organization\\") ? await Organization.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Person\\") ? await Person.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Service\\") ? await Service.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -79400,23 +78808,23 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Application\\") ? await Application.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Group\\") ? await Group.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Organization\\") ? await Organization.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Person\\") ? await Person.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Service\\") ? await Service.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -79451,7 +78859,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await DidService.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.push(decoded); @@ -80734,14 +80142,9 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - const _resolvedUrl = - values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) - ? new URL(values[\\"@id\\"], options.baseUrl) - : undefined; - if (options.baseUrl == null && _resolvedUrl != null) { - options = { ...options, baseUrl: _resolvedUrl }; + if (options.baseUrl == null && values[\\"@id\\"] != null) { + options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } - const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -80883,9 +80286,9 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu : \\"\\" ) ) - : URL.canParse(v[\\"@id\\"]) && _baseUrl + : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) ? new URL(v[\\"@id\\"]) - : new URL(v[\\"@id\\"], _baseUrl) : undefined + : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"]))) : undefined ; if (typeof decoded === \\"undefined\\") continue; _oKrwxU4V8wiKhMW1QEYQibcJh8c_units.push(decoded); @@ -81368,11 +80771,9 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu \\"describes\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#describes_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#describes_fromJsonLd(doc, options); + } } @@ -81614,14 +81015,9 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - const _resolvedUrl = - values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) - ? new URL(values[\\"@id\\"], options.baseUrl) - : undefined; - if (options.baseUrl == null && _resolvedUrl != null) { - options = { ...options, baseUrl: _resolvedUrl }; + if (options.baseUrl == null && values[\\"@id\\"] != null) { + options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } - const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -81670,7 +81066,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _3CLQ1PLSXrhSQbTGGHuxNyaEFKM1_describes.push(decoded); @@ -82263,11 +81659,9 @@ instruments?: (Object | URL)[];exclusiveOptions?: (Object | URL)[];inclusiveOpti \\"oneOf\\"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) { - v = await this.#exclusiveOption_fromJsonLd(obj, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#exclusiveOption_fromJsonLd(obj, options); + } } @@ -82486,11 +81880,9 @@ instruments?: (Object | URL)[];exclusiveOptions?: (Object | URL)[];inclusiveOpti \\"anyOf\\"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) { - v = await this.#inclusiveOption_fromJsonLd(obj, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#inclusiveOption_fromJsonLd(obj, options); + } } @@ -82738,11 +82130,9 @@ instruments?: (Object | URL)[];exclusiveOptions?: (Object | URL)[];inclusiveOpti \\"quote\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#quote_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#quote_fromJsonLd(doc, options); + } } @@ -82981,11 +82371,9 @@ instruments?: (Object | URL)[];exclusiveOptions?: (Object | URL)[];inclusiveOpti \\"quoteAuthorization\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#quoteAuthorization_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#quoteAuthorization_fromJsonLd(doc, options); + } } @@ -83290,14 +82678,9 @@ instruments?: (Object | URL)[];exclusiveOptions?: (Object | URL)[];inclusiveOpti // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - const _resolvedUrl = - values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) - ? new URL(values[\\"@id\\"], options.baseUrl) - : undefined; - if (options.baseUrl == null && _resolvedUrl != null) { - options = { ...options, baseUrl: _resolvedUrl }; + if (options.baseUrl == null && values[\\"@id\\"] != null) { + options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } - const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -83346,7 +82729,7 @@ instruments?: (Object | URL)[];exclusiveOptions?: (Object | URL)[];inclusiveOpti const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _2N5scKaVEcdYHFmfKYYacAwUhUgQ_oneOf.push(decoded); @@ -83379,7 +82762,7 @@ instruments?: (Object | URL)[];exclusiveOptions?: (Object | URL)[];inclusiveOpti const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _2mV6isMTPRKbWdLCjcpiEysq5dAY_anyOf.push(decoded); @@ -83461,7 +82844,7 @@ instruments?: (Object | URL)[];exclusiveOptions?: (Object | URL)[];inclusiveOpti const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote.push(decoded); @@ -83520,7 +82903,7 @@ instruments?: (Object | URL)[];exclusiveOptions?: (Object | URL)[];inclusiveOpti const decoded = await QuoteAuthorization.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization.push(decoded); @@ -83979,14 +83362,9 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - const _resolvedUrl = - values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) - ? new URL(values[\\"@id\\"], options.baseUrl) - : undefined; - if (options.baseUrl == null && _resolvedUrl != null) { - options = { ...options, baseUrl: _resolvedUrl }; + if (options.baseUrl == null && values[\\"@id\\"] != null) { + options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } - const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -84318,14 +83696,9 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - const _resolvedUrl = - values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) - ? new URL(values[\\"@id\\"], options.baseUrl) - : undefined; - if (options.baseUrl == null && _resolvedUrl != null) { - options = { ...options, baseUrl: _resolvedUrl }; + if (options.baseUrl == null && values[\\"@id\\"] != null) { + options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } - const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -84883,11 +84256,9 @@ relationships?: (Object | URL)[];} \\"subject\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#subject_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#subject_fromJsonLd(doc, options); + } } @@ -85102,11 +84473,9 @@ relationships?: (Object | URL)[];} \\"object\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#object_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#object_fromJsonLd(doc, options); + } } @@ -85200,11 +84569,9 @@ relationships?: (Object | URL)[];} \\"object\\"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) { - v = await this.#object_fromJsonLd(obj, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#object_fromJsonLd(obj, options); + } } @@ -85422,11 +84789,9 @@ relationships?: (Object | URL)[];} \\"relationship\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#relationship_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#relationship_fromJsonLd(doc, options); + } } @@ -85522,11 +84887,9 @@ relationships?: (Object | URL)[];} \\"relationship\\"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) { - v = await this.#relationship_fromJsonLd(obj, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#relationship_fromJsonLd(obj, options); + } } @@ -85839,14 +85202,9 @@ relationships?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - const _resolvedUrl = - values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) - ? new URL(values[\\"@id\\"], options.baseUrl) - : undefined; - if (options.baseUrl == null && _resolvedUrl != null) { - options = { ...options, baseUrl: _resolvedUrl }; + if (options.baseUrl == null && values[\\"@id\\"] != null) { + options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } - const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -85895,7 +85253,7 @@ relationships?: (Object | URL)[];} const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _2Zqdmi46ZnDQsECS6mzwhrv3rUKq_subject.push(decoded); @@ -85928,7 +85286,7 @@ relationships?: (Object | URL)[];} const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _2MH19yxjn1wnHsNfa5n4JBhJzxyc_object.push(decoded); @@ -85961,7 +85319,7 @@ relationships?: (Object | URL)[];} const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _4Lzz89F9qipAQSGkWyX9DGWiUojG_relationship.push(decoded); @@ -86349,14 +85707,9 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - const _resolvedUrl = - values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) - ? new URL(values[\\"@id\\"], options.baseUrl) - : undefined; - if (options.baseUrl == null && _resolvedUrl != null) { - options = { ...options, baseUrl: _resolvedUrl }; + if (options.baseUrl == null && values[\\"@id\\"] != null) { + options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } - const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -87630,11 +86983,9 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"publicKey\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#publicKey_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#publicKey_fromJsonLd(doc, options); + } } @@ -87727,11 +87078,9 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"publicKey\\"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) { - v = await this.#publicKey_fromJsonLd(obj, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#publicKey_fromJsonLd(obj, options); + } } @@ -87950,11 +87299,9 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"assertionMethod\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#assertionMethod_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#assertionMethod_fromJsonLd(doc, options); + } } @@ -88051,11 +87398,9 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"assertionMethod\\"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) { - v = await this.#assertionMethod_fromJsonLd(obj, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#assertionMethod_fromJsonLd(obj, options); + } } @@ -88311,11 +87656,9 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"inbox\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#inbox_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#inbox_fromJsonLd(doc, options); + } } @@ -88548,11 +87891,9 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"outbox\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#outbox_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#outbox_fromJsonLd(doc, options); + } } @@ -88771,11 +88112,9 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"following\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#following_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#following_fromJsonLd(doc, options); + } } @@ -88997,11 +88336,9 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"followers\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#followers_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#followers_fromJsonLd(doc, options); + } } @@ -89221,11 +88558,9 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"liked\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#liked_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#liked_fromJsonLd(doc, options); + } } @@ -89443,11 +88778,9 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"featured\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#featured_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#featured_fromJsonLd(doc, options); + } } @@ -89665,11 +88998,9 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"featuredTags\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#featuredTags_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#featuredTags_fromJsonLd(doc, options); + } } @@ -89885,11 +89216,9 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"streams\\"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) { - v = await this.#stream_fromJsonLd(obj, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#stream_fromJsonLd(obj, options); + } } @@ -90215,11 +89544,9 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"movedTo\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#successor_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#successor_fromJsonLd(doc, options); + } } @@ -90473,11 +89800,9 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"alsoKnownAs\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#alias_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#alias_fromJsonLd(doc, options); + } } @@ -90574,11 +89899,9 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"alsoKnownAs\\"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) { - v = await this.#alias_fromJsonLd(obj, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#alias_fromJsonLd(obj, options); + } } @@ -90797,11 +90120,9 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"service\\"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) { - v = await this.#service_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#service_fromJsonLd(doc, options); + } } @@ -90898,11 +90219,9 @@ get preferredUsernames(): ((string | LanguageString))[] { \\"service\\"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) { - v = await this.#service_fromJsonLd(obj, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#service_fromJsonLd(obj, options); + } } @@ -91935,14 +91254,9 @@ get preferredUsernames(): ((string | LanguageString))[] { // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - const _resolvedUrl = - values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) - ? new URL(values[\\"@id\\"], options.baseUrl) - : undefined; - if (options.baseUrl == null && _resolvedUrl != null) { - options = { ...options, baseUrl: _resolvedUrl }; + if (options.baseUrl == null && values[\\"@id\\"] != null) { + options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } - const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -92015,7 +91329,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await CryptographicKey.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _axq166E2eZADq34V4MYUc8KMZdC_publicKey.push(decoded); @@ -92048,7 +91362,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Multikey.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.push(decoded); @@ -92101,11 +91415,11 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#OrderedCollection\\") ? await OrderedCollection.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#OrderedCollectionPage\\") ? await OrderedCollectionPage.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -92142,11 +91456,11 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#OrderedCollection\\") ? await OrderedCollection.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#OrderedCollectionPage\\") ? await OrderedCollectionPage.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -92181,7 +91495,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _3yAv8jymNfNuJUDuBzJ1NQhdbAee_following.push(decoded); @@ -92214,7 +91528,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _BBCTgfphhsFzpVfKTykGSpBNwoA_followers.push(decoded); @@ -92247,7 +91561,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _3bgkPwJanyTCoVFM9ovRcus8tKkU_liked.push(decoded); @@ -92280,7 +91594,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _4N1vBJzXDf8NbBumeECQMFvKetja_featured.push(decoded); @@ -92313,7 +91627,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags.push(decoded); @@ -92346,7 +91660,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.push(decoded); @@ -92367,7 +91681,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Endpoints.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints.push(decoded); @@ -92474,23 +91788,23 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Application\\") ? await Application.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Group\\") ? await Group.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Organization\\") ? await Organization.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Person\\") ? await Person.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Service\\") ? await Service.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -92527,23 +91841,23 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Application\\") ? await Application.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Group\\") ? await Group.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Organization\\") ? await Organization.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Person\\") ? await Person.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Service\\") ? await Service.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -92578,7 +91892,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await DidService.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.push(decoded); @@ -93614,14 +92928,9 @@ get contents(): ((string | LanguageString))[] { // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - const _resolvedUrl = - values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) - ? new URL(values[\\"@id\\"], options.baseUrl) - : undefined; - if (options.baseUrl == null && _resolvedUrl != null) { - options = { ...options, baseUrl: _resolvedUrl }; + if (options.baseUrl == null && values[\\"@id\\"] != null) { + options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } - const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -94051,14 +93360,9 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - const _resolvedUrl = - values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) - ? new URL(values[\\"@id\\"], options.baseUrl) - : undefined; - if (options.baseUrl == null && _resolvedUrl != null) { - options = { ...options, baseUrl: _resolvedUrl }; + if (options.baseUrl == null && values[\\"@id\\"] != null) { + options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } - const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -94390,14 +93694,9 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - const _resolvedUrl = - values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) - ? new URL(values[\\"@id\\"], options.baseUrl) - : undefined; - if (options.baseUrl == null && _resolvedUrl != null) { - options = { ...options, baseUrl: _resolvedUrl }; + if (options.baseUrl == null && values[\\"@id\\"] != null) { + options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } - const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -94945,14 +94244,9 @@ get formerTypes(): ($EntityType)[] { // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - const _resolvedUrl = - values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) - ? new URL(values[\\"@id\\"], options.baseUrl) - : undefined; - if (options.baseUrl == null && _resolvedUrl != null) { - options = { ...options, baseUrl: _resolvedUrl }; + if (options.baseUrl == null && values[\\"@id\\"] != null) { + options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } - const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -95385,14 +94679,9 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - const _resolvedUrl = - values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) - ? new URL(values[\\"@id\\"], options.baseUrl) - : undefined; - if (options.baseUrl == null && _resolvedUrl != null) { - options = { ...options, baseUrl: _resolvedUrl }; + if (options.baseUrl == null && values[\\"@id\\"] != null) { + options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } - const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -95729,14 +95018,9 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - const _resolvedUrl = - values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) - ? new URL(values[\\"@id\\"], options.baseUrl) - : undefined; - if (options.baseUrl == null && _resolvedUrl != null) { - options = { ...options, baseUrl: _resolvedUrl }; + if (options.baseUrl == null && values[\\"@id\\"] != null) { + options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } - const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -96071,14 +95355,9 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - const _resolvedUrl = - values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) - ? new URL(values[\\"@id\\"], options.baseUrl) - : undefined; - if (options.baseUrl == null && _resolvedUrl != null) { - options = { ...options, baseUrl: _resolvedUrl }; + if (options.baseUrl == null && values[\\"@id\\"] != null) { + options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } - const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -96413,14 +95692,9 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - const _resolvedUrl = - values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) - ? new URL(values[\\"@id\\"], options.baseUrl) - : undefined; - if (options.baseUrl == null && _resolvedUrl != null) { - options = { ...options, baseUrl: _resolvedUrl }; + if (options.baseUrl == null && values[\\"@id\\"] != null) { + options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } - const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); @@ -96751,14 +96025,9 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - const _resolvedUrl = - values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"], options.baseUrl) - ? new URL(values[\\"@id\\"], options.baseUrl) - : undefined; - if (options.baseUrl == null && _resolvedUrl != null) { - options = { ...options, baseUrl: _resolvedUrl }; + if (options.baseUrl == null && values[\\"@id\\"] != null) { + options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } - const _baseUrl = _resolvedUrl ?? options.baseUrl; if (\\"@type\\" in values) { span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]); diff --git a/packages/vocab-tools/src/__snapshots__/class.test.ts.snap b/packages/vocab-tools/src/__snapshots__/class.test.ts.snap index 2ea2593d4..6374d268a 100644 --- a/packages/vocab-tools/src/__snapshots__/class.test.ts.snap +++ b/packages/vocab-tools/src/__snapshots__/class.test.ts.snap @@ -2336,11 +2336,9 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu "attachment"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === "object" && "@context" in obj) { - v = await this.#attachment_fromJsonLd(obj, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#attachment_fromJsonLd(obj, options); + } } @@ -2594,11 +2592,9 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu "attributedTo"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === "object" && "@context" in doc) { - v = await this.#attribution_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#attribution_fromJsonLd(doc, options); + } } @@ -2694,11 +2690,9 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu "attributedTo"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === "object" && "@context" in obj) { - v = await this.#attribution_fromJsonLd(obj, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#attribution_fromJsonLd(obj, options); + } } @@ -2915,11 +2909,9 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu "audience"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === "object" && "@context" in doc) { - v = await this.#audience_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#audience_fromJsonLd(doc, options); + } } @@ -3014,11 +3006,9 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu "audience"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === "object" && "@context" in obj) { - v = await this.#audience_fromJsonLd(obj, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#audience_fromJsonLd(obj, options); + } } @@ -3279,11 +3269,9 @@ get contents(): ((string | LanguageString))[] { "context"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === "object" && "@context" in obj) { - v = await this.#context_fromJsonLd(obj, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#context_fromJsonLd(obj, options); + } } @@ -3551,11 +3539,9 @@ get names(): ((string | LanguageString))[] { "generator"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === "object" && "@context" in obj) { - v = await this.#generator_fromJsonLd(obj, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#generator_fromJsonLd(obj, options); + } } @@ -3792,11 +3778,13 @@ get names(): ((string | LanguageString))[] { "icon"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === "object" && "@context" in doc) { + v = await this.#icon_fromJsonLd(doc, { ...options, baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? undefined, }); + } } @@ -3892,11 +3880,13 @@ get names(): ((string | LanguageString))[] { "icon"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === "object" && "@context" in obj) { + v = await this.#icon_fromJsonLd(obj, { ...options, baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? undefined, }); + } } @@ -4133,11 +4123,13 @@ get names(): ((string | LanguageString))[] { "image"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === "object" && "@context" in doc) { + v = await this.#image_fromJsonLd(doc, { ...options, baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? undefined, }); + } } @@ -4233,11 +4225,13 @@ get names(): ((string | LanguageString))[] { "image"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === "object" && "@context" in obj) { + v = await this.#image_fromJsonLd(obj, { ...options, baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? undefined, }); + } } @@ -4463,11 +4457,9 @@ get names(): ((string | LanguageString))[] { "inReplyTo"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === "object" && "@context" in doc) { - v = await this.#replyTarget_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#replyTarget_fromJsonLd(doc, options); + } } @@ -4562,11 +4554,9 @@ get names(): ((string | LanguageString))[] { "inReplyTo"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === "object" && "@context" in obj) { - v = await this.#replyTarget_fromJsonLd(obj, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#replyTarget_fromJsonLd(obj, options); + } } @@ -4792,11 +4782,9 @@ get names(): ((string | LanguageString))[] { "location"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === "object" && "@context" in doc) { - v = await this.#location_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#location_fromJsonLd(doc, options); + } } @@ -4891,11 +4879,9 @@ get names(): ((string | LanguageString))[] { "location"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === "object" && "@context" in obj) { - v = await this.#location_fromJsonLd(obj, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#location_fromJsonLd(obj, options); + } } @@ -5120,11 +5106,9 @@ get names(): ((string | LanguageString))[] { "preview"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === "object" && "@context" in doc) { - v = await this.#preview_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#preview_fromJsonLd(doc, options); + } } @@ -5218,11 +5202,9 @@ get names(): ((string | LanguageString))[] { "preview"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === "object" && "@context" in obj) { - v = await this.#preview_fromJsonLd(obj, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#preview_fromJsonLd(obj, options); + } } @@ -5452,11 +5434,9 @@ get names(): ((string | LanguageString))[] { "replies"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === "object" && "@context" in doc) { - v = await this.#replies_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#replies_fromJsonLd(doc, options); + } } @@ -5678,11 +5658,9 @@ get names(): ((string | LanguageString))[] { "shares"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === "object" && "@context" in doc) { - v = await this.#shares_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#shares_fromJsonLd(doc, options); + } } @@ -5904,11 +5882,9 @@ get names(): ((string | LanguageString))[] { "likes"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === "object" && "@context" in doc) { - v = await this.#likes_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#likes_fromJsonLd(doc, options); + } } @@ -6124,11 +6100,9 @@ get names(): ((string | LanguageString))[] { "emojiReactions"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === "object" && "@context" in doc) { - v = await this.#emojiReactions_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#emojiReactions_fromJsonLd(doc, options); + } } @@ -6396,11 +6370,9 @@ get summaries(): ((string | LanguageString))[] { "tag"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === "object" && "@context" in obj) { - v = await this.#tag_fromJsonLd(obj, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#tag_fromJsonLd(obj, options); + } } @@ -6651,11 +6623,9 @@ get urls(): ((URL | Link))[] { "to"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === "object" && "@context" in doc) { - v = await this.#to_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#to_fromJsonLd(doc, options); + } } @@ -6750,11 +6720,9 @@ get urls(): ((URL | Link))[] { "to"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === "object" && "@context" in obj) { - v = await this.#to_fromJsonLd(obj, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#to_fromJsonLd(obj, options); + } } @@ -6971,11 +6939,9 @@ get urls(): ((URL | Link))[] { "bto"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === "object" && "@context" in doc) { - v = await this.#bto_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#bto_fromJsonLd(doc, options); + } } @@ -7070,11 +7036,9 @@ get urls(): ((URL | Link))[] { "bto"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === "object" && "@context" in obj) { - v = await this.#bto_fromJsonLd(obj, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#bto_fromJsonLd(obj, options); + } } @@ -7291,11 +7255,9 @@ get urls(): ((URL | Link))[] { "cc"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === "object" && "@context" in doc) { - v = await this.#cc_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#cc_fromJsonLd(doc, options); + } } @@ -7390,11 +7352,9 @@ get urls(): ((URL | Link))[] { "cc"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === "object" && "@context" in obj) { - v = await this.#cc_fromJsonLd(obj, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#cc_fromJsonLd(obj, options); + } } @@ -7611,11 +7571,9 @@ get urls(): ((URL | Link))[] { "bcc"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === "object" && "@context" in doc) { - v = await this.#bcc_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#bcc_fromJsonLd(doc, options); + } } @@ -7710,11 +7668,9 @@ get urls(): ((URL | Link))[] { "bcc"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === "object" && "@context" in obj) { - v = await this.#bcc_fromJsonLd(obj, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#bcc_fromJsonLd(obj, options); + } } @@ -7994,11 +7950,9 @@ get urls(): ((URL | Link))[] { "proof"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === "object" && "@context" in doc) { - v = await this.#proof_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#proof_fromJsonLd(doc, options); + } } @@ -8092,11 +8046,9 @@ get urls(): ((URL | Link))[] { "proof"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === "object" && "@context" in obj) { - v = await this.#proof_fromJsonLd(obj, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#proof_fromJsonLd(obj, options); + } } @@ -8352,11 +8304,9 @@ get urls(): ((URL | Link))[] { "likeAuthorization"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === "object" && "@context" in doc) { - v = await this.#likeAuthorization_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#likeAuthorization_fromJsonLd(doc, options); + } } @@ -8572,11 +8522,9 @@ get urls(): ((URL | Link))[] { "replyAuthorization"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === "object" && "@context" in doc) { - v = await this.#replyAuthorization_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#replyAuthorization_fromJsonLd(doc, options); + } } @@ -8792,11 +8740,9 @@ get urls(): ((URL | Link))[] { "announceAuthorization"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === "object" && "@context" in doc) { - v = await this.#announceAuthorization_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#announceAuthorization_fromJsonLd(doc, options); + } } @@ -10344,14 +10290,9 @@ get urls(): ((URL | Link))[] { // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - const _resolvedUrl = - values["@id"] != null && URL.canParse(values["@id"], options.baseUrl) - ? new URL(values["@id"], options.baseUrl) - : undefined; - if (options.baseUrl == null && _resolvedUrl != null) { - options = { ...options, baseUrl: _resolvedUrl }; + if (options.baseUrl == null && values["@id"] != null) { + options = { ...options, baseUrl: new URL(values["@id"]) }; } - const _baseUrl = _resolvedUrl ?? options.baseUrl; if ("@type" in values) { span.setAttribute("activitypub.object.type", values["@type"]); @@ -10650,16 +10591,16 @@ get urls(): ((URL | Link))[] { && Array.isArray(v["@type"])&& ["https://www.w3.org/ns/activitystreams#Object","http://joinmastodon.org/ns#Emoji","http://litepub.social/ns#ChatMessage","https://gotosocial.org/ns#AnnounceAuthorization","https://gotosocial.org/ns#LikeApproval","https://gotosocial.org/ns#ReplyAuthorization","https://w3id.org/fep/044f#QuoteAuthorization","https://w3id.org/valueflows/ont/vf#Proposal","https://www.w3.org/ns/activitystreams#Activity","http://litepub.social/ns#EmojiReact","https://gotosocial.org/ns#AnnounceRequest","https://gotosocial.org/ns#LikeRequest","https://gotosocial.org/ns#ReplyRequest","https://w3id.org/fep/044f#QuoteRequest","https://www.w3.org/ns/activitystreams#Accept","https://www.w3.org/ns/activitystreams#TentativeAccept","https://www.w3.org/ns/activitystreams#Add","https://www.w3.org/ns/activitystreams#Announce","https://www.w3.org/ns/activitystreams#Create","https://www.w3.org/ns/activitystreams#Delete","https://www.w3.org/ns/activitystreams#Dislike","https://www.w3.org/ns/activitystreams#Flag","https://www.w3.org/ns/activitystreams#Follow","https://www.w3.org/ns/activitystreams#Ignore","https://www.w3.org/ns/activitystreams#Block","https://www.w3.org/ns/activitystreams#IntransitiveActivity","https://www.w3.org/ns/activitystreams#Arrive","https://www.w3.org/ns/activitystreams#Question","https://www.w3.org/ns/activitystreams#Travel","https://www.w3.org/ns/activitystreams#Join","https://www.w3.org/ns/activitystreams#Leave","https://www.w3.org/ns/activitystreams#Like","https://www.w3.org/ns/activitystreams#Listen","https://www.w3.org/ns/activitystreams#Move","https://www.w3.org/ns/activitystreams#Offer","https://www.w3.org/ns/activitystreams#Invite","https://www.w3.org/ns/activitystreams#Read","https://www.w3.org/ns/activitystreams#Reject","https://www.w3.org/ns/activitystreams#TentativeReject","https://www.w3.org/ns/activitystreams#Remove","https://www.w3.org/ns/activitystreams#Undo","https://www.w3.org/ns/activitystreams#Update","https://www.w3.org/ns/activitystreams#View","https://www.w3.org/ns/activitystreams#Application","https://www.w3.org/ns/activitystreams#Article","https://www.w3.org/ns/activitystreams#Collection","https://www.w3.org/ns/activitystreams#CollectionPage","https://www.w3.org/ns/activitystreams#OrderedCollectionPage","https://www.w3.org/ns/activitystreams#OrderedCollection","https://www.w3.org/ns/activitystreams#Document","https://www.w3.org/ns/activitystreams#Audio","https://www.w3.org/ns/activitystreams#Image","https://www.w3.org/ns/activitystreams#Page","https://www.w3.org/ns/activitystreams#Video","https://www.w3.org/ns/activitystreams#Event","https://www.w3.org/ns/activitystreams#Group","https://www.w3.org/ns/activitystreams#Note","https://www.w3.org/ns/activitystreams#Organization","https://www.w3.org/ns/activitystreams#Person","https://www.w3.org/ns/activitystreams#Place","https://www.w3.org/ns/activitystreams#Profile","https://www.w3.org/ns/activitystreams#Relationship","https://www.w3.org/ns/activitystreams#Service","https://www.w3.org/ns/activitystreams#Tombstone"].some( t => v["@type"].includes(t)) ? await Object.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& ["https://www.w3.org/ns/activitystreams#Link","https://www.w3.org/ns/activitystreams#Hashtag","https://www.w3.org/ns/activitystreams#Mention"].some( t => v["@type"].includes(t)) ? await Link.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("http://schema.org#PropertyValue") ? await PropertyValue.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ) : undefined ; if (typeof decoded === "undefined") continue; @@ -10696,23 +10637,23 @@ get urls(): ((URL | Link))[] { typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Application") ? await Application.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Group") ? await Group.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Organization") ? await Organization.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Person") ? await Person.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Service") ? await Service.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ) : undefined ; if (typeof decoded === "undefined") continue; @@ -10747,7 +10688,7 @@ get urls(): ((URL | Link))[] { const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _3ocC3VVi88cEd5sPWL8djkZsvTN6_audience.push(decoded); @@ -10807,12 +10748,12 @@ get urls(): ((URL | Link))[] { && Array.isArray(v["@type"])&& ["https://www.w3.org/ns/activitystreams#Object","http://joinmastodon.org/ns#Emoji","http://litepub.social/ns#ChatMessage","https://gotosocial.org/ns#AnnounceAuthorization","https://gotosocial.org/ns#LikeApproval","https://gotosocial.org/ns#ReplyAuthorization","https://w3id.org/fep/044f#QuoteAuthorization","https://w3id.org/valueflows/ont/vf#Proposal","https://www.w3.org/ns/activitystreams#Activity","http://litepub.social/ns#EmojiReact","https://gotosocial.org/ns#AnnounceRequest","https://gotosocial.org/ns#LikeRequest","https://gotosocial.org/ns#ReplyRequest","https://w3id.org/fep/044f#QuoteRequest","https://www.w3.org/ns/activitystreams#Accept","https://www.w3.org/ns/activitystreams#TentativeAccept","https://www.w3.org/ns/activitystreams#Add","https://www.w3.org/ns/activitystreams#Announce","https://www.w3.org/ns/activitystreams#Create","https://www.w3.org/ns/activitystreams#Delete","https://www.w3.org/ns/activitystreams#Dislike","https://www.w3.org/ns/activitystreams#Flag","https://www.w3.org/ns/activitystreams#Follow","https://www.w3.org/ns/activitystreams#Ignore","https://www.w3.org/ns/activitystreams#Block","https://www.w3.org/ns/activitystreams#IntransitiveActivity","https://www.w3.org/ns/activitystreams#Arrive","https://www.w3.org/ns/activitystreams#Question","https://www.w3.org/ns/activitystreams#Travel","https://www.w3.org/ns/activitystreams#Join","https://www.w3.org/ns/activitystreams#Leave","https://www.w3.org/ns/activitystreams#Like","https://www.w3.org/ns/activitystreams#Listen","https://www.w3.org/ns/activitystreams#Move","https://www.w3.org/ns/activitystreams#Offer","https://www.w3.org/ns/activitystreams#Invite","https://www.w3.org/ns/activitystreams#Read","https://www.w3.org/ns/activitystreams#Reject","https://www.w3.org/ns/activitystreams#TentativeReject","https://www.w3.org/ns/activitystreams#Remove","https://www.w3.org/ns/activitystreams#Undo","https://www.w3.org/ns/activitystreams#Update","https://www.w3.org/ns/activitystreams#View","https://www.w3.org/ns/activitystreams#Application","https://www.w3.org/ns/activitystreams#Article","https://www.w3.org/ns/activitystreams#Collection","https://www.w3.org/ns/activitystreams#CollectionPage","https://www.w3.org/ns/activitystreams#OrderedCollectionPage","https://www.w3.org/ns/activitystreams#OrderedCollection","https://www.w3.org/ns/activitystreams#Document","https://www.w3.org/ns/activitystreams#Audio","https://www.w3.org/ns/activitystreams#Image","https://www.w3.org/ns/activitystreams#Page","https://www.w3.org/ns/activitystreams#Video","https://www.w3.org/ns/activitystreams#Event","https://www.w3.org/ns/activitystreams#Group","https://www.w3.org/ns/activitystreams#Note","https://www.w3.org/ns/activitystreams#Organization","https://www.w3.org/ns/activitystreams#Person","https://www.w3.org/ns/activitystreams#Place","https://www.w3.org/ns/activitystreams#Profile","https://www.w3.org/ns/activitystreams#Relationship","https://www.w3.org/ns/activitystreams#Service","https://www.w3.org/ns/activitystreams#Tombstone"].some( t => v["@type"].includes(t)) ? await Object.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& ["https://www.w3.org/ns/activitystreams#Link","https://www.w3.org/ns/activitystreams#Hashtag","https://www.w3.org/ns/activitystreams#Mention"].some( t => v["@type"].includes(t)) ? await Link.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ) : undefined ; if (typeof decoded === "undefined") continue; @@ -10896,12 +10837,12 @@ get urls(): ((URL | Link))[] { && Array.isArray(v["@type"])&& ["https://www.w3.org/ns/activitystreams#Object","http://joinmastodon.org/ns#Emoji","http://litepub.social/ns#ChatMessage","https://gotosocial.org/ns#AnnounceAuthorization","https://gotosocial.org/ns#LikeApproval","https://gotosocial.org/ns#ReplyAuthorization","https://w3id.org/fep/044f#QuoteAuthorization","https://w3id.org/valueflows/ont/vf#Proposal","https://www.w3.org/ns/activitystreams#Activity","http://litepub.social/ns#EmojiReact","https://gotosocial.org/ns#AnnounceRequest","https://gotosocial.org/ns#LikeRequest","https://gotosocial.org/ns#ReplyRequest","https://w3id.org/fep/044f#QuoteRequest","https://www.w3.org/ns/activitystreams#Accept","https://www.w3.org/ns/activitystreams#TentativeAccept","https://www.w3.org/ns/activitystreams#Add","https://www.w3.org/ns/activitystreams#Announce","https://www.w3.org/ns/activitystreams#Create","https://www.w3.org/ns/activitystreams#Delete","https://www.w3.org/ns/activitystreams#Dislike","https://www.w3.org/ns/activitystreams#Flag","https://www.w3.org/ns/activitystreams#Follow","https://www.w3.org/ns/activitystreams#Ignore","https://www.w3.org/ns/activitystreams#Block","https://www.w3.org/ns/activitystreams#IntransitiveActivity","https://www.w3.org/ns/activitystreams#Arrive","https://www.w3.org/ns/activitystreams#Question","https://www.w3.org/ns/activitystreams#Travel","https://www.w3.org/ns/activitystreams#Join","https://www.w3.org/ns/activitystreams#Leave","https://www.w3.org/ns/activitystreams#Like","https://www.w3.org/ns/activitystreams#Listen","https://www.w3.org/ns/activitystreams#Move","https://www.w3.org/ns/activitystreams#Offer","https://www.w3.org/ns/activitystreams#Invite","https://www.w3.org/ns/activitystreams#Read","https://www.w3.org/ns/activitystreams#Reject","https://www.w3.org/ns/activitystreams#TentativeReject","https://www.w3.org/ns/activitystreams#Remove","https://www.w3.org/ns/activitystreams#Undo","https://www.w3.org/ns/activitystreams#Update","https://www.w3.org/ns/activitystreams#View","https://www.w3.org/ns/activitystreams#Application","https://www.w3.org/ns/activitystreams#Article","https://www.w3.org/ns/activitystreams#Collection","https://www.w3.org/ns/activitystreams#CollectionPage","https://www.w3.org/ns/activitystreams#OrderedCollectionPage","https://www.w3.org/ns/activitystreams#OrderedCollection","https://www.w3.org/ns/activitystreams#Document","https://www.w3.org/ns/activitystreams#Audio","https://www.w3.org/ns/activitystreams#Image","https://www.w3.org/ns/activitystreams#Page","https://www.w3.org/ns/activitystreams#Video","https://www.w3.org/ns/activitystreams#Event","https://www.w3.org/ns/activitystreams#Group","https://www.w3.org/ns/activitystreams#Note","https://www.w3.org/ns/activitystreams#Organization","https://www.w3.org/ns/activitystreams#Person","https://www.w3.org/ns/activitystreams#Place","https://www.w3.org/ns/activitystreams#Profile","https://www.w3.org/ns/activitystreams#Relationship","https://www.w3.org/ns/activitystreams#Service","https://www.w3.org/ns/activitystreams#Tombstone"].some( t => v["@type"].includes(t)) ? await Object.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& ["https://www.w3.org/ns/activitystreams#Link","https://www.w3.org/ns/activitystreams#Hashtag","https://www.w3.org/ns/activitystreams#Mention"].some( t => v["@type"].includes(t)) ? await Link.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ) : undefined ; if (typeof decoded === "undefined") continue; @@ -10932,7 +10873,7 @@ get urls(): ((URL | Link))[] { documentLoader: options.documentLoader, contextLoader: options.contextLoader, tracerProvider: options.tracerProvider, - baseUrl: _baseUrl, + baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])), }); if (_result instanceof Error) throw _result; if (_result !== undefined) { @@ -10958,7 +10899,7 @@ get urls(): ((URL | Link))[] { const decoded = await Image.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _33CjRLy5ujtsUrwRSCrsggvGdKuR_icon.push(decoded); @@ -10987,7 +10928,7 @@ get urls(): ((URL | Link))[] { documentLoader: options.documentLoader, contextLoader: options.contextLoader, tracerProvider: options.tracerProvider, - baseUrl: _baseUrl, + baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])), }); if (_result instanceof Error) throw _result; if (_result !== undefined) { @@ -11013,7 +10954,7 @@ get urls(): ((URL | Link))[] { const decoded = await Image.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _3dXrUdkARxwyJLtJcYi1AJ92H41U_image.push(decoded); @@ -11049,12 +10990,12 @@ get urls(): ((URL | Link))[] { && Array.isArray(v["@type"])&& ["https://www.w3.org/ns/activitystreams#Object","http://joinmastodon.org/ns#Emoji","http://litepub.social/ns#ChatMessage","https://gotosocial.org/ns#AnnounceAuthorization","https://gotosocial.org/ns#LikeApproval","https://gotosocial.org/ns#ReplyAuthorization","https://w3id.org/fep/044f#QuoteAuthorization","https://w3id.org/valueflows/ont/vf#Proposal","https://www.w3.org/ns/activitystreams#Activity","http://litepub.social/ns#EmojiReact","https://gotosocial.org/ns#AnnounceRequest","https://gotosocial.org/ns#LikeRequest","https://gotosocial.org/ns#ReplyRequest","https://w3id.org/fep/044f#QuoteRequest","https://www.w3.org/ns/activitystreams#Accept","https://www.w3.org/ns/activitystreams#TentativeAccept","https://www.w3.org/ns/activitystreams#Add","https://www.w3.org/ns/activitystreams#Announce","https://www.w3.org/ns/activitystreams#Create","https://www.w3.org/ns/activitystreams#Delete","https://www.w3.org/ns/activitystreams#Dislike","https://www.w3.org/ns/activitystreams#Flag","https://www.w3.org/ns/activitystreams#Follow","https://www.w3.org/ns/activitystreams#Ignore","https://www.w3.org/ns/activitystreams#Block","https://www.w3.org/ns/activitystreams#IntransitiveActivity","https://www.w3.org/ns/activitystreams#Arrive","https://www.w3.org/ns/activitystreams#Question","https://www.w3.org/ns/activitystreams#Travel","https://www.w3.org/ns/activitystreams#Join","https://www.w3.org/ns/activitystreams#Leave","https://www.w3.org/ns/activitystreams#Like","https://www.w3.org/ns/activitystreams#Listen","https://www.w3.org/ns/activitystreams#Move","https://www.w3.org/ns/activitystreams#Offer","https://www.w3.org/ns/activitystreams#Invite","https://www.w3.org/ns/activitystreams#Read","https://www.w3.org/ns/activitystreams#Reject","https://www.w3.org/ns/activitystreams#TentativeReject","https://www.w3.org/ns/activitystreams#Remove","https://www.w3.org/ns/activitystreams#Undo","https://www.w3.org/ns/activitystreams#Update","https://www.w3.org/ns/activitystreams#View","https://www.w3.org/ns/activitystreams#Application","https://www.w3.org/ns/activitystreams#Article","https://www.w3.org/ns/activitystreams#Collection","https://www.w3.org/ns/activitystreams#CollectionPage","https://www.w3.org/ns/activitystreams#OrderedCollectionPage","https://www.w3.org/ns/activitystreams#OrderedCollection","https://www.w3.org/ns/activitystreams#Document","https://www.w3.org/ns/activitystreams#Audio","https://www.w3.org/ns/activitystreams#Image","https://www.w3.org/ns/activitystreams#Page","https://www.w3.org/ns/activitystreams#Video","https://www.w3.org/ns/activitystreams#Event","https://www.w3.org/ns/activitystreams#Group","https://www.w3.org/ns/activitystreams#Note","https://www.w3.org/ns/activitystreams#Organization","https://www.w3.org/ns/activitystreams#Person","https://www.w3.org/ns/activitystreams#Place","https://www.w3.org/ns/activitystreams#Profile","https://www.w3.org/ns/activitystreams#Relationship","https://www.w3.org/ns/activitystreams#Service","https://www.w3.org/ns/activitystreams#Tombstone"].some( t => v["@type"].includes(t)) ? await Object.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& ["https://www.w3.org/ns/activitystreams#Link","https://www.w3.org/ns/activitystreams#Hashtag","https://www.w3.org/ns/activitystreams#Mention"].some( t => v["@type"].includes(t)) ? await Link.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ) : undefined ; if (typeof decoded === "undefined") continue; @@ -11092,12 +11033,12 @@ get urls(): ((URL | Link))[] { && Array.isArray(v["@type"])&& ["https://www.w3.org/ns/activitystreams#Object","http://joinmastodon.org/ns#Emoji","http://litepub.social/ns#ChatMessage","https://gotosocial.org/ns#AnnounceAuthorization","https://gotosocial.org/ns#LikeApproval","https://gotosocial.org/ns#ReplyAuthorization","https://w3id.org/fep/044f#QuoteAuthorization","https://w3id.org/valueflows/ont/vf#Proposal","https://www.w3.org/ns/activitystreams#Activity","http://litepub.social/ns#EmojiReact","https://gotosocial.org/ns#AnnounceRequest","https://gotosocial.org/ns#LikeRequest","https://gotosocial.org/ns#ReplyRequest","https://w3id.org/fep/044f#QuoteRequest","https://www.w3.org/ns/activitystreams#Accept","https://www.w3.org/ns/activitystreams#TentativeAccept","https://www.w3.org/ns/activitystreams#Add","https://www.w3.org/ns/activitystreams#Announce","https://www.w3.org/ns/activitystreams#Create","https://www.w3.org/ns/activitystreams#Delete","https://www.w3.org/ns/activitystreams#Dislike","https://www.w3.org/ns/activitystreams#Flag","https://www.w3.org/ns/activitystreams#Follow","https://www.w3.org/ns/activitystreams#Ignore","https://www.w3.org/ns/activitystreams#Block","https://www.w3.org/ns/activitystreams#IntransitiveActivity","https://www.w3.org/ns/activitystreams#Arrive","https://www.w3.org/ns/activitystreams#Question","https://www.w3.org/ns/activitystreams#Travel","https://www.w3.org/ns/activitystreams#Join","https://www.w3.org/ns/activitystreams#Leave","https://www.w3.org/ns/activitystreams#Like","https://www.w3.org/ns/activitystreams#Listen","https://www.w3.org/ns/activitystreams#Move","https://www.w3.org/ns/activitystreams#Offer","https://www.w3.org/ns/activitystreams#Invite","https://www.w3.org/ns/activitystreams#Read","https://www.w3.org/ns/activitystreams#Reject","https://www.w3.org/ns/activitystreams#TentativeReject","https://www.w3.org/ns/activitystreams#Remove","https://www.w3.org/ns/activitystreams#Undo","https://www.w3.org/ns/activitystreams#Update","https://www.w3.org/ns/activitystreams#View","https://www.w3.org/ns/activitystreams#Application","https://www.w3.org/ns/activitystreams#Article","https://www.w3.org/ns/activitystreams#Collection","https://www.w3.org/ns/activitystreams#CollectionPage","https://www.w3.org/ns/activitystreams#OrderedCollectionPage","https://www.w3.org/ns/activitystreams#OrderedCollection","https://www.w3.org/ns/activitystreams#Document","https://www.w3.org/ns/activitystreams#Audio","https://www.w3.org/ns/activitystreams#Image","https://www.w3.org/ns/activitystreams#Page","https://www.w3.org/ns/activitystreams#Video","https://www.w3.org/ns/activitystreams#Event","https://www.w3.org/ns/activitystreams#Group","https://www.w3.org/ns/activitystreams#Note","https://www.w3.org/ns/activitystreams#Organization","https://www.w3.org/ns/activitystreams#Person","https://www.w3.org/ns/activitystreams#Place","https://www.w3.org/ns/activitystreams#Profile","https://www.w3.org/ns/activitystreams#Relationship","https://www.w3.org/ns/activitystreams#Service","https://www.w3.org/ns/activitystreams#Tombstone"].some( t => v["@type"].includes(t)) ? await Object.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& ["https://www.w3.org/ns/activitystreams#Link","https://www.w3.org/ns/activitystreams#Hashtag","https://www.w3.org/ns/activitystreams#Mention"].some( t => v["@type"].includes(t)) ? await Link.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ) : undefined ; if (typeof decoded === "undefined") continue; @@ -11135,12 +11076,12 @@ get urls(): ((URL | Link))[] { && Array.isArray(v["@type"])&& ["https://www.w3.org/ns/activitystreams#Link","https://www.w3.org/ns/activitystreams#Hashtag","https://www.w3.org/ns/activitystreams#Mention"].some( t => v["@type"].includes(t)) ? await Link.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& ["https://www.w3.org/ns/activitystreams#Object","http://joinmastodon.org/ns#Emoji","http://litepub.social/ns#ChatMessage","https://gotosocial.org/ns#AnnounceAuthorization","https://gotosocial.org/ns#LikeApproval","https://gotosocial.org/ns#ReplyAuthorization","https://w3id.org/fep/044f#QuoteAuthorization","https://w3id.org/valueflows/ont/vf#Proposal","https://www.w3.org/ns/activitystreams#Activity","http://litepub.social/ns#EmojiReact","https://gotosocial.org/ns#AnnounceRequest","https://gotosocial.org/ns#LikeRequest","https://gotosocial.org/ns#ReplyRequest","https://w3id.org/fep/044f#QuoteRequest","https://www.w3.org/ns/activitystreams#Accept","https://www.w3.org/ns/activitystreams#TentativeAccept","https://www.w3.org/ns/activitystreams#Add","https://www.w3.org/ns/activitystreams#Announce","https://www.w3.org/ns/activitystreams#Create","https://www.w3.org/ns/activitystreams#Delete","https://www.w3.org/ns/activitystreams#Dislike","https://www.w3.org/ns/activitystreams#Flag","https://www.w3.org/ns/activitystreams#Follow","https://www.w3.org/ns/activitystreams#Ignore","https://www.w3.org/ns/activitystreams#Block","https://www.w3.org/ns/activitystreams#IntransitiveActivity","https://www.w3.org/ns/activitystreams#Arrive","https://www.w3.org/ns/activitystreams#Question","https://www.w3.org/ns/activitystreams#Travel","https://www.w3.org/ns/activitystreams#Join","https://www.w3.org/ns/activitystreams#Leave","https://www.w3.org/ns/activitystreams#Like","https://www.w3.org/ns/activitystreams#Listen","https://www.w3.org/ns/activitystreams#Move","https://www.w3.org/ns/activitystreams#Offer","https://www.w3.org/ns/activitystreams#Invite","https://www.w3.org/ns/activitystreams#Read","https://www.w3.org/ns/activitystreams#Reject","https://www.w3.org/ns/activitystreams#TentativeReject","https://www.w3.org/ns/activitystreams#Remove","https://www.w3.org/ns/activitystreams#Undo","https://www.w3.org/ns/activitystreams#Update","https://www.w3.org/ns/activitystreams#View","https://www.w3.org/ns/activitystreams#Application","https://www.w3.org/ns/activitystreams#Article","https://www.w3.org/ns/activitystreams#Collection","https://www.w3.org/ns/activitystreams#CollectionPage","https://www.w3.org/ns/activitystreams#OrderedCollectionPage","https://www.w3.org/ns/activitystreams#OrderedCollection","https://www.w3.org/ns/activitystreams#Document","https://www.w3.org/ns/activitystreams#Audio","https://www.w3.org/ns/activitystreams#Image","https://www.w3.org/ns/activitystreams#Page","https://www.w3.org/ns/activitystreams#Video","https://www.w3.org/ns/activitystreams#Event","https://www.w3.org/ns/activitystreams#Group","https://www.w3.org/ns/activitystreams#Note","https://www.w3.org/ns/activitystreams#Organization","https://www.w3.org/ns/activitystreams#Person","https://www.w3.org/ns/activitystreams#Place","https://www.w3.org/ns/activitystreams#Profile","https://www.w3.org/ns/activitystreams#Relationship","https://www.w3.org/ns/activitystreams#Service","https://www.w3.org/ns/activitystreams#Tombstone"].some( t => v["@type"].includes(t)) ? await Object.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ) : undefined ; if (typeof decoded === "undefined") continue; @@ -11197,7 +11138,7 @@ get urls(): ((URL | Link))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _7UpwM3JWcXhADcscukEehBorf6k_replies.push(decoded); @@ -11230,7 +11171,7 @@ get urls(): ((URL | Link))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _3kAfck9PcEYt2L7xug5y99YPbANs_shares.push(decoded); @@ -11263,7 +11204,7 @@ get urls(): ((URL | Link))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _S3ceDnpMdzoTRCccB9FkJWrEzYW_likes.push(decoded); @@ -11296,7 +11237,7 @@ get urls(): ((URL | Link))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _kMatyyNAuxoTD8GQMBfA5ogThMR_emojiReactions.push(decoded); @@ -11378,12 +11319,12 @@ get urls(): ((URL | Link))[] { && Array.isArray(v["@type"])&& ["https://www.w3.org/ns/activitystreams#Object","http://joinmastodon.org/ns#Emoji","http://litepub.social/ns#ChatMessage","https://gotosocial.org/ns#AnnounceAuthorization","https://gotosocial.org/ns#LikeApproval","https://gotosocial.org/ns#ReplyAuthorization","https://w3id.org/fep/044f#QuoteAuthorization","https://w3id.org/valueflows/ont/vf#Proposal","https://www.w3.org/ns/activitystreams#Activity","http://litepub.social/ns#EmojiReact","https://gotosocial.org/ns#AnnounceRequest","https://gotosocial.org/ns#LikeRequest","https://gotosocial.org/ns#ReplyRequest","https://w3id.org/fep/044f#QuoteRequest","https://www.w3.org/ns/activitystreams#Accept","https://www.w3.org/ns/activitystreams#TentativeAccept","https://www.w3.org/ns/activitystreams#Add","https://www.w3.org/ns/activitystreams#Announce","https://www.w3.org/ns/activitystreams#Create","https://www.w3.org/ns/activitystreams#Delete","https://www.w3.org/ns/activitystreams#Dislike","https://www.w3.org/ns/activitystreams#Flag","https://www.w3.org/ns/activitystreams#Follow","https://www.w3.org/ns/activitystreams#Ignore","https://www.w3.org/ns/activitystreams#Block","https://www.w3.org/ns/activitystreams#IntransitiveActivity","https://www.w3.org/ns/activitystreams#Arrive","https://www.w3.org/ns/activitystreams#Question","https://www.w3.org/ns/activitystreams#Travel","https://www.w3.org/ns/activitystreams#Join","https://www.w3.org/ns/activitystreams#Leave","https://www.w3.org/ns/activitystreams#Like","https://www.w3.org/ns/activitystreams#Listen","https://www.w3.org/ns/activitystreams#Move","https://www.w3.org/ns/activitystreams#Offer","https://www.w3.org/ns/activitystreams#Invite","https://www.w3.org/ns/activitystreams#Read","https://www.w3.org/ns/activitystreams#Reject","https://www.w3.org/ns/activitystreams#TentativeReject","https://www.w3.org/ns/activitystreams#Remove","https://www.w3.org/ns/activitystreams#Undo","https://www.w3.org/ns/activitystreams#Update","https://www.w3.org/ns/activitystreams#View","https://www.w3.org/ns/activitystreams#Application","https://www.w3.org/ns/activitystreams#Article","https://www.w3.org/ns/activitystreams#Collection","https://www.w3.org/ns/activitystreams#CollectionPage","https://www.w3.org/ns/activitystreams#OrderedCollectionPage","https://www.w3.org/ns/activitystreams#OrderedCollection","https://www.w3.org/ns/activitystreams#Document","https://www.w3.org/ns/activitystreams#Audio","https://www.w3.org/ns/activitystreams#Image","https://www.w3.org/ns/activitystreams#Page","https://www.w3.org/ns/activitystreams#Video","https://www.w3.org/ns/activitystreams#Event","https://www.w3.org/ns/activitystreams#Group","https://www.w3.org/ns/activitystreams#Note","https://www.w3.org/ns/activitystreams#Organization","https://www.w3.org/ns/activitystreams#Person","https://www.w3.org/ns/activitystreams#Place","https://www.w3.org/ns/activitystreams#Profile","https://www.w3.org/ns/activitystreams#Relationship","https://www.w3.org/ns/activitystreams#Service","https://www.w3.org/ns/activitystreams#Tombstone"].some( t => v["@type"].includes(t)) ? await Object.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& ["https://www.w3.org/ns/activitystreams#Link","https://www.w3.org/ns/activitystreams#Hashtag","https://www.w3.org/ns/activitystreams#Mention"].some( t => v["@type"].includes(t)) ? await Link.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ) : undefined ; if (typeof decoded === "undefined") continue; @@ -11442,13 +11383,13 @@ get urls(): ((URL | Link))[] { : "" ) ) - : URL.canParse(v["@id"]) && _baseUrl + : URL.canParse(v["@id"]) && (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) ? new URL(v["@id"]) - : new URL(v["@id"], _baseUrl) : typeof v === "object" && "@type" in v + : new URL(v["@id"], (values["@id"] == null ? options.baseUrl : new URL(values["@id"]))) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& ["https://www.w3.org/ns/activitystreams#Link","https://www.w3.org/ns/activitystreams#Hashtag","https://www.w3.org/ns/activitystreams#Mention"].some( t => v["@type"].includes(t)) ? await Link.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ) : undefined ; if (typeof decoded === "undefined") continue; @@ -11483,7 +11424,7 @@ get urls(): ((URL | Link))[] { const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _3hFbw7DTpHhq3cvVhkY8njhcsXbd_to.push(decoded); @@ -11516,7 +11457,7 @@ get urls(): ((URL | Link))[] { const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _aLZupjwL8XB7tzdLgCMXdjZ6qej_bto.push(decoded); @@ -11549,7 +11490,7 @@ get urls(): ((URL | Link))[] { const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _42a1SvBs24QSLzKcfjCyNTjW5a1g_cc.push(decoded); @@ -11582,7 +11523,7 @@ get urls(): ((URL | Link))[] { const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _3qvegKUB8YLgTXRpEf8E6JZSkz2H_bcc.push(decoded); @@ -11657,7 +11598,7 @@ get urls(): ((URL | Link))[] { const decoded = await Source.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _2ZwCFoS787v8y8bXKjMoE6MAbrEB_source.push(decoded); @@ -11690,7 +11631,7 @@ get urls(): ((URL | Link))[] { const decoded = await DataIntegrityProof.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _42rPnotok1ivQ2RNCKNbeFJgx8b8_proof.push(decoded); @@ -11711,7 +11652,7 @@ get urls(): ((URL | Link))[] { const decoded = await InteractionPolicy.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _2MHQfh2N74MMmDLDqYWFo7TxYQK2_interactionPolicy.push(decoded); @@ -11743,9 +11684,9 @@ get urls(): ((URL | Link))[] { : "" ) ) - : URL.canParse(v["@id"]) && _baseUrl + : URL.canParse(v["@id"]) && (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) ? new URL(v["@id"]) - : new URL(v["@id"], _baseUrl); + : new URL(v["@id"], (values["@id"] == null ? options.baseUrl : new URL(values["@id"]))); if (typeof decoded === "undefined") continue; _23YiVs2miQcEiUdn4u8SvjQKWYim_approvedBy.push(decoded); } @@ -11777,7 +11718,7 @@ get urls(): ((URL | Link))[] { const decoded = await LikeAuthorization.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _3fCeb5aXaDDd4fvkQ96BLWifBUBa_likeAuthorization.push(decoded); @@ -11810,7 +11751,7 @@ get urls(): ((URL | Link))[] { const decoded = await ReplyAuthorization.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _YA4wdUW7rYztAQ6SjhMnJCmcmtP_replyAuthorization.push(decoded); @@ -11843,7 +11784,7 @@ get urls(): ((URL | Link))[] { const decoded = await AnnounceAuthorization.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _446xEaDBs3Fz6MyzP3PSBaLupkbJ_announceAuthorization.push(decoded); @@ -13021,14 +12962,9 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - const _resolvedUrl = - values["@id"] != null && URL.canParse(values["@id"], options.baseUrl) - ? new URL(values["@id"], options.baseUrl) - : undefined; - if (options.baseUrl == null && _resolvedUrl != null) { - options = { ...options, baseUrl: _resolvedUrl }; + if (options.baseUrl == null && values["@id"] != null) { + options = { ...options, baseUrl: new URL(values["@id"]) }; } - const _baseUrl = _resolvedUrl ?? options.baseUrl; if ("@type" in values) { span.setAttribute("activitypub.object.type", values["@type"]); @@ -13463,11 +13399,9 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu "quote"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === "object" && "@context" in doc) { - v = await this.#quote_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#quote_fromJsonLd(doc, options); + } } @@ -13706,11 +13640,9 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu "quoteAuthorization"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === "object" && "@context" in doc) { - v = await this.#quoteAuthorization_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#quoteAuthorization_fromJsonLd(doc, options); + } } @@ -14032,14 +13964,9 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - const _resolvedUrl = - values["@id"] != null && URL.canParse(values["@id"], options.baseUrl) - ? new URL(values["@id"], options.baseUrl) - : undefined; - if (options.baseUrl == null && _resolvedUrl != null) { - options = { ...options, baseUrl: _resolvedUrl }; + if (options.baseUrl == null && values["@id"] != null) { + options = { ...options, baseUrl: new URL(values["@id"]) }; } - const _baseUrl = _resolvedUrl ?? options.baseUrl; if ("@type" in values) { span.setAttribute("activitypub.object.type", values["@type"]); @@ -14088,7 +14015,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote.push(decoded); @@ -14147,7 +14074,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await QuoteAuthorization.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization.push(decoded); @@ -15093,11 +15020,9 @@ instruments?: (Object | URL)[];} "actor"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === "object" && "@context" in doc) { - v = await this.#actor_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#actor_fromJsonLd(doc, options); + } } @@ -15193,11 +15118,9 @@ instruments?: (Object | URL)[];} "actor"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === "object" && "@context" in obj) { - v = await this.#actor_fromJsonLd(obj, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#actor_fromJsonLd(obj, options); + } } @@ -15415,11 +15338,9 @@ instruments?: (Object | URL)[];} "object"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === "object" && "@context" in doc) { - v = await this.#object_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#object_fromJsonLd(doc, options); + } } @@ -15515,11 +15436,9 @@ instruments?: (Object | URL)[];} "object"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === "object" && "@context" in obj) { - v = await this.#object_fromJsonLd(obj, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#object_fromJsonLd(obj, options); + } } @@ -15740,11 +15659,9 @@ instruments?: (Object | URL)[];} "target"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === "object" && "@context" in doc) { - v = await this.#target_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#target_fromJsonLd(doc, options); + } } @@ -15843,11 +15760,9 @@ instruments?: (Object | URL)[];} "target"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === "object" && "@context" in obj) { - v = await this.#target_fromJsonLd(obj, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#target_fromJsonLd(obj, options); + } } @@ -16065,11 +15980,9 @@ instruments?: (Object | URL)[];} "result"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === "object" && "@context" in doc) { - v = await this.#result_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#result_fromJsonLd(doc, options); + } } @@ -16165,11 +16078,9 @@ instruments?: (Object | URL)[];} "result"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === "object" && "@context" in obj) { - v = await this.#result_fromJsonLd(obj, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#result_fromJsonLd(obj, options); + } } @@ -16388,11 +16299,9 @@ instruments?: (Object | URL)[];} "origin"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === "object" && "@context" in doc) { - v = await this.#origin_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#origin_fromJsonLd(doc, options); + } } @@ -16489,11 +16398,9 @@ instruments?: (Object | URL)[];} "origin"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === "object" && "@context" in obj) { - v = await this.#origin_fromJsonLd(obj, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#origin_fromJsonLd(obj, options); + } } @@ -16710,11 +16617,9 @@ instruments?: (Object | URL)[];} "instrument"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === "object" && "@context" in doc) { - v = await this.#instrument_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#instrument_fromJsonLd(doc, options); + } } @@ -16809,11 +16714,9 @@ instruments?: (Object | URL)[];} "instrument"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === "object" && "@context" in obj) { - v = await this.#instrument_fromJsonLd(obj, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#instrument_fromJsonLd(obj, options); + } } @@ -17094,14 +16997,9 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - const _resolvedUrl = - values["@id"] != null && URL.canParse(values["@id"], options.baseUrl) - ? new URL(values["@id"], options.baseUrl) - : undefined; - if (options.baseUrl == null && _resolvedUrl != null) { - options = { ...options, baseUrl: _resolvedUrl }; + if (options.baseUrl == null && values["@id"] != null) { + options = { ...options, baseUrl: new URL(values["@id"]) }; } - const _baseUrl = _resolvedUrl ?? options.baseUrl; if ("@type" in values) { span.setAttribute("activitypub.object.type", values["@type"]); @@ -17288,23 +17186,23 @@ instruments?: (Object | URL)[];} typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Application") ? await Application.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Group") ? await Group.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Organization") ? await Organization.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Person") ? await Person.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Service") ? await Service.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ) : undefined ; if (typeof decoded === "undefined") continue; @@ -17339,7 +17237,7 @@ instruments?: (Object | URL)[];} const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _2MH19yxjn1wnHsNfa5n4JBhJzxyc_object.push(decoded); @@ -17372,7 +17270,7 @@ instruments?: (Object | URL)[];} const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _3JQCmF2Ww56Ag9EWRYoSZRDNCYtF_target.push(decoded); @@ -17405,7 +17303,7 @@ instruments?: (Object | URL)[];} const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _u4QGFbRFcYmPEKGbPv1hpBR9r5G_result.push(decoded); @@ -17438,7 +17336,7 @@ instruments?: (Object | URL)[];} const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _25zu2s3VxVujgEKqrDycjE284XQR_origin.push(decoded); @@ -17471,7 +17369,7 @@ instruments?: (Object | URL)[];} const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _3c5t2x7DYRo2shwTxpkd4kYSS5WQ_instrument.push(decoded); @@ -17942,14 +17840,9 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - const _resolvedUrl = - values["@id"] != null && URL.canParse(values["@id"], options.baseUrl) - ? new URL(values["@id"], options.baseUrl) - : undefined; - if (options.baseUrl == null && _resolvedUrl != null) { - options = { ...options, baseUrl: _resolvedUrl }; + if (options.baseUrl == null && values["@id"] != null) { + options = { ...options, baseUrl: new URL(values["@id"]) }; } - const _baseUrl = _resolvedUrl ?? options.baseUrl; if ("@type" in values) { span.setAttribute("activitypub.object.type", values["@type"]); @@ -18450,14 +18343,9 @@ name?: string | LanguageString | null;value?: string | LanguageString | null;} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - const _resolvedUrl = - values["@id"] != null && URL.canParse(values["@id"], options.baseUrl) - ? new URL(values["@id"], options.baseUrl) - : undefined; - if (options.baseUrl == null && _resolvedUrl != null) { - options = { ...options, baseUrl: _resolvedUrl }; + if (options.baseUrl == null && values["@id"] != null) { + options = { ...options, baseUrl: new URL(values["@id"]) }; } - const _baseUrl = _resolvedUrl ?? options.baseUrl; if ("@type" in values) { span.setAttribute("activitypub.object.type", values["@type"]); @@ -19041,14 +18929,9 @@ unit?: string | null;numericalValue?: Decimal | null;} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - const _resolvedUrl = - values["@id"] != null && URL.canParse(values["@id"], options.baseUrl) - ? new URL(values["@id"], options.baseUrl) - : undefined; - if (options.baseUrl == null && _resolvedUrl != null) { - options = { ...options, baseUrl: _resolvedUrl }; + if (options.baseUrl == null && values["@id"] != null) { + options = { ...options, baseUrl: new URL(values["@id"]) }; } - const _baseUrl = _resolvedUrl ?? options.baseUrl; if ("@type" in values) { span.setAttribute("activitypub.object.type", values["@type"]); @@ -19545,11 +19428,9 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu "interactingObject"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === "object" && "@context" in doc) { - v = await this.#interactingObject_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#interactingObject_fromJsonLd(doc, options); + } } @@ -19764,11 +19645,9 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu "interactionTarget"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === "object" && "@context" in doc) { - v = await this.#interactionTarget_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#interactionTarget_fromJsonLd(doc, options); + } } @@ -20045,14 +19924,9 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - const _resolvedUrl = - values["@id"] != null && URL.canParse(values["@id"], options.baseUrl) - ? new URL(values["@id"], options.baseUrl) - : undefined; - if (options.baseUrl == null && _resolvedUrl != null) { - options = { ...options, baseUrl: _resolvedUrl }; + if (options.baseUrl == null && values["@id"] != null) { + options = { ...options, baseUrl: new URL(values["@id"]) }; } - const _baseUrl = _resolvedUrl ?? options.baseUrl; if ("@type" in values) { span.setAttribute("activitypub.object.type", values["@type"]); @@ -20101,7 +19975,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject.push(decoded); @@ -20134,7 +20008,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget.push(decoded); @@ -20499,14 +20373,9 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - const _resolvedUrl = - values["@id"] != null && URL.canParse(values["@id"], options.baseUrl) - ? new URL(values["@id"], options.baseUrl) - : undefined; - if (options.baseUrl == null && _resolvedUrl != null) { - options = { ...options, baseUrl: _resolvedUrl }; + if (options.baseUrl == null && values["@id"] != null) { + options = { ...options, baseUrl: new URL(values["@id"]) }; } - const _baseUrl = _resolvedUrl ?? options.baseUrl; if ("@type" in values) { span.setAttribute("activitypub.object.type", values["@type"]); @@ -21095,14 +20964,9 @@ canLike?: InteractionRule | null;canReply?: InteractionRule | null;canAnnounce?: // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - const _resolvedUrl = - values["@id"] != null && URL.canParse(values["@id"], options.baseUrl) - ? new URL(values["@id"], options.baseUrl) - : undefined; - if (options.baseUrl == null && _resolvedUrl != null) { - options = { ...options, baseUrl: _resolvedUrl }; + if (options.baseUrl == null && values["@id"] != null) { + options = { ...options, baseUrl: new URL(values["@id"]) }; } - const _baseUrl = _resolvedUrl ?? options.baseUrl; if ("@type" in values) { span.setAttribute("activitypub.object.type", values["@type"]); @@ -21134,7 +20998,7 @@ canLike?: InteractionRule | null;canReply?: InteractionRule | null;canAnnounce?: const decoded = await InteractionRule.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _3JkwVLb3BNCwCWdsb5RftGAg8vyT_canLike.push(decoded); @@ -21155,7 +21019,7 @@ canLike?: InteractionRule | null;canReply?: InteractionRule | null;canAnnounce?: const decoded = await InteractionRule.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _2UBgLRi5p3DRGGvWyB227i4Qjhzd_canReply.push(decoded); @@ -21176,7 +21040,7 @@ canLike?: InteractionRule | null;canReply?: InteractionRule | null;canAnnounce?: const decoded = await InteractionRule.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _fu5nmoAj528fBQfnxhY9Daok3Vi_canAnnounce.push(decoded); @@ -21197,7 +21061,7 @@ canLike?: InteractionRule | null;canReply?: InteractionRule | null;canAnnounce?: const decoded = await InteractionRule.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _LE3zBTVacTZw2LSyLt4wVUkXeUy_canQuote.push(decoded); @@ -21848,14 +21712,9 @@ get manualApprovals(): (URL)[] { // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - const _resolvedUrl = - values["@id"] != null && URL.canParse(values["@id"], options.baseUrl) - ? new URL(values["@id"], options.baseUrl) - : undefined; - if (options.baseUrl == null && _resolvedUrl != null) { - options = { ...options, baseUrl: _resolvedUrl }; + if (options.baseUrl == null && values["@id"] != null) { + options = { ...options, baseUrl: new URL(values["@id"]) }; } - const _baseUrl = _resolvedUrl ?? options.baseUrl; if ("@type" in values) { span.setAttribute("activitypub.object.type", values["@type"]); @@ -21898,9 +21757,9 @@ get manualApprovals(): (URL)[] { : "" ) ) - : URL.canParse(v["@id"]) && _baseUrl + : URL.canParse(v["@id"]) && (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) ? new URL(v["@id"]) - : new URL(v["@id"], _baseUrl); + : new URL(v["@id"], (values["@id"] == null ? options.baseUrl : new URL(values["@id"]))); if (typeof decoded === "undefined") continue; _2rFyCF14HoyNjitj9PmCzek5iSsg_automaticApproval.push(decoded); } @@ -21931,9 +21790,9 @@ get manualApprovals(): (URL)[] { : "" ) ) - : URL.canParse(v["@id"]) && _baseUrl + : URL.canParse(v["@id"]) && (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) ? new URL(v["@id"]) - : new URL(v["@id"], _baseUrl); + : new URL(v["@id"], (values["@id"] == null ? options.baseUrl : new URL(values["@id"]))); if (typeof decoded === "undefined") continue; _sxj8y5XMMMBWUnRYFw85MKedCMj_manualApproval.push(decoded); } @@ -22393,11 +22252,9 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu "interactingObject"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === "object" && "@context" in doc) { - v = await this.#interactingObject_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#interactingObject_fromJsonLd(doc, options); + } } @@ -22612,11 +22469,9 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu "interactionTarget"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === "object" && "@context" in doc) { - v = await this.#interactionTarget_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#interactionTarget_fromJsonLd(doc, options); + } } @@ -22893,14 +22748,9 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - const _resolvedUrl = - values["@id"] != null && URL.canParse(values["@id"], options.baseUrl) - ? new URL(values["@id"], options.baseUrl) - : undefined; - if (options.baseUrl == null && _resolvedUrl != null) { - options = { ...options, baseUrl: _resolvedUrl }; + if (options.baseUrl == null && values["@id"] != null) { + options = { ...options, baseUrl: new URL(values["@id"]) }; } - const _baseUrl = _resolvedUrl ?? options.baseUrl; if ("@type" in values) { span.setAttribute("activitypub.object.type", values["@type"]); @@ -22949,7 +22799,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject.push(decoded); @@ -22982,7 +22832,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget.push(decoded); @@ -23346,14 +23196,9 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - const _resolvedUrl = - values["@id"] != null && URL.canParse(values["@id"], options.baseUrl) - ? new URL(values["@id"], options.baseUrl) - : undefined; - if (options.baseUrl == null && _resolvedUrl != null) { - options = { ...options, baseUrl: _resolvedUrl }; + if (options.baseUrl == null && values["@id"] != null) { + options = { ...options, baseUrl: new URL(values["@id"]) }; } - const _baseUrl = _resolvedUrl ?? options.baseUrl; if ("@type" in values) { span.setAttribute("activitypub.object.type", values["@type"]); @@ -23763,11 +23608,9 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu "interactingObject"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === "object" && "@context" in doc) { - v = await this.#interactingObject_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#interactingObject_fromJsonLd(doc, options); + } } @@ -23982,11 +23825,9 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu "interactionTarget"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === "object" && "@context" in doc) { - v = await this.#interactionTarget_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#interactionTarget_fromJsonLd(doc, options); + } } @@ -24263,14 +24104,9 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - const _resolvedUrl = - values["@id"] != null && URL.canParse(values["@id"], options.baseUrl) - ? new URL(values["@id"], options.baseUrl) - : undefined; - if (options.baseUrl == null && _resolvedUrl != null) { - options = { ...options, baseUrl: _resolvedUrl }; + if (options.baseUrl == null && values["@id"] != null) { + options = { ...options, baseUrl: new URL(values["@id"]) }; } - const _baseUrl = _resolvedUrl ?? options.baseUrl; if ("@type" in values) { span.setAttribute("activitypub.object.type", values["@type"]); @@ -24319,7 +24155,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject.push(decoded); @@ -24352,7 +24188,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget.push(decoded); @@ -24716,14 +24552,9 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - const _resolvedUrl = - values["@id"] != null && URL.canParse(values["@id"], options.baseUrl) - ? new URL(values["@id"], options.baseUrl) - : undefined; - if (options.baseUrl == null && _resolvedUrl != null) { - options = { ...options, baseUrl: _resolvedUrl }; + if (options.baseUrl == null && values["@id"] != null) { + options = { ...options, baseUrl: new URL(values["@id"]) }; } - const _baseUrl = _resolvedUrl ?? options.baseUrl; if ("@type" in values) { span.setAttribute("activitypub.object.type", values["@type"]); @@ -25132,11 +24963,9 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu "interactingObject"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === "object" && "@context" in doc) { - v = await this.#interactingObject_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#interactingObject_fromJsonLd(doc, options); + } } @@ -25351,11 +25180,9 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu "interactionTarget"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === "object" && "@context" in doc) { - v = await this.#interactionTarget_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#interactionTarget_fromJsonLd(doc, options); + } } @@ -25632,14 +25459,9 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - const _resolvedUrl = - values["@id"] != null && URL.canParse(values["@id"], options.baseUrl) - ? new URL(values["@id"], options.baseUrl) - : undefined; - if (options.baseUrl == null && _resolvedUrl != null) { - options = { ...options, baseUrl: _resolvedUrl }; + if (options.baseUrl == null && values["@id"] != null) { + options = { ...options, baseUrl: new URL(values["@id"]) }; } - const _baseUrl = _resolvedUrl ?? options.baseUrl; if ("@type" in values) { span.setAttribute("activitypub.object.type", values["@type"]); @@ -25688,7 +25510,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject.push(decoded); @@ -25721,7 +25543,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget.push(decoded); @@ -26085,14 +25907,9 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - const _resolvedUrl = - values["@id"] != null && URL.canParse(values["@id"], options.baseUrl) - ? new URL(values["@id"], options.baseUrl) - : undefined; - if (options.baseUrl == null && _resolvedUrl != null) { - options = { ...options, baseUrl: _resolvedUrl }; + if (options.baseUrl == null && values["@id"] != null) { + options = { ...options, baseUrl: new URL(values["@id"]) }; } - const _baseUrl = _resolvedUrl ?? options.baseUrl; if ("@type" in values) { span.setAttribute("activitypub.object.type", values["@type"]); @@ -26535,14 +26352,9 @@ get endpoints(): (URL)[] { // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - const _resolvedUrl = - values["@id"] != null && URL.canParse(values["@id"], options.baseUrl) - ? new URL(values["@id"], options.baseUrl) - : undefined; - if (options.baseUrl == null && _resolvedUrl != null) { - options = { ...options, baseUrl: _resolvedUrl }; + if (options.baseUrl == null && values["@id"] != null) { + options = { ...options, baseUrl: new URL(values["@id"]) }; } - const _baseUrl = _resolvedUrl ?? options.baseUrl; if ("@type" in values) { span.setAttribute("activitypub.object.type", values["@type"]); @@ -26589,9 +26401,9 @@ get endpoints(): (URL)[] { : "" ) ) - : URL.canParse(v["@id"]) && _baseUrl + : URL.canParse(v["@id"]) && (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) ? new URL(v["@id"]) - : new URL(v["@id"], _baseUrl); + : new URL(v["@id"], (values["@id"] == null ? options.baseUrl : new URL(values["@id"]))); if (typeof decoded === "undefined") continue; _2KM4fetG6FTJ1cphj76rzJ8Dyv7p_serviceEndpoint.push(decoded); } @@ -26893,14 +26705,9 @@ endpoints?: (URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - const _resolvedUrl = - values["@id"] != null && URL.canParse(values["@id"], options.baseUrl) - ? new URL(values["@id"], options.baseUrl) - : undefined; - if (options.baseUrl == null && _resolvedUrl != null) { - options = { ...options, baseUrl: _resolvedUrl }; + if (options.baseUrl == null && values["@id"] != null) { + options = { ...options, baseUrl: new URL(values["@id"]) }; } - const _baseUrl = _resolvedUrl ?? options.baseUrl; if ("@type" in values) { span.setAttribute("activitypub.object.type", values["@type"]); @@ -27716,14 +27523,9 @@ cryptosuite?: "eddsa-jcs-2022" | null;verificationMethod?: Multikey | URL | null // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - const _resolvedUrl = - values["@id"] != null && URL.canParse(values["@id"], options.baseUrl) - ? new URL(values["@id"], options.baseUrl) - : undefined; - if (options.baseUrl == null && _resolvedUrl != null) { - options = { ...options, baseUrl: _resolvedUrl }; + if (options.baseUrl == null && values["@id"] != null) { + options = { ...options, baseUrl: new URL(values["@id"]) }; } - const _baseUrl = _resolvedUrl ?? options.baseUrl; if ("@type" in values) { span.setAttribute("activitypub.object.type", values["@type"]); @@ -27785,7 +27587,7 @@ cryptosuite?: "eddsa-jcs-2022" | null;verificationMethod?: Multikey | URL | null const decoded = await Multikey.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _2mHVKxqA7zncjveJrDEo3pWpMZqg_verificationMethod.push(decoded); @@ -28411,11 +28213,9 @@ owner?: Application | Group | Organization | Person | Service | URL | null;publi "owner"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === "object" && "@context" in doc) { - v = await this.#owner_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#owner_fromJsonLd(doc, options); + } } @@ -28690,14 +28490,9 @@ owner?: Application | Group | Organization | Person | Service | URL | null;publi // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - const _resolvedUrl = - values["@id"] != null && URL.canParse(values["@id"], options.baseUrl) - ? new URL(values["@id"], options.baseUrl) - : undefined; - if (options.baseUrl == null && _resolvedUrl != null) { - options = { ...options, baseUrl: _resolvedUrl }; + if (options.baseUrl == null && values["@id"] != null) { + options = { ...options, baseUrl: new URL(values["@id"]) }; } - const _baseUrl = _resolvedUrl ?? options.baseUrl; if ("@type" in values) { span.setAttribute("activitypub.object.type", values["@type"]); @@ -28743,23 +28538,23 @@ owner?: Application | Group | Organization | Person | Service | URL | null;publi typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Application") ? await Application.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Group") ? await Group.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Organization") ? await Organization.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Person") ? await Person.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Service") ? await Service.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ) : undefined ; if (typeof decoded === "undefined") continue; @@ -29291,11 +29086,9 @@ controller?: Application | Group | Organization | Person | Service | URL | null; "controller"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === "object" && "@context" in doc) { - v = await this.#controller_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#controller_fromJsonLd(doc, options); + } } @@ -29577,14 +29370,9 @@ controller?: Application | Group | Organization | Person | Service | URL | null; // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - const _resolvedUrl = - values["@id"] != null && URL.canParse(values["@id"], options.baseUrl) - ? new URL(values["@id"], options.baseUrl) - : undefined; - if (options.baseUrl == null && _resolvedUrl != null) { - options = { ...options, baseUrl: _resolvedUrl }; + if (options.baseUrl == null && values["@id"] != null) { + options = { ...options, baseUrl: new URL(values["@id"]) }; } - const _baseUrl = _resolvedUrl ?? options.baseUrl; if ("@type" in values) { span.setAttribute("activitypub.object.type", values["@type"]); @@ -29630,23 +29418,23 @@ controller?: Application | Group | Organization | Person | Service | URL | null; typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Application") ? await Application.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Group") ? await Group.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Organization") ? await Organization.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Person") ? await Person.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Service") ? await Service.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ) : undefined ; if (typeof decoded === "undefined") continue; @@ -30417,14 +30205,9 @@ action?: string | null;resourceConformsTo?: URL | null;resourceQuantity?: Measur // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - const _resolvedUrl = - values["@id"] != null && URL.canParse(values["@id"], options.baseUrl) - ? new URL(values["@id"], options.baseUrl) - : undefined; - if (options.baseUrl == null && _resolvedUrl != null) { - options = { ...options, baseUrl: _resolvedUrl }; + if (options.baseUrl == null && values["@id"] != null) { + options = { ...options, baseUrl: new URL(values["@id"]) }; } - const _baseUrl = _resolvedUrl ?? options.baseUrl; if ("@type" in values) { span.setAttribute("activitypub.object.type", values["@type"]); @@ -30485,9 +30268,9 @@ action?: string | null;resourceConformsTo?: URL | null;resourceQuantity?: Measur : "" ) ) - : URL.canParse(v["@id"]) && _baseUrl + : URL.canParse(v["@id"]) && (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) ? new URL(v["@id"]) - : new URL(v["@id"], _baseUrl); + : new URL(v["@id"], (values["@id"] == null ? options.baseUrl : new URL(values["@id"]))); if (typeof decoded === "undefined") continue; _BBAeMUUQDwBQn6cvu3P2Csd6b6h_resourceConformsTo.push(decoded); } @@ -30507,7 +30290,7 @@ action?: string | null;resourceConformsTo?: URL | null;resourceQuantity?: Measur const decoded = await Measure.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _2dLfqTbbRiggEcMQWbHpxkQrtmrc_resourceQuantity.push(decoded); @@ -30528,7 +30311,7 @@ action?: string | null;resourceConformsTo?: URL | null;resourceQuantity?: Measur const decoded = await Measure.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _YmNSnuih3Zk4VdR5JPVnQYroLAh_availableQuantity.push(decoded); @@ -30549,7 +30332,7 @@ action?: string | null;resourceConformsTo?: URL | null;resourceQuantity?: Measur const decoded = await Measure.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _3XueAFds2NBrqNpnV8b7aC8hV72S_minimumQuantity.push(decoded); @@ -31294,14 +31077,9 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - const _resolvedUrl = - values["@id"] != null && URL.canParse(values["@id"], options.baseUrl) - ? new URL(values["@id"], options.baseUrl) - : undefined; - if (options.baseUrl == null && _resolvedUrl != null) { - options = { ...options, baseUrl: _resolvedUrl }; + if (options.baseUrl == null && values["@id"] != null) { + options = { ...options, baseUrl: new URL(values["@id"]) }; } - const _baseUrl = _resolvedUrl ?? options.baseUrl; if ("@type" in values) { span.setAttribute("activitypub.object.type", values["@type"]); @@ -31356,7 +31134,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Intent.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _sS5LvXX8cn4c3x6ux836AwYbTyJ_publishes.push(decoded); @@ -31377,7 +31155,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Intent.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _Z4ntJgFwR9BaNTbFvkRTGNEwUwy_reciprocal.push(decoded); @@ -31792,14 +31570,9 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - const _resolvedUrl = - values["@id"] != null && URL.canParse(values["@id"], options.baseUrl) - ? new URL(values["@id"], options.baseUrl) - : undefined; - if (options.baseUrl == null && _resolvedUrl != null) { - options = { ...options, baseUrl: _resolvedUrl }; + if (options.baseUrl == null && values["@id"] != null) { + options = { ...options, baseUrl: new URL(values["@id"]) }; } - const _baseUrl = _resolvedUrl ?? options.baseUrl; if ("@type" in values) { span.setAttribute("activitypub.object.type", values["@type"]); @@ -32137,14 +31910,9 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - const _resolvedUrl = - values["@id"] != null && URL.canParse(values["@id"], options.baseUrl) - ? new URL(values["@id"], options.baseUrl) - : undefined; - if (options.baseUrl == null && _resolvedUrl != null) { - options = { ...options, baseUrl: _resolvedUrl }; + if (options.baseUrl == null && values["@id"] != null) { + options = { ...options, baseUrl: new URL(values["@id"]) }; } - const _baseUrl = _resolvedUrl ?? options.baseUrl; if ("@type" in values) { span.setAttribute("activitypub.object.type", values["@type"]); @@ -32477,14 +32245,9 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - const _resolvedUrl = - values["@id"] != null && URL.canParse(values["@id"], options.baseUrl) - ? new URL(values["@id"], options.baseUrl) - : undefined; - if (options.baseUrl == null && _resolvedUrl != null) { - options = { ...options, baseUrl: _resolvedUrl }; + if (options.baseUrl == null && values["@id"] != null) { + options = { ...options, baseUrl: new URL(values["@id"]) }; } - const _baseUrl = _resolvedUrl ?? options.baseUrl; if ("@type" in values) { span.setAttribute("activitypub.object.type", values["@type"]); @@ -33758,11 +33521,9 @@ get preferredUsernames(): ((string | LanguageString))[] { "publicKey"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === "object" && "@context" in doc) { - v = await this.#publicKey_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#publicKey_fromJsonLd(doc, options); + } } @@ -33855,11 +33616,9 @@ get preferredUsernames(): ((string | LanguageString))[] { "publicKey"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === "object" && "@context" in obj) { - v = await this.#publicKey_fromJsonLd(obj, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#publicKey_fromJsonLd(obj, options); + } } @@ -34078,11 +33837,9 @@ get preferredUsernames(): ((string | LanguageString))[] { "assertionMethod"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === "object" && "@context" in doc) { - v = await this.#assertionMethod_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#assertionMethod_fromJsonLd(doc, options); + } } @@ -34179,11 +33936,9 @@ get preferredUsernames(): ((string | LanguageString))[] { "assertionMethod"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === "object" && "@context" in obj) { - v = await this.#assertionMethod_fromJsonLd(obj, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#assertionMethod_fromJsonLd(obj, options); + } } @@ -34439,11 +34194,9 @@ get preferredUsernames(): ((string | LanguageString))[] { "inbox"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === "object" && "@context" in doc) { - v = await this.#inbox_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#inbox_fromJsonLd(doc, options); + } } @@ -34676,11 +34429,9 @@ get preferredUsernames(): ((string | LanguageString))[] { "outbox"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === "object" && "@context" in doc) { - v = await this.#outbox_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#outbox_fromJsonLd(doc, options); + } } @@ -34899,11 +34650,9 @@ get preferredUsernames(): ((string | LanguageString))[] { "following"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === "object" && "@context" in doc) { - v = await this.#following_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#following_fromJsonLd(doc, options); + } } @@ -35125,11 +34874,9 @@ get preferredUsernames(): ((string | LanguageString))[] { "followers"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === "object" && "@context" in doc) { - v = await this.#followers_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#followers_fromJsonLd(doc, options); + } } @@ -35349,11 +35096,9 @@ get preferredUsernames(): ((string | LanguageString))[] { "liked"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === "object" && "@context" in doc) { - v = await this.#liked_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#liked_fromJsonLd(doc, options); + } } @@ -35571,11 +35316,9 @@ get preferredUsernames(): ((string | LanguageString))[] { "featured"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === "object" && "@context" in doc) { - v = await this.#featured_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#featured_fromJsonLd(doc, options); + } } @@ -35793,11 +35536,9 @@ get preferredUsernames(): ((string | LanguageString))[] { "featuredTags"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === "object" && "@context" in doc) { - v = await this.#featuredTags_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#featuredTags_fromJsonLd(doc, options); + } } @@ -36013,11 +35754,9 @@ get preferredUsernames(): ((string | LanguageString))[] { "streams"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === "object" && "@context" in obj) { - v = await this.#stream_fromJsonLd(obj, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#stream_fromJsonLd(obj, options); + } } @@ -36343,11 +36082,9 @@ get preferredUsernames(): ((string | LanguageString))[] { "movedTo"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === "object" && "@context" in doc) { - v = await this.#successor_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#successor_fromJsonLd(doc, options); + } } @@ -36601,11 +36338,9 @@ get preferredUsernames(): ((string | LanguageString))[] { "alsoKnownAs"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === "object" && "@context" in doc) { - v = await this.#alias_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#alias_fromJsonLd(doc, options); + } } @@ -36702,11 +36437,9 @@ get preferredUsernames(): ((string | LanguageString))[] { "alsoKnownAs"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === "object" && "@context" in obj) { - v = await this.#alias_fromJsonLd(obj, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#alias_fromJsonLd(obj, options); + } } @@ -36925,11 +36658,9 @@ get preferredUsernames(): ((string | LanguageString))[] { "service"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === "object" && "@context" in doc) { - v = await this.#service_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#service_fromJsonLd(doc, options); + } } @@ -37026,11 +36757,9 @@ get preferredUsernames(): ((string | LanguageString))[] { "service"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === "object" && "@context" in obj) { - v = await this.#service_fromJsonLd(obj, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#service_fromJsonLd(obj, options); + } } @@ -38063,14 +37792,9 @@ get preferredUsernames(): ((string | LanguageString))[] { // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - const _resolvedUrl = - values["@id"] != null && URL.canParse(values["@id"], options.baseUrl) - ? new URL(values["@id"], options.baseUrl) - : undefined; - if (options.baseUrl == null && _resolvedUrl != null) { - options = { ...options, baseUrl: _resolvedUrl }; + if (options.baseUrl == null && values["@id"] != null) { + options = { ...options, baseUrl: new URL(values["@id"]) }; } - const _baseUrl = _resolvedUrl ?? options.baseUrl; if ("@type" in values) { span.setAttribute("activitypub.object.type", values["@type"]); @@ -38143,7 +37867,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await CryptographicKey.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _axq166E2eZADq34V4MYUc8KMZdC_publicKey.push(decoded); @@ -38176,7 +37900,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Multikey.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.push(decoded); @@ -38229,11 +37953,11 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#OrderedCollection") ? await OrderedCollection.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#OrderedCollectionPage") ? await OrderedCollectionPage.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ) : undefined ; if (typeof decoded === "undefined") continue; @@ -38270,11 +37994,11 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#OrderedCollection") ? await OrderedCollection.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#OrderedCollectionPage") ? await OrderedCollectionPage.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ) : undefined ; if (typeof decoded === "undefined") continue; @@ -38309,7 +38033,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _3yAv8jymNfNuJUDuBzJ1NQhdbAee_following.push(decoded); @@ -38342,7 +38066,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _BBCTgfphhsFzpVfKTykGSpBNwoA_followers.push(decoded); @@ -38375,7 +38099,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _3bgkPwJanyTCoVFM9ovRcus8tKkU_liked.push(decoded); @@ -38408,7 +38132,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _4N1vBJzXDf8NbBumeECQMFvKetja_featured.push(decoded); @@ -38441,7 +38165,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags.push(decoded); @@ -38474,7 +38198,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.push(decoded); @@ -38495,7 +38219,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Endpoints.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints.push(decoded); @@ -38602,23 +38326,23 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Application") ? await Application.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Group") ? await Group.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Organization") ? await Organization.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Person") ? await Person.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Service") ? await Service.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ) : undefined ; if (typeof decoded === "undefined") continue; @@ -38655,23 +38379,23 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Application") ? await Application.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Group") ? await Group.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Organization") ? await Organization.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Person") ? await Person.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Service") ? await Service.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ) : undefined ; if (typeof decoded === "undefined") continue; @@ -38706,7 +38430,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await DidService.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.push(decoded); @@ -39531,14 +39255,9 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - const _resolvedUrl = - values["@id"] != null && URL.canParse(values["@id"], options.baseUrl) - ? new URL(values["@id"], options.baseUrl) - : undefined; - if (options.baseUrl == null && _resolvedUrl != null) { - options = { ...options, baseUrl: _resolvedUrl }; + if (options.baseUrl == null && values["@id"] != null) { + options = { ...options, baseUrl: new URL(values["@id"]) }; } - const _baseUrl = _resolvedUrl ?? options.baseUrl; if ("@type" in values) { span.setAttribute("activitypub.object.type", values["@type"]); @@ -39883,14 +39602,9 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - const _resolvedUrl = - values["@id"] != null && URL.canParse(values["@id"], options.baseUrl) - ? new URL(values["@id"], options.baseUrl) - : undefined; - if (options.baseUrl == null && _resolvedUrl != null) { - options = { ...options, baseUrl: _resolvedUrl }; + if (options.baseUrl == null && values["@id"] != null) { + options = { ...options, baseUrl: new URL(values["@id"]) }; } - const _baseUrl = _resolvedUrl ?? options.baseUrl; if ("@type" in values) { span.setAttribute("activitypub.object.type", values["@type"]); @@ -40320,11 +40034,9 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu "quote"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === "object" && "@context" in doc) { - v = await this.#quote_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#quote_fromJsonLd(doc, options); + } } @@ -40563,11 +40275,9 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu "quoteAuthorization"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === "object" && "@context" in doc) { - v = await this.#quoteAuthorization_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#quoteAuthorization_fromJsonLd(doc, options); + } } @@ -40889,14 +40599,9 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - const _resolvedUrl = - values["@id"] != null && URL.canParse(values["@id"], options.baseUrl) - ? new URL(values["@id"], options.baseUrl) - : undefined; - if (options.baseUrl == null && _resolvedUrl != null) { - options = { ...options, baseUrl: _resolvedUrl }; + if (options.baseUrl == null && values["@id"] != null) { + options = { ...options, baseUrl: new URL(values["@id"]) }; } - const _baseUrl = _resolvedUrl ?? options.baseUrl; if ("@type" in values) { span.setAttribute("activitypub.object.type", values["@type"]); @@ -40945,7 +40650,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote.push(decoded); @@ -41004,7 +40709,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await QuoteAuthorization.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization.push(decoded); @@ -41535,14 +41240,9 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - const _resolvedUrl = - values["@id"] != null && URL.canParse(values["@id"], options.baseUrl) - ? new URL(values["@id"], options.baseUrl) - : undefined; - if (options.baseUrl == null && _resolvedUrl != null) { - options = { ...options, baseUrl: _resolvedUrl }; + if (options.baseUrl == null && values["@id"] != null) { + options = { ...options, baseUrl: new URL(values["@id"]) }; } - const _baseUrl = _resolvedUrl ?? options.baseUrl; if ("@type" in values) { span.setAttribute("activitypub.object.type", values["@type"]); @@ -41969,14 +41669,9 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - const _resolvedUrl = - values["@id"] != null && URL.canParse(values["@id"], options.baseUrl) - ? new URL(values["@id"], options.baseUrl) - : undefined; - if (options.baseUrl == null && _resolvedUrl != null) { - options = { ...options, baseUrl: _resolvedUrl }; + if (options.baseUrl == null && values["@id"] != null) { + options = { ...options, baseUrl: new URL(values["@id"]) }; } - const _baseUrl = _resolvedUrl ?? options.baseUrl; if ("@type" in values) { span.setAttribute("activitypub.object.type", values["@type"]); @@ -42308,14 +42003,9 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - const _resolvedUrl = - values["@id"] != null && URL.canParse(values["@id"], options.baseUrl) - ? new URL(values["@id"], options.baseUrl) - : undefined; - if (options.baseUrl == null && _resolvedUrl != null) { - options = { ...options, baseUrl: _resolvedUrl }; + if (options.baseUrl == null && values["@id"] != null) { + options = { ...options, baseUrl: new URL(values["@id"]) }; } - const _baseUrl = _resolvedUrl ?? options.baseUrl; if ("@type" in values) { span.setAttribute("activitypub.object.type", values["@type"]); @@ -42653,14 +42343,9 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - const _resolvedUrl = - values["@id"] != null && URL.canParse(values["@id"], options.baseUrl) - ? new URL(values["@id"], options.baseUrl) - : undefined; - if (options.baseUrl == null && _resolvedUrl != null) { - options = { ...options, baseUrl: _resolvedUrl }; + if (options.baseUrl == null && values["@id"] != null) { + options = { ...options, baseUrl: new URL(values["@id"]) }; } - const _baseUrl = _resolvedUrl ?? options.baseUrl; if ("@type" in values) { span.setAttribute("activitypub.object.type", values["@type"]); @@ -43413,11 +43098,9 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu "current"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === "object" && "@context" in doc) { - v = await this.#current_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#current_fromJsonLd(doc, options); + } } @@ -43633,11 +43316,9 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu "first"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === "object" && "@context" in doc) { - v = await this.#first_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#first_fromJsonLd(doc, options); + } } @@ -43853,11 +43534,9 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu "last"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === "object" && "@context" in doc) { - v = await this.#last_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#last_fromJsonLd(doc, options); + } } @@ -44083,11 +43762,9 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu "items"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === "object" && "@context" in obj) { - v = await this.#item_fromJsonLd(obj, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#item_fromJsonLd(obj, options); + } } @@ -44303,11 +43980,9 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu "likesOf"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === "object" && "@context" in doc) { - v = await this.#likesOf_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#likesOf_fromJsonLd(doc, options); + } } @@ -44522,11 +44197,9 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu "sharesOf"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === "object" && "@context" in doc) { - v = await this.#sharesOf_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#sharesOf_fromJsonLd(doc, options); + } } @@ -44741,11 +44414,9 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu "repliesOf"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === "object" && "@context" in doc) { - v = await this.#repliesOf_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#repliesOf_fromJsonLd(doc, options); + } } @@ -44960,11 +44631,9 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu "inboxOf"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === "object" && "@context" in doc) { - v = await this.#inboxOf_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#inboxOf_fromJsonLd(doc, options); + } } @@ -45179,11 +44848,9 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu "outboxOf"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === "object" && "@context" in doc) { - v = await this.#outboxOf_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#outboxOf_fromJsonLd(doc, options); + } } @@ -45398,11 +45065,9 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu "followersOf"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === "object" && "@context" in doc) { - v = await this.#followersOf_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#followersOf_fromJsonLd(doc, options); + } } @@ -45617,11 +45282,9 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu "followingOf"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === "object" && "@context" in doc) { - v = await this.#followingOf_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#followingOf_fromJsonLd(doc, options); + } } @@ -45836,11 +45499,9 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu "likedOf"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === "object" && "@context" in doc) { - v = await this.#likedOf_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#likedOf_fromJsonLd(doc, options); + } } @@ -46505,14 +46166,9 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - const _resolvedUrl = - values["@id"] != null && URL.canParse(values["@id"], options.baseUrl) - ? new URL(values["@id"], options.baseUrl) - : undefined; - if (options.baseUrl == null && _resolvedUrl != null) { - options = { ...options, baseUrl: _resolvedUrl }; + if (options.baseUrl == null && values["@id"] != null) { + options = { ...options, baseUrl: new URL(values["@id"]) }; } - const _baseUrl = _resolvedUrl ?? options.baseUrl; if ("@type" in values) { span.setAttribute("activitypub.object.type", values["@type"]); @@ -46591,7 +46247,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await CollectionPage.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _3UyUdxnyn6cDn53QKrh4MBiearma_current.push(decoded); @@ -46624,7 +46280,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await CollectionPage.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _J52RqweMe6hhv7RnLJMC8BExTE5_first.push(decoded); @@ -46657,7 +46313,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await CollectionPage.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _gyJJnyEFnuNVi1HFZKfAn3Hfn26_last.push(decoded); @@ -46693,12 +46349,12 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu && Array.isArray(v["@type"])&& ["https://www.w3.org/ns/activitystreams#Object","http://joinmastodon.org/ns#Emoji","http://litepub.social/ns#ChatMessage","https://gotosocial.org/ns#AnnounceAuthorization","https://gotosocial.org/ns#LikeApproval","https://gotosocial.org/ns#ReplyAuthorization","https://w3id.org/fep/044f#QuoteAuthorization","https://w3id.org/valueflows/ont/vf#Proposal","https://www.w3.org/ns/activitystreams#Activity","http://litepub.social/ns#EmojiReact","https://gotosocial.org/ns#AnnounceRequest","https://gotosocial.org/ns#LikeRequest","https://gotosocial.org/ns#ReplyRequest","https://w3id.org/fep/044f#QuoteRequest","https://www.w3.org/ns/activitystreams#Accept","https://www.w3.org/ns/activitystreams#TentativeAccept","https://www.w3.org/ns/activitystreams#Add","https://www.w3.org/ns/activitystreams#Announce","https://www.w3.org/ns/activitystreams#Create","https://www.w3.org/ns/activitystreams#Delete","https://www.w3.org/ns/activitystreams#Dislike","https://www.w3.org/ns/activitystreams#Flag","https://www.w3.org/ns/activitystreams#Follow","https://www.w3.org/ns/activitystreams#Ignore","https://www.w3.org/ns/activitystreams#Block","https://www.w3.org/ns/activitystreams#IntransitiveActivity","https://www.w3.org/ns/activitystreams#Arrive","https://www.w3.org/ns/activitystreams#Question","https://www.w3.org/ns/activitystreams#Travel","https://www.w3.org/ns/activitystreams#Join","https://www.w3.org/ns/activitystreams#Leave","https://www.w3.org/ns/activitystreams#Like","https://www.w3.org/ns/activitystreams#Listen","https://www.w3.org/ns/activitystreams#Move","https://www.w3.org/ns/activitystreams#Offer","https://www.w3.org/ns/activitystreams#Invite","https://www.w3.org/ns/activitystreams#Read","https://www.w3.org/ns/activitystreams#Reject","https://www.w3.org/ns/activitystreams#TentativeReject","https://www.w3.org/ns/activitystreams#Remove","https://www.w3.org/ns/activitystreams#Undo","https://www.w3.org/ns/activitystreams#Update","https://www.w3.org/ns/activitystreams#View","https://www.w3.org/ns/activitystreams#Application","https://www.w3.org/ns/activitystreams#Article","https://www.w3.org/ns/activitystreams#Collection","https://www.w3.org/ns/activitystreams#CollectionPage","https://www.w3.org/ns/activitystreams#OrderedCollectionPage","https://www.w3.org/ns/activitystreams#OrderedCollection","https://www.w3.org/ns/activitystreams#Document","https://www.w3.org/ns/activitystreams#Audio","https://www.w3.org/ns/activitystreams#Image","https://www.w3.org/ns/activitystreams#Page","https://www.w3.org/ns/activitystreams#Video","https://www.w3.org/ns/activitystreams#Event","https://www.w3.org/ns/activitystreams#Group","https://www.w3.org/ns/activitystreams#Note","https://www.w3.org/ns/activitystreams#Organization","https://www.w3.org/ns/activitystreams#Person","https://www.w3.org/ns/activitystreams#Place","https://www.w3.org/ns/activitystreams#Profile","https://www.w3.org/ns/activitystreams#Relationship","https://www.w3.org/ns/activitystreams#Service","https://www.w3.org/ns/activitystreams#Tombstone"].some( t => v["@type"].includes(t)) ? await Object.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& ["https://www.w3.org/ns/activitystreams#Link","https://www.w3.org/ns/activitystreams#Hashtag","https://www.w3.org/ns/activitystreams#Mention"].some( t => v["@type"].includes(t)) ? await Link.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ) : undefined ; if (typeof decoded === "undefined") continue; @@ -46733,7 +46389,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _4TB9Qd9ddtcZEpMfzbHhzafE6jaJ_likesOf.push(decoded); @@ -46766,7 +46422,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _3manzgeKiPsugpztKGiaUUwJ3ito_sharesOf.push(decoded); @@ -46799,7 +46455,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _3T3oGm3twpcQUcrnMisXQtmDZ32X_repliesOf.push(decoded); @@ -46832,7 +46488,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _2bvRkAFZjMfVD8jiUWZJr5YokSeN_inboxOf.push(decoded); @@ -46865,7 +46521,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _4AHzVZDxHjK6uEWa9UiKHGK34yYm_outboxOf.push(decoded); @@ -46898,7 +46554,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _41aoZ5M6yRUHy3Zx8q6iuZQxtopb_followersOf.push(decoded); @@ -46931,7 +46587,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _2nXT2Ah42UjEEQF5oJQ39CbKB1xj_followingOf.push(decoded); @@ -46964,7 +46620,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _2bsySzmT3qEZcrnoe3tZ5xBjXSju_likedOf.push(decoded); @@ -47644,11 +47300,9 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu "partOf"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === "object" && "@context" in doc) { - v = await this.#partOf_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#partOf_fromJsonLd(doc, options); + } } @@ -47862,11 +47516,9 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu "next"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === "object" && "@context" in doc) { - v = await this.#next_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#next_fromJsonLd(doc, options); + } } @@ -48081,11 +47733,9 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu "prev"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === "object" && "@context" in doc) { - v = await this.#prev_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#prev_fromJsonLd(doc, options); + } } @@ -48397,14 +48047,9 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - const _resolvedUrl = - values["@id"] != null && URL.canParse(values["@id"], options.baseUrl) - ? new URL(values["@id"], options.baseUrl) - : undefined; - if (options.baseUrl == null && _resolvedUrl != null) { - options = { ...options, baseUrl: _resolvedUrl }; + if (options.baseUrl == null && values["@id"] != null) { + options = { ...options, baseUrl: new URL(values["@id"]) }; } - const _baseUrl = _resolvedUrl ?? options.baseUrl; if ("@type" in values) { span.setAttribute("activitypub.object.type", values["@type"]); @@ -48457,7 +48102,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _2kWgBhQKjEauxx8C6qF3ZQamK4Le_partOf.push(decoded); @@ -48490,7 +48135,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await CollectionPage.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _3BT4kQLcXhHx7TAWaNDKh8nFn9eY_next.push(decoded); @@ -48523,7 +48168,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await CollectionPage.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _3b8yG8tDNzQFFEnWhCc13G8eHooA_prev.push(decoded); @@ -48897,14 +48542,9 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - const _resolvedUrl = - values["@id"] != null && URL.canParse(values["@id"], options.baseUrl) - ? new URL(values["@id"], options.baseUrl) - : undefined; - if (options.baseUrl == null && _resolvedUrl != null) { - options = { ...options, baseUrl: _resolvedUrl }; + if (options.baseUrl == null && values["@id"] != null) { + options = { ...options, baseUrl: new URL(values["@id"]) }; } - const _baseUrl = _resolvedUrl ?? options.baseUrl; if ("@type" in values) { span.setAttribute("activitypub.object.type", values["@type"]); @@ -49236,14 +48876,9 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - const _resolvedUrl = - values["@id"] != null && URL.canParse(values["@id"], options.baseUrl) - ? new URL(values["@id"], options.baseUrl) - : undefined; - if (options.baseUrl == null && _resolvedUrl != null) { - options = { ...options, baseUrl: _resolvedUrl }; + if (options.baseUrl == null && values["@id"] != null) { + options = { ...options, baseUrl: new URL(values["@id"]) }; } - const _baseUrl = _resolvedUrl ?? options.baseUrl; if ("@type" in values) { span.setAttribute("activitypub.object.type", values["@type"]); @@ -49573,14 +49208,9 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - const _resolvedUrl = - values["@id"] != null && URL.canParse(values["@id"], options.baseUrl) - ? new URL(values["@id"], options.baseUrl) - : undefined; - if (options.baseUrl == null && _resolvedUrl != null) { - options = { ...options, baseUrl: _resolvedUrl }; + if (options.baseUrl == null && values["@id"] != null) { + options = { ...options, baseUrl: new URL(values["@id"]) }; } - const _baseUrl = _resolvedUrl ?? options.baseUrl; if ("@type" in values) { span.setAttribute("activitypub.object.type", values["@type"]); @@ -50372,14 +50002,9 @@ proxyUrl?: URL | null;oauthAuthorizationEndpoint?: URL | null;oauthTokenEndpoint // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - const _resolvedUrl = - values["@id"] != null && URL.canParse(values["@id"], options.baseUrl) - ? new URL(values["@id"], options.baseUrl) - : undefined; - if (options.baseUrl == null && _resolvedUrl != null) { - options = { ...options, baseUrl: _resolvedUrl }; + if (options.baseUrl == null && values["@id"] != null) { + options = { ...options, baseUrl: new URL(values["@id"]) }; } - const _baseUrl = _resolvedUrl ?? options.baseUrl; if ("@type" in values) { span.setAttribute("activitypub.object.type", values["@type"]); @@ -50422,9 +50047,9 @@ proxyUrl?: URL | null;oauthAuthorizationEndpoint?: URL | null;oauthTokenEndpoint : "" ) ) - : URL.canParse(v["@id"]) && _baseUrl + : URL.canParse(v["@id"]) && (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) ? new URL(v["@id"]) - : new URL(v["@id"], _baseUrl); + : new URL(v["@id"], (values["@id"] == null ? options.baseUrl : new URL(values["@id"]))); if (typeof decoded === "undefined") continue; _2JCYDbSxEHCCLdBYed33cCETfGyR_proxyUrl.push(decoded); } @@ -50455,9 +50080,9 @@ proxyUrl?: URL | null;oauthAuthorizationEndpoint?: URL | null;oauthTokenEndpoint : "" ) ) - : URL.canParse(v["@id"]) && _baseUrl + : URL.canParse(v["@id"]) && (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) ? new URL(v["@id"]) - : new URL(v["@id"], _baseUrl); + : new URL(v["@id"], (values["@id"] == null ? options.baseUrl : new URL(values["@id"]))); if (typeof decoded === "undefined") continue; _25S6UmgzDead8hxL5sQFezZTAusd_oauthAuthorizationEndpoint.push(decoded); } @@ -50488,9 +50113,9 @@ proxyUrl?: URL | null;oauthAuthorizationEndpoint?: URL | null;oauthTokenEndpoint : "" ) ) - : URL.canParse(v["@id"]) && _baseUrl + : URL.canParse(v["@id"]) && (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) ? new URL(v["@id"]) - : new URL(v["@id"], _baseUrl); + : new URL(v["@id"], (values["@id"] == null ? options.baseUrl : new URL(values["@id"]))); if (typeof decoded === "undefined") continue; _iAMxqrSba7yBCRB1FZ5kEVdKEZ3_oauthTokenEndpoint.push(decoded); } @@ -50521,9 +50146,9 @@ proxyUrl?: URL | null;oauthAuthorizationEndpoint?: URL | null;oauthTokenEndpoint : "" ) ) - : URL.canParse(v["@id"]) && _baseUrl + : URL.canParse(v["@id"]) && (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) ? new URL(v["@id"]) - : new URL(v["@id"], _baseUrl); + : new URL(v["@id"], (values["@id"] == null ? options.baseUrl : new URL(values["@id"]))); if (typeof decoded === "undefined") continue; _8Bx9qN8oU7Bpt2xi6khaxWp1gMr_provideClientKey.push(decoded); } @@ -50554,9 +50179,9 @@ proxyUrl?: URL | null;oauthAuthorizationEndpoint?: URL | null;oauthTokenEndpoint : "" ) ) - : URL.canParse(v["@id"]) && _baseUrl + : URL.canParse(v["@id"]) && (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) ? new URL(v["@id"]) - : new URL(v["@id"], _baseUrl); + : new URL(v["@id"], (values["@id"] == null ? options.baseUrl : new URL(values["@id"]))); if (typeof decoded === "undefined") continue; _3dU7PMVQZJpsCpo2F4RQXxBXdPmS_signClientKey.push(decoded); } @@ -50587,9 +50212,9 @@ proxyUrl?: URL | null;oauthAuthorizationEndpoint?: URL | null;oauthTokenEndpoint : "" ) ) - : URL.canParse(v["@id"]) && _baseUrl + : URL.canParse(v["@id"]) && (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) ? new URL(v["@id"]) - : new URL(v["@id"], _baseUrl); + : new URL(v["@id"], (values["@id"] == null ? options.baseUrl : new URL(values["@id"]))); if (typeof decoded === "undefined") continue; _3JprUSDLVqqX4dwHRi37qGZZCRCc_sharedInbox.push(decoded); } @@ -51042,14 +50667,9 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - const _resolvedUrl = - values["@id"] != null && URL.canParse(values["@id"], options.baseUrl) - ? new URL(values["@id"], options.baseUrl) - : undefined; - if (options.baseUrl == null && _resolvedUrl != null) { - options = { ...options, baseUrl: _resolvedUrl }; + if (options.baseUrl == null && values["@id"] != null) { + options = { ...options, baseUrl: new URL(values["@id"]) }; } - const _baseUrl = _resolvedUrl ?? options.baseUrl; if ("@type" in values) { span.setAttribute("activitypub.object.type", values["@type"]); @@ -51382,14 +51002,9 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - const _resolvedUrl = - values["@id"] != null && URL.canParse(values["@id"], options.baseUrl) - ? new URL(values["@id"], options.baseUrl) - : undefined; - if (options.baseUrl == null && _resolvedUrl != null) { - options = { ...options, baseUrl: _resolvedUrl }; + if (options.baseUrl == null && values["@id"] != null) { + options = { ...options, baseUrl: new URL(values["@id"]) }; } - const _baseUrl = _resolvedUrl ?? options.baseUrl; if ("@type" in values) { span.setAttribute("activitypub.object.type", values["@type"]); @@ -51723,14 +51338,9 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - const _resolvedUrl = - values["@id"] != null && URL.canParse(values["@id"], options.baseUrl) - ? new URL(values["@id"], options.baseUrl) - : undefined; - if (options.baseUrl == null && _resolvedUrl != null) { - options = { ...options, baseUrl: _resolvedUrl }; + if (options.baseUrl == null && values["@id"] != null) { + options = { ...options, baseUrl: new URL(values["@id"]) }; } - const _baseUrl = _resolvedUrl ?? options.baseUrl; if ("@type" in values) { span.setAttribute("activitypub.object.type", values["@type"]); @@ -53004,11 +52614,9 @@ get preferredUsernames(): ((string | LanguageString))[] { "publicKey"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === "object" && "@context" in doc) { - v = await this.#publicKey_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#publicKey_fromJsonLd(doc, options); + } } @@ -53101,11 +52709,9 @@ get preferredUsernames(): ((string | LanguageString))[] { "publicKey"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === "object" && "@context" in obj) { - v = await this.#publicKey_fromJsonLd(obj, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#publicKey_fromJsonLd(obj, options); + } } @@ -53324,11 +52930,9 @@ get preferredUsernames(): ((string | LanguageString))[] { "assertionMethod"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === "object" && "@context" in doc) { - v = await this.#assertionMethod_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#assertionMethod_fromJsonLd(doc, options); + } } @@ -53425,11 +53029,9 @@ get preferredUsernames(): ((string | LanguageString))[] { "assertionMethod"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === "object" && "@context" in obj) { - v = await this.#assertionMethod_fromJsonLd(obj, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#assertionMethod_fromJsonLd(obj, options); + } } @@ -53685,11 +53287,9 @@ get preferredUsernames(): ((string | LanguageString))[] { "inbox"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === "object" && "@context" in doc) { - v = await this.#inbox_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#inbox_fromJsonLd(doc, options); + } } @@ -53922,11 +53522,9 @@ get preferredUsernames(): ((string | LanguageString))[] { "outbox"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === "object" && "@context" in doc) { - v = await this.#outbox_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#outbox_fromJsonLd(doc, options); + } } @@ -54145,11 +53743,9 @@ get preferredUsernames(): ((string | LanguageString))[] { "following"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === "object" && "@context" in doc) { - v = await this.#following_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#following_fromJsonLd(doc, options); + } } @@ -54371,11 +53967,9 @@ get preferredUsernames(): ((string | LanguageString))[] { "followers"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === "object" && "@context" in doc) { - v = await this.#followers_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#followers_fromJsonLd(doc, options); + } } @@ -54595,11 +54189,9 @@ get preferredUsernames(): ((string | LanguageString))[] { "liked"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === "object" && "@context" in doc) { - v = await this.#liked_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#liked_fromJsonLd(doc, options); + } } @@ -54817,11 +54409,9 @@ get preferredUsernames(): ((string | LanguageString))[] { "featured"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === "object" && "@context" in doc) { - v = await this.#featured_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#featured_fromJsonLd(doc, options); + } } @@ -55039,11 +54629,9 @@ get preferredUsernames(): ((string | LanguageString))[] { "featuredTags"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === "object" && "@context" in doc) { - v = await this.#featuredTags_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#featuredTags_fromJsonLd(doc, options); + } } @@ -55259,11 +54847,9 @@ get preferredUsernames(): ((string | LanguageString))[] { "streams"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === "object" && "@context" in obj) { - v = await this.#stream_fromJsonLd(obj, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#stream_fromJsonLd(obj, options); + } } @@ -55589,11 +55175,9 @@ get preferredUsernames(): ((string | LanguageString))[] { "movedTo"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === "object" && "@context" in doc) { - v = await this.#successor_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#successor_fromJsonLd(doc, options); + } } @@ -55847,11 +55431,9 @@ get preferredUsernames(): ((string | LanguageString))[] { "alsoKnownAs"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === "object" && "@context" in doc) { - v = await this.#alias_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#alias_fromJsonLd(doc, options); + } } @@ -55948,11 +55530,9 @@ get preferredUsernames(): ((string | LanguageString))[] { "alsoKnownAs"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === "object" && "@context" in obj) { - v = await this.#alias_fromJsonLd(obj, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#alias_fromJsonLd(obj, options); + } } @@ -56171,11 +55751,9 @@ get preferredUsernames(): ((string | LanguageString))[] { "service"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === "object" && "@context" in doc) { - v = await this.#service_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#service_fromJsonLd(doc, options); + } } @@ -56272,11 +55850,9 @@ get preferredUsernames(): ((string | LanguageString))[] { "service"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === "object" && "@context" in obj) { - v = await this.#service_fromJsonLd(obj, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#service_fromJsonLd(obj, options); + } } @@ -57309,14 +56885,9 @@ get preferredUsernames(): ((string | LanguageString))[] { // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - const _resolvedUrl = - values["@id"] != null && URL.canParse(values["@id"], options.baseUrl) - ? new URL(values["@id"], options.baseUrl) - : undefined; - if (options.baseUrl == null && _resolvedUrl != null) { - options = { ...options, baseUrl: _resolvedUrl }; + if (options.baseUrl == null && values["@id"] != null) { + options = { ...options, baseUrl: new URL(values["@id"]) }; } - const _baseUrl = _resolvedUrl ?? options.baseUrl; if ("@type" in values) { span.setAttribute("activitypub.object.type", values["@type"]); @@ -57389,7 +56960,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await CryptographicKey.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _axq166E2eZADq34V4MYUc8KMZdC_publicKey.push(decoded); @@ -57422,7 +56993,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Multikey.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.push(decoded); @@ -57475,11 +57046,11 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#OrderedCollection") ? await OrderedCollection.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#OrderedCollectionPage") ? await OrderedCollectionPage.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ) : undefined ; if (typeof decoded === "undefined") continue; @@ -57516,11 +57087,11 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#OrderedCollection") ? await OrderedCollection.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#OrderedCollectionPage") ? await OrderedCollectionPage.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ) : undefined ; if (typeof decoded === "undefined") continue; @@ -57555,7 +57126,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _3yAv8jymNfNuJUDuBzJ1NQhdbAee_following.push(decoded); @@ -57588,7 +57159,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _BBCTgfphhsFzpVfKTykGSpBNwoA_followers.push(decoded); @@ -57621,7 +57192,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _3bgkPwJanyTCoVFM9ovRcus8tKkU_liked.push(decoded); @@ -57654,7 +57225,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _4N1vBJzXDf8NbBumeECQMFvKetja_featured.push(decoded); @@ -57687,7 +57258,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags.push(decoded); @@ -57720,7 +57291,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.push(decoded); @@ -57741,7 +57312,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Endpoints.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints.push(decoded); @@ -57848,23 +57419,23 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Application") ? await Application.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Group") ? await Group.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Organization") ? await Organization.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Person") ? await Person.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Service") ? await Service.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ) : undefined ; if (typeof decoded === "undefined") continue; @@ -57901,23 +57472,23 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Application") ? await Application.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Group") ? await Group.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Organization") ? await Organization.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Person") ? await Person.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Service") ? await Service.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ) : undefined ; if (typeof decoded === "undefined") continue; @@ -57952,7 +57523,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await DidService.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.push(decoded); @@ -59289,11 +58860,9 @@ get names(): ((string | LanguageString))[] { "preview"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === "object" && "@context" in obj) { - v = await this.#preview_fromJsonLd(obj, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#preview_fromJsonLd(obj, options); + } } @@ -59747,14 +59316,9 @@ get names(): ((string | LanguageString))[] { // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - const _resolvedUrl = - values["@id"] != null && URL.canParse(values["@id"], options.baseUrl) - ? new URL(values["@id"], options.baseUrl) - : undefined; - if (options.baseUrl == null && _resolvedUrl != null) { - options = { ...options, baseUrl: _resolvedUrl }; + if (options.baseUrl == null && values["@id"] != null) { + options = { ...options, baseUrl: new URL(values["@id"]) }; } - const _baseUrl = _resolvedUrl ?? options.baseUrl; if ("@type" in values) { span.setAttribute("activitypub.object.type", values["@type"]); @@ -59805,9 +59369,9 @@ get names(): ((string | LanguageString))[] { : "" ) ) - : URL.canParse(v["@id"]) && _baseUrl + : URL.canParse(v["@id"]) && (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) ? new URL(v["@id"]) - : new URL(v["@id"], _baseUrl); + : new URL(v["@id"], (values["@id"] == null ? options.baseUrl : new URL(values["@id"]))); if (typeof decoded === "undefined") continue; _pVjLsybKQdmkjuU7MHjiVmNnuj7_href.push(decoded); } @@ -59956,12 +59520,12 @@ get names(): ((string | LanguageString))[] { && Array.isArray(v["@type"])&& ["https://www.w3.org/ns/activitystreams#Link","https://www.w3.org/ns/activitystreams#Hashtag","https://www.w3.org/ns/activitystreams#Mention"].some( t => v["@type"].includes(t)) ? await Link.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& ["https://www.w3.org/ns/activitystreams#Object","http://joinmastodon.org/ns#Emoji","http://litepub.social/ns#ChatMessage","https://gotosocial.org/ns#AnnounceAuthorization","https://gotosocial.org/ns#LikeApproval","https://gotosocial.org/ns#ReplyAuthorization","https://w3id.org/fep/044f#QuoteAuthorization","https://w3id.org/valueflows/ont/vf#Proposal","https://www.w3.org/ns/activitystreams#Activity","http://litepub.social/ns#EmojiReact","https://gotosocial.org/ns#AnnounceRequest","https://gotosocial.org/ns#LikeRequest","https://gotosocial.org/ns#ReplyRequest","https://w3id.org/fep/044f#QuoteRequest","https://www.w3.org/ns/activitystreams#Accept","https://www.w3.org/ns/activitystreams#TentativeAccept","https://www.w3.org/ns/activitystreams#Add","https://www.w3.org/ns/activitystreams#Announce","https://www.w3.org/ns/activitystreams#Create","https://www.w3.org/ns/activitystreams#Delete","https://www.w3.org/ns/activitystreams#Dislike","https://www.w3.org/ns/activitystreams#Flag","https://www.w3.org/ns/activitystreams#Follow","https://www.w3.org/ns/activitystreams#Ignore","https://www.w3.org/ns/activitystreams#Block","https://www.w3.org/ns/activitystreams#IntransitiveActivity","https://www.w3.org/ns/activitystreams#Arrive","https://www.w3.org/ns/activitystreams#Question","https://www.w3.org/ns/activitystreams#Travel","https://www.w3.org/ns/activitystreams#Join","https://www.w3.org/ns/activitystreams#Leave","https://www.w3.org/ns/activitystreams#Like","https://www.w3.org/ns/activitystreams#Listen","https://www.w3.org/ns/activitystreams#Move","https://www.w3.org/ns/activitystreams#Offer","https://www.w3.org/ns/activitystreams#Invite","https://www.w3.org/ns/activitystreams#Read","https://www.w3.org/ns/activitystreams#Reject","https://www.w3.org/ns/activitystreams#TentativeReject","https://www.w3.org/ns/activitystreams#Remove","https://www.w3.org/ns/activitystreams#Undo","https://www.w3.org/ns/activitystreams#Update","https://www.w3.org/ns/activitystreams#View","https://www.w3.org/ns/activitystreams#Application","https://www.w3.org/ns/activitystreams#Article","https://www.w3.org/ns/activitystreams#Collection","https://www.w3.org/ns/activitystreams#CollectionPage","https://www.w3.org/ns/activitystreams#OrderedCollectionPage","https://www.w3.org/ns/activitystreams#OrderedCollection","https://www.w3.org/ns/activitystreams#Document","https://www.w3.org/ns/activitystreams#Audio","https://www.w3.org/ns/activitystreams#Image","https://www.w3.org/ns/activitystreams#Page","https://www.w3.org/ns/activitystreams#Video","https://www.w3.org/ns/activitystreams#Event","https://www.w3.org/ns/activitystreams#Group","https://www.w3.org/ns/activitystreams#Note","https://www.w3.org/ns/activitystreams#Organization","https://www.w3.org/ns/activitystreams#Person","https://www.w3.org/ns/activitystreams#Place","https://www.w3.org/ns/activitystreams#Profile","https://www.w3.org/ns/activitystreams#Relationship","https://www.w3.org/ns/activitystreams#Service","https://www.w3.org/ns/activitystreams#Tombstone"].some( t => v["@type"].includes(t)) ? await Object.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ) : undefined ; if (typeof decoded === "undefined") continue; @@ -60435,14 +59999,9 @@ names?: ((string | LanguageString))[];language?: Intl.Locale | null;height?: num // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - const _resolvedUrl = - values["@id"] != null && URL.canParse(values["@id"], options.baseUrl) - ? new URL(values["@id"], options.baseUrl) - : undefined; - if (options.baseUrl == null && _resolvedUrl != null) { - options = { ...options, baseUrl: _resolvedUrl }; + if (options.baseUrl == null && values["@id"] != null) { + options = { ...options, baseUrl: new URL(values["@id"]) }; } - const _baseUrl = _resolvedUrl ?? options.baseUrl; if ("@type" in values) { span.setAttribute("activitypub.object.type", values["@type"]); @@ -60777,14 +60336,9 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - const _resolvedUrl = - values["@id"] != null && URL.canParse(values["@id"], options.baseUrl) - ? new URL(values["@id"], options.baseUrl) - : undefined; - if (options.baseUrl == null && _resolvedUrl != null) { - options = { ...options, baseUrl: _resolvedUrl }; + if (options.baseUrl == null && values["@id"] != null) { + options = { ...options, baseUrl: new URL(values["@id"]) }; } - const _baseUrl = _resolvedUrl ?? options.baseUrl; if ("@type" in values) { span.setAttribute("activitypub.object.type", values["@type"]); @@ -61117,14 +60671,9 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - const _resolvedUrl = - values["@id"] != null && URL.canParse(values["@id"], options.baseUrl) - ? new URL(values["@id"], options.baseUrl) - : undefined; - if (options.baseUrl == null && _resolvedUrl != null) { - options = { ...options, baseUrl: _resolvedUrl }; + if (options.baseUrl == null && values["@id"] != null) { + options = { ...options, baseUrl: new URL(values["@id"]) }; } - const _baseUrl = _resolvedUrl ?? options.baseUrl; if ("@type" in values) { span.setAttribute("activitypub.object.type", values["@type"]); @@ -61460,14 +61009,9 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - const _resolvedUrl = - values["@id"] != null && URL.canParse(values["@id"], options.baseUrl) - ? new URL(values["@id"], options.baseUrl) - : undefined; - if (options.baseUrl == null && _resolvedUrl != null) { - options = { ...options, baseUrl: _resolvedUrl }; + if (options.baseUrl == null && values["@id"] != null) { + options = { ...options, baseUrl: new URL(values["@id"]) }; } - const _baseUrl = _resolvedUrl ?? options.baseUrl; if ("@type" in values) { span.setAttribute("activitypub.object.type", values["@type"]); @@ -61799,14 +61343,9 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - const _resolvedUrl = - values["@id"] != null && URL.canParse(values["@id"], options.baseUrl) - ? new URL(values["@id"], options.baseUrl) - : undefined; - if (options.baseUrl == null && _resolvedUrl != null) { - options = { ...options, baseUrl: _resolvedUrl }; + if (options.baseUrl == null && values["@id"] != null) { + options = { ...options, baseUrl: new URL(values["@id"]) }; } - const _baseUrl = _resolvedUrl ?? options.baseUrl; if ("@type" in values) { span.setAttribute("activitypub.object.type", values["@type"]); @@ -62138,14 +61677,9 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - const _resolvedUrl = - values["@id"] != null && URL.canParse(values["@id"], options.baseUrl) - ? new URL(values["@id"], options.baseUrl) - : undefined; - if (options.baseUrl == null && _resolvedUrl != null) { - options = { ...options, baseUrl: _resolvedUrl }; + if (options.baseUrl == null && values["@id"] != null) { + options = { ...options, baseUrl: new URL(values["@id"]) }; } - const _baseUrl = _resolvedUrl ?? options.baseUrl; if ("@type" in values) { span.setAttribute("activitypub.object.type", values["@type"]); @@ -62477,14 +62011,9 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - const _resolvedUrl = - values["@id"] != null && URL.canParse(values["@id"], options.baseUrl) - ? new URL(values["@id"], options.baseUrl) - : undefined; - if (options.baseUrl == null && _resolvedUrl != null) { - options = { ...options, baseUrl: _resolvedUrl }; + if (options.baseUrl == null && values["@id"] != null) { + options = { ...options, baseUrl: new URL(values["@id"]) }; } - const _baseUrl = _resolvedUrl ?? options.baseUrl; if ("@type" in values) { span.setAttribute("activitypub.object.type", values["@type"]); @@ -62814,14 +62343,9 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - const _resolvedUrl = - values["@id"] != null && URL.canParse(values["@id"], options.baseUrl) - ? new URL(values["@id"], options.baseUrl) - : undefined; - if (options.baseUrl == null && _resolvedUrl != null) { - options = { ...options, baseUrl: _resolvedUrl }; + if (options.baseUrl == null && values["@id"] != null) { + options = { ...options, baseUrl: new URL(values["@id"]) }; } - const _baseUrl = _resolvedUrl ?? options.baseUrl; if ("@type" in values) { span.setAttribute("activitypub.object.type", values["@type"]); @@ -63117,14 +62641,9 @@ names?: ((string | LanguageString))[];language?: Intl.Locale | null;height?: num // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - const _resolvedUrl = - values["@id"] != null && URL.canParse(values["@id"], options.baseUrl) - ? new URL(values["@id"], options.baseUrl) - : undefined; - if (options.baseUrl == null && _resolvedUrl != null) { - options = { ...options, baseUrl: _resolvedUrl }; + if (options.baseUrl == null && values["@id"] != null) { + options = { ...options, baseUrl: new URL(values["@id"]) }; } - const _baseUrl = _resolvedUrl ?? options.baseUrl; if ("@type" in values) { span.setAttribute("activitypub.object.type", values["@type"]); @@ -63457,14 +62976,9 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - const _resolvedUrl = - values["@id"] != null && URL.canParse(values["@id"], options.baseUrl) - ? new URL(values["@id"], options.baseUrl) - : undefined; - if (options.baseUrl == null && _resolvedUrl != null) { - options = { ...options, baseUrl: _resolvedUrl }; + if (options.baseUrl == null && values["@id"] != null) { + options = { ...options, baseUrl: new URL(values["@id"]) }; } - const _baseUrl = _resolvedUrl ?? options.baseUrl; if ("@type" in values) { span.setAttribute("activitypub.object.type", values["@type"]); @@ -63896,11 +63410,9 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu "quote"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === "object" && "@context" in doc) { - v = await this.#quote_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#quote_fromJsonLd(doc, options); + } } @@ -64139,11 +63651,9 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu "quoteAuthorization"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === "object" && "@context" in doc) { - v = await this.#quoteAuthorization_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#quoteAuthorization_fromJsonLd(doc, options); + } } @@ -64465,14 +63975,9 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - const _resolvedUrl = - values["@id"] != null && URL.canParse(values["@id"], options.baseUrl) - ? new URL(values["@id"], options.baseUrl) - : undefined; - if (options.baseUrl == null && _resolvedUrl != null) { - options = { ...options, baseUrl: _resolvedUrl }; + if (options.baseUrl == null && values["@id"] != null) { + options = { ...options, baseUrl: new URL(values["@id"]) }; } - const _baseUrl = _resolvedUrl ?? options.baseUrl; if ("@type" in values) { span.setAttribute("activitypub.object.type", values["@type"]); @@ -64521,7 +64026,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote.push(decoded); @@ -64580,7 +64085,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await QuoteAuthorization.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization.push(decoded); @@ -65022,11 +64527,9 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu "orderedItems"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === "object" && "@context" in obj) { - v = await this.#item_fromJsonLd(obj, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#item_fromJsonLd(obj, options); + } } @@ -65270,14 +64773,9 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - const _resolvedUrl = - values["@id"] != null && URL.canParse(values["@id"], options.baseUrl) - ? new URL(values["@id"], options.baseUrl) - : undefined; - if (options.baseUrl == null && _resolvedUrl != null) { - options = { ...options, baseUrl: _resolvedUrl }; + if (options.baseUrl == null && values["@id"] != null) { + options = { ...options, baseUrl: new URL(values["@id"]) }; } - const _baseUrl = _resolvedUrl ?? options.baseUrl; if ("@type" in values) { span.setAttribute("activitypub.object.type", values["@type"]); @@ -65329,12 +64827,12 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu && Array.isArray(v["@type"])&& ["https://www.w3.org/ns/activitystreams#Object","http://joinmastodon.org/ns#Emoji","http://litepub.social/ns#ChatMessage","https://gotosocial.org/ns#AnnounceAuthorization","https://gotosocial.org/ns#LikeApproval","https://gotosocial.org/ns#ReplyAuthorization","https://w3id.org/fep/044f#QuoteAuthorization","https://w3id.org/valueflows/ont/vf#Proposal","https://www.w3.org/ns/activitystreams#Activity","http://litepub.social/ns#EmojiReact","https://gotosocial.org/ns#AnnounceRequest","https://gotosocial.org/ns#LikeRequest","https://gotosocial.org/ns#ReplyRequest","https://w3id.org/fep/044f#QuoteRequest","https://www.w3.org/ns/activitystreams#Accept","https://www.w3.org/ns/activitystreams#TentativeAccept","https://www.w3.org/ns/activitystreams#Add","https://www.w3.org/ns/activitystreams#Announce","https://www.w3.org/ns/activitystreams#Create","https://www.w3.org/ns/activitystreams#Delete","https://www.w3.org/ns/activitystreams#Dislike","https://www.w3.org/ns/activitystreams#Flag","https://www.w3.org/ns/activitystreams#Follow","https://www.w3.org/ns/activitystreams#Ignore","https://www.w3.org/ns/activitystreams#Block","https://www.w3.org/ns/activitystreams#IntransitiveActivity","https://www.w3.org/ns/activitystreams#Arrive","https://www.w3.org/ns/activitystreams#Question","https://www.w3.org/ns/activitystreams#Travel","https://www.w3.org/ns/activitystreams#Join","https://www.w3.org/ns/activitystreams#Leave","https://www.w3.org/ns/activitystreams#Like","https://www.w3.org/ns/activitystreams#Listen","https://www.w3.org/ns/activitystreams#Move","https://www.w3.org/ns/activitystreams#Offer","https://www.w3.org/ns/activitystreams#Invite","https://www.w3.org/ns/activitystreams#Read","https://www.w3.org/ns/activitystreams#Reject","https://www.w3.org/ns/activitystreams#TentativeReject","https://www.w3.org/ns/activitystreams#Remove","https://www.w3.org/ns/activitystreams#Undo","https://www.w3.org/ns/activitystreams#Update","https://www.w3.org/ns/activitystreams#View","https://www.w3.org/ns/activitystreams#Application","https://www.w3.org/ns/activitystreams#Article","https://www.w3.org/ns/activitystreams#Collection","https://www.w3.org/ns/activitystreams#CollectionPage","https://www.w3.org/ns/activitystreams#OrderedCollectionPage","https://www.w3.org/ns/activitystreams#OrderedCollection","https://www.w3.org/ns/activitystreams#Document","https://www.w3.org/ns/activitystreams#Audio","https://www.w3.org/ns/activitystreams#Image","https://www.w3.org/ns/activitystreams#Page","https://www.w3.org/ns/activitystreams#Video","https://www.w3.org/ns/activitystreams#Event","https://www.w3.org/ns/activitystreams#Group","https://www.w3.org/ns/activitystreams#Note","https://www.w3.org/ns/activitystreams#Organization","https://www.w3.org/ns/activitystreams#Person","https://www.w3.org/ns/activitystreams#Place","https://www.w3.org/ns/activitystreams#Profile","https://www.w3.org/ns/activitystreams#Relationship","https://www.w3.org/ns/activitystreams#Service","https://www.w3.org/ns/activitystreams#Tombstone"].some( t => v["@type"].includes(t)) ? await Object.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& ["https://www.w3.org/ns/activitystreams#Link","https://www.w3.org/ns/activitystreams#Hashtag","https://www.w3.org/ns/activitystreams#Mention"].some( t => v["@type"].includes(t)) ? await Link.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ) : undefined ; if (typeof decoded === "undefined") continue; @@ -65768,11 +65266,9 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu "orderedItems"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === "object" && "@context" in obj) { - v = await this.#item_fromJsonLd(obj, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#item_fromJsonLd(obj, options); + } } @@ -66065,14 +65561,9 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - const _resolvedUrl = - values["@id"] != null && URL.canParse(values["@id"], options.baseUrl) - ? new URL(values["@id"], options.baseUrl) - : undefined; - if (options.baseUrl == null && _resolvedUrl != null) { - options = { ...options, baseUrl: _resolvedUrl }; + if (options.baseUrl == null && values["@id"] != null) { + options = { ...options, baseUrl: new URL(values["@id"]) }; } - const _baseUrl = _resolvedUrl ?? options.baseUrl; if ("@type" in values) { span.setAttribute("activitypub.object.type", values["@type"]); @@ -66124,12 +65615,12 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu && Array.isArray(v["@type"])&& ["https://www.w3.org/ns/activitystreams#Object","http://joinmastodon.org/ns#Emoji","http://litepub.social/ns#ChatMessage","https://gotosocial.org/ns#AnnounceAuthorization","https://gotosocial.org/ns#LikeApproval","https://gotosocial.org/ns#ReplyAuthorization","https://w3id.org/fep/044f#QuoteAuthorization","https://w3id.org/valueflows/ont/vf#Proposal","https://www.w3.org/ns/activitystreams#Activity","http://litepub.social/ns#EmojiReact","https://gotosocial.org/ns#AnnounceRequest","https://gotosocial.org/ns#LikeRequest","https://gotosocial.org/ns#ReplyRequest","https://w3id.org/fep/044f#QuoteRequest","https://www.w3.org/ns/activitystreams#Accept","https://www.w3.org/ns/activitystreams#TentativeAccept","https://www.w3.org/ns/activitystreams#Add","https://www.w3.org/ns/activitystreams#Announce","https://www.w3.org/ns/activitystreams#Create","https://www.w3.org/ns/activitystreams#Delete","https://www.w3.org/ns/activitystreams#Dislike","https://www.w3.org/ns/activitystreams#Flag","https://www.w3.org/ns/activitystreams#Follow","https://www.w3.org/ns/activitystreams#Ignore","https://www.w3.org/ns/activitystreams#Block","https://www.w3.org/ns/activitystreams#IntransitiveActivity","https://www.w3.org/ns/activitystreams#Arrive","https://www.w3.org/ns/activitystreams#Question","https://www.w3.org/ns/activitystreams#Travel","https://www.w3.org/ns/activitystreams#Join","https://www.w3.org/ns/activitystreams#Leave","https://www.w3.org/ns/activitystreams#Like","https://www.w3.org/ns/activitystreams#Listen","https://www.w3.org/ns/activitystreams#Move","https://www.w3.org/ns/activitystreams#Offer","https://www.w3.org/ns/activitystreams#Invite","https://www.w3.org/ns/activitystreams#Read","https://www.w3.org/ns/activitystreams#Reject","https://www.w3.org/ns/activitystreams#TentativeReject","https://www.w3.org/ns/activitystreams#Remove","https://www.w3.org/ns/activitystreams#Undo","https://www.w3.org/ns/activitystreams#Update","https://www.w3.org/ns/activitystreams#View","https://www.w3.org/ns/activitystreams#Application","https://www.w3.org/ns/activitystreams#Article","https://www.w3.org/ns/activitystreams#Collection","https://www.w3.org/ns/activitystreams#CollectionPage","https://www.w3.org/ns/activitystreams#OrderedCollectionPage","https://www.w3.org/ns/activitystreams#OrderedCollection","https://www.w3.org/ns/activitystreams#Document","https://www.w3.org/ns/activitystreams#Audio","https://www.w3.org/ns/activitystreams#Image","https://www.w3.org/ns/activitystreams#Page","https://www.w3.org/ns/activitystreams#Video","https://www.w3.org/ns/activitystreams#Event","https://www.w3.org/ns/activitystreams#Group","https://www.w3.org/ns/activitystreams#Note","https://www.w3.org/ns/activitystreams#Organization","https://www.w3.org/ns/activitystreams#Person","https://www.w3.org/ns/activitystreams#Place","https://www.w3.org/ns/activitystreams#Profile","https://www.w3.org/ns/activitystreams#Relationship","https://www.w3.org/ns/activitystreams#Service","https://www.w3.org/ns/activitystreams#Tombstone"].some( t => v["@type"].includes(t)) ? await Object.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& ["https://www.w3.org/ns/activitystreams#Link","https://www.w3.org/ns/activitystreams#Hashtag","https://www.w3.org/ns/activitystreams#Mention"].some( t => v["@type"].includes(t)) ? await Link.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ) : undefined ; if (typeof decoded === "undefined") continue; @@ -67449,11 +66940,9 @@ get preferredUsernames(): ((string | LanguageString))[] { "publicKey"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === "object" && "@context" in doc) { - v = await this.#publicKey_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#publicKey_fromJsonLd(doc, options); + } } @@ -67546,11 +67035,9 @@ get preferredUsernames(): ((string | LanguageString))[] { "publicKey"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === "object" && "@context" in obj) { - v = await this.#publicKey_fromJsonLd(obj, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#publicKey_fromJsonLd(obj, options); + } } @@ -67769,11 +67256,9 @@ get preferredUsernames(): ((string | LanguageString))[] { "assertionMethod"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === "object" && "@context" in doc) { - v = await this.#assertionMethod_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#assertionMethod_fromJsonLd(doc, options); + } } @@ -67870,11 +67355,9 @@ get preferredUsernames(): ((string | LanguageString))[] { "assertionMethod"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === "object" && "@context" in obj) { - v = await this.#assertionMethod_fromJsonLd(obj, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#assertionMethod_fromJsonLd(obj, options); + } } @@ -68130,11 +67613,9 @@ get preferredUsernames(): ((string | LanguageString))[] { "inbox"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === "object" && "@context" in doc) { - v = await this.#inbox_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#inbox_fromJsonLd(doc, options); + } } @@ -68367,11 +67848,9 @@ get preferredUsernames(): ((string | LanguageString))[] { "outbox"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === "object" && "@context" in doc) { - v = await this.#outbox_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#outbox_fromJsonLd(doc, options); + } } @@ -68590,11 +68069,9 @@ get preferredUsernames(): ((string | LanguageString))[] { "following"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === "object" && "@context" in doc) { - v = await this.#following_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#following_fromJsonLd(doc, options); + } } @@ -68816,11 +68293,9 @@ get preferredUsernames(): ((string | LanguageString))[] { "followers"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === "object" && "@context" in doc) { - v = await this.#followers_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#followers_fromJsonLd(doc, options); + } } @@ -69040,11 +68515,9 @@ get preferredUsernames(): ((string | LanguageString))[] { "liked"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === "object" && "@context" in doc) { - v = await this.#liked_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#liked_fromJsonLd(doc, options); + } } @@ -69262,11 +68735,9 @@ get preferredUsernames(): ((string | LanguageString))[] { "featured"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === "object" && "@context" in doc) { - v = await this.#featured_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#featured_fromJsonLd(doc, options); + } } @@ -69484,11 +68955,9 @@ get preferredUsernames(): ((string | LanguageString))[] { "featuredTags"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === "object" && "@context" in doc) { - v = await this.#featuredTags_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#featuredTags_fromJsonLd(doc, options); + } } @@ -69704,11 +69173,9 @@ get preferredUsernames(): ((string | LanguageString))[] { "streams"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === "object" && "@context" in obj) { - v = await this.#stream_fromJsonLd(obj, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#stream_fromJsonLd(obj, options); + } } @@ -70034,11 +69501,9 @@ get preferredUsernames(): ((string | LanguageString))[] { "movedTo"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === "object" && "@context" in doc) { - v = await this.#successor_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#successor_fromJsonLd(doc, options); + } } @@ -70292,11 +69757,9 @@ get preferredUsernames(): ((string | LanguageString))[] { "alsoKnownAs"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === "object" && "@context" in doc) { - v = await this.#alias_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#alias_fromJsonLd(doc, options); + } } @@ -70393,11 +69856,9 @@ get preferredUsernames(): ((string | LanguageString))[] { "alsoKnownAs"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === "object" && "@context" in obj) { - v = await this.#alias_fromJsonLd(obj, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#alias_fromJsonLd(obj, options); + } } @@ -70616,11 +70077,9 @@ get preferredUsernames(): ((string | LanguageString))[] { "service"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === "object" && "@context" in doc) { - v = await this.#service_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#service_fromJsonLd(doc, options); + } } @@ -70717,11 +70176,9 @@ get preferredUsernames(): ((string | LanguageString))[] { "service"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === "object" && "@context" in obj) { - v = await this.#service_fromJsonLd(obj, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#service_fromJsonLd(obj, options); + } } @@ -71754,14 +71211,9 @@ get preferredUsernames(): ((string | LanguageString))[] { // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - const _resolvedUrl = - values["@id"] != null && URL.canParse(values["@id"], options.baseUrl) - ? new URL(values["@id"], options.baseUrl) - : undefined; - if (options.baseUrl == null && _resolvedUrl != null) { - options = { ...options, baseUrl: _resolvedUrl }; + if (options.baseUrl == null && values["@id"] != null) { + options = { ...options, baseUrl: new URL(values["@id"]) }; } - const _baseUrl = _resolvedUrl ?? options.baseUrl; if ("@type" in values) { span.setAttribute("activitypub.object.type", values["@type"]); @@ -71834,7 +71286,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await CryptographicKey.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _axq166E2eZADq34V4MYUc8KMZdC_publicKey.push(decoded); @@ -71867,7 +71319,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Multikey.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.push(decoded); @@ -71920,11 +71372,11 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#OrderedCollection") ? await OrderedCollection.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#OrderedCollectionPage") ? await OrderedCollectionPage.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ) : undefined ; if (typeof decoded === "undefined") continue; @@ -71961,11 +71413,11 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#OrderedCollection") ? await OrderedCollection.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#OrderedCollectionPage") ? await OrderedCollectionPage.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ) : undefined ; if (typeof decoded === "undefined") continue; @@ -72000,7 +71452,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _3yAv8jymNfNuJUDuBzJ1NQhdbAee_following.push(decoded); @@ -72033,7 +71485,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _BBCTgfphhsFzpVfKTykGSpBNwoA_followers.push(decoded); @@ -72066,7 +71518,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _3bgkPwJanyTCoVFM9ovRcus8tKkU_liked.push(decoded); @@ -72099,7 +71551,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _4N1vBJzXDf8NbBumeECQMFvKetja_featured.push(decoded); @@ -72132,7 +71584,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags.push(decoded); @@ -72165,7 +71617,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.push(decoded); @@ -72186,7 +71638,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Endpoints.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints.push(decoded); @@ -72293,23 +71745,23 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Application") ? await Application.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Group") ? await Group.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Organization") ? await Organization.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Person") ? await Person.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Service") ? await Service.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ) : undefined ; if (typeof decoded === "undefined") continue; @@ -72346,23 +71798,23 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Application") ? await Application.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Group") ? await Group.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Organization") ? await Organization.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Person") ? await Person.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Service") ? await Service.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ) : undefined ; if (typeof decoded === "undefined") continue; @@ -72397,7 +71849,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await DidService.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.push(decoded); @@ -73224,14 +72676,9 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - const _resolvedUrl = - values["@id"] != null && URL.canParse(values["@id"], options.baseUrl) - ? new URL(values["@id"], options.baseUrl) - : undefined; - if (options.baseUrl == null && _resolvedUrl != null) { - options = { ...options, baseUrl: _resolvedUrl }; + if (options.baseUrl == null && values["@id"] != null) { + options = { ...options, baseUrl: new URL(values["@id"]) }; } - const _baseUrl = _resolvedUrl ?? options.baseUrl; if ("@type" in values) { span.setAttribute("activitypub.object.type", values["@type"]); @@ -74505,11 +73952,9 @@ get preferredUsernames(): ((string | LanguageString))[] { "publicKey"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === "object" && "@context" in doc) { - v = await this.#publicKey_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#publicKey_fromJsonLd(doc, options); + } } @@ -74602,11 +74047,9 @@ get preferredUsernames(): ((string | LanguageString))[] { "publicKey"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === "object" && "@context" in obj) { - v = await this.#publicKey_fromJsonLd(obj, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#publicKey_fromJsonLd(obj, options); + } } @@ -74825,11 +74268,9 @@ get preferredUsernames(): ((string | LanguageString))[] { "assertionMethod"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === "object" && "@context" in doc) { - v = await this.#assertionMethod_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#assertionMethod_fromJsonLd(doc, options); + } } @@ -74926,11 +74367,9 @@ get preferredUsernames(): ((string | LanguageString))[] { "assertionMethod"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === "object" && "@context" in obj) { - v = await this.#assertionMethod_fromJsonLd(obj, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#assertionMethod_fromJsonLd(obj, options); + } } @@ -75186,11 +74625,9 @@ get preferredUsernames(): ((string | LanguageString))[] { "inbox"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === "object" && "@context" in doc) { - v = await this.#inbox_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#inbox_fromJsonLd(doc, options); + } } @@ -75423,11 +74860,9 @@ get preferredUsernames(): ((string | LanguageString))[] { "outbox"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === "object" && "@context" in doc) { - v = await this.#outbox_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#outbox_fromJsonLd(doc, options); + } } @@ -75646,11 +75081,9 @@ get preferredUsernames(): ((string | LanguageString))[] { "following"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === "object" && "@context" in doc) { - v = await this.#following_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#following_fromJsonLd(doc, options); + } } @@ -75872,11 +75305,9 @@ get preferredUsernames(): ((string | LanguageString))[] { "followers"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === "object" && "@context" in doc) { - v = await this.#followers_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#followers_fromJsonLd(doc, options); + } } @@ -76096,11 +75527,9 @@ get preferredUsernames(): ((string | LanguageString))[] { "liked"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === "object" && "@context" in doc) { - v = await this.#liked_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#liked_fromJsonLd(doc, options); + } } @@ -76318,11 +75747,9 @@ get preferredUsernames(): ((string | LanguageString))[] { "featured"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === "object" && "@context" in doc) { - v = await this.#featured_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#featured_fromJsonLd(doc, options); + } } @@ -76540,11 +75967,9 @@ get preferredUsernames(): ((string | LanguageString))[] { "featuredTags"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === "object" && "@context" in doc) { - v = await this.#featuredTags_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#featuredTags_fromJsonLd(doc, options); + } } @@ -76760,11 +76185,9 @@ get preferredUsernames(): ((string | LanguageString))[] { "streams"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === "object" && "@context" in obj) { - v = await this.#stream_fromJsonLd(obj, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#stream_fromJsonLd(obj, options); + } } @@ -77090,11 +76513,9 @@ get preferredUsernames(): ((string | LanguageString))[] { "movedTo"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === "object" && "@context" in doc) { - v = await this.#successor_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#successor_fromJsonLd(doc, options); + } } @@ -77348,11 +76769,9 @@ get preferredUsernames(): ((string | LanguageString))[] { "alsoKnownAs"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === "object" && "@context" in doc) { - v = await this.#alias_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#alias_fromJsonLd(doc, options); + } } @@ -77449,11 +76868,9 @@ get preferredUsernames(): ((string | LanguageString))[] { "alsoKnownAs"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === "object" && "@context" in obj) { - v = await this.#alias_fromJsonLd(obj, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#alias_fromJsonLd(obj, options); + } } @@ -77672,11 +77089,9 @@ get preferredUsernames(): ((string | LanguageString))[] { "service"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === "object" && "@context" in doc) { - v = await this.#service_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#service_fromJsonLd(doc, options); + } } @@ -77773,11 +77188,9 @@ get preferredUsernames(): ((string | LanguageString))[] { "service"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === "object" && "@context" in obj) { - v = await this.#service_fromJsonLd(obj, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#service_fromJsonLd(obj, options); + } } @@ -78810,14 +78223,9 @@ get preferredUsernames(): ((string | LanguageString))[] { // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - const _resolvedUrl = - values["@id"] != null && URL.canParse(values["@id"], options.baseUrl) - ? new URL(values["@id"], options.baseUrl) - : undefined; - if (options.baseUrl == null && _resolvedUrl != null) { - options = { ...options, baseUrl: _resolvedUrl }; + if (options.baseUrl == null && values["@id"] != null) { + options = { ...options, baseUrl: new URL(values["@id"]) }; } - const _baseUrl = _resolvedUrl ?? options.baseUrl; if ("@type" in values) { span.setAttribute("activitypub.object.type", values["@type"]); @@ -78890,7 +78298,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await CryptographicKey.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _axq166E2eZADq34V4MYUc8KMZdC_publicKey.push(decoded); @@ -78923,7 +78331,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Multikey.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.push(decoded); @@ -78976,11 +78384,11 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#OrderedCollection") ? await OrderedCollection.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#OrderedCollectionPage") ? await OrderedCollectionPage.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ) : undefined ; if (typeof decoded === "undefined") continue; @@ -79017,11 +78425,11 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#OrderedCollection") ? await OrderedCollection.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#OrderedCollectionPage") ? await OrderedCollectionPage.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ) : undefined ; if (typeof decoded === "undefined") continue; @@ -79056,7 +78464,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _3yAv8jymNfNuJUDuBzJ1NQhdbAee_following.push(decoded); @@ -79089,7 +78497,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _BBCTgfphhsFzpVfKTykGSpBNwoA_followers.push(decoded); @@ -79122,7 +78530,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _3bgkPwJanyTCoVFM9ovRcus8tKkU_liked.push(decoded); @@ -79155,7 +78563,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _4N1vBJzXDf8NbBumeECQMFvKetja_featured.push(decoded); @@ -79188,7 +78596,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags.push(decoded); @@ -79221,7 +78629,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.push(decoded); @@ -79242,7 +78650,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Endpoints.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints.push(decoded); @@ -79349,23 +78757,23 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Application") ? await Application.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Group") ? await Group.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Organization") ? await Organization.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Person") ? await Person.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Service") ? await Service.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ) : undefined ; if (typeof decoded === "undefined") continue; @@ -79402,23 +78810,23 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Application") ? await Application.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Group") ? await Group.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Organization") ? await Organization.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Person") ? await Person.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Service") ? await Service.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ) : undefined ; if (typeof decoded === "undefined") continue; @@ -79453,7 +78861,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await DidService.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.push(decoded); @@ -80736,14 +80144,9 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - const _resolvedUrl = - values["@id"] != null && URL.canParse(values["@id"], options.baseUrl) - ? new URL(values["@id"], options.baseUrl) - : undefined; - if (options.baseUrl == null && _resolvedUrl != null) { - options = { ...options, baseUrl: _resolvedUrl }; + if (options.baseUrl == null && values["@id"] != null) { + options = { ...options, baseUrl: new URL(values["@id"]) }; } - const _baseUrl = _resolvedUrl ?? options.baseUrl; if ("@type" in values) { span.setAttribute("activitypub.object.type", values["@type"]); @@ -80885,9 +80288,9 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu : "" ) ) - : URL.canParse(v["@id"]) && _baseUrl + : URL.canParse(v["@id"]) && (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) ? new URL(v["@id"]) - : new URL(v["@id"], _baseUrl) : undefined + : new URL(v["@id"], (values["@id"] == null ? options.baseUrl : new URL(values["@id"]))) : undefined ; if (typeof decoded === "undefined") continue; _oKrwxU4V8wiKhMW1QEYQibcJh8c_units.push(decoded); @@ -81370,11 +80773,9 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu "describes"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === "object" && "@context" in doc) { - v = await this.#describes_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#describes_fromJsonLd(doc, options); + } } @@ -81616,14 +81017,9 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - const _resolvedUrl = - values["@id"] != null && URL.canParse(values["@id"], options.baseUrl) - ? new URL(values["@id"], options.baseUrl) - : undefined; - if (options.baseUrl == null && _resolvedUrl != null) { - options = { ...options, baseUrl: _resolvedUrl }; + if (options.baseUrl == null && values["@id"] != null) { + options = { ...options, baseUrl: new URL(values["@id"]) }; } - const _baseUrl = _resolvedUrl ?? options.baseUrl; if ("@type" in values) { span.setAttribute("activitypub.object.type", values["@type"]); @@ -81672,7 +81068,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _3CLQ1PLSXrhSQbTGGHuxNyaEFKM1_describes.push(decoded); @@ -82265,11 +81661,9 @@ instruments?: (Object | URL)[];exclusiveOptions?: (Object | URL)[];inclusiveOpti "oneOf"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === "object" && "@context" in obj) { - v = await this.#exclusiveOption_fromJsonLd(obj, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#exclusiveOption_fromJsonLd(obj, options); + } } @@ -82488,11 +81882,9 @@ instruments?: (Object | URL)[];exclusiveOptions?: (Object | URL)[];inclusiveOpti "anyOf"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === "object" && "@context" in obj) { - v = await this.#inclusiveOption_fromJsonLd(obj, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#inclusiveOption_fromJsonLd(obj, options); + } } @@ -82740,11 +82132,9 @@ instruments?: (Object | URL)[];exclusiveOptions?: (Object | URL)[];inclusiveOpti "quote"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === "object" && "@context" in doc) { - v = await this.#quote_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#quote_fromJsonLd(doc, options); + } } @@ -82983,11 +82373,9 @@ instruments?: (Object | URL)[];exclusiveOptions?: (Object | URL)[];inclusiveOpti "quoteAuthorization"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === "object" && "@context" in doc) { - v = await this.#quoteAuthorization_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#quoteAuthorization_fromJsonLd(doc, options); + } } @@ -83292,14 +82680,9 @@ instruments?: (Object | URL)[];exclusiveOptions?: (Object | URL)[];inclusiveOpti // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - const _resolvedUrl = - values["@id"] != null && URL.canParse(values["@id"], options.baseUrl) - ? new URL(values["@id"], options.baseUrl) - : undefined; - if (options.baseUrl == null && _resolvedUrl != null) { - options = { ...options, baseUrl: _resolvedUrl }; + if (options.baseUrl == null && values["@id"] != null) { + options = { ...options, baseUrl: new URL(values["@id"]) }; } - const _baseUrl = _resolvedUrl ?? options.baseUrl; if ("@type" in values) { span.setAttribute("activitypub.object.type", values["@type"]); @@ -83348,7 +82731,7 @@ instruments?: (Object | URL)[];exclusiveOptions?: (Object | URL)[];inclusiveOpti const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _2N5scKaVEcdYHFmfKYYacAwUhUgQ_oneOf.push(decoded); @@ -83381,7 +82764,7 @@ instruments?: (Object | URL)[];exclusiveOptions?: (Object | URL)[];inclusiveOpti const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _2mV6isMTPRKbWdLCjcpiEysq5dAY_anyOf.push(decoded); @@ -83463,7 +82846,7 @@ instruments?: (Object | URL)[];exclusiveOptions?: (Object | URL)[];inclusiveOpti const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote.push(decoded); @@ -83522,7 +82905,7 @@ instruments?: (Object | URL)[];exclusiveOptions?: (Object | URL)[];inclusiveOpti const decoded = await QuoteAuthorization.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization.push(decoded); @@ -83981,14 +83364,9 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - const _resolvedUrl = - values["@id"] != null && URL.canParse(values["@id"], options.baseUrl) - ? new URL(values["@id"], options.baseUrl) - : undefined; - if (options.baseUrl == null && _resolvedUrl != null) { - options = { ...options, baseUrl: _resolvedUrl }; + if (options.baseUrl == null && values["@id"] != null) { + options = { ...options, baseUrl: new URL(values["@id"]) }; } - const _baseUrl = _resolvedUrl ?? options.baseUrl; if ("@type" in values) { span.setAttribute("activitypub.object.type", values["@type"]); @@ -84320,14 +83698,9 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - const _resolvedUrl = - values["@id"] != null && URL.canParse(values["@id"], options.baseUrl) - ? new URL(values["@id"], options.baseUrl) - : undefined; - if (options.baseUrl == null && _resolvedUrl != null) { - options = { ...options, baseUrl: _resolvedUrl }; + if (options.baseUrl == null && values["@id"] != null) { + options = { ...options, baseUrl: new URL(values["@id"]) }; } - const _baseUrl = _resolvedUrl ?? options.baseUrl; if ("@type" in values) { span.setAttribute("activitypub.object.type", values["@type"]); @@ -84885,11 +84258,9 @@ relationships?: (Object | URL)[];} "subject"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === "object" && "@context" in doc) { - v = await this.#subject_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#subject_fromJsonLd(doc, options); + } } @@ -85104,11 +84475,9 @@ relationships?: (Object | URL)[];} "object"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === "object" && "@context" in doc) { - v = await this.#object_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#object_fromJsonLd(doc, options); + } } @@ -85202,11 +84571,9 @@ relationships?: (Object | URL)[];} "object"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === "object" && "@context" in obj) { - v = await this.#object_fromJsonLd(obj, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#object_fromJsonLd(obj, options); + } } @@ -85424,11 +84791,9 @@ relationships?: (Object | URL)[];} "relationship"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === "object" && "@context" in doc) { - v = await this.#relationship_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#relationship_fromJsonLd(doc, options); + } } @@ -85524,11 +84889,9 @@ relationships?: (Object | URL)[];} "relationship"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === "object" && "@context" in obj) { - v = await this.#relationship_fromJsonLd(obj, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#relationship_fromJsonLd(obj, options); + } } @@ -85841,14 +85204,9 @@ relationships?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - const _resolvedUrl = - values["@id"] != null && URL.canParse(values["@id"], options.baseUrl) - ? new URL(values["@id"], options.baseUrl) - : undefined; - if (options.baseUrl == null && _resolvedUrl != null) { - options = { ...options, baseUrl: _resolvedUrl }; + if (options.baseUrl == null && values["@id"] != null) { + options = { ...options, baseUrl: new URL(values["@id"]) }; } - const _baseUrl = _resolvedUrl ?? options.baseUrl; if ("@type" in values) { span.setAttribute("activitypub.object.type", values["@type"]); @@ -85897,7 +85255,7 @@ relationships?: (Object | URL)[];} const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _2Zqdmi46ZnDQsECS6mzwhrv3rUKq_subject.push(decoded); @@ -85930,7 +85288,7 @@ relationships?: (Object | URL)[];} const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _2MH19yxjn1wnHsNfa5n4JBhJzxyc_object.push(decoded); @@ -85963,7 +85321,7 @@ relationships?: (Object | URL)[];} const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _4Lzz89F9qipAQSGkWyX9DGWiUojG_relationship.push(decoded); @@ -86351,14 +85709,9 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - const _resolvedUrl = - values["@id"] != null && URL.canParse(values["@id"], options.baseUrl) - ? new URL(values["@id"], options.baseUrl) - : undefined; - if (options.baseUrl == null && _resolvedUrl != null) { - options = { ...options, baseUrl: _resolvedUrl }; + if (options.baseUrl == null && values["@id"] != null) { + options = { ...options, baseUrl: new URL(values["@id"]) }; } - const _baseUrl = _resolvedUrl ?? options.baseUrl; if ("@type" in values) { span.setAttribute("activitypub.object.type", values["@type"]); @@ -87632,11 +86985,9 @@ get preferredUsernames(): ((string | LanguageString))[] { "publicKey"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === "object" && "@context" in doc) { - v = await this.#publicKey_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#publicKey_fromJsonLd(doc, options); + } } @@ -87729,11 +87080,9 @@ get preferredUsernames(): ((string | LanguageString))[] { "publicKey"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === "object" && "@context" in obj) { - v = await this.#publicKey_fromJsonLd(obj, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#publicKey_fromJsonLd(obj, options); + } } @@ -87952,11 +87301,9 @@ get preferredUsernames(): ((string | LanguageString))[] { "assertionMethod"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === "object" && "@context" in doc) { - v = await this.#assertionMethod_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#assertionMethod_fromJsonLd(doc, options); + } } @@ -88053,11 +87400,9 @@ get preferredUsernames(): ((string | LanguageString))[] { "assertionMethod"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === "object" && "@context" in obj) { - v = await this.#assertionMethod_fromJsonLd(obj, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#assertionMethod_fromJsonLd(obj, options); + } } @@ -88313,11 +87658,9 @@ get preferredUsernames(): ((string | LanguageString))[] { "inbox"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === "object" && "@context" in doc) { - v = await this.#inbox_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#inbox_fromJsonLd(doc, options); + } } @@ -88550,11 +87893,9 @@ get preferredUsernames(): ((string | LanguageString))[] { "outbox"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === "object" && "@context" in doc) { - v = await this.#outbox_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#outbox_fromJsonLd(doc, options); + } } @@ -88773,11 +88114,9 @@ get preferredUsernames(): ((string | LanguageString))[] { "following"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === "object" && "@context" in doc) { - v = await this.#following_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#following_fromJsonLd(doc, options); + } } @@ -88999,11 +88338,9 @@ get preferredUsernames(): ((string | LanguageString))[] { "followers"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === "object" && "@context" in doc) { - v = await this.#followers_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#followers_fromJsonLd(doc, options); + } } @@ -89223,11 +88560,9 @@ get preferredUsernames(): ((string | LanguageString))[] { "liked"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === "object" && "@context" in doc) { - v = await this.#liked_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#liked_fromJsonLd(doc, options); + } } @@ -89445,11 +88780,9 @@ get preferredUsernames(): ((string | LanguageString))[] { "featured"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === "object" && "@context" in doc) { - v = await this.#featured_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#featured_fromJsonLd(doc, options); + } } @@ -89667,11 +89000,9 @@ get preferredUsernames(): ((string | LanguageString))[] { "featuredTags"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === "object" && "@context" in doc) { - v = await this.#featuredTags_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#featuredTags_fromJsonLd(doc, options); + } } @@ -89887,11 +89218,9 @@ get preferredUsernames(): ((string | LanguageString))[] { "streams"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === "object" && "@context" in obj) { - v = await this.#stream_fromJsonLd(obj, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#stream_fromJsonLd(obj, options); + } } @@ -90217,11 +89546,9 @@ get preferredUsernames(): ((string | LanguageString))[] { "movedTo"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === "object" && "@context" in doc) { - v = await this.#successor_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#successor_fromJsonLd(doc, options); + } } @@ -90475,11 +89802,9 @@ get preferredUsernames(): ((string | LanguageString))[] { "alsoKnownAs"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === "object" && "@context" in doc) { - v = await this.#alias_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#alias_fromJsonLd(doc, options); + } } @@ -90576,11 +89901,9 @@ get preferredUsernames(): ((string | LanguageString))[] { "alsoKnownAs"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === "object" && "@context" in obj) { - v = await this.#alias_fromJsonLd(obj, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#alias_fromJsonLd(obj, options); + } } @@ -90799,11 +90122,9 @@ get preferredUsernames(): ((string | LanguageString))[] { "service"]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === "object" && "@context" in doc) { - v = await this.#service_fromJsonLd(doc, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#service_fromJsonLd(doc, options); + } } @@ -90900,11 +90221,9 @@ get preferredUsernames(): ((string | LanguageString))[] { "service"]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === "object" && "@context" in obj) { - v = await this.#service_fromJsonLd(obj, { - ...options, - baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? - undefined, - }); + + v = await this.#service_fromJsonLd(obj, options); + } } @@ -91937,14 +91256,9 @@ get preferredUsernames(): ((string | LanguageString))[] { // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - const _resolvedUrl = - values["@id"] != null && URL.canParse(values["@id"], options.baseUrl) - ? new URL(values["@id"], options.baseUrl) - : undefined; - if (options.baseUrl == null && _resolvedUrl != null) { - options = { ...options, baseUrl: _resolvedUrl }; + if (options.baseUrl == null && values["@id"] != null) { + options = { ...options, baseUrl: new URL(values["@id"]) }; } - const _baseUrl = _resolvedUrl ?? options.baseUrl; if ("@type" in values) { span.setAttribute("activitypub.object.type", values["@type"]); @@ -92017,7 +91331,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await CryptographicKey.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _axq166E2eZADq34V4MYUc8KMZdC_publicKey.push(decoded); @@ -92050,7 +91364,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Multikey.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.push(decoded); @@ -92103,11 +91417,11 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#OrderedCollection") ? await OrderedCollection.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#OrderedCollectionPage") ? await OrderedCollectionPage.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ) : undefined ; if (typeof decoded === "undefined") continue; @@ -92144,11 +91458,11 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#OrderedCollection") ? await OrderedCollection.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#OrderedCollectionPage") ? await OrderedCollectionPage.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ) : undefined ; if (typeof decoded === "undefined") continue; @@ -92183,7 +91497,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _3yAv8jymNfNuJUDuBzJ1NQhdbAee_following.push(decoded); @@ -92216,7 +91530,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _BBCTgfphhsFzpVfKTykGSpBNwoA_followers.push(decoded); @@ -92249,7 +91563,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _3bgkPwJanyTCoVFM9ovRcus8tKkU_liked.push(decoded); @@ -92282,7 +91596,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _4N1vBJzXDf8NbBumeECQMFvKetja_featured.push(decoded); @@ -92315,7 +91629,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags.push(decoded); @@ -92348,7 +91662,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.push(decoded); @@ -92369,7 +91683,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Endpoints.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints.push(decoded); @@ -92476,23 +91790,23 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Application") ? await Application.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Group") ? await Group.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Organization") ? await Organization.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Person") ? await Person.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Service") ? await Service.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ) : undefined ; if (typeof decoded === "undefined") continue; @@ -92529,23 +91843,23 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Application") ? await Application.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Group") ? await Group.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Organization") ? await Organization.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Person") ? await Person.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Service") ? await Service.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ) : undefined ; if (typeof decoded === "undefined") continue; @@ -92580,7 +91894,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await DidService.fromJsonLd( v, - { ...options, baseUrl: _baseUrl } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.push(decoded); @@ -93616,14 +92930,9 @@ get contents(): ((string | LanguageString))[] { // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - const _resolvedUrl = - values["@id"] != null && URL.canParse(values["@id"], options.baseUrl) - ? new URL(values["@id"], options.baseUrl) - : undefined; - if (options.baseUrl == null && _resolvedUrl != null) { - options = { ...options, baseUrl: _resolvedUrl }; + if (options.baseUrl == null && values["@id"] != null) { + options = { ...options, baseUrl: new URL(values["@id"]) }; } - const _baseUrl = _resolvedUrl ?? options.baseUrl; if ("@type" in values) { span.setAttribute("activitypub.object.type", values["@type"]); @@ -94053,14 +93362,9 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - const _resolvedUrl = - values["@id"] != null && URL.canParse(values["@id"], options.baseUrl) - ? new URL(values["@id"], options.baseUrl) - : undefined; - if (options.baseUrl == null && _resolvedUrl != null) { - options = { ...options, baseUrl: _resolvedUrl }; + if (options.baseUrl == null && values["@id"] != null) { + options = { ...options, baseUrl: new URL(values["@id"]) }; } - const _baseUrl = _resolvedUrl ?? options.baseUrl; if ("@type" in values) { span.setAttribute("activitypub.object.type", values["@type"]); @@ -94392,14 +93696,9 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - const _resolvedUrl = - values["@id"] != null && URL.canParse(values["@id"], options.baseUrl) - ? new URL(values["@id"], options.baseUrl) - : undefined; - if (options.baseUrl == null && _resolvedUrl != null) { - options = { ...options, baseUrl: _resolvedUrl }; + if (options.baseUrl == null && values["@id"] != null) { + options = { ...options, baseUrl: new URL(values["@id"]) }; } - const _baseUrl = _resolvedUrl ?? options.baseUrl; if ("@type" in values) { span.setAttribute("activitypub.object.type", values["@type"]); @@ -94947,14 +94246,9 @@ get formerTypes(): ($EntityType)[] { // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - const _resolvedUrl = - values["@id"] != null && URL.canParse(values["@id"], options.baseUrl) - ? new URL(values["@id"], options.baseUrl) - : undefined; - if (options.baseUrl == null && _resolvedUrl != null) { - options = { ...options, baseUrl: _resolvedUrl }; + if (options.baseUrl == null && values["@id"] != null) { + options = { ...options, baseUrl: new URL(values["@id"]) }; } - const _baseUrl = _resolvedUrl ?? options.baseUrl; if ("@type" in values) { span.setAttribute("activitypub.object.type", values["@type"]); @@ -95387,14 +94681,9 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - const _resolvedUrl = - values["@id"] != null && URL.canParse(values["@id"], options.baseUrl) - ? new URL(values["@id"], options.baseUrl) - : undefined; - if (options.baseUrl == null && _resolvedUrl != null) { - options = { ...options, baseUrl: _resolvedUrl }; + if (options.baseUrl == null && values["@id"] != null) { + options = { ...options, baseUrl: new URL(values["@id"]) }; } - const _baseUrl = _resolvedUrl ?? options.baseUrl; if ("@type" in values) { span.setAttribute("activitypub.object.type", values["@type"]); @@ -95731,14 +95020,9 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - const _resolvedUrl = - values["@id"] != null && URL.canParse(values["@id"], options.baseUrl) - ? new URL(values["@id"], options.baseUrl) - : undefined; - if (options.baseUrl == null && _resolvedUrl != null) { - options = { ...options, baseUrl: _resolvedUrl }; + if (options.baseUrl == null && values["@id"] != null) { + options = { ...options, baseUrl: new URL(values["@id"]) }; } - const _baseUrl = _resolvedUrl ?? options.baseUrl; if ("@type" in values) { span.setAttribute("activitypub.object.type", values["@type"]); @@ -96073,14 +95357,9 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - const _resolvedUrl = - values["@id"] != null && URL.canParse(values["@id"], options.baseUrl) - ? new URL(values["@id"], options.baseUrl) - : undefined; - if (options.baseUrl == null && _resolvedUrl != null) { - options = { ...options, baseUrl: _resolvedUrl }; + if (options.baseUrl == null && values["@id"] != null) { + options = { ...options, baseUrl: new URL(values["@id"]) }; } - const _baseUrl = _resolvedUrl ?? options.baseUrl; if ("@type" in values) { span.setAttribute("activitypub.object.type", values["@type"]); @@ -96415,14 +95694,9 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - const _resolvedUrl = - values["@id"] != null && URL.canParse(values["@id"], options.baseUrl) - ? new URL(values["@id"], options.baseUrl) - : undefined; - if (options.baseUrl == null && _resolvedUrl != null) { - options = { ...options, baseUrl: _resolvedUrl }; + if (options.baseUrl == null && values["@id"] != null) { + options = { ...options, baseUrl: new URL(values["@id"]) }; } - const _baseUrl = _resolvedUrl ?? options.baseUrl; if ("@type" in values) { span.setAttribute("activitypub.object.type", values["@type"]); @@ -96753,14 +96027,9 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - const _resolvedUrl = - values["@id"] != null && URL.canParse(values["@id"], options.baseUrl) - ? new URL(values["@id"], options.baseUrl) - : undefined; - if (options.baseUrl == null && _resolvedUrl != null) { - options = { ...options, baseUrl: _resolvedUrl }; + if (options.baseUrl == null && values["@id"] != null) { + options = { ...options, baseUrl: new URL(values["@id"]) }; } - const _baseUrl = _resolvedUrl ?? options.baseUrl; if ("@type" in values) { span.setAttribute("activitypub.object.type", values["@type"]); diff --git a/packages/vocab-tools/src/codec.ts b/packages/vocab-tools/src/codec.ts index 9b6a707a8..88a35943d 100644 --- a/packages/vocab-tools/src/codec.ts +++ b/packages/vocab-tools/src/codec.ts @@ -404,14 +404,9 @@ export async function* generateDecoder( // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - const _resolvedUrl = - values["@id"] != null && URL.canParse(values["@id"], options.baseUrl) - ? new URL(values["@id"], options.baseUrl) - : undefined; - if (options.baseUrl == null && _resolvedUrl != null) { - options = { ...options, baseUrl: _resolvedUrl }; + if (options.baseUrl == null && values["@id"] != null) { + options = { ...options, baseUrl: new URL(values["@id"]) }; } - const _baseUrl = _resolvedUrl ?? options.baseUrl; `; const subtypes = getSubtypes(typeUri, types, true); yield ` @@ -484,7 +479,7 @@ export async function* generateDecoder( property, getTypeNames(property.range, types), variable, - `_baseUrl`, + `(values["@id"] == null ? options.baseUrl : new URL(values["@id"]))`, moduleVarNames, ); if (!areAllScalarTypes(property.range, types)) { @@ -508,7 +503,7 @@ export async function* generateDecoder( types, "v", "options", - `_baseUrl`, + `(values["@id"] == null ? options.baseUrl : new URL(values["@id"]))`, ) }; if (typeof decoded === "undefined") continue; @@ -522,7 +517,7 @@ export async function* generateDecoder( types, "v", "options", - `_baseUrl`, + `(values["@id"] == null ? options.baseUrl : new URL(values["@id"]))`, ); for (const code of decoders) yield code; yield ` diff --git a/packages/vocab-tools/src/property.ts b/packages/vocab-tools/src/property.ts index 96c8f4766..8684879d0 100644 --- a/packages/vocab-tools/src/property.ts +++ b/packages/vocab-tools/src/property.ts @@ -287,11 +287,24 @@ async function* generateProperty( ${JSON.stringify(property.compactName)}]; const doc = Array.isArray(prop) ? prop[0] : prop; if (doc != null && typeof doc === "object" && "@context" in doc) { + `; + if ( + property.preprocessors != null && + property.preprocessors.length > 0 + ) { + yield ` v = await this.#${property.singularName}_fromJsonLd(doc, { ...options, baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? undefined, }); + `; + } else { + yield ` + v = await this.#${property.singularName}_fromJsonLd(doc, options); + `; + } + yield ` } } `; @@ -390,11 +403,24 @@ async function* generateProperty( ${JSON.stringify(property.compactName)}]; const obj = Array.isArray(prop) ? prop[i] : prop; if (obj != null && typeof obj === "object" && "@context" in obj) { + `; + if ( + property.preprocessors != null && + property.preprocessors.length > 0 + ) { + yield ` v = await this.#${property.singularName}_fromJsonLd(obj, { ...options, baseUrl: (options as { baseUrl?: URL }).baseUrl ?? this.id ?? undefined, }); + `; + } else { + yield ` + v = await this.#${property.singularName}_fromJsonLd(obj, options); + `; + } + yield ` } } `; From 688a54c975861871b5941aebe27433df47a3b7fa Mon Sep 17 00:00:00 2001 From: Hong Minhee Date: Sat, 6 Jun 2026 14:21:49 +0900 Subject: [PATCH 18/25] Silence baseUrl deprecation in Twoslash compiler options TypeScript 6.0 deprecated baseUrl, which Twoslash's internal type checking environment still relies on. Added ignoreDeprecations to the Twoslash compilerOptions in the docs config. Assisted-by: OpenCode:deepseek-v4-pro --- docs/.vitepress/config.mts | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/.vitepress/config.mts b/docs/.vitepress/config.mts index a2613096f..4957dbea1 100644 --- a/docs/.vitepress/config.mts +++ b/docs/.vitepress/config.mts @@ -269,6 +269,7 @@ export default withMermaid(defineConfig({ transformerTwoslash({ twoslashOptions: { compilerOptions: { + ignoreDeprecations: "6.0", moduleResolution: ModuleResolutionKind.Bundler, module: ModuleKind.ESNext, target: ScriptTarget.ESNext, From fe1a813563ad28696e2e8a4f2610b767b2e56e63 Mon Sep 17 00:00:00 2001 From: Hong Minhee Date: Sat, 6 Jun 2026 14:31:44 +0900 Subject: [PATCH 19/25] Throw on missing preprocessor module in property.ts Match the error-throwing behavior from codec.ts so that missing preprocessor module registrations are caught consistently across both decoder paths. https://github.com/fedify-dev/fedify/pull/793#discussion_r3366487366 Assisted-by: OpenCode:deepseek-v4-pro --- packages/vocab-tools/src/property.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/packages/vocab-tools/src/property.ts b/packages/vocab-tools/src/property.ts index 8684879d0..9c778fd25 100644 --- a/packages/vocab-tools/src/property.ts +++ b/packages/vocab-tools/src/property.ts @@ -179,7 +179,13 @@ async function* generateProperty( `; for (const pp of property.preprocessors) { const varName = moduleVarNames.get(pp.module); - if (varName == null) continue; + if (varName == null) { + throw new Error( + `Preprocessor module "${pp.module}" is not registered ` + + `in the generated imports. Ensure all preprocessor ` + + `modules used in property schemas are available.`, + ); + } yield ` { const _result = await ${varName}[${ From b34f17a7c06ac11110fdba20905c80c9b04155d7 Mon Sep 17 00:00:00 2001 From: Hong Minhee Date: Sat, 6 Jun 2026 14:39:29 +0900 Subject: [PATCH 20/25] Fix relative @id resolution and preserve Link id Use options.baseUrl as second argument to URL.canParse/new URL in the root @id construction, and add a URL.canParse guard to the options.baseUrl fallback assignment. Also preserve the original Link id when normalizing to Image. https://github.com/fedify-dev/fedify/pull/793#discussion_r3366737210 https://github.com/fedify-dev/fedify/pull/793#discussion_r3366737211 https://github.com/fedify-dev/fedify/pull/793#discussion_r3366740197 Assisted-by: OpenCode:deepseek-v4-pro --- packages/vocab-tools/src/codec.ts | 4 ++-- packages/vocab/src/preprocessors.ts | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/vocab-tools/src/codec.ts b/packages/vocab-tools/src/codec.ts index 88a35943d..184ea1203 100644 --- a/packages/vocab-tools/src/codec.ts +++ b/packages/vocab-tools/src/codec.ts @@ -404,7 +404,7 @@ export async function* generateDecoder( // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null) { + if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { options = { ...options, baseUrl: new URL(values["@id"]) }; } `; @@ -432,7 +432,7 @@ export async function* generateDecoder( if (type.extends == null) { yield ` const instance = new this( - { id: "@id" in values && URL.canParse(values["@id"] as string) ? new URL(values["@id"] as string) : undefined }, + { id: "@id" in values && URL.canParse(values["@id"] as string, options.baseUrl) ? new URL(values["@id"] as string, options.baseUrl) : undefined }, options, ); `; diff --git a/packages/vocab/src/preprocessors.ts b/packages/vocab/src/preprocessors.ts index 9a3e657bb..5fbf3e072 100644 --- a/packages/vocab/src/preprocessors.ts +++ b/packages/vocab/src/preprocessors.ts @@ -38,6 +38,7 @@ export const normalizeLinkToImage: PropertyPreprocessor = async ( if (link.href == null) return undefined; return new Image({ + id: link.id, url: link.href, mediaType: link.mediaType, names: link.names?.length != null && link.names.length > 0 From 92b66cb9e358bbdc1c3ca7b923a4609363296033 Mon Sep 17 00:00:00 2001 From: Hong Minhee Date: Sat, 6 Jun 2026 14:50:16 +0900 Subject: [PATCH 21/25] Update snapshots for @id resolution changes Assisted-by: OpenCode:deepseek-v4-pro --- .../src/__snapshots__/class.test.ts.deno.snap | 184 +++++++++--------- .../src/__snapshots__/class.test.ts.node.snap | 184 +++++++++--------- .../src/__snapshots__/class.test.ts.snap | 184 +++++++++--------- 3 files changed, 276 insertions(+), 276 deletions(-) diff --git a/packages/vocab-tools/src/__snapshots__/class.test.ts.deno.snap b/packages/vocab-tools/src/__snapshots__/class.test.ts.deno.snap index a0a4d88a0..4ebfa946b 100644 --- a/packages/vocab-tools/src/__snapshots__/class.test.ts.deno.snap +++ b/packages/vocab-tools/src/__snapshots__/class.test.ts.deno.snap @@ -10290,7 +10290,7 @@ get urls(): ((URL | Link))[] { // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -10558,7 +10558,7 @@ get urls(): ((URL | Link))[] { } const instance = new this( - { id: \\"@id\\" in values && URL.canParse(values[\\"@id\\"] as string) ? new URL(values[\\"@id\\"] as string) : undefined }, + { id: \\"@id\\" in values && URL.canParse(values[\\"@id\\"] as string, options.baseUrl) ? new URL(values[\\"@id\\"] as string, options.baseUrl) : undefined }, options, ); @@ -12962,7 +12962,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -13964,7 +13964,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -16997,7 +16997,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -17840,7 +17840,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -18343,7 +18343,7 @@ name?: string | LanguageString | null;value?: string | LanguageString | null;} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -18359,7 +18359,7 @@ name?: string | LanguageString | null;value?: string | LanguageString | null;} } const instance = new this( - { id: \\"@id\\" in values && URL.canParse(values[\\"@id\\"] as string) ? new URL(values[\\"@id\\"] as string) : undefined }, + { id: \\"@id\\" in values && URL.canParse(values[\\"@id\\"] as string, options.baseUrl) ? new URL(values[\\"@id\\"] as string, options.baseUrl) : undefined }, options, ); const _4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name: ((string | LanguageString))[] = []; @@ -18929,7 +18929,7 @@ unit?: string | null;numericalValue?: Decimal | null;} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -18945,7 +18945,7 @@ unit?: string | null;numericalValue?: Decimal | null;} } const instance = new this( - { id: \\"@id\\" in values && URL.canParse(values[\\"@id\\"] as string) ? new URL(values[\\"@id\\"] as string) : undefined }, + { id: \\"@id\\" in values && URL.canParse(values[\\"@id\\"] as string, options.baseUrl) ? new URL(values[\\"@id\\"] as string, options.baseUrl) : undefined }, options, ); const _27fgyFbosTtMAhuepJH8K3ZGURT6: (string)[] = []; @@ -19924,7 +19924,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -20373,7 +20373,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -20964,7 +20964,7 @@ canLike?: InteractionRule | null;canReply?: InteractionRule | null;canAnnounce?: // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -20980,7 +20980,7 @@ canLike?: InteractionRule | null;canReply?: InteractionRule | null;canAnnounce?: } const instance = new this( - { id: \\"@id\\" in values && URL.canParse(values[\\"@id\\"] as string) ? new URL(values[\\"@id\\"] as string) : undefined }, + { id: \\"@id\\" in values && URL.canParse(values[\\"@id\\"] as string, options.baseUrl) ? new URL(values[\\"@id\\"] as string, options.baseUrl) : undefined }, options, ); const _3JkwVLb3BNCwCWdsb5RftGAg8vyT_canLike: (InteractionRule)[] = []; @@ -21712,7 +21712,7 @@ get manualApprovals(): (URL)[] { // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -21728,7 +21728,7 @@ get manualApprovals(): (URL)[] { } const instance = new this( - { id: \\"@id\\" in values && URL.canParse(values[\\"@id\\"] as string) ? new URL(values[\\"@id\\"] as string) : undefined }, + { id: \\"@id\\" in values && URL.canParse(values[\\"@id\\"] as string, options.baseUrl) ? new URL(values[\\"@id\\"] as string, options.baseUrl) : undefined }, options, ); const _2rFyCF14HoyNjitj9PmCzek5iSsg_automaticApproval: (URL)[] = []; @@ -22748,7 +22748,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -23196,7 +23196,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -24104,7 +24104,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -24552,7 +24552,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -25459,7 +25459,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -25907,7 +25907,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -26352,7 +26352,7 @@ get endpoints(): (URL)[] { // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -26372,7 +26372,7 @@ get endpoints(): (URL)[] { } const instance = new this( - { id: \\"@id\\" in values && URL.canParse(values[\\"@id\\"] as string) ? new URL(values[\\"@id\\"] as string) : undefined }, + { id: \\"@id\\" in values && URL.canParse(values[\\"@id\\"] as string, options.baseUrl) ? new URL(values[\\"@id\\"] as string, options.baseUrl) : undefined }, options, ); const _2KM4fetG6FTJ1cphj76rzJ8Dyv7p_serviceEndpoint: (URL)[] = []; @@ -26705,7 +26705,7 @@ endpoints?: (URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -27523,7 +27523,7 @@ cryptosuite?: \\"eddsa-jcs-2022\\" | null;verificationMethod?: Multikey | URL | // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -27539,7 +27539,7 @@ cryptosuite?: \\"eddsa-jcs-2022\\" | null;verificationMethod?: Multikey | URL | } const instance = new this( - { id: \\"@id\\" in values && URL.canParse(values[\\"@id\\"] as string) ? new URL(values[\\"@id\\"] as string) : undefined }, + { id: \\"@id\\" in values && URL.canParse(values[\\"@id\\"] as string, options.baseUrl) ? new URL(values[\\"@id\\"] as string, options.baseUrl) : undefined }, options, ); const _3RurJsa7tnptyqMFR5hDGcP9pMs5_cryptosuite: (\\"eddsa-jcs-2022\\")[] = []; @@ -28490,7 +28490,7 @@ owner?: Application | Group | Organization | Person | Service | URL | null;publi // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -28506,7 +28506,7 @@ owner?: Application | Group | Organization | Person | Service | URL | null;publi } const instance = new this( - { id: \\"@id\\" in values && URL.canParse(values[\\"@id\\"] as string) ? new URL(values[\\"@id\\"] as string) : undefined }, + { id: \\"@id\\" in values && URL.canParse(values[\\"@id\\"] as string, options.baseUrl) ? new URL(values[\\"@id\\"] as string, options.baseUrl) : undefined }, options, ); @@ -29370,7 +29370,7 @@ controller?: Application | Group | Organization | Person | Service | URL | null; // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -29386,7 +29386,7 @@ controller?: Application | Group | Organization | Person | Service | URL | null; } const instance = new this( - { id: \\"@id\\" in values && URL.canParse(values[\\"@id\\"] as string) ? new URL(values[\\"@id\\"] as string) : undefined }, + { id: \\"@id\\" in values && URL.canParse(values[\\"@id\\"] as string, options.baseUrl) ? new URL(values[\\"@id\\"] as string, options.baseUrl) : undefined }, options, ); @@ -30205,7 +30205,7 @@ action?: string | null;resourceConformsTo?: URL | null;resourceQuantity?: Measur // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -30221,7 +30221,7 @@ action?: string | null;resourceConformsTo?: URL | null;resourceQuantity?: Measur } const instance = new this( - { id: \\"@id\\" in values && URL.canParse(values[\\"@id\\"] as string) ? new URL(values[\\"@id\\"] as string) : undefined }, + { id: \\"@id\\" in values && URL.canParse(values[\\"@id\\"] as string, options.baseUrl) ? new URL(values[\\"@id\\"] as string, options.baseUrl) : undefined }, options, ); const _38VmZKmXJSBy3AvgqNa9GVqbdphy_action: (string)[] = []; @@ -31077,7 +31077,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -31570,7 +31570,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -31910,7 +31910,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -32245,7 +32245,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -37792,7 +37792,7 @@ get preferredUsernames(): ((string | LanguageString))[] { // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -39255,7 +39255,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -39602,7 +39602,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -40599,7 +40599,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -41240,7 +41240,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -41669,7 +41669,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -42003,7 +42003,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -42343,7 +42343,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -46166,7 +46166,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -48047,7 +48047,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -48542,7 +48542,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -48876,7 +48876,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -49208,7 +49208,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -50002,7 +50002,7 @@ proxyUrl?: URL | null;oauthAuthorizationEndpoint?: URL | null;oauthTokenEndpoint // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -50018,7 +50018,7 @@ proxyUrl?: URL | null;oauthAuthorizationEndpoint?: URL | null;oauthTokenEndpoint } const instance = new this( - { id: \\"@id\\" in values && URL.canParse(values[\\"@id\\"] as string) ? new URL(values[\\"@id\\"] as string) : undefined }, + { id: \\"@id\\" in values && URL.canParse(values[\\"@id\\"] as string, options.baseUrl) ? new URL(values[\\"@id\\"] as string, options.baseUrl) : undefined }, options, ); const _2JCYDbSxEHCCLdBYed33cCETfGyR_proxyUrl: (URL)[] = []; @@ -50667,7 +50667,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -51002,7 +51002,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -51338,7 +51338,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -56885,7 +56885,7 @@ get preferredUsernames(): ((string | LanguageString))[] { // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -59316,7 +59316,7 @@ get names(): ((string | LanguageString))[] { // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -59340,7 +59340,7 @@ get names(): ((string | LanguageString))[] { } const instance = new this( - { id: \\"@id\\" in values && URL.canParse(values[\\"@id\\"] as string) ? new URL(values[\\"@id\\"] as string) : undefined }, + { id: \\"@id\\" in values && URL.canParse(values[\\"@id\\"] as string, options.baseUrl) ? new URL(values[\\"@id\\"] as string, options.baseUrl) : undefined }, options, ); const _pVjLsybKQdmkjuU7MHjiVmNnuj7_href: (URL)[] = []; @@ -59999,7 +59999,7 @@ names?: ((string | LanguageString))[];language?: Intl.Locale | null;height?: num // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -60336,7 +60336,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -60671,7 +60671,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -61009,7 +61009,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -61343,7 +61343,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -61677,7 +61677,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -62011,7 +62011,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -62343,7 +62343,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -62641,7 +62641,7 @@ names?: ((string | LanguageString))[];language?: Intl.Locale | null;height?: num // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -62976,7 +62976,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -63975,7 +63975,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -64773,7 +64773,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -65561,7 +65561,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -71211,7 +71211,7 @@ get preferredUsernames(): ((string | LanguageString))[] { // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -72676,7 +72676,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -78223,7 +78223,7 @@ get preferredUsernames(): ((string | LanguageString))[] { // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -80144,7 +80144,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -81017,7 +81017,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -82680,7 +82680,7 @@ instruments?: (Object | URL)[];exclusiveOptions?: (Object | URL)[];inclusiveOpti // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -83364,7 +83364,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -83698,7 +83698,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -85204,7 +85204,7 @@ relationships?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -85709,7 +85709,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -91256,7 +91256,7 @@ get preferredUsernames(): ((string | LanguageString))[] { // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -92930,7 +92930,7 @@ get contents(): ((string | LanguageString))[] { // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -92946,7 +92946,7 @@ get contents(): ((string | LanguageString))[] { } const instance = new this( - { id: \\"@id\\" in values && URL.canParse(values[\\"@id\\"] as string) ? new URL(values[\\"@id\\"] as string) : undefined }, + { id: \\"@id\\" in values && URL.canParse(values[\\"@id\\"] as string, options.baseUrl) ? new URL(values[\\"@id\\"] as string, options.baseUrl) : undefined }, options, ); const _4HuuRSdSrXq8Jj2J9gcdYfoCzeuz_content: ((string | LanguageString))[] = []; @@ -93362,7 +93362,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -93696,7 +93696,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -94246,7 +94246,7 @@ get formerTypes(): (\$EntityType)[] { // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -94681,7 +94681,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -95020,7 +95020,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -95357,7 +95357,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -95694,7 +95694,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -96027,7 +96027,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } diff --git a/packages/vocab-tools/src/__snapshots__/class.test.ts.node.snap b/packages/vocab-tools/src/__snapshots__/class.test.ts.node.snap index f63dececc..e74b0c693 100644 --- a/packages/vocab-tools/src/__snapshots__/class.test.ts.node.snap +++ b/packages/vocab-tools/src/__snapshots__/class.test.ts.node.snap @@ -10288,7 +10288,7 @@ get urls(): ((URL | Link))[] { // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -10556,7 +10556,7 @@ get urls(): ((URL | Link))[] { } const instance = new this( - { id: \\"@id\\" in values && URL.canParse(values[\\"@id\\"] as string) ? new URL(values[\\"@id\\"] as string) : undefined }, + { id: \\"@id\\" in values && URL.canParse(values[\\"@id\\"] as string, options.baseUrl) ? new URL(values[\\"@id\\"] as string, options.baseUrl) : undefined }, options, ); @@ -12960,7 +12960,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -13962,7 +13962,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -16995,7 +16995,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -17838,7 +17838,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -18341,7 +18341,7 @@ name?: string | LanguageString | null;value?: string | LanguageString | null;} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -18357,7 +18357,7 @@ name?: string | LanguageString | null;value?: string | LanguageString | null;} } const instance = new this( - { id: \\"@id\\" in values && URL.canParse(values[\\"@id\\"] as string) ? new URL(values[\\"@id\\"] as string) : undefined }, + { id: \\"@id\\" in values && URL.canParse(values[\\"@id\\"] as string, options.baseUrl) ? new URL(values[\\"@id\\"] as string, options.baseUrl) : undefined }, options, ); const _4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name: ((string | LanguageString))[] = []; @@ -18927,7 +18927,7 @@ unit?: string | null;numericalValue?: Decimal | null;} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -18943,7 +18943,7 @@ unit?: string | null;numericalValue?: Decimal | null;} } const instance = new this( - { id: \\"@id\\" in values && URL.canParse(values[\\"@id\\"] as string) ? new URL(values[\\"@id\\"] as string) : undefined }, + { id: \\"@id\\" in values && URL.canParse(values[\\"@id\\"] as string, options.baseUrl) ? new URL(values[\\"@id\\"] as string, options.baseUrl) : undefined }, options, ); const _27fgyFbosTtMAhuepJH8K3ZGURT6: (string)[] = []; @@ -19922,7 +19922,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -20371,7 +20371,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -20962,7 +20962,7 @@ canLike?: InteractionRule | null;canReply?: InteractionRule | null;canAnnounce?: // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -20978,7 +20978,7 @@ canLike?: InteractionRule | null;canReply?: InteractionRule | null;canAnnounce?: } const instance = new this( - { id: \\"@id\\" in values && URL.canParse(values[\\"@id\\"] as string) ? new URL(values[\\"@id\\"] as string) : undefined }, + { id: \\"@id\\" in values && URL.canParse(values[\\"@id\\"] as string, options.baseUrl) ? new URL(values[\\"@id\\"] as string, options.baseUrl) : undefined }, options, ); const _3JkwVLb3BNCwCWdsb5RftGAg8vyT_canLike: (InteractionRule)[] = []; @@ -21710,7 +21710,7 @@ get manualApprovals(): (URL)[] { // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -21726,7 +21726,7 @@ get manualApprovals(): (URL)[] { } const instance = new this( - { id: \\"@id\\" in values && URL.canParse(values[\\"@id\\"] as string) ? new URL(values[\\"@id\\"] as string) : undefined }, + { id: \\"@id\\" in values && URL.canParse(values[\\"@id\\"] as string, options.baseUrl) ? new URL(values[\\"@id\\"] as string, options.baseUrl) : undefined }, options, ); const _2rFyCF14HoyNjitj9PmCzek5iSsg_automaticApproval: (URL)[] = []; @@ -22746,7 +22746,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -23194,7 +23194,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -24102,7 +24102,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -24550,7 +24550,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -25457,7 +25457,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -25905,7 +25905,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -26350,7 +26350,7 @@ get endpoints(): (URL)[] { // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -26370,7 +26370,7 @@ get endpoints(): (URL)[] { } const instance = new this( - { id: \\"@id\\" in values && URL.canParse(values[\\"@id\\"] as string) ? new URL(values[\\"@id\\"] as string) : undefined }, + { id: \\"@id\\" in values && URL.canParse(values[\\"@id\\"] as string, options.baseUrl) ? new URL(values[\\"@id\\"] as string, options.baseUrl) : undefined }, options, ); const _2KM4fetG6FTJ1cphj76rzJ8Dyv7p_serviceEndpoint: (URL)[] = []; @@ -26703,7 +26703,7 @@ endpoints?: (URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -27521,7 +27521,7 @@ cryptosuite?: \\"eddsa-jcs-2022\\" | null;verificationMethod?: Multikey | URL | // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -27537,7 +27537,7 @@ cryptosuite?: \\"eddsa-jcs-2022\\" | null;verificationMethod?: Multikey | URL | } const instance = new this( - { id: \\"@id\\" in values && URL.canParse(values[\\"@id\\"] as string) ? new URL(values[\\"@id\\"] as string) : undefined }, + { id: \\"@id\\" in values && URL.canParse(values[\\"@id\\"] as string, options.baseUrl) ? new URL(values[\\"@id\\"] as string, options.baseUrl) : undefined }, options, ); const _3RurJsa7tnptyqMFR5hDGcP9pMs5_cryptosuite: (\\"eddsa-jcs-2022\\")[] = []; @@ -28488,7 +28488,7 @@ owner?: Application | Group | Organization | Person | Service | URL | null;publi // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -28504,7 +28504,7 @@ owner?: Application | Group | Organization | Person | Service | URL | null;publi } const instance = new this( - { id: \\"@id\\" in values && URL.canParse(values[\\"@id\\"] as string) ? new URL(values[\\"@id\\"] as string) : undefined }, + { id: \\"@id\\" in values && URL.canParse(values[\\"@id\\"] as string, options.baseUrl) ? new URL(values[\\"@id\\"] as string, options.baseUrl) : undefined }, options, ); @@ -29368,7 +29368,7 @@ controller?: Application | Group | Organization | Person | Service | URL | null; // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -29384,7 +29384,7 @@ controller?: Application | Group | Organization | Person | Service | URL | null; } const instance = new this( - { id: \\"@id\\" in values && URL.canParse(values[\\"@id\\"] as string) ? new URL(values[\\"@id\\"] as string) : undefined }, + { id: \\"@id\\" in values && URL.canParse(values[\\"@id\\"] as string, options.baseUrl) ? new URL(values[\\"@id\\"] as string, options.baseUrl) : undefined }, options, ); @@ -30203,7 +30203,7 @@ action?: string | null;resourceConformsTo?: URL | null;resourceQuantity?: Measur // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -30219,7 +30219,7 @@ action?: string | null;resourceConformsTo?: URL | null;resourceQuantity?: Measur } const instance = new this( - { id: \\"@id\\" in values && URL.canParse(values[\\"@id\\"] as string) ? new URL(values[\\"@id\\"] as string) : undefined }, + { id: \\"@id\\" in values && URL.canParse(values[\\"@id\\"] as string, options.baseUrl) ? new URL(values[\\"@id\\"] as string, options.baseUrl) : undefined }, options, ); const _38VmZKmXJSBy3AvgqNa9GVqbdphy_action: (string)[] = []; @@ -31075,7 +31075,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -31568,7 +31568,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -31908,7 +31908,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -32243,7 +32243,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -37790,7 +37790,7 @@ get preferredUsernames(): ((string | LanguageString))[] { // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -39253,7 +39253,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -39600,7 +39600,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -40597,7 +40597,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -41238,7 +41238,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -41667,7 +41667,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -42001,7 +42001,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -42341,7 +42341,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -46164,7 +46164,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -48045,7 +48045,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -48540,7 +48540,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -48874,7 +48874,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -49206,7 +49206,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -50000,7 +50000,7 @@ proxyUrl?: URL | null;oauthAuthorizationEndpoint?: URL | null;oauthTokenEndpoint // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -50016,7 +50016,7 @@ proxyUrl?: URL | null;oauthAuthorizationEndpoint?: URL | null;oauthTokenEndpoint } const instance = new this( - { id: \\"@id\\" in values && URL.canParse(values[\\"@id\\"] as string) ? new URL(values[\\"@id\\"] as string) : undefined }, + { id: \\"@id\\" in values && URL.canParse(values[\\"@id\\"] as string, options.baseUrl) ? new URL(values[\\"@id\\"] as string, options.baseUrl) : undefined }, options, ); const _2JCYDbSxEHCCLdBYed33cCETfGyR_proxyUrl: (URL)[] = []; @@ -50665,7 +50665,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -51000,7 +51000,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -51336,7 +51336,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -56883,7 +56883,7 @@ get preferredUsernames(): ((string | LanguageString))[] { // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -59314,7 +59314,7 @@ get names(): ((string | LanguageString))[] { // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -59338,7 +59338,7 @@ get names(): ((string | LanguageString))[] { } const instance = new this( - { id: \\"@id\\" in values && URL.canParse(values[\\"@id\\"] as string) ? new URL(values[\\"@id\\"] as string) : undefined }, + { id: \\"@id\\" in values && URL.canParse(values[\\"@id\\"] as string, options.baseUrl) ? new URL(values[\\"@id\\"] as string, options.baseUrl) : undefined }, options, ); const _pVjLsybKQdmkjuU7MHjiVmNnuj7_href: (URL)[] = []; @@ -59997,7 +59997,7 @@ names?: ((string | LanguageString))[];language?: Intl.Locale | null;height?: num // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -60334,7 +60334,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -60669,7 +60669,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -61007,7 +61007,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -61341,7 +61341,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -61675,7 +61675,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -62009,7 +62009,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -62341,7 +62341,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -62639,7 +62639,7 @@ names?: ((string | LanguageString))[];language?: Intl.Locale | null;height?: num // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -62974,7 +62974,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -63973,7 +63973,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -64771,7 +64771,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -65559,7 +65559,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -71209,7 +71209,7 @@ get preferredUsernames(): ((string | LanguageString))[] { // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -72674,7 +72674,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -78221,7 +78221,7 @@ get preferredUsernames(): ((string | LanguageString))[] { // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -80142,7 +80142,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -81015,7 +81015,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -82678,7 +82678,7 @@ instruments?: (Object | URL)[];exclusiveOptions?: (Object | URL)[];inclusiveOpti // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -83362,7 +83362,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -83696,7 +83696,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -85202,7 +85202,7 @@ relationships?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -85707,7 +85707,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -91254,7 +91254,7 @@ get preferredUsernames(): ((string | LanguageString))[] { // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -92928,7 +92928,7 @@ get contents(): ((string | LanguageString))[] { // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -92944,7 +92944,7 @@ get contents(): ((string | LanguageString))[] { } const instance = new this( - { id: \\"@id\\" in values && URL.canParse(values[\\"@id\\"] as string) ? new URL(values[\\"@id\\"] as string) : undefined }, + { id: \\"@id\\" in values && URL.canParse(values[\\"@id\\"] as string, options.baseUrl) ? new URL(values[\\"@id\\"] as string, options.baseUrl) : undefined }, options, ); const _4HuuRSdSrXq8Jj2J9gcdYfoCzeuz_content: ((string | LanguageString))[] = []; @@ -93360,7 +93360,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -93694,7 +93694,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -94244,7 +94244,7 @@ get formerTypes(): ($EntityType)[] { // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -94679,7 +94679,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -95018,7 +95018,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -95355,7 +95355,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -95692,7 +95692,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -96025,7 +96025,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null) { + if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } diff --git a/packages/vocab-tools/src/__snapshots__/class.test.ts.snap b/packages/vocab-tools/src/__snapshots__/class.test.ts.snap index 6374d268a..d8bee30ef 100644 --- a/packages/vocab-tools/src/__snapshots__/class.test.ts.snap +++ b/packages/vocab-tools/src/__snapshots__/class.test.ts.snap @@ -10290,7 +10290,7 @@ get urls(): ((URL | Link))[] { // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null) { + if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { options = { ...options, baseUrl: new URL(values["@id"]) }; } @@ -10558,7 +10558,7 @@ get urls(): ((URL | Link))[] { } const instance = new this( - { id: "@id" in values && URL.canParse(values["@id"] as string) ? new URL(values["@id"] as string) : undefined }, + { id: "@id" in values && URL.canParse(values["@id"] as string, options.baseUrl) ? new URL(values["@id"] as string, options.baseUrl) : undefined }, options, ); @@ -12962,7 +12962,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null) { + if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { options = { ...options, baseUrl: new URL(values["@id"]) }; } @@ -13964,7 +13964,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null) { + if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { options = { ...options, baseUrl: new URL(values["@id"]) }; } @@ -16997,7 +16997,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null) { + if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { options = { ...options, baseUrl: new URL(values["@id"]) }; } @@ -17840,7 +17840,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null) { + if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { options = { ...options, baseUrl: new URL(values["@id"]) }; } @@ -18343,7 +18343,7 @@ name?: string | LanguageString | null;value?: string | LanguageString | null;} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null) { + if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { options = { ...options, baseUrl: new URL(values["@id"]) }; } @@ -18359,7 +18359,7 @@ name?: string | LanguageString | null;value?: string | LanguageString | null;} } const instance = new this( - { id: "@id" in values && URL.canParse(values["@id"] as string) ? new URL(values["@id"] as string) : undefined }, + { id: "@id" in values && URL.canParse(values["@id"] as string, options.baseUrl) ? new URL(values["@id"] as string, options.baseUrl) : undefined }, options, ); const _4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name: ((string | LanguageString))[] = []; @@ -18929,7 +18929,7 @@ unit?: string | null;numericalValue?: Decimal | null;} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null) { + if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { options = { ...options, baseUrl: new URL(values["@id"]) }; } @@ -18945,7 +18945,7 @@ unit?: string | null;numericalValue?: Decimal | null;} } const instance = new this( - { id: "@id" in values && URL.canParse(values["@id"] as string) ? new URL(values["@id"] as string) : undefined }, + { id: "@id" in values && URL.canParse(values["@id"] as string, options.baseUrl) ? new URL(values["@id"] as string, options.baseUrl) : undefined }, options, ); const _27fgyFbosTtMAhuepJH8K3ZGURT6: (string)[] = []; @@ -19924,7 +19924,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null) { + if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { options = { ...options, baseUrl: new URL(values["@id"]) }; } @@ -20373,7 +20373,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null) { + if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { options = { ...options, baseUrl: new URL(values["@id"]) }; } @@ -20964,7 +20964,7 @@ canLike?: InteractionRule | null;canReply?: InteractionRule | null;canAnnounce?: // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null) { + if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { options = { ...options, baseUrl: new URL(values["@id"]) }; } @@ -20980,7 +20980,7 @@ canLike?: InteractionRule | null;canReply?: InteractionRule | null;canAnnounce?: } const instance = new this( - { id: "@id" in values && URL.canParse(values["@id"] as string) ? new URL(values["@id"] as string) : undefined }, + { id: "@id" in values && URL.canParse(values["@id"] as string, options.baseUrl) ? new URL(values["@id"] as string, options.baseUrl) : undefined }, options, ); const _3JkwVLb3BNCwCWdsb5RftGAg8vyT_canLike: (InteractionRule)[] = []; @@ -21712,7 +21712,7 @@ get manualApprovals(): (URL)[] { // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null) { + if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { options = { ...options, baseUrl: new URL(values["@id"]) }; } @@ -21728,7 +21728,7 @@ get manualApprovals(): (URL)[] { } const instance = new this( - { id: "@id" in values && URL.canParse(values["@id"] as string) ? new URL(values["@id"] as string) : undefined }, + { id: "@id" in values && URL.canParse(values["@id"] as string, options.baseUrl) ? new URL(values["@id"] as string, options.baseUrl) : undefined }, options, ); const _2rFyCF14HoyNjitj9PmCzek5iSsg_automaticApproval: (URL)[] = []; @@ -22748,7 +22748,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null) { + if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { options = { ...options, baseUrl: new URL(values["@id"]) }; } @@ -23196,7 +23196,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null) { + if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { options = { ...options, baseUrl: new URL(values["@id"]) }; } @@ -24104,7 +24104,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null) { + if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { options = { ...options, baseUrl: new URL(values["@id"]) }; } @@ -24552,7 +24552,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null) { + if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { options = { ...options, baseUrl: new URL(values["@id"]) }; } @@ -25459,7 +25459,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null) { + if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { options = { ...options, baseUrl: new URL(values["@id"]) }; } @@ -25907,7 +25907,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null) { + if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { options = { ...options, baseUrl: new URL(values["@id"]) }; } @@ -26352,7 +26352,7 @@ get endpoints(): (URL)[] { // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null) { + if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { options = { ...options, baseUrl: new URL(values["@id"]) }; } @@ -26372,7 +26372,7 @@ get endpoints(): (URL)[] { } const instance = new this( - { id: "@id" in values && URL.canParse(values["@id"] as string) ? new URL(values["@id"] as string) : undefined }, + { id: "@id" in values && URL.canParse(values["@id"] as string, options.baseUrl) ? new URL(values["@id"] as string, options.baseUrl) : undefined }, options, ); const _2KM4fetG6FTJ1cphj76rzJ8Dyv7p_serviceEndpoint: (URL)[] = []; @@ -26705,7 +26705,7 @@ endpoints?: (URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null) { + if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { options = { ...options, baseUrl: new URL(values["@id"]) }; } @@ -27523,7 +27523,7 @@ cryptosuite?: "eddsa-jcs-2022" | null;verificationMethod?: Multikey | URL | null // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null) { + if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { options = { ...options, baseUrl: new URL(values["@id"]) }; } @@ -27539,7 +27539,7 @@ cryptosuite?: "eddsa-jcs-2022" | null;verificationMethod?: Multikey | URL | null } const instance = new this( - { id: "@id" in values && URL.canParse(values["@id"] as string) ? new URL(values["@id"] as string) : undefined }, + { id: "@id" in values && URL.canParse(values["@id"] as string, options.baseUrl) ? new URL(values["@id"] as string, options.baseUrl) : undefined }, options, ); const _3RurJsa7tnptyqMFR5hDGcP9pMs5_cryptosuite: ("eddsa-jcs-2022")[] = []; @@ -28490,7 +28490,7 @@ owner?: Application | Group | Organization | Person | Service | URL | null;publi // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null) { + if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { options = { ...options, baseUrl: new URL(values["@id"]) }; } @@ -28506,7 +28506,7 @@ owner?: Application | Group | Organization | Person | Service | URL | null;publi } const instance = new this( - { id: "@id" in values && URL.canParse(values["@id"] as string) ? new URL(values["@id"] as string) : undefined }, + { id: "@id" in values && URL.canParse(values["@id"] as string, options.baseUrl) ? new URL(values["@id"] as string, options.baseUrl) : undefined }, options, ); @@ -29370,7 +29370,7 @@ controller?: Application | Group | Organization | Person | Service | URL | null; // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null) { + if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { options = { ...options, baseUrl: new URL(values["@id"]) }; } @@ -29386,7 +29386,7 @@ controller?: Application | Group | Organization | Person | Service | URL | null; } const instance = new this( - { id: "@id" in values && URL.canParse(values["@id"] as string) ? new URL(values["@id"] as string) : undefined }, + { id: "@id" in values && URL.canParse(values["@id"] as string, options.baseUrl) ? new URL(values["@id"] as string, options.baseUrl) : undefined }, options, ); @@ -30205,7 +30205,7 @@ action?: string | null;resourceConformsTo?: URL | null;resourceQuantity?: Measur // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null) { + if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { options = { ...options, baseUrl: new URL(values["@id"]) }; } @@ -30221,7 +30221,7 @@ action?: string | null;resourceConformsTo?: URL | null;resourceQuantity?: Measur } const instance = new this( - { id: "@id" in values && URL.canParse(values["@id"] as string) ? new URL(values["@id"] as string) : undefined }, + { id: "@id" in values && URL.canParse(values["@id"] as string, options.baseUrl) ? new URL(values["@id"] as string, options.baseUrl) : undefined }, options, ); const _38VmZKmXJSBy3AvgqNa9GVqbdphy_action: (string)[] = []; @@ -31077,7 +31077,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null) { + if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { options = { ...options, baseUrl: new URL(values["@id"]) }; } @@ -31570,7 +31570,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null) { + if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { options = { ...options, baseUrl: new URL(values["@id"]) }; } @@ -31910,7 +31910,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null) { + if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { options = { ...options, baseUrl: new URL(values["@id"]) }; } @@ -32245,7 +32245,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null) { + if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { options = { ...options, baseUrl: new URL(values["@id"]) }; } @@ -37792,7 +37792,7 @@ get preferredUsernames(): ((string | LanguageString))[] { // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null) { + if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { options = { ...options, baseUrl: new URL(values["@id"]) }; } @@ -39255,7 +39255,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null) { + if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { options = { ...options, baseUrl: new URL(values["@id"]) }; } @@ -39602,7 +39602,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null) { + if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { options = { ...options, baseUrl: new URL(values["@id"]) }; } @@ -40599,7 +40599,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null) { + if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { options = { ...options, baseUrl: new URL(values["@id"]) }; } @@ -41240,7 +41240,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null) { + if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { options = { ...options, baseUrl: new URL(values["@id"]) }; } @@ -41669,7 +41669,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null) { + if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { options = { ...options, baseUrl: new URL(values["@id"]) }; } @@ -42003,7 +42003,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null) { + if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { options = { ...options, baseUrl: new URL(values["@id"]) }; } @@ -42343,7 +42343,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null) { + if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { options = { ...options, baseUrl: new URL(values["@id"]) }; } @@ -46166,7 +46166,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null) { + if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { options = { ...options, baseUrl: new URL(values["@id"]) }; } @@ -48047,7 +48047,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null) { + if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { options = { ...options, baseUrl: new URL(values["@id"]) }; } @@ -48542,7 +48542,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null) { + if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { options = { ...options, baseUrl: new URL(values["@id"]) }; } @@ -48876,7 +48876,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null) { + if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { options = { ...options, baseUrl: new URL(values["@id"]) }; } @@ -49208,7 +49208,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null) { + if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { options = { ...options, baseUrl: new URL(values["@id"]) }; } @@ -50002,7 +50002,7 @@ proxyUrl?: URL | null;oauthAuthorizationEndpoint?: URL | null;oauthTokenEndpoint // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null) { + if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { options = { ...options, baseUrl: new URL(values["@id"]) }; } @@ -50018,7 +50018,7 @@ proxyUrl?: URL | null;oauthAuthorizationEndpoint?: URL | null;oauthTokenEndpoint } const instance = new this( - { id: "@id" in values && URL.canParse(values["@id"] as string) ? new URL(values["@id"] as string) : undefined }, + { id: "@id" in values && URL.canParse(values["@id"] as string, options.baseUrl) ? new URL(values["@id"] as string, options.baseUrl) : undefined }, options, ); const _2JCYDbSxEHCCLdBYed33cCETfGyR_proxyUrl: (URL)[] = []; @@ -50667,7 +50667,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null) { + if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { options = { ...options, baseUrl: new URL(values["@id"]) }; } @@ -51002,7 +51002,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null) { + if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { options = { ...options, baseUrl: new URL(values["@id"]) }; } @@ -51338,7 +51338,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null) { + if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { options = { ...options, baseUrl: new URL(values["@id"]) }; } @@ -56885,7 +56885,7 @@ get preferredUsernames(): ((string | LanguageString))[] { // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null) { + if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { options = { ...options, baseUrl: new URL(values["@id"]) }; } @@ -59316,7 +59316,7 @@ get names(): ((string | LanguageString))[] { // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null) { + if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { options = { ...options, baseUrl: new URL(values["@id"]) }; } @@ -59340,7 +59340,7 @@ get names(): ((string | LanguageString))[] { } const instance = new this( - { id: "@id" in values && URL.canParse(values["@id"] as string) ? new URL(values["@id"] as string) : undefined }, + { id: "@id" in values && URL.canParse(values["@id"] as string, options.baseUrl) ? new URL(values["@id"] as string, options.baseUrl) : undefined }, options, ); const _pVjLsybKQdmkjuU7MHjiVmNnuj7_href: (URL)[] = []; @@ -59999,7 +59999,7 @@ names?: ((string | LanguageString))[];language?: Intl.Locale | null;height?: num // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null) { + if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { options = { ...options, baseUrl: new URL(values["@id"]) }; } @@ -60336,7 +60336,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null) { + if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { options = { ...options, baseUrl: new URL(values["@id"]) }; } @@ -60671,7 +60671,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null) { + if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { options = { ...options, baseUrl: new URL(values["@id"]) }; } @@ -61009,7 +61009,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null) { + if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { options = { ...options, baseUrl: new URL(values["@id"]) }; } @@ -61343,7 +61343,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null) { + if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { options = { ...options, baseUrl: new URL(values["@id"]) }; } @@ -61677,7 +61677,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null) { + if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { options = { ...options, baseUrl: new URL(values["@id"]) }; } @@ -62011,7 +62011,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null) { + if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { options = { ...options, baseUrl: new URL(values["@id"]) }; } @@ -62343,7 +62343,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null) { + if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { options = { ...options, baseUrl: new URL(values["@id"]) }; } @@ -62641,7 +62641,7 @@ names?: ((string | LanguageString))[];language?: Intl.Locale | null;height?: num // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null) { + if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { options = { ...options, baseUrl: new URL(values["@id"]) }; } @@ -62976,7 +62976,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null) { + if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { options = { ...options, baseUrl: new URL(values["@id"]) }; } @@ -63975,7 +63975,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null) { + if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { options = { ...options, baseUrl: new URL(values["@id"]) }; } @@ -64773,7 +64773,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null) { + if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { options = { ...options, baseUrl: new URL(values["@id"]) }; } @@ -65561,7 +65561,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null) { + if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { options = { ...options, baseUrl: new URL(values["@id"]) }; } @@ -71211,7 +71211,7 @@ get preferredUsernames(): ((string | LanguageString))[] { // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null) { + if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { options = { ...options, baseUrl: new URL(values["@id"]) }; } @@ -72676,7 +72676,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null) { + if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { options = { ...options, baseUrl: new URL(values["@id"]) }; } @@ -78223,7 +78223,7 @@ get preferredUsernames(): ((string | LanguageString))[] { // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null) { + if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { options = { ...options, baseUrl: new URL(values["@id"]) }; } @@ -80144,7 +80144,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null) { + if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { options = { ...options, baseUrl: new URL(values["@id"]) }; } @@ -81017,7 +81017,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null) { + if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { options = { ...options, baseUrl: new URL(values["@id"]) }; } @@ -82680,7 +82680,7 @@ instruments?: (Object | URL)[];exclusiveOptions?: (Object | URL)[];inclusiveOpti // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null) { + if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { options = { ...options, baseUrl: new URL(values["@id"]) }; } @@ -83364,7 +83364,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null) { + if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { options = { ...options, baseUrl: new URL(values["@id"]) }; } @@ -83698,7 +83698,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null) { + if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { options = { ...options, baseUrl: new URL(values["@id"]) }; } @@ -85204,7 +85204,7 @@ relationships?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null) { + if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { options = { ...options, baseUrl: new URL(values["@id"]) }; } @@ -85709,7 +85709,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null) { + if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { options = { ...options, baseUrl: new URL(values["@id"]) }; } @@ -91256,7 +91256,7 @@ get preferredUsernames(): ((string | LanguageString))[] { // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null) { + if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { options = { ...options, baseUrl: new URL(values["@id"]) }; } @@ -92930,7 +92930,7 @@ get contents(): ((string | LanguageString))[] { // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null) { + if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { options = { ...options, baseUrl: new URL(values["@id"]) }; } @@ -92946,7 +92946,7 @@ get contents(): ((string | LanguageString))[] { } const instance = new this( - { id: "@id" in values && URL.canParse(values["@id"] as string) ? new URL(values["@id"] as string) : undefined }, + { id: "@id" in values && URL.canParse(values["@id"] as string, options.baseUrl) ? new URL(values["@id"] as string, options.baseUrl) : undefined }, options, ); const _4HuuRSdSrXq8Jj2J9gcdYfoCzeuz_content: ((string | LanguageString))[] = []; @@ -93362,7 +93362,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null) { + if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { options = { ...options, baseUrl: new URL(values["@id"]) }; } @@ -93696,7 +93696,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null) { + if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { options = { ...options, baseUrl: new URL(values["@id"]) }; } @@ -94246,7 +94246,7 @@ get formerTypes(): ($EntityType)[] { // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null) { + if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { options = { ...options, baseUrl: new URL(values["@id"]) }; } @@ -94681,7 +94681,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null) { + if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { options = { ...options, baseUrl: new URL(values["@id"]) }; } @@ -95020,7 +95020,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null) { + if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { options = { ...options, baseUrl: new URL(values["@id"]) }; } @@ -95357,7 +95357,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null) { + if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { options = { ...options, baseUrl: new URL(values["@id"]) }; } @@ -95694,7 +95694,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null) { + if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { options = { ...options, baseUrl: new URL(values["@id"]) }; } @@ -96027,7 +96027,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null) { + if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { options = { ...options, baseUrl: new URL(values["@id"]) }; } From 996c3b74e4459fb94b13aee690c88cac706bf4a3 Mon Sep 17 00:00:00 2001 From: Hong Minhee Date: Sat, 6 Jun 2026 15:10:26 +0900 Subject: [PATCH 22/25] Restore taskLists plugin accidentally dropped during merge https://github.com/fedify-dev/fedify/pull/793#discussion_r3366754351 Assisted-by: OpenCode:deepseek-v4-pro --- docs/.vitepress/config.mts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/.vitepress/config.mts b/docs/.vitepress/config.mts index 4957dbea1..0f889f97e 100644 --- a/docs/.vitepress/config.mts +++ b/docs/.vitepress/config.mts @@ -2,6 +2,7 @@ import { transformerTwoslash } from "@shikijs/vitepress-twoslash"; import abbr from "markdown-it-abbr"; import deflist from "markdown-it-deflist"; import footnote from "markdown-it-footnote"; +import taskLists from "@hackmd/markdown-it-task-lists"; import { jsrRef } from "markdown-it-jsr-ref"; import { readFileSync } from "node:fs"; import process from "node:process"; @@ -295,6 +296,7 @@ export default withMermaid(defineConfig({ md.use(abbr); md.use(deflist); md.use(footnote); + md.use(taskLists); md.use(groupIconMdPlugin); for (const jsrRefPlugin of jsrRefPlugins) { md.use(jsrRefPlugin); From c8872aa8df014e172ba071738e931e8bd834f41c Mon Sep 17 00:00:00 2001 From: Hong Minhee Date: Sat, 6 Jun 2026 15:21:50 +0900 Subject: [PATCH 23/25] Guard URL construction and jsonld.expand calls Add URL.canParse guards with options.baseUrl to the preprocessor and decoder baseUrl expressions so relative @id values are safely resolved and blank-node identifiers don't crash the decoder. Also guard jsonld.expand in property.ts against non-object values. Restore jsrRef links for @fedify/debugger and @fedify/testing that were accidentally dropped from the docs config. https://github.com/fedify-dev/fedify/pull/793#discussion_r3366795941 https://github.com/fedify-dev/fedify/pull/793#discussion_r3366795948 https://github.com/fedify-dev/fedify/pull/793#discussion_r3366801101 https://github.com/fedify-dev/fedify/pull/793#discussion_r3366801103 https://github.com/fedify-dev/fedify/pull/793#discussion_r3366804504 Assisted-by: OpenCode:deepseek-v4-pro --- docs/.vitepress/config.mts | 2 +- .../src/__snapshots__/class.test.ts.deno.snap | 592 +++++++++--------- .../src/__snapshots__/class.test.ts.node.snap | 592 +++++++++--------- .../src/__snapshots__/class.test.ts.snap | 592 +++++++++--------- packages/vocab-tools/src/codec.ts | 6 +- packages/vocab-tools/src/property.ts | 32 +- 6 files changed, 915 insertions(+), 901 deletions(-) diff --git a/docs/.vitepress/config.mts b/docs/.vitepress/config.mts index 0f889f97e..cf53266e6 100644 --- a/docs/.vitepress/config.mts +++ b/docs/.vitepress/config.mts @@ -16,7 +16,7 @@ import llmstxt from "vitepress-plugin-llms"; import { withMermaid } from "vitepress-plugin-mermaid"; const jsrRefPlugins: (Awaited>)[] = []; -for (const pkg of ["fedify", "vocab", "vocab-runtime", "webfinger"]) { +for (const pkg of ["fedify", "vocab", "vocab-runtime", "webfinger", "debugger", "testing"]) { const jsrRefPlugin = await jsrRef({ package: `@fedify/${pkg}`, version: process.env.JSR_REF_VERSION ?? "unstable", diff --git a/packages/vocab-tools/src/__snapshots__/class.test.ts.deno.snap b/packages/vocab-tools/src/__snapshots__/class.test.ts.deno.snap index 4ebfa946b..1fd9c7928 100644 --- a/packages/vocab-tools/src/__snapshots__/class.test.ts.deno.snap +++ b/packages/vocab-tools/src/__snapshots__/class.test.ts.deno.snap @@ -3679,23 +3679,25 @@ get names(): ((string | LanguageString))[] { this._tracerProvider ?? trace.getTracerProvider(); const baseUrl = options.baseUrl; - const _expanded = await jsonld.expand(jsonLd, { - documentLoader: contextLoader, - keepFreeFloatingNodes: true, - }); - for (const _pp_obj of _expanded) { - - { - const _result = await _ppM0[\\"normalizeLinkToImage\\"](_pp_obj, { - documentLoader, - contextLoader, - tracerProvider, - baseUrl, - }); - if (_result instanceof Error) throw _result; - if (_result !== undefined) return _result as Image; - } + if (jsonLd != null && typeof jsonLd === \\"object\\") { + const _expanded = await jsonld.expand(jsonLd, { + documentLoader: contextLoader, + keepFreeFloatingNodes: true, + }); + for (const _pp_obj of _expanded) { + + { + const _result = await _ppM0[\\"normalizeLinkToImage\\"](_pp_obj, { + documentLoader, + contextLoader, + tracerProvider, + baseUrl, + }); + if (_result instanceof Error) throw _result; + if (_result !== undefined) return _result as Image; + } + } } try { @@ -4024,23 +4026,25 @@ get names(): ((string | LanguageString))[] { this._tracerProvider ?? trace.getTracerProvider(); const baseUrl = options.baseUrl; - const _expanded = await jsonld.expand(jsonLd, { - documentLoader: contextLoader, - keepFreeFloatingNodes: true, - }); - for (const _pp_obj of _expanded) { - - { - const _result = await _ppM0[\\"normalizeLinkToImage\\"](_pp_obj, { - documentLoader, - contextLoader, - tracerProvider, - baseUrl, - }); - if (_result instanceof Error) throw _result; - if (_result !== undefined) return _result as Image; - } + if (jsonLd != null && typeof jsonLd === \\"object\\") { + const _expanded = await jsonld.expand(jsonLd, { + documentLoader: contextLoader, + keepFreeFloatingNodes: true, + }); + for (const _pp_obj of _expanded) { + + { + const _result = await _ppM0[\\"normalizeLinkToImage\\"](_pp_obj, { + documentLoader, + contextLoader, + tracerProvider, + baseUrl, + }); + if (_result instanceof Error) throw _result; + if (_result !== undefined) return _result as Image; + } + } } try { @@ -10591,16 +10595,16 @@ get urls(): ((URL | Link))[] { && Array.isArray(v[\\"@type\\"])&& [\\"https://www.w3.org/ns/activitystreams#Object\\",\\"http://joinmastodon.org/ns#Emoji\\",\\"http://litepub.social/ns#ChatMessage\\",\\"https://gotosocial.org/ns#AnnounceAuthorization\\",\\"https://gotosocial.org/ns#LikeApproval\\",\\"https://gotosocial.org/ns#ReplyAuthorization\\",\\"https://w3id.org/fep/044f#QuoteAuthorization\\",\\"https://w3id.org/valueflows/ont/vf#Proposal\\",\\"https://www.w3.org/ns/activitystreams#Activity\\",\\"http://litepub.social/ns#EmojiReact\\",\\"https://gotosocial.org/ns#AnnounceRequest\\",\\"https://gotosocial.org/ns#LikeRequest\\",\\"https://gotosocial.org/ns#ReplyRequest\\",\\"https://w3id.org/fep/044f#QuoteRequest\\",\\"https://www.w3.org/ns/activitystreams#Accept\\",\\"https://www.w3.org/ns/activitystreams#TentativeAccept\\",\\"https://www.w3.org/ns/activitystreams#Add\\",\\"https://www.w3.org/ns/activitystreams#Announce\\",\\"https://www.w3.org/ns/activitystreams#Create\\",\\"https://www.w3.org/ns/activitystreams#Delete\\",\\"https://www.w3.org/ns/activitystreams#Dislike\\",\\"https://www.w3.org/ns/activitystreams#Flag\\",\\"https://www.w3.org/ns/activitystreams#Follow\\",\\"https://www.w3.org/ns/activitystreams#Ignore\\",\\"https://www.w3.org/ns/activitystreams#Block\\",\\"https://www.w3.org/ns/activitystreams#IntransitiveActivity\\",\\"https://www.w3.org/ns/activitystreams#Arrive\\",\\"https://www.w3.org/ns/activitystreams#Question\\",\\"https://www.w3.org/ns/activitystreams#Travel\\",\\"https://www.w3.org/ns/activitystreams#Join\\",\\"https://www.w3.org/ns/activitystreams#Leave\\",\\"https://www.w3.org/ns/activitystreams#Like\\",\\"https://www.w3.org/ns/activitystreams#Listen\\",\\"https://www.w3.org/ns/activitystreams#Move\\",\\"https://www.w3.org/ns/activitystreams#Offer\\",\\"https://www.w3.org/ns/activitystreams#Invite\\",\\"https://www.w3.org/ns/activitystreams#Read\\",\\"https://www.w3.org/ns/activitystreams#Reject\\",\\"https://www.w3.org/ns/activitystreams#TentativeReject\\",\\"https://www.w3.org/ns/activitystreams#Remove\\",\\"https://www.w3.org/ns/activitystreams#Undo\\",\\"https://www.w3.org/ns/activitystreams#Update\\",\\"https://www.w3.org/ns/activitystreams#View\\",\\"https://www.w3.org/ns/activitystreams#Application\\",\\"https://www.w3.org/ns/activitystreams#Article\\",\\"https://www.w3.org/ns/activitystreams#Collection\\",\\"https://www.w3.org/ns/activitystreams#CollectionPage\\",\\"https://www.w3.org/ns/activitystreams#OrderedCollectionPage\\",\\"https://www.w3.org/ns/activitystreams#OrderedCollection\\",\\"https://www.w3.org/ns/activitystreams#Document\\",\\"https://www.w3.org/ns/activitystreams#Audio\\",\\"https://www.w3.org/ns/activitystreams#Image\\",\\"https://www.w3.org/ns/activitystreams#Page\\",\\"https://www.w3.org/ns/activitystreams#Video\\",\\"https://www.w3.org/ns/activitystreams#Event\\",\\"https://www.w3.org/ns/activitystreams#Group\\",\\"https://www.w3.org/ns/activitystreams#Note\\",\\"https://www.w3.org/ns/activitystreams#Organization\\",\\"https://www.w3.org/ns/activitystreams#Person\\",\\"https://www.w3.org/ns/activitystreams#Place\\",\\"https://www.w3.org/ns/activitystreams#Profile\\",\\"https://www.w3.org/ns/activitystreams#Relationship\\",\\"https://www.w3.org/ns/activitystreams#Service\\",\\"https://www.w3.org/ns/activitystreams#Tombstone\\"].some( t => v[\\"@type\\"].includes(t)) ? await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& [\\"https://www.w3.org/ns/activitystreams#Link\\",\\"https://www.w3.org/ns/activitystreams#Hashtag\\",\\"https://www.w3.org/ns/activitystreams#Mention\\"].some( t => v[\\"@type\\"].includes(t)) ? await Link.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"http://schema.org#PropertyValue\\") ? await PropertyValue.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -10637,23 +10641,23 @@ get urls(): ((URL | Link))[] { typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Application\\") ? await Application.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Group\\") ? await Group.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Organization\\") ? await Organization.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Person\\") ? await Person.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Service\\") ? await Service.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -10688,7 +10692,7 @@ get urls(): ((URL | Link))[] { const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _3ocC3VVi88cEd5sPWL8djkZsvTN6_audience.push(decoded); @@ -10748,12 +10752,12 @@ get urls(): ((URL | Link))[] { && Array.isArray(v[\\"@type\\"])&& [\\"https://www.w3.org/ns/activitystreams#Object\\",\\"http://joinmastodon.org/ns#Emoji\\",\\"http://litepub.social/ns#ChatMessage\\",\\"https://gotosocial.org/ns#AnnounceAuthorization\\",\\"https://gotosocial.org/ns#LikeApproval\\",\\"https://gotosocial.org/ns#ReplyAuthorization\\",\\"https://w3id.org/fep/044f#QuoteAuthorization\\",\\"https://w3id.org/valueflows/ont/vf#Proposal\\",\\"https://www.w3.org/ns/activitystreams#Activity\\",\\"http://litepub.social/ns#EmojiReact\\",\\"https://gotosocial.org/ns#AnnounceRequest\\",\\"https://gotosocial.org/ns#LikeRequest\\",\\"https://gotosocial.org/ns#ReplyRequest\\",\\"https://w3id.org/fep/044f#QuoteRequest\\",\\"https://www.w3.org/ns/activitystreams#Accept\\",\\"https://www.w3.org/ns/activitystreams#TentativeAccept\\",\\"https://www.w3.org/ns/activitystreams#Add\\",\\"https://www.w3.org/ns/activitystreams#Announce\\",\\"https://www.w3.org/ns/activitystreams#Create\\",\\"https://www.w3.org/ns/activitystreams#Delete\\",\\"https://www.w3.org/ns/activitystreams#Dislike\\",\\"https://www.w3.org/ns/activitystreams#Flag\\",\\"https://www.w3.org/ns/activitystreams#Follow\\",\\"https://www.w3.org/ns/activitystreams#Ignore\\",\\"https://www.w3.org/ns/activitystreams#Block\\",\\"https://www.w3.org/ns/activitystreams#IntransitiveActivity\\",\\"https://www.w3.org/ns/activitystreams#Arrive\\",\\"https://www.w3.org/ns/activitystreams#Question\\",\\"https://www.w3.org/ns/activitystreams#Travel\\",\\"https://www.w3.org/ns/activitystreams#Join\\",\\"https://www.w3.org/ns/activitystreams#Leave\\",\\"https://www.w3.org/ns/activitystreams#Like\\",\\"https://www.w3.org/ns/activitystreams#Listen\\",\\"https://www.w3.org/ns/activitystreams#Move\\",\\"https://www.w3.org/ns/activitystreams#Offer\\",\\"https://www.w3.org/ns/activitystreams#Invite\\",\\"https://www.w3.org/ns/activitystreams#Read\\",\\"https://www.w3.org/ns/activitystreams#Reject\\",\\"https://www.w3.org/ns/activitystreams#TentativeReject\\",\\"https://www.w3.org/ns/activitystreams#Remove\\",\\"https://www.w3.org/ns/activitystreams#Undo\\",\\"https://www.w3.org/ns/activitystreams#Update\\",\\"https://www.w3.org/ns/activitystreams#View\\",\\"https://www.w3.org/ns/activitystreams#Application\\",\\"https://www.w3.org/ns/activitystreams#Article\\",\\"https://www.w3.org/ns/activitystreams#Collection\\",\\"https://www.w3.org/ns/activitystreams#CollectionPage\\",\\"https://www.w3.org/ns/activitystreams#OrderedCollectionPage\\",\\"https://www.w3.org/ns/activitystreams#OrderedCollection\\",\\"https://www.w3.org/ns/activitystreams#Document\\",\\"https://www.w3.org/ns/activitystreams#Audio\\",\\"https://www.w3.org/ns/activitystreams#Image\\",\\"https://www.w3.org/ns/activitystreams#Page\\",\\"https://www.w3.org/ns/activitystreams#Video\\",\\"https://www.w3.org/ns/activitystreams#Event\\",\\"https://www.w3.org/ns/activitystreams#Group\\",\\"https://www.w3.org/ns/activitystreams#Note\\",\\"https://www.w3.org/ns/activitystreams#Organization\\",\\"https://www.w3.org/ns/activitystreams#Person\\",\\"https://www.w3.org/ns/activitystreams#Place\\",\\"https://www.w3.org/ns/activitystreams#Profile\\",\\"https://www.w3.org/ns/activitystreams#Relationship\\",\\"https://www.w3.org/ns/activitystreams#Service\\",\\"https://www.w3.org/ns/activitystreams#Tombstone\\"].some( t => v[\\"@type\\"].includes(t)) ? await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& [\\"https://www.w3.org/ns/activitystreams#Link\\",\\"https://www.w3.org/ns/activitystreams#Hashtag\\",\\"https://www.w3.org/ns/activitystreams#Mention\\"].some( t => v[\\"@type\\"].includes(t)) ? await Link.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -10837,12 +10841,12 @@ get urls(): ((URL | Link))[] { && Array.isArray(v[\\"@type\\"])&& [\\"https://www.w3.org/ns/activitystreams#Object\\",\\"http://joinmastodon.org/ns#Emoji\\",\\"http://litepub.social/ns#ChatMessage\\",\\"https://gotosocial.org/ns#AnnounceAuthorization\\",\\"https://gotosocial.org/ns#LikeApproval\\",\\"https://gotosocial.org/ns#ReplyAuthorization\\",\\"https://w3id.org/fep/044f#QuoteAuthorization\\",\\"https://w3id.org/valueflows/ont/vf#Proposal\\",\\"https://www.w3.org/ns/activitystreams#Activity\\",\\"http://litepub.social/ns#EmojiReact\\",\\"https://gotosocial.org/ns#AnnounceRequest\\",\\"https://gotosocial.org/ns#LikeRequest\\",\\"https://gotosocial.org/ns#ReplyRequest\\",\\"https://w3id.org/fep/044f#QuoteRequest\\",\\"https://www.w3.org/ns/activitystreams#Accept\\",\\"https://www.w3.org/ns/activitystreams#TentativeAccept\\",\\"https://www.w3.org/ns/activitystreams#Add\\",\\"https://www.w3.org/ns/activitystreams#Announce\\",\\"https://www.w3.org/ns/activitystreams#Create\\",\\"https://www.w3.org/ns/activitystreams#Delete\\",\\"https://www.w3.org/ns/activitystreams#Dislike\\",\\"https://www.w3.org/ns/activitystreams#Flag\\",\\"https://www.w3.org/ns/activitystreams#Follow\\",\\"https://www.w3.org/ns/activitystreams#Ignore\\",\\"https://www.w3.org/ns/activitystreams#Block\\",\\"https://www.w3.org/ns/activitystreams#IntransitiveActivity\\",\\"https://www.w3.org/ns/activitystreams#Arrive\\",\\"https://www.w3.org/ns/activitystreams#Question\\",\\"https://www.w3.org/ns/activitystreams#Travel\\",\\"https://www.w3.org/ns/activitystreams#Join\\",\\"https://www.w3.org/ns/activitystreams#Leave\\",\\"https://www.w3.org/ns/activitystreams#Like\\",\\"https://www.w3.org/ns/activitystreams#Listen\\",\\"https://www.w3.org/ns/activitystreams#Move\\",\\"https://www.w3.org/ns/activitystreams#Offer\\",\\"https://www.w3.org/ns/activitystreams#Invite\\",\\"https://www.w3.org/ns/activitystreams#Read\\",\\"https://www.w3.org/ns/activitystreams#Reject\\",\\"https://www.w3.org/ns/activitystreams#TentativeReject\\",\\"https://www.w3.org/ns/activitystreams#Remove\\",\\"https://www.w3.org/ns/activitystreams#Undo\\",\\"https://www.w3.org/ns/activitystreams#Update\\",\\"https://www.w3.org/ns/activitystreams#View\\",\\"https://www.w3.org/ns/activitystreams#Application\\",\\"https://www.w3.org/ns/activitystreams#Article\\",\\"https://www.w3.org/ns/activitystreams#Collection\\",\\"https://www.w3.org/ns/activitystreams#CollectionPage\\",\\"https://www.w3.org/ns/activitystreams#OrderedCollectionPage\\",\\"https://www.w3.org/ns/activitystreams#OrderedCollection\\",\\"https://www.w3.org/ns/activitystreams#Document\\",\\"https://www.w3.org/ns/activitystreams#Audio\\",\\"https://www.w3.org/ns/activitystreams#Image\\",\\"https://www.w3.org/ns/activitystreams#Page\\",\\"https://www.w3.org/ns/activitystreams#Video\\",\\"https://www.w3.org/ns/activitystreams#Event\\",\\"https://www.w3.org/ns/activitystreams#Group\\",\\"https://www.w3.org/ns/activitystreams#Note\\",\\"https://www.w3.org/ns/activitystreams#Organization\\",\\"https://www.w3.org/ns/activitystreams#Person\\",\\"https://www.w3.org/ns/activitystreams#Place\\",\\"https://www.w3.org/ns/activitystreams#Profile\\",\\"https://www.w3.org/ns/activitystreams#Relationship\\",\\"https://www.w3.org/ns/activitystreams#Service\\",\\"https://www.w3.org/ns/activitystreams#Tombstone\\"].some( t => v[\\"@type\\"].includes(t)) ? await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& [\\"https://www.w3.org/ns/activitystreams#Link\\",\\"https://www.w3.org/ns/activitystreams#Hashtag\\",\\"https://www.w3.org/ns/activitystreams#Mention\\"].some( t => v[\\"@type\\"].includes(t)) ? await Link.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -10873,7 +10877,7 @@ get urls(): ((URL | Link))[] { documentLoader: options.documentLoader, contextLoader: options.contextLoader, tracerProvider: options.tracerProvider, - baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])), + baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)), }); if (_result instanceof Error) throw _result; if (_result !== undefined) { @@ -10899,7 +10903,7 @@ get urls(): ((URL | Link))[] { const decoded = await Image.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _33CjRLy5ujtsUrwRSCrsggvGdKuR_icon.push(decoded); @@ -10928,7 +10932,7 @@ get urls(): ((URL | Link))[] { documentLoader: options.documentLoader, contextLoader: options.contextLoader, tracerProvider: options.tracerProvider, - baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])), + baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)), }); if (_result instanceof Error) throw _result; if (_result !== undefined) { @@ -10954,7 +10958,7 @@ get urls(): ((URL | Link))[] { const decoded = await Image.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _3dXrUdkARxwyJLtJcYi1AJ92H41U_image.push(decoded); @@ -10990,12 +10994,12 @@ get urls(): ((URL | Link))[] { && Array.isArray(v[\\"@type\\"])&& [\\"https://www.w3.org/ns/activitystreams#Object\\",\\"http://joinmastodon.org/ns#Emoji\\",\\"http://litepub.social/ns#ChatMessage\\",\\"https://gotosocial.org/ns#AnnounceAuthorization\\",\\"https://gotosocial.org/ns#LikeApproval\\",\\"https://gotosocial.org/ns#ReplyAuthorization\\",\\"https://w3id.org/fep/044f#QuoteAuthorization\\",\\"https://w3id.org/valueflows/ont/vf#Proposal\\",\\"https://www.w3.org/ns/activitystreams#Activity\\",\\"http://litepub.social/ns#EmojiReact\\",\\"https://gotosocial.org/ns#AnnounceRequest\\",\\"https://gotosocial.org/ns#LikeRequest\\",\\"https://gotosocial.org/ns#ReplyRequest\\",\\"https://w3id.org/fep/044f#QuoteRequest\\",\\"https://www.w3.org/ns/activitystreams#Accept\\",\\"https://www.w3.org/ns/activitystreams#TentativeAccept\\",\\"https://www.w3.org/ns/activitystreams#Add\\",\\"https://www.w3.org/ns/activitystreams#Announce\\",\\"https://www.w3.org/ns/activitystreams#Create\\",\\"https://www.w3.org/ns/activitystreams#Delete\\",\\"https://www.w3.org/ns/activitystreams#Dislike\\",\\"https://www.w3.org/ns/activitystreams#Flag\\",\\"https://www.w3.org/ns/activitystreams#Follow\\",\\"https://www.w3.org/ns/activitystreams#Ignore\\",\\"https://www.w3.org/ns/activitystreams#Block\\",\\"https://www.w3.org/ns/activitystreams#IntransitiveActivity\\",\\"https://www.w3.org/ns/activitystreams#Arrive\\",\\"https://www.w3.org/ns/activitystreams#Question\\",\\"https://www.w3.org/ns/activitystreams#Travel\\",\\"https://www.w3.org/ns/activitystreams#Join\\",\\"https://www.w3.org/ns/activitystreams#Leave\\",\\"https://www.w3.org/ns/activitystreams#Like\\",\\"https://www.w3.org/ns/activitystreams#Listen\\",\\"https://www.w3.org/ns/activitystreams#Move\\",\\"https://www.w3.org/ns/activitystreams#Offer\\",\\"https://www.w3.org/ns/activitystreams#Invite\\",\\"https://www.w3.org/ns/activitystreams#Read\\",\\"https://www.w3.org/ns/activitystreams#Reject\\",\\"https://www.w3.org/ns/activitystreams#TentativeReject\\",\\"https://www.w3.org/ns/activitystreams#Remove\\",\\"https://www.w3.org/ns/activitystreams#Undo\\",\\"https://www.w3.org/ns/activitystreams#Update\\",\\"https://www.w3.org/ns/activitystreams#View\\",\\"https://www.w3.org/ns/activitystreams#Application\\",\\"https://www.w3.org/ns/activitystreams#Article\\",\\"https://www.w3.org/ns/activitystreams#Collection\\",\\"https://www.w3.org/ns/activitystreams#CollectionPage\\",\\"https://www.w3.org/ns/activitystreams#OrderedCollectionPage\\",\\"https://www.w3.org/ns/activitystreams#OrderedCollection\\",\\"https://www.w3.org/ns/activitystreams#Document\\",\\"https://www.w3.org/ns/activitystreams#Audio\\",\\"https://www.w3.org/ns/activitystreams#Image\\",\\"https://www.w3.org/ns/activitystreams#Page\\",\\"https://www.w3.org/ns/activitystreams#Video\\",\\"https://www.w3.org/ns/activitystreams#Event\\",\\"https://www.w3.org/ns/activitystreams#Group\\",\\"https://www.w3.org/ns/activitystreams#Note\\",\\"https://www.w3.org/ns/activitystreams#Organization\\",\\"https://www.w3.org/ns/activitystreams#Person\\",\\"https://www.w3.org/ns/activitystreams#Place\\",\\"https://www.w3.org/ns/activitystreams#Profile\\",\\"https://www.w3.org/ns/activitystreams#Relationship\\",\\"https://www.w3.org/ns/activitystreams#Service\\",\\"https://www.w3.org/ns/activitystreams#Tombstone\\"].some( t => v[\\"@type\\"].includes(t)) ? await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& [\\"https://www.w3.org/ns/activitystreams#Link\\",\\"https://www.w3.org/ns/activitystreams#Hashtag\\",\\"https://www.w3.org/ns/activitystreams#Mention\\"].some( t => v[\\"@type\\"].includes(t)) ? await Link.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -11033,12 +11037,12 @@ get urls(): ((URL | Link))[] { && Array.isArray(v[\\"@type\\"])&& [\\"https://www.w3.org/ns/activitystreams#Object\\",\\"http://joinmastodon.org/ns#Emoji\\",\\"http://litepub.social/ns#ChatMessage\\",\\"https://gotosocial.org/ns#AnnounceAuthorization\\",\\"https://gotosocial.org/ns#LikeApproval\\",\\"https://gotosocial.org/ns#ReplyAuthorization\\",\\"https://w3id.org/fep/044f#QuoteAuthorization\\",\\"https://w3id.org/valueflows/ont/vf#Proposal\\",\\"https://www.w3.org/ns/activitystreams#Activity\\",\\"http://litepub.social/ns#EmojiReact\\",\\"https://gotosocial.org/ns#AnnounceRequest\\",\\"https://gotosocial.org/ns#LikeRequest\\",\\"https://gotosocial.org/ns#ReplyRequest\\",\\"https://w3id.org/fep/044f#QuoteRequest\\",\\"https://www.w3.org/ns/activitystreams#Accept\\",\\"https://www.w3.org/ns/activitystreams#TentativeAccept\\",\\"https://www.w3.org/ns/activitystreams#Add\\",\\"https://www.w3.org/ns/activitystreams#Announce\\",\\"https://www.w3.org/ns/activitystreams#Create\\",\\"https://www.w3.org/ns/activitystreams#Delete\\",\\"https://www.w3.org/ns/activitystreams#Dislike\\",\\"https://www.w3.org/ns/activitystreams#Flag\\",\\"https://www.w3.org/ns/activitystreams#Follow\\",\\"https://www.w3.org/ns/activitystreams#Ignore\\",\\"https://www.w3.org/ns/activitystreams#Block\\",\\"https://www.w3.org/ns/activitystreams#IntransitiveActivity\\",\\"https://www.w3.org/ns/activitystreams#Arrive\\",\\"https://www.w3.org/ns/activitystreams#Question\\",\\"https://www.w3.org/ns/activitystreams#Travel\\",\\"https://www.w3.org/ns/activitystreams#Join\\",\\"https://www.w3.org/ns/activitystreams#Leave\\",\\"https://www.w3.org/ns/activitystreams#Like\\",\\"https://www.w3.org/ns/activitystreams#Listen\\",\\"https://www.w3.org/ns/activitystreams#Move\\",\\"https://www.w3.org/ns/activitystreams#Offer\\",\\"https://www.w3.org/ns/activitystreams#Invite\\",\\"https://www.w3.org/ns/activitystreams#Read\\",\\"https://www.w3.org/ns/activitystreams#Reject\\",\\"https://www.w3.org/ns/activitystreams#TentativeReject\\",\\"https://www.w3.org/ns/activitystreams#Remove\\",\\"https://www.w3.org/ns/activitystreams#Undo\\",\\"https://www.w3.org/ns/activitystreams#Update\\",\\"https://www.w3.org/ns/activitystreams#View\\",\\"https://www.w3.org/ns/activitystreams#Application\\",\\"https://www.w3.org/ns/activitystreams#Article\\",\\"https://www.w3.org/ns/activitystreams#Collection\\",\\"https://www.w3.org/ns/activitystreams#CollectionPage\\",\\"https://www.w3.org/ns/activitystreams#OrderedCollectionPage\\",\\"https://www.w3.org/ns/activitystreams#OrderedCollection\\",\\"https://www.w3.org/ns/activitystreams#Document\\",\\"https://www.w3.org/ns/activitystreams#Audio\\",\\"https://www.w3.org/ns/activitystreams#Image\\",\\"https://www.w3.org/ns/activitystreams#Page\\",\\"https://www.w3.org/ns/activitystreams#Video\\",\\"https://www.w3.org/ns/activitystreams#Event\\",\\"https://www.w3.org/ns/activitystreams#Group\\",\\"https://www.w3.org/ns/activitystreams#Note\\",\\"https://www.w3.org/ns/activitystreams#Organization\\",\\"https://www.w3.org/ns/activitystreams#Person\\",\\"https://www.w3.org/ns/activitystreams#Place\\",\\"https://www.w3.org/ns/activitystreams#Profile\\",\\"https://www.w3.org/ns/activitystreams#Relationship\\",\\"https://www.w3.org/ns/activitystreams#Service\\",\\"https://www.w3.org/ns/activitystreams#Tombstone\\"].some( t => v[\\"@type\\"].includes(t)) ? await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& [\\"https://www.w3.org/ns/activitystreams#Link\\",\\"https://www.w3.org/ns/activitystreams#Hashtag\\",\\"https://www.w3.org/ns/activitystreams#Mention\\"].some( t => v[\\"@type\\"].includes(t)) ? await Link.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -11076,12 +11080,12 @@ get urls(): ((URL | Link))[] { && Array.isArray(v[\\"@type\\"])&& [\\"https://www.w3.org/ns/activitystreams#Link\\",\\"https://www.w3.org/ns/activitystreams#Hashtag\\",\\"https://www.w3.org/ns/activitystreams#Mention\\"].some( t => v[\\"@type\\"].includes(t)) ? await Link.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& [\\"https://www.w3.org/ns/activitystreams#Object\\",\\"http://joinmastodon.org/ns#Emoji\\",\\"http://litepub.social/ns#ChatMessage\\",\\"https://gotosocial.org/ns#AnnounceAuthorization\\",\\"https://gotosocial.org/ns#LikeApproval\\",\\"https://gotosocial.org/ns#ReplyAuthorization\\",\\"https://w3id.org/fep/044f#QuoteAuthorization\\",\\"https://w3id.org/valueflows/ont/vf#Proposal\\",\\"https://www.w3.org/ns/activitystreams#Activity\\",\\"http://litepub.social/ns#EmojiReact\\",\\"https://gotosocial.org/ns#AnnounceRequest\\",\\"https://gotosocial.org/ns#LikeRequest\\",\\"https://gotosocial.org/ns#ReplyRequest\\",\\"https://w3id.org/fep/044f#QuoteRequest\\",\\"https://www.w3.org/ns/activitystreams#Accept\\",\\"https://www.w3.org/ns/activitystreams#TentativeAccept\\",\\"https://www.w3.org/ns/activitystreams#Add\\",\\"https://www.w3.org/ns/activitystreams#Announce\\",\\"https://www.w3.org/ns/activitystreams#Create\\",\\"https://www.w3.org/ns/activitystreams#Delete\\",\\"https://www.w3.org/ns/activitystreams#Dislike\\",\\"https://www.w3.org/ns/activitystreams#Flag\\",\\"https://www.w3.org/ns/activitystreams#Follow\\",\\"https://www.w3.org/ns/activitystreams#Ignore\\",\\"https://www.w3.org/ns/activitystreams#Block\\",\\"https://www.w3.org/ns/activitystreams#IntransitiveActivity\\",\\"https://www.w3.org/ns/activitystreams#Arrive\\",\\"https://www.w3.org/ns/activitystreams#Question\\",\\"https://www.w3.org/ns/activitystreams#Travel\\",\\"https://www.w3.org/ns/activitystreams#Join\\",\\"https://www.w3.org/ns/activitystreams#Leave\\",\\"https://www.w3.org/ns/activitystreams#Like\\",\\"https://www.w3.org/ns/activitystreams#Listen\\",\\"https://www.w3.org/ns/activitystreams#Move\\",\\"https://www.w3.org/ns/activitystreams#Offer\\",\\"https://www.w3.org/ns/activitystreams#Invite\\",\\"https://www.w3.org/ns/activitystreams#Read\\",\\"https://www.w3.org/ns/activitystreams#Reject\\",\\"https://www.w3.org/ns/activitystreams#TentativeReject\\",\\"https://www.w3.org/ns/activitystreams#Remove\\",\\"https://www.w3.org/ns/activitystreams#Undo\\",\\"https://www.w3.org/ns/activitystreams#Update\\",\\"https://www.w3.org/ns/activitystreams#View\\",\\"https://www.w3.org/ns/activitystreams#Application\\",\\"https://www.w3.org/ns/activitystreams#Article\\",\\"https://www.w3.org/ns/activitystreams#Collection\\",\\"https://www.w3.org/ns/activitystreams#CollectionPage\\",\\"https://www.w3.org/ns/activitystreams#OrderedCollectionPage\\",\\"https://www.w3.org/ns/activitystreams#OrderedCollection\\",\\"https://www.w3.org/ns/activitystreams#Document\\",\\"https://www.w3.org/ns/activitystreams#Audio\\",\\"https://www.w3.org/ns/activitystreams#Image\\",\\"https://www.w3.org/ns/activitystreams#Page\\",\\"https://www.w3.org/ns/activitystreams#Video\\",\\"https://www.w3.org/ns/activitystreams#Event\\",\\"https://www.w3.org/ns/activitystreams#Group\\",\\"https://www.w3.org/ns/activitystreams#Note\\",\\"https://www.w3.org/ns/activitystreams#Organization\\",\\"https://www.w3.org/ns/activitystreams#Person\\",\\"https://www.w3.org/ns/activitystreams#Place\\",\\"https://www.w3.org/ns/activitystreams#Profile\\",\\"https://www.w3.org/ns/activitystreams#Relationship\\",\\"https://www.w3.org/ns/activitystreams#Service\\",\\"https://www.w3.org/ns/activitystreams#Tombstone\\"].some( t => v[\\"@type\\"].includes(t)) ? await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -11138,7 +11142,7 @@ get urls(): ((URL | Link))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _7UpwM3JWcXhADcscukEehBorf6k_replies.push(decoded); @@ -11171,7 +11175,7 @@ get urls(): ((URL | Link))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _3kAfck9PcEYt2L7xug5y99YPbANs_shares.push(decoded); @@ -11204,7 +11208,7 @@ get urls(): ((URL | Link))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _S3ceDnpMdzoTRCccB9FkJWrEzYW_likes.push(decoded); @@ -11237,7 +11241,7 @@ get urls(): ((URL | Link))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _kMatyyNAuxoTD8GQMBfA5ogThMR_emojiReactions.push(decoded); @@ -11319,12 +11323,12 @@ get urls(): ((URL | Link))[] { && Array.isArray(v[\\"@type\\"])&& [\\"https://www.w3.org/ns/activitystreams#Object\\",\\"http://joinmastodon.org/ns#Emoji\\",\\"http://litepub.social/ns#ChatMessage\\",\\"https://gotosocial.org/ns#AnnounceAuthorization\\",\\"https://gotosocial.org/ns#LikeApproval\\",\\"https://gotosocial.org/ns#ReplyAuthorization\\",\\"https://w3id.org/fep/044f#QuoteAuthorization\\",\\"https://w3id.org/valueflows/ont/vf#Proposal\\",\\"https://www.w3.org/ns/activitystreams#Activity\\",\\"http://litepub.social/ns#EmojiReact\\",\\"https://gotosocial.org/ns#AnnounceRequest\\",\\"https://gotosocial.org/ns#LikeRequest\\",\\"https://gotosocial.org/ns#ReplyRequest\\",\\"https://w3id.org/fep/044f#QuoteRequest\\",\\"https://www.w3.org/ns/activitystreams#Accept\\",\\"https://www.w3.org/ns/activitystreams#TentativeAccept\\",\\"https://www.w3.org/ns/activitystreams#Add\\",\\"https://www.w3.org/ns/activitystreams#Announce\\",\\"https://www.w3.org/ns/activitystreams#Create\\",\\"https://www.w3.org/ns/activitystreams#Delete\\",\\"https://www.w3.org/ns/activitystreams#Dislike\\",\\"https://www.w3.org/ns/activitystreams#Flag\\",\\"https://www.w3.org/ns/activitystreams#Follow\\",\\"https://www.w3.org/ns/activitystreams#Ignore\\",\\"https://www.w3.org/ns/activitystreams#Block\\",\\"https://www.w3.org/ns/activitystreams#IntransitiveActivity\\",\\"https://www.w3.org/ns/activitystreams#Arrive\\",\\"https://www.w3.org/ns/activitystreams#Question\\",\\"https://www.w3.org/ns/activitystreams#Travel\\",\\"https://www.w3.org/ns/activitystreams#Join\\",\\"https://www.w3.org/ns/activitystreams#Leave\\",\\"https://www.w3.org/ns/activitystreams#Like\\",\\"https://www.w3.org/ns/activitystreams#Listen\\",\\"https://www.w3.org/ns/activitystreams#Move\\",\\"https://www.w3.org/ns/activitystreams#Offer\\",\\"https://www.w3.org/ns/activitystreams#Invite\\",\\"https://www.w3.org/ns/activitystreams#Read\\",\\"https://www.w3.org/ns/activitystreams#Reject\\",\\"https://www.w3.org/ns/activitystreams#TentativeReject\\",\\"https://www.w3.org/ns/activitystreams#Remove\\",\\"https://www.w3.org/ns/activitystreams#Undo\\",\\"https://www.w3.org/ns/activitystreams#Update\\",\\"https://www.w3.org/ns/activitystreams#View\\",\\"https://www.w3.org/ns/activitystreams#Application\\",\\"https://www.w3.org/ns/activitystreams#Article\\",\\"https://www.w3.org/ns/activitystreams#Collection\\",\\"https://www.w3.org/ns/activitystreams#CollectionPage\\",\\"https://www.w3.org/ns/activitystreams#OrderedCollectionPage\\",\\"https://www.w3.org/ns/activitystreams#OrderedCollection\\",\\"https://www.w3.org/ns/activitystreams#Document\\",\\"https://www.w3.org/ns/activitystreams#Audio\\",\\"https://www.w3.org/ns/activitystreams#Image\\",\\"https://www.w3.org/ns/activitystreams#Page\\",\\"https://www.w3.org/ns/activitystreams#Video\\",\\"https://www.w3.org/ns/activitystreams#Event\\",\\"https://www.w3.org/ns/activitystreams#Group\\",\\"https://www.w3.org/ns/activitystreams#Note\\",\\"https://www.w3.org/ns/activitystreams#Organization\\",\\"https://www.w3.org/ns/activitystreams#Person\\",\\"https://www.w3.org/ns/activitystreams#Place\\",\\"https://www.w3.org/ns/activitystreams#Profile\\",\\"https://www.w3.org/ns/activitystreams#Relationship\\",\\"https://www.w3.org/ns/activitystreams#Service\\",\\"https://www.w3.org/ns/activitystreams#Tombstone\\"].some( t => v[\\"@type\\"].includes(t)) ? await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& [\\"https://www.w3.org/ns/activitystreams#Link\\",\\"https://www.w3.org/ns/activitystreams#Hashtag\\",\\"https://www.w3.org/ns/activitystreams#Mention\\"].some( t => v[\\"@type\\"].includes(t)) ? await Link.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -11383,13 +11387,13 @@ get urls(): ((URL | Link))[] { : \\"\\" ) ) - : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) + : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) ? new URL(v[\\"@id\\"]) - : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"]))) : typeof v === \\"object\\" && \\"@type\\" in v + : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl))) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& [\\"https://www.w3.org/ns/activitystreams#Link\\",\\"https://www.w3.org/ns/activitystreams#Hashtag\\",\\"https://www.w3.org/ns/activitystreams#Mention\\"].some( t => v[\\"@type\\"].includes(t)) ? await Link.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -11424,7 +11428,7 @@ get urls(): ((URL | Link))[] { const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _3hFbw7DTpHhq3cvVhkY8njhcsXbd_to.push(decoded); @@ -11457,7 +11461,7 @@ get urls(): ((URL | Link))[] { const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _aLZupjwL8XB7tzdLgCMXdjZ6qej_bto.push(decoded); @@ -11490,7 +11494,7 @@ get urls(): ((URL | Link))[] { const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _42a1SvBs24QSLzKcfjCyNTjW5a1g_cc.push(decoded); @@ -11523,7 +11527,7 @@ get urls(): ((URL | Link))[] { const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _3qvegKUB8YLgTXRpEf8E6JZSkz2H_bcc.push(decoded); @@ -11598,7 +11602,7 @@ get urls(): ((URL | Link))[] { const decoded = await Source.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _2ZwCFoS787v8y8bXKjMoE6MAbrEB_source.push(decoded); @@ -11631,7 +11635,7 @@ get urls(): ((URL | Link))[] { const decoded = await DataIntegrityProof.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _42rPnotok1ivQ2RNCKNbeFJgx8b8_proof.push(decoded); @@ -11652,7 +11656,7 @@ get urls(): ((URL | Link))[] { const decoded = await InteractionPolicy.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _2MHQfh2N74MMmDLDqYWFo7TxYQK2_interactionPolicy.push(decoded); @@ -11684,9 +11688,9 @@ get urls(): ((URL | Link))[] { : \\"\\" ) ) - : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) + : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) ? new URL(v[\\"@id\\"]) - : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"]))); + : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl))); if (typeof decoded === \\"undefined\\") continue; _23YiVs2miQcEiUdn4u8SvjQKWYim_approvedBy.push(decoded); } @@ -11718,7 +11722,7 @@ get urls(): ((URL | Link))[] { const decoded = await LikeAuthorization.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _3fCeb5aXaDDd4fvkQ96BLWifBUBa_likeAuthorization.push(decoded); @@ -11751,7 +11755,7 @@ get urls(): ((URL | Link))[] { const decoded = await ReplyAuthorization.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _YA4wdUW7rYztAQ6SjhMnJCmcmtP_replyAuthorization.push(decoded); @@ -11784,7 +11788,7 @@ get urls(): ((URL | Link))[] { const decoded = await AnnounceAuthorization.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _446xEaDBs3Fz6MyzP3PSBaLupkbJ_announceAuthorization.push(decoded); @@ -14015,7 +14019,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote.push(decoded); @@ -14074,7 +14078,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await QuoteAuthorization.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization.push(decoded); @@ -17186,23 +17190,23 @@ instruments?: (Object | URL)[];} typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Application\\") ? await Application.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Group\\") ? await Group.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Organization\\") ? await Organization.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Person\\") ? await Person.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Service\\") ? await Service.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -17237,7 +17241,7 @@ instruments?: (Object | URL)[];} const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _2MH19yxjn1wnHsNfa5n4JBhJzxyc_object.push(decoded); @@ -17270,7 +17274,7 @@ instruments?: (Object | URL)[];} const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _3JQCmF2Ww56Ag9EWRYoSZRDNCYtF_target.push(decoded); @@ -17303,7 +17307,7 @@ instruments?: (Object | URL)[];} const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _u4QGFbRFcYmPEKGbPv1hpBR9r5G_result.push(decoded); @@ -17336,7 +17340,7 @@ instruments?: (Object | URL)[];} const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _25zu2s3VxVujgEKqrDycjE284XQR_origin.push(decoded); @@ -17369,7 +17373,7 @@ instruments?: (Object | URL)[];} const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _3c5t2x7DYRo2shwTxpkd4kYSS5WQ_instrument.push(decoded); @@ -19975,7 +19979,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject.push(decoded); @@ -20008,7 +20012,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget.push(decoded); @@ -20998,7 +21002,7 @@ canLike?: InteractionRule | null;canReply?: InteractionRule | null;canAnnounce?: const decoded = await InteractionRule.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _3JkwVLb3BNCwCWdsb5RftGAg8vyT_canLike.push(decoded); @@ -21019,7 +21023,7 @@ canLike?: InteractionRule | null;canReply?: InteractionRule | null;canAnnounce?: const decoded = await InteractionRule.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _2UBgLRi5p3DRGGvWyB227i4Qjhzd_canReply.push(decoded); @@ -21040,7 +21044,7 @@ canLike?: InteractionRule | null;canReply?: InteractionRule | null;canAnnounce?: const decoded = await InteractionRule.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _fu5nmoAj528fBQfnxhY9Daok3Vi_canAnnounce.push(decoded); @@ -21061,7 +21065,7 @@ canLike?: InteractionRule | null;canReply?: InteractionRule | null;canAnnounce?: const decoded = await InteractionRule.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _LE3zBTVacTZw2LSyLt4wVUkXeUy_canQuote.push(decoded); @@ -21757,9 +21761,9 @@ get manualApprovals(): (URL)[] { : \\"\\" ) ) - : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) + : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) ? new URL(v[\\"@id\\"]) - : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"]))); + : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl))); if (typeof decoded === \\"undefined\\") continue; _2rFyCF14HoyNjitj9PmCzek5iSsg_automaticApproval.push(decoded); } @@ -21790,9 +21794,9 @@ get manualApprovals(): (URL)[] { : \\"\\" ) ) - : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) + : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) ? new URL(v[\\"@id\\"]) - : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"]))); + : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl))); if (typeof decoded === \\"undefined\\") continue; _sxj8y5XMMMBWUnRYFw85MKedCMj_manualApproval.push(decoded); } @@ -22799,7 +22803,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject.push(decoded); @@ -22832,7 +22836,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget.push(decoded); @@ -24155,7 +24159,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject.push(decoded); @@ -24188,7 +24192,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget.push(decoded); @@ -25510,7 +25514,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject.push(decoded); @@ -25543,7 +25547,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget.push(decoded); @@ -26401,9 +26405,9 @@ get endpoints(): (URL)[] { : \\"\\" ) ) - : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) + : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) ? new URL(v[\\"@id\\"]) - : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"]))); + : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl))); if (typeof decoded === \\"undefined\\") continue; _2KM4fetG6FTJ1cphj76rzJ8Dyv7p_serviceEndpoint.push(decoded); } @@ -27587,7 +27591,7 @@ cryptosuite?: \\"eddsa-jcs-2022\\" | null;verificationMethod?: Multikey | URL | const decoded = await Multikey.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _2mHVKxqA7zncjveJrDEo3pWpMZqg_verificationMethod.push(decoded); @@ -28538,23 +28542,23 @@ owner?: Application | Group | Organization | Person | Service | URL | null;publi typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Application\\") ? await Application.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Group\\") ? await Group.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Organization\\") ? await Organization.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Person\\") ? await Person.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Service\\") ? await Service.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -29418,23 +29422,23 @@ controller?: Application | Group | Organization | Person | Service | URL | null; typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Application\\") ? await Application.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Group\\") ? await Group.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Organization\\") ? await Organization.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Person\\") ? await Person.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Service\\") ? await Service.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -30268,9 +30272,9 @@ action?: string | null;resourceConformsTo?: URL | null;resourceQuantity?: Measur : \\"\\" ) ) - : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) + : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) ? new URL(v[\\"@id\\"]) - : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"]))); + : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl))); if (typeof decoded === \\"undefined\\") continue; _BBAeMUUQDwBQn6cvu3P2Csd6b6h_resourceConformsTo.push(decoded); } @@ -30290,7 +30294,7 @@ action?: string | null;resourceConformsTo?: URL | null;resourceQuantity?: Measur const decoded = await Measure.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _2dLfqTbbRiggEcMQWbHpxkQrtmrc_resourceQuantity.push(decoded); @@ -30311,7 +30315,7 @@ action?: string | null;resourceConformsTo?: URL | null;resourceQuantity?: Measur const decoded = await Measure.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _YmNSnuih3Zk4VdR5JPVnQYroLAh_availableQuantity.push(decoded); @@ -30332,7 +30336,7 @@ action?: string | null;resourceConformsTo?: URL | null;resourceQuantity?: Measur const decoded = await Measure.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _3XueAFds2NBrqNpnV8b7aC8hV72S_minimumQuantity.push(decoded); @@ -31134,7 +31138,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Intent.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _sS5LvXX8cn4c3x6ux836AwYbTyJ_publishes.push(decoded); @@ -31155,7 +31159,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Intent.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _Z4ntJgFwR9BaNTbFvkRTGNEwUwy_reciprocal.push(decoded); @@ -37867,7 +37871,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await CryptographicKey.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _axq166E2eZADq34V4MYUc8KMZdC_publicKey.push(decoded); @@ -37900,7 +37904,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Multikey.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.push(decoded); @@ -37953,11 +37957,11 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#OrderedCollection\\") ? await OrderedCollection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#OrderedCollectionPage\\") ? await OrderedCollectionPage.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -37994,11 +37998,11 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#OrderedCollection\\") ? await OrderedCollection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#OrderedCollectionPage\\") ? await OrderedCollectionPage.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -38033,7 +38037,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _3yAv8jymNfNuJUDuBzJ1NQhdbAee_following.push(decoded); @@ -38066,7 +38070,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _BBCTgfphhsFzpVfKTykGSpBNwoA_followers.push(decoded); @@ -38099,7 +38103,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _3bgkPwJanyTCoVFM9ovRcus8tKkU_liked.push(decoded); @@ -38132,7 +38136,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _4N1vBJzXDf8NbBumeECQMFvKetja_featured.push(decoded); @@ -38165,7 +38169,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags.push(decoded); @@ -38198,7 +38202,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.push(decoded); @@ -38219,7 +38223,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Endpoints.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints.push(decoded); @@ -38326,23 +38330,23 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Application\\") ? await Application.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Group\\") ? await Group.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Organization\\") ? await Organization.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Person\\") ? await Person.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Service\\") ? await Service.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -38379,23 +38383,23 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Application\\") ? await Application.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Group\\") ? await Group.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Organization\\") ? await Organization.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Person\\") ? await Person.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Service\\") ? await Service.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -38430,7 +38434,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await DidService.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.push(decoded); @@ -40650,7 +40654,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote.push(decoded); @@ -40709,7 +40713,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await QuoteAuthorization.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization.push(decoded); @@ -46247,7 +46251,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await CollectionPage.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _3UyUdxnyn6cDn53QKrh4MBiearma_current.push(decoded); @@ -46280,7 +46284,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await CollectionPage.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _J52RqweMe6hhv7RnLJMC8BExTE5_first.push(decoded); @@ -46313,7 +46317,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await CollectionPage.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _gyJJnyEFnuNVi1HFZKfAn3Hfn26_last.push(decoded); @@ -46349,12 +46353,12 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu && Array.isArray(v[\\"@type\\"])&& [\\"https://www.w3.org/ns/activitystreams#Object\\",\\"http://joinmastodon.org/ns#Emoji\\",\\"http://litepub.social/ns#ChatMessage\\",\\"https://gotosocial.org/ns#AnnounceAuthorization\\",\\"https://gotosocial.org/ns#LikeApproval\\",\\"https://gotosocial.org/ns#ReplyAuthorization\\",\\"https://w3id.org/fep/044f#QuoteAuthorization\\",\\"https://w3id.org/valueflows/ont/vf#Proposal\\",\\"https://www.w3.org/ns/activitystreams#Activity\\",\\"http://litepub.social/ns#EmojiReact\\",\\"https://gotosocial.org/ns#AnnounceRequest\\",\\"https://gotosocial.org/ns#LikeRequest\\",\\"https://gotosocial.org/ns#ReplyRequest\\",\\"https://w3id.org/fep/044f#QuoteRequest\\",\\"https://www.w3.org/ns/activitystreams#Accept\\",\\"https://www.w3.org/ns/activitystreams#TentativeAccept\\",\\"https://www.w3.org/ns/activitystreams#Add\\",\\"https://www.w3.org/ns/activitystreams#Announce\\",\\"https://www.w3.org/ns/activitystreams#Create\\",\\"https://www.w3.org/ns/activitystreams#Delete\\",\\"https://www.w3.org/ns/activitystreams#Dislike\\",\\"https://www.w3.org/ns/activitystreams#Flag\\",\\"https://www.w3.org/ns/activitystreams#Follow\\",\\"https://www.w3.org/ns/activitystreams#Ignore\\",\\"https://www.w3.org/ns/activitystreams#Block\\",\\"https://www.w3.org/ns/activitystreams#IntransitiveActivity\\",\\"https://www.w3.org/ns/activitystreams#Arrive\\",\\"https://www.w3.org/ns/activitystreams#Question\\",\\"https://www.w3.org/ns/activitystreams#Travel\\",\\"https://www.w3.org/ns/activitystreams#Join\\",\\"https://www.w3.org/ns/activitystreams#Leave\\",\\"https://www.w3.org/ns/activitystreams#Like\\",\\"https://www.w3.org/ns/activitystreams#Listen\\",\\"https://www.w3.org/ns/activitystreams#Move\\",\\"https://www.w3.org/ns/activitystreams#Offer\\",\\"https://www.w3.org/ns/activitystreams#Invite\\",\\"https://www.w3.org/ns/activitystreams#Read\\",\\"https://www.w3.org/ns/activitystreams#Reject\\",\\"https://www.w3.org/ns/activitystreams#TentativeReject\\",\\"https://www.w3.org/ns/activitystreams#Remove\\",\\"https://www.w3.org/ns/activitystreams#Undo\\",\\"https://www.w3.org/ns/activitystreams#Update\\",\\"https://www.w3.org/ns/activitystreams#View\\",\\"https://www.w3.org/ns/activitystreams#Application\\",\\"https://www.w3.org/ns/activitystreams#Article\\",\\"https://www.w3.org/ns/activitystreams#Collection\\",\\"https://www.w3.org/ns/activitystreams#CollectionPage\\",\\"https://www.w3.org/ns/activitystreams#OrderedCollectionPage\\",\\"https://www.w3.org/ns/activitystreams#OrderedCollection\\",\\"https://www.w3.org/ns/activitystreams#Document\\",\\"https://www.w3.org/ns/activitystreams#Audio\\",\\"https://www.w3.org/ns/activitystreams#Image\\",\\"https://www.w3.org/ns/activitystreams#Page\\",\\"https://www.w3.org/ns/activitystreams#Video\\",\\"https://www.w3.org/ns/activitystreams#Event\\",\\"https://www.w3.org/ns/activitystreams#Group\\",\\"https://www.w3.org/ns/activitystreams#Note\\",\\"https://www.w3.org/ns/activitystreams#Organization\\",\\"https://www.w3.org/ns/activitystreams#Person\\",\\"https://www.w3.org/ns/activitystreams#Place\\",\\"https://www.w3.org/ns/activitystreams#Profile\\",\\"https://www.w3.org/ns/activitystreams#Relationship\\",\\"https://www.w3.org/ns/activitystreams#Service\\",\\"https://www.w3.org/ns/activitystreams#Tombstone\\"].some( t => v[\\"@type\\"].includes(t)) ? await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& [\\"https://www.w3.org/ns/activitystreams#Link\\",\\"https://www.w3.org/ns/activitystreams#Hashtag\\",\\"https://www.w3.org/ns/activitystreams#Mention\\"].some( t => v[\\"@type\\"].includes(t)) ? await Link.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -46389,7 +46393,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _4TB9Qd9ddtcZEpMfzbHhzafE6jaJ_likesOf.push(decoded); @@ -46422,7 +46426,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _3manzgeKiPsugpztKGiaUUwJ3ito_sharesOf.push(decoded); @@ -46455,7 +46459,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _3T3oGm3twpcQUcrnMisXQtmDZ32X_repliesOf.push(decoded); @@ -46488,7 +46492,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _2bvRkAFZjMfVD8jiUWZJr5YokSeN_inboxOf.push(decoded); @@ -46521,7 +46525,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _4AHzVZDxHjK6uEWa9UiKHGK34yYm_outboxOf.push(decoded); @@ -46554,7 +46558,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _41aoZ5M6yRUHy3Zx8q6iuZQxtopb_followersOf.push(decoded); @@ -46587,7 +46591,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _2nXT2Ah42UjEEQF5oJQ39CbKB1xj_followingOf.push(decoded); @@ -46620,7 +46624,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _2bsySzmT3qEZcrnoe3tZ5xBjXSju_likedOf.push(decoded); @@ -48102,7 +48106,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _2kWgBhQKjEauxx8C6qF3ZQamK4Le_partOf.push(decoded); @@ -48135,7 +48139,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await CollectionPage.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _3BT4kQLcXhHx7TAWaNDKh8nFn9eY_next.push(decoded); @@ -48168,7 +48172,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await CollectionPage.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _3b8yG8tDNzQFFEnWhCc13G8eHooA_prev.push(decoded); @@ -50047,9 +50051,9 @@ proxyUrl?: URL | null;oauthAuthorizationEndpoint?: URL | null;oauthTokenEndpoint : \\"\\" ) ) - : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) + : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) ? new URL(v[\\"@id\\"]) - : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"]))); + : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl))); if (typeof decoded === \\"undefined\\") continue; _2JCYDbSxEHCCLdBYed33cCETfGyR_proxyUrl.push(decoded); } @@ -50080,9 +50084,9 @@ proxyUrl?: URL | null;oauthAuthorizationEndpoint?: URL | null;oauthTokenEndpoint : \\"\\" ) ) - : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) + : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) ? new URL(v[\\"@id\\"]) - : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"]))); + : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl))); if (typeof decoded === \\"undefined\\") continue; _25S6UmgzDead8hxL5sQFezZTAusd_oauthAuthorizationEndpoint.push(decoded); } @@ -50113,9 +50117,9 @@ proxyUrl?: URL | null;oauthAuthorizationEndpoint?: URL | null;oauthTokenEndpoint : \\"\\" ) ) - : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) + : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) ? new URL(v[\\"@id\\"]) - : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"]))); + : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl))); if (typeof decoded === \\"undefined\\") continue; _iAMxqrSba7yBCRB1FZ5kEVdKEZ3_oauthTokenEndpoint.push(decoded); } @@ -50146,9 +50150,9 @@ proxyUrl?: URL | null;oauthAuthorizationEndpoint?: URL | null;oauthTokenEndpoint : \\"\\" ) ) - : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) + : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) ? new URL(v[\\"@id\\"]) - : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"]))); + : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl))); if (typeof decoded === \\"undefined\\") continue; _8Bx9qN8oU7Bpt2xi6khaxWp1gMr_provideClientKey.push(decoded); } @@ -50179,9 +50183,9 @@ proxyUrl?: URL | null;oauthAuthorizationEndpoint?: URL | null;oauthTokenEndpoint : \\"\\" ) ) - : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) + : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) ? new URL(v[\\"@id\\"]) - : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"]))); + : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl))); if (typeof decoded === \\"undefined\\") continue; _3dU7PMVQZJpsCpo2F4RQXxBXdPmS_signClientKey.push(decoded); } @@ -50212,9 +50216,9 @@ proxyUrl?: URL | null;oauthAuthorizationEndpoint?: URL | null;oauthTokenEndpoint : \\"\\" ) ) - : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) + : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) ? new URL(v[\\"@id\\"]) - : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"]))); + : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl))); if (typeof decoded === \\"undefined\\") continue; _3JprUSDLVqqX4dwHRi37qGZZCRCc_sharedInbox.push(decoded); } @@ -56960,7 +56964,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await CryptographicKey.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _axq166E2eZADq34V4MYUc8KMZdC_publicKey.push(decoded); @@ -56993,7 +56997,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Multikey.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.push(decoded); @@ -57046,11 +57050,11 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#OrderedCollection\\") ? await OrderedCollection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#OrderedCollectionPage\\") ? await OrderedCollectionPage.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -57087,11 +57091,11 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#OrderedCollection\\") ? await OrderedCollection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#OrderedCollectionPage\\") ? await OrderedCollectionPage.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -57126,7 +57130,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _3yAv8jymNfNuJUDuBzJ1NQhdbAee_following.push(decoded); @@ -57159,7 +57163,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _BBCTgfphhsFzpVfKTykGSpBNwoA_followers.push(decoded); @@ -57192,7 +57196,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _3bgkPwJanyTCoVFM9ovRcus8tKkU_liked.push(decoded); @@ -57225,7 +57229,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _4N1vBJzXDf8NbBumeECQMFvKetja_featured.push(decoded); @@ -57258,7 +57262,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags.push(decoded); @@ -57291,7 +57295,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.push(decoded); @@ -57312,7 +57316,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Endpoints.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints.push(decoded); @@ -57419,23 +57423,23 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Application\\") ? await Application.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Group\\") ? await Group.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Organization\\") ? await Organization.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Person\\") ? await Person.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Service\\") ? await Service.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -57472,23 +57476,23 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Application\\") ? await Application.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Group\\") ? await Group.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Organization\\") ? await Organization.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Person\\") ? await Person.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Service\\") ? await Service.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -57523,7 +57527,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await DidService.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.push(decoded); @@ -59369,9 +59373,9 @@ get names(): ((string | LanguageString))[] { : \\"\\" ) ) - : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) + : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) ? new URL(v[\\"@id\\"]) - : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"]))); + : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl))); if (typeof decoded === \\"undefined\\") continue; _pVjLsybKQdmkjuU7MHjiVmNnuj7_href.push(decoded); } @@ -59520,12 +59524,12 @@ get names(): ((string | LanguageString))[] { && Array.isArray(v[\\"@type\\"])&& [\\"https://www.w3.org/ns/activitystreams#Link\\",\\"https://www.w3.org/ns/activitystreams#Hashtag\\",\\"https://www.w3.org/ns/activitystreams#Mention\\"].some( t => v[\\"@type\\"].includes(t)) ? await Link.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& [\\"https://www.w3.org/ns/activitystreams#Object\\",\\"http://joinmastodon.org/ns#Emoji\\",\\"http://litepub.social/ns#ChatMessage\\",\\"https://gotosocial.org/ns#AnnounceAuthorization\\",\\"https://gotosocial.org/ns#LikeApproval\\",\\"https://gotosocial.org/ns#ReplyAuthorization\\",\\"https://w3id.org/fep/044f#QuoteAuthorization\\",\\"https://w3id.org/valueflows/ont/vf#Proposal\\",\\"https://www.w3.org/ns/activitystreams#Activity\\",\\"http://litepub.social/ns#EmojiReact\\",\\"https://gotosocial.org/ns#AnnounceRequest\\",\\"https://gotosocial.org/ns#LikeRequest\\",\\"https://gotosocial.org/ns#ReplyRequest\\",\\"https://w3id.org/fep/044f#QuoteRequest\\",\\"https://www.w3.org/ns/activitystreams#Accept\\",\\"https://www.w3.org/ns/activitystreams#TentativeAccept\\",\\"https://www.w3.org/ns/activitystreams#Add\\",\\"https://www.w3.org/ns/activitystreams#Announce\\",\\"https://www.w3.org/ns/activitystreams#Create\\",\\"https://www.w3.org/ns/activitystreams#Delete\\",\\"https://www.w3.org/ns/activitystreams#Dislike\\",\\"https://www.w3.org/ns/activitystreams#Flag\\",\\"https://www.w3.org/ns/activitystreams#Follow\\",\\"https://www.w3.org/ns/activitystreams#Ignore\\",\\"https://www.w3.org/ns/activitystreams#Block\\",\\"https://www.w3.org/ns/activitystreams#IntransitiveActivity\\",\\"https://www.w3.org/ns/activitystreams#Arrive\\",\\"https://www.w3.org/ns/activitystreams#Question\\",\\"https://www.w3.org/ns/activitystreams#Travel\\",\\"https://www.w3.org/ns/activitystreams#Join\\",\\"https://www.w3.org/ns/activitystreams#Leave\\",\\"https://www.w3.org/ns/activitystreams#Like\\",\\"https://www.w3.org/ns/activitystreams#Listen\\",\\"https://www.w3.org/ns/activitystreams#Move\\",\\"https://www.w3.org/ns/activitystreams#Offer\\",\\"https://www.w3.org/ns/activitystreams#Invite\\",\\"https://www.w3.org/ns/activitystreams#Read\\",\\"https://www.w3.org/ns/activitystreams#Reject\\",\\"https://www.w3.org/ns/activitystreams#TentativeReject\\",\\"https://www.w3.org/ns/activitystreams#Remove\\",\\"https://www.w3.org/ns/activitystreams#Undo\\",\\"https://www.w3.org/ns/activitystreams#Update\\",\\"https://www.w3.org/ns/activitystreams#View\\",\\"https://www.w3.org/ns/activitystreams#Application\\",\\"https://www.w3.org/ns/activitystreams#Article\\",\\"https://www.w3.org/ns/activitystreams#Collection\\",\\"https://www.w3.org/ns/activitystreams#CollectionPage\\",\\"https://www.w3.org/ns/activitystreams#OrderedCollectionPage\\",\\"https://www.w3.org/ns/activitystreams#OrderedCollection\\",\\"https://www.w3.org/ns/activitystreams#Document\\",\\"https://www.w3.org/ns/activitystreams#Audio\\",\\"https://www.w3.org/ns/activitystreams#Image\\",\\"https://www.w3.org/ns/activitystreams#Page\\",\\"https://www.w3.org/ns/activitystreams#Video\\",\\"https://www.w3.org/ns/activitystreams#Event\\",\\"https://www.w3.org/ns/activitystreams#Group\\",\\"https://www.w3.org/ns/activitystreams#Note\\",\\"https://www.w3.org/ns/activitystreams#Organization\\",\\"https://www.w3.org/ns/activitystreams#Person\\",\\"https://www.w3.org/ns/activitystreams#Place\\",\\"https://www.w3.org/ns/activitystreams#Profile\\",\\"https://www.w3.org/ns/activitystreams#Relationship\\",\\"https://www.w3.org/ns/activitystreams#Service\\",\\"https://www.w3.org/ns/activitystreams#Tombstone\\"].some( t => v[\\"@type\\"].includes(t)) ? await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -64026,7 +64030,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote.push(decoded); @@ -64085,7 +64089,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await QuoteAuthorization.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization.push(decoded); @@ -64827,12 +64831,12 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu && Array.isArray(v[\\"@type\\"])&& [\\"https://www.w3.org/ns/activitystreams#Object\\",\\"http://joinmastodon.org/ns#Emoji\\",\\"http://litepub.social/ns#ChatMessage\\",\\"https://gotosocial.org/ns#AnnounceAuthorization\\",\\"https://gotosocial.org/ns#LikeApproval\\",\\"https://gotosocial.org/ns#ReplyAuthorization\\",\\"https://w3id.org/fep/044f#QuoteAuthorization\\",\\"https://w3id.org/valueflows/ont/vf#Proposal\\",\\"https://www.w3.org/ns/activitystreams#Activity\\",\\"http://litepub.social/ns#EmojiReact\\",\\"https://gotosocial.org/ns#AnnounceRequest\\",\\"https://gotosocial.org/ns#LikeRequest\\",\\"https://gotosocial.org/ns#ReplyRequest\\",\\"https://w3id.org/fep/044f#QuoteRequest\\",\\"https://www.w3.org/ns/activitystreams#Accept\\",\\"https://www.w3.org/ns/activitystreams#TentativeAccept\\",\\"https://www.w3.org/ns/activitystreams#Add\\",\\"https://www.w3.org/ns/activitystreams#Announce\\",\\"https://www.w3.org/ns/activitystreams#Create\\",\\"https://www.w3.org/ns/activitystreams#Delete\\",\\"https://www.w3.org/ns/activitystreams#Dislike\\",\\"https://www.w3.org/ns/activitystreams#Flag\\",\\"https://www.w3.org/ns/activitystreams#Follow\\",\\"https://www.w3.org/ns/activitystreams#Ignore\\",\\"https://www.w3.org/ns/activitystreams#Block\\",\\"https://www.w3.org/ns/activitystreams#IntransitiveActivity\\",\\"https://www.w3.org/ns/activitystreams#Arrive\\",\\"https://www.w3.org/ns/activitystreams#Question\\",\\"https://www.w3.org/ns/activitystreams#Travel\\",\\"https://www.w3.org/ns/activitystreams#Join\\",\\"https://www.w3.org/ns/activitystreams#Leave\\",\\"https://www.w3.org/ns/activitystreams#Like\\",\\"https://www.w3.org/ns/activitystreams#Listen\\",\\"https://www.w3.org/ns/activitystreams#Move\\",\\"https://www.w3.org/ns/activitystreams#Offer\\",\\"https://www.w3.org/ns/activitystreams#Invite\\",\\"https://www.w3.org/ns/activitystreams#Read\\",\\"https://www.w3.org/ns/activitystreams#Reject\\",\\"https://www.w3.org/ns/activitystreams#TentativeReject\\",\\"https://www.w3.org/ns/activitystreams#Remove\\",\\"https://www.w3.org/ns/activitystreams#Undo\\",\\"https://www.w3.org/ns/activitystreams#Update\\",\\"https://www.w3.org/ns/activitystreams#View\\",\\"https://www.w3.org/ns/activitystreams#Application\\",\\"https://www.w3.org/ns/activitystreams#Article\\",\\"https://www.w3.org/ns/activitystreams#Collection\\",\\"https://www.w3.org/ns/activitystreams#CollectionPage\\",\\"https://www.w3.org/ns/activitystreams#OrderedCollectionPage\\",\\"https://www.w3.org/ns/activitystreams#OrderedCollection\\",\\"https://www.w3.org/ns/activitystreams#Document\\",\\"https://www.w3.org/ns/activitystreams#Audio\\",\\"https://www.w3.org/ns/activitystreams#Image\\",\\"https://www.w3.org/ns/activitystreams#Page\\",\\"https://www.w3.org/ns/activitystreams#Video\\",\\"https://www.w3.org/ns/activitystreams#Event\\",\\"https://www.w3.org/ns/activitystreams#Group\\",\\"https://www.w3.org/ns/activitystreams#Note\\",\\"https://www.w3.org/ns/activitystreams#Organization\\",\\"https://www.w3.org/ns/activitystreams#Person\\",\\"https://www.w3.org/ns/activitystreams#Place\\",\\"https://www.w3.org/ns/activitystreams#Profile\\",\\"https://www.w3.org/ns/activitystreams#Relationship\\",\\"https://www.w3.org/ns/activitystreams#Service\\",\\"https://www.w3.org/ns/activitystreams#Tombstone\\"].some( t => v[\\"@type\\"].includes(t)) ? await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& [\\"https://www.w3.org/ns/activitystreams#Link\\",\\"https://www.w3.org/ns/activitystreams#Hashtag\\",\\"https://www.w3.org/ns/activitystreams#Mention\\"].some( t => v[\\"@type\\"].includes(t)) ? await Link.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -65615,12 +65619,12 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu && Array.isArray(v[\\"@type\\"])&& [\\"https://www.w3.org/ns/activitystreams#Object\\",\\"http://joinmastodon.org/ns#Emoji\\",\\"http://litepub.social/ns#ChatMessage\\",\\"https://gotosocial.org/ns#AnnounceAuthorization\\",\\"https://gotosocial.org/ns#LikeApproval\\",\\"https://gotosocial.org/ns#ReplyAuthorization\\",\\"https://w3id.org/fep/044f#QuoteAuthorization\\",\\"https://w3id.org/valueflows/ont/vf#Proposal\\",\\"https://www.w3.org/ns/activitystreams#Activity\\",\\"http://litepub.social/ns#EmojiReact\\",\\"https://gotosocial.org/ns#AnnounceRequest\\",\\"https://gotosocial.org/ns#LikeRequest\\",\\"https://gotosocial.org/ns#ReplyRequest\\",\\"https://w3id.org/fep/044f#QuoteRequest\\",\\"https://www.w3.org/ns/activitystreams#Accept\\",\\"https://www.w3.org/ns/activitystreams#TentativeAccept\\",\\"https://www.w3.org/ns/activitystreams#Add\\",\\"https://www.w3.org/ns/activitystreams#Announce\\",\\"https://www.w3.org/ns/activitystreams#Create\\",\\"https://www.w3.org/ns/activitystreams#Delete\\",\\"https://www.w3.org/ns/activitystreams#Dislike\\",\\"https://www.w3.org/ns/activitystreams#Flag\\",\\"https://www.w3.org/ns/activitystreams#Follow\\",\\"https://www.w3.org/ns/activitystreams#Ignore\\",\\"https://www.w3.org/ns/activitystreams#Block\\",\\"https://www.w3.org/ns/activitystreams#IntransitiveActivity\\",\\"https://www.w3.org/ns/activitystreams#Arrive\\",\\"https://www.w3.org/ns/activitystreams#Question\\",\\"https://www.w3.org/ns/activitystreams#Travel\\",\\"https://www.w3.org/ns/activitystreams#Join\\",\\"https://www.w3.org/ns/activitystreams#Leave\\",\\"https://www.w3.org/ns/activitystreams#Like\\",\\"https://www.w3.org/ns/activitystreams#Listen\\",\\"https://www.w3.org/ns/activitystreams#Move\\",\\"https://www.w3.org/ns/activitystreams#Offer\\",\\"https://www.w3.org/ns/activitystreams#Invite\\",\\"https://www.w3.org/ns/activitystreams#Read\\",\\"https://www.w3.org/ns/activitystreams#Reject\\",\\"https://www.w3.org/ns/activitystreams#TentativeReject\\",\\"https://www.w3.org/ns/activitystreams#Remove\\",\\"https://www.w3.org/ns/activitystreams#Undo\\",\\"https://www.w3.org/ns/activitystreams#Update\\",\\"https://www.w3.org/ns/activitystreams#View\\",\\"https://www.w3.org/ns/activitystreams#Application\\",\\"https://www.w3.org/ns/activitystreams#Article\\",\\"https://www.w3.org/ns/activitystreams#Collection\\",\\"https://www.w3.org/ns/activitystreams#CollectionPage\\",\\"https://www.w3.org/ns/activitystreams#OrderedCollectionPage\\",\\"https://www.w3.org/ns/activitystreams#OrderedCollection\\",\\"https://www.w3.org/ns/activitystreams#Document\\",\\"https://www.w3.org/ns/activitystreams#Audio\\",\\"https://www.w3.org/ns/activitystreams#Image\\",\\"https://www.w3.org/ns/activitystreams#Page\\",\\"https://www.w3.org/ns/activitystreams#Video\\",\\"https://www.w3.org/ns/activitystreams#Event\\",\\"https://www.w3.org/ns/activitystreams#Group\\",\\"https://www.w3.org/ns/activitystreams#Note\\",\\"https://www.w3.org/ns/activitystreams#Organization\\",\\"https://www.w3.org/ns/activitystreams#Person\\",\\"https://www.w3.org/ns/activitystreams#Place\\",\\"https://www.w3.org/ns/activitystreams#Profile\\",\\"https://www.w3.org/ns/activitystreams#Relationship\\",\\"https://www.w3.org/ns/activitystreams#Service\\",\\"https://www.w3.org/ns/activitystreams#Tombstone\\"].some( t => v[\\"@type\\"].includes(t)) ? await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& [\\"https://www.w3.org/ns/activitystreams#Link\\",\\"https://www.w3.org/ns/activitystreams#Hashtag\\",\\"https://www.w3.org/ns/activitystreams#Mention\\"].some( t => v[\\"@type\\"].includes(t)) ? await Link.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -71286,7 +71290,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await CryptographicKey.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _axq166E2eZADq34V4MYUc8KMZdC_publicKey.push(decoded); @@ -71319,7 +71323,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Multikey.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.push(decoded); @@ -71372,11 +71376,11 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#OrderedCollection\\") ? await OrderedCollection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#OrderedCollectionPage\\") ? await OrderedCollectionPage.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -71413,11 +71417,11 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#OrderedCollection\\") ? await OrderedCollection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#OrderedCollectionPage\\") ? await OrderedCollectionPage.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -71452,7 +71456,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _3yAv8jymNfNuJUDuBzJ1NQhdbAee_following.push(decoded); @@ -71485,7 +71489,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _BBCTgfphhsFzpVfKTykGSpBNwoA_followers.push(decoded); @@ -71518,7 +71522,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _3bgkPwJanyTCoVFM9ovRcus8tKkU_liked.push(decoded); @@ -71551,7 +71555,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _4N1vBJzXDf8NbBumeECQMFvKetja_featured.push(decoded); @@ -71584,7 +71588,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags.push(decoded); @@ -71617,7 +71621,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.push(decoded); @@ -71638,7 +71642,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Endpoints.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints.push(decoded); @@ -71745,23 +71749,23 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Application\\") ? await Application.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Group\\") ? await Group.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Organization\\") ? await Organization.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Person\\") ? await Person.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Service\\") ? await Service.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -71798,23 +71802,23 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Application\\") ? await Application.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Group\\") ? await Group.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Organization\\") ? await Organization.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Person\\") ? await Person.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Service\\") ? await Service.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -71849,7 +71853,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await DidService.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.push(decoded); @@ -78298,7 +78302,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await CryptographicKey.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _axq166E2eZADq34V4MYUc8KMZdC_publicKey.push(decoded); @@ -78331,7 +78335,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Multikey.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.push(decoded); @@ -78384,11 +78388,11 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#OrderedCollection\\") ? await OrderedCollection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#OrderedCollectionPage\\") ? await OrderedCollectionPage.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -78425,11 +78429,11 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#OrderedCollection\\") ? await OrderedCollection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#OrderedCollectionPage\\") ? await OrderedCollectionPage.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -78464,7 +78468,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _3yAv8jymNfNuJUDuBzJ1NQhdbAee_following.push(decoded); @@ -78497,7 +78501,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _BBCTgfphhsFzpVfKTykGSpBNwoA_followers.push(decoded); @@ -78530,7 +78534,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _3bgkPwJanyTCoVFM9ovRcus8tKkU_liked.push(decoded); @@ -78563,7 +78567,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _4N1vBJzXDf8NbBumeECQMFvKetja_featured.push(decoded); @@ -78596,7 +78600,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags.push(decoded); @@ -78629,7 +78633,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.push(decoded); @@ -78650,7 +78654,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Endpoints.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints.push(decoded); @@ -78757,23 +78761,23 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Application\\") ? await Application.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Group\\") ? await Group.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Organization\\") ? await Organization.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Person\\") ? await Person.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Service\\") ? await Service.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -78810,23 +78814,23 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Application\\") ? await Application.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Group\\") ? await Group.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Organization\\") ? await Organization.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Person\\") ? await Person.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Service\\") ? await Service.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -78861,7 +78865,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await DidService.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.push(decoded); @@ -80288,9 +80292,9 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu : \\"\\" ) ) - : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) + : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) ? new URL(v[\\"@id\\"]) - : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"]))) : undefined + : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl))) : undefined ; if (typeof decoded === \\"undefined\\") continue; _oKrwxU4V8wiKhMW1QEYQibcJh8c_units.push(decoded); @@ -81068,7 +81072,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _3CLQ1PLSXrhSQbTGGHuxNyaEFKM1_describes.push(decoded); @@ -82731,7 +82735,7 @@ instruments?: (Object | URL)[];exclusiveOptions?: (Object | URL)[];inclusiveOpti const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _2N5scKaVEcdYHFmfKYYacAwUhUgQ_oneOf.push(decoded); @@ -82764,7 +82768,7 @@ instruments?: (Object | URL)[];exclusiveOptions?: (Object | URL)[];inclusiveOpti const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _2mV6isMTPRKbWdLCjcpiEysq5dAY_anyOf.push(decoded); @@ -82846,7 +82850,7 @@ instruments?: (Object | URL)[];exclusiveOptions?: (Object | URL)[];inclusiveOpti const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote.push(decoded); @@ -82905,7 +82909,7 @@ instruments?: (Object | URL)[];exclusiveOptions?: (Object | URL)[];inclusiveOpti const decoded = await QuoteAuthorization.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization.push(decoded); @@ -85255,7 +85259,7 @@ relationships?: (Object | URL)[];} const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _2Zqdmi46ZnDQsECS6mzwhrv3rUKq_subject.push(decoded); @@ -85288,7 +85292,7 @@ relationships?: (Object | URL)[];} const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _2MH19yxjn1wnHsNfa5n4JBhJzxyc_object.push(decoded); @@ -85321,7 +85325,7 @@ relationships?: (Object | URL)[];} const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _4Lzz89F9qipAQSGkWyX9DGWiUojG_relationship.push(decoded); @@ -91331,7 +91335,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await CryptographicKey.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _axq166E2eZADq34V4MYUc8KMZdC_publicKey.push(decoded); @@ -91364,7 +91368,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Multikey.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.push(decoded); @@ -91417,11 +91421,11 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#OrderedCollection\\") ? await OrderedCollection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#OrderedCollectionPage\\") ? await OrderedCollectionPage.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -91458,11 +91462,11 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#OrderedCollection\\") ? await OrderedCollection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#OrderedCollectionPage\\") ? await OrderedCollectionPage.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -91497,7 +91501,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _3yAv8jymNfNuJUDuBzJ1NQhdbAee_following.push(decoded); @@ -91530,7 +91534,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _BBCTgfphhsFzpVfKTykGSpBNwoA_followers.push(decoded); @@ -91563,7 +91567,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _3bgkPwJanyTCoVFM9ovRcus8tKkU_liked.push(decoded); @@ -91596,7 +91600,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _4N1vBJzXDf8NbBumeECQMFvKetja_featured.push(decoded); @@ -91629,7 +91633,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags.push(decoded); @@ -91662,7 +91666,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.push(decoded); @@ -91683,7 +91687,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Endpoints.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints.push(decoded); @@ -91790,23 +91794,23 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Application\\") ? await Application.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Group\\") ? await Group.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Organization\\") ? await Organization.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Person\\") ? await Person.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Service\\") ? await Service.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -91843,23 +91847,23 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Application\\") ? await Application.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Group\\") ? await Group.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Organization\\") ? await Organization.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Person\\") ? await Person.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Service\\") ? await Service.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -91894,7 +91898,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await DidService.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.push(decoded); diff --git a/packages/vocab-tools/src/__snapshots__/class.test.ts.node.snap b/packages/vocab-tools/src/__snapshots__/class.test.ts.node.snap index e74b0c693..320038c04 100644 --- a/packages/vocab-tools/src/__snapshots__/class.test.ts.node.snap +++ b/packages/vocab-tools/src/__snapshots__/class.test.ts.node.snap @@ -3677,23 +3677,25 @@ get names(): ((string | LanguageString))[] { this._tracerProvider ?? trace.getTracerProvider(); const baseUrl = options.baseUrl; - const _expanded = await jsonld.expand(jsonLd, { - documentLoader: contextLoader, - keepFreeFloatingNodes: true, - }); - for (const _pp_obj of _expanded) { - - { - const _result = await _ppM0[\\"normalizeLinkToImage\\"](_pp_obj, { - documentLoader, - contextLoader, - tracerProvider, - baseUrl, - }); - if (_result instanceof Error) throw _result; - if (_result !== undefined) return _result as Image; - } + if (jsonLd != null && typeof jsonLd === \\"object\\") { + const _expanded = await jsonld.expand(jsonLd, { + documentLoader: contextLoader, + keepFreeFloatingNodes: true, + }); + for (const _pp_obj of _expanded) { + + { + const _result = await _ppM0[\\"normalizeLinkToImage\\"](_pp_obj, { + documentLoader, + contextLoader, + tracerProvider, + baseUrl, + }); + if (_result instanceof Error) throw _result; + if (_result !== undefined) return _result as Image; + } + } } try { @@ -4022,23 +4024,25 @@ get names(): ((string | LanguageString))[] { this._tracerProvider ?? trace.getTracerProvider(); const baseUrl = options.baseUrl; - const _expanded = await jsonld.expand(jsonLd, { - documentLoader: contextLoader, - keepFreeFloatingNodes: true, - }); - for (const _pp_obj of _expanded) { - - { - const _result = await _ppM0[\\"normalizeLinkToImage\\"](_pp_obj, { - documentLoader, - contextLoader, - tracerProvider, - baseUrl, - }); - if (_result instanceof Error) throw _result; - if (_result !== undefined) return _result as Image; - } + if (jsonLd != null && typeof jsonLd === \\"object\\") { + const _expanded = await jsonld.expand(jsonLd, { + documentLoader: contextLoader, + keepFreeFloatingNodes: true, + }); + for (const _pp_obj of _expanded) { + + { + const _result = await _ppM0[\\"normalizeLinkToImage\\"](_pp_obj, { + documentLoader, + contextLoader, + tracerProvider, + baseUrl, + }); + if (_result instanceof Error) throw _result; + if (_result !== undefined) return _result as Image; + } + } } try { @@ -10589,16 +10593,16 @@ get urls(): ((URL | Link))[] { && Array.isArray(v[\\"@type\\"])&& [\\"https://www.w3.org/ns/activitystreams#Object\\",\\"http://joinmastodon.org/ns#Emoji\\",\\"http://litepub.social/ns#ChatMessage\\",\\"https://gotosocial.org/ns#AnnounceAuthorization\\",\\"https://gotosocial.org/ns#LikeApproval\\",\\"https://gotosocial.org/ns#ReplyAuthorization\\",\\"https://w3id.org/fep/044f#QuoteAuthorization\\",\\"https://w3id.org/valueflows/ont/vf#Proposal\\",\\"https://www.w3.org/ns/activitystreams#Activity\\",\\"http://litepub.social/ns#EmojiReact\\",\\"https://gotosocial.org/ns#AnnounceRequest\\",\\"https://gotosocial.org/ns#LikeRequest\\",\\"https://gotosocial.org/ns#ReplyRequest\\",\\"https://w3id.org/fep/044f#QuoteRequest\\",\\"https://www.w3.org/ns/activitystreams#Accept\\",\\"https://www.w3.org/ns/activitystreams#TentativeAccept\\",\\"https://www.w3.org/ns/activitystreams#Add\\",\\"https://www.w3.org/ns/activitystreams#Announce\\",\\"https://www.w3.org/ns/activitystreams#Create\\",\\"https://www.w3.org/ns/activitystreams#Delete\\",\\"https://www.w3.org/ns/activitystreams#Dislike\\",\\"https://www.w3.org/ns/activitystreams#Flag\\",\\"https://www.w3.org/ns/activitystreams#Follow\\",\\"https://www.w3.org/ns/activitystreams#Ignore\\",\\"https://www.w3.org/ns/activitystreams#Block\\",\\"https://www.w3.org/ns/activitystreams#IntransitiveActivity\\",\\"https://www.w3.org/ns/activitystreams#Arrive\\",\\"https://www.w3.org/ns/activitystreams#Question\\",\\"https://www.w3.org/ns/activitystreams#Travel\\",\\"https://www.w3.org/ns/activitystreams#Join\\",\\"https://www.w3.org/ns/activitystreams#Leave\\",\\"https://www.w3.org/ns/activitystreams#Like\\",\\"https://www.w3.org/ns/activitystreams#Listen\\",\\"https://www.w3.org/ns/activitystreams#Move\\",\\"https://www.w3.org/ns/activitystreams#Offer\\",\\"https://www.w3.org/ns/activitystreams#Invite\\",\\"https://www.w3.org/ns/activitystreams#Read\\",\\"https://www.w3.org/ns/activitystreams#Reject\\",\\"https://www.w3.org/ns/activitystreams#TentativeReject\\",\\"https://www.w3.org/ns/activitystreams#Remove\\",\\"https://www.w3.org/ns/activitystreams#Undo\\",\\"https://www.w3.org/ns/activitystreams#Update\\",\\"https://www.w3.org/ns/activitystreams#View\\",\\"https://www.w3.org/ns/activitystreams#Application\\",\\"https://www.w3.org/ns/activitystreams#Article\\",\\"https://www.w3.org/ns/activitystreams#Collection\\",\\"https://www.w3.org/ns/activitystreams#CollectionPage\\",\\"https://www.w3.org/ns/activitystreams#OrderedCollectionPage\\",\\"https://www.w3.org/ns/activitystreams#OrderedCollection\\",\\"https://www.w3.org/ns/activitystreams#Document\\",\\"https://www.w3.org/ns/activitystreams#Audio\\",\\"https://www.w3.org/ns/activitystreams#Image\\",\\"https://www.w3.org/ns/activitystreams#Page\\",\\"https://www.w3.org/ns/activitystreams#Video\\",\\"https://www.w3.org/ns/activitystreams#Event\\",\\"https://www.w3.org/ns/activitystreams#Group\\",\\"https://www.w3.org/ns/activitystreams#Note\\",\\"https://www.w3.org/ns/activitystreams#Organization\\",\\"https://www.w3.org/ns/activitystreams#Person\\",\\"https://www.w3.org/ns/activitystreams#Place\\",\\"https://www.w3.org/ns/activitystreams#Profile\\",\\"https://www.w3.org/ns/activitystreams#Relationship\\",\\"https://www.w3.org/ns/activitystreams#Service\\",\\"https://www.w3.org/ns/activitystreams#Tombstone\\"].some( t => v[\\"@type\\"].includes(t)) ? await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& [\\"https://www.w3.org/ns/activitystreams#Link\\",\\"https://www.w3.org/ns/activitystreams#Hashtag\\",\\"https://www.w3.org/ns/activitystreams#Mention\\"].some( t => v[\\"@type\\"].includes(t)) ? await Link.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"http://schema.org#PropertyValue\\") ? await PropertyValue.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -10635,23 +10639,23 @@ get urls(): ((URL | Link))[] { typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Application\\") ? await Application.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Group\\") ? await Group.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Organization\\") ? await Organization.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Person\\") ? await Person.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Service\\") ? await Service.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -10686,7 +10690,7 @@ get urls(): ((URL | Link))[] { const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _3ocC3VVi88cEd5sPWL8djkZsvTN6_audience.push(decoded); @@ -10746,12 +10750,12 @@ get urls(): ((URL | Link))[] { && Array.isArray(v[\\"@type\\"])&& [\\"https://www.w3.org/ns/activitystreams#Object\\",\\"http://joinmastodon.org/ns#Emoji\\",\\"http://litepub.social/ns#ChatMessage\\",\\"https://gotosocial.org/ns#AnnounceAuthorization\\",\\"https://gotosocial.org/ns#LikeApproval\\",\\"https://gotosocial.org/ns#ReplyAuthorization\\",\\"https://w3id.org/fep/044f#QuoteAuthorization\\",\\"https://w3id.org/valueflows/ont/vf#Proposal\\",\\"https://www.w3.org/ns/activitystreams#Activity\\",\\"http://litepub.social/ns#EmojiReact\\",\\"https://gotosocial.org/ns#AnnounceRequest\\",\\"https://gotosocial.org/ns#LikeRequest\\",\\"https://gotosocial.org/ns#ReplyRequest\\",\\"https://w3id.org/fep/044f#QuoteRequest\\",\\"https://www.w3.org/ns/activitystreams#Accept\\",\\"https://www.w3.org/ns/activitystreams#TentativeAccept\\",\\"https://www.w3.org/ns/activitystreams#Add\\",\\"https://www.w3.org/ns/activitystreams#Announce\\",\\"https://www.w3.org/ns/activitystreams#Create\\",\\"https://www.w3.org/ns/activitystreams#Delete\\",\\"https://www.w3.org/ns/activitystreams#Dislike\\",\\"https://www.w3.org/ns/activitystreams#Flag\\",\\"https://www.w3.org/ns/activitystreams#Follow\\",\\"https://www.w3.org/ns/activitystreams#Ignore\\",\\"https://www.w3.org/ns/activitystreams#Block\\",\\"https://www.w3.org/ns/activitystreams#IntransitiveActivity\\",\\"https://www.w3.org/ns/activitystreams#Arrive\\",\\"https://www.w3.org/ns/activitystreams#Question\\",\\"https://www.w3.org/ns/activitystreams#Travel\\",\\"https://www.w3.org/ns/activitystreams#Join\\",\\"https://www.w3.org/ns/activitystreams#Leave\\",\\"https://www.w3.org/ns/activitystreams#Like\\",\\"https://www.w3.org/ns/activitystreams#Listen\\",\\"https://www.w3.org/ns/activitystreams#Move\\",\\"https://www.w3.org/ns/activitystreams#Offer\\",\\"https://www.w3.org/ns/activitystreams#Invite\\",\\"https://www.w3.org/ns/activitystreams#Read\\",\\"https://www.w3.org/ns/activitystreams#Reject\\",\\"https://www.w3.org/ns/activitystreams#TentativeReject\\",\\"https://www.w3.org/ns/activitystreams#Remove\\",\\"https://www.w3.org/ns/activitystreams#Undo\\",\\"https://www.w3.org/ns/activitystreams#Update\\",\\"https://www.w3.org/ns/activitystreams#View\\",\\"https://www.w3.org/ns/activitystreams#Application\\",\\"https://www.w3.org/ns/activitystreams#Article\\",\\"https://www.w3.org/ns/activitystreams#Collection\\",\\"https://www.w3.org/ns/activitystreams#CollectionPage\\",\\"https://www.w3.org/ns/activitystreams#OrderedCollectionPage\\",\\"https://www.w3.org/ns/activitystreams#OrderedCollection\\",\\"https://www.w3.org/ns/activitystreams#Document\\",\\"https://www.w3.org/ns/activitystreams#Audio\\",\\"https://www.w3.org/ns/activitystreams#Image\\",\\"https://www.w3.org/ns/activitystreams#Page\\",\\"https://www.w3.org/ns/activitystreams#Video\\",\\"https://www.w3.org/ns/activitystreams#Event\\",\\"https://www.w3.org/ns/activitystreams#Group\\",\\"https://www.w3.org/ns/activitystreams#Note\\",\\"https://www.w3.org/ns/activitystreams#Organization\\",\\"https://www.w3.org/ns/activitystreams#Person\\",\\"https://www.w3.org/ns/activitystreams#Place\\",\\"https://www.w3.org/ns/activitystreams#Profile\\",\\"https://www.w3.org/ns/activitystreams#Relationship\\",\\"https://www.w3.org/ns/activitystreams#Service\\",\\"https://www.w3.org/ns/activitystreams#Tombstone\\"].some( t => v[\\"@type\\"].includes(t)) ? await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& [\\"https://www.w3.org/ns/activitystreams#Link\\",\\"https://www.w3.org/ns/activitystreams#Hashtag\\",\\"https://www.w3.org/ns/activitystreams#Mention\\"].some( t => v[\\"@type\\"].includes(t)) ? await Link.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -10835,12 +10839,12 @@ get urls(): ((URL | Link))[] { && Array.isArray(v[\\"@type\\"])&& [\\"https://www.w3.org/ns/activitystreams#Object\\",\\"http://joinmastodon.org/ns#Emoji\\",\\"http://litepub.social/ns#ChatMessage\\",\\"https://gotosocial.org/ns#AnnounceAuthorization\\",\\"https://gotosocial.org/ns#LikeApproval\\",\\"https://gotosocial.org/ns#ReplyAuthorization\\",\\"https://w3id.org/fep/044f#QuoteAuthorization\\",\\"https://w3id.org/valueflows/ont/vf#Proposal\\",\\"https://www.w3.org/ns/activitystreams#Activity\\",\\"http://litepub.social/ns#EmojiReact\\",\\"https://gotosocial.org/ns#AnnounceRequest\\",\\"https://gotosocial.org/ns#LikeRequest\\",\\"https://gotosocial.org/ns#ReplyRequest\\",\\"https://w3id.org/fep/044f#QuoteRequest\\",\\"https://www.w3.org/ns/activitystreams#Accept\\",\\"https://www.w3.org/ns/activitystreams#TentativeAccept\\",\\"https://www.w3.org/ns/activitystreams#Add\\",\\"https://www.w3.org/ns/activitystreams#Announce\\",\\"https://www.w3.org/ns/activitystreams#Create\\",\\"https://www.w3.org/ns/activitystreams#Delete\\",\\"https://www.w3.org/ns/activitystreams#Dislike\\",\\"https://www.w3.org/ns/activitystreams#Flag\\",\\"https://www.w3.org/ns/activitystreams#Follow\\",\\"https://www.w3.org/ns/activitystreams#Ignore\\",\\"https://www.w3.org/ns/activitystreams#Block\\",\\"https://www.w3.org/ns/activitystreams#IntransitiveActivity\\",\\"https://www.w3.org/ns/activitystreams#Arrive\\",\\"https://www.w3.org/ns/activitystreams#Question\\",\\"https://www.w3.org/ns/activitystreams#Travel\\",\\"https://www.w3.org/ns/activitystreams#Join\\",\\"https://www.w3.org/ns/activitystreams#Leave\\",\\"https://www.w3.org/ns/activitystreams#Like\\",\\"https://www.w3.org/ns/activitystreams#Listen\\",\\"https://www.w3.org/ns/activitystreams#Move\\",\\"https://www.w3.org/ns/activitystreams#Offer\\",\\"https://www.w3.org/ns/activitystreams#Invite\\",\\"https://www.w3.org/ns/activitystreams#Read\\",\\"https://www.w3.org/ns/activitystreams#Reject\\",\\"https://www.w3.org/ns/activitystreams#TentativeReject\\",\\"https://www.w3.org/ns/activitystreams#Remove\\",\\"https://www.w3.org/ns/activitystreams#Undo\\",\\"https://www.w3.org/ns/activitystreams#Update\\",\\"https://www.w3.org/ns/activitystreams#View\\",\\"https://www.w3.org/ns/activitystreams#Application\\",\\"https://www.w3.org/ns/activitystreams#Article\\",\\"https://www.w3.org/ns/activitystreams#Collection\\",\\"https://www.w3.org/ns/activitystreams#CollectionPage\\",\\"https://www.w3.org/ns/activitystreams#OrderedCollectionPage\\",\\"https://www.w3.org/ns/activitystreams#OrderedCollection\\",\\"https://www.w3.org/ns/activitystreams#Document\\",\\"https://www.w3.org/ns/activitystreams#Audio\\",\\"https://www.w3.org/ns/activitystreams#Image\\",\\"https://www.w3.org/ns/activitystreams#Page\\",\\"https://www.w3.org/ns/activitystreams#Video\\",\\"https://www.w3.org/ns/activitystreams#Event\\",\\"https://www.w3.org/ns/activitystreams#Group\\",\\"https://www.w3.org/ns/activitystreams#Note\\",\\"https://www.w3.org/ns/activitystreams#Organization\\",\\"https://www.w3.org/ns/activitystreams#Person\\",\\"https://www.w3.org/ns/activitystreams#Place\\",\\"https://www.w3.org/ns/activitystreams#Profile\\",\\"https://www.w3.org/ns/activitystreams#Relationship\\",\\"https://www.w3.org/ns/activitystreams#Service\\",\\"https://www.w3.org/ns/activitystreams#Tombstone\\"].some( t => v[\\"@type\\"].includes(t)) ? await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& [\\"https://www.w3.org/ns/activitystreams#Link\\",\\"https://www.w3.org/ns/activitystreams#Hashtag\\",\\"https://www.w3.org/ns/activitystreams#Mention\\"].some( t => v[\\"@type\\"].includes(t)) ? await Link.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -10871,7 +10875,7 @@ get urls(): ((URL | Link))[] { documentLoader: options.documentLoader, contextLoader: options.contextLoader, tracerProvider: options.tracerProvider, - baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])), + baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)), }); if (_result instanceof Error) throw _result; if (_result !== undefined) { @@ -10897,7 +10901,7 @@ get urls(): ((URL | Link))[] { const decoded = await Image.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _33CjRLy5ujtsUrwRSCrsggvGdKuR_icon.push(decoded); @@ -10926,7 +10930,7 @@ get urls(): ((URL | Link))[] { documentLoader: options.documentLoader, contextLoader: options.contextLoader, tracerProvider: options.tracerProvider, - baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])), + baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)), }); if (_result instanceof Error) throw _result; if (_result !== undefined) { @@ -10952,7 +10956,7 @@ get urls(): ((URL | Link))[] { const decoded = await Image.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _3dXrUdkARxwyJLtJcYi1AJ92H41U_image.push(decoded); @@ -10988,12 +10992,12 @@ get urls(): ((URL | Link))[] { && Array.isArray(v[\\"@type\\"])&& [\\"https://www.w3.org/ns/activitystreams#Object\\",\\"http://joinmastodon.org/ns#Emoji\\",\\"http://litepub.social/ns#ChatMessage\\",\\"https://gotosocial.org/ns#AnnounceAuthorization\\",\\"https://gotosocial.org/ns#LikeApproval\\",\\"https://gotosocial.org/ns#ReplyAuthorization\\",\\"https://w3id.org/fep/044f#QuoteAuthorization\\",\\"https://w3id.org/valueflows/ont/vf#Proposal\\",\\"https://www.w3.org/ns/activitystreams#Activity\\",\\"http://litepub.social/ns#EmojiReact\\",\\"https://gotosocial.org/ns#AnnounceRequest\\",\\"https://gotosocial.org/ns#LikeRequest\\",\\"https://gotosocial.org/ns#ReplyRequest\\",\\"https://w3id.org/fep/044f#QuoteRequest\\",\\"https://www.w3.org/ns/activitystreams#Accept\\",\\"https://www.w3.org/ns/activitystreams#TentativeAccept\\",\\"https://www.w3.org/ns/activitystreams#Add\\",\\"https://www.w3.org/ns/activitystreams#Announce\\",\\"https://www.w3.org/ns/activitystreams#Create\\",\\"https://www.w3.org/ns/activitystreams#Delete\\",\\"https://www.w3.org/ns/activitystreams#Dislike\\",\\"https://www.w3.org/ns/activitystreams#Flag\\",\\"https://www.w3.org/ns/activitystreams#Follow\\",\\"https://www.w3.org/ns/activitystreams#Ignore\\",\\"https://www.w3.org/ns/activitystreams#Block\\",\\"https://www.w3.org/ns/activitystreams#IntransitiveActivity\\",\\"https://www.w3.org/ns/activitystreams#Arrive\\",\\"https://www.w3.org/ns/activitystreams#Question\\",\\"https://www.w3.org/ns/activitystreams#Travel\\",\\"https://www.w3.org/ns/activitystreams#Join\\",\\"https://www.w3.org/ns/activitystreams#Leave\\",\\"https://www.w3.org/ns/activitystreams#Like\\",\\"https://www.w3.org/ns/activitystreams#Listen\\",\\"https://www.w3.org/ns/activitystreams#Move\\",\\"https://www.w3.org/ns/activitystreams#Offer\\",\\"https://www.w3.org/ns/activitystreams#Invite\\",\\"https://www.w3.org/ns/activitystreams#Read\\",\\"https://www.w3.org/ns/activitystreams#Reject\\",\\"https://www.w3.org/ns/activitystreams#TentativeReject\\",\\"https://www.w3.org/ns/activitystreams#Remove\\",\\"https://www.w3.org/ns/activitystreams#Undo\\",\\"https://www.w3.org/ns/activitystreams#Update\\",\\"https://www.w3.org/ns/activitystreams#View\\",\\"https://www.w3.org/ns/activitystreams#Application\\",\\"https://www.w3.org/ns/activitystreams#Article\\",\\"https://www.w3.org/ns/activitystreams#Collection\\",\\"https://www.w3.org/ns/activitystreams#CollectionPage\\",\\"https://www.w3.org/ns/activitystreams#OrderedCollectionPage\\",\\"https://www.w3.org/ns/activitystreams#OrderedCollection\\",\\"https://www.w3.org/ns/activitystreams#Document\\",\\"https://www.w3.org/ns/activitystreams#Audio\\",\\"https://www.w3.org/ns/activitystreams#Image\\",\\"https://www.w3.org/ns/activitystreams#Page\\",\\"https://www.w3.org/ns/activitystreams#Video\\",\\"https://www.w3.org/ns/activitystreams#Event\\",\\"https://www.w3.org/ns/activitystreams#Group\\",\\"https://www.w3.org/ns/activitystreams#Note\\",\\"https://www.w3.org/ns/activitystreams#Organization\\",\\"https://www.w3.org/ns/activitystreams#Person\\",\\"https://www.w3.org/ns/activitystreams#Place\\",\\"https://www.w3.org/ns/activitystreams#Profile\\",\\"https://www.w3.org/ns/activitystreams#Relationship\\",\\"https://www.w3.org/ns/activitystreams#Service\\",\\"https://www.w3.org/ns/activitystreams#Tombstone\\"].some( t => v[\\"@type\\"].includes(t)) ? await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& [\\"https://www.w3.org/ns/activitystreams#Link\\",\\"https://www.w3.org/ns/activitystreams#Hashtag\\",\\"https://www.w3.org/ns/activitystreams#Mention\\"].some( t => v[\\"@type\\"].includes(t)) ? await Link.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -11031,12 +11035,12 @@ get urls(): ((URL | Link))[] { && Array.isArray(v[\\"@type\\"])&& [\\"https://www.w3.org/ns/activitystreams#Object\\",\\"http://joinmastodon.org/ns#Emoji\\",\\"http://litepub.social/ns#ChatMessage\\",\\"https://gotosocial.org/ns#AnnounceAuthorization\\",\\"https://gotosocial.org/ns#LikeApproval\\",\\"https://gotosocial.org/ns#ReplyAuthorization\\",\\"https://w3id.org/fep/044f#QuoteAuthorization\\",\\"https://w3id.org/valueflows/ont/vf#Proposal\\",\\"https://www.w3.org/ns/activitystreams#Activity\\",\\"http://litepub.social/ns#EmojiReact\\",\\"https://gotosocial.org/ns#AnnounceRequest\\",\\"https://gotosocial.org/ns#LikeRequest\\",\\"https://gotosocial.org/ns#ReplyRequest\\",\\"https://w3id.org/fep/044f#QuoteRequest\\",\\"https://www.w3.org/ns/activitystreams#Accept\\",\\"https://www.w3.org/ns/activitystreams#TentativeAccept\\",\\"https://www.w3.org/ns/activitystreams#Add\\",\\"https://www.w3.org/ns/activitystreams#Announce\\",\\"https://www.w3.org/ns/activitystreams#Create\\",\\"https://www.w3.org/ns/activitystreams#Delete\\",\\"https://www.w3.org/ns/activitystreams#Dislike\\",\\"https://www.w3.org/ns/activitystreams#Flag\\",\\"https://www.w3.org/ns/activitystreams#Follow\\",\\"https://www.w3.org/ns/activitystreams#Ignore\\",\\"https://www.w3.org/ns/activitystreams#Block\\",\\"https://www.w3.org/ns/activitystreams#IntransitiveActivity\\",\\"https://www.w3.org/ns/activitystreams#Arrive\\",\\"https://www.w3.org/ns/activitystreams#Question\\",\\"https://www.w3.org/ns/activitystreams#Travel\\",\\"https://www.w3.org/ns/activitystreams#Join\\",\\"https://www.w3.org/ns/activitystreams#Leave\\",\\"https://www.w3.org/ns/activitystreams#Like\\",\\"https://www.w3.org/ns/activitystreams#Listen\\",\\"https://www.w3.org/ns/activitystreams#Move\\",\\"https://www.w3.org/ns/activitystreams#Offer\\",\\"https://www.w3.org/ns/activitystreams#Invite\\",\\"https://www.w3.org/ns/activitystreams#Read\\",\\"https://www.w3.org/ns/activitystreams#Reject\\",\\"https://www.w3.org/ns/activitystreams#TentativeReject\\",\\"https://www.w3.org/ns/activitystreams#Remove\\",\\"https://www.w3.org/ns/activitystreams#Undo\\",\\"https://www.w3.org/ns/activitystreams#Update\\",\\"https://www.w3.org/ns/activitystreams#View\\",\\"https://www.w3.org/ns/activitystreams#Application\\",\\"https://www.w3.org/ns/activitystreams#Article\\",\\"https://www.w3.org/ns/activitystreams#Collection\\",\\"https://www.w3.org/ns/activitystreams#CollectionPage\\",\\"https://www.w3.org/ns/activitystreams#OrderedCollectionPage\\",\\"https://www.w3.org/ns/activitystreams#OrderedCollection\\",\\"https://www.w3.org/ns/activitystreams#Document\\",\\"https://www.w3.org/ns/activitystreams#Audio\\",\\"https://www.w3.org/ns/activitystreams#Image\\",\\"https://www.w3.org/ns/activitystreams#Page\\",\\"https://www.w3.org/ns/activitystreams#Video\\",\\"https://www.w3.org/ns/activitystreams#Event\\",\\"https://www.w3.org/ns/activitystreams#Group\\",\\"https://www.w3.org/ns/activitystreams#Note\\",\\"https://www.w3.org/ns/activitystreams#Organization\\",\\"https://www.w3.org/ns/activitystreams#Person\\",\\"https://www.w3.org/ns/activitystreams#Place\\",\\"https://www.w3.org/ns/activitystreams#Profile\\",\\"https://www.w3.org/ns/activitystreams#Relationship\\",\\"https://www.w3.org/ns/activitystreams#Service\\",\\"https://www.w3.org/ns/activitystreams#Tombstone\\"].some( t => v[\\"@type\\"].includes(t)) ? await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& [\\"https://www.w3.org/ns/activitystreams#Link\\",\\"https://www.w3.org/ns/activitystreams#Hashtag\\",\\"https://www.w3.org/ns/activitystreams#Mention\\"].some( t => v[\\"@type\\"].includes(t)) ? await Link.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -11074,12 +11078,12 @@ get urls(): ((URL | Link))[] { && Array.isArray(v[\\"@type\\"])&& [\\"https://www.w3.org/ns/activitystreams#Link\\",\\"https://www.w3.org/ns/activitystreams#Hashtag\\",\\"https://www.w3.org/ns/activitystreams#Mention\\"].some( t => v[\\"@type\\"].includes(t)) ? await Link.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& [\\"https://www.w3.org/ns/activitystreams#Object\\",\\"http://joinmastodon.org/ns#Emoji\\",\\"http://litepub.social/ns#ChatMessage\\",\\"https://gotosocial.org/ns#AnnounceAuthorization\\",\\"https://gotosocial.org/ns#LikeApproval\\",\\"https://gotosocial.org/ns#ReplyAuthorization\\",\\"https://w3id.org/fep/044f#QuoteAuthorization\\",\\"https://w3id.org/valueflows/ont/vf#Proposal\\",\\"https://www.w3.org/ns/activitystreams#Activity\\",\\"http://litepub.social/ns#EmojiReact\\",\\"https://gotosocial.org/ns#AnnounceRequest\\",\\"https://gotosocial.org/ns#LikeRequest\\",\\"https://gotosocial.org/ns#ReplyRequest\\",\\"https://w3id.org/fep/044f#QuoteRequest\\",\\"https://www.w3.org/ns/activitystreams#Accept\\",\\"https://www.w3.org/ns/activitystreams#TentativeAccept\\",\\"https://www.w3.org/ns/activitystreams#Add\\",\\"https://www.w3.org/ns/activitystreams#Announce\\",\\"https://www.w3.org/ns/activitystreams#Create\\",\\"https://www.w3.org/ns/activitystreams#Delete\\",\\"https://www.w3.org/ns/activitystreams#Dislike\\",\\"https://www.w3.org/ns/activitystreams#Flag\\",\\"https://www.w3.org/ns/activitystreams#Follow\\",\\"https://www.w3.org/ns/activitystreams#Ignore\\",\\"https://www.w3.org/ns/activitystreams#Block\\",\\"https://www.w3.org/ns/activitystreams#IntransitiveActivity\\",\\"https://www.w3.org/ns/activitystreams#Arrive\\",\\"https://www.w3.org/ns/activitystreams#Question\\",\\"https://www.w3.org/ns/activitystreams#Travel\\",\\"https://www.w3.org/ns/activitystreams#Join\\",\\"https://www.w3.org/ns/activitystreams#Leave\\",\\"https://www.w3.org/ns/activitystreams#Like\\",\\"https://www.w3.org/ns/activitystreams#Listen\\",\\"https://www.w3.org/ns/activitystreams#Move\\",\\"https://www.w3.org/ns/activitystreams#Offer\\",\\"https://www.w3.org/ns/activitystreams#Invite\\",\\"https://www.w3.org/ns/activitystreams#Read\\",\\"https://www.w3.org/ns/activitystreams#Reject\\",\\"https://www.w3.org/ns/activitystreams#TentativeReject\\",\\"https://www.w3.org/ns/activitystreams#Remove\\",\\"https://www.w3.org/ns/activitystreams#Undo\\",\\"https://www.w3.org/ns/activitystreams#Update\\",\\"https://www.w3.org/ns/activitystreams#View\\",\\"https://www.w3.org/ns/activitystreams#Application\\",\\"https://www.w3.org/ns/activitystreams#Article\\",\\"https://www.w3.org/ns/activitystreams#Collection\\",\\"https://www.w3.org/ns/activitystreams#CollectionPage\\",\\"https://www.w3.org/ns/activitystreams#OrderedCollectionPage\\",\\"https://www.w3.org/ns/activitystreams#OrderedCollection\\",\\"https://www.w3.org/ns/activitystreams#Document\\",\\"https://www.w3.org/ns/activitystreams#Audio\\",\\"https://www.w3.org/ns/activitystreams#Image\\",\\"https://www.w3.org/ns/activitystreams#Page\\",\\"https://www.w3.org/ns/activitystreams#Video\\",\\"https://www.w3.org/ns/activitystreams#Event\\",\\"https://www.w3.org/ns/activitystreams#Group\\",\\"https://www.w3.org/ns/activitystreams#Note\\",\\"https://www.w3.org/ns/activitystreams#Organization\\",\\"https://www.w3.org/ns/activitystreams#Person\\",\\"https://www.w3.org/ns/activitystreams#Place\\",\\"https://www.w3.org/ns/activitystreams#Profile\\",\\"https://www.w3.org/ns/activitystreams#Relationship\\",\\"https://www.w3.org/ns/activitystreams#Service\\",\\"https://www.w3.org/ns/activitystreams#Tombstone\\"].some( t => v[\\"@type\\"].includes(t)) ? await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -11136,7 +11140,7 @@ get urls(): ((URL | Link))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _7UpwM3JWcXhADcscukEehBorf6k_replies.push(decoded); @@ -11169,7 +11173,7 @@ get urls(): ((URL | Link))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _3kAfck9PcEYt2L7xug5y99YPbANs_shares.push(decoded); @@ -11202,7 +11206,7 @@ get urls(): ((URL | Link))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _S3ceDnpMdzoTRCccB9FkJWrEzYW_likes.push(decoded); @@ -11235,7 +11239,7 @@ get urls(): ((URL | Link))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _kMatyyNAuxoTD8GQMBfA5ogThMR_emojiReactions.push(decoded); @@ -11317,12 +11321,12 @@ get urls(): ((URL | Link))[] { && Array.isArray(v[\\"@type\\"])&& [\\"https://www.w3.org/ns/activitystreams#Object\\",\\"http://joinmastodon.org/ns#Emoji\\",\\"http://litepub.social/ns#ChatMessage\\",\\"https://gotosocial.org/ns#AnnounceAuthorization\\",\\"https://gotosocial.org/ns#LikeApproval\\",\\"https://gotosocial.org/ns#ReplyAuthorization\\",\\"https://w3id.org/fep/044f#QuoteAuthorization\\",\\"https://w3id.org/valueflows/ont/vf#Proposal\\",\\"https://www.w3.org/ns/activitystreams#Activity\\",\\"http://litepub.social/ns#EmojiReact\\",\\"https://gotosocial.org/ns#AnnounceRequest\\",\\"https://gotosocial.org/ns#LikeRequest\\",\\"https://gotosocial.org/ns#ReplyRequest\\",\\"https://w3id.org/fep/044f#QuoteRequest\\",\\"https://www.w3.org/ns/activitystreams#Accept\\",\\"https://www.w3.org/ns/activitystreams#TentativeAccept\\",\\"https://www.w3.org/ns/activitystreams#Add\\",\\"https://www.w3.org/ns/activitystreams#Announce\\",\\"https://www.w3.org/ns/activitystreams#Create\\",\\"https://www.w3.org/ns/activitystreams#Delete\\",\\"https://www.w3.org/ns/activitystreams#Dislike\\",\\"https://www.w3.org/ns/activitystreams#Flag\\",\\"https://www.w3.org/ns/activitystreams#Follow\\",\\"https://www.w3.org/ns/activitystreams#Ignore\\",\\"https://www.w3.org/ns/activitystreams#Block\\",\\"https://www.w3.org/ns/activitystreams#IntransitiveActivity\\",\\"https://www.w3.org/ns/activitystreams#Arrive\\",\\"https://www.w3.org/ns/activitystreams#Question\\",\\"https://www.w3.org/ns/activitystreams#Travel\\",\\"https://www.w3.org/ns/activitystreams#Join\\",\\"https://www.w3.org/ns/activitystreams#Leave\\",\\"https://www.w3.org/ns/activitystreams#Like\\",\\"https://www.w3.org/ns/activitystreams#Listen\\",\\"https://www.w3.org/ns/activitystreams#Move\\",\\"https://www.w3.org/ns/activitystreams#Offer\\",\\"https://www.w3.org/ns/activitystreams#Invite\\",\\"https://www.w3.org/ns/activitystreams#Read\\",\\"https://www.w3.org/ns/activitystreams#Reject\\",\\"https://www.w3.org/ns/activitystreams#TentativeReject\\",\\"https://www.w3.org/ns/activitystreams#Remove\\",\\"https://www.w3.org/ns/activitystreams#Undo\\",\\"https://www.w3.org/ns/activitystreams#Update\\",\\"https://www.w3.org/ns/activitystreams#View\\",\\"https://www.w3.org/ns/activitystreams#Application\\",\\"https://www.w3.org/ns/activitystreams#Article\\",\\"https://www.w3.org/ns/activitystreams#Collection\\",\\"https://www.w3.org/ns/activitystreams#CollectionPage\\",\\"https://www.w3.org/ns/activitystreams#OrderedCollectionPage\\",\\"https://www.w3.org/ns/activitystreams#OrderedCollection\\",\\"https://www.w3.org/ns/activitystreams#Document\\",\\"https://www.w3.org/ns/activitystreams#Audio\\",\\"https://www.w3.org/ns/activitystreams#Image\\",\\"https://www.w3.org/ns/activitystreams#Page\\",\\"https://www.w3.org/ns/activitystreams#Video\\",\\"https://www.w3.org/ns/activitystreams#Event\\",\\"https://www.w3.org/ns/activitystreams#Group\\",\\"https://www.w3.org/ns/activitystreams#Note\\",\\"https://www.w3.org/ns/activitystreams#Organization\\",\\"https://www.w3.org/ns/activitystreams#Person\\",\\"https://www.w3.org/ns/activitystreams#Place\\",\\"https://www.w3.org/ns/activitystreams#Profile\\",\\"https://www.w3.org/ns/activitystreams#Relationship\\",\\"https://www.w3.org/ns/activitystreams#Service\\",\\"https://www.w3.org/ns/activitystreams#Tombstone\\"].some( t => v[\\"@type\\"].includes(t)) ? await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& [\\"https://www.w3.org/ns/activitystreams#Link\\",\\"https://www.w3.org/ns/activitystreams#Hashtag\\",\\"https://www.w3.org/ns/activitystreams#Mention\\"].some( t => v[\\"@type\\"].includes(t)) ? await Link.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -11381,13 +11385,13 @@ get urls(): ((URL | Link))[] { : \\"\\" ) ) - : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) + : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) ? new URL(v[\\"@id\\"]) - : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"]))) : typeof v === \\"object\\" && \\"@type\\" in v + : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl))) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& [\\"https://www.w3.org/ns/activitystreams#Link\\",\\"https://www.w3.org/ns/activitystreams#Hashtag\\",\\"https://www.w3.org/ns/activitystreams#Mention\\"].some( t => v[\\"@type\\"].includes(t)) ? await Link.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -11422,7 +11426,7 @@ get urls(): ((URL | Link))[] { const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _3hFbw7DTpHhq3cvVhkY8njhcsXbd_to.push(decoded); @@ -11455,7 +11459,7 @@ get urls(): ((URL | Link))[] { const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _aLZupjwL8XB7tzdLgCMXdjZ6qej_bto.push(decoded); @@ -11488,7 +11492,7 @@ get urls(): ((URL | Link))[] { const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _42a1SvBs24QSLzKcfjCyNTjW5a1g_cc.push(decoded); @@ -11521,7 +11525,7 @@ get urls(): ((URL | Link))[] { const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _3qvegKUB8YLgTXRpEf8E6JZSkz2H_bcc.push(decoded); @@ -11596,7 +11600,7 @@ get urls(): ((URL | Link))[] { const decoded = await Source.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _2ZwCFoS787v8y8bXKjMoE6MAbrEB_source.push(decoded); @@ -11629,7 +11633,7 @@ get urls(): ((URL | Link))[] { const decoded = await DataIntegrityProof.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _42rPnotok1ivQ2RNCKNbeFJgx8b8_proof.push(decoded); @@ -11650,7 +11654,7 @@ get urls(): ((URL | Link))[] { const decoded = await InteractionPolicy.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _2MHQfh2N74MMmDLDqYWFo7TxYQK2_interactionPolicy.push(decoded); @@ -11682,9 +11686,9 @@ get urls(): ((URL | Link))[] { : \\"\\" ) ) - : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) + : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) ? new URL(v[\\"@id\\"]) - : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"]))); + : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl))); if (typeof decoded === \\"undefined\\") continue; _23YiVs2miQcEiUdn4u8SvjQKWYim_approvedBy.push(decoded); } @@ -11716,7 +11720,7 @@ get urls(): ((URL | Link))[] { const decoded = await LikeAuthorization.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _3fCeb5aXaDDd4fvkQ96BLWifBUBa_likeAuthorization.push(decoded); @@ -11749,7 +11753,7 @@ get urls(): ((URL | Link))[] { const decoded = await ReplyAuthorization.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _YA4wdUW7rYztAQ6SjhMnJCmcmtP_replyAuthorization.push(decoded); @@ -11782,7 +11786,7 @@ get urls(): ((URL | Link))[] { const decoded = await AnnounceAuthorization.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _446xEaDBs3Fz6MyzP3PSBaLupkbJ_announceAuthorization.push(decoded); @@ -14013,7 +14017,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote.push(decoded); @@ -14072,7 +14076,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await QuoteAuthorization.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization.push(decoded); @@ -17184,23 +17188,23 @@ instruments?: (Object | URL)[];} typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Application\\") ? await Application.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Group\\") ? await Group.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Organization\\") ? await Organization.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Person\\") ? await Person.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Service\\") ? await Service.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -17235,7 +17239,7 @@ instruments?: (Object | URL)[];} const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _2MH19yxjn1wnHsNfa5n4JBhJzxyc_object.push(decoded); @@ -17268,7 +17272,7 @@ instruments?: (Object | URL)[];} const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _3JQCmF2Ww56Ag9EWRYoSZRDNCYtF_target.push(decoded); @@ -17301,7 +17305,7 @@ instruments?: (Object | URL)[];} const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _u4QGFbRFcYmPEKGbPv1hpBR9r5G_result.push(decoded); @@ -17334,7 +17338,7 @@ instruments?: (Object | URL)[];} const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _25zu2s3VxVujgEKqrDycjE284XQR_origin.push(decoded); @@ -17367,7 +17371,7 @@ instruments?: (Object | URL)[];} const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _3c5t2x7DYRo2shwTxpkd4kYSS5WQ_instrument.push(decoded); @@ -19973,7 +19977,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject.push(decoded); @@ -20006,7 +20010,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget.push(decoded); @@ -20996,7 +21000,7 @@ canLike?: InteractionRule | null;canReply?: InteractionRule | null;canAnnounce?: const decoded = await InteractionRule.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _3JkwVLb3BNCwCWdsb5RftGAg8vyT_canLike.push(decoded); @@ -21017,7 +21021,7 @@ canLike?: InteractionRule | null;canReply?: InteractionRule | null;canAnnounce?: const decoded = await InteractionRule.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _2UBgLRi5p3DRGGvWyB227i4Qjhzd_canReply.push(decoded); @@ -21038,7 +21042,7 @@ canLike?: InteractionRule | null;canReply?: InteractionRule | null;canAnnounce?: const decoded = await InteractionRule.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _fu5nmoAj528fBQfnxhY9Daok3Vi_canAnnounce.push(decoded); @@ -21059,7 +21063,7 @@ canLike?: InteractionRule | null;canReply?: InteractionRule | null;canAnnounce?: const decoded = await InteractionRule.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _LE3zBTVacTZw2LSyLt4wVUkXeUy_canQuote.push(decoded); @@ -21755,9 +21759,9 @@ get manualApprovals(): (URL)[] { : \\"\\" ) ) - : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) + : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) ? new URL(v[\\"@id\\"]) - : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"]))); + : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl))); if (typeof decoded === \\"undefined\\") continue; _2rFyCF14HoyNjitj9PmCzek5iSsg_automaticApproval.push(decoded); } @@ -21788,9 +21792,9 @@ get manualApprovals(): (URL)[] { : \\"\\" ) ) - : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) + : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) ? new URL(v[\\"@id\\"]) - : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"]))); + : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl))); if (typeof decoded === \\"undefined\\") continue; _sxj8y5XMMMBWUnRYFw85MKedCMj_manualApproval.push(decoded); } @@ -22797,7 +22801,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject.push(decoded); @@ -22830,7 +22834,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget.push(decoded); @@ -24153,7 +24157,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject.push(decoded); @@ -24186,7 +24190,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget.push(decoded); @@ -25508,7 +25512,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject.push(decoded); @@ -25541,7 +25545,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget.push(decoded); @@ -26399,9 +26403,9 @@ get endpoints(): (URL)[] { : \\"\\" ) ) - : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) + : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) ? new URL(v[\\"@id\\"]) - : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"]))); + : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl))); if (typeof decoded === \\"undefined\\") continue; _2KM4fetG6FTJ1cphj76rzJ8Dyv7p_serviceEndpoint.push(decoded); } @@ -27585,7 +27589,7 @@ cryptosuite?: \\"eddsa-jcs-2022\\" | null;verificationMethod?: Multikey | URL | const decoded = await Multikey.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _2mHVKxqA7zncjveJrDEo3pWpMZqg_verificationMethod.push(decoded); @@ -28536,23 +28540,23 @@ owner?: Application | Group | Organization | Person | Service | URL | null;publi typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Application\\") ? await Application.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Group\\") ? await Group.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Organization\\") ? await Organization.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Person\\") ? await Person.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Service\\") ? await Service.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -29416,23 +29420,23 @@ controller?: Application | Group | Organization | Person | Service | URL | null; typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Application\\") ? await Application.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Group\\") ? await Group.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Organization\\") ? await Organization.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Person\\") ? await Person.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Service\\") ? await Service.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -30266,9 +30270,9 @@ action?: string | null;resourceConformsTo?: URL | null;resourceQuantity?: Measur : \\"\\" ) ) - : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) + : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) ? new URL(v[\\"@id\\"]) - : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"]))); + : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl))); if (typeof decoded === \\"undefined\\") continue; _BBAeMUUQDwBQn6cvu3P2Csd6b6h_resourceConformsTo.push(decoded); } @@ -30288,7 +30292,7 @@ action?: string | null;resourceConformsTo?: URL | null;resourceQuantity?: Measur const decoded = await Measure.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _2dLfqTbbRiggEcMQWbHpxkQrtmrc_resourceQuantity.push(decoded); @@ -30309,7 +30313,7 @@ action?: string | null;resourceConformsTo?: URL | null;resourceQuantity?: Measur const decoded = await Measure.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _YmNSnuih3Zk4VdR5JPVnQYroLAh_availableQuantity.push(decoded); @@ -30330,7 +30334,7 @@ action?: string | null;resourceConformsTo?: URL | null;resourceQuantity?: Measur const decoded = await Measure.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _3XueAFds2NBrqNpnV8b7aC8hV72S_minimumQuantity.push(decoded); @@ -31132,7 +31136,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Intent.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _sS5LvXX8cn4c3x6ux836AwYbTyJ_publishes.push(decoded); @@ -31153,7 +31157,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Intent.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _Z4ntJgFwR9BaNTbFvkRTGNEwUwy_reciprocal.push(decoded); @@ -37865,7 +37869,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await CryptographicKey.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _axq166E2eZADq34V4MYUc8KMZdC_publicKey.push(decoded); @@ -37898,7 +37902,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Multikey.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.push(decoded); @@ -37951,11 +37955,11 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#OrderedCollection\\") ? await OrderedCollection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#OrderedCollectionPage\\") ? await OrderedCollectionPage.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -37992,11 +37996,11 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#OrderedCollection\\") ? await OrderedCollection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#OrderedCollectionPage\\") ? await OrderedCollectionPage.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -38031,7 +38035,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _3yAv8jymNfNuJUDuBzJ1NQhdbAee_following.push(decoded); @@ -38064,7 +38068,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _BBCTgfphhsFzpVfKTykGSpBNwoA_followers.push(decoded); @@ -38097,7 +38101,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _3bgkPwJanyTCoVFM9ovRcus8tKkU_liked.push(decoded); @@ -38130,7 +38134,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _4N1vBJzXDf8NbBumeECQMFvKetja_featured.push(decoded); @@ -38163,7 +38167,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags.push(decoded); @@ -38196,7 +38200,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.push(decoded); @@ -38217,7 +38221,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Endpoints.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints.push(decoded); @@ -38324,23 +38328,23 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Application\\") ? await Application.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Group\\") ? await Group.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Organization\\") ? await Organization.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Person\\") ? await Person.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Service\\") ? await Service.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -38377,23 +38381,23 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Application\\") ? await Application.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Group\\") ? await Group.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Organization\\") ? await Organization.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Person\\") ? await Person.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Service\\") ? await Service.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -38428,7 +38432,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await DidService.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.push(decoded); @@ -40648,7 +40652,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote.push(decoded); @@ -40707,7 +40711,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await QuoteAuthorization.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization.push(decoded); @@ -46245,7 +46249,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await CollectionPage.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _3UyUdxnyn6cDn53QKrh4MBiearma_current.push(decoded); @@ -46278,7 +46282,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await CollectionPage.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _J52RqweMe6hhv7RnLJMC8BExTE5_first.push(decoded); @@ -46311,7 +46315,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await CollectionPage.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _gyJJnyEFnuNVi1HFZKfAn3Hfn26_last.push(decoded); @@ -46347,12 +46351,12 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu && Array.isArray(v[\\"@type\\"])&& [\\"https://www.w3.org/ns/activitystreams#Object\\",\\"http://joinmastodon.org/ns#Emoji\\",\\"http://litepub.social/ns#ChatMessage\\",\\"https://gotosocial.org/ns#AnnounceAuthorization\\",\\"https://gotosocial.org/ns#LikeApproval\\",\\"https://gotosocial.org/ns#ReplyAuthorization\\",\\"https://w3id.org/fep/044f#QuoteAuthorization\\",\\"https://w3id.org/valueflows/ont/vf#Proposal\\",\\"https://www.w3.org/ns/activitystreams#Activity\\",\\"http://litepub.social/ns#EmojiReact\\",\\"https://gotosocial.org/ns#AnnounceRequest\\",\\"https://gotosocial.org/ns#LikeRequest\\",\\"https://gotosocial.org/ns#ReplyRequest\\",\\"https://w3id.org/fep/044f#QuoteRequest\\",\\"https://www.w3.org/ns/activitystreams#Accept\\",\\"https://www.w3.org/ns/activitystreams#TentativeAccept\\",\\"https://www.w3.org/ns/activitystreams#Add\\",\\"https://www.w3.org/ns/activitystreams#Announce\\",\\"https://www.w3.org/ns/activitystreams#Create\\",\\"https://www.w3.org/ns/activitystreams#Delete\\",\\"https://www.w3.org/ns/activitystreams#Dislike\\",\\"https://www.w3.org/ns/activitystreams#Flag\\",\\"https://www.w3.org/ns/activitystreams#Follow\\",\\"https://www.w3.org/ns/activitystreams#Ignore\\",\\"https://www.w3.org/ns/activitystreams#Block\\",\\"https://www.w3.org/ns/activitystreams#IntransitiveActivity\\",\\"https://www.w3.org/ns/activitystreams#Arrive\\",\\"https://www.w3.org/ns/activitystreams#Question\\",\\"https://www.w3.org/ns/activitystreams#Travel\\",\\"https://www.w3.org/ns/activitystreams#Join\\",\\"https://www.w3.org/ns/activitystreams#Leave\\",\\"https://www.w3.org/ns/activitystreams#Like\\",\\"https://www.w3.org/ns/activitystreams#Listen\\",\\"https://www.w3.org/ns/activitystreams#Move\\",\\"https://www.w3.org/ns/activitystreams#Offer\\",\\"https://www.w3.org/ns/activitystreams#Invite\\",\\"https://www.w3.org/ns/activitystreams#Read\\",\\"https://www.w3.org/ns/activitystreams#Reject\\",\\"https://www.w3.org/ns/activitystreams#TentativeReject\\",\\"https://www.w3.org/ns/activitystreams#Remove\\",\\"https://www.w3.org/ns/activitystreams#Undo\\",\\"https://www.w3.org/ns/activitystreams#Update\\",\\"https://www.w3.org/ns/activitystreams#View\\",\\"https://www.w3.org/ns/activitystreams#Application\\",\\"https://www.w3.org/ns/activitystreams#Article\\",\\"https://www.w3.org/ns/activitystreams#Collection\\",\\"https://www.w3.org/ns/activitystreams#CollectionPage\\",\\"https://www.w3.org/ns/activitystreams#OrderedCollectionPage\\",\\"https://www.w3.org/ns/activitystreams#OrderedCollection\\",\\"https://www.w3.org/ns/activitystreams#Document\\",\\"https://www.w3.org/ns/activitystreams#Audio\\",\\"https://www.w3.org/ns/activitystreams#Image\\",\\"https://www.w3.org/ns/activitystreams#Page\\",\\"https://www.w3.org/ns/activitystreams#Video\\",\\"https://www.w3.org/ns/activitystreams#Event\\",\\"https://www.w3.org/ns/activitystreams#Group\\",\\"https://www.w3.org/ns/activitystreams#Note\\",\\"https://www.w3.org/ns/activitystreams#Organization\\",\\"https://www.w3.org/ns/activitystreams#Person\\",\\"https://www.w3.org/ns/activitystreams#Place\\",\\"https://www.w3.org/ns/activitystreams#Profile\\",\\"https://www.w3.org/ns/activitystreams#Relationship\\",\\"https://www.w3.org/ns/activitystreams#Service\\",\\"https://www.w3.org/ns/activitystreams#Tombstone\\"].some( t => v[\\"@type\\"].includes(t)) ? await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& [\\"https://www.w3.org/ns/activitystreams#Link\\",\\"https://www.w3.org/ns/activitystreams#Hashtag\\",\\"https://www.w3.org/ns/activitystreams#Mention\\"].some( t => v[\\"@type\\"].includes(t)) ? await Link.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -46387,7 +46391,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _4TB9Qd9ddtcZEpMfzbHhzafE6jaJ_likesOf.push(decoded); @@ -46420,7 +46424,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _3manzgeKiPsugpztKGiaUUwJ3ito_sharesOf.push(decoded); @@ -46453,7 +46457,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _3T3oGm3twpcQUcrnMisXQtmDZ32X_repliesOf.push(decoded); @@ -46486,7 +46490,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _2bvRkAFZjMfVD8jiUWZJr5YokSeN_inboxOf.push(decoded); @@ -46519,7 +46523,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _4AHzVZDxHjK6uEWa9UiKHGK34yYm_outboxOf.push(decoded); @@ -46552,7 +46556,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _41aoZ5M6yRUHy3Zx8q6iuZQxtopb_followersOf.push(decoded); @@ -46585,7 +46589,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _2nXT2Ah42UjEEQF5oJQ39CbKB1xj_followingOf.push(decoded); @@ -46618,7 +46622,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _2bsySzmT3qEZcrnoe3tZ5xBjXSju_likedOf.push(decoded); @@ -48100,7 +48104,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _2kWgBhQKjEauxx8C6qF3ZQamK4Le_partOf.push(decoded); @@ -48133,7 +48137,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await CollectionPage.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _3BT4kQLcXhHx7TAWaNDKh8nFn9eY_next.push(decoded); @@ -48166,7 +48170,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await CollectionPage.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _3b8yG8tDNzQFFEnWhCc13G8eHooA_prev.push(decoded); @@ -50045,9 +50049,9 @@ proxyUrl?: URL | null;oauthAuthorizationEndpoint?: URL | null;oauthTokenEndpoint : \\"\\" ) ) - : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) + : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) ? new URL(v[\\"@id\\"]) - : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"]))); + : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl))); if (typeof decoded === \\"undefined\\") continue; _2JCYDbSxEHCCLdBYed33cCETfGyR_proxyUrl.push(decoded); } @@ -50078,9 +50082,9 @@ proxyUrl?: URL | null;oauthAuthorizationEndpoint?: URL | null;oauthTokenEndpoint : \\"\\" ) ) - : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) + : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) ? new URL(v[\\"@id\\"]) - : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"]))); + : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl))); if (typeof decoded === \\"undefined\\") continue; _25S6UmgzDead8hxL5sQFezZTAusd_oauthAuthorizationEndpoint.push(decoded); } @@ -50111,9 +50115,9 @@ proxyUrl?: URL | null;oauthAuthorizationEndpoint?: URL | null;oauthTokenEndpoint : \\"\\" ) ) - : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) + : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) ? new URL(v[\\"@id\\"]) - : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"]))); + : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl))); if (typeof decoded === \\"undefined\\") continue; _iAMxqrSba7yBCRB1FZ5kEVdKEZ3_oauthTokenEndpoint.push(decoded); } @@ -50144,9 +50148,9 @@ proxyUrl?: URL | null;oauthAuthorizationEndpoint?: URL | null;oauthTokenEndpoint : \\"\\" ) ) - : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) + : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) ? new URL(v[\\"@id\\"]) - : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"]))); + : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl))); if (typeof decoded === \\"undefined\\") continue; _8Bx9qN8oU7Bpt2xi6khaxWp1gMr_provideClientKey.push(decoded); } @@ -50177,9 +50181,9 @@ proxyUrl?: URL | null;oauthAuthorizationEndpoint?: URL | null;oauthTokenEndpoint : \\"\\" ) ) - : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) + : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) ? new URL(v[\\"@id\\"]) - : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"]))); + : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl))); if (typeof decoded === \\"undefined\\") continue; _3dU7PMVQZJpsCpo2F4RQXxBXdPmS_signClientKey.push(decoded); } @@ -50210,9 +50214,9 @@ proxyUrl?: URL | null;oauthAuthorizationEndpoint?: URL | null;oauthTokenEndpoint : \\"\\" ) ) - : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) + : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) ? new URL(v[\\"@id\\"]) - : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"]))); + : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl))); if (typeof decoded === \\"undefined\\") continue; _3JprUSDLVqqX4dwHRi37qGZZCRCc_sharedInbox.push(decoded); } @@ -56958,7 +56962,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await CryptographicKey.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _axq166E2eZADq34V4MYUc8KMZdC_publicKey.push(decoded); @@ -56991,7 +56995,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Multikey.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.push(decoded); @@ -57044,11 +57048,11 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#OrderedCollection\\") ? await OrderedCollection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#OrderedCollectionPage\\") ? await OrderedCollectionPage.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -57085,11 +57089,11 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#OrderedCollection\\") ? await OrderedCollection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#OrderedCollectionPage\\") ? await OrderedCollectionPage.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -57124,7 +57128,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _3yAv8jymNfNuJUDuBzJ1NQhdbAee_following.push(decoded); @@ -57157,7 +57161,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _BBCTgfphhsFzpVfKTykGSpBNwoA_followers.push(decoded); @@ -57190,7 +57194,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _3bgkPwJanyTCoVFM9ovRcus8tKkU_liked.push(decoded); @@ -57223,7 +57227,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _4N1vBJzXDf8NbBumeECQMFvKetja_featured.push(decoded); @@ -57256,7 +57260,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags.push(decoded); @@ -57289,7 +57293,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.push(decoded); @@ -57310,7 +57314,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Endpoints.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints.push(decoded); @@ -57417,23 +57421,23 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Application\\") ? await Application.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Group\\") ? await Group.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Organization\\") ? await Organization.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Person\\") ? await Person.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Service\\") ? await Service.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -57470,23 +57474,23 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Application\\") ? await Application.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Group\\") ? await Group.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Organization\\") ? await Organization.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Person\\") ? await Person.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Service\\") ? await Service.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -57521,7 +57525,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await DidService.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.push(decoded); @@ -59367,9 +59371,9 @@ get names(): ((string | LanguageString))[] { : \\"\\" ) ) - : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) + : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) ? new URL(v[\\"@id\\"]) - : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"]))); + : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl))); if (typeof decoded === \\"undefined\\") continue; _pVjLsybKQdmkjuU7MHjiVmNnuj7_href.push(decoded); } @@ -59518,12 +59522,12 @@ get names(): ((string | LanguageString))[] { && Array.isArray(v[\\"@type\\"])&& [\\"https://www.w3.org/ns/activitystreams#Link\\",\\"https://www.w3.org/ns/activitystreams#Hashtag\\",\\"https://www.w3.org/ns/activitystreams#Mention\\"].some( t => v[\\"@type\\"].includes(t)) ? await Link.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& [\\"https://www.w3.org/ns/activitystreams#Object\\",\\"http://joinmastodon.org/ns#Emoji\\",\\"http://litepub.social/ns#ChatMessage\\",\\"https://gotosocial.org/ns#AnnounceAuthorization\\",\\"https://gotosocial.org/ns#LikeApproval\\",\\"https://gotosocial.org/ns#ReplyAuthorization\\",\\"https://w3id.org/fep/044f#QuoteAuthorization\\",\\"https://w3id.org/valueflows/ont/vf#Proposal\\",\\"https://www.w3.org/ns/activitystreams#Activity\\",\\"http://litepub.social/ns#EmojiReact\\",\\"https://gotosocial.org/ns#AnnounceRequest\\",\\"https://gotosocial.org/ns#LikeRequest\\",\\"https://gotosocial.org/ns#ReplyRequest\\",\\"https://w3id.org/fep/044f#QuoteRequest\\",\\"https://www.w3.org/ns/activitystreams#Accept\\",\\"https://www.w3.org/ns/activitystreams#TentativeAccept\\",\\"https://www.w3.org/ns/activitystreams#Add\\",\\"https://www.w3.org/ns/activitystreams#Announce\\",\\"https://www.w3.org/ns/activitystreams#Create\\",\\"https://www.w3.org/ns/activitystreams#Delete\\",\\"https://www.w3.org/ns/activitystreams#Dislike\\",\\"https://www.w3.org/ns/activitystreams#Flag\\",\\"https://www.w3.org/ns/activitystreams#Follow\\",\\"https://www.w3.org/ns/activitystreams#Ignore\\",\\"https://www.w3.org/ns/activitystreams#Block\\",\\"https://www.w3.org/ns/activitystreams#IntransitiveActivity\\",\\"https://www.w3.org/ns/activitystreams#Arrive\\",\\"https://www.w3.org/ns/activitystreams#Question\\",\\"https://www.w3.org/ns/activitystreams#Travel\\",\\"https://www.w3.org/ns/activitystreams#Join\\",\\"https://www.w3.org/ns/activitystreams#Leave\\",\\"https://www.w3.org/ns/activitystreams#Like\\",\\"https://www.w3.org/ns/activitystreams#Listen\\",\\"https://www.w3.org/ns/activitystreams#Move\\",\\"https://www.w3.org/ns/activitystreams#Offer\\",\\"https://www.w3.org/ns/activitystreams#Invite\\",\\"https://www.w3.org/ns/activitystreams#Read\\",\\"https://www.w3.org/ns/activitystreams#Reject\\",\\"https://www.w3.org/ns/activitystreams#TentativeReject\\",\\"https://www.w3.org/ns/activitystreams#Remove\\",\\"https://www.w3.org/ns/activitystreams#Undo\\",\\"https://www.w3.org/ns/activitystreams#Update\\",\\"https://www.w3.org/ns/activitystreams#View\\",\\"https://www.w3.org/ns/activitystreams#Application\\",\\"https://www.w3.org/ns/activitystreams#Article\\",\\"https://www.w3.org/ns/activitystreams#Collection\\",\\"https://www.w3.org/ns/activitystreams#CollectionPage\\",\\"https://www.w3.org/ns/activitystreams#OrderedCollectionPage\\",\\"https://www.w3.org/ns/activitystreams#OrderedCollection\\",\\"https://www.w3.org/ns/activitystreams#Document\\",\\"https://www.w3.org/ns/activitystreams#Audio\\",\\"https://www.w3.org/ns/activitystreams#Image\\",\\"https://www.w3.org/ns/activitystreams#Page\\",\\"https://www.w3.org/ns/activitystreams#Video\\",\\"https://www.w3.org/ns/activitystreams#Event\\",\\"https://www.w3.org/ns/activitystreams#Group\\",\\"https://www.w3.org/ns/activitystreams#Note\\",\\"https://www.w3.org/ns/activitystreams#Organization\\",\\"https://www.w3.org/ns/activitystreams#Person\\",\\"https://www.w3.org/ns/activitystreams#Place\\",\\"https://www.w3.org/ns/activitystreams#Profile\\",\\"https://www.w3.org/ns/activitystreams#Relationship\\",\\"https://www.w3.org/ns/activitystreams#Service\\",\\"https://www.w3.org/ns/activitystreams#Tombstone\\"].some( t => v[\\"@type\\"].includes(t)) ? await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -64024,7 +64028,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote.push(decoded); @@ -64083,7 +64087,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await QuoteAuthorization.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization.push(decoded); @@ -64825,12 +64829,12 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu && Array.isArray(v[\\"@type\\"])&& [\\"https://www.w3.org/ns/activitystreams#Object\\",\\"http://joinmastodon.org/ns#Emoji\\",\\"http://litepub.social/ns#ChatMessage\\",\\"https://gotosocial.org/ns#AnnounceAuthorization\\",\\"https://gotosocial.org/ns#LikeApproval\\",\\"https://gotosocial.org/ns#ReplyAuthorization\\",\\"https://w3id.org/fep/044f#QuoteAuthorization\\",\\"https://w3id.org/valueflows/ont/vf#Proposal\\",\\"https://www.w3.org/ns/activitystreams#Activity\\",\\"http://litepub.social/ns#EmojiReact\\",\\"https://gotosocial.org/ns#AnnounceRequest\\",\\"https://gotosocial.org/ns#LikeRequest\\",\\"https://gotosocial.org/ns#ReplyRequest\\",\\"https://w3id.org/fep/044f#QuoteRequest\\",\\"https://www.w3.org/ns/activitystreams#Accept\\",\\"https://www.w3.org/ns/activitystreams#TentativeAccept\\",\\"https://www.w3.org/ns/activitystreams#Add\\",\\"https://www.w3.org/ns/activitystreams#Announce\\",\\"https://www.w3.org/ns/activitystreams#Create\\",\\"https://www.w3.org/ns/activitystreams#Delete\\",\\"https://www.w3.org/ns/activitystreams#Dislike\\",\\"https://www.w3.org/ns/activitystreams#Flag\\",\\"https://www.w3.org/ns/activitystreams#Follow\\",\\"https://www.w3.org/ns/activitystreams#Ignore\\",\\"https://www.w3.org/ns/activitystreams#Block\\",\\"https://www.w3.org/ns/activitystreams#IntransitiveActivity\\",\\"https://www.w3.org/ns/activitystreams#Arrive\\",\\"https://www.w3.org/ns/activitystreams#Question\\",\\"https://www.w3.org/ns/activitystreams#Travel\\",\\"https://www.w3.org/ns/activitystreams#Join\\",\\"https://www.w3.org/ns/activitystreams#Leave\\",\\"https://www.w3.org/ns/activitystreams#Like\\",\\"https://www.w3.org/ns/activitystreams#Listen\\",\\"https://www.w3.org/ns/activitystreams#Move\\",\\"https://www.w3.org/ns/activitystreams#Offer\\",\\"https://www.w3.org/ns/activitystreams#Invite\\",\\"https://www.w3.org/ns/activitystreams#Read\\",\\"https://www.w3.org/ns/activitystreams#Reject\\",\\"https://www.w3.org/ns/activitystreams#TentativeReject\\",\\"https://www.w3.org/ns/activitystreams#Remove\\",\\"https://www.w3.org/ns/activitystreams#Undo\\",\\"https://www.w3.org/ns/activitystreams#Update\\",\\"https://www.w3.org/ns/activitystreams#View\\",\\"https://www.w3.org/ns/activitystreams#Application\\",\\"https://www.w3.org/ns/activitystreams#Article\\",\\"https://www.w3.org/ns/activitystreams#Collection\\",\\"https://www.w3.org/ns/activitystreams#CollectionPage\\",\\"https://www.w3.org/ns/activitystreams#OrderedCollectionPage\\",\\"https://www.w3.org/ns/activitystreams#OrderedCollection\\",\\"https://www.w3.org/ns/activitystreams#Document\\",\\"https://www.w3.org/ns/activitystreams#Audio\\",\\"https://www.w3.org/ns/activitystreams#Image\\",\\"https://www.w3.org/ns/activitystreams#Page\\",\\"https://www.w3.org/ns/activitystreams#Video\\",\\"https://www.w3.org/ns/activitystreams#Event\\",\\"https://www.w3.org/ns/activitystreams#Group\\",\\"https://www.w3.org/ns/activitystreams#Note\\",\\"https://www.w3.org/ns/activitystreams#Organization\\",\\"https://www.w3.org/ns/activitystreams#Person\\",\\"https://www.w3.org/ns/activitystreams#Place\\",\\"https://www.w3.org/ns/activitystreams#Profile\\",\\"https://www.w3.org/ns/activitystreams#Relationship\\",\\"https://www.w3.org/ns/activitystreams#Service\\",\\"https://www.w3.org/ns/activitystreams#Tombstone\\"].some( t => v[\\"@type\\"].includes(t)) ? await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& [\\"https://www.w3.org/ns/activitystreams#Link\\",\\"https://www.w3.org/ns/activitystreams#Hashtag\\",\\"https://www.w3.org/ns/activitystreams#Mention\\"].some( t => v[\\"@type\\"].includes(t)) ? await Link.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -65613,12 +65617,12 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu && Array.isArray(v[\\"@type\\"])&& [\\"https://www.w3.org/ns/activitystreams#Object\\",\\"http://joinmastodon.org/ns#Emoji\\",\\"http://litepub.social/ns#ChatMessage\\",\\"https://gotosocial.org/ns#AnnounceAuthorization\\",\\"https://gotosocial.org/ns#LikeApproval\\",\\"https://gotosocial.org/ns#ReplyAuthorization\\",\\"https://w3id.org/fep/044f#QuoteAuthorization\\",\\"https://w3id.org/valueflows/ont/vf#Proposal\\",\\"https://www.w3.org/ns/activitystreams#Activity\\",\\"http://litepub.social/ns#EmojiReact\\",\\"https://gotosocial.org/ns#AnnounceRequest\\",\\"https://gotosocial.org/ns#LikeRequest\\",\\"https://gotosocial.org/ns#ReplyRequest\\",\\"https://w3id.org/fep/044f#QuoteRequest\\",\\"https://www.w3.org/ns/activitystreams#Accept\\",\\"https://www.w3.org/ns/activitystreams#TentativeAccept\\",\\"https://www.w3.org/ns/activitystreams#Add\\",\\"https://www.w3.org/ns/activitystreams#Announce\\",\\"https://www.w3.org/ns/activitystreams#Create\\",\\"https://www.w3.org/ns/activitystreams#Delete\\",\\"https://www.w3.org/ns/activitystreams#Dislike\\",\\"https://www.w3.org/ns/activitystreams#Flag\\",\\"https://www.w3.org/ns/activitystreams#Follow\\",\\"https://www.w3.org/ns/activitystreams#Ignore\\",\\"https://www.w3.org/ns/activitystreams#Block\\",\\"https://www.w3.org/ns/activitystreams#IntransitiveActivity\\",\\"https://www.w3.org/ns/activitystreams#Arrive\\",\\"https://www.w3.org/ns/activitystreams#Question\\",\\"https://www.w3.org/ns/activitystreams#Travel\\",\\"https://www.w3.org/ns/activitystreams#Join\\",\\"https://www.w3.org/ns/activitystreams#Leave\\",\\"https://www.w3.org/ns/activitystreams#Like\\",\\"https://www.w3.org/ns/activitystreams#Listen\\",\\"https://www.w3.org/ns/activitystreams#Move\\",\\"https://www.w3.org/ns/activitystreams#Offer\\",\\"https://www.w3.org/ns/activitystreams#Invite\\",\\"https://www.w3.org/ns/activitystreams#Read\\",\\"https://www.w3.org/ns/activitystreams#Reject\\",\\"https://www.w3.org/ns/activitystreams#TentativeReject\\",\\"https://www.w3.org/ns/activitystreams#Remove\\",\\"https://www.w3.org/ns/activitystreams#Undo\\",\\"https://www.w3.org/ns/activitystreams#Update\\",\\"https://www.w3.org/ns/activitystreams#View\\",\\"https://www.w3.org/ns/activitystreams#Application\\",\\"https://www.w3.org/ns/activitystreams#Article\\",\\"https://www.w3.org/ns/activitystreams#Collection\\",\\"https://www.w3.org/ns/activitystreams#CollectionPage\\",\\"https://www.w3.org/ns/activitystreams#OrderedCollectionPage\\",\\"https://www.w3.org/ns/activitystreams#OrderedCollection\\",\\"https://www.w3.org/ns/activitystreams#Document\\",\\"https://www.w3.org/ns/activitystreams#Audio\\",\\"https://www.w3.org/ns/activitystreams#Image\\",\\"https://www.w3.org/ns/activitystreams#Page\\",\\"https://www.w3.org/ns/activitystreams#Video\\",\\"https://www.w3.org/ns/activitystreams#Event\\",\\"https://www.w3.org/ns/activitystreams#Group\\",\\"https://www.w3.org/ns/activitystreams#Note\\",\\"https://www.w3.org/ns/activitystreams#Organization\\",\\"https://www.w3.org/ns/activitystreams#Person\\",\\"https://www.w3.org/ns/activitystreams#Place\\",\\"https://www.w3.org/ns/activitystreams#Profile\\",\\"https://www.w3.org/ns/activitystreams#Relationship\\",\\"https://www.w3.org/ns/activitystreams#Service\\",\\"https://www.w3.org/ns/activitystreams#Tombstone\\"].some( t => v[\\"@type\\"].includes(t)) ? await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& [\\"https://www.w3.org/ns/activitystreams#Link\\",\\"https://www.w3.org/ns/activitystreams#Hashtag\\",\\"https://www.w3.org/ns/activitystreams#Mention\\"].some( t => v[\\"@type\\"].includes(t)) ? await Link.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -71284,7 +71288,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await CryptographicKey.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _axq166E2eZADq34V4MYUc8KMZdC_publicKey.push(decoded); @@ -71317,7 +71321,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Multikey.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.push(decoded); @@ -71370,11 +71374,11 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#OrderedCollection\\") ? await OrderedCollection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#OrderedCollectionPage\\") ? await OrderedCollectionPage.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -71411,11 +71415,11 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#OrderedCollection\\") ? await OrderedCollection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#OrderedCollectionPage\\") ? await OrderedCollectionPage.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -71450,7 +71454,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _3yAv8jymNfNuJUDuBzJ1NQhdbAee_following.push(decoded); @@ -71483,7 +71487,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _BBCTgfphhsFzpVfKTykGSpBNwoA_followers.push(decoded); @@ -71516,7 +71520,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _3bgkPwJanyTCoVFM9ovRcus8tKkU_liked.push(decoded); @@ -71549,7 +71553,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _4N1vBJzXDf8NbBumeECQMFvKetja_featured.push(decoded); @@ -71582,7 +71586,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags.push(decoded); @@ -71615,7 +71619,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.push(decoded); @@ -71636,7 +71640,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Endpoints.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints.push(decoded); @@ -71743,23 +71747,23 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Application\\") ? await Application.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Group\\") ? await Group.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Organization\\") ? await Organization.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Person\\") ? await Person.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Service\\") ? await Service.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -71796,23 +71800,23 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Application\\") ? await Application.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Group\\") ? await Group.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Organization\\") ? await Organization.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Person\\") ? await Person.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Service\\") ? await Service.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -71847,7 +71851,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await DidService.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.push(decoded); @@ -78296,7 +78300,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await CryptographicKey.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _axq166E2eZADq34V4MYUc8KMZdC_publicKey.push(decoded); @@ -78329,7 +78333,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Multikey.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.push(decoded); @@ -78382,11 +78386,11 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#OrderedCollection\\") ? await OrderedCollection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#OrderedCollectionPage\\") ? await OrderedCollectionPage.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -78423,11 +78427,11 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#OrderedCollection\\") ? await OrderedCollection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#OrderedCollectionPage\\") ? await OrderedCollectionPage.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -78462,7 +78466,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _3yAv8jymNfNuJUDuBzJ1NQhdbAee_following.push(decoded); @@ -78495,7 +78499,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _BBCTgfphhsFzpVfKTykGSpBNwoA_followers.push(decoded); @@ -78528,7 +78532,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _3bgkPwJanyTCoVFM9ovRcus8tKkU_liked.push(decoded); @@ -78561,7 +78565,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _4N1vBJzXDf8NbBumeECQMFvKetja_featured.push(decoded); @@ -78594,7 +78598,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags.push(decoded); @@ -78627,7 +78631,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.push(decoded); @@ -78648,7 +78652,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Endpoints.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints.push(decoded); @@ -78755,23 +78759,23 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Application\\") ? await Application.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Group\\") ? await Group.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Organization\\") ? await Organization.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Person\\") ? await Person.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Service\\") ? await Service.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -78808,23 +78812,23 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Application\\") ? await Application.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Group\\") ? await Group.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Organization\\") ? await Organization.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Person\\") ? await Person.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Service\\") ? await Service.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -78859,7 +78863,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await DidService.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.push(decoded); @@ -80286,9 +80290,9 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu : \\"\\" ) ) - : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) + : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) ? new URL(v[\\"@id\\"]) - : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"]))) : undefined + : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl))) : undefined ; if (typeof decoded === \\"undefined\\") continue; _oKrwxU4V8wiKhMW1QEYQibcJh8c_units.push(decoded); @@ -81066,7 +81070,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _3CLQ1PLSXrhSQbTGGHuxNyaEFKM1_describes.push(decoded); @@ -82729,7 +82733,7 @@ instruments?: (Object | URL)[];exclusiveOptions?: (Object | URL)[];inclusiveOpti const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _2N5scKaVEcdYHFmfKYYacAwUhUgQ_oneOf.push(decoded); @@ -82762,7 +82766,7 @@ instruments?: (Object | URL)[];exclusiveOptions?: (Object | URL)[];inclusiveOpti const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _2mV6isMTPRKbWdLCjcpiEysq5dAY_anyOf.push(decoded); @@ -82844,7 +82848,7 @@ instruments?: (Object | URL)[];exclusiveOptions?: (Object | URL)[];inclusiveOpti const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote.push(decoded); @@ -82903,7 +82907,7 @@ instruments?: (Object | URL)[];exclusiveOptions?: (Object | URL)[];inclusiveOpti const decoded = await QuoteAuthorization.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization.push(decoded); @@ -85253,7 +85257,7 @@ relationships?: (Object | URL)[];} const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _2Zqdmi46ZnDQsECS6mzwhrv3rUKq_subject.push(decoded); @@ -85286,7 +85290,7 @@ relationships?: (Object | URL)[];} const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _2MH19yxjn1wnHsNfa5n4JBhJzxyc_object.push(decoded); @@ -85319,7 +85323,7 @@ relationships?: (Object | URL)[];} const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _4Lzz89F9qipAQSGkWyX9DGWiUojG_relationship.push(decoded); @@ -91329,7 +91333,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await CryptographicKey.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _axq166E2eZADq34V4MYUc8KMZdC_publicKey.push(decoded); @@ -91362,7 +91366,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Multikey.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.push(decoded); @@ -91415,11 +91419,11 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#OrderedCollection\\") ? await OrderedCollection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#OrderedCollectionPage\\") ? await OrderedCollectionPage.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -91456,11 +91460,11 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#OrderedCollection\\") ? await OrderedCollection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#OrderedCollectionPage\\") ? await OrderedCollectionPage.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -91495,7 +91499,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _3yAv8jymNfNuJUDuBzJ1NQhdbAee_following.push(decoded); @@ -91528,7 +91532,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _BBCTgfphhsFzpVfKTykGSpBNwoA_followers.push(decoded); @@ -91561,7 +91565,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _3bgkPwJanyTCoVFM9ovRcus8tKkU_liked.push(decoded); @@ -91594,7 +91598,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _4N1vBJzXDf8NbBumeECQMFvKetja_featured.push(decoded); @@ -91627,7 +91631,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags.push(decoded); @@ -91660,7 +91664,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.push(decoded); @@ -91681,7 +91685,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Endpoints.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints.push(decoded); @@ -91788,23 +91792,23 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Application\\") ? await Application.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Group\\") ? await Group.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Organization\\") ? await Organization.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Person\\") ? await Person.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Service\\") ? await Service.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -91841,23 +91845,23 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Application\\") ? await Application.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Group\\") ? await Group.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Organization\\") ? await Organization.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Person\\") ? await Person.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Service\\") ? await Service.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -91892,7 +91896,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await DidService.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } + { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } ); if (typeof decoded === \\"undefined\\") continue; _4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.push(decoded); diff --git a/packages/vocab-tools/src/__snapshots__/class.test.ts.snap b/packages/vocab-tools/src/__snapshots__/class.test.ts.snap index d8bee30ef..574747f41 100644 --- a/packages/vocab-tools/src/__snapshots__/class.test.ts.snap +++ b/packages/vocab-tools/src/__snapshots__/class.test.ts.snap @@ -3679,23 +3679,25 @@ get names(): ((string | LanguageString))[] { this._tracerProvider ?? trace.getTracerProvider(); const baseUrl = options.baseUrl; - const _expanded = await jsonld.expand(jsonLd, { - documentLoader: contextLoader, - keepFreeFloatingNodes: true, - }); - for (const _pp_obj of _expanded) { - - { - const _result = await _ppM0["normalizeLinkToImage"](_pp_obj, { - documentLoader, - contextLoader, - tracerProvider, - baseUrl, - }); - if (_result instanceof Error) throw _result; - if (_result !== undefined) return _result as Image; - } + if (jsonLd != null && typeof jsonLd === "object") { + const _expanded = await jsonld.expand(jsonLd, { + documentLoader: contextLoader, + keepFreeFloatingNodes: true, + }); + for (const _pp_obj of _expanded) { + + { + const _result = await _ppM0["normalizeLinkToImage"](_pp_obj, { + documentLoader, + contextLoader, + tracerProvider, + baseUrl, + }); + if (_result instanceof Error) throw _result; + if (_result !== undefined) return _result as Image; + } + } } try { @@ -4024,23 +4026,25 @@ get names(): ((string | LanguageString))[] { this._tracerProvider ?? trace.getTracerProvider(); const baseUrl = options.baseUrl; - const _expanded = await jsonld.expand(jsonLd, { - documentLoader: contextLoader, - keepFreeFloatingNodes: true, - }); - for (const _pp_obj of _expanded) { - - { - const _result = await _ppM0["normalizeLinkToImage"](_pp_obj, { - documentLoader, - contextLoader, - tracerProvider, - baseUrl, - }); - if (_result instanceof Error) throw _result; - if (_result !== undefined) return _result as Image; - } + if (jsonLd != null && typeof jsonLd === "object") { + const _expanded = await jsonld.expand(jsonLd, { + documentLoader: contextLoader, + keepFreeFloatingNodes: true, + }); + for (const _pp_obj of _expanded) { + + { + const _result = await _ppM0["normalizeLinkToImage"](_pp_obj, { + documentLoader, + contextLoader, + tracerProvider, + baseUrl, + }); + if (_result instanceof Error) throw _result; + if (_result !== undefined) return _result as Image; + } + } } try { @@ -10591,16 +10595,16 @@ get urls(): ((URL | Link))[] { && Array.isArray(v["@type"])&& ["https://www.w3.org/ns/activitystreams#Object","http://joinmastodon.org/ns#Emoji","http://litepub.social/ns#ChatMessage","https://gotosocial.org/ns#AnnounceAuthorization","https://gotosocial.org/ns#LikeApproval","https://gotosocial.org/ns#ReplyAuthorization","https://w3id.org/fep/044f#QuoteAuthorization","https://w3id.org/valueflows/ont/vf#Proposal","https://www.w3.org/ns/activitystreams#Activity","http://litepub.social/ns#EmojiReact","https://gotosocial.org/ns#AnnounceRequest","https://gotosocial.org/ns#LikeRequest","https://gotosocial.org/ns#ReplyRequest","https://w3id.org/fep/044f#QuoteRequest","https://www.w3.org/ns/activitystreams#Accept","https://www.w3.org/ns/activitystreams#TentativeAccept","https://www.w3.org/ns/activitystreams#Add","https://www.w3.org/ns/activitystreams#Announce","https://www.w3.org/ns/activitystreams#Create","https://www.w3.org/ns/activitystreams#Delete","https://www.w3.org/ns/activitystreams#Dislike","https://www.w3.org/ns/activitystreams#Flag","https://www.w3.org/ns/activitystreams#Follow","https://www.w3.org/ns/activitystreams#Ignore","https://www.w3.org/ns/activitystreams#Block","https://www.w3.org/ns/activitystreams#IntransitiveActivity","https://www.w3.org/ns/activitystreams#Arrive","https://www.w3.org/ns/activitystreams#Question","https://www.w3.org/ns/activitystreams#Travel","https://www.w3.org/ns/activitystreams#Join","https://www.w3.org/ns/activitystreams#Leave","https://www.w3.org/ns/activitystreams#Like","https://www.w3.org/ns/activitystreams#Listen","https://www.w3.org/ns/activitystreams#Move","https://www.w3.org/ns/activitystreams#Offer","https://www.w3.org/ns/activitystreams#Invite","https://www.w3.org/ns/activitystreams#Read","https://www.w3.org/ns/activitystreams#Reject","https://www.w3.org/ns/activitystreams#TentativeReject","https://www.w3.org/ns/activitystreams#Remove","https://www.w3.org/ns/activitystreams#Undo","https://www.w3.org/ns/activitystreams#Update","https://www.w3.org/ns/activitystreams#View","https://www.w3.org/ns/activitystreams#Application","https://www.w3.org/ns/activitystreams#Article","https://www.w3.org/ns/activitystreams#Collection","https://www.w3.org/ns/activitystreams#CollectionPage","https://www.w3.org/ns/activitystreams#OrderedCollectionPage","https://www.w3.org/ns/activitystreams#OrderedCollection","https://www.w3.org/ns/activitystreams#Document","https://www.w3.org/ns/activitystreams#Audio","https://www.w3.org/ns/activitystreams#Image","https://www.w3.org/ns/activitystreams#Page","https://www.w3.org/ns/activitystreams#Video","https://www.w3.org/ns/activitystreams#Event","https://www.w3.org/ns/activitystreams#Group","https://www.w3.org/ns/activitystreams#Note","https://www.w3.org/ns/activitystreams#Organization","https://www.w3.org/ns/activitystreams#Person","https://www.w3.org/ns/activitystreams#Place","https://www.w3.org/ns/activitystreams#Profile","https://www.w3.org/ns/activitystreams#Relationship","https://www.w3.org/ns/activitystreams#Service","https://www.w3.org/ns/activitystreams#Tombstone"].some( t => v["@type"].includes(t)) ? await Object.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& ["https://www.w3.org/ns/activitystreams#Link","https://www.w3.org/ns/activitystreams#Hashtag","https://www.w3.org/ns/activitystreams#Mention"].some( t => v["@type"].includes(t)) ? await Link.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("http://schema.org#PropertyValue") ? await PropertyValue.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ) : undefined ; if (typeof decoded === "undefined") continue; @@ -10637,23 +10641,23 @@ get urls(): ((URL | Link))[] { typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Application") ? await Application.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Group") ? await Group.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Organization") ? await Organization.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Person") ? await Person.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Service") ? await Service.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ) : undefined ; if (typeof decoded === "undefined") continue; @@ -10688,7 +10692,7 @@ get urls(): ((URL | Link))[] { const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ); if (typeof decoded === "undefined") continue; _3ocC3VVi88cEd5sPWL8djkZsvTN6_audience.push(decoded); @@ -10748,12 +10752,12 @@ get urls(): ((URL | Link))[] { && Array.isArray(v["@type"])&& ["https://www.w3.org/ns/activitystreams#Object","http://joinmastodon.org/ns#Emoji","http://litepub.social/ns#ChatMessage","https://gotosocial.org/ns#AnnounceAuthorization","https://gotosocial.org/ns#LikeApproval","https://gotosocial.org/ns#ReplyAuthorization","https://w3id.org/fep/044f#QuoteAuthorization","https://w3id.org/valueflows/ont/vf#Proposal","https://www.w3.org/ns/activitystreams#Activity","http://litepub.social/ns#EmojiReact","https://gotosocial.org/ns#AnnounceRequest","https://gotosocial.org/ns#LikeRequest","https://gotosocial.org/ns#ReplyRequest","https://w3id.org/fep/044f#QuoteRequest","https://www.w3.org/ns/activitystreams#Accept","https://www.w3.org/ns/activitystreams#TentativeAccept","https://www.w3.org/ns/activitystreams#Add","https://www.w3.org/ns/activitystreams#Announce","https://www.w3.org/ns/activitystreams#Create","https://www.w3.org/ns/activitystreams#Delete","https://www.w3.org/ns/activitystreams#Dislike","https://www.w3.org/ns/activitystreams#Flag","https://www.w3.org/ns/activitystreams#Follow","https://www.w3.org/ns/activitystreams#Ignore","https://www.w3.org/ns/activitystreams#Block","https://www.w3.org/ns/activitystreams#IntransitiveActivity","https://www.w3.org/ns/activitystreams#Arrive","https://www.w3.org/ns/activitystreams#Question","https://www.w3.org/ns/activitystreams#Travel","https://www.w3.org/ns/activitystreams#Join","https://www.w3.org/ns/activitystreams#Leave","https://www.w3.org/ns/activitystreams#Like","https://www.w3.org/ns/activitystreams#Listen","https://www.w3.org/ns/activitystreams#Move","https://www.w3.org/ns/activitystreams#Offer","https://www.w3.org/ns/activitystreams#Invite","https://www.w3.org/ns/activitystreams#Read","https://www.w3.org/ns/activitystreams#Reject","https://www.w3.org/ns/activitystreams#TentativeReject","https://www.w3.org/ns/activitystreams#Remove","https://www.w3.org/ns/activitystreams#Undo","https://www.w3.org/ns/activitystreams#Update","https://www.w3.org/ns/activitystreams#View","https://www.w3.org/ns/activitystreams#Application","https://www.w3.org/ns/activitystreams#Article","https://www.w3.org/ns/activitystreams#Collection","https://www.w3.org/ns/activitystreams#CollectionPage","https://www.w3.org/ns/activitystreams#OrderedCollectionPage","https://www.w3.org/ns/activitystreams#OrderedCollection","https://www.w3.org/ns/activitystreams#Document","https://www.w3.org/ns/activitystreams#Audio","https://www.w3.org/ns/activitystreams#Image","https://www.w3.org/ns/activitystreams#Page","https://www.w3.org/ns/activitystreams#Video","https://www.w3.org/ns/activitystreams#Event","https://www.w3.org/ns/activitystreams#Group","https://www.w3.org/ns/activitystreams#Note","https://www.w3.org/ns/activitystreams#Organization","https://www.w3.org/ns/activitystreams#Person","https://www.w3.org/ns/activitystreams#Place","https://www.w3.org/ns/activitystreams#Profile","https://www.w3.org/ns/activitystreams#Relationship","https://www.w3.org/ns/activitystreams#Service","https://www.w3.org/ns/activitystreams#Tombstone"].some( t => v["@type"].includes(t)) ? await Object.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& ["https://www.w3.org/ns/activitystreams#Link","https://www.w3.org/ns/activitystreams#Hashtag","https://www.w3.org/ns/activitystreams#Mention"].some( t => v["@type"].includes(t)) ? await Link.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ) : undefined ; if (typeof decoded === "undefined") continue; @@ -10837,12 +10841,12 @@ get urls(): ((URL | Link))[] { && Array.isArray(v["@type"])&& ["https://www.w3.org/ns/activitystreams#Object","http://joinmastodon.org/ns#Emoji","http://litepub.social/ns#ChatMessage","https://gotosocial.org/ns#AnnounceAuthorization","https://gotosocial.org/ns#LikeApproval","https://gotosocial.org/ns#ReplyAuthorization","https://w3id.org/fep/044f#QuoteAuthorization","https://w3id.org/valueflows/ont/vf#Proposal","https://www.w3.org/ns/activitystreams#Activity","http://litepub.social/ns#EmojiReact","https://gotosocial.org/ns#AnnounceRequest","https://gotosocial.org/ns#LikeRequest","https://gotosocial.org/ns#ReplyRequest","https://w3id.org/fep/044f#QuoteRequest","https://www.w3.org/ns/activitystreams#Accept","https://www.w3.org/ns/activitystreams#TentativeAccept","https://www.w3.org/ns/activitystreams#Add","https://www.w3.org/ns/activitystreams#Announce","https://www.w3.org/ns/activitystreams#Create","https://www.w3.org/ns/activitystreams#Delete","https://www.w3.org/ns/activitystreams#Dislike","https://www.w3.org/ns/activitystreams#Flag","https://www.w3.org/ns/activitystreams#Follow","https://www.w3.org/ns/activitystreams#Ignore","https://www.w3.org/ns/activitystreams#Block","https://www.w3.org/ns/activitystreams#IntransitiveActivity","https://www.w3.org/ns/activitystreams#Arrive","https://www.w3.org/ns/activitystreams#Question","https://www.w3.org/ns/activitystreams#Travel","https://www.w3.org/ns/activitystreams#Join","https://www.w3.org/ns/activitystreams#Leave","https://www.w3.org/ns/activitystreams#Like","https://www.w3.org/ns/activitystreams#Listen","https://www.w3.org/ns/activitystreams#Move","https://www.w3.org/ns/activitystreams#Offer","https://www.w3.org/ns/activitystreams#Invite","https://www.w3.org/ns/activitystreams#Read","https://www.w3.org/ns/activitystreams#Reject","https://www.w3.org/ns/activitystreams#TentativeReject","https://www.w3.org/ns/activitystreams#Remove","https://www.w3.org/ns/activitystreams#Undo","https://www.w3.org/ns/activitystreams#Update","https://www.w3.org/ns/activitystreams#View","https://www.w3.org/ns/activitystreams#Application","https://www.w3.org/ns/activitystreams#Article","https://www.w3.org/ns/activitystreams#Collection","https://www.w3.org/ns/activitystreams#CollectionPage","https://www.w3.org/ns/activitystreams#OrderedCollectionPage","https://www.w3.org/ns/activitystreams#OrderedCollection","https://www.w3.org/ns/activitystreams#Document","https://www.w3.org/ns/activitystreams#Audio","https://www.w3.org/ns/activitystreams#Image","https://www.w3.org/ns/activitystreams#Page","https://www.w3.org/ns/activitystreams#Video","https://www.w3.org/ns/activitystreams#Event","https://www.w3.org/ns/activitystreams#Group","https://www.w3.org/ns/activitystreams#Note","https://www.w3.org/ns/activitystreams#Organization","https://www.w3.org/ns/activitystreams#Person","https://www.w3.org/ns/activitystreams#Place","https://www.w3.org/ns/activitystreams#Profile","https://www.w3.org/ns/activitystreams#Relationship","https://www.w3.org/ns/activitystreams#Service","https://www.w3.org/ns/activitystreams#Tombstone"].some( t => v["@type"].includes(t)) ? await Object.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& ["https://www.w3.org/ns/activitystreams#Link","https://www.w3.org/ns/activitystreams#Hashtag","https://www.w3.org/ns/activitystreams#Mention"].some( t => v["@type"].includes(t)) ? await Link.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ) : undefined ; if (typeof decoded === "undefined") continue; @@ -10873,7 +10877,7 @@ get urls(): ((URL | Link))[] { documentLoader: options.documentLoader, contextLoader: options.contextLoader, tracerProvider: options.tracerProvider, - baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])), + baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)), }); if (_result instanceof Error) throw _result; if (_result !== undefined) { @@ -10899,7 +10903,7 @@ get urls(): ((URL | Link))[] { const decoded = await Image.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ); if (typeof decoded === "undefined") continue; _33CjRLy5ujtsUrwRSCrsggvGdKuR_icon.push(decoded); @@ -10928,7 +10932,7 @@ get urls(): ((URL | Link))[] { documentLoader: options.documentLoader, contextLoader: options.contextLoader, tracerProvider: options.tracerProvider, - baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])), + baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)), }); if (_result instanceof Error) throw _result; if (_result !== undefined) { @@ -10954,7 +10958,7 @@ get urls(): ((URL | Link))[] { const decoded = await Image.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ); if (typeof decoded === "undefined") continue; _3dXrUdkARxwyJLtJcYi1AJ92H41U_image.push(decoded); @@ -10990,12 +10994,12 @@ get urls(): ((URL | Link))[] { && Array.isArray(v["@type"])&& ["https://www.w3.org/ns/activitystreams#Object","http://joinmastodon.org/ns#Emoji","http://litepub.social/ns#ChatMessage","https://gotosocial.org/ns#AnnounceAuthorization","https://gotosocial.org/ns#LikeApproval","https://gotosocial.org/ns#ReplyAuthorization","https://w3id.org/fep/044f#QuoteAuthorization","https://w3id.org/valueflows/ont/vf#Proposal","https://www.w3.org/ns/activitystreams#Activity","http://litepub.social/ns#EmojiReact","https://gotosocial.org/ns#AnnounceRequest","https://gotosocial.org/ns#LikeRequest","https://gotosocial.org/ns#ReplyRequest","https://w3id.org/fep/044f#QuoteRequest","https://www.w3.org/ns/activitystreams#Accept","https://www.w3.org/ns/activitystreams#TentativeAccept","https://www.w3.org/ns/activitystreams#Add","https://www.w3.org/ns/activitystreams#Announce","https://www.w3.org/ns/activitystreams#Create","https://www.w3.org/ns/activitystreams#Delete","https://www.w3.org/ns/activitystreams#Dislike","https://www.w3.org/ns/activitystreams#Flag","https://www.w3.org/ns/activitystreams#Follow","https://www.w3.org/ns/activitystreams#Ignore","https://www.w3.org/ns/activitystreams#Block","https://www.w3.org/ns/activitystreams#IntransitiveActivity","https://www.w3.org/ns/activitystreams#Arrive","https://www.w3.org/ns/activitystreams#Question","https://www.w3.org/ns/activitystreams#Travel","https://www.w3.org/ns/activitystreams#Join","https://www.w3.org/ns/activitystreams#Leave","https://www.w3.org/ns/activitystreams#Like","https://www.w3.org/ns/activitystreams#Listen","https://www.w3.org/ns/activitystreams#Move","https://www.w3.org/ns/activitystreams#Offer","https://www.w3.org/ns/activitystreams#Invite","https://www.w3.org/ns/activitystreams#Read","https://www.w3.org/ns/activitystreams#Reject","https://www.w3.org/ns/activitystreams#TentativeReject","https://www.w3.org/ns/activitystreams#Remove","https://www.w3.org/ns/activitystreams#Undo","https://www.w3.org/ns/activitystreams#Update","https://www.w3.org/ns/activitystreams#View","https://www.w3.org/ns/activitystreams#Application","https://www.w3.org/ns/activitystreams#Article","https://www.w3.org/ns/activitystreams#Collection","https://www.w3.org/ns/activitystreams#CollectionPage","https://www.w3.org/ns/activitystreams#OrderedCollectionPage","https://www.w3.org/ns/activitystreams#OrderedCollection","https://www.w3.org/ns/activitystreams#Document","https://www.w3.org/ns/activitystreams#Audio","https://www.w3.org/ns/activitystreams#Image","https://www.w3.org/ns/activitystreams#Page","https://www.w3.org/ns/activitystreams#Video","https://www.w3.org/ns/activitystreams#Event","https://www.w3.org/ns/activitystreams#Group","https://www.w3.org/ns/activitystreams#Note","https://www.w3.org/ns/activitystreams#Organization","https://www.w3.org/ns/activitystreams#Person","https://www.w3.org/ns/activitystreams#Place","https://www.w3.org/ns/activitystreams#Profile","https://www.w3.org/ns/activitystreams#Relationship","https://www.w3.org/ns/activitystreams#Service","https://www.w3.org/ns/activitystreams#Tombstone"].some( t => v["@type"].includes(t)) ? await Object.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& ["https://www.w3.org/ns/activitystreams#Link","https://www.w3.org/ns/activitystreams#Hashtag","https://www.w3.org/ns/activitystreams#Mention"].some( t => v["@type"].includes(t)) ? await Link.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ) : undefined ; if (typeof decoded === "undefined") continue; @@ -11033,12 +11037,12 @@ get urls(): ((URL | Link))[] { && Array.isArray(v["@type"])&& ["https://www.w3.org/ns/activitystreams#Object","http://joinmastodon.org/ns#Emoji","http://litepub.social/ns#ChatMessage","https://gotosocial.org/ns#AnnounceAuthorization","https://gotosocial.org/ns#LikeApproval","https://gotosocial.org/ns#ReplyAuthorization","https://w3id.org/fep/044f#QuoteAuthorization","https://w3id.org/valueflows/ont/vf#Proposal","https://www.w3.org/ns/activitystreams#Activity","http://litepub.social/ns#EmojiReact","https://gotosocial.org/ns#AnnounceRequest","https://gotosocial.org/ns#LikeRequest","https://gotosocial.org/ns#ReplyRequest","https://w3id.org/fep/044f#QuoteRequest","https://www.w3.org/ns/activitystreams#Accept","https://www.w3.org/ns/activitystreams#TentativeAccept","https://www.w3.org/ns/activitystreams#Add","https://www.w3.org/ns/activitystreams#Announce","https://www.w3.org/ns/activitystreams#Create","https://www.w3.org/ns/activitystreams#Delete","https://www.w3.org/ns/activitystreams#Dislike","https://www.w3.org/ns/activitystreams#Flag","https://www.w3.org/ns/activitystreams#Follow","https://www.w3.org/ns/activitystreams#Ignore","https://www.w3.org/ns/activitystreams#Block","https://www.w3.org/ns/activitystreams#IntransitiveActivity","https://www.w3.org/ns/activitystreams#Arrive","https://www.w3.org/ns/activitystreams#Question","https://www.w3.org/ns/activitystreams#Travel","https://www.w3.org/ns/activitystreams#Join","https://www.w3.org/ns/activitystreams#Leave","https://www.w3.org/ns/activitystreams#Like","https://www.w3.org/ns/activitystreams#Listen","https://www.w3.org/ns/activitystreams#Move","https://www.w3.org/ns/activitystreams#Offer","https://www.w3.org/ns/activitystreams#Invite","https://www.w3.org/ns/activitystreams#Read","https://www.w3.org/ns/activitystreams#Reject","https://www.w3.org/ns/activitystreams#TentativeReject","https://www.w3.org/ns/activitystreams#Remove","https://www.w3.org/ns/activitystreams#Undo","https://www.w3.org/ns/activitystreams#Update","https://www.w3.org/ns/activitystreams#View","https://www.w3.org/ns/activitystreams#Application","https://www.w3.org/ns/activitystreams#Article","https://www.w3.org/ns/activitystreams#Collection","https://www.w3.org/ns/activitystreams#CollectionPage","https://www.w3.org/ns/activitystreams#OrderedCollectionPage","https://www.w3.org/ns/activitystreams#OrderedCollection","https://www.w3.org/ns/activitystreams#Document","https://www.w3.org/ns/activitystreams#Audio","https://www.w3.org/ns/activitystreams#Image","https://www.w3.org/ns/activitystreams#Page","https://www.w3.org/ns/activitystreams#Video","https://www.w3.org/ns/activitystreams#Event","https://www.w3.org/ns/activitystreams#Group","https://www.w3.org/ns/activitystreams#Note","https://www.w3.org/ns/activitystreams#Organization","https://www.w3.org/ns/activitystreams#Person","https://www.w3.org/ns/activitystreams#Place","https://www.w3.org/ns/activitystreams#Profile","https://www.w3.org/ns/activitystreams#Relationship","https://www.w3.org/ns/activitystreams#Service","https://www.w3.org/ns/activitystreams#Tombstone"].some( t => v["@type"].includes(t)) ? await Object.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& ["https://www.w3.org/ns/activitystreams#Link","https://www.w3.org/ns/activitystreams#Hashtag","https://www.w3.org/ns/activitystreams#Mention"].some( t => v["@type"].includes(t)) ? await Link.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ) : undefined ; if (typeof decoded === "undefined") continue; @@ -11076,12 +11080,12 @@ get urls(): ((URL | Link))[] { && Array.isArray(v["@type"])&& ["https://www.w3.org/ns/activitystreams#Link","https://www.w3.org/ns/activitystreams#Hashtag","https://www.w3.org/ns/activitystreams#Mention"].some( t => v["@type"].includes(t)) ? await Link.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& ["https://www.w3.org/ns/activitystreams#Object","http://joinmastodon.org/ns#Emoji","http://litepub.social/ns#ChatMessage","https://gotosocial.org/ns#AnnounceAuthorization","https://gotosocial.org/ns#LikeApproval","https://gotosocial.org/ns#ReplyAuthorization","https://w3id.org/fep/044f#QuoteAuthorization","https://w3id.org/valueflows/ont/vf#Proposal","https://www.w3.org/ns/activitystreams#Activity","http://litepub.social/ns#EmojiReact","https://gotosocial.org/ns#AnnounceRequest","https://gotosocial.org/ns#LikeRequest","https://gotosocial.org/ns#ReplyRequest","https://w3id.org/fep/044f#QuoteRequest","https://www.w3.org/ns/activitystreams#Accept","https://www.w3.org/ns/activitystreams#TentativeAccept","https://www.w3.org/ns/activitystreams#Add","https://www.w3.org/ns/activitystreams#Announce","https://www.w3.org/ns/activitystreams#Create","https://www.w3.org/ns/activitystreams#Delete","https://www.w3.org/ns/activitystreams#Dislike","https://www.w3.org/ns/activitystreams#Flag","https://www.w3.org/ns/activitystreams#Follow","https://www.w3.org/ns/activitystreams#Ignore","https://www.w3.org/ns/activitystreams#Block","https://www.w3.org/ns/activitystreams#IntransitiveActivity","https://www.w3.org/ns/activitystreams#Arrive","https://www.w3.org/ns/activitystreams#Question","https://www.w3.org/ns/activitystreams#Travel","https://www.w3.org/ns/activitystreams#Join","https://www.w3.org/ns/activitystreams#Leave","https://www.w3.org/ns/activitystreams#Like","https://www.w3.org/ns/activitystreams#Listen","https://www.w3.org/ns/activitystreams#Move","https://www.w3.org/ns/activitystreams#Offer","https://www.w3.org/ns/activitystreams#Invite","https://www.w3.org/ns/activitystreams#Read","https://www.w3.org/ns/activitystreams#Reject","https://www.w3.org/ns/activitystreams#TentativeReject","https://www.w3.org/ns/activitystreams#Remove","https://www.w3.org/ns/activitystreams#Undo","https://www.w3.org/ns/activitystreams#Update","https://www.w3.org/ns/activitystreams#View","https://www.w3.org/ns/activitystreams#Application","https://www.w3.org/ns/activitystreams#Article","https://www.w3.org/ns/activitystreams#Collection","https://www.w3.org/ns/activitystreams#CollectionPage","https://www.w3.org/ns/activitystreams#OrderedCollectionPage","https://www.w3.org/ns/activitystreams#OrderedCollection","https://www.w3.org/ns/activitystreams#Document","https://www.w3.org/ns/activitystreams#Audio","https://www.w3.org/ns/activitystreams#Image","https://www.w3.org/ns/activitystreams#Page","https://www.w3.org/ns/activitystreams#Video","https://www.w3.org/ns/activitystreams#Event","https://www.w3.org/ns/activitystreams#Group","https://www.w3.org/ns/activitystreams#Note","https://www.w3.org/ns/activitystreams#Organization","https://www.w3.org/ns/activitystreams#Person","https://www.w3.org/ns/activitystreams#Place","https://www.w3.org/ns/activitystreams#Profile","https://www.w3.org/ns/activitystreams#Relationship","https://www.w3.org/ns/activitystreams#Service","https://www.w3.org/ns/activitystreams#Tombstone"].some( t => v["@type"].includes(t)) ? await Object.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ) : undefined ; if (typeof decoded === "undefined") continue; @@ -11138,7 +11142,7 @@ get urls(): ((URL | Link))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ); if (typeof decoded === "undefined") continue; _7UpwM3JWcXhADcscukEehBorf6k_replies.push(decoded); @@ -11171,7 +11175,7 @@ get urls(): ((URL | Link))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ); if (typeof decoded === "undefined") continue; _3kAfck9PcEYt2L7xug5y99YPbANs_shares.push(decoded); @@ -11204,7 +11208,7 @@ get urls(): ((URL | Link))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ); if (typeof decoded === "undefined") continue; _S3ceDnpMdzoTRCccB9FkJWrEzYW_likes.push(decoded); @@ -11237,7 +11241,7 @@ get urls(): ((URL | Link))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ); if (typeof decoded === "undefined") continue; _kMatyyNAuxoTD8GQMBfA5ogThMR_emojiReactions.push(decoded); @@ -11319,12 +11323,12 @@ get urls(): ((URL | Link))[] { && Array.isArray(v["@type"])&& ["https://www.w3.org/ns/activitystreams#Object","http://joinmastodon.org/ns#Emoji","http://litepub.social/ns#ChatMessage","https://gotosocial.org/ns#AnnounceAuthorization","https://gotosocial.org/ns#LikeApproval","https://gotosocial.org/ns#ReplyAuthorization","https://w3id.org/fep/044f#QuoteAuthorization","https://w3id.org/valueflows/ont/vf#Proposal","https://www.w3.org/ns/activitystreams#Activity","http://litepub.social/ns#EmojiReact","https://gotosocial.org/ns#AnnounceRequest","https://gotosocial.org/ns#LikeRequest","https://gotosocial.org/ns#ReplyRequest","https://w3id.org/fep/044f#QuoteRequest","https://www.w3.org/ns/activitystreams#Accept","https://www.w3.org/ns/activitystreams#TentativeAccept","https://www.w3.org/ns/activitystreams#Add","https://www.w3.org/ns/activitystreams#Announce","https://www.w3.org/ns/activitystreams#Create","https://www.w3.org/ns/activitystreams#Delete","https://www.w3.org/ns/activitystreams#Dislike","https://www.w3.org/ns/activitystreams#Flag","https://www.w3.org/ns/activitystreams#Follow","https://www.w3.org/ns/activitystreams#Ignore","https://www.w3.org/ns/activitystreams#Block","https://www.w3.org/ns/activitystreams#IntransitiveActivity","https://www.w3.org/ns/activitystreams#Arrive","https://www.w3.org/ns/activitystreams#Question","https://www.w3.org/ns/activitystreams#Travel","https://www.w3.org/ns/activitystreams#Join","https://www.w3.org/ns/activitystreams#Leave","https://www.w3.org/ns/activitystreams#Like","https://www.w3.org/ns/activitystreams#Listen","https://www.w3.org/ns/activitystreams#Move","https://www.w3.org/ns/activitystreams#Offer","https://www.w3.org/ns/activitystreams#Invite","https://www.w3.org/ns/activitystreams#Read","https://www.w3.org/ns/activitystreams#Reject","https://www.w3.org/ns/activitystreams#TentativeReject","https://www.w3.org/ns/activitystreams#Remove","https://www.w3.org/ns/activitystreams#Undo","https://www.w3.org/ns/activitystreams#Update","https://www.w3.org/ns/activitystreams#View","https://www.w3.org/ns/activitystreams#Application","https://www.w3.org/ns/activitystreams#Article","https://www.w3.org/ns/activitystreams#Collection","https://www.w3.org/ns/activitystreams#CollectionPage","https://www.w3.org/ns/activitystreams#OrderedCollectionPage","https://www.w3.org/ns/activitystreams#OrderedCollection","https://www.w3.org/ns/activitystreams#Document","https://www.w3.org/ns/activitystreams#Audio","https://www.w3.org/ns/activitystreams#Image","https://www.w3.org/ns/activitystreams#Page","https://www.w3.org/ns/activitystreams#Video","https://www.w3.org/ns/activitystreams#Event","https://www.w3.org/ns/activitystreams#Group","https://www.w3.org/ns/activitystreams#Note","https://www.w3.org/ns/activitystreams#Organization","https://www.w3.org/ns/activitystreams#Person","https://www.w3.org/ns/activitystreams#Place","https://www.w3.org/ns/activitystreams#Profile","https://www.w3.org/ns/activitystreams#Relationship","https://www.w3.org/ns/activitystreams#Service","https://www.w3.org/ns/activitystreams#Tombstone"].some( t => v["@type"].includes(t)) ? await Object.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& ["https://www.w3.org/ns/activitystreams#Link","https://www.w3.org/ns/activitystreams#Hashtag","https://www.w3.org/ns/activitystreams#Mention"].some( t => v["@type"].includes(t)) ? await Link.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ) : undefined ; if (typeof decoded === "undefined") continue; @@ -11383,13 +11387,13 @@ get urls(): ((URL | Link))[] { : "" ) ) - : URL.canParse(v["@id"]) && (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) + : URL.canParse(v["@id"]) && (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) ? new URL(v["@id"]) - : new URL(v["@id"], (values["@id"] == null ? options.baseUrl : new URL(values["@id"]))) : typeof v === "object" && "@type" in v + : new URL(v["@id"], (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl))) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& ["https://www.w3.org/ns/activitystreams#Link","https://www.w3.org/ns/activitystreams#Hashtag","https://www.w3.org/ns/activitystreams#Mention"].some( t => v["@type"].includes(t)) ? await Link.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ) : undefined ; if (typeof decoded === "undefined") continue; @@ -11424,7 +11428,7 @@ get urls(): ((URL | Link))[] { const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ); if (typeof decoded === "undefined") continue; _3hFbw7DTpHhq3cvVhkY8njhcsXbd_to.push(decoded); @@ -11457,7 +11461,7 @@ get urls(): ((URL | Link))[] { const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ); if (typeof decoded === "undefined") continue; _aLZupjwL8XB7tzdLgCMXdjZ6qej_bto.push(decoded); @@ -11490,7 +11494,7 @@ get urls(): ((URL | Link))[] { const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ); if (typeof decoded === "undefined") continue; _42a1SvBs24QSLzKcfjCyNTjW5a1g_cc.push(decoded); @@ -11523,7 +11527,7 @@ get urls(): ((URL | Link))[] { const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ); if (typeof decoded === "undefined") continue; _3qvegKUB8YLgTXRpEf8E6JZSkz2H_bcc.push(decoded); @@ -11598,7 +11602,7 @@ get urls(): ((URL | Link))[] { const decoded = await Source.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ); if (typeof decoded === "undefined") continue; _2ZwCFoS787v8y8bXKjMoE6MAbrEB_source.push(decoded); @@ -11631,7 +11635,7 @@ get urls(): ((URL | Link))[] { const decoded = await DataIntegrityProof.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ); if (typeof decoded === "undefined") continue; _42rPnotok1ivQ2RNCKNbeFJgx8b8_proof.push(decoded); @@ -11652,7 +11656,7 @@ get urls(): ((URL | Link))[] { const decoded = await InteractionPolicy.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ); if (typeof decoded === "undefined") continue; _2MHQfh2N74MMmDLDqYWFo7TxYQK2_interactionPolicy.push(decoded); @@ -11684,9 +11688,9 @@ get urls(): ((URL | Link))[] { : "" ) ) - : URL.canParse(v["@id"]) && (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) + : URL.canParse(v["@id"]) && (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) ? new URL(v["@id"]) - : new URL(v["@id"], (values["@id"] == null ? options.baseUrl : new URL(values["@id"]))); + : new URL(v["@id"], (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl))); if (typeof decoded === "undefined") continue; _23YiVs2miQcEiUdn4u8SvjQKWYim_approvedBy.push(decoded); } @@ -11718,7 +11722,7 @@ get urls(): ((URL | Link))[] { const decoded = await LikeAuthorization.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ); if (typeof decoded === "undefined") continue; _3fCeb5aXaDDd4fvkQ96BLWifBUBa_likeAuthorization.push(decoded); @@ -11751,7 +11755,7 @@ get urls(): ((URL | Link))[] { const decoded = await ReplyAuthorization.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ); if (typeof decoded === "undefined") continue; _YA4wdUW7rYztAQ6SjhMnJCmcmtP_replyAuthorization.push(decoded); @@ -11784,7 +11788,7 @@ get urls(): ((URL | Link))[] { const decoded = await AnnounceAuthorization.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ); if (typeof decoded === "undefined") continue; _446xEaDBs3Fz6MyzP3PSBaLupkbJ_announceAuthorization.push(decoded); @@ -14015,7 +14019,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ); if (typeof decoded === "undefined") continue; _3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote.push(decoded); @@ -14074,7 +14078,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await QuoteAuthorization.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ); if (typeof decoded === "undefined") continue; _ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization.push(decoded); @@ -17186,23 +17190,23 @@ instruments?: (Object | URL)[];} typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Application") ? await Application.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Group") ? await Group.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Organization") ? await Organization.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Person") ? await Person.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Service") ? await Service.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ) : undefined ; if (typeof decoded === "undefined") continue; @@ -17237,7 +17241,7 @@ instruments?: (Object | URL)[];} const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ); if (typeof decoded === "undefined") continue; _2MH19yxjn1wnHsNfa5n4JBhJzxyc_object.push(decoded); @@ -17270,7 +17274,7 @@ instruments?: (Object | URL)[];} const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ); if (typeof decoded === "undefined") continue; _3JQCmF2Ww56Ag9EWRYoSZRDNCYtF_target.push(decoded); @@ -17303,7 +17307,7 @@ instruments?: (Object | URL)[];} const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ); if (typeof decoded === "undefined") continue; _u4QGFbRFcYmPEKGbPv1hpBR9r5G_result.push(decoded); @@ -17336,7 +17340,7 @@ instruments?: (Object | URL)[];} const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ); if (typeof decoded === "undefined") continue; _25zu2s3VxVujgEKqrDycjE284XQR_origin.push(decoded); @@ -17369,7 +17373,7 @@ instruments?: (Object | URL)[];} const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ); if (typeof decoded === "undefined") continue; _3c5t2x7DYRo2shwTxpkd4kYSS5WQ_instrument.push(decoded); @@ -19975,7 +19979,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ); if (typeof decoded === "undefined") continue; _2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject.push(decoded); @@ -20008,7 +20012,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ); if (typeof decoded === "undefined") continue; _2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget.push(decoded); @@ -20998,7 +21002,7 @@ canLike?: InteractionRule | null;canReply?: InteractionRule | null;canAnnounce?: const decoded = await InteractionRule.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ); if (typeof decoded === "undefined") continue; _3JkwVLb3BNCwCWdsb5RftGAg8vyT_canLike.push(decoded); @@ -21019,7 +21023,7 @@ canLike?: InteractionRule | null;canReply?: InteractionRule | null;canAnnounce?: const decoded = await InteractionRule.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ); if (typeof decoded === "undefined") continue; _2UBgLRi5p3DRGGvWyB227i4Qjhzd_canReply.push(decoded); @@ -21040,7 +21044,7 @@ canLike?: InteractionRule | null;canReply?: InteractionRule | null;canAnnounce?: const decoded = await InteractionRule.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ); if (typeof decoded === "undefined") continue; _fu5nmoAj528fBQfnxhY9Daok3Vi_canAnnounce.push(decoded); @@ -21061,7 +21065,7 @@ canLike?: InteractionRule | null;canReply?: InteractionRule | null;canAnnounce?: const decoded = await InteractionRule.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ); if (typeof decoded === "undefined") continue; _LE3zBTVacTZw2LSyLt4wVUkXeUy_canQuote.push(decoded); @@ -21757,9 +21761,9 @@ get manualApprovals(): (URL)[] { : "" ) ) - : URL.canParse(v["@id"]) && (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) + : URL.canParse(v["@id"]) && (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) ? new URL(v["@id"]) - : new URL(v["@id"], (values["@id"] == null ? options.baseUrl : new URL(values["@id"]))); + : new URL(v["@id"], (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl))); if (typeof decoded === "undefined") continue; _2rFyCF14HoyNjitj9PmCzek5iSsg_automaticApproval.push(decoded); } @@ -21790,9 +21794,9 @@ get manualApprovals(): (URL)[] { : "" ) ) - : URL.canParse(v["@id"]) && (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) + : URL.canParse(v["@id"]) && (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) ? new URL(v["@id"]) - : new URL(v["@id"], (values["@id"] == null ? options.baseUrl : new URL(values["@id"]))); + : new URL(v["@id"], (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl))); if (typeof decoded === "undefined") continue; _sxj8y5XMMMBWUnRYFw85MKedCMj_manualApproval.push(decoded); } @@ -22799,7 +22803,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ); if (typeof decoded === "undefined") continue; _2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject.push(decoded); @@ -22832,7 +22836,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ); if (typeof decoded === "undefined") continue; _2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget.push(decoded); @@ -24155,7 +24159,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ); if (typeof decoded === "undefined") continue; _2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject.push(decoded); @@ -24188,7 +24192,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ); if (typeof decoded === "undefined") continue; _2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget.push(decoded); @@ -25510,7 +25514,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ); if (typeof decoded === "undefined") continue; _2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject.push(decoded); @@ -25543,7 +25547,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ); if (typeof decoded === "undefined") continue; _2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget.push(decoded); @@ -26401,9 +26405,9 @@ get endpoints(): (URL)[] { : "" ) ) - : URL.canParse(v["@id"]) && (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) + : URL.canParse(v["@id"]) && (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) ? new URL(v["@id"]) - : new URL(v["@id"], (values["@id"] == null ? options.baseUrl : new URL(values["@id"]))); + : new URL(v["@id"], (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl))); if (typeof decoded === "undefined") continue; _2KM4fetG6FTJ1cphj76rzJ8Dyv7p_serviceEndpoint.push(decoded); } @@ -27587,7 +27591,7 @@ cryptosuite?: "eddsa-jcs-2022" | null;verificationMethod?: Multikey | URL | null const decoded = await Multikey.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ); if (typeof decoded === "undefined") continue; _2mHVKxqA7zncjveJrDEo3pWpMZqg_verificationMethod.push(decoded); @@ -28538,23 +28542,23 @@ owner?: Application | Group | Organization | Person | Service | URL | null;publi typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Application") ? await Application.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Group") ? await Group.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Organization") ? await Organization.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Person") ? await Person.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Service") ? await Service.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ) : undefined ; if (typeof decoded === "undefined") continue; @@ -29418,23 +29422,23 @@ controller?: Application | Group | Organization | Person | Service | URL | null; typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Application") ? await Application.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Group") ? await Group.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Organization") ? await Organization.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Person") ? await Person.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Service") ? await Service.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ) : undefined ; if (typeof decoded === "undefined") continue; @@ -30268,9 +30272,9 @@ action?: string | null;resourceConformsTo?: URL | null;resourceQuantity?: Measur : "" ) ) - : URL.canParse(v["@id"]) && (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) + : URL.canParse(v["@id"]) && (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) ? new URL(v["@id"]) - : new URL(v["@id"], (values["@id"] == null ? options.baseUrl : new URL(values["@id"]))); + : new URL(v["@id"], (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl))); if (typeof decoded === "undefined") continue; _BBAeMUUQDwBQn6cvu3P2Csd6b6h_resourceConformsTo.push(decoded); } @@ -30290,7 +30294,7 @@ action?: string | null;resourceConformsTo?: URL | null;resourceQuantity?: Measur const decoded = await Measure.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ); if (typeof decoded === "undefined") continue; _2dLfqTbbRiggEcMQWbHpxkQrtmrc_resourceQuantity.push(decoded); @@ -30311,7 +30315,7 @@ action?: string | null;resourceConformsTo?: URL | null;resourceQuantity?: Measur const decoded = await Measure.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ); if (typeof decoded === "undefined") continue; _YmNSnuih3Zk4VdR5JPVnQYroLAh_availableQuantity.push(decoded); @@ -30332,7 +30336,7 @@ action?: string | null;resourceConformsTo?: URL | null;resourceQuantity?: Measur const decoded = await Measure.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ); if (typeof decoded === "undefined") continue; _3XueAFds2NBrqNpnV8b7aC8hV72S_minimumQuantity.push(decoded); @@ -31134,7 +31138,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Intent.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ); if (typeof decoded === "undefined") continue; _sS5LvXX8cn4c3x6ux836AwYbTyJ_publishes.push(decoded); @@ -31155,7 +31159,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Intent.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ); if (typeof decoded === "undefined") continue; _Z4ntJgFwR9BaNTbFvkRTGNEwUwy_reciprocal.push(decoded); @@ -37867,7 +37871,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await CryptographicKey.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ); if (typeof decoded === "undefined") continue; _axq166E2eZADq34V4MYUc8KMZdC_publicKey.push(decoded); @@ -37900,7 +37904,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Multikey.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ); if (typeof decoded === "undefined") continue; _4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.push(decoded); @@ -37953,11 +37957,11 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#OrderedCollection") ? await OrderedCollection.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#OrderedCollectionPage") ? await OrderedCollectionPage.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ) : undefined ; if (typeof decoded === "undefined") continue; @@ -37994,11 +37998,11 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#OrderedCollection") ? await OrderedCollection.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#OrderedCollectionPage") ? await OrderedCollectionPage.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ) : undefined ; if (typeof decoded === "undefined") continue; @@ -38033,7 +38037,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ); if (typeof decoded === "undefined") continue; _3yAv8jymNfNuJUDuBzJ1NQhdbAee_following.push(decoded); @@ -38066,7 +38070,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ); if (typeof decoded === "undefined") continue; _BBCTgfphhsFzpVfKTykGSpBNwoA_followers.push(decoded); @@ -38099,7 +38103,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ); if (typeof decoded === "undefined") continue; _3bgkPwJanyTCoVFM9ovRcus8tKkU_liked.push(decoded); @@ -38132,7 +38136,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ); if (typeof decoded === "undefined") continue; _4N1vBJzXDf8NbBumeECQMFvKetja_featured.push(decoded); @@ -38165,7 +38169,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ); if (typeof decoded === "undefined") continue; _2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags.push(decoded); @@ -38198,7 +38202,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ); if (typeof decoded === "undefined") continue; _3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.push(decoded); @@ -38219,7 +38223,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Endpoints.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ); if (typeof decoded === "undefined") continue; _sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints.push(decoded); @@ -38326,23 +38330,23 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Application") ? await Application.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Group") ? await Group.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Organization") ? await Organization.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Person") ? await Person.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Service") ? await Service.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ) : undefined ; if (typeof decoded === "undefined") continue; @@ -38379,23 +38383,23 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Application") ? await Application.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Group") ? await Group.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Organization") ? await Organization.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Person") ? await Person.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Service") ? await Service.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ) : undefined ; if (typeof decoded === "undefined") continue; @@ -38430,7 +38434,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await DidService.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ); if (typeof decoded === "undefined") continue; _4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.push(decoded); @@ -40650,7 +40654,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ); if (typeof decoded === "undefined") continue; _3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote.push(decoded); @@ -40709,7 +40713,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await QuoteAuthorization.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ); if (typeof decoded === "undefined") continue; _ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization.push(decoded); @@ -46247,7 +46251,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await CollectionPage.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ); if (typeof decoded === "undefined") continue; _3UyUdxnyn6cDn53QKrh4MBiearma_current.push(decoded); @@ -46280,7 +46284,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await CollectionPage.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ); if (typeof decoded === "undefined") continue; _J52RqweMe6hhv7RnLJMC8BExTE5_first.push(decoded); @@ -46313,7 +46317,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await CollectionPage.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ); if (typeof decoded === "undefined") continue; _gyJJnyEFnuNVi1HFZKfAn3Hfn26_last.push(decoded); @@ -46349,12 +46353,12 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu && Array.isArray(v["@type"])&& ["https://www.w3.org/ns/activitystreams#Object","http://joinmastodon.org/ns#Emoji","http://litepub.social/ns#ChatMessage","https://gotosocial.org/ns#AnnounceAuthorization","https://gotosocial.org/ns#LikeApproval","https://gotosocial.org/ns#ReplyAuthorization","https://w3id.org/fep/044f#QuoteAuthorization","https://w3id.org/valueflows/ont/vf#Proposal","https://www.w3.org/ns/activitystreams#Activity","http://litepub.social/ns#EmojiReact","https://gotosocial.org/ns#AnnounceRequest","https://gotosocial.org/ns#LikeRequest","https://gotosocial.org/ns#ReplyRequest","https://w3id.org/fep/044f#QuoteRequest","https://www.w3.org/ns/activitystreams#Accept","https://www.w3.org/ns/activitystreams#TentativeAccept","https://www.w3.org/ns/activitystreams#Add","https://www.w3.org/ns/activitystreams#Announce","https://www.w3.org/ns/activitystreams#Create","https://www.w3.org/ns/activitystreams#Delete","https://www.w3.org/ns/activitystreams#Dislike","https://www.w3.org/ns/activitystreams#Flag","https://www.w3.org/ns/activitystreams#Follow","https://www.w3.org/ns/activitystreams#Ignore","https://www.w3.org/ns/activitystreams#Block","https://www.w3.org/ns/activitystreams#IntransitiveActivity","https://www.w3.org/ns/activitystreams#Arrive","https://www.w3.org/ns/activitystreams#Question","https://www.w3.org/ns/activitystreams#Travel","https://www.w3.org/ns/activitystreams#Join","https://www.w3.org/ns/activitystreams#Leave","https://www.w3.org/ns/activitystreams#Like","https://www.w3.org/ns/activitystreams#Listen","https://www.w3.org/ns/activitystreams#Move","https://www.w3.org/ns/activitystreams#Offer","https://www.w3.org/ns/activitystreams#Invite","https://www.w3.org/ns/activitystreams#Read","https://www.w3.org/ns/activitystreams#Reject","https://www.w3.org/ns/activitystreams#TentativeReject","https://www.w3.org/ns/activitystreams#Remove","https://www.w3.org/ns/activitystreams#Undo","https://www.w3.org/ns/activitystreams#Update","https://www.w3.org/ns/activitystreams#View","https://www.w3.org/ns/activitystreams#Application","https://www.w3.org/ns/activitystreams#Article","https://www.w3.org/ns/activitystreams#Collection","https://www.w3.org/ns/activitystreams#CollectionPage","https://www.w3.org/ns/activitystreams#OrderedCollectionPage","https://www.w3.org/ns/activitystreams#OrderedCollection","https://www.w3.org/ns/activitystreams#Document","https://www.w3.org/ns/activitystreams#Audio","https://www.w3.org/ns/activitystreams#Image","https://www.w3.org/ns/activitystreams#Page","https://www.w3.org/ns/activitystreams#Video","https://www.w3.org/ns/activitystreams#Event","https://www.w3.org/ns/activitystreams#Group","https://www.w3.org/ns/activitystreams#Note","https://www.w3.org/ns/activitystreams#Organization","https://www.w3.org/ns/activitystreams#Person","https://www.w3.org/ns/activitystreams#Place","https://www.w3.org/ns/activitystreams#Profile","https://www.w3.org/ns/activitystreams#Relationship","https://www.w3.org/ns/activitystreams#Service","https://www.w3.org/ns/activitystreams#Tombstone"].some( t => v["@type"].includes(t)) ? await Object.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& ["https://www.w3.org/ns/activitystreams#Link","https://www.w3.org/ns/activitystreams#Hashtag","https://www.w3.org/ns/activitystreams#Mention"].some( t => v["@type"].includes(t)) ? await Link.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ) : undefined ; if (typeof decoded === "undefined") continue; @@ -46389,7 +46393,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ); if (typeof decoded === "undefined") continue; _4TB9Qd9ddtcZEpMfzbHhzafE6jaJ_likesOf.push(decoded); @@ -46422,7 +46426,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ); if (typeof decoded === "undefined") continue; _3manzgeKiPsugpztKGiaUUwJ3ito_sharesOf.push(decoded); @@ -46455,7 +46459,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ); if (typeof decoded === "undefined") continue; _3T3oGm3twpcQUcrnMisXQtmDZ32X_repliesOf.push(decoded); @@ -46488,7 +46492,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ); if (typeof decoded === "undefined") continue; _2bvRkAFZjMfVD8jiUWZJr5YokSeN_inboxOf.push(decoded); @@ -46521,7 +46525,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ); if (typeof decoded === "undefined") continue; _4AHzVZDxHjK6uEWa9UiKHGK34yYm_outboxOf.push(decoded); @@ -46554,7 +46558,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ); if (typeof decoded === "undefined") continue; _41aoZ5M6yRUHy3Zx8q6iuZQxtopb_followersOf.push(decoded); @@ -46587,7 +46591,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ); if (typeof decoded === "undefined") continue; _2nXT2Ah42UjEEQF5oJQ39CbKB1xj_followingOf.push(decoded); @@ -46620,7 +46624,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ); if (typeof decoded === "undefined") continue; _2bsySzmT3qEZcrnoe3tZ5xBjXSju_likedOf.push(decoded); @@ -48102,7 +48106,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ); if (typeof decoded === "undefined") continue; _2kWgBhQKjEauxx8C6qF3ZQamK4Le_partOf.push(decoded); @@ -48135,7 +48139,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await CollectionPage.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ); if (typeof decoded === "undefined") continue; _3BT4kQLcXhHx7TAWaNDKh8nFn9eY_next.push(decoded); @@ -48168,7 +48172,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await CollectionPage.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ); if (typeof decoded === "undefined") continue; _3b8yG8tDNzQFFEnWhCc13G8eHooA_prev.push(decoded); @@ -50047,9 +50051,9 @@ proxyUrl?: URL | null;oauthAuthorizationEndpoint?: URL | null;oauthTokenEndpoint : "" ) ) - : URL.canParse(v["@id"]) && (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) + : URL.canParse(v["@id"]) && (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) ? new URL(v["@id"]) - : new URL(v["@id"], (values["@id"] == null ? options.baseUrl : new URL(values["@id"]))); + : new URL(v["@id"], (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl))); if (typeof decoded === "undefined") continue; _2JCYDbSxEHCCLdBYed33cCETfGyR_proxyUrl.push(decoded); } @@ -50080,9 +50084,9 @@ proxyUrl?: URL | null;oauthAuthorizationEndpoint?: URL | null;oauthTokenEndpoint : "" ) ) - : URL.canParse(v["@id"]) && (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) + : URL.canParse(v["@id"]) && (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) ? new URL(v["@id"]) - : new URL(v["@id"], (values["@id"] == null ? options.baseUrl : new URL(values["@id"]))); + : new URL(v["@id"], (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl))); if (typeof decoded === "undefined") continue; _25S6UmgzDead8hxL5sQFezZTAusd_oauthAuthorizationEndpoint.push(decoded); } @@ -50113,9 +50117,9 @@ proxyUrl?: URL | null;oauthAuthorizationEndpoint?: URL | null;oauthTokenEndpoint : "" ) ) - : URL.canParse(v["@id"]) && (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) + : URL.canParse(v["@id"]) && (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) ? new URL(v["@id"]) - : new URL(v["@id"], (values["@id"] == null ? options.baseUrl : new URL(values["@id"]))); + : new URL(v["@id"], (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl))); if (typeof decoded === "undefined") continue; _iAMxqrSba7yBCRB1FZ5kEVdKEZ3_oauthTokenEndpoint.push(decoded); } @@ -50146,9 +50150,9 @@ proxyUrl?: URL | null;oauthAuthorizationEndpoint?: URL | null;oauthTokenEndpoint : "" ) ) - : URL.canParse(v["@id"]) && (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) + : URL.canParse(v["@id"]) && (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) ? new URL(v["@id"]) - : new URL(v["@id"], (values["@id"] == null ? options.baseUrl : new URL(values["@id"]))); + : new URL(v["@id"], (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl))); if (typeof decoded === "undefined") continue; _8Bx9qN8oU7Bpt2xi6khaxWp1gMr_provideClientKey.push(decoded); } @@ -50179,9 +50183,9 @@ proxyUrl?: URL | null;oauthAuthorizationEndpoint?: URL | null;oauthTokenEndpoint : "" ) ) - : URL.canParse(v["@id"]) && (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) + : URL.canParse(v["@id"]) && (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) ? new URL(v["@id"]) - : new URL(v["@id"], (values["@id"] == null ? options.baseUrl : new URL(values["@id"]))); + : new URL(v["@id"], (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl))); if (typeof decoded === "undefined") continue; _3dU7PMVQZJpsCpo2F4RQXxBXdPmS_signClientKey.push(decoded); } @@ -50212,9 +50216,9 @@ proxyUrl?: URL | null;oauthAuthorizationEndpoint?: URL | null;oauthTokenEndpoint : "" ) ) - : URL.canParse(v["@id"]) && (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) + : URL.canParse(v["@id"]) && (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) ? new URL(v["@id"]) - : new URL(v["@id"], (values["@id"] == null ? options.baseUrl : new URL(values["@id"]))); + : new URL(v["@id"], (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl))); if (typeof decoded === "undefined") continue; _3JprUSDLVqqX4dwHRi37qGZZCRCc_sharedInbox.push(decoded); } @@ -56960,7 +56964,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await CryptographicKey.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ); if (typeof decoded === "undefined") continue; _axq166E2eZADq34V4MYUc8KMZdC_publicKey.push(decoded); @@ -56993,7 +56997,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Multikey.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ); if (typeof decoded === "undefined") continue; _4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.push(decoded); @@ -57046,11 +57050,11 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#OrderedCollection") ? await OrderedCollection.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#OrderedCollectionPage") ? await OrderedCollectionPage.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ) : undefined ; if (typeof decoded === "undefined") continue; @@ -57087,11 +57091,11 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#OrderedCollection") ? await OrderedCollection.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#OrderedCollectionPage") ? await OrderedCollectionPage.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ) : undefined ; if (typeof decoded === "undefined") continue; @@ -57126,7 +57130,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ); if (typeof decoded === "undefined") continue; _3yAv8jymNfNuJUDuBzJ1NQhdbAee_following.push(decoded); @@ -57159,7 +57163,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ); if (typeof decoded === "undefined") continue; _BBCTgfphhsFzpVfKTykGSpBNwoA_followers.push(decoded); @@ -57192,7 +57196,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ); if (typeof decoded === "undefined") continue; _3bgkPwJanyTCoVFM9ovRcus8tKkU_liked.push(decoded); @@ -57225,7 +57229,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ); if (typeof decoded === "undefined") continue; _4N1vBJzXDf8NbBumeECQMFvKetja_featured.push(decoded); @@ -57258,7 +57262,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ); if (typeof decoded === "undefined") continue; _2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags.push(decoded); @@ -57291,7 +57295,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ); if (typeof decoded === "undefined") continue; _3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.push(decoded); @@ -57312,7 +57316,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Endpoints.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ); if (typeof decoded === "undefined") continue; _sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints.push(decoded); @@ -57419,23 +57423,23 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Application") ? await Application.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Group") ? await Group.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Organization") ? await Organization.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Person") ? await Person.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Service") ? await Service.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ) : undefined ; if (typeof decoded === "undefined") continue; @@ -57472,23 +57476,23 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Application") ? await Application.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Group") ? await Group.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Organization") ? await Organization.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Person") ? await Person.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Service") ? await Service.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ) : undefined ; if (typeof decoded === "undefined") continue; @@ -57523,7 +57527,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await DidService.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ); if (typeof decoded === "undefined") continue; _4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.push(decoded); @@ -59369,9 +59373,9 @@ get names(): ((string | LanguageString))[] { : "" ) ) - : URL.canParse(v["@id"]) && (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) + : URL.canParse(v["@id"]) && (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) ? new URL(v["@id"]) - : new URL(v["@id"], (values["@id"] == null ? options.baseUrl : new URL(values["@id"]))); + : new URL(v["@id"], (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl))); if (typeof decoded === "undefined") continue; _pVjLsybKQdmkjuU7MHjiVmNnuj7_href.push(decoded); } @@ -59520,12 +59524,12 @@ get names(): ((string | LanguageString))[] { && Array.isArray(v["@type"])&& ["https://www.w3.org/ns/activitystreams#Link","https://www.w3.org/ns/activitystreams#Hashtag","https://www.w3.org/ns/activitystreams#Mention"].some( t => v["@type"].includes(t)) ? await Link.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& ["https://www.w3.org/ns/activitystreams#Object","http://joinmastodon.org/ns#Emoji","http://litepub.social/ns#ChatMessage","https://gotosocial.org/ns#AnnounceAuthorization","https://gotosocial.org/ns#LikeApproval","https://gotosocial.org/ns#ReplyAuthorization","https://w3id.org/fep/044f#QuoteAuthorization","https://w3id.org/valueflows/ont/vf#Proposal","https://www.w3.org/ns/activitystreams#Activity","http://litepub.social/ns#EmojiReact","https://gotosocial.org/ns#AnnounceRequest","https://gotosocial.org/ns#LikeRequest","https://gotosocial.org/ns#ReplyRequest","https://w3id.org/fep/044f#QuoteRequest","https://www.w3.org/ns/activitystreams#Accept","https://www.w3.org/ns/activitystreams#TentativeAccept","https://www.w3.org/ns/activitystreams#Add","https://www.w3.org/ns/activitystreams#Announce","https://www.w3.org/ns/activitystreams#Create","https://www.w3.org/ns/activitystreams#Delete","https://www.w3.org/ns/activitystreams#Dislike","https://www.w3.org/ns/activitystreams#Flag","https://www.w3.org/ns/activitystreams#Follow","https://www.w3.org/ns/activitystreams#Ignore","https://www.w3.org/ns/activitystreams#Block","https://www.w3.org/ns/activitystreams#IntransitiveActivity","https://www.w3.org/ns/activitystreams#Arrive","https://www.w3.org/ns/activitystreams#Question","https://www.w3.org/ns/activitystreams#Travel","https://www.w3.org/ns/activitystreams#Join","https://www.w3.org/ns/activitystreams#Leave","https://www.w3.org/ns/activitystreams#Like","https://www.w3.org/ns/activitystreams#Listen","https://www.w3.org/ns/activitystreams#Move","https://www.w3.org/ns/activitystreams#Offer","https://www.w3.org/ns/activitystreams#Invite","https://www.w3.org/ns/activitystreams#Read","https://www.w3.org/ns/activitystreams#Reject","https://www.w3.org/ns/activitystreams#TentativeReject","https://www.w3.org/ns/activitystreams#Remove","https://www.w3.org/ns/activitystreams#Undo","https://www.w3.org/ns/activitystreams#Update","https://www.w3.org/ns/activitystreams#View","https://www.w3.org/ns/activitystreams#Application","https://www.w3.org/ns/activitystreams#Article","https://www.w3.org/ns/activitystreams#Collection","https://www.w3.org/ns/activitystreams#CollectionPage","https://www.w3.org/ns/activitystreams#OrderedCollectionPage","https://www.w3.org/ns/activitystreams#OrderedCollection","https://www.w3.org/ns/activitystreams#Document","https://www.w3.org/ns/activitystreams#Audio","https://www.w3.org/ns/activitystreams#Image","https://www.w3.org/ns/activitystreams#Page","https://www.w3.org/ns/activitystreams#Video","https://www.w3.org/ns/activitystreams#Event","https://www.w3.org/ns/activitystreams#Group","https://www.w3.org/ns/activitystreams#Note","https://www.w3.org/ns/activitystreams#Organization","https://www.w3.org/ns/activitystreams#Person","https://www.w3.org/ns/activitystreams#Place","https://www.w3.org/ns/activitystreams#Profile","https://www.w3.org/ns/activitystreams#Relationship","https://www.w3.org/ns/activitystreams#Service","https://www.w3.org/ns/activitystreams#Tombstone"].some( t => v["@type"].includes(t)) ? await Object.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ) : undefined ; if (typeof decoded === "undefined") continue; @@ -64026,7 +64030,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ); if (typeof decoded === "undefined") continue; _3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote.push(decoded); @@ -64085,7 +64089,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await QuoteAuthorization.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ); if (typeof decoded === "undefined") continue; _ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization.push(decoded); @@ -64827,12 +64831,12 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu && Array.isArray(v["@type"])&& ["https://www.w3.org/ns/activitystreams#Object","http://joinmastodon.org/ns#Emoji","http://litepub.social/ns#ChatMessage","https://gotosocial.org/ns#AnnounceAuthorization","https://gotosocial.org/ns#LikeApproval","https://gotosocial.org/ns#ReplyAuthorization","https://w3id.org/fep/044f#QuoteAuthorization","https://w3id.org/valueflows/ont/vf#Proposal","https://www.w3.org/ns/activitystreams#Activity","http://litepub.social/ns#EmojiReact","https://gotosocial.org/ns#AnnounceRequest","https://gotosocial.org/ns#LikeRequest","https://gotosocial.org/ns#ReplyRequest","https://w3id.org/fep/044f#QuoteRequest","https://www.w3.org/ns/activitystreams#Accept","https://www.w3.org/ns/activitystreams#TentativeAccept","https://www.w3.org/ns/activitystreams#Add","https://www.w3.org/ns/activitystreams#Announce","https://www.w3.org/ns/activitystreams#Create","https://www.w3.org/ns/activitystreams#Delete","https://www.w3.org/ns/activitystreams#Dislike","https://www.w3.org/ns/activitystreams#Flag","https://www.w3.org/ns/activitystreams#Follow","https://www.w3.org/ns/activitystreams#Ignore","https://www.w3.org/ns/activitystreams#Block","https://www.w3.org/ns/activitystreams#IntransitiveActivity","https://www.w3.org/ns/activitystreams#Arrive","https://www.w3.org/ns/activitystreams#Question","https://www.w3.org/ns/activitystreams#Travel","https://www.w3.org/ns/activitystreams#Join","https://www.w3.org/ns/activitystreams#Leave","https://www.w3.org/ns/activitystreams#Like","https://www.w3.org/ns/activitystreams#Listen","https://www.w3.org/ns/activitystreams#Move","https://www.w3.org/ns/activitystreams#Offer","https://www.w3.org/ns/activitystreams#Invite","https://www.w3.org/ns/activitystreams#Read","https://www.w3.org/ns/activitystreams#Reject","https://www.w3.org/ns/activitystreams#TentativeReject","https://www.w3.org/ns/activitystreams#Remove","https://www.w3.org/ns/activitystreams#Undo","https://www.w3.org/ns/activitystreams#Update","https://www.w3.org/ns/activitystreams#View","https://www.w3.org/ns/activitystreams#Application","https://www.w3.org/ns/activitystreams#Article","https://www.w3.org/ns/activitystreams#Collection","https://www.w3.org/ns/activitystreams#CollectionPage","https://www.w3.org/ns/activitystreams#OrderedCollectionPage","https://www.w3.org/ns/activitystreams#OrderedCollection","https://www.w3.org/ns/activitystreams#Document","https://www.w3.org/ns/activitystreams#Audio","https://www.w3.org/ns/activitystreams#Image","https://www.w3.org/ns/activitystreams#Page","https://www.w3.org/ns/activitystreams#Video","https://www.w3.org/ns/activitystreams#Event","https://www.w3.org/ns/activitystreams#Group","https://www.w3.org/ns/activitystreams#Note","https://www.w3.org/ns/activitystreams#Organization","https://www.w3.org/ns/activitystreams#Person","https://www.w3.org/ns/activitystreams#Place","https://www.w3.org/ns/activitystreams#Profile","https://www.w3.org/ns/activitystreams#Relationship","https://www.w3.org/ns/activitystreams#Service","https://www.w3.org/ns/activitystreams#Tombstone"].some( t => v["@type"].includes(t)) ? await Object.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& ["https://www.w3.org/ns/activitystreams#Link","https://www.w3.org/ns/activitystreams#Hashtag","https://www.w3.org/ns/activitystreams#Mention"].some( t => v["@type"].includes(t)) ? await Link.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ) : undefined ; if (typeof decoded === "undefined") continue; @@ -65615,12 +65619,12 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu && Array.isArray(v["@type"])&& ["https://www.w3.org/ns/activitystreams#Object","http://joinmastodon.org/ns#Emoji","http://litepub.social/ns#ChatMessage","https://gotosocial.org/ns#AnnounceAuthorization","https://gotosocial.org/ns#LikeApproval","https://gotosocial.org/ns#ReplyAuthorization","https://w3id.org/fep/044f#QuoteAuthorization","https://w3id.org/valueflows/ont/vf#Proposal","https://www.w3.org/ns/activitystreams#Activity","http://litepub.social/ns#EmojiReact","https://gotosocial.org/ns#AnnounceRequest","https://gotosocial.org/ns#LikeRequest","https://gotosocial.org/ns#ReplyRequest","https://w3id.org/fep/044f#QuoteRequest","https://www.w3.org/ns/activitystreams#Accept","https://www.w3.org/ns/activitystreams#TentativeAccept","https://www.w3.org/ns/activitystreams#Add","https://www.w3.org/ns/activitystreams#Announce","https://www.w3.org/ns/activitystreams#Create","https://www.w3.org/ns/activitystreams#Delete","https://www.w3.org/ns/activitystreams#Dislike","https://www.w3.org/ns/activitystreams#Flag","https://www.w3.org/ns/activitystreams#Follow","https://www.w3.org/ns/activitystreams#Ignore","https://www.w3.org/ns/activitystreams#Block","https://www.w3.org/ns/activitystreams#IntransitiveActivity","https://www.w3.org/ns/activitystreams#Arrive","https://www.w3.org/ns/activitystreams#Question","https://www.w3.org/ns/activitystreams#Travel","https://www.w3.org/ns/activitystreams#Join","https://www.w3.org/ns/activitystreams#Leave","https://www.w3.org/ns/activitystreams#Like","https://www.w3.org/ns/activitystreams#Listen","https://www.w3.org/ns/activitystreams#Move","https://www.w3.org/ns/activitystreams#Offer","https://www.w3.org/ns/activitystreams#Invite","https://www.w3.org/ns/activitystreams#Read","https://www.w3.org/ns/activitystreams#Reject","https://www.w3.org/ns/activitystreams#TentativeReject","https://www.w3.org/ns/activitystreams#Remove","https://www.w3.org/ns/activitystreams#Undo","https://www.w3.org/ns/activitystreams#Update","https://www.w3.org/ns/activitystreams#View","https://www.w3.org/ns/activitystreams#Application","https://www.w3.org/ns/activitystreams#Article","https://www.w3.org/ns/activitystreams#Collection","https://www.w3.org/ns/activitystreams#CollectionPage","https://www.w3.org/ns/activitystreams#OrderedCollectionPage","https://www.w3.org/ns/activitystreams#OrderedCollection","https://www.w3.org/ns/activitystreams#Document","https://www.w3.org/ns/activitystreams#Audio","https://www.w3.org/ns/activitystreams#Image","https://www.w3.org/ns/activitystreams#Page","https://www.w3.org/ns/activitystreams#Video","https://www.w3.org/ns/activitystreams#Event","https://www.w3.org/ns/activitystreams#Group","https://www.w3.org/ns/activitystreams#Note","https://www.w3.org/ns/activitystreams#Organization","https://www.w3.org/ns/activitystreams#Person","https://www.w3.org/ns/activitystreams#Place","https://www.w3.org/ns/activitystreams#Profile","https://www.w3.org/ns/activitystreams#Relationship","https://www.w3.org/ns/activitystreams#Service","https://www.w3.org/ns/activitystreams#Tombstone"].some( t => v["@type"].includes(t)) ? await Object.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& ["https://www.w3.org/ns/activitystreams#Link","https://www.w3.org/ns/activitystreams#Hashtag","https://www.w3.org/ns/activitystreams#Mention"].some( t => v["@type"].includes(t)) ? await Link.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ) : undefined ; if (typeof decoded === "undefined") continue; @@ -71286,7 +71290,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await CryptographicKey.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ); if (typeof decoded === "undefined") continue; _axq166E2eZADq34V4MYUc8KMZdC_publicKey.push(decoded); @@ -71319,7 +71323,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Multikey.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ); if (typeof decoded === "undefined") continue; _4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.push(decoded); @@ -71372,11 +71376,11 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#OrderedCollection") ? await OrderedCollection.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#OrderedCollectionPage") ? await OrderedCollectionPage.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ) : undefined ; if (typeof decoded === "undefined") continue; @@ -71413,11 +71417,11 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#OrderedCollection") ? await OrderedCollection.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#OrderedCollectionPage") ? await OrderedCollectionPage.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ) : undefined ; if (typeof decoded === "undefined") continue; @@ -71452,7 +71456,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ); if (typeof decoded === "undefined") continue; _3yAv8jymNfNuJUDuBzJ1NQhdbAee_following.push(decoded); @@ -71485,7 +71489,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ); if (typeof decoded === "undefined") continue; _BBCTgfphhsFzpVfKTykGSpBNwoA_followers.push(decoded); @@ -71518,7 +71522,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ); if (typeof decoded === "undefined") continue; _3bgkPwJanyTCoVFM9ovRcus8tKkU_liked.push(decoded); @@ -71551,7 +71555,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ); if (typeof decoded === "undefined") continue; _4N1vBJzXDf8NbBumeECQMFvKetja_featured.push(decoded); @@ -71584,7 +71588,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ); if (typeof decoded === "undefined") continue; _2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags.push(decoded); @@ -71617,7 +71621,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ); if (typeof decoded === "undefined") continue; _3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.push(decoded); @@ -71638,7 +71642,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Endpoints.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ); if (typeof decoded === "undefined") continue; _sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints.push(decoded); @@ -71745,23 +71749,23 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Application") ? await Application.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Group") ? await Group.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Organization") ? await Organization.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Person") ? await Person.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Service") ? await Service.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ) : undefined ; if (typeof decoded === "undefined") continue; @@ -71798,23 +71802,23 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Application") ? await Application.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Group") ? await Group.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Organization") ? await Organization.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Person") ? await Person.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Service") ? await Service.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ) : undefined ; if (typeof decoded === "undefined") continue; @@ -71849,7 +71853,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await DidService.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ); if (typeof decoded === "undefined") continue; _4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.push(decoded); @@ -78298,7 +78302,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await CryptographicKey.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ); if (typeof decoded === "undefined") continue; _axq166E2eZADq34V4MYUc8KMZdC_publicKey.push(decoded); @@ -78331,7 +78335,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Multikey.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ); if (typeof decoded === "undefined") continue; _4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.push(decoded); @@ -78384,11 +78388,11 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#OrderedCollection") ? await OrderedCollection.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#OrderedCollectionPage") ? await OrderedCollectionPage.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ) : undefined ; if (typeof decoded === "undefined") continue; @@ -78425,11 +78429,11 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#OrderedCollection") ? await OrderedCollection.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#OrderedCollectionPage") ? await OrderedCollectionPage.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ) : undefined ; if (typeof decoded === "undefined") continue; @@ -78464,7 +78468,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ); if (typeof decoded === "undefined") continue; _3yAv8jymNfNuJUDuBzJ1NQhdbAee_following.push(decoded); @@ -78497,7 +78501,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ); if (typeof decoded === "undefined") continue; _BBCTgfphhsFzpVfKTykGSpBNwoA_followers.push(decoded); @@ -78530,7 +78534,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ); if (typeof decoded === "undefined") continue; _3bgkPwJanyTCoVFM9ovRcus8tKkU_liked.push(decoded); @@ -78563,7 +78567,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ); if (typeof decoded === "undefined") continue; _4N1vBJzXDf8NbBumeECQMFvKetja_featured.push(decoded); @@ -78596,7 +78600,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ); if (typeof decoded === "undefined") continue; _2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags.push(decoded); @@ -78629,7 +78633,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ); if (typeof decoded === "undefined") continue; _3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.push(decoded); @@ -78650,7 +78654,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Endpoints.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ); if (typeof decoded === "undefined") continue; _sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints.push(decoded); @@ -78757,23 +78761,23 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Application") ? await Application.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Group") ? await Group.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Organization") ? await Organization.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Person") ? await Person.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Service") ? await Service.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ) : undefined ; if (typeof decoded === "undefined") continue; @@ -78810,23 +78814,23 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Application") ? await Application.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Group") ? await Group.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Organization") ? await Organization.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Person") ? await Person.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Service") ? await Service.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ) : undefined ; if (typeof decoded === "undefined") continue; @@ -78861,7 +78865,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await DidService.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ); if (typeof decoded === "undefined") continue; _4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.push(decoded); @@ -80288,9 +80292,9 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu : "" ) ) - : URL.canParse(v["@id"]) && (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) + : URL.canParse(v["@id"]) && (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) ? new URL(v["@id"]) - : new URL(v["@id"], (values["@id"] == null ? options.baseUrl : new URL(values["@id"]))) : undefined + : new URL(v["@id"], (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl))) : undefined ; if (typeof decoded === "undefined") continue; _oKrwxU4V8wiKhMW1QEYQibcJh8c_units.push(decoded); @@ -81068,7 +81072,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ); if (typeof decoded === "undefined") continue; _3CLQ1PLSXrhSQbTGGHuxNyaEFKM1_describes.push(decoded); @@ -82731,7 +82735,7 @@ instruments?: (Object | URL)[];exclusiveOptions?: (Object | URL)[];inclusiveOpti const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ); if (typeof decoded === "undefined") continue; _2N5scKaVEcdYHFmfKYYacAwUhUgQ_oneOf.push(decoded); @@ -82764,7 +82768,7 @@ instruments?: (Object | URL)[];exclusiveOptions?: (Object | URL)[];inclusiveOpti const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ); if (typeof decoded === "undefined") continue; _2mV6isMTPRKbWdLCjcpiEysq5dAY_anyOf.push(decoded); @@ -82846,7 +82850,7 @@ instruments?: (Object | URL)[];exclusiveOptions?: (Object | URL)[];inclusiveOpti const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ); if (typeof decoded === "undefined") continue; _3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote.push(decoded); @@ -82905,7 +82909,7 @@ instruments?: (Object | URL)[];exclusiveOptions?: (Object | URL)[];inclusiveOpti const decoded = await QuoteAuthorization.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ); if (typeof decoded === "undefined") continue; _ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization.push(decoded); @@ -85255,7 +85259,7 @@ relationships?: (Object | URL)[];} const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ); if (typeof decoded === "undefined") continue; _2Zqdmi46ZnDQsECS6mzwhrv3rUKq_subject.push(decoded); @@ -85288,7 +85292,7 @@ relationships?: (Object | URL)[];} const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ); if (typeof decoded === "undefined") continue; _2MH19yxjn1wnHsNfa5n4JBhJzxyc_object.push(decoded); @@ -85321,7 +85325,7 @@ relationships?: (Object | URL)[];} const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ); if (typeof decoded === "undefined") continue; _4Lzz89F9qipAQSGkWyX9DGWiUojG_relationship.push(decoded); @@ -91331,7 +91335,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await CryptographicKey.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ); if (typeof decoded === "undefined") continue; _axq166E2eZADq34V4MYUc8KMZdC_publicKey.push(decoded); @@ -91364,7 +91368,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Multikey.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ); if (typeof decoded === "undefined") continue; _4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.push(decoded); @@ -91417,11 +91421,11 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#OrderedCollection") ? await OrderedCollection.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#OrderedCollectionPage") ? await OrderedCollectionPage.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ) : undefined ; if (typeof decoded === "undefined") continue; @@ -91458,11 +91462,11 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#OrderedCollection") ? await OrderedCollection.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#OrderedCollectionPage") ? await OrderedCollectionPage.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ) : undefined ; if (typeof decoded === "undefined") continue; @@ -91497,7 +91501,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ); if (typeof decoded === "undefined") continue; _3yAv8jymNfNuJUDuBzJ1NQhdbAee_following.push(decoded); @@ -91530,7 +91534,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ); if (typeof decoded === "undefined") continue; _BBCTgfphhsFzpVfKTykGSpBNwoA_followers.push(decoded); @@ -91563,7 +91567,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ); if (typeof decoded === "undefined") continue; _3bgkPwJanyTCoVFM9ovRcus8tKkU_liked.push(decoded); @@ -91596,7 +91600,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ); if (typeof decoded === "undefined") continue; _4N1vBJzXDf8NbBumeECQMFvKetja_featured.push(decoded); @@ -91629,7 +91633,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ); if (typeof decoded === "undefined") continue; _2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags.push(decoded); @@ -91662,7 +91666,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ); if (typeof decoded === "undefined") continue; _3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.push(decoded); @@ -91683,7 +91687,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Endpoints.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ); if (typeof decoded === "undefined") continue; _sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints.push(decoded); @@ -91790,23 +91794,23 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Application") ? await Application.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Group") ? await Group.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Organization") ? await Organization.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Person") ? await Person.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Service") ? await Service.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ) : undefined ; if (typeof decoded === "undefined") continue; @@ -91843,23 +91847,23 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Application") ? await Application.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Group") ? await Group.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Organization") ? await Organization.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Person") ? await Person.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Service") ? await Service.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ) : undefined ; if (typeof decoded === "undefined") continue; @@ -91894,7 +91898,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await DidService.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } + { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } ); if (typeof decoded === "undefined") continue; _4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.push(decoded); diff --git a/packages/vocab-tools/src/codec.ts b/packages/vocab-tools/src/codec.ts index 184ea1203..ccc43f1e7 100644 --- a/packages/vocab-tools/src/codec.ts +++ b/packages/vocab-tools/src/codec.ts @@ -479,7 +479,7 @@ export async function* generateDecoder( property, getTypeNames(property.range, types), variable, - `(values["@id"] == null ? options.baseUrl : new URL(values["@id"]))`, + `(values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl))`, moduleVarNames, ); if (!areAllScalarTypes(property.range, types)) { @@ -503,7 +503,7 @@ export async function* generateDecoder( types, "v", "options", - `(values["@id"] == null ? options.baseUrl : new URL(values["@id"]))`, + `(values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl))`, ) }; if (typeof decoded === "undefined") continue; @@ -517,7 +517,7 @@ export async function* generateDecoder( types, "v", "options", - `(values["@id"] == null ? options.baseUrl : new URL(values["@id"]))`, + `(values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl))`, ); for (const code of decoders) yield code; yield ` diff --git a/packages/vocab-tools/src/property.ts b/packages/vocab-tools/src/property.ts index 9c778fd25..be8c9c98c 100644 --- a/packages/vocab-tools/src/property.ts +++ b/packages/vocab-tools/src/property.ts @@ -171,11 +171,12 @@ async function* generateProperty( property.preprocessors.length > 0 ) { yield ` - const _expanded = await jsonld.expand(jsonLd, { - documentLoader: contextLoader, - keepFreeFloatingNodes: true, - }); - for (const _pp_obj of _expanded) { + if (jsonLd != null && typeof jsonLd === "object") { + const _expanded = await jsonld.expand(jsonLd, { + documentLoader: contextLoader, + keepFreeFloatingNodes: true, + }); + for (const _pp_obj of _expanded) { `; for (const pp of property.preprocessors) { const varName = moduleVarNames.get(pp.module); @@ -187,23 +188,24 @@ async function* generateProperty( ); } yield ` - { - const _result = await ${varName}[${ + { + const _result = await ${varName}[${ JSON.stringify(pp.function) }](_pp_obj, { - documentLoader, - contextLoader, - tracerProvider, - baseUrl, - }); - if (_result instanceof Error) throw _result; - if (_result !== undefined) return _result as ${ + documentLoader, + contextLoader, + tracerProvider, + baseUrl, + }); + if (_result instanceof Error) throw _result; + if (_result !== undefined) return _result as ${ getTypeNames(property.range, types) }; - } + } `; } yield ` + } } `; } From 78f293d30dab0ebbb7511822c1cbe0e1a570c6f4 Mon Sep 17 00:00:00 2001 From: Hong Minhee Date: Sat, 6 Jun 2026 16:22:42 +0900 Subject: [PATCH 24/25] Keep only safe URL.canParse guards, revert decoder guard The URL.canParse guard on the preprocessor/getDecoder/getDecoders baseUrl expression caused a regression where relative @id values in options.baseUrl were incorrectly suppressed, breaking handler tests. Keep the safe guards on options.baseUrl fallback and root @id construction, revert the decoder-level expression to the original main-branch behavior. Assisted-by: OpenCode:deepseek-v4-pro --- .../src/__snapshots__/class.test.ts.deno.snap | 682 +++++++++--------- .../src/__snapshots__/class.test.ts.node.snap | 682 +++++++++--------- .../src/__snapshots__/class.test.ts.snap | 682 +++++++++--------- packages/vocab-tools/src/codec.ts | 8 +- 4 files changed, 1027 insertions(+), 1027 deletions(-) diff --git a/packages/vocab-tools/src/__snapshots__/class.test.ts.deno.snap b/packages/vocab-tools/src/__snapshots__/class.test.ts.deno.snap index 1fd9c7928..a4b3f037c 100644 --- a/packages/vocab-tools/src/__snapshots__/class.test.ts.deno.snap +++ b/packages/vocab-tools/src/__snapshots__/class.test.ts.deno.snap @@ -10294,7 +10294,7 @@ get urls(): ((URL | Link))[] { // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { + if (options.baseUrl == null && values[\\"@id\\"] != null) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -10595,16 +10595,16 @@ get urls(): ((URL | Link))[] { && Array.isArray(v[\\"@type\\"])&& [\\"https://www.w3.org/ns/activitystreams#Object\\",\\"http://joinmastodon.org/ns#Emoji\\",\\"http://litepub.social/ns#ChatMessage\\",\\"https://gotosocial.org/ns#AnnounceAuthorization\\",\\"https://gotosocial.org/ns#LikeApproval\\",\\"https://gotosocial.org/ns#ReplyAuthorization\\",\\"https://w3id.org/fep/044f#QuoteAuthorization\\",\\"https://w3id.org/valueflows/ont/vf#Proposal\\",\\"https://www.w3.org/ns/activitystreams#Activity\\",\\"http://litepub.social/ns#EmojiReact\\",\\"https://gotosocial.org/ns#AnnounceRequest\\",\\"https://gotosocial.org/ns#LikeRequest\\",\\"https://gotosocial.org/ns#ReplyRequest\\",\\"https://w3id.org/fep/044f#QuoteRequest\\",\\"https://www.w3.org/ns/activitystreams#Accept\\",\\"https://www.w3.org/ns/activitystreams#TentativeAccept\\",\\"https://www.w3.org/ns/activitystreams#Add\\",\\"https://www.w3.org/ns/activitystreams#Announce\\",\\"https://www.w3.org/ns/activitystreams#Create\\",\\"https://www.w3.org/ns/activitystreams#Delete\\",\\"https://www.w3.org/ns/activitystreams#Dislike\\",\\"https://www.w3.org/ns/activitystreams#Flag\\",\\"https://www.w3.org/ns/activitystreams#Follow\\",\\"https://www.w3.org/ns/activitystreams#Ignore\\",\\"https://www.w3.org/ns/activitystreams#Block\\",\\"https://www.w3.org/ns/activitystreams#IntransitiveActivity\\",\\"https://www.w3.org/ns/activitystreams#Arrive\\",\\"https://www.w3.org/ns/activitystreams#Question\\",\\"https://www.w3.org/ns/activitystreams#Travel\\",\\"https://www.w3.org/ns/activitystreams#Join\\",\\"https://www.w3.org/ns/activitystreams#Leave\\",\\"https://www.w3.org/ns/activitystreams#Like\\",\\"https://www.w3.org/ns/activitystreams#Listen\\",\\"https://www.w3.org/ns/activitystreams#Move\\",\\"https://www.w3.org/ns/activitystreams#Offer\\",\\"https://www.w3.org/ns/activitystreams#Invite\\",\\"https://www.w3.org/ns/activitystreams#Read\\",\\"https://www.w3.org/ns/activitystreams#Reject\\",\\"https://www.w3.org/ns/activitystreams#TentativeReject\\",\\"https://www.w3.org/ns/activitystreams#Remove\\",\\"https://www.w3.org/ns/activitystreams#Undo\\",\\"https://www.w3.org/ns/activitystreams#Update\\",\\"https://www.w3.org/ns/activitystreams#View\\",\\"https://www.w3.org/ns/activitystreams#Application\\",\\"https://www.w3.org/ns/activitystreams#Article\\",\\"https://www.w3.org/ns/activitystreams#Collection\\",\\"https://www.w3.org/ns/activitystreams#CollectionPage\\",\\"https://www.w3.org/ns/activitystreams#OrderedCollectionPage\\",\\"https://www.w3.org/ns/activitystreams#OrderedCollection\\",\\"https://www.w3.org/ns/activitystreams#Document\\",\\"https://www.w3.org/ns/activitystreams#Audio\\",\\"https://www.w3.org/ns/activitystreams#Image\\",\\"https://www.w3.org/ns/activitystreams#Page\\",\\"https://www.w3.org/ns/activitystreams#Video\\",\\"https://www.w3.org/ns/activitystreams#Event\\",\\"https://www.w3.org/ns/activitystreams#Group\\",\\"https://www.w3.org/ns/activitystreams#Note\\",\\"https://www.w3.org/ns/activitystreams#Organization\\",\\"https://www.w3.org/ns/activitystreams#Person\\",\\"https://www.w3.org/ns/activitystreams#Place\\",\\"https://www.w3.org/ns/activitystreams#Profile\\",\\"https://www.w3.org/ns/activitystreams#Relationship\\",\\"https://www.w3.org/ns/activitystreams#Service\\",\\"https://www.w3.org/ns/activitystreams#Tombstone\\"].some( t => v[\\"@type\\"].includes(t)) ? await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& [\\"https://www.w3.org/ns/activitystreams#Link\\",\\"https://www.w3.org/ns/activitystreams#Hashtag\\",\\"https://www.w3.org/ns/activitystreams#Mention\\"].some( t => v[\\"@type\\"].includes(t)) ? await Link.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"http://schema.org#PropertyValue\\") ? await PropertyValue.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -10641,23 +10641,23 @@ get urls(): ((URL | Link))[] { typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Application\\") ? await Application.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Group\\") ? await Group.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Organization\\") ? await Organization.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Person\\") ? await Person.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Service\\") ? await Service.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -10692,7 +10692,7 @@ get urls(): ((URL | Link))[] { const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _3ocC3VVi88cEd5sPWL8djkZsvTN6_audience.push(decoded); @@ -10752,12 +10752,12 @@ get urls(): ((URL | Link))[] { && Array.isArray(v[\\"@type\\"])&& [\\"https://www.w3.org/ns/activitystreams#Object\\",\\"http://joinmastodon.org/ns#Emoji\\",\\"http://litepub.social/ns#ChatMessage\\",\\"https://gotosocial.org/ns#AnnounceAuthorization\\",\\"https://gotosocial.org/ns#LikeApproval\\",\\"https://gotosocial.org/ns#ReplyAuthorization\\",\\"https://w3id.org/fep/044f#QuoteAuthorization\\",\\"https://w3id.org/valueflows/ont/vf#Proposal\\",\\"https://www.w3.org/ns/activitystreams#Activity\\",\\"http://litepub.social/ns#EmojiReact\\",\\"https://gotosocial.org/ns#AnnounceRequest\\",\\"https://gotosocial.org/ns#LikeRequest\\",\\"https://gotosocial.org/ns#ReplyRequest\\",\\"https://w3id.org/fep/044f#QuoteRequest\\",\\"https://www.w3.org/ns/activitystreams#Accept\\",\\"https://www.w3.org/ns/activitystreams#TentativeAccept\\",\\"https://www.w3.org/ns/activitystreams#Add\\",\\"https://www.w3.org/ns/activitystreams#Announce\\",\\"https://www.w3.org/ns/activitystreams#Create\\",\\"https://www.w3.org/ns/activitystreams#Delete\\",\\"https://www.w3.org/ns/activitystreams#Dislike\\",\\"https://www.w3.org/ns/activitystreams#Flag\\",\\"https://www.w3.org/ns/activitystreams#Follow\\",\\"https://www.w3.org/ns/activitystreams#Ignore\\",\\"https://www.w3.org/ns/activitystreams#Block\\",\\"https://www.w3.org/ns/activitystreams#IntransitiveActivity\\",\\"https://www.w3.org/ns/activitystreams#Arrive\\",\\"https://www.w3.org/ns/activitystreams#Question\\",\\"https://www.w3.org/ns/activitystreams#Travel\\",\\"https://www.w3.org/ns/activitystreams#Join\\",\\"https://www.w3.org/ns/activitystreams#Leave\\",\\"https://www.w3.org/ns/activitystreams#Like\\",\\"https://www.w3.org/ns/activitystreams#Listen\\",\\"https://www.w3.org/ns/activitystreams#Move\\",\\"https://www.w3.org/ns/activitystreams#Offer\\",\\"https://www.w3.org/ns/activitystreams#Invite\\",\\"https://www.w3.org/ns/activitystreams#Read\\",\\"https://www.w3.org/ns/activitystreams#Reject\\",\\"https://www.w3.org/ns/activitystreams#TentativeReject\\",\\"https://www.w3.org/ns/activitystreams#Remove\\",\\"https://www.w3.org/ns/activitystreams#Undo\\",\\"https://www.w3.org/ns/activitystreams#Update\\",\\"https://www.w3.org/ns/activitystreams#View\\",\\"https://www.w3.org/ns/activitystreams#Application\\",\\"https://www.w3.org/ns/activitystreams#Article\\",\\"https://www.w3.org/ns/activitystreams#Collection\\",\\"https://www.w3.org/ns/activitystreams#CollectionPage\\",\\"https://www.w3.org/ns/activitystreams#OrderedCollectionPage\\",\\"https://www.w3.org/ns/activitystreams#OrderedCollection\\",\\"https://www.w3.org/ns/activitystreams#Document\\",\\"https://www.w3.org/ns/activitystreams#Audio\\",\\"https://www.w3.org/ns/activitystreams#Image\\",\\"https://www.w3.org/ns/activitystreams#Page\\",\\"https://www.w3.org/ns/activitystreams#Video\\",\\"https://www.w3.org/ns/activitystreams#Event\\",\\"https://www.w3.org/ns/activitystreams#Group\\",\\"https://www.w3.org/ns/activitystreams#Note\\",\\"https://www.w3.org/ns/activitystreams#Organization\\",\\"https://www.w3.org/ns/activitystreams#Person\\",\\"https://www.w3.org/ns/activitystreams#Place\\",\\"https://www.w3.org/ns/activitystreams#Profile\\",\\"https://www.w3.org/ns/activitystreams#Relationship\\",\\"https://www.w3.org/ns/activitystreams#Service\\",\\"https://www.w3.org/ns/activitystreams#Tombstone\\"].some( t => v[\\"@type\\"].includes(t)) ? await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& [\\"https://www.w3.org/ns/activitystreams#Link\\",\\"https://www.w3.org/ns/activitystreams#Hashtag\\",\\"https://www.w3.org/ns/activitystreams#Mention\\"].some( t => v[\\"@type\\"].includes(t)) ? await Link.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -10841,12 +10841,12 @@ get urls(): ((URL | Link))[] { && Array.isArray(v[\\"@type\\"])&& [\\"https://www.w3.org/ns/activitystreams#Object\\",\\"http://joinmastodon.org/ns#Emoji\\",\\"http://litepub.social/ns#ChatMessage\\",\\"https://gotosocial.org/ns#AnnounceAuthorization\\",\\"https://gotosocial.org/ns#LikeApproval\\",\\"https://gotosocial.org/ns#ReplyAuthorization\\",\\"https://w3id.org/fep/044f#QuoteAuthorization\\",\\"https://w3id.org/valueflows/ont/vf#Proposal\\",\\"https://www.w3.org/ns/activitystreams#Activity\\",\\"http://litepub.social/ns#EmojiReact\\",\\"https://gotosocial.org/ns#AnnounceRequest\\",\\"https://gotosocial.org/ns#LikeRequest\\",\\"https://gotosocial.org/ns#ReplyRequest\\",\\"https://w3id.org/fep/044f#QuoteRequest\\",\\"https://www.w3.org/ns/activitystreams#Accept\\",\\"https://www.w3.org/ns/activitystreams#TentativeAccept\\",\\"https://www.w3.org/ns/activitystreams#Add\\",\\"https://www.w3.org/ns/activitystreams#Announce\\",\\"https://www.w3.org/ns/activitystreams#Create\\",\\"https://www.w3.org/ns/activitystreams#Delete\\",\\"https://www.w3.org/ns/activitystreams#Dislike\\",\\"https://www.w3.org/ns/activitystreams#Flag\\",\\"https://www.w3.org/ns/activitystreams#Follow\\",\\"https://www.w3.org/ns/activitystreams#Ignore\\",\\"https://www.w3.org/ns/activitystreams#Block\\",\\"https://www.w3.org/ns/activitystreams#IntransitiveActivity\\",\\"https://www.w3.org/ns/activitystreams#Arrive\\",\\"https://www.w3.org/ns/activitystreams#Question\\",\\"https://www.w3.org/ns/activitystreams#Travel\\",\\"https://www.w3.org/ns/activitystreams#Join\\",\\"https://www.w3.org/ns/activitystreams#Leave\\",\\"https://www.w3.org/ns/activitystreams#Like\\",\\"https://www.w3.org/ns/activitystreams#Listen\\",\\"https://www.w3.org/ns/activitystreams#Move\\",\\"https://www.w3.org/ns/activitystreams#Offer\\",\\"https://www.w3.org/ns/activitystreams#Invite\\",\\"https://www.w3.org/ns/activitystreams#Read\\",\\"https://www.w3.org/ns/activitystreams#Reject\\",\\"https://www.w3.org/ns/activitystreams#TentativeReject\\",\\"https://www.w3.org/ns/activitystreams#Remove\\",\\"https://www.w3.org/ns/activitystreams#Undo\\",\\"https://www.w3.org/ns/activitystreams#Update\\",\\"https://www.w3.org/ns/activitystreams#View\\",\\"https://www.w3.org/ns/activitystreams#Application\\",\\"https://www.w3.org/ns/activitystreams#Article\\",\\"https://www.w3.org/ns/activitystreams#Collection\\",\\"https://www.w3.org/ns/activitystreams#CollectionPage\\",\\"https://www.w3.org/ns/activitystreams#OrderedCollectionPage\\",\\"https://www.w3.org/ns/activitystreams#OrderedCollection\\",\\"https://www.w3.org/ns/activitystreams#Document\\",\\"https://www.w3.org/ns/activitystreams#Audio\\",\\"https://www.w3.org/ns/activitystreams#Image\\",\\"https://www.w3.org/ns/activitystreams#Page\\",\\"https://www.w3.org/ns/activitystreams#Video\\",\\"https://www.w3.org/ns/activitystreams#Event\\",\\"https://www.w3.org/ns/activitystreams#Group\\",\\"https://www.w3.org/ns/activitystreams#Note\\",\\"https://www.w3.org/ns/activitystreams#Organization\\",\\"https://www.w3.org/ns/activitystreams#Person\\",\\"https://www.w3.org/ns/activitystreams#Place\\",\\"https://www.w3.org/ns/activitystreams#Profile\\",\\"https://www.w3.org/ns/activitystreams#Relationship\\",\\"https://www.w3.org/ns/activitystreams#Service\\",\\"https://www.w3.org/ns/activitystreams#Tombstone\\"].some( t => v[\\"@type\\"].includes(t)) ? await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& [\\"https://www.w3.org/ns/activitystreams#Link\\",\\"https://www.w3.org/ns/activitystreams#Hashtag\\",\\"https://www.w3.org/ns/activitystreams#Mention\\"].some( t => v[\\"@type\\"].includes(t)) ? await Link.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -10877,7 +10877,7 @@ get urls(): ((URL | Link))[] { documentLoader: options.documentLoader, contextLoader: options.contextLoader, tracerProvider: options.tracerProvider, - baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)), + baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])), }); if (_result instanceof Error) throw _result; if (_result !== undefined) { @@ -10903,7 +10903,7 @@ get urls(): ((URL | Link))[] { const decoded = await Image.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _33CjRLy5ujtsUrwRSCrsggvGdKuR_icon.push(decoded); @@ -10932,7 +10932,7 @@ get urls(): ((URL | Link))[] { documentLoader: options.documentLoader, contextLoader: options.contextLoader, tracerProvider: options.tracerProvider, - baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)), + baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])), }); if (_result instanceof Error) throw _result; if (_result !== undefined) { @@ -10958,7 +10958,7 @@ get urls(): ((URL | Link))[] { const decoded = await Image.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _3dXrUdkARxwyJLtJcYi1AJ92H41U_image.push(decoded); @@ -10994,12 +10994,12 @@ get urls(): ((URL | Link))[] { && Array.isArray(v[\\"@type\\"])&& [\\"https://www.w3.org/ns/activitystreams#Object\\",\\"http://joinmastodon.org/ns#Emoji\\",\\"http://litepub.social/ns#ChatMessage\\",\\"https://gotosocial.org/ns#AnnounceAuthorization\\",\\"https://gotosocial.org/ns#LikeApproval\\",\\"https://gotosocial.org/ns#ReplyAuthorization\\",\\"https://w3id.org/fep/044f#QuoteAuthorization\\",\\"https://w3id.org/valueflows/ont/vf#Proposal\\",\\"https://www.w3.org/ns/activitystreams#Activity\\",\\"http://litepub.social/ns#EmojiReact\\",\\"https://gotosocial.org/ns#AnnounceRequest\\",\\"https://gotosocial.org/ns#LikeRequest\\",\\"https://gotosocial.org/ns#ReplyRequest\\",\\"https://w3id.org/fep/044f#QuoteRequest\\",\\"https://www.w3.org/ns/activitystreams#Accept\\",\\"https://www.w3.org/ns/activitystreams#TentativeAccept\\",\\"https://www.w3.org/ns/activitystreams#Add\\",\\"https://www.w3.org/ns/activitystreams#Announce\\",\\"https://www.w3.org/ns/activitystreams#Create\\",\\"https://www.w3.org/ns/activitystreams#Delete\\",\\"https://www.w3.org/ns/activitystreams#Dislike\\",\\"https://www.w3.org/ns/activitystreams#Flag\\",\\"https://www.w3.org/ns/activitystreams#Follow\\",\\"https://www.w3.org/ns/activitystreams#Ignore\\",\\"https://www.w3.org/ns/activitystreams#Block\\",\\"https://www.w3.org/ns/activitystreams#IntransitiveActivity\\",\\"https://www.w3.org/ns/activitystreams#Arrive\\",\\"https://www.w3.org/ns/activitystreams#Question\\",\\"https://www.w3.org/ns/activitystreams#Travel\\",\\"https://www.w3.org/ns/activitystreams#Join\\",\\"https://www.w3.org/ns/activitystreams#Leave\\",\\"https://www.w3.org/ns/activitystreams#Like\\",\\"https://www.w3.org/ns/activitystreams#Listen\\",\\"https://www.w3.org/ns/activitystreams#Move\\",\\"https://www.w3.org/ns/activitystreams#Offer\\",\\"https://www.w3.org/ns/activitystreams#Invite\\",\\"https://www.w3.org/ns/activitystreams#Read\\",\\"https://www.w3.org/ns/activitystreams#Reject\\",\\"https://www.w3.org/ns/activitystreams#TentativeReject\\",\\"https://www.w3.org/ns/activitystreams#Remove\\",\\"https://www.w3.org/ns/activitystreams#Undo\\",\\"https://www.w3.org/ns/activitystreams#Update\\",\\"https://www.w3.org/ns/activitystreams#View\\",\\"https://www.w3.org/ns/activitystreams#Application\\",\\"https://www.w3.org/ns/activitystreams#Article\\",\\"https://www.w3.org/ns/activitystreams#Collection\\",\\"https://www.w3.org/ns/activitystreams#CollectionPage\\",\\"https://www.w3.org/ns/activitystreams#OrderedCollectionPage\\",\\"https://www.w3.org/ns/activitystreams#OrderedCollection\\",\\"https://www.w3.org/ns/activitystreams#Document\\",\\"https://www.w3.org/ns/activitystreams#Audio\\",\\"https://www.w3.org/ns/activitystreams#Image\\",\\"https://www.w3.org/ns/activitystreams#Page\\",\\"https://www.w3.org/ns/activitystreams#Video\\",\\"https://www.w3.org/ns/activitystreams#Event\\",\\"https://www.w3.org/ns/activitystreams#Group\\",\\"https://www.w3.org/ns/activitystreams#Note\\",\\"https://www.w3.org/ns/activitystreams#Organization\\",\\"https://www.w3.org/ns/activitystreams#Person\\",\\"https://www.w3.org/ns/activitystreams#Place\\",\\"https://www.w3.org/ns/activitystreams#Profile\\",\\"https://www.w3.org/ns/activitystreams#Relationship\\",\\"https://www.w3.org/ns/activitystreams#Service\\",\\"https://www.w3.org/ns/activitystreams#Tombstone\\"].some( t => v[\\"@type\\"].includes(t)) ? await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& [\\"https://www.w3.org/ns/activitystreams#Link\\",\\"https://www.w3.org/ns/activitystreams#Hashtag\\",\\"https://www.w3.org/ns/activitystreams#Mention\\"].some( t => v[\\"@type\\"].includes(t)) ? await Link.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -11037,12 +11037,12 @@ get urls(): ((URL | Link))[] { && Array.isArray(v[\\"@type\\"])&& [\\"https://www.w3.org/ns/activitystreams#Object\\",\\"http://joinmastodon.org/ns#Emoji\\",\\"http://litepub.social/ns#ChatMessage\\",\\"https://gotosocial.org/ns#AnnounceAuthorization\\",\\"https://gotosocial.org/ns#LikeApproval\\",\\"https://gotosocial.org/ns#ReplyAuthorization\\",\\"https://w3id.org/fep/044f#QuoteAuthorization\\",\\"https://w3id.org/valueflows/ont/vf#Proposal\\",\\"https://www.w3.org/ns/activitystreams#Activity\\",\\"http://litepub.social/ns#EmojiReact\\",\\"https://gotosocial.org/ns#AnnounceRequest\\",\\"https://gotosocial.org/ns#LikeRequest\\",\\"https://gotosocial.org/ns#ReplyRequest\\",\\"https://w3id.org/fep/044f#QuoteRequest\\",\\"https://www.w3.org/ns/activitystreams#Accept\\",\\"https://www.w3.org/ns/activitystreams#TentativeAccept\\",\\"https://www.w3.org/ns/activitystreams#Add\\",\\"https://www.w3.org/ns/activitystreams#Announce\\",\\"https://www.w3.org/ns/activitystreams#Create\\",\\"https://www.w3.org/ns/activitystreams#Delete\\",\\"https://www.w3.org/ns/activitystreams#Dislike\\",\\"https://www.w3.org/ns/activitystreams#Flag\\",\\"https://www.w3.org/ns/activitystreams#Follow\\",\\"https://www.w3.org/ns/activitystreams#Ignore\\",\\"https://www.w3.org/ns/activitystreams#Block\\",\\"https://www.w3.org/ns/activitystreams#IntransitiveActivity\\",\\"https://www.w3.org/ns/activitystreams#Arrive\\",\\"https://www.w3.org/ns/activitystreams#Question\\",\\"https://www.w3.org/ns/activitystreams#Travel\\",\\"https://www.w3.org/ns/activitystreams#Join\\",\\"https://www.w3.org/ns/activitystreams#Leave\\",\\"https://www.w3.org/ns/activitystreams#Like\\",\\"https://www.w3.org/ns/activitystreams#Listen\\",\\"https://www.w3.org/ns/activitystreams#Move\\",\\"https://www.w3.org/ns/activitystreams#Offer\\",\\"https://www.w3.org/ns/activitystreams#Invite\\",\\"https://www.w3.org/ns/activitystreams#Read\\",\\"https://www.w3.org/ns/activitystreams#Reject\\",\\"https://www.w3.org/ns/activitystreams#TentativeReject\\",\\"https://www.w3.org/ns/activitystreams#Remove\\",\\"https://www.w3.org/ns/activitystreams#Undo\\",\\"https://www.w3.org/ns/activitystreams#Update\\",\\"https://www.w3.org/ns/activitystreams#View\\",\\"https://www.w3.org/ns/activitystreams#Application\\",\\"https://www.w3.org/ns/activitystreams#Article\\",\\"https://www.w3.org/ns/activitystreams#Collection\\",\\"https://www.w3.org/ns/activitystreams#CollectionPage\\",\\"https://www.w3.org/ns/activitystreams#OrderedCollectionPage\\",\\"https://www.w3.org/ns/activitystreams#OrderedCollection\\",\\"https://www.w3.org/ns/activitystreams#Document\\",\\"https://www.w3.org/ns/activitystreams#Audio\\",\\"https://www.w3.org/ns/activitystreams#Image\\",\\"https://www.w3.org/ns/activitystreams#Page\\",\\"https://www.w3.org/ns/activitystreams#Video\\",\\"https://www.w3.org/ns/activitystreams#Event\\",\\"https://www.w3.org/ns/activitystreams#Group\\",\\"https://www.w3.org/ns/activitystreams#Note\\",\\"https://www.w3.org/ns/activitystreams#Organization\\",\\"https://www.w3.org/ns/activitystreams#Person\\",\\"https://www.w3.org/ns/activitystreams#Place\\",\\"https://www.w3.org/ns/activitystreams#Profile\\",\\"https://www.w3.org/ns/activitystreams#Relationship\\",\\"https://www.w3.org/ns/activitystreams#Service\\",\\"https://www.w3.org/ns/activitystreams#Tombstone\\"].some( t => v[\\"@type\\"].includes(t)) ? await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& [\\"https://www.w3.org/ns/activitystreams#Link\\",\\"https://www.w3.org/ns/activitystreams#Hashtag\\",\\"https://www.w3.org/ns/activitystreams#Mention\\"].some( t => v[\\"@type\\"].includes(t)) ? await Link.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -11080,12 +11080,12 @@ get urls(): ((URL | Link))[] { && Array.isArray(v[\\"@type\\"])&& [\\"https://www.w3.org/ns/activitystreams#Link\\",\\"https://www.w3.org/ns/activitystreams#Hashtag\\",\\"https://www.w3.org/ns/activitystreams#Mention\\"].some( t => v[\\"@type\\"].includes(t)) ? await Link.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& [\\"https://www.w3.org/ns/activitystreams#Object\\",\\"http://joinmastodon.org/ns#Emoji\\",\\"http://litepub.social/ns#ChatMessage\\",\\"https://gotosocial.org/ns#AnnounceAuthorization\\",\\"https://gotosocial.org/ns#LikeApproval\\",\\"https://gotosocial.org/ns#ReplyAuthorization\\",\\"https://w3id.org/fep/044f#QuoteAuthorization\\",\\"https://w3id.org/valueflows/ont/vf#Proposal\\",\\"https://www.w3.org/ns/activitystreams#Activity\\",\\"http://litepub.social/ns#EmojiReact\\",\\"https://gotosocial.org/ns#AnnounceRequest\\",\\"https://gotosocial.org/ns#LikeRequest\\",\\"https://gotosocial.org/ns#ReplyRequest\\",\\"https://w3id.org/fep/044f#QuoteRequest\\",\\"https://www.w3.org/ns/activitystreams#Accept\\",\\"https://www.w3.org/ns/activitystreams#TentativeAccept\\",\\"https://www.w3.org/ns/activitystreams#Add\\",\\"https://www.w3.org/ns/activitystreams#Announce\\",\\"https://www.w3.org/ns/activitystreams#Create\\",\\"https://www.w3.org/ns/activitystreams#Delete\\",\\"https://www.w3.org/ns/activitystreams#Dislike\\",\\"https://www.w3.org/ns/activitystreams#Flag\\",\\"https://www.w3.org/ns/activitystreams#Follow\\",\\"https://www.w3.org/ns/activitystreams#Ignore\\",\\"https://www.w3.org/ns/activitystreams#Block\\",\\"https://www.w3.org/ns/activitystreams#IntransitiveActivity\\",\\"https://www.w3.org/ns/activitystreams#Arrive\\",\\"https://www.w3.org/ns/activitystreams#Question\\",\\"https://www.w3.org/ns/activitystreams#Travel\\",\\"https://www.w3.org/ns/activitystreams#Join\\",\\"https://www.w3.org/ns/activitystreams#Leave\\",\\"https://www.w3.org/ns/activitystreams#Like\\",\\"https://www.w3.org/ns/activitystreams#Listen\\",\\"https://www.w3.org/ns/activitystreams#Move\\",\\"https://www.w3.org/ns/activitystreams#Offer\\",\\"https://www.w3.org/ns/activitystreams#Invite\\",\\"https://www.w3.org/ns/activitystreams#Read\\",\\"https://www.w3.org/ns/activitystreams#Reject\\",\\"https://www.w3.org/ns/activitystreams#TentativeReject\\",\\"https://www.w3.org/ns/activitystreams#Remove\\",\\"https://www.w3.org/ns/activitystreams#Undo\\",\\"https://www.w3.org/ns/activitystreams#Update\\",\\"https://www.w3.org/ns/activitystreams#View\\",\\"https://www.w3.org/ns/activitystreams#Application\\",\\"https://www.w3.org/ns/activitystreams#Article\\",\\"https://www.w3.org/ns/activitystreams#Collection\\",\\"https://www.w3.org/ns/activitystreams#CollectionPage\\",\\"https://www.w3.org/ns/activitystreams#OrderedCollectionPage\\",\\"https://www.w3.org/ns/activitystreams#OrderedCollection\\",\\"https://www.w3.org/ns/activitystreams#Document\\",\\"https://www.w3.org/ns/activitystreams#Audio\\",\\"https://www.w3.org/ns/activitystreams#Image\\",\\"https://www.w3.org/ns/activitystreams#Page\\",\\"https://www.w3.org/ns/activitystreams#Video\\",\\"https://www.w3.org/ns/activitystreams#Event\\",\\"https://www.w3.org/ns/activitystreams#Group\\",\\"https://www.w3.org/ns/activitystreams#Note\\",\\"https://www.w3.org/ns/activitystreams#Organization\\",\\"https://www.w3.org/ns/activitystreams#Person\\",\\"https://www.w3.org/ns/activitystreams#Place\\",\\"https://www.w3.org/ns/activitystreams#Profile\\",\\"https://www.w3.org/ns/activitystreams#Relationship\\",\\"https://www.w3.org/ns/activitystreams#Service\\",\\"https://www.w3.org/ns/activitystreams#Tombstone\\"].some( t => v[\\"@type\\"].includes(t)) ? await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -11142,7 +11142,7 @@ get urls(): ((URL | Link))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _7UpwM3JWcXhADcscukEehBorf6k_replies.push(decoded); @@ -11175,7 +11175,7 @@ get urls(): ((URL | Link))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _3kAfck9PcEYt2L7xug5y99YPbANs_shares.push(decoded); @@ -11208,7 +11208,7 @@ get urls(): ((URL | Link))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _S3ceDnpMdzoTRCccB9FkJWrEzYW_likes.push(decoded); @@ -11241,7 +11241,7 @@ get urls(): ((URL | Link))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _kMatyyNAuxoTD8GQMBfA5ogThMR_emojiReactions.push(decoded); @@ -11323,12 +11323,12 @@ get urls(): ((URL | Link))[] { && Array.isArray(v[\\"@type\\"])&& [\\"https://www.w3.org/ns/activitystreams#Object\\",\\"http://joinmastodon.org/ns#Emoji\\",\\"http://litepub.social/ns#ChatMessage\\",\\"https://gotosocial.org/ns#AnnounceAuthorization\\",\\"https://gotosocial.org/ns#LikeApproval\\",\\"https://gotosocial.org/ns#ReplyAuthorization\\",\\"https://w3id.org/fep/044f#QuoteAuthorization\\",\\"https://w3id.org/valueflows/ont/vf#Proposal\\",\\"https://www.w3.org/ns/activitystreams#Activity\\",\\"http://litepub.social/ns#EmojiReact\\",\\"https://gotosocial.org/ns#AnnounceRequest\\",\\"https://gotosocial.org/ns#LikeRequest\\",\\"https://gotosocial.org/ns#ReplyRequest\\",\\"https://w3id.org/fep/044f#QuoteRequest\\",\\"https://www.w3.org/ns/activitystreams#Accept\\",\\"https://www.w3.org/ns/activitystreams#TentativeAccept\\",\\"https://www.w3.org/ns/activitystreams#Add\\",\\"https://www.w3.org/ns/activitystreams#Announce\\",\\"https://www.w3.org/ns/activitystreams#Create\\",\\"https://www.w3.org/ns/activitystreams#Delete\\",\\"https://www.w3.org/ns/activitystreams#Dislike\\",\\"https://www.w3.org/ns/activitystreams#Flag\\",\\"https://www.w3.org/ns/activitystreams#Follow\\",\\"https://www.w3.org/ns/activitystreams#Ignore\\",\\"https://www.w3.org/ns/activitystreams#Block\\",\\"https://www.w3.org/ns/activitystreams#IntransitiveActivity\\",\\"https://www.w3.org/ns/activitystreams#Arrive\\",\\"https://www.w3.org/ns/activitystreams#Question\\",\\"https://www.w3.org/ns/activitystreams#Travel\\",\\"https://www.w3.org/ns/activitystreams#Join\\",\\"https://www.w3.org/ns/activitystreams#Leave\\",\\"https://www.w3.org/ns/activitystreams#Like\\",\\"https://www.w3.org/ns/activitystreams#Listen\\",\\"https://www.w3.org/ns/activitystreams#Move\\",\\"https://www.w3.org/ns/activitystreams#Offer\\",\\"https://www.w3.org/ns/activitystreams#Invite\\",\\"https://www.w3.org/ns/activitystreams#Read\\",\\"https://www.w3.org/ns/activitystreams#Reject\\",\\"https://www.w3.org/ns/activitystreams#TentativeReject\\",\\"https://www.w3.org/ns/activitystreams#Remove\\",\\"https://www.w3.org/ns/activitystreams#Undo\\",\\"https://www.w3.org/ns/activitystreams#Update\\",\\"https://www.w3.org/ns/activitystreams#View\\",\\"https://www.w3.org/ns/activitystreams#Application\\",\\"https://www.w3.org/ns/activitystreams#Article\\",\\"https://www.w3.org/ns/activitystreams#Collection\\",\\"https://www.w3.org/ns/activitystreams#CollectionPage\\",\\"https://www.w3.org/ns/activitystreams#OrderedCollectionPage\\",\\"https://www.w3.org/ns/activitystreams#OrderedCollection\\",\\"https://www.w3.org/ns/activitystreams#Document\\",\\"https://www.w3.org/ns/activitystreams#Audio\\",\\"https://www.w3.org/ns/activitystreams#Image\\",\\"https://www.w3.org/ns/activitystreams#Page\\",\\"https://www.w3.org/ns/activitystreams#Video\\",\\"https://www.w3.org/ns/activitystreams#Event\\",\\"https://www.w3.org/ns/activitystreams#Group\\",\\"https://www.w3.org/ns/activitystreams#Note\\",\\"https://www.w3.org/ns/activitystreams#Organization\\",\\"https://www.w3.org/ns/activitystreams#Person\\",\\"https://www.w3.org/ns/activitystreams#Place\\",\\"https://www.w3.org/ns/activitystreams#Profile\\",\\"https://www.w3.org/ns/activitystreams#Relationship\\",\\"https://www.w3.org/ns/activitystreams#Service\\",\\"https://www.w3.org/ns/activitystreams#Tombstone\\"].some( t => v[\\"@type\\"].includes(t)) ? await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& [\\"https://www.w3.org/ns/activitystreams#Link\\",\\"https://www.w3.org/ns/activitystreams#Hashtag\\",\\"https://www.w3.org/ns/activitystreams#Mention\\"].some( t => v[\\"@type\\"].includes(t)) ? await Link.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -11387,13 +11387,13 @@ get urls(): ((URL | Link))[] { : \\"\\" ) ) - : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) + : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) ? new URL(v[\\"@id\\"]) - : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl))) : typeof v === \\"object\\" && \\"@type\\" in v + : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"]))) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& [\\"https://www.w3.org/ns/activitystreams#Link\\",\\"https://www.w3.org/ns/activitystreams#Hashtag\\",\\"https://www.w3.org/ns/activitystreams#Mention\\"].some( t => v[\\"@type\\"].includes(t)) ? await Link.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -11428,7 +11428,7 @@ get urls(): ((URL | Link))[] { const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _3hFbw7DTpHhq3cvVhkY8njhcsXbd_to.push(decoded); @@ -11461,7 +11461,7 @@ get urls(): ((URL | Link))[] { const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _aLZupjwL8XB7tzdLgCMXdjZ6qej_bto.push(decoded); @@ -11494,7 +11494,7 @@ get urls(): ((URL | Link))[] { const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _42a1SvBs24QSLzKcfjCyNTjW5a1g_cc.push(decoded); @@ -11527,7 +11527,7 @@ get urls(): ((URL | Link))[] { const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _3qvegKUB8YLgTXRpEf8E6JZSkz2H_bcc.push(decoded); @@ -11602,7 +11602,7 @@ get urls(): ((URL | Link))[] { const decoded = await Source.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _2ZwCFoS787v8y8bXKjMoE6MAbrEB_source.push(decoded); @@ -11635,7 +11635,7 @@ get urls(): ((URL | Link))[] { const decoded = await DataIntegrityProof.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _42rPnotok1ivQ2RNCKNbeFJgx8b8_proof.push(decoded); @@ -11656,7 +11656,7 @@ get urls(): ((URL | Link))[] { const decoded = await InteractionPolicy.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _2MHQfh2N74MMmDLDqYWFo7TxYQK2_interactionPolicy.push(decoded); @@ -11688,9 +11688,9 @@ get urls(): ((URL | Link))[] { : \\"\\" ) ) - : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) + : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) ? new URL(v[\\"@id\\"]) - : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl))); + : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"]))); if (typeof decoded === \\"undefined\\") continue; _23YiVs2miQcEiUdn4u8SvjQKWYim_approvedBy.push(decoded); } @@ -11722,7 +11722,7 @@ get urls(): ((URL | Link))[] { const decoded = await LikeAuthorization.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _3fCeb5aXaDDd4fvkQ96BLWifBUBa_likeAuthorization.push(decoded); @@ -11755,7 +11755,7 @@ get urls(): ((URL | Link))[] { const decoded = await ReplyAuthorization.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _YA4wdUW7rYztAQ6SjhMnJCmcmtP_replyAuthorization.push(decoded); @@ -11788,7 +11788,7 @@ get urls(): ((URL | Link))[] { const decoded = await AnnounceAuthorization.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _446xEaDBs3Fz6MyzP3PSBaLupkbJ_announceAuthorization.push(decoded); @@ -12966,7 +12966,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { + if (options.baseUrl == null && values[\\"@id\\"] != null) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -13968,7 +13968,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { + if (options.baseUrl == null && values[\\"@id\\"] != null) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -14019,7 +14019,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote.push(decoded); @@ -14078,7 +14078,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await QuoteAuthorization.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization.push(decoded); @@ -17001,7 +17001,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { + if (options.baseUrl == null && values[\\"@id\\"] != null) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -17190,23 +17190,23 @@ instruments?: (Object | URL)[];} typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Application\\") ? await Application.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Group\\") ? await Group.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Organization\\") ? await Organization.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Person\\") ? await Person.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Service\\") ? await Service.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -17241,7 +17241,7 @@ instruments?: (Object | URL)[];} const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _2MH19yxjn1wnHsNfa5n4JBhJzxyc_object.push(decoded); @@ -17274,7 +17274,7 @@ instruments?: (Object | URL)[];} const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _3JQCmF2Ww56Ag9EWRYoSZRDNCYtF_target.push(decoded); @@ -17307,7 +17307,7 @@ instruments?: (Object | URL)[];} const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _u4QGFbRFcYmPEKGbPv1hpBR9r5G_result.push(decoded); @@ -17340,7 +17340,7 @@ instruments?: (Object | URL)[];} const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _25zu2s3VxVujgEKqrDycjE284XQR_origin.push(decoded); @@ -17373,7 +17373,7 @@ instruments?: (Object | URL)[];} const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _3c5t2x7DYRo2shwTxpkd4kYSS5WQ_instrument.push(decoded); @@ -17844,7 +17844,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { + if (options.baseUrl == null && values[\\"@id\\"] != null) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -18347,7 +18347,7 @@ name?: string | LanguageString | null;value?: string | LanguageString | null;} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { + if (options.baseUrl == null && values[\\"@id\\"] != null) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -18933,7 +18933,7 @@ unit?: string | null;numericalValue?: Decimal | null;} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { + if (options.baseUrl == null && values[\\"@id\\"] != null) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -19928,7 +19928,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { + if (options.baseUrl == null && values[\\"@id\\"] != null) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -19979,7 +19979,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject.push(decoded); @@ -20012,7 +20012,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget.push(decoded); @@ -20377,7 +20377,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { + if (options.baseUrl == null && values[\\"@id\\"] != null) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -20968,7 +20968,7 @@ canLike?: InteractionRule | null;canReply?: InteractionRule | null;canAnnounce?: // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { + if (options.baseUrl == null && values[\\"@id\\"] != null) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -21002,7 +21002,7 @@ canLike?: InteractionRule | null;canReply?: InteractionRule | null;canAnnounce?: const decoded = await InteractionRule.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _3JkwVLb3BNCwCWdsb5RftGAg8vyT_canLike.push(decoded); @@ -21023,7 +21023,7 @@ canLike?: InteractionRule | null;canReply?: InteractionRule | null;canAnnounce?: const decoded = await InteractionRule.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _2UBgLRi5p3DRGGvWyB227i4Qjhzd_canReply.push(decoded); @@ -21044,7 +21044,7 @@ canLike?: InteractionRule | null;canReply?: InteractionRule | null;canAnnounce?: const decoded = await InteractionRule.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _fu5nmoAj528fBQfnxhY9Daok3Vi_canAnnounce.push(decoded); @@ -21065,7 +21065,7 @@ canLike?: InteractionRule | null;canReply?: InteractionRule | null;canAnnounce?: const decoded = await InteractionRule.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _LE3zBTVacTZw2LSyLt4wVUkXeUy_canQuote.push(decoded); @@ -21716,7 +21716,7 @@ get manualApprovals(): (URL)[] { // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { + if (options.baseUrl == null && values[\\"@id\\"] != null) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -21761,9 +21761,9 @@ get manualApprovals(): (URL)[] { : \\"\\" ) ) - : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) + : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) ? new URL(v[\\"@id\\"]) - : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl))); + : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"]))); if (typeof decoded === \\"undefined\\") continue; _2rFyCF14HoyNjitj9PmCzek5iSsg_automaticApproval.push(decoded); } @@ -21794,9 +21794,9 @@ get manualApprovals(): (URL)[] { : \\"\\" ) ) - : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) + : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) ? new URL(v[\\"@id\\"]) - : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl))); + : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"]))); if (typeof decoded === \\"undefined\\") continue; _sxj8y5XMMMBWUnRYFw85MKedCMj_manualApproval.push(decoded); } @@ -22752,7 +22752,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { + if (options.baseUrl == null && values[\\"@id\\"] != null) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -22803,7 +22803,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject.push(decoded); @@ -22836,7 +22836,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget.push(decoded); @@ -23200,7 +23200,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { + if (options.baseUrl == null && values[\\"@id\\"] != null) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -24108,7 +24108,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { + if (options.baseUrl == null && values[\\"@id\\"] != null) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -24159,7 +24159,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject.push(decoded); @@ -24192,7 +24192,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget.push(decoded); @@ -24556,7 +24556,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { + if (options.baseUrl == null && values[\\"@id\\"] != null) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -25463,7 +25463,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { + if (options.baseUrl == null && values[\\"@id\\"] != null) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -25514,7 +25514,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject.push(decoded); @@ -25547,7 +25547,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget.push(decoded); @@ -25911,7 +25911,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { + if (options.baseUrl == null && values[\\"@id\\"] != null) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -26356,7 +26356,7 @@ get endpoints(): (URL)[] { // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { + if (options.baseUrl == null && values[\\"@id\\"] != null) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -26405,9 +26405,9 @@ get endpoints(): (URL)[] { : \\"\\" ) ) - : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) + : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) ? new URL(v[\\"@id\\"]) - : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl))); + : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"]))); if (typeof decoded === \\"undefined\\") continue; _2KM4fetG6FTJ1cphj76rzJ8Dyv7p_serviceEndpoint.push(decoded); } @@ -26709,7 +26709,7 @@ endpoints?: (URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { + if (options.baseUrl == null && values[\\"@id\\"] != null) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -27527,7 +27527,7 @@ cryptosuite?: \\"eddsa-jcs-2022\\" | null;verificationMethod?: Multikey | URL | // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { + if (options.baseUrl == null && values[\\"@id\\"] != null) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -27591,7 +27591,7 @@ cryptosuite?: \\"eddsa-jcs-2022\\" | null;verificationMethod?: Multikey | URL | const decoded = await Multikey.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _2mHVKxqA7zncjveJrDEo3pWpMZqg_verificationMethod.push(decoded); @@ -28494,7 +28494,7 @@ owner?: Application | Group | Organization | Person | Service | URL | null;publi // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { + if (options.baseUrl == null && values[\\"@id\\"] != null) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -28542,23 +28542,23 @@ owner?: Application | Group | Organization | Person | Service | URL | null;publi typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Application\\") ? await Application.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Group\\") ? await Group.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Organization\\") ? await Organization.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Person\\") ? await Person.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Service\\") ? await Service.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -29374,7 +29374,7 @@ controller?: Application | Group | Organization | Person | Service | URL | null; // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { + if (options.baseUrl == null && values[\\"@id\\"] != null) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -29422,23 +29422,23 @@ controller?: Application | Group | Organization | Person | Service | URL | null; typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Application\\") ? await Application.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Group\\") ? await Group.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Organization\\") ? await Organization.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Person\\") ? await Person.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Service\\") ? await Service.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -30209,7 +30209,7 @@ action?: string | null;resourceConformsTo?: URL | null;resourceQuantity?: Measur // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { + if (options.baseUrl == null && values[\\"@id\\"] != null) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -30272,9 +30272,9 @@ action?: string | null;resourceConformsTo?: URL | null;resourceQuantity?: Measur : \\"\\" ) ) - : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) + : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) ? new URL(v[\\"@id\\"]) - : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl))); + : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"]))); if (typeof decoded === \\"undefined\\") continue; _BBAeMUUQDwBQn6cvu3P2Csd6b6h_resourceConformsTo.push(decoded); } @@ -30294,7 +30294,7 @@ action?: string | null;resourceConformsTo?: URL | null;resourceQuantity?: Measur const decoded = await Measure.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _2dLfqTbbRiggEcMQWbHpxkQrtmrc_resourceQuantity.push(decoded); @@ -30315,7 +30315,7 @@ action?: string | null;resourceConformsTo?: URL | null;resourceQuantity?: Measur const decoded = await Measure.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _YmNSnuih3Zk4VdR5JPVnQYroLAh_availableQuantity.push(decoded); @@ -30336,7 +30336,7 @@ action?: string | null;resourceConformsTo?: URL | null;resourceQuantity?: Measur const decoded = await Measure.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _3XueAFds2NBrqNpnV8b7aC8hV72S_minimumQuantity.push(decoded); @@ -31081,7 +31081,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { + if (options.baseUrl == null && values[\\"@id\\"] != null) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -31138,7 +31138,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Intent.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _sS5LvXX8cn4c3x6ux836AwYbTyJ_publishes.push(decoded); @@ -31159,7 +31159,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Intent.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _Z4ntJgFwR9BaNTbFvkRTGNEwUwy_reciprocal.push(decoded); @@ -31574,7 +31574,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { + if (options.baseUrl == null && values[\\"@id\\"] != null) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -31914,7 +31914,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { + if (options.baseUrl == null && values[\\"@id\\"] != null) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -32249,7 +32249,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { + if (options.baseUrl == null && values[\\"@id\\"] != null) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -37796,7 +37796,7 @@ get preferredUsernames(): ((string | LanguageString))[] { // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { + if (options.baseUrl == null && values[\\"@id\\"] != null) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -37871,7 +37871,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await CryptographicKey.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _axq166E2eZADq34V4MYUc8KMZdC_publicKey.push(decoded); @@ -37904,7 +37904,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Multikey.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.push(decoded); @@ -37957,11 +37957,11 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#OrderedCollection\\") ? await OrderedCollection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#OrderedCollectionPage\\") ? await OrderedCollectionPage.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -37998,11 +37998,11 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#OrderedCollection\\") ? await OrderedCollection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#OrderedCollectionPage\\") ? await OrderedCollectionPage.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -38037,7 +38037,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _3yAv8jymNfNuJUDuBzJ1NQhdbAee_following.push(decoded); @@ -38070,7 +38070,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _BBCTgfphhsFzpVfKTykGSpBNwoA_followers.push(decoded); @@ -38103,7 +38103,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _3bgkPwJanyTCoVFM9ovRcus8tKkU_liked.push(decoded); @@ -38136,7 +38136,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _4N1vBJzXDf8NbBumeECQMFvKetja_featured.push(decoded); @@ -38169,7 +38169,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags.push(decoded); @@ -38202,7 +38202,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.push(decoded); @@ -38223,7 +38223,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Endpoints.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints.push(decoded); @@ -38330,23 +38330,23 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Application\\") ? await Application.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Group\\") ? await Group.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Organization\\") ? await Organization.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Person\\") ? await Person.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Service\\") ? await Service.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -38383,23 +38383,23 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Application\\") ? await Application.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Group\\") ? await Group.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Organization\\") ? await Organization.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Person\\") ? await Person.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Service\\") ? await Service.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -38434,7 +38434,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await DidService.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.push(decoded); @@ -39259,7 +39259,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { + if (options.baseUrl == null && values[\\"@id\\"] != null) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -39606,7 +39606,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { + if (options.baseUrl == null && values[\\"@id\\"] != null) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -40603,7 +40603,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { + if (options.baseUrl == null && values[\\"@id\\"] != null) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -40654,7 +40654,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote.push(decoded); @@ -40713,7 +40713,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await QuoteAuthorization.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization.push(decoded); @@ -41244,7 +41244,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { + if (options.baseUrl == null && values[\\"@id\\"] != null) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -41673,7 +41673,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { + if (options.baseUrl == null && values[\\"@id\\"] != null) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -42007,7 +42007,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { + if (options.baseUrl == null && values[\\"@id\\"] != null) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -42347,7 +42347,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { + if (options.baseUrl == null && values[\\"@id\\"] != null) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -46170,7 +46170,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { + if (options.baseUrl == null && values[\\"@id\\"] != null) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -46251,7 +46251,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await CollectionPage.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _3UyUdxnyn6cDn53QKrh4MBiearma_current.push(decoded); @@ -46284,7 +46284,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await CollectionPage.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _J52RqweMe6hhv7RnLJMC8BExTE5_first.push(decoded); @@ -46317,7 +46317,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await CollectionPage.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _gyJJnyEFnuNVi1HFZKfAn3Hfn26_last.push(decoded); @@ -46353,12 +46353,12 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu && Array.isArray(v[\\"@type\\"])&& [\\"https://www.w3.org/ns/activitystreams#Object\\",\\"http://joinmastodon.org/ns#Emoji\\",\\"http://litepub.social/ns#ChatMessage\\",\\"https://gotosocial.org/ns#AnnounceAuthorization\\",\\"https://gotosocial.org/ns#LikeApproval\\",\\"https://gotosocial.org/ns#ReplyAuthorization\\",\\"https://w3id.org/fep/044f#QuoteAuthorization\\",\\"https://w3id.org/valueflows/ont/vf#Proposal\\",\\"https://www.w3.org/ns/activitystreams#Activity\\",\\"http://litepub.social/ns#EmojiReact\\",\\"https://gotosocial.org/ns#AnnounceRequest\\",\\"https://gotosocial.org/ns#LikeRequest\\",\\"https://gotosocial.org/ns#ReplyRequest\\",\\"https://w3id.org/fep/044f#QuoteRequest\\",\\"https://www.w3.org/ns/activitystreams#Accept\\",\\"https://www.w3.org/ns/activitystreams#TentativeAccept\\",\\"https://www.w3.org/ns/activitystreams#Add\\",\\"https://www.w3.org/ns/activitystreams#Announce\\",\\"https://www.w3.org/ns/activitystreams#Create\\",\\"https://www.w3.org/ns/activitystreams#Delete\\",\\"https://www.w3.org/ns/activitystreams#Dislike\\",\\"https://www.w3.org/ns/activitystreams#Flag\\",\\"https://www.w3.org/ns/activitystreams#Follow\\",\\"https://www.w3.org/ns/activitystreams#Ignore\\",\\"https://www.w3.org/ns/activitystreams#Block\\",\\"https://www.w3.org/ns/activitystreams#IntransitiveActivity\\",\\"https://www.w3.org/ns/activitystreams#Arrive\\",\\"https://www.w3.org/ns/activitystreams#Question\\",\\"https://www.w3.org/ns/activitystreams#Travel\\",\\"https://www.w3.org/ns/activitystreams#Join\\",\\"https://www.w3.org/ns/activitystreams#Leave\\",\\"https://www.w3.org/ns/activitystreams#Like\\",\\"https://www.w3.org/ns/activitystreams#Listen\\",\\"https://www.w3.org/ns/activitystreams#Move\\",\\"https://www.w3.org/ns/activitystreams#Offer\\",\\"https://www.w3.org/ns/activitystreams#Invite\\",\\"https://www.w3.org/ns/activitystreams#Read\\",\\"https://www.w3.org/ns/activitystreams#Reject\\",\\"https://www.w3.org/ns/activitystreams#TentativeReject\\",\\"https://www.w3.org/ns/activitystreams#Remove\\",\\"https://www.w3.org/ns/activitystreams#Undo\\",\\"https://www.w3.org/ns/activitystreams#Update\\",\\"https://www.w3.org/ns/activitystreams#View\\",\\"https://www.w3.org/ns/activitystreams#Application\\",\\"https://www.w3.org/ns/activitystreams#Article\\",\\"https://www.w3.org/ns/activitystreams#Collection\\",\\"https://www.w3.org/ns/activitystreams#CollectionPage\\",\\"https://www.w3.org/ns/activitystreams#OrderedCollectionPage\\",\\"https://www.w3.org/ns/activitystreams#OrderedCollection\\",\\"https://www.w3.org/ns/activitystreams#Document\\",\\"https://www.w3.org/ns/activitystreams#Audio\\",\\"https://www.w3.org/ns/activitystreams#Image\\",\\"https://www.w3.org/ns/activitystreams#Page\\",\\"https://www.w3.org/ns/activitystreams#Video\\",\\"https://www.w3.org/ns/activitystreams#Event\\",\\"https://www.w3.org/ns/activitystreams#Group\\",\\"https://www.w3.org/ns/activitystreams#Note\\",\\"https://www.w3.org/ns/activitystreams#Organization\\",\\"https://www.w3.org/ns/activitystreams#Person\\",\\"https://www.w3.org/ns/activitystreams#Place\\",\\"https://www.w3.org/ns/activitystreams#Profile\\",\\"https://www.w3.org/ns/activitystreams#Relationship\\",\\"https://www.w3.org/ns/activitystreams#Service\\",\\"https://www.w3.org/ns/activitystreams#Tombstone\\"].some( t => v[\\"@type\\"].includes(t)) ? await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& [\\"https://www.w3.org/ns/activitystreams#Link\\",\\"https://www.w3.org/ns/activitystreams#Hashtag\\",\\"https://www.w3.org/ns/activitystreams#Mention\\"].some( t => v[\\"@type\\"].includes(t)) ? await Link.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -46393,7 +46393,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _4TB9Qd9ddtcZEpMfzbHhzafE6jaJ_likesOf.push(decoded); @@ -46426,7 +46426,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _3manzgeKiPsugpztKGiaUUwJ3ito_sharesOf.push(decoded); @@ -46459,7 +46459,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _3T3oGm3twpcQUcrnMisXQtmDZ32X_repliesOf.push(decoded); @@ -46492,7 +46492,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _2bvRkAFZjMfVD8jiUWZJr5YokSeN_inboxOf.push(decoded); @@ -46525,7 +46525,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _4AHzVZDxHjK6uEWa9UiKHGK34yYm_outboxOf.push(decoded); @@ -46558,7 +46558,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _41aoZ5M6yRUHy3Zx8q6iuZQxtopb_followersOf.push(decoded); @@ -46591,7 +46591,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _2nXT2Ah42UjEEQF5oJQ39CbKB1xj_followingOf.push(decoded); @@ -46624,7 +46624,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _2bsySzmT3qEZcrnoe3tZ5xBjXSju_likedOf.push(decoded); @@ -48051,7 +48051,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { + if (options.baseUrl == null && values[\\"@id\\"] != null) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -48106,7 +48106,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _2kWgBhQKjEauxx8C6qF3ZQamK4Le_partOf.push(decoded); @@ -48139,7 +48139,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await CollectionPage.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _3BT4kQLcXhHx7TAWaNDKh8nFn9eY_next.push(decoded); @@ -48172,7 +48172,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await CollectionPage.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _3b8yG8tDNzQFFEnWhCc13G8eHooA_prev.push(decoded); @@ -48546,7 +48546,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { + if (options.baseUrl == null && values[\\"@id\\"] != null) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -48880,7 +48880,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { + if (options.baseUrl == null && values[\\"@id\\"] != null) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -49212,7 +49212,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { + if (options.baseUrl == null && values[\\"@id\\"] != null) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -50006,7 +50006,7 @@ proxyUrl?: URL | null;oauthAuthorizationEndpoint?: URL | null;oauthTokenEndpoint // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { + if (options.baseUrl == null && values[\\"@id\\"] != null) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -50051,9 +50051,9 @@ proxyUrl?: URL | null;oauthAuthorizationEndpoint?: URL | null;oauthTokenEndpoint : \\"\\" ) ) - : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) + : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) ? new URL(v[\\"@id\\"]) - : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl))); + : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"]))); if (typeof decoded === \\"undefined\\") continue; _2JCYDbSxEHCCLdBYed33cCETfGyR_proxyUrl.push(decoded); } @@ -50084,9 +50084,9 @@ proxyUrl?: URL | null;oauthAuthorizationEndpoint?: URL | null;oauthTokenEndpoint : \\"\\" ) ) - : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) + : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) ? new URL(v[\\"@id\\"]) - : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl))); + : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"]))); if (typeof decoded === \\"undefined\\") continue; _25S6UmgzDead8hxL5sQFezZTAusd_oauthAuthorizationEndpoint.push(decoded); } @@ -50117,9 +50117,9 @@ proxyUrl?: URL | null;oauthAuthorizationEndpoint?: URL | null;oauthTokenEndpoint : \\"\\" ) ) - : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) + : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) ? new URL(v[\\"@id\\"]) - : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl))); + : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"]))); if (typeof decoded === \\"undefined\\") continue; _iAMxqrSba7yBCRB1FZ5kEVdKEZ3_oauthTokenEndpoint.push(decoded); } @@ -50150,9 +50150,9 @@ proxyUrl?: URL | null;oauthAuthorizationEndpoint?: URL | null;oauthTokenEndpoint : \\"\\" ) ) - : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) + : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) ? new URL(v[\\"@id\\"]) - : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl))); + : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"]))); if (typeof decoded === \\"undefined\\") continue; _8Bx9qN8oU7Bpt2xi6khaxWp1gMr_provideClientKey.push(decoded); } @@ -50183,9 +50183,9 @@ proxyUrl?: URL | null;oauthAuthorizationEndpoint?: URL | null;oauthTokenEndpoint : \\"\\" ) ) - : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) + : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) ? new URL(v[\\"@id\\"]) - : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl))); + : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"]))); if (typeof decoded === \\"undefined\\") continue; _3dU7PMVQZJpsCpo2F4RQXxBXdPmS_signClientKey.push(decoded); } @@ -50216,9 +50216,9 @@ proxyUrl?: URL | null;oauthAuthorizationEndpoint?: URL | null;oauthTokenEndpoint : \\"\\" ) ) - : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) + : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) ? new URL(v[\\"@id\\"]) - : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl))); + : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"]))); if (typeof decoded === \\"undefined\\") continue; _3JprUSDLVqqX4dwHRi37qGZZCRCc_sharedInbox.push(decoded); } @@ -50671,7 +50671,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { + if (options.baseUrl == null && values[\\"@id\\"] != null) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -51006,7 +51006,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { + if (options.baseUrl == null && values[\\"@id\\"] != null) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -51342,7 +51342,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { + if (options.baseUrl == null && values[\\"@id\\"] != null) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -56889,7 +56889,7 @@ get preferredUsernames(): ((string | LanguageString))[] { // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { + if (options.baseUrl == null && values[\\"@id\\"] != null) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -56964,7 +56964,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await CryptographicKey.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _axq166E2eZADq34V4MYUc8KMZdC_publicKey.push(decoded); @@ -56997,7 +56997,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Multikey.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.push(decoded); @@ -57050,11 +57050,11 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#OrderedCollection\\") ? await OrderedCollection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#OrderedCollectionPage\\") ? await OrderedCollectionPage.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -57091,11 +57091,11 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#OrderedCollection\\") ? await OrderedCollection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#OrderedCollectionPage\\") ? await OrderedCollectionPage.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -57130,7 +57130,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _3yAv8jymNfNuJUDuBzJ1NQhdbAee_following.push(decoded); @@ -57163,7 +57163,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _BBCTgfphhsFzpVfKTykGSpBNwoA_followers.push(decoded); @@ -57196,7 +57196,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _3bgkPwJanyTCoVFM9ovRcus8tKkU_liked.push(decoded); @@ -57229,7 +57229,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _4N1vBJzXDf8NbBumeECQMFvKetja_featured.push(decoded); @@ -57262,7 +57262,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags.push(decoded); @@ -57295,7 +57295,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.push(decoded); @@ -57316,7 +57316,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Endpoints.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints.push(decoded); @@ -57423,23 +57423,23 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Application\\") ? await Application.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Group\\") ? await Group.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Organization\\") ? await Organization.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Person\\") ? await Person.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Service\\") ? await Service.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -57476,23 +57476,23 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Application\\") ? await Application.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Group\\") ? await Group.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Organization\\") ? await Organization.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Person\\") ? await Person.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Service\\") ? await Service.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -57527,7 +57527,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await DidService.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.push(decoded); @@ -59320,7 +59320,7 @@ get names(): ((string | LanguageString))[] { // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { + if (options.baseUrl == null && values[\\"@id\\"] != null) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -59373,9 +59373,9 @@ get names(): ((string | LanguageString))[] { : \\"\\" ) ) - : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) + : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) ? new URL(v[\\"@id\\"]) - : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl))); + : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"]))); if (typeof decoded === \\"undefined\\") continue; _pVjLsybKQdmkjuU7MHjiVmNnuj7_href.push(decoded); } @@ -59524,12 +59524,12 @@ get names(): ((string | LanguageString))[] { && Array.isArray(v[\\"@type\\"])&& [\\"https://www.w3.org/ns/activitystreams#Link\\",\\"https://www.w3.org/ns/activitystreams#Hashtag\\",\\"https://www.w3.org/ns/activitystreams#Mention\\"].some( t => v[\\"@type\\"].includes(t)) ? await Link.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& [\\"https://www.w3.org/ns/activitystreams#Object\\",\\"http://joinmastodon.org/ns#Emoji\\",\\"http://litepub.social/ns#ChatMessage\\",\\"https://gotosocial.org/ns#AnnounceAuthorization\\",\\"https://gotosocial.org/ns#LikeApproval\\",\\"https://gotosocial.org/ns#ReplyAuthorization\\",\\"https://w3id.org/fep/044f#QuoteAuthorization\\",\\"https://w3id.org/valueflows/ont/vf#Proposal\\",\\"https://www.w3.org/ns/activitystreams#Activity\\",\\"http://litepub.social/ns#EmojiReact\\",\\"https://gotosocial.org/ns#AnnounceRequest\\",\\"https://gotosocial.org/ns#LikeRequest\\",\\"https://gotosocial.org/ns#ReplyRequest\\",\\"https://w3id.org/fep/044f#QuoteRequest\\",\\"https://www.w3.org/ns/activitystreams#Accept\\",\\"https://www.w3.org/ns/activitystreams#TentativeAccept\\",\\"https://www.w3.org/ns/activitystreams#Add\\",\\"https://www.w3.org/ns/activitystreams#Announce\\",\\"https://www.w3.org/ns/activitystreams#Create\\",\\"https://www.w3.org/ns/activitystreams#Delete\\",\\"https://www.w3.org/ns/activitystreams#Dislike\\",\\"https://www.w3.org/ns/activitystreams#Flag\\",\\"https://www.w3.org/ns/activitystreams#Follow\\",\\"https://www.w3.org/ns/activitystreams#Ignore\\",\\"https://www.w3.org/ns/activitystreams#Block\\",\\"https://www.w3.org/ns/activitystreams#IntransitiveActivity\\",\\"https://www.w3.org/ns/activitystreams#Arrive\\",\\"https://www.w3.org/ns/activitystreams#Question\\",\\"https://www.w3.org/ns/activitystreams#Travel\\",\\"https://www.w3.org/ns/activitystreams#Join\\",\\"https://www.w3.org/ns/activitystreams#Leave\\",\\"https://www.w3.org/ns/activitystreams#Like\\",\\"https://www.w3.org/ns/activitystreams#Listen\\",\\"https://www.w3.org/ns/activitystreams#Move\\",\\"https://www.w3.org/ns/activitystreams#Offer\\",\\"https://www.w3.org/ns/activitystreams#Invite\\",\\"https://www.w3.org/ns/activitystreams#Read\\",\\"https://www.w3.org/ns/activitystreams#Reject\\",\\"https://www.w3.org/ns/activitystreams#TentativeReject\\",\\"https://www.w3.org/ns/activitystreams#Remove\\",\\"https://www.w3.org/ns/activitystreams#Undo\\",\\"https://www.w3.org/ns/activitystreams#Update\\",\\"https://www.w3.org/ns/activitystreams#View\\",\\"https://www.w3.org/ns/activitystreams#Application\\",\\"https://www.w3.org/ns/activitystreams#Article\\",\\"https://www.w3.org/ns/activitystreams#Collection\\",\\"https://www.w3.org/ns/activitystreams#CollectionPage\\",\\"https://www.w3.org/ns/activitystreams#OrderedCollectionPage\\",\\"https://www.w3.org/ns/activitystreams#OrderedCollection\\",\\"https://www.w3.org/ns/activitystreams#Document\\",\\"https://www.w3.org/ns/activitystreams#Audio\\",\\"https://www.w3.org/ns/activitystreams#Image\\",\\"https://www.w3.org/ns/activitystreams#Page\\",\\"https://www.w3.org/ns/activitystreams#Video\\",\\"https://www.w3.org/ns/activitystreams#Event\\",\\"https://www.w3.org/ns/activitystreams#Group\\",\\"https://www.w3.org/ns/activitystreams#Note\\",\\"https://www.w3.org/ns/activitystreams#Organization\\",\\"https://www.w3.org/ns/activitystreams#Person\\",\\"https://www.w3.org/ns/activitystreams#Place\\",\\"https://www.w3.org/ns/activitystreams#Profile\\",\\"https://www.w3.org/ns/activitystreams#Relationship\\",\\"https://www.w3.org/ns/activitystreams#Service\\",\\"https://www.w3.org/ns/activitystreams#Tombstone\\"].some( t => v[\\"@type\\"].includes(t)) ? await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -60003,7 +60003,7 @@ names?: ((string | LanguageString))[];language?: Intl.Locale | null;height?: num // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { + if (options.baseUrl == null && values[\\"@id\\"] != null) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -60340,7 +60340,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { + if (options.baseUrl == null && values[\\"@id\\"] != null) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -60675,7 +60675,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { + if (options.baseUrl == null && values[\\"@id\\"] != null) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -61013,7 +61013,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { + if (options.baseUrl == null && values[\\"@id\\"] != null) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -61347,7 +61347,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { + if (options.baseUrl == null && values[\\"@id\\"] != null) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -61681,7 +61681,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { + if (options.baseUrl == null && values[\\"@id\\"] != null) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -62015,7 +62015,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { + if (options.baseUrl == null && values[\\"@id\\"] != null) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -62347,7 +62347,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { + if (options.baseUrl == null && values[\\"@id\\"] != null) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -62645,7 +62645,7 @@ names?: ((string | LanguageString))[];language?: Intl.Locale | null;height?: num // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { + if (options.baseUrl == null && values[\\"@id\\"] != null) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -62980,7 +62980,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { + if (options.baseUrl == null && values[\\"@id\\"] != null) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -63979,7 +63979,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { + if (options.baseUrl == null && values[\\"@id\\"] != null) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -64030,7 +64030,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote.push(decoded); @@ -64089,7 +64089,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await QuoteAuthorization.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization.push(decoded); @@ -64777,7 +64777,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { + if (options.baseUrl == null && values[\\"@id\\"] != null) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -64831,12 +64831,12 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu && Array.isArray(v[\\"@type\\"])&& [\\"https://www.w3.org/ns/activitystreams#Object\\",\\"http://joinmastodon.org/ns#Emoji\\",\\"http://litepub.social/ns#ChatMessage\\",\\"https://gotosocial.org/ns#AnnounceAuthorization\\",\\"https://gotosocial.org/ns#LikeApproval\\",\\"https://gotosocial.org/ns#ReplyAuthorization\\",\\"https://w3id.org/fep/044f#QuoteAuthorization\\",\\"https://w3id.org/valueflows/ont/vf#Proposal\\",\\"https://www.w3.org/ns/activitystreams#Activity\\",\\"http://litepub.social/ns#EmojiReact\\",\\"https://gotosocial.org/ns#AnnounceRequest\\",\\"https://gotosocial.org/ns#LikeRequest\\",\\"https://gotosocial.org/ns#ReplyRequest\\",\\"https://w3id.org/fep/044f#QuoteRequest\\",\\"https://www.w3.org/ns/activitystreams#Accept\\",\\"https://www.w3.org/ns/activitystreams#TentativeAccept\\",\\"https://www.w3.org/ns/activitystreams#Add\\",\\"https://www.w3.org/ns/activitystreams#Announce\\",\\"https://www.w3.org/ns/activitystreams#Create\\",\\"https://www.w3.org/ns/activitystreams#Delete\\",\\"https://www.w3.org/ns/activitystreams#Dislike\\",\\"https://www.w3.org/ns/activitystreams#Flag\\",\\"https://www.w3.org/ns/activitystreams#Follow\\",\\"https://www.w3.org/ns/activitystreams#Ignore\\",\\"https://www.w3.org/ns/activitystreams#Block\\",\\"https://www.w3.org/ns/activitystreams#IntransitiveActivity\\",\\"https://www.w3.org/ns/activitystreams#Arrive\\",\\"https://www.w3.org/ns/activitystreams#Question\\",\\"https://www.w3.org/ns/activitystreams#Travel\\",\\"https://www.w3.org/ns/activitystreams#Join\\",\\"https://www.w3.org/ns/activitystreams#Leave\\",\\"https://www.w3.org/ns/activitystreams#Like\\",\\"https://www.w3.org/ns/activitystreams#Listen\\",\\"https://www.w3.org/ns/activitystreams#Move\\",\\"https://www.w3.org/ns/activitystreams#Offer\\",\\"https://www.w3.org/ns/activitystreams#Invite\\",\\"https://www.w3.org/ns/activitystreams#Read\\",\\"https://www.w3.org/ns/activitystreams#Reject\\",\\"https://www.w3.org/ns/activitystreams#TentativeReject\\",\\"https://www.w3.org/ns/activitystreams#Remove\\",\\"https://www.w3.org/ns/activitystreams#Undo\\",\\"https://www.w3.org/ns/activitystreams#Update\\",\\"https://www.w3.org/ns/activitystreams#View\\",\\"https://www.w3.org/ns/activitystreams#Application\\",\\"https://www.w3.org/ns/activitystreams#Article\\",\\"https://www.w3.org/ns/activitystreams#Collection\\",\\"https://www.w3.org/ns/activitystreams#CollectionPage\\",\\"https://www.w3.org/ns/activitystreams#OrderedCollectionPage\\",\\"https://www.w3.org/ns/activitystreams#OrderedCollection\\",\\"https://www.w3.org/ns/activitystreams#Document\\",\\"https://www.w3.org/ns/activitystreams#Audio\\",\\"https://www.w3.org/ns/activitystreams#Image\\",\\"https://www.w3.org/ns/activitystreams#Page\\",\\"https://www.w3.org/ns/activitystreams#Video\\",\\"https://www.w3.org/ns/activitystreams#Event\\",\\"https://www.w3.org/ns/activitystreams#Group\\",\\"https://www.w3.org/ns/activitystreams#Note\\",\\"https://www.w3.org/ns/activitystreams#Organization\\",\\"https://www.w3.org/ns/activitystreams#Person\\",\\"https://www.w3.org/ns/activitystreams#Place\\",\\"https://www.w3.org/ns/activitystreams#Profile\\",\\"https://www.w3.org/ns/activitystreams#Relationship\\",\\"https://www.w3.org/ns/activitystreams#Service\\",\\"https://www.w3.org/ns/activitystreams#Tombstone\\"].some( t => v[\\"@type\\"].includes(t)) ? await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& [\\"https://www.w3.org/ns/activitystreams#Link\\",\\"https://www.w3.org/ns/activitystreams#Hashtag\\",\\"https://www.w3.org/ns/activitystreams#Mention\\"].some( t => v[\\"@type\\"].includes(t)) ? await Link.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -65565,7 +65565,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { + if (options.baseUrl == null && values[\\"@id\\"] != null) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -65619,12 +65619,12 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu && Array.isArray(v[\\"@type\\"])&& [\\"https://www.w3.org/ns/activitystreams#Object\\",\\"http://joinmastodon.org/ns#Emoji\\",\\"http://litepub.social/ns#ChatMessage\\",\\"https://gotosocial.org/ns#AnnounceAuthorization\\",\\"https://gotosocial.org/ns#LikeApproval\\",\\"https://gotosocial.org/ns#ReplyAuthorization\\",\\"https://w3id.org/fep/044f#QuoteAuthorization\\",\\"https://w3id.org/valueflows/ont/vf#Proposal\\",\\"https://www.w3.org/ns/activitystreams#Activity\\",\\"http://litepub.social/ns#EmojiReact\\",\\"https://gotosocial.org/ns#AnnounceRequest\\",\\"https://gotosocial.org/ns#LikeRequest\\",\\"https://gotosocial.org/ns#ReplyRequest\\",\\"https://w3id.org/fep/044f#QuoteRequest\\",\\"https://www.w3.org/ns/activitystreams#Accept\\",\\"https://www.w3.org/ns/activitystreams#TentativeAccept\\",\\"https://www.w3.org/ns/activitystreams#Add\\",\\"https://www.w3.org/ns/activitystreams#Announce\\",\\"https://www.w3.org/ns/activitystreams#Create\\",\\"https://www.w3.org/ns/activitystreams#Delete\\",\\"https://www.w3.org/ns/activitystreams#Dislike\\",\\"https://www.w3.org/ns/activitystreams#Flag\\",\\"https://www.w3.org/ns/activitystreams#Follow\\",\\"https://www.w3.org/ns/activitystreams#Ignore\\",\\"https://www.w3.org/ns/activitystreams#Block\\",\\"https://www.w3.org/ns/activitystreams#IntransitiveActivity\\",\\"https://www.w3.org/ns/activitystreams#Arrive\\",\\"https://www.w3.org/ns/activitystreams#Question\\",\\"https://www.w3.org/ns/activitystreams#Travel\\",\\"https://www.w3.org/ns/activitystreams#Join\\",\\"https://www.w3.org/ns/activitystreams#Leave\\",\\"https://www.w3.org/ns/activitystreams#Like\\",\\"https://www.w3.org/ns/activitystreams#Listen\\",\\"https://www.w3.org/ns/activitystreams#Move\\",\\"https://www.w3.org/ns/activitystreams#Offer\\",\\"https://www.w3.org/ns/activitystreams#Invite\\",\\"https://www.w3.org/ns/activitystreams#Read\\",\\"https://www.w3.org/ns/activitystreams#Reject\\",\\"https://www.w3.org/ns/activitystreams#TentativeReject\\",\\"https://www.w3.org/ns/activitystreams#Remove\\",\\"https://www.w3.org/ns/activitystreams#Undo\\",\\"https://www.w3.org/ns/activitystreams#Update\\",\\"https://www.w3.org/ns/activitystreams#View\\",\\"https://www.w3.org/ns/activitystreams#Application\\",\\"https://www.w3.org/ns/activitystreams#Article\\",\\"https://www.w3.org/ns/activitystreams#Collection\\",\\"https://www.w3.org/ns/activitystreams#CollectionPage\\",\\"https://www.w3.org/ns/activitystreams#OrderedCollectionPage\\",\\"https://www.w3.org/ns/activitystreams#OrderedCollection\\",\\"https://www.w3.org/ns/activitystreams#Document\\",\\"https://www.w3.org/ns/activitystreams#Audio\\",\\"https://www.w3.org/ns/activitystreams#Image\\",\\"https://www.w3.org/ns/activitystreams#Page\\",\\"https://www.w3.org/ns/activitystreams#Video\\",\\"https://www.w3.org/ns/activitystreams#Event\\",\\"https://www.w3.org/ns/activitystreams#Group\\",\\"https://www.w3.org/ns/activitystreams#Note\\",\\"https://www.w3.org/ns/activitystreams#Organization\\",\\"https://www.w3.org/ns/activitystreams#Person\\",\\"https://www.w3.org/ns/activitystreams#Place\\",\\"https://www.w3.org/ns/activitystreams#Profile\\",\\"https://www.w3.org/ns/activitystreams#Relationship\\",\\"https://www.w3.org/ns/activitystreams#Service\\",\\"https://www.w3.org/ns/activitystreams#Tombstone\\"].some( t => v[\\"@type\\"].includes(t)) ? await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& [\\"https://www.w3.org/ns/activitystreams#Link\\",\\"https://www.w3.org/ns/activitystreams#Hashtag\\",\\"https://www.w3.org/ns/activitystreams#Mention\\"].some( t => v[\\"@type\\"].includes(t)) ? await Link.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -71215,7 +71215,7 @@ get preferredUsernames(): ((string | LanguageString))[] { // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { + if (options.baseUrl == null && values[\\"@id\\"] != null) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -71290,7 +71290,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await CryptographicKey.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _axq166E2eZADq34V4MYUc8KMZdC_publicKey.push(decoded); @@ -71323,7 +71323,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Multikey.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.push(decoded); @@ -71376,11 +71376,11 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#OrderedCollection\\") ? await OrderedCollection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#OrderedCollectionPage\\") ? await OrderedCollectionPage.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -71417,11 +71417,11 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#OrderedCollection\\") ? await OrderedCollection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#OrderedCollectionPage\\") ? await OrderedCollectionPage.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -71456,7 +71456,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _3yAv8jymNfNuJUDuBzJ1NQhdbAee_following.push(decoded); @@ -71489,7 +71489,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _BBCTgfphhsFzpVfKTykGSpBNwoA_followers.push(decoded); @@ -71522,7 +71522,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _3bgkPwJanyTCoVFM9ovRcus8tKkU_liked.push(decoded); @@ -71555,7 +71555,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _4N1vBJzXDf8NbBumeECQMFvKetja_featured.push(decoded); @@ -71588,7 +71588,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags.push(decoded); @@ -71621,7 +71621,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.push(decoded); @@ -71642,7 +71642,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Endpoints.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints.push(decoded); @@ -71749,23 +71749,23 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Application\\") ? await Application.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Group\\") ? await Group.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Organization\\") ? await Organization.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Person\\") ? await Person.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Service\\") ? await Service.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -71802,23 +71802,23 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Application\\") ? await Application.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Group\\") ? await Group.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Organization\\") ? await Organization.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Person\\") ? await Person.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Service\\") ? await Service.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -71853,7 +71853,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await DidService.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.push(decoded); @@ -72680,7 +72680,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { + if (options.baseUrl == null && values[\\"@id\\"] != null) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -78227,7 +78227,7 @@ get preferredUsernames(): ((string | LanguageString))[] { // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { + if (options.baseUrl == null && values[\\"@id\\"] != null) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -78302,7 +78302,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await CryptographicKey.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _axq166E2eZADq34V4MYUc8KMZdC_publicKey.push(decoded); @@ -78335,7 +78335,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Multikey.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.push(decoded); @@ -78388,11 +78388,11 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#OrderedCollection\\") ? await OrderedCollection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#OrderedCollectionPage\\") ? await OrderedCollectionPage.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -78429,11 +78429,11 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#OrderedCollection\\") ? await OrderedCollection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#OrderedCollectionPage\\") ? await OrderedCollectionPage.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -78468,7 +78468,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _3yAv8jymNfNuJUDuBzJ1NQhdbAee_following.push(decoded); @@ -78501,7 +78501,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _BBCTgfphhsFzpVfKTykGSpBNwoA_followers.push(decoded); @@ -78534,7 +78534,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _3bgkPwJanyTCoVFM9ovRcus8tKkU_liked.push(decoded); @@ -78567,7 +78567,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _4N1vBJzXDf8NbBumeECQMFvKetja_featured.push(decoded); @@ -78600,7 +78600,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags.push(decoded); @@ -78633,7 +78633,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.push(decoded); @@ -78654,7 +78654,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Endpoints.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints.push(decoded); @@ -78761,23 +78761,23 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Application\\") ? await Application.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Group\\") ? await Group.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Organization\\") ? await Organization.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Person\\") ? await Person.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Service\\") ? await Service.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -78814,23 +78814,23 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Application\\") ? await Application.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Group\\") ? await Group.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Organization\\") ? await Organization.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Person\\") ? await Person.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Service\\") ? await Service.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -78865,7 +78865,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await DidService.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.push(decoded); @@ -80148,7 +80148,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { + if (options.baseUrl == null && values[\\"@id\\"] != null) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -80292,9 +80292,9 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu : \\"\\" ) ) - : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) + : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) ? new URL(v[\\"@id\\"]) - : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl))) : undefined + : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"]))) : undefined ; if (typeof decoded === \\"undefined\\") continue; _oKrwxU4V8wiKhMW1QEYQibcJh8c_units.push(decoded); @@ -81021,7 +81021,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { + if (options.baseUrl == null && values[\\"@id\\"] != null) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -81072,7 +81072,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _3CLQ1PLSXrhSQbTGGHuxNyaEFKM1_describes.push(decoded); @@ -82684,7 +82684,7 @@ instruments?: (Object | URL)[];exclusiveOptions?: (Object | URL)[];inclusiveOpti // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { + if (options.baseUrl == null && values[\\"@id\\"] != null) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -82735,7 +82735,7 @@ instruments?: (Object | URL)[];exclusiveOptions?: (Object | URL)[];inclusiveOpti const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _2N5scKaVEcdYHFmfKYYacAwUhUgQ_oneOf.push(decoded); @@ -82768,7 +82768,7 @@ instruments?: (Object | URL)[];exclusiveOptions?: (Object | URL)[];inclusiveOpti const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _2mV6isMTPRKbWdLCjcpiEysq5dAY_anyOf.push(decoded); @@ -82850,7 +82850,7 @@ instruments?: (Object | URL)[];exclusiveOptions?: (Object | URL)[];inclusiveOpti const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote.push(decoded); @@ -82909,7 +82909,7 @@ instruments?: (Object | URL)[];exclusiveOptions?: (Object | URL)[];inclusiveOpti const decoded = await QuoteAuthorization.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization.push(decoded); @@ -83368,7 +83368,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { + if (options.baseUrl == null && values[\\"@id\\"] != null) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -83702,7 +83702,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { + if (options.baseUrl == null && values[\\"@id\\"] != null) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -85208,7 +85208,7 @@ relationships?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { + if (options.baseUrl == null && values[\\"@id\\"] != null) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -85259,7 +85259,7 @@ relationships?: (Object | URL)[];} const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _2Zqdmi46ZnDQsECS6mzwhrv3rUKq_subject.push(decoded); @@ -85292,7 +85292,7 @@ relationships?: (Object | URL)[];} const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _2MH19yxjn1wnHsNfa5n4JBhJzxyc_object.push(decoded); @@ -85325,7 +85325,7 @@ relationships?: (Object | URL)[];} const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _4Lzz89F9qipAQSGkWyX9DGWiUojG_relationship.push(decoded); @@ -85713,7 +85713,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { + if (options.baseUrl == null && values[\\"@id\\"] != null) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -91260,7 +91260,7 @@ get preferredUsernames(): ((string | LanguageString))[] { // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { + if (options.baseUrl == null && values[\\"@id\\"] != null) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -91335,7 +91335,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await CryptographicKey.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _axq166E2eZADq34V4MYUc8KMZdC_publicKey.push(decoded); @@ -91368,7 +91368,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Multikey.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.push(decoded); @@ -91421,11 +91421,11 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#OrderedCollection\\") ? await OrderedCollection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#OrderedCollectionPage\\") ? await OrderedCollectionPage.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -91462,11 +91462,11 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#OrderedCollection\\") ? await OrderedCollection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#OrderedCollectionPage\\") ? await OrderedCollectionPage.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -91501,7 +91501,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _3yAv8jymNfNuJUDuBzJ1NQhdbAee_following.push(decoded); @@ -91534,7 +91534,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _BBCTgfphhsFzpVfKTykGSpBNwoA_followers.push(decoded); @@ -91567,7 +91567,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _3bgkPwJanyTCoVFM9ovRcus8tKkU_liked.push(decoded); @@ -91600,7 +91600,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _4N1vBJzXDf8NbBumeECQMFvKetja_featured.push(decoded); @@ -91633,7 +91633,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags.push(decoded); @@ -91666,7 +91666,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.push(decoded); @@ -91687,7 +91687,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Endpoints.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints.push(decoded); @@ -91794,23 +91794,23 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Application\\") ? await Application.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Group\\") ? await Group.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Organization\\") ? await Organization.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Person\\") ? await Person.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Service\\") ? await Service.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -91847,23 +91847,23 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Application\\") ? await Application.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Group\\") ? await Group.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Organization\\") ? await Organization.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Person\\") ? await Person.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Service\\") ? await Service.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -91898,7 +91898,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await DidService.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.push(decoded); @@ -92934,7 +92934,7 @@ get contents(): ((string | LanguageString))[] { // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { + if (options.baseUrl == null && values[\\"@id\\"] != null) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -93366,7 +93366,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { + if (options.baseUrl == null && values[\\"@id\\"] != null) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -93700,7 +93700,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { + if (options.baseUrl == null && values[\\"@id\\"] != null) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -94250,7 +94250,7 @@ get formerTypes(): (\$EntityType)[] { // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { + if (options.baseUrl == null && values[\\"@id\\"] != null) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -94685,7 +94685,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { + if (options.baseUrl == null && values[\\"@id\\"] != null) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -95024,7 +95024,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { + if (options.baseUrl == null && values[\\"@id\\"] != null) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -95361,7 +95361,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { + if (options.baseUrl == null && values[\\"@id\\"] != null) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -95698,7 +95698,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { + if (options.baseUrl == null && values[\\"@id\\"] != null) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -96031,7 +96031,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { + if (options.baseUrl == null && values[\\"@id\\"] != null) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } diff --git a/packages/vocab-tools/src/__snapshots__/class.test.ts.node.snap b/packages/vocab-tools/src/__snapshots__/class.test.ts.node.snap index 320038c04..a86b71689 100644 --- a/packages/vocab-tools/src/__snapshots__/class.test.ts.node.snap +++ b/packages/vocab-tools/src/__snapshots__/class.test.ts.node.snap @@ -10292,7 +10292,7 @@ get urls(): ((URL | Link))[] { // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { + if (options.baseUrl == null && values[\\"@id\\"] != null) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -10593,16 +10593,16 @@ get urls(): ((URL | Link))[] { && Array.isArray(v[\\"@type\\"])&& [\\"https://www.w3.org/ns/activitystreams#Object\\",\\"http://joinmastodon.org/ns#Emoji\\",\\"http://litepub.social/ns#ChatMessage\\",\\"https://gotosocial.org/ns#AnnounceAuthorization\\",\\"https://gotosocial.org/ns#LikeApproval\\",\\"https://gotosocial.org/ns#ReplyAuthorization\\",\\"https://w3id.org/fep/044f#QuoteAuthorization\\",\\"https://w3id.org/valueflows/ont/vf#Proposal\\",\\"https://www.w3.org/ns/activitystreams#Activity\\",\\"http://litepub.social/ns#EmojiReact\\",\\"https://gotosocial.org/ns#AnnounceRequest\\",\\"https://gotosocial.org/ns#LikeRequest\\",\\"https://gotosocial.org/ns#ReplyRequest\\",\\"https://w3id.org/fep/044f#QuoteRequest\\",\\"https://www.w3.org/ns/activitystreams#Accept\\",\\"https://www.w3.org/ns/activitystreams#TentativeAccept\\",\\"https://www.w3.org/ns/activitystreams#Add\\",\\"https://www.w3.org/ns/activitystreams#Announce\\",\\"https://www.w3.org/ns/activitystreams#Create\\",\\"https://www.w3.org/ns/activitystreams#Delete\\",\\"https://www.w3.org/ns/activitystreams#Dislike\\",\\"https://www.w3.org/ns/activitystreams#Flag\\",\\"https://www.w3.org/ns/activitystreams#Follow\\",\\"https://www.w3.org/ns/activitystreams#Ignore\\",\\"https://www.w3.org/ns/activitystreams#Block\\",\\"https://www.w3.org/ns/activitystreams#IntransitiveActivity\\",\\"https://www.w3.org/ns/activitystreams#Arrive\\",\\"https://www.w3.org/ns/activitystreams#Question\\",\\"https://www.w3.org/ns/activitystreams#Travel\\",\\"https://www.w3.org/ns/activitystreams#Join\\",\\"https://www.w3.org/ns/activitystreams#Leave\\",\\"https://www.w3.org/ns/activitystreams#Like\\",\\"https://www.w3.org/ns/activitystreams#Listen\\",\\"https://www.w3.org/ns/activitystreams#Move\\",\\"https://www.w3.org/ns/activitystreams#Offer\\",\\"https://www.w3.org/ns/activitystreams#Invite\\",\\"https://www.w3.org/ns/activitystreams#Read\\",\\"https://www.w3.org/ns/activitystreams#Reject\\",\\"https://www.w3.org/ns/activitystreams#TentativeReject\\",\\"https://www.w3.org/ns/activitystreams#Remove\\",\\"https://www.w3.org/ns/activitystreams#Undo\\",\\"https://www.w3.org/ns/activitystreams#Update\\",\\"https://www.w3.org/ns/activitystreams#View\\",\\"https://www.w3.org/ns/activitystreams#Application\\",\\"https://www.w3.org/ns/activitystreams#Article\\",\\"https://www.w3.org/ns/activitystreams#Collection\\",\\"https://www.w3.org/ns/activitystreams#CollectionPage\\",\\"https://www.w3.org/ns/activitystreams#OrderedCollectionPage\\",\\"https://www.w3.org/ns/activitystreams#OrderedCollection\\",\\"https://www.w3.org/ns/activitystreams#Document\\",\\"https://www.w3.org/ns/activitystreams#Audio\\",\\"https://www.w3.org/ns/activitystreams#Image\\",\\"https://www.w3.org/ns/activitystreams#Page\\",\\"https://www.w3.org/ns/activitystreams#Video\\",\\"https://www.w3.org/ns/activitystreams#Event\\",\\"https://www.w3.org/ns/activitystreams#Group\\",\\"https://www.w3.org/ns/activitystreams#Note\\",\\"https://www.w3.org/ns/activitystreams#Organization\\",\\"https://www.w3.org/ns/activitystreams#Person\\",\\"https://www.w3.org/ns/activitystreams#Place\\",\\"https://www.w3.org/ns/activitystreams#Profile\\",\\"https://www.w3.org/ns/activitystreams#Relationship\\",\\"https://www.w3.org/ns/activitystreams#Service\\",\\"https://www.w3.org/ns/activitystreams#Tombstone\\"].some( t => v[\\"@type\\"].includes(t)) ? await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& [\\"https://www.w3.org/ns/activitystreams#Link\\",\\"https://www.w3.org/ns/activitystreams#Hashtag\\",\\"https://www.w3.org/ns/activitystreams#Mention\\"].some( t => v[\\"@type\\"].includes(t)) ? await Link.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"http://schema.org#PropertyValue\\") ? await PropertyValue.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -10639,23 +10639,23 @@ get urls(): ((URL | Link))[] { typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Application\\") ? await Application.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Group\\") ? await Group.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Organization\\") ? await Organization.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Person\\") ? await Person.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Service\\") ? await Service.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -10690,7 +10690,7 @@ get urls(): ((URL | Link))[] { const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _3ocC3VVi88cEd5sPWL8djkZsvTN6_audience.push(decoded); @@ -10750,12 +10750,12 @@ get urls(): ((URL | Link))[] { && Array.isArray(v[\\"@type\\"])&& [\\"https://www.w3.org/ns/activitystreams#Object\\",\\"http://joinmastodon.org/ns#Emoji\\",\\"http://litepub.social/ns#ChatMessage\\",\\"https://gotosocial.org/ns#AnnounceAuthorization\\",\\"https://gotosocial.org/ns#LikeApproval\\",\\"https://gotosocial.org/ns#ReplyAuthorization\\",\\"https://w3id.org/fep/044f#QuoteAuthorization\\",\\"https://w3id.org/valueflows/ont/vf#Proposal\\",\\"https://www.w3.org/ns/activitystreams#Activity\\",\\"http://litepub.social/ns#EmojiReact\\",\\"https://gotosocial.org/ns#AnnounceRequest\\",\\"https://gotosocial.org/ns#LikeRequest\\",\\"https://gotosocial.org/ns#ReplyRequest\\",\\"https://w3id.org/fep/044f#QuoteRequest\\",\\"https://www.w3.org/ns/activitystreams#Accept\\",\\"https://www.w3.org/ns/activitystreams#TentativeAccept\\",\\"https://www.w3.org/ns/activitystreams#Add\\",\\"https://www.w3.org/ns/activitystreams#Announce\\",\\"https://www.w3.org/ns/activitystreams#Create\\",\\"https://www.w3.org/ns/activitystreams#Delete\\",\\"https://www.w3.org/ns/activitystreams#Dislike\\",\\"https://www.w3.org/ns/activitystreams#Flag\\",\\"https://www.w3.org/ns/activitystreams#Follow\\",\\"https://www.w3.org/ns/activitystreams#Ignore\\",\\"https://www.w3.org/ns/activitystreams#Block\\",\\"https://www.w3.org/ns/activitystreams#IntransitiveActivity\\",\\"https://www.w3.org/ns/activitystreams#Arrive\\",\\"https://www.w3.org/ns/activitystreams#Question\\",\\"https://www.w3.org/ns/activitystreams#Travel\\",\\"https://www.w3.org/ns/activitystreams#Join\\",\\"https://www.w3.org/ns/activitystreams#Leave\\",\\"https://www.w3.org/ns/activitystreams#Like\\",\\"https://www.w3.org/ns/activitystreams#Listen\\",\\"https://www.w3.org/ns/activitystreams#Move\\",\\"https://www.w3.org/ns/activitystreams#Offer\\",\\"https://www.w3.org/ns/activitystreams#Invite\\",\\"https://www.w3.org/ns/activitystreams#Read\\",\\"https://www.w3.org/ns/activitystreams#Reject\\",\\"https://www.w3.org/ns/activitystreams#TentativeReject\\",\\"https://www.w3.org/ns/activitystreams#Remove\\",\\"https://www.w3.org/ns/activitystreams#Undo\\",\\"https://www.w3.org/ns/activitystreams#Update\\",\\"https://www.w3.org/ns/activitystreams#View\\",\\"https://www.w3.org/ns/activitystreams#Application\\",\\"https://www.w3.org/ns/activitystreams#Article\\",\\"https://www.w3.org/ns/activitystreams#Collection\\",\\"https://www.w3.org/ns/activitystreams#CollectionPage\\",\\"https://www.w3.org/ns/activitystreams#OrderedCollectionPage\\",\\"https://www.w3.org/ns/activitystreams#OrderedCollection\\",\\"https://www.w3.org/ns/activitystreams#Document\\",\\"https://www.w3.org/ns/activitystreams#Audio\\",\\"https://www.w3.org/ns/activitystreams#Image\\",\\"https://www.w3.org/ns/activitystreams#Page\\",\\"https://www.w3.org/ns/activitystreams#Video\\",\\"https://www.w3.org/ns/activitystreams#Event\\",\\"https://www.w3.org/ns/activitystreams#Group\\",\\"https://www.w3.org/ns/activitystreams#Note\\",\\"https://www.w3.org/ns/activitystreams#Organization\\",\\"https://www.w3.org/ns/activitystreams#Person\\",\\"https://www.w3.org/ns/activitystreams#Place\\",\\"https://www.w3.org/ns/activitystreams#Profile\\",\\"https://www.w3.org/ns/activitystreams#Relationship\\",\\"https://www.w3.org/ns/activitystreams#Service\\",\\"https://www.w3.org/ns/activitystreams#Tombstone\\"].some( t => v[\\"@type\\"].includes(t)) ? await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& [\\"https://www.w3.org/ns/activitystreams#Link\\",\\"https://www.w3.org/ns/activitystreams#Hashtag\\",\\"https://www.w3.org/ns/activitystreams#Mention\\"].some( t => v[\\"@type\\"].includes(t)) ? await Link.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -10839,12 +10839,12 @@ get urls(): ((URL | Link))[] { && Array.isArray(v[\\"@type\\"])&& [\\"https://www.w3.org/ns/activitystreams#Object\\",\\"http://joinmastodon.org/ns#Emoji\\",\\"http://litepub.social/ns#ChatMessage\\",\\"https://gotosocial.org/ns#AnnounceAuthorization\\",\\"https://gotosocial.org/ns#LikeApproval\\",\\"https://gotosocial.org/ns#ReplyAuthorization\\",\\"https://w3id.org/fep/044f#QuoteAuthorization\\",\\"https://w3id.org/valueflows/ont/vf#Proposal\\",\\"https://www.w3.org/ns/activitystreams#Activity\\",\\"http://litepub.social/ns#EmojiReact\\",\\"https://gotosocial.org/ns#AnnounceRequest\\",\\"https://gotosocial.org/ns#LikeRequest\\",\\"https://gotosocial.org/ns#ReplyRequest\\",\\"https://w3id.org/fep/044f#QuoteRequest\\",\\"https://www.w3.org/ns/activitystreams#Accept\\",\\"https://www.w3.org/ns/activitystreams#TentativeAccept\\",\\"https://www.w3.org/ns/activitystreams#Add\\",\\"https://www.w3.org/ns/activitystreams#Announce\\",\\"https://www.w3.org/ns/activitystreams#Create\\",\\"https://www.w3.org/ns/activitystreams#Delete\\",\\"https://www.w3.org/ns/activitystreams#Dislike\\",\\"https://www.w3.org/ns/activitystreams#Flag\\",\\"https://www.w3.org/ns/activitystreams#Follow\\",\\"https://www.w3.org/ns/activitystreams#Ignore\\",\\"https://www.w3.org/ns/activitystreams#Block\\",\\"https://www.w3.org/ns/activitystreams#IntransitiveActivity\\",\\"https://www.w3.org/ns/activitystreams#Arrive\\",\\"https://www.w3.org/ns/activitystreams#Question\\",\\"https://www.w3.org/ns/activitystreams#Travel\\",\\"https://www.w3.org/ns/activitystreams#Join\\",\\"https://www.w3.org/ns/activitystreams#Leave\\",\\"https://www.w3.org/ns/activitystreams#Like\\",\\"https://www.w3.org/ns/activitystreams#Listen\\",\\"https://www.w3.org/ns/activitystreams#Move\\",\\"https://www.w3.org/ns/activitystreams#Offer\\",\\"https://www.w3.org/ns/activitystreams#Invite\\",\\"https://www.w3.org/ns/activitystreams#Read\\",\\"https://www.w3.org/ns/activitystreams#Reject\\",\\"https://www.w3.org/ns/activitystreams#TentativeReject\\",\\"https://www.w3.org/ns/activitystreams#Remove\\",\\"https://www.w3.org/ns/activitystreams#Undo\\",\\"https://www.w3.org/ns/activitystreams#Update\\",\\"https://www.w3.org/ns/activitystreams#View\\",\\"https://www.w3.org/ns/activitystreams#Application\\",\\"https://www.w3.org/ns/activitystreams#Article\\",\\"https://www.w3.org/ns/activitystreams#Collection\\",\\"https://www.w3.org/ns/activitystreams#CollectionPage\\",\\"https://www.w3.org/ns/activitystreams#OrderedCollectionPage\\",\\"https://www.w3.org/ns/activitystreams#OrderedCollection\\",\\"https://www.w3.org/ns/activitystreams#Document\\",\\"https://www.w3.org/ns/activitystreams#Audio\\",\\"https://www.w3.org/ns/activitystreams#Image\\",\\"https://www.w3.org/ns/activitystreams#Page\\",\\"https://www.w3.org/ns/activitystreams#Video\\",\\"https://www.w3.org/ns/activitystreams#Event\\",\\"https://www.w3.org/ns/activitystreams#Group\\",\\"https://www.w3.org/ns/activitystreams#Note\\",\\"https://www.w3.org/ns/activitystreams#Organization\\",\\"https://www.w3.org/ns/activitystreams#Person\\",\\"https://www.w3.org/ns/activitystreams#Place\\",\\"https://www.w3.org/ns/activitystreams#Profile\\",\\"https://www.w3.org/ns/activitystreams#Relationship\\",\\"https://www.w3.org/ns/activitystreams#Service\\",\\"https://www.w3.org/ns/activitystreams#Tombstone\\"].some( t => v[\\"@type\\"].includes(t)) ? await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& [\\"https://www.w3.org/ns/activitystreams#Link\\",\\"https://www.w3.org/ns/activitystreams#Hashtag\\",\\"https://www.w3.org/ns/activitystreams#Mention\\"].some( t => v[\\"@type\\"].includes(t)) ? await Link.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -10875,7 +10875,7 @@ get urls(): ((URL | Link))[] { documentLoader: options.documentLoader, contextLoader: options.contextLoader, tracerProvider: options.tracerProvider, - baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)), + baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])), }); if (_result instanceof Error) throw _result; if (_result !== undefined) { @@ -10901,7 +10901,7 @@ get urls(): ((URL | Link))[] { const decoded = await Image.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _33CjRLy5ujtsUrwRSCrsggvGdKuR_icon.push(decoded); @@ -10930,7 +10930,7 @@ get urls(): ((URL | Link))[] { documentLoader: options.documentLoader, contextLoader: options.contextLoader, tracerProvider: options.tracerProvider, - baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)), + baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])), }); if (_result instanceof Error) throw _result; if (_result !== undefined) { @@ -10956,7 +10956,7 @@ get urls(): ((URL | Link))[] { const decoded = await Image.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _3dXrUdkARxwyJLtJcYi1AJ92H41U_image.push(decoded); @@ -10992,12 +10992,12 @@ get urls(): ((URL | Link))[] { && Array.isArray(v[\\"@type\\"])&& [\\"https://www.w3.org/ns/activitystreams#Object\\",\\"http://joinmastodon.org/ns#Emoji\\",\\"http://litepub.social/ns#ChatMessage\\",\\"https://gotosocial.org/ns#AnnounceAuthorization\\",\\"https://gotosocial.org/ns#LikeApproval\\",\\"https://gotosocial.org/ns#ReplyAuthorization\\",\\"https://w3id.org/fep/044f#QuoteAuthorization\\",\\"https://w3id.org/valueflows/ont/vf#Proposal\\",\\"https://www.w3.org/ns/activitystreams#Activity\\",\\"http://litepub.social/ns#EmojiReact\\",\\"https://gotosocial.org/ns#AnnounceRequest\\",\\"https://gotosocial.org/ns#LikeRequest\\",\\"https://gotosocial.org/ns#ReplyRequest\\",\\"https://w3id.org/fep/044f#QuoteRequest\\",\\"https://www.w3.org/ns/activitystreams#Accept\\",\\"https://www.w3.org/ns/activitystreams#TentativeAccept\\",\\"https://www.w3.org/ns/activitystreams#Add\\",\\"https://www.w3.org/ns/activitystreams#Announce\\",\\"https://www.w3.org/ns/activitystreams#Create\\",\\"https://www.w3.org/ns/activitystreams#Delete\\",\\"https://www.w3.org/ns/activitystreams#Dislike\\",\\"https://www.w3.org/ns/activitystreams#Flag\\",\\"https://www.w3.org/ns/activitystreams#Follow\\",\\"https://www.w3.org/ns/activitystreams#Ignore\\",\\"https://www.w3.org/ns/activitystreams#Block\\",\\"https://www.w3.org/ns/activitystreams#IntransitiveActivity\\",\\"https://www.w3.org/ns/activitystreams#Arrive\\",\\"https://www.w3.org/ns/activitystreams#Question\\",\\"https://www.w3.org/ns/activitystreams#Travel\\",\\"https://www.w3.org/ns/activitystreams#Join\\",\\"https://www.w3.org/ns/activitystreams#Leave\\",\\"https://www.w3.org/ns/activitystreams#Like\\",\\"https://www.w3.org/ns/activitystreams#Listen\\",\\"https://www.w3.org/ns/activitystreams#Move\\",\\"https://www.w3.org/ns/activitystreams#Offer\\",\\"https://www.w3.org/ns/activitystreams#Invite\\",\\"https://www.w3.org/ns/activitystreams#Read\\",\\"https://www.w3.org/ns/activitystreams#Reject\\",\\"https://www.w3.org/ns/activitystreams#TentativeReject\\",\\"https://www.w3.org/ns/activitystreams#Remove\\",\\"https://www.w3.org/ns/activitystreams#Undo\\",\\"https://www.w3.org/ns/activitystreams#Update\\",\\"https://www.w3.org/ns/activitystreams#View\\",\\"https://www.w3.org/ns/activitystreams#Application\\",\\"https://www.w3.org/ns/activitystreams#Article\\",\\"https://www.w3.org/ns/activitystreams#Collection\\",\\"https://www.w3.org/ns/activitystreams#CollectionPage\\",\\"https://www.w3.org/ns/activitystreams#OrderedCollectionPage\\",\\"https://www.w3.org/ns/activitystreams#OrderedCollection\\",\\"https://www.w3.org/ns/activitystreams#Document\\",\\"https://www.w3.org/ns/activitystreams#Audio\\",\\"https://www.w3.org/ns/activitystreams#Image\\",\\"https://www.w3.org/ns/activitystreams#Page\\",\\"https://www.w3.org/ns/activitystreams#Video\\",\\"https://www.w3.org/ns/activitystreams#Event\\",\\"https://www.w3.org/ns/activitystreams#Group\\",\\"https://www.w3.org/ns/activitystreams#Note\\",\\"https://www.w3.org/ns/activitystreams#Organization\\",\\"https://www.w3.org/ns/activitystreams#Person\\",\\"https://www.w3.org/ns/activitystreams#Place\\",\\"https://www.w3.org/ns/activitystreams#Profile\\",\\"https://www.w3.org/ns/activitystreams#Relationship\\",\\"https://www.w3.org/ns/activitystreams#Service\\",\\"https://www.w3.org/ns/activitystreams#Tombstone\\"].some( t => v[\\"@type\\"].includes(t)) ? await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& [\\"https://www.w3.org/ns/activitystreams#Link\\",\\"https://www.w3.org/ns/activitystreams#Hashtag\\",\\"https://www.w3.org/ns/activitystreams#Mention\\"].some( t => v[\\"@type\\"].includes(t)) ? await Link.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -11035,12 +11035,12 @@ get urls(): ((URL | Link))[] { && Array.isArray(v[\\"@type\\"])&& [\\"https://www.w3.org/ns/activitystreams#Object\\",\\"http://joinmastodon.org/ns#Emoji\\",\\"http://litepub.social/ns#ChatMessage\\",\\"https://gotosocial.org/ns#AnnounceAuthorization\\",\\"https://gotosocial.org/ns#LikeApproval\\",\\"https://gotosocial.org/ns#ReplyAuthorization\\",\\"https://w3id.org/fep/044f#QuoteAuthorization\\",\\"https://w3id.org/valueflows/ont/vf#Proposal\\",\\"https://www.w3.org/ns/activitystreams#Activity\\",\\"http://litepub.social/ns#EmojiReact\\",\\"https://gotosocial.org/ns#AnnounceRequest\\",\\"https://gotosocial.org/ns#LikeRequest\\",\\"https://gotosocial.org/ns#ReplyRequest\\",\\"https://w3id.org/fep/044f#QuoteRequest\\",\\"https://www.w3.org/ns/activitystreams#Accept\\",\\"https://www.w3.org/ns/activitystreams#TentativeAccept\\",\\"https://www.w3.org/ns/activitystreams#Add\\",\\"https://www.w3.org/ns/activitystreams#Announce\\",\\"https://www.w3.org/ns/activitystreams#Create\\",\\"https://www.w3.org/ns/activitystreams#Delete\\",\\"https://www.w3.org/ns/activitystreams#Dislike\\",\\"https://www.w3.org/ns/activitystreams#Flag\\",\\"https://www.w3.org/ns/activitystreams#Follow\\",\\"https://www.w3.org/ns/activitystreams#Ignore\\",\\"https://www.w3.org/ns/activitystreams#Block\\",\\"https://www.w3.org/ns/activitystreams#IntransitiveActivity\\",\\"https://www.w3.org/ns/activitystreams#Arrive\\",\\"https://www.w3.org/ns/activitystreams#Question\\",\\"https://www.w3.org/ns/activitystreams#Travel\\",\\"https://www.w3.org/ns/activitystreams#Join\\",\\"https://www.w3.org/ns/activitystreams#Leave\\",\\"https://www.w3.org/ns/activitystreams#Like\\",\\"https://www.w3.org/ns/activitystreams#Listen\\",\\"https://www.w3.org/ns/activitystreams#Move\\",\\"https://www.w3.org/ns/activitystreams#Offer\\",\\"https://www.w3.org/ns/activitystreams#Invite\\",\\"https://www.w3.org/ns/activitystreams#Read\\",\\"https://www.w3.org/ns/activitystreams#Reject\\",\\"https://www.w3.org/ns/activitystreams#TentativeReject\\",\\"https://www.w3.org/ns/activitystreams#Remove\\",\\"https://www.w3.org/ns/activitystreams#Undo\\",\\"https://www.w3.org/ns/activitystreams#Update\\",\\"https://www.w3.org/ns/activitystreams#View\\",\\"https://www.w3.org/ns/activitystreams#Application\\",\\"https://www.w3.org/ns/activitystreams#Article\\",\\"https://www.w3.org/ns/activitystreams#Collection\\",\\"https://www.w3.org/ns/activitystreams#CollectionPage\\",\\"https://www.w3.org/ns/activitystreams#OrderedCollectionPage\\",\\"https://www.w3.org/ns/activitystreams#OrderedCollection\\",\\"https://www.w3.org/ns/activitystreams#Document\\",\\"https://www.w3.org/ns/activitystreams#Audio\\",\\"https://www.w3.org/ns/activitystreams#Image\\",\\"https://www.w3.org/ns/activitystreams#Page\\",\\"https://www.w3.org/ns/activitystreams#Video\\",\\"https://www.w3.org/ns/activitystreams#Event\\",\\"https://www.w3.org/ns/activitystreams#Group\\",\\"https://www.w3.org/ns/activitystreams#Note\\",\\"https://www.w3.org/ns/activitystreams#Organization\\",\\"https://www.w3.org/ns/activitystreams#Person\\",\\"https://www.w3.org/ns/activitystreams#Place\\",\\"https://www.w3.org/ns/activitystreams#Profile\\",\\"https://www.w3.org/ns/activitystreams#Relationship\\",\\"https://www.w3.org/ns/activitystreams#Service\\",\\"https://www.w3.org/ns/activitystreams#Tombstone\\"].some( t => v[\\"@type\\"].includes(t)) ? await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& [\\"https://www.w3.org/ns/activitystreams#Link\\",\\"https://www.w3.org/ns/activitystreams#Hashtag\\",\\"https://www.w3.org/ns/activitystreams#Mention\\"].some( t => v[\\"@type\\"].includes(t)) ? await Link.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -11078,12 +11078,12 @@ get urls(): ((URL | Link))[] { && Array.isArray(v[\\"@type\\"])&& [\\"https://www.w3.org/ns/activitystreams#Link\\",\\"https://www.w3.org/ns/activitystreams#Hashtag\\",\\"https://www.w3.org/ns/activitystreams#Mention\\"].some( t => v[\\"@type\\"].includes(t)) ? await Link.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& [\\"https://www.w3.org/ns/activitystreams#Object\\",\\"http://joinmastodon.org/ns#Emoji\\",\\"http://litepub.social/ns#ChatMessage\\",\\"https://gotosocial.org/ns#AnnounceAuthorization\\",\\"https://gotosocial.org/ns#LikeApproval\\",\\"https://gotosocial.org/ns#ReplyAuthorization\\",\\"https://w3id.org/fep/044f#QuoteAuthorization\\",\\"https://w3id.org/valueflows/ont/vf#Proposal\\",\\"https://www.w3.org/ns/activitystreams#Activity\\",\\"http://litepub.social/ns#EmojiReact\\",\\"https://gotosocial.org/ns#AnnounceRequest\\",\\"https://gotosocial.org/ns#LikeRequest\\",\\"https://gotosocial.org/ns#ReplyRequest\\",\\"https://w3id.org/fep/044f#QuoteRequest\\",\\"https://www.w3.org/ns/activitystreams#Accept\\",\\"https://www.w3.org/ns/activitystreams#TentativeAccept\\",\\"https://www.w3.org/ns/activitystreams#Add\\",\\"https://www.w3.org/ns/activitystreams#Announce\\",\\"https://www.w3.org/ns/activitystreams#Create\\",\\"https://www.w3.org/ns/activitystreams#Delete\\",\\"https://www.w3.org/ns/activitystreams#Dislike\\",\\"https://www.w3.org/ns/activitystreams#Flag\\",\\"https://www.w3.org/ns/activitystreams#Follow\\",\\"https://www.w3.org/ns/activitystreams#Ignore\\",\\"https://www.w3.org/ns/activitystreams#Block\\",\\"https://www.w3.org/ns/activitystreams#IntransitiveActivity\\",\\"https://www.w3.org/ns/activitystreams#Arrive\\",\\"https://www.w3.org/ns/activitystreams#Question\\",\\"https://www.w3.org/ns/activitystreams#Travel\\",\\"https://www.w3.org/ns/activitystreams#Join\\",\\"https://www.w3.org/ns/activitystreams#Leave\\",\\"https://www.w3.org/ns/activitystreams#Like\\",\\"https://www.w3.org/ns/activitystreams#Listen\\",\\"https://www.w3.org/ns/activitystreams#Move\\",\\"https://www.w3.org/ns/activitystreams#Offer\\",\\"https://www.w3.org/ns/activitystreams#Invite\\",\\"https://www.w3.org/ns/activitystreams#Read\\",\\"https://www.w3.org/ns/activitystreams#Reject\\",\\"https://www.w3.org/ns/activitystreams#TentativeReject\\",\\"https://www.w3.org/ns/activitystreams#Remove\\",\\"https://www.w3.org/ns/activitystreams#Undo\\",\\"https://www.w3.org/ns/activitystreams#Update\\",\\"https://www.w3.org/ns/activitystreams#View\\",\\"https://www.w3.org/ns/activitystreams#Application\\",\\"https://www.w3.org/ns/activitystreams#Article\\",\\"https://www.w3.org/ns/activitystreams#Collection\\",\\"https://www.w3.org/ns/activitystreams#CollectionPage\\",\\"https://www.w3.org/ns/activitystreams#OrderedCollectionPage\\",\\"https://www.w3.org/ns/activitystreams#OrderedCollection\\",\\"https://www.w3.org/ns/activitystreams#Document\\",\\"https://www.w3.org/ns/activitystreams#Audio\\",\\"https://www.w3.org/ns/activitystreams#Image\\",\\"https://www.w3.org/ns/activitystreams#Page\\",\\"https://www.w3.org/ns/activitystreams#Video\\",\\"https://www.w3.org/ns/activitystreams#Event\\",\\"https://www.w3.org/ns/activitystreams#Group\\",\\"https://www.w3.org/ns/activitystreams#Note\\",\\"https://www.w3.org/ns/activitystreams#Organization\\",\\"https://www.w3.org/ns/activitystreams#Person\\",\\"https://www.w3.org/ns/activitystreams#Place\\",\\"https://www.w3.org/ns/activitystreams#Profile\\",\\"https://www.w3.org/ns/activitystreams#Relationship\\",\\"https://www.w3.org/ns/activitystreams#Service\\",\\"https://www.w3.org/ns/activitystreams#Tombstone\\"].some( t => v[\\"@type\\"].includes(t)) ? await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -11140,7 +11140,7 @@ get urls(): ((URL | Link))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _7UpwM3JWcXhADcscukEehBorf6k_replies.push(decoded); @@ -11173,7 +11173,7 @@ get urls(): ((URL | Link))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _3kAfck9PcEYt2L7xug5y99YPbANs_shares.push(decoded); @@ -11206,7 +11206,7 @@ get urls(): ((URL | Link))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _S3ceDnpMdzoTRCccB9FkJWrEzYW_likes.push(decoded); @@ -11239,7 +11239,7 @@ get urls(): ((URL | Link))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _kMatyyNAuxoTD8GQMBfA5ogThMR_emojiReactions.push(decoded); @@ -11321,12 +11321,12 @@ get urls(): ((URL | Link))[] { && Array.isArray(v[\\"@type\\"])&& [\\"https://www.w3.org/ns/activitystreams#Object\\",\\"http://joinmastodon.org/ns#Emoji\\",\\"http://litepub.social/ns#ChatMessage\\",\\"https://gotosocial.org/ns#AnnounceAuthorization\\",\\"https://gotosocial.org/ns#LikeApproval\\",\\"https://gotosocial.org/ns#ReplyAuthorization\\",\\"https://w3id.org/fep/044f#QuoteAuthorization\\",\\"https://w3id.org/valueflows/ont/vf#Proposal\\",\\"https://www.w3.org/ns/activitystreams#Activity\\",\\"http://litepub.social/ns#EmojiReact\\",\\"https://gotosocial.org/ns#AnnounceRequest\\",\\"https://gotosocial.org/ns#LikeRequest\\",\\"https://gotosocial.org/ns#ReplyRequest\\",\\"https://w3id.org/fep/044f#QuoteRequest\\",\\"https://www.w3.org/ns/activitystreams#Accept\\",\\"https://www.w3.org/ns/activitystreams#TentativeAccept\\",\\"https://www.w3.org/ns/activitystreams#Add\\",\\"https://www.w3.org/ns/activitystreams#Announce\\",\\"https://www.w3.org/ns/activitystreams#Create\\",\\"https://www.w3.org/ns/activitystreams#Delete\\",\\"https://www.w3.org/ns/activitystreams#Dislike\\",\\"https://www.w3.org/ns/activitystreams#Flag\\",\\"https://www.w3.org/ns/activitystreams#Follow\\",\\"https://www.w3.org/ns/activitystreams#Ignore\\",\\"https://www.w3.org/ns/activitystreams#Block\\",\\"https://www.w3.org/ns/activitystreams#IntransitiveActivity\\",\\"https://www.w3.org/ns/activitystreams#Arrive\\",\\"https://www.w3.org/ns/activitystreams#Question\\",\\"https://www.w3.org/ns/activitystreams#Travel\\",\\"https://www.w3.org/ns/activitystreams#Join\\",\\"https://www.w3.org/ns/activitystreams#Leave\\",\\"https://www.w3.org/ns/activitystreams#Like\\",\\"https://www.w3.org/ns/activitystreams#Listen\\",\\"https://www.w3.org/ns/activitystreams#Move\\",\\"https://www.w3.org/ns/activitystreams#Offer\\",\\"https://www.w3.org/ns/activitystreams#Invite\\",\\"https://www.w3.org/ns/activitystreams#Read\\",\\"https://www.w3.org/ns/activitystreams#Reject\\",\\"https://www.w3.org/ns/activitystreams#TentativeReject\\",\\"https://www.w3.org/ns/activitystreams#Remove\\",\\"https://www.w3.org/ns/activitystreams#Undo\\",\\"https://www.w3.org/ns/activitystreams#Update\\",\\"https://www.w3.org/ns/activitystreams#View\\",\\"https://www.w3.org/ns/activitystreams#Application\\",\\"https://www.w3.org/ns/activitystreams#Article\\",\\"https://www.w3.org/ns/activitystreams#Collection\\",\\"https://www.w3.org/ns/activitystreams#CollectionPage\\",\\"https://www.w3.org/ns/activitystreams#OrderedCollectionPage\\",\\"https://www.w3.org/ns/activitystreams#OrderedCollection\\",\\"https://www.w3.org/ns/activitystreams#Document\\",\\"https://www.w3.org/ns/activitystreams#Audio\\",\\"https://www.w3.org/ns/activitystreams#Image\\",\\"https://www.w3.org/ns/activitystreams#Page\\",\\"https://www.w3.org/ns/activitystreams#Video\\",\\"https://www.w3.org/ns/activitystreams#Event\\",\\"https://www.w3.org/ns/activitystreams#Group\\",\\"https://www.w3.org/ns/activitystreams#Note\\",\\"https://www.w3.org/ns/activitystreams#Organization\\",\\"https://www.w3.org/ns/activitystreams#Person\\",\\"https://www.w3.org/ns/activitystreams#Place\\",\\"https://www.w3.org/ns/activitystreams#Profile\\",\\"https://www.w3.org/ns/activitystreams#Relationship\\",\\"https://www.w3.org/ns/activitystreams#Service\\",\\"https://www.w3.org/ns/activitystreams#Tombstone\\"].some( t => v[\\"@type\\"].includes(t)) ? await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& [\\"https://www.w3.org/ns/activitystreams#Link\\",\\"https://www.w3.org/ns/activitystreams#Hashtag\\",\\"https://www.w3.org/ns/activitystreams#Mention\\"].some( t => v[\\"@type\\"].includes(t)) ? await Link.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -11385,13 +11385,13 @@ get urls(): ((URL | Link))[] { : \\"\\" ) ) - : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) + : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) ? new URL(v[\\"@id\\"]) - : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl))) : typeof v === \\"object\\" && \\"@type\\" in v + : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"]))) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& [\\"https://www.w3.org/ns/activitystreams#Link\\",\\"https://www.w3.org/ns/activitystreams#Hashtag\\",\\"https://www.w3.org/ns/activitystreams#Mention\\"].some( t => v[\\"@type\\"].includes(t)) ? await Link.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -11426,7 +11426,7 @@ get urls(): ((URL | Link))[] { const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _3hFbw7DTpHhq3cvVhkY8njhcsXbd_to.push(decoded); @@ -11459,7 +11459,7 @@ get urls(): ((URL | Link))[] { const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _aLZupjwL8XB7tzdLgCMXdjZ6qej_bto.push(decoded); @@ -11492,7 +11492,7 @@ get urls(): ((URL | Link))[] { const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _42a1SvBs24QSLzKcfjCyNTjW5a1g_cc.push(decoded); @@ -11525,7 +11525,7 @@ get urls(): ((URL | Link))[] { const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _3qvegKUB8YLgTXRpEf8E6JZSkz2H_bcc.push(decoded); @@ -11600,7 +11600,7 @@ get urls(): ((URL | Link))[] { const decoded = await Source.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _2ZwCFoS787v8y8bXKjMoE6MAbrEB_source.push(decoded); @@ -11633,7 +11633,7 @@ get urls(): ((URL | Link))[] { const decoded = await DataIntegrityProof.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _42rPnotok1ivQ2RNCKNbeFJgx8b8_proof.push(decoded); @@ -11654,7 +11654,7 @@ get urls(): ((URL | Link))[] { const decoded = await InteractionPolicy.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _2MHQfh2N74MMmDLDqYWFo7TxYQK2_interactionPolicy.push(decoded); @@ -11686,9 +11686,9 @@ get urls(): ((URL | Link))[] { : \\"\\" ) ) - : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) + : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) ? new URL(v[\\"@id\\"]) - : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl))); + : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"]))); if (typeof decoded === \\"undefined\\") continue; _23YiVs2miQcEiUdn4u8SvjQKWYim_approvedBy.push(decoded); } @@ -11720,7 +11720,7 @@ get urls(): ((URL | Link))[] { const decoded = await LikeAuthorization.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _3fCeb5aXaDDd4fvkQ96BLWifBUBa_likeAuthorization.push(decoded); @@ -11753,7 +11753,7 @@ get urls(): ((URL | Link))[] { const decoded = await ReplyAuthorization.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _YA4wdUW7rYztAQ6SjhMnJCmcmtP_replyAuthorization.push(decoded); @@ -11786,7 +11786,7 @@ get urls(): ((URL | Link))[] { const decoded = await AnnounceAuthorization.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _446xEaDBs3Fz6MyzP3PSBaLupkbJ_announceAuthorization.push(decoded); @@ -12964,7 +12964,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { + if (options.baseUrl == null && values[\\"@id\\"] != null) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -13966,7 +13966,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { + if (options.baseUrl == null && values[\\"@id\\"] != null) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -14017,7 +14017,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote.push(decoded); @@ -14076,7 +14076,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await QuoteAuthorization.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization.push(decoded); @@ -16999,7 +16999,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { + if (options.baseUrl == null && values[\\"@id\\"] != null) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -17188,23 +17188,23 @@ instruments?: (Object | URL)[];} typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Application\\") ? await Application.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Group\\") ? await Group.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Organization\\") ? await Organization.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Person\\") ? await Person.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Service\\") ? await Service.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -17239,7 +17239,7 @@ instruments?: (Object | URL)[];} const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _2MH19yxjn1wnHsNfa5n4JBhJzxyc_object.push(decoded); @@ -17272,7 +17272,7 @@ instruments?: (Object | URL)[];} const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _3JQCmF2Ww56Ag9EWRYoSZRDNCYtF_target.push(decoded); @@ -17305,7 +17305,7 @@ instruments?: (Object | URL)[];} const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _u4QGFbRFcYmPEKGbPv1hpBR9r5G_result.push(decoded); @@ -17338,7 +17338,7 @@ instruments?: (Object | URL)[];} const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _25zu2s3VxVujgEKqrDycjE284XQR_origin.push(decoded); @@ -17371,7 +17371,7 @@ instruments?: (Object | URL)[];} const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _3c5t2x7DYRo2shwTxpkd4kYSS5WQ_instrument.push(decoded); @@ -17842,7 +17842,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { + if (options.baseUrl == null && values[\\"@id\\"] != null) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -18345,7 +18345,7 @@ name?: string | LanguageString | null;value?: string | LanguageString | null;} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { + if (options.baseUrl == null && values[\\"@id\\"] != null) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -18931,7 +18931,7 @@ unit?: string | null;numericalValue?: Decimal | null;} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { + if (options.baseUrl == null && values[\\"@id\\"] != null) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -19926,7 +19926,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { + if (options.baseUrl == null && values[\\"@id\\"] != null) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -19977,7 +19977,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject.push(decoded); @@ -20010,7 +20010,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget.push(decoded); @@ -20375,7 +20375,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { + if (options.baseUrl == null && values[\\"@id\\"] != null) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -20966,7 +20966,7 @@ canLike?: InteractionRule | null;canReply?: InteractionRule | null;canAnnounce?: // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { + if (options.baseUrl == null && values[\\"@id\\"] != null) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -21000,7 +21000,7 @@ canLike?: InteractionRule | null;canReply?: InteractionRule | null;canAnnounce?: const decoded = await InteractionRule.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _3JkwVLb3BNCwCWdsb5RftGAg8vyT_canLike.push(decoded); @@ -21021,7 +21021,7 @@ canLike?: InteractionRule | null;canReply?: InteractionRule | null;canAnnounce?: const decoded = await InteractionRule.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _2UBgLRi5p3DRGGvWyB227i4Qjhzd_canReply.push(decoded); @@ -21042,7 +21042,7 @@ canLike?: InteractionRule | null;canReply?: InteractionRule | null;canAnnounce?: const decoded = await InteractionRule.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _fu5nmoAj528fBQfnxhY9Daok3Vi_canAnnounce.push(decoded); @@ -21063,7 +21063,7 @@ canLike?: InteractionRule | null;canReply?: InteractionRule | null;canAnnounce?: const decoded = await InteractionRule.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _LE3zBTVacTZw2LSyLt4wVUkXeUy_canQuote.push(decoded); @@ -21714,7 +21714,7 @@ get manualApprovals(): (URL)[] { // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { + if (options.baseUrl == null && values[\\"@id\\"] != null) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -21759,9 +21759,9 @@ get manualApprovals(): (URL)[] { : \\"\\" ) ) - : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) + : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) ? new URL(v[\\"@id\\"]) - : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl))); + : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"]))); if (typeof decoded === \\"undefined\\") continue; _2rFyCF14HoyNjitj9PmCzek5iSsg_automaticApproval.push(decoded); } @@ -21792,9 +21792,9 @@ get manualApprovals(): (URL)[] { : \\"\\" ) ) - : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) + : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) ? new URL(v[\\"@id\\"]) - : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl))); + : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"]))); if (typeof decoded === \\"undefined\\") continue; _sxj8y5XMMMBWUnRYFw85MKedCMj_manualApproval.push(decoded); } @@ -22750,7 +22750,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { + if (options.baseUrl == null && values[\\"@id\\"] != null) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -22801,7 +22801,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject.push(decoded); @@ -22834,7 +22834,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget.push(decoded); @@ -23198,7 +23198,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { + if (options.baseUrl == null && values[\\"@id\\"] != null) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -24106,7 +24106,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { + if (options.baseUrl == null && values[\\"@id\\"] != null) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -24157,7 +24157,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject.push(decoded); @@ -24190,7 +24190,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget.push(decoded); @@ -24554,7 +24554,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { + if (options.baseUrl == null && values[\\"@id\\"] != null) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -25461,7 +25461,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { + if (options.baseUrl == null && values[\\"@id\\"] != null) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -25512,7 +25512,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject.push(decoded); @@ -25545,7 +25545,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget.push(decoded); @@ -25909,7 +25909,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { + if (options.baseUrl == null && values[\\"@id\\"] != null) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -26354,7 +26354,7 @@ get endpoints(): (URL)[] { // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { + if (options.baseUrl == null && values[\\"@id\\"] != null) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -26403,9 +26403,9 @@ get endpoints(): (URL)[] { : \\"\\" ) ) - : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) + : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) ? new URL(v[\\"@id\\"]) - : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl))); + : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"]))); if (typeof decoded === \\"undefined\\") continue; _2KM4fetG6FTJ1cphj76rzJ8Dyv7p_serviceEndpoint.push(decoded); } @@ -26707,7 +26707,7 @@ endpoints?: (URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { + if (options.baseUrl == null && values[\\"@id\\"] != null) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -27525,7 +27525,7 @@ cryptosuite?: \\"eddsa-jcs-2022\\" | null;verificationMethod?: Multikey | URL | // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { + if (options.baseUrl == null && values[\\"@id\\"] != null) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -27589,7 +27589,7 @@ cryptosuite?: \\"eddsa-jcs-2022\\" | null;verificationMethod?: Multikey | URL | const decoded = await Multikey.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _2mHVKxqA7zncjveJrDEo3pWpMZqg_verificationMethod.push(decoded); @@ -28492,7 +28492,7 @@ owner?: Application | Group | Organization | Person | Service | URL | null;publi // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { + if (options.baseUrl == null && values[\\"@id\\"] != null) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -28540,23 +28540,23 @@ owner?: Application | Group | Organization | Person | Service | URL | null;publi typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Application\\") ? await Application.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Group\\") ? await Group.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Organization\\") ? await Organization.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Person\\") ? await Person.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Service\\") ? await Service.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -29372,7 +29372,7 @@ controller?: Application | Group | Organization | Person | Service | URL | null; // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { + if (options.baseUrl == null && values[\\"@id\\"] != null) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -29420,23 +29420,23 @@ controller?: Application | Group | Organization | Person | Service | URL | null; typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Application\\") ? await Application.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Group\\") ? await Group.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Organization\\") ? await Organization.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Person\\") ? await Person.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Service\\") ? await Service.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -30207,7 +30207,7 @@ action?: string | null;resourceConformsTo?: URL | null;resourceQuantity?: Measur // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { + if (options.baseUrl == null && values[\\"@id\\"] != null) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -30270,9 +30270,9 @@ action?: string | null;resourceConformsTo?: URL | null;resourceQuantity?: Measur : \\"\\" ) ) - : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) + : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) ? new URL(v[\\"@id\\"]) - : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl))); + : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"]))); if (typeof decoded === \\"undefined\\") continue; _BBAeMUUQDwBQn6cvu3P2Csd6b6h_resourceConformsTo.push(decoded); } @@ -30292,7 +30292,7 @@ action?: string | null;resourceConformsTo?: URL | null;resourceQuantity?: Measur const decoded = await Measure.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _2dLfqTbbRiggEcMQWbHpxkQrtmrc_resourceQuantity.push(decoded); @@ -30313,7 +30313,7 @@ action?: string | null;resourceConformsTo?: URL | null;resourceQuantity?: Measur const decoded = await Measure.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _YmNSnuih3Zk4VdR5JPVnQYroLAh_availableQuantity.push(decoded); @@ -30334,7 +30334,7 @@ action?: string | null;resourceConformsTo?: URL | null;resourceQuantity?: Measur const decoded = await Measure.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _3XueAFds2NBrqNpnV8b7aC8hV72S_minimumQuantity.push(decoded); @@ -31079,7 +31079,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { + if (options.baseUrl == null && values[\\"@id\\"] != null) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -31136,7 +31136,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Intent.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _sS5LvXX8cn4c3x6ux836AwYbTyJ_publishes.push(decoded); @@ -31157,7 +31157,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Intent.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _Z4ntJgFwR9BaNTbFvkRTGNEwUwy_reciprocal.push(decoded); @@ -31572,7 +31572,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { + if (options.baseUrl == null && values[\\"@id\\"] != null) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -31912,7 +31912,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { + if (options.baseUrl == null && values[\\"@id\\"] != null) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -32247,7 +32247,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { + if (options.baseUrl == null && values[\\"@id\\"] != null) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -37794,7 +37794,7 @@ get preferredUsernames(): ((string | LanguageString))[] { // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { + if (options.baseUrl == null && values[\\"@id\\"] != null) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -37869,7 +37869,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await CryptographicKey.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _axq166E2eZADq34V4MYUc8KMZdC_publicKey.push(decoded); @@ -37902,7 +37902,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Multikey.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.push(decoded); @@ -37955,11 +37955,11 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#OrderedCollection\\") ? await OrderedCollection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#OrderedCollectionPage\\") ? await OrderedCollectionPage.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -37996,11 +37996,11 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#OrderedCollection\\") ? await OrderedCollection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#OrderedCollectionPage\\") ? await OrderedCollectionPage.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -38035,7 +38035,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _3yAv8jymNfNuJUDuBzJ1NQhdbAee_following.push(decoded); @@ -38068,7 +38068,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _BBCTgfphhsFzpVfKTykGSpBNwoA_followers.push(decoded); @@ -38101,7 +38101,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _3bgkPwJanyTCoVFM9ovRcus8tKkU_liked.push(decoded); @@ -38134,7 +38134,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _4N1vBJzXDf8NbBumeECQMFvKetja_featured.push(decoded); @@ -38167,7 +38167,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags.push(decoded); @@ -38200,7 +38200,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.push(decoded); @@ -38221,7 +38221,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Endpoints.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints.push(decoded); @@ -38328,23 +38328,23 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Application\\") ? await Application.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Group\\") ? await Group.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Organization\\") ? await Organization.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Person\\") ? await Person.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Service\\") ? await Service.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -38381,23 +38381,23 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Application\\") ? await Application.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Group\\") ? await Group.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Organization\\") ? await Organization.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Person\\") ? await Person.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Service\\") ? await Service.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -38432,7 +38432,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await DidService.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.push(decoded); @@ -39257,7 +39257,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { + if (options.baseUrl == null && values[\\"@id\\"] != null) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -39604,7 +39604,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { + if (options.baseUrl == null && values[\\"@id\\"] != null) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -40601,7 +40601,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { + if (options.baseUrl == null && values[\\"@id\\"] != null) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -40652,7 +40652,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote.push(decoded); @@ -40711,7 +40711,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await QuoteAuthorization.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization.push(decoded); @@ -41242,7 +41242,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { + if (options.baseUrl == null && values[\\"@id\\"] != null) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -41671,7 +41671,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { + if (options.baseUrl == null && values[\\"@id\\"] != null) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -42005,7 +42005,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { + if (options.baseUrl == null && values[\\"@id\\"] != null) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -42345,7 +42345,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { + if (options.baseUrl == null && values[\\"@id\\"] != null) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -46168,7 +46168,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { + if (options.baseUrl == null && values[\\"@id\\"] != null) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -46249,7 +46249,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await CollectionPage.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _3UyUdxnyn6cDn53QKrh4MBiearma_current.push(decoded); @@ -46282,7 +46282,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await CollectionPage.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _J52RqweMe6hhv7RnLJMC8BExTE5_first.push(decoded); @@ -46315,7 +46315,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await CollectionPage.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _gyJJnyEFnuNVi1HFZKfAn3Hfn26_last.push(decoded); @@ -46351,12 +46351,12 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu && Array.isArray(v[\\"@type\\"])&& [\\"https://www.w3.org/ns/activitystreams#Object\\",\\"http://joinmastodon.org/ns#Emoji\\",\\"http://litepub.social/ns#ChatMessage\\",\\"https://gotosocial.org/ns#AnnounceAuthorization\\",\\"https://gotosocial.org/ns#LikeApproval\\",\\"https://gotosocial.org/ns#ReplyAuthorization\\",\\"https://w3id.org/fep/044f#QuoteAuthorization\\",\\"https://w3id.org/valueflows/ont/vf#Proposal\\",\\"https://www.w3.org/ns/activitystreams#Activity\\",\\"http://litepub.social/ns#EmojiReact\\",\\"https://gotosocial.org/ns#AnnounceRequest\\",\\"https://gotosocial.org/ns#LikeRequest\\",\\"https://gotosocial.org/ns#ReplyRequest\\",\\"https://w3id.org/fep/044f#QuoteRequest\\",\\"https://www.w3.org/ns/activitystreams#Accept\\",\\"https://www.w3.org/ns/activitystreams#TentativeAccept\\",\\"https://www.w3.org/ns/activitystreams#Add\\",\\"https://www.w3.org/ns/activitystreams#Announce\\",\\"https://www.w3.org/ns/activitystreams#Create\\",\\"https://www.w3.org/ns/activitystreams#Delete\\",\\"https://www.w3.org/ns/activitystreams#Dislike\\",\\"https://www.w3.org/ns/activitystreams#Flag\\",\\"https://www.w3.org/ns/activitystreams#Follow\\",\\"https://www.w3.org/ns/activitystreams#Ignore\\",\\"https://www.w3.org/ns/activitystreams#Block\\",\\"https://www.w3.org/ns/activitystreams#IntransitiveActivity\\",\\"https://www.w3.org/ns/activitystreams#Arrive\\",\\"https://www.w3.org/ns/activitystreams#Question\\",\\"https://www.w3.org/ns/activitystreams#Travel\\",\\"https://www.w3.org/ns/activitystreams#Join\\",\\"https://www.w3.org/ns/activitystreams#Leave\\",\\"https://www.w3.org/ns/activitystreams#Like\\",\\"https://www.w3.org/ns/activitystreams#Listen\\",\\"https://www.w3.org/ns/activitystreams#Move\\",\\"https://www.w3.org/ns/activitystreams#Offer\\",\\"https://www.w3.org/ns/activitystreams#Invite\\",\\"https://www.w3.org/ns/activitystreams#Read\\",\\"https://www.w3.org/ns/activitystreams#Reject\\",\\"https://www.w3.org/ns/activitystreams#TentativeReject\\",\\"https://www.w3.org/ns/activitystreams#Remove\\",\\"https://www.w3.org/ns/activitystreams#Undo\\",\\"https://www.w3.org/ns/activitystreams#Update\\",\\"https://www.w3.org/ns/activitystreams#View\\",\\"https://www.w3.org/ns/activitystreams#Application\\",\\"https://www.w3.org/ns/activitystreams#Article\\",\\"https://www.w3.org/ns/activitystreams#Collection\\",\\"https://www.w3.org/ns/activitystreams#CollectionPage\\",\\"https://www.w3.org/ns/activitystreams#OrderedCollectionPage\\",\\"https://www.w3.org/ns/activitystreams#OrderedCollection\\",\\"https://www.w3.org/ns/activitystreams#Document\\",\\"https://www.w3.org/ns/activitystreams#Audio\\",\\"https://www.w3.org/ns/activitystreams#Image\\",\\"https://www.w3.org/ns/activitystreams#Page\\",\\"https://www.w3.org/ns/activitystreams#Video\\",\\"https://www.w3.org/ns/activitystreams#Event\\",\\"https://www.w3.org/ns/activitystreams#Group\\",\\"https://www.w3.org/ns/activitystreams#Note\\",\\"https://www.w3.org/ns/activitystreams#Organization\\",\\"https://www.w3.org/ns/activitystreams#Person\\",\\"https://www.w3.org/ns/activitystreams#Place\\",\\"https://www.w3.org/ns/activitystreams#Profile\\",\\"https://www.w3.org/ns/activitystreams#Relationship\\",\\"https://www.w3.org/ns/activitystreams#Service\\",\\"https://www.w3.org/ns/activitystreams#Tombstone\\"].some( t => v[\\"@type\\"].includes(t)) ? await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& [\\"https://www.w3.org/ns/activitystreams#Link\\",\\"https://www.w3.org/ns/activitystreams#Hashtag\\",\\"https://www.w3.org/ns/activitystreams#Mention\\"].some( t => v[\\"@type\\"].includes(t)) ? await Link.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -46391,7 +46391,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _4TB9Qd9ddtcZEpMfzbHhzafE6jaJ_likesOf.push(decoded); @@ -46424,7 +46424,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _3manzgeKiPsugpztKGiaUUwJ3ito_sharesOf.push(decoded); @@ -46457,7 +46457,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _3T3oGm3twpcQUcrnMisXQtmDZ32X_repliesOf.push(decoded); @@ -46490,7 +46490,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _2bvRkAFZjMfVD8jiUWZJr5YokSeN_inboxOf.push(decoded); @@ -46523,7 +46523,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _4AHzVZDxHjK6uEWa9UiKHGK34yYm_outboxOf.push(decoded); @@ -46556,7 +46556,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _41aoZ5M6yRUHy3Zx8q6iuZQxtopb_followersOf.push(decoded); @@ -46589,7 +46589,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _2nXT2Ah42UjEEQF5oJQ39CbKB1xj_followingOf.push(decoded); @@ -46622,7 +46622,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _2bsySzmT3qEZcrnoe3tZ5xBjXSju_likedOf.push(decoded); @@ -48049,7 +48049,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { + if (options.baseUrl == null && values[\\"@id\\"] != null) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -48104,7 +48104,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _2kWgBhQKjEauxx8C6qF3ZQamK4Le_partOf.push(decoded); @@ -48137,7 +48137,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await CollectionPage.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _3BT4kQLcXhHx7TAWaNDKh8nFn9eY_next.push(decoded); @@ -48170,7 +48170,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await CollectionPage.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _3b8yG8tDNzQFFEnWhCc13G8eHooA_prev.push(decoded); @@ -48544,7 +48544,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { + if (options.baseUrl == null && values[\\"@id\\"] != null) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -48878,7 +48878,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { + if (options.baseUrl == null && values[\\"@id\\"] != null) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -49210,7 +49210,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { + if (options.baseUrl == null && values[\\"@id\\"] != null) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -50004,7 +50004,7 @@ proxyUrl?: URL | null;oauthAuthorizationEndpoint?: URL | null;oauthTokenEndpoint // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { + if (options.baseUrl == null && values[\\"@id\\"] != null) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -50049,9 +50049,9 @@ proxyUrl?: URL | null;oauthAuthorizationEndpoint?: URL | null;oauthTokenEndpoint : \\"\\" ) ) - : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) + : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) ? new URL(v[\\"@id\\"]) - : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl))); + : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"]))); if (typeof decoded === \\"undefined\\") continue; _2JCYDbSxEHCCLdBYed33cCETfGyR_proxyUrl.push(decoded); } @@ -50082,9 +50082,9 @@ proxyUrl?: URL | null;oauthAuthorizationEndpoint?: URL | null;oauthTokenEndpoint : \\"\\" ) ) - : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) + : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) ? new URL(v[\\"@id\\"]) - : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl))); + : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"]))); if (typeof decoded === \\"undefined\\") continue; _25S6UmgzDead8hxL5sQFezZTAusd_oauthAuthorizationEndpoint.push(decoded); } @@ -50115,9 +50115,9 @@ proxyUrl?: URL | null;oauthAuthorizationEndpoint?: URL | null;oauthTokenEndpoint : \\"\\" ) ) - : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) + : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) ? new URL(v[\\"@id\\"]) - : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl))); + : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"]))); if (typeof decoded === \\"undefined\\") continue; _iAMxqrSba7yBCRB1FZ5kEVdKEZ3_oauthTokenEndpoint.push(decoded); } @@ -50148,9 +50148,9 @@ proxyUrl?: URL | null;oauthAuthorizationEndpoint?: URL | null;oauthTokenEndpoint : \\"\\" ) ) - : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) + : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) ? new URL(v[\\"@id\\"]) - : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl))); + : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"]))); if (typeof decoded === \\"undefined\\") continue; _8Bx9qN8oU7Bpt2xi6khaxWp1gMr_provideClientKey.push(decoded); } @@ -50181,9 +50181,9 @@ proxyUrl?: URL | null;oauthAuthorizationEndpoint?: URL | null;oauthTokenEndpoint : \\"\\" ) ) - : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) + : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) ? new URL(v[\\"@id\\"]) - : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl))); + : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"]))); if (typeof decoded === \\"undefined\\") continue; _3dU7PMVQZJpsCpo2F4RQXxBXdPmS_signClientKey.push(decoded); } @@ -50214,9 +50214,9 @@ proxyUrl?: URL | null;oauthAuthorizationEndpoint?: URL | null;oauthTokenEndpoint : \\"\\" ) ) - : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) + : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) ? new URL(v[\\"@id\\"]) - : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl))); + : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"]))); if (typeof decoded === \\"undefined\\") continue; _3JprUSDLVqqX4dwHRi37qGZZCRCc_sharedInbox.push(decoded); } @@ -50669,7 +50669,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { + if (options.baseUrl == null && values[\\"@id\\"] != null) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -51004,7 +51004,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { + if (options.baseUrl == null && values[\\"@id\\"] != null) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -51340,7 +51340,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { + if (options.baseUrl == null && values[\\"@id\\"] != null) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -56887,7 +56887,7 @@ get preferredUsernames(): ((string | LanguageString))[] { // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { + if (options.baseUrl == null && values[\\"@id\\"] != null) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -56962,7 +56962,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await CryptographicKey.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _axq166E2eZADq34V4MYUc8KMZdC_publicKey.push(decoded); @@ -56995,7 +56995,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Multikey.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.push(decoded); @@ -57048,11 +57048,11 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#OrderedCollection\\") ? await OrderedCollection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#OrderedCollectionPage\\") ? await OrderedCollectionPage.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -57089,11 +57089,11 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#OrderedCollection\\") ? await OrderedCollection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#OrderedCollectionPage\\") ? await OrderedCollectionPage.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -57128,7 +57128,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _3yAv8jymNfNuJUDuBzJ1NQhdbAee_following.push(decoded); @@ -57161,7 +57161,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _BBCTgfphhsFzpVfKTykGSpBNwoA_followers.push(decoded); @@ -57194,7 +57194,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _3bgkPwJanyTCoVFM9ovRcus8tKkU_liked.push(decoded); @@ -57227,7 +57227,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _4N1vBJzXDf8NbBumeECQMFvKetja_featured.push(decoded); @@ -57260,7 +57260,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags.push(decoded); @@ -57293,7 +57293,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.push(decoded); @@ -57314,7 +57314,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Endpoints.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints.push(decoded); @@ -57421,23 +57421,23 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Application\\") ? await Application.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Group\\") ? await Group.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Organization\\") ? await Organization.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Person\\") ? await Person.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Service\\") ? await Service.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -57474,23 +57474,23 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Application\\") ? await Application.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Group\\") ? await Group.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Organization\\") ? await Organization.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Person\\") ? await Person.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Service\\") ? await Service.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -57525,7 +57525,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await DidService.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.push(decoded); @@ -59318,7 +59318,7 @@ get names(): ((string | LanguageString))[] { // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { + if (options.baseUrl == null && values[\\"@id\\"] != null) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -59371,9 +59371,9 @@ get names(): ((string | LanguageString))[] { : \\"\\" ) ) - : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) + : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) ? new URL(v[\\"@id\\"]) - : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl))); + : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"]))); if (typeof decoded === \\"undefined\\") continue; _pVjLsybKQdmkjuU7MHjiVmNnuj7_href.push(decoded); } @@ -59522,12 +59522,12 @@ get names(): ((string | LanguageString))[] { && Array.isArray(v[\\"@type\\"])&& [\\"https://www.w3.org/ns/activitystreams#Link\\",\\"https://www.w3.org/ns/activitystreams#Hashtag\\",\\"https://www.w3.org/ns/activitystreams#Mention\\"].some( t => v[\\"@type\\"].includes(t)) ? await Link.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& [\\"https://www.w3.org/ns/activitystreams#Object\\",\\"http://joinmastodon.org/ns#Emoji\\",\\"http://litepub.social/ns#ChatMessage\\",\\"https://gotosocial.org/ns#AnnounceAuthorization\\",\\"https://gotosocial.org/ns#LikeApproval\\",\\"https://gotosocial.org/ns#ReplyAuthorization\\",\\"https://w3id.org/fep/044f#QuoteAuthorization\\",\\"https://w3id.org/valueflows/ont/vf#Proposal\\",\\"https://www.w3.org/ns/activitystreams#Activity\\",\\"http://litepub.social/ns#EmojiReact\\",\\"https://gotosocial.org/ns#AnnounceRequest\\",\\"https://gotosocial.org/ns#LikeRequest\\",\\"https://gotosocial.org/ns#ReplyRequest\\",\\"https://w3id.org/fep/044f#QuoteRequest\\",\\"https://www.w3.org/ns/activitystreams#Accept\\",\\"https://www.w3.org/ns/activitystreams#TentativeAccept\\",\\"https://www.w3.org/ns/activitystreams#Add\\",\\"https://www.w3.org/ns/activitystreams#Announce\\",\\"https://www.w3.org/ns/activitystreams#Create\\",\\"https://www.w3.org/ns/activitystreams#Delete\\",\\"https://www.w3.org/ns/activitystreams#Dislike\\",\\"https://www.w3.org/ns/activitystreams#Flag\\",\\"https://www.w3.org/ns/activitystreams#Follow\\",\\"https://www.w3.org/ns/activitystreams#Ignore\\",\\"https://www.w3.org/ns/activitystreams#Block\\",\\"https://www.w3.org/ns/activitystreams#IntransitiveActivity\\",\\"https://www.w3.org/ns/activitystreams#Arrive\\",\\"https://www.w3.org/ns/activitystreams#Question\\",\\"https://www.w3.org/ns/activitystreams#Travel\\",\\"https://www.w3.org/ns/activitystreams#Join\\",\\"https://www.w3.org/ns/activitystreams#Leave\\",\\"https://www.w3.org/ns/activitystreams#Like\\",\\"https://www.w3.org/ns/activitystreams#Listen\\",\\"https://www.w3.org/ns/activitystreams#Move\\",\\"https://www.w3.org/ns/activitystreams#Offer\\",\\"https://www.w3.org/ns/activitystreams#Invite\\",\\"https://www.w3.org/ns/activitystreams#Read\\",\\"https://www.w3.org/ns/activitystreams#Reject\\",\\"https://www.w3.org/ns/activitystreams#TentativeReject\\",\\"https://www.w3.org/ns/activitystreams#Remove\\",\\"https://www.w3.org/ns/activitystreams#Undo\\",\\"https://www.w3.org/ns/activitystreams#Update\\",\\"https://www.w3.org/ns/activitystreams#View\\",\\"https://www.w3.org/ns/activitystreams#Application\\",\\"https://www.w3.org/ns/activitystreams#Article\\",\\"https://www.w3.org/ns/activitystreams#Collection\\",\\"https://www.w3.org/ns/activitystreams#CollectionPage\\",\\"https://www.w3.org/ns/activitystreams#OrderedCollectionPage\\",\\"https://www.w3.org/ns/activitystreams#OrderedCollection\\",\\"https://www.w3.org/ns/activitystreams#Document\\",\\"https://www.w3.org/ns/activitystreams#Audio\\",\\"https://www.w3.org/ns/activitystreams#Image\\",\\"https://www.w3.org/ns/activitystreams#Page\\",\\"https://www.w3.org/ns/activitystreams#Video\\",\\"https://www.w3.org/ns/activitystreams#Event\\",\\"https://www.w3.org/ns/activitystreams#Group\\",\\"https://www.w3.org/ns/activitystreams#Note\\",\\"https://www.w3.org/ns/activitystreams#Organization\\",\\"https://www.w3.org/ns/activitystreams#Person\\",\\"https://www.w3.org/ns/activitystreams#Place\\",\\"https://www.w3.org/ns/activitystreams#Profile\\",\\"https://www.w3.org/ns/activitystreams#Relationship\\",\\"https://www.w3.org/ns/activitystreams#Service\\",\\"https://www.w3.org/ns/activitystreams#Tombstone\\"].some( t => v[\\"@type\\"].includes(t)) ? await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -60001,7 +60001,7 @@ names?: ((string | LanguageString))[];language?: Intl.Locale | null;height?: num // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { + if (options.baseUrl == null && values[\\"@id\\"] != null) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -60338,7 +60338,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { + if (options.baseUrl == null && values[\\"@id\\"] != null) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -60673,7 +60673,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { + if (options.baseUrl == null && values[\\"@id\\"] != null) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -61011,7 +61011,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { + if (options.baseUrl == null && values[\\"@id\\"] != null) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -61345,7 +61345,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { + if (options.baseUrl == null && values[\\"@id\\"] != null) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -61679,7 +61679,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { + if (options.baseUrl == null && values[\\"@id\\"] != null) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -62013,7 +62013,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { + if (options.baseUrl == null && values[\\"@id\\"] != null) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -62345,7 +62345,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { + if (options.baseUrl == null && values[\\"@id\\"] != null) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -62643,7 +62643,7 @@ names?: ((string | LanguageString))[];language?: Intl.Locale | null;height?: num // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { + if (options.baseUrl == null && values[\\"@id\\"] != null) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -62978,7 +62978,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { + if (options.baseUrl == null && values[\\"@id\\"] != null) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -63977,7 +63977,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { + if (options.baseUrl == null && values[\\"@id\\"] != null) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -64028,7 +64028,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote.push(decoded); @@ -64087,7 +64087,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await QuoteAuthorization.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization.push(decoded); @@ -64775,7 +64775,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { + if (options.baseUrl == null && values[\\"@id\\"] != null) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -64829,12 +64829,12 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu && Array.isArray(v[\\"@type\\"])&& [\\"https://www.w3.org/ns/activitystreams#Object\\",\\"http://joinmastodon.org/ns#Emoji\\",\\"http://litepub.social/ns#ChatMessage\\",\\"https://gotosocial.org/ns#AnnounceAuthorization\\",\\"https://gotosocial.org/ns#LikeApproval\\",\\"https://gotosocial.org/ns#ReplyAuthorization\\",\\"https://w3id.org/fep/044f#QuoteAuthorization\\",\\"https://w3id.org/valueflows/ont/vf#Proposal\\",\\"https://www.w3.org/ns/activitystreams#Activity\\",\\"http://litepub.social/ns#EmojiReact\\",\\"https://gotosocial.org/ns#AnnounceRequest\\",\\"https://gotosocial.org/ns#LikeRequest\\",\\"https://gotosocial.org/ns#ReplyRequest\\",\\"https://w3id.org/fep/044f#QuoteRequest\\",\\"https://www.w3.org/ns/activitystreams#Accept\\",\\"https://www.w3.org/ns/activitystreams#TentativeAccept\\",\\"https://www.w3.org/ns/activitystreams#Add\\",\\"https://www.w3.org/ns/activitystreams#Announce\\",\\"https://www.w3.org/ns/activitystreams#Create\\",\\"https://www.w3.org/ns/activitystreams#Delete\\",\\"https://www.w3.org/ns/activitystreams#Dislike\\",\\"https://www.w3.org/ns/activitystreams#Flag\\",\\"https://www.w3.org/ns/activitystreams#Follow\\",\\"https://www.w3.org/ns/activitystreams#Ignore\\",\\"https://www.w3.org/ns/activitystreams#Block\\",\\"https://www.w3.org/ns/activitystreams#IntransitiveActivity\\",\\"https://www.w3.org/ns/activitystreams#Arrive\\",\\"https://www.w3.org/ns/activitystreams#Question\\",\\"https://www.w3.org/ns/activitystreams#Travel\\",\\"https://www.w3.org/ns/activitystreams#Join\\",\\"https://www.w3.org/ns/activitystreams#Leave\\",\\"https://www.w3.org/ns/activitystreams#Like\\",\\"https://www.w3.org/ns/activitystreams#Listen\\",\\"https://www.w3.org/ns/activitystreams#Move\\",\\"https://www.w3.org/ns/activitystreams#Offer\\",\\"https://www.w3.org/ns/activitystreams#Invite\\",\\"https://www.w3.org/ns/activitystreams#Read\\",\\"https://www.w3.org/ns/activitystreams#Reject\\",\\"https://www.w3.org/ns/activitystreams#TentativeReject\\",\\"https://www.w3.org/ns/activitystreams#Remove\\",\\"https://www.w3.org/ns/activitystreams#Undo\\",\\"https://www.w3.org/ns/activitystreams#Update\\",\\"https://www.w3.org/ns/activitystreams#View\\",\\"https://www.w3.org/ns/activitystreams#Application\\",\\"https://www.w3.org/ns/activitystreams#Article\\",\\"https://www.w3.org/ns/activitystreams#Collection\\",\\"https://www.w3.org/ns/activitystreams#CollectionPage\\",\\"https://www.w3.org/ns/activitystreams#OrderedCollectionPage\\",\\"https://www.w3.org/ns/activitystreams#OrderedCollection\\",\\"https://www.w3.org/ns/activitystreams#Document\\",\\"https://www.w3.org/ns/activitystreams#Audio\\",\\"https://www.w3.org/ns/activitystreams#Image\\",\\"https://www.w3.org/ns/activitystreams#Page\\",\\"https://www.w3.org/ns/activitystreams#Video\\",\\"https://www.w3.org/ns/activitystreams#Event\\",\\"https://www.w3.org/ns/activitystreams#Group\\",\\"https://www.w3.org/ns/activitystreams#Note\\",\\"https://www.w3.org/ns/activitystreams#Organization\\",\\"https://www.w3.org/ns/activitystreams#Person\\",\\"https://www.w3.org/ns/activitystreams#Place\\",\\"https://www.w3.org/ns/activitystreams#Profile\\",\\"https://www.w3.org/ns/activitystreams#Relationship\\",\\"https://www.w3.org/ns/activitystreams#Service\\",\\"https://www.w3.org/ns/activitystreams#Tombstone\\"].some( t => v[\\"@type\\"].includes(t)) ? await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& [\\"https://www.w3.org/ns/activitystreams#Link\\",\\"https://www.w3.org/ns/activitystreams#Hashtag\\",\\"https://www.w3.org/ns/activitystreams#Mention\\"].some( t => v[\\"@type\\"].includes(t)) ? await Link.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -65563,7 +65563,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { + if (options.baseUrl == null && values[\\"@id\\"] != null) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -65617,12 +65617,12 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu && Array.isArray(v[\\"@type\\"])&& [\\"https://www.w3.org/ns/activitystreams#Object\\",\\"http://joinmastodon.org/ns#Emoji\\",\\"http://litepub.social/ns#ChatMessage\\",\\"https://gotosocial.org/ns#AnnounceAuthorization\\",\\"https://gotosocial.org/ns#LikeApproval\\",\\"https://gotosocial.org/ns#ReplyAuthorization\\",\\"https://w3id.org/fep/044f#QuoteAuthorization\\",\\"https://w3id.org/valueflows/ont/vf#Proposal\\",\\"https://www.w3.org/ns/activitystreams#Activity\\",\\"http://litepub.social/ns#EmojiReact\\",\\"https://gotosocial.org/ns#AnnounceRequest\\",\\"https://gotosocial.org/ns#LikeRequest\\",\\"https://gotosocial.org/ns#ReplyRequest\\",\\"https://w3id.org/fep/044f#QuoteRequest\\",\\"https://www.w3.org/ns/activitystreams#Accept\\",\\"https://www.w3.org/ns/activitystreams#TentativeAccept\\",\\"https://www.w3.org/ns/activitystreams#Add\\",\\"https://www.w3.org/ns/activitystreams#Announce\\",\\"https://www.w3.org/ns/activitystreams#Create\\",\\"https://www.w3.org/ns/activitystreams#Delete\\",\\"https://www.w3.org/ns/activitystreams#Dislike\\",\\"https://www.w3.org/ns/activitystreams#Flag\\",\\"https://www.w3.org/ns/activitystreams#Follow\\",\\"https://www.w3.org/ns/activitystreams#Ignore\\",\\"https://www.w3.org/ns/activitystreams#Block\\",\\"https://www.w3.org/ns/activitystreams#IntransitiveActivity\\",\\"https://www.w3.org/ns/activitystreams#Arrive\\",\\"https://www.w3.org/ns/activitystreams#Question\\",\\"https://www.w3.org/ns/activitystreams#Travel\\",\\"https://www.w3.org/ns/activitystreams#Join\\",\\"https://www.w3.org/ns/activitystreams#Leave\\",\\"https://www.w3.org/ns/activitystreams#Like\\",\\"https://www.w3.org/ns/activitystreams#Listen\\",\\"https://www.w3.org/ns/activitystreams#Move\\",\\"https://www.w3.org/ns/activitystreams#Offer\\",\\"https://www.w3.org/ns/activitystreams#Invite\\",\\"https://www.w3.org/ns/activitystreams#Read\\",\\"https://www.w3.org/ns/activitystreams#Reject\\",\\"https://www.w3.org/ns/activitystreams#TentativeReject\\",\\"https://www.w3.org/ns/activitystreams#Remove\\",\\"https://www.w3.org/ns/activitystreams#Undo\\",\\"https://www.w3.org/ns/activitystreams#Update\\",\\"https://www.w3.org/ns/activitystreams#View\\",\\"https://www.w3.org/ns/activitystreams#Application\\",\\"https://www.w3.org/ns/activitystreams#Article\\",\\"https://www.w3.org/ns/activitystreams#Collection\\",\\"https://www.w3.org/ns/activitystreams#CollectionPage\\",\\"https://www.w3.org/ns/activitystreams#OrderedCollectionPage\\",\\"https://www.w3.org/ns/activitystreams#OrderedCollection\\",\\"https://www.w3.org/ns/activitystreams#Document\\",\\"https://www.w3.org/ns/activitystreams#Audio\\",\\"https://www.w3.org/ns/activitystreams#Image\\",\\"https://www.w3.org/ns/activitystreams#Page\\",\\"https://www.w3.org/ns/activitystreams#Video\\",\\"https://www.w3.org/ns/activitystreams#Event\\",\\"https://www.w3.org/ns/activitystreams#Group\\",\\"https://www.w3.org/ns/activitystreams#Note\\",\\"https://www.w3.org/ns/activitystreams#Organization\\",\\"https://www.w3.org/ns/activitystreams#Person\\",\\"https://www.w3.org/ns/activitystreams#Place\\",\\"https://www.w3.org/ns/activitystreams#Profile\\",\\"https://www.w3.org/ns/activitystreams#Relationship\\",\\"https://www.w3.org/ns/activitystreams#Service\\",\\"https://www.w3.org/ns/activitystreams#Tombstone\\"].some( t => v[\\"@type\\"].includes(t)) ? await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& [\\"https://www.w3.org/ns/activitystreams#Link\\",\\"https://www.w3.org/ns/activitystreams#Hashtag\\",\\"https://www.w3.org/ns/activitystreams#Mention\\"].some( t => v[\\"@type\\"].includes(t)) ? await Link.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -71213,7 +71213,7 @@ get preferredUsernames(): ((string | LanguageString))[] { // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { + if (options.baseUrl == null && values[\\"@id\\"] != null) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -71288,7 +71288,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await CryptographicKey.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _axq166E2eZADq34V4MYUc8KMZdC_publicKey.push(decoded); @@ -71321,7 +71321,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Multikey.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.push(decoded); @@ -71374,11 +71374,11 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#OrderedCollection\\") ? await OrderedCollection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#OrderedCollectionPage\\") ? await OrderedCollectionPage.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -71415,11 +71415,11 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#OrderedCollection\\") ? await OrderedCollection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#OrderedCollectionPage\\") ? await OrderedCollectionPage.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -71454,7 +71454,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _3yAv8jymNfNuJUDuBzJ1NQhdbAee_following.push(decoded); @@ -71487,7 +71487,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _BBCTgfphhsFzpVfKTykGSpBNwoA_followers.push(decoded); @@ -71520,7 +71520,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _3bgkPwJanyTCoVFM9ovRcus8tKkU_liked.push(decoded); @@ -71553,7 +71553,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _4N1vBJzXDf8NbBumeECQMFvKetja_featured.push(decoded); @@ -71586,7 +71586,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags.push(decoded); @@ -71619,7 +71619,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.push(decoded); @@ -71640,7 +71640,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Endpoints.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints.push(decoded); @@ -71747,23 +71747,23 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Application\\") ? await Application.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Group\\") ? await Group.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Organization\\") ? await Organization.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Person\\") ? await Person.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Service\\") ? await Service.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -71800,23 +71800,23 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Application\\") ? await Application.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Group\\") ? await Group.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Organization\\") ? await Organization.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Person\\") ? await Person.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Service\\") ? await Service.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -71851,7 +71851,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await DidService.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.push(decoded); @@ -72678,7 +72678,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { + if (options.baseUrl == null && values[\\"@id\\"] != null) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -78225,7 +78225,7 @@ get preferredUsernames(): ((string | LanguageString))[] { // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { + if (options.baseUrl == null && values[\\"@id\\"] != null) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -78300,7 +78300,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await CryptographicKey.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _axq166E2eZADq34V4MYUc8KMZdC_publicKey.push(decoded); @@ -78333,7 +78333,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Multikey.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.push(decoded); @@ -78386,11 +78386,11 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#OrderedCollection\\") ? await OrderedCollection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#OrderedCollectionPage\\") ? await OrderedCollectionPage.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -78427,11 +78427,11 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#OrderedCollection\\") ? await OrderedCollection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#OrderedCollectionPage\\") ? await OrderedCollectionPage.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -78466,7 +78466,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _3yAv8jymNfNuJUDuBzJ1NQhdbAee_following.push(decoded); @@ -78499,7 +78499,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _BBCTgfphhsFzpVfKTykGSpBNwoA_followers.push(decoded); @@ -78532,7 +78532,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _3bgkPwJanyTCoVFM9ovRcus8tKkU_liked.push(decoded); @@ -78565,7 +78565,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _4N1vBJzXDf8NbBumeECQMFvKetja_featured.push(decoded); @@ -78598,7 +78598,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags.push(decoded); @@ -78631,7 +78631,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.push(decoded); @@ -78652,7 +78652,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Endpoints.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints.push(decoded); @@ -78759,23 +78759,23 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Application\\") ? await Application.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Group\\") ? await Group.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Organization\\") ? await Organization.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Person\\") ? await Person.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Service\\") ? await Service.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -78812,23 +78812,23 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Application\\") ? await Application.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Group\\") ? await Group.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Organization\\") ? await Organization.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Person\\") ? await Person.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Service\\") ? await Service.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -78863,7 +78863,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await DidService.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.push(decoded); @@ -80146,7 +80146,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { + if (options.baseUrl == null && values[\\"@id\\"] != null) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -80290,9 +80290,9 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu : \\"\\" ) ) - : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) + : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) ? new URL(v[\\"@id\\"]) - : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl))) : undefined + : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"]))) : undefined ; if (typeof decoded === \\"undefined\\") continue; _oKrwxU4V8wiKhMW1QEYQibcJh8c_units.push(decoded); @@ -81019,7 +81019,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { + if (options.baseUrl == null && values[\\"@id\\"] != null) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -81070,7 +81070,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _3CLQ1PLSXrhSQbTGGHuxNyaEFKM1_describes.push(decoded); @@ -82682,7 +82682,7 @@ instruments?: (Object | URL)[];exclusiveOptions?: (Object | URL)[];inclusiveOpti // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { + if (options.baseUrl == null && values[\\"@id\\"] != null) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -82733,7 +82733,7 @@ instruments?: (Object | URL)[];exclusiveOptions?: (Object | URL)[];inclusiveOpti const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _2N5scKaVEcdYHFmfKYYacAwUhUgQ_oneOf.push(decoded); @@ -82766,7 +82766,7 @@ instruments?: (Object | URL)[];exclusiveOptions?: (Object | URL)[];inclusiveOpti const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _2mV6isMTPRKbWdLCjcpiEysq5dAY_anyOf.push(decoded); @@ -82848,7 +82848,7 @@ instruments?: (Object | URL)[];exclusiveOptions?: (Object | URL)[];inclusiveOpti const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote.push(decoded); @@ -82907,7 +82907,7 @@ instruments?: (Object | URL)[];exclusiveOptions?: (Object | URL)[];inclusiveOpti const decoded = await QuoteAuthorization.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization.push(decoded); @@ -83366,7 +83366,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { + if (options.baseUrl == null && values[\\"@id\\"] != null) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -83700,7 +83700,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { + if (options.baseUrl == null && values[\\"@id\\"] != null) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -85206,7 +85206,7 @@ relationships?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { + if (options.baseUrl == null && values[\\"@id\\"] != null) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -85257,7 +85257,7 @@ relationships?: (Object | URL)[];} const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _2Zqdmi46ZnDQsECS6mzwhrv3rUKq_subject.push(decoded); @@ -85290,7 +85290,7 @@ relationships?: (Object | URL)[];} const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _2MH19yxjn1wnHsNfa5n4JBhJzxyc_object.push(decoded); @@ -85323,7 +85323,7 @@ relationships?: (Object | URL)[];} const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _4Lzz89F9qipAQSGkWyX9DGWiUojG_relationship.push(decoded); @@ -85711,7 +85711,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { + if (options.baseUrl == null && values[\\"@id\\"] != null) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -91258,7 +91258,7 @@ get preferredUsernames(): ((string | LanguageString))[] { // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { + if (options.baseUrl == null && values[\\"@id\\"] != null) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -91333,7 +91333,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await CryptographicKey.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _axq166E2eZADq34V4MYUc8KMZdC_publicKey.push(decoded); @@ -91366,7 +91366,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Multikey.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.push(decoded); @@ -91419,11 +91419,11 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#OrderedCollection\\") ? await OrderedCollection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#OrderedCollectionPage\\") ? await OrderedCollectionPage.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -91460,11 +91460,11 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#OrderedCollection\\") ? await OrderedCollection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#OrderedCollectionPage\\") ? await OrderedCollectionPage.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -91499,7 +91499,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _3yAv8jymNfNuJUDuBzJ1NQhdbAee_following.push(decoded); @@ -91532,7 +91532,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _BBCTgfphhsFzpVfKTykGSpBNwoA_followers.push(decoded); @@ -91565,7 +91565,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _3bgkPwJanyTCoVFM9ovRcus8tKkU_liked.push(decoded); @@ -91598,7 +91598,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _4N1vBJzXDf8NbBumeECQMFvKetja_featured.push(decoded); @@ -91631,7 +91631,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags.push(decoded); @@ -91664,7 +91664,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.push(decoded); @@ -91685,7 +91685,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Endpoints.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints.push(decoded); @@ -91792,23 +91792,23 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Application\\") ? await Application.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Group\\") ? await Group.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Organization\\") ? await Organization.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Person\\") ? await Person.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Service\\") ? await Service.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -91845,23 +91845,23 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Application\\") ? await Application.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Group\\") ? await Group.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Organization\\") ? await Organization.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Person\\") ? await Person.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : typeof v === \\"object\\" && \\"@type\\" in v && Array.isArray(v[\\"@type\\"])&& v[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Service\\") ? await Service.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ) : undefined ; if (typeof decoded === \\"undefined\\") continue; @@ -91896,7 +91896,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await DidService.fromJsonLd( v, - { ...options, baseUrl: (values[\\"@id\\"] == null || !URL.canParse(values[\\"@id\\"], options.baseUrl) ? options.baseUrl : new URL(values[\\"@id\\"], options.baseUrl)) } + { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) } ); if (typeof decoded === \\"undefined\\") continue; _4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.push(decoded); @@ -92932,7 +92932,7 @@ get contents(): ((string | LanguageString))[] { // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { + if (options.baseUrl == null && values[\\"@id\\"] != null) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -93364,7 +93364,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { + if (options.baseUrl == null && values[\\"@id\\"] != null) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -93698,7 +93698,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { + if (options.baseUrl == null && values[\\"@id\\"] != null) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -94248,7 +94248,7 @@ get formerTypes(): ($EntityType)[] { // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { + if (options.baseUrl == null && values[\\"@id\\"] != null) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -94683,7 +94683,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { + if (options.baseUrl == null && values[\\"@id\\"] != null) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -95022,7 +95022,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { + if (options.baseUrl == null && values[\\"@id\\"] != null) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -95359,7 +95359,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { + if (options.baseUrl == null && values[\\"@id\\"] != null) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -95696,7 +95696,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { + if (options.baseUrl == null && values[\\"@id\\"] != null) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } @@ -96029,7 +96029,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { \\"@id\\"?: string }); } - if (options.baseUrl == null && values[\\"@id\\"] != null && URL.canParse(values[\\"@id\\"])) { + if (options.baseUrl == null && values[\\"@id\\"] != null) { options = { ...options, baseUrl: new URL(values[\\"@id\\"]) }; } diff --git a/packages/vocab-tools/src/__snapshots__/class.test.ts.snap b/packages/vocab-tools/src/__snapshots__/class.test.ts.snap index 574747f41..e4c54605f 100644 --- a/packages/vocab-tools/src/__snapshots__/class.test.ts.snap +++ b/packages/vocab-tools/src/__snapshots__/class.test.ts.snap @@ -10294,7 +10294,7 @@ get urls(): ((URL | Link))[] { // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { + if (options.baseUrl == null && values["@id"] != null) { options = { ...options, baseUrl: new URL(values["@id"]) }; } @@ -10595,16 +10595,16 @@ get urls(): ((URL | Link))[] { && Array.isArray(v["@type"])&& ["https://www.w3.org/ns/activitystreams#Object","http://joinmastodon.org/ns#Emoji","http://litepub.social/ns#ChatMessage","https://gotosocial.org/ns#AnnounceAuthorization","https://gotosocial.org/ns#LikeApproval","https://gotosocial.org/ns#ReplyAuthorization","https://w3id.org/fep/044f#QuoteAuthorization","https://w3id.org/valueflows/ont/vf#Proposal","https://www.w3.org/ns/activitystreams#Activity","http://litepub.social/ns#EmojiReact","https://gotosocial.org/ns#AnnounceRequest","https://gotosocial.org/ns#LikeRequest","https://gotosocial.org/ns#ReplyRequest","https://w3id.org/fep/044f#QuoteRequest","https://www.w3.org/ns/activitystreams#Accept","https://www.w3.org/ns/activitystreams#TentativeAccept","https://www.w3.org/ns/activitystreams#Add","https://www.w3.org/ns/activitystreams#Announce","https://www.w3.org/ns/activitystreams#Create","https://www.w3.org/ns/activitystreams#Delete","https://www.w3.org/ns/activitystreams#Dislike","https://www.w3.org/ns/activitystreams#Flag","https://www.w3.org/ns/activitystreams#Follow","https://www.w3.org/ns/activitystreams#Ignore","https://www.w3.org/ns/activitystreams#Block","https://www.w3.org/ns/activitystreams#IntransitiveActivity","https://www.w3.org/ns/activitystreams#Arrive","https://www.w3.org/ns/activitystreams#Question","https://www.w3.org/ns/activitystreams#Travel","https://www.w3.org/ns/activitystreams#Join","https://www.w3.org/ns/activitystreams#Leave","https://www.w3.org/ns/activitystreams#Like","https://www.w3.org/ns/activitystreams#Listen","https://www.w3.org/ns/activitystreams#Move","https://www.w3.org/ns/activitystreams#Offer","https://www.w3.org/ns/activitystreams#Invite","https://www.w3.org/ns/activitystreams#Read","https://www.w3.org/ns/activitystreams#Reject","https://www.w3.org/ns/activitystreams#TentativeReject","https://www.w3.org/ns/activitystreams#Remove","https://www.w3.org/ns/activitystreams#Undo","https://www.w3.org/ns/activitystreams#Update","https://www.w3.org/ns/activitystreams#View","https://www.w3.org/ns/activitystreams#Application","https://www.w3.org/ns/activitystreams#Article","https://www.w3.org/ns/activitystreams#Collection","https://www.w3.org/ns/activitystreams#CollectionPage","https://www.w3.org/ns/activitystreams#OrderedCollectionPage","https://www.w3.org/ns/activitystreams#OrderedCollection","https://www.w3.org/ns/activitystreams#Document","https://www.w3.org/ns/activitystreams#Audio","https://www.w3.org/ns/activitystreams#Image","https://www.w3.org/ns/activitystreams#Page","https://www.w3.org/ns/activitystreams#Video","https://www.w3.org/ns/activitystreams#Event","https://www.w3.org/ns/activitystreams#Group","https://www.w3.org/ns/activitystreams#Note","https://www.w3.org/ns/activitystreams#Organization","https://www.w3.org/ns/activitystreams#Person","https://www.w3.org/ns/activitystreams#Place","https://www.w3.org/ns/activitystreams#Profile","https://www.w3.org/ns/activitystreams#Relationship","https://www.w3.org/ns/activitystreams#Service","https://www.w3.org/ns/activitystreams#Tombstone"].some( t => v["@type"].includes(t)) ? await Object.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& ["https://www.w3.org/ns/activitystreams#Link","https://www.w3.org/ns/activitystreams#Hashtag","https://www.w3.org/ns/activitystreams#Mention"].some( t => v["@type"].includes(t)) ? await Link.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("http://schema.org#PropertyValue") ? await PropertyValue.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ) : undefined ; if (typeof decoded === "undefined") continue; @@ -10641,23 +10641,23 @@ get urls(): ((URL | Link))[] { typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Application") ? await Application.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Group") ? await Group.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Organization") ? await Organization.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Person") ? await Person.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Service") ? await Service.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ) : undefined ; if (typeof decoded === "undefined") continue; @@ -10692,7 +10692,7 @@ get urls(): ((URL | Link))[] { const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _3ocC3VVi88cEd5sPWL8djkZsvTN6_audience.push(decoded); @@ -10752,12 +10752,12 @@ get urls(): ((URL | Link))[] { && Array.isArray(v["@type"])&& ["https://www.w3.org/ns/activitystreams#Object","http://joinmastodon.org/ns#Emoji","http://litepub.social/ns#ChatMessage","https://gotosocial.org/ns#AnnounceAuthorization","https://gotosocial.org/ns#LikeApproval","https://gotosocial.org/ns#ReplyAuthorization","https://w3id.org/fep/044f#QuoteAuthorization","https://w3id.org/valueflows/ont/vf#Proposal","https://www.w3.org/ns/activitystreams#Activity","http://litepub.social/ns#EmojiReact","https://gotosocial.org/ns#AnnounceRequest","https://gotosocial.org/ns#LikeRequest","https://gotosocial.org/ns#ReplyRequest","https://w3id.org/fep/044f#QuoteRequest","https://www.w3.org/ns/activitystreams#Accept","https://www.w3.org/ns/activitystreams#TentativeAccept","https://www.w3.org/ns/activitystreams#Add","https://www.w3.org/ns/activitystreams#Announce","https://www.w3.org/ns/activitystreams#Create","https://www.w3.org/ns/activitystreams#Delete","https://www.w3.org/ns/activitystreams#Dislike","https://www.w3.org/ns/activitystreams#Flag","https://www.w3.org/ns/activitystreams#Follow","https://www.w3.org/ns/activitystreams#Ignore","https://www.w3.org/ns/activitystreams#Block","https://www.w3.org/ns/activitystreams#IntransitiveActivity","https://www.w3.org/ns/activitystreams#Arrive","https://www.w3.org/ns/activitystreams#Question","https://www.w3.org/ns/activitystreams#Travel","https://www.w3.org/ns/activitystreams#Join","https://www.w3.org/ns/activitystreams#Leave","https://www.w3.org/ns/activitystreams#Like","https://www.w3.org/ns/activitystreams#Listen","https://www.w3.org/ns/activitystreams#Move","https://www.w3.org/ns/activitystreams#Offer","https://www.w3.org/ns/activitystreams#Invite","https://www.w3.org/ns/activitystreams#Read","https://www.w3.org/ns/activitystreams#Reject","https://www.w3.org/ns/activitystreams#TentativeReject","https://www.w3.org/ns/activitystreams#Remove","https://www.w3.org/ns/activitystreams#Undo","https://www.w3.org/ns/activitystreams#Update","https://www.w3.org/ns/activitystreams#View","https://www.w3.org/ns/activitystreams#Application","https://www.w3.org/ns/activitystreams#Article","https://www.w3.org/ns/activitystreams#Collection","https://www.w3.org/ns/activitystreams#CollectionPage","https://www.w3.org/ns/activitystreams#OrderedCollectionPage","https://www.w3.org/ns/activitystreams#OrderedCollection","https://www.w3.org/ns/activitystreams#Document","https://www.w3.org/ns/activitystreams#Audio","https://www.w3.org/ns/activitystreams#Image","https://www.w3.org/ns/activitystreams#Page","https://www.w3.org/ns/activitystreams#Video","https://www.w3.org/ns/activitystreams#Event","https://www.w3.org/ns/activitystreams#Group","https://www.w3.org/ns/activitystreams#Note","https://www.w3.org/ns/activitystreams#Organization","https://www.w3.org/ns/activitystreams#Person","https://www.w3.org/ns/activitystreams#Place","https://www.w3.org/ns/activitystreams#Profile","https://www.w3.org/ns/activitystreams#Relationship","https://www.w3.org/ns/activitystreams#Service","https://www.w3.org/ns/activitystreams#Tombstone"].some( t => v["@type"].includes(t)) ? await Object.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& ["https://www.w3.org/ns/activitystreams#Link","https://www.w3.org/ns/activitystreams#Hashtag","https://www.w3.org/ns/activitystreams#Mention"].some( t => v["@type"].includes(t)) ? await Link.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ) : undefined ; if (typeof decoded === "undefined") continue; @@ -10841,12 +10841,12 @@ get urls(): ((URL | Link))[] { && Array.isArray(v["@type"])&& ["https://www.w3.org/ns/activitystreams#Object","http://joinmastodon.org/ns#Emoji","http://litepub.social/ns#ChatMessage","https://gotosocial.org/ns#AnnounceAuthorization","https://gotosocial.org/ns#LikeApproval","https://gotosocial.org/ns#ReplyAuthorization","https://w3id.org/fep/044f#QuoteAuthorization","https://w3id.org/valueflows/ont/vf#Proposal","https://www.w3.org/ns/activitystreams#Activity","http://litepub.social/ns#EmojiReact","https://gotosocial.org/ns#AnnounceRequest","https://gotosocial.org/ns#LikeRequest","https://gotosocial.org/ns#ReplyRequest","https://w3id.org/fep/044f#QuoteRequest","https://www.w3.org/ns/activitystreams#Accept","https://www.w3.org/ns/activitystreams#TentativeAccept","https://www.w3.org/ns/activitystreams#Add","https://www.w3.org/ns/activitystreams#Announce","https://www.w3.org/ns/activitystreams#Create","https://www.w3.org/ns/activitystreams#Delete","https://www.w3.org/ns/activitystreams#Dislike","https://www.w3.org/ns/activitystreams#Flag","https://www.w3.org/ns/activitystreams#Follow","https://www.w3.org/ns/activitystreams#Ignore","https://www.w3.org/ns/activitystreams#Block","https://www.w3.org/ns/activitystreams#IntransitiveActivity","https://www.w3.org/ns/activitystreams#Arrive","https://www.w3.org/ns/activitystreams#Question","https://www.w3.org/ns/activitystreams#Travel","https://www.w3.org/ns/activitystreams#Join","https://www.w3.org/ns/activitystreams#Leave","https://www.w3.org/ns/activitystreams#Like","https://www.w3.org/ns/activitystreams#Listen","https://www.w3.org/ns/activitystreams#Move","https://www.w3.org/ns/activitystreams#Offer","https://www.w3.org/ns/activitystreams#Invite","https://www.w3.org/ns/activitystreams#Read","https://www.w3.org/ns/activitystreams#Reject","https://www.w3.org/ns/activitystreams#TentativeReject","https://www.w3.org/ns/activitystreams#Remove","https://www.w3.org/ns/activitystreams#Undo","https://www.w3.org/ns/activitystreams#Update","https://www.w3.org/ns/activitystreams#View","https://www.w3.org/ns/activitystreams#Application","https://www.w3.org/ns/activitystreams#Article","https://www.w3.org/ns/activitystreams#Collection","https://www.w3.org/ns/activitystreams#CollectionPage","https://www.w3.org/ns/activitystreams#OrderedCollectionPage","https://www.w3.org/ns/activitystreams#OrderedCollection","https://www.w3.org/ns/activitystreams#Document","https://www.w3.org/ns/activitystreams#Audio","https://www.w3.org/ns/activitystreams#Image","https://www.w3.org/ns/activitystreams#Page","https://www.w3.org/ns/activitystreams#Video","https://www.w3.org/ns/activitystreams#Event","https://www.w3.org/ns/activitystreams#Group","https://www.w3.org/ns/activitystreams#Note","https://www.w3.org/ns/activitystreams#Organization","https://www.w3.org/ns/activitystreams#Person","https://www.w3.org/ns/activitystreams#Place","https://www.w3.org/ns/activitystreams#Profile","https://www.w3.org/ns/activitystreams#Relationship","https://www.w3.org/ns/activitystreams#Service","https://www.w3.org/ns/activitystreams#Tombstone"].some( t => v["@type"].includes(t)) ? await Object.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& ["https://www.w3.org/ns/activitystreams#Link","https://www.w3.org/ns/activitystreams#Hashtag","https://www.w3.org/ns/activitystreams#Mention"].some( t => v["@type"].includes(t)) ? await Link.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ) : undefined ; if (typeof decoded === "undefined") continue; @@ -10877,7 +10877,7 @@ get urls(): ((URL | Link))[] { documentLoader: options.documentLoader, contextLoader: options.contextLoader, tracerProvider: options.tracerProvider, - baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)), + baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])), }); if (_result instanceof Error) throw _result; if (_result !== undefined) { @@ -10903,7 +10903,7 @@ get urls(): ((URL | Link))[] { const decoded = await Image.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _33CjRLy5ujtsUrwRSCrsggvGdKuR_icon.push(decoded); @@ -10932,7 +10932,7 @@ get urls(): ((URL | Link))[] { documentLoader: options.documentLoader, contextLoader: options.contextLoader, tracerProvider: options.tracerProvider, - baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)), + baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])), }); if (_result instanceof Error) throw _result; if (_result !== undefined) { @@ -10958,7 +10958,7 @@ get urls(): ((URL | Link))[] { const decoded = await Image.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _3dXrUdkARxwyJLtJcYi1AJ92H41U_image.push(decoded); @@ -10994,12 +10994,12 @@ get urls(): ((URL | Link))[] { && Array.isArray(v["@type"])&& ["https://www.w3.org/ns/activitystreams#Object","http://joinmastodon.org/ns#Emoji","http://litepub.social/ns#ChatMessage","https://gotosocial.org/ns#AnnounceAuthorization","https://gotosocial.org/ns#LikeApproval","https://gotosocial.org/ns#ReplyAuthorization","https://w3id.org/fep/044f#QuoteAuthorization","https://w3id.org/valueflows/ont/vf#Proposal","https://www.w3.org/ns/activitystreams#Activity","http://litepub.social/ns#EmojiReact","https://gotosocial.org/ns#AnnounceRequest","https://gotosocial.org/ns#LikeRequest","https://gotosocial.org/ns#ReplyRequest","https://w3id.org/fep/044f#QuoteRequest","https://www.w3.org/ns/activitystreams#Accept","https://www.w3.org/ns/activitystreams#TentativeAccept","https://www.w3.org/ns/activitystreams#Add","https://www.w3.org/ns/activitystreams#Announce","https://www.w3.org/ns/activitystreams#Create","https://www.w3.org/ns/activitystreams#Delete","https://www.w3.org/ns/activitystreams#Dislike","https://www.w3.org/ns/activitystreams#Flag","https://www.w3.org/ns/activitystreams#Follow","https://www.w3.org/ns/activitystreams#Ignore","https://www.w3.org/ns/activitystreams#Block","https://www.w3.org/ns/activitystreams#IntransitiveActivity","https://www.w3.org/ns/activitystreams#Arrive","https://www.w3.org/ns/activitystreams#Question","https://www.w3.org/ns/activitystreams#Travel","https://www.w3.org/ns/activitystreams#Join","https://www.w3.org/ns/activitystreams#Leave","https://www.w3.org/ns/activitystreams#Like","https://www.w3.org/ns/activitystreams#Listen","https://www.w3.org/ns/activitystreams#Move","https://www.w3.org/ns/activitystreams#Offer","https://www.w3.org/ns/activitystreams#Invite","https://www.w3.org/ns/activitystreams#Read","https://www.w3.org/ns/activitystreams#Reject","https://www.w3.org/ns/activitystreams#TentativeReject","https://www.w3.org/ns/activitystreams#Remove","https://www.w3.org/ns/activitystreams#Undo","https://www.w3.org/ns/activitystreams#Update","https://www.w3.org/ns/activitystreams#View","https://www.w3.org/ns/activitystreams#Application","https://www.w3.org/ns/activitystreams#Article","https://www.w3.org/ns/activitystreams#Collection","https://www.w3.org/ns/activitystreams#CollectionPage","https://www.w3.org/ns/activitystreams#OrderedCollectionPage","https://www.w3.org/ns/activitystreams#OrderedCollection","https://www.w3.org/ns/activitystreams#Document","https://www.w3.org/ns/activitystreams#Audio","https://www.w3.org/ns/activitystreams#Image","https://www.w3.org/ns/activitystreams#Page","https://www.w3.org/ns/activitystreams#Video","https://www.w3.org/ns/activitystreams#Event","https://www.w3.org/ns/activitystreams#Group","https://www.w3.org/ns/activitystreams#Note","https://www.w3.org/ns/activitystreams#Organization","https://www.w3.org/ns/activitystreams#Person","https://www.w3.org/ns/activitystreams#Place","https://www.w3.org/ns/activitystreams#Profile","https://www.w3.org/ns/activitystreams#Relationship","https://www.w3.org/ns/activitystreams#Service","https://www.w3.org/ns/activitystreams#Tombstone"].some( t => v["@type"].includes(t)) ? await Object.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& ["https://www.w3.org/ns/activitystreams#Link","https://www.w3.org/ns/activitystreams#Hashtag","https://www.w3.org/ns/activitystreams#Mention"].some( t => v["@type"].includes(t)) ? await Link.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ) : undefined ; if (typeof decoded === "undefined") continue; @@ -11037,12 +11037,12 @@ get urls(): ((URL | Link))[] { && Array.isArray(v["@type"])&& ["https://www.w3.org/ns/activitystreams#Object","http://joinmastodon.org/ns#Emoji","http://litepub.social/ns#ChatMessage","https://gotosocial.org/ns#AnnounceAuthorization","https://gotosocial.org/ns#LikeApproval","https://gotosocial.org/ns#ReplyAuthorization","https://w3id.org/fep/044f#QuoteAuthorization","https://w3id.org/valueflows/ont/vf#Proposal","https://www.w3.org/ns/activitystreams#Activity","http://litepub.social/ns#EmojiReact","https://gotosocial.org/ns#AnnounceRequest","https://gotosocial.org/ns#LikeRequest","https://gotosocial.org/ns#ReplyRequest","https://w3id.org/fep/044f#QuoteRequest","https://www.w3.org/ns/activitystreams#Accept","https://www.w3.org/ns/activitystreams#TentativeAccept","https://www.w3.org/ns/activitystreams#Add","https://www.w3.org/ns/activitystreams#Announce","https://www.w3.org/ns/activitystreams#Create","https://www.w3.org/ns/activitystreams#Delete","https://www.w3.org/ns/activitystreams#Dislike","https://www.w3.org/ns/activitystreams#Flag","https://www.w3.org/ns/activitystreams#Follow","https://www.w3.org/ns/activitystreams#Ignore","https://www.w3.org/ns/activitystreams#Block","https://www.w3.org/ns/activitystreams#IntransitiveActivity","https://www.w3.org/ns/activitystreams#Arrive","https://www.w3.org/ns/activitystreams#Question","https://www.w3.org/ns/activitystreams#Travel","https://www.w3.org/ns/activitystreams#Join","https://www.w3.org/ns/activitystreams#Leave","https://www.w3.org/ns/activitystreams#Like","https://www.w3.org/ns/activitystreams#Listen","https://www.w3.org/ns/activitystreams#Move","https://www.w3.org/ns/activitystreams#Offer","https://www.w3.org/ns/activitystreams#Invite","https://www.w3.org/ns/activitystreams#Read","https://www.w3.org/ns/activitystreams#Reject","https://www.w3.org/ns/activitystreams#TentativeReject","https://www.w3.org/ns/activitystreams#Remove","https://www.w3.org/ns/activitystreams#Undo","https://www.w3.org/ns/activitystreams#Update","https://www.w3.org/ns/activitystreams#View","https://www.w3.org/ns/activitystreams#Application","https://www.w3.org/ns/activitystreams#Article","https://www.w3.org/ns/activitystreams#Collection","https://www.w3.org/ns/activitystreams#CollectionPage","https://www.w3.org/ns/activitystreams#OrderedCollectionPage","https://www.w3.org/ns/activitystreams#OrderedCollection","https://www.w3.org/ns/activitystreams#Document","https://www.w3.org/ns/activitystreams#Audio","https://www.w3.org/ns/activitystreams#Image","https://www.w3.org/ns/activitystreams#Page","https://www.w3.org/ns/activitystreams#Video","https://www.w3.org/ns/activitystreams#Event","https://www.w3.org/ns/activitystreams#Group","https://www.w3.org/ns/activitystreams#Note","https://www.w3.org/ns/activitystreams#Organization","https://www.w3.org/ns/activitystreams#Person","https://www.w3.org/ns/activitystreams#Place","https://www.w3.org/ns/activitystreams#Profile","https://www.w3.org/ns/activitystreams#Relationship","https://www.w3.org/ns/activitystreams#Service","https://www.w3.org/ns/activitystreams#Tombstone"].some( t => v["@type"].includes(t)) ? await Object.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& ["https://www.w3.org/ns/activitystreams#Link","https://www.w3.org/ns/activitystreams#Hashtag","https://www.w3.org/ns/activitystreams#Mention"].some( t => v["@type"].includes(t)) ? await Link.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ) : undefined ; if (typeof decoded === "undefined") continue; @@ -11080,12 +11080,12 @@ get urls(): ((URL | Link))[] { && Array.isArray(v["@type"])&& ["https://www.w3.org/ns/activitystreams#Link","https://www.w3.org/ns/activitystreams#Hashtag","https://www.w3.org/ns/activitystreams#Mention"].some( t => v["@type"].includes(t)) ? await Link.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& ["https://www.w3.org/ns/activitystreams#Object","http://joinmastodon.org/ns#Emoji","http://litepub.social/ns#ChatMessage","https://gotosocial.org/ns#AnnounceAuthorization","https://gotosocial.org/ns#LikeApproval","https://gotosocial.org/ns#ReplyAuthorization","https://w3id.org/fep/044f#QuoteAuthorization","https://w3id.org/valueflows/ont/vf#Proposal","https://www.w3.org/ns/activitystreams#Activity","http://litepub.social/ns#EmojiReact","https://gotosocial.org/ns#AnnounceRequest","https://gotosocial.org/ns#LikeRequest","https://gotosocial.org/ns#ReplyRequest","https://w3id.org/fep/044f#QuoteRequest","https://www.w3.org/ns/activitystreams#Accept","https://www.w3.org/ns/activitystreams#TentativeAccept","https://www.w3.org/ns/activitystreams#Add","https://www.w3.org/ns/activitystreams#Announce","https://www.w3.org/ns/activitystreams#Create","https://www.w3.org/ns/activitystreams#Delete","https://www.w3.org/ns/activitystreams#Dislike","https://www.w3.org/ns/activitystreams#Flag","https://www.w3.org/ns/activitystreams#Follow","https://www.w3.org/ns/activitystreams#Ignore","https://www.w3.org/ns/activitystreams#Block","https://www.w3.org/ns/activitystreams#IntransitiveActivity","https://www.w3.org/ns/activitystreams#Arrive","https://www.w3.org/ns/activitystreams#Question","https://www.w3.org/ns/activitystreams#Travel","https://www.w3.org/ns/activitystreams#Join","https://www.w3.org/ns/activitystreams#Leave","https://www.w3.org/ns/activitystreams#Like","https://www.w3.org/ns/activitystreams#Listen","https://www.w3.org/ns/activitystreams#Move","https://www.w3.org/ns/activitystreams#Offer","https://www.w3.org/ns/activitystreams#Invite","https://www.w3.org/ns/activitystreams#Read","https://www.w3.org/ns/activitystreams#Reject","https://www.w3.org/ns/activitystreams#TentativeReject","https://www.w3.org/ns/activitystreams#Remove","https://www.w3.org/ns/activitystreams#Undo","https://www.w3.org/ns/activitystreams#Update","https://www.w3.org/ns/activitystreams#View","https://www.w3.org/ns/activitystreams#Application","https://www.w3.org/ns/activitystreams#Article","https://www.w3.org/ns/activitystreams#Collection","https://www.w3.org/ns/activitystreams#CollectionPage","https://www.w3.org/ns/activitystreams#OrderedCollectionPage","https://www.w3.org/ns/activitystreams#OrderedCollection","https://www.w3.org/ns/activitystreams#Document","https://www.w3.org/ns/activitystreams#Audio","https://www.w3.org/ns/activitystreams#Image","https://www.w3.org/ns/activitystreams#Page","https://www.w3.org/ns/activitystreams#Video","https://www.w3.org/ns/activitystreams#Event","https://www.w3.org/ns/activitystreams#Group","https://www.w3.org/ns/activitystreams#Note","https://www.w3.org/ns/activitystreams#Organization","https://www.w3.org/ns/activitystreams#Person","https://www.w3.org/ns/activitystreams#Place","https://www.w3.org/ns/activitystreams#Profile","https://www.w3.org/ns/activitystreams#Relationship","https://www.w3.org/ns/activitystreams#Service","https://www.w3.org/ns/activitystreams#Tombstone"].some( t => v["@type"].includes(t)) ? await Object.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ) : undefined ; if (typeof decoded === "undefined") continue; @@ -11142,7 +11142,7 @@ get urls(): ((URL | Link))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _7UpwM3JWcXhADcscukEehBorf6k_replies.push(decoded); @@ -11175,7 +11175,7 @@ get urls(): ((URL | Link))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _3kAfck9PcEYt2L7xug5y99YPbANs_shares.push(decoded); @@ -11208,7 +11208,7 @@ get urls(): ((URL | Link))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _S3ceDnpMdzoTRCccB9FkJWrEzYW_likes.push(decoded); @@ -11241,7 +11241,7 @@ get urls(): ((URL | Link))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _kMatyyNAuxoTD8GQMBfA5ogThMR_emojiReactions.push(decoded); @@ -11323,12 +11323,12 @@ get urls(): ((URL | Link))[] { && Array.isArray(v["@type"])&& ["https://www.w3.org/ns/activitystreams#Object","http://joinmastodon.org/ns#Emoji","http://litepub.social/ns#ChatMessage","https://gotosocial.org/ns#AnnounceAuthorization","https://gotosocial.org/ns#LikeApproval","https://gotosocial.org/ns#ReplyAuthorization","https://w3id.org/fep/044f#QuoteAuthorization","https://w3id.org/valueflows/ont/vf#Proposal","https://www.w3.org/ns/activitystreams#Activity","http://litepub.social/ns#EmojiReact","https://gotosocial.org/ns#AnnounceRequest","https://gotosocial.org/ns#LikeRequest","https://gotosocial.org/ns#ReplyRequest","https://w3id.org/fep/044f#QuoteRequest","https://www.w3.org/ns/activitystreams#Accept","https://www.w3.org/ns/activitystreams#TentativeAccept","https://www.w3.org/ns/activitystreams#Add","https://www.w3.org/ns/activitystreams#Announce","https://www.w3.org/ns/activitystreams#Create","https://www.w3.org/ns/activitystreams#Delete","https://www.w3.org/ns/activitystreams#Dislike","https://www.w3.org/ns/activitystreams#Flag","https://www.w3.org/ns/activitystreams#Follow","https://www.w3.org/ns/activitystreams#Ignore","https://www.w3.org/ns/activitystreams#Block","https://www.w3.org/ns/activitystreams#IntransitiveActivity","https://www.w3.org/ns/activitystreams#Arrive","https://www.w3.org/ns/activitystreams#Question","https://www.w3.org/ns/activitystreams#Travel","https://www.w3.org/ns/activitystreams#Join","https://www.w3.org/ns/activitystreams#Leave","https://www.w3.org/ns/activitystreams#Like","https://www.w3.org/ns/activitystreams#Listen","https://www.w3.org/ns/activitystreams#Move","https://www.w3.org/ns/activitystreams#Offer","https://www.w3.org/ns/activitystreams#Invite","https://www.w3.org/ns/activitystreams#Read","https://www.w3.org/ns/activitystreams#Reject","https://www.w3.org/ns/activitystreams#TentativeReject","https://www.w3.org/ns/activitystreams#Remove","https://www.w3.org/ns/activitystreams#Undo","https://www.w3.org/ns/activitystreams#Update","https://www.w3.org/ns/activitystreams#View","https://www.w3.org/ns/activitystreams#Application","https://www.w3.org/ns/activitystreams#Article","https://www.w3.org/ns/activitystreams#Collection","https://www.w3.org/ns/activitystreams#CollectionPage","https://www.w3.org/ns/activitystreams#OrderedCollectionPage","https://www.w3.org/ns/activitystreams#OrderedCollection","https://www.w3.org/ns/activitystreams#Document","https://www.w3.org/ns/activitystreams#Audio","https://www.w3.org/ns/activitystreams#Image","https://www.w3.org/ns/activitystreams#Page","https://www.w3.org/ns/activitystreams#Video","https://www.w3.org/ns/activitystreams#Event","https://www.w3.org/ns/activitystreams#Group","https://www.w3.org/ns/activitystreams#Note","https://www.w3.org/ns/activitystreams#Organization","https://www.w3.org/ns/activitystreams#Person","https://www.w3.org/ns/activitystreams#Place","https://www.w3.org/ns/activitystreams#Profile","https://www.w3.org/ns/activitystreams#Relationship","https://www.w3.org/ns/activitystreams#Service","https://www.w3.org/ns/activitystreams#Tombstone"].some( t => v["@type"].includes(t)) ? await Object.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& ["https://www.w3.org/ns/activitystreams#Link","https://www.w3.org/ns/activitystreams#Hashtag","https://www.w3.org/ns/activitystreams#Mention"].some( t => v["@type"].includes(t)) ? await Link.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ) : undefined ; if (typeof decoded === "undefined") continue; @@ -11387,13 +11387,13 @@ get urls(): ((URL | Link))[] { : "" ) ) - : URL.canParse(v["@id"]) && (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) + : URL.canParse(v["@id"]) && (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) ? new URL(v["@id"]) - : new URL(v["@id"], (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl))) : typeof v === "object" && "@type" in v + : new URL(v["@id"], (values["@id"] == null ? options.baseUrl : new URL(values["@id"]))) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& ["https://www.w3.org/ns/activitystreams#Link","https://www.w3.org/ns/activitystreams#Hashtag","https://www.w3.org/ns/activitystreams#Mention"].some( t => v["@type"].includes(t)) ? await Link.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ) : undefined ; if (typeof decoded === "undefined") continue; @@ -11428,7 +11428,7 @@ get urls(): ((URL | Link))[] { const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _3hFbw7DTpHhq3cvVhkY8njhcsXbd_to.push(decoded); @@ -11461,7 +11461,7 @@ get urls(): ((URL | Link))[] { const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _aLZupjwL8XB7tzdLgCMXdjZ6qej_bto.push(decoded); @@ -11494,7 +11494,7 @@ get urls(): ((URL | Link))[] { const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _42a1SvBs24QSLzKcfjCyNTjW5a1g_cc.push(decoded); @@ -11527,7 +11527,7 @@ get urls(): ((URL | Link))[] { const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _3qvegKUB8YLgTXRpEf8E6JZSkz2H_bcc.push(decoded); @@ -11602,7 +11602,7 @@ get urls(): ((URL | Link))[] { const decoded = await Source.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _2ZwCFoS787v8y8bXKjMoE6MAbrEB_source.push(decoded); @@ -11635,7 +11635,7 @@ get urls(): ((URL | Link))[] { const decoded = await DataIntegrityProof.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _42rPnotok1ivQ2RNCKNbeFJgx8b8_proof.push(decoded); @@ -11656,7 +11656,7 @@ get urls(): ((URL | Link))[] { const decoded = await InteractionPolicy.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _2MHQfh2N74MMmDLDqYWFo7TxYQK2_interactionPolicy.push(decoded); @@ -11688,9 +11688,9 @@ get urls(): ((URL | Link))[] { : "" ) ) - : URL.canParse(v["@id"]) && (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) + : URL.canParse(v["@id"]) && (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) ? new URL(v["@id"]) - : new URL(v["@id"], (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl))); + : new URL(v["@id"], (values["@id"] == null ? options.baseUrl : new URL(values["@id"]))); if (typeof decoded === "undefined") continue; _23YiVs2miQcEiUdn4u8SvjQKWYim_approvedBy.push(decoded); } @@ -11722,7 +11722,7 @@ get urls(): ((URL | Link))[] { const decoded = await LikeAuthorization.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _3fCeb5aXaDDd4fvkQ96BLWifBUBa_likeAuthorization.push(decoded); @@ -11755,7 +11755,7 @@ get urls(): ((URL | Link))[] { const decoded = await ReplyAuthorization.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _YA4wdUW7rYztAQ6SjhMnJCmcmtP_replyAuthorization.push(decoded); @@ -11788,7 +11788,7 @@ get urls(): ((URL | Link))[] { const decoded = await AnnounceAuthorization.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _446xEaDBs3Fz6MyzP3PSBaLupkbJ_announceAuthorization.push(decoded); @@ -12966,7 +12966,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { + if (options.baseUrl == null && values["@id"] != null) { options = { ...options, baseUrl: new URL(values["@id"]) }; } @@ -13968,7 +13968,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { + if (options.baseUrl == null && values["@id"] != null) { options = { ...options, baseUrl: new URL(values["@id"]) }; } @@ -14019,7 +14019,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote.push(decoded); @@ -14078,7 +14078,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await QuoteAuthorization.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization.push(decoded); @@ -17001,7 +17001,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { + if (options.baseUrl == null && values["@id"] != null) { options = { ...options, baseUrl: new URL(values["@id"]) }; } @@ -17190,23 +17190,23 @@ instruments?: (Object | URL)[];} typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Application") ? await Application.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Group") ? await Group.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Organization") ? await Organization.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Person") ? await Person.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Service") ? await Service.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ) : undefined ; if (typeof decoded === "undefined") continue; @@ -17241,7 +17241,7 @@ instruments?: (Object | URL)[];} const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _2MH19yxjn1wnHsNfa5n4JBhJzxyc_object.push(decoded); @@ -17274,7 +17274,7 @@ instruments?: (Object | URL)[];} const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _3JQCmF2Ww56Ag9EWRYoSZRDNCYtF_target.push(decoded); @@ -17307,7 +17307,7 @@ instruments?: (Object | URL)[];} const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _u4QGFbRFcYmPEKGbPv1hpBR9r5G_result.push(decoded); @@ -17340,7 +17340,7 @@ instruments?: (Object | URL)[];} const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _25zu2s3VxVujgEKqrDycjE284XQR_origin.push(decoded); @@ -17373,7 +17373,7 @@ instruments?: (Object | URL)[];} const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _3c5t2x7DYRo2shwTxpkd4kYSS5WQ_instrument.push(decoded); @@ -17844,7 +17844,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { + if (options.baseUrl == null && values["@id"] != null) { options = { ...options, baseUrl: new URL(values["@id"]) }; } @@ -18347,7 +18347,7 @@ name?: string | LanguageString | null;value?: string | LanguageString | null;} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { + if (options.baseUrl == null && values["@id"] != null) { options = { ...options, baseUrl: new URL(values["@id"]) }; } @@ -18933,7 +18933,7 @@ unit?: string | null;numericalValue?: Decimal | null;} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { + if (options.baseUrl == null && values["@id"] != null) { options = { ...options, baseUrl: new URL(values["@id"]) }; } @@ -19928,7 +19928,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { + if (options.baseUrl == null && values["@id"] != null) { options = { ...options, baseUrl: new URL(values["@id"]) }; } @@ -19979,7 +19979,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject.push(decoded); @@ -20012,7 +20012,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget.push(decoded); @@ -20377,7 +20377,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { + if (options.baseUrl == null && values["@id"] != null) { options = { ...options, baseUrl: new URL(values["@id"]) }; } @@ -20968,7 +20968,7 @@ canLike?: InteractionRule | null;canReply?: InteractionRule | null;canAnnounce?: // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { + if (options.baseUrl == null && values["@id"] != null) { options = { ...options, baseUrl: new URL(values["@id"]) }; } @@ -21002,7 +21002,7 @@ canLike?: InteractionRule | null;canReply?: InteractionRule | null;canAnnounce?: const decoded = await InteractionRule.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _3JkwVLb3BNCwCWdsb5RftGAg8vyT_canLike.push(decoded); @@ -21023,7 +21023,7 @@ canLike?: InteractionRule | null;canReply?: InteractionRule | null;canAnnounce?: const decoded = await InteractionRule.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _2UBgLRi5p3DRGGvWyB227i4Qjhzd_canReply.push(decoded); @@ -21044,7 +21044,7 @@ canLike?: InteractionRule | null;canReply?: InteractionRule | null;canAnnounce?: const decoded = await InteractionRule.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _fu5nmoAj528fBQfnxhY9Daok3Vi_canAnnounce.push(decoded); @@ -21065,7 +21065,7 @@ canLike?: InteractionRule | null;canReply?: InteractionRule | null;canAnnounce?: const decoded = await InteractionRule.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _LE3zBTVacTZw2LSyLt4wVUkXeUy_canQuote.push(decoded); @@ -21716,7 +21716,7 @@ get manualApprovals(): (URL)[] { // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { + if (options.baseUrl == null && values["@id"] != null) { options = { ...options, baseUrl: new URL(values["@id"]) }; } @@ -21761,9 +21761,9 @@ get manualApprovals(): (URL)[] { : "" ) ) - : URL.canParse(v["@id"]) && (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) + : URL.canParse(v["@id"]) && (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) ? new URL(v["@id"]) - : new URL(v["@id"], (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl))); + : new URL(v["@id"], (values["@id"] == null ? options.baseUrl : new URL(values["@id"]))); if (typeof decoded === "undefined") continue; _2rFyCF14HoyNjitj9PmCzek5iSsg_automaticApproval.push(decoded); } @@ -21794,9 +21794,9 @@ get manualApprovals(): (URL)[] { : "" ) ) - : URL.canParse(v["@id"]) && (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) + : URL.canParse(v["@id"]) && (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) ? new URL(v["@id"]) - : new URL(v["@id"], (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl))); + : new URL(v["@id"], (values["@id"] == null ? options.baseUrl : new URL(values["@id"]))); if (typeof decoded === "undefined") continue; _sxj8y5XMMMBWUnRYFw85MKedCMj_manualApproval.push(decoded); } @@ -22752,7 +22752,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { + if (options.baseUrl == null && values["@id"] != null) { options = { ...options, baseUrl: new URL(values["@id"]) }; } @@ -22803,7 +22803,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject.push(decoded); @@ -22836,7 +22836,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget.push(decoded); @@ -23200,7 +23200,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { + if (options.baseUrl == null && values["@id"] != null) { options = { ...options, baseUrl: new URL(values["@id"]) }; } @@ -24108,7 +24108,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { + if (options.baseUrl == null && values["@id"] != null) { options = { ...options, baseUrl: new URL(values["@id"]) }; } @@ -24159,7 +24159,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject.push(decoded); @@ -24192,7 +24192,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget.push(decoded); @@ -24556,7 +24556,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { + if (options.baseUrl == null && values["@id"] != null) { options = { ...options, baseUrl: new URL(values["@id"]) }; } @@ -25463,7 +25463,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { + if (options.baseUrl == null && values["@id"] != null) { options = { ...options, baseUrl: new URL(values["@id"]) }; } @@ -25514,7 +25514,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject.push(decoded); @@ -25547,7 +25547,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget.push(decoded); @@ -25911,7 +25911,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { + if (options.baseUrl == null && values["@id"] != null) { options = { ...options, baseUrl: new URL(values["@id"]) }; } @@ -26356,7 +26356,7 @@ get endpoints(): (URL)[] { // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { + if (options.baseUrl == null && values["@id"] != null) { options = { ...options, baseUrl: new URL(values["@id"]) }; } @@ -26405,9 +26405,9 @@ get endpoints(): (URL)[] { : "" ) ) - : URL.canParse(v["@id"]) && (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) + : URL.canParse(v["@id"]) && (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) ? new URL(v["@id"]) - : new URL(v["@id"], (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl))); + : new URL(v["@id"], (values["@id"] == null ? options.baseUrl : new URL(values["@id"]))); if (typeof decoded === "undefined") continue; _2KM4fetG6FTJ1cphj76rzJ8Dyv7p_serviceEndpoint.push(decoded); } @@ -26709,7 +26709,7 @@ endpoints?: (URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { + if (options.baseUrl == null && values["@id"] != null) { options = { ...options, baseUrl: new URL(values["@id"]) }; } @@ -27527,7 +27527,7 @@ cryptosuite?: "eddsa-jcs-2022" | null;verificationMethod?: Multikey | URL | null // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { + if (options.baseUrl == null && values["@id"] != null) { options = { ...options, baseUrl: new URL(values["@id"]) }; } @@ -27591,7 +27591,7 @@ cryptosuite?: "eddsa-jcs-2022" | null;verificationMethod?: Multikey | URL | null const decoded = await Multikey.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _2mHVKxqA7zncjveJrDEo3pWpMZqg_verificationMethod.push(decoded); @@ -28494,7 +28494,7 @@ owner?: Application | Group | Organization | Person | Service | URL | null;publi // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { + if (options.baseUrl == null && values["@id"] != null) { options = { ...options, baseUrl: new URL(values["@id"]) }; } @@ -28542,23 +28542,23 @@ owner?: Application | Group | Organization | Person | Service | URL | null;publi typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Application") ? await Application.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Group") ? await Group.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Organization") ? await Organization.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Person") ? await Person.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Service") ? await Service.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ) : undefined ; if (typeof decoded === "undefined") continue; @@ -29374,7 +29374,7 @@ controller?: Application | Group | Organization | Person | Service | URL | null; // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { + if (options.baseUrl == null && values["@id"] != null) { options = { ...options, baseUrl: new URL(values["@id"]) }; } @@ -29422,23 +29422,23 @@ controller?: Application | Group | Organization | Person | Service | URL | null; typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Application") ? await Application.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Group") ? await Group.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Organization") ? await Organization.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Person") ? await Person.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Service") ? await Service.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ) : undefined ; if (typeof decoded === "undefined") continue; @@ -30209,7 +30209,7 @@ action?: string | null;resourceConformsTo?: URL | null;resourceQuantity?: Measur // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { + if (options.baseUrl == null && values["@id"] != null) { options = { ...options, baseUrl: new URL(values["@id"]) }; } @@ -30272,9 +30272,9 @@ action?: string | null;resourceConformsTo?: URL | null;resourceQuantity?: Measur : "" ) ) - : URL.canParse(v["@id"]) && (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) + : URL.canParse(v["@id"]) && (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) ? new URL(v["@id"]) - : new URL(v["@id"], (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl))); + : new URL(v["@id"], (values["@id"] == null ? options.baseUrl : new URL(values["@id"]))); if (typeof decoded === "undefined") continue; _BBAeMUUQDwBQn6cvu3P2Csd6b6h_resourceConformsTo.push(decoded); } @@ -30294,7 +30294,7 @@ action?: string | null;resourceConformsTo?: URL | null;resourceQuantity?: Measur const decoded = await Measure.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _2dLfqTbbRiggEcMQWbHpxkQrtmrc_resourceQuantity.push(decoded); @@ -30315,7 +30315,7 @@ action?: string | null;resourceConformsTo?: URL | null;resourceQuantity?: Measur const decoded = await Measure.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _YmNSnuih3Zk4VdR5JPVnQYroLAh_availableQuantity.push(decoded); @@ -30336,7 +30336,7 @@ action?: string | null;resourceConformsTo?: URL | null;resourceQuantity?: Measur const decoded = await Measure.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _3XueAFds2NBrqNpnV8b7aC8hV72S_minimumQuantity.push(decoded); @@ -31081,7 +31081,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { + if (options.baseUrl == null && values["@id"] != null) { options = { ...options, baseUrl: new URL(values["@id"]) }; } @@ -31138,7 +31138,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Intent.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _sS5LvXX8cn4c3x6ux836AwYbTyJ_publishes.push(decoded); @@ -31159,7 +31159,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Intent.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _Z4ntJgFwR9BaNTbFvkRTGNEwUwy_reciprocal.push(decoded); @@ -31574,7 +31574,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { + if (options.baseUrl == null && values["@id"] != null) { options = { ...options, baseUrl: new URL(values["@id"]) }; } @@ -31914,7 +31914,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { + if (options.baseUrl == null && values["@id"] != null) { options = { ...options, baseUrl: new URL(values["@id"]) }; } @@ -32249,7 +32249,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { + if (options.baseUrl == null && values["@id"] != null) { options = { ...options, baseUrl: new URL(values["@id"]) }; } @@ -37796,7 +37796,7 @@ get preferredUsernames(): ((string | LanguageString))[] { // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { + if (options.baseUrl == null && values["@id"] != null) { options = { ...options, baseUrl: new URL(values["@id"]) }; } @@ -37871,7 +37871,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await CryptographicKey.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _axq166E2eZADq34V4MYUc8KMZdC_publicKey.push(decoded); @@ -37904,7 +37904,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Multikey.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.push(decoded); @@ -37957,11 +37957,11 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#OrderedCollection") ? await OrderedCollection.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#OrderedCollectionPage") ? await OrderedCollectionPage.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ) : undefined ; if (typeof decoded === "undefined") continue; @@ -37998,11 +37998,11 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#OrderedCollection") ? await OrderedCollection.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#OrderedCollectionPage") ? await OrderedCollectionPage.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ) : undefined ; if (typeof decoded === "undefined") continue; @@ -38037,7 +38037,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _3yAv8jymNfNuJUDuBzJ1NQhdbAee_following.push(decoded); @@ -38070,7 +38070,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _BBCTgfphhsFzpVfKTykGSpBNwoA_followers.push(decoded); @@ -38103,7 +38103,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _3bgkPwJanyTCoVFM9ovRcus8tKkU_liked.push(decoded); @@ -38136,7 +38136,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _4N1vBJzXDf8NbBumeECQMFvKetja_featured.push(decoded); @@ -38169,7 +38169,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags.push(decoded); @@ -38202,7 +38202,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.push(decoded); @@ -38223,7 +38223,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Endpoints.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints.push(decoded); @@ -38330,23 +38330,23 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Application") ? await Application.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Group") ? await Group.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Organization") ? await Organization.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Person") ? await Person.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Service") ? await Service.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ) : undefined ; if (typeof decoded === "undefined") continue; @@ -38383,23 +38383,23 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Application") ? await Application.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Group") ? await Group.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Organization") ? await Organization.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Person") ? await Person.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Service") ? await Service.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ) : undefined ; if (typeof decoded === "undefined") continue; @@ -38434,7 +38434,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await DidService.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.push(decoded); @@ -39259,7 +39259,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { + if (options.baseUrl == null && values["@id"] != null) { options = { ...options, baseUrl: new URL(values["@id"]) }; } @@ -39606,7 +39606,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { + if (options.baseUrl == null && values["@id"] != null) { options = { ...options, baseUrl: new URL(values["@id"]) }; } @@ -40603,7 +40603,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { + if (options.baseUrl == null && values["@id"] != null) { options = { ...options, baseUrl: new URL(values["@id"]) }; } @@ -40654,7 +40654,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote.push(decoded); @@ -40713,7 +40713,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await QuoteAuthorization.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization.push(decoded); @@ -41244,7 +41244,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { + if (options.baseUrl == null && values["@id"] != null) { options = { ...options, baseUrl: new URL(values["@id"]) }; } @@ -41673,7 +41673,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { + if (options.baseUrl == null && values["@id"] != null) { options = { ...options, baseUrl: new URL(values["@id"]) }; } @@ -42007,7 +42007,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { + if (options.baseUrl == null && values["@id"] != null) { options = { ...options, baseUrl: new URL(values["@id"]) }; } @@ -42347,7 +42347,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { + if (options.baseUrl == null && values["@id"] != null) { options = { ...options, baseUrl: new URL(values["@id"]) }; } @@ -46170,7 +46170,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { + if (options.baseUrl == null && values["@id"] != null) { options = { ...options, baseUrl: new URL(values["@id"]) }; } @@ -46251,7 +46251,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await CollectionPage.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _3UyUdxnyn6cDn53QKrh4MBiearma_current.push(decoded); @@ -46284,7 +46284,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await CollectionPage.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _J52RqweMe6hhv7RnLJMC8BExTE5_first.push(decoded); @@ -46317,7 +46317,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await CollectionPage.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _gyJJnyEFnuNVi1HFZKfAn3Hfn26_last.push(decoded); @@ -46353,12 +46353,12 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu && Array.isArray(v["@type"])&& ["https://www.w3.org/ns/activitystreams#Object","http://joinmastodon.org/ns#Emoji","http://litepub.social/ns#ChatMessage","https://gotosocial.org/ns#AnnounceAuthorization","https://gotosocial.org/ns#LikeApproval","https://gotosocial.org/ns#ReplyAuthorization","https://w3id.org/fep/044f#QuoteAuthorization","https://w3id.org/valueflows/ont/vf#Proposal","https://www.w3.org/ns/activitystreams#Activity","http://litepub.social/ns#EmojiReact","https://gotosocial.org/ns#AnnounceRequest","https://gotosocial.org/ns#LikeRequest","https://gotosocial.org/ns#ReplyRequest","https://w3id.org/fep/044f#QuoteRequest","https://www.w3.org/ns/activitystreams#Accept","https://www.w3.org/ns/activitystreams#TentativeAccept","https://www.w3.org/ns/activitystreams#Add","https://www.w3.org/ns/activitystreams#Announce","https://www.w3.org/ns/activitystreams#Create","https://www.w3.org/ns/activitystreams#Delete","https://www.w3.org/ns/activitystreams#Dislike","https://www.w3.org/ns/activitystreams#Flag","https://www.w3.org/ns/activitystreams#Follow","https://www.w3.org/ns/activitystreams#Ignore","https://www.w3.org/ns/activitystreams#Block","https://www.w3.org/ns/activitystreams#IntransitiveActivity","https://www.w3.org/ns/activitystreams#Arrive","https://www.w3.org/ns/activitystreams#Question","https://www.w3.org/ns/activitystreams#Travel","https://www.w3.org/ns/activitystreams#Join","https://www.w3.org/ns/activitystreams#Leave","https://www.w3.org/ns/activitystreams#Like","https://www.w3.org/ns/activitystreams#Listen","https://www.w3.org/ns/activitystreams#Move","https://www.w3.org/ns/activitystreams#Offer","https://www.w3.org/ns/activitystreams#Invite","https://www.w3.org/ns/activitystreams#Read","https://www.w3.org/ns/activitystreams#Reject","https://www.w3.org/ns/activitystreams#TentativeReject","https://www.w3.org/ns/activitystreams#Remove","https://www.w3.org/ns/activitystreams#Undo","https://www.w3.org/ns/activitystreams#Update","https://www.w3.org/ns/activitystreams#View","https://www.w3.org/ns/activitystreams#Application","https://www.w3.org/ns/activitystreams#Article","https://www.w3.org/ns/activitystreams#Collection","https://www.w3.org/ns/activitystreams#CollectionPage","https://www.w3.org/ns/activitystreams#OrderedCollectionPage","https://www.w3.org/ns/activitystreams#OrderedCollection","https://www.w3.org/ns/activitystreams#Document","https://www.w3.org/ns/activitystreams#Audio","https://www.w3.org/ns/activitystreams#Image","https://www.w3.org/ns/activitystreams#Page","https://www.w3.org/ns/activitystreams#Video","https://www.w3.org/ns/activitystreams#Event","https://www.w3.org/ns/activitystreams#Group","https://www.w3.org/ns/activitystreams#Note","https://www.w3.org/ns/activitystreams#Organization","https://www.w3.org/ns/activitystreams#Person","https://www.w3.org/ns/activitystreams#Place","https://www.w3.org/ns/activitystreams#Profile","https://www.w3.org/ns/activitystreams#Relationship","https://www.w3.org/ns/activitystreams#Service","https://www.w3.org/ns/activitystreams#Tombstone"].some( t => v["@type"].includes(t)) ? await Object.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& ["https://www.w3.org/ns/activitystreams#Link","https://www.w3.org/ns/activitystreams#Hashtag","https://www.w3.org/ns/activitystreams#Mention"].some( t => v["@type"].includes(t)) ? await Link.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ) : undefined ; if (typeof decoded === "undefined") continue; @@ -46393,7 +46393,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _4TB9Qd9ddtcZEpMfzbHhzafE6jaJ_likesOf.push(decoded); @@ -46426,7 +46426,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _3manzgeKiPsugpztKGiaUUwJ3ito_sharesOf.push(decoded); @@ -46459,7 +46459,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _3T3oGm3twpcQUcrnMisXQtmDZ32X_repliesOf.push(decoded); @@ -46492,7 +46492,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _2bvRkAFZjMfVD8jiUWZJr5YokSeN_inboxOf.push(decoded); @@ -46525,7 +46525,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _4AHzVZDxHjK6uEWa9UiKHGK34yYm_outboxOf.push(decoded); @@ -46558,7 +46558,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _41aoZ5M6yRUHy3Zx8q6iuZQxtopb_followersOf.push(decoded); @@ -46591,7 +46591,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _2nXT2Ah42UjEEQF5oJQ39CbKB1xj_followingOf.push(decoded); @@ -46624,7 +46624,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _2bsySzmT3qEZcrnoe3tZ5xBjXSju_likedOf.push(decoded); @@ -48051,7 +48051,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { + if (options.baseUrl == null && values["@id"] != null) { options = { ...options, baseUrl: new URL(values["@id"]) }; } @@ -48106,7 +48106,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _2kWgBhQKjEauxx8C6qF3ZQamK4Le_partOf.push(decoded); @@ -48139,7 +48139,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await CollectionPage.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _3BT4kQLcXhHx7TAWaNDKh8nFn9eY_next.push(decoded); @@ -48172,7 +48172,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await CollectionPage.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _3b8yG8tDNzQFFEnWhCc13G8eHooA_prev.push(decoded); @@ -48546,7 +48546,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { + if (options.baseUrl == null && values["@id"] != null) { options = { ...options, baseUrl: new URL(values["@id"]) }; } @@ -48880,7 +48880,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { + if (options.baseUrl == null && values["@id"] != null) { options = { ...options, baseUrl: new URL(values["@id"]) }; } @@ -49212,7 +49212,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { + if (options.baseUrl == null && values["@id"] != null) { options = { ...options, baseUrl: new URL(values["@id"]) }; } @@ -50006,7 +50006,7 @@ proxyUrl?: URL | null;oauthAuthorizationEndpoint?: URL | null;oauthTokenEndpoint // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { + if (options.baseUrl == null && values["@id"] != null) { options = { ...options, baseUrl: new URL(values["@id"]) }; } @@ -50051,9 +50051,9 @@ proxyUrl?: URL | null;oauthAuthorizationEndpoint?: URL | null;oauthTokenEndpoint : "" ) ) - : URL.canParse(v["@id"]) && (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) + : URL.canParse(v["@id"]) && (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) ? new URL(v["@id"]) - : new URL(v["@id"], (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl))); + : new URL(v["@id"], (values["@id"] == null ? options.baseUrl : new URL(values["@id"]))); if (typeof decoded === "undefined") continue; _2JCYDbSxEHCCLdBYed33cCETfGyR_proxyUrl.push(decoded); } @@ -50084,9 +50084,9 @@ proxyUrl?: URL | null;oauthAuthorizationEndpoint?: URL | null;oauthTokenEndpoint : "" ) ) - : URL.canParse(v["@id"]) && (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) + : URL.canParse(v["@id"]) && (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) ? new URL(v["@id"]) - : new URL(v["@id"], (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl))); + : new URL(v["@id"], (values["@id"] == null ? options.baseUrl : new URL(values["@id"]))); if (typeof decoded === "undefined") continue; _25S6UmgzDead8hxL5sQFezZTAusd_oauthAuthorizationEndpoint.push(decoded); } @@ -50117,9 +50117,9 @@ proxyUrl?: URL | null;oauthAuthorizationEndpoint?: URL | null;oauthTokenEndpoint : "" ) ) - : URL.canParse(v["@id"]) && (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) + : URL.canParse(v["@id"]) && (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) ? new URL(v["@id"]) - : new URL(v["@id"], (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl))); + : new URL(v["@id"], (values["@id"] == null ? options.baseUrl : new URL(values["@id"]))); if (typeof decoded === "undefined") continue; _iAMxqrSba7yBCRB1FZ5kEVdKEZ3_oauthTokenEndpoint.push(decoded); } @@ -50150,9 +50150,9 @@ proxyUrl?: URL | null;oauthAuthorizationEndpoint?: URL | null;oauthTokenEndpoint : "" ) ) - : URL.canParse(v["@id"]) && (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) + : URL.canParse(v["@id"]) && (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) ? new URL(v["@id"]) - : new URL(v["@id"], (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl))); + : new URL(v["@id"], (values["@id"] == null ? options.baseUrl : new URL(values["@id"]))); if (typeof decoded === "undefined") continue; _8Bx9qN8oU7Bpt2xi6khaxWp1gMr_provideClientKey.push(decoded); } @@ -50183,9 +50183,9 @@ proxyUrl?: URL | null;oauthAuthorizationEndpoint?: URL | null;oauthTokenEndpoint : "" ) ) - : URL.canParse(v["@id"]) && (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) + : URL.canParse(v["@id"]) && (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) ? new URL(v["@id"]) - : new URL(v["@id"], (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl))); + : new URL(v["@id"], (values["@id"] == null ? options.baseUrl : new URL(values["@id"]))); if (typeof decoded === "undefined") continue; _3dU7PMVQZJpsCpo2F4RQXxBXdPmS_signClientKey.push(decoded); } @@ -50216,9 +50216,9 @@ proxyUrl?: URL | null;oauthAuthorizationEndpoint?: URL | null;oauthTokenEndpoint : "" ) ) - : URL.canParse(v["@id"]) && (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) + : URL.canParse(v["@id"]) && (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) ? new URL(v["@id"]) - : new URL(v["@id"], (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl))); + : new URL(v["@id"], (values["@id"] == null ? options.baseUrl : new URL(values["@id"]))); if (typeof decoded === "undefined") continue; _3JprUSDLVqqX4dwHRi37qGZZCRCc_sharedInbox.push(decoded); } @@ -50671,7 +50671,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { + if (options.baseUrl == null && values["@id"] != null) { options = { ...options, baseUrl: new URL(values["@id"]) }; } @@ -51006,7 +51006,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { + if (options.baseUrl == null && values["@id"] != null) { options = { ...options, baseUrl: new URL(values["@id"]) }; } @@ -51342,7 +51342,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { + if (options.baseUrl == null && values["@id"] != null) { options = { ...options, baseUrl: new URL(values["@id"]) }; } @@ -56889,7 +56889,7 @@ get preferredUsernames(): ((string | LanguageString))[] { // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { + if (options.baseUrl == null && values["@id"] != null) { options = { ...options, baseUrl: new URL(values["@id"]) }; } @@ -56964,7 +56964,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await CryptographicKey.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _axq166E2eZADq34V4MYUc8KMZdC_publicKey.push(decoded); @@ -56997,7 +56997,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Multikey.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.push(decoded); @@ -57050,11 +57050,11 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#OrderedCollection") ? await OrderedCollection.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#OrderedCollectionPage") ? await OrderedCollectionPage.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ) : undefined ; if (typeof decoded === "undefined") continue; @@ -57091,11 +57091,11 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#OrderedCollection") ? await OrderedCollection.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#OrderedCollectionPage") ? await OrderedCollectionPage.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ) : undefined ; if (typeof decoded === "undefined") continue; @@ -57130,7 +57130,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _3yAv8jymNfNuJUDuBzJ1NQhdbAee_following.push(decoded); @@ -57163,7 +57163,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _BBCTgfphhsFzpVfKTykGSpBNwoA_followers.push(decoded); @@ -57196,7 +57196,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _3bgkPwJanyTCoVFM9ovRcus8tKkU_liked.push(decoded); @@ -57229,7 +57229,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _4N1vBJzXDf8NbBumeECQMFvKetja_featured.push(decoded); @@ -57262,7 +57262,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags.push(decoded); @@ -57295,7 +57295,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.push(decoded); @@ -57316,7 +57316,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Endpoints.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints.push(decoded); @@ -57423,23 +57423,23 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Application") ? await Application.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Group") ? await Group.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Organization") ? await Organization.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Person") ? await Person.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Service") ? await Service.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ) : undefined ; if (typeof decoded === "undefined") continue; @@ -57476,23 +57476,23 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Application") ? await Application.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Group") ? await Group.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Organization") ? await Organization.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Person") ? await Person.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Service") ? await Service.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ) : undefined ; if (typeof decoded === "undefined") continue; @@ -57527,7 +57527,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await DidService.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.push(decoded); @@ -59320,7 +59320,7 @@ get names(): ((string | LanguageString))[] { // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { + if (options.baseUrl == null && values["@id"] != null) { options = { ...options, baseUrl: new URL(values["@id"]) }; } @@ -59373,9 +59373,9 @@ get names(): ((string | LanguageString))[] { : "" ) ) - : URL.canParse(v["@id"]) && (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) + : URL.canParse(v["@id"]) && (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) ? new URL(v["@id"]) - : new URL(v["@id"], (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl))); + : new URL(v["@id"], (values["@id"] == null ? options.baseUrl : new URL(values["@id"]))); if (typeof decoded === "undefined") continue; _pVjLsybKQdmkjuU7MHjiVmNnuj7_href.push(decoded); } @@ -59524,12 +59524,12 @@ get names(): ((string | LanguageString))[] { && Array.isArray(v["@type"])&& ["https://www.w3.org/ns/activitystreams#Link","https://www.w3.org/ns/activitystreams#Hashtag","https://www.w3.org/ns/activitystreams#Mention"].some( t => v["@type"].includes(t)) ? await Link.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& ["https://www.w3.org/ns/activitystreams#Object","http://joinmastodon.org/ns#Emoji","http://litepub.social/ns#ChatMessage","https://gotosocial.org/ns#AnnounceAuthorization","https://gotosocial.org/ns#LikeApproval","https://gotosocial.org/ns#ReplyAuthorization","https://w3id.org/fep/044f#QuoteAuthorization","https://w3id.org/valueflows/ont/vf#Proposal","https://www.w3.org/ns/activitystreams#Activity","http://litepub.social/ns#EmojiReact","https://gotosocial.org/ns#AnnounceRequest","https://gotosocial.org/ns#LikeRequest","https://gotosocial.org/ns#ReplyRequest","https://w3id.org/fep/044f#QuoteRequest","https://www.w3.org/ns/activitystreams#Accept","https://www.w3.org/ns/activitystreams#TentativeAccept","https://www.w3.org/ns/activitystreams#Add","https://www.w3.org/ns/activitystreams#Announce","https://www.w3.org/ns/activitystreams#Create","https://www.w3.org/ns/activitystreams#Delete","https://www.w3.org/ns/activitystreams#Dislike","https://www.w3.org/ns/activitystreams#Flag","https://www.w3.org/ns/activitystreams#Follow","https://www.w3.org/ns/activitystreams#Ignore","https://www.w3.org/ns/activitystreams#Block","https://www.w3.org/ns/activitystreams#IntransitiveActivity","https://www.w3.org/ns/activitystreams#Arrive","https://www.w3.org/ns/activitystreams#Question","https://www.w3.org/ns/activitystreams#Travel","https://www.w3.org/ns/activitystreams#Join","https://www.w3.org/ns/activitystreams#Leave","https://www.w3.org/ns/activitystreams#Like","https://www.w3.org/ns/activitystreams#Listen","https://www.w3.org/ns/activitystreams#Move","https://www.w3.org/ns/activitystreams#Offer","https://www.w3.org/ns/activitystreams#Invite","https://www.w3.org/ns/activitystreams#Read","https://www.w3.org/ns/activitystreams#Reject","https://www.w3.org/ns/activitystreams#TentativeReject","https://www.w3.org/ns/activitystreams#Remove","https://www.w3.org/ns/activitystreams#Undo","https://www.w3.org/ns/activitystreams#Update","https://www.w3.org/ns/activitystreams#View","https://www.w3.org/ns/activitystreams#Application","https://www.w3.org/ns/activitystreams#Article","https://www.w3.org/ns/activitystreams#Collection","https://www.w3.org/ns/activitystreams#CollectionPage","https://www.w3.org/ns/activitystreams#OrderedCollectionPage","https://www.w3.org/ns/activitystreams#OrderedCollection","https://www.w3.org/ns/activitystreams#Document","https://www.w3.org/ns/activitystreams#Audio","https://www.w3.org/ns/activitystreams#Image","https://www.w3.org/ns/activitystreams#Page","https://www.w3.org/ns/activitystreams#Video","https://www.w3.org/ns/activitystreams#Event","https://www.w3.org/ns/activitystreams#Group","https://www.w3.org/ns/activitystreams#Note","https://www.w3.org/ns/activitystreams#Organization","https://www.w3.org/ns/activitystreams#Person","https://www.w3.org/ns/activitystreams#Place","https://www.w3.org/ns/activitystreams#Profile","https://www.w3.org/ns/activitystreams#Relationship","https://www.w3.org/ns/activitystreams#Service","https://www.w3.org/ns/activitystreams#Tombstone"].some( t => v["@type"].includes(t)) ? await Object.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ) : undefined ; if (typeof decoded === "undefined") continue; @@ -60003,7 +60003,7 @@ names?: ((string | LanguageString))[];language?: Intl.Locale | null;height?: num // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { + if (options.baseUrl == null && values["@id"] != null) { options = { ...options, baseUrl: new URL(values["@id"]) }; } @@ -60340,7 +60340,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { + if (options.baseUrl == null && values["@id"] != null) { options = { ...options, baseUrl: new URL(values["@id"]) }; } @@ -60675,7 +60675,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { + if (options.baseUrl == null && values["@id"] != null) { options = { ...options, baseUrl: new URL(values["@id"]) }; } @@ -61013,7 +61013,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { + if (options.baseUrl == null && values["@id"] != null) { options = { ...options, baseUrl: new URL(values["@id"]) }; } @@ -61347,7 +61347,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { + if (options.baseUrl == null && values["@id"] != null) { options = { ...options, baseUrl: new URL(values["@id"]) }; } @@ -61681,7 +61681,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { + if (options.baseUrl == null && values["@id"] != null) { options = { ...options, baseUrl: new URL(values["@id"]) }; } @@ -62015,7 +62015,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { + if (options.baseUrl == null && values["@id"] != null) { options = { ...options, baseUrl: new URL(values["@id"]) }; } @@ -62347,7 +62347,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { + if (options.baseUrl == null && values["@id"] != null) { options = { ...options, baseUrl: new URL(values["@id"]) }; } @@ -62645,7 +62645,7 @@ names?: ((string | LanguageString))[];language?: Intl.Locale | null;height?: num // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { + if (options.baseUrl == null && values["@id"] != null) { options = { ...options, baseUrl: new URL(values["@id"]) }; } @@ -62980,7 +62980,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { + if (options.baseUrl == null && values["@id"] != null) { options = { ...options, baseUrl: new URL(values["@id"]) }; } @@ -63979,7 +63979,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { + if (options.baseUrl == null && values["@id"] != null) { options = { ...options, baseUrl: new URL(values["@id"]) }; } @@ -64030,7 +64030,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote.push(decoded); @@ -64089,7 +64089,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await QuoteAuthorization.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization.push(decoded); @@ -64777,7 +64777,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { + if (options.baseUrl == null && values["@id"] != null) { options = { ...options, baseUrl: new URL(values["@id"]) }; } @@ -64831,12 +64831,12 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu && Array.isArray(v["@type"])&& ["https://www.w3.org/ns/activitystreams#Object","http://joinmastodon.org/ns#Emoji","http://litepub.social/ns#ChatMessage","https://gotosocial.org/ns#AnnounceAuthorization","https://gotosocial.org/ns#LikeApproval","https://gotosocial.org/ns#ReplyAuthorization","https://w3id.org/fep/044f#QuoteAuthorization","https://w3id.org/valueflows/ont/vf#Proposal","https://www.w3.org/ns/activitystreams#Activity","http://litepub.social/ns#EmojiReact","https://gotosocial.org/ns#AnnounceRequest","https://gotosocial.org/ns#LikeRequest","https://gotosocial.org/ns#ReplyRequest","https://w3id.org/fep/044f#QuoteRequest","https://www.w3.org/ns/activitystreams#Accept","https://www.w3.org/ns/activitystreams#TentativeAccept","https://www.w3.org/ns/activitystreams#Add","https://www.w3.org/ns/activitystreams#Announce","https://www.w3.org/ns/activitystreams#Create","https://www.w3.org/ns/activitystreams#Delete","https://www.w3.org/ns/activitystreams#Dislike","https://www.w3.org/ns/activitystreams#Flag","https://www.w3.org/ns/activitystreams#Follow","https://www.w3.org/ns/activitystreams#Ignore","https://www.w3.org/ns/activitystreams#Block","https://www.w3.org/ns/activitystreams#IntransitiveActivity","https://www.w3.org/ns/activitystreams#Arrive","https://www.w3.org/ns/activitystreams#Question","https://www.w3.org/ns/activitystreams#Travel","https://www.w3.org/ns/activitystreams#Join","https://www.w3.org/ns/activitystreams#Leave","https://www.w3.org/ns/activitystreams#Like","https://www.w3.org/ns/activitystreams#Listen","https://www.w3.org/ns/activitystreams#Move","https://www.w3.org/ns/activitystreams#Offer","https://www.w3.org/ns/activitystreams#Invite","https://www.w3.org/ns/activitystreams#Read","https://www.w3.org/ns/activitystreams#Reject","https://www.w3.org/ns/activitystreams#TentativeReject","https://www.w3.org/ns/activitystreams#Remove","https://www.w3.org/ns/activitystreams#Undo","https://www.w3.org/ns/activitystreams#Update","https://www.w3.org/ns/activitystreams#View","https://www.w3.org/ns/activitystreams#Application","https://www.w3.org/ns/activitystreams#Article","https://www.w3.org/ns/activitystreams#Collection","https://www.w3.org/ns/activitystreams#CollectionPage","https://www.w3.org/ns/activitystreams#OrderedCollectionPage","https://www.w3.org/ns/activitystreams#OrderedCollection","https://www.w3.org/ns/activitystreams#Document","https://www.w3.org/ns/activitystreams#Audio","https://www.w3.org/ns/activitystreams#Image","https://www.w3.org/ns/activitystreams#Page","https://www.w3.org/ns/activitystreams#Video","https://www.w3.org/ns/activitystreams#Event","https://www.w3.org/ns/activitystreams#Group","https://www.w3.org/ns/activitystreams#Note","https://www.w3.org/ns/activitystreams#Organization","https://www.w3.org/ns/activitystreams#Person","https://www.w3.org/ns/activitystreams#Place","https://www.w3.org/ns/activitystreams#Profile","https://www.w3.org/ns/activitystreams#Relationship","https://www.w3.org/ns/activitystreams#Service","https://www.w3.org/ns/activitystreams#Tombstone"].some( t => v["@type"].includes(t)) ? await Object.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& ["https://www.w3.org/ns/activitystreams#Link","https://www.w3.org/ns/activitystreams#Hashtag","https://www.w3.org/ns/activitystreams#Mention"].some( t => v["@type"].includes(t)) ? await Link.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ) : undefined ; if (typeof decoded === "undefined") continue; @@ -65565,7 +65565,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { + if (options.baseUrl == null && values["@id"] != null) { options = { ...options, baseUrl: new URL(values["@id"]) }; } @@ -65619,12 +65619,12 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu && Array.isArray(v["@type"])&& ["https://www.w3.org/ns/activitystreams#Object","http://joinmastodon.org/ns#Emoji","http://litepub.social/ns#ChatMessage","https://gotosocial.org/ns#AnnounceAuthorization","https://gotosocial.org/ns#LikeApproval","https://gotosocial.org/ns#ReplyAuthorization","https://w3id.org/fep/044f#QuoteAuthorization","https://w3id.org/valueflows/ont/vf#Proposal","https://www.w3.org/ns/activitystreams#Activity","http://litepub.social/ns#EmojiReact","https://gotosocial.org/ns#AnnounceRequest","https://gotosocial.org/ns#LikeRequest","https://gotosocial.org/ns#ReplyRequest","https://w3id.org/fep/044f#QuoteRequest","https://www.w3.org/ns/activitystreams#Accept","https://www.w3.org/ns/activitystreams#TentativeAccept","https://www.w3.org/ns/activitystreams#Add","https://www.w3.org/ns/activitystreams#Announce","https://www.w3.org/ns/activitystreams#Create","https://www.w3.org/ns/activitystreams#Delete","https://www.w3.org/ns/activitystreams#Dislike","https://www.w3.org/ns/activitystreams#Flag","https://www.w3.org/ns/activitystreams#Follow","https://www.w3.org/ns/activitystreams#Ignore","https://www.w3.org/ns/activitystreams#Block","https://www.w3.org/ns/activitystreams#IntransitiveActivity","https://www.w3.org/ns/activitystreams#Arrive","https://www.w3.org/ns/activitystreams#Question","https://www.w3.org/ns/activitystreams#Travel","https://www.w3.org/ns/activitystreams#Join","https://www.w3.org/ns/activitystreams#Leave","https://www.w3.org/ns/activitystreams#Like","https://www.w3.org/ns/activitystreams#Listen","https://www.w3.org/ns/activitystreams#Move","https://www.w3.org/ns/activitystreams#Offer","https://www.w3.org/ns/activitystreams#Invite","https://www.w3.org/ns/activitystreams#Read","https://www.w3.org/ns/activitystreams#Reject","https://www.w3.org/ns/activitystreams#TentativeReject","https://www.w3.org/ns/activitystreams#Remove","https://www.w3.org/ns/activitystreams#Undo","https://www.w3.org/ns/activitystreams#Update","https://www.w3.org/ns/activitystreams#View","https://www.w3.org/ns/activitystreams#Application","https://www.w3.org/ns/activitystreams#Article","https://www.w3.org/ns/activitystreams#Collection","https://www.w3.org/ns/activitystreams#CollectionPage","https://www.w3.org/ns/activitystreams#OrderedCollectionPage","https://www.w3.org/ns/activitystreams#OrderedCollection","https://www.w3.org/ns/activitystreams#Document","https://www.w3.org/ns/activitystreams#Audio","https://www.w3.org/ns/activitystreams#Image","https://www.w3.org/ns/activitystreams#Page","https://www.w3.org/ns/activitystreams#Video","https://www.w3.org/ns/activitystreams#Event","https://www.w3.org/ns/activitystreams#Group","https://www.w3.org/ns/activitystreams#Note","https://www.w3.org/ns/activitystreams#Organization","https://www.w3.org/ns/activitystreams#Person","https://www.w3.org/ns/activitystreams#Place","https://www.w3.org/ns/activitystreams#Profile","https://www.w3.org/ns/activitystreams#Relationship","https://www.w3.org/ns/activitystreams#Service","https://www.w3.org/ns/activitystreams#Tombstone"].some( t => v["@type"].includes(t)) ? await Object.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& ["https://www.w3.org/ns/activitystreams#Link","https://www.w3.org/ns/activitystreams#Hashtag","https://www.w3.org/ns/activitystreams#Mention"].some( t => v["@type"].includes(t)) ? await Link.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ) : undefined ; if (typeof decoded === "undefined") continue; @@ -71215,7 +71215,7 @@ get preferredUsernames(): ((string | LanguageString))[] { // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { + if (options.baseUrl == null && values["@id"] != null) { options = { ...options, baseUrl: new URL(values["@id"]) }; } @@ -71290,7 +71290,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await CryptographicKey.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _axq166E2eZADq34V4MYUc8KMZdC_publicKey.push(decoded); @@ -71323,7 +71323,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Multikey.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.push(decoded); @@ -71376,11 +71376,11 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#OrderedCollection") ? await OrderedCollection.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#OrderedCollectionPage") ? await OrderedCollectionPage.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ) : undefined ; if (typeof decoded === "undefined") continue; @@ -71417,11 +71417,11 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#OrderedCollection") ? await OrderedCollection.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#OrderedCollectionPage") ? await OrderedCollectionPage.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ) : undefined ; if (typeof decoded === "undefined") continue; @@ -71456,7 +71456,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _3yAv8jymNfNuJUDuBzJ1NQhdbAee_following.push(decoded); @@ -71489,7 +71489,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _BBCTgfphhsFzpVfKTykGSpBNwoA_followers.push(decoded); @@ -71522,7 +71522,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _3bgkPwJanyTCoVFM9ovRcus8tKkU_liked.push(decoded); @@ -71555,7 +71555,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _4N1vBJzXDf8NbBumeECQMFvKetja_featured.push(decoded); @@ -71588,7 +71588,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags.push(decoded); @@ -71621,7 +71621,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.push(decoded); @@ -71642,7 +71642,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Endpoints.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints.push(decoded); @@ -71749,23 +71749,23 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Application") ? await Application.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Group") ? await Group.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Organization") ? await Organization.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Person") ? await Person.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Service") ? await Service.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ) : undefined ; if (typeof decoded === "undefined") continue; @@ -71802,23 +71802,23 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Application") ? await Application.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Group") ? await Group.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Organization") ? await Organization.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Person") ? await Person.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Service") ? await Service.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ) : undefined ; if (typeof decoded === "undefined") continue; @@ -71853,7 +71853,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await DidService.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.push(decoded); @@ -72680,7 +72680,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { + if (options.baseUrl == null && values["@id"] != null) { options = { ...options, baseUrl: new URL(values["@id"]) }; } @@ -78227,7 +78227,7 @@ get preferredUsernames(): ((string | LanguageString))[] { // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { + if (options.baseUrl == null && values["@id"] != null) { options = { ...options, baseUrl: new URL(values["@id"]) }; } @@ -78302,7 +78302,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await CryptographicKey.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _axq166E2eZADq34V4MYUc8KMZdC_publicKey.push(decoded); @@ -78335,7 +78335,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Multikey.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.push(decoded); @@ -78388,11 +78388,11 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#OrderedCollection") ? await OrderedCollection.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#OrderedCollectionPage") ? await OrderedCollectionPage.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ) : undefined ; if (typeof decoded === "undefined") continue; @@ -78429,11 +78429,11 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#OrderedCollection") ? await OrderedCollection.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#OrderedCollectionPage") ? await OrderedCollectionPage.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ) : undefined ; if (typeof decoded === "undefined") continue; @@ -78468,7 +78468,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _3yAv8jymNfNuJUDuBzJ1NQhdbAee_following.push(decoded); @@ -78501,7 +78501,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _BBCTgfphhsFzpVfKTykGSpBNwoA_followers.push(decoded); @@ -78534,7 +78534,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _3bgkPwJanyTCoVFM9ovRcus8tKkU_liked.push(decoded); @@ -78567,7 +78567,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _4N1vBJzXDf8NbBumeECQMFvKetja_featured.push(decoded); @@ -78600,7 +78600,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags.push(decoded); @@ -78633,7 +78633,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.push(decoded); @@ -78654,7 +78654,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Endpoints.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints.push(decoded); @@ -78761,23 +78761,23 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Application") ? await Application.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Group") ? await Group.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Organization") ? await Organization.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Person") ? await Person.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Service") ? await Service.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ) : undefined ; if (typeof decoded === "undefined") continue; @@ -78814,23 +78814,23 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Application") ? await Application.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Group") ? await Group.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Organization") ? await Organization.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Person") ? await Person.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Service") ? await Service.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ) : undefined ; if (typeof decoded === "undefined") continue; @@ -78865,7 +78865,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await DidService.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.push(decoded); @@ -80148,7 +80148,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { + if (options.baseUrl == null && values["@id"] != null) { options = { ...options, baseUrl: new URL(values["@id"]) }; } @@ -80292,9 +80292,9 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu : "" ) ) - : URL.canParse(v["@id"]) && (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) + : URL.canParse(v["@id"]) && (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) ? new URL(v["@id"]) - : new URL(v["@id"], (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl))) : undefined + : new URL(v["@id"], (values["@id"] == null ? options.baseUrl : new URL(values["@id"]))) : undefined ; if (typeof decoded === "undefined") continue; _oKrwxU4V8wiKhMW1QEYQibcJh8c_units.push(decoded); @@ -81021,7 +81021,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { + if (options.baseUrl == null && values["@id"] != null) { options = { ...options, baseUrl: new URL(values["@id"]) }; } @@ -81072,7 +81072,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _3CLQ1PLSXrhSQbTGGHuxNyaEFKM1_describes.push(decoded); @@ -82684,7 +82684,7 @@ instruments?: (Object | URL)[];exclusiveOptions?: (Object | URL)[];inclusiveOpti // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { + if (options.baseUrl == null && values["@id"] != null) { options = { ...options, baseUrl: new URL(values["@id"]) }; } @@ -82735,7 +82735,7 @@ instruments?: (Object | URL)[];exclusiveOptions?: (Object | URL)[];inclusiveOpti const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _2N5scKaVEcdYHFmfKYYacAwUhUgQ_oneOf.push(decoded); @@ -82768,7 +82768,7 @@ instruments?: (Object | URL)[];exclusiveOptions?: (Object | URL)[];inclusiveOpti const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _2mV6isMTPRKbWdLCjcpiEysq5dAY_anyOf.push(decoded); @@ -82850,7 +82850,7 @@ instruments?: (Object | URL)[];exclusiveOptions?: (Object | URL)[];inclusiveOpti const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote.push(decoded); @@ -82909,7 +82909,7 @@ instruments?: (Object | URL)[];exclusiveOptions?: (Object | URL)[];inclusiveOpti const decoded = await QuoteAuthorization.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization.push(decoded); @@ -83368,7 +83368,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { + if (options.baseUrl == null && values["@id"] != null) { options = { ...options, baseUrl: new URL(values["@id"]) }; } @@ -83702,7 +83702,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { + if (options.baseUrl == null && values["@id"] != null) { options = { ...options, baseUrl: new URL(values["@id"]) }; } @@ -85208,7 +85208,7 @@ relationships?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { + if (options.baseUrl == null && values["@id"] != null) { options = { ...options, baseUrl: new URL(values["@id"]) }; } @@ -85259,7 +85259,7 @@ relationships?: (Object | URL)[];} const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _2Zqdmi46ZnDQsECS6mzwhrv3rUKq_subject.push(decoded); @@ -85292,7 +85292,7 @@ relationships?: (Object | URL)[];} const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _2MH19yxjn1wnHsNfa5n4JBhJzxyc_object.push(decoded); @@ -85325,7 +85325,7 @@ relationships?: (Object | URL)[];} const decoded = await Object.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _4Lzz89F9qipAQSGkWyX9DGWiUojG_relationship.push(decoded); @@ -85713,7 +85713,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { + if (options.baseUrl == null && values["@id"] != null) { options = { ...options, baseUrl: new URL(values["@id"]) }; } @@ -91260,7 +91260,7 @@ get preferredUsernames(): ((string | LanguageString))[] { // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { + if (options.baseUrl == null && values["@id"] != null) { options = { ...options, baseUrl: new URL(values["@id"]) }; } @@ -91335,7 +91335,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await CryptographicKey.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _axq166E2eZADq34V4MYUc8KMZdC_publicKey.push(decoded); @@ -91368,7 +91368,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Multikey.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.push(decoded); @@ -91421,11 +91421,11 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#OrderedCollection") ? await OrderedCollection.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#OrderedCollectionPage") ? await OrderedCollectionPage.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ) : undefined ; if (typeof decoded === "undefined") continue; @@ -91462,11 +91462,11 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#OrderedCollection") ? await OrderedCollection.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#OrderedCollectionPage") ? await OrderedCollectionPage.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ) : undefined ; if (typeof decoded === "undefined") continue; @@ -91501,7 +91501,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _3yAv8jymNfNuJUDuBzJ1NQhdbAee_following.push(decoded); @@ -91534,7 +91534,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _BBCTgfphhsFzpVfKTykGSpBNwoA_followers.push(decoded); @@ -91567,7 +91567,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _3bgkPwJanyTCoVFM9ovRcus8tKkU_liked.push(decoded); @@ -91600,7 +91600,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _4N1vBJzXDf8NbBumeECQMFvKetja_featured.push(decoded); @@ -91633,7 +91633,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags.push(decoded); @@ -91666,7 +91666,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Collection.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.push(decoded); @@ -91687,7 +91687,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await Endpoints.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints.push(decoded); @@ -91794,23 +91794,23 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Application") ? await Application.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Group") ? await Group.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Organization") ? await Organization.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Person") ? await Person.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Service") ? await Service.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ) : undefined ; if (typeof decoded === "undefined") continue; @@ -91847,23 +91847,23 @@ get preferredUsernames(): ((string | LanguageString))[] { typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Application") ? await Application.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Group") ? await Group.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Organization") ? await Organization.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Person") ? await Person.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ) : typeof v === "object" && "@type" in v && Array.isArray(v["@type"])&& v["@type"].includes("https://www.w3.org/ns/activitystreams#Service") ? await Service.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ) : undefined ; if (typeof decoded === "undefined") continue; @@ -91898,7 +91898,7 @@ get preferredUsernames(): ((string | LanguageString))[] { const decoded = await DidService.fromJsonLd( v, - { ...options, baseUrl: (values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl)) } + { ...options, baseUrl: (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) } ); if (typeof decoded === "undefined") continue; _4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.push(decoded); @@ -92934,7 +92934,7 @@ get contents(): ((string | LanguageString))[] { // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { + if (options.baseUrl == null && values["@id"] != null) { options = { ...options, baseUrl: new URL(values["@id"]) }; } @@ -93366,7 +93366,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { + if (options.baseUrl == null && values["@id"] != null) { options = { ...options, baseUrl: new URL(values["@id"]) }; } @@ -93700,7 +93700,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { + if (options.baseUrl == null && values["@id"] != null) { options = { ...options, baseUrl: new URL(values["@id"]) }; } @@ -94250,7 +94250,7 @@ get formerTypes(): ($EntityType)[] { // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { + if (options.baseUrl == null && values["@id"] != null) { options = { ...options, baseUrl: new URL(values["@id"]) }; } @@ -94685,7 +94685,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { + if (options.baseUrl == null && values["@id"] != null) { options = { ...options, baseUrl: new URL(values["@id"]) }; } @@ -95024,7 +95024,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { + if (options.baseUrl == null && values["@id"] != null) { options = { ...options, baseUrl: new URL(values["@id"]) }; } @@ -95361,7 +95361,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { + if (options.baseUrl == null && values["@id"] != null) { options = { ...options, baseUrl: new URL(values["@id"]) }; } @@ -95698,7 +95698,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { + if (options.baseUrl == null && values["@id"] != null) { options = { ...options, baseUrl: new URL(values["@id"]) }; } @@ -96031,7 +96031,7 @@ instruments?: (Object | URL)[];} // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { + if (options.baseUrl == null && values["@id"] != null) { options = { ...options, baseUrl: new URL(values["@id"]) }; } diff --git a/packages/vocab-tools/src/codec.ts b/packages/vocab-tools/src/codec.ts index ccc43f1e7..5c5249f0d 100644 --- a/packages/vocab-tools/src/codec.ts +++ b/packages/vocab-tools/src/codec.ts @@ -404,7 +404,7 @@ export async function* generateDecoder( // deno-lint-ignore no-explicit-any (expanded[0] ?? {}) as (Record & { "@id"?: string }); } - if (options.baseUrl == null && values["@id"] != null && URL.canParse(values["@id"])) { + if (options.baseUrl == null && values["@id"] != null) { options = { ...options, baseUrl: new URL(values["@id"]) }; } `; @@ -479,7 +479,7 @@ export async function* generateDecoder( property, getTypeNames(property.range, types), variable, - `(values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl))`, + `(values["@id"] == null ? options.baseUrl : new URL(values["@id"]))`, moduleVarNames, ); if (!areAllScalarTypes(property.range, types)) { @@ -503,7 +503,7 @@ export async function* generateDecoder( types, "v", "options", - `(values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl))`, + `(values["@id"] == null ? options.baseUrl : new URL(values["@id"]))`, ) }; if (typeof decoded === "undefined") continue; @@ -517,7 +517,7 @@ export async function* generateDecoder( types, "v", "options", - `(values["@id"] == null || !URL.canParse(values["@id"], options.baseUrl) ? options.baseUrl : new URL(values["@id"], options.baseUrl))`, + `(values["@id"] == null ? options.baseUrl : new URL(values["@id"]))`, ); for (const code of decoders) yield code; yield ` From a4b1a7280b68b06ab696c83812644eb656732742 Mon Sep 17 00:00:00 2001 From: Hong Minhee Date: Sat, 6 Jun 2026 17:03:22 +0900 Subject: [PATCH 25/25] Restore docs nav entries damaged by stash conflict The stash pop conflict resolution accidentally removed tutorial and manual navigation entries, jsrRef packages, and other config sections. Restore the full config from main. https://github.com/fedify-dev/fedify/pull/793#discussion_r3366821578 https://github.com/fedify-dev/fedify/pull/793#discussion_r3366821581 Assisted-by: OpenCode:deepseek-v4-pro --- docs/.vitepress/config.mts | 69 +++++++++++++++++++++++++++----------- 1 file changed, 50 insertions(+), 19 deletions(-) diff --git a/docs/.vitepress/config.mts b/docs/.vitepress/config.mts index cf53266e6..a71503133 100644 --- a/docs/.vitepress/config.mts +++ b/docs/.vitepress/config.mts @@ -1,8 +1,8 @@ +import taskLists from "@hackmd/markdown-it-task-lists"; import { transformerTwoslash } from "@shikijs/vitepress-twoslash"; import abbr from "markdown-it-abbr"; import deflist from "markdown-it-deflist"; import footnote from "markdown-it-footnote"; -import taskLists from "@hackmd/markdown-it-task-lists"; import { jsrRef } from "markdown-it-jsr-ref"; import { readFileSync } from "node:fs"; import process from "node:process"; @@ -15,15 +15,24 @@ import { import llmstxt from "vitepress-plugin-llms"; import { withMermaid } from "vitepress-plugin-mermaid"; -const jsrRefPlugins: (Awaited>)[] = []; -for (const pkg of ["fedify", "vocab", "vocab-runtime", "webfinger", "debugger", "testing"]) { - const jsrRefPlugin = await jsrRef({ - package: `@fedify/${pkg}`, - version: process.env.JSR_REF_VERSION ?? "unstable", - cachePath: `.jsr-cache-${pkg}.json`, - }); - jsrRefPlugins.push(jsrRefPlugin); -} +const jsrRefVersion = process.env.JSR_REF_VERSION ?? "unstable"; +const jsrRefPackages = [ + ["@fedify/fedify", ".jsr-cache.json"], + ["@fedify/vocab", ".jsr-vocab-cache.json"], + ["@fedify/vocab-runtime", ".jsr-vocab-runtime-cache.json"], + ["@fedify/webfinger", ".jsr-webfinger-cache.json"], + ["@fedify/debugger", ".jsr-debugger-cache.json"], + ["@fedify/testing", ".jsr-testing-cache.json"], +] as const; +const jsrRefPlugins = await Promise.all( + jsrRefPackages.map(([packageName, cachePath]) => + jsrRef({ + package: packageName, + version: jsrRefVersion, + cachePath, + }) + ), +); let extraNav: { text: string; link: string }[] = []; if (process.env.EXTRA_NAV_TEXT && process.env.EXTRA_NAV_LINK) { @@ -103,6 +112,15 @@ const TUTORIAL = { }, { text: "Learning the basics", link: "/tutorial/basics.md" }, { text: "Creating a microblog", link: "/tutorial/microblog.md" }, + { + text: "Creating an image sharing service", + link: "/tutorial/content-sharing.md", + }, + { text: "Building a federated blog", link: "/tutorial/astro-blog.md" }, + { + text: "Building a threadiverse community", + link: "/tutorial/threadiverse.md", + }, ], activeMatch: "/tutorial", }; @@ -116,6 +134,7 @@ const MANUAL = { { text: "Vocabulary", link: "/manual/vocab.md" }, { text: "Actor dispatcher", link: "/manual/actor.md" }, { text: "Inbox listeners", link: "/manual/inbox.md" }, + { text: "Outbox listeners", link: "/manual/outbox.md" }, { text: "Sending activities", link: "/manual/send.md" }, { text: "Collections", link: "/manual/collections.md" }, { text: "Object dispatcher", link: "/manual/object.md" }, @@ -126,13 +145,16 @@ const MANUAL = { { text: "Pragmatics", link: "/manual/pragmatics.md" }, { text: "Key–value store", link: "/manual/kv.md" }, { text: "Message queue", link: "/manual/mq.md" }, + { text: "Circuit breaker", link: "/manual/circuit-breaker.md" }, { text: "Integration", link: "/manual/integration.md" }, + { text: "Migration", link: "/manual/migrate.md" }, { text: "Relay", link: "/manual/relay.md" }, { text: "Testing", link: "/manual/test.md" }, { text: "Debugging", link: "/manual/debug.md" }, { text: "Linting", link: "/manual/lint.md" }, { text: "Logging", link: "/manual/log.md" }, { text: "OpenTelemetry", link: "/manual/opentelemetry.md" }, + { text: "Benchmarking", link: "/manual/benchmarking.md" }, { text: "Deployment", link: "/manual/deploy.md" }, ], activeMatch: "/manual", @@ -270,12 +292,15 @@ export default withMermaid(defineConfig({ transformerTwoslash({ twoslashOptions: { compilerOptions: { - ignoreDeprecations: "6.0", moduleResolution: ModuleResolutionKind.Bundler, module: ModuleKind.ESNext, target: ScriptTarget.ESNext, experimentalDecorators: true, // For @fedify/nestjs emitDecoratorMetadata: true, // For @fedify/nestjs + // Silences TS5101 about the `baseUrl` injected by @typescript/vfs + // when Twoslash spins up its virtual TS environment; the option + // is deprecated in TypeScript 6.0 and removed in 7.0. + ignoreDeprecations: "6.0", lib: ["dom", "dom.iterable", "esnext"], types: [ "dom", @@ -311,14 +336,20 @@ export default withMermaid(defineConfig({ plugins: [ groupIconVitePlugin(), llmstxt({ - ignoreFiles: [ - "changelog.md", - "contribute.md", - "README.md", - "security.md", - "sponsors.md", - "tutorial.md", - ], + ignoreFilesPerOutput: { + llmsTxt: [ + "changelog.md", + "contribute.md", + "README.md", + "sponsors.md", + ], + llmsFullTxt: [ + "changelog.md", + "contribute.md", + "README.md", + "sponsors.md", + ], + }, }), ], },