@abi-software/simulationvuer 3.0.16 → 3.0.17
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/simulationvuer.js
CHANGED
|
@@ -46452,7 +46452,11 @@ var kS = null, sh = null, ts = null, Un = null, IS = null, mp = null, xX = (e) =
|
|
|
46452
46452
|
}, kX = "OMEX #", Gc = (e) => e.startsWith("http://") || e.startsWith("https://"), Fl = (e) => `https://cors-proxy.opencor.workers.dev/?url=${e}`, TS = (e) => typeof e == "string" ? mp.h64(e).toString(16).padStart(16, "0") : mp.h64Raw(e).toString(16).padStart(16, "0"), IX = (e) => {
|
|
46453
46453
|
let t = Math.floor(e % 1e3), r = Math.floor(e / 1e3 % 60), n = Math.floor(e / (1e3 * 60) % 60), i = Math.floor(e / (1e3 * 60 * 60) % 24), o = Math.floor(e / (1e3 * 60 * 60 * 24) % 24), a = "";
|
|
46454
46454
|
return o && (a = `${o}d`), (i || (n || r || t) && a) && (a += `${a ? " " : ""}${i}h`), (n || (r || t) && a) && (a += `${a ? " " : ""}${n}m`), (r || t && a) && (a += `${a ? " " : ""}${r}s`), (t || !a) && (a += `${a ? " " : ""}${t}ms`), a;
|
|
46455
|
-
}, Ht = (e) => e instanceof Error ? e.message : String(e), Dr = (e, t = !0) => (e = t ? e.charAt(0).toUpperCase() + e.slice(1) : e.charAt(0).toLowerCase() + e.slice(1), e.endsWith("...") ? e : e.endsWith(".") ? t ? e : e.slice(0, -1) : t ? `${e}.` : e), hp = (e, t) =>
|
|
46455
|
+
}, Ht = (e) => e instanceof Error ? e.message : String(e), Dr = (e, t = !0) => (e = t ? e.charAt(0).toUpperCase() + e.slice(1) : e.charAt(0).toLowerCase() + e.slice(1), e.endsWith("...") ? e : e.endsWith(".") ? t ? e : e.slice(0, -1) : t ? `${e}.` : e), hp = (e, t) => {
|
|
46456
|
+
if (!Number.isFinite(e) || !Number.isFinite(t) || t === 0) return !1;
|
|
46457
|
+
let r = e / t, n = Math.round(r);
|
|
46458
|
+
return Math.abs(r - n) <= 2 ** -52 * Math.max(1, Math.abs(n));
|
|
46459
|
+
}, BS = (e, t, r) => {
|
|
46456
46460
|
let n = document.createElement("a"), i = t instanceof Blob ? t : new Blob([t], { type: r }), o = URL.createObjectURL(i);
|
|
46457
46461
|
n.href = o, n.download = e, document.body.appendChild(n), n.click(), document.body.removeChild(n), URL.revokeObjectURL(o);
|
|
46458
46462
|
}, FS = (e) => {
|
|
@@ -46532,7 +46536,7 @@ var kS = null, sh = null, ts = null, Un = null, IS = null, mp = null, xX = (e) =
|
|
|
46532
46536
|
};
|
|
46533
46537
|
}
|
|
46534
46538
|
}), { version: ch } = {
|
|
46535
|
-
version: "0.
|
|
46539
|
+
version: "0.20260416.0"
|
|
46536
46540
|
}, pc = he.ref(!1), Ys = he.ref(""), hw = async () => {
|
|
46537
46541
|
try {
|
|
46538
46542
|
let e = await fetch(`./assets/version.json?t=${Date.now()}`);
|
|
@@ -55839,7 +55843,7 @@ var WS = [
|
|
|
55839
55843
|
], ws = he.ref(0), yoe = (Ve ? 0 : 2) + WS.reduce((e, t) => e + +!!t.url + +!!t.cssUrl, 0) + 1, woe = async () => {
|
|
55840
55844
|
if (window.locApi) cee(window.locApi);
|
|
55841
55845
|
else {
|
|
55842
|
-
let e = "0.
|
|
55846
|
+
let e = "0.20260416.0";
|
|
55843
55847
|
try {
|
|
55844
55848
|
let t = (await import(
|
|
55845
55849
|
/* @vite-ignore */
|
|
@@ -1132,7 +1132,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
1132
1132
|
width: ${this.breakpoints[r]} !important;
|
|
1133
1133
|
}
|
|
1134
1134
|
}
|
|
1135
|
-
`;this.styleElement.innerHTML=t}},destroyStyle:function(){this.styleElement&&(this.styleElement=(document.head.removeChild(this.styleElement),null))},initDrag:function(e){e.target.closest("div").getAttribute("data-pc-section")!=="headeractions"&&this.draggable&&(this.dragging=!0,this.lastPageX=e.pageX,this.lastPageY=e.pageY,this.container.style.margin="0",document.body.setAttribute("data-p-unselectable-text","true"),!this.isUnstyled&&Yo(document.body,{"user-select":"none"}),this.$emit("dragstart",e))},bindGlobalListeners:function(){this.draggable&&(this.bindDocumentDragListener(),this.bindDocumentDragEndListener()),this.closeOnEscape&&this.closable&&this.bindDocumentKeyDownListener()},unbindGlobalListeners:function(){this.unbindDocumentDragListener(),this.unbindDocumentDragEndListener(),this.unbindDocumentKeyDownListener()},bindDocumentDragListener:function(){var e=this;this.documentDragListener=function(t){if(e.dragging){var r=gr(e.container),n=On(e.container),i=t.pageX-e.lastPageX,o=t.pageY-e.lastPageY,s=e.container.getBoundingClientRect(),c=s.left+i,u=s.top+o,l=Es(),d=getComputedStyle(e.container),f=parseFloat(d.marginLeft),p=parseFloat(d.marginTop);e.container.style.position="fixed",e.keepInViewport?(c>=e.minX&&c+r<l.width&&(e.lastPageX=t.pageX,e.container.style.left=c-f+"px"),u>=e.minY&&u+n<l.height&&(e.lastPageY=t.pageY,e.container.style.top=u-p+"px")):(e.lastPageX=t.pageX,e.container.style.left=c-f+"px",e.lastPageY=t.pageY,e.container.style.top=u-p+"px")}},window.document.addEventListener("mousemove",this.documentDragListener)},unbindDocumentDragListener:function(){this.documentDragListener&&(this.documentDragListener=(window.document.removeEventListener("mousemove",this.documentDragListener),null))},bindDocumentDragEndListener:function(){var e=this;this.documentDragEndListener=function(t){e.dragging&&(e.dragging=!1,document.body.removeAttribute("data-p-unselectable-text"),!e.isUnstyled&&(document.body.style["user-select"]=""),e.$emit("dragend",t))},window.document.addEventListener("mouseup",this.documentDragEndListener)},unbindDocumentDragEndListener:function(){this.documentDragEndListener&&(this.documentDragEndListener=(window.document.removeEventListener("mouseup",this.documentDragEndListener),null))}},computed:{maximizeIconComponent:function(){return this.maximized?this.minimizeIcon?"span":"WindowMinimizeIcon":this.maximizeIcon?"span":"WindowMaximizeIcon"},ariaLabelledById:function(){return this.header!=null||this.$attrs["aria-labelledby"]!==null?this.id+"_header":null},closeAriaLabel:function(){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria.close:void 0}},directives:{ripple:kr,focustrap:Vp},components:{Button:wn,Portal:Ia,WindowMinimizeIcon:gC,WindowMaximizeIcon:hC,TimesIcon:Li}};function Qs(e){"@babel/helpers - typeof";return Qs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Qs(e)}function NC(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function kC(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]==null?{}:arguments[t];t%2?NC(Object(r),!0).forEach(function(n){PY(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):NC(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function PY(e,t,r){return(t=LY(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function LY(e){var t=VY(e,"string");return Qs(t)=="symbol"?t:t+""}function VY(e,t){if(Qs(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Qs(n)!="object")return n;throw TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var _Y=["aria-labelledby","aria-modal"],zY=["id"];function UY(e,t,r,n,i,o){var s=a.resolveComponent("Button"),c=a.resolveComponent("Portal"),u=a.resolveDirective("focustrap");return a.openBlock(),a.createBlock(c,{appendTo:e.appendTo},{default:a.withCtx(function(){return[i.containerVisible?(a.openBlock(),a.createElementBlock("div",a.mergeProps({key:0,ref:o.maskRef,class:e.cx("mask"),style:e.sx("mask",!0,{position:e.position,modal:e.modal}),onMousedown:t[1]||(t[1]=function(){return o.onMaskMouseDown&&o.onMaskMouseDown.apply(o,arguments)}),onMouseup:t[2]||(t[2]=function(){return o.onMaskMouseUp&&o.onMaskMouseUp.apply(o,arguments)})},e.ptm("mask")),[a.createVNode(a.Transition,a.mergeProps({name:"p-dialog",onEnter:o.onEnter,onAfterEnter:o.onAfterEnter,onBeforeLeave:o.onBeforeLeave,onLeave:o.onLeave,onAfterLeave:o.onAfterLeave,appear:""},e.ptm("transition")),{default:a.withCtx(function(){return[e.visible?a.withDirectives((a.openBlock(),a.createElementBlock("div",a.mergeProps({key:0,ref:o.containerRef,class:e.cx("root"),style:e.sx("root"),role:"dialog","aria-labelledby":o.ariaLabelledById,"aria-modal":e.modal},e.ptmi("root")),[e.$slots.container?a.renderSlot(e.$slots,"container",{key:0,closeCallback:o.close,maximizeCallback:function(l){return o.maximize(l)}}):(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[e.showHeader?(a.openBlock(),a.createElementBlock("div",a.mergeProps({key:0,ref:o.headerContainerRef,class:e.cx("header"),onMousedown:t[0]||(t[0]=function(){return o.initDrag&&o.initDrag.apply(o,arguments)})},e.ptm("header")),[a.renderSlot(e.$slots,"header",{class:a.normalizeClass(e.cx("title"))},function(){return[e.header?(a.openBlock(),a.createElementBlock("span",a.mergeProps({key:0,id:o.ariaLabelledById,class:e.cx("title")},e.ptm("title")),a.toDisplayString(e.header),17,zY)):a.createCommentVNode("",!0)]}),a.createElementVNode("div",a.mergeProps({class:e.cx("headerActions")},e.ptm("headerActions")),[e.maximizable?(a.openBlock(),a.createBlock(s,a.mergeProps({key:0,ref:o.maximizableRef,autofocus:i.focusableMax,class:e.cx("pcMaximizeButton"),onClick:o.maximize,tabindex:e.maximizable?"0":"-1",unstyled:e.unstyled},e.maximizeButtonProps,{pt:e.ptm("pcMaximizeButton"),"data-pc-group-section":"headericon"}),{icon:a.withCtx(function(l){return[a.renderSlot(e.$slots,"maximizeicon",{maximized:i.maximized},function(){return[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(o.maximizeIconComponent),a.mergeProps({class:[l.class,i.maximized?e.minimizeIcon:e.maximizeIcon]},e.ptm("pcMaximizeButton").icon),null,16,["class"]))]})]}),_:3},16,["autofocus","class","onClick","tabindex","unstyled","pt"])):a.createCommentVNode("",!0),e.closable?(a.openBlock(),a.createBlock(s,a.mergeProps({key:1,ref:o.closeButtonRef,autofocus:i.focusableClose,class:e.cx("pcCloseButton"),onClick:o.close,"aria-label":o.closeAriaLabel,unstyled:e.unstyled},e.closeButtonProps,{pt:e.ptm("pcCloseButton"),"data-pc-group-section":"headericon"}),{icon:a.withCtx(function(l){return[a.renderSlot(e.$slots,"closeicon",{},function(){return[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(e.closeIcon?"span":"TimesIcon"),a.mergeProps({class:[e.closeIcon,l.class]},e.ptm("pcCloseButton").icon),null,16,["class"]))]})]}),_:3},16,["autofocus","class","onClick","aria-label","unstyled","pt"])):a.createCommentVNode("",!0)],16)],16)):a.createCommentVNode("",!0),a.createElementVNode("div",a.mergeProps({ref:o.contentRef,class:[e.cx("content"),e.contentClass],style:e.contentStyle},kC(kC({},e.contentProps),e.ptm("content"))),[a.renderSlot(e.$slots,"default")],16),e.footer||e.$slots.footer?(a.openBlock(),a.createElementBlock("div",a.mergeProps({key:1,ref:o.footerContainerRef,class:e.cx("footer")},e.ptm("footer")),[a.renderSlot(e.$slots,"footer",{},function(){return[a.createTextVNode(a.toDisplayString(e.footer),1)]})],16)):a.createCommentVNode("",!0)],64))],16,_Y)),[[u,{disabled:!e.modal}]]):a.createCommentVNode("",!0)]}),_:3},16,["onEnter","onAfterEnter","onBeforeLeave","onLeave","onAfterLeave"])],16)):a.createCommentVNode("",!0)]}),_:3},8,["appendTo"])}SC.render=UY;var jY=new Uint8Array([0,97,115,109,1,0,0,0,1,48,8,96,3,127,127,127,1,127,96,3,127,127,127,0,96,2,127,127,0,96,1,127,1,127,96,3,127,127,126,1,126,96,3,126,127,127,1,126,96,2,127,126,0,96,1,127,1,126,3,11,10,0,0,2,1,3,4,5,6,1,7,5,3,1,0,1,7,85,9,3,109,101,109,2,0,5,120,120,104,51,50,0,0,6,105,110,105,116,51,50,0,2,8,117,112,100,97,116,101,51,50,0,3,8,100,105,103,101,115,116,51,50,0,4,5,120,120,104,54,52,0,5,6,105,110,105,116,54,52,0,7,8,117,112,100,97,116,101,54,52,0,8,8,100,105,103,101,115,116,54,52,0,9,10,251,22,10,242,1,1,4,127,32,0,32,1,106,33,3,32,1,65,16,79,4,127,32,3,65,16,107,33,6,32,2,65,168,136,141,161,2,106,33,3,32,2,65,137,235,208,208,7,107,33,4,32,2,65,207,140,162,142,6,106,33,5,3,64,32,3,32,0,40,2,0,65,247,148,175,175,120,108,106,65,13,119,65,177,243,221,241,121,108,33,3,32,4,32,0,65,4,106,34,0,40,2,0,65,247,148,175,175,120,108,106,65,13,119,65,177,243,221,241,121,108,33,4,32,2,32,0,65,4,106,34,0,40,2,0,65,247,148,175,175,120,108,106,65,13,119,65,177,243,221,241,121,108,33,2,32,5,32,0,65,4,106,34,0,40,2,0,65,247,148,175,175,120,108,106,65,13,119,65,177,243,221,241,121,108,33,5,32,6,32,0,65,4,106,34,0,79,13,0,11,32,2,65,12,119,32,5,65,18,119,106,32,4,65,7,119,106,32,3,65,1,119,106,5,32,2,65,177,207,217,178,1,106,11,32,1,106,32,0,32,1,65,15,113,16,1,11,146,1,0,32,1,32,2,106,33,2,3,64,32,1,65,4,106,32,2,75,69,4,64,32,0,32,1,40,2,0,65,189,220,202,149,124,108,106,65,17,119,65,175,214,211,190,2,108,33,0,32,1,65,4,106,33,1,12,1,11,11,3,64,32,1,32,2,79,69,4,64,32,0,32,1,45,0,0,65,177,207,217,178,1,108,106,65,11,119,65,177,243,221,241,121,108,33,0,32,1,65,1,106,33,1,12,1,11,11,32,0,32,0,65,15,118,115,65,247,148,175,175,120,108,34,0,65,13,118,32,0,115,65,189,220,202,149,124,108,34,0,65,16,118,32,0,115,11,63,0,32,0,65,8,106,32,1,65,168,136,141,161,2,106,54,2,0,32,0,65,12,106,32,1,65,137,235,208,208,7,107,54,2,0,32,0,65,16,106,32,1,54,2,0,32,0,65,20,106,32,1,65,207,140,162,142,6,106,54,2,0,11,195,4,1,6,127,32,1,32,2,106,33,6,32,0,65,24,106,33,4,32,0,65,40,106,40,2,0,33,3,32,0,32,0,40,2,0,32,2,106,54,2,0,32,0,65,4,106,34,5,32,5,40,2,0,32,2,65,16,79,32,0,40,2,0,65,16,79,114,114,54,2,0,32,2,32,3,106,65,16,73,4,64,32,3,32,4,106,32,1,32,2,252,10,0,0,32,0,65,40,106,32,2,32,3,106,54,2,0,15,11,32,3,4,64,32,3,32,4,106,32,1,65,16,32,3,107,34,2,252,10,0,0,32,0,65,8,106,34,3,32,3,40,2,0,32,4,40,2,0,65,247,148,175,175,120,108,106,65,13,119,65,177,243,221,241,121,108,54,2,0,32,0,65,12,106,34,3,32,3,40,2,0,32,4,65,4,106,40,2,0,65,247,148,175,175,120,108,106,65,13,119,65,177,243,221,241,121,108,54,2,0,32,0,65,16,106,34,3,32,3,40,2,0,32,4,65,8,106,40,2,0,65,247,148,175,175,120,108,106,65,13,119,65,177,243,221,241,121,108,54,2,0,32,0,65,20,106,34,3,32,3,40,2,0,32,4,65,12,106,40,2,0,65,247,148,175,175,120,108,106,65,13,119,65,177,243,221,241,121,108,54,2,0,32,0,65,40,106,65,0,54,2,0,32,1,32,2,106,33,1,11,32,1,32,6,65,16,107,77,4,64,32,6,65,16,107,33,8,32,0,65,8,106,40,2,0,33,2,32,0,65,12,106,40,2,0,33,3,32,0,65,16,106,40,2,0,33,5,32,0,65,20,106,40,2,0,33,7,3,64,32,2,32,1,40,2,0,65,247,148,175,175,120,108,106,65,13,119,65,177,243,221,241,121,108,33,2,32,3,32,1,65,4,106,34,1,40,2,0,65,247,148,175,175,120,108,106,65,13,119,65,177,243,221,241,121,108,33,3,32,5,32,1,65,4,106,34,1,40,2,0,65,247,148,175,175,120,108,106,65,13,119,65,177,243,221,241,121,108,33,5,32,7,32,1,65,4,106,34,1,40,2,0,65,247,148,175,175,120,108,106,65,13,119,65,177,243,221,241,121,108,33,7,32,8,32,1,65,4,106,34,1,79,13,0,11,32,0,65,8,106,32,2,54,2,0,32,0,65,12,106,32,3,54,2,0,32,0,65,16,106,32,5,54,2,0,32,0,65,20,106,32,7,54,2,0,11,32,1,32,6,73,4,64,32,4,32,1,32,6,32,1,107,34,1,252,10,0,0,32,0,65,40,106,32,1,54,2,0,11,11,97,1,1,127,32,0,65,16,106,40,2,0,33,1,32,0,65,4,106,40,2,0,4,127,32,1,65,12,119,32,0,65,20,106,40,2,0,65,18,119,106,32,0,65,12,106,40,2,0,65,7,119,106,32,0,65,8,106,40,2,0,65,1,119,106,5,32,1,65,177,207,217,178,1,106,11,32,0,40,2,0,106,32,0,65,24,106,32,0,65,40,106,40,2,0,16,1,11,255,3,2,3,126,1,127,32,0,32,1,106,33,6,32,1,65,32,79,4,126,32,6,65,32,107,33,6,32,2,66,214,235,130,238,234,253,137,245,224,0,124,33,3,32,2,66,177,169,172,193,173,184,212,166,61,125,33,4,32,2,66,249,234,208,208,231,201,161,228,225,0,124,33,5,3,64,32,3,32,0,41,3,0,66,207,214,211,190,210,199,171,217,66,126,124,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,33,3,32,4,32,0,65,8,106,34,0,41,3,0,66,207,214,211,190,210,199,171,217,66,126,124,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,33,4,32,2,32,0,65,8,106,34,0,41,3,0,66,207,214,211,190,210,199,171,217,66,126,124,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,33,2,32,5,32,0,65,8,106,34,0,41,3,0,66,207,214,211,190,210,199,171,217,66,126,124,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,33,5,32,6,32,0,65,8,106,34,0,79,13,0,11,32,2,66,12,137,32,5,66,18,137,124,32,4,66,7,137,124,32,3,66,1,137,124,32,3,66,207,214,211,190,210,199,171,217,66,126,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,133,66,135,149,175,175,152,182,222,155,158,127,126,66,157,163,181,234,131,177,141,138,250,0,125,32,4,66,207,214,211,190,210,199,171,217,66,126,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,133,66,135,149,175,175,152,182,222,155,158,127,126,66,157,163,181,234,131,177,141,138,250,0,125,32,2,66,207,214,211,190,210,199,171,217,66,126,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,133,66,135,149,175,175,152,182,222,155,158,127,126,66,157,163,181,234,131,177,141,138,250,0,125,32,5,66,207,214,211,190,210,199,171,217,66,126,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,133,66,135,149,175,175,152,182,222,155,158,127,126,66,157,163,181,234,131,177,141,138,250,0,125,5,32,2,66,197,207,217,178,241,229,186,234,39,124,11,32,1,173,124,32,0,32,1,65,31,113,16,6,11,134,2,0,32,1,32,2,106,33,2,3,64,32,2,32,1,65,8,106,79,4,64,32,1,41,3,0,66,207,214,211,190,210,199,171,217,66,126,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,32,0,133,66,27,137,66,135,149,175,175,152,182,222,155,158,127,126,66,157,163,181,234,131,177,141,138,250,0,125,33,0,32,1,65,8,106,33,1,12,1,11,11,32,1,65,4,106,32,2,77,4,64,32,0,32,1,53,2,0,66,135,149,175,175,152,182,222,155,158,127,126,133,66,23,137,66,207,214,211,190,210,199,171,217,66,126,66,249,243,221,241,153,246,153,171,22,124,33,0,32,1,65,4,106,33,1,11,3,64,32,1,32,2,73,4,64,32,0,32,1,49,0,0,66,197,207,217,178,241,229,186,234,39,126,133,66,11,137,66,135,149,175,175,152,182,222,155,158,127,126,33,0,32,1,65,1,106,33,1,12,1,11,11,32,0,32,0,66,33,136,133,66,207,214,211,190,210,199,171,217,66,126,34,0,32,0,66,29,136,133,66,249,243,221,241,153,246,153,171,22,126,34,0,32,0,66,32,136,133,11,77,0,32,0,65,8,106,32,1,66,214,235,130,238,234,253,137,245,224,0,124,55,3,0,32,0,65,16,106,32,1,66,177,169,172,193,173,184,212,166,61,125,55,3,0,32,0,65,24,106,32,1,55,3,0,32,0,65,32,106,32,1,66,249,234,208,208,231,201,161,228,225,0,124,55,3,0,11,244,4,2,3,127,4,126,32,1,32,2,106,33,5,32,0,65,40,106,33,4,32,0,65,200,0,106,40,2,0,33,3,32,0,32,0,41,3,0,32,2,173,124,55,3,0,32,2,32,3,106,65,32,73,4,64,32,3,32,4,106,32,1,32,2,252,10,0,0,32,0,65,200,0,106,32,2,32,3,106,54,2,0,15,11,32,3,4,64,32,3,32,4,106,32,1,65,32,32,3,107,34,2,252,10,0,0,32,0,65,8,106,34,3,32,3,41,3,0,32,4,41,3,0,66,207,214,211,190,210,199,171,217,66,126,124,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,55,3,0,32,0,65,16,106,34,3,32,3,41,3,0,32,4,65,8,106,41,3,0,66,207,214,211,190,210,199,171,217,66,126,124,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,55,3,0,32,0,65,24,106,34,3,32,3,41,3,0,32,4,65,16,106,41,3,0,66,207,214,211,190,210,199,171,217,66,126,124,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,55,3,0,32,0,65,32,106,34,3,32,3,41,3,0,32,4,65,24,106,41,3,0,66,207,214,211,190,210,199,171,217,66,126,124,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,55,3,0,32,0,65,200,0,106,65,0,54,2,0,32,1,32,2,106,33,1,11,32,1,65,32,106,32,5,77,4,64,32,5,65,32,107,33,2,32,0,65,8,106,41,3,0,33,6,32,0,65,16,106,41,3,0,33,7,32,0,65,24,106,41,3,0,33,8,32,0,65,32,106,41,3,0,33,9,3,64,32,6,32,1,41,3,0,66,207,214,211,190,210,199,171,217,66,126,124,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,33,6,32,7,32,1,65,8,106,34,1,41,3,0,66,207,214,211,190,210,199,171,217,66,126,124,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,33,7,32,8,32,1,65,8,106,34,1,41,3,0,66,207,214,211,190,210,199,171,217,66,126,124,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,33,8,32,9,32,1,65,8,106,34,1,41,3,0,66,207,214,211,190,210,199,171,217,66,126,124,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,33,9,32,2,32,1,65,8,106,34,1,79,13,0,11,32,0,65,8,106,32,6,55,3,0,32,0,65,16,106,32,7,55,3,0,32,0,65,24,106,32,8,55,3,0,32,0,65,32,106,32,9,55,3,0,11,32,1,32,5,73,4,64,32,4,32,1,32,5,32,1,107,34,1,252,10,0,0,32,0,65,200,0,106,32,1,54,2,0,11,11,188,2,1,5,126,32,0,65,24,106,41,3,0,33,1,32,0,41,3,0,34,2,66,32,90,4,126,32,0,65,8,106,41,3,0,34,3,66,1,137,32,0,65,16,106,41,3,0,34,4,66,7,137,124,32,1,66,12,137,32,0,65,32,106,41,3,0,34,5,66,18,137,124,124,32,3,66,207,214,211,190,210,199,171,217,66,126,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,133,66,135,149,175,175,152,182,222,155,158,127,126,66,157,163,181,234,131,177,141,138,250,0,125,32,4,66,207,214,211,190,210,199,171,217,66,126,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,133,66,135,149,175,175,152,182,222,155,158,127,126,66,157,163,181,234,131,177,141,138,250,0,125,32,1,66,207,214,211,190,210,199,171,217,66,126,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,133,66,135,149,175,175,152,182,222,155,158,127,126,66,157,163,181,234,131,177,141,138,250,0,125,32,5,66,207,214,211,190,210,199,171,217,66,126,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,133,66,135,149,175,175,152,182,222,155,158,127,126,66,157,163,181,234,131,177,141,138,250,0,125,5,32,1,66,197,207,217,178,241,229,186,234,39,124,11,32,2,124,32,0,65,40,106,32,2,66,31,131,167,16,6,11]);async function QY(){return function(e){let{exports:{mem:t,xxh32:r,xxh64:n,init32:i,update32:o,digest32:s,init64:c,update64:u,digest64:l}}=e,d=new Uint8Array(t.buffer);function f(C,y){if(t.buffer.byteLength<C+y){let x=Math.ceil((C+y-t.buffer.byteLength)/65536);t.grow(x),d=new Uint8Array(t.buffer)}}function p(C,y,x,E,N,k){f(C);let B=new Uint8Array(C);return d.set(B),x(0,y),B.set(d.subarray(0,C)),{update(M){let A;return d.set(B),typeof M=="string"?(f(3*M.length,C),A=b.encodeInto(M,d.subarray(C)).written):(f(M.byteLength,C),d.set(M,C),A=M.byteLength),E(0,C,A),B.set(d.subarray(0,C)),this},digest:()=>(d.set(B),k(N(0)))}}function m(C){return C>>>0}let h=2n**64n-1n;function g(C){return C&h}let b=new TextEncoder,v=0n;function S(C,y=0){return f(3*C.length,0),m(r(0,b.encodeInto(C,d).written,y))}function w(C,y=v){return f(3*C.length,0),g(n(0,b.encodeInto(C,d).written,y))}return{h32:S,h32ToString:(C,y=0)=>S(C,y).toString(16).padStart(8,"0"),h32Raw:(C,y=0)=>(f(C.byteLength,0),d.set(C),m(r(0,C.byteLength,y))),create32:(C=0)=>p(48,C,i,o,s,m),h64:w,h64ToString:(C,y=v)=>w(C,y).toString(16).padStart(16,"0"),h64Raw:(C,y=v)=>(f(C.byteLength,0),d.set(C),g(n(0,C.byteLength,y))),create64:(C=v)=>p(88,C,c,u,l,g)}}((await WebAssembly.instantiate(jY)).instance)}var EC=null,_p=null,_i=null,xn=null,BC=null,zp=null,qY=e=>{EC=e},WY=e=>{_p=e},HY=e=>{_i=e},ZY=e=>{xn=e},GY=e=>{BC=e},KY=QY().then(e=>(zp=e,e)),Ae=window.electronApi,qs=null,kc=()=>{if(qs)return qs;try{let e=window.navigator.userAgent;qs=/Android/i.test(e)?"Android":/iPhone|iPad|iPod/i.test(e)?"iOS":/Windows/i.test(e)?"Windows":/Linux/i.test(e)?"Linux":/Mac/i.test(e)?"macOS":"Unknown"}catch{qs="Unknown"}return qs},JY=()=>kc()==="Windows",YY=()=>kc()==="Linux",Up=()=>kc()==="macOS",jp=()=>{let e=kc();return e==="Windows"||e==="Linux"||e==="macOS"},Qp=e=>Up()?e.metaKey:e.ctrlKey,DC=e=>{Ae==null||Ae.enableDisableMainMenu(e)},XY="OMEX #",Ec=e=>e.startsWith("http://")||e.startsWith("https://"),Ws=e=>`https://cors-proxy.opencor.workers.dev/?url=${e}`,MC=e=>typeof e=="string"?zp.h64(e).toString(16).padStart(16,"0"):zp.h64Raw(e).toString(16).padStart(16,"0"),$Y=e=>{let t=Math.floor(e%1e3),r=Math.floor(e/1e3%60),n=Math.floor(e/(1e3*60)%60),i=Math.floor(e/(1e3*60*60)%24),o=Math.floor(e/(1e3*60*60*24)%24),s="";return o&&(s=`${o}d`),(i||(n||r||t)&&s)&&(s+=`${s?" ":""}${i}h`),(n||(r||t)&&s)&&(s+=`${s?" ":""}${n}m`),(r||t&&s)&&(s+=`${s?" ":""}${r}s`),(t||!s)&&(s+=`${s?" ":""}${t}ms`),s},Bt=e=>e instanceof Error?e.message:String(e),rr=(e,t=!0)=>(e=t?e.charAt(0).toUpperCase()+e.slice(1):e.charAt(0).toLowerCase()+e.slice(1),e.endsWith("...")?e:e.endsWith(".")?t?e:e.slice(0,-1):t?`${e}.`:e),qp=(e,t)=>Number.isInteger(e/t),AC=(e,t,r)=>{let n=document.createElement("a"),i=t instanceof Blob?t:new Blob([t],{type:r}),o=URL.createObjectURL(i);n.href=o,n.download=e,document.body.appendChild(n),n.click(),document.body.removeChild(n),URL.revokeObjectURL(o)},TC=e=>{let t=e.split(/(\\|\/)/g).pop()||"";try{return decodeURIComponent(t)}catch(r){return console.warn("OpenCOR: failed to decode the file path:",t,Bt(r)),t}},Bc=e=>new Promise(t=>{setTimeout(t,e)}),eX=()=>new Promise(e=>{requestAnimationFrame(e)}),tX=Object.freeze(new Float64Array),IC=Object.freeze({data:tX,unit:""}),Hs=e=>{let t={};for(let r of e)t[r]={...IC};return t},FC=Symbol("DialogState"),rX=()=>{let e=se.ref(0),t={activeDialogs:e,isDialogActive:se.computed(()=>e.value>0),incrementDialogs:()=>{++e.value},decrementDialogs:()=>{--e.value}};return se.provide(FC,t),t},nX=()=>{let e=se.inject(FC);if(!e)throw Error("useDialogState() must be called within a component that has provideDialogState in its ancestor tree.");return e},$o=a.defineComponent({__name:"BaseDialog",emits:["cancel"],setup(e,{emit:t}){let r=t,{incrementDialogs:n,decrementDialogs:i}=nX(),o=null,s=null,c=null,u=()=>{if(o instanceof HTMLElement&&s instanceof HTMLElement){let f=o.getBoundingClientRect(),p=s.getBoundingClientRect();o.style.top=`${Math.max(Math.min(f.top,p.bottom-f.height),p.top)}px`,o.style.left=`${Math.max(Math.min(f.left,p.right-f.width),p.left)}px`}},l=()=>{n(),DC(!1),se.nextTick(()=>{o=document.querySelector(".p-dialog"),s=o==null?void 0:o.closest('[data-pc-section="mask"]'),o&&s&&(c=new MutationObserver(()=>{u()}),c.observe(o,{attributes:!0,attributeFilter:["style"]}),u())})},d=()=>{i(),DC(!0),r("cancel"),se.nextTick(()=>{c&&(c=(c.disconnect(),null))})};return(f,p)=>{let m=SC;return a.openBlock(),a.createBlock(m,{modal:!0,appendTo:"self","pt:mask:style":{position:"absolute"},"pt:content":{class:"h-full",style:"padding-bottom: 0"},"pt:footer":{style:"padding-top: 1.25rem"},onShow:l,onHide:d},a.createSlots({_:2},[a.renderList(f.$slots,(h,g)=>({name:g,fn:a.withCtx(b=>[a.renderSlot(f.$slots,g,a.normalizeProps(a.guardReactiveProps(b)))])}))]),1024)}}}),{version:Wp}={version:"0.20260410.0"},Dc=se.ref(!1),Zs=se.ref(""),OC=async()=>{try{let e=await fetch(`./assets/version.json?t=${Date.now()}`);if(!e.ok)return console.warn("OpenCOR: failed to fetch the version information."),Dc.value=!1,Zs.value="",!1;Zs.value=(await e.json()).version;let t=oX(Zs.value,Wp);return Dc.value=t,t}catch{return Dc.value=!1,Zs.value="",!1}},oX=(e,t)=>{let r=e.split(".").map(Number),n=t.split(".").map(Number);for(let i=0;i<Math.max(r.length,n.length);++i){let o=r[i]||0,s=n[i]||0;if(o>s)return!0;if(o<s)return!1}return!1},aX=null,iX=()=>{OC(),aX||(aX=window.setInterval(()=>{OC()},300*1e3))},Gs=e=>(a.pushScopeId("data-v-c05d59eb"),e=e(),a.popScopeId(),e),sX={class:"space-y-7"},lX={class:"text-center"},uX={class:"text-3xl font-bold"},cX={class:"highlight highlight-version"},dX={class:"space-y-2"},fX={class:"text-center"},pX=Gs(()=>a.createElementVNode("span",{class:"text-lg"},[a.createTextVNode("Feel free to "),a.createElementVNode("strong",null,"force reload"),a.createTextVNode(" OpenCOR whenever you are ready.")],-1)),mX=Gs(()=>a.createElementVNode("br",null,null,-1)),hX={key:0,class:"highlight"},gX={key:1},vX=Gs(()=>a.createElementVNode("span",{class:"highlight"},"Ctrl",-1)),bX=Gs(()=>a.createElementVNode("span",{class:"highlight"},"Shift",-1)),yX=Gs(()=>a.createElementVNode("span",{class:"highlight"},"R",-1)),wX=a.defineComponent({__name:"UpdateAvailableDialog",emits:["close"],setup(e){return(t,r)=>{let n=wn,i=$o;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",sX,[a.createElementVNode("div",lX,[a.createElementVNode("div",uX,[a.createTextVNode("OpenCOR "),a.createElementVNode("span",cX,a.toDisplayString(a.unref(Zs)),1),a.createTextVNode(" is available!")])]),a.createElementVNode("div",dX,[a.createElementVNode("div",fX,[pX,mX,a.createElementVNode("em",null,[a.createTextVNode("(You can force reload by pressing "),Up()?(a.openBlock(),a.createElementBlock("span",hX,"⇧⌘R")):(a.openBlock(),a.createElementBlock("span",gX,[vX,a.createTextVNode("+"),bX,a.createTextVNode("+"),yX])),a.createTextVNode(".)")])])])])]),_:1})}}}),no=(e,t)=>{let r=e.__vccOpts||e;for(let[n,i]of t)r[n]=i;return r},xX=no(wX,[["__scopeId","data-v-c05d59eb"]]),RC="opencor://",Bo=3e3,PC=new Date().getFullYear(),LC=PC===2025?"2025":`2025-${PC}`,qe=function(e){return e[e.ERROR=0]="ERROR",e[e.WARNING=1]="WARNING",e[e.INFORMATION=2]="INFORMATION",e}({}),Hp=e=>{let t=[];for(let r=0;r<e.size();++r){let n=e.get(r);t.push({type:n.type.value,description:n.description})}return t},VC=(Qn=class{constructor(){Vt(this,"_fileManager",null)}static instance(){return Qn._instance??(Qn._instance=new Qn),Qn._instance}fileManager(){return this._fileManager??(this._fileManager=Ui.FileManager.instance()),this._fileManager}file(t){if(it()){let n=at.fileContents(t);return n?new zi(t,n):null}let r=this.fileManager().files;for(let n=0;n<r.size();++n){let i=r.get(n);if(i.path===t)return new zi(t,i.contents())}return null}unmanage(t){if(it())at.fileManagerUnmanage(t);else{let r=this.fileManager(),n=r.files;for(let i=0;i<n.size();++i){let o=n.get(i);if(o.path===t){r.unmanage(o);break}}}}},Vt(Qn,"_instance",null),Qn).instance(),Fa=function(e){return 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}({}),zi=class{constructor(e,t=void 0){Vt(this,"_path");Vt(this,"_wasmFile",{});Vt(this,"_issues",[]);if(this._path=e,it())at.fileCreate(e,t),this._issues=at.fileIssues(e);else if(t)this._wasmFile=se.markRaw(new Ui.File(e)),this._wasmFile.setContents(t),this._issues=Hp(this._wasmFile.issues);else{console.warn(`OpenCOR: no contents provided for file '${e}'.`);return}}type(){return it()?at.fileType(this._path):this._wasmFile.type.value}path(){return this._path}issues(){return this._issues}contents(){return it()?at.fileContents(this._path):this._wasmFile.contents()}document(){return new CX(this._path,this._wasmFile)}uiJson(){let e;if(it()){if(e=at.fileUiJson(this._path),!e)return}else{let n=this._wasmFile.childFileFromFileName("simulation.json");if(!n)return;e=n.contents()}let t=new TextDecoder,r;try{r=JSON.parse(t.decode(e))}catch{console.warn(`OpenCOR: unable to parse the UI JSON for file '${this._path}'.`);return}if(!r||typeof r!="object"||Array.isArray(r)){console.warn(`OpenCOR: the UI JSON for file '${this._path}' has an unexpected structure.`);return}return _C(r)}},Mc=class{constructor(e){Vt(this,"_index");this._index=e}},CX=class{constructor(e,t){Vt(this,"_cppDocumentId",-1);Vt(this,"_wasmSedDocument",{});Vt(this,"_issues",[]);if(it()?this._cppDocumentId=at.sedDocumentCreate(e):this._wasmSedDocument=new Ui.SedDocument(t),this._issues=it()?at.sedDocumentIssues(this._cppDocumentId):Hp(this._wasmSedDocument.issues),this.modelCount()!==1){this._issues.push({type:qe.WARNING,description:"Only SED-ML files with one model are currently supported."});return}if(this.simulationCount()!==1){this._issues.push({type:qe.WARNING,description:"Only SED-ML files with one simulation are currently supported."});return}let r=this.simulation(0);if(r.type()!==ea.UNIFORM_TIME_COURSE){this._issues.push({type:qe.WARNING,description:"Only uniform time course simulations are currently supported."});return}let n=r.initialTime(),i=r.outputStartTime(),o=r.outputEndTime(),s=r.numberOfSteps();n!==i&&this._issues.push({type:qe.WARNING,description:`Only uniform time course simulations with the same values for 'initialTime' (${n}) and 'outputStartTime' (${i}) are currently supported.`}),i===o&&this._issues.push({type:qe.ERROR,description:`The uniform time course simulation must have different values for 'outputStartTime' (${i}) and 'outputEndTime' (${o}).`}),s<=0&&this._issues.push({type:qe.ERROR,description:`The uniform time course simulation must have a positive value for 'numberOfSteps' (${s}).`})}issues(){return this._issues}modelCount(){return it()?at.sedDocumentModelCount(this._cppDocumentId):this._wasmSedDocument.modelCount}model(e){return new SX(this._cppDocumentId,this._wasmSedDocument,e)}simulationCount(){return it()?at.sedDocumentSimulationCount(this._cppDocumentId):this._wasmSedDocument.simulationCount}simulation(e){let t;if(it())t=at.sedDocumentSimulationType(this._cppDocumentId,e);else switch(this._wasmSedDocument.simulation(e).constructor.name){case"SedAnalysis":t=ea.ANALYSIS;break;case"SedSteadyState":t=ea.STEADY_STATE;break;case"SedOneStep":t=ea.ONE_STEP;break;default:t=ea.UNIFORM_TIME_COURSE}return t===ea.ANALYSIS?new NX(this._cppDocumentId,this._wasmSedDocument,e,t):t===ea.STEADY_STATE?new kX(this._cppDocumentId,this._wasmSedDocument,e,t):t===ea.ONE_STEP?new EX(this._cppDocumentId,this._wasmSedDocument,e,t):new BX(this._cppDocumentId,this._wasmSedDocument,e,t)}instantiate(){return new MX(this._cppDocumentId,this._wasmSedDocument)}serialise(){return it()?at.sedDocumentSerialise(this._cppDocumentId):this._wasmSedDocument.serialise()}},SX=class extends Mc{constructor(t,r,n){super(n);Vt(this,"_cppDocumentId");Vt(this,"_wasmSedModel",{});this._cppDocumentId=t,Js()&&(this._wasmSedModel=r.model(n))}file(){return VC.file(it()?at.sedModelFilePath(this._cppDocumentId,this._index):this._wasmSedModel.file.path)}addChange(t,r,n){it()?at.sedModelAddChange(this._cppDocumentId,this._index,t,r,n):this._wasmSedModel.addChange(new Ui.SedChangeAttribute(t,r,n))}removeAllChanges(){it()?at.sedModelRemoveAllChanges(this._cppDocumentId,this._index):this._wasmSedModel.removeAllChanges()}},ea=function(e){return e[e.ANALYSIS=0]="ANALYSIS",e[e.STEADY_STATE=1]="STEADY_STATE",e[e.ONE_STEP=2]="ONE_STEP",e[e.UNIFORM_TIME_COURSE=3]="UNIFORM_TIME_COURSE",e}({}),Ac=class extends Mc{constructor(t,r,n,i){super(n);Vt(this,"_cppDocumentId");Vt(this,"_type");this._cppDocumentId=t,this._type=i}type(){return this._type}},NX=class extends Ac{},kX=class extends Ac{},EX=class extends Ac{constructor(t,r,n,i){super(t,r,n,i);Vt(this,"_wasmSedOneStep",{});Js()&&(this._wasmSedOneStep=r.simulation(n))}step(){return it()?at.sedOneStepStep(this._cppDocumentId,this._index):this._wasmSedOneStep.step}},BX=class extends Ac{constructor(t,r,n,i){super(t,r,n,i);Vt(this,"_wasmSedUniformTimeCourse",{});Js()&&(this._wasmSedUniformTimeCourse=r.simulation(n))}initialTime(){return it()?at.sedUniformTimeCourseInitialTime(this._cppDocumentId,this._index):this._wasmSedUniformTimeCourse.initialTime}setInitialTime(t){it()?at.sedUniformTimeCourseSetInitialTime(this._cppDocumentId,this._index,t):this._wasmSedUniformTimeCourse.initialTime=t}outputStartTime(){return it()?at.sedUniformTimeCourseOutputStartTime(this._cppDocumentId,this._index):this._wasmSedUniformTimeCourse.outputStartTime}setOutputStartTime(t){it()?at.sedUniformTimeCourseSetOutputStartTime(this._cppDocumentId,this._index,t):this._wasmSedUniformTimeCourse.outputStartTime=t}outputEndTime(){return it()?at.sedUniformTimeCourseOutputEndTime(this._cppDocumentId,this._index):this._wasmSedUniformTimeCourse.outputEndTime}setOutputEndTime(t){it()?at.sedUniformTimeCourseSetOutputEndTime(this._cppDocumentId,this._index,t):this._wasmSedUniformTimeCourse.outputEndTime=t}numberOfSteps(){return it()?at.sedUniformTimeCourseNumberOfSteps(this._cppDocumentId,this._index):this._wasmSedUniformTimeCourse.numberOfSteps}setNumberOfSteps(t){it()?at.sedUniformTimeCourseSetNumberOfSteps(this._cppDocumentId,this._index,t):this._wasmSedUniformTimeCourse.numberOfSteps=t}cvode(){return new DX(this._cppDocumentId,this._wasmSedUniformTimeCourse,this._index)}},DX=class extends Mc{constructor(t,r,n){super(n);Vt(this,"_cppDocumentId");Vt(this,"_wasmSolverCvode",{});this._cppDocumentId=t,Js()&&(this._wasmSolverCvode=r.odeSolver)}maximumStep(){return it()?at.solverCvodeMaximumStep(this._cppDocumentId,this._index):this._wasmSolverCvode.maximumStep}setMaximumStep(t){it()?at.solverCvodeSetMaximumStep(this._cppDocumentId,this._index,t):this._wasmSolverCvode.maximumStep=t}},MX=class{constructor(e,t){Vt(this,"_cppInstanceId",-1);Vt(this,"_wasmSedInstance",{});it()?this._cppInstanceId=at.sedDocumentInstantiate(e):this._wasmSedInstance=se.markRaw(t.instantiate())}hasIssues(){return it()?at.sedInstanceHasIssues(this._cppInstanceId):this._wasmSedInstance.hasIssues}issues(){return it()?at.sedInstanceIssues(this._cppInstanceId):Hp(this._wasmSedInstance.issues)}task(e){return new AX(this._cppInstanceId,e,this._wasmSedInstance)}run(){return it()?at.sedInstanceRun(this._cppInstanceId):this._wasmSedInstance.run()}},AX=class extends Mc{constructor(t,r,n){super(r);Vt(this,"_cppInstanceId");Vt(this,"_wasmSedInstanceTask",{});this._cppInstanceId=t,Js()&&(this._wasmSedInstanceTask=n.task(r))}voiName(){return it()?at.sedInstanceTaskVoiName(this._cppInstanceId,this._index):this._wasmSedInstanceTask.voiName}voiUnit(){return it()?at.sedInstanceTaskVoiUnit(this._cppInstanceId,this._index):this._wasmSedInstanceTask.voiUnit}voi(){return it()?at.sedInstanceTaskVoi(this._cppInstanceId,this._index):this._wasmSedInstanceTask.voiAsArray}stateCount(){return it()?at.sedInstanceTaskStateCount(this._cppInstanceId,this._index):this._wasmSedInstanceTask.stateCount}stateName(t){return it()?at.sedInstanceTaskStateName(this._cppInstanceId,this._index,t):this._wasmSedInstanceTask.stateName(t)}stateUnit(t){return it()?at.sedInstanceTaskStateUnit(this._cppInstanceId,this._index,t):this._wasmSedInstanceTask.stateUnit(t)}state(t){return it()?at.sedInstanceTaskState(this._cppInstanceId,this._index,t):this._wasmSedInstanceTask.stateAsArray(t)}rateCount(){return it()?at.sedInstanceTaskRateCount(this._cppInstanceId,this._index):this._wasmSedInstanceTask.rateCount}rateName(t){return it()?at.sedInstanceTaskRateName(this._cppInstanceId,this._index,t):this._wasmSedInstanceTask.rateName(t)}rateUnit(t){return it()?at.sedInstanceTaskRateUnit(this._cppInstanceId,this._index,t):this._wasmSedInstanceTask.rateUnit(t)}rate(t){return it()?at.sedInstanceTaskRate(this._cppInstanceId,this._index,t):this._wasmSedInstanceTask.rateAsArray(t)}constantCount(){return it()?at.sedInstanceTaskConstantCount(this._cppInstanceId,this._index):this._wasmSedInstanceTask.constantCount}constantName(t){return it()?at.sedInstanceTaskConstantName(this._cppInstanceId,this._index,t):this._wasmSedInstanceTask.constantName(t)}constantUnit(t){return it()?at.sedInstanceTaskConstantUnit(this._cppInstanceId,this._index,t):this._wasmSedInstanceTask.constantUnit(t)}constant(t){return it()?at.sedInstanceTaskConstant(this._cppInstanceId,this._index,t):this._wasmSedInstanceTask.constantAsArray(t)}computedConstantCount(){return it()?at.sedInstanceTaskComputedConstantCount(this._cppInstanceId,this._index):this._wasmSedInstanceTask.computedConstantCount}computedConstantName(t){return it()?at.sedInstanceTaskComputedConstantName(this._cppInstanceId,this._index,t):this._wasmSedInstanceTask.computedConstantName(t)}computedConstantUnit(t){return it()?at.sedInstanceTaskComputedConstantUnit(this._cppInstanceId,this._index,t):this._wasmSedInstanceTask.computedConstantUnit(t)}computedConstant(t){return it()?at.sedInstanceTaskComputedConstant(this._cppInstanceId,this._index,t):this._wasmSedInstanceTask.computedConstantAsArray(t)}algebraicVariableCount(){return it()?at.sedInstanceTaskAlgebraicVariableCount(this._cppInstanceId,this._index):this._wasmSedInstanceTask.algebraicVariableCount}algebraicVariableName(t){return it()?at.sedInstanceTaskAlgebraicVariableName(this._cppInstanceId,this._index,t):this._wasmSedInstanceTask.algebraicVariableName(t)}algebraicVariableUnit(t){return it()?at.sedInstanceTaskAlgebraicVariableUnit(this._cppInstanceId,this._index,t):this._wasmSedInstanceTask.algebraicVariableUnit(t)}algebraicVariable(t){return it()?at.sedInstanceTaskAlgebraicVariable(this._cppInstanceId,this._index,t):this._wasmSedInstanceTask.algebraicVariableAsArray(t)}},Ks=e=>"maximumValue"in e&&"minimumValue"in e,Oa=e=>"possibleValues"in e,Zp=(e,t)=>t instanceof Float64Array?Array.from(t):t,_C=e=>{for(let t of e.output.externalData??[]){t.voiValues instanceof Float64Array||(t.voiValues=new Float64Array(t.voiValues));for(let r of t.dataSeries)r.values instanceof Float64Array||(r.values=new Float64Array(r.values))}return e},TX=e=>{var t;return(t=e.output.externalData)!=null&&t.length?{...e,output:{...e.output,externalData:e.output.externalData.map(r=>({...r,voiValues:Array.from(r.voiValues),dataSeries:r.dataSeries.map(n=>({...n,values:Array.from(n.values)}))}))}}:e},zC=e=>{let t=r=>{if(!(r==null||typeof r=="string"&&r==="")){if(r instanceof Float64Array)return r;if(Array.isArray(r))return r.map(t).filter(n=>n!==void 0);if(typeof r=="object"){let n={};for(let[i,o]of Object.entries(r)){let s=t(o);s!==void 0&&(n[i]=s)}return n}return r}};return t(e)},Tc=e=>{if(e.size===0)return"";let t=[...e].map(r=>`'${r}'`);return t.length===1?t[0]:t.length===2?`${t[0]} or ${t[1]}`:`${t.slice(0,-1).join(", ")}, or ${t[t.length-1]}`},Gp=(e,t)=>{if(!e)return[{type:qe.WARNING,description:"UI JSON: no UI JSON was provided."}];e=zC(e);let r=new EC.Validator().validate(TX(e),{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"},externalData:{items:{additionalProperties:!1,properties:{data:{items:{additionalProperties:!1,properties:{id:{required:!0,type:"string"},name:{required:!0,type:"string"}},type:"object"},required:!0,type:"array"},dataSeries:{items:{additionalProperties:!1,properties:{name:{required:!0,type:"string"},values:{items:{required:!0,type:"number"},minItems:1,required:!0,type:"array"}},type:"object"},minItems:1,required:!0,type:"array"},description:{type:"string"},voiExpression:{type:"string"},voiValues:{items:{required:!0,type:"number"},minItems:1,required:!0,type:"array"}},type:"object"},type:"array"},plots:{items:{additionalProperties:!1,properties:{xAxisTitle:{type:"string"},xValue:{required:!0,type:"string"},yAxisTitle:{type:"string"},yValue:{required:!0,type:"string"},name:{type:"string"},additionalTraces:{items:{additionalProperties:!1,properties:{xValue:{required:!0,type:"string"},yValue:{required:!0,type:"string"},name:{type:"string"}},type:"object"},type:"array"}},type:"object"},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"}},type:"object"},minItems:1,required:!0,type:"array"}},type:"object"},{nestedErrors:!0});if(!r.valid){let d=[];for(let f of String(r).split(`
|
|
1135
|
+
`;this.styleElement.innerHTML=t}},destroyStyle:function(){this.styleElement&&(this.styleElement=(document.head.removeChild(this.styleElement),null))},initDrag:function(e){e.target.closest("div").getAttribute("data-pc-section")!=="headeractions"&&this.draggable&&(this.dragging=!0,this.lastPageX=e.pageX,this.lastPageY=e.pageY,this.container.style.margin="0",document.body.setAttribute("data-p-unselectable-text","true"),!this.isUnstyled&&Yo(document.body,{"user-select":"none"}),this.$emit("dragstart",e))},bindGlobalListeners:function(){this.draggable&&(this.bindDocumentDragListener(),this.bindDocumentDragEndListener()),this.closeOnEscape&&this.closable&&this.bindDocumentKeyDownListener()},unbindGlobalListeners:function(){this.unbindDocumentDragListener(),this.unbindDocumentDragEndListener(),this.unbindDocumentKeyDownListener()},bindDocumentDragListener:function(){var e=this;this.documentDragListener=function(t){if(e.dragging){var r=gr(e.container),n=On(e.container),i=t.pageX-e.lastPageX,o=t.pageY-e.lastPageY,s=e.container.getBoundingClientRect(),c=s.left+i,u=s.top+o,l=Es(),d=getComputedStyle(e.container),f=parseFloat(d.marginLeft),p=parseFloat(d.marginTop);e.container.style.position="fixed",e.keepInViewport?(c>=e.minX&&c+r<l.width&&(e.lastPageX=t.pageX,e.container.style.left=c-f+"px"),u>=e.minY&&u+n<l.height&&(e.lastPageY=t.pageY,e.container.style.top=u-p+"px")):(e.lastPageX=t.pageX,e.container.style.left=c-f+"px",e.lastPageY=t.pageY,e.container.style.top=u-p+"px")}},window.document.addEventListener("mousemove",this.documentDragListener)},unbindDocumentDragListener:function(){this.documentDragListener&&(this.documentDragListener=(window.document.removeEventListener("mousemove",this.documentDragListener),null))},bindDocumentDragEndListener:function(){var e=this;this.documentDragEndListener=function(t){e.dragging&&(e.dragging=!1,document.body.removeAttribute("data-p-unselectable-text"),!e.isUnstyled&&(document.body.style["user-select"]=""),e.$emit("dragend",t))},window.document.addEventListener("mouseup",this.documentDragEndListener)},unbindDocumentDragEndListener:function(){this.documentDragEndListener&&(this.documentDragEndListener=(window.document.removeEventListener("mouseup",this.documentDragEndListener),null))}},computed:{maximizeIconComponent:function(){return this.maximized?this.minimizeIcon?"span":"WindowMinimizeIcon":this.maximizeIcon?"span":"WindowMaximizeIcon"},ariaLabelledById:function(){return this.header!=null||this.$attrs["aria-labelledby"]!==null?this.id+"_header":null},closeAriaLabel:function(){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria.close:void 0}},directives:{ripple:kr,focustrap:Vp},components:{Button:wn,Portal:Ia,WindowMinimizeIcon:gC,WindowMaximizeIcon:hC,TimesIcon:Li}};function Qs(e){"@babel/helpers - typeof";return Qs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Qs(e)}function NC(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function kC(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]==null?{}:arguments[t];t%2?NC(Object(r),!0).forEach(function(n){PY(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):NC(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function PY(e,t,r){return(t=LY(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function LY(e){var t=VY(e,"string");return Qs(t)=="symbol"?t:t+""}function VY(e,t){if(Qs(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Qs(n)!="object")return n;throw TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var _Y=["aria-labelledby","aria-modal"],zY=["id"];function UY(e,t,r,n,i,o){var s=a.resolveComponent("Button"),c=a.resolveComponent("Portal"),u=a.resolveDirective("focustrap");return a.openBlock(),a.createBlock(c,{appendTo:e.appendTo},{default:a.withCtx(function(){return[i.containerVisible?(a.openBlock(),a.createElementBlock("div",a.mergeProps({key:0,ref:o.maskRef,class:e.cx("mask"),style:e.sx("mask",!0,{position:e.position,modal:e.modal}),onMousedown:t[1]||(t[1]=function(){return o.onMaskMouseDown&&o.onMaskMouseDown.apply(o,arguments)}),onMouseup:t[2]||(t[2]=function(){return o.onMaskMouseUp&&o.onMaskMouseUp.apply(o,arguments)})},e.ptm("mask")),[a.createVNode(a.Transition,a.mergeProps({name:"p-dialog",onEnter:o.onEnter,onAfterEnter:o.onAfterEnter,onBeforeLeave:o.onBeforeLeave,onLeave:o.onLeave,onAfterLeave:o.onAfterLeave,appear:""},e.ptm("transition")),{default:a.withCtx(function(){return[e.visible?a.withDirectives((a.openBlock(),a.createElementBlock("div",a.mergeProps({key:0,ref:o.containerRef,class:e.cx("root"),style:e.sx("root"),role:"dialog","aria-labelledby":o.ariaLabelledById,"aria-modal":e.modal},e.ptmi("root")),[e.$slots.container?a.renderSlot(e.$slots,"container",{key:0,closeCallback:o.close,maximizeCallback:function(l){return o.maximize(l)}}):(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[e.showHeader?(a.openBlock(),a.createElementBlock("div",a.mergeProps({key:0,ref:o.headerContainerRef,class:e.cx("header"),onMousedown:t[0]||(t[0]=function(){return o.initDrag&&o.initDrag.apply(o,arguments)})},e.ptm("header")),[a.renderSlot(e.$slots,"header",{class:a.normalizeClass(e.cx("title"))},function(){return[e.header?(a.openBlock(),a.createElementBlock("span",a.mergeProps({key:0,id:o.ariaLabelledById,class:e.cx("title")},e.ptm("title")),a.toDisplayString(e.header),17,zY)):a.createCommentVNode("",!0)]}),a.createElementVNode("div",a.mergeProps({class:e.cx("headerActions")},e.ptm("headerActions")),[e.maximizable?(a.openBlock(),a.createBlock(s,a.mergeProps({key:0,ref:o.maximizableRef,autofocus:i.focusableMax,class:e.cx("pcMaximizeButton"),onClick:o.maximize,tabindex:e.maximizable?"0":"-1",unstyled:e.unstyled},e.maximizeButtonProps,{pt:e.ptm("pcMaximizeButton"),"data-pc-group-section":"headericon"}),{icon:a.withCtx(function(l){return[a.renderSlot(e.$slots,"maximizeicon",{maximized:i.maximized},function(){return[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(o.maximizeIconComponent),a.mergeProps({class:[l.class,i.maximized?e.minimizeIcon:e.maximizeIcon]},e.ptm("pcMaximizeButton").icon),null,16,["class"]))]})]}),_:3},16,["autofocus","class","onClick","tabindex","unstyled","pt"])):a.createCommentVNode("",!0),e.closable?(a.openBlock(),a.createBlock(s,a.mergeProps({key:1,ref:o.closeButtonRef,autofocus:i.focusableClose,class:e.cx("pcCloseButton"),onClick:o.close,"aria-label":o.closeAriaLabel,unstyled:e.unstyled},e.closeButtonProps,{pt:e.ptm("pcCloseButton"),"data-pc-group-section":"headericon"}),{icon:a.withCtx(function(l){return[a.renderSlot(e.$slots,"closeicon",{},function(){return[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(e.closeIcon?"span":"TimesIcon"),a.mergeProps({class:[e.closeIcon,l.class]},e.ptm("pcCloseButton").icon),null,16,["class"]))]})]}),_:3},16,["autofocus","class","onClick","aria-label","unstyled","pt"])):a.createCommentVNode("",!0)],16)],16)):a.createCommentVNode("",!0),a.createElementVNode("div",a.mergeProps({ref:o.contentRef,class:[e.cx("content"),e.contentClass],style:e.contentStyle},kC(kC({},e.contentProps),e.ptm("content"))),[a.renderSlot(e.$slots,"default")],16),e.footer||e.$slots.footer?(a.openBlock(),a.createElementBlock("div",a.mergeProps({key:1,ref:o.footerContainerRef,class:e.cx("footer")},e.ptm("footer")),[a.renderSlot(e.$slots,"footer",{},function(){return[a.createTextVNode(a.toDisplayString(e.footer),1)]})],16)):a.createCommentVNode("",!0)],64))],16,_Y)),[[u,{disabled:!e.modal}]]):a.createCommentVNode("",!0)]}),_:3},16,["onEnter","onAfterEnter","onBeforeLeave","onLeave","onAfterLeave"])],16)):a.createCommentVNode("",!0)]}),_:3},8,["appendTo"])}SC.render=UY;var jY=new Uint8Array([0,97,115,109,1,0,0,0,1,48,8,96,3,127,127,127,1,127,96,3,127,127,127,0,96,2,127,127,0,96,1,127,1,127,96,3,127,127,126,1,126,96,3,126,127,127,1,126,96,2,127,126,0,96,1,127,1,126,3,11,10,0,0,2,1,3,4,5,6,1,7,5,3,1,0,1,7,85,9,3,109,101,109,2,0,5,120,120,104,51,50,0,0,6,105,110,105,116,51,50,0,2,8,117,112,100,97,116,101,51,50,0,3,8,100,105,103,101,115,116,51,50,0,4,5,120,120,104,54,52,0,5,6,105,110,105,116,54,52,0,7,8,117,112,100,97,116,101,54,52,0,8,8,100,105,103,101,115,116,54,52,0,9,10,251,22,10,242,1,1,4,127,32,0,32,1,106,33,3,32,1,65,16,79,4,127,32,3,65,16,107,33,6,32,2,65,168,136,141,161,2,106,33,3,32,2,65,137,235,208,208,7,107,33,4,32,2,65,207,140,162,142,6,106,33,5,3,64,32,3,32,0,40,2,0,65,247,148,175,175,120,108,106,65,13,119,65,177,243,221,241,121,108,33,3,32,4,32,0,65,4,106,34,0,40,2,0,65,247,148,175,175,120,108,106,65,13,119,65,177,243,221,241,121,108,33,4,32,2,32,0,65,4,106,34,0,40,2,0,65,247,148,175,175,120,108,106,65,13,119,65,177,243,221,241,121,108,33,2,32,5,32,0,65,4,106,34,0,40,2,0,65,247,148,175,175,120,108,106,65,13,119,65,177,243,221,241,121,108,33,5,32,6,32,0,65,4,106,34,0,79,13,0,11,32,2,65,12,119,32,5,65,18,119,106,32,4,65,7,119,106,32,3,65,1,119,106,5,32,2,65,177,207,217,178,1,106,11,32,1,106,32,0,32,1,65,15,113,16,1,11,146,1,0,32,1,32,2,106,33,2,3,64,32,1,65,4,106,32,2,75,69,4,64,32,0,32,1,40,2,0,65,189,220,202,149,124,108,106,65,17,119,65,175,214,211,190,2,108,33,0,32,1,65,4,106,33,1,12,1,11,11,3,64,32,1,32,2,79,69,4,64,32,0,32,1,45,0,0,65,177,207,217,178,1,108,106,65,11,119,65,177,243,221,241,121,108,33,0,32,1,65,1,106,33,1,12,1,11,11,32,0,32,0,65,15,118,115,65,247,148,175,175,120,108,34,0,65,13,118,32,0,115,65,189,220,202,149,124,108,34,0,65,16,118,32,0,115,11,63,0,32,0,65,8,106,32,1,65,168,136,141,161,2,106,54,2,0,32,0,65,12,106,32,1,65,137,235,208,208,7,107,54,2,0,32,0,65,16,106,32,1,54,2,0,32,0,65,20,106,32,1,65,207,140,162,142,6,106,54,2,0,11,195,4,1,6,127,32,1,32,2,106,33,6,32,0,65,24,106,33,4,32,0,65,40,106,40,2,0,33,3,32,0,32,0,40,2,0,32,2,106,54,2,0,32,0,65,4,106,34,5,32,5,40,2,0,32,2,65,16,79,32,0,40,2,0,65,16,79,114,114,54,2,0,32,2,32,3,106,65,16,73,4,64,32,3,32,4,106,32,1,32,2,252,10,0,0,32,0,65,40,106,32,2,32,3,106,54,2,0,15,11,32,3,4,64,32,3,32,4,106,32,1,65,16,32,3,107,34,2,252,10,0,0,32,0,65,8,106,34,3,32,3,40,2,0,32,4,40,2,0,65,247,148,175,175,120,108,106,65,13,119,65,177,243,221,241,121,108,54,2,0,32,0,65,12,106,34,3,32,3,40,2,0,32,4,65,4,106,40,2,0,65,247,148,175,175,120,108,106,65,13,119,65,177,243,221,241,121,108,54,2,0,32,0,65,16,106,34,3,32,3,40,2,0,32,4,65,8,106,40,2,0,65,247,148,175,175,120,108,106,65,13,119,65,177,243,221,241,121,108,54,2,0,32,0,65,20,106,34,3,32,3,40,2,0,32,4,65,12,106,40,2,0,65,247,148,175,175,120,108,106,65,13,119,65,177,243,221,241,121,108,54,2,0,32,0,65,40,106,65,0,54,2,0,32,1,32,2,106,33,1,11,32,1,32,6,65,16,107,77,4,64,32,6,65,16,107,33,8,32,0,65,8,106,40,2,0,33,2,32,0,65,12,106,40,2,0,33,3,32,0,65,16,106,40,2,0,33,5,32,0,65,20,106,40,2,0,33,7,3,64,32,2,32,1,40,2,0,65,247,148,175,175,120,108,106,65,13,119,65,177,243,221,241,121,108,33,2,32,3,32,1,65,4,106,34,1,40,2,0,65,247,148,175,175,120,108,106,65,13,119,65,177,243,221,241,121,108,33,3,32,5,32,1,65,4,106,34,1,40,2,0,65,247,148,175,175,120,108,106,65,13,119,65,177,243,221,241,121,108,33,5,32,7,32,1,65,4,106,34,1,40,2,0,65,247,148,175,175,120,108,106,65,13,119,65,177,243,221,241,121,108,33,7,32,8,32,1,65,4,106,34,1,79,13,0,11,32,0,65,8,106,32,2,54,2,0,32,0,65,12,106,32,3,54,2,0,32,0,65,16,106,32,5,54,2,0,32,0,65,20,106,32,7,54,2,0,11,32,1,32,6,73,4,64,32,4,32,1,32,6,32,1,107,34,1,252,10,0,0,32,0,65,40,106,32,1,54,2,0,11,11,97,1,1,127,32,0,65,16,106,40,2,0,33,1,32,0,65,4,106,40,2,0,4,127,32,1,65,12,119,32,0,65,20,106,40,2,0,65,18,119,106,32,0,65,12,106,40,2,0,65,7,119,106,32,0,65,8,106,40,2,0,65,1,119,106,5,32,1,65,177,207,217,178,1,106,11,32,0,40,2,0,106,32,0,65,24,106,32,0,65,40,106,40,2,0,16,1,11,255,3,2,3,126,1,127,32,0,32,1,106,33,6,32,1,65,32,79,4,126,32,6,65,32,107,33,6,32,2,66,214,235,130,238,234,253,137,245,224,0,124,33,3,32,2,66,177,169,172,193,173,184,212,166,61,125,33,4,32,2,66,249,234,208,208,231,201,161,228,225,0,124,33,5,3,64,32,3,32,0,41,3,0,66,207,214,211,190,210,199,171,217,66,126,124,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,33,3,32,4,32,0,65,8,106,34,0,41,3,0,66,207,214,211,190,210,199,171,217,66,126,124,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,33,4,32,2,32,0,65,8,106,34,0,41,3,0,66,207,214,211,190,210,199,171,217,66,126,124,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,33,2,32,5,32,0,65,8,106,34,0,41,3,0,66,207,214,211,190,210,199,171,217,66,126,124,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,33,5,32,6,32,0,65,8,106,34,0,79,13,0,11,32,2,66,12,137,32,5,66,18,137,124,32,4,66,7,137,124,32,3,66,1,137,124,32,3,66,207,214,211,190,210,199,171,217,66,126,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,133,66,135,149,175,175,152,182,222,155,158,127,126,66,157,163,181,234,131,177,141,138,250,0,125,32,4,66,207,214,211,190,210,199,171,217,66,126,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,133,66,135,149,175,175,152,182,222,155,158,127,126,66,157,163,181,234,131,177,141,138,250,0,125,32,2,66,207,214,211,190,210,199,171,217,66,126,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,133,66,135,149,175,175,152,182,222,155,158,127,126,66,157,163,181,234,131,177,141,138,250,0,125,32,5,66,207,214,211,190,210,199,171,217,66,126,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,133,66,135,149,175,175,152,182,222,155,158,127,126,66,157,163,181,234,131,177,141,138,250,0,125,5,32,2,66,197,207,217,178,241,229,186,234,39,124,11,32,1,173,124,32,0,32,1,65,31,113,16,6,11,134,2,0,32,1,32,2,106,33,2,3,64,32,2,32,1,65,8,106,79,4,64,32,1,41,3,0,66,207,214,211,190,210,199,171,217,66,126,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,32,0,133,66,27,137,66,135,149,175,175,152,182,222,155,158,127,126,66,157,163,181,234,131,177,141,138,250,0,125,33,0,32,1,65,8,106,33,1,12,1,11,11,32,1,65,4,106,32,2,77,4,64,32,0,32,1,53,2,0,66,135,149,175,175,152,182,222,155,158,127,126,133,66,23,137,66,207,214,211,190,210,199,171,217,66,126,66,249,243,221,241,153,246,153,171,22,124,33,0,32,1,65,4,106,33,1,11,3,64,32,1,32,2,73,4,64,32,0,32,1,49,0,0,66,197,207,217,178,241,229,186,234,39,126,133,66,11,137,66,135,149,175,175,152,182,222,155,158,127,126,33,0,32,1,65,1,106,33,1,12,1,11,11,32,0,32,0,66,33,136,133,66,207,214,211,190,210,199,171,217,66,126,34,0,32,0,66,29,136,133,66,249,243,221,241,153,246,153,171,22,126,34,0,32,0,66,32,136,133,11,77,0,32,0,65,8,106,32,1,66,214,235,130,238,234,253,137,245,224,0,124,55,3,0,32,0,65,16,106,32,1,66,177,169,172,193,173,184,212,166,61,125,55,3,0,32,0,65,24,106,32,1,55,3,0,32,0,65,32,106,32,1,66,249,234,208,208,231,201,161,228,225,0,124,55,3,0,11,244,4,2,3,127,4,126,32,1,32,2,106,33,5,32,0,65,40,106,33,4,32,0,65,200,0,106,40,2,0,33,3,32,0,32,0,41,3,0,32,2,173,124,55,3,0,32,2,32,3,106,65,32,73,4,64,32,3,32,4,106,32,1,32,2,252,10,0,0,32,0,65,200,0,106,32,2,32,3,106,54,2,0,15,11,32,3,4,64,32,3,32,4,106,32,1,65,32,32,3,107,34,2,252,10,0,0,32,0,65,8,106,34,3,32,3,41,3,0,32,4,41,3,0,66,207,214,211,190,210,199,171,217,66,126,124,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,55,3,0,32,0,65,16,106,34,3,32,3,41,3,0,32,4,65,8,106,41,3,0,66,207,214,211,190,210,199,171,217,66,126,124,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,55,3,0,32,0,65,24,106,34,3,32,3,41,3,0,32,4,65,16,106,41,3,0,66,207,214,211,190,210,199,171,217,66,126,124,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,55,3,0,32,0,65,32,106,34,3,32,3,41,3,0,32,4,65,24,106,41,3,0,66,207,214,211,190,210,199,171,217,66,126,124,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,55,3,0,32,0,65,200,0,106,65,0,54,2,0,32,1,32,2,106,33,1,11,32,1,65,32,106,32,5,77,4,64,32,5,65,32,107,33,2,32,0,65,8,106,41,3,0,33,6,32,0,65,16,106,41,3,0,33,7,32,0,65,24,106,41,3,0,33,8,32,0,65,32,106,41,3,0,33,9,3,64,32,6,32,1,41,3,0,66,207,214,211,190,210,199,171,217,66,126,124,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,33,6,32,7,32,1,65,8,106,34,1,41,3,0,66,207,214,211,190,210,199,171,217,66,126,124,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,33,7,32,8,32,1,65,8,106,34,1,41,3,0,66,207,214,211,190,210,199,171,217,66,126,124,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,33,8,32,9,32,1,65,8,106,34,1,41,3,0,66,207,214,211,190,210,199,171,217,66,126,124,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,33,9,32,2,32,1,65,8,106,34,1,79,13,0,11,32,0,65,8,106,32,6,55,3,0,32,0,65,16,106,32,7,55,3,0,32,0,65,24,106,32,8,55,3,0,32,0,65,32,106,32,9,55,3,0,11,32,1,32,5,73,4,64,32,4,32,1,32,5,32,1,107,34,1,252,10,0,0,32,0,65,200,0,106,32,1,54,2,0,11,11,188,2,1,5,126,32,0,65,24,106,41,3,0,33,1,32,0,41,3,0,34,2,66,32,90,4,126,32,0,65,8,106,41,3,0,34,3,66,1,137,32,0,65,16,106,41,3,0,34,4,66,7,137,124,32,1,66,12,137,32,0,65,32,106,41,3,0,34,5,66,18,137,124,124,32,3,66,207,214,211,190,210,199,171,217,66,126,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,133,66,135,149,175,175,152,182,222,155,158,127,126,66,157,163,181,234,131,177,141,138,250,0,125,32,4,66,207,214,211,190,210,199,171,217,66,126,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,133,66,135,149,175,175,152,182,222,155,158,127,126,66,157,163,181,234,131,177,141,138,250,0,125,32,1,66,207,214,211,190,210,199,171,217,66,126,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,133,66,135,149,175,175,152,182,222,155,158,127,126,66,157,163,181,234,131,177,141,138,250,0,125,32,5,66,207,214,211,190,210,199,171,217,66,126,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,133,66,135,149,175,175,152,182,222,155,158,127,126,66,157,163,181,234,131,177,141,138,250,0,125,5,32,1,66,197,207,217,178,241,229,186,234,39,124,11,32,2,124,32,0,65,40,106,32,2,66,31,131,167,16,6,11]);async function QY(){return function(e){let{exports:{mem:t,xxh32:r,xxh64:n,init32:i,update32:o,digest32:s,init64:c,update64:u,digest64:l}}=e,d=new Uint8Array(t.buffer);function f(C,y){if(t.buffer.byteLength<C+y){let x=Math.ceil((C+y-t.buffer.byteLength)/65536);t.grow(x),d=new Uint8Array(t.buffer)}}function p(C,y,x,E,N,k){f(C);let B=new Uint8Array(C);return d.set(B),x(0,y),B.set(d.subarray(0,C)),{update(M){let A;return d.set(B),typeof M=="string"?(f(3*M.length,C),A=b.encodeInto(M,d.subarray(C)).written):(f(M.byteLength,C),d.set(M,C),A=M.byteLength),E(0,C,A),B.set(d.subarray(0,C)),this},digest:()=>(d.set(B),k(N(0)))}}function m(C){return C>>>0}let h=2n**64n-1n;function g(C){return C&h}let b=new TextEncoder,v=0n;function S(C,y=0){return f(3*C.length,0),m(r(0,b.encodeInto(C,d).written,y))}function w(C,y=v){return f(3*C.length,0),g(n(0,b.encodeInto(C,d).written,y))}return{h32:S,h32ToString:(C,y=0)=>S(C,y).toString(16).padStart(8,"0"),h32Raw:(C,y=0)=>(f(C.byteLength,0),d.set(C),m(r(0,C.byteLength,y))),create32:(C=0)=>p(48,C,i,o,s,m),h64:w,h64ToString:(C,y=v)=>w(C,y).toString(16).padStart(16,"0"),h64Raw:(C,y=v)=>(f(C.byteLength,0),d.set(C),g(n(0,C.byteLength,y))),create64:(C=v)=>p(88,C,c,u,l,g)}}((await WebAssembly.instantiate(jY)).instance)}var EC=null,_p=null,_i=null,xn=null,BC=null,zp=null,qY=e=>{EC=e},WY=e=>{_p=e},HY=e=>{_i=e},ZY=e=>{xn=e},GY=e=>{BC=e},KY=QY().then(e=>(zp=e,e)),Ae=window.electronApi,qs=null,kc=()=>{if(qs)return qs;try{let e=window.navigator.userAgent;qs=/Android/i.test(e)?"Android":/iPhone|iPad|iPod/i.test(e)?"iOS":/Windows/i.test(e)?"Windows":/Linux/i.test(e)?"Linux":/Mac/i.test(e)?"macOS":"Unknown"}catch{qs="Unknown"}return qs},JY=()=>kc()==="Windows",YY=()=>kc()==="Linux",Up=()=>kc()==="macOS",jp=()=>{let e=kc();return e==="Windows"||e==="Linux"||e==="macOS"},Qp=e=>Up()?e.metaKey:e.ctrlKey,DC=e=>{Ae==null||Ae.enableDisableMainMenu(e)},XY="OMEX #",Ec=e=>e.startsWith("http://")||e.startsWith("https://"),Ws=e=>`https://cors-proxy.opencor.workers.dev/?url=${e}`,MC=e=>typeof e=="string"?zp.h64(e).toString(16).padStart(16,"0"):zp.h64Raw(e).toString(16).padStart(16,"0"),$Y=e=>{let t=Math.floor(e%1e3),r=Math.floor(e/1e3%60),n=Math.floor(e/(1e3*60)%60),i=Math.floor(e/(1e3*60*60)%24),o=Math.floor(e/(1e3*60*60*24)%24),s="";return o&&(s=`${o}d`),(i||(n||r||t)&&s)&&(s+=`${s?" ":""}${i}h`),(n||(r||t)&&s)&&(s+=`${s?" ":""}${n}m`),(r||t&&s)&&(s+=`${s?" ":""}${r}s`),(t||!s)&&(s+=`${s?" ":""}${t}ms`),s},Bt=e=>e instanceof Error?e.message:String(e),rr=(e,t=!0)=>(e=t?e.charAt(0).toUpperCase()+e.slice(1):e.charAt(0).toLowerCase()+e.slice(1),e.endsWith("...")?e:e.endsWith(".")?t?e:e.slice(0,-1):t?`${e}.`:e),qp=(e,t)=>{if(!Number.isFinite(e)||!Number.isFinite(t)||t===0)return!1;let r=e/t,n=Math.round(r);return Math.abs(r-n)<=2**-52*Math.max(1,Math.abs(n))},AC=(e,t,r)=>{let n=document.createElement("a"),i=t instanceof Blob?t:new Blob([t],{type:r}),o=URL.createObjectURL(i);n.href=o,n.download=e,document.body.appendChild(n),n.click(),document.body.removeChild(n),URL.revokeObjectURL(o)},TC=e=>{let t=e.split(/(\\|\/)/g).pop()||"";try{return decodeURIComponent(t)}catch(r){return console.warn("OpenCOR: failed to decode the file path:",t,Bt(r)),t}},Bc=e=>new Promise(t=>{setTimeout(t,e)}),eX=()=>new Promise(e=>{requestAnimationFrame(e)}),tX=Object.freeze(new Float64Array),IC=Object.freeze({data:tX,unit:""}),Hs=e=>{let t={};for(let r of e)t[r]={...IC};return t},FC=Symbol("DialogState"),rX=()=>{let e=se.ref(0),t={activeDialogs:e,isDialogActive:se.computed(()=>e.value>0),incrementDialogs:()=>{++e.value},decrementDialogs:()=>{--e.value}};return se.provide(FC,t),t},nX=()=>{let e=se.inject(FC);if(!e)throw Error("useDialogState() must be called within a component that has provideDialogState in its ancestor tree.");return e},$o=a.defineComponent({__name:"BaseDialog",emits:["cancel"],setup(e,{emit:t}){let r=t,{incrementDialogs:n,decrementDialogs:i}=nX(),o=null,s=null,c=null,u=()=>{if(o instanceof HTMLElement&&s instanceof HTMLElement){let f=o.getBoundingClientRect(),p=s.getBoundingClientRect();o.style.top=`${Math.max(Math.min(f.top,p.bottom-f.height),p.top)}px`,o.style.left=`${Math.max(Math.min(f.left,p.right-f.width),p.left)}px`}},l=()=>{n(),DC(!1),se.nextTick(()=>{o=document.querySelector(".p-dialog"),s=o==null?void 0:o.closest('[data-pc-section="mask"]'),o&&s&&(c=new MutationObserver(()=>{u()}),c.observe(o,{attributes:!0,attributeFilter:["style"]}),u())})},d=()=>{i(),DC(!0),r("cancel"),se.nextTick(()=>{c&&(c=(c.disconnect(),null))})};return(f,p)=>{let m=SC;return a.openBlock(),a.createBlock(m,{modal:!0,appendTo:"self","pt:mask:style":{position:"absolute"},"pt:content":{class:"h-full",style:"padding-bottom: 0"},"pt:footer":{style:"padding-top: 1.25rem"},onShow:l,onHide:d},a.createSlots({_:2},[a.renderList(f.$slots,(h,g)=>({name:g,fn:a.withCtx(b=>[a.renderSlot(f.$slots,g,a.normalizeProps(a.guardReactiveProps(b)))])}))]),1024)}}}),{version:Wp}={version:"0.20260416.0"},Dc=se.ref(!1),Zs=se.ref(""),OC=async()=>{try{let e=await fetch(`./assets/version.json?t=${Date.now()}`);if(!e.ok)return console.warn("OpenCOR: failed to fetch the version information."),Dc.value=!1,Zs.value="",!1;Zs.value=(await e.json()).version;let t=oX(Zs.value,Wp);return Dc.value=t,t}catch{return Dc.value=!1,Zs.value="",!1}},oX=(e,t)=>{let r=e.split(".").map(Number),n=t.split(".").map(Number);for(let i=0;i<Math.max(r.length,n.length);++i){let o=r[i]||0,s=n[i]||0;if(o>s)return!0;if(o<s)return!1}return!1},aX=null,iX=()=>{OC(),aX||(aX=window.setInterval(()=>{OC()},300*1e3))},Gs=e=>(a.pushScopeId("data-v-c05d59eb"),e=e(),a.popScopeId(),e),sX={class:"space-y-7"},lX={class:"text-center"},uX={class:"text-3xl font-bold"},cX={class:"highlight highlight-version"},dX={class:"space-y-2"},fX={class:"text-center"},pX=Gs(()=>a.createElementVNode("span",{class:"text-lg"},[a.createTextVNode("Feel free to "),a.createElementVNode("strong",null,"force reload"),a.createTextVNode(" OpenCOR whenever you are ready.")],-1)),mX=Gs(()=>a.createElementVNode("br",null,null,-1)),hX={key:0,class:"highlight"},gX={key:1},vX=Gs(()=>a.createElementVNode("span",{class:"highlight"},"Ctrl",-1)),bX=Gs(()=>a.createElementVNode("span",{class:"highlight"},"Shift",-1)),yX=Gs(()=>a.createElementVNode("span",{class:"highlight"},"R",-1)),wX=a.defineComponent({__name:"UpdateAvailableDialog",emits:["close"],setup(e){return(t,r)=>{let n=wn,i=$o;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",sX,[a.createElementVNode("div",lX,[a.createElementVNode("div",uX,[a.createTextVNode("OpenCOR "),a.createElementVNode("span",cX,a.toDisplayString(a.unref(Zs)),1),a.createTextVNode(" is available!")])]),a.createElementVNode("div",dX,[a.createElementVNode("div",fX,[pX,mX,a.createElementVNode("em",null,[a.createTextVNode("(You can force reload by pressing "),Up()?(a.openBlock(),a.createElementBlock("span",hX,"⇧⌘R")):(a.openBlock(),a.createElementBlock("span",gX,[vX,a.createTextVNode("+"),bX,a.createTextVNode("+"),yX])),a.createTextVNode(".)")])])])])]),_:1})}}}),no=(e,t)=>{let r=e.__vccOpts||e;for(let[n,i]of t)r[n]=i;return r},xX=no(wX,[["__scopeId","data-v-c05d59eb"]]),RC="opencor://",Bo=3e3,PC=new Date().getFullYear(),LC=PC===2025?"2025":`2025-${PC}`,qe=function(e){return e[e.ERROR=0]="ERROR",e[e.WARNING=1]="WARNING",e[e.INFORMATION=2]="INFORMATION",e}({}),Hp=e=>{let t=[];for(let r=0;r<e.size();++r){let n=e.get(r);t.push({type:n.type.value,description:n.description})}return t},VC=(Qn=class{constructor(){Vt(this,"_fileManager",null)}static instance(){return Qn._instance??(Qn._instance=new Qn),Qn._instance}fileManager(){return this._fileManager??(this._fileManager=Ui.FileManager.instance()),this._fileManager}file(t){if(it()){let n=at.fileContents(t);return n?new zi(t,n):null}let r=this.fileManager().files;for(let n=0;n<r.size();++n){let i=r.get(n);if(i.path===t)return new zi(t,i.contents())}return null}unmanage(t){if(it())at.fileManagerUnmanage(t);else{let r=this.fileManager(),n=r.files;for(let i=0;i<n.size();++i){let o=n.get(i);if(o.path===t){r.unmanage(o);break}}}}},Vt(Qn,"_instance",null),Qn).instance(),Fa=function(e){return 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}({}),zi=class{constructor(e,t=void 0){Vt(this,"_path");Vt(this,"_wasmFile",{});Vt(this,"_issues",[]);if(this._path=e,it())at.fileCreate(e,t),this._issues=at.fileIssues(e);else if(t)this._wasmFile=se.markRaw(new Ui.File(e)),this._wasmFile.setContents(t),this._issues=Hp(this._wasmFile.issues);else{console.warn(`OpenCOR: no contents provided for file '${e}'.`);return}}type(){return it()?at.fileType(this._path):this._wasmFile.type.value}path(){return this._path}issues(){return this._issues}contents(){return it()?at.fileContents(this._path):this._wasmFile.contents()}document(){return new CX(this._path,this._wasmFile)}uiJson(){let e;if(it()){if(e=at.fileUiJson(this._path),!e)return}else{let n=this._wasmFile.childFileFromFileName("simulation.json");if(!n)return;e=n.contents()}let t=new TextDecoder,r;try{r=JSON.parse(t.decode(e))}catch{console.warn(`OpenCOR: unable to parse the UI JSON for file '${this._path}'.`);return}if(!r||typeof r!="object"||Array.isArray(r)){console.warn(`OpenCOR: the UI JSON for file '${this._path}' has an unexpected structure.`);return}return _C(r)}},Mc=class{constructor(e){Vt(this,"_index");this._index=e}},CX=class{constructor(e,t){Vt(this,"_cppDocumentId",-1);Vt(this,"_wasmSedDocument",{});Vt(this,"_issues",[]);if(it()?this._cppDocumentId=at.sedDocumentCreate(e):this._wasmSedDocument=new Ui.SedDocument(t),this._issues=it()?at.sedDocumentIssues(this._cppDocumentId):Hp(this._wasmSedDocument.issues),this.modelCount()!==1){this._issues.push({type:qe.WARNING,description:"Only SED-ML files with one model are currently supported."});return}if(this.simulationCount()!==1){this._issues.push({type:qe.WARNING,description:"Only SED-ML files with one simulation are currently supported."});return}let r=this.simulation(0);if(r.type()!==ea.UNIFORM_TIME_COURSE){this._issues.push({type:qe.WARNING,description:"Only uniform time course simulations are currently supported."});return}let n=r.initialTime(),i=r.outputStartTime(),o=r.outputEndTime(),s=r.numberOfSteps();n!==i&&this._issues.push({type:qe.WARNING,description:`Only uniform time course simulations with the same values for 'initialTime' (${n}) and 'outputStartTime' (${i}) are currently supported.`}),i===o&&this._issues.push({type:qe.ERROR,description:`The uniform time course simulation must have different values for 'outputStartTime' (${i}) and 'outputEndTime' (${o}).`}),s<=0&&this._issues.push({type:qe.ERROR,description:`The uniform time course simulation must have a positive value for 'numberOfSteps' (${s}).`})}issues(){return this._issues}modelCount(){return it()?at.sedDocumentModelCount(this._cppDocumentId):this._wasmSedDocument.modelCount}model(e){return new SX(this._cppDocumentId,this._wasmSedDocument,e)}simulationCount(){return it()?at.sedDocumentSimulationCount(this._cppDocumentId):this._wasmSedDocument.simulationCount}simulation(e){let t;if(it())t=at.sedDocumentSimulationType(this._cppDocumentId,e);else switch(this._wasmSedDocument.simulation(e).constructor.name){case"SedAnalysis":t=ea.ANALYSIS;break;case"SedSteadyState":t=ea.STEADY_STATE;break;case"SedOneStep":t=ea.ONE_STEP;break;default:t=ea.UNIFORM_TIME_COURSE}return t===ea.ANALYSIS?new NX(this._cppDocumentId,this._wasmSedDocument,e,t):t===ea.STEADY_STATE?new kX(this._cppDocumentId,this._wasmSedDocument,e,t):t===ea.ONE_STEP?new EX(this._cppDocumentId,this._wasmSedDocument,e,t):new BX(this._cppDocumentId,this._wasmSedDocument,e,t)}instantiate(){return new MX(this._cppDocumentId,this._wasmSedDocument)}serialise(){return it()?at.sedDocumentSerialise(this._cppDocumentId):this._wasmSedDocument.serialise()}},SX=class extends Mc{constructor(t,r,n){super(n);Vt(this,"_cppDocumentId");Vt(this,"_wasmSedModel",{});this._cppDocumentId=t,Js()&&(this._wasmSedModel=r.model(n))}file(){return VC.file(it()?at.sedModelFilePath(this._cppDocumentId,this._index):this._wasmSedModel.file.path)}addChange(t,r,n){it()?at.sedModelAddChange(this._cppDocumentId,this._index,t,r,n):this._wasmSedModel.addChange(new Ui.SedChangeAttribute(t,r,n))}removeAllChanges(){it()?at.sedModelRemoveAllChanges(this._cppDocumentId,this._index):this._wasmSedModel.removeAllChanges()}},ea=function(e){return e[e.ANALYSIS=0]="ANALYSIS",e[e.STEADY_STATE=1]="STEADY_STATE",e[e.ONE_STEP=2]="ONE_STEP",e[e.UNIFORM_TIME_COURSE=3]="UNIFORM_TIME_COURSE",e}({}),Ac=class extends Mc{constructor(t,r,n,i){super(n);Vt(this,"_cppDocumentId");Vt(this,"_type");this._cppDocumentId=t,this._type=i}type(){return this._type}},NX=class extends Ac{},kX=class extends Ac{},EX=class extends Ac{constructor(t,r,n,i){super(t,r,n,i);Vt(this,"_wasmSedOneStep",{});Js()&&(this._wasmSedOneStep=r.simulation(n))}step(){return it()?at.sedOneStepStep(this._cppDocumentId,this._index):this._wasmSedOneStep.step}},BX=class extends Ac{constructor(t,r,n,i){super(t,r,n,i);Vt(this,"_wasmSedUniformTimeCourse",{});Js()&&(this._wasmSedUniformTimeCourse=r.simulation(n))}initialTime(){return it()?at.sedUniformTimeCourseInitialTime(this._cppDocumentId,this._index):this._wasmSedUniformTimeCourse.initialTime}setInitialTime(t){it()?at.sedUniformTimeCourseSetInitialTime(this._cppDocumentId,this._index,t):this._wasmSedUniformTimeCourse.initialTime=t}outputStartTime(){return it()?at.sedUniformTimeCourseOutputStartTime(this._cppDocumentId,this._index):this._wasmSedUniformTimeCourse.outputStartTime}setOutputStartTime(t){it()?at.sedUniformTimeCourseSetOutputStartTime(this._cppDocumentId,this._index,t):this._wasmSedUniformTimeCourse.outputStartTime=t}outputEndTime(){return it()?at.sedUniformTimeCourseOutputEndTime(this._cppDocumentId,this._index):this._wasmSedUniformTimeCourse.outputEndTime}setOutputEndTime(t){it()?at.sedUniformTimeCourseSetOutputEndTime(this._cppDocumentId,this._index,t):this._wasmSedUniformTimeCourse.outputEndTime=t}numberOfSteps(){return it()?at.sedUniformTimeCourseNumberOfSteps(this._cppDocumentId,this._index):this._wasmSedUniformTimeCourse.numberOfSteps}setNumberOfSteps(t){it()?at.sedUniformTimeCourseSetNumberOfSteps(this._cppDocumentId,this._index,t):this._wasmSedUniformTimeCourse.numberOfSteps=t}cvode(){return new DX(this._cppDocumentId,this._wasmSedUniformTimeCourse,this._index)}},DX=class extends Mc{constructor(t,r,n){super(n);Vt(this,"_cppDocumentId");Vt(this,"_wasmSolverCvode",{});this._cppDocumentId=t,Js()&&(this._wasmSolverCvode=r.odeSolver)}maximumStep(){return it()?at.solverCvodeMaximumStep(this._cppDocumentId,this._index):this._wasmSolverCvode.maximumStep}setMaximumStep(t){it()?at.solverCvodeSetMaximumStep(this._cppDocumentId,this._index,t):this._wasmSolverCvode.maximumStep=t}},MX=class{constructor(e,t){Vt(this,"_cppInstanceId",-1);Vt(this,"_wasmSedInstance",{});it()?this._cppInstanceId=at.sedDocumentInstantiate(e):this._wasmSedInstance=se.markRaw(t.instantiate())}hasIssues(){return it()?at.sedInstanceHasIssues(this._cppInstanceId):this._wasmSedInstance.hasIssues}issues(){return it()?at.sedInstanceIssues(this._cppInstanceId):Hp(this._wasmSedInstance.issues)}task(e){return new AX(this._cppInstanceId,e,this._wasmSedInstance)}run(){return it()?at.sedInstanceRun(this._cppInstanceId):this._wasmSedInstance.run()}},AX=class extends Mc{constructor(t,r,n){super(r);Vt(this,"_cppInstanceId");Vt(this,"_wasmSedInstanceTask",{});this._cppInstanceId=t,Js()&&(this._wasmSedInstanceTask=n.task(r))}voiName(){return it()?at.sedInstanceTaskVoiName(this._cppInstanceId,this._index):this._wasmSedInstanceTask.voiName}voiUnit(){return it()?at.sedInstanceTaskVoiUnit(this._cppInstanceId,this._index):this._wasmSedInstanceTask.voiUnit}voi(){return it()?at.sedInstanceTaskVoi(this._cppInstanceId,this._index):this._wasmSedInstanceTask.voiAsArray}stateCount(){return it()?at.sedInstanceTaskStateCount(this._cppInstanceId,this._index):this._wasmSedInstanceTask.stateCount}stateName(t){return it()?at.sedInstanceTaskStateName(this._cppInstanceId,this._index,t):this._wasmSedInstanceTask.stateName(t)}stateUnit(t){return it()?at.sedInstanceTaskStateUnit(this._cppInstanceId,this._index,t):this._wasmSedInstanceTask.stateUnit(t)}state(t){return it()?at.sedInstanceTaskState(this._cppInstanceId,this._index,t):this._wasmSedInstanceTask.stateAsArray(t)}rateCount(){return it()?at.sedInstanceTaskRateCount(this._cppInstanceId,this._index):this._wasmSedInstanceTask.rateCount}rateName(t){return it()?at.sedInstanceTaskRateName(this._cppInstanceId,this._index,t):this._wasmSedInstanceTask.rateName(t)}rateUnit(t){return it()?at.sedInstanceTaskRateUnit(this._cppInstanceId,this._index,t):this._wasmSedInstanceTask.rateUnit(t)}rate(t){return it()?at.sedInstanceTaskRate(this._cppInstanceId,this._index,t):this._wasmSedInstanceTask.rateAsArray(t)}constantCount(){return it()?at.sedInstanceTaskConstantCount(this._cppInstanceId,this._index):this._wasmSedInstanceTask.constantCount}constantName(t){return it()?at.sedInstanceTaskConstantName(this._cppInstanceId,this._index,t):this._wasmSedInstanceTask.constantName(t)}constantUnit(t){return it()?at.sedInstanceTaskConstantUnit(this._cppInstanceId,this._index,t):this._wasmSedInstanceTask.constantUnit(t)}constant(t){return it()?at.sedInstanceTaskConstant(this._cppInstanceId,this._index,t):this._wasmSedInstanceTask.constantAsArray(t)}computedConstantCount(){return it()?at.sedInstanceTaskComputedConstantCount(this._cppInstanceId,this._index):this._wasmSedInstanceTask.computedConstantCount}computedConstantName(t){return it()?at.sedInstanceTaskComputedConstantName(this._cppInstanceId,this._index,t):this._wasmSedInstanceTask.computedConstantName(t)}computedConstantUnit(t){return it()?at.sedInstanceTaskComputedConstantUnit(this._cppInstanceId,this._index,t):this._wasmSedInstanceTask.computedConstantUnit(t)}computedConstant(t){return it()?at.sedInstanceTaskComputedConstant(this._cppInstanceId,this._index,t):this._wasmSedInstanceTask.computedConstantAsArray(t)}algebraicVariableCount(){return it()?at.sedInstanceTaskAlgebraicVariableCount(this._cppInstanceId,this._index):this._wasmSedInstanceTask.algebraicVariableCount}algebraicVariableName(t){return it()?at.sedInstanceTaskAlgebraicVariableName(this._cppInstanceId,this._index,t):this._wasmSedInstanceTask.algebraicVariableName(t)}algebraicVariableUnit(t){return it()?at.sedInstanceTaskAlgebraicVariableUnit(this._cppInstanceId,this._index,t):this._wasmSedInstanceTask.algebraicVariableUnit(t)}algebraicVariable(t){return it()?at.sedInstanceTaskAlgebraicVariable(this._cppInstanceId,this._index,t):this._wasmSedInstanceTask.algebraicVariableAsArray(t)}},Ks=e=>"maximumValue"in e&&"minimumValue"in e,Oa=e=>"possibleValues"in e,Zp=(e,t)=>t instanceof Float64Array?Array.from(t):t,_C=e=>{for(let t of e.output.externalData??[]){t.voiValues instanceof Float64Array||(t.voiValues=new Float64Array(t.voiValues));for(let r of t.dataSeries)r.values instanceof Float64Array||(r.values=new Float64Array(r.values))}return e},TX=e=>{var t;return(t=e.output.externalData)!=null&&t.length?{...e,output:{...e.output,externalData:e.output.externalData.map(r=>({...r,voiValues:Array.from(r.voiValues),dataSeries:r.dataSeries.map(n=>({...n,values:Array.from(n.values)}))}))}}:e},zC=e=>{let t=r=>{if(!(r==null||typeof r=="string"&&r==="")){if(r instanceof Float64Array)return r;if(Array.isArray(r))return r.map(t).filter(n=>n!==void 0);if(typeof r=="object"){let n={};for(let[i,o]of Object.entries(r)){let s=t(o);s!==void 0&&(n[i]=s)}return n}return r}};return t(e)},Tc=e=>{if(e.size===0)return"";let t=[...e].map(r=>`'${r}'`);return t.length===1?t[0]:t.length===2?`${t[0]} or ${t[1]}`:`${t.slice(0,-1).join(", ")}, or ${t[t.length-1]}`},Gp=(e,t)=>{if(!e)return[{type:qe.WARNING,description:"UI JSON: no UI JSON was provided."}];e=zC(e);let r=new EC.Validator().validate(TX(e),{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"},externalData:{items:{additionalProperties:!1,properties:{data:{items:{additionalProperties:!1,properties:{id:{required:!0,type:"string"},name:{required:!0,type:"string"}},type:"object"},required:!0,type:"array"},dataSeries:{items:{additionalProperties:!1,properties:{name:{required:!0,type:"string"},values:{items:{required:!0,type:"number"},minItems:1,required:!0,type:"array"}},type:"object"},minItems:1,required:!0,type:"array"},description:{type:"string"},voiExpression:{type:"string"},voiValues:{items:{required:!0,type:"number"},minItems:1,required:!0,type:"array"}},type:"object"},type:"array"},plots:{items:{additionalProperties:!1,properties:{xAxisTitle:{type:"string"},xValue:{required:!0,type:"string"},yAxisTitle:{type:"string"},yValue:{required:!0,type:"string"},name:{type:"string"},additionalTraces:{items:{additionalProperties:!1,properties:{xValue:{required:!0,type:"string"},yValue:{required:!0,type:"string"},name:{type:"string"}},type:"object"},type:"array"}},type:"object"},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"}},type:"object"},minItems:1,required:!0,type:"array"}},type:"object"},{nestedErrors:!0});if(!r.valid){let d=[];for(let f of String(r).split(`
|
|
1136
1136
|
`))f&&d.push({type:qe.WARNING,description:`UI JSON: ${rr(f)}`});return d}let n=new Set((t==null?void 0:t.allModelParameters)??[]),i=new Set((t==null?void 0:t.editableModelParameters)??[]),o=[],s={};for(let d of e.input){if(d.id?(s[d.id]&&o.push({type:qe.WARNING,description:`UI JSON: an input id must be unique ('${d.id}' is used more than once).`}),s[d.id]=!0):o.push({type:qe.WARNING,description:"UI JSON: an input id must not be empty."}),d.name||o.push({type:qe.WARNING,description:"UI JSON: an input name must not be empty."}),"possibleValues"in d){for(let h of d.possibleValues)h.name||o.push({type:qe.WARNING,description:"UI JSON: an input possible value name must not be empty."});let f=d.possibleValues.map(h=>h.value),p=Tc(new Set(f.map(h=>String(h)))),m={};for(let h of f)m[h]&&o.push({type:qe.WARNING,description:`UI JSON: an input possible value must have a unique value ('${h}' is used more than once).`}),m[h]=!0;f.includes(d.defaultValue)||o.push({type:qe.WARNING,description:`UI JSON: an input default value must be one of the possible values ('${d.defaultValue}' is not one of ${p}).`})}if(Ks(d)){d.minimumValue>=d.maximumValue&&o.push({type:qe.WARNING,description:`UI JSON: an input minimum value must be lower than the maximum value (${d.minimumValue} is not lower than ${d.maximumValue}).`}),(d.defaultValue<d.minimumValue||d.defaultValue>d.maximumValue)&&o.push({type:qe.WARNING,description:`UI JSON: an input default value must be greater or equal than the minimum value and lower or equal than the maximum value (${d.defaultValue} is not between ${d.minimumValue} and ${d.maximumValue}).`});let f=d.maximumValue-d.minimumValue;d.stepValue!==void 0&&d.stepValue!==null?((d.stepValue<=0||d.stepValue>f)&&o.push({type:qe.WARNING,description:`UI JSON: an input step value must be greater than zero and lower or equal than the range value (${d.stepValue} is not between 0 and ${f}).`}),qp(f,d.stepValue)||o.push({type:qe.WARNING,description:`UI JSON: an input step value must be a factor of the range value (${d.stepValue} is not a factor of ${f}).`})):qp(f,1)||o.push({type:qe.WARNING,description:`UI JSON: an input step value must be a factor of the range value (1 is not a factor of ${f}).`})}d.visible!==void 0&&d.visible!==null&&!d.visible&&o.push({type:qe.WARNING,description:"UI JSON: an input visible must not be empty."})}let c={},u=Tc(n);for(let d of e.output.data)d.id||o.push({type:qe.WARNING,description:"UI JSON: an output data id must not be empty."}),c[d.id]&&o.push({type:qe.WARNING,description:`UI JSON: an output data id must be unique ('${d.id}' is used more than once).`}),c[d.id]=!0,d.name?n.size>0&&!n.has(d.name)&&o.push({type:qe.WARNING,description:`UI JSON: an output data name must match one of the available options ('${d.name}' is not one of ${u}).`}):o.push({type:qe.WARNING,description:"UI JSON: an output data name must not be empty."});if(e.output.externalData!==void 0&&e.output.externalData!==null)for(let d of e.output.externalData){if(d.voiExpression)try{_i.parse(d.voiExpression)}catch(h){o.push({type:qe.WARNING,description:`UI JSON: an output external data VOI expression must be valid ('${d.voiExpression}' is not: ${rr(Bt(h),!1)}).`})}d.voiValues.length||o.push({type:qe.WARNING,description:"UI JSON: an output external data VOI values must not be empty."});let f={};for(let h of d.dataSeries)f[h.name]&&o.push({type:qe.WARNING,description:`UI JSON: an output external data series name must be unique ('${h.name}' is used more than once).`}),f[h.name]=!0,h.name||o.push({type:qe.WARNING,description:"UI JSON: an output external data series name must not be empty."}),h.values.length||o.push({type:qe.WARNING,description:"UI JSON: an output external data series values must not be empty."}),h.values.length!==d.voiValues.length&&o.push({type:qe.WARNING,description:`UI JSON: an output external data series values length must match the output external data VOI values length (${h.values.length} is not equal to ${d.voiValues.length}).`});let p={},m=Tc(new Set(Object.keys(f)));for(let h of d.data)h.id||o.push({type:qe.WARNING,description:"UI JSON: an output external data id must not be empty."}),p[h.id]&&o.push({type:qe.WARNING,description:`UI JSON: an output external data id must be unique ('${h.id}' is used more than once).`}),p[h.id]=!0,h.id&&c[h.id]&&o.push({type:qe.WARNING,description:`UI JSON: an output external data id must be unique across simulation and external data ('${h.id}' is used more than once).`}),h.id&&(c[h.id]=!0),h.name||o.push({type:qe.WARNING,description:"UI JSON: an output external data name must not be empty."}),f[h.name]||o.push({type:qe.WARNING,description:`UI JSON: an output external data name must match one of the available options ('${h.name}' is not one of ${m}).`});d.dataSeries.length||o.push({type:qe.WARNING,description:"UI JSON: an output external data series entries must not be empty."})}for(let d of e.output.plots){let f=(p,m)=>{if(p)try{_i.parse(p)}catch(h){o.push({type:qe.WARNING,description:`UI JSON: an output plot ${m} must be valid ('${p}' is not: ${rr(Bt(h),!1)}).`})}};if(d.xValue?f(d.xValue,"X value"):o.push({type:qe.WARNING,description:"UI JSON: an output plot X value must not be empty."}),d.yValue?f(d.yValue,"Y value"):o.push({type:qe.WARNING,description:"UI JSON: an output plot Y value must not be empty."}),d.additionalTraces!==void 0&&d.additionalTraces!==null)for(let p of d.additionalTraces)p.xValue?f(p.xValue,"X value"):o.push({type:qe.WARNING,description:"UI JSON: an output plot additional trace X value must not be empty."}),p.yValue?f(p.yValue,"Y value"):o.push({type:qe.WARNING,description:"UI JSON: an output plot additional trace Y value must not be empty."})}let l=Tc(i);for(let d of e.parameters)if(d.name?i.size>0&&!i.has(d.name)&&o.push({type:qe.WARNING,description:`UI JSON: a parameter name must match one of the available options ('${d.name}' is not one of ${l}).`}):o.push({type:qe.WARNING,description:"UI JSON: a parameter name must not be empty."}),!d.value)o.push({type:qe.WARNING,description:"UI JSON: a parameter value must not be empty."});else try{_i.parse(d.value)}catch(f){o.push({type:qe.WARNING,description:`UI JSON: a parameter value must be valid ('${d.value}' is not: ${rr(Bt(f),!1)}).`})}return o},it=()=>Ae!==void 0,Js=()=>!it(),IX=()=>it()?at.version():Ui.versionString(),at={},Ui={},FX=e=>{at=e},OX=e=>{Ui=e},RX={class:"space-y-7"},PX={class:"text-center"},LX={class:"text-3xl font-bold"},VX={key:0,class:"text-xl italic font-bold"},_X={class:"text-sm italic"},zX={class:"space-y-2"},UX=a.createElementVNode("a",{href:"https://opencor.ws/",target:"_blank",rel:"noopener"},"OpenCOR",-1),jX=a.createElementVNode("a",{href:"https://opencor.ws/libopencor/",target:"_blank",rel:"noopener"},"libOpenCOR",-1),QX=a.createElementVNode("a",{href:"https://cellml.org/",target:"_blank",rel:"noopener"},"CellML",-1),qX=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"},[a.createElementVNode("a",{href:"https://github.com/opencor/webapp/releases/latest",target:"_blank",rel:"noopener"},"OpenCOR"),a.createTextVNode(":")]),a.createTextVNode(" a desktop application that can be run on "),a.createElementVNode("a",{href:"https://en.wikipedia.org/wiki/List_of_Intel_processors",target:"_blank",rel:"noopener"},"Intel"),a.createTextVNode("-based and "),a.createElementVNode("a",{href:"https://en.wikipedia.org/wiki/ARM_architecture_family",target:"_blank",rel:"noopener"},"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"},[a.createElementVNode("a",{href:"https://opencor.ws/app",target:"_blank",rel:"noopener"},"OpenCOR's Web app"),a.createTextVNode(":")]),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),WX=a.defineComponent({__name:"AboutDialog",emits:["close"],setup(e){return(t,r)=>{let n=wn,i=$o;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",RX,[a.createElementVNode("div",PX,[a.createElementVNode("div",LX,"OpenCOR "+a.toDisplayString(a.unref(Wp)),1),a.unref(Ae)?(a.openBlock(),a.createElementBlock("div",VX,a.toDisplayString(a.unref(Ae).operatingSystem()),1)):a.createCommentVNode("",!0),a.createElementVNode("div",_X,"Copyright "+a.toDisplayString(a.unref(LC)),1)]),a.createElementVNode("div",zX,[a.createElementVNode("div",null,[UX,a.createTextVNode(" is a frontend to "),jX,a.createTextVNode(" "+a.toDisplayString(IX())+", a library that can be used to organise, edit, simulate, and analyse ",1),QX,a.createTextVNode(" files. ")]),qX])])]),_:1})}}}),ta={name:"CheckIcon",extends:It};function HX(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)}ta.render=HX;var Kp={name:"MinusIcon",extends:It};function ZX(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)}Kp.render=ZX;var Ic={name:"BaseEditableHolder",extends:st,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||(r=t.register)==null?void 0:r.call(t,e,this.$formControl))||{}}},$formControl:{immediate:!0,handler:function(e){var t,r;this.formField=((t=this.$pcForm)==null||(r=t.register)==null?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.call(n,{originalEvent:t,value:e})}},computed:{$filled:function(){return Qe(this.d_value)},$invalid:function(){var e,t;return this.invalid??((e=this.$pcFormField)==null||(e=e.$field)==null?void 0:e.invalid)??((t=this.$pcForm)==null||(t=t.states)==null||(t=t[this.$formName])==null?void 0:t.invalid)},$formName:function(){var e;return this.name||((e=this.$formControl)==null?void 0:e.name)},$formControl:function(){var e;return this.formControl||((e=this.$pcFormField)==null?void 0:e.formControl)},$formDefaultValue:function(){var t;var e;return this.d_value??((t=this.$pcFormField)==null?void 0:t.initialValue)??((e=this.$pcForm)==null||(e=e.initialValues)==null?void 0:e[this.$formName])},controlled:function(){return this.$inProps.hasOwnProperty("modelValue")||!this.$inProps.hasOwnProperty("modelValue")&&!this.$inProps.hasOwnProperty("defaultValue")},filled:function(){return this.$filled}}},Ys={name:"BaseInput",extends:Ic,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(){return this.variant??(this.$primevue.config.inputStyle||this.$primevue.config.inputVariant)},$fluid:function(){return this.fluid??!!this.$pcFluid},hasFluid:function(){return this.$fluid}}},GX=Je.extend({name:"checkbox",theme:function(e){var t=e.dt;return`
|
|
1137
1137
|
.p-checkbox {
|
|
1138
1138
|
position: relative;
|
|
@@ -2218,7 +2218,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
2218
2218
|
.pi {
|
|
2219
2219
|
font-family: 'primeicons';
|
|
2220
2220
|
}
|
|
2221
|
-
`;if(!document.head.querySelector('style[primeicons-css="injected"]')){let e=document.createElement("style");e.setAttribute("primeicons-css","injected"),e.textContent=Ure,document.head.appendChild(e)}var aS=[{name:"jsonschema",url:"https://cdn.jsdelivr.net/npm/jsonschema@1.5.0/+esm",set:e=>qY(e)},{name:"JSZip",url:"https://cdn.jsdelivr.net/npm/jszip@3.10.1/+esm",set:e=>WY(e)},{name:"Math.js",url:"https://cdn.jsdelivr.net/npm/mathjs@15.1.1/+esm",set:e=>HY(e)},{name:"Plotly.js",url:"https://cdn.jsdelivr.net/npm/plotly.js-gl2d-dist-min@3.4.0/+esm",set:e=>ZY(e)},{name:"VueTippy",url:"https://cdn.jsdelivr.net/npm/vue-tippy@6.7.1/+esm",set:e=>GY(e),cssUrl:"https://cdn.jsdelivr.net/npm/tippy.js@6.3.7/dist/tippy.css"}],qi=se.ref(0),jre=(Ae?0:2)+aS.reduce((e,t)=>e+ +!!t.url+ +!!t.cssUrl,0)+1,Qre=async()=>{if(window.locApi)FX(window.locApi);else{let e="0.
|
|
2221
|
+
`;if(!document.head.querySelector('style[primeicons-css="injected"]')){let e=document.createElement("style");e.setAttribute("primeicons-css","injected"),e.textContent=Ure,document.head.appendChild(e)}var aS=[{name:"jsonschema",url:"https://cdn.jsdelivr.net/npm/jsonschema@1.5.0/+esm",set:e=>qY(e)},{name:"JSZip",url:"https://cdn.jsdelivr.net/npm/jszip@3.10.1/+esm",set:e=>WY(e)},{name:"Math.js",url:"https://cdn.jsdelivr.net/npm/mathjs@15.1.1/+esm",set:e=>HY(e)},{name:"Plotly.js",url:"https://cdn.jsdelivr.net/npm/plotly.js-gl2d-dist-min@3.4.0/+esm",set:e=>ZY(e)},{name:"VueTippy",url:"https://cdn.jsdelivr.net/npm/vue-tippy@6.7.1/+esm",set:e=>GY(e),cssUrl:"https://cdn.jsdelivr.net/npm/tippy.js@6.3.7/dist/tippy.css"}],qi=se.ref(0),jre=(Ae?0:2)+aS.reduce((e,t)=>e+ +!!t.url+ +!!t.cssUrl,0)+1,Qre=async()=>{if(window.locApi)FX(window.locApi);else{let e="0.20260416.0";try{let t=(await import(Ws(`https://opencor.ws/libopencor/downloads/wasm/${e}/libopencor.js`))).default;++qi.value,OX(await t({locateFile:r=>r.endsWith(".wasm")?Ws(`https://opencor.ws/libopencor/downloads/wasm/${e}/libopencor.wasm`):r})),++qi.value}catch(t){throw console.error("OpenCOR: failed to load libOpenCOR:",Bt(t)),t}}},iS=new Set,qre=(e,t,r,n)=>async()=>{try{let i=await import(t);if(r(i.default??i),++qi.value,n){if(!iS.has(n)){let o=await fetch(n,{mode:"cors"});if(!o.ok)throw Error(`Failed to load ${e??"stylesheet"}: ${o.statusText}`);let s=document.createElement("style");s.textContent=await o.text(),document.head.appendChild(s),iS.add(n)}++qi.value}}catch(i){throw console.error(`OpenCOR: failed to import ${e??t}:`,Bt(i)),i}},nm=e=>{al.value.length||al.value.push({type:qe.INFORMATION,description:"An error occurred while initialising OpenCOR. Please check your setup and reload the page."}),al.value.splice(Math.max(0,al.value.length-1),0,{type:qe.ERROR,description:rr(Bt(e))}),sS.value=!0};Qre().catch(e=>{nm(e)});for(let e of aS)qre(e.name,e.url,e.set,e.cssUrl)().catch(t=>{nm(t)});KY.then(()=>{++qi.value}).catch(e=>{nm(e)});var Wre=se.computed(()=>lS.value>=100),sS=se.ref(!1),al=se.ref([]),lS=se.computed(()=>Math.round(100*qi.value/jre)),uS=(e,t)=>{if(e instanceof Uint8Array||e instanceof File)return{res:!1};let r=`data:${t};base64,`;if(!(e.startsWith(`#${r}`)||e.startsWith(r)))return{res:!1};let n;try{n=atob(e.slice(r.length+ +!!e.startsWith("#")))}catch(o){return{res:!0,error:`The data URL contains invalid Base64 encoding (${rr(Bt(o),!1)}).`}}let i=Uint8Array.from(n,o=>o.charCodeAt(0));return i.length<4||i[0]!==80||i[1]!==75||i[2]!==3||i[3]!==4?{res:!0,error:`The data URL of MIME type ${t} does not contain a ZIP file.`}:{res:!0,data:i}},Hre=async e=>{let t="application/x.vnd.zip-cellml+zip",r=uS(e,t);if(r.res){if(!r.data)return r;try{let n=await new _p().loadAsync(r.data),i=Object.keys(n.files);if(i.length!==1)return{res:!0,error:`The data URL of MIME type ${t} does not contain exactly one (CellML) file.`};let o=i[0],s=n.files[o];return!s||s.dir?{res:!0,error:`The data URL of MIME type ${t} does not contain a valid file.`}:{res:!0,fileName:o,data:await s.async("uint8array")}}catch(n){return{res:!0,error:`The data URL of MIME type ${t} contains an invalid ZIP file (${rr(Bt(n),!1)}).`}}}return{res:!1}},Zre=e=>{let t=uS(e,"application/zip");return t.res?t.data?{res:!0,data:t.data}:t:{res:!1}},il=(e,t,r)=>t||(r?`${XY}${r}`:e instanceof File?Ae?Ae.filePath(e):e.name:typeof e=="string"?e:MC(e)),Gre=(e,t,r)=>typeof e=="string"?Ec(e)?new Promise((n,i)=>{fetch(Ws(e)).then(o=>{if(o.ok)return o.arrayBuffer();throw Error(`Failed to fetch the file through OpenCOR's CORS proxy. The server responded with a status of ${o.status}.`)}).catch(o=>{if(!(o instanceof TypeError))throw Error(Bt(o));return fetch(e).then(s=>{if(s.ok)return s.arrayBuffer();throw Error(`Failed to fetch the file directly. The server responded with a status of ${s.status}.`)})}).then(o=>{let s=new Uint8Array(o);n(new zi(il(e,t,r),s))}).catch(o=>{i(Error(Bt(o)))})}):new Promise((n,i)=>{Ae?n(new zi(il(e,t,r))):i(Error("Local files cannot be opened."))}):e instanceof Uint8Array?new Promise(n=>{n(new zi(il(e,t,r),e))}):new Promise((n,i)=>{e.arrayBuffer().then(o=>{let s=new Uint8Array(o);n(new zi(il(e,t,r),s))}).catch(o=>{i(Error(Bt(o)))})}),Lr=function(e){return e[e.UNKNOWN=0]="UNKNOWN",e[e.VOI=1]="VOI",e[e.STATE=2]="STATE",e[e.RATE=3]="RATE",e[e.CONSTANT=4]="CONSTANT",e[e.COMPUTED_CONSTANT=5]="COMPUTED_CONSTANT",e[e.ALGEBRAIC=6]="ALGEBRAIC",e}({}),_c=(e,t)=>{if(!t)return{type:Lr.UNKNOWN,index:-1};if(t===e.voiName())return{type:Lr.VOI,index:-1};for(let r=0;r<e.stateCount();r++)if(t===e.stateName(r))return{type:Lr.STATE,index:r};for(let r=0;r<e.rateCount();r++)if(t===e.rateName(r))return{type:Lr.RATE,index:r};for(let r=0;r<e.constantCount();r++)if(t===e.constantName(r))return{type:Lr.CONSTANT,index:r};for(let r=0;r<e.computedConstantCount();r++)if(t===e.computedConstantName(r))return{type:Lr.COMPUTED_CONSTANT,index:r};for(let r=0;r<e.algebraicVariableCount();r++)if(t===e.algebraicVariableName(r))return{type:Lr.ALGEBRAIC,index:r};return{type:Lr.UNKNOWN,index:-1}},zc=(e,t)=>{switch(t.type){case Lr.VOI:return{data:e.voi(),unit:e.voiUnit()};case Lr.STATE:return{data:e.state(t.index),unit:e.stateUnit(t.index)};case Lr.RATE:return{data:e.rate(t.index),unit:e.rateUnit(t.index)};case Lr.CONSTANT:return{data:e.constant(t.index),unit:e.constantUnit(t.index)};case Lr.COMPUTED_CONSTANT:return{data:e.computedConstant(t.index),unit:e.computedConstantUnit(t.index)};case Lr.ALGEBRAIC:return{data:e.algebraicVariable(t.index),unit:e.algebraicVariableUnit(t.index)};default:return{...IC}}};function Kre(e,t){return a.getCurrentScope()?(a.onScopeDispose(e,t),!0):!1}function cS(e){let t=!1,r,n=a.effectScope(!0);return(...i)=>(t||(t=(r=n.run(()=>e(...i)),!0)),r)}var Jre=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;var Yre=Object.prototype.toString,Xre=e=>Yre.call(e)==="[object Object]";function om(e){return Array.isArray(e)?e:[e]}function $re(e,t,r){return a.watch(e,t,{...r,immediate:!0})}var Uc=Jre?window:void 0;function am(e){let t=a.toValue(e);return(t==null?void 0:t.$el)??t}function im(...e){let t=(n,i,o,s)=>(n.addEventListener(i,o,s),()=>n.removeEventListener(i,o,s)),r=a.computed(()=>{let n=om(a.toValue(e[0])).filter(i=>i!=null);return n.every(i=>typeof i!="string")?n:void 0});return $re(()=>{var n;return[((n=r.value)==null?void 0:n.map(i=>am(i)))??[Uc].filter(i=>i!=null),om(a.toValue(r.value?e[1]:e[0])),om(a.unref(r.value?e[2]:e[1])),a.toValue(r.value?e[3]:e[2])]},([n,i,o,s],c,u)=>{if(!(n!=null&&n.length)||!(i!=null&&i.length)||!(o!=null&&o.length))return;let l=Xre(s)?{...s}:s,d=n.flatMap(f=>i.flatMap(p=>o.map(m=>t(f,p,m,l))));u(()=>{d.forEach(f=>f())})},{flush:"post"})}function ene(){let e=a.shallowRef(!1),t=a.getCurrentInstance();return t&&a.onMounted(()=>{e.value=!0},t),e}function tne(e){let t=ene();return a.computed(()=>(t.value,!!e()))}function rne(e){return typeof e=="function"?e:typeof e=="string"?t=>t.key===e:Array.isArray(e)?t=>e.includes(t.key):()=>!0}function sm(...e){let t,r,n={};e.length===3?(t=e[0],r=e[1],n=e[2]):e.length===2?typeof e[1]=="object"?(t=!0,r=e[0],n=e[1]):(t=e[0],r=e[1]):(t=!0,r=e[0]);let{target:i=Uc,eventName:o="keydown",passive:s=!1,dedupe:c=!1}=n,u=rne(t);return im(i,o,l=>{l.repeat&&a.toValue(c)||u(l)&&r(l)},s)}function dS(e,t,r={}){let{window:n=Uc,...i}=r,o,s=tne(()=>n&&"ResizeObserver"in n),c=()=>{o&&(o=(o.disconnect(),void 0))},u=a.watch(a.computed(()=>{let d=a.toValue(e);return Array.isArray(d)?d.map(f=>am(f)):[am(d)]}),d=>{if(c(),s.value&&n){o=new ResizeObserver(t);for(let f of d)f&&o.observe(f,i)}},{immediate:!0,flush:"post"}),l=()=>{c(),u()};return Kre(l),{isSupported:s,stop:l}}function nne(e={}){let{window:t=Uc}=e;if(!t)return a.shallowRef(!1);let r=a.shallowRef(t.document.hasFocus()),n={passive:!0};return im(t,"blur",()=>{r.value=!1},n),im(t,"focus",()=>{r.value=!0},n),r}var one=cS(()=>se.ref(null)),fS=cS(()=>{let e=window.matchMedia("(prefers-color-scheme: light)"),t=se.ref(e.matches),r=se.ref(!e.matches),n=se.ref("system"),i=s=>{t.value=s.matches,r.value=!s.matches},o=()=>{document.documentElement.classList.toggle("opencor-dark-mode",r.value)};return e.addEventListener("change",s=>{n.value==="system"&&(i(s),o())}),{theme:()=>n.value,setTheme:s=>{n.value=s??"system",n.value==="light"?(t.value=!0,r.value=!1):n.value==="dark"?(t.value=!1,r.value=!0):i(e),o()},useLightMode:()=>t.value,useDarkMode:()=>r.value}}),ane=(e,t,r)=>{let n=()=>{let o=e.offsetHeight;t.style.setProperty(r,`${o}px`)};n();let{stop:i}=dS(e,()=>{n()},{box:"border-box"});return i},ine=Je.extend({name:"tabs",theme:function(e){var t=e.dt;return`
|
|
2222
2222
|
.p-tabs {
|
|
2223
2223
|
display: flex;
|
|
2224
2224
|
flex-direction: column;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abi-software/simulationvuer",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.17",
|
|
4
4
|
"private": false,
|
|
5
5
|
"scripts": {
|
|
6
6
|
"serve": "vite serve --host --force",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
23
|
"@abi-software/plotvuer": "1.0.7",
|
|
24
|
-
"@opencor/opencor": "^0.
|
|
24
|
+
"@opencor/opencor": "^0.20260416.0",
|
|
25
25
|
"element-plus": "2.8.4",
|
|
26
26
|
"jsonschema": "^1.4.0",
|
|
27
27
|
"mathjs": "^15.1.0",
|