cedar-model-typescript-library 1.0.25 → 1.0.26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/conformance/pom.xml +2 -2
- package/index.d.ts +1 -0
- package/index.d.ts.map +1 -1
- package/index.esm.js +1 -1
- package/index.esm.js.map +1 -1
- package/index.js +1 -1
- package/index.js.map +1 -1
- package/index.umd.js +1 -1
- package/index.umd.js.map +1 -1
- package/org/metadatacenter/model/cedar/field/dynamic/controlled-term/JsonFieldReaderControlledTerm.d.ts.map +1 -1
- package/org/metadatacenter/model/cedar/field/dynamic/controlled-term/YamlFieldReaderControlledTerm.d.ts.map +1 -1
- package/org/metadatacenter/model/cedar/field/dynamic/controlled-term/value-constraint/AbstractJsonControlledTermValueConstraintWriter.d.ts.map +1 -1
- package/org/metadatacenter/model/cedar/field/dynamic/controlled-term/value-constraint/AbstractYamlControlledTermValueConstraintWriter.d.ts +1 -1
- package/org/metadatacenter/model/cedar/field/dynamic/controlled-term/value-constraint/AbstractYamlControlledTermValueConstraintWriter.d.ts.map +1 -1
- package/org/metadatacenter/model/cedar/field/dynamic/controlled-term/value-constraint/ConstraintLinks.d.ts +8 -0
- package/org/metadatacenter/model/cedar/field/dynamic/controlled-term/value-constraint/ConstraintLinks.d.ts.map +1 -0
- package/org/metadatacenter/model/cedar/field/dynamic/controlled-term/value-constraint/ControlledTermAbstractValueConstraint.d.ts +4 -1
- package/org/metadatacenter/model/cedar/field/dynamic/controlled-term/value-constraint/ControlledTermAbstractValueConstraint.d.ts.map +1 -1
- package/org/metadatacenter/model/cedar/field/dynamic/controlled-term/value-constraint/branch/ControlledTermBranch.d.ts +2 -1
- package/org/metadatacenter/model/cedar/field/dynamic/controlled-term/value-constraint/branch/ControlledTermBranch.d.ts.map +1 -1
- package/org/metadatacenter/model/cedar/field/dynamic/controlled-term/value-constraint/branch/ControlledTermBranchBuilder.d.ts +3 -0
- package/org/metadatacenter/model/cedar/field/dynamic/controlled-term/value-constraint/branch/ControlledTermBranchBuilder.d.ts.map +1 -1
- package/org/metadatacenter/model/cedar/field/dynamic/controlled-term/value-constraint/class/ControlledTermClass.d.ts +2 -1
- package/org/metadatacenter/model/cedar/field/dynamic/controlled-term/value-constraint/class/ControlledTermClass.d.ts.map +1 -1
- package/org/metadatacenter/model/cedar/field/dynamic/controlled-term/value-constraint/class/ControlledTermClassBuilder.d.ts +3 -0
- package/org/metadatacenter/model/cedar/field/dynamic/controlled-term/value-constraint/class/ControlledTermClassBuilder.d.ts.map +1 -1
- package/org/metadatacenter/model/cedar/field/dynamic/controlled-term/value-constraint/ontology/ControlledTermOntology.d.ts +2 -1
- package/org/metadatacenter/model/cedar/field/dynamic/controlled-term/value-constraint/ontology/ControlledTermOntology.d.ts.map +1 -1
- package/org/metadatacenter/model/cedar/field/dynamic/controlled-term/value-constraint/ontology/ControlledTermOntologyBuilder.d.ts +3 -0
- package/org/metadatacenter/model/cedar/field/dynamic/controlled-term/value-constraint/ontology/ControlledTermOntologyBuilder.d.ts.map +1 -1
- package/org/metadatacenter/model/cedar/field/dynamic/controlled-term/value-constraint/value-set/ControlledTermValueSet.d.ts +2 -1
- package/org/metadatacenter/model/cedar/field/dynamic/controlled-term/value-constraint/value-set/ControlledTermValueSet.d.ts.map +1 -1
- package/org/metadatacenter/model/cedar/field/dynamic/controlled-term/value-constraint/value-set/ControlledTermValueSetBuilder.d.ts +3 -0
- package/org/metadatacenter/model/cedar/field/dynamic/controlled-term/value-constraint/value-set/ControlledTermValueSetBuilder.d.ts.map +1 -1
- package/package.json +1 -1
- package/policy.d.ts +1 -0
- package/policy.d.ts.map +1 -1
- package/policy.esm.js +1 -1
- package/policy.esm.js.map +1 -1
- package/policy.js +1 -1
- package/policy.js.map +1 -1
- package/policy.umd.js +1 -1
- package/policy.umd.js.map +1 -1
- package/schema.esm.js +1 -1
- package/schema.esm.js.map +1 -1
- package/schema.js +1 -1
- package/schema.js.map +1 -1
- package/schema.umd.js +1 -1
- package/schema.umd.js.map +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"JsonFieldReaderControlledTerm.d.ts","sourceRoot":"","sources":["../../../../../../../../src/org/metadatacenter/model/cedar/field/dynamic/controlled-term/JsonFieldReaderControlledTerm.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,qCAAqC,CAAC;AAC/D,OAAO,EAAE,yBAAyB,EAAE,MAAM,iDAAiD,CAAC;AAC5F,OAAO,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAC;AACvD,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAG5D,OAAO,EAAE,mCAAmC,EAAE,MAAM,mEAAmE,CAAC;AAOxH,OAAO,EAAE,mBAAmB,EAAE,MAAM,yCAAyC,CAAC;
|
|
1
|
+
{"version":3,"file":"JsonFieldReaderControlledTerm.d.ts","sourceRoot":"","sources":["../../../../../../../../src/org/metadatacenter/model/cedar/field/dynamic/controlled-term/JsonFieldReaderControlledTerm.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,qCAAqC,CAAC;AAC/D,OAAO,EAAE,yBAAyB,EAAE,MAAM,iDAAiD,CAAC;AAC5F,OAAO,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAC;AACvD,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAG5D,OAAO,EAAE,mCAAmC,EAAE,MAAM,mEAAmE,CAAC;AAOxH,OAAO,EAAE,mBAAmB,EAAE,MAAM,yCAAyC,CAAC;AAU9E,qBAAa,6BAA8B,SAAQ,mCAAmC;IAC3E,IAAI,CACX,iBAAiB,EAAE,QAAQ,EAC3B,SAAS,EAAE,mBAAmB,EAC9B,cAAc,EAAE,yBAAyB,EACzC,IAAI,EAAE,QAAQ,GACb,mBAAmB;IA+BtB,OAAO,CAAC,aAAa;IAerB,OAAO,CAAC,UAAU;IAgBlB,OAAO,CAAC,WAAW;IAiBnB,OAAO,CAAC,YAAY;IAepB,OAAO,CAAC,UAAU;IAiBlB,mEAAmE;IACnE,OAAO,CAAC,MAAM,CAAC,GAAG;IAIlB;;;OAGG;IACH,OAAO,CAAC,MAAM,CAAC,oBAAoB;IAWnC;;;;;;OAMG;IACH,OAAO,CAAC,MAAM,CAAC,WAAW;IAsB1B,OAAO,CAAC,eAAe;CAYxB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"YamlFieldReaderControlledTerm.d.ts","sourceRoot":"","sources":["../../../../../../../../src/org/metadatacenter/model/cedar/field/dynamic/controlled-term/YamlFieldReaderControlledTerm.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,qCAAqC,CAAC;AAC/D,OAAO,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAC;AACvD,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAG5D,OAAO,EAAE,mBAAmB,EAAE,MAAM,yCAAyC,CAAC;AAE9E,OAAO,EAAE,mCAAmC,EAAE,MAAM,mEAAmE,CAAC;AAUxH,OAAO,EAAE,yBAAyB,EAAE,MAAM,iDAAiD,CAAC;
|
|
1
|
+
{"version":3,"file":"YamlFieldReaderControlledTerm.d.ts","sourceRoot":"","sources":["../../../../../../../../src/org/metadatacenter/model/cedar/field/dynamic/controlled-term/YamlFieldReaderControlledTerm.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,qCAAqC,CAAC;AAC/D,OAAO,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAC;AACvD,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAG5D,OAAO,EAAE,mBAAmB,EAAE,MAAM,yCAAyC,CAAC;AAE9E,OAAO,EAAE,mCAAmC,EAAE,MAAM,mEAAmE,CAAC;AAUxH,OAAO,EAAE,yBAAyB,EAAE,MAAM,iDAAiD,CAAC;AAiB5F,qBAAa,6BAA8B,SAAQ,mCAAmC;IAC3E,IAAI,CACX,iBAAiB,EAAE,QAAQ,EAC3B,UAAU,EAAE,mBAAmB,EAC/B,cAAc,EAAE,yBAAyB,EACzC,IAAI,EAAE,QAAQ,GACb,mBAAmB;IAuCtB;;;OAGG;IACH,OAAO,CAAC,mBAAmB;IA6C3B;;;;OAIG;IACH,OAAO,CAAC,MAAM,CAAC,yBAAyB;IAaxC;;;;OAIG;IACH,OAAO,CAAC,MAAM,CAAC,WAAW;IAI1B;;;OAGG;IACH,OAAO,CAAC,WAAW;IASnB,mGAAmG;IACnG,OAAO,CAAC,oBAAoB;IAW5B;;;;;;OAMG;IACH,OAAO,CAAC,WAAW;CAiBpB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AbstractJsonControlledTermValueConstraintWriter.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/org/metadatacenter/model/cedar/field/dynamic/controlled-term/value-constraint/AbstractJsonControlledTermValueConstraintWriter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,wCAAwC,CAAC;AAClE,OAAO,EAAE,qCAAqC,EAAE,MAAM,yCAAyC,CAAC;AAChG,OAAO,EAAE,0BAA0B,EAAE,MAAM,qCAAqC,CAAC;AAGjF,8BAAsB,+CAAgD,SAAQ,0BAA0B;IACtG,QAAQ,CAAC,aAAa,CAAC,QAAQ,EAAE,qCAAqC,GAAG,QAAQ;IAEjF;;;OAGG;IACH,SAAS,CAAC,qBAAqB,CAAC,KAAK,EAAE,QAAQ,EAAE,UAAU,EAAE,qCAAqC,GAAG,IAAI;
|
|
1
|
+
{"version":3,"file":"AbstractJsonControlledTermValueConstraintWriter.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/org/metadatacenter/model/cedar/field/dynamic/controlled-term/value-constraint/AbstractJsonControlledTermValueConstraintWriter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,wCAAwC,CAAC;AAClE,OAAO,EAAE,qCAAqC,EAAE,MAAM,yCAAyC,CAAC;AAChG,OAAO,EAAE,0BAA0B,EAAE,MAAM,qCAAqC,CAAC;AAGjF,8BAAsB,+CAAgD,SAAQ,0BAA0B;IACtG,QAAQ,CAAC,aAAa,CAAC,QAAQ,EAAE,qCAAqC,GAAG,QAAQ;IAEjF;;;OAGG;IACH,SAAS,CAAC,qBAAqB,CAAC,KAAK,EAAE,QAAQ,EAAE,UAAU,EAAE,qCAAqC,GAAG,IAAI;CAqB1G"}
|
|
@@ -10,7 +10,7 @@ export declare abstract class AbstractYamlControlledTermValueConstraintWriter ex
|
|
|
10
10
|
protected writeSourceSystem(entry: JsonNode, constraint: ControlledTermAbstractValueConstraint): void;
|
|
11
11
|
/** The source ontology's canonical identity, written after the keys naming the source. */
|
|
12
12
|
protected writeSourceIri(entry: JsonNode, constraint: ControlledTermAbstractValueConstraint): void;
|
|
13
|
-
/**
|
|
13
|
+
/** Write the optional pin and links after the constraint identity. */
|
|
14
14
|
protected writeVersion(entry: JsonNode, constraint: ControlledTermAbstractValueConstraint): void;
|
|
15
15
|
}
|
|
16
16
|
//# sourceMappingURL=AbstractYamlControlledTermValueConstraintWriter.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AbstractYamlControlledTermValueConstraintWriter.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/org/metadatacenter/model/cedar/field/dynamic/controlled-term/value-constraint/AbstractYamlControlledTermValueConstraintWriter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,wCAAwC,CAAC;AAClE,OAAO,EAAE,qCAAqC,EAAE,MAAM,yCAAyC,CAAC;AAChG,OAAO,EAAE,0BAA0B,EAAE,MAAM,qCAAqC,CAAC;AAGjF,8BAAsB,+CAAgD,SAAQ,0BAA0B;IACtG,QAAQ,CAAC,aAAa,CAAC,QAAQ,EAAE,qCAAqC,GAAG,QAAQ;IAEjF;;;OAGG;IACH,SAAS,CAAC,iBAAiB,CAAC,KAAK,EAAE,QAAQ,EAAE,UAAU,EAAE,qCAAqC,GAAG,IAAI;IAMrG,0FAA0F;IAC1F,SAAS,CAAC,cAAc,CAAC,KAAK,EAAE,QAAQ,EAAE,UAAU,EAAE,qCAAqC,GAAG,IAAI;IAMlG,
|
|
1
|
+
{"version":3,"file":"AbstractYamlControlledTermValueConstraintWriter.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/org/metadatacenter/model/cedar/field/dynamic/controlled-term/value-constraint/AbstractYamlControlledTermValueConstraintWriter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,wCAAwC,CAAC;AAClE,OAAO,EAAE,qCAAqC,EAAE,MAAM,yCAAyC,CAAC;AAChG,OAAO,EAAE,0BAA0B,EAAE,MAAM,qCAAqC,CAAC;AAGjF,8BAAsB,+CAAgD,SAAQ,0BAA0B;IACtG,QAAQ,CAAC,aAAa,CAAC,QAAQ,EAAE,qCAAqC,GAAG,QAAQ;IAEjF;;;OAGG;IACH,SAAS,CAAC,iBAAiB,CAAC,KAAK,EAAE,QAAQ,EAAE,UAAU,EAAE,qCAAqC,GAAG,IAAI;IAMrG,0FAA0F;IAC1F,SAAS,CAAC,cAAc,CAAC,KAAK,EAAE,QAAQ,EAAE,UAAU,EAAE,qCAAqC,GAAG,IAAI;IAMlG,sEAAsE;IACtE,SAAS,CAAC,YAAY,CAAC,KAAK,EAAE,QAAQ,EAAE,UAAU,EAAE,qCAAqC,GAAG,IAAI;CAejG"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/** Optional public URLs shared by all controlled-term constraints and terminology results. */
|
|
2
|
+
export interface ConstraintLinks {
|
|
3
|
+
readonly landingPage?: string;
|
|
4
|
+
readonly icon?: string;
|
|
5
|
+
}
|
|
6
|
+
/** Runtime validation uses the same compiled schema as saved artifacts, not TypeScript types alone. */
|
|
7
|
+
export declare function readConstraintLinks(value: unknown): ConstraintLinks | null;
|
|
8
|
+
//# sourceMappingURL=ConstraintLinks.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ConstraintLinks.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/org/metadatacenter/model/cedar/field/dynamic/controlled-term/value-constraint/ConstraintLinks.ts"],"names":[],"mappings":"AAEA,8FAA8F;AAC9F,MAAM,WAAW,eAAe;IAC9B,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,CAAC;IAC9B,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;CACxB;AAED,uGAAuG;AACvG,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,OAAO,GAAG,eAAe,GAAG,IAAI,CAQ1E"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { ValueConstraints } from '../../../ValueConstraints';
|
|
2
2
|
import { Iri } from '../../../../types/wrapped-types/Iri';
|
|
3
3
|
import { ControlledTermVersion } from './ControlledTermVersion';
|
|
4
|
+
import { ConstraintLinks } from './ConstraintLinks';
|
|
4
5
|
interface ClassWithClassName {
|
|
5
6
|
className: string;
|
|
6
7
|
}
|
|
@@ -19,7 +20,9 @@ export declare abstract class ControlledTermAbstractValueConstraint extends Valu
|
|
|
19
20
|
private readonly _iri;
|
|
20
21
|
private readonly _sourceSystem;
|
|
21
22
|
private readonly _version;
|
|
22
|
-
|
|
23
|
+
private readonly _links;
|
|
24
|
+
protected constructor(iri?: Iri | null, sourceSystem?: string | null, version?: ControlledTermVersion | null, links?: ConstraintLinks | null);
|
|
25
|
+
get links(): ConstraintLinks | null;
|
|
23
26
|
get iri(): Iri | null;
|
|
24
27
|
get sourceSystem(): string | null;
|
|
25
28
|
get version(): ControlledTermVersion | null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ControlledTermAbstractValueConstraint.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/org/metadatacenter/model/cedar/field/dynamic/controlled-term/value-constraint/ControlledTermAbstractValueConstraint.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAC7D,OAAO,EAAE,GAAG,EAAE,MAAM,qCAAqC,CAAC;AAC1D,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;
|
|
1
|
+
{"version":3,"file":"ControlledTermAbstractValueConstraint.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/org/metadatacenter/model/cedar/field/dynamic/controlled-term/value-constraint/ControlledTermAbstractValueConstraint.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAC7D,OAAO,EAAE,GAAG,EAAE,MAAM,qCAAqC,CAAC;AAC1D,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAChE,OAAO,EAAE,eAAe,EAAuB,MAAM,mBAAmB,CAAC;AAEzE,UAAU,kBAAkB;IAC1B,SAAS,EAAE,MAAM,CAAC;CACnB;AAED;;;;;;;;;GASG;AACH,8BAAsB,qCAAsC,SAAQ,gBAAiB,YAAW,kBAAkB;IAChH,SAAS,SAA2C;IACpD,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAa;IAClC,OAAO,CAAC,QAAQ,CAAC,aAAa,CAAgB;IAC9C,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAA+B;IAExD,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAyB;IAEhD,SAAS,aACP,GAAG,GAAE,GAAG,GAAG,IAAW,EACtB,YAAY,GAAE,MAAM,GAAG,IAAW,EAClC,OAAO,GAAE,qBAAqB,GAAG,IAAW,EAC5C,KAAK,GAAE,eAAe,GAAG,IAAW;IAStC,IAAI,KAAK,IAAI,eAAe,GAAG,IAAI,CAElC;IAED,IAAI,GAAG,IAAI,GAAG,GAAG,IAAI,CAEpB;IAED,IAAI,YAAY,IAAI,MAAM,GAAG,IAAI,CAEhC;IAED,IAAI,OAAO,IAAI,qBAAqB,GAAG,IAAI,CAE1C;CACF"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Iri } from '../../../../../types/wrapped-types/Iri';
|
|
2
2
|
import { ControlledTermAbstractValueConstraint } from '../ControlledTermAbstractValueConstraint';
|
|
3
3
|
import { ControlledTermVersion } from '../ControlledTermVersion';
|
|
4
|
+
import { ConstraintLinks } from '../ConstraintLinks';
|
|
4
5
|
export declare class ControlledTermBranch extends ControlledTermAbstractValueConstraint {
|
|
5
6
|
static className: string;
|
|
6
7
|
className: string;
|
|
@@ -9,7 +10,7 @@ export declare class ControlledTermBranch extends ControlledTermAbstractValueCon
|
|
|
9
10
|
private readonly _name;
|
|
10
11
|
private readonly _uri;
|
|
11
12
|
private readonly _maxDepth;
|
|
12
|
-
constructor(source: string, acronym: string, name: string, maxDepth: number, uri: Iri, iri?: Iri | null, sourceSystem?: string | null, version?: ControlledTermVersion | null);
|
|
13
|
+
constructor(source: string, acronym: string, name: string, maxDepth: number, uri: Iri, iri?: Iri | null, sourceSystem?: string | null, version?: ControlledTermVersion | null, links?: ConstraintLinks | null);
|
|
13
14
|
get source(): string;
|
|
14
15
|
get acronym(): string;
|
|
15
16
|
get name(): string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ControlledTermBranch.d.ts","sourceRoot":"","sources":["../../../../../../../../../../src/org/metadatacenter/model/cedar/field/dynamic/controlled-term/value-constraint/branch/ControlledTermBranch.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,wCAAwC,CAAC;AAC7D,OAAO,EAAE,qCAAqC,EAAE,MAAM,0CAA0C,CAAC;AACjG,OAAO,EAAE,qBAAqB,EAAE,MAAM,0BAA0B,CAAC;
|
|
1
|
+
{"version":3,"file":"ControlledTermBranch.d.ts","sourceRoot":"","sources":["../../../../../../../../../../src/org/metadatacenter/model/cedar/field/dynamic/controlled-term/value-constraint/branch/ControlledTermBranch.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,wCAAwC,CAAC;AAC7D,OAAO,EAAE,qCAAqC,EAAE,MAAM,0CAA0C,CAAC;AACjG,OAAO,EAAE,qBAAqB,EAAE,MAAM,0BAA0B,CAAC;AACjE,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAErD,qBAAa,oBAAqB,SAAQ,qCAAqC;IAC7E,MAAM,CAAC,SAAS,SAA0B;IACnC,SAAS,SAA0B;IAC1C,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAS;IACjC,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAS;IAClC,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAS;IAC/B,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAM;IAC3B,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAa;gBAGrC,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,MAAM,EACf,IAAI,EAAE,MAAM,EACZ,QAAQ,EAAE,MAAM,EAChB,GAAG,EAAE,GAAG,EACR,GAAG,GAAE,GAAG,GAAG,IAAW,EACtB,YAAY,GAAE,MAAM,GAAG,IAAW,EAClC,OAAO,GAAE,qBAAqB,GAAG,IAAW,EAC5C,KAAK,GAAE,eAAe,GAAG,IAAW;IAUtC,IAAI,MAAM,IAAI,MAAM,CAEnB;IAED,IAAI,OAAO,IAAI,MAAM,CAEpB;IAED,IAAI,IAAI,IAAI,MAAM,CAEjB;IAED,IAAI,GAAG,IAAI,GAAG,CAEb;IAED,IAAI,QAAQ,IAAI,MAAM,CAErB;CACF"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Iri } from '../../../../../types/wrapped-types/Iri';
|
|
2
2
|
import { ControlledTermBranch } from './ControlledTermBranch';
|
|
3
3
|
import { ControlledTermVersion } from '../ControlledTermVersion';
|
|
4
|
+
import { ConstraintLinks } from '../ConstraintLinks';
|
|
4
5
|
export declare class ControlledTermBranchBuilder {
|
|
5
6
|
private _source;
|
|
6
7
|
private _acronym;
|
|
@@ -10,6 +11,7 @@ export declare class ControlledTermBranchBuilder {
|
|
|
10
11
|
private _iri;
|
|
11
12
|
private _sourceSystem;
|
|
12
13
|
private _version;
|
|
14
|
+
private _links;
|
|
13
15
|
withSource(source: string): ControlledTermBranchBuilder;
|
|
14
16
|
withAcronym(acronym: string): ControlledTermBranchBuilder;
|
|
15
17
|
withName(name: string): ControlledTermBranchBuilder;
|
|
@@ -21,6 +23,7 @@ export declare class ControlledTermBranchBuilder {
|
|
|
21
23
|
withSourceSystem(sourceSystem: string | null): ControlledTermBranchBuilder;
|
|
22
24
|
/** The snapshot this entry is pinned to; null resolves against the latest. */
|
|
23
25
|
withVersion(version: ControlledTermVersion | null): ControlledTermBranchBuilder;
|
|
26
|
+
withLinks(links: ConstraintLinks | null): ControlledTermBranchBuilder;
|
|
24
27
|
build(): ControlledTermBranch;
|
|
25
28
|
}
|
|
26
29
|
//# sourceMappingURL=ControlledTermBranchBuilder.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ControlledTermBranchBuilder.d.ts","sourceRoot":"","sources":["../../../../../../../../../../src/org/metadatacenter/model/cedar/field/dynamic/controlled-term/value-constraint/branch/ControlledTermBranchBuilder.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,wCAAwC,CAAC;AAC7D,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAE9D,OAAO,EAAE,qBAAqB,EAAE,MAAM,0BAA0B,CAAC;
|
|
1
|
+
{"version":3,"file":"ControlledTermBranchBuilder.d.ts","sourceRoot":"","sources":["../../../../../../../../../../src/org/metadatacenter/model/cedar/field/dynamic/controlled-term/value-constraint/branch/ControlledTermBranchBuilder.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,wCAAwC,CAAC;AAC7D,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAE9D,OAAO,EAAE,qBAAqB,EAAE,MAAM,0BAA0B,CAAC;AACjE,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAErD,qBAAa,2BAA2B;IACtC,OAAO,CAAC,OAAO,CAAc;IAC7B,OAAO,CAAC,QAAQ,CAAc;IAC9B,OAAO,CAAC,KAAK,CAAc;IAC3B,OAAO,CAAC,IAAI,CAAoB;IAChC,OAAO,CAAC,SAAS,CAAa;IAC9B,OAAO,CAAC,IAAI,CAAoB;IAChC,OAAO,CAAC,aAAa,CAAuB;IAC5C,OAAO,CAAC,QAAQ,CAAsC;IACtD,OAAO,CAAC,MAAM,CAAgC;IAEvC,UAAU,CAAC,MAAM,EAAE,MAAM,GAAG,2BAA2B;IAKvD,WAAW,CAAC,OAAO,EAAE,MAAM,GAAG,2BAA2B;IAKzD,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,2BAA2B;IAKnD,OAAO,CAAC,GAAG,EAAE,GAAG,GAAG,2BAA2B;IAK9C,YAAY,CAAC,QAAQ,EAAE,MAAM,GAAG,2BAA2B;IAKlE,wFAAwF;IACjF,OAAO,CAAC,GAAG,EAAE,GAAG,GAAG,IAAI,GAAG,2BAA2B;IAK5D,+DAA+D;IACxD,gBAAgB,CAAC,YAAY,EAAE,MAAM,GAAG,IAAI,GAAG,2BAA2B;IAKjF,8EAA8E;IACvE,WAAW,CAAC,OAAO,EAAE,qBAAqB,GAAG,IAAI,GAAG,2BAA2B;IAK/E,SAAS,CAAC,KAAK,EAAE,eAAe,GAAG,IAAI,GAAG,2BAA2B;IAKrE,KAAK,IAAI,oBAAoB;CAiBrC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Iri } from '../../../../../types/wrapped-types/Iri';
|
|
2
2
|
import { ControlledTermAbstractValueConstraint } from '../ControlledTermAbstractValueConstraint';
|
|
3
3
|
import { ControlledTermVersion } from '../ControlledTermVersion';
|
|
4
|
+
import { ConstraintLinks } from '../ConstraintLinks';
|
|
4
5
|
import { BioportalTermType } from '../../../../../types/bioportal-types/BioportalTermType';
|
|
5
6
|
export declare class ControlledTermClass extends ControlledTermAbstractValueConstraint {
|
|
6
7
|
static className: string;
|
|
@@ -10,7 +11,7 @@ export declare class ControlledTermClass extends ControlledTermAbstractValueCons
|
|
|
10
11
|
private readonly _type;
|
|
11
12
|
private readonly _prefLabel;
|
|
12
13
|
private readonly _uri;
|
|
13
|
-
constructor(label: string, source: string, type: BioportalTermType, prefLabel: string, uri: Iri, iri?: Iri | null, sourceSystem?: string | null, version?: ControlledTermVersion | null);
|
|
14
|
+
constructor(label: string, source: string, type: BioportalTermType, prefLabel: string, uri: Iri, iri?: Iri | null, sourceSystem?: string | null, version?: ControlledTermVersion | null, links?: ConstraintLinks | null);
|
|
14
15
|
get label(): string;
|
|
15
16
|
get source(): string;
|
|
16
17
|
get type(): BioportalTermType;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ControlledTermClass.d.ts","sourceRoot":"","sources":["../../../../../../../../../../src/org/metadatacenter/model/cedar/field/dynamic/controlled-term/value-constraint/class/ControlledTermClass.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,wCAAwC,CAAC;AAC7D,OAAO,EAAE,qCAAqC,EAAE,MAAM,0CAA0C,CAAC;AACjG,OAAO,EAAE,qBAAqB,EAAE,MAAM,0BAA0B,CAAC;AACjE,OAAO,EAAE,iBAAiB,EAAE,MAAM,wDAAwD,CAAC;AAE3F,qBAAa,mBAAoB,SAAQ,qCAAqC;IAC5E,MAAM,CAAC,SAAS,SAAyB;IAClC,SAAS,SAAyB;IACzC,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAS;IAChC,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAS;IACjC,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAoB;IAC1C,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAS;IACpC,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAM;gBAGzB,KAAK,EAAE,MAAM,EACb,MAAM,EAAE,MAAM,EACd,IAAI,EAAE,iBAAiB,EACvB,SAAS,EAAE,MAAM,EACjB,GAAG,EAAE,GAAG,EACR,GAAG,GAAE,GAAG,GAAG,IAAW,EACtB,YAAY,GAAE,MAAM,GAAG,IAAW,EAClC,OAAO,GAAE,qBAAqB,GAAG,IAAW;
|
|
1
|
+
{"version":3,"file":"ControlledTermClass.d.ts","sourceRoot":"","sources":["../../../../../../../../../../src/org/metadatacenter/model/cedar/field/dynamic/controlled-term/value-constraint/class/ControlledTermClass.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,wCAAwC,CAAC;AAC7D,OAAO,EAAE,qCAAqC,EAAE,MAAM,0CAA0C,CAAC;AACjG,OAAO,EAAE,qBAAqB,EAAE,MAAM,0BAA0B,CAAC;AACjE,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,EAAE,iBAAiB,EAAE,MAAM,wDAAwD,CAAC;AAE3F,qBAAa,mBAAoB,SAAQ,qCAAqC;IAC5E,MAAM,CAAC,SAAS,SAAyB;IAClC,SAAS,SAAyB;IACzC,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAS;IAChC,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAS;IACjC,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAoB;IAC1C,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAS;IACpC,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAM;gBAGzB,KAAK,EAAE,MAAM,EACb,MAAM,EAAE,MAAM,EACd,IAAI,EAAE,iBAAiB,EACvB,SAAS,EAAE,MAAM,EACjB,GAAG,EAAE,GAAG,EACR,GAAG,GAAE,GAAG,GAAG,IAAW,EACtB,YAAY,GAAE,MAAM,GAAG,IAAW,EAClC,OAAO,GAAE,qBAAqB,GAAG,IAAW,EAC5C,KAAK,GAAE,eAAe,GAAG,IAAW;IAUtC,IAAI,KAAK,IAAI,MAAM,CAElB;IAED,IAAI,MAAM,IAAI,MAAM,CAEnB;IAED,IAAI,IAAI,IAAI,iBAAiB,CAE5B;IAED,IAAI,SAAS,IAAI,MAAM,CAEtB;IAED,IAAI,GAAG,IAAI,GAAG,CAEb;CACF"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Iri } from '../../../../../types/wrapped-types/Iri';
|
|
2
2
|
import { ControlledTermClass } from './ControlledTermClass';
|
|
3
3
|
import { ControlledTermVersion } from '../ControlledTermVersion';
|
|
4
|
+
import { ConstraintLinks } from '../ConstraintLinks';
|
|
4
5
|
import { BioportalTermType } from '../../../../../types/bioportal-types/BioportalTermType';
|
|
5
6
|
export declare class ControlledTermClassBuilder {
|
|
6
7
|
private _label;
|
|
@@ -11,6 +12,7 @@ export declare class ControlledTermClassBuilder {
|
|
|
11
12
|
private _iri;
|
|
12
13
|
private _sourceSystem;
|
|
13
14
|
private _version;
|
|
15
|
+
private _links;
|
|
14
16
|
withLabel(label: string): ControlledTermClassBuilder;
|
|
15
17
|
withSource(source: string): ControlledTermClassBuilder;
|
|
16
18
|
withType(type: BioportalTermType): ControlledTermClassBuilder;
|
|
@@ -22,6 +24,7 @@ export declare class ControlledTermClassBuilder {
|
|
|
22
24
|
withSourceSystem(sourceSystem: string | null): ControlledTermClassBuilder;
|
|
23
25
|
/** The snapshot this entry is pinned to; null resolves against the latest. */
|
|
24
26
|
withVersion(version: ControlledTermVersion | null): ControlledTermClassBuilder;
|
|
27
|
+
withLinks(links: ConstraintLinks | null): ControlledTermClassBuilder;
|
|
25
28
|
build(): ControlledTermClass;
|
|
26
29
|
}
|
|
27
30
|
//# sourceMappingURL=ControlledTermClassBuilder.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ControlledTermClassBuilder.d.ts","sourceRoot":"","sources":["../../../../../../../../../../src/org/metadatacenter/model/cedar/field/dynamic/controlled-term/value-constraint/class/ControlledTermClassBuilder.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,wCAAwC,CAAC;AAC7D,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAE5D,OAAO,EAAE,qBAAqB,EAAE,MAAM,0BAA0B,CAAC;AACjE,OAAO,EAAE,iBAAiB,EAAE,MAAM,wDAAwD,CAAC;AAE3F,qBAAa,0BAA0B;IACrC,OAAO,CAAC,MAAM,CAAc;IAC5B,OAAO,CAAC,OAAO,CAAc;IAC7B,OAAO,CAAC,KAAK,CAA6C;IAC1D,OAAO,CAAC,UAAU,CAAc;IAChC,OAAO,CAAC,IAAI,CAAoB;IAChC,OAAO,CAAC,IAAI,CAAoB;IAChC,OAAO,CAAC,aAAa,CAAuB;IAC5C,OAAO,CAAC,QAAQ,CAAsC;
|
|
1
|
+
{"version":3,"file":"ControlledTermClassBuilder.d.ts","sourceRoot":"","sources":["../../../../../../../../../../src/org/metadatacenter/model/cedar/field/dynamic/controlled-term/value-constraint/class/ControlledTermClassBuilder.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,wCAAwC,CAAC;AAC7D,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAE5D,OAAO,EAAE,qBAAqB,EAAE,MAAM,0BAA0B,CAAC;AACjE,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,EAAE,iBAAiB,EAAE,MAAM,wDAAwD,CAAC;AAE3F,qBAAa,0BAA0B;IACrC,OAAO,CAAC,MAAM,CAAc;IAC5B,OAAO,CAAC,OAAO,CAAc;IAC7B,OAAO,CAAC,KAAK,CAA6C;IAC1D,OAAO,CAAC,UAAU,CAAc;IAChC,OAAO,CAAC,IAAI,CAAoB;IAChC,OAAO,CAAC,IAAI,CAAoB;IAChC,OAAO,CAAC,aAAa,CAAuB;IAC5C,OAAO,CAAC,QAAQ,CAAsC;IACtD,OAAO,CAAC,MAAM,CAAgC;IAEvC,SAAS,CAAC,KAAK,EAAE,MAAM,GAAG,0BAA0B;IAKpD,UAAU,CAAC,MAAM,EAAE,MAAM,GAAG,0BAA0B;IAKtD,QAAQ,CAAC,IAAI,EAAE,iBAAiB,GAAG,0BAA0B;IAK7D,aAAa,CAAC,SAAS,EAAE,MAAM,GAAG,0BAA0B;IAK5D,OAAO,CAAC,GAAG,EAAE,GAAG,GAAG,0BAA0B;IAKpD,wFAAwF;IACjF,OAAO,CAAC,GAAG,EAAE,GAAG,GAAG,IAAI,GAAG,0BAA0B;IAK3D,+DAA+D;IACxD,gBAAgB,CAAC,YAAY,EAAE,MAAM,GAAG,IAAI,GAAG,0BAA0B;IAKhF,8EAA8E;IACvE,WAAW,CAAC,OAAO,EAAE,qBAAqB,GAAG,IAAI,GAAG,0BAA0B;IAK9E,SAAS,CAAC,KAAK,EAAE,eAAe,GAAG,IAAI,GAAG,0BAA0B;IAKpE,KAAK,IAAI,mBAAmB;CAkBpC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Iri } from '../../../../../types/wrapped-types/Iri';
|
|
2
2
|
import { ControlledTermAbstractValueConstraint } from '../ControlledTermAbstractValueConstraint';
|
|
3
3
|
import { ControlledTermVersion } from '../ControlledTermVersion';
|
|
4
|
+
import { ConstraintLinks } from '../ConstraintLinks';
|
|
4
5
|
export declare class ControlledTermOntology extends ControlledTermAbstractValueConstraint {
|
|
5
6
|
static className: string;
|
|
6
7
|
className: string;
|
|
@@ -8,7 +9,7 @@ export declare class ControlledTermOntology extends ControlledTermAbstractValueC
|
|
|
8
9
|
private readonly _name;
|
|
9
10
|
private readonly _uri;
|
|
10
11
|
private readonly _numTerms;
|
|
11
|
-
constructor(acronym: string, name: string, numTerms: number | null, uri: Iri, iri?: Iri | null, sourceSystem?: string | null, version?: ControlledTermVersion | null);
|
|
12
|
+
constructor(acronym: string, name: string, numTerms: number | null, uri: Iri, iri?: Iri | null, sourceSystem?: string | null, version?: ControlledTermVersion | null, links?: ConstraintLinks | null);
|
|
12
13
|
get acronym(): string;
|
|
13
14
|
get name(): string;
|
|
14
15
|
get uri(): Iri;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ControlledTermOntology.d.ts","sourceRoot":"","sources":["../../../../../../../../../../src/org/metadatacenter/model/cedar/field/dynamic/controlled-term/value-constraint/ontology/ControlledTermOntology.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,wCAAwC,CAAC;AAC7D,OAAO,EAAE,qCAAqC,EAAE,MAAM,0CAA0C,CAAC;AACjG,OAAO,EAAE,qBAAqB,EAAE,MAAM,0BAA0B,CAAC;
|
|
1
|
+
{"version":3,"file":"ControlledTermOntology.d.ts","sourceRoot":"","sources":["../../../../../../../../../../src/org/metadatacenter/model/cedar/field/dynamic/controlled-term/value-constraint/ontology/ControlledTermOntology.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,wCAAwC,CAAC;AAC7D,OAAO,EAAE,qCAAqC,EAAE,MAAM,0CAA0C,CAAC;AACjG,OAAO,EAAE,qBAAqB,EAAE,MAAM,0BAA0B,CAAC;AACjE,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAErD,qBAAa,sBAAuB,SAAQ,qCAAqC;IAC/E,MAAM,CAAC,SAAS,SAA4B;IACrC,SAAS,SAA4B;IAC5C,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAS;IAClC,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAS;IAC/B,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAM;IAC3B,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAoB;gBAG5C,OAAO,EAAE,MAAM,EACf,IAAI,EAAE,MAAM,EACZ,QAAQ,EAAE,MAAM,GAAG,IAAI,EACvB,GAAG,EAAE,GAAG,EACR,GAAG,GAAE,GAAG,GAAG,IAAW,EACtB,YAAY,GAAE,MAAM,GAAG,IAAW,EAClC,OAAO,GAAE,qBAAqB,GAAG,IAAW,EAC5C,KAAK,GAAE,eAAe,GAAG,IAAW;IAStC,IAAI,OAAO,IAAI,MAAM,CAEpB;IAED,IAAI,IAAI,IAAI,MAAM,CAEjB;IAED,IAAI,GAAG,IAAI,GAAG,CAEb;IAED,IAAI,QAAQ,IAAI,MAAM,GAAG,IAAI,CAE5B;CACF"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Iri } from '../../../../../types/wrapped-types/Iri';
|
|
2
2
|
import { ControlledTermOntology } from './ControlledTermOntology';
|
|
3
3
|
import { ControlledTermVersion } from '../ControlledTermVersion';
|
|
4
|
+
import { ConstraintLinks } from '../ConstraintLinks';
|
|
4
5
|
export declare class ControlledTermOntologyBuilder {
|
|
5
6
|
private acronym;
|
|
6
7
|
private name;
|
|
@@ -9,6 +10,7 @@ export declare class ControlledTermOntologyBuilder {
|
|
|
9
10
|
private iri;
|
|
10
11
|
private sourceSystem;
|
|
11
12
|
private version;
|
|
13
|
+
private links;
|
|
12
14
|
withAcronym(acronym: string): ControlledTermOntologyBuilder;
|
|
13
15
|
withName(name: string): ControlledTermOntologyBuilder;
|
|
14
16
|
withNumTerms(numTerms: number | null): ControlledTermOntologyBuilder;
|
|
@@ -19,6 +21,7 @@ export declare class ControlledTermOntologyBuilder {
|
|
|
19
21
|
withSourceSystem(sourceSystem: string | null): ControlledTermOntologyBuilder;
|
|
20
22
|
/** The snapshot this entry is pinned to; null resolves against the latest. */
|
|
21
23
|
withVersion(version: ControlledTermVersion | null): ControlledTermOntologyBuilder;
|
|
24
|
+
withLinks(links: ConstraintLinks | null): ControlledTermOntologyBuilder;
|
|
22
25
|
build(): ControlledTermOntology;
|
|
23
26
|
}
|
|
24
27
|
//# sourceMappingURL=ControlledTermOntologyBuilder.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ControlledTermOntologyBuilder.d.ts","sourceRoot":"","sources":["../../../../../../../../../../src/org/metadatacenter/model/cedar/field/dynamic/controlled-term/value-constraint/ontology/ControlledTermOntologyBuilder.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,wCAAwC,CAAC;AAC7D,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAElE,OAAO,EAAE,qBAAqB,EAAE,MAAM,0BAA0B,CAAC;
|
|
1
|
+
{"version":3,"file":"ControlledTermOntologyBuilder.d.ts","sourceRoot":"","sources":["../../../../../../../../../../src/org/metadatacenter/model/cedar/field/dynamic/controlled-term/value-constraint/ontology/ControlledTermOntologyBuilder.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,wCAAwC,CAAC;AAC7D,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAElE,OAAO,EAAE,qBAAqB,EAAE,MAAM,0BAA0B,CAAC;AACjE,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAErD,qBAAa,6BAA6B;IACxC,OAAO,CAAC,OAAO,CAAc;IAC7B,OAAO,CAAC,IAAI,CAAc;IAC1B,OAAO,CAAC,QAAQ,CAAuB;IACvC,OAAO,CAAC,GAAG,CAAoB;IAC/B,OAAO,CAAC,GAAG,CAAoB;IAC/B,OAAO,CAAC,YAAY,CAAuB;IAC3C,OAAO,CAAC,OAAO,CAAsC;IACrD,OAAO,CAAC,KAAK,CAAgC;IAEtC,WAAW,CAAC,OAAO,EAAE,MAAM,GAAG,6BAA6B;IAK3D,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,6BAA6B;IAKrD,YAAY,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI,GAAG,6BAA6B;IAKpE,OAAO,CAAC,GAAG,EAAE,GAAG,GAAG,6BAA6B;IAKvD,wFAAwF;IACjF,OAAO,CAAC,GAAG,EAAE,GAAG,GAAG,IAAI,GAAG,6BAA6B;IAK9D,+DAA+D;IACxD,gBAAgB,CAAC,YAAY,EAAE,MAAM,GAAG,IAAI,GAAG,6BAA6B;IAKnF,8EAA8E;IACvE,WAAW,CAAC,OAAO,EAAE,qBAAqB,GAAG,IAAI,GAAG,6BAA6B;IAKjF,SAAS,CAAC,KAAK,EAAE,eAAe,GAAG,IAAI,GAAG,6BAA6B;IAKvE,KAAK,IAAI,sBAAsB;CAevC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Iri } from '../../../../../types/wrapped-types/Iri';
|
|
2
2
|
import { ControlledTermAbstractValueConstraint } from '../ControlledTermAbstractValueConstraint';
|
|
3
3
|
import { ControlledTermVersion } from '../ControlledTermVersion';
|
|
4
|
+
import { ConstraintLinks } from '../ConstraintLinks';
|
|
4
5
|
export declare class ControlledTermValueSet extends ControlledTermAbstractValueConstraint {
|
|
5
6
|
static className: string;
|
|
6
7
|
className: string;
|
|
@@ -8,7 +9,7 @@ export declare class ControlledTermValueSet extends ControlledTermAbstractValueC
|
|
|
8
9
|
private readonly _name;
|
|
9
10
|
private readonly _uri;
|
|
10
11
|
private readonly _numTerms;
|
|
11
|
-
constructor(vsCollection: string, name: string, numTerms: number | null, uri: Iri, iri?: Iri | null, sourceSystem?: string | null, version?: ControlledTermVersion | null);
|
|
12
|
+
constructor(vsCollection: string, name: string, numTerms: number | null, uri: Iri, iri?: Iri | null, sourceSystem?: string | null, version?: ControlledTermVersion | null, links?: ConstraintLinks | null);
|
|
12
13
|
get vsCollection(): string;
|
|
13
14
|
get name(): string;
|
|
14
15
|
get uri(): Iri;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ControlledTermValueSet.d.ts","sourceRoot":"","sources":["../../../../../../../../../../src/org/metadatacenter/model/cedar/field/dynamic/controlled-term/value-constraint/value-set/ControlledTermValueSet.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,wCAAwC,CAAC;AAC7D,OAAO,EAAE,qCAAqC,EAAE,MAAM,0CAA0C,CAAC;AACjG,OAAO,EAAE,qBAAqB,EAAE,MAAM,0BAA0B,CAAC;
|
|
1
|
+
{"version":3,"file":"ControlledTermValueSet.d.ts","sourceRoot":"","sources":["../../../../../../../../../../src/org/metadatacenter/model/cedar/field/dynamic/controlled-term/value-constraint/value-set/ControlledTermValueSet.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,wCAAwC,CAAC;AAC7D,OAAO,EAAE,qCAAqC,EAAE,MAAM,0CAA0C,CAAC;AACjG,OAAO,EAAE,qBAAqB,EAAE,MAAM,0BAA0B,CAAC;AACjE,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAErD,qBAAa,sBAAuB,SAAQ,qCAAqC;IAC/E,MAAM,CAAC,SAAS,SAA4B;IACrC,SAAS,SAA4B;IAC5C,OAAO,CAAC,QAAQ,CAAC,aAAa,CAAS;IACvC,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAS;IAC/B,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAM;IAC3B,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAoB;gBAG5C,YAAY,EAAE,MAAM,EACpB,IAAI,EAAE,MAAM,EACZ,QAAQ,EAAE,MAAM,GAAG,IAAI,EACvB,GAAG,EAAE,GAAG,EACR,GAAG,GAAE,GAAG,GAAG,IAAW,EACtB,YAAY,GAAE,MAAM,GAAG,IAAW,EAClC,OAAO,GAAE,qBAAqB,GAAG,IAAW,EAC5C,KAAK,GAAE,eAAe,GAAG,IAAW;IAStC,IAAI,YAAY,IAAI,MAAM,CAEzB;IAED,IAAI,IAAI,IAAI,MAAM,CAEjB;IAED,IAAI,GAAG,IAAI,GAAG,CAEb;IAED,IAAI,QAAQ,IAAI,MAAM,GAAG,IAAI,CAE5B;CACF"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Iri } from '../../../../../types/wrapped-types/Iri';
|
|
2
2
|
import { ControlledTermValueSet } from './ControlledTermValueSet';
|
|
3
3
|
import { ControlledTermVersion } from '../ControlledTermVersion';
|
|
4
|
+
import { ConstraintLinks } from '../ConstraintLinks';
|
|
4
5
|
export declare class ControlledTermValueSetBuilder {
|
|
5
6
|
private _vsCollection;
|
|
6
7
|
private _name;
|
|
@@ -9,6 +10,7 @@ export declare class ControlledTermValueSetBuilder {
|
|
|
9
10
|
private _iri;
|
|
10
11
|
private _sourceSystem;
|
|
11
12
|
private _version;
|
|
13
|
+
private _links;
|
|
12
14
|
withVsCollection(vsCollection: string): ControlledTermValueSetBuilder;
|
|
13
15
|
withName(name: string): ControlledTermValueSetBuilder;
|
|
14
16
|
withUri(uri: Iri): ControlledTermValueSetBuilder;
|
|
@@ -20,6 +22,7 @@ export declare class ControlledTermValueSetBuilder {
|
|
|
20
22
|
withSourceSystem(sourceSystem: string | null): ControlledTermValueSetBuilder;
|
|
21
23
|
/** The snapshot this entry is pinned to; null resolves against the latest. */
|
|
22
24
|
withVersion(version: ControlledTermVersion | null): ControlledTermValueSetBuilder;
|
|
25
|
+
withLinks(links: ConstraintLinks | null): ControlledTermValueSetBuilder;
|
|
23
26
|
build(): ControlledTermValueSet;
|
|
24
27
|
}
|
|
25
28
|
//# sourceMappingURL=ControlledTermValueSetBuilder.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ControlledTermValueSetBuilder.d.ts","sourceRoot":"","sources":["../../../../../../../../../../src/org/metadatacenter/model/cedar/field/dynamic/controlled-term/value-constraint/value-set/ControlledTermValueSetBuilder.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,wCAAwC,CAAC;AAC7D,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAElE,OAAO,EAAE,qBAAqB,EAAE,MAAM,0BAA0B,CAAC;
|
|
1
|
+
{"version":3,"file":"ControlledTermValueSetBuilder.d.ts","sourceRoot":"","sources":["../../../../../../../../../../src/org/metadatacenter/model/cedar/field/dynamic/controlled-term/value-constraint/value-set/ControlledTermValueSetBuilder.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,wCAAwC,CAAC;AAC7D,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAElE,OAAO,EAAE,qBAAqB,EAAE,MAAM,0BAA0B,CAAC;AACjE,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAErD,qBAAa,6BAA6B;IACxC,OAAO,CAAC,aAAa,CAAc;IACnC,OAAO,CAAC,KAAK,CAAc;IAC3B,OAAO,CAAC,IAAI,CAAoB;IAChC,OAAO,CAAC,SAAS,CAAuB;IACxC,OAAO,CAAC,IAAI,CAAoB;IAChC,OAAO,CAAC,aAAa,CAAuB;IAC5C,OAAO,CAAC,QAAQ,CAAsC;IACtD,OAAO,CAAC,MAAM,CAAgC;IAEvC,gBAAgB,CAAC,YAAY,EAAE,MAAM,GAAG,6BAA6B;IAKrE,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,6BAA6B;IAKrD,OAAO,CAAC,GAAG,EAAE,GAAG,GAAG,6BAA6B;IAKvD,8FAA8F;IACvF,YAAY,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI,GAAG,6BAA6B;IAK3E,wFAAwF;IACjF,OAAO,CAAC,GAAG,EAAE,GAAG,GAAG,IAAI,GAAG,6BAA6B;IAK9D,+DAA+D;IACxD,gBAAgB,CAAC,YAAY,EAAE,MAAM,GAAG,IAAI,GAAG,6BAA6B;IAKnF,8EAA8E;IACvE,WAAW,CAAC,OAAO,EAAE,qBAAqB,GAAG,IAAI,GAAG,6BAA6B;IAKjF,SAAS,CAAC,KAAK,EAAE,eAAe,GAAG,IAAI,GAAG,6BAA6B;IAKvE,KAAK,IAAI,sBAAsB;CAevC"}
|
package/package.json
CHANGED
package/policy.d.ts
CHANGED
|
@@ -8,4 +8,5 @@ export { JsonSourcePolicy } from './org/metadatacenter/policy/JsonSourcePolicy';
|
|
|
8
8
|
export { RegexPolicy, RegexVerdict, RegexWorker, RegexPolicyOptions, REGEX_WORKER_SOURCE } from './org/metadatacenter/policy/RegexPolicy';
|
|
9
9
|
export { RegexChecks } from './org/metadatacenter/policy/RegexChecks';
|
|
10
10
|
export { ValidationPolicy, ValidationFinding, ValidationCategory, ValidationContext, VerificationStatus, ValidationSummary, } from './org/metadatacenter/policy/ValidationPolicy';
|
|
11
|
+
export { ConstraintLinks, readConstraintLinks, } from './org/metadatacenter/model/cedar/field/dynamic/controlled-term/value-constraint/ConstraintLinks';
|
|
11
12
|
//# sourceMappingURL=policy.d.ts.map
|
package/policy.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"policy.d.ts","sourceRoot":"","sources":["../src/policy.ts"],"names":[],"mappings":"AAAA,0FAA0F;AAC1F,OAAO,EAAE,UAAU,EAAE,MAAM,wCAAwC,CAAC;AACpE,OAAO,EAAE,gBAAgB,EAAE,MAAM,8CAA8C,CAAC;AAChF,OAAO,EAAE,WAAW,EAAE,MAAM,yCAAyC,CAAC;AAEtE,OAAO,EAAE,eAAe,EAAE,MAAM,6CAA6C,CAAC;AAE9E,OAAO,EAAE,aAAa,EAAE,YAAY,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,2CAA2C,CAAC;AAEpH,OAAO,EAAE,gBAAgB,EAAE,MAAM,8CAA8C,CAAC;AAEhF,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,WAAW,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,MAAM,yCAAyC,CAAC;AAE1I,OAAO,EAAE,WAAW,EAAE,MAAM,yCAAyC,CAAC;AAEtE,OAAO,EACL,gBAAgB,EAChB,iBAAiB,EACjB,kBAAkB,EAClB,iBAAiB,EACjB,kBAAkB,EAClB,iBAAiB,GAClB,MAAM,8CAA8C,CAAC"}
|
|
1
|
+
{"version":3,"file":"policy.d.ts","sourceRoot":"","sources":["../src/policy.ts"],"names":[],"mappings":"AAAA,0FAA0F;AAC1F,OAAO,EAAE,UAAU,EAAE,MAAM,wCAAwC,CAAC;AACpE,OAAO,EAAE,gBAAgB,EAAE,MAAM,8CAA8C,CAAC;AAChF,OAAO,EAAE,WAAW,EAAE,MAAM,yCAAyC,CAAC;AAEtE,OAAO,EAAE,eAAe,EAAE,MAAM,6CAA6C,CAAC;AAE9E,OAAO,EAAE,aAAa,EAAE,YAAY,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,2CAA2C,CAAC;AAEpH,OAAO,EAAE,gBAAgB,EAAE,MAAM,8CAA8C,CAAC;AAEhF,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,WAAW,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,MAAM,yCAAyC,CAAC;AAE1I,OAAO,EAAE,WAAW,EAAE,MAAM,yCAAyC,CAAC;AAEtE,OAAO,EACL,gBAAgB,EAChB,iBAAiB,EACjB,kBAAkB,EAClB,iBAAiB,EACjB,kBAAkB,EAClB,iBAAiB,GAClB,MAAM,8CAA8C,CAAC;AAEtD,OAAO,EACL,eAAe,EACf,mBAAmB,GACpB,MAAM,iGAAiG,CAAC"}
|
package/policy.esm.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
var e={120(e,t){t.javaPlainDecimal=function(e){if(!Number.isFinite(e))throw new RangeError("Expected a finite number");if(0===e)return"0";if(Number.isSafeInteger(e))return String(e);const t=e<0?"-":"",r=Math.abs(e),i=new DataView(new ArrayBuffer(8));i.setFloat64(0,r);const n=i.getBigUint64(0),s=Number(n>>52n&2047n),a=n&(1n<<52n)-1n|(s?1n<<52n:0n),o=s?s-1075:-1074,c=a.toString(2).length,l=o+c-1;let u=a,h=1n;if(o>=0?u<<=BigInt(o):h<<=BigInt(-o),l<=62&&u%h===0n){let e=u/h;const r=l>c?(1n<<BigInt(l-c-1)).toString().length-1:0,i=10n**BigInt(r);return e=(e+i/2n)/i*i,t+String(e)}let d=Math.floor(.289529654*(Number(a)/2**(c-1)-1.5)+.176091259+.301029995663981*l),f=u,m=h;d>=0?m*=10n**BigInt(d):f*=10n**BigInt(-d);const p=o-1-(0n==(a&a-1n)?1:0);let g=1n,y=1n;function b(e,t){for(;t;)[e,t]=[t,e%t];return e}p>=0?g<<=BigInt(p):y<<=BigInt(-p),d>=0?y*=10n**BigInt(d):g*=10n**BigInt(-d);let w=m/b(m,y)*y;function x(e){let t=0;for(;0n==(1n&e);)e>>=1n,t++;return t}function v(e){return 0===e?0:e<27?(5n**BigInt(e)).toString(2).length:3*e}f*=w/m,g*=w/y,m=w,w=b(b(f,m),g),f/=w,m/=w,g/=w;const E=c-x(a)+x(f)+v(Math.max(0,-d)),P=x(m)+1+v(Math.max(0,d)+1),I=E<32&&P<32?32:E<64&&P<64?64:0,S=e=>I?BigInt.asIntN(I,e):e,R=10n*m;let O=0n,N=0,k=!0;for(;;){const e=f/m;f=f%m*10n,g=S(10n*g);let t=g<=0n||f<g,r=g<=0n||(I?S(f+g)>R:f+g>=R);if(k&&0n===e&&!r?d--:(O=10n*O+e,N++),k&&(d<-3||d>=8)&&(t=!1,r=!1),k=!1,t||r){const e=S(S(2n*f)-R);r&&(!t||e>0n||0n===e&&O%2n==1n)&&O++;break}}let T=String(O);const j=d-N+1;if(j>=0)return t+T+"0".repeat(j);const M=T.length+j;return T=M>0?T.slice(0,M)+"."+T.slice(M):"0."+"0".repeat(-M)+T,t+T.replace(/\.?0+$/,"")}},68(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.DisplayText=void 0;class r{static segmenter=new Intl.Segmenter("und",{granularity:"grapheme"});static take(e,t,r=!1){const i=Math.max(0,Math.trunc(t));if(!i)return"";const n=Array.from(this.segmenter.segment(e),({segment:e})=>e);return(r?n.slice(-i):n.slice(0,i)).join("")}static searchKey(e){return Array.from(this.segmenter.segment(e),({segment:e})=>e.normalize("NFC").toLowerCase()).join("")}static splitMatch(e,t){const r=this.searchKey(t);if(!r)return[e,"",""];let i="";const n=[];for(const{segment:t,index:r}of this.segmenter.segment(e)){const e=t.normalize("NFC").toLowerCase();i+=e;for(let i=0;i<e.length;i++)n.push({start:r,end:r+t.length})}const s=i.indexOf(r);if(s<0)return[e,"",""];const a=n[s].start,o=n[s+r.length-1].end;return[e.slice(0,a),e.slice(a,o),e.slice(o)]}static elide(e,t=96,r=28){const i=Array.from(this.segmenter.segment(e),({segment:e})=>e),n=Math.max(1,Math.trunc(t));if(i.length<=n)return e;const s=Math.max(0,Math.min(Math.trunc(r),n-1));return`${i.slice(0,n-s-1).join("").trimEnd()}…${s?i.slice(-s).join("").trimStart():""}`}}t.DisplayText=r},500(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.IdentifierPolicy=void 0,t.IdentifierPolicy=class{static assertIdentifierCharacters(e,t){if(null!==e){if(Array.from(e).some(e=>e.charCodeAt(0)<=32||e.charCodeAt(0)>=127&&e.charCodeAt(0)<=159||/\p{Z}/u.test(e)))throw new Error(`Invalid URI at "${t}": unescaped space or control character.`);if(e.indexOf("#")!==e.lastIndexOf("#"))throw new Error(`Invalid URI at "${t}": more than one fragment delimiter.`);if(e.split(/[/?#]/,1)[0].includes(":")&&!/^[A-Za-z][A-Za-z0-9+.-]*:/.test(e))throw new Error(`Invalid URI at "${t}": malformed scheme.`)}}static assertFieldIri(e,t){if(null===e)return;if(""===e)throw new Error(`An empty string is not a URI at "${t}"; write null or leave the key out where there is no value.`);if("string"!=typeof e)throw new Error(`Invalid URI/IRI at "${t}": expected string.`);let r=!1,i=!1;for(const n of e){const e=n.codePointAt(0);if("#"===n?(i=!0,r=!1):"?"!==n||i||(r=!0),e<128){if(e<=32||127===e||'<>"{}|\\^`'.includes(n))throw new Error(`Invalid URI/IRI at "${t}": unescaped space, control or forbidden character.`)}else if(!(e>=160&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65519||e>=65536&&e<=917501&&(65535&e)<=65533||e>=921600&&e<=983037||r&&(e>=57344&&e<=63743||e>=983040&&e<=1048573||e>=1048576&&e<=1114109)))throw new Error(`Invalid URI/IRI at "${t}": forbidden Unicode character.`)}if(/%(?![0-9a-fA-F]{2})/.test(e))throw new Error(`Invalid URI/IRI at "${t}": malformed percent escape.`);const n=/^[A-Za-z][A-Za-z0-9+.-]*:/.exec(e)?.[0]??"",s=e.slice(n.length).split("#",1)[0];if(n&&!s||"//"===s)throw new Error(`Invalid URI/IRI at "${t}": missing scheme-specific part or authority.`);const a=Array.from(e,e=>e.codePointAt(0)>=128?encodeURIComponent(e):e).join("");this.assertIdentifierCharacters(a,t)}static assertIri(e,t){if(null!==e&&""!==e){if("string"!=typeof e)throw new Error(`Invalid URI at "${t}": expected a string.`);this.assertFieldIri(e,t),this.assertIdentifierCharacters(e,t)}}static assertIdentifier(e,t){if(null!==e){if("string"!=typeof e)throw new Error(`Invalid URI at "${t}": expected a string.`);if(""===e)throw new Error(`An empty string is not a URI at "${t}"; write null or leave the key out where there is no value.`);if(this.assertIri(e,t),!/^[A-Za-z][A-Za-z0-9+.-]*:/.test(e))throw new Error(`Invalid URI at "${t}": an identifier must be an absolute IRI.`)}}static matchesUriFormat(e){if("string"!=typeof e)return!1;if(""===e)return!0;try{return this.assertFieldIri(e,"value"),!0}catch{return!1}}static isValid(e){if("string"!=typeof e)return!1;try{return this.assertIdentifier(e,"value"),!0}catch{return!1}}static isValidFieldValue(e){if("string"!=typeof e)return!1;try{return this.assertFieldIri(e,"value"),!0}catch{return!1}}static isValidAuthoringIri(e,t=!1){if(!/^[A-Za-z][A-Za-z0-9+.-]*:/.test(e))return!1;if(!(t?this.isValidFieldValue(e):this.isValid(e)))return!1;if(!/^https?:/i.test(e))return!0;if(!/^https?:\/\//i.test(e))return!1;try{return new URL(e).hostname.length>0}catch{return!1}}}},904(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.JsonSourcePolicy=void 0;const i=r(108),n=r(120),s=new WeakMap;class a{static decimalSpelling(e,t){const r=s.get(e)?.get(t);return void 0!==r&&Object.is(r.value,e[t])?r.text:null}static sourceNumber(e){const t=i.NumericPolicy.value(e);return"number"==typeof t&&0!==i.NumericPolicy.compare(e,(0,n.javaPlainDecimal)(t))?i.ExactDecimal.forValue(e):t}static parse(e){let t=0,r=null;const n=()=>{for(;/[ \t\n\r]/.test(e[t]??"\0");)t++},o=()=>{throw new SyntaxError(`Invalid JSON at position ${t}`)};function c(){const r=t++;for(;;){if(t>=e.length)return o();const i=e[t++];if('"'===i)return JSON.parse(e.slice(r,t));if("\\"===i)t++;else if(i.charCodeAt(0)<32)return o()}}const l=function l(u){if(u>1e3)throw new RangeError("JSON nesting limit exceeded");n();const h=e[t];if('"'===h)return c();if("{"===h||"["===h){t++;const a={},d=[],f="{"===h?"}":"]";if(n(),e[t]!==f)for(;;){if(n(),"{"===h){if('"'!==e[t])return o();const h=c();if(Object.hasOwn(a,h))throw new SyntaxError("Duplicate JSON mapping key");if(n(),":"!==e[t++])return o();r=null;const d=l(u+1);if(Object.defineProperty(a,h,{value:d,enumerable:!0,writable:!0,configurable:!0}),null!==r&&("number"==typeof d||i.ExactDecimal.isExact(d))){const e=s.get(a)??new Map;s.set(a,e.set(h,{value:d,text:r}))}}else d.push(l(u+1));if(n(),e[t]===f)break;if(","!==e[t++])return o()}return t++,"{"===h?a:d}for(const[r,i]of[["true",!0],["false",!1],["null",null]])if(e.startsWith(r,t))return t+=r.length,i;const d=/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?/.exec(e.slice(t));if(!d)return o();if(d[0].length>1e3)throw new RangeError("JSON number length limit exceeded");return t+=d[0].length,r=/[.eE]/.test(d[0])?d[0]:null,a.sourceNumber(d[0])}(0);if(n(),t!==e.length&&o(),null===l||"object"!=typeof l||Array.isArray(l)||l instanceof i.ExactDecimal)throw new SyntaxError("Expected a JSON object");return l}static clone(e){const t=new Set;return function e(r){if(i.ExactDecimal.isExact(r))return i.ExactDecimal.forValue(String(r));if(null==r||"string"==typeof r||"boolean"==typeof r)return r;if("number"==typeof r&&Number.isFinite(r))return r;if("object"!=typeof r||t.has(r))throw new TypeError("Expected acyclic JSON data");t.add(r);try{if(Array.isArray(r))return r.map(e);if(Object.getPrototypeOf(r)!==Object.prototype&&null!==Object.getPrototypeOf(r))throw new TypeError("Expected a JSON object");return Object.fromEntries(Object.entries(r).map(([t,r])=>[t,e(r)]))}finally{t.delete(r)}}(e)}static stringify(e,t=0){const r=" ".repeat(Math.max(0,Math.min(10,t))),s=new Set,a=function e(t,a){if(i.ExactDecimal.isExact(t))return t.toString();if("number"==typeof t)return(0,n.javaPlainDecimal)(t);if("string"==typeof t||"boolean"==typeof t||null===t)return JSON.stringify(t);if(void 0!==t){if("object"!=typeof t)throw new TypeError("Expected a JSON value");if(a>1e3||s.has(t))throw new TypeError("Cyclic JSON value or nesting limit exceeded");s.add(t);try{const i=Array.isArray(t),n=[];if(i)for(const r of t)n.push(e(r,a+1)??"null");else for(const i of Object.keys(t)){const s=e(t[i],a+1);void 0!==s&&n.push(JSON.stringify(i)+(r?": ":":")+s)}const[s,o]=i?["[","]"]:["{","}"];return n.length?r?s+"\n"+r.repeat(a+1)+n.join(",\n"+r.repeat(a+1))+"\n"+r.repeat(a)+o:s+n.join(",")+o:s+o}finally{s.delete(t)}}}(e,0);if(void 0===a)throw new TypeError("Expected a JSON value");return a}}t.JsonSourcePolicy=a},108(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.NumericPolicy=t.ExactDecimal=void 0;class r{text;cedarExactDecimal=!0;static isExact(e){return null!==e&&"object"==typeof e&&!0===e.cedarExactDecimal&&"function"==typeof e.toJSON}constructor(e){this.text=e,Object.freeze(this)}static forValue(e){return new r(i.canonical(e))}toString(){return this.text}valueOf(){throw new Error("Use NumericPolicy.compare for exact decimals; implicit numeric coercion would lose precision.")}toJSON(){const e=JSON.rawJSON;if(!e)throw new Error("Use JsonSourcePolicy.stringify to serialize exact decimal numbers.");return e(this.text)}}t.ExactDecimal=r;class i{static parts(e){const t="string"==typeof e?e:String(e),r=/^([+-]?)(?:(\d+)(?:\.(\d*))?|\.(\d+))(?:[eE]([+-]?\d+))?$/.exec(t);if(!r)throw new Error("Expected a finite decimal number without surrounding whitespace.");const i=r[3]??r[4]??"",n=BigInt(r[5]??"0");let s=n-BigInt(i.length);if(n<-2147483647n||n>2147483647n||s<-2147483647n||s>2147483648n)throw new Error("Decimal exponent or scale is outside the shared numeric range.");let a=((r[2]??"")+i).replace(/^0+/,"");if(!a)return{sign:0,digits:"0",exponent:0n};const o=/0+$/.exec(a)?.[0].length??0;return o&&(a=a.slice(0,-o),s+=BigInt(o)),{sign:"-"===r[1]?-1:1,digits:a,exponent:s}}static canonical(e){const{sign:t,digits:r,exponent:i}=this.parts(e);if(!t)return"0";const n=t<0?"-":"",s=i+BigInt(r.length-1);if(i>=0n&&s<1000n)return n+r+"0".repeat(Number(i));if(i<0n&&s>=-1000n){const e=r.length+Number(i);return n+(e>0?r.slice(0,e)+"."+r.slice(e):"0."+"0".repeat(-e)+r)}if(s>2147483647n){const e=i-2147483647n;return n+r+(e>0n?"0".repeat(Number(e)):"")+"E+"+(e>0n?2147483647n:i)}return n+r[0]+(r.length>1?"."+r.slice(1):"")+"E"+(s>=0n?"+":"")+s}static compare(e,t){const r=this.parts(e),i=this.parts(t);if(r.sign!==i.sign)return r.sign<i.sign?-1:1;if(!r.sign)return 0;const n=BigInt(r.digits.length)+r.exponent,s=BigInt(i.digits.length)+i.exponent;let a;if(n!==s)a=n<s?-1:1;else{const e=Math.max(r.digits.length,i.digits.length),t=r.digits.padEnd(e,"0"),n=i.digits.padEnd(e,"0");a=t===n?0:t<n?-1:1}return 0===a?0:a*r.sign}static isInteger(e){return this.parts(e).exponent>=0n}static fractionalDigits(e){return Math.max(0,-Number(this.parts(e).exponent))}static value(e){if(r.isExact(e))return e;if(this.parts(e),"number"==typeof e)return e;const t=Number(e);return!Number.isFinite(t)||Number.isInteger(t)&&!Number.isSafeInteger(t)||0!==this.compare(e,t)?r.forValue(e):t}}t.NumericPolicy=i},991(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.RegexChecks=void 0;const i=r(128);class n{changed;policy;entries=new Map;used=null;size=0;disposed=!1;capacityLimited=!1;static active=null;constructor(e=()=>{},t=new i.RegexPolicy){this.changed=e,this.policy=t}run(e){if(this.used)return e();const t=n.active;n.active=this,this.used=new Set,this.capacityLimited=!1;try{return e()}finally{const e=this.used;this.used=null,n.active=t;let r=!1;for(const[t,i]of this.entries)e.has(t)||(r=!0,this.entries.delete(t),this.size-=t.length,i.controller.abort());r&&this.capacityLimited&&queueMicrotask(()=>{this.disposed||this.changed()})}}static inspect(e,t=null){return this.active?.check(e,t)??"pending"}check(e,t){if(this.disposed)return"cancelled";if(e.length>1e4||(t?.length??0)>1e6)return"limit";const r=JSON.stringify([e,t]);this.used.add(r);const i=this.entries.get(r);if(i)return i.result;if(this.entries.size>=1024||this.size+r.length>4e6)return this.capacityLimited=!0,"limit";const n=new AbortController,s={result:"pending",controller:n,done:Promise.resolve()};return this.entries.set(r,s),this.size+=r.length,s.done=this.policy.evaluate(e,t,n.signal).then(e=>{this.disposed||this.entries.get(r)!==s||(s.result=e,this.pending||this.changed())}),"pending"}get pending(){return[...this.entries.values()].some(e=>"pending"===e.result)}async settled(){await Promise.all([...this.entries.values()].map(e=>e.done))}static async validate(e,t){const r=new n(void 0,t);try{let t=r.run(e);for(;r.pending;)await r.settled(),t=r.run(e);return t}finally{r.dispose()}}dispose(){this.disposed=!0;for(const e of this.entries.values())e.controller.abort();this.entries.clear(),this.size=0,this.policy.dispose()}}t.RegexChecks=n},128(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.RegexPolicy=t.REGEX_WORKER_SOURCE=void 0,t.REGEX_WORKER_SOURCE="\n onmessage = ({data}) => {\n let result;\n try {\n const expression = new RegExp('^(?:' + data.pattern + ')$');\n result = data.value === null ? 'valid' : expression.test(data.value) ? 'match' : 'mismatch';\n } catch (_) { result = 'invalid'; }\n postMessage({id: data.id, result});\n };\n postMessage({ready: true});\n",t.RegexPolicy=class{worker=null;ready=!1;releaseSource=null;current=null;queue=[];serial=0;timer;idleTimer;closed=!1;options;constructor(e={}){this.options={workerFactory:e.workerFactory??(()=>{const e=globalThis,r=e.URL.createObjectURL(new e.Blob([t.REGEX_WORKER_SOURCE],{type:"text/javascript"}));return this.releaseSource=()=>e.URL.revokeObjectURL(r),new e.Worker(r)}),workTimeoutMs:e.workTimeoutMs??250,startupTimeoutMs:e.startupTimeoutMs??5e3,queueLimit:e.queueLimit??1024};for(const e of[this.options.workTimeoutMs,this.options.startupTimeoutMs,this.options.queueLimit])if(!Number.isSafeInteger(e)||e<1)throw new RangeError("Regex limits must be positive integers")}evaluate(e,t=null,r){return this.closed||r?.aborted?Promise.resolve("cancelled"):e.length>1e4||(t?.length??0)>1e6||this.queue.length>=this.options.queueLimit?Promise.resolve("limit"):new Promise(i=>{const n={id:++this.serial,pattern:e,value:t,finish:e=>{r?.removeEventListener("abort",s),i(e)}},s=()=>{this.current===n?this.fail("cancelled"):(this.queue=this.queue.filter(e=>e!==n),n.finish("cancelled"))};r?.addEventListener("abort",s,{once:!0}),this.queue.push(n),this.next()})}stopWorker(){clearTimeout(this.timer),clearTimeout(this.idleTimer),this.worker&&(this.worker.onmessage=null,this.worker.onerror=null,this.worker.terminate()),this.worker=null,this.ready=!1,this.releaseSource?.(),this.releaseSource=null}fail(e){this.stopWorker();const t=this.current;this.current=null,t?.finish(e),queueMicrotask(()=>this.next())}next(){if(!this.closed&&!this.current&&0!==this.queue.length)if(clearTimeout(this.idleTimer),this.current=this.queue.shift(),this.worker&&this.ready)this.send();else try{const e=this.options.workerFactory();this.worker=e,this.timer=setTimeout(()=>this.fail("unavailable"),this.options.startupTimeoutMs),e.onerror=()=>{this.worker===e&&this.fail("unavailable")},e.onmessage=({data:t})=>{if(this.worker!==e||!t||"object"!=typeof t)return;const r=t;if(r.ready&&!this.ready)clearTimeout(this.timer),this.ready=!0,this.send();else if(r.id===this.current?.id&&["valid","match","mismatch","invalid"].includes(r.result??"")){clearTimeout(this.timer);const e=this.current;this.current=null,e.finish(r.result),this.idleTimer=setTimeout(()=>this.stopWorker(),1e3),this.next()}}}catch{this.fail("unavailable")}}send(){if(this.current&&this.worker){this.timer=setTimeout(()=>this.fail("timeout"),this.options.workTimeoutMs);try{this.worker.postMessage({id:this.current.id,pattern:this.current.pattern,value:this.current.value})}catch{this.fail("unavailable")}}}dispose(){this.closed=!0,this.stopWorker(),this.current?.finish("cancelled"),this.current=null,this.queue.splice(0).forEach(e=>e.finish("cancelled"))}}},992(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.TextPolicy=void 0,t.TextPolicy=class{constructor(){}static isBlank(e){for(const t of e)if(!this.isBlankCodePoint(t.codePointAt(0)))return!1;return!0}static isBlankCodePoint(e){return e>=9&&e<=13||e>=28&&e<=32||5760===e||e>=8192&&e<=8198||e>=8200&&e<=8202||8232===e||8233===e||8287===e||12288===e}static codePointLength(e){return Array.from(e).length}static equalsIgnoreCase(e,t){const r=Array.from(e),i=Array.from(t);return e.length===t.length&&r.length===i.length&&r.every((e,t)=>{const r=i[t],n=e.toUpperCase(),s=r.toUpperCase();return e===r||n===s||n.toLowerCase()===s.toLowerCase()})}static trimInputPadding(e){return e.replace(/^[\t\n\r ]+|[\t\n\r ]+$/g,"")}}},435(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.TimestampPolicy=void 0,t.TimestampPolicy=class{static canonical(e){const t=e.replace(/([+-][0-9]{2})([0-9]{2})$/,"$1:$2"),r=/^(\d{4}|-\d{4,9}|\+\d{5,9})-(\d{2})-(\d{2})[Tt](\d{2}):(\d{2})(?::(\d{2})(?:\.(\d{1,9}))?)?([Zz]|[+-]\d{2}(?::\d{2}(?::\d{2})?)?)$/.exec(t);if(!r)throw new Error("Expected an ISO timestamp with an explicit offset.");const[,i,n,s,a,o,c="00",l="",u]=r,h=Number(i),d=Number(n),f=Number(s),m=[31,h%4!=0||h%100==0&&h%400!=0?28:29,31,30,31,30,31,31,30,31,30,31];if(0===h&&i.startsWith("-")||d<1||d>12||f<1||f>m[d-1]||Number(a)>23||Number(o)>59||Number(c)>59)throw new Error("Invalid timestamp calendar or clock value.");let p="Z";if("Z"!==u.toUpperCase()){const[e,t=0,r=0]=u.slice(1).split(":").map(Number);if(e>18||t>59||r>59||18===e&&(0!==t||0!==r))throw new Error("Timestamp offset is outside the ISO offset range.");(e||t||r)&&(p=`${u[0]}${String(e).padStart(2,"0")}:${String(t).padStart(2,"0")}`,r&&(p+=`:${String(r).padStart(2,"0")}`))}const g=(h<0?"-":h>9999?"+":"")+String(Math.abs(h)).padStart(4,"0"),y=l.replace(/0+$/,"");return`${g}-${n}-${s}T${a}:${o}:${c}${y?"."+y:""}${p}`}static matchesFormat(e){const t=/^(\d{4}|\+\d{5,9})-(0[1-9]|1[0-2])-(0[1-9]|[12]\d|3[01])T(?:[01]\d|2[0-3]|24(?=:00:00(?:\.0{1,9})?[Z+-])):[0-5]\d:[0-5]\d(?:\.\d{1,9})?(?:Z|[+-](\d{2})(?::([0-5]\d)(?::([0-5]\d))?|([0-5]\d)))$/.exec(e);if(null===t||Number(t[1])<1)return!1;const[,,,,r="0",i,n="0",s]=t;return 3600*Number(r)+60*Number(i??s??0)+Number(n)<=64800}}},92(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.ValidationPolicy=void 0;class r{static constraints=new Set(["minLength","maxLength","regex","pattern","email","link","phoneNumber","minValue","maxValue","decimalPlace","temporalGranularity","timezone","choiceMembership","maxItems","controlledTermMembership","authorityIdentifier","authorityMembership"]);static completeness=new Set(["required","minItems"]);static verification=new Set(["regexPending","regexEvaluation","regexUnavailable","semanticNotChecked","semanticUnavailable","controlledTermVerified","authorityVerified"]);static acceptsSemanticResult(e,t,r){switch(t){case"passed":return r===(e?"controlledTermVerified":"authorityVerified");case"failed":return e?"controlledTermMembership"===r:"authorityIdentifier"===r||"authorityMembership"===r;case"notChecked":return"semanticNotChecked"===r;case"unavailable":return"semanticUnavailable"===r;default:return!1}}static category(e){return this.constraints.has(e)?"constraint":this.completeness.has(e)?"completeness":this.verification.has(e)?"verification":"structural"}static blocksSave(e,t="instance"){if("string"!=typeof e&&"passed"===e.verificationStatus)return!1;const r="string"==typeof e?this.category(e):e.category;return"structural"===r||"template"===t&&("verification"!==r||"string"!=typeof e&&"failed"===e.verificationStatus)}static severity(e,t="instance"){return this.blocksSave(e,t)?"error":"warning"}static finding(e,t,r,i){const n={code:e,category:this.category(e),path:t,message:r};return void 0!==i&&(n.verificationStatus=i),n}static summarize(e,t="instance"){const r=e.filter(e=>"passed"!==e.verificationStatus);return{findings:[...e],structurallyValid:!r.some(e=>"structural"===e.category),canSave:!r.some(e=>this.blocksSave(e,t)),isValid:0===r.length}}static pointer(e){return e.map(e=>"/"+String(e).replace(/~/g,"~0").replace(/\//g,"~1")).join("")}static child(e,t){return e+this.pointer([t])}}t.ValidationPolicy=r}};const t={};function r(i){const n=t[i];if(void 0!==n)return n.exports;const s=t[i]={exports:{}};return e[i](s,s.exports,r),s.exports}let i={};(()=>{let e=i;Object.defineProperty(e,"__esModule",{value:!0}),e.ValidationPolicy=e.RegexChecks=e.REGEX_WORKER_SOURCE=e.RegexPolicy=e.JsonSourcePolicy=e.ExactDecimal=e.NumericPolicy=e.TimestampPolicy=e.DisplayText=e.IdentifierPolicy=e.TextPolicy=void 0;var t=r(992);Object.defineProperty(e,"TextPolicy",{enumerable:!0,get:function(){return t.TextPolicy}});var n=r(500);Object.defineProperty(e,"IdentifierPolicy",{enumerable:!0,get:function(){return n.IdentifierPolicy}});var s=r(68);Object.defineProperty(e,"DisplayText",{enumerable:!0,get:function(){return s.DisplayText}});var a=r(435);Object.defineProperty(e,"TimestampPolicy",{enumerable:!0,get:function(){return a.TimestampPolicy}});var o=r(108);Object.defineProperty(e,"NumericPolicy",{enumerable:!0,get:function(){return o.NumericPolicy}}),Object.defineProperty(e,"ExactDecimal",{enumerable:!0,get:function(){return o.ExactDecimal}});var c=r(904);Object.defineProperty(e,"JsonSourcePolicy",{enumerable:!0,get:function(){return c.JsonSourcePolicy}});var l=r(128);Object.defineProperty(e,"RegexPolicy",{enumerable:!0,get:function(){return l.RegexPolicy}}),Object.defineProperty(e,"REGEX_WORKER_SOURCE",{enumerable:!0,get:function(){return l.REGEX_WORKER_SOURCE}});var u=r(991);Object.defineProperty(e,"RegexChecks",{enumerable:!0,get:function(){return u.RegexChecks}});var h=r(92);Object.defineProperty(e,"ValidationPolicy",{enumerable:!0,get:function(){return h.ValidationPolicy}})})();const n=i.DisplayText,s=i.ExactDecimal,a=i.IdentifierPolicy,o=i.JsonSourcePolicy,c=i.NumericPolicy,l=i.REGEX_WORKER_SOURCE,u=i.RegexChecks,h=i.RegexPolicy,d=i.TextPolicy,f=i.TimestampPolicy,m=i.ValidationPolicy,p=i.__esModule;export{n as DisplayText,s as ExactDecimal,a as IdentifierPolicy,o as JsonSourcePolicy,c as NumericPolicy,l as REGEX_WORKER_SOURCE,u as RegexChecks,h as RegexPolicy,d as TextPolicy,f as TimestampPolicy,m as ValidationPolicy,p as __esModule};export default i;
|
|
1
|
+
var e={120(e,t){t.javaPlainDecimal=function(e){if(!Number.isFinite(e))throw new RangeError("Expected a finite number");if(0===e)return"0";if(Number.isSafeInteger(e))return String(e);const t=e<0?"-":"",r=Math.abs(e),i=new DataView(new ArrayBuffer(8));i.setFloat64(0,r);const n=i.getBigUint64(0),s=Number(n>>52n&2047n),a=n&(1n<<52n)-1n|(s?1n<<52n:0n),o=s?s-1075:-1074,c=a.toString(2).length,l=o+c-1;let u=a,d=1n;if(o>=0?u<<=BigInt(o):d<<=BigInt(-o),l<=62&&u%d===0n){let e=u/d;const r=l>c?(1n<<BigInt(l-c-1)).toString().length-1:0,i=10n**BigInt(r);return e=(e+i/2n)/i*i,t+String(e)}let h=Math.floor(.289529654*(Number(a)/2**(c-1)-1.5)+.176091259+.301029995663981*l),f=u,p=d;h>=0?p*=10n**BigInt(h):f*=10n**BigInt(-h);const m=o-1-(0n==(a&a-1n)?1:0);let g=1n,y=1n;function P(e,t){for(;t;)[e,t]=[t,e%t];return e}m>=0?g<<=BigInt(m):y<<=BigInt(-m),h>=0?y*=10n**BigInt(h):g*=10n**BigInt(-h);let b=p/P(p,y)*y;function w(e){let t=0;for(;0n==(1n&e);)e>>=1n,t++;return t}function v(e){return 0===e?0:e<27?(5n**BigInt(e)).toString(2).length:3*e}f*=b/p,g*=b/y,p=b,b=P(P(f,p),g),f/=b,p/=b,g/=b;const x=c-w(a)+w(f)+v(Math.max(0,-h)),E=w(p)+1+v(Math.max(0,h)+1),I=x<32&&E<32?32:x<64&&E<64?64:0,S=e=>I?BigInt.asIntN(I,e):e,O=10n*p;let R=0n,k=0,N=!0;for(;;){const e=f/p;f=f%p*10n,g=S(10n*g);let t=g<=0n||f<g,r=g<=0n||(I?S(f+g)>O:f+g>=O);if(N&&0n===e&&!r?h--:(R=10n*R+e,k++),N&&(h<-3||h>=8)&&(t=!1,r=!1),N=!1,t||r){const e=S(S(2n*f)-O);r&&(!t||e>0n||0n===e&&R%2n==1n)&&R++;break}}let T=String(R);const j=h-k+1;if(j>=0)return t+T+"0".repeat(j);const M=T.length+j;return T=M>0?T.slice(0,M)+"."+T.slice(M):"0."+"0".repeat(-M)+T,t+T.replace(/\.?0+$/,"")}},181(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.readConstraintLinks=function(e){if(void 0===e)return null;if(!(0,i.constraintLinks)(e))throw new Error("links must contain only optional landingPage and icon HTTP(S) URLs");const t=e;return Object.freeze({...void 0!==t.landingPage?{landingPage:t.landingPage}:{},...void 0!==t.icon?{icon:t.icon}:{}})};const i=r(785)},659(e,t,r){t.M=void 0;const i=r(500),n=r(435);t.M={uri:{type:"string",validate(e){if(""===e)return!0;try{return i.IdentifierPolicy.assertFieldIri(e,"uri"),!0}catch{return!1}}},"date-time":{type:"string",validate(e){if(!/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(?:\.\d{1,9})?(?:Z|[+-]\d{2}:?\d{2}(?::\d{2})?)$/.test(e))return!1;try{return n.TimestampPolicy.canonical(e),!0}catch{return!1}}}}},68(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.DisplayText=void 0;class r{static segmenter=new Intl.Segmenter("und",{granularity:"grapheme"});static take(e,t,r=!1){const i=Math.max(0,Math.trunc(t));if(!i)return"";const n=Array.from(this.segmenter.segment(e),({segment:e})=>e);return(r?n.slice(-i):n.slice(0,i)).join("")}static searchKey(e){return Array.from(this.segmenter.segment(e),({segment:e})=>e.normalize("NFC").toLowerCase()).join("")}static splitMatch(e,t){const r=this.searchKey(t);if(!r)return[e,"",""];let i="";const n=[];for(const{segment:t,index:r}of this.segmenter.segment(e)){const e=t.normalize("NFC").toLowerCase();i+=e;for(let i=0;i<e.length;i++)n.push({start:r,end:r+t.length})}const s=i.indexOf(r);if(s<0)return[e,"",""];const a=n[s].start,o=n[s+r.length-1].end;return[e.slice(0,a),e.slice(a,o),e.slice(o)]}static elide(e,t=96,r=28){const i=Array.from(this.segmenter.segment(e),({segment:e})=>e),n=Math.max(1,Math.trunc(t));if(i.length<=n)return e;const s=Math.max(0,Math.min(Math.trunc(r),n-1));return`${i.slice(0,n-s-1).join("").trimEnd()}…${s?i.slice(-s).join("").trimStart():""}`}}t.DisplayText=r},500(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.IdentifierPolicy=void 0,t.IdentifierPolicy=class{static assertIdentifierCharacters(e,t){if(null!==e){if(Array.from(e).some(e=>e.charCodeAt(0)<=32||e.charCodeAt(0)>=127&&e.charCodeAt(0)<=159||/\p{Z}/u.test(e)))throw new Error(`Invalid URI at "${t}": unescaped space or control character.`);if(e.indexOf("#")!==e.lastIndexOf("#"))throw new Error(`Invalid URI at "${t}": more than one fragment delimiter.`);if(e.split(/[/?#]/,1)[0].includes(":")&&!/^[A-Za-z][A-Za-z0-9+.-]*:/.test(e))throw new Error(`Invalid URI at "${t}": malformed scheme.`)}}static assertFieldIri(e,t){if(null===e)return;if(""===e)throw new Error(`An empty string is not a URI at "${t}"; write null or leave the key out where there is no value.`);if("string"!=typeof e)throw new Error(`Invalid URI/IRI at "${t}": expected string.`);let r=!1,i=!1;for(const n of e){const e=n.codePointAt(0);if("#"===n?(i=!0,r=!1):"?"!==n||i||(r=!0),e<128){if(e<=32||127===e||'<>"{}|\\^`'.includes(n))throw new Error(`Invalid URI/IRI at "${t}": unescaped space, control or forbidden character.`)}else if(!(e>=160&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65519||e>=65536&&e<=917501&&(65535&e)<=65533||e>=921600&&e<=983037||r&&(e>=57344&&e<=63743||e>=983040&&e<=1048573||e>=1048576&&e<=1114109)))throw new Error(`Invalid URI/IRI at "${t}": forbidden Unicode character.`)}if(/%(?![0-9a-fA-F]{2})/.test(e))throw new Error(`Invalid URI/IRI at "${t}": malformed percent escape.`);const n=/^[A-Za-z][A-Za-z0-9+.-]*:/.exec(e)?.[0]??"",s=e.slice(n.length).split("#",1)[0];if(n&&!s||"//"===s)throw new Error(`Invalid URI/IRI at "${t}": missing scheme-specific part or authority.`);const a=Array.from(e,e=>e.codePointAt(0)>=128?encodeURIComponent(e):e).join("");this.assertIdentifierCharacters(a,t)}static assertIri(e,t){if(null!==e&&""!==e){if("string"!=typeof e)throw new Error(`Invalid URI at "${t}": expected a string.`);this.assertFieldIri(e,t),this.assertIdentifierCharacters(e,t)}}static assertIdentifier(e,t){if(null!==e){if("string"!=typeof e)throw new Error(`Invalid URI at "${t}": expected a string.`);if(""===e)throw new Error(`An empty string is not a URI at "${t}"; write null or leave the key out where there is no value.`);if(this.assertIri(e,t),!/^[A-Za-z][A-Za-z0-9+.-]*:/.test(e))throw new Error(`Invalid URI at "${t}": an identifier must be an absolute IRI.`)}}static matchesUriFormat(e){if("string"!=typeof e)return!1;if(""===e)return!0;try{return this.assertFieldIri(e,"value"),!0}catch{return!1}}static isValid(e){if("string"!=typeof e)return!1;try{return this.assertIdentifier(e,"value"),!0}catch{return!1}}static isValidFieldValue(e){if("string"!=typeof e)return!1;try{return this.assertFieldIri(e,"value"),!0}catch{return!1}}static isValidAuthoringIri(e,t=!1){if(!/^[A-Za-z][A-Za-z0-9+.-]*:/.test(e))return!1;if(!(t?this.isValidFieldValue(e):this.isValid(e)))return!1;if(!/^https?:/i.test(e))return!0;if(!/^https?:\/\//i.test(e))return!1;try{return new URL(e).hostname.length>0}catch{return!1}}}},904(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.JsonSourcePolicy=void 0;const i=r(108),n=r(120),s=new WeakMap;class a{static decimalSpelling(e,t){const r=s.get(e)?.get(t);return void 0!==r&&Object.is(r.value,e[t])?r.text:null}static sourceNumber(e){const t=i.NumericPolicy.value(e);return"number"==typeof t&&0!==i.NumericPolicy.compare(e,(0,n.javaPlainDecimal)(t))?i.ExactDecimal.forValue(e):t}static parse(e){let t=0,r=null;const n=()=>{for(;/[ \t\n\r]/.test(e[t]??"\0");)t++},o=()=>{throw new SyntaxError(`Invalid JSON at position ${t}`)};function c(){const r=t++;for(;;){if(t>=e.length)return o();const i=e[t++];if('"'===i)return JSON.parse(e.slice(r,t));if("\\"===i)t++;else if(i.charCodeAt(0)<32)return o()}}const l=function l(u){if(u>1e3)throw new RangeError("JSON nesting limit exceeded");n();const d=e[t];if('"'===d)return c();if("{"===d||"["===d){t++;const a={},h=[],f="{"===d?"}":"]";if(n(),e[t]!==f)for(;;){if(n(),"{"===d){if('"'!==e[t])return o();const d=c();if(Object.hasOwn(a,d))throw new SyntaxError("Duplicate JSON mapping key");if(n(),":"!==e[t++])return o();r=null;const h=l(u+1);if(Object.defineProperty(a,d,{value:h,enumerable:!0,writable:!0,configurable:!0}),null!==r&&("number"==typeof h||i.ExactDecimal.isExact(h))){const e=s.get(a)??new Map;s.set(a,e.set(d,{value:h,text:r}))}}else h.push(l(u+1));if(n(),e[t]===f)break;if(","!==e[t++])return o()}return t++,"{"===d?a:h}for(const[r,i]of[["true",!0],["false",!1],["null",null]])if(e.startsWith(r,t))return t+=r.length,i;const h=/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?/.exec(e.slice(t));if(!h)return o();if(h[0].length>1e3)throw new RangeError("JSON number length limit exceeded");return t+=h[0].length,r=/[.eE]/.test(h[0])?h[0]:null,a.sourceNumber(h[0])}(0);if(n(),t!==e.length&&o(),null===l||"object"!=typeof l||Array.isArray(l)||l instanceof i.ExactDecimal)throw new SyntaxError("Expected a JSON object");return l}static clone(e){const t=new Set;return function e(r){if(i.ExactDecimal.isExact(r))return i.ExactDecimal.forValue(String(r));if(null==r||"string"==typeof r||"boolean"==typeof r)return r;if("number"==typeof r&&Number.isFinite(r))return r;if("object"!=typeof r||t.has(r))throw new TypeError("Expected acyclic JSON data");t.add(r);try{if(Array.isArray(r))return r.map(e);if(Object.getPrototypeOf(r)!==Object.prototype&&null!==Object.getPrototypeOf(r))throw new TypeError("Expected a JSON object");return Object.fromEntries(Object.entries(r).map(([t,r])=>[t,e(r)]))}finally{t.delete(r)}}(e)}static stringify(e,t=0){const r=" ".repeat(Math.max(0,Math.min(10,t))),s=new Set,a=function e(t,a){if(i.ExactDecimal.isExact(t))return t.toString();if("number"==typeof t)return(0,n.javaPlainDecimal)(t);if("string"==typeof t||"boolean"==typeof t||null===t)return JSON.stringify(t);if(void 0!==t){if("object"!=typeof t)throw new TypeError("Expected a JSON value");if(a>1e3||s.has(t))throw new TypeError("Cyclic JSON value or nesting limit exceeded");s.add(t);try{const i=Array.isArray(t),n=[];if(i)for(const r of t)n.push(e(r,a+1)??"null");else for(const i of Object.keys(t)){const s=e(t[i],a+1);void 0!==s&&n.push(JSON.stringify(i)+(r?": ":":")+s)}const[s,o]=i?["[","]"]:["{","}"];return n.length?r?s+"\n"+r.repeat(a+1)+n.join(",\n"+r.repeat(a+1))+"\n"+r.repeat(a)+o:s+n.join(",")+o:s+o}finally{s.delete(t)}}}(e,0);if(void 0===a)throw new TypeError("Expected a JSON value");return a}}t.JsonSourcePolicy=a},108(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.NumericPolicy=t.ExactDecimal=void 0;class r{text;cedarExactDecimal=!0;static isExact(e){return null!==e&&"object"==typeof e&&!0===e.cedarExactDecimal&&"function"==typeof e.toJSON}constructor(e){this.text=e,Object.freeze(this)}static forValue(e){return new r(i.canonical(e))}toString(){return this.text}valueOf(){throw new Error("Use NumericPolicy.compare for exact decimals; implicit numeric coercion would lose precision.")}toJSON(){const e=JSON.rawJSON;if(!e)throw new Error("Use JsonSourcePolicy.stringify to serialize exact decimal numbers.");return e(this.text)}}t.ExactDecimal=r;class i{static parts(e){const t="string"==typeof e?e:String(e),r=/^([+-]?)(?:(\d+)(?:\.(\d*))?|\.(\d+))(?:[eE]([+-]?\d+))?$/.exec(t);if(!r)throw new Error("Expected a finite decimal number without surrounding whitespace.");const i=r[3]??r[4]??"",n=BigInt(r[5]??"0");let s=n-BigInt(i.length);if(n<-2147483647n||n>2147483647n||s<-2147483647n||s>2147483648n)throw new Error("Decimal exponent or scale is outside the shared numeric range.");let a=((r[2]??"")+i).replace(/^0+/,"");if(!a)return{sign:0,digits:"0",exponent:0n};const o=/0+$/.exec(a)?.[0].length??0;return o&&(a=a.slice(0,-o),s+=BigInt(o)),{sign:"-"===r[1]?-1:1,digits:a,exponent:s}}static canonical(e){const{sign:t,digits:r,exponent:i}=this.parts(e);if(!t)return"0";const n=t<0?"-":"",s=i+BigInt(r.length-1);if(i>=0n&&s<1000n)return n+r+"0".repeat(Number(i));if(i<0n&&s>=-1000n){const e=r.length+Number(i);return n+(e>0?r.slice(0,e)+"."+r.slice(e):"0."+"0".repeat(-e)+r)}if(s>2147483647n){const e=i-2147483647n;return n+r+(e>0n?"0".repeat(Number(e)):"")+"E+"+(e>0n?2147483647n:i)}return n+r[0]+(r.length>1?"."+r.slice(1):"")+"E"+(s>=0n?"+":"")+s}static compare(e,t){const r=this.parts(e),i=this.parts(t);if(r.sign!==i.sign)return r.sign<i.sign?-1:1;if(!r.sign)return 0;const n=BigInt(r.digits.length)+r.exponent,s=BigInt(i.digits.length)+i.exponent;let a;if(n!==s)a=n<s?-1:1;else{const e=Math.max(r.digits.length,i.digits.length),t=r.digits.padEnd(e,"0"),n=i.digits.padEnd(e,"0");a=t===n?0:t<n?-1:1}return 0===a?0:a*r.sign}static isInteger(e){return this.parts(e).exponent>=0n}static fractionalDigits(e){return Math.max(0,-Number(this.parts(e).exponent))}static value(e){if(r.isExact(e))return e;if(this.parts(e),"number"==typeof e)return e;const t=Number(e);return!Number.isFinite(t)||Number.isInteger(t)&&!Number.isSafeInteger(t)||0!==this.compare(e,t)?r.forValue(e):t}}t.NumericPolicy=i},991(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.RegexChecks=void 0;const i=r(128);class n{changed;policy;entries=new Map;used=null;size=0;disposed=!1;capacityLimited=!1;static active=null;constructor(e=()=>{},t=new i.RegexPolicy){this.changed=e,this.policy=t}run(e){if(this.used)return e();const t=n.active;n.active=this,this.used=new Set,this.capacityLimited=!1;try{return e()}finally{const e=this.used;this.used=null,n.active=t;let r=!1;for(const[t,i]of this.entries)e.has(t)||(r=!0,this.entries.delete(t),this.size-=t.length,i.controller.abort());r&&this.capacityLimited&&queueMicrotask(()=>{this.disposed||this.changed()})}}static inspect(e,t=null){return this.active?.check(e,t)??"pending"}check(e,t){if(this.disposed)return"cancelled";if(e.length>1e4||(t?.length??0)>1e6)return"limit";const r=JSON.stringify([e,t]);this.used.add(r);const i=this.entries.get(r);if(i)return i.result;if(this.entries.size>=1024||this.size+r.length>4e6)return this.capacityLimited=!0,"limit";const n=new AbortController,s={result:"pending",controller:n,done:Promise.resolve()};return this.entries.set(r,s),this.size+=r.length,s.done=this.policy.evaluate(e,t,n.signal).then(e=>{this.disposed||this.entries.get(r)!==s||(s.result=e,this.pending||this.changed())}),"pending"}get pending(){return[...this.entries.values()].some(e=>"pending"===e.result)}async settled(){await Promise.all([...this.entries.values()].map(e=>e.done))}static async validate(e,t){const r=new n(void 0,t);try{let t=r.run(e);for(;r.pending;)await r.settled(),t=r.run(e);return t}finally{r.dispose()}}dispose(){this.disposed=!0;for(const e of this.entries.values())e.controller.abort();this.entries.clear(),this.size=0,this.policy.dispose()}}t.RegexChecks=n},128(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.RegexPolicy=t.REGEX_WORKER_SOURCE=void 0,t.REGEX_WORKER_SOURCE="\n onmessage = ({data}) => {\n let result;\n try {\n const expression = new RegExp('^(?:' + data.pattern + ')$');\n result = data.value === null ? 'valid' : expression.test(data.value) ? 'match' : 'mismatch';\n } catch (_) { result = 'invalid'; }\n postMessage({id: data.id, result});\n };\n postMessage({ready: true});\n",t.RegexPolicy=class{worker=null;ready=!1;releaseSource=null;current=null;queue=[];serial=0;timer;idleTimer;closed=!1;options;constructor(e={}){this.options={workerFactory:e.workerFactory??(()=>{const e=globalThis,r=e.URL.createObjectURL(new e.Blob([t.REGEX_WORKER_SOURCE],{type:"text/javascript"}));return this.releaseSource=()=>e.URL.revokeObjectURL(r),new e.Worker(r)}),workTimeoutMs:e.workTimeoutMs??250,startupTimeoutMs:e.startupTimeoutMs??5e3,queueLimit:e.queueLimit??1024};for(const e of[this.options.workTimeoutMs,this.options.startupTimeoutMs,this.options.queueLimit])if(!Number.isSafeInteger(e)||e<1)throw new RangeError("Regex limits must be positive integers")}evaluate(e,t=null,r){return this.closed||r?.aborted?Promise.resolve("cancelled"):e.length>1e4||(t?.length??0)>1e6||this.queue.length>=this.options.queueLimit?Promise.resolve("limit"):new Promise(i=>{const n={id:++this.serial,pattern:e,value:t,finish:e=>{r?.removeEventListener("abort",s),i(e)}},s=()=>{this.current===n?this.fail("cancelled"):(this.queue=this.queue.filter(e=>e!==n),n.finish("cancelled"))};r?.addEventListener("abort",s,{once:!0}),this.queue.push(n),this.next()})}stopWorker(){clearTimeout(this.timer),clearTimeout(this.idleTimer),this.worker&&(this.worker.onmessage=null,this.worker.onerror=null,this.worker.terminate()),this.worker=null,this.ready=!1,this.releaseSource?.(),this.releaseSource=null}fail(e){this.stopWorker();const t=this.current;this.current=null,t?.finish(e),queueMicrotask(()=>this.next())}next(){if(!this.closed&&!this.current&&0!==this.queue.length)if(clearTimeout(this.idleTimer),this.current=this.queue.shift(),this.worker&&this.ready)this.send();else try{const e=this.options.workerFactory();this.worker=e,this.timer=setTimeout(()=>this.fail("unavailable"),this.options.startupTimeoutMs),e.onerror=()=>{this.worker===e&&this.fail("unavailable")},e.onmessage=({data:t})=>{if(this.worker!==e||!t||"object"!=typeof t)return;const r=t;if(r.ready&&!this.ready)clearTimeout(this.timer),this.ready=!0,this.send();else if(r.id===this.current?.id&&["valid","match","mismatch","invalid"].includes(r.result??"")){clearTimeout(this.timer);const e=this.current;this.current=null,e.finish(r.result),this.idleTimer=setTimeout(()=>this.stopWorker(),1e3),this.next()}}}catch{this.fail("unavailable")}}send(){if(this.current&&this.worker){this.timer=setTimeout(()=>this.fail("timeout"),this.options.workTimeoutMs);try{this.worker.postMessage({id:this.current.id,pattern:this.current.pattern,value:this.current.value})}catch{this.fail("unavailable")}}}dispose(){this.closed=!0,this.stopWorker(),this.current?.finish("cancelled"),this.current=null,this.queue.splice(0).forEach(e=>e.finish("cancelled"))}}},992(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.TextPolicy=void 0,t.TextPolicy=class{constructor(){}static isBlank(e){for(const t of e)if(!this.isBlankCodePoint(t.codePointAt(0)))return!1;return!0}static isBlankCodePoint(e){return e>=9&&e<=13||e>=28&&e<=32||5760===e||e>=8192&&e<=8198||e>=8200&&e<=8202||8232===e||8233===e||8287===e||12288===e}static codePointLength(e){return Array.from(e).length}static equalsIgnoreCase(e,t){const r=Array.from(e),i=Array.from(t);return e.length===t.length&&r.length===i.length&&r.every((e,t)=>{const r=i[t],n=e.toUpperCase(),s=r.toUpperCase();return e===r||n===s||n.toLowerCase()===s.toLowerCase()})}static trimInputPadding(e){return e.replace(/^[\t\n\r ]+|[\t\n\r ]+$/g,"")}}},435(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.TimestampPolicy=void 0,t.TimestampPolicy=class{static canonical(e){const t=e.replace(/([+-][0-9]{2})([0-9]{2})$/,"$1:$2"),r=/^(\d{4}|-\d{4,9}|\+\d{5,9})-(\d{2})-(\d{2})[Tt](\d{2}):(\d{2})(?::(\d{2})(?:\.(\d{1,9}))?)?([Zz]|[+-]\d{2}(?::\d{2}(?::\d{2})?)?)$/.exec(t);if(!r)throw new Error("Expected an ISO timestamp with an explicit offset.");const[,i,n,s,a,o,c="00",l="",u]=r,d=Number(i),h=Number(n),f=Number(s),p=[31,d%4!=0||d%100==0&&d%400!=0?28:29,31,30,31,30,31,31,30,31,30,31];if(0===d&&i.startsWith("-")||h<1||h>12||f<1||f>p[h-1]||Number(a)>23||Number(o)>59||Number(c)>59)throw new Error("Invalid timestamp calendar or clock value.");let m="Z";if("Z"!==u.toUpperCase()){const[e,t=0,r=0]=u.slice(1).split(":").map(Number);if(e>18||t>59||r>59||18===e&&(0!==t||0!==r))throw new Error("Timestamp offset is outside the ISO offset range.");(e||t||r)&&(m=`${u[0]}${String(e).padStart(2,"0")}:${String(t).padStart(2,"0")}`,r&&(m+=`:${String(r).padStart(2,"0")}`))}const g=(d<0?"-":d>9999?"+":"")+String(Math.abs(d)).padStart(4,"0"),y=l.replace(/0+$/,"");return`${g}-${n}-${s}T${a}:${o}:${c}${y?"."+y:""}${m}`}static matchesFormat(e){const t=/^(\d{4}|\+\d{5,9})-(0[1-9]|1[0-2])-(0[1-9]|[12]\d|3[01])T(?:[01]\d|2[0-3]|24(?=:00:00(?:\.0{1,9})?[Z+-])):[0-5]\d:[0-5]\d(?:\.\d{1,9})?(?:Z|[+-](\d{2})(?::([0-5]\d)(?::([0-5]\d))?|([0-5]\d)))$/.exec(e);if(null===t||Number(t[1])<1)return!1;const[,,,,r="0",i,n="0",s]=t;return 3600*Number(r)+60*Number(i??s??0)+Number(n)<=64800}}},92(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.ValidationPolicy=void 0;class r{static constraints=new Set(["minLength","maxLength","regex","pattern","email","link","phoneNumber","minValue","maxValue","decimalPlace","temporalGranularity","timezone","choiceMembership","maxItems","controlledTermMembership","authorityIdentifier","authorityMembership"]);static completeness=new Set(["required","minItems"]);static verification=new Set(["regexPending","regexEvaluation","regexUnavailable","semanticNotChecked","semanticUnavailable","controlledTermVerified","authorityVerified"]);static acceptsSemanticResult(e,t,r){switch(t){case"passed":return r===(e?"controlledTermVerified":"authorityVerified");case"failed":return e?"controlledTermMembership"===r:"authorityIdentifier"===r||"authorityMembership"===r;case"notChecked":return"semanticNotChecked"===r;case"unavailable":return"semanticUnavailable"===r;default:return!1}}static category(e){return this.constraints.has(e)?"constraint":this.completeness.has(e)?"completeness":this.verification.has(e)?"verification":"structural"}static blocksSave(e,t="instance"){if("string"!=typeof e&&"passed"===e.verificationStatus)return!1;const r="string"==typeof e?this.category(e):e.category;return"structural"===r||"template"===t&&("verification"!==r||"string"!=typeof e&&"failed"===e.verificationStatus)}static severity(e,t="instance"){return this.blocksSave(e,t)?"error":"warning"}static finding(e,t,r,i){const n={code:e,category:this.category(e),path:t,message:r};return void 0!==i&&(n.verificationStatus=i),n}static summarize(e,t="instance"){const r=e.filter(e=>"passed"!==e.verificationStatus);return{findings:[...e],structurallyValid:!r.some(e=>"structural"===e.category),canSave:!r.some(e=>this.blocksSave(e,t)),isValid:0===r.length}}static pointer(e){return e.map(e=>"/"+String(e).replace(/~/g,"~0").replace(/\//g,"~1")).join("")}static child(e,t){return e+this.pointer([t])}}t.ValidationPolicy=r},785(e,t,r){t.constraintLinks=function e(t,{instancePath:r="",parentData:s,parentDataProperty:a,rootData:o=t}={}){let c=null,l=0;if(t&&"object"==typeof t&&!Array.isArray(t)){if(Object.keys(t).length<1){const e={instancePath:r,schemaPath:"#/minProperties",keyword:"minProperties",params:{limit:1},message:"must NOT have fewer than 1 properties"};null===c?c=[e]:c.push(e),l++}for(const e in t)if("landingPage"!==e&&"icon"!==e){const t={instancePath:r,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:e},message:"must NOT have additional properties"};null===c?c=[t]:c.push(t),l++}if(void 0!==t.landingPage){let e=t.landingPage;if("string"==typeof e){if(!n.test(e)){const e={instancePath:r+"/landingPage",schemaPath:"#/properties/landingPage/pattern",keyword:"pattern",params:{pattern:"^https?://[^/?#@\\s\\\\]+(?:[/?#][^\\s\\\\]*)?$"},message:'must match pattern "^https?://[^/?#@\\s\\\\]+(?:[/?#][^\\s\\\\]*)?$"'};null===c?c=[e]:c.push(e),l++}if(!i.validate(e)){const e={instancePath:r+"/landingPage",schemaPath:"#/properties/landingPage/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};null===c?c=[e]:c.push(e),l++}}else{const e={instancePath:r+"/landingPage",schemaPath:"#/properties/landingPage/type",keyword:"type",params:{type:"string"},message:"must be string"};null===c?c=[e]:c.push(e),l++}}if(void 0!==t.icon){let e=t.icon;if("string"==typeof e){if(!n.test(e)){const e={instancePath:r+"/icon",schemaPath:"#/properties/icon/pattern",keyword:"pattern",params:{pattern:"^https?://[^/?#@\\s\\\\]+(?:[/?#][^\\s\\\\]*)?$"},message:'must match pattern "^https?://[^/?#@\\s\\\\]+(?:[/?#][^\\s\\\\]*)?$"'};null===c?c=[e]:c.push(e),l++}if(!i.validate(e)){const e={instancePath:r+"/icon",schemaPath:"#/properties/icon/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};null===c?c=[e]:c.push(e),l++}}else{const e={instancePath:r+"/icon",schemaPath:"#/properties/icon/type",keyword:"type",params:{type:"string"},message:"must be string"};null===c?c=[e]:c.push(e),l++}}}else{const e={instancePath:r,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};null===c?c=[e]:c.push(e),l++}return e.errors=c,0===l};const i=r(659).M.uri,n=new RegExp("^https?://[^/?#@\\s\\\\]+(?:[/?#][^\\s\\\\]*)?$","u")}};const t={};function r(i){const n=t[i];if(void 0!==n)return n.exports;const s=t[i]={exports:{}};return e[i](s,s.exports,r),s.exports}let i={};(()=>{let e=i;Object.defineProperty(e,"__esModule",{value:!0}),e.readConstraintLinks=e.ValidationPolicy=e.RegexChecks=e.REGEX_WORKER_SOURCE=e.RegexPolicy=e.JsonSourcePolicy=e.ExactDecimal=e.NumericPolicy=e.TimestampPolicy=e.DisplayText=e.IdentifierPolicy=e.TextPolicy=void 0;var t=r(992);Object.defineProperty(e,"TextPolicy",{enumerable:!0,get:function(){return t.TextPolicy}});var n=r(500);Object.defineProperty(e,"IdentifierPolicy",{enumerable:!0,get:function(){return n.IdentifierPolicy}});var s=r(68);Object.defineProperty(e,"DisplayText",{enumerable:!0,get:function(){return s.DisplayText}});var a=r(435);Object.defineProperty(e,"TimestampPolicy",{enumerable:!0,get:function(){return a.TimestampPolicy}});var o=r(108);Object.defineProperty(e,"NumericPolicy",{enumerable:!0,get:function(){return o.NumericPolicy}}),Object.defineProperty(e,"ExactDecimal",{enumerable:!0,get:function(){return o.ExactDecimal}});var c=r(904);Object.defineProperty(e,"JsonSourcePolicy",{enumerable:!0,get:function(){return c.JsonSourcePolicy}});var l=r(128);Object.defineProperty(e,"RegexPolicy",{enumerable:!0,get:function(){return l.RegexPolicy}}),Object.defineProperty(e,"REGEX_WORKER_SOURCE",{enumerable:!0,get:function(){return l.REGEX_WORKER_SOURCE}});var u=r(991);Object.defineProperty(e,"RegexChecks",{enumerable:!0,get:function(){return u.RegexChecks}});var d=r(92);Object.defineProperty(e,"ValidationPolicy",{enumerable:!0,get:function(){return d.ValidationPolicy}});var h=r(181);Object.defineProperty(e,"readConstraintLinks",{enumerable:!0,get:function(){return h.readConstraintLinks}})})();const n=i.DisplayText,s=i.ExactDecimal,a=i.IdentifierPolicy,o=i.JsonSourcePolicy,c=i.NumericPolicy,l=i.REGEX_WORKER_SOURCE,u=i.RegexChecks,d=i.RegexPolicy,h=i.TextPolicy,f=i.TimestampPolicy,p=i.ValidationPolicy,m=i.__esModule,g=i.readConstraintLinks;export{n as DisplayText,s as ExactDecimal,a as IdentifierPolicy,o as JsonSourcePolicy,c as NumericPolicy,l as REGEX_WORKER_SOURCE,u as RegexChecks,d as RegexPolicy,h as TextPolicy,f as TimestampPolicy,p as ValidationPolicy,m as __esModule,g as readConstraintLinks};export default i;
|
|
2
2
|
//# sourceMappingURL=policy.esm.js.map
|