@abi-software/simulationvuer 3.0.3 → 3.0.4
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.
|
@@ -48517,7 +48517,7 @@ async function Lte() {
|
|
|
48517
48517
|
console.error("Failed to load libOpenCOR's WebAssembly module:", e);
|
|
48518
48518
|
}
|
|
48519
48519
|
}
|
|
48520
|
-
const Ute = "0.20251205.
|
|
48520
|
+
const Ute = "0.20251205.2", qte = { class: "space-y-7" }, Vte = { class: "text-center" }, jte = { class: "text-3xl font-bold" }, Qte = {
|
|
48521
48521
|
key: 0,
|
|
48522
48522
|
class: "text-xl italic font-bold"
|
|
48523
48523
|
}, Hte = { class: "text-sm italic" }, Wte = { class: "space-y-2" }, Zte = /* @__PURE__ */ ie("a", {
|
|
@@ -55864,7 +55864,7 @@ var Dx = function() {
|
|
|
55864
55864
|
formats: this.formats,
|
|
55865
55865
|
placeholder: this.placeholder
|
|
55866
55866
|
};
|
|
55867
|
-
Dx ? (this.quill = new Dx(this.$refs.editorElement, t), this.initQuill(), this.handleLoad()) : import("./quill-
|
|
55867
|
+
Dx ? (this.quill = new Dx(this.$refs.editorElement, t), this.initQuill(), this.handleLoad()) : import("./quill-CHYkspSK-Dk0gIpPQ.js").then(function(r) {
|
|
55868
55868
|
r && x4(e.$refs.editorElement) && (r.default ? e.quill = new r.default(e.$refs.editorElement, t) : e.quill = new r(e.$refs.editorElement, t), e.initQuill());
|
|
55869
55869
|
}).then(function() {
|
|
55870
55870
|
e.handleLoad();
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var Ul = Object.defineProperty;
|
|
2
2
|
var Dl = (s, t, e) => t in s ? Ul(s, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : s[t] = e;
|
|
3
3
|
var S = (s, t, e) => Dl(s, typeof t != "symbol" ? t + "" : t, e);
|
|
4
|
-
import { j as To, Y as pe } from "./index-
|
|
4
|
+
import { j as To, Y as pe } from "./index-BVpzE-4C.js";
|
|
5
5
|
var Co = typeof global == "object" && global && global.Object === Object && global, Pl = typeof self == "object" && self && self.Object === Object && self, te = Co || Pl || Function("return this")(), ye = te.Symbol, jo = Object.prototype, Fl = jo.hasOwnProperty, Hl = jo.toString, qr = ye ? ye.toStringTag : void 0;
|
|
6
6
|
function zl(s) {
|
|
7
7
|
var t = Fl.call(s, qr), e = s[qr];
|
package/dist/simulationvuer.js
CHANGED
|
@@ -1267,7 +1267,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
1267
1267
|
}
|
|
1268
1268
|
`)},hae={root:function(e){var t=e.instance;return["p-progressbar p-component",{"p-progressbar-determinate":t.determinate,"p-progressbar-indeterminate":t.indeterminate}]},value:"p-progressbar-value",label:"p-progressbar-label"},gae=Ke.extend({name:"progressbar",theme:mae,classes:hae}),vae={name:"BaseProgressBar",extends:it,props:{value:{type:Number,default:null},mode:{type:String,default:"determinate"},showValue:{type:Boolean,default:!0}},style:gae,provide:function(){return{$pcProgressBar:this,$parentInstance:this}}},f5={name:"ProgressBar",extends:vae,inheritAttrs:!1,computed:{progressStyle:function(){return{width:this.value+"%",display:"flex"}},indeterminate:function(){return this.mode==="indeterminate"},determinate:function(){return this.mode==="determinate"}}},bae=["aria-valuenow"];function yae(e,t,r,n,i,o){return a.openBlock(),a.createElementBlock("div",a.mergeProps({role:"progressbar",class:e.cx("root"),"aria-valuemin":"0","aria-valuenow":e.value,"aria-valuemax":"100"},e.ptmi("root")),[o.determinate?(a.openBlock(),a.createElementBlock("div",a.mergeProps({key:0,class:e.cx("value"),style:o.progressStyle},e.ptm("value")),[e.value!=null&&e.value!==0&&e.showValue?(a.openBlock(),a.createElementBlock("div",a.mergeProps({key:0,class:e.cx("label")},e.ptm("label")),[a.renderSlot(e.$slots,"default",{},function(){return[a.createTextVNode(a.toDisplayString(e.value+"%"),1)]})],16)):a.createCommentVNode("",!0)],16)):o.indeterminate?(a.openBlock(),a.createElementBlock("div",a.mergeProps({key:1,class:e.cx("value")},e.ptm("value")),null,16)):a.createCommentVNode("",!0)],16,bae)}f5.render=yae;const wae=a.defineComponent({__name:"UpdateDownloadProgressDialog",props:{percent:{}},setup(e){return(t,r)=>{const n=f5,i=Tl;return a.openBlock(),a.createBlock(i,{header:"Downloading Update...",closable:!1,closeOnEscape:!1,style:{width:"39rem"}},{default:a.withCtx(()=>[a.createVNode(n,{class:"no-animation",showValue:!1,value:t.percent},null,8,["value"])]),_:1})}}}),xae={class:"mt-2 mb-4"},Cae=a.defineComponent({__name:"OkMessageDialog",props:{title:{},message:{}},emits:["ok"],setup(e){return(t,r)=>{const n=Wo,i=Tl;return a.openBlock(),a.createBlock(i,{header:t.title},{footer:a.withCtx(()=>[a.createVNode(n,{autofocus:"",label:"OK",onClick:r[0]||(r[0]=o=>t.$emit("ok"))})]),default:a.withCtx(()=>[a.createElementVNode("div",xae,a.toDisplayString(t.message),1)]),_:1},8,["header"])}}}),Sae="opencor",kae=`${Sae}://`,Yo=69,Fv=3e3,p5=new Date().getFullYear(),Eae=p5===2025?"2025":`2025-${String(p5)}`;var Dt=(e=>(e[e.ERROR=0]="ERROR",e[e.WARNING=1]="WARNING",e))(Dt||{});function Ov(e){const t=[];for(let r=0;r<e.size();++r){const n=e.get(r);t.push({type:n.type.value,description:n.description})}return t}const Nae=(Eo=class{constructor(){Fe(this,"_fileManager",null)}static instance(){return Eo._instance??(Eo._instance=new Eo),Eo._instance}fileManager(){return this._fileManager??(this._fileManager=Ii.FileManager.instance()),this._fileManager}unmanage(t){if(at())ot.fileManagerUnmanage(t);else{const r=this.fileManager(),n=r.files;for(let i=0;i<n.size();++i){const o=n.get(i);if(o.fileName===t){r.unmanage(o);break}}}}},Fe(Eo,"_instance",null),Eo).instance();var Fl=(e=>(e[e.UNKNOWN_FILE=0]="UNKNOWN_FILE",e[e.CELLML_FILE=1]="CELLML_FILE",e[e.SEDML_FILE=2]="SEDML_FILE",e[e.COMBINE_ARCHIVE=3]="COMBINE_ARCHIVE",e[e.IRRETRIEVABLE_FILE=4]="IRRETRIEVABLE_FILE",e))(Fl||{});let wp=class{constructor(e,t=void 0){Fe(this,"_path");Fe(this,"_wasmFile",{});Fe(this,"_issues",[]);if(this._path=e,at())ot.fileCreate(e,t),this._issues=ot.fileIssues(e);else if(t!==void 0){this._wasmFile=ke.markRaw(new Ii.File(e));const r=Ii._malloc(t.length);new Uint8Array(Ii.HEAPU8.buffer,r,t.length).set(t),this._wasmFile.setContents(r,t.length),Ii._free(r),this._issues=Ov(this._wasmFile.issues)}else{console.error(`No contents provided for file '${e}'.`);return}}type(){return at()?ot.fileType(this._path):this._wasmFile.type.value}path(){return this._path}issues(){return this._issues}contents(){return at()?ot.fileContents(this._path):this._wasmFile.contents()}document(){return new Bae(this._path,this._wasmFile)}uiJson(){let e;if(at()){if(e=ot.fileUiJson(this._path),e===void 0)return}else{const r=this._wasmFile.childFileFromFileName("simulation.json");if(r===null)return;e=r.contents()}const t=new TextDecoder;return JSON.parse(t.decode(e))}},Iv=class{constructor(t){Fe(this,"_index");this._index=t}},Bae=class{constructor(t,r){Fe(this,"_cppDocumentId",-1);Fe(this,"_wasmSedDocument",{});Fe(this,"_issues",[]);if(at()?this._cppDocumentId=ot.sedDocumentCreate(t):this._wasmSedDocument=new Ii.SedDocument(r),this._issues=at()?ot.sedDocumentIssues(this._cppDocumentId):Ov(this._wasmSedDocument.issues),this.modelCount()!==1){this._issues.push({type:Dt.WARNING,description:"Only SED-ML files with one model are currently supported."});return}if(this.simulationCount()!==1){this._issues.push({type:Dt.WARNING,description:"Only SED-ML files with one simulation are currently supported."});return}const n=this.simulation(0);if(n.type()!==3){this._issues.push({type:Dt.WARNING,description:"Only uniform time course simulations are currently supported."});return}const i=n.initialTime(),o=n.outputStartTime(),s=n.outputEndTime(),l=n.numberOfSteps();i!==o&&this._issues.push({type:Dt.WARNING,description:`Only uniform time course simulations with the same values for 'initialTime' (${String(i)}) and 'outputStartTime' (${String(o)}) are currently supported.`}),o===s&&this._issues.push({type:Dt.ERROR,description:`The uniform time course simulation must have different values for 'outputStartTime' (${String(o)}) and 'outputEndTime' (${String(s)}).`}),l<=0&&this._issues.push({type:Dt.ERROR,description:`The uniform time course simulation must have a positive value for 'numberOfSteps' (${String(l)}).`})}issues(){return this._issues}modelCount(){return at()?ot.sedDocumentModelCount(this._cppDocumentId):this._wasmSedDocument.modelCount}model(t){return new Aae(this._cppDocumentId,this._wasmSedDocument,t)}simulationCount(){return at()?ot.sedDocumentSimulationCount(this._cppDocumentId):this._wasmSedDocument.simulationCount}simulation(t){let r;if(at())r=ot.sedDocumentSimulationType(this._cppDocumentId,t);else switch(this._wasmSedDocument.simulation(t).constructor.name){case"SedAnalysis":r=0;break;case"SedSteadyState":r=1;break;case"SedOneStep":r=2;break;default:r=3}return r===0?new Dae(this._cppDocumentId,this._wasmSedDocument,t,r):r===1?new Mae(this._cppDocumentId,this._wasmSedDocument,t,r):r===2?new Tae(this._cppDocumentId,this._wasmSedDocument,t,r):new Fae(this._cppDocumentId,this._wasmSedDocument,t,r)}instantiate(){return new Oae(this._cppDocumentId,this._wasmSedDocument)}},Aae=class extends Iv{constructor(r,n,i){super(i);Fe(this,"_cppDocumentId");Fe(this,"_wasmSedModel",{});this._cppDocumentId=r,Sp()&&(this._wasmSedModel=n.model(i))}addChange(r,n,i){at()?ot.sedDocumentModelAddChange(this._cppDocumentId,this._index,r,n,i):this._wasmSedModel.addChange(new Ii.SedChangeAttribute(r,n,i))}removeAllChanges(){at()?ot.sedDocumentModelRemoveAllChanges(this._cppDocumentId,this._index):this._wasmSedModel.removeAllChanges()}},xp=class extends Iv{constructor(r,n,i,o){super(i);Fe(this,"_cppDocumentId");Fe(this,"_type");this._cppDocumentId=r,this._type=o}type(){return this._type}},Dae=class extends xp{},Mae=class extends xp{},Tae=class extends xp{constructor(r,n,i,o){super(r,n,i,o);Fe(this,"_wasmSedSimulationOneStep",{});Sp()&&(this._wasmSedSimulationOneStep=n.simulation(i))}step(){return at()?ot.sedDocumentSimulationOneStepStep(this._cppDocumentId,this._index):this._wasmSedSimulationOneStep.step}},Fae=class extends xp{constructor(r,n,i,o){super(r,n,i,o);Fe(this,"_wasmSedSimulationUniformTimeCourse",{});Sp()&&(this._wasmSedSimulationUniformTimeCourse=n.simulation(i))}initialTime(){return at()?ot.sedDocumentSimulationUniformTimeCourseInitialTime(this._cppDocumentId,this._index):this._wasmSedSimulationUniformTimeCourse.initialTime}outputStartTime(){return at()?ot.sedDocumentSimulationUniformTimeCourseOutputStartTime(this._cppDocumentId,this._index):this._wasmSedSimulationUniformTimeCourse.outputStartTime}setOutputStartTime(r){at()?ot.sedDocumentSimulationUniformTimeCourseSetOutputStartTime(this._cppDocumentId,this._index,r):this._wasmSedSimulationUniformTimeCourse.outputStartTime=r}outputEndTime(){return at()?ot.sedDocumentSimulationUniformTimeCourseOutputEndTime(this._cppDocumentId,this._index):this._wasmSedSimulationUniformTimeCourse.outputEndTime}setOutputEndTime(r){at()?ot.sedDocumentSimulationUniformTimeCourseSetOutputEndTime(this._cppDocumentId,this._index,r):this._wasmSedSimulationUniformTimeCourse.outputEndTime=r}numberOfSteps(){return at()?ot.sedDocumentSimulationUniformTimeCourseNumberOfSteps(this._cppDocumentId,this._index):this._wasmSedSimulationUniformTimeCourse.numberOfSteps}setNumberOfSteps(r){at()?ot.sedDocumentSimulationUniformTimeCourseSetNumberOfSteps(this._cppDocumentId,this._index,r):this._wasmSedSimulationUniformTimeCourse.numberOfSteps=r}},Oae=class{constructor(t,r){Fe(this,"_cppInstanceId",-1);Fe(this,"_wasmSedInstance",{});at()?this._cppInstanceId=ot.sedDocumentInstantiate(t):this._wasmSedInstance=ke.markRaw(r.instantiate())}hasIssues(){return at()?ot.sedInstanceHasIssues(this._cppInstanceId):this._wasmSedInstance.hasIssues}issues(){return at()?ot.sedInstanceIssues(this._cppInstanceId):Ov(this._wasmSedInstance.issues)}task(t){return new Iae(this._cppInstanceId,t,this._wasmSedInstance)}run(){return at()?ot.sedInstanceRun(this._cppInstanceId):this._wasmSedInstance.run()}},Iae=class extends Iv{constructor(r,n,i){super(n);Fe(this,"_cppInstanceId");Fe(this,"_wasmSedInstanceTask",{});this._cppInstanceId=r,Sp()&&(this._wasmSedInstanceTask=i.task(n))}voiName(){return at()?ot.sedInstanceTaskVoiName(this._cppInstanceId,this._index):this._wasmSedInstanceTask.voiName}voiUnit(){return at()?ot.sedInstanceTaskVoiUnit(this._cppInstanceId,this._index):this._wasmSedInstanceTask.voiUnit}voi(){return at()?ot.sedInstanceTaskVoi(this._cppInstanceId,this._index):this._wasmSedInstanceTask.voiAsArray}stateCount(){return at()?ot.sedInstanceTaskStateCount(this._cppInstanceId,this._index):this._wasmSedInstanceTask.stateCount}stateName(r){return at()?ot.sedInstanceTaskStateName(this._cppInstanceId,this._index,r):this._wasmSedInstanceTask.stateName(r)}stateUnit(r){return at()?ot.sedInstanceTaskStateUnit(this._cppInstanceId,this._index,r):this._wasmSedInstanceTask.stateUnit(r)}state(r){return at()?ot.sedInstanceTaskState(this._cppInstanceId,this._index,r):this._wasmSedInstanceTask.stateAsArray(r)}rateCount(){return at()?ot.sedInstanceTaskRateCount(this._cppInstanceId,this._index):this._wasmSedInstanceTask.rateCount}rateName(r){return at()?ot.sedInstanceTaskRateName(this._cppInstanceId,this._index,r):this._wasmSedInstanceTask.rateName(r)}rateUnit(r){return at()?ot.sedInstanceTaskRateUnit(this._cppInstanceId,this._index,r):this._wasmSedInstanceTask.rateUnit(r)}rate(r){return at()?ot.sedInstanceTaskRate(this._cppInstanceId,this._index,r):this._wasmSedInstanceTask.rateAsArray(r)}constantCount(){return at()?ot.sedInstanceTaskConstantCount(this._cppInstanceId,this._index):this._wasmSedInstanceTask.constantCount}constantName(r){return at()?ot.sedInstanceTaskConstantName(this._cppInstanceId,this._index,r):this._wasmSedInstanceTask.constantName(r)}constantUnit(r){return at()?ot.sedInstanceTaskConstantUnit(this._cppInstanceId,this._index,r):this._wasmSedInstanceTask.constantUnit(r)}constant(r){return at()?ot.sedInstanceTaskConstant(this._cppInstanceId,this._index,r):this._wasmSedInstanceTask.constantAsArray(r)}computedConstantCount(){return at()?ot.sedInstanceTaskComputedConstantCount(this._cppInstanceId,this._index):this._wasmSedInstanceTask.computedConstantCount}computedConstantName(r){return at()?ot.sedInstanceTaskComputedConstantName(this._cppInstanceId,this._index,r):this._wasmSedInstanceTask.computedConstantName(r)}computedConstantUnit(r){return at()?ot.sedInstanceTaskComputedConstantUnit(this._cppInstanceId,this._index,r):this._wasmSedInstanceTask.computedConstantUnit(r)}computedConstant(r){return at()?ot.sedInstanceTaskComputedConstant(this._cppInstanceId,this._index,r):this._wasmSedInstanceTask.computedConstantAsArray(r)}algebraicVariableCount(){return at()?ot.sedInstanceTaskAlgebraicVariableCount(this._cppInstanceId,this._index):this._wasmSedInstanceTask.algebraicVariableCount}algebraicVariableName(r){return at()?ot.sedInstanceTaskAlgebraicVariableName(this._cppInstanceId,this._index,r):this._wasmSedInstanceTask.algebraicVariableName(r)}algebraicVariableUnit(r){return at()?ot.sedInstanceTaskAlgebraicVariableUnit(this._cppInstanceId,this._index,r):this._wasmSedInstanceTask.algebraicVariableUnit(r)}algebraicVariable(r){return at()?ot.sedInstanceTaskAlgebraicVariable(this._cppInstanceId,this._index,r):this._wasmSedInstanceTask.algebraicVariableAsArray(r)}};var Jo={},_r={},m5;function ms(){if(m5)return _r;m5=1;var e=_r.ValidationError=function(h,g,v,b,w,y){if(Array.isArray(b)?(this.path=b,this.property=b.reduce(function(x,C){return x+l(C)},"instance")):b!==void 0&&(this.property=b),h&&(this.message=h),v){var S=v.$id||v.id;this.schema=S||v}g!==void 0&&(this.instance=g),this.name=w,this.argument=y,this.stack=this.toString()};e.prototype.toString=function(){return this.property+" "+this.message};var t=_r.ValidatorResult=function(h,g,v,b){this.instance=h,this.schema=g,this.options=v,this.path=b.path,this.propertyPath=b.propertyPath,this.errors=[],this.throwError=v&&v.throwError,this.throwFirst=v&&v.throwFirst,this.throwAll=v&&v.throwAll,this.disableFormat=v&&v.disableFormat===!0};t.prototype.addError=function(h){var g;if(typeof h=="string")g=new e(h,this.instance,this.schema,this.path);else{if(!h)throw new Error("Missing error detail");if(!h.message)throw new Error("Missing error message");if(!h.name)throw new Error("Missing validator type");g=new e(h.message,this.instance,this.schema,this.path,h.name,h.argument)}if(this.errors.push(g),this.throwFirst)throw new n(this);if(this.throwError)throw g;return g},t.prototype.importErrors=function(h){typeof h=="string"||h&&h.validatorType?this.addError(h):h&&h.errors&&(this.errors=this.errors.concat(h.errors))};function r(h,g){return g+": "+h.toString()+`
|
|
1269
1269
|
`}t.prototype.toString=function(h){return this.errors.map(r).join("")},Object.defineProperty(t.prototype,"valid",{get:function(){return!this.errors.length}}),_r.ValidatorResultError=n;function n(h){typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(this,n),this.instance=h.instance,this.schema=h.schema,this.options=h.options,this.errors=h.errors}n.prototype=new Error,n.prototype.constructor=n,n.prototype.name="Validation Error";var i=_r.SchemaError=function h(g,v){this.message=g,this.schema=v,Error.call(this,g),typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(this,h)};i.prototype=Object.create(Error.prototype,{constructor:{value:i,enumerable:!1},name:{value:"SchemaError",enumerable:!1}});var o=_r.SchemaContext=function(h,g,v,b,w){this.schema=h,this.options=g,Array.isArray(v)?(this.path=v,this.propertyPath=v.reduce(function(y,S){return y+l(S)},"instance")):this.propertyPath=v,this.base=b,this.schemas=w};o.prototype.resolve=function(h){return m(this.base,h)},o.prototype.makeChild=function(h,g){var v=g===void 0?this.path:this.path.concat([g]),b=h.$id||h.id;let w=m(this.base,b||"");var y=new o(h,this.options,v,w,Object.create(this.schemas));return b&&!y.schemas[w]&&(y.schemas[w]=h),y};var s=_r.FORMAT_REGEXPS={"date-time":/^\d{4}-(?:0[0-9]{1}|1[0-2]{1})-(3[01]|0[1-9]|[12][0-9])[tT ](2[0-4]|[01][0-9]):([0-5][0-9]):(60|[0-5][0-9])(\.\d+)?([zZ]|[+-]([0-5][0-9]):(60|[0-5][0-9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]|~[01])*)*)$/iu,hostname:/^(?=.{1,255}$)[0-9A-Za-z](?:(?:[0-9A-Za-z]|-){0,61}[0-9A-Za-z])?(?:\.[0-9A-Za-z](?:(?:[0-9A-Za-z]|-){0,61}[0-9A-Za-z])?)*\.?$/,"host-name":/^(?=.{1,255}$)[0-9A-Za-z](?:(?:[0-9A-Za-z]|-){0,61}[0-9A-Za-z])?(?:\.[0-9A-Za-z](?:(?:[0-9A-Za-z]|-){0,61}[0-9A-Za-z])?)*\.?$/,"utc-millisec":function(h){return typeof h=="string"&&parseFloat(h)===parseInt(h,10)&&!isNaN(h)},regex:function(h){var g=!0;try{new RegExp(h)}catch{g=!1}return g},style:/[\r\n\t ]*[^\r\n\t ][^:]*:[\r\n\t ]*[^\r\n\t ;]*[\r\n\t ]*;?/,color:/^(#?([0-9A-Fa-f]{3}){1,2}\b|aqua|black|blue|fuchsia|gray|green|lime|maroon|navy|olive|orange|purple|red|silver|teal|white|yellow|(rgb\(\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*,\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*,\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*\))|(rgb\(\s*(\d?\d%|100%)+\s*,\s*(\d?\d%|100%)+\s*,\s*(\d?\d%|100%)+\s*\)))$/,phone:/^\+(?:[0-9] ?){6,14}[0-9]$/,alpha:/^[a-zA-Z]+$/,alphanumeric:/^[a-zA-Z0-9]+$/};s.regexp=s.regex,s.pattern=s.regex,s.ipv4=s["ip-address"],_r.isFormat=function(h,g,v){if(typeof h=="string"&&s[g]!==void 0){if(s[g]instanceof RegExp)return s[g].test(h);if(typeof s[g]=="function")return s[g](h)}else if(v&&v.customFormats&&typeof v.customFormats[g]=="function")return v.customFormats[g](h);return!0};var l=_r.makeSuffix=function(h){return h=h.toString(),!h.match(/[.\s\[\]]/)&&!h.match(/^[\d]/)?"."+h:h.match(/^\d+$/)?"["+h+"]":"["+JSON.stringify(h)+"]"};_r.deepCompareStrict=function h(g,v){if(typeof g!=typeof v)return!1;if(Array.isArray(g))return!Array.isArray(v)||g.length!==v.length?!1:g.every(function(y,S){return h(g[S],v[S])});if(typeof g=="object"){if(!g||!v)return g===v;var b=Object.keys(g),w=Object.keys(v);return b.length!==w.length?!1:b.every(function(y){return h(g[y],v[y])})}return g===v};function c(h,g,v,b){typeof v=="object"?g[b]=f(h[b],v):h.indexOf(v)===-1&&g.push(v)}function u(h,g,v){g[v]=h[v]}function d(h,g,v,b){typeof g[b]!="object"||!g[b]?v[b]=g[b]:h[b]?v[b]=f(h[b],g[b]):v[b]=g[b]}function f(h,g){var v=Array.isArray(g),b=v&&[]||{};return v?(h=h||[],b=b.concat(h),g.forEach(c.bind(null,h,b))):(h&&typeof h=="object"&&Object.keys(h).forEach(u.bind(null,h,b)),Object.keys(g).forEach(d.bind(null,h,g,b))),b}_r.deepMerge=f,_r.objectGetPath=function(h,g){for(var v=g.split("/").slice(1),b;typeof(b=v.shift())=="string";){var w=decodeURIComponent(b.replace(/~0/,"~").replace(/~1/g,"/"));if(!(w in h))return;h=h[w]}return h};function p(h){return"/"+encodeURIComponent(h).replace(/~/g,"%7E")}_r.encodePath=function(h){return h.map(p).join("")},_r.getDecimalPlaces=function(h){var g=0;if(isNaN(h))return g;typeof h!="number"&&(h=Number(h));var v=h.toString().split("e");if(v.length===2){if(v[1][0]!=="-")return g;g=Number(v[1].slice(1))}var b=v[0].split(".");return b.length===2&&(g+=b[1].length),g},_r.isSchema=function(h){return typeof h=="object"&&h||typeof h=="boolean"};var m=_r.resolveUrl=function(h,g){const v=new URL(g,new URL(h,"resolve://"));if(v.protocol==="resolve:"){const{pathname:b,search:w,hash:y}=v;return b+w+y}return v.toString()};return _r}var _v,h5;function _ae(){if(h5)return _v;h5=1;var e=ms(),t=e.ValidatorResult,r=e.SchemaError,n={};n.ignoreProperties={id:!0,default:!0,description:!0,title:!0,additionalItems:!0,then:!0,else:!0,$schema:!0,$ref:!0,extends:!0};var i=n.validators={};i.type=function(d,f,p,m){if(d===void 0)return null;var h=new t(d,f,p,m),g=Array.isArray(f.type)?f.type:[f.type];if(!g.some(this.testType.bind(this,d,f,p,m))){var v=g.map(function(b){if(b){var w=b.$id||b.id;return w?"<"+w+">":b+""}});h.addError({name:"type",argument:v,message:"is not of a type(s) "+v})}return h};function o(d,f,p,m,h){var g=f.throwError,v=f.throwAll;f.throwError=!1,f.throwAll=!1;var b=this.validateSchema(d,h,f,p);return f.throwError=g,f.throwAll=v,!b.valid&&m instanceof Function&&m(b),b.valid}i.anyOf=function(d,f,p,m){if(d===void 0)return null;var h=new t(d,f,p,m),g=new t(d,f,p,m);if(!Array.isArray(f.anyOf))throw new r("anyOf must be an array");if(!f.anyOf.some(o.bind(this,d,p,m,function(b){g.importErrors(b)}))){var v=f.anyOf.map(function(b,w){var y=b.$id||b.id;return y?"<"+y+">":b.title&&JSON.stringify(b.title)||b.$ref&&"<"+b.$ref+">"||"[subschema "+w+"]"});p.nestedErrors&&h.importErrors(g),h.addError({name:"anyOf",argument:v,message:"is not any of "+v.join(",")})}return h},i.allOf=function(d,f,p,m){if(d===void 0)return null;if(!Array.isArray(f.allOf))throw new r("allOf must be an array");var h=new t(d,f,p,m),g=this;return f.allOf.forEach(function(v,b){var w=g.validateSchema(d,v,p,m);if(!w.valid){var y=v.$id||v.id,S=y||v.title&&JSON.stringify(v.title)||v.$ref&&"<"+v.$ref+">"||"[subschema "+b+"]";h.addError({name:"allOf",argument:{id:S,length:w.errors.length,valid:w},message:"does not match allOf schema "+S+" with "+w.errors.length+" error[s]:"}),h.importErrors(w)}}),h},i.oneOf=function(d,f,p,m){if(d===void 0)return null;if(!Array.isArray(f.oneOf))throw new r("oneOf must be an array");var h=new t(d,f,p,m),g=new t(d,f,p,m),v=f.oneOf.filter(o.bind(this,d,p,m,function(w){g.importErrors(w)})).length,b=f.oneOf.map(function(w,y){var S=w.$id||w.id;return S||w.title&&JSON.stringify(w.title)||w.$ref&&"<"+w.$ref+">"||"[subschema "+y+"]"});return v!==1&&(p.nestedErrors&&h.importErrors(g),h.addError({name:"oneOf",argument:b,message:"is not exactly one from "+b.join(",")})),h},i.if=function(d,f,p,m){if(d===void 0)return null;if(!e.isSchema(f.if))throw new Error('Expected "if" keyword to be a schema');var h=o.call(this,d,p,m,null,f.if),g=new t(d,f,p,m),v;if(h){if(f.then===void 0)return;if(!e.isSchema(f.then))throw new Error('Expected "then" keyword to be a schema');v=this.validateSchema(d,f.then,p,m.makeChild(f.then)),g.importErrors(v)}else{if(f.else===void 0)return;if(!e.isSchema(f.else))throw new Error('Expected "else" keyword to be a schema');v=this.validateSchema(d,f.else,p,m.makeChild(f.else)),g.importErrors(v)}return g};function s(d,f){if(Object.hasOwnProperty.call(d,f))return d[f];if(f in d){for(;d=Object.getPrototypeOf(d);)if(Object.propertyIsEnumerable.call(d,f))return d[f]}}i.propertyNames=function(d,f,p,m){if(this.types.object(d)){var h=new t(d,f,p,m),g=f.propertyNames!==void 0?f.propertyNames:{};if(!e.isSchema(g))throw new r('Expected "propertyNames" to be a schema (object or boolean)');for(var v in d)if(s(d,v)!==void 0){var b=this.validateSchema(v,g,p,m.makeChild(g));h.importErrors(b)}return h}},i.properties=function(d,f,p,m){if(this.types.object(d)){var h=new t(d,f,p,m),g=f.properties||{};for(var v in g){var b=g[v];if(b!==void 0){if(b===null)throw new r('Unexpected null, expected schema in "properties"');typeof p.preValidateProperty=="function"&&p.preValidateProperty(d,v,b,p,m);var w=s(d,v),y=this.validateSchema(w,b,p,m.makeChild(b,v));y.instance!==h.instance[v]&&(h.instance[v]=y.instance),h.importErrors(y)}}return h}};function l(d,f,p,m,h,g){if(this.types.object(d)&&!(f.properties&&f.properties[h]!==void 0))if(f.additionalProperties===!1)g.addError({name:"additionalProperties",argument:h,message:"is not allowed to have the additional property "+JSON.stringify(h)});else{var v=f.additionalProperties||{};typeof p.preValidateProperty=="function"&&p.preValidateProperty(d,h,v,p,m);var b=this.validateSchema(d[h],v,p,m.makeChild(v,h));b.instance!==g.instance[h]&&(g.instance[h]=b.instance),g.importErrors(b)}}i.patternProperties=function(d,f,p,m){if(this.types.object(d)){var h=new t(d,f,p,m),g=f.patternProperties||{};for(var v in d){var b=!0;for(var w in g){var y=g[w];if(y!==void 0){if(y===null)throw new r('Unexpected null, expected schema in "patternProperties"');try{var S=new RegExp(w,"u")}catch{S=new RegExp(w)}if(S.test(v)){b=!1,typeof p.preValidateProperty=="function"&&p.preValidateProperty(d,v,y,p,m);var x=this.validateSchema(d[v],y,p,m.makeChild(y,v));x.instance!==h.instance[v]&&(h.instance[v]=x.instance),h.importErrors(x)}}}b&&l.call(this,d,f,p,m,v,h)}return h}},i.additionalProperties=function(d,f,p,m){if(this.types.object(d)){if(f.patternProperties)return null;var h=new t(d,f,p,m);for(var g in d)l.call(this,d,f,p,m,g,h);return h}},i.minProperties=function(d,f,p,m){if(this.types.object(d)){var h=new t(d,f,p,m),g=Object.keys(d);return g.length>=f.minProperties||h.addError({name:"minProperties",argument:f.minProperties,message:"does not meet minimum property length of "+f.minProperties}),h}},i.maxProperties=function(d,f,p,m){if(this.types.object(d)){var h=new t(d,f,p,m),g=Object.keys(d);return g.length<=f.maxProperties||h.addError({name:"maxProperties",argument:f.maxProperties,message:"does not meet maximum property length of "+f.maxProperties}),h}},i.items=function(d,f,p,m){var h=this;if(this.types.array(d)&&f.items!==void 0){var g=new t(d,f,p,m);return d.every(function(v,b){if(Array.isArray(f.items))var w=f.items[b]===void 0?f.additionalItems:f.items[b];else var w=f.items;if(w===void 0)return!0;if(w===!1)return g.addError({name:"items",message:"additionalItems not permitted"}),!1;var y=h.validateSchema(v,w,p,m.makeChild(w,b));return y.instance!==g.instance[b]&&(g.instance[b]=y.instance),g.importErrors(y),!0}),g}},i.contains=function(d,f,p,m){var h=this;if(this.types.array(d)&&f.contains!==void 0){if(!e.isSchema(f.contains))throw new Error('Expected "contains" keyword to be a schema');var g=new t(d,f,p,m),v=d.some(function(b,w){var y=h.validateSchema(b,f.contains,p,m.makeChild(f.contains,w));return y.errors.length===0});return v===!1&&g.addError({name:"contains",argument:f.contains,message:"must contain an item matching given schema"}),g}},i.minimum=function(d,f,p,m){if(this.types.number(d)){var h=new t(d,f,p,m);return f.exclusiveMinimum&&f.exclusiveMinimum===!0?d>f.minimum||h.addError({name:"minimum",argument:f.minimum,message:"must be greater than "+f.minimum}):d>=f.minimum||h.addError({name:"minimum",argument:f.minimum,message:"must be greater than or equal to "+f.minimum}),h}},i.maximum=function(d,f,p,m){if(this.types.number(d)){var h=new t(d,f,p,m);return f.exclusiveMaximum&&f.exclusiveMaximum===!0?d<f.maximum||h.addError({name:"maximum",argument:f.maximum,message:"must be less than "+f.maximum}):d<=f.maximum||h.addError({name:"maximum",argument:f.maximum,message:"must be less than or equal to "+f.maximum}),h}},i.exclusiveMinimum=function(d,f,p,m){if(typeof f.exclusiveMinimum!="boolean"&&this.types.number(d)){var h=new t(d,f,p,m),g=d>f.exclusiveMinimum;return g||h.addError({name:"exclusiveMinimum",argument:f.exclusiveMinimum,message:"must be strictly greater than "+f.exclusiveMinimum}),h}},i.exclusiveMaximum=function(d,f,p,m){if(typeof f.exclusiveMaximum!="boolean"&&this.types.number(d)){var h=new t(d,f,p,m),g=d<f.exclusiveMaximum;return g||h.addError({name:"exclusiveMaximum",argument:f.exclusiveMaximum,message:"must be strictly less than "+f.exclusiveMaximum}),h}};var c=function(d,f,p,m,h,g){if(this.types.number(d)){var v=f[h];if(v==0)throw new r(h+" cannot be zero");var b=new t(d,f,p,m),w=e.getDecimalPlaces(d),y=e.getDecimalPlaces(v),S=Math.max(w,y),x=Math.pow(10,S);return Math.round(d*x)%Math.round(v*x)!==0&&b.addError({name:h,argument:v,message:g+JSON.stringify(v)}),b}};i.multipleOf=function(d,f,p,m){return c.call(this,d,f,p,m,"multipleOf","is not a multiple of (divisible by) ")},i.divisibleBy=function(d,f,p,m){return c.call(this,d,f,p,m,"divisibleBy","is not divisible by (multiple of) ")},i.required=function(d,f,p,m){var h=new t(d,f,p,m);return d===void 0&&f.required===!0?h.addError({name:"required",message:"is required"}):this.types.object(d)&&Array.isArray(f.required)&&f.required.forEach(function(g){s(d,g)===void 0&&h.addError({name:"required",argument:g,message:"requires property "+JSON.stringify(g)})}),h},i.pattern=function(d,f,p,m){if(this.types.string(d)){var h=new t(d,f,p,m),g=f.pattern;try{var v=new RegExp(g,"u")}catch{v=new RegExp(g)}return d.match(v)||h.addError({name:"pattern",argument:f.pattern,message:"does not match pattern "+JSON.stringify(f.pattern.toString())}),h}},i.format=function(d,f,p,m){if(d!==void 0){var h=new t(d,f,p,m);return!h.disableFormat&&!e.isFormat(d,f.format,this)&&h.addError({name:"format",argument:f.format,message:"does not conform to the "+JSON.stringify(f.format)+" format"}),h}},i.minLength=function(d,f,p,m){if(this.types.string(d)){var h=new t(d,f,p,m),g=d.match(/[\uDC00-\uDFFF]/g),v=d.length-(g?g.length:0);return v>=f.minLength||h.addError({name:"minLength",argument:f.minLength,message:"does not meet minimum length of "+f.minLength}),h}},i.maxLength=function(d,f,p,m){if(this.types.string(d)){var h=new t(d,f,p,m),g=d.match(/[\uDC00-\uDFFF]/g),v=d.length-(g?g.length:0);return v<=f.maxLength||h.addError({name:"maxLength",argument:f.maxLength,message:"does not meet maximum length of "+f.maxLength}),h}},i.minItems=function(d,f,p,m){if(this.types.array(d)){var h=new t(d,f,p,m);return d.length>=f.minItems||h.addError({name:"minItems",argument:f.minItems,message:"does not meet minimum length of "+f.minItems}),h}},i.maxItems=function(d,f,p,m){if(this.types.array(d)){var h=new t(d,f,p,m);return d.length<=f.maxItems||h.addError({name:"maxItems",argument:f.maxItems,message:"does not meet maximum length of "+f.maxItems}),h}};function u(d,f,p){var m,h=p.length;for(m=f+1,h;m<h;m++)if(e.deepCompareStrict(d,p[m]))return!1;return!0}return i.uniqueItems=function(d,f,p,m){if(f.uniqueItems===!0&&this.types.array(d)){var h=new t(d,f,p,m);return d.every(u)||h.addError({name:"uniqueItems",message:"contains duplicate item"}),h}},i.dependencies=function(d,f,p,m){if(this.types.object(d)){var h=new t(d,f,p,m);for(var g in f.dependencies)if(d[g]!==void 0){var v=f.dependencies[g],b=m.makeChild(v,g);if(typeof v=="string"&&(v=[v]),Array.isArray(v))v.forEach(function(y){d[y]===void 0&&h.addError({name:"dependencies",argument:b.propertyPath,message:"property "+y+" not found, required by "+b.propertyPath})});else{var w=this.validateSchema(d,v,p,b);h.instance!==w.instance&&(h.instance=w.instance),w&&w.errors.length&&(h.addError({name:"dependencies",argument:b.propertyPath,message:"does not meet dependency required by "+b.propertyPath}),h.importErrors(w))}}return h}},i.enum=function(d,f,p,m){if(d===void 0)return null;if(!Array.isArray(f.enum))throw new r("enum expects an array",f);var h=new t(d,f,p,m);return f.enum.some(e.deepCompareStrict.bind(null,d))||h.addError({name:"enum",argument:f.enum,message:"is not one of enum values: "+f.enum.map(String).join(",")}),h},i.const=function(d,f,p,m){if(d===void 0)return null;var h=new t(d,f,p,m);return e.deepCompareStrict(f.const,d)||h.addError({name:"const",argument:f.const,message:"does not exactly match expected constant: "+f.const}),h},i.not=i.disallow=function(d,f,p,m){var h=this;if(d===void 0)return null;var g=new t(d,f,p,m),v=f.not||f.disallow;return v?(Array.isArray(v)||(v=[v]),v.forEach(function(b){if(h.testType(d,f,p,m,b)){var w=b&&(b.$id||b.id),y=w||b;g.addError({name:"not",argument:y,message:"is of prohibited type "+y})}}),g):null},_v=n,_v}var Cp={},g5;function $v(){if(g5)return Cp;g5=1;var e=ms();Cp.SchemaScanResult=t;function t(r,n){this.id=r,this.ref=n}return Cp.scan=function(r,n){function i(u,d){if(!d||typeof d!="object")return;if(d.$ref){let h=e.resolveUrl(u,d.$ref);c[h]=c[h]?c[h]+1:0;return}var f=d.$id||d.id;let p=e.resolveUrl(u,f);var m=f?p:u;if(m){if(m.indexOf("#")<0&&(m+="#"),l[m]){if(!e.deepCompareStrict(l[m],d))throw new Error("Schema <"+m+"> already exists with different definition");return l[m]}l[m]=d,m[m.length-1]=="#"&&(l[m.substring(0,m.length-1)]=d)}o(m+"/items",Array.isArray(d.items)?d.items:[d.items]),o(m+"/extends",Array.isArray(d.extends)?d.extends:[d.extends]),i(m+"/additionalItems",d.additionalItems),s(m+"/properties",d.properties),i(m+"/additionalProperties",d.additionalProperties),s(m+"/definitions",d.definitions),s(m+"/patternProperties",d.patternProperties),s(m+"/dependencies",d.dependencies),o(m+"/disallow",d.disallow),o(m+"/allOf",d.allOf),o(m+"/anyOf",d.anyOf),o(m+"/oneOf",d.oneOf),i(m+"/not",d.not)}function o(u,d){if(Array.isArray(d))for(var f=0;f<d.length;f++)i(u+"/"+f,d[f])}function s(u,d){if(!(!d||typeof d!="object"))for(var f in d)i(u+"/"+f,d[f])}var l={},c={};return i(r,n),new t(l,c)},Cp}var Rv,v5;function $ae(){if(v5)return Rv;v5=1;var e=_ae(),t=ms(),r=$v().scan,n=t.ValidatorResult,i=t.ValidatorResultError,o=t.SchemaError,s=t.SchemaContext,l="/",c=function f(){this.customFormats=Object.create(f.prototype.customFormats),this.schemas={},this.unresolvedRefs=[],this.types=Object.create(d),this.attributes=Object.create(e.validators)};c.prototype.customFormats={},c.prototype.schemas=null,c.prototype.types=null,c.prototype.attributes=null,c.prototype.unresolvedRefs=null,c.prototype.addSchema=function(f,p){var m=this;if(!f)return null;var h=r(p||l,f),g=p||f.$id||f.id;for(var v in h.id)this.schemas[v]=h.id[v];for(var v in h.ref)this.unresolvedRefs.push(v);return this.unresolvedRefs=this.unresolvedRefs.filter(function(b){return typeof m.schemas[b]>"u"}),this.schemas[g]},c.prototype.addSubSchemaArray=function(f,p){if(Array.isArray(p))for(var m=0;m<p.length;m++)this.addSubSchema(f,p[m])},c.prototype.addSubSchemaObject=function(f,p){if(!(!p||typeof p!="object"))for(var m in p)this.addSubSchema(f,p[m])},c.prototype.setSchemas=function(f){this.schemas=f},c.prototype.getSchema=function(f){return this.schemas[f]},c.prototype.validate=function(f,p,m,h){if(typeof p!="boolean"&&typeof p!="object"||p===null)throw new o("Expected `schema` to be an object or boolean");m||(m={});var g=p.$id||p.id;let v=t.resolveUrl(m.base,g||"");if(!h){h=new s(p,m,[],v,Object.create(this.schemas)),h.schemas[v]||(h.schemas[v]=p);var b=r(v,p);for(var w in b.id){var y=b.id[w];h.schemas[w]=y}}if(m.required&&f===void 0){var S=new n(f,p,m,h);return S.addError("is required, but is undefined"),S}var S=this.validateSchema(f,p,m,h);if(S){if(m.throwAll&&S.errors.length)throw new i(S)}else throw new Error("Result undefined");return S};function u(f){var p=typeof f=="string"?f:f.$ref;return typeof p=="string"?p:!1}c.prototype.validateSchema=function(f,p,m,h){var g=new n(f,p,m,h);if(typeof p=="boolean")p===!0?p={}:p===!1&&(p={type:[]});else if(!p)throw new Error("schema is undefined");if(p.extends)if(Array.isArray(p.extends)){var v={schema:p,ctx:h};p.extends.forEach(this.schemaTraverser.bind(this,v)),p=v.schema,v.schema=null,v.ctx=null,v=null}else p=t.deepMerge(p,this.superResolve(p.extends,h));var b=u(p);if(b){var w=this.resolve(p,b,h),y=new s(w.subschema,m,h.path,w.switchSchema,h.schemas);return this.validateSchema(f,w.subschema,m,y)}var S=m&&m.skipAttributes||[];for(var x in p)if(!e.ignoreProperties[x]&&S.indexOf(x)<0){var C=null,N=this.attributes[x];if(N)C=N.call(this,f,p,m,h);else if(m.allowUnknownAttributes===!1)throw new o("Unsupported attribute: "+x,p);C&&g.importErrors(C)}if(typeof m.rewrite=="function"){var E=m.rewrite.call(this,f,p,m,h);g.instance=E}return g},c.prototype.schemaTraverser=function(f,p){f.schema=t.deepMerge(f.schema,this.superResolve(p,f.ctx))},c.prototype.superResolve=function(f,p){var m=u(f);return m?this.resolve(f,m,p).subschema:f},c.prototype.resolve=function(f,p,m){if(p=m.resolve(p),m.schemas[p])return{subschema:m.schemas[p],switchSchema:p};let h=new URL(p,"thismessage::/").hash;var g=h&&h.length&&p.substr(0,p.length-h.length);if(!g||!m.schemas[g])throw new o("no such schema <"+p+">",f);var v=t.objectGetPath(m.schemas[g],h.substr(1));if(v===void 0)throw new o("no such schema "+h+" located in <"+g+">",f);return{subschema:v,switchSchema:p}},c.prototype.testType=function(f,p,m,h,g){if(g!==void 0){if(g===null)throw new o('Unexpected null in "type" keyword');if(typeof this.types[g]=="function")return this.types[g].call(this,f);if(g&&typeof g=="object"){var v=this.validateSchema(f,g,m,h);return v===void 0||!(v&&v.errors.length)}return!0}};var d=c.prototype.types={};return d.string=function(f){return typeof f=="string"},d.number=function(f){return typeof f=="number"&&isFinite(f)},d.integer=function(f){return typeof f=="number"&&f%1===0},d.boolean=function(f){return typeof f=="boolean"},d.array=function(f){return Array.isArray(f)},d.null=function(f){return f===null},d.date=function(f){return f instanceof Date},d.any=function(f){return!0},d.object=function(f){return f&&typeof f=="object"&&!Array.isArray(f)&&!(f instanceof Date)},Rv=c,Rv}var b5;function Rae(){if(b5)return Jo;b5=1;var e=Jo.Validator=$ae();return Jo.ValidatorResult=ms().ValidatorResult,Jo.ValidatorResultError=ms().ValidatorResultError,Jo.ValidationError=ms().ValidationError,Jo.SchemaError=ms().SchemaError,Jo.SchemaScanResult=$v().SchemaScanResult,Jo.scan=$v().scan,Jo.validate=function(t,r,n){var i=new e;return i.validate(t,r,n)},Jo}var Pae=Rae();function y5(e,t){const r=e/t;return Math.abs(r-Math.round(r))<1e-9}function zae(e){if(e===void 0)return[{type:Dt.WARNING,description:"UI JSON: no UI JSON was provided."}];const t=new Pae.Validator,r={additionalProperties:!1,properties:{input:{items:{oneOf:[{additionalProperties:!1,properties:{defaultValue:{required:!0,type:"number"},id:{required:!0,type:"string"},name:{required:!0,type:"string"},possibleValues:{items:{additionalProperties:!1,properties:{name:{required:!0,type:"string"},value:{required:!0,type:"number"}},type:"object"},minItems:1,required:!0,type:"array"},visible:{type:"string"}}},{additionalProperties:!1,properties:{defaultValue:{required:!0,type:"number"},id:{required:!0,type:"string"},maximumValue:{required:!0,type:"number"},minimumValue:{required:!0,type:"number"},name:{required:!0,type:"string"},stepValue:{type:"number"},visible:{type:"string"}}}],type:"object"},minItems:1,required:!0,type:"array"},output:{additionalProperties:!1,minItems:1,properties:{data:{items:{additionalProperties:!1,properties:{id:{required:!0,type:"string"},name:{required:!0,type:"string"}},type:"object"},minItems:1,required:!0,type:"array"},plots:{items:{additionalProperties:!1,properties:{xAxisTitle:{required:!0,type:"string"},xValue:{required:!0,type:"string"},yAxisTitle:{required:!0,type:"string"},yValue:{required:!0,type:"string"}},type:"object"},maxItems:9,minItems:1,required:!0,type:"array"}},required:!0,type:"object"},parameters:{items:{additionalProperties:!1,properties:{name:{required:!0,type:"string"},value:{required:!0,type:"string"}},minItems:1,required:!0,type:"object"},required:!0,type:"array"}},type:"object"},n=t.validate(e,r,{nestedErrors:!0});if(!n.valid){const l=[];for(const c of String(n).split(`
|
|
1270
|
-
`))c!==""&&l.push({type:Dt.WARNING,description:`UI JSON: ${pc(c)}`});return l}const i=[],o={};for(const l of e.input){let c=function(u){return"minimumValue"in u&&"maximumValue"in u};if(l.id!==void 0&&(l.id===""&&i.push({type:Dt.WARNING,description:"UI JSON: an input id must not be empty."}),o[l.id]&&i.push({type:Dt.WARNING,description:`UI JSON: an input id must be unique (${l.id} is used more than once).`}),o[l.id]=!0),l.name===""&&i.push({type:Dt.WARNING,description:"UI JSON: an input name must not be empty."}),"possibleValues"in l){for(const f of l.possibleValues)f.name===""&&i.push({type:Dt.WARNING,description:"UI JSON: an input possible value name must not be empty."});const u=l.possibleValues.map(f=>f.value),d={};for(const f of u)d[f]&&i.push({type:Dt.WARNING,description:"UI JSON: an input possible value must have a unique value ("+String(f)+" is used more than once)."}),d[f]=!0;u.includes(l.defaultValue)||i.push({type:Dt.WARNING,description:"UI JSON: an input default value ("+String(l.defaultValue)+") must be one of the possible values ("+u.join(", ")+")."})}if(c(l)){l.minimumValue>=l.maximumValue&&i.push({type:Dt.WARNING,description:"UI JSON: an input minimum value ("+String(l.minimumValue)+") must be lower than the maximum value ("+String(l.maximumValue)+")."}),(l.defaultValue<l.minimumValue||l.defaultValue>l.maximumValue)&&i.push({type:Dt.WARNING,description:"UI JSON: an input default value ("+String(l.defaultValue)+") must be greater or equal than the minimum value ("+String(l.minimumValue)+") and lower or equal than the maximum value ("+String(l.maximumValue)+")."});const u=l.maximumValue-l.minimumValue;l.stepValue!==void 0?((l.stepValue<=0||l.stepValue>u)&&i.push({type:Dt.WARNING,description:"UI JSON: an input step value ("+String(l.stepValue)+") must be greater than zero and lower or equal than the range value ("+String(u)+")."}),y5(u,l.stepValue)||i.push({type:Dt.WARNING,description:"UI JSON: an input step value ("+String(l.stepValue)+") must be a factor of the range value ("+String(u)+")."})):y5(u,1)||i.push({type:Dt.WARNING,description:`UI JSON: a (default) input step value (1) must be a factor of the range value (${String(u)}).`})}l.visible!==void 0&&l.visible===""&&i.push({type:Dt.WARNING,description:"UI JSON: an input visible must not be empty."})}const s={};for(const l of e.output.data)l.id===""&&i.push({type:Dt.WARNING,description:"UI JSON: an output data id must not be empty."}),s[l.id]&&i.push({type:Dt.WARNING,description:`UI JSON: an output data id must be unique (${l.id} is used more than once).`}),s[l.id]=!0,l.name===""&&i.push({type:Dt.WARNING,description:"UI JSON: an output data name must not be empty."});for(const l of e.output.plots)l.xAxisTitle===""&&i.push({type:Dt.WARNING,description:"UI JSON: an output plot X axis title must not be empty."}),l.xValue===""&&i.push({type:Dt.WARNING,description:"UI JSON: an output plot X value must not be empty."}),l.yAxisTitle===""&&i.push({type:Dt.WARNING,description:"UI JSON: an output plot Y axis title must not be empty."}),l.yValue===""&&i.push({type:Dt.WARNING,description:"UI JSON: an output plot Y value must not be empty."});for(const l of e.parameters)l.name===""&&i.push({type:Dt.WARNING,description:"UI JSON: a parameter name must not be empty."}),l.value===""&&i.push({type:Dt.WARNING,description:"UI JSON: a parameter value must not be empty."});return i}function at(){return Ae!==void 0}function Sp(){return!at()}function Uae(){return at()?ot.version():Ii.versionString()}let ot={},Ii={};async function qae(){if(window.locApi!==void 0)ot=window.locApi;else try{const e=(await import(d5("https://opencor.ws/libopencor/downloads/wasm/libopencor-0.20251204.0.js"))).default;Ii=await e()}catch(e){console.error("Failed to load libOpenCOR's WebAssembly module:",e)}}const Vae="0.20251205.1",jae={class:"space-y-7"},Qae={class:"text-center"},Hae={class:"text-3xl font-bold"},Wae={key:0,class:"text-xl italic font-bold"},Zae={class:"text-sm italic"},Gae={class:"space-y-2"},Kae=a.createElementVNode("a",{href:"https://opencor.ws/",target:"_blank",rel:"noopener"},"OpenCOR",-1),Yae=a.createElementVNode("a",{href:"https://opencor.ws/libopencor/",target:"_blank",rel:"noopener"},"libOpenCOR",-1),Jae=a.createElementVNode("a",{href:"https://cellml.org/",target:"_blank",rel:"noopener"},"CellML",-1),Xae=a.createElementVNode("div",{class:"space-y-0"},[a.createElementVNode("div",null,"There are two versions of OpenCOR:"),a.createElementVNode("ol",{class:"list-decimal list-inside ml-2"},[a.createElementVNode("li",null,[a.createElementVNode("span",{class:"font-bold"},"OpenCOR:"),a.createTextVNode(" a desktop application that can be run on "),a.createElementVNode("a",{href:"https://en.wikipedia.org/wiki/List_of_Intel_processors"},"Intel"),a.createTextVNode("-based and "),a.createElementVNode("a",{href:"https://en.wikipedia.org/wiki/ARM_architecture_family"},"ARM"),a.createTextVNode("-based "),a.createElementVNode("a",{href:"https://en.wikipedia.org/wiki/Microsoft_Windows",target:"_blank",rel:"noopener"},"Windows"),a.createTextVNode(", "),a.createElementVNode("a",{href:"https://en.wikipedia.org/wiki/Linux",target:"_blank",rel:"noopener"},"Linux"),a.createTextVNode(", and "),a.createElementVNode("a",{href:"https://en.wikipedia.org/wiki/MacOS",target:"_blank",rel:"noopener"},"macOS"),a.createTextVNode(" machines; and ")]),a.createElementVNode("li",null,[a.createElementVNode("span",{class:"font-bold"},"OpenCOR's Web app:"),a.createTextVNode(" a "),a.createElementVNode("a",{href:"https://en.wikipedia.org/wiki/Web_application",target:"_blank",rel:"noopener"},"Web app"),a.createTextVNode(" that can be run on a Web browser. ")])])],-1),Lae=a.defineComponent({__name:"AboutDialog",emits:["close"],setup(e){return(t,r)=>{const n=Wo,i=Tl;return a.openBlock(),a.createBlock(i,{header:" ",class:"w-169"},{footer:a.withCtx(()=>[a.createVNode(n,{label:"OK",autofocus:"",onClick:r[0]||(r[0]=o=>t.$emit("close"))})]),default:a.withCtx(()=>[a.createElementVNode("div",jae,[a.createElementVNode("div",Qae,[a.createElementVNode("div",Hae,"OpenCOR "+a.toDisplayString(a.unref(Vae)),1),a.unref(Ae)!==void 0?(a.openBlock(),a.createElementBlock("div",Wae,a.toDisplayString(a.unref(Ae).operatingSystem()),1)):a.createCommentVNode("",!0),a.createElementVNode("div",Zae,"Copyright "+a.toDisplayString(Eae),1)]),a.createElementVNode("div",Gae,[a.createElementVNode("div",null,[Kae,a.createTextVNode(" is a frontend to "),Yae,a.createTextVNode(" "+a.toDisplayString(Uae())+", a library that can be used to organise, edit, simulate, and analyse ",1),Jae,a.createTextVNode(" files. ")]),Xae])])]),_:1})}}}),ese={class:"mt-2 mb-4"},tse=a.defineComponent({__name:"YesNoQuestionDialog",props:{title:{},question:{}},emits:["yes","no"],setup(e){return(t,r)=>{const n=Wo,i=Tl;return a.openBlock(),a.createBlock(i,{header:t.title},{footer:a.withCtx(()=>[a.createVNode(n,{autofocus:"",label:"Yes",severity:"danger",onClick:r[0]||(r[0]=o=>t.$emit("yes"))}),a.createVNode(n,{label:"No",severity:"secondary",onClick:r[1]||(r[1]=o=>t.$emit("no"))})]),default:a.withCtx(()=>[a.createElementVNode("div",ese,a.toDisplayString(t.question),1)]),_:1},8,["header"])}}});var Sa={name:"CheckIcon",extends:Rt};function rse(e,t,r,n,i,o){return a.openBlock(),a.createElementBlock("svg",a.mergeProps({width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.pti()),t[0]||(t[0]=[a.createElementVNode("path",{d:"M4.86199 11.5948C4.78717 11.5923 4.71366 11.5745 4.64596 11.5426C4.57826 11.5107 4.51779 11.4652 4.46827 11.4091L0.753985 7.69483C0.683167 7.64891 0.623706 7.58751 0.580092 7.51525C0.536478 7.44299 0.509851 7.36177 0.502221 7.27771C0.49459 7.19366 0.506156 7.10897 0.536046 7.03004C0.565935 6.95111 0.613367 6.88 0.674759 6.82208C0.736151 6.76416 0.8099 6.72095 0.890436 6.69571C0.970973 6.67046 1.05619 6.66385 1.13966 6.67635C1.22313 6.68886 1.30266 6.72017 1.37226 6.76792C1.44186 6.81567 1.4997 6.8786 1.54141 6.95197L4.86199 10.2503L12.6397 2.49483C12.7444 2.42694 12.8689 2.39617 12.9932 2.40745C13.1174 2.41873 13.2343 2.47141 13.3251 2.55705C13.4159 2.64268 13.4753 2.75632 13.4938 2.87973C13.5123 3.00315 13.4888 3.1292 13.4271 3.23768L5.2557 11.4091C5.20618 11.4652 5.14571 11.5107 5.07801 11.5426C5.01031 11.5745 4.9368 11.5923 4.86199 11.5948Z",fill:"currentColor"},null,-1)]),16)}Sa.render=rse;var Pv={name:"MinusIcon",extends:Rt};function nse(e,t,r,n,i,o){return a.openBlock(),a.createElementBlock("svg",a.mergeProps({width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.pti()),t[0]||(t[0]=[a.createElementVNode("path",{d:"M13.2222 7.77778H0.777778C0.571498 7.77778 0.373667 7.69584 0.227806 7.54998C0.0819442 7.40412 0 7.20629 0 7.00001C0 6.79373 0.0819442 6.5959 0.227806 6.45003C0.373667 6.30417 0.571498 6.22223 0.777778 6.22223H13.2222C13.4285 6.22223 13.6263 6.30417 13.7722 6.45003C13.9181 6.5959 14 6.79373 14 7.00001C14 7.20629 13.9181 7.40412 13.7722 7.54998C13.6263 7.69584 13.4285 7.77778 13.2222 7.77778Z",fill:"currentColor"},null,-1)]),16)}Pv.render=nse;var kp={name:"BaseEditableHolder",extends:it,emits:["update:modelValue","value-change"],props:{modelValue:{type:null,default:void 0},defaultValue:{type:null,default:void 0},name:{type:String,default:void 0},invalid:{type:Boolean,default:void 0},disabled:{type:Boolean,default:!1},formControl:{type:Object,default:void 0}},inject:{$parentInstance:{default:void 0},$pcForm:{default:void 0},$pcFormField:{default:void 0}},data:function(){return{d_value:this.defaultValue||this.modelValue}},watch:{modelValue:function(e){this.d_value=e},defaultValue:function(e){this.d_value=e},$formName:{immediate:!0,handler:function(e){var t,r;this.formField=((t=this.$pcForm)===null||t===void 0||(r=t.register)===null||r===void 0?void 0:r.call(t,e,this.$formControl))||{}}},$formControl:{immediate:!0,handler:function(e){var t,r;this.formField=((t=this.$pcForm)===null||t===void 0||(r=t.register)===null||r===void 0?void 0:r.call(t,this.$formName,e))||{}}},$formDefaultValue:{immediate:!0,handler:function(e){this.d_value!==e&&(this.d_value=e)}}},formField:{},methods:{writeValue:function(e,t){var r,n;this.controlled&&(this.d_value=e,this.$emit("update:modelValue",e)),this.$emit("value-change",e),(r=(n=this.formField).onChange)===null||r===void 0||r.call(n,{originalEvent:t,value:e})}},computed:{$filled:function(){return nt(this.d_value)},$invalid:function(){var e,t,r,n;return(e=(t=this.invalid)!==null&&t!==void 0?t:(r=this.$pcFormField)===null||r===void 0||(r=r.$field)===null||r===void 0?void 0:r.invalid)!==null&&e!==void 0?e:(n=this.$pcForm)===null||n===void 0||(n=n.states)===null||n===void 0||(n=n[this.$formName])===null||n===void 0?void 0:n.invalid},$formName:function(){var e;return this.name||((e=this.$formControl)===null||e===void 0?void 0:e.name)},$formControl:function(){var e;return this.formControl||((e=this.$pcFormField)===null||e===void 0?void 0:e.formControl)},$formDefaultValue:function(){var e,t,r,n;return(e=(t=this.d_value)!==null&&t!==void 0?t:(r=this.$pcFormField)===null||r===void 0?void 0:r.initialValue)!==null&&e!==void 0?e:(n=this.$pcForm)===null||n===void 0||(n=n.initialValues)===null||n===void 0?void 0:n[this.$formName]},controlled:function(){return this.$inProps.hasOwnProperty("modelValue")||!this.$inProps.hasOwnProperty("modelValue")&&!this.$inProps.hasOwnProperty("defaultValue")},filled:function(){return this.$filled}}},mc={name:"BaseInput",extends:kp,props:{size:{type:String,default:null},fluid:{type:Boolean,default:null},variant:{type:String,default:null}},inject:{$parentInstance:{default:void 0},$pcFluid:{default:void 0}},computed:{$variant:function(){var e;return(e=this.variant)!==null&&e!==void 0?e:this.$primevue.config.inputStyle||this.$primevue.config.inputVariant},$fluid:function(){var e;return(e=this.fluid)!==null&&e!==void 0?e:!!this.$pcFluid},hasFluid:function(){return this.$fluid}}},ose=function(e){var t=e.dt;return`
|
|
1270
|
+
`))c!==""&&l.push({type:Dt.WARNING,description:`UI JSON: ${pc(c)}`});return l}const i=[],o={};for(const l of e.input){let c=function(u){return"minimumValue"in u&&"maximumValue"in u};if(l.id!==void 0&&(l.id===""&&i.push({type:Dt.WARNING,description:"UI JSON: an input id must not be empty."}),o[l.id]&&i.push({type:Dt.WARNING,description:`UI JSON: an input id must be unique (${l.id} is used more than once).`}),o[l.id]=!0),l.name===""&&i.push({type:Dt.WARNING,description:"UI JSON: an input name must not be empty."}),"possibleValues"in l){for(const f of l.possibleValues)f.name===""&&i.push({type:Dt.WARNING,description:"UI JSON: an input possible value name must not be empty."});const u=l.possibleValues.map(f=>f.value),d={};for(const f of u)d[f]&&i.push({type:Dt.WARNING,description:"UI JSON: an input possible value must have a unique value ("+String(f)+" is used more than once)."}),d[f]=!0;u.includes(l.defaultValue)||i.push({type:Dt.WARNING,description:"UI JSON: an input default value ("+String(l.defaultValue)+") must be one of the possible values ("+u.join(", ")+")."})}if(c(l)){l.minimumValue>=l.maximumValue&&i.push({type:Dt.WARNING,description:"UI JSON: an input minimum value ("+String(l.minimumValue)+") must be lower than the maximum value ("+String(l.maximumValue)+")."}),(l.defaultValue<l.minimumValue||l.defaultValue>l.maximumValue)&&i.push({type:Dt.WARNING,description:"UI JSON: an input default value ("+String(l.defaultValue)+") must be greater or equal than the minimum value ("+String(l.minimumValue)+") and lower or equal than the maximum value ("+String(l.maximumValue)+")."});const u=l.maximumValue-l.minimumValue;l.stepValue!==void 0?((l.stepValue<=0||l.stepValue>u)&&i.push({type:Dt.WARNING,description:"UI JSON: an input step value ("+String(l.stepValue)+") must be greater than zero and lower or equal than the range value ("+String(u)+")."}),y5(u,l.stepValue)||i.push({type:Dt.WARNING,description:"UI JSON: an input step value ("+String(l.stepValue)+") must be a factor of the range value ("+String(u)+")."})):y5(u,1)||i.push({type:Dt.WARNING,description:`UI JSON: a (default) input step value (1) must be a factor of the range value (${String(u)}).`})}l.visible!==void 0&&l.visible===""&&i.push({type:Dt.WARNING,description:"UI JSON: an input visible must not be empty."})}const s={};for(const l of e.output.data)l.id===""&&i.push({type:Dt.WARNING,description:"UI JSON: an output data id must not be empty."}),s[l.id]&&i.push({type:Dt.WARNING,description:`UI JSON: an output data id must be unique (${l.id} is used more than once).`}),s[l.id]=!0,l.name===""&&i.push({type:Dt.WARNING,description:"UI JSON: an output data name must not be empty."});for(const l of e.output.plots)l.xAxisTitle===""&&i.push({type:Dt.WARNING,description:"UI JSON: an output plot X axis title must not be empty."}),l.xValue===""&&i.push({type:Dt.WARNING,description:"UI JSON: an output plot X value must not be empty."}),l.yAxisTitle===""&&i.push({type:Dt.WARNING,description:"UI JSON: an output plot Y axis title must not be empty."}),l.yValue===""&&i.push({type:Dt.WARNING,description:"UI JSON: an output plot Y value must not be empty."});for(const l of e.parameters)l.name===""&&i.push({type:Dt.WARNING,description:"UI JSON: a parameter name must not be empty."}),l.value===""&&i.push({type:Dt.WARNING,description:"UI JSON: a parameter value must not be empty."});return i}function at(){return Ae!==void 0}function Sp(){return!at()}function Uae(){return at()?ot.version():Ii.versionString()}let ot={},Ii={};async function qae(){if(window.locApi!==void 0)ot=window.locApi;else try{const e=(await import(d5("https://opencor.ws/libopencor/downloads/wasm/libopencor-0.20251204.0.js"))).default;Ii=await e()}catch(e){console.error("Failed to load libOpenCOR's WebAssembly module:",e)}}const Vae="0.20251205.2",jae={class:"space-y-7"},Qae={class:"text-center"},Hae={class:"text-3xl font-bold"},Wae={key:0,class:"text-xl italic font-bold"},Zae={class:"text-sm italic"},Gae={class:"space-y-2"},Kae=a.createElementVNode("a",{href:"https://opencor.ws/",target:"_blank",rel:"noopener"},"OpenCOR",-1),Yae=a.createElementVNode("a",{href:"https://opencor.ws/libopencor/",target:"_blank",rel:"noopener"},"libOpenCOR",-1),Jae=a.createElementVNode("a",{href:"https://cellml.org/",target:"_blank",rel:"noopener"},"CellML",-1),Xae=a.createElementVNode("div",{class:"space-y-0"},[a.createElementVNode("div",null,"There are two versions of OpenCOR:"),a.createElementVNode("ol",{class:"list-decimal list-inside ml-2"},[a.createElementVNode("li",null,[a.createElementVNode("span",{class:"font-bold"},"OpenCOR:"),a.createTextVNode(" a desktop application that can be run on "),a.createElementVNode("a",{href:"https://en.wikipedia.org/wiki/List_of_Intel_processors"},"Intel"),a.createTextVNode("-based and "),a.createElementVNode("a",{href:"https://en.wikipedia.org/wiki/ARM_architecture_family"},"ARM"),a.createTextVNode("-based "),a.createElementVNode("a",{href:"https://en.wikipedia.org/wiki/Microsoft_Windows",target:"_blank",rel:"noopener"},"Windows"),a.createTextVNode(", "),a.createElementVNode("a",{href:"https://en.wikipedia.org/wiki/Linux",target:"_blank",rel:"noopener"},"Linux"),a.createTextVNode(", and "),a.createElementVNode("a",{href:"https://en.wikipedia.org/wiki/MacOS",target:"_blank",rel:"noopener"},"macOS"),a.createTextVNode(" machines; and ")]),a.createElementVNode("li",null,[a.createElementVNode("span",{class:"font-bold"},"OpenCOR's Web app:"),a.createTextVNode(" a "),a.createElementVNode("a",{href:"https://en.wikipedia.org/wiki/Web_application",target:"_blank",rel:"noopener"},"Web app"),a.createTextVNode(" that can be run on a Web browser. ")])])],-1),Lae=a.defineComponent({__name:"AboutDialog",emits:["close"],setup(e){return(t,r)=>{const n=Wo,i=Tl;return a.openBlock(),a.createBlock(i,{header:" ",class:"w-169"},{footer:a.withCtx(()=>[a.createVNode(n,{label:"OK",autofocus:"",onClick:r[0]||(r[0]=o=>t.$emit("close"))})]),default:a.withCtx(()=>[a.createElementVNode("div",jae,[a.createElementVNode("div",Qae,[a.createElementVNode("div",Hae,"OpenCOR "+a.toDisplayString(a.unref(Vae)),1),a.unref(Ae)!==void 0?(a.openBlock(),a.createElementBlock("div",Wae,a.toDisplayString(a.unref(Ae).operatingSystem()),1)):a.createCommentVNode("",!0),a.createElementVNode("div",Zae,"Copyright "+a.toDisplayString(Eae),1)]),a.createElementVNode("div",Gae,[a.createElementVNode("div",null,[Kae,a.createTextVNode(" is a frontend to "),Yae,a.createTextVNode(" "+a.toDisplayString(Uae())+", a library that can be used to organise, edit, simulate, and analyse ",1),Jae,a.createTextVNode(" files. ")]),Xae])])]),_:1})}}}),ese={class:"mt-2 mb-4"},tse=a.defineComponent({__name:"YesNoQuestionDialog",props:{title:{},question:{}},emits:["yes","no"],setup(e){return(t,r)=>{const n=Wo,i=Tl;return a.openBlock(),a.createBlock(i,{header:t.title},{footer:a.withCtx(()=>[a.createVNode(n,{autofocus:"",label:"Yes",severity:"danger",onClick:r[0]||(r[0]=o=>t.$emit("yes"))}),a.createVNode(n,{label:"No",severity:"secondary",onClick:r[1]||(r[1]=o=>t.$emit("no"))})]),default:a.withCtx(()=>[a.createElementVNode("div",ese,a.toDisplayString(t.question),1)]),_:1},8,["header"])}}});var Sa={name:"CheckIcon",extends:Rt};function rse(e,t,r,n,i,o){return a.openBlock(),a.createElementBlock("svg",a.mergeProps({width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.pti()),t[0]||(t[0]=[a.createElementVNode("path",{d:"M4.86199 11.5948C4.78717 11.5923 4.71366 11.5745 4.64596 11.5426C4.57826 11.5107 4.51779 11.4652 4.46827 11.4091L0.753985 7.69483C0.683167 7.64891 0.623706 7.58751 0.580092 7.51525C0.536478 7.44299 0.509851 7.36177 0.502221 7.27771C0.49459 7.19366 0.506156 7.10897 0.536046 7.03004C0.565935 6.95111 0.613367 6.88 0.674759 6.82208C0.736151 6.76416 0.8099 6.72095 0.890436 6.69571C0.970973 6.67046 1.05619 6.66385 1.13966 6.67635C1.22313 6.68886 1.30266 6.72017 1.37226 6.76792C1.44186 6.81567 1.4997 6.8786 1.54141 6.95197L4.86199 10.2503L12.6397 2.49483C12.7444 2.42694 12.8689 2.39617 12.9932 2.40745C13.1174 2.41873 13.2343 2.47141 13.3251 2.55705C13.4159 2.64268 13.4753 2.75632 13.4938 2.87973C13.5123 3.00315 13.4888 3.1292 13.4271 3.23768L5.2557 11.4091C5.20618 11.4652 5.14571 11.5107 5.07801 11.5426C5.01031 11.5745 4.9368 11.5923 4.86199 11.5948Z",fill:"currentColor"},null,-1)]),16)}Sa.render=rse;var Pv={name:"MinusIcon",extends:Rt};function nse(e,t,r,n,i,o){return a.openBlock(),a.createElementBlock("svg",a.mergeProps({width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.pti()),t[0]||(t[0]=[a.createElementVNode("path",{d:"M13.2222 7.77778H0.777778C0.571498 7.77778 0.373667 7.69584 0.227806 7.54998C0.0819442 7.40412 0 7.20629 0 7.00001C0 6.79373 0.0819442 6.5959 0.227806 6.45003C0.373667 6.30417 0.571498 6.22223 0.777778 6.22223H13.2222C13.4285 6.22223 13.6263 6.30417 13.7722 6.45003C13.9181 6.5959 14 6.79373 14 7.00001C14 7.20629 13.9181 7.40412 13.7722 7.54998C13.6263 7.69584 13.4285 7.77778 13.2222 7.77778Z",fill:"currentColor"},null,-1)]),16)}Pv.render=nse;var kp={name:"BaseEditableHolder",extends:it,emits:["update:modelValue","value-change"],props:{modelValue:{type:null,default:void 0},defaultValue:{type:null,default:void 0},name:{type:String,default:void 0},invalid:{type:Boolean,default:void 0},disabled:{type:Boolean,default:!1},formControl:{type:Object,default:void 0}},inject:{$parentInstance:{default:void 0},$pcForm:{default:void 0},$pcFormField:{default:void 0}},data:function(){return{d_value:this.defaultValue||this.modelValue}},watch:{modelValue:function(e){this.d_value=e},defaultValue:function(e){this.d_value=e},$formName:{immediate:!0,handler:function(e){var t,r;this.formField=((t=this.$pcForm)===null||t===void 0||(r=t.register)===null||r===void 0?void 0:r.call(t,e,this.$formControl))||{}}},$formControl:{immediate:!0,handler:function(e){var t,r;this.formField=((t=this.$pcForm)===null||t===void 0||(r=t.register)===null||r===void 0?void 0:r.call(t,this.$formName,e))||{}}},$formDefaultValue:{immediate:!0,handler:function(e){this.d_value!==e&&(this.d_value=e)}}},formField:{},methods:{writeValue:function(e,t){var r,n;this.controlled&&(this.d_value=e,this.$emit("update:modelValue",e)),this.$emit("value-change",e),(r=(n=this.formField).onChange)===null||r===void 0||r.call(n,{originalEvent:t,value:e})}},computed:{$filled:function(){return nt(this.d_value)},$invalid:function(){var e,t,r,n;return(e=(t=this.invalid)!==null&&t!==void 0?t:(r=this.$pcFormField)===null||r===void 0||(r=r.$field)===null||r===void 0?void 0:r.invalid)!==null&&e!==void 0?e:(n=this.$pcForm)===null||n===void 0||(n=n.states)===null||n===void 0||(n=n[this.$formName])===null||n===void 0?void 0:n.invalid},$formName:function(){var e;return this.name||((e=this.$formControl)===null||e===void 0?void 0:e.name)},$formControl:function(){var e;return this.formControl||((e=this.$pcFormField)===null||e===void 0?void 0:e.formControl)},$formDefaultValue:function(){var e,t,r,n;return(e=(t=this.d_value)!==null&&t!==void 0?t:(r=this.$pcFormField)===null||r===void 0?void 0:r.initialValue)!==null&&e!==void 0?e:(n=this.$pcForm)===null||n===void 0||(n=n.initialValues)===null||n===void 0?void 0:n[this.$formName]},controlled:function(){return this.$inProps.hasOwnProperty("modelValue")||!this.$inProps.hasOwnProperty("modelValue")&&!this.$inProps.hasOwnProperty("defaultValue")},filled:function(){return this.$filled}}},mc={name:"BaseInput",extends:kp,props:{size:{type:String,default:null},fluid:{type:Boolean,default:null},variant:{type:String,default:null}},inject:{$parentInstance:{default:void 0},$pcFluid:{default:void 0}},computed:{$variant:function(){var e;return(e=this.variant)!==null&&e!==void 0?e:this.$primevue.config.inputStyle||this.$primevue.config.inputVariant},$fluid:function(){var e;return(e=this.fluid)!==null&&e!==void 0?e:!!this.$pcFluid},hasFluid:function(){return this.$fluid}}},ose=function(e){var t=e.dt;return`
|
|
1271
1271
|
.p-checkbox {
|
|
1272
1272
|
position: relative;
|
|
1273
1273
|
display: inline-flex;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abi-software/simulationvuer",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.4",
|
|
4
4
|
"private": false,
|
|
5
5
|
"scripts": {
|
|
6
6
|
"serve": "vite serve --host --force",
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
20
|
"@abi-software/plotvuer": "1.0.7",
|
|
21
|
-
"@opencor/opencor": "^0.20251205.
|
|
21
|
+
"@opencor/opencor": "^0.20251205.2",
|
|
22
22
|
"element-plus": "2.8.4",
|
|
23
23
|
"jsonschema": "^1.4.0",
|
|
24
24
|
"mathjs": "^15.1.0",
|