stepzen-graphiql 1.0.4

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.
Files changed (101) hide show
  1. package/README.md +85 -0
  2. package/dist/GraphiQLExplorer.d.ts +10 -0
  3. package/dist/Range-CPFFy5pj.mjs +26 -0
  4. package/dist/Range-CUfOrqgY.js +1 -0
  5. package/dist/SchemaReference-94TE3IPs.mjs +146 -0
  6. package/dist/SchemaReference-DKgkDdcV.js +1 -0
  7. package/dist/brace-fold-9JQ5QTIN.mjs +122 -0
  8. package/dist/brace-fold-CUTcWTRf.js +1 -0
  9. package/dist/closebrackets-BL_z-rKi.mjs +165 -0
  10. package/dist/closebrackets-DHbhKDzk.js +2 -0
  11. package/dist/codemirror-CxfyhJc1.mjs +27 -0
  12. package/dist/codemirror-DMBo1i5w.js +24 -0
  13. package/dist/codemirror-DgPcZxSc.mjs +6121 -0
  14. package/dist/codemirror-Kv5dN_jU.js +1 -0
  15. package/dist/comment-CAsllqoy.js +2 -0
  16. package/dist/comment-DscvXuhU.mjs +150 -0
  17. package/dist/components/ExplorerPage/ExplorerHeader.d.ts +3 -0
  18. package/dist/components/ExplorerPage/ExplorerPage.d.ts +8 -0
  19. package/dist/components/ExplorerPage/GraphiQLInterface.d.ts +60 -0
  20. package/dist/components/ExplorerPage/Snippets.d.ts +17 -0
  21. package/dist/components/ExplorerPage/clearTooltip.d.ts +1 -0
  22. package/dist/components/exporterPlugin/CodeExporter.d.ts +93 -0
  23. package/dist/components/exporterPlugin/index.d.ts +7 -0
  24. package/dist/components/exporterPlugin/snippets/__helpers__/getOptionCombinations.d.ts +2 -0
  25. package/dist/components/exporterPlugin/snippets/index.d.ts +2 -0
  26. package/dist/components/exporterPlugin/snippets/javascript/fetch.d.ts +3 -0
  27. package/dist/components/exporterPlugin/snippets/javascript/reactApollo.d.ts +3 -0
  28. package/dist/components/exporterPlugin/toposort.d.ts +2 -0
  29. package/dist/components/exporterPlugin/useExporterPlugin.d.ts +19 -0
  30. package/dist/components/exporterPlugin/utils/capitalizeFirstLetter.d.ts +1 -0
  31. package/dist/components/exporterPlugin/utils/index.d.ts +7 -0
  32. package/dist/components/exporterPlugin/utils/jsCommentsFactory.d.ts +1 -0
  33. package/dist/contexts/EnvironmentContext.d.ts +37 -0
  34. package/dist/contexts/endpoint.d.ts +39 -0
  35. package/dist/dialog-BF69fCJO.js +1 -0
  36. package/dist/dialog-Ci1bnuc2.mjs +74 -0
  37. package/dist/dialog-Dh2DOTOu.js +1 -0
  38. package/dist/dialog-nXZjpybF.mjs +26 -0
  39. package/dist/foldgutter-DiGsqcNo.mjs +238 -0
  40. package/dist/foldgutter-Do6XNu8o.js +1 -0
  41. package/dist/forEachState-DA54msa8.mjs +11 -0
  42. package/dist/forEachState-DY_pA9Bd.js +1 -0
  43. package/dist/hint-BNpE1H1l.js +1 -0
  44. package/dist/hint-BQ9WwQj_.mjs +123 -0
  45. package/dist/hint-dA98kXsJ.js +1 -0
  46. package/dist/hint-ptEpgPx0.mjs +24 -0
  47. package/dist/index-BeOZF5ut.js +650 -0
  48. package/dist/index-GG9J9CZE.js +1 -0
  49. package/dist/index-Iqk59VQ1.mjs +89463 -0
  50. package/dist/index-_X52-Rov.mjs +11 -0
  51. package/dist/index.cjs.js +1 -0
  52. package/dist/index.d.ts +3 -0
  53. package/dist/index.es.js +4 -0
  54. package/dist/info-BhA0aX7P.js +1 -0
  55. package/dist/info-DavOVk27.mjs +99 -0
  56. package/dist/info-addon-BppfpWGs.js +1 -0
  57. package/dist/info-addon-jclzOzZb.mjs +66 -0
  58. package/dist/javascript-Bk78gZXV.js +1 -0
  59. package/dist/javascript-HLYdFIhF.mjs +26 -0
  60. package/dist/javascript-RO_jaPiE.mjs +707 -0
  61. package/dist/javascript-poxRzxcy.js +1 -0
  62. package/dist/jsx-C8WdRUVV.mjs +414 -0
  63. package/dist/jsx-LzpFIybc.js +1 -0
  64. package/dist/jump-BR4c9I5u.mjs +85 -0
  65. package/dist/jump-C3iGjDkY.js +1 -0
  66. package/dist/jump-to-line-BZOuAkwy.js +1 -0
  67. package/dist/jump-to-line-pXiAP2DT.mjs +61 -0
  68. package/dist/lib/constants.d.ts +6 -0
  69. package/dist/lib/graphiql-helpers.d.ts +86 -0
  70. package/dist/lib/helpers.d.ts +53 -0
  71. package/dist/lint-Aw1wLmnw.mjs +112 -0
  72. package/dist/lint-Bf0wS1Ab.js +1 -0
  73. package/dist/lint-DL7I1P7I.mjs +272 -0
  74. package/dist/lint-GZ9x3Nii.js +6 -0
  75. package/dist/lint-L3DNAS-R.mjs +216 -0
  76. package/dist/lint-azLq6zoS.js +1 -0
  77. package/dist/matchbrackets-BB4g2Y6d.mjs +87 -0
  78. package/dist/matchbrackets-DJZ2jVlm.js +1 -0
  79. package/dist/matchbrackets-DNVziiaa.mjs +26 -0
  80. package/dist/matchbrackets-DPv_MB7c.js +1 -0
  81. package/dist/mode-Bad_JbYc.js +1 -0
  82. package/dist/mode-BuM4vqHx.js +1 -0
  83. package/dist/mode-C9FNlffS.js +1 -0
  84. package/dist/mode-CtmJdiWw.mjs +73 -0
  85. package/dist/mode-CxFmwOoU.mjs +25 -0
  86. package/dist/mode-DQHzanY6.mjs +64 -0
  87. package/dist/mode-indent-9VnFlqY-.mjs +8 -0
  88. package/dist/mode-indent-m3TP74Ia.js +1 -0
  89. package/dist/search-BUZtJ7Zg.mjs +268 -0
  90. package/dist/search-DxgAMk6j.js +2 -0
  91. package/dist/searchcursor-BrHSjZde.mjs +26 -0
  92. package/dist/searchcursor-Cf1_qqgl.js +1 -0
  93. package/dist/searchcursor-DHtNMOPb.mjs +239 -0
  94. package/dist/searchcursor-eGwb3e2h.js +7 -0
  95. package/dist/show-hint-CYURLLrO.js +1 -0
  96. package/dist/show-hint-CmHZP7k_.mjs +357 -0
  97. package/dist/style.css +9 -0
  98. package/dist/sublime-BKhMEkpg.js +6 -0
  99. package/dist/sublime-Dmy11GSm.mjs +563 -0
  100. package/dist/types/config.d.ts +7 -0
  101. package/package.json +111 -0
