@opencor/opencor 0.20250814.1 → 0.20250814.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -9322,7 +9322,7 @@ async function vP() {
|
|
|
9322
9322
|
console.error("Failed to load libOpenCOR's WebAssembly module:", t);
|
|
9323
9323
|
}
|
|
9324
9324
|
}
|
|
9325
|
-
const yP = "0.20250814.
|
|
9325
|
+
const yP = "0.20250814.4", bP = { class: "space-y-7" }, xP = { class: "text-center" }, wP = { class: "text-3xl font-bold" }, CP = {
|
|
9326
9326
|
key: 0,
|
|
9327
9327
|
class: "text-xl italic font-bold"
|
|
9328
9328
|
}, _P = { class: "text-sm italic" }, kP = { class: "space-y-2" }, AP = /* @__PURE__ */ ul({
|
|
@@ -84985,7 +84985,7 @@ var RA = (function() {
|
|
|
84985
84985
|
formats: this.formats,
|
|
84986
84986
|
placeholder: this.placeholder
|
|
84987
84987
|
};
|
|
84988
|
-
RA ? (this.quill = new RA(this.$refs.editorElement, r), this.initQuill(), this.handleLoad()) : import("./quill-
|
|
84988
|
+
RA ? (this.quill = new RA(this.$refs.editorElement, r), this.initQuill(), this.handleLoad()) : import("./quill-DZsCWNRW.js").then(function(n) {
|
|
84989
84989
|
n && SM(e.$refs.editorElement) && (n.default ? e.quill = new n.default(e.$refs.editorElement, r) : e.quill = new n(e.$refs.editorElement, r), e.initQuill());
|
|
84990
84990
|
}).then(function() {
|
|
84991
84991
|
e.handleLoad();
|
package/dist/opencor.es.js
CHANGED
package/dist/opencor.umd.js
CHANGED
|
@@ -1504,7 +1504,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
1504
1504
|
`,bI={root:function(e){var r=e.instance,n=e.props;return["p-checkbox p-component",{"p-checkbox-checked":r.checked,"p-disabled":n.disabled,"p-invalid":r.$pcCheckboxGroup?r.$pcCheckboxGroup.$invalid:r.$invalid,"p-variant-filled":r.$variant==="filled","p-checkbox-sm p-inputfield-sm":n.size==="small","p-checkbox-lg p-inputfield-lg":n.size==="large"}]},box:"p-checkbox-box",input:"p-checkbox-input",icon:"p-checkbox-icon"},xI=Ai.extend({name:"checkbox",style:yI,classes:bI}),wI={name:"BaseCheckbox",extends:J0,props:{value:null,binary:Boolean,indeterminate:{type:Boolean,default:!1},trueValue:{type:null,default:!0},falseValue:{type:null,default:!1},readonly:{type:Boolean,default:!1},required:{type:Boolean,default:!1},tabindex:{type:Number,default:null},inputId:{type:String,default:null},inputClass:{type:[String,Object],default:null},inputStyle:{type:Object,default:null},ariaLabelledby:{type:String,default:null},ariaLabel:{type:String,default:null}},style:xI,provide:function(){return{$pcCheckbox:this,$parentInstance:this}}};function K0(t){"@babel/helpers - typeof";return K0=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},K0(t)}function CI(t,e,r){return(e=kI(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function kI(t){var e=AI(t,"string");return K0(e)=="symbol"?e:e+""}function AI(t,e){if(K0(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(K0(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function _I(t){return EI(t)||MI(t)||TI(t)||SI()}function SI(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
1505
1505
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function TI(t,e){if(t){if(typeof t=="string")return zx(t,e);var r={}.toString.call(t).slice(8,-1);return r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set"?Array.from(t):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?zx(t,e):void 0}}function MI(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function EI(t){if(Array.isArray(t))return zx(t)}function zx(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}var Sy={name:"Checkbox",extends:wI,inheritAttrs:!1,emits:["change","focus","blur","update:indeterminate"],inject:{$pcCheckboxGroup:{default:void 0}},data:function(){return{d_indeterminate:this.indeterminate}},watch:{indeterminate:function(e){this.d_indeterminate=e}},methods:{getPTOptions:function(e){var r=e==="root"?this.ptmi:this.ptm;return r(e,{context:{checked:this.checked,indeterminate:this.d_indeterminate,disabled:this.disabled}})},onChange:function(e){var r=this;if(!this.disabled&&!this.readonly){var n=this.$pcCheckboxGroup?this.$pcCheckboxGroup.d_value:this.d_value,i;this.binary?i=this.d_indeterminate?this.trueValue:this.checked?this.falseValue:this.trueValue:this.checked||this.d_indeterminate?i=n.filter(function(a){return!Jd(a,r.value)}):i=n?[].concat(_I(n),[this.value]):[this.value],this.d_indeterminate&&(this.d_indeterminate=!1,this.$emit("update:indeterminate",this.d_indeterminate)),this.$pcCheckboxGroup?this.$pcCheckboxGroup.writeValue(i,e):this.writeValue(i,e),this.$emit("change",e)}},onFocus:function(e){this.$emit("focus",e)},onBlur:function(e){var r,n;this.$emit("blur",e),(r=(n=this.formField).onBlur)===null||r===void 0||r.call(n,e)}},computed:{groupName:function(){return this.$pcCheckboxGroup?this.$pcCheckboxGroup.groupName:this.$formName},checked:function(){var e=this.$pcCheckboxGroup?this.$pcCheckboxGroup.d_value:this.d_value;return this.d_indeterminate?!1:this.binary?e===this.trueValue:kO(this.value,e)},dataP:function(){return Ts(CI({invalid:this.$invalid,checked:this.checked,disabled:this.disabled,filled:this.$variant==="filled"},this.size,this.size))}},components:{CheckIcon:Yf,MinusIcon:Px}},DI=["data-p-checked","data-p-indeterminate","data-p-disabled","data-p"],NI=["id","value","name","checked","tabindex","disabled","readonly","required","aria-labelledby","aria-label","aria-invalid","aria-checked"],OI=["data-p"];function BI(t,e,r,n,i,a){var s=x.resolveComponent("CheckIcon"),l=x.resolveComponent("MinusIcon");return x.openBlock(),x.createElementBlock("div",x.mergeProps({class:t.cx("root")},a.getPTOptions("root"),{"data-p-checked":a.checked,"data-p-indeterminate":i.d_indeterminate||void 0,"data-p-disabled":t.disabled,"data-p":a.dataP}),[x.createElementVNode("input",x.mergeProps({id:t.inputId,type:"checkbox",class:[t.cx("input"),t.inputClass],style:t.inputStyle,value:t.value,name:a.groupName,checked:a.checked,tabindex:t.tabindex,disabled:t.disabled,readonly:t.readonly,required:t.required,"aria-labelledby":t.ariaLabelledby,"aria-label":t.ariaLabel,"aria-invalid":t.invalid||void 0,"aria-checked":i.d_indeterminate?"mixed":void 0,onFocus:e[0]||(e[0]=function(){return a.onFocus&&a.onFocus.apply(a,arguments)}),onBlur:e[1]||(e[1]=function(){return a.onBlur&&a.onBlur.apply(a,arguments)}),onChange:e[2]||(e[2]=function(){return a.onChange&&a.onChange.apply(a,arguments)})},a.getPTOptions("input")),null,16,NI),x.createElementVNode("div",x.mergeProps({class:t.cx("box")},a.getPTOptions("box"),{"data-p":a.dataP}),[x.renderSlot(t.$slots,"icon",{checked:a.checked,indeterminate:i.d_indeterminate,class:x.normalizeClass(t.cx("icon")),dataP:a.dataP},function(){return[a.checked?(x.openBlock(),x.createBlock(s,x.mergeProps({key:0,class:t.cx("icon")},a.getPTOptions("icon"),{"data-p":a.dataP}),null,16,["class","data-p"])):i.d_indeterminate?(x.openBlock(),x.createBlock(l,x.mergeProps({key:1,class:t.cx("icon")},a.getPTOptions("icon"),{"data-p":a.dataP}),null,16,["class","data-p"])):x.createCommentVNode("",!0)]})],16,OI)],16,DI)}Sy.render=BI;/*! js-cookie v3.0.5 | MIT */function Ty(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)t[n]=r[n]}return t}var FI={read:function(t){return t[0]==='"'&&(t=t.slice(1,-1)),t.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(t){return encodeURIComponent(t).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function $x(t,e){function r(i,a,s){if(!(typeof document>"u")){s=Ty({},e,s),typeof s.expires=="number"&&(s.expires=new Date(Date.now()+s.expires*864e5)),s.expires&&(s.expires=s.expires.toUTCString()),i=encodeURIComponent(i).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var l="";for(var u in s)s[u]&&(l+="; "+u,s[u]!==!0&&(l+="="+s[u].split(";")[0]));return document.cookie=i+"="+t.write(a,i)+l}}function n(i){if(!(typeof document>"u"||arguments.length&&!i)){for(var a=document.cookie?document.cookie.split("; "):[],s={},l=0;l<a.length;l++){var u=a[l].split("="),o=u.slice(1).join("=");try{var g=decodeURIComponent(u[0]);if(s[g]=t.read(o,g),i===g)break}catch{}}return i?s[i]:s}}return Object.create({set:r,get:n,remove:function(i,a){r(i,"",Ty({},a,{expires:-1}))},withAttributes:function(i){return $x(this.converter,Ty({},this.attributes,i))},withConverter:function(i){return $x(Ty({},this.converter,i),this.attributes)}},{attributes:{value:Object.freeze(e)},converter:{value:Object.freeze(t)}})}var zC=$x(FI,{path:"/"});class Ux{static _instance=null;_settings;_isInitialised=!1;_initialisationListeners=[];constructor(){this.reset(),this.load()}static instance(){return this._instance??=new Ux,this._instance}emitInitialised(){this._isInitialised=!0,this._initialisationListeners.forEach(e=>{e()}),this._initialisationListeners=[]}onInitialised(e){this._isInitialised?e():this._initialisationListeners.push(e)}load(){if(io!==void 0)io.loadSettings().then(e=>{this._settings=e,this.emitInitialised()});else{const e=zC.get("settings");if(e!==void 0)try{this._settings=JSON.parse(e)}catch(r){console.error("Failed to parse settings from cookie, so resetting to defaults:",r),this.reset()}this.emitInitialised()}}save(){io!==void 0?io.saveSettings(this._settings):zC.set("settings",JSON.stringify(this._settings),{expires:365})}reset(){this._settings={general:{checkForUpdatesAtStartup:!0}}}toString(){return JSON.stringify(this._settings,null,2)}get general(){return this._settings.general}}const X0=Ux.instance(),II={class:"flex gap-2 items-center"},LI=x.defineComponent({__name:"SettingsDialog",emits:["close"],setup(t,{emit:e}){const r=e,n=di.ref(X0.general.checkForUpdatesAtStartup);function i(){n.value=X0.general.checkForUpdatesAtStartup}X0.onInitialised(()=>{i()});function a(){X0.general.checkForUpdatesAtStartup=n.value,X0.save(),r("close")}return(s,l)=>{const u=Sy,o=lc,g=tp;return x.openBlock(),x.createBlock(g,{header:"Settings...",onHide:i},{footer:x.withCtx(()=>[x.createVNode(o,{autofocus:"",label:"OK",onClick:a}),x.createVNode(o,{label:"Cancel",severity:"secondary",onClick:l[1]||(l[1]=b=>s.$emit("close"))})]),default:x.withCtx(()=>[x.createElementVNode("div",II,[x.createVNode(u,{inputId:"checkForUpdatesAtStartup",binary:!0,modelValue:x.unref(n),"onUpdate:modelValue":l[0]||(l[0]=b=>x.isRef(n)?n.value=b:null)},null,8,["modelValue"]),l[2]||(l[2]=x.createElementVNode("label",{for:"checkForUpdatesAtStartup"},"Check for updates at startup",-1))])]),_:1})}}}),$C=69,PI=169,jx=3e3,UC=new Date().getFullYear(),RI=UC===2025?"2025":`2025-${String(UC)}`;function jC(t){return`https://corsproxy.io/?url=${encodeURIComponent(t)}`}function My(t){return t.startsWith("http://")||t.startsWith("https://")}function Ey(t){return t instanceof File?io!==void 0?io.filePath(t):t.name:t}function zI(t){return typeof t=="string"?My(t)?new Promise((e,r)=>{fetch(jC(t)).then(n=>{if(n.ok)return n.arrayBuffer();throw new Error(`The server responded with a status of ${String(n.status)}.`)}).then(n=>{const i=new Uint8Array(n);e(new Hx(Ey(t),i))}).catch(n=>{r(n instanceof Error?n:new Error(String(n)))})}):new Promise((e,r)=>{io!==void 0?e(new Hx(Ey(t))):r(new Error("Local files cannot be opened."))}):new Promise((e,r)=>{t.arrayBuffer().then(n=>{const i=new Uint8Array(n);e(new Hx(Ey(t),i))}).catch(n=>{r(n instanceof Error?n:new Error(String(n)))})})}function qx(t,e){if(e==="")return{type:0,index:-1};if(e===t.voiName())return{type:1,index:-1};for(let r=0;r<t.stateCount();r++)if(e===t.stateName(r))return{type:2,index:r};for(let r=0;r<t.rateCount();r++)if(e===t.rateName(r))return{type:3,index:r};for(let r=0;r<t.constantCount();r++)if(e===t.constantName(r))return{type:4,index:r};for(let r=0;r<t.computedConstantCount();r++)if(e===t.computedConstantName(r))return{type:5,index:r};for(let r=0;r<t.algebraicCount();r++)if(e===t.algebraicName(r))return{type:6,index:r};return{type:0,index:-1}}function Vx(t,e){switch(e.type){case 1:return t.voi();case 2:return t.state(e.index);case 3:return t.rate(e.index);case 4:return t.constant(e.index);case 5:return t.computedConstant(e.index);case 6:return t.algebraic(e.index);default:return[]}}class $I{_fileManager=void 0;fileManager(){return this._fileManager===void 0&&!qi()&&(this._fileManager=np.FileManager.instance()),this._fileManager}unmanage(e){if(qi())Vi.fileManagerUnmanage(e);else{const r=this.fileManager();if(r!==void 0){const n=r.files;for(let i=0;i<n.size();++i){const a=n.get(i);if(a.fileName===e){r.unmanage(a);break}}}}}}const UI=new $I;var ev=(t=>(t[t.UNKNOWN_FILE=0]="UNKNOWN_FILE",t[t.CELLML_FILE=1]="CELLML_FILE",t[t.SEDML_FILE=2]="SEDML_FILE",t[t.COMBINE_ARCHIVE=3]="COMBINE_ARCHIVE",t[t.IRRETRIEVABLE_FILE=4]="IRRETRIEVABLE_FILE",t))(ev||{});let Hx=class{_path;_wasmFile={};_document={};_instance={};_issues=[];constructor(e,r=void 0){if(this._path=e,qi())Vi.fileCreate(e,r),this._issues=Vi.fileIssues(e);else if(r!==void 0){this._wasmFile=new np.File(e);const g=np._malloc(r.length);new Uint8Array(np.HEAPU8.buffer,g,r.length).set(r),this._wasmFile.setContents(g,r.length),this._issues=Qx(this._wasmFile.issues)}else{console.error(`No contents provided for file '${e}'.`);return}if(this._issues.length!==0||(this._document=di.markRaw(new jI(this._path,this._wasmFile)),this._issues=this._document.issues(),this._issues.length!==0))return;if(this._document.modelCount()!==1){this._issues.push({type:qo.WARNING,description:"Only SED-ML files with one model are currently supported."});return}if(this._document.simulationCount()!==1){this._issues.push({type:qo.WARNING,description:"Only SED-ML files with one simulation are currently supported."});return}const a=this._document.simulation(0);if(a.type()!==qC.UNIFORM_TIME_COURSE){this._issues.push({type:qo.WARNING,description:"Only uniform time course simulations are currently supported."});return}const s=a.initialTime(),l=a.outputStartTime(),u=a.outputEndTime(),o=a.numberOfSteps();s!==l&&this._issues.push({type:qo.WARNING,description:`Only uniform time course simulations with the same values for 'initialTime' (${String(s)}) and 'outputStartTime' (${String(l)}) are currently supported.`}),l===u&&this._issues.push({type:qo.ERROR,description:`The uniform time course simulation must have different values for 'outputStartTime' (${String(l)}) and 'outputEndTime' (${String(u)}).`}),o<=0&&this._issues.push({type:qo.ERROR,description:`The uniform time course simulation must have a positive value for 'numberOfSteps' (${String(o)}).`}),this._issues.length===0&&(this._instance=this._document.instantiate(),this._issues=this._instance.issues())}type(){return qi()?Vi.fileType(this._path):this._wasmFile.type.value}path(){return this._path}issues(){return this._issues}contents(){return qi()?Vi.fileContents(this._path):this._wasmFile.contents()}document(){return this._document}instance(){return this._instance}uiJson(){let e;if(qi()){if(e=Vi.fileUiJson(this._path),e===void 0)return}else{const n=this._wasmFile.childFileFromFileName("simulation.json");if(n===null)return;e=n.contents()}const r=new TextDecoder;return JSON.parse(r.decode(e))}};var qo=(t=>(t[t.ERROR=0]="ERROR",t[t.WARNING=1]="WARNING",t))(qo||{});function Qx(t){const e=[];for(let r=0;r<t.size();++r){const n=t.get(r);e.push({type:n.type.value,description:n.description})}return e}class Wx{_filePath;constructor(e){this._filePath=e}}class Gx extends Wx{_index;constructor(e,r){super(e),this._index=r}}class jI extends Wx{_wasmSedDocument={};constructor(e,r){super(e),qi()?Vi.sedDocumentCreate(this._filePath):this._wasmSedDocument=new np.SedDocument(r)}issues(){return qi()?Vi.sedDocumentIssues(this._filePath):Qx(this._wasmSedDocument.issues)}modelCount(){return qi()?Vi.sedDocumentModelCount(this._filePath):this._wasmSedDocument.modelCount}model(e){return new qI(this._filePath,e,this._wasmSedDocument)}simulationCount(){return qi()?Vi.sedDocumentSimulationCount(this._filePath):this._wasmSedDocument.simulationCount}simulation(e){let r;if(qi())r=Vi.sedDocumentSimulationType(this._filePath,e);else switch(this._wasmSedDocument.simulation(e).constructor.name){case"SedAnalysis":r=0;break;case"SedSteadyState":r=1;break;case"SedOneStep":r=2;break;default:r=3}return r===0?new VI(this._filePath,e,this._wasmSedDocument,r):r===1?new HI(this._filePath,e,this._wasmSedDocument,r):r===2?new QI(this._filePath,e,this._wasmSedDocument,r):new WI(this._filePath,e,this._wasmSedDocument,r)}instantiate(){return new GI(this._filePath,this._wasmSedDocument)}}class qI extends Gx{_wasmSedModel={};constructor(e,r,n){super(e,r),Oy()&&(this._wasmSedModel=n.model(r))}addChange(e,r,n){qi()?Vi.sedDocumentModelAddChange(this._filePath,this._index,e,r,n):this._wasmSedModel.addChange(new np.SedChangeAttribute(e,r,n))}removeAllChanges(){qi()?Vi.sedDocumentModelRemoveAllChanges(this._filePath,this._index):this._wasmSedModel.removeAllChanges()}}var qC=(t=>(t[t.ANALYSIS=0]="ANALYSIS",t[t.STEADY_STATE=1]="STEADY_STATE",t[t.ONE_STEP=2]="ONE_STEP",t[t.UNIFORM_TIME_COURSE=3]="UNIFORM_TIME_COURSE",t))(qC||{});class Dy extends Gx{_type;constructor(e,r,n,i){super(e,r),this._type=i}type(){return this._type}}class VI extends Dy{}class HI extends Dy{}class QI extends Dy{_wasmSedSimulationOneStep={};constructor(e,r,n,i){super(e,r,n,i),Oy()&&(this._wasmSedSimulationOneStep=n.simulation(r))}step(){return qi()?Vi.sedDocumentSimulationOneStepStep(this._filePath,this._index):this._wasmSedSimulationOneStep.step}}class WI extends Dy{_wasmSedSimulationUniformTimeCourse={};constructor(e,r,n,i){super(e,r,n,i),Oy()&&(this._wasmSedSimulationUniformTimeCourse=n.simulation(r))}initialTime(){return qi()?Vi.sedDocumentSimulationUniformTimeCourseInitialTime(this._filePath,this._index):this._wasmSedSimulationUniformTimeCourse.initialTime}outputStartTime(){return qi()?Vi.sedDocumentSimulationUniformTimeCourseOutputStartTime(this._filePath,this._index):this._wasmSedSimulationUniformTimeCourse.outputStartTime}setOutputStartTime(e){qi()?Vi.sedDocumentSimulationUniformTimeCourseSetOutputStartTime(this._filePath,this._index,e):this._wasmSedSimulationUniformTimeCourse.outputStartTime=e}outputEndTime(){return qi()?Vi.sedDocumentSimulationUniformTimeCourseOutputEndTime(this._filePath,this._index):this._wasmSedSimulationUniformTimeCourse.outputEndTime}setOutputEndTime(e){qi()?Vi.sedDocumentSimulationUniformTimeCourseSetOutputEndTime(this._filePath,this._index,e):this._wasmSedSimulationUniformTimeCourse.outputEndTime=e}numberOfSteps(){return qi()?Vi.sedDocumentSimulationUniformTimeCourseNumberOfSteps(this._filePath,this._index):this._wasmSedSimulationUniformTimeCourse.numberOfSteps}setNumberOfSteps(e){qi()?Vi.sedDocumentSimulationUniformTimeCourseSetNumberOfSteps(this._filePath,this._index,e):this._wasmSedSimulationUniformTimeCourse.numberOfSteps=e}}class GI extends Wx{_wasmSedInstance={};constructor(e,r){super(e),qi()?Vi.sedDocumentInstantiate(this._filePath):this._wasmSedInstance=di.markRaw(r.instantiate())}issues(){return qi()?Vi.sedInstanceIssues(this._filePath):Qx(this._wasmSedInstance.issues)}task(e){return new YI(this._filePath,e,this._wasmSedInstance)}run(){return qi()?Vi.sedInstanceRun(this._filePath):this._wasmSedInstance.run()}}class YI extends Gx{_wasmSedInstanceTask={};constructor(e,r,n){super(e,r),Oy()&&(this._wasmSedInstanceTask=n.task(r))}voiName(){return qi()?Vi.sedInstanceTaskVoiName(this._filePath,this._index):this._wasmSedInstanceTask.voiName}voiUnit(){return qi()?Vi.sedInstanceTaskVoiUnit(this._filePath,this._index):this._wasmSedInstanceTask.voiUnit}voi(){return qi()?Vi.sedInstanceTaskVoi(this._filePath,this._index):this._wasmSedInstanceTask.voiAsArray}stateCount(){return qi()?Vi.sedInstanceTaskStateCount(this._filePath,this._index):this._wasmSedInstanceTask.stateCount}stateName(e){return qi()?Vi.sedInstanceTaskStateName(this._filePath,this._index,e):this._wasmSedInstanceTask.stateName(e)}stateUnit(e){return qi()?Vi.sedInstanceTaskStateUnit(this._filePath,this._index,e):this._wasmSedInstanceTask.stateUnit(e)}state(e){return qi()?Vi.sedInstanceTaskState(this._filePath,this._index,e):this._wasmSedInstanceTask.stateAsArray(e)}rateCount(){return qi()?Vi.sedInstanceTaskRateCount(this._filePath,this._index):this._wasmSedInstanceTask.rateCount}rateName(e){return qi()?Vi.sedInstanceTaskRateName(this._filePath,this._index,e):this._wasmSedInstanceTask.rateName(e)}rateUnit(e){return qi()?Vi.sedInstanceTaskRateUnit(this._filePath,this._index,e):this._wasmSedInstanceTask.rateUnit(e)}rate(e){return qi()?Vi.sedInstanceTaskRate(this._filePath,this._index,e):this._wasmSedInstanceTask.rateAsArray(e)}constantCount(){return qi()?Vi.sedInstanceTaskConstantCount(this._filePath,this._index):this._wasmSedInstanceTask.constantCount}constantName(e){return qi()?Vi.sedInstanceTaskConstantName(this._filePath,this._index,e):this._wasmSedInstanceTask.constantName(e)}constantUnit(e){return qi()?Vi.sedInstanceTaskConstantUnit(this._filePath,this._index,e):this._wasmSedInstanceTask.constantUnit(e)}constant(e){return qi()?Vi.sedInstanceTaskConstant(this._filePath,this._index,e):this._wasmSedInstanceTask.constantAsArray(e)}computedConstantCount(){return qi()?Vi.sedInstanceTaskComputedConstantCount(this._filePath,this._index):this._wasmSedInstanceTask.computedConstantCount}computedConstantName(e){return qi()?Vi.sedInstanceTaskComputedConstantName(this._filePath,this._index,e):this._wasmSedInstanceTask.computedConstantName(e)}computedConstantUnit(e){return qi()?Vi.sedInstanceTaskComputedConstantUnit(this._filePath,this._index,e):this._wasmSedInstanceTask.computedConstantUnit(e)}computedConstant(e){return qi()?Vi.sedInstanceTaskComputedConstant(this._filePath,this._index,e):this._wasmSedInstanceTask.computedConstantAsArray(e)}algebraicCount(){return qi()?Vi.sedInstanceTaskAlgebraicCount(this._filePath,this._index):this._wasmSedInstanceTask.algebraicCount}algebraicName(e){return qi()?Vi.sedInstanceTaskAlgebraicName(this._filePath,this._index,e):this._wasmSedInstanceTask.algebraicName(e)}algebraicUnit(e){return qi()?Vi.sedInstanceTaskAlgebraicUnit(this._filePath,this._index,e):this._wasmSedInstanceTask.algebraicUnit(e)}algebraic(e){return qi()?Vi.sedInstanceTaskAlgebraic(this._filePath,this._index,e):this._wasmSedInstanceTask.algebraicAsArray(e)}}var rp=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ph(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function ZI(t){if(Object.prototype.hasOwnProperty.call(t,"__esModule"))return t;var e=t.default;if(typeof e=="function"){var r=function n(){var i=!1;try{i=this instanceof n}catch{}return i?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};r.prototype=e.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(t).forEach(function(n){var i=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(r,n,i.get?i:{enumerable:!0,get:function(){return t[n]}})}),r}var kd={},Bl={},VC;function hh(){if(VC)return Bl;VC=1;var t=Bl.ValidationError=function(P,J,ee,Ce,fe,he){if(Array.isArray(Ce)?(this.path=Ce,this.property=Ce.reduce(function(xe,Pe){return xe+l(Pe)},"instance")):Ce!==void 0&&(this.property=Ce),P&&(this.message=P),ee){var ve=ee.$id||ee.id;this.schema=ve||ee}J!==void 0&&(this.instance=J),this.name=fe,this.argument=he,this.stack=this.toString()};t.prototype.toString=function(){return this.property+" "+this.message};var e=Bl.ValidatorResult=function(P,J,ee,Ce){this.instance=P,this.schema=J,this.options=ee,this.path=Ce.path,this.propertyPath=Ce.propertyPath,this.errors=[],this.throwError=ee&&ee.throwError,this.throwFirst=ee&&ee.throwFirst,this.throwAll=ee&&ee.throwAll,this.disableFormat=ee&&ee.disableFormat===!0};e.prototype.addError=function(P){var J;if(typeof P=="string")J=new t(P,this.instance,this.schema,this.path);else{if(!P)throw new Error("Missing error detail");if(!P.message)throw new Error("Missing error message");if(!P.name)throw new Error("Missing validator type");J=new t(P.message,this.instance,this.schema,this.path,P.name,P.argument)}if(this.errors.push(J),this.throwFirst)throw new n(this);if(this.throwError)throw J;return J},e.prototype.importErrors=function(P){typeof P=="string"||P&&P.validatorType?this.addError(P):P&&P.errors&&(this.errors=this.errors.concat(P.errors))};function r(L,P){return P+": "+L.toString()+`
|
|
1506
1506
|
`}e.prototype.toString=function(P){return this.errors.map(r).join("")},Object.defineProperty(e.prototype,"valid",{get:function(){return!this.errors.length}}),Bl.ValidatorResultError=n;function n(L){typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(this,n),this.instance=L.instance,this.schema=L.schema,this.options=L.options,this.errors=L.errors}n.prototype=new Error,n.prototype.constructor=n,n.prototype.name="Validation Error";var i=Bl.SchemaError=function L(P,J){this.message=P,this.schema=J,Error.call(this,P),typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(this,L)};i.prototype=Object.create(Error.prototype,{constructor:{value:i,enumerable:!1},name:{value:"SchemaError",enumerable:!1}});var a=Bl.SchemaContext=function(P,J,ee,Ce,fe){this.schema=P,this.options=J,Array.isArray(ee)?(this.path=ee,this.propertyPath=ee.reduce(function(he,ve){return he+l(ve)},"instance")):this.propertyPath=ee,this.base=Ce,this.schemas=fe};a.prototype.resolve=function(P){return S(this.base,P)},a.prototype.makeChild=function(P,J){var ee=J===void 0?this.path:this.path.concat([J]),Ce=P.$id||P.id;let fe=S(this.base,Ce||"");var he=new a(P,this.options,ee,fe,Object.create(this.schemas));return Ce&&!he.schemas[fe]&&(he.schemas[fe]=P),he};var s=Bl.FORMAT_REGEXPS={"date-time":/^\d{4}-(?:0[0-9]{1}|1[0-2]{1})-(3[01]|0[1-9]|[12][0-9])[tT ](2[0-4]|[01][0-9]):([0-5][0-9]):(60|[0-5][0-9])(\.\d+)?([zZ]|[+-]([0-5][0-9]):(60|[0-5][0-9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]|~[01])*)*)$/iu,hostname:/^(?=.{1,255}$)[0-9A-Za-z](?:(?:[0-9A-Za-z]|-){0,61}[0-9A-Za-z])?(?:\.[0-9A-Za-z](?:(?:[0-9A-Za-z]|-){0,61}[0-9A-Za-z])?)*\.?$/,"host-name":/^(?=.{1,255}$)[0-9A-Za-z](?:(?:[0-9A-Za-z]|-){0,61}[0-9A-Za-z])?(?:\.[0-9A-Za-z](?:(?:[0-9A-Za-z]|-){0,61}[0-9A-Za-z])?)*\.?$/,"utc-millisec":function(L){return typeof L=="string"&&parseFloat(L)===parseInt(L,10)&&!isNaN(L)},regex:function(L){var P=!0;try{new RegExp(L)}catch{P=!1}return P},style:/[\r\n\t ]*[^\r\n\t ][^:]*:[\r\n\t ]*[^\r\n\t ;]*[\r\n\t ]*;?/,color:/^(#?([0-9A-Fa-f]{3}){1,2}\b|aqua|black|blue|fuchsia|gray|green|lime|maroon|navy|olive|orange|purple|red|silver|teal|white|yellow|(rgb\(\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*,\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*,\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*\))|(rgb\(\s*(\d?\d%|100%)+\s*,\s*(\d?\d%|100%)+\s*,\s*(\d?\d%|100%)+\s*\)))$/,phone:/^\+(?:[0-9] ?){6,14}[0-9]$/,alpha:/^[a-zA-Z]+$/,alphanumeric:/^[a-zA-Z0-9]+$/};s.regexp=s.regex,s.pattern=s.regex,s.ipv4=s["ip-address"],Bl.isFormat=function(P,J,ee){if(typeof P=="string"&&s[J]!==void 0){if(s[J]instanceof RegExp)return s[J].test(P);if(typeof s[J]=="function")return s[J](P)}else if(ee&&ee.customFormats&&typeof ee.customFormats[J]=="function")return ee.customFormats[J](P);return!0};var l=Bl.makeSuffix=function(P){return P=P.toString(),!P.match(/[.\s\[\]]/)&&!P.match(/^[\d]/)?"."+P:P.match(/^\d+$/)?"["+P+"]":"["+JSON.stringify(P)+"]"};Bl.deepCompareStrict=function L(P,J){if(typeof P!=typeof J)return!1;if(Array.isArray(P))return!Array.isArray(J)||P.length!==J.length?!1:P.every(function(fe,he){return L(P[he],J[he])});if(typeof P=="object"){if(!P||!J)return P===J;var ee=Object.keys(P),Ce=Object.keys(J);return ee.length!==Ce.length?!1:ee.every(function(fe){return L(P[fe],J[fe])})}return P===J};function u(L,P,J,ee){typeof J=="object"?P[ee]=b(L[ee],J):L.indexOf(J)===-1&&P.push(J)}function o(L,P,J){P[J]=L[J]}function g(L,P,J,ee){typeof P[ee]!="object"||!P[ee]?J[ee]=P[ee]:L[ee]?J[ee]=b(L[ee],P[ee]):J[ee]=P[ee]}function b(L,P){var J=Array.isArray(P),ee=J&&[]||{};return J?(L=L||[],ee=ee.concat(L),P.forEach(u.bind(null,L,ee))):(L&&typeof L=="object"&&Object.keys(L).forEach(o.bind(null,L,ee)),Object.keys(P).forEach(g.bind(null,L,P,ee))),ee}Bl.deepMerge=b,Bl.objectGetPath=function(P,J){for(var ee=J.split("/").slice(1),Ce;typeof(Ce=ee.shift())=="string";){var fe=decodeURIComponent(Ce.replace(/~0/,"~").replace(/~1/g,"/"));if(!(fe in P))return;P=P[fe]}return P};function k(L){return"/"+encodeURIComponent(L).replace(/~/g,"%7E")}Bl.encodePath=function(P){return P.map(k).join("")},Bl.getDecimalPlaces=function(P){var J=0;if(isNaN(P))return J;typeof P!="number"&&(P=Number(P));var ee=P.toString().split("e");if(ee.length===2){if(ee[1][0]!=="-")return J;J=Number(ee[1].slice(1))}var Ce=ee[0].split(".");return Ce.length===2&&(J+=Ce[1].length),J},Bl.isSchema=function(P){return typeof P=="object"&&P||typeof P=="boolean"};var S=Bl.resolveUrl=function(P,J){const ee=new URL(J,new URL(P,"resolve://"));if(ee.protocol==="resolve:"){const{pathname:Ce,search:fe,hash:he}=ee;return Ce+fe+he}return ee.toString()};return Bl}var Yx,HC;function JI(){if(HC)return Yx;HC=1;var t=hh(),e=t.ValidatorResult,r=t.SchemaError,n={};n.ignoreProperties={id:!0,default:!0,description:!0,title:!0,additionalItems:!0,then:!0,else:!0,$schema:!0,$ref:!0,extends:!0};var i=n.validators={};i.type=function(b,k,S,L){if(b===void 0)return null;var P=new e(b,k,S,L),J=Array.isArray(k.type)?k.type:[k.type];if(!J.some(this.testType.bind(this,b,k,S,L))){var ee=J.map(function(Ce){if(Ce){var fe=Ce.$id||Ce.id;return fe?"<"+fe+">":Ce+""}});P.addError({name:"type",argument:ee,message:"is not of a type(s) "+ee})}return P};function a(g,b,k,S,L){var P=b.throwError,J=b.throwAll;b.throwError=!1,b.throwAll=!1;var ee=this.validateSchema(g,L,b,k);return b.throwError=P,b.throwAll=J,!ee.valid&&S instanceof Function&&S(ee),ee.valid}i.anyOf=function(b,k,S,L){if(b===void 0)return null;var P=new e(b,k,S,L),J=new e(b,k,S,L);if(!Array.isArray(k.anyOf))throw new r("anyOf must be an array");if(!k.anyOf.some(a.bind(this,b,S,L,function(Ce){J.importErrors(Ce)}))){var ee=k.anyOf.map(function(Ce,fe){var he=Ce.$id||Ce.id;return he?"<"+he+">":Ce.title&&JSON.stringify(Ce.title)||Ce.$ref&&"<"+Ce.$ref+">"||"[subschema "+fe+"]"});S.nestedErrors&&P.importErrors(J),P.addError({name:"anyOf",argument:ee,message:"is not any of "+ee.join(",")})}return P},i.allOf=function(b,k,S,L){if(b===void 0)return null;if(!Array.isArray(k.allOf))throw new r("allOf must be an array");var P=new e(b,k,S,L),J=this;return k.allOf.forEach(function(ee,Ce){var fe=J.validateSchema(b,ee,S,L);if(!fe.valid){var he=ee.$id||ee.id,ve=he||ee.title&&JSON.stringify(ee.title)||ee.$ref&&"<"+ee.$ref+">"||"[subschema "+Ce+"]";P.addError({name:"allOf",argument:{id:ve,length:fe.errors.length,valid:fe},message:"does not match allOf schema "+ve+" with "+fe.errors.length+" error[s]:"}),P.importErrors(fe)}}),P},i.oneOf=function(b,k,S,L){if(b===void 0)return null;if(!Array.isArray(k.oneOf))throw new r("oneOf must be an array");var P=new e(b,k,S,L),J=new e(b,k,S,L),ee=k.oneOf.filter(a.bind(this,b,S,L,function(fe){J.importErrors(fe)})).length,Ce=k.oneOf.map(function(fe,he){var ve=fe.$id||fe.id;return ve||fe.title&&JSON.stringify(fe.title)||fe.$ref&&"<"+fe.$ref+">"||"[subschema "+he+"]"});return ee!==1&&(S.nestedErrors&&P.importErrors(J),P.addError({name:"oneOf",argument:Ce,message:"is not exactly one from "+Ce.join(",")})),P},i.if=function(b,k,S,L){if(b===void 0)return null;if(!t.isSchema(k.if))throw new Error('Expected "if" keyword to be a schema');var P=a.call(this,b,S,L,null,k.if),J=new e(b,k,S,L),ee;if(P){if(k.then===void 0)return;if(!t.isSchema(k.then))throw new Error('Expected "then" keyword to be a schema');ee=this.validateSchema(b,k.then,S,L.makeChild(k.then)),J.importErrors(ee)}else{if(k.else===void 0)return;if(!t.isSchema(k.else))throw new Error('Expected "else" keyword to be a schema');ee=this.validateSchema(b,k.else,S,L.makeChild(k.else)),J.importErrors(ee)}return J};function s(g,b){if(Object.hasOwnProperty.call(g,b))return g[b];if(b in g){for(;g=Object.getPrototypeOf(g);)if(Object.propertyIsEnumerable.call(g,b))return g[b]}}i.propertyNames=function(b,k,S,L){if(this.types.object(b)){var P=new e(b,k,S,L),J=k.propertyNames!==void 0?k.propertyNames:{};if(!t.isSchema(J))throw new r('Expected "propertyNames" to be a schema (object or boolean)');for(var ee in b)if(s(b,ee)!==void 0){var Ce=this.validateSchema(ee,J,S,L.makeChild(J));P.importErrors(Ce)}return P}},i.properties=function(b,k,S,L){if(this.types.object(b)){var P=new e(b,k,S,L),J=k.properties||{};for(var ee in J){var Ce=J[ee];if(Ce!==void 0){if(Ce===null)throw new r('Unexpected null, expected schema in "properties"');typeof S.preValidateProperty=="function"&&S.preValidateProperty(b,ee,Ce,S,L);var fe=s(b,ee),he=this.validateSchema(fe,Ce,S,L.makeChild(Ce,ee));he.instance!==P.instance[ee]&&(P.instance[ee]=he.instance),P.importErrors(he)}}return P}};function l(g,b,k,S,L,P){if(this.types.object(g)&&!(b.properties&&b.properties[L]!==void 0))if(b.additionalProperties===!1)P.addError({name:"additionalProperties",argument:L,message:"is not allowed to have the additional property "+JSON.stringify(L)});else{var J=b.additionalProperties||{};typeof k.preValidateProperty=="function"&&k.preValidateProperty(g,L,J,k,S);var ee=this.validateSchema(g[L],J,k,S.makeChild(J,L));ee.instance!==P.instance[L]&&(P.instance[L]=ee.instance),P.importErrors(ee)}}i.patternProperties=function(b,k,S,L){if(this.types.object(b)){var P=new e(b,k,S,L),J=k.patternProperties||{};for(var ee in b){var Ce=!0;for(var fe in J){var he=J[fe];if(he!==void 0){if(he===null)throw new r('Unexpected null, expected schema in "patternProperties"');try{var ve=new RegExp(fe,"u")}catch{ve=new RegExp(fe)}if(ve.test(ee)){Ce=!1,typeof S.preValidateProperty=="function"&&S.preValidateProperty(b,ee,he,S,L);var xe=this.validateSchema(b[ee],he,S,L.makeChild(he,ee));xe.instance!==P.instance[ee]&&(P.instance[ee]=xe.instance),P.importErrors(xe)}}}Ce&&l.call(this,b,k,S,L,ee,P)}return P}},i.additionalProperties=function(b,k,S,L){if(this.types.object(b)){if(k.patternProperties)return null;var P=new e(b,k,S,L);for(var J in b)l.call(this,b,k,S,L,J,P);return P}},i.minProperties=function(b,k,S,L){if(this.types.object(b)){var P=new e(b,k,S,L),J=Object.keys(b);return J.length>=k.minProperties||P.addError({name:"minProperties",argument:k.minProperties,message:"does not meet minimum property length of "+k.minProperties}),P}},i.maxProperties=function(b,k,S,L){if(this.types.object(b)){var P=new e(b,k,S,L),J=Object.keys(b);return J.length<=k.maxProperties||P.addError({name:"maxProperties",argument:k.maxProperties,message:"does not meet maximum property length of "+k.maxProperties}),P}},i.items=function(b,k,S,L){var P=this;if(this.types.array(b)&&k.items!==void 0){var J=new e(b,k,S,L);return b.every(function(ee,Ce){if(Array.isArray(k.items))var fe=k.items[Ce]===void 0?k.additionalItems:k.items[Ce];else var fe=k.items;if(fe===void 0)return!0;if(fe===!1)return J.addError({name:"items",message:"additionalItems not permitted"}),!1;var he=P.validateSchema(ee,fe,S,L.makeChild(fe,Ce));return he.instance!==J.instance[Ce]&&(J.instance[Ce]=he.instance),J.importErrors(he),!0}),J}},i.contains=function(b,k,S,L){var P=this;if(this.types.array(b)&&k.contains!==void 0){if(!t.isSchema(k.contains))throw new Error('Expected "contains" keyword to be a schema');var J=new e(b,k,S,L),ee=b.some(function(Ce,fe){var he=P.validateSchema(Ce,k.contains,S,L.makeChild(k.contains,fe));return he.errors.length===0});return ee===!1&&J.addError({name:"contains",argument:k.contains,message:"must contain an item matching given schema"}),J}},i.minimum=function(b,k,S,L){if(this.types.number(b)){var P=new e(b,k,S,L);return k.exclusiveMinimum&&k.exclusiveMinimum===!0?b>k.minimum||P.addError({name:"minimum",argument:k.minimum,message:"must be greater than "+k.minimum}):b>=k.minimum||P.addError({name:"minimum",argument:k.minimum,message:"must be greater than or equal to "+k.minimum}),P}},i.maximum=function(b,k,S,L){if(this.types.number(b)){var P=new e(b,k,S,L);return k.exclusiveMaximum&&k.exclusiveMaximum===!0?b<k.maximum||P.addError({name:"maximum",argument:k.maximum,message:"must be less than "+k.maximum}):b<=k.maximum||P.addError({name:"maximum",argument:k.maximum,message:"must be less than or equal to "+k.maximum}),P}},i.exclusiveMinimum=function(b,k,S,L){if(typeof k.exclusiveMinimum!="boolean"&&this.types.number(b)){var P=new e(b,k,S,L),J=b>k.exclusiveMinimum;return J||P.addError({name:"exclusiveMinimum",argument:k.exclusiveMinimum,message:"must be strictly greater than "+k.exclusiveMinimum}),P}},i.exclusiveMaximum=function(b,k,S,L){if(typeof k.exclusiveMaximum!="boolean"&&this.types.number(b)){var P=new e(b,k,S,L),J=b<k.exclusiveMaximum;return J||P.addError({name:"exclusiveMaximum",argument:k.exclusiveMaximum,message:"must be strictly less than "+k.exclusiveMaximum}),P}};var u=function(b,k,S,L,P,J){if(this.types.number(b)){var ee=k[P];if(ee==0)throw new r(P+" cannot be zero");var Ce=new e(b,k,S,L),fe=t.getDecimalPlaces(b),he=t.getDecimalPlaces(ee),ve=Math.max(fe,he),xe=Math.pow(10,ve);return Math.round(b*xe)%Math.round(ee*xe)!==0&&Ce.addError({name:P,argument:ee,message:J+JSON.stringify(ee)}),Ce}};i.multipleOf=function(b,k,S,L){return u.call(this,b,k,S,L,"multipleOf","is not a multiple of (divisible by) ")},i.divisibleBy=function(b,k,S,L){return u.call(this,b,k,S,L,"divisibleBy","is not divisible by (multiple of) ")},i.required=function(b,k,S,L){var P=new e(b,k,S,L);return b===void 0&&k.required===!0?P.addError({name:"required",message:"is required"}):this.types.object(b)&&Array.isArray(k.required)&&k.required.forEach(function(J){s(b,J)===void 0&&P.addError({name:"required",argument:J,message:"requires property "+JSON.stringify(J)})}),P},i.pattern=function(b,k,S,L){if(this.types.string(b)){var P=new e(b,k,S,L),J=k.pattern;try{var ee=new RegExp(J,"u")}catch{ee=new RegExp(J)}return b.match(ee)||P.addError({name:"pattern",argument:k.pattern,message:"does not match pattern "+JSON.stringify(k.pattern.toString())}),P}},i.format=function(b,k,S,L){if(b!==void 0){var P=new e(b,k,S,L);return!P.disableFormat&&!t.isFormat(b,k.format,this)&&P.addError({name:"format",argument:k.format,message:"does not conform to the "+JSON.stringify(k.format)+" format"}),P}},i.minLength=function(b,k,S,L){if(this.types.string(b)){var P=new e(b,k,S,L),J=b.match(/[\uDC00-\uDFFF]/g),ee=b.length-(J?J.length:0);return ee>=k.minLength||P.addError({name:"minLength",argument:k.minLength,message:"does not meet minimum length of "+k.minLength}),P}},i.maxLength=function(b,k,S,L){if(this.types.string(b)){var P=new e(b,k,S,L),J=b.match(/[\uDC00-\uDFFF]/g),ee=b.length-(J?J.length:0);return ee<=k.maxLength||P.addError({name:"maxLength",argument:k.maxLength,message:"does not meet maximum length of "+k.maxLength}),P}},i.minItems=function(b,k,S,L){if(this.types.array(b)){var P=new e(b,k,S,L);return b.length>=k.minItems||P.addError({name:"minItems",argument:k.minItems,message:"does not meet minimum length of "+k.minItems}),P}},i.maxItems=function(b,k,S,L){if(this.types.array(b)){var P=new e(b,k,S,L);return b.length<=k.maxItems||P.addError({name:"maxItems",argument:k.maxItems,message:"does not meet maximum length of "+k.maxItems}),P}};function o(g,b,k){var S,L=k.length;for(S=b+1,L;S<L;S++)if(t.deepCompareStrict(g,k[S]))return!1;return!0}return i.uniqueItems=function(b,k,S,L){if(k.uniqueItems===!0&&this.types.array(b)){var P=new e(b,k,S,L);return b.every(o)||P.addError({name:"uniqueItems",message:"contains duplicate item"}),P}},i.dependencies=function(b,k,S,L){if(this.types.object(b)){var P=new e(b,k,S,L);for(var J in k.dependencies)if(b[J]!==void 0){var ee=k.dependencies[J],Ce=L.makeChild(ee,J);if(typeof ee=="string"&&(ee=[ee]),Array.isArray(ee))ee.forEach(function(he){b[he]===void 0&&P.addError({name:"dependencies",argument:Ce.propertyPath,message:"property "+he+" not found, required by "+Ce.propertyPath})});else{var fe=this.validateSchema(b,ee,S,Ce);P.instance!==fe.instance&&(P.instance=fe.instance),fe&&fe.errors.length&&(P.addError({name:"dependencies",argument:Ce.propertyPath,message:"does not meet dependency required by "+Ce.propertyPath}),P.importErrors(fe))}}return P}},i.enum=function(b,k,S,L){if(b===void 0)return null;if(!Array.isArray(k.enum))throw new r("enum expects an array",k);var P=new e(b,k,S,L);return k.enum.some(t.deepCompareStrict.bind(null,b))||P.addError({name:"enum",argument:k.enum,message:"is not one of enum values: "+k.enum.map(String).join(",")}),P},i.const=function(b,k,S,L){if(b===void 0)return null;var P=new e(b,k,S,L);return t.deepCompareStrict(k.const,b)||P.addError({name:"const",argument:k.const,message:"does not exactly match expected constant: "+k.const}),P},i.not=i.disallow=function(b,k,S,L){var P=this;if(b===void 0)return null;var J=new e(b,k,S,L),ee=k.not||k.disallow;return ee?(Array.isArray(ee)||(ee=[ee]),ee.forEach(function(Ce){if(P.testType(b,k,S,L,Ce)){var fe=Ce&&(Ce.$id||Ce.id),he=fe||Ce;J.addError({name:"not",argument:he,message:"is of prohibited type "+he})}}),J):null},Yx=n,Yx}var Ny={},QC;function Zx(){if(QC)return Ny;QC=1;var t=hh();Ny.SchemaScanResult=e;function e(r,n){this.id=r,this.ref=n}return Ny.scan=function(n,i){function a(g,b){if(!b||typeof b!="object")return;if(b.$ref){let P=t.resolveUrl(g,b.$ref);o[P]=o[P]?o[P]+1:0;return}var k=b.$id||b.id;let S=t.resolveUrl(g,k);var L=k?S:g;if(L){if(L.indexOf("#")<0&&(L+="#"),u[L]){if(!t.deepCompareStrict(u[L],b))throw new Error("Schema <"+L+"> already exists with different definition");return u[L]}u[L]=b,L[L.length-1]=="#"&&(u[L.substring(0,L.length-1)]=b)}s(L+"/items",Array.isArray(b.items)?b.items:[b.items]),s(L+"/extends",Array.isArray(b.extends)?b.extends:[b.extends]),a(L+"/additionalItems",b.additionalItems),l(L+"/properties",b.properties),a(L+"/additionalProperties",b.additionalProperties),l(L+"/definitions",b.definitions),l(L+"/patternProperties",b.patternProperties),l(L+"/dependencies",b.dependencies),s(L+"/disallow",b.disallow),s(L+"/allOf",b.allOf),s(L+"/anyOf",b.anyOf),s(L+"/oneOf",b.oneOf),a(L+"/not",b.not)}function s(g,b){if(Array.isArray(b))for(var k=0;k<b.length;k++)a(g+"/"+k,b[k])}function l(g,b){if(!(!b||typeof b!="object"))for(var k in b)a(g+"/"+k,b[k])}var u={},o={};return a(n,i),new e(u,o)},Ny}var Jx,WC;function KI(){if(WC)return Jx;WC=1;var t=JI(),e=hh(),r=Zx().scan,n=e.ValidatorResult,i=e.ValidatorResultError,a=e.SchemaError,s=e.SchemaContext,l="/",u=function b(){this.customFormats=Object.create(b.prototype.customFormats),this.schemas={},this.unresolvedRefs=[],this.types=Object.create(g),this.attributes=Object.create(t.validators)};u.prototype.customFormats={},u.prototype.schemas=null,u.prototype.types=null,u.prototype.attributes=null,u.prototype.unresolvedRefs=null,u.prototype.addSchema=function(k,S){var L=this;if(!k)return null;var P=r(S||l,k),J=S||k.$id||k.id;for(var ee in P.id)this.schemas[ee]=P.id[ee];for(var ee in P.ref)this.unresolvedRefs.push(ee);return this.unresolvedRefs=this.unresolvedRefs.filter(function(Ce){return typeof L.schemas[Ce]>"u"}),this.schemas[J]},u.prototype.addSubSchemaArray=function(k,S){if(Array.isArray(S))for(var L=0;L<S.length;L++)this.addSubSchema(k,S[L])},u.prototype.addSubSchemaObject=function(k,S){if(!(!S||typeof S!="object"))for(var L in S)this.addSubSchema(k,S[L])},u.prototype.setSchemas=function(k){this.schemas=k},u.prototype.getSchema=function(k){return this.schemas[k]},u.prototype.validate=function(k,S,L,P){if(typeof S!="boolean"&&typeof S!="object"||S===null)throw new a("Expected `schema` to be an object or boolean");L||(L={});var J=S.$id||S.id;let ee=e.resolveUrl(L.base,J||"");if(!P){P=new s(S,L,[],ee,Object.create(this.schemas)),P.schemas[ee]||(P.schemas[ee]=S);var Ce=r(ee,S);for(var fe in Ce.id){var he=Ce.id[fe];P.schemas[fe]=he}}if(L.required&&k===void 0){var ve=new n(k,S,L,P);return ve.addError("is required, but is undefined"),ve}var ve=this.validateSchema(k,S,L,P);if(ve){if(L.throwAll&&ve.errors.length)throw new i(ve)}else throw new Error("Result undefined");return ve};function o(b){var k=typeof b=="string"?b:b.$ref;return typeof k=="string"?k:!1}u.prototype.validateSchema=function(k,S,L,P){var J=new n(k,S,L,P);if(typeof S=="boolean")S===!0?S={}:S===!1&&(S={type:[]});else if(!S)throw new Error("schema is undefined");if(S.extends)if(Array.isArray(S.extends)){var ee={schema:S,ctx:P};S.extends.forEach(this.schemaTraverser.bind(this,ee)),S=ee.schema,ee.schema=null,ee.ctx=null,ee=null}else S=e.deepMerge(S,this.superResolve(S.extends,P));var Ce=o(S);if(Ce){var fe=this.resolve(S,Ce,P),he=new s(fe.subschema,L,P.path,fe.switchSchema,P.schemas);return this.validateSchema(k,fe.subschema,L,he)}var ve=L&&L.skipAttributes||[];for(var xe in S)if(!t.ignoreProperties[xe]&&ve.indexOf(xe)<0){var Pe=null,Ue=this.attributes[xe];if(Ue)Pe=Ue.call(this,k,S,L,P);else if(L.allowUnknownAttributes===!1)throw new a("Unsupported attribute: "+xe,S);Pe&&J.importErrors(Pe)}if(typeof L.rewrite=="function"){var $e=L.rewrite.call(this,k,S,L,P);J.instance=$e}return J},u.prototype.schemaTraverser=function(k,S){k.schema=e.deepMerge(k.schema,this.superResolve(S,k.ctx))},u.prototype.superResolve=function(k,S){var L=o(k);return L?this.resolve(k,L,S).subschema:k},u.prototype.resolve=function(k,S,L){if(S=L.resolve(S),L.schemas[S])return{subschema:L.schemas[S],switchSchema:S};let J=new URL(S,"thismessage::/").hash;var ee=J&&J.length&&S.substr(0,S.length-J.length);if(!ee||!L.schemas[ee])throw new a("no such schema <"+S+">",k);var Ce=e.objectGetPath(L.schemas[ee],J.substr(1));if(Ce===void 0)throw new a("no such schema "+J+" located in <"+ee+">",k);return{subschema:Ce,switchSchema:S}},u.prototype.testType=function(k,S,L,P,J){if(J!==void 0){if(J===null)throw new a('Unexpected null in "type" keyword');if(typeof this.types[J]=="function")return this.types[J].call(this,k);if(J&&typeof J=="object"){var ee=this.validateSchema(k,J,L,P);return ee===void 0||!(ee&&ee.errors.length)}return!0}};var g=u.prototype.types={};return g.string=function(k){return typeof k=="string"},g.number=function(k){return typeof k=="number"&&isFinite(k)},g.integer=function(k){return typeof k=="number"&&k%1===0},g.boolean=function(k){return typeof k=="boolean"},g.array=function(k){return Array.isArray(k)},g.null=function(k){return k===null},g.date=function(k){return k instanceof Date},g.any=function(k){return!0},g.object=function(k){return k&&typeof k=="object"&&!Array.isArray(k)&&!(k instanceof Date)},Jx=u,Jx}var GC;function XI(){if(GC)return kd;GC=1;var t=kd.Validator=KI();return kd.ValidatorResult=hh().ValidatorResult,kd.ValidatorResultError=hh().ValidatorResultError,kd.ValidationError=hh().ValidationError,kd.SchemaError=hh().SchemaError,kd.SchemaScanResult=Zx().SchemaScanResult,kd.scan=Zx().scan,kd.validate=function(e,r,n){var i=new t;return i.validate(e,r,n)},kd}var eL=XI();function tL(t){if(t===void 0)return[{type:qo.WARNING,description:"UI JSON: no UI JSON was provided."}];const e=new eL.Validator,r={additionalProperties:!1,properties:{input:{items:{oneOf:[{additionalProperties:!1,properties:{defaultValue:{required:!0,type:"number"},id:{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:{type:"string"},maximumValue:{required:!0,type:"number"},minimumValue:{required:!0,type:"number"},name:{required:!0,type:"string"},stepValue:{type:"number"},visible:{type:"string"}}}],type:"object"},minItems:1,required:!0,type:"array"},output:{additionalProperties:!1,minItems:1,properties:{data:{items:{additionalProperties:!1,properties:{id:{required:!0,type:"string"},name:{required:!0,type:"string"}},type:"object"},minItems:1,required:!0,type:"array"},plots:{items:{additionalProperties:!1,properties:{xAxisTitle:{required:!0,type:"string"},xValue:{required:!0,type:"string"},yAxisTitle:{required:!0,type:"string"},yValue:{required:!0,type:"string"}},type:"object"},maxItems:9,minItems:1,required:!0,type:"array"}},required:!0,type:"object"},parameters:{items:{additionalProperties:!1,properties:{name:{required:!0,type:"string"},value:{required:!0,type:"string"}},minItems:1,required:!0,type:"object"},required:!0,type:"array"}},type:"object"},n=e.validate(t,r,{nestedErrors:!0});if(!n.valid){const l=[];for(const u of String(n).split(`
|
|
1507
|
-
`))u!==""&&l.push({type:qo.WARNING,description:`UI JSON: ${Lx(u)}`});return l}const i=[],a={};for(const l of t.input){let u=function(g){return"possibleValues"in g},o=function(g){return"minimumValue"in g&&"maximumValue"in g};if(l.id!==void 0&&(l.id===""&&i.push({type:qo.WARNING,description:"UI JSON: an input id must not be empty."}),a[l.id]&&i.push({type:qo.WARNING,description:`UI JSON: an input id must be unique (${l.id} is used more than once).`}),a[l.id]=!0),l.name===""&&i.push({type:qo.WARNING,description:"UI JSON: an input name must not be empty."}),u(l)){for(const k of l.possibleValues)k.name===""&&i.push({type:qo.WARNING,description:"UI JSON: an input possible value name must not be empty."});const g=l.possibleValues.map(k=>k.value),b={};for(const k of g)b[k]&&i.push({type:qo.WARNING,description:"UI JSON: an input possible value must have a unique value ("+String(k)+" is used more than once)."}),b[k]=!0;g.includes(l.defaultValue)||i.push({type:qo.WARNING,description:"UI JSON: an input default value ("+String(l.defaultValue)+") must be one of the possible values ("+g.join(", ")+")."})}if(o(l)){l.minimumValue>=l.maximumValue&&i.push({type:qo.WARNING,description:"UI JSON: an input minimum value ("+String(l.minimumValue)+") must be lower than the maximum value ("+String(l.maximumValue)+")."}),(l.defaultValue<l.minimumValue||l.defaultValue>l.maximumValue)&&i.push({type:qo.WARNING,description:"UI JSON: an input default value ("+String(l.defaultValue)+") must be greater or equal than the minimum value ("+String(l.minimumValue)+") and lower or equal than the maximum value ("+String(l.maximumValue)+")."});const g=l.maximumValue-l.minimumValue;l.stepValue!==void 0?((l.stepValue<=0||l.stepValue>g)&&i.push({type:qo.WARNING,description:"UI JSON: an input step value ("+String(l.stepValue)+") must be greater than zero and lower or equal than the range value ("+String(g)+")."}),Number.isInteger(g/l.stepValue)||i.push({type:qo.WARNING,description:"UI JSON: an input step value ("+String(l.stepValue)+") must be a factor of the range value ("+String(g)+")."})):Number.isInteger(g)||i.push({type:qo.WARNING,description:"UI JSON: a (default) input step value (1) must be a factor of the range value ("+String(g)+")."})}l.visible!==void 0&&l.visible===""&&i.push({type:qo.WARNING,description:"UI JSON: an input visible must not be empty."})}const s={};for(const l of t.output.data)l.id===""&&i.push({type:qo.WARNING,description:"UI JSON: an output data id must not be empty."}),s[l.id]&&i.push({type:qo.WARNING,description:`UI JSON: an output data id must be unique (${l.id} is used more than once).`}),s[l.id]=!0,l.name===""&&i.push({type:qo.WARNING,description:"UI JSON: an output data name must not be empty."});for(const l of t.output.plots)l.xAxisTitle===""&&i.push({type:qo.WARNING,description:"UI JSON: an output plot X axis title must not be empty."}),l.xValue===""&&i.push({type:qo.WARNING,description:"UI JSON: an output plot X value must not be empty."}),l.yAxisTitle===""&&i.push({type:qo.WARNING,description:"UI JSON: an output plot Y axis title must not be empty."}),l.yValue===""&&i.push({type:qo.WARNING,description:"UI JSON: an output plot Y value must not be empty."});for(const l of t.parameters)l.name===""&&i.push({type:qo.WARNING,description:"UI JSON: a parameter name must not be empty."}),l.value===""&&i.push({type:qo.WARNING,description:"UI JSON: a parameter value must not be empty."});return i}function qi(){return io!==void 0}function Oy(){return!qi()}function rL(){return qi()?Vi.version():np.versionString()}let Vi={},np={};async function nL(){if(window.locApi!==void 0)Vi=window.locApi;else try{const t=(await import(jC("https://opencor.ws/libopencor/downloads/0.20250805.0/libopencor.js"))).default;np=await t()}catch(t){console.error("Failed to load libOpenCOR's WebAssembly module:",t)}}const aL="0.20250814.
|
|
1507
|
+
`))u!==""&&l.push({type:qo.WARNING,description:`UI JSON: ${Lx(u)}`});return l}const i=[],a={};for(const l of t.input){let u=function(g){return"possibleValues"in g},o=function(g){return"minimumValue"in g&&"maximumValue"in g};if(l.id!==void 0&&(l.id===""&&i.push({type:qo.WARNING,description:"UI JSON: an input id must not be empty."}),a[l.id]&&i.push({type:qo.WARNING,description:`UI JSON: an input id must be unique (${l.id} is used more than once).`}),a[l.id]=!0),l.name===""&&i.push({type:qo.WARNING,description:"UI JSON: an input name must not be empty."}),u(l)){for(const k of l.possibleValues)k.name===""&&i.push({type:qo.WARNING,description:"UI JSON: an input possible value name must not be empty."});const g=l.possibleValues.map(k=>k.value),b={};for(const k of g)b[k]&&i.push({type:qo.WARNING,description:"UI JSON: an input possible value must have a unique value ("+String(k)+" is used more than once)."}),b[k]=!0;g.includes(l.defaultValue)||i.push({type:qo.WARNING,description:"UI JSON: an input default value ("+String(l.defaultValue)+") must be one of the possible values ("+g.join(", ")+")."})}if(o(l)){l.minimumValue>=l.maximumValue&&i.push({type:qo.WARNING,description:"UI JSON: an input minimum value ("+String(l.minimumValue)+") must be lower than the maximum value ("+String(l.maximumValue)+")."}),(l.defaultValue<l.minimumValue||l.defaultValue>l.maximumValue)&&i.push({type:qo.WARNING,description:"UI JSON: an input default value ("+String(l.defaultValue)+") must be greater or equal than the minimum value ("+String(l.minimumValue)+") and lower or equal than the maximum value ("+String(l.maximumValue)+")."});const g=l.maximumValue-l.minimumValue;l.stepValue!==void 0?((l.stepValue<=0||l.stepValue>g)&&i.push({type:qo.WARNING,description:"UI JSON: an input step value ("+String(l.stepValue)+") must be greater than zero and lower or equal than the range value ("+String(g)+")."}),Number.isInteger(g/l.stepValue)||i.push({type:qo.WARNING,description:"UI JSON: an input step value ("+String(l.stepValue)+") must be a factor of the range value ("+String(g)+")."})):Number.isInteger(g)||i.push({type:qo.WARNING,description:"UI JSON: a (default) input step value (1) must be a factor of the range value ("+String(g)+")."})}l.visible!==void 0&&l.visible===""&&i.push({type:qo.WARNING,description:"UI JSON: an input visible must not be empty."})}const s={};for(const l of t.output.data)l.id===""&&i.push({type:qo.WARNING,description:"UI JSON: an output data id must not be empty."}),s[l.id]&&i.push({type:qo.WARNING,description:`UI JSON: an output data id must be unique (${l.id} is used more than once).`}),s[l.id]=!0,l.name===""&&i.push({type:qo.WARNING,description:"UI JSON: an output data name must not be empty."});for(const l of t.output.plots)l.xAxisTitle===""&&i.push({type:qo.WARNING,description:"UI JSON: an output plot X axis title must not be empty."}),l.xValue===""&&i.push({type:qo.WARNING,description:"UI JSON: an output plot X value must not be empty."}),l.yAxisTitle===""&&i.push({type:qo.WARNING,description:"UI JSON: an output plot Y axis title must not be empty."}),l.yValue===""&&i.push({type:qo.WARNING,description:"UI JSON: an output plot Y value must not be empty."});for(const l of t.parameters)l.name===""&&i.push({type:qo.WARNING,description:"UI JSON: a parameter name must not be empty."}),l.value===""&&i.push({type:qo.WARNING,description:"UI JSON: a parameter value must not be empty."});return i}function qi(){return io!==void 0}function Oy(){return!qi()}function rL(){return qi()?Vi.version():np.versionString()}let Vi={},np={};async function nL(){if(window.locApi!==void 0)Vi=window.locApi;else try{const t=(await import(jC("https://opencor.ws/libopencor/downloads/0.20250805.0/libopencor.js"))).default;np=await t()}catch(t){console.error("Failed to load libOpenCOR's WebAssembly module:",t)}}const aL="0.20250814.4",iL={class:"space-y-7"},oL={class:"text-center"},sL={class:"text-3xl font-bold"},lL={key:0,class:"text-xl italic font-bold"},uL={class:"text-sm italic"},cL={class:"space-y-2"},dL=x.defineComponent({__name:"AboutDialog",emits:["close"],setup(t){return(e,r)=>{const n=lc,i=tp;return x.openBlock(),x.createBlock(i,{header:" ",style:{width:"39rem"}},{footer:x.withCtx(()=>[x.createVNode(n,{label:"OK",autofocus:"",onClick:r[0]||(r[0]=a=>e.$emit("close"))})]),default:x.withCtx(()=>[x.createElementVNode("div",iL,[x.createElementVNode("div",oL,[x.createElementVNode("div",sL,"OpenCOR "+x.toDisplayString(x.unref(aL)),1),x.unref(io)!==void 0?(x.openBlock(),x.createElementBlock("div",lL,x.toDisplayString(x.unref(io).operatingSystem()),1)):x.createCommentVNode("",!0),x.createElementVNode("div",uL,"Copyright "+x.toDisplayString(RI),1)]),x.createElementVNode("div",cL,[x.createElementVNode("div",null,[r[1]||(r[1]=x.createElementVNode("a",{href:"https://opencor.ws/",target:"_blank",rel:"noopener"},"OpenCOR",-1)),r[2]||(r[2]=x.createTextVNode(" is a frontend to ",-1)),r[3]||(r[3]=x.createElementVNode("a",{href:"https://opencor.ws/libopencor/",target:"_blank",rel:"noopener"},"libOpenCOR",-1)),x.createTextVNode(" "+x.toDisplayString(rL())+", a library that can be used to organise, edit, simulate, and analyse ",1),r[4]||(r[4]=x.createElementVNode("a",{href:"https://cellml.org/",target:"_blank",rel:"noopener"},"CellML",-1)),r[5]||(r[5]=x.createTextVNode(" files. ",-1))]),r[6]||(r[6]=x.createElementVNode("div",{class:"space-y-0"},[x.createElementVNode("div",null,"There are two versions of OpenCOR:"),x.createElementVNode("ol",{class:"list-decimal list-inside ml-2"},[x.createElementVNode("li",null,[x.createElementVNode("span",{class:"font-bold"},"OpenCOR:"),x.createTextVNode(" a desktop application that can be run on "),x.createElementVNode("a",{href:"https://en.wikipedia.org/wiki/List_of_Intel_processors"},"Intel"),x.createTextVNode("-based and "),x.createElementVNode("a",{href:"https://en.wikipedia.org/wiki/ARM_architecture_family"},"ARM"),x.createTextVNode("-based "),x.createElementVNode("a",{href:"https://en.wikipedia.org/wiki/Microsoft_Windows",target:"_blank",rel:"noopener"},"Windows"),x.createTextVNode(", "),x.createElementVNode("a",{href:"https://en.wikipedia.org/wiki/Linux",target:"_blank",rel:"noopener"},"Linux"),x.createTextVNode(", and "),x.createElementVNode("a",{href:"https://en.wikipedia.org/wiki/MacOS",target:"_blank",rel:"noopener"},"macOS"),x.createTextVNode(" machines; and ")]),x.createElementVNode("li",null,[x.createElementVNode("span",{class:"font-bold"},"OpenCOR's Web app:"),x.createTextVNode(" a "),x.createElementVNode("a",{href:"https://en.wikipedia.org/wiki/Web_application",target:"_blank",rel:"noopener"},"Web app"),x.createTextVNode(" that can be run on a Web browser. ")])])],-1))])])]),_:1})}}}),fL=x.defineComponent({__name:"ResetAllDialog",emits:["resetAll","close"],setup(t){return(e,r)=>{const n=lc,i=tp;return x.openBlock(),x.createBlock(i,{header:"Reset All..."},{footer:x.withCtx(()=>[x.createVNode(n,{autofocus:"",label:"Yes",severity:"danger",onClick:r[0]||(r[0]=a=>e.$emit("resetAll"))}),x.createVNode(n,{label:"No",severity:"secondary",onClick:r[1]||(r[1]=a=>e.$emit("close"))})]),default:x.withCtx(()=>[r[2]||(r[2]=x.createElementVNode("div",{class:"mt-2 mb-4"},"You are about to reset all of your settings. Do you want to proceed?",-1))]),_:1,__:[2]})}}});var pL=`
|
|
1508
1508
|
.p-floatlabel {
|
|
1509
1509
|
display: block;
|
|
1510
1510
|
position: relative;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as ce, g as gl } from "./index-
|
|
1
|
+
import { c as ce, g as gl } from "./index-tP7x8zIn.js";
|
|
2
2
|
var pl = typeof global == "object" && global && global.Object === Object && global, yo = typeof self == "object" && self && self.Object === Object && self, Zt = pl || yo || Function("return this")(), de = Zt.Symbol, ml = Object.prototype, vo = ml.hasOwnProperty, Eo = ml.toString, yr = de ? de.toStringTag : void 0;
|
|
3
3
|
function Ao(n) {
|
|
4
4
|
var t = vo.call(n, yr), e = n[yr];
|
package/package.json
CHANGED
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
},
|
|
43
43
|
"./style.css": "./dist/opencor.css"
|
|
44
44
|
},
|
|
45
|
-
"version": "0.20250814.
|
|
45
|
+
"version": "0.20250814.4",
|
|
46
46
|
"peerDependencies": {
|
|
47
47
|
"vue": "^3.0.0"
|
|
48
48
|
},
|
|
@@ -85,6 +85,7 @@
|
|
|
85
85
|
"format": "prettier --log-level silent --write . && clang-format -i src/libopencor/src/*",
|
|
86
86
|
"format:check": "prettier --check . && clang-format --dry-run -Werror src/libopencor/src/*",
|
|
87
87
|
"lint": "eslint --fix .",
|
|
88
|
-
"serve": "pnpm build && vite preview"
|
|
88
|
+
"serve": "pnpm build && vite preview",
|
|
89
|
+
"version:new": "node scripts/version.js"
|
|
89
90
|
}
|
|
90
91
|
}
|