hanbiro-react16-sdk 1.0.7 → 1.0.8
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.
|
@@ -1,32 +1,32 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* hanbiro-react16-sdk v1.0.
|
|
2
|
+
* hanbiro-react16-sdk v1.0.7
|
|
3
3
|
* Build Date: 2026-03-26
|
|
4
4
|
*/
|
|
5
5
|
var rt = Object.defineProperty;
|
|
6
6
|
var it = (t, e, n) => e in t ? rt(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
|
|
7
7
|
var b = (t, e, n) => it(t, typeof e != "symbol" ? e + "" : e, n);
|
|
8
8
|
import * as d from "react";
|
|
9
|
-
import
|
|
9
|
+
import S, { forwardRef as he } from "react";
|
|
10
10
|
import * as ot from "react-dom";
|
|
11
|
-
let
|
|
11
|
+
let G;
|
|
12
12
|
const st = new Uint8Array(16);
|
|
13
13
|
function at() {
|
|
14
|
-
if (!
|
|
14
|
+
if (!G && (G = typeof crypto < "u" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto), !G))
|
|
15
15
|
throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
|
|
16
|
-
return
|
|
16
|
+
return G(st);
|
|
17
17
|
}
|
|
18
|
-
const
|
|
18
|
+
const E = [];
|
|
19
19
|
for (let t = 0; t < 256; ++t)
|
|
20
|
-
|
|
20
|
+
E.push((t + 256).toString(16).slice(1));
|
|
21
21
|
function lt(t, e = 0) {
|
|
22
|
-
return
|
|
22
|
+
return E[t[e + 0]] + E[t[e + 1]] + E[t[e + 2]] + E[t[e + 3]] + "-" + E[t[e + 4]] + E[t[e + 5]] + "-" + E[t[e + 6]] + E[t[e + 7]] + "-" + E[t[e + 8]] + E[t[e + 9]] + "-" + E[t[e + 10]] + E[t[e + 11]] + E[t[e + 12]] + E[t[e + 13]] + E[t[e + 14]] + E[t[e + 15]];
|
|
23
23
|
}
|
|
24
|
-
const ct = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto),
|
|
24
|
+
const ct = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), Re = {
|
|
25
25
|
randomUUID: ct
|
|
26
26
|
};
|
|
27
27
|
function ut(t, e, n) {
|
|
28
|
-
if (
|
|
29
|
-
return
|
|
28
|
+
if (Re.randomUUID && !t)
|
|
29
|
+
return Re.randomUUID();
|
|
30
30
|
t = t || {};
|
|
31
31
|
const r = t.random || (t.rng || at)();
|
|
32
32
|
return r[6] = r[6] & 15 | 64, r[8] = r[8] & 63 | 128, lt(r);
|
|
@@ -34,12 +34,12 @@ function ut(t, e, n) {
|
|
|
34
34
|
function pt(t) {
|
|
35
35
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
36
36
|
}
|
|
37
|
-
var
|
|
38
|
-
function Me() {
|
|
39
|
-
}
|
|
37
|
+
var Me = { exports: {} }, ht = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED", ft = ht, dt = ft;
|
|
40
38
|
function Ne() {
|
|
41
39
|
}
|
|
42
|
-
|
|
40
|
+
function He() {
|
|
41
|
+
}
|
|
42
|
+
He.resetWarningCache = Ne;
|
|
43
43
|
var gt = function() {
|
|
44
44
|
function t(r, i, o, s, a, c) {
|
|
45
45
|
if (c !== dt) {
|
|
@@ -73,23 +73,23 @@ var gt = function() {
|
|
|
73
73
|
oneOfType: e,
|
|
74
74
|
shape: e,
|
|
75
75
|
exact: e,
|
|
76
|
-
checkPropTypes:
|
|
77
|
-
resetWarningCache:
|
|
76
|
+
checkPropTypes: He,
|
|
77
|
+
resetWarningCache: Ne
|
|
78
78
|
};
|
|
79
79
|
return n.PropTypes = n, n;
|
|
80
80
|
};
|
|
81
|
-
|
|
82
|
-
var p =
|
|
81
|
+
Me.exports = gt();
|
|
82
|
+
var p = Me.exports;
|
|
83
83
|
const I = /* @__PURE__ */ pt(p);
|
|
84
|
-
function
|
|
85
|
-
return
|
|
84
|
+
function re() {
|
|
85
|
+
return re = Object.assign || function(t) {
|
|
86
86
|
for (var e = 1; e < arguments.length; e++) {
|
|
87
87
|
var n = arguments[e];
|
|
88
88
|
for (var r in n)
|
|
89
89
|
Object.prototype.hasOwnProperty.call(n, r) && (t[r] = n[r]);
|
|
90
90
|
}
|
|
91
91
|
return t;
|
|
92
|
-
},
|
|
92
|
+
}, re.apply(this, arguments);
|
|
93
93
|
}
|
|
94
94
|
function mt(t, e) {
|
|
95
95
|
if (t == null) return {};
|
|
@@ -108,9 +108,9 @@ function bt(t, e) {
|
|
|
108
108
|
i = r[o], !(e.indexOf(i) >= 0) && (n[i] = t[i]);
|
|
109
109
|
return n;
|
|
110
110
|
}
|
|
111
|
-
var
|
|
111
|
+
var J = he(function(t, e) {
|
|
112
112
|
var n = t.color, r = n === void 0 ? "currentColor" : n, i = t.size, o = i === void 0 ? 24 : i, s = mt(t, ["color", "size"]);
|
|
113
|
-
return /* @__PURE__ */
|
|
113
|
+
return /* @__PURE__ */ S.createElement("svg", re({
|
|
114
114
|
ref: e,
|
|
115
115
|
xmlns: "http://www.w3.org/2000/svg",
|
|
116
116
|
width: o,
|
|
@@ -121,31 +121,31 @@ var Q = he(function(t, e) {
|
|
|
121
121
|
strokeWidth: "2",
|
|
122
122
|
strokeLinecap: "round",
|
|
123
123
|
strokeLinejoin: "round"
|
|
124
|
-
}, s), /* @__PURE__ */
|
|
124
|
+
}, s), /* @__PURE__ */ S.createElement("rect", {
|
|
125
125
|
x: "9",
|
|
126
126
|
y: "9",
|
|
127
127
|
width: "13",
|
|
128
128
|
height: "13",
|
|
129
129
|
rx: "2",
|
|
130
130
|
ry: "2"
|
|
131
|
-
}), /* @__PURE__ */
|
|
131
|
+
}), /* @__PURE__ */ S.createElement("path", {
|
|
132
132
|
d: "M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"
|
|
133
133
|
}));
|
|
134
134
|
});
|
|
135
|
-
|
|
135
|
+
J.propTypes = {
|
|
136
136
|
color: I.string,
|
|
137
137
|
size: I.oneOfType([I.string, I.number])
|
|
138
138
|
};
|
|
139
|
-
|
|
140
|
-
function
|
|
141
|
-
return
|
|
139
|
+
J.displayName = "Copy";
|
|
140
|
+
function ie() {
|
|
141
|
+
return ie = Object.assign || function(t) {
|
|
142
142
|
for (var e = 1; e < arguments.length; e++) {
|
|
143
143
|
var n = arguments[e];
|
|
144
144
|
for (var r in n)
|
|
145
145
|
Object.prototype.hasOwnProperty.call(n, r) && (t[r] = n[r]);
|
|
146
146
|
}
|
|
147
147
|
return t;
|
|
148
|
-
},
|
|
148
|
+
}, ie.apply(this, arguments);
|
|
149
149
|
}
|
|
150
150
|
function kt(t, e) {
|
|
151
151
|
if (t == null) return {};
|
|
@@ -166,7 +166,7 @@ function vt(t, e) {
|
|
|
166
166
|
}
|
|
167
167
|
var fe = he(function(t, e) {
|
|
168
168
|
var n = t.color, r = n === void 0 ? "currentColor" : n, i = t.size, o = i === void 0 ? 24 : i, s = kt(t, ["color", "size"]);
|
|
169
|
-
return /* @__PURE__ */
|
|
169
|
+
return /* @__PURE__ */ S.createElement("svg", ie({
|
|
170
170
|
ref: e,
|
|
171
171
|
xmlns: "http://www.w3.org/2000/svg",
|
|
172
172
|
width: o,
|
|
@@ -177,12 +177,12 @@ var fe = he(function(t, e) {
|
|
|
177
177
|
strokeWidth: "2",
|
|
178
178
|
strokeLinecap: "round",
|
|
179
179
|
strokeLinejoin: "round"
|
|
180
|
-
}, s), /* @__PURE__ */
|
|
180
|
+
}, s), /* @__PURE__ */ S.createElement("line", {
|
|
181
181
|
x1: "22",
|
|
182
182
|
y1: "2",
|
|
183
183
|
x2: "11",
|
|
184
184
|
y2: "13"
|
|
185
|
-
}), /* @__PURE__ */
|
|
185
|
+
}), /* @__PURE__ */ S.createElement("polygon", {
|
|
186
186
|
points: "22 2 15 22 11 13 2 9 22 2"
|
|
187
187
|
}));
|
|
188
188
|
});
|
|
@@ -191,15 +191,15 @@ fe.propTypes = {
|
|
|
191
191
|
size: I.oneOfType([I.string, I.number])
|
|
192
192
|
};
|
|
193
193
|
fe.displayName = "Send";
|
|
194
|
-
function
|
|
195
|
-
return
|
|
194
|
+
function oe() {
|
|
195
|
+
return oe = Object.assign || function(t) {
|
|
196
196
|
for (var e = 1; e < arguments.length; e++) {
|
|
197
197
|
var n = arguments[e];
|
|
198
198
|
for (var r in n)
|
|
199
199
|
Object.prototype.hasOwnProperty.call(n, r) && (t[r] = n[r]);
|
|
200
200
|
}
|
|
201
201
|
return t;
|
|
202
|
-
},
|
|
202
|
+
}, oe.apply(this, arguments);
|
|
203
203
|
}
|
|
204
204
|
function yt(t, e) {
|
|
205
205
|
if (t == null) return {};
|
|
@@ -220,7 +220,7 @@ function xt(t, e) {
|
|
|
220
220
|
}
|
|
221
221
|
var de = he(function(t, e) {
|
|
222
222
|
var n = t.color, r = n === void 0 ? "currentColor" : n, i = t.size, o = i === void 0 ? 24 : i, s = yt(t, ["color", "size"]);
|
|
223
|
-
return /* @__PURE__ */
|
|
223
|
+
return /* @__PURE__ */ S.createElement("svg", oe({
|
|
224
224
|
ref: e,
|
|
225
225
|
xmlns: "http://www.w3.org/2000/svg",
|
|
226
226
|
width: o,
|
|
@@ -231,11 +231,11 @@ var de = he(function(t, e) {
|
|
|
231
231
|
strokeWidth: "2",
|
|
232
232
|
strokeLinecap: "round",
|
|
233
233
|
strokeLinejoin: "round"
|
|
234
|
-
}, s), /* @__PURE__ */
|
|
234
|
+
}, s), /* @__PURE__ */ S.createElement("circle", {
|
|
235
235
|
cx: "12",
|
|
236
236
|
cy: "12",
|
|
237
237
|
r: "3"
|
|
238
|
-
}), /* @__PURE__ */
|
|
238
|
+
}), /* @__PURE__ */ S.createElement("path", {
|
|
239
239
|
d: "M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 0 1 0 2.83 2 2 0 0 1-2.83 0l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-2 2 2 2 0 0 1-2-2v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 0 1-2.83 0 2 2 0 0 1 0-2.83l.06-.06a1.65 1.65 0 0 0 .33-1.82 1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1-2-2 2 2 0 0 1 2-2h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 0 1 0-2.83 2 2 0 0 1 2.83 0l.06.06a1.65 1.65 0 0 0 1.82.33H9a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 2-2 2 2 0 0 1 2 2v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 0 1 2.83 0 2 2 0 0 1 0 2.83l-.06.06a1.65 1.65 0 0 0-.33 1.82V9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 2 2 2 2 0 0 1-2 2h-.09a1.65 1.65 0 0 0-1.51 1z"
|
|
240
240
|
}));
|
|
241
241
|
});
|
|
@@ -244,7 +244,7 @@ de.propTypes = {
|
|
|
244
244
|
size: I.oneOfType([I.string, I.number])
|
|
245
245
|
};
|
|
246
246
|
de.displayName = "Settings";
|
|
247
|
-
const
|
|
247
|
+
const se = [
|
|
248
248
|
{ label: "Korean", value: "KR", extra: "ko" },
|
|
249
249
|
{ label: "English", value: "US", extra: "en" },
|
|
250
250
|
{ label: "Japanese", value: "JP" },
|
|
@@ -311,26 +311,56 @@ const oe = [
|
|
|
311
311
|
}
|
|
312
312
|
)
|
|
313
313
|
);
|
|
314
|
+
}, j = {
|
|
315
|
+
baseUrl: "V3",
|
|
316
|
+
signer: null
|
|
317
|
+
}, In = ({ baseUrl: t, signer: e }) => {
|
|
318
|
+
j.baseUrl = t, j.signer = e;
|
|
319
|
+
}, St = () => {
|
|
320
|
+
const t = window.location, { hostname: e } = t;
|
|
321
|
+
return e === "localhost" || e === "127.0.0.1";
|
|
322
|
+
}, Ue = St(), ge = () => {
|
|
323
|
+
var n;
|
|
324
|
+
let t = window.location;
|
|
325
|
+
const { host: e } = t;
|
|
326
|
+
if (Ue) {
|
|
327
|
+
const r = (n = j.baseUrl) == null ? void 0 : n.split("/");
|
|
328
|
+
return r ? "https://" + (r == null ? void 0 : r[2]) : "https://vndev.hanbiro.com";
|
|
329
|
+
} else {
|
|
330
|
+
const r = localStorage.getItem("host") || e, i = r == null ? void 0 : r.split("/");
|
|
331
|
+
return "https://" + (i == null ? void 0 : i[0]);
|
|
332
|
+
}
|
|
333
|
+
}, $n = () => {
|
|
334
|
+
let t = window.location;
|
|
335
|
+
if (Ue)
|
|
336
|
+
return ge() || "https://vndev.hanbiro.com/ngw";
|
|
337
|
+
{
|
|
338
|
+
window.location !== window.parent.location && (t = window.parent.location);
|
|
339
|
+
const { hostname: e, protocol: n } = t;
|
|
340
|
+
return [n, "//", e, "/ngw"].join("");
|
|
341
|
+
}
|
|
314
342
|
};
|
|
315
|
-
async function
|
|
316
|
-
let
|
|
343
|
+
async function Et(t, { setContent: e, setIsLoading: n, setConversationId: r }) {
|
|
344
|
+
let i = "";
|
|
345
|
+
const o = ge();
|
|
317
346
|
try {
|
|
318
347
|
n(!0);
|
|
319
|
-
const
|
|
348
|
+
const s = {
|
|
320
349
|
method: "POST",
|
|
321
350
|
baseURL: o,
|
|
322
351
|
url: "/nmail/chatdraft",
|
|
323
352
|
params: t
|
|
324
353
|
};
|
|
325
|
-
let
|
|
326
|
-
|
|
354
|
+
let a = {};
|
|
355
|
+
const c = j == null ? void 0 : j.signer;
|
|
356
|
+
c && typeof c.generateHeaders == "function" && (a = await c.generateHeaders(s));
|
|
327
357
|
const l = await fetch(`${o}/nmail/chatdraft`, {
|
|
328
358
|
method: "POST",
|
|
329
359
|
body: JSON.stringify(t),
|
|
330
360
|
headers: {
|
|
331
361
|
"Content-Type": "application/json",
|
|
332
362
|
"Access-Control-Allow-Origin": "*",
|
|
333
|
-
...
|
|
363
|
+
...a
|
|
334
364
|
}
|
|
335
365
|
});
|
|
336
366
|
if (n(!1), !l.body)
|
|
@@ -338,40 +368,40 @@ async function St(t, { setContent: e, setIsLoading: n, setConversationId: r, sig
|
|
|
338
368
|
const u = l.body.getReader();
|
|
339
369
|
let f = "", h = 0;
|
|
340
370
|
for (; ; ) {
|
|
341
|
-
const { done:
|
|
342
|
-
if (
|
|
371
|
+
const { done: k, value: g } = await u.read();
|
|
372
|
+
if (k)
|
|
343
373
|
break;
|
|
344
|
-
let m = "",
|
|
374
|
+
let m = "", v = "";
|
|
345
375
|
try {
|
|
346
|
-
const
|
|
347
|
-
f +=
|
|
348
|
-
const
|
|
376
|
+
const y = new TextDecoder().decode(g);
|
|
377
|
+
f += y;
|
|
378
|
+
const R = /"answer":".*?"/g, T = /"conversation_id"\s*:\s*"([^"]+)"/, $ = [...f.matchAll(R)], P = f.match(T);
|
|
349
379
|
for (P && P[1] && r(P[1]); h < $.length; ) {
|
|
350
380
|
const z = $[h];
|
|
351
381
|
try {
|
|
352
382
|
m = z[0];
|
|
353
|
-
const
|
|
354
|
-
|
|
355
|
-
const
|
|
356
|
-
|
|
357
|
-
} catch (
|
|
358
|
-
console.error("Parse error: ",
|
|
383
|
+
const C = m.slice(10, m.length - 1);
|
|
384
|
+
v = `"${C}"`, C.endsWith("\\") && (v = `"${C}\\"`);
|
|
385
|
+
const M = JSON.parse(v);
|
|
386
|
+
i += M, e(i);
|
|
387
|
+
} catch (C) {
|
|
388
|
+
console.error("Parse error: ", C, m, v);
|
|
359
389
|
}
|
|
360
390
|
h++;
|
|
361
391
|
}
|
|
362
|
-
} catch (
|
|
363
|
-
console.error("TextDecoder error: ",
|
|
392
|
+
} catch (y) {
|
|
393
|
+
console.error("TextDecoder error: ", y, m);
|
|
364
394
|
}
|
|
365
395
|
}
|
|
366
|
-
return
|
|
367
|
-
} catch (
|
|
368
|
-
console.error("Summary error:",
|
|
396
|
+
return i;
|
|
397
|
+
} catch (s) {
|
|
398
|
+
console.error("Summary error:", s), e("");
|
|
369
399
|
} finally {
|
|
370
400
|
n(!1);
|
|
371
401
|
}
|
|
372
402
|
return "";
|
|
373
403
|
}
|
|
374
|
-
function
|
|
404
|
+
function me() {
|
|
375
405
|
return {
|
|
376
406
|
async: !1,
|
|
377
407
|
breaks: !1,
|
|
@@ -385,23 +415,23 @@ function ge() {
|
|
|
385
415
|
walkTokens: null
|
|
386
416
|
};
|
|
387
417
|
}
|
|
388
|
-
var
|
|
389
|
-
function
|
|
390
|
-
|
|
418
|
+
var D = me();
|
|
419
|
+
function qe(t) {
|
|
420
|
+
D = t;
|
|
391
421
|
}
|
|
392
|
-
var
|
|
393
|
-
function
|
|
422
|
+
var U = { exec: () => null };
|
|
423
|
+
function w(t, e = "") {
|
|
394
424
|
let n = typeof t == "string" ? t : t.source;
|
|
395
425
|
const r = {
|
|
396
426
|
replace: (i, o) => {
|
|
397
427
|
let s = typeof o == "string" ? o : o.source;
|
|
398
|
-
return s = s.replace(
|
|
428
|
+
return s = s.replace(_.caret, "$1"), n = n.replace(i, s), r;
|
|
399
429
|
},
|
|
400
430
|
getRegex: () => new RegExp(n, e)
|
|
401
431
|
};
|
|
402
432
|
return r;
|
|
403
433
|
}
|
|
404
|
-
var
|
|
434
|
+
var _ = {
|
|
405
435
|
codeRemoveIndent: /^(?: {1,4}| {0,3}\t)/gm,
|
|
406
436
|
outputLinkReplace: /\\([\[\]])/g,
|
|
407
437
|
indentCodeCompensation: /^(\s+)(?:```)/,
|
|
@@ -458,123 +488,123 @@ var T = {
|
|
|
458
488
|
fencesBeginRegex: (t) => new RegExp(`^ {0,${Math.min(3, t - 1)}}(?:\`\`\`|~~~)`),
|
|
459
489
|
headingBeginRegex: (t) => new RegExp(`^ {0,${Math.min(3, t - 1)}}#`),
|
|
460
490
|
htmlBeginRegex: (t) => new RegExp(`^ {0,${Math.min(3, t - 1)}}<(?:[a-z].*>|!--)`, "i")
|
|
461
|
-
},
|
|
491
|
+
}, Ct = /^(?:[ \t]*(?:\n|$))+/, Rt = /^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/, _t = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, q = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, Tt = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, be = /(?:[*+-]|\d{1,9}[.)])/, Ge = /^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/, We = w(Ge).replace(/bull/g, be).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/\|table/g, "").getRegex(), It = w(Ge).replace(/bull/g, be).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/table/g, / {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(), ke = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/, $t = /^[^\n]+/, ve = /(?!\s*\])(?:\\.|[^\[\]\\])+/, zt = w(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label", ve).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), Lt = w(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g, be).getRegex(), Y = "address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul", ye = /<!--(?:-?>|[\s\S]*?(?:-->|$))/, Pt = w(
|
|
462
492
|
"^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))",
|
|
463
493
|
"i"
|
|
464
|
-
).replace("comment",
|
|
465
|
-
blockquote:
|
|
466
|
-
code:
|
|
467
|
-
def:
|
|
468
|
-
fences:
|
|
469
|
-
heading:
|
|
470
|
-
hr:
|
|
471
|
-
html:
|
|
472
|
-
lheading:
|
|
473
|
-
list:
|
|
474
|
-
newline:
|
|
475
|
-
paragraph:
|
|
476
|
-
table:
|
|
477
|
-
text:
|
|
478
|
-
},
|
|
494
|
+
).replace("comment", ye).replace("tag", Y).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(), Fe = w(ke).replace("hr", q).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("|table", "").replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", Y).getRegex(), Ot = w(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", Fe).getRegex(), xe = {
|
|
495
|
+
blockquote: Ot,
|
|
496
|
+
code: Rt,
|
|
497
|
+
def: zt,
|
|
498
|
+
fences: _t,
|
|
499
|
+
heading: Tt,
|
|
500
|
+
hr: q,
|
|
501
|
+
html: Pt,
|
|
502
|
+
lheading: We,
|
|
503
|
+
list: Lt,
|
|
504
|
+
newline: Ct,
|
|
505
|
+
paragraph: Fe,
|
|
506
|
+
table: U,
|
|
507
|
+
text: $t
|
|
508
|
+
}, _e = w(
|
|
479
509
|
"^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"
|
|
480
|
-
).replace("hr",
|
|
481
|
-
...
|
|
482
|
-
lheading:
|
|
483
|
-
table:
|
|
484
|
-
paragraph:
|
|
485
|
-
},
|
|
486
|
-
...
|
|
487
|
-
html:
|
|
510
|
+
).replace("hr", q).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("blockquote", " {0,3}>").replace("code", "(?: {4}| {0,3} )[^\\n]").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", Y).getRegex(), At = {
|
|
511
|
+
...xe,
|
|
512
|
+
lheading: It,
|
|
513
|
+
table: _e,
|
|
514
|
+
paragraph: w(ke).replace("hr", q).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table", _e).replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", Y).getRegex()
|
|
515
|
+
}, Bt = {
|
|
516
|
+
...xe,
|
|
517
|
+
html: w(
|
|
488
518
|
`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`
|
|
489
|
-
).replace("comment",
|
|
519
|
+
).replace("comment", ye).replace(/tag/g, "(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),
|
|
490
520
|
def: /^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,
|
|
491
521
|
heading: /^(#{1,6})(.*)(?:\n+|$)/,
|
|
492
|
-
fences:
|
|
522
|
+
fences: U,
|
|
493
523
|
// fences not supported
|
|
494
524
|
lheading: /^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,
|
|
495
|
-
paragraph:
|
|
496
|
-
]`).replace("lheading",
|
|
497
|
-
}, Dt = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,
|
|
525
|
+
paragraph: w(ke).replace("hr", q).replace("heading", ` *#{1,6} *[^
|
|
526
|
+
]`).replace("lheading", We).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex()
|
|
527
|
+
}, Dt = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, jt = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, Ve = /^( {2,}|\\)\n(?!\s*$)/, Mt = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, X = /[\p{P}\p{S}]/u, we = /[\s\p{P}\p{S}]/u, Ze = /[^\s\p{P}\p{S}]/u, Nt = w(/^((?![*_])punctSpace)/, "u").replace(/punctSpace/g, we).getRegex(), Ke = /(?!~)[\p{P}\p{S}]/u, Ht = /(?!~)[\s\p{P}\p{S}]/u, Ut = /(?:[^\s\p{P}\p{S}]|~)/u, qt = /\[[^[\]]*?\]\((?:\\.|[^\\\(\)]|\((?:\\.|[^\\\(\)])*\))*\)|`[^`]*?`|<[^<>]*?>/g, Qe = /^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/, Gt = w(Qe, "u").replace(/punct/g, X).getRegex(), Wt = w(Qe, "u").replace(/punct/g, Ke).getRegex(), Je = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)", Ft = w(Je, "gu").replace(/notPunctSpace/g, Ze).replace(/punctSpace/g, we).replace(/punct/g, X).getRegex(), Vt = w(Je, "gu").replace(/notPunctSpace/g, Ut).replace(/punctSpace/g, Ht).replace(/punct/g, Ke).getRegex(), Zt = w(
|
|
498
528
|
"^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)",
|
|
499
529
|
"gu"
|
|
500
|
-
).replace(/notPunctSpace/g,
|
|
530
|
+
).replace(/notPunctSpace/g, Ze).replace(/punctSpace/g, we).replace(/punct/g, X).getRegex(), Kt = w(/\\(punct)/, "gu").replace(/punct/g, X).getRegex(), Qt = w(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme", /[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email", /[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(), Jt = w(ye).replace("(?:-->|$)", "-->").getRegex(), Yt = w(
|
|
501
531
|
"^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>"
|
|
502
|
-
).replace("comment",
|
|
503
|
-
_backpedal:
|
|
532
|
+
).replace("comment", Jt).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), V = /(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/, Xt = w(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label", V).replace("href", /<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), Ye = w(/^!?\[(label)\]\[(ref)\]/).replace("label", V).replace("ref", ve).getRegex(), Xe = w(/^!?\[(ref)\](?:\[\])?/).replace("ref", ve).getRegex(), en = w("reflink|nolink(?!\\()", "g").replace("reflink", Ye).replace("nolink", Xe).getRegex(), Se = {
|
|
533
|
+
_backpedal: U,
|
|
504
534
|
// only used for GFM url
|
|
505
|
-
anyPunctuation:
|
|
506
|
-
autolink:
|
|
507
|
-
blockSkip:
|
|
508
|
-
br:
|
|
509
|
-
code:
|
|
510
|
-
del:
|
|
511
|
-
emStrongLDelim: qt,
|
|
512
|
-
emStrongRDelimAst: Wt,
|
|
513
|
-
emStrongRDelimUnd: Vt,
|
|
514
|
-
escape: Dt,
|
|
515
|
-
link: Yt,
|
|
516
|
-
nolink: Je,
|
|
517
|
-
punctuation: Mt,
|
|
518
|
-
reflink: Qe,
|
|
519
|
-
reflinkSearch: Xt,
|
|
520
|
-
tag: Jt,
|
|
521
|
-
text: jt,
|
|
522
|
-
url: H
|
|
523
|
-
}, en = {
|
|
524
|
-
...we,
|
|
525
|
-
link: x(/^!?\[(label)\]\((.*?)\)/).replace("label", F).getRegex(),
|
|
526
|
-
reflink: x(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label", F).getRegex()
|
|
527
|
-
}, se = {
|
|
528
|
-
...we,
|
|
529
|
-
emStrongRDelimAst: Ft,
|
|
535
|
+
anyPunctuation: Kt,
|
|
536
|
+
autolink: Qt,
|
|
537
|
+
blockSkip: qt,
|
|
538
|
+
br: Ve,
|
|
539
|
+
code: jt,
|
|
540
|
+
del: U,
|
|
530
541
|
emStrongLDelim: Gt,
|
|
531
|
-
|
|
542
|
+
emStrongRDelimAst: Ft,
|
|
543
|
+
emStrongRDelimUnd: Zt,
|
|
544
|
+
escape: Dt,
|
|
545
|
+
link: Xt,
|
|
546
|
+
nolink: Xe,
|
|
547
|
+
punctuation: Nt,
|
|
548
|
+
reflink: Ye,
|
|
549
|
+
reflinkSearch: en,
|
|
550
|
+
tag: Yt,
|
|
551
|
+
text: Mt,
|
|
552
|
+
url: U
|
|
553
|
+
}, tn = {
|
|
554
|
+
...Se,
|
|
555
|
+
link: w(/^!?\[(label)\]\((.*?)\)/).replace("label", V).getRegex(),
|
|
556
|
+
reflink: w(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label", V).getRegex()
|
|
557
|
+
}, ae = {
|
|
558
|
+
...Se,
|
|
559
|
+
emStrongRDelimAst: Vt,
|
|
560
|
+
emStrongLDelim: Wt,
|
|
561
|
+
url: w(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/, "i").replace("email", /[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),
|
|
532
562
|
_backpedal: /(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,
|
|
533
563
|
del: /^(~~?)(?=[^\s~])((?:\\.|[^\\])*?(?:\\.|[^\s~\\]))\1(?=[^~]|$)/,
|
|
534
564
|
text: /^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/
|
|
535
|
-
}, tn = {
|
|
536
|
-
...se,
|
|
537
|
-
br: x(We).replace("{2,}", "*").getRegex(),
|
|
538
|
-
text: x(se.text).replace("\\b_", "\\b_| {2,}\\n").replace(/\{2,\}/g, "*").getRegex()
|
|
539
|
-
}, G = {
|
|
540
|
-
normal: ye,
|
|
541
|
-
gfm: Ot,
|
|
542
|
-
pedantic: At
|
|
543
|
-
}, M = {
|
|
544
|
-
normal: we,
|
|
545
|
-
gfm: se,
|
|
546
|
-
breaks: tn,
|
|
547
|
-
pedantic: en
|
|
548
565
|
}, nn = {
|
|
566
|
+
...ae,
|
|
567
|
+
br: w(Ve).replace("{2,}", "*").getRegex(),
|
|
568
|
+
text: w(ae.text).replace("\\b_", "\\b_| {2,}\\n").replace(/\{2,\}/g, "*").getRegex()
|
|
569
|
+
}, W = {
|
|
570
|
+
normal: xe,
|
|
571
|
+
gfm: At,
|
|
572
|
+
pedantic: Bt
|
|
573
|
+
}, N = {
|
|
574
|
+
normal: Se,
|
|
575
|
+
gfm: ae,
|
|
576
|
+
breaks: nn,
|
|
577
|
+
pedantic: tn
|
|
578
|
+
}, rn = {
|
|
549
579
|
"&": "&",
|
|
550
580
|
"<": "<",
|
|
551
581
|
">": ">",
|
|
552
582
|
'"': """,
|
|
553
583
|
"'": "'"
|
|
554
|
-
},
|
|
584
|
+
}, Te = (t) => rn[t];
|
|
555
585
|
function L(t, e) {
|
|
556
586
|
if (e) {
|
|
557
|
-
if (
|
|
558
|
-
return t.replace(
|
|
559
|
-
} else if (
|
|
560
|
-
return t.replace(
|
|
587
|
+
if (_.escapeTest.test(t))
|
|
588
|
+
return t.replace(_.escapeReplace, Te);
|
|
589
|
+
} else if (_.escapeTestNoEncode.test(t))
|
|
590
|
+
return t.replace(_.escapeReplaceNoEncode, Te);
|
|
561
591
|
return t;
|
|
562
592
|
}
|
|
563
|
-
function
|
|
593
|
+
function Ie(t) {
|
|
564
594
|
try {
|
|
565
|
-
t = encodeURI(t).replace(
|
|
595
|
+
t = encodeURI(t).replace(_.percentDecode, "%");
|
|
566
596
|
} catch {
|
|
567
597
|
return null;
|
|
568
598
|
}
|
|
569
599
|
return t;
|
|
570
600
|
}
|
|
571
|
-
function
|
|
601
|
+
function $e(t, e) {
|
|
572
602
|
var o;
|
|
573
|
-
const n = t.replace(
|
|
603
|
+
const n = t.replace(_.findPipe, (s, a, c) => {
|
|
574
604
|
let l = !1, u = a;
|
|
575
605
|
for (; --u >= 0 && c[u] === "\\"; ) l = !l;
|
|
576
606
|
return l ? "|" : " |";
|
|
577
|
-
}), r = n.split(
|
|
607
|
+
}), r = n.split(_.splitPipe);
|
|
578
608
|
let i = 0;
|
|
579
609
|
if (r[0].trim() || r.shift(), r.length > 0 && !((o = r.at(-1)) != null && o.trim()) && r.pop(), e)
|
|
580
610
|
if (r.length > e)
|
|
@@ -582,10 +612,10 @@ function Ie(t, e) {
|
|
|
582
612
|
else
|
|
583
613
|
for (; r.length < e; ) r.push("");
|
|
584
614
|
for (; i < r.length; i++)
|
|
585
|
-
r[i] = r[i].trim().replace(
|
|
615
|
+
r[i] = r[i].trim().replace(_.slashPipe, "|");
|
|
586
616
|
return r;
|
|
587
617
|
}
|
|
588
|
-
function
|
|
618
|
+
function H(t, e, n) {
|
|
589
619
|
const r = t.length;
|
|
590
620
|
if (r === 0)
|
|
591
621
|
return "";
|
|
@@ -594,7 +624,7 @@ function N(t, e, n) {
|
|
|
594
624
|
i++;
|
|
595
625
|
return t.slice(0, r - i);
|
|
596
626
|
}
|
|
597
|
-
function
|
|
627
|
+
function on(t, e) {
|
|
598
628
|
if (t.indexOf(e[1]) === -1)
|
|
599
629
|
return -1;
|
|
600
630
|
let n = 0;
|
|
@@ -607,7 +637,7 @@ function rn(t, e) {
|
|
|
607
637
|
return r;
|
|
608
638
|
return n > 0 ? -2 : -1;
|
|
609
639
|
}
|
|
610
|
-
function
|
|
640
|
+
function ze(t, e, n, r, i) {
|
|
611
641
|
const o = e.href, s = e.title || null, a = t[1].replace(i.other.outputLinkReplace, "$1");
|
|
612
642
|
r.state.inLink = !0;
|
|
613
643
|
const c = {
|
|
@@ -620,7 +650,7 @@ function $e(t, e, n, r, i) {
|
|
|
620
650
|
};
|
|
621
651
|
return r.state.inLink = !1, c;
|
|
622
652
|
}
|
|
623
|
-
function
|
|
653
|
+
function sn(t, e, n) {
|
|
624
654
|
const r = t.match(n.other.indentCodeCompensation);
|
|
625
655
|
if (r === null)
|
|
626
656
|
return e;
|
|
@@ -635,14 +665,14 @@ function on(t, e, n) {
|
|
|
635
665
|
}).join(`
|
|
636
666
|
`);
|
|
637
667
|
}
|
|
638
|
-
var
|
|
668
|
+
var Z = class {
|
|
639
669
|
// set by the lexer
|
|
640
670
|
constructor(t) {
|
|
641
671
|
b(this, "options");
|
|
642
672
|
b(this, "rules");
|
|
643
673
|
// set by the lexer
|
|
644
674
|
b(this, "lexer");
|
|
645
|
-
this.options = t ||
|
|
675
|
+
this.options = t || D;
|
|
646
676
|
}
|
|
647
677
|
space(t) {
|
|
648
678
|
const e = this.rules.block.newline.exec(t);
|
|
@@ -660,7 +690,7 @@ var V = class {
|
|
|
660
690
|
type: "code",
|
|
661
691
|
raw: e[0],
|
|
662
692
|
codeBlockStyle: "indented",
|
|
663
|
-
text: this.options.pedantic ? n :
|
|
693
|
+
text: this.options.pedantic ? n : H(n, `
|
|
664
694
|
`)
|
|
665
695
|
};
|
|
666
696
|
}
|
|
@@ -668,7 +698,7 @@ var V = class {
|
|
|
668
698
|
fences(t) {
|
|
669
699
|
const e = this.rules.block.fences.exec(t);
|
|
670
700
|
if (e) {
|
|
671
|
-
const n = e[0], r =
|
|
701
|
+
const n = e[0], r = sn(n, e[3] || "", this.rules);
|
|
672
702
|
return {
|
|
673
703
|
type: "code",
|
|
674
704
|
raw: n,
|
|
@@ -682,7 +712,7 @@ var V = class {
|
|
|
682
712
|
if (e) {
|
|
683
713
|
let n = e[2].trim();
|
|
684
714
|
if (this.rules.other.endingHash.test(n)) {
|
|
685
|
-
const r =
|
|
715
|
+
const r = H(n, "#");
|
|
686
716
|
(this.options.pedantic || !r || this.rules.other.endingSpaceChar.test(r)) && (n = r.trim());
|
|
687
717
|
}
|
|
688
718
|
return {
|
|
@@ -699,14 +729,14 @@ var V = class {
|
|
|
699
729
|
if (e)
|
|
700
730
|
return {
|
|
701
731
|
type: "hr",
|
|
702
|
-
raw:
|
|
732
|
+
raw: H(e[0], `
|
|
703
733
|
`)
|
|
704
734
|
};
|
|
705
735
|
}
|
|
706
736
|
blockquote(t) {
|
|
707
737
|
const e = this.rules.block.blockquote.exec(t);
|
|
708
738
|
if (e) {
|
|
709
|
-
let n =
|
|
739
|
+
let n = H(e[0], `
|
|
710
740
|
`).split(`
|
|
711
741
|
`), r = "", i = "";
|
|
712
742
|
const o = [];
|
|
@@ -735,16 +765,16 @@ ${u}` : u;
|
|
|
735
765
|
if ((h == null ? void 0 : h.type) === "code")
|
|
736
766
|
break;
|
|
737
767
|
if ((h == null ? void 0 : h.type) === "blockquote") {
|
|
738
|
-
const
|
|
768
|
+
const k = h, g = k.raw + `
|
|
739
769
|
` + n.join(`
|
|
740
770
|
`), m = this.blockquote(g);
|
|
741
|
-
o[o.length - 1] = m, r = r.substring(0, r.length -
|
|
771
|
+
o[o.length - 1] = m, r = r.substring(0, r.length - k.raw.length) + m.raw, i = i.substring(0, i.length - k.text.length) + m.text;
|
|
742
772
|
break;
|
|
743
773
|
} else if ((h == null ? void 0 : h.type) === "list") {
|
|
744
|
-
const
|
|
774
|
+
const k = h, g = k.raw + `
|
|
745
775
|
` + n.join(`
|
|
746
776
|
`), m = this.list(g);
|
|
747
|
-
o[o.length - 1] = m, r = r.substring(0, r.length - h.raw.length) + m.raw, i = i.substring(0, i.length -
|
|
777
|
+
o[o.length - 1] = m, r = r.substring(0, r.length - h.raw.length) + m.raw, i = i.substring(0, i.length - k.raw.length) + m.raw, n = g.substring(o.at(-1).raw.length).split(`
|
|
748
778
|
`);
|
|
749
779
|
continue;
|
|
750
780
|
}
|
|
@@ -778,37 +808,37 @@ ${u}` : u;
|
|
|
778
808
|
break;
|
|
779
809
|
l = e[0], t = t.substring(l.length);
|
|
780
810
|
let f = e[2].split(`
|
|
781
|
-
`, 1)[0].replace(this.rules.other.listReplaceTabs, (
|
|
782
|
-
`, 1)[0],
|
|
783
|
-
if (this.options.pedantic ? (g = 2, u = f.trimStart()) :
|
|
811
|
+
`, 1)[0].replace(this.rules.other.listReplaceTabs, (y) => " ".repeat(3 * y.length)), h = t.split(`
|
|
812
|
+
`, 1)[0], k = !f.trim(), g = 0;
|
|
813
|
+
if (this.options.pedantic ? (g = 2, u = f.trimStart()) : k ? g = e[1].length + 1 : (g = e[2].search(this.rules.other.nonSpaceChar), g = g > 4 ? 1 : g, u = f.slice(g), g += e[1].length), k && this.rules.other.blankLine.test(h) && (l += h + `
|
|
784
814
|
`, t = t.substring(h.length + 1), c = !0), !c) {
|
|
785
|
-
const
|
|
815
|
+
const y = this.rules.other.nextBulletRegex(g), R = this.rules.other.hrRegex(g), T = this.rules.other.fencesBeginRegex(g), $ = this.rules.other.headingBeginRegex(g), P = this.rules.other.htmlBeginRegex(g);
|
|
786
816
|
for (; t; ) {
|
|
787
817
|
const z = t.split(`
|
|
788
818
|
`, 1)[0];
|
|
789
|
-
let
|
|
790
|
-
if (h = z, this.options.pedantic ? (h = h.replace(this.rules.other.listReplaceNesting, " "),
|
|
819
|
+
let C;
|
|
820
|
+
if (h = z, this.options.pedantic ? (h = h.replace(this.rules.other.listReplaceNesting, " "), C = h) : C = h.replace(this.rules.other.tabCharGlobal, " "), T.test(h) || $.test(h) || P.test(h) || y.test(h) || R.test(h))
|
|
791
821
|
break;
|
|
792
|
-
if (
|
|
822
|
+
if (C.search(this.rules.other.nonSpaceChar) >= g || !h.trim())
|
|
793
823
|
u += `
|
|
794
|
-
` +
|
|
824
|
+
` + C.slice(g);
|
|
795
825
|
else {
|
|
796
|
-
if (
|
|
826
|
+
if (k || f.replace(this.rules.other.tabCharGlobal, " ").search(this.rules.other.nonSpaceChar) >= 4 || T.test(f) || $.test(f) || R.test(f))
|
|
797
827
|
break;
|
|
798
828
|
u += `
|
|
799
829
|
` + h;
|
|
800
830
|
}
|
|
801
|
-
!
|
|
802
|
-
`, t = t.substring(z.length + 1), f =
|
|
831
|
+
!k && !h.trim() && (k = !0), l += z + `
|
|
832
|
+
`, t = t.substring(z.length + 1), f = C.slice(g);
|
|
803
833
|
}
|
|
804
834
|
}
|
|
805
835
|
i.loose || (s ? i.loose = !0 : this.rules.other.doubleBlankLine.test(l) && (s = !0));
|
|
806
|
-
let m = null,
|
|
807
|
-
this.options.gfm && (m = this.rules.other.listIsTask.exec(u), m && (
|
|
836
|
+
let m = null, v;
|
|
837
|
+
this.options.gfm && (m = this.rules.other.listIsTask.exec(u), m && (v = m[0] !== "[ ] ", u = u.replace(this.rules.other.listReplaceTask, ""))), i.items.push({
|
|
808
838
|
type: "list_item",
|
|
809
839
|
raw: l,
|
|
810
840
|
task: !!m,
|
|
811
|
-
checked:
|
|
841
|
+
checked: v,
|
|
812
842
|
loose: !1,
|
|
813
843
|
text: u,
|
|
814
844
|
tokens: []
|
|
@@ -860,7 +890,7 @@ ${u}` : u;
|
|
|
860
890
|
const e = this.rules.block.table.exec(t);
|
|
861
891
|
if (!e || !this.rules.other.tableDelimiter.test(e[2]))
|
|
862
892
|
return;
|
|
863
|
-
const n =
|
|
893
|
+
const n = $e(e[1]), r = e[2].replace(this.rules.other.tableAlignChars, "").split("|"), i = (s = e[3]) != null && s.trim() ? e[3].replace(this.rules.other.tableRowBlankLine, "").split(`
|
|
864
894
|
`) : [], o = {
|
|
865
895
|
type: "table",
|
|
866
896
|
raw: e[0],
|
|
@@ -879,7 +909,7 @@ ${u}` : u;
|
|
|
879
909
|
align: o.align[a]
|
|
880
910
|
});
|
|
881
911
|
for (const a of i)
|
|
882
|
-
o.rows.push(
|
|
912
|
+
o.rows.push($e(a, o.header.length).map((c, l) => ({
|
|
883
913
|
text: c,
|
|
884
914
|
tokens: this.lexer.inline(c),
|
|
885
915
|
header: !1,
|
|
@@ -950,11 +980,11 @@ ${u}` : u;
|
|
|
950
980
|
if (!this.options.pedantic && this.rules.other.startAngleBracket.test(n)) {
|
|
951
981
|
if (!this.rules.other.endAngleBracket.test(n))
|
|
952
982
|
return;
|
|
953
|
-
const o =
|
|
983
|
+
const o = H(n.slice(0, -1), "\\");
|
|
954
984
|
if ((n.length - o.length) % 2 === 0)
|
|
955
985
|
return;
|
|
956
986
|
} else {
|
|
957
|
-
const o =
|
|
987
|
+
const o = on(e[2], "()");
|
|
958
988
|
if (o === -2)
|
|
959
989
|
return;
|
|
960
990
|
if (o > -1) {
|
|
@@ -968,7 +998,7 @@ ${u}` : u;
|
|
|
968
998
|
o && (r = o[1], i = o[3]);
|
|
969
999
|
} else
|
|
970
1000
|
i = e[3] ? e[3].slice(1, -1) : "";
|
|
971
|
-
return r = r.trim(), this.rules.other.startAngleBracket.test(r) && (this.options.pedantic && !this.rules.other.endAngleBracket.test(n) ? r = r.slice(1) : r = r.slice(1, -1)),
|
|
1001
|
+
return r = r.trim(), this.rules.other.startAngleBracket.test(r) && (this.options.pedantic && !this.rules.other.endAngleBracket.test(n) ? r = r.slice(1) : r = r.slice(1, -1)), ze(e, {
|
|
972
1002
|
href: r && r.replace(this.rules.inline.anyPunctuation, "$1"),
|
|
973
1003
|
title: i && i.replace(this.rules.inline.anyPunctuation, "$1")
|
|
974
1004
|
}, e[0], this.lexer, this.rules);
|
|
@@ -986,7 +1016,7 @@ ${u}` : u;
|
|
|
986
1016
|
text: o
|
|
987
1017
|
};
|
|
988
1018
|
}
|
|
989
|
-
return
|
|
1019
|
+
return ze(n, i, n[0], this.lexer, this.rules);
|
|
990
1020
|
}
|
|
991
1021
|
}
|
|
992
1022
|
emStrong(t, e, n = "") {
|
|
@@ -1017,12 +1047,12 @@ ${u}` : u;
|
|
|
1017
1047
|
tokens: this.lexer.inlineTokens(g)
|
|
1018
1048
|
};
|
|
1019
1049
|
}
|
|
1020
|
-
const
|
|
1050
|
+
const k = h.slice(2, -2);
|
|
1021
1051
|
return {
|
|
1022
1052
|
type: "strong",
|
|
1023
1053
|
raw: h,
|
|
1024
|
-
text:
|
|
1025
|
-
tokens: this.lexer.inlineTokens(
|
|
1054
|
+
text: k,
|
|
1055
|
+
tokens: this.lexer.inlineTokens(k)
|
|
1026
1056
|
};
|
|
1027
1057
|
}
|
|
1028
1058
|
}
|
|
@@ -1117,51 +1147,51 @@ ${u}` : u;
|
|
|
1117
1147
|
};
|
|
1118
1148
|
}
|
|
1119
1149
|
}
|
|
1120
|
-
}, O = class
|
|
1150
|
+
}, O = class le {
|
|
1121
1151
|
constructor(e) {
|
|
1122
1152
|
b(this, "tokens");
|
|
1123
1153
|
b(this, "options");
|
|
1124
1154
|
b(this, "state");
|
|
1125
1155
|
b(this, "tokenizer");
|
|
1126
1156
|
b(this, "inlineQueue");
|
|
1127
|
-
this.tokens = [], this.tokens.links = /* @__PURE__ */ Object.create(null), this.options = e ||
|
|
1157
|
+
this.tokens = [], this.tokens.links = /* @__PURE__ */ Object.create(null), this.options = e || D, this.options.tokenizer = this.options.tokenizer || new Z(), this.tokenizer = this.options.tokenizer, this.tokenizer.options = this.options, this.tokenizer.lexer = this, this.inlineQueue = [], this.state = {
|
|
1128
1158
|
inLink: !1,
|
|
1129
1159
|
inRawBlock: !1,
|
|
1130
1160
|
top: !0
|
|
1131
1161
|
};
|
|
1132
1162
|
const n = {
|
|
1133
|
-
other:
|
|
1134
|
-
block:
|
|
1135
|
-
inline:
|
|
1163
|
+
other: _,
|
|
1164
|
+
block: W.normal,
|
|
1165
|
+
inline: N.normal
|
|
1136
1166
|
};
|
|
1137
|
-
this.options.pedantic ? (n.block =
|
|
1167
|
+
this.options.pedantic ? (n.block = W.pedantic, n.inline = N.pedantic) : this.options.gfm && (n.block = W.gfm, this.options.breaks ? n.inline = N.breaks : n.inline = N.gfm), this.tokenizer.rules = n;
|
|
1138
1168
|
}
|
|
1139
1169
|
/**
|
|
1140
1170
|
* Expose Rules
|
|
1141
1171
|
*/
|
|
1142
1172
|
static get rules() {
|
|
1143
1173
|
return {
|
|
1144
|
-
block:
|
|
1145
|
-
inline:
|
|
1174
|
+
block: W,
|
|
1175
|
+
inline: N
|
|
1146
1176
|
};
|
|
1147
1177
|
}
|
|
1148
1178
|
/**
|
|
1149
1179
|
* Static Lex Method
|
|
1150
1180
|
*/
|
|
1151
1181
|
static lex(e, n) {
|
|
1152
|
-
return new
|
|
1182
|
+
return new le(n).lex(e);
|
|
1153
1183
|
}
|
|
1154
1184
|
/**
|
|
1155
1185
|
* Static Lex Inline Method
|
|
1156
1186
|
*/
|
|
1157
1187
|
static lexInline(e, n) {
|
|
1158
|
-
return new
|
|
1188
|
+
return new le(n).inlineTokens(e);
|
|
1159
1189
|
}
|
|
1160
1190
|
/**
|
|
1161
1191
|
* Preprocessing
|
|
1162
1192
|
*/
|
|
1163
1193
|
lex(e) {
|
|
1164
|
-
e = e.replace(
|
|
1194
|
+
e = e.replace(_.carriageReturn, `
|
|
1165
1195
|
`), this.blockTokens(e, this.tokens);
|
|
1166
1196
|
for (let n = 0; n < this.inlineQueue.length; n++) {
|
|
1167
1197
|
const r = this.inlineQueue[n];
|
|
@@ -1171,7 +1201,7 @@ ${u}` : u;
|
|
|
1171
1201
|
}
|
|
1172
1202
|
blockTokens(e, n = [], r = !1) {
|
|
1173
1203
|
var i, o, s;
|
|
1174
|
-
for (this.options.pedantic && (e = e.replace(
|
|
1204
|
+
for (this.options.pedantic && (e = e.replace(_.tabCharGlobal, " ").replace(_.spaceLine, "")); e; ) {
|
|
1175
1205
|
let a;
|
|
1176
1206
|
if ((o = (i = this.options.extensions) == null ? void 0 : i.block) != null && o.some((l) => (a = l.call({ lexer: this }, e, n)) ? (e = e.substring(a.raw.length), n.push(a), !0) : !1))
|
|
1177
1207
|
continue;
|
|
@@ -1338,10 +1368,10 @@ ${u}` : u;
|
|
|
1338
1368
|
let f = e;
|
|
1339
1369
|
if ((l = this.options.extensions) != null && l.startInline) {
|
|
1340
1370
|
let h = 1 / 0;
|
|
1341
|
-
const
|
|
1371
|
+
const k = e.slice(1);
|
|
1342
1372
|
let g;
|
|
1343
1373
|
this.options.extensions.startInline.forEach((m) => {
|
|
1344
|
-
g = m.call({ lexer: this },
|
|
1374
|
+
g = m.call({ lexer: this }, k), typeof g == "number" && g >= 0 && (h = Math.min(h, g));
|
|
1345
1375
|
}), h < 1 / 0 && h >= 0 && (f = e.substring(0, h + 1));
|
|
1346
1376
|
}
|
|
1347
1377
|
if (u = this.tokenizer.inlineText(f)) {
|
|
@@ -1361,19 +1391,19 @@ ${u}` : u;
|
|
|
1361
1391
|
}
|
|
1362
1392
|
return n;
|
|
1363
1393
|
}
|
|
1364
|
-
},
|
|
1394
|
+
}, K = class {
|
|
1365
1395
|
// set by the parser
|
|
1366
1396
|
constructor(t) {
|
|
1367
1397
|
b(this, "options");
|
|
1368
1398
|
b(this, "parser");
|
|
1369
|
-
this.options = t ||
|
|
1399
|
+
this.options = t || D;
|
|
1370
1400
|
}
|
|
1371
1401
|
space(t) {
|
|
1372
1402
|
return "";
|
|
1373
1403
|
}
|
|
1374
1404
|
code({ text: t, lang: e, escaped: n }) {
|
|
1375
1405
|
var o;
|
|
1376
|
-
const r = (o = (e || "").match(
|
|
1406
|
+
const r = (o = (e || "").match(_.notSpaceStart)) == null ? void 0 : o[0], i = t.replace(_.endingNewline, "") + `
|
|
1377
1407
|
`;
|
|
1378
1408
|
return r ? '<pre><code class="language-' + L(r) + '">' + (n ? i : L(i, !0)) + `</code></pre>
|
|
1379
1409
|
` : "<pre><code>" + (n ? i : L(i, !0)) + `</code></pre>
|
|
@@ -1477,7 +1507,7 @@ ${t}</tr>
|
|
|
1477
1507
|
return `<del>${this.parser.parseInline(t)}</del>`;
|
|
1478
1508
|
}
|
|
1479
1509
|
link({ href: t, title: e, tokens: n }) {
|
|
1480
|
-
const r = this.parser.parseInline(n), i =
|
|
1510
|
+
const r = this.parser.parseInline(n), i = Ie(t);
|
|
1481
1511
|
if (i === null)
|
|
1482
1512
|
return r;
|
|
1483
1513
|
t = i;
|
|
@@ -1486,7 +1516,7 @@ ${t}</tr>
|
|
|
1486
1516
|
}
|
|
1487
1517
|
image({ href: t, title: e, text: n, tokens: r }) {
|
|
1488
1518
|
r && (n = this.parser.parseInline(r, this.parser.textRenderer));
|
|
1489
|
-
const i =
|
|
1519
|
+
const i = Ie(t);
|
|
1490
1520
|
if (i === null)
|
|
1491
1521
|
return L(n);
|
|
1492
1522
|
t = i;
|
|
@@ -1496,7 +1526,7 @@ ${t}</tr>
|
|
|
1496
1526
|
text(t) {
|
|
1497
1527
|
return "tokens" in t && t.tokens ? this.parser.parseInline(t.tokens) : "escaped" in t && t.escaped ? t.text : L(t.text);
|
|
1498
1528
|
}
|
|
1499
|
-
},
|
|
1529
|
+
}, Ee = class {
|
|
1500
1530
|
// no need for block level renderers
|
|
1501
1531
|
strong({ text: t }) {
|
|
1502
1532
|
return t;
|
|
@@ -1525,24 +1555,24 @@ ${t}</tr>
|
|
|
1525
1555
|
br() {
|
|
1526
1556
|
return "";
|
|
1527
1557
|
}
|
|
1528
|
-
}, A = class
|
|
1558
|
+
}, A = class ce {
|
|
1529
1559
|
constructor(e) {
|
|
1530
1560
|
b(this, "options");
|
|
1531
1561
|
b(this, "renderer");
|
|
1532
1562
|
b(this, "textRenderer");
|
|
1533
|
-
this.options = e ||
|
|
1563
|
+
this.options = e || D, this.options.renderer = this.options.renderer || new K(), this.renderer = this.options.renderer, this.renderer.options = this.options, this.renderer.parser = this, this.textRenderer = new Ee();
|
|
1534
1564
|
}
|
|
1535
1565
|
/**
|
|
1536
1566
|
* Static Parse Method
|
|
1537
1567
|
*/
|
|
1538
1568
|
static parse(e, n) {
|
|
1539
|
-
return new
|
|
1569
|
+
return new ce(n).parse(e);
|
|
1540
1570
|
}
|
|
1541
1571
|
/**
|
|
1542
1572
|
* Static Parse Inline Method
|
|
1543
1573
|
*/
|
|
1544
1574
|
static parseInline(e, n) {
|
|
1545
|
-
return new
|
|
1575
|
+
return new ce(n).parseInline(e);
|
|
1546
1576
|
}
|
|
1547
1577
|
/**
|
|
1548
1578
|
* Parse Loop
|
|
@@ -1687,11 +1717,11 @@ ${t}</tr>
|
|
|
1687
1717
|
}
|
|
1688
1718
|
return r;
|
|
1689
1719
|
}
|
|
1690
|
-
},
|
|
1720
|
+
}, ne, F = (ne = class {
|
|
1691
1721
|
constructor(t) {
|
|
1692
1722
|
b(this, "options");
|
|
1693
1723
|
b(this, "block");
|
|
1694
|
-
this.options = t ||
|
|
1724
|
+
this.options = t || D;
|
|
1695
1725
|
}
|
|
1696
1726
|
/**
|
|
1697
1727
|
* Process markdown before marked
|
|
@@ -1723,22 +1753,22 @@ ${t}</tr>
|
|
|
1723
1753
|
provideParser() {
|
|
1724
1754
|
return this.block ? A.parse : A.parseInline;
|
|
1725
1755
|
}
|
|
1726
|
-
}, b(
|
|
1756
|
+
}, b(ne, "passThroughHooks", /* @__PURE__ */ new Set([
|
|
1727
1757
|
"preprocess",
|
|
1728
1758
|
"postprocess",
|
|
1729
1759
|
"processAllTokens"
|
|
1730
|
-
])),
|
|
1760
|
+
])), ne), an = class {
|
|
1731
1761
|
constructor(...t) {
|
|
1732
|
-
b(this, "defaults",
|
|
1762
|
+
b(this, "defaults", me());
|
|
1733
1763
|
b(this, "options", this.setOptions);
|
|
1734
1764
|
b(this, "parse", this.parseMarkdown(!0));
|
|
1735
1765
|
b(this, "parseInline", this.parseMarkdown(!1));
|
|
1736
1766
|
b(this, "Parser", A);
|
|
1737
|
-
b(this, "Renderer",
|
|
1738
|
-
b(this, "TextRenderer",
|
|
1767
|
+
b(this, "Renderer", K);
|
|
1768
|
+
b(this, "TextRenderer", Ee);
|
|
1739
1769
|
b(this, "Lexer", O);
|
|
1740
|
-
b(this, "Tokenizer",
|
|
1741
|
-
b(this, "Hooks",
|
|
1770
|
+
b(this, "Tokenizer", Z);
|
|
1771
|
+
b(this, "Hooks", F);
|
|
1742
1772
|
this.use(...t);
|
|
1743
1773
|
}
|
|
1744
1774
|
/**
|
|
@@ -1795,7 +1825,7 @@ ${t}</tr>
|
|
|
1795
1825
|
}
|
|
1796
1826
|
"childTokens" in i && i.childTokens && (e.childTokens[i.name] = i.childTokens);
|
|
1797
1827
|
}), r.extensions = e), n.renderer) {
|
|
1798
|
-
const i = this.defaults.renderer || new
|
|
1828
|
+
const i = this.defaults.renderer || new K(this.defaults);
|
|
1799
1829
|
for (const o in n.renderer) {
|
|
1800
1830
|
if (!(o in i))
|
|
1801
1831
|
throw new Error(`renderer '${o}' does not exist`);
|
|
@@ -1810,7 +1840,7 @@ ${t}</tr>
|
|
|
1810
1840
|
r.renderer = i;
|
|
1811
1841
|
}
|
|
1812
1842
|
if (n.tokenizer) {
|
|
1813
|
-
const i = this.defaults.tokenizer || new
|
|
1843
|
+
const i = this.defaults.tokenizer || new Z(this.defaults);
|
|
1814
1844
|
for (const o in n.tokenizer) {
|
|
1815
1845
|
if (!(o in i))
|
|
1816
1846
|
throw new Error(`tokenizer '${o}' does not exist`);
|
|
@@ -1825,14 +1855,14 @@ ${t}</tr>
|
|
|
1825
1855
|
r.tokenizer = i;
|
|
1826
1856
|
}
|
|
1827
1857
|
if (n.hooks) {
|
|
1828
|
-
const i = this.defaults.hooks || new
|
|
1858
|
+
const i = this.defaults.hooks || new F();
|
|
1829
1859
|
for (const o in n.hooks) {
|
|
1830
1860
|
if (!(o in i))
|
|
1831
1861
|
throw new Error(`hook '${o}' does not exist`);
|
|
1832
1862
|
if (["options", "block"].includes(o))
|
|
1833
1863
|
continue;
|
|
1834
1864
|
const s = o, a = n.hooks[s], c = i[s];
|
|
1835
|
-
|
|
1865
|
+
F.passThroughHooks.has(o) ? i[s] = (l) => {
|
|
1836
1866
|
if (this.defaults.async)
|
|
1837
1867
|
return Promise.resolve(a.call(i, l)).then((f) => c.call(i, f));
|
|
1838
1868
|
const u = a.call(i, l);
|
|
@@ -1899,39 +1929,39 @@ Please report this to https://github.com/markedjs/marked.`, t) {
|
|
|
1899
1929
|
throw n;
|
|
1900
1930
|
};
|
|
1901
1931
|
}
|
|
1902
|
-
},
|
|
1903
|
-
function
|
|
1904
|
-
return
|
|
1932
|
+
}, B = new an();
|
|
1933
|
+
function x(t, e) {
|
|
1934
|
+
return B.parse(t, e);
|
|
1905
1935
|
}
|
|
1906
|
-
|
|
1907
|
-
return
|
|
1936
|
+
x.options = x.setOptions = function(t) {
|
|
1937
|
+
return B.setOptions(t), x.defaults = B.defaults, qe(x.defaults), x;
|
|
1908
1938
|
};
|
|
1909
|
-
|
|
1910
|
-
|
|
1911
|
-
|
|
1912
|
-
return
|
|
1939
|
+
x.getDefaults = me;
|
|
1940
|
+
x.defaults = D;
|
|
1941
|
+
x.use = function(...t) {
|
|
1942
|
+
return B.use(...t), x.defaults = B.defaults, qe(x.defaults), x;
|
|
1913
1943
|
};
|
|
1914
|
-
|
|
1915
|
-
return
|
|
1944
|
+
x.walkTokens = function(t, e) {
|
|
1945
|
+
return B.walkTokens(t, e);
|
|
1916
1946
|
};
|
|
1917
|
-
|
|
1918
|
-
|
|
1919
|
-
|
|
1920
|
-
|
|
1921
|
-
|
|
1922
|
-
|
|
1923
|
-
|
|
1924
|
-
|
|
1925
|
-
|
|
1926
|
-
|
|
1927
|
-
|
|
1928
|
-
|
|
1929
|
-
|
|
1930
|
-
|
|
1931
|
-
|
|
1947
|
+
x.parseInline = B.parseInline;
|
|
1948
|
+
x.Parser = A;
|
|
1949
|
+
x.parser = A.parse;
|
|
1950
|
+
x.Renderer = K;
|
|
1951
|
+
x.TextRenderer = Ee;
|
|
1952
|
+
x.Lexer = O;
|
|
1953
|
+
x.lexer = O.lex;
|
|
1954
|
+
x.Tokenizer = Z;
|
|
1955
|
+
x.Hooks = F;
|
|
1956
|
+
x.parse = x;
|
|
1957
|
+
x.options;
|
|
1958
|
+
x.setOptions;
|
|
1959
|
+
x.use;
|
|
1960
|
+
x.walkTokens;
|
|
1961
|
+
x.parseInline;
|
|
1932
1962
|
A.parse;
|
|
1933
1963
|
O.lex;
|
|
1934
|
-
const
|
|
1964
|
+
const Le = ({ data: t, style: e }) => /* @__PURE__ */ d.createElement(
|
|
1935
1965
|
"div",
|
|
1936
1966
|
{
|
|
1937
1967
|
style: {
|
|
@@ -1943,24 +1973,24 @@ const ze = ({ data: t, style: e }) => /* @__PURE__ */ d.createElement(
|
|
|
1943
1973
|
"div",
|
|
1944
1974
|
{
|
|
1945
1975
|
dangerouslySetInnerHTML: {
|
|
1946
|
-
__html:
|
|
1976
|
+
__html: x.parse(t.body, { async: !1 })
|
|
1947
1977
|
}
|
|
1948
1978
|
}
|
|
1949
1979
|
) : /* @__PURE__ */ d.createElement("p", { style: { margin: 0, whiteSpace: "pre-wrap" } }, t ? t.question : "")
|
|
1950
|
-
),
|
|
1980
|
+
), et = ({
|
|
1951
1981
|
size: t = 40,
|
|
1952
1982
|
color: e = "var(--primary-main)",
|
|
1953
1983
|
thickness: n = 3.6
|
|
1954
1984
|
}) => {
|
|
1955
1985
|
const i = 2 * Math.PI * 20;
|
|
1956
|
-
return /* @__PURE__ */
|
|
1986
|
+
return /* @__PURE__ */ S.createElement(
|
|
1957
1987
|
"div",
|
|
1958
1988
|
{
|
|
1959
1989
|
className: "circular-container",
|
|
1960
1990
|
style: { width: t, height: t },
|
|
1961
1991
|
role: "progressbar"
|
|
1962
1992
|
},
|
|
1963
|
-
/* @__PURE__ */
|
|
1993
|
+
/* @__PURE__ */ S.createElement("svg", { className: "circular-svg", viewBox: "22 22 44 44" }, /* @__PURE__ */ S.createElement(
|
|
1964
1994
|
"circle",
|
|
1965
1995
|
{
|
|
1966
1996
|
className: "circular-circle",
|
|
@@ -1978,7 +2008,7 @@ const ze = ({ data: t, style: e }) => /* @__PURE__ */ d.createElement(
|
|
|
1978
2008
|
}
|
|
1979
2009
|
))
|
|
1980
2010
|
);
|
|
1981
|
-
},
|
|
2011
|
+
}, ln = ({
|
|
1982
2012
|
items: t,
|
|
1983
2013
|
onApply: e,
|
|
1984
2014
|
getEditorContent: n
|
|
@@ -1988,7 +2018,7 @@ const ze = ({ data: t, style: e }) => /* @__PURE__ */ d.createElement(
|
|
|
1988
2018
|
((o.exec(i) || [])[0] || "").replace("제목: ", "").replace(`
|
|
1989
2019
|
`, "");
|
|
1990
2020
|
const a = i.replace(o, "").replace("본문: ", "");
|
|
1991
|
-
let c = await
|
|
2021
|
+
let c = await x.parse(a);
|
|
1992
2022
|
const l = /<!--HanbiroSignatureStart-->([\s\S]*?)<!--HanbiroSignatureEnd-->/g, u = n ? n() : "", f = l.exec(u) || [];
|
|
1993
2023
|
f[0] && (c = c + "<br>" + f[0]), e({ html: c });
|
|
1994
2024
|
};
|
|
@@ -2030,7 +2060,7 @@ const ze = ({ data: t, style: e }) => /* @__PURE__ */ d.createElement(
|
|
|
2030
2060
|
}
|
|
2031
2061
|
},
|
|
2032
2062
|
/* @__PURE__ */ d.createElement(
|
|
2033
|
-
|
|
2063
|
+
Le,
|
|
2034
2064
|
{
|
|
2035
2065
|
data: { question: i.question },
|
|
2036
2066
|
style: {
|
|
@@ -2054,7 +2084,7 @@ const ze = ({ data: t, style: e }) => /* @__PURE__ */ d.createElement(
|
|
|
2054
2084
|
marginTop: 8
|
|
2055
2085
|
}
|
|
2056
2086
|
},
|
|
2057
|
-
i != null && i.isLoading ? /* @__PURE__ */ d.createElement(
|
|
2087
|
+
i != null && i.isLoading ? /* @__PURE__ */ d.createElement(et, { size: 32 }) : /* @__PURE__ */ d.createElement(
|
|
2058
2088
|
"div",
|
|
2059
2089
|
{
|
|
2060
2090
|
style: {
|
|
@@ -2065,7 +2095,7 @@ const ze = ({ data: t, style: e }) => /* @__PURE__ */ d.createElement(
|
|
|
2065
2095
|
}
|
|
2066
2096
|
},
|
|
2067
2097
|
/* @__PURE__ */ d.createElement(
|
|
2068
|
-
|
|
2098
|
+
Le,
|
|
2069
2099
|
{
|
|
2070
2100
|
data: { subject: i.subject, body: i.body },
|
|
2071
2101
|
style: {
|
|
@@ -2088,21 +2118,21 @@ const ze = ({ data: t, style: e }) => /* @__PURE__ */ d.createElement(
|
|
|
2088
2118
|
marginLeft: 4
|
|
2089
2119
|
}
|
|
2090
2120
|
},
|
|
2091
|
-
/* @__PURE__ */ d.createElement(
|
|
2121
|
+
/* @__PURE__ */ d.createElement(J, { size: 16, color: "#666" })
|
|
2092
2122
|
)
|
|
2093
2123
|
)
|
|
2094
2124
|
)
|
|
2095
2125
|
))
|
|
2096
2126
|
);
|
|
2097
|
-
},
|
|
2127
|
+
}, cn = {
|
|
2098
2128
|
small: 28,
|
|
2099
2129
|
medium: 40
|
|
2100
|
-
},
|
|
2130
|
+
}, un = ({
|
|
2101
2131
|
style: t,
|
|
2102
2132
|
fullHeight: e = !1,
|
|
2103
2133
|
size: n = "medium",
|
|
2104
2134
|
label: r
|
|
2105
|
-
}) => /* @__PURE__ */
|
|
2135
|
+
}) => /* @__PURE__ */ S.createElement(
|
|
2106
2136
|
"div",
|
|
2107
2137
|
{
|
|
2108
2138
|
style: {
|
|
@@ -2114,8 +2144,8 @@ const ze = ({ data: t, style: e }) => /* @__PURE__ */ d.createElement(
|
|
|
2114
2144
|
...t
|
|
2115
2145
|
}
|
|
2116
2146
|
},
|
|
2117
|
-
/* @__PURE__ */
|
|
2118
|
-
r && /* @__PURE__ */
|
|
2147
|
+
/* @__PURE__ */ S.createElement(et, { size: cn[n] }),
|
|
2148
|
+
r && /* @__PURE__ */ S.createElement(
|
|
2119
2149
|
"p",
|
|
2120
2150
|
{
|
|
2121
2151
|
color: "text.secondary",
|
|
@@ -2123,7 +2153,7 @@ const ze = ({ data: t, style: e }) => /* @__PURE__ */ d.createElement(
|
|
|
2123
2153
|
},
|
|
2124
2154
|
r
|
|
2125
2155
|
)
|
|
2126
|
-
),
|
|
2156
|
+
), pn = `
|
|
2127
2157
|
::-webkit-scrollbar,
|
|
2128
2158
|
*::-webkit-scrollbar {
|
|
2129
2159
|
width: 8px;
|
|
@@ -2160,15 +2190,15 @@ const ze = ({ data: t, style: e }) => /* @__PURE__ */ d.createElement(
|
|
|
2160
2190
|
background-color: transparent;
|
|
2161
2191
|
}
|
|
2162
2192
|
`;
|
|
2163
|
-
var
|
|
2164
|
-
return
|
|
2193
|
+
var ue = function() {
|
|
2194
|
+
return ue = Object.assign || function(t) {
|
|
2165
2195
|
for (var e, n = 1, r = arguments.length; n < r; n++) {
|
|
2166
2196
|
e = arguments[n];
|
|
2167
2197
|
for (var i in e) Object.prototype.hasOwnProperty.call(e, i) && (t[i] = e[i]);
|
|
2168
2198
|
}
|
|
2169
2199
|
return t;
|
|
2170
|
-
},
|
|
2171
|
-
},
|
|
2200
|
+
}, ue.apply(this, arguments);
|
|
2201
|
+
}, tt = {
|
|
2172
2202
|
onActivate: p.func,
|
|
2173
2203
|
onAddUndo: p.func,
|
|
2174
2204
|
onBeforeAddUndo: p.func,
|
|
@@ -2240,7 +2270,7 @@ var ce = function() {
|
|
|
2240
2270
|
onLanguageLoadError: p.func,
|
|
2241
2271
|
onScriptsLoad: p.func,
|
|
2242
2272
|
onScriptsLoadError: p.func
|
|
2243
|
-
},
|
|
2273
|
+
}, hn = ue({ apiKey: p.string, id: p.string, inline: p.bool, init: p.object, initialValue: p.string, onEditorChange: p.func, value: p.string, tagName: p.string, cloudChannel: p.string, plugins: p.oneOfType([p.string, p.array]), toolbar: p.oneOfType([p.string, p.array]), disabled: p.bool, textareaName: p.string, tinymceScriptSrc: p.oneOfType([
|
|
2244
2274
|
p.string,
|
|
2245
2275
|
p.arrayOf(p.string),
|
|
2246
2276
|
p.arrayOf(p.shape({
|
|
@@ -2252,27 +2282,27 @@ var ce = function() {
|
|
|
2252
2282
|
async: p.bool,
|
|
2253
2283
|
defer: p.bool,
|
|
2254
2284
|
delay: p.number
|
|
2255
|
-
}) },
|
|
2285
|
+
}) }, tt), ee = function(t) {
|
|
2256
2286
|
return typeof t == "function";
|
|
2257
|
-
}, Le = function(t) {
|
|
2258
|
-
return t in Xe;
|
|
2259
2287
|
}, Pe = function(t) {
|
|
2288
|
+
return t in tt;
|
|
2289
|
+
}, Oe = function(t) {
|
|
2260
2290
|
return t.substr(2);
|
|
2261
|
-
},
|
|
2262
|
-
var a = Object.keys(i).filter(
|
|
2291
|
+
}, fn = function(t, e, n, r, i, o, s) {
|
|
2292
|
+
var a = Object.keys(i).filter(Pe), c = Object.keys(o).filter(Pe), l = a.filter(function(f) {
|
|
2263
2293
|
return o[f] === void 0;
|
|
2264
2294
|
}), u = c.filter(function(f) {
|
|
2265
2295
|
return i[f] === void 0;
|
|
2266
2296
|
});
|
|
2267
2297
|
l.forEach(function(f) {
|
|
2268
|
-
var h =
|
|
2269
|
-
n(h,
|
|
2298
|
+
var h = Oe(f), k = s[h];
|
|
2299
|
+
n(h, k), delete s[h];
|
|
2270
2300
|
}), u.forEach(function(f) {
|
|
2271
|
-
var h = r(t, f),
|
|
2272
|
-
s[
|
|
2301
|
+
var h = r(t, f), k = Oe(f);
|
|
2302
|
+
s[k] = h, e(k, h);
|
|
2273
2303
|
});
|
|
2274
|
-
},
|
|
2275
|
-
return
|
|
2304
|
+
}, dn = function(t, e, n, r, i) {
|
|
2305
|
+
return fn(
|
|
2276
2306
|
i,
|
|
2277
2307
|
t.on.bind(t),
|
|
2278
2308
|
t.off.bind(t),
|
|
@@ -2287,35 +2317,35 @@ var ce = function() {
|
|
|
2287
2317
|
n,
|
|
2288
2318
|
r
|
|
2289
2319
|
);
|
|
2290
|
-
},
|
|
2320
|
+
}, Ae = 0, nt = function(t) {
|
|
2291
2321
|
var e = Date.now(), n = Math.floor(Math.random() * 1e9);
|
|
2292
|
-
return
|
|
2293
|
-
},
|
|
2322
|
+
return Ae++, t + "_" + n + Ae + String(e);
|
|
2323
|
+
}, Be = function(t) {
|
|
2294
2324
|
return t !== null && (t.tagName.toLowerCase() === "textarea" || t.tagName.toLowerCase() === "input");
|
|
2295
2325
|
}, De = function(t) {
|
|
2296
2326
|
return typeof t > "u" || t === "" ? [] : Array.isArray(t) ? t : t.split(" ");
|
|
2297
|
-
},
|
|
2327
|
+
}, gn = function(t, e) {
|
|
2298
2328
|
return De(t).concat(De(e));
|
|
2299
|
-
},
|
|
2329
|
+
}, mn = function() {
|
|
2300
2330
|
return window.InputEvent && typeof InputEvent.prototype.getTargetRanges == "function";
|
|
2301
|
-
},
|
|
2331
|
+
}, bn = function(t) {
|
|
2302
2332
|
if (!("isConnected" in Node.prototype)) {
|
|
2303
2333
|
for (var e = t, n = t.parentNode; n != null; )
|
|
2304
2334
|
e = n, n = e.parentNode;
|
|
2305
2335
|
return e === t.ownerDocument;
|
|
2306
2336
|
}
|
|
2307
2337
|
return t.isConnected;
|
|
2308
|
-
},
|
|
2338
|
+
}, je = function(t, e) {
|
|
2309
2339
|
t !== void 0 && (t.mode != null && typeof t.mode == "object" && typeof t.mode.set == "function" ? t.mode.set(e) : t.setMode(e));
|
|
2310
|
-
},
|
|
2311
|
-
return
|
|
2340
|
+
}, pe = function() {
|
|
2341
|
+
return pe = Object.assign || function(t) {
|
|
2312
2342
|
for (var e, n = 1, r = arguments.length; n < r; n++) {
|
|
2313
2343
|
e = arguments[n];
|
|
2314
2344
|
for (var i in e) Object.prototype.hasOwnProperty.call(e, i) && (t[i] = e[i]);
|
|
2315
2345
|
}
|
|
2316
2346
|
return t;
|
|
2317
|
-
},
|
|
2318
|
-
},
|
|
2347
|
+
}, pe.apply(this, arguments);
|
|
2348
|
+
}, kn = function(t, e, n) {
|
|
2319
2349
|
var r, i, o = t.createElement("script");
|
|
2320
2350
|
o.referrerPolicy = "origin", o.type = "application/javascript", o.id = e.id, o.src = e.src, o.async = (r = e.async) !== null && r !== void 0 ? r : !1, o.defer = (i = e.defer) !== null && i !== void 0 ? i : !1;
|
|
2321
2351
|
var s = function() {
|
|
@@ -2324,7 +2354,7 @@ var ce = function() {
|
|
|
2324
2354
|
o.removeEventListener("load", s), o.removeEventListener("error", a), n(e.src, c);
|
|
2325
2355
|
};
|
|
2326
2356
|
o.addEventListener("load", s), o.addEventListener("error", a), t.head && t.head.appendChild(o);
|
|
2327
|
-
},
|
|
2357
|
+
}, vn = function(t) {
|
|
2328
2358
|
var e = {}, n = function(s, a) {
|
|
2329
2359
|
var c = e[s];
|
|
2330
2360
|
c.done = !0, c.error = a;
|
|
@@ -2334,28 +2364,28 @@ var ce = function() {
|
|
|
2334
2364
|
}
|
|
2335
2365
|
c.handlers = [];
|
|
2336
2366
|
}, r = function(s, a, c) {
|
|
2337
|
-
var l = function(
|
|
2338
|
-
return c !== void 0 ? c(
|
|
2367
|
+
var l = function(R) {
|
|
2368
|
+
return c !== void 0 ? c(R) : console.error(R);
|
|
2339
2369
|
};
|
|
2340
2370
|
if (s.length === 0) {
|
|
2341
2371
|
l(new Error("At least one script must be provided"));
|
|
2342
2372
|
return;
|
|
2343
2373
|
}
|
|
2344
|
-
for (var u = 0, f = !1, h = function(
|
|
2345
|
-
f || (
|
|
2346
|
-
},
|
|
2347
|
-
var m = g[
|
|
2348
|
-
if (
|
|
2349
|
-
|
|
2374
|
+
for (var u = 0, f = !1, h = function(R, T) {
|
|
2375
|
+
f || (T ? (f = !0, l(T)) : ++u === s.length && a());
|
|
2376
|
+
}, k = 0, g = s; k < g.length; k++) {
|
|
2377
|
+
var m = g[k], v = e[m.src];
|
|
2378
|
+
if (v)
|
|
2379
|
+
v.done ? h(m.src, v.error) : v.handlers.push(h);
|
|
2350
2380
|
else {
|
|
2351
|
-
var
|
|
2381
|
+
var y = nt("tiny-");
|
|
2352
2382
|
e[m.src] = {
|
|
2353
|
-
id:
|
|
2383
|
+
id: y,
|
|
2354
2384
|
src: m.src,
|
|
2355
2385
|
done: !1,
|
|
2356
2386
|
error: null,
|
|
2357
2387
|
handlers: [h]
|
|
2358
|
-
},
|
|
2388
|
+
}, kn(t, pe({ id: y }, m), n);
|
|
2359
2389
|
}
|
|
2360
2390
|
}
|
|
2361
2391
|
}, i = function() {
|
|
@@ -2372,12 +2402,12 @@ var ce = function() {
|
|
|
2372
2402
|
deleteScripts: i,
|
|
2373
2403
|
getDocument: o
|
|
2374
2404
|
};
|
|
2375
|
-
},
|
|
2405
|
+
}, yn = function() {
|
|
2376
2406
|
var t = [], e = function(i) {
|
|
2377
2407
|
var o = t.find(function(s) {
|
|
2378
2408
|
return s.getDocument() === i;
|
|
2379
2409
|
});
|
|
2380
|
-
return o === void 0 && (o =
|
|
2410
|
+
return o === void 0 && (o = vn(i), t.push(o)), o;
|
|
2381
2411
|
}, n = function(i, o, s, a, c) {
|
|
2382
2412
|
var l = function() {
|
|
2383
2413
|
return e(i).loadScripts(o, a, c);
|
|
@@ -2391,10 +2421,10 @@ var ce = function() {
|
|
|
2391
2421
|
loadList: n,
|
|
2392
2422
|
reinitialize: r
|
|
2393
2423
|
};
|
|
2394
|
-
},
|
|
2424
|
+
}, xn = yn(), te = function(t) {
|
|
2395
2425
|
var e = t;
|
|
2396
2426
|
return e && e.tinymce ? e.tinymce : null;
|
|
2397
|
-
},
|
|
2427
|
+
}, wn = /* @__PURE__ */ function() {
|
|
2398
2428
|
var t = function(e, n) {
|
|
2399
2429
|
return t = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, i) {
|
|
2400
2430
|
r.__proto__ = i;
|
|
@@ -2411,18 +2441,18 @@ var ce = function() {
|
|
|
2411
2441
|
}
|
|
2412
2442
|
e.prototype = n === null ? Object.create(n) : (r.prototype = n.prototype, new r());
|
|
2413
2443
|
};
|
|
2414
|
-
}(),
|
|
2415
|
-
return
|
|
2444
|
+
}(), Q = function() {
|
|
2445
|
+
return Q = Object.assign || function(t) {
|
|
2416
2446
|
for (var e, n = 1, r = arguments.length; n < r; n++) {
|
|
2417
2447
|
e = arguments[n];
|
|
2418
2448
|
for (var i in e) Object.prototype.hasOwnProperty.call(e, i) && (t[i] = e[i]);
|
|
2419
2449
|
}
|
|
2420
2450
|
return t;
|
|
2421
|
-
},
|
|
2422
|
-
},
|
|
2451
|
+
}, Q.apply(this, arguments);
|
|
2452
|
+
}, Sn = (
|
|
2423
2453
|
/** @class */
|
|
2424
2454
|
function(t) {
|
|
2425
|
-
|
|
2455
|
+
wn(e, t);
|
|
2426
2456
|
function e(n) {
|
|
2427
2457
|
var r, i, o, s = t.call(this, n) || this;
|
|
2428
2458
|
return s.rollbackTimer = void 0, s.valueCursor = void 0, s.rollbackChange = function() {
|
|
@@ -2446,7 +2476,7 @@ var ce = function() {
|
|
|
2446
2476
|
var c = s.editor;
|
|
2447
2477
|
if (c && c.initialized) {
|
|
2448
2478
|
var l = c.getContent();
|
|
2449
|
-
s.props.value !== void 0 && s.props.value !== l && s.props.rollback !== !1 && (s.rollbackTimer || (s.rollbackTimer = window.setTimeout(s.rollbackChange, typeof s.props.rollback == "number" ? s.props.rollback : 200))), l !== s.currentContent && (s.currentContent = l,
|
|
2479
|
+
s.props.value !== void 0 && s.props.value !== l && s.props.rollback !== !1 && (s.rollbackTimer || (s.rollbackTimer = window.setTimeout(s.rollbackChange, typeof s.props.rollback == "number" ? s.props.rollback : 200))), l !== s.currentContent && (s.currentContent = l, ee(s.props.onEditorChange) && s.props.onEditorChange(l, c));
|
|
2450
2480
|
}
|
|
2451
2481
|
}, s.handleEditorChangeSpecial = function(a) {
|
|
2452
2482
|
(a.key === "Backspace" || a.key === "Delete") && s.handleEditorChange(a);
|
|
@@ -2455,7 +2485,7 @@ var ce = function() {
|
|
|
2455
2485
|
a === void 0 && (a = 0);
|
|
2456
2486
|
var f = s.elementRef.current;
|
|
2457
2487
|
if (f) {
|
|
2458
|
-
if (!
|
|
2488
|
+
if (!bn(f)) {
|
|
2459
2489
|
if (a === 0)
|
|
2460
2490
|
setTimeout(function() {
|
|
2461
2491
|
return s.initialise(1);
|
|
@@ -2468,22 +2498,22 @@ var ce = function() {
|
|
|
2468
2498
|
throw new Error("tinymce can only be initialised when in a document");
|
|
2469
2499
|
return;
|
|
2470
2500
|
}
|
|
2471
|
-
var h =
|
|
2501
|
+
var h = te(s.view);
|
|
2472
2502
|
if (!h)
|
|
2473
2503
|
throw new Error("tinymce should have been loaded into global scope");
|
|
2474
|
-
var
|
|
2475
|
-
s.editor = g, s.bindHandlers({}), s.inline && !
|
|
2504
|
+
var k = Q(Q({}, s.props.init), { selector: void 0, target: f, readonly: s.props.disabled, inline: s.inline, plugins: gn((c = s.props.init) === null || c === void 0 ? void 0 : c.plugins, s.props.plugins), toolbar: (l = s.props.toolbar) !== null && l !== void 0 ? l : (u = s.props.init) === null || u === void 0 ? void 0 : u.toolbar, setup: function(g) {
|
|
2505
|
+
s.editor = g, s.bindHandlers({}), s.inline && !Be(f) && g.once("PostRender", function(m) {
|
|
2476
2506
|
g.setContent(s.getInitialValue(), { no_events: !0 });
|
|
2477
|
-
}), s.props.init &&
|
|
2507
|
+
}), s.props.init && ee(s.props.init.setup) && s.props.init.setup(g);
|
|
2478
2508
|
}, init_instance_callback: function(g) {
|
|
2479
|
-
var m,
|
|
2480
|
-
s.currentContent = (m = s.currentContent) !== null && m !== void 0 ? m : g.getContent(), s.currentContent !==
|
|
2481
|
-
var
|
|
2482
|
-
|
|
2509
|
+
var m, v, y = s.getInitialValue();
|
|
2510
|
+
s.currentContent = (m = s.currentContent) !== null && m !== void 0 ? m : g.getContent(), s.currentContent !== y && (s.currentContent = y, g.setContent(y), g.undoManager.clear(), g.undoManager.add(), g.setDirty(!1));
|
|
2511
|
+
var R = (v = s.props.disabled) !== null && v !== void 0 ? v : !1;
|
|
2512
|
+
je(s.editor, R ? "readonly" : "design"), s.props.init && ee(s.props.init.init_instance_callback) && s.props.init.init_instance_callback(g);
|
|
2483
2513
|
} });
|
|
2484
|
-
s.inline || (f.style.visibility = ""),
|
|
2514
|
+
s.inline || (f.style.visibility = ""), Be(f) && (f.value = s.getInitialValue()), h.init(k);
|
|
2485
2515
|
}
|
|
2486
|
-
}, s.id = s.props.id ||
|
|
2516
|
+
}, s.id = s.props.id || nt("tiny-react"), s.elementRef = d.createRef(), s.inline = (o = (r = s.props.inline) !== null && r !== void 0 ? r : (i = s.props.init) === null || i === void 0 ? void 0 : i.inline) !== null && o !== void 0 ? o : !1, s.boundHandlers = {}, s;
|
|
2487
2517
|
}
|
|
2488
2518
|
return Object.defineProperty(e.prototype, "view", {
|
|
2489
2519
|
get: function() {
|
|
@@ -2521,12 +2551,12 @@ var ce = function() {
|
|
|
2521
2551
|
}
|
|
2522
2552
|
if (this.props.disabled !== n.disabled) {
|
|
2523
2553
|
var a = (o = this.props.disabled) !== null && o !== void 0 ? o : !1;
|
|
2524
|
-
|
|
2554
|
+
je(this.editor, a ? "readonly" : "design");
|
|
2525
2555
|
}
|
|
2526
2556
|
}
|
|
2527
2557
|
}, e.prototype.componentDidMount = function() {
|
|
2528
2558
|
var n = this, r, i, o, s, a;
|
|
2529
|
-
if (
|
|
2559
|
+
if (te(this.view) !== null)
|
|
2530
2560
|
this.initialise();
|
|
2531
2561
|
else if (Array.isArray(this.props.tinymceScriptSrc) && this.props.tinymceScriptSrc.length === 0)
|
|
2532
2562
|
(i = (r = this.props).onScriptsLoadError) === null || i === void 0 || i.call(r, new Error("No `tinymce` global is present but the `tinymceScriptSrc` prop was an empty array."));
|
|
@@ -2538,7 +2568,7 @@ var ce = function() {
|
|
|
2538
2568
|
var f, h;
|
|
2539
2569
|
(h = (f = n.props).onScriptsLoadError) === null || h === void 0 || h.call(f, u);
|
|
2540
2570
|
};
|
|
2541
|
-
|
|
2571
|
+
xn.loadList(this.elementRef.current.ownerDocument, this.getScriptSources(), (a = (s = this.props.scriptLoading) === null || s === void 0 ? void 0 : s.delay) !== null && a !== void 0 ? a : 0, c, l);
|
|
2542
2572
|
}
|
|
2543
2573
|
}, e.prototype.componentWillUnmount = function() {
|
|
2544
2574
|
var n = this, r = this.editor;
|
|
@@ -2548,10 +2578,10 @@ var ce = function() {
|
|
|
2548
2578
|
}, e.prototype.render = function() {
|
|
2549
2579
|
return this.inline ? this.renderInline() : this.renderIframe();
|
|
2550
2580
|
}, e.prototype.changeEvents = function() {
|
|
2551
|
-
var n, r, i, o = (i = (r = (n =
|
|
2581
|
+
var n, r, i, o = (i = (r = (n = te(this.view)) === null || n === void 0 ? void 0 : n.Env) === null || r === void 0 ? void 0 : r.browser) === null || i === void 0 ? void 0 : i.isIE();
|
|
2552
2582
|
return o ? "change keyup compositionend setcontent CommentChange" : "change input compositionend setcontent CommentChange";
|
|
2553
2583
|
}, e.prototype.beforeInputEvent = function() {
|
|
2554
|
-
return
|
|
2584
|
+
return mn() ? "beforeinput SelectionChange" : "SelectionChange";
|
|
2555
2585
|
}, e.prototype.renderInline = function() {
|
|
2556
2586
|
var n = this.props.tagName, r = n === void 0 ? "div" : n;
|
|
2557
2587
|
return d.createElement(r, {
|
|
@@ -2578,7 +2608,7 @@ var ce = function() {
|
|
|
2578
2608
|
}, e.prototype.bindHandlers = function(n) {
|
|
2579
2609
|
var r = this;
|
|
2580
2610
|
if (this.editor !== void 0) {
|
|
2581
|
-
|
|
2611
|
+
dn(this.editor, n, this.props, this.boundHandlers, function(a) {
|
|
2582
2612
|
return r.props[a];
|
|
2583
2613
|
});
|
|
2584
2614
|
var i = function(a) {
|
|
@@ -2586,48 +2616,20 @@ var ce = function() {
|
|
|
2586
2616
|
}, o = i(n), s = i(this.props);
|
|
2587
2617
|
!o && s ? (this.editor.on(this.changeEvents(), this.handleEditorChange), this.editor.on(this.beforeInputEvent(), this.handleBeforeInput), this.editor.on("keydown", this.handleBeforeInputSpecial), this.editor.on("keyup", this.handleEditorChangeSpecial), this.editor.on("NewBlock", this.handleEditorChange)) : o && !s && (this.editor.off(this.changeEvents(), this.handleEditorChange), this.editor.off(this.beforeInputEvent(), this.handleBeforeInput), this.editor.off("keydown", this.handleBeforeInputSpecial), this.editor.off("keyup", this.handleEditorChangeSpecial), this.editor.off("NewBlock", this.handleEditorChange));
|
|
2588
2618
|
}
|
|
2589
|
-
}, e.propTypes =
|
|
2619
|
+
}, e.propTypes = hn, e.defaultProps = {
|
|
2590
2620
|
cloudChannel: "6"
|
|
2591
2621
|
}, e;
|
|
2592
2622
|
}(d.Component)
|
|
2593
2623
|
);
|
|
2594
|
-
const
|
|
2595
|
-
|
|
2596
|
-
signer: null
|
|
2597
|
-
}, In = ({ baseUrl: t, signer: e }) => {
|
|
2598
|
-
pe.baseUrl = t, pe.signer = e;
|
|
2599
|
-
}, Sn = () => {
|
|
2600
|
-
const t = window.location, { hostname: e } = t;
|
|
2601
|
-
return e === "localhost" || e === "127.0.0.1";
|
|
2602
|
-
}, tt = Sn(), nt = () => {
|
|
2603
|
-
var n;
|
|
2604
|
-
let t = window.location;
|
|
2605
|
-
const { host: e } = t;
|
|
2606
|
-
if (tt) {
|
|
2607
|
-
const r = (n = pe.baseUrl) == null ? void 0 : n.split("/");
|
|
2608
|
-
return r ? "https://" + (r == null ? void 0 : r[2]) : "https://vndev.hanbiro.com";
|
|
2609
|
-
} else {
|
|
2610
|
-
const r = localStorage.getItem("host") || e, i = r == null ? void 0 : r.split("/");
|
|
2611
|
-
return "https://" + (i == null ? void 0 : i[0]);
|
|
2612
|
-
}
|
|
2613
|
-
}, $n = () => {
|
|
2614
|
-
let t = window.location;
|
|
2615
|
-
if (tt)
|
|
2616
|
-
return nt() || "https://vndev.hanbiro.com/ngw";
|
|
2617
|
-
{
|
|
2618
|
-
window.location !== window.parent.location && (t = window.parent.location);
|
|
2619
|
-
const { hostname: e, protocol: n } = t;
|
|
2620
|
-
return [n, "//", e, "/ngw"].join("");
|
|
2621
|
-
}
|
|
2622
|
-
}, En = (t) => {
|
|
2623
|
-
const { isSimple: e, noImage: n } = t, r = 13, i = void 0, o = 0, s = "en", a = nt(), c = "jpeg,JPEG,jpg,JPG,jpe,JPE,jfi,jif,jfif,png,PNG,gif,GIF,bmp,BMP,webp,WEBP", l = {
|
|
2624
|
+
const En = (t) => {
|
|
2625
|
+
const { isSimple: e, noImage: n } = t, r = 13, i = void 0, o = 0, s = "en", a = ge(), c = "jpeg,JPEG,jpg,JPG,jpe,JPE,jfi,jif,jfif,png,PNG,gif,GIF,bmp,BMP,webp,WEBP", l = {
|
|
2624
2626
|
ko: '맑은고딕=Malgun Gothic;돋움="돋움",Dotum;돋움체="돋움체",DotumChe;굴림="굴림",Gulim;굴림체="굴림체",GulimChe;바탕="바탕",Batang;바탕체="바탕체",BatangChe;궁서="궁서",Gungseo;',
|
|
2625
2627
|
en: "MS PGothic=MS PGothic,Sans-serif;Meiryo UI=Meiryo UI,Sans-serif;HiraKakuProN-W3=HiraKakuProN-W3;MS PMincho=MS PMincho,Sans-serif;MS Gothic=MS Gothic,Sans-serif;MS Mincho=MS Mincho,Sans-serif;",
|
|
2626
2628
|
ch: "Microsoft YaHei=Microsoft YaHei,Sans-serif;"
|
|
2627
2629
|
}[s] + "Andale Mono=andale mono,times; Arial=arial,helvetica,sans-serif; Arial Black=arial black,avant garde; Book Antiqua=book antiqua,palatino; Comic Sans MS=comic sans ms,sans-serif; Courier New=courier new,courier; Georgia=georgia,palatino; Helvetica=helvetica; Impact=impact,chicago; Symbol=symbol; Tahoma=tahoma,arial,helvetica,sans-serif; Terminal=terminal,monaco; Times New Roman=times new roman,times; Trebuchet MS=trebuchet ms,geneva; Verdana=verdana,geneva; Webdings=webdings; Wingdings=wingdings,zapf dingbats;", u = (() => {
|
|
2628
2630
|
let m = window.location;
|
|
2629
|
-
const { hostname:
|
|
2630
|
-
return
|
|
2631
|
+
const { hostname: v } = m;
|
|
2632
|
+
return v === "localhost" || v === "127.0.0.1" ? `${a}/ngw/app/lib/tinymce/plugins/jbimages/ci/index.php?upload/dropupload` : `${a}/ngw/app/lib/tinymce/plugins/jbimages/ci/index.php?upload/dropupload`;
|
|
2631
2633
|
})();
|
|
2632
2634
|
let f, h = [];
|
|
2633
2635
|
e ? (f = "hanbiroclip", h = [
|
|
@@ -2648,30 +2650,30 @@ const pe = {
|
|
|
2648
2650
|
"fullscreen",
|
|
2649
2651
|
"removeformat"
|
|
2650
2652
|
]);
|
|
2651
|
-
const
|
|
2653
|
+
const k = (m) => {
|
|
2652
2654
|
m.on("init", () => {
|
|
2653
2655
|
setTimeout(() => {
|
|
2654
|
-
const
|
|
2655
|
-
m.execCommand("FontSize", !1, r),
|
|
2656
|
+
const v = m == null ? void 0 : m.getBody(), y = [];
|
|
2657
|
+
m.execCommand("FontSize", !1, r), y.push(`font-size: ${r}pt;`), (y == null ? void 0 : y.length) > 0 && (v == null || v.setAttribute("style", y.join(" "))), Number(o) && m.execCommand("Bold");
|
|
2656
2658
|
}, 0);
|
|
2657
|
-
}), n && m.on("BeforeSetContent", (
|
|
2658
|
-
/<img[\s\S]*?>/i.test(
|
|
2659
|
+
}), n && m.on("BeforeSetContent", (v) => {
|
|
2660
|
+
/<img[\s\S]*?>/i.test(v == null ? void 0 : v.content) && m.windowManager.alert("Image is not allowed!");
|
|
2659
2661
|
});
|
|
2660
2662
|
}, g = function(m) {
|
|
2661
|
-
const
|
|
2662
|
-
|
|
2663
|
-
const
|
|
2664
|
-
if (
|
|
2663
|
+
const v = document.createElement("input");
|
|
2664
|
+
v.setAttribute("type", "file"), v.setAttribute("accept", "image/*"), v.onchange = function(y) {
|
|
2665
|
+
const R = y.target, T = R.files && R.files[0];
|
|
2666
|
+
if (T) {
|
|
2665
2667
|
const $ = new FileReader();
|
|
2666
2668
|
$.onload = function() {
|
|
2667
|
-
const P = "blobid" + (/* @__PURE__ */ new Date()).getTime(), z = window.tinymce.activeEditor.editorUpload.blobCache,
|
|
2668
|
-
if (
|
|
2669
|
-
const
|
|
2670
|
-
z.add(
|
|
2669
|
+
const P = "blobid" + (/* @__PURE__ */ new Date()).getTime(), z = window.tinymce.activeEditor.editorUpload.blobCache, C = $.result;
|
|
2670
|
+
if (C && typeof C == "string") {
|
|
2671
|
+
const M = C.split(",")[1], Ce = z.create(P, T, M);
|
|
2672
|
+
z.add(Ce), m(Ce.blobUri(), { title: T.name });
|
|
2671
2673
|
}
|
|
2672
|
-
}, $.readAsDataURL(
|
|
2674
|
+
}, $.readAsDataURL(T);
|
|
2673
2675
|
}
|
|
2674
|
-
},
|
|
2676
|
+
}, v.click();
|
|
2675
2677
|
};
|
|
2676
2678
|
return {
|
|
2677
2679
|
defaultPlugins: f,
|
|
@@ -2680,14 +2682,14 @@ const pe = {
|
|
|
2680
2682
|
imageUploadUrl: u,
|
|
2681
2683
|
supportImageTypes: c,
|
|
2682
2684
|
fontfamily: l,
|
|
2683
|
-
setupFunction:
|
|
2685
|
+
setupFunction: k,
|
|
2684
2686
|
filePickerHandle: g,
|
|
2685
2687
|
defaultFontType: i,
|
|
2686
2688
|
defaultFontSize: r,
|
|
2687
2689
|
isFontWeightBold: Number(o) === 1
|
|
2688
2690
|
};
|
|
2689
2691
|
};
|
|
2690
|
-
class Cn extends
|
|
2692
|
+
class Cn extends S.Component {
|
|
2691
2693
|
constructor(n) {
|
|
2692
2694
|
super(n);
|
|
2693
2695
|
b(this, "editorRef", null);
|
|
@@ -2722,13 +2724,13 @@ class Cn extends E.Component {
|
|
|
2722
2724
|
placeholder: u = "",
|
|
2723
2725
|
options: f,
|
|
2724
2726
|
noImage: h = !1
|
|
2725
|
-
} = this.props, { showEditor:
|
|
2727
|
+
} = this.props, { showEditor: k } = this.state, {
|
|
2726
2728
|
defaultPlugins: g,
|
|
2727
2729
|
defaultToolbar: m,
|
|
2728
|
-
imageUploadBasePath:
|
|
2729
|
-
imageUploadUrl:
|
|
2730
|
-
supportImageTypes:
|
|
2731
|
-
fontfamily:
|
|
2730
|
+
imageUploadBasePath: v,
|
|
2731
|
+
imageUploadUrl: y,
|
|
2732
|
+
supportImageTypes: R,
|
|
2733
|
+
fontfamily: T,
|
|
2732
2734
|
setupFunction: $,
|
|
2733
2735
|
filePickerHandle: P,
|
|
2734
2736
|
defaultFontSize: z
|
|
@@ -2736,7 +2738,7 @@ class Cn extends E.Component {
|
|
|
2736
2738
|
isSimple: r,
|
|
2737
2739
|
noImage: h
|
|
2738
2740
|
});
|
|
2739
|
-
return /* @__PURE__ */
|
|
2741
|
+
return /* @__PURE__ */ S.createElement(
|
|
2740
2742
|
"div",
|
|
2741
2743
|
{
|
|
2742
2744
|
style: {
|
|
@@ -2746,8 +2748,8 @@ class Cn extends E.Component {
|
|
|
2746
2748
|
...c
|
|
2747
2749
|
}
|
|
2748
2750
|
},
|
|
2749
|
-
!
|
|
2750
|
-
|
|
2751
|
+
!k && /* @__PURE__ */ S.createElement(
|
|
2752
|
+
un,
|
|
2751
2753
|
{
|
|
2752
2754
|
style: {
|
|
2753
2755
|
position: "absolute",
|
|
@@ -2762,14 +2764,14 @@ class Cn extends E.Component {
|
|
|
2762
2764
|
}
|
|
2763
2765
|
}
|
|
2764
2766
|
),
|
|
2765
|
-
/* @__PURE__ */
|
|
2766
|
-
|
|
2767
|
+
/* @__PURE__ */ S.createElement(
|
|
2768
|
+
Sn,
|
|
2767
2769
|
{
|
|
2768
2770
|
disabled: i,
|
|
2769
2771
|
onEditorChange: this.handleEditorChange,
|
|
2770
2772
|
value: n,
|
|
2771
|
-
onInit: (
|
|
2772
|
-
this.setState({ showEditor: !0 }), this.editorRef =
|
|
2773
|
+
onInit: (C, M) => {
|
|
2774
|
+
this.setState({ showEditor: !0 }), this.editorRef = M;
|
|
2773
2775
|
},
|
|
2774
2776
|
onClick: a,
|
|
2775
2777
|
plugins: g,
|
|
@@ -2791,12 +2793,12 @@ class Cn extends E.Component {
|
|
|
2791
2793
|
verify_html: !0,
|
|
2792
2794
|
toolbar: m,
|
|
2793
2795
|
toolbar_mode: "sliding",
|
|
2794
|
-
images_upload_base_path:
|
|
2795
|
-
images_upload_url:
|
|
2796
|
+
images_upload_base_path: v,
|
|
2797
|
+
images_upload_url: y,
|
|
2796
2798
|
images_upload_credentials: !0,
|
|
2797
2799
|
automatic_uploads: !0,
|
|
2798
|
-
images_file_types:
|
|
2799
|
-
font_family_formats:
|
|
2800
|
+
images_file_types: R,
|
|
2801
|
+
font_family_formats: T,
|
|
2800
2802
|
paste_data_images: !0,
|
|
2801
2803
|
a11y_advanced_options: !0,
|
|
2802
2804
|
image_advtab: !0,
|
|
@@ -2808,7 +2810,7 @@ class Cn extends E.Component {
|
|
|
2808
2810
|
invalid_elements: "img"
|
|
2809
2811
|
},
|
|
2810
2812
|
content_style: `
|
|
2811
|
-
${
|
|
2813
|
+
${pn}
|
|
2812
2814
|
[data-mce-placeholder]::before {
|
|
2813
2815
|
color: rgba(0, 23, 55, 0.42) !important;
|
|
2814
2816
|
}
|
|
@@ -2842,7 +2844,7 @@ class Rn extends d.Component {
|
|
|
2842
2844
|
this.setState((n) => ({ open: !n.open }));
|
|
2843
2845
|
});
|
|
2844
2846
|
b(this, "handleLangChange", (n) => {
|
|
2845
|
-
const r =
|
|
2847
|
+
const r = se.find((i) => i.value === n.target.value);
|
|
2846
2848
|
this.props.setLang(r || null);
|
|
2847
2849
|
});
|
|
2848
2850
|
this.state = { open: !1 }, this.containerRef = d.createRef(), this.popperRef = d.createRef();
|
|
@@ -2938,7 +2940,7 @@ class Rn extends d.Component {
|
|
|
2938
2940
|
}
|
|
2939
2941
|
},
|
|
2940
2942
|
/* @__PURE__ */ d.createElement("option", { value: "", disabled: !0 }, "Select Language"),
|
|
2941
|
-
|
|
2943
|
+
se.map((f) => /* @__PURE__ */ d.createElement("option", { key: f.value, value: f.value }, f.label))
|
|
2942
2944
|
)
|
|
2943
2945
|
),
|
|
2944
2946
|
/* @__PURE__ */ d.createElement(
|
|
@@ -2977,7 +2979,7 @@ class Rn extends d.Component {
|
|
|
2977
2979
|
},
|
|
2978
2980
|
className: "icon-button"
|
|
2979
2981
|
},
|
|
2980
|
-
/* @__PURE__ */ d.createElement(
|
|
2982
|
+
/* @__PURE__ */ d.createElement(J, null)
|
|
2981
2983
|
)
|
|
2982
2984
|
),
|
|
2983
2985
|
/* @__PURE__ */ d.createElement(
|
|
@@ -3009,51 +3011,49 @@ class zn extends d.Component {
|
|
|
3009
3011
|
this.setState({ message: n.target.value });
|
|
3010
3012
|
});
|
|
3011
3013
|
b(this, "handleSubmit", async () => {
|
|
3012
|
-
const { message: n, messages: r, lang: i, originalEmail: o, conversationId: s } = this.state
|
|
3014
|
+
const { message: n, messages: r, lang: i, originalEmail: o, conversationId: s } = this.state;
|
|
3013
3015
|
if (!n.trim()) return;
|
|
3014
|
-
const
|
|
3015
|
-
let
|
|
3016
|
-
id:
|
|
3016
|
+
const a = ut();
|
|
3017
|
+
let c = {
|
|
3018
|
+
id: a,
|
|
3017
3019
|
question: n,
|
|
3018
3020
|
subject: "",
|
|
3019
3021
|
body: "",
|
|
3020
3022
|
created_at: (/* @__PURE__ */ new Date()).getTime(),
|
|
3021
3023
|
isLoading: !0
|
|
3022
3024
|
};
|
|
3023
|
-
const
|
|
3025
|
+
const l = [...r, c];
|
|
3024
3026
|
this.setState({
|
|
3025
|
-
messages:
|
|
3027
|
+
messages: l,
|
|
3026
3028
|
message: "",
|
|
3027
3029
|
isSending: !0
|
|
3028
3030
|
});
|
|
3029
|
-
const
|
|
3031
|
+
const u = {
|
|
3030
3032
|
query: n,
|
|
3031
3033
|
default_language: i ? i.value : "KR",
|
|
3032
3034
|
original_email: o,
|
|
3033
3035
|
debug_grpc: !0
|
|
3034
3036
|
};
|
|
3035
|
-
s && (
|
|
3036
|
-
setContent: (
|
|
3037
|
-
this.setState((
|
|
3038
|
-
(
|
|
3039
|
-
...
|
|
3037
|
+
s && (u.conversation_id = s), await Et(u, {
|
|
3038
|
+
setContent: (g) => {
|
|
3039
|
+
this.setState((m) => ({ messages: m.messages.map(
|
|
3040
|
+
(y) => y.id === a ? {
|
|
3041
|
+
...y,
|
|
3040
3042
|
subject: "Some thing not used",
|
|
3041
|
-
body:
|
|
3043
|
+
body: g,
|
|
3042
3044
|
isLoading: !1,
|
|
3043
3045
|
created_at: (/* @__PURE__ */ new Date()).getTime()
|
|
3044
|
-
} :
|
|
3046
|
+
} : y
|
|
3045
3047
|
) }));
|
|
3046
3048
|
},
|
|
3047
|
-
setIsLoading: (
|
|
3048
|
-
this.setState((
|
|
3049
|
-
(
|
|
3049
|
+
setIsLoading: (g) => {
|
|
3050
|
+
this.setState((m) => ({ messages: m.messages.map(
|
|
3051
|
+
(y) => y.id === a ? { ...y, isLoading: g } : y
|
|
3050
3052
|
) }));
|
|
3051
3053
|
},
|
|
3052
|
-
setConversationId: (
|
|
3053
|
-
this.setState({ conversationId:
|
|
3054
|
-
}
|
|
3055
|
-
signer: a,
|
|
3056
|
-
baseUrl: c
|
|
3054
|
+
setConversationId: (g) => {
|
|
3055
|
+
this.setState({ conversationId: g });
|
|
3056
|
+
}
|
|
3057
3057
|
}), this.setState({ isSending: !1 });
|
|
3058
3058
|
});
|
|
3059
3059
|
b(this, "handleKeyDown", (n) => {
|
|
@@ -3069,7 +3069,7 @@ class zn extends d.Component {
|
|
|
3069
3069
|
message: "",
|
|
3070
3070
|
messages: [],
|
|
3071
3071
|
isSending: !1,
|
|
3072
|
-
lang:
|
|
3072
|
+
lang: se[0],
|
|
3073
3073
|
conversationId: "",
|
|
3074
3074
|
originalEmail: ""
|
|
3075
3075
|
};
|
|
@@ -3091,7 +3091,7 @@ class zn extends d.Component {
|
|
|
3091
3091
|
}
|
|
3092
3092
|
},
|
|
3093
3093
|
o.length > 0 ? /* @__PURE__ */ d.createElement(
|
|
3094
|
-
|
|
3094
|
+
ln,
|
|
3095
3095
|
{
|
|
3096
3096
|
items: o,
|
|
3097
3097
|
onApply: n,
|
|
@@ -3201,9 +3201,9 @@ class zn extends d.Component {
|
|
|
3201
3201
|
}
|
|
3202
3202
|
export {
|
|
3203
3203
|
zn as ChatAIDraft,
|
|
3204
|
-
|
|
3205
|
-
|
|
3206
|
-
|
|
3204
|
+
et as LoadingCircular,
|
|
3205
|
+
un as LoadingContainer,
|
|
3206
|
+
ge as getBaseUrl,
|
|
3207
3207
|
$n as getGroupwareUrl,
|
|
3208
3208
|
In as initHanbiroReactSDK
|
|
3209
3209
|
};
|