@tailor-cms/ce-accordion-edit 0.0.3 → 0.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +665 -123
- package/dist/index.js +665 -123
- package/dist/style.css +117 -117
- package/package.json +4 -5
package/dist/index.cjs
CHANGED
|
@@ -766,8 +766,8 @@ function getAllKeysIn$2(object2) {
|
|
|
766
766
|
}
|
|
767
767
|
var _getAllKeysIn = getAllKeysIn$2;
|
|
768
768
|
var getNative$3 = _getNative, root$4 = _root;
|
|
769
|
-
var DataView$
|
|
770
|
-
var _DataView = DataView$
|
|
769
|
+
var DataView$2 = getNative$3(root$4, "DataView");
|
|
770
|
+
var _DataView = DataView$2;
|
|
771
771
|
var getNative$2 = _getNative, root$3 = _root;
|
|
772
772
|
var Promise$2 = getNative$2(root$3, "Promise");
|
|
773
773
|
var _Promise = Promise$2;
|
|
@@ -777,12 +777,12 @@ var _Set = Set$3;
|
|
|
777
777
|
var getNative = _getNative, root$1 = _root;
|
|
778
778
|
var WeakMap$2 = getNative(root$1, "WeakMap");
|
|
779
779
|
var _WeakMap = WeakMap$2;
|
|
780
|
-
var DataView = _DataView, Map$1 = _Map, Promise$1 = _Promise, Set$2 = _Set, WeakMap$1 = _WeakMap, baseGetTag$3 = _baseGetTag, toSource = _toSource;
|
|
780
|
+
var DataView$1 = _DataView, Map$1 = _Map, Promise$1 = _Promise, Set$2 = _Set, WeakMap$1 = _WeakMap, baseGetTag$3 = _baseGetTag, toSource = _toSource;
|
|
781
781
|
var mapTag$5 = "[object Map]", objectTag$3 = "[object Object]", promiseTag = "[object Promise]", setTag$5 = "[object Set]", weakMapTag$1 = "[object WeakMap]";
|
|
782
782
|
var dataViewTag$3 = "[object DataView]";
|
|
783
|
-
var dataViewCtorString = toSource(DataView), mapCtorString = toSource(Map$1), promiseCtorString = toSource(Promise$1), setCtorString = toSource(Set$2), weakMapCtorString = toSource(WeakMap$1);
|
|
783
|
+
var dataViewCtorString = toSource(DataView$1), mapCtorString = toSource(Map$1), promiseCtorString = toSource(Promise$1), setCtorString = toSource(Set$2), weakMapCtorString = toSource(WeakMap$1);
|
|
784
784
|
var getTag$5 = baseGetTag$3;
|
|
785
|
-
if (DataView && getTag$5(new DataView(new ArrayBuffer(1))) != dataViewTag$3 || Map$1 && getTag$5(new Map$1()) != mapTag$5 || Promise$1 && getTag$5(Promise$1.resolve()) != promiseTag || Set$2 && getTag$5(new Set$2()) != setTag$5 || WeakMap$1 && getTag$5(new WeakMap$1()) != weakMapTag$1) {
|
|
785
|
+
if (DataView$1 && getTag$5(new DataView$1(new ArrayBuffer(1))) != dataViewTag$3 || Map$1 && getTag$5(new Map$1()) != mapTag$5 || Promise$1 && getTag$5(Promise$1.resolve()) != promiseTag || Set$2 && getTag$5(new Set$2()) != setTag$5 || WeakMap$1 && getTag$5(new WeakMap$1()) != weakMapTag$1) {
|
|
786
786
|
getTag$5 = function(value) {
|
|
787
787
|
var result = baseGetTag$3(value), Ctor = result == objectTag$3 ? value.constructor : void 0, ctorString = Ctor ? toSource(Ctor) : "";
|
|
788
788
|
if (ctorString) {
|
|
@@ -1005,6 +1005,585 @@ function cloneDeep(value) {
|
|
|
1005
1005
|
}
|
|
1006
1006
|
var cloneDeep_1 = cloneDeep;
|
|
1007
1007
|
const cloneDeep$1 = /* @__PURE__ */ getDefaultExportFromCjs(cloneDeep_1);
|
|
1008
|
+
var src = {};
|
|
1009
|
+
var sha3$1 = {};
|
|
1010
|
+
var _assert = {};
|
|
1011
|
+
Object.defineProperty(_assert, "__esModule", { value: true });
|
|
1012
|
+
_assert.anumber = anumber;
|
|
1013
|
+
_assert.number = anumber;
|
|
1014
|
+
_assert.abytes = abytes;
|
|
1015
|
+
_assert.bytes = abytes;
|
|
1016
|
+
_assert.ahash = ahash;
|
|
1017
|
+
_assert.aexists = aexists;
|
|
1018
|
+
_assert.aoutput = aoutput;
|
|
1019
|
+
function anumber(n) {
|
|
1020
|
+
if (!Number.isSafeInteger(n) || n < 0)
|
|
1021
|
+
throw new Error("positive integer expected, got " + n);
|
|
1022
|
+
}
|
|
1023
|
+
function isBytes(a) {
|
|
1024
|
+
return a instanceof Uint8Array || ArrayBuffer.isView(a) && a.constructor.name === "Uint8Array";
|
|
1025
|
+
}
|
|
1026
|
+
function abytes(b, ...lengths) {
|
|
1027
|
+
if (!isBytes(b))
|
|
1028
|
+
throw new Error("Uint8Array expected");
|
|
1029
|
+
if (lengths.length > 0 && !lengths.includes(b.length))
|
|
1030
|
+
throw new Error("Uint8Array expected of length " + lengths + ", got length=" + b.length);
|
|
1031
|
+
}
|
|
1032
|
+
function ahash(h) {
|
|
1033
|
+
if (typeof h !== "function" || typeof h.create !== "function")
|
|
1034
|
+
throw new Error("Hash should be wrapped by utils.wrapConstructor");
|
|
1035
|
+
anumber(h.outputLen);
|
|
1036
|
+
anumber(h.blockLen);
|
|
1037
|
+
}
|
|
1038
|
+
function aexists(instance, checkFinished = true) {
|
|
1039
|
+
if (instance.destroyed)
|
|
1040
|
+
throw new Error("Hash instance has been destroyed");
|
|
1041
|
+
if (checkFinished && instance.finished)
|
|
1042
|
+
throw new Error("Hash#digest() has already been called");
|
|
1043
|
+
}
|
|
1044
|
+
function aoutput(out, instance) {
|
|
1045
|
+
abytes(out);
|
|
1046
|
+
const min = instance.outputLen;
|
|
1047
|
+
if (out.length < min) {
|
|
1048
|
+
throw new Error("digestInto() expects output buffer of length at least " + min);
|
|
1049
|
+
}
|
|
1050
|
+
}
|
|
1051
|
+
const assert = {
|
|
1052
|
+
number: anumber,
|
|
1053
|
+
bytes: abytes,
|
|
1054
|
+
hash: ahash,
|
|
1055
|
+
exists: aexists,
|
|
1056
|
+
output: aoutput
|
|
1057
|
+
};
|
|
1058
|
+
_assert.default = assert;
|
|
1059
|
+
var _u64 = {};
|
|
1060
|
+
Object.defineProperty(_u64, "__esModule", { value: true });
|
|
1061
|
+
_u64.add5L = _u64.add5H = _u64.add4H = _u64.add4L = _u64.add3H = _u64.add3L = _u64.rotlBL = _u64.rotlBH = _u64.rotlSL = _u64.rotlSH = _u64.rotr32L = _u64.rotr32H = _u64.rotrBL = _u64.rotrBH = _u64.rotrSL = _u64.rotrSH = _u64.shrSL = _u64.shrSH = _u64.toBig = void 0;
|
|
1062
|
+
_u64.fromBig = fromBig;
|
|
1063
|
+
_u64.split = split$1;
|
|
1064
|
+
_u64.add = add;
|
|
1065
|
+
const U32_MASK64 = /* @__PURE__ */ BigInt(2 ** 32 - 1);
|
|
1066
|
+
const _32n = /* @__PURE__ */ BigInt(32);
|
|
1067
|
+
function fromBig(n, le = false) {
|
|
1068
|
+
if (le)
|
|
1069
|
+
return { h: Number(n & U32_MASK64), l: Number(n >> _32n & U32_MASK64) };
|
|
1070
|
+
return { h: Number(n >> _32n & U32_MASK64) | 0, l: Number(n & U32_MASK64) | 0 };
|
|
1071
|
+
}
|
|
1072
|
+
function split$1(lst, le = false) {
|
|
1073
|
+
let Ah = new Uint32Array(lst.length);
|
|
1074
|
+
let Al = new Uint32Array(lst.length);
|
|
1075
|
+
for (let i = 0; i < lst.length; i++) {
|
|
1076
|
+
const { h, l } = fromBig(lst[i], le);
|
|
1077
|
+
[Ah[i], Al[i]] = [h, l];
|
|
1078
|
+
}
|
|
1079
|
+
return [Ah, Al];
|
|
1080
|
+
}
|
|
1081
|
+
const toBig = (h, l) => BigInt(h >>> 0) << _32n | BigInt(l >>> 0);
|
|
1082
|
+
_u64.toBig = toBig;
|
|
1083
|
+
const shrSH = (h, _l, s) => h >>> s;
|
|
1084
|
+
_u64.shrSH = shrSH;
|
|
1085
|
+
const shrSL = (h, l, s) => h << 32 - s | l >>> s;
|
|
1086
|
+
_u64.shrSL = shrSL;
|
|
1087
|
+
const rotrSH = (h, l, s) => h >>> s | l << 32 - s;
|
|
1088
|
+
_u64.rotrSH = rotrSH;
|
|
1089
|
+
const rotrSL = (h, l, s) => h << 32 - s | l >>> s;
|
|
1090
|
+
_u64.rotrSL = rotrSL;
|
|
1091
|
+
const rotrBH = (h, l, s) => h << 64 - s | l >>> s - 32;
|
|
1092
|
+
_u64.rotrBH = rotrBH;
|
|
1093
|
+
const rotrBL = (h, l, s) => h >>> s - 32 | l << 64 - s;
|
|
1094
|
+
_u64.rotrBL = rotrBL;
|
|
1095
|
+
const rotr32H = (_h, l) => l;
|
|
1096
|
+
_u64.rotr32H = rotr32H;
|
|
1097
|
+
const rotr32L = (h, _l) => h;
|
|
1098
|
+
_u64.rotr32L = rotr32L;
|
|
1099
|
+
const rotlSH = (h, l, s) => h << s | l >>> 32 - s;
|
|
1100
|
+
_u64.rotlSH = rotlSH;
|
|
1101
|
+
const rotlSL = (h, l, s) => l << s | h >>> 32 - s;
|
|
1102
|
+
_u64.rotlSL = rotlSL;
|
|
1103
|
+
const rotlBH = (h, l, s) => l << s - 32 | h >>> 64 - s;
|
|
1104
|
+
_u64.rotlBH = rotlBH;
|
|
1105
|
+
const rotlBL = (h, l, s) => h << s - 32 | l >>> 64 - s;
|
|
1106
|
+
_u64.rotlBL = rotlBL;
|
|
1107
|
+
function add(Ah, Al, Bh, Bl) {
|
|
1108
|
+
const l = (Al >>> 0) + (Bl >>> 0);
|
|
1109
|
+
return { h: Ah + Bh + (l / 2 ** 32 | 0) | 0, l: l | 0 };
|
|
1110
|
+
}
|
|
1111
|
+
const add3L = (Al, Bl, Cl) => (Al >>> 0) + (Bl >>> 0) + (Cl >>> 0);
|
|
1112
|
+
_u64.add3L = add3L;
|
|
1113
|
+
const add3H = (low, Ah, Bh, Ch) => Ah + Bh + Ch + (low / 2 ** 32 | 0) | 0;
|
|
1114
|
+
_u64.add3H = add3H;
|
|
1115
|
+
const add4L = (Al, Bl, Cl, Dl) => (Al >>> 0) + (Bl >>> 0) + (Cl >>> 0) + (Dl >>> 0);
|
|
1116
|
+
_u64.add4L = add4L;
|
|
1117
|
+
const add4H = (low, Ah, Bh, Ch, Dh) => Ah + Bh + Ch + Dh + (low / 2 ** 32 | 0) | 0;
|
|
1118
|
+
_u64.add4H = add4H;
|
|
1119
|
+
const add5L = (Al, Bl, Cl, Dl, El) => (Al >>> 0) + (Bl >>> 0) + (Cl >>> 0) + (Dl >>> 0) + (El >>> 0);
|
|
1120
|
+
_u64.add5L = add5L;
|
|
1121
|
+
const add5H = (low, Ah, Bh, Ch, Dh, Eh) => Ah + Bh + Ch + Dh + Eh + (low / 2 ** 32 | 0) | 0;
|
|
1122
|
+
_u64.add5H = add5H;
|
|
1123
|
+
const u64 = {
|
|
1124
|
+
fromBig,
|
|
1125
|
+
split: split$1,
|
|
1126
|
+
toBig,
|
|
1127
|
+
shrSH,
|
|
1128
|
+
shrSL,
|
|
1129
|
+
rotrSH,
|
|
1130
|
+
rotrSL,
|
|
1131
|
+
rotrBH,
|
|
1132
|
+
rotrBL,
|
|
1133
|
+
rotr32H,
|
|
1134
|
+
rotr32L,
|
|
1135
|
+
rotlSH,
|
|
1136
|
+
rotlSL,
|
|
1137
|
+
rotlBH,
|
|
1138
|
+
rotlBL,
|
|
1139
|
+
add,
|
|
1140
|
+
add3L,
|
|
1141
|
+
add3H,
|
|
1142
|
+
add4L,
|
|
1143
|
+
add4H,
|
|
1144
|
+
add5H,
|
|
1145
|
+
add5L
|
|
1146
|
+
};
|
|
1147
|
+
_u64.default = u64;
|
|
1148
|
+
var utils = {};
|
|
1149
|
+
var crypto = {};
|
|
1150
|
+
Object.defineProperty(crypto, "__esModule", { value: true });
|
|
1151
|
+
crypto.crypto = void 0;
|
|
1152
|
+
crypto.crypto = typeof globalThis === "object" && "crypto" in globalThis ? globalThis.crypto : void 0;
|
|
1153
|
+
(function(exports2) {
|
|
1154
|
+
/*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */
|
|
1155
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
1156
|
+
exports2.Hash = exports2.nextTick = exports2.byteSwapIfBE = exports2.byteSwap = exports2.isLE = exports2.rotl = exports2.rotr = exports2.createView = exports2.u32 = exports2.u8 = void 0;
|
|
1157
|
+
exports2.isBytes = isBytes2;
|
|
1158
|
+
exports2.byteSwap32 = byteSwap32;
|
|
1159
|
+
exports2.bytesToHex = bytesToHex;
|
|
1160
|
+
exports2.hexToBytes = hexToBytes;
|
|
1161
|
+
exports2.asyncLoop = asyncLoop;
|
|
1162
|
+
exports2.utf8ToBytes = utf8ToBytes;
|
|
1163
|
+
exports2.toBytes = toBytes;
|
|
1164
|
+
exports2.concatBytes = concatBytes;
|
|
1165
|
+
exports2.checkOpts = checkOpts;
|
|
1166
|
+
exports2.wrapConstructor = wrapConstructor;
|
|
1167
|
+
exports2.wrapConstructorWithOpts = wrapConstructorWithOpts;
|
|
1168
|
+
exports2.wrapXOFConstructorWithOpts = wrapXOFConstructorWithOpts;
|
|
1169
|
+
exports2.randomBytes = randomBytes;
|
|
1170
|
+
const crypto_1 = crypto;
|
|
1171
|
+
const _assert_js_12 = _assert;
|
|
1172
|
+
function isBytes2(a) {
|
|
1173
|
+
return a instanceof Uint8Array || ArrayBuffer.isView(a) && a.constructor.name === "Uint8Array";
|
|
1174
|
+
}
|
|
1175
|
+
const u8 = (arr) => new Uint8Array(arr.buffer, arr.byteOffset, arr.byteLength);
|
|
1176
|
+
exports2.u8 = u8;
|
|
1177
|
+
const u32 = (arr) => new Uint32Array(arr.buffer, arr.byteOffset, Math.floor(arr.byteLength / 4));
|
|
1178
|
+
exports2.u32 = u32;
|
|
1179
|
+
const createView = (arr) => new DataView(arr.buffer, arr.byteOffset, arr.byteLength);
|
|
1180
|
+
exports2.createView = createView;
|
|
1181
|
+
const rotr = (word, shift2) => word << 32 - shift2 | word >>> shift2;
|
|
1182
|
+
exports2.rotr = rotr;
|
|
1183
|
+
const rotl = (word, shift2) => word << shift2 | word >>> 32 - shift2 >>> 0;
|
|
1184
|
+
exports2.rotl = rotl;
|
|
1185
|
+
exports2.isLE = (() => new Uint8Array(new Uint32Array([287454020]).buffer)[0] === 68)();
|
|
1186
|
+
const byteSwap = (word) => word << 24 & 4278190080 | word << 8 & 16711680 | word >>> 8 & 65280 | word >>> 24 & 255;
|
|
1187
|
+
exports2.byteSwap = byteSwap;
|
|
1188
|
+
exports2.byteSwapIfBE = exports2.isLE ? (n) => n : (n) => (0, exports2.byteSwap)(n);
|
|
1189
|
+
function byteSwap32(arr) {
|
|
1190
|
+
for (let i = 0; i < arr.length; i++) {
|
|
1191
|
+
arr[i] = (0, exports2.byteSwap)(arr[i]);
|
|
1192
|
+
}
|
|
1193
|
+
}
|
|
1194
|
+
const hexes = /* @__PURE__ */ Array.from({ length: 256 }, (_, i) => i.toString(16).padStart(2, "0"));
|
|
1195
|
+
function bytesToHex(bytes) {
|
|
1196
|
+
(0, _assert_js_12.abytes)(bytes);
|
|
1197
|
+
let hex = "";
|
|
1198
|
+
for (let i = 0; i < bytes.length; i++) {
|
|
1199
|
+
hex += hexes[bytes[i]];
|
|
1200
|
+
}
|
|
1201
|
+
return hex;
|
|
1202
|
+
}
|
|
1203
|
+
const asciis = { _0: 48, _9: 57, A: 65, F: 70, a: 97, f: 102 };
|
|
1204
|
+
function asciiToBase16(ch) {
|
|
1205
|
+
if (ch >= asciis._0 && ch <= asciis._9)
|
|
1206
|
+
return ch - asciis._0;
|
|
1207
|
+
if (ch >= asciis.A && ch <= asciis.F)
|
|
1208
|
+
return ch - (asciis.A - 10);
|
|
1209
|
+
if (ch >= asciis.a && ch <= asciis.f)
|
|
1210
|
+
return ch - (asciis.a - 10);
|
|
1211
|
+
return;
|
|
1212
|
+
}
|
|
1213
|
+
function hexToBytes(hex) {
|
|
1214
|
+
if (typeof hex !== "string")
|
|
1215
|
+
throw new Error("hex string expected, got " + typeof hex);
|
|
1216
|
+
const hl = hex.length;
|
|
1217
|
+
const al = hl / 2;
|
|
1218
|
+
if (hl % 2)
|
|
1219
|
+
throw new Error("hex string expected, got unpadded hex of length " + hl);
|
|
1220
|
+
const array2 = new Uint8Array(al);
|
|
1221
|
+
for (let ai = 0, hi = 0; ai < al; ai++, hi += 2) {
|
|
1222
|
+
const n1 = asciiToBase16(hex.charCodeAt(hi));
|
|
1223
|
+
const n2 = asciiToBase16(hex.charCodeAt(hi + 1));
|
|
1224
|
+
if (n1 === void 0 || n2 === void 0) {
|
|
1225
|
+
const char = hex[hi] + hex[hi + 1];
|
|
1226
|
+
throw new Error('hex string expected, got non-hex character "' + char + '" at index ' + hi);
|
|
1227
|
+
}
|
|
1228
|
+
array2[ai] = n1 * 16 + n2;
|
|
1229
|
+
}
|
|
1230
|
+
return array2;
|
|
1231
|
+
}
|
|
1232
|
+
const nextTick = async () => {
|
|
1233
|
+
};
|
|
1234
|
+
exports2.nextTick = nextTick;
|
|
1235
|
+
async function asyncLoop(iters, tick, cb) {
|
|
1236
|
+
let ts = Date.now();
|
|
1237
|
+
for (let i = 0; i < iters; i++) {
|
|
1238
|
+
cb(i);
|
|
1239
|
+
const diff = Date.now() - ts;
|
|
1240
|
+
if (diff >= 0 && diff < tick)
|
|
1241
|
+
continue;
|
|
1242
|
+
await (0, exports2.nextTick)();
|
|
1243
|
+
ts += diff;
|
|
1244
|
+
}
|
|
1245
|
+
}
|
|
1246
|
+
function utf8ToBytes(str) {
|
|
1247
|
+
if (typeof str !== "string")
|
|
1248
|
+
throw new Error("utf8ToBytes expected string, got " + typeof str);
|
|
1249
|
+
return new Uint8Array(new TextEncoder().encode(str));
|
|
1250
|
+
}
|
|
1251
|
+
function toBytes(data) {
|
|
1252
|
+
if (typeof data === "string")
|
|
1253
|
+
data = utf8ToBytes(data);
|
|
1254
|
+
(0, _assert_js_12.abytes)(data);
|
|
1255
|
+
return data;
|
|
1256
|
+
}
|
|
1257
|
+
function concatBytes(...arrays) {
|
|
1258
|
+
let sum = 0;
|
|
1259
|
+
for (let i = 0; i < arrays.length; i++) {
|
|
1260
|
+
const a = arrays[i];
|
|
1261
|
+
(0, _assert_js_12.abytes)(a);
|
|
1262
|
+
sum += a.length;
|
|
1263
|
+
}
|
|
1264
|
+
const res = new Uint8Array(sum);
|
|
1265
|
+
for (let i = 0, pad = 0; i < arrays.length; i++) {
|
|
1266
|
+
const a = arrays[i];
|
|
1267
|
+
res.set(a, pad);
|
|
1268
|
+
pad += a.length;
|
|
1269
|
+
}
|
|
1270
|
+
return res;
|
|
1271
|
+
}
|
|
1272
|
+
class Hash2 {
|
|
1273
|
+
// Safe version that clones internal state
|
|
1274
|
+
clone() {
|
|
1275
|
+
return this._cloneInto();
|
|
1276
|
+
}
|
|
1277
|
+
}
|
|
1278
|
+
exports2.Hash = Hash2;
|
|
1279
|
+
function checkOpts(defaults2, opts) {
|
|
1280
|
+
if (opts !== void 0 && {}.toString.call(opts) !== "[object Object]")
|
|
1281
|
+
throw new Error("Options should be object or undefined");
|
|
1282
|
+
const merged = Object.assign(defaults2, opts);
|
|
1283
|
+
return merged;
|
|
1284
|
+
}
|
|
1285
|
+
function wrapConstructor(hashCons) {
|
|
1286
|
+
const hashC = (msg) => hashCons().update(toBytes(msg)).digest();
|
|
1287
|
+
const tmp = hashCons();
|
|
1288
|
+
hashC.outputLen = tmp.outputLen;
|
|
1289
|
+
hashC.blockLen = tmp.blockLen;
|
|
1290
|
+
hashC.create = () => hashCons();
|
|
1291
|
+
return hashC;
|
|
1292
|
+
}
|
|
1293
|
+
function wrapConstructorWithOpts(hashCons) {
|
|
1294
|
+
const hashC = (msg, opts) => hashCons(opts).update(toBytes(msg)).digest();
|
|
1295
|
+
const tmp = hashCons({});
|
|
1296
|
+
hashC.outputLen = tmp.outputLen;
|
|
1297
|
+
hashC.blockLen = tmp.blockLen;
|
|
1298
|
+
hashC.create = (opts) => hashCons(opts);
|
|
1299
|
+
return hashC;
|
|
1300
|
+
}
|
|
1301
|
+
function wrapXOFConstructorWithOpts(hashCons) {
|
|
1302
|
+
const hashC = (msg, opts) => hashCons(opts).update(toBytes(msg)).digest();
|
|
1303
|
+
const tmp = hashCons({});
|
|
1304
|
+
hashC.outputLen = tmp.outputLen;
|
|
1305
|
+
hashC.blockLen = tmp.blockLen;
|
|
1306
|
+
hashC.create = (opts) => hashCons(opts);
|
|
1307
|
+
return hashC;
|
|
1308
|
+
}
|
|
1309
|
+
function randomBytes(bytesLength = 32) {
|
|
1310
|
+
if (crypto_1.crypto && typeof crypto_1.crypto.getRandomValues === "function") {
|
|
1311
|
+
return crypto_1.crypto.getRandomValues(new Uint8Array(bytesLength));
|
|
1312
|
+
}
|
|
1313
|
+
if (crypto_1.crypto && typeof crypto_1.crypto.randomBytes === "function") {
|
|
1314
|
+
return crypto_1.crypto.randomBytes(bytesLength);
|
|
1315
|
+
}
|
|
1316
|
+
throw new Error("crypto.getRandomValues must be defined");
|
|
1317
|
+
}
|
|
1318
|
+
})(utils);
|
|
1319
|
+
Object.defineProperty(sha3$1, "__esModule", { value: true });
|
|
1320
|
+
sha3$1.shake256 = sha3$1.shake128 = sha3$1.keccak_512 = sha3$1.keccak_384 = sha3$1.keccak_256 = sha3$1.keccak_224 = sha3$1.sha3_512 = sha3$1.sha3_384 = sha3$1.sha3_256 = sha3$1.sha3_224 = sha3$1.Keccak = void 0;
|
|
1321
|
+
sha3$1.keccakP = keccakP;
|
|
1322
|
+
const _assert_js_1 = _assert;
|
|
1323
|
+
const _u64_js_1 = _u64;
|
|
1324
|
+
const utils_js_1 = utils;
|
|
1325
|
+
const SHA3_PI = [];
|
|
1326
|
+
const SHA3_ROTL = [];
|
|
1327
|
+
const _SHA3_IOTA = [];
|
|
1328
|
+
const _0n = /* @__PURE__ */ BigInt(0);
|
|
1329
|
+
const _1n = /* @__PURE__ */ BigInt(1);
|
|
1330
|
+
const _2n = /* @__PURE__ */ BigInt(2);
|
|
1331
|
+
const _7n = /* @__PURE__ */ BigInt(7);
|
|
1332
|
+
const _256n = /* @__PURE__ */ BigInt(256);
|
|
1333
|
+
const _0x71n = /* @__PURE__ */ BigInt(113);
|
|
1334
|
+
for (let round = 0, R = _1n, x = 1, y = 0; round < 24; round++) {
|
|
1335
|
+
[x, y] = [y, (2 * x + 3 * y) % 5];
|
|
1336
|
+
SHA3_PI.push(2 * (5 * y + x));
|
|
1337
|
+
SHA3_ROTL.push((round + 1) * (round + 2) / 2 % 64);
|
|
1338
|
+
let t = _0n;
|
|
1339
|
+
for (let j = 0; j < 7; j++) {
|
|
1340
|
+
R = (R << _1n ^ (R >> _7n) * _0x71n) % _256n;
|
|
1341
|
+
if (R & _2n)
|
|
1342
|
+
t ^= _1n << (_1n << /* @__PURE__ */ BigInt(j)) - _1n;
|
|
1343
|
+
}
|
|
1344
|
+
_SHA3_IOTA.push(t);
|
|
1345
|
+
}
|
|
1346
|
+
const [SHA3_IOTA_H, SHA3_IOTA_L] = /* @__PURE__ */ (0, _u64_js_1.split)(_SHA3_IOTA, true);
|
|
1347
|
+
const rotlH = (h, l, s) => s > 32 ? (0, _u64_js_1.rotlBH)(h, l, s) : (0, _u64_js_1.rotlSH)(h, l, s);
|
|
1348
|
+
const rotlL = (h, l, s) => s > 32 ? (0, _u64_js_1.rotlBL)(h, l, s) : (0, _u64_js_1.rotlSL)(h, l, s);
|
|
1349
|
+
function keccakP(s, rounds = 24) {
|
|
1350
|
+
const B = new Uint32Array(5 * 2);
|
|
1351
|
+
for (let round = 24 - rounds; round < 24; round++) {
|
|
1352
|
+
for (let x = 0; x < 10; x++)
|
|
1353
|
+
B[x] = s[x] ^ s[x + 10] ^ s[x + 20] ^ s[x + 30] ^ s[x + 40];
|
|
1354
|
+
for (let x = 0; x < 10; x += 2) {
|
|
1355
|
+
const idx1 = (x + 8) % 10;
|
|
1356
|
+
const idx0 = (x + 2) % 10;
|
|
1357
|
+
const B0 = B[idx0];
|
|
1358
|
+
const B1 = B[idx0 + 1];
|
|
1359
|
+
const Th = rotlH(B0, B1, 1) ^ B[idx1];
|
|
1360
|
+
const Tl = rotlL(B0, B1, 1) ^ B[idx1 + 1];
|
|
1361
|
+
for (let y = 0; y < 50; y += 10) {
|
|
1362
|
+
s[x + y] ^= Th;
|
|
1363
|
+
s[x + y + 1] ^= Tl;
|
|
1364
|
+
}
|
|
1365
|
+
}
|
|
1366
|
+
let curH = s[2];
|
|
1367
|
+
let curL = s[3];
|
|
1368
|
+
for (let t = 0; t < 24; t++) {
|
|
1369
|
+
const shift2 = SHA3_ROTL[t];
|
|
1370
|
+
const Th = rotlH(curH, curL, shift2);
|
|
1371
|
+
const Tl = rotlL(curH, curL, shift2);
|
|
1372
|
+
const PI = SHA3_PI[t];
|
|
1373
|
+
curH = s[PI];
|
|
1374
|
+
curL = s[PI + 1];
|
|
1375
|
+
s[PI] = Th;
|
|
1376
|
+
s[PI + 1] = Tl;
|
|
1377
|
+
}
|
|
1378
|
+
for (let y = 0; y < 50; y += 10) {
|
|
1379
|
+
for (let x = 0; x < 10; x++)
|
|
1380
|
+
B[x] = s[y + x];
|
|
1381
|
+
for (let x = 0; x < 10; x++)
|
|
1382
|
+
s[y + x] ^= ~B[(x + 2) % 10] & B[(x + 4) % 10];
|
|
1383
|
+
}
|
|
1384
|
+
s[0] ^= SHA3_IOTA_H[round];
|
|
1385
|
+
s[1] ^= SHA3_IOTA_L[round];
|
|
1386
|
+
}
|
|
1387
|
+
B.fill(0);
|
|
1388
|
+
}
|
|
1389
|
+
class Keccak extends utils_js_1.Hash {
|
|
1390
|
+
// NOTE: we accept arguments in bytes instead of bits here.
|
|
1391
|
+
constructor(blockLen, suffix, outputLen, enableXOF = false, rounds = 24) {
|
|
1392
|
+
super();
|
|
1393
|
+
this.blockLen = blockLen;
|
|
1394
|
+
this.suffix = suffix;
|
|
1395
|
+
this.outputLen = outputLen;
|
|
1396
|
+
this.enableXOF = enableXOF;
|
|
1397
|
+
this.rounds = rounds;
|
|
1398
|
+
this.pos = 0;
|
|
1399
|
+
this.posOut = 0;
|
|
1400
|
+
this.finished = false;
|
|
1401
|
+
this.destroyed = false;
|
|
1402
|
+
(0, _assert_js_1.anumber)(outputLen);
|
|
1403
|
+
if (0 >= this.blockLen || this.blockLen >= 200)
|
|
1404
|
+
throw new Error("Sha3 supports only keccak-f1600 function");
|
|
1405
|
+
this.state = new Uint8Array(200);
|
|
1406
|
+
this.state32 = (0, utils_js_1.u32)(this.state);
|
|
1407
|
+
}
|
|
1408
|
+
keccak() {
|
|
1409
|
+
if (!utils_js_1.isLE)
|
|
1410
|
+
(0, utils_js_1.byteSwap32)(this.state32);
|
|
1411
|
+
keccakP(this.state32, this.rounds);
|
|
1412
|
+
if (!utils_js_1.isLE)
|
|
1413
|
+
(0, utils_js_1.byteSwap32)(this.state32);
|
|
1414
|
+
this.posOut = 0;
|
|
1415
|
+
this.pos = 0;
|
|
1416
|
+
}
|
|
1417
|
+
update(data) {
|
|
1418
|
+
(0, _assert_js_1.aexists)(this);
|
|
1419
|
+
const { blockLen, state } = this;
|
|
1420
|
+
data = (0, utils_js_1.toBytes)(data);
|
|
1421
|
+
const len = data.length;
|
|
1422
|
+
for (let pos = 0; pos < len; ) {
|
|
1423
|
+
const take = Math.min(blockLen - this.pos, len - pos);
|
|
1424
|
+
for (let i = 0; i < take; i++)
|
|
1425
|
+
state[this.pos++] ^= data[pos++];
|
|
1426
|
+
if (this.pos === blockLen)
|
|
1427
|
+
this.keccak();
|
|
1428
|
+
}
|
|
1429
|
+
return this;
|
|
1430
|
+
}
|
|
1431
|
+
finish() {
|
|
1432
|
+
if (this.finished)
|
|
1433
|
+
return;
|
|
1434
|
+
this.finished = true;
|
|
1435
|
+
const { state, suffix, pos, blockLen } = this;
|
|
1436
|
+
state[pos] ^= suffix;
|
|
1437
|
+
if ((suffix & 128) !== 0 && pos === blockLen - 1)
|
|
1438
|
+
this.keccak();
|
|
1439
|
+
state[blockLen - 1] ^= 128;
|
|
1440
|
+
this.keccak();
|
|
1441
|
+
}
|
|
1442
|
+
writeInto(out) {
|
|
1443
|
+
(0, _assert_js_1.aexists)(this, false);
|
|
1444
|
+
(0, _assert_js_1.abytes)(out);
|
|
1445
|
+
this.finish();
|
|
1446
|
+
const bufferOut = this.state;
|
|
1447
|
+
const { blockLen } = this;
|
|
1448
|
+
for (let pos = 0, len = out.length; pos < len; ) {
|
|
1449
|
+
if (this.posOut >= blockLen)
|
|
1450
|
+
this.keccak();
|
|
1451
|
+
const take = Math.min(blockLen - this.posOut, len - pos);
|
|
1452
|
+
out.set(bufferOut.subarray(this.posOut, this.posOut + take), pos);
|
|
1453
|
+
this.posOut += take;
|
|
1454
|
+
pos += take;
|
|
1455
|
+
}
|
|
1456
|
+
return out;
|
|
1457
|
+
}
|
|
1458
|
+
xofInto(out) {
|
|
1459
|
+
if (!this.enableXOF)
|
|
1460
|
+
throw new Error("XOF is not possible for this instance");
|
|
1461
|
+
return this.writeInto(out);
|
|
1462
|
+
}
|
|
1463
|
+
xof(bytes) {
|
|
1464
|
+
(0, _assert_js_1.anumber)(bytes);
|
|
1465
|
+
return this.xofInto(new Uint8Array(bytes));
|
|
1466
|
+
}
|
|
1467
|
+
digestInto(out) {
|
|
1468
|
+
(0, _assert_js_1.aoutput)(out, this);
|
|
1469
|
+
if (this.finished)
|
|
1470
|
+
throw new Error("digest() was already called");
|
|
1471
|
+
this.writeInto(out);
|
|
1472
|
+
this.destroy();
|
|
1473
|
+
return out;
|
|
1474
|
+
}
|
|
1475
|
+
digest() {
|
|
1476
|
+
return this.digestInto(new Uint8Array(this.outputLen));
|
|
1477
|
+
}
|
|
1478
|
+
destroy() {
|
|
1479
|
+
this.destroyed = true;
|
|
1480
|
+
this.state.fill(0);
|
|
1481
|
+
}
|
|
1482
|
+
_cloneInto(to) {
|
|
1483
|
+
const { blockLen, suffix, outputLen, rounds, enableXOF } = this;
|
|
1484
|
+
to || (to = new Keccak(blockLen, suffix, outputLen, enableXOF, rounds));
|
|
1485
|
+
to.state32.set(this.state32);
|
|
1486
|
+
to.pos = this.pos;
|
|
1487
|
+
to.posOut = this.posOut;
|
|
1488
|
+
to.finished = this.finished;
|
|
1489
|
+
to.rounds = rounds;
|
|
1490
|
+
to.suffix = suffix;
|
|
1491
|
+
to.outputLen = outputLen;
|
|
1492
|
+
to.enableXOF = enableXOF;
|
|
1493
|
+
to.destroyed = this.destroyed;
|
|
1494
|
+
return to;
|
|
1495
|
+
}
|
|
1496
|
+
}
|
|
1497
|
+
sha3$1.Keccak = Keccak;
|
|
1498
|
+
const gen = (suffix, blockLen, outputLen) => (0, utils_js_1.wrapConstructor)(() => new Keccak(blockLen, suffix, outputLen));
|
|
1499
|
+
sha3$1.sha3_224 = gen(6, 144, 224 / 8);
|
|
1500
|
+
sha3$1.sha3_256 = gen(6, 136, 256 / 8);
|
|
1501
|
+
sha3$1.sha3_384 = gen(6, 104, 384 / 8);
|
|
1502
|
+
sha3$1.sha3_512 = gen(6, 72, 512 / 8);
|
|
1503
|
+
sha3$1.keccak_224 = gen(1, 144, 224 / 8);
|
|
1504
|
+
sha3$1.keccak_256 = gen(1, 136, 256 / 8);
|
|
1505
|
+
sha3$1.keccak_384 = gen(1, 104, 384 / 8);
|
|
1506
|
+
sha3$1.keccak_512 = gen(1, 72, 512 / 8);
|
|
1507
|
+
const genShake = (suffix, blockLen, outputLen) => (0, utils_js_1.wrapXOFConstructorWithOpts)((opts = {}) => new Keccak(blockLen, suffix, opts.dkLen === void 0 ? outputLen : opts.dkLen, true));
|
|
1508
|
+
sha3$1.shake128 = genShake(31, 168, 128 / 8);
|
|
1509
|
+
sha3$1.shake256 = genShake(31, 136, 256 / 8);
|
|
1510
|
+
const { sha3_512: sha3 } = sha3$1;
|
|
1511
|
+
const defaultLength = 24;
|
|
1512
|
+
const bigLength = 32;
|
|
1513
|
+
const createEntropy = (length = 4, random = Math.random) => {
|
|
1514
|
+
let entropy = "";
|
|
1515
|
+
while (entropy.length < length) {
|
|
1516
|
+
entropy = entropy + Math.floor(random() * 36).toString(36);
|
|
1517
|
+
}
|
|
1518
|
+
return entropy;
|
|
1519
|
+
};
|
|
1520
|
+
function bufToBigInt(buf) {
|
|
1521
|
+
let bits = 8n;
|
|
1522
|
+
let value = 0n;
|
|
1523
|
+
for (const i of buf.values()) {
|
|
1524
|
+
const bi = BigInt(i);
|
|
1525
|
+
value = (value << bits) + bi;
|
|
1526
|
+
}
|
|
1527
|
+
return value;
|
|
1528
|
+
}
|
|
1529
|
+
const hash = (input = "") => {
|
|
1530
|
+
return bufToBigInt(sha3(input)).toString(36).slice(1);
|
|
1531
|
+
};
|
|
1532
|
+
const alphabet = Array.from(
|
|
1533
|
+
{ length: 26 },
|
|
1534
|
+
(x, i) => String.fromCharCode(i + 97)
|
|
1535
|
+
);
|
|
1536
|
+
const randomLetter = (random) => alphabet[Math.floor(random() * alphabet.length)];
|
|
1537
|
+
const createFingerprint = ({
|
|
1538
|
+
globalObj = typeof commonjsGlobal !== "undefined" ? commonjsGlobal : typeof window !== "undefined" ? window : {},
|
|
1539
|
+
random = Math.random
|
|
1540
|
+
} = {}) => {
|
|
1541
|
+
const globals = Object.keys(globalObj).toString();
|
|
1542
|
+
const sourceString = globals.length ? globals + createEntropy(bigLength, random) : createEntropy(bigLength, random);
|
|
1543
|
+
return hash(sourceString).substring(0, bigLength);
|
|
1544
|
+
};
|
|
1545
|
+
const createCounter = (count) => () => {
|
|
1546
|
+
return count++;
|
|
1547
|
+
};
|
|
1548
|
+
const initialCountMax = 476782367;
|
|
1549
|
+
const init$1 = ({
|
|
1550
|
+
// Fallback if the user does not pass in a CSPRNG. This should be OK
|
|
1551
|
+
// because we don't rely solely on the random number generator for entropy.
|
|
1552
|
+
// We also use the host fingerprint, current time, and a session counter.
|
|
1553
|
+
random = Math.random,
|
|
1554
|
+
counter = createCounter(Math.floor(random() * initialCountMax)),
|
|
1555
|
+
length = defaultLength,
|
|
1556
|
+
fingerprint = createFingerprint({ random })
|
|
1557
|
+
} = {}) => {
|
|
1558
|
+
return function cuid2() {
|
|
1559
|
+
const firstLetter = randomLetter(random);
|
|
1560
|
+
const time = Date.now().toString(36);
|
|
1561
|
+
const count = counter().toString(36);
|
|
1562
|
+
const salt = createEntropy(length, random);
|
|
1563
|
+
const hashInput = `${time + salt + count + fingerprint}`;
|
|
1564
|
+
return `${firstLetter + hash(hashInput).substring(1, length)}`;
|
|
1565
|
+
};
|
|
1566
|
+
};
|
|
1567
|
+
const createId$1 = init$1();
|
|
1568
|
+
const isCuid$1 = (id, { minLength = 2, maxLength = bigLength } = {}) => {
|
|
1569
|
+
const length = id.length;
|
|
1570
|
+
const regex2 = /^[0-9a-z]+$/;
|
|
1571
|
+
try {
|
|
1572
|
+
if (typeof id === "string" && length >= minLength && length <= maxLength && regex2.test(id))
|
|
1573
|
+
return true;
|
|
1574
|
+
} finally {
|
|
1575
|
+
}
|
|
1576
|
+
return false;
|
|
1577
|
+
};
|
|
1578
|
+
src.getConstants = () => ({ defaultLength, bigLength });
|
|
1579
|
+
src.init = init$1;
|
|
1580
|
+
src.createId = createId$1;
|
|
1581
|
+
src.bufToBigInt = bufToBigInt;
|
|
1582
|
+
src.createCounter = createCounter;
|
|
1583
|
+
src.createFingerprint = createFingerprint;
|
|
1584
|
+
src.isCuid = isCuid$1;
|
|
1585
|
+
const { createId, init, getConstants, isCuid } = src;
|
|
1586
|
+
var createId_1 = createId;
|
|
1008
1587
|
const _export_sfc = (sfc, props2) => {
|
|
1009
1588
|
const target = sfc.__vccOpts || sfc;
|
|
1010
1589
|
for (const [key, val] of props2) {
|
|
@@ -1975,7 +2554,7 @@ var DiscussionEvents = /* @__PURE__ */ ((DiscussionEvents2) => {
|
|
|
1975
2554
|
return DiscussionEvents2;
|
|
1976
2555
|
})(DiscussionEvents || {});
|
|
1977
2556
|
var discussion_default = DiscussionEvents;
|
|
1978
|
-
const
|
|
2557
|
+
const UserAvatar_vue_vue_type_style_index_0_scoped_05c20e2a_lang = "";
|
|
1979
2558
|
function Cache(maxSize) {
|
|
1980
2559
|
this._maxSize = maxSize;
|
|
1981
2560
|
this.clear();
|
|
@@ -2578,40 +3157,40 @@ class ReferenceSet extends Set {
|
|
|
2578
3157
|
return next;
|
|
2579
3158
|
}
|
|
2580
3159
|
}
|
|
2581
|
-
function clone$2(
|
|
2582
|
-
if (isSchema(
|
|
2583
|
-
return
|
|
2584
|
-
if (seen.has(
|
|
2585
|
-
return seen.get(
|
|
3160
|
+
function clone$2(src2, seen = /* @__PURE__ */ new Map()) {
|
|
3161
|
+
if (isSchema(src2) || !src2 || typeof src2 !== "object")
|
|
3162
|
+
return src2;
|
|
3163
|
+
if (seen.has(src2))
|
|
3164
|
+
return seen.get(src2);
|
|
2586
3165
|
let copy2;
|
|
2587
|
-
if (
|
|
2588
|
-
copy2 = new Date(
|
|
2589
|
-
seen.set(
|
|
2590
|
-
} else if (
|
|
2591
|
-
copy2 = new RegExp(
|
|
2592
|
-
seen.set(
|
|
2593
|
-
} else if (Array.isArray(
|
|
2594
|
-
copy2 = new Array(
|
|
2595
|
-
seen.set(
|
|
2596
|
-
for (let i = 0; i <
|
|
2597
|
-
copy2[i] = clone$2(
|
|
2598
|
-
} else if (
|
|
3166
|
+
if (src2 instanceof Date) {
|
|
3167
|
+
copy2 = new Date(src2.getTime());
|
|
3168
|
+
seen.set(src2, copy2);
|
|
3169
|
+
} else if (src2 instanceof RegExp) {
|
|
3170
|
+
copy2 = new RegExp(src2);
|
|
3171
|
+
seen.set(src2, copy2);
|
|
3172
|
+
} else if (Array.isArray(src2)) {
|
|
3173
|
+
copy2 = new Array(src2.length);
|
|
3174
|
+
seen.set(src2, copy2);
|
|
3175
|
+
for (let i = 0; i < src2.length; i++)
|
|
3176
|
+
copy2[i] = clone$2(src2[i], seen);
|
|
3177
|
+
} else if (src2 instanceof Map) {
|
|
2599
3178
|
copy2 = /* @__PURE__ */ new Map();
|
|
2600
|
-
seen.set(
|
|
2601
|
-
for (const [k, v] of
|
|
3179
|
+
seen.set(src2, copy2);
|
|
3180
|
+
for (const [k, v] of src2.entries())
|
|
2602
3181
|
copy2.set(k, clone$2(v, seen));
|
|
2603
|
-
} else if (
|
|
3182
|
+
} else if (src2 instanceof Set) {
|
|
2604
3183
|
copy2 = /* @__PURE__ */ new Set();
|
|
2605
|
-
seen.set(
|
|
2606
|
-
for (const v of
|
|
3184
|
+
seen.set(src2, copy2);
|
|
3185
|
+
for (const v of src2)
|
|
2607
3186
|
copy2.add(clone$2(v, seen));
|
|
2608
|
-
} else if (
|
|
3187
|
+
} else if (src2 instanceof Object) {
|
|
2609
3188
|
copy2 = {};
|
|
2610
|
-
seen.set(
|
|
2611
|
-
for (const [k, v] of Object.entries(
|
|
3189
|
+
seen.set(src2, copy2);
|
|
3190
|
+
for (const [k, v] of Object.entries(src2))
|
|
2612
3191
|
copy2[k] = clone$2(v, seen);
|
|
2613
3192
|
} else {
|
|
2614
|
-
throw Error(`Unable to clone ${
|
|
3193
|
+
throw Error(`Unable to clone ${src2}`);
|
|
2615
3194
|
}
|
|
2616
3195
|
return copy2;
|
|
2617
3196
|
}
|
|
@@ -3325,10 +3904,10 @@ function baseSlice$1(array2, start, end) {
|
|
|
3325
3904
|
return result;
|
|
3326
3905
|
}
|
|
3327
3906
|
var _baseSlice = baseSlice$1;
|
|
3328
|
-
const
|
|
3329
|
-
const
|
|
3330
|
-
const
|
|
3331
|
-
const
|
|
3907
|
+
const CommentHeader_vue_vue_type_style_index_0_scoped_e096b5c1_lang = "";
|
|
3908
|
+
const CommentPreview_vue_vue_type_style_index_0_scoped_39c90040_lang = "";
|
|
3909
|
+
const index_vue_vue_type_style_index_0_scoped_242e5698_lang = "";
|
|
3910
|
+
const ThreadList_vue_vue_type_style_index_0_scoped_69125c48_lang = "";
|
|
3332
3911
|
function commonjsRequire(path) {
|
|
3333
3912
|
throw new Error('Could not dynamically require "' + path + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
|
|
3334
3913
|
}
|
|
@@ -3682,18 +4261,18 @@ var pluralize = { exports: {} };
|
|
|
3682
4261
|
return pluralize2;
|
|
3683
4262
|
});
|
|
3684
4263
|
})(pluralize);
|
|
3685
|
-
const
|
|
3686
|
-
const
|
|
4264
|
+
const UnseenDivider_vue_vue_type_style_index_0_scoped_4f201343_lang = "";
|
|
4265
|
+
const index_vue_vue_type_style_index_0_scoped_af4c1fdd_lang = "";
|
|
3687
4266
|
const useConfirmationDialog = () => {
|
|
3688
4267
|
const eventBus = vue.inject("$eventBus");
|
|
3689
4268
|
return (opts) => {
|
|
3690
4269
|
eventBus.channel("app").emit("showConfirmationModal", opts);
|
|
3691
4270
|
};
|
|
3692
4271
|
};
|
|
3693
|
-
const
|
|
3694
|
-
const
|
|
3695
|
-
const
|
|
3696
|
-
const
|
|
4272
|
+
const index_vue_vue_type_style_index_0_scoped_2eb30ac0_lang = "";
|
|
4273
|
+
const ElementDiscussion_vue_vue_type_style_index_0_scoped_d9ba0a21_lang = "";
|
|
4274
|
+
const ContentElement_vue_vue_type_style_index_0_scoped_9a9272e0_lang = "";
|
|
4275
|
+
const ContainedContent_vue_vue_type_style_index_0_scoped_b97ee2aa_lang = "";
|
|
3697
4276
|
/**!
|
|
3698
4277
|
* Sortable 1.14.0
|
|
3699
4278
|
* @author RubaXa <trash@rubaxa.org>
|
|
@@ -4068,11 +4647,11 @@ function getParentAutoScrollElement$1(el, includeSelf) {
|
|
|
4068
4647
|
} while (elem = elem.parentNode);
|
|
4069
4648
|
return getWindowScrollingElement$1();
|
|
4070
4649
|
}
|
|
4071
|
-
function extend$1(dst,
|
|
4072
|
-
if (dst &&
|
|
4073
|
-
for (var key in
|
|
4074
|
-
if (
|
|
4075
|
-
dst[key] =
|
|
4650
|
+
function extend$1(dst, src2) {
|
|
4651
|
+
if (dst && src2) {
|
|
4652
|
+
for (var key in src2) {
|
|
4653
|
+
if (src2.hasOwnProperty(key)) {
|
|
4654
|
+
dst[key] = src2[key];
|
|
4076
4655
|
}
|
|
4077
4656
|
}
|
|
4078
4657
|
}
|
|
@@ -6568,9 +7147,9 @@ var pick = flatRest$1(function(object2, paths) {
|
|
|
6568
7147
|
});
|
|
6569
7148
|
var pick_1 = pick;
|
|
6570
7149
|
const pick$1 = /* @__PURE__ */ getDefaultExportFromCjs(pick_1);
|
|
6571
|
-
const
|
|
6572
|
-
const
|
|
6573
|
-
const
|
|
7150
|
+
const AddNewElement_vue_vue_type_style_index_0_scoped_1960d7c8_lang = "";
|
|
7151
|
+
const ContentElement_vue_vue_type_style_index_0_scoped_a6d26f4a_lang = "";
|
|
7152
|
+
const SelectActivity_vue_vue_type_style_index_0_scoped_f56ca773_lang = "";
|
|
6574
7153
|
var yoctodelay = (d) => new Promise((r) => setTimeout(r, d));
|
|
6575
7154
|
const delay = /* @__PURE__ */ getDefaultExportFromCjs(yoctodelay);
|
|
6576
7155
|
async function pMinDelay(promise, minimumDelay, { delayRejection = true } = {}) {
|
|
@@ -6590,9 +7169,9 @@ const useLoader = () => {
|
|
|
6590
7169
|
};
|
|
6591
7170
|
return { loader, loading };
|
|
6592
7171
|
};
|
|
6593
|
-
const
|
|
6594
|
-
const
|
|
6595
|
-
const
|
|
7172
|
+
const TailorDialog_vue_vue_type_style_index_0_scoped_d5112d4b_lang = "";
|
|
7173
|
+
const ElementList_vue_vue_type_style_index_0_scoped_d33d8047_lang = "";
|
|
7174
|
+
const InlineActivator_vue_vue_type_style_index_0_scoped_eaccc16f_lang = "";
|
|
6596
7175
|
function noop$1() {
|
|
6597
7176
|
}
|
|
6598
7177
|
var noop_1 = noop$1;
|
|
@@ -6664,8 +7243,8 @@ flatRest(function(object2, paths) {
|
|
|
6664
7243
|
}
|
|
6665
7244
|
return result;
|
|
6666
7245
|
});
|
|
6667
|
-
const
|
|
6668
|
-
const
|
|
7246
|
+
const ListItem_vue_vue_type_style_index_0_scoped_570b8171_lang = "";
|
|
7247
|
+
const ItemGroup_vue_vue_type_style_index_0_scoped_85267ad2_lang = "";
|
|
6669
7248
|
const download = (url, fileName) => {
|
|
6670
7249
|
const anchor = document.createElement("a");
|
|
6671
7250
|
Object.assign(anchor, { href: url, download: fileName, target: "_blank" });
|
|
@@ -6705,7 +7284,7 @@ const useUpload = (emit2) => {
|
|
|
6705
7284
|
error
|
|
6706
7285
|
};
|
|
6707
7286
|
};
|
|
6708
|
-
const
|
|
7287
|
+
const FileInput_vue_vue_type_style_index_0_scoped_f3d00dc2_lang = "";
|
|
6709
7288
|
function OrderedMap(content) {
|
|
6710
7289
|
this.content = content;
|
|
6711
7290
|
}
|
|
@@ -9840,10 +10419,10 @@ class DOMSerializer {
|
|
|
9840
10419
|
while (keep < active.length)
|
|
9841
10420
|
top = active.pop()[1];
|
|
9842
10421
|
while (rendered < node.marks.length) {
|
|
9843
|
-
let
|
|
9844
|
-
let markDOM = this.serializeMark(
|
|
10422
|
+
let add2 = node.marks[rendered++];
|
|
10423
|
+
let markDOM = this.serializeMark(add2, node.isInline, options);
|
|
9845
10424
|
if (markDOM) {
|
|
9846
|
-
active.push([
|
|
10425
|
+
active.push([add2, top]);
|
|
9847
10426
|
top.appendChild(markDOM.dom);
|
|
9848
10427
|
top = markDOM.contentDOM || markDOM.dom;
|
|
9849
10428
|
}
|
|
@@ -10974,11 +11553,11 @@ class Fitter {
|
|
|
10974
11553
|
this.openFrontierNode(wrap[i]);
|
|
10975
11554
|
let slice2 = this.unplaced, fragment = parent2 ? parent2.content : slice2.content;
|
|
10976
11555
|
let openStart = slice2.openStart - sliceDepth;
|
|
10977
|
-
let taken = 0,
|
|
11556
|
+
let taken = 0, add2 = [];
|
|
10978
11557
|
let { match, type: type2 } = this.frontier[frontierDepth];
|
|
10979
11558
|
if (inject) {
|
|
10980
11559
|
for (let i = 0; i < inject.childCount; i++)
|
|
10981
|
-
|
|
11560
|
+
add2.push(inject.child(i));
|
|
10982
11561
|
match = match.matchFragment(inject);
|
|
10983
11562
|
}
|
|
10984
11563
|
let openEndCount = fragment.size + sliceDepth - (slice2.content.size - slice2.openEnd);
|
|
@@ -10989,13 +11568,13 @@ class Fitter {
|
|
|
10989
11568
|
taken++;
|
|
10990
11569
|
if (taken > 1 || openStart == 0 || next.content.size) {
|
|
10991
11570
|
match = matches2;
|
|
10992
|
-
|
|
11571
|
+
add2.push(closeNodeStart(next.mark(type2.allowedMarks(next.marks)), taken == 1 ? openStart : 0, taken == fragment.childCount ? openEndCount : -1));
|
|
10993
11572
|
}
|
|
10994
11573
|
}
|
|
10995
11574
|
let toEnd = taken == fragment.childCount;
|
|
10996
11575
|
if (!toEnd)
|
|
10997
11576
|
openEndCount = -1;
|
|
10998
|
-
this.placed = addToFragment(this.placed, frontierDepth, Fragment.from(
|
|
11577
|
+
this.placed = addToFragment(this.placed, frontierDepth, Fragment.from(add2));
|
|
10999
11578
|
this.frontier[frontierDepth].match = match;
|
|
11000
11579
|
if (toEnd && openEndCount < 0 && parent2 && parent2.type == this.frontier[this.depth].type && this.frontier.length > 1)
|
|
11001
11580
|
this.closeFrontierNode();
|
|
@@ -11044,8 +11623,8 @@ class Fitter {
|
|
|
11044
11623
|
this.placed = addToFragment(this.placed, close2.depth, close2.fit);
|
|
11045
11624
|
$to = close2.move;
|
|
11046
11625
|
for (let d = close2.depth + 1; d <= $to.depth; d++) {
|
|
11047
|
-
let node = $to.node(d),
|
|
11048
|
-
this.openFrontierNode(node.type, node.attrs,
|
|
11626
|
+
let node = $to.node(d), add2 = node.type.contentMatch.fillBefore(node.content, true, $to.index(d));
|
|
11627
|
+
this.openFrontierNode(node.type, node.attrs, add2);
|
|
11049
11628
|
}
|
|
11050
11629
|
return $to;
|
|
11051
11630
|
}
|
|
@@ -11057,9 +11636,9 @@ class Fitter {
|
|
|
11057
11636
|
}
|
|
11058
11637
|
closeFrontierNode() {
|
|
11059
11638
|
let open = this.frontier.pop();
|
|
11060
|
-
let
|
|
11061
|
-
if (
|
|
11062
|
-
this.placed = addToFragment(this.placed, this.frontier.length,
|
|
11639
|
+
let add2 = open.match.fillBefore(Fragment.empty, true);
|
|
11640
|
+
if (add2.childCount)
|
|
11641
|
+
this.placed = addToFragment(this.placed, this.frontier.length, add2);
|
|
11063
11642
|
}
|
|
11064
11643
|
}
|
|
11065
11644
|
function dropFromFragment(fragment, depth, count) {
|
|
@@ -19012,8 +19591,8 @@ Mark2.create({
|
|
|
19012
19591
|
};
|
|
19013
19592
|
}
|
|
19014
19593
|
});
|
|
19015
|
-
const
|
|
19016
|
-
const
|
|
19594
|
+
const EditorToolbar_vue_vue_type_style_index_0_scoped_37fd2dee_lang = "";
|
|
19595
|
+
const index_vue_vue_type_style_index_0_scoped_b7fc3b8b_lang = "";
|
|
19017
19596
|
var toString = toString_1;
|
|
19018
19597
|
var idCounter = 0;
|
|
19019
19598
|
function uniqueId(prefix) {
|
|
@@ -24125,7 +24704,7 @@ lodash.exports;
|
|
|
24125
24704
|
var id = ++idCounter2;
|
|
24126
24705
|
return toString2(prefix) + id;
|
|
24127
24706
|
}
|
|
24128
|
-
var
|
|
24707
|
+
var add2 = createMathOperation(function(augend, addend) {
|
|
24129
24708
|
return augend + addend;
|
|
24130
24709
|
}, 0);
|
|
24131
24710
|
var ceil = createRound("ceil");
|
|
@@ -24318,7 +24897,7 @@ lodash.exports;
|
|
|
24318
24897
|
lodash2.extend = assignIn;
|
|
24319
24898
|
lodash2.extendWith = assignInWith;
|
|
24320
24899
|
mixin(lodash2, lodash2);
|
|
24321
|
-
lodash2.add =
|
|
24900
|
+
lodash2.add = add2;
|
|
24322
24901
|
lodash2.attempt = attempt;
|
|
24323
24902
|
lodash2.camelCase = camelCase;
|
|
24324
24903
|
lodash2.capitalize = capitalize;
|
|
@@ -25072,11 +25651,11 @@ function getParentAutoScrollElement(el, includeSelf) {
|
|
|
25072
25651
|
} while (elem = elem.parentNode);
|
|
25073
25652
|
return getWindowScrollingElement();
|
|
25074
25653
|
}
|
|
25075
|
-
function extend(dst,
|
|
25076
|
-
if (dst &&
|
|
25077
|
-
for (var key in
|
|
25078
|
-
if (
|
|
25079
|
-
dst[key] =
|
|
25654
|
+
function extend(dst, src2) {
|
|
25655
|
+
if (dst && src2) {
|
|
25656
|
+
for (var key in src2) {
|
|
25657
|
+
if (src2.hasOwnProperty(key)) {
|
|
25658
|
+
dst[key] = src2[key];
|
|
25080
25659
|
}
|
|
25081
25660
|
}
|
|
25082
25661
|
}
|
|
@@ -26884,43 +27463,6 @@ _extends(Remove, {
|
|
|
26884
27463
|
});
|
|
26885
27464
|
Sortable.mount(new AutoScrollPlugin());
|
|
26886
27465
|
Sortable.mount(Remove, Revert);
|
|
26887
|
-
const byteToHex = [];
|
|
26888
|
-
for (let i = 0; i < 256; ++i) {
|
|
26889
|
-
byteToHex.push((i + 256).toString(16).slice(1));
|
|
26890
|
-
}
|
|
26891
|
-
function unsafeStringify(arr, offset = 0) {
|
|
26892
|
-
return (byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + "-" + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + "-" + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + "-" + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + "-" + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]]).toLowerCase();
|
|
26893
|
-
}
|
|
26894
|
-
let getRandomValues;
|
|
26895
|
-
const rnds8 = new Uint8Array(16);
|
|
26896
|
-
function rng() {
|
|
26897
|
-
if (!getRandomValues) {
|
|
26898
|
-
if (typeof crypto === "undefined" || !crypto.getRandomValues) {
|
|
26899
|
-
throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
|
|
26900
|
-
}
|
|
26901
|
-
getRandomValues = crypto.getRandomValues.bind(crypto);
|
|
26902
|
-
}
|
|
26903
|
-
return getRandomValues(rnds8);
|
|
26904
|
-
}
|
|
26905
|
-
const randomUUID = typeof crypto !== "undefined" && crypto.randomUUID && crypto.randomUUID.bind(crypto);
|
|
26906
|
-
const native = { randomUUID };
|
|
26907
|
-
function v4(options, buf, offset) {
|
|
26908
|
-
if (native.randomUUID && !buf && !options) {
|
|
26909
|
-
return native.randomUUID();
|
|
26910
|
-
}
|
|
26911
|
-
options = options || {};
|
|
26912
|
-
const rnds = options.random || (options.rng || rng)();
|
|
26913
|
-
rnds[6] = rnds[6] & 15 | 64;
|
|
26914
|
-
rnds[8] = rnds[8] & 63 | 128;
|
|
26915
|
-
if (buf) {
|
|
26916
|
-
offset = offset || 0;
|
|
26917
|
-
for (let i = 0; i < 16; ++i) {
|
|
26918
|
-
buf[offset + i] = rnds[i];
|
|
26919
|
-
}
|
|
26920
|
-
return buf;
|
|
26921
|
-
}
|
|
26922
|
-
return unsafeStringify(rnds);
|
|
26923
|
-
}
|
|
26924
27466
|
var baseKeys = _baseKeys, getTag = _getTag, isArguments = isArguments_1, isArray = isArray_1, isArrayLike = isArrayLike_1, isBuffer = isBufferExports, isPrototype = _isPrototype, isTypedArray = isTypedArray_1;
|
|
26925
27467
|
var mapTag = "[object Map]", setTag = "[object Set]";
|
|
26926
27468
|
var objectProto = Object.prototype;
|
|
@@ -27022,7 +27564,7 @@ const _sfc_main$1 = /* @__PURE__ */ vue.defineComponent({
|
|
|
27022
27564
|
const _component_VExpansionPanelTitle = vue.resolveComponent("VExpansionPanelTitle");
|
|
27023
27565
|
const _component_VHover = vue.resolveComponent("VHover");
|
|
27024
27566
|
const _component_VAlert = vue.resolveComponent("VAlert");
|
|
27025
|
-
const
|
|
27567
|
+
const _component_TailorEmbeddedContainer = vue.resolveComponent("TailorEmbeddedContainer");
|
|
27026
27568
|
const _component_VExpansionPanelText = vue.resolveComponent("VExpansionPanelText");
|
|
27027
27569
|
const _component_VExpansionPanel = vue.resolveComponent("VExpansionPanel");
|
|
27028
27570
|
const _directive_tooltip = vue.resolveDirective("tooltip");
|
|
@@ -27145,7 +27687,7 @@ const _sfc_main$1 = /* @__PURE__ */ vue.defineComponent({
|
|
|
27145
27687
|
]),
|
|
27146
27688
|
_: 1
|
|
27147
27689
|
})) : vue.createCommentVNode("", true),
|
|
27148
|
-
vue.createVNode(
|
|
27690
|
+
vue.createVNode(_component_TailorEmbeddedContainer, {
|
|
27149
27691
|
container: { embeds: _ctx.embeds },
|
|
27150
27692
|
"is-disabled": _ctx.isDisabled,
|
|
27151
27693
|
types: _ctx.embedTypes,
|
|
@@ -27161,8 +27703,8 @@ const _sfc_main$1 = /* @__PURE__ */ vue.defineComponent({
|
|
|
27161
27703
|
};
|
|
27162
27704
|
}
|
|
27163
27705
|
});
|
|
27164
|
-
const
|
|
27165
|
-
const AccordionItem = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-
|
|
27706
|
+
const AccordionItem_vue_vue_type_style_index_0_scoped_53dcf74b_lang = "";
|
|
27707
|
+
const AccordionItem = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-53dcf74b"]]);
|
|
27166
27708
|
const _hoisted_1 = { class: "tce-accordion d-flex flex-column align-center text-center" };
|
|
27167
27709
|
const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
27168
27710
|
__name: "Edit",
|
|
@@ -27185,8 +27727,8 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
27185
27727
|
return acc;
|
|
27186
27728
|
}, {})
|
|
27187
27729
|
);
|
|
27188
|
-
const
|
|
27189
|
-
const id =
|
|
27730
|
+
const add2 = () => {
|
|
27731
|
+
const id = createId_1();
|
|
27190
27732
|
elementData.items.push({ id, elementIds: [] });
|
|
27191
27733
|
};
|
|
27192
27734
|
const saveItem = ({ item, embeds = {} }, index2) => {
|
|
@@ -27274,7 +27816,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
27274
27816
|
color: "primary-darken-4",
|
|
27275
27817
|
"prepend-icon": "mdi-plus",
|
|
27276
27818
|
variant: "text",
|
|
27277
|
-
onClick:
|
|
27819
|
+
onClick: add2
|
|
27278
27820
|
}, {
|
|
27279
27821
|
default: vue.withCtx(() => [
|
|
27280
27822
|
vue.createTextVNode(" Add accordion item ")
|
|
@@ -27285,8 +27827,8 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
27285
27827
|
};
|
|
27286
27828
|
}
|
|
27287
27829
|
});
|
|
27288
|
-
const
|
|
27289
|
-
const Edit = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
27830
|
+
const Edit_vue_vue_type_style_index_0_scoped_6ca5c55f_lang = "";
|
|
27831
|
+
const Edit = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-6ca5c55f"]]);
|
|
27290
27832
|
const manifest = {
|
|
27291
27833
|
...src_default,
|
|
27292
27834
|
Edit
|