Your Name 1912bcd25b
Some checks failed
Lint / build (20) (push) Has been cancelled
Playwright Tests / test (push) Has been cancelled
chore: sync all remaining local workspace changes
2026-05-08 11:26:57 +08:00

29108 lines
939 KiB
JavaScript

/*
* Extracted from browser-delivered Turbopack chunk: 15518d5e8f32d9ef.496e523ec8.js
* Module id: 466752
* For reading/searching only; this factory depends on the original Turbopack runtime.
*/
const moduleFactory = (t) => {
"use strict";
let e, r, n, o, i;
var a,
u,
c,
s,
l,
f,
p,
h,
y,
v,
d,
g,
m,
b = t.i(23741);
function w(t, e) {
return function () {
return t.apply(e, arguments);
};
}
let { toString: x } = Object.prototype,
{ getPrototypeOf: O } = Object,
{ iterator: E, toStringTag: L } = Symbol,
j =
((r = Object.create(null)),
(t) => {
let e = x.call(t);
return r[e] || (r[e] = e.slice(8, -1).toLowerCase());
}),
_ = (t) => ((t = t.toLowerCase()), (e) => j(e) === t),
k = (t) => (e) => typeof e === t,
{ isArray: P } = Array,
S = k("undefined");
function T(t) {
return (
null !== t &&
!S(t) &&
null !== t.constructor &&
!S(t.constructor) &&
N(t.constructor.isBuffer) &&
t.constructor.isBuffer(t)
);
}
let C = _("ArrayBuffer"),
R = k("string"),
N = k("function"),
U = k("number"),
A = (t) => null !== t && "object" == typeof t,
I = (t) => {
if ("object" !== j(t)) return !1;
let e = O(t);
return (
(null === e ||
e === Object.prototype ||
null === Object.getPrototypeOf(e)) &&
!(L in t) &&
!(E in t)
);
},
F = _("Date"),
G = _("File"),
D = _("Blob"),
B = _("FileList"),
M = _("URLSearchParams"),
[q, V, H, W] = ["ReadableStream", "Request", "Response", "Headers"].map(
_,
);
function Y(t, e, { allOwnKeys: r = !1 } = {}) {
let n, o;
if (null != t)
if (("object" != typeof t && (t = [t]), P(t)))
for (n = 0, o = t.length; n < o; n++) e.call(null, t[n], n, t);
else {
let o;
if (T(t)) return;
let i = r ? Object.getOwnPropertyNames(t) : Object.keys(t),
a = i.length;
for (n = 0; n < a; n++) (o = i[n]), e.call(null, t[o], o, t);
}
}
function z(t, e) {
let r;
if (T(t)) return null;
e = e.toLowerCase();
let n = Object.keys(t),
o = n.length;
for (; o-- > 0; ) if (e === (r = n[o]).toLowerCase()) return r;
return null;
}
let K =
"u" > typeof globalThis
? globalThis
: "u" > typeof self
? self
: "u" > typeof window
? window
: t.g,
$ = (t) => !S(t) && t !== K,
J =
((n = "u" > typeof Uint8Array && O(Uint8Array)),
(t) => n && t instanceof n),
Q = _("HTMLFormElement"),
X = (
({ hasOwnProperty: t }) =>
(e, r) =>
t.call(e, r)
)(Object.prototype),
Z = _("RegExp"),
tt = (t, e) => {
let r = Object.getOwnPropertyDescriptors(t),
n = {};
Y(r, (r, o) => {
let i;
!1 !== (i = e(r, o, t)) && (n[o] = i || r);
}),
Object.defineProperties(t, n);
},
te = _("AsyncFunction"),
tr =
((a = "function" == typeof setImmediate),
(u = N(K.postMessage)),
a
? setImmediate
: u
? ((c = `axios@${Math.random()}`),
(s = []),
K.addEventListener(
"message",
({ source: t, data: e }) => {
t === K && e === c && s.length && s.shift()();
},
!1,
),
(t) => {
s.push(t), K.postMessage(c, "*");
})
: (t) => setTimeout(t)),
tn =
"u" > typeof queueMicrotask
? queueMicrotask.bind(K)
: (void 0 !== b.default && b.default.nextTick) || tr,
to = {
isArray: P,
isArrayBuffer: C,
isBuffer: T,
isFormData: (t) => {
let e;
return (
t &&
(("function" == typeof FormData && t instanceof FormData) ||
(N(t.append) &&
("formdata" === (e = j(t)) ||
("object" === e &&
N(t.toString) &&
"[object FormData]" === t.toString()))))
);
},
isArrayBufferView: function (t) {
return "u" > typeof ArrayBuffer && ArrayBuffer.isView
? ArrayBuffer.isView(t)
: t && t.buffer && C(t.buffer);
},
isString: R,
isNumber: U,
isBoolean: (t) => !0 === t || !1 === t,
isObject: A,
isPlainObject: I,
isEmptyObject: (t) => {
if (!A(t) || T(t)) return !1;
try {
return (
0 === Object.keys(t).length &&
Object.getPrototypeOf(t) === Object.prototype
);
} catch (t) {
return !1;
}
},
isReadableStream: q,
isRequest: V,
isResponse: H,
isHeaders: W,
isUndefined: S,
isDate: F,
isFile: G,
isBlob: D,
isRegExp: Z,
isFunction: N,
isStream: (t) => A(t) && N(t.pipe),
isURLSearchParams: M,
isTypedArray: J,
isFileList: B,
forEach: Y,
merge: function t() {
let { caseless: e, skipUndefined: r } = ($(this) && this) || {},
n = {},
o = (o, i) => {
let a = (e && z(n, i)) || i;
I(n[a]) && I(o)
? (n[a] = t(n[a], o))
: I(o)
? (n[a] = t({}, o))
: P(o)
? (n[a] = o.slice())
: (r && S(o)) || (n[a] = o);
};
for (let t = 0, e = arguments.length; t < e; t++)
arguments[t] && Y(arguments[t], o);
return n;
},
extend: (t, e, r, { allOwnKeys: n } = {}) => (
Y(
e,
(e, n) => {
r && N(e)
? Object.defineProperty(t, n, {
value: w(e, r),
writable: !0,
enumerable: !0,
configurable: !0,
})
: Object.defineProperty(t, n, {
value: e,
writable: !0,
enumerable: !0,
configurable: !0,
});
},
{ allOwnKeys: n },
),
t
),
trim: (t) =>
t.trim
? t.trim()
: t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, ""),
stripBOM: (t) => (65279 === t.charCodeAt(0) && (t = t.slice(1)), t),
inherits: (t, e, r, n) => {
(t.prototype = Object.create(e.prototype, n)),
Object.defineProperty(t.prototype, "constructor", {
value: t,
writable: !0,
enumerable: !1,
configurable: !0,
}),
Object.defineProperty(t, "super", { value: e.prototype }),
r && Object.assign(t.prototype, r);
},
toFlatObject: (t, e, r, n) => {
let o,
i,
a,
u = {};
if (((e = e || {}), null == t)) return e;
do {
for (i = (o = Object.getOwnPropertyNames(t)).length; i-- > 0; )
(a = o[i]),
(!n || n(a, t, e)) && !u[a] && ((e[a] = t[a]), (u[a] = !0));
t = !1 !== r && O(t);
} while (t && (!r || r(t, e)) && t !== Object.prototype);
return e;
},
kindOf: j,
kindOfTest: _,
endsWith: (t, e, r) => {
(t = String(t)),
(void 0 === r || r > t.length) && (r = t.length),
(r -= e.length);
let n = t.indexOf(e, r);
return -1 !== n && n === r;
},
toArray: (t) => {
if (!t) return null;
if (P(t)) return t;
let e = t.length;
if (!U(e)) return null;
let r = Array(e);
for (; e-- > 0; ) r[e] = t[e];
return r;
},
forEachEntry: (t, e) => {
let r,
n = (t && t[E]).call(t);
for (; (r = n.next()) && !r.done; ) {
let n = r.value;
e.call(t, n[0], n[1]);
}
},
matchAll: (t, e) => {
let r,
n = [];
for (; null !== (r = t.exec(e)); ) n.push(r);
return n;
},
isHTMLForm: Q,
hasOwnProperty: X,
hasOwnProp: X,
reduceDescriptors: tt,
freezeMethods: (t) => {
tt(t, (e, r) => {
if (N(t) && -1 !== ["arguments", "caller", "callee"].indexOf(r))
return !1;
if (N(t[r])) {
if (((e.enumerable = !1), "writable" in e)) {
e.writable = !1;
return;
}
e.set ||
(e.set = () => {
throw Error("Can not rewrite read-only method '" + r + "'");
});
}
});
},
toObjectSet: (t, e) => {
let r = {};
return (
(P(t) ? t : String(t).split(e)).forEach((t) => {
r[t] = !0;
}),
r
);
},
toCamelCase: (t) =>
t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g, function (t, e, r) {
return e.toUpperCase() + r;
}),
noop: () => {},
toFiniteNumber: (t, e) =>
null != t && Number.isFinite((t *= 1)) ? t : e,
findKey: z,
global: K,
isContextDefined: $,
isSpecCompliantForm: function (t) {
return !!(t && N(t.append) && "FormData" === t[L] && t[E]);
},
toJSONObject: (t) => {
let e = Array(10),
r = (t, n) => {
if (A(t)) {
if (e.indexOf(t) >= 0) return;
if (T(t)) return t;
if (!("toJSON" in t)) {
e[n] = t;
let o = P(t) ? [] : {};
return (
Y(t, (t, e) => {
let i = r(t, n + 1);
S(i) || (o[e] = i);
}),
(e[n] = void 0),
o
);
}
}
return t;
};
return r(t, 0);
},
isAsyncFn: te,
isThenable: (t) => t && (A(t) || N(t)) && N(t.then) && N(t.catch),
setImmediate: tr,
asap: tn,
isIterable: (t) => null != t && N(t[E]),
};
var ti = t.i(42671);
class ta extends Error {
static from(t, e, r, n, o, i) {
let a = new ta(t.message, e || t.code, r, n, o);
return (a.cause = t), (a.name = t.name), i && Object.assign(a, i), a;
}
constructor(t, e, r, n, o) {
super(t),
(this.name = "AxiosError"),
(this.isAxiosError = !0),
e && (this.code = e),
r && (this.config = r),
n && (this.request = n),
o && ((this.response = o), (this.status = o.status));
}
toJSON() {
return {
message: this.message,
name: this.name,
description: this.description,
number: this.number,
fileName: this.fileName,
lineNumber: this.lineNumber,
columnNumber: this.columnNumber,
stack: this.stack,
config: to.toJSONObject(this.config),
code: this.code,
status: this.status,
};
}
}
(ta.ERR_BAD_OPTION_VALUE = "ERR_BAD_OPTION_VALUE"),
(ta.ERR_BAD_OPTION = "ERR_BAD_OPTION"),
(ta.ECONNABORTED = "ECONNABORTED"),
(ta.ETIMEDOUT = "ETIMEDOUT"),
(ta.ERR_NETWORK = "ERR_NETWORK"),
(ta.ERR_FR_TOO_MANY_REDIRECTS = "ERR_FR_TOO_MANY_REDIRECTS"),
(ta.ERR_DEPRECATED = "ERR_DEPRECATED"),
(ta.ERR_BAD_RESPONSE = "ERR_BAD_RESPONSE"),
(ta.ERR_BAD_REQUEST = "ERR_BAD_REQUEST"),
(ta.ERR_CANCELED = "ERR_CANCELED"),
(ta.ERR_NOT_SUPPORT = "ERR_NOT_SUPPORT"),
(ta.ERR_INVALID_URL = "ERR_INVALID_URL");
let tu = ta;
function tc(t) {
return to.isPlainObject(t) || to.isArray(t);
}
function ts(t) {
return to.endsWith(t, "[]") ? t.slice(0, -2) : t;
}
function tl(t, e, r) {
return t
? t
.concat(e)
.map(function (t, e) {
return (t = ts(t)), !r && e ? "[" + t + "]" : t;
})
.join(r ? "." : "")
: e;
}
let tf = to.toFlatObject(to, {}, null, function (t) {
return /^is[A-Z]/.test(t);
}),
tp = function (t, e, r) {
if (!to.isObject(t)) throw TypeError("target must be an object");
e = e || new FormData();
let n = (r = to.toFlatObject(
r,
{ metaTokens: !0, dots: !1, indexes: !1 },
!1,
function (t, e) {
return !to.isUndefined(e[t]);
},
)).metaTokens,
o = r.visitor || s,
i = r.dots,
a = r.indexes,
u =
(r.Blob || ("u" > typeof Blob && Blob)) &&
to.isSpecCompliantForm(e);
if (!to.isFunction(o)) throw TypeError("visitor must be a function");
function c(t) {
if (null === t) return "";
if (to.isDate(t)) return t.toISOString();
if (to.isBoolean(t)) return t.toString();
if (!u && to.isBlob(t))
throw new tu("Blob is not supported. Use a Buffer instead.");
return to.isArrayBuffer(t) || to.isTypedArray(t)
? u && "function" == typeof Blob
? new Blob([t])
: ti.Buffer.from(t)
: t;
}
function s(t, r, o) {
let u = t;
if (t && !o && "object" == typeof t)
if (to.endsWith(r, "{}"))
(r = n ? r : r.slice(0, -2)), (t = JSON.stringify(t));
else {
var s;
if (
(to.isArray(t) && ((s = t), to.isArray(s) && !s.some(tc))) ||
((to.isFileList(t) || to.endsWith(r, "[]")) &&
(u = to.toArray(t)))
)
return (
(r = ts(r)),
u.forEach(function (t, n) {
to.isUndefined(t) ||
null === t ||
e.append(
!0 === a ? tl([r], n, i) : null === a ? r : r + "[]",
c(t),
);
}),
!1
);
}
return !!tc(t) || (e.append(tl(o, r, i), c(t)), !1);
}
let l = [],
f = Object.assign(tf, {
defaultVisitor: s,
convertValue: c,
isVisitable: tc,
});
if (!to.isObject(t)) throw TypeError("data must be an object");
return (
!(function t(r, n) {
if (!to.isUndefined(r)) {
if (-1 !== l.indexOf(r))
throw Error("Circular reference detected in " + n.join("."));
l.push(r),
to.forEach(r, function (r, i) {
!0 ===
(!(to.isUndefined(r) || null === r) &&
o.call(e, r, to.isString(i) ? i.trim() : i, n, f)) &&
t(r, n ? n.concat(i) : [i]);
}),
l.pop();
}
})(t),
e
);
};
function th(t) {
let e = {
"!": "%21",
"'": "%27",
"(": "%28",
")": "%29",
"~": "%7E",
"%20": "+",
"%00": "\0",
};
return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g, function (t) {
return e[t];
});
}
function ty(t, e) {
(this._pairs = []), t && tp(t, this, e);
}
let tv = ty.prototype;
function td(t) {
return encodeURIComponent(t)
.replace(/%3A/gi, ":")
.replace(/%24/g, "$")
.replace(/%2C/gi, ",")
.replace(/%20/g, "+");
}
function tg(t, e, r) {
let n;
if (!e) return t;
let o = (r && r.encode) || td,
i = to.isFunction(r) ? { serialize: r } : r,
a = i && i.serialize;
if (
(n = a
? a(e, i)
: to.isURLSearchParams(e)
? e.toString()
: new ty(e, i).toString(o))
) {
let e = t.indexOf("#");
-1 !== e && (t = t.slice(0, e)),
(t += (-1 === t.indexOf("?") ? "?" : "&") + n);
}
return t;
}
(tv.append = function (t, e) {
this._pairs.push([t, e]);
}),
(tv.toString = function (t) {
let e = t
? function (e) {
return t.call(this, e, th);
}
: th;
return this._pairs
.map(function (t) {
return e(t[0]) + "=" + e(t[1]);
}, "")
.join("&");
});
let tm = class {
constructor() {
this.handlers = [];
}
use(t, e, r) {
return (
this.handlers.push({
fulfilled: t,
rejected: e,
synchronous: !!r && r.synchronous,
runWhen: r ? r.runWhen : null,
}),
this.handlers.length - 1
);
}
eject(t) {
this.handlers[t] && (this.handlers[t] = null);
}
clear() {
this.handlers && (this.handlers = []);
}
forEach(t) {
to.forEach(this.handlers, function (e) {
null !== e && t(e);
});
}
},
tb = {
silentJSONParsing: !0,
forcedJSONParsing: !0,
clarifyTimeoutError: !1,
},
tw = "u" > typeof URLSearchParams ? URLSearchParams : ty,
tx = "u" > typeof FormData ? FormData : null,
tO = "u" > typeof Blob ? Blob : null,
tE = "u" > typeof window && "u" > typeof document,
tL = ("object" == typeof navigator && navigator) || void 0,
tj =
tE &&
(!tL || 0 > ["ReactNative", "NativeScript", "NS"].indexOf(tL.product)),
t_ =
"u" > typeof WorkerGlobalScope &&
self instanceof WorkerGlobalScope &&
"function" == typeof self.importScripts,
tk = (tE && window.location.href) || "http://localhost";
t.s(
[
"hasBrowserEnv",
() => tE,
"hasStandardBrowserEnv",
() => tj,
"hasStandardBrowserWebWorkerEnv",
() => t_,
"navigator",
() => tL,
"origin",
() => tk,
],
928772,
);
let tP = {
...t.i(928772),
isBrowser: !0,
classes: { URLSearchParams: tw, FormData: tx, Blob: tO },
protocols: ["http", "https", "file", "blob", "url", "data"],
},
tS = function (t) {
if (to.isFormData(t) && to.isFunction(t.entries)) {
let e = {};
return (
to.forEachEntry(t, (t, r) => {
!(function t(e, r, n, o) {
let i = e[o++];
if ("__proto__" === i) return !0;
let a = Number.isFinite(+i),
u = o >= e.length;
return (
((i = !i && to.isArray(n) ? n.length : i), u)
? to.hasOwnProp(n, i)
? (n[i] = [n[i], r])
: (n[i] = r)
: ((n[i] && to.isObject(n[i])) || (n[i] = []),
t(e, r, n[i], o) &&
to.isArray(n[i]) &&
(n[i] = (function (t) {
let e,
r,
n = {},
o = Object.keys(t),
i = o.length;
for (e = 0; e < i; e++) n[(r = o[e])] = t[r];
return n;
})(n[i]))),
!a
);
})(
to
.matchAll(/\w+|\[(\w*)]/g, t)
.map((t) => ("[]" === t[0] ? "" : t[1] || t[0])),
r,
e,
0,
);
}),
e
);
}
return null;
},
tT = {
transitional: tb,
adapter: ["xhr", "http", "fetch"],
transformRequest: [
function (t, e) {
let r,
n = e.getContentType() || "",
o = n.indexOf("application/json") > -1,
i = to.isObject(t);
if (
(i && to.isHTMLForm(t) && (t = new FormData(t)), to.isFormData(t))
)
return o ? JSON.stringify(tS(t)) : t;
if (
to.isArrayBuffer(t) ||
to.isBuffer(t) ||
to.isStream(t) ||
to.isFile(t) ||
to.isBlob(t) ||
to.isReadableStream(t)
)
return t;
if (to.isArrayBufferView(t)) return t.buffer;
if (to.isURLSearchParams(t))
return (
e.setContentType(
"application/x-www-form-urlencoded;charset=utf-8",
!1,
),
t.toString()
);
if (i) {
if (n.indexOf("application/x-www-form-urlencoded") > -1) {
var a, u;
return ((a = t),
(u = this.formSerializer),
tp(a, new tP.classes.URLSearchParams(), {
visitor: function (t, e, r, n) {
return tP.isNode && to.isBuffer(t)
? (this.append(e, t.toString("base64")), !1)
: n.defaultVisitor.apply(this, arguments);
},
...u,
})).toString();
}
if (
(r = to.isFileList(t)) ||
n.indexOf("multipart/form-data") > -1
) {
let e = this.env && this.env.FormData;
return tp(
r ? { "files[]": t } : t,
e && new e(),
this.formSerializer,
);
}
}
if (i || o) {
e.setContentType("application/json", !1);
var c = t;
if (to.isString(c))
try {
return (0, JSON.parse)(c), to.trim(c);
} catch (t) {
if ("SyntaxError" !== t.name) throw t;
}
return (0, JSON.stringify)(c);
}
return t;
},
],
transformResponse: [
function (t) {
let e = this.transitional || tT.transitional,
r = e && e.forcedJSONParsing,
n = "json" === this.responseType;
if (to.isResponse(t) || to.isReadableStream(t)) return t;
if (t && to.isString(t) && ((r && !this.responseType) || n)) {
let r = e && e.silentJSONParsing;
try {
return JSON.parse(t, this.parseReviver);
} catch (t) {
if (!r && n) {
if ("SyntaxError" === t.name)
throw tu.from(
t,
tu.ERR_BAD_RESPONSE,
this,
null,
this.response,
);
throw t;
}
}
}
return t;
},
],
timeout: 0,
xsrfCookieName: "XSRF-TOKEN",
xsrfHeaderName: "X-XSRF-TOKEN",
maxContentLength: -1,
maxBodyLength: -1,
env: { FormData: tP.classes.FormData, Blob: tP.classes.Blob },
validateStatus: function (t) {
return t >= 200 && t < 300;
},
headers: {
common: {
Accept: "application/json, text/plain, */*",
"Content-Type": void 0,
},
},
};
to.forEach(["delete", "get", "head", "post", "put", "patch"], (t) => {
tT.headers[t] = {};
});
let tC = to.toObjectSet([
"age",
"authorization",
"content-length",
"content-type",
"etag",
"expires",
"from",
"host",
"if-modified-since",
"if-unmodified-since",
"last-modified",
"location",
"max-forwards",
"proxy-authorization",
"referer",
"retry-after",
"user-agent",
]),
tR = Symbol("internals");
function tN(t) {
return t && String(t).trim().toLowerCase();
}
function tU(t) {
return !1 === t || null == t ? t : to.isArray(t) ? t.map(tU) : String(t);
}
function tA(t, e, r, n, o) {
if (to.isFunction(n)) return n.call(this, e, r);
if ((o && (e = r), to.isString(e))) {
if (to.isString(n)) return -1 !== e.indexOf(n);
if (to.isRegExp(n)) return n.test(e);
}
}
class tI {
constructor(t) {
t && this.set(t);
}
set(t, e, r) {
let n = this;
function o(t, e, r) {
let o = tN(e);
if (!o) throw Error("header name must be a non-empty string");
let i = to.findKey(n, o);
(i && void 0 !== n[i] && !0 !== r && (void 0 !== r || !1 === n[i])) ||
(n[i || e] = tU(t));
}
let i = (t, e) => to.forEach(t, (t, r) => o(t, r, e));
if (to.isPlainObject(t) || t instanceof this.constructor) i(t, e);
else {
let n;
if (
to.isString(t) &&
(t = t.trim()) &&
((n = t), !/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(n.trim()))
) {
var a;
let r, n, o, u;
i(
((u = {}),
(a = t) &&
a.split("\n").forEach(function (t) {
(o = t.indexOf(":")),
(r = t.substring(0, o).trim().toLowerCase()),
(n = t.substring(o + 1).trim()),
!r ||
(u[r] && tC[r]) ||
("set-cookie" === r
? u[r]
? u[r].push(n)
: (u[r] = [n])
: (u[r] = u[r] ? u[r] + ", " + n : n));
}),
u),
e,
);
} else if (to.isObject(t) && to.isIterable(t)) {
let r = {},
n,
o;
for (let e of t) {
if (!to.isArray(e))
throw TypeError("Object iterator must return a key-value pair");
r[(o = e[0])] = (n = r[o])
? to.isArray(n)
? [...n, e[1]]
: [n, e[1]]
: e[1];
}
i(r, e);
} else null != t && o(e, t, r);
}
return this;
}
get(t, e) {
if ((t = tN(t))) {
let r = to.findKey(this, t);
if (r) {
let t = this[r];
if (!e) return t;
if (!0 === e) {
let e,
r = Object.create(null),
n = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
for (; (e = n.exec(t)); ) r[e[1]] = e[2];
return r;
}
if (to.isFunction(e)) return e.call(this, t, r);
if (to.isRegExp(e)) return e.exec(t);
throw TypeError("parser must be boolean|regexp|function");
}
}
}
has(t, e) {
if ((t = tN(t))) {
let r = to.findKey(this, t);
return !!(r && void 0 !== this[r] && (!e || tA(this, this[r], r, e)));
}
return !1;
}
delete(t, e) {
let r = this,
n = !1;
function o(t) {
if ((t = tN(t))) {
let o = to.findKey(r, t);
o && (!e || tA(r, r[o], o, e)) && (delete r[o], (n = !0));
}
}
return to.isArray(t) ? t.forEach(o) : o(t), n;
}
clear(t) {
let e = Object.keys(this),
r = e.length,
n = !1;
for (; r--; ) {
let o = e[r];
(!t || tA(this, this[o], o, t, !0)) && (delete this[o], (n = !0));
}
return n;
}
normalize(t) {
let e = this,
r = {};
return (
to.forEach(this, (n, o) => {
let i = to.findKey(r, o);
if (i) {
(e[i] = tU(n)), delete e[o];
return;
}
let a = t
? o
.trim()
.toLowerCase()
.replace(/([a-z\d])(\w*)/g, (t, e, r) => e.toUpperCase() + r)
: String(o).trim();
a !== o && delete e[o], (e[a] = tU(n)), (r[a] = !0);
}),
this
);
}
concat(...t) {
return this.constructor.concat(this, ...t);
}
toJSON(t) {
let e = Object.create(null);
return (
to.forEach(this, (r, n) => {
null != r &&
!1 !== r &&
(e[n] = t && to.isArray(r) ? r.join(", ") : r);
}),
e
);
}
[Symbol.iterator]() {
return Object.entries(this.toJSON())[Symbol.iterator]();
}
toString() {
return Object.entries(this.toJSON())
.map(([t, e]) => t + ": " + e)
.join("\n");
}
getSetCookie() {
return this.get("set-cookie") || [];
}
get [Symbol.toStringTag]() {
return "AxiosHeaders";
}
static from(t) {
return t instanceof this ? t : new this(t);
}
static concat(t, ...e) {
let r = new this(t);
return e.forEach((t) => r.set(t)), r;
}
static accessor(t) {
let e = (this[tR] = this[tR] = { accessors: {} }).accessors,
r = this.prototype;
function n(t) {
let n = tN(t);
if (!e[n]) {
let o;
(o = to.toCamelCase(" " + t)),
["get", "set", "has"].forEach((e) => {
Object.defineProperty(r, e + o, {
value: function (r, n, o) {
return this[e].call(this, t, r, n, o);
},
configurable: !0,
});
}),
(e[n] = !0);
}
}
return to.isArray(t) ? t.forEach(n) : n(t), this;
}
}
function tF(t, e) {
let r = this || tT,
n = e || r,
o = tI.from(n.headers),
i = n.data;
return (
to.forEach(t, function (t) {
i = t.call(r, i, o.normalize(), e ? e.status : void 0);
}),
o.normalize(),
i
);
}
function tG(t) {
return !!(t && t.__CANCEL__);
}
tI.accessor([
"Content-Type",
"Content-Length",
"Accept",
"Accept-Encoding",
"User-Agent",
"Authorization",
]),
to.reduceDescriptors(tI.prototype, ({ value: t }, e) => {
let r = e[0].toUpperCase() + e.slice(1);
return {
get: () => t,
set(t) {
this[r] = t;
},
};
}),
to.freezeMethods(tI);
let tD = class extends tu {
constructor(t, e, r) {
super(null == t ? "canceled" : t, tu.ERR_CANCELED, e, r),
(this.name = "CanceledError"),
(this.__CANCEL__ = !0);
}
};
function tB(t, e, r) {
let n = r.config.validateStatus;
!r.status || !n || n(r.status)
? t(r)
: e(
new tu(
"Request failed with status code " + r.status,
[tu.ERR_BAD_REQUEST, tu.ERR_BAD_RESPONSE][
Math.floor(r.status / 100) - 4
],
r.config,
r.request,
r,
),
);
}
let tM = function (t, e) {
let r,
n = Array((t = t || 10)),
o = Array(t),
i = 0,
a = 0;
return (
(e = void 0 !== e ? e : 1e3),
function (u) {
let c = Date.now(),
s = o[a];
r || (r = c), (n[i] = u), (o[i] = c);
let l = a,
f = 0;
for (; l !== i; ) (f += n[l++]), (l %= t);
if (((i = (i + 1) % t) === a && (a = (a + 1) % t), c - r < e))
return;
let p = s && c - s;
return p ? Math.round((1e3 * f) / p) : void 0;
}
);
},
tq = function (t, e) {
let r,
n,
o = 0,
i = 1e3 / e,
a = (e, i = Date.now()) => {
(o = i), (r = null), n && (clearTimeout(n), (n = null)), t(...e);
};
return [
(...t) => {
let e = Date.now(),
u = e - o;
u >= i
? a(t, e)
: ((r = t),
n ||
(n = setTimeout(() => {
(n = null), a(r);
}, i - u)));
},
() => r && a(r),
];
},
tV = (t, e, r = 3) => {
let n = 0,
o = tM(50, 250);
return tq((r) => {
let i = r.loaded,
a = r.lengthComputable ? r.total : void 0,
u = i - n,
c = o(u);
(n = i),
t({
loaded: i,
total: a,
progress: a ? i / a : void 0,
bytes: u,
rate: c || void 0,
estimated: c && a && i <= a ? (a - i) / c : void 0,
event: r,
lengthComputable: null != a,
[e ? "download" : "upload"]: !0,
});
}, r);
},
tH = (t, e) => {
let r = null != t;
return [
(n) => e[0]({ lengthComputable: r, total: t, loaded: n }),
e[1],
];
},
tW =
(t) =>
(...e) =>
to.asap(() => t(...e)),
tY = tP.hasStandardBrowserEnv
? ((o = new URL(tP.origin)),
(i = tP.navigator && /(msie|trident)/i.test(tP.navigator.userAgent)),
(t) => (
(t = new URL(t, tP.origin)),
o.protocol === t.protocol &&
o.host === t.host &&
(i || o.port === t.port)
))
: () => !0,
tz = tP.hasStandardBrowserEnv
? {
write(t, e, r, n, o, i, a) {
if ("u" < typeof document) return;
let u = [`${t}=${encodeURIComponent(e)}`];
to.isNumber(r) && u.push(`expires=${new Date(r).toUTCString()}`),
to.isString(n) && u.push(`path=${n}`),
to.isString(o) && u.push(`domain=${o}`),
!0 === i && u.push("secure"),
to.isString(a) && u.push(`SameSite=${a}`),
(document.cookie = u.join("; "));
},
read(t) {
if ("u" < typeof document) return null;
let e = document.cookie.match(
RegExp("(?:^|; )" + t + "=([^;]*)"),
);
return e ? decodeURIComponent(e[1]) : null;
},
remove(t) {
this.write(t, "", Date.now() - 864e5, "/");
},
}
: { write() {}, read: () => null, remove() {} };
function tK(t, e, r) {
let n = !/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e);
return t && (n || !1 == r)
? e
? t.replace(/\/?\/$/, "") + "/" + e.replace(/^\/+/, "")
: t
: e;
}
let t$ = (t) => (t instanceof tI ? { ...t } : t);
function tJ(t, e) {
e = e || {};
let r = {};
function n(t, e, r, n) {
return to.isPlainObject(t) && to.isPlainObject(e)
? to.merge.call({ caseless: n }, t, e)
: to.isPlainObject(e)
? to.merge({}, e)
: to.isArray(e)
? e.slice()
: e;
}
function o(t, e, r, o) {
return to.isUndefined(e)
? to.isUndefined(t)
? void 0
: n(void 0, t, r, o)
: n(t, e, r, o);
}
function i(t, e) {
if (!to.isUndefined(e)) return n(void 0, e);
}
function a(t, e) {
return to.isUndefined(e)
? to.isUndefined(t)
? void 0
: n(void 0, t)
: n(void 0, e);
}
function u(r, o, i) {
return i in e ? n(r, o) : i in t ? n(void 0, r) : void 0;
}
let c = {
url: i,
method: i,
data: i,
baseURL: a,
transformRequest: a,
transformResponse: a,
paramsSerializer: a,
timeout: a,
timeoutMessage: a,
withCredentials: a,
withXSRFToken: a,
adapter: a,
responseType: a,
xsrfCookieName: a,
xsrfHeaderName: a,
onUploadProgress: a,
onDownloadProgress: a,
decompress: a,
maxContentLength: a,
maxBodyLength: a,
beforeRedirect: a,
transport: a,
httpAgent: a,
httpsAgent: a,
cancelToken: a,
socketPath: a,
responseEncoding: a,
validateStatus: u,
headers: (t, e, r) => o(t$(t), t$(e), r, !0),
};
return (
to.forEach(Object.keys({ ...t, ...e }), function (n) {
let i = c[n] || o,
a = i(t[n], e[n], n);
(to.isUndefined(a) && i !== u) || (r[n] = a);
}),
r
);
}
let tQ = (t) => {
let e = tJ({}, t),
{
data: r,
withXSRFToken: n,
xsrfHeaderName: o,
xsrfCookieName: i,
headers: a,
auth: u,
} = e;
if (
((e.headers = a = tI.from(a)),
(e.url = tg(
tK(e.baseURL, e.url, e.allowAbsoluteUrls),
t.params,
t.paramsSerializer,
)),
u &&
a.set(
"Authorization",
"Basic " +
btoa(
(u.username || "") +
":" +
(u.password
? unescape(encodeURIComponent(u.password))
: ""),
),
),
to.isFormData(r))
) {
if (tP.hasStandardBrowserEnv || tP.hasStandardBrowserWebWorkerEnv)
a.setContentType(void 0);
else if (to.isFunction(r.getHeaders)) {
let t = r.getHeaders(),
e = ["content-type", "content-length"];
Object.entries(t).forEach(([t, r]) => {
e.includes(t.toLowerCase()) && a.set(t, r);
});
}
}
if (
tP.hasStandardBrowserEnv &&
(n && to.isFunction(n) && (n = n(e)), n || (!1 !== n && tY(e.url)))
) {
let t = o && i && tz.read(i);
t && a.set(o, t);
}
return e;
},
tX =
"u" > typeof XMLHttpRequest &&
function (t) {
return new Promise(function (e, r) {
var n;
let o,
i,
a,
u,
c,
s,
l = tQ(t),
f = l.data,
p = tI.from(l.headers).normalize(),
{
responseType: h,
onUploadProgress: y,
onDownloadProgress: v,
} = l;
function d() {
u && u(),
c && c(),
l.cancelToken && l.cancelToken.unsubscribe(o),
l.signal && l.signal.removeEventListener("abort", o);
}
let g = new XMLHttpRequest();
function m() {
if (!g) return;
let n = tI.from(
"getAllResponseHeaders" in g && g.getAllResponseHeaders(),
);
tB(
function (t) {
e(t), d();
},
function (t) {
r(t), d();
},
{
data:
h && "text" !== h && "json" !== h
? g.response
: g.responseText,
status: g.status,
statusText: g.statusText,
headers: n,
config: t,
request: g,
},
),
(g = null);
}
g.open(l.method.toUpperCase(), l.url, !0),
(g.timeout = l.timeout),
"onloadend" in g
? (g.onloadend = m)
: (g.onreadystatechange = function () {
!g ||
4 !== g.readyState ||
((0 !== g.status ||
(g.responseURL &&
0 === g.responseURL.indexOf("file:"))) &&
setTimeout(m));
}),
(g.onabort = function () {
g &&
(r(new tu("Request aborted", tu.ECONNABORTED, t, g)),
(g = null));
}),
(g.onerror = function (e) {
let n = new tu(
e && e.message ? e.message : "Network Error",
tu.ERR_NETWORK,
t,
g,
);
(n.event = e || null), r(n), (g = null);
}),
(g.ontimeout = function () {
let e = l.timeout
? "timeout of " + l.timeout + "ms exceeded"
: "timeout exceeded",
n = l.transitional || tb;
l.timeoutErrorMessage && (e = l.timeoutErrorMessage),
r(
new tu(
e,
n.clarifyTimeoutError ? tu.ETIMEDOUT : tu.ECONNABORTED,
t,
g,
),
),
(g = null);
}),
void 0 === f && p.setContentType(null),
"setRequestHeader" in g &&
to.forEach(p.toJSON(), function (t, e) {
g.setRequestHeader(e, t);
}),
to.isUndefined(l.withCredentials) ||
(g.withCredentials = !!l.withCredentials),
h && "json" !== h && (g.responseType = l.responseType),
v && (([a, c] = tV(v, !0)), g.addEventListener("progress", a)),
y &&
g.upload &&
(([i, u] = tV(y)),
g.upload.addEventListener("progress", i),
g.upload.addEventListener("loadend", u)),
(l.cancelToken || l.signal) &&
((o = (e) => {
g &&
(r(!e || e.type ? new tD(null, t, g) : e),
g.abort(),
(g = null));
}),
l.cancelToken && l.cancelToken.subscribe(o),
l.signal &&
(l.signal.aborted
? o()
: l.signal.addEventListener("abort", o)));
let b =
((n = l.url),
((s = /^([-+\w]{1,25})(:?\/\/|:)/.exec(n)) && s[1]) || "");
b && -1 === tP.protocols.indexOf(b)
? r(
new tu(
"Unsupported protocol " + b + ":",
tu.ERR_BAD_REQUEST,
t,
),
)
: g.send(f || null);
});
},
tZ = function* (t, e) {
let r,
n = t.byteLength;
if (!e || n < e) return void (yield t);
let o = 0;
for (; o < n; ) (r = o + e), yield t.slice(o, r), (o = r);
},
t0 = async function* (t, e) {
for await (let r of t1(t)) yield* tZ(r, e);
},
t1 = async function* (t) {
if (t[Symbol.asyncIterator]) return void (yield* t);
let e = t.getReader();
try {
for (;;) {
let { done: t, value: r } = await e.read();
if (t) break;
yield r;
}
} finally {
await e.cancel();
}
},
t2 = (t, e, r, n) => {
let o,
i = t0(t, e),
a = 0,
u = (t) => {
!o && ((o = !0), n && n(t));
};
return new ReadableStream(
{
async pull(t) {
try {
let { done: e, value: n } = await i.next();
if (e) {
u(), t.close();
return;
}
let o = n.byteLength;
if (r) {
let t = (a += o);
r(t);
}
t.enqueue(new Uint8Array(n));
} catch (t) {
throw (u(t), t);
}
},
cancel: (t) => (u(t), i.return()),
},
{ highWaterMark: 2 },
);
},
{ isFunction: t3 } = to,
t4 = (({ Request: t, Response: e }) => ({ Request: t, Response: e }))(
to.global,
),
{ ReadableStream: t7, TextEncoder: t8 } = to.global,
t5 = (t, ...e) => {
try {
return !!t(...e);
} catch (t) {
return !1;
}
},
t6 = (t) => {
let e,
{
fetch: r,
Request: n,
Response: o,
} = (t = to.merge.call({ skipUndefined: !0 }, t4, t)),
i = r ? t3(r) : "function" == typeof fetch,
a = t3(n),
u = t3(o);
if (!i) return !1;
let c = i && t3(t7),
s =
i &&
("function" == typeof t8
? ((e = new t8()), (t) => e.encode(t))
: async (t) => new Uint8Array(await new n(t).arrayBuffer())),
l =
a &&
c &&
t5(() => {
let t = !1,
e = new n(tP.origin, {
body: new t7(),
method: "POST",
get duplex() {
return (t = !0), "half";
},
}).headers.has("Content-Type");
return t && !e;
}),
f = u && c && t5(() => to.isReadableStream(new o("").body)),
p = { stream: f && ((t) => t.body) };
i &&
["text", "arrayBuffer", "blob", "formData", "stream"].forEach((t) => {
p[t] ||
(p[t] = (e, r) => {
let n = e && e[t];
if (n) return n.call(e);
throw new tu(
`Response type '${t}' is not supported`,
tu.ERR_NOT_SUPPORT,
r,
);
});
});
let h = async (t) => {
if (null == t) return 0;
if (to.isBlob(t)) return t.size;
if (to.isSpecCompliantForm(t)) {
let e = new n(tP.origin, { method: "POST", body: t });
return (await e.arrayBuffer()).byteLength;
}
return to.isArrayBufferView(t) || to.isArrayBuffer(t)
? t.byteLength
: (to.isURLSearchParams(t) && (t += ""), to.isString(t))
? (await s(t)).byteLength
: void 0;
},
y = async (t, e) => {
let r = to.toFiniteNumber(t.getContentLength());
return null == r ? h(e) : r;
};
return async (t) => {
let e,
{
url: i,
method: u,
data: c,
signal: s,
cancelToken: h,
timeout: v,
onDownloadProgress: d,
onUploadProgress: g,
responseType: m,
headers: b,
withCredentials: w = "same-origin",
fetchOptions: x,
} = tQ(t),
O = r || fetch;
m = m ? (m + "").toLowerCase() : "text";
let E = ((t, e) => {
let { length: r } = (t = t ? t.filter(Boolean) : []);
if (e || r) {
let r,
n = new AbortController(),
o = function (t) {
if (!r) {
(r = !0), a();
let e = t instanceof Error ? t : this.reason;
n.abort(
e instanceof tu
? e
: new tD(e instanceof Error ? e.message : e),
);
}
},
i =
e &&
setTimeout(() => {
(i = null),
o(new tu(`timeout of ${e}ms exceeded`, tu.ETIMEDOUT));
}, e),
a = () => {
t &&
(i && clearTimeout(i),
(i = null),
t.forEach((t) => {
t.unsubscribe
? t.unsubscribe(o)
: t.removeEventListener("abort", o);
}),
(t = null));
};
t.forEach((t) => t.addEventListener("abort", o));
let { signal: u } = n;
return (u.unsubscribe = () => to.asap(a)), u;
}
})([s, h && h.toAbortSignal()], v),
L = null,
j =
E &&
E.unsubscribe &&
(() => {
E.unsubscribe();
});
try {
if (
g &&
l &&
"get" !== u &&
"head" !== u &&
0 !== (e = await y(b, c))
) {
let t,
r = new n(i, { method: "POST", body: c, duplex: "half" });
if (
(to.isFormData(c) &&
(t = r.headers.get("content-type")) &&
b.setContentType(t),
r.body)
) {
let [t, n] = tH(e, tV(tW(g)));
c = t2(r.body, 65536, t, n);
}
}
to.isString(w) || (w = w ? "include" : "omit");
let r = a && "credentials" in n.prototype,
s = {
...x,
signal: E,
method: u.toUpperCase(),
headers: b.normalize().toJSON(),
body: c,
duplex: "half",
credentials: r ? w : void 0,
};
L = a && new n(i, s);
let h = await (a ? O(L, x) : O(i, s)),
v = f && ("stream" === m || "response" === m);
if (f && (d || (v && j))) {
let t = {};
["status", "statusText", "headers"].forEach((e) => {
t[e] = h[e];
});
let e = to.toFiniteNumber(h.headers.get("content-length")),
[r, n] = (d && tH(e, tV(tW(d), !0))) || [];
h = new o(
t2(h.body, 65536, r, () => {
n && n(), j && j();
}),
t,
);
}
m = m || "text";
let _ = await p[to.findKey(p, m) || "text"](h, t);
return (
!v && j && j(),
await new Promise((e, r) => {
tB(e, r, {
data: _,
headers: tI.from(h.headers),
status: h.status,
statusText: h.statusText,
config: t,
request: L,
});
})
);
} catch (e) {
if (
(j && j(),
e &&
"TypeError" === e.name &&
/Load failed|fetch/i.test(e.message))
)
throw Object.assign(
new tu("Network Error", tu.ERR_NETWORK, t, L),
{ cause: e.cause || e },
);
throw tu.from(e, e && e.code, t, L);
}
};
},
t9 = new Map(),
et = (t) => {
let e = (t && t.env) || {},
{ fetch: r, Request: n, Response: o } = e,
i = [n, o, r],
a = i.length,
u,
c,
s = t9;
for (; a--; )
(u = i[a]),
void 0 === (c = s.get(u)) && s.set(u, (c = a ? new Map() : t6(e))),
(s = c);
return c;
};
et();
let ee = { http: null, xhr: tX, fetch: { get: et } };
to.forEach(ee, (t, e) => {
if (t) {
try {
Object.defineProperty(t, "name", { value: e });
} catch (t) {}
Object.defineProperty(t, "adapterName", { value: e });
}
});
let er = (t) => `- ${t}`,
en = (t) => to.isFunction(t) || null === t || !1 === t,
eo = function (t, e) {
let r,
n,
{ length: o } = (t = to.isArray(t) ? t : [t]),
i = {};
for (let a = 0; a < o; a++) {
let o;
if (
((n = r = t[a]),
!en(r) && void 0 === (n = ee[(o = String(r)).toLowerCase()]))
)
throw new tu(`Unknown adapter '${o}'`);
if (n && (to.isFunction(n) || (n = n.get(e)))) break;
i[o || "#" + a] = n;
}
if (!n) {
let t = Object.entries(i).map(
([t, e]) =>
`adapter ${t} ` +
(!1 === e
? "is not supported by the environment"
: "is not available in the build"),
);
throw new tu(
"There is no suitable adapter to dispatch the request " +
(o
? t.length > 1
? "since :\n" + t.map(er).join("\n")
: " " + er(t[0])
: "as no adapter specified"),
"ERR_NOT_SUPPORT",
);
}
return n;
};
function ei(t) {
if (
(t.cancelToken && t.cancelToken.throwIfRequested(),
t.signal && t.signal.aborted)
)
throw new tD(null, t);
}
function ea(t) {
return (
ei(t),
(t.headers = tI.from(t.headers)),
(t.data = tF.call(t, t.transformRequest)),
-1 !== ["post", "put", "patch"].indexOf(t.method) &&
t.headers.setContentType("application/x-www-form-urlencoded", !1),
eo(
t.adapter || tT.adapter,
t,
)(t).then(
function (e) {
return (
ei(t),
(e.data = tF.call(t, t.transformResponse, e)),
(e.headers = tI.from(e.headers)),
e
);
},
function (e) {
return (
!tG(e) &&
(ei(t),
e &&
e.response &&
((e.response.data = tF.call(
t,
t.transformResponse,
e.response,
)),
(e.response.headers = tI.from(e.response.headers)))),
Promise.reject(e)
);
},
)
);
}
let eu = "1.13.4",
ec = {};
["object", "boolean", "number", "function", "string", "symbol"].forEach(
(t, e) => {
ec[t] = function (r) {
return typeof r === t || "a" + (e < 1 ? "n " : " ") + t;
};
},
);
let es = {};
(ec.transitional = function (t, e, r) {
function n(t, e) {
return (
"[Axios v" +
eu +
"] Transitional option '" +
t +
"'" +
e +
(r ? ". " + r : "")
);
}
return (r, o, i) => {
if (!1 === t)
throw new tu(
n(o, " has been removed" + (e ? " in " + e : "")),
tu.ERR_DEPRECATED,
);
return (
e &&
!es[o] &&
((es[o] = !0),
console.warn(
n(
o,
" has been deprecated since v" +
e +
" and will be removed in the near future",
),
)),
!t || t(r, o, i)
);
};
}),
(ec.spelling = function (t) {
return (e, r) => (
console.warn(`${r} is likely a misspelling of ${t}`), !0
);
});
let el = function (t, e, r) {
if ("object" != typeof t)
throw new tu("options must be an object", tu.ERR_BAD_OPTION_VALUE);
let n = Object.keys(t),
o = n.length;
for (; o-- > 0; ) {
let i = n[o],
a = e[i];
if (a) {
let e = t[i],
r = void 0 === e || a(e, i, t);
if (!0 !== r)
throw new tu(
"option " + i + " must be " + r,
tu.ERR_BAD_OPTION_VALUE,
);
continue;
}
if (!0 !== r) throw new tu("Unknown option " + i, tu.ERR_BAD_OPTION);
}
};
class ef {
constructor(t) {
(this.defaults = t || {}),
(this.interceptors = { request: new tm(), response: new tm() });
}
async request(t, e) {
try {
return await this._request(t, e);
} catch (t) {
if (t instanceof Error) {
let e = {};
Error.captureStackTrace
? Error.captureStackTrace(e)
: (e = Error());
let r = e.stack ? e.stack.replace(/^.+\n/, "") : "";
try {
t.stack
? r &&
!String(t.stack).endsWith(r.replace(/^.+\n.+\n/, "")) &&
(t.stack += "\n" + r)
: (t.stack = r);
} catch (t) {}
}
throw t;
}
}
_request(t, e) {
let r, n;
"string" == typeof t ? ((e = e || {}).url = t) : (e = t || {});
let {
transitional: o,
paramsSerializer: i,
headers: a,
} = (e = tJ(this.defaults, e));
void 0 !== o &&
el(
o,
{
silentJSONParsing: ec.transitional(ec.boolean),
forcedJSONParsing: ec.transitional(ec.boolean),
clarifyTimeoutError: ec.transitional(ec.boolean),
},
!1,
),
null != i &&
(to.isFunction(i)
? (e.paramsSerializer = { serialize: i })
: el(i, { encode: ec.function, serialize: ec.function }, !0)),
void 0 !== e.allowAbsoluteUrls ||
(void 0 !== this.defaults.allowAbsoluteUrls
? (e.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls)
: (e.allowAbsoluteUrls = !0)),
el(
e,
{
baseUrl: ec.spelling("baseURL"),
withXsrfToken: ec.spelling("withXSRFToken"),
},
!0,
),
(e.method = (
e.method ||
this.defaults.method ||
"get"
).toLowerCase());
let u = a && to.merge(a.common, a[e.method]);
a &&
to.forEach(
["delete", "get", "head", "post", "put", "patch", "common"],
(t) => {
delete a[t];
},
),
(e.headers = tI.concat(u, a));
let c = [],
s = !0;
this.interceptors.request.forEach(function (t) {
("function" != typeof t.runWhen || !1 !== t.runWhen(e)) &&
((s = s && t.synchronous), c.unshift(t.fulfilled, t.rejected));
});
let l = [];
this.interceptors.response.forEach(function (t) {
l.push(t.fulfilled, t.rejected);
});
let f = 0;
if (!s) {
let t = [ea.bind(this), void 0];
for (
t.unshift(...c), t.push(...l), n = t.length, r = Promise.resolve(e);
f < n;
)
r = r.then(t[f++], t[f++]);
return r;
}
n = c.length;
let p = e;
for (; f < n; ) {
let t = c[f++],
e = c[f++];
try {
p = t(p);
} catch (t) {
e.call(this, t);
break;
}
}
try {
r = ea.call(this, p);
} catch (t) {
return Promise.reject(t);
}
for (f = 0, n = l.length; f < n; ) r = r.then(l[f++], l[f++]);
return r;
}
getUri(t) {
return tg(
tK((t = tJ(this.defaults, t)).baseURL, t.url, t.allowAbsoluteUrls),
t.params,
t.paramsSerializer,
);
}
}
to.forEach(["delete", "get", "head", "options"], function (t) {
ef.prototype[t] = function (e, r) {
return this.request(
tJ(r || {}, { method: t, url: e, data: (r || {}).data }),
);
};
}),
to.forEach(["post", "put", "patch"], function (t) {
function e(e) {
return function (r, n, o) {
return this.request(
tJ(o || {}, {
method: t,
headers: e ? { "Content-Type": "multipart/form-data" } : {},
url: r,
data: n,
}),
);
};
}
(ef.prototype[t] = e()), (ef.prototype[t + "Form"] = e(!0));
});
class ep {
constructor(t) {
let e;
if ("function" != typeof t)
throw TypeError("executor must be a function.");
this.promise = new Promise(function (t) {
e = t;
});
const r = this;
this.promise.then((t) => {
if (!r._listeners) return;
let e = r._listeners.length;
for (; e-- > 0; ) r._listeners[e](t);
r._listeners = null;
}),
(this.promise.then = (t) => {
let e,
n = new Promise((t) => {
r.subscribe(t), (e = t);
}).then(t);
return (
(n.cancel = function () {
r.unsubscribe(e);
}),
n
);
}),
t(function (t, n, o) {
r.reason || ((r.reason = new tD(t, n, o)), e(r.reason));
});
}
throwIfRequested() {
if (this.reason) throw this.reason;
}
subscribe(t) {
this.reason
? t(this.reason)
: this._listeners
? this._listeners.push(t)
: (this._listeners = [t]);
}
unsubscribe(t) {
if (!this._listeners) return;
let e = this._listeners.indexOf(t);
-1 !== e && this._listeners.splice(e, 1);
}
toAbortSignal() {
let t = new AbortController(),
e = (e) => {
t.abort(e);
};
return (
this.subscribe(e),
(t.signal.unsubscribe = () => this.unsubscribe(e)),
t.signal
);
}
static source() {
let t;
return {
token: new ep(function (e) {
t = e;
}),
cancel: t,
};
}
}
let eh = {
Continue: 100,
SwitchingProtocols: 101,
Processing: 102,
EarlyHints: 103,
Ok: 200,
Created: 201,
Accepted: 202,
NonAuthoritativeInformation: 203,
NoContent: 204,
ResetContent: 205,
PartialContent: 206,
MultiStatus: 207,
AlreadyReported: 208,
ImUsed: 226,
MultipleChoices: 300,
MovedPermanently: 301,
Found: 302,
SeeOther: 303,
NotModified: 304,
UseProxy: 305,
Unused: 306,
TemporaryRedirect: 307,
PermanentRedirect: 308,
BadRequest: 400,
Unauthorized: 401,
PaymentRequired: 402,
Forbidden: 403,
NotFound: 404,
MethodNotAllowed: 405,
NotAcceptable: 406,
ProxyAuthenticationRequired: 407,
RequestTimeout: 408,
Conflict: 409,
Gone: 410,
LengthRequired: 411,
PreconditionFailed: 412,
PayloadTooLarge: 413,
UriTooLong: 414,
UnsupportedMediaType: 415,
RangeNotSatisfiable: 416,
ExpectationFailed: 417,
ImATeapot: 418,
MisdirectedRequest: 421,
UnprocessableEntity: 422,
Locked: 423,
FailedDependency: 424,
TooEarly: 425,
UpgradeRequired: 426,
PreconditionRequired: 428,
TooManyRequests: 429,
RequestHeaderFieldsTooLarge: 431,
UnavailableForLegalReasons: 451,
InternalServerError: 500,
NotImplemented: 501,
BadGateway: 502,
ServiceUnavailable: 503,
GatewayTimeout: 504,
HttpVersionNotSupported: 505,
VariantAlsoNegotiates: 506,
InsufficientStorage: 507,
LoopDetected: 508,
NotExtended: 510,
NetworkAuthenticationRequired: 511,
WebServerIsDown: 521,
ConnectionTimedOut: 522,
OriginIsUnreachable: 523,
TimeoutOccurred: 524,
SslHandshakeFailed: 525,
InvalidSslCertificate: 526,
};
Object.entries(eh).forEach(([t, e]) => {
eh[e] = t;
});
let ey = (function t(e) {
let r = new ef(e),
n = w(ef.prototype.request, r);
return (
to.extend(n, ef.prototype, r, { allOwnKeys: !0 }),
to.extend(n, r, null, { allOwnKeys: !0 }),
(n.create = function (r) {
return t(tJ(e, r));
}),
n
);
})(tT);
(ey.Axios = ef),
(ey.CanceledError = tD),
(ey.CancelToken = ep),
(ey.isCancel = tG),
(ey.VERSION = eu),
(ey.toFormData = tp),
(ey.AxiosError = tu),
(ey.Cancel = ey.CanceledError),
(ey.all = function (t) {
return Promise.all(t);
}),
(ey.spread = function (t) {
return function (e) {
return t.apply(null, e);
};
}),
(ey.isAxiosError = function (t) {
return to.isObject(t) && !0 === t.isAxiosError;
}),
(ey.mergeConfig = tJ),
(ey.AxiosHeaders = tI),
(ey.formToJSON = (t) => tS(to.isHTMLForm(t) ? new FormData(t) : t)),
(ey.getAdapter = eo),
(ey.HttpStatusCode = eh),
(ey.default = ey),
t.s(["default", 0, ey], 795882);
var ev = {
202: "Accepted",
502: "Bad Gateway",
400: "Bad Request",
409: "Conflict",
100: "Continue",
201: "Created",
417: "Expectation Failed",
424: "Failed Dependency",
403: "Forbidden",
504: "Gateway Timeout",
410: "Gone",
505: "HTTP Version Not Supported",
418: "I'm a teapot",
419: "Insufficient Space on Resource",
507: "Insufficient Storage",
500: "Internal Server Error",
411: "Length Required",
423: "Locked",
420: "Method Failure",
405: "Method Not Allowed",
301: "Moved Permanently",
302: "Moved Temporarily",
207: "Multi-Status",
300: "Multiple Choices",
511: "Network Authentication Required",
204: "No Content",
203: "Non Authoritative Information",
406: "Not Acceptable",
404: "Not Found",
501: "Not Implemented",
304: "Not Modified",
200: "OK",
206: "Partial Content",
402: "Payment Required",
308: "Permanent Redirect",
412: "Precondition Failed",
428: "Precondition Required",
102: "Processing",
103: "Early Hints",
426: "Upgrade Required",
407: "Proxy Authentication Required",
431: "Request Header Fields Too Large",
408: "Request Timeout",
413: "Request Entity Too Large",
414: "Request-URI Too Long",
416: "Requested Range Not Satisfiable",
205: "Reset Content",
303: "See Other",
503: "Service Unavailable",
101: "Switching Protocols",
307: "Temporary Redirect",
429: "Too Many Requests",
401: "Unauthorized",
451: "Unavailable For Legal Reasons",
422: "Unprocessable Entity",
415: "Unsupported Media Type",
305: "Use Proxy",
421: "Misdirected Request",
},
ed = {
Accepted: 202,
"Bad Gateway": 502,
"Bad Request": 400,
Conflict: 409,
Continue: 100,
Created: 201,
"Expectation Failed": 417,
"Failed Dependency": 424,
Forbidden: 403,
"Gateway Timeout": 504,
Gone: 410,
"HTTP Version Not Supported": 505,
"I'm a teapot": 418,
"Insufficient Space on Resource": 419,
"Insufficient Storage": 507,
"Internal Server Error": 500,
"Length Required": 411,
Locked: 423,
"Method Failure": 420,
"Method Not Allowed": 405,
"Moved Permanently": 301,
"Moved Temporarily": 302,
"Multi-Status": 207,
"Multiple Choices": 300,
"Network Authentication Required": 511,
"No Content": 204,
"Non Authoritative Information": 203,
"Not Acceptable": 406,
"Not Found": 404,
"Not Implemented": 501,
"Not Modified": 304,
OK: 200,
"Partial Content": 206,
"Payment Required": 402,
"Permanent Redirect": 308,
"Precondition Failed": 412,
"Precondition Required": 428,
Processing: 102,
"Early Hints": 103,
"Upgrade Required": 426,
"Proxy Authentication Required": 407,
"Request Header Fields Too Large": 431,
"Request Timeout": 408,
"Request Entity Too Large": 413,
"Request-URI Too Long": 414,
"Requested Range Not Satisfiable": 416,
"Reset Content": 205,
"See Other": 303,
"Service Unavailable": 503,
"Switching Protocols": 101,
"Temporary Redirect": 307,
"Too Many Requests": 429,
Unauthorized: 401,
"Unavailable For Legal Reasons": 451,
"Unprocessable Entity": 422,
"Unsupported Media Type": 415,
"Use Proxy": 305,
"Misdirected Request": 421,
};
function eg(t) {
var e = ev[t.toString()];
if (!e) throw Error("Status code does not exist: " + t);
return e;
}
var em = function () {
return (em =
Object.assign ||
function (t) {
for (var e, r = 1, n = arguments.length; r < n; r++)
for (var o in (e = arguments[r]))
Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
return t;
}).apply(this, arguments);
};
let eb = em(
em(
{},
{
ACCEPTED: 202,
BAD_GATEWAY: 502,
BAD_REQUEST: 400,
CONFLICT: 409,
CONTINUE: 100,
CREATED: 201,
EXPECTATION_FAILED: 417,
FORBIDDEN: 403,
GATEWAY_TIMEOUT: 504,
GONE: 410,
HTTP_VERSION_NOT_SUPPORTED: 505,
IM_A_TEAPOT: 418,
INSUFFICIENT_SPACE_ON_RESOURCE: 419,
INSUFFICIENT_STORAGE: 507,
INTERNAL_SERVER_ERROR: 500,
LENGTH_REQUIRED: 411,
LOCKED: 423,
METHOD_FAILURE: 420,
METHOD_NOT_ALLOWED: 405,
MOVED_PERMANENTLY: 301,
MOVED_TEMPORARILY: 302,
MULTI_STATUS: 207,
MULTIPLE_CHOICES: 300,
NETWORK_AUTHENTICATION_REQUIRED: 511,
NO_CONTENT: 204,
NON_AUTHORITATIVE_INFORMATION: 203,
NOT_ACCEPTABLE: 406,
NOT_FOUND: 404,
NOT_IMPLEMENTED: 501,
NOT_MODIFIED: 304,
OK: 200,
PARTIAL_CONTENT: 206,
PAYMENT_REQUIRED: 402,
PERMANENT_REDIRECT: 308,
PRECONDITION_FAILED: 412,
PRECONDITION_REQUIRED: 428,
PROCESSING: 102,
PROXY_AUTHENTICATION_REQUIRED: 407,
REQUEST_HEADER_FIELDS_TOO_LARGE: 431,
REQUEST_TIMEOUT: 408,
REQUEST_TOO_LONG: 413,
REQUEST_URI_TOO_LONG: 414,
REQUESTED_RANGE_NOT_SATISFIABLE: 416,
RESET_CONTENT: 205,
SEE_OTHER: 303,
SERVICE_UNAVAILABLE: 503,
SWITCHING_PROTOCOLS: 101,
TEMPORARY_REDIRECT: 307,
TOO_MANY_REQUESTS: 429,
UNAUTHORIZED: 401,
UNPROCESSABLE_ENTITY: 422,
UNSUPPORTED_MEDIA_TYPE: 415,
USE_PROXY: 305,
},
),
{
getStatusCode: function (t) {
var e = ed[t];
if (!e) throw Error("Reason phrase does not exist: " + t);
return e;
},
getStatusText: eg,
},
);
function ew(t) {
return (ew =
"function" == typeof Symbol && "symbol" == typeof Symbol.iterator
? function (t) {
return typeof t;
}
: function (t) {
return t &&
"function" == typeof Symbol &&
t.constructor === Symbol &&
t !== Symbol.prototype
? "symbol"
: typeof t;
})(t);
}
function ex(t, e, r) {
var n;
return (
((n = (function (t, e) {
if ("object" != ew(t) || !t) return t;
var r = t[Symbol.toPrimitive];
if (void 0 !== r) {
var n = r.call(t, e || "default");
if ("object" != ew(n)) return n;
throw TypeError("@@toPrimitive must return a primitive value.");
}
return ("string" === e ? String : Number)(t);
})(e, "string")),
(e = "symbol" == ew(n) ? n : String(n)) in t)
? Object.defineProperty(t, e, {
value: r,
enumerable: !0,
configurable: !0,
writable: !0,
})
: (t[e] = r),
t
);
}
ex(
ex(
ex(
ex(
ex(
ex(
ex(
ex(
ex(
ex((m = {}), eb.BAD_REQUEST, "错误请求"),
eb.UNAUTHORIZED,
"未授权",
),
eb.FORBIDDEN,
"没有相关权限,请联系管理员",
),
eb.NOT_FOUND,
"未找到该资源",
),
eb.METHOD_NOT_ALLOWED,
"请求方法未允许",
),
eb.REQUEST_TIMEOUT,
"请求超时",
),
eb.TOO_MANY_REQUESTS,
"请求频繁",
),
eb.INTERNAL_SERVER_ERROR,
"服务器端出错",
),
eb.NOT_IMPLEMENTED,
"网络未实现",
),
eb.BAD_GATEWAY,
"网络错误",
),
ex(
ex(
ex(m, eb.SERVICE_UNAVAILABLE, "服务不可用"),
eb.GATEWAY_TIMEOUT,
"网络连接错误,请稍候重试",
),
eb.HTTP_VERSION_NOT_SUPPORTED,
"不支持该请求",
);
var eO = function (t) {
return eg(t);
};
function eE(t) {
return (eE =
"function" == typeof Symbol && "symbol" == typeof Symbol.iterator
? function (t) {
return typeof t;
}
: function (t) {
return t &&
"function" == typeof Symbol &&
t.constructor === Symbol &&
t !== Symbol.prototype
? "symbol"
: typeof t;
})(t);
}
function eL() {
eL = function () {
return e;
};
var t,
e = {},
r = Object.prototype,
n = r.hasOwnProperty,
o =
Object.defineProperty ||
function (t, e, r) {
t[e] = r.value;
},
i = "function" == typeof Symbol ? Symbol : {},
a = i.iterator || "@@iterator",
u = i.asyncIterator || "@@asyncIterator",
c = i.toStringTag || "@@toStringTag";
function s(t, e, r) {
return (
Object.defineProperty(t, e, {
value: r,
enumerable: !0,
configurable: !0,
writable: !0,
}),
t[e]
);
}
try {
s({}, "");
} catch (t) {
s = function (t, e, r) {
return (t[e] = r);
};
}
function l(e, r, n, i) {
var a,
u,
c,
s,
l = Object.create((r && r.prototype instanceof d ? r : d).prototype);
return (
o(l, "_invoke", {
value:
((a = e),
(u = n),
(c = new k(i || [])),
(s = p),
function (e, r) {
if (s === h) throw Error("Generator is already running");
if (s === y) {
if ("throw" === e) throw r;
return { value: t, done: !0 };
}
for (c.method = e, c.arg = r; ; ) {
var n = c.delegate;
if (n) {
var o = (function e(r, n) {
var o = n.method,
i = r.iterator[o];
if (i === t)
return (
(n.delegate = null),
("throw" === o &&
r.iterator.return &&
((n.method = "return"),
(n.arg = t),
e(r, n),
"throw" === n.method)) ||
("return" !== o &&
((n.method = "throw"),
(n.arg = TypeError(
"The iterator does not provide a '" +
o +
"' method",
)))),
v
);
var a = f(i, r.iterator, n.arg);
if ("throw" === a.type)
return (
(n.method = "throw"),
(n.arg = a.arg),
(n.delegate = null),
v
);
var u = a.arg;
return u
? u.done
? ((n[r.resultName] = u.value),
(n.next = r.nextLoc),
"return" !== n.method &&
((n.method = "next"), (n.arg = t)),
(n.delegate = null),
v)
: u
: ((n.method = "throw"),
(n.arg = TypeError(
"iterator result is not an object",
)),
(n.delegate = null),
v);
})(n, c);
if (o) {
if (o === v) continue;
return o;
}
}
if ("next" === c.method) c.sent = c._sent = c.arg;
else if ("throw" === c.method) {
if (s === p) throw ((s = y), c.arg);
c.dispatchException(c.arg);
} else "return" === c.method && c.abrupt("return", c.arg);
s = h;
var i = f(a, u, c);
if ("normal" === i.type) {
if (((s = c.done ? y : "suspendedYield"), i.arg === v))
continue;
return { value: i.arg, done: c.done };
}
"throw" === i.type &&
((s = y), (c.method = "throw"), (c.arg = i.arg));
}
}),
}),
l
);
}
function f(t, e, r) {
try {
return { type: "normal", arg: t.call(e, r) };
} catch (t) {
return { type: "throw", arg: t };
}
}
e.wrap = l;
var p = "suspendedStart",
h = "executing",
y = "completed",
v = {};
function d() {}
function g() {}
function m() {}
var b = {};
s(b, a, function () {
return this;
});
var w = Object.getPrototypeOf,
x = w && w(w(P([])));
x && x !== r && n.call(x, a) && (b = x);
var O = (m.prototype = d.prototype = Object.create(b));
function E(t) {
["next", "throw", "return"].forEach(function (e) {
s(t, e, function (t) {
return this._invoke(e, t);
});
});
}
function L(t, e) {
var r;
o(this, "_invoke", {
value: function (o, i) {
function a() {
return new e(function (r, a) {
!(function r(o, i, a, u) {
var c = f(t[o], t, i);
if ("throw" !== c.type) {
var s = c.arg,
l = s.value;
return l && "object" == eE(l) && n.call(l, "__await")
? e.resolve(l.__await).then(
function (t) {
r("next", t, a, u);
},
function (t) {
r("throw", t, a, u);
},
)
: e.resolve(l).then(
function (t) {
(s.value = t), a(s);
},
function (t) {
return r("throw", t, a, u);
},
);
}
u(c.arg);
})(o, i, r, a);
});
}
return (r = r ? r.then(a, a) : a());
},
});
}
function j(t) {
var e = { tryLoc: t[0] };
1 in t && (e.catchLoc = t[1]),
2 in t && ((e.finallyLoc = t[2]), (e.afterLoc = t[3])),
this.tryEntries.push(e);
}
function _(t) {
var e = t.completion || {};
(e.type = "normal"), delete e.arg, (t.completion = e);
}
function k(t) {
(this.tryEntries = [{ tryLoc: "root" }]),
t.forEach(j, this),
this.reset(!0);
}
function P(e) {
if (e || "" === e) {
var r = e[a];
if (r) return r.call(e);
if ("function" == typeof e.next) return e;
if (!isNaN(e.length)) {
var o = -1,
i = function r() {
for (; ++o < e.length; )
if (n.call(e, o)) return (r.value = e[o]), (r.done = !1), r;
return (r.value = t), (r.done = !0), r;
};
return (i.next = i);
}
}
throw TypeError(eE(e) + " is not iterable");
}
return (
(g.prototype = m),
o(O, "constructor", { value: m, configurable: !0 }),
o(m, "constructor", { value: g, configurable: !0 }),
(g.displayName = s(m, c, "GeneratorFunction")),
(e.isGeneratorFunction = function (t) {
var e = "function" == typeof t && t.constructor;
return (
!!e &&
(e === g || "GeneratorFunction" === (e.displayName || e.name))
);
}),
(e.mark = function (t) {
return (
Object.setPrototypeOf
? Object.setPrototypeOf(t, m)
: ((t.__proto__ = m), s(t, c, "GeneratorFunction")),
(t.prototype = Object.create(O)),
t
);
}),
(e.awrap = function (t) {
return { __await: t };
}),
E(L.prototype),
s(L.prototype, u, function () {
return this;
}),
(e.AsyncIterator = L),
(e.async = function (t, r, n, o, i) {
void 0 === i && (i = Promise);
var a = new L(l(t, r, n, o), i);
return e.isGeneratorFunction(r)
? a
: a.next().then(function (t) {
return t.done ? t.value : a.next();
});
}),
E(O),
s(O, c, "Generator"),
s(O, a, function () {
return this;
}),
s(O, "toString", function () {
return "[object Generator]";
}),
(e.keys = function (t) {
var e = Object(t),
r = [];
for (var n in e) r.push(n);
return (
r.reverse(),
function t() {
for (; r.length; ) {
var n = r.pop();
if (n in e) return (t.value = n), (t.done = !1), t;
}
return (t.done = !0), t;
}
);
}),
(e.values = P),
(k.prototype = {
constructor: k,
reset: function (e) {
if (
((this.prev = 0),
(this.next = 0),
(this.sent = this._sent = t),
(this.done = !1),
(this.delegate = null),
(this.method = "next"),
(this.arg = t),
this.tryEntries.forEach(_),
!e)
)
for (var r in this)
"t" === r.charAt(0) &&
n.call(this, r) &&
!isNaN(+r.slice(1)) &&
(this[r] = t);
},
stop: function () {
this.done = !0;
var t = this.tryEntries[0].completion;
if ("throw" === t.type) throw t.arg;
return this.rval;
},
dispatchException: function (e) {
if (this.done) throw e;
var r = this;
function o(n, o) {
return (
(u.type = "throw"),
(u.arg = e),
(r.next = n),
o && ((r.method = "next"), (r.arg = t)),
!!o
);
}
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
var a = this.tryEntries[i],
u = a.completion;
if ("root" === a.tryLoc) return o("end");
if (a.tryLoc <= this.prev) {
var c = n.call(a, "catchLoc"),
s = n.call(a, "finallyLoc");
if (c && s) {
if (this.prev < a.catchLoc) return o(a.catchLoc, !0);
if (this.prev < a.finallyLoc) return o(a.finallyLoc);
} else if (c) {
if (this.prev < a.catchLoc) return o(a.catchLoc, !0);
} else {
if (!s) throw Error("try statement without catch or finally");
if (this.prev < a.finallyLoc) return o(a.finallyLoc);
}
}
}
},
abrupt: function (t, e) {
for (var r = this.tryEntries.length - 1; r >= 0; --r) {
var o = this.tryEntries[r];
if (
o.tryLoc <= this.prev &&
n.call(o, "finallyLoc") &&
this.prev < o.finallyLoc
) {
var i = o;
break;
}
}
i &&
("break" === t || "continue" === t) &&
i.tryLoc <= e &&
e <= i.finallyLoc &&
(i = null);
var a = i ? i.completion : {};
return (
(a.type = t),
(a.arg = e),
i
? ((this.method = "next"), (this.next = i.finallyLoc), v)
: this.complete(a)
);
},
complete: function (t, e) {
if ("throw" === t.type) throw t.arg;
return (
"break" === t.type || "continue" === t.type
? (this.next = t.arg)
: "return" === t.type
? ((this.rval = this.arg = t.arg),
(this.method = "return"),
(this.next = "end"))
: "normal" === t.type && e && (this.next = e),
v
);
},
finish: function (t) {
for (var e = this.tryEntries.length - 1; e >= 0; --e) {
var r = this.tryEntries[e];
if (r.finallyLoc === t)
return this.complete(r.completion, r.afterLoc), _(r), v;
}
},
catch: function (t) {
for (var e = this.tryEntries.length - 1; e >= 0; --e) {
var r = this.tryEntries[e];
if (r.tryLoc === t) {
var n = r.completion;
if ("throw" === n.type) {
var o = n.arg;
_(r);
}
return o;
}
}
throw Error("illegal catch attempt");
},
delegateYield: function (e, r, n) {
return (
(this.delegate = { iterator: P(e), resultName: r, nextLoc: n }),
"next" === this.method && (this.arg = t),
v
);
},
}),
e
);
}
function ej(t, e, r, n, o, i, a) {
try {
var u = t[i](a),
c = u.value;
} catch (t) {
r(t);
return;
}
u.done ? e(c) : Promise.resolve(c).then(n, o);
}
function e_(t) {
return function () {
var e = this,
r = arguments;
return new Promise(function (n, o) {
var i = t.apply(e, r);
function a(t) {
ej(i, n, o, a, u, "next", t);
}
function u(t) {
ej(i, n, o, a, u, "throw", t);
}
a(void 0);
});
};
}
function ek(t, e) {
return (
(function (t) {
if (Array.isArray(t)) return t;
})(t) ||
(function (t, e) {
var r =
null == t
? null
: ("u" > typeof Symbol && t[Symbol.iterator]) || t["@@iterator"];
if (null != r) {
var n,
o,
i,
a,
u = [],
c = !0,
s = !1;
try {
if (((i = (r = r.call(t)).next), 0 === e)) {
if (Object(r) !== r) return;
c = !1;
} else
for (
;
!(c = (n = i.call(r)).done) &&
(u.push(n.value), u.length !== e);
c = !0
);
} catch (t) {
(s = !0), (o = t);
} finally {
try {
if (
!c &&
null != r.return &&
((a = r.return()), Object(a) !== a)
)
return;
} finally {
if (s) throw o;
}
}
return u;
}
})(t, e) ||
(function (t, e) {
if (t) {
if ("string" == typeof t) return eP(t, e);
var r = Object.prototype.toString.call(t).slice(8, -1);
if (
("Object" === r && t.constructor && (r = t.constructor.name),
"Map" === r || "Set" === r)
)
return Array.from(t);
if (
"Arguments" === r ||
/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)
)
return eP(t, e);
}
})(t, e) ||
(function () {
throw TypeError(
"Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.",
);
})()
);
}
function eP(t, e) {
(null == e || e > t.length) && (e = t.length);
for (var r = 0, n = Array(e); r < e; r++) n[r] = t[r];
return n;
}
function eS(t, e) {
var r = Object.keys(t);
if (Object.getOwnPropertySymbols) {
var n = Object.getOwnPropertySymbols(t);
e &&
(n = n.filter(function (e) {
return Object.getOwnPropertyDescriptor(t, e).enumerable;
})),
r.push.apply(r, n);
}
return r;
}
function eT(t) {
for (var e = 1; e < arguments.length; e++) {
var r = null != arguments[e] ? arguments[e] : {};
e % 2
? eS(Object(r), !0).forEach(function (e) {
eC(t, e, r[e]);
})
: Object.getOwnPropertyDescriptors
? Object.defineProperties(t, Object.getOwnPropertyDescriptors(r))
: eS(Object(r)).forEach(function (e) {
Object.defineProperty(
t,
e,
Object.getOwnPropertyDescriptor(r, e),
);
});
}
return t;
}
function eC(t, e, r) {
return (
(e = eR(e)) in t
? Object.defineProperty(t, e, {
value: r,
enumerable: !0,
configurable: !0,
writable: !0,
})
: (t[e] = r),
t
);
}
function eR(t) {
var e = (function (t, e) {
if ("object" != eE(t) || !t) return t;
var r = t[Symbol.toPrimitive];
if (void 0 !== r) {
var n = r.call(t, e || "default");
if ("object" != eE(n)) return n;
throw TypeError("@@toPrimitive must return a primitive value.");
}
return ("string" === e ? String : Number)(t);
})(t, "string");
return "symbol" == eE(e) ? e : String(e);
}
var eN = ["arraybuffer", "blob", "document", "stream", "text"],
eU = (function () {
var t, e, r, n, o, i, a;
function u(t) {
var e = this;
if (!(this instanceof u))
throw TypeError("Cannot call a class as a function");
eC(this, "options", void 0),
eC(this, "instance", void 0),
(this.options = t),
(this.instance = ey.create(t)),
this.instance.interceptors.request.use(function (t) {
var r,
n = Date.now().toString();
return (
Object.entries(eT({}, e.options.getExtraHeaders())).forEach(
function (e) {
var r = ek(e, 2),
n = r[0],
o = r[1];
t.headers.set(n, o);
},
),
null != (r = t.data) &&
r.headers &&
Object.entries(t.data.headers).forEach(function (e) {
var r = ek(e, 2),
n = r[0],
o = r[1];
t.headers.set(n, o);
}),
(t.params = eT(eT({}, t.params), {}, { timestamp: n })),
t
);
}),
this.instance.interceptors.response.use(
function (t) {
var e = t.status,
r =
e === eb.OK
? { code: t.data.code || 0, msg: t.data.msg || eO(eb.OK) }
: {
code: t.data.code || -1,
msg: t.data.msg || eO(e) || "请求异常",
};
if (eN.includes(t.config.responseType)) {
if (e === eb.OK) {
var n = {
axiosConfig: t.config,
code: r.code,
data: t.data,
msg: r.msg || eO(e),
status: e,
};
return (t.data = n), Promise.resolve(t);
}
return Promise.reject(
eT(
eT({}, Error(r.msg)),
{},
{
axiosConfig: t.config,
code: r.code,
data: t.data,
msg: r.msg,
status: e,
},
),
);
}
if (e === eb.OK) {
var o,
i,
a = {
axiosConfig: t.config,
code: r.code,
data: null == (i = t.data) ? void 0 : i.data,
msg: r.msg || eO(e),
status: e,
};
return (t.data = a), Promise.resolve(t);
}
return Promise.reject(
eT(
eT({}, Error(r.msg)),
{},
{
axiosConfig: t.config,
code: r.code,
data: null == (o = t.data) ? void 0 : o.data,
msg: r.msg,
status: e,
},
),
);
},
function (t) {
if (!t.response) {
var e = "网络异常";
return Promise.reject(
eT(
eT({}, Error(e)),
{},
{
axiosConfig: t.config,
code: -1,
data: null,
message: e,
status: eb.REQUEST_TIMEOUT,
},
),
);
}
var r = t.response.data,
n = r.code,
o = r.data,
i = r.msg,
a = r.status || t.response.status,
u = i || eO(a);
return Promise.reject(
eT(
eT({}, Error(u)),
{},
{
axiosConfig: t.config,
code: n || -1,
data: o,
msg: u,
status: a,
},
),
);
},
);
}
return (
(a = [
{
key: "requestWithLogger",
value:
((t = e_(
eL().mark(function t(e) {
var r, n, o, i, a, u, c, s, l, f, p, h, y, v, d, g, m;
return eL().wrap(
function (t) {
for (;;)
switch ((t.prev = t.next)) {
case 0:
return (
(r = Date.now()),
(t.prev = 1),
(t.next = 4),
this.instance.request(e)
);
case 4:
return (
(u = (a = (i = t.sent).data).code),
(c = a.msg),
(s = a.status),
null == (n = (o = this.options).onLogger) ||
n.call(
o,
i.config,
{
code: u,
msg: c,
requestTime: r,
responseStatus: s || eb.OK,
},
!0,
),
t.abrupt("return", i.data)
);
case 10:
throw (
((t.prev = 10),
(t.t0 = t.catch(1)),
(v = (y = t.t0).axiosConfig),
(d = y.code),
(g = y.msg),
(m = y.status),
null == (l = this.options) ||
null == (f = l.onError) ||
f.call(l, t.t0),
null == (p = (h = this.options).onLogger) ||
p.call(
h,
v,
{
code: d,
msg: g,
requestTime: r,
responseStatus: m || eb.OK,
},
!1,
),
t.t0)
);
case 16:
case "end":
return t.stop();
}
},
t,
this,
[[1, 10]],
);
}),
)),
function (e) {
return t.apply(this, arguments);
}),
},
{
key: "getUri",
get: function () {
return this.instance.getUri;
},
},
{
key: "delete",
value:
((e = e_(
eL().mark(function t(e, r) {
return eL().wrap(
function (t) {
for (;;)
switch ((t.prev = t.next)) {
case 0:
return t.abrupt(
"return",
this.requestWithLogger(
eT(
eT({}, r),
{},
{ method: "DELETE", url: e },
),
),
);
case 1:
case "end":
return t.stop();
}
},
t,
this,
);
}),
)),
function (t, r) {
return e.apply(this, arguments);
}),
},
{
key: "get",
value:
((r = e_(
eL().mark(function t(e, r) {
return eL().wrap(
function (t) {
for (;;)
switch ((t.prev = t.next)) {
case 0:
return t.abrupt(
"return",
this.requestWithLogger(
eT(eT({}, r), {}, { method: "GET", url: e }),
),
);
case 1:
case "end":
return t.stop();
}
},
t,
this,
);
}),
)),
function (t, e) {
return r.apply(this, arguments);
}),
},
{
key: "post",
value:
((n = e_(
eL().mark(function t(e, r, n) {
return eL().wrap(
function (t) {
for (;;)
switch ((t.prev = t.next)) {
case 0:
return t.abrupt(
"return",
this.requestWithLogger(
eT(
eT({}, n),
{},
{ data: r, method: "POST", url: e },
),
),
);
case 1:
case "end":
return t.stop();
}
},
t,
this,
);
}),
)),
function (t, e, r) {
return n.apply(this, arguments);
}),
},
{
key: "put",
value:
((o = e_(
eL().mark(function t(e, r, n) {
return eL().wrap(
function (t) {
for (;;)
switch ((t.prev = t.next)) {
case 0:
return t.abrupt(
"return",
this.requestWithLogger(
eT(
eT({}, n),
{},
{ data: r, method: "PUT", url: e },
),
),
);
case 1:
case "end":
return t.stop();
}
},
t,
this,
);
}),
)),
function (t, e, r) {
return o.apply(this, arguments);
}),
},
{
key: "patch",
value:
((i = e_(
eL().mark(function t(e, r, n) {
return eL().wrap(
function (t) {
for (;;)
switch ((t.prev = t.next)) {
case 0:
return t.abrupt(
"return",
this.requestWithLogger(
eT(
eT({}, n),
{},
{ data: r, method: "PATCH", url: e },
),
),
);
case 1:
case "end":
return t.stop();
}
},
t,
this,
);
}),
)),
function (t, e, r) {
return i.apply(this, arguments);
}),
},
]),
(function (t, e) {
for (var r = 0; r < e.length; r++) {
var n = e[r];
(n.enumerable = n.enumerable || !1),
(n.configurable = !0),
"value" in n && (n.writable = !0),
Object.defineProperty(t, eR(n.key), n);
}
})(u.prototype, a),
Object.defineProperty(u, "prototype", { writable: !1 }),
u
);
})();
function eA(t) {
return (eA =
"function" == typeof Symbol && "symbol" == typeof Symbol.iterator
? function (t) {
return typeof t;
}
: function (t) {
return t &&
"function" == typeof Symbol &&
t.constructor === Symbol &&
t !== Symbol.prototype
? "symbol"
: typeof t;
})(t);
}
t.s(["LiblibAxiosBase", () => eU], 261403), t.s([], 535875);
function eI(t, e, r) {
return (
(e = eF(e)) in t
? Object.defineProperty(t, e, {
value: r,
enumerable: !0,
configurable: !0,
writable: !0,
})
: (t[e] = r),
t
);
}
function eF(t) {
var e = (function (t, e) {
if ("object" != eA(t) || !t) return t;
var r = t[Symbol.toPrimitive];
if (void 0 !== r) {
var n = r.call(t, e || "default");
if ("object" != eA(n)) return n;
throw TypeError("@@toPrimitive must return a primitive value.");
}
return ("string" === e ? String : Number)(t);
})(t, "string");
return "symbol" == eA(e) ? e : String(e);
}
var eG = (function () {
var t;
function e(t) {
if (!(this instanceof e))
throw TypeError("Cannot call a class as a function");
eI(this, "options", void 0),
eI(this, "__API_CLIENT", void 0),
(this.options = t),
(this.__API_CLIENT = null);
}
return (
(t = [
{
key: "apiClient",
get: function () {
return (
this.__API_CLIENT ||
(this.__API_CLIENT = new eU(this.options)),
this.__API_CLIENT
);
},
},
]),
(function (t, e) {
for (var r = 0; r < e.length; r++) {
var n = e[r];
(n.enumerable = n.enumerable || !1),
(n.configurable = !0),
"value" in n && (n.writable = !0),
Object.defineProperty(t, eF(n.key), n);
}
})(e.prototype, t),
Object.defineProperty(e, "prototype", { writable: !1 }),
e
);
})(),
eD = (((l = {})[(l.FALSE = 0)] = "FALSE"), (l[(l.TRUE = 1)] = "TRUE"), l);
function eB(t) {
return (eB =
"function" == typeof Symbol && "symbol" == typeof Symbol.iterator
? function (t) {
return typeof t;
}
: function (t) {
return t &&
"function" == typeof Symbol &&
t.constructor === Symbol &&
t !== Symbol.prototype
? "symbol"
: typeof t;
})(t);
}
function eM() {
eM = function () {
return e;
};
var t,
e = {},
r = Object.prototype,
n = r.hasOwnProperty,
o =
Object.defineProperty ||
function (t, e, r) {
t[e] = r.value;
},
i = "function" == typeof Symbol ? Symbol : {},
a = i.iterator || "@@iterator",
u = i.asyncIterator || "@@asyncIterator",
c = i.toStringTag || "@@toStringTag";
function s(t, e, r) {
return (
Object.defineProperty(t, e, {
value: r,
enumerable: !0,
configurable: !0,
writable: !0,
}),
t[e]
);
}
try {
s({}, "");
} catch (t) {
s = function (t, e, r) {
return (t[e] = r);
};
}
function l(e, r, n, i) {
var a,
u,
c,
s,
l = Object.create((r && r.prototype instanceof d ? r : d).prototype);
return (
o(l, "_invoke", {
value:
((a = e),
(u = n),
(c = new k(i || [])),
(s = p),
function (e, r) {
if (s === h) throw Error("Generator is already running");
if (s === y) {
if ("throw" === e) throw r;
return { value: t, done: !0 };
}
for (c.method = e, c.arg = r; ; ) {
var n = c.delegate;
if (n) {
var o = (function e(r, n) {
var o = n.method,
i = r.iterator[o];
if (i === t)
return (
(n.delegate = null),
("throw" === o &&
r.iterator.return &&
((n.method = "return"),
(n.arg = t),
e(r, n),
"throw" === n.method)) ||
("return" !== o &&
((n.method = "throw"),
(n.arg = TypeError(
"The iterator does not provide a '" +
o +
"' method",
)))),
v
);
var a = f(i, r.iterator, n.arg);
if ("throw" === a.type)
return (
(n.method = "throw"),
(n.arg = a.arg),
(n.delegate = null),
v
);
var u = a.arg;
return u
? u.done
? ((n[r.resultName] = u.value),
(n.next = r.nextLoc),
"return" !== n.method &&
((n.method = "next"), (n.arg = t)),
(n.delegate = null),
v)
: u
: ((n.method = "throw"),
(n.arg = TypeError(
"iterator result is not an object",
)),
(n.delegate = null),
v);
})(n, c);
if (o) {
if (o === v) continue;
return o;
}
}
if ("next" === c.method) c.sent = c._sent = c.arg;
else if ("throw" === c.method) {
if (s === p) throw ((s = y), c.arg);
c.dispatchException(c.arg);
} else "return" === c.method && c.abrupt("return", c.arg);
s = h;
var i = f(a, u, c);
if ("normal" === i.type) {
if (((s = c.done ? y : "suspendedYield"), i.arg === v))
continue;
return { value: i.arg, done: c.done };
}
"throw" === i.type &&
((s = y), (c.method = "throw"), (c.arg = i.arg));
}
}),
}),
l
);
}
function f(t, e, r) {
try {
return { type: "normal", arg: t.call(e, r) };
} catch (t) {
return { type: "throw", arg: t };
}
}
e.wrap = l;
var p = "suspendedStart",
h = "executing",
y = "completed",
v = {};
function d() {}
function g() {}
function m() {}
var b = {};
s(b, a, function () {
return this;
});
var w = Object.getPrototypeOf,
x = w && w(w(P([])));
x && x !== r && n.call(x, a) && (b = x);
var O = (m.prototype = d.prototype = Object.create(b));
function E(t) {
["next", "throw", "return"].forEach(function (e) {
s(t, e, function (t) {
return this._invoke(e, t);
});
});
}
function L(t, e) {
var r;
o(this, "_invoke", {
value: function (o, i) {
function a() {
return new e(function (r, a) {
!(function r(o, i, a, u) {
var c = f(t[o], t, i);
if ("throw" !== c.type) {
var s = c.arg,
l = s.value;
return l && "object" == eB(l) && n.call(l, "__await")
? e.resolve(l.__await).then(
function (t) {
r("next", t, a, u);
},
function (t) {
r("throw", t, a, u);
},
)
: e.resolve(l).then(
function (t) {
(s.value = t), a(s);
},
function (t) {
return r("throw", t, a, u);
},
);
}
u(c.arg);
})(o, i, r, a);
});
}
return (r = r ? r.then(a, a) : a());
},
});
}
function j(t) {
var e = { tryLoc: t[0] };
1 in t && (e.catchLoc = t[1]),
2 in t && ((e.finallyLoc = t[2]), (e.afterLoc = t[3])),
this.tryEntries.push(e);
}
function _(t) {
var e = t.completion || {};
(e.type = "normal"), delete e.arg, (t.completion = e);
}
function k(t) {
(this.tryEntries = [{ tryLoc: "root" }]),
t.forEach(j, this),
this.reset(!0);
}
function P(e) {
if (e || "" === e) {
var r = e[a];
if (r) return r.call(e);
if ("function" == typeof e.next) return e;
if (!isNaN(e.length)) {
var o = -1,
i = function r() {
for (; ++o < e.length; )
if (n.call(e, o)) return (r.value = e[o]), (r.done = !1), r;
return (r.value = t), (r.done = !0), r;
};
return (i.next = i);
}
}
throw TypeError(eB(e) + " is not iterable");
}
return (
(g.prototype = m),
o(O, "constructor", { value: m, configurable: !0 }),
o(m, "constructor", { value: g, configurable: !0 }),
(g.displayName = s(m, c, "GeneratorFunction")),
(e.isGeneratorFunction = function (t) {
var e = "function" == typeof t && t.constructor;
return (
!!e &&
(e === g || "GeneratorFunction" === (e.displayName || e.name))
);
}),
(e.mark = function (t) {
return (
Object.setPrototypeOf
? Object.setPrototypeOf(t, m)
: ((t.__proto__ = m), s(t, c, "GeneratorFunction")),
(t.prototype = Object.create(O)),
t
);
}),
(e.awrap = function (t) {
return { __await: t };
}),
E(L.prototype),
s(L.prototype, u, function () {
return this;
}),
(e.AsyncIterator = L),
(e.async = function (t, r, n, o, i) {
void 0 === i && (i = Promise);
var a = new L(l(t, r, n, o), i);
return e.isGeneratorFunction(r)
? a
: a.next().then(function (t) {
return t.done ? t.value : a.next();
});
}),
E(O),
s(O, c, "Generator"),
s(O, a, function () {
return this;
}),
s(O, "toString", function () {
return "[object Generator]";
}),
(e.keys = function (t) {
var e = Object(t),
r = [];
for (var n in e) r.push(n);
return (
r.reverse(),
function t() {
for (; r.length; ) {
var n = r.pop();
if (n in e) return (t.value = n), (t.done = !1), t;
}
return (t.done = !0), t;
}
);
}),
(e.values = P),
(k.prototype = {
constructor: k,
reset: function (e) {
if (
((this.prev = 0),
(this.next = 0),
(this.sent = this._sent = t),
(this.done = !1),
(this.delegate = null),
(this.method = "next"),
(this.arg = t),
this.tryEntries.forEach(_),
!e)
)
for (var r in this)
"t" === r.charAt(0) &&
n.call(this, r) &&
!isNaN(+r.slice(1)) &&
(this[r] = t);
},
stop: function () {
this.done = !0;
var t = this.tryEntries[0].completion;
if ("throw" === t.type) throw t.arg;
return this.rval;
},
dispatchException: function (e) {
if (this.done) throw e;
var r = this;
function o(n, o) {
return (
(u.type = "throw"),
(u.arg = e),
(r.next = n),
o && ((r.method = "next"), (r.arg = t)),
!!o
);
}
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
var a = this.tryEntries[i],
u = a.completion;
if ("root" === a.tryLoc) return o("end");
if (a.tryLoc <= this.prev) {
var c = n.call(a, "catchLoc"),
s = n.call(a, "finallyLoc");
if (c && s) {
if (this.prev < a.catchLoc) return o(a.catchLoc, !0);
if (this.prev < a.finallyLoc) return o(a.finallyLoc);
} else if (c) {
if (this.prev < a.catchLoc) return o(a.catchLoc, !0);
} else {
if (!s) throw Error("try statement without catch or finally");
if (this.prev < a.finallyLoc) return o(a.finallyLoc);
}
}
}
},
abrupt: function (t, e) {
for (var r = this.tryEntries.length - 1; r >= 0; --r) {
var o = this.tryEntries[r];
if (
o.tryLoc <= this.prev &&
n.call(o, "finallyLoc") &&
this.prev < o.finallyLoc
) {
var i = o;
break;
}
}
i &&
("break" === t || "continue" === t) &&
i.tryLoc <= e &&
e <= i.finallyLoc &&
(i = null);
var a = i ? i.completion : {};
return (
(a.type = t),
(a.arg = e),
i
? ((this.method = "next"), (this.next = i.finallyLoc), v)
: this.complete(a)
);
},
complete: function (t, e) {
if ("throw" === t.type) throw t.arg;
return (
"break" === t.type || "continue" === t.type
? (this.next = t.arg)
: "return" === t.type
? ((this.rval = this.arg = t.arg),
(this.method = "return"),
(this.next = "end"))
: "normal" === t.type && e && (this.next = e),
v
);
},
finish: function (t) {
for (var e = this.tryEntries.length - 1; e >= 0; --e) {
var r = this.tryEntries[e];
if (r.finallyLoc === t)
return this.complete(r.completion, r.afterLoc), _(r), v;
}
},
catch: function (t) {
for (var e = this.tryEntries.length - 1; e >= 0; --e) {
var r = this.tryEntries[e];
if (r.tryLoc === t) {
var n = r.completion;
if ("throw" === n.type) {
var o = n.arg;
_(r);
}
return o;
}
}
throw Error("illegal catch attempt");
},
delegateYield: function (e, r, n) {
return (
(this.delegate = { iterator: P(e), resultName: r, nextLoc: n }),
"next" === this.method && (this.arg = t),
v
);
},
}),
e
);
}
function eq(t, e, r, n, o, i, a) {
try {
var u = t[i](a),
c = u.value;
} catch (t) {
r(t);
return;
}
u.done ? e(c) : Promise.resolve(c).then(n, o);
}
function eV(t) {
return function () {
var e = this,
r = arguments;
return new Promise(function (n, o) {
var i = t.apply(e, r);
function a(t) {
eq(i, n, o, a, u, "next", t);
}
function u(t) {
eq(i, n, o, a, u, "throw", t);
}
a(void 0);
});
};
}
function eH(t, e) {
return (eH = Object.setPrototypeOf
? Object.setPrototypeOf.bind()
: function (t, e) {
return (t.__proto__ = e), t;
})(t, e);
}
function eW(t) {
return (eW = Object.setPrototypeOf
? Object.getPrototypeOf.bind()
: function (t) {
return t.__proto__ || Object.getPrototypeOf(t);
})(t);
}
var eY = (function (t) {
if ("function" != typeof t && null !== t)
throw TypeError("Super expression must either be null or a function");
(a.prototype = Object.create(t && t.prototype, {
constructor: { value: a, writable: !0, configurable: !0 },
})),
Object.defineProperty(a, "prototype", { writable: !1 }),
t && eH(a, t);
var e,
r,
n,
o,
i =
((e = (function () {
if (
"u" < typeof Reflect ||
!Reflect.construct ||
Reflect.construct.sham
)
return !1;
if ("function" == typeof Proxy) return !0;
try {
return (
Boolean.prototype.valueOf.call(
Reflect.construct(Boolean, [], function () {}),
),
!0
);
} catch (t) {
return !1;
}
})()),
function () {
var t,
r = eW(a);
return (
(t = e
? Reflect.construct(r, arguments, eW(this).constructor)
: r.apply(this, arguments)),
(function (t, e) {
if (e && ("object" === eB(e) || "function" == typeof e))
return e;
if (void 0 !== e)
throw TypeError(
"Derived constructors may only return object or undefined",
);
var r = t;
if (void 0 === r)
throw ReferenceError(
"this hasn't been initialised - super() hasn't been called",
);
return r;
})(this, t)
);
});
function a() {
if (!(this instanceof a))
throw TypeError("Cannot call a class as a function");
return i.apply(this, arguments);
}
return (
(o = [
{
key: "getRankingList",
value:
((r = eV(
eM().mark(function t() {
var e;
return eM().wrap(
function (t) {
for (;;)
switch ((t.prev = t.next)) {
case 0:
return (
(t.next = 2),
this.apiClient.post("/author/rankingList", {})
);
case 2:
return (
(e = t.sent.data),
t.abrupt(
"return",
(null == e ? void 0 : e.rankList) || [],
)
);
case 5:
case "end":
return t.stop();
}
},
t,
this,
);
}),
)),
function () {
return r.apply(this, arguments);
}),
},
{
key: "getRankingDetailList",
value:
((n = eV(
eM().mark(function t(e) {
var r;
return eM().wrap(
function (t) {
for (;;)
switch ((t.prev = t.next)) {
case 0:
return (
(t.next = 2),
this.apiClient.post(
"/author/rankingDetailList",
e,
)
);
case 2:
return (
(r = t.sent.data), t.abrupt("return", r || [])
);
case 5:
case "end":
return t.stop();
}
},
t,
this,
);
}),
)),
function (t) {
return n.apply(this, arguments);
}),
},
]),
(function (t, e) {
for (var r = 0; r < e.length; r++) {
var n = e[r];
(n.enumerable = n.enumerable || !1),
(n.configurable = !0),
"value" in n && (n.writable = !0),
Object.defineProperty(
t,
(function (t) {
var e = (function (t, e) {
if ("object" != eB(t) || !t) return t;
var r = t[Symbol.toPrimitive];
if (void 0 !== r) {
var n = r.call(t, e || "default");
if ("object" != eB(n)) return n;
throw TypeError(
"@@toPrimitive must return a primitive value.",
);
}
return ("string" === e ? String : Number)(t);
})(t, "string");
return "symbol" == eB(e) ? e : String(e);
})(n.key),
n,
);
}
})(a.prototype, o),
Object.defineProperty(a, "prototype", { writable: !1 }),
a
);
})(eG);
function ez(t) {
return (ez =
"function" == typeof Symbol && "symbol" == typeof Symbol.iterator
? function (t) {
return typeof t;
}
: function (t) {
return t &&
"function" == typeof Symbol &&
t.constructor === Symbol &&
t !== Symbol.prototype
? "symbol"
: typeof t;
})(t);
}
function eK() {
eK = function () {
return e;
};
var t,
e = {},
r = Object.prototype,
n = r.hasOwnProperty,
o =
Object.defineProperty ||
function (t, e, r) {
t[e] = r.value;
},
i = "function" == typeof Symbol ? Symbol : {},
a = i.iterator || "@@iterator",
u = i.asyncIterator || "@@asyncIterator",
c = i.toStringTag || "@@toStringTag";
function s(t, e, r) {
return (
Object.defineProperty(t, e, {
value: r,
enumerable: !0,
configurable: !0,
writable: !0,
}),
t[e]
);
}
try {
s({}, "");
} catch (t) {
s = function (t, e, r) {
return (t[e] = r);
};
}
function l(e, r, n, i) {
var a,
u,
c,
s,
l = Object.create((r && r.prototype instanceof d ? r : d).prototype);
return (
o(l, "_invoke", {
value:
((a = e),
(u = n),
(c = new k(i || [])),
(s = p),
function (e, r) {
if (s === h) throw Error("Generator is already running");
if (s === y) {
if ("throw" === e) throw r;
return { value: t, done: !0 };
}
for (c.method = e, c.arg = r; ; ) {
var n = c.delegate;
if (n) {
var o = (function e(r, n) {
var o = n.method,
i = r.iterator[o];
if (i === t)
return (
(n.delegate = null),
("throw" === o &&
r.iterator.return &&
((n.method = "return"),
(n.arg = t),
e(r, n),
"throw" === n.method)) ||
("return" !== o &&
((n.method = "throw"),
(n.arg = TypeError(
"The iterator does not provide a '" +
o +
"' method",
)))),
v
);
var a = f(i, r.iterator, n.arg);
if ("throw" === a.type)
return (
(n.method = "throw"),
(n.arg = a.arg),
(n.delegate = null),
v
);
var u = a.arg;
return u
? u.done
? ((n[r.resultName] = u.value),
(n.next = r.nextLoc),
"return" !== n.method &&
((n.method = "next"), (n.arg = t)),
(n.delegate = null),
v)
: u
: ((n.method = "throw"),
(n.arg = TypeError(
"iterator result is not an object",
)),
(n.delegate = null),
v);
})(n, c);
if (o) {
if (o === v) continue;
return o;
}
}
if ("next" === c.method) c.sent = c._sent = c.arg;
else if ("throw" === c.method) {
if (s === p) throw ((s = y), c.arg);
c.dispatchException(c.arg);
} else "return" === c.method && c.abrupt("return", c.arg);
s = h;
var i = f(a, u, c);
if ("normal" === i.type) {
if (((s = c.done ? y : "suspendedYield"), i.arg === v))
continue;
return { value: i.arg, done: c.done };
}
"throw" === i.type &&
((s = y), (c.method = "throw"), (c.arg = i.arg));
}
}),
}),
l
);
}
function f(t, e, r) {
try {
return { type: "normal", arg: t.call(e, r) };
} catch (t) {
return { type: "throw", arg: t };
}
}
e.wrap = l;
var p = "suspendedStart",
h = "executing",
y = "completed",
v = {};
function d() {}
function g() {}
function m() {}
var b = {};
s(b, a, function () {
return this;
});
var w = Object.getPrototypeOf,
x = w && w(w(P([])));
x && x !== r && n.call(x, a) && (b = x);
var O = (m.prototype = d.prototype = Object.create(b));
function E(t) {
["next", "throw", "return"].forEach(function (e) {
s(t, e, function (t) {
return this._invoke(e, t);
});
});
}
function L(t, e) {
var r;
o(this, "_invoke", {
value: function (o, i) {
function a() {
return new e(function (r, a) {
!(function r(o, i, a, u) {
var c = f(t[o], t, i);
if ("throw" !== c.type) {
var s = c.arg,
l = s.value;
return l && "object" == ez(l) && n.call(l, "__await")
? e.resolve(l.__await).then(
function (t) {
r("next", t, a, u);
},
function (t) {
r("throw", t, a, u);
},
)
: e.resolve(l).then(
function (t) {
(s.value = t), a(s);
},
function (t) {
return r("throw", t, a, u);
},
);
}
u(c.arg);
})(o, i, r, a);
});
}
return (r = r ? r.then(a, a) : a());
},
});
}
function j(t) {
var e = { tryLoc: t[0] };
1 in t && (e.catchLoc = t[1]),
2 in t && ((e.finallyLoc = t[2]), (e.afterLoc = t[3])),
this.tryEntries.push(e);
}
function _(t) {
var e = t.completion || {};
(e.type = "normal"), delete e.arg, (t.completion = e);
}
function k(t) {
(this.tryEntries = [{ tryLoc: "root" }]),
t.forEach(j, this),
this.reset(!0);
}
function P(e) {
if (e || "" === e) {
var r = e[a];
if (r) return r.call(e);
if ("function" == typeof e.next) return e;
if (!isNaN(e.length)) {
var o = -1,
i = function r() {
for (; ++o < e.length; )
if (n.call(e, o)) return (r.value = e[o]), (r.done = !1), r;
return (r.value = t), (r.done = !0), r;
};
return (i.next = i);
}
}
throw TypeError(ez(e) + " is not iterable");
}
return (
(g.prototype = m),
o(O, "constructor", { value: m, configurable: !0 }),
o(m, "constructor", { value: g, configurable: !0 }),
(g.displayName = s(m, c, "GeneratorFunction")),
(e.isGeneratorFunction = function (t) {
var e = "function" == typeof t && t.constructor;
return (
!!e &&
(e === g || "GeneratorFunction" === (e.displayName || e.name))
);
}),
(e.mark = function (t) {
return (
Object.setPrototypeOf
? Object.setPrototypeOf(t, m)
: ((t.__proto__ = m), s(t, c, "GeneratorFunction")),
(t.prototype = Object.create(O)),
t
);
}),
(e.awrap = function (t) {
return { __await: t };
}),
E(L.prototype),
s(L.prototype, u, function () {
return this;
}),
(e.AsyncIterator = L),
(e.async = function (t, r, n, o, i) {
void 0 === i && (i = Promise);
var a = new L(l(t, r, n, o), i);
return e.isGeneratorFunction(r)
? a
: a.next().then(function (t) {
return t.done ? t.value : a.next();
});
}),
E(O),
s(O, c, "Generator"),
s(O, a, function () {
return this;
}),
s(O, "toString", function () {
return "[object Generator]";
}),
(e.keys = function (t) {
var e = Object(t),
r = [];
for (var n in e) r.push(n);
return (
r.reverse(),
function t() {
for (; r.length; ) {
var n = r.pop();
if (n in e) return (t.value = n), (t.done = !1), t;
}
return (t.done = !0), t;
}
);
}),
(e.values = P),
(k.prototype = {
constructor: k,
reset: function (e) {
if (
((this.prev = 0),
(this.next = 0),
(this.sent = this._sent = t),
(this.done = !1),
(this.delegate = null),
(this.method = "next"),
(this.arg = t),
this.tryEntries.forEach(_),
!e)
)
for (var r in this)
"t" === r.charAt(0) &&
n.call(this, r) &&
!isNaN(+r.slice(1)) &&
(this[r] = t);
},
stop: function () {
this.done = !0;
var t = this.tryEntries[0].completion;
if ("throw" === t.type) throw t.arg;
return this.rval;
},
dispatchException: function (e) {
if (this.done) throw e;
var r = this;
function o(n, o) {
return (
(u.type = "throw"),
(u.arg = e),
(r.next = n),
o && ((r.method = "next"), (r.arg = t)),
!!o
);
}
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
var a = this.tryEntries[i],
u = a.completion;
if ("root" === a.tryLoc) return o("end");
if (a.tryLoc <= this.prev) {
var c = n.call(a, "catchLoc"),
s = n.call(a, "finallyLoc");
if (c && s) {
if (this.prev < a.catchLoc) return o(a.catchLoc, !0);
if (this.prev < a.finallyLoc) return o(a.finallyLoc);
} else if (c) {
if (this.prev < a.catchLoc) return o(a.catchLoc, !0);
} else {
if (!s) throw Error("try statement without catch or finally");
if (this.prev < a.finallyLoc) return o(a.finallyLoc);
}
}
}
},
abrupt: function (t, e) {
for (var r = this.tryEntries.length - 1; r >= 0; --r) {
var o = this.tryEntries[r];
if (
o.tryLoc <= this.prev &&
n.call(o, "finallyLoc") &&
this.prev < o.finallyLoc
) {
var i = o;
break;
}
}
i &&
("break" === t || "continue" === t) &&
i.tryLoc <= e &&
e <= i.finallyLoc &&
(i = null);
var a = i ? i.completion : {};
return (
(a.type = t),
(a.arg = e),
i
? ((this.method = "next"), (this.next = i.finallyLoc), v)
: this.complete(a)
);
},
complete: function (t, e) {
if ("throw" === t.type) throw t.arg;
return (
"break" === t.type || "continue" === t.type
? (this.next = t.arg)
: "return" === t.type
? ((this.rval = this.arg = t.arg),
(this.method = "return"),
(this.next = "end"))
: "normal" === t.type && e && (this.next = e),
v
);
},
finish: function (t) {
for (var e = this.tryEntries.length - 1; e >= 0; --e) {
var r = this.tryEntries[e];
if (r.finallyLoc === t)
return this.complete(r.completion, r.afterLoc), _(r), v;
}
},
catch: function (t) {
for (var e = this.tryEntries.length - 1; e >= 0; --e) {
var r = this.tryEntries[e];
if (r.tryLoc === t) {
var n = r.completion;
if ("throw" === n.type) {
var o = n.arg;
_(r);
}
return o;
}
}
throw Error("illegal catch attempt");
},
delegateYield: function (e, r, n) {
return (
(this.delegate = { iterator: P(e), resultName: r, nextLoc: n }),
"next" === this.method && (this.arg = t),
v
);
},
}),
e
);
}
function e$(t, e, r, n, o, i, a) {
try {
var u = t[i](a),
c = u.value;
} catch (t) {
r(t);
return;
}
u.done ? e(c) : Promise.resolve(c).then(n, o);
}
t.s(["RankingService", () => eY], 94892);
function eJ(t, e) {
return (eJ = Object.setPrototypeOf
? Object.setPrototypeOf.bind()
: function (t, e) {
return (t.__proto__ = e), t;
})(t, e);
}
function eQ(t) {
return (eQ = Object.setPrototypeOf
? Object.getPrototypeOf.bind()
: function (t) {
return t.__proto__ || Object.getPrototypeOf(t);
})(t);
}
var eX = (function (t) {
if ("function" != typeof t && null !== t)
throw TypeError("Super expression must either be null or a function");
(a.prototype = Object.create(t && t.prototype, {
constructor: { value: a, writable: !0, configurable: !0 },
})),
Object.defineProperty(a, "prototype", { writable: !1 }),
t && eJ(a, t);
var e,
r,
n,
o,
i =
((e = (function () {
if (
"u" < typeof Reflect ||
!Reflect.construct ||
Reflect.construct.sham
)
return !1;
if ("function" == typeof Proxy) return !0;
try {
return (
Boolean.prototype.valueOf.call(
Reflect.construct(Boolean, [], function () {}),
),
!0
);
} catch (t) {
return !1;
}
})()),
function () {
var t,
r = eQ(a);
return (
(t = e
? Reflect.construct(r, arguments, eQ(this).constructor)
: r.apply(this, arguments)),
(function (t, e) {
if (e && ("object" === ez(e) || "function" == typeof e))
return e;
if (void 0 !== e)
throw TypeError(
"Derived constructors may only return object or undefined",
);
var r = t;
if (void 0 === r)
throw ReferenceError(
"this hasn't been initialised - super() hasn't been called",
);
return r;
})(this, t)
);
});
function a() {
if (!(this instanceof a))
throw TypeError("Cannot call a class as a function");
return i.apply(this, arguments);
}
return (
(o = [
{
key: "getOneByTitle",
value:
((r = eK().mark(function t(e, r) {
var n, o;
return eK().wrap(
function (t) {
for (;;)
switch ((t.prev = t.next)) {
case 0:
return (
(t.prev = 0),
(n = r ? [r, e].join("_") : e),
(t.next = 4),
this.apiClient.post("/community/getArticleDetail", {
title: n,
})
);
case 4:
return (
(o = t.sent.data), t.abrupt("return", o || null)
);
case 9:
return (
(t.prev = 9),
(t.t0 = t.catch(0)),
t.abrupt("return", null)
);
case 12:
case "end":
return t.stop();
}
},
t,
this,
[[0, 9]],
);
})),
(n = function () {
var t = this,
e = arguments;
return new Promise(function (n, o) {
var i = r.apply(t, e);
function a(t) {
e$(i, n, o, a, u, "next", t);
}
function u(t) {
e$(i, n, o, a, u, "throw", t);
}
a(void 0);
});
}),
function (t, e) {
return n.apply(this, arguments);
}),
},
]),
(function (t, e) {
for (var r = 0; r < e.length; r++) {
var n = e[r];
(n.enumerable = n.enumerable || !1),
(n.configurable = !0),
"value" in n && (n.writable = !0),
Object.defineProperty(
t,
(function (t) {
var e = (function (t, e) {
if ("object" != ez(t) || !t) return t;
var r = t[Symbol.toPrimitive];
if (void 0 !== r) {
var n = r.call(t, e || "default");
if ("object" != ez(n)) return n;
throw TypeError(
"@@toPrimitive must return a primitive value.",
);
}
return ("string" === e ? String : Number)(t);
})(t, "string");
return "symbol" == ez(e) ? e : String(e);
})(n.key),
n,
);
}
})(a.prototype, o),
Object.defineProperty(a, "prototype", { writable: !1 }),
a
);
})(eG);
t.s(["DocumentService", () => eX], 556229);
var eZ = t.i(618435);
let e0 =
"u" > typeof crypto &&
crypto.randomUUID &&
crypto.randomUUID.bind(crypto),
e1 = new Uint8Array(16),
e2 = [];
for (let t = 0; t < 256; ++t) e2.push((t + 256).toString(16).slice(1));
let e3 = function (t, r, n) {
if (e0 && !r && !t) return e0();
let o =
(t = t || {}).random ||
(
t.rng ||
function () {
if (
!e &&
!(e =
"u" > typeof crypto &&
crypto.getRandomValues &&
crypto.getRandomValues.bind(crypto))
)
throw Error(
"crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported",
);
return e(e1);
}
)();
if (((o[6] = (15 & o[6]) | 64), (o[8] = (63 & o[8]) | 128), r)) {
n = n || 0;
for (let t = 0; t < 16; ++t) r[n + t] = o[t];
return r;
}
return (function (t, e = 0) {
return (
e2[t[e + 0]] +
e2[t[e + 1]] +
e2[t[e + 2]] +
e2[t[e + 3]] +
"-" +
e2[t[e + 4]] +
e2[t[e + 5]] +
"-" +
e2[t[e + 6]] +
e2[t[e + 7]] +
"-" +
e2[t[e + 8]] +
e2[t[e + 9]] +
"-" +
e2[t[e + 10]] +
e2[t[e + 11]] +
e2[t[e + 12]] +
e2[t[e + 13]] +
e2[t[e + 14]] +
e2[t[e + 15]]
);
})(o);
};
function e4(t) {
return (e4 =
"function" == typeof Symbol && "symbol" == typeof Symbol.iterator
? function (t) {
return typeof t;
}
: function (t) {
return t &&
"function" == typeof Symbol &&
t.constructor === Symbol &&
t !== Symbol.prototype
? "symbol"
: typeof t;
})(t);
}
function e7() {
e7 = function () {
return e;
};
var t,
e = {},
r = Object.prototype,
n = r.hasOwnProperty,
o =
Object.defineProperty ||
function (t, e, r) {
t[e] = r.value;
},
i = "function" == typeof Symbol ? Symbol : {},
a = i.iterator || "@@iterator",
u = i.asyncIterator || "@@asyncIterator",
c = i.toStringTag || "@@toStringTag";
function s(t, e, r) {
return (
Object.defineProperty(t, e, {
value: r,
enumerable: !0,
configurable: !0,
writable: !0,
}),
t[e]
);
}
try {
s({}, "");
} catch (t) {
s = function (t, e, r) {
return (t[e] = r);
};
}
function l(e, r, n, i) {
var a,
u,
c,
s,
l = Object.create((r && r.prototype instanceof d ? r : d).prototype);
return (
o(l, "_invoke", {
value:
((a = e),
(u = n),
(c = new k(i || [])),
(s = p),
function (e, r) {
if (s === h) throw Error("Generator is already running");
if (s === y) {
if ("throw" === e) throw r;
return { value: t, done: !0 };
}
for (c.method = e, c.arg = r; ; ) {
var n = c.delegate;
if (n) {
var o = (function e(r, n) {
var o = n.method,
i = r.iterator[o];
if (i === t)
return (
(n.delegate = null),
("throw" === o &&
r.iterator.return &&
((n.method = "return"),
(n.arg = t),
e(r, n),
"throw" === n.method)) ||
("return" !== o &&
((n.method = "throw"),
(n.arg = TypeError(
"The iterator does not provide a '" +
o +
"' method",
)))),
v
);
var a = f(i, r.iterator, n.arg);
if ("throw" === a.type)
return (
(n.method = "throw"),
(n.arg = a.arg),
(n.delegate = null),
v
);
var u = a.arg;
return u
? u.done
? ((n[r.resultName] = u.value),
(n.next = r.nextLoc),
"return" !== n.method &&
((n.method = "next"), (n.arg = t)),
(n.delegate = null),
v)
: u
: ((n.method = "throw"),
(n.arg = TypeError(
"iterator result is not an object",
)),
(n.delegate = null),
v);
})(n, c);
if (o) {
if (o === v) continue;
return o;
}
}
if ("next" === c.method) c.sent = c._sent = c.arg;
else if ("throw" === c.method) {
if (s === p) throw ((s = y), c.arg);
c.dispatchException(c.arg);
} else "return" === c.method && c.abrupt("return", c.arg);
s = h;
var i = f(a, u, c);
if ("normal" === i.type) {
if (((s = c.done ? y : "suspendedYield"), i.arg === v))
continue;
return { value: i.arg, done: c.done };
}
"throw" === i.type &&
((s = y), (c.method = "throw"), (c.arg = i.arg));
}
}),
}),
l
);
}
function f(t, e, r) {
try {
return { type: "normal", arg: t.call(e, r) };
} catch (t) {
return { type: "throw", arg: t };
}
}
e.wrap = l;
var p = "suspendedStart",
h = "executing",
y = "completed",
v = {};
function d() {}
function g() {}
function m() {}
var b = {};
s(b, a, function () {
return this;
});
var w = Object.getPrototypeOf,
x = w && w(w(P([])));
x && x !== r && n.call(x, a) && (b = x);
var O = (m.prototype = d.prototype = Object.create(b));
function E(t) {
["next", "throw", "return"].forEach(function (e) {
s(t, e, function (t) {
return this._invoke(e, t);
});
});
}
function L(t, e) {
var r;
o(this, "_invoke", {
value: function (o, i) {
function a() {
return new e(function (r, a) {
!(function r(o, i, a, u) {
var c = f(t[o], t, i);
if ("throw" !== c.type) {
var s = c.arg,
l = s.value;
return l && "object" == e4(l) && n.call(l, "__await")
? e.resolve(l.__await).then(
function (t) {
r("next", t, a, u);
},
function (t) {
r("throw", t, a, u);
},
)
: e.resolve(l).then(
function (t) {
(s.value = t), a(s);
},
function (t) {
return r("throw", t, a, u);
},
);
}
u(c.arg);
})(o, i, r, a);
});
}
return (r = r ? r.then(a, a) : a());
},
});
}
function j(t) {
var e = { tryLoc: t[0] };
1 in t && (e.catchLoc = t[1]),
2 in t && ((e.finallyLoc = t[2]), (e.afterLoc = t[3])),
this.tryEntries.push(e);
}
function _(t) {
var e = t.completion || {};
(e.type = "normal"), delete e.arg, (t.completion = e);
}
function k(t) {
(this.tryEntries = [{ tryLoc: "root" }]),
t.forEach(j, this),
this.reset(!0);
}
function P(e) {
if (e || "" === e) {
var r = e[a];
if (r) return r.call(e);
if ("function" == typeof e.next) return e;
if (!isNaN(e.length)) {
var o = -1,
i = function r() {
for (; ++o < e.length; )
if (n.call(e, o)) return (r.value = e[o]), (r.done = !1), r;
return (r.value = t), (r.done = !0), r;
};
return (i.next = i);
}
}
throw TypeError(e4(e) + " is not iterable");
}
return (
(g.prototype = m),
o(O, "constructor", { value: m, configurable: !0 }),
o(m, "constructor", { value: g, configurable: !0 }),
(g.displayName = s(m, c, "GeneratorFunction")),
(e.isGeneratorFunction = function (t) {
var e = "function" == typeof t && t.constructor;
return (
!!e &&
(e === g || "GeneratorFunction" === (e.displayName || e.name))
);
}),
(e.mark = function (t) {
return (
Object.setPrototypeOf
? Object.setPrototypeOf(t, m)
: ((t.__proto__ = m), s(t, c, "GeneratorFunction")),
(t.prototype = Object.create(O)),
t
);
}),
(e.awrap = function (t) {
return { __await: t };
}),
E(L.prototype),
s(L.prototype, u, function () {
return this;
}),
(e.AsyncIterator = L),
(e.async = function (t, r, n, o, i) {
void 0 === i && (i = Promise);
var a = new L(l(t, r, n, o), i);
return e.isGeneratorFunction(r)
? a
: a.next().then(function (t) {
return t.done ? t.value : a.next();
});
}),
E(O),
s(O, c, "Generator"),
s(O, a, function () {
return this;
}),
s(O, "toString", function () {
return "[object Generator]";
}),
(e.keys = function (t) {
var e = Object(t),
r = [];
for (var n in e) r.push(n);
return (
r.reverse(),
function t() {
for (; r.length; ) {
var n = r.pop();
if (n in e) return (t.value = n), (t.done = !1), t;
}
return (t.done = !0), t;
}
);
}),
(e.values = P),
(k.prototype = {
constructor: k,
reset: function (e) {
if (
((this.prev = 0),
(this.next = 0),
(this.sent = this._sent = t),
(this.done = !1),
(this.delegate = null),
(this.method = "next"),
(this.arg = t),
this.tryEntries.forEach(_),
!e)
)
for (var r in this)
"t" === r.charAt(0) &&
n.call(this, r) &&
!isNaN(+r.slice(1)) &&
(this[r] = t);
},
stop: function () {
this.done = !0;
var t = this.tryEntries[0].completion;
if ("throw" === t.type) throw t.arg;
return this.rval;
},
dispatchException: function (e) {
if (this.done) throw e;
var r = this;
function o(n, o) {
return (
(u.type = "throw"),
(u.arg = e),
(r.next = n),
o && ((r.method = "next"), (r.arg = t)),
!!o
);
}
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
var a = this.tryEntries[i],
u = a.completion;
if ("root" === a.tryLoc) return o("end");
if (a.tryLoc <= this.prev) {
var c = n.call(a, "catchLoc"),
s = n.call(a, "finallyLoc");
if (c && s) {
if (this.prev < a.catchLoc) return o(a.catchLoc, !0);
if (this.prev < a.finallyLoc) return o(a.finallyLoc);
} else if (c) {
if (this.prev < a.catchLoc) return o(a.catchLoc, !0);
} else {
if (!s) throw Error("try statement without catch or finally");
if (this.prev < a.finallyLoc) return o(a.finallyLoc);
}
}
}
},
abrupt: function (t, e) {
for (var r = this.tryEntries.length - 1; r >= 0; --r) {
var o = this.tryEntries[r];
if (
o.tryLoc <= this.prev &&
n.call(o, "finallyLoc") &&
this.prev < o.finallyLoc
) {
var i = o;
break;
}
}
i &&
("break" === t || "continue" === t) &&
i.tryLoc <= e &&
e <= i.finallyLoc &&
(i = null);
var a = i ? i.completion : {};
return (
(a.type = t),
(a.arg = e),
i
? ((this.method = "next"), (this.next = i.finallyLoc), v)
: this.complete(a)
);
},
complete: function (t, e) {
if ("throw" === t.type) throw t.arg;
return (
"break" === t.type || "continue" === t.type
? (this.next = t.arg)
: "return" === t.type
? ((this.rval = this.arg = t.arg),
(this.method = "return"),
(this.next = "end"))
: "normal" === t.type && e && (this.next = e),
v
);
},
finish: function (t) {
for (var e = this.tryEntries.length - 1; e >= 0; --e) {
var r = this.tryEntries[e];
if (r.finallyLoc === t)
return this.complete(r.completion, r.afterLoc), _(r), v;
}
},
catch: function (t) {
for (var e = this.tryEntries.length - 1; e >= 0; --e) {
var r = this.tryEntries[e];
if (r.tryLoc === t) {
var n = r.completion;
if ("throw" === n.type) {
var o = n.arg;
_(r);
}
return o;
}
}
throw Error("illegal catch attempt");
},
delegateYield: function (e, r, n) {
return (
(this.delegate = { iterator: P(e), resultName: r, nextLoc: n }),
"next" === this.method && (this.arg = t),
v
);
},
}),
e
);
}
function e8(t, e) {
var r = Object.keys(t);
if (Object.getOwnPropertySymbols) {
var n = Object.getOwnPropertySymbols(t);
e &&
(n = n.filter(function (e) {
return Object.getOwnPropertyDescriptor(t, e).enumerable;
})),
r.push.apply(r, n);
}
return r;
}
function e5(t) {
for (var e = 1; e < arguments.length; e++) {
var r = null != arguments[e] ? arguments[e] : {};
e % 2
? e8(Object(r), !0).forEach(function (e) {
var n, o, i;
(n = t),
(o = e),
(i = r[e]),
(o = rt(o)) in n
? Object.defineProperty(n, o, {
value: i,
enumerable: !0,
configurable: !0,
writable: !0,
})
: (n[o] = i);
})
: Object.getOwnPropertyDescriptors
? Object.defineProperties(t, Object.getOwnPropertyDescriptors(r))
: e8(Object(r)).forEach(function (e) {
Object.defineProperty(
t,
e,
Object.getOwnPropertyDescriptor(r, e),
);
});
}
return t;
}
function e6(t, e, r, n, o, i, a) {
try {
var u = t[i](a),
c = u.value;
} catch (t) {
r(t);
return;
}
u.done ? e(c) : Promise.resolve(c).then(n, o);
}
function e9(t) {
return function () {
var e = this,
r = arguments;
return new Promise(function (n, o) {
var i = t.apply(e, r);
function a(t) {
e6(i, n, o, a, u, "next", t);
}
function u(t) {
e6(i, n, o, a, u, "throw", t);
}
a(void 0);
});
};
}
function rt(t) {
var e = (function (t, e) {
if ("object" != e4(t) || !t) return t;
var r = t[Symbol.toPrimitive];
if (void 0 !== r) {
var n = r.call(t, e || "default");
if ("object" != e4(n)) return n;
throw TypeError("@@toPrimitive must return a primitive value.");
}
return ("string" === e ? String : Number)(t);
})(t, "string");
return "symbol" == e4(e) ? e : String(e);
}
function re(t, e) {
return (re = Object.setPrototypeOf
? Object.setPrototypeOf.bind()
: function (t, e) {
return (t.__proto__ = e), t;
})(t, e);
}
function rr(t) {
return (rr = Object.setPrototypeOf
? Object.getPrototypeOf.bind()
: function (t) {
return t.__proto__ || Object.getPrototypeOf(t);
})(t);
}
var rn = (function (t) {
if ("function" != typeof t && null !== t)
throw TypeError("Super expression must either be null or a function");
(u.prototype = Object.create(t && t.prototype, {
constructor: { value: u, writable: !0, configurable: !0 },
})),
Object.defineProperty(u, "prototype", { writable: !1 }),
t && re(u, t);
var e,
r,
n,
o,
i,
a =
((e = (function () {
if (
"u" < typeof Reflect ||
!Reflect.construct ||
Reflect.construct.sham
)
return !1;
if ("function" == typeof Proxy) return !0;
try {
return (
Boolean.prototype.valueOf.call(
Reflect.construct(Boolean, [], function () {}),
),
!0
);
} catch (t) {
return !1;
}
})()),
function () {
var t,
r = rr(u);
return (
(t = e
? Reflect.construct(r, arguments, rr(this).constructor)
: r.apply(this, arguments)),
(function (t, e) {
if (e && ("object" === e4(e) || "function" == typeof e))
return e;
if (void 0 !== e)
throw TypeError(
"Derived constructors may only return object or undefined",
);
var r = t;
if (void 0 === r)
throw ReferenceError(
"this hasn't been initialised - super() hasn't been called",
);
return r;
})(this, t)
);
});
function u() {
if (!(this instanceof u))
throw TypeError("Cannot call a class as a function");
return a.apply(this, arguments);
}
return (
(i = [
{
key: "minify",
value: function (t) {
return null == t
? void 0
: t.map(function (t) {
return t.isActivity === eD.TRUE
? (0, eZ.default)(t, [
"height",
"imageUrl",
"isActivity",
"landingPage",
"uuid",
"width",
"vipUsed",
"recommendOtherRes",
"versionUuid",
"isPackaged",
"images",
"versionId",
"webpUrl",
"utLogMap",
"abVariant",
])
: (0, eZ.default)(t, [
"avatar",
"downloadCount",
"height",
"imageCount",
"imageUrl",
"score",
"isOriginal",
"displayOrder",
"isActivity",
"isRunnable",
"modelTypeName",
"modelType",
"baseType",
"name",
"nickname",
"userUuid",
"openAccess",
"openRun",
"runCount",
"tagsV2",
"tagsOperateLabel",
"tagsBelongLabel",
"uuid",
"width",
"vipUsed",
"images",
"recommendOtherRes",
"versionUuid",
"isPackaged",
"toolEvaluationAuditStatus",
"versionId",
"webpUrl",
"templateType",
"utLogMap",
"abVariant",
]);
});
},
},
{
key: "getList",
value:
((r = e9(
e7().mark(function t(e) {
var r, n, o, i, a, u, c, s, l, f, p, h, y;
return e7().wrap(
function (t) {
for (;;)
switch ((t.prev = t.next)) {
case 0:
return (
(o =
(n = new URLSearchParams(
null == (r = window)
? void 0
: r.location.search,
)).get("sourceId") ||
(null == n ? void 0 : n.get("sourceid"))),
(i =
(null == n ? void 0 : n.get("keywordId")) ||
(null == n ? void 0 : n.get("keywordid"))),
(a = e.isWorkflows),
(u = e.isHome),
(c = null == n ? void 0 : n.get("ideaTag")),
(s = e5({}, e)).tagId &&
!s.tagV2Id &&
(s.tagV2Id = s.tagId),
delete s.tagId,
delete s.isWorkflows,
o && ((s.sourceId = o), (s.adSourceId = o)),
c && (s.ideaTag = c),
i && (s.adKeywordId = i),
(t.prev = 12),
(f = a
? "/comfy/search"
: u
? "/model/feed/stream"
: "/model/search"),
(t.next = 16),
this.apiClient.post(f, s)
);
case 16:
if (((h = (p = t.sent).data), 0 === p.code)) {
t.next = 21;
break;
}
return t.abrupt("return", {
isError: !0,
data: [],
page: e.page || 1,
pageSize: e.pageSize || 30,
total: 0,
});
case 21:
return (
(y =
null == h || null == (l = h.data)
? void 0
: l.map(function (t) {
return e5(
e5({}, t),
{},
{
isActivity:
t.isActivity === eD.TRUE
? eD.TRUE
: eD.FALSE,
uuid: t.uuid || e3(),
},
);
})),
(h.data = y),
t.abrupt("return", h)
);
case 26:
return (
(t.prev = 26),
(t.t0 = t.catch(12)),
t.abrupt("return", {
isError: !0,
data: [],
page: e.page || 1,
pageSize: e.pageSize || 30,
total: 0,
})
);
case 29:
case "end":
return t.stop();
}
},
t,
this,
[[12, 26]],
);
}),
)),
function (t) {
return r.apply(this, arguments);
}),
},
{
key: "getByCode",
value:
((n = e9(
e7().mark(function t() {
var e,
r,
n = arguments;
return e7().wrap(
function (t) {
for (;;)
switch ((t.prev = t.next)) {
case 0:
return (
(e =
n.length > 0 && void 0 !== n[0]
? n[0]
: "activityDescription"),
(t.next = 3),
this.apiClient.post(
"/model/getByCode/".concat(e),
{},
)
);
case 3:
return (r = t.sent.data), t.abrupt("return", r);
case 6:
case "end":
return t.stop();
}
},
t,
this,
);
}),
)),
function () {
return n.apply(this, arguments);
}),
},
{
key: "getFeedSelected",
value:
((o = e9(
e7().mark(function t() {
var e;
return e7().wrap(
function (t) {
for (;;)
switch ((t.prev = t.next)) {
case 0:
return (
(t.next = 2),
this.apiClient.post("/comfy/homepage", {})
);
case 2:
return (e = t.sent.data), t.abrupt("return", e);
case 5:
case "end":
return t.stop();
}
},
t,
this,
);
}),
)),
function () {
return o.apply(this, arguments);
}),
},
]),
(function (t, e) {
for (var r = 0; r < e.length; r++) {
var n = e[r];
(n.enumerable = n.enumerable || !1),
(n.configurable = !0),
"value" in n && (n.writable = !0),
Object.defineProperty(t, rt(n.key), n);
}
})(u.prototype, i),
Object.defineProperty(u, "prototype", { writable: !1 }),
u
);
})(eG);
function ro(t) {
return (ro =
"function" == typeof Symbol && "symbol" == typeof Symbol.iterator
? function (t) {
return typeof t;
}
: function (t) {
return t &&
"function" == typeof Symbol &&
t.constructor === Symbol &&
t !== Symbol.prototype
? "symbol"
: typeof t;
})(t);
}
function ri() {
ri = function () {
return e;
};
var t,
e = {},
r = Object.prototype,
n = r.hasOwnProperty,
o =
Object.defineProperty ||
function (t, e, r) {
t[e] = r.value;
},
i = "function" == typeof Symbol ? Symbol : {},
a = i.iterator || "@@iterator",
u = i.asyncIterator || "@@asyncIterator",
c = i.toStringTag || "@@toStringTag";
function s(t, e, r) {
return (
Object.defineProperty(t, e, {
value: r,
enumerable: !0,
configurable: !0,
writable: !0,
}),
t[e]
);
}
try {
s({}, "");
} catch (t) {
s = function (t, e, r) {
return (t[e] = r);
};
}
function l(e, r, n, i) {
var a,
u,
c,
s,
l = Object.create((r && r.prototype instanceof d ? r : d).prototype);
return (
o(l, "_invoke", {
value:
((a = e),
(u = n),
(c = new k(i || [])),
(s = p),
function (e, r) {
if (s === h) throw Error("Generator is already running");
if (s === y) {
if ("throw" === e) throw r;
return { value: t, done: !0 };
}
for (c.method = e, c.arg = r; ; ) {
var n = c.delegate;
if (n) {
var o = (function e(r, n) {
var o = n.method,
i = r.iterator[o];
if (i === t)
return (
(n.delegate = null),
("throw" === o &&
r.iterator.return &&
((n.method = "return"),
(n.arg = t),
e(r, n),
"throw" === n.method)) ||
("return" !== o &&
((n.method = "throw"),
(n.arg = TypeError(
"The iterator does not provide a '" +
o +
"' method",
)))),
v
);
var a = f(i, r.iterator, n.arg);
if ("throw" === a.type)
return (
(n.method = "throw"),
(n.arg = a.arg),
(n.delegate = null),
v
);
var u = a.arg;
return u
? u.done
? ((n[r.resultName] = u.value),
(n.next = r.nextLoc),
"return" !== n.method &&
((n.method = "next"), (n.arg = t)),
(n.delegate = null),
v)
: u
: ((n.method = "throw"),
(n.arg = TypeError(
"iterator result is not an object",
)),
(n.delegate = null),
v);
})(n, c);
if (o) {
if (o === v) continue;
return o;
}
}
if ("next" === c.method) c.sent = c._sent = c.arg;
else if ("throw" === c.method) {
if (s === p) throw ((s = y), c.arg);
c.dispatchException(c.arg);
} else "return" === c.method && c.abrupt("return", c.arg);
s = h;
var i = f(a, u, c);
if ("normal" === i.type) {
if (((s = c.done ? y : "suspendedYield"), i.arg === v))
continue;
return { value: i.arg, done: c.done };
}
"throw" === i.type &&
((s = y), (c.method = "throw"), (c.arg = i.arg));
}
}),
}),
l
);
}
function f(t, e, r) {
try {
return { type: "normal", arg: t.call(e, r) };
} catch (t) {
return { type: "throw", arg: t };
}
}
e.wrap = l;
var p = "suspendedStart",
h = "executing",
y = "completed",
v = {};
function d() {}
function g() {}
function m() {}
var b = {};
s(b, a, function () {
return this;
});
var w = Object.getPrototypeOf,
x = w && w(w(P([])));
x && x !== r && n.call(x, a) && (b = x);
var O = (m.prototype = d.prototype = Object.create(b));
function E(t) {
["next", "throw", "return"].forEach(function (e) {
s(t, e, function (t) {
return this._invoke(e, t);
});
});
}
function L(t, e) {
var r;
o(this, "_invoke", {
value: function (o, i) {
function a() {
return new e(function (r, a) {
!(function r(o, i, a, u) {
var c = f(t[o], t, i);
if ("throw" !== c.type) {
var s = c.arg,
l = s.value;
return l && "object" == ro(l) && n.call(l, "__await")
? e.resolve(l.__await).then(
function (t) {
r("next", t, a, u);
},
function (t) {
r("throw", t, a, u);
},
)
: e.resolve(l).then(
function (t) {
(s.value = t), a(s);
},
function (t) {
return r("throw", t, a, u);
},
);
}
u(c.arg);
})(o, i, r, a);
});
}
return (r = r ? r.then(a, a) : a());
},
});
}
function j(t) {
var e = { tryLoc: t[0] };
1 in t && (e.catchLoc = t[1]),
2 in t && ((e.finallyLoc = t[2]), (e.afterLoc = t[3])),
this.tryEntries.push(e);
}
function _(t) {
var e = t.completion || {};
(e.type = "normal"), delete e.arg, (t.completion = e);
}
function k(t) {
(this.tryEntries = [{ tryLoc: "root" }]),
t.forEach(j, this),
this.reset(!0);
}
function P(e) {
if (e || "" === e) {
var r = e[a];
if (r) return r.call(e);
if ("function" == typeof e.next) return e;
if (!isNaN(e.length)) {
var o = -1,
i = function r() {
for (; ++o < e.length; )
if (n.call(e, o)) return (r.value = e[o]), (r.done = !1), r;
return (r.value = t), (r.done = !0), r;
};
return (i.next = i);
}
}
throw TypeError(ro(e) + " is not iterable");
}
return (
(g.prototype = m),
o(O, "constructor", { value: m, configurable: !0 }),
o(m, "constructor", { value: g, configurable: !0 }),
(g.displayName = s(m, c, "GeneratorFunction")),
(e.isGeneratorFunction = function (t) {
var e = "function" == typeof t && t.constructor;
return (
!!e &&
(e === g || "GeneratorFunction" === (e.displayName || e.name))
);
}),
(e.mark = function (t) {
return (
Object.setPrototypeOf
? Object.setPrototypeOf(t, m)
: ((t.__proto__ = m), s(t, c, "GeneratorFunction")),
(t.prototype = Object.create(O)),
t
);
}),
(e.awrap = function (t) {
return { __await: t };
}),
E(L.prototype),
s(L.prototype, u, function () {
return this;
}),
(e.AsyncIterator = L),
(e.async = function (t, r, n, o, i) {
void 0 === i && (i = Promise);
var a = new L(l(t, r, n, o), i);
return e.isGeneratorFunction(r)
? a
: a.next().then(function (t) {
return t.done ? t.value : a.next();
});
}),
E(O),
s(O, c, "Generator"),
s(O, a, function () {
return this;
}),
s(O, "toString", function () {
return "[object Generator]";
}),
(e.keys = function (t) {
var e = Object(t),
r = [];
for (var n in e) r.push(n);
return (
r.reverse(),
function t() {
for (; r.length; ) {
var n = r.pop();
if (n in e) return (t.value = n), (t.done = !1), t;
}
return (t.done = !0), t;
}
);
}),
(e.values = P),
(k.prototype = {
constructor: k,
reset: function (e) {
if (
((this.prev = 0),
(this.next = 0),
(this.sent = this._sent = t),
(this.done = !1),
(this.delegate = null),
(this.method = "next"),
(this.arg = t),
this.tryEntries.forEach(_),
!e)
)
for (var r in this)
"t" === r.charAt(0) &&
n.call(this, r) &&
!isNaN(+r.slice(1)) &&
(this[r] = t);
},
stop: function () {
this.done = !0;
var t = this.tryEntries[0].completion;
if ("throw" === t.type) throw t.arg;
return this.rval;
},
dispatchException: function (e) {
if (this.done) throw e;
var r = this;
function o(n, o) {
return (
(u.type = "throw"),
(u.arg = e),
(r.next = n),
o && ((r.method = "next"), (r.arg = t)),
!!o
);
}
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
var a = this.tryEntries[i],
u = a.completion;
if ("root" === a.tryLoc) return o("end");
if (a.tryLoc <= this.prev) {
var c = n.call(a, "catchLoc"),
s = n.call(a, "finallyLoc");
if (c && s) {
if (this.prev < a.catchLoc) return o(a.catchLoc, !0);
if (this.prev < a.finallyLoc) return o(a.finallyLoc);
} else if (c) {
if (this.prev < a.catchLoc) return o(a.catchLoc, !0);
} else {
if (!s) throw Error("try statement without catch or finally");
if (this.prev < a.finallyLoc) return o(a.finallyLoc);
}
}
}
},
abrupt: function (t, e) {
for (var r = this.tryEntries.length - 1; r >= 0; --r) {
var o = this.tryEntries[r];
if (
o.tryLoc <= this.prev &&
n.call(o, "finallyLoc") &&
this.prev < o.finallyLoc
) {
var i = o;
break;
}
}
i &&
("break" === t || "continue" === t) &&
i.tryLoc <= e &&
e <= i.finallyLoc &&
(i = null);
var a = i ? i.completion : {};
return (
(a.type = t),
(a.arg = e),
i
? ((this.method = "next"), (this.next = i.finallyLoc), v)
: this.complete(a)
);
},
complete: function (t, e) {
if ("throw" === t.type) throw t.arg;
return (
"break" === t.type || "continue" === t.type
? (this.next = t.arg)
: "return" === t.type
? ((this.rval = this.arg = t.arg),
(this.method = "return"),
(this.next = "end"))
: "normal" === t.type && e && (this.next = e),
v
);
},
finish: function (t) {
for (var e = this.tryEntries.length - 1; e >= 0; --e) {
var r = this.tryEntries[e];
if (r.finallyLoc === t)
return this.complete(r.completion, r.afterLoc), _(r), v;
}
},
catch: function (t) {
for (var e = this.tryEntries.length - 1; e >= 0; --e) {
var r = this.tryEntries[e];
if (r.tryLoc === t) {
var n = r.completion;
if ("throw" === n.type) {
var o = n.arg;
_(r);
}
return o;
}
}
throw Error("illegal catch attempt");
},
delegateYield: function (e, r, n) {
return (
(this.delegate = { iterator: P(e), resultName: r, nextLoc: n }),
"next" === this.method && (this.arg = t),
v
);
},
}),
e
);
}
function ra(t, e) {
var r = Object.keys(t);
if (Object.getOwnPropertySymbols) {
var n = Object.getOwnPropertySymbols(t);
e &&
(n = n.filter(function (e) {
return Object.getOwnPropertyDescriptor(t, e).enumerable;
})),
r.push.apply(r, n);
}
return r;
}
function ru(t) {
for (var e = 1; e < arguments.length; e++) {
var r = null != arguments[e] ? arguments[e] : {};
e % 2
? ra(Object(r), !0).forEach(function (e) {
var n, o, i;
(n = t),
(o = e),
(i = r[e]),
(o = rl(o)) in n
? Object.defineProperty(n, o, {
value: i,
enumerable: !0,
configurable: !0,
writable: !0,
})
: (n[o] = i);
})
: Object.getOwnPropertyDescriptors
? Object.defineProperties(t, Object.getOwnPropertyDescriptors(r))
: ra(Object(r)).forEach(function (e) {
Object.defineProperty(
t,
e,
Object.getOwnPropertyDescriptor(r, e),
);
});
}
return t;
}
function rc(t, e, r, n, o, i, a) {
try {
var u = t[i](a),
c = u.value;
} catch (t) {
r(t);
return;
}
u.done ? e(c) : Promise.resolve(c).then(n, o);
}
function rs(t) {
return function () {
var e = this,
r = arguments;
return new Promise(function (n, o) {
var i = t.apply(e, r);
function a(t) {
rc(i, n, o, a, u, "next", t);
}
function u(t) {
rc(i, n, o, a, u, "throw", t);
}
a(void 0);
});
};
}
t.s(["ModelService", () => rn], 339225), t.s([], 510398);
function rl(t) {
var e = (function (t, e) {
if ("object" != ro(t) || !t) return t;
var r = t[Symbol.toPrimitive];
if (void 0 !== r) {
var n = r.call(t, e || "default");
if ("object" != ro(n)) return n;
throw TypeError("@@toPrimitive must return a primitive value.");
}
return ("string" === e ? String : Number)(t);
})(t, "string");
return "symbol" == ro(e) ? e : String(e);
}
function rf(t, e) {
return (rf = Object.setPrototypeOf
? Object.setPrototypeOf.bind()
: function (t, e) {
return (t.__proto__ = e), t;
})(t, e);
}
function rp(t) {
return (rp = Object.setPrototypeOf
? Object.getPrototypeOf.bind()
: function (t) {
return t.__proto__ || Object.getPrototypeOf(t);
})(t);
}
var rh =
(((f = {})[(f.model = 0)] = "model"),
(f[(f.image = 1)] = "image"),
(f[(f.comment = 2)] = "comment"),
f),
ry = (function (t) {
if ("function" != typeof t && null !== t)
throw TypeError("Super expression must either be null or a function");
(p.prototype = Object.create(t && t.prototype, {
constructor: { value: p, writable: !0, configurable: !0 },
})),
Object.defineProperty(p, "prototype", { writable: !1 }),
t && rf(p, t);
var e,
r,
n,
o,
i,
a,
u,
c,
s,
l,
f =
((e = (function () {
if (
"u" < typeof Reflect ||
!Reflect.construct ||
Reflect.construct.sham
)
return !1;
if ("function" == typeof Proxy) return !0;
try {
return (
Boolean.prototype.valueOf.call(
Reflect.construct(Boolean, [], function () {}),
),
!0
);
} catch (t) {
return !1;
}
})()),
function () {
var t,
r = rp(p);
return (
(t = e
? Reflect.construct(r, arguments, rp(this).constructor)
: r.apply(this, arguments)),
(function (t, e) {
if (e && ("object" === ro(e) || "function" == typeof e))
return e;
if (void 0 !== e)
throw TypeError(
"Derived constructors may only return object or undefined",
);
var r = t;
if (void 0 === r)
throw ReferenceError(
"this hasn't been initialised - super() hasn't been called",
);
return r;
})(this, t)
);
});
function p() {
if (!(this instanceof p))
throw TypeError("Cannot call a class as a function");
return f.apply(this, arguments);
}
return (
(l = [
{
key: "minify",
value: function (t) {
return null == t
? void 0
: t.map(function (t) {
return t.isActivity === eD.TRUE
? (0, eZ.default)(t, [
"height",
"imageUrl",
"isActivity",
"landingPage",
"uuid",
"width",
"imageSource",
"imageUuid",
"tagsV2",
])
: (0, eZ.default)(t, [
"score",
"title",
"likeCount",
"isLike",
"avatar",
"imageUuid",
"nickname",
"width",
"height",
"imageUrl",
"isActivity",
"uuid",
"width",
"hideGenerateInfo",
"imageSource",
"mediaType",
"videoUrl",
"tagsV2",
"webpUrl",
"recommendOtherRes",
"utLogMap",
"abVariant",
]);
});
},
},
{
key: "getList",
value:
((r = rs(
ri().mark(function t(e, r) {
var n, o, i;
return ri().wrap(
function (t) {
for (;;)
switch ((t.prev = t.next)) {
case 0:
return (
(t.prev = 0),
(t.next = 3),
this.apiClient.post(
"/img/group/search",
ru({}, e),
{ headers: r },
)
);
case 3:
return (
(i =
null == (o = t.sent.data) ||
null == (n = o.data)
? void 0
: n.map(function (t) {
return ru(
ru({}, t),
{},
{
isActivity:
t.isActivity === eD.TRUE
? eD.TRUE
: eD.FALSE,
uuid: t.uuid || e3(),
},
);
})),
(o.data = i),
t.abrupt("return", o)
);
case 10:
return (
(t.prev = 10),
(t.t0 = t.catch(0)),
t.abrupt("return", {
data: [],
page: e.page || 1,
pageSize: e.pageSize || 30,
total: 0,
})
);
case 13:
case "end":
return t.stop();
}
},
t,
this,
[[0, 10]],
);
}),
)),
function (t, e) {
return r.apply(this, arguments);
}),
},
{
key: "toggleLike",
value:
((n = rs(
ri().mark(function t(e) {
var r, n, o;
return ri().wrap(
function (t) {
for (;;)
switch ((t.prev = t.next)) {
case 0:
return (
(r = e.uuid),
(n = e.type),
(t.next = 3),
this.apiClient.post("/community/userLike", {
uuid: r,
type: n,
})
);
case 3:
return (o = t.sent), t.abrupt("return", o);
case 5:
case "end":
return t.stop();
}
},
t,
this,
);
}),
)),
function (t) {
return n.apply(this, arguments);
}),
},
{
key: "getMyImageGroup",
value:
((o = rs(
ri().mark(function t(e) {
var r;
return ri().wrap(
function (t) {
for (;;)
switch ((t.prev = t.next)) {
case 0:
return (
(t.next = 2),
this.apiClient.post(
"/img/group/getMyImageGroup/".concat(e),
{},
)
);
case 2:
return (r = t.sent.data), t.abrupt("return", r);
case 5:
case "end":
return t.stop();
}
},
t,
this,
);
}),
)),
function (t) {
return o.apply(this, arguments);
}),
},
{
key: "getImages",
value:
((i = rs(
ri().mark(function t(e) {
var r;
return ri().wrap(
function (t) {
for (;;)
switch ((t.prev = t.next)) {
case 0:
return (
(t.next = 2),
this.apiClient.post(
"/img/group/get/".concat(e),
{},
)
);
case 2:
return (r = t.sent.data), t.abrupt("return", r);
case 5:
case "end":
return t.stop();
}
},
t,
this,
);
}),
)),
function (t) {
return i.apply(this, arguments);
}),
},
{
key: "getImgAuthorInfo",
value:
((a = rs(
ri().mark(function t(e, r) {
var n;
return ri().wrap(
function (t) {
for (;;)
switch ((t.prev = t.next)) {
case 0:
return (
(t.next = 2),
this.apiClient.post(
"/img/author/".concat(e),
r ? { headers: { token: r } } : {},
)
);
case 2:
return (n = t.sent.data), t.abrupt("return", n);
case 5:
case "end":
return t.stop();
}
},
t,
this,
);
}),
)),
function (t, e) {
return a.apply(this, arguments);
}),
},
{
key: "deleteComment",
value:
((u = rs(
ri().mark(function t(e) {
var r;
return ri().wrap(
function (t) {
for (;;)
switch ((t.prev = t.next)) {
case 0:
return (
(t.next = 2),
this.apiClient.post(
"/community/deleteComment",
{ id: e },
)
);
case 2:
return (r = t.sent), t.abrupt("return", r);
case 4:
case "end":
return t.stop();
}
},
t,
this,
);
}),
)),
function (t) {
return u.apply(this, arguments);
}),
},
{
key: "getGenerateInfo",
value:
((c = rs(
ri().mark(function t(e) {
var r;
return ri().wrap(
function (t) {
for (;;)
switch ((t.prev = t.next)) {
case 0:
return (
(t.next = 3),
this.apiClient.post("/img/generateInfo", {
url: e,
})
);
case 3:
return (r = t.sent), t.abrupt("return", r.data);
case 5:
case "end":
return t.stop();
}
},
t,
this,
);
}),
)),
function (t) {
return c.apply(this, arguments);
}),
},
{
key: "imageCallBack",
value:
((s = rs(
ri().mark(function t(e) {
return ri().wrap(
function (t) {
for (;;)
switch ((t.prev = t.next)) {
case 0:
try {
this.apiClient.post(
"/community/imageCallBack",
e,
);
} catch (t) {}
case 1:
case "end":
return t.stop();
}
},
t,
this,
);
}),
)),
function (t) {
return s.apply(this, arguments);
}),
},
]),
(function (t, e) {
for (var r = 0; r < e.length; r++) {
var n = e[r];
(n.enumerable = n.enumerable || !1),
(n.configurable = !0),
"value" in n && (n.writable = !0),
Object.defineProperty(t, rl(n.key), n);
}
})(p.prototype, l),
Object.defineProperty(p, "prototype", { writable: !1 }),
p
);
})(eG);
function rv(t) {
return (rv =
"function" == typeof Symbol && "symbol" == typeof Symbol.iterator
? function (t) {
return typeof t;
}
: function (t) {
return t &&
"function" == typeof Symbol &&
t.constructor === Symbol &&
t !== Symbol.prototype
? "symbol"
: typeof t;
})(t);
}
function rd(t, e) {
var r = Object.keys(t);
if (Object.getOwnPropertySymbols) {
var n = Object.getOwnPropertySymbols(t);
e &&
(n = n.filter(function (e) {
return Object.getOwnPropertyDescriptor(t, e).enumerable;
})),
r.push.apply(r, n);
}
return r;
}
function rg(t) {
return t.filter(function (t) {
return 1 == t.tagStatus && 1 !== t.deleteFlag;
});
}
function rm(t, e) {
return "modelactivity" === t
? rg(e)
: "modelContent" === t
? (function t(e) {
var r = rg(e);
return (
r.forEach(function (e) {
var r = e.children;
r && r.length && (e.children = t(r));
}),
r
);
})(e)
: e;
}
function rb(t) {
var e = (function (t) {
for (var e = 1; e < arguments.length; e++) {
var r = null != arguments[e] ? arguments[e] : {};
e % 2
? rd(Object(r), !0).forEach(function (e) {
var n, o, i;
(n = t),
(o = e),
(i = r[e]),
(o = (function (t) {
var e = (function (t, e) {
if ("object" != rv(t) || !t) return t;
var r = t[Symbol.toPrimitive];
if (void 0 !== r) {
var n = r.call(t, e || "default");
if ("object" != rv(n)) return n;
throw TypeError(
"@@toPrimitive must return a primitive value.",
);
}
return ("string" === e ? String : Number)(t);
})(t, "string");
return "symbol" == rv(e) ? e : String(e);
})(o)) in n
? Object.defineProperty(n, o, {
value: i,
enumerable: !0,
configurable: !0,
writable: !0,
})
: (n[o] = i);
})
: Object.getOwnPropertyDescriptors
? Object.defineProperties(t, Object.getOwnPropertyDescriptors(r))
: rd(Object(r)).forEach(function (e) {
Object.defineProperty(
t,
e,
Object.getOwnPropertyDescriptor(r, e),
);
});
}
return t;
})({}, t);
return (
t.modelactivity &&
(e.modelactivity = rm("modelactivity", t.modelactivity)),
t.modelContent && (e.modelContent = rm("modelContent", t.modelContent)),
e
);
}
function rw(t) {
return (rw =
"function" == typeof Symbol && "symbol" == typeof Symbol.iterator
? function (t) {
return typeof t;
}
: function (t) {
return t &&
"function" == typeof Symbol &&
t.constructor === Symbol &&
t !== Symbol.prototype
? "symbol"
: typeof t;
})(t);
}
function rx(t, e) {
(null == e || e > t.length) && (e = t.length);
for (var r = 0, n = Array(e); r < e; r++) n[r] = t[r];
return n;
}
function rO() {
rO = function () {
return e;
};
var t,
e = {},
r = Object.prototype,
n = r.hasOwnProperty,
o =
Object.defineProperty ||
function (t, e, r) {
t[e] = r.value;
},
i = "function" == typeof Symbol ? Symbol : {},
a = i.iterator || "@@iterator",
u = i.asyncIterator || "@@asyncIterator",
c = i.toStringTag || "@@toStringTag";
function s(t, e, r) {
return (
Object.defineProperty(t, e, {
value: r,
enumerable: !0,
configurable: !0,
writable: !0,
}),
t[e]
);
}
try {
s({}, "");
} catch (t) {
s = function (t, e, r) {
return (t[e] = r);
};
}
function l(e, r, n, i) {
var a,
u,
c,
s,
l = Object.create((r && r.prototype instanceof d ? r : d).prototype);
return (
o(l, "_invoke", {
value:
((a = e),
(u = n),
(c = new k(i || [])),
(s = p),
function (e, r) {
if (s === h) throw Error("Generator is already running");
if (s === y) {
if ("throw" === e) throw r;
return { value: t, done: !0 };
}
for (c.method = e, c.arg = r; ; ) {
var n = c.delegate;
if (n) {
var o = (function e(r, n) {
var o = n.method,
i = r.iterator[o];
if (i === t)
return (
(n.delegate = null),
("throw" === o &&
r.iterator.return &&
((n.method = "return"),
(n.arg = t),
e(r, n),
"throw" === n.method)) ||
("return" !== o &&
((n.method = "throw"),
(n.arg = TypeError(
"The iterator does not provide a '" +
o +
"' method",
)))),
v
);
var a = f(i, r.iterator, n.arg);
if ("throw" === a.type)
return (
(n.method = "throw"),
(n.arg = a.arg),
(n.delegate = null),
v
);
var u = a.arg;
return u
? u.done
? ((n[r.resultName] = u.value),
(n.next = r.nextLoc),
"return" !== n.method &&
((n.method = "next"), (n.arg = t)),
(n.delegate = null),
v)
: u
: ((n.method = "throw"),
(n.arg = TypeError(
"iterator result is not an object",
)),
(n.delegate = null),
v);
})(n, c);
if (o) {
if (o === v) continue;
return o;
}
}
if ("next" === c.method) c.sent = c._sent = c.arg;
else if ("throw" === c.method) {
if (s === p) throw ((s = y), c.arg);
c.dispatchException(c.arg);
} else "return" === c.method && c.abrupt("return", c.arg);
s = h;
var i = f(a, u, c);
if ("normal" === i.type) {
if (((s = c.done ? y : "suspendedYield"), i.arg === v))
continue;
return { value: i.arg, done: c.done };
}
"throw" === i.type &&
((s = y), (c.method = "throw"), (c.arg = i.arg));
}
}),
}),
l
);
}
function f(t, e, r) {
try {
return { type: "normal", arg: t.call(e, r) };
} catch (t) {
return { type: "throw", arg: t };
}
}
e.wrap = l;
var p = "suspendedStart",
h = "executing",
y = "completed",
v = {};
function d() {}
function g() {}
function m() {}
var b = {};
s(b, a, function () {
return this;
});
var w = Object.getPrototypeOf,
x = w && w(w(P([])));
x && x !== r && n.call(x, a) && (b = x);
var O = (m.prototype = d.prototype = Object.create(b));
function E(t) {
["next", "throw", "return"].forEach(function (e) {
s(t, e, function (t) {
return this._invoke(e, t);
});
});
}
function L(t, e) {
var r;
o(this, "_invoke", {
value: function (o, i) {
function a() {
return new e(function (r, a) {
!(function r(o, i, a, u) {
var c = f(t[o], t, i);
if ("throw" !== c.type) {
var s = c.arg,
l = s.value;
return l && "object" == rw(l) && n.call(l, "__await")
? e.resolve(l.__await).then(
function (t) {
r("next", t, a, u);
},
function (t) {
r("throw", t, a, u);
},
)
: e.resolve(l).then(
function (t) {
(s.value = t), a(s);
},
function (t) {
return r("throw", t, a, u);
},
);
}
u(c.arg);
})(o, i, r, a);
});
}
return (r = r ? r.then(a, a) : a());
},
});
}
function j(t) {
var e = { tryLoc: t[0] };
1 in t && (e.catchLoc = t[1]),
2 in t && ((e.finallyLoc = t[2]), (e.afterLoc = t[3])),
this.tryEntries.push(e);
}
function _(t) {
var e = t.completion || {};
(e.type = "normal"), delete e.arg, (t.completion = e);
}
function k(t) {
(this.tryEntries = [{ tryLoc: "root" }]),
t.forEach(j, this),
this.reset(!0);
}
function P(e) {
if (e || "" === e) {
var r = e[a];
if (r) return r.call(e);
if ("function" == typeof e.next) return e;
if (!isNaN(e.length)) {
var o = -1,
i = function r() {
for (; ++o < e.length; )
if (n.call(e, o)) return (r.value = e[o]), (r.done = !1), r;
return (r.value = t), (r.done = !0), r;
};
return (i.next = i);
}
}
throw TypeError(rw(e) + " is not iterable");
}
return (
(g.prototype = m),
o(O, "constructor", { value: m, configurable: !0 }),
o(m, "constructor", { value: g, configurable: !0 }),
(g.displayName = s(m, c, "GeneratorFunction")),
(e.isGeneratorFunction = function (t) {
var e = "function" == typeof t && t.constructor;
return (
!!e &&
(e === g || "GeneratorFunction" === (e.displayName || e.name))
);
}),
(e.mark = function (t) {
return (
Object.setPrototypeOf
? Object.setPrototypeOf(t, m)
: ((t.__proto__ = m), s(t, c, "GeneratorFunction")),
(t.prototype = Object.create(O)),
t
);
}),
(e.awrap = function (t) {
return { __await: t };
}),
E(L.prototype),
s(L.prototype, u, function () {
return this;
}),
(e.AsyncIterator = L),
(e.async = function (t, r, n, o, i) {
void 0 === i && (i = Promise);
var a = new L(l(t, r, n, o), i);
return e.isGeneratorFunction(r)
? a
: a.next().then(function (t) {
return t.done ? t.value : a.next();
});
}),
E(O),
s(O, c, "Generator"),
s(O, a, function () {
return this;
}),
s(O, "toString", function () {
return "[object Generator]";
}),
(e.keys = function (t) {
var e = Object(t),
r = [];
for (var n in e) r.push(n);
return (
r.reverse(),
function t() {
for (; r.length; ) {
var n = r.pop();
if (n in e) return (t.value = n), (t.done = !1), t;
}
return (t.done = !0), t;
}
);
}),
(e.values = P),
(k.prototype = {
constructor: k,
reset: function (e) {
if (
((this.prev = 0),
(this.next = 0),
(this.sent = this._sent = t),
(this.done = !1),
(this.delegate = null),
(this.method = "next"),
(this.arg = t),
this.tryEntries.forEach(_),
!e)
)
for (var r in this)
"t" === r.charAt(0) &&
n.call(this, r) &&
!isNaN(+r.slice(1)) &&
(this[r] = t);
},
stop: function () {
this.done = !0;
var t = this.tryEntries[0].completion;
if ("throw" === t.type) throw t.arg;
return this.rval;
},
dispatchException: function (e) {
if (this.done) throw e;
var r = this;
function o(n, o) {
return (
(u.type = "throw"),
(u.arg = e),
(r.next = n),
o && ((r.method = "next"), (r.arg = t)),
!!o
);
}
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
var a = this.tryEntries[i],
u = a.completion;
if ("root" === a.tryLoc) return o("end");
if (a.tryLoc <= this.prev) {
var c = n.call(a, "catchLoc"),
s = n.call(a, "finallyLoc");
if (c && s) {
if (this.prev < a.catchLoc) return o(a.catchLoc, !0);
if (this.prev < a.finallyLoc) return o(a.finallyLoc);
} else if (c) {
if (this.prev < a.catchLoc) return o(a.catchLoc, !0);
} else {
if (!s) throw Error("try statement without catch or finally");
if (this.prev < a.finallyLoc) return o(a.finallyLoc);
}
}
}
},
abrupt: function (t, e) {
for (var r = this.tryEntries.length - 1; r >= 0; --r) {
var o = this.tryEntries[r];
if (
o.tryLoc <= this.prev &&
n.call(o, "finallyLoc") &&
this.prev < o.finallyLoc
) {
var i = o;
break;
}
}
i &&
("break" === t || "continue" === t) &&
i.tryLoc <= e &&
e <= i.finallyLoc &&
(i = null);
var a = i ? i.completion : {};
return (
(a.type = t),
(a.arg = e),
i
? ((this.method = "next"), (this.next = i.finallyLoc), v)
: this.complete(a)
);
},
complete: function (t, e) {
if ("throw" === t.type) throw t.arg;
return (
"break" === t.type || "continue" === t.type
? (this.next = t.arg)
: "return" === t.type
? ((this.rval = this.arg = t.arg),
(this.method = "return"),
(this.next = "end"))
: "normal" === t.type && e && (this.next = e),
v
);
},
finish: function (t) {
for (var e = this.tryEntries.length - 1; e >= 0; --e) {
var r = this.tryEntries[e];
if (r.finallyLoc === t)
return this.complete(r.completion, r.afterLoc), _(r), v;
}
},
catch: function (t) {
for (var e = this.tryEntries.length - 1; e >= 0; --e) {
var r = this.tryEntries[e];
if (r.tryLoc === t) {
var n = r.completion;
if ("throw" === n.type) {
var o = n.arg;
_(r);
}
return o;
}
}
throw Error("illegal catch attempt");
},
delegateYield: function (e, r, n) {
return (
(this.delegate = { iterator: P(e), resultName: r, nextLoc: n }),
"next" === this.method && (this.arg = t),
v
);
},
}),
e
);
}
function rE(t, e) {
var r = Object.keys(t);
if (Object.getOwnPropertySymbols) {
var n = Object.getOwnPropertySymbols(t);
e &&
(n = n.filter(function (e) {
return Object.getOwnPropertyDescriptor(t, e).enumerable;
})),
r.push.apply(r, n);
}
return r;
}
function rL(t, e, r, n, o, i, a) {
try {
var u = t[i](a),
c = u.value;
} catch (t) {
r(t);
return;
}
u.done ? e(c) : Promise.resolve(c).then(n, o);
}
function rj(t) {
return function () {
var e = this,
r = arguments;
return new Promise(function (n, o) {
var i = t.apply(e, r);
function a(t) {
rL(i, n, o, a, u, "next", t);
}
function u(t) {
rL(i, n, o, a, u, "throw", t);
}
a(void 0);
});
};
}
t.s(["ImageService", () => ry, "ToggleLikeType", () => rh], 505554),
t.s(["filterCategoryTagMap", () => rb], 700858),
t.s([], 100967);
function r_(t) {
var e = (function (t, e) {
if ("object" != rw(t) || !t) return t;
var r = t[Symbol.toPrimitive];
if (void 0 !== r) {
var n = r.call(t, e || "default");
if ("object" != rw(n)) return n;
throw TypeError("@@toPrimitive must return a primitive value.");
}
return ("string" === e ? String : Number)(t);
})(t, "string");
return "symbol" == rw(e) ? e : String(e);
}
function rk(t, e) {
return (rk = Object.setPrototypeOf
? Object.setPrototypeOf.bind()
: function (t, e) {
return (t.__proto__ = e), t;
})(t, e);
}
function rP(t) {
return (rP = Object.setPrototypeOf
? Object.getPrototypeOf.bind()
: function (t) {
return t.__proto__ || Object.getPrototypeOf(t);
})(t);
}
var rS =
(((p = {})[(p.MODEL = 1)] = "MODEL"),
(p[(p.IMAGE = 2)] = "IMAGE"),
(p[(p.VIDEO_EFFECT = 3)] = "VIDEO_EFFECT"),
p),
rT = (function (t) {
if ("function" != typeof t && null !== t)
throw TypeError("Super expression must either be null or a function");
(s.prototype = Object.create(t && t.prototype, {
constructor: { value: s, writable: !0, configurable: !0 },
})),
Object.defineProperty(s, "prototype", { writable: !1 }),
t && rk(s, t);
var e,
r,
n,
o,
i,
a,
u,
c =
((e = (function () {
if (
"u" < typeof Reflect ||
!Reflect.construct ||
Reflect.construct.sham
)
return !1;
if ("function" == typeof Proxy) return !0;
try {
return (
Boolean.prototype.valueOf.call(
Reflect.construct(Boolean, [], function () {}),
),
!0
);
} catch (t) {
return !1;
}
})()),
function () {
var t,
r = rP(s);
return (
(t = e
? Reflect.construct(r, arguments, rP(this).constructor)
: r.apply(this, arguments)),
(function (t, e) {
if (e && ("object" === rw(e) || "function" == typeof e))
return e;
if (void 0 !== e)
throw TypeError(
"Derived constructors may only return object or undefined",
);
var r = t;
if (void 0 === r)
throw ReferenceError(
"this hasn't been initialised - super() hasn't been called",
);
return r;
})(this, t)
);
});
function s() {
if (!(this instanceof s))
throw TypeError("Cannot call a class as a function");
return c.apply(this, arguments);
}
return (
(u = [
{
key: "minify",
value: function (t) {
return t.map(function (t) {
return {
id: t.ids.join(","),
tagIds: t.ids,
tagLabel: t.tagLabel || t.name,
H5Label: t.H5Label || t.name,
iconUrl: t.iconUrl || t.iconUrl,
};
});
},
},
{
key: "getList",
value:
((r = rj(
rO().mark(function t(e) {
var r;
return rO().wrap(
function (t) {
for (;;)
switch ((t.prev = t.next)) {
case 0:
return (
(t.next = 2),
this.apiClient.post(
"/public/tag/search",
(function (t) {
for (var e = 1; e < arguments.length; e++) {
var r =
null != arguments[e]
? arguments[e]
: {};
e % 2
? rE(Object(r), !0).forEach(
function (e) {
var n, o, i;
(n = t),
(o = e),
(i = r[e]),
(o = r_(o)) in n
? Object.defineProperty(
n,
o,
{
value: i,
enumerable: !0,
configurable: !0,
writable: !0,
},
)
: (n[o] = i);
},
)
: Object.getOwnPropertyDescriptors
? Object.defineProperties(
t,
Object.getOwnPropertyDescriptors(
r,
),
)
: rE(Object(r)).forEach(function (e) {
Object.defineProperty(
t,
e,
Object.getOwnPropertyDescriptor(
r,
e,
),
);
});
}
return t;
})({}, e),
)
);
case 2:
return (r = t.sent.data), t.abrupt("return", r);
case 5:
case "end":
return t.stop();
}
},
t,
this,
);
}),
)),
function (t) {
return r.apply(this, arguments);
}),
},
{
key: "getTag2List",
value:
((n = rj(
rO().mark(function t(e) {
var r, n;
return rO().wrap(
function (t) {
for (;;)
switch ((t.prev = t.next)) {
case 0:
return (
delete e.isWorkflows,
(t.next = 4),
this.apiClient.post("/public/tag/v2", e)
);
case 4:
return (
(n = {
total: (r = t.sent.data).length,
data: r.map(function (t) {
return {
id: t.ids.join(","),
ids: t.ids,
tagLabel: t.name,
iconUrl: "",
name: t.name,
};
}),
}),
t.abrupt("return", n)
);
case 8:
case "end":
return t.stop();
}
},
t,
this,
);
}),
)),
function (t) {
return n.apply(this, arguments);
}),
},
{
key: "getTagsByCategory",
value:
((o = rj(
rO().mark(function t(e) {
var r;
return rO().wrap(
function (t) {
for (;;)
switch ((t.prev = t.next)) {
case 0:
return (
(t.next = 2),
this.apiClient.post(
"/model/tag/findTagsByCategories",
(function (t) {
if (Array.isArray(t)) return rx(t);
})(e) ||
(function (t) {
if (
("u" > typeof Symbol &&
null != t[Symbol.iterator]) ||
null != t["@@iterator"]
)
return Array.from(t);
})(e) ||
(function (t, e) {
if (t) {
if ("string" == typeof t)
return rx(t, void 0);
var r = Object.prototype.toString
.call(t)
.slice(8, -1);
if (
("Object" === r &&
t.constructor &&
(r = t.constructor.name),
"Map" === r || "Set" === r)
)
return Array.from(t);
if (
"Arguments" === r ||
/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(
r,
)
)
return rx(t, void 0);
}
})(e) ||
(function () {
throw TypeError(
"Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.",
);
})(),
)
);
case 2:
return (
(r = t.sent.data),
t.abrupt("return", r ? rb(r) : r)
);
case 5:
case "end":
return t.stop();
}
},
t,
this,
);
}),
)),
function (t) {
return o.apply(this, arguments);
}),
},
{
key: "getActivitiesTags",
value:
((i = rj(
rO().mark(function t(e) {
var r;
return rO().wrap(
function (t) {
for (;;)
switch ((t.prev = t.next)) {
case 0:
return (
(t.next = 2),
this.apiClient.post(
"/public/tag/findActivityTagsByCategories",
{ usage: e },
)
);
case 2:
return (r = t.sent), t.abrupt("return", r);
case 4:
case "end":
return t.stop();
}
},
t,
this,
);
}),
)),
function (t) {
return i.apply(this, arguments);
}),
},
{
key: "batchGetTag",
value:
((a = rj(
rO().mark(function t(e) {
var r;
return rO().wrap(
function (t) {
for (;;)
switch ((t.prev = t.next)) {
case 0:
return (
(t.next = 2),
this.apiClient.post(
"/public/tag/v2/batchGetTag",
{ ids: e },
)
);
case 2:
return (r = t.sent), t.abrupt("return", r);
case 4:
case "end":
return t.stop();
}
},
t,
this,
);
}),
)),
function (t) {
return a.apply(this, arguments);
}),
},
]),
(function (t, e) {
for (var r = 0; r < e.length; r++) {
var n = e[r];
(n.enumerable = n.enumerable || !1),
(n.configurable = !0),
"value" in n && (n.writable = !0),
Object.defineProperty(t, r_(n.key), n);
}
})(s.prototype, u),
Object.defineProperty(s, "prototype", { writable: !1 }),
s
);
})(eG);
t.s(["EnumTagType", () => rS, "TagService", () => rT], 544442);
var rC = t.i(319606);
function rR(t) {
return (rR =
"function" == typeof Symbol && "symbol" == typeof Symbol.iterator
? function (t) {
return typeof t;
}
: function (t) {
return t &&
"function" == typeof Symbol &&
t.constructor === Symbol &&
t !== Symbol.prototype
? "symbol"
: typeof t;
})(t);
}
function rN() {
rN = function () {
return e;
};
var t,
e = {},
r = Object.prototype,
n = r.hasOwnProperty,
o =
Object.defineProperty ||
function (t, e, r) {
t[e] = r.value;
},
i = "function" == typeof Symbol ? Symbol : {},
a = i.iterator || "@@iterator",
u = i.asyncIterator || "@@asyncIterator",
c = i.toStringTag || "@@toStringTag";
function s(t, e, r) {
return (
Object.defineProperty(t, e, {
value: r,
enumerable: !0,
configurable: !0,
writable: !0,
}),
t[e]
);
}
try {
s({}, "");
} catch (t) {
s = function (t, e, r) {
return (t[e] = r);
};
}
function l(e, r, n, i) {
var a,
u,
c,
s,
l = Object.create((r && r.prototype instanceof d ? r : d).prototype);
return (
o(l, "_invoke", {
value:
((a = e),
(u = n),
(c = new k(i || [])),
(s = p),
function (e, r) {
if (s === h) throw Error("Generator is already running");
if (s === y) {
if ("throw" === e) throw r;
return { value: t, done: !0 };
}
for (c.method = e, c.arg = r; ; ) {
var n = c.delegate;
if (n) {
var o = (function e(r, n) {
var o = n.method,
i = r.iterator[o];
if (i === t)
return (
(n.delegate = null),
("throw" === o &&
r.iterator.return &&
((n.method = "return"),
(n.arg = t),
e(r, n),
"throw" === n.method)) ||
("return" !== o &&
((n.method = "throw"),
(n.arg = TypeError(
"The iterator does not provide a '" +
o +
"' method",
)))),
v
);
var a = f(i, r.iterator, n.arg);
if ("throw" === a.type)
return (
(n.method = "throw"),
(n.arg = a.arg),
(n.delegate = null),
v
);
var u = a.arg;
return u
? u.done
? ((n[r.resultName] = u.value),
(n.next = r.nextLoc),
"return" !== n.method &&
((n.method = "next"), (n.arg = t)),
(n.delegate = null),
v)
: u
: ((n.method = "throw"),
(n.arg = TypeError(
"iterator result is not an object",
)),
(n.delegate = null),
v);
})(n, c);
if (o) {
if (o === v) continue;
return o;
}
}
if ("next" === c.method) c.sent = c._sent = c.arg;
else if ("throw" === c.method) {
if (s === p) throw ((s = y), c.arg);
c.dispatchException(c.arg);
} else "return" === c.method && c.abrupt("return", c.arg);
s = h;
var i = f(a, u, c);
if ("normal" === i.type) {
if (((s = c.done ? y : "suspendedYield"), i.arg === v))
continue;
return { value: i.arg, done: c.done };
}
"throw" === i.type &&
((s = y), (c.method = "throw"), (c.arg = i.arg));
}
}),
}),
l
);
}
function f(t, e, r) {
try {
return { type: "normal", arg: t.call(e, r) };
} catch (t) {
return { type: "throw", arg: t };
}
}
e.wrap = l;
var p = "suspendedStart",
h = "executing",
y = "completed",
v = {};
function d() {}
function g() {}
function m() {}
var b = {};
s(b, a, function () {
return this;
});
var w = Object.getPrototypeOf,
x = w && w(w(P([])));
x && x !== r && n.call(x, a) && (b = x);
var O = (m.prototype = d.prototype = Object.create(b));
function E(t) {
["next", "throw", "return"].forEach(function (e) {
s(t, e, function (t) {
return this._invoke(e, t);
});
});
}
function L(t, e) {
var r;
o(this, "_invoke", {
value: function (o, i) {
function a() {
return new e(function (r, a) {
!(function r(o, i, a, u) {
var c = f(t[o], t, i);
if ("throw" !== c.type) {
var s = c.arg,
l = s.value;
return l && "object" == rR(l) && n.call(l, "__await")
? e.resolve(l.__await).then(
function (t) {
r("next", t, a, u);
},
function (t) {
r("throw", t, a, u);
},
)
: e.resolve(l).then(
function (t) {
(s.value = t), a(s);
},
function (t) {
return r("throw", t, a, u);
},
);
}
u(c.arg);
})(o, i, r, a);
});
}
return (r = r ? r.then(a, a) : a());
},
});
}
function j(t) {
var e = { tryLoc: t[0] };
1 in t && (e.catchLoc = t[1]),
2 in t && ((e.finallyLoc = t[2]), (e.afterLoc = t[3])),
this.tryEntries.push(e);
}
function _(t) {
var e = t.completion || {};
(e.type = "normal"), delete e.arg, (t.completion = e);
}
function k(t) {
(this.tryEntries = [{ tryLoc: "root" }]),
t.forEach(j, this),
this.reset(!0);
}
function P(e) {
if (e || "" === e) {
var r = e[a];
if (r) return r.call(e);
if ("function" == typeof e.next) return e;
if (!isNaN(e.length)) {
var o = -1,
i = function r() {
for (; ++o < e.length; )
if (n.call(e, o)) return (r.value = e[o]), (r.done = !1), r;
return (r.value = t), (r.done = !0), r;
};
return (i.next = i);
}
}
throw TypeError(rR(e) + " is not iterable");
}
return (
(g.prototype = m),
o(O, "constructor", { value: m, configurable: !0 }),
o(m, "constructor", { value: g, configurable: !0 }),
(g.displayName = s(m, c, "GeneratorFunction")),
(e.isGeneratorFunction = function (t) {
var e = "function" == typeof t && t.constructor;
return (
!!e &&
(e === g || "GeneratorFunction" === (e.displayName || e.name))
);
}),
(e.mark = function (t) {
return (
Object.setPrototypeOf
? Object.setPrototypeOf(t, m)
: ((t.__proto__ = m), s(t, c, "GeneratorFunction")),
(t.prototype = Object.create(O)),
t
);
}),
(e.awrap = function (t) {
return { __await: t };
}),
E(L.prototype),
s(L.prototype, u, function () {
return this;
}),
(e.AsyncIterator = L),
(e.async = function (t, r, n, o, i) {
void 0 === i && (i = Promise);
var a = new L(l(t, r, n, o), i);
return e.isGeneratorFunction(r)
? a
: a.next().then(function (t) {
return t.done ? t.value : a.next();
});
}),
E(O),
s(O, c, "Generator"),
s(O, a, function () {
return this;
}),
s(O, "toString", function () {
return "[object Generator]";
}),
(e.keys = function (t) {
var e = Object(t),
r = [];
for (var n in e) r.push(n);
return (
r.reverse(),
function t() {
for (; r.length; ) {
var n = r.pop();
if (n in e) return (t.value = n), (t.done = !1), t;
}
return (t.done = !0), t;
}
);
}),
(e.values = P),
(k.prototype = {
constructor: k,
reset: function (e) {
if (
((this.prev = 0),
(this.next = 0),
(this.sent = this._sent = t),
(this.done = !1),
(this.delegate = null),
(this.method = "next"),
(this.arg = t),
this.tryEntries.forEach(_),
!e)
)
for (var r in this)
"t" === r.charAt(0) &&
n.call(this, r) &&
!isNaN(+r.slice(1)) &&
(this[r] = t);
},
stop: function () {
this.done = !0;
var t = this.tryEntries[0].completion;
if ("throw" === t.type) throw t.arg;
return this.rval;
},
dispatchException: function (e) {
if (this.done) throw e;
var r = this;
function o(n, o) {
return (
(u.type = "throw"),
(u.arg = e),
(r.next = n),
o && ((r.method = "next"), (r.arg = t)),
!!o
);
}
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
var a = this.tryEntries[i],
u = a.completion;
if ("root" === a.tryLoc) return o("end");
if (a.tryLoc <= this.prev) {
var c = n.call(a, "catchLoc"),
s = n.call(a, "finallyLoc");
if (c && s) {
if (this.prev < a.catchLoc) return o(a.catchLoc, !0);
if (this.prev < a.finallyLoc) return o(a.finallyLoc);
} else if (c) {
if (this.prev < a.catchLoc) return o(a.catchLoc, !0);
} else {
if (!s) throw Error("try statement without catch or finally");
if (this.prev < a.finallyLoc) return o(a.finallyLoc);
}
}
}
},
abrupt: function (t, e) {
for (var r = this.tryEntries.length - 1; r >= 0; --r) {
var o = this.tryEntries[r];
if (
o.tryLoc <= this.prev &&
n.call(o, "finallyLoc") &&
this.prev < o.finallyLoc
) {
var i = o;
break;
}
}
i &&
("break" === t || "continue" === t) &&
i.tryLoc <= e &&
e <= i.finallyLoc &&
(i = null);
var a = i ? i.completion : {};
return (
(a.type = t),
(a.arg = e),
i
? ((this.method = "next"), (this.next = i.finallyLoc), v)
: this.complete(a)
);
},
complete: function (t, e) {
if ("throw" === t.type) throw t.arg;
return (
"break" === t.type || "continue" === t.type
? (this.next = t.arg)
: "return" === t.type
? ((this.rval = this.arg = t.arg),
(this.method = "return"),
(this.next = "end"))
: "normal" === t.type && e && (this.next = e),
v
);
},
finish: function (t) {
for (var e = this.tryEntries.length - 1; e >= 0; --e) {
var r = this.tryEntries[e];
if (r.finallyLoc === t)
return this.complete(r.completion, r.afterLoc), _(r), v;
}
},
catch: function (t) {
for (var e = this.tryEntries.length - 1; e >= 0; --e) {
var r = this.tryEntries[e];
if (r.tryLoc === t) {
var n = r.completion;
if ("throw" === n.type) {
var o = n.arg;
_(r);
}
return o;
}
}
throw Error("illegal catch attempt");
},
delegateYield: function (e, r, n) {
return (
(this.delegate = { iterator: P(e), resultName: r, nextLoc: n }),
"next" === this.method && (this.arg = t),
v
);
},
}),
e
);
}
function rU(t, e, r, n, o, i, a) {
try {
var u = t[i](a),
c = u.value;
} catch (t) {
r(t);
return;
}
u.done ? e(c) : Promise.resolve(c).then(n, o);
}
function rA(t) {
return function () {
var e = this,
r = arguments;
return new Promise(function (n, o) {
var i = t.apply(e, r);
function a(t) {
rU(i, n, o, a, u, "next", t);
}
function u(t) {
rU(i, n, o, a, u, "throw", t);
}
a(void 0);
});
};
}
function rI(t, e) {
return (rI = Object.setPrototypeOf
? Object.setPrototypeOf.bind()
: function (t, e) {
return (t.__proto__ = e), t;
})(t, e);
}
function rF(t) {
return (rF = Object.setPrototypeOf
? Object.getPrototypeOf.bind()
: function (t) {
return t.__proto__ || Object.getPrototypeOf(t);
})(t);
}
var rG = (function (t) {
if ("function" != typeof t && null !== t)
throw TypeError("Super expression must either be null or a function");
(k.prototype = Object.create(t && t.prototype, {
constructor: { value: k, writable: !0, configurable: !0 },
})),
Object.defineProperty(k, "prototype", { writable: !1 }),
t && rI(k, t);
var e,
r,
n,
o,
i,
a,
u,
c,
s,
l,
f,
p,
h,
y,
v,
d,
g,
m,
b,
w,
x,
O,
E,
L,
j,
_ =
((e = (function () {
if (
"u" < typeof Reflect ||
!Reflect.construct ||
Reflect.construct.sham
)
return !1;
if ("function" == typeof Proxy) return !0;
try {
return (
Boolean.prototype.valueOf.call(
Reflect.construct(Boolean, [], function () {}),
),
!0
);
} catch (t) {
return !1;
}
})()),
function () {
var t,
r = rF(k);
return (
(t = e
? Reflect.construct(r, arguments, rF(this).constructor)
: r.apply(this, arguments)),
(function (t, e) {
if (e && ("object" === rR(e) || "function" == typeof e))
return e;
if (void 0 !== e)
throw TypeError(
"Derived constructors may only return object or undefined",
);
var r = t;
if (void 0 === r)
throw ReferenceError(
"this hasn't been initialised - super() hasn't been called",
);
return r;
})(this, t)
);
});
function k() {
if (!(this instanceof k))
throw TypeError("Cannot call a class as a function");
return _.apply(this, arguments);
}
return (
(j = [
{
key: "getUserInfoByToken",
value:
((r = rA(
rN().mark(function t(e) {
var r;
return rN().wrap(
function (t) {
for (;;)
switch ((t.prev = t.next)) {
case 0:
return (
(t.prev = 0),
(t.next = 3),
this.apiClient.post(
(0, rC.getUrl)("/api/www/user/getUserInfo"),
null,
{ headers: { token: e } },
)
);
case 3:
return (
(r = t.sent.data), t.abrupt("return", r || null)
);
case 8:
return (
(t.prev = 8),
(t.t0 = t.catch(0)),
console.log("=====getUserInfoByToken err:", t.t0),
t.abrupt("return", null)
);
case 12:
case "end":
return t.stop();
}
},
t,
this,
[[0, 8]],
);
}),
)),
function (t) {
return r.apply(this, arguments);
}),
},
{
key: "getPersonInfoByUuid",
value:
((n = rA(
rN().mark(function t(e) {
var r;
return rN().wrap(
function (t) {
for (;;)
switch ((t.prev = t.next)) {
case 0:
return (
(t.prev = 0),
(t.next = 3),
this.apiClient.post(
(0, rC.getUrl)(
"/api/www/user/getPersonInfo/".concat(e),
),
)
);
case 3:
return (
(r = t.sent.data), t.abrupt("return", r || null)
);
case 8:
return (
(t.prev = 8),
(t.t0 = t.catch(0)),
t.abrupt("return", null)
);
case 11:
case "end":
return t.stop();
}
},
t,
this,
[[0, 8]],
);
}),
)),
function (t) {
return n.apply(this, arguments);
}),
},
{
key: "getUserFollowList",
value:
((o = rA(
rN().mark(function t(e) {
var r;
return rN().wrap(
function (t) {
for (;;)
switch ((t.prev = t.next)) {
case 0:
return (
(t.prev = 0),
(t.next = 3),
this.apiClient.post(
"/community/userFollowList",
e,
)
);
case 3:
return (
(r = t.sent.data), t.abrupt("return", r || null)
);
case 8:
return (
(t.prev = 8),
(t.t0 = t.catch(0)),
t.abrupt("return", null)
);
case 11:
case "end":
return t.stop();
}
},
t,
this,
[[0, 8]],
);
}),
)),
function (t) {
return o.apply(this, arguments);
}),
},
{
key: "getModelList",
value:
((i = rA(
rN().mark(function t(e) {
var r;
return rN().wrap(
function (t) {
for (;;)
switch ((t.prev = t.next)) {
case 0:
return (
(t.prev = 0),
(t.next = 3),
this.apiClient.post("/model/list", e)
);
case 3:
return (
(r = t.sent.data), t.abrupt("return", r || null)
);
case 8:
return (
(t.prev = 8),
(t.t0 = t.catch(0)),
t.abrupt("return", null)
);
case 11:
case "end":
return t.stop();
}
},
t,
this,
[[0, 8]],
);
}),
)),
function (t) {
return i.apply(this, arguments);
}),
},
{
key: "getImageTemplateList",
value:
((a = rA(
rN().mark(function t(e) {
var r;
return rN().wrap(
function (t) {
for (;;)
switch ((t.prev = t.next)) {
case 0:
return (
(t.prev = 0),
(t.next = 3),
this.apiClient.post("/model/template/list", e)
);
case 3:
return (
(r = t.sent.data), t.abrupt("return", r || null)
);
case 8:
return (
(t.prev = 8),
(t.t0 = t.catch(0)),
t.abrupt("return", null)
);
case 11:
case "end":
return t.stop();
}
},
t,
this,
[[0, 8]],
);
}),
)),
function (t) {
return a.apply(this, arguments);
}),
},
{
key: "getWorkflowList",
value:
((u = rA(
rN().mark(function t(e) {
var r;
return rN().wrap(
function (t) {
for (;;)
switch ((t.prev = t.next)) {
case 0:
return (
(t.prev = 0),
(t.next = 3),
this.apiClient.post("/comfy/list", e)
);
case 3:
return (
(r = t.sent.data), t.abrupt("return", r || null)
);
case 8:
return (
(t.prev = 8),
(t.t0 = t.catch(0)),
t.abrupt("return", null)
);
case 11:
case "end":
return t.stop();
}
},
t,
this,
[[0, 8]],
);
}),
)),
function (t) {
return u.apply(this, arguments);
}),
},
{
key: "getImageList",
value:
((c = rA(
rN().mark(function t(e) {
var r;
return rN().wrap(
function (t) {
for (;;)
switch ((t.prev = t.next)) {
case 0:
return (
(t.prev = 0),
(t.next = 3),
this.apiClient.post("/img/list", e)
);
case 3:
return (
(r = t.sent.data), t.abrupt("return", r || null)
);
case 8:
return (
(t.prev = 8),
(t.t0 = t.catch(0)),
t.abrupt("return", null)
);
case 11:
case "end":
return t.stop();
}
},
t,
this,
[[0, 8]],
);
}),
)),
function (t) {
return c.apply(this, arguments);
}),
},
{
key: "getLikeModelsList",
value:
((s = rA(
rN().mark(function t(e) {
var r, n;
return rN().wrap(
function (t) {
for (;;)
switch ((t.prev = t.next)) {
case 0:
return (
(r = e.isWorkflow
? "/comfy/like/list"
: "/model/like/list"),
delete e.isWorkflow,
(t.prev = 2),
(t.next = 5),
this.apiClient.post(r, e)
);
case 5:
return (
(n = t.sent.data), t.abrupt("return", n || null)
);
case 10:
return (
(t.prev = 10),
(t.t0 = t.catch(2)),
t.abrupt("return", null)
);
case 13:
case "end":
return t.stop();
}
},
t,
this,
[[2, 10]],
);
}),
)),
function (t) {
return s.apply(this, arguments);
}),
},
{
key: "getLikeImageTemplateList",
value:
((l = rA(
rN().mark(function t(e) {
var r, n;
return rN().wrap(
function (t) {
for (;;)
switch ((t.prev = t.next)) {
case 0:
return (
(r = e.isWorkflow
? "/comfy/like/list"
: "/model/template/like/list"),
delete e.isWorkflow,
(t.prev = 2),
(t.next = 5),
this.apiClient.post(r, e)
);
case 5:
return (
(n = t.sent.data), t.abrupt("return", n || null)
);
case 10:
return (
(t.prev = 10),
(t.t0 = t.catch(2)),
t.abrupt("return", null)
);
case 13:
case "end":
return t.stop();
}
},
t,
this,
[[2, 10]],
);
}),
)),
function (t) {
return l.apply(this, arguments);
}),
},
{
key: "getLikeImagesList",
value:
((f = rA(
rN().mark(function t(e) {
var r;
return rN().wrap(
function (t) {
for (;;)
switch ((t.prev = t.next)) {
case 0:
return (
(t.prev = 0),
(t.next = 3),
this.apiClient.post("/img/like/list", e)
);
case 3:
return (
(r = t.sent.data), t.abrupt("return", r || null)
);
case 8:
return (
(t.prev = 8),
(t.t0 = t.catch(0)),
t.abrupt("return", null)
);
case 11:
case "end":
return t.stop();
}
},
t,
this,
[[0, 8]],
);
}),
)),
function (t) {
return f.apply(this, arguments);
}),
},
{
key: "postUserFollow",
value:
((p = rA(
rN().mark(function t(e) {
var r;
return rN().wrap(
function (t) {
for (;;)
switch ((t.prev = t.next)) {
case 0:
return (
(t.next = 2),
this.apiClient.post("/community/userFollow", e)
);
case 2:
return (r = t.sent), t.abrupt("return", r);
case 4:
case "end":
return t.stop();
}
},
t,
this,
);
}),
)),
function (t) {
return p.apply(this, arguments);
}),
},
{
key: "deleteModel",
value:
((h = rA(
rN().mark(function t(e) {
var r;
return rN().wrap(
function (t) {
for (;;)
switch ((t.prev = t.next)) {
case 0:
return (
(t.prev = 0),
(t.next = 3),
this.apiClient.post("/model/delete/" + e)
);
case 3:
return (
(r = t.sent.data), t.abrupt("return", r || null)
);
case 8:
return (
(t.prev = 8),
(t.t0 = t.catch(0)),
t.abrupt("return", null)
);
case 11:
case "end":
return t.stop();
}
},
t,
this,
[[0, 8]],
);
}),
)),
function (t) {
return h.apply(this, arguments);
}),
},
{
key: "deleteImg",
value:
((y = rA(
rN().mark(function t(e) {
var r;
return rN().wrap(
function (t) {
for (;;)
switch ((t.prev = t.next)) {
case 0:
return (
(t.prev = 0),
(t.next = 3),
this.apiClient.post("/img/group/del/" + e)
);
case 3:
return (
(r = t.sent.data), t.abrupt("return", r || null)
);
case 8:
return (
(t.prev = 8),
(t.t0 = t.catch(0)),
t.abrupt("return", null)
);
case 11:
case "end":
return t.stop();
}
},
t,
this,
[[0, 8]],
);
}),
)),
function (t) {
return y.apply(this, arguments);
}),
},
{
key: "updateUserInfo",
value:
((v = rA(
rN().mark(function t(e) {
var r;
return rN().wrap(
function (t) {
for (;;)
switch ((t.prev = t.next)) {
case 0:
return (
(t.prev = 0),
(t.next = 3),
this.apiClient.post(
(0, rC.getUrl)("/api/www/user/base/info"),
e,
)
);
case 3:
return (r = t.sent), t.abrupt("return", r || null);
case 7:
return (
(t.prev = 7),
(t.t0 = t.catch(0)),
t.abrupt("return", null)
);
case 10:
case "end":
return t.stop();
}
},
t,
this,
[[0, 7]],
);
}),
)),
function (t) {
return v.apply(this, arguments);
}),
},
{
key: "updateUserBgImg",
value:
((d = rA(
rN().mark(function t(e) {
var r;
return rN().wrap(
function (t) {
for (;;)
switch ((t.prev = t.next)) {
case 0:
return (
(t.prev = 0),
(t.next = 3),
this.apiClient.post(
(0, rC.getUrl)(
"/api/www/user/modify/spaceImage",
),
{ coverImage: e },
)
);
case 3:
return (r = t.sent), t.abrupt("return", r || null);
case 7:
return (
(t.prev = 7),
(t.t0 = t.catch(0)),
t.abrupt("return", null)
);
case 10:
case "end":
return t.stop();
}
},
t,
this,
[[0, 7]],
);
}),
)),
function (t) {
return d.apply(this, arguments);
}),
},
{
key: "getUserIncentive",
value:
((g = rA(
rN().mark(function t(e) {
var r;
return rN().wrap(
function (t) {
for (;;)
switch ((t.prev = t.next)) {
case 0:
return (
(t.next = 2),
this.apiClient.post(
"/commerce/incentive/hasIncentive",
{},
{ headers: { token: e } },
)
);
case 2:
return (r = t.sent), t.abrupt("return", r);
case 4:
case "end":
return t.stop();
}
},
t,
this,
);
}),
)),
function (t) {
return g.apply(this, arguments);
}),
},
{
key: "getCollectData",
value:
((m = rA(
rN().mark(function t(e) {
var r;
return rN().wrap(
function (t) {
for (;;)
switch ((t.prev = t.next)) {
case 0:
return (
(t.prev = 0),
(t.next = 3),
this.apiClient.post("/model/tool/like/list", e)
);
case 3:
return (r = t.sent), t.abrupt("return", r || null);
case 7:
return (
(t.prev = 7),
(t.t0 = t.catch(0)),
t.abrupt("return", null)
);
case 10:
case "end":
return t.stop();
}
},
t,
this,
[[0, 7]],
);
}),
)),
function (t) {
return m.apply(this, arguments);
}),
},
{
key: "getBaseSearch",
value:
((b = rA(
rN().mark(function t(e) {
var r;
return rN().wrap(
function (t) {
for (;;)
switch ((t.prev = t.next)) {
case 0:
return (
(t.prev = 0),
(t.next = 3),
this.apiClient.post("/model/tool/baseSearch", e)
);
case 3:
return (r = t.sent), t.abrupt("return", r || null);
case 7:
return (
(t.prev = 7),
(t.t0 = t.catch(0)),
t.abrupt("return", null)
);
case 10:
case "end":
return t.stop();
}
},
t,
this,
[[0, 7]],
);
}),
)),
function (t) {
return b.apply(this, arguments);
}),
},
{
key: "getBaseSearchNew",
value:
((w = rA(
rN().mark(function t(e) {
var r;
return rN().wrap(
function (t) {
for (;;)
switch ((t.prev = t.next)) {
case 0:
return (
(t.prev = 0),
(t.next = 3),
this.apiClient.post("/comfyApp/search", e)
);
case 3:
return (r = t.sent), t.abrupt("return", r || null);
case 7:
return (
(t.prev = 7),
(t.t0 = t.catch(0)),
t.abrupt("return", null)
);
case 10:
case "end":
return t.stop();
}
},
t,
this,
[[0, 7]],
);
}),
)),
function (t) {
return w.apply(this, arguments);
}),
},
{
key: "getCollection",
value:
((x = rA(
rN().mark(function t(e) {
var r;
return rN().wrap(
function (t) {
for (;;)
switch ((t.prev = t.next)) {
case 0:
return (
(t.prev = 0),
(t.next = 3),
this.apiClient.post("/comfyApp/collection", e)
);
case 3:
return (r = t.sent), t.abrupt("return", r || null);
case 7:
return (
(t.prev = 7),
(t.t0 = t.catch(0)),
t.abrupt("return", null)
);
case 10:
case "end":
return t.stop();
}
},
t,
this,
[[0, 7]],
);
}),
)),
function (t) {
return x.apply(this, arguments);
}),
},
{
key: "applyLibVerifiedAuthor",
value:
((O = rA(
rN().mark(function t() {
var e;
return rN().wrap(
function (t) {
for (;;)
switch ((t.prev = t.next)) {
case 0:
return (
(t.prev = 0),
(t.next = 3),
this.apiClient.post(
"/author/authentication/apply",
{},
)
);
case 3:
return (e = t.sent), t.abrupt("return", e || null);
case 7:
return (
(t.prev = 7),
(t.t0 = t.catch(0)),
t.abrupt("return", null)
);
case 10:
case "end":
return t.stop();
}
},
t,
this,
[[0, 7]],
);
}),
)),
function () {
return O.apply(this, arguments);
}),
},
{
key: "getLibVerifiedAuthorInfo",
value:
((E = rA(
rN().mark(function t() {
var e;
return rN().wrap(
function (t) {
for (;;)
switch ((t.prev = t.next)) {
case 0:
return (
(t.prev = 0),
(t.next = 3),
this.apiClient.get(
"/author/authentication/overview",
{},
)
);
case 3:
return (e = t.sent), t.abrupt("return", e || null);
case 7:
return (
(t.prev = 7),
(t.t0 = t.catch(0)),
t.abrupt("return", null)
);
case 10:
case "end":
return t.stop();
}
},
t,
this,
[[0, 7]],
);
}),
)),
function () {
return E.apply(this, arguments);
}),
},
{
key: "getLibAuthenticationStatus",
value:
((L = rA(
rN().mark(function t() {
var e;
return rN().wrap(
function (t) {
for (;;)
switch ((t.prev = t.next)) {
case 0:
return (
(t.prev = 0),
(t.next = 3),
this.apiClient.get(
"/author/authentication/status",
{},
)
);
case 3:
return (e = t.sent), t.abrupt("return", e || null);
case 7:
return (
(t.prev = 7),
(t.t0 = t.catch(0)),
t.abrupt("return", null)
);
case 10:
case "end":
return t.stop();
}
},
t,
this,
[[0, 7]],
);
}),
)),
function () {
return L.apply(this, arguments);
}),
},
]),
(function (t, e) {
for (var r = 0; r < e.length; r++) {
var n = e[r];
(n.enumerable = n.enumerable || !1),
(n.configurable = !0),
"value" in n && (n.writable = !0),
Object.defineProperty(
t,
(function (t) {
var e = (function (t, e) {
if ("object" != rR(t) || !t) return t;
var r = t[Symbol.toPrimitive];
if (void 0 !== r) {
var n = r.call(t, e || "default");
if ("object" != rR(n)) return n;
throw TypeError(
"@@toPrimitive must return a primitive value.",
);
}
return ("string" === e ? String : Number)(t);
})(t, "string");
return "symbol" == rR(e) ? e : String(e);
})(n.key),
n,
);
}
})(k.prototype, j),
Object.defineProperty(k, "prototype", { writable: !1 }),
k
);
})(eG);
function rD(t) {
return (rD =
"function" == typeof Symbol && "symbol" == typeof Symbol.iterator
? function (t) {
return typeof t;
}
: function (t) {
return t &&
"function" == typeof Symbol &&
t.constructor === Symbol &&
t !== Symbol.prototype
? "symbol"
: typeof t;
})(t);
}
function rB() {
rB = function () {
return e;
};
var t,
e = {},
r = Object.prototype,
n = r.hasOwnProperty,
o =
Object.defineProperty ||
function (t, e, r) {
t[e] = r.value;
},
i = "function" == typeof Symbol ? Symbol : {},
a = i.iterator || "@@iterator",
u = i.asyncIterator || "@@asyncIterator",
c = i.toStringTag || "@@toStringTag";
function s(t, e, r) {
return (
Object.defineProperty(t, e, {
value: r,
enumerable: !0,
configurable: !0,
writable: !0,
}),
t[e]
);
}
try {
s({}, "");
} catch (t) {
s = function (t, e, r) {
return (t[e] = r);
};
}
function l(e, r, n, i) {
var a,
u,
c,
s,
l = Object.create((r && r.prototype instanceof d ? r : d).prototype);
return (
o(l, "_invoke", {
value:
((a = e),
(u = n),
(c = new k(i || [])),
(s = p),
function (e, r) {
if (s === h) throw Error("Generator is already running");
if (s === y) {
if ("throw" === e) throw r;
return { value: t, done: !0 };
}
for (c.method = e, c.arg = r; ; ) {
var n = c.delegate;
if (n) {
var o = (function e(r, n) {
var o = n.method,
i = r.iterator[o];
if (i === t)
return (
(n.delegate = null),
("throw" === o &&
r.iterator.return &&
((n.method = "return"),
(n.arg = t),
e(r, n),
"throw" === n.method)) ||
("return" !== o &&
((n.method = "throw"),
(n.arg = TypeError(
"The iterator does not provide a '" +
o +
"' method",
)))),
v
);
var a = f(i, r.iterator, n.arg);
if ("throw" === a.type)
return (
(n.method = "throw"),
(n.arg = a.arg),
(n.delegate = null),
v
);
var u = a.arg;
return u
? u.done
? ((n[r.resultName] = u.value),
(n.next = r.nextLoc),
"return" !== n.method &&
((n.method = "next"), (n.arg = t)),
(n.delegate = null),
v)
: u
: ((n.method = "throw"),
(n.arg = TypeError(
"iterator result is not an object",
)),
(n.delegate = null),
v);
})(n, c);
if (o) {
if (o === v) continue;
return o;
}
}
if ("next" === c.method) c.sent = c._sent = c.arg;
else if ("throw" === c.method) {
if (s === p) throw ((s = y), c.arg);
c.dispatchException(c.arg);
} else "return" === c.method && c.abrupt("return", c.arg);
s = h;
var i = f(a, u, c);
if ("normal" === i.type) {
if (((s = c.done ? y : "suspendedYield"), i.arg === v))
continue;
return { value: i.arg, done: c.done };
}
"throw" === i.type &&
((s = y), (c.method = "throw"), (c.arg = i.arg));
}
}),
}),
l
);
}
function f(t, e, r) {
try {
return { type: "normal", arg: t.call(e, r) };
} catch (t) {
return { type: "throw", arg: t };
}
}
e.wrap = l;
var p = "suspendedStart",
h = "executing",
y = "completed",
v = {};
function d() {}
function g() {}
function m() {}
var b = {};
s(b, a, function () {
return this;
});
var w = Object.getPrototypeOf,
x = w && w(w(P([])));
x && x !== r && n.call(x, a) && (b = x);
var O = (m.prototype = d.prototype = Object.create(b));
function E(t) {
["next", "throw", "return"].forEach(function (e) {
s(t, e, function (t) {
return this._invoke(e, t);
});
});
}
function L(t, e) {
var r;
o(this, "_invoke", {
value: function (o, i) {
function a() {
return new e(function (r, a) {
!(function r(o, i, a, u) {
var c = f(t[o], t, i);
if ("throw" !== c.type) {
var s = c.arg,
l = s.value;
return l && "object" == rD(l) && n.call(l, "__await")
? e.resolve(l.__await).then(
function (t) {
r("next", t, a, u);
},
function (t) {
r("throw", t, a, u);
},
)
: e.resolve(l).then(
function (t) {
(s.value = t), a(s);
},
function (t) {
return r("throw", t, a, u);
},
);
}
u(c.arg);
})(o, i, r, a);
});
}
return (r = r ? r.then(a, a) : a());
},
});
}
function j(t) {
var e = { tryLoc: t[0] };
1 in t && (e.catchLoc = t[1]),
2 in t && ((e.finallyLoc = t[2]), (e.afterLoc = t[3])),
this.tryEntries.push(e);
}
function _(t) {
var e = t.completion || {};
(e.type = "normal"), delete e.arg, (t.completion = e);
}
function k(t) {
(this.tryEntries = [{ tryLoc: "root" }]),
t.forEach(j, this),
this.reset(!0);
}
function P(e) {
if (e || "" === e) {
var r = e[a];
if (r) return r.call(e);
if ("function" == typeof e.next) return e;
if (!isNaN(e.length)) {
var o = -1,
i = function r() {
for (; ++o < e.length; )
if (n.call(e, o)) return (r.value = e[o]), (r.done = !1), r;
return (r.value = t), (r.done = !0), r;
};
return (i.next = i);
}
}
throw TypeError(rD(e) + " is not iterable");
}
return (
(g.prototype = m),
o(O, "constructor", { value: m, configurable: !0 }),
o(m, "constructor", { value: g, configurable: !0 }),
(g.displayName = s(m, c, "GeneratorFunction")),
(e.isGeneratorFunction = function (t) {
var e = "function" == typeof t && t.constructor;
return (
!!e &&
(e === g || "GeneratorFunction" === (e.displayName || e.name))
);
}),
(e.mark = function (t) {
return (
Object.setPrototypeOf
? Object.setPrototypeOf(t, m)
: ((t.__proto__ = m), s(t, c, "GeneratorFunction")),
(t.prototype = Object.create(O)),
t
);
}),
(e.awrap = function (t) {
return { __await: t };
}),
E(L.prototype),
s(L.prototype, u, function () {
return this;
}),
(e.AsyncIterator = L),
(e.async = function (t, r, n, o, i) {
void 0 === i && (i = Promise);
var a = new L(l(t, r, n, o), i);
return e.isGeneratorFunction(r)
? a
: a.next().then(function (t) {
return t.done ? t.value : a.next();
});
}),
E(O),
s(O, c, "Generator"),
s(O, a, function () {
return this;
}),
s(O, "toString", function () {
return "[object Generator]";
}),
(e.keys = function (t) {
var e = Object(t),
r = [];
for (var n in e) r.push(n);
return (
r.reverse(),
function t() {
for (; r.length; ) {
var n = r.pop();
if (n in e) return (t.value = n), (t.done = !1), t;
}
return (t.done = !0), t;
}
);
}),
(e.values = P),
(k.prototype = {
constructor: k,
reset: function (e) {
if (
((this.prev = 0),
(this.next = 0),
(this.sent = this._sent = t),
(this.done = !1),
(this.delegate = null),
(this.method = "next"),
(this.arg = t),
this.tryEntries.forEach(_),
!e)
)
for (var r in this)
"t" === r.charAt(0) &&
n.call(this, r) &&
!isNaN(+r.slice(1)) &&
(this[r] = t);
},
stop: function () {
this.done = !0;
var t = this.tryEntries[0].completion;
if ("throw" === t.type) throw t.arg;
return this.rval;
},
dispatchException: function (e) {
if (this.done) throw e;
var r = this;
function o(n, o) {
return (
(u.type = "throw"),
(u.arg = e),
(r.next = n),
o && ((r.method = "next"), (r.arg = t)),
!!o
);
}
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
var a = this.tryEntries[i],
u = a.completion;
if ("root" === a.tryLoc) return o("end");
if (a.tryLoc <= this.prev) {
var c = n.call(a, "catchLoc"),
s = n.call(a, "finallyLoc");
if (c && s) {
if (this.prev < a.catchLoc) return o(a.catchLoc, !0);
if (this.prev < a.finallyLoc) return o(a.finallyLoc);
} else if (c) {
if (this.prev < a.catchLoc) return o(a.catchLoc, !0);
} else {
if (!s) throw Error("try statement without catch or finally");
if (this.prev < a.finallyLoc) return o(a.finallyLoc);
}
}
}
},
abrupt: function (t, e) {
for (var r = this.tryEntries.length - 1; r >= 0; --r) {
var o = this.tryEntries[r];
if (
o.tryLoc <= this.prev &&
n.call(o, "finallyLoc") &&
this.prev < o.finallyLoc
) {
var i = o;
break;
}
}
i &&
("break" === t || "continue" === t) &&
i.tryLoc <= e &&
e <= i.finallyLoc &&
(i = null);
var a = i ? i.completion : {};
return (
(a.type = t),
(a.arg = e),
i
? ((this.method = "next"), (this.next = i.finallyLoc), v)
: this.complete(a)
);
},
complete: function (t, e) {
if ("throw" === t.type) throw t.arg;
return (
"break" === t.type || "continue" === t.type
? (this.next = t.arg)
: "return" === t.type
? ((this.rval = this.arg = t.arg),
(this.method = "return"),
(this.next = "end"))
: "normal" === t.type && e && (this.next = e),
v
);
},
finish: function (t) {
for (var e = this.tryEntries.length - 1; e >= 0; --e) {
var r = this.tryEntries[e];
if (r.finallyLoc === t)
return this.complete(r.completion, r.afterLoc), _(r), v;
}
},
catch: function (t) {
for (var e = this.tryEntries.length - 1; e >= 0; --e) {
var r = this.tryEntries[e];
if (r.tryLoc === t) {
var n = r.completion;
if ("throw" === n.type) {
var o = n.arg;
_(r);
}
return o;
}
}
throw Error("illegal catch attempt");
},
delegateYield: function (e, r, n) {
return (
(this.delegate = { iterator: P(e), resultName: r, nextLoc: n }),
"next" === this.method && (this.arg = t),
v
);
},
}),
e
);
}
function rM(t, e, r, n, o, i, a) {
try {
var u = t[i](a),
c = u.value;
} catch (t) {
r(t);
return;
}
u.done ? e(c) : Promise.resolve(c).then(n, o);
}
function rq(t) {
return function () {
var e = this,
r = arguments;
return new Promise(function (n, o) {
var i = t.apply(e, r);
function a(t) {
rM(i, n, o, a, u, "next", t);
}
function u(t) {
rM(i, n, o, a, u, "throw", t);
}
a(void 0);
});
};
}
t.s(["UserService", () => rG], 81881);
function rV(t, e) {
return (rV = Object.setPrototypeOf
? Object.setPrototypeOf.bind()
: function (t, e) {
return (t.__proto__ = e), t;
})(t, e);
}
function rH(t) {
return (rH = Object.setPrototypeOf
? Object.getPrototypeOf.bind()
: function (t) {
return t.__proto__ || Object.getPrototypeOf(t);
})(t);
}
function rW(t, e) {
var r = Object.keys(t);
if (Object.getOwnPropertySymbols) {
var n = Object.getOwnPropertySymbols(t);
e &&
(n = n.filter(function (e) {
return Object.getOwnPropertyDescriptor(t, e).enumerable;
})),
r.push.apply(r, n);
}
return r;
}
function rY(t) {
for (var e = 1; e < arguments.length; e++) {
var r = null != arguments[e] ? arguments[e] : {};
e % 2
? rW(Object(r), !0).forEach(function (e) {
var n, o, i;
(n = t),
(o = e),
(i = r[e]),
(o = rz(o)) in n
? Object.defineProperty(n, o, {
value: i,
enumerable: !0,
configurable: !0,
writable: !0,
})
: (n[o] = i);
})
: Object.getOwnPropertyDescriptors
? Object.defineProperties(t, Object.getOwnPropertyDescriptors(r))
: rW(Object(r)).forEach(function (e) {
Object.defineProperty(
t,
e,
Object.getOwnPropertyDescriptor(r, e),
);
});
}
return t;
}
function rz(t) {
var e = (function (t, e) {
if ("object" != rD(t) || !t) return t;
var r = t[Symbol.toPrimitive];
if (void 0 !== r) {
var n = r.call(t, e || "default");
if ("object" != rD(n)) return n;
throw TypeError("@@toPrimitive must return a primitive value.");
}
return ("string" === e ? String : Number)(t);
})(t, "string");
return "symbol" == rD(e) ? e : String(e);
}
var rK = (function (t) {
if ("function" != typeof t && null !== t)
throw TypeError("Super expression must either be null or a function");
(f.prototype = Object.create(t && t.prototype, {
constructor: { value: f, writable: !0, configurable: !0 },
})),
Object.defineProperty(f, "prototype", { writable: !1 }),
t && rV(f, t);
var e,
r,
n,
o,
i,
a,
u,
c,
s,
l =
((e = (function () {
if (
"u" < typeof Reflect ||
!Reflect.construct ||
Reflect.construct.sham
)
return !1;
if ("function" == typeof Proxy) return !0;
try {
return (
Boolean.prototype.valueOf.call(
Reflect.construct(Boolean, [], function () {}),
),
!0
);
} catch (t) {
return !1;
}
})()),
function () {
var t,
r = rH(f);
return (
(t = e
? Reflect.construct(r, arguments, rH(this).constructor)
: r.apply(this, arguments)),
(function (t, e) {
if (e && ("object" === rD(e) || "function" == typeof e))
return e;
if (void 0 !== e)
throw TypeError(
"Derived constructors may only return object or undefined",
);
var r = t;
if (void 0 === r)
throw ReferenceError(
"this hasn't been initialised - super() hasn't been called",
);
return r;
})(this, t)
);
});
function f() {
if (!(this instanceof f))
throw TypeError("Cannot call a class as a function");
return l.apply(this, arguments);
}
return (
(s = [
{
key: "batchReadMsg",
value:
((r = rq(
rB().mark(function t() {
var e;
return rB().wrap(
function (t) {
for (;;)
switch ((t.prev = t.next)) {
case 0:
return (
(t.next = 3),
this.apiClient.post(
"/community/batchReadMsg?firstType=0",
)
);
case 3:
return (e = t.sent), t.abrupt("return", e);
case 5:
case "end":
return t.stop();
}
},
t,
this,
);
}),
)),
function () {
return r.apply(this, arguments);
}),
},
{
key: "getMyTypeMsseageList",
value:
((n = rq(
rB().mark(function t(e) {
var r, n, o, i, a;
return rB().wrap(
function (t) {
for (;;)
switch ((t.prev = t.next)) {
case 0:
return (
(r = e.firstType),
(n = e.secondType),
(o = e.page),
(i = e.pageSize),
(t.next = 3),
this.apiClient.post(
"/community/myTypeMsg?firstType="
.concat(r, "&secondType=")
.concat(n, "&page=")
.concat(o, "&pageSize=")
.concat(i),
)
);
case 3:
return (
(a = (function (t, e) {
if (!t)
return {
data: [],
page: e.page,
pageSize: e.pageSize,
total: 0,
};
return null == t.pageSize
? rY(
rY({}, t),
{},
{ pageSize: e.pageSize, page: e.page },
)
: t;
})(t.sent.data, e)),
t.abrupt("return", a)
);
case 6:
case "end":
return t.stop();
}
},
t,
this,
);
}),
)),
function (t) {
return n.apply(this, arguments);
}),
},
{
key: "getMessageCounter",
value:
((o = rq(
rB().mark(function t() {
var e;
return rB().wrap(
function (t) {
for (;;)
switch ((t.prev = t.next)) {
case 0:
return (
(t.next = 3),
this.apiClient.post("/community/msgCounter")
);
case 3:
return (e = t.sent), t.abrupt("return", e.data);
case 5:
case "end":
return t.stop();
}
},
t,
this,
);
}),
)),
function () {
return o.apply(this, arguments);
}),
},
{
key: "getMyMessage",
value:
((i = rq(
rB().mark(function t() {
var e;
return rB().wrap(
function (t) {
for (;;)
switch ((t.prev = t.next)) {
case 0:
return (
(t.next = 2),
this.apiClient.post("/community/myMsg")
);
case 2:
return (e = t.sent), t.abrupt("return", e.data);
case 4:
case "end":
return t.stop();
}
},
t,
this,
);
}),
)),
function () {
return i.apply(this, arguments);
}),
},
{
key: "getMessageDetail",
value:
((a = rq(
rB().mark(function t(e) {
return rB().wrap(
function (t) {
for (;;)
switch ((t.prev = t.next)) {
case 0:
return (
(t.next = 2),
this.apiClient.post("/community/msgDetail", {
id: e,
})
);
case 2:
return t.abrupt("return", t.sent);
case 3:
case "end":
return t.stop();
}
},
t,
this,
);
}),
)),
function (t) {
return a.apply(this, arguments);
}),
},
{
key: "getReportData",
value:
((u = rq(
rB().mark(function t(e) {
return rB().wrap(
function (t) {
for (;;)
switch ((t.prev = t.next)) {
case 0:
return (
(t.next = 2),
this.apiClient.post(
"/commerce/incentive/queryDetailByCode",
{ batchDetailNo: e },
)
);
case 2:
return t.abrupt("return", t.sent);
case 3:
case "end":
return t.stop();
}
},
t,
this,
);
}),
)),
function (t) {
return u.apply(this, arguments);
}),
},
{
key: "postReadMessage",
value:
((c = rq(
rB().mark(function t(e) {
return rB().wrap(
function (t) {
for (;;)
switch ((t.prev = t.next)) {
case 0:
return (
(t.next = 2),
this.apiClient.post("/community/readMsg", {
id: e,
})
);
case 2:
case "end":
return t.stop();
}
},
t,
this,
);
}),
)),
function (t) {
return c.apply(this, arguments);
}),
},
]),
(function (t, e) {
for (var r = 0; r < e.length; r++) {
var n = e[r];
(n.enumerable = n.enumerable || !1),
(n.configurable = !0),
"value" in n && (n.writable = !0),
Object.defineProperty(t, rz(n.key), n);
}
})(f.prototype, s),
Object.defineProperty(f, "prototype", { writable: !1 }),
f
);
})(eG);
function r$(t) {
return (r$ =
"function" == typeof Symbol && "symbol" == typeof Symbol.iterator
? function (t) {
return typeof t;
}
: function (t) {
return t &&
"function" == typeof Symbol &&
t.constructor === Symbol &&
t !== Symbol.prototype
? "symbol"
: typeof t;
})(t);
}
function rJ(t, e) {
var r = Object.keys(t);
if (Object.getOwnPropertySymbols) {
var n = Object.getOwnPropertySymbols(t);
e &&
(n = n.filter(function (e) {
return Object.getOwnPropertyDescriptor(t, e).enumerable;
})),
r.push.apply(r, n);
}
return r;
}
function rQ() {
rQ = function () {
return e;
};
var t,
e = {},
r = Object.prototype,
n = r.hasOwnProperty,
o =
Object.defineProperty ||
function (t, e, r) {
t[e] = r.value;
},
i = "function" == typeof Symbol ? Symbol : {},
a = i.iterator || "@@iterator",
u = i.asyncIterator || "@@asyncIterator",
c = i.toStringTag || "@@toStringTag";
function s(t, e, r) {
return (
Object.defineProperty(t, e, {
value: r,
enumerable: !0,
configurable: !0,
writable: !0,
}),
t[e]
);
}
try {
s({}, "");
} catch (t) {
s = function (t, e, r) {
return (t[e] = r);
};
}
function l(e, r, n, i) {
var a,
u,
c,
s,
l = Object.create((r && r.prototype instanceof d ? r : d).prototype);
return (
o(l, "_invoke", {
value:
((a = e),
(u = n),
(c = new k(i || [])),
(s = p),
function (e, r) {
if (s === h) throw Error("Generator is already running");
if (s === y) {
if ("throw" === e) throw r;
return { value: t, done: !0 };
}
for (c.method = e, c.arg = r; ; ) {
var n = c.delegate;
if (n) {
var o = (function e(r, n) {
var o = n.method,
i = r.iterator[o];
if (i === t)
return (
(n.delegate = null),
("throw" === o &&
r.iterator.return &&
((n.method = "return"),
(n.arg = t),
e(r, n),
"throw" === n.method)) ||
("return" !== o &&
((n.method = "throw"),
(n.arg = TypeError(
"The iterator does not provide a '" +
o +
"' method",
)))),
v
);
var a = f(i, r.iterator, n.arg);
if ("throw" === a.type)
return (
(n.method = "throw"),
(n.arg = a.arg),
(n.delegate = null),
v
);
var u = a.arg;
return u
? u.done
? ((n[r.resultName] = u.value),
(n.next = r.nextLoc),
"return" !== n.method &&
((n.method = "next"), (n.arg = t)),
(n.delegate = null),
v)
: u
: ((n.method = "throw"),
(n.arg = TypeError(
"iterator result is not an object",
)),
(n.delegate = null),
v);
})(n, c);
if (o) {
if (o === v) continue;
return o;
}
}
if ("next" === c.method) c.sent = c._sent = c.arg;
else if ("throw" === c.method) {
if (s === p) throw ((s = y), c.arg);
c.dispatchException(c.arg);
} else "return" === c.method && c.abrupt("return", c.arg);
s = h;
var i = f(a, u, c);
if ("normal" === i.type) {
if (((s = c.done ? y : "suspendedYield"), i.arg === v))
continue;
return { value: i.arg, done: c.done };
}
"throw" === i.type &&
((s = y), (c.method = "throw"), (c.arg = i.arg));
}
}),
}),
l
);
}
function f(t, e, r) {
try {
return { type: "normal", arg: t.call(e, r) };
} catch (t) {
return { type: "throw", arg: t };
}
}
e.wrap = l;
var p = "suspendedStart",
h = "executing",
y = "completed",
v = {};
function d() {}
function g() {}
function m() {}
var b = {};
s(b, a, function () {
return this;
});
var w = Object.getPrototypeOf,
x = w && w(w(P([])));
x && x !== r && n.call(x, a) && (b = x);
var O = (m.prototype = d.prototype = Object.create(b));
function E(t) {
["next", "throw", "return"].forEach(function (e) {
s(t, e, function (t) {
return this._invoke(e, t);
});
});
}
function L(t, e) {
var r;
o(this, "_invoke", {
value: function (o, i) {
function a() {
return new e(function (r, a) {
!(function r(o, i, a, u) {
var c = f(t[o], t, i);
if ("throw" !== c.type) {
var s = c.arg,
l = s.value;
return l && "object" == r$(l) && n.call(l, "__await")
? e.resolve(l.__await).then(
function (t) {
r("next", t, a, u);
},
function (t) {
r("throw", t, a, u);
},
)
: e.resolve(l).then(
function (t) {
(s.value = t), a(s);
},
function (t) {
return r("throw", t, a, u);
},
);
}
u(c.arg);
})(o, i, r, a);
});
}
return (r = r ? r.then(a, a) : a());
},
});
}
function j(t) {
var e = { tryLoc: t[0] };
1 in t && (e.catchLoc = t[1]),
2 in t && ((e.finallyLoc = t[2]), (e.afterLoc = t[3])),
this.tryEntries.push(e);
}
function _(t) {
var e = t.completion || {};
(e.type = "normal"), delete e.arg, (t.completion = e);
}
function k(t) {
(this.tryEntries = [{ tryLoc: "root" }]),
t.forEach(j, this),
this.reset(!0);
}
function P(e) {
if (e || "" === e) {
var r = e[a];
if (r) return r.call(e);
if ("function" == typeof e.next) return e;
if (!isNaN(e.length)) {
var o = -1,
i = function r() {
for (; ++o < e.length; )
if (n.call(e, o)) return (r.value = e[o]), (r.done = !1), r;
return (r.value = t), (r.done = !0), r;
};
return (i.next = i);
}
}
throw TypeError(r$(e) + " is not iterable");
}
return (
(g.prototype = m),
o(O, "constructor", { value: m, configurable: !0 }),
o(m, "constructor", { value: g, configurable: !0 }),
(g.displayName = s(m, c, "GeneratorFunction")),
(e.isGeneratorFunction = function (t) {
var e = "function" == typeof t && t.constructor;
return (
!!e &&
(e === g || "GeneratorFunction" === (e.displayName || e.name))
);
}),
(e.mark = function (t) {
return (
Object.setPrototypeOf
? Object.setPrototypeOf(t, m)
: ((t.__proto__ = m), s(t, c, "GeneratorFunction")),
(t.prototype = Object.create(O)),
t
);
}),
(e.awrap = function (t) {
return { __await: t };
}),
E(L.prototype),
s(L.prototype, u, function () {
return this;
}),
(e.AsyncIterator = L),
(e.async = function (t, r, n, o, i) {
void 0 === i && (i = Promise);
var a = new L(l(t, r, n, o), i);
return e.isGeneratorFunction(r)
? a
: a.next().then(function (t) {
return t.done ? t.value : a.next();
});
}),
E(O),
s(O, c, "Generator"),
s(O, a, function () {
return this;
}),
s(O, "toString", function () {
return "[object Generator]";
}),
(e.keys = function (t) {
var e = Object(t),
r = [];
for (var n in e) r.push(n);
return (
r.reverse(),
function t() {
for (; r.length; ) {
var n = r.pop();
if (n in e) return (t.value = n), (t.done = !1), t;
}
return (t.done = !0), t;
}
);
}),
(e.values = P),
(k.prototype = {
constructor: k,
reset: function (e) {
if (
((this.prev = 0),
(this.next = 0),
(this.sent = this._sent = t),
(this.done = !1),
(this.delegate = null),
(this.method = "next"),
(this.arg = t),
this.tryEntries.forEach(_),
!e)
)
for (var r in this)
"t" === r.charAt(0) &&
n.call(this, r) &&
!isNaN(+r.slice(1)) &&
(this[r] = t);
},
stop: function () {
this.done = !0;
var t = this.tryEntries[0].completion;
if ("throw" === t.type) throw t.arg;
return this.rval;
},
dispatchException: function (e) {
if (this.done) throw e;
var r = this;
function o(n, o) {
return (
(u.type = "throw"),
(u.arg = e),
(r.next = n),
o && ((r.method = "next"), (r.arg = t)),
!!o
);
}
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
var a = this.tryEntries[i],
u = a.completion;
if ("root" === a.tryLoc) return o("end");
if (a.tryLoc <= this.prev) {
var c = n.call(a, "catchLoc"),
s = n.call(a, "finallyLoc");
if (c && s) {
if (this.prev < a.catchLoc) return o(a.catchLoc, !0);
if (this.prev < a.finallyLoc) return o(a.finallyLoc);
} else if (c) {
if (this.prev < a.catchLoc) return o(a.catchLoc, !0);
} else {
if (!s) throw Error("try statement without catch or finally");
if (this.prev < a.finallyLoc) return o(a.finallyLoc);
}
}
}
},
abrupt: function (t, e) {
for (var r = this.tryEntries.length - 1; r >= 0; --r) {
var o = this.tryEntries[r];
if (
o.tryLoc <= this.prev &&
n.call(o, "finallyLoc") &&
this.prev < o.finallyLoc
) {
var i = o;
break;
}
}
i &&
("break" === t || "continue" === t) &&
i.tryLoc <= e &&
e <= i.finallyLoc &&
(i = null);
var a = i ? i.completion : {};
return (
(a.type = t),
(a.arg = e),
i
? ((this.method = "next"), (this.next = i.finallyLoc), v)
: this.complete(a)
);
},
complete: function (t, e) {
if ("throw" === t.type) throw t.arg;
return (
"break" === t.type || "continue" === t.type
? (this.next = t.arg)
: "return" === t.type
? ((this.rval = this.arg = t.arg),
(this.method = "return"),
(this.next = "end"))
: "normal" === t.type && e && (this.next = e),
v
);
},
finish: function (t) {
for (var e = this.tryEntries.length - 1; e >= 0; --e) {
var r = this.tryEntries[e];
if (r.finallyLoc === t)
return this.complete(r.completion, r.afterLoc), _(r), v;
}
},
catch: function (t) {
for (var e = this.tryEntries.length - 1; e >= 0; --e) {
var r = this.tryEntries[e];
if (r.tryLoc === t) {
var n = r.completion;
if ("throw" === n.type) {
var o = n.arg;
_(r);
}
return o;
}
}
throw Error("illegal catch attempt");
},
delegateYield: function (e, r, n) {
return (
(this.delegate = { iterator: P(e), resultName: r, nextLoc: n }),
"next" === this.method && (this.arg = t),
v
);
},
}),
e
);
}
function rX(t, e, r, n, o, i, a) {
try {
var u = t[i](a),
c = u.value;
} catch (t) {
r(t);
return;
}
u.done ? e(c) : Promise.resolve(c).then(n, o);
}
function rZ(t) {
return function () {
var e = this,
r = arguments;
return new Promise(function (n, o) {
var i = t.apply(e, r);
function a(t) {
rX(i, n, o, a, u, "next", t);
}
function u(t) {
rX(i, n, o, a, u, "throw", t);
}
a(void 0);
});
};
}
t.s(["MessageService", () => rK], 354409);
function r0(t, e) {
return (r0 = Object.setPrototypeOf
? Object.setPrototypeOf.bind()
: function (t, e) {
return (t.__proto__ = e), t;
})(t, e);
}
function r1(t) {
if (void 0 === t)
throw ReferenceError(
"this hasn't been initialised - super() hasn't been called",
);
return t;
}
function r2(t) {
return (r2 = Object.setPrototypeOf
? Object.getPrototypeOf.bind()
: function (t) {
return t.__proto__ || Object.getPrototypeOf(t);
})(t);
}
function r3(t, e, r) {
return (
(e = r4(e)) in t
? Object.defineProperty(t, e, {
value: r,
enumerable: !0,
configurable: !0,
writable: !0,
})
: (t[e] = r),
t
);
}
function r4(t) {
var e = (function (t, e) {
if ("object" != r$(t) || !t) return t;
var r = t[Symbol.toPrimitive];
if (void 0 !== r) {
var n = r.call(t, e || "default");
if ("object" != r$(n)) return n;
throw TypeError("@@toPrimitive must return a primitive value.");
}
return ("string" === e ? String : Number)(t);
})(t, "string");
return "symbol" == r$(e) ? e : String(e);
}
var r7 = (function (t) {
if ("function" != typeof t && null !== t)
throw TypeError("Super expression must either be null or a function");
(h.prototype = Object.create(t && t.prototype, {
constructor: { value: h, writable: !0, configurable: !0 },
})),
Object.defineProperty(h, "prototype", { writable: !1 }),
t && r0(h, t);
var e,
r,
n,
o,
i,
a,
u,
c,
s,
l,
f,
p =
((e = (function () {
if (
"u" < typeof Reflect ||
!Reflect.construct ||
Reflect.construct.sham
)
return !1;
if ("function" == typeof Proxy) return !0;
try {
return (
Boolean.prototype.valueOf.call(
Reflect.construct(Boolean, [], function () {}),
),
!0
);
} catch (t) {
return !1;
}
})()),
function () {
var t,
r = r2(h);
return (
(t = e
? Reflect.construct(r, arguments, r2(this).constructor)
: r.apply(this, arguments)),
(function (t, e) {
if (e && ("object" === r$(e) || "function" == typeof e))
return e;
if (void 0 !== e)
throw TypeError(
"Derived constructors may only return object or undefined",
);
return r1(t);
})(this, t)
);
});
function h() {
var t,
e,
r,
n,
o,
i,
a,
u,
c,
s,
l,
f,
y,
v,
d,
g,
m,
b,
w,
x,
O,
E,
L,
j,
_,
k,
P,
S,
T,
C,
R,
N,
U,
A,
I,
F,
G,
D,
B,
M,
q,
V,
H,
W,
Y;
if (!(this instanceof h))
throw TypeError("Cannot call a class as a function");
for (var z = arguments.length, K = Array(z), $ = 0; $ < z; $++)
K[$] = arguments[$];
return (
r3(
r1((t = p.call.apply(p, [this].concat(K)))),
"getSDModelList",
((e = rZ(
rQ().mark(function e(r) {
var n;
return rQ().wrap(
function (e) {
for (;;)
switch ((e.prev = e.next)) {
case 0:
return (
(e.prev = 0),
(e.next = 3),
t.apiClient.post(
(0, rC.getUrl)("/gateway/sd-api/model/search"),
r,
)
);
case 3:
return (n = e.sent.data), e.abrupt("return", n || []);
case 8:
return (
(e.prev = 8),
(e.t0 = e.catch(0)),
e.abrupt("return", [])
);
case 11:
case "end":
return e.stop();
}
},
e,
null,
[[0, 8]],
);
}),
)),
function (t) {
return e.apply(this, arguments);
}),
),
r3(
r1(t),
"getTrainModellList",
((r = rZ(
rQ().mark(function e(r) {
var n;
return rQ().wrap(
function (e) {
for (;;)
switch ((e.prev = e.next)) {
case 0:
return (
(e.prev = 0),
(e.next = 3),
t.apiClient.get(
(0, rC.getUrl)(
"/gateway/training/training-model/list",
),
{ params: r },
)
);
case 3:
return (n = e.sent.data), e.abrupt("return", n || {});
case 8:
return (
(e.prev = 8),
(e.t0 = e.catch(0)),
e.abrupt("return", {})
);
case 11:
case "end":
return e.stop();
}
},
e,
null,
[[0, 8]],
);
}),
)),
function (t) {
return r.apply(this, arguments);
}),
),
r3(
r1(t),
"unsubModel",
((n = rZ(
rQ().mark(function e(r) {
var n;
return rQ().wrap(
function (e) {
for (;;)
switch ((e.prev = e.next)) {
case 0:
return (
(e.prev = 0),
(e.next = 3),
t.apiClient.post(
(0, rC.getUrl)(
"/gateway/sd-api/model/unsubscribe",
),
r,
)
);
case 3:
return (n = e.sent.data), e.abrupt("return", n);
case 8:
return (
(e.prev = 8),
(e.t0 = e.catch(0)),
e.abrupt("return", !1)
);
case 11:
case "end":
return e.stop();
}
},
e,
null,
[[0, 8]],
);
}),
)),
function (t) {
return n.apply(this, arguments);
}),
),
r3(
r1(t),
"addFavorite",
((o = rZ(
rQ().mark(function e(r) {
var n;
return rQ().wrap(
function (e) {
for (;;)
switch ((e.prev = e.next)) {
case 0:
return (
(e.prev = 0),
(e.next = 3),
t.apiClient.post(
(0, rC.getUrl)(
"/gateway/sd-api/model/add-favorite",
),
r,
)
);
case 3:
return (n = e.sent.data), e.abrupt("return", n);
case 8:
return (
(e.prev = 8),
(e.t0 = e.catch(0)),
e.abrupt("return", !1)
);
case 11:
case "end":
return e.stop();
}
},
e,
null,
[[0, 8]],
);
}),
)),
function (t) {
return o.apply(this, arguments);
}),
),
r3(
r1(t),
"dropFavorite",
((i = rZ(
rQ().mark(function e(r) {
var n;
return rQ().wrap(
function (e) {
for (;;)
switch ((e.prev = e.next)) {
case 0:
return (
(e.prev = 0),
(e.next = 3),
t.apiClient.post(
(0, rC.getUrl)(
"/gateway/sd-api/model/drop-favorite",
),
r,
)
);
case 3:
return (n = e.sent.data), e.abrupt("return", n);
case 8:
return (
(e.prev = 8),
(e.t0 = e.catch(0)),
e.abrupt("return", !1)
);
case 11:
case "end":
return e.stop();
}
},
e,
null,
[[0, 8]],
);
}),
)),
function (t) {
return i.apply(this, arguments);
}),
),
r3(
r1(t),
"translate",
((a = rZ(
rQ().mark(function e(r) {
var n;
return rQ().wrap(
function (e) {
for (;;)
switch ((e.prev = e.next)) {
case 0:
return (
(e.prev = 0),
(e.next = 3),
t.apiClient.post(
(0, rC.getUrl)(
"/gateway/common-server-api/common-service/api/translate/text",
),
(function (t) {
for (var e = 1; e < arguments.length; e++) {
var r =
null != arguments[e] ? arguments[e] : {};
e % 2
? rJ(Object(r), !0).forEach(function (e) {
r3(t, e, r[e]);
})
: Object.getOwnPropertyDescriptors
? Object.defineProperties(
t,
Object.getOwnPropertyDescriptors(r),
)
: rJ(Object(r)).forEach(function (e) {
Object.defineProperty(
t,
e,
Object.getOwnPropertyDescriptor(
r,
e,
),
);
});
}
return t;
})({ reqSourceType: "sd" }, r),
)
);
case 3:
return (n = e.sent.data), e.abrupt("return", n);
case 8:
return (
(e.prev = 8),
(e.t0 = e.catch(0)),
e.abrupt("return", "")
);
case 11:
case "end":
return e.stop();
}
},
e,
null,
[[0, 8]],
);
}),
)),
function (t) {
return a.apply(this, arguments);
}),
),
r3(
r1(t),
"getFeedbackOptions",
rZ(
rQ().mark(function e() {
var r;
return rQ().wrap(
function (e) {
for (;;)
switch ((e.prev = e.next)) {
case 0:
return (
(e.prev = 0),
(e.next = 3),
t.apiClient.post(
(0, rC.getUrl)(
"/gateway/sd-api/generate/feedback/options",
),
)
);
case 3:
return (r = e.sent.data), e.abrupt("return", r || []);
case 8:
return (
(e.prev = 8),
(e.t0 = e.catch(0)),
e.abrupt("return", [])
);
case 11:
case "end":
return e.stop();
}
},
e,
null,
[[0, 8]],
);
}),
),
),
r3(
r1(t),
"submitFeedback",
((u = rZ(
rQ().mark(function e(r) {
var n;
return rQ().wrap(
function (e) {
for (;;)
switch ((e.prev = e.next)) {
case 0:
return (
(e.prev = 0),
(e.next = 3),
t.apiClient.post(
(0, rC.getUrl)(
"/gateway/sd-api/generate/feedback/submit",
),
r,
)
);
case 3:
return (n = e.sent.data), e.abrupt("return", n);
case 8:
return (
(e.prev = 8),
(e.t0 = e.catch(0)),
e.abrupt("return", !1)
);
case 11:
case "end":
return e.stop();
}
},
e,
null,
[[0, 8]],
);
}),
)),
function (t) {
return u.apply(this, arguments);
}),
),
r3(
r1(t),
"getPromptStyleList",
rZ(
rQ().mark(function e() {
var r;
return rQ().wrap(
function (e) {
for (;;)
switch ((e.prev = e.next)) {
case 0:
return (
(e.prev = 0),
(e.next = 3),
t.apiClient.post(
(0, rC.getUrl)(
"/gateway/sd-api/generate/style/query/list",
),
)
);
case 3:
return (r = e.sent.data), e.abrupt("return", r);
case 8:
return (
(e.prev = 8),
(e.t0 = e.catch(0)),
e.abrupt("return", [])
);
case 11:
case "end":
return e.stop();
}
},
e,
null,
[[0, 8]],
);
}),
),
),
r3(
r1(t),
"savePromptStyle",
((c = rZ(
rQ().mark(function e(r) {
var n;
return rQ().wrap(
function (e) {
for (;;)
switch ((e.prev = e.next)) {
case 0:
return (
(e.prev = 0),
(e.next = 3),
t.apiClient.post(
(0, rC.getUrl)(
"/gateway/sd-api/generate/style/save",
),
r,
)
);
case 3:
return (n = e.sent.data), e.abrupt("return", n);
case 8:
return (
(e.prev = 8),
(e.t0 = e.catch(0)),
e.abrupt("return", !1)
);
case 11:
case "end":
return e.stop();
}
},
e,
null,
[[0, 8]],
);
}),
)),
function (t) {
return c.apply(this, arguments);
}),
),
r3(
r1(t),
"renamePromptStyle",
((s = rZ(
rQ().mark(function e(r) {
var n;
return rQ().wrap(
function (e) {
for (;;)
switch ((e.prev = e.next)) {
case 0:
return (
(e.prev = 0),
(e.next = 3),
t.apiClient.post(
(0, rC.getUrl)(
"/gateway/sd-api/generate/style/rename",
),
r,
)
);
case 3:
return (n = e.sent.data), e.abrupt("return", n);
case 8:
return (
(e.prev = 8),
(e.t0 = e.catch(0)),
e.abrupt("return", !1)
);
case 11:
case "end":
return e.stop();
}
},
e,
null,
[[0, 8]],
);
}),
)),
function (t) {
return s.apply(this, arguments);
}),
),
r3(
r1(t),
"deletePromptStyle",
((l = rZ(
rQ().mark(function e(r) {
var n;
return rQ().wrap(
function (e) {
for (;;)
switch ((e.prev = e.next)) {
case 0:
return (
(e.prev = 0),
(e.next = 3),
t.apiClient.post(
(0, rC.getUrl)(
"/gateway/sd-api/generate/style/del",
),
r,
)
);
case 3:
return (n = e.sent.data), e.abrupt("return", n);
case 8:
return (
(e.prev = 8),
(e.t0 = e.catch(0)),
e.abrupt("return", !1)
);
case 11:
case "end":
return e.stop();
}
},
e,
null,
[[0, 8]],
);
}),
)),
function (t) {
return l.apply(this, arguments);
}),
),
r3(
r1(t),
"saveStyle",
((f = rZ(
rQ().mark(function e(r) {
var n;
return rQ().wrap(
function (e) {
for (;;)
switch ((e.prev = e.next)) {
case 0:
return (
(e.prev = 0),
(e.next = 3),
t.apiClient.post(
(0, rC.getUrl)(
"/gateway/sd-api/generate/save-style",
),
r,
)
);
case 3:
return (n = e.sent.data), e.abrupt("return", n);
case 8:
return (
(e.prev = 8),
(e.t0 = e.catch(0)),
e.abrupt("return", !1)
);
case 11:
case "end":
return e.stop();
}
},
e,
null,
[[0, 8]],
);
}),
)),
function (t) {
return f.apply(this, arguments);
}),
),
r3(
r1(t),
"queryStyle",
rZ(
rQ().mark(function e() {
var r;
return rQ().wrap(
function (e) {
for (;;)
switch ((e.prev = e.next)) {
case 0:
return (
(e.prev = 0),
(e.next = 3),
t.apiClient.post(
(0, rC.getUrl)(
"/gateway/sd-api/generate/query/style",
),
)
);
case 3:
return (r = e.sent.data), e.abrupt("return", r);
case 8:
return (
(e.prev = 8),
(e.t0 = e.catch(0)),
e.abrupt("return", {})
);
case 11:
case "end":
return e.stop();
}
},
e,
null,
[[0, 8]],
);
}),
),
),
r3(
r1(t),
"getDictionaryList",
((y = rZ(
rQ().mark(function e(r) {
var n;
return rQ().wrap(
function (e) {
for (;;)
switch ((e.prev = e.next)) {
case 0:
return (
(e.prev = 0),
(e.next = 3),
t.apiClient.post(
(0, rC.getUrl)(
"/gateway/sd-api/common/getDictionaryList",
),
r,
)
);
case 3:
return (n = e.sent.data), e.abrupt("return", n);
case 8:
return (
(e.prev = 8),
(e.t0 = e.catch(0)),
e.abrupt("return", [])
);
case 11:
case "end":
return e.stop();
}
},
e,
null,
[[0, 8]],
);
}),
)),
function (t) {
return y.apply(this, arguments);
}),
),
r3(
r1(t),
"getImgRatio",
((v = rZ(
rQ().mark(function e(r) {
var n;
return rQ().wrap(
function (e) {
for (;;)
switch ((e.prev = e.next)) {
case 0:
return (
(e.prev = 0),
(e.next = 3),
t.apiClient.post(
(0, rC.getUrl)(
"/gateway/sd-api/generate/sd3/getAspectRatio",
),
r,
)
);
case 3:
return (n = e.sent.data), e.abrupt("return", n);
case 8:
return (
(e.prev = 8),
(e.t0 = e.catch(0)),
e.abrupt("return", [])
);
case 11:
case "end":
return e.stop();
}
},
e,
null,
[[0, 8]],
);
}),
)),
function (t) {
return v.apply(this, arguments);
}),
),
r3(
r1(t),
"getLib3Models",
rZ(
rQ().mark(function e() {
var r;
return rQ().wrap(
function (e) {
for (;;)
switch ((e.prev = e.next)) {
case 0:
return (
(e.prev = 0),
(e.next = 3),
t.apiClient.post(
(0, rC.getUrl)(
"/gateway/sd-api/generate/sd3/getBaseModel",
),
)
);
case 3:
return (r = e.sent.data), e.abrupt("return", r);
case 8:
return (
(e.prev = 8),
(e.t0 = e.catch(0)),
e.abrupt("return", [])
);
case 11:
case "end":
return e.stop();
}
},
e,
null,
[[0, 8]],
);
}),
),
),
r3(
r1(t),
"sendSd3",
((d = rZ(
rQ().mark(function e(r) {
var n;
return rQ().wrap(
function (e) {
for (;;)
switch ((e.prev = e.next)) {
case 0:
return (
(e.prev = 0),
(e.next = 3),
t.apiClient.post(
(0, rC.getUrl)(
"/gateway/sd-api/generate/sd3/send",
),
r,
)
);
case 3:
return (n = e.sent), e.abrupt("return", n);
case 7:
return (
(e.prev = 7),
(e.t0 = e.catch(0)),
e.abrupt("return", {})
);
case 10:
case "end":
return e.stop();
}
},
e,
null,
[[0, 7]],
);
}),
)),
function (t) {
return d.apply(this, arguments);
}),
),
r3(
r1(t),
"getPower",
((g = rZ(
rQ().mark(function e(r) {
var n;
return rQ().wrap(
function (e) {
for (;;)
switch ((e.prev = e.next)) {
case 0:
return (
(e.prev = 0),
(e.next = 3),
t.apiClient.post(
(0, rC.getUrl)(
"/gateway/sd-api/generate/sd3/calculate-power-v2",
),
r,
)
);
case 3:
return (n = e.sent.data), e.abrupt("return", n);
case 8:
return (
(e.prev = 8),
(e.t0 = e.catch(0)),
e.abrupt("return", 0)
);
case 11:
case "end":
return e.stop();
}
},
e,
null,
[[0, 8]],
);
}),
)),
function (t) {
return g.apply(this, arguments);
}),
),
r3(
r1(t),
"getSd3Progress",
((m = rZ(
rQ().mark(function e(r) {
var n;
return rQ().wrap(
function (e) {
for (;;)
switch ((e.prev = e.next)) {
case 0:
return (
(e.prev = 0),
(e.next = 3),
t.apiClient.post(
(0, rC.getUrl)(
"/gateway/sd-api/generate/sd3/progress",
),
r,
)
);
case 3:
return (n = e.sent.data), e.abrupt("return", n);
case 8:
return (
(e.prev = 8),
(e.t0 = e.catch(0)),
e.abrupt("return", 0)
);
case 11:
case "end":
return e.stop();
}
},
e,
null,
[[0, 8]],
);
}),
)),
function (t) {
return m.apply(this, arguments);
}),
),
r3(
r1(t),
"getSd3History",
((b = rZ(
rQ().mark(function e(r) {
var n;
return rQ().wrap(
function (e) {
for (;;)
switch ((e.prev = e.next)) {
case 0:
return (
(e.prev = 0),
(e.next = 3),
t.apiClient.post(
(0, rC.getUrl)(
"/gateway/sd-api/generate/sd3/history",
),
r,
)
);
case 3:
return (n = e.sent.data), e.abrupt("return", n);
case 8:
return (
(e.prev = 8),
(e.t0 = e.catch(0)),
e.abrupt("return", 0)
);
case 11:
case "end":
return e.stop();
}
},
e,
null,
[[0, 8]],
);
}),
)),
function (t) {
return b.apply(this, arguments);
}),
),
r3(
r1(t),
"getComfyHistory",
((w = rZ(
rQ().mark(function e(r) {
var n;
return rQ().wrap(
function (e) {
for (;;)
switch ((e.prev = e.next)) {
case 0:
return (
(e.prev = 0),
(e.next = 3),
t.apiClient.post(
(0, rC.getUrl)(
"/gateway/sd-api/generate/comfy/img/history",
),
r,
)
);
case 3:
return (n = e.sent.data), e.abrupt("return", n);
case 8:
return (
(e.prev = 8),
(e.t0 = e.catch(0)),
e.abrupt("return", 0)
);
case 11:
case "end":
return e.stop();
}
},
e,
null,
[[0, 8]],
);
}),
)),
function (t) {
return w.apply(this, arguments);
}),
),
r3(
r1(t),
"getTeamComfyHistory",
((x = rZ(
rQ().mark(function e(r) {
var n;
return rQ().wrap(
function (e) {
for (;;)
switch ((e.prev = e.next)) {
case 0:
return (
(e.prev = 0),
(e.next = 3),
t.apiClient.post(
(0, rC.getUrl)(
"/gateway/sd-api/generate/team/images",
),
r,
)
);
case 3:
return (n = e.sent.data), e.abrupt("return", n);
case 8:
return (
(e.prev = 8),
(e.t0 = e.catch(0)),
e.abrupt("return", 0)
);
case 11:
case "end":
return e.stop();
}
},
e,
null,
[[0, 8]],
);
}),
)),
function (t) {
return x.apply(this, arguments);
}),
),
r3(
r1(t),
"getComfyVideoHistory",
((O = rZ(
rQ().mark(function e(r) {
var n;
return rQ().wrap(
function (e) {
for (;;)
switch ((e.prev = e.next)) {
case 0:
return (
(e.prev = 0),
(e.next = 3),
t.apiClient.post(
(0, rC.getUrl)(
"/gateway/sd-api/generate/comfy/video/history",
),
r,
)
);
case 3:
return (n = e.sent.data), e.abrupt("return", n);
case 8:
return (
(e.prev = 8),
(e.t0 = e.catch(0)),
e.abrupt("return", 0)
);
case 11:
case "end":
return e.stop();
}
},
e,
null,
[[0, 8]],
);
}),
)),
function (t) {
return O.apply(this, arguments);
}),
),
r3(
r1(t),
"getSwitch",
((E = rZ(
rQ().mark(function e(r) {
var n;
return rQ().wrap(
function (e) {
for (;;)
switch ((e.prev = e.next)) {
case 0:
return (
(e.prev = 0),
(e.next = 3),
t.apiClient.post(
(0, rC.getUrl)(
"/gateway/sd-api/common/getSwitch",
),
r,
)
);
case 3:
return (n = e.sent.data), e.abrupt("return", n);
case 8:
return (
(e.prev = 8),
(e.t0 = e.catch(0)),
e.abrupt("return", {})
);
case 11:
case "end":
return e.stop();
}
},
e,
null,
[[0, 8]],
);
}),
)),
function (t) {
return E.apply(this, arguments);
}),
),
r3(
r1(t),
"getEnums",
rZ(
rQ().mark(function e() {
var r;
return rQ().wrap(
function (e) {
for (;;)
switch ((e.prev = e.next)) {
case 0:
return (
(e.prev = 0),
(e.next = 3),
t.apiClient.get(
(0, rC.getUrl)("/gateway/sd-api/model/enums"),
)
);
case 3:
return (r = e.sent.data), e.abrupt("return", r);
case 8:
return (
(e.prev = 8),
(e.t0 = e.catch(0)),
e.abrupt("return", {})
);
case 11:
case "end":
return e.stop();
}
},
e,
null,
[[0, 8]],
);
}),
),
),
r3(
r1(t),
"deleteImg",
((L = rZ(
rQ().mark(function e(r) {
var n;
return rQ().wrap(
function (e) {
for (;;)
switch ((e.prev = e.next)) {
case 0:
return (
(e.prev = 0),
(e.next = 3),
t.apiClient.post(
(0, rC.getUrl)(
"/gateway/sd-api/generate/sd3/delete",
),
r,
)
);
case 3:
return (n = e.sent), e.abrupt("return", n);
case 7:
return (
(e.prev = 7),
(e.t0 = e.catch(0)),
e.abrupt("return", {})
);
case 10:
case "end":
return e.stop();
}
},
e,
null,
[[0, 7]],
);
}),
)),
function (t) {
return L.apply(this, arguments);
}),
),
r3(
r1(t),
"deleteVideo",
((j = rZ(
rQ().mark(function e(r) {
var n;
return rQ().wrap(
function (e) {
for (;;)
switch ((e.prev = e.next)) {
case 0:
return (
(e.prev = 0),
(e.next = 3),
t.apiClient.post(
(0, rC.getUrl)(
"/gateway/sd-api/generate/sd3/deleteVideo",
),
r,
)
);
case 3:
return (n = e.sent), e.abrupt("return", n);
case 7:
return (
(e.prev = 7),
(e.t0 = e.catch(0)),
e.abrupt("return", {})
);
case 10:
case "end":
return e.stop();
}
},
e,
null,
[[0, 7]],
);
}),
)),
function (t) {
return j.apply(this, arguments);
}),
),
r3(
r1(t),
"deleteGroupImg",
((_ = rZ(
rQ().mark(function e(r) {
var n;
return rQ().wrap(
function (e) {
for (;;)
switch ((e.prev = e.next)) {
case 0:
return (
(e.prev = 0),
(e.next = 3),
t.apiClient.post(
(0, rC.getUrl)(
"/gateway/sd-api/generate/sd3/deleteAll",
),
r,
)
);
case 3:
return (n = e.sent), e.abrupt("return", n);
case 7:
return (
(e.prev = 7),
(e.t0 = e.catch(0)),
e.abrupt("return", {})
);
case 10:
case "end":
return e.stop();
}
},
e,
null,
[[0, 7]],
);
}),
)),
function (t) {
return _.apply(this, arguments);
}),
),
r3(
r1(t),
"deleteComfyImg",
((k = rZ(
rQ().mark(function e(r) {
var n;
return rQ().wrap(
function (e) {
for (;;)
switch ((e.prev = e.next)) {
case 0:
return (
(e.prev = 0),
(e.next = 3),
t.apiClient.post(
(0, rC.getUrl)(
"/gateway/sd-api/generate/comfy/img/delete",
),
r,
)
);
case 3:
return (n = e.sent), e.abrupt("return", n);
case 7:
return (
(e.prev = 7),
(e.t0 = e.catch(0)),
e.abrupt("return", {})
);
case 10:
case "end":
return e.stop();
}
},
e,
null,
[[0, 7]],
);
}),
)),
function (t) {
return k.apply(this, arguments);
}),
),
r3(
r1(t),
"deleteComfyVideo",
((P = rZ(
rQ().mark(function e(r) {
var n;
return rQ().wrap(
function (e) {
for (;;)
switch ((e.prev = e.next)) {
case 0:
return (
(e.prev = 0),
(e.next = 3),
t.apiClient.post(
(0, rC.getUrl)(
"/gateway/sd-api/generate/comfy/video/delete",
),
r,
)
);
case 3:
return (n = e.sent), e.abrupt("return", n);
case 7:
return (
(e.prev = 7),
(e.t0 = e.catch(0)),
e.abrupt("return", {})
);
case 10:
case "end":
return e.stop();
}
},
e,
null,
[[0, 7]],
);
}),
)),
function (t) {
return P.apply(this, arguments);
}),
),
r3(
r1(t),
"videoAudit",
((S = rZ(
rQ().mark(function e(r) {
var n;
return rQ().wrap(
function (e) {
for (;;)
switch ((e.prev = e.next)) {
case 0:
return (
(e.prev = 0),
(e.next = 3),
t.apiClient.post(
(0, rC.getUrl)("/api/www/common/video/audit"),
r,
)
);
case 3:
return (
(n = e.sent.data), e.abrupt("return", n || null)
);
case 8:
return (
(e.prev = 8),
(e.t0 = e.catch(0)),
e.abrupt("return", null)
);
case 11:
case "end":
return e.stop();
}
},
e,
null,
[[0, 8]],
);
}),
)),
function (t) {
return S.apply(this, arguments);
}),
),
r3(
r1(t),
"videoAuditResult",
((T = rZ(
rQ().mark(function e(r) {
var n;
return rQ().wrap(
function (e) {
for (;;)
switch ((e.prev = e.next)) {
case 0:
return (
(e.prev = 0),
(e.next = 3),
t.apiClient.post(
(0, rC.getUrl)(
"/api/www/common/video/auditResult",
),
r,
)
);
case 3:
return (
(n = e.sent.data), e.abrupt("return", n || null)
);
case 8:
return (
(e.prev = 8),
(e.t0 = e.catch(0)),
e.abrupt("return", null)
);
case 11:
case "end":
return e.stop();
}
},
e,
null,
[[0, 8]],
);
}),
)),
function (t) {
return T.apply(this, arguments);
}),
),
r3(
r1(t),
"getSd3Times",
rZ(
rQ().mark(function e() {
var r;
return rQ().wrap(
function (e) {
for (;;)
switch ((e.prev = e.next)) {
case 0:
return (
(e.prev = 0),
(e.next = 3),
t.apiClient.post(
(0, rC.getUrl)(
"/gateway/sd-api/generate/sd3/activity_oneyear",
),
)
);
case 3:
return (r = e.sent), e.abrupt("return", r);
case 7:
return (
(e.prev = 7),
(e.t0 = e.catch(0)),
e.abrupt("return", {})
);
case 10:
case "end":
return e.stop();
}
},
e,
null,
[[0, 7]],
);
}),
),
),
r3(
r1(t),
"getMyWorkflow",
((C = rZ(
rQ().mark(function e(r) {
var n;
return rQ().wrap(
function (e) {
for (;;)
switch ((e.prev = e.next)) {
case 0:
return (
(e.prev = 0),
(e.next = 3),
t.apiClient.post(
(0, rC.getUrl)("/api/www/comfy/tool/mine"),
r,
)
);
case 3:
return (n = e.sent), e.abrupt("return", n);
case 7:
return (
(e.prev = 7),
(e.t0 = e.catch(0)),
e.abrupt("return", {})
);
case 10:
case "end":
return e.stop();
}
},
e,
null,
[[0, 7]],
);
}),
)),
function (t) {
return C.apply(this, arguments);
}),
),
r3(
r1(t),
"getTeamWorkflow",
((R = rZ(
rQ().mark(function e(r) {
var n;
return rQ().wrap(
function (e) {
for (;;)
switch ((e.prev = e.next)) {
case 0:
return (
(e.prev = 0),
(e.next = 3),
t.apiClient.post(
(0, rC.getUrl)("/api/www/comfy/team"),
r,
)
);
case 3:
return (n = e.sent), e.abrupt("return", n);
case 7:
return (
(e.prev = 7),
(e.t0 = e.catch(0)),
e.abrupt("return", {})
);
case 10:
case "end":
return e.stop();
}
},
e,
null,
[[0, 7]],
);
}),
)),
function (t) {
return R.apply(this, arguments);
}),
),
r3(
r1(t),
"getMyCollectionWorkflow",
((N = rZ(
rQ().mark(function e(r) {
var n;
return rQ().wrap(
function (e) {
for (;;)
switch ((e.prev = e.next)) {
case 0:
return (
(e.prev = 0),
(e.next = 3),
t.apiClient.post(
(0, rC.getUrl)(
"/api/www/comfy/tool/subscribe/list",
),
r,
)
);
case 3:
return (n = e.sent), e.abrupt("return", n);
case 7:
return (
(e.prev = 7),
(e.t0 = e.catch(0)),
e.abrupt("return", {})
);
case 10:
case "end":
return e.stop();
}
},
e,
null,
[[0, 7]],
);
}),
)),
function (t) {
return N.apply(this, arguments);
}),
),
r3(
r1(t),
"saveWorkflow",
((U = rZ(
rQ().mark(function e(r) {
var n;
return rQ().wrap(
function (e) {
for (;;)
switch ((e.prev = e.next)) {
case 0:
return (
(e.prev = 0),
(e.next = 3),
t.apiClient.post(
(0, rC.getUrl)("/api/www/comfy/tool/save"),
r,
)
);
case 3:
return (n = e.sent), e.abrupt("return", n);
case 7:
return (
(e.prev = 7),
(e.t0 = e.catch(0)),
e.abrupt("return", {})
);
case 10:
case "end":
return e.stop();
}
},
e,
null,
[[0, 7]],
);
}),
)),
function (t) {
return U.apply(this, arguments);
}),
),
r3(
r1(t),
"comfyRename",
((A = rZ(
rQ().mark(function e(r, n) {
var o;
return rQ().wrap(
function (e) {
for (;;)
switch ((e.prev = e.next)) {
case 0:
return (
(e.prev = 0),
(e.next = 3),
t.apiClient.post(
(0, rC.getUrl)("/api/www/comfy/tool/rename"),
{ uuid: r, name: n },
)
);
case 3:
return (o = e.sent), e.abrupt("return", o);
case 7:
return (
(e.prev = 7),
(e.t0 = e.catch(0)),
e.abrupt("return", {})
);
case 10:
case "end":
return e.stop();
}
},
e,
null,
[[0, 7]],
);
}),
)),
function (t, e) {
return A.apply(this, arguments);
}),
),
r3(
r1(t),
"deleteComfy",
((I = rZ(
rQ().mark(function e(r) {
var n;
return rQ().wrap(
function (e) {
for (;;)
switch ((e.prev = e.next)) {
case 0:
return (
(e.prev = 0),
(e.next = 3),
t.apiClient.post(
(0, rC.getUrl)("/api/www/comfy/tool/del"),
r,
)
);
case 3:
return (n = e.sent), e.abrupt("return", n);
case 7:
return (
(e.prev = 7),
(e.t0 = e.catch(0)),
e.abrupt("return", {})
);
case 10:
case "end":
return e.stop();
}
},
e,
null,
[[0, 7]],
);
}),
)),
function (t) {
return I.apply(this, arguments);
}),
),
r3(
r1(t),
"rawOpus",
((F = rZ(
rQ().mark(function e(r) {
var n;
return rQ().wrap(
function (e) {
for (;;)
switch ((e.prev = e.next)) {
case 0:
return (
(e.prev = 0),
(e.next = 3),
t.apiClient.post(
(0, rC.getUrl)("/gateway/sd-api/generate/image"),
r,
)
);
case 3:
return (n = e.sent), e.abrupt("return", n);
case 7:
return (
(e.prev = 7),
(e.t0 = e.catch(0)),
e.abrupt("return", {})
);
case 10:
case "end":
return e.stop();
}
},
e,
null,
[[0, 7]],
);
}),
)),
function (t) {
return F.apply(this, arguments);
}),
),
r3(
r1(t),
"rawOpusTemplate",
((G = rZ(
rQ().mark(function e(r) {
var n;
return rQ().wrap(
function (e) {
for (;;)
switch ((e.prev = e.next)) {
case 0:
return (
(e.prev = 0),
(e.next = 3),
t.apiClient.post(
(0, rC.getUrl)(
"/gateway/sd-api/generate/image/testing",
),
r,
)
);
case 3:
return (n = e.sent), e.abrupt("return", n);
case 7:
return (
(e.prev = 7),
(e.t0 = e.catch(0)),
e.abrupt("return", {})
);
case 10:
case "end":
return e.stop();
}
},
e,
null,
[[0, 7]],
);
}),
)),
function (t) {
return G.apply(this, arguments);
}),
),
r3(
r1(t),
"rawOpusCheck",
((D = rZ(
rQ().mark(function e(r) {
var n;
return rQ().wrap(
function (e) {
for (;;)
switch ((e.prev = e.next)) {
case 0:
return (
(e.prev = 0),
(e.next = 3),
t.apiClient.post(
(0, rC.getUrl)(
"/gateway/sd-api/generate/comfy/check/param",
),
r,
)
);
case 3:
return (n = e.sent), e.abrupt("return", n);
case 7:
return (
(e.prev = 7),
(e.t0 = e.catch(0)),
e.abrupt("return", {})
);
case 10:
case "end":
return e.stop();
}
},
e,
null,
[[0, 7]],
);
}),
)),
function (t) {
return D.apply(this, arguments);
}),
),
r3(
r1(t),
"generateStatus",
((B = rZ(
rQ().mark(function e(r) {
var n;
return rQ().wrap(
function (e) {
for (;;)
switch ((e.prev = e.next)) {
case 0:
return (
(e.prev = 0),
(e.next = 3),
t.apiClient.post(
(0, rC.getUrl)(
"/gateway/sd-api/generate/progress/msg/v3/".concat(
r,
),
),
{ flag: 0 },
)
);
case 3:
return (n = e.sent), e.abrupt("return", n);
case 7:
return (
(e.prev = 7),
(e.t0 = e.catch(0)),
e.abrupt("return", {})
);
case 10:
case "end":
return e.stop();
}
},
e,
null,
[[0, 7]],
);
}),
)),
function (t) {
return B.apply(this, arguments);
}),
),
r3(
r1(t),
"vipSpeedup",
((M = rZ(
rQ().mark(function e(r) {
var n;
return rQ().wrap(
function (e) {
for (;;)
switch ((e.prev = e.next)) {
case 0:
return (
(e.prev = 0),
(e.next = 3),
t.apiClient.post(
(0, rC.getUrl)(
"/gateway/sd-api/generate/accelerate",
),
r,
)
);
case 3:
return (n = e.sent), e.abrupt("return", n);
case 7:
return (
(e.prev = 7),
(e.t0 = e.catch(0)),
e.abrupt("return", {})
);
case 10:
case "end":
return e.stop();
}
},
e,
null,
[[0, 7]],
);
}),
)),
function (t) {
return M.apply(this, arguments);
}),
),
r3(
r1(t),
"comfyDawParams",
((q = rZ(
rQ().mark(function e(r) {
var n;
return rQ().wrap(
function (e) {
for (;;)
switch ((e.prev = e.next)) {
case 0:
return (
(e.prev = 0),
(e.next = 3),
t.apiClient.post(
(0, rC.getUrl)(
"/gateway/sd-api/generate/comfy/img/workflow/info",
),
r,
)
);
case 3:
return (
(n = e.sent),
e.abrupt("return", null == n ? void 0 : n.data)
);
case 7:
return (
(e.prev = 7),
(e.t0 = e.catch(0)),
e.abrupt("return", {})
);
case 10:
case "end":
return e.stop();
}
},
e,
null,
[[0, 7]],
);
}),
)),
function (t) {
return q.apply(this, arguments);
}),
),
r3(
r1(t),
"comfyVideoDawParams",
((V = rZ(
rQ().mark(function e(r) {
var n;
return rQ().wrap(
function (e) {
for (;;)
switch ((e.prev = e.next)) {
case 0:
return (
(e.prev = 0),
(e.next = 3),
t.apiClient.post(
(0, rC.getUrl)(
"/gateway/sd-api/generate/comfy/video/workflow/info",
),
r,
)
);
case 3:
return (
(n = e.sent),
e.abrupt("return", null == n ? void 0 : n.data)
);
case 7:
return (
(e.prev = 7),
(e.t0 = e.catch(0)),
e.abrupt("return", {})
);
case 10:
case "end":
return e.stop();
}
},
e,
null,
[[0, 7]],
);
}),
)),
function (t) {
return V.apply(this, arguments);
}),
),
r3(
r1(t),
"calculatePower",
((H = rZ(
rQ().mark(function e(r) {
var n;
return rQ().wrap(
function (e) {
for (;;)
switch ((e.prev = e.next)) {
case 0:
return (
(e.prev = 0),
(e.next = 3),
t.apiClient.post(
(0, rC.getUrl)(
"/gateway/sd-api/generate/calculate-power/v1",
),
r,
)
);
case 3:
return (n = e.sent), e.abrupt("return", n);
case 7:
return (
(e.prev = 7),
(e.t0 = e.catch(0)),
e.abrupt("return", {})
);
case 10:
case "end":
return e.stop();
}
},
e,
null,
[[0, 7]],
);
}),
)),
function (t) {
return H.apply(this, arguments);
}),
),
r3(
r1(t),
"getProcessList",
((W = rZ(
rQ().mark(function e(r) {
var n;
return rQ().wrap(
function (e) {
for (;;)
switch ((e.prev = e.next)) {
case 0:
return (
(e.prev = 0),
(e.next = 3),
t.apiClient.post(
(0, rC.getUrl)(
"/gateway/sd-api/generate/sd3/getProcessList",
),
r,
)
);
case 3:
return (
(n = e.sent),
e.abrupt("return", null == n ? void 0 : n.data)
);
case 7:
return (
(e.prev = 7),
(e.t0 = e.catch(0)),
e.abrupt("return", {})
);
case 10:
case "end":
return e.stop();
}
},
e,
null,
[[0, 7]],
);
}),
)),
function (t) {
return W.apply(this, arguments);
}),
),
r3(
r1(t),
"getPrompt",
((Y = rZ(
rQ().mark(function e(r) {
var n;
return rQ().wrap(
function (e) {
for (;;)
switch ((e.prev = e.next)) {
case 0:
return (
(e.prev = 0),
(e.next = 3),
t.apiClient.post(
(0, rC.getUrl)(
"/gateway/cypher-mech-api/api/cypher-mech/prompt/video/refine",
),
r,
)
);
case 3:
return (
(n = e.sent),
e.abrupt("return", null == n ? void 0 : n.data)
);
case 7:
return (
(e.prev = 7),
(e.t0 = e.catch(0)),
e.abrupt("return", {})
);
case 10:
case "end":
return e.stop();
}
},
e,
null,
[[0, 7]],
);
}),
)),
function (t) {
return Y.apply(this, arguments);
}),
),
t
);
}
return (
(f = [
{
key: "getGenerateList",
value:
((r = rZ(
rQ().mark(function t() {
var e;
return rQ().wrap(
function (t) {
for (;;)
switch ((t.prev = t.next)) {
case 0:
return (
(t.next = 2),
this.apiClient.post(
(0, rC.getUrl)(
"/gateway/sd-api/generate/progress/msg/v3",
),
{ pageNo: 1, pageSize: 5, bizType: "SD" },
)
);
case 2:
return (e = t.sent.data), t.abrupt("return", e);
case 5:
case "end":
return t.stop();
}
},
t,
this,
);
}),
)),
function () {
return r.apply(this, arguments);
}),
},
{
key: "stopTaskRequest",
value:
((n = rZ(
rQ().mark(function t(e) {
var r;
return rQ().wrap(
function (t) {
for (;;)
switch ((t.prev = t.next)) {
case 0:
return (
(t.next = 2),
this.apiClient.post(
(0, rC.getUrl)(
"/gateway/sd-api/generate/stop-anyway",
),
{ generateId: e.generateId },
)
);
case 2:
return (r = t.sent.data), t.abrupt("return", r);
case 5:
case "end":
return t.stop();
}
},
t,
this,
);
}),
)),
function (t) {
return n.apply(this, arguments);
}),
},
{
key: "getHistory",
value:
((o = rZ(
rQ().mark(function t(e) {
var r;
return rQ().wrap(
function (t) {
for (;;)
switch ((t.prev = t.next)) {
case 0:
return (
(t.prev = 0),
(t.next = 3),
this.apiClient.post(
(0, rC.getUrl)(
"/gateway/sd-api/generate/sd3/workFlow/used/history",
),
e,
)
);
case 3:
return (r = t.sent), t.abrupt("return", r || null);
case 7:
return (
(t.prev = 7),
(t.t0 = t.catch(0)),
t.abrupt("return", null)
);
case 10:
case "end":
return t.stop();
}
},
t,
this,
[[0, 7]],
);
}),
)),
function (t) {
return o.apply(this, arguments);
}),
},
{
key: "getHomePage",
value:
((i = rZ(
rQ().mark(function t(e) {
var r;
return rQ().wrap(
function (t) {
for (;;)
switch ((t.prev = t.next)) {
case 0:
return (
(t.prev = 0),
(t.next = 3),
this.apiClient.post(
(0, rC.getUrl)(
"/gateway/sd-api/generate/sd3/homepage",
),
e,
)
);
case 3:
return (
(r = t.sent),
t.abrupt("return", null == r ? void 0 : r.data)
);
case 7:
return (
(t.prev = 7),
(t.t0 = t.catch(0)),
t.abrupt("return", null)
);
case 10:
case "end":
return t.stop();
}
},
t,
this,
[[0, 7]],
);
}),
)),
function (t) {
return i.apply(this, arguments);
}),
},
{
key: "getImgHistory",
value:
((a = rZ(
rQ().mark(function t(e) {
var r;
return rQ().wrap(
function (t) {
for (;;)
switch ((t.prev = t.next)) {
case 0:
return (
(t.prev = 0),
(t.next = 3),
this.apiClient.post(
(0, rC.getUrl)(
"/gateway/sd-api/generate/img/history",
),
e,
)
);
case 3:
return (r = t.sent), t.abrupt("return", r || null);
case 7:
return (
(t.prev = 7),
(t.t0 = t.catch(0)),
t.abrupt("return", null)
);
case 10:
case "end":
return t.stop();
}
},
t,
this,
[[0, 7]],
);
}),
)),
function (t) {
return a.apply(this, arguments);
}),
},
{
key: "getVideoHistory",
value:
((u = rZ(
rQ().mark(function t(e) {
var r;
return rQ().wrap(
function (t) {
for (;;)
switch ((t.prev = t.next)) {
case 0:
return (
(t.prev = 0),
(t.next = 3),
this.apiClient.post(
(0, rC.getUrl)(
"/gateway/sd-api/generate/video/history",
),
e,
)
);
case 3:
return (r = t.sent), t.abrupt("return", r || null);
case 7:
return (
(t.prev = 7),
(t.t0 = t.catch(0)),
t.abrupt("return", null)
);
case 10:
case "end":
return t.stop();
}
},
t,
this,
[[0, 7]],
);
}),
)),
function (t) {
return u.apply(this, arguments);
}),
},
{
key: "getAiVideoHistory",
value:
((c = rZ(
rQ().mark(function t(e) {
var r;
return rQ().wrap(
function (t) {
for (;;)
switch ((t.prev = t.next)) {
case 0:
return (
(t.prev = 0),
(t.next = 3),
this.apiClient.post(
(0, rC.getUrl)(
"/gateway/sd-api/generate/sd3/comfyApp/video/history",
),
e,
)
);
case 3:
return (r = t.sent), t.abrupt("return", r || null);
case 7:
return (
(t.prev = 7),
(t.t0 = t.catch(0)),
t.abrupt("return", null)
);
case 10:
case "end":
return t.stop();
}
},
t,
this,
[[0, 7]],
);
}),
)),
function (t) {
return c.apply(this, arguments);
}),
},
{
key: "getAiImgHistoryList",
value:
((s = rZ(
rQ().mark(function t(e) {
var r;
return rQ().wrap(
function (t) {
for (;;)
switch ((t.prev = t.next)) {
case 0:
return (
(t.next = 2),
this.apiClient.post(
(0, rC.getUrl)(
"/gateway/sd-api/generate/sd3/image/history",
),
e,
)
);
case 2:
return (r = t.sent), t.abrupt("return", r);
case 4:
case "end":
return t.stop();
}
},
t,
this,
);
}),
)),
function (t) {
return s.apply(this, arguments);
}),
},
{
key: "getAiVideoHistoryList",
value:
((l = rZ(
rQ().mark(function t(e) {
var r;
return rQ().wrap(
function (t) {
for (;;)
switch ((t.prev = t.next)) {
case 0:
return (
(t.next = 2),
this.apiClient.post(
(0, rC.getUrl)(
"/gateway/sd-api/generate/sd3/video/history",
),
e,
)
);
case 2:
return (r = t.sent), t.abrupt("return", r);
case 4:
case "end":
return t.stop();
}
},
t,
this,
);
}),
)),
function (t) {
return l.apply(this, arguments);
}),
},
]),
(function (t, e) {
for (var r = 0; r < e.length; r++) {
var n = e[r];
(n.enumerable = n.enumerable || !1),
(n.configurable = !0),
"value" in n && (n.writable = !0),
Object.defineProperty(t, r4(n.key), n);
}
})(h.prototype, f),
Object.defineProperty(h, "prototype", { writable: !1 }),
h
);
})(eG);
t.s(["SDService", () => r7], 593933), t.i(840715);
var r8 = t.i(432944);
function r5(t) {
return (r5 =
"function" == typeof Symbol && "symbol" == typeof Symbol.iterator
? function (t) {
return typeof t;
}
: function (t) {
return t &&
"function" == typeof Symbol &&
t.constructor === Symbol &&
t !== Symbol.prototype
? "symbol"
: typeof t;
})(t);
}
function r6() {
r6 = function () {
return e;
};
var t,
e = {},
r = Object.prototype,
n = r.hasOwnProperty,
o =
Object.defineProperty ||
function (t, e, r) {
t[e] = r.value;
},
i = "function" == typeof Symbol ? Symbol : {},
a = i.iterator || "@@iterator",
u = i.asyncIterator || "@@asyncIterator",
c = i.toStringTag || "@@toStringTag";
function s(t, e, r) {
return (
Object.defineProperty(t, e, {
value: r,
enumerable: !0,
configurable: !0,
writable: !0,
}),
t[e]
);
}
try {
s({}, "");
} catch (t) {
s = function (t, e, r) {
return (t[e] = r);
};
}
function l(e, r, n, i) {
var a,
u,
c,
s,
l = Object.create((r && r.prototype instanceof d ? r : d).prototype);
return (
o(l, "_invoke", {
value:
((a = e),
(u = n),
(c = new k(i || [])),
(s = p),
function (e, r) {
if (s === h) throw Error("Generator is already running");
if (s === y) {
if ("throw" === e) throw r;
return { value: t, done: !0 };
}
for (c.method = e, c.arg = r; ; ) {
var n = c.delegate;
if (n) {
var o = (function e(r, n) {
var o = n.method,
i = r.iterator[o];
if (i === t)
return (
(n.delegate = null),
("throw" === o &&
r.iterator.return &&
((n.method = "return"),
(n.arg = t),
e(r, n),
"throw" === n.method)) ||
("return" !== o &&
((n.method = "throw"),
(n.arg = TypeError(
"The iterator does not provide a '" +
o +
"' method",
)))),
v
);
var a = f(i, r.iterator, n.arg);
if ("throw" === a.type)
return (
(n.method = "throw"),
(n.arg = a.arg),
(n.delegate = null),
v
);
var u = a.arg;
return u
? u.done
? ((n[r.resultName] = u.value),
(n.next = r.nextLoc),
"return" !== n.method &&
((n.method = "next"), (n.arg = t)),
(n.delegate = null),
v)
: u
: ((n.method = "throw"),
(n.arg = TypeError(
"iterator result is not an object",
)),
(n.delegate = null),
v);
})(n, c);
if (o) {
if (o === v) continue;
return o;
}
}
if ("next" === c.method) c.sent = c._sent = c.arg;
else if ("throw" === c.method) {
if (s === p) throw ((s = y), c.arg);
c.dispatchException(c.arg);
} else "return" === c.method && c.abrupt("return", c.arg);
s = h;
var i = f(a, u, c);
if ("normal" === i.type) {
if (((s = c.done ? y : "suspendedYield"), i.arg === v))
continue;
return { value: i.arg, done: c.done };
}
"throw" === i.type &&
((s = y), (c.method = "throw"), (c.arg = i.arg));
}
}),
}),
l
);
}
function f(t, e, r) {
try {
return { type: "normal", arg: t.call(e, r) };
} catch (t) {
return { type: "throw", arg: t };
}
}
e.wrap = l;
var p = "suspendedStart",
h = "executing",
y = "completed",
v = {};
function d() {}
function g() {}
function m() {}
var b = {};
s(b, a, function () {
return this;
});
var w = Object.getPrototypeOf,
x = w && w(w(P([])));
x && x !== r && n.call(x, a) && (b = x);
var O = (m.prototype = d.prototype = Object.create(b));
function E(t) {
["next", "throw", "return"].forEach(function (e) {
s(t, e, function (t) {
return this._invoke(e, t);
});
});
}
function L(t, e) {
var r;
o(this, "_invoke", {
value: function (o, i) {
function a() {
return new e(function (r, a) {
!(function r(o, i, a, u) {
var c = f(t[o], t, i);
if ("throw" !== c.type) {
var s = c.arg,
l = s.value;
return l && "object" == r5(l) && n.call(l, "__await")
? e.resolve(l.__await).then(
function (t) {
r("next", t, a, u);
},
function (t) {
r("throw", t, a, u);
},
)
: e.resolve(l).then(
function (t) {
(s.value = t), a(s);
},
function (t) {
return r("throw", t, a, u);
},
);
}
u(c.arg);
})(o, i, r, a);
});
}
return (r = r ? r.then(a, a) : a());
},
});
}
function j(t) {
var e = { tryLoc: t[0] };
1 in t && (e.catchLoc = t[1]),
2 in t && ((e.finallyLoc = t[2]), (e.afterLoc = t[3])),
this.tryEntries.push(e);
}
function _(t) {
var e = t.completion || {};
(e.type = "normal"), delete e.arg, (t.completion = e);
}
function k(t) {
(this.tryEntries = [{ tryLoc: "root" }]),
t.forEach(j, this),
this.reset(!0);
}
function P(e) {
if (e || "" === e) {
var r = e[a];
if (r) return r.call(e);
if ("function" == typeof e.next) return e;
if (!isNaN(e.length)) {
var o = -1,
i = function r() {
for (; ++o < e.length; )
if (n.call(e, o)) return (r.value = e[o]), (r.done = !1), r;
return (r.value = t), (r.done = !0), r;
};
return (i.next = i);
}
}
throw TypeError(r5(e) + " is not iterable");
}
return (
(g.prototype = m),
o(O, "constructor", { value: m, configurable: !0 }),
o(m, "constructor", { value: g, configurable: !0 }),
(g.displayName = s(m, c, "GeneratorFunction")),
(e.isGeneratorFunction = function (t) {
var e = "function" == typeof t && t.constructor;
return (
!!e &&
(e === g || "GeneratorFunction" === (e.displayName || e.name))
);
}),
(e.mark = function (t) {
return (
Object.setPrototypeOf
? Object.setPrototypeOf(t, m)
: ((t.__proto__ = m), s(t, c, "GeneratorFunction")),
(t.prototype = Object.create(O)),
t
);
}),
(e.awrap = function (t) {
return { __await: t };
}),
E(L.prototype),
s(L.prototype, u, function () {
return this;
}),
(e.AsyncIterator = L),
(e.async = function (t, r, n, o, i) {
void 0 === i && (i = Promise);
var a = new L(l(t, r, n, o), i);
return e.isGeneratorFunction(r)
? a
: a.next().then(function (t) {
return t.done ? t.value : a.next();
});
}),
E(O),
s(O, c, "Generator"),
s(O, a, function () {
return this;
}),
s(O, "toString", function () {
return "[object Generator]";
}),
(e.keys = function (t) {
var e = Object(t),
r = [];
for (var n in e) r.push(n);
return (
r.reverse(),
function t() {
for (; r.length; ) {
var n = r.pop();
if (n in e) return (t.value = n), (t.done = !1), t;
}
return (t.done = !0), t;
}
);
}),
(e.values = P),
(k.prototype = {
constructor: k,
reset: function (e) {
if (
((this.prev = 0),
(this.next = 0),
(this.sent = this._sent = t),
(this.done = !1),
(this.delegate = null),
(this.method = "next"),
(this.arg = t),
this.tryEntries.forEach(_),
!e)
)
for (var r in this)
"t" === r.charAt(0) &&
n.call(this, r) &&
!isNaN(+r.slice(1)) &&
(this[r] = t);
},
stop: function () {
this.done = !0;
var t = this.tryEntries[0].completion;
if ("throw" === t.type) throw t.arg;
return this.rval;
},
dispatchException: function (e) {
if (this.done) throw e;
var r = this;
function o(n, o) {
return (
(u.type = "throw"),
(u.arg = e),
(r.next = n),
o && ((r.method = "next"), (r.arg = t)),
!!o
);
}
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
var a = this.tryEntries[i],
u = a.completion;
if ("root" === a.tryLoc) return o("end");
if (a.tryLoc <= this.prev) {
var c = n.call(a, "catchLoc"),
s = n.call(a, "finallyLoc");
if (c && s) {
if (this.prev < a.catchLoc) return o(a.catchLoc, !0);
if (this.prev < a.finallyLoc) return o(a.finallyLoc);
} else if (c) {
if (this.prev < a.catchLoc) return o(a.catchLoc, !0);
} else {
if (!s) throw Error("try statement without catch or finally");
if (this.prev < a.finallyLoc) return o(a.finallyLoc);
}
}
}
},
abrupt: function (t, e) {
for (var r = this.tryEntries.length - 1; r >= 0; --r) {
var o = this.tryEntries[r];
if (
o.tryLoc <= this.prev &&
n.call(o, "finallyLoc") &&
this.prev < o.finallyLoc
) {
var i = o;
break;
}
}
i &&
("break" === t || "continue" === t) &&
i.tryLoc <= e &&
e <= i.finallyLoc &&
(i = null);
var a = i ? i.completion : {};
return (
(a.type = t),
(a.arg = e),
i
? ((this.method = "next"), (this.next = i.finallyLoc), v)
: this.complete(a)
);
},
complete: function (t, e) {
if ("throw" === t.type) throw t.arg;
return (
"break" === t.type || "continue" === t.type
? (this.next = t.arg)
: "return" === t.type
? ((this.rval = this.arg = t.arg),
(this.method = "return"),
(this.next = "end"))
: "normal" === t.type && e && (this.next = e),
v
);
},
finish: function (t) {
for (var e = this.tryEntries.length - 1; e >= 0; --e) {
var r = this.tryEntries[e];
if (r.finallyLoc === t)
return this.complete(r.completion, r.afterLoc), _(r), v;
}
},
catch: function (t) {
for (var e = this.tryEntries.length - 1; e >= 0; --e) {
var r = this.tryEntries[e];
if (r.tryLoc === t) {
var n = r.completion;
if ("throw" === n.type) {
var o = n.arg;
_(r);
}
return o;
}
}
throw Error("illegal catch attempt");
},
delegateYield: function (e, r, n) {
return (
(this.delegate = { iterator: P(e), resultName: r, nextLoc: n }),
"next" === this.method && (this.arg = t),
v
);
},
}),
e
);
}
function r9(t, e, r, n, o, i, a) {
try {
var u = t[i](a),
c = u.value;
} catch (t) {
r(t);
return;
}
u.done ? e(c) : Promise.resolve(c).then(n, o);
}
function nt(t) {
return function () {
var e = this,
r = arguments;
return new Promise(function (n, o) {
var i = t.apply(e, r);
function a(t) {
r9(i, n, o, a, u, "next", t);
}
function u(t) {
r9(i, n, o, a, u, "throw", t);
}
a(void 0);
});
};
}
function ne(t, e) {
return (ne = Object.setPrototypeOf
? Object.setPrototypeOf.bind()
: function (t, e) {
return (t.__proto__ = e), t;
})(t, e);
}
function nr(t) {
if (void 0 === t)
throw ReferenceError(
"this hasn't been initialised - super() hasn't been called",
);
return t;
}
function nn(t) {
return (nn = Object.setPrototypeOf
? Object.getPrototypeOf.bind()
: function (t) {
return t.__proto__ || Object.getPrototypeOf(t);
})(t);
}
function no(t, e, r) {
return (
(e = ni(e)) in t
? Object.defineProperty(t, e, {
value: r,
enumerable: !0,
configurable: !0,
writable: !0,
})
: (t[e] = r),
t
);
}
function ni(t) {
var e = (function (t, e) {
if ("object" != r5(t) || !t) return t;
var r = t[Symbol.toPrimitive];
if (void 0 !== r) {
var n = r.call(t, e || "default");
if ("object" != r5(n)) return n;
throw TypeError("@@toPrimitive must return a primitive value.");
}
return ("string" === e ? String : Number)(t);
})(t, "string");
return "symbol" == r5(e) ? e : String(e);
}
var na = (function (t) {
if ("function" != typeof t && null !== t)
throw TypeError("Super expression must either be null or a function");
(Q.prototype = Object.create(t && t.prototype, {
constructor: { value: Q, writable: !0, configurable: !0 },
})),
Object.defineProperty(Q, "prototype", { writable: !1 }),
t && ne(Q, t);
var e,
r,
n,
o,
i,
a,
u,
c,
s,
l,
f,
p,
h,
y,
v,
d,
g,
m,
b,
w,
x,
O,
E,
L,
j,
_,
k,
P,
S,
T,
C,
R,
N,
U,
A,
I,
F,
G,
D,
B,
M,
q,
V,
H,
W,
Y,
z,
K,
$,
J =
((e = (function () {
if (
"u" < typeof Reflect ||
!Reflect.construct ||
Reflect.construct.sham
)
return !1;
if ("function" == typeof Proxy) return !0;
try {
return (
Boolean.prototype.valueOf.call(
Reflect.construct(Boolean, [], function () {}),
),
!0
);
} catch (t) {
return !1;
}
})()),
function () {
var t,
r = nn(Q);
return (
(t = e
? Reflect.construct(r, arguments, nn(this).constructor)
: r.apply(this, arguments)),
(function (t, e) {
if (e && ("object" === r5(e) || "function" == typeof e))
return e;
if (void 0 !== e)
throw TypeError(
"Derived constructors may only return object or undefined",
);
return nr(t);
})(this, t)
);
});
function Q() {
var t, e, r, n;
if (!(this instanceof Q))
throw TypeError("Cannot call a class as a function");
for (var o = arguments.length, i = Array(o), a = 0; a < o; a++)
i[a] = arguments[a];
return (
no(
nr((t = J.call.apply(J, [this].concat(i)))),
"getModelFeedStream",
((e = nt(
r6().mark(function e(r) {
var n;
return r6().wrap(
function (e) {
for (;;)
switch ((e.prev = e.next)) {
case 0:
return (
(e.prev = 0),
(e.next = 3),
t.apiClient.post(
(0, rC.getUrl)("/api/www/model/feed/stream"),
r,
)
);
case 3:
return (n = e.sent), e.abrupt("return", n.data);
case 7:
return (
(e.prev = 7),
(e.t0 = e.catch(0)),
e.abrupt("return", [])
);
case 10:
case "end":
return e.stop();
}
},
e,
null,
[[0, 7]],
);
}),
)),
function (t) {
return e.apply(this, arguments);
}),
),
no(
nr(t),
"getVideoModelFeedStream",
((r = nt(
r6().mark(function e(r) {
var n;
return r6().wrap(
function (e) {
for (;;)
switch ((e.prev = e.next)) {
case 0:
return (
(e.prev = 0),
(e.next = 3),
t.apiClient.post(
(0, rC.getUrl)("/api/www/model/video/stream"),
r,
)
);
case 3:
return (n = e.sent), e.abrupt("return", n.data);
case 7:
return (
(e.prev = 7),
(e.t0 = e.catch(0)),
e.abrupt("return", [])
);
case 10:
case "end":
return e.stop();
}
},
e,
null,
[[0, 7]],
);
}),
)),
function (t) {
return r.apply(this, arguments);
}),
),
no(
nr(t),
"generateStatus",
((n = nt(
r6().mark(function e(r) {
var n,
o,
i,
a = arguments;
return r6().wrap(
function (e) {
for (;;)
switch ((e.prev = e.next)) {
case 0:
return (
(n = a.length > 1 && void 0 !== a[1] ? a[1] : 22),
(e.prev = 1),
(o = (0, rC.getUrl)(
"/gateway/sd-api/generate/progress/msg/v3/".concat(
r,
),
)),
(e.next = 5),
(0, r8.checkIfMock)(
{ url: o, method: "POST" },
function () {
return t.apiClient.post(o, {
flag: 0,
bizType: n,
source: 0,
});
},
)
);
case 5:
return (i = e.sent), e.abrupt("return", i);
case 9:
return (
(e.prev = 9),
(e.t0 = e.catch(1)),
e.abrupt("return", {})
);
case 12:
case "end":
return e.stop();
}
},
e,
null,
[[1, 9]],
);
}),
)),
function (t) {
return n.apply(this, arguments);
}),
),
t
);
}
return (
($ = [
{
key: "getRandomPrompt",
value:
((r = nt(
r6().mark(function t() {
var e,
r,
n = arguments;
return r6().wrap(
function (t) {
for (;;)
switch ((t.prev = t.next)) {
case 0:
return (
(e =
n.length > 0 && void 0 !== n[0]
? n[0]
: "image"),
(t.next = 3),
this.apiClient.post(
(0, rC.getUrl)(
"/api/www/public/community/random-prompt",
),
{ type: e },
)
);
case 3:
return (r = t.sent), t.abrupt("return", r.data);
case 5:
case "end":
return t.stop();
}
},
t,
this,
);
}),
)),
function () {
return r.apply(this, arguments);
}),
},
{
key: "getImageGeneratorTag",
value:
((n = nt(
r6().mark(function t() {
var e;
return r6().wrap(
function (t) {
for (;;)
switch ((t.prev = t.next)) {
case 0:
return (
(t.next = 2),
this.apiClient.get(
(0, rC.getUrl)(
"/api/www/imgGenerator/tag/config",
),
)
);
case 2:
return (e = t.sent), t.abrupt("return", e.data);
case 4:
case "end":
return t.stop();
}
},
t,
this,
);
}),
)),
function () {
return n.apply(this, arguments);
}),
},
{
key: "getModelCardConfig",
value:
((o = nt(
r6().mark(function t() {
var e;
return r6().wrap(
function (t) {
for (;;)
switch ((t.prev = t.next)) {
case 0:
return (
(t.next = 2),
this.apiClient.get(
(0, rC.getUrl)(
"/api/www/model/imgGenerator/modelCard/config",
),
)
);
case 2:
return (e = t.sent), t.abrupt("return", e.data);
case 4:
case "end":
return t.stop();
}
},
t,
this,
);
}),
)),
function () {
return o.apply(this, arguments);
}),
},
{
key: "getModelSearchByKeyword",
value:
((i = nt(
r6().mark(function t(e) {
var r;
return r6().wrap(
function (t) {
for (;;)
switch ((t.prev = t.next)) {
case 0:
return (
(t.prev = 0),
(t.next = 3),
this.apiClient.post(
(0, rC.getUrl)("/api/www/model/search"),
e,
)
);
case 3:
return (r = t.sent), t.abrupt("return", r.data);
case 7:
return (
(t.prev = 7),
(t.t0 = t.catch(0)),
t.abrupt("return", [])
);
case 10:
case "end":
return t.stop();
}
},
t,
this,
[[0, 7]],
);
}),
)),
function (t) {
return i.apply(this, arguments);
}),
},
{
key: "getSeedreamStyleList",
value:
((a = nt(
r6().mark(function t(e) {
var r;
return r6().wrap(
function (t) {
for (;;)
switch ((t.prev = t.next)) {
case 0:
return (
(t.next = 2),
this.apiClient.post(
(0, rC.getUrl)(
"/api/www/image1/doubao/styleList",
),
e,
)
);
case 2:
return (r = t.sent), t.abrupt("return", r.data);
case 4:
case "end":
return t.stop();
}
},
t,
this,
);
}),
)),
function (t) {
return a.apply(this, arguments);
}),
},
{
key: "getImg1StyleList",
value:
((u = nt(
r6().mark(function t(e) {
var r;
return r6().wrap(
function (t) {
for (;;)
switch ((t.prev = t.next)) {
case 0:
return (
(t.next = 2),
this.apiClient.post(
(0, rC.getUrl)("/api/www/image1/styleList"),
e,
)
);
case 2:
return (r = t.sent), t.abrupt("return", r.data);
case 4:
case "end":
return t.stop();
}
},
t,
this,
);
}),
)),
function (t) {
return u.apply(this, arguments);
}),
},
{
key: "getKontextProMaxStyleList",
value:
((c = nt(
r6().mark(function t(e) {
var r;
return r6().wrap(
function (t) {
for (;;)
switch ((t.prev = t.next)) {
case 0:
return (
(t.next = 2),
this.apiClient.post(
(0, rC.getUrl)(
"/api/www/image1/kontext/styleList",
),
e,
)
);
case 2:
return (r = t.sent), t.abrupt("return", r.data);
case 4:
case "end":
return t.stop();
}
},
t,
this,
);
}),
)),
function (t) {
return c.apply(this, arguments);
}),
},
{
key: "getModelHistoryUsedList",
value:
((s = nt(
r6().mark(function t(e) {
var r;
return r6().wrap(
function (t) {
for (;;)
switch ((t.prev = t.next)) {
case 0:
return (
(t.next = 2),
this.apiClient.post(
(0, rC.getUrl)("/api/www/model/used/history"),
e,
)
);
case 2:
return (r = t.sent), t.abrupt("return", r.data);
case 4:
case "end":
return t.stop();
}
},
t,
this,
);
}),
)),
function (t) {
return s.apply(this, arguments);
}),
},
{
key: "addModelHistoryUsed",
value:
((l = nt(
r6().mark(function t(e) {
var r;
return r6().wrap(
function (t) {
for (;;)
switch ((t.prev = t.next)) {
case 0:
return (
(t.next = 2),
this.apiClient.post(
(0, rC.getUrl)(
"/api/www/model/used/history/add",
),
e,
)
);
case 2:
return (r = t.sent), t.abrupt("return", r.data);
case 4:
case "end":
return t.stop();
}
},
t,
this,
);
}),
)),
function (t) {
return l.apply(this, arguments);
}),
},
{
key: "subscribeModel",
value:
((f = nt(
r6().mark(function t(e) {
var r;
return r6().wrap(
function (t) {
for (;;)
switch ((t.prev = t.next)) {
case 0:
return (
(t.next = 2),
this.apiClient.post(
(0, rC.getUrl)(
"/api/www/model/model-version/subscribe",
),
e,
)
);
case 2:
return (r = t.sent), t.abrupt("return", r.data);
case 4:
case "end":
return t.stop();
}
},
t,
this,
);
}),
)),
function (t) {
return f.apply(this, arguments);
}),
},
{
key: "unsubscribeModel",
value:
((p = nt(
r6().mark(function t(e) {
var r;
return r6().wrap(
function (t) {
for (;;)
switch ((t.prev = t.next)) {
case 0:
return (
(t.next = 2),
this.apiClient.post(
(0, rC.getUrl)(
"/api/www/model/model-version/unsubscribe",
),
e,
)
);
case 2:
return (r = t.sent), t.abrupt("return", r.data);
case 4:
case "end":
return t.stop();
}
},
t,
this,
);
}),
)),
function (t) {
return p.apply(this, arguments);
}),
},
{
key: "getMyLikeModelList",
value:
((h = nt(
r6().mark(function t(e) {
var r;
return r6().wrap(
function (t) {
for (;;)
switch ((t.prev = t.next)) {
case 0:
return (
(t.next = 2),
this.apiClient.post(
(0, rC.getUrl)(
"/api/www/model/subscribed/modelVersion/list",
),
e,
)
);
case 2:
return (r = t.sent), t.abrupt("return", r.data);
case 4:
case "end":
return t.stop();
}
},
t,
this,
);
}),
)),
function (t) {
return h.apply(this, arguments);
}),
},
{
key: "getEditorList",
value:
((y = nt(
r6().mark(function t(e) {
var r;
return r6().wrap(
function (t) {
for (;;)
switch ((t.prev = t.next)) {
case 0:
return (
(t.prev = 0),
(t.next = 3),
this.apiClient.post(
(0, rC.getUrl)(
"/gateway/sd-api/generate/editor/list",
),
e,
)
);
case 3:
return (
(r = t.sent), t.abrupt("return", r.data || null)
);
case 7:
return (
(t.prev = 7),
(t.t0 = t.catch(0)),
t.abrupt("return", null)
);
case 10:
case "end":
return t.stop();
}
},
t,
this,
[[0, 7]],
);
}),
)),
function (t) {
return y.apply(this, arguments);
}),
},
{
key: "getGenImgHistory",
value:
((v = nt(
r6().mark(function t(e) {
var r;
return r6().wrap(
function (t) {
for (;;)
switch ((t.prev = t.next)) {
case 0:
return (
(t.prev = 0),
(t.next = 3),
this.apiClient.post(
(0, rC.getUrl)(
"/gateway/sd-api/generate/editor/img/history",
),
e,
)
);
case 3:
return (r = t.sent), t.abrupt("return", r || null);
case 7:
return (
(t.prev = 7),
(t.t0 = t.catch(0)),
t.abrupt("return", null)
);
case 10:
case "end":
return t.stop();
}
},
t,
this,
[[0, 7]],
);
}),
)),
function (t) {
return v.apply(this, arguments);
}),
},
{
key: "editorImgDelete",
value:
((d = nt(
r6().mark(function t(e) {
var r;
return r6().wrap(
function (t) {
for (;;)
switch ((t.prev = t.next)) {
case 0:
return (
(t.prev = 0),
(t.next = 3),
this.apiClient.post(
(0, rC.getUrl)(
"/gateway/sd-api/generate/editor/img/delete",
),
e,
)
);
case 3:
return (r = t.sent), t.abrupt("return", r || null);
case 7:
return (
(t.prev = 7),
(t.t0 = t.catch(0)),
t.abrupt("return", null)
);
case 10:
case "end":
return t.stop();
}
},
t,
this,
[[0, 7]],
);
}),
)),
function (t) {
return d.apply(this, arguments);
}),
},
{
key: "collectWebUiImage",
value:
((g = nt(
r6().mark(function t(e) {
var r;
return r6().wrap(
function (t) {
for (;;)
switch ((t.prev = t.next)) {
case 0:
return (
(t.prev = 0),
(t.next = 3),
this.apiClient.post(
(0, rC.getUrl)(
"/gateway/sd-api/generate/image/collected",
),
e,
)
);
case 3:
return (r = t.sent), t.abrupt("return", r || null);
case 7:
return (
(t.prev = 7),
(t.t0 = t.catch(0)),
t.abrupt("return", null)
);
case 10:
case "end":
return t.stop();
}
},
t,
this,
[[0, 7]],
);
}),
)),
function (t) {
return g.apply(this, arguments);
}),
},
{
key: "collectWebUiVideo",
value:
((m = nt(
r6().mark(function t(e) {
var r;
return r6().wrap(
function (t) {
for (;;)
switch ((t.prev = t.next)) {
case 0:
return (
(t.prev = 0),
(t.next = 3),
this.apiClient.post(
(0, rC.getUrl)(
"/gateway/sd-api/generate/video/collected",
),
e,
)
);
case 3:
return (r = t.sent), t.abrupt("return", r || null);
case 7:
return (
(t.prev = 7),
(t.t0 = t.catch(0)),
t.abrupt("return", null)
);
case 10:
case "end":
return t.stop();
}
},
t,
this,
[[0, 7]],
);
}),
)),
function (t) {
return m.apply(this, arguments);
}),
},
{
key: "collectComfyImg",
value:
((b = nt(
r6().mark(function t(e) {
var r;
return r6().wrap(
function (t) {
for (;;)
switch ((t.prev = t.next)) {
case 0:
return (
(t.prev = 0),
(t.next = 3),
this.apiClient.post(
(0, rC.getUrl)(
"/gateway/sd-api/generate/comfy/img/collected",
),
e,
)
);
case 3:
return (r = t.sent), t.abrupt("return", r || null);
case 7:
return (
(t.prev = 7),
(t.t0 = t.catch(0)),
t.abrupt("return", null)
);
case 10:
case "end":
return t.stop();
}
},
t,
this,
[[0, 7]],
);
}),
)),
function (t) {
return b.apply(this, arguments);
}),
},
{
key: "collectComfyVideo",
value:
((w = nt(
r6().mark(function t(e) {
var r;
return r6().wrap(
function (t) {
for (;;)
switch ((t.prev = t.next)) {
case 0:
return (
(t.prev = 0),
(t.next = 3),
this.apiClient.post(
(0, rC.getUrl)(
"/gateway/sd-api/generate/comfy/video/collected",
),
e,
)
);
case 3:
return (r = t.sent), t.abrupt("return", r || null);
case 7:
return (
(t.prev = 7),
(t.t0 = t.catch(0)),
t.abrupt("return", null)
);
case 10:
case "end":
return t.stop();
}
},
t,
this,
[[0, 7]],
);
}),
)),
function (t) {
return w.apply(this, arguments);
}),
},
{
key: "collectAiImg",
value:
((x = nt(
r6().mark(function t(e) {
var r;
return r6().wrap(
function (t) {
for (;;)
switch ((t.prev = t.next)) {
case 0:
return (
(t.prev = 0),
(t.next = 3),
this.apiClient.post(
(0, rC.getUrl)(
"/gateway/sd-api/generate/sd3/image/collected",
),
e,
)
);
case 3:
return (r = t.sent), t.abrupt("return", r || null);
case 7:
return (
(t.prev = 7),
(t.t0 = t.catch(0)),
t.abrupt("return", null)
);
case 10:
case "end":
return t.stop();
}
},
t,
this,
[[0, 7]],
);
}),
)),
function (t) {
return x.apply(this, arguments);
}),
},
{
key: "collectAiVideo",
value:
((O = nt(
r6().mark(function t(e) {
var r;
return r6().wrap(
function (t) {
for (;;)
switch ((t.prev = t.next)) {
case 0:
return (
(t.prev = 0),
(t.next = 3),
this.apiClient.post(
(0, rC.getUrl)(
"/gateway/sd-api/generate/sd3/video/collected",
),
e,
)
);
case 3:
return (r = t.sent), t.abrupt("return", r || null);
case 7:
return (
(t.prev = 7),
(t.t0 = t.catch(0)),
t.abrupt("return", null)
);
case 10:
case "end":
return t.stop();
}
},
t,
this,
[[0, 7]],
);
}),
)),
function (t) {
return O.apply(this, arguments);
}),
},
{
key: "collectEditorImg",
value:
((E = nt(
r6().mark(function t(e) {
var r;
return r6().wrap(
function (t) {
for (;;)
switch ((t.prev = t.next)) {
case 0:
return (
(t.prev = 0),
(t.next = 3),
this.apiClient.post(
(0, rC.getUrl)(
"/gateway/sd-api/generate/editor/img/collected",
),
e,
)
);
case 3:
return (r = t.sent), t.abrupt("return", r || null);
case 7:
return (
(t.prev = 7),
(t.t0 = t.catch(0)),
t.abrupt("return", null)
);
case 10:
case "end":
return t.stop();
}
},
t,
this,
[[0, 7]],
);
}),
)),
function (t) {
return E.apply(this, arguments);
}),
},
{
key: "collectEditorVideo",
value:
((L = nt(
r6().mark(function t(e) {
var r;
return r6().wrap(
function (t) {
for (;;)
switch ((t.prev = t.next)) {
case 0:
return (
(t.prev = 0),
(t.next = 3),
this.apiClient.post(
(0, rC.getUrl)(
"/gateway/sd-api/generate/editor/video/collected",
),
e,
)
);
case 3:
return (r = t.sent), t.abrupt("return", r || null);
case 7:
return (
(t.prev = 7),
(t.t0 = t.catch(0)),
t.abrupt("return", null)
);
case 10:
case "end":
return t.stop();
}
},
t,
this,
[[0, 7]],
);
}),
)),
function (t) {
return L.apply(this, arguments);
}),
},
{
key: "getEditorImgHistory",
value:
((j = nt(
r6().mark(function t(e) {
var r;
return r6().wrap(
function (t) {
for (;;)
switch ((t.prev = t.next)) {
case 0:
return (
(t.next = 2),
this.apiClient.post(
(0, rC.getUrl)(
"/gateway/sd-api/generate/editor/img/history",
),
e,
)
);
case 2:
return (r = t.sent), t.abrupt("return", r);
case 4:
case "end":
return t.stop();
}
},
t,
this,
);
}),
)),
function (t) {
return j.apply(this, arguments);
}),
},
{
key: "getGenerateList",
value:
((_ = nt(
r6().mark(function t() {
var e;
return r6().wrap(
function (t) {
for (;;)
switch ((t.prev = t.next)) {
case 0:
return (
(t.next = 2),
this.apiClient.post(
(0, rC.getUrl)(
"/gateway/sd-api/generate/progress/msg/v3",
),
{
pageNo: 1,
pageSize: 5,
bizType: "LIB_EDITOR",
},
)
);
case 2:
return (e = t.sent), t.abrupt("return", e);
case 4:
case "end":
return t.stop();
}
},
t,
this,
);
}),
)),
function () {
return _.apply(this, arguments);
}),
},
{
key: "deleteTask",
value:
((k = nt(
r6().mark(function t(e) {
var r;
return r6().wrap(
function (t) {
for (;;)
switch ((t.prev = t.next)) {
case 0:
return (
(t.prev = 0),
(t.next = 3),
this.apiClient.post(
(0, rC.getUrl)(
"/gateway/sd-api/generate/deleteTask",
),
e,
)
);
case 3:
return (r = t.sent), t.abrupt("return", r || null);
case 7:
return (
(t.prev = 7),
(t.t0 = t.catch(0)),
t.abrupt("return", null)
);
case 10:
case "end":
return t.stop();
}
},
t,
this,
[[0, 7]],
);
}),
)),
function (t) {
return k.apply(this, arguments);
}),
},
{
key: "getVideoRecommendModels",
value:
((P = nt(
r6().mark(function t() {
var e,
r = this;
return r6().wrap(function (t) {
for (;;)
switch ((t.prev = t.next)) {
case 0:
return (
(t.next = 2),
(0, r8.checkIfMock)(
{
method: "GET",
url: (0, rC.getUrl)(
"/api/www/video/recommend-models",
),
},
function () {
return r.apiClient.get(
(0, rC.getUrl)(
"/api/www/video/recommend-models",
),
);
},
)
);
case 2:
return (e = t.sent), t.abrupt("return", e.data);
case 4:
case "end":
return t.stop();
}
}, t);
}),
)),
function () {
return P.apply(this, arguments);
}),
},
{
key: "getVideoEffects",
value:
((S = nt(
r6().mark(function t() {
var e;
return r6().wrap(
function (t) {
for (;;)
switch ((t.prev = t.next)) {
case 0:
return (
(t.next = 2),
this.apiClient.get(
(0, rC.getUrl)("/api/www/video/effects"),
)
);
case 2:
return (e = t.sent), t.abrupt("return", e.data);
case 4:
case "end":
return t.stop();
}
},
t,
this,
);
}),
)),
function () {
return S.apply(this, arguments);
}),
},
{
key: "getEditorVideoList",
value:
((T = nt(
r6().mark(function t(e) {
var r;
return r6().wrap(
function (t) {
for (;;)
switch ((t.prev = t.next)) {
case 0:
return (
(t.prev = 0),
(t.next = 3),
this.apiClient.post(
(0, rC.getUrl)(
"/gateway/sd-api/generate/editor/video/list",
),
e,
)
);
case 3:
return (
(r = t.sent), t.abrupt("return", r.data || null)
);
case 7:
return (
(t.prev = 7),
(t.t0 = t.catch(0)),
t.abrupt("return", null)
);
case 10:
case "end":
return t.stop();
}
},
t,
this,
[[0, 7]],
);
}),
)),
function (t) {
return T.apply(this, arguments);
}),
},
{
key: "getEditorDigitalHumanList",
value:
((C = nt(
r6().mark(function t(e) {
var r;
return r6().wrap(
function (t) {
for (;;)
switch ((t.prev = t.next)) {
case 0:
return (
(t.next = 2),
this.apiClient.post(
(0, rC.getUrl)(
"/gateway/sd-api/generate/editor/list",
),
e,
)
);
case 2:
return (
(r = t.sent), t.abrupt("return", r.data || null)
);
case 4:
case "end":
return t.stop();
}
},
t,
this,
);
}),
)),
function (t) {
return C.apply(this, arguments);
}),
},
{
key: "getEditorVideoHistory",
value:
((R = nt(
r6().mark(function t(e) {
var r;
return r6().wrap(
function (t) {
for (;;)
switch ((t.prev = t.next)) {
case 0:
return (
(t.next = 2),
this.apiClient.post(
(0, rC.getUrl)(
"/gateway/sd-api/generate/editor/video/history",
),
e,
)
);
case 2:
return (r = t.sent), t.abrupt("return", r);
case 4:
case "end":
return t.stop();
}
},
t,
this,
);
}),
)),
function (t) {
return R.apply(this, arguments);
}),
},
{
key: "editorVideoDelete",
value:
((N = nt(
r6().mark(function t(e) {
var r;
return r6().wrap(
function (t) {
for (;;)
switch ((t.prev = t.next)) {
case 0:
return (
(t.prev = 0),
(t.next = 3),
this.apiClient.post(
(0, rC.getUrl)(
"/gateway/sd-api/generate/editor/video/delete",
),
e,
)
);
case 3:
return (r = t.sent), t.abrupt("return", r || null);
case 7:
return (
(t.prev = 7),
(t.t0 = t.catch(0)),
t.abrupt("return", null)
);
case 10:
case "end":
return t.stop();
}
},
t,
this,
[[0, 7]],
);
}),
)),
function (t) {
return N.apply(this, arguments);
}),
},
{
key: "getWebUiImgHistory",
value:
((U = nt(
r6().mark(function t(e) {
var r;
return r6().wrap(
function (t) {
for (;;)
switch ((t.prev = t.next)) {
case 0:
return (
(t.next = 2),
this.apiClient.post(
(0, rC.getUrl)(
"/gateway/sd-api/generate/image/history",
),
e,
)
);
case 2:
return (r = t.sent), t.abrupt("return", r);
case 4:
case "end":
return t.stop();
}
},
t,
this,
);
}),
)),
function (t) {
return U.apply(this, arguments);
}),
},
{
key: "getWebUiVideoHistory",
value:
((A = nt(
r6().mark(function t(e) {
var r;
return r6().wrap(
function (t) {
for (;;)
switch ((t.prev = t.next)) {
case 0:
return (
(t.next = 2),
this.apiClient.post(
(0, rC.getUrl)(
"/gateway/sd-api/generate/video/history",
),
e,
)
);
case 2:
return (r = t.sent), t.abrupt("return", r);
case 4:
case "end":
return t.stop();
}
},
t,
this,
);
}),
)),
function (t) {
return A.apply(this, arguments);
}),
},
{
key: "getWebUiImgDelete",
value:
((I = nt(
r6().mark(function t(e) {
var r;
return r6().wrap(
function (t) {
for (;;)
switch ((t.prev = t.next)) {
case 0:
return (
(t.next = 2),
this.apiClient.post(
(0, rC.getUrl)(
"/gateway/sd-api/generate/image/delete",
),
e,
)
);
case 2:
return (r = t.sent), t.abrupt("return", r);
case 4:
case "end":
return t.stop();
}
},
t,
this,
);
}),
)),
function (t) {
return I.apply(this, arguments);
}),
},
{
key: "getWebUiVideoDelete",
value:
((F = nt(
r6().mark(function t(e) {
var r;
return r6().wrap(
function (t) {
for (;;)
switch ((t.prev = t.next)) {
case 0:
return (
(t.next = 2),
this.apiClient.post(
(0, rC.getUrl)(
"/gateway/sd-api/generate/video/delete",
),
e,
)
);
case 2:
return (r = t.sent), t.abrupt("return", r);
case 4:
case "end":
return t.stop();
}
},
t,
this,
);
}),
)),
function (t) {
return F.apply(this, arguments);
}),
},
{
key: "getPublicTagV2",
value:
((G = nt(
r6().mark(function t(e) {
var r;
return r6().wrap(
function (t) {
for (;;)
switch ((t.prev = t.next)) {
case 0:
return (
(t.next = 2),
this.apiClient.post(
(0, rC.getUrl)("/api/www/public/tag/v2"),
e,
)
);
case 2:
return (r = t.sent), t.abrupt("return", r);
case 4:
case "end":
return t.stop();
}
},
t,
this,
);
}),
)),
function (t) {
return G.apply(this, arguments);
}),
},
{
key: "getMyCollectModelList",
value:
((D = nt(
r6().mark(function t(e) {
var r;
return r6().wrap(
function (t) {
for (;;)
switch ((t.prev = t.next)) {
case 0:
return (
(t.next = 2),
this.apiClient.post(
(0, rC.getUrl)(
"/gateway/sd-api/model/searchV2",
),
e,
)
);
case 2:
return (r = t.sent), t.abrupt("return", r);
case 4:
case "end":
return t.stop();
}
},
t,
this,
);
}),
)),
function (t) {
return D.apply(this, arguments);
}),
},
{
key: "saveUploadRecord",
value:
((B = nt(
r6().mark(function t(e) {
var r;
return r6().wrap(
function (t) {
for (;;)
switch ((t.prev = t.next)) {
case 0:
return (
(t.next = 2),
this.apiClient.post(
(0, rC.getUrl)(
"/gateway/sd-api/fileUpload/saveUploadRecord",
),
e,
)
);
case 2:
return (r = t.sent), t.abrupt("return", r);
case 4:
case "end":
return t.stop();
}
},
t,
this,
);
}),
)),
function (t) {
return B.apply(this, arguments);
}),
},
{
key: "uploadRecordImgHistory",
value:
((M = nt(
r6().mark(function t(e) {
var r;
return r6().wrap(
function (t) {
for (;;)
switch ((t.prev = t.next)) {
case 0:
return (
(t.next = 2),
this.apiClient.post(
(0, rC.getUrl)(
"/gateway/sd-api/fileUpload/uploadRecordList",
),
e,
)
);
case 2:
return (r = t.sent), t.abrupt("return", r);
case 4:
case "end":
return t.stop();
}
},
t,
this,
);
}),
)),
function (t) {
return M.apply(this, arguments);
}),
},
{
key: "detectMedia",
value:
((q = nt(
r6().mark(function t(e) {
var r;
return r6().wrap(
function (t) {
for (;;)
switch ((t.prev = t.next)) {
case 0:
return (
(t.next = 2),
this.apiClient.post(
(0, rC.getUrl)(
"/gateway/sd-api/fileUpload/detectMedia",
),
e,
)
);
case 2:
return (r = t.sent), t.abrupt("return", r);
case 4:
case "end":
return t.stop();
}
},
t,
this,
);
}),
)),
function (t) {
return q.apply(this, arguments);
}),
},
{
key: "deleteUploadRecord",
value:
((V = nt(
r6().mark(function t(e) {
var r;
return r6().wrap(
function (t) {
for (;;)
switch ((t.prev = t.next)) {
case 0:
return (
(t.next = 2),
this.apiClient.post(
(0, rC.getUrl)(
"/gateway/sd-api/fileUpload/deleteRecord",
),
e,
)
);
case 2:
return (r = t.sent), t.abrupt("return", r);
case 4:
case "end":
return t.stop();
}
},
t,
this,
);
}),
)),
function (t) {
return V.apply(this, arguments);
}),
},
{
key: "getReversePrompt",
value:
((H = nt(
r6().mark(function t(e) {
var r;
return r6().wrap(
function (t) {
for (;;)
switch ((t.prev = t.next)) {
case 0:
return (
(t.next = 2),
this.apiClient.post(
(0, rC.getUrl)(
"/gateway/sd-api/generate/image/synch",
),
e,
)
);
case 2:
return (r = t.sent), t.abrupt("return", r);
case 4:
case "end":
return t.stop();
}
},
t,
this,
);
}),
)),
function (t) {
return H.apply(this, arguments);
}),
},
{
key: "getInspirationList",
value:
((W = nt(
r6().mark(function t(e) {
var r;
return r6().wrap(
function (t) {
for (;;)
switch ((t.prev = t.next)) {
case 0:
return (
(t.next = 2),
this.apiClient.post(
(0, rC.getUrl)("/api/www/img/group/search"),
e,
)
);
case 2:
return (r = t.sent), t.abrupt("return", r.data);
case 4:
case "end":
return t.stop();
}
},
t,
this,
);
}),
)),
function (t) {
return W.apply(this, arguments);
}),
},
{
key: "getCollectionName",
value:
((Y = nt(
r6().mark(function t(e) {
var r;
return r6().wrap(
function (t) {
for (;;)
switch ((t.prev = t.next)) {
case 0:
return (
(t.next = 2),
this.apiClient.get(
(0, rC.getUrl)(
"/api/www/optCollection/".concat(
e.collectionId,
),
),
)
);
case 2:
return (r = t.sent), t.abrupt("return", r.data);
case 4:
case "end":
return t.stop();
}
},
t,
this,
);
}),
)),
function (t) {
return Y.apply(this, arguments);
}),
},
{
key: "getTemplateList",
value:
((z = nt(
r6().mark(function t(e) {
var r;
return r6().wrap(
function (t) {
for (;;)
switch ((t.prev = t.next)) {
case 0:
return (
(t.prev = 0),
(t.next = 3),
this.apiClient.post(
(0, rC.getUrl)(
"/gateway/sd-api/generate/editor/testing/list",
),
e,
)
);
case 3:
return (
(r = t.sent), t.abrupt("return", r.data || null)
);
case 7:
return (
(t.prev = 7),
(t.t0 = t.catch(0)),
t.abrupt("return", null)
);
case 10:
case "end":
return t.stop();
}
},
t,
this,
[[0, 7]],
);
}),
)),
function (t) {
return z.apply(this, arguments);
}),
},
{
key: "getTemplateEffectList",
value:
((K = nt(
r6().mark(function t(e) {
var r;
return r6().wrap(
function (t) {
for (;;)
switch ((t.prev = t.next)) {
case 0:
return (
(t.next = 2),
this.apiClient.post(
(0, rC.getUrl)(
"/api/www/model/effect/template/stream",
),
e,
)
);
case 2:
return (r = t.sent), t.abrupt("return", r.data);
case 4:
case "end":
return t.stop();
}
},
t,
this,
);
}),
)),
function (t) {
return K.apply(this, arguments);
}),
},
]),
(function (t, e) {
for (var r = 0; r < e.length; r++) {
var n = e[r];
(n.enumerable = n.enumerable || !1),
(n.configurable = !0),
"value" in n && (n.writable = !0),
Object.defineProperty(t, ni(n.key), n);
}
})(Q.prototype, $),
Object.defineProperty(Q, "prototype", { writable: !1 }),
Q
);
})(eG);
function nu(t) {
return (nu =
"function" == typeof Symbol && "symbol" == typeof Symbol.iterator
? function (t) {
return typeof t;
}
: function (t) {
return t &&
"function" == typeof Symbol &&
t.constructor === Symbol &&
t !== Symbol.prototype
? "symbol"
: typeof t;
})(t);
}
function nc() {
nc = function () {
return e;
};
var t,
e = {},
r = Object.prototype,
n = r.hasOwnProperty,
o =
Object.defineProperty ||
function (t, e, r) {
t[e] = r.value;
},
i = "function" == typeof Symbol ? Symbol : {},
a = i.iterator || "@@iterator",
u = i.asyncIterator || "@@asyncIterator",
c = i.toStringTag || "@@toStringTag";
function s(t, e, r) {
return (
Object.defineProperty(t, e, {
value: r,
enumerable: !0,
configurable: !0,
writable: !0,
}),
t[e]
);
}
try {
s({}, "");
} catch (t) {
s = function (t, e, r) {
return (t[e] = r);
};
}
function l(e, r, n, i) {
var a,
u,
c,
s,
l = Object.create((r && r.prototype instanceof d ? r : d).prototype);
return (
o(l, "_invoke", {
value:
((a = e),
(u = n),
(c = new k(i || [])),
(s = p),
function (e, r) {
if (s === h) throw Error("Generator is already running");
if (s === y) {
if ("throw" === e) throw r;
return { value: t, done: !0 };
}
for (c.method = e, c.arg = r; ; ) {
var n = c.delegate;
if (n) {
var o = (function e(r, n) {
var o = n.method,
i = r.iterator[o];
if (i === t)
return (
(n.delegate = null),
("throw" === o &&
r.iterator.return &&
((n.method = "return"),
(n.arg = t),
e(r, n),
"throw" === n.method)) ||
("return" !== o &&
((n.method = "throw"),
(n.arg = TypeError(
"The iterator does not provide a '" +
o +
"' method",
)))),
v
);
var a = f(i, r.iterator, n.arg);
if ("throw" === a.type)
return (
(n.method = "throw"),
(n.arg = a.arg),
(n.delegate = null),
v
);
var u = a.arg;
return u
? u.done
? ((n[r.resultName] = u.value),
(n.next = r.nextLoc),
"return" !== n.method &&
((n.method = "next"), (n.arg = t)),
(n.delegate = null),
v)
: u
: ((n.method = "throw"),
(n.arg = TypeError(
"iterator result is not an object",
)),
(n.delegate = null),
v);
})(n, c);
if (o) {
if (o === v) continue;
return o;
}
}
if ("next" === c.method) c.sent = c._sent = c.arg;
else if ("throw" === c.method) {
if (s === p) throw ((s = y), c.arg);
c.dispatchException(c.arg);
} else "return" === c.method && c.abrupt("return", c.arg);
s = h;
var i = f(a, u, c);
if ("normal" === i.type) {
if (((s = c.done ? y : "suspendedYield"), i.arg === v))
continue;
return { value: i.arg, done: c.done };
}
"throw" === i.type &&
((s = y), (c.method = "throw"), (c.arg = i.arg));
}
}),
}),
l
);
}
function f(t, e, r) {
try {
return { type: "normal", arg: t.call(e, r) };
} catch (t) {
return { type: "throw", arg: t };
}
}
e.wrap = l;
var p = "suspendedStart",
h = "executing",
y = "completed",
v = {};
function d() {}
function g() {}
function m() {}
var b = {};
s(b, a, function () {
return this;
});
var w = Object.getPrototypeOf,
x = w && w(w(P([])));
x && x !== r && n.call(x, a) && (b = x);
var O = (m.prototype = d.prototype = Object.create(b));
function E(t) {
["next", "throw", "return"].forEach(function (e) {
s(t, e, function (t) {
return this._invoke(e, t);
});
});
}
function L(t, e) {
var r;
o(this, "_invoke", {
value: function (o, i) {
function a() {
return new e(function (r, a) {
!(function r(o, i, a, u) {
var c = f(t[o], t, i);
if ("throw" !== c.type) {
var s = c.arg,
l = s.value;
return l && "object" == nu(l) && n.call(l, "__await")
? e.resolve(l.__await).then(
function (t) {
r("next", t, a, u);
},
function (t) {
r("throw", t, a, u);
},
)
: e.resolve(l).then(
function (t) {
(s.value = t), a(s);
},
function (t) {
return r("throw", t, a, u);
},
);
}
u(c.arg);
})(o, i, r, a);
});
}
return (r = r ? r.then(a, a) : a());
},
});
}
function j(t) {
var e = { tryLoc: t[0] };
1 in t && (e.catchLoc = t[1]),
2 in t && ((e.finallyLoc = t[2]), (e.afterLoc = t[3])),
this.tryEntries.push(e);
}
function _(t) {
var e = t.completion || {};
(e.type = "normal"), delete e.arg, (t.completion = e);
}
function k(t) {
(this.tryEntries = [{ tryLoc: "root" }]),
t.forEach(j, this),
this.reset(!0);
}
function P(e) {
if (e || "" === e) {
var r = e[a];
if (r) return r.call(e);
if ("function" == typeof e.next) return e;
if (!isNaN(e.length)) {
var o = -1,
i = function r() {
for (; ++o < e.length; )
if (n.call(e, o)) return (r.value = e[o]), (r.done = !1), r;
return (r.value = t), (r.done = !0), r;
};
return (i.next = i);
}
}
throw TypeError(nu(e) + " is not iterable");
}
return (
(g.prototype = m),
o(O, "constructor", { value: m, configurable: !0 }),
o(m, "constructor", { value: g, configurable: !0 }),
(g.displayName = s(m, c, "GeneratorFunction")),
(e.isGeneratorFunction = function (t) {
var e = "function" == typeof t && t.constructor;
return (
!!e &&
(e === g || "GeneratorFunction" === (e.displayName || e.name))
);
}),
(e.mark = function (t) {
return (
Object.setPrototypeOf
? Object.setPrototypeOf(t, m)
: ((t.__proto__ = m), s(t, c, "GeneratorFunction")),
(t.prototype = Object.create(O)),
t
);
}),
(e.awrap = function (t) {
return { __await: t };
}),
E(L.prototype),
s(L.prototype, u, function () {
return this;
}),
(e.AsyncIterator = L),
(e.async = function (t, r, n, o, i) {
void 0 === i && (i = Promise);
var a = new L(l(t, r, n, o), i);
return e.isGeneratorFunction(r)
? a
: a.next().then(function (t) {
return t.done ? t.value : a.next();
});
}),
E(O),
s(O, c, "Generator"),
s(O, a, function () {
return this;
}),
s(O, "toString", function () {
return "[object Generator]";
}),
(e.keys = function (t) {
var e = Object(t),
r = [];
for (var n in e) r.push(n);
return (
r.reverse(),
function t() {
for (; r.length; ) {
var n = r.pop();
if (n in e) return (t.value = n), (t.done = !1), t;
}
return (t.done = !0), t;
}
);
}),
(e.values = P),
(k.prototype = {
constructor: k,
reset: function (e) {
if (
((this.prev = 0),
(this.next = 0),
(this.sent = this._sent = t),
(this.done = !1),
(this.delegate = null),
(this.method = "next"),
(this.arg = t),
this.tryEntries.forEach(_),
!e)
)
for (var r in this)
"t" === r.charAt(0) &&
n.call(this, r) &&
!isNaN(+r.slice(1)) &&
(this[r] = t);
},
stop: function () {
this.done = !0;
var t = this.tryEntries[0].completion;
if ("throw" === t.type) throw t.arg;
return this.rval;
},
dispatchException: function (e) {
if (this.done) throw e;
var r = this;
function o(n, o) {
return (
(u.type = "throw"),
(u.arg = e),
(r.next = n),
o && ((r.method = "next"), (r.arg = t)),
!!o
);
}
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
var a = this.tryEntries[i],
u = a.completion;
if ("root" === a.tryLoc) return o("end");
if (a.tryLoc <= this.prev) {
var c = n.call(a, "catchLoc"),
s = n.call(a, "finallyLoc");
if (c && s) {
if (this.prev < a.catchLoc) return o(a.catchLoc, !0);
if (this.prev < a.finallyLoc) return o(a.finallyLoc);
} else if (c) {
if (this.prev < a.catchLoc) return o(a.catchLoc, !0);
} else {
if (!s) throw Error("try statement without catch or finally");
if (this.prev < a.finallyLoc) return o(a.finallyLoc);
}
}
}
},
abrupt: function (t, e) {
for (var r = this.tryEntries.length - 1; r >= 0; --r) {
var o = this.tryEntries[r];
if (
o.tryLoc <= this.prev &&
n.call(o, "finallyLoc") &&
this.prev < o.finallyLoc
) {
var i = o;
break;
}
}
i &&
("break" === t || "continue" === t) &&
i.tryLoc <= e &&
e <= i.finallyLoc &&
(i = null);
var a = i ? i.completion : {};
return (
(a.type = t),
(a.arg = e),
i
? ((this.method = "next"), (this.next = i.finallyLoc), v)
: this.complete(a)
);
},
complete: function (t, e) {
if ("throw" === t.type) throw t.arg;
return (
"break" === t.type || "continue" === t.type
? (this.next = t.arg)
: "return" === t.type
? ((this.rval = this.arg = t.arg),
(this.method = "return"),
(this.next = "end"))
: "normal" === t.type && e && (this.next = e),
v
);
},
finish: function (t) {
for (var e = this.tryEntries.length - 1; e >= 0; --e) {
var r = this.tryEntries[e];
if (r.finallyLoc === t)
return this.complete(r.completion, r.afterLoc), _(r), v;
}
},
catch: function (t) {
for (var e = this.tryEntries.length - 1; e >= 0; --e) {
var r = this.tryEntries[e];
if (r.tryLoc === t) {
var n = r.completion;
if ("throw" === n.type) {
var o = n.arg;
_(r);
}
return o;
}
}
throw Error("illegal catch attempt");
},
delegateYield: function (e, r, n) {
return (
(this.delegate = { iterator: P(e), resultName: r, nextLoc: n }),
"next" === this.method && (this.arg = t),
v
);
},
}),
e
);
}
function ns(t, e, r, n, o, i, a) {
try {
var u = t[i](a),
c = u.value;
} catch (t) {
r(t);
return;
}
u.done ? e(c) : Promise.resolve(c).then(n, o);
}
function nl(t) {
return function () {
var e = this,
r = arguments;
return new Promise(function (n, o) {
var i = t.apply(e, r);
function a(t) {
ns(i, n, o, a, u, "next", t);
}
function u(t) {
ns(i, n, o, a, u, "throw", t);
}
a(void 0);
});
};
}
t.s(["EditorImageService", () => na], 624452);
function nf(t, e) {
return (nf = Object.setPrototypeOf
? Object.setPrototypeOf.bind()
: function (t, e) {
return (t.__proto__ = e), t;
})(t, e);
}
function np(t) {
return (np = Object.setPrototypeOf
? Object.getPrototypeOf.bind()
: function (t) {
return t.__proto__ || Object.getPrototypeOf(t);
})(t);
}
var nh = (function (t) {
if ("function" != typeof t && null !== t)
throw TypeError("Super expression must either be null or a function");
(h.prototype = Object.create(t && t.prototype, {
constructor: { value: h, writable: !0, configurable: !0 },
})),
Object.defineProperty(h, "prototype", { writable: !1 }),
t && nf(h, t);
var e,
r,
n,
o,
i,
a,
u,
c,
s,
l,
f,
p =
((e = (function () {
if (
"u" < typeof Reflect ||
!Reflect.construct ||
Reflect.construct.sham
)
return !1;
if ("function" == typeof Proxy) return !0;
try {
return (
Boolean.prototype.valueOf.call(
Reflect.construct(Boolean, [], function () {}),
),
!0
);
} catch (t) {
return !1;
}
})()),
function () {
var t,
r = np(h);
return (
(t = e
? Reflect.construct(r, arguments, np(this).constructor)
: r.apply(this, arguments)),
(function (t, e) {
if (e && ("object" === nu(e) || "function" == typeof e))
return e;
if (void 0 !== e)
throw TypeError(
"Derived constructors may only return object or undefined",
);
var r = t;
if (void 0 === r)
throw ReferenceError(
"this hasn't been initialised - super() hasn't been called",
);
return r;
})(this, t)
);
});
function h() {
if (!(this instanceof h))
throw TypeError("Cannot call a class as a function");
return p.apply(this, arguments);
}
return (
(f = [
{
key: "createTemplate",
value:
((r = nl(
nc().mark(function t(e) {
var r;
return nc().wrap(
function (t) {
for (;;)
switch ((t.prev = t.next)) {
case 0:
return (
(t.next = 2),
this.apiClient.post(
(0, rC.getUrl)(
"/api/www/effect-template/create",
),
e,
)
);
case 2:
return (r = t.sent), t.abrupt("return", r);
case 4:
case "end":
return t.stop();
}
},
t,
this,
);
}),
)),
function (t) {
return r.apply(this, arguments);
}),
},
{
key: "updateTemplate",
value:
((n = nl(
nc().mark(function t(e) {
var r;
return nc().wrap(
function (t) {
for (;;)
switch ((t.prev = t.next)) {
case 0:
return (
(t.next = 2),
this.apiClient.post(
(0, rC.getUrl)(
"/api/www/effect-template/update",
),
e,
)
);
case 2:
return (r = t.sent), t.abrupt("return", r);
case 4:
case "end":
return t.stop();
}
},
t,
this,
);
}),
)),
function (t) {
return n.apply(this, arguments);
}),
},
{
key: "publishTemplate",
value:
((o = nl(
nc().mark(function t(e) {
var r;
return nc().wrap(
function (t) {
for (;;)
switch ((t.prev = t.next)) {
case 0:
return (
(t.next = 2),
this.apiClient.post(
(0, rC.getUrl)(
"/api/www/effect-template/publish",
),
e,
)
);
case 2:
return (r = t.sent), t.abrupt("return", r);
case 4:
case "end":
return t.stop();
}
},
t,
this,
);
}),
)),
function (t) {
return o.apply(this, arguments);
}),
},
{
key: "getTemplateById",
value:
((i = nl(
nc().mark(function t(e) {
var r;
return nc().wrap(
function (t) {
for (;;)
switch ((t.prev = t.next)) {
case 0:
return (
(t.next = 2),
this.apiClient.post(
(0, rC.getUrl)("/api/www/effect-template/get"),
e,
)
);
case 2:
return (r = t.sent), t.abrupt("return", r.data);
case 4:
case "end":
return t.stop();
}
},
t,
this,
);
}),
)),
function (t) {
return i.apply(this, arguments);
}),
},
{
key: "getTemplateList",
value:
((a = nl(
nc().mark(function t(e) {
var r;
return nc().wrap(
function (t) {
for (;;)
switch ((t.prev = t.next)) {
case 0:
return (
(t.next = 2),
this.apiClient.post(
(0, rC.getUrl)("/api/www/effect-template/list"),
e,
)
);
case 2:
return (r = t.sent), t.abrupt("return", r.data);
case 4:
case "end":
return t.stop();
}
},
t,
this,
);
}),
)),
function (t) {
return a.apply(this, arguments);
}),
},
{
key: "updateTemplateStatus",
value:
((u = nl(
nc().mark(function t(e) {
var r;
return nc().wrap(
function (t) {
for (;;)
switch ((t.prev = t.next)) {
case 0:
return (
(t.next = 2),
this.apiClient.post(
(0, rC.getUrl)(
"/api/www/effect-template/update-status",
),
e,
)
);
case 2:
return (r = t.sent), t.abrupt("return", r.data);
case 4:
case "end":
return t.stop();
}
},
t,
this,
);
}),
)),
function (t) {
return u.apply(this, arguments);
}),
},
{
key: "generateTemplateDescription",
value:
((c = nl(
nc().mark(function t(e) {
var r;
return nc().wrap(
function (t) {
for (;;)
switch ((t.prev = t.next)) {
case 0:
return (
(t.next = 2),
this.apiClient.post(
(0, rC.getUrl)(
"/api/www/effect-template/generate/".concat(
e.templateUuid,
),
),
e,
)
);
case 2:
return (r = t.sent), t.abrupt("return", r.data);
case 4:
case "end":
return t.stop();
}
},
t,
this,
);
}),
)),
function (t) {
return c.apply(this, arguments);
}),
},
{
key: "getTemplateContentResult",
value:
((s = nl(
nc().mark(function t(e) {
var r;
return nc().wrap(
function (t) {
for (;;)
switch ((t.prev = t.next)) {
case 0:
return (
(t.next = 2),
this.apiClient.get(
(0, rC.getUrl)(
"/api/www/effect-template/generateStatus/".concat(
e.templateUuid,
),
),
)
);
case 2:
return (r = t.sent), t.abrupt("return", r.data);
case 4:
case "end":
return t.stop();
}
},
t,
this,
);
}),
)),
function (t) {
return s.apply(this, arguments);
}),
},
{
key: "isTemplateWhiteListUser",
value:
((l = nl(
nc().mark(function t() {
var e;
return nc().wrap(
function (t) {
for (;;)
switch ((t.prev = t.next)) {
case 0:
return (
(t.next = 2),
this.apiClient.get(
(0, rC.getUrl)(
"/api/www/effect-template/checkWhitelist",
),
)
);
case 2:
return (e = t.sent), t.abrupt("return", e);
case 4:
case "end":
return t.stop();
}
},
t,
this,
);
}),
)),
function () {
return l.apply(this, arguments);
}),
},
]),
(function (t, e) {
for (var r = 0; r < e.length; r++) {
var n = e[r];
(n.enumerable = n.enumerable || !1),
(n.configurable = !0),
"value" in n && (n.writable = !0),
Object.defineProperty(
t,
(function (t) {
var e = (function (t, e) {
if ("object" != nu(t) || !t) return t;
var r = t[Symbol.toPrimitive];
if (void 0 !== r) {
var n = r.call(t, e || "default");
if ("object" != nu(n)) return n;
throw TypeError(
"@@toPrimitive must return a primitive value.",
);
}
return ("string" === e ? String : Number)(t);
})(t, "string");
return "symbol" == nu(e) ? e : String(e);
})(n.key),
n,
);
}
})(h.prototype, f),
Object.defineProperty(h, "prototype", { writable: !1 }),
h
);
})(eG);
function ny(t) {
return (ny =
"function" == typeof Symbol && "symbol" == typeof Symbol.iterator
? function (t) {
return typeof t;
}
: function (t) {
return t &&
"function" == typeof Symbol &&
t.constructor === Symbol &&
t !== Symbol.prototype
? "symbol"
: typeof t;
})(t);
}
function nv(t, e) {
var r = Object.keys(t);
if (Object.getOwnPropertySymbols) {
var n = Object.getOwnPropertySymbols(t);
e &&
(n = n.filter(function (e) {
return Object.getOwnPropertyDescriptor(t, e).enumerable;
})),
r.push.apply(r, n);
}
return r;
}
function nd(t) {
for (var e = 1; e < arguments.length; e++) {
var r = null != arguments[e] ? arguments[e] : {};
e % 2
? nv(Object(r), !0).forEach(function (e) {
var n, o, i;
(n = t),
(o = e),
(i = r[e]),
(o = (function (t) {
var e = (function (t, e) {
if ("object" != ny(t) || !t) return t;
var r = t[Symbol.toPrimitive];
if (void 0 !== r) {
var n = r.call(t, e || "default");
if ("object" != ny(n)) return n;
throw TypeError(
"@@toPrimitive must return a primitive value.",
);
}
return ("string" === e ? String : Number)(t);
})(t, "string");
return "symbol" == ny(e) ? e : String(e);
})(o)) in n
? Object.defineProperty(n, o, {
value: i,
enumerable: !0,
configurable: !0,
writable: !0,
})
: (n[o] = i);
})
: Object.getOwnPropertyDescriptors
? Object.defineProperties(t, Object.getOwnPropertyDescriptors(r))
: nv(Object(r)).forEach(function (e) {
Object.defineProperty(
t,
e,
Object.getOwnPropertyDescriptor(r, e),
);
});
}
return t;
}
t.s(["TemplateService", () => nh], 571652);
var ng = (((h = {}).none = "0"), (h.picOnly = "1"), (h.model = "2"), h),
nm = function (t) {
return nd(
nd({}, t),
{},
{
versions: t.versions.filter(function (t) {
return !!t.imageGroup;
}),
},
);
};
function nb(t) {
return (nb =
"function" == typeof Symbol && "symbol" == typeof Symbol.iterator
? function (t) {
return typeof t;
}
: function (t) {
return t &&
"function" == typeof Symbol &&
t.constructor === Symbol &&
t !== Symbol.prototype
? "symbol"
: typeof t;
})(t);
}
function nw(t, e) {
var r = Object.keys(t);
if (Object.getOwnPropertySymbols) {
var n = Object.getOwnPropertySymbols(t);
e &&
(n = n.filter(function (e) {
return Object.getOwnPropertyDescriptor(t, e).enumerable;
})),
r.push.apply(r, n);
}
return r;
}
function nx(t) {
for (var e = 1; e < arguments.length; e++) {
var r = null != arguments[e] ? arguments[e] : {};
e % 2
? nw(Object(r), !0).forEach(function (e) {
var n, o, i;
(n = t),
(o = e),
(i = r[e]),
(o = (function (t) {
var e = (function (t, e) {
if ("object" != nb(t) || !t) return t;
var r = t[Symbol.toPrimitive];
if (void 0 !== r) {
var n = r.call(t, e || "default");
if ("object" != nb(n)) return n;
throw TypeError(
"@@toPrimitive must return a primitive value.",
);
}
return ("string" === e ? String : Number)(t);
})(t, "string");
return "symbol" == nb(e) ? e : String(e);
})(o)) in n
? Object.defineProperty(n, o, {
value: i,
enumerable: !0,
configurable: !0,
writable: !0,
})
: (n[o] = i);
})
: Object.getOwnPropertyDescriptors
? Object.defineProperties(t, Object.getOwnPropertyDescriptors(r))
: nw(Object(r)).forEach(function (e) {
Object.defineProperty(
t,
e,
Object.getOwnPropertyDescriptor(r, e),
);
});
}
return t;
}
function nO(t) {
if (!t) return null;
var e = t.dataList
.map(function (t) {
return nx(nx({}, t), {}, { pics: t.pics ? t.pics : [] });
})
.filter(function (t) {
return t.pics.length > 0;
});
return (
e.length !== t.dataList.length &&
console.error(
"存在不合理的数据",
t.dataList.filter(function (t) {
return !t.pics || 0 === t.pics.length;
}),
),
nx(nx({}, t), {}, { dataList: e })
);
}
function nE(t) {
return (nE =
"function" == typeof Symbol && "symbol" == typeof Symbol.iterator
? function (t) {
return typeof t;
}
: function (t) {
return t &&
"function" == typeof Symbol &&
t.constructor === Symbol &&
t !== Symbol.prototype
? "symbol"
: typeof t;
})(t);
}
function nL() {
nL = function () {
return e;
};
var t,
e = {},
r = Object.prototype,
n = r.hasOwnProperty,
o =
Object.defineProperty ||
function (t, e, r) {
t[e] = r.value;
},
i = "function" == typeof Symbol ? Symbol : {},
a = i.iterator || "@@iterator",
u = i.asyncIterator || "@@asyncIterator",
c = i.toStringTag || "@@toStringTag";
function s(t, e, r) {
return (
Object.defineProperty(t, e, {
value: r,
enumerable: !0,
configurable: !0,
writable: !0,
}),
t[e]
);
}
try {
s({}, "");
} catch (t) {
s = function (t, e, r) {
return (t[e] = r);
};
}
function l(e, r, n, i) {
var a,
u,
c,
s,
l = Object.create((r && r.prototype instanceof d ? r : d).prototype);
return (
o(l, "_invoke", {
value:
((a = e),
(u = n),
(c = new k(i || [])),
(s = p),
function (e, r) {
if (s === h) throw Error("Generator is already running");
if (s === y) {
if ("throw" === e) throw r;
return { value: t, done: !0 };
}
for (c.method = e, c.arg = r; ; ) {
var n = c.delegate;
if (n) {
var o = (function e(r, n) {
var o = n.method,
i = r.iterator[o];
if (i === t)
return (
(n.delegate = null),
("throw" === o &&
r.iterator.return &&
((n.method = "return"),
(n.arg = t),
e(r, n),
"throw" === n.method)) ||
("return" !== o &&
((n.method = "throw"),
(n.arg = TypeError(
"The iterator does not provide a '" +
o +
"' method",
)))),
v
);
var a = f(i, r.iterator, n.arg);
if ("throw" === a.type)
return (
(n.method = "throw"),
(n.arg = a.arg),
(n.delegate = null),
v
);
var u = a.arg;
return u
? u.done
? ((n[r.resultName] = u.value),
(n.next = r.nextLoc),
"return" !== n.method &&
((n.method = "next"), (n.arg = t)),
(n.delegate = null),
v)
: u
: ((n.method = "throw"),
(n.arg = TypeError(
"iterator result is not an object",
)),
(n.delegate = null),
v);
})(n, c);
if (o) {
if (o === v) continue;
return o;
}
}
if ("next" === c.method) c.sent = c._sent = c.arg;
else if ("throw" === c.method) {
if (s === p) throw ((s = y), c.arg);
c.dispatchException(c.arg);
} else "return" === c.method && c.abrupt("return", c.arg);
s = h;
var i = f(a, u, c);
if ("normal" === i.type) {
if (((s = c.done ? y : "suspendedYield"), i.arg === v))
continue;
return { value: i.arg, done: c.done };
}
"throw" === i.type &&
((s = y), (c.method = "throw"), (c.arg = i.arg));
}
}),
}),
l
);
}
function f(t, e, r) {
try {
return { type: "normal", arg: t.call(e, r) };
} catch (t) {
return { type: "throw", arg: t };
}
}
e.wrap = l;
var p = "suspendedStart",
h = "executing",
y = "completed",
v = {};
function d() {}
function g() {}
function m() {}
var b = {};
s(b, a, function () {
return this;
});
var w = Object.getPrototypeOf,
x = w && w(w(P([])));
x && x !== r && n.call(x, a) && (b = x);
var O = (m.prototype = d.prototype = Object.create(b));
function E(t) {
["next", "throw", "return"].forEach(function (e) {
s(t, e, function (t) {
return this._invoke(e, t);
});
});
}
function L(t, e) {
var r;
o(this, "_invoke", {
value: function (o, i) {
function a() {
return new e(function (r, a) {
!(function r(o, i, a, u) {
var c = f(t[o], t, i);
if ("throw" !== c.type) {
var s = c.arg,
l = s.value;
return l && "object" == nE(l) && n.call(l, "__await")
? e.resolve(l.__await).then(
function (t) {
r("next", t, a, u);
},
function (t) {
r("throw", t, a, u);
},
)
: e.resolve(l).then(
function (t) {
(s.value = t), a(s);
},
function (t) {
return r("throw", t, a, u);
},
);
}
u(c.arg);
})(o, i, r, a);
});
}
return (r = r ? r.then(a, a) : a());
},
});
}
function j(t) {
var e = { tryLoc: t[0] };
1 in t && (e.catchLoc = t[1]),
2 in t && ((e.finallyLoc = t[2]), (e.afterLoc = t[3])),
this.tryEntries.push(e);
}
function _(t) {
var e = t.completion || {};
(e.type = "normal"), delete e.arg, (t.completion = e);
}
function k(t) {
(this.tryEntries = [{ tryLoc: "root" }]),
t.forEach(j, this),
this.reset(!0);
}
function P(e) {
if (e || "" === e) {
var r = e[a];
if (r) return r.call(e);
if ("function" == typeof e.next) return e;
if (!isNaN(e.length)) {
var o = -1,
i = function r() {
for (; ++o < e.length; )
if (n.call(e, o)) return (r.value = e[o]), (r.done = !1), r;
return (r.value = t), (r.done = !0), r;
};
return (i.next = i);
}
}
throw TypeError(nE(e) + " is not iterable");
}
return (
(g.prototype = m),
o(O, "constructor", { value: m, configurable: !0 }),
o(m, "constructor", { value: g, configurable: !0 }),
(g.displayName = s(m, c, "GeneratorFunction")),
(e.isGeneratorFunction = function (t) {
var e = "function" == typeof t && t.constructor;
return (
!!e &&
(e === g || "GeneratorFunction" === (e.displayName || e.name))
);
}),
(e.mark = function (t) {
return (
Object.setPrototypeOf
? Object.setPrototypeOf(t, m)
: ((t.__proto__ = m), s(t, c, "GeneratorFunction")),
(t.prototype = Object.create(O)),
t
);
}),
(e.awrap = function (t) {
return { __await: t };
}),
E(L.prototype),
s(L.prototype, u, function () {
return this;
}),
(e.AsyncIterator = L),
(e.async = function (t, r, n, o, i) {
void 0 === i && (i = Promise);
var a = new L(l(t, r, n, o), i);
return e.isGeneratorFunction(r)
? a
: a.next().then(function (t) {
return t.done ? t.value : a.next();
});
}),
E(O),
s(O, c, "Generator"),
s(O, a, function () {
return this;
}),
s(O, "toString", function () {
return "[object Generator]";
}),
(e.keys = function (t) {
var e = Object(t),
r = [];
for (var n in e) r.push(n);
return (
r.reverse(),
function t() {
for (; r.length; ) {
var n = r.pop();
if (n in e) return (t.value = n), (t.done = !1), t;
}
return (t.done = !0), t;
}
);
}),
(e.values = P),
(k.prototype = {
constructor: k,
reset: function (e) {
if (
((this.prev = 0),
(this.next = 0),
(this.sent = this._sent = t),
(this.done = !1),
(this.delegate = null),
(this.method = "next"),
(this.arg = t),
this.tryEntries.forEach(_),
!e)
)
for (var r in this)
"t" === r.charAt(0) &&
n.call(this, r) &&
!isNaN(+r.slice(1)) &&
(this[r] = t);
},
stop: function () {
this.done = !0;
var t = this.tryEntries[0].completion;
if ("throw" === t.type) throw t.arg;
return this.rval;
},
dispatchException: function (e) {
if (this.done) throw e;
var r = this;
function o(n, o) {
return (
(u.type = "throw"),
(u.arg = e),
(r.next = n),
o && ((r.method = "next"), (r.arg = t)),
!!o
);
}
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
var a = this.tryEntries[i],
u = a.completion;
if ("root" === a.tryLoc) return o("end");
if (a.tryLoc <= this.prev) {
var c = n.call(a, "catchLoc"),
s = n.call(a, "finallyLoc");
if (c && s) {
if (this.prev < a.catchLoc) return o(a.catchLoc, !0);
if (this.prev < a.finallyLoc) return o(a.finallyLoc);
} else if (c) {
if (this.prev < a.catchLoc) return o(a.catchLoc, !0);
} else {
if (!s) throw Error("try statement without catch or finally");
if (this.prev < a.finallyLoc) return o(a.finallyLoc);
}
}
}
},
abrupt: function (t, e) {
for (var r = this.tryEntries.length - 1; r >= 0; --r) {
var o = this.tryEntries[r];
if (
o.tryLoc <= this.prev &&
n.call(o, "finallyLoc") &&
this.prev < o.finallyLoc
) {
var i = o;
break;
}
}
i &&
("break" === t || "continue" === t) &&
i.tryLoc <= e &&
e <= i.finallyLoc &&
(i = null);
var a = i ? i.completion : {};
return (
(a.type = t),
(a.arg = e),
i
? ((this.method = "next"), (this.next = i.finallyLoc), v)
: this.complete(a)
);
},
complete: function (t, e) {
if ("throw" === t.type) throw t.arg;
return (
"break" === t.type || "continue" === t.type
? (this.next = t.arg)
: "return" === t.type
? ((this.rval = this.arg = t.arg),
(this.method = "return"),
(this.next = "end"))
: "normal" === t.type && e && (this.next = e),
v
);
},
finish: function (t) {
for (var e = this.tryEntries.length - 1; e >= 0; --e) {
var r = this.tryEntries[e];
if (r.finallyLoc === t)
return this.complete(r.completion, r.afterLoc), _(r), v;
}
},
catch: function (t) {
for (var e = this.tryEntries.length - 1; e >= 0; --e) {
var r = this.tryEntries[e];
if (r.tryLoc === t) {
var n = r.completion;
if ("throw" === n.type) {
var o = n.arg;
_(r);
}
return o;
}
}
throw Error("illegal catch attempt");
},
delegateYield: function (e, r, n) {
return (
(this.delegate = { iterator: P(e), resultName: r, nextLoc: n }),
"next" === this.method && (this.arg = t),
v
);
},
}),
e
);
}
function nj(t, e, r, n, o, i, a) {
try {
var u = t[i](a),
c = u.value;
} catch (t) {
r(t);
return;
}
u.done ? e(c) : Promise.resolve(c).then(n, o);
}
function n_(t) {
return function () {
var e = this,
r = arguments;
return new Promise(function (n, o) {
var i = t.apply(e, r);
function a(t) {
nj(i, n, o, a, u, "next", t);
}
function u(t) {
nj(i, n, o, a, u, "throw", t);
}
a(void 0);
});
};
}
t.s(["PrivilegeType", () => ng, "filterModelInfo", () => nm], 317491),
t.s(["convertPaginationReturnPic", () => nO], 219833),
t.s([], 128952),
t.s([], 418534),
t.s([], 920692);
function nk(t, e) {
return (nk = Object.setPrototypeOf
? Object.setPrototypeOf.bind()
: function (t, e) {
return (t.__proto__ = e), t;
})(t, e);
}
function nP(t) {
if (void 0 === t)
throw ReferenceError(
"this hasn't been initialised - super() hasn't been called",
);
return t;
}
function nS(t) {
return (nS = Object.setPrototypeOf
? Object.getPrototypeOf.bind()
: function (t) {
return t.__proto__ || Object.getPrototypeOf(t);
})(t);
}
function nT(t) {
var e = (function (t, e) {
if ("object" != nE(t) || !t) return t;
var r = t[Symbol.toPrimitive];
if (void 0 !== r) {
var n = r.call(t, e || "default");
if ("object" != nE(n)) return n;
throw TypeError("@@toPrimitive must return a primitive value.");
}
return ("string" === e ? String : Number)(t);
})(t, "string");
return "symbol" == nE(e) ? e : String(e);
}
var nC =
(((y = {})[(y.modelLib = 1)] = "modelLib"),
(y[(y.starLib = 2)] = "starLib"),
y),
nR = (function (t) {
if ("function" != typeof t && null !== t)
throw TypeError("Super expression must either be null or a function");
(k.prototype = Object.create(t && t.prototype, {
constructor: { value: k, writable: !0, configurable: !0 },
})),
Object.defineProperty(k, "prototype", { writable: !1 }),
t && nk(k, t);
var e,
r,
n,
o,
i,
a,
u,
c,
s,
l,
f,
p,
h,
y,
v,
d,
g,
m,
b,
w,
x,
O,
E,
L,
j,
_ =
((e = (function () {
if (
"u" < typeof Reflect ||
!Reflect.construct ||
Reflect.construct.sham
)
return !1;
if ("function" == typeof Proxy) return !0;
try {
return (
Boolean.prototype.valueOf.call(
Reflect.construct(Boolean, [], function () {}),
),
!0
);
} catch (t) {
return !1;
}
})()),
function () {
var t,
r = nS(k);
return (
(t = e
? Reflect.construct(r, arguments, nS(this).constructor)
: r.apply(this, arguments)),
(function (t, e) {
if (e && ("object" === nE(e) || "function" == typeof e))
return e;
if (void 0 !== e)
throw TypeError(
"Derived constructors may only return object or undefined",
);
return nP(t);
})(this, t)
);
});
function k() {
var t, e, r, n, o;
if (!(this instanceof k))
throw TypeError("Cannot call a class as a function");
for (var i = arguments.length, a = Array(i), u = 0; u < i; u++)
a[u] = arguments[u];
return (
(r = nP((t = _.call.apply(_, [this].concat(a))))),
(n = "getModelInfo"),
(e = n_(
nL().mark(function e(r) {
var n;
return nL().wrap(
function (e) {
for (;;)
switch ((e.prev = e.next)) {
case 0:
return (
(e.prev = 0),
(e.next = 3),
t.apiClient.post(
"/model-version/modelVersion/listByUuids",
{ versionUuids: r },
)
);
case 3:
return (n = e.sent.data), e.abrupt("return", n);
case 8:
return (
(e.prev = 8),
(e.t0 = e.catch(0)),
e.abrupt("return", !1)
);
case 11:
case "end":
return e.stop();
}
},
e,
null,
[[0, 8]],
);
}),
)),
(o = function (t) {
return e.apply(this, arguments);
}),
(n = nT(n)) in r
? Object.defineProperty(r, n, {
value: o,
enumerable: !0,
configurable: !0,
writable: !0,
})
: (r[n] = o),
t
);
}
return (
(j = [
{
key: "getSDModelList",
value:
((r = n_(
nL().mark(function t(e) {
var r;
return nL().wrap(
function (t) {
for (;;)
switch ((t.prev = t.next)) {
case 0:
return (
(t.next = 2),
this.apiClient.post(
"/model-version/modelVersion/listByIds",
e,
)
);
case 2:
return (r = t.sent), t.abrupt("return", r);
case 4:
case "end":
return t.stop();
}
},
t,
this,
);
}),
)),
function (t) {
return r.apply(this, arguments);
}),
},
{
key: "getRealDownloadURL",
value:
((n = n_(
nL().mark(function t(e) {
var r;
return nL().wrap(
function (t) {
for (;;)
switch ((t.prev = t.next)) {
case 0:
return (t.next = 2), this.apiClient.get(e);
case 2:
return (r = t.sent), t.abrupt("return", r);
case 4:
case "end":
return t.stop();
}
},
t,
this,
);
}),
)),
function (t) {
return n.apply(this, arguments);
}),
},
{
key: "checkEmbeddingWord",
value:
((o = n_(
nL().mark(function t(e) {
var r;
return nL().wrap(
function (t) {
for (;;)
switch ((t.prev = t.next)) {
case 0:
return (
(t.next = 2),
this.apiClient.post(
"/model/check-embedding-word",
e,
)
);
case 2:
return (r = t.sent), t.abrupt("return", r);
case 4:
case "end":
return t.stop();
}
},
t,
this,
);
}),
)),
function (t) {
return o.apply(this, arguments);
}),
},
{
key: "getMyModelInfo",
value:
((i = n_(
nL().mark(function t(e, r) {
var n;
return nL().wrap(
function (t) {
for (;;)
switch ((t.prev = t.next)) {
case 0:
return (
(t.next = 2),
this.apiClient.post(
"/model/getMyModel/".concat(e),
)
);
case 2:
return (
(n = t.sent),
t.abrupt(
"return",
n.data ? (r ? n.data : nm(n.data)) : null,
)
);
case 4:
case "end":
return t.stop();
}
},
t,
this,
);
}),
)),
function (t, e) {
return i.apply(this, arguments);
}),
},
{
key: "getModelInfoByUuid",
value:
((a = n_(
nL().mark(function t(e) {
var r,
n,
o,
i,
a = arguments;
return nL().wrap(
function (t) {
for (;;)
switch ((t.prev = t.next)) {
case 0:
return (
(r = a.length > 1 && void 0 !== a[1] && a[1]),
(n = a.length > 2 ? a[2] : void 0),
(o = r
? "/model/getMyModel/".concat(e)
: "/model/getByUuid/".concat(e)),
(t.next = 5),
this.apiClient.post(
o,
n ? { headers: { token: n } } : {},
)
);
case 5:
return (
(i = t.sent),
t.abrupt("return", i.data ? nm(i.data) : null)
);
case 7:
case "end":
return t.stop();
}
},
t,
this,
);
}),
)),
function (t) {
return a.apply(this, arguments);
}),
},
{
key: "getFileHash",
value:
((u = n_(
nL().mark(function t(e, r) {
var n, o;
return nL().wrap(
function (t) {
for (;;)
switch ((t.prev = t.next)) {
case 0:
return (
(n = { modelSourceHash: e }),
r && (n.modelUuid = r),
(t.next = 4),
this.apiClient.post("/model/hash/verify", n)
);
case 4:
return (
(o = t.sent),
t.abrupt("return", o.data ? o.data : null)
);
case 6:
case "end":
return t.stop();
}
},
t,
this,
);
}),
)),
function (t, e) {
return u.apply(this, arguments);
}),
},
{
key: "getModelInfoByHash",
value:
((c = n_(
nL().mark(function t(e) {
var r;
return nL().wrap(
function (t) {
for (;;)
switch ((t.prev = t.next)) {
case 0:
return (
(t.next = 2),
this.apiClient.get(
"/model-version/hash/".concat(e),
)
);
case 2:
return (
(r = t.sent),
t.abrupt("return", r.data ? r.data : null)
);
case 4:
case "end":
return t.stop();
}
},
t,
this,
);
}),
)),
function (t) {
return c.apply(this, arguments);
}),
},
{
key: "checkDownloadModel",
value:
((s = n_(
nL().mark(function t(e) {
var r;
return nL().wrap(
function (t) {
for (;;)
switch ((t.prev = t.next)) {
case 0:
return (
(t.next = 2),
this.apiClient.post(
"/community/downloadCheck",
e,
)
);
case 2:
return (r = t.sent), t.abrupt("return", !!r.data);
case 4:
case "end":
return t.stop();
}
},
t,
this,
);
}),
)),
function (t) {
return s.apply(this, arguments);
}),
},
{
key: "deleteModel",
value:
((l = n_(
nL().mark(function t(e) {
return nL().wrap(
function (t) {
for (;;)
switch ((t.prev = t.next)) {
case 0:
return (
(t.next = 2),
this.apiClient.post("/model/delete/".concat(e))
);
case 2:
return t.abrupt("return", t.sent);
case 3:
case "end":
return t.stop();
}
},
t,
this,
);
}),
)),
function (t) {
return l.apply(this, arguments);
}),
},
{
key: "getSubscribeList",
value:
((f = n_(
nL().mark(function t(e) {
var r;
return nL().wrap(
function (t) {
for (;;)
switch ((t.prev = t.next)) {
case 0:
return (
(t.next = 2),
this.apiClient.post(
"/model/model-version/".concat(
e.teamId ? "team/" : "",
"subscribe/list",
),
e,
)
);
case 2:
return (
(r = t.sent),
t.abrupt("return", r.data ? r.data : [])
);
case 4:
case "end":
return t.stop();
}
},
t,
this,
);
}),
)),
function (t) {
return f.apply(this, arguments);
}),
},
{
key: "postModelUnsubcrible",
value:
((p = n_(
nL().mark(function t(e) {
var r;
return nL().wrap(
function (t) {
for (;;)
switch ((t.prev = t.next)) {
case 0:
return (
(t.next = 2),
this.apiClient.post(
"/model/model-version/".concat(
e.teamId ? "team/" : "",
"unsubscribe",
),
e,
)
);
case 2:
return (r = t.sent), t.abrupt("return", !!r.data);
case 4:
case "end":
return t.stop();
}
},
t,
this,
);
}),
)),
function (t) {
return p.apply(this, arguments);
}),
},
{
key: "postModelSubcrible",
value:
((h = n_(
nL().mark(function t(e) {
var r;
return nL().wrap(
function (t) {
for (;;)
switch ((t.prev = t.next)) {
case 0:
return (
(t.next = 2),
this.apiClient.post(
"/model/model-version/".concat(
e.teamId ? "team/" : "",
"subscribe",
),
e,
)
);
case 2:
return (r = t.sent), t.abrupt("return", !!r.data);
case 4:
case "end":
return t.stop();
}
},
t,
this,
);
}),
)),
function (t) {
return h.apply(this, arguments);
}),
},
{
key: "postModalSetTop",
value:
((y = n_(
nL().mark(function t(e) {
var r;
return nL().wrap(
function (t) {
for (;;)
switch ((t.prev = t.next)) {
case 0:
return (
(t.prev = 0),
(t.next = 3),
this.apiClient.post("/model/setTop", e)
);
case 3:
return (
(r = t.sent), t.abrupt("return", 0 === r.code)
);
case 7:
return (
(t.prev = 7),
(t.t0 = t.catch(0)),
t.abrupt("return", !1)
);
case 10:
case "end":
return t.stop();
}
},
t,
this,
[[0, 7]],
);
}),
)),
function (t) {
return y.apply(this, arguments);
}),
},
{
key: "postImgSetTop",
value:
((v = n_(
nL().mark(function t(e) {
var r;
return nL().wrap(
function (t) {
for (;;)
switch ((t.prev = t.next)) {
case 0:
return (
(t.prev = 0),
(t.next = 3),
this.apiClient.post("/img/setTop", e)
);
case 3:
return (
(r = t.sent), t.abrupt("return", 0 === r.code)
);
case 7:
return (
(t.prev = 7),
(t.t0 = t.catch(0)),
t.abrupt("return", !1)
);
case 10:
case "end":
return t.stop();
}
},
t,
this,
[[0, 7]],
);
}),
)),
function (t) {
return v.apply(this, arguments);
}),
},
{
key: "getReturnPicList",
value:
((d = n_(
nL().mark(function t(e) {
var r;
return nL().wrap(
function (t) {
for (;;)
switch ((t.prev = t.next)) {
case 0:
return (
(t.next = 2),
this.apiClient.post(
"/community/returnPicList",
e,
)
);
case 2:
return (
(r = nO(t.sent.data)), t.abrupt("return", r)
);
case 5:
case "end":
return t.stop();
}
},
t,
this,
);
}),
)),
function (t) {
return d.apply(this, arguments);
}),
},
{
key: "getModelAuthor",
value:
((g = n_(
nL().mark(function t(e) {
var r;
return nL().wrap(
function (t) {
for (;;)
switch ((t.prev = t.next)) {
case 0:
return (
(t.next = 2),
this.apiClient.post("/model/author/".concat(e))
);
case 2:
return (r = t.sent), t.abrupt("return", r.data);
case 4:
case "end":
return t.stop();
}
},
t,
this,
);
}),
)),
function (t) {
return g.apply(this, arguments);
}),
},
{
key: "postToggleLike",
value:
((m = n_(
nL().mark(function t(e) {
var r;
return nL().wrap(
function (t) {
for (;;)
switch ((t.prev = t.next)) {
case 0:
return (
(t.next = 2),
this.apiClient.post("/community/userLike", e)
);
case 2:
return (r = t.sent), t.abrupt("return", r);
case 4:
case "end":
return t.stop();
}
},
t,
this,
);
}),
)),
function (t) {
return m.apply(this, arguments);
}),
},
{
key: "setPicAsTop",
value:
((b = n_(
nL().mark(function t(e) {
var r;
return nL().wrap(
function (t) {
for (;;)
switch ((t.prev = t.next)) {
case 0:
return (
(t.next = 2),
this.apiClient.post(
"/community/returnPicTopping",
e,
)
);
case 2:
return (r = t.sent), t.abrupt("return", r);
case 4:
case "end":
return t.stop();
}
},
t,
this,
);
}),
)),
function (t) {
return b.apply(this, arguments);
}),
},
{
key: "getNoticeDetail",
value:
((w = n_(
nL().mark(function t(e) {
var r;
return nL().wrap(
function (t) {
for (;;)
switch ((t.prev = t.next)) {
case 0:
return (
(t.next = 2),
this.apiClient.post(
"/community/notice/getDetail",
e,
)
);
case 2:
return (r = t.sent), t.abrupt("return", r.data);
case 4:
case "end":
return t.stop();
}
},
t,
this,
);
}),
)),
function (t) {
return w.apply(this, arguments);
}),
},
{
key: "saveNotice",
value:
((x = n_(
nL().mark(function t(e) {
var r;
return nL().wrap(
function (t) {
for (;;)
switch ((t.prev = t.next)) {
case 0:
return (
(t.next = 2),
this.apiClient.post("/community/notice/save", e)
);
case 2:
return (r = t.sent), t.abrupt("return", r);
case 4:
case "end":
return t.stop();
}
},
t,
this,
);
}),
)),
function (t) {
return x.apply(this, arguments);
}),
},
{
key: "deleteNotice",
value:
((O = n_(
nL().mark(function t(e) {
var r;
return nL().wrap(
function (t) {
for (;;)
switch ((t.prev = t.next)) {
case 0:
return (
(t.next = 2),
this.apiClient.post(
"/community/notice/delete",
e,
)
);
case 2:
return (r = t.sent), t.abrupt("return", r);
case 4:
case "end":
return t.stop();
}
},
t,
this,
);
}),
)),
function (t) {
return O.apply(this, arguments);
}),
},
{
key: "getVersionCount",
value:
((E = n_(
nL().mark(function t(e) {
var r;
return nL().wrap(
function (t) {
for (;;)
switch ((t.prev = t.next)) {
case 0:
return (
(t.next = 2),
this.apiClient.post(
"/model-payment/version/count",
e,
)
);
case 2:
return (r = t.sent), t.abrupt("return", r);
case 4:
case "end":
return t.stop();
}
},
t,
this,
);
}),
)),
function (t) {
return E.apply(this, arguments);
}),
},
{
key: "unsubscribeModel",
value:
((L = n_(
nL().mark(function t(e) {
var r;
return nL().wrap(
function (t) {
for (;;)
switch ((t.prev = t.next)) {
case 0:
return (
(t.next = 2),
this.apiClient.post(
"/comfy/tool/unsubscribe",
e,
)
);
case 2:
return (r = t.sent), t.abrupt("return", r);
case 4:
case "end":
return t.stop();
}
},
t,
this,
);
}),
)),
function (t) {
return L.apply(this, arguments);
}),
},
]),
(function (t, e) {
for (var r = 0; r < e.length; r++) {
var n = e[r];
(n.enumerable = n.enumerable || !1),
(n.configurable = !0),
"value" in n && (n.writable = !0),
Object.defineProperty(t, nT(n.key), n);
}
})(k.prototype, j),
Object.defineProperty(k, "prototype", { writable: !1 }),
k
);
})(eG);
function nN(t) {
return (nN =
"function" == typeof Symbol && "symbol" == typeof Symbol.iterator
? function (t) {
return typeof t;
}
: function (t) {
return t &&
"function" == typeof Symbol &&
t.constructor === Symbol &&
t !== Symbol.prototype
? "symbol"
: typeof t;
})(t);
}
function nU() {
nU = function () {
return e;
};
var t,
e = {},
r = Object.prototype,
n = r.hasOwnProperty,
o =
Object.defineProperty ||
function (t, e, r) {
t[e] = r.value;
},
i = "function" == typeof Symbol ? Symbol : {},
a = i.iterator || "@@iterator",
u = i.asyncIterator || "@@asyncIterator",
c = i.toStringTag || "@@toStringTag";
function s(t, e, r) {
return (
Object.defineProperty(t, e, {
value: r,
enumerable: !0,
configurable: !0,
writable: !0,
}),
t[e]
);
}
try {
s({}, "");
} catch (t) {
s = function (t, e, r) {
return (t[e] = r);
};
}
function l(e, r, n, i) {
var a,
u,
c,
s,
l = Object.create((r && r.prototype instanceof d ? r : d).prototype);
return (
o(l, "_invoke", {
value:
((a = e),
(u = n),
(c = new k(i || [])),
(s = p),
function (e, r) {
if (s === h) throw Error("Generator is already running");
if (s === y) {
if ("throw" === e) throw r;
return { value: t, done: !0 };
}
for (c.method = e, c.arg = r; ; ) {
var n = c.delegate;
if (n) {
var o = (function e(r, n) {
var o = n.method,
i = r.iterator[o];
if (i === t)
return (
(n.delegate = null),
("throw" === o &&
r.iterator.return &&
((n.method = "return"),
(n.arg = t),
e(r, n),
"throw" === n.method)) ||
("return" !== o &&
((n.method = "throw"),
(n.arg = TypeError(
"The iterator does not provide a '" +
o +
"' method",
)))),
v
);
var a = f(i, r.iterator, n.arg);
if ("throw" === a.type)
return (
(n.method = "throw"),
(n.arg = a.arg),
(n.delegate = null),
v
);
var u = a.arg;
return u
? u.done
? ((n[r.resultName] = u.value),
(n.next = r.nextLoc),
"return" !== n.method &&
((n.method = "next"), (n.arg = t)),
(n.delegate = null),
v)
: u
: ((n.method = "throw"),
(n.arg = TypeError(
"iterator result is not an object",
)),
(n.delegate = null),
v);
})(n, c);
if (o) {
if (o === v) continue;
return o;
}
}
if ("next" === c.method) c.sent = c._sent = c.arg;
else if ("throw" === c.method) {
if (s === p) throw ((s = y), c.arg);
c.dispatchException(c.arg);
} else "return" === c.method && c.abrupt("return", c.arg);
s = h;
var i = f(a, u, c);
if ("normal" === i.type) {
if (((s = c.done ? y : "suspendedYield"), i.arg === v))
continue;
return { value: i.arg, done: c.done };
}
"throw" === i.type &&
((s = y), (c.method = "throw"), (c.arg = i.arg));
}
}),
}),
l
);
}
function f(t, e, r) {
try {
return { type: "normal", arg: t.call(e, r) };
} catch (t) {
return { type: "throw", arg: t };
}
}
e.wrap = l;
var p = "suspendedStart",
h = "executing",
y = "completed",
v = {};
function d() {}
function g() {}
function m() {}
var b = {};
s(b, a, function () {
return this;
});
var w = Object.getPrototypeOf,
x = w && w(w(P([])));
x && x !== r && n.call(x, a) && (b = x);
var O = (m.prototype = d.prototype = Object.create(b));
function E(t) {
["next", "throw", "return"].forEach(function (e) {
s(t, e, function (t) {
return this._invoke(e, t);
});
});
}
function L(t, e) {
var r;
o(this, "_invoke", {
value: function (o, i) {
function a() {
return new e(function (r, a) {
!(function r(o, i, a, u) {
var c = f(t[o], t, i);
if ("throw" !== c.type) {
var s = c.arg,
l = s.value;
return l && "object" == nN(l) && n.call(l, "__await")
? e.resolve(l.__await).then(
function (t) {
r("next", t, a, u);
},
function (t) {
r("throw", t, a, u);
},
)
: e.resolve(l).then(
function (t) {
(s.value = t), a(s);
},
function (t) {
return r("throw", t, a, u);
},
);
}
u(c.arg);
})(o, i, r, a);
});
}
return (r = r ? r.then(a, a) : a());
},
});
}
function j(t) {
var e = { tryLoc: t[0] };
1 in t && (e.catchLoc = t[1]),
2 in t && ((e.finallyLoc = t[2]), (e.afterLoc = t[3])),
this.tryEntries.push(e);
}
function _(t) {
var e = t.completion || {};
(e.type = "normal"), delete e.arg, (t.completion = e);
}
function k(t) {
(this.tryEntries = [{ tryLoc: "root" }]),
t.forEach(j, this),
this.reset(!0);
}
function P(e) {
if (e || "" === e) {
var r = e[a];
if (r) return r.call(e);
if ("function" == typeof e.next) return e;
if (!isNaN(e.length)) {
var o = -1,
i = function r() {
for (; ++o < e.length; )
if (n.call(e, o)) return (r.value = e[o]), (r.done = !1), r;
return (r.value = t), (r.done = !0), r;
};
return (i.next = i);
}
}
throw TypeError(nN(e) + " is not iterable");
}
return (
(g.prototype = m),
o(O, "constructor", { value: m, configurable: !0 }),
o(m, "constructor", { value: g, configurable: !0 }),
(g.displayName = s(m, c, "GeneratorFunction")),
(e.isGeneratorFunction = function (t) {
var e = "function" == typeof t && t.constructor;
return (
!!e &&
(e === g || "GeneratorFunction" === (e.displayName || e.name))
);
}),
(e.mark = function (t) {
return (
Object.setPrototypeOf
? Object.setPrototypeOf(t, m)
: ((t.__proto__ = m), s(t, c, "GeneratorFunction")),
(t.prototype = Object.create(O)),
t
);
}),
(e.awrap = function (t) {
return { __await: t };
}),
E(L.prototype),
s(L.prototype, u, function () {
return this;
}),
(e.AsyncIterator = L),
(e.async = function (t, r, n, o, i) {
void 0 === i && (i = Promise);
var a = new L(l(t, r, n, o), i);
return e.isGeneratorFunction(r)
? a
: a.next().then(function (t) {
return t.done ? t.value : a.next();
});
}),
E(O),
s(O, c, "Generator"),
s(O, a, function () {
return this;
}),
s(O, "toString", function () {
return "[object Generator]";
}),
(e.keys = function (t) {
var e = Object(t),
r = [];
for (var n in e) r.push(n);
return (
r.reverse(),
function t() {
for (; r.length; ) {
var n = r.pop();
if (n in e) return (t.value = n), (t.done = !1), t;
}
return (t.done = !0), t;
}
);
}),
(e.values = P),
(k.prototype = {
constructor: k,
reset: function (e) {
if (
((this.prev = 0),
(this.next = 0),
(this.sent = this._sent = t),
(this.done = !1),
(this.delegate = null),
(this.method = "next"),
(this.arg = t),
this.tryEntries.forEach(_),
!e)
)
for (var r in this)
"t" === r.charAt(0) &&
n.call(this, r) &&
!isNaN(+r.slice(1)) &&
(this[r] = t);
},
stop: function () {
this.done = !0;
var t = this.tryEntries[0].completion;
if ("throw" === t.type) throw t.arg;
return this.rval;
},
dispatchException: function (e) {
if (this.done) throw e;
var r = this;
function o(n, o) {
return (
(u.type = "throw"),
(u.arg = e),
(r.next = n),
o && ((r.method = "next"), (r.arg = t)),
!!o
);
}
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
var a = this.tryEntries[i],
u = a.completion;
if ("root" === a.tryLoc) return o("end");
if (a.tryLoc <= this.prev) {
var c = n.call(a, "catchLoc"),
s = n.call(a, "finallyLoc");
if (c && s) {
if (this.prev < a.catchLoc) return o(a.catchLoc, !0);
if (this.prev < a.finallyLoc) return o(a.finallyLoc);
} else if (c) {
if (this.prev < a.catchLoc) return o(a.catchLoc, !0);
} else {
if (!s) throw Error("try statement without catch or finally");
if (this.prev < a.finallyLoc) return o(a.finallyLoc);
}
}
}
},
abrupt: function (t, e) {
for (var r = this.tryEntries.length - 1; r >= 0; --r) {
var o = this.tryEntries[r];
if (
o.tryLoc <= this.prev &&
n.call(o, "finallyLoc") &&
this.prev < o.finallyLoc
) {
var i = o;
break;
}
}
i &&
("break" === t || "continue" === t) &&
i.tryLoc <= e &&
e <= i.finallyLoc &&
(i = null);
var a = i ? i.completion : {};
return (
(a.type = t),
(a.arg = e),
i
? ((this.method = "next"), (this.next = i.finallyLoc), v)
: this.complete(a)
);
},
complete: function (t, e) {
if ("throw" === t.type) throw t.arg;
return (
"break" === t.type || "continue" === t.type
? (this.next = t.arg)
: "return" === t.type
? ((this.rval = this.arg = t.arg),
(this.method = "return"),
(this.next = "end"))
: "normal" === t.type && e && (this.next = e),
v
);
},
finish: function (t) {
for (var e = this.tryEntries.length - 1; e >= 0; --e) {
var r = this.tryEntries[e];
if (r.finallyLoc === t)
return this.complete(r.completion, r.afterLoc), _(r), v;
}
},
catch: function (t) {
for (var e = this.tryEntries.length - 1; e >= 0; --e) {
var r = this.tryEntries[e];
if (r.tryLoc === t) {
var n = r.completion;
if ("throw" === n.type) {
var o = n.arg;
_(r);
}
return o;
}
}
throw Error("illegal catch attempt");
},
delegateYield: function (e, r, n) {
return (
(this.delegate = { iterator: P(e), resultName: r, nextLoc: n }),
"next" === this.method && (this.arg = t),
v
);
},
}),
e
);
}
function nA(t, e, r, n, o, i, a) {
try {
var u = t[i](a),
c = u.value;
} catch (t) {
r(t);
return;
}
u.done ? e(c) : Promise.resolve(c).then(n, o);
}
function nI(t) {
return function () {
var e = this,
r = arguments;
return new Promise(function (n, o) {
var i = t.apply(e, r);
function a(t) {
nA(i, n, o, a, u, "next", t);
}
function u(t) {
nA(i, n, o, a, u, "throw", t);
}
a(void 0);
});
};
}
t.s(["ModelInfoService", () => nR, "SubscribeType", () => nC], 952311);
function nF(t, e) {
return (nF = Object.setPrototypeOf
? Object.setPrototypeOf.bind()
: function (t, e) {
return (t.__proto__ = e), t;
})(t, e);
}
function nG(t) {
return (nG = Object.setPrototypeOf
? Object.getPrototypeOf.bind()
: function (t) {
return t.__proto__ || Object.getPrototypeOf(t);
})(t);
}
var nD = (function (t) {
if ("function" != typeof t && null !== t)
throw TypeError("Super expression must either be null or a function");
(u.prototype = Object.create(t && t.prototype, {
constructor: { value: u, writable: !0, configurable: !0 },
})),
Object.defineProperty(u, "prototype", { writable: !1 }),
t && nF(u, t);
var e,
r,
n,
o,
i,
a =
((e = (function () {
if (
"u" < typeof Reflect ||
!Reflect.construct ||
Reflect.construct.sham
)
return !1;
if ("function" == typeof Proxy) return !0;
try {
return (
Boolean.prototype.valueOf.call(
Reflect.construct(Boolean, [], function () {}),
),
!0
);
} catch (t) {
return !1;
}
})()),
function () {
var t,
r = nG(u);
return (
(t = e
? Reflect.construct(r, arguments, nG(this).constructor)
: r.apply(this, arguments)),
(function (t, e) {
if (e && ("object" === nN(e) || "function" == typeof e))
return e;
if (void 0 !== e)
throw TypeError(
"Derived constructors may only return object or undefined",
);
var r = t;
if (void 0 === r)
throw ReferenceError(
"this hasn't been initialised - super() hasn't been called",
);
return r;
})(this, t)
);
});
function u() {
if (!(this instanceof u))
throw TypeError("Cannot call a class as a function");
return a.apply(this, arguments);
}
return (
(i = [
{
key: "getFeedbackCauseList",
value:
((r = nI(
nU().mark(function t(e) {
var r;
return nU().wrap(
function (t) {
for (;;)
switch ((t.prev = t.next)) {
case 0:
return (
(t.next = 2),
this.apiClient.post(
"/community/feedback/cause/list",
{ type: e },
)
);
case 2:
return (
(r = t.sent),
t.abrupt("return", r.data ? r.data.cause : [])
);
case 4:
case "end":
return t.stop();
}
},
t,
this,
);
}),
)),
function (t) {
return r.apply(this, arguments);
}),
},
{
key: "postFeedback",
value:
((n = nI(
nU().mark(function t(e) {
return nU().wrap(
function (t) {
for (;;)
switch ((t.prev = t.next)) {
case 0:
return (
(t.next = 2),
this.apiClient.post("/community/feedback", e)
);
case 2:
case "end":
return t.stop();
}
},
t,
this,
);
}),
)),
function (t) {
return n.apply(this, arguments);
}),
},
{
key: "newPostFeedback",
value:
((o = nI(
nU().mark(function t(e) {
return nU().wrap(
function (t) {
for (;;)
switch ((t.prev = t.next)) {
case 0:
return (
(t.next = 2),
this.apiClient.post(
"community/feedback/toModel/report",
e,
)
);
case 2:
case "end":
return t.stop();
}
},
t,
this,
);
}),
)),
function (t) {
return o.apply(this, arguments);
}),
},
]),
(function (t, e) {
for (var r = 0; r < e.length; r++) {
var n = e[r];
(n.enumerable = n.enumerable || !1),
(n.configurable = !0),
"value" in n && (n.writable = !0),
Object.defineProperty(
t,
(function (t) {
var e = (function (t, e) {
if ("object" != nN(t) || !t) return t;
var r = t[Symbol.toPrimitive];
if (void 0 !== r) {
var n = r.call(t, e || "default");
if ("object" != nN(n)) return n;
throw TypeError(
"@@toPrimitive must return a primitive value.",
);
}
return ("string" === e ? String : Number)(t);
})(t, "string");
return "symbol" == nN(e) ? e : String(e);
})(n.key),
n,
);
}
})(u.prototype, i),
Object.defineProperty(u, "prototype", { writable: !1 }),
u
);
})(eG);
t.s(["FeedbackService", () => nD], 438683);
var nB =
(((v = {})[(v.model = 0)] = "model"),
(v[(v.pictrue = 1)] = "pictrue"),
v),
nM =
(((d = {})[(d.hotest = 0)] = "hotest"),
(d[(d.latest = 1)] = "latest"),
d),
nq = function (t) {
return {
commentList: [],
total: 0,
pageSize: t.size,
page: t.current,
commentCount: 0,
};
};
function nV(t) {
return (nV =
"function" == typeof Symbol && "symbol" == typeof Symbol.iterator
? function (t) {
return typeof t;
}
: function (t) {
return t &&
"function" == typeof Symbol &&
t.constructor === Symbol &&
t !== Symbol.prototype
? "symbol"
: typeof t;
})(t);
}
function nH() {
nH = function () {
return e;
};
var t,
e = {},
r = Object.prototype,
n = r.hasOwnProperty,
o =
Object.defineProperty ||
function (t, e, r) {
t[e] = r.value;
},
i = "function" == typeof Symbol ? Symbol : {},
a = i.iterator || "@@iterator",
u = i.asyncIterator || "@@asyncIterator",
c = i.toStringTag || "@@toStringTag";
function s(t, e, r) {
return (
Object.defineProperty(t, e, {
value: r,
enumerable: !0,
configurable: !0,
writable: !0,
}),
t[e]
);
}
try {
s({}, "");
} catch (t) {
s = function (t, e, r) {
return (t[e] = r);
};
}
function l(e, r, n, i) {
var a,
u,
c,
s,
l = Object.create((r && r.prototype instanceof d ? r : d).prototype);
return (
o(l, "_invoke", {
value:
((a = e),
(u = n),
(c = new k(i || [])),
(s = p),
function (e, r) {
if (s === h) throw Error("Generator is already running");
if (s === y) {
if ("throw" === e) throw r;
return { value: t, done: !0 };
}
for (c.method = e, c.arg = r; ; ) {
var n = c.delegate;
if (n) {
var o = (function e(r, n) {
var o = n.method,
i = r.iterator[o];
if (i === t)
return (
(n.delegate = null),
("throw" === o &&
r.iterator.return &&
((n.method = "return"),
(n.arg = t),
e(r, n),
"throw" === n.method)) ||
("return" !== o &&
((n.method = "throw"),
(n.arg = TypeError(
"The iterator does not provide a '" +
o +
"' method",
)))),
v
);
var a = f(i, r.iterator, n.arg);
if ("throw" === a.type)
return (
(n.method = "throw"),
(n.arg = a.arg),
(n.delegate = null),
v
);
var u = a.arg;
return u
? u.done
? ((n[r.resultName] = u.value),
(n.next = r.nextLoc),
"return" !== n.method &&
((n.method = "next"), (n.arg = t)),
(n.delegate = null),
v)
: u
: ((n.method = "throw"),
(n.arg = TypeError(
"iterator result is not an object",
)),
(n.delegate = null),
v);
})(n, c);
if (o) {
if (o === v) continue;
return o;
}
}
if ("next" === c.method) c.sent = c._sent = c.arg;
else if ("throw" === c.method) {
if (s === p) throw ((s = y), c.arg);
c.dispatchException(c.arg);
} else "return" === c.method && c.abrupt("return", c.arg);
s = h;
var i = f(a, u, c);
if ("normal" === i.type) {
if (((s = c.done ? y : "suspendedYield"), i.arg === v))
continue;
return { value: i.arg, done: c.done };
}
"throw" === i.type &&
((s = y), (c.method = "throw"), (c.arg = i.arg));
}
}),
}),
l
);
}
function f(t, e, r) {
try {
return { type: "normal", arg: t.call(e, r) };
} catch (t) {
return { type: "throw", arg: t };
}
}
e.wrap = l;
var p = "suspendedStart",
h = "executing",
y = "completed",
v = {};
function d() {}
function g() {}
function m() {}
var b = {};
s(b, a, function () {
return this;
});
var w = Object.getPrototypeOf,
x = w && w(w(P([])));
x && x !== r && n.call(x, a) && (b = x);
var O = (m.prototype = d.prototype = Object.create(b));
function E(t) {
["next", "throw", "return"].forEach(function (e) {
s(t, e, function (t) {
return this._invoke(e, t);
});
});
}
function L(t, e) {
var r;
o(this, "_invoke", {
value: function (o, i) {
function a() {
return new e(function (r, a) {
!(function r(o, i, a, u) {
var c = f(t[o], t, i);
if ("throw" !== c.type) {
var s = c.arg,
l = s.value;
return l && "object" == nV(l) && n.call(l, "__await")
? e.resolve(l.__await).then(
function (t) {
r("next", t, a, u);
},
function (t) {
r("throw", t, a, u);
},
)
: e.resolve(l).then(
function (t) {
(s.value = t), a(s);
},
function (t) {
return r("throw", t, a, u);
},
);
}
u(c.arg);
})(o, i, r, a);
});
}
return (r = r ? r.then(a, a) : a());
},
});
}
function j(t) {
var e = { tryLoc: t[0] };
1 in t && (e.catchLoc = t[1]),
2 in t && ((e.finallyLoc = t[2]), (e.afterLoc = t[3])),
this.tryEntries.push(e);
}
function _(t) {
var e = t.completion || {};
(e.type = "normal"), delete e.arg, (t.completion = e);
}
function k(t) {
(this.tryEntries = [{ tryLoc: "root" }]),
t.forEach(j, this),
this.reset(!0);
}
function P(e) {
if (e || "" === e) {
var r = e[a];
if (r) return r.call(e);
if ("function" == typeof e.next) return e;
if (!isNaN(e.length)) {
var o = -1,
i = function r() {
for (; ++o < e.length; )
if (n.call(e, o)) return (r.value = e[o]), (r.done = !1), r;
return (r.value = t), (r.done = !0), r;
};
return (i.next = i);
}
}
throw TypeError(nV(e) + " is not iterable");
}
return (
(g.prototype = m),
o(O, "constructor", { value: m, configurable: !0 }),
o(m, "constructor", { value: g, configurable: !0 }),
(g.displayName = s(m, c, "GeneratorFunction")),
(e.isGeneratorFunction = function (t) {
var e = "function" == typeof t && t.constructor;
return (
!!e &&
(e === g || "GeneratorFunction" === (e.displayName || e.name))
);
}),
(e.mark = function (t) {
return (
Object.setPrototypeOf
? Object.setPrototypeOf(t, m)
: ((t.__proto__ = m), s(t, c, "GeneratorFunction")),
(t.prototype = Object.create(O)),
t
);
}),
(e.awrap = function (t) {
return { __await: t };
}),
E(L.prototype),
s(L.prototype, u, function () {
return this;
}),
(e.AsyncIterator = L),
(e.async = function (t, r, n, o, i) {
void 0 === i && (i = Promise);
var a = new L(l(t, r, n, o), i);
return e.isGeneratorFunction(r)
? a
: a.next().then(function (t) {
return t.done ? t.value : a.next();
});
}),
E(O),
s(O, c, "Generator"),
s(O, a, function () {
return this;
}),
s(O, "toString", function () {
return "[object Generator]";
}),
(e.keys = function (t) {
var e = Object(t),
r = [];
for (var n in e) r.push(n);
return (
r.reverse(),
function t() {
for (; r.length; ) {
var n = r.pop();
if (n in e) return (t.value = n), (t.done = !1), t;
}
return (t.done = !0), t;
}
);
}),
(e.values = P),
(k.prototype = {
constructor: k,
reset: function (e) {
if (
((this.prev = 0),
(this.next = 0),
(this.sent = this._sent = t),
(this.done = !1),
(this.delegate = null),
(this.method = "next"),
(this.arg = t),
this.tryEntries.forEach(_),
!e)
)
for (var r in this)
"t" === r.charAt(0) &&
n.call(this, r) &&
!isNaN(+r.slice(1)) &&
(this[r] = t);
},
stop: function () {
this.done = !0;
var t = this.tryEntries[0].completion;
if ("throw" === t.type) throw t.arg;
return this.rval;
},
dispatchException: function (e) {
if (this.done) throw e;
var r = this;
function o(n, o) {
return (
(u.type = "throw"),
(u.arg = e),
(r.next = n),
o && ((r.method = "next"), (r.arg = t)),
!!o
);
}
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
var a = this.tryEntries[i],
u = a.completion;
if ("root" === a.tryLoc) return o("end");
if (a.tryLoc <= this.prev) {
var c = n.call(a, "catchLoc"),
s = n.call(a, "finallyLoc");
if (c && s) {
if (this.prev < a.catchLoc) return o(a.catchLoc, !0);
if (this.prev < a.finallyLoc) return o(a.finallyLoc);
} else if (c) {
if (this.prev < a.catchLoc) return o(a.catchLoc, !0);
} else {
if (!s) throw Error("try statement without catch or finally");
if (this.prev < a.finallyLoc) return o(a.finallyLoc);
}
}
}
},
abrupt: function (t, e) {
for (var r = this.tryEntries.length - 1; r >= 0; --r) {
var o = this.tryEntries[r];
if (
o.tryLoc <= this.prev &&
n.call(o, "finallyLoc") &&
this.prev < o.finallyLoc
) {
var i = o;
break;
}
}
i &&
("break" === t || "continue" === t) &&
i.tryLoc <= e &&
e <= i.finallyLoc &&
(i = null);
var a = i ? i.completion : {};
return (
(a.type = t),
(a.arg = e),
i
? ((this.method = "next"), (this.next = i.finallyLoc), v)
: this.complete(a)
);
},
complete: function (t, e) {
if ("throw" === t.type) throw t.arg;
return (
"break" === t.type || "continue" === t.type
? (this.next = t.arg)
: "return" === t.type
? ((this.rval = this.arg = t.arg),
(this.method = "return"),
(this.next = "end"))
: "normal" === t.type && e && (this.next = e),
v
);
},
finish: function (t) {
for (var e = this.tryEntries.length - 1; e >= 0; --e) {
var r = this.tryEntries[e];
if (r.finallyLoc === t)
return this.complete(r.completion, r.afterLoc), _(r), v;
}
},
catch: function (t) {
for (var e = this.tryEntries.length - 1; e >= 0; --e) {
var r = this.tryEntries[e];
if (r.tryLoc === t) {
var n = r.completion;
if ("throw" === n.type) {
var o = n.arg;
_(r);
}
return o;
}
}
throw Error("illegal catch attempt");
},
delegateYield: function (e, r, n) {
return (
(this.delegate = { iterator: P(e), resultName: r, nextLoc: n }),
"next" === this.method && (this.arg = t),
v
);
},
}),
e
);
}
function nW(t, e, r, n, o, i, a) {
try {
var u = t[i](a),
c = u.value;
} catch (t) {
r(t);
return;
}
u.done ? e(c) : Promise.resolve(c).then(n, o);
}
function nY(t) {
return function () {
var e = this,
r = arguments;
return new Promise(function (n, o) {
var i = t.apply(e, r);
function a(t) {
nW(i, n, o, a, u, "next", t);
}
function u(t) {
nW(i, n, o, a, u, "throw", t);
}
a(void 0);
});
};
}
t.s(
[
"CommentType",
() => nB,
"SortType",
() => nM,
"createEmpytPaginationComment",
() => nq,
],
847160,
),
t.s([], 165549);
function nz(t, e) {
return (nz = Object.setPrototypeOf
? Object.setPrototypeOf.bind()
: function (t, e) {
return (t.__proto__ = e), t;
})(t, e);
}
function nK(t) {
return (nK = Object.setPrototypeOf
? Object.getPrototypeOf.bind()
: function (t) {
return t.__proto__ || Object.getPrototypeOf(t);
})(t);
}
var n$ = (function (t) {
if ("function" != typeof t && null !== t)
throw TypeError("Super expression must either be null or a function");
(u.prototype = Object.create(t && t.prototype, {
constructor: { value: u, writable: !0, configurable: !0 },
})),
Object.defineProperty(u, "prototype", { writable: !1 }),
t && nz(u, t);
var e,
r,
n,
o,
i,
a =
((e = (function () {
if (
"u" < typeof Reflect ||
!Reflect.construct ||
Reflect.construct.sham
)
return !1;
if ("function" == typeof Proxy) return !0;
try {
return (
Boolean.prototype.valueOf.call(
Reflect.construct(Boolean, [], function () {}),
),
!0
);
} catch (t) {
return !1;
}
})()),
function () {
var t,
r = nK(u);
return (
(t = e
? Reflect.construct(r, arguments, nK(this).constructor)
: r.apply(this, arguments)),
(function (t, e) {
if (e && ("object" === nV(e) || "function" == typeof e))
return e;
if (void 0 !== e)
throw TypeError(
"Derived constructors may only return object or undefined",
);
var r = t;
if (void 0 === r)
throw ReferenceError(
"this hasn't been initialised - super() hasn't been called",
);
return r;
})(this, t)
);
});
function u() {
if (!(this instanceof u))
throw TypeError("Cannot call a class as a function");
return a.apply(this, arguments);
}
return (
(i = [
{
key: "postComment",
value:
((r = nY(
nH().mark(function t(e) {
var r;
return nH().wrap(
function (t) {
for (;;)
switch ((t.prev = t.next)) {
case 0:
return (
(t.next = 2),
this.apiClient.post("/community/comment", e)
);
case 2:
return (r = t.sent), t.abrupt("return", r);
case 4:
case "end":
return t.stop();
}
},
t,
this,
);
}),
)),
function (t) {
return r.apply(this, arguments);
}),
},
{
key: "getCommentList",
value:
((n = nY(
nH().mark(function t(e) {
var r, n;
return nH().wrap(
function (t) {
for (;;)
switch ((t.prev = t.next)) {
case 0:
return (
(t.next = 2),
this.apiClient.post("/community/commentList", e)
);
case 2:
return (
(n = null === (r = t.sent).data ? nq(e) : r.data),
t.abrupt("return", n)
);
case 5:
case "end":
return t.stop();
}
},
t,
this,
);
}),
)),
function (t) {
return n.apply(this, arguments);
}),
},
{
key: "setCommentTop",
value:
((o = nY(
nH().mark(function t(e) {
var r;
return nH().wrap(
function (t) {
for (;;)
switch ((t.prev = t.next)) {
case 0:
return (
(t.next = 2),
this.apiClient.post(
"/community/commentTopping",
e,
)
);
case 2:
return (r = t.sent), t.abrupt("return", r);
case 4:
case "end":
return t.stop();
}
},
t,
this,
);
}),
)),
function (t) {
return o.apply(this, arguments);
}),
},
]),
(function (t, e) {
for (var r = 0; r < e.length; r++) {
var n = e[r];
(n.enumerable = n.enumerable || !1),
(n.configurable = !0),
"value" in n && (n.writable = !0),
Object.defineProperty(
t,
(function (t) {
var e = (function (t, e) {
if ("object" != nV(t) || !t) return t;
var r = t[Symbol.toPrimitive];
if (void 0 !== r) {
var n = r.call(t, e || "default");
if ("object" != nV(n)) return n;
throw TypeError(
"@@toPrimitive must return a primitive value.",
);
}
return ("string" === e ? String : Number)(t);
})(t, "string");
return "symbol" == nV(e) ? e : String(e);
})(n.key),
n,
);
}
})(u.prototype, i),
Object.defineProperty(u, "prototype", { writable: !1 }),
u
);
})(eG);
function nJ(t) {
return (nJ =
"function" == typeof Symbol && "symbol" == typeof Symbol.iterator
? function (t) {
return typeof t;
}
: function (t) {
return t &&
"function" == typeof Symbol &&
t.constructor === Symbol &&
t !== Symbol.prototype
? "symbol"
: typeof t;
})(t);
}
function nQ() {
nQ = function () {
return e;
};
var t,
e = {},
r = Object.prototype,
n = r.hasOwnProperty,
o =
Object.defineProperty ||
function (t, e, r) {
t[e] = r.value;
},
i = "function" == typeof Symbol ? Symbol : {},
a = i.iterator || "@@iterator",
u = i.asyncIterator || "@@asyncIterator",
c = i.toStringTag || "@@toStringTag";
function s(t, e, r) {
return (
Object.defineProperty(t, e, {
value: r,
enumerable: !0,
configurable: !0,
writable: !0,
}),
t[e]
);
}
try {
s({}, "");
} catch (t) {
s = function (t, e, r) {
return (t[e] = r);
};
}
function l(e, r, n, i) {
var a,
u,
c,
s,
l = Object.create((r && r.prototype instanceof d ? r : d).prototype);
return (
o(l, "_invoke", {
value:
((a = e),
(u = n),
(c = new k(i || [])),
(s = p),
function (e, r) {
if (s === h) throw Error("Generator is already running");
if (s === y) {
if ("throw" === e) throw r;
return { value: t, done: !0 };
}
for (c.method = e, c.arg = r; ; ) {
var n = c.delegate;
if (n) {
var o = (function e(r, n) {
var o = n.method,
i = r.iterator[o];
if (i === t)
return (
(n.delegate = null),
("throw" === o &&
r.iterator.return &&
((n.method = "return"),
(n.arg = t),
e(r, n),
"throw" === n.method)) ||
("return" !== o &&
((n.method = "throw"),
(n.arg = TypeError(
"The iterator does not provide a '" +
o +
"' method",
)))),
v
);
var a = f(i, r.iterator, n.arg);
if ("throw" === a.type)
return (
(n.method = "throw"),
(n.arg = a.arg),
(n.delegate = null),
v
);
var u = a.arg;
return u
? u.done
? ((n[r.resultName] = u.value),
(n.next = r.nextLoc),
"return" !== n.method &&
((n.method = "next"), (n.arg = t)),
(n.delegate = null),
v)
: u
: ((n.method = "throw"),
(n.arg = TypeError(
"iterator result is not an object",
)),
(n.delegate = null),
v);
})(n, c);
if (o) {
if (o === v) continue;
return o;
}
}
if ("next" === c.method) c.sent = c._sent = c.arg;
else if ("throw" === c.method) {
if (s === p) throw ((s = y), c.arg);
c.dispatchException(c.arg);
} else "return" === c.method && c.abrupt("return", c.arg);
s = h;
var i = f(a, u, c);
if ("normal" === i.type) {
if (((s = c.done ? y : "suspendedYield"), i.arg === v))
continue;
return { value: i.arg, done: c.done };
}
"throw" === i.type &&
((s = y), (c.method = "throw"), (c.arg = i.arg));
}
}),
}),
l
);
}
function f(t, e, r) {
try {
return { type: "normal", arg: t.call(e, r) };
} catch (t) {
return { type: "throw", arg: t };
}
}
e.wrap = l;
var p = "suspendedStart",
h = "executing",
y = "completed",
v = {};
function d() {}
function g() {}
function m() {}
var b = {};
s(b, a, function () {
return this;
});
var w = Object.getPrototypeOf,
x = w && w(w(P([])));
x && x !== r && n.call(x, a) && (b = x);
var O = (m.prototype = d.prototype = Object.create(b));
function E(t) {
["next", "throw", "return"].forEach(function (e) {
s(t, e, function (t) {
return this._invoke(e, t);
});
});
}
function L(t, e) {
var r;
o(this, "_invoke", {
value: function (o, i) {
function a() {
return new e(function (r, a) {
!(function r(o, i, a, u) {
var c = f(t[o], t, i);
if ("throw" !== c.type) {
var s = c.arg,
l = s.value;
return l && "object" == nJ(l) && n.call(l, "__await")
? e.resolve(l.__await).then(
function (t) {
r("next", t, a, u);
},
function (t) {
r("throw", t, a, u);
},
)
: e.resolve(l).then(
function (t) {
(s.value = t), a(s);
},
function (t) {
return r("throw", t, a, u);
},
);
}
u(c.arg);
})(o, i, r, a);
});
}
return (r = r ? r.then(a, a) : a());
},
});
}
function j(t) {
var e = { tryLoc: t[0] };
1 in t && (e.catchLoc = t[1]),
2 in t && ((e.finallyLoc = t[2]), (e.afterLoc = t[3])),
this.tryEntries.push(e);
}
function _(t) {
var e = t.completion || {};
(e.type = "normal"), delete e.arg, (t.completion = e);
}
function k(t) {
(this.tryEntries = [{ tryLoc: "root" }]),
t.forEach(j, this),
this.reset(!0);
}
function P(e) {
if (e || "" === e) {
var r = e[a];
if (r) return r.call(e);
if ("function" == typeof e.next) return e;
if (!isNaN(e.length)) {
var o = -1,
i = function r() {
for (; ++o < e.length; )
if (n.call(e, o)) return (r.value = e[o]), (r.done = !1), r;
return (r.value = t), (r.done = !0), r;
};
return (i.next = i);
}
}
throw TypeError(nJ(e) + " is not iterable");
}
return (
(g.prototype = m),
o(O, "constructor", { value: m, configurable: !0 }),
o(m, "constructor", { value: g, configurable: !0 }),
(g.displayName = s(m, c, "GeneratorFunction")),
(e.isGeneratorFunction = function (t) {
var e = "function" == typeof t && t.constructor;
return (
!!e &&
(e === g || "GeneratorFunction" === (e.displayName || e.name))
);
}),
(e.mark = function (t) {
return (
Object.setPrototypeOf
? Object.setPrototypeOf(t, m)
: ((t.__proto__ = m), s(t, c, "GeneratorFunction")),
(t.prototype = Object.create(O)),
t
);
}),
(e.awrap = function (t) {
return { __await: t };
}),
E(L.prototype),
s(L.prototype, u, function () {
return this;
}),
(e.AsyncIterator = L),
(e.async = function (t, r, n, o, i) {
void 0 === i && (i = Promise);
var a = new L(l(t, r, n, o), i);
return e.isGeneratorFunction(r)
? a
: a.next().then(function (t) {
return t.done ? t.value : a.next();
});
}),
E(O),
s(O, c, "Generator"),
s(O, a, function () {
return this;
}),
s(O, "toString", function () {
return "[object Generator]";
}),
(e.keys = function (t) {
var e = Object(t),
r = [];
for (var n in e) r.push(n);
return (
r.reverse(),
function t() {
for (; r.length; ) {
var n = r.pop();
if (n in e) return (t.value = n), (t.done = !1), t;
}
return (t.done = !0), t;
}
);
}),
(e.values = P),
(k.prototype = {
constructor: k,
reset: function (e) {
if (
((this.prev = 0),
(this.next = 0),
(this.sent = this._sent = t),
(this.done = !1),
(this.delegate = null),
(this.method = "next"),
(this.arg = t),
this.tryEntries.forEach(_),
!e)
)
for (var r in this)
"t" === r.charAt(0) &&
n.call(this, r) &&
!isNaN(+r.slice(1)) &&
(this[r] = t);
},
stop: function () {
this.done = !0;
var t = this.tryEntries[0].completion;
if ("throw" === t.type) throw t.arg;
return this.rval;
},
dispatchException: function (e) {
if (this.done) throw e;
var r = this;
function o(n, o) {
return (
(u.type = "throw"),
(u.arg = e),
(r.next = n),
o && ((r.method = "next"), (r.arg = t)),
!!o
);
}
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
var a = this.tryEntries[i],
u = a.completion;
if ("root" === a.tryLoc) return o("end");
if (a.tryLoc <= this.prev) {
var c = n.call(a, "catchLoc"),
s = n.call(a, "finallyLoc");
if (c && s) {
if (this.prev < a.catchLoc) return o(a.catchLoc, !0);
if (this.prev < a.finallyLoc) return o(a.finallyLoc);
} else if (c) {
if (this.prev < a.catchLoc) return o(a.catchLoc, !0);
} else {
if (!s) throw Error("try statement without catch or finally");
if (this.prev < a.finallyLoc) return o(a.finallyLoc);
}
}
}
},
abrupt: function (t, e) {
for (var r = this.tryEntries.length - 1; r >= 0; --r) {
var o = this.tryEntries[r];
if (
o.tryLoc <= this.prev &&
n.call(o, "finallyLoc") &&
this.prev < o.finallyLoc
) {
var i = o;
break;
}
}
i &&
("break" === t || "continue" === t) &&
i.tryLoc <= e &&
e <= i.finallyLoc &&
(i = null);
var a = i ? i.completion : {};
return (
(a.type = t),
(a.arg = e),
i
? ((this.method = "next"), (this.next = i.finallyLoc), v)
: this.complete(a)
);
},
complete: function (t, e) {
if ("throw" === t.type) throw t.arg;
return (
"break" === t.type || "continue" === t.type
? (this.next = t.arg)
: "return" === t.type
? ((this.rval = this.arg = t.arg),
(this.method = "return"),
(this.next = "end"))
: "normal" === t.type && e && (this.next = e),
v
);
},
finish: function (t) {
for (var e = this.tryEntries.length - 1; e >= 0; --e) {
var r = this.tryEntries[e];
if (r.finallyLoc === t)
return this.complete(r.completion, r.afterLoc), _(r), v;
}
},
catch: function (t) {
for (var e = this.tryEntries.length - 1; e >= 0; --e) {
var r = this.tryEntries[e];
if (r.tryLoc === t) {
var n = r.completion;
if ("throw" === n.type) {
var o = n.arg;
_(r);
}
return o;
}
}
throw Error("illegal catch attempt");
},
delegateYield: function (e, r, n) {
return (
(this.delegate = { iterator: P(e), resultName: r, nextLoc: n }),
"next" === this.method && (this.arg = t),
v
);
},
}),
e
);
}
function nX(t, e, r, n, o, i, a) {
try {
var u = t[i](a),
c = u.value;
} catch (t) {
r(t);
return;
}
u.done ? e(c) : Promise.resolve(c).then(n, o);
}
function nZ(t) {
return function () {
var e = this,
r = arguments;
return new Promise(function (n, o) {
var i = t.apply(e, r);
function a(t) {
nX(i, n, o, a, u, "next", t);
}
function u(t) {
nX(i, n, o, a, u, "throw", t);
}
a(void 0);
});
};
}
function n0(t, e) {
return (n0 = Object.setPrototypeOf
? Object.setPrototypeOf.bind()
: function (t, e) {
return (t.__proto__ = e), t;
})(t, e);
}
function n1(t) {
if (void 0 === t)
throw ReferenceError(
"this hasn't been initialised - super() hasn't been called",
);
return t;
}
function n2(t) {
return (n2 = Object.setPrototypeOf
? Object.getPrototypeOf.bind()
: function (t) {
return t.__proto__ || Object.getPrototypeOf(t);
})(t);
}
function n3(t, e, r) {
return (
(e = n4(e)) in t
? Object.defineProperty(t, e, {
value: r,
enumerable: !0,
configurable: !0,
writable: !0,
})
: (t[e] = r),
t
);
}
function n4(t) {
var e = (function (t, e) {
if ("object" != nJ(t) || !t) return t;
var r = t[Symbol.toPrimitive];
if (void 0 !== r) {
var n = r.call(t, e || "default");
if ("object" != nJ(n)) return n;
throw TypeError("@@toPrimitive must return a primitive value.");
}
return ("string" === e ? String : Number)(t);
})(t, "string");
return "symbol" == nJ(e) ? e : String(e);
}
t.s(["CommentService", () => n$], 664323);
var n7 = (function (t) {
if ("function" != typeof t && null !== t)
throw TypeError("Super expression must either be null or a function");
(n.prototype = Object.create(t && t.prototype, {
constructor: { value: n, writable: !0, configurable: !0 },
})),
Object.defineProperty(n, "prototype", { writable: !1 }),
t && n0(n, t);
var e,
r =
((e = (function () {
if (
"u" < typeof Reflect ||
!Reflect.construct ||
Reflect.construct.sham
)
return !1;
if ("function" == typeof Proxy) return !0;
try {
return (
Boolean.prototype.valueOf.call(
Reflect.construct(Boolean, [], function () {}),
),
!0
);
} catch (t) {
return !1;
}
})()),
function () {
var t,
r = n2(n);
return (
(t = e
? Reflect.construct(r, arguments, n2(this).constructor)
: r.apply(this, arguments)),
(function (t, e) {
if (e && ("object" === nJ(e) || "function" == typeof e))
return e;
if (void 0 !== e)
throw TypeError(
"Derived constructors may only return object or undefined",
);
return n1(t);
})(this, t)
);
});
function n() {
var t, e, o, i, a, u;
if (!(this instanceof n))
throw TypeError("Cannot call a class as a function");
for (var c = arguments.length, s = Array(c), l = 0; l < c; l++)
s[l] = arguments[l];
return (
n3(
n1((t = r.call.apply(r, [this].concat(s)))),
"getRecommendKeywords",
((e = nZ(
nQ().mark(function e(r) {
var n, o;
return nQ().wrap(function (e) {
for (;;)
switch ((e.prev = e.next)) {
case 0:
return (
(e.next = 2),
t.apiClient.post(
"/searchWord/community/getSearchWord",
{ type: r },
)
);
case 2:
return (
(o = e.sent),
e.abrupt(
"return",
(null == (n = o.data)
? void 0
: n.recommendWords) || [],
)
);
case 4:
case "end":
return e.stop();
}
}, e);
}),
)),
function (t) {
return e.apply(this, arguments);
}),
),
n3(
n1(t),
"getHotAiApps",
nZ(
nQ().mark(function e() {
var r;
return nQ().wrap(function (e) {
for (;;)
switch ((e.prev = e.next)) {
case 0:
return (
(e.next = 2),
t.apiClient.post("/comfy/aiApp/homepage")
);
case 2:
return (r = e.sent), e.abrupt("return", r.data || {});
case 4:
case "end":
return e.stop();
}
}, e);
}),
),
),
n3(
n1(t),
"getSearchWordHistory",
((o = nZ(
nQ().mark(function e(r) {
var n;
return nQ().wrap(function (e) {
for (;;)
switch ((e.prev = e.next)) {
case 0:
return (
(e.next = 2),
t.apiClient.post(
"/searchWord/community/getSearchWord",
{ type: r },
)
);
case 2:
return (n = e.sent), e.abrupt("return", n);
case 4:
case "end":
return e.stop();
}
}, e);
}),
)),
function (t) {
return o.apply(this, arguments);
}),
),
n3(
n1(t),
"getSearchWordActivities",
((i = nZ(
nQ().mark(function e(r) {
var n;
return nQ().wrap(function (e) {
for (;;)
switch ((e.prev = e.next)) {
case 0:
return (
(e.next = 2),
t.apiClient.post(
"/searchWord/community/getSearchWord",
{ type: r },
)
);
case 2:
return (n = e.sent), e.abrupt("return", n);
case 4:
case "end":
return e.stop();
}
}, e);
}),
)),
function (t) {
return i.apply(this, arguments);
}),
),
n3(
n1(t),
"deleteSearchWordHistory",
((a = nZ(
nQ().mark(function e(r) {
var n;
return nQ().wrap(function (e) {
for (;;)
switch ((e.prev = e.next)) {
case 0:
return (
(e.next = 2),
t.apiClient.post(
"/searchWord/community/deleteSearchRecord",
r,
)
);
case 2:
return (n = e.sent), e.abrupt("return", n);
case 4:
case "end":
return e.stop();
}
}, e);
}),
)),
function (t) {
return a.apply(this, arguments);
}),
),
n3(
n1(t),
"getRecommendSearchWord",
((u = nZ(
nQ().mark(function e(r) {
var n;
return nQ().wrap(function (e) {
for (;;)
switch ((e.prev = e.next)) {
case 0:
return (
(e.next = 2),
t.apiClient.post(
"/searchWord/community/recommendSearchWord",
r,
)
);
case 2:
return (n = e.sent), e.abrupt("return", n);
case 4:
case "end":
return e.stop();
}
}, e);
}),
)),
function (t) {
return u.apply(this, arguments);
}),
),
t
);
}
return Object.defineProperty(n, "prototype", { writable: !1 }), n;
})(eG);
function n8(t) {
return (n8 =
"function" == typeof Symbol && "symbol" == typeof Symbol.iterator
? function (t) {
return typeof t;
}
: function (t) {
return t &&
"function" == typeof Symbol &&
t.constructor === Symbol &&
t !== Symbol.prototype
? "symbol"
: typeof t;
})(t);
}
function n5() {
n5 = function () {
return e;
};
var t,
e = {},
r = Object.prototype,
n = r.hasOwnProperty,
o =
Object.defineProperty ||
function (t, e, r) {
t[e] = r.value;
},
i = "function" == typeof Symbol ? Symbol : {},
a = i.iterator || "@@iterator",
u = i.asyncIterator || "@@asyncIterator",
c = i.toStringTag || "@@toStringTag";
function s(t, e, r) {
return (
Object.defineProperty(t, e, {
value: r,
enumerable: !0,
configurable: !0,
writable: !0,
}),
t[e]
);
}
try {
s({}, "");
} catch (t) {
s = function (t, e, r) {
return (t[e] = r);
};
}
function l(e, r, n, i) {
var a,
u,
c,
s,
l = Object.create((r && r.prototype instanceof d ? r : d).prototype);
return (
o(l, "_invoke", {
value:
((a = e),
(u = n),
(c = new k(i || [])),
(s = p),
function (e, r) {
if (s === h) throw Error("Generator is already running");
if (s === y) {
if ("throw" === e) throw r;
return { value: t, done: !0 };
}
for (c.method = e, c.arg = r; ; ) {
var n = c.delegate;
if (n) {
var o = (function e(r, n) {
var o = n.method,
i = r.iterator[o];
if (i === t)
return (
(n.delegate = null),
("throw" === o &&
r.iterator.return &&
((n.method = "return"),
(n.arg = t),
e(r, n),
"throw" === n.method)) ||
("return" !== o &&
((n.method = "throw"),
(n.arg = TypeError(
"The iterator does not provide a '" +
o +
"' method",
)))),
v
);
var a = f(i, r.iterator, n.arg);
if ("throw" === a.type)
return (
(n.method = "throw"),
(n.arg = a.arg),
(n.delegate = null),
v
);
var u = a.arg;
return u
? u.done
? ((n[r.resultName] = u.value),
(n.next = r.nextLoc),
"return" !== n.method &&
((n.method = "next"), (n.arg = t)),
(n.delegate = null),
v)
: u
: ((n.method = "throw"),
(n.arg = TypeError(
"iterator result is not an object",
)),
(n.delegate = null),
v);
})(n, c);
if (o) {
if (o === v) continue;
return o;
}
}
if ("next" === c.method) c.sent = c._sent = c.arg;
else if ("throw" === c.method) {
if (s === p) throw ((s = y), c.arg);
c.dispatchException(c.arg);
} else "return" === c.method && c.abrupt("return", c.arg);
s = h;
var i = f(a, u, c);
if ("normal" === i.type) {
if (((s = c.done ? y : "suspendedYield"), i.arg === v))
continue;
return { value: i.arg, done: c.done };
}
"throw" === i.type &&
((s = y), (c.method = "throw"), (c.arg = i.arg));
}
}),
}),
l
);
}
function f(t, e, r) {
try {
return { type: "normal", arg: t.call(e, r) };
} catch (t) {
return { type: "throw", arg: t };
}
}
e.wrap = l;
var p = "suspendedStart",
h = "executing",
y = "completed",
v = {};
function d() {}
function g() {}
function m() {}
var b = {};
s(b, a, function () {
return this;
});
var w = Object.getPrototypeOf,
x = w && w(w(P([])));
x && x !== r && n.call(x, a) && (b = x);
var O = (m.prototype = d.prototype = Object.create(b));
function E(t) {
["next", "throw", "return"].forEach(function (e) {
s(t, e, function (t) {
return this._invoke(e, t);
});
});
}
function L(t, e) {
var r;
o(this, "_invoke", {
value: function (o, i) {
function a() {
return new e(function (r, a) {
!(function r(o, i, a, u) {
var c = f(t[o], t, i);
if ("throw" !== c.type) {
var s = c.arg,
l = s.value;
return l && "object" == n8(l) && n.call(l, "__await")
? e.resolve(l.__await).then(
function (t) {
r("next", t, a, u);
},
function (t) {
r("throw", t, a, u);
},
)
: e.resolve(l).then(
function (t) {
(s.value = t), a(s);
},
function (t) {
return r("throw", t, a, u);
},
);
}
u(c.arg);
})(o, i, r, a);
});
}
return (r = r ? r.then(a, a) : a());
},
});
}
function j(t) {
var e = { tryLoc: t[0] };
1 in t && (e.catchLoc = t[1]),
2 in t && ((e.finallyLoc = t[2]), (e.afterLoc = t[3])),
this.tryEntries.push(e);
}
function _(t) {
var e = t.completion || {};
(e.type = "normal"), delete e.arg, (t.completion = e);
}
function k(t) {
(this.tryEntries = [{ tryLoc: "root" }]),
t.forEach(j, this),
this.reset(!0);
}
function P(e) {
if (e || "" === e) {
var r = e[a];
if (r) return r.call(e);
if ("function" == typeof e.next) return e;
if (!isNaN(e.length)) {
var o = -1,
i = function r() {
for (; ++o < e.length; )
if (n.call(e, o)) return (r.value = e[o]), (r.done = !1), r;
return (r.value = t), (r.done = !0), r;
};
return (i.next = i);
}
}
throw TypeError(n8(e) + " is not iterable");
}
return (
(g.prototype = m),
o(O, "constructor", { value: m, configurable: !0 }),
o(m, "constructor", { value: g, configurable: !0 }),
(g.displayName = s(m, c, "GeneratorFunction")),
(e.isGeneratorFunction = function (t) {
var e = "function" == typeof t && t.constructor;
return (
!!e &&
(e === g || "GeneratorFunction" === (e.displayName || e.name))
);
}),
(e.mark = function (t) {
return (
Object.setPrototypeOf
? Object.setPrototypeOf(t, m)
: ((t.__proto__ = m), s(t, c, "GeneratorFunction")),
(t.prototype = Object.create(O)),
t
);
}),
(e.awrap = function (t) {
return { __await: t };
}),
E(L.prototype),
s(L.prototype, u, function () {
return this;
}),
(e.AsyncIterator = L),
(e.async = function (t, r, n, o, i) {
void 0 === i && (i = Promise);
var a = new L(l(t, r, n, o), i);
return e.isGeneratorFunction(r)
? a
: a.next().then(function (t) {
return t.done ? t.value : a.next();
});
}),
E(O),
s(O, c, "Generator"),
s(O, a, function () {
return this;
}),
s(O, "toString", function () {
return "[object Generator]";
}),
(e.keys = function (t) {
var e = Object(t),
r = [];
for (var n in e) r.push(n);
return (
r.reverse(),
function t() {
for (; r.length; ) {
var n = r.pop();
if (n in e) return (t.value = n), (t.done = !1), t;
}
return (t.done = !0), t;
}
);
}),
(e.values = P),
(k.prototype = {
constructor: k,
reset: function (e) {
if (
((this.prev = 0),
(this.next = 0),
(this.sent = this._sent = t),
(this.done = !1),
(this.delegate = null),
(this.method = "next"),
(this.arg = t),
this.tryEntries.forEach(_),
!e)
)
for (var r in this)
"t" === r.charAt(0) &&
n.call(this, r) &&
!isNaN(+r.slice(1)) &&
(this[r] = t);
},
stop: function () {
this.done = !0;
var t = this.tryEntries[0].completion;
if ("throw" === t.type) throw t.arg;
return this.rval;
},
dispatchException: function (e) {
if (this.done) throw e;
var r = this;
function o(n, o) {
return (
(u.type = "throw"),
(u.arg = e),
(r.next = n),
o && ((r.method = "next"), (r.arg = t)),
!!o
);
}
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
var a = this.tryEntries[i],
u = a.completion;
if ("root" === a.tryLoc) return o("end");
if (a.tryLoc <= this.prev) {
var c = n.call(a, "catchLoc"),
s = n.call(a, "finallyLoc");
if (c && s) {
if (this.prev < a.catchLoc) return o(a.catchLoc, !0);
if (this.prev < a.finallyLoc) return o(a.finallyLoc);
} else if (c) {
if (this.prev < a.catchLoc) return o(a.catchLoc, !0);
} else {
if (!s) throw Error("try statement without catch or finally");
if (this.prev < a.finallyLoc) return o(a.finallyLoc);
}
}
}
},
abrupt: function (t, e) {
for (var r = this.tryEntries.length - 1; r >= 0; --r) {
var o = this.tryEntries[r];
if (
o.tryLoc <= this.prev &&
n.call(o, "finallyLoc") &&
this.prev < o.finallyLoc
) {
var i = o;
break;
}
}
i &&
("break" === t || "continue" === t) &&
i.tryLoc <= e &&
e <= i.finallyLoc &&
(i = null);
var a = i ? i.completion : {};
return (
(a.type = t),
(a.arg = e),
i
? ((this.method = "next"), (this.next = i.finallyLoc), v)
: this.complete(a)
);
},
complete: function (t, e) {
if ("throw" === t.type) throw t.arg;
return (
"break" === t.type || "continue" === t.type
? (this.next = t.arg)
: "return" === t.type
? ((this.rval = this.arg = t.arg),
(this.method = "return"),
(this.next = "end"))
: "normal" === t.type && e && (this.next = e),
v
);
},
finish: function (t) {
for (var e = this.tryEntries.length - 1; e >= 0; --e) {
var r = this.tryEntries[e];
if (r.finallyLoc === t)
return this.complete(r.completion, r.afterLoc), _(r), v;
}
},
catch: function (t) {
for (var e = this.tryEntries.length - 1; e >= 0; --e) {
var r = this.tryEntries[e];
if (r.tryLoc === t) {
var n = r.completion;
if ("throw" === n.type) {
var o = n.arg;
_(r);
}
return o;
}
}
throw Error("illegal catch attempt");
},
delegateYield: function (e, r, n) {
return (
(this.delegate = { iterator: P(e), resultName: r, nextLoc: n }),
"next" === this.method && (this.arg = t),
v
);
},
}),
e
);
}
function n6(t, e, r, n, o, i, a) {
try {
var u = t[i](a),
c = u.value;
} catch (t) {
r(t);
return;
}
u.done ? e(c) : Promise.resolve(c).then(n, o);
}
t.s(["SearchService", () => n7], 441462);
function n9(t, e) {
return (n9 = Object.setPrototypeOf
? Object.setPrototypeOf.bind()
: function (t, e) {
return (t.__proto__ = e), t;
})(t, e);
}
function ot(t) {
if (void 0 === t)
throw ReferenceError(
"this hasn't been initialised - super() hasn't been called",
);
return t;
}
function oe(t) {
return (oe = Object.setPrototypeOf
? Object.getPrototypeOf.bind()
: function (t) {
return t.__proto__ || Object.getPrototypeOf(t);
})(t);
}
function or(t) {
var e = (function (t, e) {
if ("object" != n8(t) || !t) return t;
var r = t[Symbol.toPrimitive];
if (void 0 !== r) {
var n = r.call(t, e || "default");
if ("object" != n8(n)) return n;
throw TypeError("@@toPrimitive must return a primitive value.");
}
return ("string" === e ? String : Number)(t);
})(t, "string");
return "symbol" == n8(e) ? e : String(e);
}
var on = function (t) {
return {
id: t.url,
title: t.title,
image: t.pic,
link: t.url,
startTime: t.startTime,
endTime: t.endTime,
extendInfo: t.extendInfo,
};
},
oo = (function (t) {
if ("function" != typeof t && null !== t)
throw TypeError("Super expression must either be null or a function");
(n.prototype = Object.create(t && t.prototype, {
constructor: { value: n, writable: !0, configurable: !0 },
})),
Object.defineProperty(n, "prototype", { writable: !1 }),
t && n9(n, t);
var e,
r =
((e = (function () {
if (
"u" < typeof Reflect ||
!Reflect.construct ||
Reflect.construct.sham
)
return !1;
if ("function" == typeof Proxy) return !0;
try {
return (
Boolean.prototype.valueOf.call(
Reflect.construct(Boolean, [], function () {}),
),
!0
);
} catch (t) {
return !1;
}
})()),
function () {
var t,
r = oe(n);
return (
(t = e
? Reflect.construct(r, arguments, oe(this).constructor)
: r.apply(this, arguments)),
(function (t, e) {
if (e && ("object" === n8(e) || "function" == typeof e))
return e;
if (void 0 !== e)
throw TypeError(
"Derived constructors may only return object or undefined",
);
return ot(t);
})(this, t)
);
});
function n() {
var t, e, o, i, a, u;
if (!(this instanceof n))
throw TypeError("Cannot call a class as a function");
for (var c = arguments.length, s = Array(c), l = 0; l < c; l++)
s[l] = arguments[l];
return (
(i = ot((t = r.call.apply(r, [this].concat(s))))),
(a = "getBanner"),
(e = n5().mark(function e(r) {
var n, o;
return n5().wrap(function (e) {
for (;;)
switch ((e.prev = e.next)) {
case 0:
return (
(e.next = 2),
t.apiClient.post("/banner/community/getBanner", {
bannerType: r,
})
);
case 2:
return (
(o = e.sent),
e.abrupt(
"return",
(
(null == (n = o.data) ? void 0 : n.banners) || []
).map(on),
)
);
case 4:
case "end":
return e.stop();
}
}, e);
})),
(o = function () {
var t = this,
r = arguments;
return new Promise(function (n, o) {
var i = e.apply(t, r);
function a(t) {
n6(i, n, o, a, u, "next", t);
}
function u(t) {
n6(i, n, o, a, u, "throw", t);
}
a(void 0);
});
}),
(u = function (t) {
return o.apply(this, arguments);
}),
(a = or(a)) in i
? Object.defineProperty(i, a, {
value: u,
enumerable: !0,
configurable: !0,
writable: !0,
})
: (i[a] = u),
t
);
}
return Object.defineProperty(n, "prototype", { writable: !1 }), n;
})(eG);
t.s(["BannerService", () => oo], 595532);
var oi = t.i(552119);
function oa(t) {
return (oa =
"function" == typeof Symbol && "symbol" == typeof Symbol.iterator
? function (t) {
return typeof t;
}
: function (t) {
return t &&
"function" == typeof Symbol &&
t.constructor === Symbol &&
t !== Symbol.prototype
? "symbol"
: typeof t;
})(t);
}
function ou() {
ou = function () {
return e;
};
var t,
e = {},
r = Object.prototype,
n = r.hasOwnProperty,
o =
Object.defineProperty ||
function (t, e, r) {
t[e] = r.value;
},
i = "function" == typeof Symbol ? Symbol : {},
a = i.iterator || "@@iterator",
u = i.asyncIterator || "@@asyncIterator",
c = i.toStringTag || "@@toStringTag";
function s(t, e, r) {
return (
Object.defineProperty(t, e, {
value: r,
enumerable: !0,
configurable: !0,
writable: !0,
}),
t[e]
);
}
try {
s({}, "");
} catch (t) {
s = function (t, e, r) {
return (t[e] = r);
};
}
function l(e, r, n, i) {
var a,
u,
c,
s,
l = Object.create((r && r.prototype instanceof d ? r : d).prototype);
return (
o(l, "_invoke", {
value:
((a = e),
(u = n),
(c = new k(i || [])),
(s = p),
function (e, r) {
if (s === h) throw Error("Generator is already running");
if (s === y) {
if ("throw" === e) throw r;
return { value: t, done: !0 };
}
for (c.method = e, c.arg = r; ; ) {
var n = c.delegate;
if (n) {
var o = (function e(r, n) {
var o = n.method,
i = r.iterator[o];
if (i === t)
return (
(n.delegate = null),
("throw" === o &&
r.iterator.return &&
((n.method = "return"),
(n.arg = t),
e(r, n),
"throw" === n.method)) ||
("return" !== o &&
((n.method = "throw"),
(n.arg = TypeError(
"The iterator does not provide a '" +
o +
"' method",
)))),
v
);
var a = f(i, r.iterator, n.arg);
if ("throw" === a.type)
return (
(n.method = "throw"),
(n.arg = a.arg),
(n.delegate = null),
v
);
var u = a.arg;
return u
? u.done
? ((n[r.resultName] = u.value),
(n.next = r.nextLoc),
"return" !== n.method &&
((n.method = "next"), (n.arg = t)),
(n.delegate = null),
v)
: u
: ((n.method = "throw"),
(n.arg = TypeError(
"iterator result is not an object",
)),
(n.delegate = null),
v);
})(n, c);
if (o) {
if (o === v) continue;
return o;
}
}
if ("next" === c.method) c.sent = c._sent = c.arg;
else if ("throw" === c.method) {
if (s === p) throw ((s = y), c.arg);
c.dispatchException(c.arg);
} else "return" === c.method && c.abrupt("return", c.arg);
s = h;
var i = f(a, u, c);
if ("normal" === i.type) {
if (((s = c.done ? y : "suspendedYield"), i.arg === v))
continue;
return { value: i.arg, done: c.done };
}
"throw" === i.type &&
((s = y), (c.method = "throw"), (c.arg = i.arg));
}
}),
}),
l
);
}
function f(t, e, r) {
try {
return { type: "normal", arg: t.call(e, r) };
} catch (t) {
return { type: "throw", arg: t };
}
}
e.wrap = l;
var p = "suspendedStart",
h = "executing",
y = "completed",
v = {};
function d() {}
function g() {}
function m() {}
var b = {};
s(b, a, function () {
return this;
});
var w = Object.getPrototypeOf,
x = w && w(w(P([])));
x && x !== r && n.call(x, a) && (b = x);
var O = (m.prototype = d.prototype = Object.create(b));
function E(t) {
["next", "throw", "return"].forEach(function (e) {
s(t, e, function (t) {
return this._invoke(e, t);
});
});
}
function L(t, e) {
var r;
o(this, "_invoke", {
value: function (o, i) {
function a() {
return new e(function (r, a) {
!(function r(o, i, a, u) {
var c = f(t[o], t, i);
if ("throw" !== c.type) {
var s = c.arg,
l = s.value;
return l && "object" == oa(l) && n.call(l, "__await")
? e.resolve(l.__await).then(
function (t) {
r("next", t, a, u);
},
function (t) {
r("throw", t, a, u);
},
)
: e.resolve(l).then(
function (t) {
(s.value = t), a(s);
},
function (t) {
return r("throw", t, a, u);
},
);
}
u(c.arg);
})(o, i, r, a);
});
}
return (r = r ? r.then(a, a) : a());
},
});
}
function j(t) {
var e = { tryLoc: t[0] };
1 in t && (e.catchLoc = t[1]),
2 in t && ((e.finallyLoc = t[2]), (e.afterLoc = t[3])),
this.tryEntries.push(e);
}
function _(t) {
var e = t.completion || {};
(e.type = "normal"), delete e.arg, (t.completion = e);
}
function k(t) {
(this.tryEntries = [{ tryLoc: "root" }]),
t.forEach(j, this),
this.reset(!0);
}
function P(e) {
if (e || "" === e) {
var r = e[a];
if (r) return r.call(e);
if ("function" == typeof e.next) return e;
if (!isNaN(e.length)) {
var o = -1,
i = function r() {
for (; ++o < e.length; )
if (n.call(e, o)) return (r.value = e[o]), (r.done = !1), r;
return (r.value = t), (r.done = !0), r;
};
return (i.next = i);
}
}
throw TypeError(oa(e) + " is not iterable");
}
return (
(g.prototype = m),
o(O, "constructor", { value: m, configurable: !0 }),
o(m, "constructor", { value: g, configurable: !0 }),
(g.displayName = s(m, c, "GeneratorFunction")),
(e.isGeneratorFunction = function (t) {
var e = "function" == typeof t && t.constructor;
return (
!!e &&
(e === g || "GeneratorFunction" === (e.displayName || e.name))
);
}),
(e.mark = function (t) {
return (
Object.setPrototypeOf
? Object.setPrototypeOf(t, m)
: ((t.__proto__ = m), s(t, c, "GeneratorFunction")),
(t.prototype = Object.create(O)),
t
);
}),
(e.awrap = function (t) {
return { __await: t };
}),
E(L.prototype),
s(L.prototype, u, function () {
return this;
}),
(e.AsyncIterator = L),
(e.async = function (t, r, n, o, i) {
void 0 === i && (i = Promise);
var a = new L(l(t, r, n, o), i);
return e.isGeneratorFunction(r)
? a
: a.next().then(function (t) {
return t.done ? t.value : a.next();
});
}),
E(O),
s(O, c, "Generator"),
s(O, a, function () {
return this;
}),
s(O, "toString", function () {
return "[object Generator]";
}),
(e.keys = function (t) {
var e = Object(t),
r = [];
for (var n in e) r.push(n);
return (
r.reverse(),
function t() {
for (; r.length; ) {
var n = r.pop();
if (n in e) return (t.value = n), (t.done = !1), t;
}
return (t.done = !0), t;
}
);
}),
(e.values = P),
(k.prototype = {
constructor: k,
reset: function (e) {
if (
((this.prev = 0),
(this.next = 0),
(this.sent = this._sent = t),
(this.done = !1),
(this.delegate = null),
(this.method = "next"),
(this.arg = t),
this.tryEntries.forEach(_),
!e)
)
for (var r in this)
"t" === r.charAt(0) &&
n.call(this, r) &&
!isNaN(+r.slice(1)) &&
(this[r] = t);
},
stop: function () {
this.done = !0;
var t = this.tryEntries[0].completion;
if ("throw" === t.type) throw t.arg;
return this.rval;
},
dispatchException: function (e) {
if (this.done) throw e;
var r = this;
function o(n, o) {
return (
(u.type = "throw"),
(u.arg = e),
(r.next = n),
o && ((r.method = "next"), (r.arg = t)),
!!o
);
}
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
var a = this.tryEntries[i],
u = a.completion;
if ("root" === a.tryLoc) return o("end");
if (a.tryLoc <= this.prev) {
var c = n.call(a, "catchLoc"),
s = n.call(a, "finallyLoc");
if (c && s) {
if (this.prev < a.catchLoc) return o(a.catchLoc, !0);
if (this.prev < a.finallyLoc) return o(a.finallyLoc);
} else if (c) {
if (this.prev < a.catchLoc) return o(a.catchLoc, !0);
} else {
if (!s) throw Error("try statement without catch or finally");
if (this.prev < a.finallyLoc) return o(a.finallyLoc);
}
}
}
},
abrupt: function (t, e) {
for (var r = this.tryEntries.length - 1; r >= 0; --r) {
var o = this.tryEntries[r];
if (
o.tryLoc <= this.prev &&
n.call(o, "finallyLoc") &&
this.prev < o.finallyLoc
) {
var i = o;
break;
}
}
i &&
("break" === t || "continue" === t) &&
i.tryLoc <= e &&
e <= i.finallyLoc &&
(i = null);
var a = i ? i.completion : {};
return (
(a.type = t),
(a.arg = e),
i
? ((this.method = "next"), (this.next = i.finallyLoc), v)
: this.complete(a)
);
},
complete: function (t, e) {
if ("throw" === t.type) throw t.arg;
return (
"break" === t.type || "continue" === t.type
? (this.next = t.arg)
: "return" === t.type
? ((this.rval = this.arg = t.arg),
(this.method = "return"),
(this.next = "end"))
: "normal" === t.type && e && (this.next = e),
v
);
},
finish: function (t) {
for (var e = this.tryEntries.length - 1; e >= 0; --e) {
var r = this.tryEntries[e];
if (r.finallyLoc === t)
return this.complete(r.completion, r.afterLoc), _(r), v;
}
},
catch: function (t) {
for (var e = this.tryEntries.length - 1; e >= 0; --e) {
var r = this.tryEntries[e];
if (r.tryLoc === t) {
var n = r.completion;
if ("throw" === n.type) {
var o = n.arg;
_(r);
}
return o;
}
}
throw Error("illegal catch attempt");
},
delegateYield: function (e, r, n) {
return (
(this.delegate = { iterator: P(e), resultName: r, nextLoc: n }),
"next" === this.method && (this.arg = t),
v
);
},
}),
e
);
}
function oc(t, e, r, n, o, i, a) {
try {
var u = t[i](a),
c = u.value;
} catch (t) {
r(t);
return;
}
u.done ? e(c) : Promise.resolve(c).then(n, o);
}
function os(t, e) {
return (os = Object.setPrototypeOf
? Object.setPrototypeOf.bind()
: function (t, e) {
return (t.__proto__ = e), t;
})(t, e);
}
function ol(t) {
return (ol = Object.setPrototypeOf
? Object.getPrototypeOf.bind()
: function (t) {
return t.__proto__ || Object.getPrototypeOf(t);
})(t);
}
var of = (function (t) {
if ("function" != typeof t && null !== t)
throw TypeError("Super expression must either be null or a function");
(a.prototype = Object.create(t && t.prototype, {
constructor: { value: a, writable: !0, configurable: !0 },
})),
Object.defineProperty(a, "prototype", { writable: !1 }),
t && os(a, t);
var e,
r,
n,
o,
i =
((e = (function () {
if (
"u" < typeof Reflect ||
!Reflect.construct ||
Reflect.construct.sham
)
return !1;
if ("function" == typeof Proxy) return !0;
try {
return (
Boolean.prototype.valueOf.call(
Reflect.construct(Boolean, [], function () {}),
),
!0
);
} catch (t) {
return !1;
}
})()),
function () {
var t,
r = ol(a);
return (
(t = e
? Reflect.construct(r, arguments, ol(this).constructor)
: r.apply(this, arguments)),
(function (t, e) {
if (e && ("object" === oa(e) || "function" == typeof e))
return e;
if (void 0 !== e)
throw TypeError(
"Derived constructors may only return object or undefined",
);
var r = t;
if (void 0 === r)
throw ReferenceError(
"this hasn't been initialised - super() hasn't been called",
);
return r;
})(this, t)
);
});
function a() {
if (!(this instanceof a))
throw TypeError("Cannot call a class as a function");
return i.apply(this, arguments);
}
return (
(o = [
{
key: "postReportLog",
value:
((r = ou().mark(function t(e) {
return ou().wrap(
function (t) {
for (;;)
switch ((t.prev = t.next)) {
case 0:
(0, oi.logAcceptorCall)(e, "liblib-apis"),
this.apiClient.post("/log/acceptor/f", e);
case 2:
case "end":
return t.stop();
}
},
t,
this,
);
})),
(n = function () {
var t = this,
e = arguments;
return new Promise(function (n, o) {
var i = r.apply(t, e);
function a(t) {
oc(i, n, o, a, u, "next", t);
}
function u(t) {
oc(i, n, o, a, u, "throw", t);
}
a(void 0);
});
}),
function (t) {
return n.apply(this, arguments);
}),
},
]),
(function (t, e) {
for (var r = 0; r < e.length; r++) {
var n = e[r];
(n.enumerable = n.enumerable || !1),
(n.configurable = !0),
"value" in n && (n.writable = !0),
Object.defineProperty(
t,
(function (t) {
var e = (function (t, e) {
if ("object" != oa(t) || !t) return t;
var r = t[Symbol.toPrimitive];
if (void 0 !== r) {
var n = r.call(t, e || "default");
if ("object" != oa(n)) return n;
throw TypeError(
"@@toPrimitive must return a primitive value.",
);
}
return ("string" === e ? String : Number)(t);
})(t, "string");
return "symbol" == oa(e) ? e : String(e);
})(n.key),
n,
);
}
})(a.prototype, o),
Object.defineProperty(a, "prototype", { writable: !1 }),
a
);
})(eG);
t.s(["LogService", () => of], 215557);
var op = ["userInterest", "userCareer", "userProficiency"];
function oh(t) {
return (oh =
"function" == typeof Symbol && "symbol" == typeof Symbol.iterator
? function (t) {
return typeof t;
}
: function (t) {
return t &&
"function" == typeof Symbol &&
t.constructor === Symbol &&
t !== Symbol.prototype
? "symbol"
: typeof t;
})(t);
}
function oy() {
oy = function () {
return e;
};
var t,
e = {},
r = Object.prototype,
n = r.hasOwnProperty,
o =
Object.defineProperty ||
function (t, e, r) {
t[e] = r.value;
},
i = "function" == typeof Symbol ? Symbol : {},
a = i.iterator || "@@iterator",
u = i.asyncIterator || "@@asyncIterator",
c = i.toStringTag || "@@toStringTag";
function s(t, e, r) {
return (
Object.defineProperty(t, e, {
value: r,
enumerable: !0,
configurable: !0,
writable: !0,
}),
t[e]
);
}
try {
s({}, "");
} catch (t) {
s = function (t, e, r) {
return (t[e] = r);
};
}
function l(e, r, n, i) {
var a,
u,
c,
s,
l = Object.create((r && r.prototype instanceof d ? r : d).prototype);
return (
o(l, "_invoke", {
value:
((a = e),
(u = n),
(c = new k(i || [])),
(s = p),
function (e, r) {
if (s === h) throw Error("Generator is already running");
if (s === y) {
if ("throw" === e) throw r;
return { value: t, done: !0 };
}
for (c.method = e, c.arg = r; ; ) {
var n = c.delegate;
if (n) {
var o = (function e(r, n) {
var o = n.method,
i = r.iterator[o];
if (i === t)
return (
(n.delegate = null),
("throw" === o &&
r.iterator.return &&
((n.method = "return"),
(n.arg = t),
e(r, n),
"throw" === n.method)) ||
("return" !== o &&
((n.method = "throw"),
(n.arg = TypeError(
"The iterator does not provide a '" +
o +
"' method",
)))),
v
);
var a = f(i, r.iterator, n.arg);
if ("throw" === a.type)
return (
(n.method = "throw"),
(n.arg = a.arg),
(n.delegate = null),
v
);
var u = a.arg;
return u
? u.done
? ((n[r.resultName] = u.value),
(n.next = r.nextLoc),
"return" !== n.method &&
((n.method = "next"), (n.arg = t)),
(n.delegate = null),
v)
: u
: ((n.method = "throw"),
(n.arg = TypeError(
"iterator result is not an object",
)),
(n.delegate = null),
v);
})(n, c);
if (o) {
if (o === v) continue;
return o;
}
}
if ("next" === c.method) c.sent = c._sent = c.arg;
else if ("throw" === c.method) {
if (s === p) throw ((s = y), c.arg);
c.dispatchException(c.arg);
} else "return" === c.method && c.abrupt("return", c.arg);
s = h;
var i = f(a, u, c);
if ("normal" === i.type) {
if (((s = c.done ? y : "suspendedYield"), i.arg === v))
continue;
return { value: i.arg, done: c.done };
}
"throw" === i.type &&
((s = y), (c.method = "throw"), (c.arg = i.arg));
}
}),
}),
l
);
}
function f(t, e, r) {
try {
return { type: "normal", arg: t.call(e, r) };
} catch (t) {
return { type: "throw", arg: t };
}
}
e.wrap = l;
var p = "suspendedStart",
h = "executing",
y = "completed",
v = {};
function d() {}
function g() {}
function m() {}
var b = {};
s(b, a, function () {
return this;
});
var w = Object.getPrototypeOf,
x = w && w(w(P([])));
x && x !== r && n.call(x, a) && (b = x);
var O = (m.prototype = d.prototype = Object.create(b));
function E(t) {
["next", "throw", "return"].forEach(function (e) {
s(t, e, function (t) {
return this._invoke(e, t);
});
});
}
function L(t, e) {
var r;
o(this, "_invoke", {
value: function (o, i) {
function a() {
return new e(function (r, a) {
!(function r(o, i, a, u) {
var c = f(t[o], t, i);
if ("throw" !== c.type) {
var s = c.arg,
l = s.value;
return l && "object" == oh(l) && n.call(l, "__await")
? e.resolve(l.__await).then(
function (t) {
r("next", t, a, u);
},
function (t) {
r("throw", t, a, u);
},
)
: e.resolve(l).then(
function (t) {
(s.value = t), a(s);
},
function (t) {
return r("throw", t, a, u);
},
);
}
u(c.arg);
})(o, i, r, a);
});
}
return (r = r ? r.then(a, a) : a());
},
});
}
function j(t) {
var e = { tryLoc: t[0] };
1 in t && (e.catchLoc = t[1]),
2 in t && ((e.finallyLoc = t[2]), (e.afterLoc = t[3])),
this.tryEntries.push(e);
}
function _(t) {
var e = t.completion || {};
(e.type = "normal"), delete e.arg, (t.completion = e);
}
function k(t) {
(this.tryEntries = [{ tryLoc: "root" }]),
t.forEach(j, this),
this.reset(!0);
}
function P(e) {
if (e || "" === e) {
var r = e[a];
if (r) return r.call(e);
if ("function" == typeof e.next) return e;
if (!isNaN(e.length)) {
var o = -1,
i = function r() {
for (; ++o < e.length; )
if (n.call(e, o)) return (r.value = e[o]), (r.done = !1), r;
return (r.value = t), (r.done = !0), r;
};
return (i.next = i);
}
}
throw TypeError(oh(e) + " is not iterable");
}
return (
(g.prototype = m),
o(O, "constructor", { value: m, configurable: !0 }),
o(m, "constructor", { value: g, configurable: !0 }),
(g.displayName = s(m, c, "GeneratorFunction")),
(e.isGeneratorFunction = function (t) {
var e = "function" == typeof t && t.constructor;
return (
!!e &&
(e === g || "GeneratorFunction" === (e.displayName || e.name))
);
}),
(e.mark = function (t) {
return (
Object.setPrototypeOf
? Object.setPrototypeOf(t, m)
: ((t.__proto__ = m), s(t, c, "GeneratorFunction")),
(t.prototype = Object.create(O)),
t
);
}),
(e.awrap = function (t) {
return { __await: t };
}),
E(L.prototype),
s(L.prototype, u, function () {
return this;
}),
(e.AsyncIterator = L),
(e.async = function (t, r, n, o, i) {
void 0 === i && (i = Promise);
var a = new L(l(t, r, n, o), i);
return e.isGeneratorFunction(r)
? a
: a.next().then(function (t) {
return t.done ? t.value : a.next();
});
}),
E(O),
s(O, c, "Generator"),
s(O, a, function () {
return this;
}),
s(O, "toString", function () {
return "[object Generator]";
}),
(e.keys = function (t) {
var e = Object(t),
r = [];
for (var n in e) r.push(n);
return (
r.reverse(),
function t() {
for (; r.length; ) {
var n = r.pop();
if (n in e) return (t.value = n), (t.done = !1), t;
}
return (t.done = !0), t;
}
);
}),
(e.values = P),
(k.prototype = {
constructor: k,
reset: function (e) {
if (
((this.prev = 0),
(this.next = 0),
(this.sent = this._sent = t),
(this.done = !1),
(this.delegate = null),
(this.method = "next"),
(this.arg = t),
this.tryEntries.forEach(_),
!e)
)
for (var r in this)
"t" === r.charAt(0) &&
n.call(this, r) &&
!isNaN(+r.slice(1)) &&
(this[r] = t);
},
stop: function () {
this.done = !0;
var t = this.tryEntries[0].completion;
if ("throw" === t.type) throw t.arg;
return this.rval;
},
dispatchException: function (e) {
if (this.done) throw e;
var r = this;
function o(n, o) {
return (
(u.type = "throw"),
(u.arg = e),
(r.next = n),
o && ((r.method = "next"), (r.arg = t)),
!!o
);
}
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
var a = this.tryEntries[i],
u = a.completion;
if ("root" === a.tryLoc) return o("end");
if (a.tryLoc <= this.prev) {
var c = n.call(a, "catchLoc"),
s = n.call(a, "finallyLoc");
if (c && s) {
if (this.prev < a.catchLoc) return o(a.catchLoc, !0);
if (this.prev < a.finallyLoc) return o(a.finallyLoc);
} else if (c) {
if (this.prev < a.catchLoc) return o(a.catchLoc, !0);
} else {
if (!s) throw Error("try statement without catch or finally");
if (this.prev < a.finallyLoc) return o(a.finallyLoc);
}
}
}
},
abrupt: function (t, e) {
for (var r = this.tryEntries.length - 1; r >= 0; --r) {
var o = this.tryEntries[r];
if (
o.tryLoc <= this.prev &&
n.call(o, "finallyLoc") &&
this.prev < o.finallyLoc
) {
var i = o;
break;
}
}
i &&
("break" === t || "continue" === t) &&
i.tryLoc <= e &&
e <= i.finallyLoc &&
(i = null);
var a = i ? i.completion : {};
return (
(a.type = t),
(a.arg = e),
i
? ((this.method = "next"), (this.next = i.finallyLoc), v)
: this.complete(a)
);
},
complete: function (t, e) {
if ("throw" === t.type) throw t.arg;
return (
"break" === t.type || "continue" === t.type
? (this.next = t.arg)
: "return" === t.type
? ((this.rval = this.arg = t.arg),
(this.method = "return"),
(this.next = "end"))
: "normal" === t.type && e && (this.next = e),
v
);
},
finish: function (t) {
for (var e = this.tryEntries.length - 1; e >= 0; --e) {
var r = this.tryEntries[e];
if (r.finallyLoc === t)
return this.complete(r.completion, r.afterLoc), _(r), v;
}
},
catch: function (t) {
for (var e = this.tryEntries.length - 1; e >= 0; --e) {
var r = this.tryEntries[e];
if (r.tryLoc === t) {
var n = r.completion;
if ("throw" === n.type) {
var o = n.arg;
_(r);
}
return o;
}
}
throw Error("illegal catch attempt");
},
delegateYield: function (e, r, n) {
return (
(this.delegate = { iterator: P(e), resultName: r, nextLoc: n }),
"next" === this.method && (this.arg = t),
v
);
},
}),
e
);
}
function ov(t, e, r, n, o, i, a) {
try {
var u = t[i](a),
c = u.value;
} catch (t) {
r(t);
return;
}
u.done ? e(c) : Promise.resolve(c).then(n, o);
}
function od(t) {
return function () {
var e = this,
r = arguments;
return new Promise(function (n, o) {
var i = t.apply(e, r);
function a(t) {
ov(i, n, o, a, u, "next", t);
}
function u(t) {
ov(i, n, o, a, u, "throw", t);
}
a(void 0);
});
};
}
t.s(["allInterestTagCategoryCodes", () => op], 393168), t.s([], 191640);
function og(t, e) {
return (og = Object.setPrototypeOf
? Object.setPrototypeOf.bind()
: function (t, e) {
return (t.__proto__ = e), t;
})(t, e);
}
function om(t) {
return (om = Object.setPrototypeOf
? Object.getPrototypeOf.bind()
: function (t) {
return t.__proto__ || Object.getPrototypeOf(t);
})(t);
}
var ob = (function (t) {
if ("function" != typeof t && null !== t)
throw TypeError("Super expression must either be null or a function");
(c.prototype = Object.create(t && t.prototype, {
constructor: { value: c, writable: !0, configurable: !0 },
})),
Object.defineProperty(c, "prototype", { writable: !1 }),
t && og(c, t);
var e,
r,
n,
o,
i,
a,
u =
((e = (function () {
if (
"u" < typeof Reflect ||
!Reflect.construct ||
Reflect.construct.sham
)
return !1;
if ("function" == typeof Proxy) return !0;
try {
return (
Boolean.prototype.valueOf.call(
Reflect.construct(Boolean, [], function () {}),
),
!0
);
} catch (t) {
return !1;
}
})()),
function () {
var t,
r = om(c);
return (
(t = e
? Reflect.construct(r, arguments, om(this).constructor)
: r.apply(this, arguments)),
(function (t, e) {
if (e && ("object" === oh(e) || "function" == typeof e))
return e;
if (void 0 !== e)
throw TypeError(
"Derived constructors may only return object or undefined",
);
var r = t;
if (void 0 === r)
throw ReferenceError(
"this hasn't been initialised - super() hasn't been called",
);
return r;
})(this, t)
);
});
function c() {
if (!(this instanceof c))
throw TypeError("Cannot call a class as a function");
return u.apply(this, arguments);
}
return (
(a = [
{
key: "isSelectedInterestTag",
value:
((r = od(
oy().mark(function t() {
var e;
return oy().wrap(
function (t) {
for (;;)
switch ((t.prev = t.next)) {
case 0:
return (
(t.next = 2),
this.apiClient.post(
"/userTag/isSelectedInterestTag",
)
);
case 2:
return (e = t.sent), t.abrupt("return", e);
case 4:
case "end":
return t.stop();
}
},
t,
this,
);
}),
)),
function () {
return r.apply(this, arguments);
}),
},
{
key: "getInterestTags",
value:
((n = od(
oy().mark(function t() {
var e,
r,
n = arguments;
return oy().wrap(
function (t) {
for (;;)
switch ((t.prev = t.next)) {
case 0:
return (
(e = n.length > 0 && void 0 !== n[0] ? n[0] : op),
(t.next = 3),
this.apiClient.post("/userTag/getInterestTags", {
categoryCodes: e,
})
);
case 3:
return (r = t.sent), t.abrupt("return", r);
case 5:
case "end":
return t.stop();
}
},
t,
this,
);
}),
)),
function () {
return n.apply(this, arguments);
}),
},
{
key: "bindUserInterestTag",
value:
((o = od(
oy().mark(function t(e) {
var r;
return oy().wrap(
function (t) {
for (;;)
switch ((t.prev = t.next)) {
case 0:
return (
(t.next = 2),
this.apiClient.post(
"/userTag/bindUserInterestTag",
{ userSelecterTags: e },
)
);
case 2:
return (r = t.sent), t.abrupt("return", r);
case 4:
case "end":
return t.stop();
}
},
t,
this,
);
}),
)),
function (t) {
return o.apply(this, arguments);
}),
},
{
key: "getArea",
value:
((i = od(
oy().mark(function t() {
var e;
return oy().wrap(
function (t) {
for (;;)
switch ((t.prev = t.next)) {
case 0:
return (
(t.next = 2),
this.apiClient.get(
(0, rC.getUrl)("/api/www/user/location"),
)
);
case 2:
return (e = t.sent), t.abrupt("return", e);
case 4:
case "end":
return t.stop();
}
},
t,
this,
);
}),
)),
function () {
return i.apply(this, arguments);
}),
},
]),
(function (t, e) {
for (var r = 0; r < e.length; r++) {
var n = e[r];
(n.enumerable = n.enumerable || !1),
(n.configurable = !0),
"value" in n && (n.writable = !0),
Object.defineProperty(
t,
(function (t) {
var e = (function (t, e) {
if ("object" != oh(t) || !t) return t;
var r = t[Symbol.toPrimitive];
if (void 0 !== r) {
var n = r.call(t, e || "default");
if ("object" != oh(n)) return n;
throw TypeError(
"@@toPrimitive must return a primitive value.",
);
}
return ("string" === e ? String : Number)(t);
})(t, "string");
return "symbol" == oh(e) ? e : String(e);
})(n.key),
n,
);
}
})(c.prototype, a),
Object.defineProperty(c, "prototype", { writable: !1 }),
c
);
})(eG);
t.s(["InterestTagService", () => ob], 673005),
t.s([], 12897),
t.s([], 581422),
t.s([], 237996);
var ow =
(((g = {}).BindBankAccount = "BindBankAccount"),
(g.BindPhone = "BindPhone"),
(g.OriginalAuthorCertification = "OriginalAuthorCertification"),
g);
function ox(t) {
return (ox =
"function" == typeof Symbol && "symbol" == typeof Symbol.iterator
? function (t) {
return typeof t;
}
: function (t) {
return t &&
"function" == typeof Symbol &&
t.constructor === Symbol &&
t !== Symbol.prototype
? "symbol"
: typeof t;
})(t);
}
function oO() {
oO = function () {
return e;
};
var t,
e = {},
r = Object.prototype,
n = r.hasOwnProperty,
o =
Object.defineProperty ||
function (t, e, r) {
t[e] = r.value;
},
i = "function" == typeof Symbol ? Symbol : {},
a = i.iterator || "@@iterator",
u = i.asyncIterator || "@@asyncIterator",
c = i.toStringTag || "@@toStringTag";
function s(t, e, r) {
return (
Object.defineProperty(t, e, {
value: r,
enumerable: !0,
configurable: !0,
writable: !0,
}),
t[e]
);
}
try {
s({}, "");
} catch (t) {
s = function (t, e, r) {
return (t[e] = r);
};
}
function l(e, r, n, i) {
var a,
u,
c,
s,
l = Object.create((r && r.prototype instanceof d ? r : d).prototype);
return (
o(l, "_invoke", {
value:
((a = e),
(u = n),
(c = new k(i || [])),
(s = p),
function (e, r) {
if (s === h) throw Error("Generator is already running");
if (s === y) {
if ("throw" === e) throw r;
return { value: t, done: !0 };
}
for (c.method = e, c.arg = r; ; ) {
var n = c.delegate;
if (n) {
var o = (function e(r, n) {
var o = n.method,
i = r.iterator[o];
if (i === t)
return (
(n.delegate = null),
("throw" === o &&
r.iterator.return &&
((n.method = "return"),
(n.arg = t),
e(r, n),
"throw" === n.method)) ||
("return" !== o &&
((n.method = "throw"),
(n.arg = TypeError(
"The iterator does not provide a '" +
o +
"' method",
)))),
v
);
var a = f(i, r.iterator, n.arg);
if ("throw" === a.type)
return (
(n.method = "throw"),
(n.arg = a.arg),
(n.delegate = null),
v
);
var u = a.arg;
return u
? u.done
? ((n[r.resultName] = u.value),
(n.next = r.nextLoc),
"return" !== n.method &&
((n.method = "next"), (n.arg = t)),
(n.delegate = null),
v)
: u
: ((n.method = "throw"),
(n.arg = TypeError(
"iterator result is not an object",
)),
(n.delegate = null),
v);
})(n, c);
if (o) {
if (o === v) continue;
return o;
}
}
if ("next" === c.method) c.sent = c._sent = c.arg;
else if ("throw" === c.method) {
if (s === p) throw ((s = y), c.arg);
c.dispatchException(c.arg);
} else "return" === c.method && c.abrupt("return", c.arg);
s = h;
var i = f(a, u, c);
if ("normal" === i.type) {
if (((s = c.done ? y : "suspendedYield"), i.arg === v))
continue;
return { value: i.arg, done: c.done };
}
"throw" === i.type &&
((s = y), (c.method = "throw"), (c.arg = i.arg));
}
}),
}),
l
);
}
function f(t, e, r) {
try {
return { type: "normal", arg: t.call(e, r) };
} catch (t) {
return { type: "throw", arg: t };
}
}
e.wrap = l;
var p = "suspendedStart",
h = "executing",
y = "completed",
v = {};
function d() {}
function g() {}
function m() {}
var b = {};
s(b, a, function () {
return this;
});
var w = Object.getPrototypeOf,
x = w && w(w(P([])));
x && x !== r && n.call(x, a) && (b = x);
var O = (m.prototype = d.prototype = Object.create(b));
function E(t) {
["next", "throw", "return"].forEach(function (e) {
s(t, e, function (t) {
return this._invoke(e, t);
});
});
}
function L(t, e) {
var r;
o(this, "_invoke", {
value: function (o, i) {
function a() {
return new e(function (r, a) {
!(function r(o, i, a, u) {
var c = f(t[o], t, i);
if ("throw" !== c.type) {
var s = c.arg,
l = s.value;
return l && "object" == ox(l) && n.call(l, "__await")
? e.resolve(l.__await).then(
function (t) {
r("next", t, a, u);
},
function (t) {
r("throw", t, a, u);
},
)
: e.resolve(l).then(
function (t) {
(s.value = t), a(s);
},
function (t) {
return r("throw", t, a, u);
},
);
}
u(c.arg);
})(o, i, r, a);
});
}
return (r = r ? r.then(a, a) : a());
},
});
}
function j(t) {
var e = { tryLoc: t[0] };
1 in t && (e.catchLoc = t[1]),
2 in t && ((e.finallyLoc = t[2]), (e.afterLoc = t[3])),
this.tryEntries.push(e);
}
function _(t) {
var e = t.completion || {};
(e.type = "normal"), delete e.arg, (t.completion = e);
}
function k(t) {
(this.tryEntries = [{ tryLoc: "root" }]),
t.forEach(j, this),
this.reset(!0);
}
function P(e) {
if (e || "" === e) {
var r = e[a];
if (r) return r.call(e);
if ("function" == typeof e.next) return e;
if (!isNaN(e.length)) {
var o = -1,
i = function r() {
for (; ++o < e.length; )
if (n.call(e, o)) return (r.value = e[o]), (r.done = !1), r;
return (r.value = t), (r.done = !0), r;
};
return (i.next = i);
}
}
throw TypeError(ox(e) + " is not iterable");
}
return (
(g.prototype = m),
o(O, "constructor", { value: m, configurable: !0 }),
o(m, "constructor", { value: g, configurable: !0 }),
(g.displayName = s(m, c, "GeneratorFunction")),
(e.isGeneratorFunction = function (t) {
var e = "function" == typeof t && t.constructor;
return (
!!e &&
(e === g || "GeneratorFunction" === (e.displayName || e.name))
);
}),
(e.mark = function (t) {
return (
Object.setPrototypeOf
? Object.setPrototypeOf(t, m)
: ((t.__proto__ = m), s(t, c, "GeneratorFunction")),
(t.prototype = Object.create(O)),
t
);
}),
(e.awrap = function (t) {
return { __await: t };
}),
E(L.prototype),
s(L.prototype, u, function () {
return this;
}),
(e.AsyncIterator = L),
(e.async = function (t, r, n, o, i) {
void 0 === i && (i = Promise);
var a = new L(l(t, r, n, o), i);
return e.isGeneratorFunction(r)
? a
: a.next().then(function (t) {
return t.done ? t.value : a.next();
});
}),
E(O),
s(O, c, "Generator"),
s(O, a, function () {
return this;
}),
s(O, "toString", function () {
return "[object Generator]";
}),
(e.keys = function (t) {
var e = Object(t),
r = [];
for (var n in e) r.push(n);
return (
r.reverse(),
function t() {
for (; r.length; ) {
var n = r.pop();
if (n in e) return (t.value = n), (t.done = !1), t;
}
return (t.done = !0), t;
}
);
}),
(e.values = P),
(k.prototype = {
constructor: k,
reset: function (e) {
if (
((this.prev = 0),
(this.next = 0),
(this.sent = this._sent = t),
(this.done = !1),
(this.delegate = null),
(this.method = "next"),
(this.arg = t),
this.tryEntries.forEach(_),
!e)
)
for (var r in this)
"t" === r.charAt(0) &&
n.call(this, r) &&
!isNaN(+r.slice(1)) &&
(this[r] = t);
},
stop: function () {
this.done = !0;
var t = this.tryEntries[0].completion;
if ("throw" === t.type) throw t.arg;
return this.rval;
},
dispatchException: function (e) {
if (this.done) throw e;
var r = this;
function o(n, o) {
return (
(u.type = "throw"),
(u.arg = e),
(r.next = n),
o && ((r.method = "next"), (r.arg = t)),
!!o
);
}
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
var a = this.tryEntries[i],
u = a.completion;
if ("root" === a.tryLoc) return o("end");
if (a.tryLoc <= this.prev) {
var c = n.call(a, "catchLoc"),
s = n.call(a, "finallyLoc");
if (c && s) {
if (this.prev < a.catchLoc) return o(a.catchLoc, !0);
if (this.prev < a.finallyLoc) return o(a.finallyLoc);
} else if (c) {
if (this.prev < a.catchLoc) return o(a.catchLoc, !0);
} else {
if (!s) throw Error("try statement without catch or finally");
if (this.prev < a.finallyLoc) return o(a.finallyLoc);
}
}
}
},
abrupt: function (t, e) {
for (var r = this.tryEntries.length - 1; r >= 0; --r) {
var o = this.tryEntries[r];
if (
o.tryLoc <= this.prev &&
n.call(o, "finallyLoc") &&
this.prev < o.finallyLoc
) {
var i = o;
break;
}
}
i &&
("break" === t || "continue" === t) &&
i.tryLoc <= e &&
e <= i.finallyLoc &&
(i = null);
var a = i ? i.completion : {};
return (
(a.type = t),
(a.arg = e),
i
? ((this.method = "next"), (this.next = i.finallyLoc), v)
: this.complete(a)
);
},
complete: function (t, e) {
if ("throw" === t.type) throw t.arg;
return (
"break" === t.type || "continue" === t.type
? (this.next = t.arg)
: "return" === t.type
? ((this.rval = this.arg = t.arg),
(this.method = "return"),
(this.next = "end"))
: "normal" === t.type && e && (this.next = e),
v
);
},
finish: function (t) {
for (var e = this.tryEntries.length - 1; e >= 0; --e) {
var r = this.tryEntries[e];
if (r.finallyLoc === t)
return this.complete(r.completion, r.afterLoc), _(r), v;
}
},
catch: function (t) {
for (var e = this.tryEntries.length - 1; e >= 0; --e) {
var r = this.tryEntries[e];
if (r.tryLoc === t) {
var n = r.completion;
if ("throw" === n.type) {
var o = n.arg;
_(r);
}
return o;
}
}
throw Error("illegal catch attempt");
},
delegateYield: function (e, r, n) {
return (
(this.delegate = { iterator: P(e), resultName: r, nextLoc: n }),
"next" === this.method && (this.arg = t),
v
);
},
}),
e
);
}
function oE(t, e, r, n, o, i, a) {
try {
var u = t[i](a),
c = u.value;
} catch (t) {
r(t);
return;
}
u.done ? e(c) : Promise.resolve(c).then(n, o);
}
function oL(t) {
return function () {
var e = this,
r = arguments;
return new Promise(function (n, o) {
var i = t.apply(e, r);
function a(t) {
oE(i, n, o, a, u, "next", t);
}
function u(t) {
oE(i, n, o, a, u, "throw", t);
}
a(void 0);
});
};
}
t.s(["SmsSendScene", () => ow], 731367), t.s([], 2730), t.s([], 331837);
function oj(t, e) {
return (oj = Object.setPrototypeOf
? Object.setPrototypeOf.bind()
: function (t, e) {
return (t.__proto__ = e), t;
})(t, e);
}
function o_(t) {
return (o_ = Object.setPrototypeOf
? Object.getPrototypeOf.bind()
: function (t) {
return t.__proto__ || Object.getPrototypeOf(t);
})(t);
}
var ok = (function (t) {
if ("function" != typeof t && null !== t)
throw TypeError("Super expression must either be null or a function");
(g.prototype = Object.create(t && t.prototype, {
constructor: { value: g, writable: !0, configurable: !0 },
})),
Object.defineProperty(g, "prototype", { writable: !1 }),
t && oj(g, t);
var e,
r,
n,
o,
i,
a,
u,
c,
s,
l,
f,
p,
h,
y,
v,
d =
((e = (function () {
if (
"u" < typeof Reflect ||
!Reflect.construct ||
Reflect.construct.sham
)
return !1;
if ("function" == typeof Proxy) return !0;
try {
return (
Boolean.prototype.valueOf.call(
Reflect.construct(Boolean, [], function () {}),
),
!0
);
} catch (t) {
return !1;
}
})()),
function () {
var t,
r = o_(g);
return (
(t = e
? Reflect.construct(r, arguments, o_(this).constructor)
: r.apply(this, arguments)),
(function (t, e) {
if (e && ("object" === ox(e) || "function" == typeof e))
return e;
if (void 0 !== e)
throw TypeError(
"Derived constructors may only return object or undefined",
);
var r = t;
if (void 0 === r)
throw ReferenceError(
"this hasn't been initialised - super() hasn't been called",
);
return r;
})(this, t)
);
});
function g() {
if (!(this instanceof g))
throw TypeError("Cannot call a class as a function");
return d.apply(this, arguments);
}
return (
(v = [
{
key: "bindMobile",
value:
((r = oL(
oO().mark(function t(e) {
var r;
return oO().wrap(
function (t) {
for (;;)
switch ((t.prev = t.next)) {
case 0:
return (
(t.next = 2),
this.apiClient.post(
"author/certification/authorship",
e,
)
);
case 2:
return (r = t.sent), t.abrupt("return", r);
case 4:
case "end":
return t.stop();
}
},
t,
this,
);
}),
)),
function (t) {
return r.apply(this, arguments);
}),
},
{
key: "bindMobileForActivity",
value:
((n = oL(
oO().mark(function t(e) {
var r;
return oO().wrap(
function (t) {
for (;;)
switch ((t.prev = t.next)) {
case 0:
return (
(t.next = 2),
this.apiClient.post(
"activity/referral/certification",
e,
)
);
case 2:
return (r = t.sent), t.abrupt("return", r);
case 4:
case "end":
return t.stop();
}
},
t,
this,
);
}),
)),
function (t) {
return n.apply(this, arguments);
}),
},
{
key: "checkBindBank",
value:
((o = oL(
oO().mark(function t() {
var e;
return oO().wrap(
function (t) {
for (;;)
switch ((t.prev = t.next)) {
case 0:
return (
(t.next = 2),
this.apiClient.post(
"/commerce/incentive/hasBindBankCard",
{},
)
);
case 2:
return (e = t.sent), t.abrupt("return", e);
case 4:
case "end":
return t.stop();
}
},
t,
this,
);
}),
)),
function () {
return o.apply(this, arguments);
}),
},
{
key: "authorIncomeList",
value:
((i = oL(
oO().mark(function t(e) {
var r;
return oO().wrap(
function (t) {
for (;;)
switch ((t.prev = t.next)) {
case 0:
return (
(t.next = 2),
this.apiClient.post(
"/commerce/incentive/income/search",
e,
)
);
case 2:
return (r = t.sent), t.abrupt("return", r);
case 4:
case "end":
return t.stop();
}
},
t,
this,
);
}),
)),
function (t) {
return i.apply(this, arguments);
}),
},
{
key: "authorIncomeTotal",
value:
((a = oL(
oO().mark(function t() {
var e;
return oO().wrap(
function (t) {
for (;;)
switch ((t.prev = t.next)) {
case 0:
return (
(t.next = 2),
this.apiClient.post(
"/commerce/incentive/queryUserTotalIncome",
)
);
case 2:
return (e = t.sent), t.abrupt("return", e);
case 4:
case "end":
return t.stop();
}
},
t,
this,
);
}),
)),
function () {
return a.apply(this, arguments);
}),
},
{
key: "bindBankCard",
value:
((u = oL(
oO().mark(function t(e) {
var r;
return oO().wrap(
function (t) {
for (;;)
switch ((t.prev = t.next)) {
case 0:
return (
(r = this.apiClient.post(
"/commerce/incentive/bank/save",
e,
)),
t.abrupt("return", r)
);
case 2:
case "end":
return t.stop();
}
},
t,
this,
);
}),
)),
function (t) {
return u.apply(this, arguments);
}),
},
{
key: "bindBankCardForReferral",
value:
((c = oL(
oO().mark(function t(e) {
var r;
return oO().wrap(
function (t) {
for (;;)
switch ((t.prev = t.next)) {
case 0:
return (
(r = this.apiClient.post(
"/activity/referral/bank/create",
e,
)),
t.abrupt("return", r)
);
case 2:
case "end":
return t.stop();
}
},
t,
this,
);
}),
)),
function (t) {
return c.apply(this, arguments);
}),
},
{
key: "getYzmHasMobile",
value:
((s = oL(
oO().mark(function t(e) {
var r;
return oO().wrap(
function (t) {
for (;;)
switch ((t.prev = t.next)) {
case 0:
return (
(r = this.apiClient.post("/auth/sms/send", e)),
t.abrupt("return", r)
);
case 2:
case "end":
return t.stop();
}
},
t,
this,
);
}),
)),
function (t) {
return s.apply(this, arguments);
}),
},
{
key: "getYzmNoMobile",
value:
((l = oL(
oO().mark(function t(e) {
var r;
return oO().wrap(
function (t) {
for (;;)
switch ((t.prev = t.next)) {
case 0:
return (
(t.next = 2),
this.apiClient.post(
(0, rC.getUrl)(
"/api/www/user/bindMobile/sendVerifyCode",
),
e,
)
);
case 2:
return (r = t.sent), t.abrupt("return", r);
case 4:
case "end":
return t.stop();
}
},
t,
this,
);
}),
)),
function (t) {
return l.apply(this, arguments);
}),
},
{
key: "checkVerifyBeforeBind",
value:
((f = oL(
oO().mark(function t(e) {
var r;
return oO().wrap(
function (t) {
for (;;)
switch ((t.prev = t.next)) {
case 0:
return (
(t.next = 2),
this.apiClient.post("/auth/sms/check", e)
);
case 2:
return (r = t.sent), t.abrupt("return", r);
case 4:
case "end":
return t.stop();
}
},
t,
this,
);
}),
)),
function (t) {
return f.apply(this, arguments);
}),
},
{
key: "checkAuthorship",
value:
((p = oL(
oO().mark(function t() {
return oO().wrap(
function (t) {
for (;;)
switch ((t.prev = t.next)) {
case 0:
return t.abrupt(
"return",
this.apiClient.post(
"/author/certification/authorshipCheck",
),
);
case 1:
case "end":
return t.stop();
}
},
t,
this,
);
}),
)),
function () {
return p.apply(this, arguments);
}),
},
{
key: "categorySearch",
value:
((h = oL(
oO().mark(function t() {
var e;
return oO().wrap(
function (t) {
for (;;)
switch ((t.prev = t.next)) {
case 0:
return (
(t.next = 2),
this.apiClient.post(
"/public/inspiration/category/search",
)
);
case 2:
return (e = t.sent), t.abrupt("return", e);
case 4:
case "end":
return t.stop();
}
},
t,
this,
);
}),
)),
function () {
return h.apply(this, arguments);
}),
},
{
key: "inspirationSearch",
value:
((y = oL(
oO().mark(function t(e) {
var r;
return oO().wrap(
function (t) {
for (;;)
switch ((t.prev = t.next)) {
case 0:
return (
(t.next = 2),
this.apiClient.post(
"/public/inspiration/search",
e,
)
);
case 2:
return (r = t.sent), t.abrupt("return", r);
case 4:
case "end":
return t.stop();
}
},
t,
this,
);
}),
)),
function (t) {
return y.apply(this, arguments);
}),
},
]),
(function (t, e) {
for (var r = 0; r < e.length; r++) {
var n = e[r];
(n.enumerable = n.enumerable || !1),
(n.configurable = !0),
"value" in n && (n.writable = !0),
Object.defineProperty(
t,
(function (t) {
var e = (function (t, e) {
if ("object" != ox(t) || !t) return t;
var r = t[Symbol.toPrimitive];
if (void 0 !== r) {
var n = r.call(t, e || "default");
if ("object" != ox(n)) return n;
throw TypeError(
"@@toPrimitive must return a primitive value.",
);
}
return ("string" === e ? String : Number)(t);
})(t, "string");
return "symbol" == ox(e) ? e : String(e);
})(n.key),
n,
);
}
})(g.prototype, v),
Object.defineProperty(g, "prototype", { writable: !1 }),
g
);
})(eG);
function oP(t) {
return (oP =
"function" == typeof Symbol && "symbol" == typeof Symbol.iterator
? function (t) {
return typeof t;
}
: function (t) {
return t &&
"function" == typeof Symbol &&
t.constructor === Symbol &&
t !== Symbol.prototype
? "symbol"
: typeof t;
})(t);
}
function oS() {
oS = function () {
return e;
};
var t,
e = {},
r = Object.prototype,
n = r.hasOwnProperty,
o =
Object.defineProperty ||
function (t, e, r) {
t[e] = r.value;
},
i = "function" == typeof Symbol ? Symbol : {},
a = i.iterator || "@@iterator",
u = i.asyncIterator || "@@asyncIterator",
c = i.toStringTag || "@@toStringTag";
function s(t, e, r) {
return (
Object.defineProperty(t, e, {
value: r,
enumerable: !0,
configurable: !0,
writable: !0,
}),
t[e]
);
}
try {
s({}, "");
} catch (t) {
s = function (t, e, r) {
return (t[e] = r);
};
}
function l(e, r, n, i) {
var a,
u,
c,
s,
l = Object.create((r && r.prototype instanceof d ? r : d).prototype);
return (
o(l, "_invoke", {
value:
((a = e),
(u = n),
(c = new k(i || [])),
(s = p),
function (e, r) {
if (s === h) throw Error("Generator is already running");
if (s === y) {
if ("throw" === e) throw r;
return { value: t, done: !0 };
}
for (c.method = e, c.arg = r; ; ) {
var n = c.delegate;
if (n) {
var o = (function e(r, n) {
var o = n.method,
i = r.iterator[o];
if (i === t)
return (
(n.delegate = null),
("throw" === o &&
r.iterator.return &&
((n.method = "return"),
(n.arg = t),
e(r, n),
"throw" === n.method)) ||
("return" !== o &&
((n.method = "throw"),
(n.arg = TypeError(
"The iterator does not provide a '" +
o +
"' method",
)))),
v
);
var a = f(i, r.iterator, n.arg);
if ("throw" === a.type)
return (
(n.method = "throw"),
(n.arg = a.arg),
(n.delegate = null),
v
);
var u = a.arg;
return u
? u.done
? ((n[r.resultName] = u.value),
(n.next = r.nextLoc),
"return" !== n.method &&
((n.method = "next"), (n.arg = t)),
(n.delegate = null),
v)
: u
: ((n.method = "throw"),
(n.arg = TypeError(
"iterator result is not an object",
)),
(n.delegate = null),
v);
})(n, c);
if (o) {
if (o === v) continue;
return o;
}
}
if ("next" === c.method) c.sent = c._sent = c.arg;
else if ("throw" === c.method) {
if (s === p) throw ((s = y), c.arg);
c.dispatchException(c.arg);
} else "return" === c.method && c.abrupt("return", c.arg);
s = h;
var i = f(a, u, c);
if ("normal" === i.type) {
if (((s = c.done ? y : "suspendedYield"), i.arg === v))
continue;
return { value: i.arg, done: c.done };
}
"throw" === i.type &&
((s = y), (c.method = "throw"), (c.arg = i.arg));
}
}),
}),
l
);
}
function f(t, e, r) {
try {
return { type: "normal", arg: t.call(e, r) };
} catch (t) {
return { type: "throw", arg: t };
}
}
e.wrap = l;
var p = "suspendedStart",
h = "executing",
y = "completed",
v = {};
function d() {}
function g() {}
function m() {}
var b = {};
s(b, a, function () {
return this;
});
var w = Object.getPrototypeOf,
x = w && w(w(P([])));
x && x !== r && n.call(x, a) && (b = x);
var O = (m.prototype = d.prototype = Object.create(b));
function E(t) {
["next", "throw", "return"].forEach(function (e) {
s(t, e, function (t) {
return this._invoke(e, t);
});
});
}
function L(t, e) {
var r;
o(this, "_invoke", {
value: function (o, i) {
function a() {
return new e(function (r, a) {
!(function r(o, i, a, u) {
var c = f(t[o], t, i);
if ("throw" !== c.type) {
var s = c.arg,
l = s.value;
return l && "object" == oP(l) && n.call(l, "__await")
? e.resolve(l.__await).then(
function (t) {
r("next", t, a, u);
},
function (t) {
r("throw", t, a, u);
},
)
: e.resolve(l).then(
function (t) {
(s.value = t), a(s);
},
function (t) {
return r("throw", t, a, u);
},
);
}
u(c.arg);
})(o, i, r, a);
});
}
return (r = r ? r.then(a, a) : a());
},
});
}
function j(t) {
var e = { tryLoc: t[0] };
1 in t && (e.catchLoc = t[1]),
2 in t && ((e.finallyLoc = t[2]), (e.afterLoc = t[3])),
this.tryEntries.push(e);
}
function _(t) {
var e = t.completion || {};
(e.type = "normal"), delete e.arg, (t.completion = e);
}
function k(t) {
(this.tryEntries = [{ tryLoc: "root" }]),
t.forEach(j, this),
this.reset(!0);
}
function P(e) {
if (e || "" === e) {
var r = e[a];
if (r) return r.call(e);
if ("function" == typeof e.next) return e;
if (!isNaN(e.length)) {
var o = -1,
i = function r() {
for (; ++o < e.length; )
if (n.call(e, o)) return (r.value = e[o]), (r.done = !1), r;
return (r.value = t), (r.done = !0), r;
};
return (i.next = i);
}
}
throw TypeError(oP(e) + " is not iterable");
}
return (
(g.prototype = m),
o(O, "constructor", { value: m, configurable: !0 }),
o(m, "constructor", { value: g, configurable: !0 }),
(g.displayName = s(m, c, "GeneratorFunction")),
(e.isGeneratorFunction = function (t) {
var e = "function" == typeof t && t.constructor;
return (
!!e &&
(e === g || "GeneratorFunction" === (e.displayName || e.name))
);
}),
(e.mark = function (t) {
return (
Object.setPrototypeOf
? Object.setPrototypeOf(t, m)
: ((t.__proto__ = m), s(t, c, "GeneratorFunction")),
(t.prototype = Object.create(O)),
t
);
}),
(e.awrap = function (t) {
return { __await: t };
}),
E(L.prototype),
s(L.prototype, u, function () {
return this;
}),
(e.AsyncIterator = L),
(e.async = function (t, r, n, o, i) {
void 0 === i && (i = Promise);
var a = new L(l(t, r, n, o), i);
return e.isGeneratorFunction(r)
? a
: a.next().then(function (t) {
return t.done ? t.value : a.next();
});
}),
E(O),
s(O, c, "Generator"),
s(O, a, function () {
return this;
}),
s(O, "toString", function () {
return "[object Generator]";
}),
(e.keys = function (t) {
var e = Object(t),
r = [];
for (var n in e) r.push(n);
return (
r.reverse(),
function t() {
for (; r.length; ) {
var n = r.pop();
if (n in e) return (t.value = n), (t.done = !1), t;
}
return (t.done = !0), t;
}
);
}),
(e.values = P),
(k.prototype = {
constructor: k,
reset: function (e) {
if (
((this.prev = 0),
(this.next = 0),
(this.sent = this._sent = t),
(this.done = !1),
(this.delegate = null),
(this.method = "next"),
(this.arg = t),
this.tryEntries.forEach(_),
!e)
)
for (var r in this)
"t" === r.charAt(0) &&
n.call(this, r) &&
!isNaN(+r.slice(1)) &&
(this[r] = t);
},
stop: function () {
this.done = !0;
var t = this.tryEntries[0].completion;
if ("throw" === t.type) throw t.arg;
return this.rval;
},
dispatchException: function (e) {
if (this.done) throw e;
var r = this;
function o(n, o) {
return (
(u.type = "throw"),
(u.arg = e),
(r.next = n),
o && ((r.method = "next"), (r.arg = t)),
!!o
);
}
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
var a = this.tryEntries[i],
u = a.completion;
if ("root" === a.tryLoc) return o("end");
if (a.tryLoc <= this.prev) {
var c = n.call(a, "catchLoc"),
s = n.call(a, "finallyLoc");
if (c && s) {
if (this.prev < a.catchLoc) return o(a.catchLoc, !0);
if (this.prev < a.finallyLoc) return o(a.finallyLoc);
} else if (c) {
if (this.prev < a.catchLoc) return o(a.catchLoc, !0);
} else {
if (!s) throw Error("try statement without catch or finally");
if (this.prev < a.finallyLoc) return o(a.finallyLoc);
}
}
}
},
abrupt: function (t, e) {
for (var r = this.tryEntries.length - 1; r >= 0; --r) {
var o = this.tryEntries[r];
if (
o.tryLoc <= this.prev &&
n.call(o, "finallyLoc") &&
this.prev < o.finallyLoc
) {
var i = o;
break;
}
}
i &&
("break" === t || "continue" === t) &&
i.tryLoc <= e &&
e <= i.finallyLoc &&
(i = null);
var a = i ? i.completion : {};
return (
(a.type = t),
(a.arg = e),
i
? ((this.method = "next"), (this.next = i.finallyLoc), v)
: this.complete(a)
);
},
complete: function (t, e) {
if ("throw" === t.type) throw t.arg;
return (
"break" === t.type || "continue" === t.type
? (this.next = t.arg)
: "return" === t.type
? ((this.rval = this.arg = t.arg),
(this.method = "return"),
(this.next = "end"))
: "normal" === t.type && e && (this.next = e),
v
);
},
finish: function (t) {
for (var e = this.tryEntries.length - 1; e >= 0; --e) {
var r = this.tryEntries[e];
if (r.finallyLoc === t)
return this.complete(r.completion, r.afterLoc), _(r), v;
}
},
catch: function (t) {
for (var e = this.tryEntries.length - 1; e >= 0; --e) {
var r = this.tryEntries[e];
if (r.tryLoc === t) {
var n = r.completion;
if ("throw" === n.type) {
var o = n.arg;
_(r);
}
return o;
}
}
throw Error("illegal catch attempt");
},
delegateYield: function (e, r, n) {
return (
(this.delegate = { iterator: P(e), resultName: r, nextLoc: n }),
"next" === this.method && (this.arg = t),
v
);
},
}),
e
);
}
function oT(t, e, r, n, o, i, a) {
try {
var u = t[i](a),
c = u.value;
} catch (t) {
r(t);
return;
}
u.done ? e(c) : Promise.resolve(c).then(n, o);
}
t.s(["IncomeService", () => ok], 706385), t.s([], 842795);
function oC(t, e) {
return (oC = Object.setPrototypeOf
? Object.setPrototypeOf.bind()
: function (t, e) {
return (t.__proto__ = e), t;
})(t, e);
}
function oR(t) {
return (oR = Object.setPrototypeOf
? Object.getPrototypeOf.bind()
: function (t) {
return t.__proto__ || Object.getPrototypeOf(t);
})(t);
}
var oN = (function (t) {
if ("function" != typeof t && null !== t)
throw TypeError("Super expression must either be null or a function");
(a.prototype = Object.create(t && t.prototype, {
constructor: { value: a, writable: !0, configurable: !0 },
})),
Object.defineProperty(a, "prototype", { writable: !1 }),
t && oC(a, t);
var e,
r,
n,
o,
i =
((e = (function () {
if (
"u" < typeof Reflect ||
!Reflect.construct ||
Reflect.construct.sham
)
return !1;
if ("function" == typeof Proxy) return !0;
try {
return (
Boolean.prototype.valueOf.call(
Reflect.construct(Boolean, [], function () {}),
),
!0
);
} catch (t) {
return !1;
}
})()),
function () {
var t,
r = oR(a);
return (
(t = e
? Reflect.construct(r, arguments, oR(this).constructor)
: r.apply(this, arguments)),
(function (t, e) {
if (e && ("object" === oP(e) || "function" == typeof e))
return e;
if (void 0 !== e)
throw TypeError(
"Derived constructors may only return object or undefined",
);
var r = t;
if (void 0 === r)
throw ReferenceError(
"this hasn't been initialised - super() hasn't been called",
);
return r;
})(this, t)
);
});
function a() {
if (!(this instanceof a))
throw TypeError("Cannot call a class as a function");
return i.apply(this, arguments);
}
return (
(o = [
{
key: "getImageOssReview",
value:
((r = oS().mark(function t() {
return oS().wrap(function (t) {
for (;;)
switch ((t.prev = t.next)) {
case 0:
return t.abrupt("return", !1);
case 1:
case "end":
return t.stop();
}
}, t);
})),
(n = function () {
var t = this,
e = arguments;
return new Promise(function (n, o) {
var i = r.apply(t, e);
function a(t) {
oT(i, n, o, a, u, "next", t);
}
function u(t) {
oT(i, n, o, a, u, "throw", t);
}
a(void 0);
});
}),
function () {
return n.apply(this, arguments);
}),
},
]),
(function (t, e) {
for (var r = 0; r < e.length; r++) {
var n = e[r];
(n.enumerable = n.enumerable || !1),
(n.configurable = !0),
"value" in n && (n.writable = !0),
Object.defineProperty(
t,
(function (t) {
var e = (function (t, e) {
if ("object" != oP(t) || !t) return t;
var r = t[Symbol.toPrimitive];
if (void 0 !== r) {
var n = r.call(t, e || "default");
if ("object" != oP(n)) return n;
throw TypeError(
"@@toPrimitive must return a primitive value.",
);
}
return ("string" === e ? String : Number)(t);
})(t, "string");
return "symbol" == oP(e) ? e : String(e);
})(n.key),
n,
);
}
})(a.prototype, o),
Object.defineProperty(a, "prototype", { writable: !1 }),
a
);
})(eG);
function oU(t) {
return (oU =
"function" == typeof Symbol && "symbol" == typeof Symbol.iterator
? function (t) {
return typeof t;
}
: function (t) {
return t &&
"function" == typeof Symbol &&
t.constructor === Symbol &&
t !== Symbol.prototype
? "symbol"
: typeof t;
})(t);
}
function oA() {
oA = function () {
return e;
};
var t,
e = {},
r = Object.prototype,
n = r.hasOwnProperty,
o =
Object.defineProperty ||
function (t, e, r) {
t[e] = r.value;
},
i = "function" == typeof Symbol ? Symbol : {},
a = i.iterator || "@@iterator",
u = i.asyncIterator || "@@asyncIterator",
c = i.toStringTag || "@@toStringTag";
function s(t, e, r) {
return (
Object.defineProperty(t, e, {
value: r,
enumerable: !0,
configurable: !0,
writable: !0,
}),
t[e]
);
}
try {
s({}, "");
} catch (t) {
s = function (t, e, r) {
return (t[e] = r);
};
}
function l(e, r, n, i) {
var a,
u,
c,
s,
l = Object.create((r && r.prototype instanceof d ? r : d).prototype);
return (
o(l, "_invoke", {
value:
((a = e),
(u = n),
(c = new k(i || [])),
(s = p),
function (e, r) {
if (s === h) throw Error("Generator is already running");
if (s === y) {
if ("throw" === e) throw r;
return { value: t, done: !0 };
}
for (c.method = e, c.arg = r; ; ) {
var n = c.delegate;
if (n) {
var o = (function e(r, n) {
var o = n.method,
i = r.iterator[o];
if (i === t)
return (
(n.delegate = null),
("throw" === o &&
r.iterator.return &&
((n.method = "return"),
(n.arg = t),
e(r, n),
"throw" === n.method)) ||
("return" !== o &&
((n.method = "throw"),
(n.arg = TypeError(
"The iterator does not provide a '" +
o +
"' method",
)))),
v
);
var a = f(i, r.iterator, n.arg);
if ("throw" === a.type)
return (
(n.method = "throw"),
(n.arg = a.arg),
(n.delegate = null),
v
);
var u = a.arg;
return u
? u.done
? ((n[r.resultName] = u.value),
(n.next = r.nextLoc),
"return" !== n.method &&
((n.method = "next"), (n.arg = t)),
(n.delegate = null),
v)
: u
: ((n.method = "throw"),
(n.arg = TypeError(
"iterator result is not an object",
)),
(n.delegate = null),
v);
})(n, c);
if (o) {
if (o === v) continue;
return o;
}
}
if ("next" === c.method) c.sent = c._sent = c.arg;
else if ("throw" === c.method) {
if (s === p) throw ((s = y), c.arg);
c.dispatchException(c.arg);
} else "return" === c.method && c.abrupt("return", c.arg);
s = h;
var i = f(a, u, c);
if ("normal" === i.type) {
if (((s = c.done ? y : "suspendedYield"), i.arg === v))
continue;
return { value: i.arg, done: c.done };
}
"throw" === i.type &&
((s = y), (c.method = "throw"), (c.arg = i.arg));
}
}),
}),
l
);
}
function f(t, e, r) {
try {
return { type: "normal", arg: t.call(e, r) };
} catch (t) {
return { type: "throw", arg: t };
}
}
e.wrap = l;
var p = "suspendedStart",
h = "executing",
y = "completed",
v = {};
function d() {}
function g() {}
function m() {}
var b = {};
s(b, a, function () {
return this;
});
var w = Object.getPrototypeOf,
x = w && w(w(P([])));
x && x !== r && n.call(x, a) && (b = x);
var O = (m.prototype = d.prototype = Object.create(b));
function E(t) {
["next", "throw", "return"].forEach(function (e) {
s(t, e, function (t) {
return this._invoke(e, t);
});
});
}
function L(t, e) {
var r;
o(this, "_invoke", {
value: function (o, i) {
function a() {
return new e(function (r, a) {
!(function r(o, i, a, u) {
var c = f(t[o], t, i);
if ("throw" !== c.type) {
var s = c.arg,
l = s.value;
return l && "object" == oU(l) && n.call(l, "__await")
? e.resolve(l.__await).then(
function (t) {
r("next", t, a, u);
},
function (t) {
r("throw", t, a, u);
},
)
: e.resolve(l).then(
function (t) {
(s.value = t), a(s);
},
function (t) {
return r("throw", t, a, u);
},
);
}
u(c.arg);
})(o, i, r, a);
});
}
return (r = r ? r.then(a, a) : a());
},
});
}
function j(t) {
var e = { tryLoc: t[0] };
1 in t && (e.catchLoc = t[1]),
2 in t && ((e.finallyLoc = t[2]), (e.afterLoc = t[3])),
this.tryEntries.push(e);
}
function _(t) {
var e = t.completion || {};
(e.type = "normal"), delete e.arg, (t.completion = e);
}
function k(t) {
(this.tryEntries = [{ tryLoc: "root" }]),
t.forEach(j, this),
this.reset(!0);
}
function P(e) {
if (e || "" === e) {
var r = e[a];
if (r) return r.call(e);
if ("function" == typeof e.next) return e;
if (!isNaN(e.length)) {
var o = -1,
i = function r() {
for (; ++o < e.length; )
if (n.call(e, o)) return (r.value = e[o]), (r.done = !1), r;
return (r.value = t), (r.done = !0), r;
};
return (i.next = i);
}
}
throw TypeError(oU(e) + " is not iterable");
}
return (
(g.prototype = m),
o(O, "constructor", { value: m, configurable: !0 }),
o(m, "constructor", { value: g, configurable: !0 }),
(g.displayName = s(m, c, "GeneratorFunction")),
(e.isGeneratorFunction = function (t) {
var e = "function" == typeof t && t.constructor;
return (
!!e &&
(e === g || "GeneratorFunction" === (e.displayName || e.name))
);
}),
(e.mark = function (t) {
return (
Object.setPrototypeOf
? Object.setPrototypeOf(t, m)
: ((t.__proto__ = m), s(t, c, "GeneratorFunction")),
(t.prototype = Object.create(O)),
t
);
}),
(e.awrap = function (t) {
return { __await: t };
}),
E(L.prototype),
s(L.prototype, u, function () {
return this;
}),
(e.AsyncIterator = L),
(e.async = function (t, r, n, o, i) {
void 0 === i && (i = Promise);
var a = new L(l(t, r, n, o), i);
return e.isGeneratorFunction(r)
? a
: a.next().then(function (t) {
return t.done ? t.value : a.next();
});
}),
E(O),
s(O, c, "Generator"),
s(O, a, function () {
return this;
}),
s(O, "toString", function () {
return "[object Generator]";
}),
(e.keys = function (t) {
var e = Object(t),
r = [];
for (var n in e) r.push(n);
return (
r.reverse(),
function t() {
for (; r.length; ) {
var n = r.pop();
if (n in e) return (t.value = n), (t.done = !1), t;
}
return (t.done = !0), t;
}
);
}),
(e.values = P),
(k.prototype = {
constructor: k,
reset: function (e) {
if (
((this.prev = 0),
(this.next = 0),
(this.sent = this._sent = t),
(this.done = !1),
(this.delegate = null),
(this.method = "next"),
(this.arg = t),
this.tryEntries.forEach(_),
!e)
)
for (var r in this)
"t" === r.charAt(0) &&
n.call(this, r) &&
!isNaN(+r.slice(1)) &&
(this[r] = t);
},
stop: function () {
this.done = !0;
var t = this.tryEntries[0].completion;
if ("throw" === t.type) throw t.arg;
return this.rval;
},
dispatchException: function (e) {
if (this.done) throw e;
var r = this;
function o(n, o) {
return (
(u.type = "throw"),
(u.arg = e),
(r.next = n),
o && ((r.method = "next"), (r.arg = t)),
!!o
);
}
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
var a = this.tryEntries[i],
u = a.completion;
if ("root" === a.tryLoc) return o("end");
if (a.tryLoc <= this.prev) {
var c = n.call(a, "catchLoc"),
s = n.call(a, "finallyLoc");
if (c && s) {
if (this.prev < a.catchLoc) return o(a.catchLoc, !0);
if (this.prev < a.finallyLoc) return o(a.finallyLoc);
} else if (c) {
if (this.prev < a.catchLoc) return o(a.catchLoc, !0);
} else {
if (!s) throw Error("try statement without catch or finally");
if (this.prev < a.finallyLoc) return o(a.finallyLoc);
}
}
}
},
abrupt: function (t, e) {
for (var r = this.tryEntries.length - 1; r >= 0; --r) {
var o = this.tryEntries[r];
if (
o.tryLoc <= this.prev &&
n.call(o, "finallyLoc") &&
this.prev < o.finallyLoc
) {
var i = o;
break;
}
}
i &&
("break" === t || "continue" === t) &&
i.tryLoc <= e &&
e <= i.finallyLoc &&
(i = null);
var a = i ? i.completion : {};
return (
(a.type = t),
(a.arg = e),
i
? ((this.method = "next"), (this.next = i.finallyLoc), v)
: this.complete(a)
);
},
complete: function (t, e) {
if ("throw" === t.type) throw t.arg;
return (
"break" === t.type || "continue" === t.type
? (this.next = t.arg)
: "return" === t.type
? ((this.rval = this.arg = t.arg),
(this.method = "return"),
(this.next = "end"))
: "normal" === t.type && e && (this.next = e),
v
);
},
finish: function (t) {
for (var e = this.tryEntries.length - 1; e >= 0; --e) {
var r = this.tryEntries[e];
if (r.finallyLoc === t)
return this.complete(r.completion, r.afterLoc), _(r), v;
}
},
catch: function (t) {
for (var e = this.tryEntries.length - 1; e >= 0; --e) {
var r = this.tryEntries[e];
if (r.tryLoc === t) {
var n = r.completion;
if ("throw" === n.type) {
var o = n.arg;
_(r);
}
return o;
}
}
throw Error("illegal catch attempt");
},
delegateYield: function (e, r, n) {
return (
(this.delegate = { iterator: P(e), resultName: r, nextLoc: n }),
"next" === this.method && (this.arg = t),
v
);
},
}),
e
);
}
function oI(t, e, r, n, o, i, a) {
try {
var u = t[i](a),
c = u.value;
} catch (t) {
r(t);
return;
}
u.done ? e(c) : Promise.resolve(c).then(n, o);
}
function oF(t) {
return function () {
var e = this,
r = arguments;
return new Promise(function (n, o) {
var i = t.apply(e, r);
function a(t) {
oI(i, n, o, a, u, "next", t);
}
function u(t) {
oI(i, n, o, a, u, "throw", t);
}
a(void 0);
});
};
}
t.s(["OssService", () => oN], 439143);
function oG(t, e) {
return (oG = Object.setPrototypeOf
? Object.setPrototypeOf.bind()
: function (t, e) {
return (t.__proto__ = e), t;
})(t, e);
}
function oD(t) {
if (void 0 === t)
throw ReferenceError(
"this hasn't been initialised - super() hasn't been called",
);
return t;
}
function oB(t) {
return (oB = Object.setPrototypeOf
? Object.getPrototypeOf.bind()
: function (t) {
return t.__proto__ || Object.getPrototypeOf(t);
})(t);
}
function oM(t) {
var e = (function (t, e) {
if ("object" != oU(t) || !t) return t;
var r = t[Symbol.toPrimitive];
if (void 0 !== r) {
var n = r.call(t, e || "default");
if ("object" != oU(n)) return n;
throw TypeError("@@toPrimitive must return a primitive value.");
}
return ("string" === e ? String : Number)(t);
})(t, "string");
return "symbol" == oU(e) ? e : String(e);
}
var oq = (function (t) {
if ("function" != typeof t && null !== t)
throw TypeError("Super expression must either be null or a function");
(s.prototype = Object.create(t && t.prototype, {
constructor: { value: s, writable: !0, configurable: !0 },
})),
Object.defineProperty(s, "prototype", { writable: !1 }),
t && oG(s, t);
var e,
r,
n,
o,
i,
a,
u,
c =
((e = (function () {
if (
"u" < typeof Reflect ||
!Reflect.construct ||
Reflect.construct.sham
)
return !1;
if ("function" == typeof Proxy) return !0;
try {
return (
Boolean.prototype.valueOf.call(
Reflect.construct(Boolean, [], function () {}),
),
!0
);
} catch (t) {
return !1;
}
})()),
function () {
var t,
r = oB(s);
return (
(t = e
? Reflect.construct(r, arguments, oB(this).constructor)
: r.apply(this, arguments)),
(function (t, e) {
if (e && ("object" === oU(e) || "function" == typeof e))
return e;
if (void 0 !== e)
throw TypeError(
"Derived constructors may only return object or undefined",
);
return oD(t);
})(this, t)
);
});
function s() {
var t, e, r, n;
if (!(this instanceof s))
throw TypeError("Cannot call a class as a function");
for (var o = arguments.length, i = Array(o), a = 0; a < o; a++)
i[a] = arguments[a];
return (
(e = oD((t = c.call.apply(c, [this].concat(i))))),
(r = "getActivityConfig"),
(n = oF(
oA().mark(function e() {
var r,
n,
o = arguments;
return oA().wrap(function (e) {
for (;;)
switch ((e.prev = e.next)) {
case 0:
return (
(r =
o.length > 0 && void 0 !== o[0]
? o[0]
: "CHINESE_1111"),
(e.next = 3),
t.apiClient.get(
"/activity/config?activityEnum=".concat(r),
)
);
case 3:
return (n = e.sent), e.abrupt("return", n.data);
case 5:
case "end":
return e.stop();
}
}, e);
}),
)),
(r = oM(r)) in e
? Object.defineProperty(e, r, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0,
})
: (e[r] = n),
t
);
}
return (
(u = [
{
key: "getNpsConfig",
value:
((r = oF(
oA().mark(function t() {
var e;
return oA().wrap(
function (t) {
for (;;)
switch ((t.prev = t.next)) {
case 0:
return (
(t.next = 2),
this.apiClient.post("/nps/config/get")
);
case 2:
return (e = t.sent), t.abrupt("return", e);
case 4:
case "end":
return t.stop();
}
},
t,
this,
);
}),
)),
function () {
return r.apply(this, arguments);
}),
},
{
key: "getChannelConfig",
value:
((n = oF(
oA().mark(function t(e) {
var r;
return oA().wrap(
function (t) {
for (;;)
switch ((t.prev = t.next)) {
case 0:
return (
(t.next = 2),
this.apiClient.get(
"/landing-activities/getById?id=".concat(e),
{},
)
);
case 2:
return (r = t.sent), t.abrupt("return", r);
case 4:
case "end":
return t.stop();
}
},
t,
this,
);
}),
)),
function (t) {
return n.apply(this, arguments);
}),
},
{
key: "getUploadPicUrl",
value:
((o = oF(
oA().mark(function t(e) {
var r;
return oA().wrap(
function (t) {
for (;;)
switch ((t.prev = t.next)) {
case 0:
return (
(t.next = 2),
this.apiClient.post(
"/img/getImageByUrl?imageUrl=".concat(
encodeURIComponent(e),
),
)
);
case 2:
return (r = t.sent), t.abrupt("return", r);
case 4:
case "end":
return t.stop();
}
},
t,
this,
);
}),
)),
function (t) {
return o.apply(this, arguments);
}),
},
{
key: "getModelFilterConfig",
value:
((i = oF(
oA().mark(function t(e) {
var r;
return oA().wrap(
function (t) {
for (;;)
switch ((t.prev = t.next)) {
case 0:
return (
(t.next = 2),
this.apiClient.get("/public/search-cond", {
params: { type: e },
})
);
case 2:
return (r = t.sent), t.abrupt("return", r);
case 4:
case "end":
return t.stop();
}
},
t,
this,
);
}),
)),
function (t) {
return i.apply(this, arguments);
}),
},
{
key: "getDwonLoadClient",
value:
((a = oF(
oA().mark(function t(e) {
var r;
return oA().wrap(
function (t) {
for (;;)
switch ((t.prev = t.next)) {
case 0:
return (
(t.next = 2),
this.apiClient.get("/localend/checkUpdate", {
params: e,
})
);
case 2:
return (r = t.sent.data), t.abrupt("return", r);
case 5:
case "end":
return t.stop();
}
},
t,
this,
);
}),
)),
function (t) {
return a.apply(this, arguments);
}),
},
]),
(function (t, e) {
for (var r = 0; r < e.length; r++) {
var n = e[r];
(n.enumerable = n.enumerable || !1),
(n.configurable = !0),
"value" in n && (n.writable = !0),
Object.defineProperty(t, oM(n.key), n);
}
})(s.prototype, u),
Object.defineProperty(s, "prototype", { writable: !1 }),
s
);
})(eG);
function oV(t) {
return (oV =
"function" == typeof Symbol && "symbol" == typeof Symbol.iterator
? function (t) {
return typeof t;
}
: function (t) {
return t &&
"function" == typeof Symbol &&
t.constructor === Symbol &&
t !== Symbol.prototype
? "symbol"
: typeof t;
})(t);
}
function oH() {
oH = function () {
return e;
};
var t,
e = {},
r = Object.prototype,
n = r.hasOwnProperty,
o =
Object.defineProperty ||
function (t, e, r) {
t[e] = r.value;
},
i = "function" == typeof Symbol ? Symbol : {},
a = i.iterator || "@@iterator",
u = i.asyncIterator || "@@asyncIterator",
c = i.toStringTag || "@@toStringTag";
function s(t, e, r) {
return (
Object.defineProperty(t, e, {
value: r,
enumerable: !0,
configurable: !0,
writable: !0,
}),
t[e]
);
}
try {
s({}, "");
} catch (t) {
s = function (t, e, r) {
return (t[e] = r);
};
}
function l(e, r, n, i) {
var a,
u,
c,
s,
l = Object.create((r && r.prototype instanceof d ? r : d).prototype);
return (
o(l, "_invoke", {
value:
((a = e),
(u = n),
(c = new k(i || [])),
(s = p),
function (e, r) {
if (s === h) throw Error("Generator is already running");
if (s === y) {
if ("throw" === e) throw r;
return { value: t, done: !0 };
}
for (c.method = e, c.arg = r; ; ) {
var n = c.delegate;
if (n) {
var o = (function e(r, n) {
var o = n.method,
i = r.iterator[o];
if (i === t)
return (
(n.delegate = null),
("throw" === o &&
r.iterator.return &&
((n.method = "return"),
(n.arg = t),
e(r, n),
"throw" === n.method)) ||
("return" !== o &&
((n.method = "throw"),
(n.arg = TypeError(
"The iterator does not provide a '" +
o +
"' method",
)))),
v
);
var a = f(i, r.iterator, n.arg);
if ("throw" === a.type)
return (
(n.method = "throw"),
(n.arg = a.arg),
(n.delegate = null),
v
);
var u = a.arg;
return u
? u.done
? ((n[r.resultName] = u.value),
(n.next = r.nextLoc),
"return" !== n.method &&
((n.method = "next"), (n.arg = t)),
(n.delegate = null),
v)
: u
: ((n.method = "throw"),
(n.arg = TypeError(
"iterator result is not an object",
)),
(n.delegate = null),
v);
})(n, c);
if (o) {
if (o === v) continue;
return o;
}
}
if ("next" === c.method) c.sent = c._sent = c.arg;
else if ("throw" === c.method) {
if (s === p) throw ((s = y), c.arg);
c.dispatchException(c.arg);
} else "return" === c.method && c.abrupt("return", c.arg);
s = h;
var i = f(a, u, c);
if ("normal" === i.type) {
if (((s = c.done ? y : "suspendedYield"), i.arg === v))
continue;
return { value: i.arg, done: c.done };
}
"throw" === i.type &&
((s = y), (c.method = "throw"), (c.arg = i.arg));
}
}),
}),
l
);
}
function f(t, e, r) {
try {
return { type: "normal", arg: t.call(e, r) };
} catch (t) {
return { type: "throw", arg: t };
}
}
e.wrap = l;
var p = "suspendedStart",
h = "executing",
y = "completed",
v = {};
function d() {}
function g() {}
function m() {}
var b = {};
s(b, a, function () {
return this;
});
var w = Object.getPrototypeOf,
x = w && w(w(P([])));
x && x !== r && n.call(x, a) && (b = x);
var O = (m.prototype = d.prototype = Object.create(b));
function E(t) {
["next", "throw", "return"].forEach(function (e) {
s(t, e, function (t) {
return this._invoke(e, t);
});
});
}
function L(t, e) {
var r;
o(this, "_invoke", {
value: function (o, i) {
function a() {
return new e(function (r, a) {
!(function r(o, i, a, u) {
var c = f(t[o], t, i);
if ("throw" !== c.type) {
var s = c.arg,
l = s.value;
return l && "object" == oV(l) && n.call(l, "__await")
? e.resolve(l.__await).then(
function (t) {
r("next", t, a, u);
},
function (t) {
r("throw", t, a, u);
},
)
: e.resolve(l).then(
function (t) {
(s.value = t), a(s);
},
function (t) {
return r("throw", t, a, u);
},
);
}
u(c.arg);
})(o, i, r, a);
});
}
return (r = r ? r.then(a, a) : a());
},
});
}
function j(t) {
var e = { tryLoc: t[0] };
1 in t && (e.catchLoc = t[1]),
2 in t && ((e.finallyLoc = t[2]), (e.afterLoc = t[3])),
this.tryEntries.push(e);
}
function _(t) {
var e = t.completion || {};
(e.type = "normal"), delete e.arg, (t.completion = e);
}
function k(t) {
(this.tryEntries = [{ tryLoc: "root" }]),
t.forEach(j, this),
this.reset(!0);
}
function P(e) {
if (e || "" === e) {
var r = e[a];
if (r) return r.call(e);
if ("function" == typeof e.next) return e;
if (!isNaN(e.length)) {
var o = -1,
i = function r() {
for (; ++o < e.length; )
if (n.call(e, o)) return (r.value = e[o]), (r.done = !1), r;
return (r.value = t), (r.done = !0), r;
};
return (i.next = i);
}
}
throw TypeError(oV(e) + " is not iterable");
}
return (
(g.prototype = m),
o(O, "constructor", { value: m, configurable: !0 }),
o(m, "constructor", { value: g, configurable: !0 }),
(g.displayName = s(m, c, "GeneratorFunction")),
(e.isGeneratorFunction = function (t) {
var e = "function" == typeof t && t.constructor;
return (
!!e &&
(e === g || "GeneratorFunction" === (e.displayName || e.name))
);
}),
(e.mark = function (t) {
return (
Object.setPrototypeOf
? Object.setPrototypeOf(t, m)
: ((t.__proto__ = m), s(t, c, "GeneratorFunction")),
(t.prototype = Object.create(O)),
t
);
}),
(e.awrap = function (t) {
return { __await: t };
}),
E(L.prototype),
s(L.prototype, u, function () {
return this;
}),
(e.AsyncIterator = L),
(e.async = function (t, r, n, o, i) {
void 0 === i && (i = Promise);
var a = new L(l(t, r, n, o), i);
return e.isGeneratorFunction(r)
? a
: a.next().then(function (t) {
return t.done ? t.value : a.next();
});
}),
E(O),
s(O, c, "Generator"),
s(O, a, function () {
return this;
}),
s(O, "toString", function () {
return "[object Generator]";
}),
(e.keys = function (t) {
var e = Object(t),
r = [];
for (var n in e) r.push(n);
return (
r.reverse(),
function t() {
for (; r.length; ) {
var n = r.pop();
if (n in e) return (t.value = n), (t.done = !1), t;
}
return (t.done = !0), t;
}
);
}),
(e.values = P),
(k.prototype = {
constructor: k,
reset: function (e) {
if (
((this.prev = 0),
(this.next = 0),
(this.sent = this._sent = t),
(this.done = !1),
(this.delegate = null),
(this.method = "next"),
(this.arg = t),
this.tryEntries.forEach(_),
!e)
)
for (var r in this)
"t" === r.charAt(0) &&
n.call(this, r) &&
!isNaN(+r.slice(1)) &&
(this[r] = t);
},
stop: function () {
this.done = !0;
var t = this.tryEntries[0].completion;
if ("throw" === t.type) throw t.arg;
return this.rval;
},
dispatchException: function (e) {
if (this.done) throw e;
var r = this;
function o(n, o) {
return (
(u.type = "throw"),
(u.arg = e),
(r.next = n),
o && ((r.method = "next"), (r.arg = t)),
!!o
);
}
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
var a = this.tryEntries[i],
u = a.completion;
if ("root" === a.tryLoc) return o("end");
if (a.tryLoc <= this.prev) {
var c = n.call(a, "catchLoc"),
s = n.call(a, "finallyLoc");
if (c && s) {
if (this.prev < a.catchLoc) return o(a.catchLoc, !0);
if (this.prev < a.finallyLoc) return o(a.finallyLoc);
} else if (c) {
if (this.prev < a.catchLoc) return o(a.catchLoc, !0);
} else {
if (!s) throw Error("try statement without catch or finally");
if (this.prev < a.finallyLoc) return o(a.finallyLoc);
}
}
}
},
abrupt: function (t, e) {
for (var r = this.tryEntries.length - 1; r >= 0; --r) {
var o = this.tryEntries[r];
if (
o.tryLoc <= this.prev &&
n.call(o, "finallyLoc") &&
this.prev < o.finallyLoc
) {
var i = o;
break;
}
}
i &&
("break" === t || "continue" === t) &&
i.tryLoc <= e &&
e <= i.finallyLoc &&
(i = null);
var a = i ? i.completion : {};
return (
(a.type = t),
(a.arg = e),
i
? ((this.method = "next"), (this.next = i.finallyLoc), v)
: this.complete(a)
);
},
complete: function (t, e) {
if ("throw" === t.type) throw t.arg;
return (
"break" === t.type || "continue" === t.type
? (this.next = t.arg)
: "return" === t.type
? ((this.rval = this.arg = t.arg),
(this.method = "return"),
(this.next = "end"))
: "normal" === t.type && e && (this.next = e),
v
);
},
finish: function (t) {
for (var e = this.tryEntries.length - 1; e >= 0; --e) {
var r = this.tryEntries[e];
if (r.finallyLoc === t)
return this.complete(r.completion, r.afterLoc), _(r), v;
}
},
catch: function (t) {
for (var e = this.tryEntries.length - 1; e >= 0; --e) {
var r = this.tryEntries[e];
if (r.tryLoc === t) {
var n = r.completion;
if ("throw" === n.type) {
var o = n.arg;
_(r);
}
return o;
}
}
throw Error("illegal catch attempt");
},
delegateYield: function (e, r, n) {
return (
(this.delegate = { iterator: P(e), resultName: r, nextLoc: n }),
"next" === this.method && (this.arg = t),
v
);
},
}),
e
);
}
function oW(t, e, r, n, o, i, a) {
try {
var u = t[i](a),
c = u.value;
} catch (t) {
r(t);
return;
}
u.done ? e(c) : Promise.resolve(c).then(n, o);
}
function oY(t) {
return function () {
var e = this,
r = arguments;
return new Promise(function (n, o) {
var i = t.apply(e, r);
function a(t) {
oW(i, n, o, a, u, "next", t);
}
function u(t) {
oW(i, n, o, a, u, "throw", t);
}
a(void 0);
});
};
}
t.s(["ConfigService", () => oq], 941060);
function oz(t, e) {
return (oz = Object.setPrototypeOf
? Object.setPrototypeOf.bind()
: function (t, e) {
return (t.__proto__ = e), t;
})(t, e);
}
function oK(t) {
if (void 0 === t)
throw ReferenceError(
"this hasn't been initialised - super() hasn't been called",
);
return t;
}
function o$(t) {
return (o$ = Object.setPrototypeOf
? Object.getPrototypeOf.bind()
: function (t) {
return t.__proto__ || Object.getPrototypeOf(t);
})(t);
}
function oJ(t, e, r) {
return (
(e = oQ(e)) in t
? Object.defineProperty(t, e, {
value: r,
enumerable: !0,
configurable: !0,
writable: !0,
})
: (t[e] = r),
t
);
}
function oQ(t) {
var e = (function (t, e) {
if ("object" != oV(t) || !t) return t;
var r = t[Symbol.toPrimitive];
if (void 0 !== r) {
var n = r.call(t, e || "default");
if ("object" != oV(n)) return n;
throw TypeError("@@toPrimitive must return a primitive value.");
}
return ("string" === e ? String : Number)(t);
})(t, "string");
return "symbol" == oV(e) ? e : String(e);
}
var oX = (function (t) {
if ("function" != typeof t && null !== t)
throw TypeError("Super expression must either be null or a function");
(i.prototype = Object.create(t && t.prototype, {
constructor: { value: i, writable: !0, configurable: !0 },
})),
Object.defineProperty(i, "prototype", { writable: !1 }),
t && oz(i, t);
var e,
r,
n,
o =
((e = (function () {
if (
"u" < typeof Reflect ||
!Reflect.construct ||
Reflect.construct.sham
)
return !1;
if ("function" == typeof Proxy) return !0;
try {
return (
Boolean.prototype.valueOf.call(
Reflect.construct(Boolean, [], function () {}),
),
!0
);
} catch (t) {
return !1;
}
})()),
function () {
var t,
r = o$(i);
return (
(t = e
? Reflect.construct(r, arguments, o$(this).constructor)
: r.apply(this, arguments)),
(function (t, e) {
if (e && ("object" === oV(e) || "function" == typeof e))
return e;
if (void 0 !== e)
throw TypeError(
"Derived constructors may only return object or undefined",
);
return oK(t);
})(this, t)
);
});
function i() {
var t, e, r, n;
if (!(this instanceof i))
throw TypeError("Cannot call a class as a function");
for (var a = arguments.length, u = Array(a), c = 0; c < a; c++)
u[c] = arguments[c];
return (
oJ(
oK((t = o.call.apply(o, [this].concat(u)))),
"queryActivityCard",
((e = oY(
oH().mark(function e(r) {
var n;
return oH().wrap(
function (e) {
for (;;)
switch ((e.prev = e.next)) {
case 0:
return (
(e.prev = 0),
(e.next = 3),
t.apiClient.post(
(0, rC.getUrl)("/api/www/coupon/acquired"),
r,
)
);
case 3:
return (n = e.sent), e.abrupt("return", n.data);
case 7:
return (
(e.prev = 7),
(e.t0 = e.catch(0)),
e.abrupt("return", { couponList: [] })
);
case 10:
case "end":
return e.stop();
}
},
e,
null,
[[0, 7]],
);
}),
)),
function (t) {
return e.apply(this, arguments);
}),
),
oJ(
oK(t),
"getActivityCard",
((r = oY(
oH().mark(function e(r) {
var n;
return oH().wrap(
function (e) {
for (;;)
switch ((e.prev = e.next)) {
case 0:
return (
(e.prev = 0),
(e.next = 3),
(0, r8.checkIfMock)(
{
method: "POST",
url: (0, rC.getUrl)("/api/www/coupon/acquire"),
data: r,
},
function () {
return t.apiClient.post(
(0, rC.getUrl)("/api/www/coupon/acquire"),
r,
);
},
)
);
case 3:
return (n = e.sent), e.abrupt("return", n.data);
case 7:
return (
(e.prev = 7),
(e.t0 = e.catch(0)),
e.abrupt("return", { couponList: [] })
);
case 10:
case "end":
return e.stop();
}
},
e,
null,
[[0, 7]],
);
}),
)),
function (t) {
return r.apply(this, arguments);
}),
),
oJ(
oK(t),
"getExperienceCard",
((n = oY(
oH().mark(function e(r) {
var n, o;
return oH().wrap(
function (e) {
for (;;)
switch ((e.prev = e.next)) {
case 0:
return (
(e.prev = 0),
(n = (0, rC.getUrl)(
"/api/www/coupon/query/available",
)),
(e.next = 4),
(0, r8.checkIfMock)(
{ method: "POST", url: n, data: r },
function () {
return t.apiClient.post(n, r);
},
)
);
case 4:
return (o = e.sent), e.abrupt("return", o.data);
case 8:
return (
(e.prev = 8),
(e.t0 = e.catch(0)),
e.abrupt("return", {})
);
case 11:
case "end":
return e.stop();
}
},
e,
null,
[[0, 8]],
);
}),
)),
function (t) {
return n.apply(this, arguments);
}),
),
t
);
}
return (
(n = [
{
key: "getPageInfoByUuid",
value:
((r = oY(
oH().mark(function t(e, r) {
var n;
return oH().wrap(
function (t) {
for (;;)
switch ((t.prev = t.next)) {
case 0:
return (
(t.next = 3),
this.apiClient.post(
"/community/getArticleByUuid",
r
? { headers: { token: r }, uuid: e }
: { uuid: e },
)
);
case 3:
return (
(n = t.sent),
t.abrupt("return", null == n ? void 0 : n.data)
);
case 5:
case "end":
return t.stop();
}
},
t,
this,
);
}),
)),
function (t, e) {
return r.apply(this, arguments);
}),
},
]),
(function (t, e) {
for (var r = 0; r < e.length; r++) {
var n = e[r];
(n.enumerable = n.enumerable || !1),
(n.configurable = !0),
"value" in n && (n.writable = !0),
Object.defineProperty(t, oQ(n.key), n);
}
})(i.prototype, n),
Object.defineProperty(i, "prototype", { writable: !1 }),
i
);
})(eG);
function oZ(t) {
return (oZ =
"function" == typeof Symbol && "symbol" == typeof Symbol.iterator
? function (t) {
return typeof t;
}
: function (t) {
return t &&
"function" == typeof Symbol &&
t.constructor === Symbol &&
t !== Symbol.prototype
? "symbol"
: typeof t;
})(t);
}
function o0() {
o0 = function () {
return e;
};
var t,
e = {},
r = Object.prototype,
n = r.hasOwnProperty,
o =
Object.defineProperty ||
function (t, e, r) {
t[e] = r.value;
},
i = "function" == typeof Symbol ? Symbol : {},
a = i.iterator || "@@iterator",
u = i.asyncIterator || "@@asyncIterator",
c = i.toStringTag || "@@toStringTag";
function s(t, e, r) {
return (
Object.defineProperty(t, e, {
value: r,
enumerable: !0,
configurable: !0,
writable: !0,
}),
t[e]
);
}
try {
s({}, "");
} catch (t) {
s = function (t, e, r) {
return (t[e] = r);
};
}
function l(e, r, n, i) {
var a,
u,
c,
s,
l = Object.create((r && r.prototype instanceof d ? r : d).prototype);
return (
o(l, "_invoke", {
value:
((a = e),
(u = n),
(c = new k(i || [])),
(s = p),
function (e, r) {
if (s === h) throw Error("Generator is already running");
if (s === y) {
if ("throw" === e) throw r;
return { value: t, done: !0 };
}
for (c.method = e, c.arg = r; ; ) {
var n = c.delegate;
if (n) {
var o = (function e(r, n) {
var o = n.method,
i = r.iterator[o];
if (i === t)
return (
(n.delegate = null),
("throw" === o &&
r.iterator.return &&
((n.method = "return"),
(n.arg = t),
e(r, n),
"throw" === n.method)) ||
("return" !== o &&
((n.method = "throw"),
(n.arg = TypeError(
"The iterator does not provide a '" +
o +
"' method",
)))),
v
);
var a = f(i, r.iterator, n.arg);
if ("throw" === a.type)
return (
(n.method = "throw"),
(n.arg = a.arg),
(n.delegate = null),
v
);
var u = a.arg;
return u
? u.done
? ((n[r.resultName] = u.value),
(n.next = r.nextLoc),
"return" !== n.method &&
((n.method = "next"), (n.arg = t)),
(n.delegate = null),
v)
: u
: ((n.method = "throw"),
(n.arg = TypeError(
"iterator result is not an object",
)),
(n.delegate = null),
v);
})(n, c);
if (o) {
if (o === v) continue;
return o;
}
}
if ("next" === c.method) c.sent = c._sent = c.arg;
else if ("throw" === c.method) {
if (s === p) throw ((s = y), c.arg);
c.dispatchException(c.arg);
} else "return" === c.method && c.abrupt("return", c.arg);
s = h;
var i = f(a, u, c);
if ("normal" === i.type) {
if (((s = c.done ? y : "suspendedYield"), i.arg === v))
continue;
return { value: i.arg, done: c.done };
}
"throw" === i.type &&
((s = y), (c.method = "throw"), (c.arg = i.arg));
}
}),
}),
l
);
}
function f(t, e, r) {
try {
return { type: "normal", arg: t.call(e, r) };
} catch (t) {
return { type: "throw", arg: t };
}
}
e.wrap = l;
var p = "suspendedStart",
h = "executing",
y = "completed",
v = {};
function d() {}
function g() {}
function m() {}
var b = {};
s(b, a, function () {
return this;
});
var w = Object.getPrototypeOf,
x = w && w(w(P([])));
x && x !== r && n.call(x, a) && (b = x);
var O = (m.prototype = d.prototype = Object.create(b));
function E(t) {
["next", "throw", "return"].forEach(function (e) {
s(t, e, function (t) {
return this._invoke(e, t);
});
});
}
function L(t, e) {
var r;
o(this, "_invoke", {
value: function (o, i) {
function a() {
return new e(function (r, a) {
!(function r(o, i, a, u) {
var c = f(t[o], t, i);
if ("throw" !== c.type) {
var s = c.arg,
l = s.value;
return l && "object" == oZ(l) && n.call(l, "__await")
? e.resolve(l.__await).then(
function (t) {
r("next", t, a, u);
},
function (t) {
r("throw", t, a, u);
},
)
: e.resolve(l).then(
function (t) {
(s.value = t), a(s);
},
function (t) {
return r("throw", t, a, u);
},
);
}
u(c.arg);
})(o, i, r, a);
});
}
return (r = r ? r.then(a, a) : a());
},
});
}
function j(t) {
var e = { tryLoc: t[0] };
1 in t && (e.catchLoc = t[1]),
2 in t && ((e.finallyLoc = t[2]), (e.afterLoc = t[3])),
this.tryEntries.push(e);
}
function _(t) {
var e = t.completion || {};
(e.type = "normal"), delete e.arg, (t.completion = e);
}
function k(t) {
(this.tryEntries = [{ tryLoc: "root" }]),
t.forEach(j, this),
this.reset(!0);
}
function P(e) {
if (e || "" === e) {
var r = e[a];
if (r) return r.call(e);
if ("function" == typeof e.next) return e;
if (!isNaN(e.length)) {
var o = -1,
i = function r() {
for (; ++o < e.length; )
if (n.call(e, o)) return (r.value = e[o]), (r.done = !1), r;
return (r.value = t), (r.done = !0), r;
};
return (i.next = i);
}
}
throw TypeError(oZ(e) + " is not iterable");
}
return (
(g.prototype = m),
o(O, "constructor", { value: m, configurable: !0 }),
o(m, "constructor", { value: g, configurable: !0 }),
(g.displayName = s(m, c, "GeneratorFunction")),
(e.isGeneratorFunction = function (t) {
var e = "function" == typeof t && t.constructor;
return (
!!e &&
(e === g || "GeneratorFunction" === (e.displayName || e.name))
);
}),
(e.mark = function (t) {
return (
Object.setPrototypeOf
? Object.setPrototypeOf(t, m)
: ((t.__proto__ = m), s(t, c, "GeneratorFunction")),
(t.prototype = Object.create(O)),
t
);
}),
(e.awrap = function (t) {
return { __await: t };
}),
E(L.prototype),
s(L.prototype, u, function () {
return this;
}),
(e.AsyncIterator = L),
(e.async = function (t, r, n, o, i) {
void 0 === i && (i = Promise);
var a = new L(l(t, r, n, o), i);
return e.isGeneratorFunction(r)
? a
: a.next().then(function (t) {
return t.done ? t.value : a.next();
});
}),
E(O),
s(O, c, "Generator"),
s(O, a, function () {
return this;
}),
s(O, "toString", function () {
return "[object Generator]";
}),
(e.keys = function (t) {
var e = Object(t),
r = [];
for (var n in e) r.push(n);
return (
r.reverse(),
function t() {
for (; r.length; ) {
var n = r.pop();
if (n in e) return (t.value = n), (t.done = !1), t;
}
return (t.done = !0), t;
}
);
}),
(e.values = P),
(k.prototype = {
constructor: k,
reset: function (e) {
if (
((this.prev = 0),
(this.next = 0),
(this.sent = this._sent = t),
(this.done = !1),
(this.delegate = null),
(this.method = "next"),
(this.arg = t),
this.tryEntries.forEach(_),
!e)
)
for (var r in this)
"t" === r.charAt(0) &&
n.call(this, r) &&
!isNaN(+r.slice(1)) &&
(this[r] = t);
},
stop: function () {
this.done = !0;
var t = this.tryEntries[0].completion;
if ("throw" === t.type) throw t.arg;
return this.rval;
},
dispatchException: function (e) {
if (this.done) throw e;
var r = this;
function o(n, o) {
return (
(u.type = "throw"),
(u.arg = e),
(r.next = n),
o && ((r.method = "next"), (r.arg = t)),
!!o
);
}
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
var a = this.tryEntries[i],
u = a.completion;
if ("root" === a.tryLoc) return o("end");
if (a.tryLoc <= this.prev) {
var c = n.call(a, "catchLoc"),
s = n.call(a, "finallyLoc");
if (c && s) {
if (this.prev < a.catchLoc) return o(a.catchLoc, !0);
if (this.prev < a.finallyLoc) return o(a.finallyLoc);
} else if (c) {
if (this.prev < a.catchLoc) return o(a.catchLoc, !0);
} else {
if (!s) throw Error("try statement without catch or finally");
if (this.prev < a.finallyLoc) return o(a.finallyLoc);
}
}
}
},
abrupt: function (t, e) {
for (var r = this.tryEntries.length - 1; r >= 0; --r) {
var o = this.tryEntries[r];
if (
o.tryLoc <= this.prev &&
n.call(o, "finallyLoc") &&
this.prev < o.finallyLoc
) {
var i = o;
break;
}
}
i &&
("break" === t || "continue" === t) &&
i.tryLoc <= e &&
e <= i.finallyLoc &&
(i = null);
var a = i ? i.completion : {};
return (
(a.type = t),
(a.arg = e),
i
? ((this.method = "next"), (this.next = i.finallyLoc), v)
: this.complete(a)
);
},
complete: function (t, e) {
if ("throw" === t.type) throw t.arg;
return (
"break" === t.type || "continue" === t.type
? (this.next = t.arg)
: "return" === t.type
? ((this.rval = this.arg = t.arg),
(this.method = "return"),
(this.next = "end"))
: "normal" === t.type && e && (this.next = e),
v
);
},
finish: function (t) {
for (var e = this.tryEntries.length - 1; e >= 0; --e) {
var r = this.tryEntries[e];
if (r.finallyLoc === t)
return this.complete(r.completion, r.afterLoc), _(r), v;
}
},
catch: function (t) {
for (var e = this.tryEntries.length - 1; e >= 0; --e) {
var r = this.tryEntries[e];
if (r.tryLoc === t) {
var n = r.completion;
if ("throw" === n.type) {
var o = n.arg;
_(r);
}
return o;
}
}
throw Error("illegal catch attempt");
},
delegateYield: function (e, r, n) {
return (
(this.delegate = { iterator: P(e), resultName: r, nextLoc: n }),
"next" === this.method && (this.arg = t),
v
);
},
}),
e
);
}
function o1(t, e, r, n, o, i, a) {
try {
var u = t[i](a),
c = u.value;
} catch (t) {
r(t);
return;
}
u.done ? e(c) : Promise.resolve(c).then(n, o);
}
t.s(["ActivitiesPageInfoService", () => oX], 262611);
function o2(t, e) {
return (o2 = Object.setPrototypeOf
? Object.setPrototypeOf.bind()
: function (t, e) {
return (t.__proto__ = e), t;
})(t, e);
}
function o3(t) {
return (o3 = Object.setPrototypeOf
? Object.getPrototypeOf.bind()
: function (t) {
return t.__proto__ || Object.getPrototypeOf(t);
})(t);
}
var o4 = (function (t) {
if ("function" != typeof t && null !== t)
throw TypeError("Super expression must either be null or a function");
(a.prototype = Object.create(t && t.prototype, {
constructor: { value: a, writable: !0, configurable: !0 },
})),
Object.defineProperty(a, "prototype", { writable: !1 }),
t && o2(a, t);
var e,
r,
n,
o,
i =
((e = (function () {
if (
"u" < typeof Reflect ||
!Reflect.construct ||
Reflect.construct.sham
)
return !1;
if ("function" == typeof Proxy) return !0;
try {
return (
Boolean.prototype.valueOf.call(
Reflect.construct(Boolean, [], function () {}),
),
!0
);
} catch (t) {
return !1;
}
})()),
function () {
var t,
r = o3(a);
return (
(t = e
? Reflect.construct(r, arguments, o3(this).constructor)
: r.apply(this, arguments)),
(function (t, e) {
if (e && ("object" === oZ(e) || "function" == typeof e))
return e;
if (void 0 !== e)
throw TypeError(
"Derived constructors may only return object or undefined",
);
var r = t;
if (void 0 === r)
throw ReferenceError(
"this hasn't been initialised - super() hasn't been called",
);
return r;
})(this, t)
);
});
function a() {
if (!(this instanceof a))
throw TypeError("Cannot call a class as a function");
return i.apply(this, arguments);
}
return (
(o = [
{
key: "getArticleList",
value:
((r = o0().mark(function t(e) {
var r;
return o0().wrap(
function (t) {
for (;;)
switch ((t.prev = t.next)) {
case 0:
return (
(t.next = 2),
this.apiClient.get("/community/article/list", {
params: e,
})
);
case 2:
return (r = t.sent), t.abrupt("return", r);
case 4:
case "end":
return t.stop();
}
},
t,
this,
);
})),
(n = function () {
var t = this,
e = arguments;
return new Promise(function (n, o) {
var i = r.apply(t, e);
function a(t) {
o1(i, n, o, a, u, "next", t);
}
function u(t) {
o1(i, n, o, a, u, "throw", t);
}
a(void 0);
});
}),
function (t) {
return n.apply(this, arguments);
}),
},
]),
(function (t, e) {
for (var r = 0; r < e.length; r++) {
var n = e[r];
(n.enumerable = n.enumerable || !1),
(n.configurable = !0),
"value" in n && (n.writable = !0),
Object.defineProperty(
t,
(function (t) {
var e = (function (t, e) {
if ("object" != oZ(t) || !t) return t;
var r = t[Symbol.toPrimitive];
if (void 0 !== r) {
var n = r.call(t, e || "default");
if ("object" != oZ(n)) return n;
throw TypeError(
"@@toPrimitive must return a primitive value.",
);
}
return ("string" === e ? String : Number)(t);
})(t, "string");
return "symbol" == oZ(e) ? e : String(e);
})(n.key),
n,
);
}
})(a.prototype, o),
Object.defineProperty(a, "prototype", { writable: !1 }),
a
);
})(eG);
function o7(t) {
return (o7 =
"function" == typeof Symbol && "symbol" == typeof Symbol.iterator
? function (t) {
return typeof t;
}
: function (t) {
return t &&
"function" == typeof Symbol &&
t.constructor === Symbol &&
t !== Symbol.prototype
? "symbol"
: typeof t;
})(t);
}
function o8() {
o8 = function () {
return e;
};
var t,
e = {},
r = Object.prototype,
n = r.hasOwnProperty,
o =
Object.defineProperty ||
function (t, e, r) {
t[e] = r.value;
},
i = "function" == typeof Symbol ? Symbol : {},
a = i.iterator || "@@iterator",
u = i.asyncIterator || "@@asyncIterator",
c = i.toStringTag || "@@toStringTag";
function s(t, e, r) {
return (
Object.defineProperty(t, e, {
value: r,
enumerable: !0,
configurable: !0,
writable: !0,
}),
t[e]
);
}
try {
s({}, "");
} catch (t) {
s = function (t, e, r) {
return (t[e] = r);
};
}
function l(e, r, n, i) {
var a,
u,
c,
s,
l = Object.create((r && r.prototype instanceof d ? r : d).prototype);
return (
o(l, "_invoke", {
value:
((a = e),
(u = n),
(c = new k(i || [])),
(s = p),
function (e, r) {
if (s === h) throw Error("Generator is already running");
if (s === y) {
if ("throw" === e) throw r;
return { value: t, done: !0 };
}
for (c.method = e, c.arg = r; ; ) {
var n = c.delegate;
if (n) {
var o = (function e(r, n) {
var o = n.method,
i = r.iterator[o];
if (i === t)
return (
(n.delegate = null),
("throw" === o &&
r.iterator.return &&
((n.method = "return"),
(n.arg = t),
e(r, n),
"throw" === n.method)) ||
("return" !== o &&
((n.method = "throw"),
(n.arg = TypeError(
"The iterator does not provide a '" +
o +
"' method",
)))),
v
);
var a = f(i, r.iterator, n.arg);
if ("throw" === a.type)
return (
(n.method = "throw"),
(n.arg = a.arg),
(n.delegate = null),
v
);
var u = a.arg;
return u
? u.done
? ((n[r.resultName] = u.value),
(n.next = r.nextLoc),
"return" !== n.method &&
((n.method = "next"), (n.arg = t)),
(n.delegate = null),
v)
: u
: ((n.method = "throw"),
(n.arg = TypeError(
"iterator result is not an object",
)),
(n.delegate = null),
v);
})(n, c);
if (o) {
if (o === v) continue;
return o;
}
}
if ("next" === c.method) c.sent = c._sent = c.arg;
else if ("throw" === c.method) {
if (s === p) throw ((s = y), c.arg);
c.dispatchException(c.arg);
} else "return" === c.method && c.abrupt("return", c.arg);
s = h;
var i = f(a, u, c);
if ("normal" === i.type) {
if (((s = c.done ? y : "suspendedYield"), i.arg === v))
continue;
return { value: i.arg, done: c.done };
}
"throw" === i.type &&
((s = y), (c.method = "throw"), (c.arg = i.arg));
}
}),
}),
l
);
}
function f(t, e, r) {
try {
return { type: "normal", arg: t.call(e, r) };
} catch (t) {
return { type: "throw", arg: t };
}
}
e.wrap = l;
var p = "suspendedStart",
h = "executing",
y = "completed",
v = {};
function d() {}
function g() {}
function m() {}
var b = {};
s(b, a, function () {
return this;
});
var w = Object.getPrototypeOf,
x = w && w(w(P([])));
x && x !== r && n.call(x, a) && (b = x);
var O = (m.prototype = d.prototype = Object.create(b));
function E(t) {
["next", "throw", "return"].forEach(function (e) {
s(t, e, function (t) {
return this._invoke(e, t);
});
});
}
function L(t, e) {
var r;
o(this, "_invoke", {
value: function (o, i) {
function a() {
return new e(function (r, a) {
!(function r(o, i, a, u) {
var c = f(t[o], t, i);
if ("throw" !== c.type) {
var s = c.arg,
l = s.value;
return l && "object" == o7(l) && n.call(l, "__await")
? e.resolve(l.__await).then(
function (t) {
r("next", t, a, u);
},
function (t) {
r("throw", t, a, u);
},
)
: e.resolve(l).then(
function (t) {
(s.value = t), a(s);
},
function (t) {
return r("throw", t, a, u);
},
);
}
u(c.arg);
})(o, i, r, a);
});
}
return (r = r ? r.then(a, a) : a());
},
});
}
function j(t) {
var e = { tryLoc: t[0] };
1 in t && (e.catchLoc = t[1]),
2 in t && ((e.finallyLoc = t[2]), (e.afterLoc = t[3])),
this.tryEntries.push(e);
}
function _(t) {
var e = t.completion || {};
(e.type = "normal"), delete e.arg, (t.completion = e);
}
function k(t) {
(this.tryEntries = [{ tryLoc: "root" }]),
t.forEach(j, this),
this.reset(!0);
}
function P(e) {
if (e || "" === e) {
var r = e[a];
if (r) return r.call(e);
if ("function" == typeof e.next) return e;
if (!isNaN(e.length)) {
var o = -1,
i = function r() {
for (; ++o < e.length; )
if (n.call(e, o)) return (r.value = e[o]), (r.done = !1), r;
return (r.value = t), (r.done = !0), r;
};
return (i.next = i);
}
}
throw TypeError(o7(e) + " is not iterable");
}
return (
(g.prototype = m),
o(O, "constructor", { value: m, configurable: !0 }),
o(m, "constructor", { value: g, configurable: !0 }),
(g.displayName = s(m, c, "GeneratorFunction")),
(e.isGeneratorFunction = function (t) {
var e = "function" == typeof t && t.constructor;
return (
!!e &&
(e === g || "GeneratorFunction" === (e.displayName || e.name))
);
}),
(e.mark = function (t) {
return (
Object.setPrototypeOf
? Object.setPrototypeOf(t, m)
: ((t.__proto__ = m), s(t, c, "GeneratorFunction")),
(t.prototype = Object.create(O)),
t
);
}),
(e.awrap = function (t) {
return { __await: t };
}),
E(L.prototype),
s(L.prototype, u, function () {
return this;
}),
(e.AsyncIterator = L),
(e.async = function (t, r, n, o, i) {
void 0 === i && (i = Promise);
var a = new L(l(t, r, n, o), i);
return e.isGeneratorFunction(r)
? a
: a.next().then(function (t) {
return t.done ? t.value : a.next();
});
}),
E(O),
s(O, c, "Generator"),
s(O, a, function () {
return this;
}),
s(O, "toString", function () {
return "[object Generator]";
}),
(e.keys = function (t) {
var e = Object(t),
r = [];
for (var n in e) r.push(n);
return (
r.reverse(),
function t() {
for (; r.length; ) {
var n = r.pop();
if (n in e) return (t.value = n), (t.done = !1), t;
}
return (t.done = !0), t;
}
);
}),
(e.values = P),
(k.prototype = {
constructor: k,
reset: function (e) {
if (
((this.prev = 0),
(this.next = 0),
(this.sent = this._sent = t),
(this.done = !1),
(this.delegate = null),
(this.method = "next"),
(this.arg = t),
this.tryEntries.forEach(_),
!e)
)
for (var r in this)
"t" === r.charAt(0) &&
n.call(this, r) &&
!isNaN(+r.slice(1)) &&
(this[r] = t);
},
stop: function () {
this.done = !0;
var t = this.tryEntries[0].completion;
if ("throw" === t.type) throw t.arg;
return this.rval;
},
dispatchException: function (e) {
if (this.done) throw e;
var r = this;
function o(n, o) {
return (
(u.type = "throw"),
(u.arg = e),
(r.next = n),
o && ((r.method = "next"), (r.arg = t)),
!!o
);
}
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
var a = this.tryEntries[i],
u = a.completion;
if ("root" === a.tryLoc) return o("end");
if (a.tryLoc <= this.prev) {
var c = n.call(a, "catchLoc"),
s = n.call(a, "finallyLoc");
if (c && s) {
if (this.prev < a.catchLoc) return o(a.catchLoc, !0);
if (this.prev < a.finallyLoc) return o(a.finallyLoc);
} else if (c) {
if (this.prev < a.catchLoc) return o(a.catchLoc, !0);
} else {
if (!s) throw Error("try statement without catch or finally");
if (this.prev < a.finallyLoc) return o(a.finallyLoc);
}
}
}
},
abrupt: function (t, e) {
for (var r = this.tryEntries.length - 1; r >= 0; --r) {
var o = this.tryEntries[r];
if (
o.tryLoc <= this.prev &&
n.call(o, "finallyLoc") &&
this.prev < o.finallyLoc
) {
var i = o;
break;
}
}
i &&
("break" === t || "continue" === t) &&
i.tryLoc <= e &&
e <= i.finallyLoc &&
(i = null);
var a = i ? i.completion : {};
return (
(a.type = t),
(a.arg = e),
i
? ((this.method = "next"), (this.next = i.finallyLoc), v)
: this.complete(a)
);
},
complete: function (t, e) {
if ("throw" === t.type) throw t.arg;
return (
"break" === t.type || "continue" === t.type
? (this.next = t.arg)
: "return" === t.type
? ((this.rval = this.arg = t.arg),
(this.method = "return"),
(this.next = "end"))
: "normal" === t.type && e && (this.next = e),
v
);
},
finish: function (t) {
for (var e = this.tryEntries.length - 1; e >= 0; --e) {
var r = this.tryEntries[e];
if (r.finallyLoc === t)
return this.complete(r.completion, r.afterLoc), _(r), v;
}
},
catch: function (t) {
for (var e = this.tryEntries.length - 1; e >= 0; --e) {
var r = this.tryEntries[e];
if (r.tryLoc === t) {
var n = r.completion;
if ("throw" === n.type) {
var o = n.arg;
_(r);
}
return o;
}
}
throw Error("illegal catch attempt");
},
delegateYield: function (e, r, n) {
return (
(this.delegate = { iterator: P(e), resultName: r, nextLoc: n }),
"next" === this.method && (this.arg = t),
v
);
},
}),
e
);
}
function o5(t, e, r, n, o, i, a) {
try {
var u = t[i](a),
c = u.value;
} catch (t) {
r(t);
return;
}
u.done ? e(c) : Promise.resolve(c).then(n, o);
}
t.s(["ContentZoneService", () => o4], 542806);
function o6(t, e) {
return (o6 = Object.setPrototypeOf
? Object.setPrototypeOf.bind()
: function (t, e) {
return (t.__proto__ = e), t;
})(t, e);
}
function o9(t) {
if (void 0 === t)
throw ReferenceError(
"this hasn't been initialised - super() hasn't been called",
);
return t;
}
function it(t) {
return (it = Object.setPrototypeOf
? Object.getPrototypeOf.bind()
: function (t) {
return t.__proto__ || Object.getPrototypeOf(t);
})(t);
}
function ie(t) {
var e = (function (t, e) {
if ("object" != o7(t) || !t) return t;
var r = t[Symbol.toPrimitive];
if (void 0 !== r) {
var n = r.call(t, e || "default");
if ("object" != o7(n)) return n;
throw TypeError("@@toPrimitive must return a primitive value.");
}
return ("string" === e ? String : Number)(t);
})(t, "string");
return "symbol" == o7(e) ? e : String(e);
}
var ir = (function (t) {
if ("function" != typeof t && null !== t)
throw TypeError("Super expression must either be null or a function");
(n.prototype = Object.create(t && t.prototype, {
constructor: { value: n, writable: !0, configurable: !0 },
})),
Object.defineProperty(n, "prototype", { writable: !1 }),
t && o6(n, t);
var e,
r =
((e = (function () {
if (
"u" < typeof Reflect ||
!Reflect.construct ||
Reflect.construct.sham
)
return !1;
if ("function" == typeof Proxy) return !0;
try {
return (
Boolean.prototype.valueOf.call(
Reflect.construct(Boolean, [], function () {}),
),
!0
);
} catch (t) {
return !1;
}
})()),
function () {
var t,
r = it(n);
return (
(t = e
? Reflect.construct(r, arguments, it(this).constructor)
: r.apply(this, arguments)),
(function (t, e) {
if (e && ("object" === o7(e) || "function" == typeof e))
return e;
if (void 0 !== e)
throw TypeError(
"Derived constructors may only return object or undefined",
);
return o9(t);
})(this, t)
);
});
function n() {
var t, e, o, i, a, u;
if (!(this instanceof n))
throw TypeError("Cannot call a class as a function");
for (var c = arguments.length, s = Array(c), l = 0; l < c; l++)
s[l] = arguments[l];
return (
(i = o9((t = r.call.apply(r, [this].concat(s))))),
(a = "getNodeList"),
(e = o8().mark(function e(r) {
var n;
return o8().wrap(
function (e) {
for (;;)
switch ((e.prev = e.next)) {
case 0:
return (
(e.prev = 0),
(e.next = 3),
t.apiClient.post("/api/workflow", r)
);
case 3:
return (n = e.sent.data), e.abrupt("return", n);
case 8:
return (
(e.prev = 8),
(e.t0 = e.catch(0)),
e.abrupt("return", [])
);
case 11:
case "end":
return e.stop();
}
},
e,
null,
[[0, 8]],
);
})),
(o = function () {
var t = this,
r = arguments;
return new Promise(function (n, o) {
var i = e.apply(t, r);
function a(t) {
o5(i, n, o, a, u, "next", t);
}
function u(t) {
o5(i, n, o, a, u, "throw", t);
}
a(void 0);
});
}),
(u = function (t) {
return o.apply(this, arguments);
}),
(a = ie(a)) in i
? Object.defineProperty(i, a, {
value: u,
enumerable: !0,
configurable: !0,
writable: !0,
})
: (i[a] = u),
t
);
}
return Object.defineProperty(n, "prototype", { writable: !1 }), n;
})(eG);
function io(t) {
return (io =
"function" == typeof Symbol && "symbol" == typeof Symbol.iterator
? function (t) {
return typeof t;
}
: function (t) {
return t &&
"function" == typeof Symbol &&
t.constructor === Symbol &&
t !== Symbol.prototype
? "symbol"
: typeof t;
})(t);
}
function ii() {
ii = function () {
return e;
};
var t,
e = {},
r = Object.prototype,
n = r.hasOwnProperty,
o =
Object.defineProperty ||
function (t, e, r) {
t[e] = r.value;
},
i = "function" == typeof Symbol ? Symbol : {},
a = i.iterator || "@@iterator",
u = i.asyncIterator || "@@asyncIterator",
c = i.toStringTag || "@@toStringTag";
function s(t, e, r) {
return (
Object.defineProperty(t, e, {
value: r,
enumerable: !0,
configurable: !0,
writable: !0,
}),
t[e]
);
}
try {
s({}, "");
} catch (t) {
s = function (t, e, r) {
return (t[e] = r);
};
}
function l(e, r, n, i) {
var a,
u,
c,
s,
l = Object.create((r && r.prototype instanceof d ? r : d).prototype);
return (
o(l, "_invoke", {
value:
((a = e),
(u = n),
(c = new k(i || [])),
(s = p),
function (e, r) {
if (s === h) throw Error("Generator is already running");
if (s === y) {
if ("throw" === e) throw r;
return { value: t, done: !0 };
}
for (c.method = e, c.arg = r; ; ) {
var n = c.delegate;
if (n) {
var o = (function e(r, n) {
var o = n.method,
i = r.iterator[o];
if (i === t)
return (
(n.delegate = null),
("throw" === o &&
r.iterator.return &&
((n.method = "return"),
(n.arg = t),
e(r, n),
"throw" === n.method)) ||
("return" !== o &&
((n.method = "throw"),
(n.arg = TypeError(
"The iterator does not provide a '" +
o +
"' method",
)))),
v
);
var a = f(i, r.iterator, n.arg);
if ("throw" === a.type)
return (
(n.method = "throw"),
(n.arg = a.arg),
(n.delegate = null),
v
);
var u = a.arg;
return u
? u.done
? ((n[r.resultName] = u.value),
(n.next = r.nextLoc),
"return" !== n.method &&
((n.method = "next"), (n.arg = t)),
(n.delegate = null),
v)
: u
: ((n.method = "throw"),
(n.arg = TypeError(
"iterator result is not an object",
)),
(n.delegate = null),
v);
})(n, c);
if (o) {
if (o === v) continue;
return o;
}
}
if ("next" === c.method) c.sent = c._sent = c.arg;
else if ("throw" === c.method) {
if (s === p) throw ((s = y), c.arg);
c.dispatchException(c.arg);
} else "return" === c.method && c.abrupt("return", c.arg);
s = h;
var i = f(a, u, c);
if ("normal" === i.type) {
if (((s = c.done ? y : "suspendedYield"), i.arg === v))
continue;
return { value: i.arg, done: c.done };
}
"throw" === i.type &&
((s = y), (c.method = "throw"), (c.arg = i.arg));
}
}),
}),
l
);
}
function f(t, e, r) {
try {
return { type: "normal", arg: t.call(e, r) };
} catch (t) {
return { type: "throw", arg: t };
}
}
e.wrap = l;
var p = "suspendedStart",
h = "executing",
y = "completed",
v = {};
function d() {}
function g() {}
function m() {}
var b = {};
s(b, a, function () {
return this;
});
var w = Object.getPrototypeOf,
x = w && w(w(P([])));
x && x !== r && n.call(x, a) && (b = x);
var O = (m.prototype = d.prototype = Object.create(b));
function E(t) {
["next", "throw", "return"].forEach(function (e) {
s(t, e, function (t) {
return this._invoke(e, t);
});
});
}
function L(t, e) {
var r;
o(this, "_invoke", {
value: function (o, i) {
function a() {
return new e(function (r, a) {
!(function r(o, i, a, u) {
var c = f(t[o], t, i);
if ("throw" !== c.type) {
var s = c.arg,
l = s.value;
return l && "object" == io(l) && n.call(l, "__await")
? e.resolve(l.__await).then(
function (t) {
r("next", t, a, u);
},
function (t) {
r("throw", t, a, u);
},
)
: e.resolve(l).then(
function (t) {
(s.value = t), a(s);
},
function (t) {
return r("throw", t, a, u);
},
);
}
u(c.arg);
})(o, i, r, a);
});
}
return (r = r ? r.then(a, a) : a());
},
});
}
function j(t) {
var e = { tryLoc: t[0] };
1 in t && (e.catchLoc = t[1]),
2 in t && ((e.finallyLoc = t[2]), (e.afterLoc = t[3])),
this.tryEntries.push(e);
}
function _(t) {
var e = t.completion || {};
(e.type = "normal"), delete e.arg, (t.completion = e);
}
function k(t) {
(this.tryEntries = [{ tryLoc: "root" }]),
t.forEach(j, this),
this.reset(!0);
}
function P(e) {
if (e || "" === e) {
var r = e[a];
if (r) return r.call(e);
if ("function" == typeof e.next) return e;
if (!isNaN(e.length)) {
var o = -1,
i = function r() {
for (; ++o < e.length; )
if (n.call(e, o)) return (r.value = e[o]), (r.done = !1), r;
return (r.value = t), (r.done = !0), r;
};
return (i.next = i);
}
}
throw TypeError(io(e) + " is not iterable");
}
return (
(g.prototype = m),
o(O, "constructor", { value: m, configurable: !0 }),
o(m, "constructor", { value: g, configurable: !0 }),
(g.displayName = s(m, c, "GeneratorFunction")),
(e.isGeneratorFunction = function (t) {
var e = "function" == typeof t && t.constructor;
return (
!!e &&
(e === g || "GeneratorFunction" === (e.displayName || e.name))
);
}),
(e.mark = function (t) {
return (
Object.setPrototypeOf
? Object.setPrototypeOf(t, m)
: ((t.__proto__ = m), s(t, c, "GeneratorFunction")),
(t.prototype = Object.create(O)),
t
);
}),
(e.awrap = function (t) {
return { __await: t };
}),
E(L.prototype),
s(L.prototype, u, function () {
return this;
}),
(e.AsyncIterator = L),
(e.async = function (t, r, n, o, i) {
void 0 === i && (i = Promise);
var a = new L(l(t, r, n, o), i);
return e.isGeneratorFunction(r)
? a
: a.next().then(function (t) {
return t.done ? t.value : a.next();
});
}),
E(O),
s(O, c, "Generator"),
s(O, a, function () {
return this;
}),
s(O, "toString", function () {
return "[object Generator]";
}),
(e.keys = function (t) {
var e = Object(t),
r = [];
for (var n in e) r.push(n);
return (
r.reverse(),
function t() {
for (; r.length; ) {
var n = r.pop();
if (n in e) return (t.value = n), (t.done = !1), t;
}
return (t.done = !0), t;
}
);
}),
(e.values = P),
(k.prototype = {
constructor: k,
reset: function (e) {
if (
((this.prev = 0),
(this.next = 0),
(this.sent = this._sent = t),
(this.done = !1),
(this.delegate = null),
(this.method = "next"),
(this.arg = t),
this.tryEntries.forEach(_),
!e)
)
for (var r in this)
"t" === r.charAt(0) &&
n.call(this, r) &&
!isNaN(+r.slice(1)) &&
(this[r] = t);
},
stop: function () {
this.done = !0;
var t = this.tryEntries[0].completion;
if ("throw" === t.type) throw t.arg;
return this.rval;
},
dispatchException: function (e) {
if (this.done) throw e;
var r = this;
function o(n, o) {
return (
(u.type = "throw"),
(u.arg = e),
(r.next = n),
o && ((r.method = "next"), (r.arg = t)),
!!o
);
}
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
var a = this.tryEntries[i],
u = a.completion;
if ("root" === a.tryLoc) return o("end");
if (a.tryLoc <= this.prev) {
var c = n.call(a, "catchLoc"),
s = n.call(a, "finallyLoc");
if (c && s) {
if (this.prev < a.catchLoc) return o(a.catchLoc, !0);
if (this.prev < a.finallyLoc) return o(a.finallyLoc);
} else if (c) {
if (this.prev < a.catchLoc) return o(a.catchLoc, !0);
} else {
if (!s) throw Error("try statement without catch or finally");
if (this.prev < a.finallyLoc) return o(a.finallyLoc);
}
}
}
},
abrupt: function (t, e) {
for (var r = this.tryEntries.length - 1; r >= 0; --r) {
var o = this.tryEntries[r];
if (
o.tryLoc <= this.prev &&
n.call(o, "finallyLoc") &&
this.prev < o.finallyLoc
) {
var i = o;
break;
}
}
i &&
("break" === t || "continue" === t) &&
i.tryLoc <= e &&
e <= i.finallyLoc &&
(i = null);
var a = i ? i.completion : {};
return (
(a.type = t),
(a.arg = e),
i
? ((this.method = "next"), (this.next = i.finallyLoc), v)
: this.complete(a)
);
},
complete: function (t, e) {
if ("throw" === t.type) throw t.arg;
return (
"break" === t.type || "continue" === t.type
? (this.next = t.arg)
: "return" === t.type
? ((this.rval = this.arg = t.arg),
(this.method = "return"),
(this.next = "end"))
: "normal" === t.type && e && (this.next = e),
v
);
},
finish: function (t) {
for (var e = this.tryEntries.length - 1; e >= 0; --e) {
var r = this.tryEntries[e];
if (r.finallyLoc === t)
return this.complete(r.completion, r.afterLoc), _(r), v;
}
},
catch: function (t) {
for (var e = this.tryEntries.length - 1; e >= 0; --e) {
var r = this.tryEntries[e];
if (r.tryLoc === t) {
var n = r.completion;
if ("throw" === n.type) {
var o = n.arg;
_(r);
}
return o;
}
}
throw Error("illegal catch attempt");
},
delegateYield: function (e, r, n) {
return (
(this.delegate = { iterator: P(e), resultName: r, nextLoc: n }),
"next" === this.method && (this.arg = t),
v
);
},
}),
e
);
}
function ia(t, e, r, n, o, i, a) {
try {
var u = t[i](a),
c = u.value;
} catch (t) {
r(t);
return;
}
u.done ? e(c) : Promise.resolve(c).then(n, o);
}
function iu(t) {
return function () {
var e = this,
r = arguments;
return new Promise(function (n, o) {
var i = t.apply(e, r);
function a(t) {
ia(i, n, o, a, u, "next", t);
}
function u(t) {
ia(i, n, o, a, u, "throw", t);
}
a(void 0);
});
};
}
t.s(["ComfyService", () => ir], 56235);
function ic(t, e) {
return (ic = Object.setPrototypeOf
? Object.setPrototypeOf.bind()
: function (t, e) {
return (t.__proto__ = e), t;
})(t, e);
}
function is(t) {
return (is = Object.setPrototypeOf
? Object.getPrototypeOf.bind()
: function (t) {
return t.__proto__ || Object.getPrototypeOf(t);
})(t);
}
var il = (function (t) {
if ("function" != typeof t && null !== t)
throw TypeError("Super expression must either be null or a function");
(c.prototype = Object.create(t && t.prototype, {
constructor: { value: c, writable: !0, configurable: !0 },
})),
Object.defineProperty(c, "prototype", { writable: !1 }),
t && ic(c, t);
var e,
r,
n,
o,
i,
a,
u =
((e = (function () {
if (
"u" < typeof Reflect ||
!Reflect.construct ||
Reflect.construct.sham
)
return !1;
if ("function" == typeof Proxy) return !0;
try {
return (
Boolean.prototype.valueOf.call(
Reflect.construct(Boolean, [], function () {}),
),
!0
);
} catch (t) {
return !1;
}
})()),
function () {
var t,
r = is(c);
return (
(t = e
? Reflect.construct(r, arguments, is(this).constructor)
: r.apply(this, arguments)),
(function (t, e) {
if (e && ("object" === io(e) || "function" == typeof e))
return e;
if (void 0 !== e)
throw TypeError(
"Derived constructors may only return object or undefined",
);
var r = t;
if (void 0 === r)
throw ReferenceError(
"this hasn't been initialised - super() hasn't been called",
);
return r;
})(this, t)
);
});
function c() {
if (!(this instanceof c))
throw TypeError("Cannot call a class as a function");
return u.apply(this, arguments);
}
return (
(a = [
{
key: "getModelList",
value:
((r = iu(
ii().mark(function t(e) {
var r;
return ii().wrap(
function (t) {
for (;;)
switch ((t.prev = t.next)) {
case 0:
return (
(t.prev = 0),
(t.next = 3),
this.apiClient.post("/model/listByTeam", e)
);
case 3:
return (
(r = t.sent.data), t.abrupt("return", r || null)
);
case 8:
return (
(t.prev = 8),
(t.t0 = t.catch(0)),
t.abrupt("return", null)
);
case 11:
case "end":
return t.stop();
}
},
t,
this,
[[0, 8]],
);
}),
)),
function (t) {
return r.apply(this, arguments);
}),
},
{
key: "getImageTemplateList",
value:
((n = iu(
ii().mark(function t(e) {
var r;
return ii().wrap(
function (t) {
for (;;)
switch ((t.prev = t.next)) {
case 0:
return (
(t.prev = 0),
(t.next = 3),
this.apiClient.post("/model/listByTeam", e)
);
case 3:
return (
(r = t.sent.data), t.abrupt("return", r || null)
);
case 8:
return (
(t.prev = 8),
(t.t0 = t.catch(0)),
t.abrupt("return", null)
);
case 11:
case "end":
return t.stop();
}
},
t,
this,
[[0, 8]],
);
}),
)),
function (t) {
return n.apply(this, arguments);
}),
},
{
key: "getWorkflowList",
value:
((o = iu(
ii().mark(function t(e) {
var r;
return ii().wrap(
function (t) {
for (;;)
switch ((t.prev = t.next)) {
case 0:
return (
(t.prev = 0),
(t.next = 3),
this.apiClient.post("/comfy/listByTeam", e)
);
case 3:
return (
(r = t.sent.data), t.abrupt("return", r || null)
);
case 8:
return (
(t.prev = 8),
(t.t0 = t.catch(0)),
t.abrupt("return", null)
);
case 11:
case "end":
return t.stop();
}
},
t,
this,
[[0, 8]],
);
}),
)),
function (t) {
return o.apply(this, arguments);
}),
},
{
key: "getImageList",
value:
((i = iu(
ii().mark(function t(e) {
var r;
return ii().wrap(
function (t) {
for (;;)
switch ((t.prev = t.next)) {
case 0:
return (
(t.prev = 0),
(t.next = 3),
this.apiClient.post("/img/listByTeam", e)
);
case 3:
return (
(r = t.sent.data), t.abrupt("return", r || null)
);
case 8:
return (
(t.prev = 8),
(t.t0 = t.catch(0)),
t.abrupt("return", null)
);
case 11:
case "end":
return t.stop();
}
},
t,
this,
[[0, 8]],
);
}),
)),
function (t) {
return i.apply(this, arguments);
}),
},
]),
(function (t, e) {
for (var r = 0; r < e.length; r++) {
var n = e[r];
(n.enumerable = n.enumerable || !1),
(n.configurable = !0),
"value" in n && (n.writable = !0),
Object.defineProperty(
t,
(function (t) {
var e = (function (t, e) {
if ("object" != io(t) || !t) return t;
var r = t[Symbol.toPrimitive];
if (void 0 !== r) {
var n = r.call(t, e || "default");
if ("object" != io(n)) return n;
throw TypeError(
"@@toPrimitive must return a primitive value.",
);
}
return ("string" === e ? String : Number)(t);
})(t, "string");
return "symbol" == io(e) ? e : String(e);
})(n.key),
n,
);
}
})(c.prototype, a),
Object.defineProperty(c, "prototype", { writable: !1 }),
c
);
})(eG);
function ip(t) {
return (ip =
"function" == typeof Symbol && "symbol" == typeof Symbol.iterator
? function (t) {
return typeof t;
}
: function (t) {
return t &&
"function" == typeof Symbol &&
t.constructor === Symbol &&
t !== Symbol.prototype
? "symbol"
: typeof t;
})(t);
}
function ih() {
ih = function () {
return e;
};
var t,
e = {},
r = Object.prototype,
n = r.hasOwnProperty,
o =
Object.defineProperty ||
function (t, e, r) {
t[e] = r.value;
},
i = "function" == typeof Symbol ? Symbol : {},
a = i.iterator || "@@iterator",
u = i.asyncIterator || "@@asyncIterator",
c = i.toStringTag || "@@toStringTag";
function s(t, e, r) {
return (
Object.defineProperty(t, e, {
value: r,
enumerable: !0,
configurable: !0,
writable: !0,
}),
t[e]
);
}
try {
s({}, "");
} catch (t) {
s = function (t, e, r) {
return (t[e] = r);
};
}
function l(e, r, n, i) {
var a,
u,
c,
s,
l = Object.create((r && r.prototype instanceof d ? r : d).prototype);
return (
o(l, "_invoke", {
value:
((a = e),
(u = n),
(c = new k(i || [])),
(s = p),
function (e, r) {
if (s === h) throw Error("Generator is already running");
if (s === y) {
if ("throw" === e) throw r;
return { value: t, done: !0 };
}
for (c.method = e, c.arg = r; ; ) {
var n = c.delegate;
if (n) {
var o = (function e(r, n) {
var o = n.method,
i = r.iterator[o];
if (i === t)
return (
(n.delegate = null),
("throw" === o &&
r.iterator.return &&
((n.method = "return"),
(n.arg = t),
e(r, n),
"throw" === n.method)) ||
("return" !== o &&
((n.method = "throw"),
(n.arg = TypeError(
"The iterator does not provide a '" +
o +
"' method",
)))),
v
);
var a = f(i, r.iterator, n.arg);
if ("throw" === a.type)
return (
(n.method = "throw"),
(n.arg = a.arg),
(n.delegate = null),
v
);
var u = a.arg;
return u
? u.done
? ((n[r.resultName] = u.value),
(n.next = r.nextLoc),
"return" !== n.method &&
((n.method = "next"), (n.arg = t)),
(n.delegate = null),
v)
: u
: ((n.method = "throw"),
(n.arg = TypeError(
"iterator result is not an object",
)),
(n.delegate = null),
v);
})(n, c);
if (o) {
if (o === v) continue;
return o;
}
}
if ("next" === c.method) c.sent = c._sent = c.arg;
else if ("throw" === c.method) {
if (s === p) throw ((s = y), c.arg);
c.dispatchException(c.arg);
} else "return" === c.method && c.abrupt("return", c.arg);
s = h;
var i = f(a, u, c);
if ("normal" === i.type) {
if (((s = c.done ? y : "suspendedYield"), i.arg === v))
continue;
return { value: i.arg, done: c.done };
}
"throw" === i.type &&
((s = y), (c.method = "throw"), (c.arg = i.arg));
}
}),
}),
l
);
}
function f(t, e, r) {
try {
return { type: "normal", arg: t.call(e, r) };
} catch (t) {
return { type: "throw", arg: t };
}
}
e.wrap = l;
var p = "suspendedStart",
h = "executing",
y = "completed",
v = {};
function d() {}
function g() {}
function m() {}
var b = {};
s(b, a, function () {
return this;
});
var w = Object.getPrototypeOf,
x = w && w(w(P([])));
x && x !== r && n.call(x, a) && (b = x);
var O = (m.prototype = d.prototype = Object.create(b));
function E(t) {
["next", "throw", "return"].forEach(function (e) {
s(t, e, function (t) {
return this._invoke(e, t);
});
});
}
function L(t, e) {
var r;
o(this, "_invoke", {
value: function (o, i) {
function a() {
return new e(function (r, a) {
!(function r(o, i, a, u) {
var c = f(t[o], t, i);
if ("throw" !== c.type) {
var s = c.arg,
l = s.value;
return l && "object" == ip(l) && n.call(l, "__await")
? e.resolve(l.__await).then(
function (t) {
r("next", t, a, u);
},
function (t) {
r("throw", t, a, u);
},
)
: e.resolve(l).then(
function (t) {
(s.value = t), a(s);
},
function (t) {
return r("throw", t, a, u);
},
);
}
u(c.arg);
})(o, i, r, a);
});
}
return (r = r ? r.then(a, a) : a());
},
});
}
function j(t) {
var e = { tryLoc: t[0] };
1 in t && (e.catchLoc = t[1]),
2 in t && ((e.finallyLoc = t[2]), (e.afterLoc = t[3])),
this.tryEntries.push(e);
}
function _(t) {
var e = t.completion || {};
(e.type = "normal"), delete e.arg, (t.completion = e);
}
function k(t) {
(this.tryEntries = [{ tryLoc: "root" }]),
t.forEach(j, this),
this.reset(!0);
}
function P(e) {
if (e || "" === e) {
var r = e[a];
if (r) return r.call(e);
if ("function" == typeof e.next) return e;
if (!isNaN(e.length)) {
var o = -1,
i = function r() {
for (; ++o < e.length; )
if (n.call(e, o)) return (r.value = e[o]), (r.done = !1), r;
return (r.value = t), (r.done = !0), r;
};
return (i.next = i);
}
}
throw TypeError(ip(e) + " is not iterable");
}
return (
(g.prototype = m),
o(O, "constructor", { value: m, configurable: !0 }),
o(m, "constructor", { value: g, configurable: !0 }),
(g.displayName = s(m, c, "GeneratorFunction")),
(e.isGeneratorFunction = function (t) {
var e = "function" == typeof t && t.constructor;
return (
!!e &&
(e === g || "GeneratorFunction" === (e.displayName || e.name))
);
}),
(e.mark = function (t) {
return (
Object.setPrototypeOf
? Object.setPrototypeOf(t, m)
: ((t.__proto__ = m), s(t, c, "GeneratorFunction")),
(t.prototype = Object.create(O)),
t
);
}),
(e.awrap = function (t) {
return { __await: t };
}),
E(L.prototype),
s(L.prototype, u, function () {
return this;
}),
(e.AsyncIterator = L),
(e.async = function (t, r, n, o, i) {
void 0 === i && (i = Promise);
var a = new L(l(t, r, n, o), i);
return e.isGeneratorFunction(r)
? a
: a.next().then(function (t) {
return t.done ? t.value : a.next();
});
}),
E(O),
s(O, c, "Generator"),
s(O, a, function () {
return this;
}),
s(O, "toString", function () {
return "[object Generator]";
}),
(e.keys = function (t) {
var e = Object(t),
r = [];
for (var n in e) r.push(n);
return (
r.reverse(),
function t() {
for (; r.length; ) {
var n = r.pop();
if (n in e) return (t.value = n), (t.done = !1), t;
}
return (t.done = !0), t;
}
);
}),
(e.values = P),
(k.prototype = {
constructor: k,
reset: function (e) {
if (
((this.prev = 0),
(this.next = 0),
(this.sent = this._sent = t),
(this.done = !1),
(this.delegate = null),
(this.method = "next"),
(this.arg = t),
this.tryEntries.forEach(_),
!e)
)
for (var r in this)
"t" === r.charAt(0) &&
n.call(this, r) &&
!isNaN(+r.slice(1)) &&
(this[r] = t);
},
stop: function () {
this.done = !0;
var t = this.tryEntries[0].completion;
if ("throw" === t.type) throw t.arg;
return this.rval;
},
dispatchException: function (e) {
if (this.done) throw e;
var r = this;
function o(n, o) {
return (
(u.type = "throw"),
(u.arg = e),
(r.next = n),
o && ((r.method = "next"), (r.arg = t)),
!!o
);
}
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
var a = this.tryEntries[i],
u = a.completion;
if ("root" === a.tryLoc) return o("end");
if (a.tryLoc <= this.prev) {
var c = n.call(a, "catchLoc"),
s = n.call(a, "finallyLoc");
if (c && s) {
if (this.prev < a.catchLoc) return o(a.catchLoc, !0);
if (this.prev < a.finallyLoc) return o(a.finallyLoc);
} else if (c) {
if (this.prev < a.catchLoc) return o(a.catchLoc, !0);
} else {
if (!s) throw Error("try statement without catch or finally");
if (this.prev < a.finallyLoc) return o(a.finallyLoc);
}
}
}
},
abrupt: function (t, e) {
for (var r = this.tryEntries.length - 1; r >= 0; --r) {
var o = this.tryEntries[r];
if (
o.tryLoc <= this.prev &&
n.call(o, "finallyLoc") &&
this.prev < o.finallyLoc
) {
var i = o;
break;
}
}
i &&
("break" === t || "continue" === t) &&
i.tryLoc <= e &&
e <= i.finallyLoc &&
(i = null);
var a = i ? i.completion : {};
return (
(a.type = t),
(a.arg = e),
i
? ((this.method = "next"), (this.next = i.finallyLoc), v)
: this.complete(a)
);
},
complete: function (t, e) {
if ("throw" === t.type) throw t.arg;
return (
"break" === t.type || "continue" === t.type
? (this.next = t.arg)
: "return" === t.type
? ((this.rval = this.arg = t.arg),
(this.method = "return"),
(this.next = "end"))
: "normal" === t.type && e && (this.next = e),
v
);
},
finish: function (t) {
for (var e = this.tryEntries.length - 1; e >= 0; --e) {
var r = this.tryEntries[e];
if (r.finallyLoc === t)
return this.complete(r.completion, r.afterLoc), _(r), v;
}
},
catch: function (t) {
for (var e = this.tryEntries.length - 1; e >= 0; --e) {
var r = this.tryEntries[e];
if (r.tryLoc === t) {
var n = r.completion;
if ("throw" === n.type) {
var o = n.arg;
_(r);
}
return o;
}
}
throw Error("illegal catch attempt");
},
delegateYield: function (e, r, n) {
return (
(this.delegate = { iterator: P(e), resultName: r, nextLoc: n }),
"next" === this.method && (this.arg = t),
v
);
},
}),
e
);
}
function iy(t, e) {
var r = Object.keys(t);
if (Object.getOwnPropertySymbols) {
var n = Object.getOwnPropertySymbols(t);
e &&
(n = n.filter(function (e) {
return Object.getOwnPropertyDescriptor(t, e).enumerable;
})),
r.push.apply(r, n);
}
return r;
}
function iv(t) {
for (var e = 1; e < arguments.length; e++) {
var r = null != arguments[e] ? arguments[e] : {};
e % 2
? iy(Object(r), !0).forEach(function (e) {
var n, o, i;
(n = t),
(o = e),
(i = r[e]),
(o = ig(o)) in n
? Object.defineProperty(n, o, {
value: i,
enumerable: !0,
configurable: !0,
writable: !0,
})
: (n[o] = i);
})
: Object.getOwnPropertyDescriptors
? Object.defineProperties(t, Object.getOwnPropertyDescriptors(r))
: iy(Object(r)).forEach(function (e) {
Object.defineProperty(
t,
e,
Object.getOwnPropertyDescriptor(r, e),
);
});
}
return t;
}
function id(t, e, r, n, o, i, a) {
try {
var u = t[i](a),
c = u.value;
} catch (t) {
r(t);
return;
}
u.done ? e(c) : Promise.resolve(c).then(n, o);
}
t.s(["TeamService", () => il], 927075);
function ig(t) {
var e = (function (t, e) {
if ("object" != ip(t) || !t) return t;
var r = t[Symbol.toPrimitive];
if (void 0 !== r) {
var n = r.call(t, e || "default");
if ("object" != ip(n)) return n;
throw TypeError("@@toPrimitive must return a primitive value.");
}
return ("string" === e ? String : Number)(t);
})(t, "string");
return "symbol" == ip(e) ? e : String(e);
}
function im(t, e) {
return (im = Object.setPrototypeOf
? Object.setPrototypeOf.bind()
: function (t, e) {
return (t.__proto__ = e), t;
})(t, e);
}
function ib(t) {
return (ib = Object.setPrototypeOf
? Object.getPrototypeOf.bind()
: function (t) {
return t.__proto__ || Object.getPrototypeOf(t);
})(t);
}
var iw = (function (t) {
if ("function" != typeof t && null !== t)
throw TypeError("Super expression must either be null or a function");
(a.prototype = Object.create(t && t.prototype, {
constructor: { value: a, writable: !0, configurable: !0 },
})),
Object.defineProperty(a, "prototype", { writable: !1 }),
t && im(a, t);
var e,
r,
n,
o,
i =
((e = (function () {
if (
"u" < typeof Reflect ||
!Reflect.construct ||
Reflect.construct.sham
)
return !1;
if ("function" == typeof Proxy) return !0;
try {
return (
Boolean.prototype.valueOf.call(
Reflect.construct(Boolean, [], function () {}),
),
!0
);
} catch (t) {
return !1;
}
})()),
function () {
var t,
r = ib(a);
return (
(t = e
? Reflect.construct(r, arguments, ib(this).constructor)
: r.apply(this, arguments)),
(function (t, e) {
if (e && ("object" === ip(e) || "function" == typeof e))
return e;
if (void 0 !== e)
throw TypeError(
"Derived constructors may only return object or undefined",
);
var r = t;
if (void 0 === r)
throw ReferenceError(
"this hasn't been initialised - super() hasn't been called",
);
return r;
})(this, t)
);
});
function a() {
if (!(this instanceof a))
throw TypeError("Cannot call a class as a function");
return i.apply(this, arguments);
}
return (
(o = [
{
key: "getList",
value:
((r = ih().mark(function t(e) {
var r, n, o, i, a, u, c, s, l, f;
return ih().wrap(
function (t) {
for (;;)
switch ((t.prev = t.next)) {
case 0:
return (
(o =
(n = new URLSearchParams(
null == (r = window)
? void 0
: r.location.search,
)).get("sourceId") ||
(null == n ? void 0 : n.get("sourceid"))),
(i =
(null == n ? void 0 : n.get("keywordId")) ||
(null == n ? void 0 : n.get("keywordid"))),
(a = null == n ? void 0 : n.get("ideaTag")),
(u = iv({}, e)).tagId &&
!u.tagV2Id &&
(u.tagV2Id = u.tagId),
delete u.tagId,
delete u.isWorkflows,
o && ((u.sourceId = o), (u.adSourceId = o)),
a && (u.ideaTag = a),
i && (u.adKeywordId = i),
(t.prev = 11),
(t.next = 15),
this.apiClient.post("model/video/stream", u)
);
case 15:
if (((l = (s = t.sent).data), 0 === s.code)) {
t.next = 20;
break;
}
return t.abrupt("return", {
isError: !0,
data: [],
page: e.page || 1,
pageSize: e.pageSize || 30,
total: 0,
});
case 20:
return (
(f =
null == l || null == (c = l.data)
? void 0
: c.map(function (t) {
return iv(
iv({}, t),
{},
{
isActivity:
t.isActivity === eD.TRUE
? eD.TRUE
: eD.FALSE,
uuid: t.uuid || e3(),
},
);
})),
(l.data = f),
t.abrupt("return", l)
);
case 25:
return (
(t.prev = 25),
(t.t0 = t.catch(11)),
t.abrupt("return", {
isError: !0,
data: [],
page: e.page || 1,
pageSize: e.pageSize || 30,
total: 0,
})
);
case 28:
case "end":
return t.stop();
}
},
t,
this,
[[11, 25]],
);
})),
(n = function () {
var t = this,
e = arguments;
return new Promise(function (n, o) {
var i = r.apply(t, e);
function a(t) {
id(i, n, o, a, u, "next", t);
}
function u(t) {
id(i, n, o, a, u, "throw", t);
}
a(void 0);
});
}),
function (t) {
return n.apply(this, arguments);
}),
},
]),
(function (t, e) {
for (var r = 0; r < e.length; r++) {
var n = e[r];
(n.enumerable = n.enumerable || !1),
(n.configurable = !0),
"value" in n && (n.writable = !0),
Object.defineProperty(t, ig(n.key), n);
}
})(a.prototype, o),
Object.defineProperty(a, "prototype", { writable: !1 }),
a
);
})(eG);
function ix(t) {
return (ix =
"function" == typeof Symbol && "symbol" == typeof Symbol.iterator
? function (t) {
return typeof t;
}
: function (t) {
return t &&
"function" == typeof Symbol &&
t.constructor === Symbol &&
t !== Symbol.prototype
? "symbol"
: typeof t;
})(t);
}
function iO() {
iO = function () {
return e;
};
var t,
e = {},
r = Object.prototype,
n = r.hasOwnProperty,
o =
Object.defineProperty ||
function (t, e, r) {
t[e] = r.value;
},
i = "function" == typeof Symbol ? Symbol : {},
a = i.iterator || "@@iterator",
u = i.asyncIterator || "@@asyncIterator",
c = i.toStringTag || "@@toStringTag";
function s(t, e, r) {
return (
Object.defineProperty(t, e, {
value: r,
enumerable: !0,
configurable: !0,
writable: !0,
}),
t[e]
);
}
try {
s({}, "");
} catch (t) {
s = function (t, e, r) {
return (t[e] = r);
};
}
function l(e, r, n, i) {
var a,
u,
c,
s,
l = Object.create((r && r.prototype instanceof d ? r : d).prototype);
return (
o(l, "_invoke", {
value:
((a = e),
(u = n),
(c = new k(i || [])),
(s = p),
function (e, r) {
if (s === h) throw Error("Generator is already running");
if (s === y) {
if ("throw" === e) throw r;
return { value: t, done: !0 };
}
for (c.method = e, c.arg = r; ; ) {
var n = c.delegate;
if (n) {
var o = (function e(r, n) {
var o = n.method,
i = r.iterator[o];
if (i === t)
return (
(n.delegate = null),
("throw" === o &&
r.iterator.return &&
((n.method = "return"),
(n.arg = t),
e(r, n),
"throw" === n.method)) ||
("return" !== o &&
((n.method = "throw"),
(n.arg = TypeError(
"The iterator does not provide a '" +
o +
"' method",
)))),
v
);
var a = f(i, r.iterator, n.arg);
if ("throw" === a.type)
return (
(n.method = "throw"),
(n.arg = a.arg),
(n.delegate = null),
v
);
var u = a.arg;
return u
? u.done
? ((n[r.resultName] = u.value),
(n.next = r.nextLoc),
"return" !== n.method &&
((n.method = "next"), (n.arg = t)),
(n.delegate = null),
v)
: u
: ((n.method = "throw"),
(n.arg = TypeError(
"iterator result is not an object",
)),
(n.delegate = null),
v);
})(n, c);
if (o) {
if (o === v) continue;
return o;
}
}
if ("next" === c.method) c.sent = c._sent = c.arg;
else if ("throw" === c.method) {
if (s === p) throw ((s = y), c.arg);
c.dispatchException(c.arg);
} else "return" === c.method && c.abrupt("return", c.arg);
s = h;
var i = f(a, u, c);
if ("normal" === i.type) {
if (((s = c.done ? y : "suspendedYield"), i.arg === v))
continue;
return { value: i.arg, done: c.done };
}
"throw" === i.type &&
((s = y), (c.method = "throw"), (c.arg = i.arg));
}
}),
}),
l
);
}
function f(t, e, r) {
try {
return { type: "normal", arg: t.call(e, r) };
} catch (t) {
return { type: "throw", arg: t };
}
}
e.wrap = l;
var p = "suspendedStart",
h = "executing",
y = "completed",
v = {};
function d() {}
function g() {}
function m() {}
var b = {};
s(b, a, function () {
return this;
});
var w = Object.getPrototypeOf,
x = w && w(w(P([])));
x && x !== r && n.call(x, a) && (b = x);
var O = (m.prototype = d.prototype = Object.create(b));
function E(t) {
["next", "throw", "return"].forEach(function (e) {
s(t, e, function (t) {
return this._invoke(e, t);
});
});
}
function L(t, e) {
var r;
o(this, "_invoke", {
value: function (o, i) {
function a() {
return new e(function (r, a) {
!(function r(o, i, a, u) {
var c = f(t[o], t, i);
if ("throw" !== c.type) {
var s = c.arg,
l = s.value;
return l && "object" == ix(l) && n.call(l, "__await")
? e.resolve(l.__await).then(
function (t) {
r("next", t, a, u);
},
function (t) {
r("throw", t, a, u);
},
)
: e.resolve(l).then(
function (t) {
(s.value = t), a(s);
},
function (t) {
return r("throw", t, a, u);
},
);
}
u(c.arg);
})(o, i, r, a);
});
}
return (r = r ? r.then(a, a) : a());
},
});
}
function j(t) {
var e = { tryLoc: t[0] };
1 in t && (e.catchLoc = t[1]),
2 in t && ((e.finallyLoc = t[2]), (e.afterLoc = t[3])),
this.tryEntries.push(e);
}
function _(t) {
var e = t.completion || {};
(e.type = "normal"), delete e.arg, (t.completion = e);
}
function k(t) {
(this.tryEntries = [{ tryLoc: "root" }]),
t.forEach(j, this),
this.reset(!0);
}
function P(e) {
if (e || "" === e) {
var r = e[a];
if (r) return r.call(e);
if ("function" == typeof e.next) return e;
if (!isNaN(e.length)) {
var o = -1,
i = function r() {
for (; ++o < e.length; )
if (n.call(e, o)) return (r.value = e[o]), (r.done = !1), r;
return (r.value = t), (r.done = !0), r;
};
return (i.next = i);
}
}
throw TypeError(ix(e) + " is not iterable");
}
return (
(g.prototype = m),
o(O, "constructor", { value: m, configurable: !0 }),
o(m, "constructor", { value: g, configurable: !0 }),
(g.displayName = s(m, c, "GeneratorFunction")),
(e.isGeneratorFunction = function (t) {
var e = "function" == typeof t && t.constructor;
return (
!!e &&
(e === g || "GeneratorFunction" === (e.displayName || e.name))
);
}),
(e.mark = function (t) {
return (
Object.setPrototypeOf
? Object.setPrototypeOf(t, m)
: ((t.__proto__ = m), s(t, c, "GeneratorFunction")),
(t.prototype = Object.create(O)),
t
);
}),
(e.awrap = function (t) {
return { __await: t };
}),
E(L.prototype),
s(L.prototype, u, function () {
return this;
}),
(e.AsyncIterator = L),
(e.async = function (t, r, n, o, i) {
void 0 === i && (i = Promise);
var a = new L(l(t, r, n, o), i);
return e.isGeneratorFunction(r)
? a
: a.next().then(function (t) {
return t.done ? t.value : a.next();
});
}),
E(O),
s(O, c, "Generator"),
s(O, a, function () {
return this;
}),
s(O, "toString", function () {
return "[object Generator]";
}),
(e.keys = function (t) {
var e = Object(t),
r = [];
for (var n in e) r.push(n);
return (
r.reverse(),
function t() {
for (; r.length; ) {
var n = r.pop();
if (n in e) return (t.value = n), (t.done = !1), t;
}
return (t.done = !0), t;
}
);
}),
(e.values = P),
(k.prototype = {
constructor: k,
reset: function (e) {
if (
((this.prev = 0),
(this.next = 0),
(this.sent = this._sent = t),
(this.done = !1),
(this.delegate = null),
(this.method = "next"),
(this.arg = t),
this.tryEntries.forEach(_),
!e)
)
for (var r in this)
"t" === r.charAt(0) &&
n.call(this, r) &&
!isNaN(+r.slice(1)) &&
(this[r] = t);
},
stop: function () {
this.done = !0;
var t = this.tryEntries[0].completion;
if ("throw" === t.type) throw t.arg;
return this.rval;
},
dispatchException: function (e) {
if (this.done) throw e;
var r = this;
function o(n, o) {
return (
(u.type = "throw"),
(u.arg = e),
(r.next = n),
o && ((r.method = "next"), (r.arg = t)),
!!o
);
}
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
var a = this.tryEntries[i],
u = a.completion;
if ("root" === a.tryLoc) return o("end");
if (a.tryLoc <= this.prev) {
var c = n.call(a, "catchLoc"),
s = n.call(a, "finallyLoc");
if (c && s) {
if (this.prev < a.catchLoc) return o(a.catchLoc, !0);
if (this.prev < a.finallyLoc) return o(a.finallyLoc);
} else if (c) {
if (this.prev < a.catchLoc) return o(a.catchLoc, !0);
} else {
if (!s) throw Error("try statement without catch or finally");
if (this.prev < a.finallyLoc) return o(a.finallyLoc);
}
}
}
},
abrupt: function (t, e) {
for (var r = this.tryEntries.length - 1; r >= 0; --r) {
var o = this.tryEntries[r];
if (
o.tryLoc <= this.prev &&
n.call(o, "finallyLoc") &&
this.prev < o.finallyLoc
) {
var i = o;
break;
}
}
i &&
("break" === t || "continue" === t) &&
i.tryLoc <= e &&
e <= i.finallyLoc &&
(i = null);
var a = i ? i.completion : {};
return (
(a.type = t),
(a.arg = e),
i
? ((this.method = "next"), (this.next = i.finallyLoc), v)
: this.complete(a)
);
},
complete: function (t, e) {
if ("throw" === t.type) throw t.arg;
return (
"break" === t.type || "continue" === t.type
? (this.next = t.arg)
: "return" === t.type
? ((this.rval = this.arg = t.arg),
(this.method = "return"),
(this.next = "end"))
: "normal" === t.type && e && (this.next = e),
v
);
},
finish: function (t) {
for (var e = this.tryEntries.length - 1; e >= 0; --e) {
var r = this.tryEntries[e];
if (r.finallyLoc === t)
return this.complete(r.completion, r.afterLoc), _(r), v;
}
},
catch: function (t) {
for (var e = this.tryEntries.length - 1; e >= 0; --e) {
var r = this.tryEntries[e];
if (r.tryLoc === t) {
var n = r.completion;
if ("throw" === n.type) {
var o = n.arg;
_(r);
}
return o;
}
}
throw Error("illegal catch attempt");
},
delegateYield: function (e, r, n) {
return (
(this.delegate = { iterator: P(e), resultName: r, nextLoc: n }),
"next" === this.method && (this.arg = t),
v
);
},
}),
e
);
}
function iE(t, e, r, n, o, i, a) {
try {
var u = t[i](a),
c = u.value;
} catch (t) {
r(t);
return;
}
u.done ? e(c) : Promise.resolve(c).then(n, o);
}
function iL(t) {
return function () {
var e = this,
r = arguments;
return new Promise(function (n, o) {
var i = t.apply(e, r);
function a(t) {
iE(i, n, o, a, u, "next", t);
}
function u(t) {
iE(i, n, o, a, u, "throw", t);
}
a(void 0);
});
};
}
t.s(["VideoEffectService", () => iw], 166781);
function ij(t, e) {
return (ij = Object.setPrototypeOf
? Object.setPrototypeOf.bind()
: function (t, e) {
return (t.__proto__ = e), t;
})(t, e);
}
function i_(t) {
return (i_ = Object.setPrototypeOf
? Object.getPrototypeOf.bind()
: function (t) {
return t.__proto__ || Object.getPrototypeOf(t);
})(t);
}
var ik = (function (t) {
if ("function" != typeof t && null !== t)
throw TypeError("Super expression must either be null or a function");
(h.prototype = Object.create(t && t.prototype, {
constructor: { value: h, writable: !0, configurable: !0 },
})),
Object.defineProperty(h, "prototype", { writable: !1 }),
t && ij(h, t);
var e,
r,
n,
o,
i,
a,
u,
c,
s,
l,
f,
p =
((e = (function () {
if (
"u" < typeof Reflect ||
!Reflect.construct ||
Reflect.construct.sham
)
return !1;
if ("function" == typeof Proxy) return !0;
try {
return (
Boolean.prototype.valueOf.call(
Reflect.construct(Boolean, [], function () {}),
),
!0
);
} catch (t) {
return !1;
}
})()),
function () {
var t,
r = i_(h);
return (
(t = e
? Reflect.construct(r, arguments, i_(this).constructor)
: r.apply(this, arguments)),
(function (t, e) {
if (e && ("object" === ix(e) || "function" == typeof e))
return e;
if (void 0 !== e)
throw TypeError(
"Derived constructors may only return object or undefined",
);
var r = t;
if (void 0 === r)
throw ReferenceError(
"this hasn't been initialised - super() hasn't been called",
);
return r;
})(this, t)
);
});
function h() {
if (!(this instanceof h))
throw TypeError("Cannot call a class as a function");
return p.apply(this, arguments);
}
return (
(f = [
{
key: "getCommunityUserTag",
value:
((r = iL(
iO().mark(function t(e) {
var r;
return iO().wrap(
function (t) {
for (;;)
switch ((t.prev = t.next)) {
case 0:
return (
(t.prev = 0),
(t.next = 3),
this.apiClient.post(
"/api/community/user/userTag",
e,
)
);
case 3:
return (r = t.sent), t.abrupt("return", r || null);
case 7:
return (
(t.prev = 7),
(t.t0 = t.catch(0)),
t.abrupt("return", null)
);
case 10:
case "end":
return t.stop();
}
},
t,
this,
[[0, 7]],
);
}),
)),
function (t) {
return r.apply(this, arguments);
}),
},
{
key: "getTVList",
value:
((n = iL(
iO().mark(function t(e) {
var r;
return iO().wrap(
function (t) {
for (;;)
switch ((t.prev = t.next)) {
case 0:
return (
(t.next = 2),
this.apiClient.post(
"/api/canvas/project/template/list",
e,
)
);
case 2:
return (
(r = t.sent),
t.abrupt(
"return",
r.data || { list: [], total: 0 },
)
);
case 4:
case "end":
return t.stop();
}
},
t,
this,
);
}),
)),
function (t) {
return n.apply(this, arguments);
}),
},
{
key: "getLikeTVList",
value:
((o = iL(
iO().mark(function t(e) {
var r;
return iO().wrap(
function (t) {
for (;;)
switch ((t.prev = t.next)) {
case 0:
return (
(t.next = 2),
this.apiClient.post(
"/api/canvas/project/template/like",
e,
)
);
case 2:
return (
(r = t.sent),
t.abrupt(
"return",
r.data || { list: [], total: 0 },
)
);
case 4:
case "end":
return t.stop();
}
},
t,
this,
);
}),
)),
function (t) {
return o.apply(this, arguments);
}),
},
{
key: "setTVTop",
value:
((i = iL(
iO().mark(function t(e) {
var r;
return iO().wrap(
function (t) {
for (;;)
switch ((t.prev = t.next)) {
case 0:
return (
(t.prev = 0),
(t.next = 3),
this.apiClient.post(
"/api/canvas/project/template/setTop",
e,
)
);
case 3:
return (
(r = t.sent), t.abrupt("return", 0 === r.code)
);
case 7:
return (
(t.prev = 7),
(t.t0 = t.catch(0)),
t.abrupt("return", !1)
);
case 10:
case "end":
return t.stop();
}
},
t,
this,
[[0, 7]],
);
}),
)),
function (t) {
return i.apply(this, arguments);
}),
},
{
key: "editTV",
value:
((a = iL(
iO().mark(function t(e) {
var r;
return iO().wrap(
function (t) {
for (;;)
switch ((t.prev = t.next)) {
case 0:
return (
(t.prev = 0),
(t.next = 3),
this.apiClient.post(
"/api/canvas/project/template/republish",
e,
)
);
case 3:
return (
(r = t.sent), t.abrupt("return", 0 === r.code)
);
case 7:
return (
(t.prev = 7),
(t.t0 = t.catch(0)),
t.abrupt("return", !1)
);
case 10:
case "end":
return t.stop();
}
},
t,
this,
[[0, 7]],
);
}),
)),
function (t) {
return a.apply(this, arguments);
}),
},
{
key: "deleteTV",
value:
((u = iL(
iO().mark(function t(e) {
var r;
return iO().wrap(
function (t) {
for (;;)
switch ((t.prev = t.next)) {
case 0:
return (
(t.prev = 0),
(t.next = 3),
this.apiClient.post(
"/api/canvas/project/template/delete",
{ projectTemplateUuid: e },
)
);
case 3:
return (
(r = t.sent), t.abrupt("return", 0 === r.code)
);
case 7:
return (
(t.prev = 7),
(t.t0 = t.catch(0)),
t.abrupt("return", !1)
);
case 10:
case "end":
return t.stop();
}
},
t,
this,
[[0, 7]],
);
}),
)),
function (t) {
return u.apply(this, arguments);
}),
},
{
key: "listTaskArtifacts",
value:
((c = iL(
iO().mark(function t(e) {
var r;
return iO().wrap(
function (t) {
for (;;)
switch ((t.prev = t.next)) {
case 0:
return (
(t.next = 2),
this.apiClient.post("/api/task/artifact/list", e)
);
case 2:
return (
(r = t.sent),
t.abrupt(
"return",
r.data || { list: [], total: 0 },
)
);
case 4:
case "end":
return t.stop();
}
},
t,
this,
);
}),
)),
function (t) {
return c.apply(this, arguments);
}),
},
{
key: "delTaskArtifact",
value:
((s = iL(
iO().mark(function t(e) {
var r;
return iO().wrap(
function (t) {
for (;;)
switch ((t.prev = t.next)) {
case 0:
return (
(t.prev = 0),
(t.next = 3),
this.apiClient.post("/api/task/artifact/delete", {
artifactId: e,
})
);
case 3:
return (
(r = t.sent), t.abrupt("return", 0 === r.code)
);
case 7:
return (
(t.prev = 7),
(t.t0 = t.catch(0)),
t.abrupt("return", !1)
);
case 10:
case "end":
return t.stop();
}
},
t,
this,
[[0, 7]],
);
}),
)),
function (t) {
return s.apply(this, arguments);
}),
},
{
key: "checkProjectTemplate",
value:
((l = iL(
iO().mark(function t() {
var e;
return iO().wrap(
function (t) {
for (;;)
switch ((t.prev = t.next)) {
case 0:
return (
(t.next = 2),
this.apiClient.post(
"/api/canvas/project/template/check",
)
);
case 2:
return (e = t.sent), t.abrupt("return", e);
case 4:
case "end":
return t.stop();
}
},
t,
this,
);
}),
)),
function () {
return l.apply(this, arguments);
}),
},
]),
(function (t, e) {
for (var r = 0; r < e.length; r++) {
var n = e[r];
(n.enumerable = n.enumerable || !1),
(n.configurable = !0),
"value" in n && (n.writable = !0),
Object.defineProperty(
t,
(function (t) {
var e = (function (t, e) {
if ("object" != ix(t) || !t) return t;
var r = t[Symbol.toPrimitive];
if (void 0 !== r) {
var n = r.call(t, e || "default");
if ("object" != ix(n)) return n;
throw TypeError(
"@@toPrimitive must return a primitive value.",
);
}
return ("string" === e ? String : Number)(t);
})(t, "string");
return "symbol" == ix(e) ? e : String(e);
})(n.key),
n,
);
}
})(h.prototype, f),
Object.defineProperty(h, "prototype", { writable: !1 }),
h
);
})(eG);
t.s(["TVService", () => ik], 104538),
t.s([], 966660),
t.i(952311),
t.i(317491),
t.i(128952),
t.i(219833),
t.i(418534),
t.i(920692),
t.s(["ModelInfoService", () => nR], 466752);
};
export default moduleFactory;