"use strict";(self.webpackChunksc_components=self.webpackChunksc_components||[]).push([[4028],{24028(R,m,o){function a(n,t,i){return t(i),i(n,t)}o.d(m,{elm:()=>y});var w=/[a-z]/,k=/[A-Z]/,f=/[a-zA-Z0-9_]/,l=/[0-9]/,v=/[0-9A-Fa-f]/,p=/[-&*+.\\/<>=?^|:]/,u=/[(),[\]{}]/,g=/[ \v\f]/;function e(){return function(n,t){if(n.eatWhile(g))return null;var i=n.next();if(u.test(i))return"{"===i&&n.eat("-")?a(n,t,h(1)):"["===i&&n.match("glsl|")?a(n,t,E):"builtin";if("'"===i)return a(n,t,_);if('"'===i)return n.eat('"')?n.eat('"')?a(n,t,d):"string":a(n,t,x);if(k.test(i))return n.eatWhile(f),"type";if(w.test(i)){var r=1===n.pos;return n.eatWhile(f),r?"def":"variable"}if(l.test(i)){if("0"===i){if(n.eat(/[xX]/))return n.eatWhile(v),"number"}else n.eatWhile(l);return n.eat(".")&&n.eatWhile(l),n.eat(/[eE]/)&&(n.eat(/[-+]/),n.eatWhile(l)),"number"}return p.test(i)?"-"===i&&n.eat("-")?(n.skipToEnd(),"comment"):(n.eatWhile(p),"keyword"):"_"===i?"keyword":"error"}}function h(n){return 0==n?e():function(t,i){for(;!t.eol();){var r=t.next();if("{"==r&&t.eat("-"))++n;else if("-"==r&&t.eat("}")&&0===--n)return i(e()),"comment"}return i(h(n)),"comment"}}function d(n,t){for(;!n.eol();)if('"'===n.next()&&n.eat('"')&&n.eat('"'))return t(e()),"string";return"string"}function x(n,t){for(;n.skipTo('\\"');)n.next(),n.next();return n.skipTo('"')?(n.next(),t(e()),"string"):(n.skipToEnd(),t(e()),"error")}function _(n,t){for(;n.skipTo("\\'");)n.next(),n.next();return n.skipTo("'")?(n.next(),t(e()),"string"):(n.skipToEnd(),t(e()),"error")}function E(n,t){for(;!n.eol();)if("|"===n.next()&&n.eat("]"))return t(e()),"string";return"string"}var b={case:1,of:1,as:1,if:1,then:1,else:1,let:1,in:1,type:1,alias:1,module:1,where:1,import:1,exposing:1,port:1};const y={name:"elm",startState:function(){return{f:e()}},copyState:function(n){return{f:n.f}},token:function(n,t){var i=t.f(n,function(W){t.f=W}),r=n.current();return b.hasOwnProperty(r)?"keyword":i},languageData:{commentTokens:{line:"--"}}}}}]);