@@ -0,0 +1,357 @@
1
+ import { g as rt } from "./index-Iqk59VQ1.mjs";
2
+ import { r as ct } from "./codemirror-DgPcZxSc.mjs";
3
+ function lt(S, O) {
4
+ for (var r = 0; r < O.length; r++) {
5
+ const v = O[r];
6
+ if (typeof v != "string" && !Array.isArray(v)) {
7
+ for (const m in v)
8
+ if (m !== "default" && !(m in S)) {
9
+ const w = Object.getOwnPropertyDescriptor(v, m);
10
+ w && Object.defineProperty(S, m, w.get ? w : {
11
+ enumerable: !0,
12
+ get: () => v[m]
13
+ });
14
+ }
15
+ }
16
+ }
17
+ return Object.freeze(Object.defineProperty(S, Symbol.toStringTag, { value: "Module" }));
18
+ }
19
+ var X = { exports: {} }, G;
20
+ function ht() {
21
+ return G || (G = 1, function(S, O) {
22
+ (function(r) {
23
+ r(ct());
24
+ })(function(r) {
25
+ var v = "CodeMirror-hint", m = "CodeMirror-hint-active";
26
+ r.showHint = function(t, e, i) {
27
+ if (!e) return t.showHint(i);
28
+ i && i.async && (e.async = !0);
29
+ var n = { hint: e };
30
+ if (i) for (var s in i) n[s] = i[s];
31
+ return t.showHint(n);
32
+ }, r.defineExtension("showHint", function(t) {
33
+ t = tt(this, this.getCursor("start"), t);
34
+ var e = this.listSelections();
35
+ if (!(e.length > 1)) {
36
+ if (this.somethingSelected()) {
37
+ if (!t.hint.supportsSelection) return;
38
+ for (var i = 0; i < e.length; i++)
39
+ if (e[i].head.line != e[i].anchor.line) return;
40
+ }
41
+ this.state.completionActive && this.state.completionActive.close();
42
+ var n = this.state.completionActive = new w(this, t);
43
+ n.options.hint && (r.signal(this, "startCompletion", this), n.update(!0));
44
+ }
45
+ }), r.defineExtension("closeHint", function() {
46
+ this.state.completionActive && this.state.completionActive.close();
47
+ });
48
+ function w(t, e) {
49
+ if (this.cm = t, this.options = e, this.widget = null, this.debounce = 0, this.tick = 0, this.startPos = this.cm.getCursor("start"), this.startLen = this.cm.getLine(this.startPos.line).length - this.cm.getSelection().length, this.options.updateOnCursorActivity) {
50
+ var i = this;
51
+ t.on("cursorActivity", this.activityFunc = function() {
52
+ i.cursorActivity();
53
+ });
54
+ }
55
+ }
56
+ var Q = window.requestAnimationFrame || function(t) {
57
+ return setTimeout(t, 1e3 / 60);
58
+ }, Z = window.cancelAnimationFrame || clearTimeout;
59
+ w.prototype = {
60
+ close: function() {
61
+ this.active() && (this.cm.state.completionActive = null, this.tick = null, this.options.updateOnCursorActivity && this.cm.off("cursorActivity", this.activityFunc), this.widget && this.data && r.signal(this.data, "close"), this.widget && this.widget.close(), r.signal(this.cm, "endCompletion", this.cm));
62
+ },
63
+ active: function() {
64
+ return this.cm.state.completionActive == this;
65
+ },
66
+ pick: function(t, e) {
67
+ var i = t.list[e], n = this;
68
+ this.cm.operation(function() {
69
+ i.hint ? i.hint(n.cm, t, i) : n.cm.replaceRange(
70
+ _(i),
71
+ i.from || t.from,
72
+ i.to || t.to,
73
+ "complete"
74
+ ), r.signal(t, "pick", i), n.cm.scrollIntoView();
75
+ }), this.options.closeOnPick && this.close();
76
+ },
77
+ cursorActivity: function() {
78
+ this.debounce && (Z(this.debounce), this.debounce = 0);
79
+ var t = this.startPos;
80
+ this.data && (t = this.data.from);
81
+ var e = this.cm.getCursor(), i = this.cm.getLine(e.line);
82
+ if (e.line != this.startPos.line || i.length - e.ch != this.startLen - this.startPos.ch || e.ch < t.ch || this.cm.somethingSelected() || !e.ch || this.options.closeCharacters.test(i.charAt(e.ch - 1)))
83
+ this.close();
84
+ else {
85
+ var n = this;
86
+ this.debounce = Q(function() {
87
+ n.update();
88
+ }), this.widget && this.widget.disable();
89
+ }
90
+ },
91
+ update: function(t) {
92
+ if (this.tick != null) {
93
+ var e = this, i = ++this.tick;
94
+ U(this.options.hint, this.cm, this.options, function(n) {
95
+ e.tick == i && e.finishUpdate(n, t);
96
+ });
97
+ }
98
+ },
99
+ finishUpdate: function(t, e) {
100
+ this.data && r.signal(this.data, "update");
101
+ var i = this.widget && this.widget.picked || e && this.options.completeSingle;
102
+ this.widget && this.widget.close(), this.data = t, t && t.list.length && (i && t.list.length == 1 ? this.pick(t, 0) : (this.widget = new B(this, t), r.signal(t, "shown")));
103
+ }
104
+ };
105
+ function tt(t, e, i) {
106
+ var n = t.options.hintOptions, s = {};
107
+ for (var c in D) s[c] = D[c];
108
+ if (n) for (var c in n)
109
+ n[c] !== void 0 && (s[c] = n[c]);
110
+ if (i) for (var c in i)
111
+ i[c] !== void 0 && (s[c] = i[c]);
112
+ return s.hint.resolve && (s.hint = s.hint.resolve(t, e)), s;
113
+ }
114
+ function _(t) {
115
+ return typeof t == "string" ? t : t.text;
116
+ }
117
+ function et(t, e) {
118
+ var i = {
119
+ Up: function() {
120
+ e.moveFocus(-1);
121
+ },
122
+ Down: function() {
123
+ e.moveFocus(1);
124
+ },
125
+ PageUp: function() {
126
+ e.moveFocus(-e.menuSize() + 1, !0);
127
+ },
128
+ PageDown: function() {
129
+ e.moveFocus(e.menuSize() - 1, !0);
130
+ },
131
+ Home: function() {
132
+ e.setFocus(0);
133
+ },
134
+ End: function() {
135
+ e.setFocus(e.length - 1);
136
+ },
137
+ Enter: e.pick,
138
+ Tab: e.pick,
139
+ Esc: e.close
140
+ }, n = /Mac/.test(navigator.platform);
141
+ n && (i["Ctrl-P"] = function() {
142
+ e.moveFocus(-1);
143
+ }, i["Ctrl-N"] = function() {
144
+ e.moveFocus(1);
145
+ });
146
+ var s = t.options.customKeys, c = s ? {} : i;
147
+ function o(u, l) {
148
+ var a;
149
+ typeof l != "string" ? a = function(H) {
150
+ return l(H, e);
151
+ } : i.hasOwnProperty(l) ? a = i[l] : a = l, c[u] = a;
152
+ }
153
+ if (s)
154
+ for (var f in s) s.hasOwnProperty(f) && o(f, s[f]);
155
+ var h = t.options.extraKeys;
156
+ if (h)
157
+ for (var f in h) h.hasOwnProperty(f) && o(f, h[f]);
158
+ return c;
159
+ }
160
+ function K(t, e) {
161
+ for (; e && e != t; ) {
162
+ if (e.nodeName.toUpperCase() === "LI" && e.parentNode == t) return e;
163
+ e = e.parentNode;
164
+ }
165
+ }
166
+ function B(t, e) {
167
+ this.id = "cm-complete-" + Math.floor(Math.random(1e6)), this.completion = t, this.data = e, this.picked = !1;
168
+ var i = this, n = t.cm, s = n.getInputField().ownerDocument, c = s.defaultView || s.parentWindow, o = this.hints = s.createElement("ul");
169
+ o.setAttribute("role", "listbox"), o.setAttribute("aria-expanded", "true"), o.id = this.id;
170
+ var f = t.cm.options.theme;
171
+ o.className = "CodeMirror-hints " + f, this.selectedHint = e.selectedHint || 0;
172
+ for (var h = e.list, u = 0; u < h.length; ++u) {
173
+ var l = o.appendChild(s.createElement("li")), a = h[u], H = v + (u != this.selectedHint ? "" : " " + m);
174
+ a.className != null && (H = a.className + " " + H), l.className = H, u == this.selectedHint && l.setAttribute("aria-selected", "true"), l.id = this.id + "-" + u, l.setAttribute("role", "option"), a.render ? a.render(l, e, a) : l.appendChild(s.createTextNode(a.displayText || _(a))), l.hintId = u;
175
+ }
176
+ var A = t.options.container || s.body, y = n.cursorCoords(t.options.alignWithWord ? e.from : null), F = y.left, E = y.bottom, M = !0, N = 0, I = 0;
177
+ if (A !== s.body) {
178
+ var st = ["absolute", "relative", "fixed"].indexOf(c.getComputedStyle(A).position) !== -1, C = st ? A : A.offsetParent, j = C.getBoundingClientRect(), q = s.body.getBoundingClientRect();
179
+ N = j.left - q.left - C.scrollLeft, I = j.top - q.top - C.scrollTop;
180
+ }
181
+ o.style.left = F - N + "px", o.style.top = E - I + "px";
182
+ var x = c.innerWidth || Math.max(s.body.offsetWidth, s.documentElement.offsetWidth), W = c.innerHeight || Math.max(s.body.offsetHeight, s.documentElement.offsetHeight);
183
+ A.appendChild(o), n.getInputField().setAttribute("aria-autocomplete", "list"), n.getInputField().setAttribute("aria-owns", this.id), n.getInputField().setAttribute("aria-activedescendant", this.id + "-" + this.selectedHint);
184
+ var g = t.options.moveOnOverlap ? o.getBoundingClientRect() : new DOMRect(), z = t.options.paddingForScrollbar ? o.scrollHeight > o.clientHeight + 1 : !1, b;
185
+ setTimeout(function() {
186
+ b = n.getScrollInfo();
187
+ });
188
+ var ot = g.bottom - W;
189
+ if (ot > 0) {
190
+ var L = g.bottom - g.top, P = g.top - (y.bottom - y.top) - 2;
191
+ W - g.top < P ? (L > P && (o.style.height = (L = P) + "px"), o.style.top = (E = y.top - L) + I + "px", M = !1) : o.style.height = W - g.top - 2 + "px";
192
+ }
193
+ var T = g.right - x;
194
+ if (z && (T += n.display.nativeBarWidth), T > 0 && (g.right - g.left > x && (o.style.width = x - 5 + "px", T -= g.right - g.left - x), o.style.left = (F = Math.max(y.left - T - N, 0)) + "px"), z) for (var k = o.firstChild; k; k = k.nextSibling)
195
+ k.style.paddingRight = n.display.nativeBarWidth + "px";
196
+ if (n.addKeyMap(this.keyMap = et(t, {
197
+ moveFocus: function(p, d) {
198
+ i.changeActive(i.selectedHint + p, d);
199
+ },
200
+ setFocus: function(p) {
201
+ i.changeActive(p);
202
+ },
203
+ menuSize: function() {
204
+ return i.screenAmount();
205
+ },
206
+ length: h.length,
207
+ close: function() {
208
+ t.close();
209
+ },
210
+ pick: function() {
211
+ i.pick();
212
+ },
213
+ data: e
214
+ })), t.options.closeOnUnfocus) {
215
+ var V;
216
+ n.on("blur", this.onBlur = function() {
217
+ V = setTimeout(function() {
218
+ t.close();
219
+ }, 100);
220
+ }), n.on("focus", this.onFocus = function() {
221
+ clearTimeout(V);
222
+ });
223
+ }
224
+ n.on("scroll", this.onScroll = function() {
225
+ var p = n.getScrollInfo(), d = n.getWrapperElement().getBoundingClientRect();
226
+ b || (b = n.getScrollInfo());
227
+ var $ = E + b.top - p.top, R = $ - (c.pageYOffset || (s.documentElement || s.body).scrollTop);
228
+ if (M || (R += o.offsetHeight), R <= d.top || R >= d.bottom) return t.close();
229
+ o.style.top = $ + "px", o.style.left = F + b.left - p.left + "px";
230
+ }), r.on(o, "dblclick", function(p) {
231
+ var d = K(o, p.target || p.srcElement);
232
+ d && d.hintId != null && (i.changeActive(d.hintId), i.pick());
233
+ }), r.on(o, "click", function(p) {
234
+ var d = K(o, p.target || p.srcElement);
235
+ d && d.hintId != null && (i.changeActive(d.hintId), t.options.completeOnSingleClick && i.pick());
236
+ }), r.on(o, "mousedown", function() {
237
+ setTimeout(function() {
238
+ n.focus();
239
+ }, 20);
240
+ });
241
+ var Y = this.getSelectedHintRange();
242
+ return (Y.from !== 0 || Y.to !== 0) && this.scrollToActive(), r.signal(e, "select", h[this.selectedHint], o.childNodes[this.selectedHint]), !0;
243
+ }
244
+ B.prototype = {
245
+ close: function() {
246
+ if (this.completion.widget == this) {
247
+ this.completion.widget = null, this.hints.parentNode && this.hints.parentNode.removeChild(this.hints), this.completion.cm.removeKeyMap(this.keyMap);
248
+ var t = this.completion.cm.getInputField();
249
+ t.removeAttribute("aria-activedescendant"), t.removeAttribute("aria-owns");
250
+ var e = this.completion.cm;
251
+ this.completion.options.closeOnUnfocus && (e.off("blur", this.onBlur), e.off("focus", this.onFocus)), e.off("scroll", this.onScroll);
252
+ }
253
+ },
254
+ disable: function() {
255
+ this.completion.cm.removeKeyMap(this.keyMap);
256
+ var t = this;
257
+ this.keyMap = { Enter: function() {
258
+ t.picked = !0;
259
+ } }, this.completion.cm.addKeyMap(this.keyMap);
260
+ },
261
+ pick: function() {
262
+ this.completion.pick(this.data, this.selectedHint);
263
+ },
264
+ changeActive: function(t, e) {
265
+ if (t >= this.data.list.length ? t = e ? this.data.list.length - 1 : 0 : t < 0 && (t = e ? 0 : this.data.list.length - 1), this.selectedHint != t) {
266
+ var i = this.hints.childNodes[this.selectedHint];
267
+ i && (i.className = i.className.replace(" " + m, ""), i.removeAttribute("aria-selected")), i = this.hints.childNodes[this.selectedHint = t], i.className += " " + m, i.setAttribute("aria-selected", "true"), this.completion.cm.getInputField().setAttribute("aria-activedescendant", i.id), this.scrollToActive(), r.signal(this.data, "select", this.data.list[this.selectedHint], i);
268
+ }
269
+ },
270
+ scrollToActive: function() {
271
+ var t = this.getSelectedHintRange(), e = this.hints.childNodes[t.from], i = this.hints.childNodes[t.to], n = this.hints.firstChild;
272
+ e.offsetTop < this.hints.scrollTop ? this.hints.scrollTop = e.offsetTop - n.offsetTop : i.offsetTop + i.offsetHeight > this.hints.scrollTop + this.hints.clientHeight && (this.hints.scrollTop = i.offsetTop + i.offsetHeight - this.hints.clientHeight + n.offsetTop);
273
+ },
274
+ screenAmount: function() {
275
+ return Math.floor(this.hints.clientHeight / this.hints.firstChild.offsetHeight) || 1;
276
+ },
277
+ getSelectedHintRange: function() {
278
+ var t = this.completion.options.scrollMargin || 0;
279
+ return {
280
+ from: Math.max(0, this.selectedHint - t),
281
+ to: Math.min(this.data.list.length - 1, this.selectedHint + t)
282
+ };
283
+ }
284
+ };
285
+ function it(t, e) {
286
+ if (!t.somethingSelected()) return e;
287
+ for (var i = [], n = 0; n < e.length; n++)
288
+ e[n].supportsSelection && i.push(e[n]);
289
+ return i;
290
+ }
291
+ function U(t, e, i, n) {
292
+ if (t.async)
293
+ t(e, n, i);
294
+ else {
295
+ var s = t(e, i);
296
+ s && s.then ? s.then(n) : n(s);
297
+ }
298
+ }
299
+ function nt(t, e) {
300
+ var i = t.getHelpers(e, "hint"), n;
301
+ if (i.length) {
302
+ var s = function(c, o, f) {
303
+ var h = it(c, i);
304
+ function u(l) {
305
+ if (l == h.length) return o(null);
306
+ U(h[l], c, f, function(a) {
307
+ a && a.list.length > 0 ? o(a) : u(l + 1);
308
+ });
309
+ }
310
+ u(0);
311
+ };
312
+ return s.async = !0, s.supportsSelection = !0, s;
313
+ } else return (n = t.getHelper(t.getCursor(), "hintWords")) ? function(c) {
314
+ return r.hint.fromList(c, { words: n });
315
+ } : r.hint.anyword ? function(c, o) {
316
+ return r.hint.anyword(c, o);
317
+ } : function() {
318
+ };
319
+ }
320
+ r.registerHelper("hint", "auto", {
321
+ resolve: nt
322
+ }), r.registerHelper("hint", "fromList", function(t, e) {
323
+ var i = t.getCursor(), n = t.getTokenAt(i), s, c = r.Pos(i.line, n.start), o = i;
324
+ n.start < i.ch && /\w/.test(n.string.charAt(i.ch - n.start - 1)) ? s = n.string.substr(0, i.ch - n.start) : (s = "", c = i);
325
+ for (var f = [], h = 0; h < e.words.length; h++) {
326
+ var u = e.words[h];
327
+ u.slice(0, s.length) == s && f.push(u);
328
+ }
329
+ if (f.length) return { list: f, from: c, to: o };
330
+ }), r.commands.autocomplete = r.showHint;
331
+ var D = {
332
+ hint: r.hint.auto,
333
+ completeSingle: !0,
334
+ alignWithWord: !0,
335
+ closeCharacters: /[\s()\[\]{};:>,]/,
336
+ closeOnPick: !0,
337
+ closeOnUnfocus: !0,
338
+ updateOnCursorActivity: !0,
339
+ completeOnSingleClick: !0,
340
+ container: null,
341
+ customKeys: null,
342
+ extraKeys: null,
343
+ paddingForScrollbar: !0,
344
+ moveOnOverlap: !0
345
+ };
346
+ r.defineOption("hintOptions", null);
347
+ });
348
+ }()), X.exports;
349
+ }
350
+ var J = ht();
351
+ const at = /* @__PURE__ */ rt(J), pt = /* @__PURE__ */ lt({
352
+ __proto__: null,
353
+ default: at
354
+ }, [J]);
355
+ export {
356
+ pt as s
357
+ };