import { hasInjectionContext, getCurrentInstance, inject, ref, defineComponent, createElementBlock, provide, computed, renderSlot, watch, openBlock, normalizeStyle, normalizeClass, unref, withDirectives, cloneVNode, Fragment, Text, Comment, createVNode, createBlock, createCommentVNode, mergeProps, withCtx, toRef, Transition, vShow, readonly, toDisplayString, createTextVNode, h, createElementVNode, resolveDynamicComponent, useSlots, createSlots, reactive, shallowReactive, createApp, warn, nextTick, onErrorCaptured, onServerPrefetch, effectScope, isReadonly, isRef, isShallow, isReactive, toRaw, shallowRef, watchEffect, defineAsyncComponent, getCurrentScope, Teleport as Teleport$1, onScopeDispose, renderList, useSSRContext, isVNode } from 'vue'; import ft$1 from 'node:http'; import Qa from 'node:https'; import Ye$1 from 'node:zlib'; import ie, { PassThrough, pipeline } from 'node:stream'; import { Buffer as Buffer$1 } from 'node:buffer'; import { promisify, deprecate, types } from 'node:util'; import { format } from 'node:url'; import { isIP } from 'node:net'; import { promises, statSync, createReadStream } from 'node:fs'; import { basename } from 'node:path'; import { u as useHead$1, h as headSymbol, b as baseURL } from '../routes/renderer.mjs'; import { k as sanitizeStatusCode, l as getContext, m as createHooks, h as createError$1, n as toRouteMatcher, o as createRouter } from '../_/nitro.mjs'; import { ssrRenderSuspense, ssrRenderComponent, ssrRenderVNode, ssrInterpolate, ssrRenderAttr, ssrRenderList, ssrRenderClass, ssrRenderStyle, ssrIncludeBooleanAttr, ssrRenderAttrs } from 'vue/server-renderer'; import axios from 'axios'; import 'vue-bundle-renderer/runtime'; import 'unhead/server'; import 'unhead/utils'; import 'devalue'; import 'unhead/plugins'; import 'node:events'; import 'node:crypto'; var __typeError = (msg) => { throw TypeError(msg); }; var __accessCheck = (obj, member, msg) => member.has(obj) || __typeError("Cannot " + msg); var __privateGet = (obj, member, getter) => (__accessCheck(obj, member, "read from private field"), getter ? getter.call(obj) : member.get(obj)); var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot add the same private member more than once") : member instanceof WeakSet ? member.add(obj) : member.set(obj, value); var __privateSet = (obj, member, value, setter) => (__accessCheck(obj, member, "write to private field"), member.set(obj, value), value); var _e2, _t2, _r, _n, _a, _e3, _t3, _b, _e4, _c, _d, _e, _f, _g, _h, _e5, _t4, _i, _j, _k; var t = Object.defineProperty; var o$1 = (e, l) => t(e, "name", { value: l, configurable: true }); var n$2 = typeof globalThis < "u" ? globalThis : typeof global < "u" ? global : typeof self < "u" ? self : {}; function f(e) { return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e; } o$1(f, "getDefaultExportFromCjs"); var Va = Object.defineProperty; var n$1 = (i, o2) => Va(i, "name", { value: o2, configurable: true }); function ts(i) { if (!/^data:/i.test(i)) throw new TypeError('`uri` does not appear to be a Data URI (must begin with "data:")'); i = i.replace(/\r?\n/g, ""); const o2 = i.indexOf(","); if (o2 === -1 || o2 <= 4) throw new TypeError("malformed data: URI"); const a = i.substring(5, o2).split(";"); let l = "", u = false; const m = a[0] || "text/plain"; let h2 = m; for (let A = 1; A < a.length; A++) a[A] === "base64" ? u = true : a[A] && (h2 += `;${a[A]}`, a[A].indexOf("charset=") === 0 && (l = a[A].substring(8))); !a[0] && !l.length && (h2 += ";charset=US-ASCII", l = "US-ASCII"); const S = u ? "base64" : "ascii", E2 = unescape(i.substring(o2 + 1)), w = Buffer.from(E2, S); return w.type = m, w.typeFull = h2, w.charset = l, w; } n$1(ts, "dataUriToBuffer"); var Eo = {}, ct$1 = { exports: {} }; /** * @license * web-streams-polyfill v3.3.3 * Copyright 2024 Mattias Buelens, Diwank Singh Tomer and other contributors. * This code is released under the MIT license. * SPDX-License-Identifier: MIT */ var rs = ct$1.exports, vo; function ns() { return vo || (vo = 1, function(i, o2) { (function(a, l) { l(o2); })(rs, function(a) { function l() { } n$1(l, "noop"); function u(e) { return typeof e == "object" && e !== null || typeof e == "function"; } n$1(u, "typeIsObject"); const m = l; function h2(e, t2) { try { Object.defineProperty(e, "name", { value: t2, configurable: true }); } catch { } } n$1(h2, "setFunctionName"); const S = Promise, E2 = Promise.prototype.then, w = Promise.reject.bind(S); function A(e) { return new S(e); } n$1(A, "newPromise"); function T2(e) { return A((t2) => t2(e)); } n$1(T2, "promiseResolvedWith"); function b(e) { return w(e); } n$1(b, "promiseRejectedWith"); function q2(e, t2, r2) { return E2.call(e, t2, r2); } n$1(q2, "PerformPromiseThen"); function g(e, t2, r2) { q2(q2(e, t2, r2), void 0, m); } n$1(g, "uponPromise"); function V(e, t2) { g(e, t2); } n$1(V, "uponFulfillment"); function I2(e, t2) { g(e, void 0, t2); } n$1(I2, "uponRejection"); function F(e, t2, r2) { return q2(e, t2, r2); } n$1(F, "transformPromiseWith"); function Q2(e) { q2(e, void 0, m); } n$1(Q2, "setPromiseIsHandledToTrue"); let se2 = n$1((e) => { if (typeof queueMicrotask == "function") se2 = queueMicrotask; else { const t2 = T2(void 0); se2 = n$1((r2) => q2(t2, r2), "_queueMicrotask"); } return se2(e); }, "_queueMicrotask"); function O(e, t2, r2) { if (typeof e != "function") throw new TypeError("Argument is not a function"); return Function.prototype.apply.call(e, t2, r2); } n$1(O, "reflectCall"); function z(e, t2, r2) { try { return T2(O(e, t2, r2)); } catch (s) { return b(s); } } n$1(z, "promiseCall"); const $ = 16384; const _M = class _M { constructor() { this._cursor = 0, this._size = 0, this._front = { _elements: [], _next: void 0 }, this._back = this._front, this._cursor = 0, this._size = 0; } get length() { return this._size; } push(t2) { const r2 = this._back; let s = r2; r2._elements.length === $ - 1 && (s = { _elements: [], _next: void 0 }), r2._elements.push(t2), s !== r2 && (this._back = s, r2._next = s), ++this._size; } shift() { const t2 = this._front; let r2 = t2; const s = this._cursor; let f2 = s + 1; const c = t2._elements, d = c[s]; return f2 === $ && (r2 = t2._next, f2 = 0), --this._size, this._cursor = f2, t2 !== r2 && (this._front = r2), c[s] = void 0, d; } forEach(t2) { let r2 = this._cursor, s = this._front, f2 = s._elements; for (; (r2 !== f2.length || s._next !== void 0) && !(r2 === f2.length && (s = s._next, f2 = s._elements, r2 = 0, f2.length === 0)); ) t2(f2[r2]), ++r2; } peek() { const t2 = this._front, r2 = this._cursor; return t2._elements[r2]; } }; n$1(_M, "SimpleQueue"); let M = _M; const pt2 = Symbol("[[AbortSteps]]"), an2 = Symbol("[[ErrorSteps]]"), ar = Symbol("[[CancelSteps]]"), sr = Symbol("[[PullSteps]]"), ur = Symbol("[[ReleaseSteps]]"); function sn2(e, t2) { e._ownerReadableStream = t2, t2._reader = e, t2._state === "readable" ? fr(e) : t2._state === "closed" ? ri(e) : un2(e, t2._storedError); } n$1(sn2, "ReadableStreamReaderGenericInitialize"); function lr(e, t2) { const r2 = e._ownerReadableStream; return X2(r2, t2); } n$1(lr, "ReadableStreamReaderGenericCancel"); function ue(e) { const t2 = e._ownerReadableStream; t2._state === "readable" ? cr(e, new TypeError("Reader was released and can no longer be used to monitor the stream's closedness")) : ni(e, new TypeError("Reader was released and can no longer be used to monitor the stream's closedness")), t2._readableStreamController[ur](), t2._reader = void 0, e._ownerReadableStream = void 0; } n$1(ue, "ReadableStreamReaderGenericRelease"); function yt2(e) { return new TypeError("Cannot " + e + " a stream using a released reader"); } n$1(yt2, "readerLockException"); function fr(e) { e._closedPromise = A((t2, r2) => { e._closedPromise_resolve = t2, e._closedPromise_reject = r2; }); } n$1(fr, "defaultReaderClosedPromiseInitialize"); function un2(e, t2) { fr(e), cr(e, t2); } n$1(un2, "defaultReaderClosedPromiseInitializeAsRejected"); function ri(e) { fr(e), ln2(e); } n$1(ri, "defaultReaderClosedPromiseInitializeAsResolved"); function cr(e, t2) { e._closedPromise_reject !== void 0 && (Q2(e._closedPromise), e._closedPromise_reject(t2), e._closedPromise_resolve = void 0, e._closedPromise_reject = void 0); } n$1(cr, "defaultReaderClosedPromiseReject"); function ni(e, t2) { un2(e, t2); } n$1(ni, "defaultReaderClosedPromiseResetToRejected"); function ln2(e) { e._closedPromise_resolve !== void 0 && (e._closedPromise_resolve(void 0), e._closedPromise_resolve = void 0, e._closedPromise_reject = void 0); } n$1(ln2, "defaultReaderClosedPromiseResolve"); const fn2 = Number.isFinite || function(e) { return typeof e == "number" && isFinite(e); }, oi = Math.trunc || function(e) { return e < 0 ? Math.ceil(e) : Math.floor(e); }; function ii(e) { return typeof e == "object" || typeof e == "function"; } n$1(ii, "isDictionary"); function ne2(e, t2) { if (e !== void 0 && !ii(e)) throw new TypeError(`${t2} is not an object.`); } n$1(ne2, "assertDictionary"); function G2(e, t2) { if (typeof e != "function") throw new TypeError(`${t2} is not a function.`); } n$1(G2, "assertFunction"); function ai(e) { return typeof e == "object" && e !== null || typeof e == "function"; } n$1(ai, "isObject"); function cn2(e, t2) { if (!ai(e)) throw new TypeError(`${t2} is not an object.`); } n$1(cn2, "assertObject"); function le(e, t2, r2) { if (e === void 0) throw new TypeError(`Parameter ${t2} is required in '${r2}'.`); } n$1(le, "assertRequiredArgument"); function dr(e, t2, r2) { if (e === void 0) throw new TypeError(`${t2} is required in '${r2}'.`); } n$1(dr, "assertRequiredField"); function hr(e) { return Number(e); } n$1(hr, "convertUnrestrictedDouble"); function dn2(e) { return e === 0 ? 0 : e; } n$1(dn2, "censorNegativeZero"); function si(e) { return dn2(oi(e)); } n$1(si, "integerPart"); function mr(e, t2) { const s = Number.MAX_SAFE_INTEGER; let f2 = Number(e); if (f2 = dn2(f2), !fn2(f2)) throw new TypeError(`${t2} is not a finite number`); if (f2 = si(f2), f2 < 0 || f2 > s) throw new TypeError(`${t2} is outside the accepted range of 0 to ${s}, inclusive`); return !fn2(f2) || f2 === 0 ? 0 : f2; } n$1(mr, "convertUnsignedLongLongWithEnforceRange"); function br(e, t2) { if (!Te2(e)) throw new TypeError(`${t2} is not a ReadableStream.`); } n$1(br, "assertReadableStream"); function ze(e) { return new ye2(e); } n$1(ze, "AcquireReadableStreamDefaultReader"); function hn(e, t2) { e._reader._readRequests.push(t2); } n$1(hn, "ReadableStreamAddReadRequest"); function pr(e, t2, r2) { const f2 = e._reader._readRequests.shift(); r2 ? f2._closeSteps() : f2._chunkSteps(t2); } n$1(pr, "ReadableStreamFulfillReadRequest"); function gt2(e) { return e._reader._readRequests.length; } n$1(gt2, "ReadableStreamGetNumReadRequests"); function mn2(e) { const t2 = e._reader; return !(t2 === void 0 || !ge2(t2)); } n$1(mn2, "ReadableStreamHasDefaultReader"); const _ye = class _ye { constructor(t2) { if (le(t2, 1, "ReadableStreamDefaultReader"), br(t2, "First parameter"), Ce(t2)) throw new TypeError("This stream has already been locked for exclusive reading by another reader"); sn2(this, t2), this._readRequests = new M(); } get closed() { return ge2(this) ? this._closedPromise : b(_t5("closed")); } cancel(t2 = void 0) { return ge2(this) ? this._ownerReadableStream === void 0 ? b(yt2("cancel")) : lr(this, t2) : b(_t5("cancel")); } read() { if (!ge2(this)) return b(_t5("read")); if (this._ownerReadableStream === void 0) return b(yt2("read from")); let t2, r2; const s = A((c, d) => { t2 = c, r2 = d; }); return et2(this, { _chunkSteps: n$1((c) => t2({ value: c, done: false }), "_chunkSteps"), _closeSteps: n$1(() => t2({ value: void 0, done: true }), "_closeSteps"), _errorSteps: n$1((c) => r2(c), "_errorSteps") }), s; } releaseLock() { if (!ge2(this)) throw _t5("releaseLock"); this._ownerReadableStream !== void 0 && ui(this); } }; n$1(_ye, "ReadableStreamDefaultReader"); let ye2 = _ye; Object.defineProperties(ye2.prototype, { cancel: { enumerable: true }, read: { enumerable: true }, releaseLock: { enumerable: true }, closed: { enumerable: true } }), h2(ye2.prototype.cancel, "cancel"), h2(ye2.prototype.read, "read"), h2(ye2.prototype.releaseLock, "releaseLock"), typeof Symbol.toStringTag == "symbol" && Object.defineProperty(ye2.prototype, Symbol.toStringTag, { value: "ReadableStreamDefaultReader", configurable: true }); function ge2(e) { return !u(e) || !Object.prototype.hasOwnProperty.call(e, "_readRequests") ? false : e instanceof ye2; } n$1(ge2, "IsReadableStreamDefaultReader"); function et2(e, t2) { const r2 = e._ownerReadableStream; r2._disturbed = true, r2._state === "closed" ? t2._closeSteps() : r2._state === "errored" ? t2._errorSteps(r2._storedError) : r2._readableStreamController[sr](t2); } n$1(et2, "ReadableStreamDefaultReaderRead"); function ui(e) { ue(e); const t2 = new TypeError("Reader was released"); bn(e, t2); } n$1(ui, "ReadableStreamDefaultReaderRelease"); function bn(e, t2) { const r2 = e._readRequests; e._readRequests = new M(), r2.forEach((s) => { s._errorSteps(t2); }); } n$1(bn, "ReadableStreamDefaultReaderErrorReadRequests"); function _t5(e) { return new TypeError(`ReadableStreamDefaultReader.prototype.${e} can only be used on a ReadableStreamDefaultReader`); } n$1(_t5, "defaultReaderBrandCheckException"); const li = Object.getPrototypeOf(Object.getPrototypeOf(async function* () { }).prototype); const _pn = class _pn { constructor(t2, r2) { this._ongoingPromise = void 0, this._isFinished = false, this._reader = t2, this._preventCancel = r2; } next() { const t2 = n$1(() => this._nextSteps(), "nextSteps"); return this._ongoingPromise = this._ongoingPromise ? F(this._ongoingPromise, t2, t2) : t2(), this._ongoingPromise; } return(t2) { const r2 = n$1(() => this._returnSteps(t2), "returnSteps"); return this._ongoingPromise ? F(this._ongoingPromise, r2, r2) : r2(); } _nextSteps() { if (this._isFinished) return Promise.resolve({ value: void 0, done: true }); const t2 = this._reader; let r2, s; const f2 = A((d, p) => { r2 = d, s = p; }); return et2(t2, { _chunkSteps: n$1((d) => { this._ongoingPromise = void 0, se2(() => r2({ value: d, done: false })); }, "_chunkSteps"), _closeSteps: n$1(() => { this._ongoingPromise = void 0, this._isFinished = true, ue(t2), r2({ value: void 0, done: true }); }, "_closeSteps"), _errorSteps: n$1((d) => { this._ongoingPromise = void 0, this._isFinished = true, ue(t2), s(d); }, "_errorSteps") }), f2; } _returnSteps(t2) { if (this._isFinished) return Promise.resolve({ value: t2, done: true }); this._isFinished = true; const r2 = this._reader; if (!this._preventCancel) { const s = lr(r2, t2); return ue(r2), F(s, () => ({ value: t2, done: true })); } return ue(r2), T2({ value: t2, done: true }); } }; n$1(_pn, "ReadableStreamAsyncIteratorImpl"); let pn2 = _pn; const yn2 = { next() { return gn2(this) ? this._asyncIteratorImpl.next() : b(_n2("next")); }, return(e) { return gn2(this) ? this._asyncIteratorImpl.return(e) : b(_n2("return")); } }; Object.setPrototypeOf(yn2, li); function fi(e, t2) { const r2 = ze(e), s = new pn2(r2, t2), f2 = Object.create(yn2); return f2._asyncIteratorImpl = s, f2; } n$1(fi, "AcquireReadableStreamAsyncIterator"); function gn2(e) { if (!u(e) || !Object.prototype.hasOwnProperty.call(e, "_asyncIteratorImpl")) return false; try { return e._asyncIteratorImpl instanceof pn2; } catch { return false; } } n$1(gn2, "IsReadableStreamAsyncIterator"); function _n2(e) { return new TypeError(`ReadableStreamAsyncIterator.${e} can only be used on a ReadableSteamAsyncIterator`); } n$1(_n2, "streamAsyncIteratorBrandCheckException"); const Sn = Number.isNaN || function(e) { return e !== e; }; var yr, gr, _r2; function tt2(e) { return e.slice(); } n$1(tt2, "CreateArrayFromList"); function wn(e, t2, r2, s, f2) { new Uint8Array(e).set(new Uint8Array(r2, s, f2), t2); } n$1(wn, "CopyDataBlockBytes"); let fe2 = n$1((e) => (typeof e.transfer == "function" ? fe2 = n$1((t2) => t2.transfer(), "TransferArrayBuffer") : typeof structuredClone == "function" ? fe2 = n$1((t2) => structuredClone(t2, { transfer: [t2] }), "TransferArrayBuffer") : fe2 = n$1((t2) => t2, "TransferArrayBuffer"), fe2(e)), "TransferArrayBuffer"), _e6 = n$1((e) => (typeof e.detached == "boolean" ? _e6 = n$1((t2) => t2.detached, "IsDetachedBuffer") : _e6 = n$1((t2) => t2.byteLength === 0, "IsDetachedBuffer"), _e6(e)), "IsDetachedBuffer"); function Rn(e, t2, r2) { if (e.slice) return e.slice(t2, r2); const s = r2 - t2, f2 = new ArrayBuffer(s); return wn(f2, 0, e, t2, s), f2; } n$1(Rn, "ArrayBufferSlice"); function St2(e, t2) { const r2 = e[t2]; if (r2 != null) { if (typeof r2 != "function") throw new TypeError(`${String(t2)} is not a function`); return r2; } } n$1(St2, "GetMethod"); function ci(e) { const t2 = { [Symbol.iterator]: () => e.iterator }, r2 = async function* () { return yield* t2; }(), s = r2.next; return { iterator: r2, nextMethod: s, done: false }; } n$1(ci, "CreateAsyncFromSyncIterator"); const Sr = (_r2 = (yr = Symbol.asyncIterator) !== null && yr !== void 0 ? yr : (gr = Symbol.for) === null || gr === void 0 ? void 0 : gr.call(Symbol, "Symbol.asyncIterator")) !== null && _r2 !== void 0 ? _r2 : "@@asyncIterator"; function Tn(e, t2 = "sync", r2) { if (r2 === void 0) if (t2 === "async") { if (r2 = St2(e, Sr), r2 === void 0) { const c = St2(e, Symbol.iterator), d = Tn(e, "sync", c); return ci(d); } } else r2 = St2(e, Symbol.iterator); if (r2 === void 0) throw new TypeError("The object is not iterable"); const s = O(r2, e, []); if (!u(s)) throw new TypeError("The iterator method must return an object"); const f2 = s.next; return { iterator: s, nextMethod: f2, done: false }; } n$1(Tn, "GetIterator"); function di(e) { const t2 = O(e.nextMethod, e.iterator, []); if (!u(t2)) throw new TypeError("The iterator.next() method must return an object"); return t2; } n$1(di, "IteratorNext"); function hi(e) { return !!e.done; } n$1(hi, "IteratorComplete"); function mi(e) { return e.value; } n$1(mi, "IteratorValue"); function bi(e) { return !(typeof e != "number" || Sn(e) || e < 0); } n$1(bi, "IsNonNegativeNumber"); function Cn(e) { const t2 = Rn(e.buffer, e.byteOffset, e.byteOffset + e.byteLength); return new Uint8Array(t2); } n$1(Cn, "CloneAsUint8Array"); function wr(e) { const t2 = e._queue.shift(); return e._queueTotalSize -= t2.size, e._queueTotalSize < 0 && (e._queueTotalSize = 0), t2.value; } n$1(wr, "DequeueValue"); function Rr(e, t2, r2) { if (!bi(r2) || r2 === 1 / 0) throw new RangeError("Size must be a finite, non-NaN, non-negative number."); e._queue.push({ value: t2, size: r2 }), e._queueTotalSize += r2; } n$1(Rr, "EnqueueValueWithSize"); function pi(e) { return e._queue.peek().value; } n$1(pi, "PeekQueueValue"); function Se2(e) { e._queue = new M(), e._queueTotalSize = 0; } n$1(Se2, "ResetQueue"); function Pn(e) { return e === DataView; } n$1(Pn, "isDataViewConstructor"); function yi(e) { return Pn(e.constructor); } n$1(yi, "isDataView"); function gi(e) { return Pn(e) ? 1 : e.BYTES_PER_ELEMENT; } n$1(gi, "arrayBufferViewElementSize"); const _ve = class _ve { constructor() { throw new TypeError("Illegal constructor"); } get view() { if (!Tr(this)) throw Ar("view"); return this._view; } respond(t2) { if (!Tr(this)) throw Ar("respond"); if (le(t2, 1, "respond"), t2 = mr(t2, "First parameter"), this._associatedReadableByteStreamController === void 0) throw new TypeError("This BYOB request has been invalidated"); if (_e6(this._view.buffer)) throw new TypeError("The BYOB request's buffer has been detached and so cannot be used as a response"); Ct2(this._associatedReadableByteStreamController, t2); } respondWithNewView(t2) { if (!Tr(this)) throw Ar("respondWithNewView"); if (le(t2, 1, "respondWithNewView"), !ArrayBuffer.isView(t2)) throw new TypeError("You can only respond with array buffer views"); if (this._associatedReadableByteStreamController === void 0) throw new TypeError("This BYOB request has been invalidated"); if (_e6(t2.buffer)) throw new TypeError("The given view's buffer has been detached and so cannot be used as a response"); Pt(this._associatedReadableByteStreamController, t2); } }; n$1(_ve, "ReadableStreamBYOBRequest"); let ve2 = _ve; Object.defineProperties(ve2.prototype, { respond: { enumerable: true }, respondWithNewView: { enumerable: true }, view: { enumerable: true } }), h2(ve2.prototype.respond, "respond"), h2(ve2.prototype.respondWithNewView, "respondWithNewView"), typeof Symbol.toStringTag == "symbol" && Object.defineProperty(ve2.prototype, Symbol.toStringTag, { value: "ReadableStreamBYOBRequest", configurable: true }); const _ce = class _ce { constructor() { throw new TypeError("Illegal constructor"); } get byobRequest() { if (!Ae2(this)) throw nt2("byobRequest"); return vr(this); } get desiredSize() { if (!Ae2(this)) throw nt2("desiredSize"); return Fn(this); } close() { if (!Ae2(this)) throw nt2("close"); if (this._closeRequested) throw new TypeError("The stream has already been closed; do not close it again!"); const t2 = this._controlledReadableByteStream._state; if (t2 !== "readable") throw new TypeError(`The stream (in ${t2} state) is not in the readable state and cannot be closed`); rt2(this); } enqueue(t2) { if (!Ae2(this)) throw nt2("enqueue"); if (le(t2, 1, "enqueue"), !ArrayBuffer.isView(t2)) throw new TypeError("chunk must be an array buffer view"); if (t2.byteLength === 0) throw new TypeError("chunk must have non-zero byteLength"); if (t2.buffer.byteLength === 0) throw new TypeError("chunk's buffer must have non-zero byteLength"); if (this._closeRequested) throw new TypeError("stream is closed or draining"); const r2 = this._controlledReadableByteStream._state; if (r2 !== "readable") throw new TypeError(`The stream (in ${r2} state) is not in the readable state and cannot be enqueued to`); Tt2(this, t2); } error(t2 = void 0) { if (!Ae2(this)) throw nt2("error"); Z2(this, t2); } [ar](t2) { En(this), Se2(this); const r2 = this._cancelAlgorithm(t2); return Rt2(this), r2; } [sr](t2) { const r2 = this._controlledReadableByteStream; if (this._queueTotalSize > 0) { In(this, t2); return; } const s = this._autoAllocateChunkSize; if (s !== void 0) { let f2; try { f2 = new ArrayBuffer(s); } catch (d) { t2._errorSteps(d); return; } const c = { buffer: f2, bufferByteLength: s, byteOffset: 0, byteLength: s, bytesFilled: 0, minimumFill: 1, elementSize: 1, viewConstructor: Uint8Array, readerType: "default" }; this._pendingPullIntos.push(c); } hn(r2, t2), Be2(this); } [ur]() { if (this._pendingPullIntos.length > 0) { const t2 = this._pendingPullIntos.peek(); t2.readerType = "none", this._pendingPullIntos = new M(), this._pendingPullIntos.push(t2); } } }; n$1(_ce, "ReadableByteStreamController"); let ce2 = _ce; Object.defineProperties(ce2.prototype, { close: { enumerable: true }, enqueue: { enumerable: true }, error: { enumerable: true }, byobRequest: { enumerable: true }, desiredSize: { enumerable: true } }), h2(ce2.prototype.close, "close"), h2(ce2.prototype.enqueue, "enqueue"), h2(ce2.prototype.error, "error"), typeof Symbol.toStringTag == "symbol" && Object.defineProperty(ce2.prototype, Symbol.toStringTag, { value: "ReadableByteStreamController", configurable: true }); function Ae2(e) { return !u(e) || !Object.prototype.hasOwnProperty.call(e, "_controlledReadableByteStream") ? false : e instanceof ce2; } n$1(Ae2, "IsReadableByteStreamController"); function Tr(e) { return !u(e) || !Object.prototype.hasOwnProperty.call(e, "_associatedReadableByteStreamController") ? false : e instanceof ve2; } n$1(Tr, "IsReadableStreamBYOBRequest"); function Be2(e) { if (!Ti(e)) return; if (e._pulling) { e._pullAgain = true; return; } e._pulling = true; const r2 = e._pullAlgorithm(); g(r2, () => (e._pulling = false, e._pullAgain && (e._pullAgain = false, Be2(e)), null), (s) => (Z2(e, s), null)); } n$1(Be2, "ReadableByteStreamControllerCallPullIfNeeded"); function En(e) { Pr(e), e._pendingPullIntos = new M(); } n$1(En, "ReadableByteStreamControllerClearPendingPullIntos"); function Cr(e, t2) { let r2 = false; e._state === "closed" && (r2 = true); const s = vn(t2); t2.readerType === "default" ? pr(e, s, r2) : Bi(e, s, r2); } n$1(Cr, "ReadableByteStreamControllerCommitPullIntoDescriptor"); function vn(e) { const t2 = e.bytesFilled, r2 = e.elementSize; return new e.viewConstructor(e.buffer, e.byteOffset, t2 / r2); } n$1(vn, "ReadableByteStreamControllerConvertPullIntoDescriptor"); function wt2(e, t2, r2, s) { e._queue.push({ buffer: t2, byteOffset: r2, byteLength: s }), e._queueTotalSize += s; } n$1(wt2, "ReadableByteStreamControllerEnqueueChunkToQueue"); function An(e, t2, r2, s) { let f2; try { f2 = Rn(t2, r2, r2 + s); } catch (c) { throw Z2(e, c), c; } wt2(e, f2, 0, s); } n$1(An, "ReadableByteStreamControllerEnqueueClonedChunkToQueue"); function Bn(e, t2) { t2.bytesFilled > 0 && An(e, t2.buffer, t2.byteOffset, t2.bytesFilled), je2(e); } n$1(Bn, "ReadableByteStreamControllerEnqueueDetachedPullIntoToQueue"); function Wn(e, t2) { const r2 = Math.min(e._queueTotalSize, t2.byteLength - t2.bytesFilled), s = t2.bytesFilled + r2; let f2 = r2, c = false; const d = s % t2.elementSize, p = s - d; p >= t2.minimumFill && (f2 = p - t2.bytesFilled, c = true); const R2 = e._queue; for (; f2 > 0; ) { const y = R2.peek(), C2 = Math.min(f2, y.byteLength), P2 = t2.byteOffset + t2.bytesFilled; wn(t2.buffer, P2, y.buffer, y.byteOffset, C2), y.byteLength === C2 ? R2.shift() : (y.byteOffset += C2, y.byteLength -= C2), e._queueTotalSize -= C2, kn(e, C2, t2), f2 -= C2; } return c; } n$1(Wn, "ReadableByteStreamControllerFillPullIntoDescriptorFromQueue"); function kn(e, t2, r2) { r2.bytesFilled += t2; } n$1(kn, "ReadableByteStreamControllerFillHeadPullIntoDescriptor"); function qn(e) { e._queueTotalSize === 0 && e._closeRequested ? (Rt2(e), lt2(e._controlledReadableByteStream)) : Be2(e); } n$1(qn, "ReadableByteStreamControllerHandleQueueDrain"); function Pr(e) { e._byobRequest !== null && (e._byobRequest._associatedReadableByteStreamController = void 0, e._byobRequest._view = null, e._byobRequest = null); } n$1(Pr, "ReadableByteStreamControllerInvalidateBYOBRequest"); function Er(e) { for (; e._pendingPullIntos.length > 0; ) { if (e._queueTotalSize === 0) return; const t2 = e._pendingPullIntos.peek(); Wn(e, t2) && (je2(e), Cr(e._controlledReadableByteStream, t2)); } } n$1(Er, "ReadableByteStreamControllerProcessPullIntoDescriptorsUsingQueue"); function _i2(e) { const t2 = e._controlledReadableByteStream._reader; for (; t2._readRequests.length > 0; ) { if (e._queueTotalSize === 0) return; const r2 = t2._readRequests.shift(); In(e, r2); } } n$1(_i2, "ReadableByteStreamControllerProcessReadRequestsUsingQueue"); function Si(e, t2, r2, s) { const f2 = e._controlledReadableByteStream, c = t2.constructor, d = gi(c), { byteOffset: p, byteLength: R2 } = t2, y = r2 * d; let C2; try { C2 = fe2(t2.buffer); } catch (B2) { s._errorSteps(B2); return; } const P2 = { buffer: C2, bufferByteLength: C2.byteLength, byteOffset: p, byteLength: R2, bytesFilled: 0, minimumFill: y, elementSize: d, viewConstructor: c, readerType: "byob" }; if (e._pendingPullIntos.length > 0) { e._pendingPullIntos.push(P2), Ln(f2, s); return; } if (f2._state === "closed") { const B2 = new c(P2.buffer, P2.byteOffset, 0); s._closeSteps(B2); return; } if (e._queueTotalSize > 0) { if (Wn(e, P2)) { const B2 = vn(P2); qn(e), s._chunkSteps(B2); return; } if (e._closeRequested) { const B2 = new TypeError("Insufficient bytes to fill elements in the given buffer"); Z2(e, B2), s._errorSteps(B2); return; } } e._pendingPullIntos.push(P2), Ln(f2, s), Be2(e); } n$1(Si, "ReadableByteStreamControllerPullInto"); function wi(e, t2) { t2.readerType === "none" && je2(e); const r2 = e._controlledReadableByteStream; if (Br(r2)) for (; Dn(r2) > 0; ) { const s = je2(e); Cr(r2, s); } } n$1(wi, "ReadableByteStreamControllerRespondInClosedState"); function Ri(e, t2, r2) { if (kn(e, t2, r2), r2.readerType === "none") { Bn(e, r2), Er(e); return; } if (r2.bytesFilled < r2.minimumFill) return; je2(e); const s = r2.bytesFilled % r2.elementSize; if (s > 0) { const f2 = r2.byteOffset + r2.bytesFilled; An(e, r2.buffer, f2 - s, s); } r2.bytesFilled -= s, Cr(e._controlledReadableByteStream, r2), Er(e); } n$1(Ri, "ReadableByteStreamControllerRespondInReadableState"); function On(e, t2) { const r2 = e._pendingPullIntos.peek(); Pr(e), e._controlledReadableByteStream._state === "closed" ? wi(e, r2) : Ri(e, t2, r2), Be2(e); } n$1(On, "ReadableByteStreamControllerRespondInternal"); function je2(e) { return e._pendingPullIntos.shift(); } n$1(je2, "ReadableByteStreamControllerShiftPendingPullInto"); function Ti(e) { const t2 = e._controlledReadableByteStream; return t2._state !== "readable" || e._closeRequested || !e._started ? false : !!(mn2(t2) && gt2(t2) > 0 || Br(t2) && Dn(t2) > 0 || Fn(e) > 0); } n$1(Ti, "ReadableByteStreamControllerShouldCallPull"); function Rt2(e) { e._pullAlgorithm = void 0, e._cancelAlgorithm = void 0; } n$1(Rt2, "ReadableByteStreamControllerClearAlgorithms"); function rt2(e) { const t2 = e._controlledReadableByteStream; if (!(e._closeRequested || t2._state !== "readable")) { if (e._queueTotalSize > 0) { e._closeRequested = true; return; } if (e._pendingPullIntos.length > 0) { const r2 = e._pendingPullIntos.peek(); if (r2.bytesFilled % r2.elementSize !== 0) { const s = new TypeError("Insufficient bytes to fill elements in the given buffer"); throw Z2(e, s), s; } } Rt2(e), lt2(t2); } } n$1(rt2, "ReadableByteStreamControllerClose"); function Tt2(e, t2) { const r2 = e._controlledReadableByteStream; if (e._closeRequested || r2._state !== "readable") return; const { buffer: s, byteOffset: f2, byteLength: c } = t2; if (_e6(s)) throw new TypeError("chunk's buffer is detached and so cannot be enqueued"); const d = fe2(s); if (e._pendingPullIntos.length > 0) { const p = e._pendingPullIntos.peek(); if (_e6(p.buffer)) throw new TypeError("The BYOB request's buffer has been detached and so cannot be filled with an enqueued chunk"); Pr(e), p.buffer = fe2(p.buffer), p.readerType === "none" && Bn(e, p); } if (mn2(r2)) if (_i2(e), gt2(r2) === 0) wt2(e, d, f2, c); else { e._pendingPullIntos.length > 0 && je2(e); const p = new Uint8Array(d, f2, c); pr(r2, p, false); } else Br(r2) ? (wt2(e, d, f2, c), Er(e)) : wt2(e, d, f2, c); Be2(e); } n$1(Tt2, "ReadableByteStreamControllerEnqueue"); function Z2(e, t2) { const r2 = e._controlledReadableByteStream; r2._state === "readable" && (En(e), Se2(e), Rt2(e), lo(r2, t2)); } n$1(Z2, "ReadableByteStreamControllerError"); function In(e, t2) { const r2 = e._queue.shift(); e._queueTotalSize -= r2.byteLength, qn(e); const s = new Uint8Array(r2.buffer, r2.byteOffset, r2.byteLength); t2._chunkSteps(s); } n$1(In, "ReadableByteStreamControllerFillReadRequestFromQueue"); function vr(e) { if (e._byobRequest === null && e._pendingPullIntos.length > 0) { const t2 = e._pendingPullIntos.peek(), r2 = new Uint8Array(t2.buffer, t2.byteOffset + t2.bytesFilled, t2.byteLength - t2.bytesFilled), s = Object.create(ve2.prototype); Pi(s, e, r2), e._byobRequest = s; } return e._byobRequest; } n$1(vr, "ReadableByteStreamControllerGetBYOBRequest"); function Fn(e) { const t2 = e._controlledReadableByteStream._state; return t2 === "errored" ? null : t2 === "closed" ? 0 : e._strategyHWM - e._queueTotalSize; } n$1(Fn, "ReadableByteStreamControllerGetDesiredSize"); function Ct2(e, t2) { const r2 = e._pendingPullIntos.peek(); if (e._controlledReadableByteStream._state === "closed") { if (t2 !== 0) throw new TypeError("bytesWritten must be 0 when calling respond() on a closed stream"); } else { if (t2 === 0) throw new TypeError("bytesWritten must be greater than 0 when calling respond() on a readable stream"); if (r2.bytesFilled + t2 > r2.byteLength) throw new RangeError("bytesWritten out of range"); } r2.buffer = fe2(r2.buffer), On(e, t2); } n$1(Ct2, "ReadableByteStreamControllerRespond"); function Pt(e, t2) { const r2 = e._pendingPullIntos.peek(); if (e._controlledReadableByteStream._state === "closed") { if (t2.byteLength !== 0) throw new TypeError("The view's length must be 0 when calling respondWithNewView() on a closed stream"); } else if (t2.byteLength === 0) throw new TypeError("The view's length must be greater than 0 when calling respondWithNewView() on a readable stream"); if (r2.byteOffset + r2.bytesFilled !== t2.byteOffset) throw new RangeError("The region specified by view does not match byobRequest"); if (r2.bufferByteLength !== t2.buffer.byteLength) throw new RangeError("The buffer of view has different capacity than byobRequest"); if (r2.bytesFilled + t2.byteLength > r2.byteLength) throw new RangeError("The region specified by view is larger than byobRequest"); const f2 = t2.byteLength; r2.buffer = fe2(t2.buffer), On(e, f2); } n$1(Pt, "ReadableByteStreamControllerRespondWithNewView"); function zn(e, t2, r2, s, f2, c, d) { t2._controlledReadableByteStream = e, t2._pullAgain = false, t2._pulling = false, t2._byobRequest = null, t2._queue = t2._queueTotalSize = void 0, Se2(t2), t2._closeRequested = false, t2._started = false, t2._strategyHWM = c, t2._pullAlgorithm = s, t2._cancelAlgorithm = f2, t2._autoAllocateChunkSize = d, t2._pendingPullIntos = new M(), e._readableStreamController = t2; const p = r2(); g(T2(p), () => (t2._started = true, Be2(t2), null), (R2) => (Z2(t2, R2), null)); } n$1(zn, "SetUpReadableByteStreamController"); function Ci(e, t2, r2) { const s = Object.create(ce2.prototype); let f2, c, d; t2.start !== void 0 ? f2 = n$1(() => t2.start(s), "startAlgorithm") : f2 = n$1(() => { }, "startAlgorithm"), t2.pull !== void 0 ? c = n$1(() => t2.pull(s), "pullAlgorithm") : c = n$1(() => T2(void 0), "pullAlgorithm"), t2.cancel !== void 0 ? d = n$1((R2) => t2.cancel(R2), "cancelAlgorithm") : d = n$1(() => T2(void 0), "cancelAlgorithm"); const p = t2.autoAllocateChunkSize; if (p === 0) throw new TypeError("autoAllocateChunkSize must be greater than 0"); zn(e, s, f2, c, d, r2, p); } n$1(Ci, "SetUpReadableByteStreamControllerFromUnderlyingSource"); function Pi(e, t2, r2) { e._associatedReadableByteStreamController = t2, e._view = r2; } n$1(Pi, "SetUpReadableStreamBYOBRequest"); function Ar(e) { return new TypeError(`ReadableStreamBYOBRequest.prototype.${e} can only be used on a ReadableStreamBYOBRequest`); } n$1(Ar, "byobRequestBrandCheckException"); function nt2(e) { return new TypeError(`ReadableByteStreamController.prototype.${e} can only be used on a ReadableByteStreamController`); } n$1(nt2, "byteStreamControllerBrandCheckException"); function Ei(e, t2) { ne2(e, t2); const r2 = e == null ? void 0 : e.mode; return { mode: r2 === void 0 ? void 0 : vi(r2, `${t2} has member 'mode' that`) }; } n$1(Ei, "convertReaderOptions"); function vi(e, t2) { if (e = `${e}`, e !== "byob") throw new TypeError(`${t2} '${e}' is not a valid enumeration value for ReadableStreamReaderMode`); return e; } n$1(vi, "convertReadableStreamReaderMode"); function Ai(e, t2) { var r2; ne2(e, t2); const s = (r2 = e == null ? void 0 : e.min) !== null && r2 !== void 0 ? r2 : 1; return { min: mr(s, `${t2} has member 'min' that`) }; } n$1(Ai, "convertByobReadOptions"); function jn(e) { return new we2(e); } n$1(jn, "AcquireReadableStreamBYOBReader"); function Ln(e, t2) { e._reader._readIntoRequests.push(t2); } n$1(Ln, "ReadableStreamAddReadIntoRequest"); function Bi(e, t2, r2) { const f2 = e._reader._readIntoRequests.shift(); r2 ? f2._closeSteps(t2) : f2._chunkSteps(t2); } n$1(Bi, "ReadableStreamFulfillReadIntoRequest"); function Dn(e) { return e._reader._readIntoRequests.length; } n$1(Dn, "ReadableStreamGetNumReadIntoRequests"); function Br(e) { const t2 = e._reader; return !(t2 === void 0 || !We2(t2)); } n$1(Br, "ReadableStreamHasBYOBReader"); const _we = class _we { constructor(t2) { if (le(t2, 1, "ReadableStreamBYOBReader"), br(t2, "First parameter"), Ce(t2)) throw new TypeError("This stream has already been locked for exclusive reading by another reader"); if (!Ae2(t2._readableStreamController)) throw new TypeError("Cannot construct a ReadableStreamBYOBReader for a stream not constructed with a byte source"); sn2(this, t2), this._readIntoRequests = new M(); } get closed() { return We2(this) ? this._closedPromise : b(Et("closed")); } cancel(t2 = void 0) { return We2(this) ? this._ownerReadableStream === void 0 ? b(yt2("cancel")) : lr(this, t2) : b(Et("cancel")); } read(t2, r2 = {}) { if (!We2(this)) return b(Et("read")); if (!ArrayBuffer.isView(t2)) return b(new TypeError("view must be an array buffer view")); if (t2.byteLength === 0) return b(new TypeError("view must have non-zero byteLength")); if (t2.buffer.byteLength === 0) return b(new TypeError("view's buffer must have non-zero byteLength")); if (_e6(t2.buffer)) return b(new TypeError("view's buffer has been detached")); let s; try { s = Ai(r2, "options"); } catch (y) { return b(y); } const f2 = s.min; if (f2 === 0) return b(new TypeError("options.min must be greater than 0")); if (yi(t2)) { if (f2 > t2.byteLength) return b(new RangeError("options.min must be less than or equal to view's byteLength")); } else if (f2 > t2.length) return b(new RangeError("options.min must be less than or equal to view's length")); if (this._ownerReadableStream === void 0) return b(yt2("read from")); let c, d; const p = A((y, C2) => { c = y, d = C2; }); return $n(this, t2, f2, { _chunkSteps: n$1((y) => c({ value: y, done: false }), "_chunkSteps"), _closeSteps: n$1((y) => c({ value: y, done: true }), "_closeSteps"), _errorSteps: n$1((y) => d(y), "_errorSteps") }), p; } releaseLock() { if (!We2(this)) throw Et("releaseLock"); this._ownerReadableStream !== void 0 && Wi(this); } }; n$1(_we, "ReadableStreamBYOBReader"); let we2 = _we; Object.defineProperties(we2.prototype, { cancel: { enumerable: true }, read: { enumerable: true }, releaseLock: { enumerable: true }, closed: { enumerable: true } }), h2(we2.prototype.cancel, "cancel"), h2(we2.prototype.read, "read"), h2(we2.prototype.releaseLock, "releaseLock"), typeof Symbol.toStringTag == "symbol" && Object.defineProperty(we2.prototype, Symbol.toStringTag, { value: "ReadableStreamBYOBReader", configurable: true }); function We2(e) { return !u(e) || !Object.prototype.hasOwnProperty.call(e, "_readIntoRequests") ? false : e instanceof we2; } n$1(We2, "IsReadableStreamBYOBReader"); function $n(e, t2, r2, s) { const f2 = e._ownerReadableStream; f2._disturbed = true, f2._state === "errored" ? s._errorSteps(f2._storedError) : Si(f2._readableStreamController, t2, r2, s); } n$1($n, "ReadableStreamBYOBReaderRead"); function Wi(e) { ue(e); const t2 = new TypeError("Reader was released"); Mn(e, t2); } n$1(Wi, "ReadableStreamBYOBReaderRelease"); function Mn(e, t2) { const r2 = e._readIntoRequests; e._readIntoRequests = new M(), r2.forEach((s) => { s._errorSteps(t2); }); } n$1(Mn, "ReadableStreamBYOBReaderErrorReadIntoRequests"); function Et(e) { return new TypeError(`ReadableStreamBYOBReader.prototype.${e} can only be used on a ReadableStreamBYOBReader`); } n$1(Et, "byobReaderBrandCheckException"); function ot2(e, t2) { const { highWaterMark: r2 } = e; if (r2 === void 0) return t2; if (Sn(r2) || r2 < 0) throw new RangeError("Invalid highWaterMark"); return r2; } n$1(ot2, "ExtractHighWaterMark"); function vt2(e) { const { size: t2 } = e; return t2 || (() => 1); } n$1(vt2, "ExtractSizeAlgorithm"); function At(e, t2) { ne2(e, t2); const r2 = e == null ? void 0 : e.highWaterMark, s = e == null ? void 0 : e.size; return { highWaterMark: r2 === void 0 ? void 0 : hr(r2), size: s === void 0 ? void 0 : ki(s, `${t2} has member 'size' that`) }; } n$1(At, "convertQueuingStrategy"); function ki(e, t2) { return G2(e, t2), (r2) => hr(e(r2)); } n$1(ki, "convertQueuingStrategySize"); function qi(e, t2) { ne2(e, t2); const r2 = e == null ? void 0 : e.abort, s = e == null ? void 0 : e.close, f2 = e == null ? void 0 : e.start, c = e == null ? void 0 : e.type, d = e == null ? void 0 : e.write; return { abort: r2 === void 0 ? void 0 : Oi(r2, e, `${t2} has member 'abort' that`), close: s === void 0 ? void 0 : Ii(s, e, `${t2} has member 'close' that`), start: f2 === void 0 ? void 0 : Fi(f2, e, `${t2} has member 'start' that`), write: d === void 0 ? void 0 : zi(d, e, `${t2} has member 'write' that`), type: c }; } n$1(qi, "convertUnderlyingSink"); function Oi(e, t2, r2) { return G2(e, r2), (s) => z(e, t2, [s]); } n$1(Oi, "convertUnderlyingSinkAbortCallback"); function Ii(e, t2, r2) { return G2(e, r2), () => z(e, t2, []); } n$1(Ii, "convertUnderlyingSinkCloseCallback"); function Fi(e, t2, r2) { return G2(e, r2), (s) => O(e, t2, [s]); } n$1(Fi, "convertUnderlyingSinkStartCallback"); function zi(e, t2, r2) { return G2(e, r2), (s, f2) => z(e, t2, [s, f2]); } n$1(zi, "convertUnderlyingSinkWriteCallback"); function Un(e, t2) { if (!Le2(e)) throw new TypeError(`${t2} is not a WritableStream.`); } n$1(Un, "assertWritableStream"); function ji(e) { if (typeof e != "object" || e === null) return false; try { return typeof e.aborted == "boolean"; } catch { return false; } } n$1(ji, "isAbortSignal"); const Li = typeof AbortController == "function"; function Di() { if (Li) return new AbortController(); } n$1(Di, "createAbortController"); const _Re = class _Re { constructor(t2 = {}, r2 = {}) { t2 === void 0 ? t2 = null : cn2(t2, "First parameter"); const s = At(r2, "Second parameter"), f2 = qi(t2, "First parameter"); if (Nn(this), f2.type !== void 0) throw new RangeError("Invalid type is specified"); const d = vt2(s), p = ot2(s, 1); Xi(this, f2, p, d); } get locked() { if (!Le2(this)) throw Ot2("locked"); return De2(this); } abort(t2 = void 0) { return Le2(this) ? De2(this) ? b(new TypeError("Cannot abort a stream that already has a writer")) : Bt2(this, t2) : b(Ot2("abort")); } close() { return Le2(this) ? De2(this) ? b(new TypeError("Cannot close a stream that already has a writer")) : oe(this) ? b(new TypeError("Cannot close an already-closing stream")) : Hn(this) : b(Ot2("close")); } getWriter() { if (!Le2(this)) throw Ot2("getWriter"); return xn(this); } }; n$1(_Re, "WritableStream"); let Re2 = _Re; Object.defineProperties(Re2.prototype, { abort: { enumerable: true }, close: { enumerable: true }, getWriter: { enumerable: true }, locked: { enumerable: true } }), h2(Re2.prototype.abort, "abort"), h2(Re2.prototype.close, "close"), h2(Re2.prototype.getWriter, "getWriter"), typeof Symbol.toStringTag == "symbol" && Object.defineProperty(Re2.prototype, Symbol.toStringTag, { value: "WritableStream", configurable: true }); function xn(e) { return new de(e); } n$1(xn, "AcquireWritableStreamDefaultWriter"); function $i(e, t2, r2, s, f2 = 1, c = () => 1) { const d = Object.create(Re2.prototype); Nn(d); const p = Object.create($e.prototype); return Kn(d, p, e, t2, r2, s, f2, c), d; } n$1($i, "CreateWritableStream"); function Nn(e) { e._state = "writable", e._storedError = void 0, e._writer = void 0, e._writableStreamController = void 0, e._writeRequests = new M(), e._inFlightWriteRequest = void 0, e._closeRequest = void 0, e._inFlightCloseRequest = void 0, e._pendingAbortRequest = void 0, e._backpressure = false; } n$1(Nn, "InitializeWritableStream"); function Le2(e) { return !u(e) || !Object.prototype.hasOwnProperty.call(e, "_writableStreamController") ? false : e instanceof Re2; } n$1(Le2, "IsWritableStream"); function De2(e) { return e._writer !== void 0; } n$1(De2, "IsWritableStreamLocked"); function Bt2(e, t2) { var r2; if (e._state === "closed" || e._state === "errored") return T2(void 0); e._writableStreamController._abortReason = t2, (r2 = e._writableStreamController._abortController) === null || r2 === void 0 || r2.abort(t2); const s = e._state; if (s === "closed" || s === "errored") return T2(void 0); if (e._pendingAbortRequest !== void 0) return e._pendingAbortRequest._promise; let f2 = false; s === "erroring" && (f2 = true, t2 = void 0); const c = A((d, p) => { e._pendingAbortRequest = { _promise: void 0, _resolve: d, _reject: p, _reason: t2, _wasAlreadyErroring: f2 }; }); return e._pendingAbortRequest._promise = c, f2 || kr(e, t2), c; } n$1(Bt2, "WritableStreamAbort"); function Hn(e) { const t2 = e._state; if (t2 === "closed" || t2 === "errored") return b(new TypeError(`The stream (in ${t2} state) is not in the writable state and cannot be closed`)); const r2 = A((f2, c) => { const d = { _resolve: f2, _reject: c }; e._closeRequest = d; }), s = e._writer; return s !== void 0 && e._backpressure && t2 === "writable" && Dr(s), ea(e._writableStreamController), r2; } n$1(Hn, "WritableStreamClose"); function Mi(e) { return A((r2, s) => { const f2 = { _resolve: r2, _reject: s }; e._writeRequests.push(f2); }); } n$1(Mi, "WritableStreamAddWriteRequest"); function Wr(e, t2) { if (e._state === "writable") { kr(e, t2); return; } qr(e); } n$1(Wr, "WritableStreamDealWithRejection"); function kr(e, t2) { const r2 = e._writableStreamController; e._state = "erroring", e._storedError = t2; const s = e._writer; s !== void 0 && Qn(s, t2), !Vi(e) && r2._started && qr(e); } n$1(kr, "WritableStreamStartErroring"); function qr(e) { e._state = "errored", e._writableStreamController[an2](); const t2 = e._storedError; if (e._writeRequests.forEach((f2) => { f2._reject(t2); }), e._writeRequests = new M(), e._pendingAbortRequest === void 0) { Wt2(e); return; } const r2 = e._pendingAbortRequest; if (e._pendingAbortRequest = void 0, r2._wasAlreadyErroring) { r2._reject(t2), Wt2(e); return; } const s = e._writableStreamController[pt2](r2._reason); g(s, () => (r2._resolve(), Wt2(e), null), (f2) => (r2._reject(f2), Wt2(e), null)); } n$1(qr, "WritableStreamFinishErroring"); function Ui(e) { e._inFlightWriteRequest._resolve(void 0), e._inFlightWriteRequest = void 0; } n$1(Ui, "WritableStreamFinishInFlightWrite"); function xi(e, t2) { e._inFlightWriteRequest._reject(t2), e._inFlightWriteRequest = void 0, Wr(e, t2); } n$1(xi, "WritableStreamFinishInFlightWriteWithError"); function Ni(e) { e._inFlightCloseRequest._resolve(void 0), e._inFlightCloseRequest = void 0, e._state === "erroring" && (e._storedError = void 0, e._pendingAbortRequest !== void 0 && (e._pendingAbortRequest._resolve(), e._pendingAbortRequest = void 0)), e._state = "closed"; const r2 = e._writer; r2 !== void 0 && to(r2); } n$1(Ni, "WritableStreamFinishInFlightClose"); function Hi(e, t2) { e._inFlightCloseRequest._reject(t2), e._inFlightCloseRequest = void 0, e._pendingAbortRequest !== void 0 && (e._pendingAbortRequest._reject(t2), e._pendingAbortRequest = void 0), Wr(e, t2); } n$1(Hi, "WritableStreamFinishInFlightCloseWithError"); function oe(e) { return !(e._closeRequest === void 0 && e._inFlightCloseRequest === void 0); } n$1(oe, "WritableStreamCloseQueuedOrInFlight"); function Vi(e) { return !(e._inFlightWriteRequest === void 0 && e._inFlightCloseRequest === void 0); } n$1(Vi, "WritableStreamHasOperationMarkedInFlight"); function Qi(e) { e._inFlightCloseRequest = e._closeRequest, e._closeRequest = void 0; } n$1(Qi, "WritableStreamMarkCloseRequestInFlight"); function Yi(e) { e._inFlightWriteRequest = e._writeRequests.shift(); } n$1(Yi, "WritableStreamMarkFirstWriteRequestInFlight"); function Wt2(e) { e._closeRequest !== void 0 && (e._closeRequest._reject(e._storedError), e._closeRequest = void 0); const t2 = e._writer; t2 !== void 0 && jr(t2, e._storedError); } n$1(Wt2, "WritableStreamRejectCloseAndClosedPromiseIfNeeded"); function Or(e, t2) { const r2 = e._writer; r2 !== void 0 && t2 !== e._backpressure && (t2 ? sa(r2) : Dr(r2)), e._backpressure = t2; } n$1(Or, "WritableStreamUpdateBackpressure"); const _de = class _de { constructor(t2) { if (le(t2, 1, "WritableStreamDefaultWriter"), Un(t2, "First parameter"), De2(t2)) throw new TypeError("This stream has already been locked for exclusive writing by another writer"); this._ownerWritableStream = t2, t2._writer = this; const r2 = t2._state; if (r2 === "writable") !oe(t2) && t2._backpressure ? Ft2(this) : ro(this), It2(this); else if (r2 === "erroring") Lr(this, t2._storedError), It2(this); else if (r2 === "closed") ro(this), ia(this); else { const s = t2._storedError; Lr(this, s), eo(this, s); } } get closed() { return ke2(this) ? this._closedPromise : b(qe("closed")); } get desiredSize() { if (!ke2(this)) throw qe("desiredSize"); if (this._ownerWritableStream === void 0) throw at2("desiredSize"); return Ji(this); } get ready() { return ke2(this) ? this._readyPromise : b(qe("ready")); } abort(t2 = void 0) { return ke2(this) ? this._ownerWritableStream === void 0 ? b(at2("abort")) : Gi(this, t2) : b(qe("abort")); } close() { if (!ke2(this)) return b(qe("close")); const t2 = this._ownerWritableStream; return t2 === void 0 ? b(at2("close")) : oe(t2) ? b(new TypeError("Cannot close an already-closing stream")) : Vn(this); } releaseLock() { if (!ke2(this)) throw qe("releaseLock"); this._ownerWritableStream !== void 0 && Yn(this); } write(t2 = void 0) { return ke2(this) ? this._ownerWritableStream === void 0 ? b(at2("write to")) : Gn(this, t2) : b(qe("write")); } }; n$1(_de, "WritableStreamDefaultWriter"); let de = _de; Object.defineProperties(de.prototype, { abort: { enumerable: true }, close: { enumerable: true }, releaseLock: { enumerable: true }, write: { enumerable: true }, closed: { enumerable: true }, desiredSize: { enumerable: true }, ready: { enumerable: true } }), h2(de.prototype.abort, "abort"), h2(de.prototype.close, "close"), h2(de.prototype.releaseLock, "releaseLock"), h2(de.prototype.write, "write"), typeof Symbol.toStringTag == "symbol" && Object.defineProperty(de.prototype, Symbol.toStringTag, { value: "WritableStreamDefaultWriter", configurable: true }); function ke2(e) { return !u(e) || !Object.prototype.hasOwnProperty.call(e, "_ownerWritableStream") ? false : e instanceof de; } n$1(ke2, "IsWritableStreamDefaultWriter"); function Gi(e, t2) { const r2 = e._ownerWritableStream; return Bt2(r2, t2); } n$1(Gi, "WritableStreamDefaultWriterAbort"); function Vn(e) { const t2 = e._ownerWritableStream; return Hn(t2); } n$1(Vn, "WritableStreamDefaultWriterClose"); function Zi(e) { const t2 = e._ownerWritableStream, r2 = t2._state; return oe(t2) || r2 === "closed" ? T2(void 0) : r2 === "errored" ? b(t2._storedError) : Vn(e); } n$1(Zi, "WritableStreamDefaultWriterCloseWithErrorPropagation"); function Ki(e, t2) { e._closedPromiseState === "pending" ? jr(e, t2) : aa(e, t2); } n$1(Ki, "WritableStreamDefaultWriterEnsureClosedPromiseRejected"); function Qn(e, t2) { e._readyPromiseState === "pending" ? no(e, t2) : ua(e, t2); } n$1(Qn, "WritableStreamDefaultWriterEnsureReadyPromiseRejected"); function Ji(e) { const t2 = e._ownerWritableStream, r2 = t2._state; return r2 === "errored" || r2 === "erroring" ? null : r2 === "closed" ? 0 : Jn(t2._writableStreamController); } n$1(Ji, "WritableStreamDefaultWriterGetDesiredSize"); function Yn(e) { const t2 = e._ownerWritableStream, r2 = new TypeError("Writer was released and can no longer be used to monitor the stream's closedness"); Qn(e, r2), Ki(e, r2), t2._writer = void 0, e._ownerWritableStream = void 0; } n$1(Yn, "WritableStreamDefaultWriterRelease"); function Gn(e, t2) { const r2 = e._ownerWritableStream, s = r2._writableStreamController, f2 = ta(s, t2); if (r2 !== e._ownerWritableStream) return b(at2("write to")); const c = r2._state; if (c === "errored") return b(r2._storedError); if (oe(r2) || c === "closed") return b(new TypeError("The stream is closing or closed and cannot be written to")); if (c === "erroring") return b(r2._storedError); const d = Mi(r2); return ra(s, t2, f2), d; } n$1(Gn, "WritableStreamDefaultWriterWrite"); const Zn = {}; const _$e = class _$e { constructor() { throw new TypeError("Illegal constructor"); } get abortReason() { if (!Ir(this)) throw zr("abortReason"); return this._abortReason; } get signal() { if (!Ir(this)) throw zr("signal"); if (this._abortController === void 0) throw new TypeError("WritableStreamDefaultController.prototype.signal is not supported"); return this._abortController.signal; } error(t2 = void 0) { if (!Ir(this)) throw zr("error"); this._controlledWritableStream._state === "writable" && Xn(this, t2); } [pt2](t2) { const r2 = this._abortAlgorithm(t2); return kt(this), r2; } [an2]() { Se2(this); } }; n$1(_$e, "WritableStreamDefaultController"); let $e = _$e; Object.defineProperties($e.prototype, { abortReason: { enumerable: true }, signal: { enumerable: true }, error: { enumerable: true } }), typeof Symbol.toStringTag == "symbol" && Object.defineProperty($e.prototype, Symbol.toStringTag, { value: "WritableStreamDefaultController", configurable: true }); function Ir(e) { return !u(e) || !Object.prototype.hasOwnProperty.call(e, "_controlledWritableStream") ? false : e instanceof $e; } n$1(Ir, "IsWritableStreamDefaultController"); function Kn(e, t2, r2, s, f2, c, d, p) { t2._controlledWritableStream = e, e._writableStreamController = t2, t2._queue = void 0, t2._queueTotalSize = void 0, Se2(t2), t2._abortReason = void 0, t2._abortController = Di(), t2._started = false, t2._strategySizeAlgorithm = p, t2._strategyHWM = d, t2._writeAlgorithm = s, t2._closeAlgorithm = f2, t2._abortAlgorithm = c; const R2 = Fr(t2); Or(e, R2); const y = r2(), C2 = T2(y); g(C2, () => (t2._started = true, qt2(t2), null), (P2) => (t2._started = true, Wr(e, P2), null)); } n$1(Kn, "SetUpWritableStreamDefaultController"); function Xi(e, t2, r2, s) { const f2 = Object.create($e.prototype); let c, d, p, R2; t2.start !== void 0 ? c = n$1(() => t2.start(f2), "startAlgorithm") : c = n$1(() => { }, "startAlgorithm"), t2.write !== void 0 ? d = n$1((y) => t2.write(y, f2), "writeAlgorithm") : d = n$1(() => T2(void 0), "writeAlgorithm"), t2.close !== void 0 ? p = n$1(() => t2.close(), "closeAlgorithm") : p = n$1(() => T2(void 0), "closeAlgorithm"), t2.abort !== void 0 ? R2 = n$1((y) => t2.abort(y), "abortAlgorithm") : R2 = n$1(() => T2(void 0), "abortAlgorithm"), Kn(e, f2, c, d, p, R2, r2, s); } n$1(Xi, "SetUpWritableStreamDefaultControllerFromUnderlyingSink"); function kt(e) { e._writeAlgorithm = void 0, e._closeAlgorithm = void 0, e._abortAlgorithm = void 0, e._strategySizeAlgorithm = void 0; } n$1(kt, "WritableStreamDefaultControllerClearAlgorithms"); function ea(e) { Rr(e, Zn, 0), qt2(e); } n$1(ea, "WritableStreamDefaultControllerClose"); function ta(e, t2) { try { return e._strategySizeAlgorithm(t2); } catch (r2) { return it2(e, r2), 1; } } n$1(ta, "WritableStreamDefaultControllerGetChunkSize"); function Jn(e) { return e._strategyHWM - e._queueTotalSize; } n$1(Jn, "WritableStreamDefaultControllerGetDesiredSize"); function ra(e, t2, r2) { try { Rr(e, t2, r2); } catch (f2) { it2(e, f2); return; } const s = e._controlledWritableStream; if (!oe(s) && s._state === "writable") { const f2 = Fr(e); Or(s, f2); } qt2(e); } n$1(ra, "WritableStreamDefaultControllerWrite"); function qt2(e) { const t2 = e._controlledWritableStream; if (!e._started || t2._inFlightWriteRequest !== void 0) return; if (t2._state === "erroring") { qr(t2); return; } if (e._queue.length === 0) return; const s = pi(e); s === Zn ? na(e) : oa(e, s); } n$1(qt2, "WritableStreamDefaultControllerAdvanceQueueIfNeeded"); function it2(e, t2) { e._controlledWritableStream._state === "writable" && Xn(e, t2); } n$1(it2, "WritableStreamDefaultControllerErrorIfNeeded"); function na(e) { const t2 = e._controlledWritableStream; Qi(t2), wr(e); const r2 = e._closeAlgorithm(); kt(e), g(r2, () => (Ni(t2), null), (s) => (Hi(t2, s), null)); } n$1(na, "WritableStreamDefaultControllerProcessClose"); function oa(e, t2) { const r2 = e._controlledWritableStream; Yi(r2); const s = e._writeAlgorithm(t2); g(s, () => { Ui(r2); const f2 = r2._state; if (wr(e), !oe(r2) && f2 === "writable") { const c = Fr(e); Or(r2, c); } return qt2(e), null; }, (f2) => (r2._state === "writable" && kt(e), xi(r2, f2), null)); } n$1(oa, "WritableStreamDefaultControllerProcessWrite"); function Fr(e) { return Jn(e) <= 0; } n$1(Fr, "WritableStreamDefaultControllerGetBackpressure"); function Xn(e, t2) { const r2 = e._controlledWritableStream; kt(e), kr(r2, t2); } n$1(Xn, "WritableStreamDefaultControllerError"); function Ot2(e) { return new TypeError(`WritableStream.prototype.${e} can only be used on a WritableStream`); } n$1(Ot2, "streamBrandCheckException$2"); function zr(e) { return new TypeError(`WritableStreamDefaultController.prototype.${e} can only be used on a WritableStreamDefaultController`); } n$1(zr, "defaultControllerBrandCheckException$2"); function qe(e) { return new TypeError(`WritableStreamDefaultWriter.prototype.${e} can only be used on a WritableStreamDefaultWriter`); } n$1(qe, "defaultWriterBrandCheckException"); function at2(e) { return new TypeError("Cannot " + e + " a stream using a released writer"); } n$1(at2, "defaultWriterLockException"); function It2(e) { e._closedPromise = A((t2, r2) => { e._closedPromise_resolve = t2, e._closedPromise_reject = r2, e._closedPromiseState = "pending"; }); } n$1(It2, "defaultWriterClosedPromiseInitialize"); function eo(e, t2) { It2(e), jr(e, t2); } n$1(eo, "defaultWriterClosedPromiseInitializeAsRejected"); function ia(e) { It2(e), to(e); } n$1(ia, "defaultWriterClosedPromiseInitializeAsResolved"); function jr(e, t2) { e._closedPromise_reject !== void 0 && (Q2(e._closedPromise), e._closedPromise_reject(t2), e._closedPromise_resolve = void 0, e._closedPromise_reject = void 0, e._closedPromiseState = "rejected"); } n$1(jr, "defaultWriterClosedPromiseReject"); function aa(e, t2) { eo(e, t2); } n$1(aa, "defaultWriterClosedPromiseResetToRejected"); function to(e) { e._closedPromise_resolve !== void 0 && (e._closedPromise_resolve(void 0), e._closedPromise_resolve = void 0, e._closedPromise_reject = void 0, e._closedPromiseState = "resolved"); } n$1(to, "defaultWriterClosedPromiseResolve"); function Ft2(e) { e._readyPromise = A((t2, r2) => { e._readyPromise_resolve = t2, e._readyPromise_reject = r2; }), e._readyPromiseState = "pending"; } n$1(Ft2, "defaultWriterReadyPromiseInitialize"); function Lr(e, t2) { Ft2(e), no(e, t2); } n$1(Lr, "defaultWriterReadyPromiseInitializeAsRejected"); function ro(e) { Ft2(e), Dr(e); } n$1(ro, "defaultWriterReadyPromiseInitializeAsResolved"); function no(e, t2) { e._readyPromise_reject !== void 0 && (Q2(e._readyPromise), e._readyPromise_reject(t2), e._readyPromise_resolve = void 0, e._readyPromise_reject = void 0, e._readyPromiseState = "rejected"); } n$1(no, "defaultWriterReadyPromiseReject"); function sa(e) { Ft2(e); } n$1(sa, "defaultWriterReadyPromiseReset"); function ua(e, t2) { Lr(e, t2); } n$1(ua, "defaultWriterReadyPromiseResetToRejected"); function Dr(e) { e._readyPromise_resolve !== void 0 && (e._readyPromise_resolve(void 0), e._readyPromise_resolve = void 0, e._readyPromise_reject = void 0, e._readyPromiseState = "fulfilled"); } n$1(Dr, "defaultWriterReadyPromiseResolve"); function la() { if (typeof globalThis < "u") return globalThis; if (typeof self < "u") return self; if (typeof n$2 < "u") return n$2; } n$1(la, "getGlobals"); const $r = la(); function fa(e) { if (!(typeof e == "function" || typeof e == "object") || e.name !== "DOMException") return false; try { return new e(), true; } catch { return false; } } n$1(fa, "isDOMExceptionConstructor"); function ca() { const e = $r == null ? void 0 : $r.DOMException; return fa(e) ? e : void 0; } n$1(ca, "getFromGlobal"); function da() { const e = n$1(function(r2, s) { this.message = r2 || "", this.name = s || "Error", Error.captureStackTrace && Error.captureStackTrace(this, this.constructor); }, "DOMException"); return h2(e, "DOMException"), e.prototype = Object.create(Error.prototype), Object.defineProperty(e.prototype, "constructor", { value: e, writable: true, configurable: true }), e; } n$1(da, "createPolyfill"); const ha = ca() || da(); function oo(e, t2, r2, s, f2, c) { const d = ze(e), p = xn(t2); e._disturbed = true; let R2 = false, y = T2(void 0); return A((C2, P2) => { let B2; if (c !== void 0) { if (B2 = n$1(() => { const _ = c.reason !== void 0 ? c.reason : new ha("Aborted", "AbortError"), v = []; s || v.push(() => t2._state === "writable" ? Bt2(t2, _) : T2(void 0)), f2 || v.push(() => e._state === "readable" ? X2(e, _) : T2(void 0)), x(() => Promise.all(v.map((W2) => W2())), true, _); }, "abortAlgorithm"), c.aborted) { B2(); return; } c.addEventListener("abort", B2); } function ee2() { return A((_, v) => { function W2(Y) { Y ? _() : q2(Ne(), W2, v); } n$1(W2, "next"), W2(false); }); } n$1(ee2, "pipeLoop"); function Ne() { return R2 ? T2(true) : q2(p._readyPromise, () => A((_, v) => { et2(d, { _chunkSteps: n$1((W2) => { y = q2(Gn(p, W2), void 0, l), _(false); }, "_chunkSteps"), _closeSteps: n$1(() => _(true), "_closeSteps"), _errorSteps: v }); })); } if (n$1(Ne, "pipeStep"), me2(e, d._closedPromise, (_) => (s ? K2(true, _) : x(() => Bt2(t2, _), true, _), null)), me2(t2, p._closedPromise, (_) => (f2 ? K2(true, _) : x(() => X2(e, _), true, _), null)), U2(e, d._closedPromise, () => (r2 ? K2() : x(() => Zi(p)), null)), oe(t2) || t2._state === "closed") { const _ = new TypeError("the destination writable stream closed before all data could be piped to it"); f2 ? K2(true, _) : x(() => X2(e, _), true, _); } Q2(ee2()); function Ee2() { const _ = y; return q2(y, () => _ !== y ? Ee2() : void 0); } n$1(Ee2, "waitForWritesToFinish"); function me2(_, v, W2) { _._state === "errored" ? W2(_._storedError) : I2(v, W2); } n$1(me2, "isOrBecomesErrored"); function U2(_, v, W2) { _._state === "closed" ? W2() : V(v, W2); } n$1(U2, "isOrBecomesClosed"); function x(_, v, W2) { if (R2) return; R2 = true, t2._state === "writable" && !oe(t2) ? V(Ee2(), Y) : Y(); function Y() { return g(_(), () => be2(v, W2), (He2) => be2(true, He2)), null; } n$1(Y, "doTheRest"); } n$1(x, "shutdownWithAction"); function K2(_, v) { R2 || (R2 = true, t2._state === "writable" && !oe(t2) ? V(Ee2(), () => be2(_, v)) : be2(_, v)); } n$1(K2, "shutdown"); function be2(_, v) { return Yn(p), ue(d), c !== void 0 && c.removeEventListener("abort", B2), _ ? P2(v) : C2(void 0), null; } n$1(be2, "finalize"); }); } n$1(oo, "ReadableStreamPipeTo"); const _he = class _he { constructor() { throw new TypeError("Illegal constructor"); } get desiredSize() { if (!zt2(this)) throw Lt("desiredSize"); return Mr(this); } close() { if (!zt2(this)) throw Lt("close"); if (!Ue(this)) throw new TypeError("The stream is not in a state that permits close"); Oe(this); } enqueue(t2 = void 0) { if (!zt2(this)) throw Lt("enqueue"); if (!Ue(this)) throw new TypeError("The stream is not in a state that permits enqueue"); return Me2(this, t2); } error(t2 = void 0) { if (!zt2(this)) throw Lt("error"); J2(this, t2); } [ar](t2) { Se2(this); const r2 = this._cancelAlgorithm(t2); return jt(this), r2; } [sr](t2) { const r2 = this._controlledReadableStream; if (this._queue.length > 0) { const s = wr(this); this._closeRequested && this._queue.length === 0 ? (jt(this), lt2(r2)) : st2(this), t2._chunkSteps(s); } else hn(r2, t2), st2(this); } [ur]() { } }; n$1(_he, "ReadableStreamDefaultController"); let he = _he; Object.defineProperties(he.prototype, { close: { enumerable: true }, enqueue: { enumerable: true }, error: { enumerable: true }, desiredSize: { enumerable: true } }), h2(he.prototype.close, "close"), h2(he.prototype.enqueue, "enqueue"), h2(he.prototype.error, "error"), typeof Symbol.toStringTag == "symbol" && Object.defineProperty(he.prototype, Symbol.toStringTag, { value: "ReadableStreamDefaultController", configurable: true }); function zt2(e) { return !u(e) || !Object.prototype.hasOwnProperty.call(e, "_controlledReadableStream") ? false : e instanceof he; } n$1(zt2, "IsReadableStreamDefaultController"); function st2(e) { if (!io(e)) return; if (e._pulling) { e._pullAgain = true; return; } e._pulling = true; const r2 = e._pullAlgorithm(); g(r2, () => (e._pulling = false, e._pullAgain && (e._pullAgain = false, st2(e)), null), (s) => (J2(e, s), null)); } n$1(st2, "ReadableStreamDefaultControllerCallPullIfNeeded"); function io(e) { const t2 = e._controlledReadableStream; return !Ue(e) || !e._started ? false : !!(Ce(t2) && gt2(t2) > 0 || Mr(e) > 0); } n$1(io, "ReadableStreamDefaultControllerShouldCallPull"); function jt(e) { e._pullAlgorithm = void 0, e._cancelAlgorithm = void 0, e._strategySizeAlgorithm = void 0; } n$1(jt, "ReadableStreamDefaultControllerClearAlgorithms"); function Oe(e) { if (!Ue(e)) return; const t2 = e._controlledReadableStream; e._closeRequested = true, e._queue.length === 0 && (jt(e), lt2(t2)); } n$1(Oe, "ReadableStreamDefaultControllerClose"); function Me2(e, t2) { if (!Ue(e)) return; const r2 = e._controlledReadableStream; if (Ce(r2) && gt2(r2) > 0) pr(r2, t2, false); else { let s; try { s = e._strategySizeAlgorithm(t2); } catch (f2) { throw J2(e, f2), f2; } try { Rr(e, t2, s); } catch (f2) { throw J2(e, f2), f2; } } st2(e); } n$1(Me2, "ReadableStreamDefaultControllerEnqueue"); function J2(e, t2) { const r2 = e._controlledReadableStream; r2._state === "readable" && (Se2(e), jt(e), lo(r2, t2)); } n$1(J2, "ReadableStreamDefaultControllerError"); function Mr(e) { const t2 = e._controlledReadableStream._state; return t2 === "errored" ? null : t2 === "closed" ? 0 : e._strategyHWM - e._queueTotalSize; } n$1(Mr, "ReadableStreamDefaultControllerGetDesiredSize"); function ma(e) { return !io(e); } n$1(ma, "ReadableStreamDefaultControllerHasBackpressure"); function Ue(e) { const t2 = e._controlledReadableStream._state; return !e._closeRequested && t2 === "readable"; } n$1(Ue, "ReadableStreamDefaultControllerCanCloseOrEnqueue"); function ao(e, t2, r2, s, f2, c, d) { t2._controlledReadableStream = e, t2._queue = void 0, t2._queueTotalSize = void 0, Se2(t2), t2._started = false, t2._closeRequested = false, t2._pullAgain = false, t2._pulling = false, t2._strategySizeAlgorithm = d, t2._strategyHWM = c, t2._pullAlgorithm = s, t2._cancelAlgorithm = f2, e._readableStreamController = t2; const p = r2(); g(T2(p), () => (t2._started = true, st2(t2), null), (R2) => (J2(t2, R2), null)); } n$1(ao, "SetUpReadableStreamDefaultController"); function ba(e, t2, r2, s) { const f2 = Object.create(he.prototype); let c, d, p; t2.start !== void 0 ? c = n$1(() => t2.start(f2), "startAlgorithm") : c = n$1(() => { }, "startAlgorithm"), t2.pull !== void 0 ? d = n$1(() => t2.pull(f2), "pullAlgorithm") : d = n$1(() => T2(void 0), "pullAlgorithm"), t2.cancel !== void 0 ? p = n$1((R2) => t2.cancel(R2), "cancelAlgorithm") : p = n$1(() => T2(void 0), "cancelAlgorithm"), ao(e, f2, c, d, p, r2, s); } n$1(ba, "SetUpReadableStreamDefaultControllerFromUnderlyingSource"); function Lt(e) { return new TypeError(`ReadableStreamDefaultController.prototype.${e} can only be used on a ReadableStreamDefaultController`); } n$1(Lt, "defaultControllerBrandCheckException$1"); function pa(e, t2) { return Ae2(e._readableStreamController) ? ga(e) : ya(e); } n$1(pa, "ReadableStreamTee"); function ya(e, t2) { const r2 = ze(e); let s = false, f2 = false, c = false, d = false, p, R2, y, C2, P2; const B2 = A((U2) => { P2 = U2; }); function ee2() { return s ? (f2 = true, T2(void 0)) : (s = true, et2(r2, { _chunkSteps: n$1((x) => { se2(() => { f2 = false; const K2 = x, be2 = x; c || Me2(y._readableStreamController, K2), d || Me2(C2._readableStreamController, be2), s = false, f2 && ee2(); }); }, "_chunkSteps"), _closeSteps: n$1(() => { s = false, c || Oe(y._readableStreamController), d || Oe(C2._readableStreamController), (!c || !d) && P2(void 0); }, "_closeSteps"), _errorSteps: n$1(() => { s = false; }, "_errorSteps") }), T2(void 0)); } n$1(ee2, "pullAlgorithm"); function Ne(U2) { if (c = true, p = U2, d) { const x = tt2([p, R2]), K2 = X2(e, x); P2(K2); } return B2; } n$1(Ne, "cancel1Algorithm"); function Ee2(U2) { if (d = true, R2 = U2, c) { const x = tt2([p, R2]), K2 = X2(e, x); P2(K2); } return B2; } n$1(Ee2, "cancel2Algorithm"); function me2() { } return n$1(me2, "startAlgorithm"), y = ut2(me2, ee2, Ne), C2 = ut2(me2, ee2, Ee2), I2(r2._closedPromise, (U2) => (J2(y._readableStreamController, U2), J2(C2._readableStreamController, U2), (!c || !d) && P2(void 0), null)), [y, C2]; } n$1(ya, "ReadableStreamDefaultTee"); function ga(e) { let t2 = ze(e), r2 = false, s = false, f2 = false, c = false, d = false, p, R2, y, C2, P2; const B2 = A((_) => { P2 = _; }); function ee2(_) { I2(_._closedPromise, (v) => (_ !== t2 || (Z2(y._readableStreamController, v), Z2(C2._readableStreamController, v), (!c || !d) && P2(void 0)), null)); } n$1(ee2, "forwardReaderError"); function Ne() { We2(t2) && (ue(t2), t2 = ze(e), ee2(t2)), et2(t2, { _chunkSteps: n$1((v) => { se2(() => { s = false, f2 = false; const W2 = v; let Y = v; if (!c && !d) try { Y = Cn(v); } catch (He2) { Z2(y._readableStreamController, He2), Z2(C2._readableStreamController, He2), P2(X2(e, He2)); return; } c || Tt2(y._readableStreamController, W2), d || Tt2(C2._readableStreamController, Y), r2 = false, s ? me2() : f2 && U2(); }); }, "_chunkSteps"), _closeSteps: n$1(() => { r2 = false, c || rt2(y._readableStreamController), d || rt2(C2._readableStreamController), y._readableStreamController._pendingPullIntos.length > 0 && Ct2(y._readableStreamController, 0), C2._readableStreamController._pendingPullIntos.length > 0 && Ct2(C2._readableStreamController, 0), (!c || !d) && P2(void 0); }, "_closeSteps"), _errorSteps: n$1(() => { r2 = false; }, "_errorSteps") }); } n$1(Ne, "pullWithDefaultReader"); function Ee2(_, v) { ge2(t2) && (ue(t2), t2 = jn(e), ee2(t2)); const W2 = v ? C2 : y, Y = v ? y : C2; $n(t2, _, 1, { _chunkSteps: n$1((Ve) => { se2(() => { s = false, f2 = false; const Qe2 = v ? d : c; if (v ? c : d) Qe2 || Pt(W2._readableStreamController, Ve); else { let To; try { To = Cn(Ve); } catch (Vr) { Z2(W2._readableStreamController, Vr), Z2(Y._readableStreamController, Vr), P2(X2(e, Vr)); return; } Qe2 || Pt(W2._readableStreamController, Ve), Tt2(Y._readableStreamController, To); } r2 = false, s ? me2() : f2 && U2(); }); }, "_chunkSteps"), _closeSteps: n$1((Ve) => { r2 = false; const Qe2 = v ? d : c, Vt2 = v ? c : d; Qe2 || rt2(W2._readableStreamController), Vt2 || rt2(Y._readableStreamController), Ve !== void 0 && (Qe2 || Pt(W2._readableStreamController, Ve), !Vt2 && Y._readableStreamController._pendingPullIntos.length > 0 && Ct2(Y._readableStreamController, 0)), (!Qe2 || !Vt2) && P2(void 0); }, "_closeSteps"), _errorSteps: n$1(() => { r2 = false; }, "_errorSteps") }); } n$1(Ee2, "pullWithBYOBReader"); function me2() { if (r2) return s = true, T2(void 0); r2 = true; const _ = vr(y._readableStreamController); return _ === null ? Ne() : Ee2(_._view, false), T2(void 0); } n$1(me2, "pull1Algorithm"); function U2() { if (r2) return f2 = true, T2(void 0); r2 = true; const _ = vr(C2._readableStreamController); return _ === null ? Ne() : Ee2(_._view, true), T2(void 0); } n$1(U2, "pull2Algorithm"); function x(_) { if (c = true, p = _, d) { const v = tt2([p, R2]), W2 = X2(e, v); P2(W2); } return B2; } n$1(x, "cancel1Algorithm"); function K2(_) { if (d = true, R2 = _, c) { const v = tt2([p, R2]), W2 = X2(e, v); P2(W2); } return B2; } n$1(K2, "cancel2Algorithm"); function be2() { } return n$1(be2, "startAlgorithm"), y = uo(be2, me2, x), C2 = uo(be2, U2, K2), ee2(t2), [y, C2]; } n$1(ga, "ReadableByteStreamTee"); function _a2(e) { return u(e) && typeof e.getReader < "u"; } n$1(_a2, "isReadableStreamLike"); function Sa(e) { return _a2(e) ? Ra(e.getReader()) : wa(e); } n$1(Sa, "ReadableStreamFrom"); function wa(e) { let t2; const r2 = Tn(e, "async"), s = l; function f2() { let d; try { d = di(r2); } catch (R2) { return b(R2); } const p = T2(d); return F(p, (R2) => { if (!u(R2)) throw new TypeError("The promise returned by the iterator.next() method must fulfill with an object"); if (hi(R2)) Oe(t2._readableStreamController); else { const C2 = mi(R2); Me2(t2._readableStreamController, C2); } }); } n$1(f2, "pullAlgorithm"); function c(d) { const p = r2.iterator; let R2; try { R2 = St2(p, "return"); } catch (P2) { return b(P2); } if (R2 === void 0) return T2(void 0); let y; try { y = O(R2, p, [d]); } catch (P2) { return b(P2); } const C2 = T2(y); return F(C2, (P2) => { if (!u(P2)) throw new TypeError("The promise returned by the iterator.return() method must fulfill with an object"); }); } return n$1(c, "cancelAlgorithm"), t2 = ut2(s, f2, c, 0), t2; } n$1(wa, "ReadableStreamFromIterable"); function Ra(e) { let t2; const r2 = l; function s() { let c; try { c = e.read(); } catch (d) { return b(d); } return F(c, (d) => { if (!u(d)) throw new TypeError("The promise returned by the reader.read() method must fulfill with an object"); if (d.done) Oe(t2._readableStreamController); else { const p = d.value; Me2(t2._readableStreamController, p); } }); } n$1(s, "pullAlgorithm"); function f2(c) { try { return T2(e.cancel(c)); } catch (d) { return b(d); } } return n$1(f2, "cancelAlgorithm"), t2 = ut2(r2, s, f2, 0), t2; } n$1(Ra, "ReadableStreamFromDefaultReader"); function Ta(e, t2) { ne2(e, t2); const r2 = e, s = r2 == null ? void 0 : r2.autoAllocateChunkSize, f2 = r2 == null ? void 0 : r2.cancel, c = r2 == null ? void 0 : r2.pull, d = r2 == null ? void 0 : r2.start, p = r2 == null ? void 0 : r2.type; return { autoAllocateChunkSize: s === void 0 ? void 0 : mr(s, `${t2} has member 'autoAllocateChunkSize' that`), cancel: f2 === void 0 ? void 0 : Ca(f2, r2, `${t2} has member 'cancel' that`), pull: c === void 0 ? void 0 : Pa(c, r2, `${t2} has member 'pull' that`), start: d === void 0 ? void 0 : Ea(d, r2, `${t2} has member 'start' that`), type: p === void 0 ? void 0 : va(p, `${t2} has member 'type' that`) }; } n$1(Ta, "convertUnderlyingDefaultOrByteSource"); function Ca(e, t2, r2) { return G2(e, r2), (s) => z(e, t2, [s]); } n$1(Ca, "convertUnderlyingSourceCancelCallback"); function Pa(e, t2, r2) { return G2(e, r2), (s) => z(e, t2, [s]); } n$1(Pa, "convertUnderlyingSourcePullCallback"); function Ea(e, t2, r2) { return G2(e, r2), (s) => O(e, t2, [s]); } n$1(Ea, "convertUnderlyingSourceStartCallback"); function va(e, t2) { if (e = `${e}`, e !== "bytes") throw new TypeError(`${t2} '${e}' is not a valid enumeration value for ReadableStreamType`); return e; } n$1(va, "convertReadableStreamType"); function Aa(e, t2) { return ne2(e, t2), { preventCancel: !!(e == null ? void 0 : e.preventCancel) }; } n$1(Aa, "convertIteratorOptions"); function so(e, t2) { ne2(e, t2); const r2 = e == null ? void 0 : e.preventAbort, s = e == null ? void 0 : e.preventCancel, f2 = e == null ? void 0 : e.preventClose, c = e == null ? void 0 : e.signal; return c !== void 0 && Ba(c, `${t2} has member 'signal' that`), { preventAbort: !!r2, preventCancel: !!s, preventClose: !!f2, signal: c }; } n$1(so, "convertPipeOptions"); function Ba(e, t2) { if (!ji(e)) throw new TypeError(`${t2} is not an AbortSignal.`); } n$1(Ba, "assertAbortSignal"); function Wa(e, t2) { ne2(e, t2); const r2 = e == null ? void 0 : e.readable; dr(r2, "readable", "ReadableWritablePair"), br(r2, `${t2} has member 'readable' that`); const s = e == null ? void 0 : e.writable; return dr(s, "writable", "ReadableWritablePair"), Un(s, `${t2} has member 'writable' that`), { readable: r2, writable: s }; } n$1(Wa, "convertReadableWritablePair"); const _L = class _L { constructor(t2 = {}, r2 = {}) { t2 === void 0 ? t2 = null : cn2(t2, "First parameter"); const s = At(r2, "Second parameter"), f2 = Ta(t2, "First parameter"); if (Ur(this), f2.type === "bytes") { if (s.size !== void 0) throw new RangeError("The strategy for a byte stream cannot have a size function"); const c = ot2(s, 0); Ci(this, f2, c); } else { const c = vt2(s), d = ot2(s, 1); ba(this, f2, d, c); } } get locked() { if (!Te2(this)) throw Ie("locked"); return Ce(this); } cancel(t2 = void 0) { return Te2(this) ? Ce(this) ? b(new TypeError("Cannot cancel a stream that already has a reader")) : X2(this, t2) : b(Ie("cancel")); } getReader(t2 = void 0) { if (!Te2(this)) throw Ie("getReader"); return Ei(t2, "First parameter").mode === void 0 ? ze(this) : jn(this); } pipeThrough(t2, r2 = {}) { if (!Te2(this)) throw Ie("pipeThrough"); le(t2, 1, "pipeThrough"); const s = Wa(t2, "First parameter"), f2 = so(r2, "Second parameter"); if (Ce(this)) throw new TypeError("ReadableStream.prototype.pipeThrough cannot be used on a locked ReadableStream"); if (De2(s.writable)) throw new TypeError("ReadableStream.prototype.pipeThrough cannot be used on a locked WritableStream"); const c = oo(this, s.writable, f2.preventClose, f2.preventAbort, f2.preventCancel, f2.signal); return Q2(c), s.readable; } pipeTo(t2, r2 = {}) { if (!Te2(this)) return b(Ie("pipeTo")); if (t2 === void 0) return b("Parameter 1 is required in 'pipeTo'."); if (!Le2(t2)) return b(new TypeError("ReadableStream.prototype.pipeTo's first argument must be a WritableStream")); let s; try { s = so(r2, "Second parameter"); } catch (f2) { return b(f2); } return Ce(this) ? b(new TypeError("ReadableStream.prototype.pipeTo cannot be used on a locked ReadableStream")) : De2(t2) ? b(new TypeError("ReadableStream.prototype.pipeTo cannot be used on a locked WritableStream")) : oo(this, t2, s.preventClose, s.preventAbort, s.preventCancel, s.signal); } tee() { if (!Te2(this)) throw Ie("tee"); const t2 = pa(this); return tt2(t2); } values(t2 = void 0) { if (!Te2(this)) throw Ie("values"); const r2 = Aa(t2, "First parameter"); return fi(this, r2.preventCancel); } [Sr](t2) { return this.values(t2); } static from(t2) { return Sa(t2); } }; n$1(_L, "ReadableStream"); let L = _L; Object.defineProperties(L, { from: { enumerable: true } }), Object.defineProperties(L.prototype, { cancel: { enumerable: true }, getReader: { enumerable: true }, pipeThrough: { enumerable: true }, pipeTo: { enumerable: true }, tee: { enumerable: true }, values: { enumerable: true }, locked: { enumerable: true } }), h2(L.from, "from"), h2(L.prototype.cancel, "cancel"), h2(L.prototype.getReader, "getReader"), h2(L.prototype.pipeThrough, "pipeThrough"), h2(L.prototype.pipeTo, "pipeTo"), h2(L.prototype.tee, "tee"), h2(L.prototype.values, "values"), typeof Symbol.toStringTag == "symbol" && Object.defineProperty(L.prototype, Symbol.toStringTag, { value: "ReadableStream", configurable: true }), Object.defineProperty(L.prototype, Sr, { value: L.prototype.values, writable: true, configurable: true }); function ut2(e, t2, r2, s = 1, f2 = () => 1) { const c = Object.create(L.prototype); Ur(c); const d = Object.create(he.prototype); return ao(c, d, e, t2, r2, s, f2), c; } n$1(ut2, "CreateReadableStream"); function uo(e, t2, r2) { const s = Object.create(L.prototype); Ur(s); const f2 = Object.create(ce2.prototype); return zn(s, f2, e, t2, r2, 0, void 0), s; } n$1(uo, "CreateReadableByteStream"); function Ur(e) { e._state = "readable", e._reader = void 0, e._storedError = void 0, e._disturbed = false; } n$1(Ur, "InitializeReadableStream"); function Te2(e) { return !u(e) || !Object.prototype.hasOwnProperty.call(e, "_readableStreamController") ? false : e instanceof L; } n$1(Te2, "IsReadableStream"); function Ce(e) { return e._reader !== void 0; } n$1(Ce, "IsReadableStreamLocked"); function X2(e, t2) { if (e._disturbed = true, e._state === "closed") return T2(void 0); if (e._state === "errored") return b(e._storedError); lt2(e); const r2 = e._reader; if (r2 !== void 0 && We2(r2)) { const f2 = r2._readIntoRequests; r2._readIntoRequests = new M(), f2.forEach((c) => { c._closeSteps(void 0); }); } const s = e._readableStreamController[ar](t2); return F(s, l); } n$1(X2, "ReadableStreamCancel"); function lt2(e) { e._state = "closed"; const t2 = e._reader; if (t2 !== void 0 && (ln2(t2), ge2(t2))) { const r2 = t2._readRequests; t2._readRequests = new M(), r2.forEach((s) => { s._closeSteps(); }); } } n$1(lt2, "ReadableStreamClose"); function lo(e, t2) { e._state = "errored", e._storedError = t2; const r2 = e._reader; r2 !== void 0 && (cr(r2, t2), ge2(r2) ? bn(r2, t2) : Mn(r2, t2)); } n$1(lo, "ReadableStreamError"); function Ie(e) { return new TypeError(`ReadableStream.prototype.${e} can only be used on a ReadableStream`); } n$1(Ie, "streamBrandCheckException$1"); function fo(e, t2) { ne2(e, t2); const r2 = e == null ? void 0 : e.highWaterMark; return dr(r2, "highWaterMark", "QueuingStrategyInit"), { highWaterMark: hr(r2) }; } n$1(fo, "convertQueuingStrategyInit"); const co = n$1((e) => e.byteLength, "byteLengthSizeFunction"); h2(co, "size"); const _Dt = class _Dt { constructor(t2) { le(t2, 1, "ByteLengthQueuingStrategy"), t2 = fo(t2, "First parameter"), this._byteLengthQueuingStrategyHighWaterMark = t2.highWaterMark; } get highWaterMark() { if (!mo(this)) throw ho("highWaterMark"); return this._byteLengthQueuingStrategyHighWaterMark; } get size() { if (!mo(this)) throw ho("size"); return co; } }; n$1(_Dt, "ByteLengthQueuingStrategy"); let Dt = _Dt; Object.defineProperties(Dt.prototype, { highWaterMark: { enumerable: true }, size: { enumerable: true } }), typeof Symbol.toStringTag == "symbol" && Object.defineProperty(Dt.prototype, Symbol.toStringTag, { value: "ByteLengthQueuingStrategy", configurable: true }); function ho(e) { return new TypeError(`ByteLengthQueuingStrategy.prototype.${e} can only be used on a ByteLengthQueuingStrategy`); } n$1(ho, "byteLengthBrandCheckException"); function mo(e) { return !u(e) || !Object.prototype.hasOwnProperty.call(e, "_byteLengthQueuingStrategyHighWaterMark") ? false : e instanceof Dt; } n$1(mo, "IsByteLengthQueuingStrategy"); const bo = n$1(() => 1, "countSizeFunction"); h2(bo, "size"); const _$t = class _$t { constructor(t2) { le(t2, 1, "CountQueuingStrategy"), t2 = fo(t2, "First parameter"), this._countQueuingStrategyHighWaterMark = t2.highWaterMark; } get highWaterMark() { if (!yo(this)) throw po("highWaterMark"); return this._countQueuingStrategyHighWaterMark; } get size() { if (!yo(this)) throw po("size"); return bo; } }; n$1(_$t, "CountQueuingStrategy"); let $t2 = _$t; Object.defineProperties($t2.prototype, { highWaterMark: { enumerable: true }, size: { enumerable: true } }), typeof Symbol.toStringTag == "symbol" && Object.defineProperty($t2.prototype, Symbol.toStringTag, { value: "CountQueuingStrategy", configurable: true }); function po(e) { return new TypeError(`CountQueuingStrategy.prototype.${e} can only be used on a CountQueuingStrategy`); } n$1(po, "countBrandCheckException"); function yo(e) { return !u(e) || !Object.prototype.hasOwnProperty.call(e, "_countQueuingStrategyHighWaterMark") ? false : e instanceof $t2; } n$1(yo, "IsCountQueuingStrategy"); function ka(e, t2) { ne2(e, t2); const r2 = e == null ? void 0 : e.cancel, s = e == null ? void 0 : e.flush, f2 = e == null ? void 0 : e.readableType, c = e == null ? void 0 : e.start, d = e == null ? void 0 : e.transform, p = e == null ? void 0 : e.writableType; return { cancel: r2 === void 0 ? void 0 : Fa(r2, e, `${t2} has member 'cancel' that`), flush: s === void 0 ? void 0 : qa(s, e, `${t2} has member 'flush' that`), readableType: f2, start: c === void 0 ? void 0 : Oa(c, e, `${t2} has member 'start' that`), transform: d === void 0 ? void 0 : Ia(d, e, `${t2} has member 'transform' that`), writableType: p }; } n$1(ka, "convertTransformer"); function qa(e, t2, r2) { return G2(e, r2), (s) => z(e, t2, [s]); } n$1(qa, "convertTransformerFlushCallback"); function Oa(e, t2, r2) { return G2(e, r2), (s) => O(e, t2, [s]); } n$1(Oa, "convertTransformerStartCallback"); function Ia(e, t2, r2) { return G2(e, r2), (s, f2) => z(e, t2, [s, f2]); } n$1(Ia, "convertTransformerTransformCallback"); function Fa(e, t2, r2) { return G2(e, r2), (s) => z(e, t2, [s]); } n$1(Fa, "convertTransformerCancelCallback"); const _Mt = class _Mt { constructor(t2 = {}, r2 = {}, s = {}) { t2 === void 0 && (t2 = null); const f2 = At(r2, "Second parameter"), c = At(s, "Third parameter"), d = ka(t2, "First parameter"); if (d.readableType !== void 0) throw new RangeError("Invalid readableType specified"); if (d.writableType !== void 0) throw new RangeError("Invalid writableType specified"); const p = ot2(c, 0), R2 = vt2(c), y = ot2(f2, 1), C2 = vt2(f2); let P2; const B2 = A((ee2) => { P2 = ee2; }); za(this, B2, y, C2, p, R2), La(this, d), d.start !== void 0 ? P2(d.start(this._transformStreamController)) : P2(void 0); } get readable() { if (!go(this)) throw Ro("readable"); return this._readable; } get writable() { if (!go(this)) throw Ro("writable"); return this._writable; } }; n$1(_Mt, "TransformStream"); let Mt2 = _Mt; Object.defineProperties(Mt2.prototype, { readable: { enumerable: true }, writable: { enumerable: true } }), typeof Symbol.toStringTag == "symbol" && Object.defineProperty(Mt2.prototype, Symbol.toStringTag, { value: "TransformStream", configurable: true }); function za(e, t2, r2, s, f2, c) { function d() { return t2; } n$1(d, "startAlgorithm"); function p(B2) { return Ma(e, B2); } n$1(p, "writeAlgorithm"); function R2(B2) { return Ua(e, B2); } n$1(R2, "abortAlgorithm"); function y() { return xa(e); } n$1(y, "closeAlgorithm"), e._writable = $i(d, p, y, R2, r2, s); function C2() { return Na(e); } n$1(C2, "pullAlgorithm"); function P2(B2) { return Ha(e, B2); } n$1(P2, "cancelAlgorithm"), e._readable = ut2(d, C2, P2, f2, c), e._backpressure = void 0, e._backpressureChangePromise = void 0, e._backpressureChangePromise_resolve = void 0, Ut2(e, true), e._transformStreamController = void 0; } n$1(za, "InitializeTransformStream"); function go(e) { return !u(e) || !Object.prototype.hasOwnProperty.call(e, "_transformStreamController") ? false : e instanceof Mt2; } n$1(go, "IsTransformStream"); function _o(e, t2) { J2(e._readable._readableStreamController, t2), xr(e, t2); } n$1(_o, "TransformStreamError"); function xr(e, t2) { Nt2(e._transformStreamController), it2(e._writable._writableStreamController, t2), Nr(e); } n$1(xr, "TransformStreamErrorWritableAndUnblockWrite"); function Nr(e) { e._backpressure && Ut2(e, false); } n$1(Nr, "TransformStreamUnblockWrite"); function Ut2(e, t2) { e._backpressureChangePromise !== void 0 && e._backpressureChangePromise_resolve(), e._backpressureChangePromise = A((r2) => { e._backpressureChangePromise_resolve = r2; }), e._backpressure = t2; } n$1(Ut2, "TransformStreamSetBackpressure"); const _Pe = class _Pe { constructor() { throw new TypeError("Illegal constructor"); } get desiredSize() { if (!xt2(this)) throw Ht2("desiredSize"); const t2 = this._controlledTransformStream._readable._readableStreamController; return Mr(t2); } enqueue(t2 = void 0) { if (!xt2(this)) throw Ht2("enqueue"); So(this, t2); } error(t2 = void 0) { if (!xt2(this)) throw Ht2("error"); Da(this, t2); } terminate() { if (!xt2(this)) throw Ht2("terminate"); $a(this); } }; n$1(_Pe, "TransformStreamDefaultController"); let Pe2 = _Pe; Object.defineProperties(Pe2.prototype, { enqueue: { enumerable: true }, error: { enumerable: true }, terminate: { enumerable: true }, desiredSize: { enumerable: true } }), h2(Pe2.prototype.enqueue, "enqueue"), h2(Pe2.prototype.error, "error"), h2(Pe2.prototype.terminate, "terminate"), typeof Symbol.toStringTag == "symbol" && Object.defineProperty(Pe2.prototype, Symbol.toStringTag, { value: "TransformStreamDefaultController", configurable: true }); function xt2(e) { return !u(e) || !Object.prototype.hasOwnProperty.call(e, "_controlledTransformStream") ? false : e instanceof Pe2; } n$1(xt2, "IsTransformStreamDefaultController"); function ja(e, t2, r2, s, f2) { t2._controlledTransformStream = e, e._transformStreamController = t2, t2._transformAlgorithm = r2, t2._flushAlgorithm = s, t2._cancelAlgorithm = f2, t2._finishPromise = void 0, t2._finishPromise_resolve = void 0, t2._finishPromise_reject = void 0; } n$1(ja, "SetUpTransformStreamDefaultController"); function La(e, t2) { const r2 = Object.create(Pe2.prototype); let s, f2, c; t2.transform !== void 0 ? s = n$1((d) => t2.transform(d, r2), "transformAlgorithm") : s = n$1((d) => { try { return So(r2, d), T2(void 0); } catch (p) { return b(p); } }, "transformAlgorithm"), t2.flush !== void 0 ? f2 = n$1(() => t2.flush(r2), "flushAlgorithm") : f2 = n$1(() => T2(void 0), "flushAlgorithm"), t2.cancel !== void 0 ? c = n$1((d) => t2.cancel(d), "cancelAlgorithm") : c = n$1(() => T2(void 0), "cancelAlgorithm"), ja(e, r2, s, f2, c); } n$1(La, "SetUpTransformStreamDefaultControllerFromTransformer"); function Nt2(e) { e._transformAlgorithm = void 0, e._flushAlgorithm = void 0, e._cancelAlgorithm = void 0; } n$1(Nt2, "TransformStreamDefaultControllerClearAlgorithms"); function So(e, t2) { const r2 = e._controlledTransformStream, s = r2._readable._readableStreamController; if (!Ue(s)) throw new TypeError("Readable side is not in a state that permits enqueue"); try { Me2(s, t2); } catch (c) { throw xr(r2, c), r2._readable._storedError; } ma(s) !== r2._backpressure && Ut2(r2, true); } n$1(So, "TransformStreamDefaultControllerEnqueue"); function Da(e, t2) { _o(e._controlledTransformStream, t2); } n$1(Da, "TransformStreamDefaultControllerError"); function wo(e, t2) { const r2 = e._transformAlgorithm(t2); return F(r2, void 0, (s) => { throw _o(e._controlledTransformStream, s), s; }); } n$1(wo, "TransformStreamDefaultControllerPerformTransform"); function $a(e) { const t2 = e._controlledTransformStream, r2 = t2._readable._readableStreamController; Oe(r2); const s = new TypeError("TransformStream terminated"); xr(t2, s); } n$1($a, "TransformStreamDefaultControllerTerminate"); function Ma(e, t2) { const r2 = e._transformStreamController; if (e._backpressure) { const s = e._backpressureChangePromise; return F(s, () => { const f2 = e._writable; if (f2._state === "erroring") throw f2._storedError; return wo(r2, t2); }); } return wo(r2, t2); } n$1(Ma, "TransformStreamDefaultSinkWriteAlgorithm"); function Ua(e, t2) { const r2 = e._transformStreamController; if (r2._finishPromise !== void 0) return r2._finishPromise; const s = e._readable; r2._finishPromise = A((c, d) => { r2._finishPromise_resolve = c, r2._finishPromise_reject = d; }); const f2 = r2._cancelAlgorithm(t2); return Nt2(r2), g(f2, () => (s._state === "errored" ? xe(r2, s._storedError) : (J2(s._readableStreamController, t2), Hr(r2)), null), (c) => (J2(s._readableStreamController, c), xe(r2, c), null)), r2._finishPromise; } n$1(Ua, "TransformStreamDefaultSinkAbortAlgorithm"); function xa(e) { const t2 = e._transformStreamController; if (t2._finishPromise !== void 0) return t2._finishPromise; const r2 = e._readable; t2._finishPromise = A((f2, c) => { t2._finishPromise_resolve = f2, t2._finishPromise_reject = c; }); const s = t2._flushAlgorithm(); return Nt2(t2), g(s, () => (r2._state === "errored" ? xe(t2, r2._storedError) : (Oe(r2._readableStreamController), Hr(t2)), null), (f2) => (J2(r2._readableStreamController, f2), xe(t2, f2), null)), t2._finishPromise; } n$1(xa, "TransformStreamDefaultSinkCloseAlgorithm"); function Na(e) { return Ut2(e, false), e._backpressureChangePromise; } n$1(Na, "TransformStreamDefaultSourcePullAlgorithm"); function Ha(e, t2) { const r2 = e._transformStreamController; if (r2._finishPromise !== void 0) return r2._finishPromise; const s = e._writable; r2._finishPromise = A((c, d) => { r2._finishPromise_resolve = c, r2._finishPromise_reject = d; }); const f2 = r2._cancelAlgorithm(t2); return Nt2(r2), g(f2, () => (s._state === "errored" ? xe(r2, s._storedError) : (it2(s._writableStreamController, t2), Nr(e), Hr(r2)), null), (c) => (it2(s._writableStreamController, c), Nr(e), xe(r2, c), null)), r2._finishPromise; } n$1(Ha, "TransformStreamDefaultSourceCancelAlgorithm"); function Ht2(e) { return new TypeError(`TransformStreamDefaultController.prototype.${e} can only be used on a TransformStreamDefaultController`); } n$1(Ht2, "defaultControllerBrandCheckException"); function Hr(e) { e._finishPromise_resolve !== void 0 && (e._finishPromise_resolve(), e._finishPromise_resolve = void 0, e._finishPromise_reject = void 0); } n$1(Hr, "defaultControllerFinishPromiseResolve"); function xe(e, t2) { e._finishPromise_reject !== void 0 && (Q2(e._finishPromise), e._finishPromise_reject(t2), e._finishPromise_resolve = void 0, e._finishPromise_reject = void 0); } n$1(xe, "defaultControllerFinishPromiseReject"); function Ro(e) { return new TypeError(`TransformStream.prototype.${e} can only be used on a TransformStream`); } n$1(Ro, "streamBrandCheckException"), a.ByteLengthQueuingStrategy = Dt, a.CountQueuingStrategy = $t2, a.ReadableByteStreamController = ce2, a.ReadableStream = L, a.ReadableStreamBYOBReader = we2, a.ReadableStreamBYOBRequest = ve2, a.ReadableStreamDefaultController = he, a.ReadableStreamDefaultReader = ye2, a.TransformStream = Mt2, a.TransformStreamDefaultController = Pe2, a.WritableStream = Re2, a.WritableStreamDefaultController = $e, a.WritableStreamDefaultWriter = de; }); }(ct$1, ct$1.exports)), ct$1.exports; } n$1(ns, "requirePonyfill_es2018"); var Ao; function os() { if (Ao) return Eo; Ao = 1; const i = 65536; if (!globalThis.ReadableStream) try { const o2 = require("node:process"), { emitWarning: a } = o2; try { o2.emitWarning = () => { }, Object.assign(globalThis, require("node:stream/web")), o2.emitWarning = a; } catch (l) { throw o2.emitWarning = a, l; } } catch { Object.assign(globalThis, ns()); } try { const { Blob: o2 } = require("buffer"); o2 && !o2.prototype.stream && (o2.prototype.stream = n$1(function(l) { let u = 0; const m = this; return new ReadableStream({ type: "bytes", async pull(h2) { const E2 = await m.slice(u, Math.min(m.size, u + i)).arrayBuffer(); u += E2.byteLength, h2.enqueue(new Uint8Array(E2)), u === m.size && h2.close(); } }); }, "name")); } catch { } return Eo; } n$1(os, "requireStreams"), os(); /*! fetch-blob. MIT License. Jimmy Wärting */ const Bo = 65536; async function* Qr(i, o2 = true) { for (const a of i) if ("stream" in a) yield* a.stream(); else if (ArrayBuffer.isView(a)) if (o2) { let l = a.byteOffset; const u = a.byteOffset + a.byteLength; for (; l !== u; ) { const m = Math.min(u - l, Bo), h2 = a.buffer.slice(l, l + m); l += h2.byteLength, yield new Uint8Array(h2); } } else yield a; else { let l = 0, u = a; for (; l !== u.size; ) { const h2 = await u.slice(l, Math.min(u.size, l + Bo)).arrayBuffer(); l += h2.byteLength, yield new Uint8Array(h2); } } } n$1(Qr, "toIterator"); const Wo = (_a = class { constructor(o2 = [], a = {}) { __privateAdd(this, _e2, []); __privateAdd(this, _t2, ""); __privateAdd(this, _r, 0); __privateAdd(this, _n, "transparent"); if (typeof o2 != "object" || o2 === null) throw new TypeError("Failed to construct 'Blob': The provided value cannot be converted to a sequence."); if (typeof o2[Symbol.iterator] != "function") throw new TypeError("Failed to construct 'Blob': The object must have a callable @@iterator property."); if (typeof a != "object" && typeof a != "function") throw new TypeError("Failed to construct 'Blob': parameter 2 cannot convert to dictionary."); a === null && (a = {}); const l = new TextEncoder(); for (const m of o2) { let h2; ArrayBuffer.isView(m) ? h2 = new Uint8Array(m.buffer.slice(m.byteOffset, m.byteOffset + m.byteLength)) : m instanceof ArrayBuffer ? h2 = new Uint8Array(m.slice(0)) : m instanceof _a ? h2 = m : h2 = l.encode(`${m}`), __privateSet(this, _r, __privateGet(this, _r) + (ArrayBuffer.isView(h2) ? h2.byteLength : h2.size)), __privateGet(this, _e2).push(h2); } __privateSet(this, _n, `${a.endings === void 0 ? "transparent" : a.endings}`); const u = a.type === void 0 ? "" : String(a.type); __privateSet(this, _t2, /^[\x20-\x7E]*$/.test(u) ? u : ""); } get size() { return __privateGet(this, _r); } get type() { return __privateGet(this, _t2); } async text() { const o2 = new TextDecoder(); let a = ""; for await (const l of Qr(__privateGet(this, _e2), false)) a += o2.decode(l, { stream: true }); return a += o2.decode(), a; } async arrayBuffer() { const o2 = new Uint8Array(this.size); let a = 0; for await (const l of Qr(__privateGet(this, _e2), false)) o2.set(l, a), a += l.length; return o2.buffer; } stream() { const o2 = Qr(__privateGet(this, _e2), true); return new globalThis.ReadableStream({ type: "bytes", async pull(a) { const l = await o2.next(); l.done ? a.close() : a.enqueue(l.value); }, async cancel() { await o2.return(); } }); } slice(o2 = 0, a = this.size, l = "") { const { size: u } = this; let m = o2 < 0 ? Math.max(u + o2, 0) : Math.min(o2, u), h2 = a < 0 ? Math.max(u + a, 0) : Math.min(a, u); const S = Math.max(h2 - m, 0), E2 = __privateGet(this, _e2), w = []; let A = 0; for (const b of E2) { if (A >= S) break; const q2 = ArrayBuffer.isView(b) ? b.byteLength : b.size; if (m && q2 <= m) m -= q2, h2 -= q2; else { let g; ArrayBuffer.isView(b) ? (g = b.subarray(m, Math.min(q2, h2)), A += g.byteLength) : (g = b.slice(m, Math.min(q2, h2)), A += g.size), h2 -= q2, w.push(g), m = 0; } } const T2 = new _a([], { type: String(l).toLowerCase() }); return __privateSet(T2, _r, S), __privateSet(T2, _e2, w), T2; } get [Symbol.toStringTag]() { return "Blob"; } static [Symbol.hasInstance](o2) { return o2 && typeof o2 == "object" && typeof o2.constructor == "function" && (typeof o2.stream == "function" || typeof o2.arrayBuffer == "function") && /^(Blob|File)$/.test(o2[Symbol.toStringTag]); } }, _e2 = new WeakMap(), _t2 = new WeakMap(), _r = new WeakMap(), _n = new WeakMap(), n$1(_a, "Blob"), _a); Object.defineProperties(Wo.prototype, { size: { enumerable: true }, type: { enumerable: true }, slice: { enumerable: true } }); const Ze$1 = Wo, is = (_b = class extends Ze$1 { constructor(o2, a, l = {}) { if (arguments.length < 2) throw new TypeError(`Failed to construct 'File': 2 arguments required, but only ${arguments.length} present.`); super(o2, l); __privateAdd(this, _e3, 0); __privateAdd(this, _t3, ""); l === null && (l = {}); const u = l.lastModified === void 0 ? Date.now() : Number(l.lastModified); Number.isNaN(u) || __privateSet(this, _e3, u), __privateSet(this, _t3, String(a)); } get name() { return __privateGet(this, _t3); } get lastModified() { return __privateGet(this, _e3); } get [Symbol.toStringTag]() { return "File"; } static [Symbol.hasInstance](o2) { return !!o2 && o2 instanceof Ze$1 && /^(File)$/.test(o2[Symbol.toStringTag]); } }, _e3 = new WeakMap(), _t3 = new WeakMap(), n$1(_b, "File"), _b), Yr = is; /*! formdata-polyfill. MIT License. Jimmy Wärting */ var { toStringTag: dt$1, iterator: as, hasInstance: ss } = Symbol, ko = Math.random, us = "append,set,get,getAll,delete,keys,values,entries,forEach,constructor".split(","), qo = n$1((i, o2, a) => (i += "", /^(Blob|File)$/.test(o2 && o2[dt$1]) ? [(a = a !== void 0 ? a + "" : o2[dt$1] == "File" ? o2.name : "blob", i), o2.name !== a || o2[dt$1] == "blob" ? new Yr([o2], a, o2) : o2] : [i, o2 + ""]), "f"), Gr = n$1((i, o2) => (o2 ? i : i.replace(/\r?\n|\r/g, `\r `)).replace(/\n/g, "%0A").replace(/\r/g, "%0D").replace(/"/g, "%22"), "e$1"), Fe = n$1((i, o2, a) => { if (o2.length < a) throw new TypeError(`Failed to execute '${i}' on 'FormData': ${a} arguments required, but only ${o2.length} present.`); }, "x"); const Zt$1 = (_c = class { constructor(...o2) { __privateAdd(this, _e4, []); if (o2.length) throw new TypeError("Failed to construct 'FormData': parameter 1 is not of type 'HTMLFormElement'."); } get [dt$1]() { return "FormData"; } [as]() { return this.entries(); } static [ss](o2) { return o2 && typeof o2 == "object" && o2[dt$1] === "FormData" && !us.some((a) => typeof o2[a] != "function"); } append(...o2) { Fe("append", arguments, 2), __privateGet(this, _e4).push(qo(...o2)); } delete(o2) { Fe("delete", arguments, 1), o2 += "", __privateSet(this, _e4, __privateGet(this, _e4).filter(([a]) => a !== o2)); } get(o2) { Fe("get", arguments, 1), o2 += ""; for (var a = __privateGet(this, _e4), l = a.length, u = 0; u < l; u++) if (a[u][0] === o2) return a[u][1]; return null; } getAll(o2, a) { return Fe("getAll", arguments, 1), a = [], o2 += "", __privateGet(this, _e4).forEach((l) => l[0] === o2 && a.push(l[1])), a; } has(o2) { return Fe("has", arguments, 1), o2 += "", __privateGet(this, _e4).some((a) => a[0] === o2); } forEach(o2, a) { Fe("forEach", arguments, 1); for (var [l, u] of this) o2.call(a, u, l, this); } set(...o2) { Fe("set", arguments, 2); var a = [], l = true; o2 = qo(...o2), __privateGet(this, _e4).forEach((u) => { u[0] === o2[0] ? l && (l = !a.push(o2)) : a.push(u); }), l && a.push(o2), __privateSet(this, _e4, a); } *entries() { yield* __privateGet(this, _e4); } *keys() { for (var [o2] of this) yield o2; } *values() { for (var [, o2] of this) yield o2; } }, _e4 = new WeakMap(), n$1(_c, "FormData"), _c); function ls(i, o2 = Ze$1) { var a = `${ko()}${ko()}`.replace(/\./g, "").slice(-28).padStart(32, "-"), l = [], u = `--${a}\r Content-Disposition: form-data; name="`; return i.forEach((m, h2) => typeof m == "string" ? l.push(u + Gr(h2) + `"\r \r ${m.replace(new RegExp("\\r(?!\\n)|(? typeof i == "object" && typeof i.append == "function" && typeof i.delete == "function" && typeof i.get == "function" && typeof i.getAll == "function" && typeof i.has == "function" && typeof i.set == "function" && typeof i.sort == "function" && i[Jt$1] === "URLSearchParams", "isURLSearchParameters"), Xt$1 = n$1((i) => i && typeof i == "object" && typeof i.arrayBuffer == "function" && typeof i.type == "string" && typeof i.stream == "function" && typeof i.constructor == "function" && /^(Blob|File)$/.test(i[Jt$1]), "isBlob"), fs = n$1((i) => typeof i == "object" && (i[Jt$1] === "AbortSignal" || i[Jt$1] === "EventTarget"), "isAbortSignal"), cs = n$1((i, o2) => { const a = new URL(o2).hostname, l = new URL(i).hostname; return a === l || a.endsWith(`.${l}`); }, "isDomainOrSubdomain"), ds = n$1((i, o2) => { const a = new URL(o2).protocol, l = new URL(i).protocol; return a === l; }, "isSameProtocol"), hs = promisify(ie.pipeline), N$1 = Symbol("Body internals"); let ht$1 = (_f = class { constructor(o2, { size: a = 0 } = {}) { let l = null; o2 === null ? o2 = null : Oo(o2) ? o2 = Buffer$1.from(o2.toString()) : Xt$1(o2) || Buffer$1.isBuffer(o2) || (types.isAnyArrayBuffer(o2) ? o2 = Buffer$1.from(o2) : ArrayBuffer.isView(o2) ? o2 = Buffer$1.from(o2.buffer, o2.byteOffset, o2.byteLength) : o2 instanceof ie || (o2 instanceof Zt$1 ? (o2 = ls(o2), l = o2.type.split("=")[1]) : o2 = Buffer$1.from(String(o2)))); let u = o2; Buffer$1.isBuffer(o2) ? u = ie.Readable.from(o2) : Xt$1(o2) && (u = ie.Readable.from(o2.stream())), this[N$1] = { body: o2, stream: u, boundary: l, disturbed: false, error: null }, this.size = a, o2 instanceof ie && o2.on("error", (m) => { const h2 = m instanceof Kt$1 ? m : new te$1(`Invalid response body while trying to fetch ${this.url}: ${m.message}`, "system", m); this[N$1].error = h2; }); } get body() { return this[N$1].stream; } get bodyUsed() { return this[N$1].disturbed; } async arrayBuffer() { const { buffer: o2, byteOffset: a, byteLength: l } = await Zr(this); return o2.slice(a, a + l); } async formData() { const o2 = this.headers.get("content-type"); if (o2.startsWith("application/x-www-form-urlencoded")) { const l = new Zt$1(), u = new URLSearchParams(await this.text()); for (const [m, h2] of u) l.append(m, h2); return l; } const { toFormData: a } = await import('./multipart-parser-42k3zbcc.mjs'); return a(this.body, o2); } async blob() { const o2 = this.headers && this.headers.get("content-type") || this[N$1].body && this[N$1].body.type || "", a = await this.arrayBuffer(); return new Ze$1([a], { type: o2 }); } async json() { const o2 = await this.text(); return JSON.parse(o2); } async text() { const o2 = await Zr(this); return new TextDecoder().decode(o2); } buffer() { return Zr(this); } }, n$1(_f, "Body"), _f); ht$1.prototype.buffer = deprecate(ht$1.prototype.buffer, "Please use 'response.arrayBuffer()' instead of 'response.buffer()'", "node-fetch#buffer"), Object.defineProperties(ht$1.prototype, { body: { enumerable: true }, bodyUsed: { enumerable: true }, arrayBuffer: { enumerable: true }, blob: { enumerable: true }, json: { enumerable: true }, text: { enumerable: true }, data: { get: deprecate(() => { }, "data doesn't exist, use json(), text(), arrayBuffer(), or body instead", "https://github.com/node-fetch/node-fetch/issues/1000 (response)") } }); async function Zr(i) { if (i[N$1].disturbed) throw new TypeError(`body used already for: ${i.url}`); if (i[N$1].disturbed = true, i[N$1].error) throw i[N$1].error; const { body: o2 } = i; if (o2 === null) return Buffer$1.alloc(0); if (!(o2 instanceof ie)) return Buffer$1.alloc(0); const a = []; let l = 0; try { for await (const u of o2) { if (i.size > 0 && l + u.length > i.size) { const m = new te$1(`content size at ${i.url} over limit: ${i.size}`, "max-size"); throw o2.destroy(m), m; } l += u.length, a.push(u); } } catch (u) { throw u instanceof Kt$1 ? u : new te$1(`Invalid response body while trying to fetch ${i.url}: ${u.message}`, "system", u); } if (o2.readableEnded === true || o2._readableState.ended === true) try { return a.every((u) => typeof u == "string") ? Buffer$1.from(a.join("")) : Buffer$1.concat(a, l); } catch (u) { throw new te$1(`Could not create Buffer from response body for ${i.url}: ${u.message}`, "system", u); } else throw new te$1(`Premature close of server response while trying to fetch ${i.url}`); } n$1(Zr, "consumeBody"); const Kr = n$1((i, o2) => { let a, l, { body: u } = i[N$1]; if (i.bodyUsed) throw new Error("cannot clone body after it is used"); return u instanceof ie && typeof u.getBoundary != "function" && (a = new PassThrough({ highWaterMark: o2 }), l = new PassThrough({ highWaterMark: o2 }), u.pipe(a), u.pipe(l), i[N$1].stream = a, u = l), u; }, "clone"), ms = deprecate((i) => i.getBoundary(), "form-data doesn't follow the spec and requires special treatment. Use alternative package", "https://github.com/node-fetch/node-fetch/issues/1167"), Io = n$1((i, o2) => i === null ? null : typeof i == "string" ? "text/plain;charset=UTF-8" : Oo(i) ? "application/x-www-form-urlencoded;charset=UTF-8" : Xt$1(i) ? i.type || null : Buffer$1.isBuffer(i) || types.isAnyArrayBuffer(i) || ArrayBuffer.isView(i) ? null : i instanceof Zt$1 ? `multipart/form-data; boundary=${o2[N$1].boundary}` : i && typeof i.getBoundary == "function" ? `multipart/form-data;boundary=${ms(i)}` : i instanceof ie ? null : "text/plain;charset=UTF-8", "extractContentType"), bs = n$1((i) => { const { body: o2 } = i[N$1]; return o2 === null ? 0 : Xt$1(o2) ? o2.size : Buffer$1.isBuffer(o2) ? o2.length : o2 && typeof o2.getLengthSync == "function" && o2.hasKnownLength && o2.hasKnownLength() ? o2.getLengthSync() : null; }, "getTotalBytes"), ps = n$1(async (i, { body: o2 }) => { o2 === null ? i.end() : await hs(o2, i); }, "writeToStream"), er = typeof ft$1.validateHeaderName == "function" ? ft$1.validateHeaderName : (i) => { if (!/^[\^`\-\w!#$%&'*+.|~]+$/.test(i)) { const o2 = new TypeError(`Header name must be a valid HTTP token [${i}]`); throw Object.defineProperty(o2, "code", { value: "ERR_INVALID_HTTP_TOKEN" }), o2; } }, Jr = typeof ft$1.validateHeaderValue == "function" ? ft$1.validateHeaderValue : (i, o2) => { if (/[^\t\u0020-\u007E\u0080-\u00FF]/.test(o2)) { const a = new TypeError(`Invalid character in header content ["${i}"]`); throw Object.defineProperty(a, "code", { value: "ERR_INVALID_CHAR" }), a; } }; const _ae = class _ae extends URLSearchParams { constructor(o2) { let a = []; if (o2 instanceof _ae) { const l = o2.raw(); for (const [u, m] of Object.entries(l)) a.push(...m.map((h2) => [u, h2])); } else if (o2 != null) if (typeof o2 == "object" && !types.isBoxedPrimitive(o2)) { const l = o2[Symbol.iterator]; if (l == null) a.push(...Object.entries(o2)); else { if (typeof l != "function") throw new TypeError("Header pairs must be iterable"); a = [...o2].map((u) => { if (typeof u != "object" || types.isBoxedPrimitive(u)) throw new TypeError("Each header pair must be an iterable object"); return [...u]; }).map((u) => { if (u.length !== 2) throw new TypeError("Each header pair must be a name/value tuple"); return [...u]; }); } } else throw new TypeError("Failed to construct 'Headers': The provided value is not of type '(sequence> or record)"); return a = a.length > 0 ? a.map(([l, u]) => (er(l), Jr(l, String(u)), [String(l).toLowerCase(), String(u)])) : void 0, super(a), new Proxy(this, { get(l, u, m) { switch (u) { case "append": case "set": return (h2, S) => (er(h2), Jr(h2, String(S)), URLSearchParams.prototype[u].call(l, String(h2).toLowerCase(), String(S))); case "delete": case "has": case "getAll": return (h2) => (er(h2), URLSearchParams.prototype[u].call(l, String(h2).toLowerCase())); case "keys": return () => (l.sort(), new Set(URLSearchParams.prototype.keys.call(l)).keys()); default: return Reflect.get(l, u, m); } } }); } get [Symbol.toStringTag]() { return this.constructor.name; } toString() { return Object.prototype.toString.call(this); } get(o2) { const a = this.getAll(o2); if (a.length === 0) return null; let l = a.join(", "); return /^content-encoding$/i.test(o2) && (l = l.toLowerCase()), l; } forEach(o2, a = void 0) { for (const l of this.keys()) Reflect.apply(o2, a, [this.get(l), l, this]); } *values() { for (const o2 of this.keys()) yield this.get(o2); } *entries() { for (const o2 of this.keys()) yield [o2, this.get(o2)]; } [Symbol.iterator]() { return this.entries(); } raw() { return [...this.keys()].reduce((o2, a) => (o2[a] = this.getAll(a), o2), {}); } [Symbol.for("nodejs.util.inspect.custom")]() { return [...this.keys()].reduce((o2, a) => { const l = this.getAll(a); return a === "host" ? o2[a] = l[0] : o2[a] = l.length > 1 ? l : l[0], o2; }, {}); } }; n$1(_ae, "Headers"); let ae = _ae; Object.defineProperties(ae.prototype, ["get", "entries", "forEach", "values"].reduce((i, o2) => (i[o2] = { enumerable: true }, i), {})); function ys(i = []) { return new ae(i.reduce((o2, a, l, u) => (l % 2 === 0 && o2.push(u.slice(l, l + 2)), o2), []).filter(([o2, a]) => { try { return er(o2), Jr(o2, String(a)), true; } catch { return false; } })); } n$1(ys, "fromRawHeaders"); const gs = /* @__PURE__ */ new Set([301, 302, 303, 307, 308]), Xr = n$1((i) => gs.has(i), "isRedirect"), re = Symbol("Response internals"); let H$1 = (_g = class extends ht$1 { constructor(o2 = null, a = {}) { super(o2, a); const l = a.status != null ? a.status : 200, u = new ae(a.headers); if (o2 !== null && !u.has("Content-Type")) { const m = Io(o2, this); m && u.append("Content-Type", m); } this[re] = { type: "default", url: a.url, status: l, statusText: a.statusText || "", headers: u, counter: a.counter, highWaterMark: a.highWaterMark }; } get type() { return this[re].type; } get url() { return this[re].url || ""; } get status() { return this[re].status; } get ok() { return this[re].status >= 200 && this[re].status < 300; } get redirected() { return this[re].counter > 0; } get statusText() { return this[re].statusText; } get headers() { return this[re].headers; } get highWaterMark() { return this[re].highWaterMark; } clone() { return new _g(Kr(this, this.highWaterMark), { type: this.type, url: this.url, status: this.status, statusText: this.statusText, headers: this.headers, ok: this.ok, redirected: this.redirected, size: this.size, highWaterMark: this.highWaterMark }); } static redirect(o2, a = 302) { if (!Xr(a)) throw new RangeError('Failed to execute "redirect" on "response": Invalid status code'); return new _g(null, { headers: { location: new URL(o2).toString() }, status: a }); } static error() { const o2 = new _g(null, { status: 0, statusText: "" }); return o2[re].type = "error", o2; } static json(o2 = void 0, a = {}) { const l = JSON.stringify(o2); if (l === void 0) throw new TypeError("data is not JSON serializable"); const u = new ae(a && a.headers); return u.has("content-type") || u.set("content-type", "application/json"), new _g(l, { ...a, headers: u }); } get [Symbol.toStringTag]() { return "Response"; } }, n$1(_g, "Response"), _g); Object.defineProperties(H$1.prototype, { type: { enumerable: true }, url: { enumerable: true }, status: { enumerable: true }, ok: { enumerable: true }, redirected: { enumerable: true }, statusText: { enumerable: true }, headers: { enumerable: true }, clone: { enumerable: true } }); const _s = n$1((i) => { if (i.search) return i.search; const o2 = i.href.length - 1, a = i.hash || (i.href[o2] === "#" ? "#" : ""); return i.href[o2 - a.length] === "?" ? "?" : ""; }, "getSearch"); function Fo(i, o2 = false) { return i == null || (i = new URL(i), /^(about|blob|data):$/.test(i.protocol)) ? "no-referrer" : (i.username = "", i.password = "", i.hash = "", o2 && (i.pathname = "", i.search = ""), i); } n$1(Fo, "stripURLForUseAsAReferrer"); const zo = /* @__PURE__ */ new Set(["", "no-referrer", "no-referrer-when-downgrade", "same-origin", "origin", "strict-origin", "origin-when-cross-origin", "strict-origin-when-cross-origin", "unsafe-url"]), Ss = "strict-origin-when-cross-origin"; function ws(i) { if (!zo.has(i)) throw new TypeError(`Invalid referrerPolicy: ${i}`); return i; } n$1(ws, "validateReferrerPolicy"); function Rs(i) { if (/^(http|ws)s:$/.test(i.protocol)) return true; const o2 = i.host.replace(/(^\[)|(]$)/g, ""), a = isIP(o2); return a === 4 && /^127\./.test(o2) || a === 6 && /^(((0+:){7})|(::(0+:){0,6}))0*1$/.test(o2) ? true : i.host === "localhost" || i.host.endsWith(".localhost") ? false : i.protocol === "file:"; } n$1(Rs, "isOriginPotentiallyTrustworthy"); function Ke$1(i) { return /^about:(blank|srcdoc)$/.test(i) || i.protocol === "data:" || /^(blob|filesystem):$/.test(i.protocol) ? true : Rs(i); } n$1(Ke$1, "isUrlPotentiallyTrustworthy"); function Ts(i, { referrerURLCallback: o2, referrerOriginCallback: a } = {}) { if (i.referrer === "no-referrer" || i.referrerPolicy === "") return null; const l = i.referrerPolicy; if (i.referrer === "about:client") return "no-referrer"; const u = i.referrer; let m = Fo(u), h2 = Fo(u, true); m.toString().length > 4096 && (m = h2), o2 && (m = o2(m)), a && (h2 = a(h2)); const S = new URL(i.url); switch (l) { case "no-referrer": return "no-referrer"; case "origin": return h2; case "unsafe-url": return m; case "strict-origin": return Ke$1(m) && !Ke$1(S) ? "no-referrer" : h2.toString(); case "strict-origin-when-cross-origin": return m.origin === S.origin ? m : Ke$1(m) && !Ke$1(S) ? "no-referrer" : h2; case "same-origin": return m.origin === S.origin ? m : "no-referrer"; case "origin-when-cross-origin": return m.origin === S.origin ? m : h2; case "no-referrer-when-downgrade": return Ke$1(m) && !Ke$1(S) ? "no-referrer" : m; default: throw new TypeError(`Invalid referrerPolicy: ${l}`); } } n$1(Ts, "determineRequestsReferrer"); function Cs(i) { const o2 = (i.get("referrer-policy") || "").split(/[,\s]+/); let a = ""; for (const l of o2) l && zo.has(l) && (a = l); return a; } n$1(Cs, "parseReferrerPolicyFromHeader"); const j = Symbol("Request internals"), mt$1 = n$1((i) => typeof i == "object" && typeof i[j] == "object", "isRequest"), Ps = deprecate(() => { }, ".data is not a valid RequestInit property, use .body instead", "https://github.com/node-fetch/node-fetch/issues/1000 (request)"); let Xe$1 = (_h = class extends ht$1 { constructor(o2, a = {}) { let l; if (mt$1(o2) ? l = new URL(o2.url) : (l = new URL(o2), o2 = {}), l.username !== "" || l.password !== "") throw new TypeError(`${l} is an url with embedded credentials.`); let u = a.method || o2.method || "GET"; if (/^(delete|get|head|options|post|put)$/i.test(u) && (u = u.toUpperCase()), !mt$1(a) && "data" in a && Ps(), (a.body != null || mt$1(o2) && o2.body !== null) && (u === "GET" || u === "HEAD")) throw new TypeError("Request with GET/HEAD method cannot have body"); const m = a.body ? a.body : mt$1(o2) && o2.body !== null ? Kr(o2) : null; super(m, { size: a.size || o2.size || 0 }); const h2 = new ae(a.headers || o2.headers || {}); if (m !== null && !h2.has("Content-Type")) { const w = Io(m, this); w && h2.set("Content-Type", w); } let S = mt$1(o2) ? o2.signal : null; if ("signal" in a && (S = a.signal), S != null && !fs(S)) throw new TypeError("Expected signal to be an instanceof AbortSignal or EventTarget"); let E2 = a.referrer == null ? o2.referrer : a.referrer; if (E2 === "") E2 = "no-referrer"; else if (E2) { const w = new URL(E2); E2 = /^about:(\/\/)?client$/.test(w) ? "client" : w; } else E2 = void 0; this[j] = { method: u, redirect: a.redirect || o2.redirect || "follow", headers: h2, parsedURL: l, signal: S, referrer: E2 }, this.follow = a.follow === void 0 ? o2.follow === void 0 ? 20 : o2.follow : a.follow, this.compress = a.compress === void 0 ? o2.compress === void 0 ? true : o2.compress : a.compress, this.counter = a.counter || o2.counter || 0, this.agent = a.agent || o2.agent, this.highWaterMark = a.highWaterMark || o2.highWaterMark || 16384, this.insecureHTTPParser = a.insecureHTTPParser || o2.insecureHTTPParser || false, this.referrerPolicy = a.referrerPolicy || o2.referrerPolicy || ""; } get method() { return this[j].method; } get url() { return format(this[j].parsedURL); } get headers() { return this[j].headers; } get redirect() { return this[j].redirect; } get signal() { return this[j].signal; } get referrer() { if (this[j].referrer === "no-referrer") return ""; if (this[j].referrer === "client") return "about:client"; if (this[j].referrer) return this[j].referrer.toString(); } get referrerPolicy() { return this[j].referrerPolicy; } set referrerPolicy(o2) { this[j].referrerPolicy = ws(o2); } clone() { return new _h(this); } get [Symbol.toStringTag]() { return "Request"; } }, n$1(_h, "Request"), _h); Object.defineProperties(Xe$1.prototype, { method: { enumerable: true }, url: { enumerable: true }, headers: { enumerable: true }, redirect: { enumerable: true }, clone: { enumerable: true }, signal: { enumerable: true }, referrer: { enumerable: true }, referrerPolicy: { enumerable: true } }); const Es = n$1((i) => { const { parsedURL: o2 } = i[j], a = new ae(i[j].headers); a.has("Accept") || a.set("Accept", "*/*"); let l = null; if (i.body === null && /^(post|put)$/i.test(i.method) && (l = "0"), i.body !== null) { const S = bs(i); typeof S == "number" && !Number.isNaN(S) && (l = String(S)); } l && a.set("Content-Length", l), i.referrerPolicy === "" && (i.referrerPolicy = Ss), i.referrer && i.referrer !== "no-referrer" ? i[j].referrer = Ts(i) : i[j].referrer = "no-referrer", i[j].referrer instanceof URL && a.set("Referer", i.referrer), a.has("User-Agent") || a.set("User-Agent", "node-fetch"), i.compress && !a.has("Accept-Encoding") && a.set("Accept-Encoding", "gzip, deflate, br"); let { agent: u } = i; typeof u == "function" && (u = u(o2)); const m = _s(o2), h2 = { path: o2.pathname + m, method: i.method, headers: a[Symbol.for("nodejs.util.inspect.custom")](), insecureHTTPParser: i.insecureHTTPParser, agent: u }; return { parsedURL: o2, options: h2 }; }, "getNodeRequestOptions"); const _jo = class _jo extends Kt$1 { constructor(o2, a = "aborted") { super(o2, a); } }; n$1(_jo, "AbortError"); let jo = _jo; /*! node-domexception. MIT License. Jimmy Wärting */ var en$1, Lo; function vs() { if (Lo) return en$1; if (Lo = 1, !globalThis.DOMException) try { const { MessageChannel: i } = require("worker_threads"), o2 = new i().port1, a = new ArrayBuffer(); o2.postMessage(a, [a, a]); } catch (i) { i.constructor.name === "DOMException" && (globalThis.DOMException = i.constructor); } return en$1 = globalThis.DOMException, en$1; } n$1(vs, "requireNodeDomexception"); var As = vs(); const Bs = f(As), { stat: tn$1 } = promises; n$1((i, o2) => Do(statSync(i), i, o2), "blobFromSync"); n$1((i, o2) => tn$1(i).then((a) => Do(a, i, o2)), "blobFrom"); n$1((i, o2) => tn$1(i).then((a) => $o(a, i, o2)), "fileFrom"); n$1((i, o2) => $o(statSync(i), i, o2), "fileFromSync"); const Do = n$1((i, o2, a = "") => new Ze$1([new ir({ path: o2, size: i.size, lastModified: i.mtimeMs, start: 0 })], { type: a }), "fromBlob"), $o = n$1((i, o2, a = "") => new Yr([new ir({ path: o2, size: i.size, lastModified: i.mtimeMs, start: 0 })], basename(o2), { type: a, lastModified: i.mtimeMs }), "fromFile"); const _ir = class _ir { constructor(o2) { __privateAdd(this, _e5); __privateAdd(this, _t4); __privateSet(this, _e5, o2.path), __privateSet(this, _t4, o2.start), this.size = o2.size, this.lastModified = o2.lastModified; } slice(o2, a) { return new _ir({ path: __privateGet(this, _e5), lastModified: this.lastModified, size: a - o2, start: __privateGet(this, _t4) + o2 }); } async *stream() { const { mtimeMs: o2 } = await tn$1(__privateGet(this, _e5)); if (o2 > this.lastModified) throw new Bs("The requested file could not be read, typically due to permission problems that have occurred after a reference to a file was acquired.", "NotReadableError"); yield* createReadStream(__privateGet(this, _e5), { start: __privateGet(this, _t4), end: __privateGet(this, _t4) + this.size - 1 }); } get [Symbol.toStringTag]() { return "Blob"; } }; _e5 = new WeakMap(); _t4 = new WeakMap(); n$1(_ir, "BlobDataItem"); let ir = _ir; const Is = /* @__PURE__ */ new Set(["data:", "http:", "https:"]); async function Mo(i, o2) { return new Promise((a, l) => { const u = new Xe$1(i, o2), { parsedURL: m, options: h2 } = Es(u); if (!Is.has(m.protocol)) throw new TypeError(`node-fetch cannot load ${i}. URL scheme "${m.protocol.replace(/:$/, "")}" is not supported.`); if (m.protocol === "data:") { const g = ts(u.url), V = new H$1(g, { headers: { "Content-Type": g.typeFull } }); a(V); return; } const S = (m.protocol === "https:" ? Qa : ft$1).request, { signal: E2 } = u; let w = null; const A = n$1(() => { const g = new jo("The operation was aborted."); l(g), u.body && u.body instanceof ie.Readable && u.body.destroy(g), !(!w || !w.body) && w.body.emit("error", g); }, "abort"); if (E2 && E2.aborted) { A(); return; } const T2 = n$1(() => { A(), q2(); }, "abortAndFinalize"), b = S(m.toString(), h2); E2 && E2.addEventListener("abort", T2); const q2 = n$1(() => { b.abort(), E2 && E2.removeEventListener("abort", T2); }, "finalize"); b.on("error", (g) => { l(new te$1(`request to ${u.url} failed, reason: ${g.message}`, "system", g)), q2(); }), Fs(b, (g) => { w && w.body && w.body.destroy(g); }), process.version < "v14" && b.on("socket", (g) => { let V; g.prependListener("end", () => { V = g._eventsCount; }), g.prependListener("close", (I2) => { if (w && V < g._eventsCount && !I2) { const F = new Error("Premature close"); F.code = "ERR_STREAM_PREMATURE_CLOSE", w.body.emit("error", F); } }); }), b.on("response", (g) => { b.setTimeout(0); const V = ys(g.rawHeaders); if (Xr(g.statusCode)) { const O = V.get("Location"); let z = null; try { z = O === null ? null : new URL(O, u.url); } catch { if (u.redirect !== "manual") { l(new te$1(`uri requested responds with an invalid redirect URL: ${O}`, "invalid-redirect")), q2(); return; } } switch (u.redirect) { case "error": l(new te$1(`uri requested responds with a redirect, redirect mode is set to error: ${u.url}`, "no-redirect")), q2(); return; case "manual": break; case "follow": { if (z === null) break; if (u.counter >= u.follow) { l(new te$1(`maximum redirect reached at: ${u.url}`, "max-redirect")), q2(); return; } const $ = { headers: new ae(u.headers), follow: u.follow, counter: u.counter + 1, agent: u.agent, compress: u.compress, method: u.method, body: Kr(u), signal: u.signal, size: u.size, referrer: u.referrer, referrerPolicy: u.referrerPolicy }; if (!cs(u.url, z) || !ds(u.url, z)) for (const pt2 of ["authorization", "www-authenticate", "cookie", "cookie2"]) $.headers.delete(pt2); if (g.statusCode !== 303 && u.body && o2.body instanceof ie.Readable) { l(new te$1("Cannot follow redirect with body being a readable stream", "unsupported-redirect")), q2(); return; } (g.statusCode === 303 || (g.statusCode === 301 || g.statusCode === 302) && u.method === "POST") && ($.method = "GET", $.body = void 0, $.headers.delete("content-length")); const M = Cs(V); M && ($.referrerPolicy = M), a(Mo(new Xe$1(z, $))), q2(); return; } default: return l(new TypeError(`Redirect option '${u.redirect}' is not a valid value of RequestRedirect`)); } } E2 && g.once("end", () => { E2.removeEventListener("abort", T2); }); let I2 = pipeline(g, new PassThrough(), (O) => { O && l(O); }); process.version < "v12.10" && g.on("aborted", T2); const F = { url: u.url, status: g.statusCode, statusText: g.statusMessage, headers: V, size: u.size, counter: u.counter, highWaterMark: u.highWaterMark }, Q2 = V.get("Content-Encoding"); if (!u.compress || u.method === "HEAD" || Q2 === null || g.statusCode === 204 || g.statusCode === 304) { w = new H$1(I2, F), a(w); return; } const se2 = { flush: Ye$1.Z_SYNC_FLUSH, finishFlush: Ye$1.Z_SYNC_FLUSH }; if (Q2 === "gzip" || Q2 === "x-gzip") { I2 = pipeline(I2, Ye$1.createGunzip(se2), (O) => { O && l(O); }), w = new H$1(I2, F), a(w); return; } if (Q2 === "deflate" || Q2 === "x-deflate") { const O = pipeline(g, new PassThrough(), (z) => { z && l(z); }); O.once("data", (z) => { (z[0] & 15) === 8 ? I2 = pipeline(I2, Ye$1.createInflate(), ($) => { $ && l($); }) : I2 = pipeline(I2, Ye$1.createInflateRaw(), ($) => { $ && l($); }), w = new H$1(I2, F), a(w); }), O.once("end", () => { w || (w = new H$1(I2, F), a(w)); }); return; } if (Q2 === "br") { I2 = pipeline(I2, Ye$1.createBrotliDecompress(), (O) => { O && l(O); }), w = new H$1(I2, F), a(w); return; } w = new H$1(I2, F), a(w); }), ps(b, u).catch(l); }); } n$1(Mo, "fetch$1"); function Fs(i, o2) { const a = Buffer$1.from(`0\r \r `); let l = false, u = false, m; i.on("response", (h2) => { const { headers: S } = h2; l = S["transfer-encoding"] === "chunked" && !S["content-length"]; }), i.on("socket", (h2) => { const S = n$1(() => { if (l && !u) { const w = new Error("Premature close"); w.code = "ERR_STREAM_PREMATURE_CLOSE", o2(w); } }, "onSocketClose"), E2 = n$1((w) => { u = Buffer$1.compare(w.slice(-5), a) === 0, !u && m && (u = Buffer$1.compare(m.slice(-3), a.slice(0, 3)) === 0 && Buffer$1.compare(w.slice(-2), a.slice(3)) === 0), m = w; }, "onData"); h2.prependListener("close", S), h2.on("data", E2), i.on("close", () => { h2.removeListener("close", S), h2.removeListener("data", E2); }); }); } n$1(Fs, "fixResponseChunkedTransferBadEnding"); const Uo = /* @__PURE__ */ new WeakMap(), rn$1 = /* @__PURE__ */ new WeakMap(); function k(i) { const o2 = Uo.get(i); return console.assert(o2 != null, "'this' is expected an Event object, but got", i), o2; } n$1(k, "pd"); function xo(i) { if (i.passiveListener != null) { typeof console < "u" && typeof console.error == "function" && console.error("Unable to preventDefault inside passive event listener invocation.", i.passiveListener); return; } i.event.cancelable && (i.canceled = true, typeof i.event.preventDefault == "function" && i.event.preventDefault()); } n$1(xo, "setCancelFlag"); function Je$1(i, o2) { Uo.set(this, { eventTarget: i, event: o2, eventPhase: 2, currentTarget: i, canceled: false, stopped: false, immediateStopped: false, passiveListener: null, timeStamp: o2.timeStamp || Date.now() }), Object.defineProperty(this, "isTrusted", { value: false, enumerable: true }); const a = Object.keys(o2); for (let l = 0; l < a.length; ++l) { const u = a[l]; u in this || Object.defineProperty(this, u, No(u)); } } n$1(Je$1, "Event"), Je$1.prototype = { get type() { return k(this).event.type; }, get target() { return k(this).eventTarget; }, get currentTarget() { return k(this).currentTarget; }, composedPath() { const i = k(this).currentTarget; return i == null ? [] : [i]; }, get NONE() { return 0; }, get CAPTURING_PHASE() { return 1; }, get AT_TARGET() { return 2; }, get BUBBLING_PHASE() { return 3; }, get eventPhase() { return k(this).eventPhase; }, stopPropagation() { const i = k(this); i.stopped = true, typeof i.event.stopPropagation == "function" && i.event.stopPropagation(); }, stopImmediatePropagation() { const i = k(this); i.stopped = true, i.immediateStopped = true, typeof i.event.stopImmediatePropagation == "function" && i.event.stopImmediatePropagation(); }, get bubbles() { return !!k(this).event.bubbles; }, get cancelable() { return !!k(this).event.cancelable; }, preventDefault() { xo(k(this)); }, get defaultPrevented() { return k(this).canceled; }, get composed() { return !!k(this).event.composed; }, get timeStamp() { return k(this).timeStamp; }, get srcElement() { return k(this).eventTarget; }, get cancelBubble() { return k(this).stopped; }, set cancelBubble(i) { if (!i) return; const o2 = k(this); o2.stopped = true, typeof o2.event.cancelBubble == "boolean" && (o2.event.cancelBubble = true); }, get returnValue() { return !k(this).canceled; }, set returnValue(i) { i || xo(k(this)); }, initEvent() { } }, Object.defineProperty(Je$1.prototype, "constructor", { value: Je$1, configurable: true, writable: true }); function No(i) { return { get() { return k(this).event[i]; }, set(o2) { k(this).event[i] = o2; }, configurable: true, enumerable: true }; } n$1(No, "defineRedirectDescriptor"); function zs(i) { return { value() { const o2 = k(this).event; return o2[i].apply(o2, arguments); }, configurable: true, enumerable: true }; } n$1(zs, "defineCallDescriptor"); function js(i, o2) { const a = Object.keys(o2); if (a.length === 0) return i; function l(u, m) { i.call(this, u, m); } n$1(l, "CustomEvent"), l.prototype = Object.create(i.prototype, { constructor: { value: l, configurable: true, writable: true } }); for (let u = 0; u < a.length; ++u) { const m = a[u]; if (!(m in i.prototype)) { const S = typeof Object.getOwnPropertyDescriptor(o2, m).value == "function"; Object.defineProperty(l.prototype, m, S ? zs(m) : No(m)); } } return l; } n$1(js, "defineWrapper"); function Ho(i) { if (i == null || i === Object.prototype) return Je$1; let o2 = rn$1.get(i); return o2 == null && (o2 = js(Ho(Object.getPrototypeOf(i)), i), rn$1.set(i, o2)), o2; } n$1(Ho, "getWrapper"); function Ls(i, o2) { const a = Ho(Object.getPrototypeOf(o2)); return new a(i, o2); } n$1(Ls, "wrapEvent"); function Ds(i) { return k(i).immediateStopped; } n$1(Ds, "isStopped"); function $s(i, o2) { k(i).eventPhase = o2; } n$1($s, "setEventPhase"); function Ms(i, o2) { k(i).currentTarget = o2; } n$1(Ms, "setCurrentTarget"); function Vo(i, o2) { k(i).passiveListener = o2; } n$1(Vo, "setPassiveListener"); const Qo = /* @__PURE__ */ new WeakMap(), Yo = 1, Go = 2, tr = 3; function rr(i) { return i !== null && typeof i == "object"; } n$1(rr, "isObject"); function bt$1(i) { const o2 = Qo.get(i); if (o2 == null) throw new TypeError("'this' is expected an EventTarget object, but got another value."); return o2; } n$1(bt$1, "getListeners"); function Us(i) { return { get() { let a = bt$1(this).get(i); for (; a != null; ) { if (a.listenerType === tr) return a.listener; a = a.next; } return null; }, set(o2) { typeof o2 != "function" && !rr(o2) && (o2 = null); const a = bt$1(this); let l = null, u = a.get(i); for (; u != null; ) u.listenerType === tr ? l !== null ? l.next = u.next : u.next !== null ? a.set(i, u.next) : a.delete(i) : l = u, u = u.next; if (o2 !== null) { const m = { listener: o2, listenerType: tr, passive: false, once: false, next: null }; l === null ? a.set(i, m) : l.next = m; } }, configurable: true, enumerable: true }; } n$1(Us, "defineEventAttributeDescriptor"); function Zo(i, o2) { Object.defineProperty(i, `on${o2}`, Us(o2)); } n$1(Zo, "defineEventAttribute"); function Ko(i) { function o2() { pe.call(this); } n$1(o2, "CustomEventTarget"), o2.prototype = Object.create(pe.prototype, { constructor: { value: o2, configurable: true, writable: true } }); for (let a = 0; a < i.length; ++a) Zo(o2.prototype, i[a]); return o2; } n$1(Ko, "defineCustomEventTarget"); function pe() { if (this instanceof pe) { Qo.set(this, /* @__PURE__ */ new Map()); return; } if (arguments.length === 1 && Array.isArray(arguments[0])) return Ko(arguments[0]); if (arguments.length > 0) { const i = new Array(arguments.length); for (let o2 = 0; o2 < arguments.length; ++o2) i[o2] = arguments[o2]; return Ko(i); } throw new TypeError("Cannot call a class as a function"); } n$1(pe, "EventTarget"), pe.prototype = { addEventListener(i, o2, a) { if (o2 == null) return; if (typeof o2 != "function" && !rr(o2)) throw new TypeError("'listener' should be a function or an object."); const l = bt$1(this), u = rr(a), h2 = (u ? !!a.capture : !!a) ? Yo : Go, S = { listener: o2, listenerType: h2, passive: u && !!a.passive, once: u && !!a.once, next: null }; let E2 = l.get(i); if (E2 === void 0) { l.set(i, S); return; } let w = null; for (; E2 != null; ) { if (E2.listener === o2 && E2.listenerType === h2) return; w = E2, E2 = E2.next; } w.next = S; }, removeEventListener(i, o2, a) { if (o2 == null) return; const l = bt$1(this), m = (rr(a) ? !!a.capture : !!a) ? Yo : Go; let h2 = null, S = l.get(i); for (; S != null; ) { if (S.listener === o2 && S.listenerType === m) { h2 !== null ? h2.next = S.next : S.next !== null ? l.set(i, S.next) : l.delete(i); return; } h2 = S, S = S.next; } }, dispatchEvent(i) { if (i == null || typeof i.type != "string") throw new TypeError('"event.type" should be a string.'); const o2 = bt$1(this), a = i.type; let l = o2.get(a); if (l == null) return true; const u = Ls(this, i); let m = null; for (; l != null; ) { if (l.once ? m !== null ? m.next = l.next : l.next !== null ? o2.set(a, l.next) : o2.delete(a) : m = l, Vo(u, l.passive ? l.listener : null), typeof l.listener == "function") try { l.listener.call(this, u); } catch (h2) { typeof console < "u" && typeof console.error == "function" && console.error(h2); } else l.listenerType !== tr && typeof l.listener.handleEvent == "function" && l.listener.handleEvent(u); if (Ds(u)) break; l = l.next; } return Vo(u, null), $s(u, 0), Ms(u, null), !u.defaultPrevented; } }, Object.defineProperty(pe.prototype, "constructor", { value: pe, configurable: true, writable: true }); const _nr = class _nr extends pe { constructor() { throw super(), new TypeError("AbortSignal cannot be constructed directly"); } get aborted() { const o2 = or.get(this); if (typeof o2 != "boolean") throw new TypeError(`Expected 'this' to be an 'AbortSignal' object, but got ${this === null ? "null" : typeof this}`); return o2; } }; n$1(_nr, "AbortSignal"); let nr = _nr; Zo(nr.prototype, "abort"); function xs() { const i = Object.create(nr.prototype); return pe.call(i), or.set(i, false), i; } n$1(xs, "createAbortSignal"); function Ns(i) { or.get(i) === false && (or.set(i, true), i.dispatchEvent({ type: "abort" })); } n$1(Ns, "abortSignal"); const or = /* @__PURE__ */ new WeakMap(); Object.defineProperties(nr.prototype, { aborted: { enumerable: true } }), typeof Symbol == "function" && typeof Symbol.toStringTag == "symbol" && Object.defineProperty(nr.prototype, Symbol.toStringTag, { configurable: true, value: "AbortSignal" }); let nn$1 = (_i = class { constructor() { Jo.set(this, xs()); } get signal() { return Xo(this); } abort() { Ns(Xo(this)); } }, n$1(_i, "AbortController"), _i); const Jo = /* @__PURE__ */ new WeakMap(); function Xo(i) { const o2 = Jo.get(i); if (o2 == null) throw new TypeError(`Expected 'this' to be an 'AbortController' object, but got ${i === null ? "null" : typeof i}`); return o2; } n$1(Xo, "getSignal"), Object.defineProperties(nn$1.prototype, { signal: { enumerable: true }, abort: { enumerable: true } }), typeof Symbol == "function" && typeof Symbol.toStringTag == "symbol" && Object.defineProperty(nn$1.prototype, Symbol.toStringTag, { configurable: true, value: "AbortController" }); var Hs = Object.defineProperty, Vs = n$1((i, o2) => Hs(i, "name", { value: o2, configurable: true }), "e"); const ei = Mo; ti(); function ti() { var _a2, _b2, _c2, _d2; !((_b2 = (_a2 = globalThis.process) == null ? void 0 : _a2.versions) == null ? void 0 : _b2.node) && !((_d2 = (_c2 = globalThis.process) == null ? void 0 : _c2.env) == null ? void 0 : _d2.DISABLE_NODE_FETCH_NATIVE_WARN) && console.warn("[node-fetch-native] Node.js compatible build of `node-fetch-native` is being used in a non-Node.js environment. Please make sure you are using proper export conditions or report this issue to https://github.com/unjs/node-fetch-native. You can set `process.env.DISABLE_NODE_FETCH_NATIVE_WARN` to disable this warning."); } n$1(ti, "s"), Vs(ti, "checkNodeEnvironment"); const o = !!((_k = (_j = globalThis.process) == null ? void 0 : _j.env) == null ? void 0 : _k.FORCE_NODE_FETCH), r = !o && globalThis.fetch || ei, n = !o && globalThis.Headers || ae, T = !o && globalThis.AbortController || nn$1; const suspectProtoRx = /"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/; const suspectConstructorRx = /"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/; const JsonSigRx = /^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/; function jsonParseTransform(key, value) { if (key === "__proto__" || key === "constructor" && value && typeof value === "object" && "prototype" in value) { warnKeyDropped(key); return; } return value; } function warnKeyDropped(key) { console.warn(`[destr] Dropping "${key}" key to prevent prototype pollution.`); } function destr(value, options = {}) { if (typeof value !== "string") { return value; } const _value = value.trim(); if ( // eslint-disable-next-line unicorn/prefer-at value[0] === '"' && value.endsWith('"') && !value.includes("\\") ) { return _value.slice(1, -1); } if (_value.length <= 9) { const _lval = _value.toLowerCase(); if (_lval === "true") { return true; } if (_lval === "false") { return false; } if (_lval === "undefined") { return void 0; } if (_lval === "null") { return null; } if (_lval === "nan") { return Number.NaN; } if (_lval === "infinity") { return Number.POSITIVE_INFINITY; } if (_lval === "-infinity") { return Number.NEGATIVE_INFINITY; } } if (!JsonSigRx.test(value)) { if (options.strict) { throw new SyntaxError("[destr] Invalid JSON"); } return value; } try { if (suspectProtoRx.test(value) || suspectConstructorRx.test(value)) { if (options.strict) { throw new Error("[destr] Possible prototype pollution"); } return JSON.parse(value, jsonParseTransform); } return JSON.parse(value); } catch (error) { if (options.strict) { throw error; } return value; } } const HASH_RE = /#/g; const AMPERSAND_RE = /&/g; const SLASH_RE = /\//g; const EQUAL_RE = /=/g; const PLUS_RE = /\+/g; const ENC_CARET_RE = /%5e/gi; const ENC_BACKTICK_RE = /%60/gi; const ENC_PIPE_RE = /%7c/gi; const ENC_SPACE_RE = /%20/gi; function encode(text) { return encodeURI("" + text).replace(ENC_PIPE_RE, "|"); } function encodeQueryValue(input) { return encode(typeof input === "string" ? input : JSON.stringify(input)).replace(PLUS_RE, "%2B").replace(ENC_SPACE_RE, "+").replace(HASH_RE, "%23").replace(AMPERSAND_RE, "%26").replace(ENC_BACKTICK_RE, "`").replace(ENC_CARET_RE, "^").replace(SLASH_RE, "%2F"); } function encodeQueryKey(text) { return encodeQueryValue(text).replace(EQUAL_RE, "%3D"); } function decode(text = "") { try { return decodeURIComponent("" + text); } catch { return "" + text; } } function decodeQueryKey(text) { return decode(text.replace(PLUS_RE, " ")); } function decodeQueryValue(text) { return decode(text.replace(PLUS_RE, " ")); } function parseQuery(parametersString = "") { const object = {}; if (parametersString[0] === "?") { parametersString = parametersString.slice(1); } for (const parameter of parametersString.split("&")) { const s = parameter.match(/([^=]+)=?(.*)/) || []; if (s.length < 2) { continue; } const key = decodeQueryKey(s[1]); if (key === "__proto__" || key === "constructor") { continue; } const value = decodeQueryValue(s[2] || ""); if (object[key] === void 0) { object[key] = value; } else if (Array.isArray(object[key])) { object[key].push(value); } else { object[key] = [object[key], value]; } } return object; } function encodeQueryItem(key, value) { if (typeof value === "number" || typeof value === "boolean") { value = String(value); } if (!value) { return encodeQueryKey(key); } if (Array.isArray(value)) { return value.map((_value) => `${encodeQueryKey(key)}=${encodeQueryValue(_value)}`).join("&"); } return `${encodeQueryKey(key)}=${encodeQueryValue(value)}`; } function stringifyQuery(query) { return Object.keys(query).filter((k2) => query[k2] !== void 0).map((k2) => encodeQueryItem(k2, query[k2])).filter(Boolean).join("&"); } const PROTOCOL_STRICT_REGEX = /^[\s\w\0+.-]{2,}:([/\\]{1,2})/; const PROTOCOL_REGEX = /^[\s\w\0+.-]{2,}:([/\\]{2})?/; const PROTOCOL_RELATIVE_REGEX = /^([/\\]\s*){2,}[^/\\]/; const PROTOCOL_SCRIPT_RE = /^[\s\0]*(blob|data|javascript|vbscript):$/i; const TRAILING_SLASH_RE = /\/$|\/\?|\/#/; const JOIN_LEADING_SLASH_RE = /^\.?\//; function hasProtocol(inputString, opts = {}) { if (typeof opts === "boolean") { opts = { acceptRelative: opts }; } if (opts.strict) { return PROTOCOL_STRICT_REGEX.test(inputString); } return PROTOCOL_REGEX.test(inputString) || (opts.acceptRelative ? PROTOCOL_RELATIVE_REGEX.test(inputString) : false); } function isScriptProtocol(protocol) { return !!protocol && PROTOCOL_SCRIPT_RE.test(protocol); } function hasTrailingSlash(input = "", respectQueryAndFragment) { if (!respectQueryAndFragment) { return input.endsWith("/"); } return TRAILING_SLASH_RE.test(input); } function withoutTrailingSlash(input = "", respectQueryAndFragment) { if (!respectQueryAndFragment) { return (hasTrailingSlash(input) ? input.slice(0, -1) : input) || "/"; } if (!hasTrailingSlash(input, true)) { return input || "/"; } let path = input; let fragment = ""; const fragmentIndex = input.indexOf("#"); if (fragmentIndex >= 0) { path = input.slice(0, fragmentIndex); fragment = input.slice(fragmentIndex); } const [s0, ...s] = path.split("?"); const cleanPath = s0.endsWith("/") ? s0.slice(0, -1) : s0; return (cleanPath || "/") + (s.length > 0 ? `?${s.join("?")}` : "") + fragment; } function withTrailingSlash(input = "", respectQueryAndFragment) { if (!respectQueryAndFragment) { return input.endsWith("/") ? input : input + "/"; } if (hasTrailingSlash(input, true)) { return input || "/"; } let path = input; let fragment = ""; const fragmentIndex = input.indexOf("#"); if (fragmentIndex >= 0) { path = input.slice(0, fragmentIndex); fragment = input.slice(fragmentIndex); if (!path) { return fragment; } } const [s0, ...s] = path.split("?"); return s0 + "/" + (s.length > 0 ? `?${s.join("?")}` : "") + fragment; } function hasLeadingSlash(input = "") { return input.startsWith("/"); } function withLeadingSlash(input = "") { return hasLeadingSlash(input) ? input : "/" + input; } function withBase(input, base) { if (isEmptyURL(base) || hasProtocol(input)) { return input; } const _base = withoutTrailingSlash(base); if (input.startsWith(_base)) { return input; } return joinURL(_base, input); } function withQuery(input, query) { const parsed = parseURL(input); const mergedQuery = { ...parseQuery(parsed.search), ...query }; parsed.search = stringifyQuery(mergedQuery); return stringifyParsedURL(parsed); } function isEmptyURL(url) { return !url || url === "/"; } function isNonEmptyURL(url) { return url && url !== "/"; } function joinURL(base, ...input) { let url = base || ""; for (const segment of input.filter((url2) => isNonEmptyURL(url2))) { if (url) { const _segment = segment.replace(JOIN_LEADING_SLASH_RE, ""); url = withTrailingSlash(url) + _segment; } else { url = segment; } } return url; } function isEqual(a, b, options = {}) { if (!options.trailingSlash) { a = withTrailingSlash(a); b = withTrailingSlash(b); } if (!options.leadingSlash) { a = withLeadingSlash(a); b = withLeadingSlash(b); } if (!options.encoding) { a = decode(a); b = decode(b); } return a === b; } const protocolRelative = Symbol.for("ufo:protocolRelative"); function parseURL(input = "", defaultProto) { const _specialProtoMatch = input.match( /^[\s\0]*(blob:|data:|javascript:|vbscript:)(.*)/i ); if (_specialProtoMatch) { const [, _proto, _pathname = ""] = _specialProtoMatch; return { protocol: _proto.toLowerCase(), pathname: _pathname, href: _proto + _pathname, auth: "", host: "", search: "", hash: "" }; } if (!hasProtocol(input, { acceptRelative: true })) { return parsePath(input); } const [, protocol = "", auth, hostAndPath = ""] = input.replace(/\\/g, "/").match(/^[\s\0]*([\w+.-]{2,}:)?\/\/([^/@]+@)?(.*)/) || []; let [, host = "", path = ""] = hostAndPath.match(/([^#/?]*)(.*)?/) || []; if (protocol === "file:") { path = path.replace(/\/(?=[A-Za-z]:)/, ""); } const { pathname, search, hash } = parsePath(path); return { protocol: protocol.toLowerCase(), auth: auth ? auth.slice(0, Math.max(0, auth.length - 1)) : "", host, pathname, search, hash, [protocolRelative]: !protocol }; } function parsePath(input = "") { const [pathname = "", search = "", hash = ""] = (input.match(/([^#?]*)(\?[^#]*)?(#.*)?/) || []).splice(1); return { pathname, search, hash }; } function stringifyParsedURL(parsed) { const pathname = parsed.pathname || ""; const search = parsed.search ? (parsed.search.startsWith("?") ? "" : "?") + parsed.search : ""; const hash = parsed.hash || ""; const auth = parsed.auth ? parsed.auth + "@" : ""; const host = parsed.host || ""; const proto = parsed.protocol || parsed[protocolRelative] ? (parsed.protocol || "") + "//" : ""; return proto + auth + host + pathname + search + hash; } class FetchError extends Error { constructor(message2, opts) { super(message2, opts); this.name = "FetchError"; if ((opts == null ? void 0 : opts.cause) && !this.cause) { this.cause = opts.cause; } } } function createFetchError(ctx) { var _a2, _b2, _c2, _d2, _e6; const errorMessage = ((_a2 = ctx.error) == null ? void 0 : _a2.message) || ((_b2 = ctx.error) == null ? void 0 : _b2.toString()) || ""; const method = ((_c2 = ctx.request) == null ? void 0 : _c2.method) || ((_d2 = ctx.options) == null ? void 0 : _d2.method) || "GET"; const url = ((_e6 = ctx.request) == null ? void 0 : _e6.url) || String(ctx.request) || "/"; const requestStr = `[${method}] ${JSON.stringify(url)}`; const statusStr = ctx.response ? `${ctx.response.status} ${ctx.response.statusText}` : ""; const message2 = `${requestStr}: ${statusStr}${errorMessage ? ` ${errorMessage}` : ""}`; const fetchError = new FetchError( message2, ctx.error ? { cause: ctx.error } : void 0 ); for (const key of ["request", "options", "response"]) { Object.defineProperty(fetchError, key, { get() { return ctx[key]; } }); } for (const [key, refKey] of [ ["data", "_data"], ["status", "status"], ["statusCode", "status"], ["statusText", "statusText"], ["statusMessage", "statusText"] ]) { Object.defineProperty(fetchError, key, { get() { return ctx.response && ctx.response[refKey]; } }); } return fetchError; } const payloadMethods = new Set( Object.freeze(["PATCH", "POST", "PUT", "DELETE"]) ); function isPayloadMethod(method = "GET") { return payloadMethods.has(method.toUpperCase()); } function isJSONSerializable(value) { if (value === void 0) { return false; } const t2 = typeof value; if (t2 === "string" || t2 === "number" || t2 === "boolean" || t2 === null) { return true; } if (t2 !== "object") { return false; } if (Array.isArray(value)) { return true; } if (value.buffer) { return false; } return value.constructor && value.constructor.name === "Object" || typeof value.toJSON === "function"; } const textTypes = /* @__PURE__ */ new Set([ "image/svg", "application/xml", "application/xhtml", "application/html" ]); const JSON_RE = /^application\/(?:[\w!#$%&*.^`~-]*\+)?json(;.+)?$/i; function detectResponseType(_contentType = "") { if (!_contentType) { return "json"; } const contentType = _contentType.split(";").shift() || ""; if (JSON_RE.test(contentType)) { return "json"; } if (textTypes.has(contentType) || contentType.startsWith("text/")) { return "text"; } return "blob"; } function resolveFetchOptions(request, input, defaults, Headers2) { const headers = mergeHeaders( (input == null ? void 0 : input.headers) ?? (request == null ? void 0 : request.headers), defaults == null ? void 0 : defaults.headers, Headers2 ); let query; if ((defaults == null ? void 0 : defaults.query) || (defaults == null ? void 0 : defaults.params) || (input == null ? void 0 : input.params) || (input == null ? void 0 : input.query)) { query = { ...defaults == null ? void 0 : defaults.params, ...defaults == null ? void 0 : defaults.query, ...input == null ? void 0 : input.params, ...input == null ? void 0 : input.query }; } return { ...defaults, ...input, query, params: query, headers }; } function mergeHeaders(input, defaults, Headers2) { if (!defaults) { return new Headers2(input); } const headers = new Headers2(defaults); if (input) { for (const [key, value] of Symbol.iterator in input || Array.isArray(input) ? input : new Headers2(input)) { headers.set(key, value); } } return headers; } async function callHooks(context, hooks) { if (hooks) { if (Array.isArray(hooks)) { for (const hook of hooks) { await hook(context); } } else { await hooks(context); } } } const retryStatusCodes = /* @__PURE__ */ new Set([ 408, // Request Timeout 409, // Conflict 425, // Too Early (Experimental) 429, // Too Many Requests 500, // Internal Server Error 502, // Bad Gateway 503, // Service Unavailable 504 // Gateway Timeout ]); const nullBodyResponses = /* @__PURE__ */ new Set([101, 204, 205, 304]); function createFetch(globalOptions = {}) { const { fetch: fetch2 = globalThis.fetch, Headers: Headers2 = globalThis.Headers, AbortController: AbortController2 = globalThis.AbortController } = globalOptions; async function onError(context) { const isAbort = context.error && context.error.name === "AbortError" && !context.options.timeout || false; if (context.options.retry !== false && !isAbort) { let retries; if (typeof context.options.retry === "number") { retries = context.options.retry; } else { retries = isPayloadMethod(context.options.method) ? 0 : 1; } const responseCode = context.response && context.response.status || 500; if (retries > 0 && (Array.isArray(context.options.retryStatusCodes) ? context.options.retryStatusCodes.includes(responseCode) : retryStatusCodes.has(responseCode))) { const retryDelay = typeof context.options.retryDelay === "function" ? context.options.retryDelay(context) : context.options.retryDelay || 0; if (retryDelay > 0) { await new Promise((resolve) => setTimeout(resolve, retryDelay)); } return $fetchRaw(context.request, { ...context.options, retry: retries - 1 }); } } const error = createFetchError(context); if (Error.captureStackTrace) { Error.captureStackTrace(error, $fetchRaw); } throw error; } const $fetchRaw = async function $fetchRaw2(_request, _options = {}) { const context = { request: _request, options: resolveFetchOptions( _request, _options, globalOptions.defaults, Headers2 ), response: void 0, error: void 0 }; if (context.options.method) { context.options.method = context.options.method.toUpperCase(); } if (context.options.onRequest) { await callHooks(context, context.options.onRequest); } if (typeof context.request === "string") { if (context.options.baseURL) { context.request = withBase(context.request, context.options.baseURL); } if (context.options.query) { context.request = withQuery(context.request, context.options.query); delete context.options.query; } if ("query" in context.options) { delete context.options.query; } if ("params" in context.options) { delete context.options.params; } } if (context.options.body && isPayloadMethod(context.options.method)) { if (isJSONSerializable(context.options.body)) { context.options.body = typeof context.options.body === "string" ? context.options.body : JSON.stringify(context.options.body); context.options.headers = new Headers2(context.options.headers || {}); if (!context.options.headers.has("content-type")) { context.options.headers.set("content-type", "application/json"); } if (!context.options.headers.has("accept")) { context.options.headers.set("accept", "application/json"); } } else if ( // ReadableStream Body "pipeTo" in context.options.body && typeof context.options.body.pipeTo === "function" || // Node.js Stream Body typeof context.options.body.pipe === "function" ) { if (!("duplex" in context.options)) { context.options.duplex = "half"; } } } let abortTimeout; if (!context.options.signal && context.options.timeout) { const controller = new AbortController2(); abortTimeout = setTimeout(() => { const error = new Error( "[TimeoutError]: The operation was aborted due to timeout" ); error.name = "TimeoutError"; error.code = 23; controller.abort(error); }, context.options.timeout); context.options.signal = controller.signal; } try { context.response = await fetch2( context.request, context.options ); } catch (error) { context.error = error; if (context.options.onRequestError) { await callHooks( context, context.options.onRequestError ); } return await onError(context); } finally { if (abortTimeout) { clearTimeout(abortTimeout); } } const hasBody = (context.response.body || // https://github.com/unjs/ofetch/issues/324 // https://github.com/unjs/ofetch/issues/294 // https://github.com/JakeChampion/fetch/issues/1454 context.response._bodyInit) && !nullBodyResponses.has(context.response.status) && context.options.method !== "HEAD"; if (hasBody) { const responseType = (context.options.parseResponse ? "json" : context.options.responseType) || detectResponseType(context.response.headers.get("content-type") || ""); switch (responseType) { case "json": { const data = await context.response.text(); const parseFunction = context.options.parseResponse || destr; context.response._data = parseFunction(data); break; } case "stream": { context.response._data = context.response.body || context.response._bodyInit; break; } default: { context.response._data = await context.response[responseType](); } } } if (context.options.onResponse) { await callHooks( context, context.options.onResponse ); } if (!context.options.ignoreResponseError && context.response.status >= 400 && context.response.status < 600) { if (context.options.onResponseError) { await callHooks( context, context.options.onResponseError ); } return await onError(context); } return context.response; }; const $fetch2 = async function $fetch22(request, options) { const r2 = await $fetchRaw(request, options); return r2._data; }; $fetch2.raw = $fetchRaw; $fetch2.native = (...args) => fetch2(...args); $fetch2.create = (defaultOptions = {}, customGlobalOptions = {}) => createFetch({ ...globalOptions, ...customGlobalOptions, defaults: { ...globalOptions.defaults, ...customGlobalOptions.defaults, ...defaultOptions } }); return $fetch2; } function createNodeFetch() { const useKeepAlive = JSON.parse(process.env.FETCH_KEEP_ALIVE || "false"); if (!useKeepAlive) { return r; } const agentOptions = { keepAlive: true }; const httpAgent = new ft$1.Agent(agentOptions); const httpsAgent = new Qa.Agent(agentOptions); const nodeFetchOptions = { agent(parsedURL) { return parsedURL.protocol === "http:" ? httpAgent : httpsAgent; } }; return function nodeFetchWithKeepAlive(input, init) { return r(input, { ...nodeFetchOptions, ...init }); }; } const fetch = globalThis.fetch ? (...args) => globalThis.fetch(...args) : createNodeFetch(); const Headers = globalThis.Headers || n; const AbortController$1 = globalThis.AbortController || T; const ofetch = createFetch({ fetch, Headers, AbortController: AbortController$1 }); const $fetch = ofetch; if (!globalThis.$fetch) { globalThis.$fetch = $fetch.create({ baseURL: baseURL() }); } const nuxtLinkDefaults = { "componentName": "NuxtLink" }; const appId = "nuxt-app"; function getNuxtAppCtx(id = appId) { return getContext(id, { asyncContext: false }); } const NuxtPluginIndicator = "__nuxt_plugin"; function createNuxtApp(options) { var _a2; let hydratingCount = 0; const nuxtApp = { _id: options.id || appId || "nuxt-app", _scope: effectScope(), provide: void 0, globalName: "nuxt", versions: { get nuxt() { return "3.16.0"; }, get vue() { return nuxtApp.vueApp.version; } }, payload: shallowReactive({ ...((_a2 = options.ssrContext) == null ? void 0 : _a2.payload) || {}, data: shallowReactive({}), state: reactive({}), once: /* @__PURE__ */ new Set(), _errors: shallowReactive({}) }), static: { data: {} }, runWithContext(fn2) { if (nuxtApp._scope.active && !getCurrentScope()) { return nuxtApp._scope.run(() => callWithNuxt(nuxtApp, fn2)); } return callWithNuxt(nuxtApp, fn2); }, isHydrating: false, deferHydration() { if (!nuxtApp.isHydrating) { return () => { }; } hydratingCount++; let called = false; return () => { if (called) { return; } called = true; hydratingCount--; if (hydratingCount === 0) { nuxtApp.isHydrating = false; return nuxtApp.callHook("app:suspense:resolve"); } }; }, _asyncDataPromises: {}, _asyncData: shallowReactive({}), _payloadRevivers: {}, ...options }; { nuxtApp.payload.serverRendered = true; } if (nuxtApp.ssrContext) { nuxtApp.payload.path = nuxtApp.ssrContext.url; nuxtApp.ssrContext.nuxt = nuxtApp; nuxtApp.ssrContext.payload = nuxtApp.payload; nuxtApp.ssrContext.config = { public: nuxtApp.ssrContext.runtimeConfig.public, app: nuxtApp.ssrContext.runtimeConfig.app }; } nuxtApp.hooks = createHooks(); nuxtApp.hook = nuxtApp.hooks.hook; { const contextCaller = async function(hooks, args) { for (const hook of hooks) { await nuxtApp.runWithContext(() => hook(...args)); } }; nuxtApp.hooks.callHook = (name, ...args) => nuxtApp.hooks.callHookWith(contextCaller, name, ...args); } nuxtApp.callHook = nuxtApp.hooks.callHook; nuxtApp.provide = (name, value) => { const $name = "$" + name; defineGetter(nuxtApp, $name, value); defineGetter(nuxtApp.vueApp.config.globalProperties, $name, value); }; defineGetter(nuxtApp.vueApp, "$nuxt", nuxtApp); defineGetter(nuxtApp.vueApp.config.globalProperties, "$nuxt", nuxtApp); const runtimeConfig = options.ssrContext.runtimeConfig; nuxtApp.provide("config", runtimeConfig); return nuxtApp; } function registerPluginHooks(nuxtApp, plugin) { if (plugin.hooks) { nuxtApp.hooks.addHooks(plugin.hooks); } } async function applyPlugin(nuxtApp, plugin) { if (typeof plugin === "function") { const { provide: provide2 } = await nuxtApp.runWithContext(() => plugin(nuxtApp)) || {}; if (provide2 && typeof provide2 === "object") { for (const key in provide2) { nuxtApp.provide(key, provide2[key]); } } } } async function applyPlugins(nuxtApp, plugins2) { var _a2, _b2, _c2, _d2; const resolvedPlugins = []; const unresolvedPlugins = []; const parallels = []; const errors = []; let promiseDepth = 0; async function executePlugin(plugin) { var _a3; const unresolvedPluginsForThisPlugin = ((_a3 = plugin.dependsOn) == null ? void 0 : _a3.filter((name) => plugins2.some((p) => p._name === name) && !resolvedPlugins.includes(name))) ?? []; if (unresolvedPluginsForThisPlugin.length > 0) { unresolvedPlugins.push([new Set(unresolvedPluginsForThisPlugin), plugin]); } else { const promise = applyPlugin(nuxtApp, plugin).then(async () => { if (plugin._name) { resolvedPlugins.push(plugin._name); await Promise.all(unresolvedPlugins.map(async ([dependsOn, unexecutedPlugin]) => { if (dependsOn.has(plugin._name)) { dependsOn.delete(plugin._name); if (dependsOn.size === 0) { promiseDepth++; await executePlugin(unexecutedPlugin); } } })); } }); if (plugin.parallel) { parallels.push(promise.catch((e) => errors.push(e))); } else { await promise; } } } for (const plugin of plugins2) { if (((_a2 = nuxtApp.ssrContext) == null ? void 0 : _a2.islandContext) && ((_b2 = plugin.env) == null ? void 0 : _b2.islands) === false) { continue; } registerPluginHooks(nuxtApp, plugin); } for (const plugin of plugins2) { if (((_c2 = nuxtApp.ssrContext) == null ? void 0 : _c2.islandContext) && ((_d2 = plugin.env) == null ? void 0 : _d2.islands) === false) { continue; } await executePlugin(plugin); } await Promise.all(parallels); if (promiseDepth) { for (let i = 0; i < promiseDepth; i++) { await Promise.all(parallels); } } if (errors.length) { throw errors[0]; } } // @__NO_SIDE_EFFECTS__ function defineNuxtPlugin(plugin) { if (typeof plugin === "function") { return plugin; } const _name = plugin._name || plugin.name; delete plugin.name; return Object.assign(plugin.setup || (() => { }), plugin, { [NuxtPluginIndicator]: true, _name }); } function callWithNuxt(nuxt, setup, args) { const fn2 = () => setup(); const nuxtAppCtx = getNuxtAppCtx(nuxt._id); { return nuxt.vueApp.runWithContext(() => nuxtAppCtx.callAsync(nuxt, fn2)); } } function tryUseNuxtApp(id) { var _a2; let nuxtAppInstance; if (hasInjectionContext()) { nuxtAppInstance = (_a2 = getCurrentInstance()) == null ? void 0 : _a2.appContext.app.$nuxt; } nuxtAppInstance || (nuxtAppInstance = getNuxtAppCtx(id).tryUse()); return nuxtAppInstance || null; } function useNuxtApp(id) { const nuxtAppInstance = tryUseNuxtApp(id); if (!nuxtAppInstance) { { throw new Error("[nuxt] instance unavailable"); } } return nuxtAppInstance; } // @__NO_SIDE_EFFECTS__ function useRuntimeConfig(_event2) { return useNuxtApp().$config; } function defineGetter(obj, key, val) { Object.defineProperty(obj, key, { get: () => val }); } const PageRouteSymbol = Symbol("route"); const useRouter = () => { var _a2; return (_a2 = useNuxtApp()) == null ? void 0 : _a2.$router; }; const useRoute = () => { if (hasInjectionContext()) { return inject(PageRouteSymbol, useNuxtApp()._route); } return useNuxtApp()._route; }; // @__NO_SIDE_EFFECTS__ function defineNuxtRouteMiddleware(middleware) { return middleware; } const isProcessingMiddleware = () => { try { if (useNuxtApp()._processingMiddleware) { return true; } } catch { return false; } return false; }; const URL_QUOTE_RE = /"/g; const navigateTo = (to, options) => { to || (to = "/"); const toPath = typeof to === "string" ? to : "path" in to ? resolveRouteObject(to) : useRouter().resolve(to).href; const isExternalHost = hasProtocol(toPath, { acceptRelative: true }); const isExternal = (options == null ? void 0 : options.external) || isExternalHost; if (isExternal) { if (!(options == null ? void 0 : options.external)) { throw new Error("Navigating to an external URL is not allowed by default. Use `navigateTo(url, { external: true })`."); } const { protocol } = new URL(toPath, "http://localhost"); if (protocol && isScriptProtocol(protocol)) { throw new Error(`Cannot navigate to a URL with '${protocol}' protocol.`); } } const inMiddleware = isProcessingMiddleware(); const router = useRouter(); const nuxtApp = useNuxtApp(); { if (nuxtApp.ssrContext) { const fullPath = typeof to === "string" || isExternal ? toPath : router.resolve(to).fullPath || "/"; const location2 = isExternal ? toPath : joinURL((/* @__PURE__ */ useRuntimeConfig()).app.baseURL, fullPath); const redirect = async function(response) { await nuxtApp.callHook("app:redirected"); const encodedLoc = location2.replace(URL_QUOTE_RE, "%22"); const encodedHeader = encodeURL(location2, isExternalHost); nuxtApp.ssrContext._renderResponse = { statusCode: sanitizeStatusCode((options == null ? void 0 : options.redirectCode) || 302, 302), body: ``, headers: { location: encodedHeader } }; return response; }; if (!isExternal && inMiddleware) { router.afterEach((final) => final.fullPath === fullPath ? redirect(false) : void 0); return to; } return redirect(!inMiddleware ? void 0 : ( /* abort route navigation */ false )); } } if (isExternal) { nuxtApp._scope.stop(); if (options == null ? void 0 : options.replace) { (void 0).replace(toPath); } else { (void 0).href = toPath; } if (inMiddleware) { if (!nuxtApp.isHydrating) { return false; } return new Promise(() => { }); } return Promise.resolve(); } return (options == null ? void 0 : options.replace) ? router.replace(to) : router.push(to); }; function resolveRouteObject(to) { return withQuery(to.path || "", to.query || {}) + (to.hash || ""); } function encodeURL(location2, isExternalHost = false) { const url = new URL(location2, "http://localhost"); if (!isExternalHost) { return url.pathname + url.search + url.hash; } if (location2.startsWith("//")) { return url.toString().replace(url.protocol, ""); } return url.toString(); } const NUXT_ERROR_SIGNATURE = "__nuxt_error"; const useError = () => toRef(useNuxtApp().payload, "error"); const showError = (error) => { const nuxtError = createError(error); try { const nuxtApp = useNuxtApp(); const error2 = useError(); if (false) ; error2.value || (error2.value = nuxtError); } catch { throw nuxtError; } return nuxtError; }; const isNuxtError = (error) => !!error && typeof error === "object" && NUXT_ERROR_SIGNATURE in error; const createError = (error) => { const nuxtError = createError$1(error); Object.defineProperty(nuxtError, NUXT_ERROR_SIGNATURE, { value: true, configurable: false, writable: false }); return nuxtError; }; const unhead_dp1SxSKB06hYMJELWjNfMtwvJsT23iDY2Mk_6THvQzk = /* @__PURE__ */ defineNuxtPlugin({ name: "nuxt:head", enforce: "pre", setup(nuxtApp) { const head = nuxtApp.ssrContext.head; nuxtApp.vueApp.use(head); } }); function isPlainObject(value) { if (value === null || typeof value !== "object") { return false; } const prototype = Object.getPrototypeOf(value); if (prototype !== null && prototype !== Object.prototype && Object.getPrototypeOf(prototype) !== null) { return false; } if (Symbol.iterator in value) { return false; } if (Symbol.toStringTag in value) { return Object.prototype.toString.call(value) === "[object Module]"; } return true; } function _defu(baseObject, defaults, namespace = ".", merger) { if (!isPlainObject(defaults)) { return _defu(baseObject, {}, namespace); } const object = Object.assign({}, defaults); for (const key in baseObject) { if (key === "__proto__" || key === "constructor") { continue; } const value = baseObject[key]; if (value === null || value === void 0) { continue; } if (Array.isArray(value) && Array.isArray(object[key])) { object[key] = [...value, ...object[key]]; } else if (isPlainObject(value) && isPlainObject(object[key])) { object[key] = _defu( value, object[key], (namespace ? `${namespace}.` : "") + key.toString()); } else { object[key] = value; } } return object; } function createDefu(merger) { return (...arguments_) => ( // eslint-disable-next-line unicorn/no-array-reduce arguments_.reduce((p, c) => _defu(p, c, ""), {}) ); } const defu = createDefu(); async function getRouteRules(arg) { const path = typeof arg === "string" ? arg : arg.path; { useNuxtApp().ssrContext._preloadManifest = true; const _routeRulesMatcher = toRouteMatcher( createRouter({ routes: (/* @__PURE__ */ useRuntimeConfig()).nitro.routeRules }) ); return defu({}, ..._routeRulesMatcher.matchAll(path).reverse()); } } const manifest_45route_45rule = /* @__PURE__ */ defineNuxtRouteMiddleware(async (to) => { { return; } }); const globalMiddleware = [ manifest_45route_45rule ]; function getRouteFromPath(fullPath) { if (typeof fullPath === "object") { fullPath = stringifyParsedURL({ pathname: fullPath.path || "", search: stringifyQuery(fullPath.query || {}), hash: fullPath.hash || "" }); } const url = new URL(fullPath.toString(), "http://localhost"); return { path: url.pathname, fullPath, query: parseQuery(url.search), hash: url.hash, // stub properties for compat with vue-router params: {}, name: void 0, matched: [], redirectedFrom: void 0, meta: {}, href: fullPath }; } const router_zDycv0JhcQsMbxA5lqQNOFphjiM1ZIDCw2YOMH26ZzQ = /* @__PURE__ */ defineNuxtPlugin({ name: "nuxt:router", enforce: "pre", setup(nuxtApp) { const initialURL = nuxtApp.ssrContext.url; const routes = []; const hooks = { "navigate:before": [], "resolve:before": [], "navigate:after": [], "error": [] }; const registerHook = (hook, guard) => { hooks[hook].push(guard); return () => hooks[hook].splice(hooks[hook].indexOf(guard), 1); }; (/* @__PURE__ */ useRuntimeConfig()).app.baseURL; const route = reactive(getRouteFromPath(initialURL)); async function handleNavigation(url, replace) { try { const to = getRouteFromPath(url); for (const middleware of hooks["navigate:before"]) { const result = await middleware(to, route); if (result === false || result instanceof Error) { return; } if (typeof result === "string" && result.length) { return handleNavigation(result, true); } } for (const handler of hooks["resolve:before"]) { await handler(to, route); } Object.assign(route, to); if (false) ; for (const middleware of hooks["navigate:after"]) { await middleware(to, route); } } catch (err) { for (const handler of hooks.error) { await handler(err); } } } const currentRoute = computed(() => route); const router = { currentRoute, isReady: () => Promise.resolve(), // These options provide a similar API to vue-router but have no effect options: {}, install: () => Promise.resolve(), // Navigation push: (url) => handleNavigation(url), replace: (url) => handleNavigation(url), back: () => (void 0).history.go(-1), go: (delta) => (void 0).history.go(delta), forward: () => (void 0).history.go(1), // Guards beforeResolve: (guard) => registerHook("resolve:before", guard), beforeEach: (guard) => registerHook("navigate:before", guard), afterEach: (guard) => registerHook("navigate:after", guard), onError: (handler) => registerHook("error", handler), // Routes resolve: getRouteFromPath, addRoute: (parentName, route2) => { routes.push(route2); }, getRoutes: () => routes, hasRoute: (name) => routes.some((route2) => route2.name === name), removeRoute: (name) => { const index = routes.findIndex((route2) => route2.name === name); if (index !== -1) { routes.splice(index, 1); } } }; nuxtApp.vueApp.component("RouterLink", defineComponent({ functional: true, props: { to: { type: String, required: true }, custom: Boolean, replace: Boolean, // Not implemented activeClass: String, exactActiveClass: String, ariaCurrentValue: String }, setup: (props, { slots }) => { const navigate = () => handleNavigation(props.to, props.replace); return () => { var _a2; const route2 = router.resolve(props.to); return props.custom ? (_a2 = slots.default) == null ? void 0 : _a2.call(slots, { href: props.to, navigate, route: route2 }) : h("a", { href: props.to, onClick: (e) => { e.preventDefault(); return navigate(); } }, slots); }; } })); nuxtApp._route = route; nuxtApp._middleware || (nuxtApp._middleware = { global: [], named: {} }); const initialLayout = nuxtApp.payload.state._layout; nuxtApp.hooks.hookOnce("app:created", async () => { router.beforeEach(async (to, from) => { var _a2; to.meta = reactive(to.meta || {}); if (nuxtApp.isHydrating && initialLayout && !isReadonly(to.meta.layout)) { to.meta.layout = initialLayout; } nuxtApp._processingMiddleware = true; if (!((_a2 = nuxtApp.ssrContext) == null ? void 0 : _a2.islandContext)) { const middlewareEntries = /* @__PURE__ */ new Set([...globalMiddleware, ...nuxtApp._middleware.global]); { const routeRules = await nuxtApp.runWithContext(() => getRouteRules({ path: to.path })); if (routeRules.appMiddleware) { for (const key in routeRules.appMiddleware) { const guard = nuxtApp._middleware.named[key]; if (!guard) { return; } if (routeRules.appMiddleware[key]) { middlewareEntries.add(guard); } else { middlewareEntries.delete(guard); } } } } for (const middleware of middlewareEntries) { const result = await nuxtApp.runWithContext(() => middleware(to, from)); { if (result === false || result instanceof Error) { const error = result || createError$1({ statusCode: 404, statusMessage: `Page Not Found: ${initialURL}`, data: { path: initialURL } }); delete nuxtApp._processingMiddleware; return nuxtApp.runWithContext(() => showError(error)); } } if (result === true) { continue; } if (result || result === false) { return result; } } } }); router.afterEach(() => { delete nuxtApp._processingMiddleware; }); await router.replace(initialURL); if (!isEqual(route.fullPath, initialURL)) { await nuxtApp.runWithContext(() => navigateTo(route.fullPath)); } }); return { provide: { route, router } }; } }); function injectHead(nuxtApp) { var _a2; const nuxt = nuxtApp || tryUseNuxtApp(); return ((_a2 = nuxt == null ? void 0 : nuxt.ssrContext) == null ? void 0 : _a2.head) || (nuxt == null ? void 0 : nuxt.runWithContext(() => { if (hasInjectionContext()) { return inject(headSymbol); } })); } function useHead(input, options = {}) { const head = injectHead(options.nuxt); if (head) { return useHead$1(input, { head, ...options }); } } function definePayloadReducer(name, reduce) { { useNuxtApp().ssrContext._payloadReducers[name] = reduce; } } const reducers = [ ["NuxtError", (data) => isNuxtError(data) && data.toJSON()], ["EmptyShallowRef", (data) => isRef(data) && isShallow(data) && !data.value && (typeof data.value === "bigint" ? "0n" : JSON.stringify(data.value) || "_")], ["EmptyRef", (data) => isRef(data) && !data.value && (typeof data.value === "bigint" ? "0n" : JSON.stringify(data.value) || "_")], ["ShallowRef", (data) => isRef(data) && isShallow(data) && data.value], ["ShallowReactive", (data) => isReactive(data) && isShallow(data) && toRaw(data)], ["Ref", (data) => isRef(data) && data.value], ["Reactive", (data) => isReactive(data) && toRaw(data)] ]; const revive_payload_server_BXtMNu_ou6aFPdlr2yij0Fh8hzak_1_swgnvOLyyoss = /* @__PURE__ */ defineNuxtPlugin({ name: "nuxt:revive-payload:server", setup() { for (const [reducer, fn2] of reducers) { definePayloadReducer(reducer, fn2); } } }); const components_plugin_z4hgvsiddfKkfXTP6M8M4zG5Cb7sGnDhcryKVM45Di4 = /* @__PURE__ */ defineNuxtPlugin({ name: "nuxt:global-components" }); const element_plus_teleports_plugin_3k7A_fjEiCzFRl6aN3qftblOS_EZCmhIb_4gXrhvbuY = /* @__PURE__ */ defineNuxtPlugin((nuxtApp) => { nuxtApp.hook("app:rendered", (ctx) => { var _a2; if ((_a2 = ctx.ssrContext) == null ? void 0 : _a2.teleports) { ctx.ssrContext.teleports = renderTeleports(ctx.ssrContext.teleports); } }); }); function renderTeleports(teleports) { const body = Object.entries(teleports).reduce((all, [key, value]) => { if (key.startsWith("#el-popper-container-") || [].includes(key)) { return `${all}
${value}
`; } return all; }, teleports.body || ""); return { ...teleports, body }; } var __defProp$9 = Object.defineProperty; var __defProps$6 = Object.defineProperties; var __getOwnPropDescs$6 = Object.getOwnPropertyDescriptors; var __getOwnPropSymbols$b = Object.getOwnPropertySymbols; var __hasOwnProp$b = Object.prototype.hasOwnProperty; var __propIsEnum$b = Object.prototype.propertyIsEnumerable; var __defNormalProp$9 = (obj, key, value) => key in obj ? __defProp$9(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; var __spreadValues$9 = (a, b) => { for (var prop in b || (b = {})) if (__hasOwnProp$b.call(b, prop)) __defNormalProp$9(a, prop, b[prop]); if (__getOwnPropSymbols$b) for (var prop of __getOwnPropSymbols$b(b)) { if (__propIsEnum$b.call(b, prop)) __defNormalProp$9(a, prop, b[prop]); } return a; }; var __spreadProps$6 = (a, b) => __defProps$6(a, __getOwnPropDescs$6(b)); function computedEager(fn2, options) { var _a2; const result = shallowRef(); watchEffect(() => { result.value = fn2(); }, __spreadProps$6(__spreadValues$9({}, options), { flush: (_a2 = void 0) != null ? _a2 : "sync" })); return readonly(result); } const isClient = false; const isString = (val) => typeof val === "string"; const noop = () => { }; function resolveUnref(r2) { return typeof r2 === "function" ? r2() : unref(r2); } function identity$1(arg) { return arg; } function tryOnScopeDispose(fn2) { if (getCurrentScope()) { onScopeDispose(fn2); return true; } return false; } function useTimeoutFn(cb, interval, options = {}) { const { immediate = true } = options; const isPending = ref(false); let timer = null; function clear() { if (timer) { clearTimeout(timer); timer = null; } } function stop() { isPending.value = false; clear(); } function start(...args) { clear(); isPending.value = true; timer = setTimeout(() => { isPending.value = false; timer = null; cb(...args); }, resolveUnref(interval)); } if (immediate) { isPending.value = true; } tryOnScopeDispose(stop); return { isPending: readonly(isPending), start, stop }; } function unrefElement(elRef) { var _a2; const plain = resolveUnref(elRef); return (_a2 = plain == null ? void 0 : plain.$el) != null ? _a2 : plain; } const defaultWindow = void 0; function useEventListener(...args) { let target; let events2; let listeners; let options; if (isString(args[0]) || Array.isArray(args[0])) { [events2, listeners, options] = args; target = defaultWindow; } else { [target, events2, listeners, options] = args; } if (!target) return noop; if (!Array.isArray(events2)) events2 = [events2]; if (!Array.isArray(listeners)) listeners = [listeners]; const cleanups = []; const cleanup = () => { cleanups.forEach((fn2) => fn2()); cleanups.length = 0; }; const register = (el, event, listener, options2) => { el.addEventListener(event, listener, options2); return () => el.removeEventListener(event, listener, options2); }; const stopWatch = watch(() => [unrefElement(target), resolveUnref(options)], ([el, options2]) => { cleanup(); if (!el) return; cleanups.push(...events2.flatMap((event) => { return listeners.map((listener) => register(el, event, listener, options2)); })); }, { immediate: true, flush: "post" }); const stop = () => { stopWatch(); cleanup(); }; tryOnScopeDispose(stop); return stop; } function onClickOutside(target, handler, options = {}) { const { window: window2 = defaultWindow, ignore = [], capture = true, detectIframe = false } = options; if (!window2) return; let shouldListen = true; const shouldIgnore = (event) => { return ignore.some((target2) => { if (typeof target2 === "string") { return Array.from(window2.document.querySelectorAll(target2)).some((el) => el === event.target || event.composedPath().includes(el)); } else { const el = unrefElement(target2); return el && (event.target === el || event.composedPath().includes(el)); } }); }; const listener = (event) => { const el = unrefElement(target); if (!el || el === event.target || event.composedPath().includes(el)) return; if (event.detail === 0) shouldListen = !shouldIgnore(event); if (!shouldListen) { shouldListen = true; return; } handler(event); }; const cleanup = [ useEventListener(window2, "click", listener, { passive: true, capture }), useEventListener(window2, "pointerdown", (e) => { const el = unrefElement(target); if (el) shouldListen = !e.composedPath().includes(el) && !shouldIgnore(e); }, { passive: true }), detectIframe && useEventListener(window2, "blur", (event) => { var _a2; const el = unrefElement(target); if (((_a2 = window2.document.activeElement) == null ? void 0 : _a2.tagName) === "IFRAME" && !(el == null ? void 0 : el.contains(window2.document.activeElement))) handler(event); }) ].filter(Boolean); const stop = () => cleanup.forEach((fn2) => fn2()); return stop; } const _global = typeof globalThis !== "undefined" ? globalThis : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {}; const globalKey = "__vueuse_ssr_handlers__"; _global[globalKey] = _global[globalKey] || {}; var SwipeDirection; (function(SwipeDirection2) { SwipeDirection2["UP"] = "UP"; SwipeDirection2["RIGHT"] = "RIGHT"; SwipeDirection2["DOWN"] = "DOWN"; SwipeDirection2["LEFT"] = "LEFT"; SwipeDirection2["NONE"] = "NONE"; })(SwipeDirection || (SwipeDirection = {})); var __defProp = Object.defineProperty; var __getOwnPropSymbols = Object.getOwnPropertySymbols; var __hasOwnProp = Object.prototype.hasOwnProperty; var __propIsEnum = Object.prototype.propertyIsEnumerable; var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; var __spreadValues = (a, b) => { for (var prop in b || (b = {})) if (__hasOwnProp.call(b, prop)) __defNormalProp(a, prop, b[prop]); if (__getOwnPropSymbols) for (var prop of __getOwnPropSymbols(b)) { if (__propIsEnum.call(b, prop)) __defNormalProp(a, prop, b[prop]); } return a; }; const _TransitionPresets = { easeInSine: [0.12, 0, 0.39, 0], easeOutSine: [0.61, 1, 0.88, 1], easeInOutSine: [0.37, 0, 0.63, 1], easeInQuad: [0.11, 0, 0.5, 0], easeOutQuad: [0.5, 1, 0.89, 1], easeInOutQuad: [0.45, 0, 0.55, 1], easeInCubic: [0.32, 0, 0.67, 0], easeOutCubic: [0.33, 1, 0.68, 1], easeInOutCubic: [0.65, 0, 0.35, 1], easeInQuart: [0.5, 0, 0.75, 0], easeOutQuart: [0.25, 1, 0.5, 1], easeInOutQuart: [0.76, 0, 0.24, 1], easeInQuint: [0.64, 0, 0.78, 0], easeOutQuint: [0.22, 1, 0.36, 1], easeInOutQuint: [0.83, 0, 0.17, 1], easeInExpo: [0.7, 0, 0.84, 0], easeOutExpo: [0.16, 1, 0.3, 1], easeInOutExpo: [0.87, 0, 0.13, 1], easeInCirc: [0.55, 0, 1, 0.45], easeOutCirc: [0, 0.55, 0.45, 1], easeInOutCirc: [0.85, 0, 0.15, 1], easeInBack: [0.36, 0, 0.66, -0.56], easeOutBack: [0.34, 1.56, 0.64, 1], easeInOutBack: [0.68, -0.6, 0.32, 1.6] }; __spreadValues({ linear: identity$1 }, _TransitionPresets); const defaultNamespace = "el"; const statePrefix = "is-"; const _bem = (namespace, block, blockSuffix, element, modifier) => { let cls = `${namespace}-${block}`; if (blockSuffix) { cls += `-${blockSuffix}`; } if (element) { cls += `__${element}`; } if (modifier) { cls += `--${modifier}`; } return cls; }; const namespaceContextKey = Symbol("namespaceContextKey"); const useGetDerivedNamespace = (namespaceOverrides) => { const derivedNamespace = getCurrentInstance() ? inject(namespaceContextKey, ref(defaultNamespace)) : ref(defaultNamespace); const namespace = computed(() => { return unref(derivedNamespace) || defaultNamespace; }); return namespace; }; const useNamespace = (block, namespaceOverrides) => { const namespace = useGetDerivedNamespace(); const b = (blockSuffix = "") => _bem(namespace.value, block, blockSuffix, "", ""); const e = (element) => element ? _bem(namespace.value, block, "", element, "") : ""; const m = (modifier) => modifier ? _bem(namespace.value, block, "", "", modifier) : ""; const be2 = (blockSuffix, element) => blockSuffix && element ? _bem(namespace.value, block, blockSuffix, element, "") : ""; const em = (element, modifier) => element && modifier ? _bem(namespace.value, block, "", element, modifier) : ""; const bm = (blockSuffix, modifier) => blockSuffix && modifier ? _bem(namespace.value, block, blockSuffix, "", modifier) : ""; const bem = (blockSuffix, element, modifier) => blockSuffix && element && modifier ? _bem(namespace.value, block, blockSuffix, element, modifier) : ""; const is2 = (name, ...args) => { const state = args.length >= 1 ? args[0] : true; return name && state ? `${statePrefix}${name}` : ""; }; const cssVar = (object) => { const styles = {}; for (const key in object) { if (object[key]) { styles[`--${namespace.value}-${key}`] = object[key]; } } return styles; }; const cssVarBlock = (object) => { const styles = {}; for (const key in object) { if (object[key]) { styles[`--${namespace.value}-${block}-${key}`] = object[key]; } } return styles; }; const cssVarName = (name) => `--${namespace.value}-${name}`; const cssVarBlockName = (name) => `--${namespace.value}-${block}-${name}`; return { namespace, b, e, m, be: be2, em, bm, bem, is: is2, cssVar, cssVarName, cssVarBlock, cssVarBlockName }; }; var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {}; var shared_cjs_prod = {}; var hasRequiredShared_cjs_prod; function requireShared_cjs_prod() { if (hasRequiredShared_cjs_prod) return shared_cjs_prod; hasRequiredShared_cjs_prod = 1; /** * @vue/shared v3.5.13 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/ Object.defineProperty(shared_cjs_prod, "__esModule", { value: true }); /*! #__NO_SIDE_EFFECTS__ */ // @__NO_SIDE_EFFECTS__ function makeMap(str) { const map = /* @__PURE__ */ Object.create(null); for (const key of str.split(",")) map[key] = 1; return (val) => val in map; } const EMPTY_OBJ = {}; const EMPTY_ARR = []; const NOOP = () => { }; const NO = () => false; const isOn = (key) => key.charCodeAt(0) === 111 && key.charCodeAt(1) === 110 && // uppercase letter (key.charCodeAt(2) > 122 || key.charCodeAt(2) < 97); const isModelListener = (key) => key.startsWith("onUpdate:"); const extend = Object.assign; const remove = (arr, el) => { const i = arr.indexOf(el); if (i > -1) { arr.splice(i, 1); } }; const hasOwnProperty2 = Object.prototype.hasOwnProperty; const hasOwn = (val, key) => hasOwnProperty2.call(val, key); const isArray2 = Array.isArray; const isMap = (val) => toTypeString(val) === "[object Map]"; const isSet = (val) => toTypeString(val) === "[object Set]"; const isDate = (val) => toTypeString(val) === "[object Date]"; const isRegExp = (val) => toTypeString(val) === "[object RegExp]"; const isFunction2 = (val) => typeof val === "function"; const isString2 = (val) => typeof val === "string"; const isSymbol2 = (val) => typeof val === "symbol"; const isObject2 = (val) => val !== null && typeof val === "object"; const isPromise = (val) => { return (isObject2(val) || isFunction2(val)) && isFunction2(val.then) && isFunction2(val.catch); }; const objectToString2 = Object.prototype.toString; const toTypeString = (value) => objectToString2.call(value); const toRawType = (value) => { return toTypeString(value).slice(8, -1); }; const isPlainObject2 = (val) => toTypeString(val) === "[object Object]"; const isIntegerKey = (key) => isString2(key) && key !== "NaN" && key[0] !== "-" && "" + parseInt(key, 10) === key; const isReservedProp = /* @__PURE__ */ makeMap( // the leading comma is intentional so empty string "" is also included ",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted" ); const isBuiltInDirective = /* @__PURE__ */ makeMap( "bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo" ); const cacheStringFunction = (fn2) => { const cache = /* @__PURE__ */ Object.create(null); return (str) => { const hit = cache[str]; return hit || (cache[str] = fn2(str)); }; }; const camelizeRE = /-(\w)/g; const camelize = cacheStringFunction( (str) => { return str.replace(camelizeRE, (_, c) => c ? c.toUpperCase() : ""); } ); const hyphenateRE = /\B([A-Z])/g; const hyphenate = cacheStringFunction( (str) => str.replace(hyphenateRE, "-$1").toLowerCase() ); const capitalize = cacheStringFunction((str) => { return str.charAt(0).toUpperCase() + str.slice(1); }); const toHandlerKey = cacheStringFunction( (str) => { const s = str ? `on${capitalize(str)}` : ``; return s; } ); const hasChanged = (value, oldValue) => !Object.is(value, oldValue); const invokeArrayFns = (fns, ...arg) => { for (let i = 0; i < fns.length; i++) { fns[i](...arg); } }; const def = (obj, key, value, writable = false) => { Object.defineProperty(obj, key, { configurable: true, enumerable: false, writable, value }); }; const looseToNumber = (val) => { const n2 = parseFloat(val); return isNaN(n2) ? val : n2; }; const toNumber = (val) => { const n2 = isString2(val) ? Number(val) : NaN; return isNaN(n2) ? val : n2; }; let _globalThis; const getGlobalThis = () => { return _globalThis || (_globalThis = typeof globalThis !== "undefined" ? globalThis : typeof self !== "undefined" ? self : typeof commonjsGlobal !== "undefined" ? commonjsGlobal : {}); }; const identRE = /^[_$a-zA-Z\xA0-\uFFFF][_$a-zA-Z0-9\xA0-\uFFFF]*$/; function genPropsAccessExp(name) { return identRE.test(name) ? `__props.${name}` : `__props[${JSON.stringify(name)}]`; } function genCacheKey(source, options) { return source + JSON.stringify( options, (_, val) => typeof val === "function" ? val.toString() : val ); } const PatchFlags2 = { "TEXT": 1, "1": "TEXT", "CLASS": 2, "2": "CLASS", "STYLE": 4, "4": "STYLE", "PROPS": 8, "8": "PROPS", "FULL_PROPS": 16, "16": "FULL_PROPS", "NEED_HYDRATION": 32, "32": "NEED_HYDRATION", "STABLE_FRAGMENT": 64, "64": "STABLE_FRAGMENT", "KEYED_FRAGMENT": 128, "128": "KEYED_FRAGMENT", "UNKEYED_FRAGMENT": 256, "256": "UNKEYED_FRAGMENT", "NEED_PATCH": 512, "512": "NEED_PATCH", "DYNAMIC_SLOTS": 1024, "1024": "DYNAMIC_SLOTS", "DEV_ROOT_FRAGMENT": 2048, "2048": "DEV_ROOT_FRAGMENT", "CACHED": -1, "-1": "CACHED", "BAIL": -2, "-2": "BAIL" }; const PatchFlagNames = { [1]: `TEXT`, [2]: `CLASS`, [4]: `STYLE`, [8]: `PROPS`, [16]: `FULL_PROPS`, [32]: `NEED_HYDRATION`, [64]: `STABLE_FRAGMENT`, [128]: `KEYED_FRAGMENT`, [256]: `UNKEYED_FRAGMENT`, [512]: `NEED_PATCH`, [1024]: `DYNAMIC_SLOTS`, [2048]: `DEV_ROOT_FRAGMENT`, [-1]: `HOISTED`, [-2]: `BAIL` }; const ShapeFlags = { "ELEMENT": 1, "1": "ELEMENT", "FUNCTIONAL_COMPONENT": 2, "2": "FUNCTIONAL_COMPONENT", "STATEFUL_COMPONENT": 4, "4": "STATEFUL_COMPONENT", "TEXT_CHILDREN": 8, "8": "TEXT_CHILDREN", "ARRAY_CHILDREN": 16, "16": "ARRAY_CHILDREN", "SLOTS_CHILDREN": 32, "32": "SLOTS_CHILDREN", "TELEPORT": 64, "64": "TELEPORT", "SUSPENSE": 128, "128": "SUSPENSE", "COMPONENT_SHOULD_KEEP_ALIVE": 256, "256": "COMPONENT_SHOULD_KEEP_ALIVE", "COMPONENT_KEPT_ALIVE": 512, "512": "COMPONENT_KEPT_ALIVE", "COMPONENT": 6, "6": "COMPONENT" }; const SlotFlags = { "STABLE": 1, "1": "STABLE", "DYNAMIC": 2, "2": "DYNAMIC", "FORWARDED": 3, "3": "FORWARDED" }; const slotFlagsText = { [1]: "STABLE", [2]: "DYNAMIC", [3]: "FORWARDED" }; const GLOBALS_ALLOWED = "Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,console,Error,Symbol"; const isGloballyAllowed = /* @__PURE__ */ makeMap(GLOBALS_ALLOWED); const isGloballyWhitelisted = isGloballyAllowed; const range = 2; function generateCodeFrame(source, start = 0, end = source.length) { start = Math.max(0, Math.min(start, source.length)); end = Math.max(0, Math.min(end, source.length)); if (start > end) return ""; let lines = source.split(/(\r?\n)/); const newlineSequences = lines.filter((_, idx) => idx % 2 === 1); lines = lines.filter((_, idx) => idx % 2 === 0); let count = 0; const res = []; for (let i = 0; i < lines.length; i++) { count += lines[i].length + (newlineSequences[i] && newlineSequences[i].length || 0); if (count >= start) { for (let j2 = i - range; j2 <= i + range || end > count; j2++) { if (j2 < 0 || j2 >= lines.length) continue; const line = j2 + 1; res.push( `${line}${" ".repeat(Math.max(3 - String(line).length, 0))}| ${lines[j2]}` ); const lineLength = lines[j2].length; const newLineSeqLength = newlineSequences[j2] && newlineSequences[j2].length || 0; if (j2 === i) { const pad = start - (count - (lineLength + newLineSeqLength)); const length = Math.max( 1, end > count ? lineLength - pad : end - start ); res.push(` | ` + " ".repeat(pad) + "^".repeat(length)); } else if (j2 > i) { if (end > count) { const length = Math.max(Math.min(end - count, lineLength), 1); res.push(` | ` + "^".repeat(length)); } count += lineLength + newLineSeqLength; } } break; } } return res.join("\n"); } function normalizeStyle2(value) { if (isArray2(value)) { const res = {}; for (let i = 0; i < value.length; i++) { const item = value[i]; const normalized = isString2(item) ? parseStringStyle(item) : normalizeStyle2(item); if (normalized) { for (const key in normalized) { res[key] = normalized[key]; } } } return res; } else if (isString2(value) || isObject2(value)) { return value; } } const listDelimiterRE = /;(?![^(]*\))/g; const propertyDelimiterRE = /:([^]+)/; const styleCommentRE = /\/\*[^]*?\*\//g; function parseStringStyle(cssText) { const ret = {}; cssText.replace(styleCommentRE, "").split(listDelimiterRE).forEach((item) => { if (item) { const tmp = item.split(propertyDelimiterRE); tmp.length > 1 && (ret[tmp[0].trim()] = tmp[1].trim()); } }); return ret; } function stringifyStyle(styles) { if (!styles) return ""; if (isString2(styles)) return styles; let ret = ""; for (const key in styles) { const value = styles[key]; if (isString2(value) || typeof value === "number") { const normalizedKey = key.startsWith(`--`) ? key : hyphenate(key); ret += `${normalizedKey}:${value};`; } } return ret; } function normalizeClass2(value) { let res = ""; if (isString2(value)) { res = value; } else if (isArray2(value)) { for (let i = 0; i < value.length; i++) { const normalized = normalizeClass2(value[i]); if (normalized) { res += normalized + " "; } } } else if (isObject2(value)) { for (const name in value) { if (value[name]) { res += name + " "; } } } return res.trim(); } function normalizeProps2(props) { if (!props) return null; let { class: klass, style } = props; if (klass && !isString2(klass)) { props.class = normalizeClass2(klass); } if (style) { props.style = normalizeStyle2(style); } return props; } const HTML_TAGS = "html,body,base,head,link,meta,style,title,address,article,aside,footer,header,hgroup,h1,h2,h3,h4,h5,h6,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,summary,template,blockquote,iframe,tfoot"; const SVG_TAGS = "svg,animate,animateMotion,animateTransform,circle,clipPath,color-profile,defs,desc,discard,ellipse,feBlend,feColorMatrix,feComponentTransfer,feComposite,feConvolveMatrix,feDiffuseLighting,feDisplacementMap,feDistantLight,feDropShadow,feFlood,feFuncA,feFuncB,feFuncG,feFuncR,feGaussianBlur,feImage,feMerge,feMergeNode,feMorphology,feOffset,fePointLight,feSpecularLighting,feSpotLight,feTile,feTurbulence,filter,foreignObject,g,hatch,hatchpath,image,line,linearGradient,marker,mask,mesh,meshgradient,meshpatch,meshrow,metadata,mpath,path,pattern,polygon,polyline,radialGradient,rect,set,solidcolor,stop,switch,symbol,text,textPath,title,tspan,unknown,use,view"; const MATH_TAGS = "annotation,annotation-xml,maction,maligngroup,malignmark,math,menclose,merror,mfenced,mfrac,mfraction,mglyph,mi,mlabeledtr,mlongdiv,mmultiscripts,mn,mo,mover,mpadded,mphantom,mprescripts,mroot,mrow,ms,mscarries,mscarry,msgroup,msline,mspace,msqrt,msrow,mstack,mstyle,msub,msubsup,msup,mtable,mtd,mtext,mtr,munder,munderover,none,semantics"; const VOID_TAGS = "area,base,br,col,embed,hr,img,input,link,meta,param,source,track,wbr"; const isHTMLTag = /* @__PURE__ */ makeMap(HTML_TAGS); const isSVGTag = /* @__PURE__ */ makeMap(SVG_TAGS); const isMathMLTag = /* @__PURE__ */ makeMap(MATH_TAGS); const isVoidTag = /* @__PURE__ */ makeMap(VOID_TAGS); const specialBooleanAttrs = `itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly`; const isSpecialBooleanAttr = /* @__PURE__ */ makeMap(specialBooleanAttrs); const isBooleanAttr = /* @__PURE__ */ makeMap( specialBooleanAttrs + `,async,autofocus,autoplay,controls,default,defer,disabled,hidden,inert,loop,open,required,reversed,scoped,seamless,checked,muted,multiple,selected` ); function includeBooleanAttr(value) { return !!value || value === ""; } const unsafeAttrCharRE = /[>/="'\u0009\u000a\u000c\u0020]/; const attrValidationCache = {}; function isSSRSafeAttrName(name) { if (attrValidationCache.hasOwnProperty(name)) { return attrValidationCache[name]; } const isUnsafe = unsafeAttrCharRE.test(name); if (isUnsafe) { console.error(`unsafe attribute name: ${name}`); } return attrValidationCache[name] = !isUnsafe; } const propsToAttrMap = { acceptCharset: "accept-charset", className: "class", htmlFor: "for", httpEquiv: "http-equiv" }; const isKnownHtmlAttr = /* @__PURE__ */ makeMap( `accept,accept-charset,accesskey,action,align,allow,alt,async,autocapitalize,autocomplete,autofocus,autoplay,background,bgcolor,border,buffered,capture,challenge,charset,checked,cite,class,code,codebase,color,cols,colspan,content,contenteditable,contextmenu,controls,coords,crossorigin,csp,data,datetime,decoding,default,defer,dir,dirname,disabled,download,draggable,dropzone,enctype,enterkeyhint,for,form,formaction,formenctype,formmethod,formnovalidate,formtarget,headers,height,hidden,high,href,hreflang,http-equiv,icon,id,importance,inert,integrity,ismap,itemprop,keytype,kind,label,lang,language,loading,list,loop,low,manifest,max,maxlength,minlength,media,min,multiple,muted,name,novalidate,open,optimum,pattern,ping,placeholder,poster,preload,radiogroup,readonly,referrerpolicy,rel,required,reversed,rows,rowspan,sandbox,scope,scoped,selected,shape,size,sizes,slot,span,spellcheck,src,srcdoc,srclang,srcset,start,step,style,summary,tabindex,target,title,translate,type,usemap,value,width,wrap` ); const isKnownSvgAttr = /* @__PURE__ */ makeMap( `xmlns,accent-height,accumulate,additive,alignment-baseline,alphabetic,amplitude,arabic-form,ascent,attributeName,attributeType,azimuth,baseFrequency,baseline-shift,baseProfile,bbox,begin,bias,by,calcMode,cap-height,class,clip,clipPathUnits,clip-path,clip-rule,color,color-interpolation,color-interpolation-filters,color-profile,color-rendering,contentScriptType,contentStyleType,crossorigin,cursor,cx,cy,d,decelerate,descent,diffuseConstant,direction,display,divisor,dominant-baseline,dur,dx,dy,edgeMode,elevation,enable-background,end,exponent,fill,fill-opacity,fill-rule,filter,filterRes,filterUnits,flood-color,flood-opacity,font-family,font-size,font-size-adjust,font-stretch,font-style,font-variant,font-weight,format,from,fr,fx,fy,g1,g2,glyph-name,glyph-orientation-horizontal,glyph-orientation-vertical,glyphRef,gradientTransform,gradientUnits,hanging,height,href,hreflang,horiz-adv-x,horiz-origin-x,id,ideographic,image-rendering,in,in2,intercept,k,k1,k2,k3,k4,kernelMatrix,kernelUnitLength,kerning,keyPoints,keySplines,keyTimes,lang,lengthAdjust,letter-spacing,lighting-color,limitingConeAngle,local,marker-end,marker-mid,marker-start,markerHeight,markerUnits,markerWidth,mask,maskContentUnits,maskUnits,mathematical,max,media,method,min,mode,name,numOctaves,offset,opacity,operator,order,orient,orientation,origin,overflow,overline-position,overline-thickness,panose-1,paint-order,path,pathLength,patternContentUnits,patternTransform,patternUnits,ping,pointer-events,points,pointsAtX,pointsAtY,pointsAtZ,preserveAlpha,preserveAspectRatio,primitiveUnits,r,radius,referrerPolicy,refX,refY,rel,rendering-intent,repeatCount,repeatDur,requiredExtensions,requiredFeatures,restart,result,rotate,rx,ry,scale,seed,shape-rendering,slope,spacing,specularConstant,specularExponent,speed,spreadMethod,startOffset,stdDeviation,stemh,stemv,stitchTiles,stop-color,stop-opacity,strikethrough-position,strikethrough-thickness,string,stroke,stroke-dasharray,stroke-dashoffset,stroke-linecap,stroke-linejoin,stroke-miterlimit,stroke-opacity,stroke-width,style,surfaceScale,systemLanguage,tabindex,tableValues,target,targetX,targetY,text-anchor,text-decoration,text-rendering,textLength,to,transform,transform-origin,type,u1,u2,underline-position,underline-thickness,unicode,unicode-bidi,unicode-range,units-per-em,v-alphabetic,v-hanging,v-ideographic,v-mathematical,values,vector-effect,version,vert-adv-y,vert-origin-x,vert-origin-y,viewBox,viewTarget,visibility,width,widths,word-spacing,writing-mode,x,x-height,x1,x2,xChannelSelector,xlink:actuate,xlink:arcrole,xlink:href,xlink:role,xlink:show,xlink:title,xlink:type,xmlns:xlink,xml:base,xml:lang,xml:space,y,y1,y2,yChannelSelector,z,zoomAndPan` ); const isKnownMathMLAttr = /* @__PURE__ */ makeMap( `accent,accentunder,actiontype,align,alignmentscope,altimg,altimg-height,altimg-valign,altimg-width,alttext,bevelled,close,columnsalign,columnlines,columnspan,denomalign,depth,dir,display,displaystyle,encoding,equalcolumns,equalrows,fence,fontstyle,fontweight,form,frame,framespacing,groupalign,height,href,id,indentalign,indentalignfirst,indentalignlast,indentshift,indentshiftfirst,indentshiftlast,indextype,justify,largetop,largeop,lquote,lspace,mathbackground,mathcolor,mathsize,mathvariant,maxsize,minlabelspacing,mode,other,overflow,position,rowalign,rowlines,rowspan,rquote,rspace,scriptlevel,scriptminsize,scriptsizemultiplier,selection,separator,separators,shift,side,src,stackalign,stretchy,subscriptshift,superscriptshift,symmetric,voffset,width,widths,xlink:href,xlink:show,xlink:type,xmlns` ); function isRenderableAttrValue(value) { if (value == null) { return false; } const type = typeof value; return type === "string" || type === "number" || type === "boolean"; } const escapeRE = /["'&<>]/; function escapeHtml(string) { const str = "" + string; const match = escapeRE.exec(str); if (!match) { return str; } let html = ""; let escaped; let index; let lastIndex = 0; for (index = match.index; index < str.length; index++) { switch (str.charCodeAt(index)) { case 34: escaped = """; break; case 38: escaped = "&"; break; case 39: escaped = "'"; break; case 60: escaped = "<"; break; case 62: escaped = ">"; break; default: continue; } if (lastIndex !== index) { html += str.slice(lastIndex, index); } lastIndex = index + 1; html += escaped; } return lastIndex !== index ? html + str.slice(lastIndex, index) : html; } const commentStripRE = /^-?>||--!>|?@[\\\]^`{|}~]/g; function getEscapedCssVarName(key, doubleEscape) { return key.replace( cssVarNameEscapeSymbolsRE, (s) => doubleEscape ? s === '"' ? '\\\\\\"' : `\\\\${s}` : `\\${s}` ); } function looseCompareArrays(a, b) { if (a.length !== b.length) return false; let equal = true; for (let i = 0; equal && i < a.length; i++) { equal = looseEqual(a[i], b[i]); } return equal; } function looseEqual(a, b) { if (a === b) return true; let aValidType = isDate(a); let bValidType = isDate(b); if (aValidType || bValidType) { return aValidType && bValidType ? a.getTime() === b.getTime() : false; } aValidType = isSymbol2(a); bValidType = isSymbol2(b); if (aValidType || bValidType) { return a === b; } aValidType = isArray2(a); bValidType = isArray2(b); if (aValidType || bValidType) { return aValidType && bValidType ? looseCompareArrays(a, b) : false; } aValidType = isObject2(a); bValidType = isObject2(b); if (aValidType || bValidType) { if (!aValidType || !bValidType) { return false; } const aKeysCount = Object.keys(a).length; const bKeysCount = Object.keys(b).length; if (aKeysCount !== bKeysCount) { return false; } for (const key in a) { const aHasKey = a.hasOwnProperty(key); const bHasKey = b.hasOwnProperty(key); if (aHasKey && !bHasKey || !aHasKey && bHasKey || !looseEqual(a[key], b[key])) { return false; } } } return String(a) === String(b); } function looseIndexOf(arr, val) { return arr.findIndex((item) => looseEqual(item, val)); } const isRef2 = (val) => { return !!(val && val["__v_isRef"] === true); }; const toDisplayString2 = (val) => { return isString2(val) ? val : val == null ? "" : isArray2(val) || isObject2(val) && (val.toString === objectToString2 || !isFunction2(val.toString)) ? isRef2(val) ? toDisplayString2(val.value) : JSON.stringify(val, replacer, 2) : String(val); }; const replacer = (_key, val) => { if (isRef2(val)) { return replacer(_key, val.value); } else if (isMap(val)) { return { [`Map(${val.size})`]: [...val.entries()].reduce( (entries, [key, val2], i) => { entries[stringifySymbol(key, i) + " =>"] = val2; return entries; }, {} ) }; } else if (isSet(val)) { return { [`Set(${val.size})`]: [...val.values()].map((v) => stringifySymbol(v)) }; } else if (isSymbol2(val)) { return stringifySymbol(val); } else if (isObject2(val) && !isArray2(val) && !isPlainObject2(val)) { return String(val); } return val; }; const stringifySymbol = (v, i = "") => { var _a2; return ( // Symbol.description in es2019+ so we need to cast here to pass // the lib: es2016 check isSymbol2(v) ? `Symbol(${(_a2 = v.description) != null ? _a2 : i})` : v ); }; shared_cjs_prod.EMPTY_ARR = EMPTY_ARR; shared_cjs_prod.EMPTY_OBJ = EMPTY_OBJ; shared_cjs_prod.NO = NO; shared_cjs_prod.NOOP = NOOP; shared_cjs_prod.PatchFlagNames = PatchFlagNames; shared_cjs_prod.PatchFlags = PatchFlags2; shared_cjs_prod.ShapeFlags = ShapeFlags; shared_cjs_prod.SlotFlags = SlotFlags; shared_cjs_prod.camelize = camelize; shared_cjs_prod.capitalize = capitalize; shared_cjs_prod.cssVarNameEscapeSymbolsRE = cssVarNameEscapeSymbolsRE; shared_cjs_prod.def = def; shared_cjs_prod.escapeHtml = escapeHtml; shared_cjs_prod.escapeHtmlComment = escapeHtmlComment; shared_cjs_prod.extend = extend; shared_cjs_prod.genCacheKey = genCacheKey; shared_cjs_prod.genPropsAccessExp = genPropsAccessExp; shared_cjs_prod.generateCodeFrame = generateCodeFrame; shared_cjs_prod.getEscapedCssVarName = getEscapedCssVarName; shared_cjs_prod.getGlobalThis = getGlobalThis; shared_cjs_prod.hasChanged = hasChanged; shared_cjs_prod.hasOwn = hasOwn; shared_cjs_prod.hyphenate = hyphenate; shared_cjs_prod.includeBooleanAttr = includeBooleanAttr; shared_cjs_prod.invokeArrayFns = invokeArrayFns; shared_cjs_prod.isArray = isArray2; shared_cjs_prod.isBooleanAttr = isBooleanAttr; shared_cjs_prod.isBuiltInDirective = isBuiltInDirective; shared_cjs_prod.isDate = isDate; shared_cjs_prod.isFunction = isFunction2; shared_cjs_prod.isGloballyAllowed = isGloballyAllowed; shared_cjs_prod.isGloballyWhitelisted = isGloballyWhitelisted; shared_cjs_prod.isHTMLTag = isHTMLTag; shared_cjs_prod.isIntegerKey = isIntegerKey; shared_cjs_prod.isKnownHtmlAttr = isKnownHtmlAttr; shared_cjs_prod.isKnownMathMLAttr = isKnownMathMLAttr; shared_cjs_prod.isKnownSvgAttr = isKnownSvgAttr; shared_cjs_prod.isMap = isMap; shared_cjs_prod.isMathMLTag = isMathMLTag; shared_cjs_prod.isModelListener = isModelListener; shared_cjs_prod.isObject = isObject2; shared_cjs_prod.isOn = isOn; shared_cjs_prod.isPlainObject = isPlainObject2; shared_cjs_prod.isPromise = isPromise; shared_cjs_prod.isRegExp = isRegExp; shared_cjs_prod.isRenderableAttrValue = isRenderableAttrValue; shared_cjs_prod.isReservedProp = isReservedProp; shared_cjs_prod.isSSRSafeAttrName = isSSRSafeAttrName; shared_cjs_prod.isSVGTag = isSVGTag; shared_cjs_prod.isSet = isSet; shared_cjs_prod.isSpecialBooleanAttr = isSpecialBooleanAttr; shared_cjs_prod.isString = isString2; shared_cjs_prod.isSymbol = isSymbol2; shared_cjs_prod.isVoidTag = isVoidTag; shared_cjs_prod.looseEqual = looseEqual; shared_cjs_prod.looseIndexOf = looseIndexOf; shared_cjs_prod.looseToNumber = looseToNumber; shared_cjs_prod.makeMap = makeMap; shared_cjs_prod.normalizeClass = normalizeClass2; shared_cjs_prod.normalizeProps = normalizeProps2; shared_cjs_prod.normalizeStyle = normalizeStyle2; shared_cjs_prod.objectToString = objectToString2; shared_cjs_prod.parseStringStyle = parseStringStyle; shared_cjs_prod.propsToAttrMap = propsToAttrMap; shared_cjs_prod.remove = remove; shared_cjs_prod.slotFlagsText = slotFlagsText; shared_cjs_prod.stringifyStyle = stringifyStyle; shared_cjs_prod.toDisplayString = toDisplayString2; shared_cjs_prod.toHandlerKey = toHandlerKey; shared_cjs_prod.toNumber = toNumber; shared_cjs_prod.toRawType = toRawType; shared_cjs_prod.toTypeString = toTypeString; return shared_cjs_prod; } var shared_cjs_prodExports = /* @__PURE__ */ requireShared_cjs_prod(); class ElementPlusError extends Error { constructor(m) { super(m); this.name = "ElementPlusError"; } } function throwError(scope, m) { throw new ElementPlusError(`[${scope}] ${m}`); } const defaultIdInjection = { prefix: Math.floor(Math.random() * 1e4), current: 0 }; const ID_INJECTION_KEY = Symbol("elIdInjection"); const useIdInjection = () => { return getCurrentInstance() ? inject(ID_INJECTION_KEY, defaultIdInjection) : defaultIdInjection; }; const useId = (deterministicId) => { const idInjection = useIdInjection(); const namespace = useGetDerivedNamespace(); const idRef = computedEager(() => unref(deterministicId) || `${namespace.value}-id-${idInjection.prefix}-${idInjection.current++}`); return idRef; }; var freeGlobal = typeof global == "object" && global && global.Object === Object && global; var freeSelf = typeof self == "object" && self && self.Object === Object && self; var root = freeGlobal || freeSelf || Function("return this")(); var Symbol$1 = root.Symbol; var objectProto$6 = Object.prototype; var hasOwnProperty$5 = objectProto$6.hasOwnProperty; var nativeObjectToString$1 = objectProto$6.toString; var symToStringTag$1 = Symbol$1 ? Symbol$1.toStringTag : void 0; function getRawTag(value) { var isOwn = hasOwnProperty$5.call(value, symToStringTag$1), tag = value[symToStringTag$1]; try { value[symToStringTag$1] = void 0; var unmasked = true; } catch (e) { } var result = nativeObjectToString$1.call(value); if (unmasked) { if (isOwn) { value[symToStringTag$1] = tag; } else { delete value[symToStringTag$1]; } } return result; } var objectProto$5 = Object.prototype; var nativeObjectToString = objectProto$5.toString; function objectToString(value) { return nativeObjectToString.call(value); } var nullTag = "[object Null]", undefinedTag = "[object Undefined]"; var symToStringTag = Symbol$1 ? Symbol$1.toStringTag : void 0; function baseGetTag(value) { if (value == null) { return value === void 0 ? undefinedTag : nullTag; } return symToStringTag && symToStringTag in Object(value) ? getRawTag(value) : objectToString(value); } function isObjectLike(value) { return value != null && typeof value == "object"; } var symbolTag = "[object Symbol]"; function isSymbol(value) { return typeof value == "symbol" || isObjectLike(value) && baseGetTag(value) == symbolTag; } function arrayMap(array, iteratee) { var index = -1, length = array == null ? 0 : array.length, result = Array(length); while (++index < length) { result[index] = iteratee(array[index], index, array); } return result; } var isArray = Array.isArray; var symbolProto = Symbol$1 ? Symbol$1.prototype : void 0, symbolToString = symbolProto ? symbolProto.toString : void 0; function baseToString(value) { if (typeof value == "string") { return value; } if (isArray(value)) { return arrayMap(value, baseToString) + ""; } if (isSymbol(value)) { return symbolToString ? symbolToString.call(value) : ""; } var result = value + ""; return result == "0" && 1 / value == -Infinity ? "-0" : result; } function isObject(value) { var type = typeof value; return value != null && (type == "object" || type == "function"); } function identity(value) { return value; } var asyncTag = "[object AsyncFunction]", funcTag = "[object Function]", genTag = "[object GeneratorFunction]", proxyTag = "[object Proxy]"; function isFunction(value) { if (!isObject(value)) { return false; } var tag = baseGetTag(value); return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag; } var coreJsData = root["__core-js_shared__"]; var maskSrcKey = function() { var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || ""); return uid ? "Symbol(src)_1." + uid : ""; }(); function isMasked(func) { return !!maskSrcKey && maskSrcKey in func; } var funcProto$1 = Function.prototype; var funcToString$1 = funcProto$1.toString; function toSource(func) { if (func != null) { try { return funcToString$1.call(func); } catch (e) { } try { return func + ""; } catch (e) { } } return ""; } var reRegExpChar = /[\\^$.*+?()[\]{}|]/g; var reIsHostCtor = /^\[object .+?Constructor\]$/; var funcProto = Function.prototype, objectProto$4 = Object.prototype; var funcToString = funcProto.toString; var hasOwnProperty$4 = objectProto$4.hasOwnProperty; var reIsNative = RegExp( "^" + funcToString.call(hasOwnProperty$4).replace(reRegExpChar, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$" ); function baseIsNative(value) { if (!isObject(value) || isMasked(value)) { return false; } var pattern = isFunction(value) ? reIsNative : reIsHostCtor; return pattern.test(toSource(value)); } function getValue(object, key) { return object == null ? void 0 : object[key]; } function getNative(object, key) { var value = getValue(object, key); return baseIsNative(value) ? value : void 0; } function apply(func, thisArg, args) { switch (args.length) { case 0: return func.call(thisArg); case 1: return func.call(thisArg, args[0]); case 2: return func.call(thisArg, args[0], args[1]); case 3: return func.call(thisArg, args[0], args[1], args[2]); } return func.apply(thisArg, args); } var HOT_COUNT = 800, HOT_SPAN = 16; var nativeNow = Date.now; function shortOut(func) { var count = 0, lastCalled = 0; return function() { var stamp = nativeNow(), remaining = HOT_SPAN - (stamp - lastCalled); lastCalled = stamp; if (remaining > 0) { if (++count >= HOT_COUNT) { return arguments[0]; } } else { count = 0; } return func.apply(void 0, arguments); }; } function constant(value) { return function() { return value; }; } var defineProperty = function() { try { var func = getNative(Object, "defineProperty"); func({}, "", {}); return func; } catch (e) { } }(); var baseSetToString = !defineProperty ? identity : function(func, string) { return defineProperty(func, "toString", { "configurable": true, "enumerable": false, "value": constant(string), "writable": true }); }; var setToString = shortOut(baseSetToString); var MAX_SAFE_INTEGER$1 = 9007199254740991; var reIsUint = /^(?:0|[1-9]\d*)$/; function isIndex(value, length) { var type = typeof value; length = length == null ? MAX_SAFE_INTEGER$1 : length; return !!length && (type == "number" || type != "symbol" && reIsUint.test(value)) && (value > -1 && value % 1 == 0 && value < length); } function baseAssignValue(object, key, value) { if (key == "__proto__" && defineProperty) { defineProperty(object, key, { "configurable": true, "enumerable": true, "value": value, "writable": true }); } else { object[key] = value; } } function eq(value, other) { return value === other || value !== value && other !== other; } var objectProto$3 = Object.prototype; var hasOwnProperty$3 = objectProto$3.hasOwnProperty; function assignValue(object, key, value) { var objValue = object[key]; if (!(hasOwnProperty$3.call(object, key) && eq(objValue, value)) || value === void 0 && !(key in object)) { baseAssignValue(object, key, value); } } var nativeMax = Math.max; function overRest(func, start, transform) { start = nativeMax(start === void 0 ? func.length - 1 : start, 0); return function() { var args = arguments, index = -1, length = nativeMax(args.length - start, 0), array = Array(length); while (++index < length) { array[index] = args[start + index]; } index = -1; var otherArgs = Array(start + 1); while (++index < start) { otherArgs[index] = args[index]; } otherArgs[start] = transform(array); return apply(func, this, otherArgs); }; } var MAX_SAFE_INTEGER = 9007199254740991; function isLength(value) { return typeof value == "number" && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER; } var argsTag = "[object Arguments]"; function baseIsArguments(value) { return isObjectLike(value) && baseGetTag(value) == argsTag; } var objectProto$2 = Object.prototype; var hasOwnProperty$2 = objectProto$2.hasOwnProperty; var propertyIsEnumerable = objectProto$2.propertyIsEnumerable; var isArguments = baseIsArguments(/* @__PURE__ */ function() { return arguments; }()) ? baseIsArguments : function(value) { return isObjectLike(value) && hasOwnProperty$2.call(value, "callee") && !propertyIsEnumerable.call(value, "callee"); }; var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, reIsPlainProp = /^\w*$/; function isKey(value, object) { if (isArray(value)) { return false; } var type = typeof value; if (type == "number" || type == "symbol" || type == "boolean" || value == null || isSymbol(value)) { return true; } return reIsPlainProp.test(value) || !reIsDeepProp.test(value) || object != null && value in Object(object); } var nativeCreate = getNative(Object, "create"); function hashClear() { this.__data__ = nativeCreate ? nativeCreate(null) : {}; this.size = 0; } function hashDelete(key) { var result = this.has(key) && delete this.__data__[key]; this.size -= result ? 1 : 0; return result; } var HASH_UNDEFINED$1 = "__lodash_hash_undefined__"; var objectProto$1 = Object.prototype; var hasOwnProperty$1 = objectProto$1.hasOwnProperty; function hashGet(key) { var data = this.__data__; if (nativeCreate) { var result = data[key]; return result === HASH_UNDEFINED$1 ? void 0 : result; } return hasOwnProperty$1.call(data, key) ? data[key] : void 0; } var objectProto = Object.prototype; var hasOwnProperty = objectProto.hasOwnProperty; function hashHas(key) { var data = this.__data__; return nativeCreate ? data[key] !== void 0 : hasOwnProperty.call(data, key); } var HASH_UNDEFINED = "__lodash_hash_undefined__"; function hashSet(key, value) { var data = this.__data__; this.size += this.has(key) ? 0 : 1; data[key] = nativeCreate && value === void 0 ? HASH_UNDEFINED : value; return this; } function Hash(entries) { var index = -1, length = entries == null ? 0 : entries.length; this.clear(); while (++index < length) { var entry2 = entries[index]; this.set(entry2[0], entry2[1]); } } Hash.prototype.clear = hashClear; Hash.prototype["delete"] = hashDelete; Hash.prototype.get = hashGet; Hash.prototype.has = hashHas; Hash.prototype.set = hashSet; function listCacheClear() { this.__data__ = []; this.size = 0; } function assocIndexOf(array, key) { var length = array.length; while (length--) { if (eq(array[length][0], key)) { return length; } } return -1; } var arrayProto = Array.prototype; var splice = arrayProto.splice; function listCacheDelete(key) { var data = this.__data__, index = assocIndexOf(data, key); if (index < 0) { return false; } var lastIndex = data.length - 1; if (index == lastIndex) { data.pop(); } else { splice.call(data, index, 1); } --this.size; return true; } function listCacheGet(key) { var data = this.__data__, index = assocIndexOf(data, key); return index < 0 ? void 0 : data[index][1]; } function listCacheHas(key) { return assocIndexOf(this.__data__, key) > -1; } function listCacheSet(key, value) { var data = this.__data__, index = assocIndexOf(data, key); if (index < 0) { ++this.size; data.push([key, value]); } else { data[index][1] = value; } return this; } function ListCache(entries) { var index = -1, length = entries == null ? 0 : entries.length; this.clear(); while (++index < length) { var entry2 = entries[index]; this.set(entry2[0], entry2[1]); } } ListCache.prototype.clear = listCacheClear; ListCache.prototype["delete"] = listCacheDelete; ListCache.prototype.get = listCacheGet; ListCache.prototype.has = listCacheHas; ListCache.prototype.set = listCacheSet; var Map$1 = getNative(root, "Map"); function mapCacheClear() { this.size = 0; this.__data__ = { "hash": new Hash(), "map": new (Map$1 || ListCache)(), "string": new Hash() }; } function isKeyable(value) { var type = typeof value; return type == "string" || type == "number" || type == "symbol" || type == "boolean" ? value !== "__proto__" : value === null; } function getMapData(map, key) { var data = map.__data__; return isKeyable(key) ? data[typeof key == "string" ? "string" : "hash"] : data.map; } function mapCacheDelete(key) { var result = getMapData(this, key)["delete"](key); this.size -= result ? 1 : 0; return result; } function mapCacheGet(key) { return getMapData(this, key).get(key); } function mapCacheHas(key) { return getMapData(this, key).has(key); } function mapCacheSet(key, value) { var data = getMapData(this, key), size = data.size; data.set(key, value); this.size += data.size == size ? 0 : 1; return this; } function MapCache(entries) { var index = -1, length = entries == null ? 0 : entries.length; this.clear(); while (++index < length) { var entry2 = entries[index]; this.set(entry2[0], entry2[1]); } } MapCache.prototype.clear = mapCacheClear; MapCache.prototype["delete"] = mapCacheDelete; MapCache.prototype.get = mapCacheGet; MapCache.prototype.has = mapCacheHas; MapCache.prototype.set = mapCacheSet; var FUNC_ERROR_TEXT = "Expected a function"; function memoize(func, resolver) { if (typeof func != "function" || resolver != null && typeof resolver != "function") { throw new TypeError(FUNC_ERROR_TEXT); } var memoized = function() { var args = arguments, key = resolver ? resolver.apply(this, args) : args[0], cache = memoized.cache; if (cache.has(key)) { return cache.get(key); } var result = func.apply(this, args); memoized.cache = cache.set(key, result) || cache; return result; }; memoized.cache = new (memoize.Cache || MapCache)(); return memoized; } memoize.Cache = MapCache; var MAX_MEMOIZE_SIZE = 500; function memoizeCapped(func) { var result = memoize(func, function(key) { if (cache.size === MAX_MEMOIZE_SIZE) { cache.clear(); } return key; }); var cache = result.cache; return result; } var rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g; var reEscapeChar = /\\(\\)?/g; var stringToPath = memoizeCapped(function(string) { var result = []; if (string.charCodeAt(0) === 46) { result.push(""); } string.replace(rePropName, function(match, number, quote, subString) { result.push(quote ? subString.replace(reEscapeChar, "$1") : number || match); }); return result; }); function toString(value) { return value == null ? "" : baseToString(value); } function castPath(value, object) { if (isArray(value)) { return value; } return isKey(value, object) ? [value] : stringToPath(toString(value)); } function toKey(value) { if (typeof value == "string" || isSymbol(value)) { return value; } var result = value + ""; return result == "0" && 1 / value == -Infinity ? "-0" : result; } function baseGet(object, path) { path = castPath(path, object); var index = 0, length = path.length; while (object != null && index < length) { object = object[toKey(path[index++])]; } return index && index == length ? object : void 0; } function get(object, path, defaultValue) { var result = object == null ? void 0 : baseGet(object, path); return result === void 0 ? defaultValue : result; } function arrayPush(array, values) { var index = -1, length = values.length, offset = array.length; while (++index < length) { array[offset + index] = values[index]; } return array; } var spreadableSymbol = Symbol$1 ? Symbol$1.isConcatSpreadable : void 0; function isFlattenable(value) { return isArray(value) || isArguments(value) || !!(spreadableSymbol && value && value[spreadableSymbol]); } function baseFlatten(array, depth, predicate, isStrict, result) { var index = -1, length = array.length; predicate || (predicate = isFlattenable); result || (result = []); while (++index < length) { var value = array[index]; if (predicate(value)) { { arrayPush(result, value); } } else { result[result.length] = value; } } return result; } function flatten(array) { var length = array == null ? 0 : array.length; return length ? baseFlatten(array) : []; } function flatRest(func) { return setToString(overRest(func, void 0, flatten), func + ""); } function baseHasIn(object, key) { return object != null && key in Object(object); } function hasPath(object, path, hasFunc) { path = castPath(path, object); var index = -1, length = path.length, result = false; while (++index < length) { var key = toKey(path[index]); if (!(result = object != null && hasFunc(object, key))) { break; } object = object[key]; } if (result || ++index != length) { return result; } length = object == null ? 0 : object.length; return !!length && isLength(length) && isIndex(key, length) && (isArray(object) || isArguments(object)); } function hasIn(object, path) { return object != null && hasPath(object, path, baseHasIn); } function fromPairs(pairs) { var index = -1, length = pairs == null ? 0 : pairs.length, result = {}; while (++index < length) { var pair = pairs[index]; result[pair[0]] = pair[1]; } return result; } function isNil(value) { return value == null; } function isUndefined$1(value) { return value === void 0; } function baseSet(object, path, value, customizer) { if (!isObject(object)) { return object; } path = castPath(path, object); var index = -1, length = path.length, lastIndex = length - 1, nested = object; while (nested != null && ++index < length) { var key = toKey(path[index]), newValue = value; if (key === "__proto__" || key === "constructor" || key === "prototype") { return object; } if (index != lastIndex) { var objValue = nested[key]; newValue = void 0; if (newValue === void 0) { newValue = isObject(objValue) ? objValue : isIndex(path[index + 1]) ? [] : {}; } } assignValue(nested, key, newValue); nested = nested[key]; } return object; } function basePickBy(object, paths, predicate) { var index = -1, length = paths.length, result = {}; while (++index < length) { var path = paths[index], value = baseGet(object, path); if (predicate(value, path)) { baseSet(result, castPath(path, object), value); } } return result; } function basePick(object, paths) { return basePickBy(object, paths, function(value, path) { return hasIn(object, path); }); } var pick = flatRest(function(object, paths) { return object == null ? {} : basePick(object, paths); }); const isUndefined = (val) => val === void 0; const isBoolean = (val) => typeof val === "boolean"; const isNumber = (val) => typeof val === "number"; const isElement = (e) => { if (typeof Element === "undefined") return false; return e instanceof Element; }; const isStringNumber = (val) => { if (!shared_cjs_prodExports.isString(val)) { return false; } return !Number.isNaN(Number(val)); }; const initial = { current: 0 }; const zIndex = ref(0); const defaultInitialZIndex = 2e3; const ZINDEX_INJECTION_KEY = Symbol("elZIndexContextKey"); const zIndexContextKey = Symbol("zIndexContextKey"); const useZIndex = (zIndexOverrides) => { const increasingInjection = getCurrentInstance() ? inject(ZINDEX_INJECTION_KEY, initial) : initial; const zIndexInjection = getCurrentInstance() ? inject(zIndexContextKey, void 0) : void 0; const initialZIndex = computed(() => { const zIndexFromInjection = unref(zIndexInjection); return isNumber(zIndexFromInjection) ? zIndexFromInjection : defaultInitialZIndex; }); const currentZIndex = computed(() => initialZIndex.value + zIndex.value); const nextZIndex = () => { increasingInjection.current++; zIndex.value = increasingInjection.current; return currentZIndex.value; }; if (!inject(ZINDEX_INJECTION_KEY)) ; return { initialZIndex, currentZIndex, nextZIndex }; }; const element_plus_injection_plugin_LfLkpoHjV8s4Q4lRVuq_y_LbzJB5vFvehZzxqpiP_nk = /* @__PURE__ */ defineNuxtPlugin((nuxtApp) => { nuxtApp.vueApp.provide(ID_INJECTION_KEY, { "prefix": 1024, "current": 0 }).provide(ZINDEX_INJECTION_KEY, { "current": 0 }); }); const plugins = [ unhead_dp1SxSKB06hYMJELWjNfMtwvJsT23iDY2Mk_6THvQzk, router_zDycv0JhcQsMbxA5lqQNOFphjiM1ZIDCw2YOMH26ZzQ, revive_payload_server_BXtMNu_ou6aFPdlr2yij0Fh8hzak_1_swgnvOLyyoss, components_plugin_z4hgvsiddfKkfXTP6M8M4zG5Cb7sGnDhcryKVM45Di4, element_plus_teleports_plugin_3k7A_fjEiCzFRl6aN3qftblOS_EZCmhIb_4gXrhvbuY, element_plus_injection_plugin_LfLkpoHjV8s4Q4lRVuq_y_LbzJB5vFvehZzxqpiP_nk ]; const HeadComponentCtxSymbol = Symbol("head-component"); const TagPositionProps = { /** * @deprecated Use tagPosition */ body: { type: Boolean, default: void 0 }, tagPosition: { type: String } }; const normalizeProps = (_props) => { const props = Object.fromEntries( Object.entries(_props).filter(([_, value]) => value !== void 0) ); if (typeof props.body !== "undefined") { props.tagPosition = props.body ? "bodyClose" : "head"; } if (typeof props.renderPriority !== "undefined") { props.tagPriority = props.renderPriority; } return props; }; function useHeadComponentCtx() { return inject(HeadComponentCtxSymbol, createHeadComponentCtx, true); } function createHeadComponentCtx() { const prev = inject(HeadComponentCtxSymbol, null); if (prev) { return prev; } const input = reactive({}); const entry2 = useHead(input); const ctx = { input, entry: entry2 }; provide(HeadComponentCtxSymbol, ctx); return ctx; } const globalProps = { accesskey: String, autocapitalize: String, autofocus: { type: Boolean, default: void 0 }, class: { type: [String, Object, Array], default: void 0 }, contenteditable: { type: Boolean, default: void 0 }, contextmenu: String, dir: String, draggable: { type: Boolean, default: void 0 }, enterkeyhint: String, exportparts: String, hidden: { type: Boolean, default: void 0 }, id: String, inputmode: String, is: String, itemid: String, itemprop: String, itemref: String, itemscope: String, itemtype: String, lang: String, nonce: String, part: String, slot: String, spellcheck: { type: Boolean, default: void 0 }, style: { type: [String, Object, Array], default: void 0 }, tabindex: String, title: String, translate: String, /** * @deprecated Use tagPriority */ renderPriority: [String, Number], /** * Unhead prop to modify the priority of the tag. */ tagPriority: { type: [String, Number] } }; defineComponent({ name: "NoScript", inheritAttrs: false, props: { ...globalProps, ...TagPositionProps, title: String }, setup(props, { slots }) { const { input } = useHeadComponentCtx(); input.noscript || (input.noscript = []); const idx = input.noscript.push({}) - 1; return () => { var _a2; const noscript = normalizeProps(props); const slotVnodes = (_a2 = slots.default) == null ? void 0 : _a2.call(slots); const textContent = slotVnodes ? slotVnodes.filter(({ children }) => children).map(({ children }) => children).join("") : ""; if (textContent) { noscript.innerHTML = textContent; } input.noscript[idx] = noscript; return null; }; } }); defineComponent({ name: "Link", inheritAttrs: false, props: { ...globalProps, ...TagPositionProps, as: String, crossorigin: String, disabled: Boolean, fetchpriority: String, href: String, hreflang: String, imagesizes: String, imagesrcset: String, integrity: String, media: String, prefetch: { type: Boolean, default: void 0 }, referrerpolicy: String, rel: String, sizes: String, title: String, type: String, /** @deprecated **/ methods: String, /** @deprecated **/ target: String }, setup(props) { const { input } = useHeadComponentCtx(); input.link || (input.link = []); const idx = input.link.push({}) - 1; return () => { input.link[idx] = normalizeProps(props); return null; }; } }); defineComponent({ name: "Base", inheritAttrs: false, props: { ...globalProps, href: String, target: String }, setup(props) { const { input } = useHeadComponentCtx(); return () => { input.base = normalizeProps(props); return null; }; } }); const Title = defineComponent({ name: "Title", inheritAttrs: false, setup(_, { slots }) { const { input } = useHeadComponentCtx(); return () => { var _a2, _b2, _c2; const defaultSlot = (_a2 = slots.default) == null ? void 0 : _a2.call(slots); input.title = ((_b2 = defaultSlot == null ? void 0 : defaultSlot[0]) == null ? void 0 : _b2.children) ? String((_c2 = defaultSlot == null ? void 0 : defaultSlot[0]) == null ? void 0 : _c2.children) : void 0; return null; }; } }); const Meta = defineComponent({ name: "Meta", inheritAttrs: false, props: { ...globalProps, charset: String, content: String, httpEquiv: String, name: String, property: String }, setup(props) { const { input } = useHeadComponentCtx(); input.meta || (input.meta = []); const idx = input.meta.push({}) - 1; return () => { const meta = { "http-equiv": props.httpEquiv, ...normalizeProps(props) }; if ("httpEquiv" in meta) { delete meta.httpEquiv; } input.meta[idx] = meta; return null; }; } }); defineComponent({ name: "Style", inheritAttrs: false, props: { ...globalProps, ...TagPositionProps, type: String, media: String, nonce: String, title: String, /** @deprecated **/ scoped: { type: Boolean, default: void 0 } }, setup(props, { slots }) { const { input } = useHeadComponentCtx(); input.style || (input.style = []); input.style.push({}) - 1; return () => { var _a2, _b2, _c2; const style = normalizeProps(props); const textContent = (_c2 = (_b2 = (_a2 = slots.default) == null ? void 0 : _a2.call(slots)) == null ? void 0 : _b2[0]) == null ? void 0 : _c2.children; if (textContent) { style.textContent = textContent; } return null; }; } }); const Head = defineComponent({ name: "Head", inheritAttrs: false, setup: (_props, ctx) => { createHeadComponentCtx(); return () => { var _a2, _b2; return (_b2 = (_a2 = ctx.slots).default) == null ? void 0 : _b2.call(_a2); }; } }); defineComponent({ name: "Html", inheritAttrs: false, props: { ...globalProps, manifest: String, version: String, xmlns: String }, setup(_props, ctx) { const { input } = useHeadComponentCtx(); return () => { var _a2, _b2; input.htmlAttrs = { ..._props }; return (_b2 = (_a2 = ctx.slots).default) == null ? void 0 : _b2.call(_a2); }; } }); defineComponent({ name: "Body", inheritAttrs: false, props: globalProps, setup(_props, ctx) { const { input } = useHeadComponentCtx(); return () => { var _a2, _b2; input.bodyAttrs = { ..._props }; return (_b2 = (_a2 = ctx.slots).default) == null ? void 0 : _b2.call(_a2); }; } }); defineComponent({ name: "ServerPlaceholder", render() { return createElementBlock("div"); } }); const clientOnlySymbol = Symbol.for("nuxt:client-only"); const __nuxt_component_3 = defineComponent({ name: "ClientOnly", inheritAttrs: false, props: ["fallback", "placeholder", "placeholderTag", "fallbackTag"], setup(_, { slots, attrs }) { const mounted = ref(false); provide(clientOnlySymbol, true); return (props) => { var _a2; if (mounted.value) { return (_a2 = slots.default) == null ? void 0 : _a2.call(slots); } const slot = slots.fallback || slots.placeholder; if (slot) { return slot(); } const fallbackStr = props.fallback || props.placeholder || ""; const fallbackTag = props.fallbackTag || props.placeholderTag || "span"; return createElementBlock(fallbackTag, attrs, fallbackStr); }; } }); const POPPER_INJECTION_KEY = Symbol("popper"); const POPPER_CONTENT_INJECTION_KEY = Symbol("popperContent"); const epPropKey = "__epPropKey"; const definePropType = (val) => val; const isEpProp = (val) => shared_cjs_prodExports.isObject(val) && !!val[epPropKey]; const buildProp = (prop, key) => { if (!shared_cjs_prodExports.isObject(prop) || isEpProp(prop)) return prop; const { values, required, default: defaultValue, type, validator } = prop; const _validator = values || validator ? (val) => { let valid = false; let allowedValues = []; if (values) { allowedValues = Array.from(values); if (shared_cjs_prodExports.hasOwn(prop, "default")) { allowedValues.push(defaultValue); } valid || (valid = allowedValues.includes(val)); } if (validator) valid || (valid = validator(val)); if (!valid && allowedValues.length > 0) { const allowValuesText = [...new Set(allowedValues)].map((value) => JSON.stringify(value)).join(", "); warn(`Invalid prop: validation failed${key ? ` for prop "${key}"` : ""}. Expected one of [${allowValuesText}], got value ${JSON.stringify(val)}.`); } return valid; } : void 0; const epProp = { type, required: !!required, validator: _validator, [epPropKey]: true }; if (shared_cjs_prodExports.hasOwn(prop, "default")) epProp.default = defaultValue; return epProp; }; const buildProps = (props) => fromPairs(Object.entries(props).map(([key, option]) => [ key, buildProp(option, key) ])); const roleTypes = [ "dialog", "grid", "group", "listbox", "menu", "navigation", "tooltip", "tree" ]; const popperProps = buildProps({ role: { type: String, values: roleTypes, default: "tooltip" } }); var _export_sfc$1 = (sfc, props) => { const target = sfc.__vccOpts || sfc; for (const [key, val] of props) { target[key] = val; } return target; }; const __default__$c = defineComponent({ name: "ElPopper", inheritAttrs: false }); const _sfc_main$l = /* @__PURE__ */ defineComponent({ ...__default__$c, props: popperProps, setup(__props, { expose }) { const props = __props; const triggerRef = ref(); const popperInstanceRef = ref(); const contentRef = ref(); const referenceRef = ref(); const role = computed(() => props.role); const popperProvides = { triggerRef, popperInstanceRef, contentRef, referenceRef, role }; expose(popperProvides); provide(POPPER_INJECTION_KEY, popperProvides); return (_ctx, _cache) => { return renderSlot(_ctx.$slots, "default"); }; } }); var Popper = /* @__PURE__ */ _export_sfc$1(_sfc_main$l, [["__file", "popper.vue"]]); const popperArrowProps = buildProps({ arrowOffset: { type: Number, default: 5 } }); const __default__$b = defineComponent({ name: "ElPopperArrow", inheritAttrs: false }); const _sfc_main$k = /* @__PURE__ */ defineComponent({ ...__default__$b, props: popperArrowProps, setup(__props, { expose }) { const props = __props; const ns2 = useNamespace("popper"); const { arrowOffset, arrowRef, arrowStyle } = inject(POPPER_CONTENT_INJECTION_KEY, void 0); watch(() => props.arrowOffset, (val) => { arrowOffset.value = val; }); expose({ arrowRef }); return (_ctx, _cache) => { return openBlock(), createElementBlock("span", { ref_key: "arrowRef", ref: arrowRef, class: normalizeClass(unref(ns2).e("arrow")), style: normalizeStyle(unref(arrowStyle)), "data-popper-arrow": "" }, null, 6); }; } }); var ElPopperArrow = /* @__PURE__ */ _export_sfc$1(_sfc_main$k, [["__file", "arrow.vue"]]); const popperTriggerProps = buildProps({ virtualRef: { type: definePropType(Object) }, virtualTriggering: Boolean, onMouseenter: { type: definePropType(Function) }, onMouseleave: { type: definePropType(Function) }, onClick: { type: definePropType(Function) }, onKeydown: { type: definePropType(Function) }, onFocus: { type: definePropType(Function) }, onBlur: { type: definePropType(Function) }, onContextmenu: { type: definePropType(Function) }, id: String, open: Boolean }); const FORWARD_REF_INJECTION_KEY = Symbol("elForwardRef"); const useForwardRef = (forwardRef) => { const setForwardRef = (el) => { forwardRef.value = el; }; provide(FORWARD_REF_INJECTION_KEY, { setForwardRef }); }; const useForwardRefDirective = (setForwardRef) => { return { mounted(el) { setForwardRef(el); }, updated(el) { setForwardRef(el); }, unmounted() { setForwardRef(null); } }; }; const isFocusable = (element) => { if (element.tabIndex > 0 || element.tabIndex === 0 && element.getAttribute("tabIndex") !== null) { return true; } if (element.tabIndex < 0 || element.hasAttribute("disabled") || element.getAttribute("aria-disabled") === "true") { return false; } switch (element.nodeName) { case "A": { return !!element.href && element.rel !== "ignore"; } case "INPUT": { return !(element.type === "hidden" || element.type === "file"); } case "BUTTON": case "SELECT": case "TEXTAREA": { return true; } default: { return false; } } }; const NAME = "ElOnlyChild"; const OnlyChild = defineComponent({ name: NAME, setup(_, { slots, attrs }) { var _a2; const forwardRefInjection = inject(FORWARD_REF_INJECTION_KEY); const forwardRefDirective = useForwardRefDirective((_a2 = forwardRefInjection == null ? void 0 : forwardRefInjection.setForwardRef) != null ? _a2 : shared_cjs_prodExports.NOOP); return () => { var _a22; const defaultSlot = (_a22 = slots.default) == null ? void 0 : _a22.call(slots, attrs); if (!defaultSlot) return null; if (defaultSlot.length > 1) { return null; } const firstLegitNode = findFirstLegitChild(defaultSlot); if (!firstLegitNode) { return null; } return withDirectives(cloneVNode(firstLegitNode, attrs), [[forwardRefDirective]]); }; } }); function findFirstLegitChild(node) { if (!node) return null; const children = node; for (const child of children) { if (shared_cjs_prodExports.isObject(child)) { switch (child.type) { case Comment: continue; case Text: case "svg": return wrapTextContent(child); case Fragment: return findFirstLegitChild(child.children); default: return child; } } return wrapTextContent(child); } return null; } function wrapTextContent(s) { const ns2 = useNamespace("only-child"); return createVNode("span", { "class": ns2.e("content") }, [s]); } const __default__$a = defineComponent({ name: "ElPopperTrigger", inheritAttrs: false }); const _sfc_main$j = /* @__PURE__ */ defineComponent({ ...__default__$a, props: popperTriggerProps, setup(__props, { expose }) { const props = __props; const { role, triggerRef } = inject(POPPER_INJECTION_KEY, void 0); useForwardRef(triggerRef); const ariaControls = computed(() => { return ariaHaspopup.value ? props.id : void 0; }); const ariaDescribedby = computed(() => { if (role && role.value === "tooltip") { return props.open && props.id ? props.id : void 0; } return void 0; }); const ariaHaspopup = computed(() => { if (role && role.value !== "tooltip") { return role.value; } return void 0; }); const ariaExpanded = computed(() => { return ariaHaspopup.value ? `${props.open}` : void 0; }); expose({ triggerRef }); return (_ctx, _cache) => { return !_ctx.virtualTriggering ? (openBlock(), createBlock(unref(OnlyChild), mergeProps({ key: 0 }, _ctx.$attrs, { "aria-controls": unref(ariaControls), "aria-describedby": unref(ariaDescribedby), "aria-expanded": unref(ariaExpanded), "aria-haspopup": unref(ariaHaspopup) }), { default: withCtx(() => [ renderSlot(_ctx.$slots, "default") ]), _: 3 }, 16, ["aria-controls", "aria-describedby", "aria-expanded", "aria-haspopup"])) : createCommentVNode("v-if", true); }; } }); var ElPopperTrigger = /* @__PURE__ */ _export_sfc$1(_sfc_main$j, [["__file", "trigger.vue"]]); const FOCUSOUT_PREVENTED = "focus-trap.focusout-prevented"; const FOCUSOUT_PREVENTED_OPTS = { cancelable: true, bubbles: false }; const ON_TRAP_FOCUS_EVT = "focusAfterTrapped"; const ON_RELEASE_FOCUS_EVT = "focusAfterReleased"; const FOCUS_TRAP_INJECTION_KEY = Symbol("elFocusTrap"); const focusReason = ref(); const lastUserFocusTimestamp = ref(0); const lastAutomatedFocusTimestamp = ref(0); const obtainAllFocusableElements = (element) => { const nodes = []; const walker = (void 0).createTreeWalker(element, NodeFilter.SHOW_ELEMENT, { acceptNode: (node) => { const isHiddenInput = node.tagName === "INPUT" && node.type === "hidden"; if (node.disabled || node.hidden || isHiddenInput) return NodeFilter.FILTER_SKIP; return node.tabIndex >= 0 || node === (void 0).activeElement ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP; } }); while (walker.nextNode()) nodes.push(walker.currentNode); return nodes; }; const getVisibleElement = (elements, container) => { for (const element of elements) { if (!isHidden(element, container)) return element; } }; const isHidden = (element, container) => { if (getComputedStyle(element).visibility === "hidden") return true; while (element) { if (container && element === container) return false; if (getComputedStyle(element).display === "none") return true; element = element.parentElement; } return false; }; const getEdges = (container) => { const focusable = obtainAllFocusableElements(container); const first = getVisibleElement(focusable, container); const last = getVisibleElement(focusable.reverse(), container); return [first, last]; }; const isSelectable = (element) => { return element instanceof HTMLInputElement && "select" in element; }; const tryFocus = (element, shouldSelect) => { if (element && element.focus) { const prevFocusedElement = (void 0).activeElement; let cleanup = false; if (isElement(element) && !isFocusable(element) && !element.getAttribute("tabindex")) { element.setAttribute("tabindex", "-1"); cleanup = true; } element.focus({ preventScroll: true }); lastAutomatedFocusTimestamp.value = (void 0).performance.now(); if (element !== prevFocusedElement && isSelectable(element) && shouldSelect) { element.select(); } if (isElement(element) && cleanup) { element.removeAttribute("tabindex"); } } }; const useFocusReason = () => { return { focusReason, lastUserFocusTimestamp, lastAutomatedFocusTimestamp }; }; const createFocusOutPreventedEvent = (detail) => { return new CustomEvent(FOCUSOUT_PREVENTED, { ...FOCUSOUT_PREVENTED_OPTS, detail }); }; const EVENT_CODE = { tab: "Tab", enter: "Enter", space: "Space", down: "ArrowDown", numpadEnter: "NumpadEnter" }; const _sfc_main$i = defineComponent({ name: "ElFocusTrap", inheritAttrs: false, props: { loop: Boolean, trapped: Boolean, focusTrapEl: Object, focusStartEl: { type: [Object, String], default: "first" } }, emits: [ ON_TRAP_FOCUS_EVT, ON_RELEASE_FOCUS_EVT, "focusin", "focusout", "focusout-prevented", "release-requested" ], setup(props, { emit }) { const forwardRef = ref(); let lastFocusAfterTrapped; const { focusReason: focusReason2 } = useFocusReason(); const onKeydown = (e) => { if (!props.loop && !props.trapped) return; const { code, altKey, ctrlKey, metaKey, currentTarget, shiftKey } = e; const { loop } = props; const isTabbing = code === EVENT_CODE.tab && !altKey && !ctrlKey && !metaKey; const currentFocusingEl = (void 0).activeElement; if (isTabbing && currentFocusingEl) { const container = currentTarget; const [first, last] = getEdges(container); const isTabbable = first && last; if (!isTabbable) { if (currentFocusingEl === container) { const focusoutPreventedEvent = createFocusOutPreventedEvent({ focusReason: focusReason2.value }); emit("focusout-prevented", focusoutPreventedEvent); if (!focusoutPreventedEvent.defaultPrevented) { e.preventDefault(); } } } else { if (!shiftKey && currentFocusingEl === last) { const focusoutPreventedEvent = createFocusOutPreventedEvent({ focusReason: focusReason2.value }); emit("focusout-prevented", focusoutPreventedEvent); if (!focusoutPreventedEvent.defaultPrevented) { e.preventDefault(); if (loop) tryFocus(first, true); } } else if (shiftKey && [first, container].includes(currentFocusingEl)) { const focusoutPreventedEvent = createFocusOutPreventedEvent({ focusReason: focusReason2.value }); emit("focusout-prevented", focusoutPreventedEvent); if (!focusoutPreventedEvent.defaultPrevented) { e.preventDefault(); if (loop) tryFocus(last, true); } } } } }; provide(FOCUS_TRAP_INJECTION_KEY, { focusTrapRef: forwardRef, onKeydown }); watch(() => props.focusTrapEl, (focusTrapEl) => { if (focusTrapEl) { forwardRef.value = focusTrapEl; } }, { immediate: true }); watch([forwardRef], ([forwardRef2], [oldForwardRef]) => { if (forwardRef2) { forwardRef2.addEventListener("keydown", onKeydown); forwardRef2.addEventListener("focusin", onFocusIn); forwardRef2.addEventListener("focusout", onFocusOut); } if (oldForwardRef) { oldForwardRef.removeEventListener("keydown", onKeydown); oldForwardRef.removeEventListener("focusin", onFocusIn); oldForwardRef.removeEventListener("focusout", onFocusOut); } }); const onFocusIn = (e) => { const trapContainer = unref(forwardRef); if (!trapContainer) return; const target = e.target; const relatedTarget = e.relatedTarget; const isFocusedInTrap = target && trapContainer.contains(target); if (!props.trapped) { relatedTarget && trapContainer.contains(relatedTarget); } if (isFocusedInTrap) emit("focusin", e); if (props.trapped) { if (isFocusedInTrap) { lastFocusAfterTrapped = target; } else { tryFocus(lastFocusAfterTrapped, true); } } }; const onFocusOut = (e) => { const trapContainer = unref(forwardRef); if (!trapContainer) return; if (props.trapped) { const relatedTarget = e.relatedTarget; if (!isNil(relatedTarget) && !trapContainer.contains(relatedTarget)) { setTimeout(() => { if (props.trapped) { const focusoutPreventedEvent = createFocusOutPreventedEvent({ focusReason: focusReason2.value }); emit("focusout-prevented", focusoutPreventedEvent); if (!focusoutPreventedEvent.defaultPrevented) { tryFocus(lastFocusAfterTrapped, true); } } }, 0); } } else { const target = e.target; const isFocusedInTrap = target && trapContainer.contains(target); if (!isFocusedInTrap) emit("focusout", e); } }; return { onKeydown }; } }); function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) { return renderSlot(_ctx.$slots, "default", { handleKeydown: _ctx.onKeydown }); } var ElFocusTrap = /* @__PURE__ */ _export_sfc$1(_sfc_main$i, [["render", _sfc_render$2], ["__file", "focus-trap.vue"]]); var E = "top", R = "bottom", W = "right", P = "left", me = "auto", G = [E, R, W, P], U = "start", J = "end", Xe = "clippingParents", je = "viewport", K = "popper", Ye = "reference", De = G.reduce(function(t2, e) { return t2.concat([e + "-" + U, e + "-" + J]); }, []), Ee = [].concat(G, [me]).reduce(function(t2, e) { return t2.concat([e, e + "-" + U, e + "-" + J]); }, []), Ge = "beforeRead", Je = "read", Ke = "afterRead", Qe = "beforeMain", Ze = "main", et = "afterMain", tt = "beforeWrite", nt = "write", rt = "afterWrite", ot = [Ge, Je, Ke, Qe, Ze, et, tt, nt, rt]; function C(t2) { return t2 ? (t2.nodeName || "").toLowerCase() : null; } function H(t2) { if (t2 == null) return void 0; if (t2.toString() !== "[object Window]") { var e = t2.ownerDocument; return e && e.defaultView || void 0; } return t2; } function Q(t2) { var e = H(t2).Element; return t2 instanceof e || t2 instanceof Element; } function B(t2) { var e = H(t2).HTMLElement; return t2 instanceof e || t2 instanceof HTMLElement; } function Pe(t2) { if (typeof ShadowRoot == "undefined") return false; var e = H(t2).ShadowRoot; return t2 instanceof e || t2 instanceof ShadowRoot; } function Mt(t2) { var e = t2.state; Object.keys(e.elements).forEach(function(n2) { var r2 = e.styles[n2] || {}, o2 = e.attributes[n2] || {}, i = e.elements[n2]; !B(i) || !C(i) || (Object.assign(i.style, r2), Object.keys(o2).forEach(function(a) { var s = o2[a]; s === false ? i.removeAttribute(a) : i.setAttribute(a, s === true ? "" : s); })); }); } function Rt(t2) { var e = t2.state, n2 = { popper: { position: e.options.strategy, left: "0", top: "0", margin: "0" }, arrow: { position: "absolute" }, reference: {} }; return Object.assign(e.elements.popper.style, n2.popper), e.styles = n2, e.elements.arrow && Object.assign(e.elements.arrow.style, n2.arrow), function() { Object.keys(e.elements).forEach(function(r2) { var o2 = e.elements[r2], i = e.attributes[r2] || {}, a = Object.keys(e.styles.hasOwnProperty(r2) ? e.styles[r2] : n2[r2]), s = a.reduce(function(f2, c) { return f2[c] = "", f2; }, {}); !B(o2) || !C(o2) || (Object.assign(o2.style, s), Object.keys(i).forEach(function(f2) { o2.removeAttribute(f2); })); }); }; } var Ae = { name: "applyStyles", enabled: true, phase: "write", fn: Mt, effect: Rt, requires: ["computeStyles"] }; function q(t2) { return t2.split("-")[0]; } var X = Math.max, ve = Math.min, Z = Math.round; function ee(t2, e) { e === void 0 && (e = false); var n2 = t2.getBoundingClientRect(), r2 = 1, o2 = 1; if (B(t2) && e) { var i = t2.offsetHeight, a = t2.offsetWidth; a > 0 && (r2 = Z(n2.width) / a || 1), i > 0 && (o2 = Z(n2.height) / i || 1); } return { width: n2.width / r2, height: n2.height / o2, top: n2.top / o2, right: n2.right / r2, bottom: n2.bottom / o2, left: n2.left / r2, x: n2.left / r2, y: n2.top / o2 }; } function ke(t2) { var e = ee(t2), n2 = t2.offsetWidth, r2 = t2.offsetHeight; return Math.abs(e.width - n2) <= 1 && (n2 = e.width), Math.abs(e.height - r2) <= 1 && (r2 = e.height), { x: t2.offsetLeft, y: t2.offsetTop, width: n2, height: r2 }; } function it(t2, e) { var n2 = e.getRootNode && e.getRootNode(); if (t2.contains(e)) return true; if (n2 && Pe(n2)) { var r2 = e; do { if (r2 && t2.isSameNode(r2)) return true; r2 = r2.parentNode || r2.host; } while (r2); } return false; } function N(t2) { return H(t2).getComputedStyle(t2); } function Wt(t2) { return ["table", "td", "th"].indexOf(C(t2)) >= 0; } function I(t2) { return ((Q(t2) ? t2.ownerDocument : t2.document) || (void 0).document).documentElement; } function ge(t2) { return C(t2) === "html" ? t2 : t2.assignedSlot || t2.parentNode || (Pe(t2) ? t2.host : null) || I(t2); } function at(t2) { return !B(t2) || N(t2).position === "fixed" ? null : t2.offsetParent; } function Bt(t2) { var e = (void 0).userAgent.toLowerCase().indexOf("firefox") !== -1, n2 = (void 0).userAgent.indexOf("Trident") !== -1; if (n2 && B(t2)) { var r2 = N(t2); if (r2.position === "fixed") return null; } var o2 = ge(t2); for (Pe(o2) && (o2 = o2.host); B(o2) && ["html", "body"].indexOf(C(o2)) < 0; ) { var i = N(o2); if (i.transform !== "none" || i.perspective !== "none" || i.contain === "paint" || ["transform", "perspective"].indexOf(i.willChange) !== -1 || e && i.willChange === "filter" || e && i.filter && i.filter !== "none") return o2; o2 = o2.parentNode; } return null; } function se(t2) { for (var e = H(t2), n2 = at(t2); n2 && Wt(n2) && N(n2).position === "static"; ) n2 = at(n2); return n2 && (C(n2) === "html" || C(n2) === "body" && N(n2).position === "static") ? e : n2 || Bt(t2) || e; } function Le(t2) { return ["top", "bottom"].indexOf(t2) >= 0 ? "x" : "y"; } function fe(t2, e, n2) { return X(t2, ve(e, n2)); } function St(t2, e, n2) { var r2 = fe(t2, e, n2); return r2 > n2 ? n2 : r2; } function st() { return { top: 0, right: 0, bottom: 0, left: 0 }; } function ft(t2) { return Object.assign({}, st(), t2); } function ct(t2, e) { return e.reduce(function(n2, r2) { return n2[r2] = t2, n2; }, {}); } var Tt = function(t2, e) { return t2 = typeof t2 == "function" ? t2(Object.assign({}, e.rects, { placement: e.placement })) : t2, ft(typeof t2 != "number" ? t2 : ct(t2, G)); }; function Ht(t2) { var e, n2 = t2.state, r2 = t2.name, o2 = t2.options, i = n2.elements.arrow, a = n2.modifiersData.popperOffsets, s = q(n2.placement), f2 = Le(s), c = [P, W].indexOf(s) >= 0, u = c ? "height" : "width"; if (!(!i || !a)) { var m = Tt(o2.padding, n2), v = ke(i), l = f2 === "y" ? E : P, h2 = f2 === "y" ? R : W, p = n2.rects.reference[u] + n2.rects.reference[f2] - a[f2] - n2.rects.popper[u], g = a[f2] - n2.rects.reference[f2], x = se(i), y = x ? f2 === "y" ? x.clientHeight || 0 : x.clientWidth || 0 : 0, $ = p / 2 - g / 2, d = m[l], b = y - v[u] - m[h2], w = y / 2 - v[u] / 2 + $, O = fe(d, w, b), j2 = f2; n2.modifiersData[r2] = (e = {}, e[j2] = O, e.centerOffset = O - w, e); } } function Ct(t2) { var e = t2.state, n2 = t2.options, r2 = n2.element, o2 = r2 === void 0 ? "[data-popper-arrow]" : r2; o2 != null && (typeof o2 == "string" && (o2 = e.elements.popper.querySelector(o2), !o2) || !it(e.elements.popper, o2) || (e.elements.arrow = o2)); } var pt = { name: "arrow", enabled: true, phase: "main", fn: Ht, effect: Ct, requires: ["popperOffsets"], requiresIfExists: ["preventOverflow"] }; function te(t2) { return t2.split("-")[1]; } var qt = { top: "auto", right: "auto", bottom: "auto", left: "auto" }; function Vt(t2) { var e = t2.x, n2 = t2.y, r2 = void 0, o2 = r2.devicePixelRatio || 1; return { x: Z(e * o2) / o2 || 0, y: Z(n2 * o2) / o2 || 0 }; } function ut(t2) { var e, n2 = t2.popper, r2 = t2.popperRect, o2 = t2.placement, i = t2.variation, a = t2.offsets, s = t2.position, f2 = t2.gpuAcceleration, c = t2.adaptive, u = t2.roundOffsets, m = t2.isFixed, v = a.x, l = v === void 0 ? 0 : v, h2 = a.y, p = h2 === void 0 ? 0 : h2, g = typeof u == "function" ? u({ x: l, y: p }) : { x: l, y: p }; l = g.x, p = g.y; var x = a.hasOwnProperty("x"), y = a.hasOwnProperty("y"), $ = P, d = E, b = void 0; if (c) { var w = se(n2), O = "clientHeight", j2 = "clientWidth"; if (w === H(n2) && (w = I(n2), N(w).position !== "static" && s === "absolute" && (O = "scrollHeight", j2 = "scrollWidth")), w = w, o2 === E || (o2 === P || o2 === W) && i === J) { d = R; var A = m && w === b && b.visualViewport ? b.visualViewport.height : w[O]; p -= A - r2.height, p *= f2 ? 1 : -1; } if (o2 === P || (o2 === E || o2 === R) && i === J) { $ = W; var k2 = m && w === b && b.visualViewport ? b.visualViewport.width : w[j2]; l -= k2 - r2.width, l *= f2 ? 1 : -1; } } var D = Object.assign({ position: s }, c && qt), S = u === true ? Vt({ x: l, y: p }) : { x: l, y: p }; if (l = S.x, p = S.y, f2) { var L; return Object.assign({}, D, (L = {}, L[d] = y ? "0" : "", L[$] = x ? "0" : "", L.transform = (b.devicePixelRatio || 1) <= 1 ? "translate(" + l + "px, " + p + "px)" : "translate3d(" + l + "px, " + p + "px, 0)", L)); } return Object.assign({}, D, (e = {}, e[d] = y ? p + "px" : "", e[$] = x ? l + "px" : "", e.transform = "", e)); } function Nt(t2) { var e = t2.state, n2 = t2.options, r2 = n2.gpuAcceleration, o2 = r2 === void 0 ? true : r2, i = n2.adaptive, a = i === void 0 ? true : i, s = n2.roundOffsets, f2 = s === void 0 ? true : s, c = { placement: q(e.placement), variation: te(e.placement), popper: e.elements.popper, popperRect: e.rects.popper, gpuAcceleration: o2, isFixed: e.options.strategy === "fixed" }; e.modifiersData.popperOffsets != null && (e.styles.popper = Object.assign({}, e.styles.popper, ut(Object.assign({}, c, { offsets: e.modifiersData.popperOffsets, position: e.options.strategy, adaptive: a, roundOffsets: f2 })))), e.modifiersData.arrow != null && (e.styles.arrow = Object.assign({}, e.styles.arrow, ut(Object.assign({}, c, { offsets: e.modifiersData.arrow, position: "absolute", adaptive: false, roundOffsets: f2 })))), e.attributes.popper = Object.assign({}, e.attributes.popper, { "data-popper-placement": e.placement }); } var Me = { name: "computeStyles", enabled: true, phase: "beforeWrite", fn: Nt, data: {} }, ye = { passive: true }; function It(t2) { var e = t2.state, n2 = t2.instance, r2 = t2.options, o2 = r2.scroll, i = o2 === void 0 ? true : o2, a = r2.resize, s = a === void 0 ? true : a, f2 = H(e.elements.popper), c = [].concat(e.scrollParents.reference, e.scrollParents.popper); return i && c.forEach(function(u) { u.addEventListener("scroll", n2.update, ye); }), s && f2.addEventListener("resize", n2.update, ye), function() { i && c.forEach(function(u) { u.removeEventListener("scroll", n2.update, ye); }), s && f2.removeEventListener("resize", n2.update, ye); }; } var Re = { name: "eventListeners", enabled: true, phase: "write", fn: function() { }, effect: It, data: {} }, _t = { left: "right", right: "left", bottom: "top", top: "bottom" }; function be(t2) { return t2.replace(/left|right|bottom|top/g, function(e) { return _t[e]; }); } var zt = { start: "end", end: "start" }; function lt(t2) { return t2.replace(/start|end/g, function(e) { return zt[e]; }); } function We(t2) { var e = H(t2), n2 = e.pageXOffset, r2 = e.pageYOffset; return { scrollLeft: n2, scrollTop: r2 }; } function Be(t2) { return ee(I(t2)).left + We(t2).scrollLeft; } function Ft(t2) { var e = H(t2), n2 = I(t2), r2 = e.visualViewport, o2 = n2.clientWidth, i = n2.clientHeight, a = 0, s = 0; return r2 && (o2 = r2.width, i = r2.height, /^((?!chrome|android).)*safari/i.test((void 0).userAgent) || (a = r2.offsetLeft, s = r2.offsetTop)), { width: o2, height: i, x: a + Be(t2), y: s }; } function Ut(t2) { var e, n2 = I(t2), r2 = We(t2), o2 = (e = t2.ownerDocument) == null ? void 0 : e.body, i = X(n2.scrollWidth, n2.clientWidth, o2 ? o2.scrollWidth : 0, o2 ? o2.clientWidth : 0), a = X(n2.scrollHeight, n2.clientHeight, o2 ? o2.scrollHeight : 0, o2 ? o2.clientHeight : 0), s = -r2.scrollLeft + Be(t2), f2 = -r2.scrollTop; return N(o2 || n2).direction === "rtl" && (s += X(n2.clientWidth, o2 ? o2.clientWidth : 0) - i), { width: i, height: a, x: s, y: f2 }; } function Se(t2) { var e = N(t2), n2 = e.overflow, r2 = e.overflowX, o2 = e.overflowY; return /auto|scroll|overlay|hidden/.test(n2 + o2 + r2); } function dt(t2) { return ["html", "body", "#document"].indexOf(C(t2)) >= 0 ? t2.ownerDocument.body : B(t2) && Se(t2) ? t2 : dt(ge(t2)); } function ce(t2, e) { var n2; e === void 0 && (e = []); var r2 = dt(t2), o2 = r2 === ((n2 = t2.ownerDocument) == null ? void 0 : n2.body), i = H(r2), a = o2 ? [i].concat(i.visualViewport || [], Se(r2) ? r2 : []) : r2, s = e.concat(a); return o2 ? s : s.concat(ce(ge(a))); } function Te(t2) { return Object.assign({}, t2, { left: t2.x, top: t2.y, right: t2.x + t2.width, bottom: t2.y + t2.height }); } function Xt(t2) { var e = ee(t2); return e.top = e.top + t2.clientTop, e.left = e.left + t2.clientLeft, e.bottom = e.top + t2.clientHeight, e.right = e.left + t2.clientWidth, e.width = t2.clientWidth, e.height = t2.clientHeight, e.x = e.left, e.y = e.top, e; } function ht(t2, e) { return e === je ? Te(Ft(t2)) : Q(e) ? Xt(e) : Te(Ut(I(t2))); } function Yt(t2) { var e = ce(ge(t2)), n2 = ["absolute", "fixed"].indexOf(N(t2).position) >= 0, r2 = n2 && B(t2) ? se(t2) : t2; return Q(r2) ? e.filter(function(o2) { return Q(o2) && it(o2, r2) && C(o2) !== "body"; }) : []; } function Gt(t2, e, n2) { var r2 = e === "clippingParents" ? Yt(t2) : [].concat(e), o2 = [].concat(r2, [n2]), i = o2[0], a = o2.reduce(function(s, f2) { var c = ht(t2, f2); return s.top = X(c.top, s.top), s.right = ve(c.right, s.right), s.bottom = ve(c.bottom, s.bottom), s.left = X(c.left, s.left), s; }, ht(t2, i)); return a.width = a.right - a.left, a.height = a.bottom - a.top, a.x = a.left, a.y = a.top, a; } function mt(t2) { var e = t2.reference, n2 = t2.element, r2 = t2.placement, o2 = r2 ? q(r2) : null, i = r2 ? te(r2) : null, a = e.x + e.width / 2 - n2.width / 2, s = e.y + e.height / 2 - n2.height / 2, f2; switch (o2) { case E: f2 = { x: a, y: e.y - n2.height }; break; case R: f2 = { x: a, y: e.y + e.height }; break; case W: f2 = { x: e.x + e.width, y: s }; break; case P: f2 = { x: e.x - n2.width, y: s }; break; default: f2 = { x: e.x, y: e.y }; } var c = o2 ? Le(o2) : null; if (c != null) { var u = c === "y" ? "height" : "width"; switch (i) { case U: f2[c] = f2[c] - (e[u] / 2 - n2[u] / 2); break; case J: f2[c] = f2[c] + (e[u] / 2 - n2[u] / 2); break; } } return f2; } function ne(t2, e) { e === void 0 && (e = {}); var n2 = e, r2 = n2.placement, o2 = r2 === void 0 ? t2.placement : r2, i = n2.boundary, a = i === void 0 ? Xe : i, s = n2.rootBoundary, f2 = s === void 0 ? je : s, c = n2.elementContext, u = c === void 0 ? K : c, m = n2.altBoundary, v = m === void 0 ? false : m, l = n2.padding, h2 = l === void 0 ? 0 : l, p = ft(typeof h2 != "number" ? h2 : ct(h2, G)), g = u === K ? Ye : K, x = t2.rects.popper, y = t2.elements[v ? g : u], $ = Gt(Q(y) ? y : y.contextElement || I(t2.elements.popper), a, f2), d = ee(t2.elements.reference), b = mt({ reference: d, element: x, placement: o2 }), w = Te(Object.assign({}, x, b)), O = u === K ? w : d, j2 = { top: $.top - O.top + p.top, bottom: O.bottom - $.bottom + p.bottom, left: $.left - O.left + p.left, right: O.right - $.right + p.right }, A = t2.modifiersData.offset; if (u === K && A) { var k2 = A[o2]; Object.keys(j2).forEach(function(D) { var S = [W, R].indexOf(D) >= 0 ? 1 : -1, L = [E, R].indexOf(D) >= 0 ? "y" : "x"; j2[D] += k2[L] * S; }); } return j2; } function Jt(t2, e) { e === void 0 && (e = {}); var n2 = e, r2 = n2.placement, o2 = n2.boundary, i = n2.rootBoundary, a = n2.padding, s = n2.flipVariations, f2 = n2.allowedAutoPlacements, c = f2 === void 0 ? Ee : f2, u = te(r2), m = u ? s ? De : De.filter(function(h2) { return te(h2) === u; }) : G, v = m.filter(function(h2) { return c.indexOf(h2) >= 0; }); v.length === 0 && (v = m); var l = v.reduce(function(h2, p) { return h2[p] = ne(t2, { placement: p, boundary: o2, rootBoundary: i, padding: a })[q(p)], h2; }, {}); return Object.keys(l).sort(function(h2, p) { return l[h2] - l[p]; }); } function Kt(t2) { if (q(t2) === me) return []; var e = be(t2); return [lt(t2), e, lt(e)]; } function Qt(t2) { var e = t2.state, n2 = t2.options, r2 = t2.name; if (!e.modifiersData[r2]._skip) { for (var o2 = n2.mainAxis, i = o2 === void 0 ? true : o2, a = n2.altAxis, s = a === void 0 ? true : a, f2 = n2.fallbackPlacements, c = n2.padding, u = n2.boundary, m = n2.rootBoundary, v = n2.altBoundary, l = n2.flipVariations, h2 = l === void 0 ? true : l, p = n2.allowedAutoPlacements, g = e.options.placement, x = q(g), y = x === g, $ = f2 || (y || !h2 ? [be(g)] : Kt(g)), d = [g].concat($).reduce(function(z, V) { return z.concat(q(V) === me ? Jt(e, { placement: V, boundary: u, rootBoundary: m, padding: c, flipVariations: h2, allowedAutoPlacements: p }) : V); }, []), b = e.rects.reference, w = e.rects.popper, O = /* @__PURE__ */ new Map(), j2 = true, A = d[0], k2 = 0; k2 < d.length; k2++) { var D = d[k2], S = q(D), L = te(D) === U, re2 = [E, R].indexOf(S) >= 0, oe = re2 ? "width" : "height", M = ne(e, { placement: D, boundary: u, rootBoundary: m, altBoundary: v, padding: c }), T2 = re2 ? L ? W : P : L ? R : E; b[oe] > w[oe] && (T2 = be(T2)); var pe2 = be(T2), _ = []; if (i && _.push(M[S] <= 0), s && _.push(M[T2] <= 0, M[pe2] <= 0), _.every(function(z) { return z; })) { A = D, j2 = false; break; } O.set(D, _); } if (j2) for (var ue = h2 ? 3 : 1, xe = function(z) { var V = d.find(function(de) { var ae2 = O.get(de); if (ae2) return ae2.slice(0, z).every(function(Y) { return Y; }); }); if (V) return A = V, "break"; }, ie2 = ue; ie2 > 0; ie2--) { var le = xe(ie2); if (le === "break") break; } e.placement !== A && (e.modifiersData[r2]._skip = true, e.placement = A, e.reset = true); } } var vt = { name: "flip", enabled: true, phase: "main", fn: Qt, requiresIfExists: ["offset"], data: { _skip: false } }; function gt(t2, e, n2) { return n2 === void 0 && (n2 = { x: 0, y: 0 }), { top: t2.top - e.height - n2.y, right: t2.right - e.width + n2.x, bottom: t2.bottom - e.height + n2.y, left: t2.left - e.width - n2.x }; } function yt(t2) { return [E, W, R, P].some(function(e) { return t2[e] >= 0; }); } function Zt(t2) { var e = t2.state, n2 = t2.name, r2 = e.rects.reference, o2 = e.rects.popper, i = e.modifiersData.preventOverflow, a = ne(e, { elementContext: "reference" }), s = ne(e, { altBoundary: true }), f2 = gt(a, r2), c = gt(s, o2, i), u = yt(f2), m = yt(c); e.modifiersData[n2] = { referenceClippingOffsets: f2, popperEscapeOffsets: c, isReferenceHidden: u, hasPopperEscaped: m }, e.attributes.popper = Object.assign({}, e.attributes.popper, { "data-popper-reference-hidden": u, "data-popper-escaped": m }); } var bt = { name: "hide", enabled: true, phase: "main", requiresIfExists: ["preventOverflow"], fn: Zt }; function en(t2, e, n2) { var r2 = q(t2), o2 = [P, E].indexOf(r2) >= 0 ? -1 : 1, i = typeof n2 == "function" ? n2(Object.assign({}, e, { placement: t2 })) : n2, a = i[0], s = i[1]; return a = a || 0, s = (s || 0) * o2, [P, W].indexOf(r2) >= 0 ? { x: s, y: a } : { x: a, y: s }; } function tn(t2) { var e = t2.state, n2 = t2.options, r2 = t2.name, o2 = n2.offset, i = o2 === void 0 ? [0, 0] : o2, a = Ee.reduce(function(u, m) { return u[m] = en(m, e.rects, i), u; }, {}), s = a[e.placement], f2 = s.x, c = s.y; e.modifiersData.popperOffsets != null && (e.modifiersData.popperOffsets.x += f2, e.modifiersData.popperOffsets.y += c), e.modifiersData[r2] = a; } var wt = { name: "offset", enabled: true, phase: "main", requires: ["popperOffsets"], fn: tn }; function nn(t2) { var e = t2.state, n2 = t2.name; e.modifiersData[n2] = mt({ reference: e.rects.reference, element: e.rects.popper, placement: e.placement }); } var He = { name: "popperOffsets", enabled: true, phase: "read", fn: nn, data: {} }; function rn(t2) { return t2 === "x" ? "y" : "x"; } function on(t2) { var e = t2.state, n2 = t2.options, r2 = t2.name, o2 = n2.mainAxis, i = o2 === void 0 ? true : o2, a = n2.altAxis, s = a === void 0 ? false : a, f2 = n2.boundary, c = n2.rootBoundary, u = n2.altBoundary, m = n2.padding, v = n2.tether, l = v === void 0 ? true : v, h2 = n2.tetherOffset, p = h2 === void 0 ? 0 : h2, g = ne(e, { boundary: f2, rootBoundary: c, padding: m, altBoundary: u }), x = q(e.placement), y = te(e.placement), $ = !y, d = Le(x), b = rn(d), w = e.modifiersData.popperOffsets, O = e.rects.reference, j2 = e.rects.popper, A = typeof p == "function" ? p(Object.assign({}, e.rects, { placement: e.placement })) : p, k2 = typeof A == "number" ? { mainAxis: A, altAxis: A } : Object.assign({ mainAxis: 0, altAxis: 0 }, A), D = e.modifiersData.offset ? e.modifiersData.offset[e.placement] : null, S = { x: 0, y: 0 }; if (w) { if (i) { var L, re2 = d === "y" ? E : P, oe = d === "y" ? R : W, M = d === "y" ? "height" : "width", T2 = w[d], pe2 = T2 + g[re2], _ = T2 - g[oe], ue = l ? -j2[M] / 2 : 0, xe = y === U ? O[M] : j2[M], ie2 = y === U ? -j2[M] : -O[M], le = e.elements.arrow, z = l && le ? ke(le) : { width: 0, height: 0 }, V = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : st(), de = V[re2], ae2 = V[oe], Y = fe(0, O[M], z[M]), jt = $ ? O[M] / 2 - ue - Y - de - k2.mainAxis : xe - Y - de - k2.mainAxis, Dt = $ ? -O[M] / 2 + ue + Y + ae2 + k2.mainAxis : ie2 + Y + ae2 + k2.mainAxis, Oe = e.elements.arrow && se(e.elements.arrow), Et = Oe ? d === "y" ? Oe.clientTop || 0 : Oe.clientLeft || 0 : 0, Ce = (L = D == null ? void 0 : D[d]) != null ? L : 0, Pt = T2 + jt - Ce - Et, At = T2 + Dt - Ce, qe = fe(l ? ve(pe2, Pt) : pe2, T2, l ? X(_, At) : _); w[d] = qe, S[d] = qe - T2; } if (s) { var Ve, kt = d === "x" ? E : P, Lt = d === "x" ? R : W, F = w[b], he = b === "y" ? "height" : "width", Ne = F + g[kt], Ie = F - g[Lt], $e = [E, P].indexOf(x) !== -1, _e6 = (Ve = D == null ? void 0 : D[b]) != null ? Ve : 0, ze = $e ? Ne : F - O[he] - j2[he] - _e6 + k2.altAxis, Fe2 = $e ? F + O[he] + j2[he] - _e6 - k2.altAxis : Ie, Ue = l && $e ? St(ze, F, Fe2) : fe(l ? ze : Ne, F, l ? Fe2 : Ie); w[b] = Ue, S[b] = Ue - F; } e.modifiersData[r2] = S; } } var xt = { name: "preventOverflow", enabled: true, phase: "main", fn: on, requiresIfExists: ["offset"] }; function an(t2) { return { scrollLeft: t2.scrollLeft, scrollTop: t2.scrollTop }; } function sn(t2) { return t2 === H(t2) || !B(t2) ? We(t2) : an(t2); } function fn(t2) { var e = t2.getBoundingClientRect(), n2 = Z(e.width) / t2.offsetWidth || 1, r2 = Z(e.height) / t2.offsetHeight || 1; return n2 !== 1 || r2 !== 1; } function cn(t2, e, n2) { n2 === void 0 && (n2 = false); var r2 = B(e), o2 = B(e) && fn(e), i = I(e), a = ee(t2, o2), s = { scrollLeft: 0, scrollTop: 0 }, f2 = { x: 0, y: 0 }; return (r2 || !r2 && !n2) && ((C(e) !== "body" || Se(i)) && (s = sn(e)), B(e) ? (f2 = ee(e, true), f2.x += e.clientLeft, f2.y += e.clientTop) : i && (f2.x = Be(i))), { x: a.left + s.scrollLeft - f2.x, y: a.top + s.scrollTop - f2.y, width: a.width, height: a.height }; } function pn(t2) { var e = /* @__PURE__ */ new Map(), n2 = /* @__PURE__ */ new Set(), r2 = []; t2.forEach(function(i) { e.set(i.name, i); }); function o2(i) { n2.add(i.name); var a = [].concat(i.requires || [], i.requiresIfExists || []); a.forEach(function(s) { if (!n2.has(s)) { var f2 = e.get(s); f2 && o2(f2); } }), r2.push(i); } return t2.forEach(function(i) { n2.has(i.name) || o2(i); }), r2; } function un(t2) { var e = pn(t2); return ot.reduce(function(n2, r2) { return n2.concat(e.filter(function(o2) { return o2.phase === r2; })); }, []); } function ln(t2) { var e; return function() { return e || (e = new Promise(function(n2) { Promise.resolve().then(function() { e = void 0, n2(t2()); }); })), e; }; } function dn(t2) { var e = t2.reduce(function(n2, r2) { var o2 = n2[r2.name]; return n2[r2.name] = o2 ? Object.assign({}, o2, r2, { options: Object.assign({}, o2.options, r2.options), data: Object.assign({}, o2.data, r2.data) }) : r2, n2; }, {}); return Object.keys(e).map(function(n2) { return e[n2]; }); } var Ot = { placement: "bottom", modifiers: [], strategy: "absolute" }; function $t() { for (var t2 = arguments.length, e = new Array(t2), n2 = 0; n2 < t2; n2++) e[n2] = arguments[n2]; return !e.some(function(r2) { return !(r2 && typeof r2.getBoundingClientRect == "function"); }); } function we(t2) { t2 === void 0 && (t2 = {}); var e = t2, n2 = e.defaultModifiers, r2 = n2 === void 0 ? [] : n2, o2 = e.defaultOptions, i = o2 === void 0 ? Ot : o2; return function(a, s, f2) { f2 === void 0 && (f2 = i); var c = { placement: "bottom", orderedModifiers: [], options: Object.assign({}, Ot, i), modifiersData: {}, elements: { reference: a, popper: s }, attributes: {}, styles: {} }, u = [], m = false, v = { state: c, setOptions: function(p) { var g = typeof p == "function" ? p(c.options) : p; h2(), c.options = Object.assign({}, i, c.options, g), c.scrollParents = { reference: Q(a) ? ce(a) : a.contextElement ? ce(a.contextElement) : [], popper: ce(s) }; var x = un(dn([].concat(r2, c.options.modifiers))); return c.orderedModifiers = x.filter(function(y) { return y.enabled; }), l(), v.update(); }, forceUpdate: function() { if (!m) { var p = c.elements, g = p.reference, x = p.popper; if ($t(g, x)) { c.rects = { reference: cn(g, se(x), c.options.strategy === "fixed"), popper: ke(x) }, c.reset = false, c.placement = c.options.placement, c.orderedModifiers.forEach(function(j2) { return c.modifiersData[j2.name] = Object.assign({}, j2.data); }); for (var y = 0; y < c.orderedModifiers.length; y++) { if (c.reset === true) { c.reset = false, y = -1; continue; } var $ = c.orderedModifiers[y], d = $.fn, b = $.options, w = b === void 0 ? {} : b, O = $.name; typeof d == "function" && (c = d({ state: c, options: w, name: O, instance: v }) || c); } } } }, update: ln(function() { return new Promise(function(p) { v.forceUpdate(), p(c); }); }), destroy: function() { h2(), m = true; } }; if (!$t(a, s)) return v; v.setOptions(f2).then(function(p) { !m && f2.onFirstUpdate && f2.onFirstUpdate(p); }); function l() { c.orderedModifiers.forEach(function(p) { var g = p.name, x = p.options, y = x === void 0 ? {} : x, $ = p.effect; if (typeof $ == "function") { var d = $({ state: c, name: g, instance: v, options: y }), b = function() { }; u.push(d || b); } }); } function h2() { u.forEach(function(p) { return p(); }), u = []; } return v; }; } we(); var mn = [Re, He, Me, Ae]; we({ defaultModifiers: mn }); var gn = [Re, He, Me, Ae, wt, vt, xt, pt, bt], yn = we({ defaultModifiers: gn }); const ariaProps = buildProps({ ariaLabel: String, ariaOrientation: { type: String, values: ["horizontal", "vertical", "undefined"] }, ariaControls: String }); const useAriaProps = (arias) => { return pick(ariaProps, arias); }; const POSITIONING_STRATEGIES = ["fixed", "absolute"]; const popperCoreConfigProps = buildProps({ boundariesPadding: { type: Number, default: 0 }, fallbackPlacements: { type: definePropType(Array), default: void 0 }, gpuAcceleration: { type: Boolean, default: true }, offset: { type: Number, default: 12 }, placement: { type: String, values: Ee, default: "bottom" }, popperOptions: { type: definePropType(Object), default: () => ({}) }, strategy: { type: String, values: POSITIONING_STRATEGIES, default: "absolute" } }); const popperContentProps = buildProps({ ...popperCoreConfigProps, id: String, style: { type: definePropType([String, Array, Object]) }, className: { type: definePropType([String, Array, Object]) }, effect: { type: definePropType(String), default: "dark" }, visible: Boolean, enterable: { type: Boolean, default: true }, pure: Boolean, focusOnShow: { type: Boolean, default: false }, trapping: { type: Boolean, default: false }, popperClass: { type: definePropType([String, Array, Object]) }, popperStyle: { type: definePropType([String, Array, Object]) }, referenceEl: { type: definePropType(Object) }, triggerTargetEl: { type: definePropType(Object) }, stopPopperMouseEvent: { type: Boolean, default: true }, virtualTriggering: Boolean, zIndex: Number, ...useAriaProps(["ariaLabel"]) }); const popperContentEmits = { mouseenter: (evt) => evt instanceof MouseEvent, mouseleave: (evt) => evt instanceof MouseEvent, focus: () => true, blur: () => true, close: () => true }; const usePopperContentFocusTrap = (props, emit) => { const trapped = ref(false); const focusStartRef = ref(); const onFocusAfterTrapped = () => { emit("focus"); }; const onFocusAfterReleased = (event) => { var _a2; if (((_a2 = event.detail) == null ? void 0 : _a2.focusReason) !== "pointer") { focusStartRef.value = "first"; emit("blur"); } }; const onFocusInTrap = (event) => { if (props.visible && !trapped.value) { if (event.target) { focusStartRef.value = event.target; } trapped.value = true; } }; const onFocusoutPrevented = (event) => { if (!props.trapping) { if (event.detail.focusReason === "pointer") { event.preventDefault(); } trapped.value = false; } }; const onReleaseRequested = () => { trapped.value = false; emit("close"); }; return { focusStartRef, trapped, onFocusAfterReleased, onFocusAfterTrapped, onFocusInTrap, onFocusoutPrevented, onReleaseRequested }; }; const buildPopperOptions = (props, modifiers = []) => { const { placement, strategy, popperOptions } = props; const options = { placement, strategy, ...popperOptions, modifiers: [...genModifiers(props), ...modifiers] }; deriveExtraModifiers(options, popperOptions == null ? void 0 : popperOptions.modifiers); return options; }; const unwrapMeasurableEl = ($el) => { return; }; function genModifiers(options) { const { offset, gpuAcceleration, fallbackPlacements } = options; return [ { name: "offset", options: { offset: [0, offset != null ? offset : 12] } }, { name: "preventOverflow", options: { padding: { top: 2, bottom: 2, left: 5, right: 5 } } }, { name: "flip", options: { padding: 5, fallbackPlacements } }, { name: "computeStyles", options: { gpuAcceleration } } ]; } function deriveExtraModifiers(options, modifiers) { if (modifiers) { options.modifiers = [...options.modifiers, ...modifiers != null ? modifiers : []]; } } const usePopper = (referenceElementRef, popperElementRef, opts = {}) => { const stateUpdater = { name: "updateState", enabled: true, phase: "write", fn: ({ state }) => { const derivedState = deriveState(state); Object.assign(states.value, derivedState); }, requires: ["computeStyles"] }; const options = computed(() => { const { onFirstUpdate, placement, strategy, modifiers } = unref(opts); return { onFirstUpdate, placement: placement || "bottom", strategy: strategy || "absolute", modifiers: [ ...modifiers || [], stateUpdater, { name: "applyStyles", enabled: false } ] }; }); const instanceRef = shallowRef(); const states = ref({ styles: { popper: { position: unref(options).strategy, left: "0", top: "0" }, arrow: { position: "absolute" } }, attributes: {} }); const destroy = () => { if (!instanceRef.value) return; instanceRef.value.destroy(); instanceRef.value = void 0; }; watch(options, (newOptions) => { const instance = unref(instanceRef); if (instance) { instance.setOptions(newOptions); } }, { deep: true }); watch([referenceElementRef, popperElementRef], ([referenceElement, popperElement]) => { destroy(); if (!referenceElement || !popperElement) return; instanceRef.value = yn(referenceElement, popperElement, unref(options)); }); return { state: computed(() => { var _a2; return { ...((_a2 = unref(instanceRef)) == null ? void 0 : _a2.state) || {} }; }), styles: computed(() => unref(states).styles), attributes: computed(() => unref(states).attributes), update: () => { var _a2; return (_a2 = unref(instanceRef)) == null ? void 0 : _a2.update(); }, forceUpdate: () => { var _a2; return (_a2 = unref(instanceRef)) == null ? void 0 : _a2.forceUpdate(); }, instanceRef: computed(() => unref(instanceRef)) }; }; function deriveState(state) { const elements = Object.keys(state.elements); const styles = fromPairs(elements.map((element) => [element, state.styles[element] || {}])); const attributes = fromPairs(elements.map((element) => [element, state.attributes[element]])); return { styles, attributes }; } const DEFAULT_ARROW_OFFSET = 0; const usePopperContent = (props) => { const { popperInstanceRef, contentRef, triggerRef, role } = inject(POPPER_INJECTION_KEY, void 0); const arrowRef = ref(); const arrowOffset = ref(); const eventListenerModifier = computed(() => { return { name: "eventListeners", enabled: !!props.visible }; }); const arrowModifier = computed(() => { var _a2; const arrowEl = unref(arrowRef); const offset = (_a2 = unref(arrowOffset)) != null ? _a2 : DEFAULT_ARROW_OFFSET; return { name: "arrow", enabled: !isUndefined$1(arrowEl), options: { element: arrowEl, padding: offset } }; }); const options = computed(() => { return { onFirstUpdate: () => { update(); }, ...buildPopperOptions(props, [ unref(arrowModifier), unref(eventListenerModifier) ]) }; }); const computedReference = computed(() => unwrapMeasurableEl(props.referenceEl) || unref(triggerRef)); const { attributes, state, styles, update, forceUpdate, instanceRef } = usePopper(computedReference, contentRef, options); watch(instanceRef, (instance) => popperInstanceRef.value = instance); return { attributes, arrowRef, contentRef, instanceRef, state, styles, role, forceUpdate, update }; }; const usePopperContentDOM = (props, { attributes, styles, role }) => { const { nextZIndex } = useZIndex(); const ns2 = useNamespace("popper"); const contentAttrs = computed(() => unref(attributes).popper); const contentZIndex = ref(isNumber(props.zIndex) ? props.zIndex : nextZIndex()); const contentClass = computed(() => [ ns2.b(), ns2.is("pure", props.pure), ns2.is(props.effect), props.popperClass ]); const contentStyle = computed(() => { return [ { zIndex: unref(contentZIndex) }, unref(styles).popper, props.popperStyle || {} ]; }); const ariaModal = computed(() => role.value === "dialog" ? "false" : void 0); const arrowStyle = computed(() => unref(styles).arrow || {}); const updateZIndex = () => { contentZIndex.value = isNumber(props.zIndex) ? props.zIndex : nextZIndex(); }; return { ariaModal, arrowStyle, contentAttrs, contentClass, contentStyle, contentZIndex, updateZIndex }; }; const formContextKey = Symbol("formContextKey"); const formItemContextKey = Symbol("formItemContextKey"); const __default__$9 = defineComponent({ name: "ElPopperContent" }); const _sfc_main$h = /* @__PURE__ */ defineComponent({ ...__default__$9, props: popperContentProps, emits: popperContentEmits, setup(__props, { expose, emit }) { const props = __props; const { focusStartRef, trapped, onFocusAfterReleased, onFocusAfterTrapped, onFocusInTrap, onFocusoutPrevented, onReleaseRequested } = usePopperContentFocusTrap(props, emit); const { attributes, arrowRef, contentRef, styles, instanceRef, role, update } = usePopperContent(props); const { arrowStyle, contentAttrs, contentClass, contentStyle, updateZIndex } = usePopperContentDOM(props, { styles, attributes, role }); const formItemContext = inject(formItemContextKey, void 0); const arrowOffset = ref(); provide(POPPER_CONTENT_INJECTION_KEY, { arrowStyle, arrowRef, arrowOffset }); if (formItemContext) { provide(formItemContextKey, { ...formItemContext, addInputId: shared_cjs_prodExports.NOOP, removeInputId: shared_cjs_prodExports.NOOP }); } const updatePopper = (shouldUpdateZIndex = true) => { update(); shouldUpdateZIndex && updateZIndex(); }; expose({ popperContentRef: contentRef, popperInstanceRef: instanceRef, updatePopper, contentStyle }); return (_ctx, _cache) => { return openBlock(), createElementBlock("div", mergeProps({ ref_key: "contentRef", ref: contentRef }, unref(contentAttrs), { style: unref(contentStyle), class: unref(contentClass), tabindex: "-1", onMouseenter: (e) => _ctx.$emit("mouseenter", e), onMouseleave: (e) => _ctx.$emit("mouseleave", e) }), [ createVNode(unref(ElFocusTrap), { trapped: unref(trapped), "trap-on-focus-in": true, "focus-trap-el": unref(contentRef), "focus-start-el": unref(focusStartRef), onFocusAfterTrapped: unref(onFocusAfterTrapped), onFocusAfterReleased: unref(onFocusAfterReleased), onFocusin: unref(onFocusInTrap), onFocusoutPrevented: unref(onFocusoutPrevented), onReleaseRequested: unref(onReleaseRequested) }, { default: withCtx(() => [ renderSlot(_ctx.$slots, "default") ]), _: 3 }, 8, ["trapped", "focus-trap-el", "focus-start-el", "onFocusAfterTrapped", "onFocusAfterReleased", "onFocusin", "onFocusoutPrevented", "onReleaseRequested"]) ], 16, ["onMouseenter", "onMouseleave"]); }; } }); var ElPopperContent = /* @__PURE__ */ _export_sfc$1(_sfc_main$h, [["__file", "content.vue"]]); const withInstall = (main, extra) => { main.install = (app) => { for (const comp of [main, ...Object.values(extra != null ? extra : {})]) { app.component(comp.name, comp); } }; if (extra) { for (const [key, comp] of Object.entries(extra)) { main[key] = comp; } } return main; }; const withInstallFunction = (fn2, name) => { fn2.install = (app) => { fn2._context = app._context; app.config.globalProperties[name] = fn2; }; return fn2; }; const withInstallDirective = (directive, name) => { directive.install = (app) => { app.directive(name, directive); }; return directive; }; const withNoopInstall = (component) => { component.install = shared_cjs_prodExports.NOOP; return component; }; const ElPopper = withInstall(Popper); const TOOLTIP_INJECTION_KEY = Symbol("elTooltip"); function useTimeout() { let timeoutHandle; const registerTimeout = (fn2, delay) => { cancelTimeout(); timeoutHandle = (void 0).setTimeout(fn2, delay); }; const cancelTimeout = () => (void 0).clearTimeout(timeoutHandle); tryOnScopeDispose(() => cancelTimeout()); return { registerTimeout, cancelTimeout }; } const useDelayedToggleProps = buildProps({ showAfter: { type: Number, default: 0 }, hideAfter: { type: Number, default: 200 }, autoClose: { type: Number, default: 0 } }); const useDelayedToggle = ({ showAfter, hideAfter, autoClose, open, close }) => { const { registerTimeout } = useTimeout(); const { registerTimeout: registerTimeoutForAutoClose, cancelTimeout: cancelTimeoutForAutoClose } = useTimeout(); const onOpen = (event) => { registerTimeout(() => { open(event); const _autoClose = unref(autoClose); if (isNumber(_autoClose) && _autoClose > 0) { registerTimeoutForAutoClose(() => { close(event); }, _autoClose); } }, unref(showAfter)); }; const onClose = (event) => { cancelTimeoutForAutoClose(); registerTimeout(() => { close(event); }, unref(hideAfter)); }; return { onOpen, onClose }; }; const useTooltipContentProps = buildProps({ ...useDelayedToggleProps, ...popperContentProps, appendTo: { type: definePropType([String, Object]) }, content: { type: String, default: "" }, rawContent: Boolean, persistent: Boolean, visible: { type: definePropType(Boolean), default: null }, transition: String, teleported: { type: Boolean, default: true }, disabled: Boolean, ...useAriaProps(["ariaLabel"]) }); const useTooltipTriggerProps = buildProps({ ...popperTriggerProps, disabled: Boolean, trigger: { type: definePropType([String, Array]), default: "hover" }, triggerKeys: { type: definePropType(Array), default: () => [EVENT_CODE.enter, EVENT_CODE.numpadEnter, EVENT_CODE.space] } }); const _prop = buildProp({ type: definePropType(Boolean), default: null }); const _event = buildProp({ type: definePropType(Function) }); const createModelToggleComposable = (name) => { const updateEventKey = `update:${name}`; const updateEventKeyRaw2 = `onUpdate:${name}`; const useModelToggleEmits2 = [updateEventKey]; const useModelToggleProps2 = { [name]: _prop, [updateEventKeyRaw2]: _event }; const useModelToggle2 = ({ indicator, toggleReason, shouldHideWhenRouteChanges, shouldProceed, onShow, onHide }) => { const instance = getCurrentInstance(); const { emit } = instance; const props = instance.props; const hasUpdateHandler = computed(() => shared_cjs_prodExports.isFunction(props[updateEventKeyRaw2])); const isModelBindingAbsent = computed(() => props[name] === null); const doShow = (event) => { if (indicator.value === true) { return; } indicator.value = true; if (toggleReason) { toggleReason.value = event; } if (shared_cjs_prodExports.isFunction(onShow)) { onShow(event); } }; const doHide = (event) => { if (indicator.value === false) { return; } indicator.value = false; if (toggleReason) { toggleReason.value = event; } if (shared_cjs_prodExports.isFunction(onHide)) { onHide(event); } }; const show = (event) => { if (props.disabled === true || shared_cjs_prodExports.isFunction(shouldProceed) && !shouldProceed()) return; hasUpdateHandler.value && isClient; if (isModelBindingAbsent.value || true) { doShow(event); } }; const hide = (event) => { if (props.disabled === true || true) return; }; const onChange = (val) => { if (!isBoolean(val)) return; if (props.disabled && val) { if (hasUpdateHandler.value) { emit(updateEventKey, false); } } else if (indicator.value !== val) { if (val) { doShow(); } else { doHide(); } } }; const toggle = () => { if (indicator.value) { hide(); } else { show(); } }; watch(() => props[name], onChange); if (shouldHideWhenRouteChanges && instance.appContext.config.globalProperties.$route !== void 0) { watch(() => ({ ...instance.proxy.$route }), () => { if (shouldHideWhenRouteChanges.value && indicator.value) { hide(); } }); } return { hide, show, toggle, hasUpdateHandler }; }; return { useModelToggle: useModelToggle2, useModelToggleProps: useModelToggleProps2, useModelToggleEmits: useModelToggleEmits2 }; }; const { useModelToggleProps: useTooltipModelToggleProps, useModelToggleEmits: useTooltipModelToggleEmits, useModelToggle: useTooltipModelToggle } = createModelToggleComposable("visible"); const useTooltipProps = buildProps({ ...popperProps, ...useTooltipModelToggleProps, ...useTooltipContentProps, ...useTooltipTriggerProps, ...popperArrowProps, showArrow: { type: Boolean, default: true } }); const tooltipEmits = [ ...useTooltipModelToggleEmits, "before-show", "before-hide", "show", "hide", "open", "close" ]; const isTriggerType = (trigger, type) => { if (shared_cjs_prodExports.isArray(trigger)) { return trigger.includes(type); } return trigger === type; }; const whenTrigger = (trigger, type, handler) => { return (e) => { isTriggerType(unref(trigger), type) && handler(e); }; }; const composeEventHandlers = (theirsHandler, oursHandler, { checkForDefaultPrevented = true } = {}) => { const handleEvent = (event) => { const shouldPrevent = theirsHandler == null ? void 0 : theirsHandler(event); if (checkForDefaultPrevented === false || !shouldPrevent) { return oursHandler == null ? void 0 : oursHandler(event); } }; return handleEvent; }; const __default__$8 = defineComponent({ name: "ElTooltipTrigger" }); const _sfc_main$g = /* @__PURE__ */ defineComponent({ ...__default__$8, props: useTooltipTriggerProps, setup(__props, { expose }) { const props = __props; const ns2 = useNamespace("tooltip"); const { controlled, id, open, onOpen, onClose, onToggle } = inject(TOOLTIP_INJECTION_KEY, void 0); const triggerRef = ref(null); const stopWhenControlledOrDisabled = () => { if (unref(controlled) || props.disabled) { return true; } }; const trigger = toRef(props, "trigger"); const onMouseenter = composeEventHandlers(stopWhenControlledOrDisabled, whenTrigger(trigger, "hover", onOpen)); const onMouseleave = composeEventHandlers(stopWhenControlledOrDisabled, whenTrigger(trigger, "hover", onClose)); const onClick = composeEventHandlers(stopWhenControlledOrDisabled, whenTrigger(trigger, "click", (e) => { if (e.button === 0) { onToggle(e); } })); const onFocus = composeEventHandlers(stopWhenControlledOrDisabled, whenTrigger(trigger, "focus", onOpen)); const onBlur = composeEventHandlers(stopWhenControlledOrDisabled, whenTrigger(trigger, "focus", onClose)); const onContextMenu = composeEventHandlers(stopWhenControlledOrDisabled, whenTrigger(trigger, "contextmenu", (e) => { e.preventDefault(); onToggle(e); })); const onKeydown = composeEventHandlers(stopWhenControlledOrDisabled, (e) => { const { code } = e; if (props.triggerKeys.includes(code)) { e.preventDefault(); onToggle(e); } }); expose({ triggerRef }); return (_ctx, _cache) => { return openBlock(), createBlock(unref(ElPopperTrigger), { id: unref(id), "virtual-ref": _ctx.virtualRef, open: unref(open), "virtual-triggering": _ctx.virtualTriggering, class: normalizeClass(unref(ns2).e("trigger")), onBlur: unref(onBlur), onClick: unref(onClick), onContextmenu: unref(onContextMenu), onFocus: unref(onFocus), onMouseenter: unref(onMouseenter), onMouseleave: unref(onMouseleave), onKeydown: unref(onKeydown) }, { default: withCtx(() => [ renderSlot(_ctx.$slots, "default") ]), _: 3 }, 8, ["id", "virtual-ref", "open", "virtual-triggering", "class", "onBlur", "onClick", "onContextmenu", "onFocus", "onMouseenter", "onMouseleave", "onKeydown"]); }; } }); var ElTooltipTrigger = /* @__PURE__ */ _export_sfc$1(_sfc_main$g, [["__file", "trigger.vue"]]); const teleportProps = buildProps({ to: { type: definePropType([String, Object]), required: true }, disabled: Boolean }); const _sfc_main$f = /* @__PURE__ */ defineComponent({ __name: "teleport", props: teleportProps, setup(__props) { return (_ctx, _cache) => { return _ctx.disabled ? renderSlot(_ctx.$slots, "default", { key: 0 }) : (openBlock(), createBlock(Teleport$1, { key: 1, to: _ctx.to }, [ renderSlot(_ctx.$slots, "default") ], 8, ["to"])); }; } }); var Teleport = /* @__PURE__ */ _export_sfc$1(_sfc_main$f, [["__file", "teleport.vue"]]); const ElTeleport = withInstall(Teleport); const usePopperContainerId = () => { const namespace = useGetDerivedNamespace(); const idInjection = useIdInjection(); const id = computed(() => { return `${namespace.value}-popper-container-${idInjection.prefix}`; }); const selector = computed(() => `#${id.value}`); return { id, selector }; }; const usePopperContainer = () => { const { id, selector } = usePopperContainerId(); return { id, selector }; }; const __default__$7 = defineComponent({ name: "ElTooltipContent", inheritAttrs: false }); const _sfc_main$e = /* @__PURE__ */ defineComponent({ ...__default__$7, props: useTooltipContentProps, setup(__props, { expose }) { const props = __props; const { selector } = usePopperContainerId(); const ns2 = useNamespace("tooltip"); const contentRef = ref(); let stopHandle; const { controlled, id, open, trigger, onClose, onOpen, onShow, onHide, onBeforeShow, onBeforeHide } = inject(TOOLTIP_INJECTION_KEY, void 0); const transitionClass = computed(() => { return props.transition || `${ns2.namespace.value}-fade-in-linear`; }); const persistentRef = computed(() => { return props.persistent; }); const shouldRender = computed(() => { return unref(persistentRef) ? true : unref(open); }); const shouldShow = computed(() => { return props.disabled ? false : unref(open); }); const appendTo = computed(() => { return props.appendTo || selector.value; }); const contentStyle = computed(() => { var _a2; return (_a2 = props.style) != null ? _a2 : {}; }); const ariaHidden = ref(true); const onTransitionLeave = () => { onHide(); isFocusInsideContent() && tryFocus((void 0).body); ariaHidden.value = true; }; const stopWhenControlled = () => { if (unref(controlled)) return true; }; const onContentEnter = composeEventHandlers(stopWhenControlled, () => { if (props.enterable && unref(trigger) === "hover") { onOpen(); } }); const onContentLeave = composeEventHandlers(stopWhenControlled, () => { if (unref(trigger) === "hover") { onClose(); } }); const onBeforeEnter = () => { var _a2, _b2; (_b2 = (_a2 = contentRef.value) == null ? void 0 : _a2.updatePopper) == null ? void 0 : _b2.call(_a2); onBeforeShow == null ? void 0 : onBeforeShow(); }; const onBeforeLeave = () => { onBeforeHide == null ? void 0 : onBeforeHide(); }; const onAfterShow = () => { onShow(); stopHandle = onClickOutside(computed(() => { var _a2; return (_a2 = contentRef.value) == null ? void 0 : _a2.popperContentRef; }), () => { if (unref(controlled)) return; const $trigger = unref(trigger); if ($trigger !== "hover") { onClose(); } }); }; const onBlur = () => { if (!props.virtualTriggering) { onClose(); } }; const isFocusInsideContent = (event) => { var _a2; const popperContent = (_a2 = contentRef.value) == null ? void 0 : _a2.popperContentRef; const activeElement = (event == null ? void 0 : event.relatedTarget) || (void 0).activeElement; return popperContent == null ? void 0 : popperContent.contains(activeElement); }; watch(() => unref(open), (val) => { if (!val) { stopHandle == null ? void 0 : stopHandle(); } else { ariaHidden.value = false; } }, { flush: "post" }); watch(() => props.content, () => { var _a2, _b2; (_b2 = (_a2 = contentRef.value) == null ? void 0 : _a2.updatePopper) == null ? void 0 : _b2.call(_a2); }); expose({ contentRef, isFocusInsideContent }); return (_ctx, _cache) => { return openBlock(), createBlock(unref(ElTeleport), { disabled: !_ctx.teleported, to: unref(appendTo) }, { default: withCtx(() => [ createVNode(Transition, { name: unref(transitionClass), onAfterLeave: onTransitionLeave, onBeforeEnter, onAfterEnter: onAfterShow, onBeforeLeave }, { default: withCtx(() => [ unref(shouldRender) ? withDirectives((openBlock(), createBlock(unref(ElPopperContent), mergeProps({ key: 0, id: unref(id), ref_key: "contentRef", ref: contentRef }, _ctx.$attrs, { "aria-label": _ctx.ariaLabel, "aria-hidden": ariaHidden.value, "boundaries-padding": _ctx.boundariesPadding, "fallback-placements": _ctx.fallbackPlacements, "gpu-acceleration": _ctx.gpuAcceleration, offset: _ctx.offset, placement: _ctx.placement, "popper-options": _ctx.popperOptions, strategy: _ctx.strategy, effect: _ctx.effect, enterable: _ctx.enterable, pure: _ctx.pure, "popper-class": _ctx.popperClass, "popper-style": [_ctx.popperStyle, unref(contentStyle)], "reference-el": _ctx.referenceEl, "trigger-target-el": _ctx.triggerTargetEl, visible: unref(shouldShow), "z-index": _ctx.zIndex, onMouseenter: unref(onContentEnter), onMouseleave: unref(onContentLeave), onBlur, onClose: unref(onClose) }), { default: withCtx(() => [ renderSlot(_ctx.$slots, "default") ]), _: 3 }, 16, ["id", "aria-label", "aria-hidden", "boundaries-padding", "fallback-placements", "gpu-acceleration", "offset", "placement", "popper-options", "strategy", "effect", "enterable", "pure", "popper-class", "popper-style", "reference-el", "trigger-target-el", "visible", "z-index", "onMouseenter", "onMouseleave", "onClose"])), [ [vShow, unref(shouldShow)] ]) : createCommentVNode("v-if", true) ]), _: 3 }, 8, ["name"]) ]), _: 3 }, 8, ["disabled", "to"]); }; } }); var ElTooltipContent = /* @__PURE__ */ _export_sfc$1(_sfc_main$e, [["__file", "content.vue"]]); const __default__$6 = defineComponent({ name: "ElTooltip" }); const _sfc_main$d = /* @__PURE__ */ defineComponent({ ...__default__$6, props: useTooltipProps, emits: tooltipEmits, setup(__props, { expose, emit }) { const props = __props; usePopperContainer(); const id = useId(); const popperRef = ref(); const contentRef = ref(); const updatePopper = () => { var _a2; const popperComponent = unref(popperRef); if (popperComponent) { (_a2 = popperComponent.popperInstanceRef) == null ? void 0 : _a2.update(); } }; const open = ref(false); const toggleReason = ref(); const { show, hide, hasUpdateHandler } = useTooltipModelToggle({ indicator: open, toggleReason }); const { onOpen, onClose } = useDelayedToggle({ showAfter: toRef(props, "showAfter"), hideAfter: toRef(props, "hideAfter"), autoClose: toRef(props, "autoClose"), open: show, close: hide }); const controlled = computed(() => isBoolean(props.visible) && !hasUpdateHandler.value); provide(TOOLTIP_INJECTION_KEY, { controlled, id, open: readonly(open), trigger: toRef(props, "trigger"), onOpen: (event) => { onOpen(event); }, onClose: (event) => { onClose(event); }, onToggle: (event) => { if (unref(open)) { onClose(event); } else { onOpen(event); } }, onShow: () => { emit("show", toggleReason.value); }, onHide: () => { emit("hide", toggleReason.value); }, onBeforeShow: () => { emit("before-show", toggleReason.value); }, onBeforeHide: () => { emit("before-hide", toggleReason.value); }, updatePopper }); watch(() => props.disabled, (disabled) => { if (disabled && open.value) { open.value = false; } }); const isFocusInsideContent = (event) => { var _a2; return (_a2 = contentRef.value) == null ? void 0 : _a2.isFocusInsideContent(event); }; expose({ popperRef, contentRef, isFocusInsideContent, updatePopper, onOpen, onClose, hide }); return (_ctx, _cache) => { return openBlock(), createBlock(unref(ElPopper), { ref_key: "popperRef", ref: popperRef, role: _ctx.role }, { default: withCtx(() => [ createVNode(ElTooltipTrigger, { disabled: _ctx.disabled, trigger: _ctx.trigger, "trigger-keys": _ctx.triggerKeys, "virtual-ref": _ctx.virtualRef, "virtual-triggering": _ctx.virtualTriggering }, { default: withCtx(() => [ _ctx.$slots.default ? renderSlot(_ctx.$slots, "default", { key: 0 }) : createCommentVNode("v-if", true) ]), _: 3 }, 8, ["disabled", "trigger", "trigger-keys", "virtual-ref", "virtual-triggering"]), createVNode(ElTooltipContent, { ref_key: "contentRef", ref: contentRef, "aria-label": _ctx.ariaLabel, "boundaries-padding": _ctx.boundariesPadding, content: _ctx.content, disabled: _ctx.disabled, effect: _ctx.effect, enterable: _ctx.enterable, "fallback-placements": _ctx.fallbackPlacements, "hide-after": _ctx.hideAfter, "gpu-acceleration": _ctx.gpuAcceleration, offset: _ctx.offset, persistent: _ctx.persistent, "popper-class": _ctx.popperClass, "popper-style": _ctx.popperStyle, placement: _ctx.placement, "popper-options": _ctx.popperOptions, pure: _ctx.pure, "raw-content": _ctx.rawContent, "reference-el": _ctx.referenceEl, "trigger-target-el": _ctx.triggerTargetEl, "show-after": _ctx.showAfter, strategy: _ctx.strategy, teleported: _ctx.teleported, transition: _ctx.transition, "virtual-triggering": _ctx.virtualTriggering, "z-index": _ctx.zIndex, "append-to": _ctx.appendTo }, { default: withCtx(() => [ renderSlot(_ctx.$slots, "content", {}, () => [ _ctx.rawContent ? (openBlock(), createElementBlock("span", { key: 0, innerHTML: _ctx.content }, null, 8, ["innerHTML"])) : (openBlock(), createElementBlock("span", { key: 1 }, toDisplayString(_ctx.content), 1)) ]), _ctx.showArrow ? (openBlock(), createBlock(unref(ElPopperArrow), { key: 0, "arrow-offset": _ctx.arrowOffset }, null, 8, ["arrow-offset"])) : createCommentVNode("v-if", true) ]), _: 3 }, 8, ["aria-label", "boundaries-padding", "content", "disabled", "effect", "enterable", "fallback-placements", "hide-after", "gpu-acceleration", "offset", "persistent", "popper-class", "popper-style", "placement", "popper-options", "pure", "raw-content", "reference-el", "trigger-target-el", "show-after", "strategy", "teleported", "transition", "virtual-triggering", "z-index", "append-to"]) ]), _: 3 }, 8, ["role"]); }; } }); var Tooltip = /* @__PURE__ */ _export_sfc$1(_sfc_main$d, [["__file", "tooltip.vue"]]); const ElTooltip = withInstall(Tooltip); /*! Element Plus Icons Vue v2.3.1 */ var close_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({ name: "Close", __name: "close", setup(__props) { return (_ctx, _cache) => (openBlock(), createElementBlock("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 1024 1024" }, [ createElementVNode("path", { fill: "currentColor", d: "M764.288 214.592 512 466.88 259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512 214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z" }) ])); } }); var close_default = close_vue_vue_type_script_setup_true_lang_default; var loading_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({ name: "Loading", __name: "loading", setup(__props) { return (_ctx, _cache) => (openBlock(), createElementBlock("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 1024 1024" }, [ createElementVNode("path", { fill: "currentColor", d: "M512 64a32 32 0 0 1 32 32v192a32 32 0 0 1-64 0V96a32 32 0 0 1 32-32m0 640a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V736a32 32 0 0 1 32-32m448-192a32 32 0 0 1-32 32H736a32 32 0 1 1 0-64h192a32 32 0 0 1 32 32m-640 0a32 32 0 0 1-32 32H96a32 32 0 0 1 0-64h192a32 32 0 0 1 32 32M195.2 195.2a32 32 0 0 1 45.248 0L376.32 331.008a32 32 0 0 1-45.248 45.248L195.2 240.448a32 32 0 0 1 0-45.248zm452.544 452.544a32 32 0 0 1 45.248 0L828.8 783.552a32 32 0 0 1-45.248 45.248L647.744 692.992a32 32 0 0 1 0-45.248zM828.8 195.264a32 32 0 0 1 0 45.184L692.992 376.32a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0m-452.544 452.48a32 32 0 0 1 0 45.248L240.448 828.8a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0z" }) ])); } }); var loading_default = loading_vue_vue_type_script_setup_true_lang_default; const iconPropType = definePropType([ String, Object, Function ]); const CloseComponents = { Close: close_default }; const _sfc_main$c = /* @__PURE__ */ defineComponent({ inheritAttrs: false }); function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) { return renderSlot(_ctx.$slots, "default"); } var Collection = /* @__PURE__ */ _export_sfc$1(_sfc_main$c, [["render", _sfc_render$1], ["__file", "collection.vue"]]); const _sfc_main$b = /* @__PURE__ */ defineComponent({ name: "ElCollectionItem", inheritAttrs: false }); function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) { return renderSlot(_ctx.$slots, "default"); } var CollectionItem = /* @__PURE__ */ _export_sfc$1(_sfc_main$b, [["render", _sfc_render], ["__file", "collection-item.vue"]]); const COLLECTION_ITEM_SIGN = `data-el-collection-item`; const createCollectionWithScope = (name) => { const COLLECTION_NAME = `El${name}Collection`; const COLLECTION_ITEM_NAME = `${COLLECTION_NAME}Item`; const COLLECTION_INJECTION_KEY = Symbol(COLLECTION_NAME); const COLLECTION_ITEM_INJECTION_KEY = Symbol(COLLECTION_ITEM_NAME); const ElCollection = { ...Collection, name: COLLECTION_NAME, setup() { const collectionRef = ref(); const itemMap = /* @__PURE__ */ new Map(); const getItems = () => { const collectionEl = unref(collectionRef); if (!collectionEl) return []; const orderedNodes = Array.from(collectionEl.querySelectorAll(`[${COLLECTION_ITEM_SIGN}]`)); const items = [...itemMap.values()]; return items.sort((a, b) => orderedNodes.indexOf(a.ref) - orderedNodes.indexOf(b.ref)); }; provide(COLLECTION_INJECTION_KEY, { itemMap, getItems, collectionRef }); } }; const ElCollectionItem = { ...CollectionItem, name: COLLECTION_ITEM_NAME, setup(_, { attrs }) { const collectionItemRef = ref(); inject(COLLECTION_INJECTION_KEY, void 0); provide(COLLECTION_ITEM_INJECTION_KEY, { collectionItemRef }); } }; return { COLLECTION_INJECTION_KEY, COLLECTION_ITEM_INJECTION_KEY, ElCollection, ElCollectionItem }; }; const dropdownProps = buildProps({ trigger: useTooltipTriggerProps.trigger, triggerKeys: { type: definePropType(Array), default: () => [ EVENT_CODE.enter, EVENT_CODE.numpadEnter, EVENT_CODE.space, EVENT_CODE.down ] }, effect: { ...useTooltipContentProps.effect, default: "light" }, type: { type: definePropType(String) }, placement: { type: definePropType(String), default: "bottom" }, popperOptions: { type: definePropType(Object), default: () => ({}) }, id: String, size: { type: String, default: "" }, splitButton: Boolean, hideOnClick: { type: Boolean, default: true }, loop: { type: Boolean, default: true }, showTimeout: { type: Number, default: 150 }, hideTimeout: { type: Number, default: 150 }, tabindex: { type: definePropType([Number, String]), default: 0 }, maxHeight: { type: definePropType([Number, String]), default: "" }, popperClass: { type: String, default: "" }, disabled: Boolean, role: { type: String, values: roleTypes, default: "menu" }, buttonProps: { type: definePropType(Object) }, teleported: useTooltipContentProps.teleported, persistent: { type: Boolean, default: true } }); buildProps({ command: { type: [Object, String, Number], default: () => ({}) }, disabled: Boolean, divided: Boolean, textValue: String, icon: { type: iconPropType } }); buildProps({ onKeydown: { type: definePropType(Function) } }); createCollectionWithScope("Dropdown"); const popoverProps = buildProps({ trigger: useTooltipTriggerProps.trigger, placement: dropdownProps.placement, disabled: useTooltipTriggerProps.disabled, visible: useTooltipContentProps.visible, transition: useTooltipContentProps.transition, popperOptions: dropdownProps.popperOptions, tabindex: dropdownProps.tabindex, content: useTooltipContentProps.content, popperStyle: useTooltipContentProps.popperStyle, popperClass: useTooltipContentProps.popperClass, enterable: { ...useTooltipContentProps.enterable, default: true }, effect: { ...useTooltipContentProps.effect, default: "light" }, teleported: useTooltipContentProps.teleported, title: String, width: { type: [String, Number], default: 150 }, offset: { type: Number, default: void 0 }, showAfter: { type: Number, default: 0 }, hideAfter: { type: Number, default: 200 }, autoClose: { type: Number, default: 0 }, showArrow: { type: Boolean, default: true }, persistent: { type: Boolean, default: true }, "onUpdate:visible": { type: Function } }); const popoverEmits = { "update:visible": (value) => isBoolean(value), "before-enter": () => true, "before-leave": () => true, "after-enter": () => true, "after-leave": () => true }; const keysOf = (arr) => Object.keys(arr); function addUnit(value, defaultUnit = "px") { if (!value) return ""; if (isNumber(value) || isStringNumber(value)) { return `${value}${defaultUnit}`; } else if (shared_cjs_prodExports.isString(value)) { return value; } } const updateEventKeyRaw = `onUpdate:visible`; const __default__$5 = defineComponent({ name: "ElPopover" }); const _sfc_main$a = /* @__PURE__ */ defineComponent({ ...__default__$5, props: popoverProps, emits: popoverEmits, setup(__props, { expose, emit }) { const props = __props; const onUpdateVisible = computed(() => { return props[updateEventKeyRaw]; }); const ns2 = useNamespace("popover"); const tooltipRef = ref(); const popperRef = computed(() => { var _a2; return (_a2 = unref(tooltipRef)) == null ? void 0 : _a2.popperRef; }); const style = computed(() => { return [ { width: addUnit(props.width) }, props.popperStyle ]; }); const kls = computed(() => { return [ns2.b(), props.popperClass, { [ns2.m("plain")]: !!props.content }]; }); const gpuAcceleration = computed(() => { return props.transition === `${ns2.namespace.value}-fade-in-linear`; }); const hide = () => { var _a2; (_a2 = tooltipRef.value) == null ? void 0 : _a2.hide(); }; const beforeEnter = () => { emit("before-enter"); }; const beforeLeave = () => { emit("before-leave"); }; const afterEnter = () => { emit("after-enter"); }; const afterLeave = () => { emit("update:visible", false); emit("after-leave"); }; expose({ popperRef, hide }); return (_ctx, _cache) => { return openBlock(), createBlock(unref(ElTooltip), mergeProps({ ref_key: "tooltipRef", ref: tooltipRef }, _ctx.$attrs, { trigger: _ctx.trigger, placement: _ctx.placement, disabled: _ctx.disabled, visible: _ctx.visible, transition: _ctx.transition, "popper-options": _ctx.popperOptions, tabindex: _ctx.tabindex, content: _ctx.content, offset: _ctx.offset, "show-after": _ctx.showAfter, "hide-after": _ctx.hideAfter, "auto-close": _ctx.autoClose, "show-arrow": _ctx.showArrow, "aria-label": _ctx.title, effect: _ctx.effect, enterable: _ctx.enterable, "popper-class": unref(kls), "popper-style": unref(style), teleported: _ctx.teleported, persistent: _ctx.persistent, "gpu-acceleration": unref(gpuAcceleration), "onUpdate:visible": unref(onUpdateVisible), onBeforeShow: beforeEnter, onBeforeHide: beforeLeave, onShow: afterEnter, onHide: afterLeave }), { content: withCtx(() => [ _ctx.title ? (openBlock(), createElementBlock("div", { key: 0, class: normalizeClass(unref(ns2).e("title")), role: "title" }, toDisplayString(_ctx.title), 3)) : createCommentVNode("v-if", true), renderSlot(_ctx.$slots, "default", {}, () => [ createTextVNode(toDisplayString(_ctx.content), 1) ]) ]), default: withCtx(() => [ _ctx.$slots.reference ? renderSlot(_ctx.$slots, "reference", { key: 0 }) : createCommentVNode("v-if", true) ]), _: 3 }, 16, ["trigger", "placement", "disabled", "visible", "transition", "popper-options", "tabindex", "content", "offset", "show-after", "hide-after", "auto-close", "show-arrow", "aria-label", "effect", "enterable", "popper-class", "popper-style", "teleported", "persistent", "gpu-acceleration", "onUpdate:visible"]); }; } }); var Popover = /* @__PURE__ */ _export_sfc$1(_sfc_main$a, [["__file", "popover.vue"]]); const attachEvents = (el, binding) => { const popperComponent = binding.arg || binding.value; const popover = popperComponent == null ? void 0 : popperComponent.popperRef; if (popover) { popover.triggerRef = el; } }; var PopoverDirective = { mounted(el, binding) { attachEvents(el, binding); }, updated(el, binding) { attachEvents(el, binding); } }; const VPopover = "popover"; const ElPopoverDirective = withInstallDirective(PopoverDirective, VPopover); const ElPopover = withInstall(Popover, { directive: ElPopoverDirective }); const useSameTarget = (handleClick) => { if (!handleClick) { return { onClick: shared_cjs_prodExports.NOOP, onMousedown: shared_cjs_prodExports.NOOP, onMouseup: shared_cjs_prodExports.NOOP }; } let mousedownTarget = false; let mouseupTarget = false; const onClick = (e) => { if (mousedownTarget && mouseupTarget) { handleClick(e); } mousedownTarget = mouseupTarget = false; }; const onMousedown = (e) => { mousedownTarget = e.target === e.currentTarget; }; const onMouseup = (e) => { mouseupTarget = e.target === e.currentTarget; }; return { onClick, onMousedown, onMouseup }; }; var PatchFlags = /* @__PURE__ */ ((PatchFlags2) => { PatchFlags2[PatchFlags2["TEXT"] = 1] = "TEXT"; PatchFlags2[PatchFlags2["CLASS"] = 2] = "CLASS"; PatchFlags2[PatchFlags2["STYLE"] = 4] = "STYLE"; PatchFlags2[PatchFlags2["PROPS"] = 8] = "PROPS"; PatchFlags2[PatchFlags2["FULL_PROPS"] = 16] = "FULL_PROPS"; PatchFlags2[PatchFlags2["HYDRATE_EVENTS"] = 32] = "HYDRATE_EVENTS"; PatchFlags2[PatchFlags2["STABLE_FRAGMENT"] = 64] = "STABLE_FRAGMENT"; PatchFlags2[PatchFlags2["KEYED_FRAGMENT"] = 128] = "KEYED_FRAGMENT"; PatchFlags2[PatchFlags2["UNKEYED_FRAGMENT"] = 256] = "UNKEYED_FRAGMENT"; PatchFlags2[PatchFlags2["NEED_PATCH"] = 512] = "NEED_PATCH"; PatchFlags2[PatchFlags2["DYNAMIC_SLOTS"] = 1024] = "DYNAMIC_SLOTS"; PatchFlags2[PatchFlags2["HOISTED"] = -1] = "HOISTED"; PatchFlags2[PatchFlags2["BAIL"] = -2] = "BAIL"; return PatchFlags2; })(PatchFlags || {}); const overlayProps = buildProps({ mask: { type: Boolean, default: true }, customMaskEvent: Boolean, overlayClass: { type: definePropType([ String, Array, Object ]) }, zIndex: { type: definePropType([String, Number]) } }); const overlayEmits = { click: (evt) => evt instanceof MouseEvent }; const BLOCK = "overlay"; var Overlay = defineComponent({ name: "ElOverlay", props: overlayProps, emits: overlayEmits, setup(props, { slots, emit }) { const ns2 = useNamespace(BLOCK); const onMaskClick = (e) => { emit("click", e); }; const { onClick, onMousedown, onMouseup } = useSameTarget(props.customMaskEvent ? void 0 : onMaskClick); return () => { return props.mask ? createVNode("div", { class: [ns2.b(), props.overlayClass], style: { zIndex: props.zIndex }, onClick, onMousedown, onMouseup }, [renderSlot(slots, "default")], PatchFlags.STYLE | PatchFlags.CLASS | PatchFlags.PROPS, ["onClick", "onMouseup", "onMousedown"]) : h("div", { class: props.overlayClass, style: { zIndex: props.zIndex, position: "fixed", top: "0px", right: "0px", bottom: "0px", left: "0px" } }, [renderSlot(slots, "default")]); }; } }); const ElOverlay = Overlay; const iconProps = buildProps({ size: { type: definePropType([Number, String]) }, color: { type: String } }); const __default__$4 = defineComponent({ name: "ElIcon", inheritAttrs: false }); const _sfc_main$9 = /* @__PURE__ */ defineComponent({ ...__default__$4, props: iconProps, setup(__props) { const props = __props; const ns2 = useNamespace("icon"); const style = computed(() => { const { size, color } = props; if (!size && !color) return {}; return { fontSize: isUndefined(size) ? void 0 : addUnit(size), "--color": color }; }); return (_ctx, _cache) => { return openBlock(), createElementBlock("i", mergeProps({ class: unref(ns2).b(), style: unref(style) }, _ctx.$attrs), [ renderSlot(_ctx.$slots, "default") ], 16); }; } }); var Icon = /* @__PURE__ */ _export_sfc$1(_sfc_main$9, [["__file", "icon.vue"]]); const ElIcon = withInstall(Icon); const dialogInjectionKey = Symbol("dialogInjectionKey"); const dialogContentProps = buildProps({ center: Boolean, alignCenter: Boolean, closeIcon: { type: iconPropType }, draggable: Boolean, overflow: Boolean, fullscreen: Boolean, headerClass: String, bodyClass: String, footerClass: String, showClose: { type: Boolean, default: true }, title: { type: String, default: "" }, ariaLevel: { type: String, default: "2" } }); const dialogContentEmits = { close: () => true }; const useDraggable = (targetRef, dragRef, draggable, overflow) => { const resetPosition = () => { if (targetRef.value) { targetRef.value.style.transform = "none"; } }; return { resetPosition }; }; const composeRefs = (...refs) => { return (el) => { refs.forEach((ref2) => { if (shared_cjs_prodExports.isFunction(ref2)) { ref2(el); } else { ref2.value = el; } }); }; }; var English = { name: "en", el: { breadcrumb: { label: "Breadcrumb" }, colorpicker: { confirm: "OK", clear: "Clear", defaultLabel: "color picker", description: "current color is {color}. press enter to select a new color.", alphaLabel: "pick alpha value" }, datepicker: { now: "Now", today: "Today", cancel: "Cancel", clear: "Clear", confirm: "OK", dateTablePrompt: "Use the arrow keys and enter to select the day of the month", monthTablePrompt: "Use the arrow keys and enter to select the month", yearTablePrompt: "Use the arrow keys and enter to select the year", selectedDate: "Selected date", selectDate: "Select date", selectTime: "Select time", startDate: "Start Date", startTime: "Start Time", endDate: "End Date", endTime: "End Time", prevYear: "Previous Year", nextYear: "Next Year", prevMonth: "Previous Month", nextMonth: "Next Month", year: "", month1: "January", month2: "February", month3: "March", month4: "April", month5: "May", month6: "June", month7: "July", month8: "August", month9: "September", month10: "October", month11: "November", month12: "December", week: "week", weeks: { sun: "Sun", mon: "Mon", tue: "Tue", wed: "Wed", thu: "Thu", fri: "Fri", sat: "Sat" }, weeksFull: { sun: "Sunday", mon: "Monday", tue: "Tuesday", wed: "Wednesday", thu: "Thursday", fri: "Friday", sat: "Saturday" }, months: { jan: "Jan", feb: "Feb", mar: "Mar", apr: "Apr", may: "May", jun: "Jun", jul: "Jul", aug: "Aug", sep: "Sep", oct: "Oct", nov: "Nov", dec: "Dec" } }, inputNumber: { decrease: "decrease number", increase: "increase number" }, select: { loading: "Loading", noMatch: "No matching data", noData: "No data", placeholder: "Select" }, mention: { loading: "Loading" }, dropdown: { toggleDropdown: "Toggle Dropdown" }, cascader: { noMatch: "No matching data", loading: "Loading", placeholder: "Select", noData: "No data" }, pagination: { goto: "Go to", pagesize: "/page", total: "Total {total}", pageClassifier: "", page: "Page", prev: "Go to previous page", next: "Go to next page", currentPage: "page {pager}", prevPages: "Previous {pager} pages", nextPages: "Next {pager} pages", deprecationWarning: "Deprecated usages detected, please refer to the el-pagination documentation for more details" }, dialog: { close: "Close this dialog" }, drawer: { close: "Close this dialog" }, messagebox: { title: "Message", confirm: "OK", cancel: "Cancel", error: "Illegal input", close: "Close this dialog" }, upload: { deleteTip: "press delete to remove", delete: "Delete", preview: "Preview", continue: "Continue" }, slider: { defaultLabel: "slider between {min} and {max}", defaultRangeStartLabel: "pick start value", defaultRangeEndLabel: "pick end value" }, table: { emptyText: "No Data", confirmFilter: "Confirm", resetFilter: "Reset", clearFilter: "All", sumText: "Sum" }, tour: { next: "Next", previous: "Previous", finish: "Finish" }, tree: { emptyText: "No Data" }, transfer: { noMatch: "No matching data", noData: "No data", titles: ["List 1", "List 2"], filterPlaceholder: "Enter keyword", noCheckedFormat: "{total} items", hasCheckedFormat: "{checked}/{total} checked" }, image: { error: "FAILED" }, pageHeader: { title: "Back" }, popconfirm: { confirmButtonText: "Yes", cancelButtonText: "No" }, carousel: { leftArrow: "Carousel arrow left", rightArrow: "Carousel arrow right", indicator: "Carousel switch to index {index}" } } }; const buildTranslator = (locale) => (path, option) => translate(path, option, unref(locale)); const translate = (path, option, locale) => get(locale, path, path).replace(/\{(\w+)\}/g, (_, key) => { var _a2; return `${(_a2 = option == null ? void 0 : option[key]) != null ? _a2 : `{${key}}`}`; }); const buildLocaleContext = (locale) => { const lang = computed(() => unref(locale).name); const localeRef = isRef(locale) ? locale : ref(locale); return { lang, locale: localeRef, t: buildTranslator(locale) }; }; const localeContextKey = Symbol("localeContextKey"); const useLocale = (localeOverrides) => { const locale = inject(localeContextKey, ref()); return buildLocaleContext(computed(() => locale.value || English)); }; const __default__$3 = defineComponent({ name: "ElDialogContent" }); const _sfc_main$8 = /* @__PURE__ */ defineComponent({ ...__default__$3, props: dialogContentProps, emits: dialogContentEmits, setup(__props, { expose }) { const props = __props; const { t: t2 } = useLocale(); const { Close } = CloseComponents; const { dialogRef, headerRef, bodyId, ns: ns2, style } = inject(dialogInjectionKey); const { focusTrapRef } = inject(FOCUS_TRAP_INJECTION_KEY); const dialogKls = computed(() => [ ns2.b(), ns2.is("fullscreen", props.fullscreen), ns2.is("draggable", props.draggable), ns2.is("align-center", props.alignCenter), { [ns2.m("center")]: props.center } ]); const composedDialogRef = composeRefs(focusTrapRef, dialogRef); computed(() => props.draggable); computed(() => props.overflow); const { resetPosition } = useDraggable(dialogRef); expose({ resetPosition }); return (_ctx, _cache) => { return openBlock(), createElementBlock("div", { ref: unref(composedDialogRef), class: normalizeClass(unref(dialogKls)), style: normalizeStyle(unref(style)), tabindex: "-1" }, [ createElementVNode("header", { ref_key: "headerRef", ref: headerRef, class: normalizeClass([unref(ns2).e("header"), _ctx.headerClass, { "show-close": _ctx.showClose }]) }, [ renderSlot(_ctx.$slots, "header", {}, () => [ createElementVNode("span", { role: "heading", "aria-level": _ctx.ariaLevel, class: normalizeClass(unref(ns2).e("title")) }, toDisplayString(_ctx.title), 11, ["aria-level"]) ]), _ctx.showClose ? (openBlock(), createElementBlock("button", { key: 0, "aria-label": unref(t2)("el.dialog.close"), class: normalizeClass(unref(ns2).e("headerbtn")), type: "button", onClick: ($event) => _ctx.$emit("close") }, [ createVNode(unref(ElIcon), { class: normalizeClass(unref(ns2).e("close")) }, { default: withCtx(() => [ (openBlock(), createBlock(resolveDynamicComponent(_ctx.closeIcon || unref(Close)))) ]), _: 1 }, 8, ["class"]) ], 10, ["aria-label", "onClick"])) : createCommentVNode("v-if", true) ], 2), createElementVNode("div", { id: unref(bodyId), class: normalizeClass([unref(ns2).e("body"), _ctx.bodyClass]) }, [ renderSlot(_ctx.$slots, "default") ], 10, ["id"]), _ctx.$slots.footer ? (openBlock(), createElementBlock("footer", { key: 0, class: normalizeClass([unref(ns2).e("footer"), _ctx.footerClass]) }, [ renderSlot(_ctx.$slots, "footer") ], 2)) : createCommentVNode("v-if", true) ], 6); }; } }); var ElDialogContent = /* @__PURE__ */ _export_sfc$1(_sfc_main$8, [["__file", "dialog-content.vue"]]); const UPDATE_MODEL_EVENT = "update:modelValue"; const dialogProps = buildProps({ ...dialogContentProps, appendToBody: Boolean, appendTo: { type: definePropType([String, Object]), default: "body" }, beforeClose: { type: definePropType(Function) }, destroyOnClose: Boolean, closeOnClickModal: { type: Boolean, default: true }, closeOnPressEscape: { type: Boolean, default: true }, lockScroll: { type: Boolean, default: true }, modal: { type: Boolean, default: true }, openDelay: { type: Number, default: 0 }, closeDelay: { type: Number, default: 0 }, top: { type: String }, modelValue: Boolean, modalClass: String, headerClass: String, bodyClass: String, footerClass: String, width: { type: [String, Number] }, zIndex: { type: Number }, trapFocus: Boolean, headerAriaLevel: { type: String, default: "2" } }); const dialogEmits = { open: () => true, opened: () => true, close: () => true, closed: () => true, [UPDATE_MODEL_EVENT]: (value) => isBoolean(value), openAutoFocus: () => true, closeAutoFocus: () => true }; const useLockscreen = (trigger, options = {}) => { if (!isRef(trigger)) { throwError("[useLockscreen]", "You need to pass a ref param to this function"); } const ns2 = options.ns || useNamespace("popup"); computed(() => ns2.bm("parent", "hidden")); { return; } }; const configProviderContextKey = Symbol(); const componentSizes = ["", "default", "small", "large"]; const useSizeProp = buildProp({ type: String, values: componentSizes, required: false }); const SIZE_INJECTION_KEY = Symbol("size"); const useGlobalSize = () => { const injectedSize = inject(SIZE_INJECTION_KEY, {}); return computed(() => { return unref(injectedSize.size) || ""; }); }; const emptyValuesContextKey = Symbol("emptyValuesContextKey"); const useEmptyValuesProps = buildProps({ emptyValues: Array, valueOnClear: { type: [String, Number, Boolean, Function], default: void 0, validator: (val) => shared_cjs_prodExports.isFunction(val) ? !val() : !val } }); const globalConfig = ref(); function useGlobalConfig(key, defaultValue = void 0) { const config = getCurrentInstance() ? inject(configProviderContextKey, globalConfig) : globalConfig; if (key) { return computed(() => { var _a2, _b2; return (_b2 = (_a2 = config.value) == null ? void 0 : _a2[key]) != null ? _b2 : defaultValue; }); } else { return config; } } const provideGlobalConfig = (config, app, global2 = false) => { var _a2; const inSetup = !!getCurrentInstance(); const oldConfig = inSetup ? useGlobalConfig() : void 0; const provideFn = (_a2 = void 0) != null ? _a2 : inSetup ? provide : void 0; if (!provideFn) { return; } const context = computed(() => { const cfg = unref(config); if (!(oldConfig == null ? void 0 : oldConfig.value)) return cfg; return mergeConfig(oldConfig.value, cfg); }); provideFn(configProviderContextKey, context); provideFn(localeContextKey, computed(() => context.value.locale)); provideFn(namespaceContextKey, computed(() => context.value.namespace)); provideFn(zIndexContextKey, computed(() => context.value.zIndex)); provideFn(SIZE_INJECTION_KEY, { size: computed(() => context.value.size || "") }); provideFn(emptyValuesContextKey, computed(() => ({ emptyValues: context.value.emptyValues, valueOnClear: context.value.valueOnClear }))); if (global2 || !globalConfig.value) { globalConfig.value = context.value; } return context; }; const mergeConfig = (a, b) => { const keys = [.../* @__PURE__ */ new Set([...keysOf(a), ...keysOf(b)])]; const obj = {}; for (const key of keys) { obj[key] = b[key] !== void 0 ? b[key] : a[key]; } return obj; }; const useDialog = (props, targetRef) => { var _a2; const instance = getCurrentInstance(); const emit = instance.emit; const { nextZIndex } = useZIndex(); let lastPosition = ""; const titleId = useId(); const bodyId = useId(); const visible = ref(false); const closed = ref(false); const rendered = ref(false); const zIndex2 = ref((_a2 = props.zIndex) != null ? _a2 : nextZIndex()); let openTimer = void 0; let closeTimer = void 0; const namespace = useGlobalConfig("namespace", defaultNamespace); const style = computed(() => { const style2 = {}; const varPrefix = `--${namespace.value}-dialog`; if (!props.fullscreen) { if (props.top) { style2[`${varPrefix}-margin-top`] = props.top; } if (props.width) { style2[`${varPrefix}-width`] = addUnit(props.width); } } return style2; }); const overlayDialogStyle = computed(() => { if (props.alignCenter) { return { display: "flex" }; } return {}; }); function afterEnter() { emit("opened"); } function afterLeave() { emit("closed"); emit(UPDATE_MODEL_EVENT, false); if (props.destroyOnClose) { rendered.value = false; } } function beforeLeave() { emit("close"); } function open() { closeTimer == null ? void 0 : closeTimer(); openTimer == null ? void 0 : openTimer(); if (props.openDelay && props.openDelay > 0) { ({ stop: openTimer } = useTimeoutFn(() => doOpen(), props.openDelay)); } } function close() { openTimer == null ? void 0 : openTimer(); closeTimer == null ? void 0 : closeTimer(); if (props.closeDelay && props.closeDelay > 0) { ({ stop: closeTimer } = useTimeoutFn(() => doClose(), props.closeDelay)); } else { doClose(); } } function handleClose() { function hide(shouldCancel) { if (shouldCancel) return; closed.value = true; visible.value = false; } if (props.beforeClose) { props.beforeClose(hide); } else { close(); } } function onModalClick() { if (props.closeOnClickModal) { handleClose(); } } function doOpen() { return; } function doClose() { visible.value = false; } function onOpenAutoFocus() { emit("openAutoFocus"); } function onCloseAutoFocus() { emit("closeAutoFocus"); } function onFocusoutPrevented(event) { var _a22; if (((_a22 = event.detail) == null ? void 0 : _a22.focusReason) === "pointer") { event.preventDefault(); } } if (props.lockScroll) { useLockscreen(visible); } function onCloseRequested() { if (props.closeOnPressEscape) { handleClose(); } } watch(() => props.modelValue, (val) => { if (val) { closed.value = false; open(); rendered.value = true; zIndex2.value = isUndefined$1(props.zIndex) ? nextZIndex() : zIndex2.value++; nextTick(() => { emit("open"); if (targetRef.value) { targetRef.value.parentElement.scrollTop = 0; targetRef.value.parentElement.scrollLeft = 0; targetRef.value.scrollTop = 0; } }); } else { if (visible.value) { close(); } } }); watch(() => props.fullscreen, (val) => { if (!targetRef.value) return; if (val) { lastPosition = targetRef.value.style.transform; targetRef.value.style.transform = ""; } else { targetRef.value.style.transform = lastPosition; } }); return { afterEnter, afterLeave, beforeLeave, handleClose, onModalClick, close, doClose, onOpenAutoFocus, onCloseAutoFocus, onCloseRequested, onFocusoutPrevented, titleId, bodyId, closed, style, overlayDialogStyle, rendered, visible, zIndex: zIndex2 }; }; const useDeprecated = ({ from, replacement, scope, version, ref: ref2, type = "API" }, condition) => { watch(() => unref(condition), (val) => { }, { immediate: true }); }; const __default__$2 = defineComponent({ name: "ElDialog", inheritAttrs: false }); const _sfc_main$7 = /* @__PURE__ */ defineComponent({ ...__default__$2, props: dialogProps, emits: dialogEmits, setup(__props, { expose }) { const props = __props; const slots = useSlots(); useDeprecated({ scope: "el-dialog", from: "the title slot", replacement: "the header slot", version: "3.0.0", ref: "https://element-plus.org/en-US/component/dialog.html#slots" }, computed(() => !!slots.title)); const ns2 = useNamespace("dialog"); const dialogRef = ref(); const headerRef = ref(); const dialogContentRef = ref(); const { visible, titleId, bodyId, style, overlayDialogStyle, rendered, zIndex: zIndex2, afterEnter, afterLeave, beforeLeave, handleClose, onModalClick, onOpenAutoFocus, onCloseAutoFocus, onCloseRequested, onFocusoutPrevented } = useDialog(props, dialogRef); provide(dialogInjectionKey, { dialogRef, headerRef, bodyId, ns: ns2, rendered, style }); const overlayEvent = useSameTarget(onModalClick); const draggable = computed(() => props.draggable && !props.fullscreen); const resetPosition = () => { var _a2; (_a2 = dialogContentRef.value) == null ? void 0 : _a2.resetPosition(); }; expose({ visible, dialogContentRef, resetPosition }); return (_ctx, _cache) => { return openBlock(), createBlock(unref(ElTeleport), { to: _ctx.appendTo, disabled: _ctx.appendTo !== "body" ? false : !_ctx.appendToBody }, { default: withCtx(() => [ createVNode(Transition, { name: "dialog-fade", onAfterEnter: unref(afterEnter), onAfterLeave: unref(afterLeave), onBeforeLeave: unref(beforeLeave), persisted: "" }, { default: withCtx(() => [ withDirectives(createVNode(unref(ElOverlay), { "custom-mask-event": "", mask: _ctx.modal, "overlay-class": _ctx.modalClass, "z-index": unref(zIndex2) }, { default: withCtx(() => [ createElementVNode("div", { role: "dialog", "aria-modal": "true", "aria-label": _ctx.title || void 0, "aria-labelledby": !_ctx.title ? unref(titleId) : void 0, "aria-describedby": unref(bodyId), class: normalizeClass(`${unref(ns2).namespace.value}-overlay-dialog`), style: normalizeStyle(unref(overlayDialogStyle)), onClick: unref(overlayEvent).onClick, onMousedown: unref(overlayEvent).onMousedown, onMouseup: unref(overlayEvent).onMouseup }, [ createVNode(unref(ElFocusTrap), { loop: "", trapped: unref(visible), "focus-start-el": "container", onFocusAfterTrapped: unref(onOpenAutoFocus), onFocusAfterReleased: unref(onCloseAutoFocus), onFocusoutPrevented: unref(onFocusoutPrevented), onReleaseRequested: unref(onCloseRequested) }, { default: withCtx(() => [ unref(rendered) ? (openBlock(), createBlock(ElDialogContent, mergeProps({ key: 0, ref_key: "dialogContentRef", ref: dialogContentRef }, _ctx.$attrs, { center: _ctx.center, "align-center": _ctx.alignCenter, "close-icon": _ctx.closeIcon, draggable: unref(draggable), overflow: _ctx.overflow, fullscreen: _ctx.fullscreen, "header-class": _ctx.headerClass, "body-class": _ctx.bodyClass, "footer-class": _ctx.footerClass, "show-close": _ctx.showClose, title: _ctx.title, "aria-level": _ctx.headerAriaLevel, onClose: unref(handleClose) }), createSlots({ header: withCtx(() => [ !_ctx.$slots.title ? renderSlot(_ctx.$slots, "header", { key: 0, close: unref(handleClose), titleId: unref(titleId), titleClass: unref(ns2).e("title") }) : renderSlot(_ctx.$slots, "title", { key: 1 }) ]), default: withCtx(() => [ renderSlot(_ctx.$slots, "default") ]), _: 2 }, [ _ctx.$slots.footer ? { name: "footer", fn: withCtx(() => [ renderSlot(_ctx.$slots, "footer") ]) } : void 0 ]), 1040, ["center", "align-center", "close-icon", "draggable", "overflow", "fullscreen", "header-class", "body-class", "footer-class", "show-close", "title", "aria-level", "onClose"])) : createCommentVNode("v-if", true) ]), _: 3 }, 8, ["trapped", "onFocusAfterTrapped", "onFocusAfterReleased", "onFocusoutPrevented", "onReleaseRequested"]) ], 46, ["aria-label", "aria-labelledby", "aria-describedby", "onClick", "onMousedown", "onMouseup"]) ]), _: 3 }, 8, ["mask", "overlay-class", "z-index"]), [ [vShow, unref(visible)] ]) ]), _: 3 }, 8, ["onAfterEnter", "onAfterLeave", "onBeforeLeave"]) ]), _: 3 }, 8, ["to", "disabled"]); }; } }); var Dialog = /* @__PURE__ */ _export_sfc$1(_sfc_main$7, [["__file", "dialog.vue"]]); const ElDialog = withInstall(Dialog); const buttonGroupContextKey = Symbol("buttonGroupContextKey"); const useFormItem = () => { const form = inject(formContextKey, void 0); const formItem = inject(formItemContextKey, void 0); return { form, formItem }; }; const useProp = (name) => { const vm = getCurrentInstance(); return computed(() => { var _a2, _b2; return (_b2 = (_a2 = vm == null ? void 0 : vm.proxy) == null ? void 0 : _a2.$props) == null ? void 0 : _b2[name]; }); }; const useFormSize = (fallback, ignore = {}) => { const emptyRef = ref(void 0); const size = ignore.prop ? emptyRef : useProp("size"); const globalConfig2 = ignore.global ? emptyRef : useGlobalSize(); const form = ignore.form ? { size: void 0 } : inject(formContextKey, void 0); const formItem = ignore.formItem ? { size: void 0 } : inject(formItemContextKey, void 0); return computed(() => size.value || unref(fallback) || (formItem == null ? void 0 : formItem.size) || (form == null ? void 0 : form.size) || globalConfig2.value || ""); }; const useFormDisabled = (fallback) => { const disabled = useProp("disabled"); const form = inject(formContextKey, void 0); return computed(() => disabled.value || unref(fallback) || (form == null ? void 0 : form.disabled) || false); }; const useButton = (props, emit) => { useDeprecated({ from: "type.text", replacement: "link", version: "3.0.0", scope: "props", ref: "https://element-plus.org/en-US/component/button.html#button-attributes" }, computed(() => props.type === "text")); const buttonGroupContext = inject(buttonGroupContextKey, void 0); const globalConfig2 = useGlobalConfig("button"); const { form } = useFormItem(); const _size = useFormSize(computed(() => buttonGroupContext == null ? void 0 : buttonGroupContext.size)); const _disabled = useFormDisabled(); const _ref = ref(); const slots = useSlots(); const _type = computed(() => props.type || (buttonGroupContext == null ? void 0 : buttonGroupContext.type) || ""); const autoInsertSpace = computed(() => { var _a2, _b2, _c2; return (_c2 = (_b2 = props.autoInsertSpace) != null ? _b2 : (_a2 = globalConfig2.value) == null ? void 0 : _a2.autoInsertSpace) != null ? _c2 : false; }); const _props = computed(() => { if (props.tag === "button") { return { ariaDisabled: _disabled.value || props.loading, disabled: _disabled.value || props.loading, autofocus: props.autofocus, type: props.nativeType }; } return {}; }); const shouldAddSpace = computed(() => { var _a2; const defaultSlot = (_a2 = slots.default) == null ? void 0 : _a2.call(slots); if (autoInsertSpace.value && (defaultSlot == null ? void 0 : defaultSlot.length) === 1) { const slot = defaultSlot[0]; if ((slot == null ? void 0 : slot.type) === Text) { const text = slot.children; return new RegExp("^\\p{Unified_Ideograph}{2}$", "u").test(text.trim()); } } return false; }); const handleClick = (evt) => { if (_disabled.value || props.loading) { evt.stopPropagation(); return; } if (props.nativeType === "reset") { form == null ? void 0 : form.resetFields(); } emit("click", evt); }; return { _disabled, _size, _type, _ref, _props, shouldAddSpace, handleClick }; }; const buttonTypes = [ "default", "primary", "success", "warning", "info", "danger", "text", "" ]; const buttonNativeTypes = ["button", "submit", "reset"]; const buttonProps = buildProps({ size: useSizeProp, disabled: Boolean, type: { type: String, values: buttonTypes, default: "" }, icon: { type: iconPropType }, nativeType: { type: String, values: buttonNativeTypes, default: "button" }, loading: Boolean, loadingIcon: { type: iconPropType, default: () => loading_default }, plain: Boolean, text: Boolean, link: Boolean, bg: Boolean, autofocus: Boolean, round: Boolean, circle: Boolean, color: String, dark: Boolean, autoInsertSpace: { type: Boolean, default: void 0 }, tag: { type: definePropType([String, Object]), default: "button" } }); const buttonEmits = { click: (evt) => evt instanceof MouseEvent }; function bound01(n2, max) { if (isOnePointZero(n2)) { n2 = "100%"; } var isPercent = isPercentage(n2); n2 = max === 360 ? n2 : Math.min(max, Math.max(0, parseFloat(n2))); if (isPercent) { n2 = parseInt(String(n2 * max), 10) / 100; } if (Math.abs(n2 - max) < 1e-6) { return 1; } if (max === 360) { n2 = (n2 < 0 ? n2 % max + max : n2 % max) / parseFloat(String(max)); } else { n2 = n2 % max / parseFloat(String(max)); } return n2; } function clamp01(val) { return Math.min(1, Math.max(0, val)); } function isOnePointZero(n2) { return typeof n2 === "string" && n2.indexOf(".") !== -1 && parseFloat(n2) === 1; } function isPercentage(n2) { return typeof n2 === "string" && n2.indexOf("%") !== -1; } function boundAlpha(a) { a = parseFloat(a); if (isNaN(a) || a < 0 || a > 1) { a = 1; } return a; } function convertToPercentage(n2) { if (n2 <= 1) { return "".concat(Number(n2) * 100, "%"); } return n2; } function pad2(c) { return c.length === 1 ? "0" + c : String(c); } function rgbToRgb(r2, g, b) { return { r: bound01(r2, 255) * 255, g: bound01(g, 255) * 255, b: bound01(b, 255) * 255 }; } function rgbToHsl(r2, g, b) { r2 = bound01(r2, 255); g = bound01(g, 255); b = bound01(b, 255); var max = Math.max(r2, g, b); var min = Math.min(r2, g, b); var h2 = 0; var s = 0; var l = (max + min) / 2; if (max === min) { s = 0; h2 = 0; } else { var d = max - min; s = l > 0.5 ? d / (2 - max - min) : d / (max + min); switch (max) { case r2: h2 = (g - b) / d + (g < b ? 6 : 0); break; case g: h2 = (b - r2) / d + 2; break; case b: h2 = (r2 - g) / d + 4; break; } h2 /= 6; } return { h: h2, s, l }; } function hue2rgb(p, q2, t2) { if (t2 < 0) { t2 += 1; } if (t2 > 1) { t2 -= 1; } if (t2 < 1 / 6) { return p + (q2 - p) * (6 * t2); } if (t2 < 1 / 2) { return q2; } if (t2 < 2 / 3) { return p + (q2 - p) * (2 / 3 - t2) * 6; } return p; } function hslToRgb(h2, s, l) { var r2; var g; var b; h2 = bound01(h2, 360); s = bound01(s, 100); l = bound01(l, 100); if (s === 0) { g = l; b = l; r2 = l; } else { var q2 = l < 0.5 ? l * (1 + s) : l + s - l * s; var p = 2 * l - q2; r2 = hue2rgb(p, q2, h2 + 1 / 3); g = hue2rgb(p, q2, h2); b = hue2rgb(p, q2, h2 - 1 / 3); } return { r: r2 * 255, g: g * 255, b: b * 255 }; } function rgbToHsv(r2, g, b) { r2 = bound01(r2, 255); g = bound01(g, 255); b = bound01(b, 255); var max = Math.max(r2, g, b); var min = Math.min(r2, g, b); var h2 = 0; var v = max; var d = max - min; var s = max === 0 ? 0 : d / max; if (max === min) { h2 = 0; } else { switch (max) { case r2: h2 = (g - b) / d + (g < b ? 6 : 0); break; case g: h2 = (b - r2) / d + 2; break; case b: h2 = (r2 - g) / d + 4; break; } h2 /= 6; } return { h: h2, s, v }; } function hsvToRgb(h2, s, v) { h2 = bound01(h2, 360) * 6; s = bound01(s, 100); v = bound01(v, 100); var i = Math.floor(h2); var f2 = h2 - i; var p = v * (1 - s); var q2 = v * (1 - f2 * s); var t2 = v * (1 - (1 - f2) * s); var mod = i % 6; var r2 = [v, q2, p, p, t2, v][mod]; var g = [t2, v, v, q2, p, p][mod]; var b = [p, p, t2, v, v, q2][mod]; return { r: r2 * 255, g: g * 255, b: b * 255 }; } function rgbToHex(r2, g, b, allow3Char) { var hex = [ pad2(Math.round(r2).toString(16)), pad2(Math.round(g).toString(16)), pad2(Math.round(b).toString(16)) ]; if (allow3Char && hex[0].startsWith(hex[0].charAt(1)) && hex[1].startsWith(hex[1].charAt(1)) && hex[2].startsWith(hex[2].charAt(1))) { return hex[0].charAt(0) + hex[1].charAt(0) + hex[2].charAt(0); } return hex.join(""); } function rgbaToHex(r2, g, b, a, allow4Char) { var hex = [ pad2(Math.round(r2).toString(16)), pad2(Math.round(g).toString(16)), pad2(Math.round(b).toString(16)), pad2(convertDecimalToHex(a)) ]; if (allow4Char && hex[0].startsWith(hex[0].charAt(1)) && hex[1].startsWith(hex[1].charAt(1)) && hex[2].startsWith(hex[2].charAt(1)) && hex[3].startsWith(hex[3].charAt(1))) { return hex[0].charAt(0) + hex[1].charAt(0) + hex[2].charAt(0) + hex[3].charAt(0); } return hex.join(""); } function convertDecimalToHex(d) { return Math.round(parseFloat(d) * 255).toString(16); } function convertHexToDecimal(h2) { return parseIntFromHex(h2) / 255; } function parseIntFromHex(val) { return parseInt(val, 16); } function numberInputToObject(color) { return { r: color >> 16, g: (color & 65280) >> 8, b: color & 255 }; } var names = { aliceblue: "#f0f8ff", antiquewhite: "#faebd7", aqua: "#00ffff", aquamarine: "#7fffd4", azure: "#f0ffff", beige: "#f5f5dc", bisque: "#ffe4c4", black: "#000000", blanchedalmond: "#ffebcd", blue: "#0000ff", blueviolet: "#8a2be2", brown: "#a52a2a", burlywood: "#deb887", cadetblue: "#5f9ea0", chartreuse: "#7fff00", chocolate: "#d2691e", coral: "#ff7f50", cornflowerblue: "#6495ed", cornsilk: "#fff8dc", crimson: "#dc143c", cyan: "#00ffff", darkblue: "#00008b", darkcyan: "#008b8b", darkgoldenrod: "#b8860b", darkgray: "#a9a9a9", darkgreen: "#006400", darkgrey: "#a9a9a9", darkkhaki: "#bdb76b", darkmagenta: "#8b008b", darkolivegreen: "#556b2f", darkorange: "#ff8c00", darkorchid: "#9932cc", darkred: "#8b0000", darksalmon: "#e9967a", darkseagreen: "#8fbc8f", darkslateblue: "#483d8b", darkslategray: "#2f4f4f", darkslategrey: "#2f4f4f", darkturquoise: "#00ced1", darkviolet: "#9400d3", deeppink: "#ff1493", deepskyblue: "#00bfff", dimgray: "#696969", dimgrey: "#696969", dodgerblue: "#1e90ff", firebrick: "#b22222", floralwhite: "#fffaf0", forestgreen: "#228b22", fuchsia: "#ff00ff", gainsboro: "#dcdcdc", ghostwhite: "#f8f8ff", goldenrod: "#daa520", gold: "#ffd700", gray: "#808080", green: "#008000", greenyellow: "#adff2f", grey: "#808080", honeydew: "#f0fff0", hotpink: "#ff69b4", indianred: "#cd5c5c", indigo: "#4b0082", ivory: "#fffff0", khaki: "#f0e68c", lavenderblush: "#fff0f5", lavender: "#e6e6fa", lawngreen: "#7cfc00", lemonchiffon: "#fffacd", lightblue: "#add8e6", lightcoral: "#f08080", lightcyan: "#e0ffff", lightgoldenrodyellow: "#fafad2", lightgray: "#d3d3d3", lightgreen: "#90ee90", lightgrey: "#d3d3d3", lightpink: "#ffb6c1", lightsalmon: "#ffa07a", lightseagreen: "#20b2aa", lightskyblue: "#87cefa", lightslategray: "#778899", lightslategrey: "#778899", lightsteelblue: "#b0c4de", lightyellow: "#ffffe0", lime: "#00ff00", limegreen: "#32cd32", linen: "#faf0e6", magenta: "#ff00ff", maroon: "#800000", mediumaquamarine: "#66cdaa", mediumblue: "#0000cd", mediumorchid: "#ba55d3", mediumpurple: "#9370db", mediumseagreen: "#3cb371", mediumslateblue: "#7b68ee", mediumspringgreen: "#00fa9a", mediumturquoise: "#48d1cc", mediumvioletred: "#c71585", midnightblue: "#191970", mintcream: "#f5fffa", mistyrose: "#ffe4e1", moccasin: "#ffe4b5", navajowhite: "#ffdead", navy: "#000080", oldlace: "#fdf5e6", olive: "#808000", olivedrab: "#6b8e23", orange: "#ffa500", orangered: "#ff4500", orchid: "#da70d6", palegoldenrod: "#eee8aa", palegreen: "#98fb98", paleturquoise: "#afeeee", palevioletred: "#db7093", papayawhip: "#ffefd5", peachpuff: "#ffdab9", peru: "#cd853f", pink: "#ffc0cb", plum: "#dda0dd", powderblue: "#b0e0e6", purple: "#800080", rebeccapurple: "#663399", red: "#ff0000", rosybrown: "#bc8f8f", royalblue: "#4169e1", saddlebrown: "#8b4513", salmon: "#fa8072", sandybrown: "#f4a460", seagreen: "#2e8b57", seashell: "#fff5ee", sienna: "#a0522d", silver: "#c0c0c0", skyblue: "#87ceeb", slateblue: "#6a5acd", slategray: "#708090", slategrey: "#708090", snow: "#fffafa", springgreen: "#00ff7f", steelblue: "#4682b4", tan: "#d2b48c", teal: "#008080", thistle: "#d8bfd8", tomato: "#ff6347", turquoise: "#40e0d0", violet: "#ee82ee", wheat: "#f5deb3", white: "#ffffff", whitesmoke: "#f5f5f5", yellow: "#ffff00", yellowgreen: "#9acd32" }; function inputToRGB(color) { var rgb = { r: 0, g: 0, b: 0 }; var a = 1; var s = null; var v = null; var l = null; var ok = false; var format2 = false; if (typeof color === "string") { color = stringInputToObject(color); } if (typeof color === "object") { if (isValidCSSUnit(color.r) && isValidCSSUnit(color.g) && isValidCSSUnit(color.b)) { rgb = rgbToRgb(color.r, color.g, color.b); ok = true; format2 = String(color.r).substr(-1) === "%" ? "prgb" : "rgb"; } else if (isValidCSSUnit(color.h) && isValidCSSUnit(color.s) && isValidCSSUnit(color.v)) { s = convertToPercentage(color.s); v = convertToPercentage(color.v); rgb = hsvToRgb(color.h, s, v); ok = true; format2 = "hsv"; } else if (isValidCSSUnit(color.h) && isValidCSSUnit(color.s) && isValidCSSUnit(color.l)) { s = convertToPercentage(color.s); l = convertToPercentage(color.l); rgb = hslToRgb(color.h, s, l); ok = true; format2 = "hsl"; } if (Object.prototype.hasOwnProperty.call(color, "a")) { a = color.a; } } a = boundAlpha(a); return { ok, format: color.format || format2, r: Math.min(255, Math.max(rgb.r, 0)), g: Math.min(255, Math.max(rgb.g, 0)), b: Math.min(255, Math.max(rgb.b, 0)), a }; } var CSS_INTEGER = "[-\\+]?\\d+%?"; var CSS_NUMBER = "[-\\+]?\\d*\\.\\d+%?"; var CSS_UNIT = "(?:".concat(CSS_NUMBER, ")|(?:").concat(CSS_INTEGER, ")"); var PERMISSIVE_MATCH3 = "[\\s|\\(]+(".concat(CSS_UNIT, ")[,|\\s]+(").concat(CSS_UNIT, ")[,|\\s]+(").concat(CSS_UNIT, ")\\s*\\)?"); var PERMISSIVE_MATCH4 = "[\\s|\\(]+(".concat(CSS_UNIT, ")[,|\\s]+(").concat(CSS_UNIT, ")[,|\\s]+(").concat(CSS_UNIT, ")[,|\\s]+(").concat(CSS_UNIT, ")\\s*\\)?"); var matchers = { CSS_UNIT: new RegExp(CSS_UNIT), rgb: new RegExp("rgb" + PERMISSIVE_MATCH3), rgba: new RegExp("rgba" + PERMISSIVE_MATCH4), hsl: new RegExp("hsl" + PERMISSIVE_MATCH3), hsla: new RegExp("hsla" + PERMISSIVE_MATCH4), hsv: new RegExp("hsv" + PERMISSIVE_MATCH3), hsva: new RegExp("hsva" + PERMISSIVE_MATCH4), hex3: /^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/, hex6: /^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/, hex4: /^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/, hex8: /^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/ }; function stringInputToObject(color) { color = color.trim().toLowerCase(); if (color.length === 0) { return false; } var named = false; if (names[color]) { color = names[color]; named = true; } else if (color === "transparent") { return { r: 0, g: 0, b: 0, a: 0, format: "name" }; } var match = matchers.rgb.exec(color); if (match) { return { r: match[1], g: match[2], b: match[3] }; } match = matchers.rgba.exec(color); if (match) { return { r: match[1], g: match[2], b: match[3], a: match[4] }; } match = matchers.hsl.exec(color); if (match) { return { h: match[1], s: match[2], l: match[3] }; } match = matchers.hsla.exec(color); if (match) { return { h: match[1], s: match[2], l: match[3], a: match[4] }; } match = matchers.hsv.exec(color); if (match) { return { h: match[1], s: match[2], v: match[3] }; } match = matchers.hsva.exec(color); if (match) { return { h: match[1], s: match[2], v: match[3], a: match[4] }; } match = matchers.hex8.exec(color); if (match) { return { r: parseIntFromHex(match[1]), g: parseIntFromHex(match[2]), b: parseIntFromHex(match[3]), a: convertHexToDecimal(match[4]), format: named ? "name" : "hex8" }; } match = matchers.hex6.exec(color); if (match) { return { r: parseIntFromHex(match[1]), g: parseIntFromHex(match[2]), b: parseIntFromHex(match[3]), format: named ? "name" : "hex" }; } match = matchers.hex4.exec(color); if (match) { return { r: parseIntFromHex(match[1] + match[1]), g: parseIntFromHex(match[2] + match[2]), b: parseIntFromHex(match[3] + match[3]), a: convertHexToDecimal(match[4] + match[4]), format: named ? "name" : "hex8" }; } match = matchers.hex3.exec(color); if (match) { return { r: parseIntFromHex(match[1] + match[1]), g: parseIntFromHex(match[2] + match[2]), b: parseIntFromHex(match[3] + match[3]), format: named ? "name" : "hex" }; } return false; } function isValidCSSUnit(color) { return Boolean(matchers.CSS_UNIT.exec(String(color))); } var TinyColor = ( /** @class */ function() { function TinyColor2(color, opts) { if (color === void 0) { color = ""; } if (opts === void 0) { opts = {}; } var _a2; if (color instanceof TinyColor2) { return color; } if (typeof color === "number") { color = numberInputToObject(color); } this.originalInput = color; var rgb = inputToRGB(color); this.originalInput = color; this.r = rgb.r; this.g = rgb.g; this.b = rgb.b; this.a = rgb.a; this.roundA = Math.round(100 * this.a) / 100; this.format = (_a2 = opts.format) !== null && _a2 !== void 0 ? _a2 : rgb.format; this.gradientType = opts.gradientType; if (this.r < 1) { this.r = Math.round(this.r); } if (this.g < 1) { this.g = Math.round(this.g); } if (this.b < 1) { this.b = Math.round(this.b); } this.isValid = rgb.ok; } TinyColor2.prototype.isDark = function() { return this.getBrightness() < 128; }; TinyColor2.prototype.isLight = function() { return !this.isDark(); }; TinyColor2.prototype.getBrightness = function() { var rgb = this.toRgb(); return (rgb.r * 299 + rgb.g * 587 + rgb.b * 114) / 1e3; }; TinyColor2.prototype.getLuminance = function() { var rgb = this.toRgb(); var R2; var G2; var B2; var RsRGB = rgb.r / 255; var GsRGB = rgb.g / 255; var BsRGB = rgb.b / 255; if (RsRGB <= 0.03928) { R2 = RsRGB / 12.92; } else { R2 = Math.pow((RsRGB + 0.055) / 1.055, 2.4); } if (GsRGB <= 0.03928) { G2 = GsRGB / 12.92; } else { G2 = Math.pow((GsRGB + 0.055) / 1.055, 2.4); } if (BsRGB <= 0.03928) { B2 = BsRGB / 12.92; } else { B2 = Math.pow((BsRGB + 0.055) / 1.055, 2.4); } return 0.2126 * R2 + 0.7152 * G2 + 0.0722 * B2; }; TinyColor2.prototype.getAlpha = function() { return this.a; }; TinyColor2.prototype.setAlpha = function(alpha) { this.a = boundAlpha(alpha); this.roundA = Math.round(100 * this.a) / 100; return this; }; TinyColor2.prototype.isMonochrome = function() { var s = this.toHsl().s; return s === 0; }; TinyColor2.prototype.toHsv = function() { var hsv = rgbToHsv(this.r, this.g, this.b); return { h: hsv.h * 360, s: hsv.s, v: hsv.v, a: this.a }; }; TinyColor2.prototype.toHsvString = function() { var hsv = rgbToHsv(this.r, this.g, this.b); var h2 = Math.round(hsv.h * 360); var s = Math.round(hsv.s * 100); var v = Math.round(hsv.v * 100); return this.a === 1 ? "hsv(".concat(h2, ", ").concat(s, "%, ").concat(v, "%)") : "hsva(".concat(h2, ", ").concat(s, "%, ").concat(v, "%, ").concat(this.roundA, ")"); }; TinyColor2.prototype.toHsl = function() { var hsl = rgbToHsl(this.r, this.g, this.b); return { h: hsl.h * 360, s: hsl.s, l: hsl.l, a: this.a }; }; TinyColor2.prototype.toHslString = function() { var hsl = rgbToHsl(this.r, this.g, this.b); var h2 = Math.round(hsl.h * 360); var s = Math.round(hsl.s * 100); var l = Math.round(hsl.l * 100); return this.a === 1 ? "hsl(".concat(h2, ", ").concat(s, "%, ").concat(l, "%)") : "hsla(".concat(h2, ", ").concat(s, "%, ").concat(l, "%, ").concat(this.roundA, ")"); }; TinyColor2.prototype.toHex = function(allow3Char) { if (allow3Char === void 0) { allow3Char = false; } return rgbToHex(this.r, this.g, this.b, allow3Char); }; TinyColor2.prototype.toHexString = function(allow3Char) { if (allow3Char === void 0) { allow3Char = false; } return "#" + this.toHex(allow3Char); }; TinyColor2.prototype.toHex8 = function(allow4Char) { if (allow4Char === void 0) { allow4Char = false; } return rgbaToHex(this.r, this.g, this.b, this.a, allow4Char); }; TinyColor2.prototype.toHex8String = function(allow4Char) { if (allow4Char === void 0) { allow4Char = false; } return "#" + this.toHex8(allow4Char); }; TinyColor2.prototype.toHexShortString = function(allowShortChar) { if (allowShortChar === void 0) { allowShortChar = false; } return this.a === 1 ? this.toHexString(allowShortChar) : this.toHex8String(allowShortChar); }; TinyColor2.prototype.toRgb = function() { return { r: Math.round(this.r), g: Math.round(this.g), b: Math.round(this.b), a: this.a }; }; TinyColor2.prototype.toRgbString = function() { var r2 = Math.round(this.r); var g = Math.round(this.g); var b = Math.round(this.b); return this.a === 1 ? "rgb(".concat(r2, ", ").concat(g, ", ").concat(b, ")") : "rgba(".concat(r2, ", ").concat(g, ", ").concat(b, ", ").concat(this.roundA, ")"); }; TinyColor2.prototype.toPercentageRgb = function() { var fmt = function(x) { return "".concat(Math.round(bound01(x, 255) * 100), "%"); }; return { r: fmt(this.r), g: fmt(this.g), b: fmt(this.b), a: this.a }; }; TinyColor2.prototype.toPercentageRgbString = function() { var rnd = function(x) { return Math.round(bound01(x, 255) * 100); }; return this.a === 1 ? "rgb(".concat(rnd(this.r), "%, ").concat(rnd(this.g), "%, ").concat(rnd(this.b), "%)") : "rgba(".concat(rnd(this.r), "%, ").concat(rnd(this.g), "%, ").concat(rnd(this.b), "%, ").concat(this.roundA, ")"); }; TinyColor2.prototype.toName = function() { if (this.a === 0) { return "transparent"; } if (this.a < 1) { return false; } var hex = "#" + rgbToHex(this.r, this.g, this.b, false); for (var _i2 = 0, _a2 = Object.entries(names); _i2 < _a2.length; _i2++) { var _b2 = _a2[_i2], key = _b2[0], value = _b2[1]; if (hex === value) { return key; } } return false; }; TinyColor2.prototype.toString = function(format2) { var formatSet = Boolean(format2); format2 = format2 !== null && format2 !== void 0 ? format2 : this.format; var formattedString = false; var hasAlpha = this.a < 1 && this.a >= 0; var needsAlphaFormat = !formatSet && hasAlpha && (format2.startsWith("hex") || format2 === "name"); if (needsAlphaFormat) { if (format2 === "name" && this.a === 0) { return this.toName(); } return this.toRgbString(); } if (format2 === "rgb") { formattedString = this.toRgbString(); } if (format2 === "prgb") { formattedString = this.toPercentageRgbString(); } if (format2 === "hex" || format2 === "hex6") { formattedString = this.toHexString(); } if (format2 === "hex3") { formattedString = this.toHexString(true); } if (format2 === "hex4") { formattedString = this.toHex8String(true); } if (format2 === "hex8") { formattedString = this.toHex8String(); } if (format2 === "name") { formattedString = this.toName(); } if (format2 === "hsl") { formattedString = this.toHslString(); } if (format2 === "hsv") { formattedString = this.toHsvString(); } return formattedString || this.toHexString(); }; TinyColor2.prototype.toNumber = function() { return (Math.round(this.r) << 16) + (Math.round(this.g) << 8) + Math.round(this.b); }; TinyColor2.prototype.clone = function() { return new TinyColor2(this.toString()); }; TinyColor2.prototype.lighten = function(amount) { if (amount === void 0) { amount = 10; } var hsl = this.toHsl(); hsl.l += amount / 100; hsl.l = clamp01(hsl.l); return new TinyColor2(hsl); }; TinyColor2.prototype.brighten = function(amount) { if (amount === void 0) { amount = 10; } var rgb = this.toRgb(); rgb.r = Math.max(0, Math.min(255, rgb.r - Math.round(255 * -(amount / 100)))); rgb.g = Math.max(0, Math.min(255, rgb.g - Math.round(255 * -(amount / 100)))); rgb.b = Math.max(0, Math.min(255, rgb.b - Math.round(255 * -(amount / 100)))); return new TinyColor2(rgb); }; TinyColor2.prototype.darken = function(amount) { if (amount === void 0) { amount = 10; } var hsl = this.toHsl(); hsl.l -= amount / 100; hsl.l = clamp01(hsl.l); return new TinyColor2(hsl); }; TinyColor2.prototype.tint = function(amount) { if (amount === void 0) { amount = 10; } return this.mix("white", amount); }; TinyColor2.prototype.shade = function(amount) { if (amount === void 0) { amount = 10; } return this.mix("black", amount); }; TinyColor2.prototype.desaturate = function(amount) { if (amount === void 0) { amount = 10; } var hsl = this.toHsl(); hsl.s -= amount / 100; hsl.s = clamp01(hsl.s); return new TinyColor2(hsl); }; TinyColor2.prototype.saturate = function(amount) { if (amount === void 0) { amount = 10; } var hsl = this.toHsl(); hsl.s += amount / 100; hsl.s = clamp01(hsl.s); return new TinyColor2(hsl); }; TinyColor2.prototype.greyscale = function() { return this.desaturate(100); }; TinyColor2.prototype.spin = function(amount) { var hsl = this.toHsl(); var hue = (hsl.h + amount) % 360; hsl.h = hue < 0 ? 360 + hue : hue; return new TinyColor2(hsl); }; TinyColor2.prototype.mix = function(color, amount) { if (amount === void 0) { amount = 50; } var rgb1 = this.toRgb(); var rgb2 = new TinyColor2(color).toRgb(); var p = amount / 100; var rgba = { r: (rgb2.r - rgb1.r) * p + rgb1.r, g: (rgb2.g - rgb1.g) * p + rgb1.g, b: (rgb2.b - rgb1.b) * p + rgb1.b, a: (rgb2.a - rgb1.a) * p + rgb1.a }; return new TinyColor2(rgba); }; TinyColor2.prototype.analogous = function(results, slices) { if (results === void 0) { results = 6; } if (slices === void 0) { slices = 30; } var hsl = this.toHsl(); var part = 360 / slices; var ret = [this]; for (hsl.h = (hsl.h - (part * results >> 1) + 720) % 360; --results; ) { hsl.h = (hsl.h + part) % 360; ret.push(new TinyColor2(hsl)); } return ret; }; TinyColor2.prototype.complement = function() { var hsl = this.toHsl(); hsl.h = (hsl.h + 180) % 360; return new TinyColor2(hsl); }; TinyColor2.prototype.monochromatic = function(results) { if (results === void 0) { results = 6; } var hsv = this.toHsv(); var h2 = hsv.h; var s = hsv.s; var v = hsv.v; var res = []; var modification = 1 / results; while (results--) { res.push(new TinyColor2({ h: h2, s, v })); v = (v + modification) % 1; } return res; }; TinyColor2.prototype.splitcomplement = function() { var hsl = this.toHsl(); var h2 = hsl.h; return [ this, new TinyColor2({ h: (h2 + 72) % 360, s: hsl.s, l: hsl.l }), new TinyColor2({ h: (h2 + 216) % 360, s: hsl.s, l: hsl.l }) ]; }; TinyColor2.prototype.onBackground = function(background) { var fg = this.toRgb(); var bg = new TinyColor2(background).toRgb(); var alpha = fg.a + bg.a * (1 - fg.a); return new TinyColor2({ r: (fg.r * fg.a + bg.r * bg.a * (1 - fg.a)) / alpha, g: (fg.g * fg.a + bg.g * bg.a * (1 - fg.a)) / alpha, b: (fg.b * fg.a + bg.b * bg.a * (1 - fg.a)) / alpha, a: alpha }); }; TinyColor2.prototype.triad = function() { return this.polyad(3); }; TinyColor2.prototype.tetrad = function() { return this.polyad(4); }; TinyColor2.prototype.polyad = function(n2) { var hsl = this.toHsl(); var h2 = hsl.h; var result = [this]; var increment = 360 / n2; for (var i = 1; i < n2; i++) { result.push(new TinyColor2({ h: (h2 + i * increment) % 360, s: hsl.s, l: hsl.l })); } return result; }; TinyColor2.prototype.equals = function(color) { return this.toRgbString() === new TinyColor2(color).toRgbString(); }; return TinyColor2; }() ); function darken(color, amount = 20) { return color.mix("#141414", amount).toString(); } function useButtonCustomStyle(props) { const _disabled = useFormDisabled(); const ns2 = useNamespace("button"); return computed(() => { let styles = {}; let buttonColor = props.color; if (buttonColor) { const match = buttonColor.match(/var\((.*?)\)/); if (match) { buttonColor = (void 0).getComputedStyle((void 0).document.documentElement).getPropertyValue(match[1]); } const color = new TinyColor(buttonColor); const activeBgColor = props.dark ? color.tint(20).toString() : darken(color, 20); if (props.plain) { styles = ns2.cssVarBlock({ "bg-color": props.dark ? darken(color, 90) : color.tint(90).toString(), "text-color": buttonColor, "border-color": props.dark ? darken(color, 50) : color.tint(50).toString(), "hover-text-color": `var(${ns2.cssVarName("color-white")})`, "hover-bg-color": buttonColor, "hover-border-color": buttonColor, "active-bg-color": activeBgColor, "active-text-color": `var(${ns2.cssVarName("color-white")})`, "active-border-color": activeBgColor }); if (_disabled.value) { styles[ns2.cssVarBlockName("disabled-bg-color")] = props.dark ? darken(color, 90) : color.tint(90).toString(); styles[ns2.cssVarBlockName("disabled-text-color")] = props.dark ? darken(color, 50) : color.tint(50).toString(); styles[ns2.cssVarBlockName("disabled-border-color")] = props.dark ? darken(color, 80) : color.tint(80).toString(); } } else { const hoverBgColor = props.dark ? darken(color, 30) : color.tint(30).toString(); const textColor = color.isDark() ? `var(${ns2.cssVarName("color-white")})` : `var(${ns2.cssVarName("color-black")})`; styles = ns2.cssVarBlock({ "bg-color": buttonColor, "text-color": textColor, "border-color": buttonColor, "hover-bg-color": hoverBgColor, "hover-text-color": textColor, "hover-border-color": hoverBgColor, "active-bg-color": activeBgColor, "active-border-color": activeBgColor }); if (_disabled.value) { const disabledButtonColor = props.dark ? darken(color, 50) : color.tint(50).toString(); styles[ns2.cssVarBlockName("disabled-bg-color")] = disabledButtonColor; styles[ns2.cssVarBlockName("disabled-text-color")] = props.dark ? "rgba(255, 255, 255, 0.5)" : `var(${ns2.cssVarName("color-white")})`; styles[ns2.cssVarBlockName("disabled-border-color")] = disabledButtonColor; } } } return styles; }); } const __default__$1 = defineComponent({ name: "ElButton" }); const _sfc_main$6 = /* @__PURE__ */ defineComponent({ ...__default__$1, props: buttonProps, emits: buttonEmits, setup(__props, { expose, emit }) { const props = __props; const buttonStyle = useButtonCustomStyle(props); const ns2 = useNamespace("button"); const { _ref, _size, _type, _disabled, _props, shouldAddSpace, handleClick } = useButton(props, emit); const buttonKls = computed(() => [ ns2.b(), ns2.m(_type.value), ns2.m(_size.value), ns2.is("disabled", _disabled.value), ns2.is("loading", props.loading), ns2.is("plain", props.plain), ns2.is("round", props.round), ns2.is("circle", props.circle), ns2.is("text", props.text), ns2.is("link", props.link), ns2.is("has-bg", props.bg) ]); expose({ ref: _ref, size: _size, type: _type, disabled: _disabled, shouldAddSpace }); return (_ctx, _cache) => { return openBlock(), createBlock(resolveDynamicComponent(_ctx.tag), mergeProps({ ref_key: "_ref", ref: _ref }, unref(_props), { class: unref(buttonKls), style: unref(buttonStyle), onClick: unref(handleClick) }), { default: withCtx(() => [ _ctx.loading ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [ _ctx.$slots.loading ? renderSlot(_ctx.$slots, "loading", { key: 0 }) : (openBlock(), createBlock(unref(ElIcon), { key: 1, class: normalizeClass(unref(ns2).is("loading")) }, { default: withCtx(() => [ (openBlock(), createBlock(resolveDynamicComponent(_ctx.loadingIcon))) ]), _: 1 }, 8, ["class"])) ], 64)) : _ctx.icon || _ctx.$slots.icon ? (openBlock(), createBlock(unref(ElIcon), { key: 1 }, { default: withCtx(() => [ _ctx.icon ? (openBlock(), createBlock(resolveDynamicComponent(_ctx.icon), { key: 0 })) : renderSlot(_ctx.$slots, "icon", { key: 1 }) ]), _: 3 })) : createCommentVNode("v-if", true), _ctx.$slots.default ? (openBlock(), createElementBlock("span", { key: 2, class: normalizeClass({ [unref(ns2).em("text", "expand")]: unref(shouldAddSpace) }) }, [ renderSlot(_ctx.$slots, "default") ], 2)) : createCommentVNode("v-if", true) ]), _: 3 }, 16, ["class", "style", "onClick"]); }; } }); var Button = /* @__PURE__ */ _export_sfc$1(_sfc_main$6, [["__file", "button.vue"]]); const buttonGroupProps = { size: buttonProps.size, type: buttonProps.type }; const __default__ = defineComponent({ name: "ElButtonGroup" }); const _sfc_main$5 = /* @__PURE__ */ defineComponent({ ...__default__, props: buttonGroupProps, setup(__props) { const props = __props; provide(buttonGroupContextKey, reactive({ size: toRef(props, "size"), type: toRef(props, "type") })); const ns2 = useNamespace("button"); return (_ctx, _cache) => { return openBlock(), createElementBlock("div", { class: normalizeClass(unref(ns2).b("group")) }, [ renderSlot(_ctx.$slots, "default") ], 2); }; } }); var ButtonGroup = /* @__PURE__ */ _export_sfc$1(_sfc_main$5, [["__file", "button-group.vue"]]); const ElButton = withInstall(Button, { ButtonGroup }); withNoopInstall(ButtonGroup); const _export_sfc = (sfc, props) => { const target = sfc.__vccOpts || sfc; for (const [key, val] of props) { target[key] = val; } return target; }; const _sfc_main$4 = { __name: "Like", __ssrInlineRender: true, setup(__props) { const imageUrl = ref(""); return (_ctx, _push, _parent, _attrs) => { _push(``); }; } }; const _sfc_setup$4 = _sfc_main$4.setup; _sfc_main$4.setup = (props, ctx) => { const ssrContext = useSSRContext(); (ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("components/Like.vue"); return _sfc_setup$4 ? _sfc_setup$4(props, ctx) : void 0; }; const __nuxt_component_5 = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-972d2ebd"]]); const _imports_3$1 = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAYAAADDPmHLAAALmklEQVR4nO2d7VnbSBeGZ6QF9l+cCkIqwFsBpIKQAgC5gpAKcCoIWwEKFBBvBXEqCFQQbwXr999CXkl7jywRA/6Q7fmS0H1d55ojIHA055lvyZGigWRRtPv/JHmVSNnlBjsiy3YzIXYFSCnVdRf3AZmUI74+EgVSiDE/fE05knz9tzC8kXE85luNgvurNyS7c5em+7jdLMsOuKEufgczwTgT4jrAEMxwOwi+1V0U1Ff9+Hl0tE8iDknCAa22y5fcoXqJLBtSkYOtq6tvfKVWSKwW3EVRN0uS97iHWAfzkTE2kGH453YcX+N7j9cCoHvfpXs/obVHtLJdUSPonUZUbsww8ZlhYiQ8hRj942cUHaRJcoIbiWYQB2H4eSuOh8IzJOYNKvFJkpwR1IFoIJkQwzAMP/okBIk5p+mJf4xPQpCYM9QYf5skFwRxIJ4ng+0w/OByjkDdu+H2+PiMJdwpbgd7zqgNp/Ody8uP+NaRmFXy7j5NL+o2qzeNWjWEQdCzPSxIzBp3R0efGP9OcVvmQELOt6+uPuBagb9nHjXWs57/Qpff5bJlGewusn/wzsbcwLgAaPURrf4Tbgdrqc5YhGFvJ44H+MYwKoBiotcXLWtDgowOCfx+/dDld+6SRLX6SLToIC6Wi2N8rWgXQJ78NP1Ky+9y2aKLybzgjW4RaBVAm3zDGBCBNgG0ybeD2i8IWCHoOm7WIoA2+XZRItgJgj909AQbC6BNviM0DQcbCaBNvmM0iGAjAdweHV1QRKLFJfHO1VWPci0kthZ3x8fnWZa9x21xjJTyz+3Ly1PclVlLALdRdCiS5Atuiy+E4bt1to1XFgDj/i67fN9xO1iLP4zZLVQrg5FYgZUEQPLbSZ/PMCncubz8A68yKwmgHff9Z9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WsupfL/6Ez9Blr7LP69T+hrlJkGRjEcggVsOperrsBlDjEvst19551Bq1tvfM2h1ABq+4t8R2hCRbaXymuEVoh0ZYMYu0ygEzNNfncnWKmLRnEcggVsOpXia947m6QyH8ntGYQa9cBjLDENzxXK4xRYmsGsRxCBayGlck/N9H+WmN5a41oBrGeagCvMoNYmwOoFNlX31oGsXI11+8hSvwv6jKAKc4QKnGENd58BrFGqHR3eVlXye+vv1HizdZlAHWZXvaCpksTLNQzg65lev1D6PN5/qvvE6z8lL/gtbVCop4ZDCnFGIm8l66S/z1DiV4ZvOs+BoB33ccA8K77F/DNI1Ad1eJHAAAAAElFTkSuQmCC"; const _imports_8$1 = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3csvg%20version='1.1'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='14px'%20height='14px'%20xmlns='http://www.w3.org/2000/svg'%3e%3cdefs%3e%3cfilter%20x='-50.00%25'%20y='-50.00%25'%20width='200.00%25'%20height='200.00%25'%20filterUnits='objectBoundingBox'%20id='filter572'%3e%3cfeColorMatrix%20type='matrix'%20values='1%200%200%200%200.4%200%201%200%200%200.4%200%200%201%200%200.4%200%200%200%201%200%20'%20in='SourceGraphic'%20/%3e%3c/filter%3e%3c/defs%3e%3cg%20transform='matrix(1%200%200%201%20-1686%20-5323%20)'%3e%3cimage%20preserveAspectRatio='none'%20style='overflow:visible'%20width='14'%20height='14'%20xlink:href='data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAMAAAD04JH5AAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAIdQTFRFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA92IrIQAAACx0Uk5TAB5tuNj0bB0bmfz9qiBQ8/JOb24cGp6ba7e12/HZ12n7nJgZSU1MFZGitmptU/ZgAAAAAWJLR0QAiAUdSAAAAAlwSFlzAAAASAAAAEgARslrPgAAAQ1JREFUeNrt1utOwlAQReEC5WKrnGKrItaK4t3z/s+nicYIHacN2ZHErO8nk7UDDSEkCQAAAAAAAAAAAPBpMByl43E6mkwP0syOsvglPz7pN6Vs5iH+UCz6bCmb0zxuycvuLWUz33n949L5eZRNFWJLceZvSZvzaLjwx5TNILMOWeVtSZsympbemLS5tA8rb0zaXNmH1BuTNsE+BG9M2vxyqPcY26+5tg+NNyZtDv4lnNiHG29M2kzNH4i1+6OibW6tw13ikjazov16vfHHtM196+HkD0kHbVPu/lEYdm2pm8XW06kfu7fUzdPz+vttvWz6bMmbavnahNCs3qp+U3/ZAAAAAAAAAAAA4J97B6Y13hOEznw5AAAAJXRFWHRkYXRlOmNyZWF0ZQAyMDIwLTAzLTE4VDEyOjI5OjA2KzA4OjAwpDFvtAAAACV0RVh0ZGF0ZTptb2RpZnkAMjAyMC0wMy0xOFQxMjoyOTowNiswODowMNVs1wgAAABJdEVYdHN2ZzpiYXNlLXVyaQBmaWxlOi8vL2hvbWUvYWRtaW4vaWNvbi1mb250L3RtcC9pY29uX2V3MGNucnU1MjUvZ2VuZ2R1by5zdmfa+p/PAAAAAElFTkSuQmCC'%20x='1686px'%20y='5323px'%20filter='url(%23filter572)'%20/%3e%3c/g%3e%3c/svg%3e"; const _imports_7 = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3csvg%20version='1.1'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='14px'%20height='13px'%20xmlns='http://www.w3.org/2000/svg'%3e%3cdefs%3e%3cfilter%20x='-50.00%25'%20y='-50.00%25'%20width='200.00%25'%20height='200.00%25'%20filterUnits='objectBoundingBox'%20id='filter571'%3e%3cfeColorMatrix%20type='matrix'%20values='1%200%200%200%200.4%200%201%200%200%200.4%200%200%201%200%200.4%200%200%200%201%200%20'%20in='SourceGraphic'%20/%3e%3c/filter%3e%3c/defs%3e%3cg%20transform='matrix(1%200%200%201%20-1740%20-5324%20)'%3e%3cimage%20preserveAspectRatio='none'%20style='overflow:visible'%20width='14'%20height='13'%20xlink:href='data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAAA4CAYAAABNGP5yAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAQKADAAQAAAABAAAAOAAAAACP8+m+AAADhUlEQVRoBe2aS4hPURzHZ7zfj4USmTGTkGcodiRRNh5JNsooO7NhgyJSyoayIDbySFlYkLLwyAaRR5Ty2DCTJPIYeYfx+U5z9O/M+f/N/zf3/q//vfdX3+4959zze3zP6557T01NxqU2EP8M8prAPDAaVLN8x/lWcBEcA+9AURlCyVHwG7SnEG3EtAEERcHfAmkM3I9pd4iBUxkJ3pGxwpGgOWAuUOv7cpuM60DjqFplOI4vA2O8AJ6TngB+Kf8QcMy46zbyQhOknq82GYbDV4GLzV0Xu0AeeoV3XUGKrg3E4k/uOxVfL+AvdWIrbfKMgF54QdUrLQL6ewXfvHRakp+8QHorLQIyLTkBmW5+gs98D+jTwx4wivpDe6jDr/6WDL23V0SsBDTi3XkwJSYvr6B3Ofgck/6/aq1DQG+KcQUv5xaB9bqJW6wEdLxExOzc+Jj1d6i3EvCkAs49qoAN8yqwB+cugx8xOPkFnSfBiRh0d1FpnQRfoUm7Kb1OarcVpbyPUtm/dFkJcHq1n66ow85wVFfrHBCV/cT15AQk3gQJO5D3gIQbIHHzme8B1mVQxK0DC8GABJuxFdsHgb75mcRKQDPWDpgsRl9pNSonAdO3TOsQWBJ9HGaNddQ070ytBMSxBzAzQEVT68uglYDj1NWPhv9BbuLEY6sj1jngHAZngwVgoNV4BPVa0HEWmBvDSoB8f9AJ3VetWIdA1QbsO54T4DOStXTeA7LW4n68eQ+AkXaPlb5eOi1Jv7E73h2U+caLcJqXTkNSh6UavEBeu/QZbtQLHPSld74rTMl1X0F8Ls41iq0WrAIioVC+ktgPLgH/aEnhc1Hda3OlP0E/y1SoHqweW2zY1lO2FqwEhfKRRB1oU6Z+buhMoGMmqatOq80E3ZURPHgfWPzd7huZTIbmAouyKOvoUOYO0J09yiajv/r1HtQ/nYKnRqVRkiBdd8BUUEo2Uliu3dPUKbl7HcQDm4G1a5XrUKnn9ZFjK9AQDclgMq+BUjpUJj0XwFLQRTQJFhMdfRkLZChOGYdyzdKNRYzoHHMTCH30kP9a3kaCkHwgswWUO7mGdMWap265t9PRUItqVdoCivUGitIhswjjHgiRoLwbQF+AUy39iG4X0IoQIuIl+XEPS0wkL3rB0QfPEAlzknevMh5ozGu913E5R4R6gFarTMlEoj0MjgC9tEUmfwCaJfF0KbQc/QAAAABJRU5ErkJggg=='%20x='1740px'%20y='5324px'%20filter='url(%23filter571)'%20/%3e%3c/g%3e%3c/svg%3e"; const _imports_10$1 = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAMKADAAQAAAABAAAAMAAAAADbN2wMAAAFFklEQVRoBdWZW2icRRTHdze7MVsviblYRVEbr4iihnjpmnuCxEARtQYFxZc+ircHfUygUkXQPlnQKuibBEEkNRISkxDazUNDQLBREW0pPtikmsqa2N1ks/5OzLecmb0k+/ml+zkw7DlnZs78/zNn5puZDQZ2KI2MjFwVjUZfxf1+8q3ki+STmUzm/a6uri+RPUlBT7xYTsbHx+8Kh8NfA/ZGq8hRP0U40NnZueYY3P6G3DYs1G5ycrKmoqLiqyLgpekL5DcL+SjF7jkBOn+ZfLMF4i90e7RfGxsbK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y/wKy6h6rkxXK+2I7IJgWgTX821oYgDrV1dUto/jOGrBcK3Gky6pHiYm7F7DLnUEPgXGF1YV7IFBu3bp1OJtQx6q9lHTlF5N3OucvOwk842mT9jeD6XjOZ/Z/MLr2PRAo/T/r6EvL/gLQn9nYzUo8EvS7XKXSBvC78G/BC8t0F7wwdFgBKUXcA7Mp9HJ0qZKNNf9Sn06MdyUDrYITch6ZeLxfKNa6QCQnDUCNfhCvUs2QbOgkK/JcVlbWm539a6KxTajqkvLP+UU0DExoJAsA/yipGwlefVMGoA4s6UTAbqBq94SaRCfgct5Om9N9O23ZsuU63vfTAKiTxl5S8itSzitt9nhSkn8uGoDstm/fPkx/XKA6MomfVvTa+HpdHoRrYAXXAIuyORjy9K3BZIwC9Hh0+XDCKaiOPh2iLI3K+aBDUHYqAHWurq7OrK2t1WwthqNWQ926S94fugnyJcDbn3GS+u10AIEH/ZbKTD7FLGqTZwX6bpaN2OvAWArw8JLqjM+0Awic+m+UycjT4DFwur7asNnPRGxixrcAvA45bUp30MgBCOYqjtZxgBkLGP1UeSOsYzHbN9BeqIWP0ecwffaxgav5Hyp/+u1dLv4D4SL5jJQdUmEAAAAASUVORK5CYII="; const mutable = (val) => val; const messageTypes = ["success", "info", "warning", "error"]; const messageDefaults = mutable({ customClass: "", center: false, dangerouslyUseHTMLString: false, duration: 3e3, icon: void 0, id: "", message: "", onClose: void 0, showClose: false, type: "info", plain: false, offset: 16, zIndex: 0, grouping: false, repeatNum: 1, appendTo: void 0 }); buildProps({ customClass: { type: String, default: messageDefaults.customClass }, center: { type: Boolean, default: messageDefaults.center }, dangerouslyUseHTMLString: { type: Boolean, default: messageDefaults.dangerouslyUseHTMLString }, duration: { type: Number, default: messageDefaults.duration }, icon: { type: iconPropType, default: messageDefaults.icon }, id: { type: String, default: messageDefaults.id }, message: { type: definePropType([ String, Object, Function ]), default: messageDefaults.message }, onClose: { type: definePropType(Function), default: messageDefaults.onClose }, showClose: { type: Boolean, default: messageDefaults.showClose }, type: { type: String, values: messageTypes, default: messageDefaults.type }, plain: { type: Boolean, default: messageDefaults.plain }, offset: { type: Number, default: messageDefaults.offset }, zIndex: { type: Number, default: messageDefaults.zIndex }, grouping: { type: Boolean, default: messageDefaults.grouping }, repeatNum: { type: Number, default: messageDefaults.repeatNum } }); const instances = shallowReactive([]); const configProviderProps = buildProps({ a11y: { type: Boolean, default: true }, locale: { type: definePropType(Object) }, size: useSizeProp, button: { type: definePropType(Object) }, experimentalFeatures: { type: definePropType(Object) }, keyboardNavigation: { type: Boolean, default: true }, message: { type: definePropType(Object) }, zIndex: Number, namespace: { type: String, default: "el" }, ...useEmptyValuesProps }); const messageConfig = {}; defineComponent({ name: "ElConfigProvider", props: configProviderProps, setup(props, { slots }) { watch(() => props.message, (val) => { Object.assign(messageConfig, val != null ? val : {}); }, { immediate: true, deep: true }); const config = provideGlobalConfig(props); return () => renderSlot(slots, "default", { config: config == null ? void 0 : config.value }); } }); const normalizeOptions = (params) => { const options = !params || shared_cjs_prodExports.isString(params) || isVNode(params) || shared_cjs_prodExports.isFunction(params) ? { message: params } : params; const normalized = { ...messageDefaults, ...options }; if (!normalized.appendTo) { normalized.appendTo = (void 0).body; } else if (shared_cjs_prodExports.isString(normalized.appendTo)) { let appendTo = (void 0).querySelector(normalized.appendTo); if (!isElement(appendTo)) { appendTo = (void 0).body; } normalized.appendTo = appendTo; } if (isBoolean(messageConfig.grouping) && !normalized.grouping) { normalized.grouping = messageConfig.grouping; } if (isNumber(messageConfig.duration) && normalized.duration === 3e3) { normalized.duration = messageConfig.duration; } if (isNumber(messageConfig.offset) && normalized.offset === 16) { normalized.offset = messageConfig.offset; } if (isBoolean(messageConfig.showClose) && !normalized.showClose) { normalized.showClose = messageConfig.showClose; } return normalized; }; const message = (options = {}, context) => { return { close: () => void 0 }; }; messageTypes.forEach((type) => { message[type] = (options = {}, appContext) => { const normalized = normalizeOptions(options); return message({ ...normalized }); }; }); function closeAll(type) { for (const instance of instances) { if (!type || type === instance.props.type) { instance.handler.close(); } } } message.closeAll = closeAll; message._context = null; const ElMessage = withInstallFunction(message, "$message"); const _sfc_main$3 = { __name: "commentList", __ssrInlineRender: true, props: { token: String }, setup(__props, { expose: __expose, emit: __emit }) { let permissions = ref([]); const $ajax = inject("$ajax"); inject("$ajaxGET"); const detailsToken = inject("detailsToken"); const handleDate = inject("handleDate"); inject("isNeedLogin"); inject("handleMsg"); inject("uploadImg"); inject("handleAnswerText"); const emojiMaskState = inject("emojiMaskState"); const user = inject("user"); inject("goLogin"); inject("detailLoading"); const commentList = ref([]); let commentCount = ref(0); let commentTotalCount = ref(0); let commentPage = ref(1); let isgetCommentSate = false; const getComment = () => { if (commentPage.value == 0 || isgetCommentSate) return; isgetCommentSate = true; $ajax("/api/comment/lists", { token: detailsToken.value, page: commentPage.value, limit: 1500 }).then((res) => { if (res.code != 200) return; let data = res.data; data.data.forEach((element, index) => { element["isReplyBoxShow"] = 0; if (element.child.length > 0) { element.child.forEach((el) => { el["isReplyBoxShow"] = 0; }); } }); if (commentPage.value > 1) { let alreadyCommentIdList2 = alreadyCommentIdList2; for (let index = 0; index < data.data.length; index++) { if (alreadyCommentIdList2.includes(data.data[index].id)) { data.data.splice(index, 1); index--; } } } commentList.value = commentList.value.concat(data.data); commentCount.value = data.count; commentTotalCount.value = data.comments; commentPage.value = data.count > commentList.length ? commentPage.value + 1 : 0; }).finally(() => { isgetCommentSate = false; }); }; let picture = ref({}); let inputTextarea = ref(""); watch( detailsToken, (newValue, oldValue) => { if (newValue !== oldValue) { commentPage.value = 1; commentList.value = []; picture.value = {}; commentTotalCount.value = 0; commentCount.value = 0; inputTextarea.value = ""; getComment(); } }, { immediate: true } ); let emojiState = ref(false); const emojiData = ["😀", "😁", "😆", "😅", "😂", "😉", "😍", "🥰", "😘", "🤥", "😪", "😵‍💫", "🤓", "🥺", "😋", "😜", "🤪", "😎", "🤩", "🥳", "😔", "🙁", "😭", "😡", "😳", "🤗", "🤔", "🤭", "🤫", "😯", "😵", "🙄", "🥴", "🤢", "🤑", "🤠", "👌", "✌️", "🤟", "🤘", "🤙", "👍", "👎", "✊", "👏", "🤝", "🙏", "💪", "❎️", "✳️", "✴️", "❇️", "#️⃣", "*️⃣", "1️⃣", "2️⃣", "3️⃣", "4️⃣", "5️⃣", "6️⃣", "7️⃣", "8️⃣", "9️⃣", "🔟", "🆗", "🈶", "🉐", "🉑", "🌹", "🥀", "🌸", "🌺", "🌷", "🌲", "☘️", "🍀", "🍁", "🌙", "⭐", "🌍", "☀️", "⭐️", "🌟", "☁️", "🌈", "☂️", "❄️", "☃️", "☄️", "🔥", "💧", "🍎", "🍐", "🍊", "🍉", "🍓", "🍑", "🍔", "🍟", "🍕", "🥪", "🍜", "🍡", "🍨", "🍦", "🎂", "🍰", "🍭", "🍿", "🍩", "🧃", "🍹", "🍒", "🥝", "🥒", "🥦", "🥨", "🌭", "🥘", "🍱", "🍢", "🥮", "🍩", "🍪", "🧁", "🍵", "🍶", "🍻", "🥂", "🧋", "🎉", "🎁", "🧧", "🎃", "🎄", "🧨", "✨️", "🎈", "🎊", "🎋", "🎍", "🎀", "🎖️", "🏆️", "🏅", "💌", "📬", "🚗", "🚕", "🚲", "🛵", "🚀", "🚁", "⛵", "🚢", "🔮", "🧸", "🀄️"]; const closeEmoji = (index, i) => { commentList.value.forEach((ele) => { ele["emojiState"] = false; if (ele["child"] && ele["child"].length != 0) { ele["child"].forEach((el) => { el["emojiState"] = false; }); } }); emojiState.value = false; emojiMaskState.value = false; editEmojiState.value = false; }; __expose({ closeEmoji }); const selectEmoji = (key, index, i) => { closeEmoji(); if (i != void 0) { if (!commentList.value[index]["child"][i]["commentInput"]) commentList.value[index]["child"][i]["commentInput"] = ""; commentList.value[index]["child"][i]["commentInput"] += key; } else if (index != void 0) { if (!commentList.value[index]["commentInput"]) commentList.value[index]["commentInput"] = ""; commentList.value[index]["commentInput"] += key; } else { inputTextarea.value += key; } }; inject("openAttest"); inject("realname"); let isLikeGif = ref(false); inject("handleMenuState"); let dialogVisible = ref(false); let commemtDelete = {}; const confirmCommentDelete = () => { $ajax("/api/comment/commentDelete", { token: commemtDelete.token }).then((res) => { if (res.code != 200) { ElMessage.error(res.message); return; } if (commemtDelete.i >= 0) { commentList.value[commemtDelete.index].child.splice(commemtDelete.i, 1); commentList.value[commemtDelete.index].childnum -= 1; } else { commentTotalCount.value -= commentList.value[commemtDelete.index].childnum; commentList.value.splice(commemtDelete.index, 1); } commentTotalCount.value -= 1; dialogVisible.value = false; ElMessage.success(res.message || "操作成功"); }); }; let editCommentState = ref(false); let editPicture = ref({}); let editInput = ref(""); let editEmojiState = ref(false); ref(null); const selectEditEmoji = (key) => { closeEmoji(); editInput.value += key; }; return (_ctx, _push, _parent, _attrs) => { const _component_el_popover = ElPopover; const _component_el_dialog = ElDialog; const _component_el_button = ElButton; const _component_Like = __nuxt_component_5; _push(`
`); if (unref(editCommentState)) { _push(`
编辑评论
`); if (unref(editPicture).url) { _push(`
`); } else { _push(``); } _push(`
`); _push(ssrRenderComponent(_component_el_popover, { placement: "left-start", "popper-class": "emoji-popover", width: 584, trigger: "click", visible: unref(editEmojiState), "onUpdate:visible": ($event) => isRef(editEmojiState) ? editEmojiState.value = $event : editEmojiState = $event, teleported: false }, { reference: withCtx((_, _push2, _parent2, _scopeId) => { if (_push2) { _push2(``); } else { return [ createVNode("img", { class: "icon", src: _imports_4$1, alt: "" }) ]; } }), default: withCtx((_, _push2, _parent2, _scopeId) => { if (_push2) { _push2(`
`); ssrRenderList(emojiData, (item) => { _push2(`
${ssrInterpolate(item)}
`); }); _push2(`
`); } else { return [ createVNode("div", { class: "emoji-box" }, [ (openBlock(), createBlock(Fragment, null, renderList(emojiData, (item) => { return createVNode("div", { class: "emoji-icon", key: item, onClick: ($event) => selectEditEmoji(item) }, toDisplayString(item), 9, ["onClick"]); }), 64)) ]) ]; } }), _: 1 }, _parent)); _push(`
最多可上传1张图片,支持在输入框中直接粘贴图片。
`); if (unref(editInput)) { _push(`
${ssrInterpolate(unref(editInput).length)}/1000
`); } else { _push(``); } _push(`
取消
发送
`); } else { _push(``); } _push(`
回答&讨论 ${ssrInterpolate(unref(commentTotalCount) || "")}
`); if (unref(user).avatar) { _push(``); } else { _push(``); } _push(`
`); if (unref(picture).url) { _push(`
`); } else { _push(``); } _push(`
`); _push(ssrRenderComponent(_component_el_popover, { placement: "bottom", "popper-class": "emoji-popover", width: 584, trigger: "click", visible: unref(emojiState), "onUpdate:visible": ($event) => isRef(emojiState) ? emojiState.value = $event : emojiState = $event, teleported: false }, { reference: withCtx((_, _push2, _parent2, _scopeId) => { if (_push2) { _push2(``); } else { return [ createVNode("img", { class: "icon", src: _imports_4$1, alt: "" }) ]; } }), default: withCtx((_, _push2, _parent2, _scopeId) => { if (_push2) { _push2(`
`); ssrRenderList(emojiData, (item) => { _push2(`
${ssrInterpolate(item)}
`); }); _push2(`
`); } else { return [ createVNode("div", { class: "emoji-box" }, [ (openBlock(), createBlock(Fragment, null, renderList(emojiData, (item) => { return createVNode("div", { class: "emoji-icon", key: item, onClick: ($event) => selectEmoji(item) }, toDisplayString(item), 9, ["onClick"]); }), 64)) ]) ]; } }), _: 1 }, _parent)); _push(`
最多可上传1张图片,支持在输入框中直接粘贴图片。
`); if (unref(inputTextarea)) { _push(`
${ssrInterpolate(unref(inputTextarea).length)}/1000
`); } else { _push(``); } _push(`
发送
`); ssrRenderList(unref(commentList), (item, index) => { var _a2, _b2, _c2, _d2; _push(`
${ssrInterpolate(item["nickname"] || "匿名用户")}
${ssrInterpolate(unref(handleDate)(item["timestamp"]))}
`); if (item["isauthor"] == 1) { _push(`
提问者
`); } else { _push(``); } if (item["groupimage"]) { _push(``); } else { _push(``); } if (item["avatarState"]) { _push(``); } else { _push(``); } _push(`
${item["content"] ?? ""}
`); if ((_a2 = item.image) == null ? void 0 : _a2.url) { _push(``); } else { _push(``); } if (item["childState"]) { _push(`
`); if ((_d2 = item.picture) == null ? void 0 : _d2.url) { _push(`
`); } else { _push(``); } _push(`
`); _push(ssrRenderComponent(_component_el_popover, { placement: "bottom", "popper-class": "emoji-popover", width: 584, trigger: "click", visible: item.emojiState, "onUpdate:visible": ($event) => item.emojiState = $event, teleported: false }, { reference: withCtx((_, _push2, _parent2, _scopeId) => { if (_push2) { _push2(``); } else { return [ createVNode("img", { class: "icon", src: _imports_4$1, alt: "" }) ]; } }), default: withCtx((_, _push2, _parent2, _scopeId) => { if (_push2) { _push2(`
`); ssrRenderList(emojiData, (item2) => { _push2(`
${ssrInterpolate(item2)}
`); }); _push2(`
`); } else { return [ createVNode("div", { class: "emoji-box" }, [ (openBlock(), createBlock(Fragment, null, renderList(emojiData, (item2) => { return createVNode("div", { class: "emoji-icon", key: item2, onClick: ($event) => selectEmoji(item2, index) }, toDisplayString(item2), 9, ["onClick"]); }), 64)) ]) ]; } }), _: 2 }, _parent)); _push(`
最多可上传1张图片,支持在输入框中直接粘贴图片。
`); if (item["commentInput"]) { _push(`
${ssrInterpolate(item.commentInput.length)}/1000
`); } else { _push(``); } _push(`
发送
`); } else { _push(``); } _push(`
`); if (item["child"].length != 0) { _push(`
`); ssrRenderList(item["child"], (ite, i) => { var _a3, _b3, _c3, _d3, _e6; _push(`
${ssrInterpolate(ite["nickname"] || "匿名用户")}
${ssrInterpolate(unref(handleDate)(ite["timestamp"]))}
`); if (ite["isauthor"] == 1) { _push(`
提问者
`); } else { _push(``); } if (ite["groupimage"]) { _push(``); } else { _push(``); } if (ite["avatarState"]) { _push(``); } else { _push(``); } _push(`
`); if ((_a3 = ite == null ? void 0 : ite.reply) == null ? void 0 : _a3.nickname) { _push(`
@${ssrInterpolate(ite["reply"]["nickname"] || "匿名用户")}
`); } else { _push(``); } _push(`${ite["content"] ?? ""}
`); if ((_b3 = ite.image) == null ? void 0 : _b3.url) { _push(``); } else { _push(``); } if (ite["childState"]) { _push(`
`); if ((_e6 = ite.picture) == null ? void 0 : _e6.url) { _push(`
`); } else { _push(``); } _push(`
`); _push(ssrRenderComponent(_component_el_popover, { placement: "bottom", "popper-class": "emoji-popover", width: 584, trigger: "click", visible: ite.emojiState, "onUpdate:visible": ($event) => ite.emojiState = $event, teleported: false }, { reference: withCtx((_, _push2, _parent2, _scopeId) => { if (_push2) { _push2(``); } else { return [ createVNode("img", { class: "icon", src: _imports_4$1, alt: "" }) ]; } }), default: withCtx((_, _push2, _parent2, _scopeId) => { if (_push2) { _push2(`
`); ssrRenderList(emojiData, (item2) => { _push2(`
${ssrInterpolate(item2)}
`); }); _push2(`
`); } else { return [ createVNode("div", { class: "emoji-box" }, [ (openBlock(), createBlock(Fragment, null, renderList(emojiData, (item2) => { return createVNode("div", { class: "emoji-icon", key: item2, onClick: ($event) => selectEmoji(item2, index, i) }, toDisplayString(item2), 9, ["onClick"]); }), 64)) ]) ]; } }), _: 2 }, _parent)); _push(`
最多可上传1张图片,支持在输入框中直接粘贴图片。
`); if (ite["commentInput"]) { _push(`
${ssrInterpolate(ite.commentInput.length)}/1000
`); } else { _push(``); } _push(`
发送
`); } else { _push(``); } _push(`
`); }); _push(``); if (item["childnum"] > item["child"].length) { _push(`
还有${ssrInterpolate(item["childnum"] - item.child.length)}条回复
`); } else { _push(``); } _push(`
`); } else { _push(``); } _push(`
`); }); _push(`
`); _push(ssrRenderComponent(_component_el_dialog, { modelValue: unref(dialogVisible), "onUpdate:modelValue": ($event) => isRef(dialogVisible) ? dialogVisible.value = $event : dialogVisible = $event, title: "提示", width: "500" }, { footer: withCtx((_, _push2, _parent2, _scopeId) => { if (_push2) { _push2(``); } else { return [ createVNode("div", { class: "dialog-footer" }, [ createVNode(_component_el_button, { onClick: ($event) => isRef(dialogVisible) ? dialogVisible.value = false : dialogVisible = false }, { default: withCtx(() => [ createTextVNode("取 消") ]), _: 1 }, 8, ["onClick"]), createVNode(_component_el_button, { type: "primary", onClick: confirmCommentDelete }, { default: withCtx(() => [ createTextVNode("确 定") ]), _: 1 }) ]) ]; } }), default: withCtx((_, _push2, _parent2, _scopeId) => { if (_push2) { _push2(`确定删除该讨论吗?`); } else { return [ createVNode("span", null, "确定删除该讨论吗?") ]; } }), _: 1 }, _parent)); _push(`
`); if (unref(isLikeGif)) { _push(ssrRenderComponent(_component_Like, null, null, _parent)); } else { _push(``); } _push(``); }; } }; const _sfc_setup$3 = _sfc_main$3.setup; _sfc_main$3.setup = (props, ctx) => { const ssrContext = useSSRContext(); (ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("components/commentList.vue"); return _sfc_setup$3 ? _sfc_setup$3(props, ctx) : void 0; }; const _imports_0 = "" + __buildAssetsURL("logo.DlviZpxD.png"); const _imports_1 = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAFqUlEQVR4nN2a200jSxCGa1bwBGh9IlgTAUaAxBtNBGsiWBMBJgJMBGsiYIgAbwQ7vCEBwkSAieCA4I3L7FdmxjK+zaVnBuxPKlWZNUXXP9Xd7vY6UgAbGxtbvu8brOI4Tokfica4EhbS4d86/Pwe3+Z1e3Fx8czzvHvi3MhFgM3NzfLLy8seoaGgCj41gRge/uTi4kLjTMlMAGNM6fHx8ScDrdsWPYHOt2/fmgsLCydZdUYmAqyvrx/4vl8nLGFFoNOkyRQ5shXCSoC1tbVfuIaIlOVz0OLrV1dXJ/hUOFhigjl+7LOwyReAbvDm5uZ2z8/PO5KQxALQ7rqwnRKWsK/EPbZLN7TwsUkkAMUf+L7fkC8M3dC8vLzcJ4xFbAGY78e4mkwHLp2wi4/EwSKZsuJDWoiwg59IpABTWnxIZCc42Fgovonbw6aZI0So40cyVgCKr+JOsVlgBxFa+CFGCmDeP9beEpawWeB+fn5+ddTnhJECsN399b/Ih5ysYHv02B63CT/gYB/g6Fp7e3s7Jpw5OEjtcqJ0pY8hAZj7t7iyzCb3S0tLy/0HKAfrkcHTv6HVWnhhCtVE5AeWBXeO47gC5K3iVrBUkOeQqdCQgJ4A5n3huyYsSwoGEyt0kysivzAbTljBa9KHZd4PXeBgXVj46qj7mzANNwyygh+CwbZxK1gacsnLw9rnYTUJPwhwjQA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bgCTAdlnD10Blq8qAf6UPuKrpLSD1a7r8in5quEya7jnX6WIr0+HfuEnZMqAzoHaQ1nBL0HJH0s3bl8n0rMJMcRi6reobbqf2AncMgtRFhwrlTcqkFhrvSr1e/z0DhfsPxGG9xQ8noKbOR2MN52CtgQLzkKZy+j5+4mokTDVPnyWKUPpzSeGFYbYNv+wdna28wzxYPfrc3ZMtjEhPucan1v7qtaxTbo0TV+4Ykl6GHIYKjMW8GYmtc5E7/KrGSqHdJfxW4FAgqw95936g5MN46KMrmJ/4BNSs7bOk8MV9hZivkgJvM6Fi376LArZm9xV+SP8zdYXuK/yUfml+uS/A8uhY5XAWAXX7bc6P/xv+P2Z/AEq6ab7rDxu3AAAAJXRFWHRkYXRlOmNyZWF0ZQAyMDIyLTA4LTE4VDE1OjIwOjM1KzA4OjAwHpcN9AAAACV0RVh0ZGF0ZTptb2RpZnkAMjAyMi0wOC0xOFQxNToyMDozNSswODowMG/KtUgAAABJdEVYdHN2ZzpiYXNlLXVyaQBmaWxlOi8vL2hvbWUvYWRtaW4vaWNvbi1mb250L3RtcC9pY29uX2kyYzV4MjJydTJsL3NvdXN1by5zdmfTYjJrAAAAAElFTkSuQmCC"; const _imports_3 = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3csvg%20version='1.1'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='14px'%20height='14px'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20transform='matrix(1%200%200%201%20-1460%20-88%20)'%3e%3cpath%20d='M%2010.91015625%207.99348958333333%20C%2011.0256076388889%207.87803819444444%2011.0833333333333%207.74131944444444%2011.0833333333333%207.58333333333333%20L%2011.0833333333333%206.41666666666667%20C%2011.0833333333333%206.25868055555555%2011.0256076388889%206.12196180555555%2010.91015625%206.00651041666667%20C%2010.7947048611111%205.89105902777778%2010.6579861111111%205.83333333333333%2010.5%205.83333333333333%20L%208.16666666666667%205.83333333333333%20L%208.16666666666667%203.5%20C%208.16666666666667%203.34201388888889%208.10894097222222%203.20529513888889%207.99348958333333%203.08984375%20C%207.87803819444445%202.97439236111111%207.74131944444445%202.91666666666667%207.58333333333333%202.91666666666667%20L%206.41666666666667%202.91666666666667%20C%206.25868055555556%202.91666666666667%206.12196180555556%202.97439236111111%206.00651041666667%203.08984375%20C%205.89105902777778%203.20529513888889%205.83333333333333%203.34201388888889%205.83333333333333%203.5%20L%205.83333333333333%205.83333333333333%20L%203.5%205.83333333333333%20C%203.34201388888889%205.83333333333333%203.20529513888889%205.89105902777778%203.08984375%206.00651041666667%20C%202.97439236111111%206.12196180555555%202.91666666666667%206.25868055555555%202.91666666666667%206.41666666666667%20L%202.91666666666667%207.58333333333333%20C%202.91666666666667%207.74131944444444%202.97439236111111%207.87803819444444%203.08984375%207.99348958333333%20C%203.20529513888889%208.10894097222222%203.34201388888889%208.16666666666667%203.5%208.16666666666667%20L%205.83333333333333%208.16666666666667%20L%205.83333333333333%2010.5%20C%205.83333333333333%2010.6579861111111%205.89105902777778%2010.7947048611111%206.00651041666667%2010.91015625%20C%206.12196180555556%2011.0256076388889%206.25868055555556%2011.0833333333333%206.41666666666667%2011.0833333333333%20L%207.58333333333333%2011.0833333333333%20C%207.74131944444445%2011.0833333333333%207.87803819444445%2011.0256076388889%207.99348958333333%2010.91015625%20C%208.10894097222222%2010.7947048611111%208.16666666666667%2010.6579861111111%208.16666666666667%2010.5%20L%208.16666666666667%208.16666666666667%20L%2010.5%208.16666666666667%20C%2010.6579861111111%208.16666666666667%2010.7947048611111%208.10894097222222%2010.91015625%207.99348958333333%20Z%20M%2013.0611979166667%203.486328125%20C%2013.6870659722222%204.55881076388889%2014%205.73003472222222%2014%207%20C%2014%208.26996527777778%2013.6870659722222%209.44118923611111%2013.0611979166667%2010.513671875%20C%2012.4353298611111%2011.5861545138889%2011.5861545138889%2012.4353298611111%2010.513671875%2013.0611979166667%20C%209.44118923611111%2013.6870659722222%208.26996527777778%2014%207%2014%20C%205.73003472222222%2014%204.55881076388889%2013.6870659722222%203.486328125%2013.0611979166667%20C%202.41384548611111%2012.4353298611111%201.56467013888889%2011.5861545138889%200.938802083333333%2010.513671875%20C%200.312934027777778%209.44118923611111%200%208.26996527777778%200%207%20C%200%205.73003472222222%200.312934027777778%204.55881076388889%200.938802083333333%203.486328125%20C%201.56467013888889%202.41384548611111%202.41384548611111%201.56467013888889%203.486328125%200.938802083333333%20C%204.55881076388889%200.312934027777777%205.73003472222222%200%207%200%20C%208.26996527777778%200%209.44118923611111%200.312934027777777%2010.513671875%200.938802083333333%20C%2011.5861545138889%201.56467013888889%2012.4353298611111%202.41384548611111%2013.0611979166667%203.486328125%20Z%20'%20fill-rule='nonzero'%20fill='%23000000'%20stroke='none'%20transform='matrix(1%200%200%201%201460%2088%20)'%20/%3e%3c/g%3e%3c/svg%3e"; const _imports_4 = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAIKADAAQAAAABAAAAIAAAAACshmLzAAAED0lEQVRYCe2Wu09UQRTGdwlYWWMAIzEhWhCJhRgVAbHzAWil1sT/gKcKLAqG159AYimVgIFSeVOglSYmRhPFEEiIlTQ2sP6+y5zr3OUuLFDqJLPnzHce883MmdmbSPzrLXmQDRgaGjqNfyO9Op1OFyFPuvjVZDK5Dja3tbU10dHR8d3h+4qcCDDxdZL3ku3yvhlxgMwS4nFLS8vMfv57Eujr6zuRn5//goQ3vESf0Sch9BW55vBifMrA6pFnPN9Jxk0Q2fCwiJqVwODg4Hk8J+inXMQYyVIk+xDJkDFgtyogkgK+60wrxDVki4sloMkJmifRcZJsoN/LZTvdhIEYGBioI26UQSF9E/1qHIldBLTtBQUFywRp5Z/y8vJuNjc3r6AfuA0PD5dub29PEVhOX4HERUhEjiMvM6vOHEyTbxxlcuUVcXLcUi56KTs6ItxvEQKqdlgGBYfz/cOu3J9AOcj5wGH1HG+tb48QYNI+Zxxra2ub9h2lc64XSFCVidtYNvnY2CTb/hZ9XGPIPDdcMiTgHplLAnFKSfqN86wEV20s4Nvp26Q7bEE+cSTAu+XHIq+oNqSrhQQw3NmBEl/iqpViOoY9KFp8n7LaLuefkC7MjZPo8o00l1NviEjoNQ1aSACGVx322smIaG1tXSSw1QN7WHU3q20D6zGcPF3t7e1LNvYl8boRatU7IroDwbtOgi9mzJTUxZBPAj2Ff7/5aXJW+szGMTLITVyJ2cIdAChy4JoZ42QmCfPJYfIEV3Ld+RdbnE8gLZCz3vU4mbMn/TiD4zCzBdLLHcwl0A+ylYfsItFuoDP3t918dByqCRvHSeKCXUbaXH8JGIgsiwsWpmrHHp45kK5jeCVFwr8divEbdsu9mwDGOTkzQXhF/GASq3LDakfv5Gb0qkv3fHv6+/vtRnlwoN7WL0cxa4bwCPQlI1As2coKczBJAf2WWWNIPnETB2bpwoIBPujyjTTlBD8DyBTp8KqHBPQZhcOSonBISfqNN/0dJCphX8VVsyc7dBEmm3y4Ke9Dg1PIGewecyzyTvwwe6TiYXkNx2kZkdfj/g8s8CCSvPqke+NiatixeYsPd0AAq5hBTEqH6aj/Zgs7TFMOJn/pYsf9yYVFCAhg4ibECr2QLZ06CgnFKody0b9xPA+RkbaLALugT7AGvDbp5SRY1tFEonIY8F7UKVY56L/QG6mjn5mhkRrwjapatk7VWiocUq+4KSkK6KPvl6lzBc+xUhWcfZR+0+TZ4rISUGJIFEJiBLVeY9f0l6rPbf2xBA8KE5Qw1iOje36Wbm1c2x63cnPYk4A58QjVouvqVRm2l4TMAsQfZRZcXExOBCzQVXQjyWuYpAhpf+Gr6Pqnm2U3Jvx7brH/ZbYd+APZxM/2zgvhdQAAAABJRU5ErkJggg=="; const _imports_5 = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3csvg%20version='1.1'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='6px'%20height='6px'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%3e%3cpath%20d='M%203%200%20C%204.68%200%206%201.32%206%203%20C%206%204.68%204.68%206%203%206%20C%201.32%206%200%204.68%200%203%20C%200%201.32%201.32%200%203%200%20Z%20'%20fill-rule='nonzero'%20fill='%23ffffff'%20stroke='none'%20/%3e%3cpath%20d='M%203%200.5%20C%204.4%200.5%205.5%201.6%205.5%203%20C%205.5%204.4%204.4%205.5%203%205.5%20C%201.6%205.5%200.5%204.4%200.5%203%20C%200.5%201.6%201.6%200.5%203%200.5%20Z%20'%20stroke-width='1'%20stroke='%23797979'%20fill='none'%20/%3e%3c/g%3e%3c/svg%3e"; const _imports_6 = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAQKADAAQAAAABAAAAQAAAAABGUUKwAAAG+ElEQVR4Ae1bXXLbNhAG/aPX8AZRTxD6BGZOEOUE9nN/JuoJrJ7A6kzbV6snsHwCsycwfYI6J6j8qiRivl0CJEiCECiBkuwpZigusD/ALheLBUgJcUAlG0dh9mMU7XJIJ7vsTO+LlBVfxAeRiRjtpHQklkxxxr87+tm5AbKfo1isxCcoOzLo+HvwV5oa2ntr2pkBWPFMXEH5uFWbgZi04npC9G4AdvWluIHipideqhWIv4NpuigbdgP1agB+6ktxC1XCteoEYraWpgeCoAeZLBLR/BLAjaP8z5j7Q0dar2RHXqVJYdlP0Rigq/LENZesO795NwA/+Uxcd9LkSCSd6D0SezVAR7cv1TjZnwG8xQCZwT2UWjlDe5v/NEKfHkDRfpPytAmTLx4vy6B0/eGGg0pd+ZBTDJE+U3BNRSDugj/SxJW3jc6XB1y1deDQvnCgYRIkSk/YO5zhGiOxuofh/0WuMXLlN9FtbQA5gKFJeE9tiSZ3CEPcYtm9Z+/QEK7g1gaw5vauo+hG15wytKNciodNvGF7Awhsab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3OkygNomTJneJpsuGIkjgMz3XH2KNdxjQNg/UUGHaHln8RW6craPyXYO7RQHpA4djVF5E6M19fWLXJlAksjUVJkLkE1lmDFGJoJPbTiQFcZIPUgrk1E06WP8IGDuTyLUzGpoJYirtR9VuCNygBzn3JrshrncPi0ZY6TiI/YPzxqtHeA40Yy1NeRG/qmvjgGyKWG3PKtNiB/IGVx4+i9HiPYCGs+kERiNEbyM/Q3EE1Sli/nygMIM9PQvkH6LwAZIXQVzAlR1w8uXYUT3YCTMe1ILG+g1aCvQnn9PecBlh4o6GG1oa/Lby1k26HyL9OfSEigS5Iud621zbDszYr6t2wKOCrqVWAM2rRostM+gS7BRfcFrhAXjSaGy8cMu/4cB1V6WqXWFe09YcUAxAfrJ7g1IzchX0cpToRJHT0G5OoN+JyfAuLrKxT55XG4Uq5hABmpRyDoMx6o/nd5pxyD9KqUhgEIS8siomRUW6crjC+sQg/TlGMYpoDUjBOSUw5IlKC83JInWzE/VIMWjSBooBG8Jq84TzBvhExMh9BGJ9CnOK22/BnLyQCkCycxS87hx6geuiEoiE/w1Ge4W4uzAZQUaQgKJpe4Dm25dFZc6dPZAIqR7pS14fx+hOSFDLIvYzwjWM8xBuPLFn28JngrA9QFcpqb8eltDFyEq4/NFT1l+sNEgivd9k8TXg2AgTUKT5n8sIS+NySjlCUQw5bdXlISAZL/KttW2YrM/yu5Bb4DerorwNygw+YAAAAASUVORK5CYII="; const _imports_8 = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3csvg%20version='1.1'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='8px'%20height='8px'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20transform='matrix(1%200%200%201%20-924%20-6237%20)'%3e%3cpath%20d='M%20928%206238%20C%20929.68%206238%20931%206239.32%20931%206241%20C%20931%206242.68%20929.68%206244%20928%206244%20C%20926.32%206244%20925%206242.68%20925%206241%20C%20925%206239.32%20926.32%206238%20928%206238%20Z%20'%20fill-rule='nonzero'%20fill='%23fddf6d'%20stroke='none'%20/%3e%3cpath%20d='M%20928%206238%20C%20929.68%206238%20931%206239.32%20931%206241%20C%20931%206242.68%20929.68%206244%20928%206244%20C%20926.32%206244%20925%206242.68%20925%206241%20C%20925%206239.32%20926.32%206238%20928%206238%20Z%20'%20stroke-width='2'%20stroke='%23aaaaaa'%20fill='none'%20/%3e%3c/g%3e%3c/svg%3e"; const _imports_9 = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3csvg%20version='1.1'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='8px'%20height='8px'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20transform='matrix(1%200%200%201%20-963%20-6237%20)'%3e%3cpath%20d='M%20967%206238%20C%20968.68%206238%20970%206239.32%20970%206241%20C%20970%206242.68%20968.68%206244%20967%206244%20C%20965.32%206244%20964%206242.68%20964%206241%20C%20964%206239.32%20965.32%206238%20967%206238%20Z%20'%20fill-rule='nonzero'%20fill='%23d7d7d7'%20stroke='none'%20/%3e%3cpath%20d='M%20967%206238%20C%20968.68%206238%20970%206239.32%20970%206241%20C%20970%206242.68%20968.68%206244%20967%206244%20C%20965.32%206244%20964%206242.68%20964%206241%20C%20964%206239.32%20965.32%206238%20967%206238%20Z%20'%20stroke-width='2'%20stroke='%23aaaaaa'%20fill='none'%20/%3e%3c/g%3e%3c/svg%3e"; const _imports_10 = "" + __buildAssetsURL("empty-icon.CyaRoygc.png"); const _imports_11 = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3csvg%20version='1.1'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='20px'%20height='20px'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20transform='matrix(1%200%200%201%20-1540%20-229%20)'%3e%3cpath%20d='M%201550%20229%20C%201555.6%20229%201560%20233.4%201560%20239%20C%201560%20244.6%201555.6%20249%201550%20249%20C%201544.4%20249%201540%20244.6%201540%20239%20C%201540%20233.4%201544.4%20229%201550%20229%20Z%20'%20fill-rule='nonzero'%20fill='%23ffffff'%20stroke='none'%20fill-opacity='0'%20/%3e%3cpath%20d='M%201550%20229.5%20C%201555.32%20229.5%201559.5%20233.68%201559.5%20239%20C%201559.5%20244.32%201555.32%20248.5%201550%20248.5%20C%201544.68%20248.5%201540.5%20244.32%201540.5%20239%20C%201540.5%20233.68%201544.68%20229.5%201550%20229.5%20Z%20'%20stroke-width='1'%20stroke='%23797979'%20fill='none'%20/%3e%3c/g%3e%3c/svg%3e"; const _imports_15 = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3csvg%20version='1.1'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='13px'%20height='8px'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20transform='matrix(1%200%200%201%20-1296%20-538%20)'%3e%3cpath%20d='M%209.65206473214286%206.26736111111111%20C%2010.6217447916667%205.70486111111111%2011.4281994047619%204.94907407407407%2012.0714285714286%204%20C%2011.3363095238095%202.90740740740741%2010.4149925595238%202.09027777777778%209.30747767857143%201.54861111111111%20C%209.60249255952381%202.03009259259259%209.75%202.55092592592593%209.75%203.11111111111111%20C%209.75%203.96759259259259%209.43201264880952%204.70023148148148%208.79603794642857%205.30902777777778%20C%208.16006324404762%205.91782407407407%207.39471726190476%206.22222222222222%206.5%206.22222222222222%20C%205.60528273809524%206.22222222222222%204.83993675595238%205.91782407407407%204.20396205357143%205.30902777777778%20C%203.56798735119048%204.70023148148148%203.25%203.96759259259259%203.25%203.11111111111111%20C%203.25%202.55092592592593%203.39750744047619%202.03009259259259%203.69252232142857%201.54861111111111%20C%202.58500744047619%202.09027777777778%201.66369047619048%202.90740740740741%200.928571428571428%204%20C%201.5718005952381%204.94907407407407%202.37825520833333%205.70486111111111%203.34793526785714%206.26736111111111%20C%204.31761532738095%206.82986111111111%205.36830357142857%207.11111111111111%206.5%207.11111111111111%20C%207.63169642857143%207.11111111111111%208.68238467261905%206.82986111111111%209.65206473214286%206.26736111111111%20Z%20M%206.74665178571429%201.56944444444444%20C%206.81436011904762%201.50462962962963%206.84821428571429%201.42592592592593%206.84821428571429%201.33333333333333%20C%206.84821428571429%201.24074074074074%206.81436011904762%201.16203703703704%206.74665178571429%201.09722222222222%20C%206.67894345238095%201.03240740740741%206.59672619047619%200.999999999999999%206.5%201%20C%205.89546130952381%200.999999999999999%205.37676711309524%201.20717592592593%204.94391741071429%201.62152777777778%20C%204.51106770833333%202.03587962962963%204.29464285714286%202.53240740740741%204.29464285714286%203.11111111111111%20C%204.29464285714286%203.2037037037037%204.32849702380952%203.28240740740741%204.39620535714286%203.34722222222222%20C%204.46391369047619%203.41203703703704%204.54613095238095%203.44444444444444%204.64285714285714%203.44444444444444%20C%204.73958333333333%203.44444444444444%204.8218005952381%203.41203703703704%204.88950892857143%203.34722222222222%20C%204.95721726190476%203.28240740740741%204.99107142857143%203.2037037037037%204.99107142857143%203.11111111111111%20C%204.99107142857143%202.71296296296296%205.13857886904762%202.37268518518519%205.43359375%202.09027777777778%20C%205.72860863095238%201.80787037037037%206.08407738095238%201.66666666666667%206.5%201.66666666666667%20C%206.59672619047619%201.66666666666667%206.67894345238095%201.63425925925926%206.74665178571429%201.56944444444444%20Z%20M%2012.8549107142857%203.52083333333333%20C%2012.9516369047619%203.68287037037037%2013%203.84259259259259%2013%204%20C%2013%204.15740740740741%2012.9516369047619%204.31712962962963%2012.8549107142857%204.47916666666667%20C%2012.1778273809524%205.54398148148148%2011.2673921130952%206.39699074074074%2010.1236049107143%207.03819444444444%20C%208.97981770833333%207.67939814814815%207.77194940476191%208%206.5%208%20C%205.2280505952381%208%204.02018229166667%207.67824074074074%202.87639508928571%207.03472222222222%20C%201.73260788690476%206.3912037037037%200.822172619047619%205.53935185185185%200.145089285714286%204.47916666666667%20C%200.0483630952380952%204.31712962962963%200%204.15740740740741%200%204%20C%200%203.84259259259259%200.0483630952380952%203.68287037037037%200.145089285714286%203.52083333333333%20C%200.822172619047619%202.46064814814815%201.73260788690476%201.6087962962963%202.87639508928571%200.965277777777778%20C%204.02018229166667%200.321759259259259%205.2280505952381%200%206.5%200%20C%207.77194940476191%200%208.97981770833333%200.321759259259259%2010.1236049107143%200.965277777777778%20C%2011.2673921130952%201.6087962962963%2012.1778273809524%202.46064814814815%2012.8549107142857%203.52083333333333%20Z%20'%20fill-rule='nonzero'%20fill='%23333333'%20stroke='none'%20transform='matrix(1%200%200%201%201296%20538%20)'%20/%3e%3c/g%3e%3c/svg%3e"; const _imports_16 = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAQKADAAQAAAABAAAAQAAAAABGUUKwAAAE8ElEQVR4Ae1a24tPURQexjAxuZVcm1FESqHc80CDkhIpCsULcnlQ3kSUFy9480L+BeWdPGBGQiPEw8wowjAz7nLn+6bZ0/7t+fb5/Y5z5sw+J6vWnHO+vfY+a3177cvZv6mqGjwZgVfvhV6BvoR+h76AXoJuhg6FFlZWILJW6J8IvYWyGdDCyVpE9AUaFbwpY2bMKhID0xBMZ4XBGxJaYF9TFBLOxQzekLCnCARw0vssCHgPbD90AZSBdkNN4ObaBCz3shQRmIDs61Ynso0euzGOXe4eN3gCq3Mi4Xi3CTL3ix27VB6zXGs5BFz5BYDDwpYfeODs78qArAZZEsAVwJVPANjDrrS5AJ5zT8B0EdRzgRHqEvhYgSWGsswA1YPPPBG8FXi1wBJDWRHAiW6l8PaJwAh9FfgwgSWGsiJgHTytFd7yQ0jJaAEOiK8D0qhwfqfA+PV3TeCEFAEdHttEcBYE8MtvvfCSn70fBU5ogsCfCix4aAg8vA41mxn7usrjPfcLZnm07Rs99kHDR+CdHYS5vwuc5ChhoMbOvjYo45CxNXDupyeY1RGOnxJ1nkbYB1nEAPmVZ/egub9cxuN7ot6FMnWCKt4JbzjDm4DtK2fySRHeLv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3kiA2MCJfQjZ15QQps54xzpxgjECHy7CPAYzf0LjX2mY2zG9/6ss1zTEIkv9VmH+731Ywbei1DW179FBmq+9mYdsSasX/M1nQxcu0V/Oj1UteSIXaHTRLbfghPptHFCFbidCsb3D0TpgJuBkW5gqLIhYp7rNERpVV64C7Qy6QaGlAm4rAu+zXqmeSdnIYT2fVnwT6VTzWn60blsZaN7SPvDb0AwodGNrVpCZlyU4j30qUrTOZd8Vlgjbf1GdjjO26Y+4tsy0r6nnEIVuvNEfscIegew0YP9JXBjHwiXgv+d0PRLhb3hQKlw7B9OdA0v8gypmLKP2lSLggAAAABJRU5ErkJggg=="; const _imports_22 = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3csvg%20version='1.1'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='16px'%20height='16px'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20transform='matrix(1%200%200%201%20-1195%20-1486%20)'%3e%3cpath%20d='M%202.90909090909091%2011.6363636363636%20L%204.36363636363636%2011.6363636363636%20L%204.36363636363636%2013.0909090909091%20L%202.90909090909091%2013.0909090909091%20L%202.90909090909091%2011.6363636363636%20Z%20M%202.90909090909091%202.90909090909091%20L%204.36363636363636%202.90909090909091%20L%204.36363636363636%204.36363636363636%20L%202.90909090909091%204.36363636363636%20L%202.90909090909091%202.90909090909091%20Z%20M%2011.6363636363636%202.90909090909091%20L%2013.0909090909091%202.90909090909091%20L%2013.0909090909091%204.36363636363636%20L%2011.6363636363636%204.36363636363636%20L%2011.6363636363636%202.90909090909091%20Z%20M%201.45454545454545%2010.1818181818182%20L%201.45454545454545%2014.5340909090909%20L%205.81818181818182%2014.5340909090909%20L%205.81818181818182%2010.1818181818182%20L%201.45454545454545%2010.1818181818182%20Z%20M%201.45454545454545%201.45454545454546%20L%201.45454545454545%205.81818181818182%20L%205.81818181818182%205.81818181818182%20L%205.81818181818182%201.45454545454546%20L%201.45454545454545%201.45454545454546%20Z%20M%2010.1818181818182%201.45454545454546%20L%2010.1818181818182%205.81818181818182%20L%2014.5454545454545%205.81818181818182%20L%2014.5454545454545%201.45454545454546%20L%2010.1818181818182%201.45454545454546%20Z%20M%200%208.72727272727273%20L%207.27272727272727%208.72727272727273%20L%207.27272727272727%2016%20L%200%2016%20L%200%208.72727272727273%20Z%20M%2011.6363636363636%2014.5454545454545%20L%2013.0909090909091%2014.5454545454545%20L%2013.0909090909091%2016%20L%2011.6363636363636%2016%20L%2011.6363636363636%2014.5454545454545%20Z%20M%2014.5454545454545%2014.5454545454545%20L%2016%2014.5454545454545%20L%2016%2016%20L%2014.5454545454545%2016%20L%2014.5454545454545%2014.5454545454545%20Z%20M%2014.5454545454545%208.72727272727273%20L%2016%208.72727272727273%20L%2016%2013.0909090909091%20L%2011.6363636363636%2013.0909090909091%20L%2011.6363636363636%2011.6363636363636%20L%2010.1818181818182%2011.6363636363636%20L%2010.1818181818182%2016%20L%208.72727272727273%2016%20L%208.72727272727273%208.72727272727273%20L%2013.0909090909091%208.72727272727273%20L%2013.0909090909091%2010.1818181818182%20L%2014.5454545454545%2010.1818181818182%20L%2014.5454545454545%208.72727272727273%20Z%20M%200%200%20L%207.27272727272727%200%20L%207.27272727272727%207.27272727272727%20L%200%207.27272727272727%20L%200%200%20Z%20M%208.72727272727273%200%20L%2016%200%20L%2016%207.27272727272727%20L%208.72727272727273%207.27272727272727%20L%208.72727272727273%200%20Z%20'%20fill-rule='nonzero'%20fill='%23000000'%20stroke='none'%20transform='matrix(1%200%200%201%201195%201486%20)'%20/%3e%3c/g%3e%3c/svg%3e"; const _imports_23 = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAANCAYAAACdKY9CAAAAAXNSR0IArs4c6QAAANNJREFUKFPdksENwjAMRW1ZlXpkhN4q5wQb0A0YASYANmAD2KCMwAZlBE61eusIPVaqIiNXBFLoBHwphzzlfyexESI1TbPx3peIuDCsqh0R7fI8v4VjGBtE5AEAF2a+GheRrarunXOrt0FE7hb2AmsAsH2sCUMRMVCp6hERrcKPVHWJiGcAKMYriYhVKJj5O300h1BmxokBAE6vZVVNFhBY9ZcGIuqSJGn7vh87naZpNwxD5r23/efRdV23RHSIR2BmZC7OuSx86xYAyrmmRWxnI/MEFGt9FwAKNzYAAAAASUVORK5CYII="; const _imports_24 = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3csvg%20version='1.1'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='8px'%20height='5px'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20transform='matrix(1%200%200%201%20-33%20-8%20)'%3e%3cpath%20d='M%207.91983967935872%200.515463917525773%20C%207.97327989311957%200.572737686139747%208%200.638602520045818%208%200.713058419243986%20C%208%200.787514318442153%207.97327989311957%200.853379152348224%207.91983967935872%200.910652920962199%20L%204.18436873747495%204.91408934707904%20C%204.1309285237141%204.97136311569301%204.06947227788911%205%204%205%20C%203.93052772211089%205%203.86907147628591%204.97136311569301%203.81563126252505%204.91408934707904%20L%200.0801603206412826%200.910652920962199%20C%200.0267201068804276%200.853379152348224%200%200.787514318442153%200%200.713058419243986%20C%200%200.638602520045818%200.0267201068804276%200.572737686139747%200.0801603206412826%200.515463917525773%20L%200.480961923847695%200.0859106529209624%20C%200.534402137608551%200.0286368843069867%200.595858383433534%200%200.665330661322645%200%20C%200.734802939211757%200%200.79625918503674%200.0286368843069867%200.849699398797595%200.0859106529209624%20L%204%203.46219931271478%20L%207.1503006012024%200.0859106529209624%20C%207.20374081496326%200.0286368843069867%207.26519706078824%200%207.33466933867735%200%20C%207.40414161656647%200%207.46559786239145%200.0286368843069867%207.51903807615231%200.0859106529209624%20L%207.91983967935872%200.515463917525773%20Z%20'%20fill-rule='nonzero'%20fill='%23aaaaaa'%20stroke='none'%20transform='matrix(1%200%200%201%2033%208%20)'%20/%3e%3c/g%3e%3c/svg%3e"; const _imports_25 = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3csvg%20version='1.1'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='11px'%20height='8px'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20transform='matrix(1%200%200%201%20-784%20-11798%20)'%3e%3cpath%20d='M%2010.8012903225806%201.1043771043771%20C%2010.9337634408602%201.2300785634119%2011%201.38271604938272%2011%201.56228956228956%20C%2011%201.74186307519641%2010.9337634408602%201.89450056116723%2010.8012903225806%202.02020202020202%20L%205.66322580645161%206.8956228956229%20L%204.69806451612903%207.81144781144781%20C%204.56559139784946%207.9371492704826%204.4047311827957%208%204.21548387096774%208%20C%204.02623655913979%208%203.86537634408602%207.9371492704826%203.73290322580645%207.81144781144781%20L%202.76774193548387%206.8956228956229%20L%200.198709677419355%204.45791245791246%20C%200.066236559139785%204.33221099887766%200%204.17957351290685%200%204%20C%200%203.82042648709315%200.066236559139785%203.66778900112233%200.198709677419355%203.54208754208754%20L%201.16387096774194%202.62626262626263%20C%201.29634408602151%202.50056116722783%201.45720430107527%202.43771043771044%201.64645161290323%202.43771043771044%20C%201.83569892473118%202.43771043771044%201.99655913978495%202.50056116722783%202.12903225806452%202.62626262626263%20L%204.21548387096774%204.61279461279461%20L%208.87096774193548%200.188552188552189%20C%209.00344086021505%200.0628507295173959%209.16430107526882%200%209.35354838709677%200%20C%209.54279569892473%200%209.7036559139785%200.0628507295173959%209.83612903225806%200.188552188552189%20L%2010.8012903225806%201.1043771043771%20Z%20'%20fill-rule='nonzero'%20fill='%23fa6b11'%20stroke='none'%20transform='matrix(1%200%200%201%20784%2011798%20)'%20/%3e%3c/g%3e%3c/svg%3e"; const _imports_26 = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAMKADAAQAAAABAAAAMAAAAADbN2wMAAAECklEQVRoBe1YS2tTQRTOowmND1wYEl26Cc2jWV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Q9DnJKfFLkLmH/nVh7BzA05WhZuDJt+QoFMBwdTd9MEA3BMXW09NjSafTRxHxNEBvYpBuIKhxsk2P/I47BQQAdj9OllF82JvJZI7hfsfGjZRIzcCTXx6xEgwGA0UZQL/jRSWgkm9AMI6BZ52dnaPRaJS+06RVTCGkiKtKlNMA/AXvI7j++ISNHpmenv6qCeISJxUJ2Gy21e3t7Thy3IVnA99NEVjURZ+xuRHk6K8SW/rrUhrhP+1h/SFrI2pHoB2BdgT0EoE/XD0Yrfi3Ps4AAAAASUVORK5CYII="; const _imports_27 = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3csvg%20version='1.1'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='12px'%20height='12px'%20viewBox='656%208620%2012%2012'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M%20656.5%208620.5%20L%20667.5%208620.5%20L%20667.5%208631.5%20L%20656.5%208631.5%20L%20656.5%208620.5%20Z%20'%20fill-rule='nonzero'%20fill='%23ffffff'%20stroke='none'%20/%3e%3cpath%20d='M%20656.5%208620.5%20L%20667.5%208620.5%20L%20667.5%208631.5%20L%20656.5%208631.5%20L%20656.5%208620.5%20Z%20'%20stroke-width='1'%20stroke='%23797979'%20fill='none'%20/%3e%3c/svg%3e"; const _imports_28 = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3csvg%20version='1.1'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='12px'%20height='12px'%20viewBox='656%208620%2012%2012'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M%20656.5%208620.5%20L%20667.5%208620.5%20L%20667.5%208631.5%20L%20656.5%208631.5%20L%20656.5%208620.5%20Z%20'%20fill-rule='nonzero'%20fill='%23ffffff'%20stroke='none'%20/%3e%3cpath%20d='M%20656.5%208620.5%20L%20667.5%208620.5%20L%20667.5%208631.5%20L%20656.5%208631.5%20L%20656.5%208620.5%20Z%20'%20stroke-width='1'%20stroke='%23797979'%20fill='none'%20/%3e%3cpath%20d='M%20658.571428571429%208626%20L%20661.142857142857%208628.57142857143%20L%20665.428571428571%208622.57142857143%20'%20stroke-width='2.57142857142857'%20stroke='%23797979'%20fill='none'%20/%3e%3c/svg%3e"; const _sfc_main$2 = { name: "#answer-app", async setup() { const $ajax = (url, data) => { url = url.indexOf("//") > -1 ? url : baseURL2 + url; return new Promise(function(resolve, reject) { axios.post(url, data, { emulateJSON: true, withCredentials: true, headers: { authorization: "production" !== "production" // 头部标记 } }).then(function(res) { var data2 = null; try { data2 = typeof res.data == "string" ? JSON.parse(res.data) : res.data; if (data2["code"] == 401) goLogin(); if (data2["code"] != 200) handleMsg("error", data2["message"] || "报错了,请重试!!!"); } catch (error) { } resolve(data2); }).catch((err) => { var _a2; if (((_a2 = err == null ? void 0 : err.response) == null ? void 0 : _a2.status) == 401) ; resolve(err.response.data); }); }); }; const $ajaxGET = (url, data) => { url = url.indexOf("//") > -1 ? url : baseURL2 + url; return new Promise(function(resolve, reject) { axios.get(url, data, { emulateJSON: true, withCredentials: true, headers: { authorization: "production" !== "production" // 头部标记 } }).then(function(res) { var data2 = null; try { data2 = typeof res.data == "string" ? JSON.parse(res.data) : res.data; if (data2["code"] == 401) { goLogin(); } if (data2["code"] != 200) handleMsg("error", data2["message"] || "报错了,请重试!!!"); } catch (error) { } resolve(data2); }).catch((err) => { var _a2; if (((_a2 = err == null ? void 0 : err.response) == null ? void 0 : _a2.status) == 401) ; resolve(err.response.data); }); }); }; provide("$ajax", $ajax); provide("$ajaxGET", $ajaxGET); let isNeedLogin = ref(true); provide("isNeedLogin", isNeedLogin); let emojiMaskState = ref(false); provide("emojiMaskState", emojiMaskState); const goLogin = () => { return; }; provide("goLogin", goLogin); const route = useRoute(); const baseURL2 = "https://ask.gter.net"; let type = ref("list"); let realname = ref(1); const openAttest = () => { const handleAttestClose = () => { var _a2; (void 0).removeEventListener("closeAttest", handleAttestClose); realname.value = ((_a2 = (void 0).userInfoWin) == null ? void 0 : _a2.realname) || 0; }; (void 0).addEventListener("closeAttest", handleAttestClose); loadAttest(2); }; provide("realname", realname); provide("openAttest", openAttest); let user = ref({}); provide("user", user); let originUrl = ref(""); const getCurrentUrl = () => { return `${(void 0).location["origin"]}?uniqid=${detailsInfo.value["uniqid"] || ""}`; }; let myCount = ref({}); const getUserData = (key) => { $ajax("/api/user").then((res) => { if (res.code != 200) return; let data = res.data; myCount.value = data.count; handleMy(key); }); }; let isSearchMode = ref(false); const setHistoricalSearchList = () => { if (!keyword.value) return; historicalSearchList.value.unshift(keyword.value); historicalSearchList.value = [...new Set(historicalSearchList.value)]; historicalSearchList.value = historicalSearchList.value.slice(0, 10); localStorage.setItem("historical-Search", JSON.stringify(historicalSearchList.value)); }; const searchClick = () => { setHistoricalSearchList(); page = 1; list.value = []; backupsList = []; listHeight.value = 0; type.value = "list"; pitchIndex.value = null; openBottom(); myModelState.value = false; replaceState({ keyword: keyword.value }); searchBlur(); getList(); }; const searchFocus = () => { if (historicalSearchList.value.length == 0) return; historicalSearchState.value = true; }; const searchBlur = () => { setTimeout(() => historicalSearchState.value = false, 300); }; const handleClickHistoricalItem = (value) => { keyword.value = value; searchClick(); }; const handleClickClear = () => { keyword.value = ""; page = 1; list.value = []; backupsList = []; listHeight.value = 0; type.value = "list"; openBottom(); pitchIndex.value = null; getList(); }; let historicalSearchState = ref(false); let historicalSearchList = ref([]); let tabListFixeState = ref(false); let keyword = ref(""); let keywordText = ref(""); let list = ref([]); let backupsList = []; let page = 1; let total = ref(0); let loading = ref(false); let inTheEndState = ref(false); let isListEmptyState = ref(); let zeroreply = ref(0); const getList = () => { if (page == 0 || loading.value) return; loading.value = true; $ajax("/api/lists", { page, limit: 20, keyword: keyword.value, type: typePitch.value, zeroreply: zeroreply.value }).then((res) => { if (res.code == 401) ; if (res.code != 200) return; let data = res.data; data.data.forEach((element) => { element["content"] = element["content"].replace(/<[^>]*>/g, ""); element["content"] = element["content"].replace(/ /g, ""); }); list.value = list.value.concat(data.data || []); backupsList = backupsList.concat(data.data || []); total.value = data.count || 0; keywordText.value = keyword.value || ""; if (list.value.length >= data["count"]) page = 0; else page++; if (page == 0 && list.value.length != 0) inTheEndState.value = true; else inTheEndState.value = false; if (list.value.length == 0) isListEmptyState.value = true; else isListEmptyState.value = false; if (keyword.value) isSearchMode.value = true; else isSearchMode.value = false; if (type.value == "details") handleInsertRelatedlist(); if (list.value.length == 0) type.value = "list"; }).finally(() => loading.value = false); }; let typeList = ref([]); let typePitch = ref(null); let pageHeaderHeight = ref(0); let pageListHeight = ref(0); let isCommentList = ref(false); let detailsInfo = ref({}); let detailsIsanswered = ref(0); let detailsIscollection = ref(0); let detailsIsmyself = ref(0); let detailsToken = ""; let detailsToken2 = ref(""); let detailShare = ref({}); let detailLoading = ref(false); provide("detailLoading", detailLoading); provide("detailsToken", detailsToken2); const getDetails = (uniqid, index, isOpenAnswer) => { if (detailLoading.value) return; detailLoading.value = true; detailsInfo.value = {}; answerList.value = []; answerPage.value = 0; $ajax("/api/details", { uniqid }).then((res) => { if (res.code != 200) { type.value = "list"; openBottom(); pitchIndex.value = null; return; } let data = res.data; data["info"]["uniqid"] = uniqid; detailsInfo.value = data["info"] || {}; detailsIsanswered.value = data["isanswered"] || 0; detailsIscollection.value = data["iscollection"] || 0; detailsIsmyself.value = data["ismyself"] || 0; detailsToken = data["token"] || ""; detailsToken2.value = data["token"] || ""; detailShare.value = data["share"] || {}; islike.value = data["islike"] || 0; type.value = "details"; if (index !== null && index !== void 0) cut(index); else calculateListIndex(data.info, uniqid); answerList.value = []; answerPage.value = 1; closeAllTransmitState(); if (isOpenAnswer) openIAnswer(); seo.value = data.seo; yourAnswer.value = { text: "", anonymous: 0 }; nextTick(() => detailsAreaScrollTop()); handleInsertRelatedlist(uniqid); isCommentList.value = true; }).finally(() => detailLoading.value = false); }; const detailsAreaScrollTop = () => { let detailsArea = (void 0).querySelector(".details-area-box"); detailsArea.scrollTo({ top: 0, behavior: "smooth" }); }; const calculateListIndex = (info, uniqid) => { var _a2; let targetList = [...list.value]; if (targetList.length == 0 && isSearchMode.value == false && myModelState.value == false) { setTimeout(() => calculateListIndex(info, uniqid), 200); return; } let valve = false; list.value.forEach((element, index) => { if (element["uniqid"] == uniqid) { cut(index); pitchIndex.value = index; valve = true; } }); if (!valve) { let content = ""; if (((_a2 = info == null ? void 0 : info["content"]) == null ? void 0 : _a2.indexOf("]*>/g, ""); content = content.replace(/ /g, ""); const obj = { answers: info["answers"], content, publicationdate: info["publicationdate"], title: info["title"], typename: info["typename"], uniqid }; list.value.unshift(obj); cut(0); } }; let answerList = ref([]); let answerPage = ref(1); const operateLike = () => { var _a2; if (realname.value == 0 && ((_a2 = user.value) == null ? void 0 : _a2.uin) > 0) { openAttest(); return; } if (isNeedLogin.value) { return; } $ajax("/api/operate/like", { token: detailsToken }).then((res) => { if (res.code != 200) return; let data = res.data; const status = data.status || 0; islike.value = status; detailsInfo.value["likenum"] = data.count || 0; handleMsg("success", res["message"] || "操作成功"); if (status) { isLikeGif.value = false; clearTimeout(isLikeTimer); nextTick(() => { isLikeGif.value = true; isLikeTimer = setTimeout(() => isLikeGif.value = false, 2e3); }); } }); }; const operateCollect = (token = detailsToken, index) => { if (isNeedLogin.value) { return; } $ajax("/api/operate/collect", { token }).then((res) => { if (res.code != 200) return; let data = res.data; myCollectionPage = 1; myCollectionList.value = []; if (data["type"] == "askquestioncollection") { detailsIscollection.value = data["status"]; detailsInfo.value["collectionnum"] = data["count"]; } else { answerList.value[index]["iscollection"] = data["status"]; answerList.value[index]["collectionnum"] = data["count"]; } handleMsg("success", res["message"] || "操作成功"); if (data["status"]) myCount.value["collect"]++; else myCount.value["collect"]--; }); }; let IAnswerState = ref(false); let IAnswerEditState = ref(false); let IAnswerInfo = ref({}); const amendIAnswer = () => { IAnswerInfo.value["anonymous"] = IAnswerInfo.value["anonymous"] == 0 ? 1 : 0; }; const openCommentState = (index) => { if (answerList.value[index]["commentState"]) answerList.value[index]["commentState"] = false; else answerList.value[index]["commentState"] = true; if (answerList.value[index]["commentList"].length == 0 && answerList.value[index]["commentnum"] != 0) getAnswerCommentList(index); }; const getAnswerCommentList = (index) => { getAnswerCommentPublic(index, 2).then((res) => { let data = res.data; answerList.value[index]["commentList"] = answerList.value[index]["commentList"].concat(data.data); answerList.value[index]["commentCount"] = data["count"]; }); }; const handleAllComment = (index) => { answerCommentLimit = 1e3; getAnswerCommentPublic(index, 1e3).then((res) => { if (res.code != 200) return; let data = res.data; let slice3 = data.data.slice(1); let merged1 = [...answerList.value[index]["commentList"], ...slice3.filter((item2) => !answerList.value[index]["commentList"].find((item1) => item1.id == item2.id))]; answerList.value[index]["commentList"] = merged1; answerList.value[index]["showOneCommentState"] = false; }); }; const getAnswerCommentPublic = (index, limit) => { return new Promise((resolve, reject) => { $ajax("/api/comment/lists", { token: answerList.value[index]["token"], limit, childlimit: 1 }).then((res) => { if (res.code != 200) return; resolve(res); }); }); }; let myType = ref(""); const handleMy = (key) => { if (isNeedLogin.value) { return; } if (Object.keys(myCount.value).length === 0) { getUserData(key); return; } if (key == "collect") { myCollectionList.value = []; myCollectionPage = 1; getMyCollection(); } else if (key == "answers") { myAnswerList.value = []; myAnswerPage = 1; getMyAnswer(); } else if (key == "questions") { myQuestionsList.value = []; myQuestionsPage = 1; getMyQuestions(); } }; let myCollectionList = ref([]); let myCollectionCount = ref(0); let myCollectionPage = 1; let myCollectionLading = false; const getMyCollection = () => { if (myCollectionPage == 0 || myCollectionLading) return; myCollectionLading = true; $ajax("/api/user/collect", { limit: 20, page: myCollectionPage }).then((res) => { if (res.code != 200) return; let data = res.data; myType.value = "collect"; data.data.forEach((element) => { if (element["type"] == "askanswercollection") { let content = element["data"]["content"]; element["data"]["content"] = processHtml(content); } }); myCollectionList.value = myCollectionList.value.concat(data.data); myCollectionCount.value = data.count; if (myCollectionList.value.length != data["count"]) myCollectionPage++; else myCollectionPage = 0; }).finally(() => myCollectionLading = false); }; const processHtml = (html) => { var parser = new DOMParser(); var doc = parser.parseFromString(html, "text/html"); var img = doc.querySelector("img"); if (img) return ``; else return doc.body.textContent; }; const cancelCollection = (token, index) => { $ajax("/api/user/deleteCollect", { token }).then((res) => { if (res.code == 200) { myCollectionList.value.splice(index, 1); myCollectionCount.value--; myCount.value["collect"]--; handleMsg("success", res["message"] || "操作成功"); } }); }; const handleCollectionScroll = (e) => { const el = e.target; if (el.scrollHeight - el.scrollTop >= el.clientHeight + 10) return; getMyCollection(); }; let myAnswerList = ref([]); let myAnswerCount = ref(0); let myAnswerPage = 1; let myAnswerloadimg = false; const getMyAnswer = () => { if (myAnswerPage == 0 || myAnswerloadimg) return; myAnswerloadimg = true; $ajax("/api/user/answer", { limit: 20, page: myAnswerPage }).then((res) => { if (res.code != 200) return; let data = res.data; data.data.forEach((element) => { element["popupState"] = false; }); data.data.forEach((element) => { let content = element["content"]; element["content"] = processHtml(content); }); myAnswerList.value = myAnswerList.value.concat(data.data); myAnswerCount.value = data.count; if (myAnswerList.value.length != data["count"]) myAnswerPage++; else myAnswerPage = 0; myType.value = "answers"; }).finally(() => myAnswerloadimg = false); }; const handleAnswersScroll = (e) => { const el = e.target; if (el.scrollHeight - el.scrollTop >= el.clientHeight + 10) return; getMyAnswer(); }; let answerIndexOld = null; const cutAnswerPopupState = (index) => { myAnswerList.value[index]["popupState"] = true; if (answerIndexOld == index) { myAnswerList.value[index]["popupState"] = false; answerIndexOld = null; } else { myAnswerList.value[index]["popupState"] = true; if (answerIndexOld != null) myAnswerList.value[answerIndexOld]["popupState"] = false; answerIndexOld = index; } }; const changeAnonymous = (token, anonymous, index) => { $ajax("/api/publish/changeAnonymous", { token, anonymous }).then((res) => { if (res.code != 200) return; res.data; myAnswerList.value[index]["anonymous"] = anonymous; cutAnswerPopupState(index); handleMsg("success", res["message"] || "操作成功"); }); }; let myQuestionsList = ref([]); let myQuestionsCount = ref(0); let myQuestionsPage = 0; let myQuestionsloading = false; const getMyQuestions = () => { if (myQuestionsPage == 0 || myQuestionsloading) return; myQuestionsloading = true; $ajax("/api/user/questions", { limit: 20, page: myQuestionsPage }).then((res) => { if (res.code != 200) return; let data = res.data; myQuestionsList.value = myQuestionsList.value.concat(data.data); myQuestionsCount.value = data.count; myType.value = "questions"; if (myQuestionsList.value.length != data["count"]) myQuestionsPage++; else myQuestionsPage = 0; }).finally(() => myQuestionsloading = false); }; const handleQuestionsScroll = (e) => { const el = e.target; if (el.scrollHeight - el.scrollTop >= el.clientHeight + 10) return; getMyQuestions(); }; let questionsIndexOld = null; const cutQuestionsPopupState = (index) => { myQuestionsList.value[index]["popupState"] = true; if (questionsIndexOld == index) { myQuestionsList.value[index]["popupState"] = false; questionsIndexOld = null; } else { myQuestionsList.value[index]["popupState"] = true; if (questionsIndexOld != null) myQuestionsList.value[questionsIndexOld]["popupState"] = false; questionsIndexOld = index; } }; const changeAnonymousQuestions = (token, anonymous, index) => { $ajax("/api/publish/changeAnonymous", { token, anonymous }).then((res) => { if (res.code != 200) return; myQuestionsList.value[index]["anonymous"] = anonymous; cutQuestionsPopupState(index); handleMsg("success", res["message"] || "操作成功"); }); }; let questionsSetp = ref(0); const cutQuestionsSetp = (value) => questionsSetp.value = value; let questionsTypeList = ref([]); let questionsObj = ref({ // 提问的内容 token: "", title: "", content: "", tags: "", tid: "", anonymous: 0 }); const questionsInit = () => { var _a2; if (realname.value == 0 && ((_a2 = user.value) == null ? void 0 : _a2.uin) > 0) { openAttest(); return; } if (isNeedLogin.value) { return; } $ajax("/api/publish/questions").then((res) => { if (res.code != 200) return; let data = res.data; questionsObj.value["token"] = data["token"]; questionsTypeList.value = data["typeList"] || []; cutQuestionsSetp(1); }); }; const choosingTheme = (id) => { questionsObj.value.tid = id; cutQuestionsSetp(2); }; const cutAnonymous = () => { questionsObj.value.anonymous = questionsObj.value.anonymous == 0 ? 1 : 0; }; const postingIssue = () => { var _a2; if (realname.value == 0 && ((_a2 = user.value) == null ? void 0 : _a2.uin) > 0) { openAttest(); return; } if (isNeedLogin.value) { return; } $ajax("/api/publish/questionsSubmit", questionsObj.value).then((res) => { if (res.code == 200) { myCount.value["questions"]++; questionsSetp.value = 0; questionsObj.value = { token: "", title: "", content: "", tags: "", tid: "", anonymous: 0 }; handleMsg("success", res["message"] || "操作成功"); let data = res.data; getDetails(data["uniqid"]); return; } handleMsg("error", res["message"] || "刷新重试!!!"); }); }; let pitchIndex = ref(null); const cut = (index) => { pitchIndex.value = index; setTimeout(() => scrollLeftInMiddle(), 350); }; const scrollLeftInMiddle = () => { { return; } }; const listStyle = () => { const newtype = type.value; let width = ""; let margin = ""; let height = ""; if (newtype == "list") { width = "1200px"; margin = "0 auto"; } else { width = "calc((100vw - 1200px) / 2 + 512px)"; margin = "initial"; } return { width, margin, height }; }; let listHeight = ref(0); let itemHeightLeft = 0; let itemHeightRight = 0; const itemStyle = (index, content, typetype) => { if (index == 0) { itemHeightLeft = 0; itemHeightRight = 0; } const newtype = type.value; let obj = {}; if (newtype == "list") { if (itemHeightLeft <= itemHeightRight) { obj["top"] = itemHeightLeft + "px"; itemHeightLeft += content == "" ? 107 : 137; obj["left"] = 0; } else { obj["top"] = itemHeightRight + "px"; itemHeightRight += content == "" ? 107 : 137; obj["left"] = "649px"; } } else { obj["position"] = "relative"; if (!typetype) { itemHeightLeft += content == "" ? 107 : 137; obj["height"] = content == "" ? "107px" : "137px"; } else { itemHeightLeft += typetype == "vote" ? 170 : 137; obj["height"] = typetype == "vote" ? "170px" : "137px"; } obj["width"] = "100%"; obj["paddingLeft"] = "calc((100vw - 1210px) / 2)"; } if (index + 1 == list.value.length) listHeight.value = Math.max(itemHeightLeft, itemHeightRight); return obj; }; const bottomTpsStyle = (index, content) => { const newtype = type.value; let obj = {}; if (newtype == "list") ; else { obj["width"] = "calc(50vw - 88px)"; obj["height"] = `calc(100vh - ${list.value.length * 128}px - 268px)`; obj["paddingLeft"] = "calc((100vw - 1200px) / 2)"; obj["borderRight"] = "1px solid #ebebeb"; obj["background"] = "#fff"; } return obj; }; const listBoxStyle = () => { const newtype = type.value; let obj = {}; if (newtype == "list") obj["overflow"] = "visible"; else obj["height"] = pageListHeight.value + "px"; return obj; }; const handleDate = (dateTimeStamp = /* @__PURE__ */ new Date(), ishour = true) => { dateTimeStamp = dateTimeStamp ? dateTimeStamp : null; var timestamp = new Date(dateTimeStamp); timestamp = timestamp.getTime(); var minute = 1e3 * 60; var hour = minute * 60; var day = hour * 24; var now = (/* @__PURE__ */ new Date()).getTime(); var diffValue = now - timestamp; var result; if (diffValue < 0) return "刚刚"; var dayC = diffValue / day; var hourC = diffValue / (hour + 1); var minC = diffValue / minute; if (dayC >= 7) { let date = new Date(timestamp); let Y = date.getFullYear() + "-"; let M = (date.getMonth() + 1 < 10 ? "0" + (date.getMonth() + 1) : date.getMonth() + 1) + "-"; let D = (date.getDate() < 10 ? "0" + date.getDate() : date.getDate()) + " "; let h2 = (date.getHours() < 10 ? "0" + date.getHours() : date.getHours()) + ":"; let m = date.getMinutes() < 10 ? "0" + date.getMinutes() : date.getMinutes(); if (ishour) result = "" + Y + M + D + h2 + m; else result = "" + Y + M + D; } else if (dayC >= 1) result = "" + Math.round(dayC) + "天前"; else if (hourC >= 1) result = "" + Math.round(hourC) + "小时前"; else if (minC >= 1) result = "" + Math.round(minC) + "分钟前"; else result = "刚刚"; return result; }; provide("handleDate", handleDate); let questionsTransmitState = ref(false); let questionsTransmitMaskState = ref(false); const closeTransmitState = () => { questionsTransmitState.value = true; questionsTransmitMaskState.value = true; countForwardingTimes(detailsToken); }; const closeAllTransmitState = () => { answerList.value.forEach((element) => { element["transmitState"] = false; }); questionsTransmitState.value = false; questionsTransmitMaskState.value = false; }; const handleAnswerTransmitList = (Iindex, type2) => { answerList.value[Iindex]["transmitState"] = true; questionsTransmitMaskState.value = true; countForwardingTimes(answerList.value[Iindex]["token"]); }; const countForwardingTimes = (token) => { $ajaxGET("/api/operate/share?token=" + token); }; const closeDetailMode = () => { if (myModelState.value) { closeMyModel(); return; } type.value = "list"; openBottom(); pitchIndex.value = null; seo.value = {}; list.value = JSON.parse(JSON.stringify(backupsList)); }; const handleListScroll = (e) => { const el = e.target; if (el.scrollHeight - el.scrollTop >= el.clientHeight + 40 || myModelState.value) return; getList(); }; const handlePaste = (event, type2) => { const items = (event.clipboardData || event.originalEvent.clipboardData).items; for (const item of items) { if (item.type.indexOf("image") === 0) { event.preventDefault(); handleMsg("warning", "上传图片中"); const file = item.getAsFile(); const reader = new FileReader(); reader.onload = (e) => { e.target.result; uploadImg(file).then((res) => { let questionTextarea = null; if (type2 == "you") questionTextarea = (void 0).querySelector(".your-answer-textarea"); else questionTextarea = (void 0).querySelector(".question-textarea"); let imgNode = (void 0).createElement("img"); imgNode.setAttribute("src", res.url); imgNode.setAttribute("data-aid", res.aid); questionTextarea.appendChild(imgNode); if (type2 == "you") handleInputYou(); else handleInput(); handleMsg("success", "上传成功"); }); }; reader.readAsDataURL(file); } } }; const uploadImg = (file) => { return new Promise((resolve, reject) => { detailLoading.value = true; const upload = () => { let config = uploadConfig; const formData = new FormData(); formData.append(config.requestName, file); formData.append("type", "image"); formData.append("data", config.params.data); $ajax(config.url, formData).then((res) => { if (res.code != 200) { handleMsg("error", res.message || "上传失败"); return; } let data = res.data; resolve(data); }).finally(() => detailLoading.value = false); }; if (uploadConfig) upload(); else getUploadConfig().then(() => upload()); }); }; provide("uploadImg", uploadImg); let uploadConfig = null; const getUploadConfig = () => { return new Promise((resolve, reject) => { $ajax("https://api.gter.net/v1/config/upload?type=comment").then((res) => { let data = res.data; uploadConfig = data; resolve(); }); }); }; let questionPlaceholderState = ref(false); let yourAnswerPlaceholderState = ref(true); const handleInput = () => { const questionTextarea = (void 0).querySelector(".question-textarea"); const html = questionTextarea.innerHTML; if (html) questionPlaceholderState.value = false; else questionPlaceholderState.value = true; }; const handleInputYou = () => { const questionTextarea = (void 0).querySelector(".your-answer-textarea"); const html = questionTextarea.innerHTML; if (html) yourAnswerPlaceholderState.value = false; else yourAnswerPlaceholderState.value = true; }; let msg = ref({}); const handleMsg = (type2, text) => { msg.value["state"] = true; msg.value["type"] = type2; msg.value["text"] = text; }; provide("handleMsg", handleMsg); const boxClass = () => { msgShowTimer(); return type ? `box-item-${msg.value["type"]}` : ""; }; let msgTimer = null; const msgShowTimer = () => { clearTimeout(msgTimer); msgTimer = setTimeout(() => { msg.value["state"] = false; }, 1e3); }; let copyText = (text) => { if ((void 0).clipboard) { copyText = () => { (void 0).clipboard.writeText(text); handleMsg("success", "复制成功"); }; } else { copyText = () => { var tempInput = (void 0).createElement("input"); tempInput.value = text; (void 0).body.appendChild(tempInput); tempInput.select(); (void 0).execCommand("copy"); (void 0).body.removeChild(tempInput); handleMsg("success", "复制成功"); }; } copyText(); }; const replaceState = (obj = {}) => { return; }; let myModelState = ref(false); let myModelList = ref([]); let temporaryData = {}; const myOpenDetails = (uniqid) => { if (!uniqid) { handleMsg("error", "没有找到相关提问"); return; } if (!myModelState.value) { temporaryData = { total: total.value, keywordText: keywordText.value, isSearchMode: isSearchMode.value, inTheEndState: inTheEndState.value, type: type.value, pitchIndex: pitchIndex.value, listlist: JSON.parse(JSON.stringify(list.value)) }; isSearchMode.value = false; inTheEndState.value = false; keyword.value = ""; list.value = JSON.parse(JSON.stringify(myModelList.value)); myModelState.value = true; pitchIndex.value = null; } getDetails(uniqid); myType.value = ""; }; const closeMyModel = () => { myModelList.value = JSON.parse(JSON.stringify(list.value)); isSearchMode.value = temporaryData["isSearchMode"]; keywordText.value = temporaryData["keywordText"]; keyword.value = temporaryData["keywordText"]; total.value = temporaryData["total"]; type.value = temporaryData["type"]; pitchIndex.value = temporaryData["pitchIndex"]; inTheEndState.value = temporaryData["inTheEndState"]; list.value = JSON.parse(JSON.stringify(temporaryData.listlist)); myModelState.value = false; if (pitchIndex.value !== null && pitchIndex.value !== void 0) { let uniqid = list.value[pitchIndex.value]["uniqid"]; getDetails(uniqid); } }; const handleDetailsScroll = (e) => { const el = e.target; if (el.scrollHeight - el.scrollTop !== el.clientHeight) return; }; let dialogSrc = ref(""); const handleAnswerText = (e) => { if (e.target.tagName === "IMG") { var src = e.target.getAttribute("src"); dialogSrc.value = src; (void 0).addEventListener("keydown", handleKeydown); } }; provide("handleAnswerText", handleAnswerText); const handleKeydown = (event) => { if (event.key !== "Escape") return; dialogSrc.value = ""; (void 0).removeEventListener("keydown", handleKeydown); }; const cutType = (id) => { typePitch.value = id; page = 1; list.value = []; backupsList = []; listHeight.value = 0; myModelState.value = false; type.value = "list"; openBottom(); pitchIndex.value = null; getList(); listHeight.value = 0; }; const handleMenuState = (token) => { reportToken = token; alertShow.value = true; }; provide("handleMenuState", handleMenuState); let reportToken = ""; const reasonList = ["广告", "辱骂", "重复发送", "不良信息", "其他"]; let checkList = ref([]); let alertShow = ref(false); let alertText = ref(""); const selectRadio = (value) => { const index = checkList.value.indexOf(value); if (index === -1) checkList.value.push(value); else checkList.value.splice(index, 1); }; const alertSubmit = () => { checkList.value.push(alertText.value); $ajax("/api/operate/report", { message: checkList.value, token: reportToken }).then((res) => { checkList.value = []; reportToken = ""; alertShow.value = false; handleMsg("success", "举报成功"); }); }; let recommendList = []; let recommendPage = 1; const getRecommend = (uniqid) => { $ajax("/api/details/relatedlist", { page: recommendPage, limit: 20 }).then((res) => { if (res.code != 200) return; let obj = { offer: "Offer", mj: "面经", vote: "投票", thread: "帖子" }; let data = res.data; data.forEach((element) => { element["typename"] = obj[element["type"]]; element["isrecom"] = true; }); recommendList = recommendList.concat(data); recommendPage++; handleInsertRelatedlist(uniqid); }); }; const handleInsertRelatedlist = (uniqid) => { if (myModelState.value) return; let insertCount = Math.ceil(backupsList.length / 5); if (recommendList.length < insertCount) { getRecommend(uniqid); return; } let target = JSON.parse(JSON.stringify(backupsList)); let result = []; let j2 = 0; for (let i = 0; i < target.length; i++) { result.push(target[i]); if ((i + 1) % 4 === 0 && j2 < recommendList.length) { result.push(recommendList[j2]); j2++; } } list.value = JSON.parse(JSON.stringify(result)); nextTick(() => { if (uniqid) { result.forEach((element, index) => { if (element["uniqid"] == uniqid) { pitchIndex.value = index; } }); } }); }; const replaceNumberObj = ["①", "②", "③"]; let seo = ref({}); let initState = ref(0); let islike = ref(0); try { const params = route.query; if (params["keyword"]) keyword.value = params["keyword"]; if (params["tid"]) typePitch.value = params["tid"]; await $ajax("/api/lists", { page, limit: 20, keyword: keyword.value, type: typePitch.value }).then((res) => { if (res.code != 200) return; let data = res.data; data.data.forEach((element) => { element["content"] = element["content"].replace(/<[^>]*>/g, ""); element["content"] = element["content"].replace(/ /g, ""); }); list.value = data.data; backupsList = data.data; total.value = data.count || 0; keywordText.value = keyword.value || ""; if (list.value.length != data["count"]) page++; else page = 0; if (page == 0 && list.value.length != 0) inTheEndState.value = true; else inTheEndState.value = false; if (list.value.length == 0) isListEmptyState.value = true; else isListEmptyState.value = false; if (keyword.value) isSearchMode.value = true; else isSearchMode.value = false; nextTick(() => { if (list.value.length == 0) type.value = "list"; }); }); } catch (error) { console.error(error); } watch(initState, (newValue, oldValue) => { if (newValue === 2) { route.query; } }); const setItemUrl = (uniqid) => { let url = `./index.html?uniqid=${uniqid}`; let query = route.query; for (const key in query) { if (key != "uniqid") url += `&${key}=${query[key]}`; } return url; }; const handleLogo = () => { (void 0).location.href = (void 0).location.origin + (void 0).location.pathname; }; let yourAnswer = ref({ text: "", anonymous: 0 }); const cutYourAnswerAnonymous = () => { yourAnswer.value["anonymous"] = yourAnswer.value["anonymous"] ? 0 : 1; }; const openListIAnswer = (index) => { if (isNeedLogin.value) { return; } let targetData = list.value[index]; IAnswerInfo.value = { title: targetData["title"], content: targetData["content"], token: targetData["token"], uniqid: targetData["uniqid"], anonymous: 0, index }; IAnswerState.value = true; nextTick(() => handleInput()); }; let avatarState = ref(false); const openUserInfo = () => { if (detailsInfo.value["uin"] > 0) avatarState.value = !avatarState.value; }; const sendMessage = (uin) => { if (uin && typeof messagePrivateItem == "function") { messagePrivateItem({ uin }); return; } else redirectToExternalWebsite(`https://bbs.gter.net/home.php?mod=space&showmsg=1&uid=${uin}`); }; const TAHomePage = (uin) => { redirectToExternalWebsite(`https://bbs.gter.net/home.php?mod=space&uid=${uin}`); }; provide("TAHomePag", TAHomePage); const redirectToExternalWebsite = (url) => { const link = (void 0).createElement("a"); link.href = url; link.target = "_blank"; link.click(); }; const openBottom = () => { const footer = (void 0).querySelector("body .index-footer"); if (footer) footer.style.display = "block"; else setTimeout(() => openBottom(), 1e3); }; const handleLookOnly = () => { zeroreply.value = zeroreply.value == 0 ? 1 : 0; page = 1; list.value = []; backupsList = []; listHeight.value = 0; getList(); }; const commentList = ref([]); const commentListRef = ref(null); const closeEmojiMask = () => { if (commentListRef.value) commentListRef.value.closeEmoji(); }; const handleUpdateAnswers = (value) => { list.value.forEach((element) => { if (element.uniqid == detailsInfo.value["uniqid"]) element["answers"] = value; }); backupsList.forEach((element) => { if (element.uniqid == detailsInfo.value["uniqid"]) element["answers"] = value; }); }; let isLikeGif = ref(false); let isLikeTimer = null; return { isLikeGif, handleUpdateAnswers, commentListRef, closeEmojiMask, emojiMaskState, isCommentList, commentList, islike, handleLookOnly, zeroreply, replaceNumberObj, closeMyModel, myModelList, myModelState, listHeight, bottomTpsStyle, TAHomePage, sendMessage, avatarState, openUserInfo, isNeedLogin, handleInputYou, openListIAnswer, isListEmptyState, cutYourAnswerAnonymous, yourAnswer, handleLogo, inTheEndState, setItemUrl, seo, originUrl, handleMenuState, reasonList, checkList, alertShow, alertText, selectRadio, alertSubmit, cutType, dialogSrc, answerPage, handleDetailsScroll, replaceState, copyText, boxClass, questionPlaceholderState, yourAnswerPlaceholderState, handleInput, handlePaste, itemStyle, listStyle, listBoxStyle, myType, type, pitchIndex, cut, list, keyword, keywordText, getList, total, typeList, typePitch, getDetails, detailsInfo, detailsIsanswered, detailsIscollection, detailsIsmyself, detailShare, detailLoading, answerList, operateLike, operateCollect, IAnswerState, IAnswerEditState, IAnswerInfo, amendIAnswer, openCommentState, handleAllComment, myCollectionList, myCollectionCount, myQuestionsList, myQuestionsCount, myAnswerList, myAnswerCount, cutAnswerPopupState, handleDate, handleCollectionScroll, handleAnswersScroll, handleQuestionsScroll, cancelCollection, getMyCollection, questionsSetp, questionsObj, cutAnonymous, cutQuestionsSetp, cutQuestionsPopupState, questionsTypeList, postingIssue, choosingTheme, handleMy, changeAnonymous, changeAnonymousQuestions, pageHeaderHeight, pageListHeight, questionsTransmitState, questionsTransmitMaskState, closeAllTransmitState, closeTransmitState, handleAnswerTransmitList, closeDetailMode, tabListFixeState, handleListScroll, historicalSearchState, historicalSearchList, searchFocus, searchBlur, searchClick, handleClickHistoricalItem, handleClickClear, isSearchMode, questionsInit, myCount, msg, myOpenDetails, handleAnswerText, getCurrentUrl, loading }; } }; function _sfc_ssrRender(_ctx, _push, _parent, _attrs, $props, $setup, $data, $options) { const _component_Head = Head; const _component_Title = Title; const _component_Meta = Meta; const _component_ClientOnly = __nuxt_component_3; const _component_commentList = _sfc_main$3; const _component_Like = __nuxt_component_5; _push(`
`); _push(ssrRenderComponent(_component_Head, null, { default: withCtx((_, _push2, _parent2, _scopeId) => { if (_push2) { _push2(ssrRenderComponent(_component_Title, null, { default: withCtx((_2, _push3, _parent3, _scopeId2) => { if (_push3) { _push3(`${ssrInterpolate(`${$setup.seo["title"] || "问答"} - 寄托天下出国留学网`)}`); } else { return [ createTextVNode(toDisplayString(`${$setup.seo["title"] || "问答"} - 寄托天下出国留学网`), 1) ]; } }), _: 1 }, _parent2, _scopeId)); _push2(ssrRenderComponent(_component_Meta, { name: "keyword", content: $setup.seo["keyword"] }, null, _parent2, _scopeId)); _push2(ssrRenderComponent(_component_Meta, { name: "description", content: $setup.seo["description"] }, null, _parent2, _scopeId)); } else { return [ createVNode(_component_Title, null, { default: withCtx(() => [ createTextVNode(toDisplayString(`${$setup.seo["title"] || "问答"} - 寄托天下出国留学网`), 1) ]), _: 1 }), createVNode(_component_Meta, { name: "keyword", content: $setup.seo["keyword"] }, null, 8, ["content"]), createVNode(_component_Meta, { name: "description", content: $setup.seo["description"] }, null, 8, ["content"]) ]; } }), _: 1 }, _parent)); _push(`
`); if ($setup.myModelState) { _push(`
我的收藏/提问
`); } else if ($setup.isSearchMode) { _push(`
${ssrInterpolate($setup.keywordText)}
共 ${ssrInterpolate($setup.total)} 条搜索结果
`); } else { _push(`
共 ${ssrInterpolate($setup.total)} 条问答
`); } _push(`
`); ssrRenderList($setup.list, (item, index) => { _push(``); if (item["isrecom"] && $setup.type != "list") { _push(`
推荐阅读
${ssrInterpolate(item["title"])}
`); if (item["type"] == "thread") { _push(``); if (item["message"]) { _push(`
${ssrInterpolate(item["message"])}
`); } else { _push(``); } _push(``); } else if (item["type"] == "vote") { _push(`
`); ssrRenderList(item["option"].slice(0, 2), (ite, i) => { _push(`
${ssrInterpolate($setup.replaceNumberObj[i] + ite)}
`); }); _push(`
${ssrInterpolate($setup.replaceNumberObj[2])} …
`); } else { _push(`
`); if (item["profession"] || item["professional"]) { _push(`
${ssrInterpolate(item["profession"] || item["professional"])}
`); } else { _push(``); } if (item["project"] || item["degree"]) { _push(`
${ssrInterpolate(item["project"] || item["degree"])}
`); } else { _push(``); } if (item["interviewtime"] || item["semester"]) { _push(`
${ssrInterpolate(item["interviewtime"] || item["semester"])}
`); } else { _push(``); } if (item["apply_results"]) { _push(`
${ssrInterpolate(item["apply_results"])}
`); } else { _push(``); } _push(`
`); } _push(`
${ssrInterpolate(item["typename"])}
`); } else { _push(`
`); if (item["ishot"] == 1) { _push(``); } else { _push(``); } _push(`
${ssrInterpolate(item["title"])}
`); if (item["content"]) { _push(`
${ssrInterpolate(item["content"])}
`); } else { _push(``); } _push(`
`); if (item["typename"]) { _push(`
${ssrInterpolate(item["typename"])}
`); } else { _push(`
`); } _push(`
${ssrInterpolate($setup.handleDate(item.publicationdate, false))}提问
${ssrInterpolate(item.answers)}
`); } _push(``); }); _push(`
`); if ($setup.inTheEndState) { _push(`
- 到底了 -
`); } else { _push(``); } if ($setup.myModelState) { _push(`
`); } else { _push(``); } if ($setup.isListEmptyState && $setup.list.length == 0) { _push(`
`); if ($setup.isSearchMode) { _push(`
没有找到相关结果,请更换搜索关键词
`); } else { _push(`
暂无数据
`); } _push(`
`); } else { _push(``); } _push(`
`); if ($setup.type == "details") { _push(`
`); if ($setup.detailLoading) { _push(`
`); } else { _push(``); } if ($setup.emojiMaskState) { _push(`
`); } else { _push(``); } _push(`
`); if ($setup.detailsInfo.typename) { _push(`
${ssrInterpolate($setup.detailsInfo.typename)}
`); } else { _push(``); } _push(`
${ssrInterpolate($setup.detailsInfo["title"])}
`); if ($setup.detailsInfo["content"]) { _push(`
${$setup.detailsInfo["content"] ?? ""}
`); } else { _push(``); } _push(`
${ssrInterpolate($setup.detailsInfo["viewnum"] || 0)}
`); if ($setup.islike == 0) { _push(``); } else { _push(``); } _push(` ${ssrInterpolate($setup.detailsInfo.likenum || "赞")}
`); _push(ssrRenderComponent(_component_ClientOnly, null, {}, _parent)); _push(`
转发 `); if ($setup.questionsTransmitState) { _push(`
转发网页版
${ssrInterpolate($setup.detailsInfo["title"])}
${ssrInterpolate($setup.getCurrentUrl())}
复制链接
转发小程序版
扫码转发该问答
`); } else { _push(``); } _push(`
`); if ($setup.isCommentList) { _push(ssrRenderComponent(_component_commentList, { ref: "commentListRef", onUpdateAnswers: $setup.handleUpdateAnswers }, null, _parent)); } else { _push(``); } _push(`
手机查看该问答
微信扫一扫
`); } else { _push(``); } _push(`
`); if ($setup.myType) { _push(`
我的收藏
${ssrInterpolate($setup.myCollectionCount || $setup.myCount["collect"] || 0)}
我的提问
${ssrInterpolate($setup.myQuestionsCount || $setup.myCount["questions"] || 0)}
`); if ($setup.myType == "collect" && $setup.myCollectionList.length == 0 || $setup.myType == "answers" && $setup.myAnswerList.length == 0 || $setup.myType == "questions" && $setup.myQuestionsList.length == 0) { _push(`
暂无内容
`); } else { _push(``); } if ($setup.myType == "collect" && $setup.myCollectionList.length != 0) { _push(`
`); ssrRenderList($setup.myCollectionList, (item, index) => { _push(`
`); if (item.type == "askanswercollection") { _push(`
A
${item["data"]["content"] ?? ""}
提问:${ssrInterpolate(item["data"]["title"])}
`); } else { _push(`
Q
${ssrInterpolate(item["data"]["title"])}
${ssrInterpolate(item["data"]["answers"] > 0 ? "共" + item["data"]["answers"] + "个回答&讨论" : "暂无回答&讨论")}
`); } _push(`
`); }); _push(`
`); } else { _push(``); } if ($setup.myType == "answers" && $setup.myAnswerList.length != 0) { _push(`
`); ssrRenderList($setup.myAnswerList, (item, index) => { _push(`
A
${ssrInterpolate(item["nickname"])}
${ssrInterpolate($setup.handleDate(item["publicationdate"]))}
${item["content"] ?? ""}
提问:${ssrInterpolate(item["title"])}
${ssrInterpolate(item["anonymous"] == 0 ? "公开" : "匿名")}
`); if (item["popupState"]) { _push(`
公开发表
匿名发表
`); } else { _push(``); } _push(`
`); }); _push(`
`); } else { _push(``); } if ($setup.myType == "questions" && $setup.myQuestionsList.length != 0) { _push(`
`); ssrRenderList($setup.myQuestionsList, (item, index) => { _push(`
Q
${ssrInterpolate(item["nickname"])}
${ssrInterpolate($setup.handleDate(item["publicationdate"]))}
${ssrInterpolate(item["title"])}
`); if (item["authornewnum"] > 0) { _push(`
有${ssrInterpolate(item["authornewnum"])}个新回答&讨论
`); } else { _push(``); } _push(` ${ssrInterpolate(item["answers"] == 0 ? "暂无回答&讨论" : "共" + item["answers"] + "个回答&讨论")}
${ssrInterpolate(item["anonymous"] == 0 ? "公开" : "匿名")}
`); if (item["popupState"]) { _push(`
公开发表
匿名发表
`); } else { _push(``); } _push(`
`); }); _push(`
`); } else { _push(``); } _push(`
`); } else { _push(``); } if ($setup.questionsSetp) { _push(`
`); if ($setup.questionsSetp == 1) { _push(`
选择提问所属主题
`); ssrRenderList($setup.questionsTypeList, (item, index) => { _push(`
`); ssrRenderList(item, (item2) => { _push(`
${ssrInterpolate(item2.name)}
`); }); _push(`
`); }); _push(`
`); } else { _push(`
Q
`); if ($setup.questionsObj.anonymous == 0) { _push(``); } else { _push(``); } _push(` 匿名发表
(发布后只能修改是否匿名)
发布问题
`); } _push(`
`); } else { _push(``); } _push(``); if ($setup.dialogSrc) { _push(`
`); } else { _push(``); } _push(`
举报投诉
`); ssrRenderList($setup.reasonList, (s, i) => { _push(`
${ssrInterpolate(s)}
`); }); _push(`
${ssrInterpolate(200 - $setup.alertText.length)}
`); if ($setup.isLikeGif) { _push(ssrRenderComponent(_component_Like, null, null, _parent)); } else { _push(``); } _push(``); } const _sfc_setup$2 = _sfc_main$2.setup; _sfc_main$2.setup = (props, ctx) => { const ssrContext = useSSRContext(); (ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("app.vue"); return _sfc_setup$2 ? _sfc_setup$2(props, ctx) : void 0; }; const AppComponent = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["ssrRender", _sfc_ssrRender]]); const _sfc_main$1 = { __name: "nuxt-error-page", __ssrInlineRender: true, props: { error: Object }, setup(__props) { const props = __props; const _error = props.error; _error.stack ? _error.stack.split("\n").splice(1).map((line) => { const text = line.replace("webpack:/", "").replace(".vue", ".js").trim(); return { text, internal: line.includes("node_modules") && !line.includes(".cache") || line.includes("internal") || line.includes("new Promise") }; }).map((i) => `${i.text}`).join("\n") : ""; const statusCode = Number(_error.statusCode || 500); const is404 = statusCode === 404; const statusMessage = _error.statusMessage ?? (is404 ? "Page Not Found" : "Internal Server Error"); const description = _error.message || _error.toString(); const stack = void 0; const _Error404 = defineAsyncComponent(() => import('./error-404-BlVDShWL.mjs')); const _Error = defineAsyncComponent(() => import('./error-500-k1TrraF0.mjs')); const ErrorTemplate = is404 ? _Error404 : _Error; return (_ctx, _push, _parent, _attrs) => { _push(ssrRenderComponent(unref(ErrorTemplate), mergeProps({ statusCode: unref(statusCode), statusMessage: unref(statusMessage), description: unref(description), stack: unref(stack) }, _attrs), null, _parent)); }; } }; const _sfc_setup$1 = _sfc_main$1.setup; _sfc_main$1.setup = (props, ctx) => { const ssrContext = useSSRContext(); (ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("node_modules/.store/nuxt@3.16.0/node_modules/nuxt/dist/app/components/nuxt-error-page.vue"); return _sfc_setup$1 ? _sfc_setup$1(props, ctx) : void 0; }; const _sfc_main = { __name: "nuxt-root", __ssrInlineRender: true, setup(__props) { const IslandRenderer = () => null; const nuxtApp = useNuxtApp(); nuxtApp.deferHydration(); nuxtApp.ssrContext.url; const SingleRenderer = false; provide(PageRouteSymbol, useRoute()); nuxtApp.hooks.callHookWith((hooks) => hooks.map((hook) => hook()), "vue:setup"); const error = useError(); const abortRender = error.value && !nuxtApp.ssrContext.error; onErrorCaptured((err, target, info) => { nuxtApp.hooks.callHook("vue:error", err, target, info).catch((hookError) => console.error("[nuxt] Error in `vue:error` hook", hookError)); { const p = nuxtApp.runWithContext(() => showError(err)); onServerPrefetch(() => p); return false; } }); const islandContext = nuxtApp.ssrContext.islandContext; return (_ctx, _push, _parent, _attrs) => { ssrRenderSuspense(_push, { default: () => { if (unref(abortRender)) { _push(`
`); } else if (unref(error)) { _push(ssrRenderComponent(unref(_sfc_main$1), { error: unref(error) }, null, _parent)); } else if (unref(islandContext)) { _push(ssrRenderComponent(unref(IslandRenderer), { context: unref(islandContext) }, null, _parent)); } else if (unref(SingleRenderer)) { ssrRenderVNode(_push, createVNode(resolveDynamicComponent(unref(SingleRenderer)), null, null), _parent); } else { _push(ssrRenderComponent(unref(AppComponent), null, null, _parent)); } }, _: 1 }); }; } }; const _sfc_setup = _sfc_main.setup; _sfc_main.setup = (props, ctx) => { const ssrContext = useSSRContext(); (ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("node_modules/.store/nuxt@3.16.0/node_modules/nuxt/dist/app/components/nuxt-root.vue"); return _sfc_setup ? _sfc_setup(props, ctx) : void 0; }; let entry; { entry = async function createNuxtAppServer(ssrContext) { var _a2; const vueApp = createApp(_sfc_main); const nuxt = createNuxtApp({ vueApp, ssrContext }); try { await applyPlugins(nuxt, plugins); await nuxt.hooks.callHook("app:created", vueApp); } catch (error) { await nuxt.hooks.callHook("app:error", error); (_a2 = nuxt.payload).error || (_a2.error = createError(error)); } if (ssrContext == null ? void 0 : ssrContext._renderResponse) { throw new Error("skipping render"); } return vueApp; }; } const entry$1 = (ssrContext) => entry(ssrContext); export { Yr as Y, Zt$1 as Z, _export_sfc as _, useNuxtApp as a, useRuntimeConfig as b, withoutTrailingSlash as c, nuxtLinkDefaults as d, entry$1 as default, useHead as e, hasProtocol as h, joinURL as j, navigateTo as n, parseQuery as p, resolveRouteObject as r, useRouter as u, withTrailingSlash as w }; //# sourceMappingURL=server.mjs.map