@septkit/ui 0.0.79 → 0.0.80
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/dist/dialecte/create-document-store.js +4 -4
- package/dist/external/.pnpm/{@dialecte_core@0.8.1 → @dialecte_core@0.8.0}/node_modules/@dialecte/core/dist/dialecte-gIPrRzni.js +1 -1
- package/dist/external/.pnpm/{@dialecte_core@0.8.1 → @dialecte_core@0.8.0}/node_modules/@dialecte/core/dist/project-key-Ch34EtFa.js +1 -1
- package/dist/external/.pnpm/{@dialecte_core@0.8.1 → @dialecte_core@0.8.0}/node_modules/@dialecte/core/dist/rolldown-runtime-CYdcPHCu.js +1 -1
- package/dist/external/.pnpm/{@dialecte_core@0.8.1 → @dialecte_core@0.8.0}/node_modules/@dialecte/core/dist/running-operations-vnijBvn7.js +1 -1
- package/dist/external/.pnpm/{@dialecte_core@0.8.1 → @dialecte_core@0.8.0}/node_modules/@dialecte/core/dist/same-json-value-C6kUaoyt.js +1 -1
- package/dist/external/.pnpm/{@dialecte_core@0.8.1 → @dialecte_core@0.8.0}/node_modules/@dialecte/core/dist/utils-USNkj4sT.js +1 -1
- package/dist/external/.pnpm/{@dialecte_scl@0.13.2_libxml2-wasm@0.7.2_vitest@4.1.10/node_modules/@dialecte/scl/dist/hooks-DpI8_nD9.js → @dialecte_scl@0.11.0_libxml2-wasm@0.7.2_vitest@4.1.10/node_modules/@dialecte/scl/dist/hooks-F61-rgXT.js} +234 -262
- package/dist/external/.pnpm/@dialecte_scl@0.11.0_libxml2-wasm@0.7.2_vitest@4.1.10/node_modules/@dialecte/scl/dist/v2019C1/index.js +22 -0
- package/dist/index.d.ts +25 -6
- package/dist/index.js +13 -13
- package/dist/merge/check-files/identity-warning.js +1 -2
- package/dist/merge/confirm/outcome.js +4 -4
- package/dist/merge/done/applied-focus.js +1 -1
- package/dist/merge/match/match.js +4 -4
- package/dist/merge/session/components/merge-review.vue_vue_type_script_setup_true_lang.js +0 -1
- package/dist/merge/session/merge.service.js +19 -25
- package/dist/merge/session/use-merge-session.js +1 -11
- package/dist/merge/wording.js +4 -4
- package/dist/selector-input/index.js +3 -0
- package/dist/selector-input/selector-input.js +90 -0
- package/dist/selector-input/selector-input.vue_vue_type_script_setup_true_lang.js +180 -0
- package/dist/selector-input/selector-input2.js +5 -0
- package/dist/ui.css +1 -1
- package/package.json +3 -3
- package/dist/external/.pnpm/@dialecte_scl@0.13.2_libxml2-wasm@0.7.2_vitest@4.1.10/node_modules/@dialecte/scl/dist/v2019C1/index.js +0 -3
- package/dist/xpath-input/index.js +0 -3
- package/dist/xpath-input/xpath-input.js +0 -28
- package/dist/xpath-input/xpath-input.vue_vue_type_script_setup_true_lang.js +0 -101
- package/dist/xpath-input/xpath-input2.js +0 -5
- /package/dist/external/.pnpm/{@dialecte_core@0.8.1 → @dialecte_core@0.8.0}/node_modules/@dialecte/core/dist/helpers-DVShv41E.js +0 -0
- /package/dist/external/.pnpm/{@dialecte_core@0.8.1 → @dialecte_core@0.8.0}/node_modules/@dialecte/core/dist/helpers.js +0 -0
- /package/dist/external/.pnpm/{@dialecte_core@0.8.1 → @dialecte_core@0.8.0}/node_modules/@dialecte/core/dist/index.js +0 -0
- /package/dist/external/.pnpm/{@dialecte_core@0.8.1 → @dialecte_core@0.8.0}/node_modules/@dialecte/core/dist/utils.js +0 -0
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { H as e, R as t, _ as n, b as r, f as i, g as a } from "../../../../../@dialecte_core@0.8.
|
|
2
|
-
import "../../../../../@dialecte_core@0.8.
|
|
3
|
-
import { n as o } from "../../../../../@dialecte_core@0.8.
|
|
4
|
-
import "../../../../../@dialecte_core@0.8.
|
|
5
|
-
import "../../../../../@dialecte_core@0.8.
|
|
6
|
-
//#region node_modules/.pnpm/@dialecte+scl@0.
|
|
1
|
+
import { H as e, R as t, _ as n, b as r, f as i, g as a } from "../../../../../@dialecte_core@0.8.0/node_modules/@dialecte/core/dist/utils-USNkj4sT.js";
|
|
2
|
+
import "../../../../../@dialecte_core@0.8.0/node_modules/@dialecte/core/dist/utils.js";
|
|
3
|
+
import { n as o } from "../../../../../@dialecte_core@0.8.0/node_modules/@dialecte/core/dist/helpers-DVShv41E.js";
|
|
4
|
+
import "../../../../../@dialecte_core@0.8.0/node_modules/@dialecte/core/dist/index.js";
|
|
5
|
+
import "../../../../../@dialecte_core@0.8.0/node_modules/@dialecte/core/dist/helpers.js";
|
|
6
|
+
//#region node_modules/.pnpm/@dialecte+scl@0.11.0_libxml2-wasm@0.7.2_vitest@4.1.10/node_modules/@dialecte/scl/dist/hooks-F61-rgXT.js
|
|
7
7
|
var s = /* @__PURE__ */ "AccessControl.AccessPoint.Address.AllocationRole.AllocationRoleRef.AnalogueWiringParameters.AnalogueWiringParametersRef.Application.ApplicationSclRef.Association.Authentication.BDA.Bay.BayType.BehaviorDescription.BehaviorDescriptionRef.BehaviorReference.BinaryWiringParameters.BinaryWiringParametersRef.BitRate.CheckoutID.ClientLN.ClientServices.CommProt.Communication.CommunicationServiceSpecifications.ConductingEquipment.ConfDataSet.ConfLNs.ConfLdName.ConfLogControl.ConfReportControl.ConfSG.ConfSigRef.ConnectedAP.ConnectivityNode.ControlRef.ControllingLNode.DA.DAI.DAS.DAType.DO.DOI.DOS.DOType.DataObjectDirectory.DataSet.DataSetDirectory.DataTypeTemplates.DynAssociation.DynDataSet.EnumType.EnumVal.EqFunction.EqSubFunction.ExtCtrl.ExtRef.FCDA.FileHandling.Function.FunctionCatRef.FunctionCategory.FunctionCategoryRef.FunctionRef.FunctionRole.FunctionRoleContent.FunctionSclRef.FunctionTemplate.FunctionalSubVariant.FunctionalVariant.FunctionalVariantGroup.FunctionalVariantRef.GOOSE.GOOSEMcSecurity.GOOSESecurity.GSE.GSEControl.GSEDir.GSESettings.GSSE.GeneralEquipment.GetCBValues.GetDataObjectDefinition.GetDataSetValue.GetDirectory.GooseParameters.GooseParametersRef.Header.History.Hitem.IED.IEDName.IEDSourceFiles.InputVar.InputVarRef.Inputs.IssuerName.KDC.L2CommParameters.L3IPv4CommParameters.L3IPv6CommParameters.LDevice.LN.LN0.LNode.LNodeDataRef.LNodeInputRef.LNodeInputs.LNodeOutputRef.LNodeOutputs.LNodeSpecNaming.LNodeType.Label.Labels.Line.Log.LogControl.LogParameters.LogParametersRef.LogSettings.MaxTime.McSecurity.MinRequestedSCDFile.MinRequestedSCDFiles.MinTime.MultiAPPerSubNet.NeutralPoint.OptFields.OutputVar.OutputVarRef.Outputs.P.PhysConn.PowerSystemRelation.PowerSystemRelationRef.PowerSystemRelations.PowerTransformer.Private.Process.ProcessEcho.ProcessResource.ProcessResourceRef.ProcessResources.Project.ProjectProcessReference.ProtNs.Protocol.ReadWrite.RedProt.ReportControl.ReportParameters.ReportParametersRef.ReportSettings.Resource.RptEnabled.SCL.SCSM.SDI.SDO.SDS.SGEdit.SMV.SMVParameters.SMVParametersRef.SMVSecurity.SMVSettings.SMVsc.SVMcSecurity.SampledValueControl.SamplesPerSec.SclFileReference.SecPerSamples.Security.Server.ServerAt.ServiceSpecifications.Services.SetDataSetValue.SettingControl.SettingGroups.SignalRole.SmpRate.SmvOpts.SourceFiles.SourceRef.SubCategory.SubCheckoutID.SubEquipment.SubFunction.SubFunctionTemplate.SubNetwork.Subject.SubscriberLNode.Substation.SupSubscription.TapChanger.Terminal.Text.TimeSyncProt.TimerActivatedControl.TransformerWinding.TrgOps.Val.ValueHandling.Variable.VariableApplyTo.VariableRef.Voltage.VoltageLevel".split("."), c = {
|
|
8
8
|
AccessControl: [],
|
|
9
9
|
AccessPoint: [
|
|
@@ -43430,7 +43430,7 @@ var s = /* @__PURE__ */ "AccessControl.AccessPoint.Address.AllocationRole.Alloca
|
|
|
43430
43430
|
}]
|
|
43431
43431
|
}
|
|
43432
43432
|
}
|
|
43433
|
-
},
|
|
43433
|
+
}, ie = { supportedFileExtensions: [
|
|
43434
43434
|
".fsd",
|
|
43435
43435
|
".asd",
|
|
43436
43436
|
".ssd",
|
|
@@ -43439,7 +43439,7 @@ var s = /* @__PURE__ */ "AccessControl.AccessPoint.Address.AllocationRole.Alloca
|
|
|
43439
43439
|
".icd",
|
|
43440
43440
|
".iid",
|
|
43441
43441
|
".xml"
|
|
43442
|
-
] },
|
|
43442
|
+
] }, ae = {
|
|
43443
43443
|
recordSchema: {
|
|
43444
43444
|
primaryKey: "id",
|
|
43445
43445
|
indexes: [
|
|
@@ -43457,7 +43457,7 @@ var s = /* @__PURE__ */ "AccessControl.AccessPoint.Address.AllocationRole.Alloca
|
|
|
43457
43457
|
},
|
|
43458
43458
|
additionalTables: { attachedFiles: { schema: "id, filename, file" } }
|
|
43459
43459
|
}
|
|
43460
|
-
},
|
|
43460
|
+
}, m = {
|
|
43461
43461
|
default: {
|
|
43462
43462
|
uri: "http://www.iec.ch/61850/2003/SCL",
|
|
43463
43463
|
prefix: ""
|
|
@@ -43467,22 +43467,22 @@ var s = /* @__PURE__ */ "AccessControl.AccessPoint.Address.AllocationRole.Alloca
|
|
|
43467
43467
|
prefix: "eIEC61850-6-100"
|
|
43468
43468
|
},
|
|
43469
43469
|
xsi: t
|
|
43470
|
-
},
|
|
43470
|
+
}, h = {
|
|
43471
43471
|
rootElementName: "SCL",
|
|
43472
43472
|
singletonElements: te,
|
|
43473
43473
|
transparentElements: ["Private"],
|
|
43474
43474
|
elements: s,
|
|
43475
|
-
namespaces:
|
|
43475
|
+
namespaces: m,
|
|
43476
43476
|
attributes: f,
|
|
43477
43477
|
children: c,
|
|
43478
43478
|
parents: l,
|
|
43479
43479
|
descendants: u,
|
|
43480
43480
|
ancestors: ee,
|
|
43481
|
-
database:
|
|
43482
|
-
io:
|
|
43481
|
+
database: ae,
|
|
43482
|
+
io: ie,
|
|
43483
43483
|
definition: p,
|
|
43484
43484
|
types: re
|
|
43485
|
-
},
|
|
43485
|
+
}, g = {
|
|
43486
43486
|
AllocationRoleRef: [{
|
|
43487
43487
|
attribute: {
|
|
43488
43488
|
path: "allocationRole",
|
|
@@ -43867,7 +43867,7 @@ var s = /* @__PURE__ */ "AccessControl.AccessPoint.Address.AllocationRole.Alloca
|
|
|
43867
43867
|
target: ["Variable"],
|
|
43868
43868
|
companions: []
|
|
43869
43869
|
}]
|
|
43870
|
-
},
|
|
43870
|
+
}, _ = {
|
|
43871
43871
|
Association: [{
|
|
43872
43872
|
attribute: { uuid: "lnUuid" },
|
|
43873
43873
|
target: ["LN", "LN0"],
|
|
@@ -44032,25 +44032,25 @@ var s = /* @__PURE__ */ "AccessControl.AccessPoint.Address.AllocationRole.Alloca
|
|
|
44032
44032
|
controlBlock: "cbName"
|
|
44033
44033
|
}
|
|
44034
44034
|
}]
|
|
44035
|
-
},
|
|
44036
|
-
new Set(Object.values(
|
|
44037
|
-
var
|
|
44035
|
+
}, v = Object.keys(g), y = new Set(v);
|
|
44036
|
+
new Set(Object.values(g).flatMap((e) => e.flatMap((e) => e.target)));
|
|
44037
|
+
var oe = "TEMPLATE", b = [
|
|
44038
44038
|
"Substation",
|
|
44039
44039
|
"VoltageLevel",
|
|
44040
44040
|
"Bay"
|
|
44041
|
-
],
|
|
44041
|
+
], x = [
|
|
44042
44042
|
"Application",
|
|
44043
44043
|
"Function",
|
|
44044
44044
|
"FunctionCategory",
|
|
44045
44045
|
"AllocationRole",
|
|
44046
44046
|
"Variable",
|
|
44047
44047
|
"BehaviorDescription"
|
|
44048
|
-
],
|
|
44048
|
+
], S = /* @__PURE__ */ new Set([
|
|
44049
44049
|
"Text",
|
|
44050
44050
|
"Private",
|
|
44051
44051
|
"Labels",
|
|
44052
44052
|
"Label"
|
|
44053
|
-
]),
|
|
44053
|
+
]), C = [
|
|
44054
44054
|
"ReportControl",
|
|
44055
44055
|
"LogControl",
|
|
44056
44056
|
"GSEControl",
|
|
@@ -44060,26 +44060,26 @@ var ae = "TEMPLATE", x = [
|
|
|
44060
44060
|
"ExtRef",
|
|
44061
44061
|
"DAI"
|
|
44062
44062
|
];
|
|
44063
|
-
|
|
44063
|
+
w({ roots: C }), w({
|
|
44064
44064
|
roots: ["ConnectedAP"],
|
|
44065
|
-
excluded: /* @__PURE__ */ new Set([...
|
|
44066
|
-
}),
|
|
44065
|
+
excluded: /* @__PURE__ */ new Set([...S, "PhysConn"])
|
|
44066
|
+
}), w({
|
|
44067
44067
|
roots: ["SubNetwork"],
|
|
44068
|
-
excluded:
|
|
44069
|
-
}),
|
|
44070
|
-
function
|
|
44068
|
+
excluded: w({ roots: ["ConnectedAP"] })
|
|
44069
|
+
}), se();
|
|
44070
|
+
function w(e) {
|
|
44071
44071
|
let { roots: t, excluded: n } = e, r = u, i = t.flatMap((e) => [e, ...r[e] ?? []]);
|
|
44072
|
-
return new Set(i.filter((e) => !
|
|
44072
|
+
return new Set(i.filter((e) => !S.has(e) && !n?.has(e)));
|
|
44073
44073
|
}
|
|
44074
|
-
function
|
|
44074
|
+
function se() {
|
|
44075
44075
|
let e = p.MinRequestedSCDFile.attributes.identityFields, t = ne.MinRequestedSCDFile;
|
|
44076
44076
|
return Object.keys(f.byTag.MinRequestedSCDFile).filter((n) => !e.includes(n) && !t.includes(n));
|
|
44077
44077
|
}
|
|
44078
|
-
var
|
|
44078
|
+
var T = p.LNode?.attributes?.identityFields ?? [], E = new Map(T.map((e) => [e, ce(e)]).filter(([, e]) => e in f.byTag.LNodeSpecNaming));
|
|
44079
44079
|
function ce(e) {
|
|
44080
44080
|
return `s${e.charAt(0).toUpperCase()}${e.slice(1)}`;
|
|
44081
44081
|
}
|
|
44082
|
-
var
|
|
44082
|
+
var D = [
|
|
44083
44083
|
{
|
|
44084
44084
|
name: "processName",
|
|
44085
44085
|
from: "Process"
|
|
@@ -44104,7 +44104,7 @@ var le = [
|
|
|
44104
44104
|
name: "cNodeName",
|
|
44105
44105
|
from: "ConnectivityNode"
|
|
44106
44106
|
}
|
|
44107
|
-
],
|
|
44107
|
+
], O = {
|
|
44108
44108
|
ConnectivityNode: {
|
|
44109
44109
|
follows: "self",
|
|
44110
44110
|
attributes: [{
|
|
@@ -44114,13 +44114,13 @@ var le = [
|
|
|
44114
44114
|
},
|
|
44115
44115
|
NeutralPoint: {
|
|
44116
44116
|
follows: "connectivityNode",
|
|
44117
|
-
attributes:
|
|
44117
|
+
attributes: D
|
|
44118
44118
|
},
|
|
44119
44119
|
Terminal: {
|
|
44120
44120
|
follows: "connectivityNode",
|
|
44121
|
-
attributes:
|
|
44121
|
+
attributes: D
|
|
44122
44122
|
}
|
|
44123
|
-
},
|
|
44123
|
+
}, k = {
|
|
44124
44124
|
direct: "direct",
|
|
44125
44125
|
lnode: "lnode",
|
|
44126
44126
|
iedAddress: "ied-address",
|
|
@@ -44128,7 +44128,7 @@ var le = [
|
|
|
44128
44128
|
ancestorName: "ancestor-name",
|
|
44129
44129
|
scopedName: "scoped-name",
|
|
44130
44130
|
unsupported: "unsupported"
|
|
44131
|
-
},
|
|
44131
|
+
}, A = {
|
|
44132
44132
|
LN: [{
|
|
44133
44133
|
attribute: "lnType",
|
|
44134
44134
|
target: "LNodeType"
|
|
@@ -44180,7 +44180,7 @@ var le = [
|
|
|
44180
44180
|
}
|
|
44181
44181
|
}]
|
|
44182
44182
|
};
|
|
44183
|
-
function
|
|
44183
|
+
function le(e) {
|
|
44184
44184
|
let t = {};
|
|
44185
44185
|
for (let [n, r] of Object.entries(e)) for (let e of r) {
|
|
44186
44186
|
let r = t[e.resolution] ??= /* @__PURE__ */ new Map();
|
|
@@ -44195,7 +44195,7 @@ function de(e) {
|
|
|
44195
44195
|
}
|
|
44196
44196
|
return t;
|
|
44197
44197
|
}
|
|
44198
|
-
function
|
|
44198
|
+
function ue(e) {
|
|
44199
44199
|
let t = /* @__PURE__ */ new Map();
|
|
44200
44200
|
for (let [n, r] of Object.entries(e)) t.set(n, r.map((e) => ({
|
|
44201
44201
|
uuidAttr: e.attribute.uuid,
|
|
@@ -44205,7 +44205,7 @@ function fe(e) {
|
|
|
44205
44205
|
})));
|
|
44206
44206
|
return t;
|
|
44207
44207
|
}
|
|
44208
|
-
function
|
|
44208
|
+
function de(e) {
|
|
44209
44209
|
let t = /* @__PURE__ */ new Map();
|
|
44210
44210
|
for (let [n, r] of Object.entries(e)) for (let e of r) {
|
|
44211
44211
|
let r = t.get(e.target) ?? [];
|
|
@@ -44217,11 +44217,11 @@ function pe(e) {
|
|
|
44217
44217
|
}
|
|
44218
44218
|
return t;
|
|
44219
44219
|
}
|
|
44220
|
-
function
|
|
44220
|
+
function fe(e) {
|
|
44221
44221
|
let { tagName: t, derived: n, rootConstraints: r } = e;
|
|
44222
44222
|
return {
|
|
44223
44223
|
...n,
|
|
44224
|
-
attributes: n.attributes.map((e) =>
|
|
44224
|
+
attributes: n.attributes.map((e) => pe({
|
|
44225
44225
|
tagName: t,
|
|
44226
44226
|
attribute: e,
|
|
44227
44227
|
rootConstraints: r
|
|
@@ -44231,51 +44231,51 @@ function me(e) {
|
|
|
44231
44231
|
} : e)
|
|
44232
44232
|
};
|
|
44233
44233
|
}
|
|
44234
|
-
function
|
|
44234
|
+
function pe(e) {
|
|
44235
44235
|
let { rootConstraints: t } = e;
|
|
44236
|
-
return t.some((t) =>
|
|
44236
|
+
return t.some((t) => me({
|
|
44237
44237
|
...e,
|
|
44238
44238
|
keyref: t
|
|
44239
44239
|
}));
|
|
44240
44240
|
}
|
|
44241
|
-
function
|
|
44241
|
+
function me(e) {
|
|
44242
44242
|
let { keyref: t, tagName: n, attribute: r, rootConstraints: i } = e;
|
|
44243
44243
|
if (t.kind !== "keyref" || t.fields.length !== 1) return !1;
|
|
44244
44244
|
let a = t.selector.some((e) => e.steps.at(-1)?.name === n), o = t.fields[0].some((e) => e.steps.length === 0 && e.attribute?.name === r.name), s = i.find((e) => e.kind !== "keyref" && e.name === t.refer?.name), c = s?.selector.every((e) => !e.deep && e.steps.length === 1), l = s?.selector.some((e) => e.steps[0]?.name === r.from);
|
|
44245
44245
|
return a && o && c === !0 && l === !0;
|
|
44246
44246
|
}
|
|
44247
|
-
var
|
|
44248
|
-
|
|
44249
|
-
|
|
44250
|
-
|
|
44251
|
-
|
|
44252
|
-
|
|
44253
|
-
|
|
44254
|
-
],
|
|
44255
|
-
|
|
44256
|
-
var
|
|
44247
|
+
var he = le(g), ge = [
|
|
44248
|
+
k.direct,
|
|
44249
|
+
k.lnode,
|
|
44250
|
+
k.iedAddress,
|
|
44251
|
+
k.behaviorDescription,
|
|
44252
|
+
k.ancestorName,
|
|
44253
|
+
k.scopedName
|
|
44254
|
+
], _e = [...ge, k.unsupported];
|
|
44255
|
+
ye(), new Map(Object.values(g).flatMap((e) => e.flatMap((e) => "nameScope" in e ? e.target.map((t) => [t, e.nameScope]) : [])));
|
|
44256
|
+
var ve = ue(g), j = new Map(Object.entries(g).flatMap(([e, t]) => t.filter((e) => e.attribute.path === "mappedDoName" || e.attribute.path === "mappedDaName").map((t) => [e, {
|
|
44257
44257
|
path: t.attribute.path,
|
|
44258
44258
|
uuid: t.attribute.uuid
|
|
44259
|
-
}]))),
|
|
44260
|
-
|
|
44259
|
+
}]))), M = [...T, "lnUuid"];
|
|
44260
|
+
be(), new Map([...j].map(([e, t]) => {
|
|
44261
44261
|
let r = p[e]?.attributes.details[t.path]?.type;
|
|
44262
44262
|
return [e, n(r)];
|
|
44263
|
-
})), [...new Set(Object.values(
|
|
44263
|
+
})), [...new Set(Object.values(g).flatMap((e) => e.map((e) => e.attribute.uuid)))], new Map(Object.entries(O).map(([e, t]) => [e, fe({
|
|
44264
44264
|
tagName: e,
|
|
44265
44265
|
derived: t,
|
|
44266
44266
|
rootConstraints: p.SCL?.constraints ?? []
|
|
44267
44267
|
})]));
|
|
44268
|
-
var
|
|
44269
|
-
new Set(
|
|
44270
|
-
function
|
|
44268
|
+
var N = new Map(Object.entries(A).map(([e, t]) => [e, [...new Set(t.map((e) => e.attribute))]])), P = de(A);
|
|
44269
|
+
new Set(P.keys());
|
|
44270
|
+
function ye() {
|
|
44271
44271
|
let e = /* @__PURE__ */ new Map();
|
|
44272
|
-
for (let t of
|
|
44272
|
+
for (let t of _e) for (let [n, r] of he[t] ?? []) e.set(n, [...e.get(n) ?? [], ...r]);
|
|
44273
44273
|
return e;
|
|
44274
44274
|
}
|
|
44275
|
-
function
|
|
44276
|
-
let e = [["LNode",
|
|
44275
|
+
function be() {
|
|
44276
|
+
let e = [["LNode", M]];
|
|
44277
44277
|
for (let t of ["DOS", "SDS"]) {
|
|
44278
|
-
let n =
|
|
44278
|
+
let n = j.get(t);
|
|
44279
44279
|
n && e.push([t, [
|
|
44280
44280
|
"name",
|
|
44281
44281
|
"ix",
|
|
@@ -44285,7 +44285,7 @@ function ve() {
|
|
|
44285
44285
|
}
|
|
44286
44286
|
return new Map(e);
|
|
44287
44287
|
}
|
|
44288
|
-
var
|
|
44288
|
+
var F = {
|
|
44289
44289
|
AccessPoint: { type: "transparent" },
|
|
44290
44290
|
Server: { type: "transparent" },
|
|
44291
44291
|
Private: { type: "transparent" },
|
|
@@ -44381,17 +44381,17 @@ var L = {
|
|
|
44381
44381
|
Variable: { type: "name" },
|
|
44382
44382
|
Process: { type: "name" }
|
|
44383
44383
|
};
|
|
44384
|
-
new Set(Object.entries(
|
|
44385
|
-
var
|
|
44384
|
+
new Set(Object.entries(F).filter(([, e]) => e.type === "signal").map(([e]) => e));
|
|
44385
|
+
var xe = [
|
|
44386
44386
|
"lnClass",
|
|
44387
44387
|
"prefix",
|
|
44388
44388
|
"inst"
|
|
44389
44389
|
];
|
|
44390
|
-
new Set(Object.values(
|
|
44390
|
+
new Set(Object.values(F).flatMap((e) => {
|
|
44391
44391
|
switch (e.type) {
|
|
44392
44392
|
case "transparent": return [];
|
|
44393
44393
|
case "name": return ["name"];
|
|
44394
|
-
case "lnClass": return [...
|
|
44394
|
+
case "lnClass": return [...xe];
|
|
44395
44395
|
case "lnode": return [
|
|
44396
44396
|
e.prefix,
|
|
44397
44397
|
e.lnClass,
|
|
@@ -44406,69 +44406,69 @@ new Set(Object.values(L).flatMap((e) => {
|
|
|
44406
44406
|
];
|
|
44407
44407
|
}
|
|
44408
44408
|
}));
|
|
44409
|
-
var
|
|
44410
|
-
let n = t.filter(
|
|
44409
|
+
var I = /* @__PURE__ */ new Set(["LN", "LN0"]), L = new Map(Object.entries(g).flatMap(([e, t]) => {
|
|
44410
|
+
let n = t.filter(Se);
|
|
44411
44411
|
return n.length > 0 ? [[e, n]] : [];
|
|
44412
44412
|
}));
|
|
44413
|
-
[...
|
|
44414
|
-
function
|
|
44415
|
-
return e.resolution ===
|
|
44413
|
+
[...I, ...[...L.values()].flatMap((e) => e.flatMap((e) => e.target))], new Map([["LNode", new Set(M)], ...[...L].map(([e, t]) => [e, new Set(t.map((e) => e.attribute.uuid))])]);
|
|
44414
|
+
function Se(e) {
|
|
44415
|
+
return e.resolution === k.iedAddress || e.target.every((e) => I.has(e));
|
|
44416
44416
|
}
|
|
44417
|
-
function
|
|
44417
|
+
function R(e) {
|
|
44418
44418
|
let { fullObject: t, ...n } = e;
|
|
44419
44419
|
return o({
|
|
44420
44420
|
...n,
|
|
44421
|
-
dialecteConfig:
|
|
44421
|
+
dialecteConfig: h,
|
|
44422
44422
|
fullObject: t
|
|
44423
44423
|
});
|
|
44424
44424
|
}
|
|
44425
|
-
function
|
|
44426
|
-
return
|
|
44425
|
+
function Ce(e) {
|
|
44426
|
+
return z(e) > 0;
|
|
44427
44427
|
}
|
|
44428
|
-
function
|
|
44428
|
+
function z(e) {
|
|
44429
44429
|
if (!e) return 0;
|
|
44430
44430
|
let t = e.minOccurs ?? 0;
|
|
44431
44431
|
if (e.kind === "element" || e.kind === "any") return t;
|
|
44432
|
-
let n = e.particles.map((e) =>
|
|
44432
|
+
let n = e.particles.map((e) => z(e));
|
|
44433
44433
|
return e.kind === "choice" ? n.length === 0 ? 0 : t * Math.min(...n) : t * n.reduce((e, t) => e + t, 0);
|
|
44434
44434
|
}
|
|
44435
|
-
function
|
|
44435
|
+
function we(e) {
|
|
44436
44436
|
let t = /* @__PURE__ */ new Set();
|
|
44437
|
-
return
|
|
44437
|
+
return B({
|
|
44438
44438
|
particle: e,
|
|
44439
44439
|
tags: t
|
|
44440
44440
|
}), t;
|
|
44441
44441
|
}
|
|
44442
|
-
function
|
|
44442
|
+
function B(e) {
|
|
44443
44443
|
let { particle: t, tags: n } = e;
|
|
44444
44444
|
if (!(!t || (t.minOccurs ?? 0) === 0)) if (t.kind === "element") n.add(t.name);
|
|
44445
44445
|
else if (t.kind === "any") n.add("");
|
|
44446
|
-
else for (let e of t.particles)
|
|
44446
|
+
else for (let e of t.particles) B({
|
|
44447
44447
|
particle: e,
|
|
44448
44448
|
tags: n
|
|
44449
44449
|
});
|
|
44450
44450
|
}
|
|
44451
|
-
function
|
|
44452
|
-
return
|
|
44451
|
+
function V(e) {
|
|
44452
|
+
return b.includes(e);
|
|
44453
44453
|
}
|
|
44454
|
-
function
|
|
44454
|
+
function Te(e) {
|
|
44455
44455
|
let { tagName: t, definition: n } = e;
|
|
44456
|
-
if (
|
|
44456
|
+
if (V(t) || !Ce(n.contentModel)) return !1;
|
|
44457
44457
|
let { identityFields: r = [], sequence: i } = n.attributes;
|
|
44458
|
-
return r.length === 0 && !i.includes("uuid") ? !0 : [...
|
|
44458
|
+
return r.length === 0 && !i.includes("uuid") ? !0 : [...we(n.contentModel)].every((e) => y.has(e));
|
|
44459
44459
|
}
|
|
44460
|
-
var
|
|
44460
|
+
var Ee = h.definition, De = new Set(Object.entries(Ee).filter(([e, t]) => Te({
|
|
44461
44461
|
tagName: e,
|
|
44462
44462
|
definition: t
|
|
44463
44463
|
})).map(([e]) => e));
|
|
44464
|
-
new Set(Object.values(
|
|
44465
|
-
function
|
|
44464
|
+
new Set(Object.values(h.namespaces).map((e) => e.prefix).filter((e) => e !== h.namespaces.default.prefix)), [...h.transparentElements, ...De];
|
|
44465
|
+
function Oe(e) {
|
|
44466
44466
|
switch (e.type) {
|
|
44467
44467
|
case "transparent": return () => null;
|
|
44468
44468
|
case "name": {
|
|
44469
44469
|
let t = e.separator ?? "/";
|
|
44470
44470
|
return (e) => {
|
|
44471
|
-
let n =
|
|
44471
|
+
let n = R({
|
|
44472
44472
|
record: e,
|
|
44473
44473
|
name: "name"
|
|
44474
44474
|
});
|
|
@@ -44479,25 +44479,25 @@ function Ee(e) {
|
|
|
44479
44479
|
};
|
|
44480
44480
|
}
|
|
44481
44481
|
case "lnClass": return (e) => {
|
|
44482
|
-
let t =
|
|
44482
|
+
let t = R({
|
|
44483
44483
|
record: e,
|
|
44484
44484
|
name: "lnClass",
|
|
44485
44485
|
defaults: "none"
|
|
44486
44486
|
});
|
|
44487
44487
|
return t ? {
|
|
44488
|
-
segment:
|
|
44489
|
-
prefix:
|
|
44488
|
+
segment: U({
|
|
44489
|
+
prefix: R({
|
|
44490
44490
|
record: e,
|
|
44491
44491
|
name: "prefix",
|
|
44492
44492
|
defaults: "none"
|
|
44493
44493
|
}),
|
|
44494
44494
|
lnClass: t,
|
|
44495
|
-
inst:
|
|
44495
|
+
inst: R({
|
|
44496
44496
|
record: e,
|
|
44497
44497
|
name: "inst",
|
|
44498
44498
|
defaults: "none",
|
|
44499
44499
|
fullObject: !0
|
|
44500
|
-
})?.value ??
|
|
44500
|
+
})?.value ?? R({
|
|
44501
44501
|
record: e,
|
|
44502
44502
|
name: "lnInst",
|
|
44503
44503
|
defaults: "none",
|
|
@@ -44508,7 +44508,7 @@ function Ee(e) {
|
|
|
44508
44508
|
} : null;
|
|
44509
44509
|
};
|
|
44510
44510
|
case "lnode": return (t, n) => {
|
|
44511
|
-
let r =
|
|
44511
|
+
let r = je({
|
|
44512
44512
|
strategy: e,
|
|
44513
44513
|
record: t,
|
|
44514
44514
|
specNaming: n?.specNaming
|
|
@@ -44519,7 +44519,7 @@ function Ee(e) {
|
|
|
44519
44519
|
} : null;
|
|
44520
44520
|
};
|
|
44521
44521
|
case "attribute": return (t) => {
|
|
44522
|
-
let n =
|
|
44522
|
+
let n = R({
|
|
44523
44523
|
record: t,
|
|
44524
44524
|
name: e.attr,
|
|
44525
44525
|
defaults: "none"
|
|
@@ -44530,7 +44530,7 @@ function Ee(e) {
|
|
|
44530
44530
|
} : null;
|
|
44531
44531
|
};
|
|
44532
44532
|
case "signal": return (t, n) => {
|
|
44533
|
-
let r =
|
|
44533
|
+
let r = ke({
|
|
44534
44534
|
strategy: e,
|
|
44535
44535
|
record: t,
|
|
44536
44536
|
siblings: n?.siblings ?? [t]
|
|
@@ -44542,104 +44542,104 @@ function Ee(e) {
|
|
|
44542
44542
|
};
|
|
44543
44543
|
}
|
|
44544
44544
|
}
|
|
44545
|
-
function
|
|
44546
|
-
let { strategy: t, record: n, siblings: r } = e, i =
|
|
44545
|
+
function ke(e) {
|
|
44546
|
+
let { strategy: t, record: n, siblings: r } = e, i = R({
|
|
44547
44547
|
record: n,
|
|
44548
44548
|
name: t.name,
|
|
44549
44549
|
defaults: "none"
|
|
44550
44550
|
});
|
|
44551
|
-
return i ? r.filter((e) => e.tagName === n.tagName &&
|
|
44551
|
+
return i ? r.filter((e) => e.tagName === n.tagName && R({
|
|
44552
44552
|
record: e,
|
|
44553
44553
|
name: t.name,
|
|
44554
44554
|
defaults: "none"
|
|
44555
|
-
}) === i).length <= 1 ? i :
|
|
44555
|
+
}) === i).length <= 1 ? i : Ae({
|
|
44556
44556
|
strategy: t,
|
|
44557
44557
|
record: n,
|
|
44558
44558
|
name: i
|
|
44559
44559
|
}) : null;
|
|
44560
44560
|
}
|
|
44561
|
-
function
|
|
44562
|
-
let { strategy: t, record: n, name: r } = e, i =
|
|
44561
|
+
function Ae(e) {
|
|
44562
|
+
let { strategy: t, record: n, name: r } = e, i = R({
|
|
44563
44563
|
record: n,
|
|
44564
44564
|
name: t.instance,
|
|
44565
44565
|
defaults: "none",
|
|
44566
44566
|
fullObject: !0
|
|
44567
|
-
})?.value ??
|
|
44567
|
+
})?.value ?? Me(n, t.instance), a = t.data ? R({
|
|
44568
44568
|
record: n,
|
|
44569
44569
|
name: t.data,
|
|
44570
44570
|
defaults: "none"
|
|
44571
44571
|
}) : void 0;
|
|
44572
44572
|
return `${r}${i ? `(${i})` : ""}${a ? `.${a}` : ""}`;
|
|
44573
44573
|
}
|
|
44574
|
-
function
|
|
44575
|
-
let { strategy: t, record: n, specNaming: r } = e, i =
|
|
44574
|
+
function je(e) {
|
|
44575
|
+
let { strategy: t, record: n, specNaming: r } = e, i = R({
|
|
44576
44576
|
record: n,
|
|
44577
44577
|
name: t.ied,
|
|
44578
44578
|
defaults: "none"
|
|
44579
44579
|
}), a = i && i !== "None" && r ? {
|
|
44580
|
-
prefix:
|
|
44580
|
+
prefix: R({
|
|
44581
44581
|
record: r,
|
|
44582
|
-
name:
|
|
44582
|
+
name: H(t.prefix),
|
|
44583
44583
|
defaults: "none"
|
|
44584
44584
|
}),
|
|
44585
|
-
lnClass:
|
|
44585
|
+
lnClass: R({
|
|
44586
44586
|
record: r,
|
|
44587
|
-
name:
|
|
44587
|
+
name: H(t.lnClass),
|
|
44588
44588
|
defaults: "none",
|
|
44589
44589
|
fullObject: !0
|
|
44590
|
-
})?.value ??
|
|
44590
|
+
})?.value ?? R({
|
|
44591
44591
|
record: n,
|
|
44592
44592
|
name: t.lnClass,
|
|
44593
44593
|
defaults: "none"
|
|
44594
44594
|
}),
|
|
44595
|
-
inst:
|
|
44595
|
+
inst: R({
|
|
44596
44596
|
record: r,
|
|
44597
|
-
name:
|
|
44597
|
+
name: H(t.inst),
|
|
44598
44598
|
defaults: "none"
|
|
44599
44599
|
})
|
|
44600
44600
|
} : {
|
|
44601
|
-
prefix:
|
|
44601
|
+
prefix: R({
|
|
44602
44602
|
record: n,
|
|
44603
44603
|
name: t.prefix,
|
|
44604
44604
|
defaults: "none"
|
|
44605
44605
|
}),
|
|
44606
|
-
lnClass:
|
|
44606
|
+
lnClass: R({
|
|
44607
44607
|
record: n,
|
|
44608
44608
|
name: t.lnClass,
|
|
44609
44609
|
defaults: "none"
|
|
44610
44610
|
}),
|
|
44611
|
-
inst:
|
|
44611
|
+
inst: R({
|
|
44612
44612
|
record: n,
|
|
44613
44613
|
name: t.inst,
|
|
44614
44614
|
defaults: "none"
|
|
44615
44615
|
})
|
|
44616
44616
|
};
|
|
44617
|
-
return a.lnClass ?
|
|
44617
|
+
return a.lnClass ? U({
|
|
44618
44618
|
prefix: a.prefix,
|
|
44619
44619
|
lnClass: a.lnClass,
|
|
44620
44620
|
inst: a.inst
|
|
44621
44621
|
}) : null;
|
|
44622
44622
|
}
|
|
44623
|
-
function
|
|
44624
|
-
return
|
|
44623
|
+
function H(e) {
|
|
44624
|
+
return E.get(e) ?? e;
|
|
44625
44625
|
}
|
|
44626
|
-
function
|
|
44626
|
+
function Me(e, t) {
|
|
44627
44627
|
return r({
|
|
44628
|
-
dialecteConfig:
|
|
44628
|
+
dialecteConfig: h,
|
|
44629
44629
|
record: e,
|
|
44630
44630
|
attributeName: t
|
|
44631
44631
|
}).default;
|
|
44632
44632
|
}
|
|
44633
|
-
var
|
|
44634
|
-
function
|
|
44635
|
-
let n =
|
|
44633
|
+
var Ne = Object.fromEntries(Object.entries(F).map(([e, t]) => [e, Oe(t)]));
|
|
44634
|
+
function Pe(e, t) {
|
|
44635
|
+
let n = Ne[e.tagName];
|
|
44636
44636
|
return n ? n(e, t) : null;
|
|
44637
44637
|
}
|
|
44638
|
-
function
|
|
44638
|
+
function U(e) {
|
|
44639
44639
|
let { prefix: t, lnClass: n, inst: r } = e;
|
|
44640
44640
|
return `${t ?? ""}${n}${r ?? ""}`;
|
|
44641
44641
|
}
|
|
44642
|
-
function
|
|
44642
|
+
function Fe(e) {
|
|
44643
44643
|
let [t, n] = e.companions;
|
|
44644
44644
|
return {
|
|
44645
44645
|
doAttribute: t?.name,
|
|
@@ -44647,12 +44647,12 @@ function Ne(e) {
|
|
|
44647
44647
|
doRequired: t?.required === !0
|
|
44648
44648
|
};
|
|
44649
44649
|
}
|
|
44650
|
-
function
|
|
44650
|
+
function W(e) {
|
|
44651
44651
|
return e.controlBlock ? "cb" : e.accessPoint ? "ap" : e.lnClass ? "ln" : "ld";
|
|
44652
44652
|
}
|
|
44653
|
-
var
|
|
44653
|
+
var G = new Map(Object.values(_).flatMap((e) => e.flatMap((e) => e.target.map((t) => [t, W(e.tuple)])))), K = new Map([...new Set(G.values())].map((e) => [e, [...G].flatMap(([t, n]) => n === e ? [t] : [])]));
|
|
44654
44654
|
r({
|
|
44655
|
-
dialecteConfig:
|
|
44655
|
+
dialecteConfig: h,
|
|
44656
44656
|
record: {
|
|
44657
44657
|
tagName: "LN0",
|
|
44658
44658
|
parent: null,
|
|
@@ -44660,7 +44660,7 @@ r({
|
|
|
44660
44660
|
},
|
|
44661
44661
|
attributeName: "lnClass"
|
|
44662
44662
|
}).fixed;
|
|
44663
|
-
var Ie = [...new Set(Object.values(
|
|
44663
|
+
var Ie = [...new Set(Object.values(_).flatMap((e) => e.flatMap((e) => Object.keys(e.tuple).filter((e) => e !== "ied"))))], Le = e({
|
|
44664
44664
|
MAPPING_CHOICE_UNKNOWN: {
|
|
44665
44665
|
code: "SCL1001",
|
|
44666
44666
|
message: "The choice concerns an element the template does not bring"
|
|
@@ -44732,54 +44732,48 @@ var Ie = [...new Set(Object.values(y).flatMap((e) => e.flatMap((e) => Object.key
|
|
|
44732
44732
|
DATAFLOW_LINK_TARGET_MISMATCH: {
|
|
44733
44733
|
code: "SCL3001",
|
|
44734
44734
|
message: "The signal cannot be implemented by an element of this kind"
|
|
44735
|
-
},
|
|
44736
|
-
CHILD_LEFT_BEHIND: {
|
|
44737
|
-
code: "SCL4001",
|
|
44738
|
-
message: "The commit deletes a record and leaves one of its children behind"
|
|
44739
44735
|
}
|
|
44740
44736
|
});
|
|
44741
|
-
new Set(a(p.LNode.attributes.details.lnClass.type)), new Map([...
|
|
44742
|
-
let n = t.filter((e) => e.resolution ===
|
|
44737
|
+
new Set(a(p.LNode.attributes.details.lnClass.type)), new Map([...ve].flatMap(([e, t]) => {
|
|
44738
|
+
let n = t.filter((e) => e.resolution === k.iedAddress);
|
|
44743
44739
|
return n.length > 0 ? [[e, n]] : [];
|
|
44744
44740
|
})), new Set([...c.LN0, ...c.LN].filter((e) => "datSet" in f.byTag[e]));
|
|
44745
|
-
var
|
|
44746
|
-
function
|
|
44747
|
-
let t =
|
|
44741
|
+
var q = /* @__PURE__ */ new Map();
|
|
44742
|
+
function Re(e) {
|
|
44743
|
+
let t = q.get(e);
|
|
44748
44744
|
if (t) return t;
|
|
44749
44745
|
let n = p[e]?.attributes?.identityFields ?? [], r = new Set(n);
|
|
44750
|
-
return
|
|
44746
|
+
return q.set(e, r), r;
|
|
44751
44747
|
}
|
|
44752
|
-
new Set(
|
|
44753
|
-
|
|
44754
|
-
`${Be}`, `${Be}`;
|
|
44755
|
-
function Ve(e) {
|
|
44748
|
+
new Set(h.transparentElements);
|
|
44749
|
+
function ze(e) {
|
|
44756
44750
|
return e.targetByAttribute !== void 0 && e.tuple.controlBlock !== void 0;
|
|
44757
44751
|
}
|
|
44758
|
-
function
|
|
44752
|
+
function J(e) {
|
|
44759
44753
|
let { pairs: t, kind: n } = e;
|
|
44760
|
-
return t.find((e) =>
|
|
44754
|
+
return t.find((e) => W(e.tuple) === n);
|
|
44761
44755
|
}
|
|
44762
|
-
var
|
|
44763
|
-
function
|
|
44764
|
-
let e =
|
|
44765
|
-
pairs:
|
|
44756
|
+
var Be = K.get("cb") ?? [], Y = Ve();
|
|
44757
|
+
function Ve() {
|
|
44758
|
+
let e = J({
|
|
44759
|
+
pairs: _.ExtRef,
|
|
44766
44760
|
kind: "cb"
|
|
44767
44761
|
});
|
|
44768
|
-
return i(e &&
|
|
44762
|
+
return i(e && ze(e), {
|
|
44769
44763
|
key: "ASSERTION_FAILED",
|
|
44770
44764
|
detail: "an ExtRef names the control block publishing its signal"
|
|
44771
44765
|
}), e;
|
|
44772
44766
|
}
|
|
44773
|
-
K.get("ln"), K.get("ap"), K.get("ld"), new Set(
|
|
44774
|
-
var
|
|
44767
|
+
K.get("ln"), K.get("ap"), K.get("ld"), new Set(Be.flatMap((e) => u[e]).filter((e) => e in _));
|
|
44768
|
+
var He = [
|
|
44775
44769
|
"ln",
|
|
44776
44770
|
"ld",
|
|
44777
44771
|
"ap"
|
|
44778
44772
|
];
|
|
44779
|
-
|
|
44780
|
-
function
|
|
44781
|
-
let e =
|
|
44782
|
-
pairs:
|
|
44773
|
+
He[He.length - 1], Ue();
|
|
44774
|
+
function Ue() {
|
|
44775
|
+
let e = J({
|
|
44776
|
+
pairs: _.IEDName,
|
|
44783
44777
|
kind: "ap"
|
|
44784
44778
|
});
|
|
44785
44779
|
return i(e?.tuple.accessPoint, {
|
|
@@ -44787,17 +44781,17 @@ function Ge() {
|
|
|
44787
44781
|
detail: "an IEDName names the access point it registers"
|
|
44788
44782
|
}), e.tuple.accessPoint;
|
|
44789
44783
|
}
|
|
44790
|
-
var
|
|
44791
|
-
SourceRef:
|
|
44792
|
-
ControlRef:
|
|
44784
|
+
var We = {
|
|
44785
|
+
SourceRef: Ge(g.SourceRef),
|
|
44786
|
+
ControlRef: Ge(g.ControlRef)
|
|
44793
44787
|
};
|
|
44794
|
-
function
|
|
44795
|
-
let t = e.find((e) => e.resolution ===
|
|
44788
|
+
function Ge(e) {
|
|
44789
|
+
let t = e.find((e) => e.resolution === k.lnode), n = e.find((e) => e.resolution === k.iedAddress);
|
|
44796
44790
|
i(t && n, {
|
|
44797
44791
|
key: "ASSERTION_FAILED",
|
|
44798
44792
|
detail: "a signal names a logical node and the element implementing it"
|
|
44799
44793
|
});
|
|
44800
|
-
let { doAttribute: r, daAttribute: a } =
|
|
44794
|
+
let { doAttribute: r, daAttribute: a } = Fe(t);
|
|
44801
44795
|
return {
|
|
44802
44796
|
specification: {
|
|
44803
44797
|
uuid: t.attribute.uuid,
|
|
@@ -44817,35 +44811,35 @@ function qe(e) {
|
|
|
44817
44811
|
}))
|
|
44818
44812
|
};
|
|
44819
44813
|
}
|
|
44820
|
-
new Set(Object.values(
|
|
44821
|
-
function
|
|
44822
|
-
let e = new Map(Object.entries(
|
|
44814
|
+
new Set(Object.values(We).flatMap((e) => e.further.flatMap((e) => e.targets)));
|
|
44815
|
+
function Ke() {
|
|
44816
|
+
let e = new Map(Object.entries(A)), t = c.DataTypeTemplates.filter((t) => X({
|
|
44823
44817
|
typeTag: t,
|
|
44824
44818
|
pairsByReferrer: e
|
|
44825
|
-
}).length > 0), n =
|
|
44826
|
-
values:
|
|
44819
|
+
}).length > 0), n = A.LNode[0].target, r = Q({
|
|
44820
|
+
values: X({
|
|
44827
44821
|
typeTag: n,
|
|
44828
44822
|
pairsByReferrer: e
|
|
44829
|
-
}).map((n) =>
|
|
44823
|
+
}).map((n) => qe({
|
|
44830
44824
|
memberTag: n,
|
|
44831
44825
|
typeTags: t,
|
|
44832
44826
|
pairsByReferrer: e
|
|
44833
44827
|
}).target),
|
|
44834
44828
|
detail: "the members of the logical node type point at one type"
|
|
44835
|
-
}), i =
|
|
44829
|
+
}), i = Z({ tags: t }), a = Z({ tags: t.flatMap((t) => X({
|
|
44836
44830
|
typeTag: t,
|
|
44837
44831
|
pairsByReferrer: e
|
|
44838
|
-
})) }), o = new Map(t.map((n) => [n,
|
|
44832
|
+
})) }), o = new Map(t.map((n) => [n, Je({
|
|
44839
44833
|
typeTag: n,
|
|
44840
44834
|
typeTags: t,
|
|
44841
44835
|
pairsByReferrer: e,
|
|
44842
44836
|
objectType: r,
|
|
44843
44837
|
idAttribute: i,
|
|
44844
44838
|
nameAttribute: a
|
|
44845
|
-
})])), s = [...o.values()].flatMap((e) => [...e.members.values()]).filter((e) => !e.continuesObject), l =
|
|
44839
|
+
})])), s = [...o.values()].flatMap((e) => [...e.members.values()]).filter((e) => !e.continuesObject), l = Q({
|
|
44846
44840
|
values: s.map((e) => e.nextType),
|
|
44847
44841
|
detail: "the members of the data attribute point at one type"
|
|
44848
|
-
}), { equals: u } =
|
|
44842
|
+
}), { equals: u } = Xe({ conditions: s.map((e) => e.when) });
|
|
44849
44843
|
return {
|
|
44850
44844
|
rootType: n,
|
|
44851
44845
|
objectType: r,
|
|
@@ -44854,11 +44848,11 @@ function Je() {
|
|
|
44854
44848
|
types: o
|
|
44855
44849
|
};
|
|
44856
44850
|
}
|
|
44857
|
-
function
|
|
44851
|
+
function X(e) {
|
|
44858
44852
|
let { typeTag: t, pairsByReferrer: n } = e;
|
|
44859
44853
|
return c[t].filter((e) => n.has(e));
|
|
44860
44854
|
}
|
|
44861
|
-
function
|
|
44855
|
+
function qe(e) {
|
|
44862
44856
|
let { memberTag: t, typeTags: n, pairsByReferrer: r } = e, a = r.get(t)?.find((e) => n.includes(e.target));
|
|
44863
44857
|
return i(a, {
|
|
44864
44858
|
key: "ASSERTION_FAILED",
|
|
@@ -44866,14 +44860,14 @@ function Ye(e) {
|
|
|
44866
44860
|
meta: { memberTag: t }
|
|
44867
44861
|
}), a;
|
|
44868
44862
|
}
|
|
44869
|
-
function
|
|
44863
|
+
function Je(e) {
|
|
44870
44864
|
let { typeTag: t, typeTags: n, pairsByReferrer: r, objectType: i, idAttribute: a, nameAttribute: o } = e;
|
|
44871
44865
|
return {
|
|
44872
44866
|
idAttribute: a,
|
|
44873
|
-
members: new Map(
|
|
44867
|
+
members: new Map(X({
|
|
44874
44868
|
typeTag: t,
|
|
44875
44869
|
pairsByReferrer: r
|
|
44876
|
-
}).map((e) => [e,
|
|
44870
|
+
}).map((e) => [e, Ye({
|
|
44877
44871
|
memberTag: e,
|
|
44878
44872
|
typeTags: n,
|
|
44879
44873
|
pairsByReferrer: r,
|
|
@@ -44882,8 +44876,8 @@ function Xe(e) {
|
|
|
44882
44876
|
})]))
|
|
44883
44877
|
};
|
|
44884
44878
|
}
|
|
44885
|
-
function
|
|
44886
|
-
let { memberTag: t, typeTags: n, pairsByReferrer: r, objectType: i, nameAttribute: a } = e, o =
|
|
44879
|
+
function Ye(e) {
|
|
44880
|
+
let { memberTag: t, typeTags: n, pairsByReferrer: r, objectType: i, nameAttribute: a } = e, o = qe({
|
|
44887
44881
|
memberTag: t,
|
|
44888
44882
|
typeTags: n,
|
|
44889
44883
|
pairsByReferrer: r
|
|
@@ -44896,51 +44890,51 @@ function Ze(e) {
|
|
|
44896
44890
|
continuesObject: o.target === i
|
|
44897
44891
|
};
|
|
44898
44892
|
}
|
|
44899
|
-
function
|
|
44900
|
-
let { tags: t } = e, [n, ...r] = t.map(
|
|
44901
|
-
return
|
|
44893
|
+
function Z(e) {
|
|
44894
|
+
let { tags: t } = e, [n, ...r] = t.map(Re);
|
|
44895
|
+
return Q({
|
|
44902
44896
|
values: [...n ?? []].filter((e) => r.every((t) => t.has(e))),
|
|
44903
44897
|
detail: "the tags of the data model share one identity field"
|
|
44904
44898
|
});
|
|
44905
44899
|
}
|
|
44906
|
-
function
|
|
44900
|
+
function Xe(e) {
|
|
44907
44901
|
let { conditions: t } = e, [n] = t;
|
|
44908
44902
|
return i(n && t.every((e) => e?.attribute === n.attribute && e.equals === n.equals), {
|
|
44909
44903
|
key: "ASSERTION_FAILED",
|
|
44910
44904
|
detail: "the members of the data attribute point at their type on one condition"
|
|
44911
44905
|
}), n;
|
|
44912
44906
|
}
|
|
44913
|
-
function
|
|
44907
|
+
function Q(e) {
|
|
44914
44908
|
let { values: t, detail: n } = e, [r, ...a] = new Set(t);
|
|
44915
44909
|
return i(r !== void 0 && a.length === 0, {
|
|
44916
44910
|
key: "ASSERTION_FAILED",
|
|
44917
44911
|
detail: n
|
|
44918
44912
|
}), r;
|
|
44919
44913
|
}
|
|
44920
|
-
|
|
44921
|
-
function
|
|
44914
|
+
A.LNode[0].attribute, Ke();
|
|
44915
|
+
function Ze(e) {
|
|
44922
44916
|
let { ied: t, lDevice: n, lnClass: r } = e.tuple;
|
|
44923
44917
|
return "attribute" in t && n !== void 0 && r !== void 0;
|
|
44924
44918
|
}
|
|
44925
|
-
var
|
|
44926
|
-
function
|
|
44927
|
-
let t =
|
|
44919
|
+
var Qe = et(_.ExtRef), $e = et(_.ExtCtrl);
|
|
44920
|
+
function et(e) {
|
|
44921
|
+
let t = J({
|
|
44928
44922
|
pairs: e,
|
|
44929
44923
|
kind: "ln"
|
|
44930
44924
|
});
|
|
44931
|
-
return i(t &&
|
|
44925
|
+
return i(t && Ze(t), {
|
|
44932
44926
|
key: "ASSERTION_FAILED",
|
|
44933
44927
|
detail: "an ExtRef and an ExtCtrl name the logical node of their signal"
|
|
44934
44928
|
}), t;
|
|
44935
44929
|
}
|
|
44936
|
-
var
|
|
44937
|
-
pair:
|
|
44938
|
-
dataAttributes: [
|
|
44939
|
-
}),
|
|
44940
|
-
pair:
|
|
44941
|
-
dataAttributes: [
|
|
44930
|
+
var $ = "doName", tt = rt({
|
|
44931
|
+
pair: Qe,
|
|
44932
|
+
dataAttributes: [$, "daName"]
|
|
44933
|
+
}), nt = rt({
|
|
44934
|
+
pair: $e,
|
|
44935
|
+
dataAttributes: [$]
|
|
44942
44936
|
});
|
|
44943
|
-
function
|
|
44937
|
+
function rt(e) {
|
|
44944
44938
|
let { pair: t, dataAttributes: n } = e, { tuple: r } = t;
|
|
44945
44939
|
return {
|
|
44946
44940
|
uuid: t.attribute.uuid,
|
|
@@ -44949,42 +44943,41 @@ function Q(e) {
|
|
|
44949
44943
|
r.lDevice,
|
|
44950
44944
|
r.lnClass
|
|
44951
44945
|
],
|
|
44952
|
-
data:
|
|
44946
|
+
data: $,
|
|
44953
44947
|
written: [
|
|
44954
44948
|
t.attribute.uuid,
|
|
44955
|
-
...
|
|
44949
|
+
...at(t),
|
|
44956
44950
|
...n
|
|
44957
44951
|
]
|
|
44958
44952
|
};
|
|
44959
44953
|
}
|
|
44960
|
-
var
|
|
44961
|
-
names: [
|
|
44962
|
-
serviceAttribute:
|
|
44963
|
-
servicesWithControlBlock: new Set(Object.keys(
|
|
44954
|
+
var it = {
|
|
44955
|
+
names: [Y.attribute.uuid, Y.tuple.controlBlock],
|
|
44956
|
+
serviceAttribute: Y.targetByAttribute.attribute,
|
|
44957
|
+
servicesWithControlBlock: new Set(Object.keys(Y.targetByAttribute.tags))
|
|
44964
44958
|
};
|
|
44965
44959
|
[
|
|
44966
|
-
...
|
|
44967
|
-
|
|
44968
|
-
|
|
44969
|
-
...
|
|
44970
|
-
],
|
|
44971
|
-
function
|
|
44960
|
+
...tt.written,
|
|
44961
|
+
it.serviceAttribute,
|
|
44962
|
+
Y.attribute.uuid,
|
|
44963
|
+
...at(Y)
|
|
44964
|
+
], nt.written;
|
|
44965
|
+
function at(e) {
|
|
44972
44966
|
let { ied: t } = e.tuple;
|
|
44973
44967
|
return [..."attribute" in t ? [t.attribute] : [], ...Ie.flatMap((t) => e.tuple[t] ?? [])];
|
|
44974
44968
|
}
|
|
44975
|
-
|
|
44969
|
+
Object.fromEntries(Object.entries({
|
|
44976
44970
|
FunctionTemplate: "Function",
|
|
44977
44971
|
SubFunctionTemplate: "SubFunction"
|
|
44978
|
-
};
|
|
44979
|
-
|
|
44980
|
-
|
|
44981
|
-
[...P, ...lt.keys()], new Map([.../* @__PURE__ */ new Map([["BehaviorDescription", ["fileReference"]], ["Variable", ["value"]]])].map(([e, t]) => [e, {
|
|
44972
|
+
}).map(([e, t]) => [t, e])), new Set(M);
|
|
44973
|
+
var ot = new Map((N.get("LNode") ?? []).map((e) => [e, "bound-logical-node"]));
|
|
44974
|
+
[...M, ...ot.keys()], new Map([.../* @__PURE__ */ new Map([["BehaviorDescription", ["fileReference"]], ["Variable", ["value"]]])].map(([e, t]) => [e, {
|
|
44982
44975
|
attributes: new Set(t),
|
|
44983
44976
|
listedAsKept: new Map(t.map((e) => [e, "instance-configuration"]))
|
|
44984
|
-
}])),
|
|
44985
|
-
function
|
|
44977
|
+
}])), st();
|
|
44978
|
+
function st() {
|
|
44986
44979
|
let e = /* @__PURE__ */ new Map();
|
|
44987
|
-
for (let t of
|
|
44980
|
+
for (let t of P.get("LNodeType") ?? []) {
|
|
44988
44981
|
let n = e.get(t.refTagName) ?? [];
|
|
44989
44982
|
n.push({
|
|
44990
44983
|
attribute: t.attribute,
|
|
@@ -44993,63 +44986,42 @@ function ut() {
|
|
|
44993
44986
|
}
|
|
44994
44987
|
return e;
|
|
44995
44988
|
}
|
|
44996
|
-
new Set(Object.values(
|
|
44997
|
-
var
|
|
44998
|
-
(() => {
|
|
44999
|
-
let e = $[0], t = Object.entries(ct).filter(([, e]) => $.includes(e)).map(([e]) => e);
|
|
45000
|
-
return new Map([...$, ...t].map((t) => [t, e]));
|
|
45001
|
-
})();
|
|
45002
|
-
var dt = {
|
|
45003
|
-
"cross-type-template-uuid": {
|
|
45004
|
-
title: "Placeholder templateUuid reused across element types",
|
|
45005
|
-
description: "One templateUuid is carried by elements of several different types, so it cannot identify a single template element — it is an authoring placeholder, not real lineage. The function forms (function, subfunction, equipment function, equipment subfunction and their templates) count as one type.",
|
|
45006
|
-
fallback: "Template lineage is ignored for these elements: none is recognised as an instance of a template element. A report then lists the template element as new and the existing element as an addition of the project."
|
|
45007
|
-
},
|
|
45008
|
-
"duplicate-instance-uuid": {
|
|
45009
|
-
title: "Duplicate instance uuid",
|
|
45010
|
-
description: "The same uuid is used by more than one element. Every instance uuid in an SCL must be unique, so uuid-based identity is ambiguous for the affected elements.",
|
|
45011
|
-
fallback: "Identity by uuid is ambiguous for the affected elements: which of them a reference or a template element resolves to is not defined."
|
|
45012
|
-
},
|
|
45013
|
-
"template-uuid-type-mismatch": {
|
|
45014
|
-
title: "templateUuid resolves to a different element type",
|
|
45015
|
-
description: "A templateUuid points in-file to an element of a different type than the one carrying it. An instance cannot derive from a template of another type, so the lineage is inconsistent.",
|
|
45016
|
-
fallback: "The mismatched lineage is ignored: the element is not recognised as an instance of a template element. A report then lists the template element as new and the existing element as an addition of the project."
|
|
45017
|
-
}
|
|
45018
|
-
}, ft = [{
|
|
44989
|
+
new Set(Object.values(g).flatMap((e) => e.flatMap((e) => [e.attribute.path, e.attribute.uuid])));
|
|
44990
|
+
var ct = [{
|
|
45019
44991
|
tagName: "AllocationRole",
|
|
45020
44992
|
key: "name"
|
|
45021
|
-
}],
|
|
44993
|
+
}], lt = [{
|
|
45022
44994
|
tagName: "FunctionCategory",
|
|
45023
44995
|
key: "name"
|
|
45024
44996
|
}];
|
|
45025
|
-
[...
|
|
45026
|
-
var
|
|
45027
|
-
new Set(
|
|
45028
|
-
return !
|
|
45029
|
-
})), new Map(Object.entries(
|
|
44997
|
+
[...ct, ...lt];
|
|
44998
|
+
var ut = ["Variable", "BehaviorDescription"], dt = new Set(ut);
|
|
44999
|
+
new Set(x.filter(function(e) {
|
|
45000
|
+
return !dt.has(e);
|
|
45001
|
+
})), new Map(Object.entries(g).flatMap(function([e, t]) {
|
|
45030
45002
|
return t.flatMap(function(t) {
|
|
45031
45003
|
return t.target.every(function(e) {
|
|
45032
|
-
return
|
|
45004
|
+
return dt.has(e);
|
|
45033
45005
|
}) ? [[e, {
|
|
45034
45006
|
uuid: t.attribute.uuid,
|
|
45035
45007
|
targets: t.target
|
|
45036
45008
|
}]] : [];
|
|
45037
45009
|
});
|
|
45038
|
-
})),
|
|
45010
|
+
})), ut.flatMap(function(e) {
|
|
45039
45011
|
return c[e].flatMap(function(t) {
|
|
45040
|
-
let n =
|
|
45012
|
+
let n = g[t];
|
|
45041
45013
|
return n ? [{
|
|
45042
45014
|
satelliteTag: e,
|
|
45043
45015
|
tagName: t,
|
|
45044
45016
|
pairs: n
|
|
45045
45017
|
}] : [];
|
|
45046
45018
|
});
|
|
45047
|
-
}), new Map([...Object.entries(
|
|
45048
|
-
var [
|
|
45049
|
-
|
|
45050
|
-
var
|
|
45051
|
-
new Set([...
|
|
45052
|
-
function
|
|
45019
|
+
}), new Map([...Object.entries(g), ...Object.entries(_)].map(([e, t]) => [e, t.map((e) => e.attribute.uuid)])), [...b, ...x];
|
|
45020
|
+
var [ft] = g.FunctionalVariantRef;
|
|
45021
|
+
ft.attribute;
|
|
45022
|
+
var pt = new Set(ft.target);
|
|
45023
|
+
new Set([...pt].flatMap((e) => h.parents[e])), g.FunctionRef[0].attribute.uuid;
|
|
45024
|
+
function mt(e) {
|
|
45053
45025
|
switch (e.verb) {
|
|
45054
45026
|
case "fsd":
|
|
45055
45027
|
case "asd":
|
|
@@ -45060,6 +45032,6 @@ function vt(e) {
|
|
|
45060
45032
|
};
|
|
45061
45033
|
}
|
|
45062
45034
|
}
|
|
45063
|
-
new Set(Object.values(
|
|
45035
|
+
new Set(Object.values(m).map((e) => e.uri)), new Set(Object.values(m).map((e) => e.prefix).filter(Boolean)), k.behaviorDescription, k.iedAddress, k.ancestorName, k.scopedName;
|
|
45064
45036
|
//#endregion
|
|
45065
|
-
export {
|
|
45037
|
+
export { b as $, j as A, O as B, F as C, M as D, P as F, S as G, E as H, N as I, C as J, he as N, ge as P, A as R, _e as T, T as V, x as Z, Pe as _, R as b, ae as dt, h as ft, re as gt, p as ht, mt as i, ve as j, _ as lt, Le as m, m as mt, oe as nt, v as ot, ie as pt, y as st, g as ut, V as y, k as z };
|