@hpcc-js/codemirror 2.54.0 → 2.55.0
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/index.es6.js +165 -157
- package/dist/index.es6.js.map +1 -1
- package/dist/index.js +168 -160
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/package.json +19 -19
- package/src/__package__.ts +2 -2
- package/types/__package__.d.ts +2 -2
- package/types-3.4/__package__.d.ts +2 -2
package/dist/index.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
2
|
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@hpcc-js/common')) :
|
|
3
3
|
typeof define === 'function' && define.amd ? define(['exports', '@hpcc-js/common'], factory) :
|
|
4
|
-
(global = global || self, factory(global[
|
|
5
|
-
}(this, (function (exports, common) { 'use strict';
|
|
4
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global["@hpcc-js/codemirror"] = {}, global["@hpcc-js/common"]));
|
|
5
|
+
})(this, (function (exports, common) { 'use strict';
|
|
6
6
|
|
|
7
7
|
var PKG_NAME = "@hpcc-js/codemirror";
|
|
8
|
-
var PKG_VERSION = "2.
|
|
9
|
-
var BUILD_VERSION = "2.
|
|
8
|
+
var PKG_VERSION = "2.55.0";
|
|
9
|
+
var BUILD_VERSION = "2.97.0";
|
|
10
10
|
|
|
11
11
|
/*! *****************************************************************************
|
|
12
12
|
Copyright (c) Microsoft Corporation.
|
|
@@ -52,21 +52,11 @@
|
|
|
52
52
|
|
|
53
53
|
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
54
54
|
|
|
55
|
-
|
|
56
|
-
return module = {
|
|
57
|
-
path: basedir,
|
|
58
|
-
exports: {},
|
|
59
|
-
require: function (path, base) {
|
|
60
|
-
return commonjsRequire(path, (base === undefined || base === null) ? module.path : base);
|
|
61
|
-
}
|
|
62
|
-
}, fn(module, module.exports), module.exports;
|
|
63
|
-
}
|
|
55
|
+
var css = {exports: {}};
|
|
64
56
|
|
|
65
|
-
|
|
66
|
-
throw new Error('Dynamic requires are not currently supported by @rollup/plugin-commonjs');
|
|
67
|
-
}
|
|
57
|
+
var codemirror = {exports: {}};
|
|
68
58
|
|
|
69
|
-
|
|
59
|
+
(function (module, exports) {
|
|
70
60
|
// CodeMirror, copyright (c) by Marijn Haverbeke and others
|
|
71
61
|
// Distributed under an MIT license: https://codemirror.net/LICENSE
|
|
72
62
|
|
|
@@ -77,7 +67,7 @@
|
|
|
77
67
|
// at http://marijnhaverbeke.nl/blog/#cm-internals .
|
|
78
68
|
|
|
79
69
|
(function (global, factory) {
|
|
80
|
-
|
|
70
|
+
module.exports = factory() ;
|
|
81
71
|
}(commonjsGlobal, (function () {
|
|
82
72
|
// Kludges for bugs and behavior differences that can't be feature
|
|
83
73
|
// detected are enabled based on userAgent etc sniffing.
|
|
@@ -5853,7 +5843,7 @@
|
|
|
5853
5843
|
};
|
|
5854
5844
|
|
|
5855
5845
|
LineWidget.prototype.changed = function () {
|
|
5856
|
-
var this$1 = this;
|
|
5846
|
+
var this$1$1 = this;
|
|
5857
5847
|
|
|
5858
5848
|
var oldH = this.height, cm = this.doc.cm, line = this.line;
|
|
5859
5849
|
this.height = null;
|
|
@@ -5864,7 +5854,7 @@
|
|
|
5864
5854
|
runInOp(cm, function () {
|
|
5865
5855
|
cm.curOp.forceUpdate = true;
|
|
5866
5856
|
adjustScrollWhenAboveVisible(cm, line, diff);
|
|
5867
|
-
signalLater(cm, "lineWidgetChanged", cm, this$1, lineNo(line));
|
|
5857
|
+
signalLater(cm, "lineWidgetChanged", cm, this$1$1, lineNo(line));
|
|
5868
5858
|
});
|
|
5869
5859
|
}
|
|
5870
5860
|
};
|
|
@@ -5989,7 +5979,7 @@
|
|
|
5989
5979
|
// Signals that the marker's widget changed, and surrounding layout
|
|
5990
5980
|
// should be recomputed.
|
|
5991
5981
|
TextMarker.prototype.changed = function () {
|
|
5992
|
-
var this$1 = this;
|
|
5982
|
+
var this$1$1 = this;
|
|
5993
5983
|
|
|
5994
5984
|
var pos = this.find(-1, true), widget = this, cm = this.doc.cm;
|
|
5995
5985
|
if (!pos || !cm) { return }
|
|
@@ -6008,7 +5998,7 @@
|
|
|
6008
5998
|
if (dHeight)
|
|
6009
5999
|
{ updateLineHeight(line, line.height + dHeight); }
|
|
6010
6000
|
}
|
|
6011
|
-
signalLater(cm, "markerChanged", cm, this$1);
|
|
6001
|
+
signalLater(cm, "markerChanged", cm, this$1$1);
|
|
6012
6002
|
});
|
|
6013
6003
|
};
|
|
6014
6004
|
|
|
@@ -6353,10 +6343,10 @@
|
|
|
6353
6343
|
return {undo: done, redo: undone}
|
|
6354
6344
|
},
|
|
6355
6345
|
clearHistory: function() {
|
|
6356
|
-
var this$1 = this;
|
|
6346
|
+
var this$1$1 = this;
|
|
6357
6347
|
|
|
6358
6348
|
this.history = new History(this.history);
|
|
6359
|
-
linkedDocs(this, function (doc) { return doc.history = this$1.history; }, true);
|
|
6349
|
+
linkedDocs(this, function (doc) { return doc.history = this$1$1.history; }, true);
|
|
6360
6350
|
},
|
|
6361
6351
|
|
|
6362
6352
|
markClean: function() {
|
|
@@ -6391,11 +6381,11 @@
|
|
|
6391
6381
|
}),
|
|
6392
6382
|
|
|
6393
6383
|
clearGutter: docMethodOp(function(gutterID) {
|
|
6394
|
-
var this$1 = this;
|
|
6384
|
+
var this$1$1 = this;
|
|
6395
6385
|
|
|
6396
6386
|
this.iter(function (line) {
|
|
6397
6387
|
if (line.gutterMarkers && line.gutterMarkers[gutterID]) {
|
|
6398
|
-
changeLine(this$1, line, "gutter", function () {
|
|
6388
|
+
changeLine(this$1$1, line, "gutter", function () {
|
|
6399
6389
|
line.gutterMarkers[gutterID] = null;
|
|
6400
6390
|
if (isEmpty(line.gutterMarkers)) { line.gutterMarkers = null; }
|
|
6401
6391
|
return true
|
|
@@ -7947,7 +7937,7 @@
|
|
|
7947
7937
|
// that user code is usually dealing with.
|
|
7948
7938
|
|
|
7949
7939
|
function CodeMirror(place, options) {
|
|
7950
|
-
var this$1 = this;
|
|
7940
|
+
var this$1$1 = this;
|
|
7951
7941
|
|
|
7952
7942
|
if (!(this instanceof CodeMirror)) { return new CodeMirror(place, options) }
|
|
7953
7943
|
|
|
@@ -7988,7 +7978,7 @@
|
|
|
7988
7978
|
|
|
7989
7979
|
// Override magic textarea content restore that IE sometimes does
|
|
7990
7980
|
// on our hidden textarea on reload
|
|
7991
|
-
if (ie && ie_version < 11) { setTimeout(function () { return this$1.display.input.reset(true); }, 20); }
|
|
7981
|
+
if (ie && ie_version < 11) { setTimeout(function () { return this$1$1.display.input.reset(true); }, 20); }
|
|
7992
7982
|
|
|
7993
7983
|
registerEventHandlers(this);
|
|
7994
7984
|
ensureGlobalHandlers();
|
|
@@ -7999,7 +7989,7 @@
|
|
|
7999
7989
|
|
|
8000
7990
|
if ((options.autofocus && !mobile) || this.hasFocus())
|
|
8001
7991
|
{ setTimeout(function () {
|
|
8002
|
-
if (this$1.hasFocus() && !this$1.state.focused) { onFocus(this$1); }
|
|
7992
|
+
if (this$1$1.hasFocus() && !this$1$1.state.focused) { onFocus(this$1$1); }
|
|
8003
7993
|
}, 20); }
|
|
8004
7994
|
else
|
|
8005
7995
|
{ onBlur(this); }
|
|
@@ -8580,11 +8570,11 @@
|
|
|
8580
8570
|
},
|
|
8581
8571
|
|
|
8582
8572
|
moveH: methodOp(function(dir, unit) {
|
|
8583
|
-
var this$1 = this;
|
|
8573
|
+
var this$1$1 = this;
|
|
8584
8574
|
|
|
8585
8575
|
this.extendSelectionsBy(function (range) {
|
|
8586
|
-
if (this$1.display.shift || this$1.doc.extend || range.empty())
|
|
8587
|
-
{ return findPosH(this$1.doc, range.head, dir, unit, this$1.options.rtlMoveVisually) }
|
|
8576
|
+
if (this$1$1.display.shift || this$1$1.doc.extend || range.empty())
|
|
8577
|
+
{ return findPosH(this$1$1.doc, range.head, dir, unit, this$1$1.options.rtlMoveVisually) }
|
|
8588
8578
|
else
|
|
8589
8579
|
{ return dir < 0 ? range.from() : range.to() }
|
|
8590
8580
|
}, sel_move);
|
|
@@ -8616,19 +8606,19 @@
|
|
|
8616
8606
|
},
|
|
8617
8607
|
|
|
8618
8608
|
moveV: methodOp(function(dir, unit) {
|
|
8619
|
-
var this$1 = this;
|
|
8609
|
+
var this$1$1 = this;
|
|
8620
8610
|
|
|
8621
8611
|
var doc = this.doc, goals = [];
|
|
8622
8612
|
var collapse = !this.display.shift && !doc.extend && doc.sel.somethingSelected();
|
|
8623
8613
|
doc.extendSelectionsBy(function (range) {
|
|
8624
8614
|
if (collapse)
|
|
8625
8615
|
{ return dir < 0 ? range.from() : range.to() }
|
|
8626
|
-
var headPos = cursorCoords(this$1, range.head, "div");
|
|
8616
|
+
var headPos = cursorCoords(this$1$1, range.head, "div");
|
|
8627
8617
|
if (range.goalColumn != null) { headPos.left = range.goalColumn; }
|
|
8628
8618
|
goals.push(headPos.left);
|
|
8629
|
-
var pos = findPosV(this$1, headPos, dir, unit);
|
|
8619
|
+
var pos = findPosV(this$1$1, headPos, dir, unit);
|
|
8630
8620
|
if (unit == "page" && range == doc.sel.primary())
|
|
8631
|
-
{ addToScrollTop(this$1, charCoords(this$1, pos, "div").top - headPos.top); }
|
|
8621
|
+
{ addToScrollTop(this$1$1, charCoords(this$1$1, pos, "div").top - headPos.top); }
|
|
8632
8622
|
return pos
|
|
8633
8623
|
}, sel_move);
|
|
8634
8624
|
if (goals.length) { for (var i = 0; i < doc.sel.ranges.length; i++)
|
|
@@ -8694,7 +8684,7 @@
|
|
|
8694
8684
|
}),
|
|
8695
8685
|
|
|
8696
8686
|
setSize: methodOp(function(width, height) {
|
|
8697
|
-
var this$1 = this;
|
|
8687
|
+
var this$1$1 = this;
|
|
8698
8688
|
|
|
8699
8689
|
var interpret = function (val) { return typeof val == "number" || /^\d+$/.test(String(val)) ? val + "px" : val; };
|
|
8700
8690
|
if (width != null) { this.display.wrapper.style.width = interpret(width); }
|
|
@@ -8703,7 +8693,7 @@
|
|
|
8703
8693
|
var lineNo = this.display.viewFrom;
|
|
8704
8694
|
this.doc.iter(lineNo, this.display.viewTo, function (line) {
|
|
8705
8695
|
if (line.widgets) { for (var i = 0; i < line.widgets.length; i++)
|
|
8706
|
-
{ if (line.widgets[i].noHScroll) { regLineChange(this$1, lineNo, "widget"); break } } }
|
|
8696
|
+
{ if (line.widgets[i].noHScroll) { regLineChange(this$1$1, lineNo, "widget"); break } } }
|
|
8707
8697
|
++lineNo;
|
|
8708
8698
|
});
|
|
8709
8699
|
this.curOp.forceUpdate = true;
|
|
@@ -8872,7 +8862,7 @@
|
|
|
8872
8862
|
};
|
|
8873
8863
|
|
|
8874
8864
|
ContentEditableInput.prototype.init = function (display) {
|
|
8875
|
-
var this$1 = this;
|
|
8865
|
+
var this$1$1 = this;
|
|
8876
8866
|
|
|
8877
8867
|
var input = this, cm = input.cm;
|
|
8878
8868
|
var div = input.div = display.lineDiv;
|
|
@@ -8890,26 +8880,26 @@
|
|
|
8890
8880
|
on(div, "paste", function (e) {
|
|
8891
8881
|
if (!belongsToInput(e) || signalDOMEvent(cm, e) || handlePaste(e, cm)) { return }
|
|
8892
8882
|
// IE doesn't fire input events, so we schedule a read for the pasted content in this way
|
|
8893
|
-
if (ie_version <= 11) { setTimeout(operation(cm, function () { return this$1.updateFromDOM(); }), 20); }
|
|
8883
|
+
if (ie_version <= 11) { setTimeout(operation(cm, function () { return this$1$1.updateFromDOM(); }), 20); }
|
|
8894
8884
|
});
|
|
8895
8885
|
|
|
8896
8886
|
on(div, "compositionstart", function (e) {
|
|
8897
|
-
this$1.composing = {data: e.data, done: false};
|
|
8887
|
+
this$1$1.composing = {data: e.data, done: false};
|
|
8898
8888
|
});
|
|
8899
8889
|
on(div, "compositionupdate", function (e) {
|
|
8900
|
-
if (!this$1.composing) { this$1.composing = {data: e.data, done: false}; }
|
|
8890
|
+
if (!this$1$1.composing) { this$1$1.composing = {data: e.data, done: false}; }
|
|
8901
8891
|
});
|
|
8902
8892
|
on(div, "compositionend", function (e) {
|
|
8903
|
-
if (this$1.composing) {
|
|
8904
|
-
if (e.data != this$1.composing.data) { this$1.readFromDOMSoon(); }
|
|
8905
|
-
this$1.composing.done = true;
|
|
8893
|
+
if (this$1$1.composing) {
|
|
8894
|
+
if (e.data != this$1$1.composing.data) { this$1$1.readFromDOMSoon(); }
|
|
8895
|
+
this$1$1.composing.done = true;
|
|
8906
8896
|
}
|
|
8907
8897
|
});
|
|
8908
8898
|
|
|
8909
8899
|
on(div, "touchstart", function () { return input.forceCompositionEnd(); });
|
|
8910
8900
|
|
|
8911
8901
|
on(div, "input", function () {
|
|
8912
|
-
if (!this$1.composing) { this$1.readFromDOMSoon(); }
|
|
8902
|
+
if (!this$1$1.composing) { this$1$1.readFromDOMSoon(); }
|
|
8913
8903
|
});
|
|
8914
8904
|
|
|
8915
8905
|
function onCopyCut(e) {
|
|
@@ -9032,13 +9022,13 @@
|
|
|
9032
9022
|
};
|
|
9033
9023
|
|
|
9034
9024
|
ContentEditableInput.prototype.startGracePeriod = function () {
|
|
9035
|
-
var this$1 = this;
|
|
9025
|
+
var this$1$1 = this;
|
|
9036
9026
|
|
|
9037
9027
|
clearTimeout(this.gracePeriod);
|
|
9038
9028
|
this.gracePeriod = setTimeout(function () {
|
|
9039
|
-
this$1.gracePeriod = false;
|
|
9040
|
-
if (this$1.selectionChanged())
|
|
9041
|
-
{ this$1.cm.operation(function () { return this$1.cm.curOp.selectionChanged = true; }); }
|
|
9029
|
+
this$1$1.gracePeriod = false;
|
|
9030
|
+
if (this$1$1.selectionChanged())
|
|
9031
|
+
{ this$1$1.cm.operation(function () { return this$1$1.cm.curOp.selectionChanged = true; }); }
|
|
9042
9032
|
}, 20);
|
|
9043
9033
|
};
|
|
9044
9034
|
|
|
@@ -9073,11 +9063,11 @@
|
|
|
9073
9063
|
ContentEditableInput.prototype.supportsTouch = function () { return true };
|
|
9074
9064
|
|
|
9075
9065
|
ContentEditableInput.prototype.receivedFocus = function () {
|
|
9076
|
-
var this$1 = this;
|
|
9066
|
+
var this$1$1 = this;
|
|
9077
9067
|
|
|
9078
9068
|
var input = this;
|
|
9079
9069
|
if (this.selectionInEditor())
|
|
9080
|
-
{ setTimeout(function () { return this$1.pollSelection(); }, 20); }
|
|
9070
|
+
{ setTimeout(function () { return this$1$1.pollSelection(); }, 20); }
|
|
9081
9071
|
else
|
|
9082
9072
|
{ runInOp(this.cm, function () { return input.cm.curOp.selectionChanged = true; }); }
|
|
9083
9073
|
|
|
@@ -9207,24 +9197,24 @@
|
|
|
9207
9197
|
this.div.focus();
|
|
9208
9198
|
};
|
|
9209
9199
|
ContentEditableInput.prototype.readFromDOMSoon = function () {
|
|
9210
|
-
var this$1 = this;
|
|
9200
|
+
var this$1$1 = this;
|
|
9211
9201
|
|
|
9212
9202
|
if (this.readDOMTimeout != null) { return }
|
|
9213
9203
|
this.readDOMTimeout = setTimeout(function () {
|
|
9214
|
-
this$1.readDOMTimeout = null;
|
|
9215
|
-
if (this$1.composing) {
|
|
9216
|
-
if (this$1.composing.done) { this$1.composing = null; }
|
|
9204
|
+
this$1$1.readDOMTimeout = null;
|
|
9205
|
+
if (this$1$1.composing) {
|
|
9206
|
+
if (this$1$1.composing.done) { this$1$1.composing = null; }
|
|
9217
9207
|
else { return }
|
|
9218
9208
|
}
|
|
9219
|
-
this$1.updateFromDOM();
|
|
9209
|
+
this$1$1.updateFromDOM();
|
|
9220
9210
|
}, 80);
|
|
9221
9211
|
};
|
|
9222
9212
|
|
|
9223
9213
|
ContentEditableInput.prototype.updateFromDOM = function () {
|
|
9224
|
-
var this$1 = this;
|
|
9214
|
+
var this$1$1 = this;
|
|
9225
9215
|
|
|
9226
9216
|
if (this.cm.isReadOnly() || !this.pollContent())
|
|
9227
|
-
{ runInOp(this.cm, function () { return regChange(this$1.cm); }); }
|
|
9217
|
+
{ runInOp(this.cm, function () { return regChange(this$1$1.cm); }); }
|
|
9228
9218
|
};
|
|
9229
9219
|
|
|
9230
9220
|
ContentEditableInput.prototype.setUneditable = function (node) {
|
|
@@ -9417,7 +9407,7 @@
|
|
|
9417
9407
|
};
|
|
9418
9408
|
|
|
9419
9409
|
TextareaInput.prototype.init = function (display) {
|
|
9420
|
-
var this$1 = this;
|
|
9410
|
+
var this$1$1 = this;
|
|
9421
9411
|
|
|
9422
9412
|
var input = this, cm = this.cm;
|
|
9423
9413
|
this.createField(display);
|
|
@@ -9429,7 +9419,7 @@
|
|
|
9429
9419
|
if (ios) { te.style.width = "0px"; }
|
|
9430
9420
|
|
|
9431
9421
|
on(te, "input", function () {
|
|
9432
|
-
if (ie && ie_version >= 9 && this$1.hasSelection) { this$1.hasSelection = null; }
|
|
9422
|
+
if (ie && ie_version >= 9 && this$1$1.hasSelection) { this$1$1.hasSelection = null; }
|
|
9433
9423
|
input.poll();
|
|
9434
9424
|
});
|
|
9435
9425
|
|
|
@@ -9582,12 +9572,12 @@
|
|
|
9582
9572
|
// Poll for input changes, using the normal rate of polling. This
|
|
9583
9573
|
// runs as long as the editor is focused.
|
|
9584
9574
|
TextareaInput.prototype.slowPoll = function () {
|
|
9585
|
-
var this$1 = this;
|
|
9575
|
+
var this$1$1 = this;
|
|
9586
9576
|
|
|
9587
9577
|
if (this.pollingFast) { return }
|
|
9588
9578
|
this.polling.set(this.cm.options.pollInterval, function () {
|
|
9589
|
-
this$1.poll();
|
|
9590
|
-
if (this$1.cm.state.focused) { this$1.slowPoll(); }
|
|
9579
|
+
this$1$1.poll();
|
|
9580
|
+
if (this$1$1.cm.state.focused) { this$1$1.slowPoll(); }
|
|
9591
9581
|
});
|
|
9592
9582
|
};
|
|
9593
9583
|
|
|
@@ -9612,7 +9602,7 @@
|
|
|
9612
9602
|
// seen text (can be empty), which is stored in prevInput (we must
|
|
9613
9603
|
// not reset the textarea when typing, because that breaks IME).
|
|
9614
9604
|
TextareaInput.prototype.poll = function () {
|
|
9615
|
-
var this$1 = this;
|
|
9605
|
+
var this$1$1 = this;
|
|
9616
9606
|
|
|
9617
9607
|
var cm = this.cm, input = this.textarea, prevInput = this.prevInput;
|
|
9618
9608
|
// Since this is called a *lot*, try to bail out as cheaply as
|
|
@@ -9647,15 +9637,15 @@
|
|
|
9647
9637
|
|
|
9648
9638
|
runInOp(cm, function () {
|
|
9649
9639
|
applyTextInput(cm, text.slice(same), prevInput.length - same,
|
|
9650
|
-
null, this$1.composing ? "*compose" : null);
|
|
9640
|
+
null, this$1$1.composing ? "*compose" : null);
|
|
9651
9641
|
|
|
9652
9642
|
// Don't leave long text in the textarea, since it makes further polling slow
|
|
9653
|
-
if (text.length > 1000 || text.indexOf("\n") > -1) { input.value = this$1.prevInput = ""; }
|
|
9654
|
-
else { this$1.prevInput = text; }
|
|
9643
|
+
if (text.length > 1000 || text.indexOf("\n") > -1) { input.value = this$1$1.prevInput = ""; }
|
|
9644
|
+
else { this$1$1.prevInput = text; }
|
|
9655
9645
|
|
|
9656
|
-
if (this$1.composing) {
|
|
9657
|
-
this$1.composing.range.clear();
|
|
9658
|
-
this$1.composing.range = cm.markText(this$1.composing.start, cm.getCursor("to"),
|
|
9646
|
+
if (this$1$1.composing) {
|
|
9647
|
+
this$1$1.composing.range.clear();
|
|
9648
|
+
this$1$1.composing.range = cm.markText(this$1$1.composing.start, cm.getCursor("to"),
|
|
9659
9649
|
{className: "CodeMirror-composing"});
|
|
9660
9650
|
}
|
|
9661
9651
|
});
|
|
@@ -9911,14 +9901,16 @@
|
|
|
9911
9901
|
return CodeMirror;
|
|
9912
9902
|
|
|
9913
9903
|
})));
|
|
9914
|
-
});
|
|
9904
|
+
}(codemirror));
|
|
9905
|
+
|
|
9906
|
+
var CodeMirror = codemirror.exports;
|
|
9915
9907
|
|
|
9916
|
-
|
|
9908
|
+
(function (module, exports) {
|
|
9917
9909
|
// CodeMirror, copyright (c) by Marijn Haverbeke and others
|
|
9918
9910
|
// Distributed under an MIT license: https://codemirror.net/LICENSE
|
|
9919
9911
|
|
|
9920
9912
|
(function(mod) {
|
|
9921
|
-
mod(codemirror);
|
|
9913
|
+
mod(codemirror.exports);
|
|
9922
9914
|
})(function(CodeMirror) {
|
|
9923
9915
|
|
|
9924
9916
|
CodeMirror.defineMode("css", function(config, parserConfig) {
|
|
@@ -10774,14 +10766,14 @@
|
|
|
10774
10766
|
});
|
|
10775
10767
|
|
|
10776
10768
|
});
|
|
10777
|
-
});
|
|
10769
|
+
}());
|
|
10778
10770
|
|
|
10779
|
-
|
|
10771
|
+
(function (module, exports) {
|
|
10780
10772
|
// CodeMirror, copyright (c) by Marijn Haverbeke and others
|
|
10781
10773
|
// Distributed under an MIT license: https://codemirror.net/LICENSE
|
|
10782
10774
|
|
|
10783
10775
|
(function(mod) {
|
|
10784
|
-
mod(codemirror);
|
|
10776
|
+
mod(codemirror.exports);
|
|
10785
10777
|
})(function(CodeMirror) {
|
|
10786
10778
|
|
|
10787
10779
|
CodeMirror.defineMode("ecl", function(config) {
|
|
@@ -10977,14 +10969,18 @@
|
|
|
10977
10969
|
CodeMirror.defineMIME("text/x-ecl", "ecl");
|
|
10978
10970
|
|
|
10979
10971
|
});
|
|
10980
|
-
});
|
|
10972
|
+
}());
|
|
10973
|
+
|
|
10974
|
+
var markdown = {exports: {}};
|
|
10975
|
+
|
|
10976
|
+
var xml = {exports: {}};
|
|
10981
10977
|
|
|
10982
|
-
|
|
10978
|
+
(function (module, exports) {
|
|
10983
10979
|
// CodeMirror, copyright (c) by Marijn Haverbeke and others
|
|
10984
10980
|
// Distributed under an MIT license: https://codemirror.net/LICENSE
|
|
10985
10981
|
|
|
10986
10982
|
(function(mod) {
|
|
10987
|
-
mod(codemirror);
|
|
10983
|
+
mod(codemirror.exports);
|
|
10988
10984
|
})(function(CodeMirror) {
|
|
10989
10985
|
|
|
10990
10986
|
var htmlConfig = {
|
|
@@ -11391,14 +11387,16 @@
|
|
|
11391
11387
|
CodeMirror.defineMIME("text/html", {name: "xml", htmlMode: true});
|
|
11392
11388
|
|
|
11393
11389
|
});
|
|
11394
|
-
});
|
|
11390
|
+
}());
|
|
11391
|
+
|
|
11392
|
+
var meta = {exports: {}};
|
|
11395
11393
|
|
|
11396
|
-
|
|
11394
|
+
(function (module, exports) {
|
|
11397
11395
|
// CodeMirror, copyright (c) by Marijn Haverbeke and others
|
|
11398
11396
|
// Distributed under an MIT license: https://codemirror.net/LICENSE
|
|
11399
11397
|
|
|
11400
11398
|
(function(mod) {
|
|
11401
|
-
mod(codemirror);
|
|
11399
|
+
mod(codemirror.exports);
|
|
11402
11400
|
})(function(CodeMirror) {
|
|
11403
11401
|
|
|
11404
11402
|
CodeMirror.modeInfo = [
|
|
@@ -11609,14 +11607,14 @@
|
|
|
11609
11607
|
}
|
|
11610
11608
|
};
|
|
11611
11609
|
});
|
|
11612
|
-
});
|
|
11610
|
+
}());
|
|
11613
11611
|
|
|
11614
|
-
|
|
11612
|
+
(function (module, exports) {
|
|
11615
11613
|
// CodeMirror, copyright (c) by Marijn Haverbeke and others
|
|
11616
11614
|
// Distributed under an MIT license: https://codemirror.net/LICENSE
|
|
11617
11615
|
|
|
11618
11616
|
(function(mod) {
|
|
11619
|
-
mod(codemirror, xml, meta);
|
|
11617
|
+
mod(codemirror.exports, xml.exports, meta.exports);
|
|
11620
11618
|
})(function(CodeMirror) {
|
|
11621
11619
|
|
|
11622
11620
|
CodeMirror.defineMode("markdown", function(cmCfg, modeCfg) {
|
|
@@ -12492,9 +12490,11 @@
|
|
|
12492
12490
|
CodeMirror.defineMIME("text/x-markdown", "markdown");
|
|
12493
12491
|
|
|
12494
12492
|
});
|
|
12495
|
-
});
|
|
12493
|
+
}());
|
|
12494
|
+
|
|
12495
|
+
var overlay = {exports: {}};
|
|
12496
12496
|
|
|
12497
|
-
|
|
12497
|
+
(function (module, exports) {
|
|
12498
12498
|
// CodeMirror, copyright (c) by Marijn Haverbeke and others
|
|
12499
12499
|
// Distributed under an MIT license: https://codemirror.net/LICENSE
|
|
12500
12500
|
|
|
@@ -12508,7 +12508,7 @@
|
|
|
12508
12508
|
// combined.
|
|
12509
12509
|
|
|
12510
12510
|
(function(mod) {
|
|
12511
|
-
mod(codemirror);
|
|
12511
|
+
mod(codemirror.exports);
|
|
12512
12512
|
})(function(CodeMirror) {
|
|
12513
12513
|
|
|
12514
12514
|
CodeMirror.overlayMode = function(base, overlay, combine) {
|
|
@@ -12579,14 +12579,14 @@
|
|
|
12579
12579
|
};
|
|
12580
12580
|
|
|
12581
12581
|
});
|
|
12582
|
-
});
|
|
12582
|
+
}());
|
|
12583
12583
|
|
|
12584
|
-
|
|
12584
|
+
(function (module, exports) {
|
|
12585
12585
|
// CodeMirror, copyright (c) by Marijn Haverbeke and others
|
|
12586
12586
|
// Distributed under an MIT license: https://codemirror.net/LICENSE
|
|
12587
12587
|
|
|
12588
12588
|
(function(mod) {
|
|
12589
|
-
mod(codemirror, markdown, overlay);
|
|
12589
|
+
mod(codemirror.exports, markdown.exports, overlay.exports);
|
|
12590
12590
|
})(function(CodeMirror) {
|
|
12591
12591
|
|
|
12592
12592
|
var urlRE = /^((?:(?:aaas?|about|acap|adiumxtra|af[ps]|aim|apt|attachment|aw|beshare|bitcoin|bolo|callto|cap|chrome(?:-extension)?|cid|coap|com-eventbrite-attendee|content|crid|cvs|data|dav|dict|dlna-(?:playcontainer|playsingle)|dns|doi|dtn|dvb|ed2k|facetime|feed|file|finger|fish|ftp|geo|gg|git|gizmoproject|go|gopher|gtalk|h323|hcp|https?|iax|icap|icon|im|imap|info|ipn|ipp|irc[6s]?|iris(?:\.beep|\.lwz|\.xpc|\.xpcs)?|itms|jar|javascript|jms|keyparc|lastfm|ldaps?|magnet|mailto|maps|market|message|mid|mms|ms-help|msnim|msrps?|mtqp|mumble|mupdate|mvn|news|nfs|nih?|nntp|notes|oid|opaquelocktoken|palm|paparazzi|platform|pop|pres|proxy|psyc|query|res(?:ource)?|rmi|rsync|rtmp|rtsp|secondlife|service|session|sftp|sgn|shttp|sieve|sips?|skype|sm[bs]|snmp|soap\.beeps?|soldat|spotify|ssh|steam|svn|tag|teamspeak|tel(?:net)?|tftp|things|thismessage|tip|tn3270|tv|udp|unreal|urn|ut2004|vemmi|ventrilo|view-source|webcal|wss?|wtai|wyciwyg|xcon(?:-userid)?|xfire|xmlrpc\.beeps?|xmpp|xri|ymsgr|z39\.50[rs]?):(?:\/{1,3}|[a-z0-9%])|www\d{0,3}[.]|[a-z0-9.\-]+[.][a-z]{2,4}\/)(?:[^\s()<>]|\([^\s()<>]*\))+(?:\([^\s()<>]*\)|[^\s`*!()\[\]{};:'".,<>?«»“”‘’]))/i;
|
|
@@ -12705,14 +12705,16 @@
|
|
|
12705
12705
|
|
|
12706
12706
|
CodeMirror.defineMIME("text/x-gfm", "gfm");
|
|
12707
12707
|
});
|
|
12708
|
-
});
|
|
12708
|
+
}());
|
|
12709
|
+
|
|
12710
|
+
var javascript = {exports: {}};
|
|
12709
12711
|
|
|
12710
|
-
|
|
12712
|
+
(function (module, exports) {
|
|
12711
12713
|
// CodeMirror, copyright (c) by Marijn Haverbeke and others
|
|
12712
12714
|
// Distributed under an MIT license: https://codemirror.net/LICENSE
|
|
12713
12715
|
|
|
12714
12716
|
(function(mod) {
|
|
12715
|
-
mod(codemirror);
|
|
12717
|
+
mod(codemirror.exports);
|
|
12716
12718
|
})(function(CodeMirror) {
|
|
12717
12719
|
|
|
12718
12720
|
CodeMirror.defineMode("javascript", function(config, parserConfig) {
|
|
@@ -13660,14 +13662,14 @@
|
|
|
13660
13662
|
CodeMirror.defineMIME("application/typescript", { name: "javascript", typescript: true });
|
|
13661
13663
|
|
|
13662
13664
|
});
|
|
13663
|
-
});
|
|
13665
|
+
}());
|
|
13664
13666
|
|
|
13665
|
-
|
|
13667
|
+
(function (module, exports) {
|
|
13666
13668
|
// CodeMirror, copyright (c) by Marijn Haverbeke and others
|
|
13667
13669
|
// Distributed under an MIT license: https://codemirror.net/LICENSE
|
|
13668
13670
|
|
|
13669
13671
|
(function(mod) {
|
|
13670
|
-
mod(codemirror, xml, javascript, css);
|
|
13672
|
+
mod(codemirror.exports, xml.exports, javascript.exports, css.exports);
|
|
13671
13673
|
})(function(CodeMirror) {
|
|
13672
13674
|
|
|
13673
13675
|
var defaultTags = {
|
|
@@ -13809,10 +13811,10 @@
|
|
|
13809
13811
|
|
|
13810
13812
|
CodeMirror.defineMIME("text/html", "htmlmixed");
|
|
13811
13813
|
});
|
|
13812
|
-
});
|
|
13814
|
+
}());
|
|
13813
13815
|
|
|
13814
13816
|
// CodeMirror, copyright (c) by Marijn Haverbeke and others
|
|
13815
|
-
|
|
13817
|
+
CodeMirror.defineMode("dot", function (config) {
|
|
13816
13818
|
var ops = /--|->|=|;/;
|
|
13817
13819
|
var brackets = /[\[\]{}]/;
|
|
13818
13820
|
return {
|
|
@@ -13907,22 +13909,22 @@
|
|
|
13907
13909
|
blockCommentEnd: "*/"
|
|
13908
13910
|
};
|
|
13909
13911
|
});
|
|
13910
|
-
|
|
13912
|
+
CodeMirror.defineMIME("text/x-dot", "dot");
|
|
13911
13913
|
|
|
13912
13914
|
// CodeMirror, copyright (c) by Marijn Haverbeke and others
|
|
13913
|
-
|
|
13914
|
-
var htmlMode =
|
|
13915
|
+
CodeMirror.defineMode("markdown", function (cmCfg, modeCfg) {
|
|
13916
|
+
var htmlMode = CodeMirror.getMode(cmCfg, "text/html");
|
|
13915
13917
|
var htmlModeMissing = htmlMode.name == "null";
|
|
13916
13918
|
if (modeCfg.defaultMode === undefined)
|
|
13917
13919
|
modeCfg.defaultMode = "";
|
|
13918
13920
|
function getMode(name) {
|
|
13919
13921
|
name = name === "" ? modeCfg.defaultMode : name;
|
|
13920
|
-
if (
|
|
13921
|
-
var found =
|
|
13922
|
+
if (CodeMirror.findModeByName) {
|
|
13923
|
+
var found = CodeMirror.findModeByName(name);
|
|
13922
13924
|
if (found)
|
|
13923
13925
|
name = found.mime || found.mimes[0];
|
|
13924
13926
|
}
|
|
13925
|
-
var mode =
|
|
13927
|
+
var mode = CodeMirror.getMode(cmCfg, name);
|
|
13926
13928
|
return mode.name == "null" ? null : mode;
|
|
13927
13929
|
}
|
|
13928
13930
|
// Should characters that affect highlighting be highlighted separate?
|
|
@@ -14007,7 +14009,7 @@
|
|
|
14007
14009
|
if (state.f == htmlBlock) {
|
|
14008
14010
|
var exit = htmlModeMissing;
|
|
14009
14011
|
if (!exit) {
|
|
14010
|
-
var inner =
|
|
14012
|
+
var inner = CodeMirror.innerMode(htmlMode, state.htmlState);
|
|
14011
14013
|
exit = inner.mode.name == "xml" && inner.state.tagStart === null &&
|
|
14012
14014
|
(!inner.state.context && inner.state.tokenize.isInText);
|
|
14013
14015
|
}
|
|
@@ -14115,7 +14117,7 @@
|
|
|
14115
14117
|
// try switching mode
|
|
14116
14118
|
state.localMode = modeCfg.fencedCodeBlockHighlighting && getMode(match[2]);
|
|
14117
14119
|
if (state.localMode)
|
|
14118
|
-
state.localState =
|
|
14120
|
+
state.localState = CodeMirror.startState(state.localMode);
|
|
14119
14121
|
state.f = state.block = local;
|
|
14120
14122
|
if (modeCfg.highlightFormatting)
|
|
14121
14123
|
state.formatting = "code-block";
|
|
@@ -14161,7 +14163,7 @@
|
|
|
14161
14163
|
function htmlBlock(stream, state) {
|
|
14162
14164
|
var style = htmlMode.token(stream, state.htmlState);
|
|
14163
14165
|
if (!htmlModeMissing) {
|
|
14164
|
-
var inner =
|
|
14166
|
+
var inner = CodeMirror.innerMode(htmlMode, state.htmlState);
|
|
14165
14167
|
if ((inner.mode.name == "xml" && inner.state.tagStart === null &&
|
|
14166
14168
|
(!inner.state.context && inner.state.tokenize.isInText)) ||
|
|
14167
14169
|
(state.md_inside && stream.current().indexOf(">") > -1)) {
|
|
@@ -14448,7 +14450,7 @@
|
|
|
14448
14450
|
state.md_inside = true;
|
|
14449
14451
|
}
|
|
14450
14452
|
stream.backUp(1);
|
|
14451
|
-
state.htmlState =
|
|
14453
|
+
state.htmlState = CodeMirror.startState(htmlMode);
|
|
14452
14454
|
return switchBlock(stream, state, htmlBlock);
|
|
14453
14455
|
}
|
|
14454
14456
|
if (modeCfg.xml && ch === '<' && stream.match(/^\/\w*?>/)) {
|
|
@@ -14677,10 +14679,10 @@
|
|
|
14677
14679
|
prevLine: s.prevLine,
|
|
14678
14680
|
thisLine: s.thisLine,
|
|
14679
14681
|
block: s.block,
|
|
14680
|
-
htmlState: s.htmlState &&
|
|
14682
|
+
htmlState: s.htmlState && CodeMirror.copyState(htmlMode, s.htmlState),
|
|
14681
14683
|
indentation: s.indentation,
|
|
14682
14684
|
localMode: s.localMode,
|
|
14683
|
-
localState: s.localMode ?
|
|
14685
|
+
localState: s.localMode ? CodeMirror.copyState(s.localMode, s.localState) : null,
|
|
14684
14686
|
inline: s.inline,
|
|
14685
14687
|
text: s.text,
|
|
14686
14688
|
formatting: false,
|
|
@@ -14748,7 +14750,7 @@
|
|
|
14748
14750
|
return htmlMode.indent(state.htmlState, textAfter, line);
|
|
14749
14751
|
if (state.localState && state.localMode.indent)
|
|
14750
14752
|
return state.localMode.indent(state.localState, textAfter, line);
|
|
14751
|
-
return
|
|
14753
|
+
return CodeMirror.Pass;
|
|
14752
14754
|
},
|
|
14753
14755
|
blankLine: blankLine,
|
|
14754
14756
|
getType: getType,
|
|
@@ -14759,10 +14761,10 @@
|
|
|
14759
14761
|
};
|
|
14760
14762
|
return mode;
|
|
14761
14763
|
}, "xml");
|
|
14762
|
-
|
|
14763
|
-
|
|
14764
|
+
CodeMirror.defineMIME("text/markdown", "markdown");
|
|
14765
|
+
CodeMirror.defineMIME("text/x-markdown", "markdown");
|
|
14764
14766
|
|
|
14765
|
-
function styleInject(css, ref) {
|
|
14767
|
+
function styleInject$1(css, ref) {
|
|
14766
14768
|
if ( ref === void 0 ) ref = {};
|
|
14767
14769
|
var insertAt = ref.insertAt;
|
|
14768
14770
|
|
|
@@ -14789,15 +14791,15 @@
|
|
|
14789
14791
|
}
|
|
14790
14792
|
}
|
|
14791
14793
|
|
|
14792
|
-
var css_248z = ".CodeMirror{font-family:monospace;height:300px
|
|
14793
|
-
styleInject(css_248z);
|
|
14794
|
+
var css_248z$2 = ".CodeMirror{color:#000;direction:ltr;font-family:monospace;height:300px}.CodeMirror-lines{padding:4px 0}.CodeMirror pre.CodeMirror-line,.CodeMirror pre.CodeMirror-line-like{padding:0 4px}.CodeMirror-gutter-filler,.CodeMirror-scrollbar-filler{background-color:#fff}.CodeMirror-gutters{background-color:#f7f7f7;border-right:1px solid #ddd;white-space:nowrap}.CodeMirror-linenumber{color:#999;min-width:20px;padding:0 3px 0 5px;text-align:right;white-space:nowrap}.CodeMirror-guttermarker{color:#000}.CodeMirror-guttermarker-subtle{color:#999}.CodeMirror-cursor{border-left:1px solid #000;border-right:none;width:0}.CodeMirror div.CodeMirror-secondarycursor{border-left:1px solid silver}.cm-fat-cursor .CodeMirror-cursor{background:#7e7;border:0!important;width:auto}.cm-fat-cursor div.CodeMirror-cursors{z-index:1}.cm-fat-cursor .CodeMirror-line::selection,.cm-fat-cursor .CodeMirror-line>span::selection,.cm-fat-cursor .CodeMirror-line>span>span::selection{background:transparent}.cm-fat-cursor .CodeMirror-line::-moz-selection,.cm-fat-cursor .CodeMirror-line>span::-moz-selection,.cm-fat-cursor .CodeMirror-line>span>span::-moz-selection{background:transparent}.cm-fat-cursor{caret-color:transparent}@-moz-keyframes blink{50%{background-color:transparent}}@-webkit-keyframes blink{50%{background-color:transparent}}@keyframes blink{50%{background-color:transparent}}.cm-tab{display:inline-block;text-decoration:inherit}.CodeMirror-rulers{bottom:0;left:0;overflow:hidden;position:absolute;right:0;top:-50px}.CodeMirror-ruler{border-left:1px solid #ccc;bottom:0;position:absolute;top:0}.cm-s-default .cm-header{color:blue}.cm-s-default .cm-quote{color:#090}.cm-negative{color:#d44}.cm-positive{color:#292}.cm-header,.cm-strong{font-weight:700}.cm-em{font-style:italic}.cm-link{text-decoration:underline}.cm-strikethrough{text-decoration:line-through}.cm-s-default .cm-keyword{color:#708}.cm-s-default .cm-atom{color:#219}.cm-s-default .cm-number{color:#164}.cm-s-default .cm-def{color:#00f}.cm-s-default .cm-variable-2{color:#05a}.cm-s-default .cm-type,.cm-s-default .cm-variable-3{color:#085}.cm-s-default .cm-comment{color:#a50}.cm-s-default .cm-string{color:#a11}.cm-s-default .cm-string-2{color:#f50}.cm-s-default .cm-meta,.cm-s-default .cm-qualifier{color:#555}.cm-s-default .cm-builtin{color:#30a}.cm-s-default .cm-bracket{color:#997}.cm-s-default .cm-tag{color:#170}.cm-s-default .cm-attribute{color:#00c}.cm-s-default .cm-hr{color:#999}.cm-s-default .cm-link{color:#00c}.cm-invalidchar,.cm-s-default .cm-error{color:red}.CodeMirror-composing{border-bottom:2px solid}div.CodeMirror span.CodeMirror-matchingbracket{color:#0b0}div.CodeMirror span.CodeMirror-nonmatchingbracket{color:#a22}.CodeMirror-matchingtag{background:rgba(255,150,0,.3)}.CodeMirror-activeline-background{background:#e8f2ff}.CodeMirror{background:#fff;overflow:hidden;position:relative}.CodeMirror-scroll{height:100%;margin-bottom:-50px;margin-right:-50px;outline:none;overflow:scroll!important;padding-bottom:50px;position:relative}.CodeMirror-sizer{border-right:50px solid transparent;position:relative}.CodeMirror-gutter-filler,.CodeMirror-hscrollbar,.CodeMirror-scrollbar-filler,.CodeMirror-vscrollbar{display:none;outline:none;position:absolute;z-index:6}.CodeMirror-vscrollbar{overflow-x:hidden;overflow-y:scroll;right:0;top:0}.CodeMirror-hscrollbar{bottom:0;left:0;overflow-x:scroll;overflow-y:hidden}.CodeMirror-scrollbar-filler{bottom:0;right:0}.CodeMirror-gutter-filler{bottom:0;left:0}.CodeMirror-gutters{left:0;min-height:100%;position:absolute;top:0;z-index:3}.CodeMirror-gutter{display:inline-block;height:100%;margin-bottom:-50px;vertical-align:top;white-space:normal}.CodeMirror-gutter-wrapper{background:none!important;border:none!important;position:absolute;z-index:4}.CodeMirror-gutter-background{bottom:0;position:absolute;top:0;z-index:4}.CodeMirror-gutter-elt{cursor:default;position:absolute;z-index:4}.CodeMirror-gutter-wrapper ::selection{background-color:transparent}.CodeMirror-gutter-wrapper ::-moz-selection{background-color:transparent}.CodeMirror-lines{cursor:text;min-height:1px}.CodeMirror pre.CodeMirror-line,.CodeMirror pre.CodeMirror-line-like{word-wrap:normal;-webkit-tap-highlight-color:transparent;background:transparent;-moz-border-radius:0;-webkit-border-radius:0;border-radius:0;border-width:0;color:inherit;font-family:inherit;font-size:inherit;-webkit-font-variant-ligatures:contextual;font-variant-ligatures:contextual;line-height:inherit;margin:0;overflow:visible;position:relative;white-space:pre;z-index:2}.CodeMirror-wrap pre.CodeMirror-line,.CodeMirror-wrap pre.CodeMirror-line-like{word-wrap:break-word;white-space:pre-wrap;word-break:normal}.CodeMirror-linebackground{bottom:0;left:0;position:absolute;right:0;top:0;z-index:0}.CodeMirror-linewidget{padding:.1px;position:relative;z-index:2}.CodeMirror-rtl pre{direction:rtl}.CodeMirror-code{outline:none}.CodeMirror-gutter,.CodeMirror-gutters,.CodeMirror-linenumber,.CodeMirror-scroll,.CodeMirror-sizer{-moz-box-sizing:content-box;box-sizing:content-box}.CodeMirror-measure{height:0;overflow:hidden;position:absolute;visibility:hidden;width:100%}.CodeMirror-cursor{pointer-events:none;position:absolute}.CodeMirror-measure pre{position:static}div.CodeMirror-cursors{position:relative;visibility:hidden;z-index:3}.CodeMirror-focused div.CodeMirror-cursors,div.CodeMirror-dragcursors{visibility:visible}.CodeMirror-selected{background:#d9d9d9}.CodeMirror-focused .CodeMirror-selected{background:#d7d4f0}.CodeMirror-crosshair{cursor:crosshair}.CodeMirror-line::selection,.CodeMirror-line>span::selection,.CodeMirror-line>span>span::selection{background:#d7d4f0}.CodeMirror-line::-moz-selection,.CodeMirror-line>span::-moz-selection,.CodeMirror-line>span>span::-moz-selection{background:#d7d4f0}.cm-searching{background-color:#ffa;background-color:rgba(255,255,0,.4)}.cm-force-border{padding-right:.1px}@media print{.CodeMirror div.CodeMirror-cursors{visibility:hidden}}.cm-tab-wrap-hack:after{content:\"\"}span.CodeMirror-selectedtext{background:none}";
|
|
14795
|
+
styleInject$1(css_248z$2);
|
|
14794
14796
|
|
|
14795
|
-
|
|
14797
|
+
(function (module, exports) {
|
|
14796
14798
|
// CodeMirror, copyright (c) by Marijn Haverbeke and others
|
|
14797
14799
|
// Distributed under an MIT license: https://codemirror.net/LICENSE
|
|
14798
14800
|
|
|
14799
14801
|
(function(mod) {
|
|
14800
|
-
mod(codemirror);
|
|
14802
|
+
mod(codemirror.exports);
|
|
14801
14803
|
})(function(CodeMirror) {
|
|
14802
14804
|
|
|
14803
14805
|
CodeMirror.registerHelper("fold", "brace", function(cm, start) {
|
|
@@ -14897,14 +14899,14 @@
|
|
|
14897
14899
|
});
|
|
14898
14900
|
|
|
14899
14901
|
});
|
|
14900
|
-
});
|
|
14902
|
+
}());
|
|
14901
14903
|
|
|
14902
|
-
|
|
14904
|
+
(function (module, exports) {
|
|
14903
14905
|
// CodeMirror, copyright (c) by Marijn Haverbeke and others
|
|
14904
14906
|
// Distributed under an MIT license: https://codemirror.net/LICENSE
|
|
14905
14907
|
|
|
14906
14908
|
(function(mod) {
|
|
14907
|
-
mod(codemirror);
|
|
14909
|
+
mod(codemirror.exports);
|
|
14908
14910
|
})(function(CodeMirror) {
|
|
14909
14911
|
|
|
14910
14912
|
CodeMirror.registerGlobalHelper("fold", "comment", function(mode) {
|
|
@@ -14953,14 +14955,16 @@
|
|
|
14953
14955
|
});
|
|
14954
14956
|
|
|
14955
14957
|
});
|
|
14956
|
-
});
|
|
14958
|
+
}());
|
|
14959
|
+
|
|
14960
|
+
var foldcode = {exports: {}};
|
|
14957
14961
|
|
|
14958
|
-
|
|
14962
|
+
(function (module, exports) {
|
|
14959
14963
|
// CodeMirror, copyright (c) by Marijn Haverbeke and others
|
|
14960
14964
|
// Distributed under an MIT license: https://codemirror.net/LICENSE
|
|
14961
14965
|
|
|
14962
14966
|
(function(mod) {
|
|
14963
|
-
mod(codemirror);
|
|
14967
|
+
mod(codemirror.exports);
|
|
14964
14968
|
})(function(CodeMirror) {
|
|
14965
14969
|
|
|
14966
14970
|
function doFold(cm, pos, options, force) {
|
|
@@ -15109,14 +15113,14 @@
|
|
|
15109
15113
|
return getOption(this, options, name);
|
|
15110
15114
|
});
|
|
15111
15115
|
});
|
|
15112
|
-
});
|
|
15116
|
+
}());
|
|
15113
15117
|
|
|
15114
|
-
|
|
15118
|
+
(function (module, exports) {
|
|
15115
15119
|
// CodeMirror, copyright (c) by Marijn Haverbeke and others
|
|
15116
15120
|
// Distributed under an MIT license: https://codemirror.net/LICENSE
|
|
15117
15121
|
|
|
15118
15122
|
(function(mod) {
|
|
15119
|
-
mod(codemirror, foldcode);
|
|
15123
|
+
mod(codemirror.exports, foldcode.exports);
|
|
15120
15124
|
})(function(CodeMirror) {
|
|
15121
15125
|
|
|
15122
15126
|
CodeMirror.defineOption("foldGutter", false, function(cm, val, old) {
|
|
@@ -15269,14 +15273,14 @@
|
|
|
15269
15273
|
updateFoldInfo(cm, line, line + 1);
|
|
15270
15274
|
}
|
|
15271
15275
|
});
|
|
15272
|
-
});
|
|
15276
|
+
}());
|
|
15273
15277
|
|
|
15274
|
-
|
|
15278
|
+
(function (module, exports) {
|
|
15275
15279
|
// CodeMirror, copyright (c) by Marijn Haverbeke and others
|
|
15276
15280
|
// Distributed under an MIT license: https://codemirror.net/LICENSE
|
|
15277
15281
|
|
|
15278
15282
|
(function(mod) {
|
|
15279
|
-
mod(codemirror);
|
|
15283
|
+
mod(codemirror.exports);
|
|
15280
15284
|
})(function(CodeMirror) {
|
|
15281
15285
|
|
|
15282
15286
|
function lineIndent(cm, lineNo) {
|
|
@@ -15313,14 +15317,14 @@
|
|
|
15313
15317
|
});
|
|
15314
15318
|
|
|
15315
15319
|
});
|
|
15316
|
-
});
|
|
15320
|
+
}());
|
|
15317
15321
|
|
|
15318
|
-
|
|
15322
|
+
(function (module, exports) {
|
|
15319
15323
|
// CodeMirror, copyright (c) by Marijn Haverbeke and others
|
|
15320
15324
|
// Distributed under an MIT license: https://codemirror.net/LICENSE
|
|
15321
15325
|
|
|
15322
15326
|
(function(mod) {
|
|
15323
|
-
mod(codemirror);
|
|
15327
|
+
mod(codemirror.exports);
|
|
15324
15328
|
})(function(CodeMirror) {
|
|
15325
15329
|
|
|
15326
15330
|
var Pos = CodeMirror.Pos;
|
|
@@ -15494,19 +15498,21 @@
|
|
|
15494
15498
|
return findMatchingClose(iter, name);
|
|
15495
15499
|
};
|
|
15496
15500
|
});
|
|
15497
|
-
});
|
|
15501
|
+
}());
|
|
15498
15502
|
|
|
15499
|
-
var css_248z$1 = ".CodeMirror-foldmarker{color
|
|
15500
|
-
styleInject(css_248z$1);
|
|
15503
|
+
var css_248z$1$1 = ".CodeMirror-foldmarker{color:blue;cursor:pointer;font-family:arial;line-height:.3;text-shadow:#b9f 1px 1px 2px,#b9f -1px -1px 2px,#b9f 1px -1px 2px,#b9f -1px 1px 2px}.CodeMirror-foldgutter{width:.7em}.CodeMirror-foldgutter-folded,.CodeMirror-foldgutter-open{cursor:pointer}.CodeMirror-foldgutter-open:after{content:\"\\25BE\"}.CodeMirror-foldgutter-folded:after{content:\"\\25B8\"}";
|
|
15504
|
+
styleInject$1(css_248z$1$1);
|
|
15505
|
+
|
|
15506
|
+
var dialog = {exports: {}};
|
|
15501
15507
|
|
|
15502
|
-
|
|
15508
|
+
(function (module, exports) {
|
|
15503
15509
|
// CodeMirror, copyright (c) by Marijn Haverbeke and others
|
|
15504
15510
|
// Distributed under an MIT license: https://codemirror.net/LICENSE
|
|
15505
15511
|
|
|
15506
15512
|
// Open simple dialogs on top of an editor. Relies on dialog.css.
|
|
15507
15513
|
|
|
15508
15514
|
(function(mod) {
|
|
15509
|
-
mod(codemirror);
|
|
15515
|
+
mod(codemirror.exports);
|
|
15510
15516
|
})(function(CodeMirror) {
|
|
15511
15517
|
function dialogDiv(cm, template, bottom) {
|
|
15512
15518
|
var wrap = cm.getWrapperElement();
|
|
@@ -15658,16 +15664,16 @@
|
|
|
15658
15664
|
return close;
|
|
15659
15665
|
});
|
|
15660
15666
|
});
|
|
15661
|
-
});
|
|
15667
|
+
}());
|
|
15662
15668
|
|
|
15663
|
-
|
|
15669
|
+
(function (module, exports) {
|
|
15664
15670
|
// CodeMirror, copyright (c) by Marijn Haverbeke and others
|
|
15665
15671
|
// Distributed under an MIT license: https://codemirror.net/LICENSE
|
|
15666
15672
|
|
|
15667
15673
|
// Defines jumpToLine command. Uses dialog.js if present.
|
|
15668
15674
|
|
|
15669
15675
|
(function(mod) {
|
|
15670
|
-
mod(codemirror, dialog);
|
|
15676
|
+
mod(codemirror.exports, dialog.exports);
|
|
15671
15677
|
})(function(CodeMirror) {
|
|
15672
15678
|
|
|
15673
15679
|
// default search panel location
|
|
@@ -15708,14 +15714,16 @@
|
|
|
15708
15714
|
|
|
15709
15715
|
CodeMirror.keyMap["default"]["Alt-G"] = "jumpToLine";
|
|
15710
15716
|
});
|
|
15711
|
-
});
|
|
15717
|
+
}());
|
|
15718
|
+
|
|
15719
|
+
var searchcursor = {exports: {}};
|
|
15712
15720
|
|
|
15713
|
-
|
|
15721
|
+
(function (module, exports) {
|
|
15714
15722
|
// CodeMirror, copyright (c) by Marijn Haverbeke and others
|
|
15715
15723
|
// Distributed under an MIT license: https://codemirror.net/LICENSE
|
|
15716
15724
|
|
|
15717
15725
|
(function(mod) {
|
|
15718
|
-
mod(codemirror);
|
|
15726
|
+
mod(codemirror.exports);
|
|
15719
15727
|
})(function(CodeMirror) {
|
|
15720
15728
|
var Pos = CodeMirror.Pos;
|
|
15721
15729
|
|
|
@@ -16010,9 +16018,9 @@
|
|
|
16010
16018
|
this.setSelections(ranges, 0);
|
|
16011
16019
|
});
|
|
16012
16020
|
});
|
|
16013
|
-
});
|
|
16021
|
+
}());
|
|
16014
16022
|
|
|
16015
|
-
|
|
16023
|
+
(function (module, exports) {
|
|
16016
16024
|
// CodeMirror, copyright (c) by Marijn Haverbeke and others
|
|
16017
16025
|
// Distributed under an MIT license: https://codemirror.net/LICENSE
|
|
16018
16026
|
|
|
@@ -16025,7 +16033,7 @@
|
|
|
16025
16033
|
// Ctrl-G.
|
|
16026
16034
|
|
|
16027
16035
|
(function(mod) {
|
|
16028
|
-
mod(codemirror, searchcursor, dialog);
|
|
16036
|
+
mod(codemirror.exports, searchcursor.exports, dialog.exports);
|
|
16029
16037
|
})(function(CodeMirror) {
|
|
16030
16038
|
|
|
16031
16039
|
// default search panel location
|
|
@@ -16299,12 +16307,12 @@
|
|
|
16299
16307
|
CodeMirror.commands.replace = replace;
|
|
16300
16308
|
CodeMirror.commands.replaceAll = function(cm) {replace(cm, true);};
|
|
16301
16309
|
});
|
|
16302
|
-
});
|
|
16310
|
+
}());
|
|
16303
16311
|
|
|
16304
|
-
var css_248z$
|
|
16305
|
-
styleInject(css_248z$
|
|
16312
|
+
var css_248z$3 = ".CodeMirror-dialog{background:inherit;color:inherit;left:0;overflow:hidden;padding:.1em .8em;position:absolute;right:0;z-index:15}.CodeMirror-dialog-top{border-bottom:1px solid #eee;top:0}.CodeMirror-dialog-bottom{border-top:1px solid #eee;bottom:0}.CodeMirror-dialog input{background:transparent;border:none;color:inherit;font-family:monospace;outline:none;width:20em}.CodeMirror-dialog button{font-size:70%}";
|
|
16313
|
+
styleInject$1(css_248z$3);
|
|
16306
16314
|
|
|
16307
|
-
function styleInject
|
|
16315
|
+
function styleInject(css, ref) {
|
|
16308
16316
|
if ( ref === void 0 ) ref = {};
|
|
16309
16317
|
var insertAt = ref.insertAt;
|
|
16310
16318
|
|
|
@@ -16331,8 +16339,8 @@
|
|
|
16331
16339
|
}
|
|
16332
16340
|
}
|
|
16333
16341
|
|
|
16334
|
-
var css_248z$
|
|
16335
|
-
styleInject
|
|
16342
|
+
var css_248z$1 = ".codemirror_Editor{border:1px solid #d3d3d3}.codemirror_Editor .cm-marked-text{background-color:#ff0}.codemirror_Editor .cm-marked-error,.codemirror_Editor .cm-marked-info,.codemirror_Editor .cm-marked-warning{background-position:0 100%;background-repeat:repeat-x;display:inline-block;position:relative}.codemirror_Editor .cm-marked-info{background-image:url(\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAADCAYAAAC09K7GAAAAHElEQVQYV2NkgIP//xkYGBkZIXwIB0SDCQgHAgDEXAgCKU2DPwAAAABJRU5ErkJggg==\")}.codemirror_Editor .cm-marked-error{background-image:url(\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAADCAYAAAC09K7GAAAAHUlEQVQYV2NkgIL/DAz/GRkYGBlBfBgHTMM4MJUAzFoIAuwf4BEAAAAASUVORK5CYII=\")}.codemirror_Editor .cm-marked-warning{background-image:url(\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAADCAYAAAC09K7GAAAAHUlEQVQYV2NkgIL/Sxn+M0YzMDKC+DAOmIZxYCoBKQkLp8ga+UwAAAAASUVORK5CYII=\")}";
|
|
16343
|
+
styleInject(css_248z$1);
|
|
16336
16344
|
|
|
16337
16345
|
var Editor = /** @class */ (function (_super) {
|
|
16338
16346
|
__extends(Editor, _super);
|
|
@@ -16355,7 +16363,7 @@
|
|
|
16355
16363
|
if (this.gutterMarkerWidth() > 0) {
|
|
16356
16364
|
gutters.unshift({
|
|
16357
16365
|
className: "CodeMirror-guttermarker",
|
|
16358
|
-
style: "width:"
|
|
16366
|
+
style: "width:".concat(this.gutterMarkerWidth(), "px;")
|
|
16359
16367
|
});
|
|
16360
16368
|
}
|
|
16361
16369
|
return gutters;
|
|
@@ -16467,7 +16475,7 @@
|
|
|
16467
16475
|
Editor.prototype.enter = function (domNode, element) {
|
|
16468
16476
|
var _this = this;
|
|
16469
16477
|
_super.prototype.enter.call(this, domNode, element);
|
|
16470
|
-
this._codemirror =
|
|
16478
|
+
this._codemirror = CodeMirror.fromTextArea(element.append("textarea").node(), this.options());
|
|
16471
16479
|
this._codemirror.on("changes", function (cm, changes) {
|
|
16472
16480
|
_this.changes(changes);
|
|
16473
16481
|
});
|
|
@@ -16529,8 +16537,8 @@
|
|
|
16529
16537
|
}(Editor));
|
|
16530
16538
|
DOTEditor.prototype._class += " codemirror_JSEditor";
|
|
16531
16539
|
|
|
16532
|
-
var css_248z
|
|
16533
|
-
styleInject
|
|
16540
|
+
var css_248z = ".codemirror_ECLEditor .cm-s-default span.cm-comment{color:green}.codemirror_ECLEditor .cm-s-default span.cm-keyword{color:#00f}.codemirror_ECLEditor .cm-s-default span.cm-variable{color:navy;font-weight:700}.codemirror_ECLEditor .cm-s-default span.cm-variable-2,.codemirror_ECLEditor .cm-s-default span.cm-variable-3{color:maroon}.codemirror_ECLEditor .cm-s-default span.cm-builtin{color:purple}.codemirror_ECLEditor .cm-s-default span.cm-string{color:grey}.cm-s-default span.cm-atom,.codemirror_ECLEditor .cm-s-default span.cm-number{color:#000}.codemirror_ECLEditor .cm-s-default span.cm-meta{color:#004080}.codemirror_ECLEditor .ErrorLine{background:#c00!important;color:#fff!important}.codemirror_ECLEditor .WarningLine{background:#ff9!important}.codemirror_ECLEditor .highlightline{background:#e8f2ff!important}";
|
|
16541
|
+
styleInject(css_248z);
|
|
16534
16542
|
|
|
16535
16543
|
var ECLEditor = /** @class */ (function (_super) {
|
|
16536
16544
|
__extends(ECLEditor, _super);
|
|
@@ -16671,5 +16679,5 @@
|
|
|
16671
16679
|
|
|
16672
16680
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
16673
16681
|
|
|
16674
|
-
}))
|
|
16682
|
+
}));
|
|
16675
16683
|
//# sourceMappingURL=index.js.map
|