@gsc-basic/components 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/es/_virtual/_plugin-vue_export-helper.js +9 -0
- package/dist/es/index.js +35 -0
- package/dist/es/node_modules/@codemirror/autocomplete/dist/index.js +1371 -0
- package/dist/es/node_modules/@codemirror/commands/dist/index.js +838 -0
- package/dist/es/node_modules/@codemirror/lang-java/dist/index.js +38 -0
- package/dist/es/node_modules/@codemirror/lang-javascript/dist/index.js +300 -0
- package/dist/es/node_modules/@codemirror/lang-json/dist/index.js +48 -0
- package/dist/es/node_modules/@codemirror/lang-python/dist/index.js +399 -0
- package/dist/es/node_modules/@codemirror/lang-sql/dist/index.js +497 -0
- package/dist/es/node_modules/@codemirror/lang-xml/dist/index.js +216 -0
- package/dist/es/node_modules/@codemirror/lang-yaml/dist/index.js +51 -0
- package/dist/es/node_modules/@codemirror/language/dist/index.js +1299 -0
- package/dist/es/node_modules/@codemirror/lint/dist/index.js +649 -0
- package/dist/es/node_modules/@codemirror/search/dist/index.js +872 -0
- package/dist/es/node_modules/@codemirror/state/dist/index.js +2639 -0
- package/dist/es/node_modules/@codemirror/theme-one-dark/dist/index.js +132 -0
- package/dist/es/node_modules/@codemirror/view/dist/index.js +7280 -0
- package/dist/es/node_modules/@lezer/common/dist/index.js +1430 -0
- package/dist/es/node_modules/@lezer/highlight/dist/index.js +637 -0
- package/dist/es/node_modules/@lezer/java/dist/index.js +62 -0
- package/dist/es/node_modules/@lezer/javascript/dist/index.js +161 -0
- package/dist/es/node_modules/@lezer/json/dist/index.js +34 -0
- package/dist/es/node_modules/@lezer/lr/dist/index.js +1307 -0
- package/dist/es/node_modules/@lezer/python/dist/index.js +221 -0
- package/dist/es/node_modules/@lezer/xml/dist/index.js +100 -0
- package/dist/es/node_modules/@lezer/yaml/dist/index.js +274 -0
- package/dist/es/node_modules/@marijn/find-cluster-break/src/index.js +69 -0
- package/dist/es/node_modules/@vueuse/core/dist/index.js +125 -0
- package/dist/es/node_modules/@vueuse/shared/dist/index.js +55 -0
- package/dist/es/node_modules/codemirror/dist/index.js +40 -0
- package/dist/es/node_modules/crelt/index.js +27 -0
- package/dist/es/node_modules/lodash-es/_Hash.js +20 -0
- package/dist/es/node_modules/lodash-es/_ListCache.js +20 -0
- package/dist/es/node_modules/lodash-es/_Map.js +6 -0
- package/dist/es/node_modules/lodash-es/_MapCache.js +20 -0
- package/dist/es/node_modules/lodash-es/_Symbol.js +5 -0
- package/dist/es/node_modules/lodash-es/_arrayMap.js +8 -0
- package/dist/es/node_modules/lodash-es/_assocIndexOf.js +10 -0
- package/dist/es/node_modules/lodash-es/_baseGet.js +11 -0
- package/dist/es/node_modules/lodash-es/_baseGetTag.js +10 -0
- package/dist/es/node_modules/lodash-es/_baseIsNative.js +16 -0
- package/dist/es/node_modules/lodash-es/_baseToString.js +18 -0
- package/dist/es/node_modules/lodash-es/_castPath.js +10 -0
- package/dist/es/node_modules/lodash-es/_coreJsData.js +5 -0
- package/dist/es/node_modules/lodash-es/_freeGlobal.js +4 -0
- package/dist/es/node_modules/lodash-es/_getMapData.js +8 -0
- package/dist/es/node_modules/lodash-es/_getNative.js +9 -0
- package/dist/es/node_modules/lodash-es/_getRawTag.js +15 -0
- package/dist/es/node_modules/lodash-es/_getValue.js +6 -0
- package/dist/es/node_modules/lodash-es/_hashClear.js +7 -0
- package/dist/es/node_modules/lodash-es/_hashDelete.js +7 -0
- package/dist/es/node_modules/lodash-es/_hashGet.js +13 -0
- package/dist/es/node_modules/lodash-es/_hashHas.js +9 -0
- package/dist/es/node_modules/lodash-es/_hashSet.js +9 -0
- package/dist/es/node_modules/lodash-es/_isKey.js +12 -0
- package/dist/es/node_modules/lodash-es/_isKeyable.js +7 -0
- package/dist/es/node_modules/lodash-es/_isMasked.js +11 -0
- package/dist/es/node_modules/lodash-es/_listCacheClear.js +6 -0
- package/dist/es/node_modules/lodash-es/_listCacheDelete.js +12 -0
- package/dist/es/node_modules/lodash-es/_listCacheGet.js +8 -0
- package/dist/es/node_modules/lodash-es/_listCacheHas.js +7 -0
- package/dist/es/node_modules/lodash-es/_listCacheSet.js +8 -0
- package/dist/es/node_modules/lodash-es/_mapCacheClear.js +13 -0
- package/dist/es/node_modules/lodash-es/_mapCacheDelete.js +8 -0
- package/dist/es/node_modules/lodash-es/_mapCacheGet.js +7 -0
- package/dist/es/node_modules/lodash-es/_mapCacheHas.js +7 -0
- package/dist/es/node_modules/lodash-es/_mapCacheSet.js +8 -0
- package/dist/es/node_modules/lodash-es/_memoizeCapped.js +11 -0
- package/dist/es/node_modules/lodash-es/_nativeCreate.js +5 -0
- package/dist/es/node_modules/lodash-es/_objectToString.js +7 -0
- package/dist/es/node_modules/lodash-es/_root.js +5 -0
- package/dist/es/node_modules/lodash-es/_stringToPath.js +10 -0
- package/dist/es/node_modules/lodash-es/_toKey.js +10 -0
- package/dist/es/node_modules/lodash-es/_toSource.js +17 -0
- package/dist/es/node_modules/lodash-es/eq.js +6 -0
- package/dist/es/node_modules/lodash-es/get.js +8 -0
- package/dist/es/node_modules/lodash-es/isArray.js +4 -0
- package/dist/es/node_modules/lodash-es/isFunction.js +12 -0
- package/dist/es/node_modules/lodash-es/isNil.js +6 -0
- package/dist/es/node_modules/lodash-es/isObject.js +7 -0
- package/dist/es/node_modules/lodash-es/isObjectLike.js +6 -0
- package/dist/es/node_modules/lodash-es/isString.js +10 -0
- package/dist/es/node_modules/lodash-es/isSymbol.js +9 -0
- package/dist/es/node_modules/lodash-es/memoize.js +18 -0
- package/dist/es/node_modules/lodash-es/toString.js +7 -0
- package/dist/es/node_modules/style-mod/src/style-mod.js +109 -0
- package/dist/es/node_modules/vue-codemirror/dist/vue-codemirror.esm.js +132 -0
- package/dist/es/node_modules/w3c-keyname/index.js +93 -0
- package/dist/es/src/CodeEditor/index.js +6 -0
- package/dist/es/src/CodeEditor/src/index.css +1 -0
- package/dist/es/src/CodeEditor/src/index.vue.js +128 -0
- package/dist/es/src/CodeEditor/src/index2.css +1 -0
- package/dist/es/src/ConfigProvider/index.js +7 -0
- package/dist/es/src/ConfigProvider/src/configProvider.js +14 -0
- package/dist/es/src/ConfigProvider/src/configProviderProps.js +22 -0
- package/dist/es/src/ConfigProvider/src/constants.js +9 -0
- package/dist/es/src/ConfigProvider/src/useGlobalConfig.js +45 -0
- package/dist/es/src/ScaleScreen/index.js +6 -0
- package/dist/es/src/ScaleScreen/src/index.css +1 -0
- package/dist/es/src/ScaleScreen/src/index.vue.js +115 -0
- package/dist/es/src/ScaleScreen/src/index2.css +1 -0
- package/dist/es/src/VideoBackground/index.js +6 -0
- package/dist/es/src/VideoBackground/src/helper.js +29 -0
- package/dist/es/src/VideoBackground/src/index.css +1 -0
- package/dist/es/src/VideoBackground/src/index.vue.js +108 -0
- package/dist/es/src/VideoBackground/src/index2.css +1 -0
- package/dist/es/src/VideoBackground/src/index3.css +1 -0
- package/dist/es/src/VideoBackground/src/videoBackground.js +31 -0
- package/dist/es/src/hooks/useLocale.js +24 -0
- package/dist/es/src/hooks/useNamespace.js +8 -0
- package/dist/es/src/index.js +28 -0
- package/dist/es/src/locale/lang/en-US.js +32 -0
- package/dist/es/src/locale/lang/ja-JP.js +32 -0
- package/dist/es/src/locale/lang/zh-CN.js +32 -0
- package/dist/es/src/styles/tokens.css +1 -0
- package/dist/lib/_virtual/_plugin-vue_export-helper.js +1 -0
- package/dist/lib/index.js +1 -0
- package/dist/lib/node_modules/@codemirror/autocomplete/dist/index.js +1 -0
- package/dist/lib/node_modules/@codemirror/commands/dist/index.js +1 -0
- package/dist/lib/node_modules/@codemirror/lang-java/dist/index.js +1 -0
- package/dist/lib/node_modules/@codemirror/lang-javascript/dist/index.js +13 -0
- package/dist/lib/node_modules/@codemirror/lang-json/dist/index.js +1 -0
- package/dist/lib/node_modules/@codemirror/lang-python/dist/index.js +3 -0
- package/dist/lib/node_modules/@codemirror/lang-sql/dist/index.js +2 -0
- package/dist/lib/node_modules/@codemirror/lang-xml/dist/index.js +1 -0
- package/dist/lib/node_modules/@codemirror/lang-yaml/dist/index.js +1 -0
- package/dist/lib/node_modules/@codemirror/language/dist/index.js +1 -0
- package/dist/lib/node_modules/@codemirror/lint/dist/index.js +1 -0
- package/dist/lib/node_modules/@codemirror/search/dist/index.js +2 -0
- package/dist/lib/node_modules/@codemirror/state/dist/index.js +5 -0
- package/dist/lib/node_modules/@codemirror/theme-one-dark/dist/index.js +1 -0
- package/dist/lib/node_modules/@codemirror/view/dist/index.js +5 -0
- package/dist/lib/node_modules/@lezer/common/dist/index.js +1 -0
- package/dist/lib/node_modules/@lezer/highlight/dist/index.js +1 -0
- package/dist/lib/node_modules/@lezer/java/dist/index.js +1 -0
- package/dist/lib/node_modules/@lezer/javascript/dist/index.js +1 -0
- package/dist/lib/node_modules/@lezer/json/dist/index.js +1 -0
- package/dist/lib/node_modules/@lezer/lr/dist/index.js +1 -0
- package/dist/lib/node_modules/@lezer/python/dist/index.js +1 -0
- package/dist/lib/node_modules/@lezer/xml/dist/index.js +1 -0
- package/dist/lib/node_modules/@lezer/yaml/dist/index.js +1 -0
- package/dist/lib/node_modules/@marijn/find-cluster-break/src/index.js +1 -0
- package/dist/lib/node_modules/@vueuse/core/dist/index.js +1 -0
- package/dist/lib/node_modules/@vueuse/shared/dist/index.js +1 -0
- package/dist/lib/node_modules/codemirror/dist/index.js +1 -0
- package/dist/lib/node_modules/crelt/index.js +1 -0
- package/dist/lib/node_modules/lodash-es/_Hash.js +1 -0
- package/dist/lib/node_modules/lodash-es/_ListCache.js +1 -0
- package/dist/lib/node_modules/lodash-es/_Map.js +1 -0
- package/dist/lib/node_modules/lodash-es/_MapCache.js +1 -0
- package/dist/lib/node_modules/lodash-es/_Symbol.js +1 -0
- package/dist/lib/node_modules/lodash-es/_arrayMap.js +1 -0
- package/dist/lib/node_modules/lodash-es/_assocIndexOf.js +1 -0
- package/dist/lib/node_modules/lodash-es/_baseGet.js +1 -0
- package/dist/lib/node_modules/lodash-es/_baseGetTag.js +1 -0
- package/dist/lib/node_modules/lodash-es/_baseIsNative.js +1 -0
- package/dist/lib/node_modules/lodash-es/_baseToString.js +1 -0
- package/dist/lib/node_modules/lodash-es/_castPath.js +1 -0
- package/dist/lib/node_modules/lodash-es/_coreJsData.js +1 -0
- package/dist/lib/node_modules/lodash-es/_freeGlobal.js +1 -0
- package/dist/lib/node_modules/lodash-es/_getMapData.js +1 -0
- package/dist/lib/node_modules/lodash-es/_getNative.js +1 -0
- package/dist/lib/node_modules/lodash-es/_getRawTag.js +1 -0
- package/dist/lib/node_modules/lodash-es/_getValue.js +1 -0
- package/dist/lib/node_modules/lodash-es/_hashClear.js +1 -0
- package/dist/lib/node_modules/lodash-es/_hashDelete.js +1 -0
- package/dist/lib/node_modules/lodash-es/_hashGet.js +1 -0
- package/dist/lib/node_modules/lodash-es/_hashHas.js +1 -0
- package/dist/lib/node_modules/lodash-es/_hashSet.js +1 -0
- package/dist/lib/node_modules/lodash-es/_isKey.js +1 -0
- package/dist/lib/node_modules/lodash-es/_isKeyable.js +1 -0
- package/dist/lib/node_modules/lodash-es/_isMasked.js +1 -0
- package/dist/lib/node_modules/lodash-es/_listCacheClear.js +1 -0
- package/dist/lib/node_modules/lodash-es/_listCacheDelete.js +1 -0
- package/dist/lib/node_modules/lodash-es/_listCacheGet.js +1 -0
- package/dist/lib/node_modules/lodash-es/_listCacheHas.js +1 -0
- package/dist/lib/node_modules/lodash-es/_listCacheSet.js +1 -0
- package/dist/lib/node_modules/lodash-es/_mapCacheClear.js +1 -0
- package/dist/lib/node_modules/lodash-es/_mapCacheDelete.js +1 -0
- package/dist/lib/node_modules/lodash-es/_mapCacheGet.js +1 -0
- package/dist/lib/node_modules/lodash-es/_mapCacheHas.js +1 -0
- package/dist/lib/node_modules/lodash-es/_mapCacheSet.js +1 -0
- package/dist/lib/node_modules/lodash-es/_memoizeCapped.js +1 -0
- package/dist/lib/node_modules/lodash-es/_nativeCreate.js +1 -0
- package/dist/lib/node_modules/lodash-es/_objectToString.js +1 -0
- package/dist/lib/node_modules/lodash-es/_root.js +1 -0
- package/dist/lib/node_modules/lodash-es/_stringToPath.js +1 -0
- package/dist/lib/node_modules/lodash-es/_toKey.js +1 -0
- package/dist/lib/node_modules/lodash-es/_toSource.js +1 -0
- package/dist/lib/node_modules/lodash-es/eq.js +1 -0
- package/dist/lib/node_modules/lodash-es/get.js +1 -0
- package/dist/lib/node_modules/lodash-es/isArray.js +1 -0
- package/dist/lib/node_modules/lodash-es/isFunction.js +1 -0
- package/dist/lib/node_modules/lodash-es/isNil.js +1 -0
- package/dist/lib/node_modules/lodash-es/isObject.js +1 -0
- package/dist/lib/node_modules/lodash-es/isObjectLike.js +1 -0
- package/dist/lib/node_modules/lodash-es/isString.js +1 -0
- package/dist/lib/node_modules/lodash-es/isSymbol.js +1 -0
- package/dist/lib/node_modules/lodash-es/memoize.js +1 -0
- package/dist/lib/node_modules/lodash-es/toString.js +1 -0
- package/dist/lib/node_modules/style-mod/src/style-mod.js +3 -0
- package/dist/lib/node_modules/vue-codemirror/dist/vue-codemirror.esm.js +1 -0
- package/dist/lib/node_modules/w3c-keyname/index.js +1 -0
- package/dist/lib/src/CodeEditor/index.js +1 -0
- package/dist/lib/src/CodeEditor/src/index.css +1 -0
- package/dist/lib/src/CodeEditor/src/index.vue.js +1 -0
- package/dist/lib/src/CodeEditor/src/index2.css +1 -0
- package/dist/lib/src/ConfigProvider/index.js +1 -0
- package/dist/lib/src/ConfigProvider/src/configProvider.js +1 -0
- package/dist/lib/src/ConfigProvider/src/configProviderProps.js +1 -0
- package/dist/lib/src/ConfigProvider/src/constants.js +1 -0
- package/dist/lib/src/ConfigProvider/src/useGlobalConfig.js +1 -0
- package/dist/lib/src/ScaleScreen/index.js +1 -0
- package/dist/lib/src/ScaleScreen/src/index.css +1 -0
- package/dist/lib/src/ScaleScreen/src/index.vue.js +1 -0
- package/dist/lib/src/ScaleScreen/src/index2.css +1 -0
- package/dist/lib/src/VideoBackground/index.js +1 -0
- package/dist/lib/src/VideoBackground/src/helper.js +1 -0
- package/dist/lib/src/VideoBackground/src/index.css +1 -0
- package/dist/lib/src/VideoBackground/src/index.vue.js +1 -0
- package/dist/lib/src/VideoBackground/src/index2.css +1 -0
- package/dist/lib/src/VideoBackground/src/index3.css +1 -0
- package/dist/lib/src/VideoBackground/src/videoBackground.js +1 -0
- package/dist/lib/src/hooks/useLocale.js +1 -0
- package/dist/lib/src/hooks/useNamespace.js +1 -0
- package/dist/lib/src/index.js +1 -0
- package/dist/lib/src/locale/lang/en-US.js +1 -0
- package/dist/lib/src/locale/lang/ja-JP.js +1 -0
- package/dist/lib/src/locale/lang/zh-CN.js +1 -0
- package/dist/lib/src/styles/tokens.css +1 -0
- package/package.json +71 -0
|
@@ -0,0 +1,497 @@
|
|
|
1
|
+
import { LanguageSupport as M, LRLanguage as H, indentNodeProp as J, foldNodeProp as ee, continuedIndent as te, syntaxTree as ae } from "../../language/dist/index.js";
|
|
2
|
+
import { styleTags as re, tags as o } from "../../../@lezer/highlight/dist/index.js";
|
|
3
|
+
import { LRParser as ne, ExternalTokenizer as oe } from "../../../@lezer/lr/dist/index.js";
|
|
4
|
+
import { ifNotIn as le, completeFromList as se } from "../../autocomplete/dist/index.js";
|
|
5
|
+
const ie = 36, R = 1, ce = 2, k = 3, S = 4, fe = 5, de = 6, Oe = 7, me = 8, ue = 9, he = 10, ke = 11, Qe = 12, ge = 13, ve = 14, xe = 15, be = 16, pe = 17, q = 18, Ce = 19, E = 20, A = 21, L = 22, Se = 23, Pe = 24;
|
|
6
|
+
function y(t) {
|
|
7
|
+
return t >= 65 && t <= 90 || t >= 97 && t <= 122 || t >= 48 && t <= 57;
|
|
8
|
+
}
|
|
9
|
+
function ye(t) {
|
|
10
|
+
return t >= 48 && t <= 57 || t >= 97 && t <= 102 || t >= 65 && t <= 70;
|
|
11
|
+
}
|
|
12
|
+
function h(t, e, r) {
|
|
13
|
+
for (let a = !1; ; ) {
|
|
14
|
+
if (t.next < 0)
|
|
15
|
+
return;
|
|
16
|
+
if (t.next == e && !a) {
|
|
17
|
+
t.advance();
|
|
18
|
+
return;
|
|
19
|
+
}
|
|
20
|
+
a = r && !a && t.next == 92, t.advance();
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
function we(t, e) {
|
|
24
|
+
e: for (; ; ) {
|
|
25
|
+
if (t.next < 0)
|
|
26
|
+
return;
|
|
27
|
+
if (t.next == 36) {
|
|
28
|
+
t.advance();
|
|
29
|
+
for (let r = 0; r < e.length; r++) {
|
|
30
|
+
if (t.next != e.charCodeAt(r))
|
|
31
|
+
continue e;
|
|
32
|
+
t.advance();
|
|
33
|
+
}
|
|
34
|
+
if (t.next == 36) {
|
|
35
|
+
t.advance();
|
|
36
|
+
return;
|
|
37
|
+
}
|
|
38
|
+
} else
|
|
39
|
+
t.advance();
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
function Te(t, e) {
|
|
43
|
+
let r = "[{<(".indexOf(String.fromCharCode(e)), a = r < 0 ? e : "]}>)".charCodeAt(r);
|
|
44
|
+
for (; ; ) {
|
|
45
|
+
if (t.next < 0)
|
|
46
|
+
return;
|
|
47
|
+
if (t.next == a && t.peek(1) == 39) {
|
|
48
|
+
t.advance(2);
|
|
49
|
+
return;
|
|
50
|
+
}
|
|
51
|
+
t.advance();
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
function w(t, e) {
|
|
55
|
+
for (; !(t.next != 95 && !y(t.next)); )
|
|
56
|
+
e != null && (e += String.fromCharCode(t.next)), t.advance();
|
|
57
|
+
return e;
|
|
58
|
+
}
|
|
59
|
+
function Ue(t) {
|
|
60
|
+
if (t.next == 39 || t.next == 34 || t.next == 96) {
|
|
61
|
+
let e = t.next;
|
|
62
|
+
t.advance(), h(t, e, !1);
|
|
63
|
+
} else
|
|
64
|
+
w(t);
|
|
65
|
+
}
|
|
66
|
+
function Z(t, e) {
|
|
67
|
+
for (; t.next == 48 || t.next == 49; )
|
|
68
|
+
t.advance();
|
|
69
|
+
e && t.next == e && t.advance();
|
|
70
|
+
}
|
|
71
|
+
function D(t, e) {
|
|
72
|
+
for (; ; ) {
|
|
73
|
+
if (t.next == 46) {
|
|
74
|
+
if (e)
|
|
75
|
+
break;
|
|
76
|
+
e = !0;
|
|
77
|
+
} else if (t.next < 48 || t.next > 57)
|
|
78
|
+
break;
|
|
79
|
+
t.advance();
|
|
80
|
+
}
|
|
81
|
+
if (t.next == 69 || t.next == 101)
|
|
82
|
+
for (t.advance(), (t.next == 43 || t.next == 45) && t.advance(); t.next >= 48 && t.next <= 57; )
|
|
83
|
+
t.advance();
|
|
84
|
+
}
|
|
85
|
+
function j(t) {
|
|
86
|
+
for (; !(t.next < 0 || t.next == 10); )
|
|
87
|
+
t.advance();
|
|
88
|
+
}
|
|
89
|
+
function u(t, e) {
|
|
90
|
+
for (let r = 0; r < e.length; r++)
|
|
91
|
+
if (e.charCodeAt(r) == t)
|
|
92
|
+
return !0;
|
|
93
|
+
return !1;
|
|
94
|
+
}
|
|
95
|
+
const P = ` \r
|
|
96
|
+
`;
|
|
97
|
+
function V(t, e, r) {
|
|
98
|
+
let a = /* @__PURE__ */ Object.create(null);
|
|
99
|
+
a.true = a.false = fe, a.null = a.unknown = de;
|
|
100
|
+
for (let n of t.split(" "))
|
|
101
|
+
n && (a[n] = E);
|
|
102
|
+
for (let n of e.split(" "))
|
|
103
|
+
n && (a[n] = A);
|
|
104
|
+
for (let n of (r || "").split(" "))
|
|
105
|
+
n && (a[n] = Pe);
|
|
106
|
+
return a;
|
|
107
|
+
}
|
|
108
|
+
const Be = "array binary bit boolean char character clob date decimal double float int integer interval large national nchar nclob numeric object precision real smallint time timestamp varchar varying ", Xe = "absolute action add after all allocate alter and any are as asc assertion at authorization before begin between both breadth by call cascade cascaded case cast catalog check close collate collation column commit condition connect connection constraint constraints constructor continue corresponding count create cross cube current current_date current_default_transform_group current_transform_group_for_type current_path current_role current_time current_timestamp current_user cursor cycle data day deallocate declare default deferrable deferred delete depth deref desc describe descriptor deterministic diagnostics disconnect distinct do domain drop dynamic each else elseif end end-exec equals escape except exception exec execute exists exit external fetch first for foreign found from free full function general get global go goto grant group grouping handle having hold hour identity if immediate in indicator initially inner inout input insert intersect into is isolation join key language last lateral leading leave left level like limit local localtime localtimestamp locator loop map match method minute modifies module month names natural nesting new next no none not of old on only open option or order ordinality out outer output overlaps pad parameter partial path prepare preserve primary prior privileges procedure public read reads recursive redo ref references referencing relative release repeat resignal restrict result return returns revoke right role rollback rollup routine row rows savepoint schema scroll search second section select session session_user set sets signal similar size some space specific specifictype sql sqlexception sqlstate sqlwarning start state static system_user table temporary then timezone_hour timezone_minute to trailing transaction translation treat trigger under undo union unique unnest until update usage user using value values view when whenever where while with without work write year zone ", T = {
|
|
109
|
+
backslashEscapes: !1,
|
|
110
|
+
hashComments: !1,
|
|
111
|
+
spaceAfterDashes: !1,
|
|
112
|
+
slashComments: !1,
|
|
113
|
+
doubleQuotedStrings: !1,
|
|
114
|
+
doubleDollarQuotedStrings: !1,
|
|
115
|
+
unquotedBitLiterals: !1,
|
|
116
|
+
treatBitsAsBytes: !1,
|
|
117
|
+
charSetCasts: !1,
|
|
118
|
+
plsqlQuotingMechanism: !1,
|
|
119
|
+
operatorChars: "*+-%<>!=&|~^/",
|
|
120
|
+
specialVar: "?",
|
|
121
|
+
identifierQuotes: '"',
|
|
122
|
+
caseInsensitiveIdentifiers: !1,
|
|
123
|
+
words: /* @__PURE__ */ V(Xe, Be)
|
|
124
|
+
};
|
|
125
|
+
function Ie(t, e, r, a) {
|
|
126
|
+
let n = {};
|
|
127
|
+
for (let l in T)
|
|
128
|
+
n[l] = (t.hasOwnProperty(l) ? t : T)[l];
|
|
129
|
+
return e && (n.words = V(e, r || "", a)), n;
|
|
130
|
+
}
|
|
131
|
+
function W(t) {
|
|
132
|
+
return new oe((e) => {
|
|
133
|
+
var r;
|
|
134
|
+
let { next: a } = e;
|
|
135
|
+
if (e.advance(), u(a, P)) {
|
|
136
|
+
for (; u(e.next, P); )
|
|
137
|
+
e.advance();
|
|
138
|
+
e.acceptToken(ie);
|
|
139
|
+
} else if (a == 36 && t.doubleDollarQuotedStrings) {
|
|
140
|
+
let n = w(e, "");
|
|
141
|
+
e.next == 36 && (e.advance(), we(e, n), e.acceptToken(k));
|
|
142
|
+
} else if (a == 39 || a == 34 && t.doubleQuotedStrings)
|
|
143
|
+
h(e, a, t.backslashEscapes), e.acceptToken(k);
|
|
144
|
+
else if (a == 35 && t.hashComments || a == 47 && e.next == 47 && t.slashComments)
|
|
145
|
+
j(e), e.acceptToken(R);
|
|
146
|
+
else if (a == 45 && e.next == 45 && (!t.spaceAfterDashes || e.peek(1) == 32))
|
|
147
|
+
j(e), e.acceptToken(R);
|
|
148
|
+
else if (a == 47 && e.next == 42) {
|
|
149
|
+
e.advance();
|
|
150
|
+
for (let n = 1; ; ) {
|
|
151
|
+
let l = e.next;
|
|
152
|
+
if (e.next < 0)
|
|
153
|
+
break;
|
|
154
|
+
if (e.advance(), l == 42 && e.next == 47) {
|
|
155
|
+
if (n--, e.advance(), !n)
|
|
156
|
+
break;
|
|
157
|
+
} else l == 47 && e.next == 42 && (n++, e.advance());
|
|
158
|
+
}
|
|
159
|
+
e.acceptToken(ce);
|
|
160
|
+
} else if ((a == 101 || a == 69) && e.next == 39)
|
|
161
|
+
e.advance(), h(e, 39, !0), e.acceptToken(k);
|
|
162
|
+
else if ((a == 110 || a == 78) && e.next == 39 && t.charSetCasts)
|
|
163
|
+
e.advance(), h(e, 39, t.backslashEscapes), e.acceptToken(k);
|
|
164
|
+
else if (a == 95 && t.charSetCasts)
|
|
165
|
+
for (let n = 0; ; n++) {
|
|
166
|
+
if (e.next == 39 && n > 1) {
|
|
167
|
+
e.advance(), h(e, 39, t.backslashEscapes), e.acceptToken(k);
|
|
168
|
+
break;
|
|
169
|
+
}
|
|
170
|
+
if (!y(e.next))
|
|
171
|
+
break;
|
|
172
|
+
e.advance();
|
|
173
|
+
}
|
|
174
|
+
else if (t.plsqlQuotingMechanism && (a == 113 || a == 81) && e.next == 39 && e.peek(1) > 0 && !u(e.peek(1), P)) {
|
|
175
|
+
let n = e.peek(1);
|
|
176
|
+
e.advance(2), Te(e, n), e.acceptToken(k);
|
|
177
|
+
} else if (u(a, t.identifierQuotes)) {
|
|
178
|
+
const n = a == 91 ? 93 : a;
|
|
179
|
+
h(e, n, !1), e.acceptToken(Ce);
|
|
180
|
+
} else if (a == 40)
|
|
181
|
+
e.acceptToken(Oe);
|
|
182
|
+
else if (a == 41)
|
|
183
|
+
e.acceptToken(me);
|
|
184
|
+
else if (a == 123)
|
|
185
|
+
e.acceptToken(ue);
|
|
186
|
+
else if (a == 125)
|
|
187
|
+
e.acceptToken(he);
|
|
188
|
+
else if (a == 91)
|
|
189
|
+
e.acceptToken(ke);
|
|
190
|
+
else if (a == 93)
|
|
191
|
+
e.acceptToken(Qe);
|
|
192
|
+
else if (a == 59)
|
|
193
|
+
e.acceptToken(ge);
|
|
194
|
+
else if (t.unquotedBitLiterals && a == 48 && e.next == 98)
|
|
195
|
+
e.advance(), Z(e), e.acceptToken(L);
|
|
196
|
+
else if ((a == 98 || a == 66) && (e.next == 39 || e.next == 34)) {
|
|
197
|
+
const n = e.next;
|
|
198
|
+
e.advance(), t.treatBitsAsBytes ? (h(e, n, t.backslashEscapes), e.acceptToken(Se)) : (Z(e, n), e.acceptToken(L));
|
|
199
|
+
} else if (a == 48 && (e.next == 120 || e.next == 88) || (a == 120 || a == 88) && e.next == 39) {
|
|
200
|
+
let n = e.next == 39;
|
|
201
|
+
for (e.advance(); ye(e.next); )
|
|
202
|
+
e.advance();
|
|
203
|
+
n && e.next == 39 && e.advance(), e.acceptToken(S);
|
|
204
|
+
} else if (a == 46 && e.next >= 48 && e.next <= 57)
|
|
205
|
+
D(e, !0), e.acceptToken(S);
|
|
206
|
+
else if (a == 46)
|
|
207
|
+
e.acceptToken(ve);
|
|
208
|
+
else if (a >= 48 && a <= 57)
|
|
209
|
+
D(e, !1), e.acceptToken(S);
|
|
210
|
+
else if (u(a, t.operatorChars)) {
|
|
211
|
+
for (; u(e.next, t.operatorChars); )
|
|
212
|
+
e.advance();
|
|
213
|
+
e.acceptToken(xe);
|
|
214
|
+
} else if (u(a, t.specialVar))
|
|
215
|
+
e.next == a && e.advance(), Ue(e), e.acceptToken(pe);
|
|
216
|
+
else if (a == 58 || a == 44)
|
|
217
|
+
e.acceptToken(be);
|
|
218
|
+
else if (y(a)) {
|
|
219
|
+
let n = w(e, String.fromCharCode(a));
|
|
220
|
+
e.acceptToken(e.next == 46 || e.peek(-n.length - 1) == 46 ? q : (r = t.words[n.toLowerCase()]) !== null && r !== void 0 ? r : q);
|
|
221
|
+
}
|
|
222
|
+
});
|
|
223
|
+
}
|
|
224
|
+
const F = /* @__PURE__ */ W(T), _e = /* @__PURE__ */ ne.deserialize({
|
|
225
|
+
version: 14,
|
|
226
|
+
states: "%vQ]QQOOO#wQRO'#DSO$OQQO'#CwO%eQQO'#CxO%lQQO'#CyO%sQQO'#CzOOQQ'#DS'#DSOOQQ'#C}'#C}O'UQRO'#C{OOQQ'#Cv'#CvOOQQ'#C|'#C|Q]QQOOQOQQOOO'`QQO'#DOO(xQRO,59cO)PQQO,59cO)UQQO'#DSOOQQ,59d,59dO)cQQO,59dOOQQ,59e,59eO)jQQO,59eOOQQ,59f,59fO)qQQO,59fOOQQ-E6{-E6{OOQQ,59b,59bOOQQ-E6z-E6zOOQQ,59j,59jOOQQ-E6|-E6|O+VQRO1G.}O+^QQO,59cOOQQ1G/O1G/OOOQQ1G/P1G/POOQQ1G/Q1G/QP+kQQO'#C}O+rQQO1G.}O)PQQO,59cO,PQQO'#Cw",
|
|
227
|
+
stateData: ",[~OtOSPOSQOS~ORUOSUOTUOUUOVROXSOZTO]XO^QO_UO`UOaPObPOcPOdUOeUOfUOgUOhUO~O^]ORvXSvXTvXUvXVvXXvXZvX]vX_vX`vXavXbvXcvXdvXevXfvXgvXhvX~OsvX~P!jOa_Ob_Oc_O~ORUOSUOTUOUUOVROXSOZTO^tO_UO`UOa`Ob`Oc`OdUOeUOfUOgUOhUO~OWaO~P$ZOYcO~P$ZO[eO~P$ZORUOSUOTUOUUOVROXSOZTO^QO_UO`UOaPObPOcPOdUOeUOfUOgUOhUO~O]hOsoX~P%zOajObjOcjO~O^]ORkaSkaTkaUkaVkaXkaZka]ka_ka`kaakabkackadkaekafkagkahka~Oska~P'kO^]O~OWvXYvX[vX~P!jOWnO~P$ZOYoO~P$ZO[pO~P$ZO^]ORkiSkiTkiUkiVkiXkiZki]ki_ki`kiakibkickidkiekifkigkihki~Oski~P)xOWkaYka[ka~P'kO]hO~P$ZOWkiYki[ki~P)xOasObsOcsO~O",
|
|
228
|
+
goto: "#hwPPPPPPPPPPPPPPPPPPPPPPPPPPx||||!Y!^!d!xPPP#[TYOZeUORSTWZbdfqT[OZQZORiZSWOZQbRQdSQfTZgWbdfqQ^PWk^lmrQl_Qm`RrseVORSTWZbdfq",
|
|
229
|
+
nodeNames: "⚠ LineComment BlockComment String Number Bool Null ( ) { } [ ] ; . Operator Punctuation SpecialVar Identifier QuotedIdentifier Keyword Type Bits Bytes Builtin Script Statement CompositeIdentifier Parens Braces Brackets Statement",
|
|
230
|
+
maxTerm: 38,
|
|
231
|
+
nodeProps: [
|
|
232
|
+
["isolate", -4, 1, 2, 3, 19, ""]
|
|
233
|
+
],
|
|
234
|
+
skippedNodes: [0, 1, 2],
|
|
235
|
+
repeatNodeCount: 3,
|
|
236
|
+
tokenData: "RORO",
|
|
237
|
+
tokenizers: [0, F],
|
|
238
|
+
topRules: { Script: [0, 25] },
|
|
239
|
+
tokenPrec: 0
|
|
240
|
+
});
|
|
241
|
+
function U(t) {
|
|
242
|
+
let e = t.cursor().moveTo(t.from, -1);
|
|
243
|
+
for (; /Comment/.test(e.name); )
|
|
244
|
+
e.moveTo(e.from, -1);
|
|
245
|
+
return e.node;
|
|
246
|
+
}
|
|
247
|
+
function v(t, e) {
|
|
248
|
+
let r = t.sliceString(e.from, e.to), a = /^([`'"\[])(.*)([`'"\]])$/.exec(r);
|
|
249
|
+
return a ? a[2] : r;
|
|
250
|
+
}
|
|
251
|
+
function p(t) {
|
|
252
|
+
return t && (t.name == "Identifier" || t.name == "QuotedIdentifier");
|
|
253
|
+
}
|
|
254
|
+
function Re(t, e) {
|
|
255
|
+
if (e.name == "CompositeIdentifier") {
|
|
256
|
+
let r = [];
|
|
257
|
+
for (let a = e.firstChild; a; a = a.nextSibling)
|
|
258
|
+
p(a) && r.push(v(t, a));
|
|
259
|
+
return r;
|
|
260
|
+
}
|
|
261
|
+
return [v(t, e)];
|
|
262
|
+
}
|
|
263
|
+
function N(t, e) {
|
|
264
|
+
for (let r = []; ; ) {
|
|
265
|
+
if (!e || e.name != ".")
|
|
266
|
+
return r;
|
|
267
|
+
let a = U(e);
|
|
268
|
+
if (!p(a))
|
|
269
|
+
return r;
|
|
270
|
+
r.unshift(v(t, a)), e = U(a);
|
|
271
|
+
}
|
|
272
|
+
}
|
|
273
|
+
function qe(t, e) {
|
|
274
|
+
let r = ae(t).resolveInner(e, -1), a = Ze(t.doc, r);
|
|
275
|
+
return r.name == "Identifier" || r.name == "QuotedIdentifier" || r.name == "Keyword" ? {
|
|
276
|
+
from: r.from,
|
|
277
|
+
quoted: r.name == "QuotedIdentifier" ? t.doc.sliceString(r.from, r.from + 1) : null,
|
|
278
|
+
parents: N(t.doc, U(r)),
|
|
279
|
+
aliases: a
|
|
280
|
+
} : r.name == "." ? { from: e, quoted: null, parents: N(t.doc, r), aliases: a } : { from: e, quoted: null, parents: [], empty: !0, aliases: a };
|
|
281
|
+
}
|
|
282
|
+
const Le = /* @__PURE__ */ new Set(/* @__PURE__ */ "where group having order union intersect except all distinct limit offset fetch for".split(" "));
|
|
283
|
+
function Ze(t, e) {
|
|
284
|
+
let r;
|
|
285
|
+
for (let n = e; !r; n = n.parent) {
|
|
286
|
+
if (!n)
|
|
287
|
+
return null;
|
|
288
|
+
n.name == "Statement" && (r = n);
|
|
289
|
+
}
|
|
290
|
+
let a = null;
|
|
291
|
+
for (let n = r.firstChild, l = !1, c = null; n; n = n.nextSibling) {
|
|
292
|
+
let i = n.name == "Keyword" ? t.sliceString(n.from, n.to).toLowerCase() : null, s = null;
|
|
293
|
+
if (!l)
|
|
294
|
+
l = i == "from";
|
|
295
|
+
else if (i == "as" && c && p(n.nextSibling))
|
|
296
|
+
s = v(t, n.nextSibling);
|
|
297
|
+
else {
|
|
298
|
+
if (i && Le.has(i))
|
|
299
|
+
break;
|
|
300
|
+
c && p(n) && (s = v(t, n));
|
|
301
|
+
}
|
|
302
|
+
s && (a || (a = /* @__PURE__ */ Object.create(null)), a[s] = Re(t, c)), c = /Identifier$/.test(n.name) ? n : null;
|
|
303
|
+
}
|
|
304
|
+
return a;
|
|
305
|
+
}
|
|
306
|
+
function De(t, e, r) {
|
|
307
|
+
return r.map((a) => ({ ...a, label: a.label[0] == t ? a.label : t + a.label + e, apply: void 0 }));
|
|
308
|
+
}
|
|
309
|
+
const je = /^\w*$/, Ne = /^[`'"\[]?\w*[`'"\]]?$/;
|
|
310
|
+
function z(t) {
|
|
311
|
+
return t.self && typeof t.self.label == "string";
|
|
312
|
+
}
|
|
313
|
+
class B {
|
|
314
|
+
constructor(e, r) {
|
|
315
|
+
this.idQuote = e, this.idCaseInsensitive = r, this.list = [], this.children = void 0;
|
|
316
|
+
}
|
|
317
|
+
child(e) {
|
|
318
|
+
let r = this.children || (this.children = /* @__PURE__ */ Object.create(null)), a = r[e];
|
|
319
|
+
return a || (e && !this.list.some((n) => n.label == e) && this.list.push($(e, "type", this.idQuote, this.idCaseInsensitive)), r[e] = new B(this.idQuote, this.idCaseInsensitive));
|
|
320
|
+
}
|
|
321
|
+
maybeChild(e) {
|
|
322
|
+
return this.children ? this.children[e] : null;
|
|
323
|
+
}
|
|
324
|
+
addCompletion(e) {
|
|
325
|
+
let r = this.list.findIndex((a) => a.label == e.label);
|
|
326
|
+
r > -1 ? this.list[r] = e : this.list.push(e);
|
|
327
|
+
}
|
|
328
|
+
addCompletions(e) {
|
|
329
|
+
for (let r of e)
|
|
330
|
+
this.addCompletion(typeof r == "string" ? $(r, "property", this.idQuote, this.idCaseInsensitive) : r);
|
|
331
|
+
}
|
|
332
|
+
addNamespace(e) {
|
|
333
|
+
Array.isArray(e) ? this.addCompletions(e) : z(e) ? this.addNamespace(e.children) : this.addNamespaceObject(e);
|
|
334
|
+
}
|
|
335
|
+
addNamespaceObject(e) {
|
|
336
|
+
for (let r of Object.keys(e)) {
|
|
337
|
+
let a = e[r], n = null, l = r.replace(/\\?\./g, (i) => i == "." ? "\0" : i).split("\0"), c = this;
|
|
338
|
+
z(a) && (n = a.self, a = a.children);
|
|
339
|
+
for (let i = 0; i < l.length; i++)
|
|
340
|
+
n && i == l.length - 1 && c.addCompletion(n), c = c.child(l[i].replace(/\\\./g, "."));
|
|
341
|
+
c.addNamespace(a);
|
|
342
|
+
}
|
|
343
|
+
}
|
|
344
|
+
}
|
|
345
|
+
function $(t, e, r, a) {
|
|
346
|
+
return new RegExp("^[a-z_][a-z_\\d]*$", a ? "i" : "").test(t) ? { label: t, type: e } : { label: t, type: e, apply: r + t + K(r) };
|
|
347
|
+
}
|
|
348
|
+
function K(t) {
|
|
349
|
+
return t === "[" ? "]" : t;
|
|
350
|
+
}
|
|
351
|
+
function ze(t, e, r, a, n, l) {
|
|
352
|
+
var c;
|
|
353
|
+
let i = ((c = l?.spec.identifierQuotes) === null || c === void 0 ? void 0 : c[0]) || '"', s = new B(i, !!l?.spec.caseInsensitiveIdentifiers), d = n ? s.child(n) : null;
|
|
354
|
+
return s.addNamespace(t), e && (d || s).addCompletions(e), r && s.addCompletions(r), d && s.addCompletions(d.list), a && s.addCompletions((d || s).child(a).list), (O) => {
|
|
355
|
+
let { parents: Q, from: I, quoted: _, empty: G, aliases: x } = qe(O.state, O.pos);
|
|
356
|
+
if (G && !O.explicit)
|
|
357
|
+
return null;
|
|
358
|
+
x && Q.length == 1 && (Q = x[Q[0]] || Q);
|
|
359
|
+
let f = s;
|
|
360
|
+
for (let m of Q) {
|
|
361
|
+
for (; !f.children || !f.children[m]; )
|
|
362
|
+
if (f == s && d)
|
|
363
|
+
f = d;
|
|
364
|
+
else if (f == d && a)
|
|
365
|
+
f = f.child(a);
|
|
366
|
+
else
|
|
367
|
+
return null;
|
|
368
|
+
let g = f.maybeChild(m);
|
|
369
|
+
if (!g)
|
|
370
|
+
return null;
|
|
371
|
+
f = g;
|
|
372
|
+
}
|
|
373
|
+
let b = f.list;
|
|
374
|
+
if (f == s && x && (b = b.concat(Object.keys(x).map((m) => ({ label: m, type: "constant" })))), _) {
|
|
375
|
+
let m = _[0], g = K(m), Y = O.state.sliceDoc(O.pos, O.pos + 1) == g;
|
|
376
|
+
return {
|
|
377
|
+
from: I,
|
|
378
|
+
to: Y ? O.pos + 1 : void 0,
|
|
379
|
+
options: De(m, g, b),
|
|
380
|
+
validFor: Ne
|
|
381
|
+
};
|
|
382
|
+
} else
|
|
383
|
+
return {
|
|
384
|
+
from: I,
|
|
385
|
+
options: b,
|
|
386
|
+
validFor: je
|
|
387
|
+
};
|
|
388
|
+
};
|
|
389
|
+
}
|
|
390
|
+
function $e(t) {
|
|
391
|
+
return t == A ? "type" : t == E ? "keyword" : "variable";
|
|
392
|
+
}
|
|
393
|
+
function Ee(t, e, r) {
|
|
394
|
+
let a = Object.keys(t).map((n) => r(e ? n.toUpperCase() : n, $e(t[n])));
|
|
395
|
+
return le(["QuotedIdentifier", "String", "LineComment", "BlockComment", "."], se(a));
|
|
396
|
+
}
|
|
397
|
+
let Ae = /* @__PURE__ */ _e.configure({
|
|
398
|
+
props: [
|
|
399
|
+
/* @__PURE__ */ J.add({
|
|
400
|
+
Statement: /* @__PURE__ */ te()
|
|
401
|
+
}),
|
|
402
|
+
/* @__PURE__ */ ee.add({
|
|
403
|
+
Statement(t, e) {
|
|
404
|
+
return { from: Math.min(t.from + 100, e.doc.lineAt(t.from).to), to: t.to };
|
|
405
|
+
},
|
|
406
|
+
BlockComment(t) {
|
|
407
|
+
return { from: t.from + 2, to: t.to - 2 };
|
|
408
|
+
}
|
|
409
|
+
}),
|
|
410
|
+
/* @__PURE__ */ re({
|
|
411
|
+
Keyword: o.keyword,
|
|
412
|
+
Type: o.typeName,
|
|
413
|
+
Builtin: /* @__PURE__ */ o.standard(o.name),
|
|
414
|
+
Bits: o.number,
|
|
415
|
+
Bytes: o.string,
|
|
416
|
+
Bool: o.bool,
|
|
417
|
+
Null: o.null,
|
|
418
|
+
Number: o.number,
|
|
419
|
+
String: o.string,
|
|
420
|
+
Identifier: o.name,
|
|
421
|
+
QuotedIdentifier: /* @__PURE__ */ o.special(o.string),
|
|
422
|
+
SpecialVar: /* @__PURE__ */ o.special(o.name),
|
|
423
|
+
LineComment: o.lineComment,
|
|
424
|
+
BlockComment: o.blockComment,
|
|
425
|
+
Operator: o.operator,
|
|
426
|
+
"Semi Punctuation": o.punctuation,
|
|
427
|
+
"( )": o.paren,
|
|
428
|
+
"{ }": o.brace,
|
|
429
|
+
"[ ]": o.squareBracket
|
|
430
|
+
})
|
|
431
|
+
]
|
|
432
|
+
});
|
|
433
|
+
class C {
|
|
434
|
+
constructor(e, r, a) {
|
|
435
|
+
this.dialect = e, this.language = r, this.spec = a;
|
|
436
|
+
}
|
|
437
|
+
/**
|
|
438
|
+
Returns the language for this dialect as an extension.
|
|
439
|
+
*/
|
|
440
|
+
get extension() {
|
|
441
|
+
return this.language.extension;
|
|
442
|
+
}
|
|
443
|
+
/**
|
|
444
|
+
Reconfigure the parser used by this dialect. Returns a new
|
|
445
|
+
dialect object.
|
|
446
|
+
*/
|
|
447
|
+
configureLanguage(e, r) {
|
|
448
|
+
return new C(this.dialect, this.language.configure(e, r), this.spec);
|
|
449
|
+
}
|
|
450
|
+
/**
|
|
451
|
+
Define a new dialect.
|
|
452
|
+
*/
|
|
453
|
+
static define(e) {
|
|
454
|
+
let r = Ie(e, e.keywords, e.types, e.builtin), a = H.define({
|
|
455
|
+
name: "sql",
|
|
456
|
+
parser: Ae.configure({
|
|
457
|
+
tokenizers: [{ from: F, to: W(r) }]
|
|
458
|
+
}),
|
|
459
|
+
languageData: {
|
|
460
|
+
commentTokens: { line: "--", block: { open: "/*", close: "*/" } },
|
|
461
|
+
closeBrackets: { brackets: ["(", "[", "{", "'", '"', "`"] }
|
|
462
|
+
}
|
|
463
|
+
});
|
|
464
|
+
return new C(r, a, e);
|
|
465
|
+
}
|
|
466
|
+
}
|
|
467
|
+
function Ve(t, e) {
|
|
468
|
+
return { label: t, type: e, boost: -1 };
|
|
469
|
+
}
|
|
470
|
+
function We(t, e = !1, r) {
|
|
471
|
+
return Ee(t.dialect.words, e, r || Ve);
|
|
472
|
+
}
|
|
473
|
+
function Fe(t) {
|
|
474
|
+
return t.schema ? ze(t.schema, t.tables, t.schemas, t.defaultTable, t.defaultSchema, t.dialect || X) : () => null;
|
|
475
|
+
}
|
|
476
|
+
function Ke(t) {
|
|
477
|
+
return t.schema ? (t.dialect || X).language.data.of({
|
|
478
|
+
autocomplete: Fe(t)
|
|
479
|
+
}) : [];
|
|
480
|
+
}
|
|
481
|
+
function Je(t = {}) {
|
|
482
|
+
let e = t.dialect || X;
|
|
483
|
+
return new M(e.language, [
|
|
484
|
+
Ke(t),
|
|
485
|
+
e.language.data.of({
|
|
486
|
+
autocomplete: We(e, t.upperCaseKeywords, t.keywordCompletion)
|
|
487
|
+
})
|
|
488
|
+
]);
|
|
489
|
+
}
|
|
490
|
+
const X = /* @__PURE__ */ C.define({});
|
|
491
|
+
export {
|
|
492
|
+
C as SQLDialect,
|
|
493
|
+
X as StandardSQL,
|
|
494
|
+
We as keywordCompletionSource,
|
|
495
|
+
Fe as schemaCompletionSource,
|
|
496
|
+
Je as sql
|
|
497
|
+
};
|