import{A as D}from"./index.f4d41e67.entry.js";function P(p,v){return v.forEach(function(r){r&&typeof r!="string"&&!Array.isArray(r)&&Object.keys(r).forEach(function(l){if(l!=="default"&&!(l in p)){var k=Object.getOwnPropertyDescriptor(r,l);Object.defineProperty(p,l,k.get?k:{enumerable:!0,get:function(){return r[l]}})}})}),Object.freeze(Object.defineProperty(p,Symbol.toStringTag,{value:"Module"}))}var g={exports:{}};(function(p,v){(function(r){r(D.exports)})(function(r){r.defineMode("modelica",function(o,t){var u=o.indentUnit,a=t.keywords||{},s=t.builtin||{},d=t.atoms||{},h=/[;=\(:\),{}.*<>+\-\/^\[\]]/,w=/(:=|<=|>=|==|<>|\.\+|\.\-|\.\*|\.\/|\.\^)/,f=/[0-9]/,b=/[_a-zA-Z]/;function x(n,e){return n.skipToEnd(),e.tokenize=null,"comment"}function E(n,e){for(var i=!1,c;c=n.next();){if(i&&c=="/"){e.tokenize=null;break}i=c=="*"}return"comment"}function S(n,e){for(var i=!1,c;(c=n.next())!=null;){if(c=='"'&&!i){e.tokenize=null,e.sol=!1;break}i=!i&&c=="\\"}return"string"}function O(n,e){for(n.eatWhile(f);n.eat(f)||n.eat(b););var i=n.current();return e.sol&&(i=="package"||i=="model"||i=="when"||i=="connector")?e.level++:e.sol&&i=="end"&&e.level>0&&e.level--,e.tokenize=null,e.sol=!1,a.propertyIsEnumerable(i)?"keyword":s.propertyIsEnumerable(i)?"builtin":d.propertyIsEnumerable(i)?"atom":"variable"}function I(n,e){for(;n.eat(/[^']/););return e.tokenize=null,e.sol=!1,n.eat("'")?"variable":"error"}function _(n,e){return n.eatWhile(f),n.eat(".")&&n.eatWhile(f),(n.eat("e")||n.eat("E"))&&(n.eat("-")||n.eat("+"),n.eatWhile(f)),e.tokenize=null,e.sol=!1,"number"}return{startState:function(){return{tokenize:null,level:0,sol:!0}},token:function(n,e){if(e.tokenize!=null)return e.tokenize(n,e);if(n.sol()&&(e.sol=!0),n.eatSpace())return e.tokenize=null,null;var i=n.next();if(i=="/"&&n.eat("/"))e.tokenize=x;else if(i=="/"&&n.eat("*"))e.tokenize=E;else{if(w.test(i+n.peek()))return n.next(),e.tokenize=null,"operator";if(h.test(i))return e.tokenize=null,"operator";if(b.test(i))e.tokenize=O;else if(i=="'"&&n.peek()&&n.peek()!="'")e.tokenize=I;else if(i=='"')e.tokenize=S;else if(f.test(i))e.tokenize=_;else return e.tokenize=null,"error"}return e.tokenize(n,e)},indent:function(n,e){if(n.tokenize!=null)return r.Pass;var i=n.level;return/(algorithm)/.test(e)&&i--,/(equation)/.test(e)&&i--,/(initial algorithm)/.test(e)&&i--,/(initial equation)/.test(e)&&i--,/(end)/.test(e)&&i--,i>0?u*i:0},blockCommentStart:"/*",blockCommentEnd:"*/",lineComment:"//"}});function l(o){for(var t={},u=o.split(" "),a=0;a<u.length;++a)t[u[a]]=!0;return t}var k="algorithm and annotation assert block break class connect connector constant constrainedby der discrete each else elseif elsewhen encapsulated end enumeration equation expandable extends external false final flow for function if import impure in initial inner input loop model not operator or outer output package parameter partial protected public pure record redeclare replaceable return stream then true type when while within",y="abs acos actualStream asin atan atan2 cardinality ceil cos cosh delay div edge exp floor getInstanceName homotopy inStream integer log log10 mod pre reinit rem semiLinear sign sin sinh spatialDistribution sqrt tan tanh",m="Real Boolean Integer String";function z(o,t){typeof o=="string"&&(o=[o]);var u=[];function a(d){if(d)for(var h in d)d.hasOwnProperty(h)&&u.push(h)}a(t.keywords),a(t.builtin),a(t.atoms),u.length&&(t.helperType=o[0],r.registerHelper("hintWords",o[0],u));for(var s=0;s<o.length;++s)r.defineMIME(o[s],t)}z(["text/x-modelica"],{name:"modelica",keywords:l(k),builtin:l(y),atoms:l(m)})})})();var W=g.exports,q=P({__proto__:null,default:W},[g.exports]);export{q as m};
