owncast/static/web/_next/static/chunks/5815.a2728b3992c996c3.js
2023-01-30 17:44:49 +00:00

1 line
No EOL
2 KiB
JavaScript
Vendored

"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5815],{15815:function(t,e,n){function o(t){return RegExp("^(?:"+t.join("|")+")$","i")}n.r(e),n.d(e,{turtle:function(){return f}}),o([]);var r,i=o(["@prefix","@base","a"]),c=/[*+\-<>=&|]/;function a(t,e){var n,o=t.next();if(r=null,"<"==o&&!t.match(/^[\s\u00a0=]/,!1))return t.match(/^[^\s\u00a0>]*>?/),"atom";if('"'==o||"'"==o)return e.tokenize=function(t,e){for(var n,r=!1;null!=(n=t.next());){if(n==o&&!r){e.tokenize=a;break}r=!r&&"\\"==n}return"string"},e.tokenize(t,e);if(/[{}\(\),\.;\[\]]/.test(o))return r=o,null;if("#"==o)return t.skipToEnd(),"comment";if(c.test(o))return t.eatWhile(c),null;if(":"==o)return"operator";if(t.eatWhile(/[_\w\d]/),":"==t.peek())return"variableName.special";var n=t.current();return i.test(n)?"meta":o>="A"&&o<="Z"?"comment":"keyword"}function l(t,e,n){t.context={prev:t.context,indent:t.indent,col:n,type:e}}function u(t){t.indent=t.context.indent,t.context=t.context.prev}let f={name:"turtle",startState:function(){return{tokenize:a,context:null,indent:0,col:0}},token:function(t,e){if(t.sol()&&(e.context&&null==e.context.align&&(e.context.align=!1),e.indent=t.indentation()),t.eatSpace())return null;var n=e.tokenize(t,e);if("comment"!=n&&e.context&&null==e.context.align&&"pattern"!=e.context.type&&(e.context.align=!0),"("==r)l(e,")",t.column());else if("["==r)l(e,"]",t.column());else if("{"==r)l(e,"}",t.column());else if(/[\]\}\)]/.test(r)){for(;e.context&&"pattern"==e.context.type;)u(e);e.context&&r==e.context.type&&u(e)}else"."==r&&e.context&&"pattern"==e.context.type?u(e):/atom|string|variable/.test(n)&&e.context&&(/[\}\]]/.test(e.context.type)?l(e,"pattern",t.column()):"pattern"!=e.context.type||e.context.align||(e.context.align=!0,e.context.col=t.column()));return n},indent:function(t,e,n){var o=e&&e.charAt(0),r=t.context;if(/[\]\}]/.test(o))for(;r&&"pattern"==r.type;)r=r.prev;var i=r&&o==r.type;return r?"pattern"==r.type?r.col:r.align?r.col+(i?0:1):r.indent+(i?0:n.unit):0},languageData:{commentTokens:{line:"#"}}}}}]);