@cyntler/react-doc-viewer
Version:
File viewer for React.
1,512 lines • 117 kB
JavaScript
import { c as V, a as br, d as on, p as U, B as ce, g as an } from "./index-T_8wxLyc.js";
import { u as fn } from "./url-DQYFKQ_E.js";
function un(e, t) {
for (var r = 0; r < t.length; r++) {
const n = t[r];
if (typeof n != "string" && !Array.isArray(n)) {
for (const i in n)
if (i !== "default" && !(i in e)) {
const c = Object.getOwnPropertyDescriptor(n, i);
c && Object.defineProperty(e, i, c.get ? c : {
enumerable: !0,
get: () => n[i]
});
}
}
}
return Object.freeze(Object.defineProperty(e, Symbol.toStringTag, { value: "Module" }));
}
var Tt = {}, mr = { exports: {} }, Ot = {};
(function(e) {
e.fetch = i(V.fetch) && i(V.ReadableStream), e.writableStream = i(V.WritableStream), e.abortController = i(V.AbortController);
var t;
function r() {
if (t !== void 0)
return t;
if (V.XMLHttpRequest) {
t = new V.XMLHttpRequest();
try {
t.open("GET", V.XDomainRequest ? "/" : "https://example.com");
} catch {
t = null;
}
} else
t = null;
return t;
}
function n(c) {
var l = r();
if (!l)
return !1;
try {
return l.responseType = c, l.responseType === c;
} catch {
}
return !1;
}
e.arraybuffer = e.fetch || n("arraybuffer"), e.msstream = !e.fetch && n("ms-stream"), e.mozchunkedarraybuffer = !e.fetch && n("moz-chunked-arraybuffer"), e.overrideMimeType = e.fetch || (r() ? i(r().overrideMimeType) : !1);
function i(c) {
return typeof c == "function";
}
t = null;
})(Ot);
var vt = { exports: {} };
typeof Object.create == "function" ? vt.exports = function(t, r) {
r && (t.super_ = r, t.prototype = Object.create(r.prototype, {
constructor: {
value: t,
enumerable: !1,
writable: !0,
configurable: !0
}
}));
} : vt.exports = function(t, r) {
if (r) {
t.super_ = r;
var n = function() {
};
n.prototype = r.prototype, t.prototype = new n(), t.prototype.constructor = t;
}
};
var le = vt.exports, xe = {}, bt = { exports: {} }, Pt = { exports: {} }, Se = typeof Reflect == "object" ? Reflect : null, Wt = Se && typeof Se.apply == "function" ? Se.apply : function(t, r, n) {
return Function.prototype.apply.call(t, r, n);
}, Ne;
Se && typeof Se.ownKeys == "function" ? Ne = Se.ownKeys : Object.getOwnPropertySymbols ? Ne = function(t) {
return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t));
} : Ne = function(t) {
return Object.getOwnPropertyNames(t);
};
function sn(e) {
console && console.warn && console.warn(e);
}
var _r = Number.isNaN || function(t) {
return t !== t;
};
function H() {
H.init.call(this);
}
Pt.exports = H;
Pt.exports.once = pn;
H.EventEmitter = H;
H.prototype._events = void 0;
H.prototype._eventsCount = 0;
H.prototype._maxListeners = void 0;
var qt = 10;
function He(e) {
if (typeof e != "function")
throw new TypeError('The "listener" argument must be of type Function. Received type ' + typeof e);
}
Object.defineProperty(H, "defaultMaxListeners", {
enumerable: !0,
get: function() {
return qt;
},
set: function(e) {
if (typeof e != "number" || e < 0 || _r(e))
throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received ' + e + ".");
qt = e;
}
});
H.init = function() {
(this._events === void 0 || this._events === Object.getPrototypeOf(this)._events) && (this._events = /* @__PURE__ */ Object.create(null), this._eventsCount = 0), this._maxListeners = this._maxListeners || void 0;
};
H.prototype.setMaxListeners = function(t) {
if (typeof t != "number" || t < 0 || _r(t))
throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received ' + t + ".");
return this._maxListeners = t, this;
};
function wr(e) {
return e._maxListeners === void 0 ? H.defaultMaxListeners : e._maxListeners;
}
H.prototype.getMaxListeners = function() {
return wr(this);
};
H.prototype.emit = function(t) {
for (var r = [], n = 1; n < arguments.length; n++)
r.push(arguments[n]);
var i = t === "error", c = this._events;
if (c !== void 0)
i = i && c.error === void 0;
else if (!i)
return !1;
if (i) {
var l;
if (r.length > 0 && (l = r[0]), l instanceof Error)
throw l;
var h = new Error("Unhandled error." + (l ? " (" + l.message + ")" : ""));
throw h.context = l, h;
}
var p = c[t];
if (p === void 0)
return !1;
if (typeof p == "function")
Wt(p, this, r);
else
for (var A = p.length, L = Tr(p, A), n = 0; n < A; ++n)
Wt(L[n], this, r);
return !0;
};
function Sr(e, t, r, n) {
var i, c, l;
if (He(r), c = e._events, c === void 0 ? (c = e._events = /* @__PURE__ */ Object.create(null), e._eventsCount = 0) : (c.newListener !== void 0 && (e.emit(
"newListener",
t,
r.listener ? r.listener : r
), c = e._events), l = c[t]), l === void 0)
l = c[t] = r, ++e._eventsCount;
else if (typeof l == "function" ? l = c[t] = n ? [r, l] : [l, r] : n ? l.unshift(r) : l.push(r), i = wr(e), i > 0 && l.length > i && !l.warned) {
l.warned = !0;
var h = new Error("Possible EventEmitter memory leak detected. " + l.length + " " + String(t) + " listeners added. Use emitter.setMaxListeners() to increase limit");
h.name = "MaxListenersExceededWarning", h.emitter = e, h.type = t, h.count = l.length, sn(h);
}
return e;
}
H.prototype.addListener = function(t, r) {
return Sr(this, t, r, !1);
};
H.prototype.on = H.prototype.addListener;
H.prototype.prependListener = function(t, r) {
return Sr(this, t, r, !0);
};
function ln() {
if (!this.fired)
return this.target.removeListener(this.type, this.wrapFn), this.fired = !0, arguments.length === 0 ? this.listener.call(this.target) : this.listener.apply(this.target, arguments);
}
function Er(e, t, r) {
var n = { fired: !1, wrapFn: void 0, target: e, type: t, listener: r }, i = ln.bind(n);
return i.listener = r, n.wrapFn = i, i;
}
H.prototype.once = function(t, r) {
return He(r), this.on(t, Er(this, t, r)), this;
};
H.prototype.prependOnceListener = function(t, r) {
return He(r), this.prependListener(t, Er(this, t, r)), this;
};
H.prototype.removeListener = function(t, r) {
var n, i, c, l, h;
if (He(r), i = this._events, i === void 0)
return this;
if (n = i[t], n === void 0)
return this;
if (n === r || n.listener === r)
--this._eventsCount === 0 ? this._events = /* @__PURE__ */ Object.create(null) : (delete i[t], i.removeListener && this.emit("removeListener", t, n.listener || r));
else if (typeof n != "function") {
for (c = -1, l = n.length - 1; l >= 0; l--)
if (n[l] === r || n[l].listener === r) {
h = n[l].listener, c = l;
break;
}
if (c < 0)
return this;
c === 0 ? n.shift() : cn(n, c), n.length === 1 && (i[t] = n[0]), i.removeListener !== void 0 && this.emit("removeListener", t, h || r);
}
return this;
};
H.prototype.off = H.prototype.removeListener;
H.prototype.removeAllListeners = function(t) {
var r, n, i;
if (n = this._events, n === void 0)
return this;
if (n.removeListener === void 0)
return arguments.length === 0 ? (this._events = /* @__PURE__ */ Object.create(null), this._eventsCount = 0) : n[t] !== void 0 && (--this._eventsCount === 0 ? this._events = /* @__PURE__ */ Object.create(null) : delete n[t]), this;
if (arguments.length === 0) {
var c = Object.keys(n), l;
for (i = 0; i < c.length; ++i)
l = c[i], l !== "removeListener" && this.removeAllListeners(l);
return this.removeAllListeners("removeListener"), this._events = /* @__PURE__ */ Object.create(null), this._eventsCount = 0, this;
}
if (r = n[t], typeof r == "function")
this.removeListener(t, r);
else if (r !== void 0)
for (i = r.length - 1; i >= 0; i--)
this.removeListener(t, r[i]);
return this;
};
function Ar(e, t, r) {
var n = e._events;
if (n === void 0)
return [];
var i = n[t];
return i === void 0 ? [] : typeof i == "function" ? r ? [i.listener || i] : [i] : r ? dn(i) : Tr(i, i.length);
}
H.prototype.listeners = function(t) {
return Ar(this, t, !0);
};
H.prototype.rawListeners = function(t) {
return Ar(this, t, !1);
};
H.listenerCount = function(e, t) {
return typeof e.listenerCount == "function" ? e.listenerCount(t) : Rr.call(e, t);
};
H.prototype.listenerCount = Rr;
function Rr(e) {
var t = this._events;
if (t !== void 0) {
var r = t[e];
if (typeof r == "function")
return 1;
if (r !== void 0)
return r.length;
}
return 0;
}
H.prototype.eventNames = function() {
return this._eventsCount > 0 ? Ne(this._events) : [];
};
function Tr(e, t) {
for (var r = new Array(t), n = 0; n < t; ++n)
r[n] = e[n];
return r;
}
function cn(e, t) {
for (; t + 1 < e.length; t++)
e[t] = e[t + 1];
e.pop();
}
function dn(e) {
for (var t = new Array(e.length), r = 0; r < t.length; ++r)
t[r] = e[r].listener || e[r];
return t;
}
function pn(e, t) {
return new Promise(function(r, n) {
function i(l) {
e.removeListener(t, c), n(l);
}
function c() {
typeof e.removeListener == "function" && e.removeListener("error", i), r([].slice.call(arguments));
}
Or(e, t, c, { once: !0 }), t !== "error" && hn(e, i, { once: !0 });
});
}
function hn(e, t, r) {
typeof e.on == "function" && Or(e, "error", t, r);
}
function Or(e, t, r, n) {
if (typeof e.on == "function")
n.once ? e.once(t, r) : e.on(t, r);
else if (typeof e.addEventListener == "function")
e.addEventListener(t, function i(c) {
n.once && e.removeEventListener(t, i), r(c);
});
else
throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type ' + typeof e);
}
var Pr = Pt.exports, Mr = Pr.EventEmitter;
const Ge = /* @__PURE__ */ br(on);
var Mt = {}, jr = {}, Lr = function() {
if (typeof Symbol != "function" || typeof Object.getOwnPropertySymbols != "function")
return !1;
if (typeof Symbol.iterator == "symbol")
return !0;
var t = {}, r = Symbol("test"), n = Object(r);
if (typeof r == "string" || Object.prototype.toString.call(r) !== "[object Symbol]" || Object.prototype.toString.call(n) !== "[object Symbol]")
return !1;
var i = 42;
t[r] = i;
for (r in t)
return !1;
if (typeof Object.keys == "function" && Object.keys(t).length !== 0 || typeof Object.getOwnPropertyNames == "function" && Object.getOwnPropertyNames(t).length !== 0)
return !1;
var c = Object.getOwnPropertySymbols(t);
if (c.length !== 1 || c[0] !== r || !Object.prototype.propertyIsEnumerable.call(t, r))
return !1;
if (typeof Object.getOwnPropertyDescriptor == "function") {
var l = Object.getOwnPropertyDescriptor(t, r);
if (l.value !== i || l.enumerable !== !0)
return !1;
}
return !0;
}, yn = Lr, jt = function() {
return yn() && !!Symbol.toStringTag;
}, gn = Error, vn = EvalError, bn = RangeError, mn = ReferenceError, Cr = SyntaxError, Ve = TypeError, _n = URIError, xt = typeof Symbol < "u" && Symbol, wn = Lr, Sn = function() {
return typeof xt != "function" || typeof Symbol != "function" || typeof xt("foo") != "symbol" || typeof Symbol("bar") != "symbol" ? !1 : wn();
}, Qe = {
__proto__: null,
foo: {}
}, En = Object, An = function() {
return { __proto__: Qe }.foo === Qe.foo && !(Qe instanceof En);
}, Rn = "Function.prototype.bind called on incompatible ", Tn = Object.prototype.toString, On = Math.max, Pn = "[object Function]", Ht = function(t, r) {
for (var n = [], i = 0; i < t.length; i += 1)
n[i] = t[i];
for (var c = 0; c < r.length; c += 1)
n[c + t.length] = r[c];
return n;
}, Mn = function(t, r) {
for (var n = [], i = r, c = 0; i < t.length; i += 1, c += 1)
n[c] = t[i];
return n;
}, jn = function(e, t) {
for (var r = "", n = 0; n < e.length; n += 1)
r += e[n], n + 1 < e.length && (r += t);
return r;
}, Ln = function(t) {
var r = this;
if (typeof r != "function" || Tn.apply(r) !== Pn)
throw new TypeError(Rn + r);
for (var n = Mn(arguments, 1), i, c = function() {
if (this instanceof i) {
var L = r.apply(
this,
Ht(n, arguments)
);
return Object(L) === L ? L : this;
}
return r.apply(
t,
Ht(n, arguments)
);
}, l = On(0, r.length - n.length), h = [], p = 0; p < l; p++)
h[p] = "$" + p;
if (i = Function("binder", "return function (" + jn(h, ",") + "){ return binder.apply(this,arguments); }")(c), r.prototype) {
var A = function() {
};
A.prototype = r.prototype, i.prototype = new A(), A.prototype = null;
}
return i;
}, Cn = Ln, Lt = Function.prototype.bind || Cn, Nn = Function.prototype.call, In = Object.prototype.hasOwnProperty, Dn = Lt, Bn = Dn.call(Nn, In), $, Fn = gn, Un = vn, kn = bn, $n = mn, Ae = Cr, Ee = Ve, Wn = _n, Nr = Function, et = function(e) {
try {
return Nr('"use strict"; return (' + e + ").constructor;")();
} catch {
}
}, pe = Object.getOwnPropertyDescriptor;
if (pe)
try {
pe({}, "");
} catch {
pe = null;
}
var tt = function() {
throw new Ee();
}, qn = pe ? function() {
try {
return arguments.callee, tt;
} catch {
try {
return pe(arguments, "callee").get;
} catch {
return tt;
}
}
}() : tt, be = Sn(), xn = An(), z = Object.getPrototypeOf || (xn ? function(e) {
return e.__proto__;
} : null), _e = {}, Hn = typeof Uint8Array > "u" || !z ? $ : z(Uint8Array), he = {
__proto__: null,
"%AggregateError%": typeof AggregateError > "u" ? $ : AggregateError,
"%Array%": Array,
"%ArrayBuffer%": typeof ArrayBuffer > "u" ? $ : ArrayBuffer,
"%ArrayIteratorPrototype%": be && z ? z([][Symbol.iterator]()) : $,
"%AsyncFromSyncIteratorPrototype%": $,
"%AsyncFunction%": _e,
"%AsyncGenerator%": _e,
"%AsyncGeneratorFunction%": _e,
"%AsyncIteratorPrototype%": _e,
"%Atomics%": typeof Atomics > "u" ? $ : Atomics,
"%BigInt%": typeof BigInt > "u" ? $ : BigInt,
"%BigInt64Array%": typeof BigInt64Array > "u" ? $ : BigInt64Array,
"%BigUint64Array%": typeof BigUint64Array > "u" ? $ : BigUint64Array,
"%Boolean%": Boolean,
"%DataView%": typeof DataView > "u" ? $ : DataView,
"%Date%": Date,
"%decodeURI%": decodeURI,
"%decodeURIComponent%": decodeURIComponent,
"%encodeURI%": encodeURI,
"%encodeURIComponent%": encodeURIComponent,
"%Error%": Fn,
"%eval%": eval,
// eslint-disable-line no-eval
"%EvalError%": Un,
"%Float32Array%": typeof Float32Array > "u" ? $ : Float32Array,
"%Float64Array%": typeof Float64Array > "u" ? $ : Float64Array,
"%FinalizationRegistry%": typeof FinalizationRegistry > "u" ? $ : FinalizationRegistry,
"%Function%": Nr,
"%GeneratorFunction%": _e,
"%Int8Array%": typeof Int8Array > "u" ? $ : Int8Array,
"%Int16Array%": typeof Int16Array > "u" ? $ : Int16Array,
"%Int32Array%": typeof Int32Array > "u" ? $ : Int32Array,
"%isFinite%": isFinite,
"%isNaN%": isNaN,
"%IteratorPrototype%": be && z ? z(z([][Symbol.iterator]())) : $,
"%JSON%": typeof JSON == "object" ? JSON : $,
"%Map%": typeof Map > "u" ? $ : Map,
"%MapIteratorPrototype%": typeof Map > "u" || !be || !z ? $ : z((/* @__PURE__ */ new Map())[Symbol.iterator]()),
"%Math%": Math,
"%Number%": Number,
"%Object%": Object,
"%parseFloat%": parseFloat,
"%parseInt%": parseInt,
"%Promise%": typeof Promise > "u" ? $ : Promise,
"%Proxy%": typeof Proxy > "u" ? $ : Proxy,
"%RangeError%": kn,
"%ReferenceError%": $n,
"%Reflect%": typeof Reflect > "u" ? $ : Reflect,
"%RegExp%": RegExp,
"%Set%": typeof Set > "u" ? $ : Set,
"%SetIteratorPrototype%": typeof Set > "u" || !be || !z ? $ : z((/* @__PURE__ */ new Set())[Symbol.iterator]()),
"%SharedArrayBuffer%": typeof SharedArrayBuffer > "u" ? $ : SharedArrayBuffer,
"%String%": String,
"%StringIteratorPrototype%": be && z ? z(""[Symbol.iterator]()) : $,
"%Symbol%": be ? Symbol : $,
"%SyntaxError%": Ae,
"%ThrowTypeError%": qn,
"%TypedArray%": Hn,
"%TypeError%": Ee,
"%Uint8Array%": typeof Uint8Array > "u" ? $ : Uint8Array,
"%Uint8ClampedArray%": typeof Uint8ClampedArray > "u" ? $ : Uint8ClampedArray,
"%Uint16Array%": typeof Uint16Array > "u" ? $ : Uint16Array,
"%Uint32Array%": typeof Uint32Array > "u" ? $ : Uint32Array,
"%URIError%": Wn,
"%WeakMap%": typeof WeakMap > "u" ? $ : WeakMap,
"%WeakRef%": typeof WeakRef > "u" ? $ : WeakRef,
"%WeakSet%": typeof WeakSet > "u" ? $ : WeakSet
};
if (z)
try {
null.error;
} catch (e) {
var Gn = z(z(e));
he["%Error.prototype%"] = Gn;
}
var Vn = function e(t) {
var r;
if (t === "%AsyncFunction%")
r = et("async function () {}");
else if (t === "%GeneratorFunction%")
r = et("function* () {}");
else if (t === "%AsyncGeneratorFunction%")
r = et("async function* () {}");
else if (t === "%AsyncGenerator%") {
var n = e("%AsyncGeneratorFunction%");
n && (r = n.prototype);
} else if (t === "%AsyncIteratorPrototype%") {
var i = e("%AsyncGenerator%");
i && z && (r = z(i.prototype));
}
return he[t] = r, r;
}, Gt = {
__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"]
}, Pe = Lt, ke = Bn, zn = Pe.call(Function.call, Array.prototype.concat), Kn = Pe.call(Function.apply, Array.prototype.splice), Vt = Pe.call(Function.call, String.prototype.replace), $e = Pe.call(Function.call, String.prototype.slice), Yn = Pe.call(Function.call, RegExp.prototype.exec), Jn = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, Xn = /\\(\\)?/g, Zn = function(t) {
var r = $e(t, 0, 1), n = $e(t, -1);
if (r === "%" && n !== "%")
throw new Ae("invalid intrinsic syntax, expected closing `%`");
if (n === "%" && r !== "%")
throw new Ae("invalid intrinsic syntax, expected opening `%`");
var i = [];
return Vt(t, Jn, function(c, l, h, p) {
i[i.length] = h ? Vt(p, Xn, "$1") : l || c;
}), i;
}, Qn = function(t, r) {
var n = t, i;
if (ke(Gt, n) && (i = Gt[n], n = "%" + i[0] + "%"), ke(he, n)) {
var c = he[n];
if (c === _e && (c = Vn(n)), typeof c > "u" && !r)
throw new Ee("intrinsic " + t + " exists, but is not available. Please file an issue!");
return {
alias: i,
name: n,
value: c
};
}
throw new Ae("intrinsic " + t + " does not exist!");
}, Me = function(t, r) {
if (typeof t != "string" || t.length === 0)
throw new Ee("intrinsic name must be a non-empty string");
if (arguments.length > 1 && typeof r != "boolean")
throw new Ee('"allowMissing" argument must be a boolean');
if (Yn(/^%?[^%]*%?$/, t) === null)
throw new Ae("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
var n = Zn(t), i = n.length > 0 ? n[0] : "", c = Qn("%" + i + "%", r), l = c.name, h = c.value, p = !1, A = c.alias;
A && (i = A[0], Kn(n, zn([0, 1], A)));
for (var L = 1, E = !0; L < n.length; L += 1) {
var N = n[L], W = $e(N, 0, 1), O = $e(N, -1);
if ((W === '"' || W === "'" || W === "`" || O === '"' || O === "'" || O === "`") && W !== O)
throw new Ae("property names with quotes must have matching quotes");
if ((N === "constructor" || !E) && (p = !0), i += "." + N, l = "%" + i + "%", ke(he, l))
h = he[l];
else if (h != null) {
if (!(N in h)) {
if (!r)
throw new Ee("base intrinsic for " + t + " exists, but the property is not available.");
return;
}
if (pe && L + 1 >= n.length) {
var C = pe(h, N);
E = !!C, E && "get" in C && !("originalValue" in C.get) ? h = C.get : h = h[N];
} else
E = ke(h, N), h = h[N];
E && !p && (he[l] = h);
}
}
return h;
}, Ir = { exports: {} }, rt, zt;
function Ct() {
if (zt)
return rt;
zt = 1;
var e = Me, t = e("%Object.defineProperty%", !0) || !1;
if (t)
try {
t({}, "a", { value: 1 });
} catch {
t = !1;
}
return rt = t, rt;
}
var ei = Me, Ie = ei("%Object.getOwnPropertyDescriptor%", !0);
if (Ie)
try {
Ie([], "length");
} catch {
Ie = null;
}
var Nt = Ie, Kt = Ct(), ti = Cr, me = Ve, Yt = Nt, ri = function(t, r, n) {
if (!t || typeof t != "object" && typeof t != "function")
throw new me("`obj` must be an object or a function`");
if (typeof r != "string" && typeof r != "symbol")
throw new me("`property` must be a string or a symbol`");
if (arguments.length > 3 && typeof arguments[3] != "boolean" && arguments[3] !== null)
throw new me("`nonEnumerable`, if provided, must be a boolean or null");
if (arguments.length > 4 && typeof arguments[4] != "boolean" && arguments[4] !== null)
throw new me("`nonWritable`, if provided, must be a boolean or null");
if (arguments.length > 5 && typeof arguments[5] != "boolean" && arguments[5] !== null)
throw new me("`nonConfigurable`, if provided, must be a boolean or null");
if (arguments.length > 6 && typeof arguments[6] != "boolean")
throw new me("`loose`, if provided, must be a boolean");
var i = arguments.length > 3 ? arguments[3] : null, c = arguments.length > 4 ? arguments[4] : null, l = arguments.length > 5 ? arguments[5] : null, h = arguments.length > 6 ? arguments[6] : !1, p = !!Yt && Yt(t, r);
if (Kt)
Kt(t, r, {
configurable: l === null && p ? p.configurable : !l,
enumerable: i === null && p ? p.enumerable : !i,
value: n,
writable: c === null && p ? p.writable : !c
});
else if (h || !i && !c && !l)
t[r] = n;
else
throw new ti("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");
}, mt = Ct(), Dr = function() {
return !!mt;
};
Dr.hasArrayLengthDefineBug = function() {
if (!mt)
return null;
try {
return mt([], "length", { value: 1 }).length !== 1;
} catch {
return !0;
}
};
var ni = Dr, ii = Me, Jt = ri, oi = ni(), Xt = Nt, Zt = Ve, ai = ii("%Math.floor%"), fi = function(t, r) {
if (typeof t != "function")
throw new Zt("`fn` is not a function");
if (typeof r != "number" || r < 0 || r > 4294967295 || ai(r) !== r)
throw new Zt("`length` must be a positive 32-bit integer");
var n = arguments.length > 2 && !!arguments[2], i = !0, c = !0;
if ("length" in t && Xt) {
var l = Xt(t, "length");
l && !l.configurable && (i = !1), l && !l.writable && (c = !1);
}
return (i || c || !n) && (oi ? Jt(
/** @type {Parameters<define>[0]} */
t,
"length",
r,
!0,
!0
) : Jt(
/** @type {Parameters<define>[0]} */
t,
"length",
r
)), t;
};
(function(e) {
var t = Lt, r = Me, n = fi, i = Ve, c = r("%Function.prototype.apply%"), l = r("%Function.prototype.call%"), h = r("%Reflect.apply%", !0) || t.call(l, c), p = Ct(), A = r("%Math.max%");
e.exports = function(N) {
if (typeof N != "function")
throw new i("a function is required");
var W = h(t, l, arguments);
return n(
W,
1 + A(0, N.length - (arguments.length - 1)),
!0
);
};
var L = function() {
return h(t, c, arguments);
};
p ? p(e.exports, "apply", { value: L }) : e.exports.apply = L;
})(Ir);
var Br = Ir.exports, Fr = Me, Ur = Br, ui = Ur(Fr("String.prototype.indexOf")), kr = function(t, r) {
var n = Fr(t, !!r);
return typeof n == "function" && ui(t, ".prototype.") > -1 ? Ur(n) : n;
}, si = jt(), li = kr, _t = li("Object.prototype.toString"), ze = function(t) {
return si && t && typeof t == "object" && Symbol.toStringTag in t ? !1 : _t(t) === "[object Arguments]";
}, $r = function(t) {
return ze(t) ? !0 : t !== null && typeof t == "object" && typeof t.length == "number" && t.length >= 0 && _t(t) !== "[object Array]" && _t(t.callee) === "[object Function]";
}, ci = function() {
return ze(arguments);
}();
ze.isLegacyArguments = $r;
var di = ci ? ze : $r, pi = Object.prototype.toString, hi = Function.prototype.toString, yi = /^\s*(?:function)?\*/, Wr = jt(), nt = Object.getPrototypeOf, gi = function() {
if (!Wr)
return !1;
try {
return Function("return function*() {}")();
} catch {
}
}, it, vi = function(t) {
if (typeof t != "function")
return !1;
if (yi.test(hi.call(t)))
return !0;
if (!Wr) {
var r = pi.call(t);
return r === "[object GeneratorFunction]";
}
if (!nt)
return !1;
if (typeof it > "u") {
var n = gi();
it = n ? nt(n) : !1;
}
return nt(t) === it;
}, qr = Function.prototype.toString, we = typeof Reflect == "object" && Reflect !== null && Reflect.apply, wt, De;
if (typeof we == "function" && typeof Object.defineProperty == "function")
try {
wt = Object.defineProperty({}, "length", {
get: function() {
throw De;
}
}), De = {}, we(function() {
throw 42;
}, null, wt);
} catch (e) {
e !== De && (we = null);
}
else
we = null;
var bi = /^\s*class\b/, St = function(t) {
try {
var r = qr.call(t);
return bi.test(r);
} catch {
return !1;
}
}, ot = function(t) {
try {
return St(t) ? !1 : (qr.call(t), !0);
} catch {
return !1;
}
}, Be = Object.prototype.toString, mi = "[object Object]", _i = "[object Function]", wi = "[object GeneratorFunction]", Si = "[object HTMLAllCollection]", Ei = "[object HTML document.all class]", Ai = "[object HTMLCollection]", Ri = typeof Symbol == "function" && !!Symbol.toStringTag, Ti = !(0 in [,]), Et = function() {
return !1;
};
if (typeof document == "object") {
var Oi = document.all;
Be.call(Oi) === Be.call(document.all) && (Et = function(t) {
if ((Ti || !t) && (typeof t > "u" || typeof t == "object"))
try {
var r = Be.call(t);
return (r === Si || r === Ei || r === Ai || r === mi) && t("") == null;
} catch {
}
return !1;
});
}
var Pi = we ? function(t) {
if (Et(t))
return !0;
if (!t || typeof t != "function" && typeof t != "object")
return !1;
try {
we(t, null, wt);
} catch (r) {
if (r !== De)
return !1;
}
return !St(t) && ot(t);
} : function(t) {
if (Et(t))
return !0;
if (!t || typeof t != "function" && typeof t != "object")
return !1;
if (Ri)
return ot(t);
if (St(t))
return !1;
var r = Be.call(t);
return r !== _i && r !== wi && !/^\[object HTML/.test(r) ? !1 : ot(t);
}, Mi = Pi, ji = Object.prototype.toString, xr = Object.prototype.hasOwnProperty, Li = function(t, r, n) {
for (var i = 0, c = t.length; i < c; i++)
xr.call(t, i) && (n == null ? r(t[i], i, t) : r.call(n, t[i], i, t));
}, Ci = function(t, r, n) {
for (var i = 0, c = t.length; i < c; i++)
n == null ? r(t.charAt(i), i, t) : r.call(n, t.charAt(i), i, t);
}, Ni = function(t, r, n) {
for (var i in t)
xr.call(t, i) && (n == null ? r(t[i], i, t) : r.call(n, t[i], i, t));
}, Ii = function(t, r, n) {
if (!Mi(r))
throw new TypeError("iterator must be a function");
var i;
arguments.length >= 3 && (i = n), ji.call(t) === "[object Array]" ? Li(t, r, i) : typeof t == "string" ? Ci(t, r, i) : Ni(t, r, i);
}, Di = Ii, Bi = [
"Float32Array",
"Float64Array",
"Int8Array",
"Int16Array",
"Int32Array",
"Uint8Array",
"Uint8ClampedArray",
"Uint16Array",
"Uint32Array",
"BigInt64Array",
"BigUint64Array"
], at = Bi, Fi = typeof globalThis > "u" ? V : globalThis, Ui = function() {
for (var t = [], r = 0; r < at.length; r++)
typeof Fi[at[r]] == "function" && (t[t.length] = at[r]);
return t;
}, We = Di, ki = Ui, Qt = Br, It = kr, Fe = Nt, $i = It("Object.prototype.toString"), Hr = jt(), er = typeof globalThis > "u" ? V : globalThis, At = ki(), Dt = It("String.prototype.slice"), ft = Object.getPrototypeOf, Wi = It("Array.prototype.indexOf", !0) || function(t, r) {
for (var n = 0; n < t.length; n += 1)
if (t[n] === r)
return n;
return -1;
}, qe = { __proto__: null };
Hr && Fe && ft ? We(At, function(e) {
var t = new er[e]();
if (Symbol.toStringTag in t) {
var r = ft(t), n = Fe(r, Symbol.toStringTag);
if (!n) {
var i = ft(r);
n = Fe(i, Symbol.toStringTag);
}
qe["$" + e] = Qt(n.get);
}
}) : We(At, function(e) {
var t = new er[e](), r = t.slice || t.set;
r && (qe["$" + e] = Qt(r));
});
var qi = function(t) {
var r = !1;
return We(
// eslint-disable-next-line no-extra-parens
/** @type {Record<`\$${TypedArrayName}`, Getter>} */
/** @type {any} */
qe,
/** @type {(getter: Getter, name: `\$${import('.').TypedArrayName}`) => void} */
function(n, i) {
if (!r)
try {
"$" + n(t) === i && (r = Dt(i, 1));
} catch {
}
}
), r;
}, xi = function(t) {
var r = !1;
return We(
// eslint-disable-next-line no-extra-parens
/** @type {Record<`\$${TypedArrayName}`, Getter>} */
/** @type {any} */
qe,
/** @type {(getter: typeof cache, name: `\$${import('.').TypedArrayName}`) => void} */
function(n, i) {
if (!r)
try {
n(t), r = Dt(i, 1);
} catch {
}
}
), r;
}, Gr = function(t) {
if (!t || typeof t != "object")
return !1;
if (!Hr) {
var r = Dt($i(t), 8, -1);
return Wi(At, r) > -1 ? r : r !== "Object" ? !1 : xi(t);
}
return Fe ? qi(t) : null;
}, Hi = Gr, Gi = function(t) {
return !!Hi(t);
};
(function(e) {
var t = di, r = vi, n = Gr, i = Gi;
function c(v) {
return v.call.bind(v);
}
var l = typeof BigInt < "u", h = typeof Symbol < "u", p = c(Object.prototype.toString), A = c(Number.prototype.valueOf), L = c(String.prototype.valueOf), E = c(Boolean.prototype.valueOf);
if (l)
var N = c(BigInt.prototype.valueOf);
if (h)
var W = c(Symbol.prototype.valueOf);
function O(v, je) {
if (typeof v != "object")
return !1;
try {
return je(v), !0;
} catch {
return !1;
}
}
e.isArgumentsObject = t, e.isGeneratorFunction = r, e.isTypedArray = i;
function C(v) {
return typeof Promise < "u" && v instanceof Promise || v !== null && typeof v == "object" && typeof v.then == "function" && typeof v.catch == "function";
}
e.isPromise = C;
function M(v) {
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? ArrayBuffer.isView(v) : i(v) || g(v);
}
e.isArrayBufferView = M;
function s(v) {
return n(v) === "Uint8Array";
}
e.isUint8Array = s;
function m(v) {
return n(v) === "Uint8ClampedArray";
}
e.isUint8ClampedArray = m;
function S(v) {
return n(v) === "Uint16Array";
}
e.isUint16Array = S;
function R(v) {
return n(v) === "Uint32Array";
}
e.isUint32Array = R;
function P(v) {
return n(v) === "Int8Array";
}
e.isInt8Array = P;
function B(v) {
return n(v) === "Int16Array";
}
e.isInt16Array = B;
function q(v) {
return n(v) === "Int32Array";
}
e.isInt32Array = q;
function F(v) {
return n(v) === "Float32Array";
}
e.isFloat32Array = F;
function I(v) {
return n(v) === "Float64Array";
}
e.isFloat64Array = I;
function K(v) {
return n(v) === "BigInt64Array";
}
e.isBigInt64Array = K;
function X(v) {
return n(v) === "BigUint64Array";
}
e.isBigUint64Array = X;
function Z(v) {
return p(v) === "[object Map]";
}
Z.working = typeof Map < "u" && Z(/* @__PURE__ */ new Map());
function ie(v) {
return typeof Map > "u" ? !1 : Z.working ? Z(v) : v instanceof Map;
}
e.isMap = ie;
function Q(v) {
return p(v) === "[object Set]";
}
Q.working = typeof Set < "u" && Q(/* @__PURE__ */ new Set());
function oe(v) {
return typeof Set > "u" ? !1 : Q.working ? Q(v) : v instanceof Set;
}
e.isSet = oe;
function ae(v) {
return p(v) === "[object WeakMap]";
}
ae.working = typeof WeakMap < "u" && ae(/* @__PURE__ */ new WeakMap());
function te(v) {
return typeof WeakMap > "u" ? !1 : ae.working ? ae(v) : v instanceof WeakMap;
}
e.isWeakMap = te;
function re(v) {
return p(v) === "[object WeakSet]";
}
re.working = typeof WeakSet < "u" && re(/* @__PURE__ */ new WeakSet());
function Y(v) {
return re(v);
}
e.isWeakSet = Y;
function ne(v) {
return p(v) === "[object ArrayBuffer]";
}
ne.working = typeof ArrayBuffer < "u" && ne(new ArrayBuffer());
function ue(v) {
return typeof ArrayBuffer > "u" ? !1 : ne.working ? ne(v) : v instanceof ArrayBuffer;
}
e.isArrayBuffer = ue;
function d(v) {
return p(v) === "[object DataView]";
}
d.working = typeof ArrayBuffer < "u" && typeof DataView < "u" && d(new DataView(new ArrayBuffer(1), 0, 1));
function g(v) {
return typeof DataView > "u" ? !1 : d.working ? d(v) : v instanceof DataView;
}
e.isDataView = g;
var _ = typeof SharedArrayBuffer < "u" ? SharedArrayBuffer : void 0;
function D(v) {
return p(v) === "[object SharedArrayBuffer]";
}
function u(v) {
return typeof _ > "u" ? !1 : (typeof D.working > "u" && (D.working = D(new _())), D.working ? D(v) : v instanceof _);
}
e.isSharedArrayBuffer = u;
function f(v) {
return p(v) === "[object AsyncFunction]";
}
e.isAsyncFunction = f;
function y(v) {
return p(v) === "[object Map Iterator]";
}
e.isMapIterator = y;
function w(v) {
return p(v) === "[object Set Iterator]";
}
e.isSetIterator = w;
function j(v) {
return p(v) === "[object Generator]";
}
e.isGeneratorObject = j;
function o(v) {
return p(v) === "[object WebAssembly.Module]";
}
e.isWebAssemblyCompiledModule = o;
function a(v) {
return O(v, A);
}
e.isNumberObject = a;
function b(v) {
return O(v, L);
}
e.isStringObject = b;
function T(v) {
return O(v, E);
}
e.isBooleanObject = T;
function G(v) {
return l && O(v, N);
}
e.isBigIntObject = G;
function k(v) {
return h && O(v, W);
}
e.isSymbolObject = k;
function x(v) {
return a(v) || b(v) || T(v) || G(v) || k(v);
}
e.isBoxedPrimitive = x;
function se(v) {
return typeof Uint8Array < "u" && (ue(v) || u(v));
}
e.isAnyArrayBuffer = se, ["isProxy", "isExternal", "isModuleNamespaceObject"].forEach(function(v) {
Object.defineProperty(e, v, {
enumerable: !1,
value: function() {
throw new Error(v + " is not supported in userland");
}
});
});
})(jr);
var Vi = function(t) {
return t && typeof t == "object" && typeof t.copy == "function" && typeof t.fill == "function" && typeof t.readUInt8 == "function";
};
(function(e) {
var t = Object.getOwnPropertyDescriptors || function(g) {
for (var _ = Object.keys(g), D = {}, u = 0; u < _.length; u++)
D[_[u]] = Object.getOwnPropertyDescriptor(g, _[u]);
return D;
}, r = /%[sdj%]/g;
e.format = function(d) {
if (!P(d)) {
for (var g = [], _ = 0; _ < arguments.length; _++)
g.push(l(arguments[_]));
return g.join(" ");
}
for (var _ = 1, D = arguments, u = D.length, f = String(d).replace(r, function(w) {
if (w === "%%")
return "%";
if (_ >= u)
return w;
switch (w) {
case "%s":
return String(D[_++]);
case "%d":
return Number(D[_++]);
case "%j":
try {
return JSON.stringify(D[_++]);
} catch {
return "[Circular]";
}
default:
return w;
}
}), y = D[_]; _ < u; y = D[++_])
m(y) || !I(y) ? f += " " + y : f += " " + l(y);
return f;
}, e.deprecate = function(d, g) {
if (typeof U < "u" && U.noDeprecation === !0)
return d;
if (typeof U > "u")
return function() {
return e.deprecate(d, g).apply(this, arguments);
};
var _ = !1;
function D() {
if (!_) {
if (U.throwDeprecation)
throw new Error(g);
U.traceDeprecation ? console.trace(g) : console.error(g), _ = !0;
}
return d.apply(this, arguments);
}
return D;
};
var n = {}, i = /^$/;
if (U.env.NODE_DEBUG) {
var c = U.env.NODE_DEBUG;
c = c.replace(/[|\\{}()[\]^$+?.]/g, "\\$&").replace(/\*/g, ".*").replace(/,/g, "$|^").toUpperCase(), i = new RegExp("^" + c + "$", "i");
}
e.debuglog = function(d) {
if (d = d.toUpperCase(), !n[d])
if (i.test(d)) {
var g = U.pid;
n[d] = function() {
var _ = e.format.apply(e, arguments);
console.error("%s %d: %s", d, g, _);
};
} else
n[d] = function() {
};
return n[d];
};
function l(d, g) {
var _ = {
seen: [],
stylize: p
};
return arguments.length >= 3 && (_.depth = arguments[2]), arguments.length >= 4 && (_.colors = arguments[3]), s(g) ? _.showHidden = g : g && e._extend(_, g), q(_.showHidden) && (_.showHidden = !1), q(_.depth) && (_.depth = 2), q(_.colors) && (_.colors = !1), q(_.customInspect) && (_.customInspect = !0), _.colors && (_.stylize = h), L(_, d, _.depth);
}
e.inspect = l, l.colors = {
bold: [1, 22],
italic: [3, 23],
underline: [4, 24],
inverse: [7, 27],
white: [37, 39],
grey: [90, 39],
black: [30, 39],
blue: [34, 39],
cyan: [36, 39],
green: [32, 39],
magenta: [35, 39],
red: [31, 39],
yellow: [33, 39]
}, l.styles = {
special: "cyan",
number: "yellow",
boolean: "yellow",
undefined: "grey",
null: "bold",
string: "green",
date: "magenta",
// "name": intentionally not styling
regexp: "red"
};
function h(d, g) {
var _ = l.styles[g];
return _ ? "\x1B[" + l.colors[_][0] + "m" + d + "\x1B[" + l.colors[_][1] + "m" : d;
}
function p(d, g) {
return d;
}
function A(d) {
var g = {};
return d.forEach(function(_, D) {
g[_] = !0;
}), g;
}
function L(d, g, _) {
if (d.customInspect && g && Z(g.inspect) && // Filter out the util module, it's inspect function is special
g.inspect !== e.inspect && // Also filter out any prototype objects using the circular check.
!(g.constructor && g.constructor.prototype === g)) {
var D = g.inspect(_, d);
return P(D) || (D = L(d, D, _)), D;
}
var u = E(d, g);
if (u)
return u;
var f = Object.keys(g), y = A(f);
if (d.showHidden && (f = Object.getOwnPropertyNames(g)), X(g) && (f.indexOf("message") >= 0 || f.indexOf("description") >= 0))
return N(g);
if (f.length === 0) {
if (Z(g)) {
var w = g.name ? ": " + g.name : "";
return d.stylize("[Function" + w + "]", "special");
}
if (F(g))
return d.stylize(RegExp.prototype.toString.call(g), "regexp");
if (K(g))
return d.stylize(Date.prototype.toString.call(g), "date");
if (X(g))
return N(g);
}
var j = "", o = !1, a = ["{", "}"];
if (M(g) && (o = !0, a = ["[", "]"]), Z(g)) {
var b = g.name ? ": " + g.name : "";
j = " [Function" + b + "]";
}
if (F(g) && (j = " " + RegExp.prototype.toString.call(g)), K(g) && (j = " " + Date.prototype.toUTCString.call(g)), X(g) && (j = " " + N(g)), f.length === 0 && (!o || g.length == 0))
return a[0] + j + a[1];
if (_ < 0)
return F(g) ? d.stylize(RegExp.prototype.toString.call(g), "regexp") : d.stylize("[Object]", "special");
d.seen.push(g);
var T;
return o ? T = W(d, g, _, y, f) : T = f.map(function(G) {
return O(d, g, _, y, G, o);
}), d.seen.pop(), C(T, j, a);
}
function E(d, g) {
if (q(g))
return d.stylize("undefined", "undefined");
if (P(g)) {
var _ = "'" + JSON.stringify(g).replace(/^"|"$/g, "").replace(/'/g, "\\'").replace(/\\"/g, '"') + "'";
return d.stylize(_, "string");
}
if (R(g))
return d.stylize("" + g, "number");
if (s(g))
return d.stylize("" + g, "boolean");
if (m(g))
return d.stylize("null", "null");
}
function N(d) {
return "[" + Error.prototype.toString.call(d) + "]";
}
function W(d, g, _, D, u) {
for (var f = [], y = 0, w = g.length; y < w; ++y)
re(g, String(y)) ? f.push(O(
d,
g,
_,
D,
String(y),
!0
)) : f.push("");
return u.forEach(function(j) {
j.match(/^\d+$/) || f.push(O(
d,
g,
_,
D,
j,
!0
));
}), f;
}
function O(d, g, _, D, u, f) {
var y, w, j;
if (j = Object.getOwnPropertyDescriptor(g, u) || { value: g[u] }, j.get ? j.set ? w = d.stylize("[Getter/Setter]", "special") : w = d.stylize("[Getter]", "special") : j.set && (w = d.stylize("[Setter]", "special")), re(D, u) || (y = "[" + u + "]"), w || (d.seen.indexOf(j.value) < 0 ? (m(_) ? w = L(d, j.value, null) : w = L(d, j.value, _ - 1), w.indexOf(`
`) > -1 && (f ? w = w.split(`
`).map(function(o) {
return " " + o;
}).join(`
`).slice(2) : w = `
` + w.split(`
`).map(function(o) {
return " " + o;
}).join(`
`))) : w = d.stylize("[Circular]", "special")), q(y)) {
if (f && u.match(/^\d+$/))
return w;
y = JSON.stringify("" + u), y.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/) ? (y = y.slice(1, -1), y = d.stylize(y, "name")) : (y = y.replace(/'/g, "\\'").replace(/\\"/g, '"').replace(/(^"|"$)/g, "'"), y = d.stylize(y, "string"));
}
return y + ": " + w;
}
function C(d, g, _) {
var D = d.reduce(function(u, f) {
return f.indexOf(`
`) >= 0, u + f.replace(/\u001b\[\d\d?m/g, "").length + 1;
}, 0);
return D > 60 ? _[0] + (g === "" ? "" : g + `
`) + " " + d.join(`,
`) + " " + _[1] : _[0] + g + " " + d.join(", ") + " " + _[1];
}
e.types = jr;
function M(d) {
return Array.isArray(d);
}
e.isArray = M;
function s(d) {
return typeof d == "boolean";
}
e.isBoolean = s;
function m(d) {
return d === null;
}
e.isNull = m;
function S(d) {
return d == null;
}
e.isNullOrUndefined = S;
function R(d) {
return typeof d == "number";
}
e.isNumber = R;
function P(d) {
return typeof d == "string";
}
e.isString = P;
function B(d) {
return typeof d == "symbol";
}
e.isSymbol = B;
function q(d) {
return d === void 0;
}
e.isUndefined = q;
function F(d) {
return I(d) && Q(d) === "[object RegExp]";
}
e.isRegExp = F, e.types.isRegExp = F;
function I(d) {
return typeof d == "object" && d !== null;
}
e.isObject = I;
function K(d) {
return I(d) && Q(d) === "[object Date]";
}
e.isDate = K, e.types.isDate = K;
function X(d) {
return I(d) && (Q(d) === "[object Error]" || d instanceof Error);
}
e.isError = X, e.types.isNativeError = X;
function Z(d) {
return typeof d == "function";
}
e.isFunction = Z;
function ie(d) {
return d === null || typeof d == "boolean" || typeof d == "number" || typeof d == "string" || typeof d == "symbol" || // ES6 symbol
typeof d > "u";
}
e.isPrimitive = ie, e.isBuffer = Vi;
function Q(d) {
return Object.prototype.toString.call(d);
}
function oe(d) {
return d < 10 ? "0" + d.toString(10) : d.toString(10);
}
var ae = [
"Jan",
"Feb",
"Mar",
"Apr",
"May",
"Jun",
"Jul",
"Aug",
"Sep",
"Oct",
"Nov",
"Dec"
];
function te() {
var d = /* @__PURE__ */ new Date(), g = [
oe(d.getHours()),
oe(d.getMinutes()),
oe(d.getSeconds())
].join(":");
return [d.getDate(), ae[d.getMonth()], g].join(" ");
}
e.log = function() {
console.log("%s - %s", te(), e.format.apply(e, arguments));
}, e.inherits = le, e._extend = function(d, g) {
if (!g || !I(g))
return d;
for (var _ = Object.keys(g), D = _.length; D--; )
d[_[D]] = g[_[D]];
return d;
};
function re(d, g) {
return Object.prototype.hasOwnProperty.call(d, g);
}
var Y = typeof Symbol < "u" ? Symbol("util.promisify.custom") : void 0;
e.promisify = function(g) {
if (typeof g != "function")
throw new TypeError('The "original" argument must be of type Function');
if (Y && g[Y]) {
var _ = g[Y];
if (typeof _ != "function")
throw new TypeError('The "util.promisify.custom" argument must be of type Function');
return Object.defineProperty(_, Y, {
value: _,
enumerable: !1,
writable: !1,
configurable: !0
}), _;
}
function _() {
for (var D, u, f = new Promise(function(j, o) {
D = j, u = o;
}), y = [], w = 0; w < arguments.length; w++)
y.push(arguments[w]);
y.push(function(j, o) {
j ? u(j) : D(o);
});
try {
g.apply(this, y);
} catch (j) {
u(j);
}
return f;
}
return Object.setPrototypeOf(_, Object.getPrototypeOf(g)), Y && Object.defineProperty(_, Y, {
value: _,
enumerable: !1,
writable: !1,
configurable: !0
}), Object.defineProperties(
_,
t(g)
);
}, e.promisify.custom = Y;
function ne(d, g) {
if (!d) {
var _ = new Error("Promise was rejected with a falsy value");
_.reason = d, d = _;
}
return g(d);
}
function ue(d) {
if (typeof d != "function")
throw new TypeError('The "original" argument must be of type Function');
function g() {
for (var _ = [], D = 0; D < arguments.length; D++)
_.push(arguments[D]);
var u = _.pop();
if (typeof u != "function")
throw new TypeError("The last argument must be of type Function");
var f = this, y = function() {
return u.apply(f, arguments);
};
d.apply(this, _).then(
function(w) {
U.nextTick(y.bind(null, null, w));
},
function(w) {
U.nextTick(ne.bind(null, w, y));
}
);
}
return Object.setPrototypeOf(g, Object.getPrototypeOf(d)), Object.defineProperties(
g,
t(d)
), g;
}
e.callbackify = ue;
})(Mt);
var ut, tr;
function zi() {
if (tr)
return ut;
tr = 1;
function e(O, C) {
var M = Object.keys(O);
if (Object.getOwnPropertySymbols) {
var s = Object.getOwnPropertySymbols(O);
C && (s = s.filter(function(m) {
return Object.getOwnPropertyDescriptor(O, m).enumerable;
})), M.push.apply(M, s);
}
return M;
}
function t(O) {
for (var C = 1; C < arguments.length; C++) {
var M = arguments[C] != null ? arguments[C] : {};
C % 2 ? e(Object(M), !0).forEach(function(s) {
r(O, s, M[s]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(O, Object.getOwnPropertyDescriptors(M)) : e(Object(M)).forEach(function(s) {
Object.defineProperty(O, s, Object.getOwnPropertyDescriptor(M, s));
});
}
return O;
}
function r(O, C, M) {
return C = l(C), C in O ? Object.defineProperty(O, C, { value: M, enumerable: !0, configurable: !0, writable: !0 }) : O[C] = M, O;
}
function n(O, C) {
if (!(O instanceof C))
throw new TypeError("Cannot call a class as a function");
}
function i(O, C) {
for (var M = 0; M < C.length; M++) {
var s = C[M];
s.enumerable = s.enumerable || !1, s.configurable = !0, "value" in s && (s.writable = !0), Object.defineProperty(O, l(s.key), s);
}
}
function c(O, C, M) {
return C && i(O.prototype, C), Object.defineProperty(O, "prototype", { writable: !1 }), O;
}
function l(O) {
var C = h(O, "string");
return typeof C == "symbol" ? C : String(C);
}
function h(O, C) {
if (typeof O != "object" || O === nul