vue-devui 1.5.9 → 1.5.11
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/alert/index.es.js +4 -3
- package/alert/index.umd.js +3 -3
- package/alert/style.css +1 -1
- package/avatar/index.es.js +9 -6
- package/avatar/index.umd.js +3 -3
- package/avatar/style.css +1 -1
- package/badge/index.es.js +1 -0
- package/badge/index.umd.js +1 -1
- package/carousel/index.es.js +46 -9
- package/carousel/index.umd.js +1 -1
- package/carousel/style.css +1 -1
- package/code-review/index.es.js +478 -151
- package/code-review/index.umd.js +49 -24
- package/code-review/style.css +1 -1
- package/collapse/index.es.js +1 -1
- package/collapse/index.umd.js +2 -2
- package/collapse/style.css +1 -1
- package/editor-md/index.es.js +913 -91
- package/editor-md/index.umd.js +47 -47
- package/global.d.ts +0 -1
- package/package.json +1 -1
- package/style.css +1 -1
- package/table/index.es.js +3 -3
- package/table/index.umd.js +2 -2
- package/types/avatar/src/avatar.d.ts +4 -2
- package/types/code-review/src/code-review-types.d.ts +14 -2
- package/types/code-review/src/code-review.d.ts +32 -5
- package/types/code-review/src/composables/use-code-review-comment.d.ts +10 -6
- package/types/code-review/src/const.d.ts +20 -0
- package/types/code-review/src/utils.d.ts +8 -3
- package/types/editor-md/src/editor-md.d.ts +2 -2
- package/types/fullscreen/index.d.ts +0 -1
- package/types/fullscreen/src/fullscreen-types.d.ts +2 -3
- package/types/fullscreen/src/fullscreen.d.ts +3 -3
- package/types/shared/utils/index.d.ts +2 -0
- package/types/shared/utils/use-namespace.d.ts +13 -0
- package/vue-devui.es.js +1665 -533
- package/vue-devui.umd.js +110 -85
- package/fullscreen/index.es.js +0 -166
- package/fullscreen/index.umd.js +0 -1
- package/fullscreen/package.json +0 -8
- package/fullscreen/style.css +0 -1
- package/nuxt/components/Fullscreen.js +0 -3
- package/nuxt/components/fullscreenProps.js +0 -3
package/editor-md/index.es.js
CHANGED
|
@@ -59,7 +59,57 @@ function useKeydown(props, ctx) {
|
|
|
59
59
|
document.removeEventListener("keydown", handleKeydown);
|
|
60
60
|
});
|
|
61
61
|
}
|
|
62
|
-
function
|
|
62
|
+
function debounce(func, wait, immediate) {
|
|
63
|
+
let timer, result;
|
|
64
|
+
return function(...args) {
|
|
65
|
+
if (timer) {
|
|
66
|
+
clearTimeout(timer);
|
|
67
|
+
}
|
|
68
|
+
if (immediate) {
|
|
69
|
+
const localImmediate = !timer;
|
|
70
|
+
timer = window.setTimeout(() => {
|
|
71
|
+
timer = null;
|
|
72
|
+
}, wait);
|
|
73
|
+
if (localImmediate) {
|
|
74
|
+
result = func.apply(this, args);
|
|
75
|
+
}
|
|
76
|
+
} else {
|
|
77
|
+
timer = window.setTimeout(() => {
|
|
78
|
+
func.apply(this, args);
|
|
79
|
+
}, wait);
|
|
80
|
+
}
|
|
81
|
+
return result;
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
function getElement(element) {
|
|
85
|
+
if (element instanceof Element) {
|
|
86
|
+
return element;
|
|
87
|
+
}
|
|
88
|
+
if (element && typeof element === "object" && element.$el instanceof Element) {
|
|
89
|
+
return element.$el;
|
|
90
|
+
}
|
|
91
|
+
return null;
|
|
92
|
+
}
|
|
93
|
+
function lockScroll() {
|
|
94
|
+
if (document.documentElement.scrollHeight > document.documentElement.clientHeight) {
|
|
95
|
+
const scrollTop = document.documentElement.scrollTop;
|
|
96
|
+
const style = document.documentElement.getAttribute("style");
|
|
97
|
+
document.documentElement.style.position = "fixed";
|
|
98
|
+
document.documentElement.style.top = `-${scrollTop}px`;
|
|
99
|
+
document.documentElement.style.width = document.documentElement.style.width || "100%";
|
|
100
|
+
document.documentElement.style.overflowY = "scroll";
|
|
101
|
+
return () => {
|
|
102
|
+
if (style) {
|
|
103
|
+
document.documentElement.setAttribute("style", style);
|
|
104
|
+
} else {
|
|
105
|
+
document.documentElement.removeAttribute("style");
|
|
106
|
+
}
|
|
107
|
+
document.documentElement.scrollTop = scrollTop;
|
|
108
|
+
};
|
|
109
|
+
}
|
|
110
|
+
return;
|
|
111
|
+
}
|
|
112
|
+
function createBem$1(namespace, element, modifier) {
|
|
63
113
|
let cls = namespace;
|
|
64
114
|
if (element) {
|
|
65
115
|
cls += `__${element}`;
|
|
@@ -69,12 +119,12 @@ function createBem(namespace, element, modifier) {
|
|
|
69
119
|
}
|
|
70
120
|
return cls;
|
|
71
121
|
}
|
|
72
|
-
function useNamespace(block, needDot = false) {
|
|
122
|
+
function useNamespace$1(block, needDot = false) {
|
|
73
123
|
const namespace = needDot ? `.devui-${block}` : `devui-${block}`;
|
|
74
|
-
const b = () => createBem(namespace);
|
|
75
|
-
const e = (element) => element ? createBem(namespace, element) : "";
|
|
76
|
-
const m = (modifier) => modifier ? createBem(namespace, "", modifier) : "";
|
|
77
|
-
const em = (element, modifier) => element && modifier ? createBem(namespace, element, modifier) : "";
|
|
124
|
+
const b = () => createBem$1(namespace);
|
|
125
|
+
const e = (element) => element ? createBem$1(namespace, element) : "";
|
|
126
|
+
const m = (modifier) => modifier ? createBem$1(namespace, "", modifier) : "";
|
|
127
|
+
const em = (element, modifier) => element && modifier ? createBem$1(namespace, element, modifier) : "";
|
|
78
128
|
return {
|
|
79
129
|
b,
|
|
80
130
|
e,
|
|
@@ -82,7 +132,7 @@ function useNamespace(block, needDot = false) {
|
|
|
82
132
|
em
|
|
83
133
|
};
|
|
84
134
|
}
|
|
85
|
-
const ns$1 = useNamespace("fullscreen");
|
|
135
|
+
const ns$1 = useNamespace$1("fullscreen");
|
|
86
136
|
const launchNormalFullscreen = (targetElement, props) => {
|
|
87
137
|
targetElement.classList.add(ns$1.b());
|
|
88
138
|
if (props.zIndex) {
|
|
@@ -156,7 +206,7 @@ function useFullscreen(props, slotElement, ctx) {
|
|
|
156
206
|
});
|
|
157
207
|
const handleFullscreenChange = () => {
|
|
158
208
|
if (!document.fullscreenElement) {
|
|
159
|
-
ctx.emit("update:modelValue");
|
|
209
|
+
ctx.emit("update:modelValue", false);
|
|
160
210
|
exitByKeydown = true;
|
|
161
211
|
} else {
|
|
162
212
|
exitByKeydown = false;
|
|
@@ -186,55 +236,797 @@ var Fullscreen = defineComponent({
|
|
|
186
236
|
};
|
|
187
237
|
}
|
|
188
238
|
});
|
|
189
|
-
function
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
239
|
+
function listCacheClear$2() {
|
|
240
|
+
this.__data__ = [];
|
|
241
|
+
this.size = 0;
|
|
242
|
+
}
|
|
243
|
+
function eq$3(value, other) {
|
|
244
|
+
return value === other || value !== value && other !== other;
|
|
245
|
+
}
|
|
246
|
+
function assocIndexOf$5(array, key) {
|
|
247
|
+
var length = array.length;
|
|
248
|
+
while (length--) {
|
|
249
|
+
if (eq$3(array[length][0], key)) {
|
|
250
|
+
return length;
|
|
194
251
|
}
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
252
|
+
}
|
|
253
|
+
return -1;
|
|
254
|
+
}
|
|
255
|
+
var arrayProto$1 = Array.prototype;
|
|
256
|
+
var splice$1 = arrayProto$1.splice;
|
|
257
|
+
function listCacheDelete$2(key) {
|
|
258
|
+
var data = this.__data__, index2 = assocIndexOf$5(data, key);
|
|
259
|
+
if (index2 < 0) {
|
|
260
|
+
return false;
|
|
261
|
+
}
|
|
262
|
+
var lastIndex = data.length - 1;
|
|
263
|
+
if (index2 == lastIndex) {
|
|
264
|
+
data.pop();
|
|
265
|
+
} else {
|
|
266
|
+
splice$1.call(data, index2, 1);
|
|
267
|
+
}
|
|
268
|
+
--this.size;
|
|
269
|
+
return true;
|
|
270
|
+
}
|
|
271
|
+
function listCacheGet$2(key) {
|
|
272
|
+
var data = this.__data__, index2 = assocIndexOf$5(data, key);
|
|
273
|
+
return index2 < 0 ? void 0 : data[index2][1];
|
|
274
|
+
}
|
|
275
|
+
function listCacheHas$2(key) {
|
|
276
|
+
return assocIndexOf$5(this.__data__, key) > -1;
|
|
277
|
+
}
|
|
278
|
+
function listCacheSet$2(key, value) {
|
|
279
|
+
var data = this.__data__, index2 = assocIndexOf$5(data, key);
|
|
280
|
+
if (index2 < 0) {
|
|
281
|
+
++this.size;
|
|
282
|
+
data.push([key, value]);
|
|
283
|
+
} else {
|
|
284
|
+
data[index2][1] = value;
|
|
285
|
+
}
|
|
286
|
+
return this;
|
|
287
|
+
}
|
|
288
|
+
function ListCache$5(entries) {
|
|
289
|
+
var index2 = -1, length = entries == null ? 0 : entries.length;
|
|
290
|
+
this.clear();
|
|
291
|
+
while (++index2 < length) {
|
|
292
|
+
var entry = entries[index2];
|
|
293
|
+
this.set(entry[0], entry[1]);
|
|
294
|
+
}
|
|
295
|
+
}
|
|
296
|
+
ListCache$5.prototype.clear = listCacheClear$2;
|
|
297
|
+
ListCache$5.prototype["delete"] = listCacheDelete$2;
|
|
298
|
+
ListCache$5.prototype.get = listCacheGet$2;
|
|
299
|
+
ListCache$5.prototype.has = listCacheHas$2;
|
|
300
|
+
ListCache$5.prototype.set = listCacheSet$2;
|
|
301
|
+
function stackClear$2() {
|
|
302
|
+
this.__data__ = new ListCache$5();
|
|
303
|
+
this.size = 0;
|
|
304
|
+
}
|
|
305
|
+
function stackDelete$2(key) {
|
|
306
|
+
var data = this.__data__, result = data["delete"](key);
|
|
307
|
+
this.size = data.size;
|
|
308
|
+
return result;
|
|
309
|
+
}
|
|
310
|
+
function stackGet$2(key) {
|
|
311
|
+
return this.__data__.get(key);
|
|
312
|
+
}
|
|
313
|
+
function stackHas$2(key) {
|
|
314
|
+
return this.__data__.has(key);
|
|
315
|
+
}
|
|
316
|
+
var freeGlobal$2 = typeof global == "object" && global && global.Object === Object && global;
|
|
317
|
+
var freeGlobal$3 = freeGlobal$2;
|
|
318
|
+
var freeSelf$1 = typeof self == "object" && self && self.Object === Object && self;
|
|
319
|
+
var root$9 = freeGlobal$3 || freeSelf$1 || Function("return this")();
|
|
320
|
+
var root$a = root$9;
|
|
321
|
+
var Symbol$5 = root$a.Symbol;
|
|
322
|
+
var Symbol$6 = Symbol$5;
|
|
323
|
+
var objectProto$p = Object.prototype;
|
|
324
|
+
var hasOwnProperty$j = objectProto$p.hasOwnProperty;
|
|
325
|
+
var nativeObjectToString$3 = objectProto$p.toString;
|
|
326
|
+
var symToStringTag$3 = Symbol$6 ? Symbol$6.toStringTag : void 0;
|
|
327
|
+
function getRawTag$2(value) {
|
|
328
|
+
var isOwn = hasOwnProperty$j.call(value, symToStringTag$3), tag = value[symToStringTag$3];
|
|
329
|
+
try {
|
|
330
|
+
value[symToStringTag$3] = void 0;
|
|
331
|
+
var unmasked = true;
|
|
332
|
+
} catch (e) {
|
|
333
|
+
}
|
|
334
|
+
var result = nativeObjectToString$3.call(value);
|
|
335
|
+
if (unmasked) {
|
|
336
|
+
if (isOwn) {
|
|
337
|
+
value[symToStringTag$3] = tag;
|
|
203
338
|
} else {
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
339
|
+
delete value[symToStringTag$3];
|
|
340
|
+
}
|
|
341
|
+
}
|
|
342
|
+
return result;
|
|
343
|
+
}
|
|
344
|
+
var objectProto$o = Object.prototype;
|
|
345
|
+
var nativeObjectToString$2 = objectProto$o.toString;
|
|
346
|
+
function objectToString$2(value) {
|
|
347
|
+
return nativeObjectToString$2.call(value);
|
|
348
|
+
}
|
|
349
|
+
var nullTag$1 = "[object Null]", undefinedTag$1 = "[object Undefined]";
|
|
350
|
+
var symToStringTag$2 = Symbol$6 ? Symbol$6.toStringTag : void 0;
|
|
351
|
+
function baseGetTag$5(value) {
|
|
352
|
+
if (value == null) {
|
|
353
|
+
return value === void 0 ? undefinedTag$1 : nullTag$1;
|
|
354
|
+
}
|
|
355
|
+
return symToStringTag$2 && symToStringTag$2 in Object(value) ? getRawTag$2(value) : objectToString$2(value);
|
|
356
|
+
}
|
|
357
|
+
function isObject$7(value) {
|
|
358
|
+
var type = typeof value;
|
|
359
|
+
return value != null && (type == "object" || type == "function");
|
|
360
|
+
}
|
|
361
|
+
var asyncTag$1 = "[object AsyncFunction]", funcTag$5 = "[object Function]", genTag$3 = "[object GeneratorFunction]", proxyTag$1 = "[object Proxy]";
|
|
362
|
+
function isFunction$3(value) {
|
|
363
|
+
if (!isObject$7(value)) {
|
|
364
|
+
return false;
|
|
365
|
+
}
|
|
366
|
+
var tag = baseGetTag$5(value);
|
|
367
|
+
return tag == funcTag$5 || tag == genTag$3 || tag == asyncTag$1 || tag == proxyTag$1;
|
|
368
|
+
}
|
|
369
|
+
var coreJsData$2 = root$a["__core-js_shared__"];
|
|
370
|
+
var coreJsData$3 = coreJsData$2;
|
|
371
|
+
var maskSrcKey$1 = function() {
|
|
372
|
+
var uid = /[^.]+$/.exec(coreJsData$3 && coreJsData$3.keys && coreJsData$3.keys.IE_PROTO || "");
|
|
373
|
+
return uid ? "Symbol(src)_1." + uid : "";
|
|
374
|
+
}();
|
|
375
|
+
function isMasked$2(func) {
|
|
376
|
+
return !!maskSrcKey$1 && maskSrcKey$1 in func;
|
|
377
|
+
}
|
|
378
|
+
var funcProto$3 = Function.prototype;
|
|
379
|
+
var funcToString$3 = funcProto$3.toString;
|
|
380
|
+
function toSource$3(func) {
|
|
381
|
+
if (func != null) {
|
|
382
|
+
try {
|
|
383
|
+
return funcToString$3.call(func);
|
|
384
|
+
} catch (e) {
|
|
385
|
+
}
|
|
386
|
+
try {
|
|
387
|
+
return func + "";
|
|
388
|
+
} catch (e) {
|
|
389
|
+
}
|
|
390
|
+
}
|
|
391
|
+
return "";
|
|
392
|
+
}
|
|
393
|
+
var reRegExpChar$1 = /[\\^$.*+?()[\]{}|]/g;
|
|
394
|
+
var reIsHostCtor$1 = /^\[object .+?Constructor\]$/;
|
|
395
|
+
var funcProto$2 = Function.prototype, objectProto$n = Object.prototype;
|
|
396
|
+
var funcToString$2 = funcProto$2.toString;
|
|
397
|
+
var hasOwnProperty$i = objectProto$n.hasOwnProperty;
|
|
398
|
+
var reIsNative$1 = RegExp("^" + funcToString$2.call(hasOwnProperty$i).replace(reRegExpChar$1, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$");
|
|
399
|
+
function baseIsNative$2(value) {
|
|
400
|
+
if (!isObject$7(value) || isMasked$2(value)) {
|
|
401
|
+
return false;
|
|
402
|
+
}
|
|
403
|
+
var pattern = isFunction$3(value) ? reIsNative$1 : reIsHostCtor$1;
|
|
404
|
+
return pattern.test(toSource$3(value));
|
|
405
|
+
}
|
|
406
|
+
function getValue$2(object, key) {
|
|
407
|
+
return object == null ? void 0 : object[key];
|
|
408
|
+
}
|
|
409
|
+
function getNative$8(object, key) {
|
|
410
|
+
var value = getValue$2(object, key);
|
|
411
|
+
return baseIsNative$2(value) ? value : void 0;
|
|
412
|
+
}
|
|
413
|
+
var Map$5 = getNative$8(root$a, "Map");
|
|
414
|
+
var Map$6 = Map$5;
|
|
415
|
+
var nativeCreate$5 = getNative$8(Object, "create");
|
|
416
|
+
var nativeCreate$6 = nativeCreate$5;
|
|
417
|
+
function hashClear$2() {
|
|
418
|
+
this.__data__ = nativeCreate$6 ? nativeCreate$6(null) : {};
|
|
419
|
+
this.size = 0;
|
|
420
|
+
}
|
|
421
|
+
function hashDelete$2(key) {
|
|
422
|
+
var result = this.has(key) && delete this.__data__[key];
|
|
423
|
+
this.size -= result ? 1 : 0;
|
|
424
|
+
return result;
|
|
425
|
+
}
|
|
426
|
+
var HASH_UNDEFINED$3 = "__lodash_hash_undefined__";
|
|
427
|
+
var objectProto$m = Object.prototype;
|
|
428
|
+
var hasOwnProperty$h = objectProto$m.hasOwnProperty;
|
|
429
|
+
function hashGet$2(key) {
|
|
430
|
+
var data = this.__data__;
|
|
431
|
+
if (nativeCreate$6) {
|
|
432
|
+
var result = data[key];
|
|
433
|
+
return result === HASH_UNDEFINED$3 ? void 0 : result;
|
|
434
|
+
}
|
|
435
|
+
return hasOwnProperty$h.call(data, key) ? data[key] : void 0;
|
|
436
|
+
}
|
|
437
|
+
var objectProto$l = Object.prototype;
|
|
438
|
+
var hasOwnProperty$g = objectProto$l.hasOwnProperty;
|
|
439
|
+
function hashHas$2(key) {
|
|
440
|
+
var data = this.__data__;
|
|
441
|
+
return nativeCreate$6 ? data[key] !== void 0 : hasOwnProperty$g.call(data, key);
|
|
442
|
+
}
|
|
443
|
+
var HASH_UNDEFINED$2 = "__lodash_hash_undefined__";
|
|
444
|
+
function hashSet$2(key, value) {
|
|
445
|
+
var data = this.__data__;
|
|
446
|
+
this.size += this.has(key) ? 0 : 1;
|
|
447
|
+
data[key] = nativeCreate$6 && value === void 0 ? HASH_UNDEFINED$2 : value;
|
|
448
|
+
return this;
|
|
449
|
+
}
|
|
450
|
+
function Hash$2(entries) {
|
|
451
|
+
var index2 = -1, length = entries == null ? 0 : entries.length;
|
|
452
|
+
this.clear();
|
|
453
|
+
while (++index2 < length) {
|
|
454
|
+
var entry = entries[index2];
|
|
455
|
+
this.set(entry[0], entry[1]);
|
|
456
|
+
}
|
|
457
|
+
}
|
|
458
|
+
Hash$2.prototype.clear = hashClear$2;
|
|
459
|
+
Hash$2.prototype["delete"] = hashDelete$2;
|
|
460
|
+
Hash$2.prototype.get = hashGet$2;
|
|
461
|
+
Hash$2.prototype.has = hashHas$2;
|
|
462
|
+
Hash$2.prototype.set = hashSet$2;
|
|
463
|
+
function mapCacheClear$2() {
|
|
464
|
+
this.size = 0;
|
|
465
|
+
this.__data__ = {
|
|
466
|
+
"hash": new Hash$2(),
|
|
467
|
+
"map": new (Map$6 || ListCache$5)(),
|
|
468
|
+
"string": new Hash$2()
|
|
469
|
+
};
|
|
470
|
+
}
|
|
471
|
+
function isKeyable$2(value) {
|
|
472
|
+
var type = typeof value;
|
|
473
|
+
return type == "string" || type == "number" || type == "symbol" || type == "boolean" ? value !== "__proto__" : value === null;
|
|
474
|
+
}
|
|
475
|
+
function getMapData$5(map, key) {
|
|
476
|
+
var data = map.__data__;
|
|
477
|
+
return isKeyable$2(key) ? data[typeof key == "string" ? "string" : "hash"] : data.map;
|
|
478
|
+
}
|
|
479
|
+
function mapCacheDelete$2(key) {
|
|
480
|
+
var result = getMapData$5(this, key)["delete"](key);
|
|
481
|
+
this.size -= result ? 1 : 0;
|
|
482
|
+
return result;
|
|
483
|
+
}
|
|
484
|
+
function mapCacheGet$2(key) {
|
|
485
|
+
return getMapData$5(this, key).get(key);
|
|
486
|
+
}
|
|
487
|
+
function mapCacheHas$2(key) {
|
|
488
|
+
return getMapData$5(this, key).has(key);
|
|
489
|
+
}
|
|
490
|
+
function mapCacheSet$2(key, value) {
|
|
491
|
+
var data = getMapData$5(this, key), size = data.size;
|
|
492
|
+
data.set(key, value);
|
|
493
|
+
this.size += data.size == size ? 0 : 1;
|
|
494
|
+
return this;
|
|
495
|
+
}
|
|
496
|
+
function MapCache$2(entries) {
|
|
497
|
+
var index2 = -1, length = entries == null ? 0 : entries.length;
|
|
498
|
+
this.clear();
|
|
499
|
+
while (++index2 < length) {
|
|
500
|
+
var entry = entries[index2];
|
|
501
|
+
this.set(entry[0], entry[1]);
|
|
502
|
+
}
|
|
503
|
+
}
|
|
504
|
+
MapCache$2.prototype.clear = mapCacheClear$2;
|
|
505
|
+
MapCache$2.prototype["delete"] = mapCacheDelete$2;
|
|
506
|
+
MapCache$2.prototype.get = mapCacheGet$2;
|
|
507
|
+
MapCache$2.prototype.has = mapCacheHas$2;
|
|
508
|
+
MapCache$2.prototype.set = mapCacheSet$2;
|
|
509
|
+
var LARGE_ARRAY_SIZE$1 = 200;
|
|
510
|
+
function stackSet$2(key, value) {
|
|
511
|
+
var data = this.__data__;
|
|
512
|
+
if (data instanceof ListCache$5) {
|
|
513
|
+
var pairs = data.__data__;
|
|
514
|
+
if (!Map$6 || pairs.length < LARGE_ARRAY_SIZE$1 - 1) {
|
|
515
|
+
pairs.push([key, value]);
|
|
516
|
+
this.size = ++data.size;
|
|
517
|
+
return this;
|
|
518
|
+
}
|
|
519
|
+
data = this.__data__ = new MapCache$2(pairs);
|
|
520
|
+
}
|
|
521
|
+
data.set(key, value);
|
|
522
|
+
this.size = data.size;
|
|
523
|
+
return this;
|
|
524
|
+
}
|
|
525
|
+
function Stack$2(entries) {
|
|
526
|
+
var data = this.__data__ = new ListCache$5(entries);
|
|
527
|
+
this.size = data.size;
|
|
528
|
+
}
|
|
529
|
+
Stack$2.prototype.clear = stackClear$2;
|
|
530
|
+
Stack$2.prototype["delete"] = stackDelete$2;
|
|
531
|
+
Stack$2.prototype.get = stackGet$2;
|
|
532
|
+
Stack$2.prototype.has = stackHas$2;
|
|
533
|
+
Stack$2.prototype.set = stackSet$2;
|
|
534
|
+
function arrayEach$2(array, iteratee) {
|
|
535
|
+
var index2 = -1, length = array == null ? 0 : array.length;
|
|
536
|
+
while (++index2 < length) {
|
|
537
|
+
if (iteratee(array[index2], index2, array) === false) {
|
|
538
|
+
break;
|
|
539
|
+
}
|
|
540
|
+
}
|
|
541
|
+
return array;
|
|
542
|
+
}
|
|
543
|
+
var defineProperty$2 = function() {
|
|
544
|
+
try {
|
|
545
|
+
var func = getNative$8(Object, "defineProperty");
|
|
546
|
+
func({}, "", {});
|
|
547
|
+
return func;
|
|
548
|
+
} catch (e) {
|
|
549
|
+
}
|
|
550
|
+
}();
|
|
551
|
+
var defineProperty$3 = defineProperty$2;
|
|
552
|
+
function baseAssignValue$3(object, key, value) {
|
|
553
|
+
if (key == "__proto__" && defineProperty$3) {
|
|
554
|
+
defineProperty$3(object, key, {
|
|
555
|
+
"configurable": true,
|
|
556
|
+
"enumerable": true,
|
|
557
|
+
"value": value,
|
|
558
|
+
"writable": true
|
|
559
|
+
});
|
|
560
|
+
} else {
|
|
561
|
+
object[key] = value;
|
|
562
|
+
}
|
|
563
|
+
}
|
|
564
|
+
var objectProto$k = Object.prototype;
|
|
565
|
+
var hasOwnProperty$f = objectProto$k.hasOwnProperty;
|
|
566
|
+
function assignValue$3(object, key, value) {
|
|
567
|
+
var objValue = object[key];
|
|
568
|
+
if (!(hasOwnProperty$f.call(object, key) && eq$3(objValue, value)) || value === void 0 && !(key in object)) {
|
|
569
|
+
baseAssignValue$3(object, key, value);
|
|
570
|
+
}
|
|
571
|
+
}
|
|
572
|
+
function copyObject$5(source, props, object, customizer) {
|
|
573
|
+
var isNew = !object;
|
|
574
|
+
object || (object = {});
|
|
575
|
+
var index2 = -1, length = props.length;
|
|
576
|
+
while (++index2 < length) {
|
|
577
|
+
var key = props[index2];
|
|
578
|
+
var newValue = customizer ? customizer(object[key], source[key], key, object, source) : void 0;
|
|
579
|
+
if (newValue === void 0) {
|
|
580
|
+
newValue = source[key];
|
|
581
|
+
}
|
|
582
|
+
if (isNew) {
|
|
583
|
+
baseAssignValue$3(object, key, newValue);
|
|
584
|
+
} else {
|
|
585
|
+
assignValue$3(object, key, newValue);
|
|
586
|
+
}
|
|
587
|
+
}
|
|
588
|
+
return object;
|
|
589
|
+
}
|
|
590
|
+
function baseTimes$2(n, iteratee) {
|
|
591
|
+
var index2 = -1, result = Array(n);
|
|
592
|
+
while (++index2 < n) {
|
|
593
|
+
result[index2] = iteratee(index2);
|
|
594
|
+
}
|
|
595
|
+
return result;
|
|
596
|
+
}
|
|
597
|
+
function isObjectLike$6(value) {
|
|
598
|
+
return value != null && typeof value == "object";
|
|
599
|
+
}
|
|
600
|
+
var argsTag$5 = "[object Arguments]";
|
|
601
|
+
function baseIsArguments$2(value) {
|
|
602
|
+
return isObjectLike$6(value) && baseGetTag$5(value) == argsTag$5;
|
|
603
|
+
}
|
|
604
|
+
var objectProto$j = Object.prototype;
|
|
605
|
+
var hasOwnProperty$e = objectProto$j.hasOwnProperty;
|
|
606
|
+
var propertyIsEnumerable$3 = objectProto$j.propertyIsEnumerable;
|
|
607
|
+
var isArguments$2 = baseIsArguments$2(function() {
|
|
608
|
+
return arguments;
|
|
609
|
+
}()) ? baseIsArguments$2 : function(value) {
|
|
610
|
+
return isObjectLike$6(value) && hasOwnProperty$e.call(value, "callee") && !propertyIsEnumerable$3.call(value, "callee");
|
|
611
|
+
};
|
|
612
|
+
var isArguments$3 = isArguments$2;
|
|
613
|
+
var isArray$4 = Array.isArray;
|
|
614
|
+
var isArray$5 = isArray$4;
|
|
615
|
+
function stubFalse$1() {
|
|
616
|
+
return false;
|
|
617
|
+
}
|
|
618
|
+
var freeExports$2 = typeof exports == "object" && exports && !exports.nodeType && exports;
|
|
619
|
+
var freeModule$2 = freeExports$2 && typeof module == "object" && module && !module.nodeType && module;
|
|
620
|
+
var moduleExports$2 = freeModule$2 && freeModule$2.exports === freeExports$2;
|
|
621
|
+
var Buffer$1 = moduleExports$2 ? root$a.Buffer : void 0;
|
|
622
|
+
var nativeIsBuffer = Buffer$1 ? Buffer$1.isBuffer : void 0;
|
|
623
|
+
var isBuffer$3 = nativeIsBuffer || stubFalse$1;
|
|
624
|
+
var isBuffer$4 = isBuffer$3;
|
|
625
|
+
var MAX_SAFE_INTEGER$3 = 9007199254740991;
|
|
626
|
+
var reIsUint$1 = /^(?:0|[1-9]\d*)$/;
|
|
627
|
+
function isIndex$2(value, length) {
|
|
628
|
+
var type = typeof value;
|
|
629
|
+
length = length == null ? MAX_SAFE_INTEGER$3 : length;
|
|
630
|
+
return !!length && (type == "number" || type != "symbol" && reIsUint$1.test(value)) && (value > -1 && value % 1 == 0 && value < length);
|
|
631
|
+
}
|
|
632
|
+
var MAX_SAFE_INTEGER$2 = 9007199254740991;
|
|
633
|
+
function isLength$3(value) {
|
|
634
|
+
return typeof value == "number" && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER$2;
|
|
635
|
+
}
|
|
636
|
+
var argsTag$4 = "[object Arguments]", arrayTag$3 = "[object Array]", boolTag$5 = "[object Boolean]", dateTag$5 = "[object Date]", errorTag$3 = "[object Error]", funcTag$4 = "[object Function]", mapTag$9 = "[object Map]", numberTag$5 = "[object Number]", objectTag$5 = "[object Object]", regexpTag$5 = "[object RegExp]", setTag$9 = "[object Set]", stringTag$5 = "[object String]", weakMapTag$5 = "[object WeakMap]";
|
|
637
|
+
var arrayBufferTag$5 = "[object ArrayBuffer]", dataViewTag$7 = "[object DataView]", float32Tag$5 = "[object Float32Array]", float64Tag$5 = "[object Float64Array]", int8Tag$5 = "[object Int8Array]", int16Tag$5 = "[object Int16Array]", int32Tag$5 = "[object Int32Array]", uint8Tag$5 = "[object Uint8Array]", uint8ClampedTag$5 = "[object Uint8ClampedArray]", uint16Tag$5 = "[object Uint16Array]", uint32Tag$5 = "[object Uint32Array]";
|
|
638
|
+
var typedArrayTags$1 = {};
|
|
639
|
+
typedArrayTags$1[float32Tag$5] = typedArrayTags$1[float64Tag$5] = typedArrayTags$1[int8Tag$5] = typedArrayTags$1[int16Tag$5] = typedArrayTags$1[int32Tag$5] = typedArrayTags$1[uint8Tag$5] = typedArrayTags$1[uint8ClampedTag$5] = typedArrayTags$1[uint16Tag$5] = typedArrayTags$1[uint32Tag$5] = true;
|
|
640
|
+
typedArrayTags$1[argsTag$4] = typedArrayTags$1[arrayTag$3] = typedArrayTags$1[arrayBufferTag$5] = typedArrayTags$1[boolTag$5] = typedArrayTags$1[dataViewTag$7] = typedArrayTags$1[dateTag$5] = typedArrayTags$1[errorTag$3] = typedArrayTags$1[funcTag$4] = typedArrayTags$1[mapTag$9] = typedArrayTags$1[numberTag$5] = typedArrayTags$1[objectTag$5] = typedArrayTags$1[regexpTag$5] = typedArrayTags$1[setTag$9] = typedArrayTags$1[stringTag$5] = typedArrayTags$1[weakMapTag$5] = false;
|
|
641
|
+
function baseIsTypedArray$2(value) {
|
|
642
|
+
return isObjectLike$6(value) && isLength$3(value.length) && !!typedArrayTags$1[baseGetTag$5(value)];
|
|
643
|
+
}
|
|
644
|
+
function baseUnary$4(func) {
|
|
645
|
+
return function(value) {
|
|
646
|
+
return func(value);
|
|
647
|
+
};
|
|
648
|
+
}
|
|
649
|
+
var freeExports$1 = typeof exports == "object" && exports && !exports.nodeType && exports;
|
|
650
|
+
var freeModule$1 = freeExports$1 && typeof module == "object" && module && !module.nodeType && module;
|
|
651
|
+
var moduleExports$1 = freeModule$1 && freeModule$1.exports === freeExports$1;
|
|
652
|
+
var freeProcess = moduleExports$1 && freeGlobal$3.process;
|
|
653
|
+
var nodeUtil$3 = function() {
|
|
654
|
+
try {
|
|
655
|
+
var types = freeModule$1 && freeModule$1.require && freeModule$1.require("util").types;
|
|
656
|
+
if (types) {
|
|
657
|
+
return types;
|
|
658
|
+
}
|
|
659
|
+
return freeProcess && freeProcess.binding && freeProcess.binding("util");
|
|
660
|
+
} catch (e) {
|
|
661
|
+
}
|
|
662
|
+
}();
|
|
663
|
+
var nodeUtil$4 = nodeUtil$3;
|
|
664
|
+
var nodeIsTypedArray$1 = nodeUtil$4 && nodeUtil$4.isTypedArray;
|
|
665
|
+
var isTypedArray$2 = nodeIsTypedArray$1 ? baseUnary$4(nodeIsTypedArray$1) : baseIsTypedArray$2;
|
|
666
|
+
var isTypedArray$3 = isTypedArray$2;
|
|
667
|
+
var objectProto$i = Object.prototype;
|
|
668
|
+
var hasOwnProperty$d = objectProto$i.hasOwnProperty;
|
|
669
|
+
function arrayLikeKeys$3(value, inherited) {
|
|
670
|
+
var isArr = isArray$5(value), isArg = !isArr && isArguments$3(value), isBuff = !isArr && !isArg && isBuffer$4(value), isType = !isArr && !isArg && !isBuff && isTypedArray$3(value), skipIndexes = isArr || isArg || isBuff || isType, result = skipIndexes ? baseTimes$2(value.length, String) : [], length = result.length;
|
|
671
|
+
for (var key in value) {
|
|
672
|
+
if ((inherited || hasOwnProperty$d.call(value, key)) && !(skipIndexes && (key == "length" || isBuff && (key == "offset" || key == "parent") || isType && (key == "buffer" || key == "byteLength" || key == "byteOffset") || isIndex$2(key, length)))) {
|
|
673
|
+
result.push(key);
|
|
674
|
+
}
|
|
675
|
+
}
|
|
676
|
+
return result;
|
|
677
|
+
}
|
|
678
|
+
var objectProto$h = Object.prototype;
|
|
679
|
+
function isPrototype$4(value) {
|
|
680
|
+
var Ctor = value && value.constructor, proto = typeof Ctor == "function" && Ctor.prototype || objectProto$h;
|
|
681
|
+
return value === proto;
|
|
682
|
+
}
|
|
683
|
+
function overArg$3(func, transform) {
|
|
684
|
+
return function(arg) {
|
|
685
|
+
return func(transform(arg));
|
|
686
|
+
};
|
|
687
|
+
}
|
|
688
|
+
var nativeKeys$2 = overArg$3(Object.keys, Object);
|
|
689
|
+
var nativeKeys$3 = nativeKeys$2;
|
|
690
|
+
var objectProto$g = Object.prototype;
|
|
691
|
+
var hasOwnProperty$c = objectProto$g.hasOwnProperty;
|
|
692
|
+
function baseKeys$2(object) {
|
|
693
|
+
if (!isPrototype$4(object)) {
|
|
694
|
+
return nativeKeys$3(object);
|
|
695
|
+
}
|
|
696
|
+
var result = [];
|
|
697
|
+
for (var key in Object(object)) {
|
|
698
|
+
if (hasOwnProperty$c.call(object, key) && key != "constructor") {
|
|
699
|
+
result.push(key);
|
|
700
|
+
}
|
|
701
|
+
}
|
|
702
|
+
return result;
|
|
703
|
+
}
|
|
704
|
+
function isArrayLike$3(value) {
|
|
705
|
+
return value != null && isLength$3(value.length) && !isFunction$3(value);
|
|
706
|
+
}
|
|
707
|
+
function keys$4(object) {
|
|
708
|
+
return isArrayLike$3(object) ? arrayLikeKeys$3(object) : baseKeys$2(object);
|
|
709
|
+
}
|
|
710
|
+
function baseAssign$2(object, source) {
|
|
711
|
+
return object && copyObject$5(source, keys$4(source), object);
|
|
712
|
+
}
|
|
713
|
+
function nativeKeysIn$2(object) {
|
|
714
|
+
var result = [];
|
|
715
|
+
if (object != null) {
|
|
716
|
+
for (var key in Object(object)) {
|
|
717
|
+
result.push(key);
|
|
718
|
+
}
|
|
719
|
+
}
|
|
720
|
+
return result;
|
|
721
|
+
}
|
|
722
|
+
var objectProto$f = Object.prototype;
|
|
723
|
+
var hasOwnProperty$b = objectProto$f.hasOwnProperty;
|
|
724
|
+
function baseKeysIn$2(object) {
|
|
725
|
+
if (!isObject$7(object)) {
|
|
726
|
+
return nativeKeysIn$2(object);
|
|
727
|
+
}
|
|
728
|
+
var isProto = isPrototype$4(object), result = [];
|
|
729
|
+
for (var key in object) {
|
|
730
|
+
if (!(key == "constructor" && (isProto || !hasOwnProperty$b.call(object, key)))) {
|
|
731
|
+
result.push(key);
|
|
732
|
+
}
|
|
733
|
+
}
|
|
734
|
+
return result;
|
|
735
|
+
}
|
|
736
|
+
function keysIn$4(object) {
|
|
737
|
+
return isArrayLike$3(object) ? arrayLikeKeys$3(object, true) : baseKeysIn$2(object);
|
|
738
|
+
}
|
|
739
|
+
function baseAssignIn$2(object, source) {
|
|
740
|
+
return object && copyObject$5(source, keysIn$4(source), object);
|
|
741
|
+
}
|
|
742
|
+
var freeExports = typeof exports == "object" && exports && !exports.nodeType && exports;
|
|
743
|
+
var freeModule = freeExports && typeof module == "object" && module && !module.nodeType && module;
|
|
744
|
+
var moduleExports = freeModule && freeModule.exports === freeExports;
|
|
745
|
+
var Buffer2 = moduleExports ? root$a.Buffer : void 0, allocUnsafe = Buffer2 ? Buffer2.allocUnsafe : void 0;
|
|
746
|
+
function cloneBuffer$1(buffer, isDeep) {
|
|
747
|
+
if (isDeep) {
|
|
748
|
+
return buffer.slice();
|
|
749
|
+
}
|
|
750
|
+
var length = buffer.length, result = allocUnsafe ? allocUnsafe(length) : new buffer.constructor(length);
|
|
751
|
+
buffer.copy(result);
|
|
752
|
+
return result;
|
|
753
|
+
}
|
|
754
|
+
function copyArray$2(source, array) {
|
|
755
|
+
var index2 = -1, length = source.length;
|
|
756
|
+
array || (array = Array(length));
|
|
757
|
+
while (++index2 < length) {
|
|
758
|
+
array[index2] = source[index2];
|
|
759
|
+
}
|
|
760
|
+
return array;
|
|
761
|
+
}
|
|
762
|
+
function arrayFilter$2(array, predicate) {
|
|
763
|
+
var index2 = -1, length = array == null ? 0 : array.length, resIndex = 0, result = [];
|
|
764
|
+
while (++index2 < length) {
|
|
765
|
+
var value = array[index2];
|
|
766
|
+
if (predicate(value, index2, array)) {
|
|
767
|
+
result[resIndex++] = value;
|
|
768
|
+
}
|
|
769
|
+
}
|
|
770
|
+
return result;
|
|
771
|
+
}
|
|
772
|
+
function stubArray$3() {
|
|
773
|
+
return [];
|
|
774
|
+
}
|
|
775
|
+
var objectProto$e = Object.prototype;
|
|
776
|
+
var propertyIsEnumerable$2 = objectProto$e.propertyIsEnumerable;
|
|
777
|
+
var nativeGetSymbols$3 = Object.getOwnPropertySymbols;
|
|
778
|
+
var getSymbols$4 = !nativeGetSymbols$3 ? stubArray$3 : function(object) {
|
|
779
|
+
if (object == null) {
|
|
780
|
+
return [];
|
|
781
|
+
}
|
|
782
|
+
object = Object(object);
|
|
783
|
+
return arrayFilter$2(nativeGetSymbols$3(object), function(symbol) {
|
|
784
|
+
return propertyIsEnumerable$2.call(object, symbol);
|
|
785
|
+
});
|
|
786
|
+
};
|
|
787
|
+
var getSymbols$5 = getSymbols$4;
|
|
788
|
+
function copySymbols$2(source, object) {
|
|
789
|
+
return copyObject$5(source, getSymbols$5(source), object);
|
|
790
|
+
}
|
|
791
|
+
function arrayPush$3(array, values) {
|
|
792
|
+
var index2 = -1, length = values.length, offset2 = array.length;
|
|
793
|
+
while (++index2 < length) {
|
|
794
|
+
array[offset2 + index2] = values[index2];
|
|
795
|
+
}
|
|
796
|
+
return array;
|
|
797
|
+
}
|
|
798
|
+
var getPrototype$3 = overArg$3(Object.getPrototypeOf, Object);
|
|
799
|
+
var getPrototype$4 = getPrototype$3;
|
|
800
|
+
var nativeGetSymbols$2 = Object.getOwnPropertySymbols;
|
|
801
|
+
var getSymbolsIn$3 = !nativeGetSymbols$2 ? stubArray$3 : function(object) {
|
|
802
|
+
var result = [];
|
|
803
|
+
while (object) {
|
|
804
|
+
arrayPush$3(result, getSymbols$5(object));
|
|
805
|
+
object = getPrototype$4(object);
|
|
806
|
+
}
|
|
807
|
+
return result;
|
|
808
|
+
};
|
|
809
|
+
var getSymbolsIn$4 = getSymbolsIn$3;
|
|
810
|
+
function copySymbolsIn$2(source, object) {
|
|
811
|
+
return copyObject$5(source, getSymbolsIn$4(source), object);
|
|
812
|
+
}
|
|
813
|
+
function baseGetAllKeys$3(object, keysFunc, symbolsFunc) {
|
|
814
|
+
var result = keysFunc(object);
|
|
815
|
+
return isArray$5(object) ? result : arrayPush$3(result, symbolsFunc(object));
|
|
816
|
+
}
|
|
817
|
+
function getAllKeys$2(object) {
|
|
818
|
+
return baseGetAllKeys$3(object, keys$4, getSymbols$5);
|
|
819
|
+
}
|
|
820
|
+
function getAllKeysIn$2(object) {
|
|
821
|
+
return baseGetAllKeys$3(object, keysIn$4, getSymbolsIn$4);
|
|
822
|
+
}
|
|
823
|
+
var DataView$2 = getNative$8(root$a, "DataView");
|
|
824
|
+
var DataView$3 = DataView$2;
|
|
825
|
+
var Promise$3 = getNative$8(root$a, "Promise");
|
|
826
|
+
var Promise$4 = Promise$3;
|
|
827
|
+
var Set$2 = getNative$8(root$a, "Set");
|
|
828
|
+
var Set$3 = Set$2;
|
|
829
|
+
var WeakMap$2 = getNative$8(root$a, "WeakMap");
|
|
830
|
+
var WeakMap$3 = WeakMap$2;
|
|
831
|
+
var mapTag$8 = "[object Map]", objectTag$4 = "[object Object]", promiseTag$1 = "[object Promise]", setTag$8 = "[object Set]", weakMapTag$4 = "[object WeakMap]";
|
|
832
|
+
var dataViewTag$6 = "[object DataView]";
|
|
833
|
+
var dataViewCtorString$1 = toSource$3(DataView$3), mapCtorString$1 = toSource$3(Map$6), promiseCtorString$1 = toSource$3(Promise$4), setCtorString$1 = toSource$3(Set$3), weakMapCtorString$1 = toSource$3(WeakMap$3);
|
|
834
|
+
var getTag$4 = baseGetTag$5;
|
|
835
|
+
if (DataView$3 && getTag$4(new DataView$3(new ArrayBuffer(1))) != dataViewTag$6 || Map$6 && getTag$4(new Map$6()) != mapTag$8 || Promise$4 && getTag$4(Promise$4.resolve()) != promiseTag$1 || Set$3 && getTag$4(new Set$3()) != setTag$8 || WeakMap$3 && getTag$4(new WeakMap$3()) != weakMapTag$4) {
|
|
836
|
+
getTag$4 = function(value) {
|
|
837
|
+
var result = baseGetTag$5(value), Ctor = result == objectTag$4 ? value.constructor : void 0, ctorString = Ctor ? toSource$3(Ctor) : "";
|
|
838
|
+
if (ctorString) {
|
|
839
|
+
switch (ctorString) {
|
|
840
|
+
case dataViewCtorString$1:
|
|
841
|
+
return dataViewTag$6;
|
|
842
|
+
case mapCtorString$1:
|
|
843
|
+
return mapTag$8;
|
|
844
|
+
case promiseCtorString$1:
|
|
845
|
+
return promiseTag$1;
|
|
846
|
+
case setCtorString$1:
|
|
847
|
+
return setTag$8;
|
|
848
|
+
case weakMapCtorString$1:
|
|
849
|
+
return weakMapTag$4;
|
|
850
|
+
}
|
|
207
851
|
}
|
|
208
852
|
return result;
|
|
209
853
|
};
|
|
210
854
|
}
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
855
|
+
var getTag$5 = getTag$4;
|
|
856
|
+
var objectProto$d = Object.prototype;
|
|
857
|
+
var hasOwnProperty$a = objectProto$d.hasOwnProperty;
|
|
858
|
+
function initCloneArray$2(array) {
|
|
859
|
+
var length = array.length, result = new array.constructor(length);
|
|
860
|
+
if (length && typeof array[0] == "string" && hasOwnProperty$a.call(array, "index")) {
|
|
861
|
+
result.index = array.index;
|
|
862
|
+
result.input = array.input;
|
|
214
863
|
}
|
|
215
|
-
|
|
216
|
-
|
|
864
|
+
return result;
|
|
865
|
+
}
|
|
866
|
+
var Uint8Array$2 = root$a.Uint8Array;
|
|
867
|
+
var Uint8Array$3 = Uint8Array$2;
|
|
868
|
+
function cloneArrayBuffer$4(arrayBuffer) {
|
|
869
|
+
var result = new arrayBuffer.constructor(arrayBuffer.byteLength);
|
|
870
|
+
new Uint8Array$3(result).set(new Uint8Array$3(arrayBuffer));
|
|
871
|
+
return result;
|
|
872
|
+
}
|
|
873
|
+
function cloneDataView$2(dataView, isDeep) {
|
|
874
|
+
var buffer = isDeep ? cloneArrayBuffer$4(dataView.buffer) : dataView.buffer;
|
|
875
|
+
return new dataView.constructor(buffer, dataView.byteOffset, dataView.byteLength);
|
|
876
|
+
}
|
|
877
|
+
var reFlags$1 = /\w*$/;
|
|
878
|
+
function cloneRegExp$2(regexp) {
|
|
879
|
+
var result = new regexp.constructor(regexp.source, reFlags$1.exec(regexp));
|
|
880
|
+
result.lastIndex = regexp.lastIndex;
|
|
881
|
+
return result;
|
|
882
|
+
}
|
|
883
|
+
var symbolProto$1 = Symbol$6 ? Symbol$6.prototype : void 0, symbolValueOf$1 = symbolProto$1 ? symbolProto$1.valueOf : void 0;
|
|
884
|
+
function cloneSymbol$2(symbol) {
|
|
885
|
+
return symbolValueOf$1 ? Object(symbolValueOf$1.call(symbol)) : {};
|
|
886
|
+
}
|
|
887
|
+
function cloneTypedArray$2(typedArray, isDeep) {
|
|
888
|
+
var buffer = isDeep ? cloneArrayBuffer$4(typedArray.buffer) : typedArray.buffer;
|
|
889
|
+
return new typedArray.constructor(buffer, typedArray.byteOffset, typedArray.length);
|
|
890
|
+
}
|
|
891
|
+
var boolTag$4 = "[object Boolean]", dateTag$4 = "[object Date]", mapTag$7 = "[object Map]", numberTag$4 = "[object Number]", regexpTag$4 = "[object RegExp]", setTag$7 = "[object Set]", stringTag$4 = "[object String]", symbolTag$3 = "[object Symbol]";
|
|
892
|
+
var arrayBufferTag$4 = "[object ArrayBuffer]", dataViewTag$5 = "[object DataView]", float32Tag$4 = "[object Float32Array]", float64Tag$4 = "[object Float64Array]", int8Tag$4 = "[object Int8Array]", int16Tag$4 = "[object Int16Array]", int32Tag$4 = "[object Int32Array]", uint8Tag$4 = "[object Uint8Array]", uint8ClampedTag$4 = "[object Uint8ClampedArray]", uint16Tag$4 = "[object Uint16Array]", uint32Tag$4 = "[object Uint32Array]";
|
|
893
|
+
function initCloneByTag$2(object, tag, isDeep) {
|
|
894
|
+
var Ctor = object.constructor;
|
|
895
|
+
switch (tag) {
|
|
896
|
+
case arrayBufferTag$4:
|
|
897
|
+
return cloneArrayBuffer$4(object);
|
|
898
|
+
case boolTag$4:
|
|
899
|
+
case dateTag$4:
|
|
900
|
+
return new Ctor(+object);
|
|
901
|
+
case dataViewTag$5:
|
|
902
|
+
return cloneDataView$2(object, isDeep);
|
|
903
|
+
case float32Tag$4:
|
|
904
|
+
case float64Tag$4:
|
|
905
|
+
case int8Tag$4:
|
|
906
|
+
case int16Tag$4:
|
|
907
|
+
case int32Tag$4:
|
|
908
|
+
case uint8Tag$4:
|
|
909
|
+
case uint8ClampedTag$4:
|
|
910
|
+
case uint16Tag$4:
|
|
911
|
+
case uint32Tag$4:
|
|
912
|
+
return cloneTypedArray$2(object, isDeep);
|
|
913
|
+
case mapTag$7:
|
|
914
|
+
return new Ctor();
|
|
915
|
+
case numberTag$4:
|
|
916
|
+
case stringTag$4:
|
|
917
|
+
return new Ctor(object);
|
|
918
|
+
case regexpTag$4:
|
|
919
|
+
return cloneRegExp$2(object);
|
|
920
|
+
case setTag$7:
|
|
921
|
+
return new Ctor();
|
|
922
|
+
case symbolTag$3:
|
|
923
|
+
return cloneSymbol$2(object);
|
|
217
924
|
}
|
|
218
|
-
return null;
|
|
219
925
|
}
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
926
|
+
var objectCreate$1 = Object.create;
|
|
927
|
+
var baseCreate$2 = function() {
|
|
928
|
+
function object() {
|
|
929
|
+
}
|
|
930
|
+
return function(proto) {
|
|
931
|
+
if (!isObject$7(proto)) {
|
|
932
|
+
return {};
|
|
933
|
+
}
|
|
934
|
+
if (objectCreate$1) {
|
|
935
|
+
return objectCreate$1(proto);
|
|
936
|
+
}
|
|
937
|
+
object.prototype = proto;
|
|
938
|
+
var result = new object();
|
|
939
|
+
object.prototype = void 0;
|
|
940
|
+
return result;
|
|
941
|
+
};
|
|
942
|
+
}();
|
|
943
|
+
var baseCreate$3 = baseCreate$2;
|
|
944
|
+
function initCloneObject$2(object) {
|
|
945
|
+
return typeof object.constructor == "function" && !isPrototype$4(object) ? baseCreate$3(getPrototype$4(object)) : {};
|
|
946
|
+
}
|
|
947
|
+
var mapTag$6 = "[object Map]";
|
|
948
|
+
function baseIsMap$2(value) {
|
|
949
|
+
return isObjectLike$6(value) && getTag$5(value) == mapTag$6;
|
|
950
|
+
}
|
|
951
|
+
var nodeIsMap$1 = nodeUtil$4 && nodeUtil$4.isMap;
|
|
952
|
+
var isMap$2 = nodeIsMap$1 ? baseUnary$4(nodeIsMap$1) : baseIsMap$2;
|
|
953
|
+
var isMap$3 = isMap$2;
|
|
954
|
+
var setTag$6 = "[object Set]";
|
|
955
|
+
function baseIsSet$2(value) {
|
|
956
|
+
return isObjectLike$6(value) && getTag$5(value) == setTag$6;
|
|
957
|
+
}
|
|
958
|
+
var nodeIsSet$1 = nodeUtil$4 && nodeUtil$4.isSet;
|
|
959
|
+
var isSet$2 = nodeIsSet$1 ? baseUnary$4(nodeIsSet$1) : baseIsSet$2;
|
|
960
|
+
var isSet$3 = isSet$2;
|
|
961
|
+
var CLONE_DEEP_FLAG$3 = 1, CLONE_FLAT_FLAG$1 = 2, CLONE_SYMBOLS_FLAG$3 = 4;
|
|
962
|
+
var argsTag$3 = "[object Arguments]", arrayTag$2 = "[object Array]", boolTag$3 = "[object Boolean]", dateTag$3 = "[object Date]", errorTag$2 = "[object Error]", funcTag$3 = "[object Function]", genTag$2 = "[object GeneratorFunction]", mapTag$5 = "[object Map]", numberTag$3 = "[object Number]", objectTag$3 = "[object Object]", regexpTag$3 = "[object RegExp]", setTag$5 = "[object Set]", stringTag$3 = "[object String]", symbolTag$2 = "[object Symbol]", weakMapTag$3 = "[object WeakMap]";
|
|
963
|
+
var arrayBufferTag$3 = "[object ArrayBuffer]", dataViewTag$4 = "[object DataView]", float32Tag$3 = "[object Float32Array]", float64Tag$3 = "[object Float64Array]", int8Tag$3 = "[object Int8Array]", int16Tag$3 = "[object Int16Array]", int32Tag$3 = "[object Int32Array]", uint8Tag$3 = "[object Uint8Array]", uint8ClampedTag$3 = "[object Uint8ClampedArray]", uint16Tag$3 = "[object Uint16Array]", uint32Tag$3 = "[object Uint32Array]";
|
|
964
|
+
var cloneableTags$1 = {};
|
|
965
|
+
cloneableTags$1[argsTag$3] = cloneableTags$1[arrayTag$2] = cloneableTags$1[arrayBufferTag$3] = cloneableTags$1[dataViewTag$4] = cloneableTags$1[boolTag$3] = cloneableTags$1[dateTag$3] = cloneableTags$1[float32Tag$3] = cloneableTags$1[float64Tag$3] = cloneableTags$1[int8Tag$3] = cloneableTags$1[int16Tag$3] = cloneableTags$1[int32Tag$3] = cloneableTags$1[mapTag$5] = cloneableTags$1[numberTag$3] = cloneableTags$1[objectTag$3] = cloneableTags$1[regexpTag$3] = cloneableTags$1[setTag$5] = cloneableTags$1[stringTag$3] = cloneableTags$1[symbolTag$2] = cloneableTags$1[uint8Tag$3] = cloneableTags$1[uint8ClampedTag$3] = cloneableTags$1[uint16Tag$3] = cloneableTags$1[uint32Tag$3] = true;
|
|
966
|
+
cloneableTags$1[errorTag$2] = cloneableTags$1[funcTag$3] = cloneableTags$1[weakMapTag$3] = false;
|
|
967
|
+
function baseClone$2(value, bitmask, customizer, key, object, stack) {
|
|
968
|
+
var result, isDeep = bitmask & CLONE_DEEP_FLAG$3, isFlat = bitmask & CLONE_FLAT_FLAG$1, isFull = bitmask & CLONE_SYMBOLS_FLAG$3;
|
|
969
|
+
if (customizer) {
|
|
970
|
+
result = object ? customizer(value, key, object, stack) : customizer(value);
|
|
971
|
+
}
|
|
972
|
+
if (result !== void 0) {
|
|
973
|
+
return result;
|
|
974
|
+
}
|
|
975
|
+
if (!isObject$7(value)) {
|
|
976
|
+
return value;
|
|
977
|
+
}
|
|
978
|
+
var isArr = isArray$5(value);
|
|
979
|
+
if (isArr) {
|
|
980
|
+
result = initCloneArray$2(value);
|
|
981
|
+
if (!isDeep) {
|
|
982
|
+
return copyArray$2(value, result);
|
|
983
|
+
}
|
|
984
|
+
} else {
|
|
985
|
+
var tag = getTag$5(value), isFunc = tag == funcTag$3 || tag == genTag$2;
|
|
986
|
+
if (isBuffer$4(value)) {
|
|
987
|
+
return cloneBuffer$1(value, isDeep);
|
|
988
|
+
}
|
|
989
|
+
if (tag == objectTag$3 || tag == argsTag$3 || isFunc && !object) {
|
|
990
|
+
result = isFlat || isFunc ? {} : initCloneObject$2(value);
|
|
991
|
+
if (!isDeep) {
|
|
992
|
+
return isFlat ? copySymbolsIn$2(value, baseAssignIn$2(result, value)) : copySymbols$2(value, baseAssign$2(result, value));
|
|
233
993
|
}
|
|
234
|
-
|
|
235
|
-
|
|
994
|
+
} else {
|
|
995
|
+
if (!cloneableTags$1[tag]) {
|
|
996
|
+
return object ? value : {};
|
|
997
|
+
}
|
|
998
|
+
result = initCloneByTag$2(value, tag, isDeep);
|
|
999
|
+
}
|
|
236
1000
|
}
|
|
237
|
-
|
|
1001
|
+
stack || (stack = new Stack$2());
|
|
1002
|
+
var stacked = stack.get(value);
|
|
1003
|
+
if (stacked) {
|
|
1004
|
+
return stacked;
|
|
1005
|
+
}
|
|
1006
|
+
stack.set(value, result);
|
|
1007
|
+
if (isSet$3(value)) {
|
|
1008
|
+
value.forEach(function(subValue) {
|
|
1009
|
+
result.add(baseClone$2(subValue, bitmask, customizer, subValue, value, stack));
|
|
1010
|
+
});
|
|
1011
|
+
} else if (isMap$3(value)) {
|
|
1012
|
+
value.forEach(function(subValue, key2) {
|
|
1013
|
+
result.set(key2, baseClone$2(subValue, bitmask, customizer, key2, value, stack));
|
|
1014
|
+
});
|
|
1015
|
+
}
|
|
1016
|
+
var keysFunc = isFull ? isFlat ? getAllKeysIn$2 : getAllKeys$2 : isFlat ? keysIn$4 : keys$4;
|
|
1017
|
+
var props = isArr ? void 0 : keysFunc(value);
|
|
1018
|
+
arrayEach$2(props || value, function(subValue, key2) {
|
|
1019
|
+
if (props) {
|
|
1020
|
+
key2 = subValue;
|
|
1021
|
+
subValue = value[key2];
|
|
1022
|
+
}
|
|
1023
|
+
assignValue$3(result, key2, baseClone$2(subValue, bitmask, customizer, key2, value, stack));
|
|
1024
|
+
});
|
|
1025
|
+
return result;
|
|
1026
|
+
}
|
|
1027
|
+
var CLONE_DEEP_FLAG$2 = 1, CLONE_SYMBOLS_FLAG$2 = 4;
|
|
1028
|
+
function cloneDeep$1(value) {
|
|
1029
|
+
return baseClone$2(value, CLONE_DEEP_FLAG$2 | CLONE_SYMBOLS_FLAG$2);
|
|
238
1030
|
}
|
|
239
1031
|
const UNDO_ICON = `<svg width="16px" height="14px" viewBox="0 0 16 14">
|
|
240
1032
|
<g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
|
|
@@ -499,7 +1291,7 @@ __publicField(ToolBarHandler, "image", (editor, params) => {
|
|
|
499
1291
|
};
|
|
500
1292
|
imageUploader.onchange = (e) => {
|
|
501
1293
|
const file = e.target["files"][0];
|
|
502
|
-
params.imageUpload
|
|
1294
|
+
params.imageUpload({ file, callback });
|
|
503
1295
|
};
|
|
504
1296
|
imageUploader.click();
|
|
505
1297
|
} else {
|
|
@@ -679,7 +1471,8 @@ const DEFAULT_TOOLBARS = {
|
|
|
679
1471
|
type: "button",
|
|
680
1472
|
icon: IMAGE_ICON,
|
|
681
1473
|
shortKey: "Ctrl+G",
|
|
682
|
-
|
|
1474
|
+
params: { imageUploadToServer: false },
|
|
1475
|
+
handler: ToolBarHandler.image
|
|
683
1476
|
},
|
|
684
1477
|
file: {
|
|
685
1478
|
id: "file",
|
|
@@ -896,7 +1689,7 @@ function useEditorMd(props, ctx) {
|
|
|
896
1689
|
disableChangeEvent,
|
|
897
1690
|
modelValue
|
|
898
1691
|
} = toRefs(props);
|
|
899
|
-
const toolbars = reactive(DEFAULT_TOOLBARS);
|
|
1692
|
+
const toolbars = reactive(cloneDeep$1(DEFAULT_TOOLBARS));
|
|
900
1693
|
const editorRef = ref();
|
|
901
1694
|
const renderRef = ref();
|
|
902
1695
|
const previewHtmlList = ref([]);
|
|
@@ -1034,8 +1827,8 @@ function useEditorMd(props, ctx) {
|
|
|
1034
1827
|
onMounted(async () => {
|
|
1035
1828
|
await import("codemirror/addon/display/placeholder.js");
|
|
1036
1829
|
await import("codemirror/mode/markdown/markdown.js");
|
|
1037
|
-
const
|
|
1038
|
-
CodeMirror =
|
|
1830
|
+
const module2 = await import("codemirror");
|
|
1831
|
+
CodeMirror = module2.default;
|
|
1039
1832
|
initEditor();
|
|
1040
1833
|
});
|
|
1041
1834
|
watch(modelValue, (val) => {
|
|
@@ -1050,7 +1843,12 @@ function useEditorMd(props, ctx) {
|
|
|
1050
1843
|
if (toolbars["image"].params) {
|
|
1051
1844
|
toolbars["image"].params.imageUploadToServer = val;
|
|
1052
1845
|
}
|
|
1053
|
-
|
|
1846
|
+
if (toolbars["image"].params && !toolbars["image"].params.imageUpload) {
|
|
1847
|
+
toolbars["image"].params.imageUpload = (data) => {
|
|
1848
|
+
ctx.emit("imageUpload", data);
|
|
1849
|
+
};
|
|
1850
|
+
}
|
|
1851
|
+
}, { immediate: true });
|
|
1054
1852
|
watch(hidePreviewView, () => {
|
|
1055
1853
|
refreshEditorCursor();
|
|
1056
1854
|
});
|
|
@@ -1449,6 +2247,29 @@ function useFixedOverlay(props, ctx) {
|
|
|
1449
2247
|
onUnmounted(removeBodyAdditions);
|
|
1450
2248
|
return { onClick };
|
|
1451
2249
|
}
|
|
2250
|
+
function createBem(namespace, element, modifier) {
|
|
2251
|
+
let cls = namespace;
|
|
2252
|
+
if (element) {
|
|
2253
|
+
cls += `__${element}`;
|
|
2254
|
+
}
|
|
2255
|
+
if (modifier) {
|
|
2256
|
+
cls += `--${modifier}`;
|
|
2257
|
+
}
|
|
2258
|
+
return cls;
|
|
2259
|
+
}
|
|
2260
|
+
function useNamespace(block, needDot = false) {
|
|
2261
|
+
const namespace = needDot ? `.devui-${block}` : `devui-${block}`;
|
|
2262
|
+
const b = () => createBem(namespace);
|
|
2263
|
+
const e = (element) => element ? createBem(namespace, element) : "";
|
|
2264
|
+
const m = (modifier) => modifier ? createBem(namespace, "", modifier) : "";
|
|
2265
|
+
const em = (element, modifier) => element && modifier ? createBem(namespace, element, modifier) : "";
|
|
2266
|
+
return {
|
|
2267
|
+
b,
|
|
2268
|
+
e,
|
|
2269
|
+
m,
|
|
2270
|
+
em
|
|
2271
|
+
};
|
|
2272
|
+
}
|
|
1452
2273
|
var fixedOverlay = "";
|
|
1453
2274
|
defineComponent({
|
|
1454
2275
|
name: "DFixedOverlay",
|
|
@@ -1942,7 +2763,7 @@ var lodash = { exports: {} };
|
|
|
1942
2763
|
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
|
1943
2764
|
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|
1944
2765
|
*/
|
|
1945
|
-
(function(
|
|
2766
|
+
(function(module2, exports2) {
|
|
1946
2767
|
(function() {
|
|
1947
2768
|
var undefined$1;
|
|
1948
2769
|
var VERSION = "4.17.21";
|
|
@@ -2268,17 +3089,17 @@ var lodash = { exports: {} };
|
|
|
2268
3089
|
var freeGlobal2 = typeof commonjsGlobal == "object" && commonjsGlobal && commonjsGlobal.Object === Object && commonjsGlobal;
|
|
2269
3090
|
var freeSelf2 = typeof self == "object" && self && self.Object === Object && self;
|
|
2270
3091
|
var root2 = freeGlobal2 || freeSelf2 || Function("return this")();
|
|
2271
|
-
var
|
|
2272
|
-
var
|
|
2273
|
-
var
|
|
2274
|
-
var
|
|
3092
|
+
var freeExports2 = exports2 && !exports2.nodeType && exports2;
|
|
3093
|
+
var freeModule2 = freeExports2 && true && module2 && !module2.nodeType && module2;
|
|
3094
|
+
var moduleExports2 = freeModule2 && freeModule2.exports === freeExports2;
|
|
3095
|
+
var freeProcess2 = moduleExports2 && freeGlobal2.process;
|
|
2275
3096
|
var nodeUtil2 = function() {
|
|
2276
3097
|
try {
|
|
2277
|
-
var types =
|
|
3098
|
+
var types = freeModule2 && freeModule2.require && freeModule2.require("util").types;
|
|
2278
3099
|
if (types) {
|
|
2279
3100
|
return types;
|
|
2280
3101
|
}
|
|
2281
|
-
return
|
|
3102
|
+
return freeProcess2 && freeProcess2.binding && freeProcess2.binding("util");
|
|
2282
3103
|
} catch (e) {
|
|
2283
3104
|
}
|
|
2284
3105
|
}();
|
|
@@ -2643,7 +3464,7 @@ var lodash = { exports: {} };
|
|
|
2643
3464
|
var objectCtorString = funcToString2.call(Object2);
|
|
2644
3465
|
var oldDash = root2._;
|
|
2645
3466
|
var reIsNative2 = RegExp2("^" + funcToString2.call(hasOwnProperty2).replace(reRegExpChar2, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$");
|
|
2646
|
-
var
|
|
3467
|
+
var Buffer3 = moduleExports2 ? context.Buffer : undefined$1, Symbol2 = context.Symbol, Uint8Array3 = context.Uint8Array, allocUnsafe2 = Buffer3 ? Buffer3.allocUnsafe : undefined$1, getPrototype2 = overArg2(Object2.getPrototypeOf, Object2), objectCreate2 = Object2.create, propertyIsEnumerable2 = objectProto2.propertyIsEnumerable, splice2 = arrayProto2.splice, spreadableSymbol = Symbol2 ? Symbol2.isConcatSpreadable : undefined$1, symIterator = Symbol2 ? Symbol2.iterator : undefined$1, symToStringTag2 = Symbol2 ? Symbol2.toStringTag : undefined$1;
|
|
2647
3468
|
var defineProperty2 = function() {
|
|
2648
3469
|
try {
|
|
2649
3470
|
var func = getNative2(Object2, "defineProperty");
|
|
@@ -2653,7 +3474,7 @@ var lodash = { exports: {} };
|
|
|
2653
3474
|
}
|
|
2654
3475
|
}();
|
|
2655
3476
|
var ctxClearTimeout = context.clearTimeout !== root2.clearTimeout && context.clearTimeout, ctxNow = Date && Date.now !== root2.Date.now && Date.now, ctxSetTimeout = context.setTimeout !== root2.setTimeout && context.setTimeout;
|
|
2656
|
-
var nativeCeil = Math2.ceil, nativeFloor = Math2.floor, nativeGetSymbols2 = Object2.getOwnPropertySymbols,
|
|
3477
|
+
var nativeCeil = Math2.ceil, nativeFloor = Math2.floor, nativeGetSymbols2 = Object2.getOwnPropertySymbols, nativeIsBuffer2 = Buffer3 ? Buffer3.isBuffer : undefined$1, nativeIsFinite = context.isFinite, nativeJoin = arrayProto2.join, nativeKeys2 = overArg2(Object2.keys, Object2), nativeMax = Math2.max, nativeMin = Math2.min, nativeNow = Date.now, nativeParseInt = context.parseInt, nativeRandom = Math2.random, nativeReverse = arrayProto2.reverse;
|
|
2657
3478
|
var DataView2 = getNative2(context, "DataView"), Map2 = getNative2(context, "Map"), Promise2 = getNative2(context, "Promise"), Set2 = getNative2(context, "Set"), WeakMap3 = getNative2(context, "WeakMap"), nativeCreate2 = getNative2(Object2, "create");
|
|
2658
3479
|
var metaMap = WeakMap3 && new WeakMap3();
|
|
2659
3480
|
var realNames = {};
|
|
@@ -3899,7 +4720,7 @@ var lodash = { exports: {} };
|
|
|
3899
4720
|
if (isDeep) {
|
|
3900
4721
|
return buffer.slice();
|
|
3901
4722
|
}
|
|
3902
|
-
var length = buffer.length, result2 =
|
|
4723
|
+
var length = buffer.length, result2 = allocUnsafe2 ? allocUnsafe2(length) : new buffer.constructor(length);
|
|
3903
4724
|
buffer.copy(result2);
|
|
3904
4725
|
return result2;
|
|
3905
4726
|
}
|
|
@@ -5931,7 +6752,7 @@ var lodash = { exports: {} };
|
|
|
5931
6752
|
function isBoolean(value) {
|
|
5932
6753
|
return value === true || value === false || isObjectLike2(value) && baseGetTag2(value) == boolTag2;
|
|
5933
6754
|
}
|
|
5934
|
-
var isBuffer2 =
|
|
6755
|
+
var isBuffer2 = nativeIsBuffer2 || stubFalse2;
|
|
5935
6756
|
var isDate = nodeIsDate ? baseUnary2(nodeIsDate) : baseIsDate;
|
|
5936
6757
|
function isElement(value) {
|
|
5937
6758
|
return isObjectLike2(value) && value.nodeType === 1 && !isPlainObject(value);
|
|
@@ -7336,9 +8157,9 @@ var lodash = { exports: {} };
|
|
|
7336
8157
|
return lodash2;
|
|
7337
8158
|
};
|
|
7338
8159
|
var _ = runInContext();
|
|
7339
|
-
if (
|
|
7340
|
-
(
|
|
7341
|
-
|
|
8160
|
+
if (freeModule2) {
|
|
8161
|
+
(freeModule2.exports = _)._ = _;
|
|
8162
|
+
freeExports2._ = _;
|
|
7342
8163
|
} else {
|
|
7343
8164
|
root2._ = _;
|
|
7344
8165
|
}
|
|
@@ -8129,15 +8950,15 @@ function stubFalse() {
|
|
|
8129
8950
|
return false;
|
|
8130
8951
|
}
|
|
8131
8952
|
var stubFalse_1 = stubFalse;
|
|
8132
|
-
(function(
|
|
8953
|
+
(function(module2, exports2) {
|
|
8133
8954
|
var root2 = _root, stubFalse2 = stubFalse_1;
|
|
8134
|
-
var
|
|
8135
|
-
var
|
|
8136
|
-
var
|
|
8137
|
-
var
|
|
8138
|
-
var
|
|
8139
|
-
var isBuffer2 =
|
|
8140
|
-
|
|
8955
|
+
var freeExports2 = exports2 && !exports2.nodeType && exports2;
|
|
8956
|
+
var freeModule2 = freeExports2 && true && module2 && !module2.nodeType && module2;
|
|
8957
|
+
var moduleExports2 = freeModule2 && freeModule2.exports === freeExports2;
|
|
8958
|
+
var Buffer3 = moduleExports2 ? root2.Buffer : void 0;
|
|
8959
|
+
var nativeIsBuffer2 = Buffer3 ? Buffer3.isBuffer : void 0;
|
|
8960
|
+
var isBuffer2 = nativeIsBuffer2 || stubFalse2;
|
|
8961
|
+
module2.exports = isBuffer2;
|
|
8141
8962
|
})(isBuffer$2, isBuffer$2.exports);
|
|
8142
8963
|
var MAX_SAFE_INTEGER$1 = 9007199254740991;
|
|
8143
8964
|
var reIsUint = /^(?:0|[1-9]\d*)$/;
|
|
@@ -8169,23 +8990,23 @@ function baseUnary$3(func) {
|
|
|
8169
8990
|
}
|
|
8170
8991
|
var _baseUnary = baseUnary$3;
|
|
8171
8992
|
var _nodeUtil = { exports: {} };
|
|
8172
|
-
(function(
|
|
8993
|
+
(function(module2, exports2) {
|
|
8173
8994
|
var freeGlobal2 = _freeGlobal;
|
|
8174
|
-
var
|
|
8175
|
-
var
|
|
8176
|
-
var
|
|
8177
|
-
var
|
|
8995
|
+
var freeExports2 = exports2 && !exports2.nodeType && exports2;
|
|
8996
|
+
var freeModule2 = freeExports2 && true && module2 && !module2.nodeType && module2;
|
|
8997
|
+
var moduleExports2 = freeModule2 && freeModule2.exports === freeExports2;
|
|
8998
|
+
var freeProcess2 = moduleExports2 && freeGlobal2.process;
|
|
8178
8999
|
var nodeUtil2 = function() {
|
|
8179
9000
|
try {
|
|
8180
|
-
var types =
|
|
9001
|
+
var types = freeModule2 && freeModule2.require && freeModule2.require("util").types;
|
|
8181
9002
|
if (types) {
|
|
8182
9003
|
return types;
|
|
8183
9004
|
}
|
|
8184
|
-
return
|
|
9005
|
+
return freeProcess2 && freeProcess2.binding && freeProcess2.binding("util");
|
|
8185
9006
|
} catch (e) {
|
|
8186
9007
|
}
|
|
8187
9008
|
}();
|
|
8188
|
-
|
|
9009
|
+
module2.exports = nodeUtil2;
|
|
8189
9010
|
})(_nodeUtil, _nodeUtil.exports);
|
|
8190
9011
|
var baseIsTypedArray = _baseIsTypedArray, baseUnary$2 = _baseUnary, nodeUtil$2 = _nodeUtil.exports;
|
|
8191
9012
|
var nodeIsTypedArray = nodeUtil$2 && nodeUtil$2.isTypedArray;
|
|
@@ -8287,21 +9108,21 @@ function baseAssignIn$1(object, source) {
|
|
|
8287
9108
|
}
|
|
8288
9109
|
var _baseAssignIn = baseAssignIn$1;
|
|
8289
9110
|
var _cloneBuffer = { exports: {} };
|
|
8290
|
-
(function(
|
|
9111
|
+
(function(module2, exports2) {
|
|
8291
9112
|
var root2 = _root;
|
|
8292
|
-
var
|
|
8293
|
-
var
|
|
8294
|
-
var
|
|
8295
|
-
var
|
|
9113
|
+
var freeExports2 = exports2 && !exports2.nodeType && exports2;
|
|
9114
|
+
var freeModule2 = freeExports2 && true && module2 && !module2.nodeType && module2;
|
|
9115
|
+
var moduleExports2 = freeModule2 && freeModule2.exports === freeExports2;
|
|
9116
|
+
var Buffer3 = moduleExports2 ? root2.Buffer : void 0, allocUnsafe2 = Buffer3 ? Buffer3.allocUnsafe : void 0;
|
|
8296
9117
|
function cloneBuffer2(buffer, isDeep) {
|
|
8297
9118
|
if (isDeep) {
|
|
8298
9119
|
return buffer.slice();
|
|
8299
9120
|
}
|
|
8300
|
-
var length = buffer.length, result =
|
|
9121
|
+
var length = buffer.length, result = allocUnsafe2 ? allocUnsafe2(length) : new buffer.constructor(length);
|
|
8301
9122
|
buffer.copy(result);
|
|
8302
9123
|
return result;
|
|
8303
9124
|
}
|
|
8304
|
-
|
|
9125
|
+
module2.exports = cloneBuffer2;
|
|
8305
9126
|
})(_cloneBuffer, _cloneBuffer.exports);
|
|
8306
9127
|
function copyArray$1(source, array) {
|
|
8307
9128
|
var index2 = -1, length = source.length;
|
|
@@ -9061,7 +9882,7 @@ function _isSlot(s) {
|
|
|
9061
9882
|
var EditorMd = defineComponent({
|
|
9062
9883
|
name: "DEditorMd",
|
|
9063
9884
|
props: editorMdProps,
|
|
9064
|
-
emits: ["update:modelValue", "mdCheckedEvent", "selectHint", "afterEditorInit", "contentChange", "previewContentChange"],
|
|
9885
|
+
emits: ["update:modelValue", "mdCheckedEvent", "selectHint", "afterEditorInit", "contentChange", "previewContentChange", "imageUpload"],
|
|
9065
9886
|
setup(props, ctx) {
|
|
9066
9887
|
const {
|
|
9067
9888
|
mode,
|
|
@@ -9118,7 +9939,8 @@ var EditorMd = defineComponent({
|
|
|
9118
9939
|
"dp-md-readonly": mode.value === "readonly",
|
|
9119
9940
|
"dp-md-editonly": mode.value === "editonly",
|
|
9120
9941
|
"dp-md-dark": isDarkMode.value
|
|
9121
|
-
}]
|
|
9942
|
+
}],
|
|
9943
|
+
"onPaste": onPaste
|
|
9122
9944
|
}, [createVNode("div", {
|
|
9123
9945
|
"class": "dp-md-toolbar-container"
|
|
9124
9946
|
}, [createVNode(Toolbar, null, null)]), createVNode("div", {
|