"use strict";(self.webpackChunksc_note_comment=self.webpackChunksc_note_comment||[]).push([[8015],{8015(w,p,f){f.d(p,{q:()=>g});var c,x=function k(e){return new RegExp("^("+e.join("|")+")$")}(["abs","acos","aj","aj0","all","and","any","asc","asin","asof","atan","attr","avg","avgs","bin","by","ceiling","cols","cor","cos","count","cov","cross","csv","cut","delete","deltas","desc","dev","differ","distinct","div","do","each","ej","enlist","eval","except","exec","exit","exp","fby","fills","first","fkeys","flip","floor","from","get","getenv","group","gtime","hclose","hcount","hdel","hopen","hsym","iasc","idesc","if","ij","in","insert","inter","inv","key","keys","last","like","list","lj","load","log","lower","lsq","ltime","ltrim","mavg","max","maxs","mcount","md5","mdev","med","meta","min","mins","mmax","mmin","mmu","mod","msum","neg","next","not","null","or","over","parse","peach","pj","plist","prd","prds","prev","prior","rand","rank","ratios","raze","read0","read1","reciprocal","reverse","rload","rotate","rsave","rtrim","save","scan","select","set","setenv","show","signum","sin","sqrt","ss","ssr","string","sublist","sum","sums","sv","system","tables","tan","til","trim","txf","type","uj","ungroup","union","update","upper","upsert","value","var","view","views","vs","wavg","where","where","while","within","wj","wj1","wsum","xasc","xbar","xcol","xcols","xdesc","xexp","xgroup","xkey","xlog","xprev","xrank"]),s=/[|/&^!+:\\\-*%$=~#;@><,?_\'\"\[\(\]\)\s{}]/;function l(e,n){var o=e.sol(),i=e.next();if(c=null,o){if("/"==i)return(n.tokenize=v)(e,n);if("\\"==i)return e.eol()||/\s/.test(e.peek())?(e.skipToEnd(),/^\\\s*$/.test(e.current())?(n.tokenize=a)(e):n.tokenize=l,"comment"):(n.tokenize=l,"builtin")}if(/\s/.test(i))return"/"==e.peek()?(e.skipToEnd(),"comment"):"null";if('"'==i)return(n.tokenize=h)(e,n);if("`"==i)return e.eatWhile(/[A-Za-z\d_:\/.]/),"macroName";if("."==i&&/\d/.test(e.peek())||/\d/.test(i)){var t=null;return e.backUp(1),e.match(/^\d{4}\.\d{2}(m|\.\d{2}([DT](\d{2}(:\d{2}(:\d{2}(\.\d{1,9})?)?)?)?)?)/)||e.match(/^\d+D(\d{2}(:\d{2}(:\d{2}(\.\d{1,9})?)?)?)/)||e.match(/^\d{2}:\d{2}(:\d{2}(\.\d{1,9})?)?/)||e.match(/^\d+[ptuv]{1}/)?t="temporal":(e.match(/^0[NwW]{1}/)||e.match(/^0x[\da-fA-F]*/)||e.match(/^[01]+[b]{1}/)||e.match(/^\d+[chijn]{1}/)||e.match(/-?\d*(\.\d*)?(e[+\-]?\d+)?(e|f)?/))&&(t="number"),!t||(i=e.peek())&&!s.test(i)?(e.next(),"error"):t}return/[A-Za-z]|\./.test(i)?(e.eatWhile(/[A-Za-z._\d]/),x.test(e.current())?"keyword":"variable"):/[|/&^!+:\\\-*%$=~#;@><\.,?_\']/.test(i)||/[{}\(\[\]\)]/.test(i)?null:"error"}function v(e,n){return e.skipToEnd(),/^\/\s*$/.test(e.current())?(n.tokenize=m)(e,n):n.tokenize=l,"comment"}function m(e,n){var o=e.sol()&&"\\"==e.peek();return e.skipToEnd(),o&&/^\\\s*$/.test(e.current())&&(n.tokenize=l),"comment"}function a(e){return e.skipToEnd(),"comment"}function h(e,n){for(var i,o=!1,t=!1;i=e.next();){if('"'==i&&!o){t=!0;break}o=!o&&"\\"==i}return t&&(n.tokenize=l),"string"}function r(e,n,o){e.context={prev:e.context,indent:e.indent,col:o,type:n}}function u(e){e.indent=e.context.indent,e.context=e.context.prev}const g={name:"q",startState:function(){return{tokenize:l,context:null,indent:0,col:0}},token:function(e,n){e.sol()&&(n.context&&null==n.context.align&&(n.context.align=!1),n.indent=e.indentation());var o=n.tokenize(e,n);if("comment"!=o&&n.context&&null==n.context.align&&"pattern"!=n.context.type&&(n.context.align=!0),"("==c)r(n,")",e.column());else if("["==c)r(n,"]",e.column());else if("{"==c)r(n,"}",e.column());else if(/[\]\}\)]/.test(c)){for(;n.context&&"pattern"==n.context.type;)u(n);n.context&&c==n.context.type&&u(n)}else"."==c&&n.context&&"pattern"==n.context.type?u(n):/atom|string|variable/.test(o)&&n.context&&(/[\}\]]/.test(n.context.type)?r(n,"pattern",e.column()):"pattern"==n.context.type&&!n.context.align&&(n.context.align=!0,n.context.col=e.column()));return o},indent:function(e,n,o){var i=n&&n.charAt(0),t=e.context;if(/[\]\}]/.test(i))for(;t&&"pattern"==t.type;)t=t.prev;var d=t&&i==t.type;return t?"pattern"==t.type?t.col:t.align?t.col+(d?0:1):t.indent+(d?0:o.unit):0},languageData:{commentTokens:{line:"/"}}}}}]);