@tnd028/strapi-plugin-tiptap-editor 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -0
- package/dist/_chunks/Alignment-B0f2-LO0.js +135 -0
- package/dist/_chunks/Alignment-qMOzO-n2.mjs +133 -0
- package/dist/_chunks/Blockquote-9wBGDz3L.mjs +34 -0
- package/dist/_chunks/Blockquote-DeGUfK27.js +36 -0
- package/dist/_chunks/Bold-C-0g6Ayd.mjs +46 -0
- package/dist/_chunks/Bold-ClnPsPHt.js +48 -0
- package/dist/_chunks/ColorAndHighlight-BMmtoSpj.js +217 -0
- package/dist/_chunks/ColorAndHighlight-t1Ui5tcL.mjs +215 -0
- package/dist/_chunks/Emoji-Bm1_vSh5.mjs +263 -0
- package/dist/_chunks/Emoji-C-LQZ4Z3.js +265 -0
- package/dist/_chunks/Heading-BDJqd1Qw.js +125 -0
- package/dist/_chunks/Heading-BycRob5M.mjs +123 -0
- package/dist/_chunks/HorizontalRule-CJlDmdma.js +34 -0
- package/dist/_chunks/HorizontalRule-CzQCeC3b.mjs +32 -0
- package/dist/_chunks/Iframe-DCBWSb0v.mjs +165 -0
- package/dist/_chunks/Iframe-Dyn_2cMB.js +167 -0
- package/dist/_chunks/ImagePlaceholder-C14kojd5.js +71 -0
- package/dist/_chunks/ImagePlaceholder-DtrSuhf_.mjs +69 -0
- package/dist/_chunks/Italic-BfpKX0KX.mjs +34 -0
- package/dist/_chunks/Italic-DdhVL78v.js +36 -0
- package/dist/_chunks/Link-BuYDqSqo.js +61 -0
- package/dist/_chunks/Link-DUV5Ybep.mjs +59 -0
- package/dist/_chunks/Lists-BKopoFR6.js +107 -0
- package/dist/_chunks/Lists-DsKxj3MD.mjs +105 -0
- package/dist/_chunks/Redo-1mEX1yOd.js +35 -0
- package/dist/_chunks/Redo-Ca3VQxSe.mjs +33 -0
- package/dist/_chunks/SearchAndReplace-DmU5DlWv.mjs +347 -0
- package/dist/_chunks/SearchAndReplace-DzNdbTWJ.js +349 -0
- package/dist/_chunks/Strikethrough-BygxCHak.mjs +121 -0
- package/dist/_chunks/Strikethrough-DQfR4OFk.js +123 -0
- package/dist/_chunks/Table-BhbZ2Blv.mjs +123 -0
- package/dist/_chunks/Table-DLaqBAbz.js +125 -0
- package/dist/_chunks/TiptapEditorInput-BDE09h5-.mjs +6802 -0
- package/dist/_chunks/TiptapEditorInput-vfLsCt1p.js +6854 -0
- package/dist/_chunks/Undo-BuT4OkoE.js +32 -0
- package/dist/_chunks/Undo-PL5n4axf.mjs +30 -0
- package/dist/_chunks/en-B4KWt_jN.js +4 -0
- package/dist/_chunks/en-Byx4XI2L.mjs +4 -0
- package/dist/_chunks/index-ku90UbIF.mjs +1397 -0
- package/dist/_chunks/index-wYDv8vsJ.js +1398 -0
- package/dist/admin/index.js +6 -0
- package/dist/admin/index.mjs +6 -0
- package/dist/admin/src/components/ContentEditorInput.d.ts +10 -0
- package/dist/admin/src/components/GlobalStyling.d.ts +4 -0
- package/dist/admin/src/components/Initializer.d.ts +5 -0
- package/dist/admin/src/components/MediaLibraryModal.d.ts +27 -0
- package/dist/admin/src/components/PluginIcon.d.ts +2 -0
- package/dist/admin/src/components/TextEditorInput.d.ts +10 -0
- package/dist/admin/src/components/TiptapEditorInput.d.ts +6 -0
- package/dist/admin/src/components/editor/BaseEditor.d.ts +22 -0
- package/dist/admin/src/components/editor/ContentEditor.d.ts +10 -0
- package/dist/admin/src/components/editor/TextEditor.d.ts +10 -0
- package/dist/admin/src/components/editor/extensions/Heading.d.ts +2 -0
- package/dist/admin/src/components/editor/extensions/Iframe.d.ts +24 -0
- package/dist/admin/src/components/editor/extensions/Image.d.ts +3 -0
- package/dist/admin/src/components/editor/extensions/ImagePlaceholder.d.ts +15 -0
- package/dist/admin/src/components/editor/extensions/custom-component/CustomComponentEditPopover.d.ts +1 -0
- package/dist/admin/src/components/editor/extensions/custom-component/CustomComponentExtension.d.ts +3 -0
- package/dist/admin/src/components/editor/extensions/custom-component/CustomComponentInsertPopover.d.ts +13 -0
- package/dist/admin/src/components/editor/extensions/custom-component/CustomComponentRenderer.d.ts +1 -0
- package/dist/admin/src/components/editor/extensions/custom-component/Store.d.ts +20 -0
- package/dist/admin/src/components/editor/extensions/custom-component/types.d.ts +33 -0
- package/dist/admin/src/components/editor/extensions/fileHandler.d.ts +12 -0
- package/dist/admin/src/components/editor/extensions/link.d.ts +1 -0
- package/dist/admin/src/components/editor/extensions/noNewLine.d.ts +2 -0
- package/dist/admin/src/components/editor/extensions/resetMarksOnEnter.d.ts +2 -0
- package/dist/admin/src/components/editor/extensions/searchAndReplace.d.ts +53 -0
- package/dist/admin/src/components/editor/partials/EditorProvider.d.ts +13 -0
- package/dist/admin/src/components/editor/partials/LinkBubbleMenu.d.ts +5 -0
- package/dist/admin/src/components/editor/partials/LinkEditBlock.d.ts +9 -0
- package/dist/admin/src/components/editor/partials/LinkPopoverBlock.d.ts +8 -0
- package/dist/admin/src/components/editor/partials/ToolbarButton.d.ts +11 -0
- package/dist/admin/src/components/editor/partials/ToolbarButtons.d.ts +25 -0
- package/dist/admin/src/components/editor/toolbars/Alignment.d.ts +1 -0
- package/dist/admin/src/components/editor/toolbars/Blockquote.d.ts +4 -0
- package/dist/admin/src/components/editor/toolbars/Bold.d.ts +4 -0
- package/dist/admin/src/components/editor/toolbars/BulletList.d.ts +4 -0
- package/dist/admin/src/components/editor/toolbars/ColorAndHighlight.d.ts +5 -0
- package/dist/admin/src/components/editor/toolbars/Emoji.d.ts +4 -0
- package/dist/admin/src/components/editor/toolbars/Heading.d.ts +1 -0
- package/dist/admin/src/components/editor/toolbars/HorizontalRule.d.ts +4 -0
- package/dist/admin/src/components/editor/toolbars/Iframe.d.ts +3 -0
- package/dist/admin/src/components/editor/toolbars/ImagePlaceholder.d.ts +4 -0
- package/dist/admin/src/components/editor/toolbars/Italic.d.ts +4 -0
- package/dist/admin/src/components/editor/toolbars/Link.d.ts +4 -0
- package/dist/admin/src/components/editor/toolbars/Lists.d.ts +1 -0
- package/dist/admin/src/components/editor/toolbars/OrderedList.d.ts +4 -0
- package/dist/admin/src/components/editor/toolbars/Redo.d.ts +4 -0
- package/dist/admin/src/components/editor/toolbars/SearchAndReplace.d.ts +1 -0
- package/dist/admin/src/components/editor/toolbars/Strikethrough.d.ts +4 -0
- package/dist/admin/src/components/editor/toolbars/Table.d.ts +1 -0
- package/dist/admin/src/components/editor/toolbars/Undo.d.ts +4 -0
- package/dist/admin/src/components/editor/useEditor.d.ts +18 -0
- package/dist/admin/src/components/editor/utils.d.ts +28 -0
- package/dist/admin/src/components/ui/button.d.ts +9 -0
- package/dist/admin/src/components/ui/dropdown-menu.d.ts +27 -0
- package/dist/admin/src/components/ui/input.d.ts +6 -0
- package/dist/admin/src/components/ui/label.d.ts +7 -0
- package/dist/admin/src/components/ui/separator.d.ts +7 -0
- package/dist/admin/src/components/ui/toggle.d.ts +17 -0
- package/dist/admin/src/components/ui/tooltip.d.ts +7 -0
- package/dist/admin/src/config/index.d.ts +2 -0
- package/dist/admin/src/config/pluginConfig.d.ts +20 -0
- package/dist/admin/src/config/types.d.ts +109 -0
- package/dist/admin/src/errorSlicer.d.ts +4 -0
- package/dist/admin/src/exports.d.ts +4 -0
- package/dist/admin/src/hooks/useDebounceCallback.d.ts +9 -0
- package/dist/admin/src/index.d.ts +25 -0
- package/dist/admin/src/pluginId.d.ts +5 -0
- package/dist/admin/src/theme/additional.d.ts +1 -0
- package/dist/admin/src/theme/colorScheme.d.ts +2 -0
- package/dist/admin/src/theme/colors.d.ts +1 -0
- package/dist/admin/src/theme/common.d.ts +1 -0
- package/dist/admin/src/theme/index.d.ts +2 -0
- package/dist/admin/src/types.d.ts +15 -0
- package/dist/admin/src/utils/dom.d.ts +7 -0
- package/dist/admin/src/utils/getTranslation.d.ts +7 -0
- package/dist/admin/src/utils/isImageResponsive.d.ts +8 -0
- package/dist/admin/src/utils/localStorage.d.ts +21 -0
- package/dist/admin/src/utils/prefixWithBackendUrl.d.ts +6 -0
- package/dist/admin/src/utils/utils.d.ts +7 -0
- package/dist/server/index.js +15 -0
- package/dist/server/index.mjs +16 -0
- package/dist/server/src/index.d.ts +7 -0
- package/package.json +116 -0
|
@@ -0,0 +1,1398 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
const jsxRuntime = require("react/jsx-runtime");
|
|
3
|
+
const styled = require("styled-components");
|
|
4
|
+
const _interopDefault = (e) => e && e.__esModule ? e : { default: e };
|
|
5
|
+
const styled__default = /* @__PURE__ */ _interopDefault(styled);
|
|
6
|
+
const __variableDynamicImportRuntimeHelper = (glob, path, segs) => {
|
|
7
|
+
const v = glob[path];
|
|
8
|
+
if (v) {
|
|
9
|
+
return typeof v === "function" ? v() : Promise.resolve(v);
|
|
10
|
+
}
|
|
11
|
+
return new Promise((_, reject) => {
|
|
12
|
+
(typeof queueMicrotask === "function" ? queueMicrotask : setTimeout)(
|
|
13
|
+
reject.bind(
|
|
14
|
+
null,
|
|
15
|
+
new Error(
|
|
16
|
+
"Unknown variable dynamic import: " + path + (path.split("/").length !== segs ? ". Note that variables only represent file names one level deep." : "")
|
|
17
|
+
)
|
|
18
|
+
)
|
|
19
|
+
);
|
|
20
|
+
});
|
|
21
|
+
};
|
|
22
|
+
const Container = styled__default.default.div`
|
|
23
|
+
display: flex;
|
|
24
|
+
align-items: center;
|
|
25
|
+
justify-content: center;
|
|
26
|
+
flex-direction: row;
|
|
27
|
+
width: 100%;
|
|
28
|
+
height: 100%;
|
|
29
|
+
`;
|
|
30
|
+
const IconWrapper = styled__default.default.div`
|
|
31
|
+
background-color: #eaf5ff;
|
|
32
|
+
border: 1px solid #b8e1ff;
|
|
33
|
+
align-items: center;
|
|
34
|
+
justify-content: center;
|
|
35
|
+
flex-direction: row;
|
|
36
|
+
display: flex;
|
|
37
|
+
width: 32px;
|
|
38
|
+
height: 24px;
|
|
39
|
+
border-radius: 4px;
|
|
40
|
+
color: #006096;
|
|
41
|
+
padding: 4px 0;
|
|
42
|
+
`;
|
|
43
|
+
const PluginIcon = () => /* @__PURE__ */ jsxRuntime.jsx(Container, { children: /* @__PURE__ */ jsxRuntime.jsx(IconWrapper, { children: /* @__PURE__ */ jsxRuntime.jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", viewBox: "0 0 22 22", fill: "none", children: [
|
|
44
|
+
/* @__PURE__ */ jsxRuntime.jsx("path", { d: "M10.9999 0C8.97378 0 7.07561 0.547792 5.44543 1.50334C5.11704 1.69583 4.97302 2.12364 5.25193 2.38269C5.49733 2.61062 5.82611 2.75 6.18743 2.75H15.8123C16.1737 2.75 16.5024 2.61062 16.7478 2.38269C17.0267 2.12364 16.8827 1.69583 16.5543 1.50334C14.9242 0.547792 13.026 0 10.9999 0Z", fill: "currentColor" }),
|
|
45
|
+
/* @__PURE__ */ jsxRuntime.jsx("path", { d: "M21.9998 11C21.9998 10.2406 21.3842 9.625 20.6248 9.625H1.37499C0.615588 9.625 0 10.2406 0 11C0 11.7594 0.615588 12.375 1.37499 12.375H20.6248C21.3842 12.375 21.9998 11.7594 21.9998 11Z", fill: "currentColor" }),
|
|
46
|
+
/* @__PURE__ */ jsxRuntime.jsx("path", { d: "M16.7478 19.6173C17.0267 19.8764 16.8827 20.3042 16.5543 20.4967C14.9242 21.4522 13.026 22 10.9999 22C8.97378 22 7.0756 21.4522 5.44542 20.4967C5.11704 20.3042 4.97302 19.8764 5.25192 19.6173C5.49732 19.3894 5.8261 19.25 6.18743 19.25H15.8123C16.1737 19.25 16.5024 19.3894 16.7478 19.6173Z", fill: "currentColor" }),
|
|
47
|
+
/* @__PURE__ */ jsxRuntime.jsx("path", { d: "M1.37499 6.1875C1.37499 5.42809 1.99057 4.8125 2.74997 4.8125H19.2498C20.0092 4.8125 20.6248 5.42809 20.6248 6.1875C20.6248 6.94691 20.0092 7.5625 19.2498 7.5625H2.74997C1.99057 7.5625 1.37499 6.94691 1.37499 6.1875Z", fill: "currentColor" }),
|
|
48
|
+
/* @__PURE__ */ jsxRuntime.jsx("path", { d: "M1.37499 15.8125C1.37499 15.0531 1.99057 14.4375 2.74997 14.4375H19.2498C20.0092 14.4375 20.6248 15.0531 20.6248 15.8125C20.6248 16.5719 20.0092 17.1875 19.2498 17.1875H2.74997C1.99057 17.1875 1.37499 16.5719 1.37499 15.8125Z", fill: "currentColor" })
|
|
49
|
+
] }) }) });
|
|
50
|
+
const PLUGIN_ID = "tiptap-editor";
|
|
51
|
+
var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
|
|
52
|
+
function getDefaultExportFromCjs(x) {
|
|
53
|
+
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
|
|
54
|
+
}
|
|
55
|
+
function listCacheClear$1() {
|
|
56
|
+
this.__data__ = [];
|
|
57
|
+
this.size = 0;
|
|
58
|
+
}
|
|
59
|
+
var _listCacheClear = listCacheClear$1;
|
|
60
|
+
function eq$2(value, other) {
|
|
61
|
+
return value === other || value !== value && other !== other;
|
|
62
|
+
}
|
|
63
|
+
var eq_1 = eq$2;
|
|
64
|
+
var eq$1 = eq_1;
|
|
65
|
+
function assocIndexOf$4(array, key) {
|
|
66
|
+
var length = array.length;
|
|
67
|
+
while (length--) {
|
|
68
|
+
if (eq$1(array[length][0], key)) {
|
|
69
|
+
return length;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
return -1;
|
|
73
|
+
}
|
|
74
|
+
var _assocIndexOf = assocIndexOf$4;
|
|
75
|
+
var assocIndexOf$3 = _assocIndexOf;
|
|
76
|
+
var arrayProto = Array.prototype;
|
|
77
|
+
var splice = arrayProto.splice;
|
|
78
|
+
function listCacheDelete$1(key) {
|
|
79
|
+
var data = this.__data__, index2 = assocIndexOf$3(data, key);
|
|
80
|
+
if (index2 < 0) {
|
|
81
|
+
return false;
|
|
82
|
+
}
|
|
83
|
+
var lastIndex = data.length - 1;
|
|
84
|
+
if (index2 == lastIndex) {
|
|
85
|
+
data.pop();
|
|
86
|
+
} else {
|
|
87
|
+
splice.call(data, index2, 1);
|
|
88
|
+
}
|
|
89
|
+
--this.size;
|
|
90
|
+
return true;
|
|
91
|
+
}
|
|
92
|
+
var _listCacheDelete = listCacheDelete$1;
|
|
93
|
+
var assocIndexOf$2 = _assocIndexOf;
|
|
94
|
+
function listCacheGet$1(key) {
|
|
95
|
+
var data = this.__data__, index2 = assocIndexOf$2(data, key);
|
|
96
|
+
return index2 < 0 ? void 0 : data[index2][1];
|
|
97
|
+
}
|
|
98
|
+
var _listCacheGet = listCacheGet$1;
|
|
99
|
+
var assocIndexOf$1 = _assocIndexOf;
|
|
100
|
+
function listCacheHas$1(key) {
|
|
101
|
+
return assocIndexOf$1(this.__data__, key) > -1;
|
|
102
|
+
}
|
|
103
|
+
var _listCacheHas = listCacheHas$1;
|
|
104
|
+
var assocIndexOf = _assocIndexOf;
|
|
105
|
+
function listCacheSet$1(key, value) {
|
|
106
|
+
var data = this.__data__, index2 = assocIndexOf(data, key);
|
|
107
|
+
if (index2 < 0) {
|
|
108
|
+
++this.size;
|
|
109
|
+
data.push([key, value]);
|
|
110
|
+
} else {
|
|
111
|
+
data[index2][1] = value;
|
|
112
|
+
}
|
|
113
|
+
return this;
|
|
114
|
+
}
|
|
115
|
+
var _listCacheSet = listCacheSet$1;
|
|
116
|
+
var listCacheClear = _listCacheClear, listCacheDelete = _listCacheDelete, listCacheGet = _listCacheGet, listCacheHas = _listCacheHas, listCacheSet = _listCacheSet;
|
|
117
|
+
function ListCache$4(entries) {
|
|
118
|
+
var index2 = -1, length = entries == null ? 0 : entries.length;
|
|
119
|
+
this.clear();
|
|
120
|
+
while (++index2 < length) {
|
|
121
|
+
var entry = entries[index2];
|
|
122
|
+
this.set(entry[0], entry[1]);
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
ListCache$4.prototype.clear = listCacheClear;
|
|
126
|
+
ListCache$4.prototype["delete"] = listCacheDelete;
|
|
127
|
+
ListCache$4.prototype.get = listCacheGet;
|
|
128
|
+
ListCache$4.prototype.has = listCacheHas;
|
|
129
|
+
ListCache$4.prototype.set = listCacheSet;
|
|
130
|
+
var _ListCache = ListCache$4;
|
|
131
|
+
var ListCache$3 = _ListCache;
|
|
132
|
+
function stackClear$1() {
|
|
133
|
+
this.__data__ = new ListCache$3();
|
|
134
|
+
this.size = 0;
|
|
135
|
+
}
|
|
136
|
+
var _stackClear = stackClear$1;
|
|
137
|
+
function stackDelete$1(key) {
|
|
138
|
+
var data = this.__data__, result = data["delete"](key);
|
|
139
|
+
this.size = data.size;
|
|
140
|
+
return result;
|
|
141
|
+
}
|
|
142
|
+
var _stackDelete = stackDelete$1;
|
|
143
|
+
function stackGet$1(key) {
|
|
144
|
+
return this.__data__.get(key);
|
|
145
|
+
}
|
|
146
|
+
var _stackGet = stackGet$1;
|
|
147
|
+
function stackHas$1(key) {
|
|
148
|
+
return this.__data__.has(key);
|
|
149
|
+
}
|
|
150
|
+
var _stackHas = stackHas$1;
|
|
151
|
+
var freeGlobal$1 = typeof commonjsGlobal == "object" && commonjsGlobal && commonjsGlobal.Object === Object && commonjsGlobal;
|
|
152
|
+
var _freeGlobal = freeGlobal$1;
|
|
153
|
+
var freeGlobal = _freeGlobal;
|
|
154
|
+
var freeSelf = typeof self == "object" && self && self.Object === Object && self;
|
|
155
|
+
var root$8 = freeGlobal || freeSelf || Function("return this")();
|
|
156
|
+
var _root = root$8;
|
|
157
|
+
var root$7 = _root;
|
|
158
|
+
var Symbol$4 = root$7.Symbol;
|
|
159
|
+
var _Symbol = Symbol$4;
|
|
160
|
+
var Symbol$3 = _Symbol;
|
|
161
|
+
var objectProto$c = Object.prototype;
|
|
162
|
+
var hasOwnProperty$9 = objectProto$c.hasOwnProperty;
|
|
163
|
+
var nativeObjectToString$1 = objectProto$c.toString;
|
|
164
|
+
var symToStringTag$1 = Symbol$3 ? Symbol$3.toStringTag : void 0;
|
|
165
|
+
function getRawTag$1(value) {
|
|
166
|
+
var isOwn = hasOwnProperty$9.call(value, symToStringTag$1), tag = value[symToStringTag$1];
|
|
167
|
+
try {
|
|
168
|
+
value[symToStringTag$1] = void 0;
|
|
169
|
+
var unmasked = true;
|
|
170
|
+
} catch (e) {
|
|
171
|
+
}
|
|
172
|
+
var result = nativeObjectToString$1.call(value);
|
|
173
|
+
if (unmasked) {
|
|
174
|
+
if (isOwn) {
|
|
175
|
+
value[symToStringTag$1] = tag;
|
|
176
|
+
} else {
|
|
177
|
+
delete value[symToStringTag$1];
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
return result;
|
|
181
|
+
}
|
|
182
|
+
var _getRawTag = getRawTag$1;
|
|
183
|
+
var objectProto$b = Object.prototype;
|
|
184
|
+
var nativeObjectToString = objectProto$b.toString;
|
|
185
|
+
function objectToString$1(value) {
|
|
186
|
+
return nativeObjectToString.call(value);
|
|
187
|
+
}
|
|
188
|
+
var _objectToString = objectToString$1;
|
|
189
|
+
var Symbol$2 = _Symbol, getRawTag = _getRawTag, objectToString = _objectToString;
|
|
190
|
+
var nullTag = "[object Null]", undefinedTag = "[object Undefined]";
|
|
191
|
+
var symToStringTag = Symbol$2 ? Symbol$2.toStringTag : void 0;
|
|
192
|
+
function baseGetTag$4(value) {
|
|
193
|
+
if (value == null) {
|
|
194
|
+
return value === void 0 ? undefinedTag : nullTag;
|
|
195
|
+
}
|
|
196
|
+
return symToStringTag && symToStringTag in Object(value) ? getRawTag(value) : objectToString(value);
|
|
197
|
+
}
|
|
198
|
+
var _baseGetTag = baseGetTag$4;
|
|
199
|
+
function isObject$5(value) {
|
|
200
|
+
var type = typeof value;
|
|
201
|
+
return value != null && (type == "object" || type == "function");
|
|
202
|
+
}
|
|
203
|
+
var isObject_1 = isObject$5;
|
|
204
|
+
var baseGetTag$3 = _baseGetTag, isObject$4 = isObject_1;
|
|
205
|
+
var asyncTag = "[object AsyncFunction]", funcTag$2 = "[object Function]", genTag$1 = "[object GeneratorFunction]", proxyTag = "[object Proxy]";
|
|
206
|
+
function isFunction$2(value) {
|
|
207
|
+
if (!isObject$4(value)) {
|
|
208
|
+
return false;
|
|
209
|
+
}
|
|
210
|
+
var tag = baseGetTag$3(value);
|
|
211
|
+
return tag == funcTag$2 || tag == genTag$1 || tag == asyncTag || tag == proxyTag;
|
|
212
|
+
}
|
|
213
|
+
var isFunction_1 = isFunction$2;
|
|
214
|
+
var root$6 = _root;
|
|
215
|
+
var coreJsData$1 = root$6["__core-js_shared__"];
|
|
216
|
+
var _coreJsData = coreJsData$1;
|
|
217
|
+
var coreJsData = _coreJsData;
|
|
218
|
+
var maskSrcKey = function() {
|
|
219
|
+
var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || "");
|
|
220
|
+
return uid ? "Symbol(src)_1." + uid : "";
|
|
221
|
+
}();
|
|
222
|
+
function isMasked$1(func) {
|
|
223
|
+
return !!maskSrcKey && maskSrcKey in func;
|
|
224
|
+
}
|
|
225
|
+
var _isMasked = isMasked$1;
|
|
226
|
+
var funcProto$1 = Function.prototype;
|
|
227
|
+
var funcToString$1 = funcProto$1.toString;
|
|
228
|
+
function toSource$2(func) {
|
|
229
|
+
if (func != null) {
|
|
230
|
+
try {
|
|
231
|
+
return funcToString$1.call(func);
|
|
232
|
+
} catch (e) {
|
|
233
|
+
}
|
|
234
|
+
try {
|
|
235
|
+
return func + "";
|
|
236
|
+
} catch (e) {
|
|
237
|
+
}
|
|
238
|
+
}
|
|
239
|
+
return "";
|
|
240
|
+
}
|
|
241
|
+
var _toSource = toSource$2;
|
|
242
|
+
var isFunction$1 = isFunction_1, isMasked = _isMasked, isObject$3 = isObject_1, toSource$1 = _toSource;
|
|
243
|
+
var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
|
|
244
|
+
var reIsHostCtor = /^\[object .+?Constructor\]$/;
|
|
245
|
+
var funcProto = Function.prototype, objectProto$a = Object.prototype;
|
|
246
|
+
var funcToString = funcProto.toString;
|
|
247
|
+
var hasOwnProperty$8 = objectProto$a.hasOwnProperty;
|
|
248
|
+
var reIsNative = RegExp(
|
|
249
|
+
"^" + funcToString.call(hasOwnProperty$8).replace(reRegExpChar, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
250
|
+
);
|
|
251
|
+
function baseIsNative$1(value) {
|
|
252
|
+
if (!isObject$3(value) || isMasked(value)) {
|
|
253
|
+
return false;
|
|
254
|
+
}
|
|
255
|
+
var pattern = isFunction$1(value) ? reIsNative : reIsHostCtor;
|
|
256
|
+
return pattern.test(toSource$1(value));
|
|
257
|
+
}
|
|
258
|
+
var _baseIsNative = baseIsNative$1;
|
|
259
|
+
function getValue$1(object, key) {
|
|
260
|
+
return object == null ? void 0 : object[key];
|
|
261
|
+
}
|
|
262
|
+
var _getValue = getValue$1;
|
|
263
|
+
var baseIsNative = _baseIsNative, getValue = _getValue;
|
|
264
|
+
function getNative$7(object, key) {
|
|
265
|
+
var value = getValue(object, key);
|
|
266
|
+
return baseIsNative(value) ? value : void 0;
|
|
267
|
+
}
|
|
268
|
+
var _getNative = getNative$7;
|
|
269
|
+
var getNative$6 = _getNative, root$5 = _root;
|
|
270
|
+
var Map$3 = getNative$6(root$5, "Map");
|
|
271
|
+
var _Map = Map$3;
|
|
272
|
+
var getNative$5 = _getNative;
|
|
273
|
+
var nativeCreate$4 = getNative$5(Object, "create");
|
|
274
|
+
var _nativeCreate = nativeCreate$4;
|
|
275
|
+
var nativeCreate$3 = _nativeCreate;
|
|
276
|
+
function hashClear$1() {
|
|
277
|
+
this.__data__ = nativeCreate$3 ? nativeCreate$3(null) : {};
|
|
278
|
+
this.size = 0;
|
|
279
|
+
}
|
|
280
|
+
var _hashClear = hashClear$1;
|
|
281
|
+
function hashDelete$1(key) {
|
|
282
|
+
var result = this.has(key) && delete this.__data__[key];
|
|
283
|
+
this.size -= result ? 1 : 0;
|
|
284
|
+
return result;
|
|
285
|
+
}
|
|
286
|
+
var _hashDelete = hashDelete$1;
|
|
287
|
+
var nativeCreate$2 = _nativeCreate;
|
|
288
|
+
var HASH_UNDEFINED$1 = "__lodash_hash_undefined__";
|
|
289
|
+
var objectProto$9 = Object.prototype;
|
|
290
|
+
var hasOwnProperty$7 = objectProto$9.hasOwnProperty;
|
|
291
|
+
function hashGet$1(key) {
|
|
292
|
+
var data = this.__data__;
|
|
293
|
+
if (nativeCreate$2) {
|
|
294
|
+
var result = data[key];
|
|
295
|
+
return result === HASH_UNDEFINED$1 ? void 0 : result;
|
|
296
|
+
}
|
|
297
|
+
return hasOwnProperty$7.call(data, key) ? data[key] : void 0;
|
|
298
|
+
}
|
|
299
|
+
var _hashGet = hashGet$1;
|
|
300
|
+
var nativeCreate$1 = _nativeCreate;
|
|
301
|
+
var objectProto$8 = Object.prototype;
|
|
302
|
+
var hasOwnProperty$6 = objectProto$8.hasOwnProperty;
|
|
303
|
+
function hashHas$1(key) {
|
|
304
|
+
var data = this.__data__;
|
|
305
|
+
return nativeCreate$1 ? data[key] !== void 0 : hasOwnProperty$6.call(data, key);
|
|
306
|
+
}
|
|
307
|
+
var _hashHas = hashHas$1;
|
|
308
|
+
var nativeCreate = _nativeCreate;
|
|
309
|
+
var HASH_UNDEFINED = "__lodash_hash_undefined__";
|
|
310
|
+
function hashSet$1(key, value) {
|
|
311
|
+
var data = this.__data__;
|
|
312
|
+
this.size += this.has(key) ? 0 : 1;
|
|
313
|
+
data[key] = nativeCreate && value === void 0 ? HASH_UNDEFINED : value;
|
|
314
|
+
return this;
|
|
315
|
+
}
|
|
316
|
+
var _hashSet = hashSet$1;
|
|
317
|
+
var hashClear = _hashClear, hashDelete = _hashDelete, hashGet = _hashGet, hashHas = _hashHas, hashSet = _hashSet;
|
|
318
|
+
function Hash$1(entries) {
|
|
319
|
+
var index2 = -1, length = entries == null ? 0 : entries.length;
|
|
320
|
+
this.clear();
|
|
321
|
+
while (++index2 < length) {
|
|
322
|
+
var entry = entries[index2];
|
|
323
|
+
this.set(entry[0], entry[1]);
|
|
324
|
+
}
|
|
325
|
+
}
|
|
326
|
+
Hash$1.prototype.clear = hashClear;
|
|
327
|
+
Hash$1.prototype["delete"] = hashDelete;
|
|
328
|
+
Hash$1.prototype.get = hashGet;
|
|
329
|
+
Hash$1.prototype.has = hashHas;
|
|
330
|
+
Hash$1.prototype.set = hashSet;
|
|
331
|
+
var _Hash = Hash$1;
|
|
332
|
+
var Hash = _Hash, ListCache$2 = _ListCache, Map$2 = _Map;
|
|
333
|
+
function mapCacheClear$1() {
|
|
334
|
+
this.size = 0;
|
|
335
|
+
this.__data__ = {
|
|
336
|
+
"hash": new Hash(),
|
|
337
|
+
"map": new (Map$2 || ListCache$2)(),
|
|
338
|
+
"string": new Hash()
|
|
339
|
+
};
|
|
340
|
+
}
|
|
341
|
+
var _mapCacheClear = mapCacheClear$1;
|
|
342
|
+
function isKeyable$1(value) {
|
|
343
|
+
var type = typeof value;
|
|
344
|
+
return type == "string" || type == "number" || type == "symbol" || type == "boolean" ? value !== "__proto__" : value === null;
|
|
345
|
+
}
|
|
346
|
+
var _isKeyable = isKeyable$1;
|
|
347
|
+
var isKeyable = _isKeyable;
|
|
348
|
+
function getMapData$4(map, key) {
|
|
349
|
+
var data = map.__data__;
|
|
350
|
+
return isKeyable(key) ? data[typeof key == "string" ? "string" : "hash"] : data.map;
|
|
351
|
+
}
|
|
352
|
+
var _getMapData = getMapData$4;
|
|
353
|
+
var getMapData$3 = _getMapData;
|
|
354
|
+
function mapCacheDelete$1(key) {
|
|
355
|
+
var result = getMapData$3(this, key)["delete"](key);
|
|
356
|
+
this.size -= result ? 1 : 0;
|
|
357
|
+
return result;
|
|
358
|
+
}
|
|
359
|
+
var _mapCacheDelete = mapCacheDelete$1;
|
|
360
|
+
var getMapData$2 = _getMapData;
|
|
361
|
+
function mapCacheGet$1(key) {
|
|
362
|
+
return getMapData$2(this, key).get(key);
|
|
363
|
+
}
|
|
364
|
+
var _mapCacheGet = mapCacheGet$1;
|
|
365
|
+
var getMapData$1 = _getMapData;
|
|
366
|
+
function mapCacheHas$1(key) {
|
|
367
|
+
return getMapData$1(this, key).has(key);
|
|
368
|
+
}
|
|
369
|
+
var _mapCacheHas = mapCacheHas$1;
|
|
370
|
+
var getMapData = _getMapData;
|
|
371
|
+
function mapCacheSet$1(key, value) {
|
|
372
|
+
var data = getMapData(this, key), size = data.size;
|
|
373
|
+
data.set(key, value);
|
|
374
|
+
this.size += data.size == size ? 0 : 1;
|
|
375
|
+
return this;
|
|
376
|
+
}
|
|
377
|
+
var _mapCacheSet = mapCacheSet$1;
|
|
378
|
+
var mapCacheClear = _mapCacheClear, mapCacheDelete = _mapCacheDelete, mapCacheGet = _mapCacheGet, mapCacheHas = _mapCacheHas, mapCacheSet = _mapCacheSet;
|
|
379
|
+
function MapCache$1(entries) {
|
|
380
|
+
var index2 = -1, length = entries == null ? 0 : entries.length;
|
|
381
|
+
this.clear();
|
|
382
|
+
while (++index2 < length) {
|
|
383
|
+
var entry = entries[index2];
|
|
384
|
+
this.set(entry[0], entry[1]);
|
|
385
|
+
}
|
|
386
|
+
}
|
|
387
|
+
MapCache$1.prototype.clear = mapCacheClear;
|
|
388
|
+
MapCache$1.prototype["delete"] = mapCacheDelete;
|
|
389
|
+
MapCache$1.prototype.get = mapCacheGet;
|
|
390
|
+
MapCache$1.prototype.has = mapCacheHas;
|
|
391
|
+
MapCache$1.prototype.set = mapCacheSet;
|
|
392
|
+
var _MapCache = MapCache$1;
|
|
393
|
+
var ListCache$1 = _ListCache, Map$1 = _Map, MapCache = _MapCache;
|
|
394
|
+
var LARGE_ARRAY_SIZE = 200;
|
|
395
|
+
function stackSet$1(key, value) {
|
|
396
|
+
var data = this.__data__;
|
|
397
|
+
if (data instanceof ListCache$1) {
|
|
398
|
+
var pairs = data.__data__;
|
|
399
|
+
if (!Map$1 || pairs.length < LARGE_ARRAY_SIZE - 1) {
|
|
400
|
+
pairs.push([key, value]);
|
|
401
|
+
this.size = ++data.size;
|
|
402
|
+
return this;
|
|
403
|
+
}
|
|
404
|
+
data = this.__data__ = new MapCache(pairs);
|
|
405
|
+
}
|
|
406
|
+
data.set(key, value);
|
|
407
|
+
this.size = data.size;
|
|
408
|
+
return this;
|
|
409
|
+
}
|
|
410
|
+
var _stackSet = stackSet$1;
|
|
411
|
+
var ListCache = _ListCache, stackClear = _stackClear, stackDelete = _stackDelete, stackGet = _stackGet, stackHas = _stackHas, stackSet = _stackSet;
|
|
412
|
+
function Stack$1(entries) {
|
|
413
|
+
var data = this.__data__ = new ListCache(entries);
|
|
414
|
+
this.size = data.size;
|
|
415
|
+
}
|
|
416
|
+
Stack$1.prototype.clear = stackClear;
|
|
417
|
+
Stack$1.prototype["delete"] = stackDelete;
|
|
418
|
+
Stack$1.prototype.get = stackGet;
|
|
419
|
+
Stack$1.prototype.has = stackHas;
|
|
420
|
+
Stack$1.prototype.set = stackSet;
|
|
421
|
+
var _Stack = Stack$1;
|
|
422
|
+
function arrayEach$1(array, iteratee) {
|
|
423
|
+
var index2 = -1, length = array == null ? 0 : array.length;
|
|
424
|
+
while (++index2 < length) {
|
|
425
|
+
if (iteratee(array[index2], index2, array) === false) {
|
|
426
|
+
break;
|
|
427
|
+
}
|
|
428
|
+
}
|
|
429
|
+
return array;
|
|
430
|
+
}
|
|
431
|
+
var _arrayEach = arrayEach$1;
|
|
432
|
+
var getNative$4 = _getNative;
|
|
433
|
+
var defineProperty$1 = function() {
|
|
434
|
+
try {
|
|
435
|
+
var func = getNative$4(Object, "defineProperty");
|
|
436
|
+
func({}, "", {});
|
|
437
|
+
return func;
|
|
438
|
+
} catch (e) {
|
|
439
|
+
}
|
|
440
|
+
}();
|
|
441
|
+
var _defineProperty = defineProperty$1;
|
|
442
|
+
var defineProperty = _defineProperty;
|
|
443
|
+
function baseAssignValue$2(object, key, value) {
|
|
444
|
+
if (key == "__proto__" && defineProperty) {
|
|
445
|
+
defineProperty(object, key, {
|
|
446
|
+
"configurable": true,
|
|
447
|
+
"enumerable": true,
|
|
448
|
+
"value": value,
|
|
449
|
+
"writable": true
|
|
450
|
+
});
|
|
451
|
+
} else {
|
|
452
|
+
object[key] = value;
|
|
453
|
+
}
|
|
454
|
+
}
|
|
455
|
+
var _baseAssignValue = baseAssignValue$2;
|
|
456
|
+
var baseAssignValue$1 = _baseAssignValue, eq = eq_1;
|
|
457
|
+
var objectProto$7 = Object.prototype;
|
|
458
|
+
var hasOwnProperty$5 = objectProto$7.hasOwnProperty;
|
|
459
|
+
function assignValue$2(object, key, value) {
|
|
460
|
+
var objValue = object[key];
|
|
461
|
+
if (!(hasOwnProperty$5.call(object, key) && eq(objValue, value)) || value === void 0 && !(key in object)) {
|
|
462
|
+
baseAssignValue$1(object, key, value);
|
|
463
|
+
}
|
|
464
|
+
}
|
|
465
|
+
var _assignValue = assignValue$2;
|
|
466
|
+
var assignValue$1 = _assignValue, baseAssignValue = _baseAssignValue;
|
|
467
|
+
function copyObject$4(source, props, object, customizer) {
|
|
468
|
+
var isNew = !object;
|
|
469
|
+
object || (object = {});
|
|
470
|
+
var index2 = -1, length = props.length;
|
|
471
|
+
while (++index2 < length) {
|
|
472
|
+
var key = props[index2];
|
|
473
|
+
var newValue = customizer ? customizer(object[key], source[key], key, object, source) : void 0;
|
|
474
|
+
if (newValue === void 0) {
|
|
475
|
+
newValue = source[key];
|
|
476
|
+
}
|
|
477
|
+
if (isNew) {
|
|
478
|
+
baseAssignValue(object, key, newValue);
|
|
479
|
+
} else {
|
|
480
|
+
assignValue$1(object, key, newValue);
|
|
481
|
+
}
|
|
482
|
+
}
|
|
483
|
+
return object;
|
|
484
|
+
}
|
|
485
|
+
var _copyObject = copyObject$4;
|
|
486
|
+
function baseTimes$1(n, iteratee) {
|
|
487
|
+
var index2 = -1, result = Array(n);
|
|
488
|
+
while (++index2 < n) {
|
|
489
|
+
result[index2] = iteratee(index2);
|
|
490
|
+
}
|
|
491
|
+
return result;
|
|
492
|
+
}
|
|
493
|
+
var _baseTimes = baseTimes$1;
|
|
494
|
+
function isObjectLike$5(value) {
|
|
495
|
+
return value != null && typeof value == "object";
|
|
496
|
+
}
|
|
497
|
+
var isObjectLike_1 = isObjectLike$5;
|
|
498
|
+
var baseGetTag$2 = _baseGetTag, isObjectLike$4 = isObjectLike_1;
|
|
499
|
+
var argsTag$2 = "[object Arguments]";
|
|
500
|
+
function baseIsArguments$1(value) {
|
|
501
|
+
return isObjectLike$4(value) && baseGetTag$2(value) == argsTag$2;
|
|
502
|
+
}
|
|
503
|
+
var _baseIsArguments = baseIsArguments$1;
|
|
504
|
+
var baseIsArguments = _baseIsArguments, isObjectLike$3 = isObjectLike_1;
|
|
505
|
+
var objectProto$6 = Object.prototype;
|
|
506
|
+
var hasOwnProperty$4 = objectProto$6.hasOwnProperty;
|
|
507
|
+
var propertyIsEnumerable$1 = objectProto$6.propertyIsEnumerable;
|
|
508
|
+
var isArguments$1 = baseIsArguments(/* @__PURE__ */ function() {
|
|
509
|
+
return arguments;
|
|
510
|
+
}()) ? baseIsArguments : function(value) {
|
|
511
|
+
return isObjectLike$3(value) && hasOwnProperty$4.call(value, "callee") && !propertyIsEnumerable$1.call(value, "callee");
|
|
512
|
+
};
|
|
513
|
+
var isArguments_1 = isArguments$1;
|
|
514
|
+
var isArray$3 = Array.isArray;
|
|
515
|
+
var isArray_1 = isArray$3;
|
|
516
|
+
var isBuffer$2 = { exports: {} };
|
|
517
|
+
function stubFalse() {
|
|
518
|
+
return false;
|
|
519
|
+
}
|
|
520
|
+
var stubFalse_1 = stubFalse;
|
|
521
|
+
isBuffer$2.exports;
|
|
522
|
+
(function(module2, exports$1) {
|
|
523
|
+
var root2 = _root, stubFalse2 = stubFalse_1;
|
|
524
|
+
var freeExports = exports$1 && !exports$1.nodeType && exports$1;
|
|
525
|
+
var freeModule = freeExports && true && module2 && !module2.nodeType && module2;
|
|
526
|
+
var moduleExports = freeModule && freeModule.exports === freeExports;
|
|
527
|
+
var Buffer = moduleExports ? root2.Buffer : void 0;
|
|
528
|
+
var nativeIsBuffer = Buffer ? Buffer.isBuffer : void 0;
|
|
529
|
+
var isBuffer2 = nativeIsBuffer || stubFalse2;
|
|
530
|
+
module2.exports = isBuffer2;
|
|
531
|
+
})(isBuffer$2, isBuffer$2.exports);
|
|
532
|
+
var isBufferExports = isBuffer$2.exports;
|
|
533
|
+
var MAX_SAFE_INTEGER$1 = 9007199254740991;
|
|
534
|
+
var reIsUint = /^(?:0|[1-9]\d*)$/;
|
|
535
|
+
function isIndex$1(value, length) {
|
|
536
|
+
var type = typeof value;
|
|
537
|
+
length = length == null ? MAX_SAFE_INTEGER$1 : length;
|
|
538
|
+
return !!length && (type == "number" || type != "symbol" && reIsUint.test(value)) && (value > -1 && value % 1 == 0 && value < length);
|
|
539
|
+
}
|
|
540
|
+
var _isIndex = isIndex$1;
|
|
541
|
+
var MAX_SAFE_INTEGER = 9007199254740991;
|
|
542
|
+
function isLength$2(value) {
|
|
543
|
+
return typeof value == "number" && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
|
|
544
|
+
}
|
|
545
|
+
var isLength_1 = isLength$2;
|
|
546
|
+
var baseGetTag$1 = _baseGetTag, isLength$1 = isLength_1, isObjectLike$2 = isObjectLike_1;
|
|
547
|
+
var argsTag$1 = "[object Arguments]", arrayTag$1 = "[object Array]", boolTag$2 = "[object Boolean]", dateTag$2 = "[object Date]", errorTag$1 = "[object Error]", funcTag$1 = "[object Function]", mapTag$4 = "[object Map]", numberTag$2 = "[object Number]", objectTag$2 = "[object Object]", regexpTag$2 = "[object RegExp]", setTag$4 = "[object Set]", stringTag$2 = "[object String]", weakMapTag$2 = "[object WeakMap]";
|
|
548
|
+
var arrayBufferTag$2 = "[object ArrayBuffer]", dataViewTag$3 = "[object DataView]", float32Tag$2 = "[object Float32Array]", float64Tag$2 = "[object Float64Array]", int8Tag$2 = "[object Int8Array]", int16Tag$2 = "[object Int16Array]", int32Tag$2 = "[object Int32Array]", uint8Tag$2 = "[object Uint8Array]", uint8ClampedTag$2 = "[object Uint8ClampedArray]", uint16Tag$2 = "[object Uint16Array]", uint32Tag$2 = "[object Uint32Array]";
|
|
549
|
+
var typedArrayTags = {};
|
|
550
|
+
typedArrayTags[float32Tag$2] = typedArrayTags[float64Tag$2] = typedArrayTags[int8Tag$2] = typedArrayTags[int16Tag$2] = typedArrayTags[int32Tag$2] = typedArrayTags[uint8Tag$2] = typedArrayTags[uint8ClampedTag$2] = typedArrayTags[uint16Tag$2] = typedArrayTags[uint32Tag$2] = true;
|
|
551
|
+
typedArrayTags[argsTag$1] = typedArrayTags[arrayTag$1] = typedArrayTags[arrayBufferTag$2] = typedArrayTags[boolTag$2] = typedArrayTags[dataViewTag$3] = typedArrayTags[dateTag$2] = typedArrayTags[errorTag$1] = typedArrayTags[funcTag$1] = typedArrayTags[mapTag$4] = typedArrayTags[numberTag$2] = typedArrayTags[objectTag$2] = typedArrayTags[regexpTag$2] = typedArrayTags[setTag$4] = typedArrayTags[stringTag$2] = typedArrayTags[weakMapTag$2] = false;
|
|
552
|
+
function baseIsTypedArray$1(value) {
|
|
553
|
+
return isObjectLike$2(value) && isLength$1(value.length) && !!typedArrayTags[baseGetTag$1(value)];
|
|
554
|
+
}
|
|
555
|
+
var _baseIsTypedArray = baseIsTypedArray$1;
|
|
556
|
+
function baseUnary$3(func) {
|
|
557
|
+
return function(value) {
|
|
558
|
+
return func(value);
|
|
559
|
+
};
|
|
560
|
+
}
|
|
561
|
+
var _baseUnary = baseUnary$3;
|
|
562
|
+
var _nodeUtil = { exports: {} };
|
|
563
|
+
_nodeUtil.exports;
|
|
564
|
+
(function(module2, exports$1) {
|
|
565
|
+
var freeGlobal2 = _freeGlobal;
|
|
566
|
+
var freeExports = exports$1 && !exports$1.nodeType && exports$1;
|
|
567
|
+
var freeModule = freeExports && true && module2 && !module2.nodeType && module2;
|
|
568
|
+
var moduleExports = freeModule && freeModule.exports === freeExports;
|
|
569
|
+
var freeProcess = moduleExports && freeGlobal2.process;
|
|
570
|
+
var nodeUtil2 = function() {
|
|
571
|
+
try {
|
|
572
|
+
var types = freeModule && freeModule.require && freeModule.require("util").types;
|
|
573
|
+
if (types) {
|
|
574
|
+
return types;
|
|
575
|
+
}
|
|
576
|
+
return freeProcess && freeProcess.binding && freeProcess.binding("util");
|
|
577
|
+
} catch (e) {
|
|
578
|
+
}
|
|
579
|
+
}();
|
|
580
|
+
module2.exports = nodeUtil2;
|
|
581
|
+
})(_nodeUtil, _nodeUtil.exports);
|
|
582
|
+
var _nodeUtilExports = _nodeUtil.exports;
|
|
583
|
+
var baseIsTypedArray = _baseIsTypedArray, baseUnary$2 = _baseUnary, nodeUtil$2 = _nodeUtilExports;
|
|
584
|
+
var nodeIsTypedArray = nodeUtil$2 && nodeUtil$2.isTypedArray;
|
|
585
|
+
var isTypedArray$1 = nodeIsTypedArray ? baseUnary$2(nodeIsTypedArray) : baseIsTypedArray;
|
|
586
|
+
var isTypedArray_1 = isTypedArray$1;
|
|
587
|
+
var baseTimes = _baseTimes, isArguments = isArguments_1, isArray$2 = isArray_1, isBuffer$1 = isBufferExports, isIndex = _isIndex, isTypedArray = isTypedArray_1;
|
|
588
|
+
var objectProto$5 = Object.prototype;
|
|
589
|
+
var hasOwnProperty$3 = objectProto$5.hasOwnProperty;
|
|
590
|
+
function arrayLikeKeys$2(value, inherited) {
|
|
591
|
+
var isArr = isArray$2(value), isArg = !isArr && isArguments(value), isBuff = !isArr && !isArg && isBuffer$1(value), isType = !isArr && !isArg && !isBuff && isTypedArray(value), skipIndexes = isArr || isArg || isBuff || isType, result = skipIndexes ? baseTimes(value.length, String) : [], length = result.length;
|
|
592
|
+
for (var key in value) {
|
|
593
|
+
if ((inherited || hasOwnProperty$3.call(value, key)) && !(skipIndexes && // Safari 9 has enumerable `arguments.length` in strict mode.
|
|
594
|
+
(key == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
|
|
595
|
+
isBuff && (key == "offset" || key == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
|
|
596
|
+
isType && (key == "buffer" || key == "byteLength" || key == "byteOffset") || // Skip index properties.
|
|
597
|
+
isIndex(key, length)))) {
|
|
598
|
+
result.push(key);
|
|
599
|
+
}
|
|
600
|
+
}
|
|
601
|
+
return result;
|
|
602
|
+
}
|
|
603
|
+
var _arrayLikeKeys = arrayLikeKeys$2;
|
|
604
|
+
var objectProto$4 = Object.prototype;
|
|
605
|
+
function isPrototype$3(value) {
|
|
606
|
+
var Ctor = value && value.constructor, proto = typeof Ctor == "function" && Ctor.prototype || objectProto$4;
|
|
607
|
+
return value === proto;
|
|
608
|
+
}
|
|
609
|
+
var _isPrototype = isPrototype$3;
|
|
610
|
+
function overArg$2(func, transform) {
|
|
611
|
+
return function(arg) {
|
|
612
|
+
return func(transform(arg));
|
|
613
|
+
};
|
|
614
|
+
}
|
|
615
|
+
var _overArg = overArg$2;
|
|
616
|
+
var overArg$1 = _overArg;
|
|
617
|
+
var nativeKeys$1 = overArg$1(Object.keys, Object);
|
|
618
|
+
var _nativeKeys = nativeKeys$1;
|
|
619
|
+
var isPrototype$2 = _isPrototype, nativeKeys = _nativeKeys;
|
|
620
|
+
var objectProto$3 = Object.prototype;
|
|
621
|
+
var hasOwnProperty$2 = objectProto$3.hasOwnProperty;
|
|
622
|
+
function baseKeys$1(object) {
|
|
623
|
+
if (!isPrototype$2(object)) {
|
|
624
|
+
return nativeKeys(object);
|
|
625
|
+
}
|
|
626
|
+
var result = [];
|
|
627
|
+
for (var key in Object(object)) {
|
|
628
|
+
if (hasOwnProperty$2.call(object, key) && key != "constructor") {
|
|
629
|
+
result.push(key);
|
|
630
|
+
}
|
|
631
|
+
}
|
|
632
|
+
return result;
|
|
633
|
+
}
|
|
634
|
+
var _baseKeys = baseKeys$1;
|
|
635
|
+
var isFunction = isFunction_1, isLength = isLength_1;
|
|
636
|
+
function isArrayLike$2(value) {
|
|
637
|
+
return value != null && isLength(value.length) && !isFunction(value);
|
|
638
|
+
}
|
|
639
|
+
var isArrayLike_1 = isArrayLike$2;
|
|
640
|
+
var arrayLikeKeys$1 = _arrayLikeKeys, baseKeys = _baseKeys, isArrayLike$1 = isArrayLike_1;
|
|
641
|
+
function keys$3(object) {
|
|
642
|
+
return isArrayLike$1(object) ? arrayLikeKeys$1(object) : baseKeys(object);
|
|
643
|
+
}
|
|
644
|
+
var keys_1 = keys$3;
|
|
645
|
+
var copyObject$3 = _copyObject, keys$2 = keys_1;
|
|
646
|
+
function baseAssign$1(object, source) {
|
|
647
|
+
return object && copyObject$3(source, keys$2(source), object);
|
|
648
|
+
}
|
|
649
|
+
var _baseAssign = baseAssign$1;
|
|
650
|
+
function nativeKeysIn$1(object) {
|
|
651
|
+
var result = [];
|
|
652
|
+
if (object != null) {
|
|
653
|
+
for (var key in Object(object)) {
|
|
654
|
+
result.push(key);
|
|
655
|
+
}
|
|
656
|
+
}
|
|
657
|
+
return result;
|
|
658
|
+
}
|
|
659
|
+
var _nativeKeysIn = nativeKeysIn$1;
|
|
660
|
+
var isObject$2 = isObject_1, isPrototype$1 = _isPrototype, nativeKeysIn = _nativeKeysIn;
|
|
661
|
+
var objectProto$2 = Object.prototype;
|
|
662
|
+
var hasOwnProperty$1 = objectProto$2.hasOwnProperty;
|
|
663
|
+
function baseKeysIn$1(object) {
|
|
664
|
+
if (!isObject$2(object)) {
|
|
665
|
+
return nativeKeysIn(object);
|
|
666
|
+
}
|
|
667
|
+
var isProto = isPrototype$1(object), result = [];
|
|
668
|
+
for (var key in object) {
|
|
669
|
+
if (!(key == "constructor" && (isProto || !hasOwnProperty$1.call(object, key)))) {
|
|
670
|
+
result.push(key);
|
|
671
|
+
}
|
|
672
|
+
}
|
|
673
|
+
return result;
|
|
674
|
+
}
|
|
675
|
+
var _baseKeysIn = baseKeysIn$1;
|
|
676
|
+
var arrayLikeKeys = _arrayLikeKeys, baseKeysIn = _baseKeysIn, isArrayLike = isArrayLike_1;
|
|
677
|
+
function keysIn$3(object) {
|
|
678
|
+
return isArrayLike(object) ? arrayLikeKeys(object, true) : baseKeysIn(object);
|
|
679
|
+
}
|
|
680
|
+
var keysIn_1 = keysIn$3;
|
|
681
|
+
var copyObject$2 = _copyObject, keysIn$2 = keysIn_1;
|
|
682
|
+
function baseAssignIn$1(object, source) {
|
|
683
|
+
return object && copyObject$2(source, keysIn$2(source), object);
|
|
684
|
+
}
|
|
685
|
+
var _baseAssignIn = baseAssignIn$1;
|
|
686
|
+
var _cloneBuffer = { exports: {} };
|
|
687
|
+
_cloneBuffer.exports;
|
|
688
|
+
(function(module2, exports$1) {
|
|
689
|
+
var root2 = _root;
|
|
690
|
+
var freeExports = exports$1 && !exports$1.nodeType && exports$1;
|
|
691
|
+
var freeModule = freeExports && true && module2 && !module2.nodeType && module2;
|
|
692
|
+
var moduleExports = freeModule && freeModule.exports === freeExports;
|
|
693
|
+
var Buffer = moduleExports ? root2.Buffer : void 0, allocUnsafe = Buffer ? Buffer.allocUnsafe : void 0;
|
|
694
|
+
function cloneBuffer2(buffer, isDeep) {
|
|
695
|
+
if (isDeep) {
|
|
696
|
+
return buffer.slice();
|
|
697
|
+
}
|
|
698
|
+
var length = buffer.length, result = allocUnsafe ? allocUnsafe(length) : new buffer.constructor(length);
|
|
699
|
+
buffer.copy(result);
|
|
700
|
+
return result;
|
|
701
|
+
}
|
|
702
|
+
module2.exports = cloneBuffer2;
|
|
703
|
+
})(_cloneBuffer, _cloneBuffer.exports);
|
|
704
|
+
var _cloneBufferExports = _cloneBuffer.exports;
|
|
705
|
+
function copyArray$1(source, array) {
|
|
706
|
+
var index2 = -1, length = source.length;
|
|
707
|
+
array || (array = Array(length));
|
|
708
|
+
while (++index2 < length) {
|
|
709
|
+
array[index2] = source[index2];
|
|
710
|
+
}
|
|
711
|
+
return array;
|
|
712
|
+
}
|
|
713
|
+
var _copyArray = copyArray$1;
|
|
714
|
+
function arrayFilter$1(array, predicate) {
|
|
715
|
+
var index2 = -1, length = array == null ? 0 : array.length, resIndex = 0, result = [];
|
|
716
|
+
while (++index2 < length) {
|
|
717
|
+
var value = array[index2];
|
|
718
|
+
if (predicate(value, index2, array)) {
|
|
719
|
+
result[resIndex++] = value;
|
|
720
|
+
}
|
|
721
|
+
}
|
|
722
|
+
return result;
|
|
723
|
+
}
|
|
724
|
+
var _arrayFilter = arrayFilter$1;
|
|
725
|
+
function stubArray$2() {
|
|
726
|
+
return [];
|
|
727
|
+
}
|
|
728
|
+
var stubArray_1 = stubArray$2;
|
|
729
|
+
var arrayFilter = _arrayFilter, stubArray$1 = stubArray_1;
|
|
730
|
+
var objectProto$1 = Object.prototype;
|
|
731
|
+
var propertyIsEnumerable = objectProto$1.propertyIsEnumerable;
|
|
732
|
+
var nativeGetSymbols$1 = Object.getOwnPropertySymbols;
|
|
733
|
+
var getSymbols$3 = !nativeGetSymbols$1 ? stubArray$1 : function(object) {
|
|
734
|
+
if (object == null) {
|
|
735
|
+
return [];
|
|
736
|
+
}
|
|
737
|
+
object = Object(object);
|
|
738
|
+
return arrayFilter(nativeGetSymbols$1(object), function(symbol) {
|
|
739
|
+
return propertyIsEnumerable.call(object, symbol);
|
|
740
|
+
});
|
|
741
|
+
};
|
|
742
|
+
var _getSymbols = getSymbols$3;
|
|
743
|
+
var copyObject$1 = _copyObject, getSymbols$2 = _getSymbols;
|
|
744
|
+
function copySymbols$1(source, object) {
|
|
745
|
+
return copyObject$1(source, getSymbols$2(source), object);
|
|
746
|
+
}
|
|
747
|
+
var _copySymbols = copySymbols$1;
|
|
748
|
+
function arrayPush$2(array, values) {
|
|
749
|
+
var index2 = -1, length = values.length, offset = array.length;
|
|
750
|
+
while (++index2 < length) {
|
|
751
|
+
array[offset + index2] = values[index2];
|
|
752
|
+
}
|
|
753
|
+
return array;
|
|
754
|
+
}
|
|
755
|
+
var _arrayPush = arrayPush$2;
|
|
756
|
+
var overArg = _overArg;
|
|
757
|
+
var getPrototype$2 = overArg(Object.getPrototypeOf, Object);
|
|
758
|
+
var _getPrototype = getPrototype$2;
|
|
759
|
+
var arrayPush$1 = _arrayPush, getPrototype$1 = _getPrototype, getSymbols$1 = _getSymbols, stubArray = stubArray_1;
|
|
760
|
+
var nativeGetSymbols = Object.getOwnPropertySymbols;
|
|
761
|
+
var getSymbolsIn$2 = !nativeGetSymbols ? stubArray : function(object) {
|
|
762
|
+
var result = [];
|
|
763
|
+
while (object) {
|
|
764
|
+
arrayPush$1(result, getSymbols$1(object));
|
|
765
|
+
object = getPrototype$1(object);
|
|
766
|
+
}
|
|
767
|
+
return result;
|
|
768
|
+
};
|
|
769
|
+
var _getSymbolsIn = getSymbolsIn$2;
|
|
770
|
+
var copyObject = _copyObject, getSymbolsIn$1 = _getSymbolsIn;
|
|
771
|
+
function copySymbolsIn$1(source, object) {
|
|
772
|
+
return copyObject(source, getSymbolsIn$1(source), object);
|
|
773
|
+
}
|
|
774
|
+
var _copySymbolsIn = copySymbolsIn$1;
|
|
775
|
+
var arrayPush = _arrayPush, isArray$1 = isArray_1;
|
|
776
|
+
function baseGetAllKeys$2(object, keysFunc, symbolsFunc) {
|
|
777
|
+
var result = keysFunc(object);
|
|
778
|
+
return isArray$1(object) ? result : arrayPush(result, symbolsFunc(object));
|
|
779
|
+
}
|
|
780
|
+
var _baseGetAllKeys = baseGetAllKeys$2;
|
|
781
|
+
var baseGetAllKeys$1 = _baseGetAllKeys, getSymbols = _getSymbols, keys$1 = keys_1;
|
|
782
|
+
function getAllKeys$1(object) {
|
|
783
|
+
return baseGetAllKeys$1(object, keys$1, getSymbols);
|
|
784
|
+
}
|
|
785
|
+
var _getAllKeys = getAllKeys$1;
|
|
786
|
+
var baseGetAllKeys = _baseGetAllKeys, getSymbolsIn = _getSymbolsIn, keysIn$1 = keysIn_1;
|
|
787
|
+
function getAllKeysIn$1(object) {
|
|
788
|
+
return baseGetAllKeys(object, keysIn$1, getSymbolsIn);
|
|
789
|
+
}
|
|
790
|
+
var _getAllKeysIn = getAllKeysIn$1;
|
|
791
|
+
var getNative$3 = _getNative, root$4 = _root;
|
|
792
|
+
var DataView$1 = getNative$3(root$4, "DataView");
|
|
793
|
+
var _DataView = DataView$1;
|
|
794
|
+
var getNative$2 = _getNative, root$3 = _root;
|
|
795
|
+
var Promise$2 = getNative$2(root$3, "Promise");
|
|
796
|
+
var _Promise = Promise$2;
|
|
797
|
+
var getNative$1 = _getNative, root$2 = _root;
|
|
798
|
+
var Set$1 = getNative$1(root$2, "Set");
|
|
799
|
+
var _Set = Set$1;
|
|
800
|
+
var getNative = _getNative, root$1 = _root;
|
|
801
|
+
var WeakMap$1 = getNative(root$1, "WeakMap");
|
|
802
|
+
var _WeakMap = WeakMap$1;
|
|
803
|
+
var DataView = _DataView, Map = _Map, Promise$1 = _Promise, Set = _Set, WeakMap = _WeakMap, baseGetTag = _baseGetTag, toSource = _toSource;
|
|
804
|
+
var mapTag$3 = "[object Map]", objectTag$1 = "[object Object]", promiseTag = "[object Promise]", setTag$3 = "[object Set]", weakMapTag$1 = "[object WeakMap]";
|
|
805
|
+
var dataViewTag$2 = "[object DataView]";
|
|
806
|
+
var dataViewCtorString = toSource(DataView), mapCtorString = toSource(Map), promiseCtorString = toSource(Promise$1), setCtorString = toSource(Set), weakMapCtorString = toSource(WeakMap);
|
|
807
|
+
var getTag$3 = baseGetTag;
|
|
808
|
+
if (DataView && getTag$3(new DataView(new ArrayBuffer(1))) != dataViewTag$2 || Map && getTag$3(new Map()) != mapTag$3 || Promise$1 && getTag$3(Promise$1.resolve()) != promiseTag || Set && getTag$3(new Set()) != setTag$3 || WeakMap && getTag$3(new WeakMap()) != weakMapTag$1) {
|
|
809
|
+
getTag$3 = function(value) {
|
|
810
|
+
var result = baseGetTag(value), Ctor = result == objectTag$1 ? value.constructor : void 0, ctorString = Ctor ? toSource(Ctor) : "";
|
|
811
|
+
if (ctorString) {
|
|
812
|
+
switch (ctorString) {
|
|
813
|
+
case dataViewCtorString:
|
|
814
|
+
return dataViewTag$2;
|
|
815
|
+
case mapCtorString:
|
|
816
|
+
return mapTag$3;
|
|
817
|
+
case promiseCtorString:
|
|
818
|
+
return promiseTag;
|
|
819
|
+
case setCtorString:
|
|
820
|
+
return setTag$3;
|
|
821
|
+
case weakMapCtorString:
|
|
822
|
+
return weakMapTag$1;
|
|
823
|
+
}
|
|
824
|
+
}
|
|
825
|
+
return result;
|
|
826
|
+
};
|
|
827
|
+
}
|
|
828
|
+
var _getTag = getTag$3;
|
|
829
|
+
var objectProto = Object.prototype;
|
|
830
|
+
var hasOwnProperty = objectProto.hasOwnProperty;
|
|
831
|
+
function initCloneArray$1(array) {
|
|
832
|
+
var length = array.length, result = new array.constructor(length);
|
|
833
|
+
if (length && typeof array[0] == "string" && hasOwnProperty.call(array, "index")) {
|
|
834
|
+
result.index = array.index;
|
|
835
|
+
result.input = array.input;
|
|
836
|
+
}
|
|
837
|
+
return result;
|
|
838
|
+
}
|
|
839
|
+
var _initCloneArray = initCloneArray$1;
|
|
840
|
+
var root = _root;
|
|
841
|
+
var Uint8Array$1 = root.Uint8Array;
|
|
842
|
+
var _Uint8Array = Uint8Array$1;
|
|
843
|
+
var Uint8Array = _Uint8Array;
|
|
844
|
+
function cloneArrayBuffer$3(arrayBuffer) {
|
|
845
|
+
var result = new arrayBuffer.constructor(arrayBuffer.byteLength);
|
|
846
|
+
new Uint8Array(result).set(new Uint8Array(arrayBuffer));
|
|
847
|
+
return result;
|
|
848
|
+
}
|
|
849
|
+
var _cloneArrayBuffer = cloneArrayBuffer$3;
|
|
850
|
+
var cloneArrayBuffer$2 = _cloneArrayBuffer;
|
|
851
|
+
function cloneDataView$1(dataView, isDeep) {
|
|
852
|
+
var buffer = isDeep ? cloneArrayBuffer$2(dataView.buffer) : dataView.buffer;
|
|
853
|
+
return new dataView.constructor(buffer, dataView.byteOffset, dataView.byteLength);
|
|
854
|
+
}
|
|
855
|
+
var _cloneDataView = cloneDataView$1;
|
|
856
|
+
var reFlags = /\w*$/;
|
|
857
|
+
function cloneRegExp$1(regexp) {
|
|
858
|
+
var result = new regexp.constructor(regexp.source, reFlags.exec(regexp));
|
|
859
|
+
result.lastIndex = regexp.lastIndex;
|
|
860
|
+
return result;
|
|
861
|
+
}
|
|
862
|
+
var _cloneRegExp = cloneRegExp$1;
|
|
863
|
+
var Symbol$1 = _Symbol;
|
|
864
|
+
var symbolProto = Symbol$1 ? Symbol$1.prototype : void 0, symbolValueOf = symbolProto ? symbolProto.valueOf : void 0;
|
|
865
|
+
function cloneSymbol$1(symbol) {
|
|
866
|
+
return symbolValueOf ? Object(symbolValueOf.call(symbol)) : {};
|
|
867
|
+
}
|
|
868
|
+
var _cloneSymbol = cloneSymbol$1;
|
|
869
|
+
var cloneArrayBuffer$1 = _cloneArrayBuffer;
|
|
870
|
+
function cloneTypedArray$1(typedArray, isDeep) {
|
|
871
|
+
var buffer = isDeep ? cloneArrayBuffer$1(typedArray.buffer) : typedArray.buffer;
|
|
872
|
+
return new typedArray.constructor(buffer, typedArray.byteOffset, typedArray.length);
|
|
873
|
+
}
|
|
874
|
+
var _cloneTypedArray = cloneTypedArray$1;
|
|
875
|
+
var cloneArrayBuffer = _cloneArrayBuffer, cloneDataView = _cloneDataView, cloneRegExp = _cloneRegExp, cloneSymbol = _cloneSymbol, cloneTypedArray = _cloneTypedArray;
|
|
876
|
+
var boolTag$1 = "[object Boolean]", dateTag$1 = "[object Date]", mapTag$2 = "[object Map]", numberTag$1 = "[object Number]", regexpTag$1 = "[object RegExp]", setTag$2 = "[object Set]", stringTag$1 = "[object String]", symbolTag$1 = "[object Symbol]";
|
|
877
|
+
var arrayBufferTag$1 = "[object ArrayBuffer]", dataViewTag$1 = "[object DataView]", float32Tag$1 = "[object Float32Array]", float64Tag$1 = "[object Float64Array]", int8Tag$1 = "[object Int8Array]", int16Tag$1 = "[object Int16Array]", int32Tag$1 = "[object Int32Array]", uint8Tag$1 = "[object Uint8Array]", uint8ClampedTag$1 = "[object Uint8ClampedArray]", uint16Tag$1 = "[object Uint16Array]", uint32Tag$1 = "[object Uint32Array]";
|
|
878
|
+
function initCloneByTag$1(object, tag, isDeep) {
|
|
879
|
+
var Ctor = object.constructor;
|
|
880
|
+
switch (tag) {
|
|
881
|
+
case arrayBufferTag$1:
|
|
882
|
+
return cloneArrayBuffer(object);
|
|
883
|
+
case boolTag$1:
|
|
884
|
+
case dateTag$1:
|
|
885
|
+
return new Ctor(+object);
|
|
886
|
+
case dataViewTag$1:
|
|
887
|
+
return cloneDataView(object, isDeep);
|
|
888
|
+
case float32Tag$1:
|
|
889
|
+
case float64Tag$1:
|
|
890
|
+
case int8Tag$1:
|
|
891
|
+
case int16Tag$1:
|
|
892
|
+
case int32Tag$1:
|
|
893
|
+
case uint8Tag$1:
|
|
894
|
+
case uint8ClampedTag$1:
|
|
895
|
+
case uint16Tag$1:
|
|
896
|
+
case uint32Tag$1:
|
|
897
|
+
return cloneTypedArray(object, isDeep);
|
|
898
|
+
case mapTag$2:
|
|
899
|
+
return new Ctor();
|
|
900
|
+
case numberTag$1:
|
|
901
|
+
case stringTag$1:
|
|
902
|
+
return new Ctor(object);
|
|
903
|
+
case regexpTag$1:
|
|
904
|
+
return cloneRegExp(object);
|
|
905
|
+
case setTag$2:
|
|
906
|
+
return new Ctor();
|
|
907
|
+
case symbolTag$1:
|
|
908
|
+
return cloneSymbol(object);
|
|
909
|
+
}
|
|
910
|
+
}
|
|
911
|
+
var _initCloneByTag = initCloneByTag$1;
|
|
912
|
+
var isObject$1 = isObject_1;
|
|
913
|
+
var objectCreate = Object.create;
|
|
914
|
+
var baseCreate$1 = /* @__PURE__ */ function() {
|
|
915
|
+
function object() {
|
|
916
|
+
}
|
|
917
|
+
return function(proto) {
|
|
918
|
+
if (!isObject$1(proto)) {
|
|
919
|
+
return {};
|
|
920
|
+
}
|
|
921
|
+
if (objectCreate) {
|
|
922
|
+
return objectCreate(proto);
|
|
923
|
+
}
|
|
924
|
+
object.prototype = proto;
|
|
925
|
+
var result = new object();
|
|
926
|
+
object.prototype = void 0;
|
|
927
|
+
return result;
|
|
928
|
+
};
|
|
929
|
+
}();
|
|
930
|
+
var _baseCreate = baseCreate$1;
|
|
931
|
+
var baseCreate = _baseCreate, getPrototype = _getPrototype, isPrototype = _isPrototype;
|
|
932
|
+
function initCloneObject$1(object) {
|
|
933
|
+
return typeof object.constructor == "function" && !isPrototype(object) ? baseCreate(getPrototype(object)) : {};
|
|
934
|
+
}
|
|
935
|
+
var _initCloneObject = initCloneObject$1;
|
|
936
|
+
var getTag$2 = _getTag, isObjectLike$1 = isObjectLike_1;
|
|
937
|
+
var mapTag$1 = "[object Map]";
|
|
938
|
+
function baseIsMap$1(value) {
|
|
939
|
+
return isObjectLike$1(value) && getTag$2(value) == mapTag$1;
|
|
940
|
+
}
|
|
941
|
+
var _baseIsMap = baseIsMap$1;
|
|
942
|
+
var baseIsMap = _baseIsMap, baseUnary$1 = _baseUnary, nodeUtil$1 = _nodeUtilExports;
|
|
943
|
+
var nodeIsMap = nodeUtil$1 && nodeUtil$1.isMap;
|
|
944
|
+
var isMap$1 = nodeIsMap ? baseUnary$1(nodeIsMap) : baseIsMap;
|
|
945
|
+
var isMap_1 = isMap$1;
|
|
946
|
+
var getTag$1 = _getTag, isObjectLike = isObjectLike_1;
|
|
947
|
+
var setTag$1 = "[object Set]";
|
|
948
|
+
function baseIsSet$1(value) {
|
|
949
|
+
return isObjectLike(value) && getTag$1(value) == setTag$1;
|
|
950
|
+
}
|
|
951
|
+
var _baseIsSet = baseIsSet$1;
|
|
952
|
+
var baseIsSet = _baseIsSet, baseUnary = _baseUnary, nodeUtil = _nodeUtilExports;
|
|
953
|
+
var nodeIsSet = nodeUtil && nodeUtil.isSet;
|
|
954
|
+
var isSet$1 = nodeIsSet ? baseUnary(nodeIsSet) : baseIsSet;
|
|
955
|
+
var isSet_1 = isSet$1;
|
|
956
|
+
var Stack = _Stack, arrayEach = _arrayEach, assignValue = _assignValue, baseAssign = _baseAssign, baseAssignIn = _baseAssignIn, cloneBuffer = _cloneBufferExports, copyArray = _copyArray, copySymbols = _copySymbols, copySymbolsIn = _copySymbolsIn, getAllKeys = _getAllKeys, getAllKeysIn = _getAllKeysIn, getTag = _getTag, initCloneArray = _initCloneArray, initCloneByTag = _initCloneByTag, initCloneObject = _initCloneObject, isArray = isArray_1, isBuffer = isBufferExports, isMap = isMap_1, isObject = isObject_1, isSet = isSet_1, keys = keys_1, keysIn = keysIn_1;
|
|
957
|
+
var CLONE_DEEP_FLAG$1 = 1, CLONE_FLAT_FLAG = 2, CLONE_SYMBOLS_FLAG$1 = 4;
|
|
958
|
+
var argsTag = "[object Arguments]", arrayTag = "[object Array]", boolTag = "[object Boolean]", dateTag = "[object Date]", errorTag = "[object Error]", funcTag = "[object Function]", genTag = "[object GeneratorFunction]", mapTag = "[object Map]", numberTag = "[object Number]", objectTag = "[object Object]", regexpTag = "[object RegExp]", setTag = "[object Set]", stringTag = "[object String]", symbolTag = "[object Symbol]", weakMapTag = "[object WeakMap]";
|
|
959
|
+
var arrayBufferTag = "[object ArrayBuffer]", dataViewTag = "[object DataView]", float32Tag = "[object Float32Array]", float64Tag = "[object Float64Array]", int8Tag = "[object Int8Array]", int16Tag = "[object Int16Array]", int32Tag = "[object Int32Array]", uint8Tag = "[object Uint8Array]", uint8ClampedTag = "[object Uint8ClampedArray]", uint16Tag = "[object Uint16Array]", uint32Tag = "[object Uint32Array]";
|
|
960
|
+
var cloneableTags = {};
|
|
961
|
+
cloneableTags[argsTag] = cloneableTags[arrayTag] = cloneableTags[arrayBufferTag] = cloneableTags[dataViewTag] = cloneableTags[boolTag] = cloneableTags[dateTag] = cloneableTags[float32Tag] = cloneableTags[float64Tag] = cloneableTags[int8Tag] = cloneableTags[int16Tag] = cloneableTags[int32Tag] = cloneableTags[mapTag] = cloneableTags[numberTag] = cloneableTags[objectTag] = cloneableTags[regexpTag] = cloneableTags[setTag] = cloneableTags[stringTag] = cloneableTags[symbolTag] = cloneableTags[uint8Tag] = cloneableTags[uint8ClampedTag] = cloneableTags[uint16Tag] = cloneableTags[uint32Tag] = true;
|
|
962
|
+
cloneableTags[errorTag] = cloneableTags[funcTag] = cloneableTags[weakMapTag] = false;
|
|
963
|
+
function baseClone$1(value, bitmask, customizer, key, object, stack) {
|
|
964
|
+
var result, isDeep = bitmask & CLONE_DEEP_FLAG$1, isFlat = bitmask & CLONE_FLAT_FLAG, isFull = bitmask & CLONE_SYMBOLS_FLAG$1;
|
|
965
|
+
if (customizer) {
|
|
966
|
+
result = object ? customizer(value, key, object, stack) : customizer(value);
|
|
967
|
+
}
|
|
968
|
+
if (result !== void 0) {
|
|
969
|
+
return result;
|
|
970
|
+
}
|
|
971
|
+
if (!isObject(value)) {
|
|
972
|
+
return value;
|
|
973
|
+
}
|
|
974
|
+
var isArr = isArray(value);
|
|
975
|
+
if (isArr) {
|
|
976
|
+
result = initCloneArray(value);
|
|
977
|
+
if (!isDeep) {
|
|
978
|
+
return copyArray(value, result);
|
|
979
|
+
}
|
|
980
|
+
} else {
|
|
981
|
+
var tag = getTag(value), isFunc = tag == funcTag || tag == genTag;
|
|
982
|
+
if (isBuffer(value)) {
|
|
983
|
+
return cloneBuffer(value, isDeep);
|
|
984
|
+
}
|
|
985
|
+
if (tag == objectTag || tag == argsTag || isFunc && !object) {
|
|
986
|
+
result = isFlat || isFunc ? {} : initCloneObject(value);
|
|
987
|
+
if (!isDeep) {
|
|
988
|
+
return isFlat ? copySymbolsIn(value, baseAssignIn(result, value)) : copySymbols(value, baseAssign(result, value));
|
|
989
|
+
}
|
|
990
|
+
} else {
|
|
991
|
+
if (!cloneableTags[tag]) {
|
|
992
|
+
return object ? value : {};
|
|
993
|
+
}
|
|
994
|
+
result = initCloneByTag(value, tag, isDeep);
|
|
995
|
+
}
|
|
996
|
+
}
|
|
997
|
+
stack || (stack = new Stack());
|
|
998
|
+
var stacked = stack.get(value);
|
|
999
|
+
if (stacked) {
|
|
1000
|
+
return stacked;
|
|
1001
|
+
}
|
|
1002
|
+
stack.set(value, result);
|
|
1003
|
+
if (isSet(value)) {
|
|
1004
|
+
value.forEach(function(subValue) {
|
|
1005
|
+
result.add(baseClone$1(subValue, bitmask, customizer, subValue, value, stack));
|
|
1006
|
+
});
|
|
1007
|
+
} else if (isMap(value)) {
|
|
1008
|
+
value.forEach(function(subValue, key2) {
|
|
1009
|
+
result.set(key2, baseClone$1(subValue, bitmask, customizer, key2, value, stack));
|
|
1010
|
+
});
|
|
1011
|
+
}
|
|
1012
|
+
var keysFunc = isFull ? isFlat ? getAllKeysIn : getAllKeys : isFlat ? keysIn : keys;
|
|
1013
|
+
var props = isArr ? void 0 : keysFunc(value);
|
|
1014
|
+
arrayEach(props || value, function(subValue, key2) {
|
|
1015
|
+
if (props) {
|
|
1016
|
+
key2 = subValue;
|
|
1017
|
+
subValue = value[key2];
|
|
1018
|
+
}
|
|
1019
|
+
assignValue(result, key2, baseClone$1(subValue, bitmask, customizer, key2, value, stack));
|
|
1020
|
+
});
|
|
1021
|
+
return result;
|
|
1022
|
+
}
|
|
1023
|
+
var _baseClone = baseClone$1;
|
|
1024
|
+
var baseClone = _baseClone;
|
|
1025
|
+
var CLONE_DEEP_FLAG = 1, CLONE_SYMBOLS_FLAG = 4;
|
|
1026
|
+
function cloneDeep(value) {
|
|
1027
|
+
return baseClone(value, CLONE_DEEP_FLAG | CLONE_SYMBOLS_FLAG);
|
|
1028
|
+
}
|
|
1029
|
+
var cloneDeep_1 = cloneDeep;
|
|
1030
|
+
const cloneDeep$1 = /* @__PURE__ */ getDefaultExportFromCjs(cloneDeep_1);
|
|
1031
|
+
const colors = styled.css`
|
|
1032
|
+
${({ theme }) => styled.css`
|
|
1033
|
+
:root {
|
|
1034
|
+
--tiptap-color-body: ${theme.colors.neutral800};
|
|
1035
|
+
--tiptap-color-heading: ${theme.colors.neutral900};
|
|
1036
|
+
--tiptap-color-muted: ${theme.colors.neutral500};
|
|
1037
|
+
--tiptap-color-border: ${theme.colors.neutral200};
|
|
1038
|
+
--tiptap-color-bg: ${theme.colors.neutral0};
|
|
1039
|
+
--tiptap-color-code-bg: ${theme.colors.neutral100};
|
|
1040
|
+
--tiptap-color-primary: ${theme.colors.primary600};
|
|
1041
|
+
--tiptap-color-ring: ${theme.colors.primary200};
|
|
1042
|
+
}
|
|
1043
|
+
`}
|
|
1044
|
+
`;
|
|
1045
|
+
const light = styled.css`
|
|
1046
|
+
${colors}
|
|
1047
|
+
`;
|
|
1048
|
+
const dark = styled.css`
|
|
1049
|
+
${colors}
|
|
1050
|
+
|
|
1051
|
+
:root {
|
|
1052
|
+
--tiptap-color-body: hsl(0, 0%, 95%);
|
|
1053
|
+
--tiptap-color-heading: hsl(0, 0%, 100%);
|
|
1054
|
+
--tiptap-color-muted: hsl(0, 0%, 70%);
|
|
1055
|
+
--tiptap-color-bg: hsl(0, 0%, 12%);
|
|
1056
|
+
--tiptap-color-border: hsl(0, 0%, 25%);
|
|
1057
|
+
--tiptap-color-code-bg: hsl(0, 0%, 18%);
|
|
1058
|
+
}
|
|
1059
|
+
`;
|
|
1060
|
+
const common = styled.css`
|
|
1061
|
+
${({ theme }) => styled.css`
|
|
1062
|
+
.ProseMirror {
|
|
1063
|
+
display: flex;
|
|
1064
|
+
flex-direction: column;
|
|
1065
|
+
max-width: 100%;
|
|
1066
|
+
padding: 8px 12px;
|
|
1067
|
+
cursor: text;
|
|
1068
|
+
z-index: 0;
|
|
1069
|
+
background-color: var(--tiptap-color-bg);
|
|
1070
|
+
color: var(--tiptap-color-body);
|
|
1071
|
+
font-size: ${theme.fontSizes[2]};
|
|
1072
|
+
line-height: 1.7;
|
|
1073
|
+
}
|
|
1074
|
+
|
|
1075
|
+
.ProseMirror > *:first-child {
|
|
1076
|
+
margin-top: 0;
|
|
1077
|
+
}
|
|
1078
|
+
|
|
1079
|
+
.ProseMirror.ProseMirror-focused {
|
|
1080
|
+
outline: none;
|
|
1081
|
+
box-shadow: 0 0 0 1px var(--tiptap-color-ring);
|
|
1082
|
+
}
|
|
1083
|
+
|
|
1084
|
+
/* Placeholder */
|
|
1085
|
+
.ProseMirror p.is-editor-empty:first-child::before {
|
|
1086
|
+
content: attr(data-placeholder);
|
|
1087
|
+
color: var(--tiptap-color-muted);
|
|
1088
|
+
float: left;
|
|
1089
|
+
height: 0;
|
|
1090
|
+
pointer-events: none;
|
|
1091
|
+
}
|
|
1092
|
+
|
|
1093
|
+
/* Headings */
|
|
1094
|
+
.ProseMirror h1,
|
|
1095
|
+
.ProseMirror h2,
|
|
1096
|
+
.ProseMirror h3,
|
|
1097
|
+
.ProseMirror h4,
|
|
1098
|
+
.ProseMirror h5,
|
|
1099
|
+
.ProseMirror h6 {
|
|
1100
|
+
color: var(--tiptap-color-heading);
|
|
1101
|
+
font-weight: 600;
|
|
1102
|
+
margin-top: 1.5em;
|
|
1103
|
+
margin-bottom: 0.5em;
|
|
1104
|
+
}
|
|
1105
|
+
|
|
1106
|
+
.ProseMirror h1 {
|
|
1107
|
+
font-size: 40px;
|
|
1108
|
+
}
|
|
1109
|
+
.ProseMirror h2 {
|
|
1110
|
+
font-size: 36px;
|
|
1111
|
+
}
|
|
1112
|
+
.ProseMirror h3 {
|
|
1113
|
+
font-size: 32px;
|
|
1114
|
+
}
|
|
1115
|
+
.ProseMirror h4 {
|
|
1116
|
+
font-size: 28px;
|
|
1117
|
+
}
|
|
1118
|
+
.ProseMirror h5 {
|
|
1119
|
+
font-size: 24px;
|
|
1120
|
+
}
|
|
1121
|
+
.ProseMirror h6 {
|
|
1122
|
+
font-size: 20px;
|
|
1123
|
+
}
|
|
1124
|
+
|
|
1125
|
+
/* Blockquote */
|
|
1126
|
+
.ProseMirror blockquote {
|
|
1127
|
+
border-left: 3px solid var(--tiptap-color-border);
|
|
1128
|
+
color: var(--tiptap-color-muted);
|
|
1129
|
+
padding-left: 1rem;
|
|
1130
|
+
margin: 1rem 0;
|
|
1131
|
+
font-style: italic;
|
|
1132
|
+
}
|
|
1133
|
+
|
|
1134
|
+
/* Inline code & pre */
|
|
1135
|
+
.ProseMirror code {
|
|
1136
|
+
background-color: var(--tiptap-color-code-bg);
|
|
1137
|
+
border-radius: ${theme.borderRadius};
|
|
1138
|
+
padding: 0.15em 0.3em;
|
|
1139
|
+
font-size: 0.9em;
|
|
1140
|
+
font-family: monospace;
|
|
1141
|
+
}
|
|
1142
|
+
|
|
1143
|
+
.ProseMirror pre {
|
|
1144
|
+
background-color: var(--tiptap-color-code-bg);
|
|
1145
|
+
padding: 1rem;
|
|
1146
|
+
border-radius: ${theme.borderRadius};
|
|
1147
|
+
overflow-x: auto;
|
|
1148
|
+
font-family: monospace;
|
|
1149
|
+
}
|
|
1150
|
+
|
|
1151
|
+
/* Lists */
|
|
1152
|
+
.ProseMirror ul,
|
|
1153
|
+
.ProseMirror ol {
|
|
1154
|
+
margin: 1rem 0 1rem 1.5rem;
|
|
1155
|
+
padding-left: 1.25rem;
|
|
1156
|
+
}
|
|
1157
|
+
|
|
1158
|
+
.ProseMirror ul {
|
|
1159
|
+
list-style-type: disc;
|
|
1160
|
+
}
|
|
1161
|
+
|
|
1162
|
+
.ProseMirror ol {
|
|
1163
|
+
list-style-type: decimal;
|
|
1164
|
+
}
|
|
1165
|
+
|
|
1166
|
+
.ProseMirror ul ul {
|
|
1167
|
+
list-style-type: circle;
|
|
1168
|
+
margin-left: 1.25rem;
|
|
1169
|
+
}
|
|
1170
|
+
|
|
1171
|
+
.ProseMirror ol ol {
|
|
1172
|
+
list-style-type: lower-alpha;
|
|
1173
|
+
margin-left: 1.25rem;
|
|
1174
|
+
}
|
|
1175
|
+
|
|
1176
|
+
.ProseMirror ul[data-type="taskList"] {
|
|
1177
|
+
list-style-type: none;
|
|
1178
|
+
margin-left: 0;
|
|
1179
|
+
padding: 0
|
|
1180
|
+
}
|
|
1181
|
+
|
|
1182
|
+
.ProseMirror ul[data-type="taskList"] li {
|
|
1183
|
+
display: flex;
|
|
1184
|
+
align-items: flex-start;
|
|
1185
|
+
}
|
|
1186
|
+
|
|
1187
|
+
.ProseMirror ul[data-type="taskList"] li label {
|
|
1188
|
+
flex: 0 0 auto;
|
|
1189
|
+
margin-right: 0.5rem;
|
|
1190
|
+
user-select: none;
|
|
1191
|
+
}
|
|
1192
|
+
|
|
1193
|
+
.ProseMirror ul[data-type="taskList"] li div {
|
|
1194
|
+
flex: 1 1 auto;
|
|
1195
|
+
}
|
|
1196
|
+
|
|
1197
|
+
.ProseMirror ul[data-type="taskList"] input[type="checkbox"] {
|
|
1198
|
+
cursor: pointer;
|
|
1199
|
+
}
|
|
1200
|
+
|
|
1201
|
+
.ProseMirror ul[data-type="taskList"] ul {
|
|
1202
|
+
margin: 0;
|
|
1203
|
+
}
|
|
1204
|
+
|
|
1205
|
+
.ProseMirror ul[data-type="taskList"] li div p:first-child {
|
|
1206
|
+
margin: 0;
|
|
1207
|
+
}
|
|
1208
|
+
|
|
1209
|
+
.ProseMirror li {
|
|
1210
|
+
margin: 0.25rem 0;
|
|
1211
|
+
}
|
|
1212
|
+
|
|
1213
|
+
/* Horizontal rule */
|
|
1214
|
+
.ProseMirror hr {
|
|
1215
|
+
border: none;
|
|
1216
|
+
border-top: 1px solid var(--tiptap-color-border);
|
|
1217
|
+
margin: 2rem 0;
|
|
1218
|
+
}
|
|
1219
|
+
|
|
1220
|
+
/* Links */
|
|
1221
|
+
.ProseMirror a {
|
|
1222
|
+
color: var(--tiptap-color-primary);
|
|
1223
|
+
text-decoration: underline;
|
|
1224
|
+
}
|
|
1225
|
+
|
|
1226
|
+
/* Images & figures */
|
|
1227
|
+
.ProseMirror img {
|
|
1228
|
+
max-width: 100%;
|
|
1229
|
+
border-radius: ${theme.borderRadius};
|
|
1230
|
+
/* margin: 1rem 0; */
|
|
1231
|
+
}
|
|
1232
|
+
|
|
1233
|
+
.ProseMirror figure {
|
|
1234
|
+
margin: 1.5rem 0;
|
|
1235
|
+
}
|
|
1236
|
+
|
|
1237
|
+
.ProseMirror figcaption {
|
|
1238
|
+
font-size: 0.875rem;
|
|
1239
|
+
color: var(--tiptap-color-muted);
|
|
1240
|
+
margin-top: 0.25rem;
|
|
1241
|
+
text-align: center;
|
|
1242
|
+
}
|
|
1243
|
+
|
|
1244
|
+
/* Tables */
|
|
1245
|
+
.ProseMirror table {
|
|
1246
|
+
width: 100%;
|
|
1247
|
+
border-collapse: collapse;
|
|
1248
|
+
margin: 1.5rem 0;
|
|
1249
|
+
font-size: 0.95rem;
|
|
1250
|
+
}
|
|
1251
|
+
|
|
1252
|
+
.ProseMirror table th,
|
|
1253
|
+
.ProseMirror table td {
|
|
1254
|
+
border: 1px solid var(--tiptap-color-border);
|
|
1255
|
+
padding: 0.5rem 0.75rem;
|
|
1256
|
+
text-align: left;
|
|
1257
|
+
}
|
|
1258
|
+
|
|
1259
|
+
.ProseMirror table th {
|
|
1260
|
+
background-color: var(--tiptap-color-muted-bg);
|
|
1261
|
+
font-weight: 600;
|
|
1262
|
+
}
|
|
1263
|
+
|
|
1264
|
+
.ProseMirror table tr:nth-child(even) {
|
|
1265
|
+
background-color: var(--tiptap-color-bg-alt);
|
|
1266
|
+
}
|
|
1267
|
+
|
|
1268
|
+
.ProseMirror table tr:hover {
|
|
1269
|
+
background-color: var(--tiptap-color-hover-bg);
|
|
1270
|
+
}
|
|
1271
|
+
`}
|
|
1272
|
+
`;
|
|
1273
|
+
const additional = styled.css`
|
|
1274
|
+
:root {
|
|
1275
|
+
--tiptap-editor-min-height: 200px;
|
|
1276
|
+
--tiptap-editor-max-height: 600px;
|
|
1277
|
+
}
|
|
1278
|
+
|
|
1279
|
+
.ProseMirror {
|
|
1280
|
+
min-height: var(--tiptap-editor-min-height);
|
|
1281
|
+
max-height: var(--tiptap-editor-max-height);
|
|
1282
|
+
overflow-y: auto;
|
|
1283
|
+
}
|
|
1284
|
+
`;
|
|
1285
|
+
const defaultTheme = {
|
|
1286
|
+
light,
|
|
1287
|
+
dark,
|
|
1288
|
+
common,
|
|
1289
|
+
additional
|
|
1290
|
+
};
|
|
1291
|
+
const PLUGIN_CONFIG = {
|
|
1292
|
+
theme: defaultTheme
|
|
1293
|
+
};
|
|
1294
|
+
function setPluginConfig(userPluginConfig) {
|
|
1295
|
+
const { theme: userTheme } = userPluginConfig || {};
|
|
1296
|
+
if (userTheme) {
|
|
1297
|
+
PLUGIN_CONFIG.theme = userTheme;
|
|
1298
|
+
}
|
|
1299
|
+
}
|
|
1300
|
+
function getPluginConfig() {
|
|
1301
|
+
return PLUGIN_CONFIG;
|
|
1302
|
+
}
|
|
1303
|
+
const clonedDefaultTheme = cloneDeep$1(defaultTheme);
|
|
1304
|
+
const index = {
|
|
1305
|
+
/**
|
|
1306
|
+
* Registers the plugin with the Strapi admin application.
|
|
1307
|
+
* @param app - The Strapi administration application instance.
|
|
1308
|
+
*/
|
|
1309
|
+
async register(app) {
|
|
1310
|
+
console.log("Registering Tiptap Editor plugin (tiptap)...");
|
|
1311
|
+
app.customFields.register({
|
|
1312
|
+
name: "tiptap",
|
|
1313
|
+
pluginId: PLUGIN_ID,
|
|
1314
|
+
type: "json",
|
|
1315
|
+
intlLabel: {
|
|
1316
|
+
id: `${PLUGIN_ID}.tiptap.label`,
|
|
1317
|
+
defaultMessage: "Tiptap Editor"
|
|
1318
|
+
},
|
|
1319
|
+
intlDescription: {
|
|
1320
|
+
id: `${PLUGIN_ID}.tiptap.description`,
|
|
1321
|
+
defaultMessage: "Powerful rich text editor"
|
|
1322
|
+
},
|
|
1323
|
+
icon: PluginIcon,
|
|
1324
|
+
components: {
|
|
1325
|
+
Input: async () => Promise.resolve().then(() => require("./TiptapEditorInput-vfLsCt1p.js")).then((n) => n.TiptapEditorInput)
|
|
1326
|
+
},
|
|
1327
|
+
options: {
|
|
1328
|
+
base: [
|
|
1329
|
+
{
|
|
1330
|
+
sectionTitle: {
|
|
1331
|
+
id: "tiptap-editor.section.settings",
|
|
1332
|
+
defaultMessage: "Settings"
|
|
1333
|
+
},
|
|
1334
|
+
items: [
|
|
1335
|
+
{
|
|
1336
|
+
name: "options.preset",
|
|
1337
|
+
type: "select",
|
|
1338
|
+
intlLabel: {
|
|
1339
|
+
id: "tiptap-editor.options.preset.label",
|
|
1340
|
+
defaultMessage: "Preset"
|
|
1341
|
+
},
|
|
1342
|
+
intlDescription: {
|
|
1343
|
+
id: "tiptap-editor.options.preset.description",
|
|
1344
|
+
defaultMessage: "Select the editor mode"
|
|
1345
|
+
},
|
|
1346
|
+
defaultValue: "full",
|
|
1347
|
+
options: [
|
|
1348
|
+
{
|
|
1349
|
+
key: "full",
|
|
1350
|
+
value: "full",
|
|
1351
|
+
metadatas: {
|
|
1352
|
+
intlLabel: {
|
|
1353
|
+
id: "tiptap-editor.options.preset.full",
|
|
1354
|
+
defaultMessage: "Full (Recommended)"
|
|
1355
|
+
}
|
|
1356
|
+
}
|
|
1357
|
+
},
|
|
1358
|
+
{
|
|
1359
|
+
key: "basic",
|
|
1360
|
+
value: "basic",
|
|
1361
|
+
metadatas: {
|
|
1362
|
+
intlLabel: {
|
|
1363
|
+
id: "tiptap-editor.options.preset.basic",
|
|
1364
|
+
defaultMessage: "Basic"
|
|
1365
|
+
}
|
|
1366
|
+
}
|
|
1367
|
+
}
|
|
1368
|
+
]
|
|
1369
|
+
}
|
|
1370
|
+
]
|
|
1371
|
+
}
|
|
1372
|
+
]
|
|
1373
|
+
}
|
|
1374
|
+
});
|
|
1375
|
+
},
|
|
1376
|
+
/**
|
|
1377
|
+
* Registers translations for the plugin.
|
|
1378
|
+
* @param {Object} context - Context object containing supported locales.
|
|
1379
|
+
* @param {string[]} context.locales - Array of locale codes.
|
|
1380
|
+
* @returns {Promise<Array>} Array of translation objects.
|
|
1381
|
+
*/
|
|
1382
|
+
async registerTrads({ locales }) {
|
|
1383
|
+
return Promise.all(
|
|
1384
|
+
locales.map(async (locale) => {
|
|
1385
|
+
try {
|
|
1386
|
+
const { default: data } = await __variableDynamicImportRuntimeHelper(/* @__PURE__ */ Object.assign({ "./translations/en.json": () => Promise.resolve().then(() => require("./en-B4KWt_jN.js")) }), `./translations/${locale}.json`, 3);
|
|
1387
|
+
return { data, locale };
|
|
1388
|
+
} catch {
|
|
1389
|
+
return { data: {}, locale };
|
|
1390
|
+
}
|
|
1391
|
+
})
|
|
1392
|
+
);
|
|
1393
|
+
}
|
|
1394
|
+
};
|
|
1395
|
+
exports.clonedDefaultTheme = clonedDefaultTheme;
|
|
1396
|
+
exports.getPluginConfig = getPluginConfig;
|
|
1397
|
+
exports.index = index;
|
|
1398
|
+
exports.setPluginConfig = setPluginConfig;
|