@das-fed/ui 7.1.0-dev.25 → 7.1.0-dev.26
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/esm-map.json +1 -0
- package/package.json +5 -5
- package/packages/business-components/ai-panel/i18n/index.d.ts +0 -62
- package/packages/business-components/ai-panel/{index-CKFBXTtX.js → index-8yffh0Id.js} +676 -687
- package/packages/business-components/ai-panel/index-8yffh0Id.js.gz +0 -0
- package/packages/business-components/ai-panel/{index-C04Wttd4.js → index-OwRrV6K8.js} +1 -1
- package/packages/business-components/ai-panel/index-OwRrV6K8.js.gz +0 -0
- package/packages/business-components/ai-panel/index.js +1 -1
- package/packages/business-components/ai-panel/style.css +1 -1
- package/packages/business-components/ai-panel/style.css.gz +0 -0
- package/packages/business-components/area-phone-select/i18n/index.d.ts +0 -1
- package/packages/business-components/area-phone-select/index.js +1 -1
- package/packages/business-components/area-phone-select/index.js.gz +0 -0
- package/packages/business-components/change-enterprises/i18n/index.d.ts +0 -3
- package/packages/business-components/change-enterprises/index.js +3 -3
- package/packages/business-components/change-enterprises/index.js.gz +0 -0
- package/packages/business-components/change-pwd/i18n/index.d.ts +0 -18
- package/packages/business-components/change-pwd/index.js +50 -53
- package/packages/business-components/change-pwd/index.js.gz +0 -0
- package/packages/business-components/currency-page/i18n/index.d.ts +0 -4
- package/packages/business-components/currency-page/index.js +5 -7
- package/packages/business-components/currency-page/index.js.gz +0 -0
- package/packages/business-components/device-panel/i18n/index.d.ts +16 -254
- package/packages/business-components/device-panel/index.js +12596 -12022
- package/packages/business-components/device-panel/index.js.gz +0 -0
- package/packages/business-components/device-panel/src/apis.d.ts +2 -0
- package/packages/business-components/device-panel/src/components/alarmDevicePanel/alarmScreenshot/components/currentAlarmScreenshot.vue.d.ts +6 -0
- package/packages/business-components/device-panel/src/components/alarmDevicePanel/alarmScreenshot/components/currentList.vue.d.ts +8 -0
- package/packages/business-components/device-panel/src/components/alarmDevicePanel/alarmScreenshot/components/hisList.vue.d.ts +8 -0
- package/packages/business-components/device-panel/src/components/alarmDevicePanel/alarmScreenshot/components/historyAlarmScreenshot.vue.d.ts +6 -0
- package/packages/business-components/device-panel/src/components/alarmDevicePanel/alarmScreenshot/index.vue.d.ts +2 -0
- package/packages/business-components/device-panel/src/components/alarmDevicePanel/hooks/use-alarm-screenshot.d.ts +6 -0
- package/packages/business-components/device-panel/src/components/devicePanelModal/alarmScreenshot/components/currentAlarmScreenshot.vue.d.ts +6 -0
- package/packages/business-components/device-panel/src/components/devicePanelModal/alarmScreenshot/components/currentList.vue.d.ts +8 -0
- package/packages/business-components/device-panel/src/components/devicePanelModal/alarmScreenshot/components/hisList.vue.d.ts +8 -0
- package/packages/business-components/device-panel/src/components/devicePanelModal/alarmScreenshot/components/historyAlarmScreenshot.vue.d.ts +6 -0
- package/packages/business-components/device-panel/src/components/devicePanelModal/alarmScreenshot/index.vue.d.ts +2 -0
- package/packages/business-components/device-panel/src/components/devicePanelModal/hooks/use-alarm-screenshot.d.ts +6 -0
- package/packages/business-components/device-panel/style.css +1 -1
- package/packages/business-components/device-panel/style.css.gz +0 -0
- package/packages/business-components/export-button/i18n/index.d.ts +0 -11
- package/packages/business-components/export-button/index.js +19 -21
- package/packages/business-components/export-button/index.js.gz +0 -0
- package/packages/business-components/import-button/i18n/index.d.ts +0 -30
- package/packages/business-components/import-button/index.js +127 -131
- package/packages/business-components/import-button/index.js.gz +0 -0
- package/packages/business-components/model-table-dialog/i18n/index.d.ts +0 -6
- package/packages/business-components/model-table-dialog/index.js +6 -6
- package/packages/business-components/model-table-dialog/index.js.gz +0 -0
- package/packages/business-components/payment/i18n/index.d.ts +0 -13
- package/packages/business-components/payment/index.js +53 -53
- package/packages/business-components/payment/index.js.gz +0 -0
- package/packages/business-components/process-configuration/i18n/index.d.ts +0 -30
- package/packages/business-components/process-configuration/index.js +73 -75
- package/packages/business-components/process-configuration/index.js.gz +0 -0
- package/packages/business-components/process-form/i18n/index.d.ts +0 -84
- package/packages/business-components/process-form/index.js +75 -84
- package/packages/business-components/process-form/index.js.gz +0 -0
- package/packages/business-components/process-log/i18n/index.d.ts +0 -9
- package/packages/business-components/process-log/index.js +99 -99
- package/packages/business-components/process-log/index.js.gz +0 -0
- package/packages/business-components/process-search-form/i18n/index.d.ts +0 -9
- package/packages/business-components/process-search-form/index.js +9 -9
- package/packages/business-components/process-search-form/index.js.gz +0 -0
- package/packages/business-components/process-table/i18n/index.d.ts +0 -8
- package/packages/business-components/process-table/index.js +8 -8
- package/packages/business-components/process-table/index.js.gz +0 -0
- package/packages/business-components/update-confirm-dialog/i18n/index.d.ts +0 -5
- package/packages/business-components/update-confirm-dialog/index.js +5 -7
- package/packages/business-components/update-confirm-dialog/index.js.gz +0 -0
- package/packages/business-components/upload-file/i18n/index.d.ts +0 -1
- package/packages/business-components/upload-file/index.js +24 -25
- package/packages/business-components/upload-file/index.js.gz +0 -0
- package/packages/business-components/urgent-panel/i18n/index.d.ts +0 -104
- package/packages/business-components/urgent-panel/index.js +96 -104
- package/packages/business-components/urgent-panel/index.js.gz +0 -0
- package/packages/business-components/user-org-dialog/i18n/index.d.ts +0 -18
- package/packages/business-components/user-org-dialog/index.js +117 -118
- package/packages/business-components/user-org-dialog/index.js.gz +0 -0
- package/packages/business-components/video-dialog/i18n/index.d.ts +0 -20
- package/packages/business-components/video-dialog/index.js +20 -20
- package/packages/business-components/video-dialog/index.js.gz +0 -0
- package/packages/components/calendar/i18n/index.d.ts +0 -46
- package/packages/components/calendar/index.js +99 -99
- package/packages/components/calendar/index.js.gz +0 -0
- package/packages/components/cascader/i18n/index.d.ts +0 -1
- package/packages/components/cascader/index.js +1 -1
- package/packages/components/cascader/index.js.gz +0 -0
- package/packages/components/color-picker/i18n/index.d.ts +0 -1
- package/packages/components/color-picker/index.js +1 -1
- package/packages/components/color-picker/index.js.gz +0 -0
- package/packages/components/custom-search-item/i18n/index.d.ts +0 -1
- package/packages/components/custom-search-item/index.js +1 -1
- package/packages/components/custom-search-item/index.js.gz +0 -0
- package/packages/components/date-picker/i18n/index.d.ts +0 -6
- package/packages/components/date-picker/index.js +6 -6
- package/packages/components/date-picker/index.js.gz +0 -0
- package/packages/components/dialog/i18n/index.d.ts +0 -6
- package/packages/components/dialog/index.js +27 -27
- package/packages/components/dialog/index.js.gz +0 -0
- package/packages/components/dimple-layout/i18n/index.d.ts +0 -10
- package/packages/components/dimple-layout/index.js +9 -10
- package/packages/components/dimple-layout/index.js.gz +0 -0
- package/packages/components/dropdown/i18n/index.d.ts +0 -1
- package/packages/components/dropdown/index.js +9 -9
- package/packages/components/dropdown/index.js.gz +0 -0
- package/packages/components/empty/i18n/index.d.ts +0 -1
- package/packages/components/empty/index.js +1 -1
- package/packages/components/empty/index.js.gz +0 -0
- package/packages/components/hls-player/i18n/index.d.ts +0 -2
- package/packages/components/hls-player/index.js +1 -2
- package/packages/components/hls-player/index.js.gz +0 -0
- package/packages/components/image-upload/i18n/index.d.ts +0 -7
- package/packages/components/image-upload/index.js +15 -19
- package/packages/components/image-upload/index.js.gz +0 -0
- package/packages/components/input/i18n/index.d.ts +0 -3
- package/packages/components/input/index.js +3 -3
- package/packages/components/input/index.js.gz +0 -0
- package/packages/components/input-dialog-select/i18n/index.d.ts +0 -2
- package/packages/components/input-dialog-select/index.js +10 -10
- package/packages/components/input-dialog-select/index.js.gz +0 -0
- package/packages/components/live-player/i18n/index.d.ts +0 -2
- package/packages/components/live-player/index.js +1 -2
- package/packages/components/live-player/index.js.gz +0 -0
- package/packages/components/loading/i18n/index.d.ts +0 -1
- package/packages/components/loading/index.js +1 -1
- package/packages/components/loading/index.js.gz +0 -0
- package/packages/components/map/i18n/index.d.ts +0 -6
- package/packages/components/map/index.js +2 -6
- package/packages/components/map/index.js.gz +0 -0
- package/packages/components/menu-aside/i18n/index.d.ts +0 -1
- package/packages/components/menu-aside/index.js +1 -1
- package/packages/components/menu-aside/index.js.gz +0 -0
- package/packages/components/message/i18n/index.d.ts +0 -1
- package/packages/components/message/index.js +1 -1
- package/packages/components/message/index.js.gz +0 -0
- package/packages/components/notification/i18n/index.d.ts +0 -1
- package/packages/components/notification/index.js +4 -4
- package/packages/components/notification/index.js.gz +0 -0
- package/packages/components/pagination/i18n/index.d.ts +0 -4
- package/packages/components/pagination/index.js +17 -17
- package/packages/components/pagination/index.js.gz +0 -0
- package/packages/components/popover/i18n/index.d.ts +0 -2
- package/packages/components/popover/index.js +2 -2
- package/packages/components/popover/index.js.gz +0 -0
- package/packages/components/preview/i18n/index.d.ts +0 -1
- package/packages/components/preview/index.js +1 -3
- package/packages/components/preview/index.js.gz +0 -0
- package/packages/components/rich-editor/i18n/index.d.ts +0 -4
- package/packages/components/rich-editor/index.d.ts +2 -1
- package/packages/components/rich-editor/index.js +1 -4
- package/packages/components/rich-editor/index.js.gz +0 -0
- package/packages/components/search-form/i18n/index.d.ts +0 -7
- package/packages/components/search-form/index.js +7 -7
- package/packages/components/search-form/index.js.gz +0 -0
- package/packages/components/select/i18n/index.d.ts +0 -4
- package/packages/components/select/index.js +3 -4
- package/packages/components/select/index.js.gz +0 -0
- package/packages/components/select-list/i18n/index.d.ts +0 -4
- package/packages/components/select-list/index.js +4 -4
- package/packages/components/select-list/index.js.gz +0 -0
- package/packages/components/special-range-picker-month/i18n/index.d.ts +0 -4
- package/packages/components/special-range-picker-month/index.js +4 -4
- package/packages/components/special-range-picker-month/index.js.gz +0 -0
- package/packages/components/special-range-picker-year/i18n/index.d.ts +0 -3
- package/packages/components/special-range-picker-year/index.js +3 -3
- package/packages/components/special-range-picker-year/index.js.gz +0 -0
- package/packages/components/spin/i18n/index.d.ts +0 -1
- package/packages/components/spin/index.js +1 -1
- package/packages/components/spin/index.js.gz +0 -0
- package/packages/components/table/i18n/index.d.ts +0 -20
- package/packages/components/table/index.js +25 -28
- package/packages/components/table/index.js.gz +0 -0
- package/packages/components/table/style.css +1 -1
- package/packages/components/table/style.css.gz +0 -0
- package/packages/components/tabs/i18n/index.d.ts +0 -3
- package/packages/components/tabs/index.js +31 -31
- package/packages/components/tabs/index.js.gz +0 -0
- package/packages/components/tooltip/i18n/index.d.ts +0 -1
- package/packages/components/tooltip/index.js +1 -1
- package/packages/components/tooltip/index.js.gz +0 -0
- package/packages/components/tree/i18n/index.d.ts +40 -1
- package/packages/components/tree/index.js +304 -290
- package/packages/components/tree/index.js.gz +0 -0
- package/packages/components/tree-v2/i18n/index.d.ts +0 -21
- package/packages/components/tree-v2/index.js +8 -11
- package/packages/components/tree-v2/index.js.gz +0 -0
- package/packages/components/upload/i18n/index.d.ts +0 -6
- package/packages/components/upload/index.js +24 -25
- package/packages/components/upload/index.js.gz +0 -0
- package/packages/components/virtual-tree/i18n/index.d.ts +1 -37
- package/packages/components/virtual-tree/index.js +49 -62
- package/packages/components/virtual-tree/index.js.gz +0 -0
- package/packages/business-components/ai-panel/index-C04Wttd4.js.gz +0 -0
- package/packages/business-components/ai-panel/index-CKFBXTtX.js.gz +0 -0
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { defineAsyncComponent as lt, ref as N, watch as bu, h as dt, reactive as ft, defineComponent as
|
|
1
|
+
import { defineAsyncComponent as lt, ref as N, watch as bu, h as dt, reactive as ft, defineComponent as cu, onMounted as Ou, createElementBlock as P, openBlock as F, createElementVNode as v, toDisplayString as U, computed as lu, createCommentVNode as z, createVNode as j, unref as y, normalizeClass as Mu, createBlock as Y, withCtx as W, Fragment as Lu, renderList as Wu, withDirectives as Cu, withKeys as Xt, vModelText as Yt, withModifiers as Se, vShow as $u, onBeforeUnmount as ht, resolveDirective as u0, nextTick as Ce, Transition as e0, normalizeStyle as t0 } from "vue";
|
|
2
2
|
import { withInstall as n0 } from "@das-fed/utils/with-install/index";
|
|
3
3
|
import { useRoute as r0 } from "vue-router";
|
|
4
4
|
import { DasIconClose2 as o0 } from "@das-fed/ui/packages/icons/close-2/index";
|
|
5
5
|
import { t as I, setI18nRule as i0 } from "@das-fed/web/packages/i18n/index";
|
|
6
|
-
import { DasIconAudioing as
|
|
7
|
-
import { DasIconCloseaudio as
|
|
6
|
+
import { DasIconAudioing as c0 } from "@das-fed/ui/packages/icons/audioing/index";
|
|
7
|
+
import { DasIconCloseaudio as a0 } from "@das-fed/ui/packages/icons/closeaudio/index";
|
|
8
8
|
import { DasIconLishihuihua as s0 } from "@das-fed/ui/packages/icons/lishihuihua/index";
|
|
9
9
|
import { DasScrollbar as Ie } from "@das-fed/ui/packages/components/scrollbar/index";
|
|
10
10
|
import { DasTooltip as gu } from "@das-fed/ui/packages/components/tooltip/index";
|
|
@@ -48,18 +48,18 @@ let Vu = (u = 21) => {
|
|
|
48
48
|
}
|
|
49
49
|
return e;
|
|
50
50
|
};
|
|
51
|
-
const T0 = lt(() => import("./index-
|
|
51
|
+
const T0 = lt(() => import("./index-OwRrV6K8.js")), z0 = () => {
|
|
52
52
|
const u = N(), e = N(!1);
|
|
53
53
|
let t = !1;
|
|
54
|
-
const n = (
|
|
55
|
-
e.value && (t =
|
|
54
|
+
const n = (c) => {
|
|
55
|
+
e.value && (t = c, e.value = !1);
|
|
56
56
|
};
|
|
57
57
|
return {
|
|
58
58
|
folderDialogVue: () => dt(T0, {
|
|
59
59
|
dialogShow: e.value,
|
|
60
60
|
content: u.value,
|
|
61
|
-
onSubmit: (
|
|
62
|
-
n(
|
|
61
|
+
onSubmit: (c) => {
|
|
62
|
+
n(c || !0);
|
|
63
63
|
},
|
|
64
64
|
onCancel: () => {
|
|
65
65
|
n(!1);
|
|
@@ -68,9 +68,9 @@ const T0 = lt(() => import("./index-C04Wttd4.js")), z0 = () => {
|
|
|
68
68
|
n(!1);
|
|
69
69
|
}
|
|
70
70
|
}),
|
|
71
|
-
showFolderDialog: async (
|
|
72
|
-
const
|
|
73
|
-
i(t),
|
|
71
|
+
showFolderDialog: async (c) => (u.value = c, e.value = !0, new Promise((i) => {
|
|
72
|
+
const a = bu(() => e.value, (s) => {
|
|
73
|
+
i(t), a();
|
|
74
74
|
});
|
|
75
75
|
}))
|
|
76
76
|
};
|
|
@@ -154,8 +154,8 @@ var nu = function(u, e) {
|
|
|
154
154
|
const n = this.xhr.responseText.substring(this.progress);
|
|
155
155
|
this.progress += n.length;
|
|
156
156
|
const r = (this.chunk + n).split(/(\r\n\r\n|\r\r|\n\n)/g), o = r.pop();
|
|
157
|
-
r.forEach((function(
|
|
158
|
-
|
|
157
|
+
r.forEach((function(c) {
|
|
158
|
+
c.trim().length > 0 && this.dispatchEvent(this._parseEventChunk(c));
|
|
159
159
|
}).bind(this)), this.chunk = o;
|
|
160
160
|
}, this._onStreamLoaded = function(t) {
|
|
161
161
|
this._onStreamProgress(t), this.dispatchEvent(this._parseEventChunk(this.chunk)), this.chunk = "", this._markClosed();
|
|
@@ -165,17 +165,17 @@ var nu = function(u, e) {
|
|
|
165
165
|
this.debug;
|
|
166
166
|
const n = { id: null, retry: null, data: null, event: null };
|
|
167
167
|
t.split(/\n|\r\n|\r/).forEach((function(o) {
|
|
168
|
-
const
|
|
169
|
-
let i,
|
|
170
|
-
if (
|
|
171
|
-
const s = o[
|
|
172
|
-
i = o.substring(0,
|
|
173
|
-
} else if (
|
|
174
|
-
i = o,
|
|
168
|
+
const c = o.indexOf(this.FIELD_SEPARATOR);
|
|
169
|
+
let i, a;
|
|
170
|
+
if (c > 0) {
|
|
171
|
+
const s = o[c + 1] === " " ? 2 : 1;
|
|
172
|
+
i = o.substring(0, c), a = o.substring(c + s);
|
|
173
|
+
} else if (c < 0)
|
|
174
|
+
i = o, a = "";
|
|
175
175
|
else
|
|
176
176
|
return;
|
|
177
177
|
i in n && (i === "data" && n[i] !== null ? n.data += `
|
|
178
|
-
` +
|
|
178
|
+
` + a : n[i] = a);
|
|
179
179
|
}).bind(this)), n.id !== null && (this.lastEventId = n.id);
|
|
180
180
|
const r = new CustomEvent(n.event || "message");
|
|
181
181
|
return r.id = n.id, r.data = n.data || "", r.lastEventId = this.lastEventId, r;
|
|
@@ -184,8 +184,8 @@ var nu = function(u, e) {
|
|
|
184
184
|
const t = {}, n = this.xhr.getAllResponseHeaders().trim().split(`\r
|
|
185
185
|
`);
|
|
186
186
|
for (const o of n) {
|
|
187
|
-
const [
|
|
188
|
-
t[
|
|
187
|
+
const [c, ...i] = o.split(":"), a = i.join(":").trim();
|
|
188
|
+
t[c.trim().toLowerCase()] = t[c.trim().toLowerCase()] || [], t[c.trim().toLowerCase()].push(a);
|
|
189
189
|
}
|
|
190
190
|
const r = new CustomEvent("open");
|
|
191
191
|
r.responseCode = this.xhr.status, r.headers = t, this.dispatchEvent(r), this._setReadyState(nu.OPEN);
|
|
@@ -208,7 +208,7 @@ nu.CLOSED = 2;
|
|
|
208
208
|
typeof exports < "u" && (exports.SSE = nu);
|
|
209
209
|
const L0 = { class: "das-ai-use-chat-content" }, B0 = {
|
|
210
210
|
name: "useChat"
|
|
211
|
-
}, q0 = /* @__PURE__ */
|
|
211
|
+
}, q0 = /* @__PURE__ */ cu({
|
|
212
212
|
...B0,
|
|
213
213
|
props: {
|
|
214
214
|
item: { default: {} }
|
|
@@ -240,12 +240,12 @@ const L0 = { class: "das-ai-use-chat-content" }, B0 = {
|
|
|
240
240
|
);
|
|
241
241
|
};
|
|
242
242
|
}
|
|
243
|
-
}),
|
|
243
|
+
}), au = (u, e) => {
|
|
244
244
|
const t = u.__vccOpts || u;
|
|
245
245
|
for (const [n, r] of e)
|
|
246
246
|
t[n] = r;
|
|
247
247
|
return t;
|
|
248
|
-
}, O0 = /* @__PURE__ */
|
|
248
|
+
}, O0 = /* @__PURE__ */ au(q0, [["__scopeId", "data-v-e444807d"]]);
|
|
249
249
|
var M0 = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
250
250
|
function R0(u) {
|
|
251
251
|
return u && u.__esModule && Object.prototype.hasOwnProperty.call(u, "default") ? u.default : u;
|
|
@@ -268,8 +268,8 @@ var At = { exports: {} };
|
|
|
268
268
|
/***/
|
|
269
269
|
686: (
|
|
270
270
|
/***/
|
|
271
|
-
function(o,
|
|
272
|
-
i.d(
|
|
271
|
+
function(o, c, i) {
|
|
272
|
+
i.d(c, {
|
|
273
273
|
default: function() {
|
|
274
274
|
return (
|
|
275
275
|
/* binding */
|
|
@@ -277,7 +277,7 @@ var At = { exports: {} };
|
|
|
277
277
|
);
|
|
278
278
|
}
|
|
279
279
|
});
|
|
280
|
-
var
|
|
280
|
+
var a = i(279), s = /* @__PURE__ */ i.n(a), l = i(370), d = /* @__PURE__ */ i.n(l), _ = i(817), h = /* @__PURE__ */ i.n(_);
|
|
281
281
|
function f(q) {
|
|
282
282
|
try {
|
|
283
283
|
return document.execCommand(q);
|
|
@@ -535,26 +535,26 @@ var At = { exports: {} };
|
|
|
535
535
|
828: (
|
|
536
536
|
/***/
|
|
537
537
|
function(o) {
|
|
538
|
-
var
|
|
538
|
+
var c = 9;
|
|
539
539
|
if (typeof Element < "u" && !Element.prototype.matches) {
|
|
540
540
|
var i = Element.prototype;
|
|
541
541
|
i.matches = i.matchesSelector || i.mozMatchesSelector || i.msMatchesSelector || i.oMatchesSelector || i.webkitMatchesSelector;
|
|
542
542
|
}
|
|
543
|
-
function
|
|
544
|
-
for (; s && s.nodeType !==
|
|
543
|
+
function a(s, l) {
|
|
544
|
+
for (; s && s.nodeType !== c; ) {
|
|
545
545
|
if (typeof s.matches == "function" && s.matches(l))
|
|
546
546
|
return s;
|
|
547
547
|
s = s.parentNode;
|
|
548
548
|
}
|
|
549
549
|
}
|
|
550
|
-
o.exports =
|
|
550
|
+
o.exports = a;
|
|
551
551
|
}
|
|
552
552
|
),
|
|
553
553
|
/***/
|
|
554
554
|
438: (
|
|
555
555
|
/***/
|
|
556
|
-
function(o,
|
|
557
|
-
var
|
|
556
|
+
function(o, c, i) {
|
|
557
|
+
var a = i(828);
|
|
558
558
|
function s(_, h, f, g, A) {
|
|
559
559
|
var C = d.apply(this, arguments);
|
|
560
560
|
return _.addEventListener(f, C, A), {
|
|
@@ -570,7 +570,7 @@ var At = { exports: {} };
|
|
|
570
570
|
}
|
|
571
571
|
function d(_, h, f, g) {
|
|
572
572
|
return function(A) {
|
|
573
|
-
A.delegateTarget =
|
|
573
|
+
A.delegateTarget = a(A.target, h), A.delegateTarget && g.call(_, A);
|
|
574
574
|
};
|
|
575
575
|
}
|
|
576
576
|
o.exports = l;
|
|
@@ -579,37 +579,37 @@ var At = { exports: {} };
|
|
|
579
579
|
/***/
|
|
580
580
|
879: (
|
|
581
581
|
/***/
|
|
582
|
-
function(o,
|
|
583
|
-
|
|
582
|
+
function(o, c) {
|
|
583
|
+
c.node = function(i) {
|
|
584
584
|
return i !== void 0 && i instanceof HTMLElement && i.nodeType === 1;
|
|
585
|
-
},
|
|
586
|
-
var
|
|
587
|
-
return i !== void 0 && (
|
|
588
|
-
},
|
|
585
|
+
}, c.nodeList = function(i) {
|
|
586
|
+
var a = Object.prototype.toString.call(i);
|
|
587
|
+
return i !== void 0 && (a === "[object NodeList]" || a === "[object HTMLCollection]") && "length" in i && (i.length === 0 || c.node(i[0]));
|
|
588
|
+
}, c.string = function(i) {
|
|
589
589
|
return typeof i == "string" || i instanceof String;
|
|
590
|
-
},
|
|
591
|
-
var
|
|
592
|
-
return
|
|
590
|
+
}, c.fn = function(i) {
|
|
591
|
+
var a = Object.prototype.toString.call(i);
|
|
592
|
+
return a === "[object Function]";
|
|
593
593
|
};
|
|
594
594
|
}
|
|
595
595
|
),
|
|
596
596
|
/***/
|
|
597
597
|
370: (
|
|
598
598
|
/***/
|
|
599
|
-
function(o,
|
|
600
|
-
var
|
|
599
|
+
function(o, c, i) {
|
|
600
|
+
var a = i(879), s = i(438);
|
|
601
601
|
function l(f, g, A) {
|
|
602
602
|
if (!f && !g && !A)
|
|
603
603
|
throw new Error("Missing required arguments");
|
|
604
|
-
if (!
|
|
604
|
+
if (!a.string(g))
|
|
605
605
|
throw new TypeError("Second argument must be a String");
|
|
606
|
-
if (!
|
|
606
|
+
if (!a.fn(A))
|
|
607
607
|
throw new TypeError("Third argument must be a Function");
|
|
608
|
-
if (
|
|
608
|
+
if (a.node(f))
|
|
609
609
|
return d(f, g, A);
|
|
610
|
-
if (
|
|
610
|
+
if (a.nodeList(f))
|
|
611
611
|
return _(f, g, A);
|
|
612
|
-
if (
|
|
612
|
+
if (a.string(f))
|
|
613
613
|
return h(f, g, A);
|
|
614
614
|
throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList");
|
|
615
615
|
}
|
|
@@ -641,58 +641,58 @@ var At = { exports: {} };
|
|
|
641
641
|
817: (
|
|
642
642
|
/***/
|
|
643
643
|
function(o) {
|
|
644
|
-
function
|
|
645
|
-
var
|
|
644
|
+
function c(i) {
|
|
645
|
+
var a;
|
|
646
646
|
if (i.nodeName === "SELECT")
|
|
647
|
-
i.focus(),
|
|
647
|
+
i.focus(), a = i.value;
|
|
648
648
|
else if (i.nodeName === "INPUT" || i.nodeName === "TEXTAREA") {
|
|
649
649
|
var s = i.hasAttribute("readonly");
|
|
650
|
-
s || i.setAttribute("readonly", ""), i.select(), i.setSelectionRange(0, i.value.length), s || i.removeAttribute("readonly"),
|
|
650
|
+
s || i.setAttribute("readonly", ""), i.select(), i.setSelectionRange(0, i.value.length), s || i.removeAttribute("readonly"), a = i.value;
|
|
651
651
|
} else {
|
|
652
652
|
i.hasAttribute("contenteditable") && i.focus();
|
|
653
653
|
var l = window.getSelection(), d = document.createRange();
|
|
654
|
-
d.selectNodeContents(i), l.removeAllRanges(), l.addRange(d),
|
|
654
|
+
d.selectNodeContents(i), l.removeAllRanges(), l.addRange(d), a = l.toString();
|
|
655
655
|
}
|
|
656
|
-
return
|
|
656
|
+
return a;
|
|
657
657
|
}
|
|
658
|
-
o.exports =
|
|
658
|
+
o.exports = c;
|
|
659
659
|
}
|
|
660
660
|
),
|
|
661
661
|
/***/
|
|
662
662
|
279: (
|
|
663
663
|
/***/
|
|
664
664
|
function(o) {
|
|
665
|
-
function
|
|
665
|
+
function c() {
|
|
666
666
|
}
|
|
667
|
-
|
|
668
|
-
on: function(i,
|
|
667
|
+
c.prototype = {
|
|
668
|
+
on: function(i, a, s) {
|
|
669
669
|
var l = this.e || (this.e = {});
|
|
670
670
|
return (l[i] || (l[i] = [])).push({
|
|
671
|
-
fn:
|
|
671
|
+
fn: a,
|
|
672
672
|
ctx: s
|
|
673
673
|
}), this;
|
|
674
674
|
},
|
|
675
|
-
once: function(i,
|
|
675
|
+
once: function(i, a, s) {
|
|
676
676
|
var l = this;
|
|
677
677
|
function d() {
|
|
678
|
-
l.off(i, d),
|
|
678
|
+
l.off(i, d), a.apply(s, arguments);
|
|
679
679
|
}
|
|
680
|
-
return d._ =
|
|
680
|
+
return d._ = a, this.on(i, d, s);
|
|
681
681
|
},
|
|
682
682
|
emit: function(i) {
|
|
683
|
-
var
|
|
683
|
+
var a = [].slice.call(arguments, 1), s = ((this.e || (this.e = {}))[i] || []).slice(), l = 0, d = s.length;
|
|
684
684
|
for (l; l < d; l++)
|
|
685
|
-
s[l].fn.apply(s[l].ctx,
|
|
685
|
+
s[l].fn.apply(s[l].ctx, a);
|
|
686
686
|
return this;
|
|
687
687
|
},
|
|
688
|
-
off: function(i,
|
|
688
|
+
off: function(i, a) {
|
|
689
689
|
var s = this.e || (this.e = {}), l = s[i], d = [];
|
|
690
|
-
if (l &&
|
|
690
|
+
if (l && a)
|
|
691
691
|
for (var _ = 0, h = l.length; _ < h; _++)
|
|
692
|
-
l[_].fn !==
|
|
692
|
+
l[_].fn !== a && l[_].fn._ !== a && d.push(l[_]);
|
|
693
693
|
return d.length ? s[i] = d : delete s[i], this;
|
|
694
694
|
}
|
|
695
|
-
}, o.exports =
|
|
695
|
+
}, o.exports = c, o.exports.TinyEmitter = c;
|
|
696
696
|
}
|
|
697
697
|
)
|
|
698
698
|
/******/
|
|
@@ -700,7 +700,7 @@ var At = { exports: {} };
|
|
|
700
700
|
function r(o) {
|
|
701
701
|
if (n[o])
|
|
702
702
|
return n[o].exports;
|
|
703
|
-
var
|
|
703
|
+
var c = n[o] = {
|
|
704
704
|
/******/
|
|
705
705
|
// no module.id needed
|
|
706
706
|
/******/
|
|
@@ -709,11 +709,11 @@ var At = { exports: {} };
|
|
|
709
709
|
exports: {}
|
|
710
710
|
/******/
|
|
711
711
|
};
|
|
712
|
-
return t[o](
|
|
712
|
+
return t[o](c, c.exports, r), c.exports;
|
|
713
713
|
}
|
|
714
714
|
return function() {
|
|
715
715
|
r.n = function(o) {
|
|
716
|
-
var
|
|
716
|
+
var c = o && o.__esModule ? (
|
|
717
717
|
/******/
|
|
718
718
|
function() {
|
|
719
719
|
return o.default;
|
|
@@ -724,16 +724,16 @@ var At = { exports: {} };
|
|
|
724
724
|
return o;
|
|
725
725
|
}
|
|
726
726
|
);
|
|
727
|
-
return r.d(
|
|
727
|
+
return r.d(c, { a: c }), c;
|
|
728
728
|
};
|
|
729
729
|
}(), function() {
|
|
730
|
-
r.d = function(o,
|
|
731
|
-
for (var i in
|
|
732
|
-
r.o(
|
|
730
|
+
r.d = function(o, c) {
|
|
731
|
+
for (var i in c)
|
|
732
|
+
r.o(c, i) && !r.o(o, i) && Object.defineProperty(o, i, { enumerable: !0, get: c[i] });
|
|
733
733
|
};
|
|
734
734
|
}(), function() {
|
|
735
|
-
r.o = function(o,
|
|
736
|
-
return Object.prototype.hasOwnProperty.call(o,
|
|
735
|
+
r.o = function(o, c) {
|
|
736
|
+
return Object.prototype.hasOwnProperty.call(o, c);
|
|
737
737
|
};
|
|
738
738
|
}(), r(686);
|
|
739
739
|
}().default
|
|
@@ -744,15 +744,15 @@ var P0 = At.exports;
|
|
|
744
744
|
const j0 = /* @__PURE__ */ R0(P0), H0 = (u) => ({
|
|
745
745
|
toClipboard(e, t) {
|
|
746
746
|
return new Promise((n, r) => {
|
|
747
|
-
const o = document.createElement("button"),
|
|
747
|
+
const o = document.createElement("button"), c = new j0(o, {
|
|
748
748
|
text: () => e,
|
|
749
749
|
action: () => "copy",
|
|
750
750
|
container: t !== void 0 ? t : document.body
|
|
751
751
|
});
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
}),
|
|
755
|
-
|
|
752
|
+
c.on("success", (i) => {
|
|
753
|
+
c.destroy(), n(i);
|
|
754
|
+
}), c.on("error", (i) => {
|
|
755
|
+
c.destroy(), r(i);
|
|
756
756
|
}), document.body.appendChild(o), o.click(), document.body.removeChild(o);
|
|
757
757
|
});
|
|
758
758
|
}
|
|
@@ -777,32 +777,32 @@ function Bu(u, e) {
|
|
|
777
777
|
const t = $0(e);
|
|
778
778
|
return u.replace(/(%[a-f0-9]{2})+/gi, function(n) {
|
|
779
779
|
let r = "";
|
|
780
|
-
for (let o = 0,
|
|
780
|
+
for (let o = 0, c = n.length; o < c; o += 3) {
|
|
781
781
|
const i = parseInt(n.slice(o + 1, o + 3), 16);
|
|
782
782
|
if (i < 128) {
|
|
783
783
|
r += t[i];
|
|
784
784
|
continue;
|
|
785
785
|
}
|
|
786
|
-
if ((i & 224) === 192 && o + 3 <
|
|
787
|
-
const
|
|
788
|
-
if ((
|
|
789
|
-
const s = i << 6 & 1984 |
|
|
786
|
+
if ((i & 224) === 192 && o + 3 < c) {
|
|
787
|
+
const a = parseInt(n.slice(o + 4, o + 6), 16);
|
|
788
|
+
if ((a & 192) === 128) {
|
|
789
|
+
const s = i << 6 & 1984 | a & 63;
|
|
790
790
|
s < 128 ? r += "��" : r += String.fromCharCode(s), o += 3;
|
|
791
791
|
continue;
|
|
792
792
|
}
|
|
793
793
|
}
|
|
794
|
-
if ((i & 240) === 224 && o + 6 <
|
|
795
|
-
const
|
|
796
|
-
if ((
|
|
797
|
-
const l = i << 12 & 61440 |
|
|
794
|
+
if ((i & 240) === 224 && o + 6 < c) {
|
|
795
|
+
const a = parseInt(n.slice(o + 4, o + 6), 16), s = parseInt(n.slice(o + 7, o + 9), 16);
|
|
796
|
+
if ((a & 192) === 128 && (s & 192) === 128) {
|
|
797
|
+
const l = i << 12 & 61440 | a << 6 & 4032 | s & 63;
|
|
798
798
|
l < 2048 || l >= 55296 && l <= 57343 ? r += "���" : r += String.fromCharCode(l), o += 6;
|
|
799
799
|
continue;
|
|
800
800
|
}
|
|
801
801
|
}
|
|
802
|
-
if ((i & 248) === 240 && o + 9 <
|
|
803
|
-
const
|
|
804
|
-
if ((
|
|
805
|
-
let d = i << 18 & 1835008 |
|
|
802
|
+
if ((i & 248) === 240 && o + 9 < c) {
|
|
803
|
+
const a = parseInt(n.slice(o + 4, o + 6), 16), s = parseInt(n.slice(o + 7, o + 9), 16), l = parseInt(n.slice(o + 10, o + 12), 16);
|
|
804
|
+
if ((a & 192) === 128 && (s & 192) === 128 && (l & 192) === 128) {
|
|
805
|
+
let d = i << 18 & 1835008 | a << 12 & 258048 | s << 6 & 4032 | l & 63;
|
|
806
806
|
d < 65536 || d > 1114111 ? r += "����" : (d -= 65536, r += String.fromCharCode(55296 + (d >> 10), 56320 + (d & 1023))), o += 9;
|
|
807
807
|
continue;
|
|
808
808
|
}
|
|
@@ -832,9 +832,9 @@ function Qu(u, e, t) {
|
|
|
832
832
|
typeof e != "string" && (t = e, e = Qu.defaultChars), typeof t > "u" && (t = !0);
|
|
833
833
|
const n = V0(e);
|
|
834
834
|
let r = "";
|
|
835
|
-
for (let o = 0,
|
|
835
|
+
for (let o = 0, c = u.length; o < c; o++) {
|
|
836
836
|
const i = u.charCodeAt(o);
|
|
837
|
-
if (t && i === 37 && o + 2 <
|
|
837
|
+
if (t && i === 37 && o + 2 < c && /^[0-9a-f]{2}$/i.test(u.slice(o + 1, o + 3))) {
|
|
838
838
|
r += u.slice(o, o + 3), o += 2;
|
|
839
839
|
continue;
|
|
840
840
|
}
|
|
@@ -843,9 +843,9 @@ function Qu(u, e, t) {
|
|
|
843
843
|
continue;
|
|
844
844
|
}
|
|
845
845
|
if (i >= 55296 && i <= 57343) {
|
|
846
|
-
if (i >= 55296 && i <= 56319 && o + 1 <
|
|
847
|
-
const
|
|
848
|
-
if (
|
|
846
|
+
if (i >= 55296 && i <= 56319 && o + 1 < c) {
|
|
847
|
+
const a = u.charCodeAt(o + 1);
|
|
848
|
+
if (a >= 56320 && a <= 57343) {
|
|
849
849
|
r += encodeURIComponent(u[o] + u[o + 1]), o++;
|
|
850
850
|
continue;
|
|
851
851
|
}
|
|
@@ -894,8 +894,8 @@ oe.prototype.parse = function(u, e) {
|
|
|
894
894
|
if (s)
|
|
895
895
|
return this.pathname = s[1], s[2] && (this.search = s[2]), this;
|
|
896
896
|
}
|
|
897
|
-
let
|
|
898
|
-
if (
|
|
897
|
+
let c = U0.exec(o);
|
|
898
|
+
if (c && (c = c[0], t = c.toLowerCase(), this.protocol = c, o = o.substr(c.length)), (e || c || o.match(/^\/\/[^@\/]+@[^@\/]+/)) && (r = o.substr(0, 2) === "//", r && !(c && Qe[c]) && (o = o.substr(2), this.slashes = !0)), !Qe[c] && (r || c && !Xe[c])) {
|
|
899
899
|
let s = -1;
|
|
900
900
|
for (let f = 0; f < Je.length; f++)
|
|
901
901
|
n = o.indexOf(Je[f]), n !== -1 && (s === -1 || n < s) && (s = n);
|
|
@@ -927,8 +927,8 @@ oe.prototype.parse = function(u, e) {
|
|
|
927
927
|
}
|
|
928
928
|
const i = o.indexOf("#");
|
|
929
929
|
i !== -1 && (this.hash = o.substr(i), o = o.slice(0, i));
|
|
930
|
-
const
|
|
931
|
-
return
|
|
930
|
+
const a = o.indexOf("?");
|
|
931
|
+
return a !== -1 && (this.search = o.substr(a), o = o.slice(0, a)), o && (this.pathname = o), Xe[t] && this.hostname && !this.pathname && (this.pathname = ""), this;
|
|
932
932
|
};
|
|
933
933
|
oe.prototype.parseHost = function(u) {
|
|
934
934
|
let e = Z0.exec(u);
|
|
@@ -993,7 +993,7 @@ const rn = /* @__PURE__ */ new Map([
|
|
|
993
993
|
return u > 65535 && (u -= 65536, e += String.fromCharCode(u >>> 10 & 1023 | 55296), u = 56320 | u & 1023), e += String.fromCharCode(u), e;
|
|
994
994
|
}
|
|
995
995
|
);
|
|
996
|
-
function
|
|
996
|
+
function cn(u) {
|
|
997
997
|
var e;
|
|
998
998
|
return u >= 55296 && u <= 57343 || u > 1114111 ? 65533 : (e = rn.get(u)) !== null && e !== void 0 ? e : u;
|
|
999
999
|
}
|
|
@@ -1001,7 +1001,7 @@ var X;
|
|
|
1001
1001
|
(function(u) {
|
|
1002
1002
|
u[u.NUM = 35] = "NUM", u[u.SEMI = 59] = "SEMI", u[u.EQUALS = 61] = "EQUALS", u[u.ZERO = 48] = "ZERO", u[u.NINE = 57] = "NINE", u[u.LOWER_A = 97] = "LOWER_A", u[u.LOWER_F = 102] = "LOWER_F", u[u.LOWER_X = 120] = "LOWER_X", u[u.LOWER_Z = 122] = "LOWER_Z", u[u.UPPER_A = 65] = "UPPER_A", u[u.UPPER_F = 70] = "UPPER_F", u[u.UPPER_Z = 90] = "UPPER_Z";
|
|
1003
1003
|
})(X || (X = {}));
|
|
1004
|
-
const
|
|
1004
|
+
const an = 32;
|
|
1005
1005
|
var Du;
|
|
1006
1006
|
(function(u) {
|
|
1007
1007
|
u[u.VALUE_LENGTH = 49152] = "VALUE_LENGTH", u[u.BRANCH_LENGTH = 16256] = "BRANCH_LENGTH", u[u.JUMP_TABLE = 127] = "JUMP_TABLE";
|
|
@@ -1069,7 +1069,7 @@ class fn {
|
|
|
1069
1069
|
* @returns The number of characters that were consumed, or -1 if the entity is incomplete.
|
|
1070
1070
|
*/
|
|
1071
1071
|
stateNumericStart(e, t) {
|
|
1072
|
-
return t >= e.length ? -1 : (e.charCodeAt(t) |
|
|
1072
|
+
return t >= e.length ? -1 : (e.charCodeAt(t) | an) === X.LOWER_X ? (this.state = Q.NumericHex, this.consumed += 1, this.stateNumericHex(e, t + 1)) : (this.state = Q.NumericDecimal, this.stateNumericDecimal(e, t));
|
|
1073
1073
|
}
|
|
1074
1074
|
addToNumericResult(e, t, n, r) {
|
|
1075
1075
|
if (t !== n) {
|
|
@@ -1138,7 +1138,7 @@ class fn {
|
|
|
1138
1138
|
this.consumed += 1;
|
|
1139
1139
|
else if (this.decodeMode === Au.Strict)
|
|
1140
1140
|
return 0;
|
|
1141
|
-
return this.emitCodePoint(
|
|
1141
|
+
return this.emitCodePoint(cn(this.result), this.consumed), this.errors && (e !== X.SEMI && this.errors.missingSemicolonAfterCharacterReference(), this.errors.validateNumericCharacterReference(this.result)), this.consumed;
|
|
1142
1142
|
}
|
|
1143
1143
|
/**
|
|
1144
1144
|
* Parses a named entity.
|
|
@@ -1153,14 +1153,14 @@ class fn {
|
|
|
1153
1153
|
const { decodeTree: n } = this;
|
|
1154
1154
|
let r = n[this.treeIndex], o = (r & Du.VALUE_LENGTH) >> 14;
|
|
1155
1155
|
for (; t < e.length; t++, this.excess++) {
|
|
1156
|
-
const
|
|
1157
|
-
if (this.treeIndex = hn(n, r, this.treeIndex + Math.max(1, o),
|
|
1156
|
+
const c = e.charCodeAt(t);
|
|
1157
|
+
if (this.treeIndex = hn(n, r, this.treeIndex + Math.max(1, o), c), this.treeIndex < 0)
|
|
1158
1158
|
return this.result === 0 || // If we are parsing an attribute
|
|
1159
1159
|
this.decodeMode === Au.Attribute && // We shouldn't have consumed any characters after the entity,
|
|
1160
1160
|
(o === 0 || // And there should be no invalid characters.
|
|
1161
|
-
dn(
|
|
1161
|
+
dn(c)) ? 0 : this.emitNotTerminatedNamedEntity();
|
|
1162
1162
|
if (r = n[this.treeIndex], o = (r & Du.VALUE_LENGTH) >> 14, o !== 0) {
|
|
1163
|
-
if (
|
|
1163
|
+
if (c === X.SEMI)
|
|
1164
1164
|
return this.emitNamedEntityData(this.treeIndex, o, this.consumed + this.excess);
|
|
1165
1165
|
this.decodeMode !== Au.Strict && (this.result = this.treeIndex, this.consumed += this.excess, this.excess = 0);
|
|
1166
1166
|
}
|
|
@@ -1217,22 +1217,22 @@ function wt(u) {
|
|
|
1217
1217
|
let e = "";
|
|
1218
1218
|
const t = new fn(u, (n) => e += on(n));
|
|
1219
1219
|
return function(r, o) {
|
|
1220
|
-
let
|
|
1220
|
+
let c = 0, i = 0;
|
|
1221
1221
|
for (; (i = r.indexOf("&", i)) >= 0; ) {
|
|
1222
|
-
e += r.slice(
|
|
1222
|
+
e += r.slice(c, i), t.startEntity(o);
|
|
1223
1223
|
const s = t.write(
|
|
1224
1224
|
r,
|
|
1225
1225
|
// Skip the "&"
|
|
1226
1226
|
i + 1
|
|
1227
1227
|
);
|
|
1228
1228
|
if (s < 0) {
|
|
1229
|
-
|
|
1229
|
+
c = i + t.end();
|
|
1230
1230
|
break;
|
|
1231
1231
|
}
|
|
1232
|
-
|
|
1232
|
+
c = i + s, i = s === 0 ? c + 1 : c;
|
|
1233
1233
|
}
|
|
1234
|
-
const
|
|
1235
|
-
return e = "",
|
|
1234
|
+
const a = e + r.slice(c);
|
|
1235
|
+
return e = "", a;
|
|
1236
1236
|
};
|
|
1237
1237
|
}
|
|
1238
1238
|
function hn(u, e, t, n) {
|
|
@@ -1240,18 +1240,18 @@ function hn(u, e, t, n) {
|
|
|
1240
1240
|
if (r === 0)
|
|
1241
1241
|
return o !== 0 && n === o ? t : -1;
|
|
1242
1242
|
if (o) {
|
|
1243
|
-
const
|
|
1244
|
-
return
|
|
1243
|
+
const a = n - o;
|
|
1244
|
+
return a < 0 || a >= r ? -1 : u[t + a] - 1;
|
|
1245
1245
|
}
|
|
1246
|
-
let
|
|
1247
|
-
for (;
|
|
1248
|
-
const
|
|
1246
|
+
let c = t, i = c + r - 1;
|
|
1247
|
+
for (; c <= i; ) {
|
|
1248
|
+
const a = c + i >>> 1, s = u[a];
|
|
1249
1249
|
if (s < n)
|
|
1250
|
-
|
|
1250
|
+
c = a + 1;
|
|
1251
1251
|
else if (s > n)
|
|
1252
|
-
i =
|
|
1252
|
+
i = a - 1;
|
|
1253
1253
|
else
|
|
1254
|
-
return u[
|
|
1254
|
+
return u[a + r];
|
|
1255
1255
|
}
|
|
1256
1256
|
return -1;
|
|
1257
1257
|
}
|
|
@@ -1270,7 +1270,7 @@ const mn = Object.prototype.hasOwnProperty;
|
|
|
1270
1270
|
function xn(u, e) {
|
|
1271
1271
|
return mn.call(u, e);
|
|
1272
1272
|
}
|
|
1273
|
-
function
|
|
1273
|
+
function ae(u) {
|
|
1274
1274
|
return Array.prototype.slice.call(arguments, 1).forEach(function(t) {
|
|
1275
1275
|
if (t) {
|
|
1276
1276
|
if (typeof t != "object")
|
|
@@ -1403,7 +1403,7 @@ function se(u) {
|
|
|
1403
1403
|
const Sn = { mdurl: Y0, ucmicro: en }, In = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1404
1404
|
__proto__: null,
|
|
1405
1405
|
arrayReplaceAt: It,
|
|
1406
|
-
assign:
|
|
1406
|
+
assign: ae,
|
|
1407
1407
|
escapeHtml: Eu,
|
|
1408
1408
|
escapeRE: wn,
|
|
1409
1409
|
fromCodePoint: ie,
|
|
@@ -1420,22 +1420,22 @@ const Sn = { mdurl: Y0, ucmicro: en }, In = /* @__PURE__ */ Object.freeze(/* @__
|
|
|
1420
1420
|
unescapeMd: yn
|
|
1421
1421
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
1422
1422
|
function Tn(u, e, t) {
|
|
1423
|
-
let n, r, o,
|
|
1424
|
-
const i = u.posMax,
|
|
1423
|
+
let n, r, o, c;
|
|
1424
|
+
const i = u.posMax, a = u.pos;
|
|
1425
1425
|
for (u.pos = e + 1, n = 1; u.pos < i; ) {
|
|
1426
1426
|
if (o = u.src.charCodeAt(u.pos), o === 93 && (n--, n === 0)) {
|
|
1427
1427
|
r = !0;
|
|
1428
1428
|
break;
|
|
1429
1429
|
}
|
|
1430
|
-
if (
|
|
1431
|
-
if (
|
|
1430
|
+
if (c = u.pos, u.md.inline.skipToken(u), o === 91) {
|
|
1431
|
+
if (c === u.pos - 1)
|
|
1432
1432
|
n++;
|
|
1433
1433
|
else if (t)
|
|
1434
|
-
return u.pos =
|
|
1434
|
+
return u.pos = a, -1;
|
|
1435
1435
|
}
|
|
1436
1436
|
}
|
|
1437
1437
|
let s = -1;
|
|
1438
|
-
return r && (s = u.pos), u.pos =
|
|
1438
|
+
return r && (s = u.pos), u.pos = a, s;
|
|
1439
1439
|
}
|
|
1440
1440
|
function zn(u, e, t) {
|
|
1441
1441
|
let n, r = e;
|
|
@@ -1458,7 +1458,7 @@ function zn(u, e, t) {
|
|
|
1458
1458
|
}
|
|
1459
1459
|
return o;
|
|
1460
1460
|
}
|
|
1461
|
-
let
|
|
1461
|
+
let c = 0;
|
|
1462
1462
|
for (; r < t && (n = u.charCodeAt(r), !(n === 32 || n < 32 || n === 127)); ) {
|
|
1463
1463
|
if (n === 92 && r + 1 < t) {
|
|
1464
1464
|
if (u.charCodeAt(r + 1) === 32)
|
|
@@ -1466,20 +1466,20 @@ function zn(u, e, t) {
|
|
|
1466
1466
|
r += 2;
|
|
1467
1467
|
continue;
|
|
1468
1468
|
}
|
|
1469
|
-
if (n === 40 && (
|
|
1469
|
+
if (n === 40 && (c++, c > 32))
|
|
1470
1470
|
return o;
|
|
1471
1471
|
if (n === 41) {
|
|
1472
|
-
if (
|
|
1472
|
+
if (c === 0)
|
|
1473
1473
|
break;
|
|
1474
|
-
|
|
1474
|
+
c--;
|
|
1475
1475
|
}
|
|
1476
1476
|
r++;
|
|
1477
1477
|
}
|
|
1478
|
-
return e === r ||
|
|
1478
|
+
return e === r || c !== 0 || (o.str = qu(u.slice(e, r)), o.pos = r, o.ok = !0), o;
|
|
1479
1479
|
}
|
|
1480
1480
|
function Nn(u, e, t, n) {
|
|
1481
1481
|
let r, o = e;
|
|
1482
|
-
const
|
|
1482
|
+
const c = {
|
|
1483
1483
|
// if `true`, this is a valid link title
|
|
1484
1484
|
ok: !1,
|
|
1485
1485
|
// if `true`, this link can be continued on the next line
|
|
@@ -1492,23 +1492,23 @@ function Nn(u, e, t, n) {
|
|
|
1492
1492
|
marker: 0
|
|
1493
1493
|
};
|
|
1494
1494
|
if (n)
|
|
1495
|
-
|
|
1495
|
+
c.str = n.str, c.marker = n.marker;
|
|
1496
1496
|
else {
|
|
1497
1497
|
if (o >= t)
|
|
1498
|
-
return
|
|
1498
|
+
return c;
|
|
1499
1499
|
let i = u.charCodeAt(o);
|
|
1500
1500
|
if (i !== 34 && i !== 39 && i !== 40)
|
|
1501
|
-
return
|
|
1502
|
-
e++, o++, i === 40 && (i = 41),
|
|
1501
|
+
return c;
|
|
1502
|
+
e++, o++, i === 40 && (i = 41), c.marker = i;
|
|
1503
1503
|
}
|
|
1504
1504
|
for (; o < t; ) {
|
|
1505
|
-
if (r = u.charCodeAt(o), r ===
|
|
1506
|
-
return
|
|
1507
|
-
if (r === 40 &&
|
|
1508
|
-
return
|
|
1505
|
+
if (r = u.charCodeAt(o), r === c.marker)
|
|
1506
|
+
return c.pos = o + 1, c.str += qu(u.slice(e, o)), c.ok = !0, c;
|
|
1507
|
+
if (r === 40 && c.marker === 41)
|
|
1508
|
+
return c;
|
|
1509
1509
|
r === 92 && o + 1 < t && o++, o++;
|
|
1510
1510
|
}
|
|
1511
|
-
return
|
|
1511
|
+
return c.can_continue = !0, c.str += qu(u.slice(e, o)), c;
|
|
1512
1512
|
}
|
|
1513
1513
|
const Ln = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1514
1514
|
__proto__: null,
|
|
@@ -1526,17 +1526,17 @@ mu.code_block = function(u, e, t, n, r) {
|
|
|
1526
1526
|
`;
|
|
1527
1527
|
};
|
|
1528
1528
|
mu.fence = function(u, e, t, n, r) {
|
|
1529
|
-
const o = u[e],
|
|
1530
|
-
let i = "",
|
|
1531
|
-
if (
|
|
1532
|
-
const l =
|
|
1533
|
-
i = l[0],
|
|
1529
|
+
const o = u[e], c = o.info ? qu(o.info).trim() : "";
|
|
1530
|
+
let i = "", a = "";
|
|
1531
|
+
if (c) {
|
|
1532
|
+
const l = c.split(/(\s+)/g);
|
|
1533
|
+
i = l[0], a = l.slice(2).join("");
|
|
1534
1534
|
}
|
|
1535
1535
|
let s;
|
|
1536
|
-
if (t.highlight ? s = t.highlight(o.content, i,
|
|
1536
|
+
if (t.highlight ? s = t.highlight(o.content, i, a) || Eu(o.content) : s = Eu(o.content), s.indexOf("<pre") === 0)
|
|
1537
1537
|
return s + `
|
|
1538
1538
|
`;
|
|
1539
|
-
if (
|
|
1539
|
+
if (c) {
|
|
1540
1540
|
const l = o.attrIndex("class"), d = o.attrs ? o.attrs.slice() : [];
|
|
1541
1541
|
l < 0 ? d.push(["class", t.langPrefix + i]) : (d[l] = d[l].slice(), d[l][1] += " " + t.langPrefix + i);
|
|
1542
1542
|
const _ = {
|
|
@@ -1573,7 +1573,7 @@ mu.html_inline = function(u, e) {
|
|
|
1573
1573
|
return u[e].content;
|
|
1574
1574
|
};
|
|
1575
1575
|
function Pu() {
|
|
1576
|
-
this.rules =
|
|
1576
|
+
this.rules = ae({}, mu);
|
|
1577
1577
|
}
|
|
1578
1578
|
Pu.prototype.renderAttrs = function(e) {
|
|
1579
1579
|
let t, n, r;
|
|
@@ -1590,18 +1590,18 @@ Pu.prototype.renderToken = function(e, t, n) {
|
|
|
1590
1590
|
return "";
|
|
1591
1591
|
r.block && r.nesting !== -1 && t && e[t - 1].hidden && (o += `
|
|
1592
1592
|
`), o += (r.nesting === -1 ? "</" : "<") + r.tag, o += this.renderAttrs(r), r.nesting === 0 && n.xhtmlOut && (o += " /");
|
|
1593
|
-
let
|
|
1594
|
-
if (r.block && (
|
|
1593
|
+
let c = !1;
|
|
1594
|
+
if (r.block && (c = !0, r.nesting === 1 && t + 1 < e.length)) {
|
|
1595
1595
|
const i = e[t + 1];
|
|
1596
|
-
(i.type === "inline" || i.hidden || i.nesting === -1 && i.tag === r.tag) && (
|
|
1596
|
+
(i.type === "inline" || i.hidden || i.nesting === -1 && i.tag === r.tag) && (c = !1);
|
|
1597
1597
|
}
|
|
1598
|
-
return o +=
|
|
1598
|
+
return o += c ? `>
|
|
1599
1599
|
` : ">", o;
|
|
1600
1600
|
};
|
|
1601
1601
|
Pu.prototype.renderInline = function(u, e, t) {
|
|
1602
1602
|
let n = "";
|
|
1603
1603
|
const r = this.rules;
|
|
1604
|
-
for (let o = 0,
|
|
1604
|
+
for (let o = 0, c = u.length; o < c; o++) {
|
|
1605
1605
|
const i = u[o].type;
|
|
1606
1606
|
typeof r[i] < "u" ? n += r[i](u, o, e, t, this) : n += this.renderToken(u, o, e);
|
|
1607
1607
|
}
|
|
@@ -1632,7 +1632,7 @@ Pu.prototype.renderInlineAsText = function(u, e, t) {
|
|
|
1632
1632
|
Pu.prototype.render = function(u, e, t) {
|
|
1633
1633
|
let n = "";
|
|
1634
1634
|
const r = this.rules;
|
|
1635
|
-
for (let o = 0,
|
|
1635
|
+
for (let o = 0, c = u.length; o < c; o++) {
|
|
1636
1636
|
const i = u[o].type;
|
|
1637
1637
|
i === "inline" ? n += this.renderInline(u[o].children, e, t) : typeof r[i] < "u" ? n += r[i](u, o, e, t, this) : n += this.renderToken(u, o, e, t);
|
|
1638
1638
|
}
|
|
@@ -1792,19 +1792,19 @@ function Hn(u) {
|
|
|
1792
1792
|
if (e[t].type !== "inline" || !u.md.linkify.pretest(e[t].content))
|
|
1793
1793
|
continue;
|
|
1794
1794
|
let r = e[t].children, o = 0;
|
|
1795
|
-
for (let
|
|
1796
|
-
const i = r[
|
|
1795
|
+
for (let c = r.length - 1; c >= 0; c--) {
|
|
1796
|
+
const i = r[c];
|
|
1797
1797
|
if (i.type === "link_close") {
|
|
1798
|
-
for (
|
|
1799
|
-
|
|
1798
|
+
for (c--; r[c].level !== i.level && r[c].type !== "link_open"; )
|
|
1799
|
+
c--;
|
|
1800
1800
|
continue;
|
|
1801
1801
|
}
|
|
1802
1802
|
if (i.type === "html_inline" && (Pn(i.content) && o > 0 && o--, jn(i.content) && o++), !(o > 0) && i.type === "text" && u.md.linkify.test(i.content)) {
|
|
1803
|
-
const
|
|
1804
|
-
let s = u.md.linkify.match(
|
|
1803
|
+
const a = i.content;
|
|
1804
|
+
let s = u.md.linkify.match(a);
|
|
1805
1805
|
const l = [];
|
|
1806
1806
|
let d = i.level, _ = 0;
|
|
1807
|
-
s.length > 0 && s[0].index === 0 &&
|
|
1807
|
+
s.length > 0 && s[0].index === 0 && c > 0 && r[c - 1].type === "text_special" && (s = s.slice(1));
|
|
1808
1808
|
for (let h = 0; h < s.length; h++) {
|
|
1809
1809
|
const f = s[h].url, g = u.md.normalizeLink(f);
|
|
1810
1810
|
if (!u.md.validateLink(g))
|
|
@@ -1814,7 +1814,7 @@ function Hn(u) {
|
|
|
1814
1814
|
const C = s[h].index;
|
|
1815
1815
|
if (C > _) {
|
|
1816
1816
|
const m = new u.Token("text", "", 0);
|
|
1817
|
-
m.content =
|
|
1817
|
+
m.content = a.slice(_, C), m.level = d, l.push(m);
|
|
1818
1818
|
}
|
|
1819
1819
|
const k = new u.Token("link_open", "a", 1);
|
|
1820
1820
|
k.attrs = [["href", g]], k.level = d++, k.markup = "linkify", k.info = "auto", l.push(k);
|
|
@@ -1823,11 +1823,11 @@ function Hn(u) {
|
|
|
1823
1823
|
const p = new u.Token("link_close", "a", -1);
|
|
1824
1824
|
p.level = --d, p.markup = "linkify", p.info = "auto", l.push(p), _ = s[h].lastIndex;
|
|
1825
1825
|
}
|
|
1826
|
-
if (_ <
|
|
1826
|
+
if (_ < a.length) {
|
|
1827
1827
|
const h = new u.Token("text", "", 0);
|
|
1828
|
-
h.content =
|
|
1828
|
+
h.content = a.slice(_), h.level = d, l.push(h);
|
|
1829
1829
|
}
|
|
1830
|
-
e[t].children = r = It(r,
|
|
1830
|
+
e[t].children = r = It(r, c, l);
|
|
1831
1831
|
}
|
|
1832
1832
|
}
|
|
1833
1833
|
}
|
|
@@ -1868,20 +1868,20 @@ function Qn(u, e) {
|
|
|
1868
1868
|
let t;
|
|
1869
1869
|
const n = [];
|
|
1870
1870
|
for (let r = 0; r < u.length; r++) {
|
|
1871
|
-
const o = u[r],
|
|
1872
|
-
for (t = n.length - 1; t >= 0 && !(n[t].level <=
|
|
1871
|
+
const o = u[r], c = u[r].level;
|
|
1872
|
+
for (t = n.length - 1; t >= 0 && !(n[t].level <= c); t--)
|
|
1873
1873
|
;
|
|
1874
1874
|
if (n.length = t + 1, o.type !== "text")
|
|
1875
1875
|
continue;
|
|
1876
|
-
let i = o.content,
|
|
1876
|
+
let i = o.content, a = 0, s = i.length;
|
|
1877
1877
|
u:
|
|
1878
|
-
for (;
|
|
1879
|
-
Ye.lastIndex =
|
|
1878
|
+
for (; a < s; ) {
|
|
1879
|
+
Ye.lastIndex = a;
|
|
1880
1880
|
const l = Ye.exec(i);
|
|
1881
1881
|
if (!l)
|
|
1882
1882
|
break;
|
|
1883
1883
|
let d = !0, _ = !0;
|
|
1884
|
-
|
|
1884
|
+
a = l.index + 1;
|
|
1885
1885
|
const h = l[0] === "'";
|
|
1886
1886
|
let f = 32;
|
|
1887
1887
|
if (l.index - 1 >= 0)
|
|
@@ -1893,8 +1893,8 @@ function Qn(u, e) {
|
|
|
1893
1893
|
break;
|
|
1894
1894
|
}
|
|
1895
1895
|
let g = 32;
|
|
1896
|
-
if (
|
|
1897
|
-
g = i.charCodeAt(
|
|
1896
|
+
if (a < s)
|
|
1897
|
+
g = i.charCodeAt(a);
|
|
1898
1898
|
else
|
|
1899
1899
|
for (t = r + 1; t < u.length && !(u[t].type === "softbreak" || u[t].type === "hardbreak"); t++)
|
|
1900
1900
|
if (u[t].content) {
|
|
@@ -1909,16 +1909,16 @@ function Qn(u, e) {
|
|
|
1909
1909
|
if (_)
|
|
1910
1910
|
for (t = n.length - 1; t >= 0; t--) {
|
|
1911
1911
|
let p = n[t];
|
|
1912
|
-
if (n[t].level <
|
|
1912
|
+
if (n[t].level < c)
|
|
1913
1913
|
break;
|
|
1914
|
-
if (p.single === h && n[t].level ===
|
|
1914
|
+
if (p.single === h && n[t].level === c) {
|
|
1915
1915
|
p = n[t];
|
|
1916
1916
|
let m, L;
|
|
1917
1917
|
h ? (m = e.md.options.quotes[2], L = e.md.options.quotes[3]) : (m = e.md.options.quotes[0], L = e.md.options.quotes[1]), o.content = ue(o.content, l.index, L), u[p.token].content = ue(
|
|
1918
1918
|
u[p.token].content,
|
|
1919
1919
|
p.pos,
|
|
1920
1920
|
m
|
|
1921
|
-
),
|
|
1921
|
+
), a += L.length - 1, p.token === r && (a += m.length - 1), i = o.content, s = i.length, n.length = t;
|
|
1922
1922
|
continue u;
|
|
1923
1923
|
}
|
|
1924
1924
|
}
|
|
@@ -1926,7 +1926,7 @@ function Qn(u, e) {
|
|
|
1926
1926
|
token: r,
|
|
1927
1927
|
pos: l.index,
|
|
1928
1928
|
single: h,
|
|
1929
|
-
level:
|
|
1929
|
+
level: c
|
|
1930
1930
|
}) : _ && h && (o.content = ue(o.content, l.index, ut));
|
|
1931
1931
|
}
|
|
1932
1932
|
}
|
|
@@ -1941,12 +1941,12 @@ function Yn(u) {
|
|
|
1941
1941
|
const n = u.tokens, r = n.length;
|
|
1942
1942
|
for (let o = 0; o < r; o++) {
|
|
1943
1943
|
if (n[o].type !== "inline") continue;
|
|
1944
|
-
const
|
|
1944
|
+
const c = n[o].children, i = c.length;
|
|
1945
1945
|
for (e = 0; e < i; e++)
|
|
1946
|
-
|
|
1946
|
+
c[e].type === "text_special" && (c[e].type = "text");
|
|
1947
1947
|
for (e = t = 0; e < i; e++)
|
|
1948
|
-
|
|
1949
|
-
e !== t && (
|
|
1948
|
+
c[e].type === "text" && e + 1 < i && c[e + 1].type === "text" ? c[e + 1].content = c[e].content + c[e + 1].content : (e !== t && (c[t] = c[e]), t++);
|
|
1949
|
+
e !== t && (c.length = t);
|
|
1950
1950
|
}
|
|
1951
1951
|
}
|
|
1952
1952
|
const _e = [
|
|
@@ -1974,15 +1974,15 @@ Me.prototype.State = zt;
|
|
|
1974
1974
|
function xu(u, e, t, n) {
|
|
1975
1975
|
this.src = u, this.md = e, this.env = t, this.tokens = n, this.bMarks = [], this.eMarks = [], this.tShift = [], this.sCount = [], this.bsCount = [], this.blkIndent = 0, this.line = 0, this.lineMax = 0, this.tight = !1, this.ddIndent = -1, this.listIndent = -1, this.parentType = "root", this.level = 0;
|
|
1976
1976
|
const r = this.src;
|
|
1977
|
-
for (let o = 0,
|
|
1978
|
-
const d = r.charCodeAt(
|
|
1977
|
+
for (let o = 0, c = 0, i = 0, a = 0, s = r.length, l = !1; c < s; c++) {
|
|
1978
|
+
const d = r.charCodeAt(c);
|
|
1979
1979
|
if (!l)
|
|
1980
1980
|
if (G(d)) {
|
|
1981
|
-
i++, d === 9 ?
|
|
1981
|
+
i++, d === 9 ? a += 4 - a % 4 : a++;
|
|
1982
1982
|
continue;
|
|
1983
1983
|
} else
|
|
1984
1984
|
l = !0;
|
|
1985
|
-
(d === 10 ||
|
|
1985
|
+
(d === 10 || c === s - 1) && (d !== 10 && c++, this.bMarks.push(o), this.eMarks.push(c), this.tShift.push(i), this.sCount.push(a), this.bsCount.push(0), l = !1, i = 0, a = 0, o = c + 1);
|
|
1986
1986
|
}
|
|
1987
1987
|
this.bMarks.push(r.length), this.eMarks.push(r.length), this.tShift.push(0), this.sCount.push(0), this.bsCount.push(0), this.lineMax = this.bMarks.length - 1;
|
|
1988
1988
|
}
|
|
@@ -2031,21 +2031,21 @@ xu.prototype.getLines = function(e, t, n, r) {
|
|
|
2031
2031
|
if (e >= t)
|
|
2032
2032
|
return "";
|
|
2033
2033
|
const o = new Array(t - e);
|
|
2034
|
-
for (let
|
|
2035
|
-
let
|
|
2034
|
+
for (let c = 0, i = e; i < t; i++, c++) {
|
|
2035
|
+
let a = 0;
|
|
2036
2036
|
const s = this.bMarks[i];
|
|
2037
2037
|
let l = s, d;
|
|
2038
|
-
for (i + 1 < t || r ? d = this.eMarks[i] + 1 : d = this.eMarks[i]; l < d &&
|
|
2038
|
+
for (i + 1 < t || r ? d = this.eMarks[i] + 1 : d = this.eMarks[i]; l < d && a < n; ) {
|
|
2039
2039
|
const _ = this.src.charCodeAt(l);
|
|
2040
2040
|
if (G(_))
|
|
2041
|
-
_ === 9 ?
|
|
2041
|
+
_ === 9 ? a += 4 - (a + this.bsCount[i]) % 4 : a++;
|
|
2042
2042
|
else if (l - s < this.tShift[i])
|
|
2043
|
-
|
|
2043
|
+
a++;
|
|
2044
2044
|
else
|
|
2045
2045
|
break;
|
|
2046
2046
|
l++;
|
|
2047
2047
|
}
|
|
2048
|
-
|
|
2048
|
+
a > n ? o[c] = new Array(a - n + 1).join(" ") + this.src.slice(l, d) : o[c] = this.src.slice(l, d);
|
|
2049
2049
|
}
|
|
2050
2050
|
return o.join("");
|
|
2051
2051
|
};
|
|
@@ -2057,10 +2057,10 @@ function ge(u, e) {
|
|
|
2057
2057
|
}
|
|
2058
2058
|
function et(u) {
|
|
2059
2059
|
const e = [], t = u.length;
|
|
2060
|
-
let n = 0, r = u.charCodeAt(n), o = !1,
|
|
2060
|
+
let n = 0, r = u.charCodeAt(n), o = !1, c = 0, i = "";
|
|
2061
2061
|
for (; n < t; )
|
|
2062
|
-
r === 124 && (o ? (i += u.substring(
|
|
2063
|
-
return e.push(i + u.substring(
|
|
2062
|
+
r === 124 && (o ? (i += u.substring(c, n - 1), c = n) : (e.push(i + u.substring(c, n)), i = "", c = n + 1)), o = r === 92, n++, r = u.charCodeAt(n);
|
|
2063
|
+
return e.push(i + u.substring(c)), e;
|
|
2064
2064
|
}
|
|
2065
2065
|
function er(u, e, t, n) {
|
|
2066
2066
|
if (e + 2 > t)
|
|
@@ -2071,11 +2071,11 @@ function er(u, e, t, n) {
|
|
|
2071
2071
|
let o = u.bMarks[r] + u.tShift[r];
|
|
2072
2072
|
if (o >= u.eMarks[r])
|
|
2073
2073
|
return !1;
|
|
2074
|
-
const
|
|
2075
|
-
if (
|
|
2074
|
+
const c = u.src.charCodeAt(o++);
|
|
2075
|
+
if (c !== 124 && c !== 45 && c !== 58 || o >= u.eMarks[r])
|
|
2076
2076
|
return !1;
|
|
2077
2077
|
const i = u.src.charCodeAt(o++);
|
|
2078
|
-
if (i !== 124 && i !== 45 && i !== 58 && !G(i) ||
|
|
2078
|
+
if (i !== 124 && i !== 45 && i !== 58 && !G(i) || c === 45 && G(i))
|
|
2079
2079
|
return !1;
|
|
2080
2080
|
for (; o < u.eMarks[r]; ) {
|
|
2081
2081
|
const p = u.src.charCodeAt(o);
|
|
@@ -2083,7 +2083,7 @@ function er(u, e, t, n) {
|
|
|
2083
2083
|
return !1;
|
|
2084
2084
|
o++;
|
|
2085
2085
|
}
|
|
2086
|
-
let
|
|
2086
|
+
let a = ge(u, e + 1), s = a.split("|");
|
|
2087
2087
|
const l = [];
|
|
2088
2088
|
for (let p = 0; p < s.length; p++) {
|
|
2089
2089
|
const m = s[p].trim();
|
|
@@ -2096,9 +2096,9 @@ function er(u, e, t, n) {
|
|
|
2096
2096
|
return !1;
|
|
2097
2097
|
m.charCodeAt(m.length - 1) === 58 ? l.push(m.charCodeAt(0) === 58 ? "center" : "right") : m.charCodeAt(0) === 58 ? l.push("left") : l.push("");
|
|
2098
2098
|
}
|
|
2099
|
-
if (
|
|
2099
|
+
if (a = ge(u, e).trim(), a.indexOf("|") === -1 || u.sCount[e] - u.blkIndent >= 4)
|
|
2100
2100
|
return !1;
|
|
2101
|
-
s = et(
|
|
2101
|
+
s = et(a), s.length && s[0] === "" && s.shift(), s.length && s[s.length - 1] === "" && s.pop();
|
|
2102
2102
|
const d = s.length;
|
|
2103
2103
|
if (d === 0 || d !== l.length)
|
|
2104
2104
|
return !1;
|
|
@@ -2127,7 +2127,7 @@ function er(u, e, t, n) {
|
|
|
2127
2127
|
p = !0;
|
|
2128
2128
|
break;
|
|
2129
2129
|
}
|
|
2130
|
-
if (p || (
|
|
2130
|
+
if (p || (a = ge(u, r).trim(), !a) || u.sCount[r] - u.blkIndent >= 4 || (s = et(a), s.length && s[0] === "" && s.shift(), s.length && s[s.length - 1] === "" && s.pop(), x += d - s.length, x > ur))
|
|
2131
2131
|
break;
|
|
2132
2132
|
if (r === e + 2) {
|
|
2133
2133
|
const L = u.push("tbody_open", "tbody", 1);
|
|
@@ -2169,37 +2169,37 @@ function nr(u, e, t, n) {
|
|
|
2169
2169
|
let r = u.bMarks[e] + u.tShift[e], o = u.eMarks[e];
|
|
2170
2170
|
if (u.sCount[e] - u.blkIndent >= 4 || r + 3 > o)
|
|
2171
2171
|
return !1;
|
|
2172
|
-
const
|
|
2173
|
-
if (
|
|
2172
|
+
const c = u.src.charCodeAt(r);
|
|
2173
|
+
if (c !== 126 && c !== 96)
|
|
2174
2174
|
return !1;
|
|
2175
2175
|
let i = r;
|
|
2176
|
-
r = u.skipChars(r,
|
|
2177
|
-
let
|
|
2178
|
-
if (
|
|
2176
|
+
r = u.skipChars(r, c);
|
|
2177
|
+
let a = r - i;
|
|
2178
|
+
if (a < 3)
|
|
2179
2179
|
return !1;
|
|
2180
2180
|
const s = u.src.slice(i, r), l = u.src.slice(r, o);
|
|
2181
|
-
if (
|
|
2181
|
+
if (c === 96 && l.indexOf(String.fromCharCode(c)) >= 0)
|
|
2182
2182
|
return !1;
|
|
2183
2183
|
if (n)
|
|
2184
2184
|
return !0;
|
|
2185
2185
|
let d = e, _ = !1;
|
|
2186
2186
|
for (; d++, !(d >= t || (r = i = u.bMarks[d] + u.tShift[d], o = u.eMarks[d], r < o && u.sCount[d] < u.blkIndent)); )
|
|
2187
|
-
if (u.src.charCodeAt(r) ===
|
|
2187
|
+
if (u.src.charCodeAt(r) === c && !(u.sCount[d] - u.blkIndent >= 4) && (r = u.skipChars(r, c), !(r - i < a) && (r = u.skipSpaces(r), !(r < o)))) {
|
|
2188
2188
|
_ = !0;
|
|
2189
2189
|
break;
|
|
2190
2190
|
}
|
|
2191
|
-
|
|
2191
|
+
a = u.sCount[e], u.line = d + (_ ? 1 : 0);
|
|
2192
2192
|
const h = u.push("fence", "code", 0);
|
|
2193
|
-
return h.info = l, h.content = u.getLines(e + 1, d,
|
|
2193
|
+
return h.info = l, h.content = u.getLines(e + 1, d, a, !0), h.markup = s, h.map = [e, u.line], !0;
|
|
2194
2194
|
}
|
|
2195
2195
|
function rr(u, e, t, n) {
|
|
2196
2196
|
let r = u.bMarks[e] + u.tShift[e], o = u.eMarks[e];
|
|
2197
|
-
const
|
|
2197
|
+
const c = u.lineMax;
|
|
2198
2198
|
if (u.sCount[e] - u.blkIndent >= 4 || u.src.charCodeAt(r) !== 62)
|
|
2199
2199
|
return !1;
|
|
2200
2200
|
if (n)
|
|
2201
2201
|
return !0;
|
|
2202
|
-
const i = [],
|
|
2202
|
+
const i = [], a = [], s = [], l = [], d = u.md.block.ruler.getRules("blockquote"), _ = u.parentType;
|
|
2203
2203
|
u.parentType = "blockquote";
|
|
2204
2204
|
let h = !1, f;
|
|
2205
2205
|
for (f = e; f < t; f++) {
|
|
@@ -2218,7 +2218,7 @@ function rr(u, e, t, n) {
|
|
|
2218
2218
|
break;
|
|
2219
2219
|
r++;
|
|
2220
2220
|
}
|
|
2221
|
-
h = r >= o,
|
|
2221
|
+
h = r >= o, a.push(u.bsCount[f]), u.bsCount[f] = u.sCount[f] + 1 + (L ? 1 : 0), s.push(u.sCount[f]), u.sCount[f] = H - m, l.push(u.tShift[f]), u.tShift[f] = r - u.bMarks[f];
|
|
2222
2222
|
continue;
|
|
2223
2223
|
}
|
|
2224
2224
|
if (h)
|
|
@@ -2230,10 +2230,10 @@ function rr(u, e, t, n) {
|
|
|
2230
2230
|
break;
|
|
2231
2231
|
}
|
|
2232
2232
|
if (p) {
|
|
2233
|
-
u.lineMax = f, u.blkIndent !== 0 && (i.push(u.bMarks[f]),
|
|
2233
|
+
u.lineMax = f, u.blkIndent !== 0 && (i.push(u.bMarks[f]), a.push(u.bsCount[f]), l.push(u.tShift[f]), s.push(u.sCount[f]), u.sCount[f] -= u.blkIndent);
|
|
2234
2234
|
break;
|
|
2235
2235
|
}
|
|
2236
|
-
i.push(u.bMarks[f]),
|
|
2236
|
+
i.push(u.bMarks[f]), a.push(u.bsCount[f]), l.push(u.tShift[f]), s.push(u.sCount[f]), u.sCount[f] = -1;
|
|
2237
2237
|
}
|
|
2238
2238
|
const g = u.blkIndent;
|
|
2239
2239
|
u.blkIndent = 0;
|
|
@@ -2242,9 +2242,9 @@ function rr(u, e, t, n) {
|
|
|
2242
2242
|
const C = [e, 0];
|
|
2243
2243
|
A.map = C, u.md.block.tokenize(u, e, f);
|
|
2244
2244
|
const k = u.push("blockquote_close", "blockquote", -1);
|
|
2245
|
-
k.markup = ">", u.lineMax =
|
|
2245
|
+
k.markup = ">", u.lineMax = c, u.parentType = _, C[1] = u.line;
|
|
2246
2246
|
for (let x = 0; x < l.length; x++)
|
|
2247
|
-
u.bMarks[x + e] = i[x], u.tShift[x + e] = l[x], u.sCount[x + e] = s[x], u.bsCount[x + e] =
|
|
2247
|
+
u.bMarks[x + e] = i[x], u.tShift[x + e] = l[x], u.sCount[x + e] = s[x], u.bsCount[x + e] = a[x];
|
|
2248
2248
|
return u.blkIndent = g, !0;
|
|
2249
2249
|
}
|
|
2250
2250
|
function or(u, e, t, n) {
|
|
@@ -2252,23 +2252,23 @@ function or(u, e, t, n) {
|
|
|
2252
2252
|
if (u.sCount[e] - u.blkIndent >= 4)
|
|
2253
2253
|
return !1;
|
|
2254
2254
|
let o = u.bMarks[e] + u.tShift[e];
|
|
2255
|
-
const
|
|
2256
|
-
if (
|
|
2255
|
+
const c = u.src.charCodeAt(o++);
|
|
2256
|
+
if (c !== 42 && c !== 45 && c !== 95)
|
|
2257
2257
|
return !1;
|
|
2258
2258
|
let i = 1;
|
|
2259
2259
|
for (; o < r; ) {
|
|
2260
2260
|
const s = u.src.charCodeAt(o++);
|
|
2261
|
-
if (s !==
|
|
2261
|
+
if (s !== c && !G(s))
|
|
2262
2262
|
return !1;
|
|
2263
|
-
s ===
|
|
2263
|
+
s === c && i++;
|
|
2264
2264
|
}
|
|
2265
2265
|
if (i < 3)
|
|
2266
2266
|
return !1;
|
|
2267
2267
|
if (n)
|
|
2268
2268
|
return !0;
|
|
2269
2269
|
u.line = e + 1;
|
|
2270
|
-
const
|
|
2271
|
-
return
|
|
2270
|
+
const a = u.push("hr", "hr", 0);
|
|
2271
|
+
return a.map = [e, u.line], a.markup = Array(i + 1).join(String.fromCharCode(c)), !0;
|
|
2272
2272
|
}
|
|
2273
2273
|
function tt(u, e) {
|
|
2274
2274
|
const t = u.eMarks[e];
|
|
@@ -2310,37 +2310,37 @@ function ir(u, e) {
|
|
|
2310
2310
|
for (let n = e + 2, r = u.tokens.length - 2; n < r; n++)
|
|
2311
2311
|
u.tokens[n].level === t && u.tokens[n].type === "paragraph_open" && (u.tokens[n + 2].hidden = !0, u.tokens[n].hidden = !0, n += 2);
|
|
2312
2312
|
}
|
|
2313
|
-
function
|
|
2314
|
-
let r, o,
|
|
2315
|
-
if (u.sCount[
|
|
2313
|
+
function cr(u, e, t, n) {
|
|
2314
|
+
let r, o, c, i, a = e, s = !0;
|
|
2315
|
+
if (u.sCount[a] - u.blkIndent >= 4 || u.listIndent >= 0 && u.sCount[a] - u.listIndent >= 4 && u.sCount[a] < u.blkIndent)
|
|
2316
2316
|
return !1;
|
|
2317
2317
|
let l = !1;
|
|
2318
|
-
n && u.parentType === "paragraph" && u.sCount[
|
|
2318
|
+
n && u.parentType === "paragraph" && u.sCount[a] >= u.blkIndent && (l = !0);
|
|
2319
2319
|
let d, _, h;
|
|
2320
|
-
if ((h = nt(u,
|
|
2321
|
-
if (d = !0,
|
|
2322
|
-
} else if ((h = tt(u,
|
|
2320
|
+
if ((h = nt(u, a)) >= 0) {
|
|
2321
|
+
if (d = !0, c = u.bMarks[a] + u.tShift[a], _ = Number(u.src.slice(c, h - 1)), l && _ !== 1) return !1;
|
|
2322
|
+
} else if ((h = tt(u, a)) >= 0)
|
|
2323
2323
|
d = !1;
|
|
2324
2324
|
else
|
|
2325
2325
|
return !1;
|
|
2326
|
-
if (l && u.skipSpaces(h) >= u.eMarks[
|
|
2326
|
+
if (l && u.skipSpaces(h) >= u.eMarks[a])
|
|
2327
2327
|
return !1;
|
|
2328
2328
|
if (n)
|
|
2329
2329
|
return !0;
|
|
2330
2330
|
const f = u.src.charCodeAt(h - 1), g = u.tokens.length;
|
|
2331
2331
|
d ? (i = u.push("ordered_list_open", "ol", 1), _ !== 1 && (i.attrs = [["start", _]])) : i = u.push("bullet_list_open", "ul", 1);
|
|
2332
|
-
const A = [
|
|
2332
|
+
const A = [a, 0];
|
|
2333
2333
|
i.map = A, i.markup = String.fromCharCode(f);
|
|
2334
2334
|
let C = !1;
|
|
2335
2335
|
const k = u.md.block.ruler.getRules("list"), x = u.parentType;
|
|
2336
|
-
for (u.parentType = "list";
|
|
2337
|
-
o = h, r = u.eMarks[
|
|
2338
|
-
const p = u.sCount[
|
|
2336
|
+
for (u.parentType = "list"; a < t; ) {
|
|
2337
|
+
o = h, r = u.eMarks[a];
|
|
2338
|
+
const p = u.sCount[a] + h - (u.bMarks[a] + u.tShift[a]);
|
|
2339
2339
|
let m = p;
|
|
2340
2340
|
for (; o < r; ) {
|
|
2341
2341
|
const ou = u.src.charCodeAt(o);
|
|
2342
2342
|
if (ou === 9)
|
|
2343
|
-
m += 4 - (m + u.bsCount[
|
|
2343
|
+
m += 4 - (m + u.bsCount[a]) % 4;
|
|
2344
2344
|
else if (ou === 32)
|
|
2345
2345
|
m++;
|
|
2346
2346
|
else
|
|
@@ -2352,32 +2352,32 @@ function ar(u, e, t, n) {
|
|
|
2352
2352
|
L >= r ? T = 1 : T = m - p, T > 4 && (T = 1);
|
|
2353
2353
|
const H = p + T;
|
|
2354
2354
|
i = u.push("list_item_open", "li", 1), i.markup = String.fromCharCode(f);
|
|
2355
|
-
const R = [
|
|
2356
|
-
i.map = R, d && (i.info = u.src.slice(
|
|
2357
|
-
const K = u.tight, _u = u.tShift[
|
|
2358
|
-
if (u.listIndent = u.blkIndent, u.blkIndent = H, u.tight = !0, u.tShift[
|
|
2355
|
+
const R = [a, 0];
|
|
2356
|
+
i.map = R, d && (i.info = u.src.slice(c, h - 1));
|
|
2357
|
+
const K = u.tight, _u = u.tShift[a], ju = u.sCount[a], ku = u.listIndent;
|
|
2358
|
+
if (u.listIndent = u.blkIndent, u.blkIndent = H, u.tight = !0, u.tShift[a] = L - u.bMarks[a], u.sCount[a] = m, L >= r && u.isEmpty(a + 1) ? u.line = Math.min(u.line + 2, t) : u.md.block.tokenize(u, a, t, !0), (!u.tight || C) && (s = !1), C = u.line - a > 1 && u.isEmpty(u.line - 1), u.blkIndent = u.listIndent, u.listIndent = ku, u.tShift[a] = _u, u.sCount[a] = ju, u.tight = K, i = u.push("list_item_close", "li", -1), i.markup = String.fromCharCode(f), a = u.line, R[1] = a, a >= t || u.sCount[a] < u.blkIndent || u.sCount[a] - u.blkIndent >= 4)
|
|
2359
2359
|
break;
|
|
2360
2360
|
let fu = !1;
|
|
2361
2361
|
for (let ou = 0, Hu = k.length; ou < Hu; ou++)
|
|
2362
|
-
if (k[ou](u,
|
|
2362
|
+
if (k[ou](u, a, t, !0)) {
|
|
2363
2363
|
fu = !0;
|
|
2364
2364
|
break;
|
|
2365
2365
|
}
|
|
2366
2366
|
if (fu)
|
|
2367
2367
|
break;
|
|
2368
2368
|
if (d) {
|
|
2369
|
-
if (h = nt(u,
|
|
2369
|
+
if (h = nt(u, a), h < 0)
|
|
2370
2370
|
break;
|
|
2371
|
-
|
|
2372
|
-
} else if (h = tt(u,
|
|
2371
|
+
c = u.bMarks[a] + u.tShift[a];
|
|
2372
|
+
} else if (h = tt(u, a), h < 0)
|
|
2373
2373
|
break;
|
|
2374
2374
|
if (f !== u.src.charCodeAt(h - 1))
|
|
2375
2375
|
break;
|
|
2376
2376
|
}
|
|
2377
|
-
return d ? i = u.push("ordered_list_close", "ol", -1) : i = u.push("bullet_list_close", "ul", -1), i.markup = String.fromCharCode(f), A[1] =
|
|
2377
|
+
return d ? i = u.push("ordered_list_close", "ol", -1) : i = u.push("bullet_list_close", "ul", -1), i.markup = String.fromCharCode(f), A[1] = a, u.line = a, u.parentType = x, s && ir(u, g), !0;
|
|
2378
2378
|
}
|
|
2379
|
-
function
|
|
2380
|
-
let r = u.bMarks[e] + u.tShift[e], o = u.eMarks[e],
|
|
2379
|
+
function ar(u, e, t, n) {
|
|
2380
|
+
let r = u.bMarks[e] + u.tShift[e], o = u.eMarks[e], c = e + 1;
|
|
2381
2381
|
if (u.sCount[e] - u.blkIndent >= 4 || u.src.charCodeAt(r) !== 91)
|
|
2382
2382
|
return !1;
|
|
2383
2383
|
function i(k) {
|
|
@@ -2400,72 +2400,72 @@ function cr(u, e, t, n) {
|
|
|
2400
2400
|
const m = u.bMarks[k] + u.tShift[k], L = u.eMarks[k];
|
|
2401
2401
|
return u.src.slice(m, L + 1);
|
|
2402
2402
|
}
|
|
2403
|
-
let
|
|
2404
|
-
o =
|
|
2403
|
+
let a = u.src.slice(r, o + 1);
|
|
2404
|
+
o = a.length;
|
|
2405
2405
|
let s = -1;
|
|
2406
2406
|
for (r = 1; r < o; r++) {
|
|
2407
|
-
const k =
|
|
2407
|
+
const k = a.charCodeAt(r);
|
|
2408
2408
|
if (k === 91)
|
|
2409
2409
|
return !1;
|
|
2410
2410
|
if (k === 93) {
|
|
2411
2411
|
s = r;
|
|
2412
2412
|
break;
|
|
2413
2413
|
} else if (k === 10) {
|
|
2414
|
-
const x = i(
|
|
2415
|
-
x !== null && (
|
|
2416
|
-
} else if (k === 92 && (r++, r < o &&
|
|
2417
|
-
const x = i(
|
|
2418
|
-
x !== null && (
|
|
2414
|
+
const x = i(c);
|
|
2415
|
+
x !== null && (a += x, o = a.length, c++);
|
|
2416
|
+
} else if (k === 92 && (r++, r < o && a.charCodeAt(r) === 10)) {
|
|
2417
|
+
const x = i(c);
|
|
2418
|
+
x !== null && (a += x, o = a.length, c++);
|
|
2419
2419
|
}
|
|
2420
2420
|
}
|
|
2421
|
-
if (s < 0 ||
|
|
2421
|
+
if (s < 0 || a.charCodeAt(s + 1) !== 58)
|
|
2422
2422
|
return !1;
|
|
2423
2423
|
for (r = s + 2; r < o; r++) {
|
|
2424
|
-
const k =
|
|
2424
|
+
const k = a.charCodeAt(r);
|
|
2425
2425
|
if (k === 10) {
|
|
2426
|
-
const x = i(
|
|
2427
|
-
x !== null && (
|
|
2426
|
+
const x = i(c);
|
|
2427
|
+
x !== null && (a += x, o = a.length, c++);
|
|
2428
2428
|
} else if (!G(k)) break;
|
|
2429
2429
|
}
|
|
2430
|
-
const l = u.md.helpers.parseLinkDestination(
|
|
2430
|
+
const l = u.md.helpers.parseLinkDestination(a, r, o);
|
|
2431
2431
|
if (!l.ok)
|
|
2432
2432
|
return !1;
|
|
2433
2433
|
const d = u.md.normalizeLink(l.str);
|
|
2434
2434
|
if (!u.md.validateLink(d))
|
|
2435
2435
|
return !1;
|
|
2436
2436
|
r = l.pos;
|
|
2437
|
-
const _ = r, h =
|
|
2437
|
+
const _ = r, h = c, f = r;
|
|
2438
2438
|
for (; r < o; r++) {
|
|
2439
|
-
const k =
|
|
2439
|
+
const k = a.charCodeAt(r);
|
|
2440
2440
|
if (k === 10) {
|
|
2441
|
-
const x = i(
|
|
2442
|
-
x !== null && (
|
|
2441
|
+
const x = i(c);
|
|
2442
|
+
x !== null && (a += x, o = a.length, c++);
|
|
2443
2443
|
} else if (!G(k)) break;
|
|
2444
2444
|
}
|
|
2445
|
-
let g = u.md.helpers.parseLinkTitle(
|
|
2445
|
+
let g = u.md.helpers.parseLinkTitle(a, r, o);
|
|
2446
2446
|
for (; g.can_continue; ) {
|
|
2447
|
-
const k = i(
|
|
2447
|
+
const k = i(c);
|
|
2448
2448
|
if (k === null) break;
|
|
2449
|
-
|
|
2449
|
+
a += k, r = o, o = a.length, c++, g = u.md.helpers.parseLinkTitle(a, r, o, g);
|
|
2450
2450
|
}
|
|
2451
2451
|
let A;
|
|
2452
|
-
for (r < o && f !== r && g.ok ? (A = g.str, r = g.pos) : (A = "", r = _,
|
|
2453
|
-
const k =
|
|
2452
|
+
for (r < o && f !== r && g.ok ? (A = g.str, r = g.pos) : (A = "", r = _, c = h); r < o; ) {
|
|
2453
|
+
const k = a.charCodeAt(r);
|
|
2454
2454
|
if (!G(k))
|
|
2455
2455
|
break;
|
|
2456
2456
|
r++;
|
|
2457
2457
|
}
|
|
2458
|
-
if (r < o &&
|
|
2459
|
-
for (A = "", r = _,
|
|
2460
|
-
const k =
|
|
2458
|
+
if (r < o && a.charCodeAt(r) !== 10 && A)
|
|
2459
|
+
for (A = "", r = _, c = h; r < o; ) {
|
|
2460
|
+
const k = a.charCodeAt(r);
|
|
2461
2461
|
if (!G(k))
|
|
2462
2462
|
break;
|
|
2463
2463
|
r++;
|
|
2464
2464
|
}
|
|
2465
|
-
if (r < o &&
|
|
2465
|
+
if (r < o && a.charCodeAt(r) !== 10)
|
|
2466
2466
|
return !1;
|
|
2467
|
-
const C = se(
|
|
2468
|
-
return C ? (n || (typeof u.env.references > "u" && (u.env.references = {}), typeof u.env.references[C] > "u" && (u.env.references[C] = { title: A, href: d }), u.line =
|
|
2467
|
+
const C = se(a.slice(1, s));
|
|
2468
|
+
return C ? (n || (typeof u.env.references > "u" && (u.env.references = {}), typeof u.env.references[C] > "u" && (u.env.references[C] = { title: A, href: d }), u.line = c), !0) : !1;
|
|
2469
2469
|
}
|
|
2470
2470
|
const sr = [
|
|
2471
2471
|
"address",
|
|
@@ -2543,42 +2543,42 @@ function yr(u, e, t, n) {
|
|
|
2543
2543
|
let r = u.bMarks[e] + u.tShift[e], o = u.eMarks[e];
|
|
2544
2544
|
if (u.sCount[e] - u.blkIndent >= 4 || !u.md.options.html || u.src.charCodeAt(r) !== 60)
|
|
2545
2545
|
return !1;
|
|
2546
|
-
let
|
|
2547
|
-
for (; i < zu.length && !zu[i][0].test(
|
|
2546
|
+
let c = u.src.slice(r, o), i = 0;
|
|
2547
|
+
for (; i < zu.length && !zu[i][0].test(c); i++)
|
|
2548
2548
|
;
|
|
2549
2549
|
if (i === zu.length)
|
|
2550
2550
|
return !1;
|
|
2551
2551
|
if (n)
|
|
2552
2552
|
return zu[i][2];
|
|
2553
|
-
let
|
|
2554
|
-
if (!zu[i][1].test(
|
|
2555
|
-
for (;
|
|
2556
|
-
if (r = u.bMarks[
|
|
2557
|
-
|
|
2553
|
+
let a = e + 1;
|
|
2554
|
+
if (!zu[i][1].test(c)) {
|
|
2555
|
+
for (; a < t && !(u.sCount[a] < u.blkIndent); a++)
|
|
2556
|
+
if (r = u.bMarks[a] + u.tShift[a], o = u.eMarks[a], c = u.src.slice(r, o), zu[i][1].test(c)) {
|
|
2557
|
+
c.length !== 0 && a++;
|
|
2558
2558
|
break;
|
|
2559
2559
|
}
|
|
2560
2560
|
}
|
|
2561
|
-
u.line =
|
|
2561
|
+
u.line = a;
|
|
2562
2562
|
const s = u.push("html_block", "", 0);
|
|
2563
|
-
return s.map = [e,
|
|
2563
|
+
return s.map = [e, a], s.content = u.getLines(e, a, u.blkIndent, !0), !0;
|
|
2564
2564
|
}
|
|
2565
2565
|
function Ar(u, e, t, n) {
|
|
2566
2566
|
let r = u.bMarks[e] + u.tShift[e], o = u.eMarks[e];
|
|
2567
2567
|
if (u.sCount[e] - u.blkIndent >= 4)
|
|
2568
2568
|
return !1;
|
|
2569
|
-
let
|
|
2570
|
-
if (
|
|
2569
|
+
let c = u.src.charCodeAt(r);
|
|
2570
|
+
if (c !== 35 || r >= o)
|
|
2571
2571
|
return !1;
|
|
2572
2572
|
let i = 1;
|
|
2573
|
-
for (
|
|
2574
|
-
i++,
|
|
2575
|
-
if (i > 6 || r < o && !G(
|
|
2573
|
+
for (c = u.src.charCodeAt(++r); c === 35 && r < o && i <= 6; )
|
|
2574
|
+
i++, c = u.src.charCodeAt(++r);
|
|
2575
|
+
if (i > 6 || r < o && !G(c))
|
|
2576
2576
|
return !1;
|
|
2577
2577
|
if (n)
|
|
2578
2578
|
return !0;
|
|
2579
2579
|
o = u.skipSpacesBack(o, r);
|
|
2580
|
-
const
|
|
2581
|
-
|
|
2580
|
+
const a = u.skipCharsBack(o, 35, r);
|
|
2581
|
+
a > r && G(u.src.charCodeAt(a - 1)) && (o = a), u.line = e + 1;
|
|
2582
2582
|
const s = u.push("heading_open", "h" + String(i), 1);
|
|
2583
2583
|
s.markup = "########".slice(0, i), s.map = [e, u.line];
|
|
2584
2584
|
const l = u.push("inline", "", 0);
|
|
@@ -2592,15 +2592,15 @@ function Cr(u, e, t) {
|
|
|
2592
2592
|
return !1;
|
|
2593
2593
|
const r = u.parentType;
|
|
2594
2594
|
u.parentType = "paragraph";
|
|
2595
|
-
let o = 0,
|
|
2595
|
+
let o = 0, c, i = e + 1;
|
|
2596
2596
|
for (; i < t && !u.isEmpty(i); i++) {
|
|
2597
2597
|
if (u.sCount[i] - u.blkIndent > 3)
|
|
2598
2598
|
continue;
|
|
2599
2599
|
if (u.sCount[i] >= u.blkIndent) {
|
|
2600
2600
|
let h = u.bMarks[i] + u.tShift[i];
|
|
2601
2601
|
const f = u.eMarks[i];
|
|
2602
|
-
if (h < f && (
|
|
2603
|
-
o =
|
|
2602
|
+
if (h < f && (c = u.src.charCodeAt(h), (c === 45 || c === 61) && (h = u.skipChars(h, c), h = u.skipSpaces(h), h >= f))) {
|
|
2603
|
+
o = c === 61 ? 1 : 2;
|
|
2604
2604
|
break;
|
|
2605
2605
|
}
|
|
2606
2606
|
}
|
|
@@ -2617,14 +2617,14 @@ function Cr(u, e, t) {
|
|
|
2617
2617
|
}
|
|
2618
2618
|
if (!o)
|
|
2619
2619
|
return !1;
|
|
2620
|
-
const
|
|
2620
|
+
const a = u.getLines(e, i, u.blkIndent, !1).trim();
|
|
2621
2621
|
u.line = i + 1;
|
|
2622
2622
|
const s = u.push("heading_open", "h" + String(o), 1);
|
|
2623
|
-
s.markup = String.fromCharCode(
|
|
2623
|
+
s.markup = String.fromCharCode(c), s.map = [e, u.line];
|
|
2624
2624
|
const l = u.push("inline", "", 0);
|
|
2625
|
-
l.content =
|
|
2625
|
+
l.content = a, l.map = [e, u.line - 1], l.children = [];
|
|
2626
2626
|
const d = u.push("heading_close", "h" + String(o), -1);
|
|
2627
|
-
return d.markup = String.fromCharCode(
|
|
2627
|
+
return d.markup = String.fromCharCode(c), u.parentType = r, !0;
|
|
2628
2628
|
}
|
|
2629
2629
|
function Dr(u, e, t) {
|
|
2630
2630
|
const n = u.md.block.ruler.getRules("paragraph"), r = u.parentType;
|
|
@@ -2641,12 +2641,12 @@ function Dr(u, e, t) {
|
|
|
2641
2641
|
if (s)
|
|
2642
2642
|
break;
|
|
2643
2643
|
}
|
|
2644
|
-
const
|
|
2644
|
+
const c = u.getLines(e, o, u.blkIndent, !1).trim();
|
|
2645
2645
|
u.line = o;
|
|
2646
2646
|
const i = u.push("paragraph_open", "p", 1);
|
|
2647
2647
|
i.map = [e, u.line];
|
|
2648
|
-
const
|
|
2649
|
-
return
|
|
2648
|
+
const a = u.push("inline", "", 0);
|
|
2649
|
+
return a.content = c, a.map = [e, u.line], a.children = [], u.push("paragraph_close", "p", -1), u.parentType = r, !0;
|
|
2650
2650
|
}
|
|
2651
2651
|
const ee = [
|
|
2652
2652
|
// First 2 params - rule name & source. Secondary array - list of rules,
|
|
@@ -2656,8 +2656,8 @@ const ee = [
|
|
|
2656
2656
|
["fence", nr, ["paragraph", "reference", "blockquote", "list"]],
|
|
2657
2657
|
["blockquote", rr, ["paragraph", "reference", "blockquote", "list"]],
|
|
2658
2658
|
["hr", or, ["paragraph", "reference", "blockquote", "list"]],
|
|
2659
|
-
["list",
|
|
2660
|
-
["reference",
|
|
2659
|
+
["list", cr, ["paragraph", "reference", "blockquote"]],
|
|
2660
|
+
["reference", ar],
|
|
2661
2661
|
["html_block", yr, ["paragraph", "reference", "blockquote"]],
|
|
2662
2662
|
["heading", Ar, ["paragraph", "reference", "blockquote"]],
|
|
2663
2663
|
["lheading", Cr],
|
|
@@ -2670,22 +2670,22 @@ function le() {
|
|
|
2670
2670
|
}
|
|
2671
2671
|
le.prototype.tokenize = function(u, e, t) {
|
|
2672
2672
|
const n = this.ruler.getRules(""), r = n.length, o = u.md.options.maxNesting;
|
|
2673
|
-
let
|
|
2674
|
-
for (;
|
|
2673
|
+
let c = e, i = !1;
|
|
2674
|
+
for (; c < t && (u.line = c = u.skipEmptyLines(c), !(c >= t || u.sCount[c] < u.blkIndent)); ) {
|
|
2675
2675
|
if (u.level >= o) {
|
|
2676
2676
|
u.line = t;
|
|
2677
2677
|
break;
|
|
2678
2678
|
}
|
|
2679
|
-
const
|
|
2679
|
+
const a = u.line;
|
|
2680
2680
|
let s = !1;
|
|
2681
2681
|
for (let l = 0; l < r; l++)
|
|
2682
|
-
if (s = n[l](u,
|
|
2683
|
-
if (
|
|
2682
|
+
if (s = n[l](u, c, t, !1), s) {
|
|
2683
|
+
if (a >= u.line)
|
|
2684
2684
|
throw new Error("block rule didn't increment state.line");
|
|
2685
2685
|
break;
|
|
2686
2686
|
}
|
|
2687
2687
|
if (!s) throw new Error("none of the block rules matched");
|
|
2688
|
-
u.tight = !i, u.isEmpty(u.line - 1) && (i = !0),
|
|
2688
|
+
u.tight = !i, u.isEmpty(u.line - 1) && (i = !0), c = u.line, c < t && u.isEmpty(c) && (i = !0, c++, u.line = c);
|
|
2689
2689
|
}
|
|
2690
2690
|
};
|
|
2691
2691
|
le.prototype.parse = function(u, e, t, n) {
|
|
@@ -2713,8 +2713,8 @@ Xu.prototype.scanDelims = function(u, e) {
|
|
|
2713
2713
|
let o = u;
|
|
2714
2714
|
for (; o < t && this.src.charCodeAt(o) === n; )
|
|
2715
2715
|
o++;
|
|
2716
|
-
const
|
|
2717
|
-
return { can_open: _ && (e || !h ||
|
|
2716
|
+
const c = o - u, i = o < t ? this.src.charCodeAt(o) : 32, a = Ku(r) || Gu(String.fromCharCode(r)), s = Ku(i) || Gu(String.fromCharCode(i)), l = Zu(r), d = Zu(i), _ = !d && (!s || l || a), h = !l && (!a || d || s);
|
|
2717
|
+
return { can_open: _ && (e || !h || a), can_close: h && (e || !_ || s), length: c };
|
|
2718
2718
|
};
|
|
2719
2719
|
Xu.prototype.Token = du;
|
|
2720
2720
|
function Er(u) {
|
|
@@ -2760,17 +2760,17 @@ function Sr(u, e) {
|
|
|
2760
2760
|
if (t + 3 > n || u.src.charCodeAt(t) !== 58 || u.src.charCodeAt(t + 1) !== 47 || u.src.charCodeAt(t + 2) !== 47) return !1;
|
|
2761
2761
|
const r = u.pending.match(wr);
|
|
2762
2762
|
if (!r) return !1;
|
|
2763
|
-
const o = r[1],
|
|
2764
|
-
if (!
|
|
2765
|
-
let i =
|
|
2763
|
+
const o = r[1], c = u.md.linkify.matchAtStart(u.src.slice(t - o.length));
|
|
2764
|
+
if (!c) return !1;
|
|
2765
|
+
let i = c.url;
|
|
2766
2766
|
if (i.length <= o.length) return !1;
|
|
2767
2767
|
i = i.replace(/\*+$/, "");
|
|
2768
|
-
const
|
|
2769
|
-
if (!u.md.validateLink(
|
|
2768
|
+
const a = u.md.normalizeLink(i);
|
|
2769
|
+
if (!u.md.validateLink(a)) return !1;
|
|
2770
2770
|
if (!e) {
|
|
2771
2771
|
u.pending = u.pending.slice(0, -o.length);
|
|
2772
2772
|
const s = u.push("link_open", "a", 1);
|
|
2773
|
-
s.attrs = [["href",
|
|
2773
|
+
s.attrs = [["href", a]], s.markup = "linkify", s.info = "auto";
|
|
2774
2774
|
const l = u.push("text", "", 0);
|
|
2775
2775
|
l.content = u.md.normalizeLinkText(i);
|
|
2776
2776
|
const d = u.push("link_close", "a", -1);
|
|
@@ -2818,10 +2818,10 @@ function Tr(u, e) {
|
|
|
2818
2818
|
const i = u.src.charCodeAt(t + 1);
|
|
2819
2819
|
i >= 56320 && i <= 57343 && (o += u.src[t + 1], t++);
|
|
2820
2820
|
}
|
|
2821
|
-
const
|
|
2821
|
+
const c = "\\" + o;
|
|
2822
2822
|
if (!e) {
|
|
2823
2823
|
const i = u.push("text_special", "", 0);
|
|
2824
|
-
r < 256 && Re[r] !== 0 ? i.content = o : i.content =
|
|
2824
|
+
r < 256 && Re[r] !== 0 ? i.content = o : i.content = c, i.markup = c, i.info = "escape";
|
|
2825
2825
|
}
|
|
2826
2826
|
return u.pos = t + 1, !0;
|
|
2827
2827
|
}
|
|
@@ -2834,24 +2834,24 @@ function zr(u, e) {
|
|
|
2834
2834
|
const o = u.posMax;
|
|
2835
2835
|
for (; t < o && u.src.charCodeAt(t) === 96; )
|
|
2836
2836
|
t++;
|
|
2837
|
-
const
|
|
2837
|
+
const c = u.src.slice(r, t), i = c.length;
|
|
2838
2838
|
if (u.backticksScanned && (u.backticks[i] || 0) <= r)
|
|
2839
|
-
return e || (u.pending +=
|
|
2840
|
-
let
|
|
2841
|
-
for (; (s = u.src.indexOf("`",
|
|
2842
|
-
for (
|
|
2843
|
-
|
|
2844
|
-
const l =
|
|
2839
|
+
return e || (u.pending += c), u.pos += i, !0;
|
|
2840
|
+
let a = t, s;
|
|
2841
|
+
for (; (s = u.src.indexOf("`", a)) !== -1; ) {
|
|
2842
|
+
for (a = s + 1; a < o && u.src.charCodeAt(a) === 96; )
|
|
2843
|
+
a++;
|
|
2844
|
+
const l = a - s;
|
|
2845
2845
|
if (l === i) {
|
|
2846
2846
|
if (!e) {
|
|
2847
2847
|
const d = u.push("code_inline", "code", 0);
|
|
2848
|
-
d.markup =
|
|
2848
|
+
d.markup = c, d.content = u.src.slice(t, s).replace(/\n/g, " ").replace(/^ (.+) $/, "$1");
|
|
2849
2849
|
}
|
|
2850
|
-
return u.pos =
|
|
2850
|
+
return u.pos = a, !0;
|
|
2851
2851
|
}
|
|
2852
2852
|
u.backticks[l] = s;
|
|
2853
2853
|
}
|
|
2854
|
-
return u.backticksScanned = !0, e || (u.pending +=
|
|
2854
|
+
return u.backticksScanned = !0, e || (u.pending += c), u.pos += i, !0;
|
|
2855
2855
|
}
|
|
2856
2856
|
function Nr(u, e) {
|
|
2857
2857
|
const t = u.pos, n = u.src.charCodeAt(t);
|
|
@@ -2859,13 +2859,13 @@ function Nr(u, e) {
|
|
|
2859
2859
|
return !1;
|
|
2860
2860
|
const r = u.scanDelims(u.pos, !0);
|
|
2861
2861
|
let o = r.length;
|
|
2862
|
-
const
|
|
2862
|
+
const c = String.fromCharCode(n);
|
|
2863
2863
|
if (o < 2)
|
|
2864
2864
|
return !1;
|
|
2865
2865
|
let i;
|
|
2866
|
-
o % 2 && (i = u.push("text", "", 0), i.content =
|
|
2867
|
-
for (let
|
|
2868
|
-
i = u.push("text", "", 0), i.content =
|
|
2866
|
+
o % 2 && (i = u.push("text", "", 0), i.content = c, o--);
|
|
2867
|
+
for (let a = 0; a < o; a += 2)
|
|
2868
|
+
i = u.push("text", "", 0), i.content = c + c, u.delimiters.push({
|
|
2869
2869
|
marker: n,
|
|
2870
2870
|
length: 0,
|
|
2871
2871
|
// disable "rule of 3" length checks meant for emphasis
|
|
@@ -2880,18 +2880,18 @@ function rt(u, e) {
|
|
|
2880
2880
|
let t;
|
|
2881
2881
|
const n = [], r = e.length;
|
|
2882
2882
|
for (let o = 0; o < r; o++) {
|
|
2883
|
-
const
|
|
2884
|
-
if (
|
|
2883
|
+
const c = e[o];
|
|
2884
|
+
if (c.marker !== 126 || c.end === -1)
|
|
2885
2885
|
continue;
|
|
2886
|
-
const i = e[
|
|
2887
|
-
t = u.tokens[
|
|
2886
|
+
const i = e[c.end];
|
|
2887
|
+
t = u.tokens[c.token], t.type = "s_open", t.tag = "s", t.nesting = 1, t.markup = "~~", t.content = "", t = u.tokens[i.token], t.type = "s_close", t.tag = "s", t.nesting = -1, t.markup = "~~", t.content = "", u.tokens[i.token - 1].type === "text" && u.tokens[i.token - 1].content === "~" && n.push(i.token - 1);
|
|
2888
2888
|
}
|
|
2889
2889
|
for (; n.length; ) {
|
|
2890
2890
|
const o = n.pop();
|
|
2891
|
-
let
|
|
2892
|
-
for (;
|
|
2893
|
-
|
|
2894
|
-
|
|
2891
|
+
let c = o + 1;
|
|
2892
|
+
for (; c < u.tokens.length && u.tokens[c].type === "s_close"; )
|
|
2893
|
+
c++;
|
|
2894
|
+
c--, o !== c && (t = u.tokens[c], u.tokens[c] = u.tokens[o], u.tokens[o] = t);
|
|
2895
2895
|
}
|
|
2896
2896
|
}
|
|
2897
2897
|
function Lr(u) {
|
|
@@ -2910,8 +2910,8 @@ function Br(u, e) {
|
|
|
2910
2910
|
return !1;
|
|
2911
2911
|
const r = u.scanDelims(u.pos, n === 42);
|
|
2912
2912
|
for (let o = 0; o < r.length; o++) {
|
|
2913
|
-
const
|
|
2914
|
-
|
|
2913
|
+
const c = u.push("text", "", 0);
|
|
2914
|
+
c.content = String.fromCharCode(n), u.delimiters.push({
|
|
2915
2915
|
// Char code of the starting marker (number).
|
|
2916
2916
|
//
|
|
2917
2917
|
marker: n,
|
|
@@ -2940,12 +2940,12 @@ function ot(u, e) {
|
|
|
2940
2940
|
const r = e[n];
|
|
2941
2941
|
if (r.marker !== 95 && r.marker !== 42 || r.end === -1)
|
|
2942
2942
|
continue;
|
|
2943
|
-
const o = e[r.end],
|
|
2943
|
+
const o = e[r.end], c = n > 0 && e[n - 1].end === r.end + 1 && // check that first two markers match and adjacent
|
|
2944
2944
|
e[n - 1].marker === r.marker && e[n - 1].token === r.token - 1 && // check that last two markers are adjacent (we can safely assume they match)
|
|
2945
|
-
e[r.end + 1].token === o.token + 1, i = String.fromCharCode(r.marker),
|
|
2946
|
-
|
|
2945
|
+
e[r.end + 1].token === o.token + 1, i = String.fromCharCode(r.marker), a = u.tokens[r.token];
|
|
2946
|
+
a.type = c ? "strong_open" : "em_open", a.tag = c ? "strong" : "em", a.nesting = 1, a.markup = c ? i + i : i, a.content = "";
|
|
2947
2947
|
const s = u.tokens[o.token];
|
|
2948
|
-
s.type =
|
|
2948
|
+
s.type = c ? "strong_close" : "em_close", s.tag = c ? "strong" : "em", s.nesting = -1, s.markup = c ? i + i : i, s.content = "", c && (u.tokens[e[n - 1].token].content = "", u.tokens[e[r.end + 1].token].content = "", n--);
|
|
2949
2949
|
}
|
|
2950
2950
|
}
|
|
2951
2951
|
function qr(u) {
|
|
@@ -2959,7 +2959,7 @@ const Ot = {
|
|
|
2959
2959
|
postProcess: qr
|
|
2960
2960
|
};
|
|
2961
2961
|
function Or(u, e) {
|
|
2962
|
-
let t, n, r, o,
|
|
2962
|
+
let t, n, r, o, c = "", i = "", a = u.pos, s = !0;
|
|
2963
2963
|
if (u.src.charCodeAt(u.pos) !== 91)
|
|
2964
2964
|
return !1;
|
|
2965
2965
|
const l = u.pos, d = u.posMax, _ = u.pos + 1, h = u.md.helpers.parseLinkLabel(u, u.pos, !0);
|
|
@@ -2971,10 +2971,10 @@ function Or(u, e) {
|
|
|
2971
2971
|
;
|
|
2972
2972
|
if (f >= d)
|
|
2973
2973
|
return !1;
|
|
2974
|
-
if (
|
|
2975
|
-
for (
|
|
2974
|
+
if (a = f, r = u.md.helpers.parseLinkDestination(u.src, f, u.posMax), r.ok) {
|
|
2975
|
+
for (c = u.md.normalizeLink(r.str), u.md.validateLink(c) ? f = r.pos : c = "", a = f; f < d && (t = u.src.charCodeAt(f), !(!G(t) && t !== 10)); f++)
|
|
2976
2976
|
;
|
|
2977
|
-
if (r = u.md.helpers.parseLinkTitle(u.src, f, u.posMax), f < d &&
|
|
2977
|
+
if (r = u.md.helpers.parseLinkTitle(u.src, f, u.posMax), f < d && a !== f && r.ok)
|
|
2978
2978
|
for (i = r.str, f = r.pos; f < d && (t = u.src.charCodeAt(f), !(!G(t) && t !== 10)); f++)
|
|
2979
2979
|
;
|
|
2980
2980
|
}
|
|
@@ -2983,19 +2983,19 @@ function Or(u, e) {
|
|
|
2983
2983
|
if (s) {
|
|
2984
2984
|
if (typeof u.env.references > "u")
|
|
2985
2985
|
return !1;
|
|
2986
|
-
if (f < d && u.src.charCodeAt(f) === 91 ? (
|
|
2986
|
+
if (f < d && u.src.charCodeAt(f) === 91 ? (a = f + 1, f = u.md.helpers.parseLinkLabel(u, f), f >= 0 ? n = u.src.slice(a, f++) : f = h + 1) : f = h + 1, n || (n = u.src.slice(_, h)), o = u.env.references[se(n)], !o)
|
|
2987
2987
|
return u.pos = l, !1;
|
|
2988
|
-
|
|
2988
|
+
c = o.href, i = o.title;
|
|
2989
2989
|
}
|
|
2990
2990
|
if (!e) {
|
|
2991
2991
|
u.pos = _, u.posMax = h;
|
|
2992
|
-
const g = u.push("link_open", "a", 1), A = [["href",
|
|
2992
|
+
const g = u.push("link_open", "a", 1), A = [["href", c]];
|
|
2993
2993
|
g.attrs = A, i && A.push(["title", i]), u.linkLevel++, u.md.inline.tokenize(u), u.linkLevel--, u.push("link_close", "a", -1);
|
|
2994
2994
|
}
|
|
2995
2995
|
return u.pos = f, u.posMax = d, !0;
|
|
2996
2996
|
}
|
|
2997
2997
|
function Mr(u, e) {
|
|
2998
|
-
let t, n, r, o,
|
|
2998
|
+
let t, n, r, o, c, i, a, s, l = "";
|
|
2999
2999
|
const d = u.pos, _ = u.posMax;
|
|
3000
3000
|
if (u.src.charCodeAt(u.pos) !== 33 || u.src.charCodeAt(u.pos + 1) !== 91)
|
|
3001
3001
|
return !1;
|
|
@@ -3010,19 +3010,19 @@ function Mr(u, e) {
|
|
|
3010
3010
|
for (s = o, i = u.md.helpers.parseLinkDestination(u.src, o, u.posMax), i.ok && (l = u.md.normalizeLink(i.str), u.md.validateLink(l) ? o = i.pos : l = ""), s = o; o < _ && (t = u.src.charCodeAt(o), !(!G(t) && t !== 10)); o++)
|
|
3011
3011
|
;
|
|
3012
3012
|
if (i = u.md.helpers.parseLinkTitle(u.src, o, u.posMax), o < _ && s !== o && i.ok)
|
|
3013
|
-
for (
|
|
3013
|
+
for (a = i.str, o = i.pos; o < _ && (t = u.src.charCodeAt(o), !(!G(t) && t !== 10)); o++)
|
|
3014
3014
|
;
|
|
3015
3015
|
else
|
|
3016
|
-
|
|
3016
|
+
a = "";
|
|
3017
3017
|
if (o >= _ || u.src.charCodeAt(o) !== 41)
|
|
3018
3018
|
return u.pos = d, !1;
|
|
3019
3019
|
o++;
|
|
3020
3020
|
} else {
|
|
3021
3021
|
if (typeof u.env.references > "u")
|
|
3022
3022
|
return !1;
|
|
3023
|
-
if (o < _ && u.src.charCodeAt(o) === 91 ? (s = o + 1, o = u.md.helpers.parseLinkLabel(u, o), o >= 0 ? r = u.src.slice(s, o++) : o = f + 1) : o = f + 1, r || (r = u.src.slice(h, f)),
|
|
3023
|
+
if (o < _ && u.src.charCodeAt(o) === 91 ? (s = o + 1, o = u.md.helpers.parseLinkLabel(u, o), o >= 0 ? r = u.src.slice(s, o++) : o = f + 1) : o = f + 1, r || (r = u.src.slice(h, f)), c = u.env.references[se(r)], !c)
|
|
3024
3024
|
return u.pos = d, !1;
|
|
3025
|
-
l =
|
|
3025
|
+
l = c.href, a = c.title;
|
|
3026
3026
|
}
|
|
3027
3027
|
if (!e) {
|
|
3028
3028
|
n = u.src.slice(h, f);
|
|
@@ -3034,7 +3034,7 @@ function Mr(u, e) {
|
|
|
3034
3034
|
g
|
|
3035
3035
|
);
|
|
3036
3036
|
const A = u.push("image", "img", 0), C = [["src", l], ["alt", ""]];
|
|
3037
|
-
A.attrs = C, A.children = g, A.content = n,
|
|
3037
|
+
A.attrs = C, A.children = g, A.content = n, a && C.push(["title", a]);
|
|
3038
3038
|
}
|
|
3039
3039
|
return u.pos = o, u.posMax = _, !0;
|
|
3040
3040
|
}
|
|
@@ -3046,34 +3046,34 @@ function jr(u, e) {
|
|
|
3046
3046
|
const n = u.pos, r = u.posMax;
|
|
3047
3047
|
for (; ; ) {
|
|
3048
3048
|
if (++t >= r) return !1;
|
|
3049
|
-
const
|
|
3050
|
-
if (
|
|
3051
|
-
if (
|
|
3049
|
+
const c = u.src.charCodeAt(t);
|
|
3050
|
+
if (c === 60) return !1;
|
|
3051
|
+
if (c === 62) break;
|
|
3052
3052
|
}
|
|
3053
3053
|
const o = u.src.slice(n + 1, t);
|
|
3054
3054
|
if (Pr.test(o)) {
|
|
3055
|
-
const
|
|
3056
|
-
if (!u.md.validateLink(
|
|
3055
|
+
const c = u.md.normalizeLink(o);
|
|
3056
|
+
if (!u.md.validateLink(c))
|
|
3057
3057
|
return !1;
|
|
3058
3058
|
if (!e) {
|
|
3059
3059
|
const i = u.push("link_open", "a", 1);
|
|
3060
|
-
i.attrs = [["href",
|
|
3061
|
-
const
|
|
3062
|
-
|
|
3060
|
+
i.attrs = [["href", c]], i.markup = "autolink", i.info = "auto";
|
|
3061
|
+
const a = u.push("text", "", 0);
|
|
3062
|
+
a.content = u.md.normalizeLinkText(o);
|
|
3063
3063
|
const s = u.push("link_close", "a", -1);
|
|
3064
3064
|
s.markup = "autolink", s.info = "auto";
|
|
3065
3065
|
}
|
|
3066
3066
|
return u.pos += o.length + 2, !0;
|
|
3067
3067
|
}
|
|
3068
3068
|
if (Rr.test(o)) {
|
|
3069
|
-
const
|
|
3070
|
-
if (!u.md.validateLink(
|
|
3069
|
+
const c = u.md.normalizeLink("mailto:" + o);
|
|
3070
|
+
if (!u.md.validateLink(c))
|
|
3071
3071
|
return !1;
|
|
3072
3072
|
if (!e) {
|
|
3073
3073
|
const i = u.push("link_open", "a", 1);
|
|
3074
|
-
i.attrs = [["href",
|
|
3075
|
-
const
|
|
3076
|
-
|
|
3074
|
+
i.attrs = [["href", c]], i.markup = "autolink", i.info = "auto";
|
|
3075
|
+
const a = u.push("text", "", 0);
|
|
3076
|
+
a.content = u.md.normalizeLinkText(o);
|
|
3077
3077
|
const s = u.push("link_close", "a", -1);
|
|
3078
3078
|
s.markup = "autolink", s.info = "auto";
|
|
3079
3079
|
}
|
|
@@ -3104,8 +3104,8 @@ function Ur(u, e) {
|
|
|
3104
3104
|
if (!o)
|
|
3105
3105
|
return !1;
|
|
3106
3106
|
if (!e) {
|
|
3107
|
-
const
|
|
3108
|
-
|
|
3107
|
+
const c = u.push("html_inline", "", 0);
|
|
3108
|
+
c.content = o[0], Hr(c.content) && u.linkLevel++, $r(c.content) && u.linkLevel--;
|
|
3109
3109
|
}
|
|
3110
3110
|
return u.pos += o[0].length, !0;
|
|
3111
3111
|
}
|
|
@@ -3117,19 +3117,19 @@ function Kr(u, e) {
|
|
|
3117
3117
|
const o = u.src.slice(t).match(Zr);
|
|
3118
3118
|
if (o) {
|
|
3119
3119
|
if (!e) {
|
|
3120
|
-
const
|
|
3121
|
-
i.content = Oe(
|
|
3120
|
+
const c = o[1][0].toLowerCase() === "x" ? parseInt(o[1].slice(1), 16) : parseInt(o[1], 10), i = u.push("text_special", "", 0);
|
|
3121
|
+
i.content = Oe(c) ? ie(c) : ie(65533), i.markup = o[0], i.info = "entity";
|
|
3122
3122
|
}
|
|
3123
3123
|
return u.pos += o[0].length, !0;
|
|
3124
3124
|
}
|
|
3125
3125
|
} else {
|
|
3126
3126
|
const o = u.src.slice(t).match(Gr);
|
|
3127
3127
|
if (o) {
|
|
3128
|
-
const
|
|
3129
|
-
if (
|
|
3128
|
+
const c = St(o[0]);
|
|
3129
|
+
if (c !== o[0]) {
|
|
3130
3130
|
if (!e) {
|
|
3131
3131
|
const i = u.push("text_special", "", 0);
|
|
3132
|
-
i.content =
|
|
3132
|
+
i.content = c, i.markup = o[0], i.info = "entity";
|
|
3133
3133
|
}
|
|
3134
3134
|
return u.pos += o[0].length, !0;
|
|
3135
3135
|
}
|
|
@@ -3142,19 +3142,19 @@ function it(u) {
|
|
|
3142
3142
|
if (!t) return;
|
|
3143
3143
|
let n = 0, r = -2;
|
|
3144
3144
|
const o = [];
|
|
3145
|
-
for (let
|
|
3146
|
-
const i = u[
|
|
3147
|
-
if (o.push(0), (u[n].marker !== i.marker || r !== i.token - 1) && (n =
|
|
3145
|
+
for (let c = 0; c < t; c++) {
|
|
3146
|
+
const i = u[c];
|
|
3147
|
+
if (o.push(0), (u[n].marker !== i.marker || r !== i.token - 1) && (n = c), r = i.token, i.length = i.length || 0, !i.close) continue;
|
|
3148
3148
|
e.hasOwnProperty(i.marker) || (e[i.marker] = [-1, -1, -1, -1, -1, -1]);
|
|
3149
|
-
const
|
|
3149
|
+
const a = e[i.marker][(i.open ? 3 : 0) + i.length % 3];
|
|
3150
3150
|
let s = n - o[n] - 1, l = s;
|
|
3151
|
-
for (; s >
|
|
3151
|
+
for (; s > a; s -= o[s] + 1) {
|
|
3152
3152
|
const d = u[s];
|
|
3153
3153
|
if (d.marker === i.marker && d.open && d.end < 0) {
|
|
3154
3154
|
let _ = !1;
|
|
3155
3155
|
if ((d.close || i.open) && (d.length + i.length) % 3 === 0 && (d.length % 3 !== 0 || i.length % 3 !== 0) && (_ = !0), !_) {
|
|
3156
3156
|
const h = s > 0 && !u[s - 1].open ? o[s - 1] + 1 : 0;
|
|
3157
|
-
o[
|
|
3157
|
+
o[c] = c - s + h, o[s] = h, i.open = !1, d.end = c, d.close = !1, l = -1, r = -2;
|
|
3158
3158
|
break;
|
|
3159
3159
|
}
|
|
3160
3160
|
}
|
|
@@ -3210,32 +3210,32 @@ Yu.prototype.skipToken = function(u) {
|
|
|
3210
3210
|
u.pos = o[e];
|
|
3211
3211
|
return;
|
|
3212
3212
|
}
|
|
3213
|
-
let
|
|
3213
|
+
let c = !1;
|
|
3214
3214
|
if (u.level < r) {
|
|
3215
3215
|
for (let i = 0; i < n; i++)
|
|
3216
|
-
if (u.level++,
|
|
3216
|
+
if (u.level++, c = t[i](u, !0), u.level--, c) {
|
|
3217
3217
|
if (e >= u.pos)
|
|
3218
3218
|
throw new Error("inline rule didn't increment state.pos");
|
|
3219
3219
|
break;
|
|
3220
3220
|
}
|
|
3221
3221
|
} else
|
|
3222
3222
|
u.pos = u.posMax;
|
|
3223
|
-
|
|
3223
|
+
c || u.pos++, o[e] = u.pos;
|
|
3224
3224
|
};
|
|
3225
3225
|
Yu.prototype.tokenize = function(u) {
|
|
3226
3226
|
const e = this.ruler.getRules(""), t = e.length, n = u.posMax, r = u.md.options.maxNesting;
|
|
3227
3227
|
for (; u.pos < n; ) {
|
|
3228
3228
|
const o = u.pos;
|
|
3229
|
-
let
|
|
3229
|
+
let c = !1;
|
|
3230
3230
|
if (u.level < r) {
|
|
3231
3231
|
for (let i = 0; i < t; i++)
|
|
3232
|
-
if (
|
|
3232
|
+
if (c = e[i](u, !1), c) {
|
|
3233
3233
|
if (o >= u.pos)
|
|
3234
3234
|
throw new Error("inline rule didn't increment state.pos");
|
|
3235
3235
|
break;
|
|
3236
3236
|
}
|
|
3237
3237
|
}
|
|
3238
|
-
if (
|
|
3238
|
+
if (c) {
|
|
3239
3239
|
if (u.pos >= n)
|
|
3240
3240
|
break;
|
|
3241
3241
|
continue;
|
|
@@ -3247,8 +3247,8 @@ Yu.prototype.tokenize = function(u) {
|
|
|
3247
3247
|
Yu.prototype.parse = function(u, e, t, n) {
|
|
3248
3248
|
const r = new this.State(u, e, t, n);
|
|
3249
3249
|
this.tokenize(r);
|
|
3250
|
-
const o = this.ruler2.getRules(""),
|
|
3251
|
-
for (let i = 0; i <
|
|
3250
|
+
const o = this.ruler2.getRules(""), c = o.length;
|
|
3251
|
+
for (let i = 0; i < c; i++)
|
|
3252
3252
|
o[i](r);
|
|
3253
3253
|
};
|
|
3254
3254
|
Yu.prototype.State = Xu;
|
|
@@ -3283,7 +3283,7 @@ function Yr(u) {
|
|
|
3283
3283
|
function uo(u) {
|
|
3284
3284
|
return de(u) === "[object RegExp]";
|
|
3285
3285
|
}
|
|
3286
|
-
function
|
|
3286
|
+
function ct(u) {
|
|
3287
3287
|
return de(u) === "[object Function]";
|
|
3288
3288
|
}
|
|
3289
3289
|
function eo(u) {
|
|
@@ -3335,18 +3335,18 @@ const no = {
|
|
|
3335
3335
|
function io(u) {
|
|
3336
3336
|
u.__index__ = -1, u.__text_cache__ = "";
|
|
3337
3337
|
}
|
|
3338
|
-
function
|
|
3338
|
+
function co(u) {
|
|
3339
3339
|
return function(e, t) {
|
|
3340
3340
|
const n = e.slice(t);
|
|
3341
3341
|
return u.test(n) ? n.match(u)[0].length : 0;
|
|
3342
3342
|
};
|
|
3343
3343
|
}
|
|
3344
|
-
function
|
|
3344
|
+
function at() {
|
|
3345
3345
|
return function(u, e) {
|
|
3346
3346
|
e.normalize(u);
|
|
3347
3347
|
};
|
|
3348
3348
|
}
|
|
3349
|
-
function
|
|
3349
|
+
function ce(u) {
|
|
3350
3350
|
const e = u.re = Qr(u.__opts__), t = u.__tlds__.slice();
|
|
3351
3351
|
u.onCompile(), u.__tlds_replaced__ || t.push(ro), t.push(e.src_xn), e.src_tlds = t.join("|");
|
|
3352
3352
|
function n(i) {
|
|
@@ -3355,49 +3355,49 @@ function ae(u) {
|
|
|
3355
3355
|
e.email_fuzzy = RegExp(n(e.tpl_email_fuzzy), "i"), e.link_fuzzy = RegExp(n(e.tpl_link_fuzzy), "i"), e.link_no_ip_fuzzy = RegExp(n(e.tpl_link_no_ip_fuzzy), "i"), e.host_fuzzy_test = RegExp(n(e.tpl_host_fuzzy_test), "i");
|
|
3356
3356
|
const r = [];
|
|
3357
3357
|
u.__compiled__ = {};
|
|
3358
|
-
function o(i,
|
|
3359
|
-
throw new Error('(LinkifyIt) Invalid schema "' + i + '": ' +
|
|
3358
|
+
function o(i, a) {
|
|
3359
|
+
throw new Error('(LinkifyIt) Invalid schema "' + i + '": ' + a);
|
|
3360
3360
|
}
|
|
3361
3361
|
Object.keys(u.__schemas__).forEach(function(i) {
|
|
3362
|
-
const
|
|
3363
|
-
if (
|
|
3362
|
+
const a = u.__schemas__[i];
|
|
3363
|
+
if (a === null)
|
|
3364
3364
|
return;
|
|
3365
3365
|
const s = { validate: null, link: null };
|
|
3366
|
-
if (u.__compiled__[i] = s, Yr(
|
|
3367
|
-
uo(
|
|
3366
|
+
if (u.__compiled__[i] = s, Yr(a)) {
|
|
3367
|
+
uo(a.validate) ? s.validate = co(a.validate) : ct(a.validate) ? s.validate = a.validate : o(i, a), ct(a.normalize) ? s.normalize = a.normalize : a.normalize ? o(i, a) : s.normalize = at();
|
|
3368
3368
|
return;
|
|
3369
3369
|
}
|
|
3370
|
-
if (Xr(
|
|
3370
|
+
if (Xr(a)) {
|
|
3371
3371
|
r.push(i);
|
|
3372
3372
|
return;
|
|
3373
3373
|
}
|
|
3374
|
-
o(i,
|
|
3374
|
+
o(i, a);
|
|
3375
3375
|
}), r.forEach(function(i) {
|
|
3376
3376
|
u.__compiled__[u.__schemas__[i]] && (u.__compiled__[i].validate = u.__compiled__[u.__schemas__[i]].validate, u.__compiled__[i].normalize = u.__compiled__[u.__schemas__[i]].normalize);
|
|
3377
|
-
}), u.__compiled__[""] = { validate: null, normalize:
|
|
3378
|
-
const
|
|
3377
|
+
}), u.__compiled__[""] = { validate: null, normalize: at() };
|
|
3378
|
+
const c = Object.keys(u.__compiled__).filter(function(i) {
|
|
3379
3379
|
return i.length > 0 && u.__compiled__[i];
|
|
3380
3380
|
}).map(eo).join("|");
|
|
3381
|
-
u.re.schema_test = RegExp("(^|(?!_)(?:[><|]|" + e.src_ZPCc + "))(" +
|
|
3381
|
+
u.re.schema_test = RegExp("(^|(?!_)(?:[><|]|" + e.src_ZPCc + "))(" + c + ")", "i"), u.re.schema_search = RegExp("(^|(?!_)(?:[><|]|" + e.src_ZPCc + "))(" + c + ")", "ig"), u.re.schema_at_start = RegExp("^" + u.re.schema_search.source, "i"), u.re.pretest = RegExp(
|
|
3382
3382
|
"(" + u.re.schema_test.source + ")|(" + u.re.host_fuzzy_test.source + ")|@",
|
|
3383
3383
|
"i"
|
|
3384
3384
|
), io(u);
|
|
3385
3385
|
}
|
|
3386
|
-
function
|
|
3386
|
+
function ao(u, e) {
|
|
3387
3387
|
const t = u.__index__, n = u.__last_index__, r = u.__text_cache__.slice(t, n);
|
|
3388
3388
|
this.schema = u.__schema__.toLowerCase(), this.index = t + e, this.lastIndex = n + e, this.raw = r, this.text = r, this.url = r;
|
|
3389
3389
|
}
|
|
3390
3390
|
function Fe(u, e) {
|
|
3391
|
-
const t = new
|
|
3391
|
+
const t = new ao(u, e);
|
|
3392
3392
|
return u.__compiled__[t.schema].normalize(t, u), t;
|
|
3393
3393
|
}
|
|
3394
3394
|
function ru(u, e) {
|
|
3395
3395
|
if (!(this instanceof ru))
|
|
3396
3396
|
return new ru(u, e);
|
|
3397
|
-
e || to(u) && (e = u, u = {}), this.__opts__ = Ee({}, Mt, e), this.__index__ = -1, this.__last_index__ = -1, this.__schema__ = "", this.__text_cache__ = "", this.__schemas__ = Ee({}, no, u), this.__compiled__ = {}, this.__tlds__ = oo, this.__tlds_replaced__ = !1, this.re = {},
|
|
3397
|
+
e || to(u) && (e = u, u = {}), this.__opts__ = Ee({}, Mt, e), this.__index__ = -1, this.__last_index__ = -1, this.__schema__ = "", this.__text_cache__ = "", this.__schemas__ = Ee({}, no, u), this.__compiled__ = {}, this.__tlds__ = oo, this.__tlds_replaced__ = !1, this.re = {}, ce(this);
|
|
3398
3398
|
}
|
|
3399
3399
|
ru.prototype.add = function(e, t) {
|
|
3400
|
-
return this.__schemas__[e] = t,
|
|
3400
|
+
return this.__schemas__[e] = t, ce(this), this;
|
|
3401
3401
|
};
|
|
3402
3402
|
ru.prototype.set = function(e) {
|
|
3403
3403
|
return this.__opts__ = Ee(this.__opts__, e), this;
|
|
@@ -3405,15 +3405,15 @@ ru.prototype.set = function(e) {
|
|
|
3405
3405
|
ru.prototype.test = function(e) {
|
|
3406
3406
|
if (this.__text_cache__ = e, this.__index__ = -1, !e.length)
|
|
3407
3407
|
return !1;
|
|
3408
|
-
let t, n, r, o,
|
|
3408
|
+
let t, n, r, o, c, i, a, s, l;
|
|
3409
3409
|
if (this.re.schema_test.test(e)) {
|
|
3410
|
-
for (
|
|
3411
|
-
if (o = this.testSchemaAt(e, t[2],
|
|
3410
|
+
for (a = this.re.schema_search, a.lastIndex = 0; (t = a.exec(e)) !== null; )
|
|
3411
|
+
if (o = this.testSchemaAt(e, t[2], a.lastIndex), o) {
|
|
3412
3412
|
this.__schema__ = t[2], this.__index__ = t.index + t[1].length, this.__last_index__ = t.index + t[0].length + o;
|
|
3413
3413
|
break;
|
|
3414
3414
|
}
|
|
3415
3415
|
}
|
|
3416
|
-
return this.__opts__.fuzzyLink && this.__compiled__["http:"] && (s = e.search(this.re.host_fuzzy_test), s >= 0 && (this.__index__ < 0 || s < this.__index__) && (n = e.match(this.__opts__.fuzzyIP ? this.re.link_fuzzy : this.re.link_no_ip_fuzzy)) !== null && (
|
|
3416
|
+
return this.__opts__.fuzzyLink && this.__compiled__["http:"] && (s = e.search(this.re.host_fuzzy_test), s >= 0 && (this.__index__ < 0 || s < this.__index__) && (n = e.match(this.__opts__.fuzzyIP ? this.re.link_fuzzy : this.re.link_no_ip_fuzzy)) !== null && (c = n.index + n[1].length, (this.__index__ < 0 || c < this.__index__) && (this.__schema__ = "", this.__index__ = c, this.__last_index__ = n.index + n[0].length))), this.__opts__.fuzzyEmail && this.__compiled__["mailto:"] && (l = e.indexOf("@"), l >= 0 && (r = e.match(this.re.email_fuzzy)) !== null && (c = r.index + r[1].length, i = r.index + r[0].length, (this.__index__ < 0 || c < this.__index__ || c === this.__index__ && i > this.__last_index__) && (this.__schema__ = "mailto:", this.__index__ = c, this.__last_index__ = i))), this.__index__ >= 0;
|
|
3417
3417
|
};
|
|
3418
3418
|
ru.prototype.pretest = function(e) {
|
|
3419
3419
|
return this.re.pretest.test(e);
|
|
@@ -3440,7 +3440,7 @@ ru.prototype.matchAtStart = function(e) {
|
|
|
3440
3440
|
ru.prototype.tlds = function(e, t) {
|
|
3441
3441
|
return e = Array.isArray(e) ? e : [e], t ? (this.__tlds__ = this.__tlds__.concat(e).sort().filter(function(n, r, o) {
|
|
3442
3442
|
return n !== o[r - 1];
|
|
3443
|
-
}).reverse(),
|
|
3443
|
+
}).reverse(), ce(this), this) : (this.__tlds__ = e.slice(), this.__tlds_replaced__ = !0, ce(this), this);
|
|
3444
3444
|
};
|
|
3445
3445
|
ru.prototype.normalize = function(e) {
|
|
3446
3446
|
e.schema || (e.url = "http://" + e.url), e.schema === "mailto:" && !/^mailto:/i.test(e.url) && (e.url = "mailto:" + e.url);
|
|
@@ -3494,12 +3494,12 @@ const xo = (u) => String.fromCodePoint(...u), _o = function(u) {
|
|
|
3494
3494
|
return pu(n + (ye + 1) * u / (u + so));
|
|
3495
3495
|
}, Ut = function(u) {
|
|
3496
3496
|
const e = [], t = u.length;
|
|
3497
|
-
let n = 0, r = Pt, o = Rt,
|
|
3498
|
-
|
|
3499
|
-
for (let i = 0; i <
|
|
3497
|
+
let n = 0, r = Pt, o = Rt, c = u.lastIndexOf(jt);
|
|
3498
|
+
c < 0 && (c = 0);
|
|
3499
|
+
for (let i = 0; i < c; ++i)
|
|
3500
3500
|
u.charCodeAt(i) >= 128 && yu("not-basic"), e.push(u.charCodeAt(i));
|
|
3501
|
-
for (let i =
|
|
3502
|
-
const
|
|
3501
|
+
for (let i = c > 0 ? c + 1 : 0; i < t; ) {
|
|
3502
|
+
const a = n;
|
|
3503
3503
|
for (let l = 1, d = hu; ; d += hu) {
|
|
3504
3504
|
i >= t && yu("invalid-input");
|
|
3505
3505
|
const _ = _o(u.charCodeAt(i++));
|
|
@@ -3511,7 +3511,7 @@ const xo = (u) => String.fromCodePoint(...u), _o = function(u) {
|
|
|
3511
3511
|
l > pu(Nu / f) && yu("overflow"), l *= f;
|
|
3512
3512
|
}
|
|
3513
3513
|
const s = e.length + 1;
|
|
3514
|
-
o = Vt(n -
|
|
3514
|
+
o = Vt(n - a, s, a == 0), pu(n / s) > Nu - r && yu("overflow"), r += pu(n / s), n %= s, e.splice(n++, 0, r);
|
|
3515
3515
|
}
|
|
3516
3516
|
return String.fromCodePoint(...e);
|
|
3517
3517
|
}, Zt = function(u) {
|
|
@@ -3519,16 +3519,16 @@ const xo = (u) => String.fromCodePoint(...u), _o = function(u) {
|
|
|
3519
3519
|
u = $t(u);
|
|
3520
3520
|
const t = u.length;
|
|
3521
3521
|
let n = Pt, r = 0, o = Rt;
|
|
3522
|
-
for (const
|
|
3523
|
-
|
|
3524
|
-
const
|
|
3525
|
-
let i =
|
|
3526
|
-
for (
|
|
3527
|
-
let
|
|
3522
|
+
for (const a of u)
|
|
3523
|
+
a < 128 && e.push(Ae(a));
|
|
3524
|
+
const c = e.length;
|
|
3525
|
+
let i = c;
|
|
3526
|
+
for (c && e.push(jt); i < t; ) {
|
|
3527
|
+
let a = Nu;
|
|
3528
3528
|
for (const l of u)
|
|
3529
|
-
l >= n && l <
|
|
3529
|
+
l >= n && l < a && (a = l);
|
|
3530
3530
|
const s = i + 1;
|
|
3531
|
-
|
|
3531
|
+
a - n > pu((Nu - r) / s) && yu("overflow"), r += (a - n) * s, n = a;
|
|
3532
3532
|
for (const l of u)
|
|
3533
3533
|
if (l < n && ++r > Nu && yu("overflow"), l === n) {
|
|
3534
3534
|
let d = r;
|
|
@@ -3541,7 +3541,7 @@ const xo = (u) => String.fromCodePoint(...u), _o = function(u) {
|
|
|
3541
3541
|
Ae(st(h + f % g, 0))
|
|
3542
3542
|
), d = pu(f / g);
|
|
3543
3543
|
}
|
|
3544
|
-
e.push(Ae(st(d, 0))), o = Vt(r, s, i ===
|
|
3544
|
+
e.push(Ae(st(d, 0))), o = Vt(r, s, i === c), r = 0, ++i;
|
|
3545
3545
|
}
|
|
3546
3546
|
++r, ++n;
|
|
3547
3547
|
}
|
|
@@ -3772,10 +3772,10 @@ function So(u) {
|
|
|
3772
3772
|
function iu(u, e) {
|
|
3773
3773
|
if (!(this instanceof iu))
|
|
3774
3774
|
return new iu(u, e);
|
|
3775
|
-
e || qe(u) || (e = u || {}, u = "default"), this.inline = new Yu(), this.block = new le(), this.core = new Me(), this.renderer = new Pu(), this.linkify = new ru(), this.validateLink = Fo, this.normalizeLink = wo, this.normalizeLinkText = So, this.utils = In, this.helpers =
|
|
3775
|
+
e || qe(u) || (e = u || {}, u = "default"), this.inline = new Yu(), this.block = new le(), this.core = new Me(), this.renderer = new Pu(), this.linkify = new ru(), this.validateLink = Fo, this.normalizeLink = wo, this.normalizeLinkText = So, this.utils = In, this.helpers = ae({}, Ln), this.options = {}, this.configure(u), e && this.set(e);
|
|
3776
3776
|
}
|
|
3777
3777
|
iu.prototype.set = function(u) {
|
|
3778
|
-
return
|
|
3778
|
+
return ae(this.options, u), this;
|
|
3779
3779
|
};
|
|
3780
3780
|
iu.prototype.configure = function(u) {
|
|
3781
3781
|
const e = this;
|
|
@@ -3851,7 +3851,7 @@ const Io = "data:image/gif;base64,R0lGODlhZABkAIABAABt8QAAACH/C05FVFNDQVBFMi4wAw
|
|
|
3851
3851
|
class: "das-ai-chat-loading"
|
|
3852
3852
|
}, Uo = {
|
|
3853
3853
|
name: "aiChat"
|
|
3854
|
-
}, Zo = /* @__PURE__ */
|
|
3854
|
+
}, Zo = /* @__PURE__ */ cu({
|
|
3855
3855
|
...Uo,
|
|
3856
3856
|
props: {
|
|
3857
3857
|
item: { default: {} },
|
|
@@ -3859,15 +3859,15 @@ const Io = "data:image/gif;base64,R0lGODlhZABkAIABAABt8QAAACH/C05FVFNDQVBFMi4wAw
|
|
|
3859
3859
|
},
|
|
3860
3860
|
emits: ["aiChatEmit"],
|
|
3861
3861
|
setup(u, { emit: e }) {
|
|
3862
|
-
const t = u, n = N(""), r = N(""), o = e,
|
|
3862
|
+
const t = u, n = N(""), r = N(""), o = e, c = new iu(), i = N(), a = lu(() => t.item.content), s = lu(() => t.item.think), { toClipboard: l } = H0();
|
|
3863
3863
|
bu(
|
|
3864
|
-
() =>
|
|
3864
|
+
() => a.value,
|
|
3865
3865
|
(x, p) => {
|
|
3866
3866
|
if (!x) {
|
|
3867
3867
|
n.value = "";
|
|
3868
3868
|
return;
|
|
3869
3869
|
}
|
|
3870
|
-
n.value =
|
|
3870
|
+
n.value = c.render(x);
|
|
3871
3871
|
},
|
|
3872
3872
|
{ immediate: !0 }
|
|
3873
3873
|
), bu(
|
|
@@ -3877,7 +3877,7 @@ const Io = "data:image/gif;base64,R0lGODlhZABkAIABAABt8QAAACH/C05FVFNDQVBFMi4wAw
|
|
|
3877
3877
|
r.value = "";
|
|
3878
3878
|
return;
|
|
3879
3879
|
}
|
|
3880
|
-
r.value =
|
|
3880
|
+
r.value = c.render(x);
|
|
3881
3881
|
},
|
|
3882
3882
|
{ immediate: !0 }
|
|
3883
3883
|
);
|
|
@@ -4223,9 +4223,9 @@ const Io = "data:image/gif;base64,R0lGODlhZABkAIABAABt8QAAACH/C05FVFNDQVBFMi4wAw
|
|
|
4223
4223
|
])
|
|
4224
4224
|
]));
|
|
4225
4225
|
}
|
|
4226
|
-
}), Go = /* @__PURE__ */
|
|
4226
|
+
}), Go = /* @__PURE__ */ au(Zo, [["__scopeId", "data-v-aae83d57"]]), Ko = { class: "das-ai-chat-container" }, Jo = {
|
|
4227
4227
|
name: "chat"
|
|
4228
|
-
}, Wo = /* @__PURE__ */
|
|
4228
|
+
}, Wo = /* @__PURE__ */ cu({
|
|
4229
4229
|
...Jo,
|
|
4230
4230
|
props: {
|
|
4231
4231
|
chartList: { default: [] }
|
|
@@ -4233,12 +4233,12 @@ const Io = "data:image/gif;base64,R0lGODlhZABkAIABAABt8QAAACH/C05FVFNDQVBFMi4wAw
|
|
|
4233
4233
|
emits: ["chatEmit"],
|
|
4234
4234
|
setup(u, { emit: e }) {
|
|
4235
4235
|
const t = u, n = lu(() => t.chartList.filter((i) => i.role == "ai")), r = (i) => {
|
|
4236
|
-
let
|
|
4237
|
-
return n.value.length > 1 && (
|
|
4238
|
-
}, o = e,
|
|
4239
|
-
o("chatEmit", i,
|
|
4236
|
+
let a = !0;
|
|
4237
|
+
return n.value.length > 1 && (a = n.value[n.value.length - 1].id == i.id), a;
|
|
4238
|
+
}, o = e, c = (i, a) => {
|
|
4239
|
+
o("chatEmit", i, a);
|
|
4240
4240
|
};
|
|
4241
|
-
return (i,
|
|
4241
|
+
return (i, a) => (F(), P("div", Ko, [
|
|
4242
4242
|
(F(!0), P(
|
|
4243
4243
|
Lu,
|
|
4244
4244
|
null,
|
|
@@ -4254,7 +4254,7 @@ const Io = "data:image/gif;base64,R0lGODlhZABkAIABAABt8QAAACH/C05FVFNDQVBFMi4wAw
|
|
|
4254
4254
|
}, null, 8, ["item"])) : z("v-if", !0),
|
|
4255
4255
|
s.role == "ai" ? (F(), Y(Go, {
|
|
4256
4256
|
key: 1,
|
|
4257
|
-
onAiChatEmit:
|
|
4257
|
+
onAiChatEmit: c,
|
|
4258
4258
|
isNew: r(s),
|
|
4259
4259
|
item: s
|
|
4260
4260
|
}, null, 8, ["isNew", "item"])) : z("v-if", !0)
|
|
@@ -4267,9 +4267,9 @@ const Io = "data:image/gif;base64,R0lGODlhZABkAIABAABt8QAAACH/C05FVFNDQVBFMi4wAw
|
|
|
4267
4267
|
))
|
|
4268
4268
|
]));
|
|
4269
4269
|
}
|
|
4270
|
-
}), Qo = /* @__PURE__ */
|
|
4270
|
+
}), Qo = /* @__PURE__ */ au(Wo, [["__scopeId", "data-v-5db94ade"]]), Xo = { class: "das-ai-senderopt" }, Yo = { class: "int-opt-box-text" }, ui = {
|
|
4271
4271
|
name: "senderOpt"
|
|
4272
|
-
}, ei = /* @__PURE__ */
|
|
4272
|
+
}, ei = /* @__PURE__ */ cu({
|
|
4273
4273
|
...ui,
|
|
4274
4274
|
setup(u) {
|
|
4275
4275
|
const e = () => {
|
|
@@ -4300,16 +4300,16 @@ const Io = "data:image/gif;base64,R0lGODlhZABkAIABAABt8QAAACH/C05FVFNDQVBFMi4wAw
|
|
|
4300
4300
|
)
|
|
4301
4301
|
]));
|
|
4302
4302
|
}
|
|
4303
|
-
}), ti = /* @__PURE__ */
|
|
4303
|
+
}), ti = /* @__PURE__ */ au(ei, [["__scopeId", "data-v-5243adf9"]]), ni = { class: "das-ai-sender-container" }, ri = { class: "das-ai-sender-content" }, oi = { class: "das-ai-sender-box" }, ii = { class: "das-ai-int-scoll-box" }, ci = { class: "das-ai-int-box" }, ai = ["placeholder", "disabled"], si = { class: "das-ai-textarea-mask" }, li = { class: "das-ai-int-opt-box" }, di = { class: "int-opt-right" }, fi = {
|
|
4304
4304
|
name: "sender"
|
|
4305
|
-
}, hi = /* @__PURE__ */
|
|
4305
|
+
}, hi = /* @__PURE__ */ cu({
|
|
4306
4306
|
...fi,
|
|
4307
4307
|
props: {
|
|
4308
4308
|
isNew: { type: Boolean, default: !0 }
|
|
4309
4309
|
},
|
|
4310
4310
|
emits: ["senderEmit"],
|
|
4311
4311
|
setup(u, { emit: e }) {
|
|
4312
|
-
const t = u, n = e, r = N(null), o = lu(() => !b.senderValue),
|
|
4312
|
+
const t = u, n = e, r = N(null), o = lu(() => !b.senderValue), c = lu(() => {
|
|
4313
4313
|
if (b.loading)
|
|
4314
4314
|
return I("回答中...");
|
|
4315
4315
|
if (t.isNew) {
|
|
@@ -4321,7 +4321,7 @@ const Io = "data:image/gif;base64,R0lGODlhZABkAIABAABt8QAAACH/C05FVFNDQVBFMi4wAw
|
|
|
4321
4321
|
}), i = () => {
|
|
4322
4322
|
var h;
|
|
4323
4323
|
(h = r.value) == null || h.focus();
|
|
4324
|
-
},
|
|
4324
|
+
}, a = (h) => {
|
|
4325
4325
|
};
|
|
4326
4326
|
bu(
|
|
4327
4327
|
() => b.senderValue,
|
|
@@ -4346,21 +4346,21 @@ const Io = "data:image/gif;base64,R0lGODlhZABkAIABAABt8QAAACH/C05FVFNDQVBFMi4wAw
|
|
|
4346
4346
|
}),
|
|
4347
4347
|
v("div", oi, [
|
|
4348
4348
|
v("div", ii, [
|
|
4349
|
-
v("div",
|
|
4349
|
+
v("div", ci, [
|
|
4350
4350
|
Cu(v("textarea", {
|
|
4351
4351
|
class: "das-ai-textarea",
|
|
4352
4352
|
onKeydown: Xt(d, ["enter"]),
|
|
4353
4353
|
"onUpdate:modelValue": f[0] || (f[0] = (g) => y(b).senderValue = g),
|
|
4354
|
-
placeholder:
|
|
4354
|
+
placeholder: c.value,
|
|
4355
4355
|
rows: "8",
|
|
4356
4356
|
maxlength: "512",
|
|
4357
4357
|
ref_key: "textareaRef",
|
|
4358
4358
|
ref: r,
|
|
4359
4359
|
onFocus: l,
|
|
4360
4360
|
onInput: s,
|
|
4361
|
-
onChange:
|
|
4361
|
+
onChange: a,
|
|
4362
4362
|
disabled: y(b).loading
|
|
4363
|
-
}, null, 40,
|
|
4363
|
+
}, null, 40, ai), [
|
|
4364
4364
|
[Yt, y(b).senderValue]
|
|
4365
4365
|
]),
|
|
4366
4366
|
v(
|
|
@@ -4415,12 +4415,12 @@ const Io = "data:image/gif;base64,R0lGODlhZABkAIABAABt8QAAACH/C05FVFNDQVBFMi4wAw
|
|
|
4415
4415
|
])
|
|
4416
4416
|
]));
|
|
4417
4417
|
}
|
|
4418
|
-
}), pi = /* @__PURE__ */
|
|
4418
|
+
}), pi = /* @__PURE__ */ au(hi, [["__scopeId", "data-v-af950ea0"]]), bi = { class: "das-ai-addtbn-box" }, mi = {
|
|
4419
4419
|
style: { "margin-left": "4px" },
|
|
4420
4420
|
class: "add-text"
|
|
4421
4421
|
}, xi = {
|
|
4422
4422
|
name: "addNew"
|
|
4423
|
-
}, _i = /* @__PURE__ */
|
|
4423
|
+
}, _i = /* @__PURE__ */ cu({
|
|
4424
4424
|
...xi,
|
|
4425
4425
|
emits: ["addNewEmit"],
|
|
4426
4426
|
setup(u, { emit: e }) {
|
|
@@ -4430,7 +4430,7 @@ const Io = "data:image/gif;base64,R0lGODlhZABkAIABAABt8QAAACH/C05FVFNDQVBFMi4wAw
|
|
|
4430
4430
|
return (r, o) => (F(), P("div", bi, [
|
|
4431
4431
|
v("div", {
|
|
4432
4432
|
class: "add-box",
|
|
4433
|
-
onClick: o[0] || (o[0] = (
|
|
4433
|
+
onClick: o[0] || (o[0] = (c) => n("addNew"))
|
|
4434
4434
|
}, [
|
|
4435
4435
|
j(y(v0), {
|
|
4436
4436
|
size: "medium",
|
|
@@ -4447,7 +4447,7 @@ const Io = "data:image/gif;base64,R0lGODlhZABkAIABAABt8QAAACH/C05FVFNDQVBFMi4wAw
|
|
|
4447
4447
|
y(b).showScrollBom ? (F(), P("div", {
|
|
4448
4448
|
key: 0,
|
|
4449
4449
|
class: "scroll-opt-box",
|
|
4450
|
-
onClick: o[1] || (o[1] = (
|
|
4450
|
+
onClick: o[1] || (o[1] = (c) => n("scrollBom"))
|
|
4451
4451
|
}, [
|
|
4452
4452
|
j(y(k0), {
|
|
4453
4453
|
size: "large",
|
|
@@ -4456,12 +4456,12 @@ const Io = "data:image/gif;base64,R0lGODlhZABkAIABAABt8QAAACH/C05FVFNDQVBFMi4wAw
|
|
|
4456
4456
|
])) : z("v-if", !0)
|
|
4457
4457
|
]));
|
|
4458
4458
|
}
|
|
4459
|
-
}), gi = /* @__PURE__ */
|
|
4459
|
+
}), gi = /* @__PURE__ */ au(_i, [["__scopeId", "data-v-a2879a5e"]]), ki = { class: "das-ai-prompt" }, vi = { class: "das-ai-prompt-title" }, yi = { class: "das-ai-prompt-tip" }, Ai = {
|
|
4460
4460
|
key: 0,
|
|
4461
4461
|
class: "das-ai-prompt-small"
|
|
4462
4462
|
}, Ci = ["onClick"], Di = {
|
|
4463
4463
|
name: "useChat"
|
|
4464
|
-
}, Ei = /* @__PURE__ */
|
|
4464
|
+
}, Ei = /* @__PURE__ */ cu({
|
|
4465
4465
|
...Di,
|
|
4466
4466
|
props: {
|
|
4467
4467
|
list: { default: [] }
|
|
@@ -4497,34 +4497,31 @@ const Io = "data:image/gif;base64,R0lGODlhZABkAIABAABt8QAAACH/C05FVFNDQVBFMi4wAw
|
|
|
4497
4497
|
(F(!0), P(
|
|
4498
4498
|
Lu,
|
|
4499
4499
|
null,
|
|
4500
|
-
Wu(r.list, (
|
|
4501
|
-
|
|
4502
|
-
|
|
4503
|
-
|
|
4504
|
-
class: Mu(["das-ai-prompt-item", { "long-text": ((i = a.text) == null ? void 0 : i.length) > 25 }])
|
|
4505
|
-
}, U(a.text || (a == null ? void 0 : a.questionWord)), 11, Ci);
|
|
4506
|
-
}),
|
|
4500
|
+
Wu(r.list, (c) => (F(), P("div", {
|
|
4501
|
+
onClick: (i) => n(c),
|
|
4502
|
+
class: Mu(["das-ai-prompt-item", { "long-text": c.text.length > 25 }])
|
|
4503
|
+
}, U(c.text || (c == null ? void 0 : c.questionWord)), 11, Ci))),
|
|
4507
4504
|
256
|
|
4508
4505
|
/* UNKEYED_FRAGMENT */
|
|
4509
4506
|
))
|
|
4510
4507
|
]));
|
|
4511
4508
|
}
|
|
4512
|
-
}), Fi = /* @__PURE__ */
|
|
4509
|
+
}), Fi = /* @__PURE__ */ au(Ei, [["__scopeId", "data-v-92b4e27d"]]), je = "v1", Fu = ze(`/api/llm/knowledge/${je}`), wi = ze(`/api/llm/vector/${je}`), Si = ze(`/api/system-config/${je}`);
|
|
4513
4510
|
kt.get("token");
|
|
4514
4511
|
kt.post("putObject");
|
|
4515
4512
|
wi.get("/large-model/general-question");
|
|
4516
4513
|
const Ii = Si.get("/platform/qa-config/enabled-list"), Ti = Fu.post("/chat/stop"), zi = Fu.post("/chat/save-knowledge"), Ni = Fu.get("/chat"), Li = Fu.get("/chat/chat-details"), Bi = Fu.delete("/chat/delete-by-user"), qi = Fu.delete("/chat"), Oi = Fu.get("/chat/delete-by-query-id");
|
|
4517
4514
|
Ru.post("/file");
|
|
4518
|
-
const
|
|
4515
|
+
const Za = Ru.post("/file/save-file"), Mi = Ru.get("/folder"), Ri = Ru.post("/folder/listAllByCondition");
|
|
4519
4516
|
Ru.post("/folder/lazy-tree");
|
|
4520
4517
|
Ru.post("/folder/tree-search");
|
|
4521
4518
|
const Pi = Fu.post("/chat/chat-feedback"), ji = { class: "das-ai-select-container" }, Hi = { class: "das-ai-select-text-box" }, $i = { class: "das-ai-select-text" }, Vi = { class: "das-ai-select-box" }, Ui = {
|
|
4522
4519
|
key: 0,
|
|
4523
4520
|
class: "das-ai-select-text"
|
|
4524
|
-
}, Zi = { class: "das-ai-type-list" }, Gi = ["onClick"], Ki = { class: "das-ai-type-icon" }, Ji = { class: "das-ai-type-box" }, Wi = { class: "das-ai-type-name" }, Qi = { class: "das-ai-type-desc" }, Xi = ["onClick"], Yi = { class: "das-ai-type-tree" },
|
|
4521
|
+
}, Zi = { class: "das-ai-type-list" }, Gi = ["onClick"], Ki = { class: "das-ai-type-icon" }, Ji = { class: "das-ai-type-box" }, Wi = { class: "das-ai-type-name" }, Qi = { class: "das-ai-type-desc" }, Xi = ["onClick"], Yi = { class: "das-ai-type-tree" }, uc = {
|
|
4525
4522
|
name: "selectType"
|
|
4526
|
-
},
|
|
4527
|
-
...
|
|
4523
|
+
}, ec = /* @__PURE__ */ cu({
|
|
4524
|
+
...uc,
|
|
4528
4525
|
props: {
|
|
4529
4526
|
listLength: { default: 0 }
|
|
4530
4527
|
},
|
|
@@ -4539,13 +4536,13 @@ const Pi = Fu.post("/chat/chat-feedback"), ji = { class: "das-ai-select-containe
|
|
|
4539
4536
|
}
|
|
4540
4537
|
}
|
|
4541
4538
|
]
|
|
4542
|
-
}),
|
|
4539
|
+
}), c = N([
|
|
4543
4540
|
{ id: "1", name: I("知识库"), desc: I("选择在某个知识库中搜索"), icon: "knowOpen" },
|
|
4544
4541
|
{ id: "0", name: I("物联应用"), desc: I("在权限范围内的应用中搜索"), icon: "yingyong" },
|
|
4545
4542
|
{ id: "2", name: I("全网"), desc: I("在整个大模型中搜索"), icon: "intnet" }
|
|
4546
|
-
]), i = N(!1),
|
|
4543
|
+
]), i = N(!1), a = N([]), s = N(""), l = N(""), d = e, _ = () => {
|
|
4547
4544
|
d("back");
|
|
4548
|
-
}, h = lu(() =>
|
|
4545
|
+
}, h = lu(() => c.value.find((T) => T.id === b.searchType)), f = lu(() => b.searchType == "1" ? I("基于知识库") : b.searchType == "0" ? I("基于物联应用") : b.searchType == "2" ? I("基于全网") : I("基于全部")), g = lu(() => b.folderId && b.folderName ? b.folderName : I("选择在某个知识库中搜索")), A = (T) => {
|
|
4549
4546
|
}, C = (T) => {
|
|
4550
4547
|
r.value = !1;
|
|
4551
4548
|
}, k = (T) => {
|
|
@@ -4579,7 +4576,7 @@ const Pi = Fu.post("/chat/chat-feedback"), ji = { class: "das-ai-select-containe
|
|
|
4579
4576
|
}
|
|
4580
4577
|
], K.forEach((_u) => {
|
|
4581
4578
|
L(_u);
|
|
4582
|
-
})) : (l.value = "", b.folderId = "", b.folderName = ""),
|
|
4579
|
+
})) : (l.value = "", b.folderId = "", b.folderName = ""), a.value = K;
|
|
4583
4580
|
}, L = (T, H, R) => {
|
|
4584
4581
|
T.disabled = !T.authority, T.path = H ? H + `/${T.id}` : T.id, T.pathName = R ? R + `/${T.folderName}` : T.folderName, b.folderId && b.folderId == T.id && !T.authority && (b.folderId = "", b.folderName = "", l.value = ""), T.childFolderList && T.childFolderList.length && T.childFolderList.forEach((K) => {
|
|
4585
4582
|
L(K, T.path, T.pathName);
|
|
@@ -4658,7 +4655,7 @@ const Pi = Fu.post("/chat/chat-feedback"), ji = { class: "das-ai-select-containe
|
|
|
4658
4655
|
(F(!0), P(
|
|
4659
4656
|
Lu,
|
|
4660
4657
|
null,
|
|
4661
|
-
Wu(
|
|
4658
|
+
Wu(c.value, (R) => (F(), P("div", {
|
|
4662
4659
|
onClick: (K) => p(R),
|
|
4663
4660
|
class: Mu(["das-ai-type-item", { selected: y(b).searchType == R.id }])
|
|
4664
4661
|
}, [
|
|
@@ -4708,7 +4705,7 @@ const Pi = Fu.post("/chat/chat-feedback"), ji = { class: "das-ai-select-containe
|
|
|
4708
4705
|
Cu((F(), P("div", Yi, [
|
|
4709
4706
|
j(y(C0), {
|
|
4710
4707
|
ref: "folderTreeRef",
|
|
4711
|
-
data:
|
|
4708
|
+
data: a.value,
|
|
4712
4709
|
isFilter: "",
|
|
4713
4710
|
"node-key": "id",
|
|
4714
4711
|
isEllipsis: "",
|
|
@@ -4730,13 +4727,13 @@ const Pi = Fu.post("/chat/chat-feedback"), ji = { class: "das-ai-select-containe
|
|
|
4730
4727
|
}, 8, ["popper-options", "visible", "disabled"])
|
|
4731
4728
|
]));
|
|
4732
4729
|
}
|
|
4733
|
-
}),
|
|
4730
|
+
}), tc = /* @__PURE__ */ au(ec, [["__scopeId", "data-v-fc505048"]]), nc = { class: "das-ai-reference-content-page" }, rc = { class: "reference-header" }, oc = { style: { "margin-left": "16px" } }, ic = { class: "reference-list" }, cc = { class: "reference-file-scroll" }, ac = ["onClick"], sc = { class: "reference-file-title" }, lc = { style: { "margin-right": "4px" } }, dc = {
|
|
4734
4731
|
class: "reference-file-title-text",
|
|
4735
4732
|
style: { "margin-left": "4px" }
|
|
4736
|
-
},
|
|
4733
|
+
}, fc = { class: "reference-file-summary" }, hc = {
|
|
4737
4734
|
name: "referenceContent"
|
|
4738
|
-
},
|
|
4739
|
-
...
|
|
4735
|
+
}, pc = /* @__PURE__ */ cu({
|
|
4736
|
+
...hc,
|
|
4740
4737
|
props: {
|
|
4741
4738
|
item: { default: {} }
|
|
4742
4739
|
},
|
|
@@ -4749,18 +4746,18 @@ const Pi = Fu.post("/chat/chat-feedback"), ji = { class: "das-ai-select-containe
|
|
|
4749
4746
|
};
|
|
4750
4747
|
Ou(() => {
|
|
4751
4748
|
});
|
|
4752
|
-
const
|
|
4749
|
+
const c = (a) => {
|
|
4753
4750
|
const s = `${pt().baseURL}/oss/`;
|
|
4754
|
-
return
|
|
4755
|
-
}, i = (
|
|
4756
|
-
if (n.value = s, r.value.includes(s) || r.value.push(s),
|
|
4757
|
-
|
|
4751
|
+
return a.includes(s);
|
|
4752
|
+
}, i = (a, s) => {
|
|
4753
|
+
if (n.value = s, r.value.includes(s) || r.value.push(s), a.type == "url") {
|
|
4754
|
+
a.webUrl && t("toApp", a.webUrl);
|
|
4758
4755
|
return;
|
|
4759
4756
|
}
|
|
4760
|
-
a
|
|
4757
|
+
c(a.url) ? t("preview", a.url) : window.open(a.url, "_blank");
|
|
4761
4758
|
};
|
|
4762
|
-
return (
|
|
4763
|
-
v("div",
|
|
4759
|
+
return (a, s) => (F(), P("div", nc, [
|
|
4760
|
+
v("div", rc, [
|
|
4764
4761
|
j(y(Te), {
|
|
4765
4762
|
onClick: o,
|
|
4766
4763
|
size: "large",
|
|
@@ -4768,28 +4765,28 @@ const Pi = Fu.post("/chat/chat-feedback"), ji = { class: "das-ai-select-containe
|
|
|
4768
4765
|
}),
|
|
4769
4766
|
v(
|
|
4770
4767
|
"span",
|
|
4771
|
-
|
|
4772
|
-
U(y(I)("参考内容(共$0条)",
|
|
4768
|
+
oc,
|
|
4769
|
+
U(y(I)("参考内容(共$0条)", a.item.file.length)),
|
|
4773
4770
|
1
|
|
4774
4771
|
/* TEXT */
|
|
4775
4772
|
)
|
|
4776
4773
|
]),
|
|
4777
|
-
v("div",
|
|
4774
|
+
v("div", ic, [
|
|
4778
4775
|
j(y(Ie), null, {
|
|
4779
4776
|
default: W(() => [
|
|
4780
|
-
v("div",
|
|
4777
|
+
v("div", cc, [
|
|
4781
4778
|
(F(!0), P(
|
|
4782
4779
|
Lu,
|
|
4783
4780
|
null,
|
|
4784
|
-
Wu(
|
|
4781
|
+
Wu(a.item.file, (l, d) => (F(), P("div", {
|
|
4785
4782
|
onClick: (_) => i(l, d),
|
|
4786
4783
|
class: Mu(["reference-file-item", { current: n.value == d, selected: r.value.includes(d) }])
|
|
4787
4784
|
}, [
|
|
4788
4785
|
z(" v-das-tooltip "),
|
|
4789
|
-
v("div",
|
|
4786
|
+
v("div", sc, [
|
|
4790
4787
|
v(
|
|
4791
4788
|
"span",
|
|
4792
|
-
|
|
4789
|
+
lc,
|
|
4793
4790
|
U(d + 1) + ".",
|
|
4794
4791
|
1
|
|
4795
4792
|
/* TEXT */
|
|
@@ -4800,7 +4797,7 @@ const Pi = Fu.post("/chat/chat-feedback"), ji = { class: "das-ai-select-containe
|
|
|
4800
4797
|
}),
|
|
4801
4798
|
v(
|
|
4802
4799
|
"span",
|
|
4803
|
-
|
|
4800
|
+
dc,
|
|
4804
4801
|
U(l.name),
|
|
4805
4802
|
1
|
|
4806
4803
|
/* TEXT */
|
|
@@ -4809,12 +4806,12 @@ const Pi = Fu.post("/chat/chat-feedback"), ji = { class: "das-ai-select-containe
|
|
|
4809
4806
|
z(" v-das-tooltip "),
|
|
4810
4807
|
v(
|
|
4811
4808
|
"div",
|
|
4812
|
-
|
|
4809
|
+
fc,
|
|
4813
4810
|
U(l.summary),
|
|
4814
4811
|
1
|
|
4815
4812
|
/* TEXT */
|
|
4816
4813
|
)
|
|
4817
|
-
], 10,
|
|
4814
|
+
], 10, ac))),
|
|
4818
4815
|
256
|
|
4819
4816
|
/* UNKEYED_FRAGMENT */
|
|
4820
4817
|
))
|
|
@@ -4826,13 +4823,13 @@ const Pi = Fu.post("/chat/chat-feedback"), ji = { class: "das-ai-select-containe
|
|
|
4826
4823
|
])
|
|
4827
4824
|
]));
|
|
4828
4825
|
}
|
|
4829
|
-
}),
|
|
4826
|
+
}), bc = /* @__PURE__ */ au(pc, [["__scopeId", "data-v-2e2cf904"]]), mc = lt(() => import("./index-IzGl26KU.js")), xc = () => {
|
|
4830
4827
|
const u = N(null), e = N(!1);
|
|
4831
4828
|
let t = "", n = "";
|
|
4832
4829
|
return {
|
|
4833
|
-
deletaDialogVue: () => dt(
|
|
4830
|
+
deletaDialogVue: () => dt(mc, {
|
|
4834
4831
|
ref: u,
|
|
4835
|
-
onConfirm: (
|
|
4832
|
+
onConfirm: (c) => {
|
|
4836
4833
|
n = !0, e.value = !1;
|
|
4837
4834
|
},
|
|
4838
4835
|
onCancel: () => {
|
|
@@ -4842,34 +4839,34 @@ const Pi = Fu.post("/chat/chat-feedback"), ji = { class: "das-ai-select-containe
|
|
|
4842
4839
|
n = !1, e.value = !1;
|
|
4843
4840
|
}
|
|
4844
4841
|
}),
|
|
4845
|
-
showDeleteDialog: async (
|
|
4842
|
+
showDeleteDialog: async (c) => {
|
|
4846
4843
|
var i;
|
|
4847
|
-
return t =
|
|
4844
|
+
return t = c || I("删除后将无法恢复"), (i = u.value) == null || i.open(t), e.value = !0, new Promise((a, s) => {
|
|
4848
4845
|
const l = bu(() => e.value, (d) => {
|
|
4849
|
-
n ?
|
|
4846
|
+
n ? a(n) : s(n), l();
|
|
4850
4847
|
});
|
|
4851
4848
|
});
|
|
4852
4849
|
},
|
|
4853
4850
|
deleteDialogRef: u
|
|
4854
4851
|
};
|
|
4855
|
-
},
|
|
4852
|
+
}, _c = { class: "das-ai-history-dialogue" }, gc = { class: "history-dialogue-header" }, kc = { class: "history-dialogue-header-left" }, vc = { style: { "margin-left": "16px" } }, yc = {
|
|
4856
4853
|
class: "history-dialogue-list",
|
|
4857
4854
|
id: "history-dialogue-scrollbox"
|
|
4858
|
-
},
|
|
4855
|
+
}, Ac = {
|
|
4859
4856
|
key: 1,
|
|
4860
4857
|
class: "history-dialogue-scroll"
|
|
4861
|
-
},
|
|
4858
|
+
}, Cc = ["onClick"], Dc = { class: "item-title" }, Ec = { class: "item-bottom" }, Fc = { class: "item-bottom-left" }, wc = { class: "item-type" }, Sc = {
|
|
4862
4859
|
name: "history"
|
|
4863
|
-
},
|
|
4864
|
-
...
|
|
4860
|
+
}, Ic = /* @__PURE__ */ cu({
|
|
4861
|
+
...Sc,
|
|
4865
4862
|
props: {
|
|
4866
4863
|
chatId: { default: "" }
|
|
4867
4864
|
},
|
|
4868
4865
|
emits: ["back", "record"],
|
|
4869
4866
|
setup(u, { emit: e }) {
|
|
4870
|
-
const t = N(!1), { deletaDialogVue: n, showDeleteDialog: r } =
|
|
4871
|
-
|
|
4872
|
-
},
|
|
4867
|
+
const t = N(!1), { deletaDialogVue: n, showDeleteDialog: r } = xc(), o = N([]), c = e, i = () => {
|
|
4868
|
+
c("back");
|
|
4869
|
+
}, a = (k) => {
|
|
4873
4870
|
let x = k.replace(/^(#+)\s/gm, "");
|
|
4874
4871
|
return x = x.replace(/^([-*+]|\d+\.)\s/gm, ""), x = x.replace(/([*_]{1,2})(.*?)\1/g, "$2"), x = x.replace(/```[\s\S]*?```/g, ""), x = x.replace(/`(.*?)`/g, "$1"), x = x.replace(/\[([^\]]+)\]\([^)]+\)/g, "$1"), x = x.replace(/!\[([^\]]+)\]\([^)]+\)/g, "$1"), x = x.replace(/<[^>]*>/g, ""), x;
|
|
4875
4872
|
}, s = (k) => {
|
|
@@ -4882,10 +4879,10 @@ const Pi = Fu.post("/chat/chat-feedback"), ji = { class: "das-ai-select-containe
|
|
|
4882
4879
|
pageSize: _.value
|
|
4883
4880
|
}, [x, p] = await Ni(k).run();
|
|
4884
4881
|
t.value = !1, !x && (p.data && p.data.length && p.data.forEach((m) => {
|
|
4885
|
-
m.time = m.createdAt ? ne(m.createdAt).format("YYYY-MM-DD HH:mm:ss") : "", m.answerText = m.answer ?
|
|
4882
|
+
m.time = m.createdAt ? ne(m.createdAt).format("YYYY-MM-DD HH:mm:ss") : "", m.answerText = m.answer ? a(m.answer) : "";
|
|
4886
4883
|
}), l.value == 1 ? o.value = p.data : o.value = o.value.concat(p.data), d.value = p.totalPage);
|
|
4887
4884
|
}, f = (k) => k.searchType == 0 ? I("物联应用") : k.searchType == 1 ? I("知识库") : k.searchType == 2 ? I("全网") : I("全部"), g = async (k) => {
|
|
4888
|
-
|
|
4885
|
+
c("record", k);
|
|
4889
4886
|
}, A = async (k) => {
|
|
4890
4887
|
await r(I("删除后,该会话将不可恢复,")), k.id, t.value = !0;
|
|
4891
4888
|
const [x, p] = await qi({ id: k.id }).run();
|
|
@@ -4906,9 +4903,9 @@ const Pi = Fu.post("/chat/chat-feedback"), ji = { class: "das-ai-select-containe
|
|
|
4906
4903
|
};
|
|
4907
4904
|
return Ou(() => {
|
|
4908
4905
|
h();
|
|
4909
|
-
}), (k, x) => Cu((F(), P("div",
|
|
4910
|
-
v("div",
|
|
4911
|
-
v("div",
|
|
4906
|
+
}), (k, x) => Cu((F(), P("div", _c, [
|
|
4907
|
+
v("div", gc, [
|
|
4908
|
+
v("div", kc, [
|
|
4912
4909
|
j(y(Te), {
|
|
4913
4910
|
onClick: i,
|
|
4914
4911
|
size: "large",
|
|
@@ -4916,7 +4913,7 @@ const Pi = Fu.post("/chat/chat-feedback"), ji = { class: "das-ai-select-containe
|
|
|
4916
4913
|
}),
|
|
4917
4914
|
v(
|
|
4918
4915
|
"span",
|
|
4919
|
-
|
|
4916
|
+
vc,
|
|
4920
4917
|
U(y(I)("历史会话")),
|
|
4921
4918
|
1
|
|
4922
4919
|
/* TEXT */
|
|
@@ -4946,13 +4943,13 @@ const Pi = Fu.post("/chat/chat-feedback"), ji = { class: "das-ai-select-containe
|
|
|
4946
4943
|
/* STABLE */
|
|
4947
4944
|
})
|
|
4948
4945
|
]),
|
|
4949
|
-
v("div",
|
|
4946
|
+
v("div", yc, [
|
|
4950
4947
|
j(y(Ie), {
|
|
4951
4948
|
"wrap-class": "das-ai-wrap-class",
|
|
4952
4949
|
onScroll: s
|
|
4953
4950
|
}, {
|
|
4954
4951
|
default: W(() => [
|
|
4955
|
-
o.value.length ? (F(), P("div",
|
|
4952
|
+
o.value.length ? (F(), P("div", Ac, [
|
|
4956
4953
|
(F(!0), P(
|
|
4957
4954
|
Lu,
|
|
4958
4955
|
null,
|
|
@@ -4962,7 +4959,7 @@ const Pi = Fu.post("/chat/chat-feedback"), ji = { class: "das-ai-select-containe
|
|
|
4962
4959
|
}, [
|
|
4963
4960
|
v(
|
|
4964
4961
|
"div",
|
|
4965
|
-
|
|
4962
|
+
Dc,
|
|
4966
4963
|
U((p == null ? void 0 : p.queryTitle) || p.title),
|
|
4967
4964
|
1
|
|
4968
4965
|
/* TEXT */
|
|
@@ -4976,11 +4973,11 @@ const Pi = Fu.post("/chat/chat-feedback"), ji = { class: "das-ai-select-containe
|
|
|
4976
4973
|
text: p.answerText,
|
|
4977
4974
|
row: "2"
|
|
4978
4975
|
}, null, 8, ["text"]),
|
|
4979
|
-
v("div",
|
|
4980
|
-
v("div",
|
|
4976
|
+
v("div", Ec, [
|
|
4977
|
+
v("div", Fc, [
|
|
4981
4978
|
v(
|
|
4982
4979
|
"div",
|
|
4983
|
-
|
|
4980
|
+
wc,
|
|
4984
4981
|
U(f(p)),
|
|
4985
4982
|
1
|
|
4986
4983
|
/* TEXT */
|
|
@@ -5023,7 +5020,7 @@ const Pi = Fu.post("/chat/chat-feedback"), ji = { class: "das-ai-select-containe
|
|
|
5023
5020
|
/* DYNAMIC_SLOTS */
|
|
5024
5021
|
)
|
|
5025
5022
|
])
|
|
5026
|
-
], 8,
|
|
5023
|
+
], 8, Cc))),
|
|
5027
5024
|
256
|
|
5028
5025
|
/* UNKEYED_FRAGMENT */
|
|
5029
5026
|
))
|
|
@@ -5038,7 +5035,7 @@ const Pi = Fu.post("/chat/chat-feedback"), ji = { class: "das-ai-select-containe
|
|
|
5038
5035
|
[y(gt), t.value]
|
|
5039
5036
|
]);
|
|
5040
5037
|
}
|
|
5041
|
-
}),
|
|
5038
|
+
}), Tc = /* @__PURE__ */ au(Ic, [["__scopeId", "data-v-8c5ac496"]]);
|
|
5042
5039
|
/*! js-cookie v3.0.5 | MIT */
|
|
5043
5040
|
function te(u) {
|
|
5044
5041
|
for (var e = 1; e < arguments.length; e++) {
|
|
@@ -5048,7 +5045,7 @@ function te(u) {
|
|
|
5048
5045
|
}
|
|
5049
5046
|
return u;
|
|
5050
5047
|
}
|
|
5051
|
-
var
|
|
5048
|
+
var zc = {
|
|
5052
5049
|
read: function(u) {
|
|
5053
5050
|
return u[0] === '"' && (u = u.slice(1, -1)), u.replace(/(%[\dA-F]{2})+/gi, decodeURIComponent);
|
|
5054
5051
|
},
|
|
@@ -5060,27 +5057,27 @@ var za = {
|
|
|
5060
5057
|
}
|
|
5061
5058
|
};
|
|
5062
5059
|
function we(u, e) {
|
|
5063
|
-
function t(r, o,
|
|
5060
|
+
function t(r, o, c) {
|
|
5064
5061
|
if (!(typeof document > "u")) {
|
|
5065
|
-
|
|
5062
|
+
c = te({}, e, c), typeof c.expires == "number" && (c.expires = new Date(Date.now() + c.expires * 864e5)), c.expires && (c.expires = c.expires.toUTCString()), r = encodeURIComponent(r).replace(/%(2[346B]|5E|60|7C)/g, decodeURIComponent).replace(/[()]/g, escape);
|
|
5066
5063
|
var i = "";
|
|
5067
|
-
for (var
|
|
5068
|
-
a
|
|
5064
|
+
for (var a in c)
|
|
5065
|
+
c[a] && (i += "; " + a, c[a] !== !0 && (i += "=" + c[a].split(";")[0]));
|
|
5069
5066
|
return document.cookie = r + "=" + u.write(o, r) + i;
|
|
5070
5067
|
}
|
|
5071
5068
|
}
|
|
5072
5069
|
function n(r) {
|
|
5073
5070
|
if (!(typeof document > "u" || arguments.length && !r)) {
|
|
5074
|
-
for (var o = document.cookie ? document.cookie.split("; ") : [],
|
|
5075
|
-
var
|
|
5071
|
+
for (var o = document.cookie ? document.cookie.split("; ") : [], c = {}, i = 0; i < o.length; i++) {
|
|
5072
|
+
var a = o[i].split("="), s = a.slice(1).join("=");
|
|
5076
5073
|
try {
|
|
5077
|
-
var l = decodeURIComponent(
|
|
5078
|
-
if (
|
|
5074
|
+
var l = decodeURIComponent(a[0]);
|
|
5075
|
+
if (c[l] = u.read(s, l), r === l)
|
|
5079
5076
|
break;
|
|
5080
5077
|
} catch {
|
|
5081
5078
|
}
|
|
5082
5079
|
}
|
|
5083
|
-
return r ?
|
|
5080
|
+
return r ? c[r] : c;
|
|
5084
5081
|
}
|
|
5085
5082
|
}
|
|
5086
5083
|
return Object.create(
|
|
@@ -5109,27 +5106,27 @@ function we(u, e) {
|
|
|
5109
5106
|
}
|
|
5110
5107
|
);
|
|
5111
5108
|
}
|
|
5112
|
-
var
|
|
5113
|
-
const
|
|
5114
|
-
let u = 0, e = -1, t = [], n = "", r = -1, o = !1,
|
|
5115
|
-
const
|
|
5116
|
-
const C = re() ? re() :
|
|
5109
|
+
var Nc = we(zc, { path: "/" });
|
|
5110
|
+
const Lc = () => {
|
|
5111
|
+
let u = 0, e = -1, t = [], n = "", r = -1, o = !1, c = "", i = "";
|
|
5112
|
+
const a = N(!1), s = N(), l = N(!1), d = N(""), _ = () => {
|
|
5113
|
+
const C = re() ? re() : Nc.get("accessToken"), k = bt().id, x = {};
|
|
5117
5114
|
return C && (x.token = C), k && (x.project = k), x;
|
|
5118
5115
|
}, h = (C = 0, k, x) => {
|
|
5119
5116
|
if (n = k, r == 1 && C == 1 && i) {
|
|
5120
|
-
i.send(JSON.stringify({ text: x, taskId:
|
|
5117
|
+
i.send(JSON.stringify({ text: x, taskId: c, taskType: C, overFlag: !n.loading, ..._() }));
|
|
5121
5118
|
return;
|
|
5122
5119
|
}
|
|
5123
5120
|
n.audioStatus = "generated", i = new S0({
|
|
5124
5121
|
url: "/socket/api/speech/v1/tts",
|
|
5125
5122
|
reconnectWhenClose: !0,
|
|
5126
5123
|
opened: () => {
|
|
5127
|
-
|
|
5124
|
+
c = Vu(), C == 0 && i.send(JSON.stringify({ text: n.content, taskId: c, taskType: C, ..._() })), C == 1 && i.send(JSON.stringify({ text: n.content, taskId: c, taskType: C, overFlag: !n.loading, ..._() })), r = C;
|
|
5128
5125
|
},
|
|
5129
5126
|
message: async (p) => {
|
|
5130
|
-
if ((p == null ? void 0 : p.taskId) ==
|
|
5127
|
+
if ((p == null ? void 0 : p.taskId) == c) {
|
|
5131
5128
|
if (!(p != null && p.baseData)) return;
|
|
5132
|
-
p != null && p.baseData && t.push(p == null ? void 0 : p.baseData), r == 1 && (o = p.overFlag), e < 0 && (r == 0 && (u = p.totalCount, e = 0, n.audioStatus = "loading", d.value = `data:audio/mpeg;base64,${p == null ? void 0 : p.baseData}`, l.value = !0, A()), r == 1 && b.autoAudio && (e = 0, n.audioStatus = "loading", d.value = `data:audio/mpeg;base64,${p == null ? void 0 : p.baseData}`, l.value = !0, n.havePlayAutoAudio = !0, A())),
|
|
5129
|
+
p != null && p.baseData && t.push(p == null ? void 0 : p.baseData), r == 1 && (o = p.overFlag), e < 0 && (r == 0 && (u = p.totalCount, e = 0, n.audioStatus = "loading", d.value = `data:audio/mpeg;base64,${p == null ? void 0 : p.baseData}`, l.value = !0, A()), r == 1 && b.autoAudio && (e = 0, n.audioStatus = "loading", d.value = `data:audio/mpeg;base64,${p == null ? void 0 : p.baseData}`, l.value = !0, n.havePlayAutoAudio = !0, A())), a.value && (a.value = !1);
|
|
5133
5130
|
}
|
|
5134
5131
|
},
|
|
5135
5132
|
error: (p) => {
|
|
@@ -5140,7 +5137,7 @@ const La = () => {
|
|
|
5140
5137
|
});
|
|
5141
5138
|
}, f = () => {
|
|
5142
5139
|
var C;
|
|
5143
|
-
r = -1, e = -1, u = 0, o = !1, t = [], i && i.disconnect(), i = "", (C = s.value) == null || C.pause(), d.value = "",
|
|
5140
|
+
r = -1, e = -1, u = 0, o = !1, t = [], i && i.disconnect(), i = "", (C = s.value) == null || C.pause(), d.value = "", a.value = !1, l.value = !1, n && (n.audioStatus = "normal", n = "");
|
|
5144
5141
|
}, g = () => {
|
|
5145
5142
|
if (r == 0) {
|
|
5146
5143
|
const C = e + 1;
|
|
@@ -5149,7 +5146,7 @@ const La = () => {
|
|
|
5149
5146
|
e++, d.value = `data:audio/mpeg;base64,${t[e]}`;
|
|
5150
5147
|
return;
|
|
5151
5148
|
} else {
|
|
5152
|
-
|
|
5149
|
+
a.value = !0, bu(a, (k) => {
|
|
5153
5150
|
g();
|
|
5154
5151
|
});
|
|
5155
5152
|
return;
|
|
@@ -5168,7 +5165,7 @@ const La = () => {
|
|
|
5168
5165
|
e++, d.value = `data:audio/mpeg;base64,${t[e]}`;
|
|
5169
5166
|
return;
|
|
5170
5167
|
} else {
|
|
5171
|
-
|
|
5168
|
+
a.value = !0, bu(a, (k) => {
|
|
5172
5169
|
g();
|
|
5173
5170
|
});
|
|
5174
5171
|
return;
|
|
@@ -5188,17 +5185,17 @@ const La = () => {
|
|
|
5188
5185
|
playAudio: h,
|
|
5189
5186
|
pauseAudio: f
|
|
5190
5187
|
};
|
|
5191
|
-
},
|
|
5188
|
+
}, Bc = { class: "das-ai-container" }, qc = {
|
|
5192
5189
|
key: 0,
|
|
5193
5190
|
class: "das-ai-index-mask"
|
|
5194
|
-
},
|
|
5191
|
+
}, Oc = { class: "ai-top" }, Mc = { class: "ai-top-left" }, Rc = { class: "ai-top-right" }, Pc = {
|
|
5195
5192
|
key: 1,
|
|
5196
5193
|
class: "das-ai-current-box",
|
|
5197
5194
|
id: "das-ai-chat-scrollbox"
|
|
5198
|
-
},
|
|
5195
|
+
}, jc = {
|
|
5199
5196
|
key: 3,
|
|
5200
5197
|
class: "das-ai-chat-new"
|
|
5201
|
-
},
|
|
5198
|
+
}, Hc = { class: "das-ai-chat-input-box" }, $c = { class: "sendervue-box" }, Vc = ["src", "muted"], Uc = "/api/llm/vector/v1/large-model/chat", Zc = /* @__PURE__ */ cu({
|
|
5202
5199
|
__name: "index",
|
|
5203
5200
|
props: {
|
|
5204
5201
|
platformInitNextTick: {}
|
|
@@ -5207,11 +5204,11 @@ const La = () => {
|
|
|
5207
5204
|
setup(u, { expose: e, emit: t }) {
|
|
5208
5205
|
const n = u, r = t;
|
|
5209
5206
|
ne.extend(d0), ne.extend(f0);
|
|
5210
|
-
const o = N(0),
|
|
5207
|
+
const o = N(0), c = N(0), i = N(""), a = N(), s = N(""), l = N(null), d = N(!1), _ = N(null), h = N([
|
|
5211
5208
|
{ id: "1", text: I("介绍达实公司及核心产品") },
|
|
5212
5209
|
{ id: "2", text: I("介绍达实公司行业案例") },
|
|
5213
5210
|
{ id: "3", text: I("预订上午9:00的会议室") }
|
|
5214
|
-
]), f = N({}), g = N([]), A = N(["A100", "A002", "A003", "A005"]), C = N(!1), k = N(!1), { folderDialogVue: x, showFolderDialog: p } = z0(), { aiAudioRef: m, isAudioplay: L, audioSrc: T, playAudio: H, pauseAudio: R } =
|
|
5211
|
+
]), f = N({}), g = N([]), A = N(["A100", "A002", "A003", "A005"]), C = N(!1), k = N(!1), { folderDialogVue: x, showFolderDialog: p } = z0(), { aiAudioRef: m, isAudioplay: L, audioSrc: T, playAudio: H, pauseAudio: R } = Lc();
|
|
5215
5212
|
let K = 0;
|
|
5216
5213
|
Ou(async () => {
|
|
5217
5214
|
n != null && n.platformInitNextTick && await (n == null ? void 0 : n.platformInitNextTick()), yt(!0), Uu();
|
|
@@ -5311,7 +5308,7 @@ const La = () => {
|
|
|
5311
5308
|
intention: Z.intention,
|
|
5312
5309
|
showSave: !A.value.includes(Z.intention)
|
|
5313
5310
|
}));
|
|
5314
|
-
}), vu = B == null ? void 0 : B.some((Z) => Z.feedback == 1)), q(), g.value = su,
|
|
5311
|
+
}), vu = B == null ? void 0 : B.some((Z) => Z.feedback == 1)), q(), g.value = su, c.value = J, b.searchType = V || "1", V == "1" && (b.folderId = tu, tu ? pe(tu) : b.folderName = ""), Uu(), fu(), d.value = !1, b.isSplitOut = vu;
|
|
5315
5312
|
} else
|
|
5316
5313
|
d.value = !1;
|
|
5317
5314
|
}, pe = async (D) => {
|
|
@@ -5319,7 +5316,7 @@ const La = () => {
|
|
|
5319
5316
|
const [E, B] = await Mi({ id: D }).run();
|
|
5320
5317
|
E || B && (b.folderName = B.folderName);
|
|
5321
5318
|
}, q = () => {
|
|
5322
|
-
_.value = null, b.loading = !1, R(), o.value = 0, g.value = [], l.value = null, C.value = !1, k.value = !1,
|
|
5319
|
+
_.value = null, b.loading = !1, R(), o.value = 0, g.value = [], l.value = null, C.value = !1, k.value = !1, c.value = null, N0();
|
|
5323
5320
|
}, S = (D) => {
|
|
5324
5321
|
D == "addNew" && q(), D == "scrollBom" && (k.value = !1, fu());
|
|
5325
5322
|
}, w = () => {
|
|
@@ -5364,7 +5361,7 @@ const La = () => {
|
|
|
5364
5361
|
if (D == "reference" && (l.value = E, s.value = "reference"), D == "play" && (E.data.audioStatus == "normal" ? (R(), H(0, E.data)) : (l.value && (l.value.audioStatus = "normal"), R())), D == "preview" && Su(E), D == "splitout") {
|
|
5365
5362
|
b.isSplitOut = !b.isSplitOut;
|
|
5366
5363
|
const V = {
|
|
5367
|
-
chatId:
|
|
5364
|
+
chatId: c.value + "",
|
|
5368
5365
|
queryId: ((J = l.value) == null ? void 0 : J.queryId) || (E == null ? void 0 : E.queryId),
|
|
5369
5366
|
feedback: Number(b.isSplitOut)
|
|
5370
5367
|
}, [tu] = await Pi(V).run();
|
|
@@ -5378,7 +5375,7 @@ const La = () => {
|
|
|
5378
5375
|
}, Su = (D) => {
|
|
5379
5376
|
i.value = D, Ce(() => {
|
|
5380
5377
|
var E;
|
|
5381
|
-
(E =
|
|
5378
|
+
(E = a.value) == null || E.preview();
|
|
5382
5379
|
});
|
|
5383
5380
|
}, He = (D) => {
|
|
5384
5381
|
R(), s.value = "history";
|
|
@@ -5397,7 +5394,7 @@ const La = () => {
|
|
|
5397
5394
|
isGlobalSearch: "0"
|
|
5398
5395
|
//是否搜索全网(0否1是)
|
|
5399
5396
|
};
|
|
5400
|
-
return
|
|
5397
|
+
return c.value || (c.value = (/* @__PURE__ */ new Date()).getTime()), B.chatId = c.value, b.searchType == "0" && (B.isInnerSearch = "1"), b.searchType == "1" && (B.isKnowledgeSearch = "1", B.foldId = b.folderId == b.allKnowId ? "" : b.folderId), b.searchType == "2" && (B.isGlobalSearch = "1"), JSON.stringify(B);
|
|
5401
5398
|
}, Wt = () => {
|
|
5402
5399
|
const D = {
|
|
5403
5400
|
// Authorization: `Bearer ${getToken()}`,
|
|
@@ -5409,7 +5406,7 @@ const La = () => {
|
|
|
5409
5406
|
let be = "";
|
|
5410
5407
|
const Ve = (D, E = "") => {
|
|
5411
5408
|
b.loading = !0, fu();
|
|
5412
|
-
const B = new nu(`${pt().baseURL}${
|
|
5409
|
+
const B = new nu(`${pt().baseURL}${Uc}?project=${bt().id}`, {
|
|
5413
5410
|
method: "POST",
|
|
5414
5411
|
// 使用 POST 请求
|
|
5415
5412
|
headers: Wt(),
|
|
@@ -5448,7 +5445,7 @@ const La = () => {
|
|
|
5448
5445
|
if (l.value && l.value.loading && l.value.queryId && l.value.content) {
|
|
5449
5446
|
let D = l.value.file ? l.value.file.filter((J) => J.type != "url") : [];
|
|
5450
5447
|
const E = {
|
|
5451
|
-
chat_id:
|
|
5448
|
+
chat_id: c.value,
|
|
5452
5449
|
//会话id
|
|
5453
5450
|
content: l.value.content,
|
|
5454
5451
|
//对话内容
|
|
@@ -5499,30 +5496,30 @@ const La = () => {
|
|
|
5499
5496
|
openNewChat: q
|
|
5500
5497
|
}), (D, E) => {
|
|
5501
5498
|
const B = u0("dasLoading");
|
|
5502
|
-
return Cu((F(), P("div",
|
|
5503
|
-
s.value ? (F(), P("div",
|
|
5504
|
-
s.value == "reference" ? (F(), Y(
|
|
5499
|
+
return Cu((F(), P("div", Bc, [
|
|
5500
|
+
s.value ? (F(), P("div", qc, [
|
|
5501
|
+
s.value == "reference" ? (F(), Y(bc, {
|
|
5505
5502
|
key: 0,
|
|
5506
5503
|
item: l.value,
|
|
5507
5504
|
onPreview: Su,
|
|
5508
5505
|
onBack: $e,
|
|
5509
5506
|
onToApp: eu
|
|
5510
5507
|
}, null, 8, ["item"])) : z("v-if", !0),
|
|
5511
|
-
s.value == "history" ? (F(), Y(
|
|
5508
|
+
s.value == "history" ? (F(), Y(Tc, {
|
|
5512
5509
|
key: 1,
|
|
5513
|
-
chatId:
|
|
5510
|
+
chatId: c.value,
|
|
5514
5511
|
onRecord: he,
|
|
5515
5512
|
onBack: $e
|
|
5516
5513
|
}, null, 8, ["chatId"])) : z("v-if", !0)
|
|
5517
5514
|
])) : z("v-if", !0),
|
|
5518
|
-
v("div",
|
|
5519
|
-
v("div",
|
|
5520
|
-
j(
|
|
5515
|
+
v("div", Oc, [
|
|
5516
|
+
v("div", Mc, [
|
|
5517
|
+
j(tc, {
|
|
5521
5518
|
onBack: q,
|
|
5522
5519
|
listLength: g.value.length
|
|
5523
5520
|
}, null, 8, ["listLength"])
|
|
5524
5521
|
]),
|
|
5525
|
-
v("div",
|
|
5522
|
+
v("div", Rc, [
|
|
5526
5523
|
j(y(gu), {
|
|
5527
5524
|
placement: "top",
|
|
5528
5525
|
type: "button"
|
|
@@ -5542,12 +5539,12 @@ const La = () => {
|
|
|
5542
5539
|
style: { "margin-right": "16px" },
|
|
5543
5540
|
class: "ai-top-right-icon"
|
|
5544
5541
|
}, [
|
|
5545
|
-
y(b).autoAudio ? (F(), Y(y(
|
|
5542
|
+
y(b).autoAudio ? (F(), Y(y(c0), {
|
|
5546
5543
|
key: 0,
|
|
5547
5544
|
customSize: "20",
|
|
5548
5545
|
iconColor: "#006DF1"
|
|
5549
5546
|
})) : z("v-if", !0),
|
|
5550
|
-
y(b).autoAudio ? z("v-if", !0) : (F(), Y(y(
|
|
5547
|
+
y(b).autoAudio ? z("v-if", !0) : (F(), Y(y(a0), {
|
|
5551
5548
|
key: 1,
|
|
5552
5549
|
customSize: "20",
|
|
5553
5550
|
iconColor: "#333333"
|
|
@@ -5586,7 +5583,7 @@ const La = () => {
|
|
|
5586
5583
|
})
|
|
5587
5584
|
])
|
|
5588
5585
|
]),
|
|
5589
|
-
g.value.length ? (F(), P("div",
|
|
5586
|
+
g.value.length ? (F(), P("div", Pc, [
|
|
5590
5587
|
j(y(Ie), {
|
|
5591
5588
|
"wrap-class": "das-ai-wrap-class",
|
|
5592
5589
|
onScroll: fe
|
|
@@ -5607,7 +5604,7 @@ const La = () => {
|
|
|
5607
5604
|
onClick: O
|
|
5608
5605
|
}, null, 8, ["list"])),
|
|
5609
5606
|
z(' v-if="currentList.length && !dasAiData.loading" '),
|
|
5610
|
-
g.value.length ? (F(), P("div",
|
|
5607
|
+
g.value.length ? (F(), P("div", jc, [
|
|
5611
5608
|
E[0] || (E[0] = v(
|
|
5612
5609
|
"div",
|
|
5613
5610
|
{ class: "chat-new-top-mask" },
|
|
@@ -5618,7 +5615,7 @@ const La = () => {
|
|
|
5618
5615
|
j(gi, { onAddNewEmit: S })
|
|
5619
5616
|
])) : z("v-if", !0),
|
|
5620
5617
|
z(' :class="{ full: !currentList.length }" '),
|
|
5621
|
-
v("div",
|
|
5618
|
+
v("div", Hc, [
|
|
5622
5619
|
z(` <div v-if="!currentList.length" class="new-content">\r
|
|
5623
5620
|
<div class="new-content-top">\r
|
|
5624
5621
|
<div class="new-content-img"><img :src="dasImg" /></div>\r
|
|
@@ -5630,7 +5627,7 @@ const La = () => {
|
|
|
5630
5627
|
</div>\r
|
|
5631
5628
|
</div> `),
|
|
5632
5629
|
z(' v-show="!dasAiData.loading" '),
|
|
5633
|
-
v("div", $
|
|
5630
|
+
v("div", $c, [
|
|
5634
5631
|
j(pi, {
|
|
5635
5632
|
isNew: !g.value.length,
|
|
5636
5633
|
onSenderEmit: M
|
|
@@ -5652,7 +5649,7 @@ const La = () => {
|
|
|
5652
5649
|
j(y(x)),
|
|
5653
5650
|
j(y(l0), {
|
|
5654
5651
|
ref_key: "dasPreviewRef",
|
|
5655
|
-
ref:
|
|
5652
|
+
ref: a,
|
|
5656
5653
|
"file-url": i.value
|
|
5657
5654
|
}, null, 8, ["file-url"]),
|
|
5658
5655
|
v("audio", {
|
|
@@ -5662,20 +5659,20 @@ const La = () => {
|
|
|
5662
5659
|
ref: m,
|
|
5663
5660
|
muted: !y(L),
|
|
5664
5661
|
autoplay: ""
|
|
5665
|
-
}, null, 8,
|
|
5662
|
+
}, null, 8, Vc)
|
|
5666
5663
|
])), [
|
|
5667
5664
|
[B, d.value]
|
|
5668
5665
|
]);
|
|
5669
5666
|
};
|
|
5670
5667
|
}
|
|
5671
|
-
}),
|
|
5668
|
+
}), Gc = /* @__PURE__ */ au(Zc, [["__scopeId", "data-v-25e52ed7"]]), Kc = { class: "das-ai-panel-div 2" }, Jc = { class: "das-ai-panel-coantainer-header" }, Wc = { class: "das-ai-panel-header-title" }, Qc = { class: "das-ai-panel-coantainer-body" }, Xc = /* @__PURE__ */ cu({
|
|
5672
5669
|
__name: "index",
|
|
5673
5670
|
props: {
|
|
5674
5671
|
platformInitNextTick: {}
|
|
5675
5672
|
},
|
|
5676
5673
|
emits: ["confirm", "toApp", "getStatus"],
|
|
5677
5674
|
setup(u, { expose: e, emit: t }) {
|
|
5678
|
-
const n = t, r = r0(), o = N(),
|
|
5675
|
+
const n = t, r = r0(), o = N(), c = N(0), i = N(), a = N(!1);
|
|
5679
5676
|
bu(
|
|
5680
5677
|
() => r == null ? void 0 : r.path,
|
|
5681
5678
|
(m, L) => {
|
|
@@ -5685,8 +5682,8 @@ const La = () => {
|
|
|
5685
5682
|
setTimeout(() => {
|
|
5686
5683
|
Ce(() => {
|
|
5687
5684
|
let m = document.getElementsByClassName("das-web-app-header")[0];
|
|
5688
|
-
m && (
|
|
5689
|
-
|
|
5685
|
+
m && (c.value = m.clientHeight), m && !i.value && (i.value = I0((L) => {
|
|
5686
|
+
c.value = L.height;
|
|
5690
5687
|
}, m));
|
|
5691
5688
|
});
|
|
5692
5689
|
}, 1e3);
|
|
@@ -5698,10 +5695,10 @@ const La = () => {
|
|
|
5698
5695
|
n("toApp", m);
|
|
5699
5696
|
}, l = () => {
|
|
5700
5697
|
var m;
|
|
5701
|
-
|
|
5698
|
+
a.value || (a.value = !0, (m = o.value) == null || m.showFn(), n("getStatus", !0));
|
|
5702
5699
|
}, d = () => {
|
|
5703
5700
|
var m;
|
|
5704
|
-
|
|
5701
|
+
a.value = !1, (m = o.value) == null || m.hideFn(), n("getStatus", !1);
|
|
5705
5702
|
};
|
|
5706
5703
|
return e({
|
|
5707
5704
|
setAutoAudio: (m) => {
|
|
@@ -5739,7 +5736,7 @@ const La = () => {
|
|
|
5739
5736
|
},
|
|
5740
5737
|
openPanel: l,
|
|
5741
5738
|
closePanel: d
|
|
5742
|
-
}), (m, L) => (F(), P("div",
|
|
5739
|
+
}), (m, L) => (F(), P("div", Kc, [
|
|
5743
5740
|
j(e0, {
|
|
5744
5741
|
name: "das-ai-panel",
|
|
5745
5742
|
persisted: ""
|
|
@@ -5749,13 +5746,13 @@ const La = () => {
|
|
|
5749
5746
|
"div",
|
|
5750
5747
|
{
|
|
5751
5748
|
class: "das-ai-panel-coantainer",
|
|
5752
|
-
style: t0({ top: `${
|
|
5749
|
+
style: t0({ top: `${c.value}px` })
|
|
5753
5750
|
},
|
|
5754
5751
|
[
|
|
5755
|
-
v("div",
|
|
5752
|
+
v("div", Jc, [
|
|
5756
5753
|
v(
|
|
5757
5754
|
"div",
|
|
5758
|
-
|
|
5755
|
+
Wc,
|
|
5759
5756
|
U(y(I)("AI助手")),
|
|
5760
5757
|
1
|
|
5761
5758
|
/* TEXT */
|
|
@@ -5770,8 +5767,8 @@ const La = () => {
|
|
|
5770
5767
|
})
|
|
5771
5768
|
])
|
|
5772
5769
|
]),
|
|
5773
|
-
v("div",
|
|
5774
|
-
j(
|
|
5770
|
+
v("div", Qc, [
|
|
5771
|
+
j(Gc, {
|
|
5775
5772
|
platformInitNextTick: m.platformInitNextTick,
|
|
5776
5773
|
ref_key: "dasAiVueRef",
|
|
5777
5774
|
ref: o,
|
|
@@ -5782,7 +5779,7 @@ const La = () => {
|
|
|
5782
5779
|
4
|
|
5783
5780
|
/* STYLE */
|
|
5784
5781
|
), [
|
|
5785
|
-
[$u,
|
|
5782
|
+
[$u, a.value]
|
|
5786
5783
|
])
|
|
5787
5784
|
]),
|
|
5788
5785
|
_: 1
|
|
@@ -5809,108 +5806,100 @@ const La = () => {
|
|
|
5809
5806
|
</das-drawer>`)
|
|
5810
5807
|
]));
|
|
5811
5808
|
}
|
|
5812
|
-
}),
|
|
5813
|
-
AI助手: { "zh-CN": "AI助手", en: "AI Assistant",
|
|
5814
|
-
自动播报: { "zh-CN": "自动播报", en: "Auto Broadcast"
|
|
5815
|
-
历史会话: { "zh-CN": "历史会话", en: "History Sessions"
|
|
5816
|
-
"嗨!我是小达AI助手": { "zh-CN": "嗨!我是小达AI助手", en: "hi! i am the xiaoda AI assistant"
|
|
5809
|
+
}), Yc = /* @__PURE__ */ au(Xc, [["__scopeId", "data-v-694b3ee4"]]), ua = {
|
|
5810
|
+
AI助手: { "zh-CN": "AI助手", en: "AI Assistant", _appCode: "framework" },
|
|
5811
|
+
自动播报: { "zh-CN": "自动播报", en: "Auto Broadcast" },
|
|
5812
|
+
历史会话: { "zh-CN": "历史会话", en: "History Sessions" },
|
|
5813
|
+
"嗨!我是小达AI助手": { "zh-CN": "嗨!我是小达AI助手", en: "hi! i am the xiaoda AI assistant" },
|
|
5817
5814
|
"我可以帮你分析,写报告,调节设备,预订会议室,请把你的任务交给我吧~": {
|
|
5818
5815
|
"zh-CN": "我可以帮你分析,写报告,调节设备,预订会议室,请把你的任务交给我吧~",
|
|
5819
|
-
en: "I can help you analyze, write reports, adjust devices, book meeting rooms, please hand over your tasks to me~"
|
|
5820
|
-
ar: "أستطيع مساعدتك في التحليل وكتابة التقارير وضبط الأجهزة وحجز قاعات الاجتماعات، يرجى تسليم مهامك لي~"
|
|
5816
|
+
en: "I can help you analyze, write reports, adjust devices, book meeting rooms, please hand over your tasks to me~"
|
|
5821
5817
|
},
|
|
5822
|
-
"回答中…": { "zh-CN": "回答中…", en: "Responding…"
|
|
5818
|
+
"回答中…": { "zh-CN": "回答中…", en: "Responding…" },
|
|
5823
5819
|
"内容由AI生成,无法完全保证真实,仅供参考": {
|
|
5824
5820
|
"zh-CN": "内容由AI生成,无法完全保证真实,仅供参考",
|
|
5825
|
-
en: "Content generated by AI, accuracy not guaranteed, for reference only"
|
|
5826
|
-
ar: "المحتوى من إنشاء الذكاء الاصطناعي، لا يمكن ضمان صحته بالكامل، للرجوع فقط"
|
|
5821
|
+
en: "Content generated by AI, accuracy not guaranteed, for reference only"
|
|
5827
5822
|
},
|
|
5828
|
-
介绍达实公司及核心产品: { "zh-CN": "介绍达实公司及核心产品", en: "Introduce das company and core products"
|
|
5829
|
-
介绍达实公司行业案例: { "zh-CN": "介绍达实公司行业案例", en: "Introduce das company industry cases"
|
|
5830
|
-
"预订上午9:00的会议室": { "zh-CN": "预订上午9:00的会议室", en: "Book a meeting room at 9:00 am"
|
|
5831
|
-
连接错误: { "zh-CN": "连接错误", en: "Connection Failed"
|
|
5832
|
-
保存成功: { "zh-CN": "保存成功", en: "Saved Successfully"
|
|
5833
|
-
开启新对话: { "zh-CN": "开启新对话", en: "Start New Conversation"
|
|
5834
|
-
更多: { "zh-CN": "更多", en: "More"
|
|
5835
|
-
回答: { "zh-CN": "回答", en: "Response"
|
|
5836
|
-
已暂停生成: { "zh-CN": "已暂停生成", en: "Generation Paused"
|
|
5837
|
-
重新生成: { "zh-CN": "重新生成", en: "Regenerate"
|
|
5838
|
-
复制: { "zh-CN": "复制", en: "Copy"
|
|
5839
|
-
已保存: { "zh-CN": "已保存", en: "Saved"
|
|
5840
|
-
保存为知识库: { "zh-CN": "保存为知识库", en: "Save to Knowledge Base"
|
|
5841
|
-
参考内容: { "zh-CN": "参考内容", en: "Reference Content"
|
|
5842
|
-
"思考中…": { "zh-CN": "思考中…", en: "Thinking…"
|
|
5843
|
-
已深度思考: { "zh-CN": "已深度思考", en: "Deep Thought Completed"
|
|
5844
|
-
语音朗读: { "zh-CN": "语音朗读", en: "Voice Read"
|
|
5845
|
-
停止朗读: { "zh-CN": "停止朗读", en: "Stop Reading"
|
|
5846
|
-
复制成功: { "zh-CN": "复制成功", en: "Copied Successfully"
|
|
5847
|
-
复制失败: { "zh-CN": "复制失败", en: "Copied Failed"
|
|
5848
|
-
搜索文件夹名称: { "zh-CN": "搜索文件夹名称", en: "Search folder name"
|
|
5849
|
-
取消: { "zh-CN": "取消", en: "Cancel"
|
|
5850
|
-
确定: { "zh-CN": "确定", en: "Ok"
|
|
5851
|
-
选择文件夹: { "zh-CN": "选择文件夹", en: "Select Folder"
|
|
5852
|
-
请选择文件夹: { "zh-CN": "请选择文件夹", en: "Please select a folder"
|
|
5853
|
-
删除后将无法恢复: { "zh-CN": "删除后将无法恢复", en: "Cannot be recovered after deletion"
|
|
5854
|
-
"确定要删除吗?": { "zh-CN": "确定要删除吗?", en: "Are you sure you want to delete it?"
|
|
5855
|
-
清空: { "zh-CN": "清空", en: "Clear"
|
|
5856
|
-
删除: { "zh-CN": "删除", en: "Delete"
|
|
5857
|
-
物联应用: { "zh-CN": "物联应用", en: "IoT Application"
|
|
5858
|
-
知识库: { "zh-CN": "知识库", en: "Knowledge Base"
|
|
5859
|
-
全网: { "zh-CN": "全网", en: "Entire Network"
|
|
5860
|
-
全部: { "zh-CN": "全部", en: "All"
|
|
5823
|
+
介绍达实公司及核心产品: { "zh-CN": "介绍达实公司及核心产品", en: "Introduce das company and core products" },
|
|
5824
|
+
介绍达实公司行业案例: { "zh-CN": "介绍达实公司行业案例", en: "Introduce das company industry cases" },
|
|
5825
|
+
"预订上午9:00的会议室": { "zh-CN": "预订上午9:00的会议室", en: "Book a meeting room at 9:00 am" },
|
|
5826
|
+
连接错误: { "zh-CN": "连接错误", en: "Connection Failed" },
|
|
5827
|
+
保存成功: { "zh-CN": "保存成功", en: "Saved Successfully" },
|
|
5828
|
+
开启新对话: { "zh-CN": "开启新对话", en: "Start New Conversation" },
|
|
5829
|
+
更多: { "zh-CN": "更多", en: "More" },
|
|
5830
|
+
回答: { "zh-CN": "回答", en: "Response" },
|
|
5831
|
+
已暂停生成: { "zh-CN": "已暂停生成", en: "Generation Paused" },
|
|
5832
|
+
重新生成: { "zh-CN": "重新生成", en: "Regenerate" },
|
|
5833
|
+
复制: { "zh-CN": "复制", en: "Copy" },
|
|
5834
|
+
已保存: { "zh-CN": "已保存", en: "Saved" },
|
|
5835
|
+
保存为知识库: { "zh-CN": "保存为知识库", en: "Save to Knowledge Base" },
|
|
5836
|
+
参考内容: { "zh-CN": "参考内容", en: "Reference Content" },
|
|
5837
|
+
"思考中…": { "zh-CN": "思考中…", en: "Thinking…" },
|
|
5838
|
+
已深度思考: { "zh-CN": "已深度思考", en: "Deep Thought Completed" },
|
|
5839
|
+
语音朗读: { "zh-CN": "语音朗读", en: "Voice Read" },
|
|
5840
|
+
停止朗读: { "zh-CN": "停止朗读", en: "Stop Reading" },
|
|
5841
|
+
复制成功: { "zh-CN": "复制成功", en: "Copied Successfully" },
|
|
5842
|
+
复制失败: { "zh-CN": "复制失败", en: "Copied Failed" },
|
|
5843
|
+
搜索文件夹名称: { "zh-CN": "搜索文件夹名称", en: "Search folder name" },
|
|
5844
|
+
取消: { "zh-CN": "取消", en: "Cancel" },
|
|
5845
|
+
确定: { "zh-CN": "确定", en: "Ok" },
|
|
5846
|
+
选择文件夹: { "zh-CN": "选择文件夹", en: "Select Folder" },
|
|
5847
|
+
请选择文件夹: { "zh-CN": "请选择文件夹", en: "Please select a folder" },
|
|
5848
|
+
删除后将无法恢复: { "zh-CN": "删除后将无法恢复", en: "Cannot be recovered after deletion" },
|
|
5849
|
+
"确定要删除吗?": { "zh-CN": "确定要删除吗?", en: "Are you sure you want to delete it?" },
|
|
5850
|
+
清空: { "zh-CN": "清空", en: "Clear" },
|
|
5851
|
+
删除: { "zh-CN": "删除", en: "Delete" },
|
|
5852
|
+
物联应用: { "zh-CN": "物联应用", en: "IoT Application" },
|
|
5853
|
+
知识库: { "zh-CN": "知识库", en: "Knowledge Base" },
|
|
5854
|
+
全网: { "zh-CN": "全网", en: "Entire Network" },
|
|
5855
|
+
全部: { "zh-CN": "全部", en: "All" },
|
|
5861
5856
|
"删除后,该会话将不可恢复,": {
|
|
5862
5857
|
"zh-CN": "删除后,该会话将不可恢复,",
|
|
5863
|
-
en: "After deletion, the session cannot be recovered,"
|
|
5864
|
-
ar: "بعد الحذف، لا يمكن استرداد هذه المحادثة،"
|
|
5858
|
+
en: "After deletion, the session cannot be recovered,"
|
|
5865
5859
|
},
|
|
5866
5860
|
"清空后,所有历史将无法找回,": {
|
|
5867
5861
|
"zh-CN": "清空后,所有历史将无法找回,",
|
|
5868
|
-
en: "After clearing, all history will be irretrievable,"
|
|
5869
|
-
ar: "بعد المسح، لا يمكن استعادة كل السجلات،"
|
|
5862
|
+
en: "After clearing, all history will be irretrievable,"
|
|
5870
5863
|
},
|
|
5871
|
-
"嗨!我是AI助手": { "zh-CN": "嗨!我是AI助手", en: "Hi! i am the AI assistant"
|
|
5872
|
-
你可以这样说: { "zh-CN": "你可以这样说", en: "You can say like this"
|
|
5873
|
-
选择在某个知识库中搜索: { "zh-CN": "选择在某个知识库中搜索", en: "Choose to search in a knowledge base"
|
|
5864
|
+
"嗨!我是AI助手": { "zh-CN": "嗨!我是AI助手", en: "Hi! i am the AI assistant" },
|
|
5865
|
+
你可以这样说: { "zh-CN": "你可以这样说", en: "You can say like this" },
|
|
5866
|
+
选择在某个知识库中搜索: { "zh-CN": "选择在某个知识库中搜索", en: "Choose to search in a knowledge base" },
|
|
5874
5867
|
在权限范围内的应用中搜索: {
|
|
5875
5868
|
"zh-CN": "在权限范围内的应用中搜索",
|
|
5876
|
-
en: "Search in applications within permission range"
|
|
5877
|
-
ar: "البحث في التطبيقات ضمن نطاق الصلاحيات"
|
|
5869
|
+
en: "Search in applications within permission range"
|
|
5878
5870
|
},
|
|
5879
|
-
在整个大模型中搜索: { "zh-CN": "在整个大模型中搜索", en: "Search in the entire large model"
|
|
5880
|
-
基于知识库: { "zh-CN": "基于知识库", en: "Based on Knowledge Base"
|
|
5881
|
-
基于物联应用: { "zh-CN": "基于物联应用", en: "Based on IoT Application"
|
|
5882
|
-
基于全网: { "zh-CN": "基于全网", en: "Based on Entire Network"
|
|
5883
|
-
基于全部: { "zh-CN": "基于全部", en: "Based on All"
|
|
5884
|
-
"回答中...": { "zh-CN": "回答中...", en: "responding..."
|
|
5885
|
-
基于物联应用提问: { "zh-CN": "基于物联应用提问", en: "Ask based on iot application"
|
|
5886
|
-
基于知识库提问: { "zh-CN": "基于知识库提问", en: "Ask based on knowledge base"
|
|
5887
|
-
基于全网提问: { "zh-CN": "基于全网提问", en: "Ask based on entire network"
|
|
5888
|
-
继续提问: { "zh-CN": "继续提问", en: "Continue asking"
|
|
5889
|
-
深度思考: { "zh-CN": "深度思考", en: "Deep Thinking"
|
|
5871
|
+
在整个大模型中搜索: { "zh-CN": "在整个大模型中搜索", en: "Search in the entire large model" },
|
|
5872
|
+
基于知识库: { "zh-CN": "基于知识库", en: "Based on Knowledge Base" },
|
|
5873
|
+
基于物联应用: { "zh-CN": "基于物联应用", en: "Based on IoT Application" },
|
|
5874
|
+
基于全网: { "zh-CN": "基于全网", en: "Based on Entire Network" },
|
|
5875
|
+
基于全部: { "zh-CN": "基于全部", en: "Based on All" },
|
|
5876
|
+
"回答中...": { "zh-CN": "回答中...", en: "responding..." },
|
|
5877
|
+
基于物联应用提问: { "zh-CN": "基于物联应用提问", en: "Ask based on iot application" },
|
|
5878
|
+
基于知识库提问: { "zh-CN": "基于知识库提问", en: "Ask based on knowledge base" },
|
|
5879
|
+
基于全网提问: { "zh-CN": "基于全网提问", en: "Ask based on entire network" },
|
|
5880
|
+
继续提问: { "zh-CN": "继续提问", en: "Continue asking" },
|
|
5881
|
+
深度思考: { "zh-CN": "深度思考", en: "Deep Thinking" },
|
|
5890
5882
|
"已深度思考(用时$0秒)": {
|
|
5891
5883
|
"zh-CN": "已深度思考(用时$0秒)",
|
|
5892
|
-
en: "Deep thought completed (took $0 seconds)"
|
|
5893
|
-
ar: "اكتمل التفكير العميق (استغرق $0 ثانية)"
|
|
5884
|
+
en: "Deep thought completed (took $0 seconds)"
|
|
5894
5885
|
},
|
|
5895
5886
|
引用$0篇资料作为参考: {
|
|
5896
5887
|
"zh-CN": "引用$0篇资料作为参考",
|
|
5897
|
-
en: "Cite $0 documents as references"
|
|
5898
|
-
ar: "اقتباس $0 مستندات كمراجع"
|
|
5888
|
+
en: "Cite $0 documents as references"
|
|
5899
5889
|
},
|
|
5900
5890
|
"参考内容(共$0条)": {
|
|
5901
5891
|
"zh-CN": "参考内容(共$0条)",
|
|
5902
|
-
en: "Reference Content (total $0 entries)"
|
|
5903
|
-
ar: "محتوى مرجعي (إجمالي $0 إدخالات)"
|
|
5892
|
+
en: "Reference Content (total $0 entries)"
|
|
5904
5893
|
},
|
|
5905
|
-
吐槽: { "zh-CN": "吐槽", en: "Spit out"
|
|
5906
|
-
取消吐槽: { "zh-CN": "取消吐槽", en: "Cancel the Spitting"
|
|
5894
|
+
吐槽: { "zh-CN": "吐槽", en: "Spit out" },
|
|
5895
|
+
取消吐槽: { "zh-CN": "取消吐槽", en: "Cancel the Spitting" }
|
|
5907
5896
|
};
|
|
5908
|
-
i0(
|
|
5909
|
-
const
|
|
5897
|
+
i0(ua);
|
|
5898
|
+
const Ga = () => N(null), Ka = n0(Yc);
|
|
5910
5899
|
export {
|
|
5911
|
-
|
|
5912
|
-
|
|
5913
|
-
|
|
5900
|
+
Ka as D,
|
|
5901
|
+
au as _,
|
|
5902
|
+
Ga as a,
|
|
5914
5903
|
Ri as g,
|
|
5915
|
-
|
|
5904
|
+
Za as s
|
|
5916
5905
|
};
|