@gdyfe/ssml
Version:
1,489 lines • 355 kB
JavaScript
var Kh = Object.defineProperty;
var Yh = (e, t, r) => t in e ? Kh(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
var Bt = (e, t, r) => (Yh(e, typeof t != "symbol" ? t + "" : t, r), r);
import { effectScope as Zl, ref as Be, markRaw as or, toRaw as Mr, hasInjectionContext as Jh, inject as Ql, getCurrentInstance as Xh, watch as Qa, unref as ue, reactive as Zh, isRef as gu, isReactive as es, toRef as Aa, nextTick as fi, computed as lr, getCurrentScope as Qh, onScopeDispose as ed, toRefs as Jo, shallowRef as Cn, defineComponent as vt, provide as ci, onMounted as ts, onUnmounted as ns, openBlock as se, createElementBlock as Le, withModifiers as Du, createElementVNode as lt, renderSlot as Rr, createBlock as dt, normalizeClass as ef, withCtx as Ce, createVNode as He, createTextVNode as An, Fragment as Kt, renderList as fr, toDisplayString as Ci, withKeys as td, resolveDynamicComponent as Xo } from "vue";
import { SlateEditor as kt, SlateTransforms as sn, DomEditor as Re, SlateNode as nd, Boot as tn, SlateText as tf, SlateElement as nf, SlateRange as dr, createEditor as rd } from "@wangeditor/editor";
import { polyphonic as ud, pinyin as id } from "pinyin-pro";
import { ElForm as ad, ElInput as sd, ElPopover as od, ElIcon as mu, ElSelect as ld, ElOption as fd, ElInputNumber as cd, ElMessage as pd } from "element-plus";
import { ArrowLeft as rf, Check as rs, CopyDocument as hd } from "@element-plus/icons-vue";
var uf = !1;
function ri(e, t, r) {
return Array.isArray(e) ? (e.length = Math.max(e.length, t), e.splice(t, 1, r), r) : (e[t] = r, r);
}
function Ea(e, t) {
if (Array.isArray(e)) {
e.splice(t, 1);
return;
}
delete e[t];
}
function dd() {
return af().__VUE_DEVTOOLS_GLOBAL_HOOK__;
}
function af() {
return typeof navigator < "u" && typeof window < "u" ? window : typeof global < "u" ? global : {};
}
const vd = typeof Proxy == "function", gd = "devtools-plugin:setup", Dd = "plugin:settings:set";
let Or, ja;
function md() {
var e;
return Or !== void 0 || (typeof window < "u" && window.performance ? (Or = !0, ja = window.performance) : typeof global < "u" && (!((e = global.perf_hooks) === null || e === void 0) && e.performance) ? (Or = !0, ja = global.perf_hooks.performance) : Or = !1), Or;
}
function Cd() {
return md() ? ja.now() : Date.now();
}
class yd {
constructor(t, r) {
this.target = null, this.targetQueue = [], this.onQueue = [], this.plugin = t, this.hook = r;
const i = {};
if (t.settings)
for (const p in t.settings) {
const h = t.settings[p];
i[p] = h.defaultValue;
}
const s = `__vue-devtools-plugin-settings__${t.id}`;
let f = Object.assign({}, i);
try {
const p = localStorage.getItem(s), h = JSON.parse(p);
Object.assign(f, h);
} catch {
}
this.fallbacks = {
getSettings() {
return f;
},
setSettings(p) {
try {
localStorage.setItem(s, JSON.stringify(p));
} catch {
}
f = p;
},
now() {
return Cd();
}
}, r && r.on(Dd, (p, h) => {
p === this.plugin.id && this.fallbacks.setSettings(h);
}), this.proxiedOn = new Proxy({}, {
get: (p, h) => this.target ? this.target.on[h] : (...v) => {
this.onQueue.push({
method: h,
args: v
});
}
}), this.proxiedTarget = new Proxy({}, {
get: (p, h) => this.target ? this.target[h] : h === "on" ? this.proxiedOn : Object.keys(this.fallbacks).includes(h) ? (...v) => (this.targetQueue.push({
method: h,
args: v,
resolve: () => {
}
}), this.fallbacks[h](...v)) : (...v) => new Promise((g) => {
this.targetQueue.push({
method: h,
args: v,
resolve: g
});
})
});
}
async setRealTarget(t) {
this.target = t;
for (const r of this.onQueue)
this.target.on[r.method](...r.args);
for (const r of this.targetQueue)
r.resolve(await this.target[r.method](...r.args));
}
}
function sf(e, t) {
const r = e, i = af(), s = dd(), f = vd && r.enableEarlyProxy;
if (s && (i.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__ || !f))
s.emit(gd, e, t);
else {
const p = f ? new yd(r, s) : null;
(i.__VUE_DEVTOOLS_PLUGINS__ = i.__VUE_DEVTOOLS_PLUGINS__ || []).push({
pluginDescriptor: r,
setupFn: t,
proxy: p
}), p && t(p.proxiedTarget);
}
}
/*!
* pinia v2.1.6
* (c) 2023 Eduardo San Martin Morote
* @license MIT
*/
let pu;
const jr = (e) => pu = e, of = process.env.NODE_ENV !== "production" ? Symbol("pinia") : (
/* istanbul ignore next */
Symbol()
);
function cr(e) {
return e && typeof e == "object" && Object.prototype.toString.call(e) === "[object Object]" && typeof e.toJSON != "function";
}
var on;
(function(e) {
e.direct = "direct", e.patchObject = "patch object", e.patchFunction = "patch function";
})(on || (on = {}));
const yi = typeof window < "u", du = (process.env.NODE_ENV !== "production" || !1) && process.env.NODE_ENV !== "test" && yi, Zo = /* @__PURE__ */ (() => typeof window == "object" && window.window === window ? window : typeof self == "object" && self.self === self ? self : typeof global == "object" && global.global === global ? global : typeof globalThis == "object" ? globalThis : { HTMLElement: null })();
function Ad(e, { autoBom: t = !1 } = {}) {
return t && /^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type) ? new Blob([String.fromCharCode(65279), e], { type: e.type }) : e;
}
function us(e, t, r) {
const i = new XMLHttpRequest();
i.open("GET", e), i.responseType = "blob", i.onload = function() {
cf(i.response, t, r);
}, i.onerror = function() {
console.error("could not download file");
}, i.send();
}
function lf(e) {
const t = new XMLHttpRequest();
t.open("HEAD", e, !1);
try {
t.send();
} catch {
}
return t.status >= 200 && t.status <= 299;
}
function ii(e) {
try {
e.dispatchEvent(new MouseEvent("click"));
} catch {
const r = document.createEvent("MouseEvents");
r.initMouseEvent("click", !0, !0, window, 0, 0, 0, 80, 20, !1, !1, !1, !1, 0, null), e.dispatchEvent(r);
}
}
const ai = typeof navigator == "object" ? navigator : { userAgent: "" }, ff = /* @__PURE__ */ (() => /Macintosh/.test(ai.userAgent) && /AppleWebKit/.test(ai.userAgent) && !/Safari/.test(ai.userAgent))(), cf = yi ? (
// Use download attribute first if possible (#193 Lumia mobile) unless this is a macOS WebView or mini program
typeof HTMLAnchorElement < "u" && "download" in HTMLAnchorElement.prototype && !ff ? Ed : (
// Use msSaveOrOpenBlob as a second approach
"msSaveOrOpenBlob" in ai ? Bd : (
// Fallback to using FileReader and a popup
_d
)
)
) : () => {
};
function Ed(e, t = "download", r) {
const i = document.createElement("a");
i.download = t, i.rel = "noopener", typeof e == "string" ? (i.href = e, i.origin !== location.origin ? lf(i.href) ? us(e, t, r) : (i.target = "_blank", ii(i)) : ii(i)) : (i.href = URL.createObjectURL(e), setTimeout(function() {
URL.revokeObjectURL(i.href);
}, 4e4), setTimeout(function() {
ii(i);
}, 0));
}
function Bd(e, t = "download", r) {
if (typeof e == "string")
if (lf(e))
us(e, t, r);
else {
const i = document.createElement("a");
i.href = e, i.target = "_blank", setTimeout(function() {
ii(i);
});
}
else
navigator.msSaveOrOpenBlob(Ad(e, r), t);
}
function _d(e, t, r, i) {
if (i = i || open("", "_blank"), i && (i.document.title = i.document.body.innerText = "downloading..."), typeof e == "string")
return us(e, t, r);
const s = e.type === "application/octet-stream", f = /constructor/i.test(String(Zo.HTMLElement)) || "safari" in Zo, p = /CriOS\/[\d]+/.test(navigator.userAgent);
if ((p || s && f || ff) && typeof FileReader < "u") {
const h = new FileReader();
h.onloadend = function() {
let v = h.result;
if (typeof v != "string")
throw i = null, new Error("Wrong reader.result type");
v = p ? v : v.replace(/^data:[^;]*;/, "data:attachment/file;"), i ? i.location.href = v : location.assign(v), i = null;
}, h.readAsDataURL(e);
} else {
const h = URL.createObjectURL(e);
i ? i.location.assign(h) : location.href = h, i = null, setTimeout(function() {
URL.revokeObjectURL(h);
}, 4e4);
}
}
function Qe(e, t) {
const r = "🍍 " + e;
typeof __VUE_DEVTOOLS_TOAST__ == "function" ? __VUE_DEVTOOLS_TOAST__(r, t) : t === "error" ? console.error(r) : t === "warn" ? console.warn(r) : console.log(r);
}
function is(e) {
return "_a" in e && "install" in e;
}
function pf() {
if (!("clipboard" in navigator))
return Qe("Your browser doesn't support the Clipboard API", "error"), !0;
}
function hf(e) {
return e instanceof Error && e.message.toLowerCase().includes("document is not focused") ? (Qe('You need to activate the "Emulate a focused page" setting in the "Rendering" panel of devtools.', "warn"), !0) : !1;
}
async function wd(e) {
if (!pf())
try {
await navigator.clipboard.writeText(JSON.stringify(e.state.value)), Qe("Global state copied to clipboard.");
} catch (t) {
if (hf(t))
return;
Qe("Failed to serialize the state. Check the console for more details.", "error"), console.error(t);
}
}
async function Fd(e) {
if (!pf())
try {
df(e, JSON.parse(await navigator.clipboard.readText())), Qe("Global state pasted from clipboard.");
} catch (t) {
if (hf(t))
return;
Qe("Failed to deserialize the state from clipboard. Check the console for more details.", "error"), console.error(t);
}
}
async function bd(e) {
try {
cf(new Blob([JSON.stringify(e.state.value)], {
type: "text/plain;charset=utf-8"
}), "pinia-state.json");
} catch (t) {
Qe("Failed to export the state as JSON. Check the console for more details.", "error"), console.error(t);
}
}
let Dn;
function xd() {
Dn || (Dn = document.createElement("input"), Dn.type = "file", Dn.accept = ".json");
function e() {
return new Promise((t, r) => {
Dn.onchange = async () => {
const i = Dn.files;
if (!i)
return t(null);
const s = i.item(0);
return t(s ? { text: await s.text(), file: s } : null);
}, Dn.oncancel = () => t(null), Dn.onerror = r, Dn.click();
});
}
return e;
}
async function Od(e) {
try {
const r = await xd()();
if (!r)
return;
const { text: i, file: s } = r;
df(e, JSON.parse(i)), Qe(`Global state imported from "${s.name}".`);
} catch (t) {
Qe("Failed to import the state from JSON. Check the console for more details.", "error"), console.error(t);
}
}
function df(e, t) {
for (const r in t) {
const i = e.state.value[r];
i && Object.assign(i, t[r]);
}
}
function Gt(e) {
return {
_custom: {
display: e
}
};
}
const vf = "🍍 Pinia (root)", La = "_root";
function Sd(e) {
return is(e) ? {
id: La,
label: vf
} : {
id: e.$id,
label: e.$id
};
}
function Td(e) {
if (is(e)) {
const r = Array.from(e._s.keys()), i = e._s;
return {
state: r.map((f) => ({
editable: !0,
key: f,
value: e.state.value[f]
})),
getters: r.filter((f) => i.get(f)._getters).map((f) => {
const p = i.get(f);
return {
editable: !1,
key: f,
value: p._getters.reduce((h, v) => (h[v] = p[v], h), {})
};
})
};
}
const t = {
state: Object.keys(e.$state).map((r) => ({
editable: !0,
key: r,
value: e.$state[r]
}))
};
return e._getters && e._getters.length && (t.getters = e._getters.map((r) => ({
editable: !1,
key: r,
value: e[r]
}))), e._customProperties.size && (t.customProperties = Array.from(e._customProperties).map((r) => ({
editable: !0,
key: r,
value: e[r]
}))), t;
}
function Pd(e) {
return e ? Array.isArray(e) ? e.reduce((t, r) => (t.keys.push(r.key), t.operations.push(r.type), t.oldValue[r.key] = r.oldValue, t.newValue[r.key] = r.newValue, t), {
oldValue: {},
keys: [],
operations: [],
newValue: {}
}) : {
operation: Gt(e.type),
key: Gt(e.key),
oldValue: e.oldValue,
newValue: e.newValue
} : {};
}
function Nd(e) {
switch (e) {
case on.direct:
return "mutation";
case on.patchFunction:
return "$patch";
case on.patchObject:
return "$patch";
default:
return "unknown";
}
}
let Nr = !0;
const si = [], ar = "pinia:mutations", st = "pinia", { assign: $d } = Object, pi = (e) => "🍍 " + e;
function Id(e, t) {
sf({
id: "dev.esm.pinia",
label: "Pinia 🍍",
logo: "https://pinia.vuejs.org/logo.svg",
packageName: "pinia",
homepage: "https://pinia.vuejs.org",
componentStateTypes: si,
app: e
}, (r) => {
typeof r.now != "function" && Qe("You seem to be using an outdated version of Vue Devtools. Are you still using the Beta release instead of the stable one? You can find the links at https://devtools.vuejs.org/guide/installation.html."), r.addTimelineLayer({
id: ar,
label: "Pinia 🍍",
color: 15064968
}), r.addInspector({
id: st,
label: "Pinia 🍍",
icon: "storage",
treeFilterPlaceholder: "Search stores",
actions: [
{
icon: "content_copy",
action: () => {
wd(t);
},
tooltip: "Serialize and copy the state"
},
{
icon: "content_paste",
action: async () => {
await Fd(t), r.sendInspectorTree(st), r.sendInspectorState(st);
},
tooltip: "Replace the state with the content of your clipboard"
},
{
icon: "save",
action: () => {
bd(t);
},
tooltip: "Save the state as a JSON file"
},
{
icon: "folder_open",
action: async () => {
await Od(t), r.sendInspectorTree(st), r.sendInspectorState(st);
},
tooltip: "Import the state from a JSON file"
}
],
nodeActions: [
{
icon: "restore",
tooltip: 'Reset the state (with "$reset")',
action: (i) => {
const s = t._s.get(i);
s ? typeof s.$reset != "function" ? Qe(`Cannot reset "${i}" store because it doesn't have a "$reset" method implemented.`, "warn") : (s.$reset(), Qe(`Store "${i}" reset.`)) : Qe(`Cannot reset "${i}" store because it wasn't found.`, "warn");
}
}
]
}), r.on.inspectComponent((i, s) => {
const f = i.componentInstance && i.componentInstance.proxy;
if (f && f._pStores) {
const p = i.componentInstance.proxy._pStores;
Object.values(p).forEach((h) => {
i.instanceData.state.push({
type: pi(h.$id),
key: "state",
editable: !0,
value: h._isOptionsAPI ? {
_custom: {
value: Mr(h.$state),
actions: [
{
icon: "restore",
tooltip: "Reset the state of this store",
action: () => h.$reset()
}
]
}
} : (
// NOTE: workaround to unwrap transferred refs
Object.keys(h.$state).reduce((v, g) => (v[g] = h.$state[g], v), {})
)
}), h._getters && h._getters.length && i.instanceData.state.push({
type: pi(h.$id),
key: "getters",
editable: !1,
value: h._getters.reduce((v, g) => {
try {
v[g] = h[g];
} catch (B) {
v[g] = B;
}
return v;
}, {})
});
});
}
}), r.on.getInspectorTree((i) => {
if (i.app === e && i.inspectorId === st) {
let s = [t];
s = s.concat(Array.from(t._s.values())), i.rootNodes = (i.filter ? s.filter((f) => "$id" in f ? f.$id.toLowerCase().includes(i.filter.toLowerCase()) : vf.toLowerCase().includes(i.filter.toLowerCase())) : s).map(Sd);
}
}), r.on.getInspectorState((i) => {
if (i.app === e && i.inspectorId === st) {
const s = i.nodeId === La ? t : t._s.get(i.nodeId);
if (!s)
return;
s && (i.state = Td(s));
}
}), r.on.editInspectorState((i, s) => {
if (i.app === e && i.inspectorId === st) {
const f = i.nodeId === La ? t : t._s.get(i.nodeId);
if (!f)
return Qe(`store "${i.nodeId}" not found`, "error");
const { path: p } = i;
is(f) ? p.unshift("state") : (p.length !== 1 || !f._customProperties.has(p[0]) || p[0] in f.$state) && p.unshift("$state"), Nr = !1, i.set(f, p, i.state.value), Nr = !0;
}
}), r.on.editComponentState((i) => {
if (i.type.startsWith("🍍")) {
const s = i.type.replace(/^🍍\s*/, ""), f = t._s.get(s);
if (!f)
return Qe(`store "${s}" not found`, "error");
const { path: p } = i;
if (p[0] !== "state")
return Qe(`Invalid path for store "${s}":
${p}
Only state can be modified.`);
p[0] = "$state", Nr = !1, i.set(f, p, i.state.value), Nr = !0;
}
});
});
}
function kd(e, t) {
si.includes(pi(t.$id)) || si.push(pi(t.$id)), sf({
id: "dev.esm.pinia",
label: "Pinia 🍍",
logo: "https://pinia.vuejs.org/logo.svg",
packageName: "pinia",
homepage: "https://pinia.vuejs.org",
componentStateTypes: si,
app: e,
settings: {
logStoreChanges: {
label: "Notify about new/deleted stores",
type: "boolean",
defaultValue: !0
}
// useEmojis: {
// label: 'Use emojis in messages ⚡️',
// type: 'boolean',
// defaultValue: true,
// },
}
}, (r) => {
const i = typeof r.now == "function" ? r.now.bind(r) : Date.now;
t.$onAction(({ after: p, onError: h, name: v, args: g }) => {
const B = gf++;
r.addTimelineEvent({
layerId: ar,
event: {
time: i(),
title: "🛫 " + v,
subtitle: "start",
data: {
store: Gt(t.$id),
action: Gt(v),
args: g
},
groupId: B
}
}), p((E) => {
kn = void 0, r.addTimelineEvent({
layerId: ar,
event: {
time: i(),
title: "🛬 " + v,
subtitle: "end",
data: {
store: Gt(t.$id),
action: Gt(v),
args: g,
result: E
},
groupId: B
}
});
}), h((E) => {
kn = void 0, r.addTimelineEvent({
layerId: ar,
event: {
time: i(),
logType: "error",
title: "💥 " + v,
subtitle: "end",
data: {
store: Gt(t.$id),
action: Gt(v),
args: g,
error: E
},
groupId: B
}
});
});
}, !0), t._customProperties.forEach((p) => {
Qa(() => ue(t[p]), (h, v) => {
r.notifyComponentUpdate(), r.sendInspectorState(st), Nr && r.addTimelineEvent({
layerId: ar,
event: {
time: i(),
title: "Change",
subtitle: p,
data: {
newValue: h,
oldValue: v
},
groupId: kn
}
});
}, { deep: !0 });
}), t.$subscribe(({ events: p, type: h }, v) => {
if (r.notifyComponentUpdate(), r.sendInspectorState(st), !Nr)
return;
const g = {
time: i(),
title: Nd(h),
data: $d({ store: Gt(t.$id) }, Pd(p)),
groupId: kn
};
h === on.patchFunction ? g.subtitle = "⤵️" : h === on.patchObject ? g.subtitle = "🧩" : p && !Array.isArray(p) && (g.subtitle = p.type), p && (g.data["rawEvent(s)"] = {
_custom: {
display: "DebuggerEvent",
type: "object",
tooltip: "raw DebuggerEvent[]",
value: p
}
}), r.addTimelineEvent({
layerId: ar,
event: g
});
}, { detached: !0, flush: "sync" });
const s = t._hotUpdate;
t._hotUpdate = or((p) => {
s(p), r.addTimelineEvent({
layerId: ar,
event: {
time: i(),
title: "🔥 " + t.$id,
subtitle: "HMR update",
data: {
store: Gt(t.$id),
info: Gt("HMR update")
}
}
}), r.notifyComponentUpdate(), r.sendInspectorTree(st), r.sendInspectorState(st);
});
const { $dispose: f } = t;
t.$dispose = () => {
f(), r.notifyComponentUpdate(), r.sendInspectorTree(st), r.sendInspectorState(st), r.getSettings().logStoreChanges && Qe(`Disposed "${t.$id}" store 🗑`);
}, r.notifyComponentUpdate(), r.sendInspectorTree(st), r.sendInspectorState(st), r.getSettings().logStoreChanges && Qe(`"${t.$id}" store installed 🆕`);
});
}
let gf = 0, kn;
function Qo(e, t, r) {
const i = t.reduce((s, f) => (s[f] = Mr(e)[f], s), {});
for (const s in i)
e[s] = function() {
const f = gf, p = r ? new Proxy(e, {
get(...v) {
return kn = f, Reflect.get(...v);
},
set(...v) {
return kn = f, Reflect.set(...v);
}
}) : e;
kn = f;
const h = i[s].apply(p, arguments);
return kn = void 0, h;
};
}
function Rd({ app: e, store: t, options: r }) {
if (t.$id.startsWith("__hot:"))
return;
t._isOptionsAPI = !!r.state, Qo(t, Object.keys(r.actions), t._isOptionsAPI);
const i = t._hotUpdate;
Mr(t)._hotUpdate = function(s) {
i.apply(this, arguments), Qo(t, Object.keys(s._hmrPayload.actions), !!t._isOptionsAPI);
}, kd(
e,
// FIXME: is there a way to allow the assignment from Store<Id, S, G, A> to StoreGeneric?
t
);
}
function jd() {
const e = Zl(!0), t = e.run(() => Be({}));
let r = [], i = [];
const s = or({
install(f) {
jr(s), s._a = f, f.provide(of, s), f.config.globalProperties.$pinia = s, du && Id(f, s), i.forEach((p) => r.push(p)), i = [];
},
use(f) {
return !this._a && !uf ? i.push(f) : r.push(f), this;
},
_p: r,
// it's actually undefined here
// @ts-expect-error
_a: null,
_e: e,
_s: /* @__PURE__ */ new Map(),
state: t
});
return du && typeof Proxy < "u" && s.use(Rd), s;
}
function Df(e, t) {
for (const r in t) {
const i = t[r];
if (!(r in e))
continue;
const s = e[r];
cr(s) && cr(i) && !gu(i) && !es(i) ? e[r] = Df(s, i) : e[r] = i;
}
return e;
}
const mf = () => {
};
function el(e, t, r, i = mf) {
e.push(t);
const s = () => {
const f = e.indexOf(t);
f > -1 && (e.splice(f, 1), i());
};
return !r && Qh() && ed(s), s;
}
function Sr(e, ...t) {
e.slice().forEach((r) => {
r(...t);
});
}
const Ld = (e) => e();
function Ma(e, t) {
e instanceof Map && t instanceof Map && t.forEach((r, i) => e.set(i, r)), e instanceof Set && t instanceof Set && t.forEach(e.add, e);
for (const r in t) {
if (!t.hasOwnProperty(r))
continue;
const i = t[r], s = e[r];
cr(s) && cr(i) && e.hasOwnProperty(r) && !gu(i) && !es(i) ? e[r] = Ma(s, i) : e[r] = i;
}
return e;
}
const Md = process.env.NODE_ENV !== "production" ? Symbol("pinia:skipHydration") : (
/* istanbul ignore next */
Symbol()
);
function zd(e) {
return !cr(e) || !e.hasOwnProperty(Md);
}
const { assign: It } = Object;
function tl(e) {
return !!(gu(e) && e.effect);
}
function nl(e, t, r, i) {
const { state: s, actions: f, getters: p } = t, h = r.state.value[e];
let v;
function g() {
!h && (process.env.NODE_ENV === "production" || !i) && (r.state.value[e] = s ? s() : {});
const B = process.env.NODE_ENV !== "production" && i ? (
// use ref() to unwrap refs inside state TODO: check if this is still necessary
Jo(Be(s ? s() : {}).value)
) : Jo(r.state.value[e]);
return It(B, f, Object.keys(p || {}).reduce((E, C) => (process.env.NODE_ENV !== "production" && C in B && console.warn(`[🍍]: A getter cannot have the same name as another state property. Rename one of them. Found with "${C}" in store "${e}".`), E[C] = or(lr(() => {
jr(r);
const P = r._s.get(e);
return p[C].call(P, P);
})), E), {}));
}
return v = za(e, g, t, r, i, !0), v;
}
function za(e, t, r = {}, i, s, f) {
let p;
const h = It({ actions: {} }, r);
if (process.env.NODE_ENV !== "production" && !i._e.active)
throw new Error("Pinia destroyed");
const v = {
deep: !0
// flush: 'post',
};
process.env.NODE_ENV !== "production" && !uf && (v.onTrigger = (N) => {
g ? P = N : g == !1 && !T._hotUpdating && (Array.isArray(P) ? P.push(N) : console.error("🍍 debuggerEvents should be an array. This is most likely an internal Pinia bug."));
});
let g, B, E = [], C = [], P;
const w = i.state.value[e];
!f && !w && (process.env.NODE_ENV === "production" || !s) && (i.state.value[e] = {});
const _ = Be({});
let R;
function z(N) {
let V;
g = B = !1, process.env.NODE_ENV !== "production" && (P = []), typeof N == "function" ? (N(i.state.value[e]), V = {
type: on.patchFunction,
storeId: e,
events: P
}) : (Ma(i.state.value[e], N), V = {
type: on.patchObject,
payload: N,
storeId: e,
events: P
});
const X = R = Symbol();
fi().then(() => {
R === X && (g = !0);
}), B = !0, Sr(E, V, i.state.value[e]);
}
const q = f ? function() {
const { state: V } = r, X = V ? V() : {};
this.$patch((ae) => {
It(ae, X);
});
} : (
/* istanbul ignore next */
process.env.NODE_ENV !== "production" ? () => {
throw new Error(`🍍: Store "${e}" is built using the setup syntax and does not implement $reset().`);
} : mf
);
function S() {
p.stop(), E = [], C = [], i._s.delete(e);
}
function O(N, V) {
return function() {
jr(i);
const X = Array.from(arguments), ae = [], de = [];
function _e(Se) {
ae.push(Se);
}
function nt(Se) {
de.push(Se);
}
Sr(C, {
args: X,
name: N,
store: T,
after: _e,
onError: nt
});
let Pe;
try {
Pe = V.apply(this && this.$id === e ? this : T, X);
} catch (Se) {
throw Sr(de, Se), Se;
}
return Pe instanceof Promise ? Pe.then((Se) => (Sr(ae, Se), Se)).catch((Se) => (Sr(de, Se), Promise.reject(Se))) : (Sr(ae, Pe), Pe);
};
}
const k = /* @__PURE__ */ or({
actions: {},
getters: {},
state: [],
hotState: _
}), L = {
_p: i,
// _s: scope,
$id: e,
$onAction: el.bind(null, C),
$patch: z,
$reset: q,
$subscribe(N, V = {}) {
const X = el(E, N, V.detached, () => ae()), ae = p.run(() => Qa(() => i.state.value[e], (de) => {
(V.flush === "sync" ? B : g) && N({
storeId: e,
type: on.direct,
events: P
}, de);
}, It({}, v, V)));
return X;
},
$dispose: S
}, T = Zh(process.env.NODE_ENV !== "production" || du ? It(
{
_hmrPayload: k,
_customProperties: or(/* @__PURE__ */ new Set())
// devtools custom properties
},
L
// must be added later
// setupStore
) : L);
i._s.set(e, T);
const W = i._a && i._a.runWithContext || Ld, Y = i._e.run(() => (p = Zl(), W(() => p.run(t))));
for (const N in Y) {
const V = Y[N];
if (gu(V) && !tl(V) || es(V))
process.env.NODE_ENV !== "production" && s ? ri(_.value, N, Aa(Y, N)) : f || (w && zd(V) && (gu(V) ? V.value = w[N] : Ma(V, w[N])), i.state.value[e][N] = V), process.env.NODE_ENV !== "production" && k.state.push(N);
else if (typeof V == "function") {
const X = process.env.NODE_ENV !== "production" && s ? V : O(N, V);
Y[N] = X, process.env.NODE_ENV !== "production" && (k.actions[N] = V), h.actions[N] = V;
} else
process.env.NODE_ENV !== "production" && tl(V) && (k.getters[N] = f ? (
// @ts-expect-error
r.getters[N]
) : V, yi && (Y._getters || // @ts-expect-error: same
(Y._getters = or([]))).push(N));
}
if (It(T, Y), It(Mr(T), Y), Object.defineProperty(T, "$state", {
get: () => process.env.NODE_ENV !== "production" && s ? _.value : i.state.value[e],
set: (N) => {
if (process.env.NODE_ENV !== "production" && s)
throw new Error("cannot set hotState");
z((V) => {
It(V, N);
});
}
}), process.env.NODE_ENV !== "production" && (T._hotUpdate = or((N) => {
T._hotUpdating = !0, N._hmrPayload.state.forEach((V) => {
if (V in T.$state) {
const X = N.$state[V], ae = T.$state[V];
typeof X == "object" && cr(X) && cr(ae) ? Df(X, ae) : N.$state[V] = ae;
}
ri(T, V, Aa(N.$state, V));
}), Object.keys(T.$state).forEach((V) => {
V in N.$state || Ea(T, V);
}), g = !1, B = !1, i.state.value[e] = Aa(N._hmrPayload, "hotState"), B = !0, fi().then(() => {
g = !0;
});
for (const V in N._hmrPayload.actions) {
const X = N[V];
ri(T, V, O(V, X));
}
for (const V in N._hmrPayload.getters) {
const X = N._hmrPayload.getters[V], ae = f ? (
// special handling of options api
lr(() => (jr(i), X.call(T, T)))
) : X;
ri(T, V, ae);
}
Object.keys(T._hmrPayload.getters).forEach((V) => {
V in N._hmrPayload.getters || Ea(T, V);
}), Object.keys(T._hmrPayload.actions).forEach((V) => {
V in N._hmrPayload.actions || Ea(T, V);
}), T._hmrPayload = N._hmrPayload, T._getters = N._getters, T._hotUpdating = !1;
})), du) {
const N = {
writable: !0,
configurable: !0,
// avoid warning on devtools trying to display this property
enumerable: !1
};
["_p", "_hmrPayload", "_getters", "_customProperties"].forEach((V) => {
Object.defineProperty(T, V, It({ value: T[V] }, N));
});
}
return i._p.forEach((N) => {
if (du) {
const V = p.run(() => N({
store: T,
app: i._a,
pinia: i,
options: h
}));
Object.keys(V || {}).forEach((X) => T._customProperties.add(X)), It(T, V);
} else
It(T, p.run(() => N({
store: T,
app: i._a,
pinia: i,
options: h
})));
}), process.env.NODE_ENV !== "production" && T.$state && typeof T.$state == "object" && typeof T.$state.constructor == "function" && !T.$state.constructor.toString().includes("[native code]") && console.warn(`[🍍]: The "state" must be a plain object. It cannot be
state: () => new MyClass()
Found in store "${T.$id}".`), w && f && r.hydrate && r.hydrate(T.$state, w), g = !0, B = !0, T;
}
function Vd(e, t, r) {
let i, s;
const f = typeof t == "function";
if (typeof e == "string")
i = e, s = f ? r : t;
else if (s = e, i = e.id, process.env.NODE_ENV !== "production" && typeof i != "string")
throw new Error('[🍍]: "defineStore()" must be passed a store id as its first argument.');
function p(h, v) {
const g = Jh();
if (h = // in test mode, ignore the argument provided as we can always retrieve a
// pinia instance with getActivePinia()
(process.env.NODE_ENV === "test" && pu && pu._testing ? null : h) || (g ? Ql(of, null) : null), h && jr(h), process.env.NODE_ENV !== "production" && !pu)
throw new Error(`[🍍]: "getActivePinia()" was called but there was no active Pinia. Did you forget to install pinia?
const pinia = createPinia()
app.use(pinia)
This will fail in production.`);
h = pu, h._s.has(i) || (f ? za(i, t, s, h) : nl(i, s, h), process.env.NODE_ENV !== "production" && (p._pinia = h));
const B = h._s.get(i);
if (process.env.NODE_ENV !== "production" && v) {
const E = "__hot:" + i, C = f ? za(E, t, s, h, !0) : nl(E, It({}, s), h, !0);
v._hotUpdate(C), delete h.state.value[E], h._s.delete(E);
}
if (process.env.NODE_ENV !== "production" && yi) {
const E = Xh();
if (E && E.proxy && // avoid adding stores that are just built for hot module replacement
!v) {
const C = E.proxy, P = "_pStores" in C ? C._pStores : C._pStores = {};
P[i] = B;
}
}
return B;
}
return p.$id = i, p;
}
function Va(e, t, r, i, s) {
const f = t === void 0 ? void 0 : t.key;
return { sel: e, data: t, children: r, text: i, elm: s, key: f };
}
const rl = Array.isArray;
function Ba(e) {
return typeof e == "string" || typeof e == "number" || e instanceof String || e instanceof Number;
}
function Cf(e, t, r) {
if (e.ns = "http://www.w3.org/2000/svg", r !== "foreignObject" && t !== void 0)
for (let i = 0; i < t.length; ++i) {
const s = t[i];
if (typeof s == "string")
continue;
const f = s.data;
f !== void 0 && Cf(f, s.children, s.sel);
}
}
function ul(e, t, r) {
let i = {}, s, f, p;
if (r !== void 0 ? (t !== null && (i = t), rl(r) ? s = r : Ba(r) ? f = r.toString() : r && r.sel && (s = [r])) : t != null && (rl(t) ? s = t : Ba(t) ? f = t.toString() : t && t.sel ? s = [t] : i = t), s !== void 0)
for (p = 0; p < s.length; ++p)
Ba(s[p]) && (s[p] = Va(void 0, void 0, void 0, s[p], void 0));
return e[0] === "s" && e[1] === "v" && e[2] === "g" && (e.length === 3 || e[3] === "." || e[3] === "#") && Cf(i, s, e), Va(e, i, s, f, void 0);
}
function yf(e, t) {
for (const r of e)
r != null && r !== !1 && r !== "" && (Array.isArray(r) ? yf(r, t) : typeof r == "string" || typeof r == "number" || typeof r == "boolean" ? t.push(Va(void 0, void 0, void 0, String(r), void 0)) : t.push(r));
return t;
}
function Q(e, t, ...r) {
const i = yf(r, []);
return typeof e == "function" ? e(t, i) : i.length === 1 && !i[0].sel && i[0].text ? ul(e, t, i[0].text) : ul(e, t, i);
}
Q || (Q = {});
function kr(e) {
if (e)
return {
emit: e.emit,
off: e.off,
on: e.on,
once: e.once
};
}
var ht = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
function Au(e) {
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
}
var Af = "Expected a function", il = 0 / 0, qd = "[object Symbol]", Hd = /^\s+|\s+$/g, Ud = /^[-+]0x[0-9a-f]+$/i, Wd = /^0b[01]+$/i, Gd = /^0o[0-7]+$/i, Kd = parseInt, Yd = typeof ht == "object" && ht && ht.Object === Object && ht, Jd = typeof self == "object" && self && self.Object === Object && self, Xd = Yd || Jd || Function("return this")(), Zd = Object.prototype, Qd = Zd.toString, ev = Math.max, tv = Math.min, _a = function() {
return Xd.Date.now();
};
function nv(e, t, r) {
var i, s, f, p, h, v, g = 0, B = !1, E = !1, C = !0;
if (typeof e != "function")
throw new TypeError(Af);
t = al(t) || 0, hi(r) && (B = !!r.leading, E = "maxWait" in r, f = E ? ev(al(r.maxWait) || 0, t) : f, C = "trailing" in r ? !!r.trailing : C);
function P(L) {
var T = i, W = s;
return i = s = void 0, g = L, p = e.apply(W, T), p;
}
function w(L) {
return g = L, h = setTimeout(z, t), B ? P(L) : p;
}
function _(L) {
var T = L - v, W = L - g, Y = t - T;
return E ? tv(Y, f - W) : Y;
}
function R(L) {
var T = L - v, W = L - g;
return v === void 0 || T >= t || T < 0 || E && W >= f;
}
function z() {
var L = _a();
if (R(L))
return q(L);
h = setTimeout(z, _(L));
}
function q(L) {
return h = void 0, C && i ? P(L) : (i = s = void 0, p);
}
function S() {
h !== void 0 && clearTimeout(h), g = 0, i = v = s = h = void 0;
}
function O() {
return h === void 0 ? p : q(_a());
}
function k() {
var L = _a(), T = R(L);
if (i = arguments, s = this, v = L, T) {
if (h === void 0)
return w(v);
if (E)
return h = setTimeout(z, t), P(v);
}
return h === void 0 && (h = setTimeout(z, t)), p;
}
return k.cancel = S, k.flush = O, k;
}
function rv(e, t, r) {
var i = !0, s = !0;
if (typeof e != "function")
throw new TypeError(Af);
return hi(r) && (i = "leading" in r ? !!r.leading : i, s = "trailing" in r ? !!r.trailing : s), nv(e, t, {
leading: i,
maxWait: t,
trailing: s
});
}
function hi(e) {
var t = typeof e;
return !!e && (t == "object" || t == "function");
}
function uv(e) {
return !!e && typeof e == "object";
}
function iv(e) {
return typeof e == "symbol" || uv(e) && Qd.call(e) == qd;
}
function al(e) {
if (typeof e == "number")
return e;
if (iv(e))
return il;
if (hi(e)) {
var t = typeof e.valueOf == "function" ? e.valueOf() : e;
e = hi(t) ? t + "" : t;
}
if (typeof e != "string")
return e === 0 ? e : +e;
e = e.replace(Hd, "");
var r = Wd.test(e);
return r || Gd.test(e) ? Kd(e.slice(2), r ? 2 : 8) : Ud.test(e) ? il : +e;
}
var av = rv;
const zr = /* @__PURE__ */ Au(av);
function sl(e, t) {
kt.withoutNormalizing(e, () => {
const r = kt.start(e, t), i = kt.end(e, t);
sn.insertText(e, " ", { at: r }), sn.insertText(e, " ", {
at: { path: i.path, offset: i.offset + 1 }
}), sn.select(e, {
anchor: { path: r.path, offset: r.offset + 1 },
focus: { path: i.path, offset: i.offset + 1 }
});
});
}
function sv(e, t) {
kt.withoutNormalizing(e, () => {
const r = kt.before(e, t), i = kt.after(e, t);
if (!r || !i)
return;
const s = {
anchor: { path: r.path, offset: r.offset - 1 },
focus: { path: r.path, offset: r.offset }
}, f = {
anchor: { path: i.path, offset: i.offset },
focus: { path: i.path, offset: i.offset + 1 }
};
kt.string(e, s) === " " && sn.delete(e, { at: s }), kt.string(e, f) === " " && sn.delete(e, { at: f });
});
}
function Ef(e, t) {
return zr((r) => {
r.preventDefault();
const i = Re.findPath(e, t);
sn.delete(e, { at: i });
});
}
function Eu(e, t) {
return zr((r) => {
r.preventDefault();
const i = Re.findPath(e, t);
sv(e, i), sn.unwrapNodes(e, { at: i });
});
}
function Vr(e, t) {
return zr((r) => {
r.preventDefault(), e.isFocused() || e.focus(), e.select(Re.findPath(e, t)), kr(e).emit("ssml-remark-click", e, t);
});
}
const qa = {
"200ms": "换气",
"500ms": "0.5s",
"1000ms": "1s",
"2000ms": "2s"
}, ov = Object.entries(qa).map(([e, t]) => ({ value: e, label: t }));
function lv(e) {
if (e in qa)
return qa[e];
const t = parseInt(e);
return isNaN(t) ? e : `${(t / 1e3).toFixed(1)}s`;
}
const fv = {
type: "ssml-break",
renderElem: (e, t, r) => {
const i = e, s = lv((i == null ? void 0 : i.time) || "");
return /* @__PURE__ */ Q("span", { className: "ssml-wrapper", contentEditable: "false" }, /* @__PURE__ */ Q(
"span",
{
className: "remark",
style: { "background-color": "var(--ssml-break)" },
on: {
mousedown: (f) => f.preventDefault(),
click: [Vr(r, i)]
}
},
/* @__PURE__ */ Q(
"span",
{
className: "iconfont icon-roundclosefill",
on: { click: [Ef(r, i)] }
}
),
/* @__PURE__ */ Q("span", { className: "data-content", attrs: { "data-content": s } })
), /* @__PURE__ */ Q("span", { className: "iconfont icon-tingdun", style: { color: "var(--ssml-break)" } }));
}
}, Rt = {
type: "ssml-break",
elTypeAttrName: "data-w-e-type",
timeAttrName: "time",
strengthAttrName: "data-strength"
}, cv = (e) => {
const { isInline: t, isVoid: r } = e, i = e;
return i.isInline = (s) => Re.getNodeType(s) === Rt.type ? !0 : t(s), i.isVoid = (s) => Re.getNodeType(s) === Rt.type ? !0 : r(s), i;
}, pv = {
type: Rt.type,
elemToHtml: (e) => {
const { time: t = "", strength: r } = e, i = `${Rt.elTypeAttrName}="${Rt.type}"`, s = t ? ` ${Rt.timeAttrName}="${t}"` : "", f = r ? ` ${Rt.strengthAttrName}="${r}"` : "";
return `<span ${i}${s}${f} data-w-e-is-void data-w-e-is-inline></span>`;
}
}, hv = {
selector: `span[${Rt.elTypeAttrName}="${Rt.type}"]`,
parseElemHtml: (e) => {
const t = e.getAttribute(Rt.strengthAttrName) || "", r = e.getAttribute(Rt.timeAttrName) || "";
return {
type: Rt.type,
time: r,
strength: t,
children: [{ text: "" }]
};
}
}, dv = {
editorPlugin: cv,
elemsToHtml: [pv],
parseElemsHtml: [hv],
renderElems: [fv]
};
var di = { exports: {} };
/**
* @license
* lodash 3.10.1 (Custom Build) <https://lodash.com/>
* Build: `lodash modern -d -o ./index.js`
* Copyright 2012-2015 The Dojo Foundation <http://dojofoundation.org/>
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
* Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
* Available under MIT license <https://lodash.com/license>
*/
di.exports;
(function(e, t) {
(function() {
var r, i = "3.10.1", s = 1, f = 2, p = 4, h = 8, v = 16, g = 32, B = 64, E = 128, C = 256, P = 30, w = "...", _ = 150, R = 16, z = 200, q = 1, S = 2, O = "Expected a function", k = "__lodash_placeholder__", L = "[object Arguments]", T = "[object Array]", W = "[object Boolean]", Y = "[object Date]", N = "[object Error]", V = "[object Function]", X = "[object Map]", ae = "[object Number]", de = "[object Object]", _e = "[object RegExp]", nt = "[object Set]", Pe = "[object String]", Se = "[object WeakMap]", Ue = "[object ArrayBuffer]", Ot = "[object Float32Array]", _t = "[object Float64Array]", Je = "[object Int8Array]", le = "[object Int16Array]", he = "[object Int32Array]", Ve = "[object Uint8Array]", Ne = "[object Uint8ClampedArray]", gt = "[object Uint16Array]", rt = "[object Uint32Array]", Dt = /\b__p \+= '';/g, fn = /\b(__p \+=) '' \+/g, Mn = /(__e\(.*?\)|\b__t\)) \+\n'';/g, _n = /&(?:amp|lt|gt|quot|#39|#96);/g, wn = /[&<>"'`]/g, Hr = RegExp(_n.source), Ur = RegExp(wn.source), Wr = /<%-([\s\S]+?)%>/g, Gr = /<%([\s\S]+?)%>/g, zn = /<%=([\s\S]+?)%>/g, Kr = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\n\\]|\\.)*?\1)\]/, Yt = /^\w*$/, cn = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\n\\]|\\.)*?)\2)\]/g, mt = /^[:!,]|[\\^$.*+?()[\]{}|\/]|(^[0-9a-fA-Fnrtuvx])|([\n\r\u2028\u2029])/g, Ct = RegExp(mt.source), Vn = /[\u0300-\u036f\ufe20-\ufe23]/g, St = /\\(\\)?/g, Jt = /\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g, qn = /\w*$/, wt = /^0[xX]/, pn = /^\[object .+?Constructor\]$/, Hn = /^\d+$/, Tt = /[\xc0-\xd6\xd8-\xde\xdf-\xf6\xf8-\xff]/g, hn = /($^)/, Dr = /['\n\r\u2028\u2029\\]/g, Un = function() {
var $ = "[A-Z\\xc0-\\xd6\\xd8-\\xde]", G = "[a-z\\xdf-\\xf6\\xf8-\\xff]+";
return RegExp($ + "+(?=" + $ + G + ")|" + $ + "?" + G + "|" + $ + "+|[0-9]+", "g");
}(), Yr = [
"Array",
"ArrayBuffer",
"Date",
"Error",
"Float32Array",
"Float64Array",
"Function",
"Int8Array",
"Int16Array",
"Int32Array",
"Math",
"Number",
"Object",
"RegExp",
"Set",
"String",
"_",
"clearTimeout",
"isFinite",
"parseFloat",
"parseInt",
"setTimeout",
"TypeError",
"Uint8Array",
"Uint8ClampedArray",
"Uint16Array",
"Uint32Array",
"WeakMap"
], Lt = -1, ve = {};
ve[Ot] = ve[_t] = ve[Je] = ve[le] = ve[he] = ve[Ve] = ve[Ne] = ve[gt] = ve[rt] = !0, ve[L] = ve[T] = ve[Ue] = ve[W] = ve[Y] = ve[N] = ve[V] = ve[X] = ve[ae] = ve[de] = ve[_e] = ve[nt] = ve[Pe] = ve[Se] = !1;
var ye = {};
ye[L] = ye[T] = ye[Ue] = ye[W] = ye[Y] = ye[Ot] = ye[_t] = ye[Je] = ye[le] = ye[he] = ye[ae] = ye[de] = ye[_e] = ye[Pe] = ye[Ve] = ye[Ne] = ye[gt] = ye[rt] = !0, ye[N] = ye[V] = ye[X] = ye[nt] = ye[Se] = !1;
var mr = {
À: "A",
Á: "A",
Â: "A",
Ã: "A",
Ä: "A",
Å: "A",
à: "a",
á: "a",
â: "a",
ã: "a",
ä: "a",
å: "a",
Ç: "C",
ç: "c",
Ð: "D",
ð: "d",
È: "E",
É: "E",
Ê: "E",
Ë: "E",
è: "e",
é: "e",
ê: "e",
ë: "e",
Ì: "I",
Í: "I",
Î: "I",
Ï: "I",
ì: "i",
í: "i",
î: "i",
ï: "i",
Ñ: "N",
ñ: "n",
Ò: "O",
Ó: "O",
Ô: "O",
Õ: "O",
Ö: "O",
Ø: "O",
ò: "o",
ó: "o",
ô: "o",
õ: "o",
ö: "o",
ø: "o",
Ù: "U",
Ú: "U",
Û: "U",
Ü: "U",
ù: "u",
ú: "u",
û: "u",
ü: "u",
Ý: "Y",
ý: "y",
ÿ: "y",
Æ: "Ae",
æ: "ae",
Þ: "Th",
þ: "th",
ß: "ss"
}, Jr = {
"&": "&",
"<": "<",
">": ">",
'"': """,
"'": "'",
"`": "`"
}, _u = {
"&": "&",
"<": "<",
">": ">",
""": '"',
"'": "'",
"`": "`"
}, Fn = {
function: !0,
object: !0
}, Ei = {
0: "x30",
1: "x31",
2: "x32",
3: "x33",
4: "x34",
5: "x35",
6: "x36",
7: "x37",
8: "x38",
9: "x39",
A: "x41",
B: "x42",
C: "x43",
D: "x44",
E: "x45",
F: "x46",
a: "x61",
b: "x62",
c: "x63",
d: "x64",
e: "x65",
f: "x66",
n: "x6e",
r: "x72",
t: "x74",
u: "x75",
v: "x76",
x: "x78"
}, Xt = {
"\\": "\\",
"'": "'",
"\n": "n",
"\r": "r",
"\u2028": "u2028",
"\u2029": "u2029"
}, Wn = t && !t.nodeType && t, Gn = e && !e.nodeType && e, Bi = Wn && Gn && typeof ht == "object" && ht && ht.Object && ht, _i = Fn[typeof self] && self && self.Object && self, wu = Fn[typeof window] && window && window.Object && window, Mt = Gn && Gn.exports === Wn && Wn, zt = Bi || wu !== (this && this.window) && wu || _i || this;
function Xr($, G) {
if ($ !== G) {
var ie = $ === null, ge = $ === r, De = $ === $, Me = G === null, Pt = G === r, Ye = G === G;
if ($ > G && !Me || !De || ie && !Pt && Ye || ge && Ye)
return 1;
if ($ < G && !ie || !Ye || Me && !ge && De || Pt && De)
return -1;
}
return 0;
}
function Fu($, G, ie) {
for (var ge = $.length, De = ie ? ge : -1; ie ? De-- : ++De < ge; )
if (G($[De], De, $))
return De;
return -1;
}
function bn($, G, ie) {
if (G !== G)
return Ou($, ie);
for (var ge = ie - 1, De = $.length; ++ge < De; )
if ($[ge] === G)
return ge;
return -1;
}
function wi($) {
return typeof $ == "function" || !1;
}
function we($) {
return $ == null ? "" : $ + "";
}
function bu($, G) {
for (var ie = -1, ge = $.length; ++ie < ge && G.indexOf($.charAt(ie)) > -1; )
;
return ie;
}
function xu($, G) {
for (var ie = $.length; ie-- && G.indexOf($.charAt(ie)) > -1; )
;
return ie;
}
function Fi($, G) {
return Xr($.criteria, G.criteria) || $.index - G.index;
}
function bi($, G, ie) {
for (var ge = -1, De = $.criteria, Me = G.criteria, Pt = De.length, Ye = ie.length; ++ge < Pt; ) {
var Nt = Xr(De[ge], Me[ge]);
if (Nt) {
if (ge >= Ye)
return Nt;
var Yn = ie[ge];
return Nt * (Yn === "asc" || Yn === !0 ? 1 : -1);
}
}
return $.index - G.index;
}
function xi($) {
return mr[$];
}
function xn($) {
return Jr[$];
}
function Oi($, G, ie) {
return G ? $ = Ei[$] : ie && ($ = Xt[$]), "\\" + $;
}
function Si($) {
return "\\" + Xt[$];
}
function Ou($, G, ie) {
for (var ge = $.length, De = G + (ie ? 0 : -1); ie ? De-- : ++De < ge; ) {
var Me = $[De];
if (Me !== Me)
return De;
}
return -1;
}
function We($) {
return !!$ && typeof $ == "object";
}
function Su($) {
return $ <= 160 && $ >= 9 && $ <= 13 || $ == 32 || $ == 160 || $ == 5760 || $ == 6158 || $ >= 8192 && ($ <= 8202 || $ == 8232 || $ == 8233 || $ == 8239 || $ == 8287 || $ == 12288 || $ == 65279);
}
function On($, G) {
for (var ie = -1, ge = $.length, De = -1, Me = []; ++ie < ge; )
$[ie] === G && ($[ie] = k, Me[++De] = ie);
return Me;
}
function Zr($, G) {
for (var ie, ge = -1, De = $.length, Me = -1, Pt = []; ++ge < De; ) {
var Ye = $[ge], Nt = G ? G(Ye, ge, $) : Ye;
(!ge || ie !== Nt) && (ie = Nt, Pt[++Me] = Ye);
}
return Pt;
}
function Tu($) {
for (var G = -1, ie = $.length; ++G < ie && Su($.charCodeAt(G)); )
;
return G;
}
function Kn($) {
for (var G = $.length; G-- && Su($.charCodeAt(G)); )
;
return G;
}
function Qr($) {
return _u[$];
}
function Pu($) {
$ = $ ? Vt.defaults(zt.Object(), $, Vt.pick(zt, Yr)) : zt;
var G = $.Array, ie = $.Date, ge = $.Error, De = $.Function, Me = $.Math, Pt = $.Number, Ye = $.Object, Nt = $.RegExp, Yn = $.String, yt = $.TypeError, Nu = G.prototype, eu = Ye.prototype, Ti = Yn.prototype, $u = De.prototype.toString, $e = eu.hasOwnProperty, tu = 0, ft = eu.toString, Pi = zt._, Iu = Nt(
"^" + $u.call($e).replace(/[\\^$.*+?()[\]{}|]/g, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
), Ni = $.ArrayBuffer, Jn = $.clearTimeout, $i = $.parseFloat, ku = Me.pow, Ii = eu.propertyIsEnumerable, Ru = br($, "Set"), Cr = $.setTimeout, yr = Nu.splice, ju = $.Uint8Array, Lu = br($, "WeakMap"), Ar = Me.ceil, Xn = br(Ye, "create"), qt = Me.floor, nu = br(G, "isArray"), Zt = $.isFinite, Mu = br(Ye, "keys"), Ge = Me.max, Xe = Me.min, zu = br(ie, "now"), dn = $.parseInt, Sn = Me.random, ki = Pt.NEGATIVE_INFINITY, Zn = Pt.POS