UNPKG

strapi-plugin-comments

Version:
1,434 lines (1,433 loc) 69.3 kB
import { jsx as _, jsxs as Ae } from "react/jsx-runtime"; import { ab as tn, ac as $r, l as wr, ad as nn, ae as it, af as an, ag as ee, ah as Rr, ai as lt, p as on, aj as V, F as ln, ak as un, T as cn, e as Cr } from "./index-Bi2NddA5.mjs"; import { useQuery as fn, QueryClientProvider as sn, QueryClient as pn } from "@tanstack/react-query"; import * as oe from "react"; import { useMemo as ut, createContext as yn, useState as Tr } from "react"; import { getFetchClient as dn, useRBAC as mn } from "@strapi/strapi/admin"; import { z as o } from "zod"; var ce = TypeError; const vn = {}, gn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, default: vn }, Symbol.toStringTag, { value: "Module" })), hn = /* @__PURE__ */ tn(gn); var dr = typeof Map == "function" && Map.prototype, Le = Object.getOwnPropertyDescriptor && dr ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, Re = dr && Le && typeof Le.get == "function" ? Le.get : null, _r = dr && Map.prototype.forEach, mr = typeof Set == "function" && Set.prototype, Be = Object.getOwnPropertyDescriptor && mr ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, Ce = mr && Be && typeof Be.get == "function" ? Be.get : null, Ir = mr && Set.prototype.forEach, Sn = typeof WeakMap == "function" && WeakMap.prototype, se = Sn ? WeakMap.prototype.has : null, bn = typeof WeakSet == "function" && WeakSet.prototype, pe = bn ? WeakSet.prototype.has : null, An = typeof WeakRef == "function" && WeakRef.prototype, Nr = An ? WeakRef.prototype.deref : null, En = Boolean.prototype.valueOf, On = Object.prototype.toString, Pn = Function.prototype.toString, $n = String.prototype.match, vr = String.prototype.slice, H = String.prototype.replace, wn = String.prototype.toUpperCase, xr = String.prototype.toLowerCase, ct = RegExp.prototype.test, Fr = Array.prototype.concat, L = Array.prototype.join, Rn = Array.prototype.slice, Mr = Math.floor, ar = typeof BigInt == "function" ? BigInt.prototype.valueOf : null, Ue = Object.getOwnPropertySymbols, or = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Symbol.prototype.toString : null, ie = typeof Symbol == "function" && typeof Symbol.iterator == "object", ye = typeof Symbol == "function" && Symbol.toStringTag && (typeof Symbol.toStringTag === ie || !0) ? Symbol.toStringTag : null, ft = Object.prototype.propertyIsEnumerable, Dr = (typeof Reflect == "function" ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ([].__proto__ === Array.prototype ? function(r) { return r.__proto__; } : null); function Lr(r, e) { if (r === 1 / 0 || r === -1 / 0 || r !== r || r && r > -1e3 && r < 1e3 || ct.call(/e/, e)) return e; var t = /[0-9](?=(?:[0-9]{3})+(?![0-9]))/g; if (typeof r == "number") { var n = r < 0 ? -Mr(-r) : Mr(r); if (n !== r) { var a = String(n), i = vr.call(e, a.length + 1); return H.call(a, t, "$&_") + "." + H.call(H.call(i, /([0-9]{3})/g, "$&_"), /_$/, ""); } } return H.call(e, t, "$&_"); } var ir = hn, Br = ir.custom, Ur = yt(Br) ? Br : null, st = { __proto__: null, double: '"', single: "'" }, Cn = { __proto__: null, double: /(["\\])/g, single: /(['\\])/g }, Ne = function r(e, t, n, a) { var i = t || {}; if (U(i, "quoteStyle") && !U(st, i.quoteStyle)) throw new TypeError('option "quoteStyle" must be "single" or "double"'); if (U(i, "maxStringLength") && (typeof i.maxStringLength == "number" ? i.maxStringLength < 0 && i.maxStringLength !== 1 / 0 : i.maxStringLength !== null)) throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`'); var c = U(i, "customInspect") ? i.customInspect : !0; if (typeof c != "boolean" && c !== "symbol") throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`"); if (U(i, "indent") && i.indent !== null && i.indent !== " " && !(parseInt(i.indent, 10) === i.indent && i.indent > 0)) throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`'); if (U(i, "numericSeparator") && typeof i.numericSeparator != "boolean") throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`'); var l = i.numericSeparator; if (typeof e > "u") return "undefined"; if (e === null) return "null"; if (typeof e == "boolean") return e ? "true" : "false"; if (typeof e == "string") return mt(e, i); if (typeof e == "number") { if (e === 0) return 1 / 0 / e > 0 ? "0" : "-0"; var f = String(e); return l ? Lr(e, f) : f; } if (typeof e == "bigint") { var u = String(e) + "n"; return l ? Lr(e, u) : u; } var p = typeof i.depth > "u" ? 5 : i.depth; if (typeof n > "u" && (n = 0), n >= p && p > 0 && typeof e == "object") return lr(e) ? "[Array]" : "[Object]"; var y = zn(i, n); if (typeof a > "u") a = []; else if (dt(a, e) >= 0) return "[Circular]"; function m(x, G, Z) { if (G && (a = Rn.call(a), a.push(G)), Z) { var j = { depth: i.depth }; return U(i, "quoteStyle") && (j.quoteStyle = i.quoteStyle), r(x, j, n + 1, a); } return r(x, i, n + 1, a); } if (typeof e == "function" && !qr(e)) { var h = Ln(e), v = Ee(e, m); return "[Function" + (h ? ": " + h : " (anonymous)") + "]" + (v.length > 0 ? " { " + L.call(v, ", ") + " }" : ""); } if (yt(e)) { var P = ie ? H.call(String(e), /^(Symbol\(.*\))_[^)]*$/, "$1") : or.call(e); return typeof e == "object" && !ie ? fe(P) : P; } if (Gn(e)) { for (var C = "<" + xr.call(String(e.nodeName)), g = e.attributes || [], I = 0; I < g.length; I++) C += " " + g[I].name + "=" + pt(Tn(g[I].value), "double", i); return C += ">", e.childNodes && e.childNodes.length && (C += "..."), C += "</" + xr.call(String(e.nodeName)) + ">", C; } if (lr(e)) { if (e.length === 0) return "[]"; var O = Ee(e, m); return y && !Vn(O) ? "[" + ur(O, y) + "]" : "[ " + L.call(O, ", ") + " ]"; } if (In(e)) { var $ = Ee(e, m); return !("cause" in Error.prototype) && "cause" in e && !ft.call(e, "cause") ? "{ [" + String(e) + "] " + L.call(Fr.call("[cause]: " + m(e.cause), $), ", ") + " }" : $.length === 0 ? "[" + String(e) + "]" : "{ [" + String(e) + "] " + L.call($, ", ") + " }"; } if (typeof e == "object" && c) { if (Ur && typeof e[Ur] == "function" && ir) return ir(e, { depth: p - n }); if (c !== "symbol" && typeof e.inspect == "function") return e.inspect(); } if (Bn(e)) { var s = []; return _r && _r.call(e, function(x, G) { s.push(m(G, e, !0) + " => " + m(x, e)); }), Wr("Map", Re.call(e), s, y); } if (Wn(e)) { var F = []; return Ir && Ir.call(e, function(x) { F.push(m(x, e)); }), Wr("Set", Ce.call(e), F, y); } if (Un(e)) return qe("WeakMap"); if (kn(e)) return qe("WeakSet"); if (qn(e)) return qe("WeakRef"); if (xn(e)) return fe(m(Number(e))); if (Mn(e)) return fe(m(ar.call(e))); if (Fn(e)) return fe(En.call(e)); if (Nn(e)) return fe(m(String(e))); if (typeof window < "u" && e === window) return "{ [object Window] }"; if (typeof globalThis < "u" && e === globalThis || typeof $r < "u" && e === $r) return "{ [object globalThis] }"; if (!_n(e) && !qr(e)) { var B = Ee(e, m), M = Dr ? Dr(e) === Object.prototype : e instanceof Object || e.constructor === Object, W = e instanceof Object ? "" : "null prototype", k = !M && ye && Object(e) === e && ye in e ? vr.call(Y(e), 8, -1) : W ? "Object" : "", K = M || typeof e.constructor != "function" ? "" : e.constructor.name ? e.constructor.name + " " : "", N = K + (k || W ? "[" + L.call(Fr.call([], k || [], W || []), ": ") + "] " : ""); return B.length === 0 ? N + "{}" : y ? N + "{" + ur(B, y) + "}" : N + "{ " + L.call(B, ", ") + " }"; } return String(e); }; function pt(r, e, t) { var n = t.quoteStyle || e, a = st[n]; return a + r + a; } function Tn(r) { return H.call(String(r), /"/g, "&quot;"); } function X(r) { return !ye || !(typeof r == "object" && (ye in r || typeof r[ye] < "u")); } function lr(r) { return Y(r) === "[object Array]" && X(r); } function _n(r) { return Y(r) === "[object Date]" && X(r); } function qr(r) { return Y(r) === "[object RegExp]" && X(r); } function In(r) { return Y(r) === "[object Error]" && X(r); } function Nn(r) { return Y(r) === "[object String]" && X(r); } function xn(r) { return Y(r) === "[object Number]" && X(r); } function Fn(r) { return Y(r) === "[object Boolean]" && X(r); } function yt(r) { if (ie) return r && typeof r == "object" && r instanceof Symbol; if (typeof r == "symbol") return !0; if (!r || typeof r != "object" || !or) return !1; try { return or.call(r), !0; } catch { } return !1; } function Mn(r) { if (!r || typeof r != "object" || !ar) return !1; try { return ar.call(r), !0; } catch { } return !1; } var Dn = Object.prototype.hasOwnProperty || function(r) { return r in this; }; function U(r, e) { return Dn.call(r, e); } function Y(r) { return On.call(r); } function Ln(r) { if (r.name) return r.name; var e = $n.call(Pn.call(r), /^function\s*([\w$]+)/); return e ? e[1] : null; } function dt(r, e) { if (r.indexOf) return r.indexOf(e); for (var t = 0, n = r.length; t < n; t++) if (r[t] === e) return t; return -1; } function Bn(r) { if (!Re || !r || typeof r != "object") return !1; try { Re.call(r); try { Ce.call(r); } catch { return !0; } return r instanceof Map; } catch { } return !1; } function Un(r) { if (!se || !r || typeof r != "object") return !1; try { se.call(r, se); try { pe.call(r, pe); } catch { return !0; } return r instanceof WeakMap; } catch { } return !1; } function qn(r) { if (!Nr || !r || typeof r != "object") return !1; try { return Nr.call(r), !0; } catch { } return !1; } function Wn(r) { if (!Ce || !r || typeof r != "object") return !1; try { Ce.call(r); try { Re.call(r); } catch { return !0; } return r instanceof Set; } catch { } return !1; } function kn(r) { if (!pe || !r || typeof r != "object") return !1; try { pe.call(r, pe); try { se.call(r, se); } catch { return !0; } return r instanceof WeakSet; } catch { } return !1; } function Gn(r) { return !r || typeof r != "object" ? !1 : typeof HTMLElement < "u" && r instanceof HTMLElement ? !0 : typeof r.nodeName == "string" && typeof r.getAttribute == "function"; } function mt(r, e) { if (r.length > e.maxStringLength) { var t = r.length - e.maxStringLength, n = "... " + t + " more character" + (t > 1 ? "s" : ""); return mt(vr.call(r, 0, e.maxStringLength), e) + n; } var a = Cn[e.quoteStyle || "single"]; a.lastIndex = 0; var i = H.call(H.call(r, a, "\\$1"), /[\x00-\x1f]/g, jn); return pt(i, "single", e); } function jn(r) { var e = r.charCodeAt(0), t = { 8: "b", 9: "t", 10: "n", 12: "f", 13: "r" }[e]; return t ? "\\" + t : "\\x" + (e < 16 ? "0" : "") + wn.call(e.toString(16)); } function fe(r) { return "Object(" + r + ")"; } function qe(r) { return r + " { ? }"; } function Wr(r, e, t, n) { var a = n ? ur(t, n) : L.call(t, ", "); return r + " (" + e + ") {" + a + "}"; } function Vn(r) { for (var e = 0; e < r.length; e++) if (dt(r[e], ` `) >= 0) return !1; return !0; } function zn(r, e) { var t; if (r.indent === " ") t = " "; else if (typeof r.indent == "number" && r.indent > 0) t = L.call(Array(r.indent + 1), " "); else return null; return { base: t, prev: L.call(Array(e + 1), t) }; } function ur(r, e) { if (r.length === 0) return ""; var t = ` ` + e.prev + e.base; return t + L.call(r, "," + t) + ` ` + e.prev; } function Ee(r, e) { var t = lr(r), n = []; if (t) { n.length = r.length; for (var a = 0; a < r.length; a++) n[a] = U(r, a) ? e(r[a], r) : ""; } var i = typeof Ue == "function" ? Ue(r) : [], c; if (ie) { c = {}; for (var l = 0; l < i.length; l++) c["$" + i[l]] = i[l]; } for (var f in r) U(r, f) && (t && String(Number(f)) === f && f < r.length || ie && c["$" + f] instanceof Symbol || (ct.call(/[^\w$]/, f) ? n.push(e(f, r) + ": " + e(r[f], r)) : n.push(f + ": " + e(r[f], r)))); if (typeof Ue == "function") for (var u = 0; u < i.length; u++) ft.call(r, i[u]) && n.push("[" + e(i[u]) + "]: " + e(r[i[u]], r)); return n; } var Hn = Ne, Yn = ce, xe = function(r, e, t) { for (var n = r, a; (a = n.next) != null; n = a) if (a.key === e) return n.next = a.next, t || (a.next = /** @type {NonNullable<typeof list.next>} */ r.next, r.next = a), a; }, Kn = function(r, e) { if (r) { var t = xe(r, e); return t && t.value; } }, Qn = function(r, e, t) { var n = xe(r, e); n ? n.value = t : r.next = /** @type {import('./list.d.ts').ListNode<typeof value, typeof key>} */ { // eslint-disable-line no-param-reassign, no-extra-parens key: e, next: r.next, value: t }; }, Jn = function(r, e) { return r ? !!xe(r, e) : !1; }, Xn = function(r, e) { if (r) return xe(r, e, !0); }, Zn = function() { var e, t = { assert: function(n) { if (!t.has(n)) throw new Yn("Side channel does not contain " + Hn(n)); }, delete: function(n) { var a = e && e.next, i = Xn(e, n); return i && a && a === i && (e = void 0), !!i; }, get: function(n) { return Kn(e, n); }, has: function(n) { return Jn(e, n); }, set: function(n, a) { e || (e = { next: void 0 }), Qn( /** @type {NonNullable<typeof $o>} */ e, n, a ); } }; return t; }, vt = Object, ea = Error, ra = EvalError, ta = RangeError, na = ReferenceError, aa = SyntaxError, oa = URIError, ia = Math.abs, la = Math.floor, ua = Math.max, ca = Math.min, fa = Math.pow, sa = Math.round, pa = Number.isNaN || function(e) { return e !== e; }, ya = pa, da = function(e) { return ya(e) || e === 0 ? e : e < 0 ? -1 : 1; }, ma = Object.getOwnPropertyDescriptor, Pe = ma; if (Pe) try { Pe([], "length"); } catch { Pe = null; } var gt = Pe, $e = Object.defineProperty || !1; if ($e) try { $e({}, "a", { value: 1 }); } catch { $e = !1; } var va = $e, We, kr; function ga() { return kr || (kr = 1, We = function() { if (typeof Symbol != "function" || typeof Object.getOwnPropertySymbols != "function") return !1; if (typeof Symbol.iterator == "symbol") return !0; var e = {}, t = Symbol("test"), n = Object(t); if (typeof t == "string" || Object.prototype.toString.call(t) !== "[object Symbol]" || Object.prototype.toString.call(n) !== "[object Symbol]") return !1; var a = 42; e[t] = a; for (var i in e) return !1; if (typeof Object.keys == "function" && Object.keys(e).length !== 0 || typeof Object.getOwnPropertyNames == "function" && Object.getOwnPropertyNames(e).length !== 0) return !1; var c = Object.getOwnPropertySymbols(e); if (c.length !== 1 || c[0] !== t || !Object.prototype.propertyIsEnumerable.call(e, t)) return !1; if (typeof Object.getOwnPropertyDescriptor == "function") { var l = ( /** @type {PropertyDescriptor} */ Object.getOwnPropertyDescriptor(e, t) ); if (l.value !== a || l.enumerable !== !0) return !1; } return !0; }), We; } var ke, Gr; function ha() { if (Gr) return ke; Gr = 1; var r = typeof Symbol < "u" && Symbol, e = ga(); return ke = function() { return typeof r != "function" || typeof Symbol != "function" || typeof r("foo") != "symbol" || typeof Symbol("bar") != "symbol" ? !1 : e(); }, ke; } var Ge, jr; function ht() { return jr || (jr = 1, Ge = typeof Reflect < "u" && Reflect.getPrototypeOf || null), Ge; } var je, Vr; function St() { if (Vr) return je; Vr = 1; var r = vt; return je = r.getPrototypeOf || null, je; } var Ve, zr; function Sa() { if (zr) return Ve; zr = 1; var r = "Function.prototype.bind called on incompatible ", e = Object.prototype.toString, t = Math.max, n = "[object Function]", a = function(f, u) { for (var p = [], y = 0; y < f.length; y += 1) p[y] = f[y]; for (var m = 0; m < u.length; m += 1) p[m + f.length] = u[m]; return p; }, i = function(f, u) { for (var p = [], y = u, m = 0; y < f.length; y += 1, m += 1) p[m] = f[y]; return p; }, c = function(l, f) { for (var u = "", p = 0; p < l.length; p += 1) u += l[p], p + 1 < l.length && (u += f); return u; }; return Ve = function(f) { var u = this; if (typeof u != "function" || e.apply(u) !== n) throw new TypeError(r + u); for (var p = i(arguments, 1), y, m = function() { if (this instanceof y) { var g = u.apply( this, a(p, arguments) ); return Object(g) === g ? g : this; } return u.apply( f, a(p, arguments) ); }, h = t(0, u.length - p.length), v = [], P = 0; P < h; P++) v[P] = "$" + P; if (y = Function("binder", "return function (" + c(v, ",") + "){ return binder.apply(this,arguments); }")(m), u.prototype) { var C = function() { }; C.prototype = u.prototype, y.prototype = new C(), C.prototype = null; } return y; }, Ve; } var ze, Hr; function Fe() { if (Hr) return ze; Hr = 1; var r = Sa(); return ze = Function.prototype.bind || r, ze; } var He, Yr; function gr() { return Yr || (Yr = 1, He = Function.prototype.call), He; } var Ye, Kr; function bt() { return Kr || (Kr = 1, Ye = Function.prototype.apply), Ye; } var ba = typeof Reflect < "u" && Reflect && Reflect.apply, Aa = Fe(), Ea = bt(), Oa = gr(), Pa = ba, $a = Pa || Aa.call(Oa, Ea), wa = Fe(), Ra = ce, Ca = gr(), Ta = $a, At = function(e) { if (e.length < 1 || typeof e[0] != "function") throw new Ra("a function is required"); return Ta(wa, Ca, e); }, Ke, Qr; function _a() { if (Qr) return Ke; Qr = 1; var r = At, e = gt, t; try { t = /** @type {{ __proto__?: typeof Array.prototype }} */ [].__proto__ === Array.prototype; } catch (c) { if (!c || typeof c != "object" || !("code" in c) || c.code !== "ERR_PROTO_ACCESS") throw c; } var n = !!t && e && e( Object.prototype, /** @type {keyof typeof Object.prototype} */ "__proto__" ), a = Object, i = a.getPrototypeOf; return Ke = n && typeof n.get == "function" ? r([n.get]) : typeof i == "function" ? ( /** @type {import('./get')} */ function(l) { return i(l == null ? l : a(l)); } ) : !1, Ke; } var Qe, Jr; function Ia() { if (Jr) return Qe; Jr = 1; var r = ht(), e = St(), t = _a(); return Qe = r ? function(a) { return r(a); } : e ? function(a) { if (!a || typeof a != "object" && typeof a != "function") throw new TypeError("getProto: not an object"); return e(a); } : t ? function(a) { return t(a); } : null, Qe; } var Je, Xr; function Na() { if (Xr) return Je; Xr = 1; var r = Function.prototype.call, e = Object.prototype.hasOwnProperty, t = Fe(); return Je = t.call(r, e), Je; } var S, xa = vt, Fa = ea, Ma = ra, Da = ta, La = na, le = aa, ae = ce, Ba = oa, Ua = ia, qa = la, Wa = ua, ka = ca, Ga = fa, ja = sa, Va = da, Et = Function, Xe = function(r) { try { return Et('"use strict"; return (' + r + ").constructor;")(); } catch { } }, me = gt, za = va, Ze = function() { throw new ae(); }, Ha = me ? function() { try { return arguments.callee, Ze; } catch { try { return me(arguments, "callee").get; } catch { return Ze; } } }() : Ze, re = ha()(), R = Ia(), Ya = St(), Ka = ht(), Ot = bt(), ve = gr(), ne = {}, Qa = typeof Uint8Array > "u" || !R ? S : R(Uint8Array), J = { __proto__: null, "%AggregateError%": typeof AggregateError > "u" ? S : AggregateError, "%Array%": Array, "%ArrayBuffer%": typeof ArrayBuffer > "u" ? S : ArrayBuffer, "%ArrayIteratorPrototype%": re && R ? R([][Symbol.iterator]()) : S, "%AsyncFromSyncIteratorPrototype%": S, "%AsyncFunction%": ne, "%AsyncGenerator%": ne, "%AsyncGeneratorFunction%": ne, "%AsyncIteratorPrototype%": ne, "%Atomics%": typeof Atomics > "u" ? S : Atomics, "%BigInt%": typeof BigInt > "u" ? S : BigInt, "%BigInt64Array%": typeof BigInt64Array > "u" ? S : BigInt64Array, "%BigUint64Array%": typeof BigUint64Array > "u" ? S : BigUint64Array, "%Boolean%": Boolean, "%DataView%": typeof DataView > "u" ? S : DataView, "%Date%": Date, "%decodeURI%": decodeURI, "%decodeURIComponent%": decodeURIComponent, "%encodeURI%": encodeURI, "%encodeURIComponent%": encodeURIComponent, "%Error%": Fa, "%eval%": eval, // eslint-disable-line no-eval "%EvalError%": Ma, "%Float16Array%": typeof Float16Array > "u" ? S : Float16Array, "%Float32Array%": typeof Float32Array > "u" ? S : Float32Array, "%Float64Array%": typeof Float64Array > "u" ? S : Float64Array, "%FinalizationRegistry%": typeof FinalizationRegistry > "u" ? S : FinalizationRegistry, "%Function%": Et, "%GeneratorFunction%": ne, "%Int8Array%": typeof Int8Array > "u" ? S : Int8Array, "%Int16Array%": typeof Int16Array > "u" ? S : Int16Array, "%Int32Array%": typeof Int32Array > "u" ? S : Int32Array, "%isFinite%": isFinite, "%isNaN%": isNaN, "%IteratorPrototype%": re && R ? R(R([][Symbol.iterator]())) : S, "%JSON%": typeof JSON == "object" ? JSON : S, "%Map%": typeof Map > "u" ? S : Map, "%MapIteratorPrototype%": typeof Map > "u" || !re || !R ? S : R((/* @__PURE__ */ new Map())[Symbol.iterator]()), "%Math%": Math, "%Number%": Number, "%Object%": xa, "%Object.getOwnPropertyDescriptor%": me, "%parseFloat%": parseFloat, "%parseInt%": parseInt, "%Promise%": typeof Promise > "u" ? S : Promise, "%Proxy%": typeof Proxy > "u" ? S : Proxy, "%RangeError%": Da, "%ReferenceError%": La, "%Reflect%": typeof Reflect > "u" ? S : Reflect, "%RegExp%": RegExp, "%Set%": typeof Set > "u" ? S : Set, "%SetIteratorPrototype%": typeof Set > "u" || !re || !R ? S : R((/* @__PURE__ */ new Set())[Symbol.iterator]()), "%SharedArrayBuffer%": typeof SharedArrayBuffer > "u" ? S : SharedArrayBuffer, "%String%": String, "%StringIteratorPrototype%": re && R ? R(""[Symbol.iterator]()) : S, "%Symbol%": re ? Symbol : S, "%SyntaxError%": le, "%ThrowTypeError%": Ha, "%TypedArray%": Qa, "%TypeError%": ae, "%Uint8Array%": typeof Uint8Array > "u" ? S : Uint8Array, "%Uint8ClampedArray%": typeof Uint8ClampedArray > "u" ? S : Uint8ClampedArray, "%Uint16Array%": typeof Uint16Array > "u" ? S : Uint16Array, "%Uint32Array%": typeof Uint32Array > "u" ? S : Uint32Array, "%URIError%": Ba, "%WeakMap%": typeof WeakMap > "u" ? S : WeakMap, "%WeakRef%": typeof WeakRef > "u" ? S : WeakRef, "%WeakSet%": typeof WeakSet > "u" ? S : WeakSet, "%Function.prototype.call%": ve, "%Function.prototype.apply%": Ot, "%Object.defineProperty%": za, "%Object.getPrototypeOf%": Ya, "%Math.abs%": Ua, "%Math.floor%": qa, "%Math.max%": Wa, "%Math.min%": ka, "%Math.pow%": Ga, "%Math.round%": ja, "%Math.sign%": Va, "%Reflect.getPrototypeOf%": Ka }; if (R) try { null.error; } catch (r) { var Ja = R(R(r)); J["%Error.prototype%"] = Ja; } var Xa = function r(e) { var t; if (e === "%AsyncFunction%") t = Xe("async function () {}"); else if (e === "%GeneratorFunction%") t = Xe("function* () {}"); else if (e === "%AsyncGeneratorFunction%") t = Xe("async function* () {}"); else if (e === "%AsyncGenerator%") { var n = r("%AsyncGeneratorFunction%"); n && (t = n.prototype); } else if (e === "%AsyncIteratorPrototype%") { var a = r("%AsyncGenerator%"); a && R && (t = R(a.prototype)); } return J[e] = t, t; }, Zr = { __proto__: null, "%ArrayBufferPrototype%": ["ArrayBuffer", "prototype"], "%ArrayPrototype%": ["Array", "prototype"], "%ArrayProto_entries%": ["Array", "prototype", "entries"], "%ArrayProto_forEach%": ["Array", "prototype", "forEach"], "%ArrayProto_keys%": ["Array", "prototype", "keys"], "%ArrayProto_values%": ["Array", "prototype", "values"], "%AsyncFunctionPrototype%": ["AsyncFunction", "prototype"], "%AsyncGenerator%": ["AsyncGeneratorFunction", "prototype"], "%AsyncGeneratorPrototype%": ["AsyncGeneratorFunction", "prototype", "prototype"], "%BooleanPrototype%": ["Boolean", "prototype"], "%DataViewPrototype%": ["DataView", "prototype"], "%DatePrototype%": ["Date", "prototype"], "%ErrorPrototype%": ["Error", "prototype"], "%EvalErrorPrototype%": ["EvalError", "prototype"], "%Float32ArrayPrototype%": ["Float32Array", "prototype"], "%Float64ArrayPrototype%": ["Float64Array", "prototype"], "%FunctionPrototype%": ["Function", "prototype"], "%Generator%": ["GeneratorFunction", "prototype"], "%GeneratorPrototype%": ["GeneratorFunction", "prototype", "prototype"], "%Int8ArrayPrototype%": ["Int8Array", "prototype"], "%Int16ArrayPrototype%": ["Int16Array", "prototype"], "%Int32ArrayPrototype%": ["Int32Array", "prototype"], "%JSONParse%": ["JSON", "parse"], "%JSONStringify%": ["JSON", "stringify"], "%MapPrototype%": ["Map", "prototype"], "%NumberPrototype%": ["Number", "prototype"], "%ObjectPrototype%": ["Object", "prototype"], "%ObjProto_toString%": ["Object", "prototype", "toString"], "%ObjProto_valueOf%": ["Object", "prototype", "valueOf"], "%PromisePrototype%": ["Promise", "prototype"], "%PromiseProto_then%": ["Promise", "prototype", "then"], "%Promise_all%": ["Promise", "all"], "%Promise_reject%": ["Promise", "reject"], "%Promise_resolve%": ["Promise", "resolve"], "%RangeErrorPrototype%": ["RangeError", "prototype"], "%ReferenceErrorPrototype%": ["ReferenceError", "prototype"], "%RegExpPrototype%": ["RegExp", "prototype"], "%SetPrototype%": ["Set", "prototype"], "%SharedArrayBufferPrototype%": ["SharedArrayBuffer", "prototype"], "%StringPrototype%": ["String", "prototype"], "%SymbolPrototype%": ["Symbol", "prototype"], "%SyntaxErrorPrototype%": ["SyntaxError", "prototype"], "%TypedArrayPrototype%": ["TypedArray", "prototype"], "%TypeErrorPrototype%": ["TypeError", "prototype"], "%Uint8ArrayPrototype%": ["Uint8Array", "prototype"], "%Uint8ClampedArrayPrototype%": ["Uint8ClampedArray", "prototype"], "%Uint16ArrayPrototype%": ["Uint16Array", "prototype"], "%Uint32ArrayPrototype%": ["Uint32Array", "prototype"], "%URIErrorPrototype%": ["URIError", "prototype"], "%WeakMapPrototype%": ["WeakMap", "prototype"], "%WeakSetPrototype%": ["WeakSet", "prototype"] }, ge = Fe(), Te = Na(), Za = ge.call(ve, Array.prototype.concat), eo = ge.call(Ot, Array.prototype.splice), et = ge.call(ve, String.prototype.replace), _e = ge.call(ve, String.prototype.slice), ro = ge.call(ve, RegExp.prototype.exec), to = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, no = /\\(\\)?/g, ao = function(e) { var t = _e(e, 0, 1), n = _e(e, -1); if (t === "%" && n !== "%") throw new le("invalid intrinsic syntax, expected closing `%`"); if (n === "%" && t !== "%") throw new le("invalid intrinsic syntax, expected opening `%`"); var a = []; return et(e, to, function(i, c, l, f) { a[a.length] = l ? et(f, no, "$1") : c || i; }), a; }, oo = function(e, t) { var n = e, a; if (Te(Zr, n) && (a = Zr[n], n = "%" + a[0] + "%"), Te(J, n)) { var i = J[n]; if (i === ne && (i = Xa(n)), typeof i > "u" && !t) throw new ae("intrinsic " + e + " exists, but is not available. Please file an issue!"); return { alias: a, name: n, value: i }; } throw new le("intrinsic " + e + " does not exist!"); }, hr = function(e, t) { if (typeof e != "string" || e.length === 0) throw new ae("intrinsic name must be a non-empty string"); if (arguments.length > 1 && typeof t != "boolean") throw new ae('"allowMissing" argument must be a boolean'); if (ro(/^%?[^%]*%?$/, e) === null) throw new le("`%` may not be present anywhere but at the beginning and end of the intrinsic name"); var n = ao(e), a = n.length > 0 ? n[0] : "", i = oo("%" + a + "%", t), c = i.name, l = i.value, f = !1, u = i.alias; u && (a = u[0], eo(n, Za([0, 1], u))); for (var p = 1, y = !0; p < n.length; p += 1) { var m = n[p], h = _e(m, 0, 1), v = _e(m, -1); if ((h === '"' || h === "'" || h === "`" || v === '"' || v === "'" || v === "`") && h !== v) throw new le("property names with quotes must have matching quotes"); if ((m === "constructor" || !y) && (f = !0), a += "." + m, c = "%" + a + "%", Te(J, c)) l = J[c]; else if (l != null) { if (!(m in l)) { if (!t) throw new ae("base intrinsic for " + e + " exists, but the property is not available."); return; } if (me && p + 1 >= n.length) { var P = me(l, m); y = !!P, y && "get" in P && !("originalValue" in P.get) ? l = P.get : l = l[m]; } else y = Te(l, m), l = l[m]; y && !f && (J[c] = l); } } return l; }, Pt = hr, $t = At, io = $t([Pt("%String.prototype.indexOf%")]), wt = function(e, t) { var n = ( /** @type {(this: unknown, ...args: unknown[]) => unknown} */ Pt(e, !!t) ); return typeof n == "function" && io(e, ".prototype.") > -1 ? $t( /** @type {const} */ [n] ) : n; }, lo = hr, he = wt, uo = Ne, co = ce, rt = lo("%Map%", !0), fo = he("Map.prototype.get", !0), so = he("Map.prototype.set", !0), po = he("Map.prototype.has", !0), yo = he("Map.prototype.delete", !0), mo = he("Map.prototype.size", !0), Rt = !!rt && /** @type {Exclude<import('.'), false>} */ function() { var e, t = { assert: function(n) { if (!t.has(n)) throw new co("Side channel does not contain " + uo(n)); }, delete: function(n) { if (e) { var a = yo(e, n); return mo(e) === 0 && (e = void 0), a; } return !1; }, get: function(n) { if (e) return fo(e, n); }, has: function(n) { return e ? po(e, n) : !1; }, set: function(n, a) { e || (e = new rt()), so(e, n, a); } }; return t; }, vo = hr, Me = wt, go = Ne, Oe = Rt, ho = ce, te = vo("%WeakMap%", !0), So = Me("WeakMap.prototype.get", !0), bo = Me("WeakMap.prototype.set", !0), Ao = Me("WeakMap.prototype.has", !0), Eo = Me("WeakMap.prototype.delete", !0), Oo = te ? ( /** @type {Exclude<import('.'), false>} */ function() { var e, t, n = { assert: function(a) { if (!n.has(a)) throw new ho("Side channel does not contain " + go(a)); }, delete: function(a) { if (te && a && (typeof a == "object" || typeof a == "function")) { if (e) return Eo(e, a); } else if (Oe && t) return t.delete(a); return !1; }, get: function(a) { return te && a && (typeof a == "object" || typeof a == "function") && e ? So(e, a) : t && t.get(a); }, has: function(a) { return te && a && (typeof a == "object" || typeof a == "function") && e ? Ao(e, a) : !!t && t.has(a); }, set: function(a, i) { te && a && (typeof a == "object" || typeof a == "function") ? (e || (e = new te()), bo(e, a, i)) : Oe && (t || (t = Oe()), t.set(a, i)); } }; return n; } ) : Oe, Po = ce, $o = Ne, wo = Zn, Ro = Rt, Co = Oo, To = Co || Ro || wo, _o = function() { var e, t = { assert: function(n) { if (!t.has(n)) throw new Po("Side channel does not contain " + $o(n)); }, delete: function(n) { return !!e && e.delete(n); }, get: function(n) { return e && e.get(n); }, has: function(n) { return !!e && e.has(n); }, set: function(n, a) { e || (e = To()), e.set(n, a); } }; return t; }, Io = String.prototype.replace, No = /%20/g, er = { RFC1738: "RFC1738", RFC3986: "RFC3986" }, Sr = { default: er.RFC3986, formatters: { RFC1738: function(r) { return Io.call(r, No, "+"); }, RFC3986: function(r) { return String(r); } }, RFC1738: er.RFC1738, RFC3986: er.RFC3986 }, xo = Sr, rr = Object.prototype.hasOwnProperty, Q = Array.isArray, D = function() { for (var r = [], e = 0; e < 256; ++e) r.push("%" + ((e < 16 ? "0" : "") + e.toString(16)).toUpperCase()); return r; }(), Fo = function(e) { for (; e.length > 1; ) { var t = e.pop(), n = t.obj[t.prop]; if (Q(n)) { for (var a = [], i = 0; i < n.length; ++i) typeof n[i] < "u" && a.push(n[i]); t.obj[t.prop] = a; } } }, Ct = function(e, t) { for (var n = t && t.plainObjects ? /* @__PURE__ */ Object.create(null) : {}, a = 0; a < e.length; ++a) typeof e[a] < "u" && (n[a] = e[a]); return n; }, Mo = function r(e, t, n) { if (!t) return e; if (typeof t != "object") { if (Q(e)) e.push(t); else if (e && typeof e == "object") (n && (n.plainObjects || n.allowPrototypes) || !rr.call(Object.prototype, t)) && (e[t] = !0); else return [e, t]; return e; } if (!e || typeof e != "object") return [e].concat(t); var a = e; return Q(e) && !Q(t) && (a = Ct(e, n)), Q(e) && Q(t) ? (t.forEach(function(i, c) { if (rr.call(e, c)) { var l = e[c]; l && typeof l == "object" && i && typeof i == "object" ? e[c] = r(l, i, n) : e.push(i); } else e[c] = i; }), e) : Object.keys(t).reduce(function(i, c) { var l = t[c]; return rr.call(i, c) ? i[c] = r(i[c], l, n) : i[c] = l, i; }, a); }, Do = function(e, t) { return Object.keys(t).reduce(function(n, a) { return n[a] = t[a], n; }, e); }, Lo = function(r, e, t) { var n = r.replace(/\+/g, " "); if (t === "iso-8859-1") return n.replace(/%[0-9a-f]{2}/gi, unescape); try { return decodeURIComponent(n); } catch { return n; } }, Bo = function(e, t, n, a, i) { if (e.length === 0) return e; var c = e; if (typeof e == "symbol" ? c = Symbol.prototype.toString.call(e) : typeof e != "string" && (c = String(e)), n === "iso-8859-1") return escape(c).replace(/%u[0-9a-f]{4}/gi, function(p) { return "%26%23" + parseInt(p.slice(2), 16) + "%3B"; }); for (var l = "", f = 0; f < c.length; ++f) { var u = c.charCodeAt(f); if (u === 45 || u === 46 || u === 95 || u === 126 || u >= 48 && u <= 57 || u >= 65 && u <= 90 || u >= 97 && u <= 122 || i === xo.RFC1738 && (u === 40 || u === 41)) { l += c.charAt(f); continue; } if (u < 128) { l = l + D[u]; continue; } if (u < 2048) { l = l + (D[192 | u >> 6] + D[128 | u & 63]); continue; } if (u < 55296 || u >= 57344) { l = l + (D[224 | u >> 12] + D[128 | u >> 6 & 63] + D[128 | u & 63]); continue; } f += 1, u = 65536 + ((u & 1023) << 10 | c.charCodeAt(f) & 1023), l += D[240 | u >> 18] + D[128 | u >> 12 & 63] + D[128 | u >> 6 & 63] + D[128 | u & 63]; } return l; }, Uo = function(e) { for (var t = [{ obj: { o: e }, prop: "o" }], n = [], a = 0; a < t.length; ++a) for (var i = t[a], c = i.obj[i.prop], l = Object.keys(c), f = 0; f < l.length; ++f) { var u = l[f], p = c[u]; typeof p == "object" && p !== null && n.indexOf(p) === -1 && (t.push({ obj: c, prop: u }), n.push(p)); } return Fo(t), e; }, qo = function(e) { return Object.prototype.toString.call(e) === "[object RegExp]"; }, Wo = function(e) { return !e || typeof e != "object" ? !1 : !!(e.constructor && e.constructor.isBuffer && e.constructor.isBuffer(e)); }, ko = function(e, t) { return [].concat(e, t); }, Go = function(e, t) { if (Q(e)) { for (var n = [], a = 0; a < e.length; a += 1) n.push(t(e[a])); return n; } return t(e); }, Tt = { arrayToObject: Ct, assign: Do, combine: ko, compact: Uo, decode: Lo, encode: Bo, isBuffer: Wo, isRegExp: qo, maybeMap: Go, merge: Mo }, _t = _o, we = Tt, de = Sr, jo = Object.prototype.hasOwnProperty, tt = { brackets: function(e) { return e + "[]"; }, comma: "comma", indices: function(e, t) { return e + "[" + t + "]"; }, repeat: function(e) { return e; } }, q = Array.isArray, Vo = Array.prototype.push, It = function(r, e) { Vo.apply(r, q(e) ? e : [e]); }, zo = Date.prototype.toISOString, nt = de.default, T = { addQueryPrefix: !1, allowDots: !1, charset: "utf-8", charsetSentinel: !1, delimiter: "&", encode: !0, encoder: we.encode, encodeValuesOnly: !1, format: nt, formatter: de.formatters[nt], // deprecated indices: !1, serializeDate: function(e) { return zo.call(e); }, skipNulls: !1, strictNullHandling: !1 }, Ho = function(e) { return typeof e == "string" || typeof e == "number" || typeof e == "boolean" || typeof e == "symbol" || typeof e == "bigint"; }, tr = {}, Yo = function r(e, t, n, a, i, c, l, f, u, p, y, m, h, v, P, C) { for (var g = e, I = C, O = 0, $ = !1; (I = I.get(tr)) !== void 0 && !$; ) { var s = I.get(e); if (O += 1, typeof s < "u") { if (s === O) throw new RangeError("Cyclic object value"); $ = !0; } typeof I.get(tr) > "u" && (O = 0); } if (typeof f == "function" ? g = f(t, g) : g instanceof Date ? g = y(g) : n === "comma" && q(g) && (g = we.maybeMap(g, function(j) { return j instanceof Date ? y(j) : j; })), g === null) { if (i) return l && !v ? l(t, T.encoder, P, "key", m) : t; g = ""; } if (Ho(g) || we.isBuffer(g)) { if (l) { var F = v ? t : l(t, T.encoder, P, "key", m); return [h(F) + "=" + h(l(g, T.encoder, P, "value", m))]; } return [h(t) + "=" + h(String(g))]; } var B = []; if (typeof g > "u") return B; var M; if (n === "comma" && q(g)) v && l && (g = we.maybeMap(g, l)), M = [{ value: g.length > 0 ? g.join(",") || null : void 0 }]; else if (q(f)) M = f; else { var W = Object.keys(g); M = u ? W.sort(u) : W; } for (var k = a && q(g) && g.length === 1 ? t + "[]" : t, K = 0; K < M.length; ++K) { var N = M[K], x = typeof N == "object" && typeof N.value < "u" ? N.value : g[N]; if (!(c && x === null)) { var G = q(g) ? typeof n == "function" ? n(k, N) : k : k + (p ? "." + N : "[" + N + "]"); C.set(e, O); var Z = _t(); Z.set(tr, C), It(B, r( x, G, n, a, i, c, n === "comma" && v && q(g) ? null : l, f, u, p, y, m, h, v, P, Z )); } } return B; }, Ko = function(e) { if (!e) return T; if (e.encoder !== null && typeof e.encoder < "u" && typeof e.encoder != "function") throw new TypeError("Encoder has to be a function."); var t = e.charset || T.charset; if (typeof e.charset < "u" && e.charset !== "utf-8" && e.charset !== "iso-8859-1") throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined"); var n = de.default; if (typeof e.format < "u") { if (!jo.call(de.formatters, e.format)) throw new TypeError("Unknown format option provided."); n = e.format; } var a = de.formatters[n], i = T.filter; return (typeof e.filter == "function" || q(e.filter)) && (i = e.filter), { addQueryPrefix: typeof e.addQueryPrefix == "boolean" ? e.addQueryPrefix : T.addQueryPrefix, allowDots: typeof e.allowDots > "u" ? T.allowDots : !!e.allowDots, charset: t, charsetSentinel: typeof e.charsetSentinel == "boolean" ? e.charsetSentinel : T.charsetSentinel, delimiter: typeof e.delimiter > "u" ? T.delimiter : e.delimiter, encode: typeof e.encode == "boolean" ? e.encode : T.encode, encoder: typeof e.encoder == "function" ? e.encoder : T.encoder, encodeValuesOnly: typeof e.encodeValuesOnly == "boolean" ? e.encodeValuesOnly : T.encodeValuesOnly, filter: i, format: n, formatter: a, serializeDate: typeof e.serializeDate == "function" ? e.serializeDate : T.serializeDate, skipNulls: typeof e.skipNulls == "boolean" ? e.skipNulls : T.skipNulls, sort: typeof e.sort == "function" ? e.sort : null, strictNullHandling: typeof e.strictNullHandling == "boolean" ? e.strictNullHandling : T.strictNullHandling }; }, Qo = function(r, e) { var t = r, n = Ko(e), a, i; typeof n.filter == "function" ? (i = n.filter, t = i("", t)) : q(n.filter) && (i = n.filter, a = i); var c = []; if (typeof t != "object" || t === null) return ""; var l; e && e.arrayFormat in tt ? l = e.arrayFormat : e && "indices" in e ? l = e.indices ? "indices" : "repeat" : l = "indices"; var f = tt[l]; if (e && "commaRoundTrip" in e && typeof e.commaRoundTrip != "boolean") throw new TypeError("`commaRoundTrip` must be a boolean, or absent"); var u = f === "comma" && e && e.commaRoundTrip; a || (a = Object.keys(t)), n.sort && a.sort(n.sort); for (var p = _t(), y = 0; y < a.length; ++y) { var m = a[y]; n.skipNulls && t[m] === null || It(c, Yo( t[m], m, f, u, n.strictNullHandling, n.skipNulls, n.encode ? n.encoder : null, n.filter, n.sort, n.allowDots, n.serializeDate, n.format, n.formatter, n.encodeValuesOnly, n.charset, p )); } var h = c.join(n.delimiter), v = n.addQueryPrefix === !0 ? "?" : ""; return n.charsetSentinel && (n.charset === "iso-8859-1" ? v += "utf8=%26%2310003%3B&" : v += "utf8=%E2%9C%93&"), h.length > 0 ? v + h : ""; }, ue = Tt, cr = Object.prototype.hasOwnProperty, Jo = Array.isArray, w = { allowDots: !1, allowPrototypes: !1, allowSparse: !1, arrayLimit: 20, charset: "utf-8", charsetSentinel: !1, comma: !1, decoder: ue.decode, delimiter: "&", depth: 5, ignoreQueryPrefix: !1, interpretNumericEntities: !1, parameterLimit: 1e3, parseArrays: !0, plainObjects: !1, strictNullHandling: !1 }, Xo = function(r) { return r.replace(/&#(\d+);/g, function(e, t) { return String.fromCharCode(parseInt(t, 10)); }); }, Nt = function(r, e) { return r && typeof r == "string" && e.comma && r.indexOf(",") > -1 ? r.split(",") : r; }, Zo = "utf8=%26%2310003%3B", ei = "utf8=%E2%9C%93", ri = function(e, t) { var n = {}, a = t.ignoreQueryPrefix ? e.replace(/^\?/, "") : e, i = t.parameterLimit === 1 / 0 ? void 0 : t.parameterLimit, c = a.split(t.delimiter, i), l = -1, f, u = t.charset; if (t.charsetSentinel) for (f = 0; f < c.length; ++f) c[f].indexOf("utf8=") === 0 && (c[f] === ei ? u = "utf-8" : c[f] === Zo && (u = "iso-8859-1"), l = f, f = c.length); for (f = 0; f < c.length; ++f) if (f !== l) { var p = c[f], y = p.indexOf("]="), m = y === -1 ? p.indexOf("=") : y + 1, h, v; m === -1 ? (h = t.decoder(p, w.decoder, u, "key"), v = t.strictNullHandling ? null : "") : (h = t.decoder(p.slice(0, m), w.decoder, u, "key"), v = ue.maybeMap( Nt(p.slice(m + 1), t), function(P) { return t.decoder(P, w.decoder, u, "value"); } )), v && t.interpretNumericEntities && u === "iso-8859-1" && (v = Xo(v)), p.indexOf("[]=") > -1 && (v = Jo(v) ? [v] : v), cr.call(n, h) ? n[h] = ue.combine(n[h], v) : n[h] = v; } return n; }, ti = function(r, e, t, n) { for (var a = n ? e : Nt(e, t), i = r.length - 1; i >= 0; --i) { var c, l = r[i]; if (l === "[]" && t.parseArrays) c = [].concat(a); else { c = t.plainObjects ? /* @__PURE__ */ Object.create(null) : {}; var f = l.charAt(0) === "[" && l.charAt(l.length - 1) === "]" ? l.slice(1, -1) : l, u = parseInt(f, 10); !t.parseArrays && f === "" ? c = { 0: a } : !isNaN(u) && l !== f && String(u) === f && u >= 0 && t.parseArrays && u <= t.arrayLimit ? (c = [], c[u] = a) : f !== "__proto__" && (c[f] = a); } a = c; } return a; }, ni = function(e, t, n, a) { if (e) { var i = n.allowDots ? e.replace(/\.([^.[]+)/g, "[$1]") : e, c = /(\[[^[\]]*])/, l = /(\[[^[\]]*])/g, f = n.depth > 0 && c.exec(i), u = f ? i.slice(0, f.index) : i, p = []; if (u) { if (!n.plainObjects && cr.call(Object.prototype, u) && !n.allowPrototypes) return; p.push(u); } for (var y = 0; n.depth > 0 && (f = l.exec(i)) !== null && y < n.depth; ) { if (y += 1, !n.plainObjects && cr.call(Object.prototype, f[1].slice(1, -1)) && !n.allowPrototypes) return; p.push(f[1]); } return f && p.push("[" + i.slice(f.index) + "]"), ti(p, t, n, a); } }, ai = function(e) { if (!e) return w; if (e.decoder !== null && e.decoder !== void 0 && typeof e.decoder != "function") throw new TypeError("Decoder has to be a function."); if (typeof e.charset < "u" && e.charset !== "utf-8" && e.charset !== "iso-8859-1") throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined"); var t = typeof e.charset > "u" ? w.charset : e.charset; return { allowDots: typeof e.allowDots > "u" ? w.allowDots : !!e.allowDots, allowPrototypes: typeof e.allowPrototypes == "boolean" ? e.allowPrototypes : w.allowPrototypes, allowSparse: typeof e.allowSparse == "boolean" ? e.allowSparse : w.allowSparse, arrayLimit: typeof e.arrayLimit == "number" ? e.arrayLimit : w.arrayLimit, charset: t, charsetSentinel: typeof e.charsetSentinel == "boolean" ? e.charsetSentinel : w.charsetSentinel, comma: typeof e.comma == "boolean" ? e.comma : w.comma, decoder: typeof e.decoder == "function" ? e.decoder : w.decoder, delimiter: typeof e.delimiter == "string" || ue.isRegExp(e.delimiter) ? e.delimiter : w.delimiter, // eslint-disable-next-line no-implicit-coercion, no-extra-parens depth: typeof e.depth == "number" || e.depth === !1 ? +e.depth : w.depth, ignoreQueryPrefix: e.ignoreQueryPrefix === !0, interpretNumericEntities: typeof e.interpretNumericEntities == "boolean" ? e.interpretNumericEntities : w.interpretNumericEntities, parameterLimit: typeof e.parameterLimit == "number" ? e.parameterLimit : w.parameterLimit, parseArrays: e.parseArrays !== !1, plainObjects: typeof e.plainObjects == "boolean" ? e.plainObjects : w.plainObjects, strictNullHandling: typeof e.strictNullHandling == "boolean" ? e.strictNullHandling : w.strictNullHandling }; }, oi = function(r, e) { var t = ai(e); if (r === "" || r === null || typeof r > "u") return t.plainObjects ? /* @__PURE__ */ Object.create(null) : {}; for (var n = typeof r == "string" ? ri(r, t) : r, a = t.plainObjects ? /* @__PURE__ */ Object.create(null) : {}, i = Object.keys(n), c = 0; c < i.length; ++c) { var l = i[c], f = ni(l, n[l], t, typeof r == "string"); a = ue.merge(a, f, t); } return t.allowSparse === !0 ? a : ue.compact(a); }, ii = Qo, li = oi, ui = Sr, nr = { formats: ui, parse: li, stringify: ii }; const xt = { PENDING: "PENDING", APPROVED: "APPROVED", REJECTED: "REJECTED" }, ji = { ...xt, BLOCKED: "BLOCKED", OPEN: "OPEN", RESOLVED: "RESOLVED" }; var ci = /* @__PURE__ */ ((r) => (r.BAD_LANGUAGE = "BAD_LANGUAGE", r.DISCRIMINATION = "DISCRIMINATION", r.OTHER = "OTHER", r))(ci || {}); const z = { ...xt, BLOCKED: "BLOCKED", OPEN: "OPEN", REMOVED: "REMOVED", TO_REVIEW: "TO_REVIEW", UNKNOWN: "UNKNOWN" }, fi = o.object({ entryLabel: o.record(o.array(o.string())), approvalFlow: o.array(o.string()), blockedAuthorProps: o.array(o.string()), reportReasons: o.object({ BAD_LANGUAGE: o.literal("BAD_LANGUAGE"), DISCRIMINATION: o.literal("DISCRIMINATION"), OTHER: o.literal("OTHER") }), regex: o.object({ uid: o.string(), relatedUid: o.string(), email: o.string(), sorting: o.string() }), enabledCollections: o.array(o.string()), moderatorRoles: o.array(o.string()), isGQLPluginEnabled: o.boolean(), badWords: o.boolean().nullable().optional(), gql: o.object({ auth: o.boolean().nullable() }).optional(), client: o.object({ url: o.string().nullable(), contactEmail: o.string().nullable() }).default({ url: null, contactEmail: null }) }), Ft = o.intersection( o.object({ id: o.number(), uid: o.string(), documentId: o.string(), createdAt: o.string(), updatedAt: o.string(), publishedAt: o.string().nullable(), locale: o.string().nullable().optional() }), o.record(o.unknown()) ), si = o.object({ id: o.union([o.number(), o.string()]), name: o.string().optional().nullable(), email: o.string(), avatar: o.union([ o.object({ url: o.string() }), o.object({ url: o.string(), formats: o.object({ thumbnail: o.object({ url: o.string() }).nullable() }) }), o.string() ]).nullable().optional() }), Mt = o.union([ o.literal(z.PENDING), o.literal(z.APPROVED), o.literal(z.REJECTED), o.literal(z.BLOCKED), o.literal(z.OPEN), o.literal(z.REMOVED), o.literal(z.TO_REVIEW), o.literal(z.UNKNOWN) ]), Dt = o.union([ o.literal("BAD_LANGUAGE"), o.literal("DISCRIMINATION"), o.literal("OTHER") ]), pi = o.object({ id: o.number(), reason: Dt, content: o.string(), resolved: o.boolean(), createdAt: o.string(), updatedAt: o.string().nullable() }), Ie = o.object({ id: o.number(), content: o.string(), blocked: o.boolean().nullable(), blockedThread: o.boolean().nullable(), blockReason: o.string().nullable(), isAdminComment: o.boolean().nullable(), removed: o.boolean().nullable(), approvalStatus: Mt.nullable(), createdAt: o.string(), updatedAt: o.string(), reports: o.array(pi).nullable().optional(), author: si, gotThread: o.boolean().nullable().optional(), threadFirstItemId: o.number().nullable().optional() }), Lt = o.object({ page: o.number(), pageSize: o.number(), pageCount: o.number(),