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