text: !function(e){function t(s){if(n[s])return n[s].exports;var o=n[s]={i:s,l:!1,exports:{}};return e[s].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var n={};t.m=e,t.c=n,t.d=function(e,n,s){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:s})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=12)}([function(e,t,n){"use strict";function s(e,t){var n=e[1]||"",s=e[3];if(!s)return n;if(t&&"function"==typeof btoa){var i=o(s);return[n].concat(s.sources.map(function(e){return"/*# sourceURL="+s.sourceRoot+e+" */"})).concat([i]).join("\n")}return[n].join("\n")}function o(e){return"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(e))))+" */"}e.exports=function(e){var t=[];return t.toString=function(){return this.map(function(t){var n=s(t,e);return t[2]?"@media "+t[2]+"{"+n+"}":n}).join("")},t.i=function(e,n){"string"==typeof e&&(e=[[null,e,""]]);for(var s={},o=0;o<this.length;o++){var i=this[o][0];"number"==typeof i&&(s[i]=!0)}for(o=0;o<e.length;o++){var r=e[o];"number"==typeof r[0]&&s[r[0]]||(n&&!r[2]?r[2]=n:n&&(r[2]="("+r[2]+") and ("+n+")"),t.push(r))}},t}},function(e,t,n){function s(e,t){for(var n=0;n<e.length;n++){var s=e[n],o=g[s.id];if(o){o.refs++;for(var i=0;i<o.parts.length;i++)o.parts[i](s.parts[i]);for(;i<s.parts.length;i++)o.parts.push(c(s.parts[i],t))}else{for(var r=[],i=0;i<s.parts.length;i++)r.push(c(s.parts[i],t));g[s.id]={id:s.id,refs:1,parts:r}}}}function o(e,t){for(var n=[],s={},o=0;o<e.length;o++){var i=e[o],r=t.base?i[0]+t.base:i[0],l=i[1],a=i[2],d=i[3],c={css:l,media:a,sourceMap:d};s[r]?s[r].parts.push(c):n.push(s[r]={id:r,parts:[c]})}return n}function i(e,t){var n=E(e.insertInto);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insertInto' parameter is invalid.");var s=b[b.length-1];if("top"===e.insertAt)s?s.nextSibling?n.insertBefore(t,s.nextSibling):n.appendChild(t):n.insertBefore(t,n.firstChild),b.push(t);else if("bottom"===e.insertAt)n.appendChild(t);else{if("object"!=typeof e.insertAt||!e.insertAt.before)throw new Error("[Style Loader]\n\n Invalid value for parameter 'insertAt' ('options.insertAt') found.\n Must be 'top', 'bottom', or Object.\n (https://github.com/webpack-contrib/style-loader#insertat)\n");var o=E(e.insertInto+" "+e.insertAt.before);n.insertBefore(t,o)}}function r(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e);var t=b.indexOf(e);t>=0&&b.splice(t,1)}function l(e){var t=document.createElement("style");return e.attrs.type="text/css",d(t,e.attrs),i(e,t),t}function a(e){var t=document.createElement("link");return e.attrs.type="text/css",e.attrs.rel="stylesheet",d(t,e.attrs),i(e,t),t}function d(e,t){Object.keys(t).forEach(function(n){e.setAttribute(n,t[n])})}function c(e,t){var n,s,o,i;if(t.transform&&e.css){if(!(i=t.transform(e.css)))return function(){};e.css=i}if(t.singleton){var d=y++;n=v||(v=l(t)),s=m.bind(null,n,d,!1),o=m.bind(null,n,d,!0)}else e.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=a(t),s=p.bind(null,n,t),o=function(){r(n),n.href&&URL.revokeObjectURL(n.href)}):(n=l(t),s=u.bind(null,n),o=function(){r(n)});return s(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;s(e=t)}else o()}}function m(e,t,n,s){var o=n?"":s.css;if(e.styleSheet)e.styleSheet.cssText=w(t,o);else{var i=document.createTextNode(o),r=e.childNodes;r[t]&&e.removeChild(r[t]),r.length?e.insertBefore(i,r[t]):e.appendChild(i)}}function u(e,t){var n=t.css,s=t.media;if(s&&e.setAttribute("media",s),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}function p(e,t,n){var s=n.css,o=n.sourceMap,i=void 0===t.convertToAbsoluteUrls&&o;(t.convertToAbsoluteUrls||i)&&(s=I(s)),o&&(s+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(o))))+" */");var r=new Blob([s],{type:"text/css"}),l=e.href;e.href=URL.createObjectURL(r),l&&URL.revokeObjectURL(l)}var g={},h=function(e){var t;return function(){return void 0===t&&(t=e.apply(this,arguments)),t}}(function(){return window&&document&&document.all&&!window.atob}),f=function(e){return document.querySelector(e)},E=function(e){var t={};return function(e){if("function"==typeof e)return e();if(void 0===t[e]){var n=f.call(this,e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}t[e]=n}return t[e]}}(),v=null,y=0,b=[],I=n(3);e.exports=function(e,t){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");t=t||{},t.attrs="object"==typeof t.attrs?t.attrs:{},t.singleton||"boolean"==typeof t.singleton||(t.singleton=h()),t.insertInto||(t.insertInto="head"),t.insertAt||(t.insertAt="bottom");var n=o(e,t);return s(n,t),function(e){for(var i=[],r=0;r<n.length;r++){var l=n[r],a=g[l.id];a.refs--,i.push(a)}if(e){s(o(e,t),t)}for(var r=0;r<i.length;r++){var a=i[r];if(0===a.refs){for(var d=0;d<a.parts.length;d++)a.parts[d]();delete g[a.id]}}}};var w=function(){var e=[];return function(t,n){return e[t]=n,e.filter(Boolean).join("\n")}}()},function(e,t,n){"use strict";function s(e){return{svg:"http://www.w3.org/2000/svg",xlink:"http://www.w3.org/1999/xlink",html:"http://www.w3.org/1999/xhtml",irt:"http://irt.insilicobio.ru/ns",sbml:"http://www.sbml.org/sbml/level2/version4",mml:"http://www.w3.org/1998/Math/MathML",l2v1:"http://www.sbml.org/sbml/level2/version1",l2v2:"http://www.sbml.org/sbml/level2/version2",l2v3:"http://www.sbml.org/sbml/level2/version3",l2v4:"http://www.sbml.org/sbml/level2/version4",l2v5:"http://www.sbml.org/sbml/level2/version5"}[e]||null}function o(){document.getElementById("authFrame").src="/login",(0,B.getXMLAsync)(N+"indexes.xml",function(e,n){e&&(0,B.errorAnalyzer)(e),t.indexesDoc=S=n,window.indexesDoc=S,i()}),document.getElementById("openPages").addEventListener("click",function(){m("pages")}),document.getElementById("openSchemes").addEventListener("click",function(){m("schemes")}),document.getElementById("openModels").addEventListener("click",function(){m("models")}),document.getElementById("openSave").addEventListener("click",function(){m("save"),(0,D.updateStatistics)()}),document.getElementById("filter").addEventListener("change",function(){E()}),document.getElementById("hiderRightDiv").addEventListener("click",function(){h()}),document.getElementById("selectAllSheme").addEventListener("click",function(){(0,L.selectAllSheme)()}),document.getElementById("deselectAllSheme").addEventListener("click",function(){(0,L.deselectAllSheme)()}),document.getElementById("selectAllTable").addEventListener("click",function(){v()}),document.getElementById("deselectAllTable").addEventListener("click",function(){y()}),document.getElementById("profile").addEventListener("click",function(){document.getElementById("welcomeModal").style.display="block"}),document.getElementById("closeWelcomeModel").addEventListener("click",function(){document.getElementById("welcomeModal").style.display="none"}),document.getElementById("updateStatistics").addEventListener("click",function(){(0,D.updateStatistics)()}),document.getElementById("openODE").addEventListener("click",function(){(0,D.openODE)()}),document.getElementById("saveSBML").addEventListener("click",function(){(0,D.saveSBML)()}),document.getElementById("loadSBML").addEventListener("submit",function(e){(0,D.loadSBML)(e)}),document.getElementById("endIrtSession").addEventListener("click",function(){b()})}function i(){(0,B.getXMLAsync)(N+S.getElementsByTagName("identifications")[0].getAttribute("path"),function(e,t){e&&(0,B.errorAnalyzer)(e),O=t,window.iddbDoc=O,r()}),(0,B.getXMLAsync)(N+S.getElementsByTagName("model")[0].getAttribute("path"),function(e,n){e&&(0,B.errorAnalyzer)(e),t.modelDoc=R=n,window.modelDoc=R,(0,T.openModel)(),l(),a(),p()})}function r(){u(),c(),m("pages"),d(),f(),window.addEventListener("resize",f),document.styleSheets[w()].disabled=!0}function l(){(0,B.getXMLAsync)("./js/sbml2tab.xsl",function(e,t){e&&(0,B.errorAnalyzer)(e),console.log("Succesfully download sbml2tab.xsl");var n=new XSLTProcessor;n.importStylesheet(t);var o=n.transformToFragment(R,document);document.getElementById("searchDiv").appendChild(o);for(var i=document.evaluate(".//html:div[@irt:ref]",document.getElementById("searchDiv").firstElementChild,s,XPathResult.ORDERED_NODE_SNAPSHOT_TYPE,null),r=0;r<i.snapshotLength;r++)i.snapshotItem(r).addEventListener("mousedown",L.mouseDownElement,!1)})}function a(){(0,B.getXMLAsync)("./js/sbml2favorite.xsl",function(e,t){e&&(0,B.errorAnalyzer)(e);var n=new XSLTProcessor;n.importStylesheet(t);var o=n.transformToFragment(R,document);document.getElementById("rightDiv").appendChild(o);for(var i=document.evaluate(".//html:div[@irt:ref]",document.getElementById("rightDiv").firstElementChild,s,XPathResult.ORDERED_NODE_SNAPSHOT_TYPE,null),r=0;r<i.snapshotLength;r++)i.snapshotItem(r).addEventListener("mouseover",L.mouseOverElement,!1),i.snapshotItem(r).addEventListener("mouseout",L.mouseOutElement,!1),i.snapshotItem(r).addEventListener("mousedown",L.mouseDownElement2,!1)})}function d(){var e="";e+="<span class='w3-large'>"+S.documentElement.getAttribute("name")+" "+S.documentElement.getAttribute("version")+"</span> ",e+="<span class='w3-medium'>by "+S.documentElement.getAttribute("copyright")+"</span>",document.getElementById("footerDiv").innerHTML=e}function c(){S.getElementsByTagName("pages")[0].setAttribute("hasChildren","true"),S.getElementsByTagName("pages")[0].setAttribute("num","0"),S.getElementsByTagName("schemes")[0].setAttribute("hasChildren","true"),S.getElementsByTagName("schemes")[0].setAttribute("num","1"),S.getElementsByTagName("models")[0].setAttribute("hasChildren","false"),S.getElementsByTagName("models")[0].setAttribute("num","2"),S.getElementsByTagName("save")[0].setAttribute("hasChildren","false"),S.getElementsByTagName("save")[0].setAttribute("num","3")}function m(e){for(var t=document.getElementsByClassName("irt-section"),n=0;n<t.length;n++)t[n].style.display="none";var s=document.getElementsByClassName("sectionLink");for(n=0;n<t.length;n++)s[n].className=s[n].className.replace(" w3-grey","");for(var o=document.getElementsByClassName("sectionNav"),n=0;n<o.length;n++)o[n].style.display="none";var i=S.getElementsByTagName(e)[0].getAttribute("num");t[i].style.display="block",s[i].className+=" w3-grey","true"===S.getElementsByTagName(e)[0].getAttribute("hasChildren")&&(o[i].style.display="block")}function u(){for(var e=S.evaluate("//irt:pages/irt:page",S,s,XPathResult.ORDERED_NODE_SNAPSHOT_TYPE,null),t=0;t<e.snapshotLength;t++){var n=e.snapshotItem(t).getAttribute("name");e.snapshotItem(t).setAttribute("num",t);var o=document.createElement("li");o.className="leftLink1",o.textContent=n,document.getElementById("pagesUl").appendChild(o),o.addEventListener("click",A.openHtmlPage.bind(null,e.snapshotItem(t).id),!1)}(0,A.openHtmlPage)(e.snapshotItem(0).id)}function p(){(0,B.getXMLAsync)("./style/style.svg",function(e,n){e&&(0,B.errorAnalyzer)(e),console.log("Succesfully download style.svg"),t.svgStyle=C=n.documentElement.firstElementChild;for(var o=S.evaluate("//irt:schemes/irt:scheme[@active='true']",S,s,XPathResult.ORDERED_NODE_SNAPSHOT_TYPE,null),i=0;i<o.snapshotLength;i++){var r=o.snapshotItem(i).getAttribute("name");o.snapshotItem(i).setAttribute("num",i);var l=document.createElement("li");l.className="leftLink2",l.textContent=r,document.getElementById("schemesUl").appendChild(l),l.addEventListener("click",g.bind(null,o.snapshotItem(i).id),!1)}g(o.snapshotItem(0).id)})}function g(e){var n=document.getElementById("panzoom");if(n.children.length>0&&n.removeChild(n.children[0]),null!=e){for(var s=S.getElementById(e).getAttribute("num"),o=document.getElementsByClassName("leftLink2"),i=0;i<o.length;i++)o[i].className=o[i].className.replace(" w3-grey","");o[s].className+=" w3-grey",(0,B.getXMLAsync)(N+"/schemes/"+e+".svg",function(s,o){s&&(0,B.errorAnalyzer)(s),console.log("Succesfully download "+e+".svg"),t.schemeNode=P=o.firstChild,n.appendChild(P),(0,L.initSVG)()})}}function h(){var e=document.getElementById("rightDiv").style;"block"===e.display?e.display="none":e.display="block"}function f(){var e=document.documentElement.clientHeight-document.getElementById("topDiv").clientHeight-document.getElementById("footerDiv").clientHeight;document.getElementById("mainDiv").style.height=e+"px"}function E(){var e=document.getElementById("filter").value.toLowerCase();if(""!==e){for(var t="//sbml:*[@covered='false']",n=R.evaluate(t,R,s,XPathResult.ORDERED_NODE_SNAPSHOT_TYPE,null),o=0;o<n.snapshotLength;o++)n.snapshotItem(o).setAttribute("covered","true");for(var t="//sbml:*[@name[contains(translate(.,'ABCDEFGHIJKLMNOPQRSTUVWXYZ','abcdefghijklmnopqrstuvwxyz'),'"+e+"')] or @id[contains(translate(.,'ABCDEFGHIJKLMNOPQRSTUVWXYZ','abcdefghijklmnopqrstuvwxyz'),'"+e+"')]or sbml:notes/text()[contains(translate(.,'ABCDEFGHIJKLMNOPQRSTUVWXYZ','abcdefghijklmnopqrstuvwxyz'),'"+e+"')] or @speciesType=//sbml:speciesType[sbml:notes/text()[contains(translate(.,'ABCDEFGHIJKLMNOPQRSTUVWXYZ','abcdefghijklmnopqrstuvwxyz'),'"+e+"')]]/@id]",n=R.evaluate(t,R,s,XPathResult.ORDERED_NODE_SNAPSHOT_TYPE,null),o=0;o<n.snapshotLength;o++)n.snapshotItem(o).setAttribute("covered","false");document.styleSheets[w()].disabled=!1}else document.styleSheets[w()].disabled=!0}function v(){for(var e=R.evaluate("//sbml:*[@included='false']",R,s,XPathResult.ORDERED_NODE_SNAPSHOT_TYPE,null),t=0;t<e.snapshotLength;t++){var n=e.snapshotItem(t).getAttribute("id");R.getElementById(n).setAttribute("included","true")}(0,D.updateStatistics)()}function y(){for(var e=R.evaluate("//sbml:species[@included='true'] | //sbml:reaction[@included='true']",R,s,XPathResult.ORDERED_NODE_SNAPSHOT_TYPE,null),t=0;t<e.snapshotLength;t++){var n=e.snapshotItem(t).getAttribute("id");R.getElementById(n).setAttribute("included","false")}(0,D.updateStatistics)()}function b(){I("insysbio.token","",{expires:-1}),window.location="/"}function I(e,t,n){n=n||{};var s=n.expires;if("number"==typeof s&&s){var o=new Date;o.setTime(o.getTime()+1e3*s),s=n.expires=o}s&&s.toUTCString&&(n.expires=s.toUTCString()),t=encodeURIComponent(t);var i=e+"="+t;for(var r in n){i+="; "+r;var l=n[r];!0!==l&&(i+="="+l)}document.cookie=i}function w(){var e=null;do{e++}while("filter"!==document.styleSheets[e].title);return e}Object.defineProperty(t,"__esModule",{value:!0}),t.svgStyle=t.schemeNode=t.modelDoc=t.indexesDoc=t.dbPath=void 0,t.irtns=s,t.openSection=m,t.deselectAllTable=y;var B=n(4),A=n(8),T=n(6),D=n(9),L=n(10),N=t.dbPath="./db/";window.dbPath=N;var S=t.indexesDoc=null,R=t.modelDoc=null,O=null,P=t.schemeNode=null,_=null,M=null,C=t.svgStyle=null;window.onload=o,window.onunload=function(){_&&!_.closed&&_.close(),M&&!M.closed&&M.close()}},function(e,t,n){"use strict";e.exports=function(e){var t="undefined"!=typeof window&&window.location;if(!t)throw new Error("fixUrls requires window.location");if(!e||"string"!=typeof e)return e;var n=t.protocol+"//"+t.host,s=n+t.pathname.replace(/\/[^\/]*$/,"/");return e.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi,function(e,t){var o=t.trim().replace(/^"(.*)"$/,function(e,t){return t}).replace(/^'(.*)'$/,function(e,t){return t});if(/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/|\s*$)/i.test(o))return e;var i;return i=0===o.indexOf("//")?o:0===o.indexOf("/")?n+o:s+o.replace(/^\.\//,""),"url("+JSON.stringify(i)+")"})}},function(e,t,n){"use strict";function s(e,t){var n=new XMLHttpRequest;n.open("GET",e,!0),n.onreadystatechange=function(){n.readyState===XMLHttpRequest.DONE&&(401===n.status?(document.getElementById("endIrtSession").firstElementChild.classList.add("w3-disabled"),document.getElementById("endIrtSession").firstElementChild.setAttribute("disabled","true"),t(new Error("Authentication required..."))):(n.status,t(null,n.responseXML)))},n.send()}function o(e){throw document.getElementById("welcomeModal").style.display="block",document.getElementById("errorMsg").innerText=e.message,new Error(e.message)}function i(e){null!=document.getElementById(e).getAttribute("hidden")?document.getElementById(e).removeAttribute("hidden"):document.getElementById(e).setAttribute("hidden","true")}Object.defineProperty(t,"__esModule",{value:!0}),t.getXMLAsync=s,t.errorAnalyzer=o,t.hideSp=i},function(e,t,n){"use strict";function s(e){return{svg:"http://www.w3.org/2000/svg",xlink:"http://www.w3.org/1999/xlink",html:"http://www.w3.org/1999/xhtml",irt:"http://irt.insilicobio.ru/ns",sbml:"http://www.sbml.org/sbml/level2/version4",mml:"http://www.w3.org/1998/Math/MathML",l2v1:"http://www.sbml.org/sbml/level2/version1",l2v2:"http://www.sbml.org/sbml/level2/version2",l2v3:"http://www.sbml.org/sbml/level2/version3",l2v4:"http://www.sbml.org/sbml/level2/version4",l2v5:"http://www.sbml.org/sbml/level2/version5"}[e]||null}function o(e){document.getElementById("speciesInfo").setAttribute("hidden","true"),document.getElementById("reactionInfo").setAttribute("hidden","true"),document.getElementById("compartmentInfo").setAttribute("hidden","true");var t=window.opener.modelDoc.getElementById(e);"species"===t.tagName&&(i(e),document.getElementById("speciesInfo").removeAttribute("hidden")),"compartment"===t.tagName&&(r(e),document.getElementById("compartmentInfo").removeAttribute("hidden")),"reaction"===t.tagName&&(l(e),document.getElementById("reactionInfo").removeAttribute("hidden")),MathJax.Hub.Queue(["Typeset",MathJax.Hub])}function i(e){"true"===window.opener.modelDoc.getElementById(e).getAttribute("included")?(document.getElementById("spanSpeciesId").classList.remove("irt-included-not"),document.getElementById("spanSpeciesId").classList.add("irt-included")):(document.getElementById("spanSpeciesId").classList.remove("irt-included"),document.getElementById("spanSpeciesId").classList.add("irt-included-not"));var t=window.opener.modelDoc.getElementById(e);document.getElementById("spanSpeciesId").innerHTML=e,document.getElementById("spanSpeciesId2").innerHTML=e,document.getElementById("spanSpeciesName").innerHTML=t.getAttribute("name");var n=t.getElementsByTagName("notes")[0];if(void 0!==n?document.getElementById("spanSpeciesNote").replaceChild(n.cloneNode(!0),document.getElementById("spanSpeciesNote").firstChild):document.getElementById("spanSpeciesNote").innerHTML="&#8212;","true"===t.getAttribute("boundaryCondition"))document.getElementById("spanSpeciesMode").innerHTML="explicit",document.getElementById("spanSpeciesEquations").replaceChild(u(t),document.getElementById("spanSpeciesEquations").firstChild),document.getElementById("spanSpeciesInitials").innerHTML="-";else{document.getElementById("spanSpeciesMode").innerHTML="dynamic",document.getElementById("spanSpeciesEquations").innerHTML=" ";var s=c(t),o=window.opener.modelDoc.getElementById(t.getAttribute("substanceUnits")).getAttribute("name");document.getElementById("spanSpeciesInitials").innerHTML=e+"(0) = "+t.getAttribute("initialConcentration")+" <i>\\({"+o+"}/{l}\\)</i><sup>&#160;("+s.cIdent[0]+")</sup>",document.getElementById("spanSpeciesIdentifications").replaceChild(p(s.cIdent),document.getElementById("spanSpeciesIdentifications").firstChild)}var i=t.getAttribute("speciesType"),r=window.opener.modelDoc.getElementById(i);document.getElementById("spanSpeciesTypeId").innerHTML=i,document.getElementById("spanSpeciesTypeName").innerHTML=r.getAttribute("name");var l=r.getElementsByTagName("notes")[0];document.getElementById("spanSpeciesTypeNote").innerHTML=void 0!==l?l.innerHTML:"&#8212;",document.getElementById("spanSpeciesTypeReferences").innerHTML=h(r.getElementsByTagName("ref")),document.getElementById("spanSpeciesTypeSchemes").innerHTML=g(e,"species").innerHTML;var a=t.getAttribute("compartment"),r=window.opener.modelDoc.getElementById(a);document.getElementById("spanSpeciesCompartmentId").innerHTML=a,document.getElementById("spanSpeciesCompartmentName").innerHTML=r.getAttribute("name")}function r(e){var t=window.opener.modelDoc.getElementById(e);document.getElementById("spanCompartmentId").innerHTML=e,document.getElementById("spanCompartmentId2").innerHTML=e,document.getElementById("spanCompartmentName").innerHTML=t.getAttribute("name"),t.getElementsByTagName("notes").length>0?document.getElementById("spanCompartmentNote").innerHTML=t.getElementsByTagName("notes")[0].innerHTML:document.getElementById("spanCompartmentNote").innerHTML="&#8212;",document.getElementById("spanCompartmentReferences").innerHTML=h(t.getElementsByTagName("ref"));var n=c(t),s=window.opener.modelDoc.getElementById(t.getAttribute("units")).getAttribute("name");document.getElementById("spanCompartmentValue").innerHTML=e+" = "+t.getAttribute("size")+" <i>\\("+s+"\\)</i><sup>&#160;("+n.cIdent[0]+")</sup>",document.getElementById("spanCompartmentIdentifications").replaceChild(p(n.cIdent),document.getElementById("spanCompartmentIdentifications").firstChild)}function l(e){"true"===window.opener.modelDoc.getElementById(e).getAttribute("included")?(document.getElementById("spanReactionId").classList.remove("irt-included-not"),document.getElementById("spanReactionId").classList.add("irt-included")):(document.getElementById("spanReactionId").classList.remove("irt-included"),document.getElementById("spanReactionId").classList.add("irt-included-not"));var t=window.opener.modelDoc.getElementById(e);document.getElementById("spanReactionId").innerHTML=e,document.getElementById("spanReactionId2").innerHTML=e,document.getElementById("spanReactionName").innerHTML=t.getAttribute("name");var n=t.getElementsByTagName("notes");n.length>0?document.getElementById("spanReactionNote").replaceChild(n[0].cloneNode(!0),document.getElementById("spanReactionNote").firstChild):document.getElementById("spanReactionNote").innerHTML="&#8212;";var n=t.getElementsByTagName("annotation");n.length>0?document.getElementById("spanReactionReferences").innerHTML=h(t.getElementsByTagName("ref")):document.getElementById("spanReactionReferences").innerHTML="&#8212;",document.getElementById("spanReactionSchemes").innerHTML=g(e,"reaction").innerHTML,document.getElementById("spanReactionFormula").replaceChild(a(t).cloneNode(!0),document.getElementById("spanReactionFormula").firstChild),document.getElementById("spanReactionEquations").replaceChild(u(t),document.getElementById("spanReactionEquations").firstChild)}function a(e){var t=document.createElement("span"),n=e.getElementsByTagName("listOfReactants").item(0);if(n)var s=n.children;else var s=[];var o=e.getElementsByTagName("listOfProducts").item(0);if(o)var i=o.children;else var i=[];var r=e.getElementsByTagName("listOfModifiers").item(0);if(r)var l=r.children;else var l=[];for(var a="",d=0;d<s.length;d++)a+=s[d].getAttribute("species"),d<s.length-1&&(a+=" + ");s.length<1&&(a+="&#8709;"),a+=" &#8658; ";for(var d=0;d<i.length;d++)a+=i[d].getAttribute("species"),d<i.length-1&&(a+=" + ");i.length<1&&(a+="&#8709;"),l.length>0&&(a+="  ~ ");for(var d=0;d<l.length;d++)a+=l[d].getAttribute("species"),d<l.length-1&&(a+=", ");return t.innerHTML=a,t}function d(e){var t=e.getElementsByTagName("ident");if(t.length>0)var n=t[0].getAttribute("refId");else var n="o_blank";return n}function c(e){var t={c:[],f:[],cIdent:[],fIdent:[]};if("reaction"===e.tagName){t.f.push(e.id),t.fIdent.push(d(e));var n=e.getElementsByTagName("ci")}if("assignmentRule"===e.tagName)var n=e.getElementsByTagName("ci");if("species"===e.tagName)if("true"!==e.getAttribute("boundaryCondition")){t.c.push(e.id),t.cIdent.push(d(e));var n=[]}else{t.f.push(e.id),t.fIdent.push(d(e));var o=window.opener.modelDoc.evaluate("//sbml:assignmentRule[@variable='"+e.id+"']",window.opener.modelDoc,s,XPathResult.ORDERED_NODE_SNAPSHOT_TYPE,null).snapshotItem(0),n=o.getElementsByTagName("ci")}if("compartment"===e.tagName){t.c.push(e.id),t.cIdent.push(d(e));var n=[]}for(var i=0;i<n.length;i++){var r=n[i].textContent.replace(/(^\s+|\s+$)/g,""),l=window.opener.modelDoc.getElementById(r);if(l||console.log("Lost SBML element with id",r),"parameter"===l.tagName){var a=l.getElementsByTagName("ident");if(a.length>0)var m=a[0].getAttribute("refId");else var m="o:blank";if("true"===l.getAttribute("constant"))t.c.push(r),t.cIdent.push(m);else{t.f.push(r),t.fIdent.push(m);var o=window.opener.modelDoc.evaluate("//sbml:assignmentRule[@variable='"+r+"']",window.opener.modelDoc,s,XPathResult.ORDERED_NODE_SNAPSHOT_TYPE,null).snapshotItem(0),u=c(o);t.c=t.c.concat(u.c),t.f=t.f.concat(u.f),t.cIdent=t.cIdent.concat(u.cIdent),t.fIdent=t.fIdent.concat(u.fIdent)}}}return t}function m(e){for(var t=[],n=0;n<e.length;n++)-1===t.indexOf(e[n])&&t.push(e[n]);return t}function u(e){var t=document.createElement("table");t.setAttribute("class","equationTable");var n=document.createElement("tr");t.appendChild(n);var o=document.createElement("td");o.innerHTML=e.id,o.setAttribute("class","first"),n.appendChild(o);var o=document.createElement("td");o.innerHTML="=",o.setAttribute("class","second"),n.appendChild(o);var i=window.opener.modelDoc.evaluate("//sbml:assignmentRule[@variable='"+e.id+"']/mml:math | //sbml:reaction[@id='"+e.id+"']//mml:math ",window.opener.modelDoc,s,XPathResult.ORDERED_NODE_SNAPSHOT_TYPE,null).snapshotItem(0),o=document.createElement("td");o.appendChild(i.cloneNode(!0)),o.setAttribute("class","third"),n.appendChild(o);var r=document.createElement("sup");r.innerHTML="&#160;("+d(e)+")",o.appendChild(r);for(var l=c(e),a=1;a<l.f.length;a++){var u=window.opener.modelDoc.getElementById(l.f[a]).getElementsByTagName("notes")[0].textContent,n=document.createElement("tr");n.setAttribute("title",u),t.appendChild(n);var o=document.createElement("td");o.innerHTML=l.f[a],o.setAttribute("class","first"),n.appendChild(o);var o=document.createElement("td");o.innerHTML="=",o.setAttribute("class","second"),n.appendChild(o);var i=window.opener.modelDoc.evaluate("//sbml:assignmentRule[@variable='"+l.f[a]+"']/mml:math | //sbml:reaction[@id='"+l.f[a]+"']//mml:math ",window.opener.modelDoc,s,XPathResult.ORDERED_NODE_SNAPSHOT_TYPE,null).snapshotItem(0),o=document.createElement("td");o.appendChild(i.cloneNode(!0)),o.setAttribute("class","third"),n.appendChild(o);var r=document.createElement("sup");r.innerHTML="&#160;("+l.fIdent[a]+")",o.appendChild(r)}for(var a=0;a<l.c.length;a++){var n=document.createElement("tr");t.appendChild(n);var g=window.opener.modelDoc.getElementById(l.c[a]).getElementsByTagName("notes")[0];void 0!==g?n.setAttribute("title",g.textContent):n.setAttribute("title","-");var o=document.createElement("td");o.innerHTML=l.c[a],o.setAttribute("class","first"),n.appendChild(o);var o=document.createElement("td");o.innerHTML="=",o.setAttribute("class","second"),n.appendChild(o);var h=window.opener.modelDoc.getElementById(l.c[a]).getAttribute("value"),f=window.opener.modelDoc.getElementById(window.opener.modelDoc.getElementById(l.c[a]).getAttribute("units")).getAttribute("name"),o=document.createElement("td");o.innerHTML=h+" <i>\\("+f+"\\)</i><sup>&#160;("+l.cIdent[a]+")</sup>",o.setAttribute("class","third"),n.appendChild(o)}if("reaction"===e.tagName){var E=m(l.fIdent.concat(l.cIdent));document.getElementById("spanReactionIdentifications").replaceChild(p(E),document.getElementById("spanReactionIdentifications").firstChild)}if("species"===e.tagName){var E=m(l.fIdent.concat(l.cIdent));document.getElementById("spanSpeciesIdentifications").replaceChild(p(E),document.getElementById("spanSpeciesIdentifications").firstChild)}return t}function p(e){var t=document.createElement("table");t.setAttribute("class","equationTable");for(var n=0;n<e.length;n++){var o=document.createElement("tr");t.appendChild(o);var i=document.createElement("td");i.innerHTML="("+e[n]+")",i.setAttribute("class","first"),o.appendChild(i);var i=document.createElement("td");i.innerHTML=":",i.setAttribute("class","second"),o.appendChild(i);var i=document.createElement("td");i.setAttribute("class","third"),o.appendChild(i);var r=window.opener.iddbDoc.evaluate("//irt:identification[@id='"+e[n]+"']",window.opener.iddbDoc,s,XPathResult.ORDERED_NODE_SNAPSHOT_TYPE,null).snapshotItem(0),l="";if(null!=r){if(null!=r.getAttribute("name"))var a="<b>"+r.getAttribute("name")+". </b>";else var a="";l+=a+"<i>"+r.getAttribute("type")+"</i>. ",r.getElementsByTagName("notes").length>0&&(l+=r.getElementsByTagName("notes")[0].textContent),r.getElementsByTagName("attachedFile").length>0&&(l+=" Attached files:");for(var d=0;d<r.getElementsByTagName("attachedFile").length;d++){var c=r.getElementsByTagName("attachedFile")[d].getAttribute("path");l=l+" <a href='"+window.opener.dbPath+"/iddb/"+c+"' target='_blank'>"+c+"</a>;"}r.getElementsByTagName("ref").length>0&&(l=l+" References: "+h(r.getElementsByTagName("ref")))}i.innerHTML=l}return t}function g(e,t){for(var n=document.createElement("p"),o='//irt:scheme[irt:term[@type="'+t+'"]/@ref="'+e+'"]',i=window.opener.indexesDoc.evaluate(o,window.opener.indexesDoc,s,XPathResult.ORDERED_NODE_SNAPSHOT_TYPE,null),r="",l=0;l<i.snapshotLength;l++)r+="<span class='schemeLink' onmousedown=\"{window.opener.openSvgScheme('"+i.snapshotItem(l).getAttribute("id")+"'); window.opener.openSection('schemes');}\">"+i.snapshotItem(l).getAttribute("name")+"</span>; ";return n.innerHTML=r,n}function h(e){for(var t="",n=0;n<e.length;n++){var s=e[n].getAttribute("db"),o=window.opener.indexesDoc.getElementById(s).getAttribute("suffix"),i=e[n].getAttribute("ref");t=t+'<a href="'+o+i+'" class="extLink" target="_blank">'+i+"</a><sup>&#160;"+s+"</sup>; "}return t}Object.defineProperty(t,"__esModule",{value:!0}),t.irtns=s;var f=null;window.onload=function(){f=window.location.search.replace("?",""),o(f),document.getElementById("spanReactionId").addEventListener("click",function(){var e=document.getElementById("spanReactionId").classList.contains("irt-included");window.opener.modelDoc.getElementById(f).setAttribute("included",!e)},!1),document.getElementById("spanSpeciesId").addEventListener("click",function(){var e=document.getElementById("spanSpeciesId").classList.contains("irt-included");window.opener.modelDoc.getElementById(f).setAttribute("included",!e)},!1)},window.onunload=function(){},window.hideSp=function(e){null!=document.getElementById(e).getAttribute("hidden")?document.getElementById(e).removeAttribute("hidden"):document.getElementById(e).setAttribute("hidden","true")}},function(e,t,n){"use strict";function s(){var e=l.modelDoc.documentElement.firstElementChild;e.setAttribute("touched",""),e.setAttribute("chosen",""),a.observe(e,{attributes:!0,attributeOldValue:!0,attributeFilter:["touched","chosen"]});for(var t=l.modelDoc.evaluate("//sbml:model//sbml:species[@id]/@id | //sbml:model//sbml:reaction[@id]/@id",l.modelDoc,l.irtns,XPathResult.ORDERED_NODE_SNAPSHOT_TYPE,null),n=0;n<t.snapshotLength;n++){var s=l.modelDoc.getElementById(t.snapshotItem(n).textContent);s.setAttribute("included","false"),s.setAttribute("covered","true"),a.observe(s,{attributes:!0,attributeOldValue:!0,attributeFilter:["included","covered"]})}for(var t=l.modelDoc.evaluate("//sbml:compartment/@id",l.modelDoc,l.irtns,XPathResult.ORDERED_NODE_SNAPSHOT_TYPE,null),n=0;n<t.snapshotLength;n++){var s=l.modelDoc.getElementById(t.snapshotItem(n).textContent);s.setAttribute("included","true"),s.setAttribute("covered","true"),a.observe(s,{attributes:!0,attributeOldValue:!0,attributeFilter:["covered"]})}}function o(e){e.map(function(e){if("covered"===e.attributeName){var t=e.target.id;if("true"===e.target.getAttribute("covered")){for(var n=document.evaluate("//svg:g[@irt:ref='"+t+"']",l.schemeNode,l.irtns,XPathResult.ORDERED_NODE_SNAPSHOT_TYPE,null),s=0;s<n.snapshotLength;s++)n.snapshotItem(s).classList.add("irt-covered");document.getElementById("s_"+t).parentElement.parentElement.classList.add("irt-covered")}else{for(var n=document.evaluate("//svg:g[@irt:ref='"+t+"']",l.schemeNode,l.irtns,XPathResult.ORDERED_NODE_SNAPSHOT_TYPE,null),s=0;s<n.snapshotLength;s++)n.snapshotItem(s).classList.remove("irt-covered");document.getElementById("s_"+t).parentElement.parentElement.classList.remove("irt-covered")}}if("chosen"===e.attributeName){for(var t=e.target.getAttribute("chosen"),n=document.evaluate("//svg:g[@irt:ref='"+t+"']",l.schemeNode,l.irtns,XPathResult.ORDERED_NODE_SNAPSHOT_TYPE,null),s=0;s<n.snapshotLength;s++)n.snapshotItem(s).classList.add("irt-chosen");if(document.getElementById("s_"+t).classList.add("irt-chosen"),document.getElementById("f_"+t).classList.add("irt-chosen"),r=window.open("annotation.xhtml?"+t,"annotation","width=800,height=600,left=300,top=300,menubar=no,titlebar=no",!1),""!==e.oldValue){for(var n=document.evaluate("//svg:g[@irt:ref='"+e.oldValue+"']",l.schemeNode,l.irtns,XPathResult.ORDERED_NODE_SNAPSHOT_TYPE,null),s=0;s<n.snapshotLength;s++)n.snapshotItem(s).classList.remove("irt-chosen");document.getElementById("s_"+e.oldValue).classList.remove("irt-chosen"),document.getElementById("f_"+e.oldValue).classList.remove("irt-chosen")}}if("included"===e.attributeName){var t=e.target.id;if("true"===e.target.getAttribute("included")){for(var n=document.evaluate("//svg:g[@irt:ref='"+t+"']",l.schemeNode,l.irtns,XPathResult.ORDERED_NODE_SNAPSHOT_TYPE,null),s=0;s<n.snapshotLength;s++)n.snapshotItem(s).classList.add("irt-included");document.getElementById("s_"+t).classList.add("irt-included"),document.getElementById("f_"+t).classList.add("irt-included"),l.modelDoc.documentElement.firstElementChild.getAttribute("chosen")===t&&(r.document.getElementById("spanReactionId").classList.add("irt-included"),r.document.getElementById("spanSpeciesId").classList.add("irt-included"))}else{for(var n=document.evaluate("//svg:g[@irt:ref='"+t+"']",l.schemeNode,l.irtns,XPathResult.ORDERED_NODE_SNAPSHOT_TYPE,null),s=0;s<n.snapshotLength;s++)n.snapshotItem(s).classList.remove("irt-included");document.getElementById("s_"+t).classList.remove("irt-included"),document.getElementById("f_"+t).classList.remove("irt-included"),l.modelDoc.documentElement.firstElementChild.getAttribute("chosen")===t&&(r.document.getElementById("spanReactionId").classList.remove("irt-included"),r.document.getElementById("spanSpeciesId").classList.remove("irt-included"))}r&&r.focus()}if("touched"===e.attributeName){for(var t=e.target.getAttribute("touched"),n=document.evaluate("//svg:g[@irt:ref='"+t+"']",l.schemeNode,l.irtns,XPathResult.ORDERED_NODE_SNAPSHOT_TYPE,null),s=0;s<n.snapshotLength;s++)n.snapshotItem(s).classList.add("irt-touched");for(var n=document.evaluate("//svg:g[@irt:ref='"+e.oldValue+"']",l.schemeNode,l.irtns,XPathResult.ORDERED_NODE_SNAPSHOT_TYPE,null),s=0;s<n.snapshotLength;s++)n.snapshotItem(s).classList.remove("irt-touched")}})}function i(e){var t="",n="";return l.modelDoc.getElementById(e)&&l.modelDoc.getElementById(e).getAttribute("name")&&(t=l.modelDoc.getElementById(e).getAttribute("name")),l.modelDoc.getElementById(e)&&l.modelDoc.getElementById(e).getElementsByTagName("notes")&&l.modelDoc.getElementById(e).getElementsByTagName("notes")[0]&&(n=l.modelDoc.getElementById(e).getElementsByTagName("notes")[0].innerHTML),"<p><b>"+t+"</b> (<i>"+e+"</i>)</p><p>"+n+"</p>"}Object.defineProperty(t,"__esModule",{value:!0}),t.openModel=s,t.shortAnnotation=i;var r,l=n(2),a=new MutationObserver(o)},,function(e,t,n){"use strict";function s(e){for(var t=o.indexesDoc.getElementById(e).getAttribute("num"),n=document.getElementsByClassName("leftLink1"),s=0;s<n.length;s++)n[s].className=n[s].className.replace(" w3-grey","");n[t].className+=" w3-grey";var r=o.dbPath+o.indexesDoc.getElementById(e).getAttribute("path");(0,i.getXMLAsync)(r,function(e,t){var n=document.getElementById("pagesDiv");e&&errorAnalyzer(e),n.children.length>0&&n.removeChild(n.children[0]),n.appendChild(t.documentElement),MathJax.Hub.Queue(["Typeset",MathJax.Hub])})}Object.defineProperty(t,"__esModule",{value:!0}),t.openHtmlPage=s;var o=n(2),i=n(4)},function(e,t,n){"use strict";function s(){window.cloneModelDoc=u=c.modelDoc.cloneNode(!0);for(var e="//sbml:assignmentRule[@variable=//sbml:species[@included='true']/@id]/descendant::mml:ci/text() | //sbml:reaction[@included='true']/descendant::mml:ci/text()",t=u.evaluate(e,u,c.irtns,XPathResult.ORDERED_NODE_SNAPSHOT_TYPE,null),n=0;n<t.snapshotLength;n++){var s=t.snapshotItem(n).textContent.clearSpace(),o=u.getElementById(s);o?o.setAttribute("mentioned","true"):console.warn('Searching in "cloneModelDoc" is unsuccesfull for id ',s)}for(var e="//sbml:species[@id=//sbml:reaction[@included='true']//sbml:*[@species]/@species]",t=u.evaluate(e,u,c.irtns,XPathResult.ORDERED_NODE_SNAPSHOT_TYPE,null),n=0;n<t.snapshotLength;n++){var i=t.snapshotItem(n);i.setAttribute("mentioned","true")}for(var e="//sbml:assignmentRule[@variable=//sbml:parameter[@mentioned='true']/@id]/descendant::mml:ci/text()",t=u.evaluate(e,u,c.irtns,XPathResult.ORDERED_NODE_SNAPSHOT_TYPE,null),n=0;n<t.snapshotLength;n++){var i=u.getElementById(t.snapshotItem(n).textContent.clearSpace());i.setAttribute("mentioned","true")}for(var e="//sbml:assignmentRule[@variable=//sbml:species[@included='true']/@id] | //sbml:assignmentRule[@variable=//sbml:parameter[@mentioned='true']/@id]",t=u.evaluate(e,u,c.irtns,XPathResult.ORDERED_NODE_SNAPSHOT_TYPE,null),n=0;n<t.snapshotLength;n++)t.snapshotItem(n).setAttribute("mentioned","true");for(var e="//sbml:unitDefinition[@id=//sbml:species[@mentioned='true' or @included='true']/@substanceUnits] | //sbml:unitDefinition[@id=//sbml:parameter[@mentioned='true']/@units] | //sbml:unitDefinition[@id=//sbml:compartment[@mentioned='true' or @included='true']/@units]",t=u.evaluate(e,u,c.irtns,XPathResult.ORDERED_NODE_SNAPSHOT_TYPE,null),n=0;n<t.snapshotLength;n++)t.snapshotItem(n).setAttribute("mentioned","true");for(var e="//sbml:speciesType[@id=//sbml:species[@mentioned='true' or @included='true']/@speciesType]",t=u.evaluate(e,u,c.irtns,XPathResult.ORDERED_NODE_SNAPSHOT_TYPE,null),n=0;n<t.snapshotLength;n++)t.snapshotItem(n).setAttribute("mentioned","true")}function o(){var e;p();var t=document.getElementById("sbmlVersion").value;switch(t){case"L2V1":e="./js/templatev2l1.xsl";break;case"L2V2":e="./js/templatev2l2.xsl";break;case"L2V3":e="./js/templatev2l3.xsl";break;case"L2V4":e="./js/templatev2l4.xsl";break;case"L2V5":e="./js/templatev2l5.xsl";break;case"L3V1":e="./js/templatev3l1.xsl";break;default:alert("This vesion is not suported!")}(0,m.getXMLAsync)(e,function(n,s){n&&errorAnalyzer(n),console.log("Succesfully download "+e);var o=new XSLTProcessor;o.importStylesheet(s),document.getElementById("includeUnitDefinitions").checked&&o.setParameter(null,"unitDefinitions","true()"),document.getElementById("includeSpeciesTypes").checked&&o.setParameter(null,"speciesTypes","true()"),document.getElementById("includeAnnotation").checked&&o.setParameter(null,"annotation","true()"),document.getElementById("includeNotes").checked&&o.setParameter(null,"notes","true()");var i=o.transformToDocument(u),r=new XMLSerializer,l=r.serializeToString(i);l='<?xml version="1.0" encoding="UTF-8" standalone="no"?>'+l;var a=document.createElement("a"),d=new Blob([l],{type:"text/plain"});a.setAttribute("href",window.URL.createObjectURL(d)),a.setAttribute("download","template "+t+".xml"),a.dataset.downloadurl=["text/plain",a.download,a.href].join(":"),a.draggable=!0,a.classList.add("dragout"),a.click()})}function i(){return c.modelDoc.evaluate("count(//sbml:model//sbml:compartment[@included='true'])",c.modelDoc,c.irtns,XPathResult.ANY_TYPE,null).numberValue}function r(){return c.modelDoc.evaluate("count(//sbml:model//sbml:species[@included='true'])",c.modelDoc,c.irtns,XPathResult.ANY_TYPE,null).numberValue}function l(){return c.modelDoc.evaluate("count(//sbml:model//sbml:reaction[@included='true'])",c.modelDoc,c.irtns,XPathResult.ANY_TYPE,null).numberValue}function a(){window.open("ode.xhtml","ode","width=800,height=600")}function d(e){e.preventDefault();var t,n=document.getElementById("uploadTemplate").files[0],s=new FileReader;s.onload=function(){var e=s.result.toString(),n=(new DOMParser).parseFromString(e,"text/xml");if("irt"===n.getElementsByTagName("model")[0].id){(0,c.deselectAllTable)();t=c.modelDoc.evaluate("//*[descendant::irt:included]/@id",n,c.irtns,XPathResult.ORDERED_NODE_SNAPSHOT_TYPE,null);for(var o=1;o<t.snapshotLength;o++)c.modelDoc.getElementById(t.snapshotItem(o).value).setAttribute("included","true");alert(t.snapshotLength-1+" element were included"),p()}},s.readAsText(n)}Object.defineProperty(t,"__esModule",{value:!0}),t.updateStatistics=void 0,t.saveSBML=o,t.openODE=a,t.loadSBML=d;var c=n(2),m=n(4);String.prototype.clearSpace=function(){return this.replace(/(^\s+|\s+$)/g,"")};var u,p=t.updateStatistics=function(){document.getElementById("numOfIncludedCompartments").innerHTML=i(),document.getElementById("numOfIncludedSpecies").innerHTML=r(),document.getElementById("numOfIncludedReactions").innerHTML=l(),s()};window.updateStatistics=p},function(e,t,n){"use strict";function s(){m.schemeNode.appendChild(m.svgStyle);for(var e=document.evaluate(".//svg:g[@irt:ref]",m.schemeNode,m.irtns,XPathResult.ORDERED_NODE_SNAPSHOT_TYPE,null),t=0;t<e.snapshotLength;t++){var n=e.snapshotItem(t).getAttribute("irt:ref"),s=m.modelDoc.getElementById(n);null!=s&&("false"!==s.getAttribute("covered")&&e.snapshotItem(t).classList.add("irt-covered"),"true"===s.getAttribute("included")&&e.snapshotItem(t).classList.add("irt-included"),m.modelDoc.documentElement.firstElementChild.getAttribute("chosen")===n&&e.snapshotItem(t).classList.add("irt-chosen"),"compartment"===s.nodeName&&e.snapshotItem(t).classList.add("irt-compartment"),"species"===s.nodeName&&e.snapshotItem(t).classList.add("irt-species"),"reaction"===s.nodeName&&e.snapshotItem(t).classList.add("irt-reaction")),e.snapshotItem(t).addEventListener("mouseover",o,!1),e.snapshotItem(t).addEventListener("mouseout",i,!1),e.snapshotItem(t).addEventListener("click",r,!1)}}function o(e){var t=e.currentTarget.getAttribute("irt:ref");m.modelDoc.documentElement.firstElementChild.setAttribute("touched",t),document.getElementById("tip").style.top=e.clientY+"px",document.getElementById("tip").style.left=e.clientX+"px",document.getElementById("tip").innerHTML=(0,u.shortAnnotation)(t),c=setTimeout(function(){document.getElementById("tip").style.display="block"},500)}function i(){m.modelDoc.documentElement.firstElementChild.setAttribute("touched",""),clearTimeout(c),document.getElementById("tip").style.display="none"}function r(e){var t=e.currentTarget.getAttribute("irt:ref"),n="true"===m.modelDoc.getElementById(t).getAttribute("included");m.modelDoc.documentElement.firstElementChild.getAttribute("chosen")===t?m.modelDoc.getElementById(t).setAttribute("included",!n):m.modelDoc.documentElement.firstElementChild.setAttribute("chosen",t)}function l(e){var t=e.currentTarget.getAttribute("irt:ref");m.modelDoc.documentElement.firstElementChild.setAttribute("chosen",t)}function a(){for(var e=document.evaluate("//svg:g[@irt:ref and not(contains(@class, 'hidden'))]",m.schemeNode,m.irtns,XPathResult.ORDERED_NODE_SNAPSHOT_TYPE,null),t=0;t<e.snapshotLength;t++){var n=e.snapshotItem(t).getAttribute("irt:ref");m.modelDoc.getElementById(n).setAttribute("included","true")}}function d(){for(var e=document.evaluate("//svg:g[@irt:ref and not(contains(@class, 'hidden')) and not(contains(@class, 'irt-compartment'))]",m.schemeNode,m.irtns,XPathResult.ORDERED_NODE_SNAPSHOT_TYPE,null),t=0;t<e.snapshotLength;t++){var n=e.snapshotItem(t).getAttribute("irt:ref");m.modelDoc.getElementById(n).setAttribute("included","false")}}Object.defineProperty(t,"__esModule",{value:!0}),t.initSVG=s,t.mouseOverElement=o,t.mouseOutElement=i,t.mouseDownElement=r,t.mouseDownElement2=l,t.selectAllSheme=a,t.deselectAllSheme=d;var c,m=n(2),u=n(6)},,function(e,t,n){"use strict";n(4),n(5),n(2),n(8),n(6),n(10),n(9),n(13)},function(e,t,n){var s=n(14);"string"==typeof s&&(s=[[e.i,s,""]]);var o={attrs:{title:"filter"},hmr:!0};o.transform=void 0,o.insertInto=void 0;n(1)(s,o);s.locals&&(e.exports=s.locals)},function(e,t,n){t=e.exports=n(0)(!1),t.push([e.i,"g.irt-covered{opacity:.2!important}div.irt-covered,tr.irt-covered{display:none!important}.loader{border:16px solid #f3f3f3;border-top:16px solid #3498db;border-radius:50%;width:120px;height:120px;animation:spin 2s linear infinite}@keyframes spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}",""])}]);