@septkit/ui 0.0.75 → 0.0.76
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/composables/use-live-data.js +2 -1
- package/dist/dialecte/create-document-store.js +4 -4
- package/dist/external/.pnpm/@dialecte_core@0.8.0/node_modules/@dialecte/core/dist/dialecte-gIPrRzni.js +4415 -0
- package/dist/external/.pnpm/@dialecte_core@0.8.0/node_modules/@dialecte/core/dist/helpers-DVShv41E.js +179 -0
- package/dist/external/.pnpm/@dialecte_core@0.8.0/node_modules/@dialecte/core/dist/helpers.js +3 -0
- package/dist/external/.pnpm/@dialecte_core@0.8.0/node_modules/@dialecte/core/dist/index.js +5 -0
- package/dist/external/.pnpm/@dialecte_core@0.8.0/node_modules/@dialecte/core/dist/project-key-Ch34EtFa.js +1370 -0
- package/dist/external/.pnpm/@dialecte_core@0.8.0/node_modules/@dialecte/core/dist/rolldown-runtime-CYdcPHCu.js +13 -0
- package/dist/external/.pnpm/@dialecte_core@0.8.0/node_modules/@dialecte/core/dist/running-operations-vnijBvn7.js +61 -0
- package/dist/external/.pnpm/@dialecte_core@0.8.0/node_modules/@dialecte/core/dist/same-json-value-C6kUaoyt.js +1543 -0
- package/dist/external/.pnpm/@dialecte_core@0.8.0/node_modules/@dialecte/core/dist/utils-USNkj4sT.js +962 -0
- package/dist/external/.pnpm/@dialecte_core@0.8.0/node_modules/@dialecte/core/dist/utils.js +2 -0
- package/dist/external/.pnpm/{@dialecte_scl@0.8.1/node_modules/@dialecte/scl/dist/hooks-C05NpRNi.js → @dialecte_scl@0.11.0_libxml2-wasm@0.7.2_vitest@4.1.10/node_modules/@dialecte/scl/dist/hooks-F61-rgXT.js} +974 -242
- package/dist/external/.pnpm/{@dialecte_scl@0.8.1 → @dialecte_scl@0.11.0_libxml2-wasm@0.7.2_vitest@4.1.10}/node_modules/@dialecte/scl/dist/v2019C1/index.js +4 -4
- package/dist/merge/check-files/identity-warning.js +1 -1
- package/dist/merge/confirm/outcome.js +4 -3
- package/dist/merge/match/match.js +6 -7
- package/dist/merge/session/merge.service.js +2 -2
- package/dist/merge/session/use-merge-session.js +2 -0
- package/dist/merge/wording.js +6 -7
- package/package.json +3 -3
- package/dist/external/.pnpm/@dialecte_core@0.6.1/node_modules/@dialecte/core/dist/helpers.js +0 -229
- package/dist/external/.pnpm/@dialecte_core@0.6.1/node_modules/@dialecte/core/dist/index.js +0 -3
- package/dist/external/.pnpm/@dialecte_core@0.6.1/node_modules/@dialecte/core/dist/project-sK-5Xc-5.js +0 -7371
- package/dist/external/.pnpm/@dialecte_core@0.6.1/node_modules/@dialecte/core/dist/utils-CTBHUFs9.js +0 -440
- package/dist/external/.pnpm/@dialecte_core@0.6.1/node_modules/@dialecte/core/dist/utils.js +0 -2
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "../../../../../@dialecte_core@0.
|
|
3
|
-
import "../../../../../@dialecte_core@0.
|
|
4
|
-
import "../../../../../@dialecte_core@0.
|
|
5
|
-
|
|
6
|
-
|
|
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
|
+
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 = {
|
|
7
8
|
AccessControl: [],
|
|
8
9
|
AccessPoint: [
|
|
9
10
|
"Text",
|
|
@@ -794,7 +795,7 @@ var a = /* @__PURE__ */ "AccessControl.AccessPoint.Address.AllocationRole.Alloca
|
|
|
794
795
|
"ProcessResources",
|
|
795
796
|
"Variable"
|
|
796
797
|
]
|
|
797
|
-
},
|
|
798
|
+
}, l = {
|
|
798
799
|
AccessControl: ["LDevice"],
|
|
799
800
|
AccessPoint: ["IED"],
|
|
800
801
|
Address: [
|
|
@@ -1192,7 +1193,7 @@ var a = /* @__PURE__ */ "AccessControl.AccessPoint.Address.AllocationRole.Alloca
|
|
|
1192
1193
|
],
|
|
1193
1194
|
Voltage: ["Line", "VoltageLevel"],
|
|
1194
1195
|
VoltageLevel: ["Substation"]
|
|
1195
|
-
},
|
|
1196
|
+
}, u = {
|
|
1196
1197
|
AccessControl: [],
|
|
1197
1198
|
AccessPoint: /* @__PURE__ */ "AccessControl.Association.Authentication.ClientLN.ClientServices.CommProt.ConfDataSet.ConfLNs.ConfLdName.ConfLogControl.ConfReportControl.ConfSG.ConfSigRef.DAI.DOI.DataObjectDirectory.DataSet.DataSetDirectory.DynAssociation.DynDataSet.ExtCtrl.ExtRef.FCDA.FileHandling.GOOSE.GOOSEMcSecurity.GOOSESecurity.GSEControl.GSEDir.GSESettings.GSSE.GetCBValues.GetDataObjectDefinition.GetDataSetValue.GetDirectory.IEDName.Inputs.IssuerName.LDevice.LN.LN0.Label.Labels.Log.LogControl.LogSettings.McSecurity.MultiAPPerSubNet.OptFields.Outputs.Private.Protocol.ReadWrite.RedProt.ReportControl.ReportSettings.RptEnabled.SCSM.SDI.SGEdit.SMVSecurity.SMVSettings.SMVsc.SVMcSecurity.SampledValueControl.SamplesPerSec.SecPerSamples.Security.Server.ServerAt.Services.SetDataSetValue.SettingControl.SettingGroups.SmpRate.SmvOpts.Subject.SupSubscription.Text.TimeSyncProt.TimerActivatedControl.TrgOps.Val.ValueHandling".split("."),
|
|
1198
1199
|
Address: ["P"],
|
|
@@ -1924,7 +1925,7 @@ var a = /* @__PURE__ */ "AccessControl.AccessPoint.Address.AllocationRole.Alloca
|
|
|
1924
1925
|
VariableRef: ["FunctionalVariantRef", "Text"],
|
|
1925
1926
|
Voltage: [],
|
|
1926
1927
|
VoltageLevel: /* @__PURE__ */ "AllocationRole.AllocationRoleRef.AnalogueWiringParametersRef.Application.ApplicationSclRef.Bay.BehaviorDescription.BehaviorDescriptionRef.BehaviorReference.BinaryWiringParametersRef.ConductingEquipment.ConnectivityNode.ControlRef.ControllingLNode.DAS.DOS.EqFunction.EqSubFunction.Function.FunctionCatRef.FunctionCategory.FunctionCategoryRef.FunctionRef.FunctionRole.FunctionRoleContent.FunctionSclRef.FunctionalSubVariant.FunctionalVariant.FunctionalVariantGroup.FunctionalVariantRef.GeneralEquipment.GooseParametersRef.InputVar.InputVarRef.LNode.LNodeDataRef.LNodeInputRef.LNodeInputs.LNodeOutputRef.LNodeOutputs.LNodeSpecNaming.Label.Labels.LogParametersRef.NeutralPoint.OutputVar.OutputVarRef.PowerSystemRelation.PowerSystemRelationRef.PowerSystemRelations.PowerTransformer.Private.ProcessEcho.ProcessResource.ProcessResourceRef.ProcessResources.ReportParametersRef.Resource.SDS.SMVParametersRef.SclFileReference.SignalRole.SourceRef.SubCategory.SubCheckoutID.SubEquipment.SubFunction.SubscriberLNode.TapChanger.Terminal.Text.TransformerWinding.Val.Variable.VariableApplyTo.VariableRef.Voltage".split(".")
|
|
1927
|
-
},
|
|
1928
|
+
}, ee = {
|
|
1928
1929
|
AccessControl: [
|
|
1929
1930
|
"AccessPoint",
|
|
1930
1931
|
"IED",
|
|
@@ -3697,7 +3698,7 @@ var a = /* @__PURE__ */ "AccessControl.AccessPoint.Address.AllocationRole.Alloca
|
|
|
3697
3698
|
"SCL",
|
|
3698
3699
|
"Substation"
|
|
3699
3700
|
]
|
|
3700
|
-
},
|
|
3701
|
+
}, te = [
|
|
3701
3702
|
"Communication",
|
|
3702
3703
|
"DataTypeTemplates",
|
|
3703
3704
|
"Header",
|
|
@@ -6010,7 +6011,7 @@ var a = /* @__PURE__ */ "AccessControl.AccessPoint.Address.AllocationRole.Alloca
|
|
|
6010
6011
|
Variable: d.Variable
|
|
6011
6012
|
}
|
|
6012
6013
|
}
|
|
6013
|
-
},
|
|
6014
|
+
}, ne = {
|
|
6014
6015
|
AccessControl: [],
|
|
6015
6016
|
AccessPoint: ["name"],
|
|
6016
6017
|
Address: [],
|
|
@@ -6275,7 +6276,7 @@ var a = /* @__PURE__ */ "AccessControl.AccessPoint.Address.AllocationRole.Alloca
|
|
|
6275
6276
|
VariableRef: [],
|
|
6276
6277
|
Voltage: ["unit"],
|
|
6277
6278
|
VoltageLevel: ["name"]
|
|
6278
|
-
},
|
|
6279
|
+
}, p = {
|
|
6279
6280
|
AccessControl: {
|
|
6280
6281
|
tag: "AccessControl",
|
|
6281
6282
|
namespace: {
|
|
@@ -42070,7 +42071,7 @@ var a = /* @__PURE__ */ "AccessControl.AccessPoint.Address.AllocationRole.Alloca
|
|
|
42070
42071
|
}],
|
|
42071
42072
|
type: "{http://www.iec.ch/61850/2003/SCL}tVoltageLevel"
|
|
42072
42073
|
}
|
|
42073
|
-
},
|
|
42074
|
+
}, re = {
|
|
42074
42075
|
"{http://www.iec.ch/61850/2003/SCL}tCommProt": {
|
|
42075
42076
|
attributes: {
|
|
42076
42077
|
sequence: ["ipv6"],
|
|
@@ -43429,7 +43430,7 @@ var a = /* @__PURE__ */ "AccessControl.AccessPoint.Address.AllocationRole.Alloca
|
|
|
43429
43430
|
}]
|
|
43430
43431
|
}
|
|
43431
43432
|
}
|
|
43432
|
-
},
|
|
43433
|
+
}, ie = { supportedFileExtensions: [
|
|
43433
43434
|
".fsd",
|
|
43434
43435
|
".asd",
|
|
43435
43436
|
".ssd",
|
|
@@ -43438,7 +43439,7 @@ var a = /* @__PURE__ */ "AccessControl.AccessPoint.Address.AllocationRole.Alloca
|
|
|
43438
43439
|
".icd",
|
|
43439
43440
|
".iid",
|
|
43440
43441
|
".xml"
|
|
43441
|
-
] },
|
|
43442
|
+
] }, ae = {
|
|
43442
43443
|
recordSchema: {
|
|
43443
43444
|
primaryKey: "id",
|
|
43444
43445
|
indexes: [
|
|
@@ -43456,7 +43457,7 @@ var a = /* @__PURE__ */ "AccessControl.AccessPoint.Address.AllocationRole.Alloca
|
|
|
43456
43457
|
},
|
|
43457
43458
|
additionalTables: { attachedFiles: { schema: "id, filename, file" } }
|
|
43458
43459
|
}
|
|
43459
|
-
},
|
|
43460
|
+
}, m = {
|
|
43460
43461
|
default: {
|
|
43461
43462
|
uri: "http://www.iec.ch/61850/2003/SCL",
|
|
43462
43463
|
prefix: ""
|
|
@@ -43466,22 +43467,22 @@ var a = /* @__PURE__ */ "AccessControl.AccessPoint.Address.AllocationRole.Alloca
|
|
|
43466
43467
|
prefix: "eIEC61850-6-100"
|
|
43467
43468
|
},
|
|
43468
43469
|
xsi: t
|
|
43469
|
-
},
|
|
43470
|
+
}, h = {
|
|
43470
43471
|
rootElementName: "SCL",
|
|
43471
|
-
singletonElements:
|
|
43472
|
+
singletonElements: te,
|
|
43472
43473
|
transparentElements: ["Private"],
|
|
43473
|
-
elements:
|
|
43474
|
-
namespaces:
|
|
43474
|
+
elements: s,
|
|
43475
|
+
namespaces: m,
|
|
43475
43476
|
attributes: f,
|
|
43476
|
-
children:
|
|
43477
|
-
parents:
|
|
43478
|
-
descendants:
|
|
43479
|
-
ancestors:
|
|
43480
|
-
database:
|
|
43481
|
-
io:
|
|
43482
|
-
definition:
|
|
43483
|
-
types:
|
|
43484
|
-
},
|
|
43477
|
+
children: c,
|
|
43478
|
+
parents: l,
|
|
43479
|
+
descendants: u,
|
|
43480
|
+
ancestors: ee,
|
|
43481
|
+
database: ae,
|
|
43482
|
+
io: ie,
|
|
43483
|
+
definition: p,
|
|
43484
|
+
types: re
|
|
43485
|
+
}, g = {
|
|
43485
43486
|
AllocationRoleRef: [{
|
|
43486
43487
|
attribute: {
|
|
43487
43488
|
path: "allocationRole",
|
|
@@ -43605,7 +43606,8 @@ var a = /* @__PURE__ */ "AccessControl.AccessPoint.Address.AllocationRole.Alloca
|
|
|
43605
43606
|
path: "functionalVariant",
|
|
43606
43607
|
uuid: "functionalVariantUuid"
|
|
43607
43608
|
},
|
|
43608
|
-
resolution: "
|
|
43609
|
+
resolution: "scoped-name",
|
|
43610
|
+
nameScope: "Application",
|
|
43609
43611
|
target: ["FunctionalVariant", "FunctionalSubVariant"],
|
|
43610
43612
|
companions: []
|
|
43611
43613
|
}],
|
|
@@ -43668,6 +43670,15 @@ var a = /* @__PURE__ */ "AccessControl.AccessPoint.Address.AllocationRole.Alloca
|
|
|
43668
43670
|
target: ["ControlRef"],
|
|
43669
43671
|
companions: []
|
|
43670
43672
|
}],
|
|
43673
|
+
NeutralPoint: [{
|
|
43674
|
+
attribute: {
|
|
43675
|
+
path: "connectivityNode",
|
|
43676
|
+
uuid: "cNodeUuid"
|
|
43677
|
+
},
|
|
43678
|
+
resolution: "direct",
|
|
43679
|
+
target: ["ConnectivityNode"],
|
|
43680
|
+
companions: []
|
|
43681
|
+
}],
|
|
43671
43682
|
OutputVar: [{
|
|
43672
43683
|
attribute: {
|
|
43673
43684
|
path: "dataName",
|
|
@@ -43727,7 +43738,7 @@ var a = /* @__PURE__ */ "AccessControl.AccessPoint.Address.AllocationRole.Alloca
|
|
|
43727
43738
|
required: !0
|
|
43728
43739
|
}, {
|
|
43729
43740
|
name: "sourceDaName",
|
|
43730
|
-
required: !
|
|
43741
|
+
required: !1
|
|
43731
43742
|
}]
|
|
43732
43743
|
}],
|
|
43733
43744
|
ProcessResourceRef: [{
|
|
@@ -43792,7 +43803,7 @@ var a = /* @__PURE__ */ "AccessControl.AccessPoint.Address.AllocationRole.Alloca
|
|
|
43792
43803
|
required: !0
|
|
43793
43804
|
}, {
|
|
43794
43805
|
name: "sourceDaName",
|
|
43795
|
-
required: !
|
|
43806
|
+
required: !1
|
|
43796
43807
|
}]
|
|
43797
43808
|
},
|
|
43798
43809
|
{
|
|
@@ -43823,13 +43834,22 @@ var a = /* @__PURE__ */ "AccessControl.AccessPoint.Address.AllocationRole.Alloca
|
|
|
43823
43834
|
target: ["ProcessResource"],
|
|
43824
43835
|
companions: []
|
|
43825
43836
|
}],
|
|
43837
|
+
Terminal: [{
|
|
43838
|
+
attribute: {
|
|
43839
|
+
path: "connectivityNode",
|
|
43840
|
+
uuid: "cNodeUuid"
|
|
43841
|
+
},
|
|
43842
|
+
resolution: "direct",
|
|
43843
|
+
target: ["ConnectivityNode"],
|
|
43844
|
+
companions: []
|
|
43845
|
+
}],
|
|
43826
43846
|
VariableApplyTo: [{
|
|
43827
43847
|
attribute: {
|
|
43828
43848
|
path: "element",
|
|
43829
43849
|
uuid: "elementUuid"
|
|
43830
43850
|
},
|
|
43831
43851
|
resolution: "unsupported",
|
|
43832
|
-
target:
|
|
43852
|
+
target: s,
|
|
43833
43853
|
companions: [{
|
|
43834
43854
|
name: "doName",
|
|
43835
43855
|
required: !1
|
|
@@ -43847,25 +43867,190 @@ var a = /* @__PURE__ */ "AccessControl.AccessPoint.Address.AllocationRole.Alloca
|
|
|
43847
43867
|
target: ["Variable"],
|
|
43848
43868
|
companions: []
|
|
43849
43869
|
}]
|
|
43850
|
-
},
|
|
43851
|
-
|
|
43852
|
-
|
|
43870
|
+
}, _ = {
|
|
43871
|
+
Association: [{
|
|
43872
|
+
attribute: { uuid: "lnUuid" },
|
|
43873
|
+
target: ["LN", "LN0"],
|
|
43874
|
+
tuple: {
|
|
43875
|
+
ied: { attribute: "iedName" },
|
|
43876
|
+
lDevice: "ldInst",
|
|
43877
|
+
prefix: "prefix",
|
|
43878
|
+
lnClass: "lnClass",
|
|
43879
|
+
lnInst: "lnInst"
|
|
43880
|
+
}
|
|
43881
|
+
}],
|
|
43882
|
+
ClientLN: [{
|
|
43883
|
+
attribute: { uuid: "lnUuid" },
|
|
43884
|
+
target: ["LN", "LN0"],
|
|
43885
|
+
tuple: {
|
|
43886
|
+
ied: { attribute: "iedName" },
|
|
43887
|
+
lDevice: "ldInst",
|
|
43888
|
+
prefix: "prefix",
|
|
43889
|
+
lnClass: "lnClass",
|
|
43890
|
+
lnInst: "lnInst"
|
|
43891
|
+
}
|
|
43892
|
+
}],
|
|
43893
|
+
ConnectedAP: [{
|
|
43894
|
+
attribute: { uuid: "apUuid" },
|
|
43895
|
+
target: ["AccessPoint"],
|
|
43896
|
+
tuple: {
|
|
43897
|
+
ied: { attribute: "iedName" },
|
|
43898
|
+
accessPoint: "apName"
|
|
43899
|
+
}
|
|
43900
|
+
}],
|
|
43901
|
+
ExtCtrl: [{
|
|
43902
|
+
attribute: { uuid: "lnUuid" },
|
|
43903
|
+
target: ["LN", "LN0"],
|
|
43904
|
+
tuple: {
|
|
43905
|
+
ied: { attribute: "iedName" },
|
|
43906
|
+
lDevice: "ldInst",
|
|
43907
|
+
prefix: "prefix",
|
|
43908
|
+
lnClass: "lnClass",
|
|
43909
|
+
lnInst: "lnInst"
|
|
43910
|
+
}
|
|
43911
|
+
}],
|
|
43912
|
+
ExtRef: [{
|
|
43913
|
+
attribute: { uuid: "lnUuid" },
|
|
43914
|
+
target: ["LN", "LN0"],
|
|
43915
|
+
tuple: {
|
|
43916
|
+
ied: { attribute: "iedName" },
|
|
43917
|
+
lDevice: "ldInst",
|
|
43918
|
+
prefix: "prefix",
|
|
43919
|
+
lnClass: "lnClass",
|
|
43920
|
+
lnInst: "lnInst"
|
|
43921
|
+
}
|
|
43922
|
+
}, {
|
|
43923
|
+
attribute: { uuid: "srcCBUuid" },
|
|
43924
|
+
target: [
|
|
43925
|
+
"GSEControl",
|
|
43926
|
+
"SampledValueControl",
|
|
43927
|
+
"ReportControl"
|
|
43928
|
+
],
|
|
43929
|
+
otherwise: { lDevice: "ldInst" },
|
|
43930
|
+
targetByAttribute: {
|
|
43931
|
+
attribute: "serviceType",
|
|
43932
|
+
tags: {
|
|
43933
|
+
GOOSE: "GSEControl",
|
|
43934
|
+
SMV: "SampledValueControl",
|
|
43935
|
+
Report: "ReportControl"
|
|
43936
|
+
}
|
|
43937
|
+
},
|
|
43938
|
+
tuple: {
|
|
43939
|
+
ied: { attribute: "iedName" },
|
|
43940
|
+
lDevice: "srcLDInst",
|
|
43941
|
+
prefix: "srcPrefix",
|
|
43942
|
+
lnClass: "srcLNClass",
|
|
43943
|
+
lnInst: "srcLNInst",
|
|
43944
|
+
controlBlock: "srcCBName"
|
|
43945
|
+
}
|
|
43946
|
+
}],
|
|
43947
|
+
FCDA: [{
|
|
43948
|
+
attribute: { uuid: "lnUuid" },
|
|
43949
|
+
target: ["LN", "LN0"],
|
|
43950
|
+
tuple: {
|
|
43951
|
+
ied: { ancestor: !0 },
|
|
43952
|
+
lDevice: "ldInst",
|
|
43953
|
+
prefix: "prefix",
|
|
43954
|
+
lnClass: "lnClass",
|
|
43955
|
+
lnInst: "lnInst"
|
|
43956
|
+
}
|
|
43957
|
+
}],
|
|
43958
|
+
GSE: [{
|
|
43959
|
+
attribute: { uuid: "cbUuid" },
|
|
43960
|
+
target: ["GSEControl"],
|
|
43961
|
+
tuple: {
|
|
43962
|
+
ied: { parentAttribute: "iedName" },
|
|
43963
|
+
lDevice: "ldInst",
|
|
43964
|
+
controlBlock: "cbName"
|
|
43965
|
+
}
|
|
43966
|
+
}],
|
|
43967
|
+
IEDName: [
|
|
43968
|
+
{
|
|
43969
|
+
attribute: { uuid: "apUuid" },
|
|
43970
|
+
target: ["AccessPoint"],
|
|
43971
|
+
tuple: {
|
|
43972
|
+
ied: { text: !0 },
|
|
43973
|
+
accessPoint: "apRef"
|
|
43974
|
+
},
|
|
43975
|
+
onlyWithout: ["ldInst"]
|
|
43976
|
+
},
|
|
43977
|
+
{
|
|
43978
|
+
attribute: { uuid: "ldUuid" },
|
|
43979
|
+
target: ["LDevice"],
|
|
43980
|
+
tuple: {
|
|
43981
|
+
ied: { text: !0 },
|
|
43982
|
+
lDevice: "ldInst"
|
|
43983
|
+
},
|
|
43984
|
+
onlyWithout: ["lnClass"]
|
|
43985
|
+
},
|
|
43986
|
+
{
|
|
43987
|
+
attribute: { uuid: "lnUuid" },
|
|
43988
|
+
target: ["LN", "LN0"],
|
|
43989
|
+
tuple: {
|
|
43990
|
+
ied: { text: !0 },
|
|
43991
|
+
lDevice: "ldInst",
|
|
43992
|
+
prefix: "prefix",
|
|
43993
|
+
lnClass: "lnClass",
|
|
43994
|
+
lnInst: "lnInst"
|
|
43995
|
+
}
|
|
43996
|
+
}
|
|
43997
|
+
],
|
|
43998
|
+
LNode: [{
|
|
43999
|
+
attribute: { uuid: "lnUuid" },
|
|
44000
|
+
target: ["LN", "LN0"],
|
|
44001
|
+
tuple: {
|
|
44002
|
+
ied: { attribute: "iedName" },
|
|
44003
|
+
lDevice: "ldInst",
|
|
44004
|
+
prefix: "prefix",
|
|
44005
|
+
lnClass: "lnClass",
|
|
44006
|
+
lnInst: "lnInst"
|
|
44007
|
+
},
|
|
44008
|
+
followsOnly: !0
|
|
44009
|
+
}],
|
|
44010
|
+
KDC: [{
|
|
44011
|
+
attribute: { uuid: "apUuid" },
|
|
44012
|
+
target: ["AccessPoint"],
|
|
44013
|
+
tuple: {
|
|
44014
|
+
ied: { attribute: "iedName" },
|
|
44015
|
+
accessPoint: "apName"
|
|
44016
|
+
}
|
|
44017
|
+
}],
|
|
44018
|
+
ServerAt: [{
|
|
44019
|
+
attribute: { uuid: "apUuid" },
|
|
44020
|
+
target: ["AccessPoint"],
|
|
44021
|
+
tuple: {
|
|
44022
|
+
ied: { ancestor: !0 },
|
|
44023
|
+
accessPoint: "apName"
|
|
44024
|
+
}
|
|
44025
|
+
}],
|
|
44026
|
+
SMV: [{
|
|
44027
|
+
attribute: { uuid: "cbUuid" },
|
|
44028
|
+
target: ["SampledValueControl"],
|
|
44029
|
+
tuple: {
|
|
44030
|
+
ied: { parentAttribute: "iedName" },
|
|
44031
|
+
lDevice: "ldInst",
|
|
44032
|
+
controlBlock: "cbName"
|
|
44033
|
+
}
|
|
44034
|
+
}]
|
|
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 = [
|
|
43853
44038
|
"Substation",
|
|
43854
44039
|
"VoltageLevel",
|
|
43855
44040
|
"Bay"
|
|
43856
|
-
],
|
|
44041
|
+
], x = [
|
|
43857
44042
|
"Application",
|
|
43858
44043
|
"Function",
|
|
43859
44044
|
"FunctionCategory",
|
|
43860
44045
|
"AllocationRole",
|
|
43861
44046
|
"Variable",
|
|
43862
44047
|
"BehaviorDescription"
|
|
43863
|
-
],
|
|
44048
|
+
], S = /* @__PURE__ */ new Set([
|
|
43864
44049
|
"Text",
|
|
43865
44050
|
"Private",
|
|
43866
44051
|
"Labels",
|
|
43867
44052
|
"Label"
|
|
43868
|
-
]),
|
|
44053
|
+
]), C = [
|
|
43869
44054
|
"ReportControl",
|
|
43870
44055
|
"LogControl",
|
|
43871
44056
|
"GSEControl",
|
|
@@ -43875,26 +44060,232 @@ var S = "TEMPLATE", C = [
|
|
|
43875
44060
|
"ExtRef",
|
|
43876
44061
|
"DAI"
|
|
43877
44062
|
];
|
|
43878
|
-
|
|
44063
|
+
w({ roots: C }), w({
|
|
43879
44064
|
roots: ["ConnectedAP"],
|
|
43880
|
-
excluded: /* @__PURE__ */ new Set([...
|
|
43881
|
-
}),
|
|
44065
|
+
excluded: /* @__PURE__ */ new Set([...S, "PhysConn"])
|
|
44066
|
+
}), w({
|
|
43882
44067
|
roots: ["SubNetwork"],
|
|
43883
|
-
excluded:
|
|
43884
|
-
}),
|
|
43885
|
-
function
|
|
43886
|
-
let { roots: t, excluded: n } = e, r =
|
|
43887
|
-
return new Set(i.filter((e) => !
|
|
44068
|
+
excluded: w({ roots: ["ConnectedAP"] })
|
|
44069
|
+
}), se();
|
|
44070
|
+
function w(e) {
|
|
44071
|
+
let { roots: t, excluded: n } = e, r = u, i = t.flatMap((e) => [e, ...r[e] ?? []]);
|
|
44072
|
+
return new Set(i.filter((e) => !S.has(e) && !n?.has(e)));
|
|
43888
44073
|
}
|
|
43889
|
-
function
|
|
43890
|
-
let e =
|
|
44074
|
+
function se() {
|
|
44075
|
+
let e = p.MinRequestedSCDFile.attributes.identityFields, t = ne.MinRequestedSCDFile;
|
|
43891
44076
|
return Object.keys(f.byTag.MinRequestedSCDFile).filter((n) => !e.includes(n) && !t.includes(n));
|
|
43892
44077
|
}
|
|
43893
|
-
var
|
|
43894
|
-
function
|
|
44078
|
+
var T = p.LNode?.attributes?.identityFields ?? [], E = new Map(T.map((e) => [e, ce(e)]).filter(([, e]) => e in f.byTag.LNodeSpecNaming));
|
|
44079
|
+
function ce(e) {
|
|
43895
44080
|
return `s${e.charAt(0).toUpperCase()}${e.slice(1)}`;
|
|
43896
44081
|
}
|
|
43897
|
-
var
|
|
44082
|
+
var D = [
|
|
44083
|
+
{
|
|
44084
|
+
name: "processName",
|
|
44085
|
+
from: "Process"
|
|
44086
|
+
},
|
|
44087
|
+
{
|
|
44088
|
+
name: "lineName",
|
|
44089
|
+
from: "Line"
|
|
44090
|
+
},
|
|
44091
|
+
{
|
|
44092
|
+
name: "substationName",
|
|
44093
|
+
from: "Substation"
|
|
44094
|
+
},
|
|
44095
|
+
{
|
|
44096
|
+
name: "voltageLevelName",
|
|
44097
|
+
from: "VoltageLevel"
|
|
44098
|
+
},
|
|
44099
|
+
{
|
|
44100
|
+
name: "bayName",
|
|
44101
|
+
from: "Bay"
|
|
44102
|
+
},
|
|
44103
|
+
{
|
|
44104
|
+
name: "cNodeName",
|
|
44105
|
+
from: "ConnectivityNode"
|
|
44106
|
+
}
|
|
44107
|
+
], O = {
|
|
44108
|
+
ConnectivityNode: {
|
|
44109
|
+
follows: "self",
|
|
44110
|
+
attributes: [{
|
|
44111
|
+
name: "pathName",
|
|
44112
|
+
from: "path"
|
|
44113
|
+
}]
|
|
44114
|
+
},
|
|
44115
|
+
NeutralPoint: {
|
|
44116
|
+
follows: "connectivityNode",
|
|
44117
|
+
attributes: D
|
|
44118
|
+
},
|
|
44119
|
+
Terminal: {
|
|
44120
|
+
follows: "connectivityNode",
|
|
44121
|
+
attributes: D
|
|
44122
|
+
}
|
|
44123
|
+
}, k = {
|
|
44124
|
+
direct: "direct",
|
|
44125
|
+
lnode: "lnode",
|
|
44126
|
+
iedAddress: "ied-address",
|
|
44127
|
+
behaviorDescription: "behavior-description",
|
|
44128
|
+
ancestorName: "ancestor-name",
|
|
44129
|
+
scopedName: "scoped-name",
|
|
44130
|
+
unsupported: "unsupported"
|
|
44131
|
+
}, A = {
|
|
44132
|
+
LN: [{
|
|
44133
|
+
attribute: "lnType",
|
|
44134
|
+
target: "LNodeType"
|
|
44135
|
+
}],
|
|
44136
|
+
LN0: [{
|
|
44137
|
+
attribute: "lnType",
|
|
44138
|
+
target: "LNodeType"
|
|
44139
|
+
}],
|
|
44140
|
+
LNode: [{
|
|
44141
|
+
attribute: "lnType",
|
|
44142
|
+
target: "LNodeType"
|
|
44143
|
+
}],
|
|
44144
|
+
DO: [{
|
|
44145
|
+
attribute: "type",
|
|
44146
|
+
target: "DOType"
|
|
44147
|
+
}],
|
|
44148
|
+
SDO: [{
|
|
44149
|
+
attribute: "type",
|
|
44150
|
+
target: "DOType"
|
|
44151
|
+
}],
|
|
44152
|
+
DA: [{
|
|
44153
|
+
attribute: "type",
|
|
44154
|
+
target: "EnumType",
|
|
44155
|
+
when: {
|
|
44156
|
+
attribute: "bType",
|
|
44157
|
+
equals: "Enum"
|
|
44158
|
+
}
|
|
44159
|
+
}, {
|
|
44160
|
+
attribute: "type",
|
|
44161
|
+
target: "DAType",
|
|
44162
|
+
when: {
|
|
44163
|
+
attribute: "bType",
|
|
44164
|
+
equals: "Struct"
|
|
44165
|
+
}
|
|
44166
|
+
}],
|
|
44167
|
+
BDA: [{
|
|
44168
|
+
attribute: "type",
|
|
44169
|
+
target: "EnumType",
|
|
44170
|
+
when: {
|
|
44171
|
+
attribute: "bType",
|
|
44172
|
+
equals: "Enum"
|
|
44173
|
+
}
|
|
44174
|
+
}, {
|
|
44175
|
+
attribute: "type",
|
|
44176
|
+
target: "DAType",
|
|
44177
|
+
when: {
|
|
44178
|
+
attribute: "bType",
|
|
44179
|
+
equals: "Struct"
|
|
44180
|
+
}
|
|
44181
|
+
}]
|
|
44182
|
+
};
|
|
44183
|
+
function le(e) {
|
|
44184
|
+
let t = {};
|
|
44185
|
+
for (let [n, r] of Object.entries(e)) for (let e of r) {
|
|
44186
|
+
let r = t[e.resolution] ??= /* @__PURE__ */ new Map();
|
|
44187
|
+
for (let t of e.target) {
|
|
44188
|
+
let i = r.get(t) ?? [];
|
|
44189
|
+
i.push({
|
|
44190
|
+
refTagName: n,
|
|
44191
|
+
uuidAttr: e.attribute.uuid,
|
|
44192
|
+
pathAttr: e.attribute.path
|
|
44193
|
+
}), r.set(t, i);
|
|
44194
|
+
}
|
|
44195
|
+
}
|
|
44196
|
+
return t;
|
|
44197
|
+
}
|
|
44198
|
+
function ue(e) {
|
|
44199
|
+
let t = /* @__PURE__ */ new Map();
|
|
44200
|
+
for (let [n, r] of Object.entries(e)) t.set(n, r.map((e) => ({
|
|
44201
|
+
uuidAttr: e.attribute.uuid,
|
|
44202
|
+
pathAttr: e.attribute.path,
|
|
44203
|
+
resolution: e.resolution,
|
|
44204
|
+
targetTagNames: e.target
|
|
44205
|
+
})));
|
|
44206
|
+
return t;
|
|
44207
|
+
}
|
|
44208
|
+
function de(e) {
|
|
44209
|
+
let t = /* @__PURE__ */ new Map();
|
|
44210
|
+
for (let [n, r] of Object.entries(e)) for (let e of r) {
|
|
44211
|
+
let r = t.get(e.target) ?? [];
|
|
44212
|
+
r.push({
|
|
44213
|
+
refTagName: n,
|
|
44214
|
+
attribute: e.attribute,
|
|
44215
|
+
when: e.when
|
|
44216
|
+
}), t.set(e.target, r);
|
|
44217
|
+
}
|
|
44218
|
+
return t;
|
|
44219
|
+
}
|
|
44220
|
+
function fe(e) {
|
|
44221
|
+
let { tagName: t, derived: n, rootConstraints: r } = e;
|
|
44222
|
+
return {
|
|
44223
|
+
...n,
|
|
44224
|
+
attributes: n.attributes.map((e) => pe({
|
|
44225
|
+
tagName: t,
|
|
44226
|
+
attribute: e,
|
|
44227
|
+
rootConstraints: r
|
|
44228
|
+
}) ? {
|
|
44229
|
+
...e,
|
|
44230
|
+
rootOnly: !0
|
|
44231
|
+
} : e)
|
|
44232
|
+
};
|
|
44233
|
+
}
|
|
44234
|
+
function pe(e) {
|
|
44235
|
+
let { rootConstraints: t } = e;
|
|
44236
|
+
return t.some((t) => me({
|
|
44237
|
+
...e,
|
|
44238
|
+
keyref: t
|
|
44239
|
+
}));
|
|
44240
|
+
}
|
|
44241
|
+
function me(e) {
|
|
44242
|
+
let { keyref: t, tagName: n, attribute: r, rootConstraints: i } = e;
|
|
44243
|
+
if (t.kind !== "keyref" || t.fields.length !== 1) return !1;
|
|
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
|
+
return a && o && c === !0 && l === !0;
|
|
44246
|
+
}
|
|
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
|
+
path: t.attribute.path,
|
|
44258
|
+
uuid: t.attribute.uuid
|
|
44259
|
+
}]))), M = [...T, "lnUuid"];
|
|
44260
|
+
be(), new Map([...j].map(([e, t]) => {
|
|
44261
|
+
let r = p[e]?.attributes.details[t.path]?.type;
|
|
44262
|
+
return [e, n(r)];
|
|
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
|
+
tagName: e,
|
|
44265
|
+
derived: t,
|
|
44266
|
+
rootConstraints: p.SCL?.constraints ?? []
|
|
44267
|
+
})]));
|
|
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
|
+
let e = /* @__PURE__ */ new Map();
|
|
44272
|
+
for (let t of _e) for (let [n, r] of he[t] ?? []) e.set(n, [...e.get(n) ?? [], ...r]);
|
|
44273
|
+
return e;
|
|
44274
|
+
}
|
|
44275
|
+
function be() {
|
|
44276
|
+
let e = [["LNode", M]];
|
|
44277
|
+
for (let t of ["DOS", "SDS"]) {
|
|
44278
|
+
let n = j.get(t);
|
|
44279
|
+
n && e.push([t, [
|
|
44280
|
+
"name",
|
|
44281
|
+
"ix",
|
|
44282
|
+
n.path,
|
|
44283
|
+
n.uuid
|
|
44284
|
+
]]);
|
|
44285
|
+
}
|
|
44286
|
+
return new Map(e);
|
|
44287
|
+
}
|
|
44288
|
+
var F = {
|
|
43898
44289
|
AccessPoint: { type: "transparent" },
|
|
43899
44290
|
Server: { type: "transparent" },
|
|
43900
44291
|
Private: { type: "transparent" },
|
|
@@ -43990,17 +44381,17 @@ var M = {
|
|
|
43990
44381
|
Variable: { type: "name" },
|
|
43991
44382
|
Process: { type: "name" }
|
|
43992
44383
|
};
|
|
43993
|
-
new Set(Object.entries(
|
|
43994
|
-
var
|
|
44384
|
+
new Set(Object.entries(F).filter(([, e]) => e.type === "signal").map(([e]) => e));
|
|
44385
|
+
var xe = [
|
|
43995
44386
|
"lnClass",
|
|
43996
44387
|
"prefix",
|
|
43997
44388
|
"inst"
|
|
43998
44389
|
];
|
|
43999
|
-
new Set(Object.values(
|
|
44390
|
+
new Set(Object.values(F).flatMap((e) => {
|
|
44000
44391
|
switch (e.type) {
|
|
44001
44392
|
case "transparent": return [];
|
|
44002
44393
|
case "name": return ["name"];
|
|
44003
|
-
case "lnClass": return [...
|
|
44394
|
+
case "lnClass": return [...xe];
|
|
44004
44395
|
case "lnode": return [
|
|
44005
44396
|
e.prefix,
|
|
44006
44397
|
e.lnClass,
|
|
@@ -44015,13 +44406,72 @@ new Set(Object.values(M).flatMap((e) => {
|
|
|
44015
44406
|
];
|
|
44016
44407
|
}
|
|
44017
44408
|
}));
|
|
44018
|
-
|
|
44409
|
+
var I = /* @__PURE__ */ new Set(["LN", "LN0"]), L = new Map(Object.entries(g).flatMap(([e, t]) => {
|
|
44410
|
+
let n = t.filter(Se);
|
|
44411
|
+
return n.length > 0 ? [[e, n]] : [];
|
|
44412
|
+
}));
|
|
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
|
+
}
|
|
44417
|
+
function R(e) {
|
|
44418
|
+
let { fullObject: t, ...n } = e;
|
|
44419
|
+
return o({
|
|
44420
|
+
...n,
|
|
44421
|
+
dialecteConfig: h,
|
|
44422
|
+
fullObject: t
|
|
44423
|
+
});
|
|
44424
|
+
}
|
|
44425
|
+
function Ce(e) {
|
|
44426
|
+
return z(e) > 0;
|
|
44427
|
+
}
|
|
44428
|
+
function z(e) {
|
|
44429
|
+
if (!e) return 0;
|
|
44430
|
+
let t = e.minOccurs ?? 0;
|
|
44431
|
+
if (e.kind === "element" || e.kind === "any") return t;
|
|
44432
|
+
let n = e.particles.map((e) => z(e));
|
|
44433
|
+
return e.kind === "choice" ? n.length === 0 ? 0 : t * Math.min(...n) : t * n.reduce((e, t) => e + t, 0);
|
|
44434
|
+
}
|
|
44435
|
+
function we(e) {
|
|
44436
|
+
let t = /* @__PURE__ */ new Set();
|
|
44437
|
+
return B({
|
|
44438
|
+
particle: e,
|
|
44439
|
+
tags: t
|
|
44440
|
+
}), t;
|
|
44441
|
+
}
|
|
44442
|
+
function B(e) {
|
|
44443
|
+
let { particle: t, tags: n } = e;
|
|
44444
|
+
if (!(!t || (t.minOccurs ?? 0) === 0)) if (t.kind === "element") n.add(t.name);
|
|
44445
|
+
else if (t.kind === "any") n.add("");
|
|
44446
|
+
else for (let e of t.particles) B({
|
|
44447
|
+
particle: e,
|
|
44448
|
+
tags: n
|
|
44449
|
+
});
|
|
44450
|
+
}
|
|
44451
|
+
function V(e) {
|
|
44452
|
+
return b.includes(e);
|
|
44453
|
+
}
|
|
44454
|
+
function Te(e) {
|
|
44455
|
+
let { tagName: t, definition: n } = e;
|
|
44456
|
+
if (V(t) || !Ce(n.contentModel)) return !1;
|
|
44457
|
+
let { identityFields: r = [], sequence: i } = n.attributes;
|
|
44458
|
+
return r.length === 0 && !i.includes("uuid") ? !0 : [...we(n.contentModel)].every((e) => y.has(e));
|
|
44459
|
+
}
|
|
44460
|
+
var Ee = h.definition, De = new Set(Object.entries(Ee).filter(([e, t]) => Te({
|
|
44461
|
+
tagName: e,
|
|
44462
|
+
definition: t
|
|
44463
|
+
})).map(([e]) => e));
|
|
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) {
|
|
44019
44466
|
switch (e.type) {
|
|
44020
44467
|
case "transparent": return () => null;
|
|
44021
44468
|
case "name": {
|
|
44022
44469
|
let t = e.separator ?? "/";
|
|
44023
44470
|
return (e) => {
|
|
44024
|
-
let n =
|
|
44471
|
+
let n = R({
|
|
44472
|
+
record: e,
|
|
44473
|
+
name: "name"
|
|
44474
|
+
});
|
|
44025
44475
|
return n ? {
|
|
44026
44476
|
segment: n,
|
|
44027
44477
|
separator: t
|
|
@@ -44029,14 +44479,36 @@ function P(e) {
|
|
|
44029
44479
|
};
|
|
44030
44480
|
}
|
|
44031
44481
|
case "lnClass": return (e) => {
|
|
44032
|
-
let t =
|
|
44482
|
+
let t = R({
|
|
44483
|
+
record: e,
|
|
44484
|
+
name: "lnClass",
|
|
44485
|
+
defaults: "none"
|
|
44486
|
+
});
|
|
44033
44487
|
return t ? {
|
|
44034
|
-
segment:
|
|
44488
|
+
segment: U({
|
|
44489
|
+
prefix: R({
|
|
44490
|
+
record: e,
|
|
44491
|
+
name: "prefix",
|
|
44492
|
+
defaults: "none"
|
|
44493
|
+
}),
|
|
44494
|
+
lnClass: t,
|
|
44495
|
+
inst: R({
|
|
44496
|
+
record: e,
|
|
44497
|
+
name: "inst",
|
|
44498
|
+
defaults: "none",
|
|
44499
|
+
fullObject: !0
|
|
44500
|
+
})?.value ?? R({
|
|
44501
|
+
record: e,
|
|
44502
|
+
name: "lnInst",
|
|
44503
|
+
defaults: "none",
|
|
44504
|
+
fullObject: !0
|
|
44505
|
+
})?.value ?? ""
|
|
44506
|
+
}),
|
|
44035
44507
|
separator: "/"
|
|
44036
44508
|
} : null;
|
|
44037
44509
|
};
|
|
44038
44510
|
case "lnode": return (t, n) => {
|
|
44039
|
-
let r =
|
|
44511
|
+
let r = je({
|
|
44040
44512
|
strategy: e,
|
|
44041
44513
|
record: t,
|
|
44042
44514
|
specNaming: n?.specNaming
|
|
@@ -44047,14 +44519,18 @@ function P(e) {
|
|
|
44047
44519
|
} : null;
|
|
44048
44520
|
};
|
|
44049
44521
|
case "attribute": return (t) => {
|
|
44050
|
-
let n =
|
|
44522
|
+
let n = R({
|
|
44523
|
+
record: t,
|
|
44524
|
+
name: e.attr,
|
|
44525
|
+
defaults: "none"
|
|
44526
|
+
});
|
|
44051
44527
|
return n ? {
|
|
44052
44528
|
segment: n,
|
|
44053
44529
|
separator: e.separator
|
|
44054
44530
|
} : null;
|
|
44055
44531
|
};
|
|
44056
44532
|
case "signal": return (t, n) => {
|
|
44057
|
-
let r =
|
|
44533
|
+
let r = ke({
|
|
44058
44534
|
strategy: e,
|
|
44059
44535
|
record: t,
|
|
44060
44536
|
siblings: n?.siblings ?? [t]
|
|
@@ -44066,181 +44542,129 @@ function P(e) {
|
|
|
44066
44542
|
};
|
|
44067
44543
|
}
|
|
44068
44544
|
}
|
|
44069
|
-
function
|
|
44070
|
-
let { strategy: t, record: n, siblings: r } = e, i =
|
|
44071
|
-
|
|
44072
|
-
|
|
44073
|
-
|
|
44074
|
-
|
|
44545
|
+
function ke(e) {
|
|
44546
|
+
let { strategy: t, record: n, siblings: r } = e, i = R({
|
|
44547
|
+
record: n,
|
|
44548
|
+
name: t.name,
|
|
44549
|
+
defaults: "none"
|
|
44550
|
+
});
|
|
44551
|
+
return i ? r.filter((e) => e.tagName === n.tagName && R({
|
|
44552
|
+
record: e,
|
|
44553
|
+
name: t.name,
|
|
44554
|
+
defaults: "none"
|
|
44555
|
+
}) === i).length <= 1 ? i : Ae({
|
|
44556
|
+
strategy: t,
|
|
44557
|
+
record: n,
|
|
44558
|
+
name: i
|
|
44559
|
+
}) : null;
|
|
44560
|
+
}
|
|
44561
|
+
function Ae(e) {
|
|
44562
|
+
let { strategy: t, record: n, name: r } = e, i = R({
|
|
44563
|
+
record: n,
|
|
44564
|
+
name: t.instance,
|
|
44565
|
+
defaults: "none",
|
|
44566
|
+
fullObject: !0
|
|
44567
|
+
})?.value ?? Me(n, t.instance), a = t.data ? R({
|
|
44568
|
+
record: n,
|
|
44569
|
+
name: t.data,
|
|
44570
|
+
defaults: "none"
|
|
44571
|
+
}) : void 0;
|
|
44572
|
+
return `${r}${i ? `(${i})` : ""}${a ? `.${a}` : ""}`;
|
|
44075
44573
|
}
|
|
44076
|
-
function
|
|
44077
|
-
let { strategy: t, record: n, specNaming: r } = e, i =
|
|
44078
|
-
|
|
44079
|
-
|
|
44080
|
-
|
|
44574
|
+
function je(e) {
|
|
44575
|
+
let { strategy: t, record: n, specNaming: r } = e, i = R({
|
|
44576
|
+
record: n,
|
|
44577
|
+
name: t.ied,
|
|
44578
|
+
defaults: "none"
|
|
44579
|
+
}), a = i && i !== "None" && r ? {
|
|
44580
|
+
prefix: R({
|
|
44581
|
+
record: r,
|
|
44582
|
+
name: H(t.prefix),
|
|
44583
|
+
defaults: "none"
|
|
44584
|
+
}),
|
|
44585
|
+
lnClass: R({
|
|
44586
|
+
record: r,
|
|
44587
|
+
name: H(t.lnClass),
|
|
44588
|
+
defaults: "none",
|
|
44589
|
+
fullObject: !0
|
|
44590
|
+
})?.value ?? R({
|
|
44591
|
+
record: n,
|
|
44592
|
+
name: t.lnClass,
|
|
44593
|
+
defaults: "none"
|
|
44594
|
+
}),
|
|
44595
|
+
inst: R({
|
|
44596
|
+
record: r,
|
|
44597
|
+
name: H(t.inst),
|
|
44598
|
+
defaults: "none"
|
|
44599
|
+
})
|
|
44081
44600
|
} : {
|
|
44082
|
-
prefix:
|
|
44083
|
-
|
|
44084
|
-
|
|
44601
|
+
prefix: R({
|
|
44602
|
+
record: n,
|
|
44603
|
+
name: t.prefix,
|
|
44604
|
+
defaults: "none"
|
|
44605
|
+
}),
|
|
44606
|
+
lnClass: R({
|
|
44607
|
+
record: n,
|
|
44608
|
+
name: t.lnClass,
|
|
44609
|
+
defaults: "none"
|
|
44610
|
+
}),
|
|
44611
|
+
inst: R({
|
|
44612
|
+
record: n,
|
|
44613
|
+
name: t.inst,
|
|
44614
|
+
defaults: "none"
|
|
44615
|
+
})
|
|
44085
44616
|
};
|
|
44086
|
-
return a.lnClass ?
|
|
44617
|
+
return a.lnClass ? U({
|
|
44618
|
+
prefix: a.prefix,
|
|
44619
|
+
lnClass: a.lnClass,
|
|
44620
|
+
inst: a.inst
|
|
44621
|
+
}) : null;
|
|
44087
44622
|
}
|
|
44088
|
-
function
|
|
44089
|
-
return
|
|
44623
|
+
function H(e) {
|
|
44624
|
+
return E.get(e) ?? e;
|
|
44090
44625
|
}
|
|
44091
|
-
function
|
|
44626
|
+
function Me(e, t) {
|
|
44092
44627
|
return r({
|
|
44093
|
-
dialecteConfig:
|
|
44628
|
+
dialecteConfig: h,
|
|
44094
44629
|
record: e,
|
|
44095
44630
|
attributeName: t
|
|
44096
44631
|
}).default;
|
|
44097
44632
|
}
|
|
44098
|
-
var
|
|
44099
|
-
function
|
|
44100
|
-
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];
|
|
44101
44636
|
return n ? n(e, t) : null;
|
|
44102
44637
|
}
|
|
44103
|
-
function
|
|
44104
|
-
|
|
44638
|
+
function U(e) {
|
|
44639
|
+
let { prefix: t, lnClass: n, inst: r } = e;
|
|
44640
|
+
return `${t ?? ""}${n}${r ?? ""}`;
|
|
44105
44641
|
}
|
|
44106
|
-
|
|
44107
|
-
|
|
44108
|
-
|
|
44109
|
-
|
|
44110
|
-
|
|
44111
|
-
|
|
44112
|
-
|
|
44113
|
-
}, U = {
|
|
44114
|
-
LN: [{
|
|
44115
|
-
attribute: "lnType",
|
|
44116
|
-
target: "LNodeType"
|
|
44117
|
-
}],
|
|
44118
|
-
LN0: [{
|
|
44119
|
-
attribute: "lnType",
|
|
44120
|
-
target: "LNodeType"
|
|
44121
|
-
}],
|
|
44122
|
-
LNode: [{
|
|
44123
|
-
attribute: "lnType",
|
|
44124
|
-
target: "LNodeType"
|
|
44125
|
-
}],
|
|
44126
|
-
DO: [{
|
|
44127
|
-
attribute: "type",
|
|
44128
|
-
target: "DOType"
|
|
44129
|
-
}],
|
|
44130
|
-
SDO: [{
|
|
44131
|
-
attribute: "type",
|
|
44132
|
-
target: "DOType"
|
|
44133
|
-
}],
|
|
44134
|
-
DA: [{
|
|
44135
|
-
attribute: "type",
|
|
44136
|
-
target: "EnumType",
|
|
44137
|
-
when: {
|
|
44138
|
-
attribute: "bType",
|
|
44139
|
-
equals: "Enum"
|
|
44140
|
-
}
|
|
44141
|
-
}, {
|
|
44142
|
-
attribute: "type",
|
|
44143
|
-
target: "DAType",
|
|
44144
|
-
when: {
|
|
44145
|
-
attribute: "bType",
|
|
44146
|
-
equals: "Struct"
|
|
44147
|
-
}
|
|
44148
|
-
}],
|
|
44149
|
-
BDA: [{
|
|
44150
|
-
attribute: "type",
|
|
44151
|
-
target: "EnumType",
|
|
44152
|
-
when: {
|
|
44153
|
-
attribute: "bType",
|
|
44154
|
-
equals: "Enum"
|
|
44155
|
-
}
|
|
44156
|
-
}, {
|
|
44157
|
-
attribute: "type",
|
|
44158
|
-
target: "DAType",
|
|
44159
|
-
when: {
|
|
44160
|
-
attribute: "bType",
|
|
44161
|
-
equals: "Struct"
|
|
44162
|
-
}
|
|
44163
|
-
}]
|
|
44164
|
-
};
|
|
44165
|
-
function W(e) {
|
|
44166
|
-
let t = {};
|
|
44167
|
-
for (let [n, r] of Object.entries(e)) for (let e of r) {
|
|
44168
|
-
let r = t[e.resolution] ??= /* @__PURE__ */ new Map();
|
|
44169
|
-
for (let t of e.target) {
|
|
44170
|
-
let i = r.get(t) ?? [];
|
|
44171
|
-
i.push({
|
|
44172
|
-
refTagName: n,
|
|
44173
|
-
uuidAttr: e.attribute.uuid,
|
|
44174
|
-
pathAttr: e.attribute.path
|
|
44175
|
-
}), r.set(t, i);
|
|
44176
|
-
}
|
|
44177
|
-
}
|
|
44178
|
-
return t;
|
|
44179
|
-
}
|
|
44180
|
-
function G(e) {
|
|
44181
|
-
let t = /* @__PURE__ */ new Map();
|
|
44182
|
-
for (let [n, r] of Object.entries(e)) t.set(n, r.map((e) => ({
|
|
44183
|
-
uuidAttr: e.attribute.uuid,
|
|
44184
|
-
pathAttr: e.attribute.path,
|
|
44185
|
-
resolution: e.resolution,
|
|
44186
|
-
targetTagNames: e.target
|
|
44187
|
-
})));
|
|
44188
|
-
return t;
|
|
44189
|
-
}
|
|
44190
|
-
function K(e) {
|
|
44191
|
-
let t = /* @__PURE__ */ new Map();
|
|
44192
|
-
for (let [n, r] of Object.entries(e)) for (let e of r) {
|
|
44193
|
-
let r = t.get(e.target) ?? [];
|
|
44194
|
-
r.push({
|
|
44195
|
-
refTagName: n,
|
|
44196
|
-
attribute: e.attribute,
|
|
44197
|
-
when: e.when
|
|
44198
|
-
}), t.set(e.target, r);
|
|
44199
|
-
}
|
|
44200
|
-
return t;
|
|
44642
|
+
function Fe(e) {
|
|
44643
|
+
let [t, n] = e.companions;
|
|
44644
|
+
return {
|
|
44645
|
+
doAttribute: t?.name,
|
|
44646
|
+
daAttribute: n?.name,
|
|
44647
|
+
doRequired: t?.required === !0
|
|
44648
|
+
};
|
|
44201
44649
|
}
|
|
44202
|
-
W(
|
|
44203
|
-
|
|
44204
|
-
H.direct,
|
|
44205
|
-
H.lnode,
|
|
44206
|
-
H.iedAddress,
|
|
44207
|
-
H.behaviorDescription,
|
|
44208
|
-
H.ancestorName
|
|
44209
|
-
];
|
|
44210
|
-
[...q, H.unsupported], G(b);
|
|
44211
|
-
var J = new Map(Object.entries(b).flatMap(([e, t]) => t.filter((e) => e.attribute.path === "mappedDoName" || e.attribute.path === "mappedDaName").map((t) => [e, {
|
|
44212
|
-
path: t.attribute.path,
|
|
44213
|
-
uuid: t.attribute.uuid
|
|
44214
|
-
}])));
|
|
44215
|
-
Z(), new Map([...J].map(([e, t]) => {
|
|
44216
|
-
let n = m[e]?.attributes.details[t.path]?.type;
|
|
44217
|
-
return [e, i(n)];
|
|
44218
|
-
})), [...new Set(Object.values(b).flatMap((e) => e.map((e) => e.attribute.uuid)))];
|
|
44219
|
-
var Y = new Map(Object.entries(U).map(([e, t]) => [e, [...new Set(t.map((e) => e.attribute))]])), X = K(U);
|
|
44220
|
-
new Set(X.keys()), [...k, ...Y.get("LNode") ?? []];
|
|
44221
|
-
function Z() {
|
|
44222
|
-
let e = [["LNode", [...k, "lnUuid"]]];
|
|
44223
|
-
for (let t of ["DOS", "SDS"]) {
|
|
44224
|
-
let n = J.get(t);
|
|
44225
|
-
n && e.push([t, [
|
|
44226
|
-
"name",
|
|
44227
|
-
"ix",
|
|
44228
|
-
n.path,
|
|
44229
|
-
n.uuid
|
|
44230
|
-
]]);
|
|
44231
|
-
}
|
|
44232
|
-
return new Map(e);
|
|
44650
|
+
function W(e) {
|
|
44651
|
+
return e.controlBlock ? "cb" : e.accessPoint ? "ap" : e.lnClass ? "ln" : "ld";
|
|
44233
44652
|
}
|
|
44234
|
-
new
|
|
44235
|
-
|
|
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
|
+
r({
|
|
44655
|
+
dialecteConfig: h,
|
|
44656
|
+
record: {
|
|
44657
|
+
tagName: "LN0",
|
|
44658
|
+
parent: null,
|
|
44659
|
+
attributes: []
|
|
44660
|
+
},
|
|
44661
|
+
attributeName: "lnClass"
|
|
44662
|
+
}).fixed;
|
|
44663
|
+
var Ie = [...new Set(Object.values(_).flatMap((e) => e.flatMap((e) => Object.keys(e.tuple).filter((e) => e !== "ied"))))], Le = e({
|
|
44236
44664
|
MAPPING_CHOICE_UNKNOWN: {
|
|
44237
44665
|
code: "SCL1001",
|
|
44238
44666
|
message: "The choice concerns an element the template does not bring"
|
|
44239
44667
|
},
|
|
44240
|
-
MAPPING_CHOICE_NOT_SELECTABLE: {
|
|
44241
|
-
code: "SCL1002",
|
|
44242
|
-
message: "Where an element of this kind lands cannot be chosen"
|
|
44243
|
-
},
|
|
44244
44668
|
MAPPING_CHOICE_LOCKED: {
|
|
44245
44669
|
code: "SCL1003",
|
|
44246
44670
|
message: "The instance already carries the mapping of this element"
|
|
@@ -44257,6 +44681,38 @@ var Q = e({
|
|
|
44257
44681
|
code: "SCL1006",
|
|
44258
44682
|
message: "A change is accepted while a change it depends on is skipped"
|
|
44259
44683
|
},
|
|
44684
|
+
REVISION_BASE_WITHOUT_FORK: {
|
|
44685
|
+
code: "SCL1007",
|
|
44686
|
+
message: "A previous revision is given to an operation that is not a fork"
|
|
44687
|
+
},
|
|
44688
|
+
REVISION_BASE_OTHER_FILE: {
|
|
44689
|
+
code: "SCL1008",
|
|
44690
|
+
message: "The previous revision given is another file"
|
|
44691
|
+
},
|
|
44692
|
+
OPTION_NOT_AVAILABLE: {
|
|
44693
|
+
code: "SCL1009",
|
|
44694
|
+
message: "This value of the option is not available yet"
|
|
44695
|
+
},
|
|
44696
|
+
IDENTITY_COLLISION: {
|
|
44697
|
+
code: "SCL1010",
|
|
44698
|
+
message: "An element shares with another one in the same place a key that cannot be changed"
|
|
44699
|
+
},
|
|
44700
|
+
DECISION_UNKNOWN: {
|
|
44701
|
+
code: "SCL1011",
|
|
44702
|
+
message: "A decision concerns a change the report does not list"
|
|
44703
|
+
},
|
|
44704
|
+
DECISION_DEPENDENCY_UNKNOWN: {
|
|
44705
|
+
code: "SCL1012",
|
|
44706
|
+
message: "A change depends on a change the report does not list"
|
|
44707
|
+
},
|
|
44708
|
+
REPORT_TARGET_MISMATCH: {
|
|
44709
|
+
code: "SCL1013",
|
|
44710
|
+
message: "The report was made for another target"
|
|
44711
|
+
},
|
|
44712
|
+
REPORT_STALE: {
|
|
44713
|
+
code: "SCL1014",
|
|
44714
|
+
message: "The report names an element the document no longer holds"
|
|
44715
|
+
},
|
|
44260
44716
|
TEMPLATE_ROOT_NOT_FOUND: {
|
|
44261
44717
|
code: "SCL2001",
|
|
44262
44718
|
message: "The template holds nothing that can be instantiated"
|
|
@@ -44264,32 +44720,308 @@ var Q = e({
|
|
|
44264
44720
|
TARGET_HEADER_MISSING: {
|
|
44265
44721
|
code: "SCL2002",
|
|
44266
44722
|
message: "The project has no Header to record the source file in"
|
|
44723
|
+
},
|
|
44724
|
+
SSD_SCOPE_AMBIGUOUS: {
|
|
44725
|
+
code: "SCL2003",
|
|
44726
|
+
message: "The template holds several elements to instantiate: the one to act on is to be chosen"
|
|
44727
|
+
},
|
|
44728
|
+
FUNCTION_TEMPLATE_CANNOT_HOLD: {
|
|
44729
|
+
code: "SCL2004",
|
|
44730
|
+
message: "A function template cannot hold what the function holds"
|
|
44731
|
+
},
|
|
44732
|
+
DATAFLOW_LINK_TARGET_MISMATCH: {
|
|
44733
|
+
code: "SCL3001",
|
|
44734
|
+
message: "The signal cannot be implemented by an element of this kind"
|
|
44267
44735
|
}
|
|
44268
44736
|
});
|
|
44269
|
-
new Set(
|
|
44270
|
-
|
|
44271
|
-
|
|
44272
|
-
|
|
44273
|
-
|
|
44274
|
-
|
|
44275
|
-
|
|
44276
|
-
|
|
44277
|
-
|
|
44278
|
-
|
|
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);
|
|
44739
|
+
return n.length > 0 ? [[e, n]] : [];
|
|
44740
|
+
})), new Set([...c.LN0, ...c.LN].filter((e) => "datSet" in f.byTag[e]));
|
|
44741
|
+
var q = /* @__PURE__ */ new Map();
|
|
44742
|
+
function Re(e) {
|
|
44743
|
+
let t = q.get(e);
|
|
44744
|
+
if (t) return t;
|
|
44745
|
+
let n = p[e]?.attributes?.identityFields ?? [], r = new Set(n);
|
|
44746
|
+
return q.set(e, r), r;
|
|
44747
|
+
}
|
|
44748
|
+
new Set(h.transparentElements);
|
|
44749
|
+
function ze(e) {
|
|
44750
|
+
return e.targetByAttribute !== void 0 && e.tuple.controlBlock !== void 0;
|
|
44751
|
+
}
|
|
44752
|
+
function J(e) {
|
|
44753
|
+
let { pairs: t, kind: n } = e;
|
|
44754
|
+
return t.find((e) => W(e.tuple) === n);
|
|
44755
|
+
}
|
|
44756
|
+
var Be = K.get("cb") ?? [], Y = Ve();
|
|
44757
|
+
function Ve() {
|
|
44758
|
+
let e = J({
|
|
44759
|
+
pairs: _.ExtRef,
|
|
44760
|
+
kind: "cb"
|
|
44761
|
+
});
|
|
44762
|
+
return i(e && ze(e), {
|
|
44763
|
+
key: "ASSERTION_FAILED",
|
|
44764
|
+
detail: "an ExtRef names the control block publishing its signal"
|
|
44765
|
+
}), e;
|
|
44766
|
+
}
|
|
44767
|
+
K.get("ln"), K.get("ap"), K.get("ld"), new Set(Be.flatMap((e) => u[e]).filter((e) => e in _));
|
|
44768
|
+
var He = [
|
|
44769
|
+
"ln",
|
|
44770
|
+
"ld",
|
|
44771
|
+
"ap"
|
|
44772
|
+
];
|
|
44773
|
+
He[He.length - 1], Ue();
|
|
44774
|
+
function Ue() {
|
|
44775
|
+
let e = J({
|
|
44776
|
+
pairs: _.IEDName,
|
|
44777
|
+
kind: "ap"
|
|
44778
|
+
});
|
|
44779
|
+
return i(e?.tuple.accessPoint, {
|
|
44780
|
+
key: "ASSERTION_FAILED",
|
|
44781
|
+
detail: "an IEDName names the access point it registers"
|
|
44782
|
+
}), e.tuple.accessPoint;
|
|
44783
|
+
}
|
|
44784
|
+
var We = {
|
|
44785
|
+
SourceRef: Ge(g.SourceRef),
|
|
44786
|
+
ControlRef: Ge(g.ControlRef)
|
|
44787
|
+
};
|
|
44788
|
+
function Ge(e) {
|
|
44789
|
+
let t = e.find((e) => e.resolution === k.lnode), n = e.find((e) => e.resolution === k.iedAddress);
|
|
44790
|
+
i(t && n, {
|
|
44791
|
+
key: "ASSERTION_FAILED",
|
|
44792
|
+
detail: "a signal names a logical node and the element implementing it"
|
|
44793
|
+
});
|
|
44794
|
+
let { doAttribute: r, daAttribute: a } = Fe(t);
|
|
44795
|
+
return {
|
|
44796
|
+
specification: {
|
|
44797
|
+
uuid: t.attribute.uuid,
|
|
44798
|
+
path: t.attribute.path,
|
|
44799
|
+
doName: r,
|
|
44800
|
+
daName: a
|
|
44801
|
+
},
|
|
44802
|
+
implementation: {
|
|
44803
|
+
uuid: n.attribute.uuid,
|
|
44804
|
+
path: n.attribute.path,
|
|
44805
|
+
resolution: n.resolution,
|
|
44806
|
+
targets: n.target
|
|
44807
|
+
},
|
|
44808
|
+
further: e.filter((e) => e !== t && e !== n).map((e) => ({
|
|
44809
|
+
uuid: e.attribute.uuid,
|
|
44810
|
+
targets: e.target
|
|
44811
|
+
}))
|
|
44812
|
+
};
|
|
44813
|
+
}
|
|
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({
|
|
44817
|
+
typeTag: t,
|
|
44818
|
+
pairsByReferrer: e
|
|
44819
|
+
}).length > 0), n = A.LNode[0].target, r = Q({
|
|
44820
|
+
values: X({
|
|
44821
|
+
typeTag: n,
|
|
44822
|
+
pairsByReferrer: e
|
|
44823
|
+
}).map((n) => qe({
|
|
44824
|
+
memberTag: n,
|
|
44825
|
+
typeTags: t,
|
|
44826
|
+
pairsByReferrer: e
|
|
44827
|
+
}).target),
|
|
44828
|
+
detail: "the members of the logical node type point at one type"
|
|
44829
|
+
}), i = Z({ tags: t }), a = Z({ tags: t.flatMap((t) => X({
|
|
44830
|
+
typeTag: t,
|
|
44831
|
+
pairsByReferrer: e
|
|
44832
|
+
})) }), o = new Map(t.map((n) => [n, Je({
|
|
44833
|
+
typeTag: n,
|
|
44834
|
+
typeTags: t,
|
|
44835
|
+
pairsByReferrer: e,
|
|
44836
|
+
objectType: r,
|
|
44837
|
+
idAttribute: i,
|
|
44838
|
+
nameAttribute: a
|
|
44839
|
+
})])), s = [...o.values()].flatMap((e) => [...e.members.values()]).filter((e) => !e.continuesObject), l = Q({
|
|
44840
|
+
values: s.map((e) => e.nextType),
|
|
44841
|
+
detail: "the members of the data attribute point at one type"
|
|
44842
|
+
}), { equals: u } = Xe({ conditions: s.map((e) => e.when) });
|
|
44843
|
+
return {
|
|
44844
|
+
rootType: n,
|
|
44845
|
+
objectType: r,
|
|
44846
|
+
attributeType: l,
|
|
44847
|
+
attributeTypeCondition: { equals: u },
|
|
44848
|
+
types: o
|
|
44849
|
+
};
|
|
44850
|
+
}
|
|
44851
|
+
function X(e) {
|
|
44852
|
+
let { typeTag: t, pairsByReferrer: n } = e;
|
|
44853
|
+
return c[t].filter((e) => n.has(e));
|
|
44854
|
+
}
|
|
44855
|
+
function qe(e) {
|
|
44856
|
+
let { memberTag: t, typeTags: n, pairsByReferrer: r } = e, a = r.get(t)?.find((e) => n.includes(e.target));
|
|
44857
|
+
return i(a, {
|
|
44858
|
+
key: "ASSERTION_FAILED",
|
|
44859
|
+
detail: "a member of the data model references a type of the data model",
|
|
44860
|
+
meta: { memberTag: t }
|
|
44861
|
+
}), a;
|
|
44862
|
+
}
|
|
44863
|
+
function Je(e) {
|
|
44864
|
+
let { typeTag: t, typeTags: n, pairsByReferrer: r, objectType: i, idAttribute: a, nameAttribute: o } = e;
|
|
44865
|
+
return {
|
|
44866
|
+
idAttribute: a,
|
|
44867
|
+
members: new Map(X({
|
|
44868
|
+
typeTag: t,
|
|
44869
|
+
pairsByReferrer: r
|
|
44870
|
+
}).map((e) => [e, Ye({
|
|
44871
|
+
memberTag: e,
|
|
44872
|
+
typeTags: n,
|
|
44873
|
+
pairsByReferrer: r,
|
|
44874
|
+
objectType: i,
|
|
44875
|
+
nameAttribute: o
|
|
44876
|
+
})]))
|
|
44877
|
+
};
|
|
44878
|
+
}
|
|
44879
|
+
function Ye(e) {
|
|
44880
|
+
let { memberTag: t, typeTags: n, pairsByReferrer: r, objectType: i, nameAttribute: a } = e, o = qe({
|
|
44881
|
+
memberTag: t,
|
|
44882
|
+
typeTags: n,
|
|
44883
|
+
pairsByReferrer: r
|
|
44884
|
+
});
|
|
44885
|
+
return {
|
|
44886
|
+
nameAttribute: a,
|
|
44887
|
+
typeAttribute: o.attribute,
|
|
44888
|
+
nextType: o.target,
|
|
44889
|
+
...o.when ? { when: o.when } : {},
|
|
44890
|
+
continuesObject: o.target === i
|
|
44891
|
+
};
|
|
44892
|
+
}
|
|
44893
|
+
function Z(e) {
|
|
44894
|
+
let { tags: t } = e, [n, ...r] = t.map(Re);
|
|
44895
|
+
return Q({
|
|
44896
|
+
values: [...n ?? []].filter((e) => r.every((t) => t.has(e))),
|
|
44897
|
+
detail: "the tags of the data model share one identity field"
|
|
44898
|
+
});
|
|
44899
|
+
}
|
|
44900
|
+
function Xe(e) {
|
|
44901
|
+
let { conditions: t } = e, [n] = t;
|
|
44902
|
+
return i(n && t.every((e) => e?.attribute === n.attribute && e.equals === n.equals), {
|
|
44903
|
+
key: "ASSERTION_FAILED",
|
|
44904
|
+
detail: "the members of the data attribute point at their type on one condition"
|
|
44905
|
+
}), n;
|
|
44906
|
+
}
|
|
44907
|
+
function Q(e) {
|
|
44908
|
+
let { values: t, detail: n } = e, [r, ...a] = new Set(t);
|
|
44909
|
+
return i(r !== void 0 && a.length === 0, {
|
|
44910
|
+
key: "ASSERTION_FAILED",
|
|
44911
|
+
detail: n
|
|
44912
|
+
}), r;
|
|
44913
|
+
}
|
|
44914
|
+
A.LNode[0].attribute, Ke();
|
|
44915
|
+
function Ze(e) {
|
|
44916
|
+
let { ied: t, lDevice: n, lnClass: r } = e.tuple;
|
|
44917
|
+
return "attribute" in t && n !== void 0 && r !== void 0;
|
|
44918
|
+
}
|
|
44919
|
+
var Qe = et(_.ExtRef), $e = et(_.ExtCtrl);
|
|
44920
|
+
function et(e) {
|
|
44921
|
+
let t = J({
|
|
44922
|
+
pairs: e,
|
|
44923
|
+
kind: "ln"
|
|
44924
|
+
});
|
|
44925
|
+
return i(t && Ze(t), {
|
|
44926
|
+
key: "ASSERTION_FAILED",
|
|
44927
|
+
detail: "an ExtRef and an ExtCtrl name the logical node of their signal"
|
|
44928
|
+
}), t;
|
|
44929
|
+
}
|
|
44930
|
+
var $ = "doName", tt = rt({
|
|
44931
|
+
pair: Qe,
|
|
44932
|
+
dataAttributes: [$, "daName"]
|
|
44933
|
+
}), nt = rt({
|
|
44934
|
+
pair: $e,
|
|
44935
|
+
dataAttributes: [$]
|
|
44936
|
+
});
|
|
44937
|
+
function rt(e) {
|
|
44938
|
+
let { pair: t, dataAttributes: n } = e, { tuple: r } = t;
|
|
44939
|
+
return {
|
|
44940
|
+
uuid: t.attribute.uuid,
|
|
44941
|
+
names: [
|
|
44942
|
+
r.ied.attribute,
|
|
44943
|
+
r.lDevice,
|
|
44944
|
+
r.lnClass
|
|
44945
|
+
],
|
|
44946
|
+
data: $,
|
|
44947
|
+
written: [
|
|
44948
|
+
t.attribute.uuid,
|
|
44949
|
+
...at(t),
|
|
44950
|
+
...n
|
|
44951
|
+
]
|
|
44952
|
+
};
|
|
44953
|
+
}
|
|
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))
|
|
44958
|
+
};
|
|
44959
|
+
[
|
|
44960
|
+
...tt.written,
|
|
44961
|
+
it.serviceAttribute,
|
|
44962
|
+
Y.attribute.uuid,
|
|
44963
|
+
...at(Y)
|
|
44964
|
+
], nt.written;
|
|
44965
|
+
function at(e) {
|
|
44966
|
+
let { ied: t } = e.tuple;
|
|
44967
|
+
return [..."attribute" in t ? [t.attribute] : [], ...Ie.flatMap((t) => e.tuple[t] ?? [])];
|
|
44968
|
+
}
|
|
44969
|
+
Object.fromEntries(Object.entries({
|
|
44970
|
+
FunctionTemplate: "Function",
|
|
44971
|
+
SubFunctionTemplate: "SubFunction"
|
|
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, {
|
|
44975
|
+
attributes: new Set(t),
|
|
44976
|
+
listedAsKept: new Map(t.map((e) => [e, "instance-configuration"]))
|
|
44977
|
+
}])), st();
|
|
44978
|
+
function st() {
|
|
44979
|
+
let e = /* @__PURE__ */ new Map();
|
|
44980
|
+
for (let t of P.get("LNodeType") ?? []) {
|
|
44981
|
+
let n = e.get(t.refTagName) ?? [];
|
|
44982
|
+
n.push({
|
|
44983
|
+
attribute: t.attribute,
|
|
44984
|
+
target: "LNodeType"
|
|
44985
|
+
}), e.set(t.refTagName, n);
|
|
44986
|
+
}
|
|
44987
|
+
return e;
|
|
44988
|
+
}
|
|
44989
|
+
new Set(Object.values(g).flatMap((e) => e.flatMap((e) => [e.attribute.path, e.attribute.uuid])));
|
|
44990
|
+
var ct = [{
|
|
44279
44991
|
tagName: "AllocationRole",
|
|
44280
|
-
key: "name"
|
|
44281
|
-
|
|
44282
|
-
}], te = [{
|
|
44992
|
+
key: "name"
|
|
44993
|
+
}], lt = [{
|
|
44283
44994
|
tagName: "FunctionCategory",
|
|
44284
|
-
key: "name"
|
|
44285
|
-
selectable: !0
|
|
44995
|
+
key: "name"
|
|
44286
44996
|
}];
|
|
44287
|
-
[
|
|
44288
|
-
|
|
44289
|
-
|
|
44290
|
-
|
|
44291
|
-
|
|
44292
|
-
|
|
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]) {
|
|
45002
|
+
return t.flatMap(function(t) {
|
|
45003
|
+
return t.target.every(function(e) {
|
|
45004
|
+
return dt.has(e);
|
|
45005
|
+
}) ? [[e, {
|
|
45006
|
+
uuid: t.attribute.uuid,
|
|
45007
|
+
targets: t.target
|
|
45008
|
+
}]] : [];
|
|
45009
|
+
});
|
|
45010
|
+
})), ut.flatMap(function(e) {
|
|
45011
|
+
return c[e].flatMap(function(t) {
|
|
45012
|
+
let n = g[t];
|
|
45013
|
+
return n ? [{
|
|
45014
|
+
satelliteTag: e,
|
|
45015
|
+
tagName: t,
|
|
45016
|
+
pairs: n
|
|
45017
|
+
}] : [];
|
|
45018
|
+
});
|
|
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) {
|
|
44293
45025
|
switch (e.verb) {
|
|
44294
45026
|
case "fsd":
|
|
44295
45027
|
case "asd":
|
|
@@ -44300,6 +45032,6 @@ function ne(e) {
|
|
|
44300
45032
|
};
|
|
44301
45033
|
}
|
|
44302
45034
|
}
|
|
44303
|
-
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;
|
|
44304
45036
|
//#endregion
|
|
44305
|
-
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 };
|