debugbar 0.3.2 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
data/public/debugbar.js CHANGED
@@ -1,27 +1,44 @@
1
- var jA=Object.defineProperty;var qA=(e,t,E)=>t in e?jA(e,t,{enumerable:!0,configurable:!0,writable:!0,value:E}):e[t]=E;var je=(e,t,E)=>(qA(e,typeof t!="symbol"?t+"":t,E),E);var Qt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function PT(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function pR(e){return e instanceof Map?e.clear=e.delete=e.set=function(){throw new Error("map is read-only")}:e instanceof Set&&(e.add=e.clear=e.delete=function(){throw new Error("set is read-only")}),Object.freeze(e),Object.getOwnPropertyNames(e).forEach(t=>{const E=e[t],T=typeof E;(T==="object"||T==="function")&&!Object.isFrozen(E)&&pR(E)}),e}class Cs{constructor(t){t.data===void 0&&(t.data={}),this.data=t.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function fR(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;")}function Lt(e,...t){const E=Object.create(null);for(const T in e)E[T]=e[T];return t.forEach(function(T){for(const r in T)E[r]=T[r]}),E}const QA="</span>",cs=e=>!!e.scope,ZA=(e,{prefix:t})=>{if(e.startsWith("language:"))return e.replace("language:","language-");if(e.includes(".")){const E=e.split(".");return[`${t}${E.shift()}`,...E.map((T,r)=>`${T}${"_".repeat(r+1)}`)].join(" ")}return`${t}${e}`};class zA{constructor(t,E){this.buffer="",this.classPrefix=E.classPrefix,t.walk(this)}addText(t){this.buffer+=fR(t)}openNode(t){if(!cs(t))return;const E=ZA(t.scope,{prefix:this.classPrefix});this.span(E)}closeNode(t){cs(t)&&(this.buffer+=QA)}value(){return this.buffer}span(t){this.buffer+=`<span class="${t}">`}}const Ls=(e={})=>{const t={children:[]};return Object.assign(t,e),t};class Ur{constructor(){this.rootNode=Ls(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(t){this.top.children.push(t)}openNode(t){const E=Ls({scope:t});this.add(E),this.stack.push(E)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(t){return this.constructor._walk(t,this.rootNode)}static _walk(t,E){return typeof E=="string"?t.addText(E):E.children&&(t.openNode(E),E.children.forEach(T=>this._walk(t,T)),t.closeNode(E)),t}static _collapse(t){typeof t!="string"&&t.children&&(t.children.every(E=>typeof E=="string")?t.children=[t.children.join("")]:t.children.forEach(E=>{Ur._collapse(E)}))}}class ei extends Ur{constructor(t){super(),this.options=t}addText(t){t!==""&&this.add(t)}startScope(t){this.openNode(t)}endScope(){this.closeNode()}__addSublanguage(t,E){const T=t.root;E&&(T.scope=`language:${E}`),this.add(T)}toHTML(){return new zA(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function BE(e){return e?typeof e=="string"?e:e.source:null}function PR(e){return Wt("(?=",e,")")}function ti(e){return Wt("(?:",e,")*")}function Ei(e){return Wt("(?:",e,")?")}function Wt(...e){return e.map(E=>BE(E)).join("")}function Ti(e){const t=e[e.length-1];return typeof t=="object"&&t.constructor===Object?(e.splice(e.length-1,1),t):{}}function hr(...e){return"("+(Ti(e).capture?"":"?:")+e.map(T=>BE(T)).join("|")+")"}function DR(e){return new RegExp(e.toString()+"|").exec("").length-1}function ri(e,t){const E=e&&e.exec(t);return E&&E.index===0}const si=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function gr(e,{joinWith:t}){let E=0;return e.map(T=>{E+=1;const r=E;let s=BE(T),n="";for(;s.length>0;){const R=si.exec(s);if(!R){n+=s;break}n+=s.substring(0,R.index),s=s.substring(R.index+R[0].length),R[0][0]==="\\"&&R[1]?n+="\\"+String(Number(R[1])+r):(n+=R[0],R[0]==="("&&E++)}return n}).map(T=>`(${T})`).join(t)}const ni=/\b\B/,dR="[a-zA-Z]\\w*",Gr="[a-zA-Z_]\\w*",MR="\\b\\d+(\\.\\d+)?",UR="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",hR="\\b(0b[01]+)",Ri="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",oi=(e={})=>{const t=/^#![ ]*\//;return e.binary&&(e.begin=Wt(t,/.*\b/,e.binary,/\b.*/)),Lt({scope:"meta",begin:t,end:/$/,relevance:0,"on:begin":(E,T)=>{E.index!==0&&T.ignoreMatch()}},e)},FE={begin:"\\\\[\\s\\S]",relevance:0},Ai={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[FE]},ii={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[FE]},Si={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},DT=function(e,t,E={}){const T=Lt({scope:"comment",begin:e,end:t,contains:[]},E);T.contains.push({scope:"doctag",begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});const r=hr("I","a","is","so","us","to","at","if","in","it","on",/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/);return T.contains.push({begin:Wt(/[ ]+/,"(",r,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),T},Oi=DT("//","$"),ai=DT("/\\*","\\*/"),Ii=DT("#","$"),Ni={scope:"number",begin:MR,relevance:0},li={scope:"number",begin:UR,relevance:0},_i={scope:"number",begin:hR,relevance:0},Ci={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[FE,{begin:/\[/,end:/\]/,relevance:0,contains:[FE]}]},ci={scope:"title",begin:dR,relevance:0},Li={scope:"title",begin:Gr,relevance:0},ui={begin:"\\.\\s*"+Gr,relevance:0},pi=function(e){return Object.assign(e,{"on:begin":(t,E)=>{E.data._beginMatch=t[1]},"on:end":(t,E)=>{E.data._beginMatch!==t[1]&&E.ignoreMatch()}})};var qE=Object.freeze({__proto__:null,APOS_STRING_MODE:Ai,BACKSLASH_ESCAPE:FE,BINARY_NUMBER_MODE:_i,BINARY_NUMBER_RE:hR,COMMENT:DT,C_BLOCK_COMMENT_MODE:ai,C_LINE_COMMENT_MODE:Oi,C_NUMBER_MODE:li,C_NUMBER_RE:UR,END_SAME_AS_BEGIN:pi,HASH_COMMENT_MODE:Ii,IDENT_RE:dR,MATCH_NOTHING_RE:ni,METHOD_GUARD:ui,NUMBER_MODE:Ni,NUMBER_RE:MR,PHRASAL_WORDS_MODE:Si,QUOTE_STRING_MODE:ii,REGEXP_MODE:Ci,RE_STARTERS_RE:Ri,SHEBANG:oi,TITLE_MODE:ci,UNDERSCORE_IDENT_RE:Gr,UNDERSCORE_TITLE_MODE:Li});function fi(e,t){e.input[e.index-1]==="."&&t.ignoreMatch()}function Pi(e,t){e.className!==void 0&&(e.scope=e.className,delete e.className)}function Di(e,t){t&&e.beginKeywords&&(e.begin="\\b("+e.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",e.__beforeBegin=fi,e.keywords=e.keywords||e.beginKeywords,delete e.beginKeywords,e.relevance===void 0&&(e.relevance=0))}function di(e,t){Array.isArray(e.illegal)&&(e.illegal=hr(...e.illegal))}function Mi(e,t){if(e.match){if(e.begin||e.end)throw new Error("begin & end are not supported with match");e.begin=e.match,delete e.match}}function Ui(e,t){e.relevance===void 0&&(e.relevance=1)}const hi=(e,t)=>{if(!e.beforeMatch)return;if(e.starts)throw new Error("beforeMatch cannot be used with starts");const E=Object.assign({},e);Object.keys(e).forEach(T=>{delete e[T]}),e.keywords=E.keywords,e.begin=Wt(E.beforeMatch,PR(E.begin)),e.starts={relevance:0,contains:[Object.assign(E,{endsParent:!0})]},e.relevance=0,delete E.beforeMatch},gi=["of","and","for","in","not","or","if","then","parent","list","value"],Gi="keyword";function gR(e,t,E=Gi){const T=Object.create(null);return typeof e=="string"?r(E,e.split(" ")):Array.isArray(e)?r(E,e):Object.keys(e).forEach(function(s){Object.assign(T,gR(e[s],t,s))}),T;function r(s,n){t&&(n=n.map(R=>R.toLowerCase())),n.forEach(function(R){const o=R.split("|");T[o[0]]=[s,mi(o[0],o[1])]})}}function mi(e,t){return t?Number(t):Hi(e)?0:1}function Hi(e){return gi.includes(e.toLowerCase())}const us={},vt=e=>{console.error(e)},ps=(e,...t)=>{console.log(`WARN: ${e}`,...t)},Jt=(e,t)=>{us[`${e}/${t}`]||(console.log(`Deprecated as of ${e}. ${t}`),us[`${e}/${t}`]=!0)},ST=new Error;function GR(e,t,{key:E}){let T=0;const r=e[E],s={},n={};for(let R=1;R<=t.length;R++)n[R+T]=r[R],s[R+T]=!0,T+=DR(t[R-1]);e[E]=n,e[E]._emit=s,e[E]._multi=!0}function yi(e){if(Array.isArray(e.begin)){if(e.skip||e.excludeBegin||e.returnBegin)throw vt("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),ST;if(typeof e.beginScope!="object"||e.beginScope===null)throw vt("beginScope must be object"),ST;GR(e,e.begin,{key:"beginScope"}),e.begin=gr(e.begin,{joinWith:""})}}function bi(e){if(Array.isArray(e.end)){if(e.skip||e.excludeEnd||e.returnEnd)throw vt("skip, excludeEnd, returnEnd not compatible with endScope: {}"),ST;if(typeof e.endScope!="object"||e.endScope===null)throw vt("endScope must be object"),ST;GR(e,e.end,{key:"endScope"}),e.end=gr(e.end,{joinWith:""})}}function Bi(e){e.scope&&typeof e.scope=="object"&&e.scope!==null&&(e.beginScope=e.scope,delete e.scope)}function Fi(e){Bi(e),typeof e.beginScope=="string"&&(e.beginScope={_wrap:e.beginScope}),typeof e.endScope=="string"&&(e.endScope={_wrap:e.endScope}),yi(e),bi(e)}function vi(e){function t(n,R){return new RegExp(BE(n),"m"+(e.case_insensitive?"i":"")+(e.unicodeRegex?"u":"")+(R?"g":""))}class E{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(R,o){o.position=this.position++,this.matchIndexes[this.matchAt]=o,this.regexes.push([o,R]),this.matchAt+=DR(R)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const R=this.regexes.map(o=>o[1]);this.matcherRe=t(gr(R,{joinWith:"|"}),!0),this.lastIndex=0}exec(R){this.matcherRe.lastIndex=this.lastIndex;const o=this.matcherRe.exec(R);if(!o)return null;const A=o.findIndex((a,I)=>I>0&&a!==void 0),i=this.matchIndexes[A];return o.splice(0,A),Object.assign(o,i)}}class T{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(R){if(this.multiRegexes[R])return this.multiRegexes[R];const o=new E;return this.rules.slice(R).forEach(([A,i])=>o.addRule(A,i)),o.compile(),this.multiRegexes[R]=o,o}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(R,o){this.rules.push([R,o]),o.type==="begin"&&this.count++}exec(R){const o=this.getMatcher(this.regexIndex);o.lastIndex=this.lastIndex;let A=o.exec(R);if(this.resumingScanAtSamePosition()&&!(A&&A.index===this.lastIndex)){const i=this.getMatcher(0);i.lastIndex=this.lastIndex+1,A=i.exec(R)}return A&&(this.regexIndex+=A.position+1,this.regexIndex===this.count&&this.considerAll()),A}}function r(n){const R=new T;return n.contains.forEach(o=>R.addRule(o.begin,{rule:o,type:"begin"})),n.terminatorEnd&&R.addRule(n.terminatorEnd,{type:"end"}),n.illegal&&R.addRule(n.illegal,{type:"illegal"}),R}function s(n,R){const o=n;if(n.isCompiled)return o;[Pi,Mi,Fi,hi].forEach(i=>i(n,R)),e.compilerExtensions.forEach(i=>i(n,R)),n.__beforeBegin=null,[Di,di,Ui].forEach(i=>i(n,R)),n.isCompiled=!0;let A=null;return typeof n.keywords=="object"&&n.keywords.$pattern&&(n.keywords=Object.assign({},n.keywords),A=n.keywords.$pattern,delete n.keywords.$pattern),A=A||/\w+/,n.keywords&&(n.keywords=gR(n.keywords,e.case_insensitive)),o.keywordPatternRe=t(A,!0),R&&(n.begin||(n.begin=/\B|\b/),o.beginRe=t(o.begin),!n.end&&!n.endsWithParent&&(n.end=/\B|\b/),n.end&&(o.endRe=t(o.end)),o.terminatorEnd=BE(o.end)||"",n.endsWithParent&&R.terminatorEnd&&(o.terminatorEnd+=(n.end?"|":"")+R.terminatorEnd)),n.illegal&&(o.illegalRe=t(n.illegal)),n.contains||(n.contains=[]),n.contains=[].concat(...n.contains.map(function(i){return Yi(i==="self"?n:i)})),n.contains.forEach(function(i){s(i,o)}),n.starts&&s(n.starts,R),o.matcher=r(o),o}if(e.compilerExtensions||(e.compilerExtensions=[]),e.contains&&e.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return e.classNameAliases=Lt(e.classNameAliases||{}),s(e)}function mR(e){return e?e.endsWithParent||mR(e.starts):!1}function Yi(e){return e.variants&&!e.cachedVariants&&(e.cachedVariants=e.variants.map(function(t){return Lt(e,{variants:null},t)})),e.cachedVariants?e.cachedVariants:mR(e)?Lt(e,{starts:e.starts?Lt(e.starts):null}):Object.isFrozen(e)?Lt(e):e}var xi="11.9.0";class Vi extends Error{constructor(t,E){super(t),this.name="HTMLInjectionError",this.html=E}}const $T=fR,fs=Lt,Ps=Symbol("nomatch"),wi=7,HR=function(e){const t=Object.create(null),E=Object.create(null),T=[];let r=!0;const s="Could not find the language '{}', did you forget to load/include a language module?",n={disableAutodetect:!0,name:"Plain text",contains:[]};let R={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:ei};function o(u){return R.noHighlightRe.test(u)}function A(u){let G=u.className+" ";G+=u.parentNode?u.parentNode.className:"";const te=R.languageDetectRe.exec(G);if(te){const ae=j(te[1]);return ae||(ps(s.replace("{}",te[1])),ps("Falling back to no-highlight mode for this block.",u)),ae?te[1]:"no-highlight"}return G.split(/\s+/).find(ae=>o(ae)||j(ae))}function i(u,G,te){let ae="",Ie="";typeof G=="object"?(ae=u,te=G.ignoreIllegals,Ie=G.language):(Jt("10.7.0","highlight(lang, code, ...args) has been deprecated."),Jt("10.7.0",`Please use highlight(code, options) instead.
2
- https://github.com/highlightjs/highlight.js/issues/2277`),Ie=u,ae=G),te===void 0&&(te=!0);const Pe={code:ae,language:Ie};le("before:highlight",Pe);const ke=Pe.result?Pe.result:a(Pe.language,Pe.code,te);return ke.code=Pe.code,le("after:highlight",ke),ke}function a(u,G,te,ae){const Ie=Object.create(null);function Pe(M,g){return M.keywords[g]}function ke(){if(!_.keywords){f.addText(y);return}let M=0;_.keywordPatternRe.lastIndex=0;let g=_.keywordPatternRe.exec(y),X="";for(;g;){X+=y.substring(M,g.index);const Ee=P.case_insensitive?g[0].toLowerCase():g[0],fe=Pe(_,Ee);if(fe){const[Ke,Gt]=fe;if(f.addText(X),X="",Ie[Ee]=(Ie[Ee]||0)+1,Ie[Ee]<=wi&&(V+=Gt),Ke.startsWith("_"))X+=g[0];else{const jE=P.classNameAliases[Ke]||Ke;de(g[0],jE)}}else X+=g[0];M=_.keywordPatternRe.lastIndex,g=_.keywordPatternRe.exec(y)}X+=y.substring(M),f.addText(X)}function Kt(){if(y==="")return;let M=null;if(typeof _.subLanguage=="string"){if(!t[_.subLanguage]){f.addText(y);return}M=a(_.subLanguage,y,!0,H[_.subLanguage]),H[_.subLanguage]=M._top}else M=l(y,_.subLanguage.length?_.subLanguage:null);_.relevance>0&&(V+=M.relevance),f.__addSublanguage(M._emitter,M.language)}function Fe(){_.subLanguage!=null?Kt():ke(),y=""}function de(M,g){M!==""&&(f.startScope(g),f.addText(M),f.endScope())}function gt(M,g){let X=1;const Ee=g.length-1;for(;X<=Ee;){if(!M._emit[X]){X++;continue}const fe=P.classNameAliases[M[X]]||M[X],Ke=g[X];fe?de(Ke,fe):(y=Ke,ke(),y=""),X++}}function cE(M,g){return M.scope&&typeof M.scope=="string"&&f.openNode(P.classNameAliases[M.scope]||M.scope),M.beginScope&&(M.beginScope._wrap?(de(y,P.classNameAliases[M.beginScope._wrap]||M.beginScope._wrap),y=""):M.beginScope._multi&&(gt(M.beginScope,g),y="")),_=Object.create(M,{parent:{value:_}}),_}function St(M,g,X){let Ee=ri(M.endRe,X);if(Ee){if(M["on:end"]){const fe=new Cs(M);M["on:end"](g,fe),fe.isMatchIgnored&&(Ee=!1)}if(Ee){for(;M.endsParent&&M.parent;)M=M.parent;return M}}if(M.endsWithParent)return St(M.parent,g,X)}function LE(M){return _.matcher.regexIndex===0?(y+=M[0],1):(se=!0,0)}function uE(M){const g=M[0],X=M.rule,Ee=new Cs(X),fe=[X.__beforeBegin,X["on:begin"]];for(const Ke of fe)if(Ke&&(Ke(M,Ee),Ee.isMatchIgnored))return LE(g);return X.skip?y+=g:(X.excludeBegin&&(y+=g),Fe(),!X.returnBegin&&!X.excludeBegin&&(y=g)),cE(X,M),X.returnBegin?0:g.length}function S(M){const g=M[0],X=G.substring(M.index),Ee=St(_,M,X);if(!Ee)return Ps;const fe=_;_.endScope&&_.endScope._wrap?(Fe(),de(g,_.endScope._wrap)):_.endScope&&_.endScope._multi?(Fe(),gt(_.endScope,M)):fe.skip?y+=g:(fe.returnEnd||fe.excludeEnd||(y+=g),Fe(),fe.excludeEnd&&(y=g));do _.scope&&f.closeNode(),!_.skip&&!_.subLanguage&&(V+=_.relevance),_=_.parent;while(_!==Ee.parent);return Ee.starts&&cE(Ee.starts,M),fe.returnEnd?0:g.length}function N(){const M=[];for(let g=_;g!==P;g=g.parent)g.scope&&M.unshift(g.scope);M.forEach(g=>f.openNode(g))}let c={};function D(M,g){const X=g&&g[0];if(y+=M,X==null)return Fe(),0;if(c.type==="begin"&&g.type==="end"&&c.index===g.index&&X===""){if(y+=G.slice(g.index,g.index+1),!r){const Ee=new Error(`0 width match regex (${u})`);throw Ee.languageName=u,Ee.badRule=c.rule,Ee}return 1}if(c=g,g.type==="begin")return uE(g);if(g.type==="illegal"&&!te){const Ee=new Error('Illegal lexeme "'+X+'" for mode "'+(_.scope||"<unnamed>")+'"');throw Ee.mode=_,Ee}else if(g.type==="end"){const Ee=S(g);if(Ee!==Ps)return Ee}if(g.type==="illegal"&&X==="")return 1;if(Q>1e5&&Q>g.index*3)throw new Error("potential infinite loop, way more iterations than matches");return y+=X,X.length}const P=j(u);if(!P)throw vt(s.replace("{}",u)),new Error('Unknown language: "'+u+'"');const m=vi(P);let B="",_=ae||m;const H={},f=new R.__emitter(R);N();let y="",V=0,W=0,Q=0,se=!1;try{if(P.__emitTokens)P.__emitTokens(G,f);else{for(_.matcher.considerAll();;){Q++,se?se=!1:_.matcher.considerAll(),_.matcher.lastIndex=W;const M=_.matcher.exec(G);if(!M)break;const g=G.substring(W,M.index),X=D(g,M);W=M.index+X}D(G.substring(W))}return f.finalize(),B=f.toHTML(),{language:u,value:B,relevance:V,illegal:!1,_emitter:f,_top:_}}catch(M){if(M.message&&M.message.includes("Illegal"))return{language:u,value:$T(G),illegal:!0,relevance:0,_illegalBy:{message:M.message,index:W,context:G.slice(W-100,W+100),mode:M.mode,resultSoFar:B},_emitter:f};if(r)return{language:u,value:$T(G),illegal:!1,relevance:0,errorRaised:M,_emitter:f,_top:_};throw M}}function I(u){const G={value:$T(u),illegal:!1,relevance:0,_top:n,_emitter:new R.__emitter(R)};return G._emitter.addText(u),G}function l(u,G){G=G||R.languages||Object.keys(t);const te=I(u),ae=G.filter(j).filter(p).map(Fe=>a(Fe,u,!1));ae.unshift(te);const Ie=ae.sort((Fe,de)=>{if(Fe.relevance!==de.relevance)return de.relevance-Fe.relevance;if(Fe.language&&de.language){if(j(Fe.language).supersetOf===de.language)return 1;if(j(de.language).supersetOf===Fe.language)return-1}return 0}),[Pe,ke]=Ie,Kt=Pe;return Kt.secondBest=ke,Kt}function h(u,G,te){const ae=G&&E[G]||te;u.classList.add("hljs"),u.classList.add(`language-${ae}`)}function b(u){let G=null;const te=A(u);if(o(te))return;if(le("before:highlightElement",{el:u,language:te}),u.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",u);return}if(u.children.length>0&&(R.ignoreUnescapedHTML||(console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."),console.warn("https://github.com/highlightjs/highlight.js/wiki/security"),console.warn("The element with unescaped HTML:"),console.warn(u)),R.throwUnescapedHTML))throw new Vi("One of your code blocks includes unescaped HTML.",u.innerHTML);G=u;const ae=G.textContent,Ie=te?i(ae,{language:te,ignoreIllegals:!0}):l(ae);u.innerHTML=Ie.value,u.dataset.highlighted="yes",h(u,te,Ie.language),u.result={language:Ie.language,re:Ie.relevance,relevance:Ie.relevance},Ie.secondBest&&(u.secondBest={language:Ie.secondBest.language,relevance:Ie.secondBest.relevance}),le("after:highlightElement",{el:u,result:Ie,text:ae})}function w(u){R=fs(R,u)}const K=()=>{x(),Jt("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function k(){x(),Jt("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let F=!1;function x(){if(document.readyState==="loading"){F=!0;return}document.querySelectorAll(R.cssSelector).forEach(b)}function re(){F&&x()}typeof window<"u"&&window.addEventListener&&window.addEventListener("DOMContentLoaded",re,!1);function pe(u,G){let te=null;try{te=G(e)}catch(ae){if(vt("Language definition for '{}' could not be registered.".replace("{}",u)),r)vt(ae);else throw ae;te=n}te.name||(te.name=u),t[u]=te,te.rawDefinition=G.bind(null,e),te.aliases&&C(te.aliases,{languageName:u})}function ie(u){delete t[u];for(const G of Object.keys(E))E[G]===u&&delete E[G]}function ee(){return Object.keys(t)}function j(u){return u=(u||"").toLowerCase(),t[u]||t[E[u]]}function C(u,{languageName:G}){typeof u=="string"&&(u=[u]),u.forEach(te=>{E[te.toLowerCase()]=G})}function p(u){const G=j(u);return G&&!G.disableAutodetect}function L(u){u["before:highlightBlock"]&&!u["before:highlightElement"]&&(u["before:highlightElement"]=G=>{u["before:highlightBlock"](Object.assign({block:G.el},G))}),u["after:highlightBlock"]&&!u["after:highlightElement"]&&(u["after:highlightElement"]=G=>{u["after:highlightBlock"](Object.assign({block:G.el},G))})}function v(u){L(u),T.push(u)}function J(u){const G=T.indexOf(u);G!==-1&&T.splice(G,1)}function le(u,G){const te=u;T.forEach(function(ae){ae[te]&&ae[te](G)})}function Z(u){return Jt("10.7.0","highlightBlock will be removed entirely in v12.0"),Jt("10.7.0","Please use highlightElement now."),b(u)}Object.assign(e,{highlight:i,highlightAuto:l,highlightAll:x,highlightElement:b,highlightBlock:Z,configure:w,initHighlighting:K,initHighlightingOnLoad:k,registerLanguage:pe,unregisterLanguage:ie,listLanguages:ee,getLanguage:j,registerAliases:C,autoDetection:p,inherit:fs,addPlugin:v,removePlugin:J}),e.debugMode=function(){r=!1},e.safeMode=function(){r=!0},e.versionString=xi,e.regex={concat:Wt,lookahead:PR,either:hr,optional:Ei,anyNumberOfTimes:ti};for(const u in qE)typeof qE[u]=="object"&&pR(qE[u]);return Object.assign(e,qE),e},TE=HR({});TE.newInstance=()=>HR({});var Wi=TE;TE.HighlightJS=TE;TE.default=TE;const UE=PT(Wi);function Xi(e){const t=e.regex,E=e.COMMENT("--","$"),T={className:"string",variants:[{begin:/'/,end:/'/,contains:[{begin:/''/}]}]},r={begin:/"/,end:/"/,contains:[{begin:/""/}]},s=["true","false","unknown"],n=["double precision","large object","with timezone","without timezone"],R=["bigint","binary","blob","boolean","char","character","clob","date","dec","decfloat","decimal","float","int","integer","interval","nchar","nclob","national","numeric","real","row","smallint","time","timestamp","varchar","varying","varbinary"],o=["add","asc","collation","desc","final","first","last","view"],A=["abs","acos","all","allocate","alter","and","any","are","array","array_agg","array_max_cardinality","as","asensitive","asin","asymmetric","at","atan","atomic","authorization","avg","begin","begin_frame","begin_partition","between","bigint","binary","blob","boolean","both","by","call","called","cardinality","cascaded","case","cast","ceil","ceiling","char","char_length","character","character_length","check","classifier","clob","close","coalesce","collate","collect","column","commit","condition","connect","constraint","contains","convert","copy","corr","corresponding","cos","cosh","count","covar_pop","covar_samp","create","cross","cube","cume_dist","current","current_catalog","current_date","current_default_transform_group","current_path","current_role","current_row","current_schema","current_time","current_timestamp","current_path","current_role","current_transform_group_for_type","current_user","cursor","cycle","date","day","deallocate","dec","decimal","decfloat","declare","default","define","delete","dense_rank","deref","describe","deterministic","disconnect","distinct","double","drop","dynamic","each","element","else","empty","end","end_frame","end_partition","end-exec","equals","escape","every","except","exec","execute","exists","exp","external","extract","false","fetch","filter","first_value","float","floor","for","foreign","frame_row","free","from","full","function","fusion","get","global","grant","group","grouping","groups","having","hold","hour","identity","in","indicator","initial","inner","inout","insensitive","insert","int","integer","intersect","intersection","interval","into","is","join","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","language","large","last_value","lateral","lead","leading","left","like","like_regex","listagg","ln","local","localtime","localtimestamp","log","log10","lower","match","match_number","match_recognize","matches","max","member","merge","method","min","minute","mod","modifies","module","month","multiset","national","natural","nchar","nclob","new","no","none","normalize","not","nth_value","ntile","null","nullif","numeric","octet_length","occurrences_regex","of","offset","old","omit","on","one","only","open","or","order","out","outer","over","overlaps","overlay","parameter","partition","pattern","per","percent","percent_rank","percentile_cont","percentile_disc","period","portion","position","position_regex","power","precedes","precision","prepare","primary","procedure","ptf","range","rank","reads","real","recursive","ref","references","referencing","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","release","result","return","returns","revoke","right","rollback","rollup","row","row_number","rows","running","savepoint","scope","scroll","search","second","seek","select","sensitive","session_user","set","show","similar","sin","sinh","skip","smallint","some","specific","specifictype","sql","sqlexception","sqlstate","sqlwarning","sqrt","start","static","stddev_pop","stddev_samp","submultiset","subset","substring","substring_regex","succeeds","sum","symmetric","system","system_time","system_user","table","tablesample","tan","tanh","then","time","timestamp","timezone_hour","timezone_minute","to","trailing","translate","translate_regex","translation","treat","trigger","trim","trim_array","true","truncate","uescape","union","unique","unknown","unnest","update","upper","user","using","value","values","value_of","var_pop","var_samp","varbinary","varchar","varying","versioning","when","whenever","where","width_bucket","window","with","within","without","year"],i=["abs","acos","array_agg","asin","atan","avg","cast","ceil","ceiling","coalesce","corr","cos","cosh","count","covar_pop","covar_samp","cume_dist","dense_rank","deref","element","exp","extract","first_value","floor","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","last_value","lead","listagg","ln","log","log10","lower","max","min","mod","nth_value","ntile","nullif","percent_rank","percentile_cont","percentile_disc","position","position_regex","power","rank","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","row_number","sin","sinh","sqrt","stddev_pop","stddev_samp","substring","substring_regex","sum","tan","tanh","translate","translate_regex","treat","trim","trim_array","unnest","upper","value_of","var_pop","var_samp","width_bucket"],a=["current_catalog","current_date","current_default_transform_group","current_path","current_role","current_schema","current_transform_group_for_type","current_user","session_user","system_time","system_user","current_time","localtime","current_timestamp","localtimestamp"],I=["create table","insert into","primary key","foreign key","not null","alter table","add constraint","grouping sets","on overflow","character set","respect nulls","ignore nulls","nulls first","nulls last","depth first","breadth first"],l=i,h=[...A,...o].filter(F=>!i.includes(F)),b={className:"variable",begin:/@[a-z0-9][a-z0-9_]*/},w={className:"operator",begin:/[-+*/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?/,relevance:0},K={begin:t.concat(/\b/,t.either(...l),/\s*\(/),relevance:0,keywords:{built_in:l}};function k(F,{exceptions:x,when:re}={}){const pe=re;return x=x||[],F.map(ie=>ie.match(/\|\d+$/)||x.includes(ie)?ie:pe(ie)?`${ie}|0`:ie)}return{name:"SQL",case_insensitive:!0,illegal:/[{}]|<\//,keywords:{$pattern:/\b[\w\.]+/,keyword:k(h,{when:F=>F.length<3}),literal:s,type:R,built_in:a},contains:[{begin:t.either(...I),relevance:0,keywords:{$pattern:/[\w\.]+/,keyword:h.concat(I),literal:s,type:R}},{className:"type",begin:t.either(...n)},K,b,T,r,e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE,E,w]}}function $i(e){const t={className:"attr",begin:/"(\\.|[^\\"\r\n])*"(?=\s*:)/,relevance:1.01},E={match:/[{}[\],:]/,className:"punctuation",relevance:0},T=["true","false","null"],r={scope:"literal",beginKeywords:T.join(" ")};return{name:"JSON",keywords:{literal:T},contains:[t,E,e.QUOTE_STRING_MODE,r,e.C_NUMBER_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE],illegal:"\\S"}}function mr(e,t){const E=Object.create(null),T=e.split(",");for(let r=0;r<T.length;r++)E[T[r]]=!0;return t?r=>!!E[r.toLowerCase()]:r=>!!E[r]}const ce={},zt=[],nt=()=>{},Ki=()=>!1,dT=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Hr=e=>e.startsWith("onUpdate:"),He=Object.assign,yr=(e,t)=>{const E=e.indexOf(t);E>-1&&e.splice(E,1)},Ji=Object.prototype.hasOwnProperty,Se=(e,t)=>Ji.call(e,t),z=Array.isArray,eE=e=>MT(e)==="[object Map]",yR=e=>MT(e)==="[object Set]",Te=e=>typeof e=="function",Me=e=>typeof e=="string",oE=e=>typeof e=="symbol",ue=e=>e!==null&&typeof e=="object",bR=e=>(ue(e)||Te(e))&&Te(e.then)&&Te(e.catch),BR=Object.prototype.toString,MT=e=>BR.call(e),ki=e=>MT(e).slice(8,-1),FR=e=>MT(e)==="[object Object]",br=e=>Me(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,rT=mr(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),UT=e=>{const t=Object.create(null);return E=>t[E]||(t[E]=e(E))},ji=/-(\w)/g,ot=UT(e=>e.replace(ji,(t,E)=>E?E.toUpperCase():"")),qi=/\B([A-Z])/g,AE=UT(e=>e.replace(qi,"-$1").toLowerCase()),hT=UT(e=>e.charAt(0).toUpperCase()+e.slice(1)),KT=UT(e=>e?`on${hT(e)}`:""),Vt=(e,t)=>!Object.is(e,t),JT=(e,t)=>{for(let E=0;E<e.length;E++)e[E](t)},OT=(e,t,E)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:E})},Qi=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let Ds;const rr=()=>Ds||(Ds=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function gT(e){if(z(e)){const t={};for(let E=0;E<e.length;E++){const T=e[E],r=Me(T)?tS(T):gT(T);if(r)for(const s in r)t[s]=r[s]}return t}else if(Me(e)||ue(e))return e}const Zi=/;(?![^(]*\))/g,zi=/:([^]+)/,eS=/\/\*[^]*?\*\//g;function tS(e){const t={};return e.replace(eS,"").split(Zi).forEach(E=>{if(E){const T=E.split(zi);T.length>1&&(t[T[0].trim()]=T[1].trim())}}),t}function $e(e){let t="";if(Me(e))t=e;else if(z(e))for(let E=0;E<e.length;E++){const T=$e(e[E]);T&&(t+=T+" ")}else if(ue(e))for(const E in e)e[E]&&(t+=E+" ");return t.trim()}const ES="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",TS=mr(ES);function vR(e){return!!e||e===""}const Ae=e=>Me(e)?e:e==null?"":z(e)||ue(e)&&(e.toString===BR||!Te(e.toString))?JSON.stringify(e,YR,2):String(e),YR=(e,t)=>t&&t.__v_isRef?YR(e,t.value):eE(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((E,[T,r],s)=>(E[kT(T,s)+" =>"]=r,E),{})}:yR(t)?{[`Set(${t.size})`]:[...t.values()].map(E=>kT(E))}:oE(t)?kT(t):ue(t)&&!z(t)&&!FR(t)?String(t):t,kT=(e,t="")=>{var E;return oE(e)?`Symbol(${(E=e.description)!=null?E:t})`:e};let Xe;class xR{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=Xe,!t&&Xe&&(this.index=(Xe.scopes||(Xe.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const E=Xe;try{return Xe=this,t()}finally{Xe=E}}}on(){Xe=this}off(){Xe=this.parent}stop(t){if(this._active){let E,T;for(E=0,T=this.effects.length;E<T;E++)this.effects[E].stop();for(E=0,T=this.cleanups.length;E<T;E++)this.cleanups[E]();if(this.scopes)for(E=0,T=this.scopes.length;E<T;E++)this.scopes[E].stop(!0);if(!this.detached&&this.parent&&!t){const r=this.parent.scopes.pop();r&&r!==this&&(this.parent.scopes[this.index]=r,r.index=this.index)}this.parent=void 0,this._active=!1}}}function VR(e){return new xR(e)}function rS(e,t=Xe){t&&t.active&&t.effects.push(e)}function wR(){return Xe}function sS(e){Xe&&Xe.cleanups.push(e)}const Br=e=>{const t=new Set(e);return t.w=0,t.n=0,t},WR=e=>(e.w&dt)>0,XR=e=>(e.n&dt)>0,nS=({deps:e})=>{if(e.length)for(let t=0;t<e.length;t++)e[t].w|=dt},RS=e=>{const{deps:t}=e;if(t.length){let E=0;for(let T=0;T<t.length;T++){const r=t[T];WR(r)&&!XR(r)?r.delete(e):t[E++]=r,r.w&=~dt,r.n&=~dt}t.length=E}},aT=new WeakMap;let dE=0,dt=1;const sr=30;let Qe;const Yt=Symbol(""),nr=Symbol("");class Fr{constructor(t,E=null,T){this.fn=t,this.scheduler=E,this.active=!0,this.deps=[],this.parent=void 0,rS(this,T)}run(){if(!this.active)return this.fn();let t=Qe,E=pt;for(;t;){if(t===this)return;t=t.parent}try{return this.parent=Qe,Qe=this,pt=!0,dt=1<<++dE,dE<=sr?nS(this):ds(this),this.fn()}finally{dE<=sr&&RS(this),dt=1<<--dE,Qe=this.parent,pt=E,this.parent=void 0,this.deferStop&&this.stop()}}stop(){Qe===this?this.deferStop=!0:this.active&&(ds(this),this.onStop&&this.onStop(),this.active=!1)}}function ds(e){const{deps:t}=e;if(t.length){for(let E=0;E<t.length;E++)t[E].delete(e);t.length=0}}let pt=!0;const $R=[];function iE(){$R.push(pt),pt=!1}function SE(){const e=$R.pop();pt=e===void 0?!0:e}function we(e,t,E){if(pt&&Qe){let T=aT.get(e);T||aT.set(e,T=new Map);let r=T.get(E);r||T.set(E,r=Br()),KR(r)}}function KR(e,t){let E=!1;dE<=sr?XR(e)||(e.n|=dt,E=!WR(e)):E=!e.has(Qe),E&&(e.add(Qe),Qe.deps.push(e))}function at(e,t,E,T,r,s){const n=aT.get(e);if(!n)return;let R=[];if(t==="clear")R=[...n.values()];else if(E==="length"&&z(e)){const o=Number(T);n.forEach((A,i)=>{(i==="length"||!oE(i)&&i>=o)&&R.push(A)})}else switch(E!==void 0&&R.push(n.get(E)),t){case"add":z(e)?br(E)&&R.push(n.get("length")):(R.push(n.get(Yt)),eE(e)&&R.push(n.get(nr)));break;case"delete":z(e)||(R.push(n.get(Yt)),eE(e)&&R.push(n.get(nr)));break;case"set":eE(e)&&R.push(n.get(Yt));break}if(R.length===1)R[0]&&Rr(R[0]);else{const o=[];for(const A of R)A&&o.push(...A);Rr(Br(o))}}function Rr(e,t){const E=z(e)?e:[...e];for(const T of E)T.computed&&Ms(T);for(const T of E)T.computed||Ms(T)}function Ms(e,t){(e!==Qe||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}function oS(e,t){var E;return(E=aT.get(e))==null?void 0:E.get(t)}const AS=mr("__proto__,__v_isRef,__isVue"),JR=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(oE)),Us=iS();function iS(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...E){const T=Oe(this);for(let s=0,n=this.length;s<n;s++)we(T,"get",s+"");const r=T[t](...E);return r===-1||r===!1?T[t](...E.map(Oe)):r}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...E){iE();const T=Oe(this)[t].apply(this,E);return SE(),T}}),e}function SS(e){const t=Oe(this);return we(t,"has",e),t.hasOwnProperty(e)}class kR{constructor(t=!1,E=!1){this._isReadonly=t,this._shallow=E}get(t,E,T){const r=this._isReadonly,s=this._shallow;if(E==="__v_isReactive")return!r;if(E==="__v_isReadonly")return r;if(E==="__v_isShallow")return s;if(E==="__v_raw")return T===(r?s?PS:ZR:s?QR:qR).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(T)?t:void 0;const n=z(t);if(!r){if(n&&Se(Us,E))return Reflect.get(Us,E,T);if(E==="hasOwnProperty")return SS}const R=Reflect.get(t,E,T);return(oE(E)?JR.has(E):AS(E))||(r||we(t,"get",E),s)?R:Ue(R)?n&&br(E)?R:R.value:ue(R)?r?zR(R):At(R):R}}class jR extends kR{constructor(t=!1){super(!1,t)}set(t,E,T,r){let s=t[E];if(!this._shallow){const o=rE(s);if(!IT(T)&&!rE(T)&&(s=Oe(s),T=Oe(T)),!z(t)&&Ue(s)&&!Ue(T))return o?!1:(s.value=T,!0)}const n=z(t)&&br(E)?Number(E)<t.length:Se(t,E),R=Reflect.set(t,E,T,r);return t===Oe(r)&&(n?Vt(T,s)&&at(t,"set",E,T):at(t,"add",E,T)),R}deleteProperty(t,E){const T=Se(t,E);t[E];const r=Reflect.deleteProperty(t,E);return r&&T&&at(t,"delete",E,void 0),r}has(t,E){const T=Reflect.has(t,E);return(!oE(E)||!JR.has(E))&&we(t,"has",E),T}ownKeys(t){return we(t,"iterate",z(t)?"length":Yt),Reflect.ownKeys(t)}}class OS extends kR{constructor(t=!1){super(!0,t)}set(t,E){return!0}deleteProperty(t,E){return!0}}const aS=new jR,IS=new OS,NS=new jR(!0),vr=e=>e,GT=e=>Reflect.getPrototypeOf(e);function QE(e,t,E=!1,T=!1){e=e.__v_raw;const r=Oe(e),s=Oe(t);E||(Vt(t,s)&&we(r,"get",t),we(r,"get",s));const{has:n}=GT(r),R=T?vr:E?Vr:vE;if(n.call(r,t))return R(e.get(t));if(n.call(r,s))return R(e.get(s));e!==r&&e.get(t)}function ZE(e,t=!1){const E=this.__v_raw,T=Oe(E),r=Oe(e);return t||(Vt(e,r)&&we(T,"has",e),we(T,"has",r)),e===r?E.has(e):E.has(e)||E.has(r)}function zE(e,t=!1){return e=e.__v_raw,!t&&we(Oe(e),"iterate",Yt),Reflect.get(e,"size",e)}function hs(e){e=Oe(e);const t=Oe(this);return GT(t).has.call(t,e)||(t.add(e),at(t,"add",e,e)),this}function gs(e,t){t=Oe(t);const E=Oe(this),{has:T,get:r}=GT(E);let s=T.call(E,e);s||(e=Oe(e),s=T.call(E,e));const n=r.call(E,e);return E.set(e,t),s?Vt(t,n)&&at(E,"set",e,t):at(E,"add",e,t),this}function Gs(e){const t=Oe(this),{has:E,get:T}=GT(t);let r=E.call(t,e);r||(e=Oe(e),r=E.call(t,e)),T&&T.call(t,e);const s=t.delete(e);return r&&at(t,"delete",e,void 0),s}function ms(){const e=Oe(this),t=e.size!==0,E=e.clear();return t&&at(e,"clear",void 0,void 0),E}function eT(e,t){return function(T,r){const s=this,n=s.__v_raw,R=Oe(n),o=t?vr:e?Vr:vE;return!e&&we(R,"iterate",Yt),n.forEach((A,i)=>T.call(r,o(A),o(i),s))}}function tT(e,t,E){return function(...T){const r=this.__v_raw,s=Oe(r),n=eE(s),R=e==="entries"||e===Symbol.iterator&&n,o=e==="keys"&&n,A=r[e](...T),i=E?vr:t?Vr:vE;return!t&&we(s,"iterate",o?nr:Yt),{next(){const{value:a,done:I}=A.next();return I?{value:a,done:I}:{value:R?[i(a[0]),i(a[1])]:i(a),done:I}},[Symbol.iterator](){return this}}}}function lt(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function lS(){const e={get(s){return QE(this,s)},get size(){return zE(this)},has:ZE,add:hs,set:gs,delete:Gs,clear:ms,forEach:eT(!1,!1)},t={get(s){return QE(this,s,!1,!0)},get size(){return zE(this)},has:ZE,add:hs,set:gs,delete:Gs,clear:ms,forEach:eT(!1,!0)},E={get(s){return QE(this,s,!0)},get size(){return zE(this,!0)},has(s){return ZE.call(this,s,!0)},add:lt("add"),set:lt("set"),delete:lt("delete"),clear:lt("clear"),forEach:eT(!0,!1)},T={get(s){return QE(this,s,!0,!0)},get size(){return zE(this,!0)},has(s){return ZE.call(this,s,!0)},add:lt("add"),set:lt("set"),delete:lt("delete"),clear:lt("clear"),forEach:eT(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(s=>{e[s]=tT(s,!1,!1),E[s]=tT(s,!0,!1),t[s]=tT(s,!1,!0),T[s]=tT(s,!0,!0)}),[e,E,t,T]}const[_S,CS,cS,LS]=lS();function Yr(e,t){const E=t?e?LS:cS:e?CS:_S;return(T,r,s)=>r==="__v_isReactive"?!e:r==="__v_isReadonly"?e:r==="__v_raw"?T:Reflect.get(Se(E,r)&&r in T?E:T,r,s)}const uS={get:Yr(!1,!1)},pS={get:Yr(!1,!0)},fS={get:Yr(!0,!1)},qR=new WeakMap,QR=new WeakMap,ZR=new WeakMap,PS=new WeakMap;function DS(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function dS(e){return e.__v_skip||!Object.isExtensible(e)?0:DS(ki(e))}function At(e){return rE(e)?e:xr(e,!1,aS,uS,qR)}function MS(e){return xr(e,!1,NS,pS,QR)}function zR(e){return xr(e,!0,IS,fS,ZR)}function xr(e,t,E,T,r){if(!ue(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const s=r.get(e);if(s)return s;const n=dS(e);if(n===0)return e;const R=new Proxy(e,n===2?T:E);return r.set(e,R),R}function ft(e){return rE(e)?ft(e.__v_raw):!!(e&&e.__v_isReactive)}function rE(e){return!!(e&&e.__v_isReadonly)}function IT(e){return!!(e&&e.__v_isShallow)}function eo(e){return ft(e)||rE(e)}function Oe(e){const t=e&&e.__v_raw;return t?Oe(t):e}function mT(e){return OT(e,"__v_skip",!0),e}const vE=e=>ue(e)?At(e):e,Vr=e=>ue(e)?zR(e):e;function to(e){pt&&Qe&&(e=Oe(e),KR(e.dep||(e.dep=Br())))}function Eo(e,t){e=Oe(e);const E=e.dep;E&&Rr(E)}function Ue(e){return!!(e&&e.__v_isRef===!0)}function ut(e){return US(e,!1)}function US(e,t){return Ue(e)?e:new hS(e,t)}class hS{constructor(t,E){this.__v_isShallow=E,this.dep=void 0,this.__v_isRef=!0,this._rawValue=E?t:Oe(t),this._value=E?t:vE(t)}get value(){return to(this),this._value}set value(t){const E=this.__v_isShallow||IT(t)||rE(t);t=E?t:Oe(t),Vt(t,this._rawValue)&&(this._rawValue=t,this._value=E?t:vE(t),Eo(this))}}function Re(e){return Ue(e)?e.value:e}const gS={get:(e,t,E)=>Re(Reflect.get(e,t,E)),set:(e,t,E,T)=>{const r=e[t];return Ue(r)&&!Ue(E)?(r.value=E,!0):Reflect.set(e,t,E,T)}};function To(e){return ft(e)?e:new Proxy(e,gS)}function GS(e){const t=z(e)?new Array(e.length):{};for(const E in e)t[E]=HS(e,E);return t}class mS{constructor(t,E,T){this._object=t,this._key=E,this._defaultValue=T,this.__v_isRef=!0}get value(){const t=this._object[this._key];return t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return oS(Oe(this._object),this._key)}}function HS(e,t,E){const T=e[t];return Ue(T)?T:new mS(e,t,E)}class yS{constructor(t,E,T,r){this._setter=E,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this._dirty=!0,this.effect=new Fr(t,()=>{this._dirty||(this._dirty=!0,Eo(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!r,this.__v_isReadonly=T}get value(){const t=Oe(this);return to(t),(t._dirty||!t._cacheable)&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}function bS(e,t,E=!1){let T,r;const s=Te(e);return s?(T=e,r=nt):(T=e.get,r=e.set),new yS(T,r,s||!r,E)}function Pt(e,t,E,T){let r;try{r=T?e(...T):e()}catch(s){HT(s,t,E)}return r}function et(e,t,E,T){if(Te(e)){const s=Pt(e,t,E,T);return s&&bR(s)&&s.catch(n=>{HT(n,t,E)}),s}const r=[];for(let s=0;s<e.length;s++)r.push(et(e[s],t,E,T));return r}function HT(e,t,E,T=!0){const r=t?t.vnode:null;if(t){let s=t.parent;const n=t.proxy,R=E;for(;s;){const A=s.ec;if(A){for(let i=0;i<A.length;i++)if(A[i](e,n,R)===!1)return}s=s.parent}const o=t.appContext.config.errorHandler;if(o){Pt(o,null,10,[e,n,R]);return}}BS(e,E,r,T)}function BS(e,t,E,T=!0){console.error(e)}let YE=!1,or=!1;const be=[];let st=0;const tE=[];let Ot=null,Bt=0;const ro=Promise.resolve();let wr=null;function so(e){const t=wr||ro;return e?t.then(this?e.bind(this):e):t}function FS(e){let t=st+1,E=be.length;for(;t<E;){const T=t+E>>>1,r=be[T],s=xE(r);s<e||s===e&&r.pre?t=T+1:E=T}return t}function Wr(e){(!be.length||!be.includes(e,YE&&e.allowRecurse?st+1:st))&&(e.id==null?be.push(e):be.splice(FS(e.id),0,e),no())}function no(){!YE&&!or&&(or=!0,wr=ro.then(oo))}function vS(e){const t=be.indexOf(e);t>st&&be.splice(t,1)}function YS(e){z(e)?tE.push(...e):(!Ot||!Ot.includes(e,e.allowRecurse?Bt+1:Bt))&&tE.push(e),no()}function Hs(e,t,E=YE?st+1:0){for(;E<be.length;E++){const T=be[E];if(T&&T.pre){if(e&&T.id!==e.uid)continue;be.splice(E,1),E--,T()}}}function Ro(e){if(tE.length){const t=[...new Set(tE)];if(tE.length=0,Ot){Ot.push(...t);return}for(Ot=t,Ot.sort((E,T)=>xE(E)-xE(T)),Bt=0;Bt<Ot.length;Bt++)Ot[Bt]();Ot=null,Bt=0}}const xE=e=>e.id==null?1/0:e.id,xS=(e,t)=>{const E=xE(e)-xE(t);if(E===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return E};function oo(e){or=!1,YE=!0,be.sort(xS);try{for(st=0;st<be.length;st++){const t=be[st];t&&t.active!==!1&&Pt(t,null,14)}}finally{st=0,be.length=0,Ro(),YE=!1,wr=null,(be.length||tE.length)&&oo()}}function VS(e,t,...E){if(e.isUnmounted)return;const T=e.vnode.props||ce;let r=E;const s=t.startsWith("update:"),n=s&&t.slice(7);if(n&&n in T){const i=`${n==="modelValue"?"model":n}Modifiers`,{number:a,trim:I}=T[i]||ce;I&&(r=E.map(l=>Me(l)?l.trim():l)),a&&(r=E.map(Qi))}let R,o=T[R=KT(t)]||T[R=KT(ot(t))];!o&&s&&(o=T[R=KT(AE(t))]),o&&et(o,e,6,r);const A=T[R+"Once"];if(A){if(!e.emitted)e.emitted={};else if(e.emitted[R])return;e.emitted[R]=!0,et(A,e,6,r)}}function Ao(e,t,E=!1){const T=t.emitsCache,r=T.get(e);if(r!==void 0)return r;const s=e.emits;let n={},R=!1;if(!Te(e)){const o=A=>{const i=Ao(A,t,!0);i&&(R=!0,He(n,i))};!E&&t.mixins.length&&t.mixins.forEach(o),e.extends&&o(e.extends),e.mixins&&e.mixins.forEach(o)}return!s&&!R?(ue(e)&&T.set(e,null),null):(z(s)?s.forEach(o=>n[o]=null):He(n,s),ue(e)&&T.set(e,n),n)}function yT(e,t){return!e||!dT(t)?!1:(t=t.slice(2).replace(/Once$/,""),Se(e,t[0].toLowerCase()+t.slice(1))||Se(e,AE(t))||Se(e,t))}let Be=null,io=null;function NT(e){const t=Be;return Be=e,io=e&&e.type.__scopeId||null,t}function ne(e,t=Be,E){if(!t||e._n)return e;const T=(...r)=>{T._d&&$s(-1);const s=NT(t);let n;try{n=e(...r)}finally{NT(s),T._d&&$s(1)}return n};return T._n=!0,T._c=!0,T._d=!0,T}function jT(e){const{type:t,vnode:E,proxy:T,withProxy:r,props:s,propsOptions:[n],slots:R,attrs:o,emit:A,render:i,renderCache:a,data:I,setupState:l,ctx:h,inheritAttrs:b}=e;let w,K;const k=NT(e);try{if(E.shapeFlag&4){const x=r||T,re=x;w=rt(i.call(re,x,a,s,l,I,h)),K=o}else{const x=t;w=rt(x.length>1?x(s,{attrs:o,slots:R,emit:A}):x(s,null)),K=t.props?o:wS(o)}}catch(x){HE.length=0,HT(x,e,1),w=$(Mt)}let F=w;if(K&&b!==!1){const x=Object.keys(K),{shapeFlag:re}=F;x.length&&re&7&&(n&&x.some(Hr)&&(K=WS(K,n)),F=sE(F,K))}return E.dirs&&(F=sE(F),F.dirs=F.dirs?F.dirs.concat(E.dirs):E.dirs),E.transition&&(F.transition=E.transition),w=F,NT(k),w}const wS=e=>{let t;for(const E in e)(E==="class"||E==="style"||dT(E))&&((t||(t={}))[E]=e[E]);return t},WS=(e,t)=>{const E={};for(const T in e)(!Hr(T)||!(T.slice(9)in t))&&(E[T]=e[T]);return E};function XS(e,t,E){const{props:T,children:r,component:s}=e,{props:n,children:R,patchFlag:o}=t,A=s.emitsOptions;if(t.dirs||t.transition)return!0;if(E&&o>=0){if(o&1024)return!0;if(o&16)return T?ys(T,n,A):!!n;if(o&8){const i=t.dynamicProps;for(let a=0;a<i.length;a++){const I=i[a];if(n[I]!==T[I]&&!yT(A,I))return!0}}}else return(r||R)&&(!R||!R.$stable)?!0:T===n?!1:T?n?ys(T,n,A):!0:!!n;return!1}function ys(e,t,E){const T=Object.keys(t);if(T.length!==Object.keys(e).length)return!0;for(let r=0;r<T.length;r++){const s=T[r];if(t[s]!==e[s]&&!yT(E,s))return!0}return!1}function $S({vnode:e,parent:t},E){for(;t&&t.subTree===e;)(e=t.vnode).el=E,t=t.parent}const So="components";function $E(e,t){return JS(So,e,!0,t)||e}const KS=Symbol.for("v-ndc");function JS(e,t,E=!0,T=!1){const r=Be||me;if(r){const s=r.type;if(e===So){const R=wO(s,!1);if(R&&(R===t||R===ot(t)||R===hT(ot(t))))return s}const n=bs(r[e]||s[e],t)||bs(r.appContext[e],t);return!n&&T?s:n}}function bs(e,t){return e&&(e[t]||e[ot(t)]||e[hT(ot(t))])}const kS=e=>e.__isSuspense;function jS(e,t){t&&t.pendingBranch?z(e)?t.effects.push(...e):t.effects.push(e):YS(e)}const ET={};function EE(e,t,E){return Oo(e,t,E)}function Oo(e,t,{immediate:E,deep:T,flush:r,onTrack:s,onTrigger:n}=ce){var R;const o=wR()===((R=me)==null?void 0:R.scope)?me:null;let A,i=!1,a=!1;if(Ue(e)?(A=()=>e.value,i=IT(e)):ft(e)?(A=()=>e,T=!0):z(e)?(a=!0,i=e.some(x=>ft(x)||IT(x)),A=()=>e.map(x=>{if(Ue(x))return x.value;if(ft(x))return Zt(x);if(Te(x))return Pt(x,o,2)})):Te(e)?t?A=()=>Pt(e,o,2):A=()=>{if(!(o&&o.isUnmounted))return I&&I(),et(e,o,3,[l])}:A=nt,t&&T){const x=A;A=()=>Zt(x())}let I,l=x=>{I=k.onStop=()=>{Pt(x,o,4),I=k.onStop=void 0}},h;if(WE)if(l=nt,t?E&&et(t,o,3,[A(),a?[]:void 0,l]):A(),r==="sync"){const x=$O();h=x.__watcherHandles||(x.__watcherHandles=[])}else return nt;let b=a?new Array(e.length).fill(ET):ET;const w=()=>{if(k.active)if(t){const x=k.run();(T||i||(a?x.some((re,pe)=>Vt(re,b[pe])):Vt(x,b)))&&(I&&I(),et(t,o,3,[x,b===ET?void 0:a&&b[0]===ET?[]:b,l]),b=x)}else k.run()};w.allowRecurse=!!t;let K;r==="sync"?K=w:r==="post"?K=()=>Ve(w,o&&o.suspense):(w.pre=!0,o&&(w.id=o.uid),K=()=>Wr(w));const k=new Fr(A,K);t?E?w():b=k.run():r==="post"?Ve(k.run.bind(k),o&&o.suspense):k.run();const F=()=>{k.stop(),o&&o.scope&&yr(o.scope.effects,k)};return h&&h.push(F),F}function qS(e,t,E){const T=this.proxy,r=Me(e)?e.includes(".")?ao(T,e):()=>T[e]:e.bind(T,T);let s;Te(t)?s=t:(s=t.handler,E=t);const n=me;nE(this);const R=Oo(r,s.bind(T),E);return n?nE(n):xt(),R}function ao(e,t){const E=t.split(".");return()=>{let T=e;for(let r=0;r<E.length&&T;r++)T=T[E[r]];return T}}function Zt(e,t){if(!ue(e)||e.__v_skip||(t=t||new Set,t.has(e)))return e;if(t.add(e),Ue(e))Zt(e.value,t);else if(z(e))for(let E=0;E<e.length;E++)Zt(e[E],t);else if(yR(e)||eE(e))e.forEach(E=>{Zt(E,t)});else if(FR(e))for(const E in e)Zt(e[E],t);return e}function mt(e,t,E,T){const r=e.dirs,s=t&&t.dirs;for(let n=0;n<r.length;n++){const R=r[n];s&&(R.oldValue=s[n].value);let o=R.dir[T];o&&(iE(),et(o,E,8,[e.el,R,e,t]),SE())}}/*! #__NO_SIDE_EFFECTS__ */function De(e,t){return Te(e)?He({name:e.name},t,{setup:e}):e}const hE=e=>!!e.type.__asyncLoader,Io=e=>e.type.__isKeepAlive;function QS(e,t){No(e,"a",t)}function ZS(e,t){No(e,"da",t)}function No(e,t,E=me){const T=e.__wdc||(e.__wdc=()=>{let r=E;for(;r;){if(r.isDeactivated)return;r=r.parent}return e()});if(bT(t,T,E),E){let r=E.parent;for(;r&&r.parent;)Io(r.parent.vnode)&&zS(T,t,E,r),r=r.parent}}function zS(e,t,E,T){const r=bT(t,e,T,!0);_o(()=>{yr(T[t],r)},E)}function bT(e,t,E=me,T=!1){if(E){const r=E[e]||(E[e]=[]),s=t.__weh||(t.__weh=(...n)=>{if(E.isUnmounted)return;iE(),nE(E);const R=et(t,E,e,n);return xt(),SE(),R});return T?r.unshift(s):r.push(s),s}}const It=e=>(t,E=me)=>(!WE||e==="sp")&&bT(e,(...T)=>t(...T),E),lo=It("bm"),Xr=It("m"),eO=It("bu"),tO=It("u"),EO=It("bum"),_o=It("um"),TO=It("sp"),rO=It("rtg"),sO=It("rtc");function nO(e,t=me){bT("ec",e,t)}function Je(e,t,E,T){let r;const s=E&&E[T];if(z(e)||Me(e)){r=new Array(e.length);for(let n=0,R=e.length;n<R;n++)r[n]=t(e[n],n,void 0,s&&s[n])}else if(typeof e=="number"){r=new Array(e);for(let n=0;n<e;n++)r[n]=t(n+1,n,void 0,s&&s[n])}else if(ue(e))if(e[Symbol.iterator])r=Array.from(e,(n,R)=>t(n,R,void 0,s&&s[R]));else{const n=Object.keys(e);r=new Array(n.length);for(let R=0,o=n.length;R<o;R++){const A=n[R];r[R]=t(e[A],A,R,s&&s[R])}}else r=[];return E&&(E[T]=r),r}function Rt(e,t,E={},T,r){if(Be.isCE||Be.parent&&hE(Be.parent)&&Be.parent.isCE)return t!=="default"&&(E.name=t),$("slot",E,T&&T());let s=e[t];s&&s._c&&(s._d=!1),U();const n=s&&Co(s(E)),R=Ce(Le,{key:E.key||n&&n.key||`_${t}`},n||(T?T():[]),n&&e._===1?64:-2);return!r&&R.scopeId&&(R.slotScopeIds=[R.scopeId+"-s"]),s&&s._c&&(s._d=!0),R}function Co(e){return e.some(t=>_T(t)?!(t.type===Mt||t.type===Le&&!Co(t.children)):!0)?e:null}const Ar=e=>e?go(e)?qr(e)||e.proxy:Ar(e.parent):null,gE=He(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Ar(e.parent),$root:e=>Ar(e.root),$emit:e=>e.emit,$options:e=>$r(e),$forceUpdate:e=>e.f||(e.f=()=>Wr(e.update)),$nextTick:e=>e.n||(e.n=so.bind(e.proxy)),$watch:e=>qS.bind(e)}),qT=(e,t)=>e!==ce&&!e.__isScriptSetup&&Se(e,t),RO={get({_:e},t){const{ctx:E,setupState:T,data:r,props:s,accessCache:n,type:R,appContext:o}=e;let A;if(t[0]!=="$"){const l=n[t];if(l!==void 0)switch(l){case 1:return T[t];case 2:return r[t];case 4:return E[t];case 3:return s[t]}else{if(qT(T,t))return n[t]=1,T[t];if(r!==ce&&Se(r,t))return n[t]=2,r[t];if((A=e.propsOptions[0])&&Se(A,t))return n[t]=3,s[t];if(E!==ce&&Se(E,t))return n[t]=4,E[t];ir&&(n[t]=0)}}const i=gE[t];let a,I;if(i)return t==="$attrs"&&we(e,"get",t),i(e);if((a=R.__cssModules)&&(a=a[t]))return a;if(E!==ce&&Se(E,t))return n[t]=4,E[t];if(I=o.config.globalProperties,Se(I,t))return I[t]},set({_:e},t,E){const{data:T,setupState:r,ctx:s}=e;return qT(r,t)?(r[t]=E,!0):T!==ce&&Se(T,t)?(T[t]=E,!0):Se(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(s[t]=E,!0)},has({_:{data:e,setupState:t,accessCache:E,ctx:T,appContext:r,propsOptions:s}},n){let R;return!!E[n]||e!==ce&&Se(e,n)||qT(t,n)||(R=s[0])&&Se(R,n)||Se(T,n)||Se(gE,n)||Se(r.config.globalProperties,n)},defineProperty(e,t,E){return E.get!=null?e._.accessCache[t]=0:Se(E,"value")&&this.set(e,t,E.value,null),Reflect.defineProperty(e,t,E)}};function Bs(e){return z(e)?e.reduce((t,E)=>(t[E]=null,t),{}):e}let ir=!0;function oO(e){const t=$r(e),E=e.proxy,T=e.ctx;ir=!1,t.beforeCreate&&Fs(t.beforeCreate,e,"bc");const{data:r,computed:s,methods:n,watch:R,provide:o,inject:A,created:i,beforeMount:a,mounted:I,beforeUpdate:l,updated:h,activated:b,deactivated:w,beforeDestroy:K,beforeUnmount:k,destroyed:F,unmounted:x,render:re,renderTracked:pe,renderTriggered:ie,errorCaptured:ee,serverPrefetch:j,expose:C,inheritAttrs:p,components:L,directives:v,filters:J}=t;if(A&&AO(A,T,null),n)for(const u in n){const G=n[u];Te(G)&&(T[u]=G.bind(E))}if(r){const u=r.call(E,E);ue(u)&&(e.data=At(u))}if(ir=!0,s)for(const u in s){const G=s[u],te=Te(G)?G.bind(E,E):Te(G.get)?G.get.bind(E,E):nt,ae=!Te(G)&&Te(G.set)?G.set.bind(E):nt,Ie=ze({get:te,set:ae});Object.defineProperty(T,u,{enumerable:!0,configurable:!0,get:()=>Ie.value,set:Pe=>Ie.value=Pe})}if(R)for(const u in R)co(R[u],T,E,u);if(o){const u=Te(o)?o.call(E):o;Reflect.ownKeys(u).forEach(G=>{NO(G,u[G])})}i&&Fs(i,e,"c");function Z(u,G){z(G)?G.forEach(te=>u(te.bind(E))):G&&u(G.bind(E))}if(Z(lo,a),Z(Xr,I),Z(eO,l),Z(tO,h),Z(QS,b),Z(ZS,w),Z(nO,ee),Z(sO,pe),Z(rO,ie),Z(EO,k),Z(_o,x),Z(TO,j),z(C))if(C.length){const u=e.exposed||(e.exposed={});C.forEach(G=>{Object.defineProperty(u,G,{get:()=>E[G],set:te=>E[G]=te})})}else e.exposed||(e.exposed={});re&&e.render===nt&&(e.render=re),p!=null&&(e.inheritAttrs=p),L&&(e.components=L),v&&(e.directives=v)}function AO(e,t,E=nt){z(e)&&(e=Sr(e));for(const T in e){const r=e[T];let s;ue(r)?"default"in r?s=GE(r.from||T,r.default,!0):s=GE(r.from||T):s=GE(r),Ue(s)?Object.defineProperty(t,T,{enumerable:!0,configurable:!0,get:()=>s.value,set:n=>s.value=n}):t[T]=s}}function Fs(e,t,E){et(z(e)?e.map(T=>T.bind(t.proxy)):e.bind(t.proxy),t,E)}function co(e,t,E,T){const r=T.includes(".")?ao(E,T):()=>E[T];if(Me(e)){const s=t[e];Te(s)&&EE(r,s)}else if(Te(e))EE(r,e.bind(E));else if(ue(e))if(z(e))e.forEach(s=>co(s,t,E,T));else{const s=Te(e.handler)?e.handler.bind(E):t[e.handler];Te(s)&&EE(r,s,e)}}function $r(e){const t=e.type,{mixins:E,extends:T}=t,{mixins:r,optionsCache:s,config:{optionMergeStrategies:n}}=e.appContext,R=s.get(t);let o;return R?o=R:!r.length&&!E&&!T?o=t:(o={},r.length&&r.forEach(A=>lT(o,A,n,!0)),lT(o,t,n)),ue(t)&&s.set(t,o),o}function lT(e,t,E,T=!1){const{mixins:r,extends:s}=t;s&&lT(e,s,E,!0),r&&r.forEach(n=>lT(e,n,E,!0));for(const n in t)if(!(T&&n==="expose")){const R=iO[n]||E&&E[n];e[n]=R?R(e[n],t[n]):t[n]}return e}const iO={data:vs,props:Ys,emits:Ys,methods:ME,computed:ME,beforeCreate:ve,created:ve,beforeMount:ve,mounted:ve,beforeUpdate:ve,updated:ve,beforeDestroy:ve,beforeUnmount:ve,destroyed:ve,unmounted:ve,activated:ve,deactivated:ve,errorCaptured:ve,serverPrefetch:ve,components:ME,directives:ME,watch:OO,provide:vs,inject:SO};function vs(e,t){return t?e?function(){return He(Te(e)?e.call(this,this):e,Te(t)?t.call(this,this):t)}:t:e}function SO(e,t){return ME(Sr(e),Sr(t))}function Sr(e){if(z(e)){const t={};for(let E=0;E<e.length;E++)t[e[E]]=e[E];return t}return e}function ve(e,t){return e?[...new Set([].concat(e,t))]:t}function ME(e,t){return e?He(Object.create(null),e,t):t}function Ys(e,t){return e?z(e)&&z(t)?[...new Set([...e,...t])]:He(Object.create(null),Bs(e),Bs(t??{})):t}function OO(e,t){if(!e)return t;if(!t)return e;const E=He(Object.create(null),e);for(const T in t)E[T]=ve(e[T],t[T]);return E}function Lo(){return{app:null,config:{isNativeTag:Ki,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let aO=0;function IO(e,t){return function(T,r=null){Te(T)||(T=He({},T)),r!=null&&!ue(r)&&(r=null);const s=Lo(),n=new WeakSet;let R=!1;const o=s.app={_uid:aO++,_component:T,_props:r,_container:null,_context:s,_instance:null,version:KO,get config(){return s.config},set config(A){},use(A,...i){return n.has(A)||(A&&Te(A.install)?(n.add(A),A.install(o,...i)):Te(A)&&(n.add(A),A(o,...i))),o},mixin(A){return s.mixins.includes(A)||s.mixins.push(A),o},component(A,i){return i?(s.components[A]=i,o):s.components[A]},directive(A,i){return i?(s.directives[A]=i,o):s.directives[A]},mount(A,i,a){if(!R){const I=$(T,r);return I.appContext=s,i&&t?t(I,A):e(I,A,a),R=!0,o._container=A,A.__vue_app__=o,qr(I.component)||I.component.proxy}},unmount(){R&&(e(null,o._container),delete o._container.__vue_app__)},provide(A,i){return s.provides[A]=i,o},runWithContext(A){VE=o;try{return A()}finally{VE=null}}};return o}}let VE=null;function NO(e,t){if(me){let E=me.provides;const T=me.parent&&me.parent.provides;T===E&&(E=me.provides=Object.create(T)),E[e]=t}}function GE(e,t,E=!1){const T=me||Be;if(T||VE){const r=T?T.parent==null?T.vnode.appContext&&T.vnode.appContext.provides:T.parent.provides:VE._context.provides;if(r&&e in r)return r[e];if(arguments.length>1)return E&&Te(t)?t.call(T&&T.proxy):t}}function lO(){return!!(me||Be||VE)}function _O(e,t,E,T=!1){const r={},s={};OT(s,FT,1),e.propsDefaults=Object.create(null),uo(e,t,r,s);for(const n in e.propsOptions[0])n in r||(r[n]=void 0);E?e.props=T?r:MS(r):e.type.props?e.props=r:e.props=s,e.attrs=s}function CO(e,t,E,T){const{props:r,attrs:s,vnode:{patchFlag:n}}=e,R=Oe(r),[o]=e.propsOptions;let A=!1;if((T||n>0)&&!(n&16)){if(n&8){const i=e.vnode.dynamicProps;for(let a=0;a<i.length;a++){let I=i[a];if(yT(e.emitsOptions,I))continue;const l=t[I];if(o)if(Se(s,I))l!==s[I]&&(s[I]=l,A=!0);else{const h=ot(I);r[h]=Or(o,R,h,l,e,!1)}else l!==s[I]&&(s[I]=l,A=!0)}}}else{uo(e,t,r,s)&&(A=!0);let i;for(const a in R)(!t||!Se(t,a)&&((i=AE(a))===a||!Se(t,i)))&&(o?E&&(E[a]!==void 0||E[i]!==void 0)&&(r[a]=Or(o,R,a,void 0,e,!0)):delete r[a]);if(s!==R)for(const a in s)(!t||!Se(t,a))&&(delete s[a],A=!0)}A&&at(e,"set","$attrs")}function uo(e,t,E,T){const[r,s]=e.propsOptions;let n=!1,R;if(t)for(let o in t){if(rT(o))continue;const A=t[o];let i;r&&Se(r,i=ot(o))?!s||!s.includes(i)?E[i]=A:(R||(R={}))[i]=A:yT(e.emitsOptions,o)||(!(o in T)||A!==T[o])&&(T[o]=A,n=!0)}if(s){const o=Oe(E),A=R||ce;for(let i=0;i<s.length;i++){const a=s[i];E[a]=Or(r,o,a,A[a],e,!Se(A,a))}}return n}function Or(e,t,E,T,r,s){const n=e[E];if(n!=null){const R=Se(n,"default");if(R&&T===void 0){const o=n.default;if(n.type!==Function&&!n.skipFactory&&Te(o)){const{propsDefaults:A}=r;E in A?T=A[E]:(nE(r),T=A[E]=o.call(null,t),xt())}else T=o}n[0]&&(s&&!R?T=!1:n[1]&&(T===""||T===AE(E))&&(T=!0))}return T}function po(e,t,E=!1){const T=t.propsCache,r=T.get(e);if(r)return r;const s=e.props,n={},R=[];let o=!1;if(!Te(e)){const i=a=>{o=!0;const[I,l]=po(a,t,!0);He(n,I),l&&R.push(...l)};!E&&t.mixins.length&&t.mixins.forEach(i),e.extends&&i(e.extends),e.mixins&&e.mixins.forEach(i)}if(!s&&!o)return ue(e)&&T.set(e,zt),zt;if(z(s))for(let i=0;i<s.length;i++){const a=ot(s[i]);xs(a)&&(n[a]=ce)}else if(s)for(const i in s){const a=ot(i);if(xs(a)){const I=s[i],l=n[a]=z(I)||Te(I)?{type:I}:He({},I);if(l){const h=Ws(Boolean,l.type),b=Ws(String,l.type);l[0]=h>-1,l[1]=b<0||h<b,(h>-1||Se(l,"default"))&&R.push(a)}}}const A=[n,R];return ue(e)&&T.set(e,A),A}function xs(e){return e[0]!=="$"}function Vs(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:e===null?"null":""}function ws(e,t){return Vs(e)===Vs(t)}function Ws(e,t){return z(t)?t.findIndex(E=>ws(E,e)):Te(t)&&ws(t,e)?0:-1}const fo=e=>e[0]==="_"||e==="$stable",Kr=e=>z(e)?e.map(rt):[rt(e)],cO=(e,t,E)=>{if(t._n)return t;const T=ne((...r)=>Kr(t(...r)),E);return T._c=!1,T},Po=(e,t,E)=>{const T=e._ctx;for(const r in e){if(fo(r))continue;const s=e[r];if(Te(s))t[r]=cO(r,s,T);else if(s!=null){const n=Kr(s);t[r]=()=>n}}},Do=(e,t)=>{const E=Kr(t);e.slots.default=()=>E},LO=(e,t)=>{if(e.vnode.shapeFlag&32){const E=t._;E?(e.slots=Oe(t),OT(t,"_",E)):Po(t,e.slots={})}else e.slots={},t&&Do(e,t);OT(e.slots,FT,1)},uO=(e,t,E)=>{const{vnode:T,slots:r}=e;let s=!0,n=ce;if(T.shapeFlag&32){const R=t._;R?E&&R===1?s=!1:(He(r,t),!E&&R===1&&delete r._):(s=!t.$stable,Po(t,r)),n=t}else t&&(Do(e,t),n={default:1});if(s)for(const R in r)!fo(R)&&n[R]==null&&delete r[R]};function ar(e,t,E,T,r=!1){if(z(e)){e.forEach((I,l)=>ar(I,t&&(z(t)?t[l]:t),E,T,r));return}if(hE(T)&&!r)return;const s=T.shapeFlag&4?qr(T.component)||T.component.proxy:T.el,n=r?null:s,{i:R,r:o}=e,A=t&&t.r,i=R.refs===ce?R.refs={}:R.refs,a=R.setupState;if(A!=null&&A!==o&&(Me(A)?(i[A]=null,Se(a,A)&&(a[A]=null)):Ue(A)&&(A.value=null)),Te(o))Pt(o,R,12,[n,i]);else{const I=Me(o),l=Ue(o);if(I||l){const h=()=>{if(e.f){const b=I?Se(a,o)?a[o]:i[o]:o.value;r?z(b)&&yr(b,s):z(b)?b.includes(s)||b.push(s):I?(i[o]=[s],Se(a,o)&&(a[o]=i[o])):(o.value=[s],e.k&&(i[e.k]=o.value))}else I?(i[o]=n,Se(a,o)&&(a[o]=n)):l&&(o.value=n,e.k&&(i[e.k]=n))};n?(h.id=-1,Ve(h,E)):h()}}}const Ve=jS;function pO(e){return fO(e)}function fO(e,t){const E=rr();E.__VUE__=!0;const{insert:T,remove:r,patchProp:s,createElement:n,createText:R,createComment:o,setText:A,setElementText:i,parentNode:a,nextSibling:I,setScopeId:l=nt,insertStaticContent:h}=e,b=(S,N,c,D=null,P=null,m=null,B=!1,_=null,H=!!N.dynamicChildren)=>{if(S===N)return;S&&!pE(S,N)&&(D=gt(S),Pe(S,P,m,!0),S=null),N.patchFlag===-2&&(H=!1,N.dynamicChildren=null);const{type:f,ref:y,shapeFlag:V}=N;switch(f){case BT:w(S,N,c,D);break;case Mt:K(S,N,c,D);break;case sT:S==null&&k(N,c,D,B);break;case Le:L(S,N,c,D,P,m,B,_,H);break;default:V&1?re(S,N,c,D,P,m,B,_,H):V&6?v(S,N,c,D,P,m,B,_,H):(V&64||V&128)&&f.process(S,N,c,D,P,m,B,_,H,St)}y!=null&&P&&ar(y,S&&S.ref,m,N||S,!N)},w=(S,N,c,D)=>{if(S==null)T(N.el=R(N.children),c,D);else{const P=N.el=S.el;N.children!==S.children&&A(P,N.children)}},K=(S,N,c,D)=>{S==null?T(N.el=o(N.children||""),c,D):N.el=S.el},k=(S,N,c,D)=>{[S.el,S.anchor]=h(S.children,N,c,D,S.el,S.anchor)},F=({el:S,anchor:N},c,D)=>{let P;for(;S&&S!==N;)P=I(S),T(S,c,D),S=P;T(N,c,D)},x=({el:S,anchor:N})=>{let c;for(;S&&S!==N;)c=I(S),r(S),S=c;r(N)},re=(S,N,c,D,P,m,B,_,H)=>{B=B||N.type==="svg",S==null?pe(N,c,D,P,m,B,_,H):j(S,N,P,m,B,_,H)},pe=(S,N,c,D,P,m,B,_)=>{let H,f;const{type:y,props:V,shapeFlag:W,transition:Q,dirs:se}=S;if(H=S.el=n(S.type,m,V&&V.is,V),W&8?i(H,S.children):W&16&&ee(S.children,H,null,D,P,m&&y!=="foreignObject",B,_),se&&mt(S,null,D,"created"),ie(H,S,S.scopeId,B,D),V){for(const g in V)g!=="value"&&!rT(g)&&s(H,g,null,V[g],m,S.children,D,P,de);"value"in V&&s(H,"value",null,V.value),(f=V.onVnodeBeforeMount)&&Tt(f,D,S)}se&&mt(S,null,D,"beforeMount");const M=PO(P,Q);M&&Q.beforeEnter(H),T(H,N,c),((f=V&&V.onVnodeMounted)||M||se)&&Ve(()=>{f&&Tt(f,D,S),M&&Q.enter(H),se&&mt(S,null,D,"mounted")},P)},ie=(S,N,c,D,P)=>{if(c&&l(S,c),D)for(let m=0;m<D.length;m++)l(S,D[m]);if(P){let m=P.subTree;if(N===m){const B=P.vnode;ie(S,B,B.scopeId,B.slotScopeIds,P.parent)}}},ee=(S,N,c,D,P,m,B,_,H=0)=>{for(let f=H;f<S.length;f++){const y=S[f]=_?ct(S[f]):rt(S[f]);b(null,y,N,c,D,P,m,B,_)}},j=(S,N,c,D,P,m,B)=>{const _=N.el=S.el;let{patchFlag:H,dynamicChildren:f,dirs:y}=N;H|=S.patchFlag&16;const V=S.props||ce,W=N.props||ce;let Q;c&&Ht(c,!1),(Q=W.onVnodeBeforeUpdate)&&Tt(Q,c,N,S),y&&mt(N,S,c,"beforeUpdate"),c&&Ht(c,!0);const se=P&&N.type!=="foreignObject";if(f?C(S.dynamicChildren,f,_,c,D,se,m):B||G(S,N,_,null,c,D,se,m,!1),H>0){if(H&16)p(_,N,V,W,c,D,P);else if(H&2&&V.class!==W.class&&s(_,"class",null,W.class,P),H&4&&s(_,"style",V.style,W.style,P),H&8){const M=N.dynamicProps;for(let g=0;g<M.length;g++){const X=M[g],Ee=V[X],fe=W[X];(fe!==Ee||X==="value")&&s(_,X,Ee,fe,P,S.children,c,D,de)}}H&1&&S.children!==N.children&&i(_,N.children)}else!B&&f==null&&p(_,N,V,W,c,D,P);((Q=W.onVnodeUpdated)||y)&&Ve(()=>{Q&&Tt(Q,c,N,S),y&&mt(N,S,c,"updated")},D)},C=(S,N,c,D,P,m,B)=>{for(let _=0;_<N.length;_++){const H=S[_],f=N[_],y=H.el&&(H.type===Le||!pE(H,f)||H.shapeFlag&70)?a(H.el):c;b(H,f,y,null,D,P,m,B,!0)}},p=(S,N,c,D,P,m,B)=>{if(c!==D){if(c!==ce)for(const _ in c)!rT(_)&&!(_ in D)&&s(S,_,c[_],null,B,N.children,P,m,de);for(const _ in D){if(rT(_))continue;const H=D[_],f=c[_];H!==f&&_!=="value"&&s(S,_,f,H,B,N.children,P,m,de)}"value"in D&&s(S,"value",c.value,D.value)}},L=(S,N,c,D,P,m,B,_,H)=>{const f=N.el=S?S.el:R(""),y=N.anchor=S?S.anchor:R("");let{patchFlag:V,dynamicChildren:W,slotScopeIds:Q}=N;Q&&(_=_?_.concat(Q):Q),S==null?(T(f,c,D),T(y,c,D),ee(N.children,c,y,P,m,B,_,H)):V>0&&V&64&&W&&S.dynamicChildren?(C(S.dynamicChildren,W,c,P,m,B,_),(N.key!=null||P&&N===P.subTree)&&Jr(S,N,!0)):G(S,N,c,y,P,m,B,_,H)},v=(S,N,c,D,P,m,B,_,H)=>{N.slotScopeIds=_,S==null?N.shapeFlag&512?P.ctx.activate(N,c,D,B,H):J(N,c,D,P,m,B,H):le(S,N,H)},J=(S,N,c,D,P,m,B)=>{const _=S.component=FO(S,D,P);if(Io(S)&&(_.ctx.renderer=St),vO(_),_.asyncDep){if(P&&P.registerDep(_,Z),!S.el){const H=_.subTree=$(Mt);K(null,H,N,c)}return}Z(_,S,N,c,P,m,B)},le=(S,N,c)=>{const D=N.component=S.component;if(XS(S,N,c))if(D.asyncDep&&!D.asyncResolved){u(D,N,c);return}else D.next=N,vS(D.update),D.update();else N.el=S.el,D.vnode=N},Z=(S,N,c,D,P,m,B)=>{const _=()=>{if(S.isMounted){let{next:y,bu:V,u:W,parent:Q,vnode:se}=S,M=y,g;Ht(S,!1),y?(y.el=se.el,u(S,y,B)):y=se,V&&JT(V),(g=y.props&&y.props.onVnodeBeforeUpdate)&&Tt(g,Q,y,se),Ht(S,!0);const X=jT(S),Ee=S.subTree;S.subTree=X,b(Ee,X,a(Ee.el),gt(Ee),S,P,m),y.el=X.el,M===null&&$S(S,X.el),W&&Ve(W,P),(g=y.props&&y.props.onVnodeUpdated)&&Ve(()=>Tt(g,Q,y,se),P)}else{let y;const{el:V,props:W}=N,{bm:Q,m:se,parent:M}=S,g=hE(N);if(Ht(S,!1),Q&&JT(Q),!g&&(y=W&&W.onVnodeBeforeMount)&&Tt(y,M,N),Ht(S,!0),V&&uE){const X=()=>{S.subTree=jT(S),uE(V,S.subTree,S,P,null)};g?N.type.__asyncLoader().then(()=>!S.isUnmounted&&X()):X()}else{const X=S.subTree=jT(S);b(null,X,c,D,S,P,m),N.el=X.el}if(se&&Ve(se,P),!g&&(y=W&&W.onVnodeMounted)){const X=N;Ve(()=>Tt(y,M,X),P)}(N.shapeFlag&256||M&&hE(M.vnode)&&M.vnode.shapeFlag&256)&&S.a&&Ve(S.a,P),S.isMounted=!0,N=c=D=null}},H=S.effect=new Fr(_,()=>Wr(f),S.scope),f=S.update=()=>H.run();f.id=S.uid,Ht(S,!0),f()},u=(S,N,c)=>{N.component=S;const D=S.vnode.props;S.vnode=N,S.next=null,CO(S,N.props,D,c),uO(S,N.children,c),iE(),Hs(S),SE()},G=(S,N,c,D,P,m,B,_,H=!1)=>{const f=S&&S.children,y=S?S.shapeFlag:0,V=N.children,{patchFlag:W,shapeFlag:Q}=N;if(W>0){if(W&128){ae(f,V,c,D,P,m,B,_,H);return}else if(W&256){te(f,V,c,D,P,m,B,_,H);return}}Q&8?(y&16&&de(f,P,m),V!==f&&i(c,V)):y&16?Q&16?ae(f,V,c,D,P,m,B,_,H):de(f,P,m,!0):(y&8&&i(c,""),Q&16&&ee(V,c,D,P,m,B,_,H))},te=(S,N,c,D,P,m,B,_,H)=>{S=S||zt,N=N||zt;const f=S.length,y=N.length,V=Math.min(f,y);let W;for(W=0;W<V;W++){const Q=N[W]=H?ct(N[W]):rt(N[W]);b(S[W],Q,c,null,P,m,B,_,H)}f>y?de(S,P,m,!0,!1,V):ee(N,c,D,P,m,B,_,H,V)},ae=(S,N,c,D,P,m,B,_,H)=>{let f=0;const y=N.length;let V=S.length-1,W=y-1;for(;f<=V&&f<=W;){const Q=S[f],se=N[f]=H?ct(N[f]):rt(N[f]);if(pE(Q,se))b(Q,se,c,null,P,m,B,_,H);else break;f++}for(;f<=V&&f<=W;){const Q=S[V],se=N[W]=H?ct(N[W]):rt(N[W]);if(pE(Q,se))b(Q,se,c,null,P,m,B,_,H);else break;V--,W--}if(f>V){if(f<=W){const Q=W+1,se=Q<y?N[Q].el:D;for(;f<=W;)b(null,N[f]=H?ct(N[f]):rt(N[f]),c,se,P,m,B,_,H),f++}}else if(f>W)for(;f<=V;)Pe(S[f],P,m,!0),f++;else{const Q=f,se=f,M=new Map;for(f=se;f<=W;f++){const We=N[f]=H?ct(N[f]):rt(N[f]);We.key!=null&&M.set(We.key,f)}let g,X=0;const Ee=W-se+1;let fe=!1,Ke=0;const Gt=new Array(Ee);for(f=0;f<Ee;f++)Gt[f]=0;for(f=Q;f<=V;f++){const We=S[f];if(X>=Ee){Pe(We,P,m,!0);continue}let Et;if(We.key!=null)Et=M.get(We.key);else for(g=se;g<=W;g++)if(Gt[g-se]===0&&pE(We,N[g])){Et=g;break}Et===void 0?Pe(We,P,m,!0):(Gt[Et-se]=f+1,Et>=Ke?Ke=Et:fe=!0,b(We,N[Et],c,null,P,m,B,_,H),X++)}const jE=fe?DO(Gt):zt;for(g=jE.length-1,f=Ee-1;f>=0;f--){const We=se+f,Et=N[We],_s=We+1<y?N[We+1].el:D;Gt[f]===0?b(null,Et,c,_s,P,m,B,_,H):fe&&(g<0||f!==jE[g]?Ie(Et,c,_s,2):g--)}}},Ie=(S,N,c,D,P=null)=>{const{el:m,type:B,transition:_,children:H,shapeFlag:f}=S;if(f&6){Ie(S.component.subTree,N,c,D);return}if(f&128){S.suspense.move(N,c,D);return}if(f&64){B.move(S,N,c,St);return}if(B===Le){T(m,N,c);for(let V=0;V<H.length;V++)Ie(H[V],N,c,D);T(S.anchor,N,c);return}if(B===sT){F(S,N,c);return}if(D!==2&&f&1&&_)if(D===0)_.beforeEnter(m),T(m,N,c),Ve(()=>_.enter(m),P);else{const{leave:V,delayLeave:W,afterLeave:Q}=_,se=()=>T(m,N,c),M=()=>{V(m,()=>{se(),Q&&Q()})};W?W(m,se,M):M()}else T(m,N,c)},Pe=(S,N,c,D=!1,P=!1)=>{const{type:m,props:B,ref:_,children:H,dynamicChildren:f,shapeFlag:y,patchFlag:V,dirs:W}=S;if(_!=null&&ar(_,null,c,S,!0),y&256){N.ctx.deactivate(S);return}const Q=y&1&&W,se=!hE(S);let M;if(se&&(M=B&&B.onVnodeBeforeUnmount)&&Tt(M,N,S),y&6)Fe(S.component,c,D);else{if(y&128){S.suspense.unmount(c,D);return}Q&&mt(S,null,N,"beforeUnmount"),y&64?S.type.remove(S,N,c,P,St,D):f&&(m!==Le||V>0&&V&64)?de(f,N,c,!1,!0):(m===Le&&V&384||!P&&y&16)&&de(H,N,c),D&&ke(S)}(se&&(M=B&&B.onVnodeUnmounted)||Q)&&Ve(()=>{M&&Tt(M,N,S),Q&&mt(S,null,N,"unmounted")},c)},ke=S=>{const{type:N,el:c,anchor:D,transition:P}=S;if(N===Le){Kt(c,D);return}if(N===sT){x(S);return}const m=()=>{r(c),P&&!P.persisted&&P.afterLeave&&P.afterLeave()};if(S.shapeFlag&1&&P&&!P.persisted){const{leave:B,delayLeave:_}=P,H=()=>B(c,m);_?_(S.el,m,H):H()}else m()},Kt=(S,N)=>{let c;for(;S!==N;)c=I(S),r(S),S=c;r(N)},Fe=(S,N,c)=>{const{bum:D,scope:P,update:m,subTree:B,um:_}=S;D&&JT(D),P.stop(),m&&(m.active=!1,Pe(B,S,N,c)),_&&Ve(_,N),Ve(()=>{S.isUnmounted=!0},N),N&&N.pendingBranch&&!N.isUnmounted&&S.asyncDep&&!S.asyncResolved&&S.suspenseId===N.pendingId&&(N.deps--,N.deps===0&&N.resolve())},de=(S,N,c,D=!1,P=!1,m=0)=>{for(let B=m;B<S.length;B++)Pe(S[B],N,c,D,P)},gt=S=>S.shapeFlag&6?gt(S.component.subTree):S.shapeFlag&128?S.suspense.next():I(S.anchor||S.el),cE=(S,N,c)=>{S==null?N._vnode&&Pe(N._vnode,null,null,!0):b(N._vnode||null,S,N,null,null,null,c),Hs(),Ro(),N._vnode=S},St={p:b,um:Pe,m:Ie,r:ke,mt:J,mc:ee,pc:G,pbc:C,n:gt,o:e};let LE,uE;return t&&([LE,uE]=t(St)),{render:cE,hydrate:LE,createApp:IO(cE,LE)}}function Ht({effect:e,update:t},E){e.allowRecurse=t.allowRecurse=E}function PO(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Jr(e,t,E=!1){const T=e.children,r=t.children;if(z(T)&&z(r))for(let s=0;s<T.length;s++){const n=T[s];let R=r[s];R.shapeFlag&1&&!R.dynamicChildren&&((R.patchFlag<=0||R.patchFlag===32)&&(R=r[s]=ct(r[s]),R.el=n.el),E||Jr(n,R)),R.type===BT&&(R.el=n.el)}}function DO(e){const t=e.slice(),E=[0];let T,r,s,n,R;const o=e.length;for(T=0;T<o;T++){const A=e[T];if(A!==0){if(r=E[E.length-1],e[r]<A){t[T]=r,E.push(T);continue}for(s=0,n=E.length-1;s<n;)R=s+n>>1,e[E[R]]<A?s=R+1:n=R;A<e[E[s]]&&(s>0&&(t[T]=E[s-1]),E[s]=T)}}for(s=E.length,n=E[s-1];s-- >0;)E[s]=n,n=t[n];return E}const dO=e=>e.__isTeleport,mE=e=>e&&(e.disabled||e.disabled===""),Xs=e=>typeof SVGElement<"u"&&e instanceof SVGElement,Ir=(e,t)=>{const E=e&&e.to;return Me(E)?t?t(E):null:E},MO={name:"Teleport",__isTeleport:!0,process(e,t,E,T,r,s,n,R,o,A){const{mc:i,pc:a,pbc:I,o:{insert:l,querySelector:h,createText:b,createComment:w}}=A,K=mE(t.props);let{shapeFlag:k,children:F,dynamicChildren:x}=t;if(e==null){const re=t.el=b(""),pe=t.anchor=b("");l(re,E,T),l(pe,E,T);const ie=t.target=Ir(t.props,h),ee=t.targetAnchor=b("");ie&&(l(ee,ie),n=n||Xs(ie));const j=(C,p)=>{k&16&&i(F,C,p,r,s,n,R,o)};K?j(E,pe):ie&&j(ie,ee)}else{t.el=e.el;const re=t.anchor=e.anchor,pe=t.target=e.target,ie=t.targetAnchor=e.targetAnchor,ee=mE(e.props),j=ee?E:pe,C=ee?re:ie;if(n=n||Xs(pe),x?(I(e.dynamicChildren,x,j,r,s,n,R),Jr(e,t,!0)):o||a(e,t,j,C,r,s,n,R,!1),K)ee?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):TT(t,E,re,A,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const p=t.target=Ir(t.props,h);p&&TT(t,p,null,A,0)}else ee&&TT(t,pe,ie,A,1)}Mo(t)},remove(e,t,E,T,{um:r,o:{remove:s}},n){const{shapeFlag:R,children:o,anchor:A,targetAnchor:i,target:a,props:I}=e;if(a&&s(i),n&&s(A),R&16){const l=n||!mE(I);for(let h=0;h<o.length;h++){const b=o[h];r(b,t,E,l,!!b.dynamicChildren)}}},move:TT,hydrate:UO};function TT(e,t,E,{o:{insert:T},m:r},s=2){s===0&&T(e.targetAnchor,t,E);const{el:n,anchor:R,shapeFlag:o,children:A,props:i}=e,a=s===2;if(a&&T(n,t,E),(!a||mE(i))&&o&16)for(let I=0;I<A.length;I++)r(A[I],t,E,2);a&&T(R,t,E)}function UO(e,t,E,T,r,s,{o:{nextSibling:n,parentNode:R,querySelector:o}},A){const i=t.target=Ir(t.props,o);if(i){const a=i._lpa||i.firstChild;if(t.shapeFlag&16)if(mE(t.props))t.anchor=A(n(e),t,R(e),E,T,r,s),t.targetAnchor=a;else{t.anchor=n(e);let I=a;for(;I;)if(I=n(I),I&&I.nodeType===8&&I.data==="teleport anchor"){t.targetAnchor=I,i._lpa=t.targetAnchor&&n(t.targetAnchor);break}A(a,t,i,E,T,r,s)}Mo(t)}return t.anchor&&n(t.anchor)}const hO=MO;function Mo(e){const t=e.ctx;if(t&&t.ut){let E=e.children[0].el;for(;E&&E!==e.targetAnchor;)E.nodeType===1&&E.setAttribute("data-v-owner",t.uid),E=E.nextSibling;t.ut()}}const Le=Symbol.for("v-fgt"),BT=Symbol.for("v-txt"),Mt=Symbol.for("v-cmt"),sT=Symbol.for("v-stc"),HE=[];let Ze=null;function U(e=!1){HE.push(Ze=e?null:[])}function gO(){HE.pop(),Ze=HE[HE.length-1]||null}let wE=1;function $s(e){wE+=e}function Uo(e){return e.dynamicChildren=wE>0?Ze||zt:null,gO(),wE>0&&Ze&&Ze.push(e),e}function Y(e,t,E,T,r,s){return Uo(O(e,t,E,T,r,s,!0))}function Ce(e,t,E,T,r){return Uo($(e,t,E,T,r,!0))}function _T(e){return e?e.__v_isVNode===!0:!1}function pE(e,t){return e.type===t.type&&e.key===t.key}const FT="__vInternal",ho=({key:e})=>e??null,nT=({ref:e,ref_key:t,ref_for:E})=>(typeof e=="number"&&(e=""+e),e!=null?Me(e)||Ue(e)||Te(e)?{i:Be,r:e,k:t,f:!!E}:e:null);function O(e,t=null,E=null,T=0,r=null,s=e===Le?0:1,n=!1,R=!1){const o={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&ho(t),ref:t&&nT(t),scopeId:io,slotScopeIds:null,children:E,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:s,patchFlag:T,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:Be};return R?(kr(o,E),s&128&&e.normalize(o)):E&&(o.shapeFlag|=Me(E)?8:16),wE>0&&!n&&Ze&&(o.patchFlag>0||s&6)&&o.patchFlag!==32&&Ze.push(o),o}const $=GO;function GO(e,t=null,E=null,T=0,r=null,s=!1){if((!e||e===KS)&&(e=Mt),_T(e)){const R=sE(e,t,!0);return E&&kr(R,E),wE>0&&!s&&Ze&&(R.shapeFlag&6?Ze[Ze.indexOf(e)]=R:Ze.push(R)),R.patchFlag|=-2,R}if(WO(e)&&(e=e.__vccOpts),t){t=mO(t);let{class:R,style:o}=t;R&&!Me(R)&&(t.class=$e(R)),ue(o)&&(eo(o)&&!z(o)&&(o=He({},o)),t.style=gT(o))}const n=Me(e)?1:kS(e)?128:dO(e)?64:ue(e)?4:Te(e)?2:0;return O(e,t,E,T,r,n,s,!0)}function mO(e){return e?eo(e)||FT in e?He({},e):e:null}function sE(e,t,E=!1){const{props:T,ref:r,patchFlag:s,children:n}=e,R=t?yO(T||{},t):T;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:R,key:R&&ho(R),ref:t&&t.ref?E&&r?z(r)?r.concat(nT(t)):[r,nT(t)]:nT(t):r,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:n,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Le?s===-1?16:s|16:s,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&sE(e.ssContent),ssFallback:e.ssFallback&&sE(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function Ye(e=" ",t=0){return $(BT,null,e,t)}function HO(e,t){const E=$(sT,null,e);return E.staticCount=t,E}function oe(e="",t=!1){return t?(U(),Ce(Mt,null,e)):$(Mt,null,e)}function rt(e){return e==null||typeof e=="boolean"?$(Mt):z(e)?$(Le,null,e.slice()):typeof e=="object"?ct(e):$(BT,null,String(e))}function ct(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:sE(e)}function kr(e,t){let E=0;const{shapeFlag:T}=e;if(t==null)t=null;else if(z(t))E=16;else if(typeof t=="object")if(T&65){const r=t.default;r&&(r._c&&(r._d=!1),kr(e,r()),r._c&&(r._d=!0));return}else{E=32;const r=t._;!r&&!(FT in t)?t._ctx=Be:r===3&&Be&&(Be.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else Te(t)?(t={default:t,_ctx:Be},E=32):(t=String(t),T&64?(E=16,t=[Ye(t)]):E=8);e.children=t,e.shapeFlag|=E}function yO(...e){const t={};for(let E=0;E<e.length;E++){const T=e[E];for(const r in T)if(r==="class")t.class!==T.class&&(t.class=$e([t.class,T.class]));else if(r==="style")t.style=gT([t.style,T.style]);else if(dT(r)){const s=t[r],n=T[r];n&&s!==n&&!(z(s)&&s.includes(n))&&(t[r]=s?[].concat(s,n):n)}else r!==""&&(t[r]=T[r])}return t}function Tt(e,t,E,T=null){et(e,t,7,[E,T])}const bO=Lo();let BO=0;function FO(e,t,E){const T=e.type,r=(t?t.appContext:e.appContext)||bO,s={uid:BO++,vnode:e,type:T,parent:t,appContext:r,root:null,next:null,subTree:null,effect:null,update:null,scope:new xR(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(r.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:po(T,r),emitsOptions:Ao(T,r),emit:null,emitted:null,propsDefaults:ce,inheritAttrs:T.inheritAttrs,ctx:ce,data:ce,props:ce,attrs:ce,slots:ce,refs:ce,setupState:ce,setupContext:null,attrsProxy:null,slotsProxy:null,suspense:E,suspenseId:E?E.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return s.ctx={_:s},s.root=t?t.root:s,s.emit=VS.bind(null,s),e.ce&&e.ce(s),s}let me=null,jr,kt,Ks="__VUE_INSTANCE_SETTERS__";(kt=rr()[Ks])||(kt=rr()[Ks]=[]),kt.push(e=>me=e),jr=e=>{kt.length>1?kt.forEach(t=>t(e)):kt[0](e)};const nE=e=>{jr(e),e.scope.on()},xt=()=>{me&&me.scope.off(),jr(null)};function go(e){return e.vnode.shapeFlag&4}let WE=!1;function vO(e,t=!1){WE=t;const{props:E,children:T}=e.vnode,r=go(e);_O(e,E,r,t),LO(e,T);const s=r?YO(e,t):void 0;return WE=!1,s}function YO(e,t){const E=e.type;e.accessCache=Object.create(null),e.proxy=mT(new Proxy(e.ctx,RO));const{setup:T}=E;if(T){const r=e.setupContext=T.length>1?VO(e):null;nE(e),iE();const s=Pt(T,e,0,[e.props,r]);if(SE(),xt(),bR(s)){if(s.then(xt,xt),t)return s.then(n=>{Js(e,n,t)}).catch(n=>{HT(n,e,0)});e.asyncDep=s}else Js(e,s,t)}else Go(e,t)}function Js(e,t,E){Te(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:ue(t)&&(e.setupState=To(t)),Go(e,E)}let ks;function Go(e,t,E){const T=e.type;if(!e.render){if(!t&&ks&&!T.render){const r=T.template||$r(e).template;if(r){const{isCustomElement:s,compilerOptions:n}=e.appContext.config,{delimiters:R,compilerOptions:o}=T,A=He(He({isCustomElement:s,delimiters:R},n),o);T.render=ks(r,A)}}e.render=T.render||nt}{nE(e),iE();try{oO(e)}finally{SE(),xt()}}}function xO(e){return e.attrsProxy||(e.attrsProxy=new Proxy(e.attrs,{get(t,E){return we(e,"get","$attrs"),t[E]}}))}function VO(e){const t=E=>{e.exposed=E||{}};return{get attrs(){return xO(e)},slots:e.slots,emit:e.emit,expose:t}}function qr(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(To(mT(e.exposed)),{get(t,E){if(E in t)return t[E];if(E in gE)return gE[E](e)},has(t,E){return E in t||E in gE}}))}function wO(e,t=!0){return Te(e)?e.displayName||e.name:e.name||t&&e.__name}function WO(e){return Te(e)&&"__vccOpts"in e}const ze=(e,t)=>bS(e,t,WE);function XE(e,t,E){const T=arguments.length;return T===2?ue(t)&&!z(t)?_T(t)?$(e,null,[t]):$(e,t):$(e,null,t):(T>3?E=Array.prototype.slice.call(arguments,2):T===3&&_T(E)&&(E=[E]),$(e,t,E))}const XO=Symbol.for("v-scx"),$O=()=>GE(XO),KO="3.3.13",JO="http://www.w3.org/2000/svg",Ft=typeof document<"u"?document:null,js=Ft&&Ft.createElement("template"),kO={insert:(e,t,E)=>{t.insertBefore(e,E||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,E,T)=>{const r=t?Ft.createElementNS(JO,e):Ft.createElement(e,E?{is:E}:void 0);return e==="select"&&T&&T.multiple!=null&&r.setAttribute("multiple",T.multiple),r},createText:e=>Ft.createTextNode(e),createComment:e=>Ft.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Ft.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,E,T,r,s){const n=E?E.previousSibling:t.lastChild;if(r&&(r===s||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),E),!(r===s||!(r=r.nextSibling)););else{js.innerHTML=T?`<svg>${e}</svg>`:e;const R=js.content;if(T){const o=R.firstChild;for(;o.firstChild;)R.appendChild(o.firstChild);R.removeChild(o)}t.insertBefore(R,E)}return[n?n.nextSibling:t.firstChild,E?E.previousSibling:t.lastChild]}},jO=Symbol("_vtc");function qO(e,t,E){const T=e[jO];T&&(t=(t?[t,...T]:[...T]).join(" ")),t==null?e.removeAttribute("class"):E?e.setAttribute("class",t):e.className=t}const QO=Symbol("_vod"),ZO=Symbol("");function zO(e,t,E){const T=e.style,r=Me(E);if(E&&!r){if(t&&!Me(t))for(const s in t)E[s]==null&&Nr(T,s,"");for(const s in E)Nr(T,s,E[s])}else{const s=T.display;if(r){if(t!==E){const n=T[ZO];n&&(E+=";"+n),T.cssText=E}}else t&&e.removeAttribute("style");QO in e&&(T.display=s)}}const qs=/\s*!important$/;function Nr(e,t,E){if(z(E))E.forEach(T=>Nr(e,t,T));else if(E==null&&(E=""),t.startsWith("--"))e.setProperty(t,E);else{const T=ea(e,t);qs.test(E)?e.setProperty(AE(T),E.replace(qs,""),"important"):e[T]=E}}const Qs=["Webkit","Moz","ms"],QT={};function ea(e,t){const E=QT[t];if(E)return E;let T=ot(t);if(T!=="filter"&&T in e)return QT[t]=T;T=hT(T);for(let r=0;r<Qs.length;r++){const s=Qs[r]+T;if(s in e)return QT[t]=s}return t}const Zs="http://www.w3.org/1999/xlink";function ta(e,t,E,T,r){if(T&&t.startsWith("xlink:"))E==null?e.removeAttributeNS(Zs,t.slice(6,t.length)):e.setAttributeNS(Zs,t,E);else{const s=TS(t);E==null||s&&!vR(E)?e.removeAttribute(t):e.setAttribute(t,s?"":E)}}function Ea(e,t,E,T,r,s,n){if(t==="innerHTML"||t==="textContent"){T&&n(T,r,s),e[t]=E??"";return}const R=e.tagName;if(t==="value"&&R!=="PROGRESS"&&!R.includes("-")){e._value=E;const A=R==="OPTION"?e.getAttribute("value"):e.value,i=E??"";A!==i&&(e.value=i),E==null&&e.removeAttribute(t);return}let o=!1;if(E===""||E==null){const A=typeof e[t];A==="boolean"?E=vR(E):E==null&&A==="string"?(E="",o=!0):A==="number"&&(E=0,o=!0)}try{e[t]=E}catch{}o&&e.removeAttribute(t)}function Ta(e,t,E,T){e.addEventListener(t,E,T)}function ra(e,t,E,T){e.removeEventListener(t,E,T)}const zs=Symbol("_vei");function sa(e,t,E,T,r=null){const s=e[zs]||(e[zs]={}),n=s[t];if(T&&n)n.value=T;else{const[R,o]=na(t);if(T){const A=s[t]=Aa(T,r);Ta(e,R,A,o)}else n&&(ra(e,R,n,o),s[t]=void 0)}}const en=/(?:Once|Passive|Capture)$/;function na(e){let t;if(en.test(e)){t={};let T;for(;T=e.match(en);)e=e.slice(0,e.length-T[0].length),t[T[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):AE(e.slice(2)),t]}let ZT=0;const Ra=Promise.resolve(),oa=()=>ZT||(Ra.then(()=>ZT=0),ZT=Date.now());function Aa(e,t){const E=T=>{if(!T._vts)T._vts=Date.now();else if(T._vts<=E.attached)return;et(ia(T,E.value),t,5,[T])};return E.value=e,E.attached=oa(),E}function ia(e,t){if(z(t)){const E=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{E.call(e),e._stopped=!0},t.map(T=>r=>!r._stopped&&T&&T(r))}else return t}const tn=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Sa=(e,t,E,T,r=!1,s,n,R,o)=>{t==="class"?qO(e,T,r):t==="style"?zO(e,E,T):dT(t)?Hr(t)||sa(e,t,E,T,n):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Oa(e,t,T,r))?Ea(e,t,T,s,n,R,o):(t==="true-value"?e._trueValue=T:t==="false-value"&&(e._falseValue=T),ta(e,t,T,r))};function Oa(e,t,E,T){if(T)return!!(t==="innerHTML"||t==="textContent"||t in e&&tn(t)&&Te(E));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const r=e.tagName;if(r==="IMG"||r==="VIDEO"||r==="CANVAS"||r==="SOURCE")return!1}return tn(t)&&Me(E)?!1:t in e}const aa=He({patchProp:Sa},kO);let En;function Ia(){return En||(En=pO(aa))}const Na=(...e)=>{const t=Ia().createApp(...e),{mount:E}=t;return t.mount=T=>{const r=la(T);if(!r)return;const s=t._component;!Te(s)&&!s.render&&!s.template&&(s.template=r.innerHTML),r.innerHTML="";const n=E(r,!1,r instanceof SVGElement);return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),n},t};function la(e){return Me(e)?document.querySelector(e):e}var Tn=De({props:{code:{type:String,required:!0},language:{type:String,default:""},autodetect:{type:Boolean,default:!0},ignoreIllegals:{type:Boolean,default:!0}},setup:function(e){var t=ut(e.language);EE(function(){return e.language},function(r){t.value=r});var E=ze(function(){return e.autodetect||!t.value}),T=ze(function(){return!E.value&&!UE.getLanguage(t.value)});return{className:ze(function(){return T.value?"":"hljs "+t.value}),highlightedCode:ze(function(){var r;if(T.value)return console.warn('The language "'+t.value+'" you specified could not be found.'),e.code.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;");if(E.value){var s=UE.highlightAuto(e.code);return t.value=(r=s.language)!==null&&r!==void 0?r:"",s.value}return(s=UE.highlight(e.code,{language:t.value,ignoreIllegals:e.ignoreIllegals})).value})}},render:function(){return XE("pre",{},[XE("code",{class:this.className,innerHTML:this.highlightedCode})])}}),_a={install:function(e){e.component("highlightjs",Tn)},component:Tn},Ca=!1;/*!
3
- * pinia v2.1.7
4
- * (c) 2023 Eduardo San Martin Morote
1
+ var mA=Object.defineProperty;var HA=(e,t,E)=>t in e?mA(e,t,{enumerable:!0,configurable:!0,writable:!0,value:E}):e[t]=E;var je=(e,t,E)=>HA(e,typeof t!="symbol"?t+"":t,E);var eE=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function yT(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function AR(e){return e instanceof Map?e.clear=e.delete=e.set=function(){throw new Error("map is read-only")}:e instanceof Set&&(e.add=e.clear=e.delete=function(){throw new Error("set is read-only")}),Object.freeze(e),Object.getOwnPropertyNames(e).forEach(t=>{const E=e[t],s=typeof E;(s==="object"||s==="function")&&!Object.isFrozen(E)&&AR(E)}),e}class pr{constructor(t){t.data===void 0&&(t.data={}),this.data=t.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function iR(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;")}function ft(e,...t){const E=Object.create(null);for(const s in e)E[s]=e[s];return t.forEach(function(s){for(const T in s)E[T]=s[T]}),E}const BA="</span>",fr=e=>!!e.scope,bA=(e,{prefix:t})=>{if(e.startsWith("language:"))return e.replace("language:","language-");if(e.includes(".")){const E=e.split(".");return[`${t}${E.shift()}`,...E.map((s,T)=>`${s}${"_".repeat(T+1)}`)].join(" ")}return`${t}${e}`};class yA{constructor(t,E){this.buffer="",this.classPrefix=E.classPrefix,t.walk(this)}addText(t){this.buffer+=iR(t)}openNode(t){if(!fr(t))return;const E=bA(t.scope,{prefix:this.classPrefix});this.span(E)}closeNode(t){fr(t)&&(this.buffer+=BA)}value(){return this.buffer}span(t){this.buffer+=`<span class="${t}">`}}const Dr=(e={})=>{const t={children:[]};return Object.assign(t,e),t};class vT{constructor(){this.rootNode=Dr(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(t){this.top.children.push(t)}openNode(t){const E=Dr({scope:t});this.add(E),this.stack.push(E)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(t){return this.constructor._walk(t,this.rootNode)}static _walk(t,E){return typeof E=="string"?t.addText(E):E.children&&(t.openNode(E),E.children.forEach(s=>this._walk(t,s)),t.closeNode(E)),t}static _collapse(t){typeof t!="string"&&t.children&&(t.children.every(E=>typeof E=="string")?t.children=[t.children.join("")]:t.children.forEach(E=>{vT._collapse(E)}))}}class vA extends vT{constructor(t){super(),this.options=t}addText(t){t!==""&&this.add(t)}startScope(t){this.openNode(t)}endScope(){this.closeNode()}__addSublanguage(t,E){const s=t.root;E&&(s.scope=`language:${E}`),this.add(s)}toHTML(){return new yA(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function hE(e){return e?typeof e=="string"?e:e.source:null}function SR(e){return Xt("(?=",e,")")}function FA(e){return Xt("(?:",e,")*")}function YA(e){return Xt("(?:",e,")?")}function Xt(...e){return e.map(E=>hE(E)).join("")}function VA(e){const t=e[e.length-1];return typeof t=="object"&&t.constructor===Object?(e.splice(e.length-1,1),t):{}}function FT(...e){return"("+(VA(e).capture?"":"?:")+e.map(s=>hE(s)).join("|")+")"}function IR(e){return new RegExp(e.toString()+"|").exec("").length-1}function xA(e,t){const E=e&&e.exec(t);return E&&E.index===0}const wA=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function YT(e,{joinWith:t}){let E=0;return e.map(s=>{E+=1;const T=E;let r=hE(s),n="";for(;r.length>0;){const R=wA.exec(r);if(!R){n+=r;break}n+=r.substring(0,R.index),r=r.substring(R.index+R[0].length),R[0][0]==="\\"&&R[1]?n+="\\"+String(Number(R[1])+T):(n+=R[0],R[0]==="("&&E++)}return n}).map(s=>`(${s})`).join(t)}const WA=/\b\B/,aR="[a-zA-Z]\\w*",VT="[a-zA-Z_]\\w*",NR="\\b\\d+(\\.\\d+)?",lR="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",_R="\\b(0b[01]+)",XA="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",KA=(e={})=>{const t=/^#![ ]*\//;return e.binary&&(e.begin=Xt(t,/.*\b/,e.binary,/\b.*/)),ft({scope:"meta",begin:t,end:/$/,relevance:0,"on:begin":(E,s)=>{E.index!==0&&s.ignoreMatch()}},e)},GE={begin:"\\\\[\\s\\S]",relevance:0},$A={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[GE]},JA={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[GE]},kA={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},_s=function(e,t,E={}){const s=ft({scope:"comment",begin:e,end:t,contains:[]},E);s.contains.push({scope:"doctag",begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});const T=FT("I","a","is","so","us","to","at","if","in","it","on",/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/);return s.contains.push({begin:Xt(/[ ]+/,"(",T,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),s},qA=_s("//","$"),jA=_s("/\\*","\\*/"),QA=_s("#","$"),ZA={scope:"number",begin:NR,relevance:0},zA={scope:"number",begin:lR,relevance:0},ei={scope:"number",begin:_R,relevance:0},ti={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[GE,{begin:/\[/,end:/\]/,relevance:0,contains:[GE]}]},Ei={scope:"title",begin:aR,relevance:0},si={scope:"title",begin:VT,relevance:0},Ti={begin:"\\.\\s*"+VT,relevance:0},ri=function(e){return Object.assign(e,{"on:begin":(t,E)=>{E.data._beginMatch=t[1]},"on:end":(t,E)=>{E.data._beginMatch!==t[1]&&E.ignoreMatch()}})};var WE=Object.freeze({__proto__:null,APOS_STRING_MODE:$A,BACKSLASH_ESCAPE:GE,BINARY_NUMBER_MODE:ei,BINARY_NUMBER_RE:_R,COMMENT:_s,C_BLOCK_COMMENT_MODE:jA,C_LINE_COMMENT_MODE:qA,C_NUMBER_MODE:zA,C_NUMBER_RE:lR,END_SAME_AS_BEGIN:ri,HASH_COMMENT_MODE:QA,IDENT_RE:aR,MATCH_NOTHING_RE:WA,METHOD_GUARD:Ti,NUMBER_MODE:ZA,NUMBER_RE:NR,PHRASAL_WORDS_MODE:kA,QUOTE_STRING_MODE:JA,REGEXP_MODE:ti,RE_STARTERS_RE:XA,SHEBANG:KA,TITLE_MODE:Ei,UNDERSCORE_IDENT_RE:VT,UNDERSCORE_TITLE_MODE:si});function ni(e,t){e.input[e.index-1]==="."&&t.ignoreMatch()}function Ri(e,t){e.className!==void 0&&(e.scope=e.className,delete e.className)}function oi(e,t){t&&e.beginKeywords&&(e.begin="\\b("+e.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",e.__beforeBegin=ni,e.keywords=e.keywords||e.beginKeywords,delete e.beginKeywords,e.relevance===void 0&&(e.relevance=0))}function Ai(e,t){Array.isArray(e.illegal)&&(e.illegal=FT(...e.illegal))}function ii(e,t){if(e.match){if(e.begin||e.end)throw new Error("begin & end are not supported with match");e.begin=e.match,delete e.match}}function Si(e,t){e.relevance===void 0&&(e.relevance=1)}const Oi=(e,t)=>{if(!e.beforeMatch)return;if(e.starts)throw new Error("beforeMatch cannot be used with starts");const E=Object.assign({},e);Object.keys(e).forEach(s=>{delete e[s]}),e.keywords=E.keywords,e.begin=Xt(E.beforeMatch,SR(E.begin)),e.starts={relevance:0,contains:[Object.assign(E,{endsParent:!0})]},e.relevance=0,delete E.beforeMatch},Ii=["of","and","for","in","not","or","if","then","parent","list","value"],ai="keyword";function CR(e,t,E=ai){const s=Object.create(null);return typeof e=="string"?T(E,e.split(" ")):Array.isArray(e)?T(E,e):Object.keys(e).forEach(function(r){Object.assign(s,CR(e[r],t,r))}),s;function T(r,n){t&&(n=n.map(R=>R.toLowerCase())),n.forEach(function(R){const o=R.split("|");s[o[0]]=[r,Ni(o[0],o[1])]})}}function Ni(e,t){return t?Number(t):li(e)?0:1}function li(e){return Ii.includes(e.toLowerCase())}const Pr={},Yt=e=>{console.error(e)},dr=(e,...t)=>{console.log(`WARN: ${e}`,...t)},kt=(e,t)=>{Pr[`${e}/${t}`]||(console.log(`Deprecated as of ${e}. ${t}`),Pr[`${e}/${t}`]=!0)},Es=new Error;function LR(e,t,{key:E}){let s=0;const T=e[E],r={},n={};for(let R=1;R<=t.length;R++)n[R+s]=T[R],r[R+s]=!0,s+=IR(t[R-1]);e[E]=n,e[E]._emit=r,e[E]._multi=!0}function _i(e){if(Array.isArray(e.begin)){if(e.skip||e.excludeBegin||e.returnBegin)throw Yt("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),Es;if(typeof e.beginScope!="object"||e.beginScope===null)throw Yt("beginScope must be object"),Es;LR(e,e.begin,{key:"beginScope"}),e.begin=YT(e.begin,{joinWith:""})}}function Ci(e){if(Array.isArray(e.end)){if(e.skip||e.excludeEnd||e.returnEnd)throw Yt("skip, excludeEnd, returnEnd not compatible with endScope: {}"),Es;if(typeof e.endScope!="object"||e.endScope===null)throw Yt("endScope must be object"),Es;LR(e,e.end,{key:"endScope"}),e.end=YT(e.end,{joinWith:""})}}function Li(e){e.scope&&typeof e.scope=="object"&&e.scope!==null&&(e.beginScope=e.scope,delete e.scope)}function ci(e){Li(e),typeof e.beginScope=="string"&&(e.beginScope={_wrap:e.beginScope}),typeof e.endScope=="string"&&(e.endScope={_wrap:e.endScope}),_i(e),Ci(e)}function ui(e){function t(n,R){return new RegExp(hE(n),"m"+(e.case_insensitive?"i":"")+(e.unicodeRegex?"u":"")+(R?"g":""))}class E{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(R,o){o.position=this.position++,this.matchIndexes[this.matchAt]=o,this.regexes.push([o,R]),this.matchAt+=IR(R)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const R=this.regexes.map(o=>o[1]);this.matcherRe=t(YT(R,{joinWith:"|"}),!0),this.lastIndex=0}exec(R){this.matcherRe.lastIndex=this.lastIndex;const o=this.matcherRe.exec(R);if(!o)return null;const i=o.findIndex((O,N)=>N>0&&O!==void 0),A=this.matchIndexes[i];return o.splice(0,i),Object.assign(o,A)}}class s{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(R){if(this.multiRegexes[R])return this.multiRegexes[R];const o=new E;return this.rules.slice(R).forEach(([i,A])=>o.addRule(i,A)),o.compile(),this.multiRegexes[R]=o,o}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(R,o){this.rules.push([R,o]),o.type==="begin"&&this.count++}exec(R){const o=this.getMatcher(this.regexIndex);o.lastIndex=this.lastIndex;let i=o.exec(R);if(this.resumingScanAtSamePosition()&&!(i&&i.index===this.lastIndex)){const A=this.getMatcher(0);A.lastIndex=this.lastIndex+1,i=A.exec(R)}return i&&(this.regexIndex+=i.position+1,this.regexIndex===this.count&&this.considerAll()),i}}function T(n){const R=new s;return n.contains.forEach(o=>R.addRule(o.begin,{rule:o,type:"begin"})),n.terminatorEnd&&R.addRule(n.terminatorEnd,{type:"end"}),n.illegal&&R.addRule(n.illegal,{type:"illegal"}),R}function r(n,R){const o=n;if(n.isCompiled)return o;[Ri,ii,ci,Oi].forEach(A=>A(n,R)),e.compilerExtensions.forEach(A=>A(n,R)),n.__beforeBegin=null,[oi,Ai,Si].forEach(A=>A(n,R)),n.isCompiled=!0;let i=null;return typeof n.keywords=="object"&&n.keywords.$pattern&&(n.keywords=Object.assign({},n.keywords),i=n.keywords.$pattern,delete n.keywords.$pattern),i=i||/\w+/,n.keywords&&(n.keywords=CR(n.keywords,e.case_insensitive)),o.keywordPatternRe=t(i,!0),R&&(n.begin||(n.begin=/\B|\b/),o.beginRe=t(o.begin),!n.end&&!n.endsWithParent&&(n.end=/\B|\b/),n.end&&(o.endRe=t(o.end)),o.terminatorEnd=hE(o.end)||"",n.endsWithParent&&R.terminatorEnd&&(o.terminatorEnd+=(n.end?"|":"")+R.terminatorEnd)),n.illegal&&(o.illegalRe=t(n.illegal)),n.contains||(n.contains=[]),n.contains=[].concat(...n.contains.map(function(A){return pi(A==="self"?n:A)})),n.contains.forEach(function(A){r(A,o)}),n.starts&&r(n.starts,R),o.matcher=T(o),o}if(e.compilerExtensions||(e.compilerExtensions=[]),e.contains&&e.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return e.classNameAliases=ft(e.classNameAliases||{}),r(e)}function cR(e){return e?e.endsWithParent||cR(e.starts):!1}function pi(e){return e.variants&&!e.cachedVariants&&(e.cachedVariants=e.variants.map(function(t){return ft(e,{variants:null},t)})),e.cachedVariants?e.cachedVariants:cR(e)?ft(e,{starts:e.starts?ft(e.starts):null}):Object.isFrozen(e)?ft(e):e}var fi="11.11.1";class Di extends Error{constructor(t,E){super(t),this.name="HTMLInjectionError",this.html=E}}const Fs=iR,Mr=ft,Ur=Symbol("nomatch"),Pi=7,uR=function(e){const t=Object.create(null),E=Object.create(null),s=[];let T=!0;const r="Could not find the language '{}', did you forget to load/include a language module?",n={disableAutodetect:!0,name:"Plain text",contains:[]};let R={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:vA};function o(c){return R.noHighlightRe.test(c)}function i(c){let G=c.className+" ";G+=c.parentNode?c.parentNode.className:"";const w=R.languageDetectRe.exec(G);if(w){const oe=$(w[1]);return oe||(dr(r.replace("{}",w[1])),dr("Falling back to no-highlight mode for this block.",c)),oe?w[1]:"no-highlight"}return G.split(/\s+/).find(oe=>o(oe)||$(oe))}function A(c,G,w){let oe="",ce="";typeof G=="object"?(oe=c,w=G.ignoreIllegals,ce=G.language):(kt("10.7.0","highlight(lang, code, ...args) has been deprecated."),kt("10.7.0",`Please use highlight(code, options) instead.
2
+ https://github.com/highlightjs/highlight.js/issues/2277`),ce=c,oe=G),w===void 0&&(w=!0);const Pe={code:oe,language:ce};J("before:highlight",Pe);const de=Pe.result?Pe.result:O(Pe.language,Pe.code,w);return de.code=Pe.code,J("after:highlight",de),de}function O(c,G,w,oe){const ce=Object.create(null);function Pe(M,B){return M.keywords[B]}function de(){if(!D.keywords){m.addText(p);return}let M=0;D.keywordPatternRe.lastIndex=0;let B=D.keywordPatternRe.exec(p),V="";for(;B;){V+=p.substring(M,B.index);const se=U.case_insensitive?B[0].toLowerCase():B[0],Oe=Pe(D,se);if(Oe){const[De,qe]=Oe;if(m.addText(V),V="",ce[se]=(ce[se]||0)+1,ce[se]<=Pi&&(q+=qe),De.startsWith("_"))V+=B[0];else{const Bt=U.classNameAliases[De]||De;ke(B[0],Bt)}}else V+=B[0];M=D.keywordPatternRe.lastIndex,B=D.keywordPatternRe.exec(p)}V+=p.substring(M),m.addText(V)}function gt(){if(p==="")return;let M=null;if(typeof D.subLanguage=="string"){if(!t[D.subLanguage]){m.addText(p);return}M=O(D.subLanguage,p,!0,b[D.subLanguage]),b[D.subLanguage]=M._top}else M=l(p,D.subLanguage.length?D.subLanguage:null);D.relevance>0&&(q+=M.relevance),m.__addSublanguage(M._emitter,M.language)}function Ve(){D.subLanguage!=null?gt():de(),p=""}function ke(M,B){M!==""&&(m.startScope(B),m.addText(M),m.endScope())}function _t(M,B){let V=1;const se=B.length-1;for(;V<=se;){if(!M._emit[V]){V++;continue}const Oe=U.classNameAliases[M[V]]||M[V],De=B[V];Oe?ke(De,Oe):(p=De,de(),p=""),V++}}function mt(M,B){return M.scope&&typeof M.scope=="string"&&m.openNode(U.classNameAliases[M.scope]||M.scope),M.beginScope&&(M.beginScope._wrap?(ke(p,U.classNameAliases[M.beginScope._wrap]||M.beginScope._wrap),p=""):M.beginScope._multi&&(_t(M.beginScope,B),p="")),D=Object.create(M,{parent:{value:D}}),D}function Jt(M,B,V){let se=xA(M.endRe,V);if(se){if(M["on:end"]){const Oe=new pr(M);M["on:end"](B,Oe),Oe.isMatchIgnored&&(se=!1)}if(se){for(;M.endsParent&&M.parent;)M=M.parent;return M}}if(M.endsWithParent)return Jt(M.parent,B,V)}function wE(M){return D.matcher.regexIndex===0?(p+=M[0],1):(Z=!0,0)}function Ht(M){const B=M[0],V=M.rule,se=new pr(V),Oe=[V.__beforeBegin,V["on:begin"]];for(const De of Oe)if(De&&(De(M,se),se.isMatchIgnored))return wE(B);return V.skip?p+=B:(V.excludeBegin&&(p+=B),Ve(),!V.returnBegin&&!V.excludeBegin&&(p=B)),mt(V,M),V.returnBegin?0:B.length}function Lr(M){const B=M[0],V=G.substring(M.index),se=Jt(D,M,V);if(!se)return Ur;const Oe=D;D.endScope&&D.endScope._wrap?(Ve(),ke(B,D.endScope._wrap)):D.endScope&&D.endScope._multi?(Ve(),_t(D.endScope,M)):Oe.skip?p+=B:(Oe.returnEnd||Oe.excludeEnd||(p+=B),Ve(),Oe.excludeEnd&&(p=B));do D.scope&&m.closeNode(),!D.skip&&!D.subLanguage&&(q+=D.relevance),D=D.parent;while(D!==se.parent);return se.starts&&mt(se.starts,M),Oe.returnEnd?0:B.length}function I(){const M=[];for(let B=D;B!==U;B=B.parent)B.scope&&M.unshift(B.scope);M.forEach(B=>m.openNode(B))}let a={};function L(M,B){const V=B&&B[0];if(p+=M,V==null)return Ve(),0;if(a.type==="begin"&&B.type==="end"&&a.index===B.index&&V===""){if(p+=G.slice(B.index,B.index+1),!T){const se=new Error(`0 width match regex (${c})`);throw se.languageName=c,se.badRule=a.rule,se}return 1}if(a=B,B.type==="begin")return Ht(B);if(B.type==="illegal"&&!w){const se=new Error('Illegal lexeme "'+V+'" for mode "'+(D.scope||"<unnamed>")+'"');throw se.mode=D,se}else if(B.type==="end"){const se=Lr(B);if(se!==Ur)return se}if(B.type==="illegal"&&V==="")return p+=`
3
+ `,1;if(K>1e5&&K>B.index*3)throw new Error("potential infinite loop, way more iterations than matches");return p+=V,V.length}const U=$(c);if(!U)throw Yt(r.replace("{}",c)),new Error('Unknown language: "'+c+'"');const h=ui(U);let g="",D=oe||h;const b={},m=new R.__emitter(R);I();let p="",q=0,v=0,K=0,Z=!1;try{if(U.__emitTokens)U.__emitTokens(G,m);else{for(D.matcher.considerAll();;){K++,Z?Z=!1:D.matcher.considerAll(),D.matcher.lastIndex=v;const M=D.matcher.exec(G);if(!M)break;const B=G.substring(v,M.index),V=L(B,M);v=M.index+V}L(G.substring(v))}return m.finalize(),g=m.toHTML(),{language:c,value:g,relevance:q,illegal:!1,_emitter:m,_top:D}}catch(M){if(M.message&&M.message.includes("Illegal"))return{language:c,value:Fs(G),illegal:!0,relevance:0,_illegalBy:{message:M.message,index:v,context:G.slice(v-100,v+100),mode:M.mode,resultSoFar:g},_emitter:m};if(T)return{language:c,value:Fs(G),illegal:!1,relevance:0,errorRaised:M,_emitter:m,_top:D};throw M}}function N(c){const G={value:Fs(c),illegal:!1,relevance:0,_top:n,_emitter:new R.__emitter(R)};return G._emitter.addText(c),G}function l(c,G){G=G||R.languages||Object.keys(t);const w=N(c),oe=G.filter($).filter(_).map(Ve=>O(Ve,c,!1));oe.unshift(w);const ce=oe.sort((Ve,ke)=>{if(Ve.relevance!==ke.relevance)return ke.relevance-Ve.relevance;if(Ve.language&&ke.language){if($(Ve.language).supersetOf===ke.language)return 1;if($(ke.language).supersetOf===Ve.language)return-1}return 0}),[Pe,de]=ce,gt=Pe;return gt.secondBest=de,gt}function C(c,G,w){const oe=G&&E[G]||w;c.classList.add("hljs"),c.classList.add(`language-${oe}`)}function H(c){let G=null;const w=i(c);if(o(w))return;if(J("before:highlightElement",{el:c,language:w}),c.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",c);return}if(c.children.length>0&&(R.ignoreUnescapedHTML||(console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."),console.warn("https://github.com/highlightjs/highlight.js/wiki/security"),console.warn("The element with unescaped HTML:"),console.warn(c)),R.throwUnescapedHTML))throw new Di("One of your code blocks includes unescaped HTML.",c.innerHTML);G=c;const oe=G.textContent,ce=w?A(oe,{language:w,ignoreIllegals:!0}):l(oe);c.innerHTML=ce.value,c.dataset.highlighted="yes",C(c,w,ce.language),c.result={language:ce.language,re:ce.relevance,relevance:ce.relevance},ce.secondBest&&(c.secondBest={language:ce.secondBest.language,relevance:ce.secondBest.relevance}),J("after:highlightElement",{el:c,result:ce,text:oe})}function Q(c){R=Mr(R,c)}const W=()=>{x(),kt("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function j(){x(),kt("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let ee=!1;function x(){function c(){x()}if(document.readyState==="loading"){ee||window.addEventListener("DOMContentLoaded",c,!1),ee=!0;return}document.querySelectorAll(R.cssSelector).forEach(H)}function k(c,G){let w=null;try{w=G(e)}catch(oe){if(Yt("Language definition for '{}' could not be registered.".replace("{}",c)),T)Yt(oe);else throw oe;w=n}w.name||(w.name=c),t[c]=w,w.rawDefinition=G.bind(null,e),w.aliases&&X(w.aliases,{languageName:c})}function Ie(c){delete t[c];for(const G of Object.keys(E))E[G]===c&&delete E[G]}function ie(){return Object.keys(t)}function $(c){return c=(c||"").toLowerCase(),t[c]||t[E[c]]}function X(c,{languageName:G}){typeof c=="string"&&(c=[c]),c.forEach(w=>{E[w.toLowerCase()]=G})}function _(c){const G=$(c);return G&&!G.disableAutodetect}function d(c){c["before:highlightBlock"]&&!c["before:highlightElement"]&&(c["before:highlightElement"]=G=>{c["before:highlightBlock"](Object.assign({block:G.el},G))}),c["after:highlightBlock"]&&!c["after:highlightElement"]&&(c["after:highlightElement"]=G=>{c["after:highlightBlock"](Object.assign({block:G.el},G))})}function f(c){d(c),s.push(c)}function Y(c){const G=s.indexOf(c);G!==-1&&s.splice(G,1)}function J(c,G){const w=c;s.forEach(function(oe){oe[w]&&oe[w](G)})}function Me(c){return kt("10.7.0","highlightBlock will be removed entirely in v12.0"),kt("10.7.0","Please use highlightElement now."),H(c)}Object.assign(e,{highlight:A,highlightAuto:l,highlightAll:x,highlightElement:H,highlightBlock:Me,configure:Q,initHighlighting:W,initHighlightingOnLoad:j,registerLanguage:k,unregisterLanguage:Ie,listLanguages:ie,getLanguage:$,registerAliases:X,autoDetection:_,inherit:Mr,addPlugin:f,removePlugin:Y}),e.debugMode=function(){T=!1},e.safeMode=function(){T=!0},e.versionString=fi,e.regex={concat:Xt,lookahead:SR,either:FT,optional:YA,anyNumberOfTimes:FA};for(const c in WE)typeof WE[c]=="object"&&AR(WE[c]);return Object.assign(e,WE),e},nE=uR({});nE.newInstance=()=>uR({});var di=nE;nE.HighlightJS=nE;nE.default=nE;const LE=yT(di);function Mi(e){const t=e.regex,E=e.COMMENT("--","$"),s={scope:"string",variants:[{begin:/'/,end:/'/,contains:[{match:/''/}]}]},T={begin:/"/,end:/"/,contains:[{match:/""/}]},r=["true","false","unknown"],n=["double precision","large object","with timezone","without timezone"],R=["bigint","binary","blob","boolean","char","character","clob","date","dec","decfloat","decimal","float","int","integer","interval","nchar","nclob","national","numeric","real","row","smallint","time","timestamp","varchar","varying","varbinary"],o=["add","asc","collation","desc","final","first","last","view"],i=["abs","acos","all","allocate","alter","and","any","are","array","array_agg","array_max_cardinality","as","asensitive","asin","asymmetric","at","atan","atomic","authorization","avg","begin","begin_frame","begin_partition","between","bigint","binary","blob","boolean","both","by","call","called","cardinality","cascaded","case","cast","ceil","ceiling","char","char_length","character","character_length","check","classifier","clob","close","coalesce","collate","collect","column","commit","condition","connect","constraint","contains","convert","copy","corr","corresponding","cos","cosh","count","covar_pop","covar_samp","create","cross","cube","cume_dist","current","current_catalog","current_date","current_default_transform_group","current_path","current_role","current_row","current_schema","current_time","current_timestamp","current_path","current_role","current_transform_group_for_type","current_user","cursor","cycle","date","day","deallocate","dec","decimal","decfloat","declare","default","define","delete","dense_rank","deref","describe","deterministic","disconnect","distinct","double","drop","dynamic","each","element","else","empty","end","end_frame","end_partition","end-exec","equals","escape","every","except","exec","execute","exists","exp","external","extract","false","fetch","filter","first_value","float","floor","for","foreign","frame_row","free","from","full","function","fusion","get","global","grant","group","grouping","groups","having","hold","hour","identity","in","indicator","initial","inner","inout","insensitive","insert","int","integer","intersect","intersection","interval","into","is","join","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","language","large","last_value","lateral","lead","leading","left","like","like_regex","listagg","ln","local","localtime","localtimestamp","log","log10","lower","match","match_number","match_recognize","matches","max","member","merge","method","min","minute","mod","modifies","module","month","multiset","national","natural","nchar","nclob","new","no","none","normalize","not","nth_value","ntile","null","nullif","numeric","octet_length","occurrences_regex","of","offset","old","omit","on","one","only","open","or","order","out","outer","over","overlaps","overlay","parameter","partition","pattern","per","percent","percent_rank","percentile_cont","percentile_disc","period","portion","position","position_regex","power","precedes","precision","prepare","primary","procedure","ptf","range","rank","reads","real","recursive","ref","references","referencing","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","release","result","return","returns","revoke","right","rollback","rollup","row","row_number","rows","running","savepoint","scope","scroll","search","second","seek","select","sensitive","session_user","set","show","similar","sin","sinh","skip","smallint","some","specific","specifictype","sql","sqlexception","sqlstate","sqlwarning","sqrt","start","static","stddev_pop","stddev_samp","submultiset","subset","substring","substring_regex","succeeds","sum","symmetric","system","system_time","system_user","table","tablesample","tan","tanh","then","time","timestamp","timezone_hour","timezone_minute","to","trailing","translate","translate_regex","translation","treat","trigger","trim","trim_array","true","truncate","uescape","union","unique","unknown","unnest","update","upper","user","using","value","values","value_of","var_pop","var_samp","varbinary","varchar","varying","versioning","when","whenever","where","width_bucket","window","with","within","without","year"],A=["abs","acos","array_agg","asin","atan","avg","cast","ceil","ceiling","coalesce","corr","cos","cosh","count","covar_pop","covar_samp","cume_dist","dense_rank","deref","element","exp","extract","first_value","floor","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","last_value","lead","listagg","ln","log","log10","lower","max","min","mod","nth_value","ntile","nullif","percent_rank","percentile_cont","percentile_disc","position","position_regex","power","rank","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","row_number","sin","sinh","sqrt","stddev_pop","stddev_samp","substring","substring_regex","sum","tan","tanh","translate","translate_regex","treat","trim","trim_array","unnest","upper","value_of","var_pop","var_samp","width_bucket"],O=["current_catalog","current_date","current_default_transform_group","current_path","current_role","current_schema","current_transform_group_for_type","current_user","session_user","system_time","system_user","current_time","localtime","current_timestamp","localtimestamp"],N=["create table","insert into","primary key","foreign key","not null","alter table","add constraint","grouping sets","on overflow","character set","respect nulls","ignore nulls","nulls first","nulls last","depth first","breadth first"],l=A,C=[...i,...o].filter(k=>!A.includes(k)),H={scope:"variable",match:/@[a-z0-9][a-z0-9_]*/},Q={scope:"operator",match:/[-+*/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?/,relevance:0},W={match:t.concat(/\b/,t.either(...l),/\s*\(/),relevance:0,keywords:{built_in:l}};function j(k){return t.concat(/\b/,t.either(...k.map(Ie=>Ie.replace(/\s+/,"\\s+"))),/\b/)}const ee={scope:"keyword",match:j(N),relevance:0};function x(k,{exceptions:Ie,when:ie}={}){const $=ie;return Ie=Ie||[],k.map(X=>X.match(/\|\d+$/)||Ie.includes(X)?X:$(X)?`${X}|0`:X)}return{name:"SQL",case_insensitive:!0,illegal:/[{}]|<\//,keywords:{$pattern:/\b[\w\.]+/,keyword:x(C,{when:k=>k.length<3}),literal:r,type:R,built_in:O},contains:[{scope:"type",match:j(n)},ee,W,H,s,T,e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE,E,Q]}}function Ui(e){const t={className:"attr",begin:/"(\\.|[^\\"\r\n])*"(?=\s*:)/,relevance:1.01},E={match:/[{}[\],:]/,className:"punctuation",relevance:0},s=["true","false","null"],T={scope:"literal",beginKeywords:s.join(" ")};return{name:"JSON",aliases:["jsonc"],keywords:{literal:s},contains:[t,E,e.QUOTE_STRING_MODE,T,e.C_NUMBER_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE],illegal:"\\S"}}/**
4
+ * @vue/shared v3.5.13
5
+ * (c) 2018-present Yuxi (Evan) You and Vue contributors
6
+ * @license MIT
7
+ **//*! #__NO_SIDE_EFFECTS__ */function xT(e){const t=Object.create(null);for(const E of e.split(","))t[E]=1;return E=>E in t}const Ce={},tE=[],it=()=>{},hi=()=>!1,Cs=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),wT=e=>e.startsWith("onUpdate:"),Fe=Object.assign,WT=(e,t)=>{const E=e.indexOf(t);E>-1&&e.splice(E,1)},Gi=Object.prototype.hasOwnProperty,ae=(e,t)=>Gi.call(e,t),te=Array.isArray,EE=e=>Ls(e)==="[object Map]",pR=e=>Ls(e)==="[object Set]",re=e=>typeof e=="function",fe=e=>typeof e=="string",Nt=e=>typeof e=="symbol",ue=e=>e!==null&&typeof e=="object",fR=e=>(ue(e)||re(e))&&re(e.then)&&re(e.catch),DR=Object.prototype.toString,Ls=e=>DR.call(e),gi=e=>Ls(e).slice(8,-1),PR=e=>Ls(e)==="[object Object]",XT=e=>fe(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,cE=xT(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),cs=e=>{const t=Object.create(null);return E=>t[E]||(t[E]=e(E))},mi=/-(\w)/g,ze=cs(e=>e.replace(mi,(t,E)=>E?E.toUpperCase():"")),Hi=/\B([A-Z])/g,Kt=cs(e=>e.replace(Hi,"-$1").toLowerCase()),us=cs(e=>e.charAt(0).toUpperCase()+e.slice(1)),Ys=cs(e=>e?`on${us(e)}`:""),Dt=(e,t)=>!Object.is(e,t),Vs=(e,...t)=>{for(let E=0;E<e.length;E++)e[E](...t)},dR=(e,t,E,s=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:s,value:E})},Bi=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let hr;const ps=()=>hr||(hr=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function fs(e){if(te(e)){const t={};for(let E=0;E<e.length;E++){const s=e[E],T=fe(s)?Fi(s):fs(s);if(T)for(const r in T)t[r]=T[r]}return t}else if(fe(e)||ue(e))return e}const bi=/;(?![^(]*\))/g,yi=/:([^]+)/,vi=/\/\*[^]*?\*\//g;function Fi(e){const t={};return e.replace(vi,"").split(bi).forEach(E=>{if(E){const s=E.split(yi);s.length>1&&(t[s[0].trim()]=s[1].trim())}}),t}function ge(e){let t="";if(fe(e))t=e;else if(te(e))for(let E=0;E<e.length;E++){const s=ge(e[E]);s&&(t+=s+" ")}else if(ue(e))for(const E in e)e[E]&&(t+=E+" ");return t.trim()}const Yi="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",Vi=xT(Yi);function MR(e){return!!e||e===""}const UR=e=>!!(e&&e.__v_isRef===!0),ne=e=>fe(e)?e:e==null?"":te(e)||ue(e)&&(e.toString===DR||!re(e.toString))?UR(e)?ne(e.value):JSON.stringify(e,hR,2):String(e),hR=(e,t)=>UR(t)?hR(e,t.value):EE(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((E,[s,T],r)=>(E[xs(s,r)+" =>"]=T,E),{})}:pR(t)?{[`Set(${t.size})`]:[...t.values()].map(E=>xs(E))}:Nt(t)?xs(t):ue(t)&&!te(t)&&!PR(t)?String(t):t,xs=(e,t="")=>{var E;return Nt(e)?`Symbol(${(E=e.description)!=null?E:t})`:e};/**
8
+ * @vue/reactivity v3.5.13
9
+ * (c) 2018-present Yuxi (Evan) You and Vue contributors
10
+ * @license MIT
11
+ **/let We;class GR{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=We,!t&&We&&(this.index=(We.scopes||(We.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,E;if(this.scopes)for(t=0,E=this.scopes.length;t<E;t++)this.scopes[t].pause();for(t=0,E=this.effects.length;t<E;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,E;if(this.scopes)for(t=0,E=this.scopes.length;t<E;t++)this.scopes[t].resume();for(t=0,E=this.effects.length;t<E;t++)this.effects[t].resume()}}run(t){if(this._active){const E=We;try{return We=this,t()}finally{We=E}}}on(){We=this}off(){We=this.parent}stop(t){if(this._active){this._active=!1;let E,s;for(E=0,s=this.effects.length;E<s;E++)this.effects[E].stop();for(this.effects.length=0,E=0,s=this.cleanups.length;E<s;E++)this.cleanups[E]();if(this.cleanups.length=0,this.scopes){for(E=0,s=this.scopes.length;E<s;E++)this.scopes[E].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const T=this.parent.scopes.pop();T&&T!==this&&(this.parent.scopes[this.index]=T,T.index=this.index)}this.parent=void 0}}}function gR(e){return new GR(e)}function mR(){return We}function xi(e,t=!1){We&&We.cleanups.push(e)}let _e;const ws=new WeakSet;class HR{constructor(t){this.fn=t,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,We&&We.active&&We.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,ws.has(this)&&(ws.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||bR(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,Gr(this),yR(this);const t=_e,E=Et;_e=this,Et=!0;try{return this.fn()}finally{vR(this),_e=t,Et=E,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)JT(t);this.deps=this.depsTail=void 0,Gr(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?ws.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){CT(this)&&this.run()}get dirty(){return CT(this)}}let BR=0,uE,pE;function bR(e,t=!1){if(e.flags|=8,t){e.next=pE,pE=e;return}e.next=uE,uE=e}function KT(){BR++}function $T(){if(--BR>0)return;if(pE){let t=pE;for(pE=void 0;t;){const E=t.next;t.next=void 0,t.flags&=-9,t=E}}let e;for(;uE;){let t=uE;for(uE=void 0;t;){const E=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(s){e||(e=s)}t=E}}if(e)throw e}function yR(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function vR(e){let t,E=e.depsTail,s=E;for(;s;){const T=s.prevDep;s.version===-1?(s===E&&(E=T),JT(s),wi(s)):t=s,s.dep.activeLink=s.prevActiveLink,s.prevActiveLink=void 0,s=T}e.deps=t,e.depsTail=E}function CT(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(FR(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function FR(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===gE))return;e.globalVersion=gE;const t=e.dep;if(e.flags|=2,t.version>0&&!e.isSSR&&e.deps&&!CT(e)){e.flags&=-3;return}const E=_e,s=Et;_e=e,Et=!0;try{yR(e);const T=e.fn(e._value);(t.version===0||Dt(T,e._value))&&(e._value=T,t.version++)}catch(T){throw t.version++,T}finally{_e=E,Et=s,vR(e),e.flags&=-3}}function JT(e,t=!1){const{dep:E,prevSub:s,nextSub:T}=e;if(s&&(s.nextSub=T,e.prevSub=void 0),T&&(T.prevSub=s,e.nextSub=void 0),E.subs===e&&(E.subs=s,!s&&E.computed)){E.computed.flags&=-5;for(let r=E.computed.deps;r;r=r.nextDep)JT(r,!0)}!t&&!--E.sc&&E.map&&E.map.delete(E.key)}function wi(e){const{prevDep:t,nextDep:E}=e;t&&(t.nextDep=E,e.prevDep=void 0),E&&(E.prevDep=t,e.nextDep=void 0)}let Et=!0;const YR=[];function Mt(){YR.push(Et),Et=!1}function Ut(){const e=YR.pop();Et=e===void 0?!0:e}function Gr(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const E=_e;_e=void 0;try{t()}finally{_e=E}}}let gE=0;class Wi{constructor(t,E){this.sub=t,this.dep=E,this.version=E.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class kT{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0}track(t){if(!_e||!Et||_e===this.computed)return;let E=this.activeLink;if(E===void 0||E.sub!==_e)E=this.activeLink=new Wi(_e,this),_e.deps?(E.prevDep=_e.depsTail,_e.depsTail.nextDep=E,_e.depsTail=E):_e.deps=_e.depsTail=E,VR(E);else if(E.version===-1&&(E.version=this.version,E.nextDep)){const s=E.nextDep;s.prevDep=E.prevDep,E.prevDep&&(E.prevDep.nextDep=s),E.prevDep=_e.depsTail,E.nextDep=void 0,_e.depsTail.nextDep=E,_e.depsTail=E,_e.deps===E&&(_e.deps=s)}return E}trigger(t){this.version++,gE++,this.notify(t)}notify(t){KT();try{for(let E=this.subs;E;E=E.prevSub)E.sub.notify()&&E.sub.dep.notify()}finally{$T()}}}function VR(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let s=t.deps;s;s=s.nextDep)VR(s)}const E=e.dep.subs;E!==e&&(e.prevSub=E,E&&(E.nextSub=e)),e.dep.subs=e}}const ss=new WeakMap,Vt=Symbol(""),LT=Symbol(""),mE=Symbol("");function Be(e,t,E){if(Et&&_e){let s=ss.get(e);s||ss.set(e,s=new Map);let T=s.get(E);T||(s.set(E,T=new kT),T.map=s,T.key=E),T.track()}}function at(e,t,E,s,T,r){const n=ss.get(e);if(!n){gE++;return}const R=o=>{o&&o.trigger()};if(KT(),t==="clear")n.forEach(R);else{const o=te(e),i=o&&XT(E);if(o&&E==="length"){const A=Number(s);n.forEach((O,N)=>{(N==="length"||N===mE||!Nt(N)&&N>=A)&&R(O)})}else switch((E!==void 0||n.has(void 0))&&R(n.get(E)),i&&R(n.get(mE)),t){case"add":o?i&&R(n.get("length")):(R(n.get(Vt)),EE(e)&&R(n.get(LT)));break;case"delete":o||(R(n.get(Vt)),EE(e)&&R(n.get(LT)));break;case"set":EE(e)&&R(n.get(Vt));break}}$T()}function Xi(e,t){const E=ss.get(e);return E&&E.get(t)}function qt(e){const t=Se(e);return t===e?t:(Be(t,"iterate",mE),Ze(e)?t:t.map(be))}function Ds(e){return Be(e=Se(e),"iterate",mE),e}const Ki={__proto__:null,[Symbol.iterator](){return Ws(this,Symbol.iterator,be)},concat(...e){return qt(this).concat(...e.map(t=>te(t)?qt(t):t))},entries(){return Ws(this,"entries",e=>(e[1]=be(e[1]),e))},every(e,t){return Ot(this,"every",e,t,void 0,arguments)},filter(e,t){return Ot(this,"filter",e,t,E=>E.map(be),arguments)},find(e,t){return Ot(this,"find",e,t,be,arguments)},findIndex(e,t){return Ot(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return Ot(this,"findLast",e,t,be,arguments)},findLastIndex(e,t){return Ot(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return Ot(this,"forEach",e,t,void 0,arguments)},includes(...e){return Xs(this,"includes",e)},indexOf(...e){return Xs(this,"indexOf",e)},join(e){return qt(this).join(e)},lastIndexOf(...e){return Xs(this,"lastIndexOf",e)},map(e,t){return Ot(this,"map",e,t,void 0,arguments)},pop(){return NE(this,"pop")},push(...e){return NE(this,"push",e)},reduce(e,...t){return gr(this,"reduce",e,t)},reduceRight(e,...t){return gr(this,"reduceRight",e,t)},shift(){return NE(this,"shift")},some(e,t){return Ot(this,"some",e,t,void 0,arguments)},splice(...e){return NE(this,"splice",e)},toReversed(){return qt(this).toReversed()},toSorted(e){return qt(this).toSorted(e)},toSpliced(...e){return qt(this).toSpliced(...e)},unshift(...e){return NE(this,"unshift",e)},values(){return Ws(this,"values",be)}};function Ws(e,t,E){const s=Ds(e),T=s[t]();return s!==e&&!Ze(e)&&(T._next=T.next,T.next=()=>{const r=T._next();return r.value&&(r.value=E(r.value)),r}),T}const $i=Array.prototype;function Ot(e,t,E,s,T,r){const n=Ds(e),R=n!==e&&!Ze(e),o=n[t];if(o!==$i[t]){const O=o.apply(e,r);return R?be(O):O}let i=E;n!==e&&(R?i=function(O,N){return E.call(this,be(O),N,e)}:E.length>2&&(i=function(O,N){return E.call(this,O,N,e)}));const A=o.call(n,i,s);return R&&T?T(A):A}function gr(e,t,E,s){const T=Ds(e);let r=E;return T!==e&&(Ze(e)?E.length>3&&(r=function(n,R,o){return E.call(this,n,R,o,e)}):r=function(n,R,o){return E.call(this,n,be(R),o,e)}),T[t](r,...s)}function Xs(e,t,E){const s=Se(e);Be(s,"iterate",mE);const T=s[t](...E);return(T===-1||T===!1)&&QT(E[0])?(E[0]=Se(E[0]),s[t](...E)):T}function NE(e,t,E=[]){Mt(),KT();const s=Se(e)[t].apply(e,E);return $T(),Ut(),s}const Ji=xT("__proto__,__v_isRef,__isVue"),xR=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Nt));function ki(e){Nt(e)||(e=String(e));const t=Se(this);return Be(t,"has",e),t.hasOwnProperty(e)}class wR{constructor(t=!1,E=!1){this._isReadonly=t,this._isShallow=E}get(t,E,s){if(E==="__v_skip")return t.__v_skip;const T=this._isReadonly,r=this._isShallow;if(E==="__v_isReactive")return!T;if(E==="__v_isReadonly")return T;if(E==="__v_isShallow")return r;if(E==="__v_raw")return s===(T?r?TS:$R:r?KR:XR).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(s)?t:void 0;const n=te(t);if(!T){let o;if(n&&(o=Ki[E]))return o;if(E==="hasOwnProperty")return ki}const R=Reflect.get(t,E,pe(t)?t:s);return(Nt(E)?xR.has(E):Ji(E))||(T||Be(t,"get",E),r)?R:pe(R)?n&&XT(E)?R:R.value:ue(R)?T?JR(R):rt(R):R}}class WR extends wR{constructor(t=!1){super(!1,t)}set(t,E,s,T){let r=t[E];if(!this._isShallow){const o=wt(r);if(!Ze(s)&&!wt(s)&&(r=Se(r),s=Se(s)),!te(t)&&pe(r)&&!pe(s))return o?!1:(r.value=s,!0)}const n=te(t)&&XT(E)?Number(E)<t.length:ae(t,E),R=Reflect.set(t,E,s,pe(t)?t:T);return t===Se(T)&&(n?Dt(s,r)&&at(t,"set",E,s):at(t,"add",E,s)),R}deleteProperty(t,E){const s=ae(t,E);t[E];const T=Reflect.deleteProperty(t,E);return T&&s&&at(t,"delete",E,void 0),T}has(t,E){const s=Reflect.has(t,E);return(!Nt(E)||!xR.has(E))&&Be(t,"has",E),s}ownKeys(t){return Be(t,"iterate",te(t)?"length":Vt),Reflect.ownKeys(t)}}class qi extends wR{constructor(t=!1){super(!0,t)}set(t,E){return!0}deleteProperty(t,E){return!0}}const ji=new WR,Qi=new qi,Zi=new WR(!0);const cT=e=>e,XE=e=>Reflect.getPrototypeOf(e);function zi(e,t,E){return function(...s){const T=this.__v_raw,r=Se(T),n=EE(r),R=e==="entries"||e===Symbol.iterator&&n,o=e==="keys"&&n,i=T[e](...s),A=E?cT:t?uT:be;return!t&&Be(r,"iterate",o?LT:Vt),{next(){const{value:O,done:N}=i.next();return N?{value:O,done:N}:{value:R?[A(O[0]),A(O[1])]:A(O),done:N}},[Symbol.iterator](){return this}}}}function KE(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function eS(e,t){const E={get(T){const r=this.__v_raw,n=Se(r),R=Se(T);e||(Dt(T,R)&&Be(n,"get",T),Be(n,"get",R));const{has:o}=XE(n),i=t?cT:e?uT:be;if(o.call(n,T))return i(r.get(T));if(o.call(n,R))return i(r.get(R));r!==n&&r.get(T)},get size(){const T=this.__v_raw;return!e&&Be(Se(T),"iterate",Vt),Reflect.get(T,"size",T)},has(T){const r=this.__v_raw,n=Se(r),R=Se(T);return e||(Dt(T,R)&&Be(n,"has",T),Be(n,"has",R)),T===R?r.has(T):r.has(T)||r.has(R)},forEach(T,r){const n=this,R=n.__v_raw,o=Se(R),i=t?cT:e?uT:be;return!e&&Be(o,"iterate",Vt),R.forEach((A,O)=>T.call(r,i(A),i(O),n))}};return Fe(E,e?{add:KE("add"),set:KE("set"),delete:KE("delete"),clear:KE("clear")}:{add(T){!t&&!Ze(T)&&!wt(T)&&(T=Se(T));const r=Se(this);return XE(r).has.call(r,T)||(r.add(T),at(r,"add",T,T)),this},set(T,r){!t&&!Ze(r)&&!wt(r)&&(r=Se(r));const n=Se(this),{has:R,get:o}=XE(n);let i=R.call(n,T);i||(T=Se(T),i=R.call(n,T));const A=o.call(n,T);return n.set(T,r),i?Dt(r,A)&&at(n,"set",T,r):at(n,"add",T,r),this},delete(T){const r=Se(this),{has:n,get:R}=XE(r);let o=n.call(r,T);o||(T=Se(T),o=n.call(r,T)),R&&R.call(r,T);const i=r.delete(T);return o&&at(r,"delete",T,void 0),i},clear(){const T=Se(this),r=T.size!==0,n=T.clear();return r&&at(T,"clear",void 0,void 0),n}}),["keys","values","entries",Symbol.iterator].forEach(T=>{E[T]=zi(T,e,t)}),E}function qT(e,t){const E=eS(e,t);return(s,T,r)=>T==="__v_isReactive"?!e:T==="__v_isReadonly"?e:T==="__v_raw"?s:Reflect.get(ae(E,T)&&T in s?E:s,T,r)}const tS={get:qT(!1,!1)},ES={get:qT(!1,!0)},sS={get:qT(!0,!1)};const XR=new WeakMap,KR=new WeakMap,$R=new WeakMap,TS=new WeakMap;function rS(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function nS(e){return e.__v_skip||!Object.isExtensible(e)?0:rS(gi(e))}function rt(e){return wt(e)?e:jT(e,!1,ji,tS,XR)}function RS(e){return jT(e,!1,Zi,ES,KR)}function JR(e){return jT(e,!0,Qi,sS,$R)}function jT(e,t,E,s,T){if(!ue(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const r=T.get(e);if(r)return r;const n=nS(e);if(n===0)return e;const R=new Proxy(e,n===2?s:E);return T.set(e,R),R}function Pt(e){return wt(e)?Pt(e.__v_raw):!!(e&&e.__v_isReactive)}function wt(e){return!!(e&&e.__v_isReadonly)}function Ze(e){return!!(e&&e.__v_isShallow)}function QT(e){return e?!!e.__v_raw:!1}function Se(e){const t=e&&e.__v_raw;return t?Se(t):e}function ZT(e){return!ae(e,"__v_skip")&&Object.isExtensible(e)&&dR(e,"__v_skip",!0),e}const be=e=>ue(e)?rt(e):e,uT=e=>ue(e)?JR(e):e;function pe(e){return e?e.__v_isRef===!0:!1}function Qe(e){return oS(e,!1)}function oS(e,t){return pe(e)?e:new AS(e,t)}class AS{constructor(t,E){this.dep=new kT,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=E?t:Se(t),this._value=E?t:be(t),this.__v_isShallow=E}get value(){return this.dep.track(),this._value}set value(t){const E=this._rawValue,s=this.__v_isShallow||Ze(t)||wt(t);t=s?t:Se(t),Dt(t,E)&&(this._rawValue=t,this._value=s?t:be(t),this.dep.trigger())}}function Re(e){return pe(e)?e.value:e}const iS={get:(e,t,E)=>t==="__v_raw"?e:Re(Reflect.get(e,t,E)),set:(e,t,E,s)=>{const T=e[t];return pe(T)&&!pe(E)?(T.value=E,!0):Reflect.set(e,t,E,s)}};function kR(e){return Pt(e)?e:new Proxy(e,iS)}function SS(e){const t=te(e)?new Array(e.length):{};for(const E in e)t[E]=IS(e,E);return t}class OS{constructor(t,E,s){this._object=t,this._key=E,this._defaultValue=s,this.__v_isRef=!0,this._value=void 0}get value(){const t=this._object[this._key];return this._value=t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return Xi(Se(this._object),this._key)}}function IS(e,t,E){const s=e[t];return pe(s)?s:new OS(e,t,E)}class aS{constructor(t,E,s){this.fn=t,this.setter=E,this._value=void 0,this.dep=new kT(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=gE-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!E,this.isSSR=s}notify(){if(this.flags|=16,!(this.flags&8)&&_e!==this)return bR(this,!0),!0}get value(){const t=this.dep.track();return FR(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function NS(e,t,E=!1){let s,T;return re(e)?s=e:(s=e.get,T=e.set),new aS(s,T,E)}const $E={},Ts=new WeakMap;let Ft;function lS(e,t=!1,E=Ft){if(E){let s=Ts.get(E);s||Ts.set(E,s=[]),s.push(e)}}function _S(e,t,E=Ce){const{immediate:s,deep:T,once:r,scheduler:n,augmentJob:R,call:o}=E,i=x=>T?x:Ze(x)||T===!1||T===0?pt(x,1):pt(x);let A,O,N,l,C=!1,H=!1;if(pe(e)?(O=()=>e.value,C=Ze(e)):Pt(e)?(O=()=>i(e),C=!0):te(e)?(H=!0,C=e.some(x=>Pt(x)||Ze(x)),O=()=>e.map(x=>{if(pe(x))return x.value;if(Pt(x))return i(x);if(re(x))return o?o(x,2):x()})):re(e)?t?O=o?()=>o(e,2):e:O=()=>{if(N){Mt();try{N()}finally{Ut()}}const x=Ft;Ft=A;try{return o?o(e,3,[l]):e(l)}finally{Ft=x}}:O=it,t&&T){const x=O,k=T===!0?1/0:T;O=()=>pt(x(),k)}const Q=mR(),W=()=>{A.stop(),Q&&Q.active&&WT(Q.effects,A)};if(r&&t){const x=t;t=(...k)=>{x(...k),W()}}let j=H?new Array(e.length).fill($E):$E;const ee=x=>{if(!(!(A.flags&1)||!A.dirty&&!x))if(t){const k=A.run();if(T||C||(H?k.some((Ie,ie)=>Dt(Ie,j[ie])):Dt(k,j))){N&&N();const Ie=Ft;Ft=A;try{const ie=[k,j===$E?void 0:H&&j[0]===$E?[]:j,l];o?o(t,3,ie):t(...ie),j=k}finally{Ft=Ie}}}else A.run()};return R&&R(ee),A=new HR(O),A.scheduler=n?()=>n(ee,!1):ee,l=x=>lS(x,!1,A),N=A.onStop=()=>{const x=Ts.get(A);if(x){if(o)o(x,4);else for(const k of x)k();Ts.delete(A)}},t?s?ee(!0):j=A.run():n?n(ee.bind(null,!0),!0):A.run(),W.pause=A.pause.bind(A),W.resume=A.resume.bind(A),W.stop=W,W}function pt(e,t=1/0,E){if(t<=0||!ue(e)||e.__v_skip||(E=E||new Set,E.has(e)))return e;if(E.add(e),t--,pe(e))pt(e.value,t,E);else if(te(e))for(let s=0;s<e.length;s++)pt(e[s],t,E);else if(pR(e)||EE(e))e.forEach(s=>{pt(s,t,E)});else if(PR(e)){for(const s in e)pt(e[s],t,E);for(const s of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,s)&&pt(e[s],t,E)}return e}/**
12
+ * @vue/runtime-core v3.5.13
13
+ * (c) 2018-present Yuxi (Evan) You and Vue contributors
14
+ * @license MIT
15
+ **/function YE(e,t,E,s){try{return s?e(...s):e()}catch(T){Ps(T,t,E)}}function St(e,t,E,s){if(re(e)){const T=YE(e,t,E,s);return T&&fR(T)&&T.catch(r=>{Ps(r,t,E)}),T}if(te(e)){const T=[];for(let r=0;r<e.length;r++)T.push(St(e[r],t,E,s));return T}}function Ps(e,t,E,s=!0){const T=t?t.vnode:null,{errorHandler:r,throwUnhandledErrorInProduction:n}=t&&t.appContext.config||Ce;if(t){let R=t.parent;const o=t.proxy,i=`https://vuejs.org/error-reference/#runtime-${E}`;for(;R;){const A=R.ec;if(A){for(let O=0;O<A.length;O++)if(A[O](e,o,i)===!1)return}R=R.parent}if(r){Mt(),YE(r,null,10,[e,o,i]),Ut();return}}CS(e,E,T,s,n)}function CS(e,t,E,s=!0,T=!1){if(T)throw e;console.error(e)}const Xe=[];let ot=-1;const sE=[];let ct=null,zt=0;const qR=Promise.resolve();let rs=null;function zT(e){const t=rs||qR;return e?t.then(this?e.bind(this):e):t}function LS(e){let t=ot+1,E=Xe.length;for(;t<E;){const s=t+E>>>1,T=Xe[s],r=HE(T);r<e||r===e&&T.flags&2?t=s+1:E=s}return t}function er(e){if(!(e.flags&1)){const t=HE(e),E=Xe[Xe.length-1];!E||!(e.flags&2)&&t>=HE(E)?Xe.push(e):Xe.splice(LS(t),0,e),e.flags|=1,jR()}}function jR(){rs||(rs=qR.then(ZR))}function cS(e){te(e)?sE.push(...e):ct&&e.id===-1?ct.splice(zt+1,0,e):e.flags&1||(sE.push(e),e.flags|=1),jR()}function mr(e,t,E=ot+1){for(;E<Xe.length;E++){const s=Xe[E];if(s&&s.flags&2){if(e&&s.id!==e.uid)continue;Xe.splice(E,1),E--,s.flags&4&&(s.flags&=-2),s(),s.flags&4||(s.flags&=-2)}}}function QR(e){if(sE.length){const t=[...new Set(sE)].sort((E,s)=>HE(E)-HE(s));if(sE.length=0,ct){ct.push(...t);return}for(ct=t,zt=0;zt<ct.length;zt++){const E=ct[zt];E.flags&4&&(E.flags&=-2),E.flags&8||E(),E.flags&=-2}ct=null,zt=0}}const HE=e=>e.id==null?e.flags&2?-1:1/0:e.id;function ZR(e){try{for(ot=0;ot<Xe.length;ot++){const t=Xe[ot];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),YE(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;ot<Xe.length;ot++){const t=Xe[ot];t&&(t.flags&=-2)}ot=-1,Xe.length=0,QR(),rs=null,(Xe.length||sE.length)&&ZR()}}let ve=null,zR=null;function ns(e){const t=ve;return ve=e,zR=e&&e.type.__scopeId||null,t}function Te(e,t=ve,E){if(!t||e._n)return e;const s=(...T)=>{s._d&&Kr(-1);const r=ns(t);let n;try{n=e(...T)}finally{ns(r),s._d&&Kr(1)}return n};return s._n=!0,s._c=!0,s._d=!0,s}function bt(e,t,E,s){const T=e.dirs,r=t&&t.dirs;for(let n=0;n<T.length;n++){const R=T[n];r&&(R.oldValue=r[n].value);let o=R.dir[s];o&&(Mt(),St(o,E,8,[e.el,R,e,t]),Ut())}}const eo=Symbol("_vte"),uS=e=>e.__isTeleport,fE=e=>e&&(e.disabled||e.disabled===""),Hr=e=>e&&(e.defer||e.defer===""),Br=e=>typeof SVGElement<"u"&&e instanceof SVGElement,br=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,pT=(e,t)=>{const E=e&&e.to;return fe(E)?t?t(E):null:E},to={name:"Teleport",__isTeleport:!0,process(e,t,E,s,T,r,n,R,o,i){const{mc:A,pc:O,pbc:N,o:{insert:l,querySelector:C,createText:H,createComment:Q}}=i,W=fE(t.props);let{shapeFlag:j,children:ee,dynamicChildren:x}=t;if(e==null){const k=t.el=H(""),Ie=t.anchor=H("");l(k,E,s),l(Ie,E,s);const ie=(X,_)=>{j&16&&(T&&T.isCE&&(T.ce._teleportTarget=X),A(ee,X,_,T,r,n,R,o))},$=()=>{const X=t.target=pT(t.props,C),_=Eo(X,t,H,l);X&&(n!=="svg"&&Br(X)?n="svg":n!=="mathml"&&br(X)&&(n="mathml"),W||(ie(X,_),kE(t,!1)))};W&&(ie(E,Ie),kE(t,!0)),Hr(t.props)?we(()=>{$(),t.el.__isMounted=!0},r):$()}else{if(Hr(t.props)&&!e.el.__isMounted){we(()=>{to.process(e,t,E,s,T,r,n,R,o,i),delete e.el.__isMounted},r);return}t.el=e.el,t.targetStart=e.targetStart;const k=t.anchor=e.anchor,Ie=t.target=e.target,ie=t.targetAnchor=e.targetAnchor,$=fE(e.props),X=$?E:Ie,_=$?k:ie;if(n==="svg"||Br(Ie)?n="svg":(n==="mathml"||br(Ie))&&(n="mathml"),x?(N(e.dynamicChildren,x,X,T,r,n,R),rr(e,t,!0)):o||O(e,t,X,_,T,r,n,R,!1),W)$?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):JE(t,E,k,i,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const d=t.target=pT(t.props,C);d&&JE(t,d,null,i,0)}else $&&JE(t,Ie,ie,i,1);kE(t,W)}},remove(e,t,E,{um:s,o:{remove:T}},r){const{shapeFlag:n,children:R,anchor:o,targetStart:i,targetAnchor:A,target:O,props:N}=e;if(O&&(T(i),T(A)),r&&T(o),n&16){const l=r||!fE(N);for(let C=0;C<R.length;C++){const H=R[C];s(H,t,E,l,!!H.dynamicChildren)}}},move:JE,hydrate:pS};function JE(e,t,E,{o:{insert:s},m:T},r=2){r===0&&s(e.targetAnchor,t,E);const{el:n,anchor:R,shapeFlag:o,children:i,props:A}=e,O=r===2;if(O&&s(n,t,E),(!O||fE(A))&&o&16)for(let N=0;N<i.length;N++)T(i[N],t,E,2);O&&s(R,t,E)}function pS(e,t,E,s,T,r,{o:{nextSibling:n,parentNode:R,querySelector:o,insert:i,createText:A}},O){const N=t.target=pT(t.props,o);if(N){const l=fE(t.props),C=N._lpa||N.firstChild;if(t.shapeFlag&16)if(l)t.anchor=O(n(e),t,R(e),E,s,T,r),t.targetStart=C,t.targetAnchor=C&&n(C);else{t.anchor=n(e);let H=C;for(;H;){if(H&&H.nodeType===8){if(H.data==="teleport start anchor")t.targetStart=H;else if(H.data==="teleport anchor"){t.targetAnchor=H,N._lpa=t.targetAnchor&&n(t.targetAnchor);break}}H=n(H)}t.targetAnchor||Eo(N,t,A,i),O(C&&n(C),t,N,E,s,T,r)}kE(t,l)}return t.anchor&&n(t.anchor)}const fS=to;function kE(e,t){const E=e.ctx;if(E&&E.ut){let s,T;for(t?(s=e.el,T=e.anchor):(s=e.targetStart,T=e.targetAnchor);s&&s!==T;)s.nodeType===1&&s.setAttribute("data-v-owner",E.uid),s=s.nextSibling;E.ut()}}function Eo(e,t,E,s){const T=t.targetStart=E(""),r=t.targetAnchor=E("");return T[eo]=r,e&&(s(T,e),s(r,e)),r}function tr(e,t){e.shapeFlag&6&&e.component?(e.transition=t,tr(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}/*! #__NO_SIDE_EFFECTS__ */function Ne(e,t){return re(e)?Fe({name:e.name},t,{setup:e}):e}function so(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function Rs(e,t,E,s,T=!1){if(te(e)){e.forEach((C,H)=>Rs(C,t&&(te(t)?t[H]:t),E,s,T));return}if(TE(s)&&!T){s.shapeFlag&512&&s.type.__asyncResolved&&s.component.subTree.component&&Rs(e,t,E,s.component.subTree);return}const r=s.shapeFlag&4?Rr(s.component):s.el,n=T?null:r,{i:R,r:o}=e,i=t&&t.r,A=R.refs===Ce?R.refs={}:R.refs,O=R.setupState,N=Se(O),l=O===Ce?()=>!1:C=>ae(N,C);if(i!=null&&i!==o&&(fe(i)?(A[i]=null,l(i)&&(O[i]=null)):pe(i)&&(i.value=null)),re(o))YE(o,R,12,[n,A]);else{const C=fe(o),H=pe(o);if(C||H){const Q=()=>{if(e.f){const W=C?l(o)?O[o]:A[o]:o.value;T?te(W)&&WT(W,r):te(W)?W.includes(r)||W.push(r):C?(A[o]=[r],l(o)&&(O[o]=A[o])):(o.value=[r],e.k&&(A[e.k]=o.value))}else C?(A[o]=n,l(o)&&(O[o]=n)):H&&(o.value=n,e.k&&(A[e.k]=n))};n?(Q.id=-1,we(Q,E)):Q()}}}ps().requestIdleCallback;ps().cancelIdleCallback;const TE=e=>!!e.type.__asyncLoader,To=e=>e.type.__isKeepAlive;function DS(e,t){ro(e,"a",t)}function PS(e,t){ro(e,"da",t)}function ro(e,t,E=He){const s=e.__wdc||(e.__wdc=()=>{let T=E;for(;T;){if(T.isDeactivated)return;T=T.parent}return e()});if(ds(t,s,E),E){let T=E.parent;for(;T&&T.parent;)To(T.parent.vnode)&&dS(s,t,E,T),T=T.parent}}function dS(e,t,E,s){const T=ds(t,e,s,!0);Er(()=>{WT(s[t],T)},E)}function ds(e,t,E=He,s=!1){if(E){const T=E[e]||(E[e]=[]),r=t.__weh||(t.__weh=(...n)=>{Mt();const R=VE(E),o=St(t,E,e,n);return R(),Ut(),o});return s?T.unshift(r):T.push(r),r}}const lt=e=>(t,E=He)=>{(!yE||e==="sp")&&ds(e,(...s)=>t(...s),E)},no=lt("bm"),Ms=lt("m"),MS=lt("bu"),US=lt("u"),hS=lt("bum"),Er=lt("um"),GS=lt("sp"),gS=lt("rtg"),mS=lt("rtc");function HS(e,t=He){ds("ec",e,t)}const BS="components";function sr(e,t){return yS(BS,e,!0,t)||e}const bS=Symbol.for("v-ndc");function yS(e,t,E=!0,s=!1){const T=ve||He;if(T){const r=T.type;{const R=PO(r,!1);if(R&&(R===t||R===ze(t)||R===us(ze(t))))return r}const n=yr(T[e]||r[e],t)||yr(T.appContext[e],t);return!n&&s?r:n}}function yr(e,t){return e&&(e[t]||e[ze(t)]||e[us(ze(t))])}function Je(e,t,E,s){let T;const r=E,n=te(e);if(n||fe(e)){const R=n&&Pt(e);let o=!1;R&&(o=!Ze(e),e=Ds(e)),T=new Array(e.length);for(let i=0,A=e.length;i<A;i++)T[i]=t(o?be(e[i]):e[i],i,void 0,r)}else if(typeof e=="number"){T=new Array(e);for(let R=0;R<e;R++)T[R]=t(R+1,R,void 0,r)}else if(ue(e))if(e[Symbol.iterator])T=Array.from(e,(R,o)=>t(R,o,void 0,r));else{const R=Object.keys(e);T=new Array(R.length);for(let o=0,i=R.length;o<i;o++){const A=R[o];T[o]=t(e[A],A,o,r)}}else T=[];return T}function st(e,t,E={},s,T){if(ve.ce||ve.parent&&TE(ve.parent)&&ve.parent.ce)return t!=="default"&&(E.name=t),P(),Ae(le,null,[F("slot",E,s)],64);let r=e[t];r&&r._c&&(r._d=!1),P();const n=r&&Ro(r(E)),R=E.key||n&&n.key,o=Ae(le,{key:(R&&!Nt(R)?R:`_${t}`)+""},n||[],n&&e._===1?64:-2);return o.scopeId&&(o.slotScopeIds=[o.scopeId+"-s"]),r&&r._c&&(r._d=!0),o}function Ro(e){return e.some(t=>bE(t)?!(t.type===dt||t.type===le&&!Ro(t.children)):!0)?e:null}const fT=e=>e?Uo(e)?Rr(e):fT(e.parent):null,DE=Fe(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>fT(e.parent),$root:e=>fT(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Ao(e),$forceUpdate:e=>e.f||(e.f=()=>{er(e.update)}),$nextTick:e=>e.n||(e.n=zT.bind(e.proxy)),$watch:e=>rO.bind(e)}),Ks=(e,t)=>e!==Ce&&!e.__isScriptSetup&&ae(e,t),vS={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:E,setupState:s,data:T,props:r,accessCache:n,type:R,appContext:o}=e;let i;if(t[0]!=="$"){const l=n[t];if(l!==void 0)switch(l){case 1:return s[t];case 2:return T[t];case 4:return E[t];case 3:return r[t]}else{if(Ks(s,t))return n[t]=1,s[t];if(T!==Ce&&ae(T,t))return n[t]=2,T[t];if((i=e.propsOptions[0])&&ae(i,t))return n[t]=3,r[t];if(E!==Ce&&ae(E,t))return n[t]=4,E[t];DT&&(n[t]=0)}}const A=DE[t];let O,N;if(A)return t==="$attrs"&&Be(e.attrs,"get",""),A(e);if((O=R.__cssModules)&&(O=O[t]))return O;if(E!==Ce&&ae(E,t))return n[t]=4,E[t];if(N=o.config.globalProperties,ae(N,t))return N[t]},set({_:e},t,E){const{data:s,setupState:T,ctx:r}=e;return Ks(T,t)?(T[t]=E,!0):s!==Ce&&ae(s,t)?(s[t]=E,!0):ae(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(r[t]=E,!0)},has({_:{data:e,setupState:t,accessCache:E,ctx:s,appContext:T,propsOptions:r}},n){let R;return!!E[n]||e!==Ce&&ae(e,n)||Ks(t,n)||(R=r[0])&&ae(R,n)||ae(s,n)||ae(DE,n)||ae(T.config.globalProperties,n)},defineProperty(e,t,E){return E.get!=null?e._.accessCache[t]=0:ae(E,"value")&&this.set(e,t,E.value,null),Reflect.defineProperty(e,t,E)}};function vr(e){return te(e)?e.reduce((t,E)=>(t[E]=null,t),{}):e}let DT=!0;function FS(e){const t=Ao(e),E=e.proxy,s=e.ctx;DT=!1,t.beforeCreate&&Fr(t.beforeCreate,e,"bc");const{data:T,computed:r,methods:n,watch:R,provide:o,inject:i,created:A,beforeMount:O,mounted:N,beforeUpdate:l,updated:C,activated:H,deactivated:Q,beforeDestroy:W,beforeUnmount:j,destroyed:ee,unmounted:x,render:k,renderTracked:Ie,renderTriggered:ie,errorCaptured:$,serverPrefetch:X,expose:_,inheritAttrs:d,components:f,directives:Y,filters:J}=t;if(i&&YS(i,s,null),n)for(const G in n){const w=n[G];re(w)&&(s[G]=w.bind(E))}if(T){const G=T.call(E,E);ue(G)&&(e.data=rt(G))}if(DT=!0,r)for(const G in r){const w=r[G],oe=re(w)?w.bind(E,E):re(w.get)?w.get.bind(E,E):it,ce=!re(w)&&re(w.set)?w.set.bind(E):it,Pe=tt({get:oe,set:ce});Object.defineProperty(s,G,{enumerable:!0,configurable:!0,get:()=>Pe.value,set:de=>Pe.value=de})}if(R)for(const G in R)oo(R[G],s,E,G);if(o){const G=re(o)?o.call(E):o;Reflect.ownKeys(G).forEach(w=>{KS(w,G[w])})}A&&Fr(A,e,"c");function c(G,w){te(w)?w.forEach(oe=>G(oe.bind(E))):w&&G(w.bind(E))}if(c(no,O),c(Ms,N),c(MS,l),c(US,C),c(DS,H),c(PS,Q),c(HS,$),c(mS,Ie),c(gS,ie),c(hS,j),c(Er,x),c(GS,X),te(_))if(_.length){const G=e.exposed||(e.exposed={});_.forEach(w=>{Object.defineProperty(G,w,{get:()=>E[w],set:oe=>E[w]=oe})})}else e.exposed||(e.exposed={});k&&e.render===it&&(e.render=k),d!=null&&(e.inheritAttrs=d),f&&(e.components=f),Y&&(e.directives=Y),X&&so(e)}function YS(e,t,E=it){te(e)&&(e=PT(e));for(const s in e){const T=e[s];let r;ue(T)?"default"in T?r=PE(T.from||s,T.default,!0):r=PE(T.from||s):r=PE(T),pe(r)?Object.defineProperty(t,s,{enumerable:!0,configurable:!0,get:()=>r.value,set:n=>r.value=n}):t[s]=r}}function Fr(e,t,E){St(te(e)?e.map(s=>s.bind(t.proxy)):e.bind(t.proxy),t,E)}function oo(e,t,E,s){let T=s.includes(".")?po(E,s):()=>E[s];if(fe(e)){const r=t[e];re(r)&&rE(T,r)}else if(re(e))rE(T,e.bind(E));else if(ue(e))if(te(e))e.forEach(r=>oo(r,t,E,s));else{const r=re(e.handler)?e.handler.bind(E):t[e.handler];re(r)&&rE(T,r,e)}}function Ao(e){const t=e.type,{mixins:E,extends:s}=t,{mixins:T,optionsCache:r,config:{optionMergeStrategies:n}}=e.appContext,R=r.get(t);let o;return R?o=R:!T.length&&!E&&!s?o=t:(o={},T.length&&T.forEach(i=>os(o,i,n,!0)),os(o,t,n)),ue(t)&&r.set(t,o),o}function os(e,t,E,s=!1){const{mixins:T,extends:r}=t;r&&os(e,r,E,!0),T&&T.forEach(n=>os(e,n,E,!0));for(const n in t)if(!(s&&n==="expose")){const R=VS[n]||E&&E[n];e[n]=R?R(e[n],t[n]):t[n]}return e}const VS={data:Yr,props:Vr,emits:Vr,methods:CE,computed:CE,beforeCreate:xe,created:xe,beforeMount:xe,mounted:xe,beforeUpdate:xe,updated:xe,beforeDestroy:xe,beforeUnmount:xe,destroyed:xe,unmounted:xe,activated:xe,deactivated:xe,errorCaptured:xe,serverPrefetch:xe,components:CE,directives:CE,watch:wS,provide:Yr,inject:xS};function Yr(e,t){return t?e?function(){return Fe(re(e)?e.call(this,this):e,re(t)?t.call(this,this):t)}:t:e}function xS(e,t){return CE(PT(e),PT(t))}function PT(e){if(te(e)){const t={};for(let E=0;E<e.length;E++)t[e[E]]=e[E];return t}return e}function xe(e,t){return e?[...new Set([].concat(e,t))]:t}function CE(e,t){return e?Fe(Object.create(null),e,t):t}function Vr(e,t){return e?te(e)&&te(t)?[...new Set([...e,...t])]:Fe(Object.create(null),vr(e),vr(t??{})):t}function wS(e,t){if(!e)return t;if(!t)return e;const E=Fe(Object.create(null),e);for(const s in t)E[s]=xe(e[s],t[s]);return E}function io(){return{app:null,config:{isNativeTag:hi,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let WS=0;function XS(e,t){return function(s,T=null){re(s)||(s=Fe({},s)),T!=null&&!ue(T)&&(T=null);const r=io(),n=new WeakSet,R=[];let o=!1;const i=r.app={_uid:WS++,_component:s,_props:T,_container:null,_context:r,_instance:null,version:MO,get config(){return r.config},set config(A){},use(A,...O){return n.has(A)||(A&&re(A.install)?(n.add(A),A.install(i,...O)):re(A)&&(n.add(A),A(i,...O))),i},mixin(A){return r.mixins.includes(A)||r.mixins.push(A),i},component(A,O){return O?(r.components[A]=O,i):r.components[A]},directive(A,O){return O?(r.directives[A]=O,i):r.directives[A]},mount(A,O,N){if(!o){const l=i._ceVNode||F(s,T);return l.appContext=r,N===!0?N="svg":N===!1&&(N=void 0),e(l,A,N),o=!0,i._container=A,A.__vue_app__=i,Rr(l.component)}},onUnmount(A){R.push(A)},unmount(){o&&(St(R,i._instance,16),e(null,i._container),delete i._container.__vue_app__)},provide(A,O){return r.provides[A]=O,i},runWithContext(A){const O=xt;xt=i;try{return A()}finally{xt=O}}};return i}}let xt=null;function KS(e,t){if(He){let E=He.provides;const s=He.parent&&He.parent.provides;s===E&&(E=He.provides=Object.create(s)),E[e]=t}}function PE(e,t,E=!1){const s=He||ve;if(s||xt){const T=xt?xt._context.provides:s?s.parent==null?s.vnode.appContext&&s.vnode.appContext.provides:s.parent.provides:void 0;if(T&&e in T)return T[e];if(arguments.length>1)return E&&re(t)?t.call(s&&s.proxy):t}}function $S(){return!!(He||ve||xt)}const So={},Oo=()=>Object.create(So),Io=e=>Object.getPrototypeOf(e)===So;function JS(e,t,E,s=!1){const T={},r=Oo();e.propsDefaults=Object.create(null),ao(e,t,T,r);for(const n in e.propsOptions[0])n in T||(T[n]=void 0);E?e.props=s?T:RS(T):e.type.props?e.props=T:e.props=r,e.attrs=r}function kS(e,t,E,s){const{props:T,attrs:r,vnode:{patchFlag:n}}=e,R=Se(T),[o]=e.propsOptions;let i=!1;if((s||n>0)&&!(n&16)){if(n&8){const A=e.vnode.dynamicProps;for(let O=0;O<A.length;O++){let N=A[O];if(Us(e.emitsOptions,N))continue;const l=t[N];if(o)if(ae(r,N))l!==r[N]&&(r[N]=l,i=!0);else{const C=ze(N);T[C]=dT(o,R,C,l,e,!1)}else l!==r[N]&&(r[N]=l,i=!0)}}}else{ao(e,t,T,r)&&(i=!0);let A;for(const O in R)(!t||!ae(t,O)&&((A=Kt(O))===O||!ae(t,A)))&&(o?E&&(E[O]!==void 0||E[A]!==void 0)&&(T[O]=dT(o,R,O,void 0,e,!0)):delete T[O]);if(r!==R)for(const O in r)(!t||!ae(t,O))&&(delete r[O],i=!0)}i&&at(e.attrs,"set","")}function ao(e,t,E,s){const[T,r]=e.propsOptions;let n=!1,R;if(t)for(let o in t){if(cE(o))continue;const i=t[o];let A;T&&ae(T,A=ze(o))?!r||!r.includes(A)?E[A]=i:(R||(R={}))[A]=i:Us(e.emitsOptions,o)||(!(o in s)||i!==s[o])&&(s[o]=i,n=!0)}if(r){const o=Se(E),i=R||Ce;for(let A=0;A<r.length;A++){const O=r[A];E[O]=dT(T,o,O,i[O],e,!ae(i,O))}}return n}function dT(e,t,E,s,T,r){const n=e[E];if(n!=null){const R=ae(n,"default");if(R&&s===void 0){const o=n.default;if(n.type!==Function&&!n.skipFactory&&re(o)){const{propsDefaults:i}=T;if(E in i)s=i[E];else{const A=VE(T);s=i[E]=o.call(null,t),A()}}else s=o;T.ce&&T.ce._setProp(E,s)}n[0]&&(r&&!R?s=!1:n[1]&&(s===""||s===Kt(E))&&(s=!0))}return s}const qS=new WeakMap;function No(e,t,E=!1){const s=E?qS:t.propsCache,T=s.get(e);if(T)return T;const r=e.props,n={},R=[];let o=!1;if(!re(e)){const A=O=>{o=!0;const[N,l]=No(O,t,!0);Fe(n,N),l&&R.push(...l)};!E&&t.mixins.length&&t.mixins.forEach(A),e.extends&&A(e.extends),e.mixins&&e.mixins.forEach(A)}if(!r&&!o)return ue(e)&&s.set(e,tE),tE;if(te(r))for(let A=0;A<r.length;A++){const O=ze(r[A]);xr(O)&&(n[O]=Ce)}else if(r)for(const A in r){const O=ze(A);if(xr(O)){const N=r[A],l=n[O]=te(N)||re(N)?{type:N}:Fe({},N),C=l.type;let H=!1,Q=!0;if(te(C))for(let W=0;W<C.length;++W){const j=C[W],ee=re(j)&&j.name;if(ee==="Boolean"){H=!0;break}else ee==="String"&&(Q=!1)}else H=re(C)&&C.name==="Boolean";l[0]=H,l[1]=Q,(H||ae(l,"default"))&&R.push(O)}}const i=[n,R];return ue(e)&&s.set(e,i),i}function xr(e){return e[0]!=="$"&&!cE(e)}const lo=e=>e[0]==="_"||e==="$stable",Tr=e=>te(e)?e.map(At):[At(e)],jS=(e,t,E)=>{if(t._n)return t;const s=Te((...T)=>Tr(t(...T)),E);return s._c=!1,s},_o=(e,t,E)=>{const s=e._ctx;for(const T in e){if(lo(T))continue;const r=e[T];if(re(r))t[T]=jS(T,r,s);else if(r!=null){const n=Tr(r);t[T]=()=>n}}},Co=(e,t)=>{const E=Tr(t);e.slots.default=()=>E},Lo=(e,t,E)=>{for(const s in t)(E||s!=="_")&&(e[s]=t[s])},QS=(e,t,E)=>{const s=e.slots=Oo();if(e.vnode.shapeFlag&32){const T=t._;T?(Lo(s,t,E),E&&dR(s,"_",T,!0)):_o(t,s)}else t&&Co(e,t)},ZS=(e,t,E)=>{const{vnode:s,slots:T}=e;let r=!0,n=Ce;if(s.shapeFlag&32){const R=t._;R?E&&R===1?r=!1:Lo(T,t,E):(r=!t.$stable,_o(t,T)),n=t}else t&&(Co(e,t),n={default:1});if(r)for(const R in T)!lo(R)&&n[R]==null&&delete T[R]},we=OO;function zS(e){return eO(e)}function eO(e,t){const E=ps();E.__VUE__=!0;const{insert:s,remove:T,patchProp:r,createElement:n,createText:R,createComment:o,setText:i,setElementText:A,parentNode:O,nextSibling:N,setScopeId:l=it,insertStaticContent:C}=e,H=(I,a,L,U=null,h=null,g=null,D=void 0,b=null,m=!!a.dynamicChildren)=>{if(I===a)return;I&&!lE(I,a)&&(U=mt(I),de(I,h,g,!0),I=null),a.patchFlag===-2&&(m=!1,a.dynamicChildren=null);const{type:p,ref:q,shapeFlag:v}=a;switch(p){case hs:Q(I,a,L,U);break;case dt:W(I,a,L,U);break;case qE:I==null&&j(a,L,U,D);break;case le:f(I,a,L,U,h,g,D,b,m);break;default:v&1?k(I,a,L,U,h,g,D,b,m):v&6?Y(I,a,L,U,h,g,D,b,m):(v&64||v&128)&&p.process(I,a,L,U,h,g,D,b,m,Ht)}q!=null&&h&&Rs(q,I&&I.ref,g,a||I,!a)},Q=(I,a,L,U)=>{if(I==null)s(a.el=R(a.children),L,U);else{const h=a.el=I.el;a.children!==I.children&&i(h,a.children)}},W=(I,a,L,U)=>{I==null?s(a.el=o(a.children||""),L,U):a.el=I.el},j=(I,a,L,U)=>{[I.el,I.anchor]=C(I.children,a,L,U,I.el,I.anchor)},ee=({el:I,anchor:a},L,U)=>{let h;for(;I&&I!==a;)h=N(I),s(I,L,U),I=h;s(a,L,U)},x=({el:I,anchor:a})=>{let L;for(;I&&I!==a;)L=N(I),T(I),I=L;T(a)},k=(I,a,L,U,h,g,D,b,m)=>{a.type==="svg"?D="svg":a.type==="math"&&(D="mathml"),I==null?Ie(a,L,U,h,g,D,b,m):X(I,a,h,g,D,b,m)},Ie=(I,a,L,U,h,g,D,b)=>{let m,p;const{props:q,shapeFlag:v,transition:K,dirs:Z}=I;if(m=I.el=n(I.type,g,q&&q.is,q),v&8?A(m,I.children):v&16&&$(I.children,m,null,U,h,$s(I,g),D,b),Z&&bt(I,null,U,"created"),ie(m,I,I.scopeId,D,U),q){for(const B in q)B!=="value"&&!cE(B)&&r(m,B,null,q[B],g,U);"value"in q&&r(m,"value",null,q.value,g),(p=q.onVnodeBeforeMount)&&Rt(p,U,I)}Z&&bt(I,null,U,"beforeMount");const M=tO(h,K);M&&K.beforeEnter(m),s(m,a,L),((p=q&&q.onVnodeMounted)||M||Z)&&we(()=>{p&&Rt(p,U,I),M&&K.enter(m),Z&&bt(I,null,U,"mounted")},h)},ie=(I,a,L,U,h)=>{if(L&&l(I,L),U)for(let g=0;g<U.length;g++)l(I,U[g]);if(h){let g=h.subTree;if(a===g||Do(g.type)&&(g.ssContent===a||g.ssFallback===a)){const D=h.vnode;ie(I,D,D.scopeId,D.slotScopeIds,h.parent)}}},$=(I,a,L,U,h,g,D,b,m=0)=>{for(let p=m;p<I.length;p++){const q=I[p]=b?ut(I[p]):At(I[p]);H(null,q,a,L,U,h,g,D,b)}},X=(I,a,L,U,h,g,D)=>{const b=a.el=I.el;let{patchFlag:m,dynamicChildren:p,dirs:q}=a;m|=I.patchFlag&16;const v=I.props||Ce,K=a.props||Ce;let Z;if(L&&yt(L,!1),(Z=K.onVnodeBeforeUpdate)&&Rt(Z,L,a,I),q&&bt(a,I,L,"beforeUpdate"),L&&yt(L,!0),(v.innerHTML&&K.innerHTML==null||v.textContent&&K.textContent==null)&&A(b,""),p?_(I.dynamicChildren,p,b,L,U,$s(a,h),g):D||w(I,a,b,null,L,U,$s(a,h),g,!1),m>0){if(m&16)d(b,v,K,L,h);else if(m&2&&v.class!==K.class&&r(b,"class",null,K.class,h),m&4&&r(b,"style",v.style,K.style,h),m&8){const M=a.dynamicProps;for(let B=0;B<M.length;B++){const V=M[B],se=v[V],Oe=K[V];(Oe!==se||V==="value")&&r(b,V,se,Oe,h,L)}}m&1&&I.children!==a.children&&A(b,a.children)}else!D&&p==null&&d(b,v,K,L,h);((Z=K.onVnodeUpdated)||q)&&we(()=>{Z&&Rt(Z,L,a,I),q&&bt(a,I,L,"updated")},U)},_=(I,a,L,U,h,g,D)=>{for(let b=0;b<a.length;b++){const m=I[b],p=a[b],q=m.el&&(m.type===le||!lE(m,p)||m.shapeFlag&70)?O(m.el):L;H(m,p,q,null,U,h,g,D,!0)}},d=(I,a,L,U,h)=>{if(a!==L){if(a!==Ce)for(const g in a)!cE(g)&&!(g in L)&&r(I,g,a[g],null,h,U);for(const g in L){if(cE(g))continue;const D=L[g],b=a[g];D!==b&&g!=="value"&&r(I,g,b,D,h,U)}"value"in L&&r(I,"value",a.value,L.value,h)}},f=(I,a,L,U,h,g,D,b,m)=>{const p=a.el=I?I.el:R(""),q=a.anchor=I?I.anchor:R("");let{patchFlag:v,dynamicChildren:K,slotScopeIds:Z}=a;Z&&(b=b?b.concat(Z):Z),I==null?(s(p,L,U),s(q,L,U),$(a.children||[],L,q,h,g,D,b,m)):v>0&&v&64&&K&&I.dynamicChildren?(_(I.dynamicChildren,K,L,h,g,D,b),(a.key!=null||h&&a===h.subTree)&&rr(I,a,!0)):w(I,a,L,q,h,g,D,b,m)},Y=(I,a,L,U,h,g,D,b,m)=>{a.slotScopeIds=b,I==null?a.shapeFlag&512?h.ctx.activate(a,L,U,D,m):J(a,L,U,h,g,D,m):Me(I,a,m)},J=(I,a,L,U,h,g,D)=>{const b=I.component=cO(I,U,h);if(To(I)&&(b.ctx.renderer=Ht),uO(b,!1,D),b.asyncDep){if(h&&h.registerDep(b,c,D),!I.el){const m=b.subTree=F(dt);W(null,m,a,L)}}else c(b,I,a,L,h,g,D)},Me=(I,a,L)=>{const U=a.component=I.component;if(iO(I,a,L))if(U.asyncDep&&!U.asyncResolved){G(U,a,L);return}else U.next=a,U.update();else a.el=I.el,U.vnode=a},c=(I,a,L,U,h,g,D)=>{const b=()=>{if(I.isMounted){let{next:v,bu:K,u:Z,parent:M,vnode:B}=I;{const qe=co(I);if(qe){v&&(v.el=B.el,G(I,v,D)),qe.asyncDep.then(()=>{I.isUnmounted||b()});return}}let V=v,se;yt(I,!1),v?(v.el=B.el,G(I,v,D)):v=B,K&&Vs(K),(se=v.props&&v.props.onVnodeBeforeUpdate)&&Rt(se,M,v,B),yt(I,!0);const Oe=Wr(I),De=I.subTree;I.subTree=Oe,H(De,Oe,O(De.el),mt(De),I,h,g),v.el=Oe.el,V===null&&SO(I,Oe.el),Z&&we(Z,h),(se=v.props&&v.props.onVnodeUpdated)&&we(()=>Rt(se,M,v,B),h)}else{let v;const{el:K,props:Z}=a,{bm:M,m:B,parent:V,root:se,type:Oe}=I,De=TE(a);yt(I,!1),M&&Vs(M),!De&&(v=Z&&Z.onVnodeBeforeMount)&&Rt(v,V,a),yt(I,!0);{se.ce&&se.ce._injectChildStyle(Oe);const qe=I.subTree=Wr(I);H(null,qe,L,U,I,h,g),a.el=qe.el}if(B&&we(B,h),!De&&(v=Z&&Z.onVnodeMounted)){const qe=a;we(()=>Rt(v,V,qe),h)}(a.shapeFlag&256||V&&TE(V.vnode)&&V.vnode.shapeFlag&256)&&I.a&&we(I.a,h),I.isMounted=!0,a=L=U=null}};I.scope.on();const m=I.effect=new HR(b);I.scope.off();const p=I.update=m.run.bind(m),q=I.job=m.runIfDirty.bind(m);q.i=I,q.id=I.uid,m.scheduler=()=>er(q),yt(I,!0),p()},G=(I,a,L)=>{a.component=I;const U=I.vnode.props;I.vnode=a,I.next=null,kS(I,a.props,U,L),ZS(I,a.children,L),Mt(),mr(I),Ut()},w=(I,a,L,U,h,g,D,b,m=!1)=>{const p=I&&I.children,q=I?I.shapeFlag:0,v=a.children,{patchFlag:K,shapeFlag:Z}=a;if(K>0){if(K&128){ce(p,v,L,U,h,g,D,b,m);return}else if(K&256){oe(p,v,L,U,h,g,D,b,m);return}}Z&8?(q&16&&_t(p,h,g),v!==p&&A(L,v)):q&16?Z&16?ce(p,v,L,U,h,g,D,b,m):_t(p,h,g,!0):(q&8&&A(L,""),Z&16&&$(v,L,U,h,g,D,b,m))},oe=(I,a,L,U,h,g,D,b,m)=>{I=I||tE,a=a||tE;const p=I.length,q=a.length,v=Math.min(p,q);let K;for(K=0;K<v;K++){const Z=a[K]=m?ut(a[K]):At(a[K]);H(I[K],Z,L,null,h,g,D,b,m)}p>q?_t(I,h,g,!0,!1,v):$(a,L,U,h,g,D,b,m,v)},ce=(I,a,L,U,h,g,D,b,m)=>{let p=0;const q=a.length;let v=I.length-1,K=q-1;for(;p<=v&&p<=K;){const Z=I[p],M=a[p]=m?ut(a[p]):At(a[p]);if(lE(Z,M))H(Z,M,L,null,h,g,D,b,m);else break;p++}for(;p<=v&&p<=K;){const Z=I[v],M=a[K]=m?ut(a[K]):At(a[K]);if(lE(Z,M))H(Z,M,L,null,h,g,D,b,m);else break;v--,K--}if(p>v){if(p<=K){const Z=K+1,M=Z<q?a[Z].el:U;for(;p<=K;)H(null,a[p]=m?ut(a[p]):At(a[p]),L,M,h,g,D,b,m),p++}}else if(p>K)for(;p<=v;)de(I[p],h,g,!0),p++;else{const Z=p,M=p,B=new Map;for(p=M;p<=K;p++){const Ke=a[p]=m?ut(a[p]):At(a[p]);Ke.key!=null&&B.set(Ke.key,p)}let V,se=0;const Oe=K-M+1;let De=!1,qe=0;const Bt=new Array(Oe);for(p=0;p<Oe;p++)Bt[p]=0;for(p=Z;p<=v;p++){const Ke=I[p];if(se>=Oe){de(Ke,h,g,!0);continue}let nt;if(Ke.key!=null)nt=B.get(Ke.key);else for(V=M;V<=K;V++)if(Bt[V-M]===0&&lE(Ke,a[V])){nt=V;break}nt===void 0?de(Ke,h,g,!0):(Bt[nt-M]=p+1,nt>=qe?qe=nt:De=!0,H(Ke,a[nt],L,null,h,g,D,b,m),se++)}const cr=De?EO(Bt):tE;for(V=cr.length-1,p=Oe-1;p>=0;p--){const Ke=M+p,nt=a[Ke],ur=Ke+1<q?a[Ke+1].el:U;Bt[p]===0?H(null,nt,L,ur,h,g,D,b,m):De&&(V<0||p!==cr[V]?Pe(nt,L,ur,2):V--)}}},Pe=(I,a,L,U,h=null)=>{const{el:g,type:D,transition:b,children:m,shapeFlag:p}=I;if(p&6){Pe(I.component.subTree,a,L,U);return}if(p&128){I.suspense.move(a,L,U);return}if(p&64){D.move(I,a,L,Ht);return}if(D===le){s(g,a,L);for(let v=0;v<m.length;v++)Pe(m[v],a,L,U);s(I.anchor,a,L);return}if(D===qE){ee(I,a,L);return}if(U!==2&&p&1&&b)if(U===0)b.beforeEnter(g),s(g,a,L),we(()=>b.enter(g),h);else{const{leave:v,delayLeave:K,afterLeave:Z}=b,M=()=>s(g,a,L),B=()=>{v(g,()=>{M(),Z&&Z()})};K?K(g,M,B):B()}else s(g,a,L)},de=(I,a,L,U=!1,h=!1)=>{const{type:g,props:D,ref:b,children:m,dynamicChildren:p,shapeFlag:q,patchFlag:v,dirs:K,cacheIndex:Z}=I;if(v===-2&&(h=!1),b!=null&&Rs(b,null,L,I,!0),Z!=null&&(a.renderCache[Z]=void 0),q&256){a.ctx.deactivate(I);return}const M=q&1&&K,B=!TE(I);let V;if(B&&(V=D&&D.onVnodeBeforeUnmount)&&Rt(V,a,I),q&6)ke(I.component,L,U);else{if(q&128){I.suspense.unmount(L,U);return}M&&bt(I,null,a,"beforeUnmount"),q&64?I.type.remove(I,a,L,Ht,U):p&&!p.hasOnce&&(g!==le||v>0&&v&64)?_t(p,a,L,!1,!0):(g===le&&v&384||!h&&q&16)&&_t(m,a,L),U&&gt(I)}(B&&(V=D&&D.onVnodeUnmounted)||M)&&we(()=>{V&&Rt(V,a,I),M&&bt(I,null,a,"unmounted")},L)},gt=I=>{const{type:a,el:L,anchor:U,transition:h}=I;if(a===le){Ve(L,U);return}if(a===qE){x(I);return}const g=()=>{T(L),h&&!h.persisted&&h.afterLeave&&h.afterLeave()};if(I.shapeFlag&1&&h&&!h.persisted){const{leave:D,delayLeave:b}=h,m=()=>D(L,g);b?b(I.el,g,m):m()}else g()},Ve=(I,a)=>{let L;for(;I!==a;)L=N(I),T(I),I=L;T(a)},ke=(I,a,L)=>{const{bum:U,scope:h,job:g,subTree:D,um:b,m,a:p}=I;wr(m),wr(p),U&&Vs(U),h.stop(),g&&(g.flags|=8,de(D,I,a,L)),b&&we(b,a),we(()=>{I.isUnmounted=!0},a),a&&a.pendingBranch&&!a.isUnmounted&&I.asyncDep&&!I.asyncResolved&&I.suspenseId===a.pendingId&&(a.deps--,a.deps===0&&a.resolve())},_t=(I,a,L,U=!1,h=!1,g=0)=>{for(let D=g;D<I.length;D++)de(I[D],a,L,U,h)},mt=I=>{if(I.shapeFlag&6)return mt(I.component.subTree);if(I.shapeFlag&128)return I.suspense.next();const a=N(I.anchor||I.el),L=a&&a[eo];return L?N(L):a};let Jt=!1;const wE=(I,a,L)=>{I==null?a._vnode&&de(a._vnode,null,null,!0):H(a._vnode||null,I,a,null,null,null,L),a._vnode=I,Jt||(Jt=!0,mr(),QR(),Jt=!1)},Ht={p:H,um:de,m:Pe,r:gt,mt:J,mc:$,pc:w,pbc:_,n:mt,o:e};return{render:wE,hydrate:void 0,createApp:XS(wE)}}function $s({type:e,props:t},E){return E==="svg"&&e==="foreignObject"||E==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:E}function yt({effect:e,job:t},E){E?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function tO(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function rr(e,t,E=!1){const s=e.children,T=t.children;if(te(s)&&te(T))for(let r=0;r<s.length;r++){const n=s[r];let R=T[r];R.shapeFlag&1&&!R.dynamicChildren&&((R.patchFlag<=0||R.patchFlag===32)&&(R=T[r]=ut(T[r]),R.el=n.el),!E&&R.patchFlag!==-2&&rr(n,R)),R.type===hs&&(R.el=n.el)}}function EO(e){const t=e.slice(),E=[0];let s,T,r,n,R;const o=e.length;for(s=0;s<o;s++){const i=e[s];if(i!==0){if(T=E[E.length-1],e[T]<i){t[s]=T,E.push(s);continue}for(r=0,n=E.length-1;r<n;)R=r+n>>1,e[E[R]]<i?r=R+1:n=R;i<e[E[r]]&&(r>0&&(t[s]=E[r-1]),E[r]=s)}}for(r=E.length,n=E[r-1];r-- >0;)E[r]=n,n=t[n];return E}function co(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:co(t)}function wr(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}const sO=Symbol.for("v-scx"),TO=()=>PE(sO);function rE(e,t,E){return uo(e,t,E)}function uo(e,t,E=Ce){const{immediate:s,deep:T,flush:r,once:n}=E,R=Fe({},E),o=t&&s||!t&&r!=="post";let i;if(yE){if(r==="sync"){const l=TO();i=l.__watcherHandles||(l.__watcherHandles=[])}else if(!o){const l=()=>{};return l.stop=it,l.resume=it,l.pause=it,l}}const A=He;R.call=(l,C,H)=>St(l,A,C,H);let O=!1;r==="post"?R.scheduler=l=>{we(l,A&&A.suspense)}:r!=="sync"&&(O=!0,R.scheduler=(l,C)=>{C?l():er(l)}),R.augmentJob=l=>{t&&(l.flags|=4),O&&(l.flags|=2,A&&(l.id=A.uid,l.i=A))};const N=_S(e,t,R);return yE&&(i?i.push(N):o&&N()),N}function rO(e,t,E){const s=this.proxy,T=fe(e)?e.includes(".")?po(s,e):()=>s[e]:e.bind(s,s);let r;re(t)?r=t:(r=t.handler,E=t);const n=VE(this),R=uo(T,r.bind(s),E);return n(),R}function po(e,t){const E=t.split(".");return()=>{let s=e;for(let T=0;T<E.length&&s;T++)s=s[E[T]];return s}}const nO=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${ze(t)}Modifiers`]||e[`${Kt(t)}Modifiers`];function RO(e,t,...E){if(e.isUnmounted)return;const s=e.vnode.props||Ce;let T=E;const r=t.startsWith("update:"),n=r&&nO(s,t.slice(7));n&&(n.trim&&(T=E.map(A=>fe(A)?A.trim():A)),n.number&&(T=E.map(Bi)));let R,o=s[R=Ys(t)]||s[R=Ys(ze(t))];!o&&r&&(o=s[R=Ys(Kt(t))]),o&&St(o,e,6,T);const i=s[R+"Once"];if(i){if(!e.emitted)e.emitted={};else if(e.emitted[R])return;e.emitted[R]=!0,St(i,e,6,T)}}function fo(e,t,E=!1){const s=t.emitsCache,T=s.get(e);if(T!==void 0)return T;const r=e.emits;let n={},R=!1;if(!re(e)){const o=i=>{const A=fo(i,t,!0);A&&(R=!0,Fe(n,A))};!E&&t.mixins.length&&t.mixins.forEach(o),e.extends&&o(e.extends),e.mixins&&e.mixins.forEach(o)}return!r&&!R?(ue(e)&&s.set(e,null),null):(te(r)?r.forEach(o=>n[o]=null):Fe(n,r),ue(e)&&s.set(e,n),n)}function Us(e,t){return!e||!Cs(t)?!1:(t=t.slice(2).replace(/Once$/,""),ae(e,t[0].toLowerCase()+t.slice(1))||ae(e,Kt(t))||ae(e,t))}function Wr(e){const{type:t,vnode:E,proxy:s,withProxy:T,propsOptions:[r],slots:n,attrs:R,emit:o,render:i,renderCache:A,props:O,data:N,setupState:l,ctx:C,inheritAttrs:H}=e,Q=ns(e);let W,j;try{if(E.shapeFlag&4){const x=T||s,k=x;W=At(i.call(k,x,A,O,l,N,C)),j=R}else{const x=t;W=At(x.length>1?x(O,{attrs:R,slots:n,emit:o}):x(O,null)),j=t.props?R:oO(R)}}catch(x){dE.length=0,Ps(x,e,1),W=F(dt)}let ee=W;if(j&&H!==!1){const x=Object.keys(j),{shapeFlag:k}=ee;x.length&&k&7&&(r&&x.some(wT)&&(j=AO(j,r)),ee=RE(ee,j,!1,!0))}return E.dirs&&(ee=RE(ee,null,!1,!0),ee.dirs=ee.dirs?ee.dirs.concat(E.dirs):E.dirs),E.transition&&tr(ee,E.transition),W=ee,ns(Q),W}const oO=e=>{let t;for(const E in e)(E==="class"||E==="style"||Cs(E))&&((t||(t={}))[E]=e[E]);return t},AO=(e,t)=>{const E={};for(const s in e)(!wT(s)||!(s.slice(9)in t))&&(E[s]=e[s]);return E};function iO(e,t,E){const{props:s,children:T,component:r}=e,{props:n,children:R,patchFlag:o}=t,i=r.emitsOptions;if(t.dirs||t.transition)return!0;if(E&&o>=0){if(o&1024)return!0;if(o&16)return s?Xr(s,n,i):!!n;if(o&8){const A=t.dynamicProps;for(let O=0;O<A.length;O++){const N=A[O];if(n[N]!==s[N]&&!Us(i,N))return!0}}}else return(T||R)&&(!R||!R.$stable)?!0:s===n?!1:s?n?Xr(s,n,i):!0:!!n;return!1}function Xr(e,t,E){const s=Object.keys(t);if(s.length!==Object.keys(e).length)return!0;for(let T=0;T<s.length;T++){const r=s[T];if(t[r]!==e[r]&&!Us(E,r))return!0}return!1}function SO({vnode:e,parent:t},E){for(;t;){const s=t.subTree;if(s.suspense&&s.suspense.activeBranch===e&&(s.el=e.el),s===e)(e=t.vnode).el=E,t=t.parent;else break}}const Do=e=>e.__isSuspense;function OO(e,t){t&&t.pendingBranch?te(e)?t.effects.push(...e):t.effects.push(e):cS(e)}const le=Symbol.for("v-fgt"),hs=Symbol.for("v-txt"),dt=Symbol.for("v-cmt"),qE=Symbol.for("v-stc"),dE=[];let $e=null;function P(e=!1){dE.push($e=e?null:[])}function IO(){dE.pop(),$e=dE[dE.length-1]||null}let BE=1;function Kr(e,t=!1){BE+=e,e<0&&$e&&t&&($e.hasOnce=!0)}function Po(e){return e.dynamicChildren=BE>0?$e||tE:null,IO(),BE>0&&$e&&$e.push(e),e}function y(e,t,E,s,T,r){return Po(S(e,t,E,s,T,r,!0))}function Ae(e,t,E,s,T){return Po(F(e,t,E,s,T,!0))}function bE(e){return e?e.__v_isVNode===!0:!1}function lE(e,t){return e.type===t.type&&e.key===t.key}const Mo=({key:e})=>e??null,jE=({ref:e,ref_key:t,ref_for:E})=>(typeof e=="number"&&(e=""+e),e!=null?fe(e)||pe(e)||re(e)?{i:ve,r:e,k:t,f:!!E}:e:null);function S(e,t=null,E=null,s=0,T=null,r=e===le?0:1,n=!1,R=!1){const o={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Mo(t),ref:t&&jE(t),scopeId:zR,slotScopeIds:null,children:E,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:r,patchFlag:s,dynamicProps:T,dynamicChildren:null,appContext:null,ctx:ve};return R?(nr(o,E),r&128&&e.normalize(o)):E&&(o.shapeFlag|=fe(E)?8:16),BE>0&&!n&&$e&&(o.patchFlag>0||r&6)&&o.patchFlag!==32&&$e.push(o),o}const F=aO;function aO(e,t=null,E=null,s=0,T=null,r=!1){if((!e||e===bS)&&(e=dt),bE(e)){const R=RE(e,t,!0);return E&&nr(R,E),BE>0&&!r&&$e&&(R.shapeFlag&6?$e[$e.indexOf(e)]=R:$e.push(R)),R.patchFlag=-2,R}if(dO(e)&&(e=e.__vccOpts),t){t=NO(t);let{class:R,style:o}=t;R&&!fe(R)&&(t.class=ge(R)),ue(o)&&(QT(o)&&!te(o)&&(o=Fe({},o)),t.style=fs(o))}const n=fe(e)?1:Do(e)?128:uS(e)?64:ue(e)?4:re(e)?2:0;return S(e,t,E,s,T,n,r,!0)}function NO(e){return e?QT(e)||Io(e)?Fe({},e):e:null}function RE(e,t,E=!1,s=!1){const{props:T,ref:r,patchFlag:n,children:R,transition:o}=e,i=t?_O(T||{},t):T,A={__v_isVNode:!0,__v_skip:!0,type:e.type,props:i,key:i&&Mo(i),ref:t&&t.ref?E&&r?te(r)?r.concat(jE(t)):[r,jE(t)]:jE(t):r,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:R,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==le?n===-1?16:n|16:n,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:o,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&RE(e.ssContent),ssFallback:e.ssFallback&&RE(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return o&&s&&tr(A,o.clone(A)),A}function ye(e=" ",t=0){return F(hs,null,e,t)}function lO(e,t){const E=F(qE,null,e);return E.staticCount=t,E}function Ee(e="",t=!1){return t?(P(),Ae(dt,null,e)):F(dt,null,e)}function At(e){return e==null||typeof e=="boolean"?F(dt):te(e)?F(le,null,e.slice()):bE(e)?ut(e):F(hs,null,String(e))}function ut(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:RE(e)}function nr(e,t){let E=0;const{shapeFlag:s}=e;if(t==null)t=null;else if(te(t))E=16;else if(typeof t=="object")if(s&65){const T=t.default;T&&(T._c&&(T._d=!1),nr(e,T()),T._c&&(T._d=!0));return}else{E=32;const T=t._;!T&&!Io(t)?t._ctx=ve:T===3&&ve&&(ve.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else re(t)?(t={default:t,_ctx:ve},E=32):(t=String(t),s&64?(E=16,t=[ye(t)]):E=8);e.children=t,e.shapeFlag|=E}function _O(...e){const t={};for(let E=0;E<e.length;E++){const s=e[E];for(const T in s)if(T==="class")t.class!==s.class&&(t.class=ge([t.class,s.class]));else if(T==="style")t.style=fs([t.style,s.style]);else if(Cs(T)){const r=t[T],n=s[T];n&&r!==n&&!(te(r)&&r.includes(n))&&(t[T]=r?[].concat(r,n):n)}else T!==""&&(t[T]=s[T])}return t}function Rt(e,t,E,s=null){St(e,t,7,[E,s])}const CO=io();let LO=0;function cO(e,t,E){const s=e.type,T=(t?t.appContext:e.appContext)||CO,r={uid:LO++,vnode:e,type:s,parent:t,appContext:T,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new GR(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(T.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:No(s,T),emitsOptions:fo(s,T),emit:null,emitted:null,propsDefaults:Ce,inheritAttrs:s.inheritAttrs,ctx:Ce,data:Ce,props:Ce,attrs:Ce,slots:Ce,refs:Ce,setupState:Ce,setupContext:null,suspense:E,suspenseId:E?E.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return r.ctx={_:r},r.root=t?t.root:r,r.emit=RO.bind(null,r),e.ce&&e.ce(r),r}let He=null,As,MT;{const e=ps(),t=(E,s)=>{let T;return(T=e[E])||(T=e[E]=[]),T.push(s),r=>{T.length>1?T.forEach(n=>n(r)):T[0](r)}};As=t("__VUE_INSTANCE_SETTERS__",E=>He=E),MT=t("__VUE_SSR_SETTERS__",E=>yE=E)}const VE=e=>{const t=He;return As(e),e.scope.on(),()=>{e.scope.off(),As(t)}},$r=()=>{He&&He.scope.off(),As(null)};function Uo(e){return e.vnode.shapeFlag&4}let yE=!1;function uO(e,t=!1,E=!1){t&&MT(t);const{props:s,children:T}=e.vnode,r=Uo(e);JS(e,s,r,t),QS(e,T,E);const n=r?pO(e,t):void 0;return t&&MT(!1),n}function pO(e,t){const E=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,vS);const{setup:s}=E;if(s){Mt();const T=e.setupContext=s.length>1?DO(e):null,r=VE(e),n=YE(s,e,0,[e.props,T]),R=fR(n);if(Ut(),r(),(R||e.sp)&&!TE(e)&&so(e),R){if(n.then($r,$r),t)return n.then(o=>{Jr(e,o)}).catch(o=>{Ps(o,e,0)});e.asyncDep=n}else Jr(e,n)}else ho(e)}function Jr(e,t,E){re(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:ue(t)&&(e.setupState=kR(t)),ho(e)}function ho(e,t,E){const s=e.type;e.render||(e.render=s.render||it);{const T=VE(e);Mt();try{FS(e)}finally{Ut(),T()}}}const fO={get(e,t){return Be(e,"get",""),e[t]}};function DO(e){const t=E=>{e.exposed=E||{}};return{attrs:new Proxy(e.attrs,fO),slots:e.slots,emit:e.emit,expose:t}}function Rr(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(kR(ZT(e.exposed)),{get(t,E){if(E in t)return t[E];if(E in DE)return DE[E](e)},has(t,E){return E in t||E in DE}})):e.proxy}function PO(e,t=!0){return re(e)?e.displayName||e.name:e.name||t&&e.__name}function dO(e){return re(e)&&"__vccOpts"in e}const tt=(e,t)=>NS(e,t,yE);function vE(e,t,E){const s=arguments.length;return s===2?ue(t)&&!te(t)?bE(t)?F(e,null,[t]):F(e,t):F(e,null,t):(s>3?E=Array.prototype.slice.call(arguments,2):s===3&&bE(E)&&(E=[E]),F(e,t,E))}const MO="3.5.13";/**
16
+ * @vue/runtime-dom v3.5.13
17
+ * (c) 2018-present Yuxi (Evan) You and Vue contributors
18
+ * @license MIT
19
+ **/let UT;const kr=typeof window<"u"&&window.trustedTypes;if(kr)try{UT=kr.createPolicy("vue",{createHTML:e=>e})}catch{}const Go=UT?e=>UT.createHTML(e):e=>e,UO="http://www.w3.org/2000/svg",hO="http://www.w3.org/1998/Math/MathML",It=typeof document<"u"?document:null,qr=It&&It.createElement("template"),GO={insert:(e,t,E)=>{t.insertBefore(e,E||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,E,s)=>{const T=t==="svg"?It.createElementNS(UO,e):t==="mathml"?It.createElementNS(hO,e):E?It.createElement(e,{is:E}):It.createElement(e);return e==="select"&&s&&s.multiple!=null&&T.setAttribute("multiple",s.multiple),T},createText:e=>It.createTextNode(e),createComment:e=>It.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>It.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,E,s,T,r){const n=E?E.previousSibling:t.lastChild;if(T&&(T===r||T.nextSibling))for(;t.insertBefore(T.cloneNode(!0),E),!(T===r||!(T=T.nextSibling)););else{qr.innerHTML=Go(s==="svg"?`<svg>${e}</svg>`:s==="mathml"?`<math>${e}</math>`:e);const R=qr.content;if(s==="svg"||s==="mathml"){const o=R.firstChild;for(;o.firstChild;)R.appendChild(o.firstChild);R.removeChild(o)}t.insertBefore(R,E)}return[n?n.nextSibling:t.firstChild,E?E.previousSibling:t.lastChild]}},gO=Symbol("_vtc");function mO(e,t,E){const s=e[gO];s&&(t=(t?[t,...s]:[...s]).join(" ")),t==null?e.removeAttribute("class"):E?e.setAttribute("class",t):e.className=t}const jr=Symbol("_vod"),HO=Symbol("_vsh"),BO=Symbol(""),bO=/(^|;)\s*display\s*:/;function yO(e,t,E){const s=e.style,T=fe(E);let r=!1;if(E&&!T){if(t)if(fe(t))for(const n of t.split(";")){const R=n.slice(0,n.indexOf(":")).trim();E[R]==null&&QE(s,R,"")}else for(const n in t)E[n]==null&&QE(s,n,"");for(const n in E)n==="display"&&(r=!0),QE(s,n,E[n])}else if(T){if(t!==E){const n=s[BO];n&&(E+=";"+n),s.cssText=E,r=bO.test(E)}}else t&&e.removeAttribute("style");jr in e&&(e[jr]=r?s.display:"",e[HO]&&(s.display="none"))}const Qr=/\s*!important$/;function QE(e,t,E){if(te(E))E.forEach(s=>QE(e,t,s));else if(E==null&&(E=""),t.startsWith("--"))e.setProperty(t,E);else{const s=vO(e,t);Qr.test(E)?e.setProperty(Kt(s),E.replace(Qr,""),"important"):e[s]=E}}const Zr=["Webkit","Moz","ms"],Js={};function vO(e,t){const E=Js[t];if(E)return E;let s=ze(t);if(s!=="filter"&&s in e)return Js[t]=s;s=us(s);for(let T=0;T<Zr.length;T++){const r=Zr[T]+s;if(r in e)return Js[t]=r}return t}const zr="http://www.w3.org/1999/xlink";function en(e,t,E,s,T,r=Vi(t)){s&&t.startsWith("xlink:")?E==null?e.removeAttributeNS(zr,t.slice(6,t.length)):e.setAttributeNS(zr,t,E):E==null||r&&!MR(E)?e.removeAttribute(t):e.setAttribute(t,r?"":Nt(E)?String(E):E)}function tn(e,t,E,s,T){if(t==="innerHTML"||t==="textContent"){E!=null&&(e[t]=t==="innerHTML"?Go(E):E);return}const r=e.tagName;if(t==="value"&&r!=="PROGRESS"&&!r.includes("-")){const R=r==="OPTION"?e.getAttribute("value")||"":e.value,o=E==null?e.type==="checkbox"?"on":"":String(E);(R!==o||!("_value"in e))&&(e.value=o),E==null&&e.removeAttribute(t),e._value=E;return}let n=!1;if(E===""||E==null){const R=typeof e[t];R==="boolean"?E=MR(E):E==null&&R==="string"?(E="",n=!0):R==="number"&&(E=0,n=!0)}try{e[t]=E}catch{}n&&e.removeAttribute(T||t)}function FO(e,t,E,s){e.addEventListener(t,E,s)}function YO(e,t,E,s){e.removeEventListener(t,E,s)}const En=Symbol("_vei");function VO(e,t,E,s,T=null){const r=e[En]||(e[En]={}),n=r[t];if(s&&n)n.value=s;else{const[R,o]=xO(t);if(s){const i=r[t]=XO(s,T);FO(e,R,i,o)}else n&&(YO(e,R,n,o),r[t]=void 0)}}const sn=/(?:Once|Passive|Capture)$/;function xO(e){let t;if(sn.test(e)){t={};let s;for(;s=e.match(sn);)e=e.slice(0,e.length-s[0].length),t[s[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):Kt(e.slice(2)),t]}let ks=0;const wO=Promise.resolve(),WO=()=>ks||(wO.then(()=>ks=0),ks=Date.now());function XO(e,t){const E=s=>{if(!s._vts)s._vts=Date.now();else if(s._vts<=E.attached)return;St(KO(s,E.value),t,5,[s])};return E.value=e,E.attached=WO(),E}function KO(e,t){if(te(t)){const E=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{E.call(e),e._stopped=!0},t.map(s=>T=>!T._stopped&&s&&s(T))}else return t}const Tn=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,$O=(e,t,E,s,T,r)=>{const n=T==="svg";t==="class"?mO(e,s,n):t==="style"?yO(e,E,s):Cs(t)?wT(t)||VO(e,t,E,s,r):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):JO(e,t,s,n))?(tn(e,t,s),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&en(e,t,s,n,r,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!fe(s))?tn(e,ze(t),s,r,t):(t==="true-value"?e._trueValue=s:t==="false-value"&&(e._falseValue=s),en(e,t,s,n))};function JO(e,t,E,s){if(s)return!!(t==="innerHTML"||t==="textContent"||t in e&&Tn(t)&&re(E));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const T=e.tagName;if(T==="IMG"||T==="VIDEO"||T==="CANVAS"||T==="SOURCE")return!1}return Tn(t)&&fe(E)?!1:t in e}const kO=Fe({patchProp:$O},GO);let rn;function qO(){return rn||(rn=zS(kO))}const jO=(...e)=>{const t=qO().createApp(...e),{mount:E}=t;return t.mount=s=>{const T=ZO(s);if(!T)return;const r=t._component;!re(r)&&!r.render&&!r.template&&(r.template=T.innerHTML),T.nodeType===1&&(T.textContent="");const n=E(T,!1,QO(T));return T instanceof Element&&(T.removeAttribute("v-cloak"),T.setAttribute("data-v-app","")),n},t};function QO(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function ZO(e){return fe(e)?document.querySelector(e):e}var nn=Ne({props:{code:{type:String,required:!0},language:{type:String,default:""},autodetect:{type:Boolean,default:!0},ignoreIllegals:{type:Boolean,default:!0}},setup:function(e){var t=Qe(e.language);rE(function(){return e.language},function(T){t.value=T});var E=tt(function(){return e.autodetect||!t.value}),s=tt(function(){return!E.value&&!LE.getLanguage(t.value)});return{className:tt(function(){return s.value?"":"hljs "+t.value}),highlightedCode:tt(function(){var T;if(s.value)return console.warn('The language "'+t.value+'" you specified could not be found.'),e.code.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;");if(E.value){var r=LE.highlightAuto(e.code);return t.value=(T=r.language)!==null&&T!==void 0?T:"",r.value}return(r=LE.highlight(e.code,{language:t.value,ignoreIllegals:e.ignoreIllegals})).value})}},render:function(){return vE("pre",{},[vE("code",{class:this.className,innerHTML:this.highlightedCode})])}}),zO={install:function(e){e.component("highlightjs",nn)},component:nn},eI=!1;/*!
20
+ * pinia v2.3.0
21
+ * (c) 2024 Eduardo San Martin Morote
5
22
  * @license MIT
6
- */let mo;const vT=e=>mo=e,Ho=Symbol();function lr(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var yE;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(yE||(yE={}));function ca(){const e=VR(!0),t=e.run(()=>ut({}));let E=[],T=[];const r=mT({install(s){vT(r),r._a=s,s.provide(Ho,r),s.config.globalProperties.$pinia=r,T.forEach(n=>E.push(n)),T=[]},use(s){return!this._a&&!Ca?T.push(s):E.push(s),this},_p:E,_a:null,_e:e,_s:new Map,state:t});return r}const yo=()=>{};function rn(e,t,E,T=yo){e.push(t);const r=()=>{const s=e.indexOf(t);s>-1&&(e.splice(s,1),T())};return!E&&wR()&&sS(r),r}function jt(e,...t){e.slice().forEach(E=>{E(...t)})}const La=e=>e();function _r(e,t){e instanceof Map&&t instanceof Map&&t.forEach((E,T)=>e.set(T,E)),e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const E in t){if(!t.hasOwnProperty(E))continue;const T=t[E],r=e[E];lr(r)&&lr(T)&&e.hasOwnProperty(E)&&!Ue(T)&&!ft(T)?e[E]=_r(r,T):e[E]=T}return e}const ua=Symbol();function pa(e){return!lr(e)||!e.hasOwnProperty(ua)}const{assign:Ct}=Object;function fa(e){return!!(Ue(e)&&e.effect)}function Pa(e,t,E,T){const{state:r,actions:s,getters:n}=t,R=E.state.value[e];let o;function A(){R||(E.state.value[e]=r?r():{});const i=GS(E.state.value[e]);return Ct(i,s,Object.keys(n||{}).reduce((a,I)=>(a[I]=mT(ze(()=>{vT(E);const l=E._s.get(e);return n[I].call(l,l)})),a),{}))}return o=bo(e,A,t,E,T,!0),o}function bo(e,t,E={},T,r,s){let n;const R=Ct({actions:{}},E),o={deep:!0};let A,i,a=[],I=[],l;const h=T.state.value[e];!s&&!h&&(T.state.value[e]={}),ut({});let b;function w(ee){let j;A=i=!1,typeof ee=="function"?(ee(T.state.value[e]),j={type:yE.patchFunction,storeId:e,events:l}):(_r(T.state.value[e],ee),j={type:yE.patchObject,payload:ee,storeId:e,events:l});const C=b=Symbol();so().then(()=>{b===C&&(A=!0)}),i=!0,jt(a,j,T.state.value[e])}const K=s?function(){const{state:j}=E,C=j?j():{};this.$patch(p=>{Ct(p,C)})}:yo;function k(){n.stop(),a=[],I=[],T._s.delete(e)}function F(ee,j){return function(){vT(T);const C=Array.from(arguments),p=[],L=[];function v(Z){p.push(Z)}function J(Z){L.push(Z)}jt(I,{args:C,name:ee,store:re,after:v,onError:J});let le;try{le=j.apply(this&&this.$id===e?this:re,C)}catch(Z){throw jt(L,Z),Z}return le instanceof Promise?le.then(Z=>(jt(p,Z),Z)).catch(Z=>(jt(L,Z),Promise.reject(Z))):(jt(p,le),le)}}const x={_p:T,$id:e,$onAction:rn.bind(null,I),$patch:w,$reset:K,$subscribe(ee,j={}){const C=rn(a,ee,j.detached,()=>p()),p=n.run(()=>EE(()=>T.state.value[e],L=>{(j.flush==="sync"?i:A)&&ee({storeId:e,type:yE.direct,events:l},L)},Ct({},o,j)));return C},$dispose:k},re=At(x);T._s.set(e,re);const ie=(T._a&&T._a.runWithContext||La)(()=>T._e.run(()=>(n=VR()).run(t)));for(const ee in ie){const j=ie[ee];if(Ue(j)&&!fa(j)||ft(j))s||(h&&pa(j)&&(Ue(j)?j.value=h[ee]:_r(j,h[ee])),T.state.value[e][ee]=j);else if(typeof j=="function"){const C=F(ee,j);ie[ee]=C,R.actions[ee]=j}}return Ct(re,ie),Ct(Oe(re),ie),Object.defineProperty(re,"$state",{get:()=>T.state.value[e],set:ee=>{w(j=>{Ct(j,ee)})}}),T._p.forEach(ee=>{Ct(re,n.run(()=>ee({store:re,app:T._a,pinia:T,options:R})))}),h&&s&&E.hydrate&&E.hydrate(re.$state,h),A=!0,i=!0,re}function Bo(e,t,E){let T,r;const s=typeof t=="function";typeof e=="string"?(T=e,r=s?E:t):(r=e,T=e.id);function n(R,o){const A=lO();return R=R||(A?GE(Ho,null):null),R&&vT(R),R=mo,R._s.has(T)||(s?bo(T,t,r,R):Pa(T,r,R)),R._s.get(T)}return n.$id=T,n}function Da(e,t){return Cr(e,e.childNodes,t)}function Cr(e,t,{mode:E="open",delegatesFocus:T=!1}={mode:"open"}){try{const r=e.shadowRoot;if(r!=null){console.error("[shadow] Attach shadow multiple times",e,t,r);return}else{const s=e.attachShadow({mode:E,delegatesFocus:T});return t&&da(s,t),s}}catch(r){console.error("[shadow] make shadow-root failed",e,t),console.error(r)}}function da(e,t){const E=document.createDocumentFragment();for(const T of t)E.appendChild(T);e.appendChild(E)}const Ma=document.createDocumentFragment(),CT=De({props:{media:String,nonce:String},setup(e,{slots:t}){return()=>{var E;return XE("style",{media:e.media,nonce:e.nonce},(E=t.default)==null?void 0:E.call(t))}}}),cT=Ua()(De({props:{mode:{type:String,default:"open"},delegatesFocus:{type:Boolean,default:!1},abstract:{type:Boolean,default:!1},tag:{type:String,default:"div"},adoptedStyleSheets:{type:Array}},emits:["error"],setup(e,{slots:t,expose:E,emit:T}){const r=ut(!1),s=ut(),n=ut(),R=ut(),o=ze(()=>R.value??Ma),A=At({shadow_root:R});return E(A),lo(()=>{r.value=e.abstract}),Xr(()=>{var i;try{r.value?n.value.parentElement.shadowRoot?R.value=n.value.parentElement.shadowRoot:R.value=Cr(n.value.parentElement,void 0,{mode:e.mode,delegatesFocus:e.delegatesFocus}):R.value=Cr(s.value,void 0,{mode:e.mode,delegatesFocus:e.delegatesFocus}),(i=R.value)==null||i.styleSheets}catch(a){console.error(a),T("error",a)}}),EE([R,()=>e.adoptedStyleSheets],([i,a])=>{if(!(!i||!a))try{i.adoptedStyleSheets=a}catch(I){console.error(I),T("error",I)}}),()=>{var a;const i=XE(hO,{ref:n,to:o.value},[(a=t.default)==null?void 0:a.call(t)]);return r.value?i:XE(e.tag,{ref:s},i)}},install:Fo,Style:CT}));function Ua(){return e=>e}function Fo(e){e.component("shadow-root",cT),e.directive("shadow",{beforeMount(t){console.warn("[VueShadowDom] Deprecated v-shadow directive, use <shadow-root> component"),Da(t)}})}var ha={ShadowRoot:cT,ShadowStyle:CT,shadow_root:cT,shadow_style:CT,install:Fo},cr={exports:{}};(function(e,t){(function(E,T){T(t)})(Qt,function(E){var T={logger:self.console,WebSocket:self.WebSocket},r={log:function(){if(this.enabled){for(var p,L=arguments.length,v=Array(L),J=0;J<L;J++)v[J]=arguments[J];v.push(Date.now()),(p=T.logger).log.apply(p,["[ActionCable]"].concat(v))}}},s=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(C){return typeof C}:function(C){return C&&typeof Symbol=="function"&&C.constructor===Symbol&&C!==Symbol.prototype?"symbol":typeof C},n=function(C,p){if(!(C instanceof p))throw new TypeError("Cannot call a class as a function")},R=function(){function C(p,L){for(var v=0;v<L.length;v++){var J=L[v];J.enumerable=J.enumerable||!1,J.configurable=!0,"value"in J&&(J.writable=!0),Object.defineProperty(p,J.key,J)}}return function(p,L,v){return L&&C(p.prototype,L),v&&C(p,v),p}}(),o=function(){return new Date().getTime()},A=function(p){return(o()-p)/1e3},i=function(p,L,v){return Math.max(L,Math.min(v,p))},a=function(){function C(p){n(this,C),this.visibilityDidChange=this.visibilityDidChange.bind(this),this.connection=p,this.reconnectAttempts=0}return C.prototype.start=function(){this.isRunning()||(this.startedAt=o(),delete this.stoppedAt,this.startPolling(),addEventListener("visibilitychange",this.visibilityDidChange),r.log("ConnectionMonitor started. pollInterval = "+this.getPollInterval()+" ms"))},C.prototype.stop=function(){this.isRunning()&&(this.stoppedAt=o(),this.stopPolling(),removeEventListener("visibilitychange",this.visibilityDidChange),r.log("ConnectionMonitor stopped"))},C.prototype.isRunning=function(){return this.startedAt&&!this.stoppedAt},C.prototype.recordPing=function(){this.pingedAt=o()},C.prototype.recordConnect=function(){this.reconnectAttempts=0,this.recordPing(),delete this.disconnectedAt,r.log("ConnectionMonitor recorded connect")},C.prototype.recordDisconnect=function(){this.disconnectedAt=o(),r.log("ConnectionMonitor recorded disconnect")},C.prototype.startPolling=function(){this.stopPolling(),this.poll()},C.prototype.stopPolling=function(){clearTimeout(this.pollTimeout)},C.prototype.poll=function(){var L=this;this.pollTimeout=setTimeout(function(){L.reconnectIfStale(),L.poll()},this.getPollInterval())},C.prototype.getPollInterval=function(){var L=this.constructor.pollInterval,v=L.min,J=L.max,le=L.multiplier,Z=le*Math.log(this.reconnectAttempts+1);return Math.round(i(Z,v,J)*1e3)},C.prototype.reconnectIfStale=function(){this.connectionIsStale()&&(r.log("ConnectionMonitor detected stale connection. reconnectAttempts = "+this.reconnectAttempts+", pollInterval = "+this.getPollInterval()+" ms, time disconnected = "+A(this.disconnectedAt)+" s, stale threshold = "+this.constructor.staleThreshold+" s"),this.reconnectAttempts++,this.disconnectedRecently()?r.log("ConnectionMonitor skipping reopening recent disconnect"):(r.log("ConnectionMonitor reopening"),this.connection.reopen()))},C.prototype.connectionIsStale=function(){return A(this.pingedAt?this.pingedAt:this.startedAt)>this.constructor.staleThreshold},C.prototype.disconnectedRecently=function(){return this.disconnectedAt&&A(this.disconnectedAt)<this.constructor.staleThreshold},C.prototype.visibilityDidChange=function(){var L=this;document.visibilityState==="visible"&&setTimeout(function(){(L.connectionIsStale()||!L.connection.isOpen())&&(r.log("ConnectionMonitor reopening stale connection on visibilitychange. visibilityState = "+document.visibilityState),L.connection.reopen())},200)},C}();a.pollInterval={min:3,max:30,multiplier:5},a.staleThreshold=6;var I={message_types:{welcome:"welcome",disconnect:"disconnect",ping:"ping",confirmation:"confirm_subscription",rejection:"reject_subscription"},disconnect_reasons:{unauthorized:"unauthorized",invalid_request:"invalid_request",server_restart:"server_restart"},default_mount_path:"/cable",protocols:["actioncable-v1-json","actioncable-unsupported"]},l=I.message_types,h=I.protocols,b=h.slice(0,h.length-1),w=[].indexOf,K=function(){function C(p){n(this,C),this.open=this.open.bind(this),this.consumer=p,this.subscriptions=this.consumer.subscriptions,this.monitor=new a(this),this.disconnected=!0}return C.prototype.send=function(L){return this.isOpen()?(this.webSocket.send(JSON.stringify(L)),!0):!1},C.prototype.open=function(){return this.isActive()?(r.log("Attempted to open WebSocket, but existing socket is "+this.getState()),!1):(r.log("Opening WebSocket, current state is "+this.getState()+", subprotocols: "+h),this.webSocket&&this.uninstallEventHandlers(),this.webSocket=new T.WebSocket(this.consumer.url,h),this.installEventHandlers(),this.monitor.start(),!0)},C.prototype.close=function(){var L=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{allowReconnect:!0},v=L.allowReconnect;if(v||this.monitor.stop(),this.isActive())return this.webSocket.close()},C.prototype.reopen=function(){if(r.log("Reopening WebSocket, current state is "+this.getState()),this.isActive())try{return this.close()}catch(L){r.log("Failed to reopen WebSocket",L)}finally{r.log("Reopening WebSocket in "+this.constructor.reopenDelay+"ms"),setTimeout(this.open,this.constructor.reopenDelay)}else return this.open()},C.prototype.getProtocol=function(){if(this.webSocket)return this.webSocket.protocol},C.prototype.isOpen=function(){return this.isState("open")},C.prototype.isActive=function(){return this.isState("open","connecting")},C.prototype.isProtocolSupported=function(){return w.call(b,this.getProtocol())>=0},C.prototype.isState=function(){for(var L=arguments.length,v=Array(L),J=0;J<L;J++)v[J]=arguments[J];return w.call(v,this.getState())>=0},C.prototype.getState=function(){if(this.webSocket){for(var L in T.WebSocket)if(T.WebSocket[L]===this.webSocket.readyState)return L.toLowerCase()}return null},C.prototype.installEventHandlers=function(){for(var L in this.events){var v=this.events[L].bind(this);this.webSocket["on"+L]=v}},C.prototype.uninstallEventHandlers=function(){for(var L in this.events)this.webSocket["on"+L]=function(){}},C}();K.reopenDelay=500,K.prototype.events={message:function(p){if(this.isProtocolSupported()){var L=JSON.parse(p.data),v=L.identifier,J=L.message,le=L.reason,Z=L.reconnect,u=L.type;switch(u){case l.welcome:return this.monitor.recordConnect(),this.subscriptions.reload();case l.disconnect:return r.log("Disconnecting. Reason: "+le),this.close({allowReconnect:Z});case l.ping:return this.monitor.recordPing();case l.confirmation:return this.subscriptions.confirmSubscription(v),this.subscriptions.notify(v,"connected");case l.rejection:return this.subscriptions.reject(v);default:return this.subscriptions.notify(v,"received",J)}}},open:function(){if(r.log("WebSocket onopen event, using '"+this.getProtocol()+"' subprotocol"),this.disconnected=!1,!this.isProtocolSupported())return r.log("Protocol is unsupported. Stopping monitor and disconnecting."),this.close({allowReconnect:!1})},close:function(p){if(r.log("WebSocket onclose event"),!this.disconnected)return this.disconnected=!0,this.monitor.recordDisconnect(),this.subscriptions.notifyAll("disconnected",{willAttemptReconnect:this.monitor.isRunning()})},error:function(){r.log("WebSocket onerror event")}};var k=function(p,L){if(L!=null)for(var v in L){var J=L[v];p[v]=J}return p},F=function(){function C(p){var L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},v=arguments[2];n(this,C),this.consumer=p,this.identifier=JSON.stringify(L),k(this,v)}return C.prototype.perform=function(L){var v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return v.action=L,this.send(v)},C.prototype.send=function(L){return this.consumer.send({command:"message",identifier:this.identifier,data:JSON.stringify(L)})},C.prototype.unsubscribe=function(){return this.consumer.subscriptions.remove(this)},C}(),x=function(){function C(p){n(this,C),this.subscriptions=p,this.pendingSubscriptions=[]}return C.prototype.guarantee=function(L){this.pendingSubscriptions.indexOf(L)==-1?(r.log("SubscriptionGuarantor guaranteeing "+L.identifier),this.pendingSubscriptions.push(L)):r.log("SubscriptionGuarantor already guaranteeing "+L.identifier),this.startGuaranteeing()},C.prototype.forget=function(L){r.log("SubscriptionGuarantor forgetting "+L.identifier),this.pendingSubscriptions=this.pendingSubscriptions.filter(function(v){return v!==L})},C.prototype.startGuaranteeing=function(){this.stopGuaranteeing(),this.retrySubscribing()},C.prototype.stopGuaranteeing=function(){clearTimeout(this.retryTimeout)},C.prototype.retrySubscribing=function(){var L=this;this.retryTimeout=setTimeout(function(){L.subscriptions&&typeof L.subscriptions.subscribe=="function"&&L.pendingSubscriptions.map(function(v){r.log("SubscriptionGuarantor resubscribing "+v.identifier),L.subscriptions.subscribe(v)})},500)},C}(),re=function(){function C(p){n(this,C),this.consumer=p,this.guarantor=new x(this),this.subscriptions=[]}return C.prototype.create=function(L,v){var J=L,le=(typeof J>"u"?"undefined":s(J))==="object"?J:{channel:J},Z=new F(this.consumer,le,v);return this.add(Z)},C.prototype.add=function(L){return this.subscriptions.push(L),this.consumer.ensureActiveConnection(),this.notify(L,"initialized"),this.subscribe(L),L},C.prototype.remove=function(L){return this.forget(L),this.findAll(L.identifier).length||this.sendCommand(L,"unsubscribe"),L},C.prototype.reject=function(L){var v=this;return this.findAll(L).map(function(J){return v.forget(J),v.notify(J,"rejected"),J})},C.prototype.forget=function(L){return this.guarantor.forget(L),this.subscriptions=this.subscriptions.filter(function(v){return v!==L}),L},C.prototype.findAll=function(L){return this.subscriptions.filter(function(v){return v.identifier===L})},C.prototype.reload=function(){var L=this;return this.subscriptions.map(function(v){return L.subscribe(v)})},C.prototype.notifyAll=function(L){for(var v=this,J=arguments.length,le=Array(J>1?J-1:0),Z=1;Z<J;Z++)le[Z-1]=arguments[Z];return this.subscriptions.map(function(u){return v.notify.apply(v,[u,L].concat(le))})},C.prototype.notify=function(L,v){for(var J=arguments.length,le=Array(J>2?J-2:0),Z=2;Z<J;Z++)le[Z-2]=arguments[Z];var u=void 0;return typeof L=="string"?u=this.findAll(L):u=[L],u.map(function(G){return typeof G[v]=="function"?G[v].apply(G,le):void 0})},C.prototype.subscribe=function(L){this.sendCommand(L,"subscribe")&&this.guarantor.guarantee(L)},C.prototype.confirmSubscription=function(L){var v=this;r.log("Subscription confirmed "+L),this.findAll(L).map(function(J){return v.guarantor.forget(J)})},C.prototype.sendCommand=function(L,v){var J=L.identifier;return this.consumer.send({command:v,identifier:J})},C}(),pe=function(){function C(p){n(this,C),this._url=p,this.subscriptions=new re(this),this.connection=new K(this)}return C.prototype.send=function(L){return this.connection.send(L)},C.prototype.connect=function(){return this.connection.open()},C.prototype.disconnect=function(){return this.connection.close({allowReconnect:!1})},C.prototype.ensureActiveConnection=function(){if(!this.connection.isActive())return this.connection.open()},R(C,[{key:"url",get:function(){return ie(this._url)}}]),C}();function ie(C){if(typeof C=="function"&&(C=C()),C&&!/^wss?:/i.test(C)){var p=document.createElement("a");return p.href=C,p.href=p.href,p.protocol=p.protocol.replace("http","ws"),p.href}else return C}function ee(){var C=arguments.length>0&&arguments[0]!==void 0?arguments[0]:j("url")||I.default_mount_path;return new pe(C)}function j(C){var p=document.head.querySelector("meta[name='action-cable-"+C+"']");if(p)return p.getAttribute("content")}E.Connection=K,E.ConnectionMonitor=a,E.Consumer=pe,E.INTERNAL=I,E.Subscription=F,E.Subscriptions=re,E.SubscriptionGuarantor=x,E.adapters=T,E.createWebSocketURL=ie,E.logger=r,E.createConsumer=ee,E.getConfig=j,Object.defineProperty(E,"__esModule",{value:!0})})})(cr,cr.exports);var ga=cr.exports;function sn(e,t){return U(),Y("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[O("path",{"fill-rule":"evenodd",d:"M11.78 4.22a.75.75 0 0 1 0 1.06L6.56 10.5h3.69a.75.75 0 0 1 0 1.5h-5.5a.75.75 0 0 1-.75-.75v-5.5a.75.75 0 0 1 1.5 0v3.69l5.22-5.22a.75.75 0 0 1 1.06 0Z","clip-rule":"evenodd"})])}function Ga(e,t){return U(),Y("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[O("path",{"fill-rule":"evenodd",d:"M13.78 10.47a.75.75 0 0 1 0 1.06l-2.25 2.25a.75.75 0 0 1-1.06 0l-2.25-2.25a.75.75 0 1 1 1.06-1.06l.97.97V5.75a.75.75 0 0 1 1.5 0v5.69l.97-.97a.75.75 0 0 1 1.06 0ZM2.22 5.53a.75.75 0 0 1 0-1.06l2.25-2.25a.75.75 0 0 1 1.06 0l2.25 2.25a.75.75 0 0 1-1.06 1.06l-.97-.97v5.69a.75.75 0 0 1-1.5 0V4.56l-.97.97a.75.75 0 0 1-1.06 0Z","clip-rule":"evenodd"})])}function vo(e,t){return U(),Y("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[O("path",{"fill-rule":"evenodd",d:"M4.22 6.22a.75.75 0 0 1 1.06 0L8 8.94l2.72-2.72a.75.75 0 1 1 1.06 1.06l-3.25 3.25a.75.75 0 0 1-1.06 0L4.22 7.28a.75.75 0 0 1 0-1.06Z","clip-rule":"evenodd"})])}function Yo(e,t){return U(),Y("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[O("path",{d:"M8 7c3.314 0 6-1.343 6-3s-2.686-3-6-3-6 1.343-6 3 2.686 3 6 3Z"}),O("path",{d:"M8 8.5c1.84 0 3.579-.37 4.914-1.037A6.33 6.33 0 0 0 14 6.78V8c0 1.657-2.686 3-6 3S2 9.657 2 8V6.78c.346.273.72.5 1.087.683C4.42 8.131 6.16 8.5 8 8.5Z"}),O("path",{d:"M8 12.5c1.84 0 3.579-.37 4.914-1.037.366-.183.74-.41 1.086-.684V12c0 1.657-2.686 3-6 3s-6-1.343-6-3v-1.22c.346.273.72.5 1.087.683C4.42 12.131 6.16 12.5 8 12.5Z"})])}function ma(e,t){return U(),Y("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[O("path",{"fill-rule":"evenodd",d:"M4.78 4.97a.75.75 0 0 1 0 1.06L2.81 8l1.97 1.97a.75.75 0 1 1-1.06 1.06l-2.5-2.5a.75.75 0 0 1 0-1.06l2.5-2.5a.75.75 0 0 1 1.06 0ZM11.22 4.97a.75.75 0 0 0 0 1.06L13.19 8l-1.97 1.97a.75.75 0 1 0 1.06 1.06l2.5-2.5a.75.75 0 0 0 0-1.06l-2.5-2.5a.75.75 0 0 0-1.06 0ZM8.856 2.008a.75.75 0 0 1 .636.848l-1.5 10.5a.75.75 0 0 1-1.484-.212l1.5-10.5a.75.75 0 0 1 .848-.636Z","clip-rule":"evenodd"})])}function Ha(e,t){return U(),Y("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[O("path",{d:"M6 6v4h4V6H6Z"}),O("path",{"fill-rule":"evenodd",d:"M5.75 1a.75.75 0 0 0-.75.75V3a2 2 0 0 0-2 2H1.75a.75.75 0 0 0 0 1.5H3v.75H1.75a.75.75 0 0 0 0 1.5H3v.75H1.75a.75.75 0 0 0 0 1.5H3a2 2 0 0 0 2 2v1.25a.75.75 0 0 0 1.5 0V13h.75v1.25a.75.75 0 0 0 1.5 0V13h.75v1.25a.75.75 0 0 0 1.5 0V13a2 2 0 0 0 2-2h1.25a.75.75 0 0 0 0-1.5H13v-.75h1.25a.75.75 0 0 0 0-1.5H13V6.5h1.25a.75.75 0 0 0 0-1.5H13a2 2 0 0 0-2-2V1.75a.75.75 0 0 0-1.5 0V3h-.75V1.75a.75.75 0 0 0-1.5 0V3H6.5V1.75A.75.75 0 0 0 5.75 1ZM11 4.5a.5.5 0 0 1 .5.5v6a.5.5 0 0 1-.5.5H5a.5.5 0 0 1-.5-.5V5a.5.5 0 0 1 .5-.5h6Z","clip-rule":"evenodd"})])}function ya(e,t){return U(),Y("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[O("path",{d:"M4.5 2a.5.5 0 0 0-.5.5v11a.5.5 0 0 0 .5.5h1a.5.5 0 0 0 .5-.5v-11a.5.5 0 0 0-.5-.5h-1ZM10.5 2a.5.5 0 0 0-.5.5v11a.5.5 0 0 0 .5.5h1a.5.5 0 0 0 .5-.5v-11a.5.5 0 0 0-.5-.5h-1Z"})])}function ba(e,t){return U(),Y("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[O("path",{d:"M3 3.732a1.5 1.5 0 0 1 2.305-1.265l6.706 4.267a1.5 1.5 0 0 1 0 2.531l-6.706 4.268A1.5 1.5 0 0 1 3 12.267V3.732Z"})])}function Ba(e,t){return U(),Y("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[O("path",{"fill-rule":"evenodd",d:"M5 3.25V4H2.75a.75.75 0 0 0 0 1.5h.3l.815 8.15A1.5 1.5 0 0 0 5.357 15h5.285a1.5 1.5 0 0 0 1.493-1.35l.815-8.15h.3a.75.75 0 0 0 0-1.5H11v-.75A2.25 2.25 0 0 0 8.75 1h-1.5A2.25 2.25 0 0 0 5 3.25Zm2.25-.75a.75.75 0 0 0-.75.75V4h3v-.75a.75.75 0 0 0-.75-.75h-1.5ZM6.05 6a.75.75 0 0 1 .787.713l.275 5.5a.75.75 0 0 1-1.498.075l-.275-5.5A.75.75 0 0 1 6.05 6Zm3.9 0a.75.75 0 0 1 .712.787l-.275 5.5a.75.75 0 0 1-1.498-.075l.275-5.5a.75.75 0 0 1 .786-.711Z","clip-rule":"evenodd"})])}function Fa(e,t){return U(),Y("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[O("path",{"fill-rule":"evenodd",d:"M8 15A7 7 0 1 0 8 1a7 7 0 0 0 0 14Zm2.78-4.22a.75.75 0 0 1-1.06 0L8 9.06l-1.72 1.72a.75.75 0 1 1-1.06-1.06L6.94 8 5.22 6.28a.75.75 0 0 1 1.06-1.06L8 6.94l1.72-1.72a.75.75 0 1 1 1.06 1.06L9.06 8l1.72 1.72a.75.75 0 0 1 0 1.06Z","clip-rule":"evenodd"})])}const va=["textContent"],Ya=De({__name:"TabButton",props:{label:{},count:{},isActive:{type:Boolean}},setup(e){const t=e;return(E,T)=>(U(),Y("button",{class:$e(["text-sm flex items-center space-x-1 px-3 py-2 border-0",{"bg-stone-300 rounded-sm":t.isActive}])},[O("span",{class:$e({"font-medium":t.isActive})},[Rt(E.$slots,"default")],2),t.count!=null?(U(),Y("span",{key:0,class:$e(["p-0.5 rounded-full text-xs",{"px-1.5":t.count<10,hidden:t.count==0,"bg-stone-300":t.count>0&&!t.isActive,"bg-stone-400":t.count>0&&t.isActive}]),textContent:Ae(t.count)},null,10,va)):oe("",!0)],2))}}),xo=(e,t)=>{const E=e.__vccOpts||e;for(const[T,r]of t)E[T]=r;return E},xa={},Va={class:"px-3 py-2"};function wa(e,t){return U(),Y("div",Va,[Rt(e.$slots,"default")])}const Dt=xo(xa,[["render",wa]]),Wa={key:0},Xa=O("div",{class:"text-gray-500"},"No models were initialized.",-1),$a=[Xa],Ka={key:1,class:"divide-y divide-stone-300"},Ja=O("thead",null,[O("tr",null,[O("th",{scope:"col",class:"w-36 py-3.5 pl-4 pr-3 text-left text-sm font-semibold text-stone-900 sm:pl-0"}," Model "),O("th",{scope:"col",class:"px-3 py-3.5 text-left text-sm font-semibold text-stone-900"},"Count")])],-1),ka={class:"divide-y divide-stone-200"},ja={class:"whitespace-nowrap py-4 pl-4 pr-3 text-sm font-medium text-stone-900 sm:pl-0"},qa={class:"whitespace-nowrap px-3 py-4 text-sm text-stone-500 text-center"},Qa=De({__name:"ModelsPanel",props:{models:{},count:{}},setup(e){const t=e;return(E,T)=>(U(),Ce(Dt,null,{default:ne(()=>[t.count==0?(U(),Y("div",Wa,$a)):oe("",!0),t.count>0?(U(),Y("table",Ka,[Ja,O("tbody",ka,[(U(!0),Y(Le,null,Je(t.models,(r,s)=>(U(),Y("tr",{key:s},[O("td",ja,Ae(s),1),O("td",qa,Ae(r),1)]))),128))])])):oe("",!0)]),_:1}))}}),Za={key:0},za=O("div",{class:"text-gray-500"},"No jobs enqueued.",-1),eI=[za],tI={key:1,class:"my-4 mx-6 divide-y divide-stone-300"},EI=O("thead",null,[O("tr",null,[O("th",{scope:"col",class:"w-36 py-3.5 pl-4 pr-3 text-left text-sm font-semibold text-stone-900 sm:pl-0"},"Job"),O("th",{scope:"col",class:"px-3 py-3.5 text-left text-sm font-semibold text-stone-900"},"Args"),O("th",{scope:"col",class:"px-3 py-3.5 text-left text-sm font-semibold text-stone-900"},"Logs")])],-1),TI={class:"divide-y divide-stone-200"},rI={class:"whitespace-nowrap p-4 pr-8 text-stone-900"},sI=["textContent"],nI={class:"text-stone-600 text-sm"},RI=["textContent"],oI=["textContent"],AI={class:"whitespace-nowrap px-3 p-4 pr-8 text-sm"},iI={class:"whitespace-nowrap px-3 p-4 pr-8 text-sm text-stone-500"},SI=["innerHTML"],OI=De({__name:"JobsPanel",props:{jobs:{}},setup(e){const t=e;function E(T){return T==null?"-":new Date(T*1e3).toLocaleString()}return(T,r)=>{const s=$E("highlightjs");return U(),Ce(Dt,null,{default:ne(()=>[t.jobs.length==0?(U(),Y("div",Za,eI)):oe("",!0),t.jobs.length>0?(U(),Y("table",tI,[EI,O("tbody",TI,[(U(!0),Y(Le,null,Je(t.jobs,(n,R)=>(U(),Y("tr",{key:n.id},[O("td",rI,[O("div",{class:"text-lg font-bold",textContent:Ae(n.class)},null,8,sI),O("div",nI,[O("div",{textContent:Ae("Queue: "+n.queue)},null,8,RI),O("div",{textContent:Ae("At: "+E(n.scheduled_at))},null,8,oI)])]),O("td",AI,[$(s,{language:"json",code:JSON.stringify(n.args,null,2)},null,8,["code"])]),O("td",iI,[(U(!0),Y(Le,null,Je(n.logs,(o,A)=>(U(),Y("div",{innerHTML:(A>0?"  ".repeat(A)+"↳ ":"")+o,class:""},null,8,SI))),256))])]))),128))])])):oe("",!0)]),_:1})}}}),aI={key:0},II=O("div",{class:"text-gray-500"},"No logs to show. Are you using the correct minimum level in your config?",-1),NI=[II],lI={class:"flex items-center space-y-1 space-x-3"},_I={class:"w-32 text-right text-gray-400"},CI={class:"w-20 text-center"},cI=["title"],LI=["innerHTML"],uI=De({__name:"LogsPanel",props:{logs:{}},setup(e){const t=e;function E(T){return(T.progname||T.message||"").replace(" ","&nbsp;&nbsp;")}return(T,r)=>(U(),Ce(Dt,null,{default:ne(()=>[t.logs.length==0?(U(),Y("div",aI,NI)):oe("",!0),(U(!0),Y(Le,null,Je(t.logs,s=>(U(),Y("div",lI,[O("div",_I,Ae(s.time),1),O("div",CI,[O("span",{class:$e(["px-1 py-0.5 rounded text-white text-xs font-mono font-medium",{"bg-stone-400":s.severity==0,"bg-blue-500":s.severity==1,"bg-amber-400":s.severity==2,"bg-red-400":s.severity==2,"bg-fuchsia-500":s.severity>=3}]),title:s.severity_label},Ae(s.severity_label),11,cI)]),O("div",{class:"text-gray-800",innerHTML:E(s)},null,8,LI)]))),256))]),_:1}))}});class pI{constructor(t){je(this,"id");je(this,"meta");je(this,"request");je(this,"response");je(this,"models");je(this,"queries");je(this,"jobs");je(this,"messages");je(this,"cache");je(this,"logs");this.id=(t==null?void 0:t.id)||"null",this.meta=(t==null?void 0:t.meta)||{},this.request=(t==null?void 0:t.request)||{},this.response=(t==null?void 0:t.response)||{},this.models=(t==null?void 0:t.models)||{},this.queries=(t==null?void 0:t.queries)||[],this.jobs=(t==null?void 0:t.jobs)||[],this.messages=(t==null?void 0:t.messages)||[],this.cache=(t==null?void 0:t.cache)||[],this.logs=(t==null?void 0:t.logs)||[]}get modelsCount(){return Object.values(this.models).reduce((t,E)=>t+E,0)}get queryCount(){return this.queries.length}get jobsCount(){return this.jobs.length}get messagesCount(){return this.messages.length}get cacheCount(){return this.cache.reduce((t,E)=>(t.indexOf(E.transaction_id)===-1&&t.push(E.transaction_id),t),[]).length}get pathWithVerb(){return`${this.meta.method.toUpperCase()} ${this.meta.path}`}get dataForTabs(){const t={messages:{label:"Debug",count:this.messagesCount},models:{label:"Models",count:this.modelsCount},queries:{label:"Queries",count:this.queryCount},jobs:{label:"Jobs",count:this.jobsCount},cache:{label:"Cache",count:this.cacheCount}};return this.logs.length>0&&(t.logs={label:"Logs"}),t}}function fI(e,t,E){switch(E.length){case 0:return e.call(t);case 1:return e.call(t,E[0]);case 2:return e.call(t,E[0],E[1]);case 3:return e.call(t,E[0],E[1],E[2])}return e.apply(t,E)}var Vo=fI;function PI(e){return e}var wo=PI,DI=Vo,nn=Math.max;function dI(e,t,E){return t=nn(t===void 0?e.length-1:t,0),function(){for(var T=arguments,r=-1,s=nn(T.length-t,0),n=Array(s);++r<s;)n[r]=T[t+r];r=-1;for(var R=Array(t+1);++r<t;)R[r]=T[r];return R[t]=E(n),DI(e,this,R)}}var Wo=dI;function MI(e){return function(){return e}}var UI=MI,hI=typeof Qt=="object"&&Qt&&Qt.Object===Object&&Qt,Xo=hI,gI=Xo,GI=typeof self=="object"&&self&&self.Object===Object&&self,mI=gI||GI||Function("return this")(),it=mI,HI=it,yI=HI.Symbol,KE=yI,Rn=KE,$o=Object.prototype,bI=$o.hasOwnProperty,BI=$o.toString,fE=Rn?Rn.toStringTag:void 0;function FI(e){var t=bI.call(e,fE),E=e[fE];try{e[fE]=void 0;var T=!0}catch{}var r=BI.call(e);return T&&(t?e[fE]=E:delete e[fE]),r}var vI=FI,YI=Object.prototype,xI=YI.toString;function VI(e){return xI.call(e)}var wI=VI,on=KE,WI=vI,XI=wI,$I="[object Null]",KI="[object Undefined]",An=on?on.toStringTag:void 0;function JI(e){return e==null?e===void 0?KI:$I:An&&An in Object(e)?WI(e):XI(e)}var OE=JI;function kI(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Nt=kI,jI=OE,qI=Nt,QI="[object AsyncFunction]",ZI="[object Function]",zI="[object GeneratorFunction]",eN="[object Proxy]";function tN(e){if(!qI(e))return!1;var t=jI(e);return t==ZI||t==zI||t==QI||t==eN}var Qr=tN,EN=it,TN=EN["__core-js_shared__"],rN=TN,zT=rN,Sn=function(){var e=/[^.]+$/.exec(zT&&zT.keys&&zT.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function sN(e){return!!Sn&&Sn in e}var nN=sN,RN=Function.prototype,oN=RN.toString;function AN(e){if(e!=null){try{return oN.call(e)}catch{}try{return e+""}catch{}}return""}var Ko=AN,iN=Qr,SN=nN,ON=Nt,aN=Ko,IN=/[\\^$.*+?()[\]{}|]/g,NN=/^\[object .+?Constructor\]$/,lN=Function.prototype,_N=Object.prototype,CN=lN.toString,cN=_N.hasOwnProperty,LN=RegExp("^"+CN.call(cN).replace(IN,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function uN(e){if(!ON(e)||SN(e))return!1;var t=iN(e)?LN:NN;return t.test(aN(e))}var pN=uN;function fN(e,t){return e==null?void 0:e[t]}var PN=fN,DN=pN,dN=PN;function MN(e,t){var E=dN(e,t);return DN(E)?E:void 0}var Xt=MN,UN=Xt,hN=function(){try{var e=UN(Object,"defineProperty");return e({},"",{}),e}catch{}}(),Jo=hN,gN=UI,On=Jo,GN=wo,mN=On?function(e,t){return On(e,"toString",{configurable:!0,enumerable:!1,value:gN(t),writable:!0})}:GN,HN=mN,yN=800,bN=16,BN=Date.now;function FN(e){var t=0,E=0;return function(){var T=BN(),r=bN-(T-E);if(E=T,r>0){if(++t>=yN)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var vN=FN,YN=HN,xN=vN,VN=xN(YN),ko=VN,wN=wo,WN=Wo,XN=ko;function $N(e,t){return XN(WN(e,t,wN),e+"")}var jo=$N;function KN(){this.__data__=[],this.size=0}var JN=KN;function kN(e,t){return e===t||e!==e&&t!==t}var YT=kN,jN=YT;function qN(e,t){for(var E=e.length;E--;)if(jN(e[E][0],t))return E;return-1}var xT=qN,QN=xT,ZN=Array.prototype,zN=ZN.splice;function el(e){var t=this.__data__,E=QN(t,e);if(E<0)return!1;var T=t.length-1;return E==T?t.pop():zN.call(t,E,1),--this.size,!0}var tl=el,El=xT;function Tl(e){var t=this.__data__,E=El(t,e);return E<0?void 0:t[E][1]}var rl=Tl,sl=xT;function nl(e){return sl(this.__data__,e)>-1}var Rl=nl,ol=xT;function Al(e,t){var E=this.__data__,T=ol(E,e);return T<0?(++this.size,E.push([e,t])):E[T][1]=t,this}var il=Al,Sl=JN,Ol=tl,al=rl,Il=Rl,Nl=il;function aE(e){var t=-1,E=e==null?0:e.length;for(this.clear();++t<E;){var T=e[t];this.set(T[0],T[1])}}aE.prototype.clear=Sl;aE.prototype.delete=Ol;aE.prototype.get=al;aE.prototype.has=Il;aE.prototype.set=Nl;var VT=aE,ll=VT;function _l(){this.__data__=new ll,this.size=0}var Cl=_l;function cl(e){var t=this.__data__,E=t.delete(e);return this.size=t.size,E}var Ll=cl;function ul(e){return this.__data__.get(e)}var pl=ul;function fl(e){return this.__data__.has(e)}var Pl=fl,Dl=Xt,dl=it,Ml=Dl(dl,"Map"),Zr=Ml,Ul=Xt,hl=Ul(Object,"create"),wT=hl,an=wT;function gl(){this.__data__=an?an(null):{},this.size=0}var Gl=gl;function ml(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var Hl=ml,yl=wT,bl="__lodash_hash_undefined__",Bl=Object.prototype,Fl=Bl.hasOwnProperty;function vl(e){var t=this.__data__;if(yl){var E=t[e];return E===bl?void 0:E}return Fl.call(t,e)?t[e]:void 0}var Yl=vl,xl=wT,Vl=Object.prototype,wl=Vl.hasOwnProperty;function Wl(e){var t=this.__data__;return xl?t[e]!==void 0:wl.call(t,e)}var Xl=Wl,$l=wT,Kl="__lodash_hash_undefined__";function Jl(e,t){var E=this.__data__;return this.size+=this.has(e)?0:1,E[e]=$l&&t===void 0?Kl:t,this}var kl=Jl,jl=Gl,ql=Hl,Ql=Yl,Zl=Xl,zl=kl;function IE(e){var t=-1,E=e==null?0:e.length;for(this.clear();++t<E;){var T=e[t];this.set(T[0],T[1])}}IE.prototype.clear=jl;IE.prototype.delete=ql;IE.prototype.get=Ql;IE.prototype.has=Zl;IE.prototype.set=zl;var e_=IE,In=e_,t_=VT,E_=Zr;function T_(){this.size=0,this.__data__={hash:new In,map:new(E_||t_),string:new In}}var r_=T_;function s_(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var n_=s_,R_=n_;function o_(e,t){var E=e.__data__;return R_(t)?E[typeof t=="string"?"string":"hash"]:E.map}var WT=o_,A_=WT;function i_(e){var t=A_(this,e).delete(e);return this.size-=t?1:0,t}var S_=i_,O_=WT;function a_(e){return O_(this,e).get(e)}var I_=a_,N_=WT;function l_(e){return N_(this,e).has(e)}var __=l_,C_=WT;function c_(e,t){var E=C_(this,e),T=E.size;return E.set(e,t),this.size+=E.size==T?0:1,this}var L_=c_,u_=r_,p_=S_,f_=I_,P_=__,D_=L_;function NE(e){var t=-1,E=e==null?0:e.length;for(this.clear();++t<E;){var T=e[t];this.set(T[0],T[1])}}NE.prototype.clear=u_;NE.prototype.delete=p_;NE.prototype.get=f_;NE.prototype.has=P_;NE.prototype.set=D_;var qo=NE,d_=VT,M_=Zr,U_=qo,h_=200;function g_(e,t){var E=this.__data__;if(E instanceof d_){var T=E.__data__;if(!M_||T.length<h_-1)return T.push([e,t]),this.size=++E.size,this;E=this.__data__=new U_(T)}return E.set(e,t),this.size=E.size,this}var G_=g_,m_=VT,H_=Cl,y_=Ll,b_=pl,B_=Pl,F_=G_;function lE(e){var t=this.__data__=new m_(e);this.size=t.size}lE.prototype.clear=H_;lE.prototype.delete=y_;lE.prototype.get=b_;lE.prototype.has=B_;lE.prototype.set=F_;var Qo=lE,Nn=Jo;function v_(e,t,E){t=="__proto__"&&Nn?Nn(e,t,{configurable:!0,enumerable:!0,value:E,writable:!0}):e[t]=E}var zr=v_,Y_=zr,x_=YT;function V_(e,t,E){(E!==void 0&&!x_(e[t],E)||E===void 0&&!(t in e))&&Y_(e,t,E)}var Zo=V_;function w_(e){return function(t,E,T){for(var r=-1,s=Object(t),n=T(t),R=n.length;R--;){var o=n[e?R:++r];if(E(s[o],o,s)===!1)break}return t}}var W_=w_,X_=W_,$_=X_(),K_=$_,LT={exports:{}};LT.exports;(function(e,t){var E=it,T=t&&!t.nodeType&&t,r=T&&!0&&e&&!e.nodeType&&e,s=r&&r.exports===T,n=s?E.Buffer:void 0,R=n?n.allocUnsafe:void 0;function o(A,i){if(i)return A.slice();var a=A.length,I=R?R(a):new A.constructor(a);return A.copy(I),I}e.exports=o})(LT,LT.exports);var zo=LT.exports,J_=it,k_=J_.Uint8Array,j_=k_,ln=j_;function q_(e){var t=new e.constructor(e.byteLength);return new ln(t).set(new ln(e)),t}var es=q_,Q_=es;function Z_(e,t){var E=t?Q_(e.buffer):e.buffer;return new e.constructor(E,e.byteOffset,e.length)}var eA=Z_;function z_(e,t){var E=-1,T=e.length;for(t||(t=Array(T));++E<T;)t[E]=e[E];return t}var tA=z_,eC=Nt,_n=Object.create,tC=function(){function e(){}return function(t){if(!eC(t))return{};if(_n)return _n(t);e.prototype=t;var E=new e;return e.prototype=void 0,E}}(),EC=tC;function TC(e,t){return function(E){return e(t(E))}}var EA=TC,rC=EA,sC=rC(Object.getPrototypeOf,Object),ts=sC,nC=Object.prototype;function RC(e){var t=e&&e.constructor,E=typeof t=="function"&&t.prototype||nC;return e===E}var Es=RC,oC=EC,AC=ts,iC=Es;function SC(e){return typeof e.constructor=="function"&&!iC(e)?oC(AC(e)):{}}var TA=SC;function OC(e){return e!=null&&typeof e=="object"}var Ut=OC,aC=OE,IC=Ut,NC="[object Arguments]";function lC(e){return IC(e)&&aC(e)==NC}var _C=lC,Cn=_C,CC=Ut,rA=Object.prototype,cC=rA.hasOwnProperty,LC=rA.propertyIsEnumerable,uC=Cn(function(){return arguments}())?Cn:function(e){return CC(e)&&cC.call(e,"callee")&&!LC.call(e,"callee")},Ts=uC,pC=Array.isArray,ht=pC,fC=9007199254740991;function PC(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=fC}var sA=PC,DC=Qr,dC=sA;function MC(e){return e!=null&&dC(e.length)&&!DC(e)}var XT=MC,UC=XT,hC=Ut;function gC(e){return hC(e)&&UC(e)}var GC=gC,uT={exports:{}};function mC(){return!1}var HC=mC;uT.exports;(function(e,t){var E=it,T=HC,r=t&&!t.nodeType&&t,s=r&&!0&&e&&!e.nodeType&&e,n=s&&s.exports===r,R=n?E.Buffer:void 0,o=R?R.isBuffer:void 0,A=o||T;e.exports=A})(uT,uT.exports);var rs=uT.exports,yC=OE,bC=ts,BC=Ut,FC="[object Object]",vC=Function.prototype,YC=Object.prototype,nA=vC.toString,xC=YC.hasOwnProperty,VC=nA.call(Object);function wC(e){if(!BC(e)||yC(e)!=FC)return!1;var t=bC(e);if(t===null)return!0;var E=xC.call(t,"constructor")&&t.constructor;return typeof E=="function"&&E instanceof E&&nA.call(E)==VC}var RA=wC,WC=OE,XC=sA,$C=Ut,KC="[object Arguments]",JC="[object Array]",kC="[object Boolean]",jC="[object Date]",qC="[object Error]",QC="[object Function]",ZC="[object Map]",zC="[object Number]",ec="[object Object]",tc="[object RegExp]",Ec="[object Set]",Tc="[object String]",rc="[object WeakMap]",sc="[object ArrayBuffer]",nc="[object DataView]",Rc="[object Float32Array]",oc="[object Float64Array]",Ac="[object Int8Array]",ic="[object Int16Array]",Sc="[object Int32Array]",Oc="[object Uint8Array]",ac="[object Uint8ClampedArray]",Ic="[object Uint16Array]",Nc="[object Uint32Array]",_e={};_e[Rc]=_e[oc]=_e[Ac]=_e[ic]=_e[Sc]=_e[Oc]=_e[ac]=_e[Ic]=_e[Nc]=!0;_e[KC]=_e[JC]=_e[sc]=_e[kC]=_e[nc]=_e[jC]=_e[qC]=_e[QC]=_e[ZC]=_e[zC]=_e[ec]=_e[tc]=_e[Ec]=_e[Tc]=_e[rc]=!1;function lc(e){return $C(e)&&XC(e.length)&&!!_e[WC(e)]}var _c=lc;function Cc(e){return function(t){return e(t)}}var ss=Cc,pT={exports:{}};pT.exports;(function(e,t){var E=Xo,T=t&&!t.nodeType&&t,r=T&&!0&&e&&!e.nodeType&&e,s=r&&r.exports===T,n=s&&E.process,R=function(){try{var o=r&&r.require&&r.require("util").types;return o||n&&n.binding&&n.binding("util")}catch{}}();e.exports=R})(pT,pT.exports);var ns=pT.exports,cc=_c,Lc=ss,cn=ns,Ln=cn&&cn.isTypedArray,uc=Ln?Lc(Ln):cc,oA=uc;function pc(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var AA=pc,fc=zr,Pc=YT,Dc=Object.prototype,dc=Dc.hasOwnProperty;function Mc(e,t,E){var T=e[t];(!(dc.call(e,t)&&Pc(T,E))||E===void 0&&!(t in e))&&fc(e,t,E)}var iA=Mc,Uc=iA,hc=zr;function gc(e,t,E,T){var r=!E;E||(E={});for(var s=-1,n=t.length;++s<n;){var R=t[s],o=T?T(E[R],e[R],R,E,e):void 0;o===void 0&&(o=e[R]),r?hc(E,R,o):Uc(E,R,o)}return E}var _E=gc;function Gc(e,t){for(var E=-1,T=Array(e);++E<e;)T[E]=t(E);return T}var mc=Gc,Hc=9007199254740991,yc=/^(?:0|[1-9]\d*)$/;function bc(e,t){var E=typeof e;return t=t??Hc,!!t&&(E=="number"||E!="symbol"&&yc.test(e))&&e>-1&&e%1==0&&e<t}var SA=bc,Bc=mc,Fc=Ts,vc=ht,Yc=rs,xc=SA,Vc=oA,wc=Object.prototype,Wc=wc.hasOwnProperty;function Xc(e,t){var E=vc(e),T=!E&&Fc(e),r=!E&&!T&&Yc(e),s=!E&&!T&&!r&&Vc(e),n=E||T||r||s,R=n?Bc(e.length,String):[],o=R.length;for(var A in e)(t||Wc.call(e,A))&&!(n&&(A=="length"||r&&(A=="offset"||A=="parent")||s&&(A=="buffer"||A=="byteLength"||A=="byteOffset")||xc(A,o)))&&R.push(A);return R}var OA=Xc;function $c(e){var t=[];if(e!=null)for(var E in Object(e))t.push(E);return t}var Kc=$c,Jc=Nt,kc=Es,jc=Kc,qc=Object.prototype,Qc=qc.hasOwnProperty;function Zc(e){if(!Jc(e))return jc(e);var t=kc(e),E=[];for(var T in e)T=="constructor"&&(t||!Qc.call(e,T))||E.push(T);return E}var zc=Zc,eL=OA,tL=zc,EL=XT;function TL(e){return EL(e)?eL(e,!0):tL(e)}var JE=TL,rL=_E,sL=JE;function nL(e){return rL(e,sL(e))}var RL=nL,un=Zo,oL=zo,AL=eA,iL=tA,SL=TA,pn=Ts,fn=ht,OL=GC,aL=rs,IL=Qr,NL=Nt,lL=RA,_L=oA,Pn=AA,CL=RL;function cL(e,t,E,T,r,s,n){var R=Pn(e,E),o=Pn(t,E),A=n.get(o);if(A){un(e,E,A);return}var i=s?s(R,o,E+"",e,t,n):void 0,a=i===void 0;if(a){var I=fn(o),l=!I&&aL(o),h=!I&&!l&&_L(o);i=o,I||l||h?fn(R)?i=R:OL(R)?i=iL(R):l?(a=!1,i=oL(o,!0)):h?(a=!1,i=AL(o,!0)):i=[]:lL(o)||pn(o)?(i=R,pn(R)?i=CL(R):(!NL(R)||IL(R))&&(i=SL(o))):a=!1}a&&(n.set(o,i),r(i,o,T,s,n),n.delete(o)),un(e,E,i)}var LL=cL,uL=Qo,pL=Zo,fL=K_,PL=LL,DL=Nt,dL=JE,ML=AA;function aA(e,t,E,T,r){e!==t&&fL(t,function(s,n){if(r||(r=new uL),DL(s))PL(e,t,n,E,aA,T,r);else{var R=T?T(ML(e,n),s,n+"",e,t,r):void 0;R===void 0&&(R=s),pL(e,n,R)}},dL)}var IA=aA,UL=IA,Dn=Nt;function NA(e,t,E,T,r,s){return Dn(e)&&Dn(t)&&(s.set(t,e),UL(e,t,void 0,NA,s),s.delete(t)),e}var hL=NA,gL=YT,GL=XT,mL=SA,HL=Nt;function yL(e,t,E){if(!HL(E))return!1;var T=typeof t;return(T=="number"?GL(E)&&mL(t,E.length):T=="string"&&t in E)?gL(E[t],e):!1}var bL=yL,BL=jo,FL=bL;function vL(e){return BL(function(t,E){var T=-1,r=E.length,s=r>1?E[r-1]:void 0,n=r>2?E[2]:void 0;for(s=e.length>3&&typeof s=="function"?(r--,s):void 0,n&&FL(E[0],E[1],n)&&(s=r<3?void 0:s,r=1),t=Object(t);++T<r;){var R=E[T];R&&e(t,R,T,s)}return t})}var YL=vL,xL=IA,VL=YL,wL=VL(function(e,t,E,T){xL(e,t,E,T)}),WL=wL,XL=Vo,$L=jo,KL=hL,JL=WL,kL=$L(function(e){return e.push(void 0,KL),XL(JL,void 0,e)}),jL=kL;const qL=PT(jL);function QL(e){return/mysql|triology/.test(e)?"mysql":/pg|postgres/.test(e)?"postgresql":/sqlite/.test(e)?"sqlite":"sql"}function ZL(e){const t=qL(e,{mode:"ws",prefix:"/_debugbar",cable:{url:"ws://127.0.0.1:3000",channelName:"Debugbar::DebugbarChannel"},poll:{url:"http://127.0.0.1:3000",interval:500},height:360,maxRequests:25,minimized:!1,activeRecord:{adapter:"sql"}});return t.actionCableUrl=`${t.cable.url}${t.prefix}/cable`,t.pollUrl=`${t.poll.url}${t.prefix}/poll`,t.sqlDialect=QL(t.activeRecord.adapter),t}let Rs=Bo("config",{state:()=>({config:ZL(window._debugbarConfigOptions)})}),zL=Bo("requests",{state:()=>({requests:[],currentRequest:null}),actions:{addRequests(e){const t=[];for(e.forEach(E=>{this.requests.find(T=>T.id===E.id)||this.requests.push(new pI(E)),t.push(E.id)});this.requests.length>Rs().config.maxRequests;)this.requests.shift();return t},setCurrentRequestById(e){this.currentRequest=this.requests.find(t=>t.id===e)},clearRequests(){this.requests=[],this.currentRequest=null}}});const eu={key:0},tu=O("div",{class:"text-gray-500"},"No cache used.",-1),Eu=[tu],Tu={class:"space-y-3"},ru={class:"flex items-center space-x-8"},su={class:"w-24 text-sm text-right text-gray-400"},nu={class:"w-16 text-right"},Ru={class:"text-gray-800"},ou={class:"font-medium",title:"cache key"},Au={class:"text-xs text-gray-400",title:"transaction_id"},iu=De({__name:"CachePanel",props:{cache:{}},setup(e){const t=e;return(E,T)=>(U(),Ce(Dt,null,{default:ne(()=>[t.cache.length==0?(U(),Y("div",eu,Eu)):oe("",!0),O("div",Tu,[(U(!0),Y(Le,null,Je(t.cache,r=>(U(),Y("div",ru,[O("div",su,Ae(r.time),1),O("div",nu,[O("span",{class:$e(["px-1 py-0.5 rounded text-white text-xs font-mono font-medium bg-stone-400",{"!bg-emerald-500":r.label=="hit","!bg-indigo-500":r.label=="write","!bg-amber-400":r.label=="read","!bg-red-400":r.label=="delete"}])},Ae(r.label),3)]),O("div",Ru,[O("div",ou,Ae(r.key),1),O("div",Au,Ae(r.transaction_id),1)])]))),256))])]),_:1}))}});function Su(e,t){for(var E=-1,T=e==null?0:e.length,r=Array(T);++E<T;)r[E]=t(e[E],E,e);return r}var lA=Su;function Ou(e,t){for(var E=-1,T=e==null?0:e.length;++E<T&&t(e[E],E,e)!==!1;);return e}var au=Ou,Iu=EA,Nu=Iu(Object.keys,Object),lu=Nu,_u=Es,Cu=lu,cu=Object.prototype,Lu=cu.hasOwnProperty;function uu(e){if(!_u(e))return Cu(e);var t=[];for(var E in Object(e))Lu.call(e,E)&&E!="constructor"&&t.push(E);return t}var pu=uu,fu=OA,Pu=pu,Du=XT;function du(e){return Du(e)?fu(e):Pu(e)}var os=du,Mu=_E,Uu=os;function hu(e,t){return e&&Mu(t,Uu(t),e)}var gu=hu,Gu=_E,mu=JE;function Hu(e,t){return e&&Gu(t,mu(t),e)}var yu=Hu;function bu(e,t){for(var E=-1,T=e==null?0:e.length,r=0,s=[];++E<T;){var n=e[E];t(n,E,e)&&(s[r++]=n)}return s}var Bu=bu;function Fu(){return[]}var _A=Fu,vu=Bu,Yu=_A,xu=Object.prototype,Vu=xu.propertyIsEnumerable,dn=Object.getOwnPropertySymbols,wu=dn?function(e){return e==null?[]:(e=Object(e),vu(dn(e),function(t){return Vu.call(e,t)}))}:Yu,As=wu,Wu=_E,Xu=As;function $u(e,t){return Wu(e,Xu(e),t)}var Ku=$u;function Ju(e,t){for(var E=-1,T=t.length,r=e.length;++E<T;)e[r+E]=t[E];return e}var is=Ju,ku=is,ju=ts,qu=As,Qu=_A,Zu=Object.getOwnPropertySymbols,zu=Zu?function(e){for(var t=[];e;)ku(t,qu(e)),e=ju(e);return t}:Qu,CA=zu,ep=_E,tp=CA;function Ep(e,t){return ep(e,tp(e),t)}var Tp=Ep,rp=is,sp=ht;function np(e,t,E){var T=t(e);return sp(e)?T:rp(T,E(e))}var cA=np,Rp=cA,op=As,Ap=os;function ip(e){return Rp(e,Ap,op)}var Sp=ip,Op=cA,ap=CA,Ip=JE;function Np(e){return Op(e,Ip,ap)}var LA=Np,lp=Xt,_p=it,Cp=lp(_p,"DataView"),cp=Cp,Lp=Xt,up=it,pp=Lp(up,"Promise"),fp=pp,Pp=Xt,Dp=it,dp=Pp(Dp,"Set"),Mp=dp,Up=Xt,hp=it,gp=Up(hp,"WeakMap"),Gp=gp,Lr=cp,ur=Zr,pr=fp,fr=Mp,Pr=Gp,uA=OE,CE=Ko,Mn="[object Map]",mp="[object Object]",Un="[object Promise]",hn="[object Set]",gn="[object WeakMap]",Gn="[object DataView]",Hp=CE(Lr),yp=CE(ur),bp=CE(pr),Bp=CE(fr),Fp=CE(Pr),bt=uA;(Lr&&bt(new Lr(new ArrayBuffer(1)))!=Gn||ur&&bt(new ur)!=Mn||pr&&bt(pr.resolve())!=Un||fr&&bt(new fr)!=hn||Pr&&bt(new Pr)!=gn)&&(bt=function(e){var t=uA(e),E=t==mp?e.constructor:void 0,T=E?CE(E):"";if(T)switch(T){case Hp:return Gn;case yp:return Mn;case bp:return Un;case Bp:return hn;case Fp:return gn}return t});var Ss=bt,vp=Object.prototype,Yp=vp.hasOwnProperty;function xp(e){var t=e.length,E=new e.constructor(t);return t&&typeof e[0]=="string"&&Yp.call(e,"index")&&(E.index=e.index,E.input=e.input),E}var Vp=xp,wp=es;function Wp(e,t){var E=t?wp(e.buffer):e.buffer;return new e.constructor(E,e.byteOffset,e.byteLength)}var Xp=Wp,$p=/\w*$/;function Kp(e){var t=new e.constructor(e.source,$p.exec(e));return t.lastIndex=e.lastIndex,t}var Jp=Kp,mn=KE,Hn=mn?mn.prototype:void 0,yn=Hn?Hn.valueOf:void 0;function kp(e){return yn?Object(yn.call(e)):{}}var jp=kp,qp=es,Qp=Xp,Zp=Jp,zp=jp,ef=eA,tf="[object Boolean]",Ef="[object Date]",Tf="[object Map]",rf="[object Number]",sf="[object RegExp]",nf="[object Set]",Rf="[object String]",of="[object Symbol]",Af="[object ArrayBuffer]",Sf="[object DataView]",Of="[object Float32Array]",af="[object Float64Array]",If="[object Int8Array]",Nf="[object Int16Array]",lf="[object Int32Array]",_f="[object Uint8Array]",Cf="[object Uint8ClampedArray]",cf="[object Uint16Array]",Lf="[object Uint32Array]";function uf(e,t,E){var T=e.constructor;switch(t){case Af:return qp(e);case tf:case Ef:return new T(+e);case Sf:return Qp(e,E);case Of:case af:case If:case Nf:case lf:case _f:case Cf:case cf:case Lf:return ef(e,E);case Tf:return new T;case rf:case Rf:return new T(e);case sf:return Zp(e);case nf:return new T;case of:return zp(e)}}var pf=uf,ff=Ss,Pf=Ut,Df="[object Map]";function df(e){return Pf(e)&&ff(e)==Df}var Mf=df,Uf=Mf,hf=ss,bn=ns,Bn=bn&&bn.isMap,gf=Bn?hf(Bn):Uf,Gf=gf,mf=Ss,Hf=Ut,yf="[object Set]";function bf(e){return Hf(e)&&mf(e)==yf}var Bf=bf,Ff=Bf,vf=ss,Fn=ns,vn=Fn&&Fn.isSet,Yf=vn?vf(vn):Ff,xf=Yf,Vf=Qo,wf=au,Wf=iA,Xf=gu,$f=yu,Kf=zo,Jf=tA,kf=Ku,jf=Tp,qf=Sp,Qf=LA,Zf=Ss,zf=Vp,eP=pf,tP=TA,EP=ht,TP=rs,rP=Gf,sP=Nt,nP=xf,RP=os,oP=JE,AP=1,iP=2,SP=4,pA="[object Arguments]",OP="[object Array]",aP="[object Boolean]",IP="[object Date]",NP="[object Error]",fA="[object Function]",lP="[object GeneratorFunction]",_P="[object Map]",CP="[object Number]",PA="[object Object]",cP="[object RegExp]",LP="[object Set]",uP="[object String]",pP="[object Symbol]",fP="[object WeakMap]",PP="[object ArrayBuffer]",DP="[object DataView]",dP="[object Float32Array]",MP="[object Float64Array]",UP="[object Int8Array]",hP="[object Int16Array]",gP="[object Int32Array]",GP="[object Uint8Array]",mP="[object Uint8ClampedArray]",HP="[object Uint16Array]",yP="[object Uint32Array]",Ne={};Ne[pA]=Ne[OP]=Ne[PP]=Ne[DP]=Ne[aP]=Ne[IP]=Ne[dP]=Ne[MP]=Ne[UP]=Ne[hP]=Ne[gP]=Ne[_P]=Ne[CP]=Ne[PA]=Ne[cP]=Ne[LP]=Ne[uP]=Ne[pP]=Ne[GP]=Ne[mP]=Ne[HP]=Ne[yP]=!0;Ne[NP]=Ne[fA]=Ne[fP]=!1;function RT(e,t,E,T,r,s){var n,R=t&AP,o=t&iP,A=t&SP;if(E&&(n=r?E(e,T,r,s):E(e)),n!==void 0)return n;if(!sP(e))return e;var i=EP(e);if(i){if(n=zf(e),!R)return Jf(e,n)}else{var a=Zf(e),I=a==fA||a==lP;if(TP(e))return Kf(e,R);if(a==PA||a==pA||I&&!r){if(n=o||I?{}:tP(e),!R)return o?jf(e,$f(n,e)):kf(e,Xf(n,e))}else{if(!Ne[a])return r?e:{};n=eP(e,a,R)}}s||(s=new Vf);var l=s.get(e);if(l)return l;s.set(e,n),nP(e)?e.forEach(function(w){n.add(RT(w,t,E,w,e,s))}):rP(e)&&e.forEach(function(w,K){n.set(K,RT(w,t,E,K,e,s))});var h=A?o?Qf:qf:o?oP:RP,b=i?void 0:h(e);return wf(b||e,function(w,K){b&&(K=w,w=e[K]),Wf(n,K,RT(w,t,E,K,e,s))}),n}var bP=RT,BP=OE,FP=Ut,vP="[object Symbol]";function YP(e){return typeof e=="symbol"||FP(e)&&BP(e)==vP}var Os=YP,xP=ht,VP=Os,wP=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,WP=/^\w*$/;function XP(e,t){if(xP(e))return!1;var E=typeof e;return E=="number"||E=="symbol"||E=="boolean"||e==null||VP(e)?!0:WP.test(e)||!wP.test(e)||t!=null&&e in Object(t)}var $P=XP,DA=qo,KP="Expected a function";function as(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(KP);var E=function(){var T=arguments,r=t?t.apply(this,T):T[0],s=E.cache;if(s.has(r))return s.get(r);var n=e.apply(this,T);return E.cache=s.set(r,n)||s,n};return E.cache=new(as.Cache||DA),E}as.Cache=DA;var JP=as,kP=JP,jP=500;function qP(e){var t=kP(e,function(T){return E.size===jP&&E.clear(),T}),E=t.cache;return t}var QP=qP,ZP=QP,zP=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,eD=/\\(\\)?/g,tD=ZP(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(zP,function(E,T,r,s){t.push(r?s.replace(eD,"$1"):T||E)}),t}),ED=tD,Yn=KE,TD=lA,rD=ht,sD=Os,nD=1/0,xn=Yn?Yn.prototype:void 0,Vn=xn?xn.toString:void 0;function dA(e){if(typeof e=="string")return e;if(rD(e))return TD(e,dA)+"";if(sD(e))return Vn?Vn.call(e):"";var t=e+"";return t=="0"&&1/e==-nD?"-0":t}var RD=dA,oD=RD;function AD(e){return e==null?"":oD(e)}var iD=AD,SD=ht,OD=$P,aD=ED,ID=iD;function ND(e,t){return SD(e)?e:OD(e,t)?[e]:aD(ID(e))}var Is=ND;function lD(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}var _D=lD,CD=Os,cD=1/0;function LD(e){if(typeof e=="string"||CD(e))return e;var t=e+"";return t=="0"&&1/e==-cD?"-0":t}var MA=LD,uD=Is,pD=MA;function fD(e,t){t=uD(t,e);for(var E=0,T=t.length;e!=null&&E<T;)e=e[pD(t[E++])];return E&&E==T?e:void 0}var PD=fD;function DD(e,t,E){var T=-1,r=e.length;t<0&&(t=-t>r?0:r+t),E=E>r?r:E,E<0&&(E+=r),r=t>E?0:E-t>>>0,t>>>=0;for(var s=Array(r);++T<r;)s[T]=e[T+t];return s}var dD=DD,MD=PD,UD=dD;function hD(e,t){return t.length<2?e:MD(e,UD(t,0,-1))}var gD=hD,GD=Is,mD=_D,HD=gD,yD=MA;function bD(e,t){return t=GD(t,e),e=HD(e,t),e==null||delete e[yD(mD(t))]}var BD=bD,FD=RA;function vD(e){return FD(e)?void 0:e}var YD=vD,wn=KE,xD=Ts,VD=ht,Wn=wn?wn.isConcatSpreadable:void 0;function wD(e){return VD(e)||xD(e)||!!(Wn&&e&&e[Wn])}var WD=wD,XD=is,$D=WD;function UA(e,t,E,T,r){var s=-1,n=e.length;for(E||(E=$D),r||(r=[]);++s<n;){var R=e[s];t>0&&E(R)?t>1?UA(R,t-1,E,T,r):XD(r,R):T||(r[r.length]=R)}return r}var KD=UA,JD=KD;function kD(e){var t=e==null?0:e.length;return t?JD(e,1):[]}var jD=kD,qD=jD,QD=Wo,ZD=ko;function zD(e){return ZD(QD(e,void 0,qD),e+"")}var ed=zD,td=lA,Ed=bP,Td=BD,rd=Is,sd=_E,nd=YD,Rd=ed,od=LA,Ad=1,id=2,Sd=4,Od=Rd(function(e,t){var E={};if(e==null)return E;var T=!1;t=td(t,function(s){return s=rd(s,e),T||(T=s.length>1),s}),sd(e,od(e),E),T&&(E=Ed(E,Ad|id|Sd,nd));for(var r=t.length;r--;)Td(E,t[r]);return E}),ad=Od;const Id=PT(ad),Nd={class:"break-all w-full border-separate border-spacing-1"},ld={key:0},_d=["textContent"],Cd=["textContent"],PE=De({__name:"KeyValueTable",props:{keyLabel:{},valueLabel:{}},setup(e){const t=e;return(E,T)=>(U(),Y("table",Nd,[t.keyLabel||t.valueLabel?(U(),Y("tr",ld,[O("th",{textContent:Ae(t.keyLabel),class:"bg-amber-50 w-40 px-3 py-1"},null,8,_d),O("th",{textContent:Ae(t.valueLabel),class:"bg-amber-50 px-3 py-1"},null,8,Cd)])):oe("",!0),Rt(E.$slots,"default")]))}}),cd=["textContent"],Ld={class:"px-3 py-1"},qe=De({__name:"Row",props:{label:{}},setup(e){const t=e;return(E,T)=>(U(),Y("tr",null,[O("td",{textContent:Ae(t.label),class:"w-40 font-medium bg-stone-50 px-3 py-1"},null,8,cd),O("td",Ld,[Rt(E.$slots,"default")])]))}}),ud={class:"font-medium"},pd={key:0},Xn=De({__name:"Foldable",props:{label:{},isOpen:{type:Boolean,default:!1}},setup(e){const t=e,E=At({isOpen:t.isOpen});return(T,r)=>(U(),Y("div",null,[O("div",null,[O("button",{class:"flex items-center space-x-1",onClick:r[0]||(r[0]=s=>E.isOpen=!E.isOpen)},[$(Re(vo),{class:$e(["size-4",{"-rotate-90":!E.isOpen}])},null,8,["class"]),O("span",ud,Ae(t.label),1)])]),E.isOpen?(U(),Y("div",pd,[Rt(T.$slots,"default")])):oe("",!0)]))}}),fd={class:"flex"},Pd={class:"w-1/2"},Dd=O("h2",{class:"mt-0.5 mb-2 px-2 py-1 bg-stone-300 text-black tracking-wide text-xs uppercase font-bold rounded"}," HTTP Request ",-1),dd=O("div",{class:"py-3 text-right italic text-sm text-stone-500"},[Ye(" What else would like to see here? "),O("a",{target:"_blank",class:"underline font-bold",href:"https://github.com/julienbourdeau/debugbar/discussions"},"Tell me!")],-1),Md={class:"w-1/2"},Ud=O("h2",{class:"mt-0.5 mb-2 px-2 py-1 bg-stone-300 text-black tracking-wide text-xs uppercase font-bold rounded"}," Routing ",-1),hd=O("h2",{class:"mt-0.5 mb-2 px-2 py-1 bg-stone-300 text-black tracking-wide text-xs uppercase font-bold rounded"}," HTTP Response ",-1),gd={key:0},Gd=O("div",{class:"py-3 text-sm text-stone-500"},[Ye(" The response was not captured. "),O("a",{target:"_blank",class:"underline font-bold",href:"https://debugbar.dev/docs/known-limitations/"},"Learn more")],-1),md=[Gd],Hd={key:1},yd=De({__name:"RequestPanel",props:{request:{}},setup(e){return(t,E)=>{const T=$E("highlightjs");return U(),Y("div",fd,[O("div",Pd,[$(Dt,null,{default:ne(()=>[Dd,$(PE,null,{default:ne(()=>[$(qe,{label:"Method"},{default:ne(()=>[Ye(Ae(t.request.meta.method),1)]),_:1}),$(qe,{label:"URL"},{default:ne(()=>[Ye(Ae(t.request.meta.path),1)]),_:1}),$(qe,{label:"Params"},{default:ne(()=>[$(T,{class:"text-sm",language:"json",code:JSON.stringify(Re(Id)(t.request.meta.params,["controller","action"]),null,2)},null,8,["code"])]),_:1}),$(qe,{label:"Header: Version"},{default:ne(()=>[Ye(Ae(t.request.request.headers.Version),1)]),_:1}),$(qe,{label:"Header: Cache-Control"},{default:ne(()=>[Ye(Ae(t.request.request.headers["Cache-Control"]),1)]),_:1})]),_:1}),$(Xn,{class:"py-4",label:"All Headers"},{default:ne(()=>[$(PE,null,{default:ne(()=>[(U(!0),Y(Le,null,Je(t.request.request.headers,(r,s)=>(U(),Ce(qe,{key:s,label:s},{default:ne(()=>[Ye(Ae(r),1)]),_:2},1032,["label"]))),128))]),_:1})]),_:1}),dd]),_:1})]),O("div",Md,[$(Dt,null,{default:ne(()=>[Ud,$(PE,null,{default:ne(()=>[$(qe,{title:"Controller"},{default:ne(()=>[Ye(Ae(t.request.meta.controller)+" > "+Ae(t.request.meta.action),1)]),_:1})]),_:1})]),_:1}),$(Dt,null,{default:ne(()=>{var r,s;return[hd,(r=t.request.response)!=null&&r.status?oe("",!0):(U(),Y("div",gd,md)),(s=t.request.response)!=null&&s.status?(U(),Y("div",Hd,[$(PE,null,{default:ne(()=>[$(qe,{label:"Status"},{default:ne(()=>[Ye(Ae(t.request.response.status),1)]),_:1}),$(qe,{label:"Body"},{default:ne(()=>[Ye(Ae(t.request.response.body.substring(0,140)),1)]),_:1}),$(qe,{label:"Header: Content-Type"},{default:ne(()=>[Ye(Ae(t.request.response.headers["Content-Type"]),1)]),_:1})]),_:1}),$(Xn,{class:"py-4",label:"All Headers"},{default:ne(()=>[$(PE,null,{default:ne(()=>[(U(!0),Y(Le,null,Je(t.request.response.headers,(n,R)=>(U(),Ce(qe,{key:R,label:R},{default:ne(()=>[Ye(Ae(n),1)]),_:2},1032,["label"]))),128))]),_:1})]),_:1})])):oe("",!0)]}),_:1})])])}}}),bd={class:"p-4 leading-8"},Bd=De({__name:"JsonPanel",props:{currentRequest:{}},setup(e){const t=e;return(E,T)=>{const r=$E("highlightjs");return U(),Y("div",bd,[$(r,{language:"json",code:JSON.stringify(t.currentRequest,null,2)},null,8,["code"])])}}}),Fd={},vd={class:"size-5","xmlns:dc":"http://purl.org/dc/elements/1.1/","xmlns:cc":"http://creativecommons.org/ns#","xmlns:rdf":"http://www.w3.org/1999/02/22-rdf-syntax-ns#","xmlns:svg":"http://www.w3.org/2000/svg",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","xmlns:sodipodi":"http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd","xmlns:inkscape":"http://www.inkscape.org/namespaces/inkscape",version:"1.1",id:"Layer_1",width:"198.13",height:"197.58",viewBox:"0 0 198.13 197.58",overflow:"visible","enable-background":"new 0 0 198.13 197.58","xml:space":"preserve","inkscape:version":"0.48.0 r9654","sodipodi:docname":"Logo-Ruby.svg"},Yd=O("metadata",{id:"metadata3320"},[O("rdf:RDF",null,[O("cc:Work",{"rdf:about":""},[O("dc:format",null,"image/svg+xml"),O("dc:type",{"rdf:resource":"http://purl.org/dc/dcmitype/StillImage"})])])],-1),xd=O("defs",{id:"defs3489"},[O("linearGradient",{id:"XMLID_17_-9",gradientUnits:"userSpaceOnUse",x1:"174.0737",y1:"215.5488",x2:"132.27631",y2:"141.7533"},[O("stop",{offset:"0",style:{"stop-color":"#fb7655"},id:"stop3272-4"}),O("stop",{offset:"0",style:{"stop-color":"#fb7655"},id:"stop3274-5"}),O("stop",{offset:"0.41",style:{"stop-color":"#e42b1e"},id:"stop3276-1"}),O("stop",{offset:"0.99",style:{"stop-color":"#990000"},id:"stop3278-0"}),O("stop",{offset:"1",style:{"stop-color":"#990000"},id:"stop3280-3"})]),O("linearGradient",{id:"XMLID_18_-7",gradientUnits:"userSpaceOnUse",x1:"194.895",y1:"153.5576",x2:"141.0276",y2:"117.4093"},[O("stop",{offset:"0",style:{"stop-color":"#871101"},id:"stop3285-8"}),O("stop",{offset:"0",style:{"stop-color":"#871101"},id:"stop3287-8"}),O("stop",{offset:"0.99",style:{"stop-color":"#911209"},id:"stop3289-6"}),O("stop",{offset:"1",style:{"stop-color":"#911209"},id:"stop3291-0"})]),O("linearGradient",{id:"XMLID_19_-4",gradientUnits:"userSpaceOnUse",x1:"151.79539",y1:"217.7852",x2:"97.929703",y2:"181.638"},[O("stop",{offset:"0",style:{"stop-color":"#871101"},id:"stop3296-6"}),O("stop",{offset:"0",style:{"stop-color":"#871101"},id:"stop3298-7"}),O("stop",{offset:"0.99",style:{"stop-color":"#911209"},id:"stop3300-6"}),O("stop",{offset:"1",style:{"stop-color":"#911209"},id:"stop3302-0"})]),O("linearGradient",{id:"XMLID_20_-9",gradientUnits:"userSpaceOnUse",x1:"38.696301",y1:"127.3906",x2:"47.046902",y2:"181.66141"},[O("stop",{offset:"0",style:{"stop-color":"#ffffff"},id:"stop3307-7"}),O("stop",{offset:"0",style:{"stop-color":"#ffffff"},id:"stop3309-5"}),O("stop",{offset:"0.23",style:{"stop-color":"#e57252"},id:"stop3311-9"}),O("stop",{offset:"0.46",style:{"stop-color":"#de3b20"},id:"stop3313-7"}),O("stop",{offset:"0.99",style:{"stop-color":"#a60003"},id:"stop3315-8"}),O("stop",{offset:"1",style:{"stop-color":"#a60003"},id:"stop3317-5"})]),O("linearGradient",{id:"XMLID_21_-3",gradientUnits:"userSpaceOnUse",x1:"96.132797",y1:"76.715302",x2:"99.209602",y2:"132.1021"},[O("stop",{offset:"0",style:{"stop-color":"#ffffff"},id:"stop3322-3"}),O("stop",{offset:"0",style:{"stop-color":"#ffffff"},id:"stop3324-8"}),O("stop",{offset:"0.23",style:{"stop-color":"#e4714e"},id:"stop3326-3"}),O("stop",{offset:"0.56",style:{"stop-color":"#be1a0d"},id:"stop3328-7"}),O("stop",{offset:"0.99",style:{"stop-color":"#a80d00"},id:"stop3330-9"}),O("stop",{offset:"1",style:{"stop-color":"#a80d00"},id:"stop3332-3"})]),O("linearGradient",{id:"XMLID_22_-7",gradientUnits:"userSpaceOnUse",x1:"147.103",y1:"25.521",x2:"156.3141",y2:"65.216202"},[O("stop",{offset:"0",style:{"stop-color":"#ffffff"},id:"stop3337-8"}),O("stop",{offset:"0",style:{"stop-color":"#ffffff"},id:"stop3339-7"}),O("stop",{offset:"0.18",style:{"stop-color":"#e46342"},id:"stop3341-4"}),O("stop",{offset:"0.4",style:{"stop-color":"#c82410"},id:"stop3343-1"}),O("stop",{offset:"0.99",style:{"stop-color":"#a80d00"},id:"stop3345-9"}),O("stop",{offset:"1",style:{"stop-color":"#a80d00"},id:"stop3347-0"})]),O("linearGradient",{id:"XMLID_23_-9",gradientUnits:"userSpaceOnUse",x1:"118.9761",y1:"11.5415",x2:"158.66859",y2:"-8.3048"},[O("stop",{offset:"0",style:{"stop-color":"#ffffff"},id:"stop3352-8"}),O("stop",{offset:"0",style:{"stop-color":"#ffffff"},id:"stop3354-8"}),O("stop",{offset:"0.54",style:{"stop-color":"#c81f11"},id:"stop3356-5"}),O("stop",{offset:"0.99",style:{"stop-color":"#bf0905"},id:"stop3358-8"}),O("stop",{offset:"1",style:{"stop-color":"#bf0905"},id:"stop3360-4"})]),O("linearGradient",{id:"XMLID_24_-3",gradientUnits:"userSpaceOnUse",x1:"3.9033",y1:"113.5547",x2:"7.1701999",y2:"146.2628"},[O("stop",{offset:"0",style:{"stop-color":"#ffffff"},id:"stop3365-7"}),O("stop",{offset:"0",style:{"stop-color":"#ffffff"},id:"stop3367-1"}),O("stop",{offset:"0.31",style:{"stop-color":"#de4024"},id:"stop3369-3"}),O("stop",{offset:"0.99",style:{"stop-color":"#bf190b"},id:"stop3371-8"}),O("stop",{offset:"1",style:{"stop-color":"#bf190b"},id:"stop3373-0"})]),O("linearGradient",{id:"XMLID_25_-9",gradientUnits:"userSpaceOnUse",x1:"-18.5557",y1:"155.10451",x2:"135.0152",y2:"-2.8092999"},[O("stop",{offset:"0",style:{"stop-color":"#bd0012"},id:"stop3380-7"}),O("stop",{offset:"0",style:{"stop-color":"#bd0012"},id:"stop3382-9"}),O("stop",{offset:"0.07",style:{"stop-color":"#ffffff"},id:"stop3384-9"}),O("stop",{offset:"0.17",style:{"stop-color":"#ffffff"},id:"stop3386-3"}),O("stop",{offset:"0.27",style:{"stop-color":"#c82f1c"},id:"stop3388-2"}),O("stop",{offset:"0.33",style:{"stop-color":"#820c01"},id:"stop3390-4"}),O("stop",{offset:"0.46",style:{"stop-color":"#a31601"},id:"stop3392-3"}),O("stop",{offset:"0.72",style:{"stop-color":"#b31301"},id:"stop3394-7"}),O("stop",{offset:"0.99",style:{"stop-color":"#e82609"},id:"stop3396-1"}),O("stop",{offset:"1",style:{"stop-color":"#e82609"},id:"stop3398-2"})]),O("linearGradient",{id:"XMLID_26_-2",gradientUnits:"userSpaceOnUse",x1:"99.074699",y1:"171.0332",x2:"52.817699",y2:"159.61659"},[O("stop",{offset:"0",style:{"stop-color":"#8c0c01"},id:"stop3403-0"}),O("stop",{offset:"0",style:{"stop-color":"#8c0c01"},id:"stop3405-2"}),O("stop",{offset:"0.54",style:{"stop-color":"#990c00"},id:"stop3407-1"}),O("stop",{offset:"0.99",style:{"stop-color":"#a80d0e"},id:"stop3409-7"}),O("stop",{offset:"1",style:{"stop-color":"#a80d0e"},id:"stop3411-5"})]),O("linearGradient",{id:"XMLID_27_-1",gradientUnits:"userSpaceOnUse",x1:"178.52589",y1:"115.5146",x2:"137.43269",y2:"78.683998"},[O("stop",{offset:"0",style:{"stop-color":"#7e110b"},id:"stop3416-7"}),O("stop",{offset:"0",style:{"stop-color":"#7e110b"},id:"stop3418-4"}),O("stop",{offset:"0.99",style:{"stop-color":"#9e0c00"},id:"stop3420-1"}),O("stop",{offset:"1",style:{"stop-color":"#9e0c00"},id:"stop3422-7"})]),O("linearGradient",{id:"XMLID_28_-1",gradientUnits:"userSpaceOnUse",x1:"193.6235",y1:"47.937",x2:"173.15421",y2:"26.053801"},[O("stop",{offset:"0",style:{"stop-color":"#79130d"},id:"stop3427-1"}),O("stop",{offset:"0",style:{"stop-color":"#79130d"},id:"stop3429-1"}),O("stop",{offset:"0.99",style:{"stop-color":"#9e120b"},id:"stop3431-7"}),O("stop",{offset:"1",style:{"stop-color":"#9e120b"},id:"stop3433-0"})]),O("radialGradient",{id:"XMLID_29_-4",cx:"143.8315",cy:"79.388199",r:"50.357601",gradientUnits:"userSpaceOnUse"},[O("stop",{offset:"0",style:{"stop-color":"#a80d00"},id:"stop3440-0"}),O("stop",{offset:"0",style:{"stop-color":"#a80d00"},id:"stop3442-8"}),O("stop",{offset:"0.99",style:{"stop-color":"#7e0e08"},id:"stop3444-5"}),O("stop",{offset:"1",style:{"stop-color":"#7e0e08"},id:"stop3446-1"})]),O("radialGradient",{id:"XMLID_30_-6",cx:"74.0923",cy:"145.75101",r:"66.943703",gradientUnits:"userSpaceOnUse"},[O("stop",{offset:"0",style:{"stop-color":"#a30c00"},id:"stop3451-6"}),O("stop",{offset:"0",style:{"stop-color":"#a30c00"},id:"stop3453-2"}),O("stop",{offset:"0.99",style:{"stop-color":"#800e08"},id:"stop3455-1"}),O("stop",{offset:"1",style:{"stop-color":"#800e08"},id:"stop3457-9"})]),O("linearGradient",{id:"XMLID_31_-6",gradientUnits:"userSpaceOnUse",x1:"26.669901",y1:"197.33591",x2:"9.9886999",y2:"140.742"},[O("stop",{offset:"0",style:{"stop-color":"#8b2114"},id:"stop3462-4"}),O("stop",{offset:"0",style:{"stop-color":"#8b2114"},id:"stop3464-8"}),O("stop",{offset:"0.43",style:{"stop-color":"#9e100a"},id:"stop3466-0"}),O("stop",{offset:"0.99",style:{"stop-color":"#b3100c"},id:"stop3468-8"}),O("stop",{offset:"1",style:{"stop-color":"#b3100c"},id:"stop3470-1"})]),O("linearGradient",{id:"XMLID_32_-0",gradientUnits:"userSpaceOnUse",x1:"154.6411",y1:"9.7979002",x2:"192.039",y2:"26.305901"},[O("stop",{offset:"0",style:{"stop-color":"#b31000"},id:"stop3475-2"}),O("stop",{offset:"0",style:{"stop-color":"#b31000"},id:"stop3477-2"}),O("stop",{offset:"0.44",style:{"stop-color":"#910f08"},id:"stop3479-9"}),O("stop",{offset:"0.99",style:{"stop-color":"#791c12"},id:"stop3481-7"}),O("stop",{offset:"1",style:{"stop-color":"#791c12"},id:"stop3483-5"})]),O("linearGradient",{y2:"141.7533",x2:"132.27631",y1:"215.5488",x1:"174.0737",gradientUnits:"userSpaceOnUse",id:"linearGradient3448","xlink:href":"#XMLID_17_-9","inkscape:collect":"always"})],-1),Vd=O("sodipodi:namedview",{pagecolor:"#ffffff",bordercolor:"#666666",borderopacity:"1",objecttolerance:"10",gridtolerance:"10",guidetolerance:"10","inkscape:pageopacity":"0","inkscape:pageshadow":"2","inkscape:window-width":"1036","inkscape:window-height":"1124",id:"namedview3487",showgrid:"false","inkscape:zoom":"1.3412289","inkscape:cx":"99.065005","inkscape:cy":"98.790004","inkscape:window-x":"882","inkscape:window-y":"24","inkscape:window-maximized":"0","inkscape:current-layer":"Layer_1"},null,-1),wd=HO('<linearGradient id="XMLID_17_" gradientUnits="userSpaceOnUse" x1="174.0737" y1="215.5488" x2="132.2763" y2="141.7533"><stop offset="0" style="stop-color:#fb7655;" id="stop3272"></stop><stop offset="0" style="stop-color:#fb7655;" id="stop3274"></stop><stop offset="0.41" style="stop-color:#e42b1e;" id="stop3276"></stop><stop offset="0.99" style="stop-color:#990000;" id="stop3278"></stop><stop offset="1" style="stop-color:#990000;" id="stop3280"></stop></linearGradient><linearGradient id="XMLID_18_" gradientUnits="userSpaceOnUse" x1="194.895" y1="153.5576" x2="141.0276" y2="117.4093"><stop offset="0" style="stop-color:#871101;" id="stop3285"></stop><stop offset="0" style="stop-color:#871101;" id="stop3287"></stop><stop offset="0.99" style="stop-color:#911209;" id="stop3289"></stop><stop offset="1" style="stop-color:#911209;" id="stop3291"></stop></linearGradient><linearGradient id="XMLID_19_" gradientUnits="userSpaceOnUse" x1="151.7954" y1="217.7852" x2="97.9297" y2="181.638"><stop offset="0" style="stop-color:#871101;" id="stop3296"></stop><stop offset="0" style="stop-color:#871101;" id="stop3298"></stop><stop offset="0.99" style="stop-color:#911209;" id="stop3300"></stop><stop offset="1" style="stop-color:#911209;" id="stop3302"></stop></linearGradient><linearGradient id="XMLID_20_" gradientUnits="userSpaceOnUse" x1="38.6963" y1="127.3906" x2="47.0469" y2="181.6614"><stop offset="0" style="stop-color:#ffffff;" id="stop3307"></stop><stop offset="0" style="stop-color:#ffffff;" id="stop3309"></stop><stop offset="0.23" style="stop-color:#e57252;" id="stop3311"></stop><stop offset="0.46" style="stop-color:#de3b20;" id="stop3313"></stop><stop offset="0.99" style="stop-color:#a60003;" id="stop3315"></stop><stop offset="1" style="stop-color:#a60003;" id="stop3317"></stop></linearGradient><linearGradient id="XMLID_21_" gradientUnits="userSpaceOnUse" x1="96.1328" y1="76.7153" x2="99.2096" y2="132.1021"><stop offset="0" style="stop-color:#ffffff;" id="stop3322"></stop><stop offset="0" style="stop-color:#ffffff;" id="stop3324"></stop><stop offset="0.23" style="stop-color:#e4714e;" id="stop3326"></stop><stop offset="0.56" style="stop-color:#be1a0d;" id="stop3328"></stop><stop offset="0.99" style="stop-color:#a80d00;" id="stop3330"></stop><stop offset="1" style="stop-color:#a80d00;" id="stop3332"></stop></linearGradient><linearGradient id="XMLID_22_" gradientUnits="userSpaceOnUse" x1="147.103" y1="25.521" x2="156.3141" y2="65.2162"><stop offset="0" style="stop-color:#ffffff;" id="stop3337"></stop><stop offset="0" style="stop-color:#ffffff;" id="stop3339"></stop><stop offset="0.18" style="stop-color:#e46342;" id="stop3341"></stop><stop offset="0.4" style="stop-color:#c82410;" id="stop3343"></stop><stop offset="0.99" style="stop-color:#a80d00;" id="stop3345"></stop><stop offset="1" style="stop-color:#a80d00;" id="stop3347"></stop></linearGradient><linearGradient id="XMLID_23_" gradientUnits="userSpaceOnUse" x1="118.9761" y1="11.5415" x2="158.6686" y2="-8.3048"><stop offset="0" style="stop-color:#ffffff;" id="stop3352"></stop><stop offset="0" style="stop-color:#ffffff;" id="stop3354"></stop><stop offset="0.54" style="stop-color:#c81f11;" id="stop3356"></stop><stop offset="0.99" style="stop-color:#bf0905;" id="stop3358"></stop><stop offset="1" style="stop-color:#bf0905;" id="stop3360"></stop></linearGradient><linearGradient id="XMLID_24_" gradientUnits="userSpaceOnUse" x1="3.9033" y1="113.5547" x2="7.1702" y2="146.2628"><stop offset="0" style="stop-color:#ffffff;" id="stop3365"></stop><stop offset="0" style="stop-color:#ffffff;" id="stop3367"></stop><stop offset="0.31" style="stop-color:#de4024;" id="stop3369"></stop><stop offset="0.99" style="stop-color:#bf190b;" id="stop3371"></stop><stop offset="1" style="stop-color:#bf190b;" id="stop3373"></stop></linearGradient><linearGradient id="XMLID_25_" gradientUnits="userSpaceOnUse" x1="-18.5557" y1="155.1045" x2="135.0152" y2="-2.8093"><stop offset="0" style="stop-color:#bd0012;" id="stop3380"></stop><stop offset="0" style="stop-color:#bd0012;" id="stop3382"></stop><stop offset="0.07" style="stop-color:#ffffff;" id="stop3384"></stop><stop offset="0.17" style="stop-color:#ffffff;" id="stop3386"></stop><stop offset="0.27" style="stop-color:#c82f1c;" id="stop3388"></stop><stop offset="0.33" style="stop-color:#820c01;" id="stop3390"></stop><stop offset="0.46" style="stop-color:#a31601;" id="stop3392"></stop><stop offset="0.72" style="stop-color:#b31301;" id="stop3394"></stop><stop offset="0.99" style="stop-color:#e82609;" id="stop3396"></stop><stop offset="1" style="stop-color:#e82609;" id="stop3398"></stop></linearGradient><linearGradient id="XMLID_26_" gradientUnits="userSpaceOnUse" x1="99.0747" y1="171.0332" x2="52.8177" y2="159.6166"><stop offset="0" style="stop-color:#8c0c01;" id="stop3403"></stop><stop offset="0" style="stop-color:#8c0c01;" id="stop3405"></stop><stop offset="0.54" style="stop-color:#990c00;" id="stop3407"></stop><stop offset="0.99" style="stop-color:#a80d0e;" id="stop3409"></stop><stop offset="1" style="stop-color:#a80d0e;" id="stop3411"></stop></linearGradient><linearGradient id="XMLID_27_" gradientUnits="userSpaceOnUse" x1="178.5259" y1="115.5146" x2="137.4327" y2="78.684"><stop offset="0" style="stop-color:#7e110b;" id="stop3416"></stop><stop offset="0" style="stop-color:#7e110b;" id="stop3418"></stop><stop offset="0.99" style="stop-color:#9e0c00;" id="stop3420"></stop><stop offset="1" style="stop-color:#9e0c00;" id="stop3422"></stop></linearGradient><linearGradient id="XMLID_28_" gradientUnits="userSpaceOnUse" x1="193.6235" y1="47.937" x2="173.1542" y2="26.0538"><stop offset="0" style="stop-color:#79130d;" id="stop3427"></stop><stop offset="0" style="stop-color:#79130d;" id="stop3429"></stop><stop offset="0.99" style="stop-color:#9e120b;" id="stop3431"></stop><stop offset="1" style="stop-color:#9e120b;" id="stop3433"></stop></linearGradient><radialGradient id="XMLID_29_" cx="143.8315" cy="79.3882" r="50.3576" gradientUnits="userSpaceOnUse"><stop offset="0" style="stop-color:#a80d00;" id="stop3440"></stop><stop offset="0" style="stop-color:#a80d00;" id="stop3442"></stop><stop offset="0.99" style="stop-color:#7e0e08;" id="stop3444"></stop><stop offset="1" style="stop-color:#7e0e08;" id="stop3446"></stop></radialGradient><radialGradient id="XMLID_30_" cx="74.0923" cy="145.751" r="66.9437" gradientUnits="userSpaceOnUse"><stop offset="0" style="stop-color:#a30c00;" id="stop3451"></stop><stop offset="0" style="stop-color:#a30c00;" id="stop3453"></stop><stop offset="0.99" style="stop-color:#800e08;" id="stop3455"></stop><stop offset="1" style="stop-color:#800e08;" id="stop3457"></stop></radialGradient><linearGradient id="XMLID_31_" gradientUnits="userSpaceOnUse" x1="26.6699" y1="197.3359" x2="9.9887" y2="140.742"><stop offset="0" style="stop-color:#8b2114;" id="stop3462"></stop><stop offset="0" style="stop-color:#8b2114;" id="stop3464"></stop><stop offset="0.43" style="stop-color:#9e100a;" id="stop3466"></stop><stop offset="0.99" style="stop-color:#b3100c;" id="stop3468"></stop><stop offset="1" style="stop-color:#b3100c;" id="stop3470"></stop></linearGradient><linearGradient id="XMLID_32_" gradientUnits="userSpaceOnUse" x1="154.6411" y1="9.7979" x2="192.039" y2="26.3059"><stop offset="0" style="stop-color:#b31000;" id="stop3475"></stop><stop offset="0" style="stop-color:#b31000;" id="stop3477"></stop><stop offset="0.44" style="stop-color:#910f08;" id="stop3479"></stop><stop offset="0.99" style="stop-color:#791c12;" id="stop3481"></stop><stop offset="1" style="stop-color:#791c12;" id="stop3483"></stop></linearGradient><polygon style="fill:url(#linearGradient3448);fill-rule:evenodd;" clip-rule="evenodd" points="153.5,130.41 40.38,197.58 186.849,187.641 198.13,39.95 " id="polygon3282"></polygon><polygon style="fill:url(#XMLID_18_-7);fill-rule:evenodd;" clip-rule="evenodd" points="187.089,187.54 174.5,100.65 140.209,145.93 " id="polygon3293"></polygon><polygon style="fill:url(#XMLID_19_-4);fill-rule:evenodd;" clip-rule="evenodd" points="187.259,187.54 95.03,180.3 40.87,197.391 " id="polygon3304"></polygon><polygon style="fill:url(#XMLID_20_-9);fill-rule:evenodd;" clip-rule="evenodd" points="41,197.41 64.04,121.93 13.34,132.771 " id="polygon3319"></polygon><polygon style="fill:url(#XMLID_21_-3);fill-rule:evenodd;" clip-rule="evenodd" points="140.2,146.18 119,63.14 58.33,120.01 " id="polygon3334"></polygon><polygon style="fill:url(#XMLID_22_-7);fill-rule:evenodd;" clip-rule="evenodd" points="193.32,64.31 135.97,17.47 120,69.1 " id="polygon3349"></polygon><polygon style="fill:url(#XMLID_23_-9);fill-rule:evenodd;" clip-rule="evenodd" points="166.5,0.77 132.77,19.41 111.49,0.52 " id="polygon3362"></polygon><polygon style="fill:url(#XMLID_24_-3);fill-rule:evenodd;" clip-rule="evenodd" points="0,158.09 14.13,132.32 2.7,101.62 " id="polygon3375"></polygon>',24),Wd=O("path",{style:{fill:"#ffffff","fill-rule":"evenodd"},"inkscape:connector-curvature":"0","clip-rule":"evenodd",d:"m 1.94,100.65 11.5,32.62 49.97,-11.211 57.05,-53.02 L 136.56,17.9 111.209,0 68.109,16.13 C 54.53,28.76 28.18,53.75 27.23,54.22 26.29,54.7 9.83,85.81 1.94,100.65 z",id:"path3377"},null,-1),Xd=O("path",{style:{fill:"url(#XMLID_25_-9)","fill-rule":"evenodd"},"inkscape:connector-curvature":"0","clip-rule":"evenodd",d:"m 42.32,42.05 c 29.43,-29.18 67.37,-46.42 81.93,-31.73 14.551,14.69 -0.88,50.39 -30.31,79.56 -29.43,29.17 -66.9,47.36 -81.45,32.67 -14.56,-14.68 0.4,-51.33 29.83,-80.5 z",id:"path3400"},null,-1),$d=O("path",{style:{fill:"url(#XMLID_26_-2)","fill-rule":"evenodd"},"inkscape:connector-curvature":"0","clip-rule":"evenodd",d:"m 41,197.38 22.86,-75.72 75.92,24.39 C 112.33,171.79 81.8,193.55 41,197.38 z",id:"path3413"},null,-1),Kd=O("path",{style:{fill:"url(#XMLID_27_-1)","fill-rule":"evenodd"},"inkscape:connector-curvature":"0","clip-rule":"evenodd",d:"m 120.56,68.89 19.49,77.2 C 162.98,121.98 183.56,96.06 193.639,64 l -73.079,4.89 z",id:"path3424"},null,-1),Jd=O("path",{style:{fill:"url(#XMLID_28_-1)","fill-rule":"evenodd"},"inkscape:connector-curvature":"0","clip-rule":"evenodd",d:"m 193.44,64.39 c 7.8,-23.54 9.6,-57.31 -27.181,-63.58 l -30.18,16.67 57.361,46.91 z",id:"path3435"},null,-1),kd=O("path",{style:{fill:"#9e1209","fill-rule":"evenodd"},"inkscape:connector-curvature":"0","clip-rule":"evenodd",d:"m 0,157.75 c 1.08,38.851 29.11,39.43 41.05,39.771 L 13.47,133.11 0,157.75 z",id:"path3437"},null,-1),jd=O("path",{style:{fill:"url(#XMLID_29_-4)","fill-rule":"evenodd"},"inkscape:connector-curvature":"0","clip-rule":"evenodd",d:"m 120.669,69.01 c 17.62,10.83 53.131,32.58 53.851,32.98 1.119,0.63 15.31,-23.93 18.53,-37.81 l -72.381,4.83 z",id:"path3448"},null,-1),qd=O("path",{style:{fill:"url(#XMLID_30_-6)","fill-rule":"evenodd"},"inkscape:connector-curvature":"0","clip-rule":"evenodd",d:"m 63.83,121.66 30.56,58.96 c 18.07,-9.8 32.22,-21.74 45.18,-34.53 L 63.83,121.66 z",id:"path3459"},null,-1),Qd=O("path",{style:{fill:"url(#XMLID_31_-6)","fill-rule":"evenodd"},"inkscape:connector-curvature":"0","clip-rule":"evenodd",d:"m 13.35,133.19 -4.33,51.56 c 8.17,11.16 19.41,12.13 31.2,11.26 -8.53,-21.23 -25.57,-63.68 -26.87,-62.82 z",id:"path3472"},null,-1),Zd=O("path",{style:{fill:"url(#XMLID_32_-0)","fill-rule":"evenodd"},"inkscape:connector-curvature":"0","clip-rule":"evenodd",d:"m 135.9,17.61 60.71,8.52 C 193.37,12.4 183.42,3.54 166.46,0.77 L 135.9,17.61 z",id:"path3485"},null,-1),zd=[Yd,xd,Vd,wd,Wd,Xd,$d,Kd,Jd,kd,jd,qd,Qd,Zd];function eM(e,t){return U(),Y("svg",vd,zd)}const $n=xo(Fd,[["render",eM]]),tM={class:"flex items-center"},EM=["textContent"],oT=De({__name:"Timing",props:{durationMs:{},slowThreshold:{default:1e3},tooSlowThreshold:{default:1500}},setup(e){const t=e,E=ze(()=>t.durationMs>=1e3?(t.durationMs/1e3).toFixed(2)+"s":t.durationMs.toFixed(1)+"ms");return(T,r)=>(U(),Y("div",tM,[Rt(T.$slots,"default"),O("span",{class:$e({"px-1 py-0.5 rounded text-sm":!0,"text-orange-600":T.durationMs>=t.slowThreshold&&T.durationMs<t.tooSlowThreshold,"text-red-600 bg-red-100":T.durationMs>=t.tooSlowThreshold}),textContent:Ae(E.value)},null,10,EM)]))}}),TM=["textContent"],rM=De({__name:"StatusCode",props:{code:{}},setup(e){const t=e;return(E,T)=>(U(),Y("span",{class:$e(["px-1 py-0.5 rounded text-xs",{"bg-green-600 text-white":t.code<300,"bg-blue-500 text-white":t.code>=300&&t.code<400,"bg-amber-600 text-white":t.code>=400&&t.code<500,"bg-red-600 text-white":t.code>=500}]),textContent:Ae(t.code)},null,10,TM))}}),sM={class:"flex flex-col space-y-8"},Kn=De({__name:"PanelList",setup(e){return(t,E)=>(U(),Ce(Dt,null,{default:ne(()=>[O("div",sM,[Rt(t.$slots,"default")])]),_:3}))}});function nM(e){const t=typeof e=="string"?e:JSON.stringify(e),E="text/plain",T=new Blob([t],{type:E}),r=[new ClipboardItem({[E]:T})];navigator.clipboard.write(r)}const RM={class:"flex items-center space-x-4"},oM={class:"font-semibold text-lg"},AM={key:0},iM=["textContent"],SM={key:0,class:"mt-4 ml-4"},OM={key:0,class:"mt-3 text-stone-400 text-sm"},aM=["textContent"],IM=["textContent"],hA=De({__name:"PanelListItem",props:{title:{},source:{},isFormatted:{type:Boolean},copyableText:{}},emits:["toggleFormatting"],setup(e){const t=e,E=At({isOpen:!0,showOriginFile:!1});return(T,r)=>(U(),Y("div",null,[O("div",RM,[O("button",{class:"flex items-center space-x-1",onClick:r[0]||(r[0]=s=>E.isOpen=!E.isOpen)},[$(Re(vo),{class:$e(["size-4",{"-rotate-90":!E.isOpen}])},null,8,["class"]),O("span",oM,Ae(t.title),1)]),Rt(T.$slots,"title-details"),E.isOpen?(U(),Y("div",AM,[t.isFormatted!==void 0?(U(),Y("span",{key:0,onClick:r[1]||(r[1]=s=>T.$emit("toggleFormatting")),class:"px-3 text-xs uppercase text-stone-400 cursor-pointer",title:"Format SQL query",textContent:Ae(t.isFormatted?"unformat":"format")},null,8,iM)):oe("",!0),t.copyableText?(U(),Y("span",{key:1,onClick:r[2]||(r[2]=s=>Re(nM)(t.copyableText)),class:"px-3 text-xs uppercase text-stone-400 cursor-pointer",title:"Copy SQL query to clipboard"},"copy")):oe("",!0),t.source?(U(),Y("span",{key:2,onClick:r[3]||(r[3]=s=>E.showOriginFile=!E.showOriginFile),class:"px-3 text-xs uppercase text-stone-400 cursor-pointer",title:"Show origin file of the query"},"file")):oe("",!0),Rt(T.$slots,"actions")])):oe("",!0)]),E.isOpen?(U(),Y("div",SM,[O("div",null,[Rt(T.$slots,"content")]),E.showOriginFile?(U(),Y("div",OM,[O("div",{textContent:Ae(t.source[0])},null,8,aM),t.source.length>1?(U(!0),Y(Le,{key:0},Je(t.source.slice(1),s=>(U(),Y("div",{class:"pl-4",textContent:Ae("↳ "+s)},null,8,IM))),256)):oe("",!0)])):oe("",!0)])):oe("",!0)]))}}),NM=De({__name:"MessageItem",props:{msg:{}},setup(e){const t=At({isFormatted:!1});function E(T){return t.isFormatted?JSON.stringify(T,null,2):JSON.stringify(T)}return(T,r)=>{const s=$E("highlightjs");return U(),Ce(hA,{onToggleFormatting:r[0]||(r[0]=n=>t.isFormatted=!t.isFormatted),title:T.msg.msg,"copyable-text":E(T.msg.extra),"is-formatted":t.isFormatted,source:T.msg.source},{content:ne(()=>[$(s,{language:"json",code:E(T.msg.extra)},null,8,["code"])]),_:1},8,["title","copyable-text","is-formatted","source"])}}});var gA={exports:{}};(function(e){(function(t,E){e.exports?e.exports=E():t.nearley=E()})(Qt,function(){function t(A,i,a){return this.id=++t.highestId,this.name=A,this.symbols=i,this.postprocess=a,this}t.highestId=0,t.prototype.toString=function(A){var i=typeof A>"u"?this.symbols.map(o).join(" "):this.symbols.slice(0,A).map(o).join(" ")+" ● "+this.symbols.slice(A).map(o).join(" ");return this.name+" → "+i};function E(A,i,a,I){this.rule=A,this.dot=i,this.reference=a,this.data=[],this.wantedBy=I,this.isComplete=this.dot===A.symbols.length}E.prototype.toString=function(){return"{"+this.rule.toString(this.dot)+"}, from: "+(this.reference||0)},E.prototype.nextState=function(A){var i=new E(this.rule,this.dot+1,this.reference,this.wantedBy);return i.left=this,i.right=A,i.isComplete&&(i.data=i.build(),i.right=void 0),i},E.prototype.build=function(){var A=[],i=this;do A.push(i.right.data),i=i.left;while(i.left);return A.reverse(),A},E.prototype.finish=function(){this.rule.postprocess&&(this.data=this.rule.postprocess(this.data,this.reference,n.fail))};function T(A,i){this.grammar=A,this.index=i,this.states=[],this.wants={},this.scannable=[],this.completed={}}T.prototype.process=function(A){for(var i=this.states,a=this.wants,I=this.completed,l=0;l<i.length;l++){var h=i[l];if(h.isComplete){if(h.finish(),h.data!==n.fail){for(var b=h.wantedBy,w=b.length;w--;){var K=b[w];this.complete(K,h)}if(h.reference===this.index){var k=h.rule.name;(this.completed[k]=this.completed[k]||[]).push(h)}}}else{var k=h.rule.symbols[h.dot];if(typeof k!="string"){this.scannable.push(h);continue}if(a[k]){if(a[k].push(h),I.hasOwnProperty(k))for(var F=I[k],w=0;w<F.length;w++){var x=F[w];this.complete(h,x)}}else a[k]=[h],this.predict(k)}}},T.prototype.predict=function(A){for(var i=this.grammar.byName[A]||[],a=0;a<i.length;a++){var I=i[a],l=this.wants[A],h=new E(I,0,this.index,l);this.states.push(h)}},T.prototype.complete=function(A,i){var a=A.nextState(i);this.states.push(a)};function r(A,i){this.rules=A,this.start=i||this.rules[0].name;var a=this.byName={};this.rules.forEach(function(I){a.hasOwnProperty(I.name)||(a[I.name]=[]),a[I.name].push(I)})}r.fromCompiled=function(I,i){var a=I.Lexer;I.ParserStart&&(i=I.ParserStart,I=I.ParserRules);var I=I.map(function(h){return new t(h.name,h.symbols,h.postprocess)}),l=new r(I,i);return l.lexer=a,l};function s(){this.reset("")}s.prototype.reset=function(A,i){this.buffer=A,this.index=0,this.line=i?i.line:1,this.lastLineBreak=i?-i.col:0},s.prototype.next=function(){if(this.index<this.buffer.length){var A=this.buffer[this.index++];return A===`
7
- `&&(this.line+=1,this.lastLineBreak=this.index),{value:A}}},s.prototype.save=function(){return{line:this.line,col:this.index-this.lastLineBreak}},s.prototype.formatError=function(A,i){var a=this.buffer;if(typeof a=="string"){var I=a.split(`
8
- `).slice(Math.max(0,this.line-5),this.line),l=a.indexOf(`
9
- `,this.index);l===-1&&(l=a.length);var h=this.index-this.lastLineBreak,b=String(this.line).length;return i+=" at line "+this.line+" col "+h+`:
23
+ */let go;const Gs=e=>go=e,mo=Symbol();function hT(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var ME;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(ME||(ME={}));function tI(){const e=gR(!0),t=e.run(()=>Qe({}));let E=[],s=[];const T=ZT({install(r){Gs(T),T._a=r,r.provide(mo,T),r.config.globalProperties.$pinia=T,s.forEach(n=>E.push(n)),s=[]},use(r){return!this._a&&!eI?s.push(r):E.push(r),this},_p:E,_a:null,_e:e,_s:new Map,state:t});return T}const Ho=()=>{};function Rn(e,t,E,s=Ho){e.push(t);const T=()=>{const r=e.indexOf(t);r>-1&&(e.splice(r,1),s())};return!E&&mR()&&xi(T),T}function jt(e,...t){e.slice().forEach(E=>{E(...t)})}const EI=e=>e(),on=Symbol(),qs=Symbol();function GT(e,t){e instanceof Map&&t instanceof Map?t.forEach((E,s)=>e.set(s,E)):e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const E in t){if(!t.hasOwnProperty(E))continue;const s=t[E],T=e[E];hT(T)&&hT(s)&&e.hasOwnProperty(E)&&!pe(s)&&!Pt(s)?e[E]=GT(T,s):e[E]=s}return e}const sI=Symbol();function TI(e){return!hT(e)||!e.hasOwnProperty(sI)}const{assign:Lt}=Object;function rI(e){return!!(pe(e)&&e.effect)}function nI(e,t,E,s){const{state:T,actions:r,getters:n}=t,R=E.state.value[e];let o;function i(){R||(E.state.value[e]=T?T():{});const A=SS(E.state.value[e]);return Lt(A,r,Object.keys(n||{}).reduce((O,N)=>(O[N]=ZT(tt(()=>{Gs(E);const l=E._s.get(e);return n[N].call(l,l)})),O),{}))}return o=Bo(e,i,t,E,s,!0),o}function Bo(e,t,E={},s,T,r){let n;const R=Lt({actions:{}},E),o={deep:!0};let i,A,O=[],N=[],l;const C=s.state.value[e];!r&&!C&&(s.state.value[e]={}),Qe({});let H;function Q($){let X;i=A=!1,typeof $=="function"?($(s.state.value[e]),X={type:ME.patchFunction,storeId:e,events:l}):(GT(s.state.value[e],$),X={type:ME.patchObject,payload:$,storeId:e,events:l});const _=H=Symbol();zT().then(()=>{H===_&&(i=!0)}),A=!0,jt(O,X,s.state.value[e])}const W=r?function(){const{state:X}=E,_=X?X():{};this.$patch(d=>{Lt(d,_)})}:Ho;function j(){n.stop(),O=[],N=[],s._s.delete(e)}const ee=($,X="")=>{if(on in $)return $[qs]=X,$;const _=function(){Gs(s);const d=Array.from(arguments),f=[],Y=[];function J(G){f.push(G)}function Me(G){Y.push(G)}jt(N,{args:d,name:_[qs],store:k,after:J,onError:Me});let c;try{c=$.apply(this&&this.$id===e?this:k,d)}catch(G){throw jt(Y,G),G}return c instanceof Promise?c.then(G=>(jt(f,G),G)).catch(G=>(jt(Y,G),Promise.reject(G))):(jt(f,c),c)};return _[on]=!0,_[qs]=X,_},x={_p:s,$id:e,$onAction:Rn.bind(null,N),$patch:Q,$reset:W,$subscribe($,X={}){const _=Rn(O,$,X.detached,()=>d()),d=n.run(()=>rE(()=>s.state.value[e],f=>{(X.flush==="sync"?A:i)&&$({storeId:e,type:ME.direct,events:l},f)},Lt({},o,X)));return _},$dispose:j},k=rt(x);s._s.set(e,k);const ie=(s._a&&s._a.runWithContext||EI)(()=>s._e.run(()=>(n=gR()).run(()=>t({action:ee}))));for(const $ in ie){const X=ie[$];if(pe(X)&&!rI(X)||Pt(X))r||(C&&TI(X)&&(pe(X)?X.value=C[$]:GT(X,C[$])),s.state.value[e][$]=X);else if(typeof X=="function"){const _=ee(X,$);ie[$]=_,R.actions[$]=X}}return Lt(k,ie),Lt(Se(k),ie),Object.defineProperty(k,"$state",{get:()=>s.state.value[e],set:$=>{Q(X=>{Lt(X,$)})}}),s._p.forEach($=>{Lt(k,n.run(()=>$({store:k,app:s._a,pinia:s,options:R})))}),C&&r&&E.hydrate&&E.hydrate(k.$state,C),i=!0,A=!0,k}/*! #__NO_SIDE_EFFECTS__ */function bo(e,t,E){let s,T;const r=typeof t=="function";typeof e=="string"?(s=e,T=r?E:t):(T=e,s=e.id);function n(R,o){const i=$S();return R=R||(i?PE(mo,null):null),R&&Gs(R),R=go,R._s.has(s)||(r?Bo(s,t,T,R):nI(s,T,R)),R._s.get(s)}return n.$id=s,n}function RI(e,t){return gT(e,e.childNodes,t)}function gT(e,t,{mode:E="open",delegatesFocus:s=!1}={mode:"open"}){try{const T=e.shadowRoot;if(T!=null){console.error("[shadow] Attach shadow multiple times",e,t,T);return}else{const r=e.attachShadow({mode:E,delegatesFocus:s});return t&&oI(r,t),r}}catch(T){console.error("[shadow] make shadow-root failed",e,t),console.error(T)}}function oI(e,t){const E=document.createDocumentFragment();for(const s of t)E.appendChild(s);e.appendChild(E)}const AI=document.createDocumentFragment(),is=Ne({props:{media:String,nonce:String},setup(e,{slots:t}){return()=>{var E;return vE("style",{media:e.media,nonce:e.nonce},(E=t.default)==null?void 0:E.call(t))}}}),Ss=iI()(Ne({props:{mode:{type:String,default:"open"},delegatesFocus:{type:Boolean,default:!1},abstract:{type:Boolean,default:!1},tag:{type:String,default:"div"},adoptedStyleSheets:{type:Array}},emits:["error"],setup(e,{slots:t,expose:E,emit:s}){const T=Qe(!1),r=Qe(),n=Qe(),R=Qe(),o=tt(()=>R.value??AI),i=rt({shadow_root:R});return E(i),no(()=>{T.value=e.abstract}),Ms(()=>{var A;try{T.value?n.value.parentElement.shadowRoot?R.value=n.value.parentElement.shadowRoot:R.value=gT(n.value.parentElement,void 0,{mode:e.mode,delegatesFocus:e.delegatesFocus}):R.value=gT(r.value,void 0,{mode:e.mode,delegatesFocus:e.delegatesFocus}),(A=R.value)==null||A.styleSheets}catch(O){console.error(O),s("error",O)}}),rE([R,()=>e.adoptedStyleSheets],([A,O])=>{if(!(!A||!O))try{A.adoptedStyleSheets=O}catch(N){console.error(N),s("error",N)}}),()=>{var O;const A=vE(fS,{ref:n,to:o.value},[(O=t.default)==null?void 0:O.call(t)]);return T.value?A:vE(e.tag,{ref:r},A)}},install:yo,Style:is}));function iI(){return e=>e}function yo(e){e.component("shadow-root",Ss),e.directive("shadow",{beforeMount(t){console.warn("[VueShadowDom] Deprecated v-shadow directive, use <shadow-root> component"),RI(t)}})}var SI={ShadowRoot:Ss,ShadowStyle:is,shadow_root:Ss,shadow_style:is,install:yo},mT={exports:{}};(function(e,t){(function(E,s){s(t)})(eE,function(E){var s={logger:self.console,WebSocket:self.WebSocket},T={log:function(){if(this.enabled){for(var d,f=arguments.length,Y=Array(f),J=0;J<f;J++)Y[J]=arguments[J];Y.push(Date.now()),(d=s.logger).log.apply(d,["[ActionCable]"].concat(Y))}}},r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(_){return typeof _}:function(_){return _&&typeof Symbol=="function"&&_.constructor===Symbol&&_!==Symbol.prototype?"symbol":typeof _},n=function(_,d){if(!(_ instanceof d))throw new TypeError("Cannot call a class as a function")},R=function(){function _(d,f){for(var Y=0;Y<f.length;Y++){var J=f[Y];J.enumerable=J.enumerable||!1,J.configurable=!0,"value"in J&&(J.writable=!0),Object.defineProperty(d,J.key,J)}}return function(d,f,Y){return f&&_(d.prototype,f),Y&&_(d,Y),d}}(),o=function(){return new Date().getTime()},i=function(d){return(o()-d)/1e3},A=function(d,f,Y){return Math.max(f,Math.min(Y,d))},O=function(){function _(d){n(this,_),this.visibilityDidChange=this.visibilityDidChange.bind(this),this.connection=d,this.reconnectAttempts=0}return _.prototype.start=function(){this.isRunning()||(this.startedAt=o(),delete this.stoppedAt,this.startPolling(),addEventListener("visibilitychange",this.visibilityDidChange),T.log("ConnectionMonitor started. pollInterval = "+this.getPollInterval()+" ms"))},_.prototype.stop=function(){this.isRunning()&&(this.stoppedAt=o(),this.stopPolling(),removeEventListener("visibilitychange",this.visibilityDidChange),T.log("ConnectionMonitor stopped"))},_.prototype.isRunning=function(){return this.startedAt&&!this.stoppedAt},_.prototype.recordPing=function(){this.pingedAt=o()},_.prototype.recordConnect=function(){this.reconnectAttempts=0,this.recordPing(),delete this.disconnectedAt,T.log("ConnectionMonitor recorded connect")},_.prototype.recordDisconnect=function(){this.disconnectedAt=o(),T.log("ConnectionMonitor recorded disconnect")},_.prototype.startPolling=function(){this.stopPolling(),this.poll()},_.prototype.stopPolling=function(){clearTimeout(this.pollTimeout)},_.prototype.poll=function(){var f=this;this.pollTimeout=setTimeout(function(){f.reconnectIfStale(),f.poll()},this.getPollInterval())},_.prototype.getPollInterval=function(){var f=this.constructor.pollInterval,Y=f.min,J=f.max,Me=f.multiplier,c=Me*Math.log(this.reconnectAttempts+1);return Math.round(A(c,Y,J)*1e3)},_.prototype.reconnectIfStale=function(){this.connectionIsStale()&&(T.log("ConnectionMonitor detected stale connection. reconnectAttempts = "+this.reconnectAttempts+", pollInterval = "+this.getPollInterval()+" ms, time disconnected = "+i(this.disconnectedAt)+" s, stale threshold = "+this.constructor.staleThreshold+" s"),this.reconnectAttempts++,this.disconnectedRecently()?T.log("ConnectionMonitor skipping reopening recent disconnect"):(T.log("ConnectionMonitor reopening"),this.connection.reopen()))},_.prototype.connectionIsStale=function(){return i(this.pingedAt?this.pingedAt:this.startedAt)>this.constructor.staleThreshold},_.prototype.disconnectedRecently=function(){return this.disconnectedAt&&i(this.disconnectedAt)<this.constructor.staleThreshold},_.prototype.visibilityDidChange=function(){var f=this;document.visibilityState==="visible"&&setTimeout(function(){(f.connectionIsStale()||!f.connection.isOpen())&&(T.log("ConnectionMonitor reopening stale connection on visibilitychange. visibilityState = "+document.visibilityState),f.connection.reopen())},200)},_}();O.pollInterval={min:3,max:30,multiplier:5},O.staleThreshold=6;var N={message_types:{welcome:"welcome",disconnect:"disconnect",ping:"ping",confirmation:"confirm_subscription",rejection:"reject_subscription"},disconnect_reasons:{unauthorized:"unauthorized",invalid_request:"invalid_request",server_restart:"server_restart"},default_mount_path:"/cable",protocols:["actioncable-v1-json","actioncable-unsupported"]},l=N.message_types,C=N.protocols,H=C.slice(0,C.length-1),Q=[].indexOf,W=function(){function _(d){n(this,_),this.open=this.open.bind(this),this.consumer=d,this.subscriptions=this.consumer.subscriptions,this.monitor=new O(this),this.disconnected=!0}return _.prototype.send=function(f){return this.isOpen()?(this.webSocket.send(JSON.stringify(f)),!0):!1},_.prototype.open=function(){return this.isActive()?(T.log("Attempted to open WebSocket, but existing socket is "+this.getState()),!1):(T.log("Opening WebSocket, current state is "+this.getState()+", subprotocols: "+C),this.webSocket&&this.uninstallEventHandlers(),this.webSocket=new s.WebSocket(this.consumer.url,C),this.installEventHandlers(),this.monitor.start(),!0)},_.prototype.close=function(){var f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{allowReconnect:!0},Y=f.allowReconnect;if(Y||this.monitor.stop(),this.isActive())return this.webSocket.close()},_.prototype.reopen=function(){if(T.log("Reopening WebSocket, current state is "+this.getState()),this.isActive())try{return this.close()}catch(f){T.log("Failed to reopen WebSocket",f)}finally{T.log("Reopening WebSocket in "+this.constructor.reopenDelay+"ms"),setTimeout(this.open,this.constructor.reopenDelay)}else return this.open()},_.prototype.getProtocol=function(){if(this.webSocket)return this.webSocket.protocol},_.prototype.isOpen=function(){return this.isState("open")},_.prototype.isActive=function(){return this.isState("open","connecting")},_.prototype.isProtocolSupported=function(){return Q.call(H,this.getProtocol())>=0},_.prototype.isState=function(){for(var f=arguments.length,Y=Array(f),J=0;J<f;J++)Y[J]=arguments[J];return Q.call(Y,this.getState())>=0},_.prototype.getState=function(){if(this.webSocket){for(var f in s.WebSocket)if(s.WebSocket[f]===this.webSocket.readyState)return f.toLowerCase()}return null},_.prototype.installEventHandlers=function(){for(var f in this.events){var Y=this.events[f].bind(this);this.webSocket["on"+f]=Y}},_.prototype.uninstallEventHandlers=function(){for(var f in this.events)this.webSocket["on"+f]=function(){}},_}();W.reopenDelay=500,W.prototype.events={message:function(d){if(this.isProtocolSupported()){var f=JSON.parse(d.data),Y=f.identifier,J=f.message,Me=f.reason,c=f.reconnect,G=f.type;switch(G){case l.welcome:return this.monitor.recordConnect(),this.subscriptions.reload();case l.disconnect:return T.log("Disconnecting. Reason: "+Me),this.close({allowReconnect:c});case l.ping:return this.monitor.recordPing();case l.confirmation:return this.subscriptions.confirmSubscription(Y),this.subscriptions.notify(Y,"connected");case l.rejection:return this.subscriptions.reject(Y);default:return this.subscriptions.notify(Y,"received",J)}}},open:function(){if(T.log("WebSocket onopen event, using '"+this.getProtocol()+"' subprotocol"),this.disconnected=!1,!this.isProtocolSupported())return T.log("Protocol is unsupported. Stopping monitor and disconnecting."),this.close({allowReconnect:!1})},close:function(d){if(T.log("WebSocket onclose event"),!this.disconnected)return this.disconnected=!0,this.monitor.recordDisconnect(),this.subscriptions.notifyAll("disconnected",{willAttemptReconnect:this.monitor.isRunning()})},error:function(){T.log("WebSocket onerror event")}};var j=function(d,f){if(f!=null)for(var Y in f){var J=f[Y];d[Y]=J}return d},ee=function(){function _(d){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Y=arguments[2];n(this,_),this.consumer=d,this.identifier=JSON.stringify(f),j(this,Y)}return _.prototype.perform=function(f){var Y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Y.action=f,this.send(Y)},_.prototype.send=function(f){return this.consumer.send({command:"message",identifier:this.identifier,data:JSON.stringify(f)})},_.prototype.unsubscribe=function(){return this.consumer.subscriptions.remove(this)},_}(),x=function(){function _(d){n(this,_),this.subscriptions=d,this.pendingSubscriptions=[]}return _.prototype.guarantee=function(f){this.pendingSubscriptions.indexOf(f)==-1?(T.log("SubscriptionGuarantor guaranteeing "+f.identifier),this.pendingSubscriptions.push(f)):T.log("SubscriptionGuarantor already guaranteeing "+f.identifier),this.startGuaranteeing()},_.prototype.forget=function(f){T.log("SubscriptionGuarantor forgetting "+f.identifier),this.pendingSubscriptions=this.pendingSubscriptions.filter(function(Y){return Y!==f})},_.prototype.startGuaranteeing=function(){this.stopGuaranteeing(),this.retrySubscribing()},_.prototype.stopGuaranteeing=function(){clearTimeout(this.retryTimeout)},_.prototype.retrySubscribing=function(){var f=this;this.retryTimeout=setTimeout(function(){f.subscriptions&&typeof f.subscriptions.subscribe=="function"&&f.pendingSubscriptions.map(function(Y){T.log("SubscriptionGuarantor resubscribing "+Y.identifier),f.subscriptions.subscribe(Y)})},500)},_}(),k=function(){function _(d){n(this,_),this.consumer=d,this.guarantor=new x(this),this.subscriptions=[]}return _.prototype.create=function(f,Y){var J=f,Me=(typeof J>"u"?"undefined":r(J))==="object"?J:{channel:J},c=new ee(this.consumer,Me,Y);return this.add(c)},_.prototype.add=function(f){return this.subscriptions.push(f),this.consumer.ensureActiveConnection(),this.notify(f,"initialized"),this.subscribe(f),f},_.prototype.remove=function(f){return this.forget(f),this.findAll(f.identifier).length||this.sendCommand(f,"unsubscribe"),f},_.prototype.reject=function(f){var Y=this;return this.findAll(f).map(function(J){return Y.forget(J),Y.notify(J,"rejected"),J})},_.prototype.forget=function(f){return this.guarantor.forget(f),this.subscriptions=this.subscriptions.filter(function(Y){return Y!==f}),f},_.prototype.findAll=function(f){return this.subscriptions.filter(function(Y){return Y.identifier===f})},_.prototype.reload=function(){var f=this;return this.subscriptions.map(function(Y){return f.subscribe(Y)})},_.prototype.notifyAll=function(f){for(var Y=this,J=arguments.length,Me=Array(J>1?J-1:0),c=1;c<J;c++)Me[c-1]=arguments[c];return this.subscriptions.map(function(G){return Y.notify.apply(Y,[G,f].concat(Me))})},_.prototype.notify=function(f,Y){for(var J=arguments.length,Me=Array(J>2?J-2:0),c=2;c<J;c++)Me[c-2]=arguments[c];var G=void 0;return typeof f=="string"?G=this.findAll(f):G=[f],G.map(function(w){return typeof w[Y]=="function"?w[Y].apply(w,Me):void 0})},_.prototype.subscribe=function(f){this.sendCommand(f,"subscribe")&&this.guarantor.guarantee(f)},_.prototype.confirmSubscription=function(f){var Y=this;T.log("Subscription confirmed "+f),this.findAll(f).map(function(J){return Y.guarantor.forget(J)})},_.prototype.sendCommand=function(f,Y){var J=f.identifier;return this.consumer.send({command:Y,identifier:J})},_}(),Ie=function(){function _(d){n(this,_),this._url=d,this.subscriptions=new k(this),this.connection=new W(this)}return _.prototype.send=function(f){return this.connection.send(f)},_.prototype.connect=function(){return this.connection.open()},_.prototype.disconnect=function(){return this.connection.close({allowReconnect:!1})},_.prototype.ensureActiveConnection=function(){if(!this.connection.isActive())return this.connection.open()},R(_,[{key:"url",get:function(){return ie(this._url)}}]),_}();function ie(_){if(typeof _=="function"&&(_=_()),_&&!/^wss?:/i.test(_)){var d=document.createElement("a");return d.href=_,d.href=d.href,d.protocol=d.protocol.replace("http","ws"),d.href}else return _}function $(){var _=arguments.length>0&&arguments[0]!==void 0?arguments[0]:X("url")||N.default_mount_path;return new Ie(_)}function X(_){var d=document.head.querySelector("meta[name='action-cable-"+_+"']");if(d)return d.getAttribute("content")}E.Connection=W,E.ConnectionMonitor=O,E.Consumer=Ie,E.INTERNAL=N,E.Subscription=ee,E.Subscriptions=k,E.SubscriptionGuarantor=x,E.adapters=s,E.createWebSocketURL=ie,E.logger=T,E.createConsumer=$,E.getConfig=X,Object.defineProperty(E,"__esModule",{value:!0})})})(mT,mT.exports);var OI=mT.exports;function An(e,t){return P(),y("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[S("path",{"fill-rule":"evenodd",d:"M11.78 4.22a.75.75 0 0 1 0 1.06L6.56 10.5h3.69a.75.75 0 0 1 0 1.5h-5.5a.75.75 0 0 1-.75-.75v-5.5a.75.75 0 0 1 1.5 0v3.69l5.22-5.22a.75.75 0 0 1 1.06 0Z","clip-rule":"evenodd"})])}function II(e,t){return P(),y("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[S("path",{"fill-rule":"evenodd",d:"M13.78 10.47a.75.75 0 0 1 0 1.06l-2.25 2.25a.75.75 0 0 1-1.06 0l-2.25-2.25a.75.75 0 1 1 1.06-1.06l.97.97V5.75a.75.75 0 0 1 1.5 0v5.69l.97-.97a.75.75 0 0 1 1.06 0ZM2.22 5.53a.75.75 0 0 1 0-1.06l2.25-2.25a.75.75 0 0 1 1.06 0l2.25 2.25a.75.75 0 0 1-1.06 1.06l-.97-.97v5.69a.75.75 0 0 1-1.5 0V4.56l-.97.97a.75.75 0 0 1-1.06 0Z","clip-rule":"evenodd"})])}function or(e,t){return P(),y("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[S("path",{"fill-rule":"evenodd",d:"M4.22 6.22a.75.75 0 0 1 1.06 0L8 8.94l2.72-2.72a.75.75 0 1 1 1.06 1.06l-3.25 3.25a.75.75 0 0 1-1.06 0L4.22 7.28a.75.75 0 0 1 0-1.06Z","clip-rule":"evenodd"})])}function aI(e,t){return P(),y("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[S("path",{"fill-rule":"evenodd",d:"M5.22 10.22a.75.75 0 0 1 1.06 0L8 11.94l1.72-1.72a.75.75 0 1 1 1.06 1.06l-2.25 2.25a.75.75 0 0 1-1.06 0l-2.25-2.25a.75.75 0 0 1 0-1.06ZM10.78 5.78a.75.75 0 0 1-1.06 0L8 4.06 6.28 5.78a.75.75 0 0 1-1.06-1.06l2.25-2.25a.75.75 0 0 1 1.06 0l2.25 2.25a.75.75 0 0 1 0 1.06Z","clip-rule":"evenodd"})])}function vo(e,t){return P(),y("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[S("path",{d:"M8 7c3.314 0 6-1.343 6-3s-2.686-3-6-3-6 1.343-6 3 2.686 3 6 3Z"}),S("path",{d:"M8 8.5c1.84 0 3.579-.37 4.914-1.037A6.33 6.33 0 0 0 14 6.78V8c0 1.657-2.686 3-6 3S2 9.657 2 8V6.78c.346.273.72.5 1.087.683C4.42 8.131 6.16 8.5 8 8.5Z"}),S("path",{d:"M8 12.5c1.84 0 3.579-.37 4.914-1.037.366-.183.74-.41 1.086-.684V12c0 1.657-2.686 3-6 3s-6-1.343-6-3v-1.22c.346.273.72.5 1.087.683C4.42 12.131 6.16 12.5 8 12.5Z"})])}function NI(e,t){return P(),y("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[S("path",{"fill-rule":"evenodd",d:"M4.78 4.97a.75.75 0 0 1 0 1.06L2.81 8l1.97 1.97a.75.75 0 1 1-1.06 1.06l-2.5-2.5a.75.75 0 0 1 0-1.06l2.5-2.5a.75.75 0 0 1 1.06 0ZM11.22 4.97a.75.75 0 0 0 0 1.06L13.19 8l-1.97 1.97a.75.75 0 1 0 1.06 1.06l2.5-2.5a.75.75 0 0 0 0-1.06l-2.5-2.5a.75.75 0 0 0-1.06 0ZM8.856 2.008a.75.75 0 0 1 .636.848l-1.5 10.5a.75.75 0 0 1-1.484-.212l1.5-10.5a.75.75 0 0 1 .848-.636Z","clip-rule":"evenodd"})])}function lI(e,t){return P(),y("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[S("path",{d:"M6 6v4h4V6H6Z"}),S("path",{"fill-rule":"evenodd",d:"M5.75 1a.75.75 0 0 0-.75.75V3a2 2 0 0 0-2 2H1.75a.75.75 0 0 0 0 1.5H3v.75H1.75a.75.75 0 0 0 0 1.5H3v.75H1.75a.75.75 0 0 0 0 1.5H3a2 2 0 0 0 2 2v1.25a.75.75 0 0 0 1.5 0V13h.75v1.25a.75.75 0 0 0 1.5 0V13h.75v1.25a.75.75 0 0 0 1.5 0V13a2 2 0 0 0 2-2h1.25a.75.75 0 0 0 0-1.5H13v-.75h1.25a.75.75 0 0 0 0-1.5H13V6.5h1.25a.75.75 0 0 0 0-1.5H13a2 2 0 0 0-2-2V1.75a.75.75 0 0 0-1.5 0V3h-.75V1.75a.75.75 0 0 0-1.5 0V3H6.5V1.75A.75.75 0 0 0 5.75 1ZM11 4.5a.5.5 0 0 1 .5.5v6a.5.5 0 0 1-.5.5H5a.5.5 0 0 1-.5-.5V5a.5.5 0 0 1 .5-.5h6Z","clip-rule":"evenodd"})])}function Sn(e,t){return P(),y("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[S("path",{d:"M4.5 2a.5.5 0 0 0-.5.5v11a.5.5 0 0 0 .5.5h1a.5.5 0 0 0 .5-.5v-11a.5.5 0 0 0-.5-.5h-1ZM10.5 2a.5.5 0 0 0-.5.5v11a.5.5 0 0 0 .5.5h1a.5.5 0 0 0 .5-.5v-11a.5.5 0 0 0-.5-.5h-1Z"})])}function On(e,t){return P(),y("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[S("path",{d:"M3 3.732a1.5 1.5 0 0 1 2.305-1.265l6.706 4.267a1.5 1.5 0 0 1 0 2.531l-6.706 4.268A1.5 1.5 0 0 1 3 12.267V3.732Z"})])}function _I(e,t){return P(),y("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[S("path",{"fill-rule":"evenodd",d:"M5 3.25V4H2.75a.75.75 0 0 0 0 1.5h.3l.815 8.15A1.5 1.5 0 0 0 5.357 15h5.285a1.5 1.5 0 0 0 1.493-1.35l.815-8.15h.3a.75.75 0 0 0 0-1.5H11v-.75A2.25 2.25 0 0 0 8.75 1h-1.5A2.25 2.25 0 0 0 5 3.25Zm2.25-.75a.75.75 0 0 0-.75.75V4h3v-.75a.75.75 0 0 0-.75-.75h-1.5ZM6.05 6a.75.75 0 0 1 .787.713l.275 5.5a.75.75 0 0 1-1.498.075l-.275-5.5A.75.75 0 0 1 6.05 6Zm3.9 0a.75.75 0 0 1 .712.787l-.275 5.5a.75.75 0 0 1-1.498-.075l.275-5.5a.75.75 0 0 1 .786-.711Z","clip-rule":"evenodd"})])}function CI(e,t){return P(),y("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[S("path",{"fill-rule":"evenodd",d:"M8 15A7 7 0 1 0 8 1a7 7 0 0 0 0 14Zm2.78-4.22a.75.75 0 0 1-1.06 0L8 9.06l-1.72 1.72a.75.75 0 1 1-1.06-1.06L6.94 8 5.22 6.28a.75.75 0 0 1 1.06-1.06L8 6.94l1.72-1.72a.75.75 0 1 1 1.06 1.06L9.06 8l1.72 1.72a.75.75 0 0 1 0 1.06Z","clip-rule":"evenodd"})])}class LI{constructor(t){je(this,"id");je(this,"meta");je(this,"request");je(this,"response");je(this,"models");je(this,"queries");je(this,"jobs");je(this,"messages");je(this,"cache");je(this,"logs");je(this,"httpCalls");var E;this.id=(t==null?void 0:t.id)||"null",this.meta=(t==null?void 0:t.meta)||{},this.request={...t==null?void 0:t.request,url:(E=t==null?void 0:t.request)!=null&&E.url?new URL(t==null?void 0:t.request.url):new URL("http://localhost")},this.response=(t==null?void 0:t.response)||{},this.models=(t==null?void 0:t.models)||{},this.queries=(t==null?void 0:t.queries)||[],this.jobs=(t==null?void 0:t.jobs)||[],this.messages=(t==null?void 0:t.messages)||[],this.cache=(t==null?void 0:t.cache)||[],this.logs=(t==null?void 0:t.logs)||[],this.httpCalls=((t==null?void 0:t.http_calls)||[]).map(s=>{var T;return{...s,request:{...s.request,url:(T=s.request)!=null&&T.url?new URL(s.request.url):new URL("http://localhost")}}})}get modelsCount(){return Object.values(this.models).reduce((t,E)=>t+E,0)}get queryCount(){return this.queries.length}get jobsCount(){return this.jobs.length}get messagesCount(){return this.messages.length}get cacheCount(){return this.cache.reduce((t,E)=>(t.indexOf(E.transaction_id)===-1&&t.push(E.transaction_id),t),[]).length}get httpCount(){return this.httpCalls.length}get routeAlias(){return`${this.meta.controller}#${this.meta.action}`}get dataForTabs(){const t={messages:{label:"Debug",count:this.messagesCount},models:{label:"Models",count:this.modelsCount},queries:{label:"Queries",count:this.queryCount},jobs:{label:"Jobs",count:this.jobsCount},cache:{label:"Cache",count:this.cacheCount}};return this.logs.length>0&&(t.logs={label:"Logs"}),this.httpCalls.length>0&&(t.http={label:"Http",count:this.httpCount}),t}}function cI(e,t,E){switch(E.length){case 0:return e.call(t);case 1:return e.call(t,E[0]);case 2:return e.call(t,E[0],E[1]);case 3:return e.call(t,E[0],E[1],E[2])}return e.apply(t,E)}var Fo=cI;function uI(e){return e}var Yo=uI,pI=Fo,In=Math.max;function fI(e,t,E){return t=In(t===void 0?e.length-1:t,0),function(){for(var s=arguments,T=-1,r=In(s.length-t,0),n=Array(r);++T<r;)n[T]=s[t+T];T=-1;for(var R=Array(t+1);++T<t;)R[T]=s[T];return R[t]=E(n),pI(e,this,R)}}var DI=fI;function PI(e){return function(){return e}}var dI=PI,MI=typeof eE=="object"&&eE&&eE.Object===Object&&eE,Vo=MI,UI=Vo,hI=typeof self=="object"&&self&&self.Object===Object&&self,GI=UI||hI||Function("return this")(),AE=GI,gI=AE,mI=gI.Symbol,xo=mI,an=xo,wo=Object.prototype,HI=wo.hasOwnProperty,BI=wo.toString,_E=an?an.toStringTag:void 0;function bI(e){var t=HI.call(e,_E),E=e[_E];try{e[_E]=void 0;var s=!0}catch{}var T=BI.call(e);return s&&(t?e[_E]=E:delete e[_E]),T}var yI=bI,vI=Object.prototype,FI=vI.toString;function YI(e){return FI.call(e)}var VI=YI,Nn=xo,xI=yI,wI=VI,WI="[object Null]",XI="[object Undefined]",ln=Nn?Nn.toStringTag:void 0;function KI(e){return e==null?e===void 0?XI:WI:ln&&ln in Object(e)?xI(e):wI(e)}var gs=KI;function $I(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var ht=$I,JI=gs,kI=ht,qI="[object AsyncFunction]",jI="[object Function]",QI="[object GeneratorFunction]",ZI="[object Proxy]";function zI(e){if(!kI(e))return!1;var t=JI(e);return t==jI||t==QI||t==qI||t==ZI}var Ar=zI,ea=AE,ta=ea["__core-js_shared__"],Ea=ta,js=Ea,_n=function(){var e=/[^.]+$/.exec(js&&js.keys&&js.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function sa(e){return!!_n&&_n in e}var Ta=sa,ra=Function.prototype,na=ra.toString;function Ra(e){if(e!=null){try{return na.call(e)}catch{}try{return e+""}catch{}}return""}var oa=Ra,Aa=Ar,ia=Ta,Sa=ht,Oa=oa,Ia=/[\\^$.*+?()[\]{}|]/g,aa=/^\[object .+?Constructor\]$/,Na=Function.prototype,la=Object.prototype,_a=Na.toString,Ca=la.hasOwnProperty,La=RegExp("^"+_a.call(Ca).replace(Ia,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function ca(e){if(!Sa(e)||ia(e))return!1;var t=Aa(e)?La:aa;return t.test(Oa(e))}var ua=ca;function pa(e,t){return e==null?void 0:e[t]}var fa=pa,Da=ua,Pa=fa;function da(e,t){var E=Pa(e,t);return Da(E)?E:void 0}var ir=da,Ma=ir,Ua=function(){try{var e=Ma(Object,"defineProperty");return e({},"",{}),e}catch{}}(),Wo=Ua,ha=dI,Cn=Wo,Ga=Yo,ga=Cn?function(e,t){return Cn(e,"toString",{configurable:!0,enumerable:!1,value:ha(t),writable:!0})}:Ga,ma=ga,Ha=800,Ba=16,ba=Date.now;function ya(e){var t=0,E=0;return function(){var s=ba(),T=Ba-(s-E);if(E=s,T>0){if(++t>=Ha)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var va=ya,Fa=ma,Ya=va,Va=Ya(Fa),xa=Va,wa=Yo,Wa=DI,Xa=xa;function Ka(e,t){return Xa(Wa(e,t,wa),e+"")}var Xo=Ka;function $a(){this.__data__=[],this.size=0}var Ja=$a;function ka(e,t){return e===t||e!==e&&t!==t}var ms=ka,qa=ms;function ja(e,t){for(var E=e.length;E--;)if(qa(e[E][0],t))return E;return-1}var Hs=ja,Qa=Hs,Za=Array.prototype,za=Za.splice;function eN(e){var t=this.__data__,E=Qa(t,e);if(E<0)return!1;var s=t.length-1;return E==s?t.pop():za.call(t,E,1),--this.size,!0}var tN=eN,EN=Hs;function sN(e){var t=this.__data__,E=EN(t,e);return E<0?void 0:t[E][1]}var TN=sN,rN=Hs;function nN(e){return rN(this.__data__,e)>-1}var RN=nN,oN=Hs;function AN(e,t){var E=this.__data__,s=oN(E,e);return s<0?(++this.size,E.push([e,t])):E[s][1]=t,this}var iN=AN,SN=Ja,ON=tN,IN=TN,aN=RN,NN=iN;function iE(e){var t=-1,E=e==null?0:e.length;for(this.clear();++t<E;){var s=e[t];this.set(s[0],s[1])}}iE.prototype.clear=SN;iE.prototype.delete=ON;iE.prototype.get=IN;iE.prototype.has=aN;iE.prototype.set=NN;var Bs=iE,lN=Bs;function _N(){this.__data__=new lN,this.size=0}var CN=_N;function LN(e){var t=this.__data__,E=t.delete(e);return this.size=t.size,E}var cN=LN;function uN(e){return this.__data__.get(e)}var pN=uN;function fN(e){return this.__data__.has(e)}var DN=fN,PN=ir,dN=AE,MN=PN(dN,"Map"),Ko=MN,UN=ir,hN=UN(Object,"create"),bs=hN,Ln=bs;function GN(){this.__data__=Ln?Ln(null):{},this.size=0}var gN=GN;function mN(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var HN=mN,BN=bs,bN="__lodash_hash_undefined__",yN=Object.prototype,vN=yN.hasOwnProperty;function FN(e){var t=this.__data__;if(BN){var E=t[e];return E===bN?void 0:E}return vN.call(t,e)?t[e]:void 0}var YN=FN,VN=bs,xN=Object.prototype,wN=xN.hasOwnProperty;function WN(e){var t=this.__data__;return VN?t[e]!==void 0:wN.call(t,e)}var XN=WN,KN=bs,$N="__lodash_hash_undefined__";function JN(e,t){var E=this.__data__;return this.size+=this.has(e)?0:1,E[e]=KN&&t===void 0?$N:t,this}var kN=JN,qN=gN,jN=HN,QN=YN,ZN=XN,zN=kN;function SE(e){var t=-1,E=e==null?0:e.length;for(this.clear();++t<E;){var s=e[t];this.set(s[0],s[1])}}SE.prototype.clear=qN;SE.prototype.delete=jN;SE.prototype.get=QN;SE.prototype.has=ZN;SE.prototype.set=zN;var el=SE,cn=el,tl=Bs,El=Ko;function sl(){this.size=0,this.__data__={hash:new cn,map:new(El||tl),string:new cn}}var Tl=sl;function rl(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var nl=rl,Rl=nl;function ol(e,t){var E=e.__data__;return Rl(t)?E[typeof t=="string"?"string":"hash"]:E.map}var ys=ol,Al=ys;function il(e){var t=Al(this,e).delete(e);return this.size-=t?1:0,t}var Sl=il,Ol=ys;function Il(e){return Ol(this,e).get(e)}var al=Il,Nl=ys;function ll(e){return Nl(this,e).has(e)}var _l=ll,Cl=ys;function Ll(e,t){var E=Cl(this,e),s=E.size;return E.set(e,t),this.size+=E.size==s?0:1,this}var cl=Ll,ul=Tl,pl=Sl,fl=al,Dl=_l,Pl=cl;function OE(e){var t=-1,E=e==null?0:e.length;for(this.clear();++t<E;){var s=e[t];this.set(s[0],s[1])}}OE.prototype.clear=ul;OE.prototype.delete=pl;OE.prototype.get=fl;OE.prototype.has=Dl;OE.prototype.set=Pl;var dl=OE,Ml=Bs,Ul=Ko,hl=dl,Gl=200;function gl(e,t){var E=this.__data__;if(E instanceof Ml){var s=E.__data__;if(!Ul||s.length<Gl-1)return s.push([e,t]),this.size=++E.size,this;E=this.__data__=new hl(s)}return E.set(e,t),this.size=E.size,this}var ml=gl,Hl=Bs,Bl=CN,bl=cN,yl=pN,vl=DN,Fl=ml;function IE(e){var t=this.__data__=new Hl(e);this.size=t.size}IE.prototype.clear=Bl;IE.prototype.delete=bl;IE.prototype.get=yl;IE.prototype.has=vl;IE.prototype.set=Fl;var Yl=IE,un=Wo;function Vl(e,t,E){t=="__proto__"&&un?un(e,t,{configurable:!0,enumerable:!0,value:E,writable:!0}):e[t]=E}var Sr=Vl,xl=Sr,wl=ms;function Wl(e,t,E){(E!==void 0&&!wl(e[t],E)||E===void 0&&!(t in e))&&xl(e,t,E)}var $o=Wl;function Xl(e){return function(t,E,s){for(var T=-1,r=Object(t),n=s(t),R=n.length;R--;){var o=n[e?R:++T];if(E(r[o],o,r)===!1)break}return t}}var Kl=Xl,$l=Kl,Jl=$l(),kl=Jl,Os={exports:{}};Os.exports;(function(e,t){var E=AE,s=t&&!t.nodeType&&t,T=s&&!0&&e&&!e.nodeType&&e,r=T&&T.exports===s,n=r?E.Buffer:void 0,R=n?n.allocUnsafe:void 0;function o(i,A){if(A)return i.slice();var O=i.length,N=R?R(O):new i.constructor(O);return i.copy(N),N}e.exports=o})(Os,Os.exports);var ql=Os.exports,jl=AE,Ql=jl.Uint8Array,Zl=Ql,pn=Zl;function zl(e){var t=new e.constructor(e.byteLength);return new pn(t).set(new pn(e)),t}var e_=zl,t_=e_;function E_(e,t){var E=t?t_(e.buffer):e.buffer;return new e.constructor(E,e.byteOffset,e.length)}var s_=E_;function T_(e,t){var E=-1,s=e.length;for(t||(t=Array(s));++E<s;)t[E]=e[E];return t}var r_=T_,n_=ht,fn=Object.create,R_=function(){function e(){}return function(t){if(!n_(t))return{};if(fn)return fn(t);e.prototype=t;var E=new e;return e.prototype=void 0,E}}(),o_=R_;function A_(e,t){return function(E){return e(t(E))}}var i_=A_,S_=i_,O_=S_(Object.getPrototypeOf,Object),Jo=O_,I_=Object.prototype;function a_(e){var t=e&&e.constructor,E=typeof t=="function"&&t.prototype||I_;return e===E}var ko=a_,N_=o_,l_=Jo,__=ko;function C_(e){return typeof e.constructor=="function"&&!__(e)?N_(l_(e)):{}}var L_=C_;function c_(e){return e!=null&&typeof e=="object"}var xE=c_,u_=gs,p_=xE,f_="[object Arguments]";function D_(e){return p_(e)&&u_(e)==f_}var P_=D_,Dn=P_,d_=xE,qo=Object.prototype,M_=qo.hasOwnProperty,U_=qo.propertyIsEnumerable,h_=Dn(function(){return arguments}())?Dn:function(e){return d_(e)&&M_.call(e,"callee")&&!U_.call(e,"callee")},jo=h_,G_=Array.isArray,Qo=G_,g_=9007199254740991;function m_(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=g_}var Zo=m_,H_=Ar,B_=Zo;function b_(e){return e!=null&&B_(e.length)&&!H_(e)}var Or=b_,y_=Or,v_=xE;function F_(e){return v_(e)&&y_(e)}var Y_=F_,Is={exports:{}};function V_(){return!1}var x_=V_;Is.exports;(function(e,t){var E=AE,s=x_,T=t&&!t.nodeType&&t,r=T&&!0&&e&&!e.nodeType&&e,n=r&&r.exports===T,R=n?E.Buffer:void 0,o=R?R.isBuffer:void 0,i=o||s;e.exports=i})(Is,Is.exports);var zo=Is.exports,w_=gs,W_=Jo,X_=xE,K_="[object Object]",$_=Function.prototype,J_=Object.prototype,eA=$_.toString,k_=J_.hasOwnProperty,q_=eA.call(Object);function j_(e){if(!X_(e)||w_(e)!=K_)return!1;var t=W_(e);if(t===null)return!0;var E=k_.call(t,"constructor")&&t.constructor;return typeof E=="function"&&E instanceof E&&eA.call(E)==q_}var Q_=j_,Z_=gs,z_=Zo,eC=xE,tC="[object Arguments]",EC="[object Array]",sC="[object Boolean]",TC="[object Date]",rC="[object Error]",nC="[object Function]",RC="[object Map]",oC="[object Number]",AC="[object Object]",iC="[object RegExp]",SC="[object Set]",OC="[object String]",IC="[object WeakMap]",aC="[object ArrayBuffer]",NC="[object DataView]",lC="[object Float32Array]",_C="[object Float64Array]",CC="[object Int8Array]",LC="[object Int16Array]",cC="[object Int32Array]",uC="[object Uint8Array]",pC="[object Uint8ClampedArray]",fC="[object Uint16Array]",DC="[object Uint32Array]",Le={};Le[lC]=Le[_C]=Le[CC]=Le[LC]=Le[cC]=Le[uC]=Le[pC]=Le[fC]=Le[DC]=!0;Le[tC]=Le[EC]=Le[aC]=Le[sC]=Le[NC]=Le[TC]=Le[rC]=Le[nC]=Le[RC]=Le[oC]=Le[AC]=Le[iC]=Le[SC]=Le[OC]=Le[IC]=!1;function PC(e){return eC(e)&&z_(e.length)&&!!Le[Z_(e)]}var dC=PC;function MC(e){return function(t){return e(t)}}var UC=MC,as={exports:{}};as.exports;(function(e,t){var E=Vo,s=t&&!t.nodeType&&t,T=s&&!0&&e&&!e.nodeType&&e,r=T&&T.exports===s,n=r&&E.process,R=function(){try{var o=T&&T.require&&T.require("util").types;return o||n&&n.binding&&n.binding("util")}catch{}}();e.exports=R})(as,as.exports);var hC=as.exports,GC=dC,gC=UC,Pn=hC,dn=Pn&&Pn.isTypedArray,mC=dn?gC(dn):GC,tA=mC;function HC(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var EA=HC,BC=Sr,bC=ms,yC=Object.prototype,vC=yC.hasOwnProperty;function FC(e,t,E){var s=e[t];(!(vC.call(e,t)&&bC(s,E))||E===void 0&&!(t in e))&&BC(e,t,E)}var YC=FC,VC=YC,xC=Sr;function wC(e,t,E,s){var T=!E;E||(E={});for(var r=-1,n=t.length;++r<n;){var R=t[r],o=s?s(E[R],e[R],R,E,e):void 0;o===void 0&&(o=e[R]),T?xC(E,R,o):VC(E,R,o)}return E}var WC=wC;function XC(e,t){for(var E=-1,s=Array(e);++E<e;)s[E]=t(E);return s}var KC=XC,$C=9007199254740991,JC=/^(?:0|[1-9]\d*)$/;function kC(e,t){var E=typeof e;return t=t??$C,!!t&&(E=="number"||E!="symbol"&&JC.test(e))&&e>-1&&e%1==0&&e<t}var sA=kC,qC=KC,jC=jo,QC=Qo,ZC=zo,zC=sA,eL=tA,tL=Object.prototype,EL=tL.hasOwnProperty;function sL(e,t){var E=QC(e),s=!E&&jC(e),T=!E&&!s&&ZC(e),r=!E&&!s&&!T&&eL(e),n=E||s||T||r,R=n?qC(e.length,String):[],o=R.length;for(var i in e)(t||EL.call(e,i))&&!(n&&(i=="length"||T&&(i=="offset"||i=="parent")||r&&(i=="buffer"||i=="byteLength"||i=="byteOffset")||zC(i,o)))&&R.push(i);return R}var TL=sL;function rL(e){var t=[];if(e!=null)for(var E in Object(e))t.push(E);return t}var nL=rL,RL=ht,oL=ko,AL=nL,iL=Object.prototype,SL=iL.hasOwnProperty;function OL(e){if(!RL(e))return AL(e);var t=oL(e),E=[];for(var s in e)s=="constructor"&&(t||!SL.call(e,s))||E.push(s);return E}var IL=OL,aL=TL,NL=IL,lL=Or;function _L(e){return lL(e)?aL(e,!0):NL(e)}var TA=_L,CL=WC,LL=TA;function cL(e){return CL(e,LL(e))}var uL=cL,Mn=$o,pL=ql,fL=s_,DL=r_,PL=L_,Un=jo,hn=Qo,dL=Y_,ML=zo,UL=Ar,hL=ht,GL=Q_,gL=tA,Gn=EA,mL=uL;function HL(e,t,E,s,T,r,n){var R=Gn(e,E),o=Gn(t,E),i=n.get(o);if(i){Mn(e,E,i);return}var A=r?r(R,o,E+"",e,t,n):void 0,O=A===void 0;if(O){var N=hn(o),l=!N&&ML(o),C=!N&&!l&&gL(o);A=o,N||l||C?hn(R)?A=R:dL(R)?A=DL(R):l?(O=!1,A=pL(o,!0)):C?(O=!1,A=fL(o,!0)):A=[]:GL(o)||Un(o)?(A=R,Un(R)?A=mL(R):(!hL(R)||UL(R))&&(A=PL(o))):O=!1}O&&(n.set(o,A),T(A,o,s,r,n),n.delete(o)),Mn(e,E,A)}var BL=HL,bL=Yl,yL=$o,vL=kl,FL=BL,YL=ht,VL=TA,xL=EA;function rA(e,t,E,s,T){e!==t&&vL(t,function(r,n){if(T||(T=new bL),YL(r))FL(e,t,n,E,rA,s,T);else{var R=s?s(xL(e,n),r,n+"",e,t,T):void 0;R===void 0&&(R=r),yL(e,n,R)}},VL)}var nA=rA,wL=nA,gn=ht;function RA(e,t,E,s,T,r){return gn(e)&&gn(t)&&(r.set(t,e),wL(e,t,void 0,RA,r),r.delete(t)),e}var WL=RA,XL=ms,KL=Or,$L=sA,JL=ht;function kL(e,t,E){if(!JL(E))return!1;var s=typeof t;return(s=="number"?KL(E)&&$L(t,E.length):s=="string"&&t in E)?XL(E[t],e):!1}var qL=kL,jL=Xo,QL=qL;function ZL(e){return jL(function(t,E){var s=-1,T=E.length,r=T>1?E[T-1]:void 0,n=T>2?E[2]:void 0;for(r=e.length>3&&typeof r=="function"?(T--,r):void 0,n&&QL(E[0],E[1],n)&&(r=T<3?void 0:r,T=1),t=Object(t);++s<T;){var R=E[s];R&&e(t,R,s,r)}return t})}var zL=ZL,ec=nA,tc=zL,Ec=tc(function(e,t,E,s){ec(e,t,E,s)}),sc=Ec,Tc=Fo,rc=Xo,nc=WL,Rc=sc,oc=rc(function(e){return e.push(void 0,nc),Tc(Rc,void 0,e)}),Ac=oc;const ic=yT(Ac);function Sc(e){return/mysql|triology/.test(e)?"mysql":/pg|postgres/.test(e)?"postgresql":/sqlite/.test(e)?"sqlite":"sql"}function Oc(e){const t=ic(e,{mode:"ws",prefix:"/_debugbar",cable:{url:"ws://127.0.0.1:3000",channelName:"Debugbar::DebugbarChannel"},poll:{url:"http://127.0.0.1:3000",interval:500},height:360,maxRequests:25,minimized:!1,activeRecord:{adapter:"sql"}});return t.actionCableUrl=`${t.cable.url}${t.prefix}/cable`,t.pollUrl=`${t.poll.url}${t.prefix}/poll`,t.sqlDialect=Sc(t.activeRecord.adapter),t}let Ir=bo("config",{state:()=>({config:Oc(window._debugbarConfigOptions)})}),Ic=bo("requests",{state:()=>({requests:[],currentRequest:null}),getters:{requestCount(e){return e.requests.length}},actions:{addRequests(e){const t=[];for(e.forEach(E=>{this.requests.find(s=>s.id===E.id)||this.requests.push(new LI(E)),t.push(E.id)});this.requests.length>Ir().config.maxRequests;)this.requests.shift();return t},setCurrentRequestById(e){this.currentRequest=this.requests.find(t=>t.id===e)},clearRequests(){this.requests=[],this.currentRequest=null}}});const ar=(e,t)=>{const E=e.__vccOpts||e;for(const[s,T]of t)E[s]=T;return E},ac={},Nc={class:"size-5","xmlns:dc":"http://purl.org/dc/elements/1.1/","xmlns:cc":"http://creativecommons.org/ns#","xmlns:rdf":"http://www.w3.org/1999/02/22-rdf-syntax-ns#","xmlns:svg":"http://www.w3.org/2000/svg",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","xmlns:sodipodi":"http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd","xmlns:inkscape":"http://www.inkscape.org/namespaces/inkscape",version:"1.1",id:"Layer_1",width:"198.13",height:"197.58",viewBox:"0 0 198.13 197.58",overflow:"visible","enable-background":"new 0 0 198.13 197.58","xml:space":"preserve","inkscape:version":"0.48.0 r9654","sodipodi:docname":"Logo-Ruby.svg"};function lc(e,t){return P(),y("svg",Nc,t[0]||(t[0]=[S("metadata",{id:"metadata3320"},[S("rdf:RDF",null,[S("cc:Work",{"rdf:about":""},[S("dc:format",null,"image/svg+xml"),S("dc:type",{"rdf:resource":"http://purl.org/dc/dcmitype/StillImage"})])])],-1),S("defs",{id:"defs3489"},[S("linearGradient",{id:"XMLID_17_-9",gradientUnits:"userSpaceOnUse",x1:"174.0737",y1:"215.5488",x2:"132.27631",y2:"141.7533"},[S("stop",{offset:"0",style:{"stop-color":"#fb7655"},id:"stop3272-4"}),S("stop",{offset:"0",style:{"stop-color":"#fb7655"},id:"stop3274-5"}),S("stop",{offset:"0.41",style:{"stop-color":"#e42b1e"},id:"stop3276-1"}),S("stop",{offset:"0.99",style:{"stop-color":"#990000"},id:"stop3278-0"}),S("stop",{offset:"1",style:{"stop-color":"#990000"},id:"stop3280-3"})]),S("linearGradient",{id:"XMLID_18_-7",gradientUnits:"userSpaceOnUse",x1:"194.895",y1:"153.5576",x2:"141.0276",y2:"117.4093"},[S("stop",{offset:"0",style:{"stop-color":"#871101"},id:"stop3285-8"}),S("stop",{offset:"0",style:{"stop-color":"#871101"},id:"stop3287-8"}),S("stop",{offset:"0.99",style:{"stop-color":"#911209"},id:"stop3289-6"}),S("stop",{offset:"1",style:{"stop-color":"#911209"},id:"stop3291-0"})]),S("linearGradient",{id:"XMLID_19_-4",gradientUnits:"userSpaceOnUse",x1:"151.79539",y1:"217.7852",x2:"97.929703",y2:"181.638"},[S("stop",{offset:"0",style:{"stop-color":"#871101"},id:"stop3296-6"}),S("stop",{offset:"0",style:{"stop-color":"#871101"},id:"stop3298-7"}),S("stop",{offset:"0.99",style:{"stop-color":"#911209"},id:"stop3300-6"}),S("stop",{offset:"1",style:{"stop-color":"#911209"},id:"stop3302-0"})]),S("linearGradient",{id:"XMLID_20_-9",gradientUnits:"userSpaceOnUse",x1:"38.696301",y1:"127.3906",x2:"47.046902",y2:"181.66141"},[S("stop",{offset:"0",style:{"stop-color":"#ffffff"},id:"stop3307-7"}),S("stop",{offset:"0",style:{"stop-color":"#ffffff"},id:"stop3309-5"}),S("stop",{offset:"0.23",style:{"stop-color":"#e57252"},id:"stop3311-9"}),S("stop",{offset:"0.46",style:{"stop-color":"#de3b20"},id:"stop3313-7"}),S("stop",{offset:"0.99",style:{"stop-color":"#a60003"},id:"stop3315-8"}),S("stop",{offset:"1",style:{"stop-color":"#a60003"},id:"stop3317-5"})]),S("linearGradient",{id:"XMLID_21_-3",gradientUnits:"userSpaceOnUse",x1:"96.132797",y1:"76.715302",x2:"99.209602",y2:"132.1021"},[S("stop",{offset:"0",style:{"stop-color":"#ffffff"},id:"stop3322-3"}),S("stop",{offset:"0",style:{"stop-color":"#ffffff"},id:"stop3324-8"}),S("stop",{offset:"0.23",style:{"stop-color":"#e4714e"},id:"stop3326-3"}),S("stop",{offset:"0.56",style:{"stop-color":"#be1a0d"},id:"stop3328-7"}),S("stop",{offset:"0.99",style:{"stop-color":"#a80d00"},id:"stop3330-9"}),S("stop",{offset:"1",style:{"stop-color":"#a80d00"},id:"stop3332-3"})]),S("linearGradient",{id:"XMLID_22_-7",gradientUnits:"userSpaceOnUse",x1:"147.103",y1:"25.521",x2:"156.3141",y2:"65.216202"},[S("stop",{offset:"0",style:{"stop-color":"#ffffff"},id:"stop3337-8"}),S("stop",{offset:"0",style:{"stop-color":"#ffffff"},id:"stop3339-7"}),S("stop",{offset:"0.18",style:{"stop-color":"#e46342"},id:"stop3341-4"}),S("stop",{offset:"0.4",style:{"stop-color":"#c82410"},id:"stop3343-1"}),S("stop",{offset:"0.99",style:{"stop-color":"#a80d00"},id:"stop3345-9"}),S("stop",{offset:"1",style:{"stop-color":"#a80d00"},id:"stop3347-0"})]),S("linearGradient",{id:"XMLID_23_-9",gradientUnits:"userSpaceOnUse",x1:"118.9761",y1:"11.5415",x2:"158.66859",y2:"-8.3048"},[S("stop",{offset:"0",style:{"stop-color":"#ffffff"},id:"stop3352-8"}),S("stop",{offset:"0",style:{"stop-color":"#ffffff"},id:"stop3354-8"}),S("stop",{offset:"0.54",style:{"stop-color":"#c81f11"},id:"stop3356-5"}),S("stop",{offset:"0.99",style:{"stop-color":"#bf0905"},id:"stop3358-8"}),S("stop",{offset:"1",style:{"stop-color":"#bf0905"},id:"stop3360-4"})]),S("linearGradient",{id:"XMLID_24_-3",gradientUnits:"userSpaceOnUse",x1:"3.9033",y1:"113.5547",x2:"7.1701999",y2:"146.2628"},[S("stop",{offset:"0",style:{"stop-color":"#ffffff"},id:"stop3365-7"}),S("stop",{offset:"0",style:{"stop-color":"#ffffff"},id:"stop3367-1"}),S("stop",{offset:"0.31",style:{"stop-color":"#de4024"},id:"stop3369-3"}),S("stop",{offset:"0.99",style:{"stop-color":"#bf190b"},id:"stop3371-8"}),S("stop",{offset:"1",style:{"stop-color":"#bf190b"},id:"stop3373-0"})]),S("linearGradient",{id:"XMLID_25_-9",gradientUnits:"userSpaceOnUse",x1:"-18.5557",y1:"155.10451",x2:"135.0152",y2:"-2.8092999"},[S("stop",{offset:"0",style:{"stop-color":"#bd0012"},id:"stop3380-7"}),S("stop",{offset:"0",style:{"stop-color":"#bd0012"},id:"stop3382-9"}),S("stop",{offset:"0.07",style:{"stop-color":"#ffffff"},id:"stop3384-9"}),S("stop",{offset:"0.17",style:{"stop-color":"#ffffff"},id:"stop3386-3"}),S("stop",{offset:"0.27",style:{"stop-color":"#c82f1c"},id:"stop3388-2"}),S("stop",{offset:"0.33",style:{"stop-color":"#820c01"},id:"stop3390-4"}),S("stop",{offset:"0.46",style:{"stop-color":"#a31601"},id:"stop3392-3"}),S("stop",{offset:"0.72",style:{"stop-color":"#b31301"},id:"stop3394-7"}),S("stop",{offset:"0.99",style:{"stop-color":"#e82609"},id:"stop3396-1"}),S("stop",{offset:"1",style:{"stop-color":"#e82609"},id:"stop3398-2"})]),S("linearGradient",{id:"XMLID_26_-2",gradientUnits:"userSpaceOnUse",x1:"99.074699",y1:"171.0332",x2:"52.817699",y2:"159.61659"},[S("stop",{offset:"0",style:{"stop-color":"#8c0c01"},id:"stop3403-0"}),S("stop",{offset:"0",style:{"stop-color":"#8c0c01"},id:"stop3405-2"}),S("stop",{offset:"0.54",style:{"stop-color":"#990c00"},id:"stop3407-1"}),S("stop",{offset:"0.99",style:{"stop-color":"#a80d0e"},id:"stop3409-7"}),S("stop",{offset:"1",style:{"stop-color":"#a80d0e"},id:"stop3411-5"})]),S("linearGradient",{id:"XMLID_27_-1",gradientUnits:"userSpaceOnUse",x1:"178.52589",y1:"115.5146",x2:"137.43269",y2:"78.683998"},[S("stop",{offset:"0",style:{"stop-color":"#7e110b"},id:"stop3416-7"}),S("stop",{offset:"0",style:{"stop-color":"#7e110b"},id:"stop3418-4"}),S("stop",{offset:"0.99",style:{"stop-color":"#9e0c00"},id:"stop3420-1"}),S("stop",{offset:"1",style:{"stop-color":"#9e0c00"},id:"stop3422-7"})]),S("linearGradient",{id:"XMLID_28_-1",gradientUnits:"userSpaceOnUse",x1:"193.6235",y1:"47.937",x2:"173.15421",y2:"26.053801"},[S("stop",{offset:"0",style:{"stop-color":"#79130d"},id:"stop3427-1"}),S("stop",{offset:"0",style:{"stop-color":"#79130d"},id:"stop3429-1"}),S("stop",{offset:"0.99",style:{"stop-color":"#9e120b"},id:"stop3431-7"}),S("stop",{offset:"1",style:{"stop-color":"#9e120b"},id:"stop3433-0"})]),S("radialGradient",{id:"XMLID_29_-4",cx:"143.8315",cy:"79.388199",r:"50.357601",gradientUnits:"userSpaceOnUse"},[S("stop",{offset:"0",style:{"stop-color":"#a80d00"},id:"stop3440-0"}),S("stop",{offset:"0",style:{"stop-color":"#a80d00"},id:"stop3442-8"}),S("stop",{offset:"0.99",style:{"stop-color":"#7e0e08"},id:"stop3444-5"}),S("stop",{offset:"1",style:{"stop-color":"#7e0e08"},id:"stop3446-1"})]),S("radialGradient",{id:"XMLID_30_-6",cx:"74.0923",cy:"145.75101",r:"66.943703",gradientUnits:"userSpaceOnUse"},[S("stop",{offset:"0",style:{"stop-color":"#a30c00"},id:"stop3451-6"}),S("stop",{offset:"0",style:{"stop-color":"#a30c00"},id:"stop3453-2"}),S("stop",{offset:"0.99",style:{"stop-color":"#800e08"},id:"stop3455-1"}),S("stop",{offset:"1",style:{"stop-color":"#800e08"},id:"stop3457-9"})]),S("linearGradient",{id:"XMLID_31_-6",gradientUnits:"userSpaceOnUse",x1:"26.669901",y1:"197.33591",x2:"9.9886999",y2:"140.742"},[S("stop",{offset:"0",style:{"stop-color":"#8b2114"},id:"stop3462-4"}),S("stop",{offset:"0",style:{"stop-color":"#8b2114"},id:"stop3464-8"}),S("stop",{offset:"0.43",style:{"stop-color":"#9e100a"},id:"stop3466-0"}),S("stop",{offset:"0.99",style:{"stop-color":"#b3100c"},id:"stop3468-8"}),S("stop",{offset:"1",style:{"stop-color":"#b3100c"},id:"stop3470-1"})]),S("linearGradient",{id:"XMLID_32_-0",gradientUnits:"userSpaceOnUse",x1:"154.6411",y1:"9.7979002",x2:"192.039",y2:"26.305901"},[S("stop",{offset:"0",style:{"stop-color":"#b31000"},id:"stop3475-2"}),S("stop",{offset:"0",style:{"stop-color":"#b31000"},id:"stop3477-2"}),S("stop",{offset:"0.44",style:{"stop-color":"#910f08"},id:"stop3479-9"}),S("stop",{offset:"0.99",style:{"stop-color":"#791c12"},id:"stop3481-7"}),S("stop",{offset:"1",style:{"stop-color":"#791c12"},id:"stop3483-5"})]),S("linearGradient",{y2:"141.7533",x2:"132.27631",y1:"215.5488",x1:"174.0737",gradientUnits:"userSpaceOnUse",id:"linearGradient3448","xlink:href":"#XMLID_17_-9","inkscape:collect":"always"})],-1),S("sodipodi:namedview",{pagecolor:"#ffffff",bordercolor:"#666666",borderopacity:"1",objecttolerance:"10",gridtolerance:"10",guidetolerance:"10","inkscape:pageopacity":"0","inkscape:pageshadow":"2","inkscape:window-width":"1036","inkscape:window-height":"1124",id:"namedview3487",showgrid:"false","inkscape:zoom":"1.3412289","inkscape:cx":"99.065005","inkscape:cy":"98.790004","inkscape:window-x":"882","inkscape:window-y":"24","inkscape:window-maximized":"0","inkscape:current-layer":"Layer_1"},null,-1),lO('<linearGradient id="XMLID_17_" gradientUnits="userSpaceOnUse" x1="174.0737" y1="215.5488" x2="132.2763" y2="141.7533"><stop offset="0" style="stop-color:#fb7655;" id="stop3272"></stop><stop offset="0" style="stop-color:#fb7655;" id="stop3274"></stop><stop offset="0.41" style="stop-color:#e42b1e;" id="stop3276"></stop><stop offset="0.99" style="stop-color:#990000;" id="stop3278"></stop><stop offset="1" style="stop-color:#990000;" id="stop3280"></stop></linearGradient><linearGradient id="XMLID_18_" gradientUnits="userSpaceOnUse" x1="194.895" y1="153.5576" x2="141.0276" y2="117.4093"><stop offset="0" style="stop-color:#871101;" id="stop3285"></stop><stop offset="0" style="stop-color:#871101;" id="stop3287"></stop><stop offset="0.99" style="stop-color:#911209;" id="stop3289"></stop><stop offset="1" style="stop-color:#911209;" id="stop3291"></stop></linearGradient><linearGradient id="XMLID_19_" gradientUnits="userSpaceOnUse" x1="151.7954" y1="217.7852" x2="97.9297" y2="181.638"><stop offset="0" style="stop-color:#871101;" id="stop3296"></stop><stop offset="0" style="stop-color:#871101;" id="stop3298"></stop><stop offset="0.99" style="stop-color:#911209;" id="stop3300"></stop><stop offset="1" style="stop-color:#911209;" id="stop3302"></stop></linearGradient><linearGradient id="XMLID_20_" gradientUnits="userSpaceOnUse" x1="38.6963" y1="127.3906" x2="47.0469" y2="181.6614"><stop offset="0" style="stop-color:#ffffff;" id="stop3307"></stop><stop offset="0" style="stop-color:#ffffff;" id="stop3309"></stop><stop offset="0.23" style="stop-color:#e57252;" id="stop3311"></stop><stop offset="0.46" style="stop-color:#de3b20;" id="stop3313"></stop><stop offset="0.99" style="stop-color:#a60003;" id="stop3315"></stop><stop offset="1" style="stop-color:#a60003;" id="stop3317"></stop></linearGradient><linearGradient id="XMLID_21_" gradientUnits="userSpaceOnUse" x1="96.1328" y1="76.7153" x2="99.2096" y2="132.1021"><stop offset="0" style="stop-color:#ffffff;" id="stop3322"></stop><stop offset="0" style="stop-color:#ffffff;" id="stop3324"></stop><stop offset="0.23" style="stop-color:#e4714e;" id="stop3326"></stop><stop offset="0.56" style="stop-color:#be1a0d;" id="stop3328"></stop><stop offset="0.99" style="stop-color:#a80d00;" id="stop3330"></stop><stop offset="1" style="stop-color:#a80d00;" id="stop3332"></stop></linearGradient><linearGradient id="XMLID_22_" gradientUnits="userSpaceOnUse" x1="147.103" y1="25.521" x2="156.3141" y2="65.2162"><stop offset="0" style="stop-color:#ffffff;" id="stop3337"></stop><stop offset="0" style="stop-color:#ffffff;" id="stop3339"></stop><stop offset="0.18" style="stop-color:#e46342;" id="stop3341"></stop><stop offset="0.4" style="stop-color:#c82410;" id="stop3343"></stop><stop offset="0.99" style="stop-color:#a80d00;" id="stop3345"></stop><stop offset="1" style="stop-color:#a80d00;" id="stop3347"></stop></linearGradient><linearGradient id="XMLID_23_" gradientUnits="userSpaceOnUse" x1="118.9761" y1="11.5415" x2="158.6686" y2="-8.3048"><stop offset="0" style="stop-color:#ffffff;" id="stop3352"></stop><stop offset="0" style="stop-color:#ffffff;" id="stop3354"></stop><stop offset="0.54" style="stop-color:#c81f11;" id="stop3356"></stop><stop offset="0.99" style="stop-color:#bf0905;" id="stop3358"></stop><stop offset="1" style="stop-color:#bf0905;" id="stop3360"></stop></linearGradient><linearGradient id="XMLID_24_" gradientUnits="userSpaceOnUse" x1="3.9033" y1="113.5547" x2="7.1702" y2="146.2628"><stop offset="0" style="stop-color:#ffffff;" id="stop3365"></stop><stop offset="0" style="stop-color:#ffffff;" id="stop3367"></stop><stop offset="0.31" style="stop-color:#de4024;" id="stop3369"></stop><stop offset="0.99" style="stop-color:#bf190b;" id="stop3371"></stop><stop offset="1" style="stop-color:#bf190b;" id="stop3373"></stop></linearGradient><linearGradient id="XMLID_25_" gradientUnits="userSpaceOnUse" x1="-18.5557" y1="155.1045" x2="135.0152" y2="-2.8093"><stop offset="0" style="stop-color:#bd0012;" id="stop3380"></stop><stop offset="0" style="stop-color:#bd0012;" id="stop3382"></stop><stop offset="0.07" style="stop-color:#ffffff;" id="stop3384"></stop><stop offset="0.17" style="stop-color:#ffffff;" id="stop3386"></stop><stop offset="0.27" style="stop-color:#c82f1c;" id="stop3388"></stop><stop offset="0.33" style="stop-color:#820c01;" id="stop3390"></stop><stop offset="0.46" style="stop-color:#a31601;" id="stop3392"></stop><stop offset="0.72" style="stop-color:#b31301;" id="stop3394"></stop><stop offset="0.99" style="stop-color:#e82609;" id="stop3396"></stop><stop offset="1" style="stop-color:#e82609;" id="stop3398"></stop></linearGradient><linearGradient id="XMLID_26_" gradientUnits="userSpaceOnUse" x1="99.0747" y1="171.0332" x2="52.8177" y2="159.6166"><stop offset="0" style="stop-color:#8c0c01;" id="stop3403"></stop><stop offset="0" style="stop-color:#8c0c01;" id="stop3405"></stop><stop offset="0.54" style="stop-color:#990c00;" id="stop3407"></stop><stop offset="0.99" style="stop-color:#a80d0e;" id="stop3409"></stop><stop offset="1" style="stop-color:#a80d0e;" id="stop3411"></stop></linearGradient><linearGradient id="XMLID_27_" gradientUnits="userSpaceOnUse" x1="178.5259" y1="115.5146" x2="137.4327" y2="78.684"><stop offset="0" style="stop-color:#7e110b;" id="stop3416"></stop><stop offset="0" style="stop-color:#7e110b;" id="stop3418"></stop><stop offset="0.99" style="stop-color:#9e0c00;" id="stop3420"></stop><stop offset="1" style="stop-color:#9e0c00;" id="stop3422"></stop></linearGradient><linearGradient id="XMLID_28_" gradientUnits="userSpaceOnUse" x1="193.6235" y1="47.937" x2="173.1542" y2="26.0538"><stop offset="0" style="stop-color:#79130d;" id="stop3427"></stop><stop offset="0" style="stop-color:#79130d;" id="stop3429"></stop><stop offset="0.99" style="stop-color:#9e120b;" id="stop3431"></stop><stop offset="1" style="stop-color:#9e120b;" id="stop3433"></stop></linearGradient><radialGradient id="XMLID_29_" cx="143.8315" cy="79.3882" r="50.3576" gradientUnits="userSpaceOnUse"><stop offset="0" style="stop-color:#a80d00;" id="stop3440"></stop><stop offset="0" style="stop-color:#a80d00;" id="stop3442"></stop><stop offset="0.99" style="stop-color:#7e0e08;" id="stop3444"></stop><stop offset="1" style="stop-color:#7e0e08;" id="stop3446"></stop></radialGradient><radialGradient id="XMLID_30_" cx="74.0923" cy="145.751" r="66.9437" gradientUnits="userSpaceOnUse"><stop offset="0" style="stop-color:#a30c00;" id="stop3451"></stop><stop offset="0" style="stop-color:#a30c00;" id="stop3453"></stop><stop offset="0.99" style="stop-color:#800e08;" id="stop3455"></stop><stop offset="1" style="stop-color:#800e08;" id="stop3457"></stop></radialGradient><linearGradient id="XMLID_31_" gradientUnits="userSpaceOnUse" x1="26.6699" y1="197.3359" x2="9.9887" y2="140.742"><stop offset="0" style="stop-color:#8b2114;" id="stop3462"></stop><stop offset="0" style="stop-color:#8b2114;" id="stop3464"></stop><stop offset="0.43" style="stop-color:#9e100a;" id="stop3466"></stop><stop offset="0.99" style="stop-color:#b3100c;" id="stop3468"></stop><stop offset="1" style="stop-color:#b3100c;" id="stop3470"></stop></linearGradient><linearGradient id="XMLID_32_" gradientUnits="userSpaceOnUse" x1="154.6411" y1="9.7979" x2="192.039" y2="26.3059"><stop offset="0" style="stop-color:#b31000;" id="stop3475"></stop><stop offset="0" style="stop-color:#b31000;" id="stop3477"></stop><stop offset="0.44" style="stop-color:#910f08;" id="stop3479"></stop><stop offset="0.99" style="stop-color:#791c12;" id="stop3481"></stop><stop offset="1" style="stop-color:#791c12;" id="stop3483"></stop></linearGradient><polygon style="fill:url(#linearGradient3448);fill-rule:evenodd;" clip-rule="evenodd" points="153.5,130.41 40.38,197.58 186.849,187.641 198.13,39.95 " id="polygon3282"></polygon><polygon style="fill:url(#XMLID_18_-7);fill-rule:evenodd;" clip-rule="evenodd" points="187.089,187.54 174.5,100.65 140.209,145.93 " id="polygon3293"></polygon><polygon style="fill:url(#XMLID_19_-4);fill-rule:evenodd;" clip-rule="evenodd" points="187.259,187.54 95.03,180.3 40.87,197.391 " id="polygon3304"></polygon><polygon style="fill:url(#XMLID_20_-9);fill-rule:evenodd;" clip-rule="evenodd" points="41,197.41 64.04,121.93 13.34,132.771 " id="polygon3319"></polygon><polygon style="fill:url(#XMLID_21_-3);fill-rule:evenodd;" clip-rule="evenodd" points="140.2,146.18 119,63.14 58.33,120.01 " id="polygon3334"></polygon><polygon style="fill:url(#XMLID_22_-7);fill-rule:evenodd;" clip-rule="evenodd" points="193.32,64.31 135.97,17.47 120,69.1 " id="polygon3349"></polygon><polygon style="fill:url(#XMLID_23_-9);fill-rule:evenodd;" clip-rule="evenodd" points="166.5,0.77 132.77,19.41 111.49,0.52 " id="polygon3362"></polygon><polygon style="fill:url(#XMLID_24_-3);fill-rule:evenodd;" clip-rule="evenodd" points="0,158.09 14.13,132.32 2.7,101.62 " id="polygon3375"></polygon>',24),S("path",{style:{fill:"#ffffff","fill-rule":"evenodd"},"inkscape:connector-curvature":"0","clip-rule":"evenodd",d:"m 1.94,100.65 11.5,32.62 49.97,-11.211 57.05,-53.02 L 136.56,17.9 111.209,0 68.109,16.13 C 54.53,28.76 28.18,53.75 27.23,54.22 26.29,54.7 9.83,85.81 1.94,100.65 z",id:"path3377"},null,-1),S("path",{style:{fill:"url(#XMLID_25_-9)","fill-rule":"evenodd"},"inkscape:connector-curvature":"0","clip-rule":"evenodd",d:"m 42.32,42.05 c 29.43,-29.18 67.37,-46.42 81.93,-31.73 14.551,14.69 -0.88,50.39 -30.31,79.56 -29.43,29.17 -66.9,47.36 -81.45,32.67 -14.56,-14.68 0.4,-51.33 29.83,-80.5 z",id:"path3400"},null,-1),S("path",{style:{fill:"url(#XMLID_26_-2)","fill-rule":"evenodd"},"inkscape:connector-curvature":"0","clip-rule":"evenodd",d:"m 41,197.38 22.86,-75.72 75.92,24.39 C 112.33,171.79 81.8,193.55 41,197.38 z",id:"path3413"},null,-1),S("path",{style:{fill:"url(#XMLID_27_-1)","fill-rule":"evenodd"},"inkscape:connector-curvature":"0","clip-rule":"evenodd",d:"m 120.56,68.89 19.49,77.2 C 162.98,121.98 183.56,96.06 193.639,64 l -73.079,4.89 z",id:"path3424"},null,-1),S("path",{style:{fill:"url(#XMLID_28_-1)","fill-rule":"evenodd"},"inkscape:connector-curvature":"0","clip-rule":"evenodd",d:"m 193.44,64.39 c 7.8,-23.54 9.6,-57.31 -27.181,-63.58 l -30.18,16.67 57.361,46.91 z",id:"path3435"},null,-1),S("path",{style:{fill:"#9e1209","fill-rule":"evenodd"},"inkscape:connector-curvature":"0","clip-rule":"evenodd",d:"m 0,157.75 c 1.08,38.851 29.11,39.43 41.05,39.771 L 13.47,133.11 0,157.75 z",id:"path3437"},null,-1),S("path",{style:{fill:"url(#XMLID_29_-4)","fill-rule":"evenodd"},"inkscape:connector-curvature":"0","clip-rule":"evenodd",d:"m 120.669,69.01 c 17.62,10.83 53.131,32.58 53.851,32.98 1.119,0.63 15.31,-23.93 18.53,-37.81 l -72.381,4.83 z",id:"path3448"},null,-1),S("path",{style:{fill:"url(#XMLID_30_-6)","fill-rule":"evenodd"},"inkscape:connector-curvature":"0","clip-rule":"evenodd",d:"m 63.83,121.66 30.56,58.96 c 18.07,-9.8 32.22,-21.74 45.18,-34.53 L 63.83,121.66 z",id:"path3459"},null,-1),S("path",{style:{fill:"url(#XMLID_31_-6)","fill-rule":"evenodd"},"inkscape:connector-curvature":"0","clip-rule":"evenodd",d:"m 13.35,133.19 -4.33,51.56 c 8.17,11.16 19.41,12.13 31.2,11.26 -8.53,-21.23 -25.57,-63.68 -26.87,-62.82 z",id:"path3472"},null,-1),S("path",{style:{fill:"url(#XMLID_32_-0)","fill-rule":"evenodd"},"inkscape:connector-curvature":"0","clip-rule":"evenodd",d:"m 135.9,17.61 60.71,8.52 C 193.37,12.4 183.42,3.54 166.46,0.77 L 135.9,17.61 z",id:"path3485"},null,-1)]))}const oA=ar(ac,[["render",lc]]),_c=["textContent"],Cc=Ne({__name:"TabButton",props:{label:{},count:{},isActive:{type:Boolean}},setup(e){const t=e;return(E,s)=>(P(),y("button",{class:ge(["text-sm flex items-center space-x-1 px-2 py-1.5 border-0",{"bg-stone-300 rounded-t-sm cursor-auto":t.isActive}])},[S("span",{class:ge({"font-medium":t.isActive})},[st(E.$slots,"default")],2),t.count!=null?(P(),y("span",{key:0,class:ge(["p-0.5 rounded-full text-xs",{"px-1.5":t.count<10,hidden:t.count==0,"bg-stone-300":t.count>0&&!t.isActive,"bg-stone-400":t.count>0&&t.isActive}]),textContent:ne(t.count)},null,10,_c)):Ee("",!0)],2))}}),Lc=["textContent"],Nr=Ne({__name:"StatusCode",props:{code:{}},setup(e){const t=e;return(E,s)=>(P(),y("span",{class:ge(["px-1 py-0.5 rounded text-xs",{"bg-green-600 text-white":t.code<300,"bg-blue-500 text-white":t.code>=300&&t.code<400,"bg-amber-600 text-white":t.code>=400&&t.code<500,"bg-red-600 text-white":t.code>=500}]),textContent:ne(t.code)},null,10,Lc))}});var AA={exports:{}};(function(e){(function(t,E){e.exports?e.exports=E():t.nearley=E()})(eE,function(){function t(i,A,O){return this.id=++t.highestId,this.name=i,this.symbols=A,this.postprocess=O,this}t.highestId=0,t.prototype.toString=function(i){var A=typeof i>"u"?this.symbols.map(o).join(" "):this.symbols.slice(0,i).map(o).join(" ")+" ● "+this.symbols.slice(i).map(o).join(" ");return this.name+" → "+A};function E(i,A,O,N){this.rule=i,this.dot=A,this.reference=O,this.data=[],this.wantedBy=N,this.isComplete=this.dot===i.symbols.length}E.prototype.toString=function(){return"{"+this.rule.toString(this.dot)+"}, from: "+(this.reference||0)},E.prototype.nextState=function(i){var A=new E(this.rule,this.dot+1,this.reference,this.wantedBy);return A.left=this,A.right=i,A.isComplete&&(A.data=A.build(),A.right=void 0),A},E.prototype.build=function(){var i=[],A=this;do i.push(A.right.data),A=A.left;while(A.left);return i.reverse(),i},E.prototype.finish=function(){this.rule.postprocess&&(this.data=this.rule.postprocess(this.data,this.reference,n.fail))};function s(i,A){this.grammar=i,this.index=A,this.states=[],this.wants={},this.scannable=[],this.completed={}}s.prototype.process=function(i){for(var A=this.states,O=this.wants,N=this.completed,l=0;l<A.length;l++){var C=A[l];if(C.isComplete){if(C.finish(),C.data!==n.fail){for(var H=C.wantedBy,Q=H.length;Q--;){var W=H[Q];this.complete(W,C)}if(C.reference===this.index){var j=C.rule.name;(this.completed[j]=this.completed[j]||[]).push(C)}}}else{var j=C.rule.symbols[C.dot];if(typeof j!="string"){this.scannable.push(C);continue}if(O[j]){if(O[j].push(C),N.hasOwnProperty(j))for(var ee=N[j],Q=0;Q<ee.length;Q++){var x=ee[Q];this.complete(C,x)}}else O[j]=[C],this.predict(j)}}},s.prototype.predict=function(i){for(var A=this.grammar.byName[i]||[],O=0;O<A.length;O++){var N=A[O],l=this.wants[i],C=new E(N,0,this.index,l);this.states.push(C)}},s.prototype.complete=function(i,A){var O=i.nextState(A);this.states.push(O)};function T(i,A){this.rules=i,this.start=A||this.rules[0].name;var O=this.byName={};this.rules.forEach(function(N){O.hasOwnProperty(N.name)||(O[N.name]=[]),O[N.name].push(N)})}T.fromCompiled=function(N,A){var O=N.Lexer;N.ParserStart&&(A=N.ParserStart,N=N.ParserRules);var N=N.map(function(C){return new t(C.name,C.symbols,C.postprocess)}),l=new T(N,A);return l.lexer=O,l};function r(){this.reset("")}r.prototype.reset=function(i,A){this.buffer=i,this.index=0,this.line=A?A.line:1,this.lastLineBreak=A?-A.col:0},r.prototype.next=function(){if(this.index<this.buffer.length){var i=this.buffer[this.index++];return i===`
24
+ `&&(this.line+=1,this.lastLineBreak=this.index),{value:i}}},r.prototype.save=function(){return{line:this.line,col:this.index-this.lastLineBreak}},r.prototype.formatError=function(i,A){var O=this.buffer;if(typeof O=="string"){var N=O.split(`
25
+ `).slice(Math.max(0,this.line-5),this.line),l=O.indexOf(`
26
+ `,this.index);l===-1&&(l=O.length);var C=this.index-this.lastLineBreak,H=String(this.line).length;return A+=" at line "+this.line+" col "+C+`:
10
27
 
11
- `,i+=I.map(function(K,k){return w(this.line-I.length+k+1,b)+" "+K},this).join(`
12
- `),i+=`
13
- `+w("",b+h)+`^
14
- `,i}else return i+" at index "+(this.index-1);function w(K,k){var F=String(K);return Array(k-F.length+1).join(" ")+F}};function n(A,i,a){if(A instanceof r)var I=A,a=i;else var I=r.fromCompiled(A,i);this.grammar=I,this.options={keepHistory:!1,lexer:I.lexer||new s};for(var l in a||{})this.options[l]=a[l];this.lexer=this.options.lexer,this.lexerState=void 0;var h=new T(I,0);this.table=[h],h.wants[I.start]=[],h.predict(I.start),h.process(),this.current=0}n.fail={},n.prototype.feed=function(A){var i=this.lexer;i.reset(A,this.lexerState);for(var a;;){try{if(a=i.next(),!a)break}catch(ie){var b=new T(this.grammar,this.current+1);this.table.push(b);var I=new Error(this.reportLexerError(ie));throw I.offset=this.current,I.token=ie.token,I}var l=this.table[this.current];this.options.keepHistory||delete this.table[this.current-1];var h=this.current+1,b=new T(this.grammar,h);this.table.push(b);for(var w=a.text!==void 0?a.text:a.value,K=i.constructor===s?a.value:a,k=l.scannable,F=k.length;F--;){var x=k[F],re=x.rule.symbols[x.dot];if(re.test?re.test(K):re.type?re.type===a.type:re.literal===w){var pe=x.nextState({data:K,token:a,isToken:!0,reference:h-1});b.states.push(pe)}}if(b.process(),b.states.length===0){var I=new Error(this.reportError(a));throw I.offset=this.current,I.token=a,I}this.options.keepHistory&&(l.lexerState=i.save()),this.current++}return l&&(this.lexerState=i.save()),this.results=this.finish(),this},n.prototype.reportLexerError=function(A){var i,a,I=A.token;return I?(i="input "+JSON.stringify(I.text[0])+" (lexer error)",a=this.lexer.formatError(I,"Syntax error")):(i="input (lexer error)",a=A.message),this.reportErrorCommon(a,i)},n.prototype.reportError=function(A){var i=(A.type?A.type+" token: ":"")+JSON.stringify(A.value!==void 0?A.value:A),a=this.lexer.formatError(A,"Syntax error");return this.reportErrorCommon(a,i)},n.prototype.reportErrorCommon=function(A,i){var a=[];a.push(A);var I=this.table.length-2,l=this.table[I],h=l.states.filter(function(w){var K=w.rule.symbols[w.dot];return K&&typeof K!="string"});if(h.length===0)a.push("Unexpected "+i+`. I did not expect any more input. Here is the state of my parse table:
15
- `),this.displayStateStack(l.states,a);else{a.push("Unexpected "+i+`. Instead, I was expecting to see one of the following:
16
- `);var b=h.map(function(w){return this.buildFirstStateStack(w,[])||[w]},this);b.forEach(function(w){var K=w[0],k=K.rule.symbols[K.dot],F=this.getSymbolDisplay(k);a.push("A "+F+" based on:"),this.displayStateStack(w,a)},this)}return a.push(""),a.join(`
17
- `)},n.prototype.displayStateStack=function(A,i){for(var a,I=0,l=0;l<A.length;l++){var h=A[l],b=h.rule.toString(h.dot);b===a?I++:(I>0&&i.push(" ^ "+I+" more lines identical to this"),I=0,i.push(" "+b)),a=b}},n.prototype.getSymbolDisplay=function(A){return R(A)},n.prototype.buildFirstStateStack=function(A,i){if(i.indexOf(A)!==-1)return null;if(A.wantedBy.length===0)return[A];var a=A.wantedBy[0],I=[A].concat(i),l=this.buildFirstStateStack(a,I);return l===null?null:[A].concat(l)},n.prototype.save=function(){var A=this.table[this.current];return A.lexerState=this.lexerState,A},n.prototype.restore=function(A){var i=A.index;this.current=i,this.table[i]=A,this.table.splice(i+1),this.lexerState=A.lexerState,this.results=this.finish()},n.prototype.rewind=function(A){if(!this.options.keepHistory)throw new Error("set option `keepHistory` to enable rewinding");this.restore(this.table[A])},n.prototype.finish=function(){var A=[],i=this.grammar.start,a=this.table[this.table.length-1];return a.states.forEach(function(I){I.rule.name===i&&I.dot===I.rule.symbols.length&&I.reference===0&&I.data!==n.fail&&A.push(I)}),A.map(function(I){return I.data})};function R(A){var i=typeof A;if(i==="string")return A;if(i==="object"){if(A.literal)return JSON.stringify(A.literal);if(A instanceof RegExp)return"character matching "+A;if(A.type)return A.type+" token";if(A.test)return"token matching "+String(A.test);throw new Error("Unknown symbol type: "+A)}}function o(A){var i=typeof A;if(i==="string")return A;if(i==="object"){if(A.literal)return JSON.stringify(A.literal);if(A instanceof RegExp)return A.toString();if(A.type)return"%"+A.type;if(A.test)return"<"+String(A.test)+">";throw new Error("Unknown symbol type: "+A)}}return{Parser:n,Grammar:r,Rule:t}})})(gA);var lM=gA.exports;const _M=PT(lM);var GA=Object.defineProperty,CM=Object.defineProperties,cM=Object.getOwnPropertyDescriptors,fT=Object.getOwnPropertySymbols,mA=Object.prototype.hasOwnProperty,HA=Object.prototype.propertyIsEnumerable,Jn=(e,t,E)=>t in e?GA(e,t,{enumerable:!0,configurable:!0,writable:!0,value:E}):e[t]=E,ye=(e,t)=>{for(var E in t||(t={}))mA.call(t,E)&&Jn(e,E,t[E]);if(fT)for(var E of fT(t))HA.call(t,E)&&Jn(e,E,t[E]);return e},xe=(e,t)=>CM(e,cM(t)),LM=(e,t)=>{var E={};for(var T in e)mA.call(e,T)&&t.indexOf(T)<0&&(E[T]=e[T]);if(e!=null&&fT)for(var T of fT(e))t.indexOf(T)<0&&HA.call(e,T)&&(E[T]=e[T]);return E},uM=(e,t)=>{for(var E in t)GA(e,E,{get:t[E],enumerable:!0})},yA={};uM(yA,{bigquery:()=>YM,db2:()=>ZM,db2i:()=>RU,hive:()=>lU,mariadb:()=>DU,mysql:()=>yU,n1ql:()=>WU,plsql:()=>ZU,postgresql:()=>oh,redshift:()=>_h,singlestoredb:()=>Cg,snowflake:()=>Mg,spark:()=>dh,sql:()=>$h,sqlite:()=>Bh,transactsql:()=>Ag,trino:()=>eg});var d=e=>e.flatMap(pM),pM=e=>AT(PM(e)).map(fM),fM=e=>e.replace(/ +/g," ").trim(),PM=e=>({type:"mandatory_block",items:Ns(e,0)[0]}),Ns=(e,t,E)=>{const T=[];for(;e[t];){const[r,s]=DM(e,t);if(T.push(r),t=s,e[t]==="|")t++;else if(e[t]==="}"||e[t]==="]"){if(E!==e[t])throw new Error(`Unbalanced parenthesis in: ${e}`);return t++,[T,t]}else if(t===e.length){if(E)throw new Error(`Unbalanced parenthesis in: ${e}`);return[T,t]}else throw new Error(`Unexpected "${e[t]}"`)}return[T,t]},DM=(e,t)=>{const E=[];for(;;){const[T,r]=dM(e,t);if(T)E.push(T),t=r;else break}return E.length===1?[E[0],t]:[{type:"concatenation",items:E},t]},dM=(e,t)=>{if(e[t]==="{")return MM(e,t+1);if(e[t]==="[")return UM(e,t+1);{let E="";for(;e[t]&&/[A-Za-z0-9_ ]/.test(e[t]);)E+=e[t],t++;return[E,t]}},MM=(e,t)=>{const[E,T]=Ns(e,t,"}");return[{type:"mandatory_block",items:E},T]},UM=(e,t)=>{const[E,T]=Ns(e,t,"]");return[{type:"optional_block",items:E},T]},AT=e=>{if(typeof e=="string")return[e];if(e.type==="concatenation")return e.items.map(AT).reduce(hM,[""]);if(e.type==="mandatory_block")return e.items.flatMap(AT);if(e.type==="optional_block")return["",...e.items.flatMap(AT)];throw new Error(`Unknown node type: ${e}`)},hM=(e,t)=>{const E=[];for(const T of e)for(const r of t)E.push(T+r);return E},bA=(e=>(e.QUOTED_IDENTIFIER="QUOTED_IDENTIFIER",e.IDENTIFIER="IDENTIFIER",e.STRING="STRING",e.VARIABLE="VARIABLE",e.RESERVED_DATA_TYPE="RESERVED_DATA_TYPE",e.RESERVED_PARAMETERIZED_DATA_TYPE="RESERVED_PARAMETERIZED_DATA_TYPE",e.RESERVED_KEYWORD="RESERVED_KEYWORD",e.RESERVED_FUNCTION_NAME="RESERVED_FUNCTION_NAME",e.RESERVED_PHRASE="RESERVED_PHRASE",e.RESERVED_SET_OPERATION="RESERVED_SET_OPERATION",e.RESERVED_CLAUSE="RESERVED_CLAUSE",e.RESERVED_SELECT="RESERVED_SELECT",e.RESERVED_JOIN="RESERVED_JOIN",e.ARRAY_IDENTIFIER="ARRAY_IDENTIFIER",e.ARRAY_KEYWORD="ARRAY_KEYWORD",e.CASE="CASE",e.END="END",e.WHEN="WHEN",e.ELSE="ELSE",e.THEN="THEN",e.LIMIT="LIMIT",e.BETWEEN="BETWEEN",e.AND="AND",e.OR="OR",e.XOR="XOR",e.OPERATOR="OPERATOR",e.COMMA="COMMA",e.ASTERISK="ASTERISK",e.DOT="DOT",e.OPEN_PAREN="OPEN_PAREN",e.CLOSE_PAREN="CLOSE_PAREN",e.LINE_COMMENT="LINE_COMMENT",e.BLOCK_COMMENT="BLOCK_COMMENT",e.NUMBER="NUMBER",e.NAMED_PARAMETER="NAMED_PARAMETER",e.QUOTED_PARAMETER="QUOTED_PARAMETER",e.NUMBERED_PARAMETER="NUMBERED_PARAMETER",e.POSITIONAL_PARAMETER="POSITIONAL_PARAMETER",e.CUSTOM_PARAMETER="CUSTOM_PARAMETER",e.DELIMITER="DELIMITER",e.EOF="EOF",e))(bA||{}),BA=e=>({type:"EOF",raw:"«EOF»",text:"«EOF»",start:e}),RE=BA(1/0),qt=e=>t=>t.type===e.type&&t.text===e.text,wt={ARRAY:qt({text:"ARRAY",type:"RESERVED_DATA_TYPE"}),BY:qt({text:"BY",type:"RESERVED_KEYWORD"}),SET:qt({text:"SET",type:"RESERVED_CLAUSE"}),STRUCT:qt({text:"STRUCT",type:"RESERVED_DATA_TYPE"}),WINDOW:qt({text:"WINDOW",type:"RESERVED_CLAUSE"}),VALUES:qt({text:"VALUES",type:"RESERVED_CLAUSE"})},FA=e=>e==="RESERVED_DATA_TYPE"||e==="RESERVED_KEYWORD"||e==="RESERVED_FUNCTION_NAME"||e==="RESERVED_PHRASE"||e==="RESERVED_CLAUSE"||e==="RESERVED_SELECT"||e==="RESERVED_SET_OPERATION"||e==="RESERVED_JOIN"||e==="ARRAY_KEYWORD"||e==="CASE"||e==="END"||e==="WHEN"||e==="ELSE"||e==="THEN"||e==="LIMIT"||e==="BETWEEN"||e==="AND"||e==="OR"||e==="XOR",gM=e=>e==="AND"||e==="OR"||e==="XOR",GM=["KEYS.NEW_KEYSET","KEYS.ADD_KEY_FROM_RAW_BYTES","AEAD.DECRYPT_BYTES","AEAD.DECRYPT_STRING","AEAD.ENCRYPT","KEYS.KEYSET_CHAIN","KEYS.KEYSET_FROM_JSON","KEYS.KEYSET_TO_JSON","KEYS.ROTATE_KEYSET","KEYS.KEYSET_LENGTH","ANY_VALUE","ARRAY_AGG","AVG","CORR","COUNT","COUNTIF","COVAR_POP","COVAR_SAMP","MAX","MIN","ST_CLUSTERDBSCAN","STDDEV_POP","STDDEV_SAMP","STRING_AGG","SUM","VAR_POP","VAR_SAMP","ANY_VALUE","ARRAY_AGG","ARRAY_CONCAT_AGG","AVG","BIT_AND","BIT_OR","BIT_XOR","COUNT","COUNTIF","LOGICAL_AND","LOGICAL_OR","MAX","MIN","STRING_AGG","SUM","APPROX_COUNT_DISTINCT","APPROX_QUANTILES","APPROX_TOP_COUNT","APPROX_TOP_SUM","ARRAY_CONCAT","ARRAY_LENGTH","ARRAY_TO_STRING","GENERATE_ARRAY","GENERATE_DATE_ARRAY","GENERATE_TIMESTAMP_ARRAY","ARRAY_REVERSE","OFFSET","SAFE_OFFSET","ORDINAL","SAFE_ORDINAL","BIT_COUNT","PARSE_BIGNUMERIC","PARSE_NUMERIC","SAFE_CAST","CURRENT_DATE","EXTRACT","DATE","DATE_ADD","DATE_SUB","DATE_DIFF","DATE_TRUNC","DATE_FROM_UNIX_DATE","FORMAT_DATE","LAST_DAY","PARSE_DATE","UNIX_DATE","CURRENT_DATETIME","DATETIME","EXTRACT","DATETIME_ADD","DATETIME_SUB","DATETIME_DIFF","DATETIME_TRUNC","FORMAT_DATETIME","LAST_DAY","PARSE_DATETIME","ERROR","EXTERNAL_QUERY","S2_CELLIDFROMPOINT","S2_COVERINGCELLIDS","ST_ANGLE","ST_AREA","ST_ASBINARY","ST_ASGEOJSON","ST_ASTEXT","ST_AZIMUTH","ST_BOUNDARY","ST_BOUNDINGBOX","ST_BUFFER","ST_BUFFERWITHTOLERANCE","ST_CENTROID","ST_CENTROID_AGG","ST_CLOSESTPOINT","ST_CLUSTERDBSCAN","ST_CONTAINS","ST_CONVEXHULL","ST_COVEREDBY","ST_COVERS","ST_DIFFERENCE","ST_DIMENSION","ST_DISJOINT","ST_DISTANCE","ST_DUMP","ST_DWITHIN","ST_ENDPOINT","ST_EQUALS","ST_EXTENT","ST_EXTERIORRING","ST_GEOGFROM","ST_GEOGFROMGEOJSON","ST_GEOGFROMTEXT","ST_GEOGFROMWKB","ST_GEOGPOINT","ST_GEOGPOINTFROMGEOHASH","ST_GEOHASH","ST_GEOMETRYTYPE","ST_INTERIORRINGS","ST_INTERSECTION","ST_INTERSECTS","ST_INTERSECTSBOX","ST_ISCOLLECTION","ST_ISEMPTY","ST_LENGTH","ST_MAKELINE","ST_MAKEPOLYGON","ST_MAKEPOLYGONORIENTED","ST_MAXDISTANCE","ST_NPOINTS","ST_NUMGEOMETRIES","ST_NUMPOINTS","ST_PERIMETER","ST_POINTN","ST_SIMPLIFY","ST_SNAPTOGRID","ST_STARTPOINT","ST_TOUCHES","ST_UNION","ST_UNION_AGG","ST_WITHIN","ST_X","ST_Y","FARM_FINGERPRINT","MD5","SHA1","SHA256","SHA512","HLL_COUNT.INIT","HLL_COUNT.MERGE","HLL_COUNT.MERGE_PARTIAL","HLL_COUNT.EXTRACT","MAKE_INTERVAL","EXTRACT","JUSTIFY_DAYS","JUSTIFY_HOURS","JUSTIFY_INTERVAL","JSON_EXTRACT","JSON_QUERY","JSON_EXTRACT_SCALAR","JSON_VALUE","JSON_EXTRACT_ARRAY","JSON_QUERY_ARRAY","JSON_EXTRACT_STRING_ARRAY","JSON_VALUE_ARRAY","TO_JSON_STRING","ABS","SIGN","IS_INF","IS_NAN","IEEE_DIVIDE","RAND","SQRT","POW","POWER","EXP","LN","LOG","LOG10","GREATEST","LEAST","DIV","SAFE_DIVIDE","SAFE_MULTIPLY","SAFE_NEGATE","SAFE_ADD","SAFE_SUBTRACT","MOD","ROUND","TRUNC","CEIL","CEILING","FLOOR","COS","COSH","ACOS","ACOSH","SIN","SINH","ASIN","ASINH","TAN","TANH","ATAN","ATANH","ATAN2","RANGE_BUCKET","FIRST_VALUE","LAST_VALUE","NTH_VALUE","LEAD","LAG","PERCENTILE_CONT","PERCENTILE_DISC","NET.IP_FROM_STRING","NET.SAFE_IP_FROM_STRING","NET.IP_TO_STRING","NET.IP_NET_MASK","NET.IP_TRUNC","NET.IPV4_FROM_INT64","NET.IPV4_TO_INT64","NET.HOST","NET.PUBLIC_SUFFIX","NET.REG_DOMAIN","RANK","DENSE_RANK","PERCENT_RANK","CUME_DIST","NTILE","ROW_NUMBER","SESSION_USER","CORR","COVAR_POP","COVAR_SAMP","STDDEV_POP","STDDEV_SAMP","STDDEV","VAR_POP","VAR_SAMP","VARIANCE","ASCII","BYTE_LENGTH","CHAR_LENGTH","CHARACTER_LENGTH","CHR","CODE_POINTS_TO_BYTES","CODE_POINTS_TO_STRING","CONCAT","CONTAINS_SUBSTR","ENDS_WITH","FORMAT","FROM_BASE32","FROM_BASE64","FROM_HEX","INITCAP","INSTR","LEFT","LENGTH","LPAD","LOWER","LTRIM","NORMALIZE","NORMALIZE_AND_CASEFOLD","OCTET_LENGTH","REGEXP_CONTAINS","REGEXP_EXTRACT","REGEXP_EXTRACT_ALL","REGEXP_INSTR","REGEXP_REPLACE","REGEXP_SUBSTR","REPLACE","REPEAT","REVERSE","RIGHT","RPAD","RTRIM","SAFE_CONVERT_BYTES_TO_STRING","SOUNDEX","SPLIT","STARTS_WITH","STRPOS","SUBSTR","SUBSTRING","TO_BASE32","TO_BASE64","TO_CODE_POINTS","TO_HEX","TRANSLATE","TRIM","UNICODE","UPPER","CURRENT_TIME","TIME","EXTRACT","TIME_ADD","TIME_SUB","TIME_DIFF","TIME_TRUNC","FORMAT_TIME","PARSE_TIME","CURRENT_TIMESTAMP","EXTRACT","STRING","TIMESTAMP","TIMESTAMP_ADD","TIMESTAMP_SUB","TIMESTAMP_DIFF","TIMESTAMP_TRUNC","FORMAT_TIMESTAMP","PARSE_TIMESTAMP","TIMESTAMP_SECONDS","TIMESTAMP_MILLIS","TIMESTAMP_MICROS","UNIX_SECONDS","UNIX_MILLIS","UNIX_MICROS","GENERATE_UUID","COALESCE","IF","IFNULL","NULLIF","AVG","BIT_AND","BIT_OR","BIT_XOR","CORR","COUNT","COVAR_POP","COVAR_SAMP","EXACT_COUNT_DISTINCT","FIRST","GROUP_CONCAT","GROUP_CONCAT_UNQUOTED","LAST","MAX","MIN","NEST","NTH","QUANTILES","STDDEV","STDDEV_POP","STDDEV_SAMP","SUM","TOP","UNIQUE","VARIANCE","VAR_POP","VAR_SAMP","BIT_COUNT","BOOLEAN","BYTES","CAST","FLOAT","HEX_STRING","INTEGER","STRING","COALESCE","GREATEST","IFNULL","IS_INF","IS_NAN","IS_EXPLICITLY_DEFINED","LEAST","NVL","CURRENT_DATE","CURRENT_TIME","CURRENT_TIMESTAMP","DATE","DATE_ADD","DATEDIFF","DAY","DAYOFWEEK","DAYOFYEAR","FORMAT_UTC_USEC","HOUR","MINUTE","MONTH","MSEC_TO_TIMESTAMP","NOW","PARSE_UTC_USEC","QUARTER","SEC_TO_TIMESTAMP","SECOND","STRFTIME_UTC_USEC","TIME","TIMESTAMP","TIMESTAMP_TO_MSEC","TIMESTAMP_TO_SEC","TIMESTAMP_TO_USEC","USEC_TO_TIMESTAMP","UTC_USEC_TO_DAY","UTC_USEC_TO_HOUR","UTC_USEC_TO_MONTH","UTC_USEC_TO_WEEK","UTC_USEC_TO_YEAR","WEEK","YEAR","FORMAT_IP","PARSE_IP","FORMAT_PACKED_IP","PARSE_PACKED_IP","JSON_EXTRACT","JSON_EXTRACT_SCALAR","ABS","ACOS","ACOSH","ASIN","ASINH","ATAN","ATANH","ATAN2","CEIL","COS","COSH","DEGREES","EXP","FLOOR","LN","LOG","LOG2","LOG10","PI","POW","RADIANS","RAND","ROUND","SIN","SINH","SQRT","TAN","TANH","REGEXP_MATCH","REGEXP_EXTRACT","REGEXP_REPLACE","CONCAT","INSTR","LEFT","LENGTH","LOWER","LPAD","LTRIM","REPLACE","RIGHT","RPAD","RTRIM","SPLIT","SUBSTR","UPPER","TABLE_DATE_RANGE","TABLE_DATE_RANGE_STRICT","TABLE_QUERY","HOST","DOMAIN","TLD","AVG","COUNT","MAX","MIN","STDDEV","SUM","CUME_DIST","DENSE_RANK","FIRST_VALUE","LAG","LAST_VALUE","LEAD","NTH_VALUE","NTILE","PERCENT_RANK","PERCENTILE_CONT","PERCENTILE_DISC","RANK","RATIO_TO_REPORT","ROW_NUMBER","CURRENT_USER","EVERY","FROM_BASE64","HASH","FARM_FINGERPRINT","IF","POSITION","SHA1","SOME","TO_BASE64","BQ.JOBS.CANCEL","BQ.REFRESH_MATERIALIZED_VIEW","OPTIONS","PIVOT","UNPIVOT"],mM=["ALL","AND","ANY","AS","ASC","ASSERT_ROWS_MODIFIED","AT","BETWEEN","BY","CASE","CAST","COLLATE","CONTAINS","CREATE","CROSS","CUBE","CURRENT","DEFAULT","DEFINE","DESC","DISTINCT","ELSE","END","ENUM","ESCAPE","EXCEPT","EXCLUDE","EXISTS","EXTRACT","FALSE","FETCH","FOLLOWING","FOR","FROM","FULL","GROUP","GROUPING","GROUPS","HASH","HAVING","IF","IGNORE","IN","INNER","INTERSECT","INTO","IS","JOIN","LATERAL","LEFT","LIMIT","LOOKUP","MERGE","NATURAL","NEW","NO","NOT","NULL","NULLS","OF","ON","OR","ORDER","OUTER","OVER","PARTITION","PRECEDING","PROTO","RANGE","RECURSIVE","RESPECT","RIGHT","ROLLUP","ROWS","SELECT","SET","SOME","TABLE","TABLESAMPLE","THEN","TO","TREAT","TRUE","UNBOUNDED","UNION","UNNEST","USING","WHEN","WHERE","WINDOW","WITH","WITHIN","SAFE","LIKE","COPY","CLONE","IN","OUT","INOUT","RETURNS","LANGUAGE","CASCADE","RESTRICT","DETERMINISTIC"],HM=["ARRAY","BOOL","BYTES","DATE","DATETIME","GEOGRAPHY","INTERVAL","INT64","INT","SMALLINT","INTEGER","BIGINT","TINYINT","BYTEINT","NUMERIC","DECIMAL","BIGNUMERIC","BIGDECIMAL","FLOAT64","STRING","STRUCT","TIME","TIMEZONE"],yM=d(["SELECT [ALL | DISTINCT] [AS STRUCT | AS VALUE]"]),bM=d(["WITH [RECURSIVE]","FROM","WHERE","GROUP BY","HAVING","QUALIFY","WINDOW","PARTITION BY","ORDER BY","LIMIT","OFFSET","OMIT RECORD IF","INSERT [INTO]","VALUES","SET","MERGE [INTO]","WHEN [NOT] MATCHED [BY SOURCE | BY TARGET] [THEN]","UPDATE SET","CLUSTER BY","FOR SYSTEM_TIME AS OF","WITH CONNECTION","WITH PARTITION COLUMNS","REMOTE WITH CONNECTION"]),kn=d(["CREATE [OR REPLACE] [TEMP|TEMPORARY|SNAPSHOT|EXTERNAL] TABLE [IF NOT EXISTS]","CREATE [OR REPLACE] [MATERIALIZED] VIEW [IF NOT EXISTS]","UPDATE","DELETE [FROM]","DROP [SNAPSHOT | EXTERNAL] TABLE [IF EXISTS]","ALTER TABLE [IF EXISTS]","ADD COLUMN [IF NOT EXISTS]","DROP COLUMN [IF EXISTS]","RENAME TO","ALTER COLUMN [IF EXISTS]","SET DEFAULT COLLATE","SET OPTIONS","DROP NOT NULL","SET DATA TYPE","ALTER SCHEMA [IF EXISTS]","ALTER [MATERIALIZED] VIEW [IF EXISTS]","ALTER BI_CAPACITY","TRUNCATE TABLE","CREATE SCHEMA [IF NOT EXISTS]","DEFAULT COLLATE","CREATE [OR REPLACE] [TEMP|TEMPORARY|TABLE] FUNCTION [IF NOT EXISTS]","CREATE [OR REPLACE] PROCEDURE [IF NOT EXISTS]","CREATE [OR REPLACE] ROW ACCESS POLICY [IF NOT EXISTS]","GRANT TO","FILTER USING","CREATE CAPACITY","AS JSON","CREATE RESERVATION","CREATE ASSIGNMENT","CREATE SEARCH INDEX [IF NOT EXISTS]","DROP SCHEMA [IF EXISTS]","DROP [MATERIALIZED] VIEW [IF EXISTS]","DROP [TABLE] FUNCTION [IF EXISTS]","DROP PROCEDURE [IF EXISTS]","DROP ROW ACCESS POLICY","DROP ALL ROW ACCESS POLICIES","DROP CAPACITY [IF EXISTS]","DROP RESERVATION [IF EXISTS]","DROP ASSIGNMENT [IF EXISTS]","DROP SEARCH INDEX [IF EXISTS]","DROP [IF EXISTS]","GRANT","REVOKE","DECLARE","EXECUTE IMMEDIATE","LOOP","END LOOP","REPEAT","END REPEAT","WHILE","END WHILE","BREAK","LEAVE","CONTINUE","ITERATE","FOR","END FOR","BEGIN","BEGIN TRANSACTION","COMMIT TRANSACTION","ROLLBACK TRANSACTION","RAISE","RETURN","CALL","ASSERT","EXPORT DATA"]),BM=d(["UNION {ALL | DISTINCT}","EXCEPT DISTINCT","INTERSECT DISTINCT"]),FM=d(["JOIN","{LEFT | RIGHT | FULL} [OUTER] JOIN","{INNER | CROSS} JOIN"]),vM=d(["TABLESAMPLE SYSTEM","ANY TYPE","ALL COLUMNS","NOT DETERMINISTIC","{ROWS | RANGE} BETWEEN","IS [NOT] DISTINCT FROM"]),YM={name:"bigquery",tokenizerOptions:{reservedSelect:yM,reservedClauses:[...bM,...kn],reservedSetOperations:BM,reservedJoins:FM,reservedPhrases:vM,reservedKeywords:mM,reservedDataTypes:HM,reservedFunctionNames:GM,extraParens:["[]"],stringTypes:[{quote:'""".."""',prefixes:["R","B","RB","BR"]},{quote:"'''..'''",prefixes:["R","B","RB","BR"]},'""-bs',"''-bs",{quote:'""-raw',prefixes:["R","B","RB","BR"],requirePrefix:!0},{quote:"''-raw",prefixes:["R","B","RB","BR"],requirePrefix:!0}],identTypes:["``"],identChars:{dashes:!0},paramTypes:{positional:!0,named:["@"],quoted:["@"]},variableTypes:[{regex:String.raw`@@\w+`}],lineCommentTypes:["--","#"],operators:["&","|","^","~",">>","<<","||","=>"],postProcess:xM},formatOptions:{onelineClauses:kn}};function xM(e){return VM(wM(e))}function VM(e){let t=RE;return e.map(E=>E.text==="OFFSET"&&t.text==="["?(t=E,xe(ye({},E),{type:"RESERVED_FUNCTION_NAME"})):(t=E,E))}function wM(e){var t;const E=[];for(let T=0;T<e.length;T++){const r=e[T];if((wt.ARRAY(r)||wt.STRUCT(r))&&((t=e[T+1])==null?void 0:t.text)==="<"){const s=WM(e,T+1),n=e.slice(T,s+1);E.push({type:"IDENTIFIER",raw:n.map(jn("raw")).join(""),text:n.map(jn("text")).join(""),start:r.start}),T=s}else E.push(r)}return E}var jn=e=>t=>t.type==="IDENTIFIER"||t.type==="COMMA"?t[e]+" ":t[e];function WM(e,t){let E=0;for(let T=t;T<e.length;T++){const r=e[T];if(r.text==="<"?E++:r.text===">"?E--:r.text===">>"&&(E-=2),E===0)return T}return e.length-1}var XM=["ARRAY_AGG","AVG","CORRELATION","COUNT","COUNT_BIG","COVARIANCE","COVARIANCE_SAMP","CUME_DIST","GROUPING","LISTAGG","MAX","MEDIAN","MIN","PERCENTILE_CONT","PERCENTILE_DISC","PERCENT_RANK","REGR_AVGX","REGR_AVGY","REGR_COUNT","REGR_INTERCEPT","REGR_ICPT","REGR_R2","REGR_SLOPE","REGR_SXX","REGR_SXY","REGR_SYY","STDDEV","STDDEV_SAMP","SUM","VARIANCE","VARIANCE_SAMP","XMLAGG","XMLGROUP","ABS","ABSVAL","ACOS","ADD_DAYS","ADD_HOURS","ADD_MINUTES","ADD_MONTHS","ADD_SECONDS","ADD_YEARS","AGE","ARRAY_DELETE","ARRAY_FIRST","ARRAY_LAST","ARRAY_NEXT","ARRAY_PRIOR","ASCII","ASCII_STR","ASIN","ATAN","ATAN2","ATANH","BITAND","BITANDNOT","BITOR","BITXOR","BITNOT","BPCHAR","BSON_TO_JSON","BTRIM","CARDINALITY","CEILING","CEIL","CHARACTER_LENGTH","CHR","COALESCE","COLLATION_KEY","COLLATION_KEY_BIT","COMPARE_DECFLOAT","CONCAT","COS","COSH","COT","CURSOR_ROWCOUNT","DATAPARTITIONNUM","DATE_PART","DATE_TRUNC","DAY","DAYNAME","DAYOFMONTH","DAYOFWEEK","DAYOFWEEK_ISO","DAYOFYEAR","DAYS","DAYS_BETWEEN","DAYS_TO_END_OF_MONTH","DBPARTITIONNUM","DECFLOAT","DECFLOAT_FORMAT","DECODE","DECRYPT_BIN","DECRYPT_CHAR","DEGREES","DEREF","DIFFERENCE","DIGITS","DOUBLE_PRECISION","EMPTY_BLOB","EMPTY_CLOB","EMPTY_DBCLOB","EMPTY_NCLOB","ENCRYPT","EVENT_MON_STATE","EXP","EXTRACT","FIRST_DAY","FLOOR","FROM_UTC_TIMESTAMP","GENERATE_UNIQUE","GETHINT","GREATEST","HASH","HASH4","HASH8","HASHEDVALUE","HEX","HEXTORAW","HOUR","HOURS_BETWEEN","IDENTITY_VAL_LOCAL","IFNULL","INITCAP","INSERT","INSTR","INSTR2","INSTR4","INSTRB","INTNAND","INTNOR","INTNXOR","INTNNOT","ISNULL","JSON_ARRAY","JSON_OBJECT","JSON_QUERY","JSON_TO_BSON","JSON_VALUE","JULIAN_DAY","LAST_DAY","LCASE","LEAST","LEFT","LENGTH","LENGTH2","LENGTH4","LENGTHB","LN","LOCATE","LOCATE_IN_STRING","LOG10","LONG_VARCHAR","LONG_VARGRAPHIC","LOWER","LPAD","LTRIM","MAX","MAX_CARDINALITY","MICROSECOND","MIDNIGHT_SECONDS","MIN","MINUTE","MINUTES_BETWEEN","MOD","MONTH","MONTHNAME","MONTHS_BETWEEN","MULTIPLY_ALT","NEXT_DAY","NEXT_MONTH","NEXT_QUARTER","NEXT_WEEK","NEXT_YEAR","NORMALIZE_DECFLOAT","NOW","NULLIF","NVL","NVL2","OCTET_LENGTH","OVERLAY","PARAMETER","POSITION","POSSTR","POW","POWER","QUANTIZE","QUARTER","QUOTE_IDENT","QUOTE_LITERAL","RADIANS","RAISE_ERROR","RAND","RANDOM","RAWTOHEX","REC2XML","REGEXP_COUNT","REGEXP_EXTRACT","REGEXP_INSTR","REGEXP_LIKE","REGEXP_MATCH_COUNT","REGEXP_REPLACE","REGEXP_SUBSTR","REPEAT","REPLACE","RID","RID_BIT","RIGHT","ROUND","ROUND_TIMESTAMP","RPAD","RTRIM","SECLABEL","SECLABEL_BY_NAME","SECLABEL_TO_CHAR","SECOND","SECONDS_BETWEEN","SIGN","SIN","SINH","SOUNDEX","SPACE","SQRT","STRIP","STRLEFT","STRPOS","STRRIGHT","SUBSTR","SUBSTR2","SUBSTR4","SUBSTRB","SUBSTRING","TABLE_NAME","TABLE_SCHEMA","TAN","TANH","THIS_MONTH","THIS_QUARTER","THIS_WEEK","THIS_YEAR","TIMESTAMP_FORMAT","TIMESTAMP_ISO","TIMESTAMPDIFF","TIMEZONE","TO_CHAR","TO_CLOB","TO_DATE","TO_HEX","TO_MULTI_BYTE","TO_NCHAR","TO_NCLOB","TO_NUMBER","TO_SINGLE_BYTE","TO_TIMESTAMP","TO_UTC_TIMESTAMP","TOTALORDER","TRANSLATE","TRIM","TRIM_ARRAY","TRUNC_TIMESTAMP","TRUNCATE","TRUNC","TYPE_ID","TYPE_NAME","TYPE_SCHEMA","UCASE","UNICODE_STR","UPPER","VALUE","VARCHAR_BIT_FORMAT","VARCHAR_FORMAT","VARCHAR_FORMAT_BIT","VERIFY_GROUP_FOR_USER","VERIFY_ROLE_FOR_USER","VERIFY_TRUSTED_CONTEXT_ROLE_FOR_USER","WEEK","WEEK_ISO","WEEKS_BETWEEN","WIDTH_BUCKET","XMLATTRIBUTES","XMLCOMMENT","XMLCONCAT","XMLDOCUMENT","XMLELEMENT","XMLFOREST","XMLNAMESPACES","XMLPARSE","XMLPI","XMLQUERY","XMLROW","XMLSERIALIZE","XMLTEXT","XMLVALIDATE","XMLXSROBJECTID","XSLTRANSFORM","YEAR","YEARS_BETWEEN","YMD_BETWEEN","BASE_TABLE","JSON_TABLE","UNNEST","XMLTABLE","RANK","DENSE_RANK","NTILE","LAG","LEAD","ROW_NUMBER","FIRST_VALUE","LAST_VALUE","NTH_VALUE","RATIO_TO_REPORT","CAST"],$M=["ACTIVATE","ADD","AFTER","ALIAS","ALL","ALLOCATE","ALLOW","ALTER","AND","ANY","AS","ASENSITIVE","ASSOCIATE","ASUTIME","AT","ATTRIBUTES","AUDIT","AUTHORIZATION","AUX","AUXILIARY","BEFORE","BEGIN","BETWEEN","BINARY","BUFFERPOOL","BY","CACHE","CALL","CALLED","CAPTURE","CARDINALITY","CASCADED","CASE","CAST","CHECK","CLONE","CLOSE","CLUSTER","COLLECTION","COLLID","COLUMN","COMMENT","COMMIT","CONCAT","CONDITION","CONNECT","CONNECTION","CONSTRAINT","CONTAINS","CONTINUE","COUNT","COUNT_BIG","CREATE","CROSS","CURRENT","CURRENT_DATE","CURRENT_LC_CTYPE","CURRENT_PATH","CURRENT_SCHEMA","CURRENT_SERVER","CURRENT_TIME","CURRENT_TIMESTAMP","CURRENT_TIMEZONE","CURRENT_USER","CURSOR","CYCLE","DATA","DATABASE","DATAPARTITIONNAME","DATAPARTITIONNUM","DAY","DAYS","DB2GENERAL","DB2GENRL","DB2SQL","DBINFO","DBPARTITIONNAME","DBPARTITIONNUM","DEALLOCATE","DECLARE","DEFAULT","DEFAULTS","DEFINITION","DELETE","DENSERANK","DENSE_RANK","DESCRIBE","DESCRIPTOR","DETERMINISTIC","DIAGNOSTICS","DISABLE","DISALLOW","DISCONNECT","DISTINCT","DO","DOCUMENT","DROP","DSSIZE","DYNAMIC","EACH","EDITPROC","ELSE","ELSEIF","ENABLE","ENCODING","ENCRYPTION","END","END-EXEC","ENDING","ERASE","ESCAPE","EVERY","EXCEPT","EXCEPTION","EXCLUDING","EXCLUSIVE","EXECUTE","EXISTS","EXIT","EXPLAIN","EXTENDED","EXTERNAL","EXTRACT","FENCED","FETCH","FIELDPROC","FILE","FINAL","FIRST1","FOR","FOREIGN","FREE","FROM","FULL","FUNCTION","GENERAL","GENERATED","GET","GLOBAL","GO","GOTO","GRANT","GRAPHIC","GROUP","HANDLER","HASH","HASHED_VALUE","HAVING","HINT","HOLD","HOUR","HOURS","IDENTITY","IF","IMMEDIATE","IMPORT","IN","INCLUDING","INCLUSIVE","INCREMENT","INDEX","INDICATOR","INDICATORS","INF","INFINITY","INHERIT","INNER","INOUT","INSENSITIVE","INSERT","INTEGRITY","INTERSECT","INTO","IS","ISNULL","ISOBID","ISOLATION","ITERATE","JAR","JAVA","JOIN","KEEP","KEY","LABEL","LANGUAGE","LAST3","LATERAL","LC_CTYPE","LEAVE","LEFT","LIKE","LIMIT","LINKTYPE","LOCAL","LOCALDATE","LOCALE","LOCALTIME","LOCALTIMESTAMP","LOCATOR","LOCATORS","LOCK","LOCKMAX","LOCKSIZE","LOOP","MAINTAINED","MATERIALIZED","MAXVALUE","MICROSECOND","MICROSECONDS","MINUTE","MINUTES","MINVALUE","MODE","MODIFIES","MONTH","MONTHS","NAN","NEW","NEW_TABLE","NEXTVAL","NO","NOCACHE","NOCYCLE","NODENAME","NODENUMBER","NOMAXVALUE","NOMINVALUE","NONE","NOORDER","NORMALIZED","NOT2","NOTNULL","NULL","NULLS","NUMPARTS","OBID","OF","OFF","OFFSET","OLD","OLD_TABLE","ON","OPEN","OPTIMIZATION","OPTIMIZE","OPTION","OR","ORDER","OUT","OUTER","OVER","OVERRIDING","PACKAGE","PADDED","PAGESIZE","PARAMETER","PART","PARTITION","PARTITIONED","PARTITIONING","PARTITIONS","PASSWORD","PATH","PERCENT","PIECESIZE","PLAN","POSITION","PRECISION","PREPARE","PREVVAL","PRIMARY","PRIQTY","PRIVILEGES","PROCEDURE","PROGRAM","PSID","PUBLIC","QUERY","QUERYNO","RANGE","RANK","READ","READS","RECOVERY","REFERENCES","REFERENCING","REFRESH","RELEASE","RENAME","REPEAT","RESET","RESIGNAL","RESTART","RESTRICT","RESULT","RESULT_SET_LOCATOR","RETURN","RETURNS","REVOKE","RIGHT","ROLE","ROLLBACK","ROUND_CEILING","ROUND_DOWN","ROUND_FLOOR","ROUND_HALF_DOWN","ROUND_HALF_EVEN","ROUND_HALF_UP","ROUND_UP","ROUTINE","ROW","ROWNUMBER","ROWS","ROWSET","ROW_NUMBER","RRN","RUN","SAVEPOINT","SCHEMA","SCRATCHPAD","SCROLL","SEARCH","SECOND","SECONDS","SECQTY","SECURITY","SELECT","SENSITIVE","SEQUENCE","SESSION","SESSION_USER","SET","SIGNAL","SIMPLE","SNAN","SOME","SOURCE","SPECIFIC","SQL","SQLID","STACKED","STANDARD","START","STARTING","STATEMENT","STATIC","STATMENT","STAY","STOGROUP","STORES","STYLE","SUBSTRING","SUMMARY","SYNONYM","SYSFUN","SYSIBM","SYSPROC","SYSTEM","SYSTEM_USER","TABLE","TABLESPACE","THEN","TO","TRANSACTION","TRIGGER","TRIM","TRUNCATE","TYPE","UNDO","UNION","UNIQUE","UNTIL","UPDATE","USAGE","USER","USING","VALIDPROC","VALUE","VALUES","VARIABLE","VARIANT","VCAT","VERSION","VIEW","VOLATILE","VOLUMES","WHEN","WHENEVER","WHERE","WHILE","WITH","WITHOUT","WLM","WRITE","XMLELEMENT","XMLEXISTS","XMLNAMESPACES","YEAR","YEARS"],KM=["ARRAY","BIGINT","BINARY","BLOB","BOOLEAN","CCSID","CHAR","CHARACTER","CLOB","DATE","DATETIME","DBCLOB","DEC","DECIMAL","DOUBLE","DOUBLE PRECISION","FLOAT","FLOAT4","FLOAT8","GRAPHIC","INT","INT2","INT4","INT8","INTEGER","INTERVAL","LONG VARCHAR","LONG VARGRAPHIC","NCHAR","NCHR","NCLOB","NVARCHAR","NUMERIC","SMALLINT","REAL","TIME","TIMESTAMP","VARBINARY","VARCHAR","VARGRAPHIC"],JM=d(["SELECT [ALL | DISTINCT]"]),kM=d(["WITH","FROM","WHERE","GROUP BY","HAVING","PARTITION BY","ORDER BY [INPUT SEQUENCE]","LIMIT","OFFSET","FETCH NEXT","FOR UPDATE [OF]","FOR {READ | FETCH} ONLY","FOR {RR | CS | UR | RS} [USE AND KEEP {SHARE | UPDATE | EXCLUSIVE} LOCKS]","WAIT FOR OUTCOME","SKIP LOCKED DATA","INTO","INSERT INTO","VALUES","SET","MERGE INTO","WHEN [NOT] MATCHED [THEN]","UPDATE SET","INSERT"]),qn=d(["CREATE [GLOBAL TEMPORARY | EXTERNAL] TABLE [IF NOT EXISTS]","CREATE [OR REPLACE] VIEW","UPDATE","WHERE CURRENT OF","WITH {RR | RS | CS | UR}","DELETE FROM","DROP TABLE [IF EXISTS]","ALTER TABLE","ADD [COLUMN]","DROP [COLUMN]","RENAME COLUMN","ALTER [COLUMN]","SET DATA TYPE","SET NOT NULL","DROP {DEFAULT | GENERATED | NOT NULL}","TRUNCATE [TABLE]","ALLOCATE","ALTER AUDIT POLICY","ALTER BUFFERPOOL","ALTER DATABASE PARTITION GROUP","ALTER DATABASE","ALTER EVENT MONITOR","ALTER FUNCTION","ALTER HISTOGRAM TEMPLATE","ALTER INDEX","ALTER MASK","ALTER METHOD","ALTER MODULE","ALTER NICKNAME","ALTER PACKAGE","ALTER PERMISSION","ALTER PROCEDURE","ALTER SCHEMA","ALTER SECURITY LABEL COMPONENT","ALTER SECURITY POLICY","ALTER SEQUENCE","ALTER SERVER","ALTER SERVICE CLASS","ALTER STOGROUP","ALTER TABLESPACE","ALTER THRESHOLD","ALTER TRIGGER","ALTER TRUSTED CONTEXT","ALTER TYPE","ALTER USAGE LIST","ALTER USER MAPPING","ALTER VIEW","ALTER WORK ACTION SET","ALTER WORK CLASS SET","ALTER WORKLOAD","ALTER WRAPPER","ALTER XSROBJECT","ALTER STOGROUP","ALTER TABLESPACE","ALTER TRIGGER","ALTER TRUSTED CONTEXT","ALTER VIEW","ASSOCIATE [RESULT SET] {LOCATOR | LOCATORS}","AUDIT","BEGIN DECLARE SECTION","CALL","CLOSE","COMMENT ON","COMMIT [WORK]","CONNECT","CREATE [OR REPLACE] [PUBLIC] ALIAS","CREATE AUDIT POLICY","CREATE BUFFERPOOL","CREATE DATABASE PARTITION GROUP","CREATE EVENT MONITOR","CREATE [OR REPLACE] FUNCTION","CREATE FUNCTION MAPPING","CREATE HISTOGRAM TEMPLATE","CREATE [UNIQUE] INDEX","CREATE INDEX EXTENSION","CREATE [OR REPLACE] MASK","CREATE [SPECIFIC] METHOD","CREATE [OR REPLACE] MODULE","CREATE [OR REPLACE] NICKNAME","CREATE [OR REPLACE] PERMISSION","CREATE [OR REPLACE] PROCEDURE","CREATE ROLE","CREATE SCHEMA","CREATE SECURITY LABEL [COMPONENT]","CREATE SECURITY POLICY","CREATE [OR REPLACE] SEQUENCE","CREATE SERVICE CLASS","CREATE SERVER","CREATE STOGROUP","CREATE SYNONYM","CREATE [LARGE | REGULAR | {SYSTEM | USER} TEMPORARY] TABLESPACE","CREATE THRESHOLD","CREATE {TRANSFORM | TRANSFORMS} FOR","CREATE [OR REPLACE] TRIGGER","CREATE TRUSTED CONTEXT","CREATE [OR REPLACE] TYPE","CREATE TYPE MAPPING","CREATE USAGE LIST","CREATE USER MAPPING FOR","CREATE [OR REPLACE] VARIABLE","CREATE WORK ACTION SET","CREATE WORK CLASS SET","CREATE WORKLOAD","CREATE WRAPPER","DECLARE","DECLARE GLOBAL TEMPORARY TABLE","DESCRIBE [INPUT | OUTPUT]","DISCONNECT","DROP [PUBLIC] ALIAS","DROP AUDIT POLICY","DROP BUFFERPOOL","DROP DATABASE PARTITION GROUP","DROP EVENT MONITOR","DROP [SPECIFIC] FUNCTION","DROP FUNCTION MAPPING","DROP HISTOGRAM TEMPLATE","DROP INDEX [EXTENSION]","DROP MASK","DROP [SPECIFIC] METHOD","DROP MODULE","DROP NICKNAME","DROP PACKAGE","DROP PERMISSION","DROP [SPECIFIC] PROCEDURE","DROP ROLE","DROP SCHEMA","DROP SECURITY LABEL [COMPONENT]","DROP SECURITY POLICY","DROP SEQUENCE","DROP SERVER","DROP SERVICE CLASS","DROP STOGROUP","DROP TABLE HIERARCHY","DROP {TABLESPACE | TABLESPACES}","DROP {TRANSFORM | TRANSFORMS}","DROP THRESHOLD","DROP TRIGGER","DROP TRUSTED CONTEXT","DROP TYPE [MAPPING]","DROP USAGE LIST","DROP USER MAPPING FOR","DROP VARIABLE","DROP VIEW [HIERARCHY]","DROP WORK {ACTION | CLASS} SET","DROP WORKLOAD","DROP WRAPPER","DROP XSROBJECT","END DECLARE SECTION","EXECUTE [IMMEDIATE]","EXPLAIN {PLAN [SECTION] | ALL}","FETCH [FROM]","FLUSH {BUFFERPOOL | BUFFERPOOLS} ALL","FLUSH EVENT MONITOR","FLUSH FEDERATED CACHE","FLUSH OPTIMIZATION PROFILE CACHE","FLUSH PACKAGE CACHE [DYNAMIC]","FLUSH AUTHENTICATION CACHE [FOR ALL]","FREE LOCATOR","GET DIAGNOSTICS","GOTO","GRANT","INCLUDE","ITERATE","LEAVE","LOCK TABLE","LOOP","OPEN","PIPE","PREPARE","REFRESH TABLE","RELEASE","RELEASE [TO] SAVEPOINT","RENAME [TABLE | INDEX | STOGROUP | TABLESPACE]","REPEAT","RESIGNAL","RETURN","REVOKE","ROLLBACK [WORK] [TO SAVEPOINT]","SAVEPOINT","SET COMPILATION ENVIRONMENT","SET CONNECTION","SET CURRENT","SET ENCRYPTION PASSWORD","SET EVENT MONITOR STATE","SET INTEGRITY","SET PASSTHRU","SET PATH","SET ROLE","SET SCHEMA","SET SERVER OPTION","SET {SESSION AUTHORIZATION | SESSION_USER}","SET USAGE LIST","SIGNAL","TRANSFER OWNERSHIP OF","WHENEVER {NOT FOUND | SQLERROR | SQLWARNING}","WHILE"]),jM=d(["UNION [ALL]","EXCEPT [ALL]","INTERSECT [ALL]"]),qM=d(["JOIN","{LEFT | RIGHT | FULL} [OUTER] JOIN","{INNER | CROSS} JOIN"]),QM=d(["ON DELETE","ON UPDATE","SET NULL","{ROWS | RANGE} BETWEEN"]),ZM={name:"db2",tokenizerOptions:{reservedSelect:JM,reservedClauses:[...kM,...qn],reservedSetOperations:jM,reservedJoins:qM,reservedPhrases:QM,reservedKeywords:$M,reservedDataTypes:KM,reservedFunctionNames:XM,extraParens:["[]"],stringTypes:[{quote:"''-qq",prefixes:["G","N","U&"]},{quote:"''-raw",prefixes:["X","BX","GX","UX"],requirePrefix:!0}],identTypes:['""-qq'],identChars:{first:"@#$",rest:"@#$"},paramTypes:{positional:!0,named:[":"]},paramChars:{first:"@#$",rest:"@#$"},operators:["**","%","|","&","^","~","¬=","¬>","¬<","!>","!<","^=","^>","^<","||","->","=>"]},formatOptions:{onelineClauses:qn}},zM=["ARRAY_AGG","AVG","CORR","CORRELATION","COUNT","COUNT_BIG","COVAR_POP","COVARIANCE","COVAR","COVAR_SAMP","COVARIANCE_SAMP","EVERY","GROUPING","JSON_ARRAYAGG","JSON_OBJECTAGG","LISTAGG","MAX","MEDIAN","MIN","PERCENTILE_CONT","PERCENTILE_DISC","REGR_AVGX","REGR_AVGY","REGR_COUNT","REGR_INTERCEPT","REGR_R2","REGR_SLOPE","REGR_SXX","REGR_SXY","REGR_SYY","SOME","STDDEV_POP","STDDEV","STDDEV_SAMP","SUM","VAR_POP","VARIANCE","VAR","VAR_SAMP","VARIANCE_SAMP","XMLAGG","XMLGROUP","ABS","ABSVAL","ACOS","ADD_DAYS","ADD_HOURS","ADD_MINUTES","ADD_MONTHS","ADD_SECONDS","ADD_YEARS","ANTILOG","ARRAY_MAX_CARDINALITY","ARRAY_TRIM","ASCII","ASIN","ATAN","ATAN2","ATANH","BASE64_DECODE","BASE64_ENCODE","BIT_LENGTH","BITAND","BITANDNOT","BITNOT","BITOR","BITXOR","BSON_TO_JSON","CARDINALITY","CEIL","CEILING","CHAR_LENGTH","CHARACTER_LENGTH","CHR","COALESCE","COMPARE_DECFLOAT","CONCAT","CONTAINS","COS","COSH","COT","CURDATE","CURTIME","DATABASE","DATAPARTITIONNAME","DATAPARTITIONNUM","DAY","DAYNAME","DAYOFMONTH","DAYOFWEEK_ISO","DAYOFWEEK","DAYOFYEAR","DAYS","DBPARTITIONNAME","DBPARTITIONNUM","DECFLOAT_FORMAT","DECFLOAT_SORTKEY","DECRYPT_BINARY","DECRYPT_BIT","DECRYPT_CHAR","DECRYPT_DB","DEGREES","DIFFERENCE","DIGITS","DLCOMMENT","DLLINKTYPE","DLURLCOMPLETE","DLURLPATH","DLURLPATHONLY","DLURLSCHEME","DLURLSERVER","DLVALUE","DOUBLE_PRECISION","DOUBLE","ENCRPYT","ENCRYPT_AES","ENCRYPT_AES256","ENCRYPT_RC2","ENCRYPT_TDES","EXP","EXTRACT","FIRST_DAY","FLOOR","GENERATE_UNIQUE","GET_BLOB_FROM_FILE","GET_CLOB_FROM_FILE","GET_DBCLOB_FROM_FILE","GET_XML_FILE","GETHINT","GREATEST","HASH_MD5","HASH_ROW","HASH_SHA1","HASH_SHA256","HASH_SHA512","HASH_VALUES","HASHED_VALUE","HEX","HEXTORAW","HOUR","HTML_ENTITY_DECODE","HTML_ENTITY_ENCODE","HTTP_DELETE_BLOB","HTTP_DELETE","HTTP_GET_BLOB","HTTP_GET","HTTP_PATCH_BLOB","HTTP_PATCH","HTTP_POST_BLOB","HTTP_POST","HTTP_PUT_BLOB","HTTP_PUT","IDENTITY_VAL_LOCAL","IFNULL","INSERT","INSTR","INTERPRET","ISFALSE","ISNOTFALSE","ISNOTTRUE","ISTRUE","JSON_ARRAY","JSON_OBJECT","JSON_QUERY","JSON_TO_BSON","JSON_UPDATE","JSON_VALUE","JULIAN_DAY","LAND","LAST_DAY","LCASE","LEAST","LEFT","LENGTH","LN","LNOT","LOCATE_IN_STRING","LOCATE","LOG10","LOR","LOWER","LPAD","LTRIM","MAX_CARDINALITY","MAX","MICROSECOND","MIDNIGHT_SECONDS","MIN","MINUTE","MOD","MONTH","MONTHNAME","MONTHS_BETWEEN","MQREAD","MQREADCLOB","MQRECEIVE","MQRECEIVECLOB","MQSEND","MULTIPLY_ALT","NEXT_DAY","NORMALIZE_DECFLOAT","NOW","NULLIF","NVL","OCTET_LENGTH","OVERLAY","PI","POSITION","POSSTR","POW","POWER","QUANTIZE","QUARTER","RADIANS","RAISE_ERROR","RANDOM","RAND","REGEXP_COUNT","REGEXP_INSTR","REGEXP_REPLACE","REGEXP_SUBSTR","REPEAT","REPLACE","RID","RIGHT","ROUND_TIMESTAMP","ROUND","RPAD","RRN","RTRIM","SCORE","SECOND","SIGN","SIN","SINH","SOUNDEX","SPACE","SQRT","STRIP","STRLEFT","STRPOS","STRRIGHT","SUBSTR","SUBSTRING","TABLE_NAME","TABLE_SCHEMA","TAN","TANH","TIMESTAMP_FORMAT","TIMESTAMP_ISO","TIMESTAMPDIFF_BIG","TIMESTAMPDIFF","TO_CHAR","TO_CLOB","TO_DATE","TO_NUMBER","TO_TIMESTAMP","TOTALORDER","TRANSLATE","TRIM_ARRAY","TRIM","TRUNC_TIMESTAMP","TRUNC","TRUNCATE","UCASE","UPPER","URL_DECODE","URL_ENCODE","VALUE","VARBINARY_FORMAT","VARCHAR_BIT_FORMAT","VARCHAR_FORMAT_BINARY","VARCHAR_FORMAT","VERIFY_GROUP_FOR_USER","WEEK_ISO","WEEK","WRAP","XMLATTRIBUTES","XMLCOMMENT","XMLCONCAT","XMLDOCUMENT","XMLELEMENT","XMLFOREST","XMLNAMESPACES","XMLPARSE","XMLPI","XMLROW","XMLSERIALIZE","XMLTEXT","XMLVALIDATE","XOR","XSLTRANSFORM","YEAR","ZONED","BASE_TABLE","HTTP_DELETE_BLOB_VERBOSE","HTTP_DELETE_VERBOSE","HTTP_GET_BLOB_VERBOSE","HTTP_GET_VERBOSE","HTTP_PATCH_BLOB_VERBOSE","HTTP_PATCH_VERBOSE","HTTP_POST_BLOB_VERBOSE","HTTP_POST_VERBOSE","HTTP_PUT_BLOB_VERBOSE","HTTP_PUT_VERBOSE","JSON_TABLE","MQREADALL","MQREADALLCLOB","MQRECEIVEALL","MQRECEIVEALLCLOB","XMLTABLE","UNPACK","CUME_DIST","DENSE_RANK","FIRST_VALUE","LAG","LAST_VALUE","LEAD","NTH_VALUE","NTILE","PERCENT_RANK","RANK","RATIO_TO_REPORT","ROW_NUMBER","CAST"],eU=["ABSENT","ACCORDING","ACCTNG","ACTION","ACTIVATE","ADD","ALIAS","ALL","ALLOCATE","ALLOW","ALTER","AND","ANY","APPEND","APPLNAME","ARRAY","ARRAY_AGG","ARRAY_TRIM","AS","ASC","ASENSITIVE","ASSOCIATE","ATOMIC","ATTACH","ATTRIBUTES","AUTHORIZATION","AUTONOMOUS","BEFORE","BEGIN","BETWEEN","BIND","BSON","BUFFERPOOL","BY","CACHE","CALL","CALLED","CARDINALITY","CASE","CAST","CHECK","CL","CLOSE","CLUSTER","COLLECT","COLLECTION","COLUMN","COMMENT","COMMIT","COMPACT","COMPARISONS","COMPRESS","CONCAT","CONCURRENT","CONDITION","CONNECT","CONNECT_BY_ROOT","CONNECTION","CONSTANT","CONSTRAINT","CONTAINS","CONTENT","CONTINUE","COPY","COUNT","COUNT_BIG","CREATE","CREATEIN","CROSS","CUBE","CUME_DIST","CURRENT","CURRENT_DATE","CURRENT_PATH","CURRENT_SCHEMA","CURRENT_SERVER","CURRENT_TIME","CURRENT_TIMESTAMP","CURRENT_TIMEZONE","CURRENT_USER","CURSOR","CYCLE","DATABASE","DATAPARTITIONNAME","DATAPARTITIONNUM","DAY","DAYS","DB2GENERAL","DB2GENRL","DB2SQL","DBINFO","DBPARTITIONNAME","DBPARTITIONNUM","DEACTIVATE","DEALLOCATE","DECLARE","DEFAULT","DEFAULTS","DEFER","DEFINE","DEFINITION","DELETE","DELETING","DENSE_RANK","DENSERANK","DESC","DESCRIBE","DESCRIPTOR","DETACH","DETERMINISTIC","DIAGNOSTICS","DISABLE","DISALLOW","DISCONNECT","DISTINCT","DO","DOCUMENT","DROP","DYNAMIC","EACH","ELSE","ELSEIF","EMPTY","ENABLE","ENCODING","ENCRYPTION","END","END-EXEC","ENDING","ENFORCED","ERROR","ESCAPE","EVERY","EXCEPT","EXCEPTION","EXCLUDING","EXCLUSIVE","EXECUTE","EXISTS","EXIT","EXTEND","EXTERNAL","EXTRACT","FALSE","FENCED","FETCH","FIELDPROC","FILE","FINAL","FIRST_VALUE","FOR","FOREIGN","FORMAT","FREE","FREEPAGE","FROM","FULL","FUNCTION","GBPCACHE","GENERAL","GENERATED","GET","GLOBAL","GO","GOTO","GRANT","GROUP","HANDLER","HASH","HASH_ROW","HASHED_VALUE","HAVING","HINT","HOLD","HOUR","HOURS","IDENTITY","IF","IGNORE","IMMEDIATE","IMPLICITLY","IN","INCLUDE","INCLUDING","INCLUSIVE","INCREMENT","INDEX","INDEXBP","INDICATOR","INF","INFINITY","INHERIT","INLINE","INNER","INOUT","INSENSITIVE","INSERT","INSERTING","INTEGRITY","INTERPRET","INTERSECT","INTO","IS","ISNULL","ISOLATION","ITERATE","JAVA","JOIN","JSON","JSON_ARRAY","JSON_ARRAYAGG","JSON_EXISTS","JSON_OBJECT","JSON_OBJECTAGG","JSON_QUERY","JSON_TABLE","JSON_VALUE","KEEP","KEY","KEYS","LABEL","LAG","LANGUAGE","LAST_VALUE","LATERAL","LEAD","LEAVE","LEFT","LEVEL2","LIKE","LIMIT","LINKTYPE","LISTAGG","LOCAL","LOCALDATE","LOCALTIME","LOCALTIMESTAMP","LOCATION","LOCATOR","LOCK","LOCKSIZE","LOG","LOGGED","LOOP","MAINTAINED","MASK","MATCHED","MATERIALIZED","MAXVALUE","MERGE","MICROSECOND","MICROSECONDS","MINPCTUSED","MINUTE","MINUTES","MINVALUE","MIRROR","MIXED","MODE","MODIFIES","MONTH","MONTHS","NAMESPACE","NAN","NATIONAL","NCHAR","NCLOB","NESTED","NEW","NEW_TABLE","NEXTVAL","NO","NOCACHE","NOCYCLE","NODENAME","NODENUMBER","NOMAXVALUE","NOMINVALUE","NONE","NOORDER","NORMALIZED","NOT","NOTNULL","NTH_VALUE","NTILE","NULL","NULLS","NVARCHAR","OBID","OBJECT","OF","OFF","OFFSET","OLD","OLD_TABLE","OMIT","ON","ONLY","OPEN","OPTIMIZE","OPTION","OR","ORDER","ORDINALITY","ORGANIZE","OUT","OUTER","OVER","OVERLAY","OVERRIDING","PACKAGE","PADDED","PAGE","PAGESIZE","PARAMETER","PART","PARTITION","PARTITIONED","PARTITIONING","PARTITIONS","PASSING","PASSWORD","PATH","PCTFREE","PERCENT_RANK","PERCENTILE_CONT","PERCENTILE_DISC","PERIOD","PERMISSION","PIECESIZE","PIPE","PLAN","POSITION","PREPARE","PREVVAL","PRIMARY","PRIOR","PRIQTY","PRIVILEGES","PROCEDURE","PROGRAM","PROGRAMID","QUERY","RANGE","RANK","RATIO_TO_REPORT","RCDFMT","READ","READS","RECOVERY","REFERENCES","REFERENCING","REFRESH","REGEXP_LIKE","RELEASE","RENAME","REPEAT","RESET","RESIGNAL","RESTART","RESULT","RESULT_SET_LOCATOR","RETURN","RETURNING","RETURNS","REVOKE","RID","RIGHT","ROLLBACK","ROLLUP","ROUTINE","ROW","ROW_NUMBER","ROWNUMBER","ROWS","RRN","RUN","SAVEPOINT","SBCS","SCALAR","SCHEMA","SCRATCHPAD","SCROLL","SEARCH","SECOND","SECONDS","SECQTY","SECURED","SELECT","SENSITIVE","SEQUENCE","SESSION","SESSION_USER","SET","SIGNAL","SIMPLE","SKIP","SNAN","SOME","SOURCE","SPECIFIC","SQL","SQLID","SQLIND_DEFAULT","SQLIND_UNASSIGNED","STACKED","START","STARTING","STATEMENT","STATIC","STOGROUP","SUBSTRING","SUMMARY","SYNONYM","SYSTEM_TIME","SYSTEM_USER","TABLE","TABLESPACE","TABLESPACES","TAG","THEN","THREADSAFE","TO","TRANSACTION","TRANSFER","TRIGGER","TRIM","TRIM_ARRAY","TRUE","TRUNCATE","TRY_CAST","TYPE","UNDO","UNION","UNIQUE","UNIT","UNKNOWN","UNNEST","UNTIL","UPDATE","UPDATING","URI","USAGE","USE","USER","USERID","USING","VALUE","VALUES","VARIABLE","VARIANT","VCAT","VERSION","VERSIONING","VIEW","VOLATILE","WAIT","WHEN","WHENEVER","WHERE","WHILE","WITH","WITHIN","WITHOUT","WRAPPED","WRAPPER","WRITE","WRKSTNNAME","XMLAGG","XMLATTRIBUTES","XMLCAST","XMLCOMMENT","XMLCONCAT","XMLDOCUMENT","XMLELEMENT","XMLFOREST","XMLGROUP","XMLNAMESPACES","XMLPARSE","XMLPI","XMLROW","XMLSERIALIZE","XMLTABLE","XMLTEXT","XMLVALIDATE","XSLTRANSFORM","XSROBJECT","YEAR","YEARS","YES","ZONE"],tU=["ARRAY","BIGINT","BINARY","BIT","BLOB","BOOLEAN","CCSID","CHAR","CHARACTER","CLOB","DATA","DATALINK","DATE","DBCLOB","DECFLOAT","DECIMAL","DEC","DOUBLE","DOUBLE PRECISION","FLOAT","GRAPHIC","INT","INTEGER","LONG","NUMERIC","REAL","ROWID","SMALLINT","TIME","TIMESTAMP","VARBINARY","VARCHAR","VARGRAPHIC","XML"],EU=d(["SELECT [ALL | DISTINCT]"]),TU=d(["WITH [RECURSIVE]","INTO","FROM","WHERE","GROUP BY","HAVING","PARTITION BY","ORDER [SIBLINGS] BY [INPUT SEQUENCE]","LIMIT","OFFSET","FETCH {FIRST | NEXT}","FOR UPDATE [OF]","FOR READ ONLY","OPTIMIZE FOR","INSERT INTO","VALUES","SET","MERGE INTO","WHEN [NOT] MATCHED [THEN]","UPDATE SET","DELETE","INSERT","FOR SYSTEM NAME"]),Qn=d(["CREATE [OR REPLACE] TABLE","CREATE [OR REPLACE] [RECURSIVE] VIEW","UPDATE","WHERE CURRENT OF","WITH {NC | RR | RS | CS | UR}","DELETE FROM","DROP TABLE","ALTER TABLE","ADD [COLUMN]","ALTER [COLUMN]","DROP [COLUMN]","SET DATA TYPE","SET {GENERATED ALWAYS | GENERATED BY DEFAULT}","SET NOT NULL","SET {NOT HIDDEN | IMPLICITLY HIDDEN}","SET FIELDPROC","DROP {DEFAULT | NOT NULL | GENERATED | IDENTITY | ROW CHANGE TIMESTAMP | FIELDPROC}","TRUNCATE [TABLE]","SET [CURRENT] SCHEMA","SET CURRENT_SCHEMA","ALLOCATE CURSOR","ALLOCATE [SQL] DESCRIPTOR [LOCAL | GLOBAL] SQL","ALTER [SPECIFIC] {FUNCTION | PROCEDURE}","ALTER {MASK | PERMISSION | SEQUENCE | TRIGGER}","ASSOCIATE [RESULT SET] {LOCATOR | LOCATORS}","BEGIN DECLARE SECTION","CALL","CLOSE","COMMENT ON {ALIAS | COLUMN | CONSTRAINT | INDEX | MASK | PACKAGE | PARAMETER | PERMISSION | SEQUENCE | TABLE | TRIGGER | VARIABLE | XSROBJECT}","COMMENT ON [SPECIFIC] {FUNCTION | PROCEDURE | ROUTINE}","COMMENT ON PARAMETER SPECIFIC {FUNCTION | PROCEDURE | ROUTINE}","COMMENT ON [TABLE FUNCTION] RETURN COLUMN","COMMENT ON [TABLE FUNCTION] RETURN COLUMN SPECIFIC [PROCEDURE | ROUTINE]","COMMIT [WORK] [HOLD]","CONNECT [TO | RESET] USER","CREATE [OR REPLACE] {ALIAS | FUNCTION | MASK | PERMISSION | PROCEDURE | SEQUENCE | TRIGGER | VARIABLE}","CREATE [ENCODED VECTOR] INDEX","CREATE UNIQUE [WHERE NOT NULL] INDEX","CREATE SCHEMA","CREATE TYPE","DEALLOCATE [SQL] DESCRIPTOR [LOCAL | GLOBAL]","DECLARE CURSOR","DECLARE GLOBAL TEMPORARY TABLE","DECLARE","DESCRIBE CURSOR","DESCRIBE INPUT","DESCRIBE [OUTPUT]","DESCRIBE {PROCEDURE | ROUTINE}","DESCRIBE TABLE","DISCONNECT ALL [SQL]","DISCONNECT [CURRENT]","DROP {ALIAS | INDEX | MASK | PACKAGE | PERMISSION | SCHEMA | SEQUENCE | TABLE | TYPE | VARIABLE | XSROBJECT} [IF EXISTS]","DROP [SPECIFIC] {FUNCTION | PROCEDURE | ROUTINE} [IF EXISTS]","END DECLARE SECTION","EXECUTE [IMMEDIATE]","FREE LOCATOR","GET [SQL] DESCRIPTOR [LOCAL | GLOBAL]","GET [CURRENT | STACKED] DIAGNOSTICS","GRANT {ALL [PRIVILEGES] | ALTER | EXECUTE} ON {FUNCTION | PROCEDURE | ROUTINE | PACKAGE | SCHEMA | SEQUENCE | TABLE | TYPE | VARIABLE | XSROBJECT}","HOLD LOCATOR","INCLUDE","LABEL ON {ALIAS | COLUMN | CONSTRAINT | INDEX | MASK | PACKAGE | PERMISSION | SEQUENCE | TABLE | TRIGGER | VARIABLE | XSROBJECT}","LABEL ON [SPECIFIC] {FUNCTION | PROCEDURE | ROUTINE}","LOCK TABLE","OPEN","PREPARE","REFRESH TABLE","RELEASE","RELEASE [TO] SAVEPOINT","RENAME [TABLE | INDEX] TO","REVOKE {ALL [PRIVILEGES] | ALTER | EXECUTE} ON {FUNCTION | PROCEDURE | ROUTINE | PACKAGE | SCHEMA | SEQUENCE | TABLE | TYPE | VARIABLE | XSROBJECT}","ROLLBACK [WORK] [HOLD | TO SAVEPOINT]","SAVEPOINT","SET CONNECTION","SET CURRENT {DEBUG MODE | DECFLOAT ROUNDING MODE | DEGREE | IMPLICIT XMLPARSE OPTION | TEMPORAL SYSTEM_TIME}","SET [SQL] DESCRIPTOR [LOCAL | GLOBAL]","SET ENCRYPTION PASSWORD","SET OPTION","SET {[CURRENT [FUNCTION]] PATH | CURRENT_PATH}","SET RESULT SETS [WITH RETURN [TO CALLER | TO CLIENT]]","SET SESSION AUTHORIZATION","SET SESSION_USER","SET TRANSACTION","SIGNAL SQLSTATE [VALUE]","TAG","TRANSFER OWNERSHIP OF","WHENEVER {NOT FOUND | SQLERROR | SQLWARNING}"]),rU=d(["UNION [ALL]","EXCEPT [ALL]","INTERSECT [ALL]"]),sU=d(["JOIN","{LEFT | RIGHT | FULL} [OUTER] JOIN","[LEFT | RIGHT] EXCEPTION JOIN","{INNER | CROSS} JOIN"]),nU=d(["ON DELETE","ON UPDATE","SET NULL","{ROWS | RANGE} BETWEEN"]),RU={name:"db2i",tokenizerOptions:{reservedSelect:EU,reservedClauses:[...TU,...Qn],reservedSetOperations:rU,reservedJoins:sU,reservedPhrases:nU,reservedKeywords:eU,reservedDataTypes:tU,reservedFunctionNames:zM,nestedBlockComments:!0,extraParens:["[]"],stringTypes:[{quote:"''-qq",prefixes:["G","N"]},{quote:"''-raw",prefixes:["X","BX","GX","UX"],requirePrefix:!0}],identTypes:['""-qq'],identChars:{first:"@#$",rest:"@#$"},paramTypes:{positional:!0,named:[":"]},paramChars:{first:"@#$",rest:"@#$"},operators:["**","¬=","¬>","¬<","!>","!<","||","=>"]},formatOptions:{onelineClauses:Qn}},oU=["ABS","ACOS","ASIN","ATAN","BIN","BROUND","CBRT","CEIL","CEILING","CONV","COS","DEGREES","EXP","FACTORIAL","FLOOR","GREATEST","HEX","LEAST","LN","LOG","LOG10","LOG2","NEGATIVE","PI","PMOD","POSITIVE","POW","POWER","RADIANS","RAND","ROUND","SHIFTLEFT","SHIFTRIGHT","SHIFTRIGHTUNSIGNED","SIGN","SIN","SQRT","TAN","UNHEX","WIDTH_BUCKET","ARRAY_CONTAINS","MAP_KEYS","MAP_VALUES","SIZE","SORT_ARRAY","BINARY","CAST","ADD_MONTHS","DATE","DATE_ADD","DATE_FORMAT","DATE_SUB","DATEDIFF","DAY","DAYNAME","DAYOFMONTH","DAYOFYEAR","EXTRACT","FROM_UNIXTIME","FROM_UTC_TIMESTAMP","HOUR","LAST_DAY","MINUTE","MONTH","MONTHS_BETWEEN","NEXT_DAY","QUARTER","SECOND","TIMESTAMP","TO_DATE","TO_UTC_TIMESTAMP","TRUNC","UNIX_TIMESTAMP","WEEKOFYEAR","YEAR","ASSERT_TRUE","COALESCE","IF","ISNOTNULL","ISNULL","NULLIF","NVL","ASCII","BASE64","CHARACTER_LENGTH","CHR","CONCAT","CONCAT_WS","CONTEXT_NGRAMS","DECODE","ELT","ENCODE","FIELD","FIND_IN_SET","FORMAT_NUMBER","GET_JSON_OBJECT","IN_FILE","INITCAP","INSTR","LCASE","LENGTH","LEVENSHTEIN","LOCATE","LOWER","LPAD","LTRIM","NGRAMS","OCTET_LENGTH","PARSE_URL","PRINTF","QUOTE","REGEXP_EXTRACT","REGEXP_REPLACE","REPEAT","REVERSE","RPAD","RTRIM","SENTENCES","SOUNDEX","SPACE","SPLIT","STR_TO_MAP","SUBSTR","SUBSTRING","TRANSLATE","TRIM","UCASE","UNBASE64","UPPER","MASK","MASK_FIRST_N","MASK_HASH","MASK_LAST_N","MASK_SHOW_FIRST_N","MASK_SHOW_LAST_N","AES_DECRYPT","AES_ENCRYPT","CRC32","CURRENT_DATABASE","CURRENT_USER","HASH","JAVA_METHOD","LOGGED_IN_USER","MD5","REFLECT","SHA","SHA1","SHA2","SURROGATE_KEY","VERSION","AVG","COLLECT_LIST","COLLECT_SET","CORR","COUNT","COVAR_POP","COVAR_SAMP","HISTOGRAM_NUMERIC","MAX","MIN","NTILE","PERCENTILE","PERCENTILE_APPROX","REGR_AVGX","REGR_AVGY","REGR_COUNT","REGR_INTERCEPT","REGR_R2","REGR_SLOPE","REGR_SXX","REGR_SXY","REGR_SYY","STDDEV_POP","STDDEV_SAMP","SUM","VAR_POP","VAR_SAMP","VARIANCE","EXPLODE","INLINE","JSON_TUPLE","PARSE_URL_TUPLE","POSEXPLODE","STACK","LEAD","LAG","FIRST_VALUE","LAST_VALUE","RANK","ROW_NUMBER","DENSE_RANK","CUME_DIST","PERCENT_RANK","NTILE"],AU=["ADD","ADMIN","AFTER","ANALYZE","ARCHIVE","ASC","BEFORE","BUCKET","BUCKETS","CASCADE","CHANGE","CLUSTER","CLUSTERED","CLUSTERSTATUS","COLLECTION","COLUMNS","COMMENT","COMPACT","COMPACTIONS","COMPUTE","CONCATENATE","CONTINUE","DATA","DATABASES","DATETIME","DAY","DBPROPERTIES","DEFERRED","DEFINED","DELIMITED","DEPENDENCY","DESC","DIRECTORIES","DIRECTORY","DISABLE","DISTRIBUTE","ELEM_TYPE","ENABLE","ESCAPED","EXCLUSIVE","EXPLAIN","EXPORT","FIELDS","FILE","FILEFORMAT","FIRST","FORMAT","FORMATTED","FUNCTIONS","HOLD_DDLTIME","HOUR","IDXPROPERTIES","IGNORE","INDEX","INDEXES","INPATH","INPUTDRIVER","INPUTFORMAT","ITEMS","JAR","KEYS","KEY_TYPE","LIMIT","LINES","LOAD","LOCATION","LOCK","LOCKS","LOGICAL","LONG","MAPJOIN","MATERIALIZED","METADATA","MINUS","MINUTE","MONTH","MSCK","NOSCAN","NO_DROP","OFFLINE","OPTION","OUTPUTDRIVER","OUTPUTFORMAT","OVERWRITE","OWNER","PARTITIONED","PARTITIONS","PLUS","PRETTY","PRINCIPALS","PROTECTION","PURGE","READ","READONLY","REBUILD","RECORDREADER","RECORDWRITER","RELOAD","RENAME","REPAIR","REPLACE","REPLICATION","RESTRICT","REWRITE","ROLE","ROLES","SCHEMA","SCHEMAS","SECOND","SEMI","SERDE","SERDEPROPERTIES","SERVER","SETS","SHARED","SHOW","SHOW_DATABASE","SKEWED","SORT","SORTED","SSL","STATISTICS","STORED","STREAMTABLE","STRING","TABLES","TBLPROPERTIES","TEMPORARY","TERMINATED","TINYINT","TOUCH","TRANSACTIONS","UNARCHIVE","UNDO","UNIONTYPE","UNLOCK","UNSET","UNSIGNED","URI","USE","UTC","UTCTIMESTAMP","VALUE_TYPE","VIEW","WHILE","YEAR","AUTOCOMMIT","ISOLATION","LEVEL","OFFSET","SNAPSHOT","TRANSACTION","WORK","WRITE","ABORT","KEY","LAST","NORELY","NOVALIDATE","NULLS","RELY","VALIDATE","DETAIL","DOW","EXPRESSION","OPERATOR","QUARTER","SUMMARY","VECTORIZATION","WEEK","YEARS","MONTHS","WEEKS","DAYS","HOURS","MINUTES","SECONDS","TIMESTAMPTZ","ZONE","ALL","ALTER","AND","AS","AUTHORIZATION","BETWEEN","BOTH","BY","CASE","CAST","COLUMN","CONF","CREATE","CROSS","CUBE","CURRENT","CURRENT_DATE","CURRENT_TIMESTAMP","CURSOR","DATABASE","DELETE","DESCRIBE","DISTINCT","DROP","ELSE","END","EXCHANGE","EXISTS","EXTENDED","EXTERNAL","FALSE","FETCH","FOLLOWING","FOR","FROM","FULL","FUNCTION","GRANT","GROUP","GROUPING","HAVING","IF","IMPORT","IN","INNER","INSERT","INTERSECT","INTO","IS","JOIN","LATERAL","LEFT","LESS","LIKE","LOCAL","MACRO","MORE","NONE","NOT","NULL","OF","ON","OR","ORDER","OUT","OUTER","OVER","PARTIALSCAN","PARTITION","PERCENT","PRECEDING","PRESERVE","PROCEDURE","RANGE","READS","REDUCE","REVOKE","RIGHT","ROLLUP","ROW","ROWS","SELECT","SET","TABLE","TABLESAMPLE","THEN","TO","TRANSFORM","TRIGGER","TRUE","TRUNCATE","UNBOUNDED","UNION","UNIQUEJOIN","UPDATE","USER","USING","UTC_TMESTAMP","VALUES","WHEN","WHERE","WINDOW","WITH","COMMIT","ONLY","REGEXP","RLIKE","ROLLBACK","START","CACHE","CONSTRAINT","FOREIGN","PRIMARY","REFERENCES","DAYOFWEEK","EXTRACT","FLOOR","VIEWS","TIME","SYNC","TEXTFILE","SEQUENCEFILE","ORC","CSV","TSV","PARQUET","AVRO","RCFILE","JSONFILE","INPUTFORMAT","OUTPUTFORMAT"],iU=["ARRAY","BIGINT","BINARY","BOOLEAN","CHAR","DATE","DECIMAL","DOUBLE","FLOAT","INT","INTEGER","INTERVAL","MAP","NUMERIC","PRECISION","SMALLINT","STRUCT","TIMESTAMP","VARCHAR"],SU=d(["SELECT [ALL | DISTINCT]"]),OU=d(["WITH","FROM","WHERE","GROUP BY","HAVING","WINDOW","PARTITION BY","ORDER BY","SORT BY","CLUSTER BY","DISTRIBUTE BY","LIMIT","INSERT INTO [TABLE]","VALUES","SET","MERGE INTO","WHEN [NOT] MATCHED [THEN]","UPDATE SET","INSERT [VALUES]","INSERT OVERWRITE [LOCAL] DIRECTORY","LOAD DATA [LOCAL] INPATH","[OVERWRITE] INTO TABLE"]),Zn=d(["CREATE [TEMPORARY] [EXTERNAL] TABLE [IF NOT EXISTS]","CREATE [MATERIALIZED] VIEW [IF NOT EXISTS]","UPDATE","DELETE FROM","DROP TABLE [IF EXISTS]","ALTER TABLE","RENAME TO","TRUNCATE [TABLE]","ALTER","CREATE","USE","DESCRIBE","DROP","FETCH","SHOW","STORED AS","STORED BY","ROW FORMAT"]),aU=d(["UNION [ALL | DISTINCT]"]),IU=d(["JOIN","{LEFT | RIGHT | FULL} [OUTER] JOIN","{INNER | CROSS} JOIN","LEFT SEMI JOIN"]),NU=d(["{ROWS | RANGE} BETWEEN"]),lU={name:"hive",tokenizerOptions:{reservedSelect:SU,reservedClauses:[...OU,...Zn],reservedSetOperations:aU,reservedJoins:IU,reservedPhrases:NU,reservedKeywords:AU,reservedDataTypes:iU,reservedFunctionNames:oU,extraParens:["[]"],stringTypes:['""-bs',"''-bs"],identTypes:["``"],variableTypes:[{quote:"{}",prefixes:["$"],requirePrefix:!0}],operators:["%","~","^","|","&","<=>","==","!","||"]},formatOptions:{onelineClauses:Zn}};function ls(e){return e.map((t,E)=>{const T=e[E+1]||RE;if(wt.SET(t)&&T.text==="(")return xe(ye({},t),{type:"RESERVED_FUNCTION_NAME"});const r=e[E-1]||RE;return wt.VALUES(t)&&r.text==="="?xe(ye({},t),{type:"RESERVED_FUNCTION_NAME"}):t})}var _U=["ACCESSIBLE","ADD","ALL","ALTER","ANALYZE","AND","AS","ASC","ASENSITIVE","BEFORE","BETWEEN","BOTH","BY","CALL","CASCADE","CASE","CHANGE","CHECK","COLLATE","COLUMN","CONDITION","CONSTRAINT","CONTINUE","CONVERT","CREATE","CROSS","CURRENT_DATE","CURRENT_ROLE","CURRENT_TIME","CURRENT_TIMESTAMP","CURRENT_USER","CURSOR","DATABASE","DATABASES","DAY_HOUR","DAY_MICROSECOND","DAY_MINUTE","DAY_SECOND","DECLARE","DEFAULT","DELAYED","DELETE","DELETE_DOMAIN_ID","DESC","DESCRIBE","DETERMINISTIC","DISTINCT","DISTINCTROW","DIV","DO_DOMAIN_IDS","DROP","DUAL","EACH","ELSE","ELSEIF","ENCLOSED","ESCAPED","EXCEPT","EXISTS","EXIT","EXPLAIN","FALSE","FETCH","FOR","FORCE","FOREIGN","FROM","FULLTEXT","GENERAL","GRANT","GROUP","HAVING","HIGH_PRIORITY","HOUR_MICROSECOND","HOUR_MINUTE","HOUR_SECOND","IF","IGNORE","IGNORE_DOMAIN_IDS","IGNORE_SERVER_IDS","IN","INDEX","INFILE","INNER","INOUT","INSENSITIVE","INSERT","INTERSECT","INTERVAL","INTO","IS","ITERATE","JOIN","KEY","KEYS","KILL","LEADING","LEAVE","LEFT","LIKE","LIMIT","LINEAR","LINES","LOAD","LOCALTIME","LOCALTIMESTAMP","LOCK","LOOP","LOW_PRIORITY","MASTER_HEARTBEAT_PERIOD","MASTER_SSL_VERIFY_SERVER_CERT","MATCH","MAXVALUE","MINUTE_MICROSECOND","MINUTE_SECOND","MOD","MODIFIES","NATURAL","NOT","NO_WRITE_TO_BINLOG","NULL","OFFSET","ON","OPTIMIZE","OPTION","OPTIONALLY","OR","ORDER","OUT","OUTER","OUTFILE","OVER","PAGE_CHECKSUM","PARSE_VCOL_EXPR","PARTITION","POSITION","PRIMARY","PROCEDURE","PURGE","RANGE","READ","READS","READ_WRITE","RECURSIVE","REF_SYSTEM_ID","REFERENCES","REGEXP","RELEASE","RENAME","REPEAT","REPLACE","REQUIRE","RESIGNAL","RESTRICT","RETURN","RETURNING","REVOKE","RIGHT","RLIKE","ROW_NUMBER","ROWS","SCHEMA","SCHEMAS","SECOND_MICROSECOND","SELECT","SENSITIVE","SEPARATOR","SET","SHOW","SIGNAL","SLOW","SPATIAL","SPECIFIC","SQL","SQLEXCEPTION","SQLSTATE","SQLWARNING","SQL_BIG_RESULT","SQL_CALC_FOUND_ROWS","SQL_SMALL_RESULT","SSL","STARTING","STATS_AUTO_RECALC","STATS_PERSISTENT","STATS_SAMPLE_PAGES","STRAIGHT_JOIN","TABLE","TERMINATED","THEN","TO","TRAILING","TRIGGER","TRUE","UNDO","UNION","UNIQUE","UNLOCK","UNSIGNED","UPDATE","USAGE","USE","USING","UTC_DATE","UTC_TIME","UTC_TIMESTAMP","VALUES","WHEN","WHERE","WHILE","WINDOW","WITH","WRITE","XOR","YEAR_MONTH","ZEROFILL"],CU=["BIGINT","BINARY","BIT","BLOB","CHAR BYTE","CHAR","CHARACTER","DATETIME","DEC","DECIMAL","DOUBLE PRECISION","DOUBLE","ENUM","FIXED","FLOAT","FLOAT4","FLOAT8","INT","INT1","INT2","INT3","INT4","INT8","INTEGER","LONG","LONGBLOB","LONGTEXT","MEDIUMBLOB","MEDIUMINT","MEDIUMTEXT","MIDDLEINT","NATIONAL CHAR","NATIONAL VARCHAR","NUMERIC","PRECISION","REAL","SMALLINT","TEXT","TIMESTAMP","TINYBLOB","TINYINT","TINYTEXT","VARBINARY","VARCHAR","VARCHARACTER","VARYING","YEAR"],cU=["ADDDATE","ADD_MONTHS","BIT_AND","BIT_OR","BIT_XOR","CAST","COUNT","CUME_DIST","CURDATE","CURTIME","DATE_ADD","DATE_SUB","DATE_FORMAT","DECODE","DENSE_RANK","EXTRACT","FIRST_VALUE","GROUP_CONCAT","JSON_ARRAYAGG","JSON_OBJECTAGG","LAG","LEAD","MAX","MEDIAN","MID","MIN","NOW","NTH_VALUE","NTILE","POSITION","PERCENT_RANK","PERCENTILE_CONT","PERCENTILE_DISC","RANK","ROW_NUMBER","SESSION_USER","STD","STDDEV","STDDEV_POP","STDDEV_SAMP","SUBDATE","SUBSTR","SUBSTRING","SUM","SYSTEM_USER","TRIM","TRIM_ORACLE","VARIANCE","VAR_POP","VAR_SAMP","ABS","ACOS","ADDTIME","AES_DECRYPT","AES_ENCRYPT","ASIN","ATAN","ATAN2","BENCHMARK","BIN","BINLOG_GTID_POS","BIT_COUNT","BIT_LENGTH","CEIL","CEILING","CHARACTER_LENGTH","CHAR_LENGTH","CHR","COERCIBILITY","COLUMN_CHECK","COLUMN_EXISTS","COLUMN_LIST","COLUMN_JSON","COMPRESS","CONCAT","CONCAT_OPERATOR_ORACLE","CONCAT_WS","CONNECTION_ID","CONV","CONVERT_TZ","COS","COT","CRC32","DATEDIFF","DAYNAME","DAYOFMONTH","DAYOFWEEK","DAYOFYEAR","DEGREES","DECODE_HISTOGRAM","DECODE_ORACLE","DES_DECRYPT","DES_ENCRYPT","ELT","ENCODE","ENCRYPT","EXP","EXPORT_SET","EXTRACTVALUE","FIELD","FIND_IN_SET","FLOOR","FORMAT","FOUND_ROWS","FROM_BASE64","FROM_DAYS","FROM_UNIXTIME","GET_LOCK","GREATEST","HEX","IFNULL","INSTR","ISNULL","IS_FREE_LOCK","IS_USED_LOCK","JSON_ARRAY","JSON_ARRAY_APPEND","JSON_ARRAY_INSERT","JSON_COMPACT","JSON_CONTAINS","JSON_CONTAINS_PATH","JSON_DEPTH","JSON_DETAILED","JSON_EXISTS","JSON_EXTRACT","JSON_INSERT","JSON_KEYS","JSON_LENGTH","JSON_LOOSE","JSON_MERGE","JSON_MERGE_PATCH","JSON_MERGE_PRESERVE","JSON_QUERY","JSON_QUOTE","JSON_OBJECT","JSON_REMOVE","JSON_REPLACE","JSON_SET","JSON_SEARCH","JSON_TYPE","JSON_UNQUOTE","JSON_VALID","JSON_VALUE","LAST_DAY","LAST_INSERT_ID","LCASE","LEAST","LENGTH","LENGTHB","LN","LOAD_FILE","LOCATE","LOG","LOG10","LOG2","LOWER","LPAD","LPAD_ORACLE","LTRIM","LTRIM_ORACLE","MAKEDATE","MAKETIME","MAKE_SET","MASTER_GTID_WAIT","MASTER_POS_WAIT","MD5","MONTHNAME","NAME_CONST","NVL","NVL2","OCT","OCTET_LENGTH","ORD","PERIOD_ADD","PERIOD_DIFF","PI","POW","POWER","QUOTE","REGEXP_INSTR","REGEXP_REPLACE","REGEXP_SUBSTR","RADIANS","RAND","RELEASE_ALL_LOCKS","RELEASE_LOCK","REPLACE_ORACLE","REVERSE","ROUND","RPAD","RPAD_ORACLE","RTRIM","RTRIM_ORACLE","SEC_TO_TIME","SHA","SHA1","SHA2","SIGN","SIN","SLEEP","SOUNDEX","SPACE","SQRT","STRCMP","STR_TO_DATE","SUBSTR_ORACLE","SUBSTRING_INDEX","SUBTIME","SYS_GUID","TAN","TIMEDIFF","TIME_FORMAT","TIME_TO_SEC","TO_BASE64","TO_CHAR","TO_DAYS","TO_SECONDS","UCASE","UNCOMPRESS","UNCOMPRESSED_LENGTH","UNHEX","UNIX_TIMESTAMP","UPDATEXML","UPPER","UUID","UUID_SHORT","VERSION","WEEKDAY","WEEKOFYEAR","WSREP_LAST_WRITTEN_GTID","WSREP_LAST_SEEN_GTID","WSREP_SYNC_WAIT_UPTO_GTID","YEARWEEK","COALESCE","NULLIF"],LU=d(["SELECT [ALL | DISTINCT | DISTINCTROW]"]),uU=d(["WITH [RECURSIVE]","FROM","WHERE","GROUP BY","HAVING","PARTITION BY","ORDER BY","LIMIT","OFFSET","FETCH {FIRST | NEXT}","INSERT [LOW_PRIORITY | DELAYED | HIGH_PRIORITY] [IGNORE] [INTO]","REPLACE [LOW_PRIORITY | DELAYED] [INTO]","VALUES","ON DUPLICATE KEY UPDATE","SET","RETURNING"]),zn=d(["CREATE [OR REPLACE] [TEMPORARY] TABLE [IF NOT EXISTS]","CREATE [OR REPLACE] [SQL SECURITY DEFINER | SQL SECURITY INVOKER] VIEW [IF NOT EXISTS]","UPDATE [LOW_PRIORITY] [IGNORE]","DELETE [LOW_PRIORITY] [QUICK] [IGNORE] FROM","DROP [TEMPORARY] TABLE [IF EXISTS]","ALTER [ONLINE] [IGNORE] TABLE [IF EXISTS]","ADD [COLUMN] [IF NOT EXISTS]","{CHANGE | MODIFY} [COLUMN] [IF EXISTS]","DROP [COLUMN] [IF EXISTS]","RENAME [TO]","RENAME COLUMN","ALTER [COLUMN]","{SET | DROP} DEFAULT","SET {VISIBLE | INVISIBLE}","TRUNCATE [TABLE]","ALTER DATABASE","ALTER DATABASE COMMENT","ALTER EVENT","ALTER FUNCTION","ALTER PROCEDURE","ALTER SCHEMA","ALTER SCHEMA COMMENT","ALTER SEQUENCE","ALTER SERVER","ALTER USER","ALTER VIEW","ANALYZE","ANALYZE TABLE","BACKUP LOCK","BACKUP STAGE","BACKUP UNLOCK","BEGIN","BINLOG","CACHE INDEX","CALL","CHANGE MASTER TO","CHECK TABLE","CHECK VIEW","CHECKSUM TABLE","COMMIT","CREATE AGGREGATE FUNCTION","CREATE DATABASE","CREATE EVENT","CREATE FUNCTION","CREATE INDEX","CREATE PROCEDURE","CREATE ROLE","CREATE SEQUENCE","CREATE SERVER","CREATE SPATIAL INDEX","CREATE TRIGGER","CREATE UNIQUE INDEX","CREATE USER","DEALLOCATE PREPARE","DESCRIBE","DROP DATABASE","DROP EVENT","DROP FUNCTION","DROP INDEX","DROP PREPARE","DROP PROCEDURE","DROP ROLE","DROP SEQUENCE","DROP SERVER","DROP TRIGGER","DROP USER","DROP VIEW","EXECUTE","EXPLAIN","FLUSH","GET DIAGNOSTICS","GET DIAGNOSTICS CONDITION","GRANT","HANDLER","HELP","INSTALL PLUGIN","INSTALL SONAME","KILL","LOAD DATA INFILE","LOAD INDEX INTO CACHE","LOAD XML INFILE","LOCK TABLE","OPTIMIZE TABLE","PREPARE","PURGE BINARY LOGS","PURGE MASTER LOGS","RELEASE SAVEPOINT","RENAME TABLE","RENAME USER","REPAIR TABLE","REPAIR VIEW","RESET MASTER","RESET QUERY CACHE","RESET REPLICA","RESET SLAVE","RESIGNAL","REVOKE","ROLLBACK","SAVEPOINT","SET CHARACTER SET","SET DEFAULT ROLE","SET GLOBAL TRANSACTION","SET NAMES","SET PASSWORD","SET ROLE","SET STATEMENT","SET TRANSACTION","SHOW","SHOW ALL REPLICAS STATUS","SHOW ALL SLAVES STATUS","SHOW AUTHORS","SHOW BINARY LOGS","SHOW BINLOG EVENTS","SHOW BINLOG STATUS","SHOW CHARACTER SET","SHOW CLIENT_STATISTICS","SHOW COLLATION","SHOW COLUMNS","SHOW CONTRIBUTORS","SHOW CREATE DATABASE","SHOW CREATE EVENT","SHOW CREATE FUNCTION","SHOW CREATE PACKAGE","SHOW CREATE PACKAGE BODY","SHOW CREATE PROCEDURE","SHOW CREATE SEQUENCE","SHOW CREATE TABLE","SHOW CREATE TRIGGER","SHOW CREATE USER","SHOW CREATE VIEW","SHOW DATABASES","SHOW ENGINE","SHOW ENGINE INNODB STATUS","SHOW ENGINES","SHOW ERRORS","SHOW EVENTS","SHOW EXPLAIN","SHOW FUNCTION CODE","SHOW FUNCTION STATUS","SHOW GRANTS","SHOW INDEX","SHOW INDEXES","SHOW INDEX_STATISTICS","SHOW KEYS","SHOW LOCALES","SHOW MASTER LOGS","SHOW MASTER STATUS","SHOW OPEN TABLES","SHOW PACKAGE BODY CODE","SHOW PACKAGE BODY STATUS","SHOW PACKAGE STATUS","SHOW PLUGINS","SHOW PLUGINS SONAME","SHOW PRIVILEGES","SHOW PROCEDURE CODE","SHOW PROCEDURE STATUS","SHOW PROCESSLIST","SHOW PROFILE","SHOW PROFILES","SHOW QUERY_RESPONSE_TIME","SHOW RELAYLOG EVENTS","SHOW REPLICA","SHOW REPLICA HOSTS","SHOW REPLICA STATUS","SHOW SCHEMAS","SHOW SLAVE","SHOW SLAVE HOSTS","SHOW SLAVE STATUS","SHOW STATUS","SHOW STORAGE ENGINES","SHOW TABLE STATUS","SHOW TABLES","SHOW TRIGGERS","SHOW USER_STATISTICS","SHOW VARIABLES","SHOW WARNINGS","SHOW WSREP_MEMBERSHIP","SHOW WSREP_STATUS","SHUTDOWN","SIGNAL","START ALL REPLICAS","START ALL SLAVES","START REPLICA","START SLAVE","START TRANSACTION","STOP ALL REPLICAS","STOP ALL SLAVES","STOP REPLICA","STOP SLAVE","UNINSTALL PLUGIN","UNINSTALL SONAME","UNLOCK TABLE","USE","XA BEGIN","XA COMMIT","XA END","XA PREPARE","XA RECOVER","XA ROLLBACK","XA START"]),pU=d(["UNION [ALL | DISTINCT]","EXCEPT [ALL | DISTINCT]","INTERSECT [ALL | DISTINCT]","MINUS [ALL | DISTINCT]"]),fU=d(["JOIN","{LEFT | RIGHT} [OUTER] JOIN","{INNER | CROSS} JOIN","NATURAL JOIN","NATURAL {LEFT | RIGHT} [OUTER] JOIN","STRAIGHT_JOIN"]),PU=d(["ON {UPDATE | DELETE} [SET NULL | SET DEFAULT]","CHARACTER SET","{ROWS | RANGE} BETWEEN","IDENTIFIED BY"]),DU={name:"mariadb",tokenizerOptions:{reservedSelect:LU,reservedClauses:[...uU,...zn],reservedSetOperations:pU,reservedJoins:fU,reservedPhrases:PU,supportsXor:!0,reservedKeywords:_U,reservedDataTypes:CU,reservedFunctionNames:cU,stringTypes:['""-qq-bs',"''-qq-bs",{quote:"''-raw",prefixes:["B","X"],requirePrefix:!0}],identTypes:["``"],identChars:{first:"$",rest:"$",allowFirstCharNumber:!0},variableTypes:[{regex:"@@?[A-Za-z0-9_.$]+"},{quote:'""-qq-bs',prefixes:["@"],requirePrefix:!0},{quote:"''-qq-bs",prefixes:["@"],requirePrefix:!0},{quote:"``",prefixes:["@"],requirePrefix:!0}],paramTypes:{positional:!0},lineCommentTypes:["--","#"],operators:["%",":=","&","|","^","~","<<",">>","<=>","&&","||","!","*.*"],postProcess:ls},formatOptions:{onelineClauses:zn}},dU=["ACCESSIBLE","ADD","ALL","ALTER","ANALYZE","AND","AS","ASC","ASENSITIVE","BEFORE","BETWEEN","BOTH","BY","CALL","CASCADE","CASE","CHANGE","CHECK","COLLATE","COLUMN","CONDITION","CONSTRAINT","CONTINUE","CONVERT","CREATE","CROSS","CUBE","CUME_DIST","CURRENT_DATE","CURRENT_TIME","CURRENT_TIMESTAMP","CURRENT_USER","CURSOR","DATABASE","DATABASES","DAY_HOUR","DAY_MICROSECOND","DAY_MINUTE","DAY_SECOND","DECLARE","DEFAULT","DELAYED","DELETE","DENSE_RANK","DESC","DESCRIBE","DETERMINISTIC","DISTINCT","DISTINCTROW","DIV","DROP","DUAL","EACH","ELSE","ELSEIF","EMPTY","ENCLOSED","ESCAPED","EXCEPT","EXISTS","EXIT","EXPLAIN","FALSE","FETCH","FIRST_VALUE","FOR","FORCE","FOREIGN","FROM","FULLTEXT","FUNCTION","GENERATED","GET","GRANT","GROUP","GROUPING","GROUPS","HAVING","HIGH_PRIORITY","HOUR_MICROSECOND","HOUR_MINUTE","HOUR_SECOND","IF","IGNORE","IN","INDEX","INFILE","INNER","INOUT","INSENSITIVE","INSERT","IN","INTERSECT","INTERVAL","INTO","IO_AFTER_GTIDS","IO_BEFORE_GTIDS","IS","ITERATE","JOIN","JSON_TABLE","KEY","KEYS","KILL","LAG","LAST_VALUE","LATERAL","LEAD","LEADING","LEAVE","LEFT","LIKE","LIMIT","LINEAR","LINES","LOAD","LOCALTIME","LOCALTIMESTAMP","LOCK","LONG","LOOP","LOW_PRIORITY","MASTER_BIND","MASTER_SSL_VERIFY_SERVER_CERT","MATCH","MAXVALUE","MINUTE_MICROSECOND","MINUTE_SECOND","MOD","MODIFIES","NATURAL","NOT","NO_WRITE_TO_BINLOG","NTH_VALUE","NTILE","NULL","OF","ON","OPTIMIZE","OPTIMIZER_COSTS","OPTION","OPTIONALLY","OR","ORDER","OUT","OUTER","OUTFILE","OVER","PARTITION","PERCENT_RANK","PRIMARY","PROCEDURE","PURGE","RANGE","RANK","READ","READS","READ_WRITE","RECURSIVE","REFERENCES","REGEXP","RELEASE","RENAME","REPEAT","REPLACE","REQUIRE","RESIGNAL","RESTRICT","RETURN","REVOKE","RIGHT","RLIKE","ROW","ROWS","ROW_NUMBER","SCHEMA","SCHEMAS","SECOND_MICROSECOND","SELECT","SENSITIVE","SEPARATOR","SET","SHOW","SIGNAL","SPATIAL","SPECIFIC","SQL","SQLEXCEPTION","SQLSTATE","SQLWARNING","SQL_BIG_RESULT","SQL_CALC_FOUND_ROWS","SQL_SMALL_RESULT","SSL","STARTING","STORED","STRAIGHT_JOIN","SYSTEM","TABLE","TERMINATED","THEN","TO","TRAILING","TRIGGER","TRUE","UNDO","UNION","UNIQUE","UNLOCK","UNSIGNED","UPDATE","USAGE","USE","USING","UTC_DATE","UTC_TIME","UTC_TIMESTAMP","VALUES","VIRTUAL","WHEN","WHERE","WHILE","WINDOW","WITH","WRITE","XOR","YEAR_MONTH","ZEROFILL"],MU=["BIGINT","BINARY","BIT","BLOB","BOOL","BOOLEAN","CHAR","CHARACTER","DATE","DATETIME","DEC","DECIMAL","DOUBLE PRECISION","DOUBLE","ENUM","FIXED","FLOAT","FLOAT4","FLOAT8","INT","INT1","INT2","INT3","INT4","INT8","INTEGER","LONGBLOB","LONGTEXT","MEDIUMBLOB","MEDIUMINT","MEDIUMTEXT","MIDDLEINT","NATIONAL CHAR","NATIONAL VARCHAR","NUMERIC","PRECISION","REAL","SMALLINT","TEXT","TIME","TIMESTAMP","TINYBLOB","TINYINT","TINYTEXT","VARBINARY","VARCHAR","VARCHARACTER","VARYING","YEAR"],UU=["ABS","ACOS","ADDDATE","ADDTIME","AES_DECRYPT","AES_ENCRYPT","ANY_VALUE","ASCII","ASIN","ATAN","ATAN2","AVG","BENCHMARK","BIN","BIN_TO_UUID","BINARY","BIT_AND","BIT_COUNT","BIT_LENGTH","BIT_OR","BIT_XOR","CAN_ACCESS_COLUMN","CAN_ACCESS_DATABASE","CAN_ACCESS_TABLE","CAN_ACCESS_USER","CAN_ACCESS_VIEW","CAST","CEIL","CEILING","CHAR","CHAR_LENGTH","CHARACTER_LENGTH","CHARSET","COALESCE","COERCIBILITY","COLLATION","COMPRESS","CONCAT","CONCAT_WS","CONNECTION_ID","CONV","CONVERT","CONVERT_TZ","COS","COT","COUNT","CRC32","CUME_DIST","CURDATE","CURRENT_DATE","CURRENT_ROLE","CURRENT_TIME","CURRENT_TIMESTAMP","CURRENT_USER","CURTIME","DATABASE","DATE","DATE_ADD","DATE_FORMAT","DATE_SUB","DATEDIFF","DAY","DAYNAME","DAYOFMONTH","DAYOFWEEK","DAYOFYEAR","DEFAULT","DEGREES","DENSE_RANK","DIV","ELT","EXP","EXPORT_SET","EXTRACT","EXTRACTVALUE","FIELD","FIND_IN_SET","FIRST_VALUE","FLOOR","FORMAT","FORMAT_BYTES","FORMAT_PICO_TIME","FOUND_ROWS","FROM_BASE64","FROM_DAYS","FROM_UNIXTIME","GEOMCOLLECTION","GEOMETRYCOLLECTION","GET_DD_COLUMN_PRIVILEGES","GET_DD_CREATE_OPTIONS","GET_DD_INDEX_SUB_PART_LENGTH","GET_FORMAT","GET_LOCK","GREATEST","GROUP_CONCAT","GROUPING","GTID_SUBSET","GTID_SUBTRACT","HEX","HOUR","ICU_VERSION","IF","IFNULL","INET_ATON","INET_NTOA","INET6_ATON","INET6_NTOA","INSERT","INSTR","INTERNAL_AUTO_INCREMENT","INTERNAL_AVG_ROW_LENGTH","INTERNAL_CHECK_TIME","INTERNAL_CHECKSUM","INTERNAL_DATA_FREE","INTERNAL_DATA_LENGTH","INTERNAL_DD_CHAR_LENGTH","INTERNAL_GET_COMMENT_OR_ERROR","INTERNAL_GET_ENABLED_ROLE_JSON","INTERNAL_GET_HOSTNAME","INTERNAL_GET_USERNAME","INTERNAL_GET_VIEW_WARNING_OR_ERROR","INTERNAL_INDEX_COLUMN_CARDINALITY","INTERNAL_INDEX_LENGTH","INTERNAL_IS_ENABLED_ROLE","INTERNAL_IS_MANDATORY_ROLE","INTERNAL_KEYS_DISABLED","INTERNAL_MAX_DATA_LENGTH","INTERNAL_TABLE_ROWS","INTERNAL_UPDATE_TIME","INTERVAL","IS","IS_FREE_LOCK","IS_IPV4","IS_IPV4_COMPAT","IS_IPV4_MAPPED","IS_IPV6","IS NOT","IS NOT NULL","IS NULL","IS_USED_LOCK","IS_UUID","ISNULL","JSON_ARRAY","JSON_ARRAY_APPEND","JSON_ARRAY_INSERT","JSON_ARRAYAGG","JSON_CONTAINS","JSON_CONTAINS_PATH","JSON_DEPTH","JSON_EXTRACT","JSON_INSERT","JSON_KEYS","JSON_LENGTH","JSON_MERGE","JSON_MERGE_PATCH","JSON_MERGE_PRESERVE","JSON_OBJECT","JSON_OBJECTAGG","JSON_OVERLAPS","JSON_PRETTY","JSON_QUOTE","JSON_REMOVE","JSON_REPLACE","JSON_SCHEMA_VALID","JSON_SCHEMA_VALIDATION_REPORT","JSON_SEARCH","JSON_SET","JSON_STORAGE_FREE","JSON_STORAGE_SIZE","JSON_TABLE","JSON_TYPE","JSON_UNQUOTE","JSON_VALID","JSON_VALUE","LAG","LAST_DAY","LAST_INSERT_ID","LAST_VALUE","LCASE","LEAD","LEAST","LEFT","LENGTH","LIKE","LINESTRING","LN","LOAD_FILE","LOCALTIME","LOCALTIMESTAMP","LOCATE","LOG","LOG10","LOG2","LOWER","LPAD","LTRIM","MAKE_SET","MAKEDATE","MAKETIME","MASTER_POS_WAIT","MATCH","MAX","MBRCONTAINS","MBRCOVEREDBY","MBRCOVERS","MBRDISJOINT","MBREQUALS","MBRINTERSECTS","MBROVERLAPS","MBRTOUCHES","MBRWITHIN","MD5","MEMBER OF","MICROSECOND","MID","MIN","MINUTE","MOD","MONTH","MONTHNAME","MULTILINESTRING","MULTIPOINT","MULTIPOLYGON","NAME_CONST","NOT","NOT IN","NOT LIKE","NOT REGEXP","NOW","NTH_VALUE","NTILE","NULLIF","OCT","OCTET_LENGTH","ORD","PERCENT_RANK","PERIOD_ADD","PERIOD_DIFF","PI","POINT","POLYGON","POSITION","POW","POWER","PS_CURRENT_THREAD_ID","PS_THREAD_ID","QUARTER","QUOTE","RADIANS","RAND","RANDOM_BYTES","RANK","REGEXP","REGEXP_INSTR","REGEXP_LIKE","REGEXP_REPLACE","REGEXP_SUBSTR","RELEASE_ALL_LOCKS","RELEASE_LOCK","REPEAT","REPLACE","REVERSE","RIGHT","RLIKE","ROLES_GRAPHML","ROUND","ROW_COUNT","ROW_NUMBER","RPAD","RTRIM","SCHEMA","SEC_TO_TIME","SECOND","SESSION_USER","SHA1","SHA2","SIGN","SIN","SLEEP","SOUNDEX","SOUNDS LIKE","SOURCE_POS_WAIT","SPACE","SQRT","ST_AREA","ST_ASBINARY","ST_ASGEOJSON","ST_ASTEXT","ST_BUFFER","ST_BUFFER_STRATEGY","ST_CENTROID","ST_COLLECT","ST_CONTAINS","ST_CONVEXHULL","ST_CROSSES","ST_DIFFERENCE","ST_DIMENSION","ST_DISJOINT","ST_DISTANCE","ST_DISTANCE_SPHERE","ST_ENDPOINT","ST_ENVELOPE","ST_EQUALS","ST_EXTERIORRING","ST_FRECHETDISTANCE","ST_GEOHASH","ST_GEOMCOLLFROMTEXT","ST_GEOMCOLLFROMWKB","ST_GEOMETRYN","ST_GEOMETRYTYPE","ST_GEOMFROMGEOJSON","ST_GEOMFROMTEXT","ST_GEOMFROMWKB","ST_HAUSDORFFDISTANCE","ST_INTERIORRINGN","ST_INTERSECTION","ST_INTERSECTS","ST_ISCLOSED","ST_ISEMPTY","ST_ISSIMPLE","ST_ISVALID","ST_LATFROMGEOHASH","ST_LATITUDE","ST_LENGTH","ST_LINEFROMTEXT","ST_LINEFROMWKB","ST_LINEINTERPOLATEPOINT","ST_LINEINTERPOLATEPOINTS","ST_LONGFROMGEOHASH","ST_LONGITUDE","ST_MAKEENVELOPE","ST_MLINEFROMTEXT","ST_MLINEFROMWKB","ST_MPOINTFROMTEXT","ST_MPOINTFROMWKB","ST_MPOLYFROMTEXT","ST_MPOLYFROMWKB","ST_NUMGEOMETRIES","ST_NUMINTERIORRING","ST_NUMPOINTS","ST_OVERLAPS","ST_POINTATDISTANCE","ST_POINTFROMGEOHASH","ST_POINTFROMTEXT","ST_POINTFROMWKB","ST_POINTN","ST_POLYFROMTEXT","ST_POLYFROMWKB","ST_SIMPLIFY","ST_SRID","ST_STARTPOINT","ST_SWAPXY","ST_SYMDIFFERENCE","ST_TOUCHES","ST_TRANSFORM","ST_UNION","ST_VALIDATE","ST_WITHIN","ST_X","ST_Y","STATEMENT_DIGEST","STATEMENT_DIGEST_TEXT","STD","STDDEV","STDDEV_POP","STDDEV_SAMP","STR_TO_DATE","STRCMP","SUBDATE","SUBSTR","SUBSTRING","SUBSTRING_INDEX","SUBTIME","SUM","SYSDATE","SYSTEM_USER","TAN","TIME","TIME_FORMAT","TIME_TO_SEC","TIMEDIFF","TIMESTAMP","TIMESTAMPADD","TIMESTAMPDIFF","TO_BASE64","TO_DAYS","TO_SECONDS","TRIM","TRUNCATE","UCASE","UNCOMPRESS","UNCOMPRESSED_LENGTH","UNHEX","UNIX_TIMESTAMP","UPDATEXML","UPPER","UTC_DATE","UTC_TIME","UTC_TIMESTAMP","UUID","UUID_SHORT","UUID_TO_BIN","VALIDATE_PASSWORD_STRENGTH","VALUES","VAR_POP","VAR_SAMP","VARIANCE","VERSION","WAIT_FOR_EXECUTED_GTID_SET","WAIT_UNTIL_SQL_THREAD_AFTER_GTIDS","WEEK","WEEKDAY","WEEKOFYEAR","WEIGHT_STRING","YEAR","YEARWEEK"],hU=d(["SELECT [ALL | DISTINCT | DISTINCTROW]"]),gU=d(["WITH [RECURSIVE]","FROM","WHERE","GROUP BY","HAVING","WINDOW","PARTITION BY","ORDER BY","LIMIT","OFFSET","INSERT [LOW_PRIORITY | DELAYED | HIGH_PRIORITY] [IGNORE] [INTO]","REPLACE [LOW_PRIORITY | DELAYED] [INTO]","VALUES","ON DUPLICATE KEY UPDATE","SET"]),eR=d(["CREATE [TEMPORARY] TABLE [IF NOT EXISTS]","CREATE [OR REPLACE] [SQL SECURITY DEFINER | SQL SECURITY INVOKER] VIEW [IF NOT EXISTS]","UPDATE [LOW_PRIORITY] [IGNORE]","DELETE [LOW_PRIORITY] [QUICK] [IGNORE] FROM","DROP [TEMPORARY] TABLE [IF EXISTS]","ALTER TABLE","ADD [COLUMN]","{CHANGE | MODIFY} [COLUMN]","DROP [COLUMN]","RENAME [TO | AS]","RENAME COLUMN","ALTER [COLUMN]","{SET | DROP} DEFAULT","TRUNCATE [TABLE]","ALTER DATABASE","ALTER EVENT","ALTER FUNCTION","ALTER INSTANCE","ALTER LOGFILE GROUP","ALTER PROCEDURE","ALTER RESOURCE GROUP","ALTER SERVER","ALTER TABLESPACE","ALTER USER","ALTER VIEW","ANALYZE TABLE","BINLOG","CACHE INDEX","CALL","CHANGE MASTER TO","CHANGE REPLICATION FILTER","CHANGE REPLICATION SOURCE TO","CHECK TABLE","CHECKSUM TABLE","CLONE","COMMIT","CREATE DATABASE","CREATE EVENT","CREATE FUNCTION","CREATE FUNCTION","CREATE INDEX","CREATE LOGFILE GROUP","CREATE PROCEDURE","CREATE RESOURCE GROUP","CREATE ROLE","CREATE SERVER","CREATE SPATIAL REFERENCE SYSTEM","CREATE TABLESPACE","CREATE TRIGGER","CREATE USER","DEALLOCATE PREPARE","DESCRIBE","DROP DATABASE","DROP EVENT","DROP FUNCTION","DROP FUNCTION","DROP INDEX","DROP LOGFILE GROUP","DROP PROCEDURE","DROP RESOURCE GROUP","DROP ROLE","DROP SERVER","DROP SPATIAL REFERENCE SYSTEM","DROP TABLESPACE","DROP TRIGGER","DROP USER","DROP VIEW","EXECUTE","EXPLAIN","FLUSH","GRANT","HANDLER","HELP","IMPORT TABLE","INSTALL COMPONENT","INSTALL PLUGIN","KILL","LOAD DATA","LOAD INDEX INTO CACHE","LOAD XML","LOCK INSTANCE FOR BACKUP","LOCK TABLES","MASTER_POS_WAIT","OPTIMIZE TABLE","PREPARE","PURGE BINARY LOGS","RELEASE SAVEPOINT","RENAME TABLE","RENAME USER","REPAIR TABLE","RESET","RESET MASTER","RESET PERSIST","RESET REPLICA","RESET SLAVE","RESTART","REVOKE","ROLLBACK","ROLLBACK TO SAVEPOINT","SAVEPOINT","SET CHARACTER SET","SET DEFAULT ROLE","SET NAMES","SET PASSWORD","SET RESOURCE GROUP","SET ROLE","SET TRANSACTION","SHOW","SHOW BINARY LOGS","SHOW BINLOG EVENTS","SHOW CHARACTER SET","SHOW COLLATION","SHOW COLUMNS","SHOW CREATE DATABASE","SHOW CREATE EVENT","SHOW CREATE FUNCTION","SHOW CREATE PROCEDURE","SHOW CREATE TABLE","SHOW CREATE TRIGGER","SHOW CREATE USER","SHOW CREATE VIEW","SHOW DATABASES","SHOW ENGINE","SHOW ENGINES","SHOW ERRORS","SHOW EVENTS","SHOW FUNCTION CODE","SHOW FUNCTION STATUS","SHOW GRANTS","SHOW INDEX","SHOW MASTER STATUS","SHOW OPEN TABLES","SHOW PLUGINS","SHOW PRIVILEGES","SHOW PROCEDURE CODE","SHOW PROCEDURE STATUS","SHOW PROCESSLIST","SHOW PROFILE","SHOW PROFILES","SHOW RELAYLOG EVENTS","SHOW REPLICA STATUS","SHOW REPLICAS","SHOW SLAVE","SHOW SLAVE HOSTS","SHOW STATUS","SHOW TABLE STATUS","SHOW TABLES","SHOW TRIGGERS","SHOW VARIABLES","SHOW WARNINGS","SHUTDOWN","SOURCE_POS_WAIT","START GROUP_REPLICATION","START REPLICA","START SLAVE","START TRANSACTION","STOP GROUP_REPLICATION","STOP REPLICA","STOP SLAVE","TABLE","UNINSTALL COMPONENT","UNINSTALL PLUGIN","UNLOCK INSTANCE","UNLOCK TABLES","USE","XA","ITERATE","LEAVE","LOOP","REPEAT","RETURN","WHILE"]),GU=d(["UNION [ALL | DISTINCT]"]),mU=d(["JOIN","{LEFT | RIGHT} [OUTER] JOIN","{INNER | CROSS} JOIN","NATURAL [INNER] JOIN","NATURAL {LEFT | RIGHT} [OUTER] JOIN","STRAIGHT_JOIN"]),HU=d(["ON {UPDATE | DELETE} [SET NULL]","CHARACTER SET","{ROWS | RANGE} BETWEEN","IDENTIFIED BY"]),yU={name:"mysql",tokenizerOptions:{reservedSelect:hU,reservedClauses:[...gU,...eR],reservedSetOperations:GU,reservedJoins:mU,reservedPhrases:HU,supportsXor:!0,reservedKeywords:dU,reservedDataTypes:MU,reservedFunctionNames:UU,stringTypes:['""-qq-bs',{quote:"''-qq-bs",prefixes:["N"]},{quote:"''-raw",prefixes:["B","X"],requirePrefix:!0}],identTypes:["``"],identChars:{first:"$",rest:"$",allowFirstCharNumber:!0},variableTypes:[{regex:"@@?[A-Za-z0-9_.$]+"},{quote:'""-qq-bs',prefixes:["@"],requirePrefix:!0},{quote:"''-qq-bs",prefixes:["@"],requirePrefix:!0},{quote:"``",prefixes:["@"],requirePrefix:!0}],paramTypes:{positional:!0},lineCommentTypes:["--","#"],operators:["%",":=","&","|","^","~","<<",">>","<=>","->","->>","&&","||","!","*.*"],postProcess:ls},formatOptions:{onelineClauses:eR}},bU=["ABORT","ABS","ACOS","ADVISOR","ARRAY_AGG","ARRAY_AGG","ARRAY_APPEND","ARRAY_AVG","ARRAY_BINARY_SEARCH","ARRAY_CONCAT","ARRAY_CONTAINS","ARRAY_COUNT","ARRAY_DISTINCT","ARRAY_EXCEPT","ARRAY_FLATTEN","ARRAY_IFNULL","ARRAY_INSERT","ARRAY_INTERSECT","ARRAY_LENGTH","ARRAY_MAX","ARRAY_MIN","ARRAY_MOVE","ARRAY_POSITION","ARRAY_PREPEND","ARRAY_PUT","ARRAY_RANGE","ARRAY_REMOVE","ARRAY_REPEAT","ARRAY_REPLACE","ARRAY_REVERSE","ARRAY_SORT","ARRAY_STAR","ARRAY_SUM","ARRAY_SYMDIFF","ARRAY_SYMDIFF1","ARRAY_SYMDIFFN","ARRAY_UNION","ASIN","ATAN","ATAN2","AVG","BASE64","BASE64_DECODE","BASE64_ENCODE","BITAND ","BITCLEAR ","BITNOT ","BITOR ","BITSET ","BITSHIFT ","BITTEST ","BITXOR ","CEIL","CLOCK_LOCAL","CLOCK_MILLIS","CLOCK_STR","CLOCK_TZ","CLOCK_UTC","COALESCE","CONCAT","CONCAT2","CONTAINS","CONTAINS_TOKEN","CONTAINS_TOKEN_LIKE","CONTAINS_TOKEN_REGEXP","COS","COUNT","COUNT","COUNTN","CUME_DIST","CURL","DATE_ADD_MILLIS","DATE_ADD_STR","DATE_DIFF_MILLIS","DATE_DIFF_STR","DATE_FORMAT_STR","DATE_PART_MILLIS","DATE_PART_STR","DATE_RANGE_MILLIS","DATE_RANGE_STR","DATE_TRUNC_MILLIS","DATE_TRUNC_STR","DECODE","DECODE_JSON","DEGREES","DENSE_RANK","DURATION_TO_STR","ENCODED_SIZE","ENCODE_JSON","EXP","FIRST_VALUE","FLOOR","GREATEST","HAS_TOKEN","IFINF","IFMISSING","IFMISSINGORNULL","IFNAN","IFNANORINF","IFNULL","INITCAP","ISARRAY","ISATOM","ISBITSET","ISBOOLEAN","ISNUMBER","ISOBJECT","ISSTRING","LAG","LAST_VALUE","LEAD","LEAST","LENGTH","LN","LOG","LOWER","LTRIM","MAX","MEAN","MEDIAN","META","MILLIS","MILLIS_TO_LOCAL","MILLIS_TO_STR","MILLIS_TO_TZ","MILLIS_TO_UTC","MILLIS_TO_ZONE_NAME","MIN","MISSINGIF","NANIF","NEGINFIF","NOW_LOCAL","NOW_MILLIS","NOW_STR","NOW_TZ","NOW_UTC","NTH_VALUE","NTILE","NULLIF","NVL","NVL2","OBJECT_ADD","OBJECT_CONCAT","OBJECT_INNER_PAIRS","OBJECT_INNER_VALUES","OBJECT_LENGTH","OBJECT_NAMES","OBJECT_PAIRS","OBJECT_PUT","OBJECT_REMOVE","OBJECT_RENAME","OBJECT_REPLACE","OBJECT_UNWRAP","OBJECT_VALUES","PAIRS","PERCENT_RANK","PI","POLY_LENGTH","POSINFIF","POSITION","POWER","RADIANS","RANDOM","RANK","RATIO_TO_REPORT","REGEXP_CONTAINS","REGEXP_LIKE","REGEXP_MATCHES","REGEXP_POSITION","REGEXP_REPLACE","REGEXP_SPLIT","REGEX_CONTAINS","REGEX_LIKE","REGEX_MATCHES","REGEX_POSITION","REGEX_REPLACE","REGEX_SPLIT","REPEAT","REPLACE","REVERSE","ROUND","ROW_NUMBER","RTRIM","SEARCH","SEARCH_META","SEARCH_SCORE","SIGN","SIN","SPLIT","SQRT","STDDEV","STDDEV_POP","STDDEV_SAMP","STR_TO_DURATION","STR_TO_MILLIS","STR_TO_TZ","STR_TO_UTC","STR_TO_ZONE_NAME","SUBSTR","SUFFIXES","SUM","TAN","TITLE","TOARRAY","TOATOM","TOBOOLEAN","TOKENS","TOKENS","TONUMBER","TOOBJECT","TOSTRING","TRIM","TRUNC","UPPER","UUID","VARIANCE","VARIANCE_POP","VARIANCE_SAMP","VAR_POP","VAR_SAMP","WEEKDAY_MILLIS","WEEKDAY_STR","CAST"],BU=["ADVISE","ALL","ALTER","ANALYZE","AND","ANY","ARRAY","AS","ASC","AT","BEGIN","BETWEEN","BINARY","BOOLEAN","BREAK","BUCKET","BUILD","BY","CALL","CASE","CAST","CLUSTER","COLLATE","COLLECTION","COMMIT","COMMITTED","CONNECT","CONTINUE","CORRELATED","COVER","CREATE","CURRENT","DATABASE","DATASET","DATASTORE","DECLARE","DECREMENT","DELETE","DERIVED","DESC","DESCRIBE","DISTINCT","DO","DROP","EACH","ELEMENT","ELSE","END","EVERY","EXCEPT","EXCLUDE","EXECUTE","EXISTS","EXPLAIN","FALSE","FETCH","FILTER","FIRST","FLATTEN","FLUSH","FOLLOWING","FOR","FORCE","FROM","FTS","FUNCTION","GOLANG","GRANT","GROUP","GROUPS","GSI","HASH","HAVING","IF","IGNORE","ILIKE","IN","INCLUDE","INCREMENT","INDEX","INFER","INLINE","INNER","INSERT","INTERSECT","INTO","IS","ISOLATION","JAVASCRIPT","JOIN","KEY","KEYS","KEYSPACE","KNOWN","LANGUAGE","LAST","LEFT","LET","LETTING","LEVEL","LIKE","LIMIT","LSM","MAP","MAPPING","MATCHED","MATERIALIZED","MERGE","MINUS","MISSING","NAMESPACE","NEST","NL","NO","NOT","NTH_VALUE","NULL","NULLS","NUMBER","OBJECT","OFFSET","ON","OPTION","OPTIONS","OR","ORDER","OTHERS","OUTER","OVER","PARSE","PARTITION","PASSWORD","PATH","POOL","PRECEDING","PREPARE","PRIMARY","PRIVATE","PRIVILEGE","PROBE","PROCEDURE","PUBLIC","RANGE","RAW","REALM","REDUCE","RENAME","RESPECT","RETURN","RETURNING","REVOKE","RIGHT","ROLE","ROLLBACK","ROW","ROWS","SATISFIES","SAVEPOINT","SCHEMA","SCOPE","SELECT","SELF","SEMI","SET","SHOW","SOME","START","STATISTICS","STRING","SYSTEM","THEN","TIES","TO","TRAN","TRANSACTION","TRIGGER","TRUE","TRUNCATE","UNBOUNDED","UNDER","UNION","UNIQUE","UNKNOWN","UNNEST","UNSET","UPDATE","UPSERT","USE","USER","USING","VALIDATE","VALUE","VALUED","VALUES","VIA","VIEW","WHEN","WHERE","WHILE","WINDOW","WITH","WITHIN","WORK","XOR"],FU=[],vU=d(["SELECT [ALL | DISTINCT]"]),YU=d(["WITH","FROM","WHERE","GROUP BY","HAVING","WINDOW","PARTITION BY","ORDER BY","LIMIT","OFFSET","INSERT INTO","VALUES","SET","MERGE INTO","WHEN [NOT] MATCHED THEN","UPDATE SET","INSERT","NEST","UNNEST","RETURNING"]),tR=d(["UPDATE","DELETE FROM","SET SCHEMA","ADVISE","ALTER INDEX","BEGIN TRANSACTION","BUILD INDEX","COMMIT TRANSACTION","CREATE COLLECTION","CREATE FUNCTION","CREATE INDEX","CREATE PRIMARY INDEX","CREATE SCOPE","DROP COLLECTION","DROP FUNCTION","DROP INDEX","DROP PRIMARY INDEX","DROP SCOPE","EXECUTE","EXECUTE FUNCTION","EXPLAIN","GRANT","INFER","PREPARE","REVOKE","ROLLBACK TRANSACTION","SAVEPOINT","SET TRANSACTION","UPDATE STATISTICS","UPSERT","LET","SET CURRENT SCHEMA","SHOW","USE [PRIMARY] KEYS"]),xU=d(["UNION [ALL]","EXCEPT [ALL]","INTERSECT [ALL]"]),VU=d(["JOIN","{LEFT | RIGHT} [OUTER] JOIN","INNER JOIN"]),wU=d(["{ROWS | RANGE | GROUPS} BETWEEN"]),WU={name:"n1ql",tokenizerOptions:{reservedSelect:vU,reservedClauses:[...YU,...tR],reservedSetOperations:xU,reservedJoins:VU,reservedPhrases:wU,supportsXor:!0,reservedKeywords:BU,reservedDataTypes:FU,reservedFunctionNames:bU,stringTypes:['""-bs',"''-bs"],identTypes:["``"],extraParens:["[]","{}"],paramTypes:{positional:!0,numbered:["$"],named:["$"]},lineCommentTypes:["#","--"],operators:["%","==",":","||"]},formatOptions:{onelineClauses:tR}},XU=["ADD","AGENT","AGGREGATE","ALL","ALTER","AND","ANY","ARROW","AS","ASC","AT","ATTRIBUTE","AUTHID","AVG","BEGIN","BETWEEN","BLOCK","BODY","BOTH","BOUND","BULK","BY","BYTE","CALL","CALLING","CASCADE","CASE","CHARSET","CHARSETFORM","CHARSETID","CHECK","CLOSE","CLUSTER","CLUSTERS","COLAUTH","COLLECT","COLUMNS","COMMENT","COMMIT","COMMITTED","COMPILED","COMPRESS","CONNECT","CONSTANT","CONSTRUCTOR","CONTEXT","CONVERT","COUNT","CRASH","CREATE","CURRENT","CURSOR","CUSTOMDATUM","DANGLING","DATA","DAY","DECLARE","DEFAULT","DEFINE","DELETE","DESC","DETERMINISTIC","DISTINCT","DROP","DURATION","ELEMENT","ELSE","ELSIF","EMPTY","END","ESCAPE","EXCEPT","EXCEPTION","EXCEPTIONS","EXCLUSIVE","EXECUTE","EXISTS","EXIT","EXTERNAL","FETCH","FINAL","FIXED","FOR","FORALL","FORCE","FORM","FROM","FUNCTION","GENERAL","GOTO","GRANT","GROUP","HASH","HAVING","HEAP","HIDDEN","HOUR","IDENTIFIED","IF","IMMEDIATE","IN","INCLUDING","INDEX","INDEXES","INDICATOR","INDICES","INFINITE","INSERT","INSTANTIABLE","INTERFACE","INTERSECT","INTERVAL","INTO","INVALIDATE","IS","ISOLATION","JAVA","LANGUAGE","LARGE","LEADING","LENGTH","LEVEL","LIBRARY","LIKE","LIKE2","LIKE4","LIKEC","LIMIT","LIMITED","LOCAL","LOCK","LOOP","MAP","MAX","MAXLEN","MEMBER","MERGE","MIN","MINUS","MINUTE","MOD","MODE","MODIFY","MONTH","MULTISET","NAME","NAN","NATIONAL","NATIVE","NEW","NOCOMPRESS","NOCOPY","NOT","NOWAIT","NULL","OBJECT","OCICOLL","OCIDATE","OCIDATETIME","OCIDURATION","OCIINTERVAL","OCILOBLOCATOR","OCINUMBER","OCIRAW","OCIREF","OCIREFCURSOR","OCIROWID","OCISTRING","OCITYPE","OF","ON","ONLY","OPAQUE","OPEN","OPERATOR","OPTION","OR","ORACLE","ORADATA","ORDER","OVERLAPS","ORGANIZATION","ORLANY","ORLVARY","OTHERS","OUT","OVERRIDING","PACKAGE","PARALLEL_ENABLE","PARAMETER","PARAMETERS","PARTITION","PASCAL","PIPE","PIPELINED","PRAGMA","PRIOR","PRIVATE","PROCEDURE","PUBLIC","RAISE","RANGE","READ","RECORD","REF","REFERENCE","REM","REMAINDER","RENAME","RESOURCE","RESULT","RETURN","RETURNING","REVERSE","REVOKE","ROLLBACK","ROW","SAMPLE","SAVE","SAVEPOINT","SB1","SB2","SB4","SECOND","SEGMENT","SELECT","SELF","SEPARATE","SEQUENCE","SERIALIZABLE","SET","SHARE","SHORT","SIZE","SIZE_T","SOME","SPARSE","SQL","SQLCODE","SQLDATA","SQLNAME","SQLSTATE","STANDARD","START","STATIC","STDDEV","STORED","STRING","STRUCT","STYLE","SUBMULTISET","SUBPARTITION","SUBSTITUTABLE","SUBTYPE","SUM","SYNONYM","TABAUTH","TABLE","TDO","THE","THEN","TIME","TIMEZONE_ABBR","TIMEZONE_HOUR","TIMEZONE_MINUTE","TIMEZONE_REGION","TO","TRAILING","TRANSAC","TRANSACTIONAL","TRUSTED","TYPE","UB1","UB2","UB4","UNDER","UNION","UNIQUE","UNSIGNED","UNTRUSTED","UPDATE","USE","USING","VALIST","VALUE","VALUES","VARIABLE","VARIANCE","VARRAY","VIEW","VIEWS","VOID","WHEN","WHERE","WHILE","WITH","WORK","WRAPPED","WRITE","YEAR","ZONE"],$U=["ARRAY","BFILE_BASE","BINARY","BLOB_BASE","CHAR VARYING","CHAR_BASE","CHAR","CHARACTER VARYING","CHARACTER","CLOB_BASE","DATE_BASE","DATE","DECIMAL","DOUBLE","FLOAT","INT","INTERVAL DAY","INTERVAL YEAR","LONG","NATIONAL CHAR VARYING","NATIONAL CHAR","NATIONAL CHARACTER VARYING","NATIONAL CHARACTER","NCHAR VARYING","NCHAR","NCHAR","NUMBER_BASE","NUMBER","NUMBERIC","NVARCHAR","PRECISION","RAW","TIMESTAMP","UROWID","VARCHAR","VARCHAR2"],KU=["ABS","ACOS","ASIN","ATAN","ATAN2","BITAND","CEIL","COS","COSH","EXP","FLOOR","LN","LOG","MOD","NANVL","POWER","REMAINDER","ROUND","SIGN","SIN","SINH","SQRT","TAN","TANH","TRUNC","WIDTH_BUCKET","CHR","CONCAT","INITCAP","LOWER","LPAD","LTRIM","NLS_INITCAP","NLS_LOWER","NLSSORT","NLS_UPPER","REGEXP_REPLACE","REGEXP_SUBSTR","REPLACE","RPAD","RTRIM","SOUNDEX","SUBSTR","TRANSLATE","TREAT","TRIM","UPPER","NLS_CHARSET_DECL_LEN","NLS_CHARSET_ID","NLS_CHARSET_NAME","ASCII","INSTR","LENGTH","REGEXP_INSTR","ADD_MONTHS","CURRENT_DATE","CURRENT_TIMESTAMP","DBTIMEZONE","EXTRACT","FROM_TZ","LAST_DAY","LOCALTIMESTAMP","MONTHS_BETWEEN","NEW_TIME","NEXT_DAY","NUMTODSINTERVAL","NUMTOYMINTERVAL","ROUND","SESSIONTIMEZONE","SYS_EXTRACT_UTC","SYSDATE","SYSTIMESTAMP","TO_CHAR","TO_TIMESTAMP","TO_TIMESTAMP_TZ","TO_DSINTERVAL","TO_YMINTERVAL","TRUNC","TZ_OFFSET","GREATEST","LEAST","ASCIISTR","BIN_TO_NUM","CAST","CHARTOROWID","COMPOSE","CONVERT","DECOMPOSE","HEXTORAW","NUMTODSINTERVAL","NUMTOYMINTERVAL","RAWTOHEX","RAWTONHEX","ROWIDTOCHAR","ROWIDTONCHAR","SCN_TO_TIMESTAMP","TIMESTAMP_TO_SCN","TO_BINARY_DOUBLE","TO_BINARY_FLOAT","TO_CHAR","TO_CLOB","TO_DATE","TO_DSINTERVAL","TO_LOB","TO_MULTI_BYTE","TO_NCHAR","TO_NCLOB","TO_NUMBER","TO_DSINTERVAL","TO_SINGLE_BYTE","TO_TIMESTAMP","TO_TIMESTAMP_TZ","TO_YMINTERVAL","TO_YMINTERVAL","TRANSLATE","UNISTR","BFILENAME","EMPTY_BLOB,","EMPTY_CLOB","CARDINALITY","COLLECT","POWERMULTISET","POWERMULTISET_BY_CARDINALITY","SET","SYS_CONNECT_BY_PATH","CLUSTER_ID","CLUSTER_PROBABILITY","CLUSTER_SET","FEATURE_ID","FEATURE_SET","FEATURE_VALUE","PREDICTION","PREDICTION_COST","PREDICTION_DETAILS","PREDICTION_PROBABILITY","PREDICTION_SET","APPENDCHILDXML","DELETEXML","DEPTH","EXTRACT","EXISTSNODE","EXTRACTVALUE","INSERTCHILDXML","INSERTXMLBEFORE","PATH","SYS_DBURIGEN","SYS_XMLAGG","SYS_XMLGEN","UPDATEXML","XMLAGG","XMLCDATA","XMLCOLATTVAL","XMLCOMMENT","XMLCONCAT","XMLFOREST","XMLPARSE","XMLPI","XMLQUERY","XMLROOT","XMLSEQUENCE","XMLSERIALIZE","XMLTABLE","XMLTRANSFORM","DECODE","DUMP","ORA_HASH","VSIZE","COALESCE","LNNVL","NULLIF","NVL","NVL2","SYS_CONTEXT","SYS_GUID","SYS_TYPEID","UID","USER","USERENV","AVG","COLLECT","CORR","CORR_S","CORR_K","COUNT","COVAR_POP","COVAR_SAMP","CUME_DIST","DENSE_RANK","FIRST","GROUP_ID","GROUPING","GROUPING_ID","LAST","MAX","MEDIAN","MIN","PERCENTILE_CONT","PERCENTILE_DISC","PERCENT_RANK","RANK","REGR_SLOPE","REGR_INTERCEPT","REGR_COUNT","REGR_R2","REGR_AVGX","REGR_AVGY","REGR_SXX","REGR_SYY","REGR_SXY","STATS_BINOMIAL_TEST","STATS_CROSSTAB","STATS_F_TEST","STATS_KS_TEST","STATS_MODE","STATS_MW_TEST","STATS_ONE_WAY_ANOVA","STATS_T_TEST_ONE","STATS_T_TEST_PAIRED","STATS_T_TEST_INDEP","STATS_T_TEST_INDEPU","STATS_WSR_TEST","STDDEV","STDDEV_POP","STDDEV_SAMP","SUM","VAR_POP","VAR_SAMP","VARIANCE","FIRST_VALUE","LAG","LAST_VALUE","LEAD","NTILE","RATIO_TO_REPORT","ROW_NUMBER","DEREF","MAKE_REF","REF","REFTOHEX","VALUE","CV","ITERATION_NUMBER","PRESENTNNV","PRESENTV","PREVIOUS"],JU=d(["SELECT [ALL | DISTINCT | UNIQUE]"]),kU=d(["WITH","FROM","WHERE","GROUP BY","HAVING","PARTITION BY","ORDER [SIBLINGS] BY","OFFSET","FETCH {FIRST | NEXT}","FOR UPDATE [OF]","INSERT [INTO | ALL INTO]","VALUES","SET","MERGE [INTO]","WHEN [NOT] MATCHED [THEN]","UPDATE SET","RETURNING"]),ER=d(["CREATE [GLOBAL TEMPORARY | PRIVATE TEMPORARY | SHARDED | DUPLICATED | IMMUTABLE BLOCKCHAIN | BLOCKCHAIN | IMMUTABLE] TABLE","CREATE [OR REPLACE] [NO FORCE | FORCE] [EDITIONING | EDITIONABLE | EDITIONABLE EDITIONING | NONEDITIONABLE] VIEW","CREATE MATERIALIZED VIEW","UPDATE [ONLY]","DELETE FROM [ONLY]","DROP TABLE","ALTER TABLE","ADD","DROP {COLUMN | UNUSED COLUMNS | COLUMNS CONTINUE}","MODIFY","RENAME TO","RENAME COLUMN","TRUNCATE TABLE","SET SCHEMA","BEGIN","CONNECT BY","DECLARE","EXCEPT","EXCEPTION","LOOP","START WITH"]),jU=d(["UNION [ALL]","EXCEPT","INTERSECT"]),qU=d(["JOIN","{LEFT | RIGHT | FULL} [OUTER] JOIN","{INNER | CROSS} JOIN","NATURAL [INNER] JOIN","NATURAL {LEFT | RIGHT | FULL} [OUTER] JOIN","{CROSS | OUTER} APPLY"]),QU=d(["ON {UPDATE | DELETE} [SET NULL]","ON COMMIT","{ROWS | RANGE} BETWEEN"]),ZU={name:"plsql",tokenizerOptions:{reservedSelect:JU,reservedClauses:[...kU,...ER],reservedSetOperations:jU,reservedJoins:qU,reservedPhrases:QU,supportsXor:!0,reservedKeywords:XU,reservedDataTypes:$U,reservedFunctionNames:KU,stringTypes:[{quote:"''-qq",prefixes:["N"]},{quote:"q''",prefixes:["N"]}],identTypes:['""-qq'],identChars:{rest:"$#"},variableTypes:[{regex:"&{1,2}[A-Za-z][A-Za-z0-9_$#]*"}],paramTypes:{numbered:[":"],named:[":"]},paramChars:{},operators:["**",":=","%","~=","^=",">>","<<","=>","@","||"],postProcess:zU},formatOptions:{alwaysDenseOperators:["@"],onelineClauses:ER}};function zU(e){let t=RE;return e.map(E=>wt.SET(E)&&wt.BY(t)?xe(ye({},E),{type:"RESERVED_KEYWORD"}):(FA(E.type)&&(t=E),E))}var eh=["ABS","ACOS","ACOSD","ACOSH","ASIN","ASIND","ASINH","ATAN","ATAN2","ATAN2D","ATAND","ATANH","CBRT","CEIL","CEILING","COS","COSD","COSH","COT","COTD","DEGREES","DIV","EXP","FACTORIAL","FLOOR","GCD","LCM","LN","LOG","LOG10","MIN_SCALE","MOD","PI","POWER","RADIANS","RANDOM","ROUND","SCALE","SETSEED","SIGN","SIN","SIND","SINH","SQRT","TAN","TAND","TANH","TRIM_SCALE","TRUNC","WIDTH_BUCKET","ABS","ASCII","BIT_LENGTH","BTRIM","CHARACTER_LENGTH","CHAR_LENGTH","CHR","CONCAT","CONCAT_WS","FORMAT","INITCAP","LEFT","LENGTH","LOWER","LPAD","LTRIM","MD5","NORMALIZE","OCTET_LENGTH","OVERLAY","PARSE_IDENT","PG_CLIENT_ENCODING","POSITION","QUOTE_IDENT","QUOTE_LITERAL","QUOTE_NULLABLE","REGEXP_MATCH","REGEXP_MATCHES","REGEXP_REPLACE","REGEXP_SPLIT_TO_ARRAY","REGEXP_SPLIT_TO_TABLE","REPEAT","REPLACE","REVERSE","RIGHT","RPAD","RTRIM","SPLIT_PART","SPRINTF","STARTS_WITH","STRING_AGG","STRING_TO_ARRAY","STRING_TO_TABLE","STRPOS","SUBSTR","SUBSTRING","TO_ASCII","TO_HEX","TRANSLATE","TRIM","UNISTR","UPPER","BIT_COUNT","BIT_LENGTH","BTRIM","CONVERT","CONVERT_FROM","CONVERT_TO","DECODE","ENCODE","GET_BIT","GET_BYTE","LENGTH","LTRIM","MD5","OCTET_LENGTH","OVERLAY","POSITION","RTRIM","SET_BIT","SET_BYTE","SHA224","SHA256","SHA384","SHA512","STRING_AGG","SUBSTR","SUBSTRING","TRIM","BIT_COUNT","BIT_LENGTH","GET_BIT","LENGTH","OCTET_LENGTH","OVERLAY","POSITION","SET_BIT","SUBSTRING","REGEXP_MATCH","REGEXP_MATCHES","REGEXP_REPLACE","REGEXP_SPLIT_TO_ARRAY","REGEXP_SPLIT_TO_TABLE","TO_CHAR","TO_DATE","TO_NUMBER","TO_TIMESTAMP","CLOCK_TIMESTAMP","CURRENT_DATE","CURRENT_TIME","CURRENT_TIMESTAMP","DATE_BIN","DATE_PART","DATE_TRUNC","EXTRACT","ISFINITE","JUSTIFY_DAYS","JUSTIFY_HOURS","JUSTIFY_INTERVAL","LOCALTIME","LOCALTIMESTAMP","MAKE_DATE","MAKE_INTERVAL","MAKE_TIME","MAKE_TIMESTAMP","MAKE_TIMESTAMPTZ","NOW","PG_SLEEP","PG_SLEEP_FOR","PG_SLEEP_UNTIL","STATEMENT_TIMESTAMP","TIMEOFDAY","TO_TIMESTAMP","TRANSACTION_TIMESTAMP","ENUM_FIRST","ENUM_LAST","ENUM_RANGE","AREA","BOUND_BOX","BOX","CENTER","CIRCLE","DIAGONAL","DIAMETER","HEIGHT","ISCLOSED","ISOPEN","LENGTH","LINE","LSEG","NPOINTS","PATH","PCLOSE","POINT","POLYGON","POPEN","RADIUS","SLOPE","WIDTH","ABBREV","BROADCAST","FAMILY","HOST","HOSTMASK","INET_MERGE","INET_SAME_FAMILY","MACADDR8_SET7BIT","MASKLEN","NETMASK","NETWORK","SET_MASKLEN","TEXT","TRUNC","ARRAY_TO_TSVECTOR","GET_CURRENT_TS_CONFIG","JSONB_TO_TSVECTOR","JSON_TO_TSVECTOR","LENGTH","NUMNODE","PHRASETO_TSQUERY","PLAINTO_TSQUERY","QUERYTREE","SETWEIGHT","STRIP","TO_TSQUERY","TO_TSVECTOR","TSQUERY_PHRASE","TSVECTOR_TO_ARRAY","TS_DEBUG","TS_DELETE","TS_FILTER","TS_HEADLINE","TS_LEXIZE","TS_PARSE","TS_RANK","TS_RANK_CD","TS_REWRITE","TS_STAT","TS_TOKEN_TYPE","WEBSEARCH_TO_TSQUERY","UUID","CURSOR_TO_XML","CURSOR_TO_XMLSCHEMA","DATABASE_TO_XML","DATABASE_TO_XMLSCHEMA","DATABASE_TO_XML_AND_XMLSCHEMA","NEXTVAL","QUERY_TO_XML","QUERY_TO_XMLSCHEMA","QUERY_TO_XML_AND_XMLSCHEMA","SCHEMA_TO_XML","SCHEMA_TO_XMLSCHEMA","SCHEMA_TO_XML_AND_XMLSCHEMA","STRING","TABLE_TO_XML","TABLE_TO_XMLSCHEMA","TABLE_TO_XML_AND_XMLSCHEMA","XMLAGG","XMLCOMMENT","XMLCONCAT","XMLELEMENT","XMLEXISTS","XMLFOREST","XMLPARSE","XMLPI","XMLROOT","XMLSERIALIZE","XMLTABLE","XML_IS_WELL_FORMED","XML_IS_WELL_FORMED_CONTENT","XML_IS_WELL_FORMED_DOCUMENT","XPATH","XPATH_EXISTS","ARRAY_TO_JSON","JSONB_AGG","JSONB_ARRAY_ELEMENTS","JSONB_ARRAY_ELEMENTS_TEXT","JSONB_ARRAY_LENGTH","JSONB_BUILD_ARRAY","JSONB_BUILD_OBJECT","JSONB_EACH","JSONB_EACH_TEXT","JSONB_EXTRACT_PATH","JSONB_EXTRACT_PATH_TEXT","JSONB_INSERT","JSONB_OBJECT","JSONB_OBJECT_AGG","JSONB_OBJECT_KEYS","JSONB_PATH_EXISTS","JSONB_PATH_EXISTS_TZ","JSONB_PATH_MATCH","JSONB_PATH_MATCH_TZ","JSONB_PATH_QUERY","JSONB_PATH_QUERY_ARRAY","JSONB_PATH_QUERY_ARRAY_TZ","JSONB_PATH_QUERY_FIRST","JSONB_PATH_QUERY_FIRST_TZ","JSONB_PATH_QUERY_TZ","JSONB_POPULATE_RECORD","JSONB_POPULATE_RECORDSET","JSONB_PRETTY","JSONB_SET","JSONB_SET_LAX","JSONB_STRIP_NULLS","JSONB_TO_RECORD","JSONB_TO_RECORDSET","JSONB_TYPEOF","JSON_AGG","JSON_ARRAY_ELEMENTS","JSON_ARRAY_ELEMENTS_TEXT","JSON_ARRAY_LENGTH","JSON_BUILD_ARRAY","JSON_BUILD_OBJECT","JSON_EACH","JSON_EACH_TEXT","JSON_EXTRACT_PATH","JSON_EXTRACT_PATH_TEXT","JSON_OBJECT","JSON_OBJECT_AGG","JSON_OBJECT_KEYS","JSON_POPULATE_RECORD","JSON_POPULATE_RECORDSET","JSON_STRIP_NULLS","JSON_TO_RECORD","JSON_TO_RECORDSET","JSON_TYPEOF","ROW_TO_JSON","TO_JSON","TO_JSONB","TO_TIMESTAMP","CURRVAL","LASTVAL","NEXTVAL","SETVAL","COALESCE","GREATEST","LEAST","NULLIF","ARRAY_AGG","ARRAY_APPEND","ARRAY_CAT","ARRAY_DIMS","ARRAY_FILL","ARRAY_LENGTH","ARRAY_LOWER","ARRAY_NDIMS","ARRAY_POSITION","ARRAY_POSITIONS","ARRAY_PREPEND","ARRAY_REMOVE","ARRAY_REPLACE","ARRAY_TO_STRING","ARRAY_UPPER","CARDINALITY","STRING_TO_ARRAY","TRIM_ARRAY","UNNEST","ISEMPTY","LOWER","LOWER_INC","LOWER_INF","MULTIRANGE","RANGE_MERGE","UPPER","UPPER_INC","UPPER_INF","ARRAY_AGG","AVG","BIT_AND","BIT_OR","BIT_XOR","BOOL_AND","BOOL_OR","COALESCE","CORR","COUNT","COVAR_POP","COVAR_SAMP","CUME_DIST","DENSE_RANK","EVERY","GROUPING","JSONB_AGG","JSONB_OBJECT_AGG","JSON_AGG","JSON_OBJECT_AGG","MAX","MIN","MODE","PERCENTILE_CONT","PERCENTILE_DISC","PERCENT_RANK","RANGE_AGG","RANGE_INTERSECT_AGG","RANK","REGR_AVGX","REGR_AVGY","REGR_COUNT","REGR_INTERCEPT","REGR_R2","REGR_SLOPE","REGR_SXX","REGR_SXY","REGR_SYY","STDDEV","STDDEV_POP","STDDEV_SAMP","STRING_AGG","SUM","TO_JSON","TO_JSONB","VARIANCE","VAR_POP","VAR_SAMP","XMLAGG","CUME_DIST","DENSE_RANK","FIRST_VALUE","LAG","LAST_VALUE","LEAD","NTH_VALUE","NTILE","PERCENT_RANK","RANK","ROW_NUMBER","GENERATE_SERIES","GENERATE_SUBSCRIPTS","ACLDEFAULT","ACLEXPLODE","COL_DESCRIPTION","CURRENT_CATALOG","CURRENT_DATABASE","CURRENT_QUERY","CURRENT_ROLE","CURRENT_SCHEMA","CURRENT_SCHEMAS","CURRENT_USER","FORMAT_TYPE","HAS_ANY_COLUMN_PRIVILEGE","HAS_COLUMN_PRIVILEGE","HAS_DATABASE_PRIVILEGE","HAS_FOREIGN_DATA_WRAPPER_PRIVILEGE","HAS_FUNCTION_PRIVILEGE","HAS_LANGUAGE_PRIVILEGE","HAS_SCHEMA_PRIVILEGE","HAS_SEQUENCE_PRIVILEGE","HAS_SERVER_PRIVILEGE","HAS_TABLESPACE_PRIVILEGE","HAS_TABLE_PRIVILEGE","HAS_TYPE_PRIVILEGE","INET_CLIENT_ADDR","INET_CLIENT_PORT","INET_SERVER_ADDR","INET_SERVER_PORT","MAKEACLITEM","OBJ_DESCRIPTION","PG_BACKEND_PID","PG_BLOCKING_PIDS","PG_COLLATION_IS_VISIBLE","PG_CONF_LOAD_TIME","PG_CONTROL_CHECKPOINT","PG_CONTROL_INIT","PG_CONTROL_SYSTEM","PG_CONVERSION_IS_VISIBLE","PG_CURRENT_LOGFILE","PG_CURRENT_SNAPSHOT","PG_CURRENT_XACT_ID","PG_CURRENT_XACT_ID_IF_ASSIGNED","PG_DESCRIBE_OBJECT","PG_FUNCTION_IS_VISIBLE","PG_GET_CATALOG_FOREIGN_KEYS","PG_GET_CONSTRAINTDEF","PG_GET_EXPR","PG_GET_FUNCTIONDEF","PG_GET_FUNCTION_ARGUMENTS","PG_GET_FUNCTION_IDENTITY_ARGUMENTS","PG_GET_FUNCTION_RESULT","PG_GET_INDEXDEF","PG_GET_KEYWORDS","PG_GET_OBJECT_ADDRESS","PG_GET_OWNED_SEQUENCE","PG_GET_RULEDEF","PG_GET_SERIAL_SEQUENCE","PG_GET_STATISTICSOBJDEF","PG_GET_TRIGGERDEF","PG_GET_USERBYID","PG_GET_VIEWDEF","PG_HAS_ROLE","PG_IDENTIFY_OBJECT","PG_IDENTIFY_OBJECT_AS_ADDRESS","PG_INDEXAM_HAS_PROPERTY","PG_INDEX_COLUMN_HAS_PROPERTY","PG_INDEX_HAS_PROPERTY","PG_IS_OTHER_TEMP_SCHEMA","PG_JIT_AVAILABLE","PG_LAST_COMMITTED_XACT","PG_LISTENING_CHANNELS","PG_MY_TEMP_SCHEMA","PG_NOTIFICATION_QUEUE_USAGE","PG_OPCLASS_IS_VISIBLE","PG_OPERATOR_IS_VISIBLE","PG_OPFAMILY_IS_VISIBLE","PG_OPTIONS_TO_TABLE","PG_POSTMASTER_START_TIME","PG_SAFE_SNAPSHOT_BLOCKING_PIDS","PG_SNAPSHOT_XIP","PG_SNAPSHOT_XMAX","PG_SNAPSHOT_XMIN","PG_STATISTICS_OBJ_IS_VISIBLE","PG_TABLESPACE_DATABASES","PG_TABLESPACE_LOCATION","PG_TABLE_IS_VISIBLE","PG_TRIGGER_DEPTH","PG_TS_CONFIG_IS_VISIBLE","PG_TS_DICT_IS_VISIBLE","PG_TS_PARSER_IS_VISIBLE","PG_TS_TEMPLATE_IS_VISIBLE","PG_TYPEOF","PG_TYPE_IS_VISIBLE","PG_VISIBLE_IN_SNAPSHOT","PG_XACT_COMMIT_TIMESTAMP","PG_XACT_COMMIT_TIMESTAMP_ORIGIN","PG_XACT_STATUS","PQSERVERVERSION","ROW_SECURITY_ACTIVE","SESSION_USER","SHOBJ_DESCRIPTION","TO_REGCLASS","TO_REGCOLLATION","TO_REGNAMESPACE","TO_REGOPER","TO_REGOPERATOR","TO_REGPROC","TO_REGPROCEDURE","TO_REGROLE","TO_REGTYPE","TXID_CURRENT","TXID_CURRENT_IF_ASSIGNED","TXID_CURRENT_SNAPSHOT","TXID_SNAPSHOT_XIP","TXID_SNAPSHOT_XMAX","TXID_SNAPSHOT_XMIN","TXID_STATUS","TXID_VISIBLE_IN_SNAPSHOT","USER","VERSION","BRIN_DESUMMARIZE_RANGE","BRIN_SUMMARIZE_NEW_VALUES","BRIN_SUMMARIZE_RANGE","CONVERT_FROM","CURRENT_SETTING","GIN_CLEAN_PENDING_LIST","PG_ADVISORY_LOCK","PG_ADVISORY_LOCK_SHARED","PG_ADVISORY_UNLOCK","PG_ADVISORY_UNLOCK_ALL","PG_ADVISORY_UNLOCK_SHARED","PG_ADVISORY_XACT_LOCK","PG_ADVISORY_XACT_LOCK_SHARED","PG_BACKUP_START_TIME","PG_CANCEL_BACKEND","PG_COLLATION_ACTUAL_VERSION","PG_COLUMN_COMPRESSION","PG_COLUMN_SIZE","PG_COPY_LOGICAL_REPLICATION_SLOT","PG_COPY_PHYSICAL_REPLICATION_SLOT","PG_CREATE_LOGICAL_REPLICATION_SLOT","PG_CREATE_PHYSICAL_REPLICATION_SLOT","PG_CREATE_RESTORE_POINT","PG_CURRENT_WAL_FLUSH_LSN","PG_CURRENT_WAL_INSERT_LSN","PG_CURRENT_WAL_LSN","PG_DATABASE_SIZE","PG_DROP_REPLICATION_SLOT","PG_EXPORT_SNAPSHOT","PG_FILENODE_RELATION","PG_GET_WAL_REPLAY_PAUSE_STATE","PG_IMPORT_SYSTEM_COLLATIONS","PG_INDEXES_SIZE","PG_IS_IN_BACKUP","PG_IS_IN_RECOVERY","PG_IS_WAL_REPLAY_PAUSED","PG_LAST_WAL_RECEIVE_LSN","PG_LAST_WAL_REPLAY_LSN","PG_LAST_XACT_REPLAY_TIMESTAMP","PG_LOGICAL_EMIT_MESSAGE","PG_LOGICAL_SLOT_GET_BINARY_CHANGES","PG_LOGICAL_SLOT_GET_CHANGES","PG_LOGICAL_SLOT_PEEK_BINARY_CHANGES","PG_LOGICAL_SLOT_PEEK_CHANGES","PG_LOG_BACKEND_MEMORY_CONTEXTS","PG_LS_ARCHIVE_STATUSDIR","PG_LS_DIR","PG_LS_LOGDIR","PG_LS_TMPDIR","PG_LS_WALDIR","PG_PARTITION_ANCESTORS","PG_PARTITION_ROOT","PG_PARTITION_TREE","PG_PROMOTE","PG_READ_BINARY_FILE","PG_READ_FILE","PG_RELATION_FILENODE","PG_RELATION_FILEPATH","PG_RELATION_SIZE","PG_RELOAD_CONF","PG_REPLICATION_ORIGIN_ADVANCE","PG_REPLICATION_ORIGIN_CREATE","PG_REPLICATION_ORIGIN_DROP","PG_REPLICATION_ORIGIN_OID","PG_REPLICATION_ORIGIN_PROGRESS","PG_REPLICATION_ORIGIN_SESSION_IS_SETUP","PG_REPLICATION_ORIGIN_SESSION_PROGRESS","PG_REPLICATION_ORIGIN_SESSION_RESET","PG_REPLICATION_ORIGIN_SESSION_SETUP","PG_REPLICATION_ORIGIN_XACT_RESET","PG_REPLICATION_ORIGIN_XACT_SETUP","PG_REPLICATION_SLOT_ADVANCE","PG_ROTATE_LOGFILE","PG_SIZE_BYTES","PG_SIZE_PRETTY","PG_START_BACKUP","PG_STAT_FILE","PG_STOP_BACKUP","PG_SWITCH_WAL","PG_TABLESPACE_SIZE","PG_TABLE_SIZE","PG_TERMINATE_BACKEND","PG_TOTAL_RELATION_SIZE","PG_TRY_ADVISORY_LOCK","PG_TRY_ADVISORY_LOCK_SHARED","PG_TRY_ADVISORY_XACT_LOCK","PG_TRY_ADVISORY_XACT_LOCK_SHARED","PG_WALFILE_NAME","PG_WALFILE_NAME_OFFSET","PG_WAL_LSN_DIFF","PG_WAL_REPLAY_PAUSE","PG_WAL_REPLAY_RESUME","SET_CONFIG","SUPPRESS_REDUNDANT_UPDATES_TRIGGER","TSVECTOR_UPDATE_TRIGGER","TSVECTOR_UPDATE_TRIGGER_COLUMN","PG_EVENT_TRIGGER_DDL_COMMANDS","PG_EVENT_TRIGGER_DROPPED_OBJECTS","PG_EVENT_TRIGGER_TABLE_REWRITE_OID","PG_EVENT_TRIGGER_TABLE_REWRITE_REASON","PG_GET_OBJECT_ADDRESS","PG_MCV_LIST_ITEMS","CAST"],th=["ABORT","ABSOLUTE","ACCESS","ACTION","ADD","ADMIN","AFTER","AGGREGATE","ALL","ALSO","ALTER","ALWAYS","ANALYSE","ANALYZE","AND","ANY","AS","ASC","ASENSITIVE","ASSERTION","ASSIGNMENT","ASYMMETRIC","AT","ATOMIC","ATTACH","ATTRIBUTE","AUTHORIZATION","BACKWARD","BEFORE","BEGIN","BETWEEN","BINARY","BOTH","BREADTH","BY","CACHE","CALL","CALLED","CASCADE","CASCADED","CASE","CAST","CATALOG","CHAIN","CHARACTERISTICS","CHECK","CHECKPOINT","CLASS","CLOSE","CLUSTER","COALESCE","COLLATE","COLLATION","COLUMN","COLUMNS","COMMENT","COMMENTS","COMMIT","COMMITTED","COMPRESSION","CONCURRENTLY","CONFIGURATION","CONFLICT","CONNECTION","CONSTRAINT","CONSTRAINTS","CONTENT","CONTINUE","CONVERSION","COPY","COST","CREATE","CROSS","CSV","CUBE","CURRENT","CURRENT_CATALOG","CURRENT_DATE","CURRENT_ROLE","CURRENT_SCHEMA","CURRENT_TIME","CURRENT_TIMESTAMP","CURRENT_USER","CURSOR","CYCLE","DATA","DATABASE","DAY","DEALLOCATE","DEC","DECLARE","DEFAULT","DEFAULTS","DEFERRABLE","DEFERRED","DEFINER","DELETE","DELIMITER","DELIMITERS","DEPENDS","DEPTH","DESC","DETACH","DICTIONARY","DISABLE","DISCARD","DISTINCT","DO","DOCUMENT","DOMAIN","DROP","EACH","ELSE","ENABLE","ENCODING","ENCRYPTED","END","ENUM","ESCAPE","EVENT","EXCEPT","EXCLUDE","EXCLUDING","EXCLUSIVE","EXECUTE","EXISTS","EXPLAIN","EXPRESSION","EXTENSION","EXTERNAL","EXTRACT","FALSE","FAMILY","FETCH","FILTER","FINALIZE","FIRST","FOLLOWING","FOR","FORCE","FOREIGN","FORWARD","FREEZE","FROM","FULL","FUNCTION","FUNCTIONS","GENERATED","GLOBAL","GRANT","GRANTED","GREATEST","GROUP","GROUPING","GROUPS","HANDLER","HAVING","HEADER","HOLD","HOUR","IDENTITY","IF","ILIKE","IMMEDIATE","IMMUTABLE","IMPLICIT","IMPORT","IN","INCLUDE","INCLUDING","INCREMENT","INDEX","INDEXES","INHERIT","INHERITS","INITIALLY","INLINE","INNER","INOUT","INPUT","INSENSITIVE","INSERT","INSTEAD","INTERSECT","INTO","INVOKER","IS","ISNULL","ISOLATION","JOIN","KEY","LANGUAGE","LARGE","LAST","LATERAL","LEADING","LEAKPROOF","LEAST","LEFT","LEVEL","LIKE","LIMIT","LISTEN","LOAD","LOCAL","LOCALTIME","LOCALTIMESTAMP","LOCK","LOCKED","LOGGED","MAPPING","MATCH","MATERIALIZED","MAXVALUE","METHOD","MINUTE","MINVALUE","MODE","MONTH","MOVE","NATIONAL","NATURAL","NCHAR","NEW","NEXT","NFC","NFD","NFKC","NFKD","NO","NONE","NORMALIZE","NORMALIZED","NOT","NOTHING","NOTIFY","NOTNULL","NOWAIT","NULL","NULLIF","NULLS","OBJECT","OF","OFF","OFFSET","OIDS","OLD","ON","ONLY","OPERATOR","OPTION","OPTIONS","OR","ORDER","ORDINALITY","OTHERS","OUT","OUTER","OVER","OVERLAPS","OVERLAY","OVERRIDING","OWNED","OWNER","PARALLEL","PARSER","PARTIAL","PARTITION","PASSING","PASSWORD","PLACING","PLANS","POLICY","POSITION","PRECEDING","PREPARE","PREPARED","PRESERVE","PRIMARY","PRIOR","PRIVILEGES","PROCEDURAL","PROCEDURE","PROCEDURES","PROGRAM","PUBLICATION","QUOTE","RANGE","READ","REASSIGN","RECHECK","RECURSIVE","REF","REFERENCES","REFERENCING","REFRESH","REINDEX","RELATIVE","RENAME","REPEATABLE","REPLACE","REPLICA","RESET","RESTART","RESTRICT","RETURN","RETURNING","RETURNS","REVOKE","RIGHT","ROLE","ROLLBACK","ROLLUP","ROUTINE","ROUTINES","ROW","ROWS","RULE","SAVEPOINT","SCHEMA","SCHEMAS","SCROLL","SEARCH","SECOND","SECURITY","SELECT","SEQUENCE","SEQUENCES","SERIALIZABLE","SERVER","SESSION","SESSION_USER","SET","SETOF","SETS","SHARE","SHOW","SIMILAR","SIMPLE","SKIP","SNAPSHOT","SOME","SQL","STABLE","STANDALONE","START","STATEMENT","STATISTICS","STDIN","STDOUT","STORAGE","STORED","STRICT","STRIP","SUBSCRIPTION","SUBSTRING","SUPPORT","SYMMETRIC","SYSID","SYSTEM","TABLE","TABLES","TABLESAMPLE","TABLESPACE","TEMP","TEMPLATE","TEMPORARY","THEN","TIES","TO","TRAILING","TRANSACTION","TRANSFORM","TREAT","TRIGGER","TRIM","TRUE","TRUNCATE","TRUSTED","UESCAPE","UNBOUNDED","UNCOMMITTED","UNENCRYPTED","UNION","UNIQUE","UNKNOWN","UNLISTEN","UNLOGGED","UNTIL","UPDATE","USER","USING","VACUUM","VALID","VALIDATE","VALIDATOR","VALUE","VALUES","VARIADIC","VERBOSE","VERSION","VIEW","VIEWS","VOLATILE","WHEN","WHERE","WHITESPACE","WINDOW","WITH","WITHIN","WITHOUT","WORK","WRAPPER","WRITE","XMLATTRIBUTES","XMLCONCAT","XMLELEMENT","XMLEXISTS","XMLFOREST","XMLNAMESPACES","XMLPARSE","XMLPI","XMLROOT","XMLSERIALIZE","XMLTABLE","YEAR","YES"],Eh=["ARRAY","BIGINT","BIT","BIT VARYING","BOOL","BOOLEAN","CHAR","CHARACTER","CHARACTER VARYING","DECIMAL","DOUBLE","ENUM","FLOAT","INT","INTEGER","INTERVAL","NUMERIC","PRECISION","REAL","SMALLINT","TEXT","TIME","TIMESTAMP","TIMESTAMPTZ","VARCHAR","XML","ZONE"],Th=d(["SELECT [ALL | DISTINCT]"]),rh=d(["WITH [RECURSIVE]","FROM","WHERE","GROUP BY [ALL | DISTINCT]","HAVING","WINDOW","PARTITION BY","ORDER BY","LIMIT","OFFSET","FETCH {FIRST | NEXT}","FOR {UPDATE | NO KEY UPDATE | SHARE | KEY SHARE} [OF]","INSERT INTO","VALUES","SET","RETURNING"]),TR=d(["CREATE [GLOBAL | LOCAL] [TEMPORARY | TEMP | UNLOGGED] TABLE [IF NOT EXISTS]","CREATE [OR REPLACE] [TEMP | TEMPORARY] [RECURSIVE] VIEW","CREATE [MATERIALIZED] VIEW [IF NOT EXISTS]","UPDATE [ONLY]","WHERE CURRENT OF","ON CONFLICT","DELETE FROM [ONLY]","DROP TABLE [IF EXISTS]","ALTER TABLE [IF EXISTS] [ONLY]","ALTER TABLE ALL IN TABLESPACE","RENAME [COLUMN]","RENAME TO","ADD [COLUMN] [IF NOT EXISTS]","DROP [COLUMN] [IF EXISTS]","ALTER [COLUMN]","SET DATA TYPE","{SET | DROP} DEFAULT","{SET | DROP} NOT NULL","TRUNCATE [TABLE] [ONLY]","SET SCHEMA","AFTER","ABORT","ALTER AGGREGATE","ALTER COLLATION","ALTER CONVERSION","ALTER DATABASE","ALTER DEFAULT PRIVILEGES","ALTER DOMAIN","ALTER EVENT TRIGGER","ALTER EXTENSION","ALTER FOREIGN DATA WRAPPER","ALTER FOREIGN TABLE","ALTER FUNCTION","ALTER GROUP","ALTER INDEX","ALTER LANGUAGE","ALTER LARGE OBJECT","ALTER MATERIALIZED VIEW","ALTER OPERATOR","ALTER OPERATOR CLASS","ALTER OPERATOR FAMILY","ALTER POLICY","ALTER PROCEDURE","ALTER PUBLICATION","ALTER ROLE","ALTER ROUTINE","ALTER RULE","ALTER SCHEMA","ALTER SEQUENCE","ALTER SERVER","ALTER STATISTICS","ALTER SUBSCRIPTION","ALTER SYSTEM","ALTER TABLESPACE","ALTER TEXT SEARCH CONFIGURATION","ALTER TEXT SEARCH DICTIONARY","ALTER TEXT SEARCH PARSER","ALTER TEXT SEARCH TEMPLATE","ALTER TRIGGER","ALTER TYPE","ALTER USER","ALTER USER MAPPING","ALTER VIEW","ANALYZE","BEGIN","CALL","CHECKPOINT","CLOSE","CLUSTER","COMMIT","COMMIT PREPARED","COPY","CREATE ACCESS METHOD","CREATE AGGREGATE","CREATE CAST","CREATE COLLATION","CREATE CONVERSION","CREATE DATABASE","CREATE DOMAIN","CREATE EVENT TRIGGER","CREATE EXTENSION","CREATE FOREIGN DATA WRAPPER","CREATE FOREIGN TABLE","CREATE FUNCTION","CREATE GROUP","CREATE INDEX","CREATE LANGUAGE","CREATE OPERATOR","CREATE OPERATOR CLASS","CREATE OPERATOR FAMILY","CREATE POLICY","CREATE PROCEDURE","CREATE PUBLICATION","CREATE ROLE","CREATE RULE","CREATE SCHEMA","CREATE SEQUENCE","CREATE SERVER","CREATE STATISTICS","CREATE SUBSCRIPTION","CREATE TABLESPACE","CREATE TEXT SEARCH CONFIGURATION","CREATE TEXT SEARCH DICTIONARY","CREATE TEXT SEARCH PARSER","CREATE TEXT SEARCH TEMPLATE","CREATE TRANSFORM","CREATE TRIGGER","CREATE TYPE","CREATE USER","CREATE USER MAPPING","DEALLOCATE","DECLARE","DISCARD","DROP ACCESS METHOD","DROP AGGREGATE","DROP CAST","DROP COLLATION","DROP CONVERSION","DROP DATABASE","DROP DOMAIN","DROP EVENT TRIGGER","DROP EXTENSION","DROP FOREIGN DATA WRAPPER","DROP FOREIGN TABLE","DROP FUNCTION","DROP GROUP","DROP INDEX","DROP LANGUAGE","DROP MATERIALIZED VIEW","DROP OPERATOR","DROP OPERATOR CLASS","DROP OPERATOR FAMILY","DROP OWNED","DROP POLICY","DROP PROCEDURE","DROP PUBLICATION","DROP ROLE","DROP ROUTINE","DROP RULE","DROP SCHEMA","DROP SEQUENCE","DROP SERVER","DROP STATISTICS","DROP SUBSCRIPTION","DROP TABLESPACE","DROP TEXT SEARCH CONFIGURATION","DROP TEXT SEARCH DICTIONARY","DROP TEXT SEARCH PARSER","DROP TEXT SEARCH TEMPLATE","DROP TRANSFORM","DROP TRIGGER","DROP TYPE","DROP USER","DROP USER MAPPING","DROP VIEW","EXECUTE","EXPLAIN","FETCH","GRANT","IMPORT FOREIGN SCHEMA","LISTEN","LOAD","LOCK","MOVE","NOTIFY","PREPARE","PREPARE TRANSACTION","REASSIGN OWNED","REFRESH MATERIALIZED VIEW","REINDEX","RELEASE SAVEPOINT","RESET","REVOKE","ROLLBACK","ROLLBACK PREPARED","ROLLBACK TO SAVEPOINT","SAVEPOINT","SECURITY LABEL","SELECT INTO","SET CONSTRAINTS","SET ROLE","SET SESSION AUTHORIZATION","SET TRANSACTION","SHOW","START TRANSACTION","UNLISTEN","VACUUM"]),sh=d(["UNION [ALL | DISTINCT]","EXCEPT [ALL | DISTINCT]","INTERSECT [ALL | DISTINCT]"]),nh=d(["JOIN","{LEFT | RIGHT | FULL} [OUTER] JOIN","{INNER | CROSS} JOIN","NATURAL [INNER] JOIN","NATURAL {LEFT | RIGHT | FULL} [OUTER] JOIN"]),Rh=d(["ON {UPDATE | DELETE} [SET NULL | SET DEFAULT]","{ROWS | RANGE | GROUPS} BETWEEN","[TIMESTAMP | TIME] {WITH | WITHOUT} TIME ZONE","IS [NOT] DISTINCT FROM"]),oh={name:"postgresql",tokenizerOptions:{reservedSelect:Th,reservedClauses:[...rh,...TR],reservedSetOperations:sh,reservedJoins:nh,reservedPhrases:Rh,reservedKeywords:th,reservedDataTypes:Eh,reservedFunctionNames:eh,nestedBlockComments:!0,extraParens:["[]"],stringTypes:["$$",{quote:"''-qq",prefixes:["U&"]},{quote:"''-qq-bs",prefixes:["E"],requirePrefix:!0},{quote:"''-raw",prefixes:["B","X"],requirePrefix:!0}],identTypes:[{quote:'""-qq',prefixes:["U&"]}],identChars:{rest:"$"},paramTypes:{numbered:["$"]},operators:["%","^","|/","||/","@",":=","&","|","#","~","<<",">>","~>~","~<~","~>=~","~<=~","@-@","@@","##","<->","&&","&<","&>","<<|","&<|","|>>","|&>","<^","^>","?#","?-","?|","?-|","?||","@>","<@","~=","?","@?","?&","->","->>","#>","#>>","#-","=>",">>=","<<=","~~","~~*","!~~","!~~*","~","~*","!~","!~*","-|-","||","@@@","!!","<%","%>","<<%","%>>","<<->","<->>","<<<->","<->>>","::",":"]},formatOptions:{alwaysDenseOperators:["::",":"],onelineClauses:TR}},Ah=["ANY_VALUE","APPROXIMATE PERCENTILE_DISC","AVG","COUNT","LISTAGG","MAX","MEDIAN","MIN","PERCENTILE_CONT","STDDEV_SAMP","STDDEV_POP","SUM","VAR_SAMP","VAR_POP","array","array_concat","array_flatten","get_array_length","split_to_array","subarray","BIT_AND","BIT_OR","BOOL_AND","BOOL_OR","COALESCE","DECODE","GREATEST","LEAST","NVL","NVL2","NULLIF","ADD_MONTHS","AT TIME ZONE","CONVERT_TIMEZONE","CURRENT_DATE","CURRENT_TIME","CURRENT_TIMESTAMP","DATE_CMP","DATE_CMP_TIMESTAMP","DATE_CMP_TIMESTAMPTZ","DATE_PART_YEAR","DATEADD","DATEDIFF","DATE_PART","DATE_TRUNC","EXTRACT","GETDATE","INTERVAL_CMP","LAST_DAY","MONTHS_BETWEEN","NEXT_DAY","SYSDATE","TIMEOFDAY","TIMESTAMP_CMP","TIMESTAMP_CMP_DATE","TIMESTAMP_CMP_TIMESTAMPTZ","TIMESTAMPTZ_CMP","TIMESTAMPTZ_CMP_DATE","TIMESTAMPTZ_CMP_TIMESTAMP","TIMEZONE","TO_TIMESTAMP","TRUNC","AddBBox","DropBBox","GeometryType","ST_AddPoint","ST_Angle","ST_Area","ST_AsBinary","ST_AsEWKB","ST_AsEWKT","ST_AsGeoJSON","ST_AsText","ST_Azimuth","ST_Boundary","ST_Collect","ST_Contains","ST_ContainsProperly","ST_ConvexHull","ST_CoveredBy","ST_Covers","ST_Crosses","ST_Dimension","ST_Disjoint","ST_Distance","ST_DistanceSphere","ST_DWithin","ST_EndPoint","ST_Envelope","ST_Equals","ST_ExteriorRing","ST_Force2D","ST_Force3D","ST_Force3DM","ST_Force3DZ","ST_Force4D","ST_GeometryN","ST_GeometryType","ST_GeomFromEWKB","ST_GeomFromEWKT","ST_GeomFromText","ST_GeomFromWKB","ST_InteriorRingN","ST_Intersects","ST_IsPolygonCCW","ST_IsPolygonCW","ST_IsClosed","ST_IsCollection","ST_IsEmpty","ST_IsSimple","ST_IsValid","ST_Length","ST_LengthSphere","ST_Length2D","ST_LineFromMultiPoint","ST_LineInterpolatePoint","ST_M","ST_MakeEnvelope","ST_MakeLine","ST_MakePoint","ST_MakePolygon","ST_MemSize","ST_MMax","ST_MMin","ST_Multi","ST_NDims","ST_NPoints","ST_NRings","ST_NumGeometries","ST_NumInteriorRings","ST_NumPoints","ST_Perimeter","ST_Perimeter2D","ST_Point","ST_PointN","ST_Points","ST_Polygon","ST_RemovePoint","ST_Reverse","ST_SetPoint","ST_SetSRID","ST_Simplify","ST_SRID","ST_StartPoint","ST_Touches","ST_Within","ST_X","ST_XMax","ST_XMin","ST_Y","ST_YMax","ST_YMin","ST_Z","ST_ZMax","ST_ZMin","SupportsBBox","CHECKSUM","FUNC_SHA1","FNV_HASH","MD5","SHA","SHA1","SHA2","HLL","HLL_CREATE_SKETCH","HLL_CARDINALITY","HLL_COMBINE","IS_VALID_JSON","IS_VALID_JSON_ARRAY","JSON_ARRAY_LENGTH","JSON_EXTRACT_ARRAY_ELEMENT_TEXT","JSON_EXTRACT_PATH_TEXT","JSON_PARSE","JSON_SERIALIZE","ABS","ACOS","ASIN","ATAN","ATAN2","CBRT","CEILING","CEIL","COS","COT","DEGREES","DEXP","DLOG1","DLOG10","EXP","FLOOR","LN","LOG","MOD","PI","POWER","RADIANS","RANDOM","ROUND","SIN","SIGN","SQRT","TAN","TO_HEX","TRUNC","EXPLAIN_MODEL","ASCII","BPCHARCMP","BTRIM","BTTEXT_PATTERN_CMP","CHAR_LENGTH","CHARACTER_LENGTH","CHARINDEX","CHR","COLLATE","CONCAT","CRC32","DIFFERENCE","INITCAP","LEFT","RIGHT","LEN","LENGTH","LOWER","LPAD","RPAD","LTRIM","OCTETINDEX","OCTET_LENGTH","POSITION","QUOTE_IDENT","QUOTE_LITERAL","REGEXP_COUNT","REGEXP_INSTR","REGEXP_REPLACE","REGEXP_SUBSTR","REPEAT","REPLACE","REPLICATE","REVERSE","RTRIM","SOUNDEX","SPLIT_PART","STRPOS","STRTOL","SUBSTRING","TEXTLEN","TRANSLATE","TRIM","UPPER","decimal_precision","decimal_scale","is_array","is_bigint","is_boolean","is_char","is_decimal","is_float","is_integer","is_object","is_scalar","is_smallint","is_varchar","json_typeof","AVG","COUNT","CUME_DIST","DENSE_RANK","FIRST_VALUE","LAST_VALUE","LAG","LEAD","LISTAGG","MAX","MEDIAN","MIN","NTH_VALUE","NTILE","PERCENT_RANK","PERCENTILE_CONT","PERCENTILE_DISC","RANK","RATIO_TO_REPORT","ROW_NUMBER","STDDEV_SAMP","STDDEV_POP","SUM","VAR_SAMP","VAR_POP","CAST","CONVERT","TO_CHAR","TO_DATE","TO_NUMBER","TEXT_TO_INT_ALT","TEXT_TO_NUMERIC_ALT","CHANGE_QUERY_PRIORITY","CHANGE_SESSION_PRIORITY","CHANGE_USER_PRIORITY","CURRENT_SETTING","PG_CANCEL_BACKEND","PG_TERMINATE_BACKEND","REBOOT_CLUSTER","SET_CONFIG","CURRENT_AWS_ACCOUNT","CURRENT_DATABASE","CURRENT_NAMESPACE","CURRENT_SCHEMA","CURRENT_SCHEMAS","CURRENT_USER","CURRENT_USER_ID","HAS_ASSUMEROLE_PRIVILEGE","HAS_DATABASE_PRIVILEGE","HAS_SCHEMA_PRIVILEGE","HAS_TABLE_PRIVILEGE","PG_BACKEND_PID","PG_GET_COLS","PG_GET_GRANTEE_BY_IAM_ROLE","PG_GET_IAM_ROLE_BY_USER","PG_GET_LATE_BINDING_VIEW_COLS","PG_LAST_COPY_COUNT","PG_LAST_COPY_ID","PG_LAST_UNLOAD_ID","PG_LAST_QUERY_ID","PG_LAST_UNLOAD_COUNT","SESSION_USER","SLICE_NUM","USER","VERSION"],ih=["AES128","AES256","ALL","ALLOWOVERWRITE","ANY","AS","ASC","AUTHORIZATION","BACKUP","BETWEEN","BINARY","BOTH","CHECK","COLUMN","CONSTRAINT","CREATE","CROSS","DEFAULT","DEFERRABLE","DEFLATE","DEFRAG","DESC","DISABLE","DISTINCT","DO","ENABLE","ENCODE","ENCRYPT","ENCRYPTION","EXPLICIT","FALSE","FOR","FOREIGN","FREEZE","FROM","FULL","GLOBALDICT256","GLOBALDICT64K","GROUP","IDENTITY","IGNORE","ILIKE","IN","INITIALLY","INNER","INTO","IS","ISNULL","LANGUAGE","LEADING","LIKE","LIMIT","LOCALTIME","LOCALTIMESTAMP","LUN","LUNS","MINUS","NATURAL","NEW","NOT","NOTNULL","NULL","NULLS","OFF","OFFLINE","OFFSET","OID","OLD","ON","ONLY","OPEN","ORDER","OUTER","OVERLAPS","PARALLEL","PARTITION","PERCENT","PERMISSIONS","PLACING","PRIMARY","RECOVER","REFERENCES","REJECTLOG","RESORT","RESPECT","RESTORE","SIMILAR","SNAPSHOT","SOME","SYSTEM","TABLE","TAG","TDES","THEN","TIMESTAMP","TO","TOP","TRAILING","TRUE","UNIQUE","USING","VERBOSE","WALLET","WITHOUT","ACCEPTANYDATE","ACCEPTINVCHARS","BLANKSASNULL","DATEFORMAT","EMPTYASNULL","ENCODING","ESCAPE","EXPLICIT_IDS","FILLRECORD","IGNOREBLANKLINES","IGNOREHEADER","REMOVEQUOTES","ROUNDEC","TIMEFORMAT","TRIMBLANKS","TRUNCATECOLUMNS","COMPROWS","COMPUPDATE","MAXERROR","NOLOAD","STATUPDATE","FORMAT","CSV","DELIMITER","FIXEDWIDTH","SHAPEFILE","AVRO","JSON","PARQUET","ORC","ACCESS_KEY_ID","CREDENTIALS","ENCRYPTED","IAM_ROLE","MASTER_SYMMETRIC_KEY","SECRET_ACCESS_KEY","SESSION_TOKEN","BZIP2","GZIP","LZOP","ZSTD","MANIFEST","READRATIO","REGION","SSH","RAW","AZ64","BYTEDICT","DELTA","DELTA32K","LZO","MOSTLY8","MOSTLY16","MOSTLY32","RUNLENGTH","TEXT255","TEXT32K","CATALOG_ROLE","SECRET_ARN","EXTERNAL","AUTO","EVEN","KEY","PREDICATE","COMPRESSION"],Sh=["ARRAY","BIGINT","BPCHAR","CHAR","CHARACTER VARYING","CHARACTER","DECIMAL","INT","INT2","INT4","INT8","INTEGER","NCHAR","NUMERIC","NVARCHAR","SMALLINT","TEXT","VARBYTE","VARCHAR"],Oh=d(["SELECT [ALL | DISTINCT]"]),ah=d(["WITH [RECURSIVE]","FROM","WHERE","GROUP BY","HAVING","PARTITION BY","ORDER BY","LIMIT","OFFSET","INSERT INTO","VALUES","SET"]),rR=d(["CREATE [TEMPORARY | TEMP | LOCAL TEMPORARY | LOCAL TEMP] TABLE [IF NOT EXISTS]","CREATE [OR REPLACE | MATERIALIZED] VIEW","UPDATE","DELETE [FROM]","DROP TABLE [IF EXISTS]","ALTER TABLE","ALTER TABLE APPEND","ADD [COLUMN]","DROP [COLUMN]","RENAME TO","RENAME COLUMN","ALTER COLUMN","TYPE","ENCODE","TRUNCATE [TABLE]","ABORT","ALTER DATABASE","ALTER DATASHARE","ALTER DEFAULT PRIVILEGES","ALTER GROUP","ALTER MATERIALIZED VIEW","ALTER PROCEDURE","ALTER SCHEMA","ALTER USER","ANALYSE","ANALYZE","ANALYSE COMPRESSION","ANALYZE COMPRESSION","BEGIN","CALL","CANCEL","CLOSE","COMMIT","COPY","CREATE DATABASE","CREATE DATASHARE","CREATE EXTERNAL FUNCTION","CREATE EXTERNAL SCHEMA","CREATE EXTERNAL TABLE","CREATE FUNCTION","CREATE GROUP","CREATE LIBRARY","CREATE MODEL","CREATE PROCEDURE","CREATE SCHEMA","CREATE USER","DEALLOCATE","DECLARE","DESC DATASHARE","DROP DATABASE","DROP DATASHARE","DROP FUNCTION","DROP GROUP","DROP LIBRARY","DROP MODEL","DROP MATERIALIZED VIEW","DROP PROCEDURE","DROP SCHEMA","DROP USER","DROP VIEW","DROP","EXECUTE","EXPLAIN","FETCH","GRANT","LOCK","PREPARE","REFRESH MATERIALIZED VIEW","RESET","REVOKE","ROLLBACK","SELECT INTO","SET SESSION AUTHORIZATION","SET SESSION CHARACTERISTICS","SHOW","SHOW EXTERNAL TABLE","SHOW MODEL","SHOW DATASHARES","SHOW PROCEDURE","SHOW TABLE","SHOW VIEW","START TRANSACTION","UNLOAD","VACUUM"]),Ih=d(["UNION [ALL]","EXCEPT","INTERSECT","MINUS"]),Nh=d(["JOIN","{LEFT | RIGHT | FULL} [OUTER] JOIN","{INNER | CROSS} JOIN","NATURAL [INNER] JOIN","NATURAL {LEFT | RIGHT | FULL} [OUTER] JOIN"]),lh=d(["NULL AS","DATA CATALOG","HIVE METASTORE","{ROWS | RANGE} BETWEEN"]),_h={name:"redshift",tokenizerOptions:{reservedSelect:Oh,reservedClauses:[...ah,...rR],reservedSetOperations:Ih,reservedJoins:Nh,reservedPhrases:lh,reservedKeywords:ih,reservedDataTypes:Sh,reservedFunctionNames:Ah,stringTypes:["''-qq"],identTypes:['""-qq'],identChars:{first:"#"},paramTypes:{numbered:["$"]},operators:["^","%","@","|/","||/","&","|","~","<<",">>","||","::"]},formatOptions:{alwaysDenseOperators:["::"],onelineClauses:rR}},Ch=["ADD","AFTER","ALL","ALTER","ANALYZE","AND","ANTI","ANY","ARCHIVE","AS","ASC","AT","AUTHORIZATION","BETWEEN","BOTH","BUCKET","BUCKETS","BY","CACHE","CASCADE","CAST","CHANGE","CHECK","CLEAR","CLUSTER","CLUSTERED","CODEGEN","COLLATE","COLLECTION","COLUMN","COLUMNS","COMMENT","COMMIT","COMPACT","COMPACTIONS","COMPUTE","CONCATENATE","CONSTRAINT","COST","CREATE","CROSS","CUBE","CURRENT","CURRENT_DATE","CURRENT_TIME","CURRENT_TIMESTAMP","CURRENT_USER","DATA","DATABASE","DATABASES","DAY","DBPROPERTIES","DEFINED","DELETE","DELIMITED","DESC","DESCRIBE","DFS","DIRECTORIES","DIRECTORY","DISTINCT","DISTRIBUTE","DIV","DROP","ESCAPE","ESCAPED","EXCEPT","EXCHANGE","EXISTS","EXPORT","EXTENDED","EXTERNAL","EXTRACT","FALSE","FETCH","FIELDS","FILTER","FILEFORMAT","FIRST","FIRST_VALUE","FOLLOWING","FOR","FOREIGN","FORMAT","FORMATTED","FULL","FUNCTION","FUNCTIONS","GLOBAL","GRANT","GROUP","GROUPING","HOUR","IF","IGNORE","IMPORT","IN","INDEX","INDEXES","INNER","INPATH","INPUTFORMAT","INTERSECT","INTO","IS","ITEMS","KEYS","LAST","LAST_VALUE","LATERAL","LAZY","LEADING","LEFT","LIKE","LINES","LIST","LOCAL","LOCATION","LOCK","LOCKS","LOGICAL","MACRO","MATCHED","MERGE","MINUTE","MONTH","MSCK","NAMESPACE","NAMESPACES","NATURAL","NO","NOT","NULL","NULLS","OF","ONLY","OPTION","OPTIONS","OR","ORDER","OUT","OUTER","OUTPUTFORMAT","OVER","OVERLAPS","OVERLAY","OVERWRITE","OWNER","PARTITION","PARTITIONED","PARTITIONS","PERCENT","PLACING","POSITION","PRECEDING","PRIMARY","PRINCIPALS","PROPERTIES","PURGE","QUERY","RANGE","RECORDREADER","RECORDWRITER","RECOVER","REDUCE","REFERENCES","RENAME","REPAIR","REPLACE","RESPECT","RESTRICT","REVOKE","RIGHT","RLIKE","ROLE","ROLES","ROLLBACK","ROLLUP","ROW","ROWS","SCHEMA","SECOND","SELECT","SEMI","SEPARATED","SERDE","SERDEPROPERTIES","SESSION_USER","SETS","SHOW","SKEWED","SOME","SORT","SORTED","START","STATISTICS","STORED","STRATIFY","SUBSTR","SUBSTRING","TABLE","TABLES","TBLPROPERTIES","TEMPORARY","TERMINATED","THEN","TO","TOUCH","TRAILING","TRANSACTION","TRANSACTIONS","TRIM","TRUE","TRUNCATE","UNARCHIVE","UNBOUNDED","UNCACHE","UNIQUE","UNKNOWN","UNLOCK","UNSET","USE","USER","USING","VIEW","WINDOW","YEAR","ANALYSE","ARRAY_ZIP","COALESCE","CONTAINS","CONVERT","DAYS","DAY_HOUR","DAY_MINUTE","DAY_SECOND","DECODE","DEFAULT","DISTINCTROW","ENCODE","EXPLODE","EXPLODE_OUTER","FIXED","GREATEST","GROUP_CONCAT","HOURS","HOUR_MINUTE","HOUR_SECOND","IFNULL","LEAST","LEVEL","MINUTE_SECOND","NULLIF","OFFSET","ON","OPTIMIZE","REGEXP","SEPARATOR","SIZE","TYPE","TYPES","UNSIGNED","VARIABLES","YEAR_MONTH"],ch=["ARRAY","BIGINT","BINARY","BOOLEAN","BYTE","CHAR","DATE","DEC","DECIMAL","DOUBLE","FLOAT","INT","INTEGER","INTERVAL","LONG","MAP","NUMERIC","REAL","SHORT","SMALLINT","STRING","STRUCT","TIMESTAMP_LTZ","TIMESTAMP_NTZ","TIMESTAMP","TINYINT","VARCHAR"],Lh=["APPROX_COUNT_DISTINCT","APPROX_PERCENTILE","AVG","BIT_AND","BIT_OR","BIT_XOR","BOOL_AND","BOOL_OR","COLLECT_LIST","COLLECT_SET","CORR","COUNT","COUNT","COUNT","COUNT_IF","COUNT_MIN_SKETCH","COVAR_POP","COVAR_SAMP","EVERY","FIRST","FIRST_VALUE","GROUPING","GROUPING_ID","KURTOSIS","LAST","LAST_VALUE","MAX","MAX_BY","MEAN","MIN","MIN_BY","PERCENTILE","PERCENTILE","PERCENTILE_APPROX","SKEWNESS","STD","STDDEV","STDDEV_POP","STDDEV_SAMP","SUM","VAR_POP","VAR_SAMP","VARIANCE","CUME_DIST","DENSE_RANK","LAG","LEAD","NTH_VALUE","NTILE","PERCENT_RANK","RANK","ROW_NUMBER","ARRAY","ARRAY_CONTAINS","ARRAY_DISTINCT","ARRAY_EXCEPT","ARRAY_INTERSECT","ARRAY_JOIN","ARRAY_MAX","ARRAY_MIN","ARRAY_POSITION","ARRAY_REMOVE","ARRAY_REPEAT","ARRAY_UNION","ARRAYS_OVERLAP","ARRAYS_ZIP","FLATTEN","SEQUENCE","SHUFFLE","SLICE","SORT_ARRAY","ELEMENT_AT","ELEMENT_AT","MAP_CONCAT","MAP_ENTRIES","MAP_FROM_ARRAYS","MAP_FROM_ENTRIES","MAP_KEYS","MAP_VALUES","STR_TO_MAP","ADD_MONTHS","CURRENT_DATE","CURRENT_DATE","CURRENT_TIMESTAMP","CURRENT_TIMESTAMP","CURRENT_TIMEZONE","DATE_ADD","DATE_FORMAT","DATE_FROM_UNIX_DATE","DATE_PART","DATE_SUB","DATE_TRUNC","DATEDIFF","DAY","DAYOFMONTH","DAYOFWEEK","DAYOFYEAR","EXTRACT","FROM_UNIXTIME","FROM_UTC_TIMESTAMP","HOUR","LAST_DAY","MAKE_DATE","MAKE_DT_INTERVAL","MAKE_INTERVAL","MAKE_TIMESTAMP","MAKE_YM_INTERVAL","MINUTE","MONTH","MONTHS_BETWEEN","NEXT_DAY","NOW","QUARTER","SECOND","SESSION_WINDOW","TIMESTAMP_MICROS","TIMESTAMP_MILLIS","TIMESTAMP_SECONDS","TO_DATE","TO_TIMESTAMP","TO_UNIX_TIMESTAMP","TO_UTC_TIMESTAMP","TRUNC","UNIX_DATE","UNIX_MICROS","UNIX_MILLIS","UNIX_SECONDS","UNIX_TIMESTAMP","WEEKDAY","WEEKOFYEAR","WINDOW","YEAR","FROM_JSON","GET_JSON_OBJECT","JSON_ARRAY_LENGTH","JSON_OBJECT_KEYS","JSON_TUPLE","SCHEMA_OF_JSON","TO_JSON","ABS","ACOS","ACOSH","AGGREGATE","ARRAY_SORT","ASCII","ASIN","ASINH","ASSERT_TRUE","ATAN","ATAN2","ATANH","BASE64","BIN","BIT_COUNT","BIT_GET","BIT_LENGTH","BROUND","BTRIM","CARDINALITY","CBRT","CEIL","CEILING","CHAR_LENGTH","CHARACTER_LENGTH","CHR","CONCAT","CONCAT_WS","CONV","COS","COSH","COT","CRC32","CURRENT_CATALOG","CURRENT_DATABASE","CURRENT_USER","DEGREES","ELT","EXP","EXPM1","FACTORIAL","FIND_IN_SET","FLOOR","FORALL","FORMAT_NUMBER","FORMAT_STRING","FROM_CSV","GETBIT","HASH","HEX","HYPOT","INITCAP","INLINE","INLINE_OUTER","INPUT_FILE_BLOCK_LENGTH","INPUT_FILE_BLOCK_START","INPUT_FILE_NAME","INSTR","ISNAN","ISNOTNULL","ISNULL","JAVA_METHOD","LCASE","LEFT","LENGTH","LEVENSHTEIN","LN","LOCATE","LOG","LOG10","LOG1P","LOG2","LOWER","LPAD","LTRIM","MAP_FILTER","MAP_ZIP_WITH","MD5","MOD","MONOTONICALLY_INCREASING_ID","NAMED_STRUCT","NANVL","NEGATIVE","NVL","NVL2","OCTET_LENGTH","OVERLAY","PARSE_URL","PI","PMOD","POSEXPLODE","POSEXPLODE_OUTER","POSITION","POSITIVE","POW","POWER","PRINTF","RADIANS","RAISE_ERROR","RAND","RANDN","RANDOM","REFLECT","REGEXP_EXTRACT","REGEXP_EXTRACT_ALL","REGEXP_LIKE","REGEXP_REPLACE","REPEAT","REPLACE","REVERSE","RIGHT","RINT","ROUND","RPAD","RTRIM","SCHEMA_OF_CSV","SENTENCES","SHA","SHA1","SHA2","SHIFTLEFT","SHIFTRIGHT","SHIFTRIGHTUNSIGNED","SIGN","SIGNUM","SIN","SINH","SOUNDEX","SPACE","SPARK_PARTITION_ID","SPLIT","SQRT","STACK","SUBSTR","SUBSTRING","SUBSTRING_INDEX","TAN","TANH","TO_CSV","TRANSFORM_KEYS","TRANSFORM_VALUES","TRANSLATE","TRIM","TRY_ADD","TRY_DIVIDE","TYPEOF","UCASE","UNBASE64","UNHEX","UPPER","UUID","VERSION","WIDTH_BUCKET","XPATH","XPATH_BOOLEAN","XPATH_DOUBLE","XPATH_FLOAT","XPATH_INT","XPATH_LONG","XPATH_NUMBER","XPATH_SHORT","XPATH_STRING","XXHASH64","ZIP_WITH","CAST","COALESCE","NULLIF"],uh=d(["SELECT [ALL | DISTINCT]"]),ph=d(["WITH","FROM","WHERE","GROUP BY","HAVING","WINDOW","PARTITION BY","ORDER BY","SORT BY","CLUSTER BY","DISTRIBUTE BY","LIMIT","INSERT [INTO | OVERWRITE] [TABLE]","VALUES","INSERT OVERWRITE [LOCAL] DIRECTORY","LOAD DATA [LOCAL] INPATH","[OVERWRITE] INTO TABLE"]),sR=d(["CREATE [EXTERNAL] TABLE [IF NOT EXISTS]","CREATE [OR REPLACE] [GLOBAL TEMPORARY | TEMPORARY] VIEW [IF NOT EXISTS]","DROP TABLE [IF EXISTS]","ALTER TABLE","ADD COLUMNS","DROP {COLUMN | COLUMNS}","RENAME TO","RENAME COLUMN","ALTER COLUMN","TRUNCATE TABLE","LATERAL VIEW","ALTER DATABASE","ALTER VIEW","CREATE DATABASE","CREATE FUNCTION","DROP DATABASE","DROP FUNCTION","DROP VIEW","REPAIR TABLE","USE DATABASE","TABLESAMPLE","PIVOT","TRANSFORM","EXPLAIN","ADD FILE","ADD JAR","ANALYZE TABLE","CACHE TABLE","CLEAR CACHE","DESCRIBE DATABASE","DESCRIBE FUNCTION","DESCRIBE QUERY","DESCRIBE TABLE","LIST FILE","LIST JAR","REFRESH","REFRESH TABLE","REFRESH FUNCTION","RESET","SHOW COLUMNS","SHOW CREATE TABLE","SHOW DATABASES","SHOW FUNCTIONS","SHOW PARTITIONS","SHOW TABLE EXTENDED","SHOW TABLES","SHOW TBLPROPERTIES","SHOW VIEWS","UNCACHE TABLE"]),fh=d(["UNION [ALL | DISTINCT]","EXCEPT [ALL | DISTINCT]","INTERSECT [ALL | DISTINCT]"]),Ph=d(["JOIN","{LEFT | RIGHT | FULL} [OUTER] JOIN","{INNER | CROSS} JOIN","NATURAL [INNER] JOIN","NATURAL {LEFT | RIGHT | FULL} [OUTER] JOIN","[LEFT] {ANTI | SEMI} JOIN","NATURAL [LEFT] {ANTI | SEMI} JOIN"]),Dh=d(["ON DELETE","ON UPDATE","CURRENT ROW","{ROWS | RANGE} BETWEEN"]),dh={name:"spark",tokenizerOptions:{reservedSelect:uh,reservedClauses:[...ph,...sR],reservedSetOperations:fh,reservedJoins:Ph,reservedPhrases:Dh,supportsXor:!0,reservedKeywords:Ch,reservedDataTypes:ch,reservedFunctionNames:Lh,extraParens:["[]"],stringTypes:["''-bs",'""-bs',{quote:"''-raw",prefixes:["R","X"],requirePrefix:!0},{quote:'""-raw',prefixes:["R","X"],requirePrefix:!0}],identTypes:["``"],variableTypes:[{quote:"{}",prefixes:["$"],requirePrefix:!0}],operators:["%","~","^","|","&","<=>","==","!","||","->"],postProcess:Mh},formatOptions:{onelineClauses:sR}};function Mh(e){return e.map((t,E)=>{const T=e[E-1]||RE,r=e[E+1]||RE;return wt.WINDOW(t)&&r.type==="OPEN_PAREN"?xe(ye({},t),{type:"RESERVED_FUNCTION_NAME"}):t.text==="ITEMS"&&t.type==="RESERVED_KEYWORD"&&!(T.text==="COLLECTION"&&r.text==="TERMINATED")?xe(ye({},t),{type:"IDENTIFIER",text:t.raw}):t})}var Uh=["ABS","CHANGES","CHAR","COALESCE","FORMAT","GLOB","HEX","IFNULL","IIF","INSTR","LAST_INSERT_ROWID","LENGTH","LIKE","LIKELIHOOD","LIKELY","LOAD_EXTENSION","LOWER","LTRIM","NULLIF","PRINTF","QUOTE","RANDOM","RANDOMBLOB","REPLACE","ROUND","RTRIM","SIGN","SOUNDEX","SQLITE_COMPILEOPTION_GET","SQLITE_COMPILEOPTION_USED","SQLITE_OFFSET","SQLITE_SOURCE_ID","SQLITE_VERSION","SUBSTR","SUBSTRING","TOTAL_CHANGES","TRIM","TYPEOF","UNICODE","UNLIKELY","UPPER","ZEROBLOB","AVG","COUNT","GROUP_CONCAT","MAX","MIN","SUM","TOTAL","DATE","TIME","DATETIME","JULIANDAY","UNIXEPOCH","STRFTIME","row_number","rank","dense_rank","percent_rank","cume_dist","ntile","lag","lead","first_value","last_value","nth_value","ACOS","ACOSH","ASIN","ASINH","ATAN","ATAN2","ATANH","CEIL","CEILING","COS","COSH","DEGREES","EXP","FLOOR","LN","LOG","LOG","LOG10","LOG2","MOD","PI","POW","POWER","RADIANS","SIN","SINH","SQRT","TAN","TANH","TRUNC","JSON","JSON_ARRAY","JSON_ARRAY_LENGTH","JSON_ARRAY_LENGTH","JSON_EXTRACT","JSON_INSERT","JSON_OBJECT","JSON_PATCH","JSON_REMOVE","JSON_REPLACE","JSON_SET","JSON_TYPE","JSON_TYPE","JSON_VALID","JSON_QUOTE","JSON_GROUP_ARRAY","JSON_GROUP_OBJECT","JSON_EACH","JSON_TREE","CAST"],hh=["ABORT","ACTION","ADD","AFTER","ALL","ALTER","AND","ARE","ALWAYS","ANALYZE","AS","ASC","ATTACH","AUTOINCREMENT","BEFORE","BEGIN","BETWEEN","BY","CASCADE","CASE","CAST","CHECK","COLLATE","COLUMN","COMMIT","CONFLICT","CONSTRAINT","CREATE","CROSS","CURRENT","CURRENT_DATE","CURRENT_TIME","CURRENT_TIMESTAMP","DATABASE","DEFAULT","DEFERRABLE","DEFERRED","DELETE","DESC","DETACH","DISTINCT","DO","DROP","EACH","ELSE","END","ESCAPE","EXCEPT","EXCLUDE","EXCLUSIVE","EXISTS","EXPLAIN","FAIL","FILTER","FIRST","FOLLOWING","FOR","FOREIGN","FROM","FULL","GENERATED","GLOB","GROUP","GROUPS","HAVING","IF","IGNORE","IMMEDIATE","IN","INDEX","INDEXED","INITIALLY","INNER","INSERT","INSTEAD","INTERSECT","INTO","IS","ISNULL","JOIN","KEY","LAST","LEFT","LIKE","LIMIT","MATCH","MATERIALIZED","NATURAL","NO","NOT","NOTHING","NOTNULL","NULL","NULLS","OF","OFFSET","ON","ONLY","OPEN","OR","ORDER","OTHERS","OUTER","OVER","PARTITION","PLAN","PRAGMA","PRECEDING","PRIMARY","QUERY","RAISE","RANGE","RECURSIVE","REFERENCES","REGEXP","REINDEX","RELEASE","RENAME","REPLACE","RESTRICT","RETURNING","RIGHT","ROLLBACK","ROW","ROWS","SAVEPOINT","SELECT","SET","TABLE","TEMP","TEMPORARY","THEN","TIES","TO","TRANSACTION","TRIGGER","UNBOUNDED","UNION","UNIQUE","UPDATE","USING","VACUUM","VALUES","VIEW","VIRTUAL","WHEN","WHERE","WINDOW","WITH","WITHOUT"],gh=["ANY","ARRAY","BLOB","CHARACTER","DECIMAL","INT","INTEGER","NATIVE CHARACTER","NCHAR","NUMERIC","NVARCHAR","REAL","TEXT","VARCHAR","VARYING CHARACTER"],Gh=d(["SELECT [ALL | DISTINCT]"]),mh=d(["WITH [RECURSIVE]","FROM","WHERE","GROUP BY","HAVING","WINDOW","PARTITION BY","ORDER BY","LIMIT","OFFSET","INSERT [OR ABORT | OR FAIL | OR IGNORE | OR REPLACE | OR ROLLBACK] INTO","REPLACE INTO","VALUES","SET"]),nR=d(["CREATE [TEMPORARY | TEMP] TABLE [IF NOT EXISTS]","CREATE [TEMPORARY | TEMP] VIEW [IF NOT EXISTS]","UPDATE [OR ABORT | OR FAIL | OR IGNORE | OR REPLACE | OR ROLLBACK]","ON CONFLICT","DELETE FROM","DROP TABLE [IF EXISTS]","ALTER TABLE","ADD [COLUMN]","DROP [COLUMN]","RENAME [COLUMN]","RENAME TO","SET SCHEMA"]),Hh=d(["UNION [ALL]","EXCEPT","INTERSECT"]),yh=d(["JOIN","{LEFT | RIGHT | FULL} [OUTER] JOIN","{INNER | CROSS} JOIN","NATURAL [INNER] JOIN","NATURAL {LEFT | RIGHT | FULL} [OUTER] JOIN"]),bh=d(["ON {UPDATE | DELETE} [SET NULL | SET DEFAULT]","{ROWS | RANGE | GROUPS} BETWEEN"]),Bh={name:"sqlite",tokenizerOptions:{reservedSelect:Gh,reservedClauses:[...mh,...nR],reservedSetOperations:Hh,reservedJoins:yh,reservedPhrases:bh,reservedKeywords:hh,reservedDataTypes:gh,reservedFunctionNames:Uh,stringTypes:["''-qq",{quote:"''-raw",prefixes:["X"],requirePrefix:!0}],identTypes:['""-qq',"``","[]"],paramTypes:{positional:!0,numbered:["?"],named:[":","@","$"]},operators:["%","~","&","|","<<",">>","==","->","->>","||"]},formatOptions:{onelineClauses:nR}},Fh=["GROUPING","RANK","DENSE_RANK","PERCENT_RANK","CUME_DIST","ROW_NUMBER","POSITION","OCCURRENCES_REGEX","POSITION_REGEX","EXTRACT","CHAR_LENGTH","CHARACTER_LENGTH","OCTET_LENGTH","CARDINALITY","ABS","MOD","LN","EXP","POWER","SQRT","FLOOR","CEIL","CEILING","WIDTH_BUCKET","SUBSTRING","SUBSTRING_REGEX","UPPER","LOWER","CONVERT","TRANSLATE","TRANSLATE_REGEX","TRIM","OVERLAY","NORMALIZE","SPECIFICTYPE","CURRENT_DATE","CURRENT_TIME","LOCALTIME","CURRENT_TIMESTAMP","LOCALTIMESTAMP","COUNT","AVG","MAX","MIN","SUM","STDDEV_POP","STDDEV_SAMP","VAR_SAMP","VAR_POP","COLLECT","FUSION","INTERSECTION","COVAR_POP","COVAR_SAMP","CORR","REGR_SLOPE","REGR_INTERCEPT","REGR_COUNT","REGR_R2","REGR_AVGX","REGR_AVGY","REGR_SXX","REGR_SYY","REGR_SXY","PERCENTILE_CONT","PERCENTILE_DISC","CAST","COALESCE","NULLIF","ROUND","SIN","COS","TAN","ASIN","ACOS","ATAN"],vh=["ALL","ALLOCATE","ALTER","ANY","ARE","AS","ASENSITIVE","ASYMMETRIC","AT","ATOMIC","AUTHORIZATION","BEGIN","BETWEEN","BOTH","BY","CALL","CALLED","CASCADED","CAST","CHECK","CLOSE","COALESCE","COLLATE","COLUMN","COMMIT","CONDITION","CONNECT","CONSTRAINT","CORRESPONDING","CREATE","CROSS","CUBE","CURRENT","CURRENT_CATALOG","CURRENT_DEFAULT_TRANSFORM_GROUP","CURRENT_PATH","CURRENT_ROLE","CURRENT_SCHEMA","CURRENT_TRANSFORM_GROUP_FOR_TYPE","CURRENT_USER","CURSOR","CYCLE","DEALLOCATE","DAY","DECLARE","DEFAULT","DELETE","DEREF","DESCRIBE","DETERMINISTIC","DISCONNECT","DISTINCT","DROP","DYNAMIC","EACH","ELEMENT","END-EXEC","ESCAPE","EVERY","EXCEPT","EXEC","EXECUTE","EXISTS","EXTERNAL","FALSE","FETCH","FILTER","FOR","FOREIGN","FREE","FROM","FULL","FUNCTION","GET","GLOBAL","GRANT","GROUP","HAVING","HOLD","HOUR","IDENTITY","IN","INDICATOR","INNER","INOUT","INSENSITIVE","INSERT","INTERSECT","INTO","IS","LANGUAGE","LARGE","LATERAL","LEADING","LEFT","LIKE","LIKE_REGEX","LOCAL","MATCH","MEMBER","MERGE","METHOD","MINUTE","MODIFIES","MODULE","MONTH","NATURAL","NEW","NO","NONE","NOT","NULL","NULLIF","OF","OLD","ON","ONLY","OPEN","ORDER","OUT","OUTER","OVER","OVERLAPS","PARAMETER","PARTITION","PRECISION","PREPARE","PRIMARY","PROCEDURE","RANGE","READS","REAL","RECURSIVE","REF","REFERENCES","REFERENCING","RELEASE","RESULT","RETURN","RETURNS","REVOKE","RIGHT","ROLLBACK","ROLLUP","ROW","ROWS","SAVEPOINT","SCOPE","SCROLL","SEARCH","SECOND","SELECT","SENSITIVE","SESSION_USER","SET","SIMILAR","SOME","SPECIFIC","SQL","SQLEXCEPTION","SQLSTATE","SQLWARNING","START","STATIC","SUBMULTISET","SYMMETRIC","SYSTEM","SYSTEM_USER","TABLE","TABLESAMPLE","THEN","TIMEZONE_HOUR","TIMEZONE_MINUTE","TO","TRAILING","TRANSLATION","TREAT","TRIGGER","TRUE","UESCAPE","UNION","UNIQUE","UNKNOWN","UNNEST","UPDATE","USER","USING","VALUE","VALUES","WHENEVER","WINDOW","WITHIN","WITHOUT","YEAR"],Yh=["ARRAY","BIGINT","BINARY LARGE OBJECT","BINARY VARYING","BINARY","BLOB","BOOLEAN","CHAR LARGE OBJECT","CHAR VARYING","CHAR","CHARACTER LARGE OBJECT","CHARACTER VARYING","CHARACTER","CLOB","DATE","DEC","DECIMAL","DOUBLE","FLOAT","INT","INTEGER","INTERVAL","MULTISET","NATIONAL CHAR VARYING","NATIONAL CHAR","NATIONAL CHARACTER LARGE OBJECT","NATIONAL CHARACTER VARYING","NATIONAL CHARACTER","NCHAR LARGE OBJECT","NCHAR VARYING","NCHAR","NCLOB","NUMERIC","SMALLINT","TIME","TIMESTAMP","VARBINARY","VARCHAR"],xh=d(["SELECT [ALL | DISTINCT]"]),Vh=d(["WITH [RECURSIVE]","FROM","WHERE","GROUP BY [ALL | DISTINCT]","HAVING","WINDOW","PARTITION BY","ORDER BY","LIMIT","OFFSET","FETCH {FIRST | NEXT}","INSERT INTO","VALUES","SET"]),RR=d(["CREATE [GLOBAL TEMPORARY | LOCAL TEMPORARY] TABLE","CREATE [RECURSIVE] VIEW","UPDATE","WHERE CURRENT OF","DELETE FROM","DROP TABLE","ALTER TABLE","ADD COLUMN","DROP [COLUMN]","RENAME COLUMN","RENAME TO","ALTER [COLUMN]","{SET | DROP} DEFAULT","ADD SCOPE","DROP SCOPE {CASCADE | RESTRICT}","RESTART WITH","TRUNCATE TABLE","SET SCHEMA"]),wh=d(["UNION [ALL | DISTINCT]","EXCEPT [ALL | DISTINCT]","INTERSECT [ALL | DISTINCT]"]),Wh=d(["JOIN","{LEFT | RIGHT | FULL} [OUTER] JOIN","{INNER | CROSS} JOIN","NATURAL [INNER] JOIN","NATURAL {LEFT | RIGHT | FULL} [OUTER] JOIN"]),Xh=d(["ON {UPDATE | DELETE} [SET NULL | SET DEFAULT]","{ROWS | RANGE} BETWEEN"]),$h={name:"sql",tokenizerOptions:{reservedSelect:xh,reservedClauses:[...Vh,...RR],reservedSetOperations:wh,reservedJoins:Wh,reservedPhrases:Xh,reservedKeywords:vh,reservedDataTypes:Yh,reservedFunctionNames:Fh,stringTypes:[{quote:"''-qq-bs",prefixes:["N","U&"]},{quote:"''-raw",prefixes:["X"],requirePrefix:!0}],identTypes:['""-qq',"``"],paramTypes:{positional:!0},operators:["||"]},formatOptions:{onelineClauses:RR}},Kh=["ABS","ACOS","ALL_MATCH","ANY_MATCH","APPROX_DISTINCT","APPROX_MOST_FREQUENT","APPROX_PERCENTILE","APPROX_SET","ARBITRARY","ARRAYS_OVERLAP","ARRAY_AGG","ARRAY_DISTINCT","ARRAY_EXCEPT","ARRAY_INTERSECT","ARRAY_JOIN","ARRAY_MAX","ARRAY_MIN","ARRAY_POSITION","ARRAY_REMOVE","ARRAY_SORT","ARRAY_UNION","ASIN","ATAN","ATAN2","AT_TIMEZONE","AVG","BAR","BETA_CDF","BING_TILE","BING_TILES_AROUND","BING_TILE_AT","BING_TILE_COORDINATES","BING_TILE_POLYGON","BING_TILE_QUADKEY","BING_TILE_ZOOM_LEVEL","BITWISE_AND","BITWISE_AND_AGG","BITWISE_LEFT_SHIFT","BITWISE_NOT","BITWISE_OR","BITWISE_OR_AGG","BITWISE_RIGHT_SHIFT","BITWISE_RIGHT_SHIFT_ARITHMETIC","BITWISE_XOR","BIT_COUNT","BOOL_AND","BOOL_OR","CARDINALITY","CAST","CBRT","CEIL","CEILING","CHAR2HEXINT","CHECKSUM","CHR","CLASSIFY","COALESCE","CODEPOINT","COLOR","COMBINATIONS","CONCAT","CONCAT_WS","CONTAINS","CONTAINS_SEQUENCE","CONVEX_HULL_AGG","CORR","COS","COSH","COSINE_SIMILARITY","COUNT","COUNT_IF","COVAR_POP","COVAR_SAMP","CRC32","CUME_DIST","CURRENT_CATALOG","CURRENT_DATE","CURRENT_GROUPS","CURRENT_SCHEMA","CURRENT_TIME","CURRENT_TIMESTAMP","CURRENT_TIMEZONE","CURRENT_USER","DATE","DATE_ADD","DATE_DIFF","DATE_FORMAT","DATE_PARSE","DATE_TRUNC","DAY","DAY_OF_MONTH","DAY_OF_WEEK","DAY_OF_YEAR","DEGREES","DENSE_RANK","DOW","DOY","E","ELEMENT_AT","EMPTY_APPROX_SET","EVALUATE_CLASSIFIER_PREDICTIONS","EVERY","EXP","EXTRACT","FEATURES","FILTER","FIRST_VALUE","FLATTEN","FLOOR","FORMAT","FORMAT_DATETIME","FORMAT_NUMBER","FROM_BASE","FROM_BASE32","FROM_BASE64","FROM_BASE64URL","FROM_BIG_ENDIAN_32","FROM_BIG_ENDIAN_64","FROM_ENCODED_POLYLINE","FROM_GEOJSON_GEOMETRY","FROM_HEX","FROM_IEEE754_32","FROM_IEEE754_64","FROM_ISO8601_DATE","FROM_ISO8601_TIMESTAMP","FROM_ISO8601_TIMESTAMP_NANOS","FROM_UNIXTIME","FROM_UNIXTIME_NANOS","FROM_UTF8","GEOMETRIC_MEAN","GEOMETRY_FROM_HADOOP_SHAPE","GEOMETRY_INVALID_REASON","GEOMETRY_NEAREST_POINTS","GEOMETRY_TO_BING_TILES","GEOMETRY_UNION","GEOMETRY_UNION_AGG","GREATEST","GREAT_CIRCLE_DISTANCE","HAMMING_DISTANCE","HASH_COUNTS","HISTOGRAM","HMAC_MD5","HMAC_SHA1","HMAC_SHA256","HMAC_SHA512","HOUR","HUMAN_READABLE_SECONDS","IF","INDEX","INFINITY","INTERSECTION_CARDINALITY","INVERSE_BETA_CDF","INVERSE_NORMAL_CDF","IS_FINITE","IS_INFINITE","IS_JSON_SCALAR","IS_NAN","JACCARD_INDEX","JSON_ARRAY_CONTAINS","JSON_ARRAY_GET","JSON_ARRAY_LENGTH","JSON_EXISTS","JSON_EXTRACT","JSON_EXTRACT_SCALAR","JSON_FORMAT","JSON_PARSE","JSON_QUERY","JSON_SIZE","JSON_VALUE","KURTOSIS","LAG","LAST_DAY_OF_MONTH","LAST_VALUE","LEAD","LEARN_CLASSIFIER","LEARN_LIBSVM_CLASSIFIER","LEARN_LIBSVM_REGRESSOR","LEARN_REGRESSOR","LEAST","LENGTH","LEVENSHTEIN_DISTANCE","LINE_INTERPOLATE_POINT","LINE_INTERPOLATE_POINTS","LINE_LOCATE_POINT","LISTAGG","LN","LOCALTIME","LOCALTIMESTAMP","LOG","LOG10","LOG2","LOWER","LPAD","LTRIM","LUHN_CHECK","MAKE_SET_DIGEST","MAP","MAP_AGG","MAP_CONCAT","MAP_ENTRIES","MAP_FILTER","MAP_FROM_ENTRIES","MAP_KEYS","MAP_UNION","MAP_VALUES","MAP_ZIP_WITH","MAX","MAX_BY","MD5","MERGE","MERGE_SET_DIGEST","MILLISECOND","MIN","MINUTE","MIN_BY","MOD","MONTH","MULTIMAP_AGG","MULTIMAP_FROM_ENTRIES","MURMUR3","NAN","NGRAMS","NONE_MATCH","NORMALIZE","NORMAL_CDF","NOW","NTH_VALUE","NTILE","NULLIF","NUMERIC_HISTOGRAM","OBJECTID","OBJECTID_TIMESTAMP","PARSE_DATA_SIZE","PARSE_DATETIME","PARSE_DURATION","PERCENT_RANK","PI","POSITION","POW","POWER","QDIGEST_AGG","QUARTER","RADIANS","RAND","RANDOM","RANK","REDUCE","REDUCE_AGG","REGEXP_COUNT","REGEXP_EXTRACT","REGEXP_EXTRACT_ALL","REGEXP_LIKE","REGEXP_POSITION","REGEXP_REPLACE","REGEXP_SPLIT","REGRESS","REGR_INTERCEPT","REGR_SLOPE","RENDER","REPEAT","REPLACE","REVERSE","RGB","ROUND","ROW_NUMBER","RPAD","RTRIM","SECOND","SEQUENCE","SHA1","SHA256","SHA512","SHUFFLE","SIGN","SIMPLIFY_GEOMETRY","SIN","SKEWNESS","SLICE","SOUNDEX","SPATIAL_PARTITIONING","SPATIAL_PARTITIONS","SPLIT","SPLIT_PART","SPLIT_TO_MAP","SPLIT_TO_MULTIMAP","SPOOKY_HASH_V2_32","SPOOKY_HASH_V2_64","SQRT","STARTS_WITH","STDDEV","STDDEV_POP","STDDEV_SAMP","STRPOS","ST_AREA","ST_ASBINARY","ST_ASTEXT","ST_BOUNDARY","ST_BUFFER","ST_CENTROID","ST_CONTAINS","ST_CONVEXHULL","ST_COORDDIM","ST_CROSSES","ST_DIFFERENCE","ST_DIMENSION","ST_DISJOINT","ST_DISTANCE","ST_ENDPOINT","ST_ENVELOPE","ST_ENVELOPEASPTS","ST_EQUALS","ST_EXTERIORRING","ST_GEOMETRIES","ST_GEOMETRYFROMTEXT","ST_GEOMETRYN","ST_GEOMETRYTYPE","ST_GEOMFROMBINARY","ST_INTERIORRINGN","ST_INTERIORRINGS","ST_INTERSECTION","ST_INTERSECTS","ST_ISCLOSED","ST_ISEMPTY","ST_ISRING","ST_ISSIMPLE","ST_ISVALID","ST_LENGTH","ST_LINEFROMTEXT","ST_LINESTRING","ST_MULTIPOINT","ST_NUMGEOMETRIES","ST_NUMINTERIORRING","ST_NUMPOINTS","ST_OVERLAPS","ST_POINT","ST_POINTN","ST_POINTS","ST_POLYGON","ST_RELATE","ST_STARTPOINT","ST_SYMDIFFERENCE","ST_TOUCHES","ST_UNION","ST_WITHIN","ST_X","ST_XMAX","ST_XMIN","ST_Y","ST_YMAX","ST_YMIN","SUBSTR","SUBSTRING","SUM","TAN","TANH","TDIGEST_AGG","TIMESTAMP_OBJECTID","TIMEZONE_HOUR","TIMEZONE_MINUTE","TO_BASE","TO_BASE32","TO_BASE64","TO_BASE64URL","TO_BIG_ENDIAN_32","TO_BIG_ENDIAN_64","TO_CHAR","TO_DATE","TO_ENCODED_POLYLINE","TO_GEOJSON_GEOMETRY","TO_GEOMETRY","TO_HEX","TO_IEEE754_32","TO_IEEE754_64","TO_ISO8601","TO_MILLISECONDS","TO_SPHERICAL_GEOGRAPHY","TO_TIMESTAMP","TO_UNIXTIME","TO_UTF8","TRANSFORM","TRANSFORM_KEYS","TRANSFORM_VALUES","TRANSLATE","TRIM","TRIM_ARRAY","TRUNCATE","TRY","TRY_CAST","TYPEOF","UPPER","URL_DECODE","URL_ENCODE","URL_EXTRACT_FRAGMENT","URL_EXTRACT_HOST","URL_EXTRACT_PARAMETER","URL_EXTRACT_PATH","URL_EXTRACT_PORT","URL_EXTRACT_PROTOCOL","URL_EXTRACT_QUERY","UUID","VALUES_AT_QUANTILES","VALUE_AT_QUANTILE","VARIANCE","VAR_POP","VAR_SAMP","VERSION","WEEK","WEEK_OF_YEAR","WIDTH_BUCKET","WILSON_INTERVAL_LOWER","WILSON_INTERVAL_UPPER","WITH_TIMEZONE","WORD_STEM","XXHASH64","YEAR","YEAR_OF_WEEK","YOW","ZIP","ZIP_WITH","CLASSIFIER","FIRST","LAST","MATCH_NUMBER","NEXT","PERMUTE","PREV"],Jh=["ABSENT","ADD","ADMIN","AFTER","ALL","ALTER","ANALYZE","AND","ANY","AS","ASC","AT","AUTHORIZATION","BERNOULLI","BETWEEN","BOTH","BY","CALL","CASCADE","CASE","CATALOGS","COLUMN","COLUMNS","COMMENT","COMMIT","COMMITTED","CONDITIONAL","CONSTRAINT","COPARTITION","CREATE","CROSS","CUBE","CURRENT","CURRENT_PATH","CURRENT_ROLE","DATA","DEALLOCATE","DEFAULT","DEFINE","DEFINER","DELETE","DENY","DESC","DESCRIBE","DESCRIPTOR","DISTINCT","DISTRIBUTED","DOUBLE","DROP","ELSE","EMPTY","ENCODING","END","ERROR","ESCAPE","EXCEPT","EXCLUDING","EXECUTE","EXISTS","EXPLAIN","FALSE","FETCH","FINAL","FIRST","FOLLOWING","FOR","FROM","FULL","FUNCTIONS","GRANT","GRANTED","GRANTS","GRAPHVIZ","GROUP","GROUPING","GROUPS","HAVING","IGNORE","IN","INCLUDING","INITIAL","INNER","INPUT","INSERT","INTERSECT","INTERVAL","INTO","INVOKER","IO","IS","ISOLATION","JOIN","JSON","JSON_ARRAY","JSON_OBJECT","KEEP","KEY","KEYS","LAST","LATERAL","LEADING","LEFT","LEVEL","LIKE","LIMIT","LOCAL","LOGICAL","MATCH","MATCHED","MATCHES","MATCH_RECOGNIZE","MATERIALIZED","MEASURES","NATURAL","NEXT","NFC","NFD","NFKC","NFKD","NO","NONE","NOT","NULL","NULLS","OBJECT","OF","OFFSET","OMIT","ON","ONE","ONLY","OPTION","OR","ORDER","ORDINALITY","OUTER","OUTPUT","OVER","OVERFLOW","PARTITION","PARTITIONS","PASSING","PAST","PATH","PATTERN","PER","PERMUTE","PRECEDING","PRECISION","PREPARE","PRIVILEGES","PROPERTIES","PRUNE","QUOTES","RANGE","READ","RECURSIVE","REFRESH","RENAME","REPEATABLE","RESET","RESPECT","RESTRICT","RETURNING","REVOKE","RIGHT","ROLE","ROLES","ROLLBACK","ROLLUP","ROW","ROWS","RUNNING","SCALAR","SCHEMA","SCHEMAS","SECURITY","SEEK","SELECT","SERIALIZABLE","SESSION","SET","SETS","SHOW","SKIP","SOME","START","STATS","STRING","SUBSET","SYSTEM","TABLE","TABLES","TABLESAMPLE","TEXT","THEN","TIES","TIME","TIMESTAMP","TO","TRAILING","TRANSACTION","TRUE","TYPE","UESCAPE","UNBOUNDED","UNCOMMITTED","UNCONDITIONAL","UNION","UNIQUE","UNKNOWN","UNMATCHED","UNNEST","UPDATE","USE","USER","USING","UTF16","UTF32","UTF8","VALIDATE","VALUE","VALUES","VERBOSE","VIEW","WHEN","WHERE","WINDOW","WITH","WITHIN","WITHOUT","WORK","WRAPPER","WRITE","ZONE"],kh=["BIGINT","INT","INTEGER","SMALLINT","TINYINT","BOOLEAN","DATE","DECIMAL","REAL","DOUBLE","HYPERLOGLOG","QDIGEST","TDIGEST","P4HYPERLOGLOG","INTERVAL","TIMESTAMP","TIME","VARBINARY","VARCHAR","CHAR","ROW","ARRAY","MAP","JSON","JSON2016","IPADDRESS","GEOMETRY","UUID","SETDIGEST","JONIREGEXP","RE2JREGEXP","LIKEPATTERN","COLOR","CODEPOINTS","FUNCTION","JSONPATH"],jh=d(["SELECT [ALL | DISTINCT]"]),qh=d(["WITH [RECURSIVE]","FROM","WHERE","GROUP BY [ALL | DISTINCT]","HAVING","WINDOW","PARTITION BY","ORDER BY","LIMIT","OFFSET","FETCH {FIRST | NEXT}","INSERT INTO","VALUES","SET","MATCH_RECOGNIZE","MEASURES","ONE ROW PER MATCH","ALL ROWS PER MATCH","AFTER MATCH","PATTERN","SUBSET","DEFINE"]),oR=d(["CREATE TABLE [IF NOT EXISTS]","CREATE [OR REPLACE] [MATERIALIZED] VIEW","UPDATE","DELETE FROM","DROP TABLE [IF EXISTS]","ALTER TABLE [IF EXISTS]","ADD COLUMN [IF NOT EXISTS]","DROP COLUMN [IF EXISTS]","RENAME COLUMN [IF EXISTS]","RENAME TO","SET AUTHORIZATION [USER | ROLE]","SET PROPERTIES","EXECUTE","TRUNCATE TABLE","ALTER SCHEMA","ALTER MATERIALIZED VIEW","ALTER VIEW","CREATE SCHEMA","CREATE ROLE","DROP SCHEMA","DROP MATERIALIZED VIEW","DROP VIEW","DROP ROLE","EXPLAIN","ANALYZE","EXPLAIN ANALYZE","EXPLAIN ANALYZE VERBOSE","USE","DESCRIBE INPUT","DESCRIBE OUTPUT","REFRESH MATERIALIZED VIEW","RESET SESSION","SET SESSION","SET PATH","SET TIME ZONE","SHOW GRANTS","SHOW CREATE TABLE","SHOW CREATE SCHEMA","SHOW CREATE VIEW","SHOW CREATE MATERIALIZED VIEW","SHOW TABLES","SHOW SCHEMAS","SHOW CATALOGS","SHOW COLUMNS","SHOW STATS FOR","SHOW ROLES","SHOW CURRENT ROLES","SHOW ROLE GRANTS","SHOW FUNCTIONS","SHOW SESSION"]),Qh=d(["UNION [ALL | DISTINCT]","EXCEPT [ALL | DISTINCT]","INTERSECT [ALL | DISTINCT]"]),Zh=d(["JOIN","{LEFT | RIGHT | FULL} [OUTER] JOIN","{INNER | CROSS} JOIN","NATURAL [INNER] JOIN","NATURAL {LEFT | RIGHT | FULL} [OUTER] JOIN"]),zh=d(["{ROWS | RANGE | GROUPS} BETWEEN","IS [NOT] DISTINCT FROM"]),eg={name:"trino",tokenizerOptions:{reservedSelect:jh,reservedClauses:[...qh,...oR],reservedSetOperations:Qh,reservedJoins:Zh,reservedPhrases:zh,reservedKeywords:Jh,reservedDataTypes:kh,reservedFunctionNames:Kh,extraParens:["[]","{}"],stringTypes:[{quote:"''-qq",prefixes:["U&"]},{quote:"''-raw",prefixes:["X"],requirePrefix:!0}],identTypes:['""-qq'],paramTypes:{positional:!0},operators:["%","->","=>",":","||","|","^","$"]},formatOptions:{onelineClauses:oR}},tg=["APPROX_COUNT_DISTINCT","AVG","CHECKSUM_AGG","COUNT","COUNT_BIG","GROUPING","GROUPING_ID","MAX","MIN","STDEV","STDEVP","SUM","VAR","VARP","CUME_DIST","FIRST_VALUE","LAG","LAST_VALUE","LEAD","PERCENTILE_CONT","PERCENTILE_DISC","PERCENT_RANK","Collation - COLLATIONPROPERTY","Collation - TERTIARY_WEIGHTS","@@DBTS","@@LANGID","@@LANGUAGE","@@LOCK_TIMEOUT","@@MAX_CONNECTIONS","@@MAX_PRECISION","@@NESTLEVEL","@@OPTIONS","@@REMSERVER","@@SERVERNAME","@@SERVICENAME","@@SPID","@@TEXTSIZE","@@VERSION","CAST","CONVERT","PARSE","TRY_CAST","TRY_CONVERT","TRY_PARSE","ASYMKEY_ID","ASYMKEYPROPERTY","CERTPROPERTY","CERT_ID","CRYPT_GEN_RANDOM","DECRYPTBYASYMKEY","DECRYPTBYCERT","DECRYPTBYKEY","DECRYPTBYKEYAUTOASYMKEY","DECRYPTBYKEYAUTOCERT","DECRYPTBYPASSPHRASE","ENCRYPTBYASYMKEY","ENCRYPTBYCERT","ENCRYPTBYKEY","ENCRYPTBYPASSPHRASE","HASHBYTES","IS_OBJECTSIGNED","KEY_GUID","KEY_ID","KEY_NAME","SIGNBYASYMKEY","SIGNBYCERT","SYMKEYPROPERTY","VERIFYSIGNEDBYCERT","VERIFYSIGNEDBYASYMKEY","@@CURSOR_ROWS","@@FETCH_STATUS","CURSOR_STATUS","DATALENGTH","IDENT_CURRENT","IDENT_INCR","IDENT_SEED","IDENTITY","SQL_VARIANT_PROPERTY","@@DATEFIRST","CURRENT_TIMESTAMP","CURRENT_TIMEZONE","CURRENT_TIMEZONE_ID","DATEADD","DATEDIFF","DATEDIFF_BIG","DATEFROMPARTS","DATENAME","DATEPART","DATETIME2FROMPARTS","DATETIMEFROMPARTS","DATETIMEOFFSETFROMPARTS","DAY","EOMONTH","GETDATE","GETUTCDATE","ISDATE","MONTH","SMALLDATETIMEFROMPARTS","SWITCHOFFSET","SYSDATETIME","SYSDATETIMEOFFSET","SYSUTCDATETIME","TIMEFROMPARTS","TODATETIMEOFFSET","YEAR","JSON","ISJSON","JSON_VALUE","JSON_QUERY","JSON_MODIFY","ABS","ACOS","ASIN","ATAN","ATN2","CEILING","COS","COT","DEGREES","EXP","FLOOR","LOG","LOG10","PI","POWER","RADIANS","RAND","ROUND","SIGN","SIN","SQRT","SQUARE","TAN","CHOOSE","GREATEST","IIF","LEAST","@@PROCID","APP_NAME","APPLOCK_MODE","APPLOCK_TEST","ASSEMBLYPROPERTY","COL_LENGTH","COL_NAME","COLUMNPROPERTY","DATABASEPROPERTYEX","DB_ID","DB_NAME","FILE_ID","FILE_IDEX","FILE_NAME","FILEGROUP_ID","FILEGROUP_NAME","FILEGROUPPROPERTY","FILEPROPERTY","FILEPROPERTYEX","FULLTEXTCATALOGPROPERTY","FULLTEXTSERVICEPROPERTY","INDEX_COL","INDEXKEY_PROPERTY","INDEXPROPERTY","NEXT VALUE FOR","OBJECT_DEFINITION","OBJECT_ID","OBJECT_NAME","OBJECT_SCHEMA_NAME","OBJECTPROPERTY","OBJECTPROPERTYEX","ORIGINAL_DB_NAME","PARSENAME","SCHEMA_ID","SCHEMA_NAME","SCOPE_IDENTITY","SERVERPROPERTY","STATS_DATE","TYPE_ID","TYPE_NAME","TYPEPROPERTY","DENSE_RANK","NTILE","RANK","ROW_NUMBER","PUBLISHINGSERVERNAME","CERTENCODED","CERTPRIVATEKEY","CURRENT_USER","DATABASE_PRINCIPAL_ID","HAS_DBACCESS","HAS_PERMS_BY_NAME","IS_MEMBER","IS_ROLEMEMBER","IS_SRVROLEMEMBER","LOGINPROPERTY","ORIGINAL_LOGIN","PERMISSIONS","PWDENCRYPT","PWDCOMPARE","SESSION_USER","SESSIONPROPERTY","SUSER_ID","SUSER_NAME","SUSER_SID","SUSER_SNAME","SYSTEM_USER","USER","USER_ID","USER_NAME","ASCII","CHAR","CHARINDEX","CONCAT","CONCAT_WS","DIFFERENCE","FORMAT","LEFT","LEN","LOWER","LTRIM","NCHAR","PATINDEX","QUOTENAME","REPLACE","REPLICATE","REVERSE","RIGHT","RTRIM","SOUNDEX","SPACE","STR","STRING_AGG","STRING_ESCAPE","STUFF","SUBSTRING","TRANSLATE","TRIM","UNICODE","UPPER","$PARTITION","@@ERROR","@@IDENTITY","@@PACK_RECEIVED","@@ROWCOUNT","@@TRANCOUNT","BINARY_CHECKSUM","CHECKSUM","COMPRESS","CONNECTIONPROPERTY","CONTEXT_INFO","CURRENT_REQUEST_ID","CURRENT_TRANSACTION_ID","DECOMPRESS","ERROR_LINE","ERROR_MESSAGE","ERROR_NUMBER","ERROR_PROCEDURE","ERROR_SEVERITY","ERROR_STATE","FORMATMESSAGE","GET_FILESTREAM_TRANSACTION_CONTEXT","GETANSINULL","HOST_ID","HOST_NAME","ISNULL","ISNUMERIC","MIN_ACTIVE_ROWVERSION","NEWID","NEWSEQUENTIALID","ROWCOUNT_BIG","SESSION_CONTEXT","XACT_STATE","@@CONNECTIONS","@@CPU_BUSY","@@IDLE","@@IO_BUSY","@@PACK_SENT","@@PACKET_ERRORS","@@TIMETICKS","@@TOTAL_ERRORS","@@TOTAL_READ","@@TOTAL_WRITE","TEXTPTR","TEXTVALID","COLUMNS_UPDATED","EVENTDATA","TRIGGER_NESTLEVEL","UPDATE","COALESCE","NULLIF"],Eg=["ADD","ALL","ALTER","AND","ANY","AS","ASC","AUTHORIZATION","BACKUP","BEGIN","BETWEEN","BREAK","BROWSE","BULK","BY","CASCADE","CHECK","CHECKPOINT","CLOSE","CLUSTERED","COALESCE","COLLATE","COLUMN","COMMIT","COMPUTE","CONSTRAINT","CONTAINS","CONTAINSTABLE","CONTINUE","CONVERT","CREATE","CROSS","CURRENT","CURRENT_DATE","CURRENT_TIME","CURRENT_TIMESTAMP","CURRENT_USER","CURSOR","DATABASE","DBCC","DEALLOCATE","DECLARE","DEFAULT","DELETE","DENY","DESC","DISK","DISTINCT","DISTRIBUTED","DROP","DUMP","ERRLVL","ESCAPE","EXEC","EXECUTE","EXISTS","EXIT","EXTERNAL","FETCH","FILE","FILLFACTOR","FOR","FOREIGN","FREETEXT","FREETEXTTABLE","FROM","FULL","FUNCTION","GOTO","GRANT","GROUP","HAVING","HOLDLOCK","IDENTITY","IDENTITYCOL","IDENTITY_INSERT","IF","IN","INDEX","INNER","INSERT","INTERSECT","INTO","IS","JOIN","KEY","KILL","LEFT","LIKE","LINENO","LOAD","MERGE","NOCHECK","NONCLUSTERED","NOT","NULL","NULLIF","OF","OFF","OFFSETS","ON","OPEN","OPENDATASOURCE","OPENQUERY","OPENROWSET","OPENXML","OPTION","OR","ORDER","OUTER","OVER","PERCENT","PIVOT","PLAN","PRIMARY","PRINT","PROC","PROCEDURE","PUBLIC","RAISERROR","READ","READTEXT","RECONFIGURE","REFERENCES","REPLICATION","RESTORE","RESTRICT","RETURN","REVERT","REVOKE","RIGHT","ROLLBACK","ROWCOUNT","ROWGUIDCOL","RULE","SAVE","SCHEMA","SECURITYAUDIT","SELECT","SEMANTICKEYPHRASETABLE","SEMANTICSIMILARITYDETAILSTABLE","SEMANTICSIMILARITYTABLE","SESSION_USER","SET","SETUSER","SHUTDOWN","SOME","STATISTICS","SYSTEM_USER","TABLE","TABLESAMPLE","TEXTSIZE","THEN","TO","TOP","TRAN","TRANSACTION","TRIGGER","TRUNCATE","TRY_CONVERT","TSEQUAL","UNION","UNIQUE","UNPIVOT","UPDATE","UPDATETEXT","USE","USER","VALUES","VIEW","WAITFOR","WHERE","WHILE","WITH","WITHIN GROUP","WRITETEXT","ABSOLUTE","ACTION","ADA","ALLOCATE","ARE","ASSERTION","AT","AVG","BIT_LENGTH","BOTH","CASCADED","CAST","CATALOG","CHARACTER_LENGTH","CHAR_LENGTH","COLLATION","CONNECT","CONNECTION","CONSTRAINTS","CORRESPONDING","COUNT","DAY","DEFERRABLE","DEFERRED","DESCRIBE","DESCRIPTOR","DIAGNOSTICS","DISCONNECT","DOMAIN","END-EXEC","EXCEPTION","EXTRACT","FALSE","FIRST","FORTRAN","FOUND","GET","GLOBAL","GO","HOUR","IMMEDIATE","INCLUDE","INDICATOR","INITIALLY","INPUT","INSENSITIVE","INTERVAL","ISOLATION","LANGUAGE","LAST","LEADING","LEVEL","LOCAL","LOWER","MATCH","MAX","MIN","MINUTE","MODULE","MONTH","NAMES","NATURAL","NEXT","NO","NONE","OCTET_LENGTH","ONLY","OUTPUT","OVERLAPS","PAD","PARTIAL","PASCAL","POSITION","PREPARE","PRESERVE","PRIOR","PRIVILEGES","RELATIVE","ROWS","SCROLL","SECOND","SECTION","SESSION","SIZE","SPACE","SQL","SQLCA","SQLCODE","SQLERROR","SQLSTATE","SQLWARNING","SUBSTRING","SUM","TEMPORARY","TIMEZONE_HOUR","TIMEZONE_MINUTE","TRAILING","TRANSLATE","TRANSLATION","TRIM","TRUE","UNKNOWN","UPPER","USAGE","VALUE","WHENEVER","WORK","WRITE","YEAR","ZONE"],Tg=["BINARY","BIT","CHAR","CHAR","CHARACTER","DATE","DATETIME2","DATETIMEOFFSET","DEC","DECIMAL","DOUBLE","FLOAT","INT","INTEGER","NATIONAL","NCHAR","NUMERIC","NVARCHAR","PRECISION","REAL","SMALLINT","TIME","TIMESTAMP","VARBINARY","VARCHAR"],rg=d(["SELECT [ALL | DISTINCT]"]),sg=d(["WITH","INTO","FROM","WHERE","GROUP BY","HAVING","WINDOW","PARTITION BY","ORDER BY","OFFSET","FETCH {FIRST | NEXT}","INSERT [INTO]","VALUES","SET","MERGE [INTO]","WHEN [NOT] MATCHED [BY TARGET | BY SOURCE] [THEN]","UPDATE SET","CREATE [OR ALTER] {PROC | PROCEDURE}"]),AR=d(["CREATE TABLE","CREATE [OR ALTER] [MATERIALIZED] VIEW","UPDATE","WHERE CURRENT OF","DELETE [FROM]","DROP TABLE [IF EXISTS]","ALTER TABLE","ADD","DROP COLUMN [IF EXISTS]","ALTER COLUMN","TRUNCATE TABLE","ADD SENSITIVITY CLASSIFICATION","ADD SIGNATURE","AGGREGATE","ANSI_DEFAULTS","ANSI_NULLS","ANSI_NULL_DFLT_OFF","ANSI_NULL_DFLT_ON","ANSI_PADDING","ANSI_WARNINGS","APPLICATION ROLE","ARITHABORT","ARITHIGNORE","ASSEMBLY","ASYMMETRIC KEY","AUTHORIZATION","AVAILABILITY GROUP","BACKUP","BACKUP CERTIFICATE","BACKUP MASTER KEY","BACKUP SERVICE MASTER KEY","BEGIN CONVERSATION TIMER","BEGIN DIALOG CONVERSATION","BROKER PRIORITY","BULK INSERT","CERTIFICATE","CLOSE MASTER KEY","CLOSE SYMMETRIC KEY","COLLATE","COLUMN ENCRYPTION KEY","COLUMN MASTER KEY","COLUMNSTORE INDEX","CONCAT_NULL_YIELDS_NULL","CONTEXT_INFO","CONTRACT","CREDENTIAL","CRYPTOGRAPHIC PROVIDER","CURSOR_CLOSE_ON_COMMIT","DATABASE","DATABASE AUDIT SPECIFICATION","DATABASE ENCRYPTION KEY","DATABASE HADR","DATABASE SCOPED CONFIGURATION","DATABASE SCOPED CREDENTIAL","DATABASE SET","DATEFIRST","DATEFORMAT","DEADLOCK_PRIORITY","DENY","DENY XML","DISABLE TRIGGER","ENABLE TRIGGER","END CONVERSATION","ENDPOINT","EVENT NOTIFICATION","EVENT SESSION","EXECUTE AS","EXTERNAL DATA SOURCE","EXTERNAL FILE FORMAT","EXTERNAL LANGUAGE","EXTERNAL LIBRARY","EXTERNAL RESOURCE POOL","EXTERNAL TABLE","FIPS_FLAGGER","FMTONLY","FORCEPLAN","FULLTEXT CATALOG","FULLTEXT INDEX","FULLTEXT STOPLIST","FUNCTION","GET CONVERSATION GROUP","GET_TRANSMISSION_STATUS","GRANT","GRANT XML","IDENTITY_INSERT","IMPLICIT_TRANSACTIONS","INDEX","LANGUAGE","LOCK_TIMEOUT","LOGIN","MASTER KEY","MESSAGE TYPE","MOVE CONVERSATION","NOCOUNT","NOEXEC","NUMERIC_ROUNDABORT","OFFSETS","OPEN MASTER KEY","OPEN SYMMETRIC KEY","PARSEONLY","PARTITION FUNCTION","PARTITION SCHEME","PROCEDURE","QUERY_GOVERNOR_COST_LIMIT","QUEUE","QUOTED_IDENTIFIER","RECEIVE","REMOTE SERVICE BINDING","REMOTE_PROC_TRANSACTIONS","RESOURCE GOVERNOR","RESOURCE POOL","RESTORE","RESTORE FILELISTONLY","RESTORE HEADERONLY","RESTORE LABELONLY","RESTORE MASTER KEY","RESTORE REWINDONLY","RESTORE SERVICE MASTER KEY","RESTORE VERIFYONLY","REVERT","REVOKE","REVOKE XML","ROLE","ROUTE","ROWCOUNT","RULE","SCHEMA","SEARCH PROPERTY LIST","SECURITY POLICY","SELECTIVE XML INDEX","SEND","SENSITIVITY CLASSIFICATION","SEQUENCE","SERVER AUDIT","SERVER AUDIT SPECIFICATION","SERVER CONFIGURATION","SERVER ROLE","SERVICE","SERVICE MASTER KEY","SETUSER","SHOWPLAN_ALL","SHOWPLAN_TEXT","SHOWPLAN_XML","SIGNATURE","SPATIAL INDEX","STATISTICS","STATISTICS IO","STATISTICS PROFILE","STATISTICS TIME","STATISTICS XML","SYMMETRIC KEY","SYNONYM","TABLE","TABLE IDENTITY","TEXTSIZE","TRANSACTION ISOLATION LEVEL","TRIGGER","TYPE","UPDATE STATISTICS","USER","WORKLOAD GROUP","XACT_ABORT","XML INDEX","XML SCHEMA COLLECTION"]),ng=d(["UNION [ALL]","EXCEPT","INTERSECT"]),Rg=d(["JOIN","{LEFT | RIGHT | FULL} [OUTER] JOIN","{INNER | CROSS} JOIN","{CROSS | OUTER} APPLY"]),og=d(["ON {UPDATE | DELETE} [SET NULL | SET DEFAULT]","{ROWS | RANGE} BETWEEN"]),Ag={name:"transactsql",tokenizerOptions:{reservedSelect:rg,reservedClauses:[...sg,...AR],reservedSetOperations:ng,reservedJoins:Rg,reservedPhrases:og,reservedKeywords:Eg,reservedDataTypes:Tg,reservedFunctionNames:tg,nestedBlockComments:!0,stringTypes:[{quote:"''-qq",prefixes:["N"]}],identTypes:['""-qq',"[]"],identChars:{first:"#@",rest:"#@$"},paramTypes:{named:["@"],quoted:["@"]},operators:["%","&","|","^","~","!<","!>","+=","-=","*=","/=","%=","|=","&=","^=","::",":"]},formatOptions:{alwaysDenseOperators:["::"],onelineClauses:AR}},ig=["ADD","ALL","ALTER","ANALYZE","AND","AS","ASC","ASENSITIVE","BEFORE","BETWEEN","_BINARY","BOTH","BY","CALL","CASCADE","CASE","CHANGE","CHECK","COLLATE","COLUMN","CONDITION","CONSTRAINT","CONTINUE","CONVERT","CREATE","CROSS","CURRENT_DATE","CURRENT_TIME","CURRENT_TIMESTAMP","CURRENT_USER","CURSOR","DATABASE","DATABASES","DAY_HOUR","DAY_MICROSECOND","DAY_MINUTE","DAY_SECOND","DECLARE","DEFAULT","DELAYED","DELETE","DESC","DESCRIBE","DETERMINISTIC","DISTINCT","DISTINCTROW","DIV","DROP","DUAL","EACH","ELSE","ELSEIF","ENCLOSED","ESCAPED","EXCEPT","EXISTS","EXIT","EXPLAIN","EXTRA_JOIN","FALSE","FETCH","FOR","FORCE","FORCE_COMPILED_MODE","FORCE_INTERPRETER_MODE","FOREIGN","FROM","FULL","FULLTEXT","GRANT","GROUP","HAVING","HEARTBEAT_NO_LOGGING","HIGH_PRIORITY","HOUR_MICROSECOND","HOUR_MINUTE","HOUR_SECOND","IF","IGNORE","IN","INDEX","INFILE","INNER","INOUT","INSENSITIVE","INSERT","IN","_INTERNAL_DYNAMIC_TYPECAST","INTERSECT","INTERVAL","INTO","ITERATE","JOIN","KEY","KEYS","KILL","LEADING","LEAVE","LEFT","LIKE","LIMIT","LINES","LOAD","LOCALTIME","LOCALTIMESTAMP","LOCK","LOOP","LOW_PRIORITY","MATCH","MAXVALUE","MINUS","MINUTE_MICROSECOND","MINUTE_SECOND","MOD","MODIFIES","NATURAL","NO_QUERY_REWRITE","NOT","NO_WRITE_TO_BINLOG","NO_QUERY_REWRITE","NULL","ON","OPTIMIZE","OPTION","OPTIONALLY","OR","ORDER","OUT","OUTER","OUTFILE","OVER","PRIMARY","PROCEDURE","PURGE","RANGE","READ","READS","REFERENCES","REGEXP","RELEASE","RENAME","REPEAT","REPLACE","REQUIRE","RESTRICT","RETURN","REVOKE","RIGHT","RIGHT_ANTI_JOIN","RIGHT_SEMI_JOIN","RIGHT_STRAIGHT_JOIN","RLIKE","SCHEMA","SCHEMAS","SECOND_MICROSECOND","SELECT","SEMI_JOIN","SENSITIVE","SEPARATOR","SET","SHOW","SIGNAL","SPATIAL","SPECIFIC","SQL","SQL_BIG_RESULT","SQL_BUFFER_RESULT","SQL_CACHE","SQL_CALC_FOUND_ROWS","SQLEXCEPTION","SQL_NO_CACHE","SQL_NO_LOGGING","SQL_SMALL_RESULT","SQLSTATE","SQLWARNING","STRAIGHT_JOIN","TABLE","TERMINATED","THEN","TO","TRAILING","TRIGGER","TRUE","UNBOUNDED","UNDO","UNION","UNIQUE","UNLOCK","UPDATE","USAGE","USE","USING","UTC_DATE","UTC_TIME","UTC_TIMESTAMP","_UTF8","VALUES","WHEN","WHERE","WHILE","WINDOW","WITH","WITHIN","WRITE","XOR","YEAR_MONTH","ZEROFILL"],Sg=["BIGINT","BINARY","BIT","BLOB","CHAR","CHARACTER","DATETIME","DEC","DECIMAL","DOUBLE PRECISION","DOUBLE","ENUM","FIXED","FLOAT","FLOAT4","FLOAT8","INT","INT1","INT2","INT3","INT4","INT8","INTEGER","LONG","LONGBLOB","LONGTEXT","MEDIUMBLOB","MEDIUMINT","MEDIUMTEXT","MIDDLEINT","NATIONAL CHAR","NATIONAL VARCHAR","NUMERIC","PRECISION","REAL","SMALLINT","TEXT","TIME","TIMESTAMP","TINYBLOB","TINYINT","TINYTEXT","UNSIGNED","VARBINARY","VARCHAR","VARCHARACTER","YEAR"],Og=["ABS","ACOS","ADDDATE","ADDTIME","AES_DECRYPT","AES_ENCRYPT","ANY_VALUE","APPROX_COUNT_DISTINCT","APPROX_COUNT_DISTINCT_ACCUMULATE","APPROX_COUNT_DISTINCT_COMBINE","APPROX_COUNT_DISTINCT_ESTIMATE","APPROX_GEOGRAPHY_INTERSECTS","APPROX_PERCENTILE","ASCII","ASIN","ATAN","ATAN2","AVG","BIN","BINARY","BIT_AND","BIT_COUNT","BIT_OR","BIT_XOR","CAST","CEIL","CEILING","CHAR","CHARACTER_LENGTH","CHAR_LENGTH","CHARSET","COALESCE","COERCIBILITY","COLLATION","COLLECT","CONCAT","CONCAT_WS","CONNECTION_ID","CONV","CONVERT","CONVERT_TZ","COS","COT","COUNT","CUME_DIST","CURDATE","CURRENT_DATE","CURRENT_ROLE","CURRENT_TIME","CURRENT_TIMESTAMP","CURRENT_USER","CURTIME","DATABASE","DATE","DATE_ADD","DATEDIFF","DATE_FORMAT","DATE_SUB","DATE_TRUNC","DAY","DAYNAME","DAYOFMONTH","DAYOFWEEK","DAYOFYEAR","DECODE","DEFAULT","DEGREES","DENSE_RANK","DIV","DOT_PRODUCT","ELT","EUCLIDEAN_DISTANCE","EXP","EXTRACT","FIELD","FIRST","FIRST_VALUE","FLOOR","FORMAT","FOUND_ROWS","FROM_BASE64","FROM_DAYS","FROM_UNIXTIME","GEOGRAPHY_AREA","GEOGRAPHY_CONTAINS","GEOGRAPHY_DISTANCE","GEOGRAPHY_INTERSECTS","GEOGRAPHY_LATITUDE","GEOGRAPHY_LENGTH","GEOGRAPHY_LONGITUDE","GEOGRAPHY_POINT","GEOGRAPHY_WITHIN_DISTANCE","GEOMETRY_AREA","GEOMETRY_CONTAINS","GEOMETRY_DISTANCE","GEOMETRY_FILTER","GEOMETRY_INTERSECTS","GEOMETRY_LENGTH","GEOMETRY_POINT","GEOMETRY_WITHIN_DISTANCE","GEOMETRY_X","GEOMETRY_Y","GREATEST","GROUPING","GROUP_CONCAT","HEX","HIGHLIGHT","HOUR","ICU_VERSION","IF","IFNULL","INET_ATON","INET_NTOA","INET6_ATON","INET6_NTOA","INITCAP","INSERT","INSTR","INTERVAL","IS","IS NULL","JSON_AGG","JSON_ARRAY_CONTAINS_DOUBLE","JSON_ARRAY_CONTAINS_JSON","JSON_ARRAY_CONTAINS_STRING","JSON_ARRAY_PUSH_DOUBLE","JSON_ARRAY_PUSH_JSON","JSON_ARRAY_PUSH_STRING","JSON_DELETE_KEY","JSON_EXTRACT_DOUBLE","JSON_EXTRACT_JSON","JSON_EXTRACT_STRING","JSON_EXTRACT_BIGINT","JSON_GET_TYPE","JSON_LENGTH","JSON_SET_DOUBLE","JSON_SET_JSON","JSON_SET_STRING","JSON_SPLICE_DOUBLE","JSON_SPLICE_JSON","JSON_SPLICE_STRING","LAG","LAST_DAY","LAST_VALUE","LCASE","LEAD","LEAST","LEFT","LENGTH","LIKE","LN","LOCALTIME","LOCALTIMESTAMP","LOCATE","LOG","LOG10","LOG2","LPAD","LTRIM","MATCH","MAX","MD5","MEDIAN","MICROSECOND","MIN","MINUTE","MOD","MONTH","MONTHNAME","MONTHS_BETWEEN","NOT","NOW","NTH_VALUE","NTILE","NULLIF","OCTET_LENGTH","PERCENT_RANK","PERCENTILE_CONT","PERCENTILE_DISC","PI","PIVOT","POSITION","POW","POWER","QUARTER","QUOTE","RADIANS","RAND","RANK","REGEXP","REPEAT","REPLACE","REVERSE","RIGHT","RLIKE","ROUND","ROW_COUNT","ROW_NUMBER","RPAD","RTRIM","SCALAR","SCHEMA","SEC_TO_TIME","SHA1","SHA2","SIGMOID","SIGN","SIN","SLEEP","SPLIT","SOUNDEX","SOUNDS LIKE","SOURCE_POS_WAIT","SPACE","SQRT","STDDEV","STDDEV_POP","STDDEV_SAMP","STR_TO_DATE","SUBDATE","SUBSTR","SUBSTRING","SUBSTRING_INDEX","SUM","SYS_GUID","TAN","TIME","TIMEDIFF","TIME_BUCKET","TIME_FORMAT","TIMESTAMP","TIMESTAMPADD","TIMESTAMPDIFF","TIME_TO_SEC","TO_BASE64","TO_CHAR","TO_DAYS","TO_JSON","TO_NUMBER","TO_SECONDS","TO_TIMESTAMP","TRIM","TRUNC","TRUNCATE","UCASE","UNHEX","UNIX_TIMESTAMP","UPDATEXML","UPPER","UTC_DATE","UTC_TIME","UTC_TIMESTAMP","UUID","VALUES","VARIANCE","VAR_POP","VAR_SAMP","VECTOR_SUB","VERSION","WEEK","WEEKDAY","WEEKOFYEAR","YEAR"],ag=d(["SELECT [ALL | DISTINCT | DISTINCTROW]"]),Ig=d(["WITH","FROM","WHERE","GROUP BY","HAVING","PARTITION BY","ORDER BY","LIMIT","OFFSET","INSERT [IGNORE] [INTO]","VALUES","REPLACE [INTO]","ON DUPLICATE KEY UPDATE","SET","CREATE [OR REPLACE] [TEMPORARY] PROCEDURE [IF NOT EXISTS]","CREATE [OR REPLACE] [EXTERNAL] FUNCTION"]),iR=d(["CREATE [ROWSTORE] [REFERENCE | TEMPORARY | GLOBAL TEMPORARY] TABLE [IF NOT EXISTS]","CREATE VIEW","UPDATE","DELETE [FROM]","DROP [TEMPORARY] TABLE [IF EXISTS]","ALTER [ONLINE] TABLE","ADD [COLUMN]","ADD [UNIQUE] {INDEX | KEY}","DROP [COLUMN]","MODIFY [COLUMN]","CHANGE","RENAME [TO | AS]","TRUNCATE [TABLE]","ADD AGGREGATOR","ADD LEAF","AGGREGATOR SET AS MASTER","ALTER DATABASE","ALTER PIPELINE","ALTER RESOURCE POOL","ALTER USER","ALTER VIEW","ANALYZE TABLE","ATTACH DATABASE","ATTACH LEAF","ATTACH LEAF ALL","BACKUP DATABASE","BINLOG","BOOTSTRAP AGGREGATOR","CACHE INDEX","CALL","CHANGE","CHANGE MASTER TO","CHANGE REPLICATION FILTER","CHANGE REPLICATION SOURCE TO","CHECK BLOB CHECKSUM","CHECK TABLE","CHECKSUM TABLE","CLEAR ORPHAN DATABASES","CLONE","COMMIT","CREATE DATABASE","CREATE GROUP","CREATE INDEX","CREATE LINK","CREATE MILESTONE","CREATE PIPELINE","CREATE RESOURCE POOL","CREATE ROLE","CREATE USER","DEALLOCATE PREPARE","DESCRIBE","DETACH DATABASE","DETACH PIPELINE","DROP DATABASE","DROP FUNCTION","DROP INDEX","DROP LINK","DROP PIPELINE","DROP PROCEDURE","DROP RESOURCE POOL","DROP ROLE","DROP USER","DROP VIEW","EXECUTE","EXPLAIN","FLUSH","FORCE","GRANT","HANDLER","HELP","KILL CONNECTION","KILLALL QUERIES","LOAD DATA","LOAD INDEX INTO CACHE","LOAD XML","LOCK INSTANCE FOR BACKUP","LOCK TABLES","MASTER_POS_WAIT","OPTIMIZE TABLE","PREPARE","PURGE BINARY LOGS","REBALANCE PARTITIONS","RELEASE SAVEPOINT","REMOVE AGGREGATOR","REMOVE LEAF","REPAIR TABLE","REPLACE","REPLICATE DATABASE","RESET","RESET MASTER","RESET PERSIST","RESET REPLICA","RESET SLAVE","RESTART","RESTORE DATABASE","RESTORE REDUNDANCY","REVOKE","ROLLBACK","ROLLBACK TO SAVEPOINT","SAVEPOINT","SET CHARACTER SET","SET DEFAULT ROLE","SET NAMES","SET PASSWORD","SET RESOURCE GROUP","SET ROLE","SET TRANSACTION","SHOW","SHOW CHARACTER SET","SHOW COLLATION","SHOW COLUMNS","SHOW CREATE DATABASE","SHOW CREATE FUNCTION","SHOW CREATE PIPELINE","SHOW CREATE PROCEDURE","SHOW CREATE TABLE","SHOW CREATE USER","SHOW CREATE VIEW","SHOW DATABASES","SHOW ENGINE","SHOW ENGINES","SHOW ERRORS","SHOW FUNCTION CODE","SHOW FUNCTION STATUS","SHOW GRANTS","SHOW INDEX","SHOW MASTER STATUS","SHOW OPEN TABLES","SHOW PLUGINS","SHOW PRIVILEGES","SHOW PROCEDURE CODE","SHOW PROCEDURE STATUS","SHOW PROCESSLIST","SHOW PROFILE","SHOW PROFILES","SHOW RELAYLOG EVENTS","SHOW REPLICA STATUS","SHOW REPLICAS","SHOW SLAVE","SHOW SLAVE HOSTS","SHOW STATUS","SHOW TABLE STATUS","SHOW TABLES","SHOW VARIABLES","SHOW WARNINGS","SHUTDOWN","SNAPSHOT DATABASE","SOURCE_POS_WAIT","START GROUP_REPLICATION","START PIPELINE","START REPLICA","START SLAVE","START TRANSACTION","STOP GROUP_REPLICATION","STOP PIPELINE","STOP REPLICA","STOP REPLICATING","STOP SLAVE","TEST PIPELINE","UNLOCK INSTANCE","UNLOCK TABLES","USE","XA","ITERATE","LEAVE","LOOP","REPEAT","RETURN","WHILE"]),Ng=d(["UNION [ALL | DISTINCT]","EXCEPT","INTERSECT","MINUS"]),lg=d(["JOIN","{LEFT | RIGHT | FULL} [OUTER] JOIN","{INNER | CROSS} JOIN","NATURAL {LEFT | RIGHT} [OUTER] JOIN","STRAIGHT_JOIN"]),_g=d(["ON DELETE","ON UPDATE","CHARACTER SET","{ROWS | RANGE} BETWEEN","IDENTIFIED BY"]),Cg={name:"singlestoredb",tokenizerOptions:{reservedSelect:ag,reservedClauses:[...Ig,...iR],reservedSetOperations:Ng,reservedJoins:lg,reservedPhrases:_g,reservedKeywords:ig,reservedDataTypes:Sg,reservedFunctionNames:Og,stringTypes:['""-qq-bs',"''-qq-bs",{quote:"''-raw",prefixes:["B","X"],requirePrefix:!0}],identTypes:["``"],identChars:{first:"$",rest:"$",allowFirstCharNumber:!0},variableTypes:[{regex:"@@?[A-Za-z0-9_$]+"},{quote:"``",prefixes:["@"],requirePrefix:!0}],lineCommentTypes:["--","#"],operators:[":=","&","|","^","~","<<",">>","<=>","&&","||","::","::$","::%",":>","!:>","*.*"],postProcess:ls},formatOptions:{alwaysDenseOperators:["::","::$","::%"],onelineClauses:iR}},cg=["ABS","ACOS","ACOSH","ADD_MONTHS","ALL_USER_NAMES","ANY_VALUE","APPROX_COUNT_DISTINCT","APPROX_PERCENTILE","APPROX_PERCENTILE_ACCUMULATE","APPROX_PERCENTILE_COMBINE","APPROX_PERCENTILE_ESTIMATE","APPROX_TOP_K","APPROX_TOP_K_ACCUMULATE","APPROX_TOP_K_COMBINE","APPROX_TOP_K_ESTIMATE","APPROXIMATE_JACCARD_INDEX","APPROXIMATE_SIMILARITY","ARRAY_AGG","ARRAY_APPEND","ARRAY_CAT","ARRAY_COMPACT","ARRAY_CONSTRUCT","ARRAY_CONSTRUCT_COMPACT","ARRAY_CONTAINS","ARRAY_INSERT","ARRAY_INTERSECTION","ARRAY_POSITION","ARRAY_PREPEND","ARRAY_SIZE","ARRAY_SLICE","ARRAY_TO_STRING","ARRAY_UNION_AGG","ARRAY_UNIQUE_AGG","ARRAYS_OVERLAP","AS_ARRAY","AS_BINARY","AS_BOOLEAN","AS_CHAR","AS_VARCHAR","AS_DATE","AS_DECIMAL","AS_NUMBER","AS_DOUBLE","AS_REAL","AS_INTEGER","AS_OBJECT","AS_TIME","AS_TIMESTAMP_LTZ","AS_TIMESTAMP_NTZ","AS_TIMESTAMP_TZ","ASCII","ASIN","ASINH","ATAN","ATAN2","ATANH","AUTO_REFRESH_REGISTRATION_HISTORY","AUTOMATIC_CLUSTERING_HISTORY","AVG","BASE64_DECODE_BINARY","BASE64_DECODE_STRING","BASE64_ENCODE","BIT_LENGTH","BITAND","BITAND_AGG","BITMAP_BIT_POSITION","BITMAP_BUCKET_NUMBER","BITMAP_CONSTRUCT_AGG","BITMAP_COUNT","BITMAP_OR_AGG","BITNOT","BITOR","BITOR_AGG","BITSHIFTLEFT","BITSHIFTRIGHT","BITXOR","BITXOR_AGG","BOOLAND","BOOLAND_AGG","BOOLNOT","BOOLOR","BOOLOR_AGG","BOOLXOR","BOOLXOR_AGG","BUILD_SCOPED_FILE_URL","BUILD_STAGE_FILE_URL","CASE","CAST","CBRT","CEIL","CHARINDEX","CHECK_JSON","CHECK_XML","CHR","CHAR","COALESCE","COLLATE","COLLATION","COMPLETE_TASK_GRAPHS","COMPRESS","CONCAT","CONCAT_WS","CONDITIONAL_CHANGE_EVENT","CONDITIONAL_TRUE_EVENT","CONTAINS","CONVERT_TIMEZONE","COPY_HISTORY","CORR","COS","COSH","COT","COUNT","COUNT_IF","COVAR_POP","COVAR_SAMP","CUME_DIST","CURRENT_ACCOUNT","CURRENT_AVAILABLE_ROLES","CURRENT_CLIENT","CURRENT_DATABASE","CURRENT_DATE","CURRENT_IP_ADDRESS","CURRENT_REGION","CURRENT_ROLE","CURRENT_SCHEMA","CURRENT_SCHEMAS","CURRENT_SECONDARY_ROLES","CURRENT_SESSION","CURRENT_STATEMENT","CURRENT_TASK_GRAPHS","CURRENT_TIME","CURRENT_TIMESTAMP","CURRENT_TRANSACTION","CURRENT_USER","CURRENT_VERSION","CURRENT_WAREHOUSE","DATA_TRANSFER_HISTORY","DATABASE_REFRESH_HISTORY","DATABASE_REFRESH_PROGRESS","DATABASE_REFRESH_PROGRESS_BY_JOB","DATABASE_STORAGE_USAGE_HISTORY","DATE_FROM_PARTS","DATE_PART","DATE_TRUNC","DATEADD","DATEDIFF","DAYNAME","DECODE","DECOMPRESS_BINARY","DECOMPRESS_STRING","DECRYPT","DECRYPT_RAW","DEGREES","DENSE_RANK","DIV0","EDITDISTANCE","ENCRYPT","ENCRYPT_RAW","ENDSWITH","EQUAL_NULL","EXP","EXPLAIN_JSON","EXTERNAL_FUNCTIONS_HISTORY","EXTERNAL_TABLE_FILES","EXTERNAL_TABLE_FILE_REGISTRATION_HISTORY","EXTRACT","EXTRACT_SEMANTIC_CATEGORIES","FACTORIAL","FIRST_VALUE","FLATTEN","FLOOR","GENERATE_COLUMN_DESCRIPTION","GENERATOR","GET","GET_ABSOLUTE_PATH","GET_DDL","GET_IGNORE_CASE","GET_OBJECT_REFERENCES","GET_PATH","GET_PRESIGNED_URL","GET_RELATIVE_PATH","GET_STAGE_LOCATION","GETBIT","GREATEST","GROUPING","GROUPING_ID","HASH","HASH_AGG","HAVERSINE","HEX_DECODE_BINARY","HEX_DECODE_STRING","HEX_ENCODE","HLL","HLL_ACCUMULATE","HLL_COMBINE","HLL_ESTIMATE","HLL_EXPORT","HLL_IMPORT","HOUR","MINUTE","SECOND","IFF","IFNULL","ILIKE","ILIKE ANY","INFER_SCHEMA","INITCAP","INSERT","INVOKER_ROLE","INVOKER_SHARE","IS_ARRAY","IS_BINARY","IS_BOOLEAN","IS_CHAR","IS_VARCHAR","IS_DATE","IS_DATE_VALUE","IS_DECIMAL","IS_DOUBLE","IS_REAL","IS_GRANTED_TO_INVOKER_ROLE","IS_INTEGER","IS_NULL_VALUE","IS_OBJECT","IS_ROLE_IN_SESSION","IS_TIME","IS_TIMESTAMP_LTZ","IS_TIMESTAMP_NTZ","IS_TIMESTAMP_TZ","JAROWINKLER_SIMILARITY","JSON_EXTRACT_PATH_TEXT","KURTOSIS","LAG","LAST_DAY","LAST_QUERY_ID","LAST_TRANSACTION","LAST_VALUE","LEAD","LEAST","LEFT","LENGTH","LEN","LIKE","LIKE ALL","LIKE ANY","LISTAGG","LN","LOCALTIME","LOCALTIMESTAMP","LOG","LOGIN_HISTORY","LOGIN_HISTORY_BY_USER","LOWER","LPAD","LTRIM","MATERIALIZED_VIEW_REFRESH_HISTORY","MD5","MD5_HEX","MD5_BINARY","MD5_NUMBER — Obsoleted","MD5_NUMBER_LOWER64","MD5_NUMBER_UPPER64","MEDIAN","MIN","MAX","MINHASH","MINHASH_COMBINE","MOD","MODE","MONTHNAME","MONTHS_BETWEEN","NEXT_DAY","NORMAL","NTH_VALUE","NTILE","NULLIF","NULLIFZERO","NVL","NVL2","OBJECT_AGG","OBJECT_CONSTRUCT","OBJECT_CONSTRUCT_KEEP_NULL","OBJECT_DELETE","OBJECT_INSERT","OBJECT_KEYS","OBJECT_PICK","OCTET_LENGTH","PARSE_IP","PARSE_JSON","PARSE_URL","PARSE_XML","PERCENT_RANK","PERCENTILE_CONT","PERCENTILE_DISC","PI","PIPE_USAGE_HISTORY","POLICY_CONTEXT","POLICY_REFERENCES","POSITION","POW","POWER","PREVIOUS_DAY","QUERY_ACCELERATION_HISTORY","QUERY_HISTORY","QUERY_HISTORY_BY_SESSION","QUERY_HISTORY_BY_USER","QUERY_HISTORY_BY_WAREHOUSE","RADIANS","RANDOM","RANDSTR","RANK","RATIO_TO_REPORT","REGEXP","REGEXP_COUNT","REGEXP_INSTR","REGEXP_LIKE","REGEXP_REPLACE","REGEXP_SUBSTR","REGEXP_SUBSTR_ALL","REGR_AVGX","REGR_AVGY","REGR_COUNT","REGR_INTERCEPT","REGR_R2","REGR_SLOPE","REGR_SXX","REGR_SXY","REGR_SYY","REGR_VALX","REGR_VALY","REPEAT","REPLACE","REPLICATION_GROUP_REFRESH_HISTORY","REPLICATION_GROUP_REFRESH_PROGRESS","REPLICATION_GROUP_REFRESH_PROGRESS_BY_JOB","REPLICATION_GROUP_USAGE_HISTORY","REPLICATION_USAGE_HISTORY","REST_EVENT_HISTORY","RESULT_SCAN","REVERSE","RIGHT","RLIKE","ROUND","ROW_NUMBER","RPAD","RTRIM","RTRIMMED_LENGTH","SEARCH_OPTIMIZATION_HISTORY","SEQ1","SEQ2","SEQ4","SEQ8","SERVERLESS_TASK_HISTORY","SHA1","SHA1_HEX","SHA1_BINARY","SHA2","SHA2_HEX","SHA2_BINARY","SIGN","SIN","SINH","SKEW","SOUNDEX","SPACE","SPLIT","SPLIT_PART","SPLIT_TO_TABLE","SQRT","SQUARE","ST_AREA","ST_ASEWKB","ST_ASEWKT","ST_ASGEOJSON","ST_ASWKB","ST_ASBINARY","ST_ASWKT","ST_ASTEXT","ST_AZIMUTH","ST_CENTROID","ST_COLLECT","ST_CONTAINS","ST_COVEREDBY","ST_COVERS","ST_DIFFERENCE","ST_DIMENSION","ST_DISJOINT","ST_DISTANCE","ST_DWITHIN","ST_ENDPOINT","ST_ENVELOPE","ST_GEOGFROMGEOHASH","ST_GEOGPOINTFROMGEOHASH","ST_GEOGRAPHYFROMWKB","ST_GEOGRAPHYFROMWKT","ST_GEOHASH","ST_GEOMETRYFROMWKB","ST_GEOMETRYFROMWKT","ST_HAUSDORFFDISTANCE","ST_INTERSECTION","ST_INTERSECTS","ST_LENGTH","ST_MAKEGEOMPOINT","ST_GEOM_POINT","ST_MAKELINE","ST_MAKEPOINT","ST_POINT","ST_MAKEPOLYGON","ST_POLYGON","ST_NPOINTS","ST_NUMPOINTS","ST_PERIMETER","ST_POINTN","ST_SETSRID","ST_SIMPLIFY","ST_SRID","ST_STARTPOINT","ST_SYMDIFFERENCE","ST_UNION","ST_WITHIN","ST_X","ST_XMAX","ST_XMIN","ST_Y","ST_YMAX","ST_YMIN","STAGE_DIRECTORY_FILE_REGISTRATION_HISTORY","STAGE_STORAGE_USAGE_HISTORY","STARTSWITH","STDDEV","STDDEV_POP","STDDEV_SAMP","STRIP_NULL_VALUE","STRTOK","STRTOK_SPLIT_TO_TABLE","STRTOK_TO_ARRAY","SUBSTR","SUBSTRING","SUM","SYSDATE","SYSTEM$ABORT_SESSION","SYSTEM$ABORT_TRANSACTION","SYSTEM$AUTHORIZE_PRIVATELINK","SYSTEM$AUTHORIZE_STAGE_PRIVATELINK_ACCESS","SYSTEM$BEHAVIOR_CHANGE_BUNDLE_STATUS","SYSTEM$CANCEL_ALL_QUERIES","SYSTEM$CANCEL_QUERY","SYSTEM$CLUSTERING_DEPTH","SYSTEM$CLUSTERING_INFORMATION","SYSTEM$CLUSTERING_RATIO ","SYSTEM$CURRENT_USER_TASK_NAME","SYSTEM$DATABASE_REFRESH_HISTORY ","SYSTEM$DATABASE_REFRESH_PROGRESS","SYSTEM$DATABASE_REFRESH_PROGRESS_BY_JOB ","SYSTEM$DISABLE_BEHAVIOR_CHANGE_BUNDLE","SYSTEM$DISABLE_DATABASE_REPLICATION","SYSTEM$ENABLE_BEHAVIOR_CHANGE_BUNDLE","SYSTEM$ESTIMATE_QUERY_ACCELERATION","SYSTEM$ESTIMATE_SEARCH_OPTIMIZATION_COSTS","SYSTEM$EXPLAIN_JSON_TO_TEXT","SYSTEM$EXPLAIN_PLAN_JSON","SYSTEM$EXTERNAL_TABLE_PIPE_STATUS","SYSTEM$GENERATE_SAML_CSR","SYSTEM$GENERATE_SCIM_ACCESS_TOKEN","SYSTEM$GET_AWS_SNS_IAM_POLICY","SYSTEM$GET_PREDECESSOR_RETURN_VALUE","SYSTEM$GET_PRIVATELINK","SYSTEM$GET_PRIVATELINK_AUTHORIZED_ENDPOINTS","SYSTEM$GET_PRIVATELINK_CONFIG","SYSTEM$GET_SNOWFLAKE_PLATFORM_INFO","SYSTEM$GET_TAG","SYSTEM$GET_TAG_ALLOWED_VALUES","SYSTEM$GET_TAG_ON_CURRENT_COLUMN","SYSTEM$GET_TAG_ON_CURRENT_TABLE","SYSTEM$GLOBAL_ACCOUNT_SET_PARAMETER","SYSTEM$LAST_CHANGE_COMMIT_TIME","SYSTEM$LINK_ACCOUNT_OBJECTS_BY_NAME","SYSTEM$MIGRATE_SAML_IDP_REGISTRATION","SYSTEM$PIPE_FORCE_RESUME","SYSTEM$PIPE_STATUS","SYSTEM$REVOKE_PRIVATELINK","SYSTEM$REVOKE_STAGE_PRIVATELINK_ACCESS","SYSTEM$SET_RETURN_VALUE","SYSTEM$SHOW_OAUTH_CLIENT_SECRETS","SYSTEM$STREAM_GET_TABLE_TIMESTAMP","SYSTEM$STREAM_HAS_DATA","SYSTEM$TASK_DEPENDENTS_ENABLE","SYSTEM$TYPEOF","SYSTEM$USER_TASK_CANCEL_ONGOING_EXECUTIONS","SYSTEM$VERIFY_EXTERNAL_OAUTH_TOKEN","SYSTEM$WAIT","SYSTEM$WHITELIST","SYSTEM$WHITELIST_PRIVATELINK","TAG_REFERENCES","TAG_REFERENCES_ALL_COLUMNS","TAG_REFERENCES_WITH_LINEAGE","TAN","TANH","TASK_DEPENDENTS","TASK_HISTORY","TIME_FROM_PARTS","TIME_SLICE","TIMEADD","TIMEDIFF","TIMESTAMP_FROM_PARTS","TIMESTAMPADD","TIMESTAMPDIFF","TO_ARRAY","TO_BINARY","TO_BOOLEAN","TO_CHAR","TO_VARCHAR","TO_DATE","DATE","TO_DECIMAL","TO_NUMBER","TO_NUMERIC","TO_DOUBLE","TO_GEOGRAPHY","TO_GEOMETRY","TO_JSON","TO_OBJECT","TO_TIME","TIME","TO_TIMESTAMP","TO_TIMESTAMP_LTZ","TO_TIMESTAMP_NTZ","TO_TIMESTAMP_TZ","TO_VARIANT","TO_XML","TRANSLATE","TRIM","TRUNCATE","TRUNC","TRUNC","TRY_BASE64_DECODE_BINARY","TRY_BASE64_DECODE_STRING","TRY_CAST","TRY_HEX_DECODE_BINARY","TRY_HEX_DECODE_STRING","TRY_PARSE_JSON","TRY_TO_BINARY","TRY_TO_BOOLEAN","TRY_TO_DATE","TRY_TO_DECIMAL","TRY_TO_NUMBER","TRY_TO_NUMERIC","TRY_TO_DOUBLE","TRY_TO_GEOGRAPHY","TRY_TO_GEOMETRY","TRY_TO_TIME","TRY_TO_TIMESTAMP","TRY_TO_TIMESTAMP_LTZ","TRY_TO_TIMESTAMP_NTZ","TRY_TO_TIMESTAMP_TZ","TYPEOF","UNICODE","UNIFORM","UPPER","UUID_STRING","VALIDATE","VALIDATE_PIPE_LOAD","VAR_POP","VAR_SAMP","VARIANCE","VARIANCE_SAMP","VARIANCE_POP","WAREHOUSE_LOAD_HISTORY","WAREHOUSE_METERING_HISTORY","WIDTH_BUCKET","XMLGET","YEAR","YEAROFWEEK","YEAROFWEEKISO","DAY","DAYOFMONTH","DAYOFWEEK","DAYOFWEEKISO","DAYOFYEAR","WEEK","WEEK","WEEKOFYEAR","WEEKISO","MONTH","QUARTER","ZEROIFNULL","ZIPF"],Lg=["ACCOUNT","ALL","ALTER","AND","ANY","AS","BETWEEN","BY","CASE","CAST","CHECK","COLUMN","CONNECT","CONNECTION","CONSTRAINT","CREATE","CROSS","CURRENT","CURRENT_DATE","CURRENT_TIME","CURRENT_TIMESTAMP","CURRENT_USER","DATABASE","DELETE","DISTINCT","DROP","ELSE","EXISTS","FALSE","FOLLOWING","FOR","FROM","FULL","GRANT","GROUP","GSCLUSTER","HAVING","ILIKE","IN","INCREMENT","INNER","INSERT","INTERSECT","INTO","IS","ISSUE","JOIN","LATERAL","LEFT","LIKE","LOCALTIME","LOCALTIMESTAMP","MINUS","NATURAL","NOT","NULL","OF","ON","OR","ORDER","ORGANIZATION","QUALIFY","REGEXP","REVOKE","RIGHT","RLIKE","ROW","ROWS","SAMPLE","SCHEMA","SELECT","SET","SOME","START","TABLE","TABLESAMPLE","THEN","TO","TRIGGER","TRUE","TRY_CAST","UNION","UNIQUE","UPDATE","USING","VALUES","VIEW","WHEN","WHENEVER","WHERE","WITH","COMMENT"],ug=["NUMBER","DECIMAL","NUMERIC","INT","INTEGER","BIGINT","SMALLINT","TINYINT","BYTEINT","FLOAT","FLOAT4","FLOAT8","DOUBLE","DOUBLE PRECISION","REAL","VARCHAR","CHAR","CHARACTER","STRING","TEXT","BINARY","VARBINARY","BOOLEAN","DATE","DATETIME","TIME","TIMESTAMP","TIMESTAMP_LTZ","TIMESTAMP_NTZ","TIMESTAMP","TIMESTAMP_TZ","VARIANT","OBJECT","ARRAY","GEOGRAPHY","GEOMETRY"],pg=d(["SELECT [ALL | DISTINCT]"]),fg=d(["WITH [RECURSIVE]","FROM","WHERE","GROUP BY","HAVING","PARTITION BY","ORDER BY","QUALIFY","LIMIT","OFFSET","FETCH [FIRST | NEXT]","INSERT [OVERWRITE] [ALL INTO | INTO | ALL | FIRST]","{THEN | ELSE} INTO","VALUES","SET","CLUSTER BY","[WITH] {MASKING POLICY | TAG | ROW ACCESS POLICY}","COPY GRANTS","USING TEMPLATE","MERGE INTO","WHEN MATCHED [AND]","THEN {UPDATE SET | DELETE}","WHEN NOT MATCHED THEN INSERT"]),SR=d(["CREATE [OR REPLACE] [VOLATILE] TABLE [IF NOT EXISTS]","CREATE [OR REPLACE] [LOCAL | GLOBAL] {TEMP|TEMPORARY} TABLE [IF NOT EXISTS]","CREATE [OR REPLACE] [SECURE] [RECURSIVE] VIEW [IF NOT EXISTS]","UPDATE","DELETE FROM","DROP TABLE [IF EXISTS]","ALTER TABLE [IF EXISTS]","RENAME TO","SWAP WITH","[SUSPEND | RESUME] RECLUSTER","DROP CLUSTERING KEY","ADD [COLUMN]","RENAME COLUMN","{ALTER | MODIFY} [COLUMN]","DROP [COLUMN]","{ADD | ALTER | MODIFY | DROP} [CONSTRAINT]","RENAME CONSTRAINT","{ADD | DROP} SEARCH OPTIMIZATION","{SET | UNSET} TAG","{ADD | DROP} ROW ACCESS POLICY","DROP ALL ROW ACCESS POLICIES","{SET | DROP} DEFAULT","{SET | DROP} NOT NULL","[SET DATA] TYPE","UNSET COMMENT","{SET | UNSET} MASKING POLICY","TRUNCATE [TABLE] [IF EXISTS]","ALTER ACCOUNT","ALTER API INTEGRATION","ALTER CONNECTION","ALTER DATABASE","ALTER EXTERNAL TABLE","ALTER FAILOVER GROUP","ALTER FILE FORMAT","ALTER FUNCTION","ALTER INTEGRATION","ALTER MASKING POLICY","ALTER MATERIALIZED VIEW","ALTER NETWORK POLICY","ALTER NOTIFICATION INTEGRATION","ALTER PIPE","ALTER PROCEDURE","ALTER REPLICATION GROUP","ALTER RESOURCE MONITOR","ALTER ROLE","ALTER ROW ACCESS POLICY","ALTER SCHEMA","ALTER SECURITY INTEGRATION","ALTER SEQUENCE","ALTER SESSION","ALTER SESSION POLICY","ALTER SHARE","ALTER STAGE","ALTER STORAGE INTEGRATION","ALTER STREAM","ALTER TAG","ALTER TASK","ALTER USER","ALTER VIEW","ALTER WAREHOUSE","BEGIN","CALL","COMMIT","COPY INTO","CREATE ACCOUNT","CREATE API INTEGRATION","CREATE CONNECTION","CREATE DATABASE","CREATE EXTERNAL FUNCTION","CREATE EXTERNAL TABLE","CREATE FAILOVER GROUP","CREATE FILE FORMAT","CREATE FUNCTION","CREATE INTEGRATION","CREATE MANAGED ACCOUNT","CREATE MASKING POLICY","CREATE MATERIALIZED VIEW","CREATE NETWORK POLICY","CREATE NOTIFICATION INTEGRATION","CREATE PIPE","CREATE PROCEDURE","CREATE REPLICATION GROUP","CREATE RESOURCE MONITOR","CREATE ROLE","CREATE ROW ACCESS POLICY","CREATE SCHEMA","CREATE SECURITY INTEGRATION","CREATE SEQUENCE","CREATE SESSION POLICY","CREATE SHARE","CREATE STAGE","CREATE STORAGE INTEGRATION","CREATE STREAM","CREATE TAG","CREATE TASK","CREATE USER","CREATE WAREHOUSE","DELETE","DESCRIBE DATABASE","DESCRIBE EXTERNAL TABLE","DESCRIBE FILE FORMAT","DESCRIBE FUNCTION","DESCRIBE INTEGRATION","DESCRIBE MASKING POLICY","DESCRIBE MATERIALIZED VIEW","DESCRIBE NETWORK POLICY","DESCRIBE PIPE","DESCRIBE PROCEDURE","DESCRIBE RESULT","DESCRIBE ROW ACCESS POLICY","DESCRIBE SCHEMA","DESCRIBE SEQUENCE","DESCRIBE SESSION POLICY","DESCRIBE SHARE","DESCRIBE STAGE","DESCRIBE STREAM","DESCRIBE TABLE","DESCRIBE TASK","DESCRIBE TRANSACTION","DESCRIBE USER","DESCRIBE VIEW","DESCRIBE WAREHOUSE","DROP CONNECTION","DROP DATABASE","DROP EXTERNAL TABLE","DROP FAILOVER GROUP","DROP FILE FORMAT","DROP FUNCTION","DROP INTEGRATION","DROP MANAGED ACCOUNT","DROP MASKING POLICY","DROP MATERIALIZED VIEW","DROP NETWORK POLICY","DROP PIPE","DROP PROCEDURE","DROP REPLICATION GROUP","DROP RESOURCE MONITOR","DROP ROLE","DROP ROW ACCESS POLICY","DROP SCHEMA","DROP SEQUENCE","DROP SESSION POLICY","DROP SHARE","DROP STAGE","DROP STREAM","DROP TAG","DROP TASK","DROP USER","DROP VIEW","DROP WAREHOUSE","EXECUTE IMMEDIATE","EXECUTE TASK","EXPLAIN","GET","GRANT OWNERSHIP","GRANT ROLE","INSERT","LIST","MERGE","PUT","REMOVE","REVOKE ROLE","ROLLBACK","SHOW COLUMNS","SHOW CONNECTIONS","SHOW DATABASES","SHOW DATABASES IN FAILOVER GROUP","SHOW DATABASES IN REPLICATION GROUP","SHOW DELEGATED AUTHORIZATIONS","SHOW EXTERNAL FUNCTIONS","SHOW EXTERNAL TABLES","SHOW FAILOVER GROUPS","SHOW FILE FORMATS","SHOW FUNCTIONS","SHOW GLOBAL ACCOUNTS","SHOW GRANTS","SHOW INTEGRATIONS","SHOW LOCKS","SHOW MANAGED ACCOUNTS","SHOW MASKING POLICIES","SHOW MATERIALIZED VIEWS","SHOW NETWORK POLICIES","SHOW OBJECTS","SHOW ORGANIZATION ACCOUNTS","SHOW PARAMETERS","SHOW PIPES","SHOW PRIMARY KEYS","SHOW PROCEDURES","SHOW REGIONS","SHOW REPLICATION ACCOUNTS","SHOW REPLICATION DATABASES","SHOW REPLICATION GROUPS","SHOW RESOURCE MONITORS","SHOW ROLES","SHOW ROW ACCESS POLICIES","SHOW SCHEMAS","SHOW SEQUENCES","SHOW SESSION POLICIES","SHOW SHARES","SHOW SHARES IN FAILOVER GROUP","SHOW SHARES IN REPLICATION GROUP","SHOW STAGES","SHOW STREAMS","SHOW TABLES","SHOW TAGS","SHOW TASKS","SHOW TRANSACTIONS","SHOW USER FUNCTIONS","SHOW USERS","SHOW VARIABLES","SHOW VIEWS","SHOW WAREHOUSES","TRUNCATE MATERIALIZED VIEW","UNDROP DATABASE","UNDROP SCHEMA","UNDROP TABLE","UNDROP TAG","UNSET","USE DATABASE","USE ROLE","USE SCHEMA","USE SECONDARY ROLES","USE WAREHOUSE"]),Pg=d(["UNION [ALL]","MINUS","EXCEPT","INTERSECT"]),Dg=d(["[INNER] JOIN","[NATURAL] {LEFT | RIGHT | FULL} [OUTER] JOIN","{CROSS | NATURAL} JOIN"]),dg=d(["{ROWS | RANGE} BETWEEN","ON {UPDATE | DELETE} [SET NULL | SET DEFAULT]"]),Mg={name:"snowflake",tokenizerOptions:{reservedSelect:pg,reservedClauses:[...fg,...SR],reservedSetOperations:Pg,reservedJoins:Dg,reservedPhrases:dg,reservedKeywords:Lg,reservedDataTypes:ug,reservedFunctionNames:cg,stringTypes:["$$","''-qq-bs"],identTypes:['""-qq'],variableTypes:[{regex:"[$][1-9]\\d*"},{regex:"[$][_a-zA-Z][_a-zA-Z0-9$]*"}],extraParens:["[]"],identChars:{rest:"$"},lineCommentTypes:["--","//"],operators:["%","::","||",":","=>"]},formatOptions:{alwaysDenseOperators:[":","::"],onelineClauses:SR}},bE=e=>e[e.length-1],vA=e=>e.sort((t,E)=>E.length-t.length||t.localeCompare(E)),iT=e=>e.replace(/\s+/gu," "),er=e=>/\n/.test(e),tt=e=>e.replace(/[.*+?^${}()|[\]\\]/gu,"\\$&"),aR=/\s+/uy,$t=e=>new RegExp(`(?:${e})`,"uy"),Ug=e=>e.split("").map(t=>/ /gu.test(t)?"\\s+":`[${t.toUpperCase()}${t.toLowerCase()}]`).join(""),hg=e=>e+"(?:-"+e+")*",gg=({prefixes:e,requirePrefix:t})=>`(?:${e.map(Ug).join("|")}${t?"":"|"})`,Gg=e=>new RegExp(`(?:${e.map(tt).join("|")}).*?(?=\r
28
+ `,A+=N.map(function(W,j){return Q(this.line-N.length+j+1,H)+" "+W},this).join(`
29
+ `),A+=`
30
+ `+Q("",H+C)+`^
31
+ `,A}else return A+" at index "+(this.index-1);function Q(W,j){var ee=String(W);return Array(j-ee.length+1).join(" ")+ee}};function n(i,A,O){if(i instanceof T)var N=i,O=A;else var N=T.fromCompiled(i,A);this.grammar=N,this.options={keepHistory:!1,lexer:N.lexer||new r};for(var l in O||{})this.options[l]=O[l];this.lexer=this.options.lexer,this.lexerState=void 0;var C=new s(N,0);this.table=[C],C.wants[N.start]=[],C.predict(N.start),C.process(),this.current=0}n.fail={},n.prototype.feed=function(i){var A=this.lexer;A.reset(i,this.lexerState);for(var O;;){try{if(O=A.next(),!O)break}catch(ie){var H=new s(this.grammar,this.current+1);this.table.push(H);var N=new Error(this.reportLexerError(ie));throw N.offset=this.current,N.token=ie.token,N}var l=this.table[this.current];this.options.keepHistory||delete this.table[this.current-1];var C=this.current+1,H=new s(this.grammar,C);this.table.push(H);for(var Q=O.text!==void 0?O.text:O.value,W=A.constructor===r?O.value:O,j=l.scannable,ee=j.length;ee--;){var x=j[ee],k=x.rule.symbols[x.dot];if(k.test?k.test(W):k.type?k.type===O.type:k.literal===Q){var Ie=x.nextState({data:W,token:O,isToken:!0,reference:C-1});H.states.push(Ie)}}if(H.process(),H.states.length===0){var N=new Error(this.reportError(O));throw N.offset=this.current,N.token=O,N}this.options.keepHistory&&(l.lexerState=A.save()),this.current++}return l&&(this.lexerState=A.save()),this.results=this.finish(),this},n.prototype.reportLexerError=function(i){var A,O,N=i.token;return N?(A="input "+JSON.stringify(N.text[0])+" (lexer error)",O=this.lexer.formatError(N,"Syntax error")):(A="input (lexer error)",O=i.message),this.reportErrorCommon(O,A)},n.prototype.reportError=function(i){var A=(i.type?i.type+" token: ":"")+JSON.stringify(i.value!==void 0?i.value:i),O=this.lexer.formatError(i,"Syntax error");return this.reportErrorCommon(O,A)},n.prototype.reportErrorCommon=function(i,A){var O=[];O.push(i);var N=this.table.length-2,l=this.table[N],C=l.states.filter(function(Q){var W=Q.rule.symbols[Q.dot];return W&&typeof W!="string"});if(C.length===0)O.push("Unexpected "+A+`. I did not expect any more input. Here is the state of my parse table:
32
+ `),this.displayStateStack(l.states,O);else{O.push("Unexpected "+A+`. Instead, I was expecting to see one of the following:
33
+ `);var H=C.map(function(Q){return this.buildFirstStateStack(Q,[])||[Q]},this);H.forEach(function(Q){var W=Q[0],j=W.rule.symbols[W.dot],ee=this.getSymbolDisplay(j);O.push("A "+ee+" based on:"),this.displayStateStack(Q,O)},this)}return O.push(""),O.join(`
34
+ `)},n.prototype.displayStateStack=function(i,A){for(var O,N=0,l=0;l<i.length;l++){var C=i[l],H=C.rule.toString(C.dot);H===O?N++:(N>0&&A.push(" ^ "+N+" more lines identical to this"),N=0,A.push(" "+H)),O=H}},n.prototype.getSymbolDisplay=function(i){return R(i)},n.prototype.buildFirstStateStack=function(i,A){if(A.indexOf(i)!==-1)return null;if(i.wantedBy.length===0)return[i];var O=i.wantedBy[0],N=[i].concat(A),l=this.buildFirstStateStack(O,N);return l===null?null:[i].concat(l)},n.prototype.save=function(){var i=this.table[this.current];return i.lexerState=this.lexerState,i},n.prototype.restore=function(i){var A=i.index;this.current=A,this.table[A]=i,this.table.splice(A+1),this.lexerState=i.lexerState,this.results=this.finish()},n.prototype.rewind=function(i){if(!this.options.keepHistory)throw new Error("set option `keepHistory` to enable rewinding");this.restore(this.table[i])},n.prototype.finish=function(){var i=[],A=this.grammar.start,O=this.table[this.table.length-1];return O.states.forEach(function(N){N.rule.name===A&&N.dot===N.rule.symbols.length&&N.reference===0&&N.data!==n.fail&&i.push(N)}),i.map(function(N){return N.data})};function R(i){var A=typeof i;if(A==="string")return i;if(A==="object"){if(i.literal)return JSON.stringify(i.literal);if(i instanceof RegExp)return"character matching "+i;if(i.type)return i.type+" token";if(i.test)return"token matching "+String(i.test);throw new Error("Unknown symbol type: "+i)}}function o(i){var A=typeof i;if(A==="string")return i;if(A==="object"){if(i.literal)return JSON.stringify(i.literal);if(i instanceof RegExp)return i.toString();if(i.type)return"%"+i.type;if(i.test)return"<"+String(i.test)+">";throw new Error("Unknown symbol type: "+i)}}return{Parser:n,Grammar:T,Rule:t}})})(AA);var cc=AA.exports;const uc=yT(cc);var iA=Object.defineProperty,pc=Object.defineProperties,fc=Object.getOwnPropertyDescriptors,Ns=Object.getOwnPropertySymbols,SA=Object.prototype.hasOwnProperty,OA=Object.prototype.propertyIsEnumerable,mn=(e,t,E)=>t in e?iA(e,t,{enumerable:!0,configurable:!0,writable:!0,value:E}):e[t]=E,me=(e,t)=>{for(var E in t||(t={}))SA.call(t,E)&&mn(e,E,t[E]);if(Ns)for(var E of Ns(t))OA.call(t,E)&&mn(e,E,t[E]);return e},Ye=(e,t)=>pc(e,fc(t)),Dc=(e,t)=>{var E={};for(var s in e)SA.call(e,s)&&t.indexOf(s)<0&&(E[s]=e[s]);if(e!=null&&Ns)for(var s of Ns(e))t.indexOf(s)<0&&OA.call(e,s)&&(E[s]=e[s]);return E},Pc=(e,t)=>{for(var E in t)iA(e,E,{get:t[E],enumerable:!0})},IA={};Pc(IA,{bigquery:()=>Wc,db2:()=>Eu,db2i:()=>Su,hive:()=>cu,mariadb:()=>hu,mysql:()=>Fu,n1ql:()=>Ep,plsql:()=>Sp,postgresql:()=>up,redshift:()=>Gp,singlestoredb:()=>mf,snowflake:()=>xf,spark:()=>Yp,sql:()=>Tf,sqlite:()=>qp,tidb:()=>Ju,transactsql:()=>ff,trino:()=>af});var u=e=>e.flatMap(dc),dc=e=>ZE(Uc(e)).map(Mc),Mc=e=>e.replace(/ +/g," ").trim(),Uc=e=>({type:"mandatory_block",items:lr(e,0)[0]}),lr=(e,t,E)=>{const s=[];for(;e[t];){const[T,r]=hc(e,t);if(s.push(T),t=r,e[t]==="|")t++;else if(e[t]==="}"||e[t]==="]"){if(E!==e[t])throw new Error(`Unbalanced parenthesis in: ${e}`);return t++,[s,t]}else if(t===e.length){if(E)throw new Error(`Unbalanced parenthesis in: ${e}`);return[s,t]}else throw new Error(`Unexpected "${e[t]}"`)}return[s,t]},hc=(e,t)=>{const E=[];for(;;){const[s,T]=Gc(e,t);if(s)E.push(s),t=T;else break}return E.length===1?[E[0],t]:[{type:"concatenation",items:E},t]},Gc=(e,t)=>{if(e[t]==="{")return gc(e,t+1);if(e[t]==="[")return mc(e,t+1);{let E="";for(;e[t]&&/[A-Za-z0-9_ ]/.test(e[t]);)E+=e[t],t++;return[E,t]}},gc=(e,t)=>{const[E,s]=lr(e,t,"}");return[{type:"mandatory_block",items:E},s]},mc=(e,t)=>{const[E,s]=lr(e,t,"]");return[{type:"optional_block",items:E},s]},ZE=e=>{if(typeof e=="string")return[e];if(e.type==="concatenation")return e.items.map(ZE).reduce(Hc,[""]);if(e.type==="mandatory_block")return e.items.flatMap(ZE);if(e.type==="optional_block")return["",...e.items.flatMap(ZE)];throw new Error(`Unknown node type: ${e}`)},Hc=(e,t)=>{const E=[];for(const s of e)for(const T of t)E.push(s+T);return E},aA=(e=>(e.QUOTED_IDENTIFIER="QUOTED_IDENTIFIER",e.IDENTIFIER="IDENTIFIER",e.STRING="STRING",e.VARIABLE="VARIABLE",e.RESERVED_DATA_TYPE="RESERVED_DATA_TYPE",e.RESERVED_PARAMETERIZED_DATA_TYPE="RESERVED_PARAMETERIZED_DATA_TYPE",e.RESERVED_KEYWORD="RESERVED_KEYWORD",e.RESERVED_FUNCTION_NAME="RESERVED_FUNCTION_NAME",e.RESERVED_PHRASE="RESERVED_PHRASE",e.RESERVED_SET_OPERATION="RESERVED_SET_OPERATION",e.RESERVED_CLAUSE="RESERVED_CLAUSE",e.RESERVED_SELECT="RESERVED_SELECT",e.RESERVED_JOIN="RESERVED_JOIN",e.ARRAY_IDENTIFIER="ARRAY_IDENTIFIER",e.ARRAY_KEYWORD="ARRAY_KEYWORD",e.CASE="CASE",e.END="END",e.WHEN="WHEN",e.ELSE="ELSE",e.THEN="THEN",e.LIMIT="LIMIT",e.BETWEEN="BETWEEN",e.AND="AND",e.OR="OR",e.XOR="XOR",e.OPERATOR="OPERATOR",e.COMMA="COMMA",e.ASTERISK="ASTERISK",e.PROPERTY_ACCESS_OPERATOR="PROPERTY_ACCESS_OPERATOR",e.OPEN_PAREN="OPEN_PAREN",e.CLOSE_PAREN="CLOSE_PAREN",e.LINE_COMMENT="LINE_COMMENT",e.BLOCK_COMMENT="BLOCK_COMMENT",e.DISABLE_COMMENT="DISABLE_COMMENT",e.NUMBER="NUMBER",e.NAMED_PARAMETER="NAMED_PARAMETER",e.QUOTED_PARAMETER="QUOTED_PARAMETER",e.NUMBERED_PARAMETER="NUMBERED_PARAMETER",e.POSITIONAL_PARAMETER="POSITIONAL_PARAMETER",e.CUSTOM_PARAMETER="CUSTOM_PARAMETER",e.DELIMITER="DELIMITER",e.EOF="EOF",e))(aA||{}),NA=e=>({type:"EOF",raw:"«EOF»",text:"«EOF»",start:e}),oE=NA(1/0),Qt=e=>t=>t.type===e.type&&t.text===e.text,Wt={ARRAY:Qt({text:"ARRAY",type:"RESERVED_DATA_TYPE"}),BY:Qt({text:"BY",type:"RESERVED_KEYWORD"}),SET:Qt({text:"SET",type:"RESERVED_CLAUSE"}),STRUCT:Qt({text:"STRUCT",type:"RESERVED_DATA_TYPE"}),WINDOW:Qt({text:"WINDOW",type:"RESERVED_CLAUSE"}),VALUES:Qt({text:"VALUES",type:"RESERVED_CLAUSE"})},lA=e=>e==="RESERVED_DATA_TYPE"||e==="RESERVED_KEYWORD"||e==="RESERVED_FUNCTION_NAME"||e==="RESERVED_PHRASE"||e==="RESERVED_CLAUSE"||e==="RESERVED_SELECT"||e==="RESERVED_SET_OPERATION"||e==="RESERVED_JOIN"||e==="ARRAY_KEYWORD"||e==="CASE"||e==="END"||e==="WHEN"||e==="ELSE"||e==="THEN"||e==="LIMIT"||e==="BETWEEN"||e==="AND"||e==="OR"||e==="XOR",Bc=e=>e==="AND"||e==="OR"||e==="XOR",bc=["KEYS.NEW_KEYSET","KEYS.ADD_KEY_FROM_RAW_BYTES","AEAD.DECRYPT_BYTES","AEAD.DECRYPT_STRING","AEAD.ENCRYPT","KEYS.KEYSET_CHAIN","KEYS.KEYSET_FROM_JSON","KEYS.KEYSET_TO_JSON","KEYS.ROTATE_KEYSET","KEYS.KEYSET_LENGTH","ANY_VALUE","ARRAY_AGG","AVG","CORR","COUNT","COUNTIF","COVAR_POP","COVAR_SAMP","MAX","MIN","ST_CLUSTERDBSCAN","STDDEV_POP","STDDEV_SAMP","STRING_AGG","SUM","VAR_POP","VAR_SAMP","ANY_VALUE","ARRAY_AGG","ARRAY_CONCAT_AGG","AVG","BIT_AND","BIT_OR","BIT_XOR","COUNT","COUNTIF","LOGICAL_AND","LOGICAL_OR","MAX","MIN","STRING_AGG","SUM","APPROX_COUNT_DISTINCT","APPROX_QUANTILES","APPROX_TOP_COUNT","APPROX_TOP_SUM","ARRAY_CONCAT","ARRAY_LENGTH","ARRAY_TO_STRING","GENERATE_ARRAY","GENERATE_DATE_ARRAY","GENERATE_TIMESTAMP_ARRAY","ARRAY_REVERSE","OFFSET","SAFE_OFFSET","ORDINAL","SAFE_ORDINAL","BIT_COUNT","PARSE_BIGNUMERIC","PARSE_NUMERIC","SAFE_CAST","CURRENT_DATE","EXTRACT","DATE","DATE_ADD","DATE_SUB","DATE_DIFF","DATE_TRUNC","DATE_FROM_UNIX_DATE","FORMAT_DATE","LAST_DAY","PARSE_DATE","UNIX_DATE","CURRENT_DATETIME","DATETIME","EXTRACT","DATETIME_ADD","DATETIME_SUB","DATETIME_DIFF","DATETIME_TRUNC","FORMAT_DATETIME","LAST_DAY","PARSE_DATETIME","ERROR","EXTERNAL_QUERY","S2_CELLIDFROMPOINT","S2_COVERINGCELLIDS","ST_ANGLE","ST_AREA","ST_ASBINARY","ST_ASGEOJSON","ST_ASTEXT","ST_AZIMUTH","ST_BOUNDARY","ST_BOUNDINGBOX","ST_BUFFER","ST_BUFFERWITHTOLERANCE","ST_CENTROID","ST_CENTROID_AGG","ST_CLOSESTPOINT","ST_CLUSTERDBSCAN","ST_CONTAINS","ST_CONVEXHULL","ST_COVEREDBY","ST_COVERS","ST_DIFFERENCE","ST_DIMENSION","ST_DISJOINT","ST_DISTANCE","ST_DUMP","ST_DWITHIN","ST_ENDPOINT","ST_EQUALS","ST_EXTENT","ST_EXTERIORRING","ST_GEOGFROM","ST_GEOGFROMGEOJSON","ST_GEOGFROMTEXT","ST_GEOGFROMWKB","ST_GEOGPOINT","ST_GEOGPOINTFROMGEOHASH","ST_GEOHASH","ST_GEOMETRYTYPE","ST_INTERIORRINGS","ST_INTERSECTION","ST_INTERSECTS","ST_INTERSECTSBOX","ST_ISCOLLECTION","ST_ISEMPTY","ST_LENGTH","ST_MAKELINE","ST_MAKEPOLYGON","ST_MAKEPOLYGONORIENTED","ST_MAXDISTANCE","ST_NPOINTS","ST_NUMGEOMETRIES","ST_NUMPOINTS","ST_PERIMETER","ST_POINTN","ST_SIMPLIFY","ST_SNAPTOGRID","ST_STARTPOINT","ST_TOUCHES","ST_UNION","ST_UNION_AGG","ST_WITHIN","ST_X","ST_Y","FARM_FINGERPRINT","MD5","SHA1","SHA256","SHA512","HLL_COUNT.INIT","HLL_COUNT.MERGE","HLL_COUNT.MERGE_PARTIAL","HLL_COUNT.EXTRACT","MAKE_INTERVAL","EXTRACT","JUSTIFY_DAYS","JUSTIFY_HOURS","JUSTIFY_INTERVAL","JSON_EXTRACT","JSON_QUERY","JSON_EXTRACT_SCALAR","JSON_VALUE","JSON_EXTRACT_ARRAY","JSON_QUERY_ARRAY","JSON_EXTRACT_STRING_ARRAY","JSON_VALUE_ARRAY","TO_JSON_STRING","ABS","SIGN","IS_INF","IS_NAN","IEEE_DIVIDE","RAND","SQRT","POW","POWER","EXP","LN","LOG","LOG10","GREATEST","LEAST","DIV","SAFE_DIVIDE","SAFE_MULTIPLY","SAFE_NEGATE","SAFE_ADD","SAFE_SUBTRACT","MOD","ROUND","TRUNC","CEIL","CEILING","FLOOR","COS","COSH","ACOS","ACOSH","SIN","SINH","ASIN","ASINH","TAN","TANH","ATAN","ATANH","ATAN2","RANGE_BUCKET","FIRST_VALUE","LAST_VALUE","NTH_VALUE","LEAD","LAG","PERCENTILE_CONT","PERCENTILE_DISC","NET.IP_FROM_STRING","NET.SAFE_IP_FROM_STRING","NET.IP_TO_STRING","NET.IP_NET_MASK","NET.IP_TRUNC","NET.IPV4_FROM_INT64","NET.IPV4_TO_INT64","NET.HOST","NET.PUBLIC_SUFFIX","NET.REG_DOMAIN","RANK","DENSE_RANK","PERCENT_RANK","CUME_DIST","NTILE","ROW_NUMBER","SESSION_USER","CORR","COVAR_POP","COVAR_SAMP","STDDEV_POP","STDDEV_SAMP","STDDEV","VAR_POP","VAR_SAMP","VARIANCE","ASCII","BYTE_LENGTH","CHAR_LENGTH","CHARACTER_LENGTH","CHR","CODE_POINTS_TO_BYTES","CODE_POINTS_TO_STRING","CONCAT","CONTAINS_SUBSTR","ENDS_WITH","FORMAT","FROM_BASE32","FROM_BASE64","FROM_HEX","INITCAP","INSTR","LEFT","LENGTH","LPAD","LOWER","LTRIM","NORMALIZE","NORMALIZE_AND_CASEFOLD","OCTET_LENGTH","REGEXP_CONTAINS","REGEXP_EXTRACT","REGEXP_EXTRACT_ALL","REGEXP_INSTR","REGEXP_REPLACE","REGEXP_SUBSTR","REPLACE","REPEAT","REVERSE","RIGHT","RPAD","RTRIM","SAFE_CONVERT_BYTES_TO_STRING","SOUNDEX","SPLIT","STARTS_WITH","STRPOS","SUBSTR","SUBSTRING","TO_BASE32","TO_BASE64","TO_CODE_POINTS","TO_HEX","TRANSLATE","TRIM","UNICODE","UPPER","CURRENT_TIME","TIME","EXTRACT","TIME_ADD","TIME_SUB","TIME_DIFF","TIME_TRUNC","FORMAT_TIME","PARSE_TIME","CURRENT_TIMESTAMP","EXTRACT","STRING","TIMESTAMP","TIMESTAMP_ADD","TIMESTAMP_SUB","TIMESTAMP_DIFF","TIMESTAMP_TRUNC","FORMAT_TIMESTAMP","PARSE_TIMESTAMP","TIMESTAMP_SECONDS","TIMESTAMP_MILLIS","TIMESTAMP_MICROS","UNIX_SECONDS","UNIX_MILLIS","UNIX_MICROS","GENERATE_UUID","COALESCE","IF","IFNULL","NULLIF","AVG","BIT_AND","BIT_OR","BIT_XOR","CORR","COUNT","COVAR_POP","COVAR_SAMP","EXACT_COUNT_DISTINCT","FIRST","GROUP_CONCAT","GROUP_CONCAT_UNQUOTED","LAST","MAX","MIN","NEST","NTH","QUANTILES","STDDEV","STDDEV_POP","STDDEV_SAMP","SUM","TOP","UNIQUE","VARIANCE","VAR_POP","VAR_SAMP","BIT_COUNT","BOOLEAN","BYTES","CAST","FLOAT","HEX_STRING","INTEGER","STRING","COALESCE","GREATEST","IFNULL","IS_INF","IS_NAN","IS_EXPLICITLY_DEFINED","LEAST","NVL","CURRENT_DATE","CURRENT_TIME","CURRENT_TIMESTAMP","DATE","DATE_ADD","DATEDIFF","DAY","DAYOFWEEK","DAYOFYEAR","FORMAT_UTC_USEC","HOUR","MINUTE","MONTH","MSEC_TO_TIMESTAMP","NOW","PARSE_UTC_USEC","QUARTER","SEC_TO_TIMESTAMP","SECOND","STRFTIME_UTC_USEC","TIME","TIMESTAMP","TIMESTAMP_TO_MSEC","TIMESTAMP_TO_SEC","TIMESTAMP_TO_USEC","USEC_TO_TIMESTAMP","UTC_USEC_TO_DAY","UTC_USEC_TO_HOUR","UTC_USEC_TO_MONTH","UTC_USEC_TO_WEEK","UTC_USEC_TO_YEAR","WEEK","YEAR","FORMAT_IP","PARSE_IP","FORMAT_PACKED_IP","PARSE_PACKED_IP","JSON_EXTRACT","JSON_EXTRACT_SCALAR","ABS","ACOS","ACOSH","ASIN","ASINH","ATAN","ATANH","ATAN2","CEIL","COS","COSH","DEGREES","EXP","FLOOR","LN","LOG","LOG2","LOG10","PI","POW","RADIANS","RAND","ROUND","SIN","SINH","SQRT","TAN","TANH","REGEXP_MATCH","REGEXP_EXTRACT","REGEXP_REPLACE","CONCAT","INSTR","LEFT","LENGTH","LOWER","LPAD","LTRIM","REPLACE","RIGHT","RPAD","RTRIM","SPLIT","SUBSTR","UPPER","TABLE_DATE_RANGE","TABLE_DATE_RANGE_STRICT","TABLE_QUERY","HOST","DOMAIN","TLD","AVG","COUNT","MAX","MIN","STDDEV","SUM","CUME_DIST","DENSE_RANK","FIRST_VALUE","LAG","LAST_VALUE","LEAD","NTH_VALUE","NTILE","PERCENT_RANK","PERCENTILE_CONT","PERCENTILE_DISC","RANK","RATIO_TO_REPORT","ROW_NUMBER","CURRENT_USER","EVERY","FROM_BASE64","HASH","FARM_FINGERPRINT","IF","POSITION","SHA1","SOME","TO_BASE64","BQ.JOBS.CANCEL","BQ.REFRESH_MATERIALIZED_VIEW","OPTIONS","PIVOT","UNPIVOT"],yc=["ALL","AND","ANY","AS","ASC","ASSERT_ROWS_MODIFIED","AT","BETWEEN","BY","CASE","CAST","COLLATE","CONTAINS","CREATE","CROSS","CUBE","CURRENT","DEFAULT","DEFINE","DESC","DISTINCT","ELSE","END","ENUM","ESCAPE","EXCEPT","EXCLUDE","EXISTS","EXTRACT","FALSE","FETCH","FOLLOWING","FOR","FROM","FULL","GROUP","GROUPING","GROUPS","HASH","HAVING","IF","IGNORE","IN","INNER","INTERSECT","INTO","IS","JOIN","LATERAL","LEFT","LIMIT","LOOKUP","MERGE","NATURAL","NEW","NO","NOT","NULL","NULLS","OF","ON","OR","ORDER","OUTER","OVER","PARTITION","PRECEDING","PROTO","RANGE","RECURSIVE","RESPECT","RIGHT","ROLLUP","ROWS","SELECT","SET","SOME","TABLE","TABLESAMPLE","THEN","TO","TREAT","TRUE","UNBOUNDED","UNION","UNNEST","USING","WHEN","WHERE","WINDOW","WITH","WITHIN","SAFE","LIKE","COPY","CLONE","IN","OUT","INOUT","RETURNS","LANGUAGE","CASCADE","RESTRICT","DETERMINISTIC"],vc=["ARRAY","BOOL","BYTES","DATE","DATETIME","GEOGRAPHY","INTERVAL","INT64","INT","SMALLINT","INTEGER","BIGINT","TINYINT","BYTEINT","NUMERIC","DECIMAL","BIGNUMERIC","BIGDECIMAL","FLOAT64","STRING","STRUCT","TIME","TIMEZONE"],Fc=u(["SELECT [ALL | DISTINCT] [AS STRUCT | AS VALUE]"]),Yc=u(["WITH [RECURSIVE]","FROM","WHERE","GROUP BY","HAVING","QUALIFY","WINDOW","PARTITION BY","ORDER BY","LIMIT","OFFSET","OMIT RECORD IF","INSERT [INTO]","VALUES","SET","MERGE [INTO]","WHEN [NOT] MATCHED [BY SOURCE | BY TARGET] [THEN]","UPDATE SET","CLUSTER BY","FOR SYSTEM_TIME AS OF","WITH CONNECTION","WITH PARTITION COLUMNS","REMOTE WITH CONNECTION"]),Hn=u(["CREATE [OR REPLACE] [TEMP|TEMPORARY|SNAPSHOT|EXTERNAL] TABLE [IF NOT EXISTS]"]),Qs=u(["CREATE [OR REPLACE] [MATERIALIZED] VIEW [IF NOT EXISTS]","UPDATE","DELETE [FROM]","DROP [SNAPSHOT | EXTERNAL] TABLE [IF EXISTS]","ALTER TABLE [IF EXISTS]","ADD COLUMN [IF NOT EXISTS]","DROP COLUMN [IF EXISTS]","RENAME TO","ALTER COLUMN [IF EXISTS]","SET DEFAULT COLLATE","SET OPTIONS","DROP NOT NULL","SET DATA TYPE","ALTER SCHEMA [IF EXISTS]","ALTER [MATERIALIZED] VIEW [IF EXISTS]","ALTER BI_CAPACITY","TRUNCATE TABLE","CREATE SCHEMA [IF NOT EXISTS]","DEFAULT COLLATE","CREATE [OR REPLACE] [TEMP|TEMPORARY|TABLE] FUNCTION [IF NOT EXISTS]","CREATE [OR REPLACE] PROCEDURE [IF NOT EXISTS]","CREATE [OR REPLACE] ROW ACCESS POLICY [IF NOT EXISTS]","GRANT TO","FILTER USING","CREATE CAPACITY","AS JSON","CREATE RESERVATION","CREATE ASSIGNMENT","CREATE SEARCH INDEX [IF NOT EXISTS]","DROP SCHEMA [IF EXISTS]","DROP [MATERIALIZED] VIEW [IF EXISTS]","DROP [TABLE] FUNCTION [IF EXISTS]","DROP PROCEDURE [IF EXISTS]","DROP ROW ACCESS POLICY","DROP ALL ROW ACCESS POLICIES","DROP CAPACITY [IF EXISTS]","DROP RESERVATION [IF EXISTS]","DROP ASSIGNMENT [IF EXISTS]","DROP SEARCH INDEX [IF EXISTS]","DROP [IF EXISTS]","GRANT","REVOKE","DECLARE","EXECUTE IMMEDIATE","LOOP","END LOOP","REPEAT","END REPEAT","WHILE","END WHILE","BREAK","LEAVE","CONTINUE","ITERATE","FOR","END FOR","BEGIN","BEGIN TRANSACTION","COMMIT TRANSACTION","ROLLBACK TRANSACTION","RAISE","RETURN","CALL","ASSERT","EXPORT DATA"]),Vc=u(["UNION {ALL | DISTINCT}","EXCEPT DISTINCT","INTERSECT DISTINCT"]),xc=u(["JOIN","{LEFT | RIGHT | FULL} [OUTER] JOIN","{INNER | CROSS} JOIN"]),wc=u(["TABLESAMPLE SYSTEM","ANY TYPE","ALL COLUMNS","NOT DETERMINISTIC","{ROWS | RANGE} BETWEEN","IS [NOT] DISTINCT FROM"]),Wc={name:"bigquery",tokenizerOptions:{reservedSelect:Fc,reservedClauses:[...Yc,...Qs,...Hn],reservedSetOperations:Vc,reservedJoins:xc,reservedPhrases:wc,reservedKeywords:yc,reservedDataTypes:vc,reservedFunctionNames:bc,extraParens:["[]"],stringTypes:[{quote:'""".."""',prefixes:["R","B","RB","BR"]},{quote:"'''..'''",prefixes:["R","B","RB","BR"]},'""-bs',"''-bs",{quote:'""-raw',prefixes:["R","B","RB","BR"],requirePrefix:!0},{quote:"''-raw",prefixes:["R","B","RB","BR"],requirePrefix:!0}],identTypes:["``"],identChars:{dashes:!0},paramTypes:{positional:!0,named:["@"],quoted:["@"]},variableTypes:[{regex:String.raw`@@\w+`}],lineCommentTypes:["--","#"],operators:["&","|","^","~",">>","<<","||","=>"],postProcess:Xc},formatOptions:{onelineClauses:[...Hn,...Qs],tabularOnelineClauses:Qs}};function Xc(e){return Kc($c(e))}function Kc(e){let t=oE;return e.map(E=>E.text==="OFFSET"&&t.text==="["?(t=E,Ye(me({},E),{type:"RESERVED_FUNCTION_NAME"})):(t=E,E))}function $c(e){var t;const E=[];for(let s=0;s<e.length;s++){const T=e[s];if((Wt.ARRAY(T)||Wt.STRUCT(T))&&((t=e[s+1])==null?void 0:t.text)==="<"){const r=Jc(e,s+1),n=e.slice(s,r+1);E.push({type:"IDENTIFIER",raw:n.map(Bn("raw")).join(""),text:n.map(Bn("text")).join(""),start:T.start}),s=r}else E.push(T)}return E}var Bn=e=>t=>t.type==="IDENTIFIER"||t.type==="COMMA"?t[e]+" ":t[e];function Jc(e,t){let E=0;for(let s=t;s<e.length;s++){const T=e[s];if(T.text==="<"?E++:T.text===">"?E--:T.text===">>"&&(E-=2),E===0)return s}return e.length-1}var kc=["ARRAY_AGG","AVG","CORRELATION","COUNT","COUNT_BIG","COVARIANCE","COVARIANCE_SAMP","CUME_DIST","GROUPING","LISTAGG","MAX","MEDIAN","MIN","PERCENTILE_CONT","PERCENTILE_DISC","PERCENT_RANK","REGR_AVGX","REGR_AVGY","REGR_COUNT","REGR_INTERCEPT","REGR_ICPT","REGR_R2","REGR_SLOPE","REGR_SXX","REGR_SXY","REGR_SYY","STDDEV","STDDEV_SAMP","SUM","VARIANCE","VARIANCE_SAMP","XMLAGG","XMLGROUP","ABS","ABSVAL","ACOS","ADD_DAYS","ADD_HOURS","ADD_MINUTES","ADD_MONTHS","ADD_SECONDS","ADD_YEARS","AGE","ARRAY_DELETE","ARRAY_FIRST","ARRAY_LAST","ARRAY_NEXT","ARRAY_PRIOR","ASCII","ASCII_STR","ASIN","ATAN","ATAN2","ATANH","BITAND","BITANDNOT","BITOR","BITXOR","BITNOT","BPCHAR","BSON_TO_JSON","BTRIM","CARDINALITY","CEILING","CEIL","CHARACTER_LENGTH","CHR","COALESCE","COLLATION_KEY","COLLATION_KEY_BIT","COMPARE_DECFLOAT","CONCAT","COS","COSH","COT","CURSOR_ROWCOUNT","DATAPARTITIONNUM","DATE_PART","DATE_TRUNC","DAY","DAYNAME","DAYOFMONTH","DAYOFWEEK","DAYOFWEEK_ISO","DAYOFYEAR","DAYS","DAYS_BETWEEN","DAYS_TO_END_OF_MONTH","DBPARTITIONNUM","DECFLOAT","DECFLOAT_FORMAT","DECODE","DECRYPT_BIN","DECRYPT_CHAR","DEGREES","DEREF","DIFFERENCE","DIGITS","DOUBLE_PRECISION","EMPTY_BLOB","EMPTY_CLOB","EMPTY_DBCLOB","EMPTY_NCLOB","ENCRYPT","EVENT_MON_STATE","EXP","EXTRACT","FIRST_DAY","FLOOR","FROM_UTC_TIMESTAMP","GENERATE_UNIQUE","GETHINT","GREATEST","HASH","HASH4","HASH8","HASHEDVALUE","HEX","HEXTORAW","HOUR","HOURS_BETWEEN","IDENTITY_VAL_LOCAL","IFNULL","INITCAP","INSERT","INSTR","INSTR2","INSTR4","INSTRB","INTNAND","INTNOR","INTNXOR","INTNNOT","ISNULL","JSON_ARRAY","JSON_OBJECT","JSON_QUERY","JSON_TO_BSON","JSON_VALUE","JULIAN_DAY","LAST_DAY","LCASE","LEAST","LEFT","LENGTH","LENGTH2","LENGTH4","LENGTHB","LN","LOCATE","LOCATE_IN_STRING","LOG10","LONG_VARCHAR","LONG_VARGRAPHIC","LOWER","LPAD","LTRIM","MAX","MAX_CARDINALITY","MICROSECOND","MIDNIGHT_SECONDS","MIN","MINUTE","MINUTES_BETWEEN","MOD","MONTH","MONTHNAME","MONTHS_BETWEEN","MULTIPLY_ALT","NEXT_DAY","NEXT_MONTH","NEXT_QUARTER","NEXT_WEEK","NEXT_YEAR","NORMALIZE_DECFLOAT","NOW","NULLIF","NVL","NVL2","OCTET_LENGTH","OVERLAY","PARAMETER","POSITION","POSSTR","POW","POWER","QUANTIZE","QUARTER","QUOTE_IDENT","QUOTE_LITERAL","RADIANS","RAISE_ERROR","RAND","RANDOM","RAWTOHEX","REC2XML","REGEXP_COUNT","REGEXP_EXTRACT","REGEXP_INSTR","REGEXP_LIKE","REGEXP_MATCH_COUNT","REGEXP_REPLACE","REGEXP_SUBSTR","REPEAT","REPLACE","RID","RID_BIT","RIGHT","ROUND","ROUND_TIMESTAMP","RPAD","RTRIM","SECLABEL","SECLABEL_BY_NAME","SECLABEL_TO_CHAR","SECOND","SECONDS_BETWEEN","SIGN","SIN","SINH","SOUNDEX","SPACE","SQRT","STRIP","STRLEFT","STRPOS","STRRIGHT","SUBSTR","SUBSTR2","SUBSTR4","SUBSTRB","SUBSTRING","TABLE_NAME","TABLE_SCHEMA","TAN","TANH","THIS_MONTH","THIS_QUARTER","THIS_WEEK","THIS_YEAR","TIMESTAMP_FORMAT","TIMESTAMP_ISO","TIMESTAMPDIFF","TIMEZONE","TO_CHAR","TO_CLOB","TO_DATE","TO_HEX","TO_MULTI_BYTE","TO_NCHAR","TO_NCLOB","TO_NUMBER","TO_SINGLE_BYTE","TO_TIMESTAMP","TO_UTC_TIMESTAMP","TOTALORDER","TRANSLATE","TRIM","TRIM_ARRAY","TRUNC_TIMESTAMP","TRUNCATE","TRUNC","TYPE_ID","TYPE_NAME","TYPE_SCHEMA","UCASE","UNICODE_STR","UPPER","VALUE","VARCHAR_BIT_FORMAT","VARCHAR_FORMAT","VARCHAR_FORMAT_BIT","VERIFY_GROUP_FOR_USER","VERIFY_ROLE_FOR_USER","VERIFY_TRUSTED_CONTEXT_ROLE_FOR_USER","WEEK","WEEK_ISO","WEEKS_BETWEEN","WIDTH_BUCKET","XMLATTRIBUTES","XMLCOMMENT","XMLCONCAT","XMLDOCUMENT","XMLELEMENT","XMLFOREST","XMLNAMESPACES","XMLPARSE","XMLPI","XMLQUERY","XMLROW","XMLSERIALIZE","XMLTEXT","XMLVALIDATE","XMLXSROBJECTID","XSLTRANSFORM","YEAR","YEARS_BETWEEN","YMD_BETWEEN","BASE_TABLE","JSON_TABLE","UNNEST","XMLTABLE","RANK","DENSE_RANK","NTILE","LAG","LEAD","ROW_NUMBER","FIRST_VALUE","LAST_VALUE","NTH_VALUE","RATIO_TO_REPORT","CAST"],qc=["ACTIVATE","ADD","AFTER","ALIAS","ALL","ALLOCATE","ALLOW","ALTER","AND","ANY","AS","ASENSITIVE","ASSOCIATE","ASUTIME","AT","ATTRIBUTES","AUDIT","AUTHORIZATION","AUX","AUXILIARY","BEFORE","BEGIN","BETWEEN","BINARY","BUFFERPOOL","BY","CACHE","CALL","CALLED","CAPTURE","CARDINALITY","CASCADED","CASE","CAST","CHECK","CLONE","CLOSE","CLUSTER","COLLECTION","COLLID","COLUMN","COMMENT","COMMIT","CONCAT","CONDITION","CONNECT","CONNECTION","CONSTRAINT","CONTAINS","CONTINUE","COUNT","COUNT_BIG","CREATE","CROSS","CURRENT","CURRENT_DATE","CURRENT_LC_CTYPE","CURRENT_PATH","CURRENT_SCHEMA","CURRENT_SERVER","CURRENT_TIME","CURRENT_TIMESTAMP","CURRENT_TIMEZONE","CURRENT_USER","CURSOR","CYCLE","DATA","DATABASE","DATAPARTITIONNAME","DATAPARTITIONNUM","DAY","DAYS","DB2GENERAL","DB2GENRL","DB2SQL","DBINFO","DBPARTITIONNAME","DBPARTITIONNUM","DEALLOCATE","DECLARE","DEFAULT","DEFAULTS","DEFINITION","DELETE","DENSERANK","DENSE_RANK","DESCRIBE","DESCRIPTOR","DETERMINISTIC","DIAGNOSTICS","DISABLE","DISALLOW","DISCONNECT","DISTINCT","DO","DOCUMENT","DROP","DSSIZE","DYNAMIC","EACH","EDITPROC","ELSE","ELSEIF","ENABLE","ENCODING","ENCRYPTION","END","END-EXEC","ENDING","ERASE","ESCAPE","EVERY","EXCEPT","EXCEPTION","EXCLUDING","EXCLUSIVE","EXECUTE","EXISTS","EXIT","EXPLAIN","EXTENDED","EXTERNAL","EXTRACT","FENCED","FETCH","FIELDPROC","FILE","FINAL","FIRST1","FOR","FOREIGN","FREE","FROM","FULL","FUNCTION","GENERAL","GENERATED","GET","GLOBAL","GO","GOTO","GRANT","GRAPHIC","GROUP","HANDLER","HASH","HASHED_VALUE","HAVING","HINT","HOLD","HOUR","HOURS","IDENTITY","IF","IMMEDIATE","IMPORT","IN","INCLUDING","INCLUSIVE","INCREMENT","INDEX","INDICATOR","INDICATORS","INF","INFINITY","INHERIT","INNER","INOUT","INSENSITIVE","INSERT","INTEGRITY","INTERSECT","INTO","IS","ISNULL","ISOBID","ISOLATION","ITERATE","JAR","JAVA","JOIN","KEEP","KEY","LABEL","LANGUAGE","LAST3","LATERAL","LC_CTYPE","LEAVE","LEFT","LIKE","LIMIT","LINKTYPE","LOCAL","LOCALDATE","LOCALE","LOCALTIME","LOCALTIMESTAMP","LOCATOR","LOCATORS","LOCK","LOCKMAX","LOCKSIZE","LOOP","MAINTAINED","MATERIALIZED","MAXVALUE","MICROSECOND","MICROSECONDS","MINUTE","MINUTES","MINVALUE","MODE","MODIFIES","MONTH","MONTHS","NAN","NEW","NEW_TABLE","NEXTVAL","NO","NOCACHE","NOCYCLE","NODENAME","NODENUMBER","NOMAXVALUE","NOMINVALUE","NONE","NOORDER","NORMALIZED","NOT2","NOTNULL","NULL","NULLS","NUMPARTS","OBID","OF","OFF","OFFSET","OLD","OLD_TABLE","ON","OPEN","OPTIMIZATION","OPTIMIZE","OPTION","OR","ORDER","OUT","OUTER","OVER","OVERRIDING","PACKAGE","PADDED","PAGESIZE","PARAMETER","PART","PARTITION","PARTITIONED","PARTITIONING","PARTITIONS","PASSWORD","PATH","PERCENT","PIECESIZE","PLAN","POSITION","PRECISION","PREPARE","PREVVAL","PRIMARY","PRIQTY","PRIVILEGES","PROCEDURE","PROGRAM","PSID","PUBLIC","QUERY","QUERYNO","RANGE","RANK","READ","READS","RECOVERY","REFERENCES","REFERENCING","REFRESH","RELEASE","RENAME","REPEAT","RESET","RESIGNAL","RESTART","RESTRICT","RESULT","RESULT_SET_LOCATOR","RETURN","RETURNS","REVOKE","RIGHT","ROLE","ROLLBACK","ROUND_CEILING","ROUND_DOWN","ROUND_FLOOR","ROUND_HALF_DOWN","ROUND_HALF_EVEN","ROUND_HALF_UP","ROUND_UP","ROUTINE","ROW","ROWNUMBER","ROWS","ROWSET","ROW_NUMBER","RRN","RUN","SAVEPOINT","SCHEMA","SCRATCHPAD","SCROLL","SEARCH","SECOND","SECONDS","SECQTY","SECURITY","SELECT","SENSITIVE","SEQUENCE","SESSION","SESSION_USER","SET","SIGNAL","SIMPLE","SNAN","SOME","SOURCE","SPECIFIC","SQL","SQLID","STACKED","STANDARD","START","STARTING","STATEMENT","STATIC","STATMENT","STAY","STOGROUP","STORES","STYLE","SUBSTRING","SUMMARY","SYNONYM","SYSFUN","SYSIBM","SYSPROC","SYSTEM","SYSTEM_USER","TABLE","TABLESPACE","THEN","TO","TRANSACTION","TRIGGER","TRIM","TRUNCATE","TYPE","UNDO","UNION","UNIQUE","UNTIL","UPDATE","USAGE","USER","USING","VALIDPROC","VALUE","VALUES","VARIABLE","VARIANT","VCAT","VERSION","VIEW","VOLATILE","VOLUMES","WHEN","WHENEVER","WHERE","WHILE","WITH","WITHOUT","WLM","WRITE","XMLELEMENT","XMLEXISTS","XMLNAMESPACES","YEAR","YEARS"],jc=["ARRAY","BIGINT","BINARY","BLOB","BOOLEAN","CCSID","CHAR","CHARACTER","CLOB","DATE","DATETIME","DBCLOB","DEC","DECIMAL","DOUBLE","DOUBLE PRECISION","FLOAT","FLOAT4","FLOAT8","GRAPHIC","INT","INT2","INT4","INT8","INTEGER","INTERVAL","LONG VARCHAR","LONG VARGRAPHIC","NCHAR","NCHR","NCLOB","NVARCHAR","NUMERIC","SMALLINT","REAL","TIME","TIMESTAMP","VARBINARY","VARCHAR","VARGRAPHIC"],Qc=u(["SELECT [ALL | DISTINCT]"]),Zc=u(["WITH","FROM","WHERE","GROUP BY","HAVING","PARTITION BY","ORDER BY [INPUT SEQUENCE]","LIMIT","OFFSET","FETCH NEXT","FOR UPDATE [OF]","FOR {READ | FETCH} ONLY","FOR {RR | CS | UR | RS} [USE AND KEEP {SHARE | UPDATE | EXCLUSIVE} LOCKS]","WAIT FOR OUTCOME","SKIP LOCKED DATA","INTO","INSERT INTO","VALUES","SET","MERGE INTO","WHEN [NOT] MATCHED [THEN]","UPDATE SET","INSERT"]),bn=u(["CREATE [GLOBAL TEMPORARY | EXTERNAL] TABLE [IF NOT EXISTS]"]),Zs=u(["CREATE [OR REPLACE] VIEW","UPDATE","WHERE CURRENT OF","WITH {RR | RS | CS | UR}","DELETE FROM","DROP TABLE [IF EXISTS]","ALTER TABLE","ADD [COLUMN]","DROP [COLUMN]","RENAME COLUMN","ALTER [COLUMN]","SET DATA TYPE","SET NOT NULL","DROP {DEFAULT | GENERATED | NOT NULL}","TRUNCATE [TABLE]","ALLOCATE","ALTER AUDIT POLICY","ALTER BUFFERPOOL","ALTER DATABASE PARTITION GROUP","ALTER DATABASE","ALTER EVENT MONITOR","ALTER FUNCTION","ALTER HISTOGRAM TEMPLATE","ALTER INDEX","ALTER MASK","ALTER METHOD","ALTER MODULE","ALTER NICKNAME","ALTER PACKAGE","ALTER PERMISSION","ALTER PROCEDURE","ALTER SCHEMA","ALTER SECURITY LABEL COMPONENT","ALTER SECURITY POLICY","ALTER SEQUENCE","ALTER SERVER","ALTER SERVICE CLASS","ALTER STOGROUP","ALTER TABLESPACE","ALTER THRESHOLD","ALTER TRIGGER","ALTER TRUSTED CONTEXT","ALTER TYPE","ALTER USAGE LIST","ALTER USER MAPPING","ALTER VIEW","ALTER WORK ACTION SET","ALTER WORK CLASS SET","ALTER WORKLOAD","ALTER WRAPPER","ALTER XSROBJECT","ALTER STOGROUP","ALTER TABLESPACE","ALTER TRIGGER","ALTER TRUSTED CONTEXT","ALTER VIEW","ASSOCIATE [RESULT SET] {LOCATOR | LOCATORS}","AUDIT","BEGIN DECLARE SECTION","CALL","CLOSE","COMMENT ON","COMMIT [WORK]","CONNECT","CREATE [OR REPLACE] [PUBLIC] ALIAS","CREATE AUDIT POLICY","CREATE BUFFERPOOL","CREATE DATABASE PARTITION GROUP","CREATE EVENT MONITOR","CREATE [OR REPLACE] FUNCTION","CREATE FUNCTION MAPPING","CREATE HISTOGRAM TEMPLATE","CREATE [UNIQUE] INDEX","CREATE INDEX EXTENSION","CREATE [OR REPLACE] MASK","CREATE [SPECIFIC] METHOD","CREATE [OR REPLACE] MODULE","CREATE [OR REPLACE] NICKNAME","CREATE [OR REPLACE] PERMISSION","CREATE [OR REPLACE] PROCEDURE","CREATE ROLE","CREATE SCHEMA","CREATE SECURITY LABEL [COMPONENT]","CREATE SECURITY POLICY","CREATE [OR REPLACE] SEQUENCE","CREATE SERVICE CLASS","CREATE SERVER","CREATE STOGROUP","CREATE SYNONYM","CREATE [LARGE | REGULAR | {SYSTEM | USER} TEMPORARY] TABLESPACE","CREATE THRESHOLD","CREATE {TRANSFORM | TRANSFORMS} FOR","CREATE [OR REPLACE] TRIGGER","CREATE TRUSTED CONTEXT","CREATE [OR REPLACE] TYPE","CREATE TYPE MAPPING","CREATE USAGE LIST","CREATE USER MAPPING FOR","CREATE [OR REPLACE] VARIABLE","CREATE WORK ACTION SET","CREATE WORK CLASS SET","CREATE WORKLOAD","CREATE WRAPPER","DECLARE","DECLARE GLOBAL TEMPORARY TABLE","DESCRIBE [INPUT | OUTPUT]","DISCONNECT","DROP [PUBLIC] ALIAS","DROP AUDIT POLICY","DROP BUFFERPOOL","DROP DATABASE PARTITION GROUP","DROP EVENT MONITOR","DROP [SPECIFIC] FUNCTION","DROP FUNCTION MAPPING","DROP HISTOGRAM TEMPLATE","DROP INDEX [EXTENSION]","DROP MASK","DROP [SPECIFIC] METHOD","DROP MODULE","DROP NICKNAME","DROP PACKAGE","DROP PERMISSION","DROP [SPECIFIC] PROCEDURE","DROP ROLE","DROP SCHEMA","DROP SECURITY LABEL [COMPONENT]","DROP SECURITY POLICY","DROP SEQUENCE","DROP SERVER","DROP SERVICE CLASS","DROP STOGROUP","DROP TABLE HIERARCHY","DROP {TABLESPACE | TABLESPACES}","DROP {TRANSFORM | TRANSFORMS}","DROP THRESHOLD","DROP TRIGGER","DROP TRUSTED CONTEXT","DROP TYPE [MAPPING]","DROP USAGE LIST","DROP USER MAPPING FOR","DROP VARIABLE","DROP VIEW [HIERARCHY]","DROP WORK {ACTION | CLASS} SET","DROP WORKLOAD","DROP WRAPPER","DROP XSROBJECT","END DECLARE SECTION","EXECUTE [IMMEDIATE]","EXPLAIN {PLAN [SECTION] | ALL}","FETCH [FROM]","FLUSH {BUFFERPOOL | BUFFERPOOLS} ALL","FLUSH EVENT MONITOR","FLUSH FEDERATED CACHE","FLUSH OPTIMIZATION PROFILE CACHE","FLUSH PACKAGE CACHE [DYNAMIC]","FLUSH AUTHENTICATION CACHE [FOR ALL]","FREE LOCATOR","GET DIAGNOSTICS","GOTO","GRANT","INCLUDE","ITERATE","LEAVE","LOCK TABLE","LOOP","OPEN","PIPE","PREPARE","REFRESH TABLE","RELEASE","RELEASE [TO] SAVEPOINT","RENAME [TABLE | INDEX | STOGROUP | TABLESPACE]","REPEAT","RESIGNAL","RETURN","REVOKE","ROLLBACK [WORK] [TO SAVEPOINT]","SAVEPOINT","SET COMPILATION ENVIRONMENT","SET CONNECTION","SET CURRENT","SET ENCRYPTION PASSWORD","SET EVENT MONITOR STATE","SET INTEGRITY","SET PASSTHRU","SET PATH","SET ROLE","SET SCHEMA","SET SERVER OPTION","SET {SESSION AUTHORIZATION | SESSION_USER}","SET USAGE LIST","SIGNAL","TRANSFER OWNERSHIP OF","WHENEVER {NOT FOUND | SQLERROR | SQLWARNING}","WHILE"]),zc=u(["UNION [ALL]","EXCEPT [ALL]","INTERSECT [ALL]"]),eu=u(["JOIN","{LEFT | RIGHT | FULL} [OUTER] JOIN","{INNER | CROSS} JOIN"]),tu=u(["ON DELETE","ON UPDATE","SET NULL","{ROWS | RANGE} BETWEEN"]),Eu={name:"db2",tokenizerOptions:{reservedSelect:Qc,reservedClauses:[...Zc,...bn,...Zs],reservedSetOperations:zc,reservedJoins:eu,reservedPhrases:tu,reservedKeywords:qc,reservedDataTypes:jc,reservedFunctionNames:kc,extraParens:["[]"],stringTypes:[{quote:"''-qq",prefixes:["G","N","U&"]},{quote:"''-raw",prefixes:["X","BX","GX","UX"],requirePrefix:!0}],identTypes:['""-qq'],identChars:{first:"@#$",rest:"@#$"},paramTypes:{positional:!0,named:[":"]},paramChars:{first:"@#$",rest:"@#$"},operators:["**","%","|","&","^","~","¬=","¬>","¬<","!>","!<","^=","^>","^<","||","->","=>"]},formatOptions:{onelineClauses:[...bn,...Zs],tabularOnelineClauses:Zs}},su=["ARRAY_AGG","AVG","CORR","CORRELATION","COUNT","COUNT_BIG","COVAR_POP","COVARIANCE","COVAR","COVAR_SAMP","COVARIANCE_SAMP","EVERY","GROUPING","JSON_ARRAYAGG","JSON_OBJECTAGG","LISTAGG","MAX","MEDIAN","MIN","PERCENTILE_CONT","PERCENTILE_DISC","REGR_AVGX","REGR_AVGY","REGR_COUNT","REGR_INTERCEPT","REGR_R2","REGR_SLOPE","REGR_SXX","REGR_SXY","REGR_SYY","SOME","STDDEV_POP","STDDEV","STDDEV_SAMP","SUM","VAR_POP","VARIANCE","VAR","VAR_SAMP","VARIANCE_SAMP","XMLAGG","XMLGROUP","ABS","ABSVAL","ACOS","ADD_DAYS","ADD_HOURS","ADD_MINUTES","ADD_MONTHS","ADD_SECONDS","ADD_YEARS","ANTILOG","ARRAY_MAX_CARDINALITY","ARRAY_TRIM","ASCII","ASIN","ATAN","ATAN2","ATANH","BASE64_DECODE","BASE64_ENCODE","BIT_LENGTH","BITAND","BITANDNOT","BITNOT","BITOR","BITXOR","BSON_TO_JSON","CARDINALITY","CEIL","CEILING","CHAR_LENGTH","CHARACTER_LENGTH","CHR","COALESCE","COMPARE_DECFLOAT","CONCAT","CONTAINS","COS","COSH","COT","CURDATE","CURTIME","DATABASE","DATAPARTITIONNAME","DATAPARTITIONNUM","DAY","DAYNAME","DAYOFMONTH","DAYOFWEEK_ISO","DAYOFWEEK","DAYOFYEAR","DAYS","DBPARTITIONNAME","DBPARTITIONNUM","DECFLOAT_FORMAT","DECFLOAT_SORTKEY","DECRYPT_BINARY","DECRYPT_BIT","DECRYPT_CHAR","DECRYPT_DB","DEGREES","DIFFERENCE","DIGITS","DLCOMMENT","DLLINKTYPE","DLURLCOMPLETE","DLURLPATH","DLURLPATHONLY","DLURLSCHEME","DLURLSERVER","DLVALUE","DOUBLE_PRECISION","DOUBLE","ENCRPYT","ENCRYPT_AES","ENCRYPT_AES256","ENCRYPT_RC2","ENCRYPT_TDES","EXP","EXTRACT","FIRST_DAY","FLOOR","GENERATE_UNIQUE","GET_BLOB_FROM_FILE","GET_CLOB_FROM_FILE","GET_DBCLOB_FROM_FILE","GET_XML_FILE","GETHINT","GREATEST","HASH_MD5","HASH_ROW","HASH_SHA1","HASH_SHA256","HASH_SHA512","HASH_VALUES","HASHED_VALUE","HEX","HEXTORAW","HOUR","HTML_ENTITY_DECODE","HTML_ENTITY_ENCODE","HTTP_DELETE_BLOB","HTTP_DELETE","HTTP_GET_BLOB","HTTP_GET","HTTP_PATCH_BLOB","HTTP_PATCH","HTTP_POST_BLOB","HTTP_POST","HTTP_PUT_BLOB","HTTP_PUT","IDENTITY_VAL_LOCAL","IFNULL","INSERT","INSTR","INTERPRET","ISFALSE","ISNOTFALSE","ISNOTTRUE","ISTRUE","JSON_ARRAY","JSON_OBJECT","JSON_QUERY","JSON_TO_BSON","JSON_UPDATE","JSON_VALUE","JULIAN_DAY","LAND","LAST_DAY","LCASE","LEAST","LEFT","LENGTH","LN","LNOT","LOCATE_IN_STRING","LOCATE","LOG10","LOR","LOWER","LPAD","LTRIM","MAX_CARDINALITY","MAX","MICROSECOND","MIDNIGHT_SECONDS","MIN","MINUTE","MOD","MONTH","MONTHNAME","MONTHS_BETWEEN","MQREAD","MQREADCLOB","MQRECEIVE","MQRECEIVECLOB","MQSEND","MULTIPLY_ALT","NEXT_DAY","NORMALIZE_DECFLOAT","NOW","NULLIF","NVL","OCTET_LENGTH","OVERLAY","PI","POSITION","POSSTR","POW","POWER","QUANTIZE","QUARTER","RADIANS","RAISE_ERROR","RANDOM","RAND","REGEXP_COUNT","REGEXP_INSTR","REGEXP_REPLACE","REGEXP_SUBSTR","REPEAT","REPLACE","RID","RIGHT","ROUND_TIMESTAMP","ROUND","RPAD","RRN","RTRIM","SCORE","SECOND","SIGN","SIN","SINH","SOUNDEX","SPACE","SQRT","STRIP","STRLEFT","STRPOS","STRRIGHT","SUBSTR","SUBSTRING","TABLE_NAME","TABLE_SCHEMA","TAN","TANH","TIMESTAMP_FORMAT","TIMESTAMP_ISO","TIMESTAMPDIFF_BIG","TIMESTAMPDIFF","TO_CHAR","TO_CLOB","TO_DATE","TO_NUMBER","TO_TIMESTAMP","TOTALORDER","TRANSLATE","TRIM_ARRAY","TRIM","TRUNC_TIMESTAMP","TRUNC","TRUNCATE","UCASE","UPPER","URL_DECODE","URL_ENCODE","VALUE","VARBINARY_FORMAT","VARCHAR_BIT_FORMAT","VARCHAR_FORMAT_BINARY","VARCHAR_FORMAT","VERIFY_GROUP_FOR_USER","WEEK_ISO","WEEK","WRAP","XMLATTRIBUTES","XMLCOMMENT","XMLCONCAT","XMLDOCUMENT","XMLELEMENT","XMLFOREST","XMLNAMESPACES","XMLPARSE","XMLPI","XMLROW","XMLSERIALIZE","XMLTEXT","XMLVALIDATE","XOR","XSLTRANSFORM","YEAR","ZONED","BASE_TABLE","HTTP_DELETE_BLOB_VERBOSE","HTTP_DELETE_VERBOSE","HTTP_GET_BLOB_VERBOSE","HTTP_GET_VERBOSE","HTTP_PATCH_BLOB_VERBOSE","HTTP_PATCH_VERBOSE","HTTP_POST_BLOB_VERBOSE","HTTP_POST_VERBOSE","HTTP_PUT_BLOB_VERBOSE","HTTP_PUT_VERBOSE","JSON_TABLE","MQREADALL","MQREADALLCLOB","MQRECEIVEALL","MQRECEIVEALLCLOB","XMLTABLE","UNPACK","CUME_DIST","DENSE_RANK","FIRST_VALUE","LAG","LAST_VALUE","LEAD","NTH_VALUE","NTILE","PERCENT_RANK","RANK","RATIO_TO_REPORT","ROW_NUMBER","CAST"],Tu=["ABSENT","ACCORDING","ACCTNG","ACTION","ACTIVATE","ADD","ALIAS","ALL","ALLOCATE","ALLOW","ALTER","AND","ANY","APPEND","APPLNAME","ARRAY","ARRAY_AGG","ARRAY_TRIM","AS","ASC","ASENSITIVE","ASSOCIATE","ATOMIC","ATTACH","ATTRIBUTES","AUTHORIZATION","AUTONOMOUS","BEFORE","BEGIN","BETWEEN","BIND","BSON","BUFFERPOOL","BY","CACHE","CALL","CALLED","CARDINALITY","CASE","CAST","CHECK","CL","CLOSE","CLUSTER","COLLECT","COLLECTION","COLUMN","COMMENT","COMMIT","COMPACT","COMPARISONS","COMPRESS","CONCAT","CONCURRENT","CONDITION","CONNECT","CONNECT_BY_ROOT","CONNECTION","CONSTANT","CONSTRAINT","CONTAINS","CONTENT","CONTINUE","COPY","COUNT","COUNT_BIG","CREATE","CREATEIN","CROSS","CUBE","CUME_DIST","CURRENT","CURRENT_DATE","CURRENT_PATH","CURRENT_SCHEMA","CURRENT_SERVER","CURRENT_TIME","CURRENT_TIMESTAMP","CURRENT_TIMEZONE","CURRENT_USER","CURSOR","CYCLE","DATABASE","DATAPARTITIONNAME","DATAPARTITIONNUM","DAY","DAYS","DB2GENERAL","DB2GENRL","DB2SQL","DBINFO","DBPARTITIONNAME","DBPARTITIONNUM","DEACTIVATE","DEALLOCATE","DECLARE","DEFAULT","DEFAULTS","DEFER","DEFINE","DEFINITION","DELETE","DELETING","DENSE_RANK","DENSERANK","DESC","DESCRIBE","DESCRIPTOR","DETACH","DETERMINISTIC","DIAGNOSTICS","DISABLE","DISALLOW","DISCONNECT","DISTINCT","DO","DOCUMENT","DROP","DYNAMIC","EACH","ELSE","ELSEIF","EMPTY","ENABLE","ENCODING","ENCRYPTION","END","END-EXEC","ENDING","ENFORCED","ERROR","ESCAPE","EVERY","EXCEPT","EXCEPTION","EXCLUDING","EXCLUSIVE","EXECUTE","EXISTS","EXIT","EXTEND","EXTERNAL","EXTRACT","FALSE","FENCED","FETCH","FIELDPROC","FILE","FINAL","FIRST_VALUE","FOR","FOREIGN","FORMAT","FREE","FREEPAGE","FROM","FULL","FUNCTION","GBPCACHE","GENERAL","GENERATED","GET","GLOBAL","GO","GOTO","GRANT","GROUP","HANDLER","HASH","HASH_ROW","HASHED_VALUE","HAVING","HINT","HOLD","HOUR","HOURS","IDENTITY","IF","IGNORE","IMMEDIATE","IMPLICITLY","IN","INCLUDE","INCLUDING","INCLUSIVE","INCREMENT","INDEX","INDEXBP","INDICATOR","INF","INFINITY","INHERIT","INLINE","INNER","INOUT","INSENSITIVE","INSERT","INSERTING","INTEGRITY","INTERPRET","INTERSECT","INTO","IS","ISNULL","ISOLATION","ITERATE","JAVA","JOIN","JSON","JSON_ARRAY","JSON_ARRAYAGG","JSON_EXISTS","JSON_OBJECT","JSON_OBJECTAGG","JSON_QUERY","JSON_TABLE","JSON_VALUE","KEEP","KEY","KEYS","LABEL","LAG","LANGUAGE","LAST_VALUE","LATERAL","LEAD","LEAVE","LEFT","LEVEL2","LIKE","LIMIT","LINKTYPE","LISTAGG","LOCAL","LOCALDATE","LOCALTIME","LOCALTIMESTAMP","LOCATION","LOCATOR","LOCK","LOCKSIZE","LOG","LOGGED","LOOP","MAINTAINED","MASK","MATCHED","MATERIALIZED","MAXVALUE","MERGE","MICROSECOND","MICROSECONDS","MINPCTUSED","MINUTE","MINUTES","MINVALUE","MIRROR","MIXED","MODE","MODIFIES","MONTH","MONTHS","NAMESPACE","NAN","NATIONAL","NCHAR","NCLOB","NESTED","NEW","NEW_TABLE","NEXTVAL","NO","NOCACHE","NOCYCLE","NODENAME","NODENUMBER","NOMAXVALUE","NOMINVALUE","NONE","NOORDER","NORMALIZED","NOT","NOTNULL","NTH_VALUE","NTILE","NULL","NULLS","NVARCHAR","OBID","OBJECT","OF","OFF","OFFSET","OLD","OLD_TABLE","OMIT","ON","ONLY","OPEN","OPTIMIZE","OPTION","OR","ORDER","ORDINALITY","ORGANIZE","OUT","OUTER","OVER","OVERLAY","OVERRIDING","PACKAGE","PADDED","PAGE","PAGESIZE","PARAMETER","PART","PARTITION","PARTITIONED","PARTITIONING","PARTITIONS","PASSING","PASSWORD","PATH","PCTFREE","PERCENT_RANK","PERCENTILE_CONT","PERCENTILE_DISC","PERIOD","PERMISSION","PIECESIZE","PIPE","PLAN","POSITION","PREPARE","PREVVAL","PRIMARY","PRIOR","PRIQTY","PRIVILEGES","PROCEDURE","PROGRAM","PROGRAMID","QUERY","RANGE","RANK","RATIO_TO_REPORT","RCDFMT","READ","READS","RECOVERY","REFERENCES","REFERENCING","REFRESH","REGEXP_LIKE","RELEASE","RENAME","REPEAT","RESET","RESIGNAL","RESTART","RESULT","RESULT_SET_LOCATOR","RETURN","RETURNING","RETURNS","REVOKE","RID","RIGHT","ROLLBACK","ROLLUP","ROUTINE","ROW","ROW_NUMBER","ROWNUMBER","ROWS","RRN","RUN","SAVEPOINT","SBCS","SCALAR","SCHEMA","SCRATCHPAD","SCROLL","SEARCH","SECOND","SECONDS","SECQTY","SECURED","SELECT","SENSITIVE","SEQUENCE","SESSION","SESSION_USER","SET","SIGNAL","SIMPLE","SKIP","SNAN","SOME","SOURCE","SPECIFIC","SQL","SQLID","SQLIND_DEFAULT","SQLIND_UNASSIGNED","STACKED","START","STARTING","STATEMENT","STATIC","STOGROUP","SUBSTRING","SUMMARY","SYNONYM","SYSTEM_TIME","SYSTEM_USER","TABLE","TABLESPACE","TABLESPACES","TAG","THEN","THREADSAFE","TO","TRANSACTION","TRANSFER","TRIGGER","TRIM","TRIM_ARRAY","TRUE","TRUNCATE","TRY_CAST","TYPE","UNDO","UNION","UNIQUE","UNIT","UNKNOWN","UNNEST","UNTIL","UPDATE","UPDATING","URI","USAGE","USE","USER","USERID","USING","VALUE","VALUES","VARIABLE","VARIANT","VCAT","VERSION","VERSIONING","VIEW","VOLATILE","WAIT","WHEN","WHENEVER","WHERE","WHILE","WITH","WITHIN","WITHOUT","WRAPPED","WRAPPER","WRITE","WRKSTNNAME","XMLAGG","XMLATTRIBUTES","XMLCAST","XMLCOMMENT","XMLCONCAT","XMLDOCUMENT","XMLELEMENT","XMLFOREST","XMLGROUP","XMLNAMESPACES","XMLPARSE","XMLPI","XMLROW","XMLSERIALIZE","XMLTABLE","XMLTEXT","XMLVALIDATE","XSLTRANSFORM","XSROBJECT","YEAR","YEARS","YES","ZONE"],ru=["ARRAY","BIGINT","BINARY","BIT","BLOB","BOOLEAN","CCSID","CHAR","CHARACTER","CLOB","DATA","DATALINK","DATE","DBCLOB","DECFLOAT","DECIMAL","DEC","DOUBLE","DOUBLE PRECISION","FLOAT","GRAPHIC","INT","INTEGER","LONG","NUMERIC","REAL","ROWID","SMALLINT","TIME","TIMESTAMP","VARBINARY","VARCHAR","VARGRAPHIC","XML"],nu=u(["SELECT [ALL | DISTINCT]"]),Ru=u(["WITH [RECURSIVE]","INTO","FROM","WHERE","GROUP BY","HAVING","PARTITION BY","ORDER [SIBLINGS] BY [INPUT SEQUENCE]","LIMIT","OFFSET","FETCH {FIRST | NEXT}","FOR UPDATE [OF]","FOR READ ONLY","OPTIMIZE FOR","INSERT INTO","VALUES","SET","MERGE INTO","WHEN [NOT] MATCHED [THEN]","UPDATE SET","DELETE","INSERT","FOR SYSTEM NAME"]),yn=u(["CREATE [OR REPLACE] TABLE"]),zs=u(["CREATE [OR REPLACE] [RECURSIVE] VIEW","UPDATE","WHERE CURRENT OF","WITH {NC | RR | RS | CS | UR}","DELETE FROM","DROP TABLE","ALTER TABLE","ADD [COLUMN]","ALTER [COLUMN]","DROP [COLUMN]","SET DATA TYPE","SET {GENERATED ALWAYS | GENERATED BY DEFAULT}","SET NOT NULL","SET {NOT HIDDEN | IMPLICITLY HIDDEN}","SET FIELDPROC","DROP {DEFAULT | NOT NULL | GENERATED | IDENTITY | ROW CHANGE TIMESTAMP | FIELDPROC}","TRUNCATE [TABLE]","SET [CURRENT] SCHEMA","SET CURRENT_SCHEMA","ALLOCATE CURSOR","ALLOCATE [SQL] DESCRIPTOR [LOCAL | GLOBAL] SQL","ALTER [SPECIFIC] {FUNCTION | PROCEDURE}","ALTER {MASK | PERMISSION | SEQUENCE | TRIGGER}","ASSOCIATE [RESULT SET] {LOCATOR | LOCATORS}","BEGIN DECLARE SECTION","CALL","CLOSE","COMMENT ON {ALIAS | COLUMN | CONSTRAINT | INDEX | MASK | PACKAGE | PARAMETER | PERMISSION | SEQUENCE | TABLE | TRIGGER | VARIABLE | XSROBJECT}","COMMENT ON [SPECIFIC] {FUNCTION | PROCEDURE | ROUTINE}","COMMENT ON PARAMETER SPECIFIC {FUNCTION | PROCEDURE | ROUTINE}","COMMENT ON [TABLE FUNCTION] RETURN COLUMN","COMMENT ON [TABLE FUNCTION] RETURN COLUMN SPECIFIC [PROCEDURE | ROUTINE]","COMMIT [WORK] [HOLD]","CONNECT [TO | RESET] USER","CREATE [OR REPLACE] {ALIAS | FUNCTION | MASK | PERMISSION | PROCEDURE | SEQUENCE | TRIGGER | VARIABLE}","CREATE [ENCODED VECTOR] INDEX","CREATE UNIQUE [WHERE NOT NULL] INDEX","CREATE SCHEMA","CREATE TYPE","DEALLOCATE [SQL] DESCRIPTOR [LOCAL | GLOBAL]","DECLARE CURSOR","DECLARE GLOBAL TEMPORARY TABLE","DECLARE","DESCRIBE CURSOR","DESCRIBE INPUT","DESCRIBE [OUTPUT]","DESCRIBE {PROCEDURE | ROUTINE}","DESCRIBE TABLE","DISCONNECT ALL [SQL]","DISCONNECT [CURRENT]","DROP {ALIAS | INDEX | MASK | PACKAGE | PERMISSION | SCHEMA | SEQUENCE | TABLE | TYPE | VARIABLE | XSROBJECT} [IF EXISTS]","DROP [SPECIFIC] {FUNCTION | PROCEDURE | ROUTINE} [IF EXISTS]","END DECLARE SECTION","EXECUTE [IMMEDIATE]","FREE LOCATOR","GET [SQL] DESCRIPTOR [LOCAL | GLOBAL]","GET [CURRENT | STACKED] DIAGNOSTICS","GRANT {ALL [PRIVILEGES] | ALTER | EXECUTE} ON {FUNCTION | PROCEDURE | ROUTINE | PACKAGE | SCHEMA | SEQUENCE | TABLE | TYPE | VARIABLE | XSROBJECT}","HOLD LOCATOR","INCLUDE","LABEL ON {ALIAS | COLUMN | CONSTRAINT | INDEX | MASK | PACKAGE | PERMISSION | SEQUENCE | TABLE | TRIGGER | VARIABLE | XSROBJECT}","LABEL ON [SPECIFIC] {FUNCTION | PROCEDURE | ROUTINE}","LOCK TABLE","OPEN","PREPARE","REFRESH TABLE","RELEASE","RELEASE [TO] SAVEPOINT","RENAME [TABLE | INDEX] TO","REVOKE {ALL [PRIVILEGES] | ALTER | EXECUTE} ON {FUNCTION | PROCEDURE | ROUTINE | PACKAGE | SCHEMA | SEQUENCE | TABLE | TYPE | VARIABLE | XSROBJECT}","ROLLBACK [WORK] [HOLD | TO SAVEPOINT]","SAVEPOINT","SET CONNECTION","SET CURRENT {DEBUG MODE | DECFLOAT ROUNDING MODE | DEGREE | IMPLICIT XMLPARSE OPTION | TEMPORAL SYSTEM_TIME}","SET [SQL] DESCRIPTOR [LOCAL | GLOBAL]","SET ENCRYPTION PASSWORD","SET OPTION","SET {[CURRENT [FUNCTION]] PATH | CURRENT_PATH}","SET RESULT SETS [WITH RETURN [TO CALLER | TO CLIENT]]","SET SESSION AUTHORIZATION","SET SESSION_USER","SET TRANSACTION","SIGNAL SQLSTATE [VALUE]","TAG","TRANSFER OWNERSHIP OF","WHENEVER {NOT FOUND | SQLERROR | SQLWARNING}"]),ou=u(["UNION [ALL]","EXCEPT [ALL]","INTERSECT [ALL]"]),Au=u(["JOIN","{LEFT | RIGHT | FULL} [OUTER] JOIN","[LEFT | RIGHT] EXCEPTION JOIN","{INNER | CROSS} JOIN"]),iu=u(["ON DELETE","ON UPDATE","SET NULL","{ROWS | RANGE} BETWEEN"]),Su={name:"db2i",tokenizerOptions:{reservedSelect:nu,reservedClauses:[...Ru,...yn,...zs],reservedSetOperations:ou,reservedJoins:Au,reservedPhrases:iu,reservedKeywords:Tu,reservedDataTypes:ru,reservedFunctionNames:su,nestedBlockComments:!0,extraParens:["[]"],stringTypes:[{quote:"''-qq",prefixes:["G","N"]},{quote:"''-raw",prefixes:["X","BX","GX","UX"],requirePrefix:!0}],identTypes:['""-qq'],identChars:{first:"@#$",rest:"@#$"},paramTypes:{positional:!0,named:[":"]},paramChars:{first:"@#$",rest:"@#$"},operators:["**","¬=","¬>","¬<","!>","!<","||","=>"]},formatOptions:{onelineClauses:[...yn,...zs],tabularOnelineClauses:zs}},Ou=["ABS","ACOS","ASIN","ATAN","BIN","BROUND","CBRT","CEIL","CEILING","CONV","COS","DEGREES","EXP","FACTORIAL","FLOOR","GREATEST","HEX","LEAST","LN","LOG","LOG10","LOG2","NEGATIVE","PI","PMOD","POSITIVE","POW","POWER","RADIANS","RAND","ROUND","SHIFTLEFT","SHIFTRIGHT","SHIFTRIGHTUNSIGNED","SIGN","SIN","SQRT","TAN","UNHEX","WIDTH_BUCKET","ARRAY_CONTAINS","MAP_KEYS","MAP_VALUES","SIZE","SORT_ARRAY","BINARY","CAST","ADD_MONTHS","DATE","DATE_ADD","DATE_FORMAT","DATE_SUB","DATEDIFF","DAY","DAYNAME","DAYOFMONTH","DAYOFYEAR","EXTRACT","FROM_UNIXTIME","FROM_UTC_TIMESTAMP","HOUR","LAST_DAY","MINUTE","MONTH","MONTHS_BETWEEN","NEXT_DAY","QUARTER","SECOND","TIMESTAMP","TO_DATE","TO_UTC_TIMESTAMP","TRUNC","UNIX_TIMESTAMP","WEEKOFYEAR","YEAR","ASSERT_TRUE","COALESCE","IF","ISNOTNULL","ISNULL","NULLIF","NVL","ASCII","BASE64","CHARACTER_LENGTH","CHR","CONCAT","CONCAT_WS","CONTEXT_NGRAMS","DECODE","ELT","ENCODE","FIELD","FIND_IN_SET","FORMAT_NUMBER","GET_JSON_OBJECT","IN_FILE","INITCAP","INSTR","LCASE","LENGTH","LEVENSHTEIN","LOCATE","LOWER","LPAD","LTRIM","NGRAMS","OCTET_LENGTH","PARSE_URL","PRINTF","QUOTE","REGEXP_EXTRACT","REGEXP_REPLACE","REPEAT","REVERSE","RPAD","RTRIM","SENTENCES","SOUNDEX","SPACE","SPLIT","STR_TO_MAP","SUBSTR","SUBSTRING","TRANSLATE","TRIM","UCASE","UNBASE64","UPPER","MASK","MASK_FIRST_N","MASK_HASH","MASK_LAST_N","MASK_SHOW_FIRST_N","MASK_SHOW_LAST_N","AES_DECRYPT","AES_ENCRYPT","CRC32","CURRENT_DATABASE","CURRENT_USER","HASH","JAVA_METHOD","LOGGED_IN_USER","MD5","REFLECT","SHA","SHA1","SHA2","SURROGATE_KEY","VERSION","AVG","COLLECT_LIST","COLLECT_SET","CORR","COUNT","COVAR_POP","COVAR_SAMP","HISTOGRAM_NUMERIC","MAX","MIN","NTILE","PERCENTILE","PERCENTILE_APPROX","REGR_AVGX","REGR_AVGY","REGR_COUNT","REGR_INTERCEPT","REGR_R2","REGR_SLOPE","REGR_SXX","REGR_SXY","REGR_SYY","STDDEV_POP","STDDEV_SAMP","SUM","VAR_POP","VAR_SAMP","VARIANCE","EXPLODE","INLINE","JSON_TUPLE","PARSE_URL_TUPLE","POSEXPLODE","STACK","LEAD","LAG","FIRST_VALUE","LAST_VALUE","RANK","ROW_NUMBER","DENSE_RANK","CUME_DIST","PERCENT_RANK","NTILE"],Iu=["ADD","ADMIN","AFTER","ANALYZE","ARCHIVE","ASC","BEFORE","BUCKET","BUCKETS","CASCADE","CHANGE","CLUSTER","CLUSTERED","CLUSTERSTATUS","COLLECTION","COLUMNS","COMMENT","COMPACT","COMPACTIONS","COMPUTE","CONCATENATE","CONTINUE","DATA","DATABASES","DATETIME","DAY","DBPROPERTIES","DEFERRED","DEFINED","DELIMITED","DEPENDENCY","DESC","DIRECTORIES","DIRECTORY","DISABLE","DISTRIBUTE","ELEM_TYPE","ENABLE","ESCAPED","EXCLUSIVE","EXPLAIN","EXPORT","FIELDS","FILE","FILEFORMAT","FIRST","FORMAT","FORMATTED","FUNCTIONS","HOLD_DDLTIME","HOUR","IDXPROPERTIES","IGNORE","INDEX","INDEXES","INPATH","INPUTDRIVER","INPUTFORMAT","ITEMS","JAR","KEYS","KEY_TYPE","LIMIT","LINES","LOAD","LOCATION","LOCK","LOCKS","LOGICAL","LONG","MAPJOIN","MATERIALIZED","METADATA","MINUS","MINUTE","MONTH","MSCK","NOSCAN","NO_DROP","OFFLINE","OPTION","OUTPUTDRIVER","OUTPUTFORMAT","OVERWRITE","OWNER","PARTITIONED","PARTITIONS","PLUS","PRETTY","PRINCIPALS","PROTECTION","PURGE","READ","READONLY","REBUILD","RECORDREADER","RECORDWRITER","RELOAD","RENAME","REPAIR","REPLACE","REPLICATION","RESTRICT","REWRITE","ROLE","ROLES","SCHEMA","SCHEMAS","SECOND","SEMI","SERDE","SERDEPROPERTIES","SERVER","SETS","SHARED","SHOW","SHOW_DATABASE","SKEWED","SORT","SORTED","SSL","STATISTICS","STORED","STREAMTABLE","STRING","TABLES","TBLPROPERTIES","TEMPORARY","TERMINATED","TINYINT","TOUCH","TRANSACTIONS","UNARCHIVE","UNDO","UNIONTYPE","UNLOCK","UNSET","UNSIGNED","URI","USE","UTC","UTCTIMESTAMP","VALUE_TYPE","VIEW","WHILE","YEAR","AUTOCOMMIT","ISOLATION","LEVEL","OFFSET","SNAPSHOT","TRANSACTION","WORK","WRITE","ABORT","KEY","LAST","NORELY","NOVALIDATE","NULLS","RELY","VALIDATE","DETAIL","DOW","EXPRESSION","OPERATOR","QUARTER","SUMMARY","VECTORIZATION","WEEK","YEARS","MONTHS","WEEKS","DAYS","HOURS","MINUTES","SECONDS","TIMESTAMPTZ","ZONE","ALL","ALTER","AND","AS","AUTHORIZATION","BETWEEN","BOTH","BY","CASE","CAST","COLUMN","CONF","CREATE","CROSS","CUBE","CURRENT","CURRENT_DATE","CURRENT_TIMESTAMP","CURSOR","DATABASE","DELETE","DESCRIBE","DISTINCT","DROP","ELSE","END","EXCHANGE","EXISTS","EXTENDED","EXTERNAL","FALSE","FETCH","FOLLOWING","FOR","FROM","FULL","FUNCTION","GRANT","GROUP","GROUPING","HAVING","IF","IMPORT","IN","INNER","INSERT","INTERSECT","INTO","IS","JOIN","LATERAL","LEFT","LESS","LIKE","LOCAL","MACRO","MORE","NONE","NOT","NULL","OF","ON","OR","ORDER","OUT","OUTER","OVER","PARTIALSCAN","PARTITION","PERCENT","PRECEDING","PRESERVE","PROCEDURE","RANGE","READS","REDUCE","REVOKE","RIGHT","ROLLUP","ROW","ROWS","SELECT","SET","TABLE","TABLESAMPLE","THEN","TO","TRANSFORM","TRIGGER","TRUE","TRUNCATE","UNBOUNDED","UNION","UNIQUEJOIN","UPDATE","USER","USING","UTC_TMESTAMP","VALUES","WHEN","WHERE","WINDOW","WITH","COMMIT","ONLY","REGEXP","RLIKE","ROLLBACK","START","CACHE","CONSTRAINT","FOREIGN","PRIMARY","REFERENCES","DAYOFWEEK","EXTRACT","FLOOR","VIEWS","TIME","SYNC","TEXTFILE","SEQUENCEFILE","ORC","CSV","TSV","PARQUET","AVRO","RCFILE","JSONFILE","INPUTFORMAT","OUTPUTFORMAT"],au=["ARRAY","BIGINT","BINARY","BOOLEAN","CHAR","DATE","DECIMAL","DOUBLE","FLOAT","INT","INTEGER","INTERVAL","MAP","NUMERIC","PRECISION","SMALLINT","STRUCT","TIMESTAMP","VARCHAR"],Nu=u(["SELECT [ALL | DISTINCT]"]),lu=u(["WITH","FROM","WHERE","GROUP BY","HAVING","WINDOW","PARTITION BY","ORDER BY","SORT BY","CLUSTER BY","DISTRIBUTE BY","LIMIT","INSERT INTO [TABLE]","VALUES","SET","MERGE INTO","WHEN [NOT] MATCHED [THEN]","UPDATE SET","INSERT [VALUES]","INSERT OVERWRITE [LOCAL] DIRECTORY","LOAD DATA [LOCAL] INPATH","[OVERWRITE] INTO TABLE"]),vn=u(["CREATE [TEMPORARY] [EXTERNAL] TABLE [IF NOT EXISTS]"]),eT=u(["CREATE [MATERIALIZED] VIEW [IF NOT EXISTS]","UPDATE","DELETE FROM","DROP TABLE [IF EXISTS]","ALTER TABLE","RENAME TO","TRUNCATE [TABLE]","ALTER","CREATE","USE","DESCRIBE","DROP","FETCH","SHOW","STORED AS","STORED BY","ROW FORMAT"]),_u=u(["UNION [ALL | DISTINCT]"]),Cu=u(["JOIN","{LEFT | RIGHT | FULL} [OUTER] JOIN","{INNER | CROSS} JOIN","LEFT SEMI JOIN"]),Lu=u(["{ROWS | RANGE} BETWEEN"]),cu={name:"hive",tokenizerOptions:{reservedSelect:Nu,reservedClauses:[...lu,...vn,...eT],reservedSetOperations:_u,reservedJoins:Cu,reservedPhrases:Lu,reservedKeywords:Iu,reservedDataTypes:au,reservedFunctionNames:Ou,extraParens:["[]"],stringTypes:['""-bs',"''-bs"],identTypes:["``"],variableTypes:[{quote:"{}",prefixes:["$"],requirePrefix:!0}],operators:["%","~","^","|","&","<=>","==","!","||"]},formatOptions:{onelineClauses:[...vn,...eT],tabularOnelineClauses:eT}};function vs(e){return e.map((t,E)=>{const s=e[E+1]||oE;if(Wt.SET(t)&&s.text==="(")return Ye(me({},t),{type:"RESERVED_FUNCTION_NAME"});const T=e[E-1]||oE;return Wt.VALUES(t)&&T.text==="="?Ye(me({},t),{type:"RESERVED_FUNCTION_NAME"}):t})}var uu=["ACCESSIBLE","ADD","ALL","ALTER","ANALYZE","AND","AS","ASC","ASENSITIVE","BEFORE","BETWEEN","BOTH","BY","CALL","CASCADE","CASE","CHANGE","CHECK","COLLATE","COLUMN","CONDITION","CONSTRAINT","CONTINUE","CONVERT","CREATE","CROSS","CURRENT_DATE","CURRENT_ROLE","CURRENT_TIME","CURRENT_TIMESTAMP","CURRENT_USER","CURSOR","DATABASE","DATABASES","DAY_HOUR","DAY_MICROSECOND","DAY_MINUTE","DAY_SECOND","DECLARE","DEFAULT","DELAYED","DELETE","DELETE_DOMAIN_ID","DESC","DESCRIBE","DETERMINISTIC","DISTINCT","DISTINCTROW","DIV","DO_DOMAIN_IDS","DROP","DUAL","EACH","ELSE","ELSEIF","ENCLOSED","ESCAPED","EXCEPT","EXISTS","EXIT","EXPLAIN","FALSE","FETCH","FOR","FORCE","FOREIGN","FROM","FULLTEXT","GENERAL","GRANT","GROUP","HAVING","HIGH_PRIORITY","HOUR_MICROSECOND","HOUR_MINUTE","HOUR_SECOND","IF","IGNORE","IGNORE_DOMAIN_IDS","IGNORE_SERVER_IDS","IN","INDEX","INFILE","INNER","INOUT","INSENSITIVE","INSERT","INTERSECT","INTERVAL","INTO","IS","ITERATE","JOIN","KEY","KEYS","KILL","LEADING","LEAVE","LEFT","LIKE","LIMIT","LINEAR","LINES","LOAD","LOCALTIME","LOCALTIMESTAMP","LOCK","LOOP","LOW_PRIORITY","MASTER_HEARTBEAT_PERIOD","MASTER_SSL_VERIFY_SERVER_CERT","MATCH","MAXVALUE","MINUTE_MICROSECOND","MINUTE_SECOND","MOD","MODIFIES","NATURAL","NOT","NO_WRITE_TO_BINLOG","NULL","OFFSET","ON","OPTIMIZE","OPTION","OPTIONALLY","OR","ORDER","OUT","OUTER","OUTFILE","OVER","PAGE_CHECKSUM","PARSE_VCOL_EXPR","PARTITION","POSITION","PRIMARY","PROCEDURE","PURGE","RANGE","READ","READS","READ_WRITE","RECURSIVE","REF_SYSTEM_ID","REFERENCES","REGEXP","RELEASE","RENAME","REPEAT","REPLACE","REQUIRE","RESIGNAL","RESTRICT","RETURN","RETURNING","REVOKE","RIGHT","RLIKE","ROW_NUMBER","ROWS","SCHEMA","SCHEMAS","SECOND_MICROSECOND","SELECT","SENSITIVE","SEPARATOR","SET","SHOW","SIGNAL","SLOW","SPATIAL","SPECIFIC","SQL","SQLEXCEPTION","SQLSTATE","SQLWARNING","SQL_BIG_RESULT","SQL_CALC_FOUND_ROWS","SQL_SMALL_RESULT","SSL","STARTING","STATS_AUTO_RECALC","STATS_PERSISTENT","STATS_SAMPLE_PAGES","STRAIGHT_JOIN","TABLE","TERMINATED","THEN","TO","TRAILING","TRIGGER","TRUE","UNDO","UNION","UNIQUE","UNLOCK","UNSIGNED","UPDATE","USAGE","USE","USING","UTC_DATE","UTC_TIME","UTC_TIMESTAMP","VALUES","WHEN","WHERE","WHILE","WINDOW","WITH","WRITE","XOR","YEAR_MONTH","ZEROFILL"],pu=["BIGINT","BINARY","BIT","BLOB","CHAR BYTE","CHAR","CHARACTER","DATETIME","DEC","DECIMAL","DOUBLE PRECISION","DOUBLE","ENUM","FIXED","FLOAT","FLOAT4","FLOAT8","INT","INT1","INT2","INT3","INT4","INT8","INTEGER","LONG","LONGBLOB","LONGTEXT","MEDIUMBLOB","MEDIUMINT","MEDIUMTEXT","MIDDLEINT","NATIONAL CHAR","NATIONAL VARCHAR","NUMERIC","PRECISION","REAL","SMALLINT","TEXT","TIMESTAMP","TINYBLOB","TINYINT","TINYTEXT","VARBINARY","VARCHAR","VARCHARACTER","VARYING","YEAR"],fu=["ADDDATE","ADD_MONTHS","BIT_AND","BIT_OR","BIT_XOR","CAST","COUNT","CUME_DIST","CURDATE","CURTIME","DATE_ADD","DATE_SUB","DATE_FORMAT","DECODE","DENSE_RANK","EXTRACT","FIRST_VALUE","GROUP_CONCAT","JSON_ARRAYAGG","JSON_OBJECTAGG","LAG","LEAD","MAX","MEDIAN","MID","MIN","NOW","NTH_VALUE","NTILE","POSITION","PERCENT_RANK","PERCENTILE_CONT","PERCENTILE_DISC","RANK","ROW_NUMBER","SESSION_USER","STD","STDDEV","STDDEV_POP","STDDEV_SAMP","SUBDATE","SUBSTR","SUBSTRING","SUM","SYSTEM_USER","TRIM","TRIM_ORACLE","VARIANCE","VAR_POP","VAR_SAMP","ABS","ACOS","ADDTIME","AES_DECRYPT","AES_ENCRYPT","ASIN","ATAN","ATAN2","BENCHMARK","BIN","BINLOG_GTID_POS","BIT_COUNT","BIT_LENGTH","CEIL","CEILING","CHARACTER_LENGTH","CHAR_LENGTH","CHR","COERCIBILITY","COLUMN_CHECK","COLUMN_EXISTS","COLUMN_LIST","COLUMN_JSON","COMPRESS","CONCAT","CONCAT_OPERATOR_ORACLE","CONCAT_WS","CONNECTION_ID","CONV","CONVERT_TZ","COS","COT","CRC32","DATEDIFF","DAYNAME","DAYOFMONTH","DAYOFWEEK","DAYOFYEAR","DEGREES","DECODE_HISTOGRAM","DECODE_ORACLE","DES_DECRYPT","DES_ENCRYPT","ELT","ENCODE","ENCRYPT","EXP","EXPORT_SET","EXTRACTVALUE","FIELD","FIND_IN_SET","FLOOR","FORMAT","FOUND_ROWS","FROM_BASE64","FROM_DAYS","FROM_UNIXTIME","GET_LOCK","GREATEST","HEX","IFNULL","INSTR","ISNULL","IS_FREE_LOCK","IS_USED_LOCK","JSON_ARRAY","JSON_ARRAY_APPEND","JSON_ARRAY_INSERT","JSON_COMPACT","JSON_CONTAINS","JSON_CONTAINS_PATH","JSON_DEPTH","JSON_DETAILED","JSON_EXISTS","JSON_EXTRACT","JSON_INSERT","JSON_KEYS","JSON_LENGTH","JSON_LOOSE","JSON_MERGE","JSON_MERGE_PATCH","JSON_MERGE_PRESERVE","JSON_QUERY","JSON_QUOTE","JSON_OBJECT","JSON_REMOVE","JSON_REPLACE","JSON_SET","JSON_SEARCH","JSON_TYPE","JSON_UNQUOTE","JSON_VALID","JSON_VALUE","LAST_DAY","LAST_INSERT_ID","LCASE","LEAST","LENGTH","LENGTHB","LN","LOAD_FILE","LOCATE","LOG","LOG10","LOG2","LOWER","LPAD","LPAD_ORACLE","LTRIM","LTRIM_ORACLE","MAKEDATE","MAKETIME","MAKE_SET","MASTER_GTID_WAIT","MASTER_POS_WAIT","MD5","MONTHNAME","NAME_CONST","NVL","NVL2","OCT","OCTET_LENGTH","ORD","PERIOD_ADD","PERIOD_DIFF","PI","POW","POWER","QUOTE","REGEXP_INSTR","REGEXP_REPLACE","REGEXP_SUBSTR","RADIANS","RAND","RELEASE_ALL_LOCKS","RELEASE_LOCK","REPLACE_ORACLE","REVERSE","ROUND","RPAD","RPAD_ORACLE","RTRIM","RTRIM_ORACLE","SEC_TO_TIME","SHA","SHA1","SHA2","SIGN","SIN","SLEEP","SOUNDEX","SPACE","SQRT","STRCMP","STR_TO_DATE","SUBSTR_ORACLE","SUBSTRING_INDEX","SUBTIME","SYS_GUID","TAN","TIMEDIFF","TIME_FORMAT","TIME_TO_SEC","TO_BASE64","TO_CHAR","TO_DAYS","TO_SECONDS","UCASE","UNCOMPRESS","UNCOMPRESSED_LENGTH","UNHEX","UNIX_TIMESTAMP","UPDATEXML","UPPER","UUID","UUID_SHORT","VERSION","WEEKDAY","WEEKOFYEAR","WSREP_LAST_WRITTEN_GTID","WSREP_LAST_SEEN_GTID","WSREP_SYNC_WAIT_UPTO_GTID","YEARWEEK","COALESCE","NULLIF"],Du=u(["SELECT [ALL | DISTINCT | DISTINCTROW]"]),Pu=u(["WITH [RECURSIVE]","FROM","WHERE","GROUP BY","HAVING","PARTITION BY","ORDER BY","LIMIT","OFFSET","FETCH {FIRST | NEXT}","INSERT [LOW_PRIORITY | DELAYED | HIGH_PRIORITY] [IGNORE] [INTO]","REPLACE [LOW_PRIORITY | DELAYED] [INTO]","VALUES","ON DUPLICATE KEY UPDATE","SET","RETURNING"]),Fn=u(["CREATE [OR REPLACE] [TEMPORARY] TABLE [IF NOT EXISTS]"]),tT=u(["CREATE [OR REPLACE] [SQL SECURITY DEFINER | SQL SECURITY INVOKER] VIEW [IF NOT EXISTS]","UPDATE [LOW_PRIORITY] [IGNORE]","DELETE [LOW_PRIORITY] [QUICK] [IGNORE] FROM","DROP [TEMPORARY] TABLE [IF EXISTS]","ALTER [ONLINE] [IGNORE] TABLE [IF EXISTS]","ADD [COLUMN] [IF NOT EXISTS]","{CHANGE | MODIFY} [COLUMN] [IF EXISTS]","DROP [COLUMN] [IF EXISTS]","RENAME [TO]","RENAME COLUMN","ALTER [COLUMN]","{SET | DROP} DEFAULT","SET {VISIBLE | INVISIBLE}","TRUNCATE [TABLE]","ALTER DATABASE","ALTER DATABASE COMMENT","ALTER EVENT","ALTER FUNCTION","ALTER PROCEDURE","ALTER SCHEMA","ALTER SCHEMA COMMENT","ALTER SEQUENCE","ALTER SERVER","ALTER USER","ALTER VIEW","ANALYZE","ANALYZE TABLE","BACKUP LOCK","BACKUP STAGE","BACKUP UNLOCK","BEGIN","BINLOG","CACHE INDEX","CALL","CHANGE MASTER TO","CHECK TABLE","CHECK VIEW","CHECKSUM TABLE","COMMIT","CREATE AGGREGATE FUNCTION","CREATE DATABASE","CREATE EVENT","CREATE FUNCTION","CREATE INDEX","CREATE PROCEDURE","CREATE ROLE","CREATE SEQUENCE","CREATE SERVER","CREATE SPATIAL INDEX","CREATE TRIGGER","CREATE UNIQUE INDEX","CREATE USER","DEALLOCATE PREPARE","DESCRIBE","DROP DATABASE","DROP EVENT","DROP FUNCTION","DROP INDEX","DROP PREPARE","DROP PROCEDURE","DROP ROLE","DROP SEQUENCE","DROP SERVER","DROP TRIGGER","DROP USER","DROP VIEW","EXECUTE","EXPLAIN","FLUSH","GET DIAGNOSTICS","GET DIAGNOSTICS CONDITION","GRANT","HANDLER","HELP","INSTALL PLUGIN","INSTALL SONAME","KILL","LOAD DATA INFILE","LOAD INDEX INTO CACHE","LOAD XML INFILE","LOCK TABLE","OPTIMIZE TABLE","PREPARE","PURGE BINARY LOGS","PURGE MASTER LOGS","RELEASE SAVEPOINT","RENAME TABLE","RENAME USER","REPAIR TABLE","REPAIR VIEW","RESET MASTER","RESET QUERY CACHE","RESET REPLICA","RESET SLAVE","RESIGNAL","REVOKE","ROLLBACK","SAVEPOINT","SET CHARACTER SET","SET DEFAULT ROLE","SET GLOBAL TRANSACTION","SET NAMES","SET PASSWORD","SET ROLE","SET STATEMENT","SET TRANSACTION","SHOW","SHOW ALL REPLICAS STATUS","SHOW ALL SLAVES STATUS","SHOW AUTHORS","SHOW BINARY LOGS","SHOW BINLOG EVENTS","SHOW BINLOG STATUS","SHOW CHARACTER SET","SHOW CLIENT_STATISTICS","SHOW COLLATION","SHOW COLUMNS","SHOW CONTRIBUTORS","SHOW CREATE DATABASE","SHOW CREATE EVENT","SHOW CREATE FUNCTION","SHOW CREATE PACKAGE","SHOW CREATE PACKAGE BODY","SHOW CREATE PROCEDURE","SHOW CREATE SEQUENCE","SHOW CREATE TABLE","SHOW CREATE TRIGGER","SHOW CREATE USER","SHOW CREATE VIEW","SHOW DATABASES","SHOW ENGINE","SHOW ENGINE INNODB STATUS","SHOW ENGINES","SHOW ERRORS","SHOW EVENTS","SHOW EXPLAIN","SHOW FUNCTION CODE","SHOW FUNCTION STATUS","SHOW GRANTS","SHOW INDEX","SHOW INDEXES","SHOW INDEX_STATISTICS","SHOW KEYS","SHOW LOCALES","SHOW MASTER LOGS","SHOW MASTER STATUS","SHOW OPEN TABLES","SHOW PACKAGE BODY CODE","SHOW PACKAGE BODY STATUS","SHOW PACKAGE STATUS","SHOW PLUGINS","SHOW PLUGINS SONAME","SHOW PRIVILEGES","SHOW PROCEDURE CODE","SHOW PROCEDURE STATUS","SHOW PROCESSLIST","SHOW PROFILE","SHOW PROFILES","SHOW QUERY_RESPONSE_TIME","SHOW RELAYLOG EVENTS","SHOW REPLICA","SHOW REPLICA HOSTS","SHOW REPLICA STATUS","SHOW SCHEMAS","SHOW SLAVE","SHOW SLAVE HOSTS","SHOW SLAVE STATUS","SHOW STATUS","SHOW STORAGE ENGINES","SHOW TABLE STATUS","SHOW TABLES","SHOW TRIGGERS","SHOW USER_STATISTICS","SHOW VARIABLES","SHOW WARNINGS","SHOW WSREP_MEMBERSHIP","SHOW WSREP_STATUS","SHUTDOWN","SIGNAL","START ALL REPLICAS","START ALL SLAVES","START REPLICA","START SLAVE","START TRANSACTION","STOP ALL REPLICAS","STOP ALL SLAVES","STOP REPLICA","STOP SLAVE","UNINSTALL PLUGIN","UNINSTALL SONAME","UNLOCK TABLE","USE","XA BEGIN","XA COMMIT","XA END","XA PREPARE","XA RECOVER","XA ROLLBACK","XA START"]),du=u(["UNION [ALL | DISTINCT]","EXCEPT [ALL | DISTINCT]","INTERSECT [ALL | DISTINCT]","MINUS [ALL | DISTINCT]"]),Mu=u(["JOIN","{LEFT | RIGHT} [OUTER] JOIN","{INNER | CROSS} JOIN","NATURAL JOIN","NATURAL {LEFT | RIGHT} [OUTER] JOIN","STRAIGHT_JOIN"]),Uu=u(["ON {UPDATE | DELETE} [SET NULL | SET DEFAULT]","CHARACTER SET","{ROWS | RANGE} BETWEEN","IDENTIFIED BY"]),hu={name:"mariadb",tokenizerOptions:{reservedSelect:Du,reservedClauses:[...Pu,...Fn,...tT],reservedSetOperations:du,reservedJoins:Mu,reservedPhrases:Uu,supportsXor:!0,reservedKeywords:uu,reservedDataTypes:pu,reservedFunctionNames:fu,stringTypes:['""-qq-bs',"''-qq-bs",{quote:"''-raw",prefixes:["B","X"],requirePrefix:!0}],identTypes:["``"],identChars:{first:"$",rest:"$",allowFirstCharNumber:!0},variableTypes:[{regex:"@@?[A-Za-z0-9_.$]+"},{quote:'""-qq-bs',prefixes:["@"],requirePrefix:!0},{quote:"''-qq-bs",prefixes:["@"],requirePrefix:!0},{quote:"``",prefixes:["@"],requirePrefix:!0}],paramTypes:{positional:!0},lineCommentTypes:["--","#"],operators:["%",":=","&","|","^","~","<<",">>","<=>","&&","||","!","*.*"],postProcess:vs},formatOptions:{onelineClauses:[...Fn,...tT],tabularOnelineClauses:tT}},Gu=["ACCESSIBLE","ADD","ALL","ALTER","ANALYZE","AND","AS","ASC","ASENSITIVE","BEFORE","BETWEEN","BOTH","BY","CALL","CASCADE","CASE","CHANGE","CHECK","COLLATE","COLUMN","CONDITION","CONSTRAINT","CONTINUE","CONVERT","CREATE","CROSS","CUBE","CUME_DIST","CURRENT_DATE","CURRENT_TIME","CURRENT_TIMESTAMP","CURRENT_USER","CURSOR","DATABASE","DATABASES","DAY_HOUR","DAY_MICROSECOND","DAY_MINUTE","DAY_SECOND","DECLARE","DEFAULT","DELAYED","DELETE","DENSE_RANK","DESC","DESCRIBE","DETERMINISTIC","DISTINCT","DISTINCTROW","DIV","DROP","DUAL","EACH","ELSE","ELSEIF","EMPTY","ENCLOSED","ESCAPED","EXCEPT","EXISTS","EXIT","EXPLAIN","FALSE","FETCH","FIRST_VALUE","FOR","FORCE","FOREIGN","FROM","FULLTEXT","FUNCTION","GENERATED","GET","GRANT","GROUP","GROUPING","GROUPS","HAVING","HIGH_PRIORITY","HOUR_MICROSECOND","HOUR_MINUTE","HOUR_SECOND","IF","IGNORE","IN","INDEX","INFILE","INNER","INOUT","INSENSITIVE","INSERT","IN","INTERSECT","INTERVAL","INTO","IO_AFTER_GTIDS","IO_BEFORE_GTIDS","IS","ITERATE","JOIN","JSON_TABLE","KEY","KEYS","KILL","LAG","LAST_VALUE","LATERAL","LEAD","LEADING","LEAVE","LEFT","LIKE","LIMIT","LINEAR","LINES","LOAD","LOCALTIME","LOCALTIMESTAMP","LOCK","LONG","LOOP","LOW_PRIORITY","MASTER_BIND","MASTER_SSL_VERIFY_SERVER_CERT","MATCH","MAXVALUE","MINUTE_MICROSECOND","MINUTE_SECOND","MOD","MODIFIES","NATURAL","NOT","NO_WRITE_TO_BINLOG","NTH_VALUE","NTILE","NULL","OF","ON","OPTIMIZE","OPTIMIZER_COSTS","OPTION","OPTIONALLY","OR","ORDER","OUT","OUTER","OUTFILE","OVER","PARTITION","PERCENT_RANK","PRIMARY","PROCEDURE","PURGE","RANGE","RANK","READ","READS","READ_WRITE","RECURSIVE","REFERENCES","REGEXP","RELEASE","RENAME","REPEAT","REPLACE","REQUIRE","RESIGNAL","RESTRICT","RETURN","REVOKE","RIGHT","RLIKE","ROW","ROWS","ROW_NUMBER","SCHEMA","SCHEMAS","SECOND_MICROSECOND","SELECT","SENSITIVE","SEPARATOR","SET","SHOW","SIGNAL","SPATIAL","SPECIFIC","SQL","SQLEXCEPTION","SQLSTATE","SQLWARNING","SQL_BIG_RESULT","SQL_CALC_FOUND_ROWS","SQL_SMALL_RESULT","SSL","STARTING","STORED","STRAIGHT_JOIN","SYSTEM","TABLE","TERMINATED","THEN","TO","TRAILING","TRIGGER","TRUE","UNDO","UNION","UNIQUE","UNLOCK","UNSIGNED","UPDATE","USAGE","USE","USING","UTC_DATE","UTC_TIME","UTC_TIMESTAMP","VALUES","VIRTUAL","WHEN","WHERE","WHILE","WINDOW","WITH","WRITE","XOR","YEAR_MONTH","ZEROFILL"],gu=["BIGINT","BINARY","BIT","BLOB","BOOL","BOOLEAN","CHAR","CHARACTER","DATE","DATETIME","DEC","DECIMAL","DOUBLE PRECISION","DOUBLE","ENUM","FIXED","FLOAT","FLOAT4","FLOAT8","INT","INT1","INT2","INT3","INT4","INT8","INTEGER","LONGBLOB","LONGTEXT","MEDIUMBLOB","MEDIUMINT","MEDIUMTEXT","MIDDLEINT","NATIONAL CHAR","NATIONAL VARCHAR","NUMERIC","PRECISION","REAL","SMALLINT","TEXT","TIME","TIMESTAMP","TINYBLOB","TINYINT","TINYTEXT","VARBINARY","VARCHAR","VARCHARACTER","VARYING","YEAR"],mu=["ABS","ACOS","ADDDATE","ADDTIME","AES_DECRYPT","AES_ENCRYPT","ANY_VALUE","ASCII","ASIN","ATAN","ATAN2","AVG","BENCHMARK","BIN","BIN_TO_UUID","BINARY","BIT_AND","BIT_COUNT","BIT_LENGTH","BIT_OR","BIT_XOR","CAN_ACCESS_COLUMN","CAN_ACCESS_DATABASE","CAN_ACCESS_TABLE","CAN_ACCESS_USER","CAN_ACCESS_VIEW","CAST","CEIL","CEILING","CHAR","CHAR_LENGTH","CHARACTER_LENGTH","CHARSET","COALESCE","COERCIBILITY","COLLATION","COMPRESS","CONCAT","CONCAT_WS","CONNECTION_ID","CONV","CONVERT","CONVERT_TZ","COS","COT","COUNT","CRC32","CUME_DIST","CURDATE","CURRENT_DATE","CURRENT_ROLE","CURRENT_TIME","CURRENT_TIMESTAMP","CURRENT_USER","CURTIME","DATABASE","DATE","DATE_ADD","DATE_FORMAT","DATE_SUB","DATEDIFF","DAY","DAYNAME","DAYOFMONTH","DAYOFWEEK","DAYOFYEAR","DEFAULT","DEGREES","DENSE_RANK","DIV","ELT","EXP","EXPORT_SET","EXTRACT","EXTRACTVALUE","FIELD","FIND_IN_SET","FIRST_VALUE","FLOOR","FORMAT","FORMAT_BYTES","FORMAT_PICO_TIME","FOUND_ROWS","FROM_BASE64","FROM_DAYS","FROM_UNIXTIME","GEOMCOLLECTION","GEOMETRYCOLLECTION","GET_DD_COLUMN_PRIVILEGES","GET_DD_CREATE_OPTIONS","GET_DD_INDEX_SUB_PART_LENGTH","GET_FORMAT","GET_LOCK","GREATEST","GROUP_CONCAT","GROUPING","GTID_SUBSET","GTID_SUBTRACT","HEX","HOUR","ICU_VERSION","IF","IFNULL","INET_ATON","INET_NTOA","INET6_ATON","INET6_NTOA","INSERT","INSTR","INTERNAL_AUTO_INCREMENT","INTERNAL_AVG_ROW_LENGTH","INTERNAL_CHECK_TIME","INTERNAL_CHECKSUM","INTERNAL_DATA_FREE","INTERNAL_DATA_LENGTH","INTERNAL_DD_CHAR_LENGTH","INTERNAL_GET_COMMENT_OR_ERROR","INTERNAL_GET_ENABLED_ROLE_JSON","INTERNAL_GET_HOSTNAME","INTERNAL_GET_USERNAME","INTERNAL_GET_VIEW_WARNING_OR_ERROR","INTERNAL_INDEX_COLUMN_CARDINALITY","INTERNAL_INDEX_LENGTH","INTERNAL_IS_ENABLED_ROLE","INTERNAL_IS_MANDATORY_ROLE","INTERNAL_KEYS_DISABLED","INTERNAL_MAX_DATA_LENGTH","INTERNAL_TABLE_ROWS","INTERNAL_UPDATE_TIME","INTERVAL","IS","IS_FREE_LOCK","IS_IPV4","IS_IPV4_COMPAT","IS_IPV4_MAPPED","IS_IPV6","IS NOT","IS NOT NULL","IS NULL","IS_USED_LOCK","IS_UUID","ISNULL","JSON_ARRAY","JSON_ARRAY_APPEND","JSON_ARRAY_INSERT","JSON_ARRAYAGG","JSON_CONTAINS","JSON_CONTAINS_PATH","JSON_DEPTH","JSON_EXTRACT","JSON_INSERT","JSON_KEYS","JSON_LENGTH","JSON_MERGE","JSON_MERGE_PATCH","JSON_MERGE_PRESERVE","JSON_OBJECT","JSON_OBJECTAGG","JSON_OVERLAPS","JSON_PRETTY","JSON_QUOTE","JSON_REMOVE","JSON_REPLACE","JSON_SCHEMA_VALID","JSON_SCHEMA_VALIDATION_REPORT","JSON_SEARCH","JSON_SET","JSON_STORAGE_FREE","JSON_STORAGE_SIZE","JSON_TABLE","JSON_TYPE","JSON_UNQUOTE","JSON_VALID","JSON_VALUE","LAG","LAST_DAY","LAST_INSERT_ID","LAST_VALUE","LCASE","LEAD","LEAST","LEFT","LENGTH","LIKE","LINESTRING","LN","LOAD_FILE","LOCALTIME","LOCALTIMESTAMP","LOCATE","LOG","LOG10","LOG2","LOWER","LPAD","LTRIM","MAKE_SET","MAKEDATE","MAKETIME","MASTER_POS_WAIT","MATCH","MAX","MBRCONTAINS","MBRCOVEREDBY","MBRCOVERS","MBRDISJOINT","MBREQUALS","MBRINTERSECTS","MBROVERLAPS","MBRTOUCHES","MBRWITHIN","MD5","MEMBER OF","MICROSECOND","MID","MIN","MINUTE","MOD","MONTH","MONTHNAME","MULTILINESTRING","MULTIPOINT","MULTIPOLYGON","NAME_CONST","NOT","NOT IN","NOT LIKE","NOT REGEXP","NOW","NTH_VALUE","NTILE","NULLIF","OCT","OCTET_LENGTH","ORD","PERCENT_RANK","PERIOD_ADD","PERIOD_DIFF","PI","POINT","POLYGON","POSITION","POW","POWER","PS_CURRENT_THREAD_ID","PS_THREAD_ID","QUARTER","QUOTE","RADIANS","RAND","RANDOM_BYTES","RANK","REGEXP","REGEXP_INSTR","REGEXP_LIKE","REGEXP_REPLACE","REGEXP_SUBSTR","RELEASE_ALL_LOCKS","RELEASE_LOCK","REPEAT","REPLACE","REVERSE","RIGHT","RLIKE","ROLES_GRAPHML","ROUND","ROW_COUNT","ROW_NUMBER","RPAD","RTRIM","SCHEMA","SEC_TO_TIME","SECOND","SESSION_USER","SHA1","SHA2","SIGN","SIN","SLEEP","SOUNDEX","SOUNDS LIKE","SOURCE_POS_WAIT","SPACE","SQRT","ST_AREA","ST_ASBINARY","ST_ASGEOJSON","ST_ASTEXT","ST_BUFFER","ST_BUFFER_STRATEGY","ST_CENTROID","ST_COLLECT","ST_CONTAINS","ST_CONVEXHULL","ST_CROSSES","ST_DIFFERENCE","ST_DIMENSION","ST_DISJOINT","ST_DISTANCE","ST_DISTANCE_SPHERE","ST_ENDPOINT","ST_ENVELOPE","ST_EQUALS","ST_EXTERIORRING","ST_FRECHETDISTANCE","ST_GEOHASH","ST_GEOMCOLLFROMTEXT","ST_GEOMCOLLFROMWKB","ST_GEOMETRYN","ST_GEOMETRYTYPE","ST_GEOMFROMGEOJSON","ST_GEOMFROMTEXT","ST_GEOMFROMWKB","ST_HAUSDORFFDISTANCE","ST_INTERIORRINGN","ST_INTERSECTION","ST_INTERSECTS","ST_ISCLOSED","ST_ISEMPTY","ST_ISSIMPLE","ST_ISVALID","ST_LATFROMGEOHASH","ST_LATITUDE","ST_LENGTH","ST_LINEFROMTEXT","ST_LINEFROMWKB","ST_LINEINTERPOLATEPOINT","ST_LINEINTERPOLATEPOINTS","ST_LONGFROMGEOHASH","ST_LONGITUDE","ST_MAKEENVELOPE","ST_MLINEFROMTEXT","ST_MLINEFROMWKB","ST_MPOINTFROMTEXT","ST_MPOINTFROMWKB","ST_MPOLYFROMTEXT","ST_MPOLYFROMWKB","ST_NUMGEOMETRIES","ST_NUMINTERIORRING","ST_NUMPOINTS","ST_OVERLAPS","ST_POINTATDISTANCE","ST_POINTFROMGEOHASH","ST_POINTFROMTEXT","ST_POINTFROMWKB","ST_POINTN","ST_POLYFROMTEXT","ST_POLYFROMWKB","ST_SIMPLIFY","ST_SRID","ST_STARTPOINT","ST_SWAPXY","ST_SYMDIFFERENCE","ST_TOUCHES","ST_TRANSFORM","ST_UNION","ST_VALIDATE","ST_WITHIN","ST_X","ST_Y","STATEMENT_DIGEST","STATEMENT_DIGEST_TEXT","STD","STDDEV","STDDEV_POP","STDDEV_SAMP","STR_TO_DATE","STRCMP","SUBDATE","SUBSTR","SUBSTRING","SUBSTRING_INDEX","SUBTIME","SUM","SYSDATE","SYSTEM_USER","TAN","TIME","TIME_FORMAT","TIME_TO_SEC","TIMEDIFF","TIMESTAMP","TIMESTAMPADD","TIMESTAMPDIFF","TO_BASE64","TO_DAYS","TO_SECONDS","TRIM","TRUNCATE","UCASE","UNCOMPRESS","UNCOMPRESSED_LENGTH","UNHEX","UNIX_TIMESTAMP","UPDATEXML","UPPER","UTC_DATE","UTC_TIME","UTC_TIMESTAMP","UUID","UUID_SHORT","UUID_TO_BIN","VALIDATE_PASSWORD_STRENGTH","VALUES","VAR_POP","VAR_SAMP","VARIANCE","VERSION","WAIT_FOR_EXECUTED_GTID_SET","WAIT_UNTIL_SQL_THREAD_AFTER_GTIDS","WEEK","WEEKDAY","WEEKOFYEAR","WEIGHT_STRING","YEAR","YEARWEEK"],Hu=u(["SELECT [ALL | DISTINCT | DISTINCTROW]"]),Bu=u(["WITH [RECURSIVE]","FROM","WHERE","GROUP BY","HAVING","WINDOW","PARTITION BY","ORDER BY","LIMIT","OFFSET","INSERT [LOW_PRIORITY | DELAYED | HIGH_PRIORITY] [IGNORE] [INTO]","REPLACE [LOW_PRIORITY | DELAYED] [INTO]","VALUES","ON DUPLICATE KEY UPDATE","SET"]),Yn=u(["CREATE [TEMPORARY] TABLE [IF NOT EXISTS]"]),ET=u(["CREATE [OR REPLACE] [SQL SECURITY DEFINER | SQL SECURITY INVOKER] VIEW [IF NOT EXISTS]","UPDATE [LOW_PRIORITY] [IGNORE]","DELETE [LOW_PRIORITY] [QUICK] [IGNORE] FROM","DROP [TEMPORARY] TABLE [IF EXISTS]","ALTER TABLE","ADD [COLUMN]","{CHANGE | MODIFY} [COLUMN]","DROP [COLUMN]","RENAME [TO | AS]","RENAME COLUMN","ALTER [COLUMN]","{SET | DROP} DEFAULT","TRUNCATE [TABLE]","ALTER DATABASE","ALTER EVENT","ALTER FUNCTION","ALTER INSTANCE","ALTER LOGFILE GROUP","ALTER PROCEDURE","ALTER RESOURCE GROUP","ALTER SERVER","ALTER TABLESPACE","ALTER USER","ALTER VIEW","ANALYZE TABLE","BINLOG","CACHE INDEX","CALL","CHANGE MASTER TO","CHANGE REPLICATION FILTER","CHANGE REPLICATION SOURCE TO","CHECK TABLE","CHECKSUM TABLE","CLONE","COMMIT","CREATE DATABASE","CREATE EVENT","CREATE FUNCTION","CREATE FUNCTION","CREATE INDEX","CREATE LOGFILE GROUP","CREATE PROCEDURE","CREATE RESOURCE GROUP","CREATE ROLE","CREATE SERVER","CREATE SPATIAL REFERENCE SYSTEM","CREATE TABLESPACE","CREATE TRIGGER","CREATE USER","DEALLOCATE PREPARE","DESCRIBE","DROP DATABASE","DROP EVENT","DROP FUNCTION","DROP FUNCTION","DROP INDEX","DROP LOGFILE GROUP","DROP PROCEDURE","DROP RESOURCE GROUP","DROP ROLE","DROP SERVER","DROP SPATIAL REFERENCE SYSTEM","DROP TABLESPACE","DROP TRIGGER","DROP USER","DROP VIEW","EXECUTE","EXPLAIN","FLUSH","GRANT","HANDLER","HELP","IMPORT TABLE","INSTALL COMPONENT","INSTALL PLUGIN","KILL","LOAD DATA","LOAD INDEX INTO CACHE","LOAD XML","LOCK INSTANCE FOR BACKUP","LOCK TABLES","MASTER_POS_WAIT","OPTIMIZE TABLE","PREPARE","PURGE BINARY LOGS","RELEASE SAVEPOINT","RENAME TABLE","RENAME USER","REPAIR TABLE","RESET","RESET MASTER","RESET PERSIST","RESET REPLICA","RESET SLAVE","RESTART","REVOKE","ROLLBACK","ROLLBACK TO SAVEPOINT","SAVEPOINT","SET CHARACTER SET","SET DEFAULT ROLE","SET NAMES","SET PASSWORD","SET RESOURCE GROUP","SET ROLE","SET TRANSACTION","SHOW","SHOW BINARY LOGS","SHOW BINLOG EVENTS","SHOW CHARACTER SET","SHOW COLLATION","SHOW COLUMNS","SHOW CREATE DATABASE","SHOW CREATE EVENT","SHOW CREATE FUNCTION","SHOW CREATE PROCEDURE","SHOW CREATE TABLE","SHOW CREATE TRIGGER","SHOW CREATE USER","SHOW CREATE VIEW","SHOW DATABASES","SHOW ENGINE","SHOW ENGINES","SHOW ERRORS","SHOW EVENTS","SHOW FUNCTION CODE","SHOW FUNCTION STATUS","SHOW GRANTS","SHOW INDEX","SHOW MASTER STATUS","SHOW OPEN TABLES","SHOW PLUGINS","SHOW PRIVILEGES","SHOW PROCEDURE CODE","SHOW PROCEDURE STATUS","SHOW PROCESSLIST","SHOW PROFILE","SHOW PROFILES","SHOW RELAYLOG EVENTS","SHOW REPLICA STATUS","SHOW REPLICAS","SHOW SLAVE","SHOW SLAVE HOSTS","SHOW STATUS","SHOW TABLE STATUS","SHOW TABLES","SHOW TRIGGERS","SHOW VARIABLES","SHOW WARNINGS","SHUTDOWN","SOURCE_POS_WAIT","START GROUP_REPLICATION","START REPLICA","START SLAVE","START TRANSACTION","STOP GROUP_REPLICATION","STOP REPLICA","STOP SLAVE","TABLE","UNINSTALL COMPONENT","UNINSTALL PLUGIN","UNLOCK INSTANCE","UNLOCK TABLES","USE","XA","ITERATE","LEAVE","LOOP","REPEAT","RETURN","WHILE"]),bu=u(["UNION [ALL | DISTINCT]"]),yu=u(["JOIN","{LEFT | RIGHT} [OUTER] JOIN","{INNER | CROSS} JOIN","NATURAL [INNER] JOIN","NATURAL {LEFT | RIGHT} [OUTER] JOIN","STRAIGHT_JOIN"]),vu=u(["ON {UPDATE | DELETE} [SET NULL]","CHARACTER SET","{ROWS | RANGE} BETWEEN","IDENTIFIED BY"]),Fu={name:"mysql",tokenizerOptions:{reservedSelect:Hu,reservedClauses:[...Bu,...Yn,...ET],reservedSetOperations:bu,reservedJoins:yu,reservedPhrases:vu,supportsXor:!0,reservedKeywords:Gu,reservedDataTypes:gu,reservedFunctionNames:mu,stringTypes:['""-qq-bs',{quote:"''-qq-bs",prefixes:["N"]},{quote:"''-raw",prefixes:["B","X"],requirePrefix:!0}],identTypes:["``"],identChars:{first:"$",rest:"$",allowFirstCharNumber:!0},variableTypes:[{regex:"@@?[A-Za-z0-9_.$]+"},{quote:'""-qq-bs',prefixes:["@"],requirePrefix:!0},{quote:"''-qq-bs",prefixes:["@"],requirePrefix:!0},{quote:"``",prefixes:["@"],requirePrefix:!0}],paramTypes:{positional:!0},lineCommentTypes:["--","#"],operators:["%",":=","&","|","^","~","<<",">>","<=>","->","->>","&&","||","!","*.*"],postProcess:vs},formatOptions:{onelineClauses:[...Yn,...ET],tabularOnelineClauses:ET}},Yu=["ADD","ALL","ALTER","ANALYZE","AND","ARRAY","AS","ASC","BETWEEN","BOTH","BY","CALL","CASCADE","CASE","CHANGE","CHECK","COLLATE","COLUMN","CONSTRAINT","CONTINUE","CONVERT","CREATE","CROSS","CURRENT_DATE","CURRENT_ROLE","CURRENT_TIME","CURRENT_TIMESTAMP","CURRENT_USER","CURSOR","DATABASE","DATABASES","DAY_HOUR","DAY_MICROSECOND","DAY_MINUTE","DAY_SECOND","DEFAULT","DELAYED","DELETE","DESC","DESCRIBE","DISTINCT","DISTINCTROW","DIV","DOUBLE","DROP","DUAL","ELSE","ELSEIF","ENCLOSED","ESCAPED","EXCEPT","EXISTS","EXIT","EXPLAIN","FALSE","FETCH","FOR","FORCE","FOREIGN","FROM","FULLTEXT","GENERATED","GRANT","GROUP","GROUPS","HAVING","HIGH_PRIORITY","HOUR_MICROSECOND","HOUR_MINUTE","HOUR_SECOND","IF","IGNORE","ILIKE","IN","INDEX","INFILE","INNER","INOUT","INSERT","INTERSECT","INTERVAL","INTO","IS","ITERATE","JOIN","KEY","KEYS","KILL","LEADING","LEAVE","LEFT","LIKE","LIMIT","LINEAR","LINES","LOAD","LOCALTIME","LOCALTIMESTAMP","LOCK","LONG","LOW_PRIORITY","MATCH","MAXVALUE","MINUTE_MICROSECOND","MINUTE_SECOND","MOD","NATURAL","NOT","NO_WRITE_TO_BINLOG","NULL","OF","ON","OPTIMIZE","OPTION","OPTIONALLY","OR","ORDER","OUT","OUTER","OUTFILE","OVER","PARTITION","PRIMARY","PROCEDURE","RANGE","READ","RECURSIVE","REFERENCES","REGEXP","RELEASE","RENAME","REPEAT","REPLACE","REQUIRE","RESTRICT","REVOKE","RIGHT","RLIKE","ROW","ROWS","SECOND_MICROSECOND","SELECT","SET","SHOW","SPATIAL","SQL","SQLEXCEPTION","SQLSTATE","SQLWARNING","SQL_BIG_RESULT","SQL_CALC_FOUND_ROWS","SQL_SMALL_RESULT","SSL","STARTING","STATS_EXTENDED","STORED","STRAIGHT_JOIN","TABLE","TABLESAMPLE","TERMINATED","THEN","TO","TRAILING","TRIGGER","TRUE","TiDB_CURRENT_TSO","UNION","UNIQUE","UNLOCK","UNSIGNED","UNTIL","UPDATE","USAGE","USE","USING","UTC_DATE","UTC_TIME","UTC_TIMESTAMP","VALUES","VIRTUAL","WHEN","WHERE","WHILE","WINDOW","WITH","WRITE","XOR","YEAR_MONTH","ZEROFILL"],Vu=["BIGINT","BINARY","BIT","BLOB","BOOL","BOOLEAN","CHAR","CHARACTER","DATE","DATETIME","DEC","DECIMAL","DOUBLE PRECISION","DOUBLE","ENUM","FIXED","INT","INT1","INT2","INT3","INT4","INT8","INTEGER","LONGBLOB","LONGTEXT","MEDIUMBLOB","MEDIUMINT","MIDDLEINT","NATIONAL CHAR","NATIONAL VARCHAR","NUMERIC","PRECISION","SMALLINT","TEXT","TIME","TIMESTAMP","TINYBLOB","TINYINT","TINYTEXT","VARBINARY","VARCHAR","VARCHARACTER","VARYING","YEAR"],xu=["ABS","ACOS","ADDDATE","ADDTIME","AES_DECRYPT","AES_ENCRYPT","ANY_VALUE","ASCII","ASIN","ATAN","ATAN2","AVG","BENCHMARK","BIN","BIN_TO_UUID","BIT_AND","BIT_COUNT","BIT_LENGTH","BIT_OR","BIT_XOR","BITAND","BITNEG","BITOR","BITXOR","CASE","CAST","CEIL","CEILING","CHAR_FUNC","CHAR_LENGTH","CHARACTER_LENGTH","CHARSET","COALESCE","COERCIBILITY","COLLATION","COMPRESS","CONCAT","CONCAT_WS","CONNECTION_ID","CONV","CONVERT","CONVERT_TZ","COS","COT","COUNT","CRC32","CUME_DIST","CURDATE","CURRENT_DATE","CURRENT_RESOURCE_GROUP","CURRENT_ROLE","CURRENT_TIME","CURRENT_TIMESTAMP","CURRENT_USER","CURTIME","DATABASE","DATE","DATE_ADD","DATE_FORMAT","DATE_SUB","DATEDIFF","DAY","DAYNAME","DAYOFMONTH","DAYOFWEEK","DAYOFYEAR","DECODE","DEFAULT_FUNC","DEGREES","DENSE_RANK","DES_DECRYPT","DES_ENCRYPT","DIV","ELT","ENCODE","ENCRYPT","EQ","EXP","EXPORT_SET","EXTRACT","FIELD","FIND_IN_SET","FIRST_VALUE","FLOOR","FORMAT","FORMAT_BYTES","FORMAT_NANO_TIME","FOUND_ROWS","FROM_BASE64","FROM_DAYS","FROM_UNIXTIME","GE","GET_FORMAT","GET_LOCK","GETPARAM","GREATEST","GROUP_CONCAT","GROUPING","GT","HEX","HOUR","IF","IFNULL","ILIKE","INET6_ATON","INET6_NTOA","INET_ATON","INET_NTOA","INSERT_FUNC","INSTR","INTDIV","INTERVAL","IS_FREE_LOCK","IS_IPV4","IS_IPV4_COMPAT","IS_IPV4_MAPPED","IS_IPV6","IS_USED_LOCK","IS_UUID","ISFALSE","ISNULL","ISTRUE","JSON_ARRAY","JSON_ARRAYAGG","JSON_ARRAY_APPEND","JSON_ARRAY_INSERT","JSON_CONTAINS","JSON_CONTAINS_PATH","JSON_DEPTH","JSON_EXTRACT","JSON_INSERT","JSON_KEYS","JSON_LENGTH","JSON_MEMBEROF","JSON_MERGE","JSON_MERGE_PATCH","JSON_MERGE_PRESERVE","JSON_OBJECT","JSON_OBJECTAGG","JSON_OVERLAPS","JSON_PRETTY","JSON_QUOTE","JSON_REMOVE","JSON_REPLACE","JSON_SEARCH","JSON_SET","JSON_STORAGE_FREE","JSON_STORAGE_SIZE","JSON_TYPE","JSON_UNQUOTE","JSON_VALID","LAG","LAST_DAY","LAST_INSERT_ID","LAST_VALUE","LASTVAL","LCASE","LE","LEAD","LEAST","LEFT","LEFTSHIFT","LENGTH","LIKE","LN","LOAD_FILE","LOCALTIME","LOCALTIMESTAMP","LOCATE","LOG","LOG10","LOG2","LOWER","LPAD","LT","LTRIM","MAKE_SET","MAKEDATE","MAKETIME","MASTER_POS_WAIT","MAX","MD5","MICROSECOND","MID","MIN","MINUS","MINUTE","MOD","MONTH","MONTHNAME","MUL","NAME_CONST","NE","NEXTVAL","NOT","NOW","NTH_VALUE","NTILE","NULLEQ","OCT","OCTET_LENGTH","OLD_PASSWORD","ORD","PASSWORD_FUNC","PERCENT_RANK","PERIOD_ADD","PERIOD_DIFF","PI","PLUS","POSITION","POW","POWER","QUARTER","QUOTE","RADIANS","RAND","RANDOM_BYTES","RANK","REGEXP","REGEXP_INSTR","REGEXP_LIKE","REGEXP_REPLACE","REGEXP_SUBSTR","RELEASE_ALL_LOCKS","RELEASE_LOCK","REPEAT","REPLACE","REVERSE","RIGHT","RIGHTSHIFT","ROUND","ROW_COUNT","ROW_NUMBER","RPAD","RTRIM","SCHEMA","SEC_TO_TIME","SECOND","SESSION_USER","SETVAL","SETVAR","SHA","SHA1","SHA2","SIGN","SIN","SLEEP","SM3","SPACE","SQRT","STD","STDDEV","STDDEV_POP","STDDEV_SAMP","STR_TO_DATE","STRCMP","SUBDATE","SUBSTR","SUBSTRING","SUBSTRING_INDEX","SUBTIME","SUM","SYSDATE","SYSTEM_USER","TAN","TIDB_BOUNDED_STALENESS","TIDB_CURRENT_TSO","TIDB_DECODE_BINARY_PLAN","TIDB_DECODE_KEY","TIDB_DECODE_PLAN","TIDB_DECODE_SQL_DIGESTS","TIDB_ENCODE_SQL_DIGEST","TIDB_IS_DDL_OWNER","TIDB_PARSE_TSO","TIDB_PARSE_TSO_LOGICAL","TIDB_ROW_CHECKSUM","TIDB_SHARD","TIDB_VERSION","TIME","TIME_FORMAT","TIME_TO_SEC","TIMEDIFF","TIMESTAMP","TIMESTAMPADD","TIMESTAMPDIFF","TO_BASE64","TO_DAYS","TO_SECONDS","TRANSLATE","TRIM","TRUNCATE","UCASE","UNARYMINUS","UNCOMPRESS","UNCOMPRESSED_LENGTH","UNHEX","UNIX_TIMESTAMP","UPPER","UTC_DATE","UTC_TIME","UTC_TIMESTAMP","UUID","UUID_SHORT","UUID_TO_BIN","VALIDATE_PASSWORD_STRENGTH","VAR_POP","VAR_SAMP","VARIANCE","VERSION","VITESS_HASH","WEEK","WEEKDAY","WEEKOFYEAR","WEIGHT_STRING","YEAR","YEARWEEK"],wu=u(["SELECT [ALL | DISTINCT | DISTINCTROW]"]),Wu=u(["WITH [RECURSIVE]","FROM","WHERE","GROUP BY","HAVING","WINDOW","PARTITION BY","ORDER BY","LIMIT","OFFSET","INSERT [LOW_PRIORITY | DELAYED | HIGH_PRIORITY] [IGNORE] [INTO]","REPLACE [LOW_PRIORITY | DELAYED] [INTO]","VALUES","ON DUPLICATE KEY UPDATE","SET"]),Vn=u(["CREATE [TEMPORARY] TABLE [IF NOT EXISTS]"]),sT=u(["CREATE [OR REPLACE] [SQL SECURITY DEFINER | SQL SECURITY INVOKER] VIEW [IF NOT EXISTS]","UPDATE [LOW_PRIORITY] [IGNORE]","DELETE [LOW_PRIORITY] [QUICK] [IGNORE] FROM","DROP [TEMPORARY] TABLE [IF EXISTS]","ALTER TABLE","ADD [COLUMN]","{CHANGE | MODIFY} [COLUMN]","DROP [COLUMN]","RENAME [TO | AS]","RENAME COLUMN","ALTER [COLUMN]","{SET | DROP} DEFAULT","TRUNCATE [TABLE]","ALTER DATABASE","ALTER INSTANCE","ALTER RESOURCE GROUP","ALTER SEQUENCE","ALTER USER","ALTER VIEW","ANALYZE TABLE","CHECK TABLE","CHECKSUM TABLE","COMMIT","CREATE DATABASE","CREATE INDEX","CREATE RESOURCE GROUP","CREATE ROLE","CREATE SEQUENCE","CREATE USER","DEALLOCATE PREPARE","DESCRIBE","DROP DATABASE","DROP INDEX","DROP RESOURCE GROUP","DROP ROLE","DROP TABLESPACE","DROP USER","DROP VIEW","EXPLAIN","FLUSH","GRANT","IMPORT TABLE","INSTALL COMPONENT","INSTALL PLUGIN","KILL","LOAD DATA","LOCK INSTANCE FOR BACKUP","LOCK TABLES","OPTIMIZE TABLE","PREPARE","RELEASE SAVEPOINT","RENAME TABLE","RENAME USER","REPAIR TABLE","RESET","REVOKE","ROLLBACK","ROLLBACK TO SAVEPOINT","SAVEPOINT","SET CHARACTER SET","SET DEFAULT ROLE","SET NAMES","SET PASSWORD","SET RESOURCE GROUP","SET ROLE","SET TRANSACTION","SHOW","SHOW BINARY LOGS","SHOW BINLOG EVENTS","SHOW CHARACTER SET","SHOW COLLATION","SHOW COLUMNS","SHOW CREATE DATABASE","SHOW CREATE TABLE","SHOW CREATE USER","SHOW CREATE VIEW","SHOW DATABASES","SHOW ENGINE","SHOW ENGINES","SHOW ERRORS","SHOW EVENTS","SHOW GRANTS","SHOW INDEX","SHOW MASTER STATUS","SHOW OPEN TABLES","SHOW PLUGINS","SHOW PRIVILEGES","SHOW PROCESSLIST","SHOW PROFILE","SHOW PROFILES","SHOW STATUS","SHOW TABLE STATUS","SHOW TABLES","SHOW TRIGGERS","SHOW VARIABLES","SHOW WARNINGS","TABLE","UNINSTALL COMPONENT","UNINSTALL PLUGIN","UNLOCK INSTANCE","UNLOCK TABLES","USE"]),Xu=u(["UNION [ALL | DISTINCT]"]),Ku=u(["JOIN","{LEFT | RIGHT} [OUTER] JOIN","{INNER | CROSS} JOIN","NATURAL [INNER] JOIN","NATURAL {LEFT | RIGHT} [OUTER] JOIN","STRAIGHT_JOIN"]),$u=u(["ON {UPDATE | DELETE} [SET NULL]","CHARACTER SET","{ROWS | RANGE} BETWEEN","IDENTIFIED BY"]),Ju={name:"tidb",tokenizerOptions:{reservedSelect:wu,reservedClauses:[...Wu,...Vn,...sT],reservedSetOperations:Xu,reservedJoins:Ku,reservedPhrases:$u,supportsXor:!0,reservedKeywords:Yu,reservedDataTypes:Vu,reservedFunctionNames:xu,stringTypes:['""-qq-bs',{quote:"''-qq-bs",prefixes:["N"]},{quote:"''-raw",prefixes:["B","X"],requirePrefix:!0}],identTypes:["``"],identChars:{first:"$",rest:"$",allowFirstCharNumber:!0},variableTypes:[{regex:"@@?[A-Za-z0-9_.$]+"},{quote:'""-qq-bs',prefixes:["@"],requirePrefix:!0},{quote:"''-qq-bs",prefixes:["@"],requirePrefix:!0},{quote:"``",prefixes:["@"],requirePrefix:!0}],paramTypes:{positional:!0},lineCommentTypes:["--","#"],operators:["%",":=","&","|","^","~","<<",">>","<=>","->","->>","&&","||","!","*.*"],postProcess:vs},formatOptions:{onelineClauses:[...Vn,...sT],tabularOnelineClauses:sT}},ku=["ABORT","ABS","ACOS","ADVISOR","ARRAY_AGG","ARRAY_AGG","ARRAY_APPEND","ARRAY_AVG","ARRAY_BINARY_SEARCH","ARRAY_CONCAT","ARRAY_CONTAINS","ARRAY_COUNT","ARRAY_DISTINCT","ARRAY_EXCEPT","ARRAY_FLATTEN","ARRAY_IFNULL","ARRAY_INSERT","ARRAY_INTERSECT","ARRAY_LENGTH","ARRAY_MAX","ARRAY_MIN","ARRAY_MOVE","ARRAY_POSITION","ARRAY_PREPEND","ARRAY_PUT","ARRAY_RANGE","ARRAY_REMOVE","ARRAY_REPEAT","ARRAY_REPLACE","ARRAY_REVERSE","ARRAY_SORT","ARRAY_STAR","ARRAY_SUM","ARRAY_SYMDIFF","ARRAY_SYMDIFF1","ARRAY_SYMDIFFN","ARRAY_UNION","ASIN","ATAN","ATAN2","AVG","BASE64","BASE64_DECODE","BASE64_ENCODE","BITAND ","BITCLEAR ","BITNOT ","BITOR ","BITSET ","BITSHIFT ","BITTEST ","BITXOR ","CEIL","CLOCK_LOCAL","CLOCK_MILLIS","CLOCK_STR","CLOCK_TZ","CLOCK_UTC","COALESCE","CONCAT","CONCAT2","CONTAINS","CONTAINS_TOKEN","CONTAINS_TOKEN_LIKE","CONTAINS_TOKEN_REGEXP","COS","COUNT","COUNT","COUNTN","CUME_DIST","CURL","DATE_ADD_MILLIS","DATE_ADD_STR","DATE_DIFF_MILLIS","DATE_DIFF_STR","DATE_FORMAT_STR","DATE_PART_MILLIS","DATE_PART_STR","DATE_RANGE_MILLIS","DATE_RANGE_STR","DATE_TRUNC_MILLIS","DATE_TRUNC_STR","DECODE","DECODE_JSON","DEGREES","DENSE_RANK","DURATION_TO_STR","ENCODED_SIZE","ENCODE_JSON","EXP","FIRST_VALUE","FLOOR","GREATEST","HAS_TOKEN","IFINF","IFMISSING","IFMISSINGORNULL","IFNAN","IFNANORINF","IFNULL","INITCAP","ISARRAY","ISATOM","ISBITSET","ISBOOLEAN","ISNUMBER","ISOBJECT","ISSTRING","LAG","LAST_VALUE","LEAD","LEAST","LENGTH","LN","LOG","LOWER","LTRIM","MAX","MEAN","MEDIAN","META","MILLIS","MILLIS_TO_LOCAL","MILLIS_TO_STR","MILLIS_TO_TZ","MILLIS_TO_UTC","MILLIS_TO_ZONE_NAME","MIN","MISSINGIF","NANIF","NEGINFIF","NOW_LOCAL","NOW_MILLIS","NOW_STR","NOW_TZ","NOW_UTC","NTH_VALUE","NTILE","NULLIF","NVL","NVL2","OBJECT_ADD","OBJECT_CONCAT","OBJECT_INNER_PAIRS","OBJECT_INNER_VALUES","OBJECT_LENGTH","OBJECT_NAMES","OBJECT_PAIRS","OBJECT_PUT","OBJECT_REMOVE","OBJECT_RENAME","OBJECT_REPLACE","OBJECT_UNWRAP","OBJECT_VALUES","PAIRS","PERCENT_RANK","PI","POLY_LENGTH","POSINFIF","POSITION","POWER","RADIANS","RANDOM","RANK","RATIO_TO_REPORT","REGEXP_CONTAINS","REGEXP_LIKE","REGEXP_MATCHES","REGEXP_POSITION","REGEXP_REPLACE","REGEXP_SPLIT","REGEX_CONTAINS","REGEX_LIKE","REGEX_MATCHES","REGEX_POSITION","REGEX_REPLACE","REGEX_SPLIT","REPEAT","REPLACE","REVERSE","ROUND","ROW_NUMBER","RTRIM","SEARCH","SEARCH_META","SEARCH_SCORE","SIGN","SIN","SPLIT","SQRT","STDDEV","STDDEV_POP","STDDEV_SAMP","STR_TO_DURATION","STR_TO_MILLIS","STR_TO_TZ","STR_TO_UTC","STR_TO_ZONE_NAME","SUBSTR","SUFFIXES","SUM","TAN","TITLE","TOARRAY","TOATOM","TOBOOLEAN","TOKENS","TOKENS","TONUMBER","TOOBJECT","TOSTRING","TRIM","TRUNC","UPPER","UUID","VARIANCE","VARIANCE_POP","VARIANCE_SAMP","VAR_POP","VAR_SAMP","WEEKDAY_MILLIS","WEEKDAY_STR","CAST"],qu=["ADVISE","ALL","ALTER","ANALYZE","AND","ANY","ARRAY","AS","ASC","AT","BEGIN","BETWEEN","BINARY","BOOLEAN","BREAK","BUCKET","BUILD","BY","CALL","CASE","CAST","CLUSTER","COLLATE","COLLECTION","COMMIT","COMMITTED","CONNECT","CONTINUE","CORRELATED","COVER","CREATE","CURRENT","DATABASE","DATASET","DATASTORE","DECLARE","DECREMENT","DELETE","DERIVED","DESC","DESCRIBE","DISTINCT","DO","DROP","EACH","ELEMENT","ELSE","END","EVERY","EXCEPT","EXCLUDE","EXECUTE","EXISTS","EXPLAIN","FALSE","FETCH","FILTER","FIRST","FLATTEN","FLUSH","FOLLOWING","FOR","FORCE","FROM","FTS","FUNCTION","GOLANG","GRANT","GROUP","GROUPS","GSI","HASH","HAVING","IF","IGNORE","ILIKE","IN","INCLUDE","INCREMENT","INDEX","INFER","INLINE","INNER","INSERT","INTERSECT","INTO","IS","ISOLATION","JAVASCRIPT","JOIN","KEY","KEYS","KEYSPACE","KNOWN","LANGUAGE","LAST","LEFT","LET","LETTING","LEVEL","LIKE","LIMIT","LSM","MAP","MAPPING","MATCHED","MATERIALIZED","MERGE","MINUS","MISSING","NAMESPACE","NEST","NL","NO","NOT","NTH_VALUE","NULL","NULLS","NUMBER","OBJECT","OFFSET","ON","OPTION","OPTIONS","OR","ORDER","OTHERS","OUTER","OVER","PARSE","PARTITION","PASSWORD","PATH","POOL","PRECEDING","PREPARE","PRIMARY","PRIVATE","PRIVILEGE","PROBE","PROCEDURE","PUBLIC","RANGE","RAW","REALM","REDUCE","RENAME","RESPECT","RETURN","RETURNING","REVOKE","RIGHT","ROLE","ROLLBACK","ROW","ROWS","SATISFIES","SAVEPOINT","SCHEMA","SCOPE","SELECT","SELF","SEMI","SET","SHOW","SOME","START","STATISTICS","STRING","SYSTEM","THEN","TIES","TO","TRAN","TRANSACTION","TRIGGER","TRUE","TRUNCATE","UNBOUNDED","UNDER","UNION","UNIQUE","UNKNOWN","UNNEST","UNSET","UPDATE","UPSERT","USE","USER","USING","VALIDATE","VALUE","VALUED","VALUES","VIA","VIEW","WHEN","WHERE","WHILE","WINDOW","WITH","WITHIN","WORK","XOR"],ju=[],Qu=u(["SELECT [ALL | DISTINCT]"]),Zu=u(["WITH","FROM","WHERE","GROUP BY","HAVING","WINDOW","PARTITION BY","ORDER BY","LIMIT","OFFSET","INSERT INTO","VALUES","SET","MERGE INTO","WHEN [NOT] MATCHED THEN","UPDATE SET","INSERT","NEST","UNNEST","RETURNING"]),xn=u(["UPDATE","DELETE FROM","SET SCHEMA","ADVISE","ALTER INDEX","BEGIN TRANSACTION","BUILD INDEX","COMMIT TRANSACTION","CREATE COLLECTION","CREATE FUNCTION","CREATE INDEX","CREATE PRIMARY INDEX","CREATE SCOPE","DROP COLLECTION","DROP FUNCTION","DROP INDEX","DROP PRIMARY INDEX","DROP SCOPE","EXECUTE","EXECUTE FUNCTION","EXPLAIN","GRANT","INFER","PREPARE","REVOKE","ROLLBACK TRANSACTION","SAVEPOINT","SET TRANSACTION","UPDATE STATISTICS","UPSERT","LET","SET CURRENT SCHEMA","SHOW","USE [PRIMARY] KEYS"]),zu=u(["UNION [ALL]","EXCEPT [ALL]","INTERSECT [ALL]"]),ep=u(["JOIN","{LEFT | RIGHT} [OUTER] JOIN","INNER JOIN"]),tp=u(["{ROWS | RANGE | GROUPS} BETWEEN"]),Ep={name:"n1ql",tokenizerOptions:{reservedSelect:Qu,reservedClauses:[...Zu,...xn],reservedSetOperations:zu,reservedJoins:ep,reservedPhrases:tp,supportsXor:!0,reservedKeywords:qu,reservedDataTypes:ju,reservedFunctionNames:ku,stringTypes:['""-bs',"''-bs"],identTypes:["``"],extraParens:["[]","{}"],paramTypes:{positional:!0,numbered:["$"],named:["$"]},lineCommentTypes:["#","--"],operators:["%","==",":","||"]},formatOptions:{onelineClauses:xn}},sp=["ADD","AGENT","AGGREGATE","ALL","ALTER","AND","ANY","ARROW","AS","ASC","AT","ATTRIBUTE","AUTHID","AVG","BEGIN","BETWEEN","BLOCK","BODY","BOTH","BOUND","BULK","BY","BYTE","CALL","CALLING","CASCADE","CASE","CHARSET","CHARSETFORM","CHARSETID","CHECK","CLOSE","CLUSTER","CLUSTERS","COLAUTH","COLLECT","COLUMNS","COMMENT","COMMIT","COMMITTED","COMPILED","COMPRESS","CONNECT","CONSTANT","CONSTRUCTOR","CONTEXT","CONVERT","COUNT","CRASH","CREATE","CURRENT","CURSOR","CUSTOMDATUM","DANGLING","DATA","DAY","DECLARE","DEFAULT","DEFINE","DELETE","DESC","DETERMINISTIC","DISTINCT","DROP","DURATION","ELEMENT","ELSE","ELSIF","EMPTY","END","ESCAPE","EXCEPT","EXCEPTION","EXCEPTIONS","EXCLUSIVE","EXECUTE","EXISTS","EXIT","EXTERNAL","FETCH","FINAL","FIXED","FOR","FORALL","FORCE","FORM","FROM","FUNCTION","GENERAL","GOTO","GRANT","GROUP","HASH","HAVING","HEAP","HIDDEN","HOUR","IDENTIFIED","IF","IMMEDIATE","IN","INCLUDING","INDEX","INDEXES","INDICATOR","INDICES","INFINITE","INSERT","INSTANTIABLE","INTERFACE","INTERSECT","INTERVAL","INTO","INVALIDATE","IS","ISOLATION","JAVA","LANGUAGE","LARGE","LEADING","LENGTH","LEVEL","LIBRARY","LIKE","LIKE2","LIKE4","LIKEC","LIMIT","LIMITED","LOCAL","LOCK","LOOP","MAP","MAX","MAXLEN","MEMBER","MERGE","MIN","MINUS","MINUTE","MOD","MODE","MODIFY","MONTH","MULTISET","NAME","NAN","NATIONAL","NATIVE","NEW","NOCOMPRESS","NOCOPY","NOT","NOWAIT","NULL","OBJECT","OCICOLL","OCIDATE","OCIDATETIME","OCIDURATION","OCIINTERVAL","OCILOBLOCATOR","OCINUMBER","OCIRAW","OCIREF","OCIREFCURSOR","OCIROWID","OCISTRING","OCITYPE","OF","ON","ONLY","OPAQUE","OPEN","OPERATOR","OPTION","OR","ORACLE","ORADATA","ORDER","OVERLAPS","ORGANIZATION","ORLANY","ORLVARY","OTHERS","OUT","OVERRIDING","PACKAGE","PARALLEL_ENABLE","PARAMETER","PARAMETERS","PARTITION","PASCAL","PIPE","PIPELINED","PRAGMA","PRIOR","PRIVATE","PROCEDURE","PUBLIC","RAISE","RANGE","READ","RECORD","REF","REFERENCE","REM","REMAINDER","RENAME","RESOURCE","RESULT","RETURN","RETURNING","REVERSE","REVOKE","ROLLBACK","ROW","SAMPLE","SAVE","SAVEPOINT","SB1","SB2","SB4","SECOND","SEGMENT","SELECT","SELF","SEPARATE","SEQUENCE","SERIALIZABLE","SET","SHARE","SHORT","SIZE","SIZE_T","SOME","SPARSE","SQL","SQLCODE","SQLDATA","SQLNAME","SQLSTATE","STANDARD","START","STATIC","STDDEV","STORED","STRING","STRUCT","STYLE","SUBMULTISET","SUBPARTITION","SUBSTITUTABLE","SUBTYPE","SUM","SYNONYM","TABAUTH","TABLE","TDO","THE","THEN","TIME","TIMEZONE_ABBR","TIMEZONE_HOUR","TIMEZONE_MINUTE","TIMEZONE_REGION","TO","TRAILING","TRANSAC","TRANSACTIONAL","TRUSTED","TYPE","UB1","UB2","UB4","UNDER","UNION","UNIQUE","UNSIGNED","UNTRUSTED","UPDATE","USE","USING","VALIST","VALUE","VALUES","VARIABLE","VARIANCE","VARRAY","VIEW","VIEWS","VOID","WHEN","WHERE","WHILE","WITH","WORK","WRAPPED","WRITE","YEAR","ZONE"],Tp=["ARRAY","BFILE_BASE","BINARY","BLOB_BASE","CHAR VARYING","CHAR_BASE","CHAR","CHARACTER VARYING","CHARACTER","CLOB_BASE","DATE_BASE","DATE","DECIMAL","DOUBLE","FLOAT","INT","INTERVAL DAY","INTERVAL YEAR","LONG","NATIONAL CHAR VARYING","NATIONAL CHAR","NATIONAL CHARACTER VARYING","NATIONAL CHARACTER","NCHAR VARYING","NCHAR","NCHAR","NUMBER_BASE","NUMBER","NUMBERIC","NVARCHAR","PRECISION","RAW","TIMESTAMP","UROWID","VARCHAR","VARCHAR2"],rp=["ABS","ACOS","ASIN","ATAN","ATAN2","BITAND","CEIL","COS","COSH","EXP","FLOOR","LN","LOG","MOD","NANVL","POWER","REMAINDER","ROUND","SIGN","SIN","SINH","SQRT","TAN","TANH","TRUNC","WIDTH_BUCKET","CHR","CONCAT","INITCAP","LOWER","LPAD","LTRIM","NLS_INITCAP","NLS_LOWER","NLSSORT","NLS_UPPER","REGEXP_REPLACE","REGEXP_SUBSTR","REPLACE","RPAD","RTRIM","SOUNDEX","SUBSTR","TRANSLATE","TREAT","TRIM","UPPER","NLS_CHARSET_DECL_LEN","NLS_CHARSET_ID","NLS_CHARSET_NAME","ASCII","INSTR","LENGTH","REGEXP_INSTR","ADD_MONTHS","CURRENT_DATE","CURRENT_TIMESTAMP","DBTIMEZONE","EXTRACT","FROM_TZ","LAST_DAY","LOCALTIMESTAMP","MONTHS_BETWEEN","NEW_TIME","NEXT_DAY","NUMTODSINTERVAL","NUMTOYMINTERVAL","ROUND","SESSIONTIMEZONE","SYS_EXTRACT_UTC","SYSDATE","SYSTIMESTAMP","TO_CHAR","TO_TIMESTAMP","TO_TIMESTAMP_TZ","TO_DSINTERVAL","TO_YMINTERVAL","TRUNC","TZ_OFFSET","GREATEST","LEAST","ASCIISTR","BIN_TO_NUM","CAST","CHARTOROWID","COMPOSE","CONVERT","DECOMPOSE","HEXTORAW","NUMTODSINTERVAL","NUMTOYMINTERVAL","RAWTOHEX","RAWTONHEX","ROWIDTOCHAR","ROWIDTONCHAR","SCN_TO_TIMESTAMP","TIMESTAMP_TO_SCN","TO_BINARY_DOUBLE","TO_BINARY_FLOAT","TO_CHAR","TO_CLOB","TO_DATE","TO_DSINTERVAL","TO_LOB","TO_MULTI_BYTE","TO_NCHAR","TO_NCLOB","TO_NUMBER","TO_DSINTERVAL","TO_SINGLE_BYTE","TO_TIMESTAMP","TO_TIMESTAMP_TZ","TO_YMINTERVAL","TO_YMINTERVAL","TRANSLATE","UNISTR","BFILENAME","EMPTY_BLOB,","EMPTY_CLOB","CARDINALITY","COLLECT","POWERMULTISET","POWERMULTISET_BY_CARDINALITY","SET","SYS_CONNECT_BY_PATH","CLUSTER_ID","CLUSTER_PROBABILITY","CLUSTER_SET","FEATURE_ID","FEATURE_SET","FEATURE_VALUE","PREDICTION","PREDICTION_COST","PREDICTION_DETAILS","PREDICTION_PROBABILITY","PREDICTION_SET","APPENDCHILDXML","DELETEXML","DEPTH","EXTRACT","EXISTSNODE","EXTRACTVALUE","INSERTCHILDXML","INSERTXMLBEFORE","PATH","SYS_DBURIGEN","SYS_XMLAGG","SYS_XMLGEN","UPDATEXML","XMLAGG","XMLCDATA","XMLCOLATTVAL","XMLCOMMENT","XMLCONCAT","XMLFOREST","XMLPARSE","XMLPI","XMLQUERY","XMLROOT","XMLSEQUENCE","XMLSERIALIZE","XMLTABLE","XMLTRANSFORM","DECODE","DUMP","ORA_HASH","VSIZE","COALESCE","LNNVL","NULLIF","NVL","NVL2","SYS_CONTEXT","SYS_GUID","SYS_TYPEID","UID","USER","USERENV","AVG","COLLECT","CORR","CORR_S","CORR_K","COUNT","COVAR_POP","COVAR_SAMP","CUME_DIST","DENSE_RANK","FIRST","GROUP_ID","GROUPING","GROUPING_ID","LAST","MAX","MEDIAN","MIN","PERCENTILE_CONT","PERCENTILE_DISC","PERCENT_RANK","RANK","REGR_SLOPE","REGR_INTERCEPT","REGR_COUNT","REGR_R2","REGR_AVGX","REGR_AVGY","REGR_SXX","REGR_SYY","REGR_SXY","STATS_BINOMIAL_TEST","STATS_CROSSTAB","STATS_F_TEST","STATS_KS_TEST","STATS_MODE","STATS_MW_TEST","STATS_ONE_WAY_ANOVA","STATS_T_TEST_ONE","STATS_T_TEST_PAIRED","STATS_T_TEST_INDEP","STATS_T_TEST_INDEPU","STATS_WSR_TEST","STDDEV","STDDEV_POP","STDDEV_SAMP","SUM","VAR_POP","VAR_SAMP","VARIANCE","FIRST_VALUE","LAG","LAST_VALUE","LEAD","NTILE","RATIO_TO_REPORT","ROW_NUMBER","DEREF","MAKE_REF","REF","REFTOHEX","VALUE","CV","ITERATION_NUMBER","PRESENTNNV","PRESENTV","PREVIOUS"],np=u(["SELECT [ALL | DISTINCT | UNIQUE]"]),Rp=u(["WITH","FROM","WHERE","GROUP BY","HAVING","PARTITION BY","ORDER [SIBLINGS] BY","OFFSET","FETCH {FIRST | NEXT}","FOR UPDATE [OF]","INSERT [INTO | ALL INTO]","VALUES","SET","MERGE [INTO]","WHEN [NOT] MATCHED [THEN]","UPDATE SET","RETURNING"]),wn=u(["CREATE [GLOBAL TEMPORARY | PRIVATE TEMPORARY | SHARDED | DUPLICATED | IMMUTABLE BLOCKCHAIN | BLOCKCHAIN | IMMUTABLE] TABLE"]),TT=u(["CREATE [OR REPLACE] [NO FORCE | FORCE] [EDITIONING | EDITIONABLE | EDITIONABLE EDITIONING | NONEDITIONABLE] VIEW","CREATE MATERIALIZED VIEW","UPDATE [ONLY]","DELETE FROM [ONLY]","DROP TABLE","ALTER TABLE","ADD","DROP {COLUMN | UNUSED COLUMNS | COLUMNS CONTINUE}","MODIFY","RENAME TO","RENAME COLUMN","TRUNCATE TABLE","SET SCHEMA","BEGIN","CONNECT BY","DECLARE","EXCEPT","EXCEPTION","LOOP","START WITH"]),op=u(["UNION [ALL]","EXCEPT","INTERSECT"]),Ap=u(["JOIN","{LEFT | RIGHT | FULL} [OUTER] JOIN","{INNER | CROSS} JOIN","NATURAL [INNER] JOIN","NATURAL {LEFT | RIGHT | FULL} [OUTER] JOIN","{CROSS | OUTER} APPLY"]),ip=u(["ON {UPDATE | DELETE} [SET NULL]","ON COMMIT","{ROWS | RANGE} BETWEEN"]),Sp={name:"plsql",tokenizerOptions:{reservedSelect:np,reservedClauses:[...Rp,...wn,...TT],reservedSetOperations:op,reservedJoins:Ap,reservedPhrases:ip,supportsXor:!0,reservedKeywords:sp,reservedDataTypes:Tp,reservedFunctionNames:rp,stringTypes:[{quote:"''-qq",prefixes:["N"]},{quote:"q''",prefixes:["N"]}],identTypes:['""-qq'],identChars:{rest:"$#"},variableTypes:[{regex:"&{1,2}[A-Za-z][A-Za-z0-9_$#]*"}],paramTypes:{numbered:[":"],named:[":"]},paramChars:{},operators:["**",":=","%","~=","^=",">>","<<","=>","@","||"],postProcess:Op},formatOptions:{alwaysDenseOperators:["@"],onelineClauses:[...wn,...TT],tabularOnelineClauses:TT}};function Op(e){let t=oE;return e.map(E=>Wt.SET(E)&&Wt.BY(t)?Ye(me({},E),{type:"RESERVED_KEYWORD"}):(lA(E.type)&&(t=E),E))}var Ip=["ABS","ACOS","ACOSD","ACOSH","ASIN","ASIND","ASINH","ATAN","ATAN2","ATAN2D","ATAND","ATANH","CBRT","CEIL","CEILING","COS","COSD","COSH","COT","COTD","DEGREES","DIV","EXP","FACTORIAL","FLOOR","GCD","LCM","LN","LOG","LOG10","MIN_SCALE","MOD","PI","POWER","RADIANS","RANDOM","ROUND","SCALE","SETSEED","SIGN","SIN","SIND","SINH","SQRT","TAN","TAND","TANH","TRIM_SCALE","TRUNC","WIDTH_BUCKET","ABS","ASCII","BIT_LENGTH","BTRIM","CHARACTER_LENGTH","CHAR_LENGTH","CHR","CONCAT","CONCAT_WS","FORMAT","INITCAP","LEFT","LENGTH","LOWER","LPAD","LTRIM","MD5","NORMALIZE","OCTET_LENGTH","OVERLAY","PARSE_IDENT","PG_CLIENT_ENCODING","POSITION","QUOTE_IDENT","QUOTE_LITERAL","QUOTE_NULLABLE","REGEXP_MATCH","REGEXP_MATCHES","REGEXP_REPLACE","REGEXP_SPLIT_TO_ARRAY","REGEXP_SPLIT_TO_TABLE","REPEAT","REPLACE","REVERSE","RIGHT","RPAD","RTRIM","SPLIT_PART","SPRINTF","STARTS_WITH","STRING_AGG","STRING_TO_ARRAY","STRING_TO_TABLE","STRPOS","SUBSTR","SUBSTRING","TO_ASCII","TO_HEX","TRANSLATE","TRIM","UNISTR","UPPER","BIT_COUNT","BIT_LENGTH","BTRIM","CONVERT","CONVERT_FROM","CONVERT_TO","DECODE","ENCODE","GET_BIT","GET_BYTE","LENGTH","LTRIM","MD5","OCTET_LENGTH","OVERLAY","POSITION","RTRIM","SET_BIT","SET_BYTE","SHA224","SHA256","SHA384","SHA512","STRING_AGG","SUBSTR","SUBSTRING","TRIM","BIT_COUNT","BIT_LENGTH","GET_BIT","LENGTH","OCTET_LENGTH","OVERLAY","POSITION","SET_BIT","SUBSTRING","REGEXP_MATCH","REGEXP_MATCHES","REGEXP_REPLACE","REGEXP_SPLIT_TO_ARRAY","REGEXP_SPLIT_TO_TABLE","TO_CHAR","TO_DATE","TO_NUMBER","TO_TIMESTAMP","CLOCK_TIMESTAMP","CURRENT_DATE","CURRENT_TIME","CURRENT_TIMESTAMP","DATE_BIN","DATE_PART","DATE_TRUNC","EXTRACT","ISFINITE","JUSTIFY_DAYS","JUSTIFY_HOURS","JUSTIFY_INTERVAL","LOCALTIME","LOCALTIMESTAMP","MAKE_DATE","MAKE_INTERVAL","MAKE_TIME","MAKE_TIMESTAMP","MAKE_TIMESTAMPTZ","NOW","PG_SLEEP","PG_SLEEP_FOR","PG_SLEEP_UNTIL","STATEMENT_TIMESTAMP","TIMEOFDAY","TO_TIMESTAMP","TRANSACTION_TIMESTAMP","ENUM_FIRST","ENUM_LAST","ENUM_RANGE","AREA","BOUND_BOX","BOX","CENTER","CIRCLE","DIAGONAL","DIAMETER","HEIGHT","ISCLOSED","ISOPEN","LENGTH","LINE","LSEG","NPOINTS","PATH","PCLOSE","POINT","POLYGON","POPEN","RADIUS","SLOPE","WIDTH","ABBREV","BROADCAST","FAMILY","HOST","HOSTMASK","INET_MERGE","INET_SAME_FAMILY","MACADDR8_SET7BIT","MASKLEN","NETMASK","NETWORK","SET_MASKLEN","TRUNC","ARRAY_TO_TSVECTOR","GET_CURRENT_TS_CONFIG","JSONB_TO_TSVECTOR","JSON_TO_TSVECTOR","LENGTH","NUMNODE","PHRASETO_TSQUERY","PLAINTO_TSQUERY","QUERYTREE","SETWEIGHT","STRIP","TO_TSQUERY","TO_TSVECTOR","TSQUERY_PHRASE","TSVECTOR_TO_ARRAY","TS_DEBUG","TS_DELETE","TS_FILTER","TS_HEADLINE","TS_LEXIZE","TS_PARSE","TS_RANK","TS_RANK_CD","TS_REWRITE","TS_STAT","TS_TOKEN_TYPE","WEBSEARCH_TO_TSQUERY","UUID","CURSOR_TO_XML","CURSOR_TO_XMLSCHEMA","DATABASE_TO_XML","DATABASE_TO_XMLSCHEMA","DATABASE_TO_XML_AND_XMLSCHEMA","NEXTVAL","QUERY_TO_XML","QUERY_TO_XMLSCHEMA","QUERY_TO_XML_AND_XMLSCHEMA","SCHEMA_TO_XML","SCHEMA_TO_XMLSCHEMA","SCHEMA_TO_XML_AND_XMLSCHEMA","STRING","TABLE_TO_XML","TABLE_TO_XMLSCHEMA","TABLE_TO_XML_AND_XMLSCHEMA","XMLAGG","XMLCOMMENT","XMLCONCAT","XMLELEMENT","XMLEXISTS","XMLFOREST","XMLPARSE","XMLPI","XMLROOT","XMLSERIALIZE","XMLTABLE","XML_IS_WELL_FORMED","XML_IS_WELL_FORMED_CONTENT","XML_IS_WELL_FORMED_DOCUMENT","XPATH","XPATH_EXISTS","ARRAY_TO_JSON","JSONB_AGG","JSONB_ARRAY_ELEMENTS","JSONB_ARRAY_ELEMENTS_TEXT","JSONB_ARRAY_LENGTH","JSONB_BUILD_ARRAY","JSONB_BUILD_OBJECT","JSONB_EACH","JSONB_EACH_TEXT","JSONB_EXTRACT_PATH","JSONB_EXTRACT_PATH_TEXT","JSONB_INSERT","JSONB_OBJECT","JSONB_OBJECT_AGG","JSONB_OBJECT_KEYS","JSONB_PATH_EXISTS","JSONB_PATH_EXISTS_TZ","JSONB_PATH_MATCH","JSONB_PATH_MATCH_TZ","JSONB_PATH_QUERY","JSONB_PATH_QUERY_ARRAY","JSONB_PATH_QUERY_ARRAY_TZ","JSONB_PATH_QUERY_FIRST","JSONB_PATH_QUERY_FIRST_TZ","JSONB_PATH_QUERY_TZ","JSONB_POPULATE_RECORD","JSONB_POPULATE_RECORDSET","JSONB_PRETTY","JSONB_SET","JSONB_SET_LAX","JSONB_STRIP_NULLS","JSONB_TO_RECORD","JSONB_TO_RECORDSET","JSONB_TYPEOF","JSON_AGG","JSON_ARRAY_ELEMENTS","JSON_ARRAY_ELEMENTS_TEXT","JSON_ARRAY_LENGTH","JSON_BUILD_ARRAY","JSON_BUILD_OBJECT","JSON_EACH","JSON_EACH_TEXT","JSON_EXTRACT_PATH","JSON_EXTRACT_PATH_TEXT","JSON_OBJECT","JSON_OBJECT_AGG","JSON_OBJECT_KEYS","JSON_POPULATE_RECORD","JSON_POPULATE_RECORDSET","JSON_STRIP_NULLS","JSON_TO_RECORD","JSON_TO_RECORDSET","JSON_TYPEOF","ROW_TO_JSON","TO_JSON","TO_JSONB","TO_TIMESTAMP","CURRVAL","LASTVAL","NEXTVAL","SETVAL","COALESCE","GREATEST","LEAST","NULLIF","ARRAY_AGG","ARRAY_APPEND","ARRAY_CAT","ARRAY_DIMS","ARRAY_FILL","ARRAY_LENGTH","ARRAY_LOWER","ARRAY_NDIMS","ARRAY_POSITION","ARRAY_POSITIONS","ARRAY_PREPEND","ARRAY_REMOVE","ARRAY_REPLACE","ARRAY_TO_STRING","ARRAY_UPPER","CARDINALITY","STRING_TO_ARRAY","TRIM_ARRAY","UNNEST","ISEMPTY","LOWER","LOWER_INC","LOWER_INF","MULTIRANGE","RANGE_MERGE","UPPER","UPPER_INC","UPPER_INF","ARRAY_AGG","AVG","BIT_AND","BIT_OR","BIT_XOR","BOOL_AND","BOOL_OR","COALESCE","CORR","COUNT","COVAR_POP","COVAR_SAMP","CUME_DIST","DENSE_RANK","EVERY","GROUPING","JSONB_AGG","JSONB_OBJECT_AGG","JSON_AGG","JSON_OBJECT_AGG","MAX","MIN","MODE","PERCENTILE_CONT","PERCENTILE_DISC","PERCENT_RANK","RANGE_AGG","RANGE_INTERSECT_AGG","RANK","REGR_AVGX","REGR_AVGY","REGR_COUNT","REGR_INTERCEPT","REGR_R2","REGR_SLOPE","REGR_SXX","REGR_SXY","REGR_SYY","STDDEV","STDDEV_POP","STDDEV_SAMP","STRING_AGG","SUM","TO_JSON","TO_JSONB","VARIANCE","VAR_POP","VAR_SAMP","XMLAGG","CUME_DIST","DENSE_RANK","FIRST_VALUE","LAG","LAST_VALUE","LEAD","NTH_VALUE","NTILE","PERCENT_RANK","RANK","ROW_NUMBER","GENERATE_SERIES","GENERATE_SUBSCRIPTS","ACLDEFAULT","ACLEXPLODE","COL_DESCRIPTION","CURRENT_CATALOG","CURRENT_DATABASE","CURRENT_QUERY","CURRENT_ROLE","CURRENT_SCHEMA","CURRENT_SCHEMAS","CURRENT_USER","FORMAT_TYPE","HAS_ANY_COLUMN_PRIVILEGE","HAS_COLUMN_PRIVILEGE","HAS_DATABASE_PRIVILEGE","HAS_FOREIGN_DATA_WRAPPER_PRIVILEGE","HAS_FUNCTION_PRIVILEGE","HAS_LANGUAGE_PRIVILEGE","HAS_SCHEMA_PRIVILEGE","HAS_SEQUENCE_PRIVILEGE","HAS_SERVER_PRIVILEGE","HAS_TABLESPACE_PRIVILEGE","HAS_TABLE_PRIVILEGE","HAS_TYPE_PRIVILEGE","INET_CLIENT_ADDR","INET_CLIENT_PORT","INET_SERVER_ADDR","INET_SERVER_PORT","MAKEACLITEM","OBJ_DESCRIPTION","PG_BACKEND_PID","PG_BLOCKING_PIDS","PG_COLLATION_IS_VISIBLE","PG_CONF_LOAD_TIME","PG_CONTROL_CHECKPOINT","PG_CONTROL_INIT","PG_CONTROL_SYSTEM","PG_CONVERSION_IS_VISIBLE","PG_CURRENT_LOGFILE","PG_CURRENT_SNAPSHOT","PG_CURRENT_XACT_ID","PG_CURRENT_XACT_ID_IF_ASSIGNED","PG_DESCRIBE_OBJECT","PG_FUNCTION_IS_VISIBLE","PG_GET_CATALOG_FOREIGN_KEYS","PG_GET_CONSTRAINTDEF","PG_GET_EXPR","PG_GET_FUNCTIONDEF","PG_GET_FUNCTION_ARGUMENTS","PG_GET_FUNCTION_IDENTITY_ARGUMENTS","PG_GET_FUNCTION_RESULT","PG_GET_INDEXDEF","PG_GET_KEYWORDS","PG_GET_OBJECT_ADDRESS","PG_GET_OWNED_SEQUENCE","PG_GET_RULEDEF","PG_GET_SERIAL_SEQUENCE","PG_GET_STATISTICSOBJDEF","PG_GET_TRIGGERDEF","PG_GET_USERBYID","PG_GET_VIEWDEF","PG_HAS_ROLE","PG_IDENTIFY_OBJECT","PG_IDENTIFY_OBJECT_AS_ADDRESS","PG_INDEXAM_HAS_PROPERTY","PG_INDEX_COLUMN_HAS_PROPERTY","PG_INDEX_HAS_PROPERTY","PG_IS_OTHER_TEMP_SCHEMA","PG_JIT_AVAILABLE","PG_LAST_COMMITTED_XACT","PG_LISTENING_CHANNELS","PG_MY_TEMP_SCHEMA","PG_NOTIFICATION_QUEUE_USAGE","PG_OPCLASS_IS_VISIBLE","PG_OPERATOR_IS_VISIBLE","PG_OPFAMILY_IS_VISIBLE","PG_OPTIONS_TO_TABLE","PG_POSTMASTER_START_TIME","PG_SAFE_SNAPSHOT_BLOCKING_PIDS","PG_SNAPSHOT_XIP","PG_SNAPSHOT_XMAX","PG_SNAPSHOT_XMIN","PG_STATISTICS_OBJ_IS_VISIBLE","PG_TABLESPACE_DATABASES","PG_TABLESPACE_LOCATION","PG_TABLE_IS_VISIBLE","PG_TRIGGER_DEPTH","PG_TS_CONFIG_IS_VISIBLE","PG_TS_DICT_IS_VISIBLE","PG_TS_PARSER_IS_VISIBLE","PG_TS_TEMPLATE_IS_VISIBLE","PG_TYPEOF","PG_TYPE_IS_VISIBLE","PG_VISIBLE_IN_SNAPSHOT","PG_XACT_COMMIT_TIMESTAMP","PG_XACT_COMMIT_TIMESTAMP_ORIGIN","PG_XACT_STATUS","PQSERVERVERSION","ROW_SECURITY_ACTIVE","SESSION_USER","SHOBJ_DESCRIPTION","TO_REGCLASS","TO_REGCOLLATION","TO_REGNAMESPACE","TO_REGOPER","TO_REGOPERATOR","TO_REGPROC","TO_REGPROCEDURE","TO_REGROLE","TO_REGTYPE","TXID_CURRENT","TXID_CURRENT_IF_ASSIGNED","TXID_CURRENT_SNAPSHOT","TXID_SNAPSHOT_XIP","TXID_SNAPSHOT_XMAX","TXID_SNAPSHOT_XMIN","TXID_STATUS","TXID_VISIBLE_IN_SNAPSHOT","USER","VERSION","BRIN_DESUMMARIZE_RANGE","BRIN_SUMMARIZE_NEW_VALUES","BRIN_SUMMARIZE_RANGE","CONVERT_FROM","CURRENT_SETTING","GIN_CLEAN_PENDING_LIST","PG_ADVISORY_LOCK","PG_ADVISORY_LOCK_SHARED","PG_ADVISORY_UNLOCK","PG_ADVISORY_UNLOCK_ALL","PG_ADVISORY_UNLOCK_SHARED","PG_ADVISORY_XACT_LOCK","PG_ADVISORY_XACT_LOCK_SHARED","PG_BACKUP_START_TIME","PG_CANCEL_BACKEND","PG_COLLATION_ACTUAL_VERSION","PG_COLUMN_COMPRESSION","PG_COLUMN_SIZE","PG_COPY_LOGICAL_REPLICATION_SLOT","PG_COPY_PHYSICAL_REPLICATION_SLOT","PG_CREATE_LOGICAL_REPLICATION_SLOT","PG_CREATE_PHYSICAL_REPLICATION_SLOT","PG_CREATE_RESTORE_POINT","PG_CURRENT_WAL_FLUSH_LSN","PG_CURRENT_WAL_INSERT_LSN","PG_CURRENT_WAL_LSN","PG_DATABASE_SIZE","PG_DROP_REPLICATION_SLOT","PG_EXPORT_SNAPSHOT","PG_FILENODE_RELATION","PG_GET_WAL_REPLAY_PAUSE_STATE","PG_IMPORT_SYSTEM_COLLATIONS","PG_INDEXES_SIZE","PG_IS_IN_BACKUP","PG_IS_IN_RECOVERY","PG_IS_WAL_REPLAY_PAUSED","PG_LAST_WAL_RECEIVE_LSN","PG_LAST_WAL_REPLAY_LSN","PG_LAST_XACT_REPLAY_TIMESTAMP","PG_LOGICAL_EMIT_MESSAGE","PG_LOGICAL_SLOT_GET_BINARY_CHANGES","PG_LOGICAL_SLOT_GET_CHANGES","PG_LOGICAL_SLOT_PEEK_BINARY_CHANGES","PG_LOGICAL_SLOT_PEEK_CHANGES","PG_LOG_BACKEND_MEMORY_CONTEXTS","PG_LS_ARCHIVE_STATUSDIR","PG_LS_DIR","PG_LS_LOGDIR","PG_LS_TMPDIR","PG_LS_WALDIR","PG_PARTITION_ANCESTORS","PG_PARTITION_ROOT","PG_PARTITION_TREE","PG_PROMOTE","PG_READ_BINARY_FILE","PG_READ_FILE","PG_RELATION_FILENODE","PG_RELATION_FILEPATH","PG_RELATION_SIZE","PG_RELOAD_CONF","PG_REPLICATION_ORIGIN_ADVANCE","PG_REPLICATION_ORIGIN_CREATE","PG_REPLICATION_ORIGIN_DROP","PG_REPLICATION_ORIGIN_OID","PG_REPLICATION_ORIGIN_PROGRESS","PG_REPLICATION_ORIGIN_SESSION_IS_SETUP","PG_REPLICATION_ORIGIN_SESSION_PROGRESS","PG_REPLICATION_ORIGIN_SESSION_RESET","PG_REPLICATION_ORIGIN_SESSION_SETUP","PG_REPLICATION_ORIGIN_XACT_RESET","PG_REPLICATION_ORIGIN_XACT_SETUP","PG_REPLICATION_SLOT_ADVANCE","PG_ROTATE_LOGFILE","PG_SIZE_BYTES","PG_SIZE_PRETTY","PG_START_BACKUP","PG_STAT_FILE","PG_STOP_BACKUP","PG_SWITCH_WAL","PG_TABLESPACE_SIZE","PG_TABLE_SIZE","PG_TERMINATE_BACKEND","PG_TOTAL_RELATION_SIZE","PG_TRY_ADVISORY_LOCK","PG_TRY_ADVISORY_LOCK_SHARED","PG_TRY_ADVISORY_XACT_LOCK","PG_TRY_ADVISORY_XACT_LOCK_SHARED","PG_WALFILE_NAME","PG_WALFILE_NAME_OFFSET","PG_WAL_LSN_DIFF","PG_WAL_REPLAY_PAUSE","PG_WAL_REPLAY_RESUME","SET_CONFIG","SUPPRESS_REDUNDANT_UPDATES_TRIGGER","TSVECTOR_UPDATE_TRIGGER","TSVECTOR_UPDATE_TRIGGER_COLUMN","PG_EVENT_TRIGGER_DDL_COMMANDS","PG_EVENT_TRIGGER_DROPPED_OBJECTS","PG_EVENT_TRIGGER_TABLE_REWRITE_OID","PG_EVENT_TRIGGER_TABLE_REWRITE_REASON","PG_GET_OBJECT_ADDRESS","PG_MCV_LIST_ITEMS","CAST"],ap=["ALL","ANALYSE","ANALYZE","AND","ANY","AS","ASC","ASYMMETRIC","AUTHORIZATION","BETWEEN","BINARY","BOTH","CASE","CAST","CHECK","COLLATE","COLLATION","COLUMN","CONCURRENTLY","CONSTRAINT","CREATE","CROSS","CURRENT_CATALOG","CURRENT_DATE","CURRENT_ROLE","CURRENT_SCHEMA","CURRENT_TIME","CURRENT_TIMESTAMP","CURRENT_USER","DAY","DEFAULT","DEFERRABLE","DESC","DISTINCT","DO","ELSE","END","EXCEPT","EXISTS","FALSE","FETCH","FILTER","FOR","FOREIGN","FREEZE","FROM","FULL","GRANT","GROUP","HAVING","HOUR","ILIKE","IN","INITIALLY","INNER","INOUT","INTERSECT","INTO","IS","ISNULL","JOIN","LATERAL","LEADING","LEFT","LIKE","LIMIT","LOCALTIME","LOCALTIMESTAMP","MINUTE","MONTH","NATURAL","NOT","NOTNULL","NULL","NULLIF","OFFSET","ON","ONLY","OR","ORDER","OUT","OUTER","OVER","OVERLAPS","PLACING","PRIMARY","REFERENCES","RETURNING","RIGHT","ROW","SECOND","SELECT","SESSION_USER","SIMILAR","SOME","SYMMETRIC","TABLE","TABLESAMPLE","THEN","TO","TRAILING","TRUE","UNION","UNIQUE","USER","USING","VALUES","VARIADIC","VERBOSE","WHEN","WHERE","WINDOW","WITH","WITHIN","WITHOUT","YEAR"],Np=["ARRAY","BIGINT","BIT","BIT VARYING","BOOL","BOOLEAN","CHAR","CHARACTER","CHARACTER VARYING","DECIMAL","DEC","DOUBLE","ENUM","FLOAT","INT","INTEGER","INTERVAL","NCHAR","NUMERIC","PRECISION","REAL","SMALLINT","TEXT","TIME","TIMESTAMP","TIMESTAMPTZ","VARCHAR","XML","ZONE"],lp=u(["SELECT [ALL | DISTINCT]"]),_p=u(["WITH [RECURSIVE]","FROM","WHERE","GROUP BY [ALL | DISTINCT]","HAVING","WINDOW","PARTITION BY","ORDER BY","LIMIT","OFFSET","FETCH {FIRST | NEXT}","FOR {UPDATE | NO KEY UPDATE | SHARE | KEY SHARE} [OF]","INSERT INTO","VALUES","DEFAULT VALUES","SET","RETURNING"]),Wn=u(["CREATE [GLOBAL | LOCAL] [TEMPORARY | TEMP | UNLOGGED] TABLE [IF NOT EXISTS]"]),rT=u(["CREATE [OR REPLACE] [TEMP | TEMPORARY] [RECURSIVE] VIEW","CREATE [MATERIALIZED] VIEW [IF NOT EXISTS]","UPDATE [ONLY]","WHERE CURRENT OF","ON CONFLICT","DELETE FROM [ONLY]","DROP TABLE [IF EXISTS]","ALTER TABLE [IF EXISTS] [ONLY]","ALTER TABLE ALL IN TABLESPACE","RENAME [COLUMN]","RENAME TO","ADD [COLUMN] [IF NOT EXISTS]","DROP [COLUMN] [IF EXISTS]","ALTER [COLUMN]","SET DATA TYPE","{SET | DROP} DEFAULT","{SET | DROP} NOT NULL","TRUNCATE [TABLE] [ONLY]","SET SCHEMA","AFTER","ABORT","ALTER AGGREGATE","ALTER COLLATION","ALTER CONVERSION","ALTER DATABASE","ALTER DEFAULT PRIVILEGES","ALTER DOMAIN","ALTER EVENT TRIGGER","ALTER EXTENSION","ALTER FOREIGN DATA WRAPPER","ALTER FOREIGN TABLE","ALTER FUNCTION","ALTER GROUP","ALTER INDEX","ALTER LANGUAGE","ALTER LARGE OBJECT","ALTER MATERIALIZED VIEW","ALTER OPERATOR","ALTER OPERATOR CLASS","ALTER OPERATOR FAMILY","ALTER POLICY","ALTER PROCEDURE","ALTER PUBLICATION","ALTER ROLE","ALTER ROUTINE","ALTER RULE","ALTER SCHEMA","ALTER SEQUENCE","ALTER SERVER","ALTER STATISTICS","ALTER SUBSCRIPTION","ALTER SYSTEM","ALTER TABLESPACE","ALTER TEXT SEARCH CONFIGURATION","ALTER TEXT SEARCH DICTIONARY","ALTER TEXT SEARCH PARSER","ALTER TEXT SEARCH TEMPLATE","ALTER TRIGGER","ALTER TYPE","ALTER USER","ALTER USER MAPPING","ALTER VIEW","ANALYZE","BEGIN","CALL","CHECKPOINT","CLOSE","CLUSTER","COMMIT","COMMIT PREPARED","COPY","CREATE ACCESS METHOD","CREATE AGGREGATE","CREATE CAST","CREATE COLLATION","CREATE CONVERSION","CREATE DATABASE","CREATE DOMAIN","CREATE EVENT TRIGGER","CREATE EXTENSION","CREATE FOREIGN DATA WRAPPER","CREATE FOREIGN TABLE","CREATE FUNCTION","CREATE GROUP","CREATE INDEX","CREATE LANGUAGE","CREATE OPERATOR","CREATE OPERATOR CLASS","CREATE OPERATOR FAMILY","CREATE POLICY","CREATE PROCEDURE","CREATE PUBLICATION","CREATE ROLE","CREATE RULE","CREATE SCHEMA","CREATE SEQUENCE","CREATE SERVER","CREATE STATISTICS","CREATE SUBSCRIPTION","CREATE TABLESPACE","CREATE TEXT SEARCH CONFIGURATION","CREATE TEXT SEARCH DICTIONARY","CREATE TEXT SEARCH PARSER","CREATE TEXT SEARCH TEMPLATE","CREATE TRANSFORM","CREATE TRIGGER","CREATE TYPE","CREATE USER","CREATE USER MAPPING","DEALLOCATE","DECLARE","DISCARD","DROP ACCESS METHOD","DROP AGGREGATE","DROP CAST","DROP COLLATION","DROP CONVERSION","DROP DATABASE","DROP DOMAIN","DROP EVENT TRIGGER","DROP EXTENSION","DROP FOREIGN DATA WRAPPER","DROP FOREIGN TABLE","DROP FUNCTION","DROP GROUP","DROP INDEX","DROP LANGUAGE","DROP MATERIALIZED VIEW","DROP OPERATOR","DROP OPERATOR CLASS","DROP OPERATOR FAMILY","DROP OWNED","DROP POLICY","DROP PROCEDURE","DROP PUBLICATION","DROP ROLE","DROP ROUTINE","DROP RULE","DROP SCHEMA","DROP SEQUENCE","DROP SERVER","DROP STATISTICS","DROP SUBSCRIPTION","DROP TABLESPACE","DROP TEXT SEARCH CONFIGURATION","DROP TEXT SEARCH DICTIONARY","DROP TEXT SEARCH PARSER","DROP TEXT SEARCH TEMPLATE","DROP TRANSFORM","DROP TRIGGER","DROP TYPE","DROP USER","DROP USER MAPPING","DROP VIEW","EXECUTE","EXPLAIN","FETCH","GRANT","IMPORT FOREIGN SCHEMA","LISTEN","LOAD","LOCK","MOVE","NOTIFY","PREPARE","PREPARE TRANSACTION","REASSIGN OWNED","REFRESH MATERIALIZED VIEW","REINDEX","RELEASE SAVEPOINT","RESET","REVOKE","ROLLBACK","ROLLBACK PREPARED","ROLLBACK TO SAVEPOINT","SAVEPOINT","SECURITY LABEL","SELECT INTO","SET CONSTRAINTS","SET ROLE","SET SESSION AUTHORIZATION","SET TRANSACTION","SHOW","START TRANSACTION","UNLISTEN","VACUUM"]),Cp=u(["UNION [ALL | DISTINCT]","EXCEPT [ALL | DISTINCT]","INTERSECT [ALL | DISTINCT]"]),Lp=u(["JOIN","{LEFT | RIGHT | FULL} [OUTER] JOIN","{INNER | CROSS} JOIN","NATURAL [INNER] JOIN","NATURAL {LEFT | RIGHT | FULL} [OUTER] JOIN"]),cp=u(["PRIMARY KEY","GENERATED {ALWAYS | BY DEFAULT} AS IDENTITY","ON {UPDATE | DELETE} [SET NULL | SET DEFAULT]","{ROWS | RANGE | GROUPS} BETWEEN","[TIMESTAMP | TIME] {WITH | WITHOUT} TIME ZONE","IS [NOT] DISTINCT FROM"]),up={name:"postgresql",tokenizerOptions:{reservedSelect:lp,reservedClauses:[..._p,...Wn,...rT],reservedSetOperations:Cp,reservedJoins:Lp,reservedPhrases:cp,reservedKeywords:ap,reservedDataTypes:Np,reservedFunctionNames:Ip,nestedBlockComments:!0,extraParens:["[]"],stringTypes:["$$",{quote:"''-qq",prefixes:["U&"]},{quote:"''-qq-bs",prefixes:["E"],requirePrefix:!0},{quote:"''-raw",prefixes:["B","X"],requirePrefix:!0}],identTypes:[{quote:'""-qq',prefixes:["U&"]}],identChars:{rest:"$"},paramTypes:{numbered:["$"]},operators:["%","^","|/","||/","@",":=","&","|","#","~","<<",">>","~>~","~<~","~>=~","~<=~","@-@","@@","##","<->","&&","&<","&>","<<|","&<|","|>>","|&>","<^","^>","?#","?-","?|","?-|","?||","@>","<@","~=","?","@?","?&","->","->>","#>","#>>","#-","=>",">>=","<<=","~~","~~*","!~~","!~~*","~","~*","!~","!~*","-|-","||","@@@","!!","^@","<%","%>","<<%","%>>","<<->","<->>","<<<->","<->>>","::",":","<#>","<=>","<+>","<~>","<%>"],operatorKeyword:!0},formatOptions:{alwaysDenseOperators:["::",":"],onelineClauses:[...Wn,...rT],tabularOnelineClauses:rT}},pp=["ANY_VALUE","APPROXIMATE PERCENTILE_DISC","AVG","COUNT","LISTAGG","MAX","MEDIAN","MIN","PERCENTILE_CONT","STDDEV_SAMP","STDDEV_POP","SUM","VAR_SAMP","VAR_POP","array","array_concat","array_flatten","get_array_length","split_to_array","subarray","BIT_AND","BIT_OR","BOOL_AND","BOOL_OR","COALESCE","DECODE","GREATEST","LEAST","NVL","NVL2","NULLIF","ADD_MONTHS","AT TIME ZONE","CONVERT_TIMEZONE","CURRENT_DATE","CURRENT_TIME","CURRENT_TIMESTAMP","DATE_CMP","DATE_CMP_TIMESTAMP","DATE_CMP_TIMESTAMPTZ","DATE_PART_YEAR","DATEADD","DATEDIFF","DATE_PART","DATE_TRUNC","EXTRACT","GETDATE","INTERVAL_CMP","LAST_DAY","MONTHS_BETWEEN","NEXT_DAY","SYSDATE","TIMEOFDAY","TIMESTAMP_CMP","TIMESTAMP_CMP_DATE","TIMESTAMP_CMP_TIMESTAMPTZ","TIMESTAMPTZ_CMP","TIMESTAMPTZ_CMP_DATE","TIMESTAMPTZ_CMP_TIMESTAMP","TIMEZONE","TO_TIMESTAMP","TRUNC","AddBBox","DropBBox","GeometryType","ST_AddPoint","ST_Angle","ST_Area","ST_AsBinary","ST_AsEWKB","ST_AsEWKT","ST_AsGeoJSON","ST_AsText","ST_Azimuth","ST_Boundary","ST_Collect","ST_Contains","ST_ContainsProperly","ST_ConvexHull","ST_CoveredBy","ST_Covers","ST_Crosses","ST_Dimension","ST_Disjoint","ST_Distance","ST_DistanceSphere","ST_DWithin","ST_EndPoint","ST_Envelope","ST_Equals","ST_ExteriorRing","ST_Force2D","ST_Force3D","ST_Force3DM","ST_Force3DZ","ST_Force4D","ST_GeometryN","ST_GeometryType","ST_GeomFromEWKB","ST_GeomFromEWKT","ST_GeomFromText","ST_GeomFromWKB","ST_InteriorRingN","ST_Intersects","ST_IsPolygonCCW","ST_IsPolygonCW","ST_IsClosed","ST_IsCollection","ST_IsEmpty","ST_IsSimple","ST_IsValid","ST_Length","ST_LengthSphere","ST_Length2D","ST_LineFromMultiPoint","ST_LineInterpolatePoint","ST_M","ST_MakeEnvelope","ST_MakeLine","ST_MakePoint","ST_MakePolygon","ST_MemSize","ST_MMax","ST_MMin","ST_Multi","ST_NDims","ST_NPoints","ST_NRings","ST_NumGeometries","ST_NumInteriorRings","ST_NumPoints","ST_Perimeter","ST_Perimeter2D","ST_Point","ST_PointN","ST_Points","ST_Polygon","ST_RemovePoint","ST_Reverse","ST_SetPoint","ST_SetSRID","ST_Simplify","ST_SRID","ST_StartPoint","ST_Touches","ST_Within","ST_X","ST_XMax","ST_XMin","ST_Y","ST_YMax","ST_YMin","ST_Z","ST_ZMax","ST_ZMin","SupportsBBox","CHECKSUM","FUNC_SHA1","FNV_HASH","MD5","SHA","SHA1","SHA2","HLL","HLL_CREATE_SKETCH","HLL_CARDINALITY","HLL_COMBINE","IS_VALID_JSON","IS_VALID_JSON_ARRAY","JSON_ARRAY_LENGTH","JSON_EXTRACT_ARRAY_ELEMENT_TEXT","JSON_EXTRACT_PATH_TEXT","JSON_PARSE","JSON_SERIALIZE","ABS","ACOS","ASIN","ATAN","ATAN2","CBRT","CEILING","CEIL","COS","COT","DEGREES","DEXP","DLOG1","DLOG10","EXP","FLOOR","LN","LOG","MOD","PI","POWER","RADIANS","RANDOM","ROUND","SIN","SIGN","SQRT","TAN","TO_HEX","TRUNC","EXPLAIN_MODEL","ASCII","BPCHARCMP","BTRIM","BTTEXT_PATTERN_CMP","CHAR_LENGTH","CHARACTER_LENGTH","CHARINDEX","CHR","COLLATE","CONCAT","CRC32","DIFFERENCE","INITCAP","LEFT","RIGHT","LEN","LENGTH","LOWER","LPAD","RPAD","LTRIM","OCTETINDEX","OCTET_LENGTH","POSITION","QUOTE_IDENT","QUOTE_LITERAL","REGEXP_COUNT","REGEXP_INSTR","REGEXP_REPLACE","REGEXP_SUBSTR","REPEAT","REPLACE","REPLICATE","REVERSE","RTRIM","SOUNDEX","SPLIT_PART","STRPOS","STRTOL","SUBSTRING","TEXTLEN","TRANSLATE","TRIM","UPPER","decimal_precision","decimal_scale","is_array","is_bigint","is_boolean","is_char","is_decimal","is_float","is_integer","is_object","is_scalar","is_smallint","is_varchar","json_typeof","AVG","COUNT","CUME_DIST","DENSE_RANK","FIRST_VALUE","LAST_VALUE","LAG","LEAD","LISTAGG","MAX","MEDIAN","MIN","NTH_VALUE","NTILE","PERCENT_RANK","PERCENTILE_CONT","PERCENTILE_DISC","RANK","RATIO_TO_REPORT","ROW_NUMBER","STDDEV_SAMP","STDDEV_POP","SUM","VAR_SAMP","VAR_POP","CAST","CONVERT","TO_CHAR","TO_DATE","TO_NUMBER","TEXT_TO_INT_ALT","TEXT_TO_NUMERIC_ALT","CHANGE_QUERY_PRIORITY","CHANGE_SESSION_PRIORITY","CHANGE_USER_PRIORITY","CURRENT_SETTING","PG_CANCEL_BACKEND","PG_TERMINATE_BACKEND","REBOOT_CLUSTER","SET_CONFIG","CURRENT_AWS_ACCOUNT","CURRENT_DATABASE","CURRENT_NAMESPACE","CURRENT_SCHEMA","CURRENT_SCHEMAS","CURRENT_USER","CURRENT_USER_ID","HAS_ASSUMEROLE_PRIVILEGE","HAS_DATABASE_PRIVILEGE","HAS_SCHEMA_PRIVILEGE","HAS_TABLE_PRIVILEGE","PG_BACKEND_PID","PG_GET_COLS","PG_GET_GRANTEE_BY_IAM_ROLE","PG_GET_IAM_ROLE_BY_USER","PG_GET_LATE_BINDING_VIEW_COLS","PG_LAST_COPY_COUNT","PG_LAST_COPY_ID","PG_LAST_UNLOAD_ID","PG_LAST_QUERY_ID","PG_LAST_UNLOAD_COUNT","SESSION_USER","SLICE_NUM","USER","VERSION"],fp=["AES128","AES256","ALL","ALLOWOVERWRITE","ANY","AS","ASC","AUTHORIZATION","BACKUP","BETWEEN","BINARY","BOTH","CHECK","COLUMN","CONSTRAINT","CREATE","CROSS","DEFAULT","DEFERRABLE","DEFLATE","DEFRAG","DESC","DISABLE","DISTINCT","DO","ENABLE","ENCODE","ENCRYPT","ENCRYPTION","EXPLICIT","FALSE","FOR","FOREIGN","FREEZE","FROM","FULL","GLOBALDICT256","GLOBALDICT64K","GROUP","IDENTITY","IGNORE","ILIKE","IN","INITIALLY","INNER","INTO","IS","ISNULL","LANGUAGE","LEADING","LIKE","LIMIT","LOCALTIME","LOCALTIMESTAMP","LUN","LUNS","MINUS","NATURAL","NEW","NOT","NOTNULL","NULL","NULLS","OFF","OFFLINE","OFFSET","OID","OLD","ON","ONLY","OPEN","ORDER","OUTER","OVERLAPS","PARALLEL","PARTITION","PERCENT","PERMISSIONS","PLACING","PRIMARY","RECOVER","REFERENCES","REJECTLOG","RESORT","RESPECT","RESTORE","SIMILAR","SNAPSHOT","SOME","SYSTEM","TABLE","TAG","TDES","THEN","TIMESTAMP","TO","TOP","TRAILING","TRUE","UNIQUE","USING","VERBOSE","WALLET","WITHOUT","ACCEPTANYDATE","ACCEPTINVCHARS","BLANKSASNULL","DATEFORMAT","EMPTYASNULL","ENCODING","ESCAPE","EXPLICIT_IDS","FILLRECORD","IGNOREBLANKLINES","IGNOREHEADER","REMOVEQUOTES","ROUNDEC","TIMEFORMAT","TRIMBLANKS","TRUNCATECOLUMNS","COMPROWS","COMPUPDATE","MAXERROR","NOLOAD","STATUPDATE","FORMAT","CSV","DELIMITER","FIXEDWIDTH","SHAPEFILE","AVRO","JSON","PARQUET","ORC","ACCESS_KEY_ID","CREDENTIALS","ENCRYPTED","IAM_ROLE","MASTER_SYMMETRIC_KEY","SECRET_ACCESS_KEY","SESSION_TOKEN","BZIP2","GZIP","LZOP","ZSTD","MANIFEST","READRATIO","REGION","SSH","RAW","AZ64","BYTEDICT","DELTA","DELTA32K","LZO","MOSTLY8","MOSTLY16","MOSTLY32","RUNLENGTH","TEXT255","TEXT32K","CATALOG_ROLE","SECRET_ARN","EXTERNAL","AUTO","EVEN","KEY","PREDICATE","COMPRESSION"],Dp=["ARRAY","BIGINT","BPCHAR","CHAR","CHARACTER VARYING","CHARACTER","DECIMAL","INT","INT2","INT4","INT8","INTEGER","NCHAR","NUMERIC","NVARCHAR","SMALLINT","TEXT","VARBYTE","VARCHAR"],Pp=u(["SELECT [ALL | DISTINCT]"]),dp=u(["WITH [RECURSIVE]","FROM","WHERE","GROUP BY","HAVING","PARTITION BY","ORDER BY","LIMIT","OFFSET","INSERT INTO","VALUES","SET"]),Xn=u(["CREATE [TEMPORARY | TEMP | LOCAL TEMPORARY | LOCAL TEMP] TABLE [IF NOT EXISTS]"]),nT=u(["CREATE [OR REPLACE | MATERIALIZED] VIEW","UPDATE","DELETE [FROM]","DROP TABLE [IF EXISTS]","ALTER TABLE","ALTER TABLE APPEND","ADD [COLUMN]","DROP [COLUMN]","RENAME TO","RENAME COLUMN","ALTER COLUMN","TYPE","ENCODE","TRUNCATE [TABLE]","ABORT","ALTER DATABASE","ALTER DATASHARE","ALTER DEFAULT PRIVILEGES","ALTER GROUP","ALTER MATERIALIZED VIEW","ALTER PROCEDURE","ALTER SCHEMA","ALTER USER","ANALYSE","ANALYZE","ANALYSE COMPRESSION","ANALYZE COMPRESSION","BEGIN","CALL","CANCEL","CLOSE","COMMIT","COPY","CREATE DATABASE","CREATE DATASHARE","CREATE EXTERNAL FUNCTION","CREATE EXTERNAL SCHEMA","CREATE EXTERNAL TABLE","CREATE FUNCTION","CREATE GROUP","CREATE LIBRARY","CREATE MODEL","CREATE PROCEDURE","CREATE SCHEMA","CREATE USER","DEALLOCATE","DECLARE","DESC DATASHARE","DROP DATABASE","DROP DATASHARE","DROP FUNCTION","DROP GROUP","DROP LIBRARY","DROP MODEL","DROP MATERIALIZED VIEW","DROP PROCEDURE","DROP SCHEMA","DROP USER","DROP VIEW","DROP","EXECUTE","EXPLAIN","FETCH","GRANT","LOCK","PREPARE","REFRESH MATERIALIZED VIEW","RESET","REVOKE","ROLLBACK","SELECT INTO","SET SESSION AUTHORIZATION","SET SESSION CHARACTERISTICS","SHOW","SHOW EXTERNAL TABLE","SHOW MODEL","SHOW DATASHARES","SHOW PROCEDURE","SHOW TABLE","SHOW VIEW","START TRANSACTION","UNLOAD","VACUUM"]),Mp=u(["UNION [ALL]","EXCEPT","INTERSECT","MINUS"]),Up=u(["JOIN","{LEFT | RIGHT | FULL} [OUTER] JOIN","{INNER | CROSS} JOIN","NATURAL [INNER] JOIN","NATURAL {LEFT | RIGHT | FULL} [OUTER] JOIN"]),hp=u(["NULL AS","DATA CATALOG","HIVE METASTORE","{ROWS | RANGE} BETWEEN"]),Gp={name:"redshift",tokenizerOptions:{reservedSelect:Pp,reservedClauses:[...dp,...Xn,...nT],reservedSetOperations:Mp,reservedJoins:Up,reservedPhrases:hp,reservedKeywords:fp,reservedDataTypes:Dp,reservedFunctionNames:pp,stringTypes:["''-qq"],identTypes:['""-qq'],identChars:{first:"#"},paramTypes:{numbered:["$"]},operators:["^","%","@","|/","||/","&","|","~","<<",">>","||","::"]},formatOptions:{alwaysDenseOperators:["::"],onelineClauses:[...Xn,...nT],tabularOnelineClauses:nT}},gp=["ADD","AFTER","ALL","ALTER","ANALYZE","AND","ANTI","ANY","ARCHIVE","AS","ASC","AT","AUTHORIZATION","BETWEEN","BOTH","BUCKET","BUCKETS","BY","CACHE","CASCADE","CAST","CHANGE","CHECK","CLEAR","CLUSTER","CLUSTERED","CODEGEN","COLLATE","COLLECTION","COLUMN","COLUMNS","COMMENT","COMMIT","COMPACT","COMPACTIONS","COMPUTE","CONCATENATE","CONSTRAINT","COST","CREATE","CROSS","CUBE","CURRENT","CURRENT_DATE","CURRENT_TIME","CURRENT_TIMESTAMP","CURRENT_USER","DATA","DATABASE","DATABASES","DAY","DBPROPERTIES","DEFINED","DELETE","DELIMITED","DESC","DESCRIBE","DFS","DIRECTORIES","DIRECTORY","DISTINCT","DISTRIBUTE","DIV","DROP","ESCAPE","ESCAPED","EXCEPT","EXCHANGE","EXISTS","EXPORT","EXTENDED","EXTERNAL","EXTRACT","FALSE","FETCH","FIELDS","FILTER","FILEFORMAT","FIRST","FIRST_VALUE","FOLLOWING","FOR","FOREIGN","FORMAT","FORMATTED","FULL","FUNCTION","FUNCTIONS","GLOBAL","GRANT","GROUP","GROUPING","HOUR","IF","IGNORE","IMPORT","IN","INDEX","INDEXES","INNER","INPATH","INPUTFORMAT","INTERSECT","INTO","IS","ITEMS","KEYS","LAST","LAST_VALUE","LATERAL","LAZY","LEADING","LEFT","LIKE","LINES","LIST","LOCAL","LOCATION","LOCK","LOCKS","LOGICAL","MACRO","MATCHED","MERGE","MINUTE","MONTH","MSCK","NAMESPACE","NAMESPACES","NATURAL","NO","NOT","NULL","NULLS","OF","ONLY","OPTION","OPTIONS","OR","ORDER","OUT","OUTER","OUTPUTFORMAT","OVER","OVERLAPS","OVERLAY","OVERWRITE","OWNER","PARTITION","PARTITIONED","PARTITIONS","PERCENT","PLACING","POSITION","PRECEDING","PRIMARY","PRINCIPALS","PROPERTIES","PURGE","QUERY","RANGE","RECORDREADER","RECORDWRITER","RECOVER","REDUCE","REFERENCES","RENAME","REPAIR","REPLACE","RESPECT","RESTRICT","REVOKE","RIGHT","RLIKE","ROLE","ROLES","ROLLBACK","ROLLUP","ROW","ROWS","SCHEMA","SECOND","SELECT","SEMI","SEPARATED","SERDE","SERDEPROPERTIES","SESSION_USER","SETS","SHOW","SKEWED","SOME","SORT","SORTED","START","STATISTICS","STORED","STRATIFY","SUBSTR","SUBSTRING","TABLE","TABLES","TBLPROPERTIES","TEMPORARY","TERMINATED","THEN","TO","TOUCH","TRAILING","TRANSACTION","TRANSACTIONS","TRIM","TRUE","TRUNCATE","UNARCHIVE","UNBOUNDED","UNCACHE","UNIQUE","UNKNOWN","UNLOCK","UNSET","USE","USER","USING","VIEW","WINDOW","YEAR","ANALYSE","ARRAY_ZIP","COALESCE","CONTAINS","CONVERT","DAYS","DAY_HOUR","DAY_MINUTE","DAY_SECOND","DECODE","DEFAULT","DISTINCTROW","ENCODE","EXPLODE","EXPLODE_OUTER","FIXED","GREATEST","GROUP_CONCAT","HOURS","HOUR_MINUTE","HOUR_SECOND","IFNULL","LEAST","LEVEL","MINUTE_SECOND","NULLIF","OFFSET","ON","OPTIMIZE","REGEXP","SEPARATOR","SIZE","TYPE","TYPES","UNSIGNED","VARIABLES","YEAR_MONTH"],mp=["ARRAY","BIGINT","BINARY","BOOLEAN","BYTE","CHAR","DATE","DEC","DECIMAL","DOUBLE","FLOAT","INT","INTEGER","INTERVAL","LONG","MAP","NUMERIC","REAL","SHORT","SMALLINT","STRING","STRUCT","TIMESTAMP_LTZ","TIMESTAMP_NTZ","TIMESTAMP","TINYINT","VARCHAR"],Hp=["APPROX_COUNT_DISTINCT","APPROX_PERCENTILE","AVG","BIT_AND","BIT_OR","BIT_XOR","BOOL_AND","BOOL_OR","COLLECT_LIST","COLLECT_SET","CORR","COUNT","COUNT","COUNT","COUNT_IF","COUNT_MIN_SKETCH","COVAR_POP","COVAR_SAMP","EVERY","FIRST","FIRST_VALUE","GROUPING","GROUPING_ID","KURTOSIS","LAST","LAST_VALUE","MAX","MAX_BY","MEAN","MIN","MIN_BY","PERCENTILE","PERCENTILE","PERCENTILE_APPROX","SKEWNESS","STD","STDDEV","STDDEV_POP","STDDEV_SAMP","SUM","VAR_POP","VAR_SAMP","VARIANCE","CUME_DIST","DENSE_RANK","LAG","LEAD","NTH_VALUE","NTILE","PERCENT_RANK","RANK","ROW_NUMBER","ARRAY","ARRAY_CONTAINS","ARRAY_DISTINCT","ARRAY_EXCEPT","ARRAY_INTERSECT","ARRAY_JOIN","ARRAY_MAX","ARRAY_MIN","ARRAY_POSITION","ARRAY_REMOVE","ARRAY_REPEAT","ARRAY_UNION","ARRAYS_OVERLAP","ARRAYS_ZIP","FLATTEN","SEQUENCE","SHUFFLE","SLICE","SORT_ARRAY","ELEMENT_AT","ELEMENT_AT","MAP_CONCAT","MAP_ENTRIES","MAP_FROM_ARRAYS","MAP_FROM_ENTRIES","MAP_KEYS","MAP_VALUES","STR_TO_MAP","ADD_MONTHS","CURRENT_DATE","CURRENT_DATE","CURRENT_TIMESTAMP","CURRENT_TIMESTAMP","CURRENT_TIMEZONE","DATE_ADD","DATE_FORMAT","DATE_FROM_UNIX_DATE","DATE_PART","DATE_SUB","DATE_TRUNC","DATEDIFF","DAY","DAYOFMONTH","DAYOFWEEK","DAYOFYEAR","EXTRACT","FROM_UNIXTIME","FROM_UTC_TIMESTAMP","HOUR","LAST_DAY","MAKE_DATE","MAKE_DT_INTERVAL","MAKE_INTERVAL","MAKE_TIMESTAMP","MAKE_YM_INTERVAL","MINUTE","MONTH","MONTHS_BETWEEN","NEXT_DAY","NOW","QUARTER","SECOND","SESSION_WINDOW","TIMESTAMP_MICROS","TIMESTAMP_MILLIS","TIMESTAMP_SECONDS","TO_DATE","TO_TIMESTAMP","TO_UNIX_TIMESTAMP","TO_UTC_TIMESTAMP","TRUNC","UNIX_DATE","UNIX_MICROS","UNIX_MILLIS","UNIX_SECONDS","UNIX_TIMESTAMP","WEEKDAY","WEEKOFYEAR","WINDOW","YEAR","FROM_JSON","GET_JSON_OBJECT","JSON_ARRAY_LENGTH","JSON_OBJECT_KEYS","JSON_TUPLE","SCHEMA_OF_JSON","TO_JSON","ABS","ACOS","ACOSH","AGGREGATE","ARRAY_SORT","ASCII","ASIN","ASINH","ASSERT_TRUE","ATAN","ATAN2","ATANH","BASE64","BIN","BIT_COUNT","BIT_GET","BIT_LENGTH","BROUND","BTRIM","CARDINALITY","CBRT","CEIL","CEILING","CHAR_LENGTH","CHARACTER_LENGTH","CHR","CONCAT","CONCAT_WS","CONV","COS","COSH","COT","CRC32","CURRENT_CATALOG","CURRENT_DATABASE","CURRENT_USER","DEGREES","ELT","EXP","EXPM1","FACTORIAL","FIND_IN_SET","FLOOR","FORALL","FORMAT_NUMBER","FORMAT_STRING","FROM_CSV","GETBIT","HASH","HEX","HYPOT","INITCAP","INLINE","INLINE_OUTER","INPUT_FILE_BLOCK_LENGTH","INPUT_FILE_BLOCK_START","INPUT_FILE_NAME","INSTR","ISNAN","ISNOTNULL","ISNULL","JAVA_METHOD","LCASE","LEFT","LENGTH","LEVENSHTEIN","LN","LOCATE","LOG","LOG10","LOG1P","LOG2","LOWER","LPAD","LTRIM","MAP_FILTER","MAP_ZIP_WITH","MD5","MOD","MONOTONICALLY_INCREASING_ID","NAMED_STRUCT","NANVL","NEGATIVE","NVL","NVL2","OCTET_LENGTH","OVERLAY","PARSE_URL","PI","PMOD","POSEXPLODE","POSEXPLODE_OUTER","POSITION","POSITIVE","POW","POWER","PRINTF","RADIANS","RAISE_ERROR","RAND","RANDN","RANDOM","REFLECT","REGEXP_EXTRACT","REGEXP_EXTRACT_ALL","REGEXP_LIKE","REGEXP_REPLACE","REPEAT","REPLACE","REVERSE","RIGHT","RINT","ROUND","RPAD","RTRIM","SCHEMA_OF_CSV","SENTENCES","SHA","SHA1","SHA2","SHIFTLEFT","SHIFTRIGHT","SHIFTRIGHTUNSIGNED","SIGN","SIGNUM","SIN","SINH","SOUNDEX","SPACE","SPARK_PARTITION_ID","SPLIT","SQRT","STACK","SUBSTR","SUBSTRING","SUBSTRING_INDEX","TAN","TANH","TO_CSV","TRANSFORM_KEYS","TRANSFORM_VALUES","TRANSLATE","TRIM","TRY_ADD","TRY_DIVIDE","TYPEOF","UCASE","UNBASE64","UNHEX","UPPER","UUID","VERSION","WIDTH_BUCKET","XPATH","XPATH_BOOLEAN","XPATH_DOUBLE","XPATH_FLOAT","XPATH_INT","XPATH_LONG","XPATH_NUMBER","XPATH_SHORT","XPATH_STRING","XXHASH64","ZIP_WITH","CAST","COALESCE","NULLIF"],Bp=u(["SELECT [ALL | DISTINCT]"]),bp=u(["WITH","FROM","WHERE","GROUP BY","HAVING","WINDOW","PARTITION BY","ORDER BY","SORT BY","CLUSTER BY","DISTRIBUTE BY","LIMIT","INSERT [INTO | OVERWRITE] [TABLE]","VALUES","INSERT OVERWRITE [LOCAL] DIRECTORY","LOAD DATA [LOCAL] INPATH","[OVERWRITE] INTO TABLE"]),Kn=u(["CREATE [EXTERNAL] TABLE [IF NOT EXISTS]"]),RT=u(["CREATE [OR REPLACE] [GLOBAL TEMPORARY | TEMPORARY] VIEW [IF NOT EXISTS]","DROP TABLE [IF EXISTS]","ALTER TABLE","ADD COLUMNS","DROP {COLUMN | COLUMNS}","RENAME TO","RENAME COLUMN","ALTER COLUMN","TRUNCATE TABLE","LATERAL VIEW","ALTER DATABASE","ALTER VIEW","CREATE DATABASE","CREATE FUNCTION","DROP DATABASE","DROP FUNCTION","DROP VIEW","REPAIR TABLE","USE DATABASE","TABLESAMPLE","PIVOT","TRANSFORM","EXPLAIN","ADD FILE","ADD JAR","ANALYZE TABLE","CACHE TABLE","CLEAR CACHE","DESCRIBE DATABASE","DESCRIBE FUNCTION","DESCRIBE QUERY","DESCRIBE TABLE","LIST FILE","LIST JAR","REFRESH","REFRESH TABLE","REFRESH FUNCTION","RESET","SHOW COLUMNS","SHOW CREATE TABLE","SHOW DATABASES","SHOW FUNCTIONS","SHOW PARTITIONS","SHOW TABLE EXTENDED","SHOW TABLES","SHOW TBLPROPERTIES","SHOW VIEWS","UNCACHE TABLE"]),yp=u(["UNION [ALL | DISTINCT]","EXCEPT [ALL | DISTINCT]","INTERSECT [ALL | DISTINCT]"]),vp=u(["JOIN","{LEFT | RIGHT | FULL} [OUTER] JOIN","{INNER | CROSS} JOIN","NATURAL [INNER] JOIN","NATURAL {LEFT | RIGHT | FULL} [OUTER] JOIN","[LEFT] {ANTI | SEMI} JOIN","NATURAL [LEFT] {ANTI | SEMI} JOIN"]),Fp=u(["ON DELETE","ON UPDATE","CURRENT ROW","{ROWS | RANGE} BETWEEN"]),Yp={name:"spark",tokenizerOptions:{reservedSelect:Bp,reservedClauses:[...bp,...Kn,...RT],reservedSetOperations:yp,reservedJoins:vp,reservedPhrases:Fp,supportsXor:!0,reservedKeywords:gp,reservedDataTypes:mp,reservedFunctionNames:Hp,extraParens:["[]"],stringTypes:["''-bs",'""-bs',{quote:"''-raw",prefixes:["R","X"],requirePrefix:!0},{quote:'""-raw',prefixes:["R","X"],requirePrefix:!0}],identTypes:["``"],variableTypes:[{quote:"{}",prefixes:["$"],requirePrefix:!0}],operators:["%","~","^","|","&","<=>","==","!","||","->"],postProcess:Vp},formatOptions:{onelineClauses:[...Kn,...RT],tabularOnelineClauses:RT}};function Vp(e){return e.map((t,E)=>{const s=e[E-1]||oE,T=e[E+1]||oE;return Wt.WINDOW(t)&&T.type==="OPEN_PAREN"?Ye(me({},t),{type:"RESERVED_FUNCTION_NAME"}):t.text==="ITEMS"&&t.type==="RESERVED_KEYWORD"&&!(s.text==="COLLECTION"&&T.text==="TERMINATED")?Ye(me({},t),{type:"IDENTIFIER",text:t.raw}):t})}var xp=["ABS","CHANGES","CHAR","COALESCE","FORMAT","GLOB","HEX","IFNULL","IIF","INSTR","LAST_INSERT_ROWID","LENGTH","LIKE","LIKELIHOOD","LIKELY","LOAD_EXTENSION","LOWER","LTRIM","NULLIF","PRINTF","QUOTE","RANDOM","RANDOMBLOB","REPLACE","ROUND","RTRIM","SIGN","SOUNDEX","SQLITE_COMPILEOPTION_GET","SQLITE_COMPILEOPTION_USED","SQLITE_OFFSET","SQLITE_SOURCE_ID","SQLITE_VERSION","SUBSTR","SUBSTRING","TOTAL_CHANGES","TRIM","TYPEOF","UNICODE","UNLIKELY","UPPER","ZEROBLOB","AVG","COUNT","GROUP_CONCAT","MAX","MIN","SUM","TOTAL","DATE","TIME","DATETIME","JULIANDAY","UNIXEPOCH","STRFTIME","row_number","rank","dense_rank","percent_rank","cume_dist","ntile","lag","lead","first_value","last_value","nth_value","ACOS","ACOSH","ASIN","ASINH","ATAN","ATAN2","ATANH","CEIL","CEILING","COS","COSH","DEGREES","EXP","FLOOR","LN","LOG","LOG","LOG10","LOG2","MOD","PI","POW","POWER","RADIANS","SIN","SINH","SQRT","TAN","TANH","TRUNC","JSON","JSON_ARRAY","JSON_ARRAY_LENGTH","JSON_ARRAY_LENGTH","JSON_EXTRACT","JSON_INSERT","JSON_OBJECT","JSON_PATCH","JSON_REMOVE","JSON_REPLACE","JSON_SET","JSON_TYPE","JSON_TYPE","JSON_VALID","JSON_QUOTE","JSON_GROUP_ARRAY","JSON_GROUP_OBJECT","JSON_EACH","JSON_TREE","CAST"],wp=["ABORT","ACTION","ADD","AFTER","ALL","ALTER","AND","ARE","ALWAYS","ANALYZE","AS","ASC","ATTACH","AUTOINCREMENT","BEFORE","BEGIN","BETWEEN","BY","CASCADE","CASE","CAST","CHECK","COLLATE","COLUMN","COMMIT","CONFLICT","CONSTRAINT","CREATE","CROSS","CURRENT","CURRENT_DATE","CURRENT_TIME","CURRENT_TIMESTAMP","DATABASE","DEFAULT","DEFERRABLE","DEFERRED","DELETE","DESC","DETACH","DISTINCT","DO","DROP","EACH","ELSE","END","ESCAPE","EXCEPT","EXCLUDE","EXCLUSIVE","EXISTS","EXPLAIN","FAIL","FILTER","FIRST","FOLLOWING","FOR","FOREIGN","FROM","FULL","GENERATED","GLOB","GROUP","GROUPS","HAVING","IF","IGNORE","IMMEDIATE","IN","INDEX","INDEXED","INITIALLY","INNER","INSERT","INSTEAD","INTERSECT","INTO","IS","ISNULL","JOIN","KEY","LAST","LEFT","LIKE","LIMIT","MATCH","MATERIALIZED","NATURAL","NO","NOT","NOTHING","NOTNULL","NULL","NULLS","OF","OFFSET","ON","ONLY","OPEN","OR","ORDER","OTHERS","OUTER","OVER","PARTITION","PLAN","PRAGMA","PRECEDING","PRIMARY","QUERY","RAISE","RANGE","RECURSIVE","REFERENCES","REGEXP","REINDEX","RELEASE","RENAME","REPLACE","RESTRICT","RETURNING","RIGHT","ROLLBACK","ROW","ROWS","SAVEPOINT","SELECT","SET","TABLE","TEMP","TEMPORARY","THEN","TIES","TO","TRANSACTION","TRIGGER","UNBOUNDED","UNION","UNIQUE","UPDATE","USING","VACUUM","VALUES","VIEW","VIRTUAL","WHEN","WHERE","WINDOW","WITH","WITHOUT"],Wp=["ANY","ARRAY","BLOB","CHARACTER","DECIMAL","INT","INTEGER","NATIVE CHARACTER","NCHAR","NUMERIC","NVARCHAR","REAL","TEXT","VARCHAR","VARYING CHARACTER"],Xp=u(["SELECT [ALL | DISTINCT]"]),Kp=u(["WITH [RECURSIVE]","FROM","WHERE","GROUP BY","HAVING","WINDOW","PARTITION BY","ORDER BY","LIMIT","OFFSET","INSERT [OR ABORT | OR FAIL | OR IGNORE | OR REPLACE | OR ROLLBACK] INTO","REPLACE INTO","VALUES","SET"]),$n=u(["CREATE [TEMPORARY | TEMP] TABLE [IF NOT EXISTS]"]),oT=u(["CREATE [TEMPORARY | TEMP] VIEW [IF NOT EXISTS]","UPDATE [OR ABORT | OR FAIL | OR IGNORE | OR REPLACE | OR ROLLBACK]","ON CONFLICT","DELETE FROM","DROP TABLE [IF EXISTS]","ALTER TABLE","ADD [COLUMN]","DROP [COLUMN]","RENAME [COLUMN]","RENAME TO","SET SCHEMA"]),$p=u(["UNION [ALL]","EXCEPT","INTERSECT"]),Jp=u(["JOIN","{LEFT | RIGHT | FULL} [OUTER] JOIN","{INNER | CROSS} JOIN","NATURAL [INNER] JOIN","NATURAL {LEFT | RIGHT | FULL} [OUTER] JOIN"]),kp=u(["ON {UPDATE | DELETE} [SET NULL | SET DEFAULT]","{ROWS | RANGE | GROUPS} BETWEEN","DO UPDATE"]),qp={name:"sqlite",tokenizerOptions:{reservedSelect:Xp,reservedClauses:[...Kp,...$n,...oT],reservedSetOperations:$p,reservedJoins:Jp,reservedPhrases:kp,reservedKeywords:wp,reservedDataTypes:Wp,reservedFunctionNames:xp,stringTypes:["''-qq",{quote:"''-raw",prefixes:["X"],requirePrefix:!0}],identTypes:['""-qq',"``","[]"],paramTypes:{positional:!0,numbered:["?"],named:[":","@","$"]},operators:["%","~","&","|","<<",">>","==","->","->>","||"]},formatOptions:{onelineClauses:[...$n,...oT],tabularOnelineClauses:oT}},jp=["GROUPING","RANK","DENSE_RANK","PERCENT_RANK","CUME_DIST","ROW_NUMBER","POSITION","OCCURRENCES_REGEX","POSITION_REGEX","EXTRACT","CHAR_LENGTH","CHARACTER_LENGTH","OCTET_LENGTH","CARDINALITY","ABS","MOD","LN","EXP","POWER","SQRT","FLOOR","CEIL","CEILING","WIDTH_BUCKET","SUBSTRING","SUBSTRING_REGEX","UPPER","LOWER","CONVERT","TRANSLATE","TRANSLATE_REGEX","TRIM","OVERLAY","NORMALIZE","SPECIFICTYPE","CURRENT_DATE","CURRENT_TIME","LOCALTIME","CURRENT_TIMESTAMP","LOCALTIMESTAMP","COUNT","AVG","MAX","MIN","SUM","STDDEV_POP","STDDEV_SAMP","VAR_SAMP","VAR_POP","COLLECT","FUSION","INTERSECTION","COVAR_POP","COVAR_SAMP","CORR","REGR_SLOPE","REGR_INTERCEPT","REGR_COUNT","REGR_R2","REGR_AVGX","REGR_AVGY","REGR_SXX","REGR_SYY","REGR_SXY","PERCENTILE_CONT","PERCENTILE_DISC","CAST","COALESCE","NULLIF","ROUND","SIN","COS","TAN","ASIN","ACOS","ATAN"],Qp=["ALL","ALLOCATE","ALTER","ANY","ARE","AS","ASC","ASENSITIVE","ASYMMETRIC","AT","ATOMIC","AUTHORIZATION","BEGIN","BETWEEN","BOTH","BY","CALL","CALLED","CASCADED","CAST","CHECK","CLOSE","COALESCE","COLLATE","COLUMN","COMMIT","CONDITION","CONNECT","CONSTRAINT","CORRESPONDING","CREATE","CROSS","CUBE","CURRENT","CURRENT_CATALOG","CURRENT_DEFAULT_TRANSFORM_GROUP","CURRENT_PATH","CURRENT_ROLE","CURRENT_SCHEMA","CURRENT_TRANSFORM_GROUP_FOR_TYPE","CURRENT_USER","CURSOR","CYCLE","DEALLOCATE","DAY","DECLARE","DEFAULT","DELETE","DEREF","DESC","DESCRIBE","DETERMINISTIC","DISCONNECT","DISTINCT","DROP","DYNAMIC","EACH","ELEMENT","END-EXEC","ESCAPE","EVERY","EXCEPT","EXEC","EXECUTE","EXISTS","EXTERNAL","FALSE","FETCH","FILTER","FOR","FOREIGN","FREE","FROM","FULL","FUNCTION","GET","GLOBAL","GRANT","GROUP","HAVING","HOLD","HOUR","IDENTITY","IN","INDICATOR","INNER","INOUT","INSENSITIVE","INSERT","INTERSECT","INTO","IS","LANGUAGE","LARGE","LATERAL","LEADING","LEFT","LIKE","LIKE_REGEX","LOCAL","MATCH","MEMBER","MERGE","METHOD","MINUTE","MODIFIES","MODULE","MONTH","NATURAL","NEW","NO","NONE","NOT","NULL","NULLIF","OF","OLD","ON","ONLY","OPEN","ORDER","OUT","OUTER","OVER","OVERLAPS","PARAMETER","PARTITION","PRECISION","PREPARE","PRIMARY","PROCEDURE","RANGE","READS","REAL","RECURSIVE","REF","REFERENCES","REFERENCING","RELEASE","RESULT","RETURN","RETURNS","REVOKE","RIGHT","ROLLBACK","ROLLUP","ROW","ROWS","SAVEPOINT","SCOPE","SCROLL","SEARCH","SECOND","SELECT","SENSITIVE","SESSION_USER","SET","SIMILAR","SOME","SPECIFIC","SQL","SQLEXCEPTION","SQLSTATE","SQLWARNING","START","STATIC","SUBMULTISET","SYMMETRIC","SYSTEM","SYSTEM_USER","TABLE","TABLESAMPLE","THEN","TIMEZONE_HOUR","TIMEZONE_MINUTE","TO","TRAILING","TRANSLATION","TREAT","TRIGGER","TRUE","UESCAPE","UNION","UNIQUE","UNKNOWN","UNNEST","UPDATE","USER","USING","VALUE","VALUES","WHENEVER","WINDOW","WITHIN","WITHOUT","YEAR"],Zp=["ARRAY","BIGINT","BINARY LARGE OBJECT","BINARY VARYING","BINARY","BLOB","BOOLEAN","CHAR LARGE OBJECT","CHAR VARYING","CHAR","CHARACTER LARGE OBJECT","CHARACTER VARYING","CHARACTER","CLOB","DATE","DEC","DECIMAL","DOUBLE","FLOAT","INT","INTEGER","INTERVAL","MULTISET","NATIONAL CHAR VARYING","NATIONAL CHAR","NATIONAL CHARACTER LARGE OBJECT","NATIONAL CHARACTER VARYING","NATIONAL CHARACTER","NCHAR LARGE OBJECT","NCHAR VARYING","NCHAR","NCLOB","NUMERIC","SMALLINT","TIME","TIMESTAMP","VARBINARY","VARCHAR"],zp=u(["SELECT [ALL | DISTINCT]"]),ef=u(["WITH [RECURSIVE]","FROM","WHERE","GROUP BY [ALL | DISTINCT]","HAVING","WINDOW","PARTITION BY","ORDER BY","LIMIT","OFFSET","FETCH {FIRST | NEXT}","INSERT INTO","VALUES","SET"]),Jn=u(["CREATE [GLOBAL TEMPORARY | LOCAL TEMPORARY] TABLE"]),AT=u(["CREATE [RECURSIVE] VIEW","UPDATE","WHERE CURRENT OF","DELETE FROM","DROP TABLE","ALTER TABLE","ADD COLUMN","DROP [COLUMN]","RENAME COLUMN","RENAME TO","ALTER [COLUMN]","{SET | DROP} DEFAULT","ADD SCOPE","DROP SCOPE {CASCADE | RESTRICT}","RESTART WITH","TRUNCATE TABLE","SET SCHEMA"]),tf=u(["UNION [ALL | DISTINCT]","EXCEPT [ALL | DISTINCT]","INTERSECT [ALL | DISTINCT]"]),Ef=u(["JOIN","{LEFT | RIGHT | FULL} [OUTER] JOIN","{INNER | CROSS} JOIN","NATURAL [INNER] JOIN","NATURAL {LEFT | RIGHT | FULL} [OUTER] JOIN"]),sf=u(["ON {UPDATE | DELETE} [SET NULL | SET DEFAULT]","{ROWS | RANGE} BETWEEN"]),Tf={name:"sql",tokenizerOptions:{reservedSelect:zp,reservedClauses:[...ef,...Jn,...AT],reservedSetOperations:tf,reservedJoins:Ef,reservedPhrases:sf,reservedKeywords:Qp,reservedDataTypes:Zp,reservedFunctionNames:jp,stringTypes:[{quote:"''-qq-bs",prefixes:["N","U&"]},{quote:"''-raw",prefixes:["X"],requirePrefix:!0}],identTypes:['""-qq',"``"],paramTypes:{positional:!0},operators:["||"]},formatOptions:{onelineClauses:[...Jn,...AT],tabularOnelineClauses:AT}},rf=["ABS","ACOS","ALL_MATCH","ANY_MATCH","APPROX_DISTINCT","APPROX_MOST_FREQUENT","APPROX_PERCENTILE","APPROX_SET","ARBITRARY","ARRAYS_OVERLAP","ARRAY_AGG","ARRAY_DISTINCT","ARRAY_EXCEPT","ARRAY_INTERSECT","ARRAY_JOIN","ARRAY_MAX","ARRAY_MIN","ARRAY_POSITION","ARRAY_REMOVE","ARRAY_SORT","ARRAY_UNION","ASIN","ATAN","ATAN2","AT_TIMEZONE","AVG","BAR","BETA_CDF","BING_TILE","BING_TILES_AROUND","BING_TILE_AT","BING_TILE_COORDINATES","BING_TILE_POLYGON","BING_TILE_QUADKEY","BING_TILE_ZOOM_LEVEL","BITWISE_AND","BITWISE_AND_AGG","BITWISE_LEFT_SHIFT","BITWISE_NOT","BITWISE_OR","BITWISE_OR_AGG","BITWISE_RIGHT_SHIFT","BITWISE_RIGHT_SHIFT_ARITHMETIC","BITWISE_XOR","BIT_COUNT","BOOL_AND","BOOL_OR","CARDINALITY","CAST","CBRT","CEIL","CEILING","CHAR2HEXINT","CHECKSUM","CHR","CLASSIFY","COALESCE","CODEPOINT","COLOR","COMBINATIONS","CONCAT","CONCAT_WS","CONTAINS","CONTAINS_SEQUENCE","CONVEX_HULL_AGG","CORR","COS","COSH","COSINE_SIMILARITY","COUNT","COUNT_IF","COVAR_POP","COVAR_SAMP","CRC32","CUME_DIST","CURRENT_CATALOG","CURRENT_DATE","CURRENT_GROUPS","CURRENT_SCHEMA","CURRENT_TIME","CURRENT_TIMESTAMP","CURRENT_TIMEZONE","CURRENT_USER","DATE","DATE_ADD","DATE_DIFF","DATE_FORMAT","DATE_PARSE","DATE_TRUNC","DAY","DAY_OF_MONTH","DAY_OF_WEEK","DAY_OF_YEAR","DEGREES","DENSE_RANK","DOW","DOY","E","ELEMENT_AT","EMPTY_APPROX_SET","EVALUATE_CLASSIFIER_PREDICTIONS","EVERY","EXP","EXTRACT","FEATURES","FILTER","FIRST_VALUE","FLATTEN","FLOOR","FORMAT","FORMAT_DATETIME","FORMAT_NUMBER","FROM_BASE","FROM_BASE32","FROM_BASE64","FROM_BASE64URL","FROM_BIG_ENDIAN_32","FROM_BIG_ENDIAN_64","FROM_ENCODED_POLYLINE","FROM_GEOJSON_GEOMETRY","FROM_HEX","FROM_IEEE754_32","FROM_IEEE754_64","FROM_ISO8601_DATE","FROM_ISO8601_TIMESTAMP","FROM_ISO8601_TIMESTAMP_NANOS","FROM_UNIXTIME","FROM_UNIXTIME_NANOS","FROM_UTF8","GEOMETRIC_MEAN","GEOMETRY_FROM_HADOOP_SHAPE","GEOMETRY_INVALID_REASON","GEOMETRY_NEAREST_POINTS","GEOMETRY_TO_BING_TILES","GEOMETRY_UNION","GEOMETRY_UNION_AGG","GREATEST","GREAT_CIRCLE_DISTANCE","HAMMING_DISTANCE","HASH_COUNTS","HISTOGRAM","HMAC_MD5","HMAC_SHA1","HMAC_SHA256","HMAC_SHA512","HOUR","HUMAN_READABLE_SECONDS","IF","INDEX","INFINITY","INTERSECTION_CARDINALITY","INVERSE_BETA_CDF","INVERSE_NORMAL_CDF","IS_FINITE","IS_INFINITE","IS_JSON_SCALAR","IS_NAN","JACCARD_INDEX","JSON_ARRAY_CONTAINS","JSON_ARRAY_GET","JSON_ARRAY_LENGTH","JSON_EXISTS","JSON_EXTRACT","JSON_EXTRACT_SCALAR","JSON_FORMAT","JSON_PARSE","JSON_QUERY","JSON_SIZE","JSON_VALUE","KURTOSIS","LAG","LAST_DAY_OF_MONTH","LAST_VALUE","LEAD","LEARN_CLASSIFIER","LEARN_LIBSVM_CLASSIFIER","LEARN_LIBSVM_REGRESSOR","LEARN_REGRESSOR","LEAST","LENGTH","LEVENSHTEIN_DISTANCE","LINE_INTERPOLATE_POINT","LINE_INTERPOLATE_POINTS","LINE_LOCATE_POINT","LISTAGG","LN","LOCALTIME","LOCALTIMESTAMP","LOG","LOG10","LOG2","LOWER","LPAD","LTRIM","LUHN_CHECK","MAKE_SET_DIGEST","MAP","MAP_AGG","MAP_CONCAT","MAP_ENTRIES","MAP_FILTER","MAP_FROM_ENTRIES","MAP_KEYS","MAP_UNION","MAP_VALUES","MAP_ZIP_WITH","MAX","MAX_BY","MD5","MERGE","MERGE_SET_DIGEST","MILLISECOND","MIN","MINUTE","MIN_BY","MOD","MONTH","MULTIMAP_AGG","MULTIMAP_FROM_ENTRIES","MURMUR3","NAN","NGRAMS","NONE_MATCH","NORMALIZE","NORMAL_CDF","NOW","NTH_VALUE","NTILE","NULLIF","NUMERIC_HISTOGRAM","OBJECTID","OBJECTID_TIMESTAMP","PARSE_DATA_SIZE","PARSE_DATETIME","PARSE_DURATION","PERCENT_RANK","PI","POSITION","POW","POWER","QDIGEST_AGG","QUARTER","RADIANS","RAND","RANDOM","RANK","REDUCE","REDUCE_AGG","REGEXP_COUNT","REGEXP_EXTRACT","REGEXP_EXTRACT_ALL","REGEXP_LIKE","REGEXP_POSITION","REGEXP_REPLACE","REGEXP_SPLIT","REGRESS","REGR_INTERCEPT","REGR_SLOPE","RENDER","REPEAT","REPLACE","REVERSE","RGB","ROUND","ROW_NUMBER","RPAD","RTRIM","SECOND","SEQUENCE","SHA1","SHA256","SHA512","SHUFFLE","SIGN","SIMPLIFY_GEOMETRY","SIN","SKEWNESS","SLICE","SOUNDEX","SPATIAL_PARTITIONING","SPATIAL_PARTITIONS","SPLIT","SPLIT_PART","SPLIT_TO_MAP","SPLIT_TO_MULTIMAP","SPOOKY_HASH_V2_32","SPOOKY_HASH_V2_64","SQRT","STARTS_WITH","STDDEV","STDDEV_POP","STDDEV_SAMP","STRPOS","ST_AREA","ST_ASBINARY","ST_ASTEXT","ST_BOUNDARY","ST_BUFFER","ST_CENTROID","ST_CONTAINS","ST_CONVEXHULL","ST_COORDDIM","ST_CROSSES","ST_DIFFERENCE","ST_DIMENSION","ST_DISJOINT","ST_DISTANCE","ST_ENDPOINT","ST_ENVELOPE","ST_ENVELOPEASPTS","ST_EQUALS","ST_EXTERIORRING","ST_GEOMETRIES","ST_GEOMETRYFROMTEXT","ST_GEOMETRYN","ST_GEOMETRYTYPE","ST_GEOMFROMBINARY","ST_INTERIORRINGN","ST_INTERIORRINGS","ST_INTERSECTION","ST_INTERSECTS","ST_ISCLOSED","ST_ISEMPTY","ST_ISRING","ST_ISSIMPLE","ST_ISVALID","ST_LENGTH","ST_LINEFROMTEXT","ST_LINESTRING","ST_MULTIPOINT","ST_NUMGEOMETRIES","ST_NUMINTERIORRING","ST_NUMPOINTS","ST_OVERLAPS","ST_POINT","ST_POINTN","ST_POINTS","ST_POLYGON","ST_RELATE","ST_STARTPOINT","ST_SYMDIFFERENCE","ST_TOUCHES","ST_UNION","ST_WITHIN","ST_X","ST_XMAX","ST_XMIN","ST_Y","ST_YMAX","ST_YMIN","SUBSTR","SUBSTRING","SUM","TAN","TANH","TDIGEST_AGG","TIMESTAMP_OBJECTID","TIMEZONE_HOUR","TIMEZONE_MINUTE","TO_BASE","TO_BASE32","TO_BASE64","TO_BASE64URL","TO_BIG_ENDIAN_32","TO_BIG_ENDIAN_64","TO_CHAR","TO_DATE","TO_ENCODED_POLYLINE","TO_GEOJSON_GEOMETRY","TO_GEOMETRY","TO_HEX","TO_IEEE754_32","TO_IEEE754_64","TO_ISO8601","TO_MILLISECONDS","TO_SPHERICAL_GEOGRAPHY","TO_TIMESTAMP","TO_UNIXTIME","TO_UTF8","TRANSFORM","TRANSFORM_KEYS","TRANSFORM_VALUES","TRANSLATE","TRIM","TRIM_ARRAY","TRUNCATE","TRY","TRY_CAST","TYPEOF","UPPER","URL_DECODE","URL_ENCODE","URL_EXTRACT_FRAGMENT","URL_EXTRACT_HOST","URL_EXTRACT_PARAMETER","URL_EXTRACT_PATH","URL_EXTRACT_PORT","URL_EXTRACT_PROTOCOL","URL_EXTRACT_QUERY","UUID","VALUES_AT_QUANTILES","VALUE_AT_QUANTILE","VARIANCE","VAR_POP","VAR_SAMP","VERSION","WEEK","WEEK_OF_YEAR","WIDTH_BUCKET","WILSON_INTERVAL_LOWER","WILSON_INTERVAL_UPPER","WITH_TIMEZONE","WORD_STEM","XXHASH64","YEAR","YEAR_OF_WEEK","YOW","ZIP","ZIP_WITH","CLASSIFIER","FIRST","LAST","MATCH_NUMBER","NEXT","PERMUTE","PREV"],nf=["ABSENT","ADD","ADMIN","AFTER","ALL","ALTER","ANALYZE","AND","ANY","AS","ASC","AT","AUTHORIZATION","BERNOULLI","BETWEEN","BOTH","BY","CALL","CASCADE","CASE","CATALOGS","COLUMN","COLUMNS","COMMENT","COMMIT","COMMITTED","CONDITIONAL","CONSTRAINT","COPARTITION","CREATE","CROSS","CUBE","CURRENT","CURRENT_PATH","CURRENT_ROLE","DATA","DEALLOCATE","DEFAULT","DEFINE","DEFINER","DELETE","DENY","DESC","DESCRIBE","DESCRIPTOR","DISTINCT","DISTRIBUTED","DOUBLE","DROP","ELSE","EMPTY","ENCODING","END","ERROR","ESCAPE","EXCEPT","EXCLUDING","EXECUTE","EXISTS","EXPLAIN","FALSE","FETCH","FINAL","FIRST","FOLLOWING","FOR","FROM","FULL","FUNCTIONS","GRANT","GRANTED","GRANTS","GRAPHVIZ","GROUP","GROUPING","GROUPS","HAVING","IGNORE","IN","INCLUDING","INITIAL","INNER","INPUT","INSERT","INTERSECT","INTERVAL","INTO","INVOKER","IO","IS","ISOLATION","JOIN","JSON","JSON_ARRAY","JSON_OBJECT","KEEP","KEY","KEYS","LAST","LATERAL","LEADING","LEFT","LEVEL","LIKE","LIMIT","LOCAL","LOGICAL","MATCH","MATCHED","MATCHES","MATCH_RECOGNIZE","MATERIALIZED","MEASURES","NATURAL","NEXT","NFC","NFD","NFKC","NFKD","NO","NONE","NOT","NULL","NULLS","OBJECT","OF","OFFSET","OMIT","ON","ONE","ONLY","OPTION","OR","ORDER","ORDINALITY","OUTER","OUTPUT","OVER","OVERFLOW","PARTITION","PARTITIONS","PASSING","PAST","PATH","PATTERN","PER","PERMUTE","PRECEDING","PRECISION","PREPARE","PRIVILEGES","PROPERTIES","PRUNE","QUOTES","RANGE","READ","RECURSIVE","REFRESH","RENAME","REPEATABLE","RESET","RESPECT","RESTRICT","RETURNING","REVOKE","RIGHT","ROLE","ROLES","ROLLBACK","ROLLUP","ROW","ROWS","RUNNING","SCALAR","SCHEMA","SCHEMAS","SECURITY","SEEK","SELECT","SERIALIZABLE","SESSION","SET","SETS","SHOW","SKIP","SOME","START","STATS","STRING","SUBSET","SYSTEM","TABLE","TABLES","TABLESAMPLE","TEXT","THEN","TIES","TIME","TIMESTAMP","TO","TRAILING","TRANSACTION","TRUE","TYPE","UESCAPE","UNBOUNDED","UNCOMMITTED","UNCONDITIONAL","UNION","UNIQUE","UNKNOWN","UNMATCHED","UNNEST","UPDATE","USE","USER","USING","UTF16","UTF32","UTF8","VALIDATE","VALUE","VALUES","VERBOSE","VIEW","WHEN","WHERE","WINDOW","WITH","WITHIN","WITHOUT","WORK","WRAPPER","WRITE","ZONE"],Rf=["BIGINT","INT","INTEGER","SMALLINT","TINYINT","BOOLEAN","DATE","DECIMAL","REAL","DOUBLE","HYPERLOGLOG","QDIGEST","TDIGEST","P4HYPERLOGLOG","INTERVAL","TIMESTAMP","TIME","VARBINARY","VARCHAR","CHAR","ROW","ARRAY","MAP","JSON","JSON2016","IPADDRESS","GEOMETRY","UUID","SETDIGEST","JONIREGEXP","RE2JREGEXP","LIKEPATTERN","COLOR","CODEPOINTS","FUNCTION","JSONPATH"],of=u(["SELECT [ALL | DISTINCT]"]),Af=u(["WITH [RECURSIVE]","FROM","WHERE","GROUP BY [ALL | DISTINCT]","HAVING","WINDOW","PARTITION BY","ORDER BY","LIMIT","OFFSET","FETCH {FIRST | NEXT}","INSERT INTO","VALUES","SET","MATCH_RECOGNIZE","MEASURES","ONE ROW PER MATCH","ALL ROWS PER MATCH","AFTER MATCH","PATTERN","SUBSET","DEFINE"]),kn=u(["CREATE TABLE [IF NOT EXISTS]"]),iT=u(["CREATE [OR REPLACE] [MATERIALIZED] VIEW","UPDATE","DELETE FROM","DROP TABLE [IF EXISTS]","ALTER TABLE [IF EXISTS]","ADD COLUMN [IF NOT EXISTS]","DROP COLUMN [IF EXISTS]","RENAME COLUMN [IF EXISTS]","RENAME TO","SET AUTHORIZATION [USER | ROLE]","SET PROPERTIES","EXECUTE","TRUNCATE TABLE","ALTER SCHEMA","ALTER MATERIALIZED VIEW","ALTER VIEW","CREATE SCHEMA","CREATE ROLE","DROP SCHEMA","DROP MATERIALIZED VIEW","DROP VIEW","DROP ROLE","EXPLAIN","ANALYZE","EXPLAIN ANALYZE","EXPLAIN ANALYZE VERBOSE","USE","DESCRIBE INPUT","DESCRIBE OUTPUT","REFRESH MATERIALIZED VIEW","RESET SESSION","SET SESSION","SET PATH","SET TIME ZONE","SHOW GRANTS","SHOW CREATE TABLE","SHOW CREATE SCHEMA","SHOW CREATE VIEW","SHOW CREATE MATERIALIZED VIEW","SHOW TABLES","SHOW SCHEMAS","SHOW CATALOGS","SHOW COLUMNS","SHOW STATS FOR","SHOW ROLES","SHOW CURRENT ROLES","SHOW ROLE GRANTS","SHOW FUNCTIONS","SHOW SESSION"]),Sf=u(["UNION [ALL | DISTINCT]","EXCEPT [ALL | DISTINCT]","INTERSECT [ALL | DISTINCT]"]),Of=u(["JOIN","{LEFT | RIGHT | FULL} [OUTER] JOIN","{INNER | CROSS} JOIN","NATURAL [INNER] JOIN","NATURAL {LEFT | RIGHT | FULL} [OUTER] JOIN"]),If=u(["{ROWS | RANGE | GROUPS} BETWEEN","IS [NOT] DISTINCT FROM"]),af={name:"trino",tokenizerOptions:{reservedSelect:of,reservedClauses:[...Af,...kn,...iT],reservedSetOperations:Sf,reservedJoins:Of,reservedPhrases:If,reservedKeywords:nf,reservedDataTypes:Rf,reservedFunctionNames:rf,extraParens:["[]","{}"],stringTypes:[{quote:"''-qq",prefixes:["U&"]},{quote:"''-raw",prefixes:["X"],requirePrefix:!0}],identTypes:['""-qq'],paramTypes:{positional:!0},operators:["%","->","=>",":","||","|","^","$"]},formatOptions:{onelineClauses:[...kn,...iT],tabularOnelineClauses:iT}},Nf=["APPROX_COUNT_DISTINCT","AVG","CHECKSUM_AGG","COUNT","COUNT_BIG","GROUPING","GROUPING_ID","MAX","MIN","STDEV","STDEVP","SUM","VAR","VARP","CUME_DIST","FIRST_VALUE","LAG","LAST_VALUE","LEAD","PERCENTILE_CONT","PERCENTILE_DISC","PERCENT_RANK","Collation - COLLATIONPROPERTY","Collation - TERTIARY_WEIGHTS","@@DBTS","@@LANGID","@@LANGUAGE","@@LOCK_TIMEOUT","@@MAX_CONNECTIONS","@@MAX_PRECISION","@@NESTLEVEL","@@OPTIONS","@@REMSERVER","@@SERVERNAME","@@SERVICENAME","@@SPID","@@TEXTSIZE","@@VERSION","CAST","CONVERT","PARSE","TRY_CAST","TRY_CONVERT","TRY_PARSE","ASYMKEY_ID","ASYMKEYPROPERTY","CERTPROPERTY","CERT_ID","CRYPT_GEN_RANDOM","DECRYPTBYASYMKEY","DECRYPTBYCERT","DECRYPTBYKEY","DECRYPTBYKEYAUTOASYMKEY","DECRYPTBYKEYAUTOCERT","DECRYPTBYPASSPHRASE","ENCRYPTBYASYMKEY","ENCRYPTBYCERT","ENCRYPTBYKEY","ENCRYPTBYPASSPHRASE","HASHBYTES","IS_OBJECTSIGNED","KEY_GUID","KEY_ID","KEY_NAME","SIGNBYASYMKEY","SIGNBYCERT","SYMKEYPROPERTY","VERIFYSIGNEDBYCERT","VERIFYSIGNEDBYASYMKEY","@@CURSOR_ROWS","@@FETCH_STATUS","CURSOR_STATUS","DATALENGTH","IDENT_CURRENT","IDENT_INCR","IDENT_SEED","IDENTITY","SQL_VARIANT_PROPERTY","@@DATEFIRST","CURRENT_TIMESTAMP","CURRENT_TIMEZONE","CURRENT_TIMEZONE_ID","DATEADD","DATEDIFF","DATEDIFF_BIG","DATEFROMPARTS","DATENAME","DATEPART","DATETIME2FROMPARTS","DATETIMEFROMPARTS","DATETIMEOFFSETFROMPARTS","DAY","EOMONTH","GETDATE","GETUTCDATE","ISDATE","MONTH","SMALLDATETIMEFROMPARTS","SWITCHOFFSET","SYSDATETIME","SYSDATETIMEOFFSET","SYSUTCDATETIME","TIMEFROMPARTS","TODATETIMEOFFSET","YEAR","JSON","ISJSON","JSON_VALUE","JSON_QUERY","JSON_MODIFY","ABS","ACOS","ASIN","ATAN","ATN2","CEILING","COS","COT","DEGREES","EXP","FLOOR","LOG","LOG10","PI","POWER","RADIANS","RAND","ROUND","SIGN","SIN","SQRT","SQUARE","TAN","CHOOSE","GREATEST","IIF","LEAST","@@PROCID","APP_NAME","APPLOCK_MODE","APPLOCK_TEST","ASSEMBLYPROPERTY","COL_LENGTH","COL_NAME","COLUMNPROPERTY","DATABASEPROPERTYEX","DB_ID","DB_NAME","FILE_ID","FILE_IDEX","FILE_NAME","FILEGROUP_ID","FILEGROUP_NAME","FILEGROUPPROPERTY","FILEPROPERTY","FILEPROPERTYEX","FULLTEXTCATALOGPROPERTY","FULLTEXTSERVICEPROPERTY","INDEX_COL","INDEXKEY_PROPERTY","INDEXPROPERTY","NEXT VALUE FOR","OBJECT_DEFINITION","OBJECT_ID","OBJECT_NAME","OBJECT_SCHEMA_NAME","OBJECTPROPERTY","OBJECTPROPERTYEX","ORIGINAL_DB_NAME","PARSENAME","SCHEMA_ID","SCHEMA_NAME","SCOPE_IDENTITY","SERVERPROPERTY","STATS_DATE","TYPE_ID","TYPE_NAME","TYPEPROPERTY","DENSE_RANK","NTILE","RANK","ROW_NUMBER","PUBLISHINGSERVERNAME","CERTENCODED","CERTPRIVATEKEY","CURRENT_USER","DATABASE_PRINCIPAL_ID","HAS_DBACCESS","HAS_PERMS_BY_NAME","IS_MEMBER","IS_ROLEMEMBER","IS_SRVROLEMEMBER","LOGINPROPERTY","ORIGINAL_LOGIN","PERMISSIONS","PWDENCRYPT","PWDCOMPARE","SESSION_USER","SESSIONPROPERTY","SUSER_ID","SUSER_NAME","SUSER_SID","SUSER_SNAME","SYSTEM_USER","USER","USER_ID","USER_NAME","ASCII","CHARINDEX","CONCAT","CONCAT_WS","DIFFERENCE","FORMAT","LEFT","LEN","LOWER","LTRIM","PATINDEX","QUOTENAME","REPLACE","REPLICATE","REVERSE","RIGHT","RTRIM","SOUNDEX","SPACE","STR","STRING_AGG","STRING_ESCAPE","STUFF","SUBSTRING","TRANSLATE","TRIM","UNICODE","UPPER","$PARTITION","@@ERROR","@@IDENTITY","@@PACK_RECEIVED","@@ROWCOUNT","@@TRANCOUNT","BINARY_CHECKSUM","CHECKSUM","COMPRESS","CONNECTIONPROPERTY","CONTEXT_INFO","CURRENT_REQUEST_ID","CURRENT_TRANSACTION_ID","DECOMPRESS","ERROR_LINE","ERROR_MESSAGE","ERROR_NUMBER","ERROR_PROCEDURE","ERROR_SEVERITY","ERROR_STATE","FORMATMESSAGE","GET_FILESTREAM_TRANSACTION_CONTEXT","GETANSINULL","HOST_ID","HOST_NAME","ISNULL","ISNUMERIC","MIN_ACTIVE_ROWVERSION","NEWID","NEWSEQUENTIALID","ROWCOUNT_BIG","SESSION_CONTEXT","XACT_STATE","@@CONNECTIONS","@@CPU_BUSY","@@IDLE","@@IO_BUSY","@@PACK_SENT","@@PACKET_ERRORS","@@TIMETICKS","@@TOTAL_ERRORS","@@TOTAL_READ","@@TOTAL_WRITE","TEXTPTR","TEXTVALID","COLUMNS_UPDATED","EVENTDATA","TRIGGER_NESTLEVEL","UPDATE","COALESCE","NULLIF"],lf=["ADD","ALL","ALTER","AND","ANY","AS","ASC","AUTHORIZATION","BACKUP","BEGIN","BETWEEN","BREAK","BROWSE","BULK","BY","CASCADE","CHECK","CHECKPOINT","CLOSE","CLUSTERED","COALESCE","COLLATE","COLUMN","COMMIT","COMPUTE","CONSTRAINT","CONTAINS","CONTAINSTABLE","CONTINUE","CONVERT","CREATE","CROSS","CURRENT","CURRENT_DATE","CURRENT_TIME","CURRENT_TIMESTAMP","CURRENT_USER","CURSOR","DATABASE","DBCC","DEALLOCATE","DECLARE","DEFAULT","DELETE","DENY","DESC","DISK","DISTINCT","DISTRIBUTED","DROP","DUMP","ERRLVL","ESCAPE","EXEC","EXECUTE","EXISTS","EXIT","EXTERNAL","FETCH","FILE","FILLFACTOR","FOR","FOREIGN","FREETEXT","FREETEXTTABLE","FROM","FULL","FUNCTION","GOTO","GRANT","GROUP","HAVING","HOLDLOCK","IDENTITY","IDENTITYCOL","IDENTITY_INSERT","IF","IN","INDEX","INNER","INSERT","INTERSECT","INTO","IS","JOIN","KEY","KILL","LEFT","LIKE","LINENO","LOAD","MERGE","NOCHECK","NONCLUSTERED","NOT","NULL","NULLIF","OF","OFF","OFFSETS","ON","OPEN","OPENDATASOURCE","OPENQUERY","OPENROWSET","OPENXML","OPTION","OR","ORDER","OUTER","OVER","PERCENT","PIVOT","PLAN","PRIMARY","PRINT","PROC","PROCEDURE","PUBLIC","RAISERROR","READ","READTEXT","RECONFIGURE","REFERENCES","REPLICATION","RESTORE","RESTRICT","RETURN","REVERT","REVOKE","RIGHT","ROLLBACK","ROWCOUNT","ROWGUIDCOL","RULE","SAVE","SCHEMA","SECURITYAUDIT","SELECT","SEMANTICKEYPHRASETABLE","SEMANTICSIMILARITYDETAILSTABLE","SEMANTICSIMILARITYTABLE","SESSION_USER","SET","SETUSER","SHUTDOWN","SOME","STATISTICS","SYSTEM_USER","TABLE","TABLESAMPLE","TEXTSIZE","THEN","TO","TOP","TRAN","TRANSACTION","TRIGGER","TRUNCATE","TRY_CONVERT","TSEQUAL","UNION","UNIQUE","UNPIVOT","UPDATE","UPDATETEXT","USE","USER","VALUES","VIEW","WAITFOR","WHERE","WHILE","WITH","WITHIN GROUP","WRITETEXT","ABSOLUTE","ACTION","ADA","ALLOCATE","ARE","ASSERTION","AT","AVG","BIT_LENGTH","BOTH","CASCADED","CAST","CATALOG","CHARACTER_LENGTH","CHAR_LENGTH","COLLATION","CONNECT","CONNECTION","CONSTRAINTS","CORRESPONDING","COUNT","DAY","DEFERRABLE","DEFERRED","DESCRIBE","DESCRIPTOR","DIAGNOSTICS","DISCONNECT","DOMAIN","END-EXEC","EXCEPTION","EXTRACT","FALSE","FIRST","FORTRAN","FOUND","GET","GLOBAL","GO","HOUR","IMMEDIATE","INCLUDE","INDICATOR","INITIALLY","INPUT","INSENSITIVE","INTERVAL","ISOLATION","LANGUAGE","LAST","LEADING","LEVEL","LOCAL","LOWER","MATCH","MAX","MIN","MINUTE","MODULE","MONTH","NAMES","NATURAL","NEXT","NO","NONE","OCTET_LENGTH","ONLY","OUTPUT","OVERLAPS","PAD","PARTIAL","PASCAL","POSITION","PREPARE","PRESERVE","PRIOR","PRIVILEGES","RELATIVE","ROWS","SCROLL","SECOND","SECTION","SESSION","SIZE","SPACE","SQL","SQLCA","SQLCODE","SQLERROR","SQLSTATE","SQLWARNING","SUBSTRING","SUM","TEMPORARY","TIMEZONE_HOUR","TIMEZONE_MINUTE","TRAILING","TRANSLATE","TRANSLATION","TRIM","TRUE","UNKNOWN","UPPER","USAGE","VALUE","WHENEVER","WORK","WRITE","YEAR","ZONE","$ACTION"],_f=["BINARY","BIT","CHAR","CHAR","CHARACTER","DATE","DATETIME2","DATETIMEOFFSET","DEC","DECIMAL","DOUBLE","FLOAT","INT","INTEGER","NATIONAL","NCHAR","NUMERIC","NVARCHAR","PRECISION","REAL","SMALLINT","TIME","TIMESTAMP","VARBINARY","VARCHAR"],Cf=u(["SELECT [ALL | DISTINCT]"]),Lf=u(["WITH","INTO","FROM","WHERE","GROUP BY","HAVING","WINDOW","PARTITION BY","ORDER BY","OFFSET","FETCH {FIRST | NEXT}","FOR {BROWSE | XML | JSON}","OPTION","INSERT [INTO]","VALUES","SET","MERGE [INTO]","WHEN [NOT] MATCHED [BY TARGET | BY SOURCE] [THEN]","UPDATE SET","CREATE [OR ALTER] {PROC | PROCEDURE}"]),qn=u(["CREATE TABLE"]),ST=u(["CREATE [OR ALTER] [MATERIALIZED] VIEW","UPDATE","WHERE CURRENT OF","DELETE [FROM]","DROP TABLE [IF EXISTS]","ALTER TABLE","ADD","DROP COLUMN [IF EXISTS]","ALTER COLUMN","TRUNCATE TABLE","ADD SENSITIVITY CLASSIFICATION","ADD SIGNATURE","AGGREGATE","ANSI_DEFAULTS","ANSI_NULLS","ANSI_NULL_DFLT_OFF","ANSI_NULL_DFLT_ON","ANSI_PADDING","ANSI_WARNINGS","APPLICATION ROLE","ARITHABORT","ARITHIGNORE","ASSEMBLY","ASYMMETRIC KEY","AUTHORIZATION","AVAILABILITY GROUP","BACKUP","BACKUP CERTIFICATE","BACKUP MASTER KEY","BACKUP SERVICE MASTER KEY","BEGIN CONVERSATION TIMER","BEGIN DIALOG CONVERSATION","BROKER PRIORITY","BULK INSERT","CERTIFICATE","CLOSE MASTER KEY","CLOSE SYMMETRIC KEY","COLLATE","COLUMN ENCRYPTION KEY","COLUMN MASTER KEY","COLUMNSTORE INDEX","CONCAT_NULL_YIELDS_NULL","CONTEXT_INFO","CONTRACT","CREDENTIAL","CRYPTOGRAPHIC PROVIDER","CURSOR_CLOSE_ON_COMMIT","DATABASE","DATABASE AUDIT SPECIFICATION","DATABASE ENCRYPTION KEY","DATABASE HADR","DATABASE SCOPED CONFIGURATION","DATABASE SCOPED CREDENTIAL","DATABASE SET","DATEFIRST","DATEFORMAT","DEADLOCK_PRIORITY","DENY","DENY XML","DISABLE TRIGGER","ENABLE TRIGGER","END CONVERSATION","ENDPOINT","EVENT NOTIFICATION","EVENT SESSION","EXECUTE AS","EXTERNAL DATA SOURCE","EXTERNAL FILE FORMAT","EXTERNAL LANGUAGE","EXTERNAL LIBRARY","EXTERNAL RESOURCE POOL","EXTERNAL TABLE","FIPS_FLAGGER","FMTONLY","FORCEPLAN","FULLTEXT CATALOG","FULLTEXT INDEX","FULLTEXT STOPLIST","FUNCTION","GET CONVERSATION GROUP","GET_TRANSMISSION_STATUS","GRANT","GRANT XML","IDENTITY_INSERT","IMPLICIT_TRANSACTIONS","INDEX","LANGUAGE","LOCK_TIMEOUT","LOGIN","MASTER KEY","MESSAGE TYPE","MOVE CONVERSATION","NOCOUNT","NOEXEC","NUMERIC_ROUNDABORT","OFFSETS","OPEN MASTER KEY","OPEN SYMMETRIC KEY","PARSEONLY","PARTITION FUNCTION","PARTITION SCHEME","PROCEDURE","QUERY_GOVERNOR_COST_LIMIT","QUEUE","QUOTED_IDENTIFIER","RECEIVE","REMOTE SERVICE BINDING","REMOTE_PROC_TRANSACTIONS","RESOURCE GOVERNOR","RESOURCE POOL","RESTORE","RESTORE FILELISTONLY","RESTORE HEADERONLY","RESTORE LABELONLY","RESTORE MASTER KEY","RESTORE REWINDONLY","RESTORE SERVICE MASTER KEY","RESTORE VERIFYONLY","REVERT","REVOKE","REVOKE XML","ROLE","ROUTE","ROWCOUNT","RULE","SCHEMA","SEARCH PROPERTY LIST","SECURITY POLICY","SELECTIVE XML INDEX","SEND","SENSITIVITY CLASSIFICATION","SEQUENCE","SERVER AUDIT","SERVER AUDIT SPECIFICATION","SERVER CONFIGURATION","SERVER ROLE","SERVICE","SERVICE MASTER KEY","SETUSER","SHOWPLAN_ALL","SHOWPLAN_TEXT","SHOWPLAN_XML","SIGNATURE","SPATIAL INDEX","STATISTICS","STATISTICS IO","STATISTICS PROFILE","STATISTICS TIME","STATISTICS XML","SYMMETRIC KEY","SYNONYM","TABLE","TABLE IDENTITY","TEXTSIZE","TRANSACTION ISOLATION LEVEL","TRIGGER","TYPE","UPDATE STATISTICS","USER","WORKLOAD GROUP","XACT_ABORT","XML INDEX","XML SCHEMA COLLECTION"]),cf=u(["UNION [ALL]","EXCEPT","INTERSECT"]),uf=u(["JOIN","{LEFT | RIGHT | FULL} [OUTER] JOIN","{INNER | CROSS} JOIN","{CROSS | OUTER} APPLY"]),pf=u(["ON {UPDATE | DELETE} [SET NULL | SET DEFAULT]","{ROWS | RANGE} BETWEEN"]),ff={name:"transactsql",tokenizerOptions:{reservedSelect:Cf,reservedClauses:[...Lf,...qn,...ST],reservedSetOperations:cf,reservedJoins:uf,reservedPhrases:pf,reservedKeywords:lf,reservedDataTypes:_f,reservedFunctionNames:Nf,nestedBlockComments:!0,stringTypes:[{quote:"''-qq",prefixes:["N"]}],identTypes:['""-qq',"[]"],identChars:{first:"#@",rest:"#@$"},paramTypes:{named:["@"],quoted:["@"]},operators:["%","&","|","^","~","!<","!>","+=","-=","*=","/=","%=","|=","&=","^=","::",":"],propertyAccessOperators:[".."]},formatOptions:{alwaysDenseOperators:["::"],onelineClauses:[...qn,...ST],tabularOnelineClauses:ST}},Df=["ADD","ALL","ALTER","ANALYZE","AND","AS","ASC","ASENSITIVE","BEFORE","BETWEEN","_BINARY","BOTH","BY","CALL","CASCADE","CASE","CHANGE","CHECK","COLLATE","COLUMN","CONDITION","CONSTRAINT","CONTINUE","CONVERT","CREATE","CROSS","CURRENT_DATE","CURRENT_TIME","CURRENT_TIMESTAMP","CURRENT_USER","CURSOR","DATABASE","DATABASES","DAY_HOUR","DAY_MICROSECOND","DAY_MINUTE","DAY_SECOND","DECLARE","DEFAULT","DELAYED","DELETE","DESC","DESCRIBE","DETERMINISTIC","DISTINCT","DISTINCTROW","DIV","DROP","DUAL","EACH","ELSE","ELSEIF","ENCLOSED","ESCAPED","EXCEPT","EXISTS","EXIT","EXPLAIN","EXTRA_JOIN","FALSE","FETCH","FOR","FORCE","FORCE_COMPILED_MODE","FORCE_INTERPRETER_MODE","FOREIGN","FROM","FULL","FULLTEXT","GRANT","GROUP","HAVING","HEARTBEAT_NO_LOGGING","HIGH_PRIORITY","HOUR_MICROSECOND","HOUR_MINUTE","HOUR_SECOND","IF","IGNORE","IN","INDEX","INFILE","INNER","INOUT","INSENSITIVE","INSERT","IN","_INTERNAL_DYNAMIC_TYPECAST","INTERSECT","INTERVAL","INTO","ITERATE","JOIN","KEY","KEYS","KILL","LEADING","LEAVE","LEFT","LIKE","LIMIT","LINES","LOAD","LOCALTIME","LOCALTIMESTAMP","LOCK","LOOP","LOW_PRIORITY","MATCH","MAXVALUE","MINUS","MINUTE_MICROSECOND","MINUTE_SECOND","MOD","MODIFIES","NATURAL","NO_QUERY_REWRITE","NOT","NO_WRITE_TO_BINLOG","NO_QUERY_REWRITE","NULL","ON","OPTIMIZE","OPTION","OPTIONALLY","OR","ORDER","OUT","OUTER","OUTFILE","OVER","PRIMARY","PROCEDURE","PURGE","RANGE","READ","READS","REFERENCES","REGEXP","RELEASE","RENAME","REPEAT","REPLACE","REQUIRE","RESTRICT","RETURN","REVOKE","RIGHT","RIGHT_ANTI_JOIN","RIGHT_SEMI_JOIN","RIGHT_STRAIGHT_JOIN","RLIKE","SCHEMA","SCHEMAS","SECOND_MICROSECOND","SELECT","SEMI_JOIN","SENSITIVE","SEPARATOR","SET","SHOW","SIGNAL","SPATIAL","SPECIFIC","SQL","SQL_BIG_RESULT","SQL_BUFFER_RESULT","SQL_CACHE","SQL_CALC_FOUND_ROWS","SQLEXCEPTION","SQL_NO_CACHE","SQL_NO_LOGGING","SQL_SMALL_RESULT","SQLSTATE","SQLWARNING","STRAIGHT_JOIN","TABLE","TERMINATED","THEN","TO","TRAILING","TRIGGER","TRUE","UNBOUNDED","UNDO","UNION","UNIQUE","UNLOCK","UPDATE","USAGE","USE","USING","UTC_DATE","UTC_TIME","UTC_TIMESTAMP","_UTF8","VALUES","WHEN","WHERE","WHILE","WINDOW","WITH","WITHIN","WRITE","XOR","YEAR_MONTH","ZEROFILL"],Pf=["BIGINT","BINARY","BIT","BLOB","CHAR","CHARACTER","DATETIME","DEC","DECIMAL","DOUBLE PRECISION","DOUBLE","ENUM","FIXED","FLOAT","FLOAT4","FLOAT8","INT","INT1","INT2","INT3","INT4","INT8","INTEGER","LONG","LONGBLOB","LONGTEXT","MEDIUMBLOB","MEDIUMINT","MEDIUMTEXT","MIDDLEINT","NATIONAL CHAR","NATIONAL VARCHAR","NUMERIC","PRECISION","REAL","SMALLINT","TEXT","TIME","TIMESTAMP","TINYBLOB","TINYINT","TINYTEXT","UNSIGNED","VARBINARY","VARCHAR","VARCHARACTER","YEAR"],df=["ABS","ACOS","ADDDATE","ADDTIME","AES_DECRYPT","AES_ENCRYPT","ANY_VALUE","APPROX_COUNT_DISTINCT","APPROX_COUNT_DISTINCT_ACCUMULATE","APPROX_COUNT_DISTINCT_COMBINE","APPROX_COUNT_DISTINCT_ESTIMATE","APPROX_GEOGRAPHY_INTERSECTS","APPROX_PERCENTILE","ASCII","ASIN","ATAN","ATAN2","AVG","BIN","BINARY","BIT_AND","BIT_COUNT","BIT_OR","BIT_XOR","CAST","CEIL","CEILING","CHAR","CHARACTER_LENGTH","CHAR_LENGTH","CHARSET","COALESCE","COERCIBILITY","COLLATION","COLLECT","CONCAT","CONCAT_WS","CONNECTION_ID","CONV","CONVERT","CONVERT_TZ","COS","COT","COUNT","CUME_DIST","CURDATE","CURRENT_DATE","CURRENT_ROLE","CURRENT_TIME","CURRENT_TIMESTAMP","CURRENT_USER","CURTIME","DATABASE","DATE","DATE_ADD","DATEDIFF","DATE_FORMAT","DATE_SUB","DATE_TRUNC","DAY","DAYNAME","DAYOFMONTH","DAYOFWEEK","DAYOFYEAR","DECODE","DEFAULT","DEGREES","DENSE_RANK","DIV","DOT_PRODUCT","ELT","EUCLIDEAN_DISTANCE","EXP","EXTRACT","FIELD","FIRST","FIRST_VALUE","FLOOR","FORMAT","FOUND_ROWS","FROM_BASE64","FROM_DAYS","FROM_UNIXTIME","GEOGRAPHY_AREA","GEOGRAPHY_CONTAINS","GEOGRAPHY_DISTANCE","GEOGRAPHY_INTERSECTS","GEOGRAPHY_LATITUDE","GEOGRAPHY_LENGTH","GEOGRAPHY_LONGITUDE","GEOGRAPHY_POINT","GEOGRAPHY_WITHIN_DISTANCE","GEOMETRY_AREA","GEOMETRY_CONTAINS","GEOMETRY_DISTANCE","GEOMETRY_FILTER","GEOMETRY_INTERSECTS","GEOMETRY_LENGTH","GEOMETRY_POINT","GEOMETRY_WITHIN_DISTANCE","GEOMETRY_X","GEOMETRY_Y","GREATEST","GROUPING","GROUP_CONCAT","HEX","HIGHLIGHT","HOUR","ICU_VERSION","IF","IFNULL","INET_ATON","INET_NTOA","INET6_ATON","INET6_NTOA","INITCAP","INSERT","INSTR","INTERVAL","IS","IS NULL","JSON_AGG","JSON_ARRAY_CONTAINS_DOUBLE","JSON_ARRAY_CONTAINS_JSON","JSON_ARRAY_CONTAINS_STRING","JSON_ARRAY_PUSH_DOUBLE","JSON_ARRAY_PUSH_JSON","JSON_ARRAY_PUSH_STRING","JSON_DELETE_KEY","JSON_EXTRACT_DOUBLE","JSON_EXTRACT_JSON","JSON_EXTRACT_STRING","JSON_EXTRACT_BIGINT","JSON_GET_TYPE","JSON_LENGTH","JSON_SET_DOUBLE","JSON_SET_JSON","JSON_SET_STRING","JSON_SPLICE_DOUBLE","JSON_SPLICE_JSON","JSON_SPLICE_STRING","LAG","LAST_DAY","LAST_VALUE","LCASE","LEAD","LEAST","LEFT","LENGTH","LIKE","LN","LOCALTIME","LOCALTIMESTAMP","LOCATE","LOG","LOG10","LOG2","LPAD","LTRIM","MATCH","MAX","MD5","MEDIAN","MICROSECOND","MIN","MINUTE","MOD","MONTH","MONTHNAME","MONTHS_BETWEEN","NOT","NOW","NTH_VALUE","NTILE","NULLIF","OCTET_LENGTH","PERCENT_RANK","PERCENTILE_CONT","PERCENTILE_DISC","PI","PIVOT","POSITION","POW","POWER","QUARTER","QUOTE","RADIANS","RAND","RANK","REGEXP","REPEAT","REPLACE","REVERSE","RIGHT","RLIKE","ROUND","ROW_COUNT","ROW_NUMBER","RPAD","RTRIM","SCALAR","SCHEMA","SEC_TO_TIME","SHA1","SHA2","SIGMOID","SIGN","SIN","SLEEP","SPLIT","SOUNDEX","SOUNDS LIKE","SOURCE_POS_WAIT","SPACE","SQRT","STDDEV","STDDEV_POP","STDDEV_SAMP","STR_TO_DATE","SUBDATE","SUBSTR","SUBSTRING","SUBSTRING_INDEX","SUM","SYS_GUID","TAN","TIME","TIMEDIFF","TIME_BUCKET","TIME_FORMAT","TIMESTAMP","TIMESTAMPADD","TIMESTAMPDIFF","TIME_TO_SEC","TO_BASE64","TO_CHAR","TO_DAYS","TO_JSON","TO_NUMBER","TO_SECONDS","TO_TIMESTAMP","TRIM","TRUNC","TRUNCATE","UCASE","UNHEX","UNIX_TIMESTAMP","UPDATEXML","UPPER","UTC_DATE","UTC_TIME","UTC_TIMESTAMP","UUID","VALUES","VARIANCE","VAR_POP","VAR_SAMP","VECTOR_SUB","VERSION","WEEK","WEEKDAY","WEEKOFYEAR","YEAR"],Mf=u(["SELECT [ALL | DISTINCT | DISTINCTROW]"]),Uf=u(["WITH","FROM","WHERE","GROUP BY","HAVING","PARTITION BY","ORDER BY","LIMIT","OFFSET","INSERT [IGNORE] [INTO]","VALUES","REPLACE [INTO]","ON DUPLICATE KEY UPDATE","SET","CREATE [OR REPLACE] [TEMPORARY] PROCEDURE [IF NOT EXISTS]","CREATE [OR REPLACE] [EXTERNAL] FUNCTION"]),jn=u(["CREATE [ROWSTORE] [REFERENCE | TEMPORARY | GLOBAL TEMPORARY] TABLE [IF NOT EXISTS]"]),OT=u(["CREATE VIEW","UPDATE","DELETE [FROM]","DROP [TEMPORARY] TABLE [IF EXISTS]","ALTER [ONLINE] TABLE","ADD [COLUMN]","ADD [UNIQUE] {INDEX | KEY}","DROP [COLUMN]","MODIFY [COLUMN]","CHANGE","RENAME [TO | AS]","TRUNCATE [TABLE]","ADD AGGREGATOR","ADD LEAF","AGGREGATOR SET AS MASTER","ALTER DATABASE","ALTER PIPELINE","ALTER RESOURCE POOL","ALTER USER","ALTER VIEW","ANALYZE TABLE","ATTACH DATABASE","ATTACH LEAF","ATTACH LEAF ALL","BACKUP DATABASE","BINLOG","BOOTSTRAP AGGREGATOR","CACHE INDEX","CALL","CHANGE","CHANGE MASTER TO","CHANGE REPLICATION FILTER","CHANGE REPLICATION SOURCE TO","CHECK BLOB CHECKSUM","CHECK TABLE","CHECKSUM TABLE","CLEAR ORPHAN DATABASES","CLONE","COMMIT","CREATE DATABASE","CREATE GROUP","CREATE INDEX","CREATE LINK","CREATE MILESTONE","CREATE PIPELINE","CREATE RESOURCE POOL","CREATE ROLE","CREATE USER","DEALLOCATE PREPARE","DESCRIBE","DETACH DATABASE","DETACH PIPELINE","DROP DATABASE","DROP FUNCTION","DROP INDEX","DROP LINK","DROP PIPELINE","DROP PROCEDURE","DROP RESOURCE POOL","DROP ROLE","DROP USER","DROP VIEW","EXECUTE","EXPLAIN","FLUSH","FORCE","GRANT","HANDLER","HELP","KILL CONNECTION","KILLALL QUERIES","LOAD DATA","LOAD INDEX INTO CACHE","LOAD XML","LOCK INSTANCE FOR BACKUP","LOCK TABLES","MASTER_POS_WAIT","OPTIMIZE TABLE","PREPARE","PURGE BINARY LOGS","REBALANCE PARTITIONS","RELEASE SAVEPOINT","REMOVE AGGREGATOR","REMOVE LEAF","REPAIR TABLE","REPLACE","REPLICATE DATABASE","RESET","RESET MASTER","RESET PERSIST","RESET REPLICA","RESET SLAVE","RESTART","RESTORE DATABASE","RESTORE REDUNDANCY","REVOKE","ROLLBACK","ROLLBACK TO SAVEPOINT","SAVEPOINT","SET CHARACTER SET","SET DEFAULT ROLE","SET NAMES","SET PASSWORD","SET RESOURCE GROUP","SET ROLE","SET TRANSACTION","SHOW","SHOW CHARACTER SET","SHOW COLLATION","SHOW COLUMNS","SHOW CREATE DATABASE","SHOW CREATE FUNCTION","SHOW CREATE PIPELINE","SHOW CREATE PROCEDURE","SHOW CREATE TABLE","SHOW CREATE USER","SHOW CREATE VIEW","SHOW DATABASES","SHOW ENGINE","SHOW ENGINES","SHOW ERRORS","SHOW FUNCTION CODE","SHOW FUNCTION STATUS","SHOW GRANTS","SHOW INDEX","SHOW MASTER STATUS","SHOW OPEN TABLES","SHOW PLUGINS","SHOW PRIVILEGES","SHOW PROCEDURE CODE","SHOW PROCEDURE STATUS","SHOW PROCESSLIST","SHOW PROFILE","SHOW PROFILES","SHOW RELAYLOG EVENTS","SHOW REPLICA STATUS","SHOW REPLICAS","SHOW SLAVE","SHOW SLAVE HOSTS","SHOW STATUS","SHOW TABLE STATUS","SHOW TABLES","SHOW VARIABLES","SHOW WARNINGS","SHUTDOWN","SNAPSHOT DATABASE","SOURCE_POS_WAIT","START GROUP_REPLICATION","START PIPELINE","START REPLICA","START SLAVE","START TRANSACTION","STOP GROUP_REPLICATION","STOP PIPELINE","STOP REPLICA","STOP REPLICATING","STOP SLAVE","TEST PIPELINE","UNLOCK INSTANCE","UNLOCK TABLES","USE","XA","ITERATE","LEAVE","LOOP","REPEAT","RETURN","WHILE"]),hf=u(["UNION [ALL | DISTINCT]","EXCEPT","INTERSECT","MINUS"]),Gf=u(["JOIN","{LEFT | RIGHT | FULL} [OUTER] JOIN","{INNER | CROSS} JOIN","NATURAL {LEFT | RIGHT} [OUTER] JOIN","STRAIGHT_JOIN"]),gf=u(["ON DELETE","ON UPDATE","CHARACTER SET","{ROWS | RANGE} BETWEEN","IDENTIFIED BY"]),mf={name:"singlestoredb",tokenizerOptions:{reservedSelect:Mf,reservedClauses:[...Uf,...jn,...OT],reservedSetOperations:hf,reservedJoins:Gf,reservedPhrases:gf,reservedKeywords:Df,reservedDataTypes:Pf,reservedFunctionNames:df,stringTypes:['""-qq-bs',"''-qq-bs",{quote:"''-raw",prefixes:["B","X"],requirePrefix:!0}],identTypes:["``"],identChars:{first:"$",rest:"$",allowFirstCharNumber:!0},variableTypes:[{regex:"@@?[A-Za-z0-9_$]+"},{quote:"``",prefixes:["@"],requirePrefix:!0}],lineCommentTypes:["--","#"],operators:[":=","&","|","^","~","<<",">>","<=>","&&","||","::","::$","::%",":>","!:>","*.*"],postProcess:vs},formatOptions:{alwaysDenseOperators:["::","::$","::%"],onelineClauses:[...jn,...OT],tabularOnelineClauses:OT}},Hf=["ABS","ACOS","ACOSH","ADD_MONTHS","ALL_USER_NAMES","ANY_VALUE","APPROX_COUNT_DISTINCT","APPROX_PERCENTILE","APPROX_PERCENTILE_ACCUMULATE","APPROX_PERCENTILE_COMBINE","APPROX_PERCENTILE_ESTIMATE","APPROX_TOP_K","APPROX_TOP_K_ACCUMULATE","APPROX_TOP_K_COMBINE","APPROX_TOP_K_ESTIMATE","APPROXIMATE_JACCARD_INDEX","APPROXIMATE_SIMILARITY","ARRAY_AGG","ARRAY_APPEND","ARRAY_CAT","ARRAY_COMPACT","ARRAY_CONSTRUCT","ARRAY_CONSTRUCT_COMPACT","ARRAY_CONTAINS","ARRAY_INSERT","ARRAY_INTERSECTION","ARRAY_POSITION","ARRAY_PREPEND","ARRAY_SIZE","ARRAY_SLICE","ARRAY_TO_STRING","ARRAY_UNION_AGG","ARRAY_UNIQUE_AGG","ARRAYS_OVERLAP","AS_ARRAY","AS_BINARY","AS_BOOLEAN","AS_CHAR","AS_VARCHAR","AS_DATE","AS_DECIMAL","AS_NUMBER","AS_DOUBLE","AS_REAL","AS_INTEGER","AS_OBJECT","AS_TIME","AS_TIMESTAMP_LTZ","AS_TIMESTAMP_NTZ","AS_TIMESTAMP_TZ","ASCII","ASIN","ASINH","ATAN","ATAN2","ATANH","AUTO_REFRESH_REGISTRATION_HISTORY","AUTOMATIC_CLUSTERING_HISTORY","AVG","BASE64_DECODE_BINARY","BASE64_DECODE_STRING","BASE64_ENCODE","BIT_LENGTH","BITAND","BITAND_AGG","BITMAP_BIT_POSITION","BITMAP_BUCKET_NUMBER","BITMAP_CONSTRUCT_AGG","BITMAP_COUNT","BITMAP_OR_AGG","BITNOT","BITOR","BITOR_AGG","BITSHIFTLEFT","BITSHIFTRIGHT","BITXOR","BITXOR_AGG","BOOLAND","BOOLAND_AGG","BOOLNOT","BOOLOR","BOOLOR_AGG","BOOLXOR","BOOLXOR_AGG","BUILD_SCOPED_FILE_URL","BUILD_STAGE_FILE_URL","CASE","CAST","CBRT","CEIL","CHARINDEX","CHECK_JSON","CHECK_XML","CHR","CHAR","COALESCE","COLLATE","COLLATION","COMPLETE_TASK_GRAPHS","COMPRESS","CONCAT","CONCAT_WS","CONDITIONAL_CHANGE_EVENT","CONDITIONAL_TRUE_EVENT","CONTAINS","CONVERT_TIMEZONE","COPY_HISTORY","CORR","COS","COSH","COT","COUNT","COUNT_IF","COVAR_POP","COVAR_SAMP","CUME_DIST","CURRENT_ACCOUNT","CURRENT_AVAILABLE_ROLES","CURRENT_CLIENT","CURRENT_DATABASE","CURRENT_DATE","CURRENT_IP_ADDRESS","CURRENT_REGION","CURRENT_ROLE","CURRENT_SCHEMA","CURRENT_SCHEMAS","CURRENT_SECONDARY_ROLES","CURRENT_SESSION","CURRENT_STATEMENT","CURRENT_TASK_GRAPHS","CURRENT_TIME","CURRENT_TIMESTAMP","CURRENT_TRANSACTION","CURRENT_USER","CURRENT_VERSION","CURRENT_WAREHOUSE","DATA_TRANSFER_HISTORY","DATABASE_REFRESH_HISTORY","DATABASE_REFRESH_PROGRESS","DATABASE_REFRESH_PROGRESS_BY_JOB","DATABASE_STORAGE_USAGE_HISTORY","DATE_FROM_PARTS","DATE_PART","DATE_TRUNC","DATEADD","DATEDIFF","DAYNAME","DECODE","DECOMPRESS_BINARY","DECOMPRESS_STRING","DECRYPT","DECRYPT_RAW","DEGREES","DENSE_RANK","DIV0","EDITDISTANCE","ENCRYPT","ENCRYPT_RAW","ENDSWITH","EQUAL_NULL","EXP","EXPLAIN_JSON","EXTERNAL_FUNCTIONS_HISTORY","EXTERNAL_TABLE_FILES","EXTERNAL_TABLE_FILE_REGISTRATION_HISTORY","EXTRACT","EXTRACT_SEMANTIC_CATEGORIES","FACTORIAL","FILTER","FIRST_VALUE","FLATTEN","FLOOR","GENERATE_COLUMN_DESCRIPTION","GENERATOR","GET","GET_ABSOLUTE_PATH","GET_DDL","GET_IGNORE_CASE","GET_OBJECT_REFERENCES","GET_PATH","GET_PRESIGNED_URL","GET_RELATIVE_PATH","GET_STAGE_LOCATION","GETBIT","GREATEST","GREATEST_IGNORE_NULLS","GROUPING","GROUPING_ID","HASH","HASH_AGG","HAVERSINE","HEX_DECODE_BINARY","HEX_DECODE_STRING","HEX_ENCODE","HLL","HLL_ACCUMULATE","HLL_COMBINE","HLL_ESTIMATE","HLL_EXPORT","HLL_IMPORT","HOUR","MINUTE","SECOND","IFF","IFNULL","ILIKE","ILIKE ANY","INFER_SCHEMA","INITCAP","INSERT","INVOKER_ROLE","INVOKER_SHARE","IS_ARRAY","IS_BINARY","IS_BOOLEAN","IS_CHAR","IS_VARCHAR","IS_DATE","IS_DATE_VALUE","IS_DECIMAL","IS_DOUBLE","IS_REAL","IS_GRANTED_TO_INVOKER_ROLE","IS_INTEGER","IS_NULL_VALUE","IS_OBJECT","IS_ROLE_IN_SESSION","IS_TIME","IS_TIMESTAMP_LTZ","IS_TIMESTAMP_NTZ","IS_TIMESTAMP_TZ","JAROWINKLER_SIMILARITY","JSON_EXTRACT_PATH_TEXT","KURTOSIS","LAG","LAST_DAY","LAST_QUERY_ID","LAST_TRANSACTION","LAST_VALUE","LEAD","LEAST","LEFT","LENGTH","LEN","LIKE","LIKE ALL","LIKE ANY","LISTAGG","LN","LOCALTIME","LOCALTIMESTAMP","LOG","LOGIN_HISTORY","LOGIN_HISTORY_BY_USER","LOWER","LPAD","LTRIM","MATERIALIZED_VIEW_REFRESH_HISTORY","MD5","MD5_HEX","MD5_BINARY","MD5_NUMBER — Obsoleted","MD5_NUMBER_LOWER64","MD5_NUMBER_UPPER64","MEDIAN","MIN","MAX","MINHASH","MINHASH_COMBINE","MOD","MODE","MONTHNAME","MONTHS_BETWEEN","NEXT_DAY","NORMAL","NTH_VALUE","NTILE","NULLIF","NULLIFZERO","NVL","NVL2","OBJECT_AGG","OBJECT_CONSTRUCT","OBJECT_CONSTRUCT_KEEP_NULL","OBJECT_DELETE","OBJECT_INSERT","OBJECT_KEYS","OBJECT_PICK","OCTET_LENGTH","PARSE_IP","PARSE_JSON","PARSE_URL","PARSE_XML","PERCENT_RANK","PERCENTILE_CONT","PERCENTILE_DISC","PI","PIPE_USAGE_HISTORY","POLICY_CONTEXT","POLICY_REFERENCES","POSITION","POW","POWER","PREVIOUS_DAY","QUERY_ACCELERATION_HISTORY","QUERY_HISTORY","QUERY_HISTORY_BY_SESSION","QUERY_HISTORY_BY_USER","QUERY_HISTORY_BY_WAREHOUSE","RADIANS","RANDOM","RANDSTR","RANK","RATIO_TO_REPORT","REGEXP","REGEXP_COUNT","REGEXP_INSTR","REGEXP_LIKE","REGEXP_REPLACE","REGEXP_SUBSTR","REGEXP_SUBSTR_ALL","REGR_AVGX","REGR_AVGY","REGR_COUNT","REGR_INTERCEPT","REGR_R2","REGR_SLOPE","REGR_SXX","REGR_SXY","REGR_SYY","REGR_VALX","REGR_VALY","REPEAT","REPLACE","REPLICATION_GROUP_REFRESH_HISTORY","REPLICATION_GROUP_REFRESH_PROGRESS","REPLICATION_GROUP_REFRESH_PROGRESS_BY_JOB","REPLICATION_GROUP_USAGE_HISTORY","REPLICATION_USAGE_HISTORY","REST_EVENT_HISTORY","RESULT_SCAN","REVERSE","RIGHT","RLIKE","ROUND","ROW_NUMBER","RPAD","RTRIM","RTRIMMED_LENGTH","SEARCH_OPTIMIZATION_HISTORY","SEQ1","SEQ2","SEQ4","SEQ8","SERVERLESS_TASK_HISTORY","SHA1","SHA1_HEX","SHA1_BINARY","SHA2","SHA2_HEX","SHA2_BINARY","SIGN","SIN","SINH","SKEW","SOUNDEX","SPACE","SPLIT","SPLIT_PART","SPLIT_TO_TABLE","SQRT","SQUARE","ST_AREA","ST_ASEWKB","ST_ASEWKT","ST_ASGEOJSON","ST_ASWKB","ST_ASBINARY","ST_ASWKT","ST_ASTEXT","ST_AZIMUTH","ST_CENTROID","ST_COLLECT","ST_CONTAINS","ST_COVEREDBY","ST_COVERS","ST_DIFFERENCE","ST_DIMENSION","ST_DISJOINT","ST_DISTANCE","ST_DWITHIN","ST_ENDPOINT","ST_ENVELOPE","ST_GEOGFROMGEOHASH","ST_GEOGPOINTFROMGEOHASH","ST_GEOGRAPHYFROMWKB","ST_GEOGRAPHYFROMWKT","ST_GEOHASH","ST_GEOMETRYFROMWKB","ST_GEOMETRYFROMWKT","ST_HAUSDORFFDISTANCE","ST_INTERSECTION","ST_INTERSECTS","ST_LENGTH","ST_MAKEGEOMPOINT","ST_GEOM_POINT","ST_MAKELINE","ST_MAKEPOINT","ST_POINT","ST_MAKEPOLYGON","ST_POLYGON","ST_NPOINTS","ST_NUMPOINTS","ST_PERIMETER","ST_POINTN","ST_SETSRID","ST_SIMPLIFY","ST_SRID","ST_STARTPOINT","ST_SYMDIFFERENCE","ST_UNION","ST_WITHIN","ST_X","ST_XMAX","ST_XMIN","ST_Y","ST_YMAX","ST_YMIN","STAGE_DIRECTORY_FILE_REGISTRATION_HISTORY","STAGE_STORAGE_USAGE_HISTORY","STARTSWITH","STDDEV","STDDEV_POP","STDDEV_SAMP","STRIP_NULL_VALUE","STRTOK","STRTOK_SPLIT_TO_TABLE","STRTOK_TO_ARRAY","SUBSTR","SUBSTRING","SUM","SYSDATE","SYSTEM$ABORT_SESSION","SYSTEM$ABORT_TRANSACTION","SYSTEM$AUTHORIZE_PRIVATELINK","SYSTEM$AUTHORIZE_STAGE_PRIVATELINK_ACCESS","SYSTEM$BEHAVIOR_CHANGE_BUNDLE_STATUS","SYSTEM$CANCEL_ALL_QUERIES","SYSTEM$CANCEL_QUERY","SYSTEM$CLUSTERING_DEPTH","SYSTEM$CLUSTERING_INFORMATION","SYSTEM$CLUSTERING_RATIO ","SYSTEM$CURRENT_USER_TASK_NAME","SYSTEM$DATABASE_REFRESH_HISTORY ","SYSTEM$DATABASE_REFRESH_PROGRESS","SYSTEM$DATABASE_REFRESH_PROGRESS_BY_JOB ","SYSTEM$DISABLE_BEHAVIOR_CHANGE_BUNDLE","SYSTEM$DISABLE_DATABASE_REPLICATION","SYSTEM$ENABLE_BEHAVIOR_CHANGE_BUNDLE","SYSTEM$ESTIMATE_QUERY_ACCELERATION","SYSTEM$ESTIMATE_SEARCH_OPTIMIZATION_COSTS","SYSTEM$EXPLAIN_JSON_TO_TEXT","SYSTEM$EXPLAIN_PLAN_JSON","SYSTEM$EXTERNAL_TABLE_PIPE_STATUS","SYSTEM$GENERATE_SAML_CSR","SYSTEM$GENERATE_SCIM_ACCESS_TOKEN","SYSTEM$GET_AWS_SNS_IAM_POLICY","SYSTEM$GET_PREDECESSOR_RETURN_VALUE","SYSTEM$GET_PRIVATELINK","SYSTEM$GET_PRIVATELINK_AUTHORIZED_ENDPOINTS","SYSTEM$GET_PRIVATELINK_CONFIG","SYSTEM$GET_SNOWFLAKE_PLATFORM_INFO","SYSTEM$GET_TAG","SYSTEM$GET_TAG_ALLOWED_VALUES","SYSTEM$GET_TAG_ON_CURRENT_COLUMN","SYSTEM$GET_TAG_ON_CURRENT_TABLE","SYSTEM$GLOBAL_ACCOUNT_SET_PARAMETER","SYSTEM$LAST_CHANGE_COMMIT_TIME","SYSTEM$LINK_ACCOUNT_OBJECTS_BY_NAME","SYSTEM$MIGRATE_SAML_IDP_REGISTRATION","SYSTEM$PIPE_FORCE_RESUME","SYSTEM$PIPE_STATUS","SYSTEM$REVOKE_PRIVATELINK","SYSTEM$REVOKE_STAGE_PRIVATELINK_ACCESS","SYSTEM$SET_RETURN_VALUE","SYSTEM$SHOW_OAUTH_CLIENT_SECRETS","SYSTEM$STREAM_GET_TABLE_TIMESTAMP","SYSTEM$STREAM_HAS_DATA","SYSTEM$TASK_DEPENDENTS_ENABLE","SYSTEM$TYPEOF","SYSTEM$USER_TASK_CANCEL_ONGOING_EXECUTIONS","SYSTEM$VERIFY_EXTERNAL_OAUTH_TOKEN","SYSTEM$WAIT","SYSTEM$WHITELIST","SYSTEM$WHITELIST_PRIVATELINK","TAG_REFERENCES","TAG_REFERENCES_ALL_COLUMNS","TAG_REFERENCES_WITH_LINEAGE","TAN","TANH","TASK_DEPENDENTS","TASK_HISTORY","TIME_FROM_PARTS","TIME_SLICE","TIMEADD","TIMEDIFF","TIMESTAMP_FROM_PARTS","TIMESTAMPADD","TIMESTAMPDIFF","TO_ARRAY","TO_BINARY","TO_BOOLEAN","TO_CHAR","TO_VARCHAR","TO_DATE","DATE","TO_DECIMAL","TO_NUMBER","TO_NUMERIC","TO_DOUBLE","TO_GEOGRAPHY","TO_GEOMETRY","TO_JSON","TO_OBJECT","TO_TIME","TIME","TO_TIMESTAMP","TO_TIMESTAMP_LTZ","TO_TIMESTAMP_NTZ","TO_TIMESTAMP_TZ","TO_VARIANT","TO_XML","TRANSLATE","TRIM","TRUNCATE","TRUNC","TRUNC","TRY_BASE64_DECODE_BINARY","TRY_BASE64_DECODE_STRING","TRY_CAST","TRY_HEX_DECODE_BINARY","TRY_HEX_DECODE_STRING","TRY_PARSE_JSON","TRY_TO_BINARY","TRY_TO_BOOLEAN","TRY_TO_DATE","TRY_TO_DECIMAL","TRY_TO_NUMBER","TRY_TO_NUMERIC","TRY_TO_DOUBLE","TRY_TO_GEOGRAPHY","TRY_TO_GEOMETRY","TRY_TO_TIME","TRY_TO_TIMESTAMP","TRY_TO_TIMESTAMP_LTZ","TRY_TO_TIMESTAMP_NTZ","TRY_TO_TIMESTAMP_TZ","TYPEOF","UNICODE","UNIFORM","UPPER","UUID_STRING","VALIDATE","VALIDATE_PIPE_LOAD","VAR_POP","VAR_SAMP","VARIANCE","VARIANCE_SAMP","VARIANCE_POP","WAREHOUSE_LOAD_HISTORY","WAREHOUSE_METERING_HISTORY","WIDTH_BUCKET","XMLGET","YEAR","YEAROFWEEK","YEAROFWEEKISO","DAY","DAYOFMONTH","DAYOFWEEK","DAYOFWEEKISO","DAYOFYEAR","WEEK","WEEK","WEEKOFYEAR","WEEKISO","MONTH","QUARTER","ZEROIFNULL","ZIPF"],Bf=["ACCOUNT","ALL","ALTER","AND","ANY","AS","BETWEEN","BY","CASE","CAST","CHECK","COLUMN","CONNECT","CONNECTION","CONSTRAINT","CREATE","CROSS","CURRENT","CURRENT_DATE","CURRENT_TIME","CURRENT_TIMESTAMP","CURRENT_USER","DATABASE","DELETE","DISTINCT","DROP","ELSE","EXISTS","FALSE","FOLLOWING","FOR","FROM","FULL","GRANT","GROUP","GSCLUSTER","HAVING","ILIKE","IN","INCREMENT","INNER","INSERT","INTERSECT","INTO","IS","ISSUE","JOIN","LATERAL","LEFT","LIKE","LOCALTIME","LOCALTIMESTAMP","MINUS","NATURAL","NOT","NULL","OF","ON","OR","ORDER","ORGANIZATION","QUALIFY","REGEXP","REVOKE","RIGHT","RLIKE","ROW","ROWS","SAMPLE","SCHEMA","SELECT","SET","SOME","START","TABLE","TABLESAMPLE","THEN","TO","TRIGGER","TRUE","TRY_CAST","UNION","UNIQUE","UPDATE","USING","VALUES","VIEW","WHEN","WHENEVER","WHERE","WITH","COMMENT"],bf=["NUMBER","DECIMAL","NUMERIC","INT","INTEGER","BIGINT","SMALLINT","TINYINT","BYTEINT","FLOAT","FLOAT4","FLOAT8","DOUBLE","DOUBLE PRECISION","REAL","VARCHAR","CHAR","CHARACTER","STRING","TEXT","BINARY","VARBINARY","BOOLEAN","DATE","DATETIME","TIME","TIMESTAMP","TIMESTAMP_LTZ","TIMESTAMP_NTZ","TIMESTAMP","TIMESTAMP_TZ","VARIANT","OBJECT","ARRAY","GEOGRAPHY","GEOMETRY"],yf=u(["SELECT [ALL | DISTINCT]"]),vf=u(["WITH [RECURSIVE]","FROM","WHERE","GROUP BY","HAVING","PARTITION BY","ORDER BY","QUALIFY","LIMIT","OFFSET","FETCH [FIRST | NEXT]","INSERT [OVERWRITE] [ALL INTO | INTO | ALL | FIRST]","{THEN | ELSE} INTO","VALUES","SET","CLUSTER BY","[WITH] {MASKING POLICY | TAG | ROW ACCESS POLICY}","COPY GRANTS","USING TEMPLATE","MERGE INTO","WHEN MATCHED [AND]","THEN {UPDATE SET | DELETE}","WHEN NOT MATCHED THEN INSERT"]),Qn=u(["CREATE [OR REPLACE] [VOLATILE] TABLE [IF NOT EXISTS]","CREATE [OR REPLACE] [LOCAL | GLOBAL] {TEMP|TEMPORARY} TABLE [IF NOT EXISTS]"]),IT=u(["CREATE [OR REPLACE] [SECURE] [RECURSIVE] VIEW [IF NOT EXISTS]","UPDATE","DELETE FROM","DROP TABLE [IF EXISTS]","ALTER TABLE [IF EXISTS]","RENAME TO","SWAP WITH","[SUSPEND | RESUME] RECLUSTER","DROP CLUSTERING KEY","ADD [COLUMN]","RENAME COLUMN","{ALTER | MODIFY} [COLUMN]","DROP [COLUMN]","{ADD | ALTER | MODIFY | DROP} [CONSTRAINT]","RENAME CONSTRAINT","{ADD | DROP} SEARCH OPTIMIZATION","{SET | UNSET} TAG","{ADD | DROP} ROW ACCESS POLICY","DROP ALL ROW ACCESS POLICIES","{SET | DROP} DEFAULT","{SET | DROP} NOT NULL","SET DATA TYPE","UNSET COMMENT","{SET | UNSET} MASKING POLICY","TRUNCATE [TABLE] [IF EXISTS]","ALTER ACCOUNT","ALTER API INTEGRATION","ALTER CONNECTION","ALTER DATABASE","ALTER EXTERNAL TABLE","ALTER FAILOVER GROUP","ALTER FILE FORMAT","ALTER FUNCTION","ALTER INTEGRATION","ALTER MASKING POLICY","ALTER MATERIALIZED VIEW","ALTER NETWORK POLICY","ALTER NOTIFICATION INTEGRATION","ALTER PIPE","ALTER PROCEDURE","ALTER REPLICATION GROUP","ALTER RESOURCE MONITOR","ALTER ROLE","ALTER ROW ACCESS POLICY","ALTER SCHEMA","ALTER SECURITY INTEGRATION","ALTER SEQUENCE","ALTER SESSION","ALTER SESSION POLICY","ALTER SHARE","ALTER STAGE","ALTER STORAGE INTEGRATION","ALTER STREAM","ALTER TAG","ALTER TASK","ALTER USER","ALTER VIEW","ALTER WAREHOUSE","BEGIN","CALL","COMMIT","COPY INTO","CREATE ACCOUNT","CREATE API INTEGRATION","CREATE CONNECTION","CREATE DATABASE","CREATE EXTERNAL FUNCTION","CREATE EXTERNAL TABLE","CREATE FAILOVER GROUP","CREATE FILE FORMAT","CREATE FUNCTION","CREATE INTEGRATION","CREATE MANAGED ACCOUNT","CREATE MASKING POLICY","CREATE MATERIALIZED VIEW","CREATE NETWORK POLICY","CREATE NOTIFICATION INTEGRATION","CREATE PIPE","CREATE PROCEDURE","CREATE REPLICATION GROUP","CREATE RESOURCE MONITOR","CREATE ROLE","CREATE ROW ACCESS POLICY","CREATE SCHEMA","CREATE SECURITY INTEGRATION","CREATE SEQUENCE","CREATE SESSION POLICY","CREATE SHARE","CREATE STAGE","CREATE STORAGE INTEGRATION","CREATE STREAM","CREATE TAG","CREATE TASK","CREATE USER","CREATE WAREHOUSE","DELETE","DESCRIBE DATABASE","DESCRIBE EXTERNAL TABLE","DESCRIBE FILE FORMAT","DESCRIBE FUNCTION","DESCRIBE INTEGRATION","DESCRIBE MASKING POLICY","DESCRIBE MATERIALIZED VIEW","DESCRIBE NETWORK POLICY","DESCRIBE PIPE","DESCRIBE PROCEDURE","DESCRIBE RESULT","DESCRIBE ROW ACCESS POLICY","DESCRIBE SCHEMA","DESCRIBE SEQUENCE","DESCRIBE SESSION POLICY","DESCRIBE SHARE","DESCRIBE STAGE","DESCRIBE STREAM","DESCRIBE TABLE","DESCRIBE TASK","DESCRIBE TRANSACTION","DESCRIBE USER","DESCRIBE VIEW","DESCRIBE WAREHOUSE","DROP CONNECTION","DROP DATABASE","DROP EXTERNAL TABLE","DROP FAILOVER GROUP","DROP FILE FORMAT","DROP FUNCTION","DROP INTEGRATION","DROP MANAGED ACCOUNT","DROP MASKING POLICY","DROP MATERIALIZED VIEW","DROP NETWORK POLICY","DROP PIPE","DROP PROCEDURE","DROP REPLICATION GROUP","DROP RESOURCE MONITOR","DROP ROLE","DROP ROW ACCESS POLICY","DROP SCHEMA","DROP SEQUENCE","DROP SESSION POLICY","DROP SHARE","DROP STAGE","DROP STREAM","DROP TAG","DROP TASK","DROP USER","DROP VIEW","DROP WAREHOUSE","EXECUTE IMMEDIATE","EXECUTE TASK","EXPLAIN","GET","GRANT OWNERSHIP","GRANT ROLE","INSERT","LIST","MERGE","PUT","REMOVE","REVOKE ROLE","ROLLBACK","SHOW COLUMNS","SHOW CONNECTIONS","SHOW DATABASES","SHOW DATABASES IN FAILOVER GROUP","SHOW DATABASES IN REPLICATION GROUP","SHOW DELEGATED AUTHORIZATIONS","SHOW EXTERNAL FUNCTIONS","SHOW EXTERNAL TABLES","SHOW FAILOVER GROUPS","SHOW FILE FORMATS","SHOW FUNCTIONS","SHOW GLOBAL ACCOUNTS","SHOW GRANTS","SHOW INTEGRATIONS","SHOW LOCKS","SHOW MANAGED ACCOUNTS","SHOW MASKING POLICIES","SHOW MATERIALIZED VIEWS","SHOW NETWORK POLICIES","SHOW OBJECTS","SHOW ORGANIZATION ACCOUNTS","SHOW PARAMETERS","SHOW PIPES","SHOW PRIMARY KEYS","SHOW PROCEDURES","SHOW REGIONS","SHOW REPLICATION ACCOUNTS","SHOW REPLICATION DATABASES","SHOW REPLICATION GROUPS","SHOW RESOURCE MONITORS","SHOW ROLES","SHOW ROW ACCESS POLICIES","SHOW SCHEMAS","SHOW SEQUENCES","SHOW SESSION POLICIES","SHOW SHARES","SHOW SHARES IN FAILOVER GROUP","SHOW SHARES IN REPLICATION GROUP","SHOW STAGES","SHOW STREAMS","SHOW TABLES","SHOW TAGS","SHOW TASKS","SHOW TRANSACTIONS","SHOW USER FUNCTIONS","SHOW USERS","SHOW VARIABLES","SHOW VIEWS","SHOW WAREHOUSES","TRUNCATE MATERIALIZED VIEW","UNDROP DATABASE","UNDROP SCHEMA","UNDROP TABLE","UNDROP TAG","UNSET","USE DATABASE","USE ROLE","USE SCHEMA","USE SECONDARY ROLES","USE WAREHOUSE"]),Ff=u(["UNION [ALL]","MINUS","EXCEPT","INTERSECT"]),Yf=u(["[INNER] JOIN","[NATURAL] {LEFT | RIGHT | FULL} [OUTER] JOIN","{CROSS | NATURAL} JOIN"]),Vf=u(["{ROWS | RANGE} BETWEEN","ON {UPDATE | DELETE} [SET NULL | SET DEFAULT]"]),xf={name:"snowflake",tokenizerOptions:{reservedSelect:yf,reservedClauses:[...vf,...Qn,...IT],reservedSetOperations:Ff,reservedJoins:Yf,reservedPhrases:Vf,reservedKeywords:Bf,reservedDataTypes:bf,reservedFunctionNames:Hf,stringTypes:["$$","''-qq-bs"],identTypes:['""-qq'],variableTypes:[{regex:"[$][1-9]\\d*"},{regex:"[$][_a-zA-Z][_a-zA-Z0-9$]*"}],extraParens:["[]"],identChars:{rest:"$"},lineCommentTypes:["--","//"],operators:["%","::","||","=>",":=","->"],propertyAccessOperators:[":"]},formatOptions:{alwaysDenseOperators:["::"],onelineClauses:[...Qn,...IT],tabularOnelineClauses:IT}},UE=e=>e[e.length-1],_A=e=>e.sort((t,E)=>E.length-t.length||t.localeCompare(E)),zE=e=>e.replace(/\s+/gu," "),aT=e=>/\n/.test(e),Tt=e=>e.replace(/[.*+?^${}()|[\]\\]/gu,"\\$&"),Zn=/\s+/uy,$t=e=>new RegExp(`(?:${e})`,"uy"),wf=e=>e.split("").map(t=>/ /gu.test(t)?"\\s+":`[${t.toUpperCase()}${t.toLowerCase()}]`).join(""),Wf=e=>e+"(?:-"+e+")*",Xf=({prefixes:e,requirePrefix:t})=>`(?:${e.map(wf).join("|")}${t?"":"|"})`,Kf=e=>new RegExp(`(?:${e.map(Tt).join("|")}).*?(?=\r
18
35
  |\r|
19
- |$)`,"uy"),IR=(e,t=[])=>{const E=e==="open"?0:1,T=["()",...t].map(r=>r[E]);return $t(T.map(tt).join("|"))},mg=e=>$t(`${vA(e).map(tt).join("|")}`),Hg=({rest:e,dashes:t})=>e||t?`(?![${e||""}${t?"-":""}])`:"",_t=(e,t={})=>{if(e.length===0)return/^\b$/u;const E=Hg(t),T=vA(e).map(tt).join("|").replace(/ /gu,"\\s+");return new RegExp(`(?:${T})${E}\\b`,"iuy")},tr=(e,t)=>{if(!e.length)return;const E=e.map(tt).join("|");return $t(`(?:${E})(?:${t})`)},yg=()=>{const e={"<":">","[":"]","(":")","{":"}"},t="{left}(?:(?!{right}').)*?{right}",E=Object.entries(e).map(([n,R])=>t.replace(/{left}/g,tt(n)).replace(/{right}/g,tt(R))),T=tt(Object.keys(e).join(""));return`[Qq]'(?:${String.raw`(?<tag>[^\s${T}])(?:(?!\k<tag>').)*?\k<tag>`}|${E.join("|")})'`},NR={"``":"(?:`[^`]*`)+","[]":String.raw`(?:\[[^\]]*\])(?:\][^\]]*\])*`,'""-qq':String.raw`(?:"[^"]*")+`,'""-bs':String.raw`(?:"[^"\\]*(?:\\.[^"\\]*)*")`,'""-qq-bs':String.raw`(?:"[^"\\]*(?:\\.[^"\\]*)*")+`,'""-raw':String.raw`(?:"[^"]*")`,"''-qq":String.raw`(?:'[^']*')+`,"''-bs":String.raw`(?:'[^'\\]*(?:\\.[^'\\]*)*')`,"''-qq-bs":String.raw`(?:'[^'\\]*(?:\\.[^'\\]*)*')+`,"''-raw":String.raw`(?:'[^']*')`,$$:String.raw`(?<tag>\$\w*\$)[\s\S]*?\k<tag>`,"'''..'''":String.raw`'''[^\\]*?(?:\\.[^\\]*?)*?'''`,'""".."""':String.raw`"""[^\\]*?(?:\\.[^\\]*?)*?"""`,"{}":String.raw`(?:\{[^\}]*\})`,"q''":yg()},YA=e=>typeof e=="string"?NR[e]:"regex"in e?e.regex:gg(e)+NR[e.quote],bg=e=>$t(e.map(t=>"regex"in t?t.regex:YA(t)).join("|")),xA=e=>e.map(YA).join("|"),lR=e=>$t(xA(e)),Bg=(e={})=>$t(VA(e)),VA=({first:e,rest:t,dashes:E,allowFirstCharNumber:T}={})=>{const r="\\p{Alphabetic}\\p{Mark}_",s="\\p{Decimal_Number}",n=tt(e??""),R=tt(t??""),o=T?`[${r}${s}${n}][${r}${s}${R}]*`:`[${r}${n}][${r}${s}${R}]*`;return E?hg(o):o};function wA(e,t){const E=e.slice(0,t).split(/\n/);return{line:E.length,col:E[E.length-1].length+1}}var Fg=class{constructor(e,t){this.rules=e,this.dialectName=t,this.input="",this.index=0}tokenize(e){this.input=e,this.index=0;const t=[];let E;for(;this.index<this.input.length;){const T=this.getWhitespace();if(this.index<this.input.length){if(E=this.getNextToken(),!E)throw this.createParseError();t.push(xe(ye({},E),{precedingWhitespace:T}))}}return t}createParseError(){const e=this.input.slice(this.index,this.index+10),{line:t,col:E}=wA(this.input,this.index);return new Error(`Parse error: Unexpected "${e}" at line ${t} column ${E}.
36
+ |$)`,"uy"),zn=(e,t=[])=>{const E=e==="open"?0:1,s=["()",...t].map(T=>T[E]);return $t(s.map(Tt).join("|"))},eR=e=>$t(`${_A(e).map(Tt).join("|")}`),$f=({rest:e,dashes:t})=>e||t?`(?![${e||""}${t?"-":""}])`:"",Ct=(e,t={})=>{if(e.length===0)return/^\b$/u;const E=$f(t),s=_A(e).map(Tt).join("|").replace(/ /gu,"\\s+");return new RegExp(`(?:${s})${E}\\b`,"iuy")},NT=(e,t)=>{if(!e.length)return;const E=e.map(Tt).join("|");return $t(`(?:${E})(?:${t})`)},Jf=()=>{const e={"<":">","[":"]","(":")","{":"}"},t="{left}(?:(?!{right}').)*?{right}",E=Object.entries(e).map(([n,R])=>t.replace(/{left}/g,Tt(n)).replace(/{right}/g,Tt(R))),s=Tt(Object.keys(e).join(""));return`[Qq]'(?:${String.raw`(?<tag>[^\s${s}])(?:(?!\k<tag>').)*?\k<tag>`}|${E.join("|")})'`},tR={"``":"(?:`[^`]*`)+","[]":String.raw`(?:\[[^\]]*\])(?:\][^\]]*\])*`,'""-qq':String.raw`(?:"[^"]*")+`,'""-bs':String.raw`(?:"[^"\\]*(?:\\.[^"\\]*)*")`,'""-qq-bs':String.raw`(?:"[^"\\]*(?:\\.[^"\\]*)*")+`,'""-raw':String.raw`(?:"[^"]*")`,"''-qq":String.raw`(?:'[^']*')+`,"''-bs":String.raw`(?:'[^'\\]*(?:\\.[^'\\]*)*')`,"''-qq-bs":String.raw`(?:'[^'\\]*(?:\\.[^'\\]*)*')+`,"''-raw":String.raw`(?:'[^']*')`,$$:String.raw`(?<tag>\$\w*\$)[\s\S]*?\k<tag>`,"'''..'''":String.raw`'''[^\\]*?(?:\\.[^\\]*?)*?'''`,'""".."""':String.raw`"""[^\\]*?(?:\\.[^\\]*?)*?"""`,"{}":String.raw`(?:\{[^\}]*\})`,"q''":Jf()},CA=e=>typeof e=="string"?tR[e]:"regex"in e?e.regex:Xf(e)+tR[e.quote],kf=e=>$t(e.map(t=>"regex"in t?t.regex:CA(t)).join("|")),LA=e=>e.map(CA).join("|"),ER=e=>$t(LA(e)),qf=(e={})=>$t(cA(e)),cA=({first:e,rest:t,dashes:E,allowFirstCharNumber:s}={})=>{const T="\\p{Alphabetic}\\p{Mark}_",r="\\p{Decimal_Number}",n=Tt(e??""),R=Tt(t??""),o=s?`[${T}${r}${n}][${T}${r}${R}]*`:`[${T}${n}][${T}${r}${R}]*`;return E?Wf(o):o};function uA(e,t){const E=e.slice(0,t).split(/\n/);return{line:E.length,col:E[E.length-1].length+1}}var jf=class{constructor(e,t){this.rules=e,this.dialectName=t,this.input="",this.index=0}tokenize(e){this.input=e,this.index=0;const t=[];let E;for(;this.index<this.input.length;){const s=this.getWhitespace();if(this.index<this.input.length){if(E=this.getNextToken(),!E)throw this.createParseError();t.push(Ye(me({},E),{precedingWhitespace:s}))}}return t}createParseError(){const e=this.input.slice(this.index,this.index+10),{line:t,col:E}=uA(this.input,this.index);return new Error(`Parse error: Unexpected "${e}" at line ${t} column ${E}.
20
37
  ${this.dialectInfo()}`)}dialectInfo(){return this.dialectName==="sql"?`This likely happens because you're using the default "sql" dialect.
21
- If possible, please select a more specific dialect (like sqlite, postgresql, etc).`:`SQL dialect used: "${this.dialectName}".`}getWhitespace(){aR.lastIndex=this.index;const e=aR.exec(this.input);if(e)return this.index+=e[0].length,e[0]}getNextToken(){for(const e of this.rules){const t=this.match(e);if(t)return t}}match(e){e.regex.lastIndex=this.index;const t=e.regex.exec(this.input);if(t){const E=t[0],T={type:e.type,raw:E,text:e.text?e.text(E):E,start:this.index};return e.key&&(T.key=e.key(E)),this.index+=E.length,T}}},_R=/\/\*/uy,vg=/([^/*]|\*[^/]|\/[^*])+/uy,Yg=/\*\//uy,xg=class{constructor(){this.lastIndex=0}exec(e){let t="",E,T=0;if(E=this.matchSection(_R,e))t+=E,T++;else return null;for(;T>0;)if(E=this.matchSection(_R,e))t+=E,T++;else if(E=this.matchSection(Yg,e))t+=E,T--;else if(E=this.matchSection(vg,e))t+=E;else return null;return[t]}matchSection(e,t){e.lastIndex=this.lastIndex;const E=e.exec(t);return E&&(this.lastIndex+=E[0].length),E?E[0]:null}},Vg=class{constructor(e,t){this.cfg=e,this.dialectName=t,this.rulesBeforeParams=this.buildRulesBeforeParams(e),this.rulesAfterParams=this.buildRulesAfterParams(e)}tokenize(e,t){const E=[...this.rulesBeforeParams,...this.buildParamRules(this.cfg,t),...this.rulesAfterParams],T=new Fg(E,this.dialectName).tokenize(e);return this.cfg.postProcess?this.cfg.postProcess(T):T}buildRulesBeforeParams(e){var t,E;return this.validRules([{type:"BLOCK_COMMENT",regex:e.nestedBlockComments?new xg:/(\/\*[^]*?\*\/)/uy},{type:"LINE_COMMENT",regex:Gg((t=e.lineCommentTypes)!=null?t:["--"])},{type:"QUOTED_IDENTIFIER",regex:lR(e.identTypes)},{type:"NUMBER",regex:/(?:0x[0-9a-fA-F]+|0b[01]+|(?:-\s*)?[0-9]+(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+(?:\.[0-9]+)?)?)(?![\w\p{Alphabetic}])/uy},{type:"RESERVED_PHRASE",regex:_t((E=e.reservedPhrases)!=null?E:[],e.identChars),text:he},{type:"CASE",regex:/CASE\b/iuy,text:he},{type:"END",regex:/END\b/iuy,text:he},{type:"BETWEEN",regex:/BETWEEN\b/iuy,text:he},{type:"LIMIT",regex:e.reservedClauses.includes("LIMIT")?/LIMIT\b/iuy:void 0,text:he},{type:"RESERVED_CLAUSE",regex:_t(e.reservedClauses,e.identChars),text:he},{type:"RESERVED_SELECT",regex:_t(e.reservedSelect,e.identChars),text:he},{type:"RESERVED_SET_OPERATION",regex:_t(e.reservedSetOperations,e.identChars),text:he},{type:"WHEN",regex:/WHEN\b/iuy,text:he},{type:"ELSE",regex:/ELSE\b/iuy,text:he},{type:"THEN",regex:/THEN\b/iuy,text:he},{type:"RESERVED_JOIN",regex:_t(e.reservedJoins,e.identChars),text:he},{type:"AND",regex:/AND\b/iuy,text:he},{type:"OR",regex:/OR\b/iuy,text:he},{type:"XOR",regex:e.supportsXor?/XOR\b/iuy:void 0,text:he},{type:"RESERVED_FUNCTION_NAME",regex:_t(e.reservedFunctionNames,e.identChars),text:he},{type:"RESERVED_DATA_TYPE",regex:_t(e.reservedDataTypes,e.identChars),text:he},{type:"RESERVED_KEYWORD",regex:_t(e.reservedKeywords,e.identChars),text:he}])}buildRulesAfterParams(e){var t;return this.validRules([{type:"VARIABLE",regex:e.variableTypes?bg(e.variableTypes):void 0},{type:"STRING",regex:lR(e.stringTypes)},{type:"IDENTIFIER",regex:Bg(e.identChars)},{type:"DELIMITER",regex:/[;]/uy},{type:"COMMA",regex:/[,]/y},{type:"OPEN_PAREN",regex:IR("open",e.extraParens)},{type:"CLOSE_PAREN",regex:IR("close",e.extraParens)},{type:"OPERATOR",regex:mg(["+","-","/",">","<","=","<>","<=",">=","!=",...(t=e.operators)!=null?t:[]])},{type:"ASTERISK",regex:/[*]/uy},{type:"DOT",regex:/[.]/uy}])}buildParamRules(e,t){var E,T,r,s,n;const R={named:(t==null?void 0:t.named)||((E=e.paramTypes)==null?void 0:E.named)||[],quoted:(t==null?void 0:t.quoted)||((T=e.paramTypes)==null?void 0:T.quoted)||[],numbered:(t==null?void 0:t.numbered)||((r=e.paramTypes)==null?void 0:r.numbered)||[],positional:typeof(t==null?void 0:t.positional)=="boolean"?t.positional:(s=e.paramTypes)==null?void 0:s.positional,custom:(t==null?void 0:t.custom)||((n=e.paramTypes)==null?void 0:n.custom)||[]};return this.validRules([{type:"NAMED_PARAMETER",regex:tr(R.named,VA(e.paramChars||e.identChars)),key:o=>o.slice(1)},{type:"QUOTED_PARAMETER",regex:tr(R.quoted,xA(e.identTypes)),key:o=>(({tokenKey:A,quoteChar:i})=>A.replace(new RegExp(tt("\\"+i),"gu"),i))({tokenKey:o.slice(2,-1),quoteChar:o.slice(-1)})},{type:"NUMBERED_PARAMETER",regex:tr(R.numbered,"[0-9]+"),key:o=>o.slice(1)},{type:"POSITIONAL_PARAMETER",regex:R.positional?/[?]/y:void 0},...R.custom.map(o=>{var A;return{type:"CUSTOM_PARAMETER",regex:$t(o.regex),key:(A=o.key)!=null?A:i=>i}})])}validRules(e){return e.filter(t=>!!t.regex)}},he=e=>iT(e.toUpperCase()),CR=new Map,wg=e=>{let t=CR.get(e);return t||(t=Wg(e),CR.set(e,t)),t},Wg=e=>({tokenizer:new Vg(e.tokenizerOptions,e.name),formatOptions:Xg(e.formatOptions)}),Xg=e=>({alwaysDenseOperators:e.alwaysDenseOperators||[],onelineClauses:Object.fromEntries(e.onelineClauses.map(t=>[t,!0]))});function $g(e){return e.indentStyle==="tabularLeft"||e.indentStyle==="tabularRight"?" ".repeat(10):e.useTabs?" ":" ".repeat(e.tabWidth)}function DE(e){return e.indentStyle==="tabularLeft"||e.indentStyle==="tabularRight"}var Kg=class{constructor(e){this.params=e,this.index=0}get({key:e,text:t}){return this.params?e?this.params[e]:this.params[this.index++]:t}getPositionalParameterIndex(){return this.index}setPositionalParameterIndex(e){this.index=e}};function Jg(e){return e.map(kg).map(jg).map(qg).map(Qg).map(Zg)}var kg=(e,t,E)=>{if(FA(e.type)){const T=zg(E,t);if(T&&T.text===".")return xe(ye({},e),{type:"IDENTIFIER",text:e.raw})}return e},jg=(e,t,E)=>{if(e.type==="RESERVED_FUNCTION_NAME"){const T=kE(E,t);if(!T||!WA(T))return xe(ye({},e),{type:"RESERVED_KEYWORD"})}return e},qg=(e,t,E)=>{if(e.type==="RESERVED_DATA_TYPE"){const T=kE(E,t);if(T&&WA(T))return xe(ye({},e),{type:"RESERVED_PARAMETERIZED_DATA_TYPE"})}return e},Qg=(e,t,E)=>{if(e.type==="IDENTIFIER"){const T=kE(E,t);if(T&&XA(T))return xe(ye({},e),{type:"ARRAY_IDENTIFIER"})}return e},Zg=(e,t,E)=>{if(e.type==="RESERVED_DATA_TYPE"){const T=kE(E,t);if(T&&XA(T))return xe(ye({},e),{type:"ARRAY_KEYWORD"})}return e},zg=(e,t)=>kE(e,t,-1),kE=(e,t,E=1)=>{let T=1;for(;e[t+T*E]&&eG(e[t+T*E]);)T++;return e[t+T*E]},WA=e=>e.type==="OPEN_PAREN"&&e.text==="(",XA=e=>e.type==="OPEN_PAREN"&&e.text==="[",eG=e=>e.type==="BLOCK_COMMENT"||e.type==="LINE_COMMENT",$A=class{constructor(e){this.tokenize=e,this.index=0,this.tokens=[],this.input=""}reset(e,t){this.input=e,this.index=0,this.tokens=this.tokenize(e)}next(){return this.tokens[this.index++]}save(){}formatError(e){const{line:t,col:E}=wA(this.input,e.start);return`Parse error at token: ${e.text} at line ${t} column ${E}`}has(e){return e in bA}};function Er(e){return e[0]}var q=new $A(e=>[]),yt=([[e]])=>e,ge=e=>({type:"keyword",tokenType:e.type,text:e.text,raw:e.raw}),cR=e=>({type:"data_type",text:e.text,raw:e.raw}),Ge=(e,{leading:t,trailing:E})=>(t!=null&&t.length&&(e=xe(ye({},e),{leadingComments:t})),E!=null&&E.length&&(e=xe(ye({},e),{trailingComments:E})),e),tG=(e,{leading:t,trailing:E})=>{if(t!=null&&t.length){const[T,...r]=e;e=[Ge(T,{leading:t}),...r]}if(E!=null&&E.length){const T=e.slice(0,-1),r=e[e.length-1];e=[...T,Ge(r,{trailing:E})]}return e},EG={Lexer:q,ParserRules:[{name:"main$ebnf$1",symbols:[]},{name:"main$ebnf$1",symbols:["main$ebnf$1","statement"],postprocess:e=>e[0].concat([e[1]])},{name:"main",symbols:["main$ebnf$1"],postprocess:([e])=>{const t=e[e.length-1];return t&&!t.hasSemicolon?t.children.length>0?e:e.slice(0,-1):e}},{name:"statement$subexpression$1",symbols:[q.has("DELIMITER")?{type:"DELIMITER"}:DELIMITER]},{name:"statement$subexpression$1",symbols:[q.has("EOF")?{type:"EOF"}:EOF]},{name:"statement",symbols:["expressions_or_clauses","statement$subexpression$1"],postprocess:([e,[t]])=>({type:"statement",children:e,hasSemicolon:t.type==="DELIMITER"})},{name:"expressions_or_clauses$ebnf$1",symbols:[]},{name:"expressions_or_clauses$ebnf$1",symbols:["expressions_or_clauses$ebnf$1","free_form_sql"],postprocess:e=>e[0].concat([e[1]])},{name:"expressions_or_clauses$ebnf$2",symbols:[]},{name:"expressions_or_clauses$ebnf$2",symbols:["expressions_or_clauses$ebnf$2","clause"],postprocess:e=>e[0].concat([e[1]])},{name:"expressions_or_clauses",symbols:["expressions_or_clauses$ebnf$1","expressions_or_clauses$ebnf$2"],postprocess:([e,t])=>[...e,...t]},{name:"clause$subexpression$1",symbols:["limit_clause"]},{name:"clause$subexpression$1",symbols:["select_clause"]},{name:"clause$subexpression$1",symbols:["other_clause"]},{name:"clause$subexpression$1",symbols:["set_operation"]},{name:"clause",symbols:["clause$subexpression$1"],postprocess:yt},{name:"limit_clause$ebnf$1$subexpression$1$ebnf$1",symbols:["free_form_sql"]},{name:"limit_clause$ebnf$1$subexpression$1$ebnf$1",symbols:["limit_clause$ebnf$1$subexpression$1$ebnf$1","free_form_sql"],postprocess:e=>e[0].concat([e[1]])},{name:"limit_clause$ebnf$1$subexpression$1",symbols:[q.has("COMMA")?{type:"COMMA"}:COMMA,"limit_clause$ebnf$1$subexpression$1$ebnf$1"]},{name:"limit_clause$ebnf$1",symbols:["limit_clause$ebnf$1$subexpression$1"],postprocess:Er},{name:"limit_clause$ebnf$1",symbols:[],postprocess:()=>null},{name:"limit_clause",symbols:[q.has("LIMIT")?{type:"LIMIT"}:LIMIT,"_","expression_chain_","limit_clause$ebnf$1"],postprocess:([e,t,E,T])=>{if(T){const[r,s]=T;return{type:"limit_clause",limitKw:Ge(ge(e),{trailing:t}),offset:E,count:s}}else return{type:"limit_clause",limitKw:Ge(ge(e),{trailing:t}),count:E}}},{name:"select_clause$subexpression$1$ebnf$1",symbols:[]},{name:"select_clause$subexpression$1$ebnf$1",symbols:["select_clause$subexpression$1$ebnf$1","free_form_sql"],postprocess:e=>e[0].concat([e[1]])},{name:"select_clause$subexpression$1",symbols:["all_columns_asterisk","select_clause$subexpression$1$ebnf$1"]},{name:"select_clause$subexpression$1$ebnf$2",symbols:[]},{name:"select_clause$subexpression$1$ebnf$2",symbols:["select_clause$subexpression$1$ebnf$2","free_form_sql"],postprocess:e=>e[0].concat([e[1]])},{name:"select_clause$subexpression$1",symbols:["asteriskless_free_form_sql","select_clause$subexpression$1$ebnf$2"]},{name:"select_clause",symbols:[q.has("RESERVED_SELECT")?{type:"RESERVED_SELECT"}:RESERVED_SELECT,"select_clause$subexpression$1"],postprocess:([e,[t,E]])=>({type:"clause",nameKw:ge(e),children:[t,...E]})},{name:"select_clause",symbols:[q.has("RESERVED_SELECT")?{type:"RESERVED_SELECT"}:RESERVED_SELECT],postprocess:([e])=>({type:"clause",nameKw:ge(e),children:[]})},{name:"all_columns_asterisk",symbols:[q.has("ASTERISK")?{type:"ASTERISK"}:ASTERISK],postprocess:()=>({type:"all_columns_asterisk"})},{name:"other_clause$ebnf$1",symbols:[]},{name:"other_clause$ebnf$1",symbols:["other_clause$ebnf$1","free_form_sql"],postprocess:e=>e[0].concat([e[1]])},{name:"other_clause",symbols:[q.has("RESERVED_CLAUSE")?{type:"RESERVED_CLAUSE"}:RESERVED_CLAUSE,"other_clause$ebnf$1"],postprocess:([e,t])=>({type:"clause",nameKw:ge(e),children:t})},{name:"set_operation$ebnf$1",symbols:[]},{name:"set_operation$ebnf$1",symbols:["set_operation$ebnf$1","free_form_sql"],postprocess:e=>e[0].concat([e[1]])},{name:"set_operation",symbols:[q.has("RESERVED_SET_OPERATION")?{type:"RESERVED_SET_OPERATION"}:RESERVED_SET_OPERATION,"set_operation$ebnf$1"],postprocess:([e,t])=>({type:"set_operation",nameKw:ge(e),children:t})},{name:"expression_chain_$ebnf$1",symbols:["expression_with_comments_"]},{name:"expression_chain_$ebnf$1",symbols:["expression_chain_$ebnf$1","expression_with_comments_"],postprocess:e=>e[0].concat([e[1]])},{name:"expression_chain_",symbols:["expression_chain_$ebnf$1"],postprocess:Er},{name:"expression_chain$ebnf$1",symbols:[]},{name:"expression_chain$ebnf$1",symbols:["expression_chain$ebnf$1","_expression_with_comments"],postprocess:e=>e[0].concat([e[1]])},{name:"expression_chain",symbols:["expression","expression_chain$ebnf$1"],postprocess:([e,t])=>[e,...t]},{name:"andless_expression_chain$ebnf$1",symbols:[]},{name:"andless_expression_chain$ebnf$1",symbols:["andless_expression_chain$ebnf$1","_andless_expression_with_comments"],postprocess:e=>e[0].concat([e[1]])},{name:"andless_expression_chain",symbols:["andless_expression","andless_expression_chain$ebnf$1"],postprocess:([e,t])=>[e,...t]},{name:"expression_with_comments_",symbols:["expression","_"],postprocess:([e,t])=>Ge(e,{trailing:t})},{name:"_expression_with_comments",symbols:["_","expression"],postprocess:([e,t])=>Ge(t,{leading:e})},{name:"_andless_expression_with_comments",symbols:["_","andless_expression"],postprocess:([e,t])=>Ge(t,{leading:e})},{name:"free_form_sql$subexpression$1",symbols:["asteriskless_free_form_sql"]},{name:"free_form_sql$subexpression$1",symbols:["asterisk"]},{name:"free_form_sql",symbols:["free_form_sql$subexpression$1"],postprocess:yt},{name:"asteriskless_free_form_sql$subexpression$1",symbols:["asteriskless_andless_expression"]},{name:"asteriskless_free_form_sql$subexpression$1",symbols:["logic_operator"]},{name:"asteriskless_free_form_sql$subexpression$1",symbols:["comma"]},{name:"asteriskless_free_form_sql$subexpression$1",symbols:["comment"]},{name:"asteriskless_free_form_sql$subexpression$1",symbols:["other_keyword"]},{name:"asteriskless_free_form_sql",symbols:["asteriskless_free_form_sql$subexpression$1"],postprocess:yt},{name:"expression$subexpression$1",symbols:["andless_expression"]},{name:"expression$subexpression$1",symbols:["logic_operator"]},{name:"expression",symbols:["expression$subexpression$1"],postprocess:yt},{name:"andless_expression$subexpression$1",symbols:["asteriskless_andless_expression"]},{name:"andless_expression$subexpression$1",symbols:["asterisk"]},{name:"andless_expression",symbols:["andless_expression$subexpression$1"],postprocess:yt},{name:"asteriskless_andless_expression$subexpression$1",symbols:["atomic_expression"]},{name:"asteriskless_andless_expression$subexpression$1",symbols:["between_predicate"]},{name:"asteriskless_andless_expression$subexpression$1",symbols:["case_expression"]},{name:"asteriskless_andless_expression",symbols:["asteriskless_andless_expression$subexpression$1"],postprocess:yt},{name:"atomic_expression$subexpression$1",symbols:["array_subscript"]},{name:"atomic_expression$subexpression$1",symbols:["function_call"]},{name:"atomic_expression$subexpression$1",symbols:["property_access"]},{name:"atomic_expression$subexpression$1",symbols:["parenthesis"]},{name:"atomic_expression$subexpression$1",symbols:["curly_braces"]},{name:"atomic_expression$subexpression$1",symbols:["square_brackets"]},{name:"atomic_expression$subexpression$1",symbols:["operator"]},{name:"atomic_expression$subexpression$1",symbols:["identifier"]},{name:"atomic_expression$subexpression$1",symbols:["parameter"]},{name:"atomic_expression$subexpression$1",symbols:["literal"]},{name:"atomic_expression$subexpression$1",symbols:["data_type"]},{name:"atomic_expression$subexpression$1",symbols:["keyword"]},{name:"atomic_expression",symbols:["atomic_expression$subexpression$1"],postprocess:yt},{name:"array_subscript",symbols:[q.has("ARRAY_IDENTIFIER")?{type:"ARRAY_IDENTIFIER"}:ARRAY_IDENTIFIER,"_","square_brackets"],postprocess:([e,t,E])=>({type:"array_subscript",array:Ge({type:"identifier",quoted:!1,text:e.text},{trailing:t}),parenthesis:E})},{name:"array_subscript",symbols:[q.has("ARRAY_KEYWORD")?{type:"ARRAY_KEYWORD"}:ARRAY_KEYWORD,"_","square_brackets"],postprocess:([e,t,E])=>({type:"array_subscript",array:Ge(ge(e),{trailing:t}),parenthesis:E})},{name:"function_call",symbols:[q.has("RESERVED_FUNCTION_NAME")?{type:"RESERVED_FUNCTION_NAME"}:RESERVED_FUNCTION_NAME,"_","parenthesis"],postprocess:([e,t,E])=>({type:"function_call",nameKw:Ge(ge(e),{trailing:t}),parenthesis:E})},{name:"parenthesis",symbols:[{literal:"("},"expressions_or_clauses",{literal:")"}],postprocess:([e,t,E])=>({type:"parenthesis",children:t,openParen:"(",closeParen:")"})},{name:"curly_braces$ebnf$1",symbols:[]},{name:"curly_braces$ebnf$1",symbols:["curly_braces$ebnf$1","free_form_sql"],postprocess:e=>e[0].concat([e[1]])},{name:"curly_braces",symbols:[{literal:"{"},"curly_braces$ebnf$1",{literal:"}"}],postprocess:([e,t,E])=>({type:"parenthesis",children:t,openParen:"{",closeParen:"}"})},{name:"square_brackets$ebnf$1",symbols:[]},{name:"square_brackets$ebnf$1",symbols:["square_brackets$ebnf$1","free_form_sql"],postprocess:e=>e[0].concat([e[1]])},{name:"square_brackets",symbols:[{literal:"["},"square_brackets$ebnf$1",{literal:"]"}],postprocess:([e,t,E])=>({type:"parenthesis",children:t,openParen:"[",closeParen:"]"})},{name:"property_access$subexpression$1",symbols:["identifier"]},{name:"property_access$subexpression$1",symbols:["array_subscript"]},{name:"property_access$subexpression$1",symbols:["all_columns_asterisk"]},{name:"property_access$subexpression$1",symbols:["parameter"]},{name:"property_access",symbols:["atomic_expression","_",q.has("DOT")?{type:"DOT"}:DOT,"_","property_access$subexpression$1"],postprocess:([e,t,E,T,[r]])=>({type:"property_access",object:Ge(e,{trailing:t}),property:Ge(r,{leading:T})})},{name:"between_predicate",symbols:[q.has("BETWEEN")?{type:"BETWEEN"}:BETWEEN,"_","andless_expression_chain","_",q.has("AND")?{type:"AND"}:AND,"_","andless_expression"],postprocess:([e,t,E,T,r,s,n])=>({type:"between_predicate",betweenKw:ge(e),expr1:tG(E,{leading:t,trailing:T}),andKw:ge(r),expr2:[Ge(n,{leading:s})]})},{name:"case_expression$ebnf$1",symbols:["expression_chain_"],postprocess:Er},{name:"case_expression$ebnf$1",symbols:[],postprocess:()=>null},{name:"case_expression$ebnf$2",symbols:[]},{name:"case_expression$ebnf$2",symbols:["case_expression$ebnf$2","case_clause"],postprocess:e=>e[0].concat([e[1]])},{name:"case_expression",symbols:[q.has("CASE")?{type:"CASE"}:CASE,"_","case_expression$ebnf$1","case_expression$ebnf$2",q.has("END")?{type:"END"}:END],postprocess:([e,t,E,T,r])=>({type:"case_expression",caseKw:Ge(ge(e),{trailing:t}),endKw:ge(r),expr:E||[],clauses:T})},{name:"case_clause",symbols:[q.has("WHEN")?{type:"WHEN"}:WHEN,"_","expression_chain_",q.has("THEN")?{type:"THEN"}:THEN,"_","expression_chain_"],postprocess:([e,t,E,T,r,s])=>({type:"case_when",whenKw:Ge(ge(e),{trailing:t}),thenKw:Ge(ge(T),{trailing:r}),condition:E,result:s})},{name:"case_clause",symbols:[q.has("ELSE")?{type:"ELSE"}:ELSE,"_","expression_chain_"],postprocess:([e,t,E])=>({type:"case_else",elseKw:Ge(ge(e),{trailing:t}),result:E})},{name:"comma$subexpression$1",symbols:[q.has("COMMA")?{type:"COMMA"}:COMMA]},{name:"comma",symbols:["comma$subexpression$1"],postprocess:([[e]])=>({type:"comma"})},{name:"asterisk$subexpression$1",symbols:[q.has("ASTERISK")?{type:"ASTERISK"}:ASTERISK]},{name:"asterisk",symbols:["asterisk$subexpression$1"],postprocess:([[e]])=>({type:"operator",text:e.text})},{name:"operator$subexpression$1",symbols:[q.has("OPERATOR")?{type:"OPERATOR"}:OPERATOR]},{name:"operator",symbols:["operator$subexpression$1"],postprocess:([[e]])=>({type:"operator",text:e.text})},{name:"identifier$subexpression$1",symbols:[q.has("IDENTIFIER")?{type:"IDENTIFIER"}:IDENTIFIER]},{name:"identifier$subexpression$1",symbols:[q.has("QUOTED_IDENTIFIER")?{type:"QUOTED_IDENTIFIER"}:QUOTED_IDENTIFIER]},{name:"identifier$subexpression$1",symbols:[q.has("VARIABLE")?{type:"VARIABLE"}:VARIABLE]},{name:"identifier",symbols:["identifier$subexpression$1"],postprocess:([[e]])=>({type:"identifier",quoted:e.type!=="IDENTIFIER",text:e.text})},{name:"parameter$subexpression$1",symbols:[q.has("NAMED_PARAMETER")?{type:"NAMED_PARAMETER"}:NAMED_PARAMETER]},{name:"parameter$subexpression$1",symbols:[q.has("QUOTED_PARAMETER")?{type:"QUOTED_PARAMETER"}:QUOTED_PARAMETER]},{name:"parameter$subexpression$1",symbols:[q.has("NUMBERED_PARAMETER")?{type:"NUMBERED_PARAMETER"}:NUMBERED_PARAMETER]},{name:"parameter$subexpression$1",symbols:[q.has("POSITIONAL_PARAMETER")?{type:"POSITIONAL_PARAMETER"}:POSITIONAL_PARAMETER]},{name:"parameter$subexpression$1",symbols:[q.has("CUSTOM_PARAMETER")?{type:"CUSTOM_PARAMETER"}:CUSTOM_PARAMETER]},{name:"parameter",symbols:["parameter$subexpression$1"],postprocess:([[e]])=>({type:"parameter",key:e.key,text:e.text})},{name:"literal$subexpression$1",symbols:[q.has("NUMBER")?{type:"NUMBER"}:NUMBER]},{name:"literal$subexpression$1",symbols:[q.has("STRING")?{type:"STRING"}:STRING]},{name:"literal",symbols:["literal$subexpression$1"],postprocess:([[e]])=>({type:"literal",text:e.text})},{name:"keyword$subexpression$1",symbols:[q.has("RESERVED_KEYWORD")?{type:"RESERVED_KEYWORD"}:RESERVED_KEYWORD]},{name:"keyword$subexpression$1",symbols:[q.has("RESERVED_PHRASE")?{type:"RESERVED_PHRASE"}:RESERVED_PHRASE]},{name:"keyword$subexpression$1",symbols:[q.has("RESERVED_JOIN")?{type:"RESERVED_JOIN"}:RESERVED_JOIN]},{name:"keyword",symbols:["keyword$subexpression$1"],postprocess:([[e]])=>ge(e)},{name:"data_type$subexpression$1",symbols:[q.has("RESERVED_DATA_TYPE")?{type:"RESERVED_DATA_TYPE"}:RESERVED_DATA_TYPE]},{name:"data_type",symbols:["data_type$subexpression$1"],postprocess:([[e]])=>cR(e)},{name:"data_type",symbols:[q.has("RESERVED_PARAMETERIZED_DATA_TYPE")?{type:"RESERVED_PARAMETERIZED_DATA_TYPE"}:RESERVED_PARAMETERIZED_DATA_TYPE,"_","parenthesis"],postprocess:([e,t,E])=>({type:"parameterized_data_type",dataType:Ge(cR(e),{trailing:t}),parenthesis:E})},{name:"logic_operator$subexpression$1",symbols:[q.has("AND")?{type:"AND"}:AND]},{name:"logic_operator$subexpression$1",symbols:[q.has("OR")?{type:"OR"}:OR]},{name:"logic_operator$subexpression$1",symbols:[q.has("XOR")?{type:"XOR"}:XOR]},{name:"logic_operator",symbols:["logic_operator$subexpression$1"],postprocess:([[e]])=>ge(e)},{name:"other_keyword$subexpression$1",symbols:[q.has("WHEN")?{type:"WHEN"}:WHEN]},{name:"other_keyword$subexpression$1",symbols:[q.has("THEN")?{type:"THEN"}:THEN]},{name:"other_keyword$subexpression$1",symbols:[q.has("ELSE")?{type:"ELSE"}:ELSE]},{name:"other_keyword$subexpression$1",symbols:[q.has("END")?{type:"END"}:END]},{name:"other_keyword",symbols:["other_keyword$subexpression$1"],postprocess:([[e]])=>ge(e)},{name:"_$ebnf$1",symbols:[]},{name:"_$ebnf$1",symbols:["_$ebnf$1","comment"],postprocess:e=>e[0].concat([e[1]])},{name:"_",symbols:["_$ebnf$1"],postprocess:([e])=>e},{name:"comment",symbols:[q.has("LINE_COMMENT")?{type:"LINE_COMMENT"}:LINE_COMMENT],postprocess:([e])=>({type:"line_comment",text:e.text,precedingWhitespace:e.precedingWhitespace})},{name:"comment",symbols:[q.has("BLOCK_COMMENT")?{type:"BLOCK_COMMENT"}:BLOCK_COMMENT],postprocess:([e])=>({type:"block_comment",text:e.text,precedingWhitespace:e.precedingWhitespace})}],ParserStart:"main"},TG=EG,{Parser:rG,Grammar:sG}=_M;function nG(e){let t={};const E=new $A(r=>[...Jg(e.tokenize(r,t)),BA(r.length)]),T=new rG(sG.fromCompiled(TG),{lexer:E});return{parse:(r,s)=>{t=s;const{results:n}=T.feed(r);if(n.length===1)return n[0];throw n.length===0?new Error("Parse error: Invalid SQL"):new Error(`Parse error: Ambiguous grammar
22
- ${JSON.stringify(n,void 0,2)}`)}}}var KA=class{constructor(e){this.indentation=e,this.items=[]}add(...e){for(const t of e)switch(t){case 0:this.items.push(0);break;case 1:this.trimHorizontalWhitespace();break;case 2:this.trimWhitespace();break;case 3:this.trimHorizontalWhitespace(),this.addNewline(3);break;case 4:this.trimHorizontalWhitespace(),this.addNewline(4);break;case 5:this.addIndentation();break;case 6:this.items.push(6);break;default:this.items.push(t)}}trimHorizontalWhitespace(){for(;RG(bE(this.items));)this.items.pop()}trimWhitespace(){for(;oG(bE(this.items));)this.items.pop()}addNewline(e){if(this.items.length>0)switch(bE(this.items)){case 3:this.items.pop(),this.items.push(e);break;case 4:break;default:this.items.push(e);break}}addIndentation(){for(let e=0;e<this.indentation.getLevel();e++)this.items.push(6)}toString(){return this.items.map(e=>this.itemToString(e)).join("")}getLayoutItems(){return this.items}itemToString(e){switch(e){case 0:return" ";case 3:case 4:return`
23
- `;case 6:return this.indentation.getSingleIndent();default:return e}}},RG=e=>e===0||e===6,oG=e=>e===0||e===6||e===3;function LR(e,t){if(t==="standard")return e;let E=[];return e.length>=10&&e.includes(" ")&&([e,...E]=e.split(" ")),t==="tabularLeft"?e=e.padEnd(9," "):e=e.padStart(9," "),e+["",...E].join(" ")}function uR(e){return gM(e)||e==="RESERVED_CLAUSE"||e==="RESERVED_SELECT"||e==="RESERVED_SET_OPERATION"||e==="RESERVED_JOIN"||e==="LIMIT"}var Tr="top-level",AG="block-level",JA=class{constructor(e){this.indent=e,this.indentTypes=[]}getSingleIndent(){return this.indent}getLevel(){return this.indentTypes.length}increaseTopLevel(){this.indentTypes.push(Tr)}increaseBlockLevel(){this.indentTypes.push(AG)}decreaseTopLevel(){this.indentTypes.length>0&&bE(this.indentTypes)===Tr&&this.indentTypes.pop()}decreaseBlockLevel(){for(;this.indentTypes.length>0&&this.indentTypes.pop()===Tr;);}},iG=class extends KA{constructor(e){super(new JA("")),this.expressionWidth=e,this.length=0,this.trailingSpace=!1}add(...e){if(e.forEach(t=>this.addToLength(t)),this.length>this.expressionWidth)throw new Dr;super.add(...e)}addToLength(e){if(typeof e=="string")this.length+=e.length,this.trailingSpace=!1;else{if(e===4||e===3)throw new Dr;e===5||e===6||e===0?this.trailingSpace||(this.length++,this.trailingSpace=!0):(e===2||e===1)&&this.trailingSpace&&(this.trailingSpace=!1,this.length--)}}},Dr=class extends Error{},SG=class dr{constructor({cfg:t,dialectCfg:E,params:T,layout:r,inline:s=!1}){this.inline=!1,this.nodes=[],this.index=-1,this.cfg=t,this.dialectCfg=E,this.inline=s,this.params=T,this.layout=r}format(t){for(this.nodes=t,this.index=0;this.index<this.nodes.length;this.index++)this.formatNode(this.nodes[this.index]);return this.layout}formatNode(t){this.formatComments(t.leadingComments),this.formatNodeWithoutComments(t),this.formatComments(t.trailingComments)}formatNodeWithoutComments(t){switch(t.type){case"function_call":return this.formatFunctionCall(t);case"parameterized_data_type":return this.formatParameterizedDataType(t);case"array_subscript":return this.formatArraySubscript(t);case"property_access":return this.formatPropertyAccess(t);case"parenthesis":return this.formatParenthesis(t);case"between_predicate":return this.formatBetweenPredicate(t);case"case_expression":return this.formatCaseExpression(t);case"case_when":return this.formatCaseWhen(t);case"case_else":return this.formatCaseElse(t);case"clause":return this.formatClause(t);case"set_operation":return this.formatSetOperation(t);case"limit_clause":return this.formatLimitClause(t);case"all_columns_asterisk":return this.formatAllColumnsAsterisk(t);case"literal":return this.formatLiteral(t);case"identifier":return this.formatIdentifier(t);case"parameter":return this.formatParameter(t);case"operator":return this.formatOperator(t);case"comma":return this.formatComma(t);case"line_comment":return this.formatLineComment(t);case"block_comment":return this.formatBlockComment(t);case"data_type":return this.formatDataType(t);case"keyword":return this.formatKeywordNode(t)}}formatFunctionCall(t){this.withComments(t.nameKw,()=>{this.layout.add(this.showFunctionKw(t.nameKw))}),this.formatNode(t.parenthesis)}formatParameterizedDataType(t){this.withComments(t.dataType,()=>{this.layout.add(this.showDataType(t.dataType))}),this.formatNode(t.parenthesis)}formatArraySubscript(t){let E;switch(t.array.type){case"data_type":E=this.showDataType(t.array);break;case"keyword":E=this.showKw(t.array);break;default:E=this.showIdentifier(t.array);break}this.withComments(t.array,()=>{this.layout.add(E)}),this.formatNode(t.parenthesis)}formatPropertyAccess(t){this.formatNode(t.object),this.layout.add(1,"."),this.formatNode(t.property)}formatParenthesis(t){const E=this.formatInlineExpression(t.children);E?(this.layout.add(t.openParen),this.layout.add(...E.getLayoutItems()),this.layout.add(1,t.closeParen,0)):(this.layout.add(t.openParen,3),DE(this.cfg)?(this.layout.add(5),this.layout=this.formatSubExpression(t.children)):(this.layout.indentation.increaseBlockLevel(),this.layout.add(5),this.layout=this.formatSubExpression(t.children),this.layout.indentation.decreaseBlockLevel()),this.layout.add(3,5,t.closeParen,0))}formatBetweenPredicate(t){this.layout.add(this.showKw(t.betweenKw),0),this.layout=this.formatSubExpression(t.expr1),this.layout.add(1,0,this.showNonTabularKw(t.andKw),0),this.layout=this.formatSubExpression(t.expr2),this.layout.add(0)}formatCaseExpression(t){this.formatNode(t.caseKw),this.layout.indentation.increaseBlockLevel(),this.layout=this.formatSubExpression(t.expr),this.layout=this.formatSubExpression(t.clauses),this.layout.indentation.decreaseBlockLevel(),this.layout.add(3,5),this.formatNode(t.endKw)}formatCaseWhen(t){this.layout.add(3,5),this.formatNode(t.whenKw),this.layout=this.formatSubExpression(t.condition),this.formatNode(t.thenKw),this.layout=this.formatSubExpression(t.result)}formatCaseElse(t){this.layout.add(3,5),this.formatNode(t.elseKw),this.layout=this.formatSubExpression(t.result)}formatClause(t){this.isOnelineClause(t)?this.formatClauseInOnelineStyle(t):DE(this.cfg)?this.formatClauseInTabularStyle(t):this.formatClauseInIndentedStyle(t)}isOnelineClause(t){return this.dialectCfg.onelineClauses[t.nameKw.text]}formatClauseInIndentedStyle(t){this.layout.add(3,5,this.showKw(t.nameKw),3),this.layout.indentation.increaseTopLevel(),this.layout.add(5),this.layout=this.formatSubExpression(t.children),this.layout.indentation.decreaseTopLevel()}formatClauseInOnelineStyle(t){this.layout.add(3,5,this.showKw(t.nameKw),0),this.layout=this.formatSubExpression(t.children)}formatClauseInTabularStyle(t){this.layout.add(3,5,this.showKw(t.nameKw),0),this.layout.indentation.increaseTopLevel(),this.layout=this.formatSubExpression(t.children),this.layout.indentation.decreaseTopLevel()}formatSetOperation(t){this.layout.add(3,5,this.showKw(t.nameKw),3),this.layout.add(5),this.layout=this.formatSubExpression(t.children)}formatLimitClause(t){this.withComments(t.limitKw,()=>{this.layout.add(3,5,this.showKw(t.limitKw))}),this.layout.indentation.increaseTopLevel(),DE(this.cfg)?this.layout.add(0):this.layout.add(3,5),t.offset?(this.layout=this.formatSubExpression(t.offset),this.layout.add(1,",",0),this.layout=this.formatSubExpression(t.count)):this.layout=this.formatSubExpression(t.count),this.layout.indentation.decreaseTopLevel()}formatAllColumnsAsterisk(t){this.layout.add("*",0)}formatLiteral(t){this.layout.add(t.text,0)}formatIdentifier(t){this.layout.add(this.showIdentifier(t),0)}formatParameter(t){this.layout.add(this.params.get(t),0)}formatOperator({text:t}){this.cfg.denseOperators||this.dialectCfg.alwaysDenseOperators.includes(t)?this.layout.add(1,t):t===":"?this.layout.add(1,t,0):this.layout.add(t,0)}formatComma(t){this.inline?this.layout.add(1,",",0):this.layout.add(1,",",3,5)}withComments(t,E){this.formatComments(t.leadingComments),E(),this.formatComments(t.trailingComments)}formatComments(t){t&&t.forEach(E=>{E.type==="line_comment"?this.formatLineComment(E):this.formatBlockComment(E)})}formatLineComment(t){er(t.precedingWhitespace||"")?this.layout.add(3,5,t.text,4,5):this.layout.getLayoutItems().length>0?this.layout.add(2,0,t.text,4,5):this.layout.add(t.text,4,5)}formatBlockComment(t){this.isMultilineBlockComment(t)?(this.splitBlockComment(t.text).forEach(E=>{this.layout.add(3,5,E)}),this.layout.add(3,5)):this.layout.add(t.text,0)}isMultilineBlockComment(t){return er(t.text)||er(t.precedingWhitespace||"")}isDocComment(t){const E=t.split(/\n/);return/^\/\*\*?$/.test(E[0])&&E.slice(1,E.length-1).every(T=>/^\s*\*/.test(T))&&/^\s*\*\/$/.test(bE(E))}splitBlockComment(t){return this.isDocComment(t)?t.split(/\n/).map(E=>/^\s*\*/.test(E)?" "+E.replace(/^\s*/,""):E):t.split(/\n/).map(E=>E.replace(/^\s*/,""))}formatSubExpression(t){return new dr({cfg:this.cfg,dialectCfg:this.dialectCfg,params:this.params,layout:this.layout,inline:this.inline}).format(t)}formatInlineExpression(t){const E=this.params.getPositionalParameterIndex();try{return new dr({cfg:this.cfg,dialectCfg:this.dialectCfg,params:this.params,layout:new iG(this.cfg.expressionWidth),inline:!0}).format(t)}catch(T){if(T instanceof Dr){this.params.setPositionalParameterIndex(E);return}else throw T}}formatKeywordNode(t){switch(t.tokenType){case"RESERVED_JOIN":return this.formatJoin(t);case"AND":case"OR":case"XOR":return this.formatLogicalOperator(t);default:return this.formatKeyword(t)}}formatJoin(t){DE(this.cfg)?(this.layout.indentation.decreaseTopLevel(),this.layout.add(3,5,this.showKw(t),0),this.layout.indentation.increaseTopLevel()):this.layout.add(3,5,this.showKw(t),0)}formatKeyword(t){this.layout.add(this.showKw(t),0)}formatLogicalOperator(t){this.cfg.logicalOperatorNewline==="before"?DE(this.cfg)?(this.layout.indentation.decreaseTopLevel(),this.layout.add(3,5,this.showKw(t),0),this.layout.indentation.increaseTopLevel()):this.layout.add(3,5,this.showKw(t),0):this.layout.add(this.showKw(t),3,5)}formatDataType(t){this.layout.add(this.showDataType(t),0)}showKw(t){return uR(t.tokenType)?LR(this.showNonTabularKw(t),this.cfg.indentStyle):this.showNonTabularKw(t)}showNonTabularKw(t){switch(this.cfg.keywordCase){case"preserve":return iT(t.raw);case"upper":return t.text;case"lower":return t.text.toLowerCase()}}showFunctionKw(t){return uR(t.tokenType)?LR(this.showNonTabularFunctionKw(t),this.cfg.indentStyle):this.showNonTabularFunctionKw(t)}showNonTabularFunctionKw(t){switch(this.cfg.functionCase){case"preserve":return iT(t.raw);case"upper":return t.text;case"lower":return t.text.toLowerCase()}}showIdentifier(t){if(t.quoted)return t.text;switch(this.cfg.identifierCase){case"preserve":return t.text;case"upper":return t.text.toUpperCase();case"lower":return t.text.toLowerCase()}}showDataType(t){switch(this.cfg.dataTypeCase){case"preserve":return iT(t.raw);case"upper":return t.text;case"lower":return t.text.toLowerCase()}}},OG=class{constructor(e,t){this.dialect=e,this.cfg=t,this.params=new Kg(this.cfg.params)}format(e){const t=this.parse(e);return this.formatAst(t).trimEnd()}parse(e){return nG(this.dialect.tokenizer).parse(e,this.cfg.paramTypes||{})}formatAst(e){return e.map(t=>this.formatStatement(t)).join(`
24
- `.repeat(this.cfg.linesBetweenQueries+1))}formatStatement(e){const t=new SG({cfg:this.cfg,dialectCfg:this.dialect.formatOptions,params:this.params,layout:new KA(new JA($g(this.cfg)))}).format(e.children);return e.hasSemicolon&&(this.cfg.newlineBeforeSemicolon?t.add(3,";"):t.add(2,";")),t.toString()}},Mr=class extends Error{};function aG(e){const t=["multilineLists","newlineBeforeOpenParen","newlineBeforeCloseParen","aliasAs","commaPosition","tabulateAlias"];for(const E of t)if(E in e)throw new Mr(`${E} config is no more supported.`);if(e.expressionWidth<=0)throw new Mr(`expressionWidth config must be positive number. Received ${e.expressionWidth} instead.`);return e.params&&!IG(e.params)&&console.warn('WARNING: All "params" option values should be strings.'),e}function IG(e){return(e instanceof Array?e:Object.values(e)).every(E=>typeof E=="string")}var kA={bigquery:"bigquery",db2:"db2",db2i:"db2i",hive:"hive",mariadb:"mariadb",mysql:"mysql",n1ql:"n1ql",plsql:"plsql",postgresql:"postgresql",redshift:"redshift",spark:"spark",sqlite:"sqlite",sql:"sql",trino:"trino",transactsql:"transactsql",tsql:"transactsql",singlestoredb:"singlestoredb",snowflake:"snowflake"},NG=Object.keys(kA),lG={tabWidth:2,useTabs:!1,keywordCase:"preserve",identifierCase:"preserve",dataTypeCase:"preserve",functionCase:"preserve",indentStyle:"standard",logicalOperatorNewline:"before",expressionWidth:50,linesBetweenQueries:1,denseOperators:!1,newlineBeforeSemicolon:!1},_G=(e,t={})=>{if(typeof t.language=="string"&&!NG.includes(t.language))throw new Mr(`Unsupported SQL dialect: ${t.language}`);const E=kA[t.language||"sql"];return CG(e,xe(ye({},t),{dialect:yA[E]}))},CG=(e,t)=>{var E=t,{dialect:T}=E,r=LM(E,["dialect"]);if(typeof e!="string")throw new Error("Invalid query argument. Expected string, instead got "+typeof e);const s=aG(ye(ye({},lG),r));return new OG(wg(T),s).format(e)};const cG={key:0,class:"px-1 py-0.5 rounded text-xs bg-sky-600 text-white"},LG={key:1,class:"px-1 py-0.5 rounded text-xs bg-emerald-600 text-white"},uG=De({__name:"QueryItem",props:{query:{}},setup(e){const t=e,E=At({isFormatted:!1});let T=Rs();const r=n=>_G(n,{language:T.config.sqlDialect}),s=n=>E.isFormatted?r(n):n;return(n,R)=>{const o=$E("highlightjs");return U(),Ce(hA,{onToggleFormatting:R[0]||(R[0]=A=>E.isFormatted=!E.isFormatted),title:n.query.name,source:n.query.source,"is-formatted":E.isFormatted,"copyable-text":s(n.query.sql)},{"title-details":ne(()=>[t.query.cached?(U(),Y("span",cG,"cached")):oe("",!0),t.query.async?(U(),Y("span",LG,"async")):oe("",!0),$(oT,{"duration-ms":t.query.duration,slowThreshold:30,"too-slow-threshold":100,title:"Query runtime"},{default:ne(()=>[$(Re(Yo),{class:"text-stone-600 size-3"})]),_:1},8,["duration-ms"])]),actions:ne(()=>[]),content:ne(()=>[$(o,{language:"sql",code:s(n.query.sql)},null,8,["code"])]),_:1},8,["title","source","is-formatted","copyable-text"])}}}),pG={class:"p-1 pt-1.5"},fG={key:1,class:"z-[9999] text-stone-900 fixed left-0 bottom-0 w-full"},PG=O("div",{class:"h-0.5 bg-red-700 cursor-row-resize"},null,-1),DG={class:"flex items-center justify-between bg-stone-100 border-b border-stone-200"},dG=O("div",{class:"px-5 py-1.5 italic"},"No request yet",-1),MG={class:"px-3"},UG={key:2,class:"z-[9999] text-stone-900 fixed left-0 bottom-0 w-full"},hG={class:"grow"},gG={class:"flex"},GG={class:"flex items-center space-x-3 pr-1"},mG={class:"flex space-x-2"},HG={class:"text-sm text-stone-600 font-medium tracking-wide"},yG=["selected","textContent","value"],bG={class:"flex items-center pl-1 space-x-2"},BG=["title"],FG=De({__name:"Debugbar",setup(e){let t=zL(),E=Rs();const T=ut(null),r=At({activeTab:"",minimized:E.config.minimized,isResizing:!1,isPolling:E.config.mode==="poll",height:E.config.height}),s=ze(()=>r.activeTab!=""),n=ze(()=>!1),R=ze(()=>{var I,l;return((I=t.currentRequest)==null?void 0:I.meta.params.controller)+"#"+((l=t.currentRequest)==null?void 0:l.meta.params.action)});let o=null;E.config.mode==="ws"?o=ga.createConsumer(E.config.actionCableUrl).subscriptions.create({channel:E.config.cable.channelName},{connected(){console.log("🟢 Connected to channel"),o.send({ids:[]})},disconnected(){console.log("🔴 Disconnected from channel")},received(I){if(I.length==0)return;const l=t.addRequests(I);s.value||t.setCurrentRequestById(l[l.length-1]),setTimeout(()=>{o.send({ids:l})},50)}}):E.config.mode==="poll"?(console.log('Using debugbar in "polling mode". Consider using "ws" mode for better performance (requires ActionCable).'),setInterval(()=>{r.isPolling&&fetch(E.config.pollUrl).then(I=>I.json()).then(I=>{if(I.length==0)return;console.log(I);const l=t.addRequests(I);s.value||t.setCurrentRequestById(l[l.length-1]),fetch(E.config.pollUrl+"/confirm",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({ids:l})})})},E.config.poll.interval)):console.log('Using debugbar in "offline mode", ideal for demos using fixtures.');const A=()=>{console.log("Clearing requests"),r.activeTab="",t.clearRequests(),o==null||o.send({clear:!0}),r.isPolling=!0},i=()=>{r.isPolling=!r.isPolling};Xr(()=>{window.onresize=function(){window.innerHeight<r.height&&(r.height=window.innerHeight-T.value.clientHeight)},document.onmousemove=function(I){r.isResizing&&(r.height=window.innerHeight-I.clientY-T.value.clientHeight)},document.onmouseup=function(I){r.isResizing=!1}});const a=I=>{r.activeTab==I?r.activeTab="":(window.innerHeight<r.height&&(r.height=window.innerHeight-T.value.clientHeight*2),r.activeTab=I)};return(I,l)=>{var h,b,w,K,k;return U(),Y(Le,null,[r.minimized?(U(),Y("div",{key:0,onClick:l[0]||(l[0]=F=>r.minimized=!1),class:"z-[9999] text-stone-900 fixed left-0 bottom-0 bg-transparent cursor-pointer"},[O("div",pG,[$($n)])])):oe("",!0),!r.minimized&&Re(t).currentRequest==null?(U(),Y("div",fG,[PG,O("div",DG,[dG,O("div",MG,[O("button",{onClick:l[1]||(l[1]=F=>r.minimized=!0),title:"Hide in the corner"},[$(Re(sn),{class:"size-4"})])])])])):oe("",!0),!r.minimized&&Re(t).currentRequest?(U(),Y("div",UG,[O("div",{id:"draggable-bar",onMousedown:l[2]||(l[2]=F=>r.isResizing=!0),class:"h-0.5 bg-red-700 cursor-row-resize"},null,32),O("div",{id:"debubgbar-header",ref_key:"header",ref:T,class:"flex flex-wrap px-1 items-center justify-end bg-stone-100 border-b-2 border-stone-300"},[O("div",hG,[O("div",gG,[O("div",{onClick:l[3]||(l[3]=F=>r.minimized=!0),class:"p-1 pt-1.5"},[$($n)]),(U(!0),Y(Le,null,Je(Re(t).currentRequest.dataForTabs,(F,x)=>(U(),Ce(Ya,{key:"k",label:F.label,count:F==null?void 0:F.count,"is-active":x===r.activeTab,disabled:F.count==0,onClick:re=>a(x)},{default:ne(()=>[Ye(Ae(F.label),1)]),_:2},1032,["label","count","is-active","disabled","onClick"]))),128)),n.value?(U(),Y("button",{key:0,onClick:l[4]||(l[4]=F=>a("debug")),class:$e(["px-3 py-1.5 text-stone-600",{"bg-stone-300":r.activeTab=="debug"}])},[$(Re(ma),{class:"size-4"})],2)):oe("",!0)])]),O("div",GG,[O("div",mG,[$(oT,{"duration-ms":Re(t).currentRequest.meta.db_runtime,title:"DB runtime"},{default:ne(()=>[$(Re(Yo),{class:"text-stone-600 size-3"})]),_:1},8,["duration-ms"]),$(oT,{"duration-ms":Re(t).currentRequest.meta.cpu_time,title:"CPU time"},{default:ne(()=>[$(Re(Ha),{class:"text-stone-600 size-3"})]),_:1},8,["duration-ms"]),$(oT,{"duration-ms":Re(t).currentRequest.meta.duration,"too-slow-threshold":1e3,"slow-threshold":750,class:"font-bold",title:"Total duration"},{default:ne(()=>[$(Re(Ga),{class:"text-stone-800 size-4"})]),_:1},8,["duration-ms"])]),O("div",{onClick:l[5]||(l[5]=F=>a("request")),class:"flex space-x-2 cursor-pointer"},[O("span",HG,Ae(R.value),1),$(rM,{code:Re(t).currentRequest.meta.status},null,8,["code"])]),O("select",{class:"px-2 py-1.5 bg-white border border-stone-200 rounded w-[330px] text-sm",name:"current_request_id",onChange:l[6]||(l[6]=F=>{const x=F.target;Re(t).setCurrentRequestById(x.value)})},[(U(!0),Y(Le,null,Je(Re(t).requests,F=>(U(),Y("option",{selected:Re(t).currentRequest.id==F.id,textContent:Ae(F.pathWithVerb),value:F.id},null,8,yG))),256))],32),O("div",bG,[Re(E).config.mode=="poll"?(U(),Y("button",{key:0,onClick:i,title:r.isPolling?"Pause polling":"Resume polling"},[r.isPolling?(U(),Ce(Re(ya),{key:0,class:"size-4"})):oe("",!0),r.isPolling?oe("",!0):(U(),Ce(Re(ba),{key:1,class:"size-4"}))],8,BG)):oe("",!0),O("button",{onClick:A,title:"Clear all requests (frontend and backend)"},[$(Re(Ba),{class:"size-3"})]),s.value?oe("",!0):(U(),Y("button",{key:1,onClick:l[7]||(l[7]=F=>r.minimized=!0),title:"Hide in the corner"},[$(Re(sn),{class:"size-4"})])),s.value?(U(),Y("button",{key:2,onClick:l[8]||(l[8]=F=>r.activeTab=""),title:"Close"},[$(Re(Fa),{class:"size-4"})])):oe("",!0)])])],512),r.activeTab!=""?(U(),Y("div",{key:0,ref:"body",id:"debugbar-body",class:"bg-white overflow-scroll",style:gT(`height: ${r.height}px`)},[r.activeTab=="request"?(U(),Ce(yd,{key:0,request:Re(t).currentRequest},null,8,["request"])):oe("",!0),r.activeTab=="messages"?(U(),Ce(Kn,{key:1},{default:ne(()=>{var F;return[(U(!0),Y(Le,null,Je((F=Re(t).currentRequest)==null?void 0:F.messages,x=>(U(),Ce(NM,{msg:x,key:x.id},null,8,["msg"]))),128))]}),_:1})):oe("",!0),r.activeTab=="models"?(U(),Ce(Qa,{key:2,models:(h=Re(t).currentRequest)==null?void 0:h.models,count:(b=Re(t).currentRequest)==null?void 0:b.modelsCount},null,8,["models","count"])):oe("",!0),r.activeTab=="queries"?(U(),Ce(Kn,{key:3},{default:ne(()=>[(U(!0),Y(Le,null,Je(Re(t).currentRequest.queries,F=>(U(),Ce(uG,{key:F.id,query:F},null,8,["query"]))),128))]),_:1})):oe("",!0),r.activeTab=="jobs"?(U(),Ce(OI,{key:4,jobs:(w=Re(t).currentRequest)==null?void 0:w.jobs},null,8,["jobs"])):oe("",!0),r.activeTab=="cache"?(U(),Ce(iu,{key:5,cache:(K=Re(t).currentRequest)==null?void 0:K.cache},null,8,["cache"])):oe("",!0),r.activeTab=="logs"?(U(),Ce(uI,{key:6,logs:(k=Re(t).currentRequest)==null?void 0:k.logs},null,8,["logs"])):oe("",!0),n.value&&r.activeTab=="debug"?(U(),Ce(Bd,{key:7,"current-request":Re(t).currentRequest,class:"px-3 py-2"},null,8,["current-request"])):oe("",!0)],4)):oe("",!0)])):oe("",!0)],64)}}}),vG=`pre code.hljs{display:block;overflow-x:auto;padding:1em}code.hljs{padding:3px 5px}/*!
38
+ If possible, please select a more specific dialect (like sqlite, postgresql, etc).`:`SQL dialect used: "${this.dialectName}".`}getWhitespace(){Zn.lastIndex=this.index;const e=Zn.exec(this.input);if(e)return this.index+=e[0].length,e[0]}getNextToken(){for(const e of this.rules){const t=this.match(e);if(t)return t}}match(e){e.regex.lastIndex=this.index;const t=e.regex.exec(this.input);if(t){const E=t[0],s={type:e.type,raw:E,text:e.text?e.text(E):E,start:this.index};return e.key&&(s.key=e.key(E)),this.index+=E.length,s}}},sR=/\/\*/uy,Qf=/[\s\S]/uy,Zf=/\*\//uy,zf=class{constructor(){this.lastIndex=0}exec(e){let t="",E,s=0;if(E=this.matchSection(sR,e))t+=E,s++;else return null;for(;s>0;)if(E=this.matchSection(sR,e))t+=E,s++;else if(E=this.matchSection(Zf,e))t+=E,s--;else if(E=this.matchSection(Qf,e))t+=E;else return null;return[t]}matchSection(e,t){e.lastIndex=this.lastIndex;const E=e.exec(t);return E&&(this.lastIndex+=E[0].length),E?E[0]:null}},eD=class{constructor(e,t){this.cfg=e,this.dialectName=t,this.rulesBeforeParams=this.buildRulesBeforeParams(e),this.rulesAfterParams=this.buildRulesAfterParams(e)}tokenize(e,t){const E=[...this.rulesBeforeParams,...this.buildParamRules(this.cfg,t),...this.rulesAfterParams],s=new jf(E,this.dialectName).tokenize(e);return this.cfg.postProcess?this.cfg.postProcess(s):s}buildRulesBeforeParams(e){var t,E;return this.validRules([{type:"BLOCK_COMMENT",regex:/(\/\* *sql-formatter-disable *\*\/[\s\S]*?(?:\/\* *sql-formatter-enable *\*\/|$))/uy},{type:"BLOCK_COMMENT",regex:e.nestedBlockComments?new zf:/(\/\*[^]*?\*\/)/uy},{type:"LINE_COMMENT",regex:Kf((t=e.lineCommentTypes)!=null?t:["--"])},{type:"QUOTED_IDENTIFIER",regex:ER(e.identTypes)},{type:"NUMBER",regex:/(?:0x[0-9a-fA-F]+|0b[01]+|(?:-\s*)?(?:[0-9]*\.[0-9]+|[0-9]+(?:\.[0-9]*)?)(?:[eE][-+]?[0-9]+(?:\.[0-9]+)?)?)(?![\w\p{Alphabetic}])/uy},{type:"RESERVED_PHRASE",regex:Ct((E=e.reservedPhrases)!=null?E:[],e.identChars),text:Ue},{type:"CASE",regex:/CASE\b/iuy,text:Ue},{type:"END",regex:/END\b/iuy,text:Ue},{type:"BETWEEN",regex:/BETWEEN\b/iuy,text:Ue},{type:"LIMIT",regex:e.reservedClauses.includes("LIMIT")?/LIMIT\b/iuy:void 0,text:Ue},{type:"RESERVED_CLAUSE",regex:Ct(e.reservedClauses,e.identChars),text:Ue},{type:"RESERVED_SELECT",regex:Ct(e.reservedSelect,e.identChars),text:Ue},{type:"RESERVED_SET_OPERATION",regex:Ct(e.reservedSetOperations,e.identChars),text:Ue},{type:"WHEN",regex:/WHEN\b/iuy,text:Ue},{type:"ELSE",regex:/ELSE\b/iuy,text:Ue},{type:"THEN",regex:/THEN\b/iuy,text:Ue},{type:"RESERVED_JOIN",regex:Ct(e.reservedJoins,e.identChars),text:Ue},{type:"AND",regex:/AND\b/iuy,text:Ue},{type:"OR",regex:/OR\b/iuy,text:Ue},{type:"XOR",regex:e.supportsXor?/XOR\b/iuy:void 0,text:Ue},...e.operatorKeyword?[{type:"OPERATOR",regex:/OPERATOR *\([^)]+\)/iuy}]:[],{type:"RESERVED_FUNCTION_NAME",regex:Ct(e.reservedFunctionNames,e.identChars),text:Ue},{type:"RESERVED_DATA_TYPE",regex:Ct(e.reservedDataTypes,e.identChars),text:Ue},{type:"RESERVED_KEYWORD",regex:Ct(e.reservedKeywords,e.identChars),text:Ue}])}buildRulesAfterParams(e){var t,E;return this.validRules([{type:"VARIABLE",regex:e.variableTypes?kf(e.variableTypes):void 0},{type:"STRING",regex:ER(e.stringTypes)},{type:"IDENTIFIER",regex:qf(e.identChars)},{type:"DELIMITER",regex:/[;]/uy},{type:"COMMA",regex:/[,]/y},{type:"OPEN_PAREN",regex:zn("open",e.extraParens)},{type:"CLOSE_PAREN",regex:zn("close",e.extraParens)},{type:"OPERATOR",regex:eR(["+","-","/",">","<","=","<>","<=",">=","!=",...(t=e.operators)!=null?t:[]])},{type:"ASTERISK",regex:/[*]/uy},{type:"PROPERTY_ACCESS_OPERATOR",regex:eR([".",...(E=e.propertyAccessOperators)!=null?E:[]])}])}buildParamRules(e,t){var E,s,T,r,n;const R={named:(t==null?void 0:t.named)||((E=e.paramTypes)==null?void 0:E.named)||[],quoted:(t==null?void 0:t.quoted)||((s=e.paramTypes)==null?void 0:s.quoted)||[],numbered:(t==null?void 0:t.numbered)||((T=e.paramTypes)==null?void 0:T.numbered)||[],positional:typeof(t==null?void 0:t.positional)=="boolean"?t.positional:(r=e.paramTypes)==null?void 0:r.positional,custom:(t==null?void 0:t.custom)||((n=e.paramTypes)==null?void 0:n.custom)||[]};return this.validRules([{type:"NAMED_PARAMETER",regex:NT(R.named,cA(e.paramChars||e.identChars)),key:o=>o.slice(1)},{type:"QUOTED_PARAMETER",regex:NT(R.quoted,LA(e.identTypes)),key:o=>(({tokenKey:i,quoteChar:A})=>i.replace(new RegExp(Tt("\\"+A),"gu"),A))({tokenKey:o.slice(2,-1),quoteChar:o.slice(-1)})},{type:"NUMBERED_PARAMETER",regex:NT(R.numbered,"[0-9]+"),key:o=>o.slice(1)},{type:"POSITIONAL_PARAMETER",regex:R.positional?/[?]/y:void 0},...R.custom.map(o=>{var i;return{type:"CUSTOM_PARAMETER",regex:$t(o.regex),key:(i=o.key)!=null?i:A=>A}})])}validRules(e){return e.filter(t=>!!t.regex)}},Ue=e=>zE(e.toUpperCase()),TR=new Map,tD=e=>{let t=TR.get(e);return t||(t=ED(e),TR.set(e,t)),t},ED=e=>({tokenizer:new eD(e.tokenizerOptions,e.name),formatOptions:sD(e.formatOptions)}),sD=e=>{var t;return{alwaysDenseOperators:e.alwaysDenseOperators||[],onelineClauses:Object.fromEntries(e.onelineClauses.map(E=>[E,!0])),tabularOnelineClauses:Object.fromEntries(((t=e.tabularOnelineClauses)!=null?t:e.onelineClauses).map(E=>[E,!0]))}};function TD(e){return e.indentStyle==="tabularLeft"||e.indentStyle==="tabularRight"?" ".repeat(10):e.useTabs?" ":" ".repeat(e.tabWidth)}function Zt(e){return e.indentStyle==="tabularLeft"||e.indentStyle==="tabularRight"}var rD=class{constructor(e){this.params=e,this.index=0}get({key:e,text:t}){return this.params?e?this.params[e]:this.params[this.index++]:t}getPositionalParameterIndex(){return this.index}setPositionalParameterIndex(e){this.index=e}};function nD(e){return e.map(RD).map(oD).map(AD).map(iD).map(SD)}var RD=(e,t,E)=>{if(lA(e.type)){const s=OD(E,t);if(s&&s.type==="PROPERTY_ACCESS_OPERATOR")return Ye(me({},e),{type:"IDENTIFIER",text:e.raw});const T=aE(E,t);if(T&&T.type==="PROPERTY_ACCESS_OPERATOR")return Ye(me({},e),{type:"IDENTIFIER",text:e.raw})}return e},oD=(e,t,E)=>{if(e.type==="RESERVED_FUNCTION_NAME"){const s=aE(E,t);if(!s||!pA(s))return Ye(me({},e),{type:"IDENTIFIER",text:e.raw})}return e},AD=(e,t,E)=>{if(e.type==="RESERVED_DATA_TYPE"){const s=aE(E,t);if(s&&pA(s))return Ye(me({},e),{type:"RESERVED_PARAMETERIZED_DATA_TYPE"})}return e},iD=(e,t,E)=>{if(e.type==="IDENTIFIER"){const s=aE(E,t);if(s&&fA(s))return Ye(me({},e),{type:"ARRAY_IDENTIFIER"})}return e},SD=(e,t,E)=>{if(e.type==="RESERVED_DATA_TYPE"){const s=aE(E,t);if(s&&fA(s))return Ye(me({},e),{type:"ARRAY_KEYWORD"})}return e},OD=(e,t)=>aE(e,t,-1),aE=(e,t,E=1)=>{let s=1;for(;e[t+s*E]&&ID(e[t+s*E]);)s++;return e[t+s*E]},pA=e=>e.type==="OPEN_PAREN"&&e.text==="(",fA=e=>e.type==="OPEN_PAREN"&&e.text==="[",ID=e=>e.type==="BLOCK_COMMENT"||e.type==="LINE_COMMENT",DA=class{constructor(e){this.tokenize=e,this.index=0,this.tokens=[],this.input=""}reset(e,t){this.input=e,this.index=0,this.tokens=this.tokenize(e)}next(){return this.tokens[this.index++]}save(){}formatError(e){const{line:t,col:E}=uA(this.input,e.start);return`Parse error at token: ${e.text} at line ${t} column ${E}`}has(e){return e in aA}};function lT(e){return e[0]}var z=new DA(e=>[]),vt=([[e]])=>e,he=e=>({type:"keyword",tokenType:e.type,text:e.text,raw:e.raw}),rR=e=>({type:"data_type",text:e.text,raw:e.raw}),Ge=(e,{leading:t,trailing:E})=>(t!=null&&t.length&&(e=Ye(me({},e),{leadingComments:t})),E!=null&&E.length&&(e=Ye(me({},e),{trailingComments:E})),e),aD=(e,{leading:t,trailing:E})=>{if(t!=null&&t.length){const[s,...T]=e;e=[Ge(s,{leading:t}),...T]}if(E!=null&&E.length){const s=e.slice(0,-1),T=e[e.length-1];e=[...s,Ge(T,{trailing:E})]}return e},ND={Lexer:z,ParserRules:[{name:"main$ebnf$1",symbols:[]},{name:"main$ebnf$1",symbols:["main$ebnf$1","statement"],postprocess:e=>e[0].concat([e[1]])},{name:"main",symbols:["main$ebnf$1"],postprocess:([e])=>{const t=e[e.length-1];return t&&!t.hasSemicolon?t.children.length>0?e:e.slice(0,-1):e}},{name:"statement$subexpression$1",symbols:[z.has("DELIMITER")?{type:"DELIMITER"}:DELIMITER]},{name:"statement$subexpression$1",symbols:[z.has("EOF")?{type:"EOF"}:EOF]},{name:"statement",symbols:["expressions_or_clauses","statement$subexpression$1"],postprocess:([e,[t]])=>({type:"statement",children:e,hasSemicolon:t.type==="DELIMITER"})},{name:"expressions_or_clauses$ebnf$1",symbols:[]},{name:"expressions_or_clauses$ebnf$1",symbols:["expressions_or_clauses$ebnf$1","free_form_sql"],postprocess:e=>e[0].concat([e[1]])},{name:"expressions_or_clauses$ebnf$2",symbols:[]},{name:"expressions_or_clauses$ebnf$2",symbols:["expressions_or_clauses$ebnf$2","clause"],postprocess:e=>e[0].concat([e[1]])},{name:"expressions_or_clauses",symbols:["expressions_or_clauses$ebnf$1","expressions_or_clauses$ebnf$2"],postprocess:([e,t])=>[...e,...t]},{name:"clause$subexpression$1",symbols:["limit_clause"]},{name:"clause$subexpression$1",symbols:["select_clause"]},{name:"clause$subexpression$1",symbols:["other_clause"]},{name:"clause$subexpression$1",symbols:["set_operation"]},{name:"clause",symbols:["clause$subexpression$1"],postprocess:vt},{name:"limit_clause$ebnf$1$subexpression$1$ebnf$1",symbols:["free_form_sql"]},{name:"limit_clause$ebnf$1$subexpression$1$ebnf$1",symbols:["limit_clause$ebnf$1$subexpression$1$ebnf$1","free_form_sql"],postprocess:e=>e[0].concat([e[1]])},{name:"limit_clause$ebnf$1$subexpression$1",symbols:[z.has("COMMA")?{type:"COMMA"}:COMMA,"limit_clause$ebnf$1$subexpression$1$ebnf$1"]},{name:"limit_clause$ebnf$1",symbols:["limit_clause$ebnf$1$subexpression$1"],postprocess:lT},{name:"limit_clause$ebnf$1",symbols:[],postprocess:()=>null},{name:"limit_clause",symbols:[z.has("LIMIT")?{type:"LIMIT"}:LIMIT,"_","expression_chain_","limit_clause$ebnf$1"],postprocess:([e,t,E,s])=>{if(s){const[T,r]=s;return{type:"limit_clause",limitKw:Ge(he(e),{trailing:t}),offset:E,count:r}}else return{type:"limit_clause",limitKw:Ge(he(e),{trailing:t}),count:E}}},{name:"select_clause$subexpression$1$ebnf$1",symbols:[]},{name:"select_clause$subexpression$1$ebnf$1",symbols:["select_clause$subexpression$1$ebnf$1","free_form_sql"],postprocess:e=>e[0].concat([e[1]])},{name:"select_clause$subexpression$1",symbols:["all_columns_asterisk","select_clause$subexpression$1$ebnf$1"]},{name:"select_clause$subexpression$1$ebnf$2",symbols:[]},{name:"select_clause$subexpression$1$ebnf$2",symbols:["select_clause$subexpression$1$ebnf$2","free_form_sql"],postprocess:e=>e[0].concat([e[1]])},{name:"select_clause$subexpression$1",symbols:["asteriskless_free_form_sql","select_clause$subexpression$1$ebnf$2"]},{name:"select_clause",symbols:[z.has("RESERVED_SELECT")?{type:"RESERVED_SELECT"}:RESERVED_SELECT,"select_clause$subexpression$1"],postprocess:([e,[t,E]])=>({type:"clause",nameKw:he(e),children:[t,...E]})},{name:"select_clause",symbols:[z.has("RESERVED_SELECT")?{type:"RESERVED_SELECT"}:RESERVED_SELECT],postprocess:([e])=>({type:"clause",nameKw:he(e),children:[]})},{name:"all_columns_asterisk",symbols:[z.has("ASTERISK")?{type:"ASTERISK"}:ASTERISK],postprocess:()=>({type:"all_columns_asterisk"})},{name:"other_clause$ebnf$1",symbols:[]},{name:"other_clause$ebnf$1",symbols:["other_clause$ebnf$1","free_form_sql"],postprocess:e=>e[0].concat([e[1]])},{name:"other_clause",symbols:[z.has("RESERVED_CLAUSE")?{type:"RESERVED_CLAUSE"}:RESERVED_CLAUSE,"other_clause$ebnf$1"],postprocess:([e,t])=>({type:"clause",nameKw:he(e),children:t})},{name:"set_operation$ebnf$1",symbols:[]},{name:"set_operation$ebnf$1",symbols:["set_operation$ebnf$1","free_form_sql"],postprocess:e=>e[0].concat([e[1]])},{name:"set_operation",symbols:[z.has("RESERVED_SET_OPERATION")?{type:"RESERVED_SET_OPERATION"}:RESERVED_SET_OPERATION,"set_operation$ebnf$1"],postprocess:([e,t])=>({type:"set_operation",nameKw:he(e),children:t})},{name:"expression_chain_$ebnf$1",symbols:["expression_with_comments_"]},{name:"expression_chain_$ebnf$1",symbols:["expression_chain_$ebnf$1","expression_with_comments_"],postprocess:e=>e[0].concat([e[1]])},{name:"expression_chain_",symbols:["expression_chain_$ebnf$1"],postprocess:lT},{name:"expression_chain$ebnf$1",symbols:[]},{name:"expression_chain$ebnf$1",symbols:["expression_chain$ebnf$1","_expression_with_comments"],postprocess:e=>e[0].concat([e[1]])},{name:"expression_chain",symbols:["expression","expression_chain$ebnf$1"],postprocess:([e,t])=>[e,...t]},{name:"andless_expression_chain$ebnf$1",symbols:[]},{name:"andless_expression_chain$ebnf$1",symbols:["andless_expression_chain$ebnf$1","_andless_expression_with_comments"],postprocess:e=>e[0].concat([e[1]])},{name:"andless_expression_chain",symbols:["andless_expression","andless_expression_chain$ebnf$1"],postprocess:([e,t])=>[e,...t]},{name:"expression_with_comments_",symbols:["expression","_"],postprocess:([e,t])=>Ge(e,{trailing:t})},{name:"_expression_with_comments",symbols:["_","expression"],postprocess:([e,t])=>Ge(t,{leading:e})},{name:"_andless_expression_with_comments",symbols:["_","andless_expression"],postprocess:([e,t])=>Ge(t,{leading:e})},{name:"free_form_sql$subexpression$1",symbols:["asteriskless_free_form_sql"]},{name:"free_form_sql$subexpression$1",symbols:["asterisk"]},{name:"free_form_sql",symbols:["free_form_sql$subexpression$1"],postprocess:vt},{name:"asteriskless_free_form_sql$subexpression$1",symbols:["asteriskless_andless_expression"]},{name:"asteriskless_free_form_sql$subexpression$1",symbols:["logic_operator"]},{name:"asteriskless_free_form_sql$subexpression$1",symbols:["comma"]},{name:"asteriskless_free_form_sql$subexpression$1",symbols:["comment"]},{name:"asteriskless_free_form_sql$subexpression$1",symbols:["other_keyword"]},{name:"asteriskless_free_form_sql",symbols:["asteriskless_free_form_sql$subexpression$1"],postprocess:vt},{name:"expression$subexpression$1",symbols:["andless_expression"]},{name:"expression$subexpression$1",symbols:["logic_operator"]},{name:"expression",symbols:["expression$subexpression$1"],postprocess:vt},{name:"andless_expression$subexpression$1",symbols:["asteriskless_andless_expression"]},{name:"andless_expression$subexpression$1",symbols:["asterisk"]},{name:"andless_expression",symbols:["andless_expression$subexpression$1"],postprocess:vt},{name:"asteriskless_andless_expression$subexpression$1",symbols:["atomic_expression"]},{name:"asteriskless_andless_expression$subexpression$1",symbols:["between_predicate"]},{name:"asteriskless_andless_expression$subexpression$1",symbols:["case_expression"]},{name:"asteriskless_andless_expression",symbols:["asteriskless_andless_expression$subexpression$1"],postprocess:vt},{name:"atomic_expression$subexpression$1",symbols:["array_subscript"]},{name:"atomic_expression$subexpression$1",symbols:["function_call"]},{name:"atomic_expression$subexpression$1",symbols:["property_access"]},{name:"atomic_expression$subexpression$1",symbols:["parenthesis"]},{name:"atomic_expression$subexpression$1",symbols:["curly_braces"]},{name:"atomic_expression$subexpression$1",symbols:["square_brackets"]},{name:"atomic_expression$subexpression$1",symbols:["operator"]},{name:"atomic_expression$subexpression$1",symbols:["identifier"]},{name:"atomic_expression$subexpression$1",symbols:["parameter"]},{name:"atomic_expression$subexpression$1",symbols:["literal"]},{name:"atomic_expression$subexpression$1",symbols:["data_type"]},{name:"atomic_expression$subexpression$1",symbols:["keyword"]},{name:"atomic_expression",symbols:["atomic_expression$subexpression$1"],postprocess:vt},{name:"array_subscript",symbols:[z.has("ARRAY_IDENTIFIER")?{type:"ARRAY_IDENTIFIER"}:ARRAY_IDENTIFIER,"_","square_brackets"],postprocess:([e,t,E])=>({type:"array_subscript",array:Ge({type:"identifier",quoted:!1,text:e.text},{trailing:t}),parenthesis:E})},{name:"array_subscript",symbols:[z.has("ARRAY_KEYWORD")?{type:"ARRAY_KEYWORD"}:ARRAY_KEYWORD,"_","square_brackets"],postprocess:([e,t,E])=>({type:"array_subscript",array:Ge(he(e),{trailing:t}),parenthesis:E})},{name:"function_call",symbols:[z.has("RESERVED_FUNCTION_NAME")?{type:"RESERVED_FUNCTION_NAME"}:RESERVED_FUNCTION_NAME,"_","parenthesis"],postprocess:([e,t,E])=>({type:"function_call",nameKw:Ge(he(e),{trailing:t}),parenthesis:E})},{name:"parenthesis",symbols:[{literal:"("},"expressions_or_clauses",{literal:")"}],postprocess:([e,t,E])=>({type:"parenthesis",children:t,openParen:"(",closeParen:")"})},{name:"curly_braces$ebnf$1",symbols:[]},{name:"curly_braces$ebnf$1",symbols:["curly_braces$ebnf$1","free_form_sql"],postprocess:e=>e[0].concat([e[1]])},{name:"curly_braces",symbols:[{literal:"{"},"curly_braces$ebnf$1",{literal:"}"}],postprocess:([e,t,E])=>({type:"parenthesis",children:t,openParen:"{",closeParen:"}"})},{name:"square_brackets$ebnf$1",symbols:[]},{name:"square_brackets$ebnf$1",symbols:["square_brackets$ebnf$1","free_form_sql"],postprocess:e=>e[0].concat([e[1]])},{name:"square_brackets",symbols:[{literal:"["},"square_brackets$ebnf$1",{literal:"]"}],postprocess:([e,t,E])=>({type:"parenthesis",children:t,openParen:"[",closeParen:"]"})},{name:"property_access$subexpression$1",symbols:["identifier"]},{name:"property_access$subexpression$1",symbols:["array_subscript"]},{name:"property_access$subexpression$1",symbols:["all_columns_asterisk"]},{name:"property_access$subexpression$1",symbols:["parameter"]},{name:"property_access",symbols:["atomic_expression","_",z.has("PROPERTY_ACCESS_OPERATOR")?{type:"PROPERTY_ACCESS_OPERATOR"}:PROPERTY_ACCESS_OPERATOR,"_","property_access$subexpression$1"],postprocess:([e,t,E,s,[T]])=>({type:"property_access",object:Ge(e,{trailing:t}),operator:E.text,property:Ge(T,{leading:s})})},{name:"between_predicate",symbols:[z.has("BETWEEN")?{type:"BETWEEN"}:BETWEEN,"_","andless_expression_chain","_",z.has("AND")?{type:"AND"}:AND,"_","andless_expression"],postprocess:([e,t,E,s,T,r,n])=>({type:"between_predicate",betweenKw:he(e),expr1:aD(E,{leading:t,trailing:s}),andKw:he(T),expr2:[Ge(n,{leading:r})]})},{name:"case_expression$ebnf$1",symbols:["expression_chain_"],postprocess:lT},{name:"case_expression$ebnf$1",symbols:[],postprocess:()=>null},{name:"case_expression$ebnf$2",symbols:[]},{name:"case_expression$ebnf$2",symbols:["case_expression$ebnf$2","case_clause"],postprocess:e=>e[0].concat([e[1]])},{name:"case_expression",symbols:[z.has("CASE")?{type:"CASE"}:CASE,"_","case_expression$ebnf$1","case_expression$ebnf$2",z.has("END")?{type:"END"}:END],postprocess:([e,t,E,s,T])=>({type:"case_expression",caseKw:Ge(he(e),{trailing:t}),endKw:he(T),expr:E||[],clauses:s})},{name:"case_clause",symbols:[z.has("WHEN")?{type:"WHEN"}:WHEN,"_","expression_chain_",z.has("THEN")?{type:"THEN"}:THEN,"_","expression_chain_"],postprocess:([e,t,E,s,T,r])=>({type:"case_when",whenKw:Ge(he(e),{trailing:t}),thenKw:Ge(he(s),{trailing:T}),condition:E,result:r})},{name:"case_clause",symbols:[z.has("ELSE")?{type:"ELSE"}:ELSE,"_","expression_chain_"],postprocess:([e,t,E])=>({type:"case_else",elseKw:Ge(he(e),{trailing:t}),result:E})},{name:"comma$subexpression$1",symbols:[z.has("COMMA")?{type:"COMMA"}:COMMA]},{name:"comma",symbols:["comma$subexpression$1"],postprocess:([[e]])=>({type:"comma"})},{name:"asterisk$subexpression$1",symbols:[z.has("ASTERISK")?{type:"ASTERISK"}:ASTERISK]},{name:"asterisk",symbols:["asterisk$subexpression$1"],postprocess:([[e]])=>({type:"operator",text:e.text})},{name:"operator$subexpression$1",symbols:[z.has("OPERATOR")?{type:"OPERATOR"}:OPERATOR]},{name:"operator",symbols:["operator$subexpression$1"],postprocess:([[e]])=>({type:"operator",text:e.text})},{name:"identifier$subexpression$1",symbols:[z.has("IDENTIFIER")?{type:"IDENTIFIER"}:IDENTIFIER]},{name:"identifier$subexpression$1",symbols:[z.has("QUOTED_IDENTIFIER")?{type:"QUOTED_IDENTIFIER"}:QUOTED_IDENTIFIER]},{name:"identifier$subexpression$1",symbols:[z.has("VARIABLE")?{type:"VARIABLE"}:VARIABLE]},{name:"identifier",symbols:["identifier$subexpression$1"],postprocess:([[e]])=>({type:"identifier",quoted:e.type!=="IDENTIFIER",text:e.text})},{name:"parameter$subexpression$1",symbols:[z.has("NAMED_PARAMETER")?{type:"NAMED_PARAMETER"}:NAMED_PARAMETER]},{name:"parameter$subexpression$1",symbols:[z.has("QUOTED_PARAMETER")?{type:"QUOTED_PARAMETER"}:QUOTED_PARAMETER]},{name:"parameter$subexpression$1",symbols:[z.has("NUMBERED_PARAMETER")?{type:"NUMBERED_PARAMETER"}:NUMBERED_PARAMETER]},{name:"parameter$subexpression$1",symbols:[z.has("POSITIONAL_PARAMETER")?{type:"POSITIONAL_PARAMETER"}:POSITIONAL_PARAMETER]},{name:"parameter$subexpression$1",symbols:[z.has("CUSTOM_PARAMETER")?{type:"CUSTOM_PARAMETER"}:CUSTOM_PARAMETER]},{name:"parameter",symbols:["parameter$subexpression$1"],postprocess:([[e]])=>({type:"parameter",key:e.key,text:e.text})},{name:"literal$subexpression$1",symbols:[z.has("NUMBER")?{type:"NUMBER"}:NUMBER]},{name:"literal$subexpression$1",symbols:[z.has("STRING")?{type:"STRING"}:STRING]},{name:"literal",symbols:["literal$subexpression$1"],postprocess:([[e]])=>({type:"literal",text:e.text})},{name:"keyword$subexpression$1",symbols:[z.has("RESERVED_KEYWORD")?{type:"RESERVED_KEYWORD"}:RESERVED_KEYWORD]},{name:"keyword$subexpression$1",symbols:[z.has("RESERVED_PHRASE")?{type:"RESERVED_PHRASE"}:RESERVED_PHRASE]},{name:"keyword$subexpression$1",symbols:[z.has("RESERVED_JOIN")?{type:"RESERVED_JOIN"}:RESERVED_JOIN]},{name:"keyword",symbols:["keyword$subexpression$1"],postprocess:([[e]])=>he(e)},{name:"data_type$subexpression$1",symbols:[z.has("RESERVED_DATA_TYPE")?{type:"RESERVED_DATA_TYPE"}:RESERVED_DATA_TYPE]},{name:"data_type",symbols:["data_type$subexpression$1"],postprocess:([[e]])=>rR(e)},{name:"data_type",symbols:[z.has("RESERVED_PARAMETERIZED_DATA_TYPE")?{type:"RESERVED_PARAMETERIZED_DATA_TYPE"}:RESERVED_PARAMETERIZED_DATA_TYPE,"_","parenthesis"],postprocess:([e,t,E])=>({type:"parameterized_data_type",dataType:Ge(rR(e),{trailing:t}),parenthesis:E})},{name:"logic_operator$subexpression$1",symbols:[z.has("AND")?{type:"AND"}:AND]},{name:"logic_operator$subexpression$1",symbols:[z.has("OR")?{type:"OR"}:OR]},{name:"logic_operator$subexpression$1",symbols:[z.has("XOR")?{type:"XOR"}:XOR]},{name:"logic_operator",symbols:["logic_operator$subexpression$1"],postprocess:([[e]])=>he(e)},{name:"other_keyword$subexpression$1",symbols:[z.has("WHEN")?{type:"WHEN"}:WHEN]},{name:"other_keyword$subexpression$1",symbols:[z.has("THEN")?{type:"THEN"}:THEN]},{name:"other_keyword$subexpression$1",symbols:[z.has("ELSE")?{type:"ELSE"}:ELSE]},{name:"other_keyword$subexpression$1",symbols:[z.has("END")?{type:"END"}:END]},{name:"other_keyword",symbols:["other_keyword$subexpression$1"],postprocess:([[e]])=>he(e)},{name:"_$ebnf$1",symbols:[]},{name:"_$ebnf$1",symbols:["_$ebnf$1","comment"],postprocess:e=>e[0].concat([e[1]])},{name:"_",symbols:["_$ebnf$1"],postprocess:([e])=>e},{name:"comment",symbols:[z.has("LINE_COMMENT")?{type:"LINE_COMMENT"}:LINE_COMMENT],postprocess:([e])=>({type:"line_comment",text:e.text,precedingWhitespace:e.precedingWhitespace})},{name:"comment",symbols:[z.has("BLOCK_COMMENT")?{type:"BLOCK_COMMENT"}:BLOCK_COMMENT],postprocess:([e])=>({type:"block_comment",text:e.text,precedingWhitespace:e.precedingWhitespace})},{name:"comment",symbols:[z.has("DISABLE_COMMENT")?{type:"DISABLE_COMMENT"}:DISABLE_COMMENT],postprocess:([e])=>({type:"disable_comment",text:e.text,precedingWhitespace:e.precedingWhitespace})}],ParserStart:"main"},lD=ND,{Parser:_D,Grammar:CD}=uc;function LD(e){let t={};const E=new DA(T=>[...nD(e.tokenize(T,t)),NA(T.length)]),s=new _D(CD.fromCompiled(lD),{lexer:E});return{parse:(T,r)=>{t=r;const{results:n}=s.feed(T);if(n.length===1)return n[0];throw n.length===0?new Error("Parse error: Invalid SQL"):new Error(`Parse error: Ambiguous grammar
39
+ ${JSON.stringify(n,void 0,2)}`)}}}var PA=class{constructor(e){this.indentation=e,this.items=[]}add(...e){for(const t of e)switch(t){case 0:this.items.push(0);break;case 1:this.trimHorizontalWhitespace();break;case 2:this.trimWhitespace();break;case 3:this.trimHorizontalWhitespace(),this.addNewline(3);break;case 4:this.trimHorizontalWhitespace(),this.addNewline(4);break;case 5:this.addIndentation();break;case 6:this.items.push(6);break;default:this.items.push(t)}}trimHorizontalWhitespace(){for(;cD(UE(this.items));)this.items.pop()}trimWhitespace(){for(;uD(UE(this.items));)this.items.pop()}addNewline(e){if(this.items.length>0)switch(UE(this.items)){case 3:this.items.pop(),this.items.push(e);break;case 4:break;default:this.items.push(e);break}}addIndentation(){for(let e=0;e<this.indentation.getLevel();e++)this.items.push(6)}toString(){return this.items.map(e=>this.itemToString(e)).join("")}getLayoutItems(){return this.items}itemToString(e){switch(e){case 0:return" ";case 3:case 4:return`
40
+ `;case 6:return this.indentation.getSingleIndent();default:return e}}},cD=e=>e===0||e===6,uD=e=>e===0||e===6||e===3;function nR(e,t){if(t==="standard")return e;let E=[];return e.length>=10&&e.includes(" ")&&([e,...E]=e.split(" ")),t==="tabularLeft"?e=e.padEnd(9," "):e=e.padStart(9," "),e+["",...E].join(" ")}function RR(e){return Bc(e)||e==="RESERVED_CLAUSE"||e==="RESERVED_SELECT"||e==="RESERVED_SET_OPERATION"||e==="RESERVED_JOIN"||e==="LIMIT"}var _T="top-level",pD="block-level",dA=class{constructor(e){this.indent=e,this.indentTypes=[]}getSingleIndent(){return this.indent}getLevel(){return this.indentTypes.length}increaseTopLevel(){this.indentTypes.push(_T)}increaseBlockLevel(){this.indentTypes.push(pD)}decreaseTopLevel(){this.indentTypes.length>0&&UE(this.indentTypes)===_T&&this.indentTypes.pop()}decreaseBlockLevel(){for(;this.indentTypes.length>0&&this.indentTypes.pop()===_T;);}},fD=class extends PA{constructor(e){super(new dA("")),this.expressionWidth=e,this.length=0,this.trailingSpace=!1}add(...e){if(e.forEach(t=>this.addToLength(t)),this.length>this.expressionWidth)throw new HT;super.add(...e)}addToLength(e){if(typeof e=="string")this.length+=e.length,this.trailingSpace=!1;else{if(e===4||e===3)throw new HT;e===5||e===6||e===0?this.trailingSpace||(this.length++,this.trailingSpace=!0):(e===2||e===1)&&this.trailingSpace&&(this.trailingSpace=!1,this.length--)}}},HT=class extends Error{},DD=class BT{constructor({cfg:t,dialectCfg:E,params:s,layout:T,inline:r=!1}){this.inline=!1,this.nodes=[],this.index=-1,this.cfg=t,this.dialectCfg=E,this.inline=r,this.params=s,this.layout=T}format(t){for(this.nodes=t,this.index=0;this.index<this.nodes.length;this.index++)this.formatNode(this.nodes[this.index]);return this.layout}formatNode(t){this.formatComments(t.leadingComments),this.formatNodeWithoutComments(t),this.formatComments(t.trailingComments)}formatNodeWithoutComments(t){switch(t.type){case"function_call":return this.formatFunctionCall(t);case"parameterized_data_type":return this.formatParameterizedDataType(t);case"array_subscript":return this.formatArraySubscript(t);case"property_access":return this.formatPropertyAccess(t);case"parenthesis":return this.formatParenthesis(t);case"between_predicate":return this.formatBetweenPredicate(t);case"case_expression":return this.formatCaseExpression(t);case"case_when":return this.formatCaseWhen(t);case"case_else":return this.formatCaseElse(t);case"clause":return this.formatClause(t);case"set_operation":return this.formatSetOperation(t);case"limit_clause":return this.formatLimitClause(t);case"all_columns_asterisk":return this.formatAllColumnsAsterisk(t);case"literal":return this.formatLiteral(t);case"identifier":return this.formatIdentifier(t);case"parameter":return this.formatParameter(t);case"operator":return this.formatOperator(t);case"comma":return this.formatComma(t);case"line_comment":return this.formatLineComment(t);case"block_comment":return this.formatBlockComment(t);case"disable_comment":return this.formatBlockComment(t);case"data_type":return this.formatDataType(t);case"keyword":return this.formatKeywordNode(t)}}formatFunctionCall(t){this.withComments(t.nameKw,()=>{this.layout.add(this.showFunctionKw(t.nameKw))}),this.formatNode(t.parenthesis)}formatParameterizedDataType(t){this.withComments(t.dataType,()=>{this.layout.add(this.showDataType(t.dataType))}),this.formatNode(t.parenthesis)}formatArraySubscript(t){let E;switch(t.array.type){case"data_type":E=this.showDataType(t.array);break;case"keyword":E=this.showKw(t.array);break;default:E=this.showIdentifier(t.array);break}this.withComments(t.array,()=>{this.layout.add(E)}),this.formatNode(t.parenthesis)}formatPropertyAccess(t){this.formatNode(t.object),this.layout.add(1,t.operator),this.formatNode(t.property)}formatParenthesis(t){const E=this.formatInlineExpression(t.children);E?(this.layout.add(t.openParen),this.layout.add(...E.getLayoutItems()),this.layout.add(1,t.closeParen,0)):(this.layout.add(t.openParen,3),Zt(this.cfg)?(this.layout.add(5),this.layout=this.formatSubExpression(t.children)):(this.layout.indentation.increaseBlockLevel(),this.layout.add(5),this.layout=this.formatSubExpression(t.children),this.layout.indentation.decreaseBlockLevel()),this.layout.add(3,5,t.closeParen,0))}formatBetweenPredicate(t){this.layout.add(this.showKw(t.betweenKw),0),this.layout=this.formatSubExpression(t.expr1),this.layout.add(1,0,this.showNonTabularKw(t.andKw),0),this.layout=this.formatSubExpression(t.expr2),this.layout.add(0)}formatCaseExpression(t){this.formatNode(t.caseKw),this.layout.indentation.increaseBlockLevel(),this.layout=this.formatSubExpression(t.expr),this.layout=this.formatSubExpression(t.clauses),this.layout.indentation.decreaseBlockLevel(),this.layout.add(3,5),this.formatNode(t.endKw)}formatCaseWhen(t){this.layout.add(3,5),this.formatNode(t.whenKw),this.layout=this.formatSubExpression(t.condition),this.formatNode(t.thenKw),this.layout=this.formatSubExpression(t.result)}formatCaseElse(t){this.layout.add(3,5),this.formatNode(t.elseKw),this.layout=this.formatSubExpression(t.result)}formatClause(t){this.isOnelineClause(t)?this.formatClauseInOnelineStyle(t):Zt(this.cfg)?this.formatClauseInTabularStyle(t):this.formatClauseInIndentedStyle(t)}isOnelineClause(t){return Zt(this.cfg)?this.dialectCfg.tabularOnelineClauses[t.nameKw.text]:this.dialectCfg.onelineClauses[t.nameKw.text]}formatClauseInIndentedStyle(t){this.layout.add(3,5,this.showKw(t.nameKw),3),this.layout.indentation.increaseTopLevel(),this.layout.add(5),this.layout=this.formatSubExpression(t.children),this.layout.indentation.decreaseTopLevel()}formatClauseInOnelineStyle(t){this.layout.add(3,5,this.showKw(t.nameKw),0),this.layout=this.formatSubExpression(t.children)}formatClauseInTabularStyle(t){this.layout.add(3,5,this.showKw(t.nameKw),0),this.layout.indentation.increaseTopLevel(),this.layout=this.formatSubExpression(t.children),this.layout.indentation.decreaseTopLevel()}formatSetOperation(t){this.layout.add(3,5,this.showKw(t.nameKw),3),this.layout.add(5),this.layout=this.formatSubExpression(t.children)}formatLimitClause(t){this.withComments(t.limitKw,()=>{this.layout.add(3,5,this.showKw(t.limitKw))}),this.layout.indentation.increaseTopLevel(),Zt(this.cfg)?this.layout.add(0):this.layout.add(3,5),t.offset?(this.layout=this.formatSubExpression(t.offset),this.layout.add(1,",",0),this.layout=this.formatSubExpression(t.count)):this.layout=this.formatSubExpression(t.count),this.layout.indentation.decreaseTopLevel()}formatAllColumnsAsterisk(t){this.layout.add("*",0)}formatLiteral(t){this.layout.add(t.text,0)}formatIdentifier(t){this.layout.add(this.showIdentifier(t),0)}formatParameter(t){this.layout.add(this.params.get(t),0)}formatOperator({text:t}){this.cfg.denseOperators||this.dialectCfg.alwaysDenseOperators.includes(t)?this.layout.add(1,t):t===":"?this.layout.add(1,t,0):this.layout.add(t,0)}formatComma(t){this.inline?this.layout.add(1,",",0):this.layout.add(1,",",3,5)}withComments(t,E){this.formatComments(t.leadingComments),E(),this.formatComments(t.trailingComments)}formatComments(t){t&&t.forEach(E=>{E.type==="line_comment"?this.formatLineComment(E):this.formatBlockComment(E)})}formatLineComment(t){aT(t.precedingWhitespace||"")?this.layout.add(3,5,t.text,4,5):this.layout.getLayoutItems().length>0?this.layout.add(2,0,t.text,4,5):this.layout.add(t.text,4,5)}formatBlockComment(t){t.type==="block_comment"&&this.isMultilineBlockComment(t)?(this.splitBlockComment(t.text).forEach(E=>{this.layout.add(3,5,E)}),this.layout.add(3,5)):this.layout.add(t.text,0)}isMultilineBlockComment(t){return aT(t.text)||aT(t.precedingWhitespace||"")}isDocComment(t){const E=t.split(/\n/);return/^\/\*\*?$/.test(E[0])&&E.slice(1,E.length-1).every(s=>/^\s*\*/.test(s))&&/^\s*\*\/$/.test(UE(E))}splitBlockComment(t){return this.isDocComment(t)?t.split(/\n/).map(E=>/^\s*\*/.test(E)?" "+E.replace(/^\s*/,""):E):t.split(/\n/).map(E=>E.replace(/^\s*/,""))}formatSubExpression(t){return new BT({cfg:this.cfg,dialectCfg:this.dialectCfg,params:this.params,layout:this.layout,inline:this.inline}).format(t)}formatInlineExpression(t){const E=this.params.getPositionalParameterIndex();try{return new BT({cfg:this.cfg,dialectCfg:this.dialectCfg,params:this.params,layout:new fD(this.cfg.expressionWidth),inline:!0}).format(t)}catch(s){if(s instanceof HT){this.params.setPositionalParameterIndex(E);return}else throw s}}formatKeywordNode(t){switch(t.tokenType){case"RESERVED_JOIN":return this.formatJoin(t);case"AND":case"OR":case"XOR":return this.formatLogicalOperator(t);default:return this.formatKeyword(t)}}formatJoin(t){Zt(this.cfg)?(this.layout.indentation.decreaseTopLevel(),this.layout.add(3,5,this.showKw(t),0),this.layout.indentation.increaseTopLevel()):this.layout.add(3,5,this.showKw(t),0)}formatKeyword(t){this.layout.add(this.showKw(t),0)}formatLogicalOperator(t){this.cfg.logicalOperatorNewline==="before"?Zt(this.cfg)?(this.layout.indentation.decreaseTopLevel(),this.layout.add(3,5,this.showKw(t),0),this.layout.indentation.increaseTopLevel()):this.layout.add(3,5,this.showKw(t),0):this.layout.add(this.showKw(t),3,5)}formatDataType(t){this.layout.add(this.showDataType(t),0)}showKw(t){return RR(t.tokenType)?nR(this.showNonTabularKw(t),this.cfg.indentStyle):this.showNonTabularKw(t)}showNonTabularKw(t){switch(this.cfg.keywordCase){case"preserve":return zE(t.raw);case"upper":return t.text;case"lower":return t.text.toLowerCase()}}showFunctionKw(t){return RR(t.tokenType)?nR(this.showNonTabularFunctionKw(t),this.cfg.indentStyle):this.showNonTabularFunctionKw(t)}showNonTabularFunctionKw(t){switch(this.cfg.functionCase){case"preserve":return zE(t.raw);case"upper":return t.text;case"lower":return t.text.toLowerCase()}}showIdentifier(t){if(t.quoted)return t.text;switch(this.cfg.identifierCase){case"preserve":return t.text;case"upper":return t.text.toUpperCase();case"lower":return t.text.toLowerCase()}}showDataType(t){switch(this.cfg.dataTypeCase){case"preserve":return zE(t.raw);case"upper":return t.text;case"lower":return t.text.toLowerCase()}}},PD=class{constructor(e,t){this.dialect=e,this.cfg=t,this.params=new rD(this.cfg.params)}format(e){const t=this.parse(e);return this.formatAst(t).trimEnd()}parse(e){return LD(this.dialect.tokenizer).parse(e,this.cfg.paramTypes||{})}formatAst(e){return e.map(t=>this.formatStatement(t)).join(`
41
+ `.repeat(this.cfg.linesBetweenQueries+1))}formatStatement(e){const t=new DD({cfg:this.cfg,dialectCfg:this.dialect.formatOptions,params:this.params,layout:new PA(new dA(TD(this.cfg)))}).format(e.children);return e.hasSemicolon&&(this.cfg.newlineBeforeSemicolon?t.add(3,";"):t.add(2,";")),t.toString()}},es=class extends Error{};function dD(e){const t=["multilineLists","newlineBeforeOpenParen","newlineBeforeCloseParen","aliasAs","commaPosition","tabulateAlias"];for(const E of t)if(E in e)throw new es(`${E} config is no more supported.`);if(e.expressionWidth<=0)throw new es(`expressionWidth config must be positive number. Received ${e.expressionWidth} instead.`);if(e.params&&!MD(e.params)&&console.warn('WARNING: All "params" option values should be strings.'),e.paramTypes&&!UD(e.paramTypes))throw new es("Empty regex given in custom paramTypes. That would result in matching infinite amount of parameters.");return e}function MD(e){return(e instanceof Array?e:Object.values(e)).every(E=>typeof E=="string")}function UD(e){return e.custom&&Array.isArray(e.custom)?e.custom.every(t=>t.regex!==""):!0}var MA={bigquery:"bigquery",db2:"db2",db2i:"db2i",hive:"hive",mariadb:"mariadb",mysql:"mysql",n1ql:"n1ql",plsql:"plsql",postgresql:"postgresql",redshift:"redshift",spark:"spark",sqlite:"sqlite",sql:"sql",tidb:"tidb",trino:"trino",transactsql:"transactsql",tsql:"transactsql",singlestoredb:"singlestoredb",snowflake:"snowflake"},hD=Object.keys(MA),GD={tabWidth:2,useTabs:!1,keywordCase:"preserve",identifierCase:"preserve",dataTypeCase:"preserve",functionCase:"preserve",indentStyle:"standard",logicalOperatorNewline:"before",expressionWidth:50,linesBetweenQueries:1,denseOperators:!1,newlineBeforeSemicolon:!1},gD=(e,t={})=>{if(typeof t.language=="string"&&!hD.includes(t.language))throw new es(`Unsupported SQL dialect: ${t.language}`);const E=MA[t.language||"sql"];return mD(e,Ye(me({},t),{dialect:IA[E]}))},mD=(e,t)=>{var E=t,{dialect:s}=E,T=Dc(E,["dialect"]);if(typeof e!="string")throw new Error("Invalid query argument. Expected string, instead got "+typeof e);const r=dD(me(me({},GD),T));return new PD(tD(s),r).format(e)};const HD={class:"flex items-center"},BD=["textContent"],ts=Ne({__name:"Timing",props:{durationMs:{},slowThreshold:{default:1e3},tooSlowThreshold:{default:1500}},setup(e){const t=e,E=tt(()=>t.durationMs>=1e3?(t.durationMs/1e3).toFixed(2)+"s":t.durationMs.toFixed(1)+"ms");return(s,T)=>(P(),y("div",HD,[st(s.$slots,"default"),S("span",{class:ge({"px-1 py-0.5 rounded text-sm":!0,"text-orange-600":s.durationMs>=t.slowThreshold&&s.durationMs<t.tooSlowThreshold,"text-red-600 bg-red-100":s.durationMs>=t.tooSlowThreshold}),textContent:ne(E.value)},null,10,BD)]))}});function bD(e){const t=typeof e=="string"?e:JSON.stringify(e),E="text/plain",s=new Blob([t],{type:E}),T=[new ClipboardItem({[E]:s})];navigator.clipboard.write(T)}function bT(e){const t=e.origin.length+e.pathname.length;return e.href.slice(t)}function yD(e){const t={};for(const[E,s]of e.searchParams)t[E]=s;return t}const vD={class:"flex items-center space-x-4"},FD={class:"font-semibold text-lg"},YD={key:0},VD=["textContent"],xD={key:0,class:"mt-4 ml-4"},wD={key:0,class:"mt-3 text-stone-400 text-sm"},WD=["textContent"],XD=["textContent"],UA=Ne({__name:"PanelListItem",props:{title:{},source:{},isFormatted:{type:Boolean},copyableText:{}},emits:["toggleFormatting"],setup(e){const t=e,E=rt({isOpen:!0,showOriginFile:!1});return(s,T)=>(P(),y("div",null,[S("div",vD,[S("button",{class:"flex items-center space-x-1",onClick:T[0]||(T[0]=r=>E.isOpen=!E.isOpen)},[F(Re(or),{class:ge(["size-4",{"-rotate-90":!E.isOpen}])},null,8,["class"]),S("span",FD,ne(t.title),1)]),st(s.$slots,"title-details"),E.isOpen?(P(),y("div",YD,[t.isFormatted!==void 0?(P(),y("span",{key:0,onClick:T[1]||(T[1]=r=>s.$emit("toggleFormatting")),class:"px-3 text-xs uppercase text-stone-400 cursor-pointer",title:"Format SQL query",textContent:ne(t.isFormatted?"unformat":"format")},null,8,VD)):Ee("",!0),t.copyableText?(P(),y("span",{key:1,onClick:T[2]||(T[2]=r=>Re(bD)(t.copyableText)),class:"px-3 text-xs uppercase text-stone-400 cursor-pointer",title:"Copy SQL query to clipboard"},"copy")):Ee("",!0),t.source?(P(),y("span",{key:2,onClick:T[3]||(T[3]=r=>E.showOriginFile=!E.showOriginFile),class:"px-3 text-xs uppercase text-stone-400 cursor-pointer",title:"Show origin file of the query"},"file")):Ee("",!0),st(s.$slots,"actions")])):Ee("",!0)]),E.isOpen?(P(),y("div",xD,[S("div",null,[st(s.$slots,"content")]),E.showOriginFile?(P(),y("div",wD,[S("div",{textContent:ne(t.source[0])},null,8,WD),t.source.length>1?(P(!0),y(le,{key:0},Je(t.source.slice(1),r=>(P(),y("div",{class:"pl-4",textContent:ne("↳ "+r)},null,8,XD))),256)):Ee("",!0)])):Ee("",!0)])):Ee("",!0)]))}}),KD={key:0,class:"px-1 py-0.5 rounded text-xs bg-sky-600 text-white"},$D={key:1,class:"px-1 py-0.5 rounded text-xs bg-emerald-600 text-white"},JD=Ne({__name:"QueryItem",props:{query:{}},setup(e){const t=e,E=rt({isFormatted:!1});let s=Ir();const T=n=>gD(n,{language:s.config.sqlDialect}),r=n=>E.isFormatted?T(n):n;return(n,R)=>{const o=sr("highlightjs");return P(),Ae(UA,{onToggleFormatting:R[0]||(R[0]=i=>E.isFormatted=!E.isFormatted),title:n.query.name,source:n.query.source,"is-formatted":E.isFormatted,"copyable-text":r(n.query.sql)},{"title-details":Te(()=>[t.query.cached?(P(),y("span",KD,"cached")):Ee("",!0),t.query.async?(P(),y("span",$D,"async")):Ee("",!0),F(ts,{"duration-ms":t.query.duration,slowThreshold:30,"too-slow-threshold":100,title:"Query runtime"},{default:Te(()=>[F(Re(vo),{class:"text-stone-600 size-3"})]),_:1},8,["duration-ms"])]),actions:Te(()=>R[1]||(R[1]=[])),content:Te(()=>[F(o,{language:"sql",code:r(n.query.sql)},null,8,["code"])]),_:1},8,["title","source","is-formatted","copyable-text"])}}}),_r=Ne({__name:"JsonCode",props:{json:{}},setup(e){return(t,E)=>{const s=sr("highlightjs");return P(),Ae(s,{class:"text-sm",language:"json",code:JSON.stringify(t.json,null,2)},null,8,["code"])}}}),kD={class:"p-4 leading-8"},qD=Ne({__name:"JsonPanel",props:{request:{}},setup(e){return(t,E)=>(P(),y("div",kD,[F(_r,{json:t.request},null,8,["json"])]))}}),jD={},QD={class:"px-3 py-2"};function ZD(e,t){return P(),y("div",QD,[st(e.$slots,"default")])}const Gt=ar(jD,[["render",ZD]]),zD={key:0},eP={class:"space-y-3"},tP={class:"flex items-center space-x-8"},EP={class:"w-24 text-sm text-right text-gray-400"},sP={class:"w-16 text-right"},TP={class:"text-gray-800"},rP={class:"font-medium",title:"cache key"},nP={class:"text-xs text-gray-400",title:"transaction_id"},RP=Ne({__name:"CachePanel",props:{cache:{}},setup(e){const t=e;return(E,s)=>(P(),Ae(Gt,null,{default:Te(()=>[t.cache.length==0?(P(),y("div",zD,s[0]||(s[0]=[S("div",{class:"text-gray-500"},"No cache used.",-1)]))):Ee("",!0),S("div",eP,[(P(!0),y(le,null,Je(t.cache,T=>(P(),y("div",tP,[S("div",EP,ne(T.time),1),S("div",sP,[S("span",{class:ge(["px-1 py-0.5 rounded text-white text-xs font-mono font-medium bg-stone-400",{"!bg-emerald-500":T.label=="hit","!bg-indigo-500":T.label=="write","!bg-amber-400":T.label=="read","!bg-red-400":T.label=="delete"}])},ne(T.label),3)]),S("div",TP,[S("div",rP,ne(T.key),1),S("div",nP,ne(T.transaction_id),1)])]))),256))])]),_:1}))}}),oP={key:0},AP={class:"flex items-center space-y-1 space-x-3"},iP={class:"w-32 text-right text-gray-400"},SP={class:"w-20 text-center"},OP=["title"],IP=["innerHTML"],aP=Ne({__name:"LogsPanel",props:{logs:{}},setup(e){const t=e;function E(s){return(s.progname||s.message||"").replace(" ","&nbsp;&nbsp;")}return(s,T)=>(P(),Ae(Gt,null,{default:Te(()=>[t.logs.length==0?(P(),y("div",oP,T[0]||(T[0]=[S("div",{class:"text-gray-500"},"No logs to show. Are you using the correct minimum level in your config?",-1)]))):Ee("",!0),(P(!0),y(le,null,Je(t.logs,r=>(P(),y("div",AP,[S("div",iP,ne(r.time),1),S("div",SP,[S("span",{class:ge(["px-1 py-0.5 rounded text-white text-xs font-mono font-medium",{"bg-stone-400":r.severity==0,"bg-blue-500":r.severity==1,"bg-amber-400":r.severity==2,"bg-red-400":r.severity==2,"bg-fuchsia-500":r.severity>=3}]),title:r.severity_label},ne(r.severity_label),11,OP)]),S("div",{class:"text-gray-800",innerHTML:E(r)},null,8,IP)]))),256))]),_:1}))}}),NP={class:"flex flex-col space-y-8"},oR=Ne({__name:"PanelList",setup(e){return(t,E)=>(P(),Ae(Gt,null,{default:Te(()=>[S("div",NP,[st(t.$slots,"default")])]),_:3}))}}),lP={key:0},_P={key:1,class:"my-4 mx-6 divide-y divide-stone-300"},CP={class:"divide-y divide-stone-200"},LP={class:"whitespace-nowrap p-4 pr-8 text-stone-900"},cP=["textContent"],uP={class:"text-stone-600 text-sm"},pP=["textContent"],fP=["textContent"],DP={class:"whitespace-nowrap px-3 p-4 pr-8 text-sm"},PP={class:"whitespace-nowrap px-3 p-4 pr-8 text-sm text-stone-500"},dP=["innerHTML"],MP=Ne({__name:"JobsPanel",props:{jobs:{}},setup(e){const t=e;function E(s){return s==null?"-":new Date(s*1e3).toLocaleString()}return(s,T)=>(P(),Ae(Gt,null,{default:Te(()=>[t.jobs.length==0?(P(),y("div",lP,T[0]||(T[0]=[S("div",{class:"text-gray-500"},"No jobs enqueued.",-1)]))):Ee("",!0),t.jobs.length>0?(P(),y("table",_P,[T[1]||(T[1]=S("thead",null,[S("tr",null,[S("th",{scope:"col",class:"w-36 py-3.5 pl-4 pr-3 text-left text-sm font-semibold text-stone-900 sm:pl-0"},"Job"),S("th",{scope:"col",class:"px-3 py-3.5 text-left text-sm font-semibold text-stone-900"},"Args"),S("th",{scope:"col",class:"px-3 py-3.5 text-left text-sm font-semibold text-stone-900"},"Logs")])],-1)),S("tbody",CP,[(P(!0),y(le,null,Je(t.jobs,(r,n)=>(P(),y("tr",{key:r.id},[S("td",LP,[S("div",{class:"text-lg font-bold",textContent:ne(r.class)},null,8,cP),S("div",uP,[S("div",{textContent:ne("Queue: "+r.queue)},null,8,pP),S("div",{textContent:ne("At: "+E(r.scheduled_at))},null,8,fP)])]),S("td",DP,[F(_r,{json:r.args},null,8,["json"])]),S("td",PP,[(P(!0),y(le,null,Je(r.logs,(R,o)=>(P(),y("div",{innerHTML:(o>0?"  ".repeat(o)+"↳ ":"")+R,class:""},null,8,dP))),256))])]))),128))])])):Ee("",!0)]),_:1}))}}),UP={class:"break-all w-full border-separate border-spacing-1"},hP={key:0},GP=["textContent"],gP=["textContent"],FE=Ne({__name:"KeyValueTable",props:{keyLabel:{},valueLabel:{}},setup(e){const t=e;return(E,s)=>(P(),y("table",UP,[t.keyLabel||t.valueLabel?(P(),y("tr",hP,[S("th",{textContent:ne(t.keyLabel),class:"bg-amber-50 w-40 px-3 py-1"},null,8,GP),S("th",{textContent:ne(t.valueLabel),class:"bg-amber-50 px-3 py-1"},null,8,gP)])):Ee("",!0),st(E.$slots,"default")]))}}),mP=["textContent"],HP={class:"px-3 py-1"},et=Ne({__name:"Row",props:{label:{}},setup(e){const t=e;return(E,s)=>(P(),y("tr",null,[S("td",{textContent:ne(t.label),class:"w-40 font-medium bg-stone-50 px-3 py-1"},null,8,mP),S("td",HP,[st(E.$slots,"default")])]))}}),BP={},bP={class:"mt-0.5 mb-2 px-2 py-1 bg-stone-300 text-black tracking-wide text-xs uppercase font-bold rounded"};function yP(e,t){return P(),y("h2",bP,[st(e.$slots,"default")])}const Cr=ar(BP,[["render",yP]]),vP={class:"font-medium"},FP={key:0},hA=Ne({__name:"Foldable",props:{label:{},isOpen:{type:Boolean,default:!1}},setup(e){const t=e,E=rt({isOpen:t.isOpen});return(s,T)=>(P(),y("div",null,[S("div",null,[S("button",{class:"flex items-center space-x-1",onClick:T[0]||(T[0]=r=>E.isOpen=!E.isOpen)},[F(Re(or),{class:ge(["size-4",{"-rotate-90":!E.isOpen}])},null,8,["class"]),S("span",vP,ne(t.label),1)])]),E.isOpen?(P(),y("div",FP,[st(s.$slots,"default")])):Ee("",!0)]))}}),GA=Ne({__name:"HttpResponsePanel",props:{response:{}},setup(e){return(t,E)=>(P(),Ae(Gt,null,{default:Te(()=>[F(Cr,null,{default:Te(()=>E[0]||(E[0]=[ye("HTTP Response")])),_:1}),F(FE,null,{default:Te(()=>[F(et,{label:"Status"},{default:Te(()=>[F(Nr,{code:t.response.status},null,8,["code"])]),_:1}),F(et,{label:"Body"},{default:Te(()=>[ye(ne(t.response.body.substring(0,140)),1)]),_:1}),F(et,{label:"Header: Content-Type"},{default:Te(()=>[ye(ne(t.response.headers["Content-Type"]),1)]),_:1})]),_:1}),F(hA,{class:"py-4",label:"All Headers"},{default:Te(()=>[F(FE,null,{default:Te(()=>[(P(!0),y(le,null,Je(t.response.headers,(s,T)=>(P(),Ae(et,{key:T,label:T},{default:Te(()=>[ye(ne(s),1)]),_:2},1032,["label"]))),128))]),_:1})]),_:1})]),_:1}))}}),YP=["textContent"],ls=Ne({__name:"HttpVerb",props:{verb:{}},setup(e){const t=e;return(E,s)=>(P(),y("span",{class:ge(["px-1 py-0.5 rounded text-xs text-white bg-slate-700",{"!bg-sky-700":t.verb.toLowerCase()=="get","!bg-indigo-700":t.verb.toLowerCase()=="post","!bg-purple-700":t.verb.toLowerCase()=="put","!bg-violet-500":t.verb.toLowerCase()=="patch","!bg-red-700":t.verb.toLowerCase()=="delete"}]),textContent:ne(t.verb.toUpperCase())},null,10,YP))}}),gA=Ne({__name:"HttpRequestPanel",props:{request:{}},setup(e){return(t,E)=>(P(),Ae(Gt,null,{default:Te(()=>[F(Cr,null,{default:Te(()=>E[0]||(E[0]=[ye("HTTP Request")])),_:1}),F(FE,null,{default:Te(()=>[F(et,{label:"Method"},{default:Te(()=>[F(ls,{verb:t.request.method},null,8,["verb"])]),_:1}),F(et,{label:"URL",class:"font-mono"},{default:Te(()=>[ye(ne(t.request.url.href),1)]),_:1}),F(et,{label:"Params"},{default:Te(()=>[F(_r,{json:Re(yD)(t.request.url)},null,8,["json"])]),_:1}),F(et,{label:"Header: Version"},{default:Te(()=>[ye(ne(t.request.headers.Version),1)]),_:1}),F(et,{label:"Header: Cache-Control"},{default:Te(()=>[ye(ne(t.request.headers["Cache-Control"]),1)]),_:1})]),_:1}),F(hA,{class:"py-4",label:"All Headers"},{default:Te(()=>[F(FE,null,{default:Te(()=>[(P(!0),y(le,null,Je(t.request.headers,(s,T)=>(P(),Ae(et,{key:T,label:T},{default:Te(()=>[ye(ne(s),1)]),_:2},1032,["label"]))),128))]),_:1})]),_:1})]),_:1}))}}),VP={class:"flex"},xP={class:"w-1/2"},wP={class:"w-1/2"},WP={key:1},XP=Ne({__name:"RequestPanel",props:{request:{}},setup(e){return(t,E)=>{var s,T;return P(),y(le,null,[S("div",VP,[S("div",xP,[F(gA,{request:t.request.request},null,8,["request"])]),S("div",wP,[F(Gt,null,{default:Te(()=>[F(Cr,null,{default:Te(()=>E[0]||(E[0]=[ye("Routing")])),_:1}),F(FE,null,{default:Te(()=>[F(et,{title:"Controller"},{default:Te(()=>[ye(ne(t.request.meta.controller)+" > "+ne(t.request.meta.action),1)]),_:1})]),_:1})]),_:1}),(s=t.request.response)!=null&&s.status?(P(),Ae(GA,{key:0,response:t.request.response},null,8,["response"])):Ee("",!0),(T=t.request.response)!=null&&T.status?Ee("",!0):(P(),y("div",WP,E[1]||(E[1]=[S("div",{class:"py-3 text-sm text-stone-500"},[ye(" The response was not captured. "),S("a",{target:"_blank",class:"underline font-bold",href:"https://debugbar.dev/docs/known-limitations/"},"Learn more")],-1)])))])]),E[2]||(E[2]=S("div",{class:"w-full"},[S("div",{class:"py-3 text-center italic text-sm text-stone-500"},[ye(" What else would like to see here? "),S("a",{target:"_blank",class:"underline font-bold",href:"https://github.com/julienbourdeau/debugbar/discussions"},"Tell me!")])],-1))],64)}}}),KP=Ne({__name:"MessageItem",props:{msg:{}},setup(e){const t=rt({isFormatted:!1});function E(s){return t.isFormatted?JSON.stringify(s,null,2):JSON.stringify(s)}return(s,T)=>{const r=sr("highlightjs");return P(),Ae(UA,{onToggleFormatting:T[0]||(T[0]=n=>t.isFormatted=!t.isFormatted),title:s.msg.msg,"copyable-text":E(s.msg.extra),"is-formatted":t.isFormatted,source:s.msg.source},{content:Te(()=>[F(r,{language:"json",code:E(s.msg.extra)},null,8,["code"])]),_:1},8,["title","copyable-text","is-formatted","source"])}}}),$P={key:0},JP={key:1,class:"divide-y divide-stone-300"},kP={class:"divide-y divide-stone-200"},qP={class:"whitespace-nowrap py-4 pl-4 pr-3 text-sm font-medium text-stone-900 sm:pl-0"},jP={class:"whitespace-nowrap px-3 py-4 text-sm text-stone-500 text-center"},QP=Ne({__name:"ModelsPanel",props:{models:{},count:{}},setup(e){const t=e;return(E,s)=>(P(),Ae(Gt,null,{default:Te(()=>[t.count==0?(P(),y("div",$P,s[0]||(s[0]=[S("div",{class:"text-gray-500"},"No models were initialized.",-1)]))):Ee("",!0),t.count>0?(P(),y("table",JP,[s[1]||(s[1]=S("thead",null,[S("tr",null,[S("th",{scope:"col",class:"w-36 py-3.5 pl-4 pr-3 text-left text-sm font-semibold text-stone-900 sm:pl-0"}," Model "),S("th",{scope:"col",class:"px-3 py-3.5 text-left text-sm font-semibold text-stone-900"},"Count")])],-1)),S("tbody",kP,[(P(!0),y(le,null,Je(t.models,(T,r)=>(P(),y("tr",{key:r},[S("td",qP,ne(r),1),S("td",jP,ne(T),1)]))),128))])])):Ee("",!0)]),_:1}))}}),ZP=["onClick"],zP={class:""},ed={class:"text-black font-bold"},td={class:"text-stone-600"},Ed={key:0,class:"flex"},sd=Ne({__name:"HttpPanel",props:{requests:{}},setup(e){const t=rt({open:{}});return(E,s)=>(P(!0),y(le,null,Je(E.requests,T=>{var r;return P(),y("div",{key:T.id},[S("h1",{class:"flex items-center my-4 mx-2 space-x-2 px-2 py-2.5 bg-stone-100 border border-stone-300 tracking-wide text-sm rounded cursor-pointer",onClick:n=>t.open[T.id]=!t.open[T.id]},[F(Re(or),{class:ge(["size-4",{"-rotate-90":t.open[T.id]}])},null,8,["class"]),F(Nr,{code:(r=T.response)==null?void 0:r.status},null,8,["code"]),F(ls,{verb:T.request.method},null,8,["verb"]),S("span",zP,[S("span",ed,ne(T.request.url.pathname),1),S("span",td,ne(Re(bT)(T.request.url)),1)])],8,ZP),t.open[T.id]?(P(),y("div",Ed,[F(gA,{request:T.request,class:"w-1/2"},null,8,["request"]),F(GA,{response:T.response,class:"w-1/2"},null,8,["response"])])):Ee("",!0)])}),128))}}),Td={ref:"body",id:"debugbar-body",class:"bg-white overflow-scroll"},rd=Ne({__name:"DebugbarBody",props:{activeTab:{default:""},request:{}},setup(e){return(t,E)=>{var s,T,r,n,R;return P(),y("div",Td,[t.activeTab=="messages"?(P(),Ae(oR,{key:0},{default:Te(()=>{var o;return[(P(!0),y(le,null,Je((o=t.request)==null?void 0:o.messages,i=>(P(),Ae(KP,{msg:i,key:i.id},null,8,["msg"]))),128))]}),_:1})):Ee("",!0),t.activeTab=="models"?(P(),Ae(QP,{key:1,models:(s=t.request)==null?void 0:s.models,count:(T=t.request)==null?void 0:T.modelsCount},null,8,["models","count"])):Ee("",!0),t.activeTab=="queries"?(P(),Ae(oR,{key:2},{default:Te(()=>[(P(!0),y(le,null,Je(t.request.queries,o=>(P(),Ae(JD,{key:o.id,query:o},null,8,["query"]))),128))]),_:1})):Ee("",!0),t.activeTab=="jobs"?(P(),Ae(MP,{key:3,jobs:(r=t.request)==null?void 0:r.jobs},null,8,["jobs"])):Ee("",!0),t.activeTab=="cache"?(P(),Ae(RP,{key:4,cache:(n=t.request)==null?void 0:n.cache},null,8,["cache"])):Ee("",!0),t.activeTab=="logs"?(P(),Ae(aP,{key:5,logs:(R=t.request)==null?void 0:R.logs},null,8,["logs"])):Ee("",!0),t.activeTab=="http"?(P(),Ae(sd,{key:6,requests:t.request.httpCalls},null,8,["requests"])):Ee("",!0),t.activeTab=="request"?(P(),Ae(XP,{key:7,request:t.request},null,8,["request"])):Ee("",!0),t.activeTab=="debug"?(P(),Ae(qD,{key:8,request:t.request,class:"px-3 py-2"},null,8,["request"])):Ee("",!0)],512)}}}),nd={class:"flex space-x-2"},Rd=Ne({__name:"RequestTimings",props:{request:{}},setup(e){return(t,E)=>(P(),y("div",nd,[F(ts,{"duration-ms":t.request.meta.db_runtime,title:"DB runtime"},{default:Te(()=>[F(Re(vo),{class:"text-stone-600 size-3"})]),_:1},8,["duration-ms"]),F(ts,{"duration-ms":t.request.meta.cpu_time,title:"CPU time"},{default:Te(()=>[F(Re(lI),{class:"text-stone-600 size-3"})]),_:1},8,["duration-ms"]),F(ts,{"duration-ms":t.request.meta.duration,"too-slow-threshold":1e3,"slow-threshold":750,class:"font-bold",title:"Total duration"},{default:Te(()=>[F(Re(II),{class:"text-stone-800 size-4"})]),_:1},8,["duration-ms"])]))}}),od={class:""},Ad={class:"truncate grow text-left"},id={class:"text-stone-900"},Sd={class:"text-stone-500"},Od={class:"py-1"},Id=["onClick"],ad={class:""},Nd={class:"text-stone-900"},ld={class:"text-stone-500"},_d=Ne({__name:"RequestsDropdown",props:{requests:{},currentRequestId:{}},emits:["select"],setup(e,{emit:t}){const E=e,s=t,T=Qe(!1),r=Qe(null),n=Qe(null),R=Qe(!1),o=tt(()=>E.requests.find(N=>N.id===E.currentRequestId)),i=N=>{s("select",N),T.value=!1},A=()=>{if(!T.value||!r.value||!n.value)return;const N=r.value.getBoundingClientRect(),l=n.value.offsetHeight,H=window.innerHeight-N.bottom,Q=N.top;R.value=H<l&&Q>H},O=()=>{T.value=!T.value,T.value&&zT(A)};return Ms(()=>{window.addEventListener("scroll",A,!0),window.addEventListener("resize",A)}),Er(()=>{window.removeEventListener("scroll",A,!0),window.removeEventListener("resize",A)}),(N,l)=>(P(),y("div",od,[S("button",{ref_key:"dropdownButton",ref:r,onClick:O,class:"w-[360px] px-2 py-1.5 bg-white border border-stone-200 rounded text-sm flex items-center justify-start space-x-1.5 hover:bg-stone-50"},[F(ls,{verb:o.value.request.method},null,8,["verb"]),S("span",Ad,[S("span",id,ne(o.value.request.url.pathname),1),S("span",Sd,ne(Re(bT)(o.value.request.url)),1)]),F(Re(aI),{class:ge(["size-4",{"rotate-180":T.value}])},null,8,["class"])],512),T.value?(P(),y("div",{key:0,ref_key:"dropdownList",ref:n,class:ge(["absolute z-50 w-full bg-white border border-stone-200 rounded-md shadow-lg max-h-60 overflow-auto",{"bottom-[calc(100%+0.25rem)]":R.value,"mt-1":!R.value}])},[S("div",Od,[(P(!0),y(le,null,Je(N.requests,C=>(P(),y("button",{key:C.id,onClick:H=>i(C.id),class:ge(["w-full px-2 py-1.5 flex items-center justify-start space-x-2 text-sm hover:bg-stone-200",{"bg-stone-100":C.id===N.currentRequestId}])},[F(ls,{verb:C.request.method},null,8,["verb"]),S("span",ad,[S("span",Nd,ne(C.request.url.pathname),1),S("span",ld,ne(Re(bT)(C.request.url)),1)])],10,Id))),128))])],2)):Ee("",!0)]))}}),Cd={class:"z-[9999] text-stone-900 fixed left-0 bottom-0 bg-transparent cursor-pointer"},Ld={class:"p-1 pt-1.5"},cd=Ne({__name:"MinimizedDebugbar",setup(e){return(t,E)=>(P(),y("div",Cd,[S("div",Ld,[F(oA)])]))}}),ud={key:1,class:"z-[9999] text-stone-900 fixed left-0 bottom-0 w-full"},pd={class:"flex items-center justify-between bg-stone-100 border-b border-stone-200"},fd={class:"px-3 space-x-2"},Dd=["title"],Pd={key:2,class:"z-[9999] text-stone-900 fixed left-0 bottom-0 w-full"},dd={class:"flex grow"},Md={class:"flex flex-wrap-reverse justify-end items-center space-x-3 pr-1"},Ud={class:"flex space-x-2"},hd={class:"text-sm text-stone-600 font-medium tracking-wide"},Gd={class:"flex items-center"},gd={class:"flex items-center pl-1 space-x-2"},md=["title"],Hd=Ne({__name:"Debugbar",setup(e){let t=Ic(),E=Ir();const s=Qe(null),T=rt({activeTab:"",minimized:E.config.minimized,isResizing:!1,isPolling:E.config.mode==="poll",height:E.config.height}),r=tt(()=>T.activeTab!=""),n=tt(()=>!1);let R=null;const o=()=>{console.log('Using debugbar in "polling mode". Consider using "ws" mode for better performance (requires ActionCable).'),setInterval(()=>{T.isPolling&&fetch(E.config.pollUrl).then(N=>N.json()).then(N=>{if(N.length==0)return;console.log(N);const l=t.addRequests(N);r.value||t.setCurrentRequestById(l[l.length-1]),fetch(E.config.pollUrl+"/confirm",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({ids:l})})})},E.config.poll.interval)};E.config.mode==="ws"?R=OI.createConsumer(E.config.actionCableUrl).subscriptions.create({channel:E.config.cable.channelName},{connected(){console.log("🟢 Connected to channel"),R.send({ids:[]})},disconnected(){console.log("🔴 Disconnected from channel")},received(N){if(N.length==0)return;const l=t.addRequests(N);r.value||t.setCurrentRequestById(l[l.length-1]),setTimeout(()=>{R.send({ids:l})},50)}}):E.config.mode==="poll"?o():console.log('Using debugbar in "offline mode", ideal for demos using fixtures.');const i=()=>{console.log("Clearing requests"),T.activeTab="",t.clearRequests(),R==null||R.send({clear:!0}),T.isPolling=!0},A=()=>{T.isPolling=!T.isPolling};Ms(()=>{window.onresize=function(){window.innerHeight<T.height&&(T.height=window.innerHeight-s.value.clientHeight)},document.onmousemove=function(N){T.isResizing&&(T.height=window.innerHeight-N.clientY-s.value.clientHeight)},document.onmouseup=function(N){T.isResizing=!1}});const O=N=>{window.innerHeight<T.height&&(T.height=window.innerHeight-s.value.clientHeight*2),T.activeTab=N};return(N,l)=>(P(),y(le,null,[T.minimized?(P(),Ae(cd,{key:0,onClick:l[0]||(l[0]=C=>T.minimized=!1)})):Ee("",!0),!T.minimized&&Re(t).currentRequest==null?(P(),y("div",ud,[l[10]||(l[10]=S("div",{class:"h-0.5 bg-red-700 cursor-row-resize"},null,-1)),S("div",pd,[l[9]||(l[9]=S("div",{class:"px-5 py-1.5 italic"},"No request yet",-1)),S("div",fd,[Re(E).config.mode=="poll"?(P(),y("button",{key:0,onClick:A,title:T.isPolling?"Pause polling":"Resume polling"},[T.isPolling?(P(),Ae(Re(Sn),{key:0,class:"size-4"})):Ee("",!0),T.isPolling?Ee("",!0):(P(),Ae(Re(On),{key:1,class:"size-4"}))],8,Dd)):Ee("",!0),S("button",{onClick:l[1]||(l[1]=C=>T.minimized=!0),title:"Hide in the corner"},[F(Re(An),{class:"size-4"})])])])])):Ee("",!0),!T.minimized&&Re(t).currentRequest?(P(),y("div",Pd,[S("div",{id:"draggable-bar",onMousedown:l[2]||(l[2]=C=>T.isResizing=!0),class:"h-0.5 bg-red-700 cursor-row-resize"},null,32),S("div",{id:"debugbar-header",ref_key:"header",ref:s,class:"flex flex-wrap-reverse justify-end px-1 items-center bg-stone-100 border-b-2 border-stone-300"},[S("div",dd,[S("div",{onClick:l[3]||(l[3]=C=>T.minimized=!0),class:"p-1 pt-1.5"},[F(oA)]),(P(!0),y(le,null,Je(Re(t).currentRequest.dataForTabs,(C,H)=>(P(),Ae(Cc,{key:"k",label:C.label,count:C==null?void 0:C.count,"is-active":H===T.activeTab,disabled:C.count==0,onClick:Q=>O(H)},{default:Te(()=>[ye(ne(C.label),1)]),_:2},1032,["label","count","is-active","disabled","onClick"]))),128)),n.value?(P(),y("button",{key:0,onClick:l[4]||(l[4]=C=>O("debug")),class:ge(["px-3 py-1.5 text-stone-600",{"bg-stone-300":T.activeTab=="debug"}])},[F(Re(NI),{class:"size-4"})],2)):Ee("",!0)]),S("div",Md,[S("div",Ud,[F(Rd,{request:Re(t).currentRequest},null,8,["request"])]),S("div",{onClick:l[5]||(l[5]=C=>O("request")),class:"flex space-x-2 cursor-pointer"},[S("span",hd,ne(Re(t).currentRequest.routeAlias),1),F(Nr,{code:Re(t).currentRequest.meta.status},null,8,["code"])]),S("div",Gd,[F(_d,{requests:Re(t).requests,"current-request-id":Re(t).currentRequest.id,onSelect:l[6]||(l[6]=C=>Re(t).setCurrentRequestById(C))},null,8,["requests","current-request-id"]),S("div",gd,[S("button",{onClick:i,title:"Clear all requests (frontend and backend)"},[F(Re(_I),{class:"size-4"})]),Re(E).config.mode=="poll"?(P(),y("button",{key:0,onClick:A,title:T.isPolling?"Pause polling":"Resume polling"},[T.isPolling?(P(),Ae(Re(Sn),{key:0,class:"size-4"})):Ee("",!0),T.isPolling?Ee("",!0):(P(),Ae(Re(On),{key:1,class:"size-4"}))],8,md)):Ee("",!0),r.value?Ee("",!0):(P(),y("button",{key:1,onClick:l[7]||(l[7]=C=>T.minimized=!0),title:"Hide in the corner"},[F(Re(An),{class:"size-4"})])),r.value?(P(),y("button",{key:2,onClick:l[8]||(l[8]=C=>T.activeTab=""),title:"Close"},[F(Re(CI),{class:"size-4"})])):Ee("",!0)])])])],512),T.activeTab!=""?(P(),Ae(rd,{key:0,style:fs(`height: ${T.height}px`),request:Re(t).currentRequest,activeTab:T.activeTab},null,8,["style","request","activeTab"])):Ee("",!0)])):Ee("",!0)],64))}}),Bd=`pre code.hljs{display:block;overflow-x:auto;padding:1em}code.hljs{padding:3px 5px}/*!
25
42
  Theme: GitHub
26
43
  Description: Light theme as seen on github.com
27
44
  Author: github.com
@@ -30,5 +47,5 @@ ${JSON.stringify(n,void 0,2)}`)}}}var KA=class{constructor(e){this.indentation=e
30
47
 
31
48
  Outdated base version: https://github.com/primer/github-syntax-light
32
49
  Current colors taken from GitHub's CSS
33
- */.hljs{color:#24292e;background:#fff}.hljs-doctag,.hljs-keyword,.hljs-meta .hljs-keyword,.hljs-template-tag,.hljs-template-variable,.hljs-type,.hljs-variable.language_{color:#d73a49}.hljs-title,.hljs-title.class_,.hljs-title.class_.inherited__,.hljs-title.function_{color:#6f42c1}.hljs-attr,.hljs-attribute,.hljs-literal,.hljs-meta,.hljs-number,.hljs-operator,.hljs-variable,.hljs-selector-attr,.hljs-selector-class,.hljs-selector-id{color:#005cc5}.hljs-regexp,.hljs-string,.hljs-meta .hljs-string{color:#032f62}.hljs-built_in,.hljs-symbol{color:#e36209}.hljs-comment,.hljs-code,.hljs-formula{color:#6a737d}.hljs-name,.hljs-quote,.hljs-selector-tag,.hljs-selector-pseudo{color:#22863a}.hljs-subst{color:#24292e}.hljs-section{color:#005cc5;font-weight:700}.hljs-bullet{color:#735c0f}.hljs-emphasis{color:#24292e;font-style:italic}.hljs-strong{color:#24292e;font-weight:700}.hljs-addition{color:#22863a;background-color:#f0fff4}.hljs-deletion{color:#b31d28;background-color:#ffeef0}/*! tailwindcss v3.4.0 | MIT License | https://tailwindcss.com
34
- */*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }pre,pre code.hljs{margin:0!important;width:100%;padding:0!important}.visible{visibility:visible}.fixed{position:fixed}.bottom-0{bottom:0}.left-0{left:0}.z-\\[9999\\]{z-index:9999}.mx-6{margin-left:1.5rem;margin-right:1.5rem}.mx-auto{margin-left:auto;margin-right:auto}.my-4{margin-top:1rem;margin-bottom:1rem}.mb-2{margin-bottom:.5rem}.ml-4{margin-left:1rem}.mt-0{margin-top:0}.mt-0\\.5{margin-top:.125rem}.mt-1{margin-top:.25rem}.mt-10{margin-top:2.5rem}.mt-16{margin-top:4rem}.mt-2{margin-top:.5rem}.mt-3{margin-top:.75rem}.mt-4{margin-top:1rem}.mt-6{margin-top:1.5rem}.mt-8{margin-top:2rem}.inline{display:inline}.flex{display:flex}.table{display:table}.hidden{display:none}.aspect-video{aspect-ratio:16 / 9}.size-3{width:.75rem;height:.75rem}.size-4{width:1rem;height:1rem}.size-5{width:1.25rem;height:1.25rem}.h-0{height:0px}.h-0\\.5{height:.125rem}.h-5{height:1.25rem}.h-6{height:1.5rem}.w-1\\/2{width:50%}.w-16{width:4rem}.w-20{width:5rem}.w-24{width:6rem}.w-32{width:8rem}.w-36{width:9rem}.w-40{width:10rem}.w-5{width:1.25rem}.w-6{width:1.5rem}.w-\\[330px\\]{width:330px}.w-full{width:100%}.max-w-2xl{max-width:42rem}.max-w-3xl{max-width:48rem}.max-w-xl{max-width:36rem}.flex-none{flex:none}.grow{flex-grow:1}.border-separate{border-collapse:separate}.border-spacing-1{--tw-border-spacing-x: .25rem;--tw-border-spacing-y: .25rem;border-spacing:var(--tw-border-spacing-x) var(--tw-border-spacing-y)}.-rotate-90{--tw-rotate: -90deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.cursor-pointer{cursor:pointer}.cursor-row-resize{cursor:row-resize}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.justify-end{justify-content:flex-end}.justify-between{justify-content:space-between}.gap-x-2{-moz-column-gap:.5rem;column-gap:.5rem}.gap-x-3{-moz-column-gap:.75rem;column-gap:.75rem}.gap-x-4{-moz-column-gap:1rem;column-gap:1rem}.space-x-1>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.25rem * var(--tw-space-x-reverse));margin-left:calc(.25rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-3>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.75rem * var(--tw-space-x-reverse));margin-left:calc(.75rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-4>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(1rem * var(--tw-space-x-reverse));margin-left:calc(1rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-8>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(2rem * var(--tw-space-x-reverse));margin-left:calc(2rem * calc(1 - var(--tw-space-x-reverse)))}.space-y-1>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.25rem * var(--tw-space-y-reverse))}.space-y-3>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.75rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.75rem * var(--tw-space-y-reverse))}.space-y-8>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(2rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(2rem * var(--tw-space-y-reverse))}.divide-y>:not([hidden])~:not([hidden]){--tw-divide-y-reverse: 0;border-top-width:calc(1px * calc(1 - var(--tw-divide-y-reverse)));border-bottom-width:calc(1px * var(--tw-divide-y-reverse))}.divide-stone-200>:not([hidden])~:not([hidden]){--tw-divide-opacity: 1;border-color:rgb(231 229 228 / var(--tw-divide-opacity))}.divide-stone-300>:not([hidden])~:not([hidden]){--tw-divide-opacity: 1;border-color:rgb(214 211 209 / var(--tw-divide-opacity))}.overflow-scroll{overflow:scroll}.whitespace-nowrap{white-space:nowrap}.break-all{word-break:break-all}.rounded{border-radius:.25rem}.rounded-full{border-radius:9999px}.rounded-sm{border-radius:.125rem}.rounded-xl{border-radius:.75rem}.border{border-width:1px}.border-0{border-width:0px}.border-b{border-bottom-width:1px}.border-b-2{border-bottom-width:2px}.border-l{border-left-width:1px}.border-indigo-600{--tw-border-opacity: 1;border-color:rgb(79 70 229 / var(--tw-border-opacity))}.border-stone-200{--tw-border-opacity: 1;border-color:rgb(231 229 228 / var(--tw-border-opacity))}.border-stone-300{--tw-border-opacity: 1;border-color:rgb(214 211 209 / var(--tw-border-opacity))}.\\!bg-amber-400{--tw-bg-opacity: 1 !important;background-color:rgb(251 191 36 / var(--tw-bg-opacity))!important}.\\!bg-emerald-500{--tw-bg-opacity: 1 !important;background-color:rgb(16 185 129 / var(--tw-bg-opacity))!important}.\\!bg-indigo-500{--tw-bg-opacity: 1 !important;background-color:rgb(99 102 241 / var(--tw-bg-opacity))!important}.\\!bg-red-400{--tw-bg-opacity: 1 !important;background-color:rgb(248 113 113 / var(--tw-bg-opacity))!important}.\\!bg-red-700{--tw-bg-opacity: 1 !important;background-color:rgb(185 28 28 / var(--tw-bg-opacity))!important}.bg-amber-400{--tw-bg-opacity: 1;background-color:rgb(251 191 36 / var(--tw-bg-opacity))}.bg-amber-50{--tw-bg-opacity: 1;background-color:rgb(255 251 235 / var(--tw-bg-opacity))}.bg-amber-600{--tw-bg-opacity: 1;background-color:rgb(217 119 6 / var(--tw-bg-opacity))}.bg-blue-500{--tw-bg-opacity: 1;background-color:rgb(59 130 246 / var(--tw-bg-opacity))}.bg-emerald-600{--tw-bg-opacity: 1;background-color:rgb(5 150 105 / var(--tw-bg-opacity))}.bg-fuchsia-500{--tw-bg-opacity: 1;background-color:rgb(217 70 239 / var(--tw-bg-opacity))}.bg-gray-50{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity))}.bg-green-600{--tw-bg-opacity: 1;background-color:rgb(22 163 74 / var(--tw-bg-opacity))}.bg-red-100{--tw-bg-opacity: 1;background-color:rgb(254 226 226 / var(--tw-bg-opacity))}.bg-red-400{--tw-bg-opacity: 1;background-color:rgb(248 113 113 / var(--tw-bg-opacity))}.bg-red-600{--tw-bg-opacity: 1;background-color:rgb(220 38 38 / var(--tw-bg-opacity))}.bg-red-700{--tw-bg-opacity: 1;background-color:rgb(185 28 28 / var(--tw-bg-opacity))}.bg-sky-600{--tw-bg-opacity: 1;background-color:rgb(2 132 199 / var(--tw-bg-opacity))}.bg-stone-100{--tw-bg-opacity: 1;background-color:rgb(245 245 244 / var(--tw-bg-opacity))}.bg-stone-300{--tw-bg-opacity: 1;background-color:rgb(214 211 209 / var(--tw-bg-opacity))}.bg-stone-400{--tw-bg-opacity: 1;background-color:rgb(168 162 158 / var(--tw-bg-opacity))}.bg-stone-50{--tw-bg-opacity: 1;background-color:rgb(250 250 249 / var(--tw-bg-opacity))}.bg-transparent{background-color:transparent}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.object-cover{-o-object-fit:cover;object-fit:cover}.p-0{padding:0}.p-0\\.5{padding:.125rem}.p-1{padding:.25rem}.p-4{padding:1rem}.px-1{padding-left:.25rem;padding-right:.25rem}.px-1\\.5{padding-left:.375rem;padding-right:.375rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-5{padding-left:1.25rem;padding-right:1.25rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.py-0{padding-top:0;padding-bottom:0}.py-0\\.5{padding-top:.125rem;padding-bottom:.125rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-1\\.5{padding-top:.375rem;padding-bottom:.375rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-3\\.5{padding-top:.875rem;padding-bottom:.875rem}.py-32{padding-top:8rem;padding-bottom:8rem}.py-4{padding-top:1rem;padding-bottom:1rem}.pl-1{padding-left:.25rem}.pl-4{padding-left:1rem}.pl-9{padding-left:2.25rem}.pr-1{padding-right:.25rem}.pr-3{padding-right:.75rem}.pr-8{padding-right:2rem}.pt-1{padding-top:.25rem}.pt-1\\.5{padding-top:.375rem}.text-left{text-align:left}.text-center{text-align:center}.text-right{text-align:right}.font-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.text-2xl{font-size:1.5rem;line-height:2rem}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.italic{font-style:italic}.leading-6{line-height:1.5rem}.leading-7{line-height:1.75rem}.leading-8{line-height:2rem}.tracking-tight{letter-spacing:-.025em}.tracking-wide{letter-spacing:.025em}.\\!text-white{--tw-text-opacity: 1 !important;color:rgb(255 255 255 / var(--tw-text-opacity))!important}.text-black{--tw-text-opacity: 1;color:rgb(0 0 0 / var(--tw-text-opacity))}.text-gray-300{--tw-text-opacity: 1;color:rgb(209 213 219 / var(--tw-text-opacity))}.text-gray-400{--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity))}.text-gray-500{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity))}.text-gray-600{--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity))}.text-gray-700{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity))}.text-gray-800{--tw-text-opacity: 1;color:rgb(31 41 55 / var(--tw-text-opacity))}.text-gray-900{--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity))}.text-indigo-600{--tw-text-opacity: 1;color:rgb(79 70 229 / var(--tw-text-opacity))}.text-orange-600{--tw-text-opacity: 1;color:rgb(234 88 12 / var(--tw-text-opacity))}.text-red-600{--tw-text-opacity: 1;color:rgb(220 38 38 / var(--tw-text-opacity))}.text-stone-400{--tw-text-opacity: 1;color:rgb(168 162 158 / var(--tw-text-opacity))}.text-stone-500{--tw-text-opacity: 1;color:rgb(120 113 108 / var(--tw-text-opacity))}.text-stone-600{--tw-text-opacity: 1;color:rgb(87 83 78 / var(--tw-text-opacity))}.text-stone-800{--tw-text-opacity: 1;color:rgb(41 37 36 / var(--tw-text-opacity))}.text-stone-900{--tw-text-opacity: 1;color:rgb(28 25 23 / var(--tw-text-opacity))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.underline{text-decoration-line:underline}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}button{cursor:pointer}.simple-button{border-width:1px;--tw-border-opacity: 1;border-color:rgb(214 211 209 / var(--tw-border-opacity));padding-left:.375rem;padding-right:.375rem;font-size:.875rem;line-height:1.25rem;--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.simple-button:hover{--tw-bg-opacity: 1;background-color:rgb(231 229 228 / var(--tw-bg-opacity));--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}button[disabled]{cursor:not-allowed;opacity:.5}@media (min-width: 640px){.sm\\:pl-0{padding-left:0}.sm\\:text-4xl{font-size:2.25rem;line-height:2.5rem}}@media (min-width: 1024px){.lg\\:px-8{padding-left:2rem;padding-right:2rem}}`,YG=De({__name:"App",setup(e){return(t,E)=>(U(),Y("div",null,[$(Re(cT),{id:"__debugbar-shadow-root"},{default:ne(()=>[$(FG),$(Re(CT),null,{default:ne(()=>[Ye(Ae(Re(vG)),1)]),_:1})]),_:1})]))}});UE.registerLanguage("sql",Xi);UE.registerLanguage("json",$i);const xG=ca();Na(YG).use(_a).use(xG).use(ha).mount("#__debugbar");
50
+ */.hljs{color:#24292e;background:#fff}.hljs-doctag,.hljs-keyword,.hljs-meta .hljs-keyword,.hljs-template-tag,.hljs-template-variable,.hljs-type,.hljs-variable.language_{color:#d73a49}.hljs-title,.hljs-title.class_,.hljs-title.class_.inherited__,.hljs-title.function_{color:#6f42c1}.hljs-attr,.hljs-attribute,.hljs-literal,.hljs-meta,.hljs-number,.hljs-operator,.hljs-variable,.hljs-selector-attr,.hljs-selector-class,.hljs-selector-id{color:#005cc5}.hljs-regexp,.hljs-string,.hljs-meta .hljs-string{color:#032f62}.hljs-built_in,.hljs-symbol{color:#e36209}.hljs-comment,.hljs-code,.hljs-formula{color:#6a737d}.hljs-name,.hljs-quote,.hljs-selector-tag,.hljs-selector-pseudo{color:#22863a}.hljs-subst{color:#24292e}.hljs-section{color:#005cc5;font-weight:700}.hljs-bullet{color:#735c0f}.hljs-emphasis{color:#24292e;font-style:italic}.hljs-strong{color:#24292e;font-weight:700}.hljs-addition{color:#22863a;background-color:#f0fff4}.hljs-deletion{color:#b31d28;background-color:#ffeef0}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }/*! tailwindcss v3.4.17 | MIT License | https://tailwindcss.com
51
+ */*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:Inter,ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}pre,pre code.hljs{margin:0!important;width:100%;padding:0!important}button{cursor:pointer}button[disabled]{cursor:not-allowed;opacity:.5}.visible{visibility:visible}.fixed{position:fixed}.absolute{position:absolute}.bottom-0{bottom:0}.bottom-\\[calc\\(100\\%\\+0\\.25rem\\)\\]{bottom:calc(100% + .25rem)}.left-0{left:0}.z-50{z-index:50}.z-\\[9999\\]{z-index:9999}.mx-2{margin-left:.5rem;margin-right:.5rem}.mx-6{margin-left:1.5rem;margin-right:1.5rem}.my-4{margin-top:1rem;margin-bottom:1rem}.mb-2{margin-bottom:.5rem}.ml-3{margin-left:.75rem}.ml-4{margin-left:1rem}.mt-0\\.5{margin-top:.125rem}.mt-1{margin-top:.25rem}.mt-3{margin-top:.75rem}.mt-4{margin-top:1rem}.inline{display:inline}.flex{display:flex}.table{display:table}.hidden{display:none}.size-3{width:.75rem;height:.75rem}.size-3\\.5{width:.875rem;height:.875rem}.size-4{width:1rem;height:1rem}.size-5{width:1.25rem;height:1.25rem}.h-0\\.5{height:.125rem}.h-2{height:.5rem}.h-full{height:100%}.max-h-60{max-height:15rem}.w-1\\/2{width:50%}.w-16{width:4rem}.w-2{width:.5rem}.w-20{width:5rem}.w-24{width:6rem}.w-32{width:8rem}.w-36{width:9rem}.w-40{width:10rem}.w-\\[360px\\]{width:360px}.w-full{width:100%}.grow{flex-grow:1}.border-separate{border-collapse:separate}.border-spacing-1{--tw-border-spacing-x: .25rem;--tw-border-spacing-y: .25rem;border-spacing:var(--tw-border-spacing-x) var(--tw-border-spacing-y)}.-rotate-90{--tw-rotate: -90deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rotate-180{--tw-rotate: 180deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.cursor-auto{cursor:auto}.cursor-pointer{cursor:pointer}.cursor-row-resize{cursor:row-resize}.resize{resize:both}.flex-col{flex-direction:column}.flex-wrap-reverse{flex-wrap:wrap-reverse}.items-center{align-items:center}.justify-start{justify-content:flex-start}.justify-end{justify-content:flex-end}.justify-between{justify-content:space-between}.space-x-1>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.25rem * var(--tw-space-x-reverse));margin-left:calc(.25rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-1\\.5>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.375rem * var(--tw-space-x-reverse));margin-left:calc(.375rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-3>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.75rem * var(--tw-space-x-reverse));margin-left:calc(.75rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-4>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(1rem * var(--tw-space-x-reverse));margin-left:calc(1rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-8>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(2rem * var(--tw-space-x-reverse));margin-left:calc(2rem * calc(1 - var(--tw-space-x-reverse)))}.space-y-1>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.25rem * var(--tw-space-y-reverse))}.space-y-3>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.75rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.75rem * var(--tw-space-y-reverse))}.space-y-8>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(2rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(2rem * var(--tw-space-y-reverse))}.divide-y>:not([hidden])~:not([hidden]){--tw-divide-y-reverse: 0;border-top-width:calc(1px * calc(1 - var(--tw-divide-y-reverse)));border-bottom-width:calc(1px * var(--tw-divide-y-reverse))}.divide-stone-200>:not([hidden])~:not([hidden]){--tw-divide-opacity: 1;border-color:rgb(231 229 228 / var(--tw-divide-opacity, 1))}.divide-stone-300>:not([hidden])~:not([hidden]){--tw-divide-opacity: 1;border-color:rgb(214 211 209 / var(--tw-divide-opacity, 1))}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-scroll{overflow:scroll}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.whitespace-nowrap{white-space:nowrap}.text-nowrap{text-wrap:nowrap}.break-all{word-break:break-all}.rounded{border-radius:.25rem}.rounded-full{border-radius:9999px}.rounded-md{border-radius:.375rem}.rounded-t-sm{border-top-left-radius:.125rem;border-top-right-radius:.125rem}.border{border-width:1px}.border-0{border-width:0px}.border-b{border-bottom-width:1px}.border-b-2{border-bottom-width:2px}.border-stone-200{--tw-border-opacity: 1;border-color:rgb(231 229 228 / var(--tw-border-opacity, 1))}.border-stone-300{--tw-border-opacity: 1;border-color:rgb(214 211 209 / var(--tw-border-opacity, 1))}.\\!bg-amber-400{--tw-bg-opacity: 1 !important;background-color:rgb(251 191 36 / var(--tw-bg-opacity, 1))!important}.\\!bg-emerald-500{--tw-bg-opacity: 1 !important;background-color:rgb(16 185 129 / var(--tw-bg-opacity, 1))!important}.\\!bg-indigo-500{--tw-bg-opacity: 1 !important;background-color:rgb(99 102 241 / var(--tw-bg-opacity, 1))!important}.\\!bg-indigo-700{--tw-bg-opacity: 1 !important;background-color:rgb(67 56 202 / var(--tw-bg-opacity, 1))!important}.\\!bg-purple-700{--tw-bg-opacity: 1 !important;background-color:rgb(126 34 206 / var(--tw-bg-opacity, 1))!important}.\\!bg-red-400{--tw-bg-opacity: 1 !important;background-color:rgb(248 113 113 / var(--tw-bg-opacity, 1))!important}.\\!bg-red-700{--tw-bg-opacity: 1 !important;background-color:rgb(185 28 28 / var(--tw-bg-opacity, 1))!important}.\\!bg-sky-700{--tw-bg-opacity: 1 !important;background-color:rgb(3 105 161 / var(--tw-bg-opacity, 1))!important}.\\!bg-violet-500{--tw-bg-opacity: 1 !important;background-color:rgb(139 92 246 / var(--tw-bg-opacity, 1))!important}.bg-amber-400{--tw-bg-opacity: 1;background-color:rgb(251 191 36 / var(--tw-bg-opacity, 1))}.bg-amber-50{--tw-bg-opacity: 1;background-color:rgb(255 251 235 / var(--tw-bg-opacity, 1))}.bg-amber-600{--tw-bg-opacity: 1;background-color:rgb(217 119 6 / var(--tw-bg-opacity, 1))}.bg-blue-500{--tw-bg-opacity: 1;background-color:rgb(59 130 246 / var(--tw-bg-opacity, 1))}.bg-emerald-500{--tw-bg-opacity: 1;background-color:rgb(16 185 129 / var(--tw-bg-opacity, 1))}.bg-emerald-600{--tw-bg-opacity: 1;background-color:rgb(5 150 105 / var(--tw-bg-opacity, 1))}.bg-fuchsia-500{--tw-bg-opacity: 1;background-color:rgb(217 70 239 / var(--tw-bg-opacity, 1))}.bg-green-600{--tw-bg-opacity: 1;background-color:rgb(22 163 74 / var(--tw-bg-opacity, 1))}.bg-red-100{--tw-bg-opacity: 1;background-color:rgb(254 226 226 / var(--tw-bg-opacity, 1))}.bg-red-400{--tw-bg-opacity: 1;background-color:rgb(248 113 113 / var(--tw-bg-opacity, 1))}.bg-red-600{--tw-bg-opacity: 1;background-color:rgb(220 38 38 / var(--tw-bg-opacity, 1))}.bg-red-700{--tw-bg-opacity: 1;background-color:rgb(185 28 28 / var(--tw-bg-opacity, 1))}.bg-rose-500{--tw-bg-opacity: 1;background-color:rgb(244 63 94 / var(--tw-bg-opacity, 1))}.bg-sky-600{--tw-bg-opacity: 1;background-color:rgb(2 132 199 / var(--tw-bg-opacity, 1))}.bg-slate-700{--tw-bg-opacity: 1;background-color:rgb(51 65 85 / var(--tw-bg-opacity, 1))}.bg-stone-100{--tw-bg-opacity: 1;background-color:rgb(245 245 244 / var(--tw-bg-opacity, 1))}.bg-stone-300{--tw-bg-opacity: 1;background-color:rgb(214 211 209 / var(--tw-bg-opacity, 1))}.bg-stone-400{--tw-bg-opacity: 1;background-color:rgb(168 162 158 / var(--tw-bg-opacity, 1))}.bg-stone-50{--tw-bg-opacity: 1;background-color:rgb(250 250 249 / var(--tw-bg-opacity, 1))}.bg-stone-700{--tw-bg-opacity: 1;background-color:rgb(68 64 60 / var(--tw-bg-opacity, 1))}.bg-transparent{background-color:transparent}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.p-0\\.5{padding:.125rem}.p-1{padding:.25rem}.p-4{padding:1rem}.px-1{padding-left:.25rem;padding-right:.25rem}.px-1\\.5{padding-left:.375rem;padding-right:.375rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-5{padding-left:1.25rem;padding-right:1.25rem}.py-0\\.5{padding-top:.125rem;padding-bottom:.125rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-1\\.5{padding-top:.375rem;padding-bottom:.375rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-2\\.5{padding-top:.625rem;padding-bottom:.625rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-3\\.5{padding-top:.875rem;padding-bottom:.875rem}.py-4{padding-top:1rem;padding-bottom:1rem}.pl-1{padding-left:.25rem}.pl-1\\.5{padding-left:.375rem}.pl-4{padding-left:1rem}.pr-1{padding-right:.25rem}.pr-3{padding-right:.75rem}.pr-8{padding-right:2rem}.pt-1\\.5{padding-top:.375rem}.text-left{text-align:left}.text-center{text-align:center}.text-right{text-align:right}.font-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.italic{font-style:italic}.leading-8{line-height:2rem}.tracking-wide{letter-spacing:.025em}.\\!text-white{--tw-text-opacity: 1 !important;color:rgb(255 255 255 / var(--tw-text-opacity, 1))!important}.text-black{--tw-text-opacity: 1;color:rgb(0 0 0 / var(--tw-text-opacity, 1))}.text-blue-700{--tw-text-opacity: 1;color:rgb(29 78 216 / var(--tw-text-opacity, 1))}.text-gray-400{--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity, 1))}.text-gray-500{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity, 1))}.text-gray-800{--tw-text-opacity: 1;color:rgb(31 41 55 / var(--tw-text-opacity, 1))}.text-orange-600{--tw-text-opacity: 1;color:rgb(234 88 12 / var(--tw-text-opacity, 1))}.text-red-600{--tw-text-opacity: 1;color:rgb(220 38 38 / var(--tw-text-opacity, 1))}.text-stone-400{--tw-text-opacity: 1;color:rgb(168 162 158 / var(--tw-text-opacity, 1))}.text-stone-500{--tw-text-opacity: 1;color:rgb(120 113 108 / var(--tw-text-opacity, 1))}.text-stone-600{--tw-text-opacity: 1;color:rgb(87 83 78 / var(--tw-text-opacity, 1))}.text-stone-800{--tw-text-opacity: 1;color:rgb(41 37 36 / var(--tw-text-opacity, 1))}.text-stone-900{--tw-text-opacity: 1;color:rgb(28 25 23 / var(--tw-text-opacity, 1))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.underline{text-decoration-line:underline}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}body{font-family:Inter,ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-size:.875rem;line-height:1.25rem;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-optical-sizing:auto}.hover\\:bg-stone-200:hover{--tw-bg-opacity: 1;background-color:rgb(231 229 228 / var(--tw-bg-opacity, 1))}.hover\\:bg-stone-50:hover{--tw-bg-opacity: 1;background-color:rgb(250 250 249 / var(--tw-bg-opacity, 1))}@media (min-width: 640px){.sm\\:pl-0{padding-left:0}}`,bd=Ne({__name:"App",setup(e){return(t,E)=>(P(),y("div",null,[F(Re(Ss),{id:"__debugbar-shadow-root"},{default:Te(()=>[F(Hd),F(Re(is),null,{default:Te(()=>[ye(ne(Re(Bd)),1)]),_:1})]),_:1})]))}});LE.registerLanguage("sql",Mi);LE.registerLanguage("json",Ui);const yd=tI();jO(bd).use(zO).use(yd).use(SI).mount("#__debugbar");