From 0279f42af6effac2f973db97e2673857a100926a Mon Sep 17 00:00:00 2001 From: Cody Olsen Date: Wed, 10 Jul 2024 03:27:49 +0200 Subject: [PATCH] chore: test canary of `styled-components` --- .../components/debugStyledComponents.tsx | 3 +- package.json | 3 +- packages/sanity/web-workers/checkoutPair.mjs | 5539 ++++++++--------- pnpm-lock.yaml | 462 +- 4 files changed, 2931 insertions(+), 3076 deletions(-) diff --git a/dev/test-studio/components/debugStyledComponents.tsx b/dev/test-studio/components/debugStyledComponents.tsx index a215e13b7d8b..25233997bbdc 100644 --- a/dev/test-studio/components/debugStyledComponents.tsx +++ b/dev/test-studio/components/debugStyledComponents.tsx @@ -15,11 +15,12 @@ export const debugStyledComponents = definePlugin({ name: 'debug-styled-components', studio: { components: { - layout: DebugLayout, + // layout: DebugLayout, }, }, }) +// eslint-disable-next-line @typescript-eslint/no-unused-vars, unused-imports/no-unused-vars function DebugLayout(props: LayoutProps) { const {renderDefault} = props const [, setTick] = useState(1) diff --git a/package.json b/package.json index cc1514007c9b..6b37694918bf 100644 --- a/package.json +++ b/package.json @@ -183,7 +183,8 @@ "overrides": { "@typescript-eslint/eslint-plugin": "$@typescript-eslint/eslint-plugin", "@typescript-eslint/parser": "$@typescript-eslint/parser", - "@sanity/ui": "2.6.4-canary.0" + "@sanity/ui": "2.6.4-canary.0", + "styled-components": "npm:speedy-styled-components@6.1.12-canary.0" } }, "isSanityMonorepo": true diff --git a/packages/sanity/web-workers/checkoutPair.mjs b/packages/sanity/web-workers/checkoutPair.mjs index 5225431fa51f..df7a4a707e73 100644 --- a/packages/sanity/web-workers/checkoutPair.mjs +++ b/packages/sanity/web-workers/checkoutPair.mjs @@ -1,13 +1,13 @@ -var Qw = Object.defineProperty; -var t1 = (r, e, n) => e in r ? Qw(r, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : r[e] = n; -var W = (r, e, n) => (t1(r, typeof e != "symbol" ? e + "" : e, n), n); -const Hl = typeof navigator > "u" ? !1 : navigator.product === "ReactNative", Gl = { timeout: Hl ? 6e4 : 12e4 }, e1 = function(r) { +var Yw = Object.defineProperty; +var Vw = (r, e, n) => e in r ? Yw(r, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : r[e] = n; +var W = (r, e, n) => (Vw(r, typeof e != "symbol" ? e + "" : e, n), n); +const Nl = typeof navigator > "u" ? !1 : navigator.product === "ReactNative", ql = { timeout: Nl ? 6e4 : 12e4 }, Zw = function(r) { const e = { - ...Gl, + ...ql, ...typeof r == "string" ? { url: r } : r }; - if (e.timeout = jl(e.timeout), e.query) { - const { url: n, searchParams: s } = n1(e.url); + if (e.timeout = Wl(e.timeout), e.query) { + const { url: n, searchParams: s } = Qw(e.url); for (const [a, u] of Object.entries(e.query)) { if (u !== void 0) if (Array.isArray(u)) @@ -21,12 +21,12 @@ const Hl = typeof navigator > "u" ? !1 : navigator.product === "ReactNative", Gl } return e.method = e.body && !e.method ? "POST" : (e.method || "GET").toUpperCase(), e; }; -function n1(r) { +function Qw(r) { const e = r.indexOf("?"); if (e === -1) return { url: r, searchParams: new URLSearchParams() }; const n = r.slice(0, e), s = r.slice(e + 1); - if (!Hl) + if (!Nl) return { url: n, searchParams: new URLSearchParams(s) }; if (typeof decodeURIComponent != "function") throw new Error( @@ -35,29 +35,29 @@ function n1(r) { const a = new URLSearchParams(); for (const u of s.split("&")) { const [f, l] = u.split("="); - f && a.append(Xf(f), Xf(l || "")); + f && a.append(jf(f), jf(l || "")); } return { url: n, searchParams: a }; } -function Xf(r) { +function jf(r) { return decodeURIComponent(r.replace(/\+/g, " ")); } -function jl(r) { +function Wl(r) { if (r === !1 || r === 0) return !1; if (r.connect || r.socket) return r; const e = Number(r); - return isNaN(e) ? jl(Gl.timeout) : { connect: e, socket: e }; + return isNaN(e) ? Wl(ql.timeout) : { connect: e, socket: e }; } -const r1 = /^https?:\/\//i, i1 = function(r) { - if (!r1.test(r.url)) +const t1 = /^https?:\/\//i, e1 = function(r) { + if (!t1.test(r.url)) throw new Error(`"${r.url}" is not a valid URL`); }; -function s1(r) { +function n1(r) { return r && r.__esModule && Object.prototype.hasOwnProperty.call(r, "default") ? r.default : r; } -const o1 = (r) => function(e, n, ...s) { +const r1 = (r) => function(e, n, ...s) { const a = e === "onError"; let u = n; for (let f = 0; f < r[e].length; f++) { @@ -67,7 +67,7 @@ const o1 = (r) => function(e, n, ...s) { } return u; }; -function a1() { +function i1() { const r = /* @__PURE__ */ Object.create(null); let e = 0; function n(a) { @@ -85,13 +85,13 @@ function a1() { subscribe: n }; } -const u1 = [ +const s1 = [ "request", "response", "progress", "error", "abort" -], Vf = [ +], zf = [ "processOptions", "validateOptions", "interceptRequest", @@ -102,30 +102,30 @@ const u1 = [ "onReturn", "onHeaders" ]; -function zl(r, e) { - const n = [], s = Vf.reduce( +function Bl(r, e) { + const n = [], s = zf.reduce( (u, f) => (u[f] = u[f] || [], u), { - processOptions: [e1], - validateOptions: [i1] + processOptions: [Zw], + validateOptions: [e1] } ); function a(u) { - const f = (R, O, I) => { - let x = R, D = O; + const f = (I, O, R) => { + let x = I, D = O; if (!x) try { - D = d("onResponse", O, I); + D = d("onResponse", O, R); } catch (U) { D = null, x = U; } - x = x && d("onError", x, I), x ? l.error.publish(x) : D && l.response.publish(D); - }, l = u1.reduce((R, O) => (R[O] = a1(), R), {}), d = o1(s), y = d("processOptions", u); + x = x && d("onError", x, R), x ? l.error.publish(x) : D && l.response.publish(D); + }, l = s1.reduce((I, O) => (I[O] = i1(), I), {}), d = r1(s), y = d("processOptions", u); d("validateOptions", y); const p = { options: y, channels: l, applyMiddleware: d }; let m; - const b = l.request.subscribe((R) => { - m = e(R, (O, I) => f(O, I, R)); + const b = l.request.subscribe((I) => { + m = e(I, (O, R) => f(O, R, I)); }); l.abort.subscribe(() => { b(), m && m.abort(); @@ -144,60 +144,60 @@ function zl(r, e) { throw new Error( "Tried to add new middleware with `onReturn` handler, but another handler has already been registered for this event" ); - return Vf.forEach((f) => { + return zf.forEach((f) => { u[f] && s[f].push(u[f]); }), n.push(u), a; - }, a.clone = () => zl(n, e), r.forEach(a.use), a; + }, a.clone = () => Bl(n, e), r.forEach(a.use), a; } -var Fa = function(r) { +var La = function(r) { return r.replace(/^\s+|\s+$/g, ""); -}, c1 = function(r) { +}, o1 = function(r) { return Object.prototype.toString.call(r) === "[object Array]"; -}, f1 = function(r) { +}, a1 = function(r) { if (!r) return {}; - for (var e = {}, n = Fa(r).split(` + for (var e = {}, n = La(r).split(` `), s = 0; s < n.length; s++) { - var a = n[s], u = a.indexOf(":"), f = Fa(a.slice(0, u)).toLowerCase(), l = Fa(a.slice(u + 1)); - typeof e[f] > "u" ? e[f] = l : c1(e[f]) ? e[f].push(l) : e[f] = [e[f], l]; + var a = n[s], u = a.indexOf(":"), f = La(a.slice(0, u)).toLowerCase(), l = La(a.slice(u + 1)); + typeof e[f] > "u" ? e[f] = l : o1(e[f]) ? e[f].push(l) : e[f] = [e[f], l]; } return e; -}, l1 = /* @__PURE__ */ s1(f1), h1 = Object.defineProperty, Kl = (r) => { +}, u1 = /* @__PURE__ */ n1(a1), c1 = Object.defineProperty, Hl = (r) => { throw TypeError(r); -}, d1 = (r, e, n) => e in r ? h1(r, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : r[e] = n, Xe = (r, e, n) => d1(r, typeof e != "symbol" ? e + "" : e, n), Jl = (r, e, n) => e.has(r) || Kl("Cannot " + n), We = (r, e, n) => (Jl(r, e, "read from private field"), n ? n.call(r) : e.get(r)), ar = (r, e, n) => e.has(r) ? Kl("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(r) : e.set(r, n), qn = (r, e, n, s) => (Jl(r, e, "write to private field"), e.set(r, n), n), Fs, Ms, Dr, Ds, Wn, Us, ks; -class Xa { +}, f1 = (r, e, n) => e in r ? c1(r, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : r[e] = n, Ke = (r, e, n) => f1(r, typeof e != "symbol" ? e + "" : e, n), Gl = (r, e, n) => e.has(r) || Hl("Cannot " + n), Ne = (r, e, n) => (Gl(r, e, "read from private field"), n ? n.call(r) : e.get(r)), ar = (r, e, n) => e.has(r) ? Hl("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(r) : e.set(r, n), Nn = (r, e, n, s) => (Gl(r, e, "write to private field"), e.set(r, n), n), Fs, Ms, Mr, Ds, qn, Us, ks; +class ja { constructor() { - Xe(this, "onabort"), Xe(this, "onerror"), Xe(this, "onreadystatechange"), Xe(this, "ontimeout"), Xe(this, "readyState", 0), Xe(this, "response"), Xe(this, "responseText", ""), Xe(this, "responseType", ""), Xe(this, "status"), Xe(this, "statusText"), Xe(this, "withCredentials"), ar(this, Fs), ar(this, Ms), ar(this, Dr), ar(this, Ds, {}), ar(this, Wn), ar(this, Us, {}), ar(this, ks); + Ke(this, "onabort"), Ke(this, "onerror"), Ke(this, "onreadystatechange"), Ke(this, "ontimeout"), Ke(this, "readyState", 0), Ke(this, "response"), Ke(this, "responseText", ""), Ke(this, "responseType", ""), Ke(this, "status"), Ke(this, "statusText"), Ke(this, "withCredentials"), ar(this, Fs), ar(this, Ms), ar(this, Mr), ar(this, Ds, {}), ar(this, qn), ar(this, Us, {}), ar(this, ks); } // eslint-disable-next-line @typescript-eslint/no-unused-vars -- _async is only declared for typings compatibility open(e, n, s) { var a; - qn(this, Fs, e), qn(this, Ms, n), qn(this, Dr, ""), this.readyState = 1, (a = this.onreadystatechange) == null || a.call(this), qn(this, Wn, void 0); + Nn(this, Fs, e), Nn(this, Ms, n), Nn(this, Mr, ""), this.readyState = 1, (a = this.onreadystatechange) == null || a.call(this), Nn(this, qn, void 0); } abort() { - We(this, Wn) && We(this, Wn).abort(); + Ne(this, qn) && Ne(this, qn).abort(); } getAllResponseHeaders() { - return We(this, Dr); + return Ne(this, Mr); } setRequestHeader(e, n) { - We(this, Ds)[e] = n; + Ne(this, Ds)[e] = n; } // Allow setting extra fetch init options, needed for runtimes such as Vercel Edge to set `cache` and other options in React Server Components setInit(e, n = !0) { - qn(this, Us, e), qn(this, ks, n); + Nn(this, Us, e), Nn(this, ks, n); } send(e) { const n = this.responseType !== "arraybuffer", s = { - ...We(this, Us), - method: We(this, Fs), - headers: We(this, Ds), + ...Ne(this, Us), + method: Ne(this, Fs), + headers: Ne(this, Ds), body: e }; - typeof AbortController == "function" && We(this, ks) && (qn(this, Wn, new AbortController()), typeof EventTarget < "u" && We(this, Wn).signal instanceof EventTarget && (s.signal = We(this, Wn).signal)), typeof document < "u" && (s.credentials = this.withCredentials ? "include" : "omit"), fetch(We(this, Ms), s).then((a) => { + typeof AbortController == "function" && Ne(this, ks) && (Nn(this, qn, new AbortController()), typeof EventTarget < "u" && Ne(this, qn).signal instanceof EventTarget && (s.signal = Ne(this, qn).signal)), typeof document < "u" && (s.credentials = this.withCredentials ? "include" : "omit"), fetch(Ne(this, Ms), s).then((a) => { var u; return a.headers.forEach((f, l) => { - qn(this, Dr, We(this, Dr) + `${l}: ${f}\r + Nn(this, Mr, Ne(this, Mr) + `${l}: ${f}\r `); }), this.status = a.status, this.statusText = a.statusText, this.readyState = 3, (u = this.onreadystatechange) == null || u.call(this), n ? a.text() : a.arrayBuffer(); }).then((a) => { @@ -213,23 +213,23 @@ class Xa { }); } } -Fs = /* @__PURE__ */ new WeakMap(), Ms = /* @__PURE__ */ new WeakMap(), Dr = /* @__PURE__ */ new WeakMap(), Ds = /* @__PURE__ */ new WeakMap(), Wn = /* @__PURE__ */ new WeakMap(), Us = /* @__PURE__ */ new WeakMap(), ks = /* @__PURE__ */ new WeakMap(); -const Vs = typeof XMLHttpRequest == "function" ? "xhr" : "fetch", p1 = Vs === "xhr" ? XMLHttpRequest : Xa, g1 = (r, e) => { +Fs = /* @__PURE__ */ new WeakMap(), Ms = /* @__PURE__ */ new WeakMap(), Mr = /* @__PURE__ */ new WeakMap(), Ds = /* @__PURE__ */ new WeakMap(), qn = /* @__PURE__ */ new WeakMap(), Us = /* @__PURE__ */ new WeakMap(), ks = /* @__PURE__ */ new WeakMap(); +const za = typeof XMLHttpRequest == "function" ? "xhr" : "fetch", l1 = za === "xhr" ? XMLHttpRequest : ja, h1 = (r, e) => { var n; const s = r.options, a = r.applyMiddleware("finalizeOptions", s), u = {}, f = r.applyMiddleware("interceptRequest", void 0, { - adapter: Vs, + adapter: za, context: r }); if (f) { const M = setTimeout(e, 0, null, f); return { abort: () => clearTimeout(M) }; } - let l = new p1(); - l instanceof Xa && typeof a.fetch == "object" && l.setInit(a.fetch, (n = a.useAbortSignal) != null ? n : !0); + let l = new l1(); + l instanceof ja && typeof a.fetch == "object" && l.setInit(a.fetch, (n = a.useAbortSignal) != null ? n : !0); const d = a.headers, y = a.timeout; let p = !1, m = !1, b = !1; if (l.onerror = (M) => { - l instanceof Xa ? x( + l instanceof ja ? x( M instanceof Error ? M : new Error(`Request error while attempting to reach is ${a.url}`, { cause: M }) ) : x( new Error( @@ -243,7 +243,7 @@ const Vs = typeof XMLHttpRequest == "function" ? "xhr" : "fetch", p1 = Vs === "x ) ); }, l.onabort = () => { - I(!0), p = !0; + R(!0), p = !0; }, l.onreadystatechange = () => { O(), !(p || l.readyState !== 4) && l.status !== 0 && U(); }, l.open( @@ -254,11 +254,11 @@ const Vs = typeof XMLHttpRequest == "function" ? "xhr" : "fetch", p1 = Vs === "x ), l.withCredentials = !!a.withCredentials, d && l.setRequestHeader) for (const M in d) d.hasOwnProperty(M) && l.setRequestHeader(M, d[M]); - return a.rawBody && (l.responseType = "arraybuffer"), r.applyMiddleware("onRequest", { options: a, adapter: Vs, request: l, context: r }), l.send(a.body || null), y && (u.connect = setTimeout(() => R("ETIMEDOUT"), y.connect)), { abort: C }; + return a.rawBody && (l.responseType = "arraybuffer"), r.applyMiddleware("onRequest", { options: a, adapter: za, request: l, context: r }), l.send(a.body || null), y && (u.connect = setTimeout(() => I("ETIMEDOUT"), y.connect)), { abort: C }; function C() { p = !0, l && l.abort(); } - function R(M) { + function I(M) { b = !0, l.abort(); const z = new Error( M === "ESOCKETTIMEDOUT" ? `Socket timed out on request to ${a.url}` : `Connection timed out on request to ${a.url}` @@ -266,15 +266,15 @@ const Vs = typeof XMLHttpRequest == "function" ? "xhr" : "fetch", p1 = Vs === "x z.code = M, r.channels.error.publish(z); } function O() { - y && (I(), u.socket = setTimeout(() => R("ESOCKETTIMEDOUT"), y.socket)); + y && (R(), u.socket = setTimeout(() => I("ESOCKETTIMEDOUT"), y.socket)); } - function I(M) { + function R(M) { (M || p || l.readyState >= 2 && u.connect) && clearTimeout(u.connect), u.socket && clearTimeout(u.socket); } function x(M) { if (m) return; - I(!0), m = !0, l = null; + R(!0), m = !0, l = null; const z = M || new Error(`Network error while attempting to reach ${a.url}`); z.isNetworkError = !0, z.request = a, e(z); } @@ -283,7 +283,7 @@ const Vs = typeof XMLHttpRequest == "function" ? "xhr" : "fetch", p1 = Vs === "x body: l.response || (l.responseType === "" || l.responseType === "text" ? l.responseText : ""), url: a.url, method: a.method, - headers: l1(l.getAllResponseHeaders()), + headers: u1(l.getAllResponseHeaders()), statusCode: l.status, statusMessage: l.statusText }; @@ -294,17 +294,17 @@ const Vs = typeof XMLHttpRequest == "function" ? "xhr" : "fetch", p1 = Vs === "x x(new Error("Unknown XHR error")); return; } - I(), m = !0, e(null, D()); + R(), m = !0, e(null, D()); } } -}, v1 = (r = [], e = g1) => zl(r, e), m1 = "browser"; -var Yf = { exports: {} }, Ma, Zf; -function y1() { - if (Zf) - return Ma; - Zf = 1; +}, d1 = (r = [], e = h1) => Bl(r, e); +var Kf = { exports: {} }, $a, Jf; +function p1() { + if (Jf) + return $a; + Jf = 1; var r = 1e3, e = r * 60, n = e * 60, s = n * 24, a = s * 7, u = s * 365.25; - Ma = function(p, m) { + $a = function(p, m) { m = m || {}; var b = typeof p; if (b === "string" && p.length > 0) @@ -376,13 +376,13 @@ function y1() { return m >= s ? y(p, m, s, "day") : m >= n ? y(p, m, n, "hour") : m >= e ? y(p, m, e, "minute") : m >= r ? y(p, m, r, "second") : p + " ms"; } function y(p, m, b, C) { - var R = m >= b * 1.5; - return Math.round(p / b) + " " + C + (R ? "s" : ""); + var I = m >= b * 1.5; + return Math.round(p / b) + " " + C + (I ? "s" : ""); } - return Ma; + return $a; } -function w1(r) { - n.debug = n, n.default = n, n.coerce = d, n.disable = u, n.enable = a, n.enabled = f, n.humanize = y1(), n.destroy = y, Object.keys(r).forEach((p) => { +function g1(r) { + n.debug = n, n.default = n, n.coerce = d, n.disable = u, n.enable = a, n.enabled = f, n.humanize = p1(), n.destroy = y, Object.keys(r).forEach((p) => { n[p] = r[p]; }), n.names = [], n.skips = [], n.formatters = {}; function e(p) { @@ -393,31 +393,31 @@ function w1(r) { } n.selectColor = e; function n(p) { - let m, b = null, C, R; - function O(...I) { + let m, b = null, C, I; + function O(...R) { if (!O.enabled) return; const x = O, D = Number(/* @__PURE__ */ new Date()), U = D - (m || D); - x.diff = U, x.prev = m, x.curr = D, m = D, I[0] = n.coerce(I[0]), typeof I[0] != "string" && I.unshift("%O"); + x.diff = U, x.prev = m, x.curr = D, m = D, R[0] = n.coerce(R[0]), typeof R[0] != "string" && R.unshift("%O"); let M = 0; - I[0] = I[0].replace(/%([a-zA-Z%])/g, (z, ht) => { + R[0] = R[0].replace(/%([a-zA-Z%])/g, (z, ht) => { if (z === "%%") return "%"; M++; const _t = n.formatters[ht]; if (typeof _t == "function") { - const xt = I[M]; - z = _t.call(x, xt), I.splice(M, 1), M--; + const xt = R[M]; + z = _t.call(x, xt), R.splice(M, 1), M--; } return z; - }), n.formatArgs.call(x, I), (x.log || n.log).apply(x, I); + }), n.formatArgs.call(x, R), (x.log || n.log).apply(x, R); } return O.namespace = p, O.useColors = n.useColors(), O.color = n.selectColor(p), O.extend = s, O.destroy = n.destroy, Object.defineProperty(O, "enabled", { enumerable: !0, configurable: !1, - get: () => b !== null ? b : (C !== n.namespaces && (C = n.namespaces, R = n.enabled(p)), R), - set: (I) => { - b = I; + get: () => b !== null ? b : (C !== n.namespaces && (C = n.namespaces, I = n.enabled(p)), I), + set: (R) => { + b = R; } }), typeof n.init == "function" && n.init(O), O; } @@ -462,7 +462,7 @@ function w1(r) { } return n.enable(n.load()), n; } -var b1 = w1; +var v1 = g1; (function(r, e) { e.formatArgs = s, e.save = a, e.load = u, e.useColors = n, e.storage = f(), e.destroy = /* @__PURE__ */ (() => { let d = !1; @@ -586,7 +586,7 @@ var b1 = w1; } catch { } } - r.exports = b1(e); + r.exports = v1(e); const { formatters: l } = r.exports; l.j = function(d) { try { @@ -595,33 +595,33 @@ var b1 = w1; return "[UnexpectedJSONParseError]: " + y.message; } }; -})(Yf, Yf.exports); -const _1 = typeof Buffer > "u" ? () => !1 : (r) => Buffer.isBuffer(r); +})(Kf, Kf.exports); +const m1 = typeof Buffer > "u" ? () => !1 : (r) => Buffer.isBuffer(r); /*! * is-plain-object * * Copyright (c) 2014-2017, Jon Schlinkert. * Released under the MIT License. */ -function Qf(r) { +function Xf(r) { return Object.prototype.toString.call(r) === "[object Object]"; } -function C1(r) { - if (Qf(r) === !1) +function y1(r) { + if (Xf(r) === !1) return !1; const e = r.constructor; if (e === void 0) return !0; const n = e.prototype; - return !(Qf(n) === !1 || // eslint-disable-next-line no-prototype-builtins + return !(Xf(n) === !1 || // eslint-disable-next-line no-prototype-builtins n.hasOwnProperty("isPrototypeOf") === !1); } -const E1 = ["boolean", "string", "number"]; -function A1() { +const w1 = ["boolean", "string", "number"]; +function b1() { return { processOptions: (r) => { const e = r.body; - return !e || !(typeof e.pipe != "function" && !_1(e) && (E1.indexOf(typeof e) !== -1 || Array.isArray(e) || C1(e))) ? r : Object.assign({}, r, { + return !e || !(typeof e.pipe != "function" && !m1(e) && (w1.indexOf(typeof e) !== -1 || Array.isArray(e) || y1(e))) ? r : Object.assign({}, r, { body: JSON.stringify(r.body), headers: Object.assign({}, r.headers, { "Content-Type": "application/json" @@ -630,7 +630,7 @@ function A1() { } }; } -function x1(r) { +function _1(r) { return { onResponse: (n) => { const s = n.headers["content-type"] || "", a = r && r.force || s.indexOf("application/json") !== -1; @@ -650,11 +650,11 @@ function x1(r) { } let vi = {}; typeof globalThis < "u" ? vi = globalThis : typeof window < "u" ? vi = window : typeof global < "u" ? vi = global : typeof self < "u" && (vi = self); -var S1 = vi; -function I1(r = {}) { +var C1 = vi; +function E1(r = {}) { const e = ( // eslint-disable-next-line @typescript-eslint/no-explicit-any -- @TODO consider dropping checking for a global Observable since it's not on a standards track - r.implementation || S1.Observable + r.implementation || C1.Observable ); if (!e) throw new Error( @@ -668,7 +668,7 @@ function I1(r = {}) { }), n.request.publish(s), () => n.abort.publish())) }; } -function R1() { +function A1() { return { onRequest: (r) => { if (r.adapter !== "xhr") @@ -690,8 +690,8 @@ function R1() { } }; } -var O1 = Object.defineProperty, T1 = (r, e, n) => e in r ? O1(r, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : r[e] = n, Si = (r, e, n) => T1(r, typeof e != "symbol" ? e + "" : e, n); -class L1 { +var x1 = Object.defineProperty, S1 = (r, e, n) => e in r ? x1(r, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : r[e] = n, Si = (r, e, n) => S1(r, typeof e != "symbol" ? e + "" : e, n); +class R1 { constructor(e) { Si(this, "__CANCEL__", !0), Si(this, "message"), this.message = e; } @@ -699,7 +699,7 @@ class L1 { return `Cancel${this.message ? `: ${this.message}` : ""}`; } } -const tl = class { +const Yf = class { constructor(r) { if (Si(this, "promise"), Si(this, "reason"), typeof r != "function") throw new TypeError("executor must be a function."); @@ -707,27 +707,27 @@ const tl = class { this.promise = new Promise((n) => { e = n; }), r((n) => { - this.reason || (this.reason = new L1(n), e(this.reason)); + this.reason || (this.reason = new R1(n), e(this.reason)); }); } }; -Si(tl, "source", () => { +Si(Yf, "source", () => { let r; return { - token: new tl((e) => { + token: new Yf((e) => { r = e; }), cancel: r }; }); -var Xl = (r, e, n) => n.method !== "GET" && n.method !== "HEAD" ? !1 : r.isNetworkError || !1; -const $1 = (r) => r !== null && typeof r == "object" && typeof r.pipe == "function"; -var P1 = (r) => { - const e = r.maxRetries || 5, n = r.retryDelay || F1, s = r.shouldRetry; +var jl = (r, e, n) => n.method !== "GET" && n.method !== "HEAD" ? !1 : r.isNetworkError || !1; +const I1 = (r) => r !== null && typeof r == "object" && typeof r.pipe == "function"; +var O1 = (r) => { + const e = r.maxRetries || 5, n = r.retryDelay || T1, s = r.shouldRetry; return { onError: (a, u) => { const f = u.options, l = f.maxRetries || e, d = f.retryDelay || n, y = f.shouldRetry || s, p = f.attemptNumber || 0; - if ($1(f.body) || !y(a, p, f) || p >= l) + if (I1(f.body) || !y(a, p, f) || p >= l) return a; const m = Object.assign({}, u, { options: Object.assign({}, f, { attemptNumber: p + 1 }) @@ -736,29 +736,29 @@ var P1 = (r) => { } }; }; -function F1(r) { +function T1(r) { return 100 * Math.pow(2, r) + Math.random() * 100; } -const cu = (r = {}) => P1({ shouldRetry: Xl, ...r }); -cu.shouldRetry = Xl; -var Va = function(r, e) { - return Va = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, s) { +const ou = (r = {}) => O1({ shouldRetry: jl, ...r }); +ou.shouldRetry = jl; +var Ka = function(r, e) { + return Ka = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, s) { n.__proto__ = s; } || function(n, s) { for (var a in s) Object.prototype.hasOwnProperty.call(s, a) && (n[a] = s[a]); - }, Va(r, e); + }, Ka(r, e); }; -function Qe(r, e) { +function Jn(r, e) { if (typeof e != "function" && e !== null) throw new TypeError("Class extends value " + String(e) + " is not a constructor or null"); - Va(r, e); + Ka(r, e); function n() { this.constructor = r; } r.prototype = e === null ? Object.create(e) : (n.prototype = e.prototype, new n()); } -function M1(r, e, n, s) { +function L1(r, e, n, s) { function a(u) { return u instanceof n ? u : new n(function(f) { f(u); @@ -785,7 +785,7 @@ function M1(r, e, n, s) { y((s = s.apply(r, e || [])).next()); }); } -function Vl(r, e) { +function zl(r, e) { var n = { label: 0, sent: function() { if (u[0] & 1) throw u[1]; @@ -850,7 +850,7 @@ function Vl(r, e) { return { value: y[0] ? y[1] : void 0, done: !0 }; } } -function Kr(r) { +function zr(r) { var e = typeof Symbol == "function" && Symbol.iterator, n = e && r[e], s = 0; if (n) return n.call(r); @@ -862,7 +862,7 @@ function Kr(r) { }; throw new TypeError(e ? "Object is not iterable." : "Symbol.iterator is not defined."); } -function Te(r, e) { +function Ye(r, e) { var n = typeof Symbol == "function" && r[Symbol.iterator]; if (!n) return r; @@ -882,16 +882,16 @@ function Te(r, e) { } return u; } -function Le(r, e, n) { +function Ve(r, e, n) { if (n || arguments.length === 2) for (var s = 0, a = e.length, u; s < a; s++) (u || !(s in e)) && (u || (u = Array.prototype.slice.call(e, 0, s)), u[s] = e[s]); return r.concat(u || Array.prototype.slice.call(e)); } -function Hr(r) { - return this instanceof Hr ? (this.v = r, this) : new Hr(r); +function Br(r) { + return this instanceof Br ? (this.v = r, this) : new Br(r); } -function D1(r, e, n) { +function $1(r, e, n) { if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); var s = n.apply(r, e || []), a, u = []; @@ -899,26 +899,26 @@ function D1(r, e, n) { return this; }, a; function f(C) { - return function(R) { - return Promise.resolve(R).then(C, m); + return function(I) { + return Promise.resolve(I).then(C, m); }; } - function l(C, R) { + function l(C, I) { s[C] && (a[C] = function(O) { - return new Promise(function(I, x) { - u.push([C, O, I, x]) > 1 || d(C, O); + return new Promise(function(R, x) { + u.push([C, O, R, x]) > 1 || d(C, O); }); - }, R && (a[C] = R(a[C]))); + }, I && (a[C] = I(a[C]))); } - function d(C, R) { + function d(C, I) { try { - y(s[C](R)); + y(s[C](I)); } catch (O) { b(u[0][3], O); } } function y(C) { - C.value instanceof Hr ? Promise.resolve(C.value.v).then(p, m) : b(u[0][2], C); + C.value instanceof Br ? Promise.resolve(C.value.v).then(p, m) : b(u[0][2], C); } function p(C) { d("next", C); @@ -926,15 +926,15 @@ function D1(r, e, n) { function m(C) { d("throw", C); } - function b(C, R) { - C(R), u.shift(), u.length && d(u[0][0], u[0][1]); + function b(C, I) { + C(I), u.shift(), u.length && d(u[0][0], u[0][1]); } } -function U1(r) { +function P1(r) { if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); var e = r[Symbol.asyncIterator], n; - return e ? e.call(r) : (r = typeof Kr == "function" ? Kr(r) : r[Symbol.iterator](), n = {}, s("next"), s("throw"), s("return"), n[Symbol.asyncIterator] = function() { + return e ? e.call(r) : (r = typeof zr == "function" ? zr(r) : r[Symbol.iterator](), n = {}, s("next"), s("throw"), s("return"), n[Symbol.asyncIterator] = function() { return this; }, n); function s(u) { @@ -953,13 +953,13 @@ function U1(r) { function bt(r) { return typeof r == "function"; } -function fu(r) { +function au(r) { var e = function(s) { Error.call(s), s.stack = new Error().stack; }, n = r(e); return n.prototype = Object.create(Error.prototype), n.prototype.constructor = n, n; } -var Da = fu(function(r) { +var Pa = au(function(r) { return function(n) { r(this), this.message = n ? n.length + ` errors occurred during unsubscription: ` + n.map(function(s, a) { @@ -968,13 +968,13 @@ var Da = fu(function(r) { `) : "", this.name = "UnsubscriptionError", this.errors = n; }; }); -function Ys(r, e) { +function Ja(r, e) { if (r) { var n = r.indexOf(e); 0 <= n && r.splice(n, 1); } } -var vr = function() { +var Kr = function() { function r(e) { this.initialTeardown = e, this.closed = !1, this._parentage = null, this._finalizers = null; } @@ -986,7 +986,7 @@ var vr = function() { if (f) if (this._parentage = null, Array.isArray(f)) try { - for (var l = Kr(f), d = l.next(); !d.done; d = l.next()) { + for (var l = zr(f), d = l.next(); !d.done; d = l.next()) { var y = d.value; y.remove(this); } @@ -1007,18 +1007,18 @@ var vr = function() { try { p(); } catch (O) { - u = O instanceof Da ? O.errors : [O]; + u = O instanceof Pa ? O.errors : [O]; } var m = this._finalizers; if (m) { this._finalizers = null; try { - for (var b = Kr(m), C = b.next(); !C.done; C = b.next()) { - var R = C.value; + for (var b = zr(m), C = b.next(); !C.done; C = b.next()) { + var I = C.value; try { - el(R); + Vf(I); } catch (O) { - u = u ?? [], O instanceof Da ? u = Le(Le([], Te(u)), Te(O.errors)) : u.push(O); + u = u ?? [], O instanceof Pa ? u = Ve(Ve([], Ye(u)), Ye(O.errors)) : u.push(O); } } } catch (O) { @@ -1033,13 +1033,13 @@ var vr = function() { } } if (u) - throw new Da(u); + throw new Pa(u); } }, r.prototype.add = function(e) { var n; if (e && e !== this) if (this.closed) - el(e); + Vf(e); else { if (e instanceof r) { if (e.closed || e._hasParent(this)) @@ -1056,58 +1056,58 @@ var vr = function() { this._parentage = Array.isArray(n) ? (n.push(e), n) : n ? [n, e] : e; }, r.prototype._removeParent = function(e) { var n = this._parentage; - n === e ? this._parentage = null : Array.isArray(n) && Ys(n, e); + n === e ? this._parentage = null : Array.isArray(n) && Ja(n, e); }, r.prototype.remove = function(e) { var n = this._finalizers; - n && Ys(n, e), e instanceof r && e._removeParent(this); + n && Ja(n, e), e instanceof r && e._removeParent(this); }, r.EMPTY = function() { var e = new r(); return e.closed = !0, e; }(), r; -}(), Yl = vr.EMPTY; -function Zl(r) { - return r instanceof vr || r && "closed" in r && bt(r.remove) && bt(r.add) && bt(r.unsubscribe); +}(), Kl = Kr.EMPTY; +function Jl(r) { + return r instanceof Kr || r && "closed" in r && bt(r.remove) && bt(r.add) && bt(r.unsubscribe); } -function el(r) { +function Vf(r) { bt(r) ? r() : r.unsubscribe(); } -var Ql = { +var Xl = { onUnhandledError: null, onStoppedNotification: null, Promise: void 0, useDeprecatedSynchronousErrorHandling: !1, useDeprecatedNextContext: !1 -}, Ya = { +}, Xa = { setTimeout: function(r, e) { for (var n = [], s = 2; s < arguments.length; s++) n[s - 2] = arguments[s]; - var a = Ya.delegate; - return a != null && a.setTimeout ? a.setTimeout.apply(a, Le([r, e], Te(n))) : setTimeout.apply(void 0, Le([r, e], Te(n))); + var a = Xa.delegate; + return a != null && a.setTimeout ? a.setTimeout.apply(a, Ve([r, e], Ye(n))) : setTimeout.apply(void 0, Ve([r, e], Ye(n))); }, clearTimeout: function(r) { - var e = Ya.delegate; + var e = Xa.delegate; return ((e == null ? void 0 : e.clearTimeout) || clearTimeout)(r); }, delegate: void 0 }; -function th(r) { - Ya.setTimeout(function() { +function Yl(r) { + Xa.setTimeout(function() { throw r; }); } -function Za() { +function Ya() { } function Ns(r) { r(); } -var lu = function(r) { - Qe(e, r); +var uu = function(r) { + Jn(e, r); function e(n) { var s = r.call(this) || this; - return s.isStopped = !1, n ? (s.destination = n, Zl(n) && n.add(s)) : s.destination = W1, s; + return s.isStopped = !1, n ? (s.destination = n, Jl(n) && n.add(s)) : s.destination = U1, s; } return e.create = function(n, s, a) { - return new Ii(n, s, a); + return new Ri(n, s, a); }, e.prototype.next = function(n) { this.isStopped || this._next(n); }, e.prototype.error = function(n) { @@ -1131,11 +1131,11 @@ var lu = function(r) { this.unsubscribe(); } }, e; -}(vr), k1 = Function.prototype.bind; -function Ua(r, e) { - return k1.call(r, e); +}(Kr), F1 = Function.prototype.bind; +function Fa(r, e) { + return F1.call(r, e); } -var N1 = function() { +var M1 = function() { function r(e) { this.partialObserver = e; } @@ -1166,8 +1166,8 @@ var N1 = function() { xs(n); } }, r; -}(), Ii = function(r) { - Qe(e, r); +}(), Ri = function(r) { + Jn(e, r); function e(n, s, a) { var u = r.call(this) || this, f; if (bt(n) || !n) @@ -1178,48 +1178,48 @@ var N1 = function() { }; else { var l; - u && Ql.useDeprecatedNextContext ? (l = Object.create(n), l.unsubscribe = function() { + u && Xl.useDeprecatedNextContext ? (l = Object.create(n), l.unsubscribe = function() { return u.unsubscribe(); }, f = { - next: n.next && Ua(n.next, l), - error: n.error && Ua(n.error, l), - complete: n.complete && Ua(n.complete, l) + next: n.next && Fa(n.next, l), + error: n.error && Fa(n.error, l), + complete: n.complete && Fa(n.complete, l) }) : f = n; } - return u.destination = new N1(f), u; + return u.destination = new M1(f), u; } return e; -}(lu); +}(uu); function xs(r) { - th(r); + Yl(r); } -function q1(r) { +function D1(r) { throw r; } -var W1 = { +var U1 = { closed: !0, - next: Za, - error: q1, - complete: Za -}, hu = function() { + next: Ya, + error: D1, + complete: Ya +}, cu = function() { return typeof Symbol == "function" && Symbol.observable || "@@observable"; }(); function Jr(r) { return r; } -function B1() { +function k1() { for (var r = [], e = 0; e < arguments.length; e++) r[e] = arguments[e]; - return eh(r); + return Vl(r); } -function eh(r) { +function Vl(r) { return r.length === 0 ? Jr : r.length === 1 ? r[0] : function(n) { return r.reduce(function(s, a) { return a(s); }, n); }; } -var $t = function() { +var Mt = function() { function r(e) { e && (this._subscribe = e); } @@ -1227,7 +1227,7 @@ var $t = function() { var n = new r(); return n.source = this, n.operator = e, n; }, r.prototype.subscribe = function(e, n, s) { - var a = this, u = G1(e) ? e : new Ii(e, n, s); + var a = this, u = q1(e) ? e : new Ri(e, n, s); return Ns(function() { var f = a, l = f.operator, d = f.source; u.add(l ? l.call(u, d) : d ? a._subscribe(u) : a._trySubscribe(u)); @@ -1240,8 +1240,8 @@ var $t = function() { } }, r.prototype.forEach = function(e, n) { var s = this; - return n = nl(n), new n(function(a, u) { - var f = new Ii({ + return n = Zf(n), new n(function(a, u) { + var f = new Ri({ next: function(l) { try { e(l); @@ -1257,15 +1257,15 @@ var $t = function() { }, r.prototype._subscribe = function(e) { var n; return (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(e); - }, r.prototype[hu] = function() { + }, r.prototype[cu] = function() { return this; }, r.prototype.pipe = function() { for (var e = [], n = 0; n < arguments.length; n++) e[n] = arguments[n]; - return eh(e)(this); + return Vl(e)(this); }, r.prototype.toPromise = function(e) { var n = this; - return e = nl(e), new e(function(s, a) { + return e = Zf(e), new e(function(s, a) { var u; n.subscribe(function(f) { return u = f; @@ -1279,22 +1279,22 @@ var $t = function() { return new r(e); }, r; }(); -function nl(r) { +function Zf(r) { var e; - return (e = r ?? Ql.Promise) !== null && e !== void 0 ? e : Promise; + return (e = r ?? Xl.Promise) !== null && e !== void 0 ? e : Promise; } -function H1(r) { +function N1(r) { return r && bt(r.next) && bt(r.error) && bt(r.complete); } -function G1(r) { - return r && r instanceof lu || H1(r) && Zl(r); +function q1(r) { + return r && r instanceof uu || N1(r) && Jl(r); } -function nh(r) { +function Zl(r) { return bt(r == null ? void 0 : r.lift); } function me(r) { return function(e) { - if (nh(e)) + if (Zl(e)) return e.lift(function(n) { try { return r(n, this); @@ -1306,10 +1306,10 @@ function me(r) { }; } function ve(r, e, n, s, a) { - return new j1(r, e, n, s, a); + return new W1(r, e, n, s, a); } -var j1 = function(r) { - Qe(e, r); +var W1 = function(r) { + Jn(e, r); function e(n, s, a, u, f, l) { var d = r.call(this, n) || this; return d.onFinalize = f, d.shouldUnsubscribe = l, d._next = s ? function(y) { @@ -1343,7 +1343,7 @@ var j1 = function(r) { r.prototype.unsubscribe.call(this), !s && ((n = this.onFinalize) === null || n === void 0 || n.call(this)); } }, e; -}(lu); +}(uu); function mi() { return me(function(r, e) { var n = null; @@ -1359,11 +1359,11 @@ function mi() { r.subscribe(s), s.closed || (n = r.connect()); }); } -var z1 = function(r) { - Qe(e, r); +var B1 = function(r) { + Jn(e, r); function e(n, s) { var a = r.call(this) || this; - return a.source = n, a.subjectFactory = s, a._subject = null, a._refCount = 0, a._connection = null, nh(n) && (a.lift = n.lift), a; + return a.source = n, a.subjectFactory = s, a._subject = null, a._refCount = 0, a._connection = null, Zl(n) && (a.lift = n.lift), a; } return e.prototype._subscribe = function(n) { return this.getSubject().subscribe(n); @@ -1377,7 +1377,7 @@ var z1 = function(r) { }, e.prototype.connect = function() { var n = this, s = this._connection; if (!s) { - s = this._connection = new vr(); + s = this._connection = new Kr(); var a = this.getSubject(); s.add(this.source.subscribe(ve(a, void 0, function() { n._teardown(), a.complete(); @@ -1385,28 +1385,28 @@ var z1 = function(r) { n._teardown(), a.error(u); }, function() { return n._teardown(); - }))), s.closed && (this._connection = null, s = vr.EMPTY); + }))), s.closed && (this._connection = null, s = Kr.EMPTY); } return s; }, e.prototype.refCount = function() { return mi()(this); }, e; -}($t), K1 = fu(function(r) { +}(Mt), H1 = au(function(r) { return function() { r(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed"; }; -}), Ve = function(r) { - Qe(e, r); +}), Je = function(r) { + Jn(e, r); function e() { var n = r.call(this) || this; return n.closed = !1, n.currentObservers = null, n.observers = [], n.isStopped = !1, n.hasError = !1, n.thrownError = null, n; } return e.prototype.lift = function(n) { - var s = new rl(this, this); + var s = new Qf(this, this); return s.operator = n, s; }, e.prototype._throwIfClosed = function() { if (this.closed) - throw new K1(); + throw new H1(); }, e.prototype.next = function(n) { var s = this; Ns(function() { @@ -1414,7 +1414,7 @@ var z1 = function(r) { if (s._throwIfClosed(), !s.isStopped) { s.currentObservers || (s.currentObservers = Array.from(s.observers)); try { - for (var f = Kr(s.currentObservers), l = f.next(); !l.done; l = f.next()) { + for (var f = zr(s.currentObservers), l = f.next(); !l.done; l = f.next()) { var d = l.value; d.next(n); } @@ -1463,20 +1463,20 @@ var z1 = function(r) { return this._throwIfClosed(), this._checkFinalizedStatuses(n), this._innerSubscribe(n); }, e.prototype._innerSubscribe = function(n) { var s = this, a = this, u = a.hasError, f = a.isStopped, l = a.observers; - return u || f ? Yl : (this.currentObservers = null, l.push(n), new vr(function() { - s.currentObservers = null, Ys(l, n); + return u || f ? Kl : (this.currentObservers = null, l.push(n), new Kr(function() { + s.currentObservers = null, Ja(l, n); })); }, e.prototype._checkFinalizedStatuses = function(n) { var s = this, a = s.hasError, u = s.thrownError, f = s.isStopped; a ? n.error(u) : f && n.complete(); }, e.prototype.asObservable = function() { - var n = new $t(); + var n = new Mt(); return n.source = this, n; }, e.create = function(n, s) { - return new rl(n, s); + return new Qf(n, s); }, e; -}($t), rl = function(r) { - Qe(e, r); +}(Mt), Qf = function(r) { + Jn(e, r); function e(n, s) { var a = r.call(this) || this; return a.destination = n, a.source = s, a; @@ -1492,10 +1492,10 @@ var z1 = function(r) { (s = (n = this.destination) === null || n === void 0 ? void 0 : n.complete) === null || s === void 0 || s.call(n); }, e.prototype._subscribe = function(n) { var s, a; - return (a = (s = this.source) === null || s === void 0 ? void 0 : s.subscribe(n)) !== null && a !== void 0 ? a : Yl; + return (a = (s = this.source) === null || s === void 0 ? void 0 : s.subscribe(n)) !== null && a !== void 0 ? a : Kl; }, e; -}(Ve), J1 = function(r) { - Qe(e, r); +}(Je), G1 = function(r) { + Jn(e, r); function e(n) { var s = r.call(this) || this; return s._value = n, s; @@ -1517,15 +1517,15 @@ var z1 = function(r) { }, e.prototype.next = function(n) { r.prototype.next.call(this, this._value = n); }, e; -}(Ve), du = { +}(Je), Ql = { now: function() { - return (du.delegate || Date).now(); + return (Ql.delegate || Date).now(); }, delegate: void 0 -}, X1 = function(r) { - Qe(e, r); +}, j1 = function(r) { + Jn(e, r); function e(n, s, a) { - n === void 0 && (n = 1 / 0), s === void 0 && (s = 1 / 0), a === void 0 && (a = du); + n === void 0 && (n = 1 / 0), s === void 0 && (s = 1 / 0), a === void 0 && (a = Ql); var u = r.call(this) || this; return u._bufferSize = n, u._windowTime = s, u._timestampProvider = a, u._buffer = [], u._infiniteTimeWindow = !0, u._infiniteTimeWindow = s === 1 / 0, u._bufferSize = Math.max(1, n), u._windowTime = Math.max(1, s), u; } @@ -1545,157 +1545,63 @@ var z1 = function(r) { y && u.splice(0, y + 1); } }, e; -}(Ve), V1 = function(r) { - Qe(e, r); - function e(n, s) { - return r.call(this) || this; - } - return e.prototype.schedule = function(n, s) { - return this; - }, e; -}(vr), Zs = { - setInterval: function(r, e) { - for (var n = [], s = 2; s < arguments.length; s++) - n[s - 2] = arguments[s]; - var a = Zs.delegate; - return a != null && a.setInterval ? a.setInterval.apply(a, Le([r, e], Te(n))) : setInterval.apply(void 0, Le([r, e], Te(n))); - }, - clearInterval: function(r) { - var e = Zs.delegate; - return ((e == null ? void 0 : e.clearInterval) || clearInterval)(r); - }, - delegate: void 0 -}, Y1 = function(r) { - Qe(e, r); - function e(n, s) { - var a = r.call(this, n, s) || this; - return a.scheduler = n, a.work = s, a.pending = !1, a; - } - return e.prototype.schedule = function(n, s) { - var a; - if (s === void 0 && (s = 0), this.closed) - return this; - this.state = n; - var u = this.id, f = this.scheduler; - return u != null && (this.id = this.recycleAsyncId(f, u, s)), this.pending = !0, this.delay = s, this.id = (a = this.id) !== null && a !== void 0 ? a : this.requestAsyncId(f, this.id, s), this; - }, e.prototype.requestAsyncId = function(n, s, a) { - return a === void 0 && (a = 0), Zs.setInterval(n.flush.bind(n, this), a); - }, e.prototype.recycleAsyncId = function(n, s, a) { - if (a === void 0 && (a = 0), a != null && this.delay === a && this.pending === !1) - return s; - s != null && Zs.clearInterval(s); - }, e.prototype.execute = function(n, s) { - if (this.closed) - return new Error("executing a cancelled action"); - this.pending = !1; - var a = this._execute(n, s); - if (a) - return a; - this.pending === !1 && this.id != null && (this.id = this.recycleAsyncId(this.scheduler, this.id, null)); - }, e.prototype._execute = function(n, s) { - var a = !1, u; - try { - this.work(n); - } catch (f) { - a = !0, u = f || new Error("Scheduled action threw falsy error"); - } - if (a) - return this.unsubscribe(), u; - }, e.prototype.unsubscribe = function() { - if (!this.closed) { - var n = this, s = n.id, a = n.scheduler, u = a.actions; - this.work = this.state = this.scheduler = null, this.pending = !1, Ys(u, this), s != null && (this.id = this.recycleAsyncId(a, s, null)), this.delay = null, r.prototype.unsubscribe.call(this); - } - }, e; -}(V1), il = function() { - function r(e, n) { - n === void 0 && (n = r.now), this.schedulerActionCtor = e, this.now = n; - } - return r.prototype.schedule = function(e, n, s) { - return n === void 0 && (n = 0), new this.schedulerActionCtor(this, e).schedule(s, n); - }, r.now = du.now, r; -}(), Z1 = function(r) { - Qe(e, r); - function e(n, s) { - s === void 0 && (s = il.now); - var a = r.call(this, n, s) || this; - return a.actions = [], a._active = !1, a; - } - return e.prototype.flush = function(n) { - var s = this.actions; - if (this._active) { - s.push(n); - return; - } - var a; - this._active = !0; - do - if (a = n.execute(n.state, n.delay)) - break; - while (n = s.shift()); - if (this._active = !1, a) { - for (; n = s.shift(); ) - n.unsubscribe(); - throw a; - } - }, e; -}(il), Q1 = new Z1(Y1), tb = Q1, mo = new $t(function(r) { +}(Je), po = new Mt(function(r) { return r.complete(); }); -function rh(r) { +function z1(r) { return r && bt(r.schedule); } -function pu(r) { +function fu(r) { return r[r.length - 1]; } -function ih(r) { - return bt(pu(r)) ? r.pop() : void 0; +function th(r) { + return bt(fu(r)) ? r.pop() : void 0; } -function sh(r) { - return rh(pu(r)) ? r.pop() : void 0; +function eh(r) { + return z1(fu(r)) ? r.pop() : void 0; } -function eb(r, e) { - return typeof pu(r) == "number" ? r.pop() : e; +function K1(r, e) { + return typeof fu(r) == "number" ? r.pop() : e; } -var oh = function(r) { +var nh = function(r) { return r && typeof r.length == "number" && typeof r != "function"; }; -function ah(r) { +function rh(r) { return bt(r == null ? void 0 : r.then); } -function uh(r) { - return bt(r[hu]); +function ih(r) { + return bt(r[cu]); } -function ch(r) { +function sh(r) { return Symbol.asyncIterator && bt(r == null ? void 0 : r[Symbol.asyncIterator]); } -function fh(r) { +function oh(r) { return new TypeError("You provided " + (r !== null && typeof r == "object" ? "an invalid object" : "'" + r + "'") + " where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable."); } -function nb() { +function J1() { return typeof Symbol != "function" || !Symbol.iterator ? "@@iterator" : Symbol.iterator; } -var lh = nb(); -function hh(r) { - return bt(r == null ? void 0 : r[lh]); +var ah = J1(); +function uh(r) { + return bt(r == null ? void 0 : r[ah]); } -function dh(r) { - return D1(this, arguments, function() { +function ch(r) { + return $1(this, arguments, function() { var n, s, a, u; - return Vl(this, function(f) { + return zl(this, function(f) { switch (f.label) { case 0: n = r.getReader(), f.label = 1; case 1: f.trys.push([1, , 9, 10]), f.label = 2; case 2: - return [4, Hr(n.read())]; + return [4, Br(n.read())]; case 3: - return s = f.sent(), a = s.value, u = s.done, u ? [4, Hr(void 0)] : [3, 5]; + return s = f.sent(), a = s.value, u = s.done, u ? [4, Br(void 0)] : [3, 5]; case 4: return [2, f.sent()]; case 5: - return [4, Hr(a)]; + return [4, Br(a)]; case 6: return [4, f.sent()]; case 7: @@ -1710,57 +1616,57 @@ function dh(r) { }); }); } -function ph(r) { +function fh(r) { return bt(r == null ? void 0 : r.getReader); } -function tn(r) { - if (r instanceof $t) +function Qe(r) { + if (r instanceof Mt) return r; if (r != null) { + if (ih(r)) + return X1(r); + if (nh(r)) + return Y1(r); + if (rh(r)) + return V1(r); + if (sh(r)) + return lh(r); if (uh(r)) - return rb(r); - if (oh(r)) - return ib(r); - if (ah(r)) - return sb(r); - if (ch(r)) - return gh(r); - if (hh(r)) - return ob(r); - if (ph(r)) - return ab(r); - } - throw fh(r); -} -function rb(r) { - return new $t(function(e) { - var n = r[hu](); + return Z1(r); + if (fh(r)) + return Q1(r); + } + throw oh(r); +} +function X1(r) { + return new Mt(function(e) { + var n = r[cu](); if (bt(n.subscribe)) return n.subscribe(e); throw new TypeError("Provided object does not correctly implement Symbol.observable"); }); } -function ib(r) { - return new $t(function(e) { +function Y1(r) { + return new Mt(function(e) { for (var n = 0; n < r.length && !e.closed; n++) e.next(r[n]); e.complete(); }); } -function sb(r) { - return new $t(function(e) { +function V1(r) { + return new Mt(function(e) { r.then(function(n) { e.closed || (e.next(n), e.complete()); }, function(n) { return e.error(n); - }).then(null, th); + }).then(null, Yl); }); } -function ob(r) { - return new $t(function(e) { +function Z1(r) { + return new Mt(function(e) { var n, s; try { - for (var a = Kr(r), u = a.next(); !u.done; u = a.next()) { + for (var a = zr(r), u = a.next(); !u.done; u = a.next()) { var f = u.value; if (e.next(f), e.closed) return; @@ -1778,24 +1684,24 @@ function ob(r) { e.complete(); }); } -function gh(r) { - return new $t(function(e) { - ub(r, e).catch(function(n) { +function lh(r) { + return new Mt(function(e) { + tb(r, e).catch(function(n) { return e.error(n); }); }); } -function ab(r) { - return gh(dh(r)); +function Q1(r) { + return lh(ch(r)); } -function ub(r, e) { +function tb(r, e) { var n, s, a, u; - return M1(this, void 0, void 0, function() { + return L1(this, void 0, void 0, function() { var f, l; - return Vl(this, function(d) { + return zl(this, function(d) { switch (d.label) { case 0: - d.trys.push([0, 5, 6, 11]), n = U1(r), d.label = 1; + d.trys.push([0, 5, 6, 11]), n = P1(r), d.label = 1; case 1: return [4, n.next()]; case 2: @@ -1828,7 +1734,7 @@ function ub(r, e) { }); }); } -function En(r, e, n, s, a) { +function Cn(r, e, n, s, a) { s === void 0 && (s = 0), a === void 0 && (a = !1); var u = e.schedule(function() { n(), a ? r.add(this.schedule(null, s)) : this.unsubscribe(); @@ -1836,49 +1742,49 @@ function En(r, e, n, s, a) { if (r.add(u), !a) return u; } -function vh(r, e) { +function hh(r, e) { return e === void 0 && (e = 0), me(function(n, s) { n.subscribe(ve(s, function(a) { - return En(s, r, function() { + return Cn(s, r, function() { return s.next(a); }, e); }, function() { - return En(s, r, function() { + return Cn(s, r, function() { return s.complete(); }, e); }, function(a) { - return En(s, r, function() { + return Cn(s, r, function() { return s.error(a); }, e); })); }); } -function mh(r, e) { +function dh(r, e) { return e === void 0 && (e = 0), me(function(n, s) { s.add(r.schedule(function() { return n.subscribe(s); }, e)); }); } -function cb(r, e) { - return tn(r).pipe(mh(e), vh(e)); +function eb(r, e) { + return Qe(r).pipe(dh(e), hh(e)); } -function fb(r, e) { - return tn(r).pipe(mh(e), vh(e)); +function nb(r, e) { + return Qe(r).pipe(dh(e), hh(e)); } -function lb(r, e) { - return new $t(function(n) { +function rb(r, e) { + return new Mt(function(n) { var s = 0; return e.schedule(function() { s === r.length ? n.complete() : (n.next(r[s++]), n.closed || this.schedule()); }); }); } -function hb(r, e) { - return new $t(function(n) { +function ib(r, e) { + return new Mt(function(n) { var s; - return En(n, e, function() { - s = r[lh](), En(n, e, function() { + return Cn(n, e, function() { + s = r[ah](), Cn(n, e, function() { var a, u, f; try { a = s.next(), u = a.value, f = a.done; @@ -1893,13 +1799,13 @@ function hb(r, e) { }; }); } -function yh(r, e) { +function ph(r, e) { if (!r) throw new Error("Iterable cannot be null"); - return new $t(function(n) { - En(n, e, function() { + return new Mt(function(n) { + Cn(n, e, function() { var s = r[Symbol.asyncIterator](); - En(n, e, function() { + Cn(n, e, function() { s.next().then(function(a) { a.done ? n.complete() : n.next(a.value); }); @@ -1907,41 +1813,41 @@ function yh(r, e) { }); }); } -function db(r, e) { - return yh(dh(r), e); +function sb(r, e) { + return ph(ch(r), e); } -function pb(r, e) { +function ob(r, e) { if (r != null) { + if (ih(r)) + return eb(r, e); + if (nh(r)) + return rb(r, e); + if (rh(r)) + return nb(r, e); + if (sh(r)) + return ph(r, e); if (uh(r)) - return cb(r, e); - if (oh(r)) - return lb(r, e); - if (ah(r)) - return fb(r, e); - if (ch(r)) - return yh(r, e); - if (hh(r)) - return hb(r, e); - if (ph(r)) - return db(r, e); - } - throw fh(r); -} -function Ri(r, e) { - return e ? pb(r, e) : tn(r); -} -function Qa() { + return ib(r, e); + if (fh(r)) + return sb(r, e); + } + throw oh(r); +} +function Ii(r, e) { + return e ? ob(r, e) : Qe(r); +} +function gh() { for (var r = [], e = 0; e < arguments.length; e++) r[e] = arguments[e]; - var n = sh(r); - return Ri(r, n); + var n = eh(r); + return Ii(r, n); } -var gb = fu(function(r) { +var ab = au(function(r) { return function() { r(this), this.name = "EmptyError", this.message = "no elements in sequence"; }; }); -function Gt(r, e) { +function Ht(r, e) { var n = typeof e == "object"; return new Promise(function(s, a) { var u = !1, f; @@ -1951,15 +1857,12 @@ function Gt(r, e) { }, error: a, complete: function() { - u ? s(f) : n ? s(e.defaultValue) : a(new gb()); + u ? s(f) : n ? s(e.defaultValue) : a(new ab()); } }); }); } -function vb(r) { - return r instanceof Date && !isNaN(r); -} -function Ot(r, e) { +function Lt(r, e) { return me(function(n, s) { var a = 0; n.subscribe(ve(s, function(u) { @@ -1967,21 +1870,21 @@ function Ot(r, e) { })); }); } -var mb = Array.isArray; -function yb(r, e) { - return mb(e) ? r.apply(void 0, Le([], Te(e))) : r(e); +var ub = Array.isArray; +function cb(r, e) { + return ub(e) ? r.apply(void 0, Ve([], Ye(e))) : r(e); } -function wb(r) { - return Ot(function(e) { - return yb(r, e); +function fb(r) { + return Lt(function(e) { + return cb(r, e); }); } -function bb(r, e, n) { +function lb(r, e, n) { return n === void 0 && (n = Jr), function(s) { - sl(e, function() { + tl(e, function() { for (var a = r.length, u = new Array(a), f = a, l = a, d = function(p) { - sl(e, function() { - var m = Ri(r[p], e), b = !1; + tl(e, function() { + var m = Ii(r[p], e), b = !1; m.subscribe(ve(s, function(C) { u[p] = C, b || (b = !0, l--), l || s.next(n(u.slice())); }, function() { @@ -1993,30 +1896,30 @@ function bb(r, e, n) { }, s); }; } -function sl(r, e, n) { - r ? En(n, r, e) : e(); +function tl(r, e, n) { + r ? Cn(n, r, e) : e(); } -function _b(r, e, n, s, a, u, f, l) { +function hb(r, e, n, s, a, u, f, l) { var d = [], y = 0, p = 0, m = !1, b = function() { m && !d.length && !y && e.complete(); }, C = function(O) { - return y < s ? R(O) : d.push(O); - }, R = function(O) { + return y < s ? I(O) : d.push(O); + }, I = function(O) { u && e.next(O), y++; - var I = !1; - tn(n(O, p++)).subscribe(ve(e, function(x) { + var R = !1; + Qe(n(O, p++)).subscribe(ve(e, function(x) { a == null || a(x), u ? C(x) : e.next(x); }, function() { - I = !0; + R = !0; }, void 0, function() { - if (I) + if (R) try { y--; for (var x = function() { var D = d.shift(); - f ? En(e, f, function() { - return R(D); - }) : R(D); + f ? Cn(e, f, function() { + return I(D); + }) : I(D); }; d.length && y < s; ) x(); b(); @@ -2031,46 +1934,34 @@ function _b(r, e, n, s, a, u, f, l) { l == null || l(); }; } -function an(r, e, n) { - return n === void 0 && (n = 1 / 0), bt(e) ? an(function(s, a) { - return Ot(function(u, f) { +function on(r, e, n) { + return n === void 0 && (n = 1 / 0), bt(e) ? on(function(s, a) { + return Lt(function(u, f) { return e(s, u, a, f); - })(tn(r(s, a))); + })(Qe(r(s, a))); }, n) : (typeof e == "number" && (n = e), me(function(s, a) { - return _b(s, a, r, n); + return hb(s, a, r, n); })); } -function Cb(r) { - return r === void 0 && (r = 1 / 0), an(Jr, r); -} -function Eb(r) { - return new $t(function(e) { - tn(r()).subscribe(e); - }); +function db(r) { + return r === void 0 && (r = 1 / 0), on(Jr, r); } -function Ab(r, e, n) { - r === void 0 && (r = 0), n === void 0 && (n = tb); - var s = -1; - return e != null && (rh(e) ? n = e : s = e), new $t(function(a) { - var u = vb(r) ? +r - n.now() : r; - u < 0 && (u = 0); - var f = 0; - return n.schedule(function() { - a.closed || (a.next(f++), 0 <= s ? this.schedule(void 0, s) : a.complete()); - }, u); +function pb(r) { + return new Mt(function(e) { + Qe(r()).subscribe(e); }); } -function Gr() { +function Hr() { for (var r = [], e = 0; e < arguments.length; e++) r[e] = arguments[e]; - var n = sh(r), s = eb(r, 1 / 0), a = r; - return a.length ? a.length === 1 ? tn(a[0]) : Cb(s)(Ri(a, n)) : mo; + var n = eh(r), s = K1(r, 1 / 0), a = r; + return a.length ? a.length === 1 ? Qe(a[0]) : db(s)(Ii(a, n)) : po; } -var xb = Array.isArray; -function Sb(r) { - return r.length === 1 && xb(r[0]) ? r[0] : r; +var gb = Array.isArray; +function vb(r) { + return r.length === 1 && gb(r[0]) ? r[0] : r; } -function Ye(r, e) { +function Xe(r, e) { return me(function(n, s) { var a = 0; n.subscribe(ve(s, function(u) { @@ -2078,7 +1969,7 @@ function Ye(r, e) { })); }); } -function Ib(r, e, n, s, a) { +function mb(r, e, n, s, a) { return function(u, f) { var l = n, d = e, y = 0; u.subscribe(ve(f, function(p) { @@ -2089,43 +1980,43 @@ function Ib(r, e, n, s, a) { })); }; } -function wh() { +function vh() { for (var r = [], e = 0; e < arguments.length; e++) r[e] = arguments[e]; - var n = ih(r); - return n ? B1(wh.apply(void 0, Le([], Te(r))), wb(n)) : me(function(s, a) { - bb(Le([s], Te(Sb(r))))(a); + var n = th(r); + return n ? k1(vh.apply(void 0, Ve([], Ye(r))), fb(n)) : me(function(s, a) { + lb(Ve([s], Ye(vb(r))))(a); }); } -function Rb() { +function yb() { for (var r = [], e = 0; e < arguments.length; e++) r[e] = arguments[e]; - return wh.apply(void 0, Le([], Te(r))); + return vh.apply(void 0, Ve([], Ye(r))); } -function ka(r, e) { - return bt(e) ? an(r, e, 1) : an(r, 1); +function el(r, e) { + return bt(e) ? on(r, e, 1) : on(r, 1); } -function Ob(r) { - return new $t(function(e) { +function wb(r) { + return new Mt(function(e) { return r.subscribe(e); }); } -var Tb = { +var bb = { connector: function() { - return new Ve(); + return new Je(); } }; -function Lb(r, e) { - e === void 0 && (e = Tb); +function _b(r, e) { + e === void 0 && (e = bb); var n = e.connector; return me(function(s, a) { var u = n(); - tn(r(Ob(u))).subscribe(a), a.add(s.subscribe(u)); + Qe(r(wb(u))).subscribe(a), a.add(s.subscribe(u)); }); } -function bh(r) { +function mh(r) { return r <= 0 ? function() { - return mo; + return po; } : me(function(e, n) { var s = 0; e.subscribe(ve(n, function(a) { @@ -2133,8 +2024,8 @@ function bh(r) { })); }); } -function ol(r, e) { - return e === void 0 && (e = Jr), r = r ?? $b, me(function(n, s) { +function nl(r, e) { + return e === void 0 && (e = Jr), r = r ?? Cb, me(function(n, s) { var a, u = !0; n.subscribe(ve(s, function(f) { var l = e(f); @@ -2142,70 +2033,70 @@ function ol(r, e) { })); }); } -function $b(r, e) { +function Cb(r, e) { return r === e; } -function Pb(r, e, n) { - return n === void 0 && (n = 1 / 0), bt(e) ? an(function() { +function Eb(r, e, n) { + return n === void 0 && (n = 1 / 0), bt(e) ? on(function() { return r; - }, e, n) : (typeof e == "number" && (n = e), an(function() { + }, e, n) : (typeof e == "number" && (n = e), on(function() { return r; }, n)); } -function Fb(r, e) { +function Ab(r, e) { var n = bt(r) ? r : function() { return r; }; - return bt(e) ? Lb(e, { + return bt(e) ? _b(e, { connector: n }) : function(s) { - return new z1(s, n); + return new B1(s, n); }; } function Ss(r, e, n, s) { n && !bt(n) && (s = n); var a = bt(n) ? n : void 0; return function(u) { - return Fb(new X1(r, e, s), a)(u); + return Ab(new j1(r, e, s), a)(u); }; } -function _h(r, e) { - return me(Ib(r, e, arguments.length >= 2, !0)); +function yh(r, e) { + return me(mb(r, e, arguments.length >= 2, !0)); } -function tu(r) { +function Va(r) { r === void 0 && (r = {}); var e = r.connector, n = e === void 0 ? function() { - return new Ve(); + return new Je(); } : e, s = r.resetOnError, a = s === void 0 ? !0 : s, u = r.resetOnComplete, f = u === void 0 ? !0 : u, l = r.resetOnRefCountZero, d = l === void 0 ? !0 : l; return function(y) { - var p, m, b, C = 0, R = !1, O = !1, I = function() { + var p, m, b, C = 0, I = !1, O = !1, R = function() { m == null || m.unsubscribe(), m = void 0; }, x = function() { - I(), p = b = void 0, R = O = !1; + R(), p = b = void 0, I = O = !1; }, D = function() { var U = p; x(), U == null || U.unsubscribe(); }; return me(function(U, M) { - C++, !O && !R && I(); + C++, !O && !I && R(); var z = b = b ?? n(); M.add(function() { - C--, C === 0 && !O && !R && (m = Na(D, d)); - }), z.subscribe(M), !p && C > 0 && (p = new Ii({ + C--, C === 0 && !O && !I && (m = Ma(D, d)); + }), z.subscribe(M), !p && C > 0 && (p = new Ri({ next: function(ht) { return z.next(ht); }, error: function(ht) { - O = !0, I(), m = Na(x, a, ht), z.error(ht); + O = !0, R(), m = Ma(x, a, ht), z.error(ht); }, complete: function() { - R = !0, I(), m = Na(x, f), z.complete(); + I = !0, R(), m = Ma(x, f), z.complete(); } - }), tn(U).subscribe(p)); + }), Qe(U).subscribe(p)); })(y); }; } -function Na(r, e) { +function Ma(r, e) { for (var n = [], s = 2; s < arguments.length; s++) n[s - 2] = arguments[s]; if (e === !0) { @@ -2213,15 +2104,15 @@ function Na(r, e) { return; } if (e !== !1) { - var a = new Ii({ + var a = new Ri({ next: function() { a.unsubscribe(), r(); } }); - return tn(e.apply(void 0, Le([], Te(n)))).subscribe(a); + return Qe(e.apply(void 0, Ve([], Ye(n)))).subscribe(a); } } -function eu(r, e, n) { +function Za(r, e, n) { var s = bt(r) || e || n ? { next: r, error: e, complete: n } : r; return s ? me(function(a, u) { var f; @@ -2242,41 +2133,41 @@ function eu(r, e, n) { })); }) : Jr; } -function al() { +function rl() { for (var r = [], e = 0; e < arguments.length; e++) r[e] = arguments[e]; - var n = ih(r); + var n = th(r); return me(function(s, a) { for (var u = r.length, f = new Array(u), l = r.map(function() { return !1; }), d = !1, y = function(m) { - tn(r[m]).subscribe(ve(a, function(b) { + Qe(r[m]).subscribe(ve(a, function(b) { f[m] = b, !d && !l[m] && (l[m] = !0, (d = l.every(Jr)) && (l = null)); - }, Za)); + }, Ya)); }, p = 0; p < u; p++) y(p); s.subscribe(ve(a, function(m) { if (d) { - var b = Le([m], Te(f)); - a.next(n ? n.apply(void 0, Le([], Te(b))) : b); + var b = Ve([m], Ye(f)); + a.next(n ? n.apply(void 0, Ve([], Ye(b))) : b); } })); }); } -var Ch = { 0: 8203, 1: 8204, 2: 8205, 3: 8290, 4: 8291, 5: 8288, 6: 65279, 7: 8289, 8: 119155, 9: 119156, a: 119157, b: 119158, c: 119159, d: 119160, e: 119161, f: 119162 }, gu = { 0: 8203, 1: 8204, 2: 8205, 3: 65279 }, Mb = new Array(4).fill(String.fromCodePoint(gu[0])).join(""); -function Db(r) { +var wh = { 0: 8203, 1: 8204, 2: 8205, 3: 8290, 4: 8291, 5: 8288, 6: 65279, 7: 8289, 8: 119155, 9: 119156, a: 119157, b: 119158, c: 119159, d: 119160, e: 119161, f: 119162 }, lu = { 0: 8203, 1: 8204, 2: 8205, 3: 65279 }, xb = new Array(4).fill(String.fromCodePoint(lu[0])).join(""); +function Sb(r) { let e = JSON.stringify(r); - return `${Mb}${Array.from(e).map((n) => { + return `${xb}${Array.from(e).map((n) => { let s = n.charCodeAt(0); if (s > 255) throw new Error(`Only ASCII edit info can be encoded. Error attempting to encode ${e} on character ${n} (${s})`); - return Array.from(s.toString(4).padStart(4, "0")).map((a) => String.fromCodePoint(gu[a])).join(""); + return Array.from(s.toString(4).padStart(4, "0")).map((a) => String.fromCodePoint(lu[a])).join(""); }).join("")}`; } -function Ub(r) { +function Rb(r) { return !Number.isNaN(Number(r)) || /[a-z]/i.test(r) && !/\d+(?:[-:\/]\d+){2}(?:T\d+(?:[-:\/]\d+){1,2}(\.\d+)?Z?)?/.test(r) ? !1 : !!Date.parse(r); } -function kb(r) { +function Ib(r) { try { new URL(r, r.startsWith("/") ? "https://acme.com" : void 0); } catch { @@ -2284,46 +2175,46 @@ function kb(r) { } return !0; } -function Nb(r, e, n = "auto") { - return n === !0 || n === "auto" && (Ub(r) || kb(r)) ? r : `${r}${Db(e)}`; +function Ob(r, e, n = "auto") { + return n === !0 || n === "auto" && (Rb(r) || Ib(r)) ? r : `${r}${Sb(e)}`; } -Object.fromEntries(Object.entries(gu).map((r) => r.reverse())); -Object.fromEntries(Object.entries(Ch).map((r) => r.reverse())); -var qb = `${Object.values(Ch).map((r) => `\\u{${r.toString(16)}}`).join("")}`, ul = new RegExp(`[${qb}]{4,}`, "gu"); -function Wb(r) { +Object.fromEntries(Object.entries(lu).map((r) => r.reverse())); +Object.fromEntries(Object.entries(wh).map((r) => r.reverse())); +var Tb = `${Object.values(wh).map((r) => `\\u{${r.toString(16)}}`).join("")}`, il = new RegExp(`[${Tb}]{4,}`, "gu"); +function Lb(r) { var e; - return { cleaned: r.replace(ul, ""), encoded: ((e = r.match(ul)) == null ? void 0 : e[0]) || "" }; + return { cleaned: r.replace(il, ""), encoded: ((e = r.match(il)) == null ? void 0 : e[0]) || "" }; } -function Bb(r) { - return r && JSON.parse(Wb(JSON.stringify(r)).cleaned); +function $b(r) { + return r && JSON.parse(Lb(JSON.stringify(r)).cleaned); } -function Hb(r) { - return Bb(r); +function Pb(r) { + return $b(r); } -var Gb = Object.defineProperty, jb = (r, e, n) => e in r ? Gb(r, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : r[e] = n, jn = (r, e, n) => (jb(r, typeof e != "symbol" ? e + "" : e, n), n); -class zb extends Error { +var Fb = Object.defineProperty, Mb = (r, e, n) => e in r ? Fb(r, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : r[e] = n, Gn = (r, e, n) => (Mb(r, typeof e != "symbol" ? e + "" : e, n), n); +class Db extends Error { constructor(e) { - const n = Eh(e); - super(n.message), jn(this, "response"), jn(this, "statusCode", 400), jn(this, "responseBody"), jn(this, "details"), Object.assign(this, n); + const n = bh(e); + super(n.message), Gn(this, "response"), Gn(this, "statusCode", 400), Gn(this, "responseBody"), Gn(this, "details"), Object.assign(this, n); } } -class Kb extends Error { +class Ub extends Error { constructor(e) { - const n = Eh(e); - super(n.message), jn(this, "response"), jn(this, "statusCode", 500), jn(this, "responseBody"), jn(this, "details"), Object.assign(this, n); + const n = bh(e); + super(n.message), Gn(this, "response"), Gn(this, "statusCode", 500), Gn(this, "responseBody"), Gn(this, "details"), Object.assign(this, n); } } -function Eh(r) { +function bh(r) { const e = r.body, n = { response: r, statusCode: r.statusCode, - responseBody: Yb(e, r), + responseBody: Wb(e, r), message: "", details: void 0 }; if (e.error && e.message) return n.message = `${e.error} - ${e.message}`, n; - if (Jb(e) || Xb(e)) { + if (kb(e) || Nb(e)) { const s = e.error.items || [], a = s.slice(0, 5).map((f) => { var l; return (l = f.error) == null ? void 0 : l.description; @@ -2334,57 +2225,57 @@ function Eh(r) { return s.length > 5 && (u += ` ...and ${s.length - 5} more`), n.message = `${e.error.description}${u}`, n.details = e.error, n; } - return e.error && e.error.description ? (n.message = e.error.description, n.details = e.error, n) : (n.message = e.error || e.message || Vb(r), n); + return e.error && e.error.description ? (n.message = e.error.description, n.details = e.error, n) : (n.message = e.error || e.message || qb(r), n); } -function Jb(r) { - return Qs(r) && Qs(r.error) && r.error.type === "mutationError" && typeof r.error.description == "string"; +function kb(r) { + return Ys(r) && Ys(r.error) && r.error.type === "mutationError" && typeof r.error.description == "string"; } -function Xb(r) { - return Qs(r) && Qs(r.error) && r.error.type === "actionError" && typeof r.error.description == "string"; +function Nb(r) { + return Ys(r) && Ys(r.error) && r.error.type === "actionError" && typeof r.error.description == "string"; } -function Qs(r) { +function Ys(r) { return typeof r == "object" && r !== null && !Array.isArray(r); } -function Vb(r) { +function qb(r) { const e = r.statusMessage ? ` ${r.statusMessage}` : ""; return `${r.method}-request to ${r.url} resulted in HTTP ${r.statusCode}${e}`; } -function Yb(r, e) { +function Wb(r, e) { return (e.headers["content-type"] || "").toLowerCase().indexOf("application/json") !== -1 ? JSON.stringify(r, null, 2) : r; } -const Zb = { +const Bb = { onResponse: (r) => { if (r.statusCode >= 500) - throw new Kb(r); + throw new Ub(r); if (r.statusCode >= 400) - throw new zb(r); + throw new Db(r); return r; } -}, Qb = { +}, Hb = { onResponse: (r) => { const e = r.headers["x-sanity-warning"]; return (Array.isArray(e) ? e : [e]).filter(Boolean).forEach((n) => console.warn(n)), r; } }; -function t_(r) { - return v1([ - cu({ shouldRetry: e_ }), +function Gb(r) { + return d1([ + ou({ shouldRetry: jb }), ...r, - Qb, + Hb, + b1(), + _1(), A1(), - x1(), - R1(), - Zb, - I1({ implementation: $t }) + Bb, + E1({ implementation: Mt }) ]); } -function e_(r, e, n) { +function jb(r, e, n) { if (n.maxRetries === 0) return !1; const s = n.method === "GET" || n.method === "HEAD", a = (n.uri || n.url).startsWith("/data/query"), u = r.response && (r.response.statusCode === 429 || r.response.statusCode === 502 || r.response.statusCode === 503); - return (s || a) && u ? !0 : cu.shouldRetry(r, e, n); + return (s || a) && u ? !0 : ou.shouldRetry(r, e, n); } -function Ah(r) { +function _h(r) { if (typeof r == "string") return { id: r }; if (Array.isArray(r)) @@ -2401,59 +2292,59 @@ function Ah(r) { ${e}`); } -const cl = ["image", "file"], fl = ["before", "after", "replace"], xh = (r) => { +const sl = ["image", "file"], ol = ["before", "after", "replace"], Ch = (r) => { if (!/^(~[a-z0-9]{1}[-\w]{0,63}|[a-z0-9]{1}[-\w]{0,63})$/.test(r)) throw new Error( "Datasets can only contain lowercase characters, numbers, underscores and dashes, and start with tilde, and be maximum 64 characters" ); -}, n_ = (r) => { +}, zb = (r) => { if (!/^[-a-z0-9]+$/i.test(r)) throw new Error("`projectId` can only contain only a-z, 0-9 and dashes"); -}, r_ = (r) => { - if (cl.indexOf(r) === -1) - throw new Error(`Invalid asset type: ${r}. Must be one of ${cl.join(", ")}`); +}, Kb = (r) => { + if (sl.indexOf(r) === -1) + throw new Error(`Invalid asset type: ${r}. Must be one of ${sl.join(", ")}`); }, Ci = (r, e) => { if (e === null || typeof e != "object" || Array.isArray(e)) throw new Error(`${r}() takes an object of properties`); -}, Sh = (r, e) => { +}, Eh = (r, e) => { if (typeof e != "string" || !/^[a-z0-9_][a-z0-9_.-]{0,127}$/i.test(e) || e.includes("..")) throw new Error(`${r}(): "${e}" is not a valid document ID`); -}, to = (r, e) => { +}, Vs = (r, e) => { if (!e._id) throw new Error(`${r}() requires that the document contains an ID ("_id" property)`); - Sh(r, e._id); -}, i_ = (r, e, n) => { + Eh(r, e._id); +}, Jb = (r, e, n) => { const s = "insert(at, selector, items)"; - if (fl.indexOf(r) === -1) { - const a = fl.map((u) => `"${u}"`).join(", "); + if (ol.indexOf(r) === -1) { + const a = ol.map((u) => `"${u}"`).join(", "); throw new Error(`${s} takes an "at"-argument which is one of: ${a}`); } if (typeof e != "string") throw new Error(`${s} takes a "selector"-argument which must be a string`); if (!Array.isArray(n)) throw new Error(`${s} takes an "items"-argument which must be an array`); -}, Ih = (r) => { +}, Ah = (r) => { if (!r.dataset) throw new Error("`dataset` must be provided to perform queries"); return r.dataset || ""; -}, Rh = (r) => { +}, xh = (r) => { if (typeof r != "string" || !/^[a-z0-9._-]{1,75}$/i.test(r)) throw new Error( "Tag can only contain alphanumeric characters, underscores, dashes and dots, and be between one and 75 characters long." ); return r; }; -var s_ = Object.defineProperty, o_ = (r, e, n) => e in r ? s_(r, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : r[e] = n, ll = (r, e, n) => (o_(r, typeof e != "symbol" ? e + "" : e, n), n), Oh = (r, e, n) => { +var Xb = Object.defineProperty, Yb = (r, e, n) => e in r ? Xb(r, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : r[e] = n, al = (r, e, n) => (Yb(r, typeof e != "symbol" ? e + "" : e, n), n), Sh = (r, e, n) => { if (!e.has(r)) throw TypeError("Cannot " + n); -}, jr = (r, e, n) => (Oh(r, e, "read from private field"), n ? n.call(r) : e.get(r)), Th = (r, e, n) => { +}, Gr = (r, e, n) => (Sh(r, e, "read from private field"), n ? n.call(r) : e.get(r)), Rh = (r, e, n) => { if (e.has(r)) throw TypeError("Cannot add the same private member more than once"); e instanceof WeakSet ? e.add(r) : e.set(r, n); -}, Lh = (r, e, n, s) => (Oh(r, e, "write to private field"), e.set(r, n), n); -class $h { +}, Ih = (r, e, n, s) => (Sh(r, e, "write to private field"), e.set(r, n), n); +class Oh { constructor(e, n = {}) { - ll(this, "selection"), ll(this, "operations"), this.selection = e, this.operations = n; + al(this, "selection"), al(this, "operations"), this.selection = e, this.operations = n; } /** * Sets the given attributes to the document. Does NOT merge objects. @@ -2517,7 +2408,7 @@ class $h { * @param items - Array of items to insert/replace */ insert(e, n, s) { - return i_(e, n, s), this._assign("insert", { [e]: n, items: s }); + return Jb(e, n, s), this._assign("insert", { [e]: n, items: s }); } /** * Append the given items to the array at the given JSONPath @@ -2561,7 +2452,7 @@ class $h { * Return a plain JSON representation of the patch */ serialize() { - return { ...Ah(this.selection), ...this.operations }; + return { ..._h(this.selection), ...this.operations }; } /** * Return a plain JSON representation of the patch @@ -2584,62 +2475,62 @@ class $h { return this._assign(e, n, !1); } } -var Ur; -const a_ = class Ph extends $h { +var Dr; +const Vb = class Th extends Oh { constructor(e, n, s) { - super(e, n), Th(this, Ur, void 0), Lh(this, Ur, s); + super(e, n), Rh(this, Dr, void 0), Ih(this, Dr, s); } /** * Clones the patch */ clone() { - return new Ph(this.selection, { ...this.operations }, jr(this, Ur)); + return new Th(this.selection, { ...this.operations }, Gr(this, Dr)); } commit(e) { - if (!jr(this, Ur)) + if (!Gr(this, Dr)) throw new Error( "No `client` passed to patch, either provide one or pass the patch to a clients `mutate()` method" ); const n = typeof this.selection == "string", s = Object.assign({ returnFirst: n, returnDocuments: !0 }, e); - return jr(this, Ur).mutate({ patch: this.serialize() }, s); + return Gr(this, Dr).mutate({ patch: this.serialize() }, s); } }; -Ur = /* @__PURE__ */ new WeakMap(); -let Ei = a_; -var kr; -const u_ = class Fh extends $h { +Dr = /* @__PURE__ */ new WeakMap(); +let Ei = Vb; +var Ur; +const Zb = class Lh extends Oh { constructor(e, n, s) { - super(e, n), Th(this, kr, void 0), Lh(this, kr, s); + super(e, n), Rh(this, Ur, void 0), Ih(this, Ur, s); } /** * Clones the patch */ clone() { - return new Fh(this.selection, { ...this.operations }, jr(this, kr)); + return new Lh(this.selection, { ...this.operations }, Gr(this, Ur)); } commit(e) { - if (!jr(this, kr)) + if (!Gr(this, Ur)) throw new Error( "No `client` passed to patch, either provide one or pass the patch to a clients `mutate()` method" ); const n = typeof this.selection == "string", s = Object.assign({ returnFirst: n, returnDocuments: !0 }, e); - return jr(this, kr).mutate({ patch: this.serialize() }, s); + return Gr(this, Ur).mutate({ patch: this.serialize() }, s); } }; -kr = /* @__PURE__ */ new WeakMap(); -let Ai = u_; -var c_ = Object.defineProperty, f_ = (r, e, n) => e in r ? c_(r, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : r[e] = n, hl = (r, e, n) => (f_(r, typeof e != "symbol" ? e + "" : e, n), n), Mh = (r, e, n) => { +Ur = /* @__PURE__ */ new WeakMap(); +let Ai = Zb; +var Qb = Object.defineProperty, t_ = (r, e, n) => e in r ? Qb(r, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : r[e] = n, ul = (r, e, n) => (t_(r, typeof e != "symbol" ? e + "" : e, n), n), $h = (r, e, n) => { if (!e.has(r)) throw TypeError("Cannot " + n); -}, zn = (r, e, n) => (Mh(r, e, "read from private field"), n ? n.call(r) : e.get(r)), Dh = (r, e, n) => { +}, jn = (r, e, n) => ($h(r, e, "read from private field"), n ? n.call(r) : e.get(r)), Ph = (r, e, n) => { if (e.has(r)) throw TypeError("Cannot add the same private member more than once"); e instanceof WeakSet ? e.add(r) : e.set(r, n); -}, Uh = (r, e, n, s) => (Mh(r, e, "write to private field"), e.set(r, n), n); -const kh = { returnDocuments: !1 }; -class Nh { +}, Fh = (r, e, n, s) => ($h(r, e, "write to private field"), e.set(r, n), n); +const Mh = { returnDocuments: !1 }; +class Dh { constructor(e = [], n) { - hl(this, "operations"), hl(this, "trxId"), this.operations = e, this.trxId = n; + ul(this, "operations"), ul(this, "trxId"), this.operations = e, this.trxId = n; } /** * Creates a new Sanity document. If `_id` is provided and already exists, the mutation will fail. If no `_id` is given, one will automatically be generated by the database. @@ -2658,7 +2549,7 @@ class Nh { */ createIfNotExists(e) { const n = "createIfNotExists"; - return Ci(n, e), to(n, e), this._add({ [n]: e }); + return Ci(n, e), Vs(n, e), this._add({ [n]: e }); } /** * Creates a new Sanity document, or replaces an existing one if the same `_id` is already used. @@ -2668,7 +2559,7 @@ class Nh { */ createOrReplace(e) { const n = "createOrReplace"; - return Ci(n, e), to(n, e), this._add({ [n]: e }); + return Ci(n, e), Vs(n, e), this._add({ [n]: e }); } /** * Deletes the document with the given document ID @@ -2677,7 +2568,7 @@ class Nh { * @param documentId - Document ID to delete */ delete(e) { - return Sh("delete", e), this._add({ delete: { id: e } }); + return Eh("delete", e), this._add({ delete: { id: e } }); } transactionId(e) { return e ? (this.trxId = e, this) : this.trxId; @@ -2705,24 +2596,24 @@ class Nh { } } var cr; -const l_ = class qh extends Nh { +const e_ = class Uh extends Dh { constructor(e, n, s) { - super(e, s), Dh(this, cr, void 0), Uh(this, cr, n); + super(e, s), Ph(this, cr, void 0), Fh(this, cr, n); } /** * Clones the transaction */ clone() { - return new qh([...this.operations], zn(this, cr), this.trxId); + return new Uh([...this.operations], jn(this, cr), this.trxId); } commit(e) { - if (!zn(this, cr)) + if (!jn(this, cr)) throw new Error( "No `client` passed to transaction, either provide one or pass the transaction to a clients `mutate()` method" ); - return zn(this, cr).mutate( + return jn(this, cr).mutate( this.serialize(), - Object.assign({ transactionId: this.trxId }, kh, e || {}) + Object.assign({ transactionId: this.trxId }, Mh, e || {}) ); } patch(e, n) { @@ -2730,7 +2621,7 @@ const l_ = class qh extends Nh { if (typeof e != "string" && e instanceof Ai) return this._add({ patch: e.serialize() }); if (s) { - const a = n(new Ai(e, {}, zn(this, cr))); + const a = n(new Ai(e, {}, jn(this, cr))); if (!(a instanceof Ai)) throw new Error("function passed to `patch()` must return the patch"); return this._add({ patch: a.serialize() }); @@ -2739,26 +2630,26 @@ const l_ = class qh extends Nh { } }; cr = /* @__PURE__ */ new WeakMap(); -let Wh = l_; +let kh = e_; var fr; -const h_ = class Bh extends Nh { +const n_ = class Nh extends Dh { constructor(e, n, s) { - super(e, s), Dh(this, fr, void 0), Uh(this, fr, n); + super(e, s), Ph(this, fr, void 0), Fh(this, fr, n); } /** * Clones the transaction */ clone() { - return new Bh([...this.operations], zn(this, fr), this.trxId); + return new Nh([...this.operations], jn(this, fr), this.trxId); } commit(e) { - if (!zn(this, fr)) + if (!jn(this, fr)) throw new Error( "No `client` passed to transaction, either provide one or pass the transaction to a clients `mutate()` method" ); - return zn(this, fr).mutate( + return jn(this, fr).mutate( this.serialize(), - Object.assign({ transactionId: this.trxId }, kh, e || {}) + Object.assign({ transactionId: this.trxId }, Mh, e || {}) ); } patch(e, n) { @@ -2766,7 +2657,7 @@ const h_ = class Bh extends Nh { if (typeof e != "string" && e instanceof Ei) return this._add({ patch: e.serialize() }); if (s) { - const a = n(new Ei(e, {}, zn(this, fr))); + const a = n(new Ei(e, {}, jn(this, fr))); if (!(a instanceof Ei)) throw new Error("function passed to `patch()` must return the patch"); return this._add({ patch: a.serialize() }); @@ -2775,50 +2666,50 @@ const h_ = class Bh extends Nh { } }; fr = /* @__PURE__ */ new WeakMap(); -let Hh = h_; -const d_ = "https://www.sanity.io/help/"; -function vu(r) { - return d_ + r; +let qh = n_; +const r_ = "https://www.sanity.io/help/"; +function hu(r) { + return r_ + r; } -function p_(r) { +function i_(r) { let e = !1, n; return (...s) => (e || (n = r(...s), e = !0), n); } const Oi = (r) => ( // eslint-disable-next-line no-console - p_((...e) => console.warn(r.join(" "), ...e)) -), g_ = Oi([ + i_((...e) => console.warn(r.join(" "), ...e)) +), s_ = Oi([ "Because you set `withCredentials` to true, we will override your `useCdn`", "setting to be false since (cookie-based) credentials are never set on the CDN" -]), v_ = Oi([ +]), o_ = Oi([ "Since you haven't set a value for `useCdn`, we will deliver content using our", "global, edge-cached API-CDN. If you wish to have content delivered faster, set", "`useCdn: false` to use the Live API. Note: You may incur higher costs using the live API." -]), m_ = Oi([ +]), a_ = Oi([ "The Sanity client is configured with the `perspective` set to `previewDrafts`, which doesn't support the API-CDN.", "The Live API will be used instead. Set `useCdn: false` in your configuration to hide this warning." -]), y_ = Oi([ +]), u_ = Oi([ "You have configured Sanity client to use a token in the browser. This may cause unintentional security issues.", - `See ${vu( + `See ${hu( "js-client-browser-token" )} for more information and how to hide this warning.` -]), w_ = Oi([ +]), c_ = Oi([ "Using the Sanity client without specifying an API version is deprecated.", - `See ${vu("js-client-api-version")}` -]), b_ = "apicdn.sanity.io", xi = { + `See ${hu("js-client-api-version")}` +]), f_ = "apicdn.sanity.io", xi = { apiHost: "https://api.sanity.io", apiVersion: "1", useProjectHostname: !0, stega: { enabled: !1 } -}, __ = ["localhost", "127.0.0.1", "0.0.0.0"], C_ = (r) => __.indexOf(r) !== -1; -function E_(r) { +}, l_ = ["localhost", "127.0.0.1", "0.0.0.0"], h_ = (r) => l_.indexOf(r) !== -1; +function d_(r) { if (r === "1" || r === "X") return; const e = new Date(r); if (!(/^\d{4}-\d{2}-\d{2}$/.test(r) && e instanceof Date && e.getTime() > 0)) throw new Error("Invalid API version string, expected `1` or date in format `YYYY-MM-DD`"); } -const Gh = function(r) { +const Wh = function(r) { switch (r) { case "previewDrafts": case "published": @@ -2829,7 +2720,7 @@ const Gh = function(r) { "Invalid API perspective string, expected `published`, `previewDrafts` or `raw`" ); } -}, jh = (r, e) => { +}, Bh = (r, e) => { const n = { ...e, ...r, @@ -2838,18 +2729,18 @@ const Gh = function(r) { ...typeof r.stega == "boolean" ? { enabled: r.stega } : r.stega || {} } }; - n.apiVersion || w_(); + n.apiVersion || c_(); const s = { ...xi, ...n }, a = s.useProjectHostname; if (typeof Promise > "u") { - const m = vu("js-client-promise-polyfill"); + const m = hu("js-client-promise-polyfill"); throw new Error(`No native Promise-implementation found, polyfill needed - see ${m}`); } if (a && !s.projectId) throw new Error("Configuration must contain `projectId`"); - if (typeof s.perspective == "string" && Gh(s.perspective), "encodeSourceMap" in s) + if (typeof s.perspective == "string" && Wh(s.perspective), "encodeSourceMap" in s) throw new Error( "It looks like you're using options meant for '@sanity/preview-kit/client'. 'encodeSourceMap' is not supported in '@sanity/client'. Did you mean 'stega.enabled'?" ); @@ -2865,14 +2756,14 @@ const Gh = function(r) { throw new Error( `stega.studioUrl must be a string or a function, received ${s.stega.studioUrl}` ); - const u = typeof window < "u" && window.location && window.location.hostname, f = u && C_(window.location.hostname); - u && f && s.token && s.ignoreBrowserTokenWarning !== !0 ? y_() : typeof s.useCdn > "u" && v_(), a && n_(s.projectId), s.dataset && xh(s.dataset), "requestTagPrefix" in s && (s.requestTagPrefix = s.requestTagPrefix ? Rh(s.requestTagPrefix).replace(/\.+$/, "") : void 0), s.apiVersion = `${s.apiVersion}`.replace(/^v/, ""), s.isDefaultApi = s.apiHost === xi.apiHost, s.useCdn === !0 && s.withCredentials && g_(), s.useCdn = s.useCdn !== !1 && !s.withCredentials, E_(s.apiVersion); - const l = s.apiHost.split("://", 2), d = l[0], y = l[1], p = s.isDefaultApi ? b_ : y; + const u = typeof window < "u" && window.location && window.location.hostname, f = u && h_(window.location.hostname); + u && f && s.token && s.ignoreBrowserTokenWarning !== !0 ? u_() : typeof s.useCdn > "u" && o_(), a && zb(s.projectId), s.dataset && Ch(s.dataset), "requestTagPrefix" in s && (s.requestTagPrefix = s.requestTagPrefix ? xh(s.requestTagPrefix).replace(/\.+$/, "") : void 0), s.apiVersion = `${s.apiVersion}`.replace(/^v/, ""), s.isDefaultApi = s.apiHost === xi.apiHost, s.useCdn === !0 && s.withCredentials && s_(), s.useCdn = s.useCdn !== !1 && !s.withCredentials, d_(s.apiVersion); + const l = s.apiHost.split("://", 2), d = l[0], y = l[1], p = s.isDefaultApi ? f_ : y; return s.useProjectHostname ? (s.url = `${d}://${s.projectId}.${y}/v${s.apiVersion}`, s.cdnUrl = `${d}://${s.projectId}.${p}/v${s.apiVersion}`) : (s.url = `${s.apiHost}/v${s.apiVersion}`, s.cdnUrl = s.url), s; -}, A_ = "X-Sanity-Project-ID"; -function x_(r, e = {}) { +}, p_ = "X-Sanity-Project-ID"; +function g_(r, e = {}) { const n = {}, s = e.token || r.token; - s && (n.Authorization = `Bearer ${s}`), !e.useGlobalApi && !r.useProjectHostname && r.projectId && (n[A_] = r.projectId); + s && (n.Authorization = `Bearer ${s}`), !e.useGlobalApi && !r.useProjectHostname && r.projectId && (n[p_] = r.projectId); const a = !!(typeof e.withCredentials > "u" ? r.token || r.withCredentials : e.withCredentials), u = typeof e.timeout > "u" ? r.timeout : e.timeout; return Object.assign({}, e, { headers: Object.assign({}, n, e.headers || {}), @@ -2883,7 +2774,7 @@ function x_(r, e = {}) { fetch: typeof e.fetch == "object" && typeof r.fetch == "object" ? { ...r.fetch, ...e.fetch } : e.fetch || r.fetch }); } -const zh = ({ +const Hh = ({ query: r, params: e = {}, options: n = {} @@ -2895,19 +2786,19 @@ const zh = ({ for (const [l, d] of Object.entries(f)) d && s.append(l, `${d}`); return u === !1 && s.append("returnQuery", "false"), `?${s}`; -}, S_ = (r, e) => r === !1 ? void 0 : typeof r > "u" ? e : r, I_ = (r = {}) => ({ +}, v_ = (r, e) => r === !1 ? void 0 : typeof r > "u" ? e : r, m_ = (r = {}) => ({ dryRun: r.dryRun, returnIds: !0, - returnDocuments: S_(r.returnDocuments, !0), + returnDocuments: v_(r.returnDocuments, !0), visibility: r.visibility || "sync", autoGenerateArrayKeys: r.autoGenerateArrayKeys, skipCrossDatasetReferenceValidation: r.skipCrossDatasetReferenceValidation -}), mu = (r) => r.type === "response", R_ = (r) => r.body, O_ = (r, e) => r.reduce((n, s) => (n[e(s)] = s, n), /* @__PURE__ */ Object.create(null)), T_ = 11264; -function Kh(r, e, n, s, a = {}, u = {}) { +}), du = (r) => r.type === "response", y_ = (r) => r.body, w_ = (r, e) => r.reduce((n, s) => (n[e(s)] = s, n), /* @__PURE__ */ Object.create(null)), b_ = 11264; +function Gh(r, e, n, s, a = {}, u = {}) { const f = "stega" in u ? { ...n || {}, ...typeof u.stega == "boolean" ? { enabled: u.stega } : u.stega || {} - } : n, l = f.enabled ? Hb(a) : a, d = u.filterResponse === !1 ? (R) => R : (R) => R.result, { cache: y, next: p, ...m } = { + } : n, l = f.enabled ? Pb(a) : a, d = u.filterResponse === !1 ? (I) => I : (I) => I.result, { cache: y, next: p, ...m } = { // Opt out of setting a `signal` on an internal `fetch` if one isn't provided. // This is necessary in React Server Components to avoid opting out of Request Memoization. useAbortSignal: typeof u.signal < "u", @@ -2919,62 +2810,62 @@ function Kh(r, e, n, s, a = {}, u = {}) { returnQuery: u.filterResponse === !1 && u.returnQuery !== !1 }, b = typeof y < "u" || typeof p < "u" ? { ...m, fetch: { cache: y, next: p } } : m, C = Xr(r, e, "query", { query: s, params: l }, b); return f.enabled ? C.pipe( - Rb( - Ri( - Promise.resolve().then(() => VE).then(function(R) { - return R.stegaEncodeSourceMap$1; + yb( + Ii( + Promise.resolve().then(() => qE).then(function(I) { + return I.stegaEncodeSourceMap$1; }).then( - ({ stegaEncodeSourceMap: R }) => R + ({ stegaEncodeSourceMap: I }) => I ) ) ), - Ot( - ([R, O]) => { - const I = O(R.result, R.resultSourceMap, f); - return d({ ...R, result: I }); + Lt( + ([I, O]) => { + const R = O(I.result, I.resultSourceMap, f); + return d({ ...I, result: R }); } ) - ) : C.pipe(Ot(d)); + ) : C.pipe(Lt(d)); } -function Jh(r, e, n, s = {}) { - const a = { uri: yr(r, "doc", n), json: !0, tag: s.tag }; +function jh(r, e, n, s = {}) { + const a = { uri: mr(r, "doc", n), json: !0, tag: s.tag }; return Ti(r, e, a).pipe( - Ye(mu), - Ot((u) => u.body.documents && u.body.documents[0]) + Xe(du), + Lt((u) => u.body.documents && u.body.documents[0]) ); } -function Xh(r, e, n, s = {}) { - const a = { uri: yr(r, "doc", n.join(",")), json: !0, tag: s.tag }; +function zh(r, e, n, s = {}) { + const a = { uri: mr(r, "doc", n.join(",")), json: !0, tag: s.tag }; return Ti(r, e, a).pipe( - Ye(mu), - Ot((u) => { - const f = O_(u.body.documents || [], (l) => l._id); + Xe(du), + Lt((u) => { + const f = w_(u.body.documents || [], (l) => l._id); return n.map((l) => f[l] || null); }) ); } -function Vh(r, e, n, s) { - return to("createIfNotExists", n), yo(r, e, n, "createIfNotExists", s); +function Kh(r, e, n, s) { + return Vs("createIfNotExists", n), go(r, e, n, "createIfNotExists", s); } -function Yh(r, e, n, s) { - return to("createOrReplace", n), yo(r, e, n, "createOrReplace", s); +function Jh(r, e, n, s) { + return Vs("createOrReplace", n), go(r, e, n, "createOrReplace", s); } -function Zh(r, e, n, s) { +function Xh(r, e, n, s) { return Xr( r, e, "mutate", - { mutations: [{ delete: Ah(n) }] }, + { mutations: [{ delete: _h(n) }] }, s ); } -function Qh(r, e, n, s) { +function Yh(r, e, n, s) { let a; - n instanceof Ai || n instanceof Ei ? a = { patch: n.serialize() } : n instanceof Wh || n instanceof Hh ? a = n.serialize() : a = n; + n instanceof Ai || n instanceof Ei ? a = { patch: n.serialize() } : n instanceof kh || n instanceof qh ? a = n.serialize() : a = n; const u = Array.isArray(a) ? a : [a], f = s && s.transactionId || void 0; return Xr(r, e, "mutate", { mutations: u, transactionId: f }, s); } -function td(r, e, n, s) { +function Vh(r, e, n, s) { const a = Array.isArray(n) ? n : [n], u = s && s.transactionId || void 0, f = s && s.skipCrossDatasetReferenceValidation || void 0, l = s && s.dryRun || void 0; return Xr( r, @@ -2985,17 +2876,17 @@ function td(r, e, n, s) { ); } function Xr(r, e, n, s, a = {}) { - const u = n === "mutate", f = n === "actions", l = n === "query", d = u || f ? "" : zh(s), y = !u && !f && d.length < T_, p = y ? d : "", m = a.returnFirst, { timeout: b, token: C, tag: R, headers: O, returnQuery: I, lastLiveEventId: x } = a, D = yr(r, n, p), U = { + const u = n === "mutate", f = n === "actions", l = n === "query", d = u || f ? "" : Hh(s), y = !u && !f && d.length < b_, p = y ? d : "", m = a.returnFirst, { timeout: b, token: C, tag: I, headers: O, returnQuery: R, lastLiveEventId: x } = a, D = mr(r, n, p), U = { method: y ? "GET" : "POST", uri: D, json: !0, body: y ? void 0 : s, - query: u && I_(a), + query: u && m_(a), timeout: b, headers: O, token: C, - tag: R, - returnQuery: I, + tag: I, + returnQuery: R, perspective: a.perspective, resultSourceMap: a.resultSourceMap, lastLiveEventId: Array.isArray(x) ? x[0] : x, @@ -3006,9 +2897,9 @@ function Xr(r, e, n, s, a = {}) { useCdn: a.useCdn }; return Ti(r, e, U).pipe( - Ye(mu), - Ot(R_), - Ot((M) => { + Xe(du), + Lt(y_), + Lt((M) => { if (!u) return M; const z = M.results || []; @@ -3023,7 +2914,7 @@ function Xr(r, e, n, s, a = {}) { }) ); } -function yo(r, e, n, s, a = {}) { +function go(r, e, n, s, a = {}) { const u = { [s]: n }, f = Object.assign({ returnFirst: !0, returnDocuments: !0 }, a); return Xr(r, e, "mutate", { mutations: [u] }, f); } @@ -3032,39 +2923,39 @@ function Ti(r, e, n) { const u = n.url || n.uri, f = r.config(), l = typeof n.canUseCdn > "u" ? ["GET", "HEAD"].indexOf(n.method || "GET") >= 0 && u.indexOf("/data/") === 0 : n.canUseCdn; let d = ((s = n.useCdn) != null ? s : f.useCdn) && l; const y = n.tag && f.requestTagPrefix ? [f.requestTagPrefix, n.tag].join(".") : n.tag || f.requestTagPrefix; - if (y && n.tag !== null && (n.query = { tag: Rh(y), ...n.query }), ["GET", "HEAD", "POST"].indexOf(n.method || "GET") >= 0 && u.indexOf("/data/query/") === 0) { + if (y && n.tag !== null && (n.query = { tag: xh(y), ...n.query }), ["GET", "HEAD", "POST"].indexOf(n.method || "GET") >= 0 && u.indexOf("/data/query/") === 0) { const b = (a = n.resultSourceMap) != null ? a : f.resultSourceMap; b !== void 0 && b !== !1 && (n.query = { resultSourceMap: b, ...n.query }); const C = n.perspective || f.perspective; - typeof C == "string" && C !== "raw" && (Gh(C), n.query = { perspective: C, ...n.query }, C === "previewDrafts" && d && (d = !1, m_())), n.lastLiveEventId && (n.query = { ...n.query, lastLiveEventId: n.lastLiveEventId }), n.returnQuery === !1 && (n.query = { returnQuery: "false", ...n.query }); + typeof C == "string" && C !== "raw" && (Wh(C), n.query = { perspective: C, ...n.query }, C === "previewDrafts" && d && (d = !1, a_())), n.lastLiveEventId && (n.query = { ...n.query, lastLiveEventId: n.lastLiveEventId }), n.returnQuery === !1 && (n.query = { returnQuery: "false", ...n.query }); } - const p = x_( + const p = g_( f, Object.assign({}, n, { - url: yu(r, u, d) + url: pu(r, u, d) }) - ), m = new $t( + ), m = new Mt( (b) => e(p, f.requester).subscribe(b) ); - return n.signal ? m.pipe(L_(n.signal)) : m; + return n.signal ? m.pipe(__(n.signal)) : m; } function Ze(r, e, n) { return Ti(r, e, n).pipe( - Ye((s) => s.type === "response"), - Ot((s) => s.body) + Xe((s) => s.type === "response"), + Lt((s) => s.body) ); } -function yr(r, e, n) { - const s = r.config(), a = Ih(s), u = `/${e}/${a}`; +function mr(r, e, n) { + const s = r.config(), a = Ah(s), u = `/${e}/${a}`; return `/data${n ? `${u}/${n}` : u}`.replace(/\/($|\?)/, "$1"); } -function yu(r, e, n = !1) { +function pu(r, e, n = !1) { const { url: s, cdnUrl: a } = r.config(); return `${n ? a : s}/${e.replace(/^\//, "")}`; } -function L_(r) { - return (e) => new $t((n) => { - const s = () => n.error(P_(r)); +function __(r) { + return (e) => new Mt((n) => { + const s = () => n.error(E_(r)); if (r && r.aborted) { s(); return; @@ -3075,42 +2966,42 @@ function L_(r) { }; }); } -const $_ = !!globalThis.DOMException; -function P_(r) { +const C_ = !!globalThis.DOMException; +function E_(r) { var e, n; - if ($_) + if (C_) return new DOMException((e = r == null ? void 0 : r.reason) != null ? e : "The operation was aborted.", "AbortError"); const s = new Error((n = r == null ? void 0 : r.reason) != null ? n : "The operation was aborted."); return s.name = "AbortError", s; } -var ed = (r, e, n) => { +var Zh = (r, e, n) => { if (!e.has(r)) throw TypeError("Cannot " + n); -}, eo = (r, e, n) => (ed(r, e, "read from private field"), n ? n.call(r) : e.get(r)), no = (r, e, n) => { +}, Zs = (r, e, n) => (Zh(r, e, "read from private field"), n ? n.call(r) : e.get(r)), Qs = (r, e, n) => { if (e.has(r)) throw TypeError("Cannot add the same private member more than once"); e instanceof WeakSet ? e.add(r) : e.set(r, n); -}, ro = (r, e, n, s) => (ed(r, e, "write to private field"), e.set(r, n), n), qs, Ws; -class F_ { +}, to = (r, e, n, s) => (Zh(r, e, "write to private field"), e.set(r, n), n), qs, Ws; +class A_ { constructor(e, n) { - no(this, qs, void 0), no(this, Ws, void 0), ro(this, qs, e), ro(this, Ws, n); + Qs(this, qs, void 0), Qs(this, Ws, void 0), to(this, qs, e), to(this, Ws, n); } upload(e, n, s) { - return nd(eo(this, qs), eo(this, Ws), e, n, s); + return Qh(Zs(this, qs), Zs(this, Ws), e, n, s); } } qs = /* @__PURE__ */ new WeakMap(), Ws = /* @__PURE__ */ new WeakMap(); var Bs, Hs; -class M_ { +class x_ { constructor(e, n) { - no(this, Bs, void 0), no(this, Hs, void 0), ro(this, Bs, e), ro(this, Hs, n); + Qs(this, Bs, void 0), Qs(this, Hs, void 0), to(this, Bs, e), to(this, Hs, n); } upload(e, n, s) { - const a = nd(eo(this, Bs), eo(this, Hs), e, n, s); - return Gt( + const a = Qh(Zs(this, Bs), Zs(this, Hs), e, n, s); + return Ht( a.pipe( - Ye((u) => u.type === "response"), - Ot( + Xe((u) => u.type === "response"), + Lt( (u) => u.body.document ) ) @@ -3118,29 +3009,29 @@ class M_ { } } Bs = /* @__PURE__ */ new WeakMap(), Hs = /* @__PURE__ */ new WeakMap(); -function nd(r, e, n, s, a = {}) { - r_(n); +function Qh(r, e, n, s, a = {}) { + Kb(n); let u = a.extract || void 0; u && !u.length && (u = ["none"]); - const f = Ih(r.config()), l = n === "image" ? "images" : "files", d = D_(a, s), { tag: y, label: p, title: m, description: b, creditLine: C, filename: R, source: O } = d, I = { + const f = Ah(r.config()), l = n === "image" ? "images" : "files", d = S_(a, s), { tag: y, label: p, title: m, description: b, creditLine: C, filename: I, source: O } = d, R = { label: p, title: m, description: b, - filename: R, + filename: I, meta: u, creditLine: C }; - return O && (I.sourceId = O.id, I.sourceName = O.name, I.sourceUrl = O.url), Ti(r, e, { + return O && (R.sourceId = O.id, R.sourceName = O.name, R.sourceUrl = O.url), Ti(r, e, { tag: y, method: "POST", timeout: d.timeout || 0, uri: `/assets/${l}/${f}`, headers: d.contentType ? { "Content-Type": d.contentType } : {}, - query: I, + query: R, body: s }); } -function D_(r, e) { +function S_(r, e) { return typeof File > "u" || !(e instanceof File) ? r : Object.assign( { filename: r.preserveFilename === !1 ? void 0 : e.name, @@ -3149,66 +3040,66 @@ function D_(r, e) { r ); } -var U_ = (r, e) => Object.keys(e).concat(Object.keys(r)).reduce((n, s) => (n[s] = typeof r[s] > "u" ? e[s] : r[s], n), {}); -const k_ = (r, e) => e.reduce((n, s) => (typeof r[s] > "u" || (n[s] = r[s]), n), {}), N_ = 14800, q_ = [ +var R_ = (r, e) => Object.keys(e).concat(Object.keys(r)).reduce((n, s) => (n[s] = typeof r[s] > "u" ? e[s] : r[s], n), {}); +const I_ = (r, e) => e.reduce((n, s) => (typeof r[s] > "u" || (n[s] = r[s]), n), {}), O_ = 14800, T_ = [ "includePreviousRevision", "includeResult", "visibility", "effectFormat", "tag" -], W_ = { +], L_ = { includeResult: !0 }; -function rd(r, e, n = {}) { - const { url: s, token: a, withCredentials: u, requestTagPrefix: f } = this.config(), l = n.tag && f ? [f, n.tag].join(".") : n.tag, d = { ...U_(n, W_), tag: l }, y = k_(d, q_), p = zh({ query: r, params: e, options: { tag: l, ...y } }), m = `${s}${yr(this, "listen", p)}`; - if (m.length > N_) - return new $t((O) => O.error(new Error("Query too large for listener"))); - const b = d.events ? d.events : ["mutation"], C = b.indexOf("reconnect") !== -1, R = {}; - return (a || u) && (R.withCredentials = !0), a && (R.headers = { +function td(r, e, n = {}) { + const { url: s, token: a, withCredentials: u, requestTagPrefix: f } = this.config(), l = n.tag && f ? [f, n.tag].join(".") : n.tag, d = { ...R_(n, L_), tag: l }, y = I_(d, T_), p = Hh({ query: r, params: e, options: { tag: l, ...y } }), m = `${s}${mr(this, "listen", p)}`; + if (m.length > O_) + return new Mt((O) => O.error(new Error("Query too large for listener"))); + const b = d.events ? d.events : ["mutation"], C = b.indexOf("reconnect") !== -1, I = {}; + return (a || u) && (I.withCredentials = !0), a && (I.headers = { Authorization: `Bearer ${a}` - }), new $t((O) => { - let I, x, D = !1, U = !1; - cn(); + }), new Mt((O) => { + let R, x, D = !1, U = !1; + un(); function M() { - D || ($e(), !D && I.readyState === I.CLOSED && (xt(), clearTimeout(x), x = setTimeout(cn, 100))); + D || (Te(), !D && R.readyState === R.CLOSED && (xt(), clearTimeout(x), x = setTimeout(un, 100))); } function z(zt) { - O.error(B_(zt)); + O.error($_(zt)); } function ht(zt) { - const Qt = id(zt); + const Qt = ed(zt); return Qt instanceof Error ? O.error(Qt) : O.next(Qt); } function _t() { D = !0, xt(), O.complete(); } function xt() { - I && (I.removeEventListener("error", M), I.removeEventListener("channelError", z), I.removeEventListener("disconnect", _t), b.forEach((zt) => I.removeEventListener(zt, ht)), I.close()); + R && (R.removeEventListener("error", M), R.removeEventListener("channelError", z), R.removeEventListener("disconnect", _t), b.forEach((zt) => R.removeEventListener(zt, ht)), R.close()); } - function $e() { + function Te() { C && O.next({ type: "reconnect" }); } - async function Be() { - const { default: zt } = await Promise.resolve().then(() => Ld); + async function qe() { + const { default: zt } = await Promise.resolve().then(() => Id); if (U) return; - const Qt = new zt(m, R); - return Qt.addEventListener("error", M), Qt.addEventListener("channelError", z), Qt.addEventListener("disconnect", _t), b.forEach((wr) => Qt.addEventListener(wr, ht)), Qt; + const Qt = new zt(m, I); + return Qt.addEventListener("error", M), Qt.addEventListener("channelError", z), Qt.addEventListener("disconnect", _t), b.forEach((yr) => Qt.addEventListener(yr, ht)), Qt; } - function cn() { - Be().then((zt) => { - zt && (I = zt, U && xt()); + function un() { + qe().then((zt) => { + zt && (R = zt, U && xt()); }).catch((zt) => { - O.error(zt), He(); + O.error(zt), We(); }); } - function He() { + function We() { D = !0, xt(), U = !0; } - return He; + return We; }); } -function id(r) { +function ed(r) { try { const e = r.data && JSON.parse(r.data) || {}; return Object.assign({ type: r.type }, e); @@ -3216,78 +3107,78 @@ function id(r) { return e; } } -function B_(r) { +function $_(r) { if (r instanceof Error) return r; - const e = id(r); - return e instanceof Error ? e : new Error(H_(e)); + const e = ed(r); + return e instanceof Error ? e : new Error(P_(e)); } -function H_(r) { +function P_(r) { return r.error ? r.error.description ? r.error.description : typeof r.error == "string" ? r.error : JSON.stringify(r.error, null, 2) : r.message || "Unknown listener error"; } -var sd = (r, e, n) => { +var nd = (r, e, n) => { if (!e.has(r)) throw TypeError("Cannot " + n); -}, qa = (r, e, n) => (sd(r, e, "read from private field"), n ? n.call(r) : e.get(r)), G_ = (r, e, n) => { +}, Da = (r, e, n) => (nd(r, e, "read from private field"), n ? n.call(r) : e.get(r)), F_ = (r, e, n) => { if (e.has(r)) throw TypeError("Cannot add the same private member more than once"); e instanceof WeakSet ? e.add(r) : e.set(r, n); -}, j_ = (r, e, n, s) => (sd(r, e, "write to private field"), e.set(r, n), n); -const dl = "2021-03-26"; -var Nr; -class od { +}, M_ = (r, e, n, s) => (nd(r, e, "write to private field"), e.set(r, n), n); +const cl = "2021-03-26"; +var kr; +class rd { constructor(e) { - G_(this, Nr, void 0), j_(this, Nr, e); + F_(this, kr, void 0), M_(this, kr, e); } /** * Requires `apiVersion` to be `2021-03-26` or later. */ events() { - const e = qa(this, Nr).config().apiVersion.replace(/^v/, ""); - if (e !== "X" && e < dl) + const e = Da(this, kr).config().apiVersion.replace(/^v/, ""); + if (e !== "X" && e < cl) throw new Error( - `The live events API requires API version ${dl} or later. The current API version is ${e}. Please update your API version to use this feature.` + `The live events API requires API version ${cl} or later. The current API version is ${e}. Please update your API version to use this feature.` ); - const n = yr(qa(this, Nr), "live/events"), s = new URL(qa(this, Nr).getUrl(n, !1)), a = ["restart", "message"]; - return new $t((u) => { + const n = mr(Da(this, kr), "live/events"), s = new URL(Da(this, kr).getUrl(n, !1)), a = ["restart", "message"]; + return new Mt((u) => { let f, l, d = !1, y = !1; - R(); - function p(I) { + I(); + function p(R) { if (!d) { - if ("data" in I) { - const x = pl(I); + if ("data" in R) { + const x = fl(R); u.error(new Error(x.message, { cause: x })); } - f.readyState === f.CLOSED && (b(), clearTimeout(l), l = setTimeout(R, 100)); + f.readyState === f.CLOSED && (b(), clearTimeout(l), l = setTimeout(I, 100)); } } - function m(I) { - const x = pl(I); + function m(R) { + const x = fl(R); return x instanceof Error ? u.error(x) : u.next(x); } function b() { if (f) { f.removeEventListener("error", p); - for (const I of a) - f.removeEventListener(I, m); + for (const R of a) + f.removeEventListener(R, m); f.close(); } } async function C() { - const I = typeof EventSource > "u" ? (await Promise.resolve().then(() => Ld)).default : EventSource; + const R = typeof EventSource > "u" ? (await Promise.resolve().then(() => Id)).default : EventSource; if (y) return; - const x = new I(s.toString()); + const x = new R(s.toString()); x.addEventListener("error", p); for (const D of a) x.addEventListener(D, m); return x; } - function R() { - C().then((I) => { - I && (f = I, y && b()); - }).catch((I) => { - u.error(I), O(); + function I() { + C().then((R) => { + R && (f = R, y && b()); + }).catch((R) => { + u.error(R), O(); }); } function O() { @@ -3297,8 +3188,8 @@ class od { }); } } -Nr = /* @__PURE__ */ new WeakMap(); -function pl(r) { +kr = /* @__PURE__ */ new WeakMap(); +function fl(r) { try { const e = r.data && JSON.parse(r.data) || {}; return { type: r.type, id: r.lastEventId, ...e }; @@ -3306,17 +3197,17 @@ function pl(r) { return e; } } -var ad = (r, e, n) => { +var id = (r, e, n) => { if (!e.has(r)) throw TypeError("Cannot " + n); -}, ie = (r, e, n) => (ad(r, e, "read from private field"), n ? n.call(r) : e.get(r)), io = (r, e, n) => { +}, ie = (r, e, n) => (id(r, e, "read from private field"), n ? n.call(r) : e.get(r)), eo = (r, e, n) => { if (e.has(r)) throw TypeError("Cannot add the same private member more than once"); e instanceof WeakSet ? e.add(r) : e.set(r, n); -}, so = (r, e, n, s) => (ad(r, e, "write to private field"), e.set(r, n), n), lr, hr; -class z_ { +}, no = (r, e, n, s) => (id(r, e, "write to private field"), e.set(r, n), n), lr, hr; +class D_ { constructor(e, n) { - io(this, lr, void 0), io(this, hr, void 0), so(this, lr, e), so(this, hr, n); + eo(this, lr, void 0), eo(this, hr, void 0), no(this, lr, e), no(this, hr, n); } /** * Create a new dataset with the given name @@ -3325,7 +3216,7 @@ class z_ { * @param options - Options for the dataset */ create(e, n) { - return zr(ie(this, lr), ie(this, hr), "PUT", e, n); + return jr(ie(this, lr), ie(this, hr), "PUT", e, n); } /** * Edit a dataset with the given name @@ -3334,7 +3225,7 @@ class z_ { * @param options - New options for the dataset */ edit(e, n) { - return zr(ie(this, lr), ie(this, hr), "PATCH", e, n); + return jr(ie(this, lr), ie(this, hr), "PATCH", e, n); } /** * Delete a dataset with the given name @@ -3342,7 +3233,7 @@ class z_ { * @param name - Name of the dataset to delete */ delete(e) { - return zr(ie(this, lr), ie(this, hr), "DELETE", e); + return jr(ie(this, lr), ie(this, hr), "DELETE", e); } /** * Fetch a list of datasets for the configured project @@ -3356,9 +3247,9 @@ class z_ { } lr = /* @__PURE__ */ new WeakMap(), hr = /* @__PURE__ */ new WeakMap(); var dr, pr; -class K_ { +class U_ { constructor(e, n) { - io(this, dr, void 0), io(this, pr, void 0), so(this, dr, e), so(this, pr, n); + eo(this, dr, void 0), eo(this, pr, void 0), no(this, dr, e), no(this, pr, n); } /** * Create a new dataset with the given name @@ -3367,8 +3258,8 @@ class K_ { * @param options - Options for the dataset */ create(e, n) { - return Gt( - zr(ie(this, dr), ie(this, pr), "PUT", e, n) + return Ht( + jr(ie(this, dr), ie(this, pr), "PUT", e, n) ); } /** @@ -3378,8 +3269,8 @@ class K_ { * @param options - New options for the dataset */ edit(e, n) { - return Gt( - zr(ie(this, dr), ie(this, pr), "PATCH", e, n) + return Ht( + jr(ie(this, dr), ie(this, pr), "PATCH", e, n) ); } /** @@ -3388,41 +3279,41 @@ class K_ { * @param name - Name of the dataset to delete */ delete(e) { - return Gt(zr(ie(this, dr), ie(this, pr), "DELETE", e)); + return Ht(jr(ie(this, dr), ie(this, pr), "DELETE", e)); } /** * Fetch a list of datasets for the configured project */ list() { - return Gt( + return Ht( Ze(ie(this, dr), ie(this, pr), { uri: "/datasets", tag: null }) ); } } dr = /* @__PURE__ */ new WeakMap(), pr = /* @__PURE__ */ new WeakMap(); -function zr(r, e, n, s, a) { - return xh(s), Ze(r, e, { +function jr(r, e, n, s, a) { + return Ch(s), Ze(r, e, { method: n, uri: `/datasets/${s}`, body: a, tag: null }); } -var ud = (r, e, n) => { +var sd = (r, e, n) => { if (!e.has(r)) throw TypeError("Cannot " + n); -}, Kn = (r, e, n) => (ud(r, e, "read from private field"), n ? n.call(r) : e.get(r)), oo = (r, e, n) => { +}, zn = (r, e, n) => (sd(r, e, "read from private field"), n ? n.call(r) : e.get(r)), ro = (r, e, n) => { if (e.has(r)) throw TypeError("Cannot add the same private member more than once"); e instanceof WeakSet ? e.add(r) : e.set(r, n); -}, ao = (r, e, n, s) => (ud(r, e, "write to private field"), e.set(r, n), n), yi, wi; -class J_ { +}, io = (r, e, n, s) => (sd(r, e, "write to private field"), e.set(r, n), n), yi, wi; +class k_ { constructor(e, n) { - oo(this, yi, void 0), oo(this, wi, void 0), ao(this, yi, e), ao(this, wi, n); + ro(this, yi, void 0), ro(this, wi, void 0), io(this, yi, e), io(this, wi, n); } list(e) { const n = (e == null ? void 0 : e.includeMembers) === !1 ? "/projects?includeMembers=false" : "/projects"; - return Ze(Kn(this, yi), Kn(this, wi), { uri: n }); + return Ze(zn(this, yi), zn(this, wi), { uri: n }); } /** * Fetch a project by project ID @@ -3430,18 +3321,18 @@ class J_ { * @param projectId - ID of the project to fetch */ getById(e) { - return Ze(Kn(this, yi), Kn(this, wi), { uri: `/projects/${e}` }); + return Ze(zn(this, yi), zn(this, wi), { uri: `/projects/${e}` }); } } yi = /* @__PURE__ */ new WeakMap(), wi = /* @__PURE__ */ new WeakMap(); var bi, _i; -class X_ { +class N_ { constructor(e, n) { - oo(this, bi, void 0), oo(this, _i, void 0), ao(this, bi, e), ao(this, _i, n); + ro(this, bi, void 0), ro(this, _i, void 0), io(this, bi, e), io(this, _i, n); } list(e) { const n = (e == null ? void 0 : e.includeMembers) === !1 ? "/projects?includeMembers=false" : "/projects"; - return Gt(Ze(Kn(this, bi), Kn(this, _i), { uri: n })); + return Ht(Ze(zn(this, bi), zn(this, _i), { uri: n })); } /** * Fetch a project by project ID @@ -3449,23 +3340,23 @@ class X_ { * @param projectId - ID of the project to fetch */ getById(e) { - return Gt( - Ze(Kn(this, bi), Kn(this, _i), { uri: `/projects/${e}` }) + return Ht( + Ze(zn(this, bi), zn(this, _i), { uri: `/projects/${e}` }) ); } } bi = /* @__PURE__ */ new WeakMap(), _i = /* @__PURE__ */ new WeakMap(); -var cd = (r, e, n) => { +var od = (r, e, n) => { if (!e.has(r)) throw TypeError("Cannot " + n); -}, uo = (r, e, n) => (cd(r, e, "read from private field"), n ? n.call(r) : e.get(r)), co = (r, e, n) => { +}, so = (r, e, n) => (od(r, e, "read from private field"), n ? n.call(r) : e.get(r)), oo = (r, e, n) => { if (e.has(r)) throw TypeError("Cannot add the same private member more than once"); e instanceof WeakSet ? e.add(r) : e.set(r, n); -}, fo = (r, e, n, s) => (cd(r, e, "write to private field"), e.set(r, n), n), Gs, js; -class V_ { +}, ao = (r, e, n, s) => (od(r, e, "write to private field"), e.set(r, n), n), Gs, js; +class q_ { constructor(e, n) { - co(this, Gs, void 0), co(this, js, void 0), fo(this, Gs, e), fo(this, js, n); + oo(this, Gs, void 0), oo(this, js, void 0), ao(this, Gs, e), ao(this, js, n); } /** * Fetch a user by user ID @@ -3474,17 +3365,17 @@ class V_ { */ getById(e) { return Ze( - uo(this, Gs), - uo(this, js), + so(this, Gs), + so(this, js), { uri: `/users/${e}` } ); } } Gs = /* @__PURE__ */ new WeakMap(), js = /* @__PURE__ */ new WeakMap(); var zs, Ks; -class Y_ { +class W_ { constructor(e, n) { - co(this, zs, void 0), co(this, Ks, void 0), fo(this, zs, e), fo(this, Ks, n); + oo(this, zs, void 0), oo(this, Ks, void 0), ao(this, zs, e), ao(this, Ks, n); } /** * Fetch a user by user ID @@ -3492,40 +3383,40 @@ class Y_ { * @param id - User ID of the user to fetch. If `me` is provided, a minimal response including the users role is returned. */ getById(e) { - return Gt( - Ze(uo(this, zs), uo(this, Ks), { + return Ht( + Ze(so(this, zs), so(this, Ks), { uri: `/users/${e}` }) ); } } zs = /* @__PURE__ */ new WeakMap(), Ks = /* @__PURE__ */ new WeakMap(); -var Z_ = Object.defineProperty, Q_ = (r, e, n) => e in r ? Z_(r, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : r[e] = n, Re = (r, e, n) => (Q_(r, typeof e != "symbol" ? e + "" : e, n), n), fd = (r, e, n) => { +var B_ = Object.defineProperty, H_ = (r, e, n) => e in r ? B_(r, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : r[e] = n, Ie = (r, e, n) => (H_(r, typeof e != "symbol" ? e + "" : e, n), n), ad = (r, e, n) => { if (!e.has(r)) throw TypeError("Cannot " + n); -}, et = (r, e, n) => (fd(r, e, "read from private field"), n ? n.call(r) : e.get(r)), lo = (r, e, n) => { +}, et = (r, e, n) => (ad(r, e, "read from private field"), n ? n.call(r) : e.get(r)), uo = (r, e, n) => { if (e.has(r)) throw TypeError("Cannot add the same private member more than once"); e instanceof WeakSet ? e.add(r) : e.set(r, n); -}, ho = (r, e, n, s) => (fd(r, e, "write to private field"), e.set(r, n), n), Bn, Ht; -const tC = class nu { +}, co = (r, e, n, s) => (ad(r, e, "write to private field"), e.set(r, n), n), Wn, Bt; +const G_ = class Qa { constructor(e, n = xi) { - Re(this, "assets"), Re(this, "datasets"), Re(this, "live"), Re(this, "projects"), Re(this, "users"), lo(this, Bn, void 0), lo(this, Ht, void 0), Re(this, "listen", rd), this.config(n), ho(this, Ht, e), this.assets = new F_(this, et(this, Ht)), this.datasets = new z_(this, et(this, Ht)), this.live = new od(this), this.projects = new J_(this, et(this, Ht)), this.users = new V_(this, et(this, Ht)); + Ie(this, "assets"), Ie(this, "datasets"), Ie(this, "live"), Ie(this, "projects"), Ie(this, "users"), uo(this, Wn, void 0), uo(this, Bt, void 0), Ie(this, "listen", td), this.config(n), co(this, Bt, e), this.assets = new A_(this, et(this, Bt)), this.datasets = new D_(this, et(this, Bt)), this.live = new rd(this), this.projects = new k_(this, et(this, Bt)), this.users = new q_(this, et(this, Bt)); } /** * Clone the client - returns a new instance */ clone() { - return new nu(et(this, Ht), this.config()); + return new Qa(et(this, Bt), this.config()); } config(e) { if (e === void 0) - return { ...et(this, Bn) }; - if (et(this, Bn) && et(this, Bn).allowReconfigure === !1) + return { ...et(this, Wn) }; + if (et(this, Wn) && et(this, Wn).allowReconfigure === !1) throw new Error( "Existing client instance cannot be reconfigured - use `withConfig(newConfig)` to return a new client" ); - return ho(this, Bn, jh(e, et(this, Bn) || {})), this; + return co(this, Wn, Bh(e, et(this, Wn) || {})), this; } /** * Clone the client with a new (partial) configuration. @@ -3534,7 +3425,7 @@ const tC = class nu { */ withConfig(e) { const n = this.config(); - return new nu(et(this, Ht), { + return new Qa(et(this, Bt), { ...n, ...e, stega: { @@ -3544,10 +3435,10 @@ const tC = class nu { }); } fetch(e, n, s) { - return Kh( + return Gh( this, - et(this, Ht), - et(this, Bn).stega, + et(this, Bt), + et(this, Wn).stega, e, n, s @@ -3560,7 +3451,7 @@ const tC = class nu { * @param options - Request options */ getDocument(e, n) { - return Jh(this, et(this, Ht), e, n); + return jh(this, et(this, Bt), e, n); } /** * Fetch multiple documents in one request. @@ -3572,22 +3463,22 @@ const tC = class nu { * @param options - Request options */ getDocuments(e, n) { - return Xh(this, et(this, Ht), e, n); + return zh(this, et(this, Bt), e, n); } create(e, n) { - return yo(this, et(this, Ht), e, "create", n); + return go(this, et(this, Bt), e, "create", n); } createIfNotExists(e, n) { - return Vh(this, et(this, Ht), e, n); + return Kh(this, et(this, Bt), e, n); } createOrReplace(e, n) { - return Yh(this, et(this, Ht), e, n); + return Jh(this, et(this, Bt), e, n); } delete(e, n) { - return Zh(this, et(this, Ht), e, n); + return Xh(this, et(this, Bt), e, n); } mutate(e, n) { - return Qh(this, et(this, Ht), e, n); + return Yh(this, et(this, Bt), e, n); } /** * Create a new buildable patch of operations to perform @@ -3605,7 +3496,7 @@ const tC = class nu { * @param operations - Optional array of mutation operations to initialize the transaction instance with */ transaction(e) { - return new Hh(e, this); + return new qh(e, this); } /** * Perform action operations against the configured dataset @@ -3614,7 +3505,7 @@ const tC = class nu { * @param options - Action options */ action(e, n) { - return td(this, et(this, Ht), e, n); + return Vh(this, et(this, Bt), e, n); } /** * Perform an HTTP request against the Sanity API @@ -3622,7 +3513,7 @@ const tC = class nu { * @param options - Request options */ request(e) { - return Ze(this, et(this, Ht), e); + return Ze(this, et(this, Bt), e); } /** * Get a Sanity API URL for the URI provided @@ -3631,7 +3522,7 @@ const tC = class nu { * @param canUseCdn - Whether or not to allow using the API CDN for this route */ getUrl(e, n) { - return yu(this, e, n); + return pu(this, e, n); } /** * Get a Sanity API URL for the data operation and path provided @@ -3640,30 +3531,30 @@ const tC = class nu { * @param path - Path to append after the operation */ getDataUrl(e, n) { - return yr(this, e, n); + return mr(this, e, n); } }; -Bn = /* @__PURE__ */ new WeakMap(), Ht = /* @__PURE__ */ new WeakMap(); -let eC = tC; -var Hn, Ut; -const nC = class ru { +Wn = /* @__PURE__ */ new WeakMap(), Bt = /* @__PURE__ */ new WeakMap(); +let j_ = G_; +var Bn, Ut; +const z_ = class tu { constructor(e, n = xi) { - Re(this, "assets"), Re(this, "datasets"), Re(this, "live"), Re(this, "projects"), Re(this, "users"), Re(this, "observable"), lo(this, Hn, void 0), lo(this, Ut, void 0), Re(this, "listen", rd), this.config(n), ho(this, Ut, e), this.assets = new M_(this, et(this, Ut)), this.datasets = new K_(this, et(this, Ut)), this.live = new od(this), this.projects = new X_(this, et(this, Ut)), this.users = new Y_(this, et(this, Ut)), this.observable = new eC(e, n); + Ie(this, "assets"), Ie(this, "datasets"), Ie(this, "live"), Ie(this, "projects"), Ie(this, "users"), Ie(this, "observable"), uo(this, Bn, void 0), uo(this, Ut, void 0), Ie(this, "listen", td), this.config(n), co(this, Ut, e), this.assets = new x_(this, et(this, Ut)), this.datasets = new U_(this, et(this, Ut)), this.live = new rd(this), this.projects = new N_(this, et(this, Ut)), this.users = new W_(this, et(this, Ut)), this.observable = new j_(e, n); } /** * Clone the client - returns a new instance */ clone() { - return new ru(et(this, Ut), this.config()); + return new tu(et(this, Ut), this.config()); } config(e) { if (e === void 0) - return { ...et(this, Hn) }; - if (et(this, Hn) && et(this, Hn).allowReconfigure === !1) + return { ...et(this, Bn) }; + if (et(this, Bn) && et(this, Bn).allowReconfigure === !1) throw new Error( "Existing client instance cannot be reconfigured - use `withConfig(newConfig)` to return a new client" ); - return this.observable && this.observable.config(e), ho(this, Hn, jh(e, et(this, Hn) || {})), this; + return this.observable && this.observable.config(e), co(this, Bn, Bh(e, et(this, Bn) || {})), this; } /** * Clone the client with a new (partial) configuration. @@ -3672,7 +3563,7 @@ const nC = class ru { */ withConfig(e) { const n = this.config(); - return new ru(et(this, Ut), { + return new tu(et(this, Ut), { ...n, ...e, stega: { @@ -3682,11 +3573,11 @@ const nC = class ru { }); } fetch(e, n, s) { - return Gt( - Kh( + return Ht( + Gh( this, et(this, Ut), - et(this, Hn).stega, + et(this, Bn).stega, e, n, s @@ -3700,7 +3591,7 @@ const nC = class ru { * @param options - Request options */ getDocument(e, n) { - return Gt(Jh(this, et(this, Ut), e, n)); + return Ht(jh(this, et(this, Ut), e, n)); } /** * Fetch multiple documents in one request. @@ -3712,28 +3603,28 @@ const nC = class ru { * @param options - Request options */ getDocuments(e, n) { - return Gt(Xh(this, et(this, Ut), e, n)); + return Ht(zh(this, et(this, Ut), e, n)); } create(e, n) { - return Gt( - yo(this, et(this, Ut), e, "create", n) + return Ht( + go(this, et(this, Ut), e, "create", n) ); } createIfNotExists(e, n) { - return Gt( - Vh(this, et(this, Ut), e, n) + return Ht( + Kh(this, et(this, Ut), e, n) ); } createOrReplace(e, n) { - return Gt( - Yh(this, et(this, Ut), e, n) + return Ht( + Jh(this, et(this, Ut), e, n) ); } delete(e, n) { - return Gt(Zh(this, et(this, Ut), e, n)); + return Ht(Xh(this, et(this, Ut), e, n)); } mutate(e, n) { - return Gt(Qh(this, et(this, Ut), e, n)); + return Ht(Yh(this, et(this, Ut), e, n)); } /** * Create a new buildable patch of operations to perform @@ -3751,7 +3642,7 @@ const nC = class ru { * @param operations - Optional array of mutation operations to initialize the transaction instance with */ transaction(e) { - return new Wh(e, this); + return new kh(e, this); } /** * Perform action operations against the configured dataset @@ -3761,7 +3652,7 @@ const nC = class ru { * @param options - Action options */ action(e, n) { - return Gt(td(this, et(this, Ut), e, n)); + return Ht(Vh(this, et(this, Ut), e, n)); } /** * Perform a request against the Sanity API @@ -3771,7 +3662,7 @@ const nC = class ru { * @returns Promise resolving to the response body */ request(e) { - return Gt(Ze(this, et(this, Ut), e)); + return Ht(Ze(this, et(this, Ut), e)); } /** * Perform an HTTP request a `/data` sub-endpoint @@ -3784,7 +3675,7 @@ const nC = class ru { * @internal */ dataRequest(e, n, s) { - return Gt(Xr(this, et(this, Ut), e, n, s)); + return Ht(Xr(this, et(this, Ut), e, n, s)); } /** * Get a Sanity API URL for the URI provided @@ -3793,7 +3684,7 @@ const nC = class ru { * @param canUseCdn - Whether or not to allow using the API CDN for this route */ getUrl(e, n) { - return yu(this, e, n); + return pu(this, e, n); } /** * Get a Sanity API URL for the data operation and path provided @@ -3802,13 +3693,13 @@ const nC = class ru { * @param path - Path to append after the operation */ getDataUrl(e, n) { - return yr(this, e, n); + return mr(this, e, n); } }; -Hn = /* @__PURE__ */ new WeakMap(), Ut = /* @__PURE__ */ new WeakMap(); -let rC = nC; -function iC(r, e) { - const n = t_(r); +Bn = /* @__PURE__ */ new WeakMap(), Ut = /* @__PURE__ */ new WeakMap(); +let K_ = z_; +function J_(r, e) { + const n = Gb(r); return { requester: n, createClient: (s) => new e( (a, u) => (u || n)({ maxRedirects: 0, @@ -3819,13 +3710,13 @@ function iC(r, e) { s ) }; } -var sC = []; -const oC = iC(sC, rC), aC = oC.createClient; -var qr = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}; -function ld(r) { +var X_ = []; +const Y_ = J_(X_, K_), V_ = Y_.createClient; +var Nr = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}; +function ud(r) { return r && r.__esModule && Object.prototype.hasOwnProperty.call(r, "default") ? r.default : r; } -var po = { exports: {} }; +var fo = { exports: {} }; /** * @license * Lodash @@ -3834,29 +3725,29 @@ var po = { exports: {} }; * Based on Underscore.js 1.8.3 * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors */ -po.exports; +fo.exports; (function(r, e) { (function() { - var n, s = "4.17.21", a = 200, u = "Unsupported core-js use. Try https://npms.io/search?q=ponyfill.", f = "Expected a function", l = "Invalid `variable` option passed into `_.template`", d = "__lodash_hash_undefined__", y = 500, p = "__lodash_placeholder__", m = 1, b = 2, C = 4, R = 1, O = 2, I = 1, x = 2, D = 4, U = 8, M = 16, z = 32, ht = 64, _t = 128, xt = 256, $e = 512, Be = 30, cn = "...", He = 800, zt = 16, Qt = 1, wr = 2, Vr = 3, te = 1 / 0, se = 9007199254740991, Vn = 17976931348623157e292, An = 0 / 0, kt = 4294967295, Yr = kt - 1, $i = kt >>> 1, Co = [ + var n, s = "4.17.21", a = 200, u = "Unsupported core-js use. Try https://npms.io/search?q=ponyfill.", f = "Expected a function", l = "Invalid `variable` option passed into `_.template`", d = "__lodash_hash_undefined__", y = 500, p = "__lodash_placeholder__", m = 1, b = 2, C = 4, I = 1, O = 2, R = 1, x = 2, D = 4, U = 8, M = 16, z = 32, ht = 64, _t = 128, xt = 256, Te = 512, qe = 30, un = "...", We = 800, zt = 16, Qt = 1, yr = 2, Yr = 3, te = 1 / 0, se = 9007199254740991, Yn = 17976931348623157e292, En = 0 / 0, kt = 4294967295, Vr = kt - 1, $i = kt >>> 1, wo = [ ["ary", _t], - ["bind", I], + ["bind", R], ["bindKey", x], ["curry", U], ["curryRight", M], - ["flip", $e], + ["flip", Te], ["partial", z], ["partialRight", ht], ["rearg", xt] - ], xn = "[object Arguments]", br = "[object Array]", Eo = "[object AsyncFunction]", fn = "[object Boolean]", ln = "[object Date]", Sn = "[object DOMException]", ee = "[object Error]", _r = "[object Function]", Pi = "[object GeneratorFunction]", ye = "[object Map]", In = "[object Number]", L = "[object Null]", k = "[object Object]", H = "[object Promise]", N = "[object Proxy]", V = "[object RegExp]", G = "[object Set]", Q = "[object String]", mt = "[object Symbol]", at = "[object Undefined]", ft = "[object WeakMap]", yt = "[object WeakSet]", Y = "[object ArrayBuffer]", pt = "[object DataView]", we = "[object Float32Array]", hn = "[object Float64Array]", Kt = "[object Int8Array]", Nt = "[object Int16Array]", oe = "[object Int32Array]", en = "[object Uint8Array]", Rn = "[object Uint8ClampedArray]", be = "[object Uint16Array]", On = "[object Uint32Array]", Jt = /\b__p \+= '';/g, Zr = /\b(__p \+=) '' \+/g, dn = /(__e\(.*?\)|\b__t\)) \+\n'';/g, Fi = /&(?:amp|lt|gt|quot|#39);/g, Mi = /[&<>"']/g, Di = RegExp(Fi.source), Qr = RegExp(Mi.source), Yn = /<%-([\s\S]+?)%>/g, Dt = /<%([\s\S]+?)%>/g, Tt = /<%=([\s\S]+?)%>/g, ae = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, ue = /^\w*$/, Xt = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, Pt = /[\\^$.*+?()[\]{}|]/g, Ge = RegExp(Pt.source), _e = /^\s+/, Tn = /\s/, $d = /\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/, Pd = /\{\n\/\* \[wrapped with (.+)\] \*/, Fd = /,? & /, Md = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g, Dd = /[()=,{}\[\]\/\s]/, Ud = /\\(\\)?/g, kd = /\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g, Cu = /\w*$/, Nd = /^[-+]0x[0-9a-f]+$/i, qd = /^0b[01]+$/i, Wd = /^\[object .+?Constructor\]$/, Bd = /^0o[0-7]+$/i, Hd = /^(?:0|[1-9]\d*)$/, Gd = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g, Ui = /($^)/, jd = /['\n\r\u2028\u2029\\]/g, ki = "\\ud800-\\udfff", zd = "\\u0300-\\u036f", Kd = "\\ufe20-\\ufe2f", Jd = "\\u20d0-\\u20ff", Eu = zd + Kd + Jd, Au = "\\u2700-\\u27bf", xu = "a-z\\xdf-\\xf6\\xf8-\\xff", Xd = "\\xac\\xb1\\xd7\\xf7", Vd = "\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf", Yd = "\\u2000-\\u206f", Zd = " \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000", Su = "A-Z\\xc0-\\xd6\\xd8-\\xde", Iu = "\\ufe0e\\ufe0f", Ru = Xd + Vd + Yd + Zd, Ao = "['’]", Qd = "[" + ki + "]", Ou = "[" + Ru + "]", Ni = "[" + Eu + "]", Tu = "\\d+", tp = "[" + Au + "]", Lu = "[" + xu + "]", $u = "[^" + ki + Ru + Tu + Au + xu + Su + "]", xo = "\\ud83c[\\udffb-\\udfff]", ep = "(?:" + Ni + "|" + xo + ")", Pu = "[^" + ki + "]", So = "(?:\\ud83c[\\udde6-\\uddff]){2}", Io = "[\\ud800-\\udbff][\\udc00-\\udfff]", Cr = "[" + Su + "]", Fu = "\\u200d", Mu = "(?:" + Lu + "|" + $u + ")", np = "(?:" + Cr + "|" + $u + ")", Du = "(?:" + Ao + "(?:d|ll|m|re|s|t|ve))?", Uu = "(?:" + Ao + "(?:D|LL|M|RE|S|T|VE))?", ku = ep + "?", Nu = "[" + Iu + "]?", rp = "(?:" + Fu + "(?:" + [Pu, So, Io].join("|") + ")" + Nu + ku + ")*", ip = "\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])", sp = "\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])", qu = Nu + ku + rp, op = "(?:" + [tp, So, Io].join("|") + ")" + qu, ap = "(?:" + [Pu + Ni + "?", Ni, So, Io, Qd].join("|") + ")", up = RegExp(Ao, "g"), cp = RegExp(Ni, "g"), Ro = RegExp(xo + "(?=" + xo + ")|" + ap + qu, "g"), fp = RegExp([ - Cr + "?" + Lu + "+" + Du + "(?=" + [Ou, Cr, "$"].join("|") + ")", - np + "+" + Uu + "(?=" + [Ou, Cr + Mu, "$"].join("|") + ")", - Cr + "?" + Mu + "+" + Du, - Cr + "+" + Uu, - sp, - ip, - Tu, - op - ].join("|"), "g"), lp = RegExp("[" + Fu + ki + Eu + Iu + "]"), hp = /[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/, dp = [ + ], An = "[object Arguments]", wr = "[object Array]", bo = "[object AsyncFunction]", cn = "[object Boolean]", fn = "[object Date]", xn = "[object DOMException]", ee = "[object Error]", br = "[object Function]", Pi = "[object GeneratorFunction]", ye = "[object Map]", Sn = "[object Number]", L = "[object Null]", k = "[object Object]", H = "[object Promise]", N = "[object Proxy]", Y = "[object RegExp]", G = "[object Set]", Q = "[object String]", mt = "[object Symbol]", at = "[object Undefined]", ft = "[object WeakMap]", yt = "[object WeakSet]", V = "[object ArrayBuffer]", pt = "[object DataView]", we = "[object Float32Array]", ln = "[object Float64Array]", Kt = "[object Int8Array]", Nt = "[object Int16Array]", oe = "[object Int32Array]", tn = "[object Uint8Array]", Rn = "[object Uint8ClampedArray]", be = "[object Uint16Array]", In = "[object Uint32Array]", Jt = /\b__p \+= '';/g, Zr = /\b(__p \+=) '' \+/g, hn = /(__e\(.*?\)|\b__t\)) \+\n'';/g, Fi = /&(?:amp|lt|gt|quot|#39);/g, Mi = /[&<>"']/g, Di = RegExp(Fi.source), Qr = RegExp(Mi.source), Vn = /<%-([\s\S]+?)%>/g, Dt = /<%([\s\S]+?)%>/g, Ot = /<%=([\s\S]+?)%>/g, ae = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, ue = /^\w*$/, Xt = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, $t = /[\\^$.*+?()[\]{}|]/g, Be = RegExp($t.source), _e = /^\s+/, On = /\s/, Od = /\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/, Td = /\{\n\/\* \[wrapped with (.+)\] \*/, Ld = /,? & /, $d = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g, Pd = /[()=,{}\[\]\/\s]/, Fd = /\\(\\)?/g, Md = /\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g, yu = /\w*$/, Dd = /^[-+]0x[0-9a-f]+$/i, Ud = /^0b[01]+$/i, kd = /^\[object .+?Constructor\]$/, Nd = /^0o[0-7]+$/i, qd = /^(?:0|[1-9]\d*)$/, Wd = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g, Ui = /($^)/, Bd = /['\n\r\u2028\u2029\\]/g, ki = "\\ud800-\\udfff", Hd = "\\u0300-\\u036f", Gd = "\\ufe20-\\ufe2f", jd = "\\u20d0-\\u20ff", wu = Hd + Gd + jd, bu = "\\u2700-\\u27bf", _u = "a-z\\xdf-\\xf6\\xf8-\\xff", zd = "\\xac\\xb1\\xd7\\xf7", Kd = "\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf", Jd = "\\u2000-\\u206f", Xd = " \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000", Cu = "A-Z\\xc0-\\xd6\\xd8-\\xde", Eu = "\\ufe0e\\ufe0f", Au = zd + Kd + Jd + Xd, _o = "['’]", Yd = "[" + ki + "]", xu = "[" + Au + "]", Ni = "[" + wu + "]", Su = "\\d+", Vd = "[" + bu + "]", Ru = "[" + _u + "]", Iu = "[^" + ki + Au + Su + bu + _u + Cu + "]", Co = "\\ud83c[\\udffb-\\udfff]", Zd = "(?:" + Ni + "|" + Co + ")", Ou = "[^" + ki + "]", Eo = "(?:\\ud83c[\\udde6-\\uddff]){2}", Ao = "[\\ud800-\\udbff][\\udc00-\\udfff]", _r = "[" + Cu + "]", Tu = "\\u200d", Lu = "(?:" + Ru + "|" + Iu + ")", Qd = "(?:" + _r + "|" + Iu + ")", $u = "(?:" + _o + "(?:d|ll|m|re|s|t|ve))?", Pu = "(?:" + _o + "(?:D|LL|M|RE|S|T|VE))?", Fu = Zd + "?", Mu = "[" + Eu + "]?", tp = "(?:" + Tu + "(?:" + [Ou, Eo, Ao].join("|") + ")" + Mu + Fu + ")*", ep = "\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])", np = "\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])", Du = Mu + Fu + tp, rp = "(?:" + [Vd, Eo, Ao].join("|") + ")" + Du, ip = "(?:" + [Ou + Ni + "?", Ni, Eo, Ao, Yd].join("|") + ")", sp = RegExp(_o, "g"), op = RegExp(Ni, "g"), xo = RegExp(Co + "(?=" + Co + ")|" + ip + Du, "g"), ap = RegExp([ + _r + "?" + Ru + "+" + $u + "(?=" + [xu, _r, "$"].join("|") + ")", + Qd + "+" + Pu + "(?=" + [xu, _r + Lu, "$"].join("|") + ")", + _r + "?" + Lu + "+" + $u, + _r + "+" + Pu, + np, + ep, + Su, + rp + ].join("|"), "g"), up = RegExp("[" + Tu + ki + wu + Eu + "]"), cp = /[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/, fp = [ "Array", "Buffer", "DataView", @@ -3887,11 +3778,11 @@ po.exports; "isFinite", "parseInt", "setTimeout" - ], pp = -1, At = {}; - At[we] = At[hn] = At[Kt] = At[Nt] = At[oe] = At[en] = At[Rn] = At[be] = At[On] = !0, At[xn] = At[br] = At[Y] = At[fn] = At[pt] = At[ln] = At[ee] = At[_r] = At[ye] = At[In] = At[k] = At[V] = At[G] = At[Q] = At[ft] = !1; + ], lp = -1, At = {}; + At[we] = At[ln] = At[Kt] = At[Nt] = At[oe] = At[tn] = At[Rn] = At[be] = At[In] = !0, At[An] = At[wr] = At[V] = At[cn] = At[pt] = At[fn] = At[ee] = At[br] = At[ye] = At[Sn] = At[k] = At[Y] = At[G] = At[Q] = At[ft] = !1; var Ct = {}; - Ct[xn] = Ct[br] = Ct[Y] = Ct[pt] = Ct[fn] = Ct[ln] = Ct[we] = Ct[hn] = Ct[Kt] = Ct[Nt] = Ct[oe] = Ct[ye] = Ct[In] = Ct[k] = Ct[V] = Ct[G] = Ct[Q] = Ct[mt] = Ct[en] = Ct[Rn] = Ct[be] = Ct[On] = !0, Ct[ee] = Ct[_r] = Ct[ft] = !1; - var gp = { + Ct[An] = Ct[wr] = Ct[V] = Ct[pt] = Ct[cn] = Ct[fn] = Ct[we] = Ct[ln] = Ct[Kt] = Ct[Nt] = Ct[oe] = Ct[ye] = Ct[Sn] = Ct[k] = Ct[Y] = Ct[G] = Ct[Q] = Ct[mt] = Ct[tn] = Ct[Rn] = Ct[be] = Ct[In] = !0, Ct[ee] = Ct[br] = Ct[ft] = !1; + var hp = { // Latin-1 Supplement block. À: "A", Á: "A", @@ -4084,32 +3975,32 @@ po.exports; œ: "oe", ʼn: "'n", ſ: "s" - }, vp = { + }, dp = { "&": "&", "<": "<", ">": ">", '"': """, "'": "'" - }, mp = { + }, pp = { "&": "&", "<": "<", ">": ">", """: '"', "'": "'" - }, yp = { + }, gp = { "\\": "\\", "'": "'", "\n": "n", "\r": "r", "\u2028": "u2028", "\u2029": "u2029" - }, wp = parseFloat, bp = parseInt, Wu = typeof qr == "object" && qr && qr.Object === Object && qr, _p = typeof self == "object" && self && self.Object === Object && self, Vt = Wu || _p || Function("return this")(), Oo = e && !e.nodeType && e, Zn = Oo && !0 && r && !r.nodeType && r, Bu = Zn && Zn.exports === Oo, To = Bu && Wu.process, Pe = function() { + }, vp = parseFloat, mp = parseInt, Uu = typeof Nr == "object" && Nr && Nr.Object === Object && Nr, yp = typeof self == "object" && self && self.Object === Object && self, Yt = Uu || yp || Function("return this")(), So = e && !e.nodeType && e, Zn = So && !0 && r && !r.nodeType && r, ku = Zn && Zn.exports === So, Ro = ku && Uu.process, Le = function() { try { var E = Zn && Zn.require && Zn.require("util").types; - return E || To && To.binding && To.binding("util"); + return E || Ro && Ro.binding && Ro.binding("util"); } catch { } - }(), Hu = Pe && Pe.isArrayBuffer, Gu = Pe && Pe.isDate, ju = Pe && Pe.isMap, zu = Pe && Pe.isRegExp, Ku = Pe && Pe.isSet, Ju = Pe && Pe.isTypedArray; + }(), Nu = Le && Le.isArrayBuffer, qu = Le && Le.isDate, Wu = Le && Le.isMap, Bu = Le && Le.isRegExp, Hu = Le && Le.isSet, Gu = Le && Le.isTypedArray; function Ce(E, T, S) { switch (S.length) { case 0: @@ -4123,30 +4014,30 @@ po.exports; } return E.apply(T, S); } - function Cp(E, T, S, B) { + function wp(E, T, S, B) { for (var Z = -1, dt = E == null ? 0 : E.length; ++Z < dt; ) { var qt = E[Z]; T(B, qt, S(qt), E); } return B; } - function Fe(E, T) { + function $e(E, T) { for (var S = -1, B = E == null ? 0 : E.length; ++S < B && T(E[S], S, E) !== !1; ) ; return E; } - function Ep(E, T) { + function bp(E, T) { for (var S = E == null ? 0 : E.length; S-- && T(E[S], S, E) !== !1; ) ; return E; } - function Xu(E, T) { + function ju(E, T) { for (var S = -1, B = E == null ? 0 : E.length; ++S < B; ) if (!T(E[S], S, E)) return !1; return !0; } - function Ln(E, T) { + function Tn(E, T) { for (var S = -1, B = E == null ? 0 : E.length, Z = 0, dt = []; ++S < B; ) { var qt = E[S]; T(qt, S, E) && (dt[Z++] = qt); @@ -4155,9 +4046,9 @@ po.exports; } function qi(E, T) { var S = E == null ? 0 : E.length; - return !!S && Er(E, T, 0) > -1; + return !!S && Cr(E, T, 0) > -1; } - function Lo(E, T, S) { + function Io(E, T, S) { for (var B = -1, Z = E == null ? 0 : E.length; ++B < Z; ) if (S(T, E[B])) return !0; @@ -4168,37 +4059,37 @@ po.exports; Z[S] = T(E[S], S, E); return Z; } - function $n(E, T) { + function Ln(E, T) { for (var S = -1, B = T.length, Z = E.length; ++S < B; ) E[Z + S] = T[S]; return E; } - function $o(E, T, S, B) { + function Oo(E, T, S, B) { var Z = -1, dt = E == null ? 0 : E.length; for (B && dt && (S = E[++Z]); ++Z < dt; ) S = T(S, E[Z], Z, E); return S; } - function Ap(E, T, S, B) { + function _p(E, T, S, B) { var Z = E == null ? 0 : E.length; for (B && Z && (S = E[--Z]); Z--; ) S = T(S, E[Z], Z, E); return S; } - function Po(E, T) { + function To(E, T) { for (var S = -1, B = E == null ? 0 : E.length; ++S < B; ) if (T(E[S], S, E)) return !0; return !1; } - var xp = Fo("length"); - function Sp(E) { + var Cp = Lo("length"); + function Ep(E) { return E.split(""); } - function Ip(E) { - return E.match(Md) || []; + function Ap(E) { + return E.match($d) || []; } - function Vu(E, T, S) { + function zu(E, T, S) { var B; return S(E, function(Z, dt, qt) { if (T(Z, dt, qt)) @@ -4211,69 +4102,69 @@ po.exports; return dt; return -1; } - function Er(E, T, S) { - return T === T ? Np(E, T, S) : Wi(E, Yu, S); + function Cr(E, T, S) { + return T === T ? Dp(E, T, S) : Wi(E, Ku, S); } - function Rp(E, T, S, B) { + function xp(E, T, S, B) { for (var Z = S - 1, dt = E.length; ++Z < dt; ) if (B(E[Z], T)) return Z; return -1; } - function Yu(E) { + function Ku(E) { return E !== E; } - function Zu(E, T) { + function Ju(E, T) { var S = E == null ? 0 : E.length; - return S ? Do(E, T) / S : An; + return S ? Po(E, T) / S : En; } - function Fo(E) { + function Lo(E) { return function(T) { return T == null ? n : T[E]; }; } - function Mo(E) { + function $o(E) { return function(T) { return E == null ? n : E[T]; }; } - function Qu(E, T, S, B, Z) { + function Xu(E, T, S, B, Z) { return Z(E, function(dt, qt, wt) { S = B ? (B = !1, dt) : T(S, dt, qt, wt); }), S; } - function Op(E, T) { + function Sp(E, T) { var S = E.length; for (E.sort(T); S--; ) E[S] = E[S].value; return E; } - function Do(E, T) { + function Po(E, T) { for (var S, B = -1, Z = E.length; ++B < Z; ) { var dt = T(E[B]); dt !== n && (S = S === n ? dt : S + dt); } return S; } - function Uo(E, T) { + function Fo(E, T) { for (var S = -1, B = Array(E); ++S < E; ) B[S] = T(S); return B; } - function Tp(E, T) { + function Rp(E, T) { return St(T, function(S) { return [S, E[S]]; }); } - function tc(E) { - return E && E.slice(0, ic(E) + 1).replace(_e, ""); + function Yu(E) { + return E && E.slice(0, tc(E) + 1).replace(_e, ""); } function Ee(E) { return function(T) { return E(T); }; } - function ko(E, T) { + function Mo(E, T) { return St(T, function(S) { return E[S]; }); @@ -4281,51 +4172,51 @@ po.exports; function ti(E, T) { return E.has(T); } - function ec(E, T) { - for (var S = -1, B = E.length; ++S < B && Er(T, E[S], 0) > -1; ) + function Vu(E, T) { + for (var S = -1, B = E.length; ++S < B && Cr(T, E[S], 0) > -1; ) ; return S; } - function nc(E, T) { - for (var S = E.length; S-- && Er(T, E[S], 0) > -1; ) + function Zu(E, T) { + for (var S = E.length; S-- && Cr(T, E[S], 0) > -1; ) ; return S; } - function Lp(E, T) { + function Ip(E, T) { for (var S = E.length, B = 0; S--; ) E[S] === T && ++B; return B; } - var $p = Mo(gp), Pp = Mo(vp); - function Fp(E) { - return "\\" + yp[E]; + var Op = $o(hp), Tp = $o(dp); + function Lp(E) { + return "\\" + gp[E]; } - function Mp(E, T) { + function $p(E, T) { return E == null ? n : E[T]; } - function Ar(E) { - return lp.test(E); + function Er(E) { + return up.test(E); } - function Dp(E) { - return hp.test(E); + function Pp(E) { + return cp.test(E); } - function Up(E) { + function Fp(E) { for (var T, S = []; !(T = E.next()).done; ) S.push(T.value); return S; } - function No(E) { + function Do(E) { var T = -1, S = Array(E.size); return E.forEach(function(B, Z) { S[++T] = [Z, B]; }), S; } - function rc(E, T) { + function Qu(E, T) { return function(S) { return E(T(S)); }; } - function Pn(E, T) { + function $n(E, T) { for (var S = -1, B = E.length, Z = 0, dt = []; ++S < B; ) { var qt = E[S]; (qt === T || qt === p) && (E[S] = p, dt[Z++] = S); @@ -4338,78 +4229,78 @@ po.exports; S[++T] = B; }), S; } - function kp(E) { + function Mp(E) { var T = -1, S = Array(E.size); return E.forEach(function(B) { S[++T] = [B, B]; }), S; } - function Np(E, T, S) { + function Dp(E, T, S) { for (var B = S - 1, Z = E.length; ++B < Z; ) if (E[B] === T) return B; return -1; } - function qp(E, T, S) { + function Up(E, T, S) { for (var B = S + 1; B--; ) if (E[B] === T) return B; return B; } - function xr(E) { - return Ar(E) ? Bp(E) : xp(E); + function Ar(E) { + return Er(E) ? Np(E) : Cp(E); } - function je(E) { - return Ar(E) ? Hp(E) : Sp(E); + function He(E) { + return Er(E) ? qp(E) : Ep(E); } - function ic(E) { - for (var T = E.length; T-- && Tn.test(E.charAt(T)); ) + function tc(E) { + for (var T = E.length; T-- && On.test(E.charAt(T)); ) ; return T; } - var Wp = Mo(mp); - function Bp(E) { - for (var T = Ro.lastIndex = 0; Ro.test(E); ) + var kp = $o(pp); + function Np(E) { + for (var T = xo.lastIndex = 0; xo.test(E); ) ++T; return T; } - function Hp(E) { - return E.match(Ro) || []; + function qp(E) { + return E.match(xo) || []; } - function Gp(E) { - return E.match(fp) || []; + function Wp(E) { + return E.match(ap) || []; } - var jp = function E(T) { - T = T == null ? Vt : Sr.defaults(Vt.Object(), T, Sr.pick(Vt, dp)); - var S = T.Array, B = T.Date, Z = T.Error, dt = T.Function, qt = T.Math, wt = T.Object, qo = T.RegExp, zp = T.String, Me = T.TypeError, Hi = S.prototype, Kp = dt.prototype, Ir = wt.prototype, Gi = T["__core-js_shared__"], ji = Kp.toString, vt = Ir.hasOwnProperty, Jp = 0, sc = function() { + var Bp = function E(T) { + T = T == null ? Yt : xr.defaults(Yt.Object(), T, xr.pick(Yt, fp)); + var S = T.Array, B = T.Date, Z = T.Error, dt = T.Function, qt = T.Math, wt = T.Object, Uo = T.RegExp, Hp = T.String, Pe = T.TypeError, Hi = S.prototype, Gp = dt.prototype, Sr = wt.prototype, Gi = T["__core-js_shared__"], ji = Gp.toString, vt = Sr.hasOwnProperty, jp = 0, ec = function() { var t = /[^.]+$/.exec(Gi && Gi.keys && Gi.keys.IE_PROTO || ""); return t ? "Symbol(src)_1." + t : ""; - }(), zi = Ir.toString, Xp = ji.call(wt), Vp = Vt._, Yp = qo( - "^" + ji.call(vt).replace(Pt, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$" - ), Ki = Bu ? T.Buffer : n, Fn = T.Symbol, Ji = T.Uint8Array, oc = Ki ? Ki.allocUnsafe : n, Xi = rc(wt.getPrototypeOf, wt), ac = wt.create, uc = Ir.propertyIsEnumerable, Vi = Hi.splice, cc = Fn ? Fn.isConcatSpreadable : n, ei = Fn ? Fn.iterator : n, Qn = Fn ? Fn.toStringTag : n, Yi = function() { + }(), zi = Sr.toString, zp = ji.call(wt), Kp = Yt._, Jp = Uo( + "^" + ji.call(vt).replace($t, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$" + ), Ki = ku ? T.Buffer : n, Pn = T.Symbol, Ji = T.Uint8Array, nc = Ki ? Ki.allocUnsafe : n, Xi = Qu(wt.getPrototypeOf, wt), rc = wt.create, ic = Sr.propertyIsEnumerable, Yi = Hi.splice, sc = Pn ? Pn.isConcatSpreadable : n, ei = Pn ? Pn.iterator : n, Qn = Pn ? Pn.toStringTag : n, Vi = function() { try { var t = ir(wt, "defineProperty"); return t({}, "", {}), t; } catch { } - }(), Zp = T.clearTimeout !== Vt.clearTimeout && T.clearTimeout, Qp = B && B.now !== Vt.Date.now && B.now, tg = T.setTimeout !== Vt.setTimeout && T.setTimeout, Zi = qt.ceil, Qi = qt.floor, Wo = wt.getOwnPropertySymbols, eg = Ki ? Ki.isBuffer : n, fc = T.isFinite, ng = Hi.join, rg = rc(wt.keys, wt), Wt = qt.max, ne = qt.min, ig = B.now, sg = T.parseInt, lc = qt.random, og = Hi.reverse, Bo = ir(T, "DataView"), ni = ir(T, "Map"), Ho = ir(T, "Promise"), Rr = ir(T, "Set"), ri = ir(T, "WeakMap"), ii = ir(wt, "create"), ts = ri && new ri(), Or = {}, ag = sr(Bo), ug = sr(ni), cg = sr(Ho), fg = sr(Rr), lg = sr(ri), es = Fn ? Fn.prototype : n, si = es ? es.valueOf : n, hc = es ? es.toString : n; + }(), Xp = T.clearTimeout !== Yt.clearTimeout && T.clearTimeout, Yp = B && B.now !== Yt.Date.now && B.now, Vp = T.setTimeout !== Yt.setTimeout && T.setTimeout, Zi = qt.ceil, Qi = qt.floor, ko = wt.getOwnPropertySymbols, Zp = Ki ? Ki.isBuffer : n, oc = T.isFinite, Qp = Hi.join, tg = Qu(wt.keys, wt), Wt = qt.max, ne = qt.min, eg = B.now, ng = T.parseInt, ac = qt.random, rg = Hi.reverse, No = ir(T, "DataView"), ni = ir(T, "Map"), qo = ir(T, "Promise"), Rr = ir(T, "Set"), ri = ir(T, "WeakMap"), ii = ir(wt, "create"), ts = ri && new ri(), Ir = {}, ig = sr(No), sg = sr(ni), og = sr(qo), ag = sr(Rr), ug = sr(ri), es = Pn ? Pn.prototype : n, si = es ? es.valueOf : n, uc = es ? es.toString : n; function g(t) { - if (Lt(t) && !tt(t) && !(t instanceof ut)) { - if (t instanceof De) + if (Tt(t) && !tt(t) && !(t instanceof ut)) { + if (t instanceof Fe) return t; if (vt.call(t, "__wrapped__")) - return pf(t); + return ff(t); } - return new De(t); + return new Fe(t); } - var Tr = function() { + var Or = function() { function t() { } return function(i) { - if (!Rt(i)) + if (!It(i)) return {}; - if (ac) - return ac(i); + if (rc) + return rc(i); t.prototype = i; var o = new t(); return t.prototype = n, o; @@ -4417,7 +4308,7 @@ po.exports; }(); function ns() { } - function De(t, i) { + function Fe(t, i) { this.__wrapped__ = t, this.__actions__ = [], this.__chain__ = !!i, this.__index__ = 0, this.__values__ = n; } g.templateSettings = { @@ -4427,7 +4318,7 @@ po.exports; * @memberOf _.templateSettings * @type {RegExp} */ - escape: Yn, + escape: Vn, /** * Used to detect code to be evaluated. * @@ -4441,7 +4332,7 @@ po.exports; * @memberOf _.templateSettings * @type {RegExp} */ - interpolate: Tt, + interpolate: Ot, /** * Used to reference the data object in the template text. * @@ -4464,15 +4355,15 @@ po.exports; */ _: g } - }, g.prototype = ns.prototype, g.prototype.constructor = g, De.prototype = Tr(ns.prototype), De.prototype.constructor = De; + }, g.prototype = ns.prototype, g.prototype.constructor = g, Fe.prototype = Or(ns.prototype), Fe.prototype.constructor = Fe; function ut(t) { this.__wrapped__ = t, this.__actions__ = [], this.__dir__ = 1, this.__filtered__ = !1, this.__iteratees__ = [], this.__takeCount__ = kt, this.__views__ = []; } - function hg() { + function cg() { var t = new ut(this.__wrapped__); return t.__actions__ = he(this.__actions__), t.__dir__ = this.__dir__, t.__filtered__ = this.__filtered__, t.__iteratees__ = he(this.__iteratees__), t.__takeCount__ = this.__takeCount__, t.__views__ = he(this.__views__), t; } - function dg() { + function fg() { if (this.__filtered__) { var t = new ut(this); t.__dir__ = -1, t.__filtered__ = !0; @@ -4480,17 +4371,17 @@ po.exports; t = this.clone(), t.__dir__ *= -1; return t; } - function pg() { - var t = this.__wrapped__.value(), i = this.__dir__, o = tt(t), c = i < 0, h = o ? t.length : 0, v = S0(0, h, this.__views__), w = v.start, _ = v.end, A = _ - w, $ = c ? _ : w - 1, P = this.__iteratees__, F = P.length, q = 0, j = ne(A, this.__takeCount__); + function lg() { + var t = this.__wrapped__.value(), i = this.__dir__, o = tt(t), c = i < 0, h = o ? t.length : 0, v = E0(0, h, this.__views__), w = v.start, _ = v.end, A = _ - w, $ = c ? _ : w - 1, P = this.__iteratees__, F = P.length, q = 0, j = ne(A, this.__takeCount__); if (!o || !c && h == A && j == A) - return Dc(t, this.__actions__); + return $c(t, this.__actions__); var J = []; t: for (; A-- && q < j; ) { $ += i; for (var rt = -1, X = t[$]; ++rt < F; ) { var ot = P[rt], lt = ot.iteratee, Se = ot.type, le = lt(X); - if (Se == wr) + if (Se == yr) X = le; else if (!le) { if (Se == Qt) @@ -4502,7 +4393,7 @@ po.exports; } return J; } - ut.prototype = Tr(ns.prototype), ut.prototype.constructor = ut; + ut.prototype = Or(ns.prototype), ut.prototype.constructor = ut; function tr(t) { var i = -1, o = t == null ? 0 : t.length; for (this.clear(); ++i < o; ) { @@ -4510,14 +4401,14 @@ po.exports; this.set(c[0], c[1]); } } - function gg() { + function hg() { this.__data__ = ii ? ii(null) : {}, this.size = 0; } - function vg(t) { + function dg(t) { var i = this.has(t) && delete this.__data__[t]; return this.size -= i ? 1 : 0, i; } - function mg(t) { + function pg(t) { var i = this.__data__; if (ii) { var o = i[t]; @@ -4525,217 +4416,217 @@ po.exports; } return vt.call(i, t) ? i[t] : n; } - function yg(t) { + function gg(t) { var i = this.__data__; return ii ? i[t] !== n : vt.call(i, t); } - function wg(t, i) { + function vg(t, i) { var o = this.__data__; return this.size += this.has(t) ? 0 : 1, o[t] = ii && i === n ? d : i, this; } - tr.prototype.clear = gg, tr.prototype.delete = vg, tr.prototype.get = mg, tr.prototype.has = yg, tr.prototype.set = wg; - function pn(t) { + tr.prototype.clear = hg, tr.prototype.delete = dg, tr.prototype.get = pg, tr.prototype.has = gg, tr.prototype.set = vg; + function dn(t) { var i = -1, o = t == null ? 0 : t.length; for (this.clear(); ++i < o; ) { var c = t[i]; this.set(c[0], c[1]); } } - function bg() { + function mg() { this.__data__ = [], this.size = 0; } - function _g(t) { + function yg(t) { var i = this.__data__, o = rs(i, t); if (o < 0) return !1; var c = i.length - 1; - return o == c ? i.pop() : Vi.call(i, o, 1), --this.size, !0; + return o == c ? i.pop() : Yi.call(i, o, 1), --this.size, !0; } - function Cg(t) { + function wg(t) { var i = this.__data__, o = rs(i, t); return o < 0 ? n : i[o][1]; } - function Eg(t) { + function bg(t) { return rs(this.__data__, t) > -1; } - function Ag(t, i) { + function _g(t, i) { var o = this.__data__, c = rs(o, t); return c < 0 ? (++this.size, o.push([t, i])) : o[c][1] = i, this; } - pn.prototype.clear = bg, pn.prototype.delete = _g, pn.prototype.get = Cg, pn.prototype.has = Eg, pn.prototype.set = Ag; - function gn(t) { + dn.prototype.clear = mg, dn.prototype.delete = yg, dn.prototype.get = wg, dn.prototype.has = bg, dn.prototype.set = _g; + function pn(t) { var i = -1, o = t == null ? 0 : t.length; for (this.clear(); ++i < o; ) { var c = t[i]; this.set(c[0], c[1]); } } - function xg() { + function Cg() { this.size = 0, this.__data__ = { hash: new tr(), - map: new (ni || pn)(), + map: new (ni || dn)(), string: new tr() }; } - function Sg(t) { + function Eg(t) { var i = gs(this, t).delete(t); return this.size -= i ? 1 : 0, i; } - function Ig(t) { + function Ag(t) { return gs(this, t).get(t); } - function Rg(t) { + function xg(t) { return gs(this, t).has(t); } - function Og(t, i) { + function Sg(t, i) { var o = gs(this, t), c = o.size; return o.set(t, i), this.size += o.size == c ? 0 : 1, this; } - gn.prototype.clear = xg, gn.prototype.delete = Sg, gn.prototype.get = Ig, gn.prototype.has = Rg, gn.prototype.set = Og; + pn.prototype.clear = Cg, pn.prototype.delete = Eg, pn.prototype.get = Ag, pn.prototype.has = xg, pn.prototype.set = Sg; function er(t) { var i = -1, o = t == null ? 0 : t.length; - for (this.__data__ = new gn(); ++i < o; ) + for (this.__data__ = new pn(); ++i < o; ) this.add(t[i]); } - function Tg(t) { + function Rg(t) { return this.__data__.set(t, d), this; } - function Lg(t) { + function Ig(t) { return this.__data__.has(t); } - er.prototype.add = er.prototype.push = Tg, er.prototype.has = Lg; - function ze(t) { - var i = this.__data__ = new pn(t); + er.prototype.add = er.prototype.push = Rg, er.prototype.has = Ig; + function Ge(t) { + var i = this.__data__ = new dn(t); this.size = i.size; } - function $g() { - this.__data__ = new pn(), this.size = 0; + function Og() { + this.__data__ = new dn(), this.size = 0; } - function Pg(t) { + function Tg(t) { var i = this.__data__, o = i.delete(t); return this.size = i.size, o; } - function Fg(t) { + function Lg(t) { return this.__data__.get(t); } - function Mg(t) { + function $g(t) { return this.__data__.has(t); } - function Dg(t, i) { + function Pg(t, i) { var o = this.__data__; - if (o instanceof pn) { + if (o instanceof dn) { var c = o.__data__; if (!ni || c.length < a - 1) return c.push([t, i]), this.size = ++o.size, this; - o = this.__data__ = new gn(c); + o = this.__data__ = new pn(c); } return o.set(t, i), this.size = o.size, this; } - ze.prototype.clear = $g, ze.prototype.delete = Pg, ze.prototype.get = Fg, ze.prototype.has = Mg, ze.prototype.set = Dg; - function dc(t, i) { - var o = tt(t), c = !o && or(t), h = !o && !c && Nn(t), v = !o && !c && !h && Fr(t), w = o || c || h || v, _ = w ? Uo(t.length, zp) : [], A = _.length; + Ge.prototype.clear = Og, Ge.prototype.delete = Tg, Ge.prototype.get = Lg, Ge.prototype.has = $g, Ge.prototype.set = Pg; + function cc(t, i) { + var o = tt(t), c = !o && or(t), h = !o && !c && kn(t), v = !o && !c && !h && Pr(t), w = o || c || h || v, _ = w ? Fo(t.length, Hp) : [], A = _.length; for (var $ in t) (i || vt.call(t, $)) && !(w && // Safari 9 has enumerable `arguments.length` in strict mode. ($ == "length" || // Node.js 0.10 has enumerable non-index properties on buffers. h && ($ == "offset" || $ == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays. v && ($ == "buffer" || $ == "byteLength" || $ == "byteOffset") || // Skip index properties. - wn($, A))) && _.push($); + yn($, A))) && _.push($); return _; } - function pc(t) { + function fc(t) { var i = t.length; - return i ? t[ta(0, i - 1)] : n; + return i ? t[Vo(0, i - 1)] : n; } - function Ug(t, i) { + function Fg(t, i) { return vs(he(t), nr(i, 0, t.length)); } - function kg(t) { + function Mg(t) { return vs(he(t)); } - function Go(t, i, o) { - (o !== n && !Ke(t[i], o) || o === n && !(i in t)) && vn(t, i, o); + function Wo(t, i, o) { + (o !== n && !je(t[i], o) || o === n && !(i in t)) && gn(t, i, o); } function oi(t, i, o) { var c = t[i]; - (!(vt.call(t, i) && Ke(c, o)) || o === n && !(i in t)) && vn(t, i, o); + (!(vt.call(t, i) && je(c, o)) || o === n && !(i in t)) && gn(t, i, o); } function rs(t, i) { for (var o = t.length; o--; ) - if (Ke(t[o][0], i)) + if (je(t[o][0], i)) return o; return -1; } - function Ng(t, i, o, c) { - return Mn(t, function(h, v, w) { + function Dg(t, i, o, c) { + return Fn(t, function(h, v, w) { i(c, h, o(h), w); }), c; } - function gc(t, i) { - return t && rn(i, jt(i), t); + function lc(t, i) { + return t && nn(i, Gt(i), t); } - function qg(t, i) { - return t && rn(i, pe(i), t); + function Ug(t, i) { + return t && nn(i, pe(i), t); } - function vn(t, i, o) { - i == "__proto__" && Yi ? Yi(t, i, { + function gn(t, i, o) { + i == "__proto__" && Vi ? Vi(t, i, { configurable: !0, enumerable: !0, value: o, writable: !0 }) : t[i] = o; } - function jo(t, i) { + function Bo(t, i) { for (var o = -1, c = i.length, h = S(c), v = t == null; ++o < c; ) - h[o] = v ? n : xa(t, i[o]); + h[o] = v ? n : Ca(t, i[o]); return h; } function nr(t, i, o) { return t === t && (o !== n && (t = t <= o ? t : o), i !== n && (t = t >= i ? t : i)), t; } - function Ue(t, i, o, c, h, v) { + function Me(t, i, o, c, h, v) { var w, _ = i & m, A = i & b, $ = i & C; if (o && (w = h ? o(t, c, h, v) : o(t)), w !== n) return w; - if (!Rt(t)) + if (!It(t)) return t; var P = tt(t); if (P) { - if (w = R0(t), !_) + if (w = x0(t), !_) return he(t, w); } else { - var F = re(t), q = F == _r || F == Pi; - if (Nn(t)) - return Nc(t, _); - if (F == k || F == xn || q && !h) { - if (w = A || q ? {} : sf(t), !_) - return A ? m0(t, qg(w, t)) : v0(t, gc(w, t)); + var F = re(t), q = F == br || F == Pi; + if (kn(t)) + return Mc(t, _); + if (F == k || F == An || q && !h) { + if (w = A || q ? {} : tf(t), !_) + return A ? p0(t, Ug(w, t)) : d0(t, lc(w, t)); } else { if (!Ct[F]) return h ? t : {}; - w = O0(t, F, _); + w = S0(t, F, _); } } - v || (v = new ze()); + v || (v = new Ge()); var j = v.get(t); if (j) return j; - v.set(t, w), Ff(t) ? t.forEach(function(X) { - w.add(Ue(X, i, o, X, t, v)); - }) : $f(t) && t.forEach(function(X, ot) { - w.set(ot, Ue(X, i, o, ot, t, v)); + v.set(t, w), Tf(t) ? t.forEach(function(X) { + w.add(Me(X, i, o, X, t, v)); + }) : If(t) && t.forEach(function(X, ot) { + w.set(ot, Me(X, i, o, ot, t, v)); }); - var J = $ ? A ? la : fa : A ? pe : jt, rt = P ? n : J(t); - return Fe(rt || t, function(X, ot) { - rt && (ot = X, X = t[ot]), oi(w, ot, Ue(X, i, o, ot, t, v)); + var J = $ ? A ? ua : aa : A ? pe : Gt, rt = P ? n : J(t); + return $e(rt || t, function(X, ot) { + rt && (ot = X, X = t[ot]), oi(w, ot, Me(X, i, o, ot, t, v)); }), w; } - function Wg(t) { - var i = jt(t); + function kg(t) { + var i = Gt(t); return function(o) { - return vc(o, t, i); + return hc(o, t, i); }; } - function vc(t, i, o) { + function hc(t, i, o) { var c = o.length; if (t == null) return !c; @@ -4746,9 +4637,9 @@ po.exports; } return !0; } - function mc(t, i, o) { + function dc(t, i, o) { if (typeof t != "function") - throw new Me(f); + throw new Pe(f); return di(function() { t.apply(n, o); }, i); @@ -4757,7 +4648,7 @@ po.exports; var h = -1, v = qi, w = !0, _ = t.length, A = [], $ = i.length; if (!_) return A; - o && (i = St(i, Ee(o))), c ? (v = Lo, w = !1) : i.length >= a && (v = ti, w = !1, i = new er(i)); + o && (i = St(i, Ee(o))), c ? (v = Io, w = !1) : i.length >= a && (v = ti, w = !1, i = new er(i)); t: for (; ++h < _; ) { var P = t[h], F = o == null ? P : o(P); @@ -4771,10 +4662,10 @@ po.exports; } return A; } - var Mn = Gc(nn), yc = Gc(Ko, !0); - function Bg(t, i) { + var Fn = qc(en), pc = qc(Go, !0); + function Ng(t, i) { var o = !0; - return Mn(t, function(c, h, v) { + return Fn(t, function(c, h, v) { return o = !!i(c, h, v), o; }), o; } @@ -4786,65 +4677,65 @@ po.exports; } return A; } - function Hg(t, i, o, c) { + function qg(t, i, o, c) { var h = t.length; - for (o = nt(o), o < 0 && (o = -o > h ? 0 : h + o), c = c === n || c > h ? h : nt(c), c < 0 && (c += h), c = o > c ? 0 : Df(c); o < c; ) + for (o = nt(o), o < 0 && (o = -o > h ? 0 : h + o), c = c === n || c > h ? h : nt(c), c < 0 && (c += h), c = o > c ? 0 : $f(c); o < c; ) t[o++] = i; return t; } - function wc(t, i) { + function gc(t, i) { var o = []; - return Mn(t, function(c, h, v) { + return Fn(t, function(c, h, v) { i(c, h, v) && o.push(c); }), o; } - function Yt(t, i, o, c, h) { + function Vt(t, i, o, c, h) { var v = -1, w = t.length; - for (o || (o = L0), h || (h = []); ++v < w; ) { + for (o || (o = I0), h || (h = []); ++v < w; ) { var _ = t[v]; - i > 0 && o(_) ? i > 1 ? Yt(_, i - 1, o, c, h) : $n(h, _) : c || (h[h.length] = _); + i > 0 && o(_) ? i > 1 ? Vt(_, i - 1, o, c, h) : Ln(h, _) : c || (h[h.length] = _); } return h; } - var zo = jc(), bc = jc(!0); - function nn(t, i) { - return t && zo(t, i, jt); + var Ho = Wc(), vc = Wc(!0); + function en(t, i) { + return t && Ho(t, i, Gt); } - function Ko(t, i) { - return t && bc(t, i, jt); + function Go(t, i) { + return t && vc(t, i, Gt); } function ss(t, i) { - return Ln(i, function(o) { - return bn(t[o]); + return Tn(i, function(o) { + return wn(t[o]); }); } function rr(t, i) { - i = Un(i, t); + i = Dn(i, t); for (var o = 0, c = i.length; t != null && o < c; ) - t = t[sn(i[o++])]; + t = t[rn(i[o++])]; return o && o == c ? t : n; } - function _c(t, i, o) { + function mc(t, i, o) { var c = i(t); - return tt(t) ? c : $n(c, o(t)); + return tt(t) ? c : Ln(c, o(t)); } function ce(t) { - return t == null ? t === n ? at : L : Qn && Qn in wt(t) ? x0(t) : k0(t); + return t == null ? t === n ? at : L : Qn && Qn in wt(t) ? C0(t) : M0(t); } - function Jo(t, i) { + function jo(t, i) { return t > i; } - function Gg(t, i) { + function Wg(t, i) { return t != null && vt.call(t, i); } - function jg(t, i) { + function Bg(t, i) { return t != null && i in wt(t); } - function zg(t, i, o) { + function Hg(t, i, o) { return t >= ne(i, o) && t < Wt(i, o); } - function Xo(t, i, o) { - for (var c = o ? Lo : qi, h = t[0].length, v = t.length, w = v, _ = S(v), A = 1 / 0, $ = []; w--; ) { + function zo(t, i, o) { + for (var c = o ? Io : qi, h = t[0].length, v = t.length, w = v, _ = S(v), A = 1 / 0, $ = []; w--; ) { var P = t[w]; w && i && (P = St(P, Ee(i))), A = ne(P.length, A), _[w] = !o && (i || h >= 120 && P.length >= 120) ? new er(w && P) : n; } @@ -4864,52 +4755,52 @@ po.exports; } return $; } - function Kg(t, i, o, c) { - return nn(t, function(h, v, w) { + function Gg(t, i, o, c) { + return en(t, function(h, v, w) { i(c, o(h), v, w); }), c; } function ui(t, i, o) { - i = Un(i, t), t = cf(t, i); - var c = t == null ? t : t[sn(Ne(i))]; + i = Dn(i, t), t = sf(t, i); + var c = t == null ? t : t[rn(Ue(i))]; return c == null ? n : Ce(c, t, o); } - function Cc(t) { - return Lt(t) && ce(t) == xn; + function yc(t) { + return Tt(t) && ce(t) == An; } - function Jg(t) { - return Lt(t) && ce(t) == Y; + function jg(t) { + return Tt(t) && ce(t) == V; } - function Xg(t) { - return Lt(t) && ce(t) == ln; + function zg(t) { + return Tt(t) && ce(t) == fn; } function ci(t, i, o, c, h) { - return t === i ? !0 : t == null || i == null || !Lt(t) && !Lt(i) ? t !== t && i !== i : Vg(t, i, o, c, ci, h); + return t === i ? !0 : t == null || i == null || !Tt(t) && !Tt(i) ? t !== t && i !== i : Kg(t, i, o, c, ci, h); } - function Vg(t, i, o, c, h, v) { - var w = tt(t), _ = tt(i), A = w ? br : re(t), $ = _ ? br : re(i); - A = A == xn ? k : A, $ = $ == xn ? k : $; + function Kg(t, i, o, c, h, v) { + var w = tt(t), _ = tt(i), A = w ? wr : re(t), $ = _ ? wr : re(i); + A = A == An ? k : A, $ = $ == An ? k : $; var P = A == k, F = $ == k, q = A == $; - if (q && Nn(t)) { - if (!Nn(i)) + if (q && kn(t)) { + if (!kn(i)) return !1; w = !0, P = !1; } if (q && !P) - return v || (v = new ze()), w || Fr(t) ? ef(t, i, o, c, h, v) : E0(t, i, A, o, c, h, v); - if (!(o & R)) { + return v || (v = new Ge()), w || Pr(t) ? Vc(t, i, o, c, h, v) : b0(t, i, A, o, c, h, v); + if (!(o & I)) { var j = P && vt.call(t, "__wrapped__"), J = F && vt.call(i, "__wrapped__"); if (j || J) { var rt = j ? t.value() : t, X = J ? i.value() : i; - return v || (v = new ze()), h(rt, X, o, c, v); + return v || (v = new Ge()), h(rt, X, o, c, v); } } - return q ? (v || (v = new ze()), A0(t, i, o, c, h, v)) : !1; + return q ? (v || (v = new Ge()), _0(t, i, o, c, h, v)) : !1; } - function Yg(t) { - return Lt(t) && re(t) == ye; + function Jg(t) { + return Tt(t) && re(t) == ye; } - function Vo(t, i, o, c) { + function Ko(t, i, o, c) { var h = o.length, v = h, w = !c; if (t == null) return !v; @@ -4925,99 +4816,99 @@ po.exports; if ($ === n && !(A in t)) return !1; } else { - var F = new ze(); + var F = new Ge(); if (c) var q = c($, P, A, t, i, F); - if (!(q === n ? ci(P, $, R | O, c, F) : q)) + if (!(q === n ? ci(P, $, I | O, c, F) : q)) return !1; } } return !0; } - function Ec(t) { - if (!Rt(t) || P0(t)) + function wc(t) { + if (!It(t) || T0(t)) return !1; - var i = bn(t) ? Yp : Wd; + var i = wn(t) ? Jp : kd; return i.test(sr(t)); } - function Zg(t) { - return Lt(t) && ce(t) == V; + function Xg(t) { + return Tt(t) && ce(t) == Y; } - function Qg(t) { - return Lt(t) && re(t) == G; + function Yg(t) { + return Tt(t) && re(t) == G; } - function t0(t) { - return Lt(t) && Cs(t.length) && !!At[ce(t)]; + function Vg(t) { + return Tt(t) && Cs(t.length) && !!At[ce(t)]; } - function Ac(t) { - return typeof t == "function" ? t : t == null ? ge : typeof t == "object" ? tt(t) ? Ic(t[0], t[1]) : Sc(t) : Kf(t); + function bc(t) { + return typeof t == "function" ? t : t == null ? ge : typeof t == "object" ? tt(t) ? Ec(t[0], t[1]) : Cc(t) : Hf(t); } - function Yo(t) { + function Jo(t) { if (!hi(t)) - return rg(t); + return tg(t); var i = []; for (var o in wt(t)) vt.call(t, o) && o != "constructor" && i.push(o); return i; } - function e0(t) { - if (!Rt(t)) - return U0(t); + function Zg(t) { + if (!It(t)) + return F0(t); var i = hi(t), o = []; for (var c in t) c == "constructor" && (i || !vt.call(t, c)) || o.push(c); return o; } - function Zo(t, i) { + function Xo(t, i) { return t < i; } - function xc(t, i) { + function _c(t, i) { var o = -1, c = de(t) ? S(t.length) : []; - return Mn(t, function(h, v, w) { + return Fn(t, function(h, v, w) { c[++o] = i(h, v, w); }), c; } - function Sc(t) { - var i = da(t); - return i.length == 1 && i[0][2] ? af(i[0][0], i[0][1]) : function(o) { - return o === t || Vo(o, t, i); + function Cc(t) { + var i = fa(t); + return i.length == 1 && i[0][2] ? nf(i[0][0], i[0][1]) : function(o) { + return o === t || Ko(o, t, i); }; } - function Ic(t, i) { - return ga(t) && of(i) ? af(sn(t), i) : function(o) { - var c = xa(o, t); - return c === n && c === i ? Sa(o, t) : ci(i, c, R | O); + function Ec(t, i) { + return ha(t) && ef(i) ? nf(rn(t), i) : function(o) { + var c = Ca(o, t); + return c === n && c === i ? Ea(o, t) : ci(i, c, I | O); }; } function os(t, i, o, c, h) { - t !== i && zo(i, function(v, w) { - if (h || (h = new ze()), Rt(v)) - n0(t, i, w, o, os, c, h); + t !== i && Ho(i, function(v, w) { + if (h || (h = new Ge()), It(v)) + Qg(t, i, w, o, os, c, h); else { - var _ = c ? c(ma(t, w), v, w + "", t, i, h) : n; - _ === n && (_ = v), Go(t, w, _); + var _ = c ? c(pa(t, w), v, w + "", t, i, h) : n; + _ === n && (_ = v), Wo(t, w, _); } }, pe); } - function n0(t, i, o, c, h, v, w) { - var _ = ma(t, o), A = ma(i, o), $ = w.get(A); + function Qg(t, i, o, c, h, v, w) { + var _ = pa(t, o), A = pa(i, o), $ = w.get(A); if ($) { - Go(t, o, $); + Wo(t, o, $); return; } var P = v ? v(_, A, o + "", t, i, w) : n, F = P === n; if (F) { - var q = tt(A), j = !q && Nn(A), J = !q && !j && Fr(A); - P = A, q || j || J ? tt(_) ? P = _ : Ft(_) ? P = he(_) : j ? (F = !1, P = Nc(A, !0)) : J ? (F = !1, P = qc(A, !0)) : P = [] : pi(A) || or(A) ? (P = _, or(_) ? P = Uf(_) : (!Rt(_) || bn(_)) && (P = sf(A))) : F = !1; + var q = tt(A), j = !q && kn(A), J = !q && !j && Pr(A); + P = A, q || j || J ? tt(_) ? P = _ : Pt(_) ? P = he(_) : j ? (F = !1, P = Mc(A, !0)) : J ? (F = !1, P = Dc(A, !0)) : P = [] : pi(A) || or(A) ? (P = _, or(_) ? P = Pf(_) : (!It(_) || wn(_)) && (P = tf(A))) : F = !1; } - F && (w.set(A, P), h(P, A, c, v, w), w.delete(A)), Go(t, o, P); + F && (w.set(A, P), h(P, A, c, v, w), w.delete(A)), Wo(t, o, P); } - function Rc(t, i) { + function Ac(t, i) { var o = t.length; if (o) - return i += i < 0 ? o : 0, wn(i, o) ? t[i] : n; + return i += i < 0 ? o : 0, yn(i, o) ? t[i] : n; } - function Oc(t, i, o) { + function xc(t, i, o) { i.length ? i = St(i, function(v) { return tt(v) ? function(w) { return rr(w, v.length === 1 ? v[0] : v); @@ -5025,59 +4916,59 @@ po.exports; }) : i = [ge]; var c = -1; i = St(i, Ee(K())); - var h = xc(t, function(v, w, _) { + var h = _c(t, function(v, w, _) { var A = St(i, function($) { return $(v); }); return { criteria: A, index: ++c, value: v }; }); - return Op(h, function(v, w) { - return g0(v, w, o); + return Sp(h, function(v, w) { + return h0(v, w, o); }); } - function r0(t, i) { - return Tc(t, i, function(o, c) { - return Sa(t, c); + function t0(t, i) { + return Sc(t, i, function(o, c) { + return Ea(t, c); }); } - function Tc(t, i, o) { + function Sc(t, i, o) { for (var c = -1, h = i.length, v = {}; ++c < h; ) { var w = i[c], _ = rr(t, w); - o(_, w) && fi(v, Un(w, t), _); + o(_, w) && fi(v, Dn(w, t), _); } return v; } - function i0(t) { + function e0(t) { return function(i) { return rr(i, t); }; } - function Qo(t, i, o, c) { - var h = c ? Rp : Er, v = -1, w = i.length, _ = t; + function Yo(t, i, o, c) { + var h = c ? xp : Cr, v = -1, w = i.length, _ = t; for (t === i && (i = he(i)), o && (_ = St(t, Ee(o))); ++v < w; ) for (var A = 0, $ = i[v], P = o ? o($) : $; (A = h(_, P, A, c)) > -1; ) - _ !== t && Vi.call(_, A, 1), Vi.call(t, A, 1); + _ !== t && Yi.call(_, A, 1), Yi.call(t, A, 1); return t; } - function Lc(t, i) { + function Rc(t, i) { for (var o = t ? i.length : 0, c = o - 1; o--; ) { var h = i[o]; if (o == c || h !== v) { var v = h; - wn(h) ? Vi.call(t, h, 1) : ra(t, h); + yn(h) ? Yi.call(t, h, 1) : ta(t, h); } } return t; } - function ta(t, i) { - return t + Qi(lc() * (i - t + 1)); + function Vo(t, i) { + return t + Qi(ac() * (i - t + 1)); } - function s0(t, i, o, c) { + function n0(t, i, o, c) { for (var h = -1, v = Wt(Zi((i - t) / (o || 1)), 0), w = S(v); v--; ) w[c ? v : ++h] = t, t += o; return w; } - function ea(t, i) { + function Zo(t, i) { var o = ""; if (!t || i < 1 || i > se) return o; @@ -5087,54 +4978,54 @@ po.exports; return o; } function st(t, i) { - return ya(uf(t, i, ge), t + ""); + return ga(rf(t, i, ge), t + ""); } - function o0(t) { - return pc(Mr(t)); + function r0(t) { + return fc(Fr(t)); } - function a0(t, i) { - var o = Mr(t); + function i0(t, i) { + var o = Fr(t); return vs(o, nr(i, 0, o.length)); } function fi(t, i, o, c) { - if (!Rt(t)) + if (!It(t)) return t; - i = Un(i, t); + i = Dn(i, t); for (var h = -1, v = i.length, w = v - 1, _ = t; _ != null && ++h < v; ) { - var A = sn(i[h]), $ = o; + var A = rn(i[h]), $ = o; if (A === "__proto__" || A === "constructor" || A === "prototype") return t; if (h != w) { var P = _[A]; - $ = c ? c(P, A, _) : n, $ === n && ($ = Rt(P) ? P : wn(i[h + 1]) ? [] : {}); + $ = c ? c(P, A, _) : n, $ === n && ($ = It(P) ? P : yn(i[h + 1]) ? [] : {}); } oi(_, A, $), _ = _[A]; } return t; } - var $c = ts ? function(t, i) { + var Ic = ts ? function(t, i) { return ts.set(t, i), t; - } : ge, u0 = Yi ? function(t, i) { - return Yi(t, "toString", { + } : ge, s0 = Vi ? function(t, i) { + return Vi(t, "toString", { configurable: !0, enumerable: !1, - value: Ra(i), + value: xa(i), writable: !0 }); } : ge; - function c0(t) { - return vs(Mr(t)); + function o0(t) { + return vs(Fr(t)); } - function ke(t, i, o) { + function De(t, i, o) { var c = -1, h = t.length; i < 0 && (i = -i > h ? 0 : h + i), o = o > h ? h : o, o < 0 && (o += h), h = i > o ? 0 : o - i >>> 0, i >>>= 0; for (var v = S(h); ++c < h; ) v[c] = t[c + i]; return v; } - function f0(t, i) { + function a0(t, i) { var o; - return Mn(t, function(c, h, v) { + return Fn(t, function(c, h, v) { return o = i(c, h, v), !o; }), !!o; } @@ -5147,9 +5038,9 @@ po.exports; } return h; } - return na(t, i, ge, o); + return Qo(t, i, ge, o); } - function na(t, i, o, c) { + function Qo(t, i, o, c) { var h = 0, v = t == null ? 0 : t.length; if (v === 0) return 0; @@ -5162,20 +5053,20 @@ po.exports; $ ? X = J && (c || q) : _ ? X = J && q && (c || !j) : A ? X = J && q && !j && (c || !rt) : j || rt ? X = !1 : X = c ? F <= i : F < i; X ? h = P + 1 : v = P; } - return ne(v, Yr); + return ne(v, Vr); } - function Pc(t, i) { + function Oc(t, i) { for (var o = -1, c = t.length, h = 0, v = []; ++o < c; ) { var w = t[o], _ = i ? i(w) : w; - if (!o || !Ke(_, A)) { + if (!o || !je(_, A)) { var A = _; v[h++] = w === 0 ? 0 : w; } } return v; } - function Fc(t) { - return typeof t == "number" ? t : xe(t) ? An : +t; + function Tc(t) { + return typeof t == "number" ? t : xe(t) ? En : +t; } function Ae(t) { if (typeof t == "string") @@ -5183,16 +5074,16 @@ po.exports; if (tt(t)) return St(t, Ae) + ""; if (xe(t)) - return hc ? hc.call(t) : ""; + return uc ? uc.call(t) : ""; var i = t + ""; return i == "0" && 1 / t == -te ? "-0" : i; } - function Dn(t, i, o) { + function Mn(t, i, o) { var c = -1, h = qi, v = t.length, w = !0, _ = [], A = _; if (o) - w = !1, h = Lo; + w = !1, h = Io; else if (v >= a) { - var $ = i ? null : _0(t); + var $ = i ? null : y0(t); if ($) return Bi($); w = !1, h = ti, A = new er(); @@ -5211,82 +5102,82 @@ po.exports; } return _; } - function ra(t, i) { - return i = Un(i, t), t = cf(t, i), t == null || delete t[sn(Ne(i))]; + function ta(t, i) { + return i = Dn(i, t), t = sf(t, i), t == null || delete t[rn(Ue(i))]; } - function Mc(t, i, o, c) { + function Lc(t, i, o, c) { return fi(t, i, o(rr(t, i)), c); } function us(t, i, o, c) { for (var h = t.length, v = c ? h : -1; (c ? v-- : ++v < h) && i(t[v], v, t); ) ; - return o ? ke(t, c ? 0 : v, c ? v + 1 : h) : ke(t, c ? v + 1 : 0, c ? h : v); + return o ? De(t, c ? 0 : v, c ? v + 1 : h) : De(t, c ? v + 1 : 0, c ? h : v); } - function Dc(t, i) { + function $c(t, i) { var o = t; - return o instanceof ut && (o = o.value()), $o(i, function(c, h) { - return h.func.apply(h.thisArg, $n([c], h.args)); + return o instanceof ut && (o = o.value()), Oo(i, function(c, h) { + return h.func.apply(h.thisArg, Ln([c], h.args)); }, o); } - function ia(t, i, o) { + function ea(t, i, o) { var c = t.length; if (c < 2) - return c ? Dn(t[0]) : []; + return c ? Mn(t[0]) : []; for (var h = -1, v = S(c); ++h < c; ) for (var w = t[h], _ = -1; ++_ < c; ) _ != h && (v[h] = ai(v[h] || w, t[_], i, o)); - return Dn(Yt(v, 1), i, o); + return Mn(Vt(v, 1), i, o); } - function Uc(t, i, o) { + function Pc(t, i, o) { for (var c = -1, h = t.length, v = i.length, w = {}; ++c < h; ) { var _ = c < v ? i[c] : n; o(w, t[c], _); } return w; } - function sa(t) { - return Ft(t) ? t : []; + function na(t) { + return Pt(t) ? t : []; } - function oa(t) { + function ra(t) { return typeof t == "function" ? t : ge; } - function Un(t, i) { - return tt(t) ? t : ga(t, i) ? [t] : df(gt(t)); + function Dn(t, i) { + return tt(t) ? t : ha(t, i) ? [t] : cf(gt(t)); } - var l0 = st; - function kn(t, i, o) { + var u0 = st; + function Un(t, i, o) { var c = t.length; - return o = o === n ? c : o, !i && o >= c ? t : ke(t, i, o); + return o = o === n ? c : o, !i && o >= c ? t : De(t, i, o); } - var kc = Zp || function(t) { - return Vt.clearTimeout(t); + var Fc = Xp || function(t) { + return Yt.clearTimeout(t); }; - function Nc(t, i) { + function Mc(t, i) { if (i) return t.slice(); - var o = t.length, c = oc ? oc(o) : new t.constructor(o); + var o = t.length, c = nc ? nc(o) : new t.constructor(o); return t.copy(c), c; } - function aa(t) { + function ia(t) { var i = new t.constructor(t.byteLength); return new Ji(i).set(new Ji(t)), i; } - function h0(t, i) { - var o = i ? aa(t.buffer) : t.buffer; + function c0(t, i) { + var o = i ? ia(t.buffer) : t.buffer; return new t.constructor(o, t.byteOffset, t.byteLength); } - function d0(t) { - var i = new t.constructor(t.source, Cu.exec(t)); + function f0(t) { + var i = new t.constructor(t.source, yu.exec(t)); return i.lastIndex = t.lastIndex, i; } - function p0(t) { + function l0(t) { return si ? wt(si.call(t)) : {}; } - function qc(t, i) { - var o = i ? aa(t.buffer) : t.buffer; + function Dc(t, i) { + var o = i ? ia(t.buffer) : t.buffer; return new t.constructor(o, t.byteOffset, t.length); } - function Wc(t, i) { + function Uc(t, i) { if (t !== i) { var o = t !== n, c = t === null, h = t === t, v = xe(t), w = i !== n, _ = i === null, A = i === i, $ = xe(i); if (!_ && !$ && !v && t > i || v && w && A && !_ && !$ || c && w && A || !o && A || !h) @@ -5296,9 +5187,9 @@ po.exports; } return 0; } - function g0(t, i, o) { + function h0(t, i, o) { for (var c = -1, h = t.criteria, v = i.criteria, w = h.length, _ = o.length; ++c < w; ) { - var A = Wc(h[c], v[c]); + var A = Uc(h[c], v[c]); if (A) { if (c >= _) return A; @@ -5308,7 +5199,7 @@ po.exports; } return t.index - i.index; } - function Bc(t, i, o, c) { + function kc(t, i, o, c) { for (var h = -1, v = t.length, w = o.length, _ = -1, A = i.length, $ = Wt(v - w, 0), P = S(A + $), F = !c; ++_ < A; ) P[_] = i[_]; for (; ++h < w; ) @@ -5317,7 +5208,7 @@ po.exports; P[_++] = t[h++]; return P; } - function Hc(t, i, o, c) { + function Nc(t, i, o, c) { for (var h = -1, v = t.length, w = -1, _ = o.length, A = -1, $ = i.length, P = Wt(v - _, 0), F = S(P + $), q = !c; ++h < P; ) F[h] = t[h]; for (var j = h; ++A < $; ) @@ -5332,28 +5223,28 @@ po.exports; i[o] = t[o]; return i; } - function rn(t, i, o, c) { + function nn(t, i, o, c) { var h = !o; o || (o = {}); for (var v = -1, w = i.length; ++v < w; ) { var _ = i[v], A = c ? c(o[_], t[_], _, o, t) : n; - A === n && (A = t[_]), h ? vn(o, _, A) : oi(o, _, A); + A === n && (A = t[_]), h ? gn(o, _, A) : oi(o, _, A); } return o; } - function v0(t, i) { - return rn(t, pa(t), i); + function d0(t, i) { + return nn(t, la(t), i); } - function m0(t, i) { - return rn(t, nf(t), i); + function p0(t, i) { + return nn(t, Zc(t), i); } function cs(t, i) { return function(o, c) { - var h = tt(o) ? Cp : Ng, v = i ? i() : {}; + var h = tt(o) ? wp : Dg, v = i ? i() : {}; return h(o, t, K(c, 2), v); }; } - function Lr(t) { + function Tr(t) { return st(function(i, o) { var c = -1, h = o.length, v = h > 1 ? o[h - 1] : n, w = h > 2 ? o[2] : n; for (v = t.length > 3 && typeof v == "function" ? (h--, v) : n, w && fe(o[0], o[1], w) && (v = h < 3 ? n : v, h = 1), i = wt(i); ++c < h; ) { @@ -5363,7 +5254,7 @@ po.exports; return i; }); } - function Gc(t, i) { + function qc(t, i) { return function(o, c) { if (o == null) return o; @@ -5374,7 +5265,7 @@ po.exports; return o; }; } - function jc(t) { + function Wc(t) { return function(i, o, c) { for (var h = -1, v = wt(i), w = c(i), _ = w.length; _--; ) { var A = w[t ? _ : ++h]; @@ -5384,24 +5275,24 @@ po.exports; return i; }; } - function y0(t, i, o) { - var c = i & I, h = li(t); + function g0(t, i, o) { + var c = i & R, h = li(t); function v() { - var w = this && this !== Vt && this instanceof v ? h : t; + var w = this && this !== Yt && this instanceof v ? h : t; return w.apply(c ? o : this, arguments); } return v; } - function zc(t) { + function Bc(t) { return function(i) { i = gt(i); - var o = Ar(i) ? je(i) : n, c = o ? o[0] : i.charAt(0), h = o ? kn(o, 1).join("") : i.slice(1); + var o = Er(i) ? He(i) : n, c = o ? o[0] : i.charAt(0), h = o ? Un(o, 1).join("") : i.slice(1); return c[t]() + h; }; } - function $r(t) { + function Lr(t) { return function(i) { - return $o(jf(Gf(i).replace(up, "")), t, ""); + return Oo(Wf(qf(i).replace(sp, "")), t, ""); }; } function li(t) { @@ -5425,18 +5316,18 @@ po.exports; case 7: return new t(i[0], i[1], i[2], i[3], i[4], i[5], i[6]); } - var o = Tr(t.prototype), c = t.apply(o, i); - return Rt(c) ? c : o; + var o = Or(t.prototype), c = t.apply(o, i); + return It(c) ? c : o; }; } - function w0(t, i, o) { + function v0(t, i, o) { var c = li(t); function h() { - for (var v = arguments.length, w = S(v), _ = v, A = Pr(h); _--; ) + for (var v = arguments.length, w = S(v), _ = v, A = $r(h); _--; ) w[_] = arguments[_]; - var $ = v < 3 && w[0] !== A && w[v - 1] !== A ? [] : Pn(w, A); + var $ = v < 3 && w[0] !== A && w[v - 1] !== A ? [] : $n(w, A); if (v -= $.length, v < o) - return Yc( + return Kc( t, i, fs, @@ -5448,17 +5339,17 @@ po.exports; n, o - v ); - var P = this && this !== Vt && this instanceof h ? c : t; + var P = this && this !== Yt && this instanceof h ? c : t; return Ce(P, this, w); } return h; } - function Kc(t) { + function Hc(t) { return function(i, o, c) { var h = wt(i); if (!de(i)) { var v = K(o, 3); - i = jt(i), o = function(_) { + i = Gt(i), o = function(_) { return v(h[_], _, h); }; } @@ -5466,20 +5357,20 @@ po.exports; return w > -1 ? h[v ? i[w] : w] : n; }; } - function Jc(t) { - return yn(function(i) { - var o = i.length, c = o, h = De.prototype.thru; + function Gc(t) { + return mn(function(i) { + var o = i.length, c = o, h = Fe.prototype.thru; for (t && i.reverse(); c--; ) { var v = i[c]; if (typeof v != "function") - throw new Me(f); + throw new Pe(f); if (h && !w && ps(v) == "wrapper") - var w = new De([], !0); + var w = new Fe([], !0); } for (c = w ? c : o; ++c < o; ) { v = i[c]; - var _ = ps(v), A = _ == "wrapper" ? ha(v) : n; - A && va(A[0]) && A[1] == (_t | U | z | xt) && !A[4].length && A[9] == 1 ? w = w[ps(A[0])].apply(w, A[3]) : w = v.length == 1 && va(v) ? w[_]() : w.thru(v); + var _ = ps(v), A = _ == "wrapper" ? ca(v) : n; + A && da(A[0]) && A[1] == (_t | U | z | xt) && !A[4].length && A[9] == 1 ? w = w[ps(A[0])].apply(w, A[3]) : w = v.length == 1 && da(v) ? w[_]() : w.thru(v); } return function() { var $ = arguments, P = $[0]; @@ -5492,35 +5383,35 @@ po.exports; }); } function fs(t, i, o, c, h, v, w, _, A, $) { - var P = i & _t, F = i & I, q = i & x, j = i & (U | M), J = i & $e, rt = q ? n : li(t); + var P = i & _t, F = i & R, q = i & x, j = i & (U | M), J = i & Te, rt = q ? n : li(t); function X() { for (var ot = arguments.length, lt = S(ot), Se = ot; Se--; ) lt[Se] = arguments[Se]; if (j) - var le = Pr(X), Ie = Lp(lt, le); - if (c && (lt = Bc(lt, c, h, j)), v && (lt = Hc(lt, v, w, j)), ot -= Ie, j && ot < $) { - var Mt = Pn(lt, le); - return Yc( + var le = $r(X), Re = Ip(lt, le); + if (c && (lt = kc(lt, c, h, j)), v && (lt = Nc(lt, v, w, j)), ot -= Re, j && ot < $) { + var Ft = $n(lt, le); + return Kc( t, i, fs, X.placeholder, o, lt, - Mt, + Ft, _, A, $ - ot ); } - var Je = F ? o : this, Cn = q ? Je[t] : t; - return ot = lt.length, _ ? lt = N0(lt, _) : J && ot > 1 && lt.reverse(), P && A < ot && (lt.length = A), this && this !== Vt && this instanceof X && (Cn = rt || li(Cn)), Cn.apply(Je, lt); + var ze = F ? o : this, _n = q ? ze[t] : t; + return ot = lt.length, _ ? lt = D0(lt, _) : J && ot > 1 && lt.reverse(), P && A < ot && (lt.length = A), this && this !== Yt && this instanceof X && (_n = rt || li(_n)), _n.apply(ze, lt); } return X; } - function Xc(t, i) { + function jc(t, i) { return function(o, c) { - return Kg(o, t, i(c), {}); + return Gg(o, t, i(c), {}); }; } function ls(t, i) { @@ -5531,13 +5422,13 @@ po.exports; if (o !== n && (h = o), c !== n) { if (h === n) return c; - typeof o == "string" || typeof c == "string" ? (o = Ae(o), c = Ae(c)) : (o = Fc(o), c = Fc(c)), h = t(o, c); + typeof o == "string" || typeof c == "string" ? (o = Ae(o), c = Ae(c)) : (o = Tc(o), c = Tc(c)), h = t(o, c); } return h; }; } - function ua(t) { - return yn(function(i) { + function sa(t) { + return mn(function(i) { return i = St(i, Ee(K())), st(function(o) { var c = this; return t(i, function(h) { @@ -5550,14 +5441,14 @@ po.exports; i = i === n ? " " : Ae(i); var o = i.length; if (o < 2) - return o ? ea(i, t) : i; - var c = ea(i, Zi(t / xr(i))); - return Ar(i) ? kn(je(c), 0, t).join("") : c.slice(0, t); + return o ? Zo(i, t) : i; + var c = Zo(i, Zi(t / Ar(i))); + return Er(i) ? Un(He(c), 0, t).join("") : c.slice(0, t); } - function b0(t, i, o, c) { - var h = i & I, v = li(t); + function m0(t, i, o, c) { + var h = i & R, v = li(t); function w() { - for (var _ = -1, A = arguments.length, $ = -1, P = c.length, F = S(P + A), q = this && this !== Vt && this instanceof w ? v : t; ++$ < P; ) + for (var _ = -1, A = arguments.length, $ = -1, P = c.length, F = S(P + A), q = this && this !== Yt && this instanceof w ? v : t; ++$ < P; ) F[$] = c[$]; for (; A--; ) F[$++] = arguments[++_]; @@ -5565,19 +5456,19 @@ po.exports; } return w; } - function Vc(t) { + function zc(t) { return function(i, o, c) { - return c && typeof c != "number" && fe(i, o, c) && (o = c = n), i = _n(i), o === n ? (o = i, i = 0) : o = _n(o), c = c === n ? i < o ? 1 : -1 : _n(c), s0(i, o, c, t); + return c && typeof c != "number" && fe(i, o, c) && (o = c = n), i = bn(i), o === n ? (o = i, i = 0) : o = bn(o), c = c === n ? i < o ? 1 : -1 : bn(c), n0(i, o, c, t); }; } function ds(t) { return function(i, o) { - return typeof i == "string" && typeof o == "string" || (i = qe(i), o = qe(o)), t(i, o); + return typeof i == "string" && typeof o == "string" || (i = ke(i), o = ke(o)), t(i, o); }; } - function Yc(t, i, o, c, h, v, w, _, A, $) { + function Kc(t, i, o, c, h, v, w, _, A, $) { var P = i & U, F = P ? w : n, q = P ? n : w, j = P ? v : n, J = P ? n : v; - i |= P ? z : ht, i &= ~(P ? ht : z), i & D || (i &= ~(I | x)); + i |= P ? z : ht, i &= ~(P ? ht : z), i & D || (i &= ~(R | x)); var rt = [ t, i, @@ -5590,37 +5481,37 @@ po.exports; A, $ ], X = o.apply(n, rt); - return va(t) && ff(X, rt), X.placeholder = c, lf(X, t, i); + return da(t) && of(X, rt), X.placeholder = c, af(X, t, i); } - function ca(t) { + function oa(t) { var i = qt[t]; return function(o, c) { - if (o = qe(o), c = c == null ? 0 : ne(nt(c), 292), c && fc(o)) { + if (o = ke(o), c = c == null ? 0 : ne(nt(c), 292), c && oc(o)) { var h = (gt(o) + "e").split("e"), v = i(h[0] + "e" + (+h[1] + c)); return h = (gt(v) + "e").split("e"), +(h[0] + "e" + (+h[1] - c)); } return i(o); }; } - var _0 = Rr && 1 / Bi(new Rr([, -0]))[1] == te ? function(t) { + var y0 = Rr && 1 / Bi(new Rr([, -0]))[1] == te ? function(t) { return new Rr(t); - } : La; - function Zc(t) { + } : Ia; + function Jc(t) { return function(i) { var o = re(i); - return o == ye ? No(i) : o == G ? kp(i) : Tp(i, t(i)); + return o == ye ? Do(i) : o == G ? Mp(i) : Rp(i, t(i)); }; } - function mn(t, i, o, c, h, v, w, _) { + function vn(t, i, o, c, h, v, w, _) { var A = i & x; if (!A && typeof t != "function") - throw new Me(f); + throw new Pe(f); var $ = c ? c.length : 0; if ($ || (i &= ~(z | ht), c = h = n), w = w === n ? w : Wt(nt(w), 0), _ = _ === n ? _ : nt(_), $ -= h ? h.length : 0, i & ht) { var P = c, F = h; c = h = n; } - var q = A ? n : ha(t), j = [ + var q = A ? n : ca(t), j = [ t, i, o, @@ -5632,24 +5523,24 @@ po.exports; w, _ ]; - if (q && D0(j, q), t = j[0], i = j[1], o = j[2], c = j[3], h = j[4], _ = j[9] = j[9] === n ? A ? 0 : t.length : Wt(j[9] - $, 0), !_ && i & (U | M) && (i &= ~(U | M)), !i || i == I) - var J = y0(t, i, o); + if (q && P0(j, q), t = j[0], i = j[1], o = j[2], c = j[3], h = j[4], _ = j[9] = j[9] === n ? A ? 0 : t.length : Wt(j[9] - $, 0), !_ && i & (U | M) && (i &= ~(U | M)), !i || i == R) + var J = g0(t, i, o); else - i == U || i == M ? J = w0(t, i, _) : (i == z || i == (I | z)) && !h.length ? J = b0(t, i, o, c) : J = fs.apply(n, j); - var rt = q ? $c : ff; - return lf(rt(J, j), t, i); + i == U || i == M ? J = v0(t, i, _) : (i == z || i == (R | z)) && !h.length ? J = m0(t, i, o, c) : J = fs.apply(n, j); + var rt = q ? Ic : of; + return af(rt(J, j), t, i); } - function Qc(t, i, o, c) { - return t === n || Ke(t, Ir[o]) && !vt.call(c, o) ? i : t; + function Xc(t, i, o, c) { + return t === n || je(t, Sr[o]) && !vt.call(c, o) ? i : t; } - function tf(t, i, o, c, h, v) { - return Rt(t) && Rt(i) && (v.set(i, t), os(t, i, n, tf, v), v.delete(i)), t; + function Yc(t, i, o, c, h, v) { + return It(t) && It(i) && (v.set(i, t), os(t, i, n, Yc, v), v.delete(i)), t; } - function C0(t) { + function w0(t) { return pi(t) ? n : t; } - function ef(t, i, o, c, h, v) { - var w = o & R, _ = t.length, A = i.length; + function Vc(t, i, o, c, h, v) { + var w = o & I, _ = t.length, A = i.length; if (_ != A && !(w && A > _)) return !1; var $ = v.get(t), P = v.get(i); @@ -5667,7 +5558,7 @@ po.exports; break; } if (j) { - if (!Po(i, function(ot, lt) { + if (!To(i, function(ot, lt) { if (!ti(j, lt) && (J === ot || h(J, ot, o, c, v))) return j.push(lt); })) { @@ -5681,34 +5572,34 @@ po.exports; } return v.delete(t), v.delete(i), q; } - function E0(t, i, o, c, h, v, w) { + function b0(t, i, o, c, h, v, w) { switch (o) { case pt: if (t.byteLength != i.byteLength || t.byteOffset != i.byteOffset) return !1; t = t.buffer, i = i.buffer; - case Y: + case V: return !(t.byteLength != i.byteLength || !v(new Ji(t), new Ji(i))); + case cn: case fn: - case ln: - case In: - return Ke(+t, +i); + case Sn: + return je(+t, +i); case ee: return t.name == i.name && t.message == i.message; - case V: + case Y: case Q: return t == i + ""; case ye: - var _ = No; + var _ = Do; case G: - var A = c & R; + var A = c & I; if (_ || (_ = Bi), t.size != i.size && !A) return !1; var $ = w.get(t); if ($) return $ == i; c |= O, w.set(t, i); - var P = ef(_(t), _(i), c, h, v, w); + var P = Vc(_(t), _(i), c, h, v, w); return w.delete(t), P; case mt: if (si) @@ -5716,8 +5607,8 @@ po.exports; } return !1; } - function A0(t, i, o, c, h, v) { - var w = o & R, _ = fa(t), A = _.length, $ = fa(i), P = $.length; + function _0(t, i, o, c, h, v) { + var w = o & I, _ = aa(t), A = _.length, $ = aa(i), P = $.length; if (A != P && !w) return !1; for (var F = A; F--; ) { @@ -5742,55 +5633,55 @@ po.exports; X || (X = q == "constructor"); } if (rt && !X) { - var le = t.constructor, Ie = i.constructor; - le != Ie && "constructor" in t && "constructor" in i && !(typeof le == "function" && le instanceof le && typeof Ie == "function" && Ie instanceof Ie) && (rt = !1); + var le = t.constructor, Re = i.constructor; + le != Re && "constructor" in t && "constructor" in i && !(typeof le == "function" && le instanceof le && typeof Re == "function" && Re instanceof Re) && (rt = !1); } return v.delete(t), v.delete(i), rt; } - function yn(t) { - return ya(uf(t, n, mf), t + ""); + function mn(t) { + return ga(rf(t, n, df), t + ""); } - function fa(t) { - return _c(t, jt, pa); + function aa(t) { + return mc(t, Gt, la); } - function la(t) { - return _c(t, pe, nf); + function ua(t) { + return mc(t, pe, Zc); } - var ha = ts ? function(t) { + var ca = ts ? function(t) { return ts.get(t); - } : La; + } : Ia; function ps(t) { - for (var i = t.name + "", o = Or[i], c = vt.call(Or, i) ? o.length : 0; c--; ) { + for (var i = t.name + "", o = Ir[i], c = vt.call(Ir, i) ? o.length : 0; c--; ) { var h = o[c], v = h.func; if (v == null || v == t) return h.name; } return i; } - function Pr(t) { + function $r(t) { var i = vt.call(g, "placeholder") ? g : t; return i.placeholder; } function K() { - var t = g.iteratee || Oa; - return t = t === Oa ? Ac : t, arguments.length ? t(arguments[0], arguments[1]) : t; + var t = g.iteratee || Sa; + return t = t === Sa ? bc : t, arguments.length ? t(arguments[0], arguments[1]) : t; } function gs(t, i) { var o = t.__data__; - return $0(i) ? o[typeof i == "string" ? "string" : "hash"] : o.map; + return O0(i) ? o[typeof i == "string" ? "string" : "hash"] : o.map; } - function da(t) { - for (var i = jt(t), o = i.length; o--; ) { + function fa(t) { + for (var i = Gt(t), o = i.length; o--; ) { var c = i[o], h = t[c]; - i[o] = [c, h, of(h)]; + i[o] = [c, h, ef(h)]; } return i; } function ir(t, i) { - var o = Mp(t, i); - return Ec(o) ? o : n; + var o = $p(t, i); + return wc(o) ? o : n; } - function x0(t) { + function C0(t) { var i = vt.call(t, Qn), o = t[Qn]; try { t[Qn] = n; @@ -5800,33 +5691,33 @@ po.exports; var h = zi.call(t); return c && (i ? t[Qn] = o : delete t[Qn]), h; } - var pa = Wo ? function(t) { - return t == null ? [] : (t = wt(t), Ln(Wo(t), function(i) { - return uc.call(t, i); + var la = ko ? function(t) { + return t == null ? [] : (t = wt(t), Tn(ko(t), function(i) { + return ic.call(t, i); })); - } : $a, nf = Wo ? function(t) { + } : Oa, Zc = ko ? function(t) { for (var i = []; t; ) - $n(i, pa(t)), t = Xi(t); + Ln(i, la(t)), t = Xi(t); return i; - } : $a, re = ce; - (Bo && re(new Bo(new ArrayBuffer(1))) != pt || ni && re(new ni()) != ye || Ho && re(Ho.resolve()) != H || Rr && re(new Rr()) != G || ri && re(new ri()) != ft) && (re = function(t) { + } : Oa, re = ce; + (No && re(new No(new ArrayBuffer(1))) != pt || ni && re(new ni()) != ye || qo && re(qo.resolve()) != H || Rr && re(new Rr()) != G || ri && re(new ri()) != ft) && (re = function(t) { var i = ce(t), o = i == k ? t.constructor : n, c = o ? sr(o) : ""; if (c) switch (c) { - case ag: + case ig: return pt; - case ug: + case sg: return ye; - case cg: + case og: return H; - case fg: + case ag: return G; - case lg: + case ug: return ft; } return i; }); - function S0(t, i, o) { + function E0(t, i, o) { for (var c = -1, h = o.length; ++c < h; ) { var v = o[c], w = v.size; switch (v.type) { @@ -5846,146 +5737,146 @@ po.exports; } return { start: t, end: i }; } - function I0(t) { - var i = t.match(Pd); - return i ? i[1].split(Fd) : []; + function A0(t) { + var i = t.match(Td); + return i ? i[1].split(Ld) : []; } - function rf(t, i, o) { - i = Un(i, t); + function Qc(t, i, o) { + i = Dn(i, t); for (var c = -1, h = i.length, v = !1; ++c < h; ) { - var w = sn(i[c]); + var w = rn(i[c]); if (!(v = t != null && o(t, w))) break; t = t[w]; } - return v || ++c != h ? v : (h = t == null ? 0 : t.length, !!h && Cs(h) && wn(w, h) && (tt(t) || or(t))); + return v || ++c != h ? v : (h = t == null ? 0 : t.length, !!h && Cs(h) && yn(w, h) && (tt(t) || or(t))); } - function R0(t) { + function x0(t) { var i = t.length, o = new t.constructor(i); return i && typeof t[0] == "string" && vt.call(t, "index") && (o.index = t.index, o.input = t.input), o; } - function sf(t) { - return typeof t.constructor == "function" && !hi(t) ? Tr(Xi(t)) : {}; + function tf(t) { + return typeof t.constructor == "function" && !hi(t) ? Or(Xi(t)) : {}; } - function O0(t, i, o) { + function S0(t, i, o) { var c = t.constructor; switch (i) { - case Y: - return aa(t); + case V: + return ia(t); + case cn: case fn: - case ln: return new c(+t); case pt: - return h0(t, o); + return c0(t, o); case we: - case hn: + case ln: case Kt: case Nt: case oe: - case en: + case tn: case Rn: case be: - case On: - return qc(t, o); + case In: + return Dc(t, o); case ye: return new c(); - case In: + case Sn: case Q: return new c(t); - case V: - return d0(t); + case Y: + return f0(t); case G: return new c(); case mt: - return p0(t); + return l0(t); } } - function T0(t, i) { + function R0(t, i) { var o = i.length; if (!o) return t; var c = o - 1; - return i[c] = (o > 1 ? "& " : "") + i[c], i = i.join(o > 2 ? ", " : " "), t.replace($d, `{ + return i[c] = (o > 1 ? "& " : "") + i[c], i = i.join(o > 2 ? ", " : " "), t.replace(Od, `{ /* [wrapped with ` + i + `] */ `); } - function L0(t) { - return tt(t) || or(t) || !!(cc && t && t[cc]); + function I0(t) { + return tt(t) || or(t) || !!(sc && t && t[sc]); } - function wn(t, i) { + function yn(t, i) { var o = typeof t; - return i = i ?? se, !!i && (o == "number" || o != "symbol" && Hd.test(t)) && t > -1 && t % 1 == 0 && t < i; + return i = i ?? se, !!i && (o == "number" || o != "symbol" && qd.test(t)) && t > -1 && t % 1 == 0 && t < i; } function fe(t, i, o) { - if (!Rt(o)) + if (!It(o)) return !1; var c = typeof i; - return (c == "number" ? de(o) && wn(i, o.length) : c == "string" && i in o) ? Ke(o[i], t) : !1; + return (c == "number" ? de(o) && yn(i, o.length) : c == "string" && i in o) ? je(o[i], t) : !1; } - function ga(t, i) { + function ha(t, i) { if (tt(t)) return !1; var o = typeof t; return o == "number" || o == "symbol" || o == "boolean" || t == null || xe(t) ? !0 : ue.test(t) || !ae.test(t) || i != null && t in wt(i); } - function $0(t) { + function O0(t) { var i = typeof t; return i == "string" || i == "number" || i == "symbol" || i == "boolean" ? t !== "__proto__" : t === null; } - function va(t) { + function da(t) { var i = ps(t), o = g[i]; if (typeof o != "function" || !(i in ut.prototype)) return !1; if (t === o) return !0; - var c = ha(o); + var c = ca(o); return !!c && t === c[0]; } - function P0(t) { - return !!sc && sc in t; + function T0(t) { + return !!ec && ec in t; } - var F0 = Gi ? bn : Pa; + var L0 = Gi ? wn : Ta; function hi(t) { - var i = t && t.constructor, o = typeof i == "function" && i.prototype || Ir; + var i = t && t.constructor, o = typeof i == "function" && i.prototype || Sr; return t === o; } - function of(t) { - return t === t && !Rt(t); + function ef(t) { + return t === t && !It(t); } - function af(t, i) { + function nf(t, i) { return function(o) { return o == null ? !1 : o[t] === i && (i !== n || t in wt(o)); }; } - function M0(t) { + function $0(t) { var i = bs(t, function(c) { return o.size === y && o.clear(), c; }), o = i.cache; return i; } - function D0(t, i) { - var o = t[1], c = i[1], h = o | c, v = h < (I | x | _t), w = c == _t && o == U || c == _t && o == xt && t[7].length <= i[8] || c == (_t | xt) && i[7].length <= i[8] && o == U; + function P0(t, i) { + var o = t[1], c = i[1], h = o | c, v = h < (R | x | _t), w = c == _t && o == U || c == _t && o == xt && t[7].length <= i[8] || c == (_t | xt) && i[7].length <= i[8] && o == U; if (!(v || w)) return t; - c & I && (t[2] = i[2], h |= o & I ? 0 : D); + c & R && (t[2] = i[2], h |= o & R ? 0 : D); var _ = i[3]; if (_) { var A = t[3]; - t[3] = A ? Bc(A, _, i[4]) : _, t[4] = A ? Pn(t[3], p) : i[4]; + t[3] = A ? kc(A, _, i[4]) : _, t[4] = A ? $n(t[3], p) : i[4]; } - return _ = i[5], _ && (A = t[5], t[5] = A ? Hc(A, _, i[6]) : _, t[6] = A ? Pn(t[5], p) : i[6]), _ = i[7], _ && (t[7] = _), c & _t && (t[8] = t[8] == null ? i[8] : ne(t[8], i[8])), t[9] == null && (t[9] = i[9]), t[0] = i[0], t[1] = h, t; + return _ = i[5], _ && (A = t[5], t[5] = A ? Nc(A, _, i[6]) : _, t[6] = A ? $n(t[5], p) : i[6]), _ = i[7], _ && (t[7] = _), c & _t && (t[8] = t[8] == null ? i[8] : ne(t[8], i[8])), t[9] == null && (t[9] = i[9]), t[0] = i[0], t[1] = h, t; } - function U0(t) { + function F0(t) { var i = []; if (t != null) for (var o in wt(t)) i.push(o); return i; } - function k0(t) { + function M0(t) { return zi.call(t); } - function uf(t, i, o) { + function rf(t, i, o) { return i = Wt(i === n ? t.length - 1 : i, 0), function() { for (var c = arguments, h = -1, v = Wt(c.length - i, 0), w = S(v); ++h < v; ) w[h] = c[i + h]; @@ -5995,33 +5886,33 @@ po.exports; return _[i] = o(w), Ce(t, this, _); }; } - function cf(t, i) { - return i.length < 2 ? t : rr(t, ke(i, 0, -1)); + function sf(t, i) { + return i.length < 2 ? t : rr(t, De(i, 0, -1)); } - function N0(t, i) { + function D0(t, i) { for (var o = t.length, c = ne(i.length, o), h = he(t); c--; ) { var v = i[c]; - t[c] = wn(v, o) ? h[v] : n; + t[c] = yn(v, o) ? h[v] : n; } return t; } - function ma(t, i) { + function pa(t, i) { if (!(i === "constructor" && typeof t[i] == "function") && i != "__proto__") return t[i]; } - var ff = hf($c), di = tg || function(t, i) { - return Vt.setTimeout(t, i); - }, ya = hf(u0); - function lf(t, i, o) { + var of = uf(Ic), di = Vp || function(t, i) { + return Yt.setTimeout(t, i); + }, ga = uf(s0); + function af(t, i, o) { var c = i + ""; - return ya(t, T0(c, q0(I0(c), o))); + return ga(t, R0(c, U0(A0(c), o))); } - function hf(t) { + function uf(t) { var i = 0, o = 0; return function() { - var c = ig(), h = zt - (c - o); + var c = eg(), h = zt - (c - o); if (o = c, h > 0) { - if (++i >= He) + if (++i >= We) return arguments[0]; } else i = 0; @@ -6031,18 +5922,18 @@ po.exports; function vs(t, i) { var o = -1, c = t.length, h = c - 1; for (i = i === n ? c : i; ++o < i; ) { - var v = ta(o, h), w = t[v]; + var v = Vo(o, h), w = t[v]; t[v] = t[o], t[o] = w; } return t.length = i, t; } - var df = M0(function(t) { + var cf = $0(function(t) { var i = []; return t.charCodeAt(0) === 46 && i.push(""), t.replace(Xt, function(o, c, h, v) { - i.push(h ? v.replace(Ud, "$1") : c || o); + i.push(h ? v.replace(Fd, "$1") : c || o); }), i; }); - function sn(t) { + function rn(t) { if (typeof t == "string" || xe(t)) return t; var i = t + ""; @@ -6061,160 +5952,160 @@ po.exports; } return ""; } - function q0(t, i) { - return Fe(Co, function(o) { + function U0(t, i) { + return $e(wo, function(o) { var c = "_." + o[0]; i & o[1] && !qi(t, c) && t.push(c); }), t.sort(); } - function pf(t) { + function ff(t) { if (t instanceof ut) return t.clone(); - var i = new De(t.__wrapped__, t.__chain__); + var i = new Fe(t.__wrapped__, t.__chain__); return i.__actions__ = he(t.__actions__), i.__index__ = t.__index__, i.__values__ = t.__values__, i; } - function W0(t, i, o) { + function k0(t, i, o) { (o ? fe(t, i, o) : i === n) ? i = 1 : i = Wt(nt(i), 0); var c = t == null ? 0 : t.length; if (!c || i < 1) return []; for (var h = 0, v = 0, w = S(Zi(c / i)); h < c; ) - w[v++] = ke(t, h, h += i); + w[v++] = De(t, h, h += i); return w; } - function B0(t) { + function N0(t) { for (var i = -1, o = t == null ? 0 : t.length, c = 0, h = []; ++i < o; ) { var v = t[i]; v && (h[c++] = v); } return h; } - function H0() { + function q0() { var t = arguments.length; if (!t) return []; for (var i = S(t - 1), o = arguments[0], c = t; c--; ) i[c - 1] = arguments[c]; - return $n(tt(o) ? he(o) : [o], Yt(i, 1)); - } - var G0 = st(function(t, i) { - return Ft(t) ? ai(t, Yt(i, 1, Ft, !0)) : []; - }), j0 = st(function(t, i) { - var o = Ne(i); - return Ft(o) && (o = n), Ft(t) ? ai(t, Yt(i, 1, Ft, !0), K(o, 2)) : []; - }), z0 = st(function(t, i) { - var o = Ne(i); - return Ft(o) && (o = n), Ft(t) ? ai(t, Yt(i, 1, Ft, !0), n, o) : []; + return Ln(tt(o) ? he(o) : [o], Vt(i, 1)); + } + var W0 = st(function(t, i) { + return Pt(t) ? ai(t, Vt(i, 1, Pt, !0)) : []; + }), B0 = st(function(t, i) { + var o = Ue(i); + return Pt(o) && (o = n), Pt(t) ? ai(t, Vt(i, 1, Pt, !0), K(o, 2)) : []; + }), H0 = st(function(t, i) { + var o = Ue(i); + return Pt(o) && (o = n), Pt(t) ? ai(t, Vt(i, 1, Pt, !0), n, o) : []; }); - function K0(t, i, o) { + function G0(t, i, o) { var c = t == null ? 0 : t.length; - return c ? (i = o || i === n ? 1 : nt(i), ke(t, i < 0 ? 0 : i, c)) : []; + return c ? (i = o || i === n ? 1 : nt(i), De(t, i < 0 ? 0 : i, c)) : []; } - function J0(t, i, o) { + function j0(t, i, o) { var c = t == null ? 0 : t.length; - return c ? (i = o || i === n ? 1 : nt(i), i = c - i, ke(t, 0, i < 0 ? 0 : i)) : []; + return c ? (i = o || i === n ? 1 : nt(i), i = c - i, De(t, 0, i < 0 ? 0 : i)) : []; } - function X0(t, i) { + function z0(t, i) { return t && t.length ? us(t, K(i, 3), !0, !0) : []; } - function V0(t, i) { + function K0(t, i) { return t && t.length ? us(t, K(i, 3), !0) : []; } - function Y0(t, i, o, c) { + function J0(t, i, o, c) { var h = t == null ? 0 : t.length; - return h ? (o && typeof o != "number" && fe(t, i, o) && (o = 0, c = h), Hg(t, i, o, c)) : []; + return h ? (o && typeof o != "number" && fe(t, i, o) && (o = 0, c = h), qg(t, i, o, c)) : []; } - function gf(t, i, o) { + function lf(t, i, o) { var c = t == null ? 0 : t.length; if (!c) return -1; var h = o == null ? 0 : nt(o); return h < 0 && (h = Wt(c + h, 0)), Wi(t, K(i, 3), h); } - function vf(t, i, o) { + function hf(t, i, o) { var c = t == null ? 0 : t.length; if (!c) return -1; var h = c - 1; return o !== n && (h = nt(o), h = o < 0 ? Wt(c + h, 0) : ne(h, c - 1)), Wi(t, K(i, 3), h, !0); } - function mf(t) { + function df(t) { var i = t == null ? 0 : t.length; - return i ? Yt(t, 1) : []; + return i ? Vt(t, 1) : []; } - function Z0(t) { + function X0(t) { var i = t == null ? 0 : t.length; - return i ? Yt(t, te) : []; + return i ? Vt(t, te) : []; } - function Q0(t, i) { + function Y0(t, i) { var o = t == null ? 0 : t.length; - return o ? (i = i === n ? 1 : nt(i), Yt(t, i)) : []; + return o ? (i = i === n ? 1 : nt(i), Vt(t, i)) : []; } - function tv(t) { + function V0(t) { for (var i = -1, o = t == null ? 0 : t.length, c = {}; ++i < o; ) { var h = t[i]; c[h[0]] = h[1]; } return c; } - function yf(t) { + function pf(t) { return t && t.length ? t[0] : n; } - function ev(t, i, o) { + function Z0(t, i, o) { var c = t == null ? 0 : t.length; if (!c) return -1; var h = o == null ? 0 : nt(o); - return h < 0 && (h = Wt(c + h, 0)), Er(t, i, h); + return h < 0 && (h = Wt(c + h, 0)), Cr(t, i, h); } - function nv(t) { + function Q0(t) { var i = t == null ? 0 : t.length; - return i ? ke(t, 0, -1) : []; - } - var rv = st(function(t) { - var i = St(t, sa); - return i.length && i[0] === t[0] ? Xo(i) : []; - }), iv = st(function(t) { - var i = Ne(t), o = St(t, sa); - return i === Ne(o) ? i = n : o.pop(), o.length && o[0] === t[0] ? Xo(o, K(i, 2)) : []; - }), sv = st(function(t) { - var i = Ne(t), o = St(t, sa); - return i = typeof i == "function" ? i : n, i && o.pop(), o.length && o[0] === t[0] ? Xo(o, n, i) : []; + return i ? De(t, 0, -1) : []; + } + var tv = st(function(t) { + var i = St(t, na); + return i.length && i[0] === t[0] ? zo(i) : []; + }), ev = st(function(t) { + var i = Ue(t), o = St(t, na); + return i === Ue(o) ? i = n : o.pop(), o.length && o[0] === t[0] ? zo(o, K(i, 2)) : []; + }), nv = st(function(t) { + var i = Ue(t), o = St(t, na); + return i = typeof i == "function" ? i : n, i && o.pop(), o.length && o[0] === t[0] ? zo(o, n, i) : []; }); - function ov(t, i) { - return t == null ? "" : ng.call(t, i); + function rv(t, i) { + return t == null ? "" : Qp.call(t, i); } - function Ne(t) { + function Ue(t) { var i = t == null ? 0 : t.length; return i ? t[i - 1] : n; } - function av(t, i, o) { + function iv(t, i, o) { var c = t == null ? 0 : t.length; if (!c) return -1; var h = c; - return o !== n && (h = nt(o), h = h < 0 ? Wt(c + h, 0) : ne(h, c - 1)), i === i ? qp(t, i, h) : Wi(t, Yu, h, !0); + return o !== n && (h = nt(o), h = h < 0 ? Wt(c + h, 0) : ne(h, c - 1)), i === i ? Up(t, i, h) : Wi(t, Ku, h, !0); } - function uv(t, i) { - return t && t.length ? Rc(t, nt(i)) : n; + function sv(t, i) { + return t && t.length ? Ac(t, nt(i)) : n; } - var cv = st(wf); - function wf(t, i) { - return t && t.length && i && i.length ? Qo(t, i) : t; + var ov = st(gf); + function gf(t, i) { + return t && t.length && i && i.length ? Yo(t, i) : t; } - function fv(t, i, o) { - return t && t.length && i && i.length ? Qo(t, i, K(o, 2)) : t; + function av(t, i, o) { + return t && t.length && i && i.length ? Yo(t, i, K(o, 2)) : t; } - function lv(t, i, o) { - return t && t.length && i && i.length ? Qo(t, i, n, o) : t; + function uv(t, i, o) { + return t && t.length && i && i.length ? Yo(t, i, n, o) : t; } - var hv = yn(function(t, i) { - var o = t == null ? 0 : t.length, c = jo(t, i); - return Lc(t, St(i, function(h) { - return wn(h, o) ? +h : h; - }).sort(Wc)), c; + var cv = mn(function(t, i) { + var o = t == null ? 0 : t.length, c = Bo(t, i); + return Rc(t, St(i, function(h) { + return yn(h, o) ? +h : h; + }).sort(Uc)), c; }); - function dv(t, i) { + function fv(t, i) { var o = []; if (!(t && t.length)) return o; @@ -6223,390 +6114,390 @@ po.exports; var w = t[c]; i(w, c, t) && (o.push(w), h.push(c)); } - return Lc(t, h), o; + return Rc(t, h), o; } - function wa(t) { - return t == null ? t : og.call(t); + function va(t) { + return t == null ? t : rg.call(t); } - function pv(t, i, o) { + function lv(t, i, o) { var c = t == null ? 0 : t.length; - return c ? (o && typeof o != "number" && fe(t, i, o) ? (i = 0, o = c) : (i = i == null ? 0 : nt(i), o = o === n ? c : nt(o)), ke(t, i, o)) : []; + return c ? (o && typeof o != "number" && fe(t, i, o) ? (i = 0, o = c) : (i = i == null ? 0 : nt(i), o = o === n ? c : nt(o)), De(t, i, o)) : []; } - function gv(t, i) { + function hv(t, i) { return as(t, i); } - function vv(t, i, o) { - return na(t, i, K(o, 2)); + function dv(t, i, o) { + return Qo(t, i, K(o, 2)); } - function mv(t, i) { + function pv(t, i) { var o = t == null ? 0 : t.length; if (o) { var c = as(t, i); - if (c < o && Ke(t[c], i)) + if (c < o && je(t[c], i)) return c; } return -1; } - function yv(t, i) { + function gv(t, i) { return as(t, i, !0); } - function wv(t, i, o) { - return na(t, i, K(o, 2), !0); + function vv(t, i, o) { + return Qo(t, i, K(o, 2), !0); } - function bv(t, i) { + function mv(t, i) { var o = t == null ? 0 : t.length; if (o) { var c = as(t, i, !0) - 1; - if (Ke(t[c], i)) + if (je(t[c], i)) return c; } return -1; } - function _v(t) { - return t && t.length ? Pc(t) : []; + function yv(t) { + return t && t.length ? Oc(t) : []; } - function Cv(t, i) { - return t && t.length ? Pc(t, K(i, 2)) : []; + function wv(t, i) { + return t && t.length ? Oc(t, K(i, 2)) : []; } - function Ev(t) { + function bv(t) { var i = t == null ? 0 : t.length; - return i ? ke(t, 1, i) : []; + return i ? De(t, 1, i) : []; } - function Av(t, i, o) { - return t && t.length ? (i = o || i === n ? 1 : nt(i), ke(t, 0, i < 0 ? 0 : i)) : []; + function _v(t, i, o) { + return t && t.length ? (i = o || i === n ? 1 : nt(i), De(t, 0, i < 0 ? 0 : i)) : []; } - function xv(t, i, o) { + function Cv(t, i, o) { var c = t == null ? 0 : t.length; - return c ? (i = o || i === n ? 1 : nt(i), i = c - i, ke(t, i < 0 ? 0 : i, c)) : []; + return c ? (i = o || i === n ? 1 : nt(i), i = c - i, De(t, i < 0 ? 0 : i, c)) : []; } - function Sv(t, i) { + function Ev(t, i) { return t && t.length ? us(t, K(i, 3), !1, !0) : []; } - function Iv(t, i) { + function Av(t, i) { return t && t.length ? us(t, K(i, 3)) : []; } - var Rv = st(function(t) { - return Dn(Yt(t, 1, Ft, !0)); - }), Ov = st(function(t) { - var i = Ne(t); - return Ft(i) && (i = n), Dn(Yt(t, 1, Ft, !0), K(i, 2)); - }), Tv = st(function(t) { - var i = Ne(t); - return i = typeof i == "function" ? i : n, Dn(Yt(t, 1, Ft, !0), n, i); + var xv = st(function(t) { + return Mn(Vt(t, 1, Pt, !0)); + }), Sv = st(function(t) { + var i = Ue(t); + return Pt(i) && (i = n), Mn(Vt(t, 1, Pt, !0), K(i, 2)); + }), Rv = st(function(t) { + var i = Ue(t); + return i = typeof i == "function" ? i : n, Mn(Vt(t, 1, Pt, !0), n, i); }); - function Lv(t) { - return t && t.length ? Dn(t) : []; + function Iv(t) { + return t && t.length ? Mn(t) : []; } - function $v(t, i) { - return t && t.length ? Dn(t, K(i, 2)) : []; + function Ov(t, i) { + return t && t.length ? Mn(t, K(i, 2)) : []; } - function Pv(t, i) { - return i = typeof i == "function" ? i : n, t && t.length ? Dn(t, n, i) : []; + function Tv(t, i) { + return i = typeof i == "function" ? i : n, t && t.length ? Mn(t, n, i) : []; } - function ba(t) { + function ma(t) { if (!(t && t.length)) return []; var i = 0; - return t = Ln(t, function(o) { - if (Ft(o)) + return t = Tn(t, function(o) { + if (Pt(o)) return i = Wt(o.length, i), !0; - }), Uo(i, function(o) { - return St(t, Fo(o)); + }), Fo(i, function(o) { + return St(t, Lo(o)); }); } - function bf(t, i) { + function vf(t, i) { if (!(t && t.length)) return []; - var o = ba(t); + var o = ma(t); return i == null ? o : St(o, function(c) { return Ce(i, n, c); }); } - var Fv = st(function(t, i) { - return Ft(t) ? ai(t, i) : []; - }), Mv = st(function(t) { - return ia(Ln(t, Ft)); - }), Dv = st(function(t) { - var i = Ne(t); - return Ft(i) && (i = n), ia(Ln(t, Ft), K(i, 2)); - }), Uv = st(function(t) { - var i = Ne(t); - return i = typeof i == "function" ? i : n, ia(Ln(t, Ft), n, i); - }), kv = st(ba); - function Nv(t, i) { - return Uc(t || [], i || [], oi); - } - function qv(t, i) { - return Uc(t || [], i || [], fi); - } - var Wv = st(function(t) { + var Lv = st(function(t, i) { + return Pt(t) ? ai(t, i) : []; + }), $v = st(function(t) { + return ea(Tn(t, Pt)); + }), Pv = st(function(t) { + var i = Ue(t); + return Pt(i) && (i = n), ea(Tn(t, Pt), K(i, 2)); + }), Fv = st(function(t) { + var i = Ue(t); + return i = typeof i == "function" ? i : n, ea(Tn(t, Pt), n, i); + }), Mv = st(ma); + function Dv(t, i) { + return Pc(t || [], i || [], oi); + } + function Uv(t, i) { + return Pc(t || [], i || [], fi); + } + var kv = st(function(t) { var i = t.length, o = i > 1 ? t[i - 1] : n; - return o = typeof o == "function" ? (t.pop(), o) : n, bf(t, o); + return o = typeof o == "function" ? (t.pop(), o) : n, vf(t, o); }); - function _f(t) { + function mf(t) { var i = g(t); return i.__chain__ = !0, i; } - function Bv(t, i) { + function Nv(t, i) { return i(t), t; } function ms(t, i) { return i(t); } - var Hv = yn(function(t) { + var qv = mn(function(t) { var i = t.length, o = i ? t[0] : 0, c = this.__wrapped__, h = function(v) { - return jo(v, t); + return Bo(v, t); }; - return i > 1 || this.__actions__.length || !(c instanceof ut) || !wn(o) ? this.thru(h) : (c = c.slice(o, +o + (i ? 1 : 0)), c.__actions__.push({ + return i > 1 || this.__actions__.length || !(c instanceof ut) || !yn(o) ? this.thru(h) : (c = c.slice(o, +o + (i ? 1 : 0)), c.__actions__.push({ func: ms, args: [h], thisArg: n - }), new De(c, this.__chain__).thru(function(v) { + }), new Fe(c, this.__chain__).thru(function(v) { return i && !v.length && v.push(n), v; })); }); - function Gv() { - return _f(this); + function Wv() { + return mf(this); } - function jv() { - return new De(this.value(), this.__chain__); + function Bv() { + return new Fe(this.value(), this.__chain__); } - function zv() { - this.__values__ === n && (this.__values__ = Mf(this.value())); + function Hv() { + this.__values__ === n && (this.__values__ = Lf(this.value())); var t = this.__index__ >= this.__values__.length, i = t ? n : this.__values__[this.__index__++]; return { done: t, value: i }; } - function Kv() { + function Gv() { return this; } - function Jv(t) { + function jv(t) { for (var i, o = this; o instanceof ns; ) { - var c = pf(o); + var c = ff(o); c.__index__ = 0, c.__values__ = n, i ? h.__wrapped__ = c : i = c; var h = c; o = o.__wrapped__; } return h.__wrapped__ = t, i; } - function Xv() { + function zv() { var t = this.__wrapped__; if (t instanceof ut) { var i = t; return this.__actions__.length && (i = new ut(this)), i = i.reverse(), i.__actions__.push({ func: ms, - args: [wa], + args: [va], thisArg: n - }), new De(i, this.__chain__); + }), new Fe(i, this.__chain__); } - return this.thru(wa); + return this.thru(va); } - function Vv() { - return Dc(this.__wrapped__, this.__actions__); + function Kv() { + return $c(this.__wrapped__, this.__actions__); } - var Yv = cs(function(t, i, o) { - vt.call(t, o) ? ++t[o] : vn(t, o, 1); + var Jv = cs(function(t, i, o) { + vt.call(t, o) ? ++t[o] : gn(t, o, 1); }); - function Zv(t, i, o) { - var c = tt(t) ? Xu : Bg; + function Xv(t, i, o) { + var c = tt(t) ? ju : Ng; return o && fe(t, i, o) && (i = n), c(t, K(i, 3)); } - function Qv(t, i) { - var o = tt(t) ? Ln : wc; + function Yv(t, i) { + var o = tt(t) ? Tn : gc; return o(t, K(i, 3)); } - var tm = Kc(gf), em = Kc(vf); - function nm(t, i) { - return Yt(ys(t, i), 1); + var Vv = Hc(lf), Zv = Hc(hf); + function Qv(t, i) { + return Vt(ys(t, i), 1); } - function rm(t, i) { - return Yt(ys(t, i), te); + function tm(t, i) { + return Vt(ys(t, i), te); } - function im(t, i, o) { - return o = o === n ? 1 : nt(o), Yt(ys(t, i), o); + function em(t, i, o) { + return o = o === n ? 1 : nt(o), Vt(ys(t, i), o); } - function Cf(t, i) { - var o = tt(t) ? Fe : Mn; + function yf(t, i) { + var o = tt(t) ? $e : Fn; return o(t, K(i, 3)); } - function Ef(t, i) { - var o = tt(t) ? Ep : yc; + function wf(t, i) { + var o = tt(t) ? bp : pc; return o(t, K(i, 3)); } - var sm = cs(function(t, i, o) { - vt.call(t, o) ? t[o].push(i) : vn(t, o, [i]); + var nm = cs(function(t, i, o) { + vt.call(t, o) ? t[o].push(i) : gn(t, o, [i]); }); - function om(t, i, o, c) { - t = de(t) ? t : Mr(t), o = o && !c ? nt(o) : 0; + function rm(t, i, o, c) { + t = de(t) ? t : Fr(t), o = o && !c ? nt(o) : 0; var h = t.length; - return o < 0 && (o = Wt(h + o, 0)), Es(t) ? o <= h && t.indexOf(i, o) > -1 : !!h && Er(t, i, o) > -1; + return o < 0 && (o = Wt(h + o, 0)), Es(t) ? o <= h && t.indexOf(i, o) > -1 : !!h && Cr(t, i, o) > -1; } - var am = st(function(t, i, o) { + var im = st(function(t, i, o) { var c = -1, h = typeof i == "function", v = de(t) ? S(t.length) : []; - return Mn(t, function(w) { + return Fn(t, function(w) { v[++c] = h ? Ce(i, w, o) : ui(w, i, o); }), v; - }), um = cs(function(t, i, o) { - vn(t, o, i); + }), sm = cs(function(t, i, o) { + gn(t, o, i); }); function ys(t, i) { - var o = tt(t) ? St : xc; + var o = tt(t) ? St : _c; return o(t, K(i, 3)); } - function cm(t, i, o, c) { - return t == null ? [] : (tt(i) || (i = i == null ? [] : [i]), o = c ? n : o, tt(o) || (o = o == null ? [] : [o]), Oc(t, i, o)); + function om(t, i, o, c) { + return t == null ? [] : (tt(i) || (i = i == null ? [] : [i]), o = c ? n : o, tt(o) || (o = o == null ? [] : [o]), xc(t, i, o)); } - var fm = cs(function(t, i, o) { + var am = cs(function(t, i, o) { t[o ? 0 : 1].push(i); }, function() { return [[], []]; }); - function lm(t, i, o) { - var c = tt(t) ? $o : Qu, h = arguments.length < 3; - return c(t, K(i, 4), o, h, Mn); + function um(t, i, o) { + var c = tt(t) ? Oo : Xu, h = arguments.length < 3; + return c(t, K(i, 4), o, h, Fn); } - function hm(t, i, o) { - var c = tt(t) ? Ap : Qu, h = arguments.length < 3; - return c(t, K(i, 4), o, h, yc); + function cm(t, i, o) { + var c = tt(t) ? _p : Xu, h = arguments.length < 3; + return c(t, K(i, 4), o, h, pc); } - function dm(t, i) { - var o = tt(t) ? Ln : wc; + function fm(t, i) { + var o = tt(t) ? Tn : gc; return o(t, _s(K(i, 3))); } - function pm(t) { - var i = tt(t) ? pc : o0; + function lm(t) { + var i = tt(t) ? fc : r0; return i(t); } - function gm(t, i, o) { + function hm(t, i, o) { (o ? fe(t, i, o) : i === n) ? i = 1 : i = nt(i); - var c = tt(t) ? Ug : a0; + var c = tt(t) ? Fg : i0; return c(t, i); } - function vm(t) { - var i = tt(t) ? kg : c0; + function dm(t) { + var i = tt(t) ? Mg : o0; return i(t); } - function mm(t) { + function pm(t) { if (t == null) return 0; if (de(t)) - return Es(t) ? xr(t) : t.length; + return Es(t) ? Ar(t) : t.length; var i = re(t); - return i == ye || i == G ? t.size : Yo(t).length; + return i == ye || i == G ? t.size : Jo(t).length; } - function ym(t, i, o) { - var c = tt(t) ? Po : f0; + function gm(t, i, o) { + var c = tt(t) ? To : a0; return o && fe(t, i, o) && (i = n), c(t, K(i, 3)); } - var wm = st(function(t, i) { + var vm = st(function(t, i) { if (t == null) return []; var o = i.length; - return o > 1 && fe(t, i[0], i[1]) ? i = [] : o > 2 && fe(i[0], i[1], i[2]) && (i = [i[0]]), Oc(t, Yt(i, 1), []); - }), ws = Qp || function() { - return Vt.Date.now(); + return o > 1 && fe(t, i[0], i[1]) ? i = [] : o > 2 && fe(i[0], i[1], i[2]) && (i = [i[0]]), xc(t, Vt(i, 1), []); + }), ws = Yp || function() { + return Yt.Date.now(); }; - function bm(t, i) { + function mm(t, i) { if (typeof i != "function") - throw new Me(f); + throw new Pe(f); return t = nt(t), function() { if (--t < 1) return i.apply(this, arguments); }; } - function Af(t, i, o) { - return i = o ? n : i, i = t && i == null ? t.length : i, mn(t, _t, n, n, n, n, i); + function bf(t, i, o) { + return i = o ? n : i, i = t && i == null ? t.length : i, vn(t, _t, n, n, n, n, i); } - function xf(t, i) { + function _f(t, i) { var o; if (typeof i != "function") - throw new Me(f); + throw new Pe(f); return t = nt(t), function() { return --t > 0 && (o = i.apply(this, arguments)), t <= 1 && (i = n), o; }; } - var _a = st(function(t, i, o) { - var c = I; + var ya = st(function(t, i, o) { + var c = R; if (o.length) { - var h = Pn(o, Pr(_a)); + var h = $n(o, $r(ya)); c |= z; } - return mn(t, c, i, o, h); - }), Sf = st(function(t, i, o) { - var c = I | x; + return vn(t, c, i, o, h); + }), Cf = st(function(t, i, o) { + var c = R | x; if (o.length) { - var h = Pn(o, Pr(Sf)); + var h = $n(o, $r(Cf)); c |= z; } - return mn(i, c, t, o, h); + return vn(i, c, t, o, h); }); - function If(t, i, o) { + function Ef(t, i, o) { i = o ? n : i; - var c = mn(t, U, n, n, n, n, n, i); - return c.placeholder = If.placeholder, c; + var c = vn(t, U, n, n, n, n, n, i); + return c.placeholder = Ef.placeholder, c; } - function Rf(t, i, o) { + function Af(t, i, o) { i = o ? n : i; - var c = mn(t, M, n, n, n, n, n, i); - return c.placeholder = Rf.placeholder, c; + var c = vn(t, M, n, n, n, n, n, i); + return c.placeholder = Af.placeholder, c; } - function Of(t, i, o) { + function xf(t, i, o) { var c, h, v, w, _, A, $ = 0, P = !1, F = !1, q = !0; if (typeof t != "function") - throw new Me(f); - i = qe(i) || 0, Rt(o) && (P = !!o.leading, F = "maxWait" in o, v = F ? Wt(qe(o.maxWait) || 0, i) : v, q = "trailing" in o ? !!o.trailing : q); - function j(Mt) { - var Je = c, Cn = h; - return c = h = n, $ = Mt, w = t.apply(Cn, Je), w; + throw new Pe(f); + i = ke(i) || 0, It(o) && (P = !!o.leading, F = "maxWait" in o, v = F ? Wt(ke(o.maxWait) || 0, i) : v, q = "trailing" in o ? !!o.trailing : q); + function j(Ft) { + var ze = c, _n = h; + return c = h = n, $ = Ft, w = t.apply(_n, ze), w; } - function J(Mt) { - return $ = Mt, _ = di(ot, i), P ? j(Mt) : w; + function J(Ft) { + return $ = Ft, _ = di(ot, i), P ? j(Ft) : w; } - function rt(Mt) { - var Je = Mt - A, Cn = Mt - $, Jf = i - Je; - return F ? ne(Jf, v - Cn) : Jf; + function rt(Ft) { + var ze = Ft - A, _n = Ft - $, Gf = i - ze; + return F ? ne(Gf, v - _n) : Gf; } - function X(Mt) { - var Je = Mt - A, Cn = Mt - $; - return A === n || Je >= i || Je < 0 || F && Cn >= v; + function X(Ft) { + var ze = Ft - A, _n = Ft - $; + return A === n || ze >= i || ze < 0 || F && _n >= v; } function ot() { - var Mt = ws(); - if (X(Mt)) - return lt(Mt); - _ = di(ot, rt(Mt)); + var Ft = ws(); + if (X(Ft)) + return lt(Ft); + _ = di(ot, rt(Ft)); } - function lt(Mt) { - return _ = n, q && c ? j(Mt) : (c = h = n, w); + function lt(Ft) { + return _ = n, q && c ? j(Ft) : (c = h = n, w); } function Se() { - _ !== n && kc(_), $ = 0, c = A = h = _ = n; + _ !== n && Fc(_), $ = 0, c = A = h = _ = n; } function le() { return _ === n ? w : lt(ws()); } - function Ie() { - var Mt = ws(), Je = X(Mt); - if (c = arguments, h = this, A = Mt, Je) { + function Re() { + var Ft = ws(), ze = X(Ft); + if (c = arguments, h = this, A = Ft, ze) { if (_ === n) return J(A); if (F) - return kc(_), _ = di(ot, i), j(A); + return Fc(_), _ = di(ot, i), j(A); } return _ === n && (_ = di(ot, i)), w; } - return Ie.cancel = Se, Ie.flush = le, Ie; + return Re.cancel = Se, Re.flush = le, Re; } - var _m = st(function(t, i) { - return mc(t, 1, i); - }), Cm = st(function(t, i, o) { - return mc(t, qe(i) || 0, o); + var ym = st(function(t, i) { + return dc(t, 1, i); + }), wm = st(function(t, i, o) { + return dc(t, ke(i) || 0, o); }); - function Em(t) { - return mn(t, $e); + function bm(t) { + return vn(t, Te); } function bs(t, i) { if (typeof t != "function" || i != null && typeof i != "function") - throw new Me(f); + throw new Pe(f); var o = function() { var c = arguments, h = i ? i.apply(this, c) : c[0], v = o.cache; if (v.has(h)) @@ -6614,12 +6505,12 @@ po.exports; var w = t.apply(this, c); return o.cache = v.set(h, w) || v, w; }; - return o.cache = new (bs.Cache || gn)(), o; + return o.cache = new (bs.Cache || pn)(), o; } - bs.Cache = gn; + bs.Cache = pn; function _s(t) { if (typeof t != "function") - throw new Me(f); + throw new Pe(f); return function() { var i = arguments; switch (i.length) { @@ -6635,517 +6526,517 @@ po.exports; return !t.apply(this, i); }; } - function Am(t) { - return xf(2, t); + function _m(t) { + return _f(2, t); } - var xm = l0(function(t, i) { - i = i.length == 1 && tt(i[0]) ? St(i[0], Ee(K())) : St(Yt(i, 1), Ee(K())); + var Cm = u0(function(t, i) { + i = i.length == 1 && tt(i[0]) ? St(i[0], Ee(K())) : St(Vt(i, 1), Ee(K())); var o = i.length; return st(function(c) { for (var h = -1, v = ne(c.length, o); ++h < v; ) c[h] = i[h].call(this, c[h]); return Ce(t, this, c); }); - }), Ca = st(function(t, i) { - var o = Pn(i, Pr(Ca)); - return mn(t, z, n, i, o); - }), Tf = st(function(t, i) { - var o = Pn(i, Pr(Tf)); - return mn(t, ht, n, i, o); - }), Sm = yn(function(t, i) { - return mn(t, xt, n, n, n, i); + }), wa = st(function(t, i) { + var o = $n(i, $r(wa)); + return vn(t, z, n, i, o); + }), Sf = st(function(t, i) { + var o = $n(i, $r(Sf)); + return vn(t, ht, n, i, o); + }), Em = mn(function(t, i) { + return vn(t, xt, n, n, n, i); }); - function Im(t, i) { + function Am(t, i) { if (typeof t != "function") - throw new Me(f); + throw new Pe(f); return i = i === n ? i : nt(i), st(t, i); } - function Rm(t, i) { + function xm(t, i) { if (typeof t != "function") - throw new Me(f); + throw new Pe(f); return i = i == null ? 0 : Wt(nt(i), 0), st(function(o) { - var c = o[i], h = kn(o, 0, i); - return c && $n(h, c), Ce(t, this, h); + var c = o[i], h = Un(o, 0, i); + return c && Ln(h, c), Ce(t, this, h); }); } - function Om(t, i, o) { + function Sm(t, i, o) { var c = !0, h = !0; if (typeof t != "function") - throw new Me(f); - return Rt(o) && (c = "leading" in o ? !!o.leading : c, h = "trailing" in o ? !!o.trailing : h), Of(t, i, { + throw new Pe(f); + return It(o) && (c = "leading" in o ? !!o.leading : c, h = "trailing" in o ? !!o.trailing : h), xf(t, i, { leading: c, maxWait: i, trailing: h }); } - function Tm(t) { - return Af(t, 1); + function Rm(t) { + return bf(t, 1); } - function Lm(t, i) { - return Ca(oa(i), t); + function Im(t, i) { + return wa(ra(i), t); } - function $m() { + function Om() { if (!arguments.length) return []; var t = arguments[0]; return tt(t) ? t : [t]; } - function Pm(t) { - return Ue(t, C); + function Tm(t) { + return Me(t, C); } - function Fm(t, i) { - return i = typeof i == "function" ? i : n, Ue(t, C, i); + function Lm(t, i) { + return i = typeof i == "function" ? i : n, Me(t, C, i); } - function Mm(t) { - return Ue(t, m | C); + function $m(t) { + return Me(t, m | C); } - function Dm(t, i) { - return i = typeof i == "function" ? i : n, Ue(t, m | C, i); + function Pm(t, i) { + return i = typeof i == "function" ? i : n, Me(t, m | C, i); } - function Um(t, i) { - return i == null || vc(t, i, jt(i)); + function Fm(t, i) { + return i == null || hc(t, i, Gt(i)); } - function Ke(t, i) { + function je(t, i) { return t === i || t !== t && i !== i; } - var km = ds(Jo), Nm = ds(function(t, i) { + var Mm = ds(jo), Dm = ds(function(t, i) { return t >= i; - }), or = Cc(function() { + }), or = yc(function() { return arguments; - }()) ? Cc : function(t) { - return Lt(t) && vt.call(t, "callee") && !uc.call(t, "callee"); - }, tt = S.isArray, qm = Hu ? Ee(Hu) : Jg; + }()) ? yc : function(t) { + return Tt(t) && vt.call(t, "callee") && !ic.call(t, "callee"); + }, tt = S.isArray, Um = Nu ? Ee(Nu) : jg; function de(t) { - return t != null && Cs(t.length) && !bn(t); + return t != null && Cs(t.length) && !wn(t); } - function Ft(t) { - return Lt(t) && de(t); + function Pt(t) { + return Tt(t) && de(t); } - function Wm(t) { - return t === !0 || t === !1 || Lt(t) && ce(t) == fn; + function km(t) { + return t === !0 || t === !1 || Tt(t) && ce(t) == cn; } - var Nn = eg || Pa, Bm = Gu ? Ee(Gu) : Xg; - function Hm(t) { - return Lt(t) && t.nodeType === 1 && !pi(t); + var kn = Zp || Ta, Nm = qu ? Ee(qu) : zg; + function qm(t) { + return Tt(t) && t.nodeType === 1 && !pi(t); } - function Gm(t) { + function Wm(t) { if (t == null) return !0; - if (de(t) && (tt(t) || typeof t == "string" || typeof t.splice == "function" || Nn(t) || Fr(t) || or(t))) + if (de(t) && (tt(t) || typeof t == "string" || typeof t.splice == "function" || kn(t) || Pr(t) || or(t))) return !t.length; var i = re(t); if (i == ye || i == G) return !t.size; if (hi(t)) - return !Yo(t).length; + return !Jo(t).length; for (var o in t) if (vt.call(t, o)) return !1; return !0; } - function jm(t, i) { + function Bm(t, i) { return ci(t, i); } - function zm(t, i, o) { + function Hm(t, i, o) { o = typeof o == "function" ? o : n; var c = o ? o(t, i) : n; return c === n ? ci(t, i, n, o) : !!c; } - function Ea(t) { - if (!Lt(t)) + function ba(t) { + if (!Tt(t)) return !1; var i = ce(t); - return i == ee || i == Sn || typeof t.message == "string" && typeof t.name == "string" && !pi(t); + return i == ee || i == xn || typeof t.message == "string" && typeof t.name == "string" && !pi(t); } - function Km(t) { - return typeof t == "number" && fc(t); + function Gm(t) { + return typeof t == "number" && oc(t); } - function bn(t) { - if (!Rt(t)) + function wn(t) { + if (!It(t)) return !1; var i = ce(t); - return i == _r || i == Pi || i == Eo || i == N; + return i == br || i == Pi || i == bo || i == N; } - function Lf(t) { + function Rf(t) { return typeof t == "number" && t == nt(t); } function Cs(t) { return typeof t == "number" && t > -1 && t % 1 == 0 && t <= se; } - function Rt(t) { + function It(t) { var i = typeof t; return t != null && (i == "object" || i == "function"); } - function Lt(t) { + function Tt(t) { return t != null && typeof t == "object"; } - var $f = ju ? Ee(ju) : Yg; - function Jm(t, i) { - return t === i || Vo(t, i, da(i)); + var If = Wu ? Ee(Wu) : Jg; + function jm(t, i) { + return t === i || Ko(t, i, fa(i)); } - function Xm(t, i, o) { - return o = typeof o == "function" ? o : n, Vo(t, i, da(i), o); + function zm(t, i, o) { + return o = typeof o == "function" ? o : n, Ko(t, i, fa(i), o); } - function Vm(t) { - return Pf(t) && t != +t; + function Km(t) { + return Of(t) && t != +t; } - function Ym(t) { - if (F0(t)) + function Jm(t) { + if (L0(t)) throw new Z(u); - return Ec(t); + return wc(t); } - function Zm(t) { + function Xm(t) { return t === null; } - function Qm(t) { + function Ym(t) { return t == null; } - function Pf(t) { - return typeof t == "number" || Lt(t) && ce(t) == In; + function Of(t) { + return typeof t == "number" || Tt(t) && ce(t) == Sn; } function pi(t) { - if (!Lt(t) || ce(t) != k) + if (!Tt(t) || ce(t) != k) return !1; var i = Xi(t); if (i === null) return !0; var o = vt.call(i, "constructor") && i.constructor; - return typeof o == "function" && o instanceof o && ji.call(o) == Xp; + return typeof o == "function" && o instanceof o && ji.call(o) == zp; } - var Aa = zu ? Ee(zu) : Zg; - function ty(t) { - return Lf(t) && t >= -se && t <= se; + var _a = Bu ? Ee(Bu) : Xg; + function Vm(t) { + return Rf(t) && t >= -se && t <= se; } - var Ff = Ku ? Ee(Ku) : Qg; + var Tf = Hu ? Ee(Hu) : Yg; function Es(t) { - return typeof t == "string" || !tt(t) && Lt(t) && ce(t) == Q; + return typeof t == "string" || !tt(t) && Tt(t) && ce(t) == Q; } function xe(t) { - return typeof t == "symbol" || Lt(t) && ce(t) == mt; + return typeof t == "symbol" || Tt(t) && ce(t) == mt; } - var Fr = Ju ? Ee(Ju) : t0; - function ey(t) { + var Pr = Gu ? Ee(Gu) : Vg; + function Zm(t) { return t === n; } - function ny(t) { - return Lt(t) && re(t) == ft; + function Qm(t) { + return Tt(t) && re(t) == ft; } - function ry(t) { - return Lt(t) && ce(t) == yt; + function ty(t) { + return Tt(t) && ce(t) == yt; } - var iy = ds(Zo), sy = ds(function(t, i) { + var ey = ds(Xo), ny = ds(function(t, i) { return t <= i; }); - function Mf(t) { + function Lf(t) { if (!t) return []; if (de(t)) - return Es(t) ? je(t) : he(t); + return Es(t) ? He(t) : he(t); if (ei && t[ei]) - return Up(t[ei]()); - var i = re(t), o = i == ye ? No : i == G ? Bi : Mr; + return Fp(t[ei]()); + var i = re(t), o = i == ye ? Do : i == G ? Bi : Fr; return o(t); } - function _n(t) { + function bn(t) { if (!t) return t === 0 ? t : 0; - if (t = qe(t), t === te || t === -te) { + if (t = ke(t), t === te || t === -te) { var i = t < 0 ? -1 : 1; - return i * Vn; + return i * Yn; } return t === t ? t : 0; } function nt(t) { - var i = _n(t), o = i % 1; + var i = bn(t), o = i % 1; return i === i ? o ? i - o : i : 0; } - function Df(t) { + function $f(t) { return t ? nr(nt(t), 0, kt) : 0; } - function qe(t) { + function ke(t) { if (typeof t == "number") return t; if (xe(t)) - return An; - if (Rt(t)) { + return En; + if (It(t)) { var i = typeof t.valueOf == "function" ? t.valueOf() : t; - t = Rt(i) ? i + "" : i; + t = It(i) ? i + "" : i; } if (typeof t != "string") return t === 0 ? t : +t; - t = tc(t); - var o = qd.test(t); - return o || Bd.test(t) ? bp(t.slice(2), o ? 2 : 8) : Nd.test(t) ? An : +t; + t = Yu(t); + var o = Ud.test(t); + return o || Nd.test(t) ? mp(t.slice(2), o ? 2 : 8) : Dd.test(t) ? En : +t; } - function Uf(t) { - return rn(t, pe(t)); + function Pf(t) { + return nn(t, pe(t)); } - function oy(t) { + function ry(t) { return t ? nr(nt(t), -se, se) : t === 0 ? t : 0; } function gt(t) { return t == null ? "" : Ae(t); } - var ay = Lr(function(t, i) { + var iy = Tr(function(t, i) { if (hi(i) || de(i)) { - rn(i, jt(i), t); + nn(i, Gt(i), t); return; } for (var o in i) vt.call(i, o) && oi(t, o, i[o]); - }), kf = Lr(function(t, i) { - rn(i, pe(i), t); - }), As = Lr(function(t, i, o, c) { - rn(i, pe(i), t, c); - }), uy = Lr(function(t, i, o, c) { - rn(i, jt(i), t, c); - }), cy = yn(jo); - function fy(t, i) { - var o = Tr(t); - return i == null ? o : gc(o, i); - } - var ly = st(function(t, i) { + }), Ff = Tr(function(t, i) { + nn(i, pe(i), t); + }), As = Tr(function(t, i, o, c) { + nn(i, pe(i), t, c); + }), sy = Tr(function(t, i, o, c) { + nn(i, Gt(i), t, c); + }), oy = mn(Bo); + function ay(t, i) { + var o = Or(t); + return i == null ? o : lc(o, i); + } + var uy = st(function(t, i) { t = wt(t); var o = -1, c = i.length, h = c > 2 ? i[2] : n; for (h && fe(i[0], i[1], h) && (c = 1); ++o < c; ) for (var v = i[o], w = pe(v), _ = -1, A = w.length; ++_ < A; ) { var $ = w[_], P = t[$]; - (P === n || Ke(P, Ir[$]) && !vt.call(t, $)) && (t[$] = v[$]); + (P === n || je(P, Sr[$]) && !vt.call(t, $)) && (t[$] = v[$]); } return t; - }), hy = st(function(t) { - return t.push(n, tf), Ce(Nf, n, t); + }), cy = st(function(t) { + return t.push(n, Yc), Ce(Mf, n, t); }); - function dy(t, i) { - return Vu(t, K(i, 3), nn); + function fy(t, i) { + return zu(t, K(i, 3), en); } - function py(t, i) { - return Vu(t, K(i, 3), Ko); + function ly(t, i) { + return zu(t, K(i, 3), Go); } - function gy(t, i) { - return t == null ? t : zo(t, K(i, 3), pe); + function hy(t, i) { + return t == null ? t : Ho(t, K(i, 3), pe); } - function vy(t, i) { - return t == null ? t : bc(t, K(i, 3), pe); + function dy(t, i) { + return t == null ? t : vc(t, K(i, 3), pe); } - function my(t, i) { - return t && nn(t, K(i, 3)); + function py(t, i) { + return t && en(t, K(i, 3)); } - function yy(t, i) { - return t && Ko(t, K(i, 3)); + function gy(t, i) { + return t && Go(t, K(i, 3)); } - function wy(t) { - return t == null ? [] : ss(t, jt(t)); + function vy(t) { + return t == null ? [] : ss(t, Gt(t)); } - function by(t) { + function my(t) { return t == null ? [] : ss(t, pe(t)); } - function xa(t, i, o) { + function Ca(t, i, o) { var c = t == null ? n : rr(t, i); return c === n ? o : c; } - function _y(t, i) { - return t != null && rf(t, i, Gg); + function yy(t, i) { + return t != null && Qc(t, i, Wg); } - function Sa(t, i) { - return t != null && rf(t, i, jg); + function Ea(t, i) { + return t != null && Qc(t, i, Bg); } - var Cy = Xc(function(t, i, o) { + var wy = jc(function(t, i, o) { i != null && typeof i.toString != "function" && (i = zi.call(i)), t[i] = o; - }, Ra(ge)), Ey = Xc(function(t, i, o) { + }, xa(ge)), by = jc(function(t, i, o) { i != null && typeof i.toString != "function" && (i = zi.call(i)), vt.call(t, i) ? t[i].push(o) : t[i] = [o]; - }, K), Ay = st(ui); - function jt(t) { - return de(t) ? dc(t) : Yo(t); + }, K), _y = st(ui); + function Gt(t) { + return de(t) ? cc(t) : Jo(t); } function pe(t) { - return de(t) ? dc(t, !0) : e0(t); + return de(t) ? cc(t, !0) : Zg(t); } - function xy(t, i) { + function Cy(t, i) { var o = {}; - return i = K(i, 3), nn(t, function(c, h, v) { - vn(o, i(c, h, v), c); + return i = K(i, 3), en(t, function(c, h, v) { + gn(o, i(c, h, v), c); }), o; } - function Sy(t, i) { + function Ey(t, i) { var o = {}; - return i = K(i, 3), nn(t, function(c, h, v) { - vn(o, h, i(c, h, v)); + return i = K(i, 3), en(t, function(c, h, v) { + gn(o, h, i(c, h, v)); }), o; } - var Iy = Lr(function(t, i, o) { + var Ay = Tr(function(t, i, o) { os(t, i, o); - }), Nf = Lr(function(t, i, o, c) { + }), Mf = Tr(function(t, i, o, c) { os(t, i, o, c); - }), Ry = yn(function(t, i) { + }), xy = mn(function(t, i) { var o = {}; if (t == null) return o; var c = !1; i = St(i, function(v) { - return v = Un(v, t), c || (c = v.length > 1), v; - }), rn(t, la(t), o), c && (o = Ue(o, m | b | C, C0)); + return v = Dn(v, t), c || (c = v.length > 1), v; + }), nn(t, ua(t), o), c && (o = Me(o, m | b | C, w0)); for (var h = i.length; h--; ) - ra(o, i[h]); + ta(o, i[h]); return o; }); - function Oy(t, i) { - return qf(t, _s(K(i))); + function Sy(t, i) { + return Df(t, _s(K(i))); } - var Ty = yn(function(t, i) { - return t == null ? {} : r0(t, i); + var Ry = mn(function(t, i) { + return t == null ? {} : t0(t, i); }); - function qf(t, i) { + function Df(t, i) { if (t == null) return {}; - var o = St(la(t), function(c) { + var o = St(ua(t), function(c) { return [c]; }); - return i = K(i), Tc(t, o, function(c, h) { + return i = K(i), Sc(t, o, function(c, h) { return i(c, h[0]); }); } - function Ly(t, i, o) { - i = Un(i, t); + function Iy(t, i, o) { + i = Dn(i, t); var c = -1, h = i.length; for (h || (h = 1, t = n); ++c < h; ) { - var v = t == null ? n : t[sn(i[c])]; - v === n && (c = h, v = o), t = bn(v) ? v.call(t) : v; + var v = t == null ? n : t[rn(i[c])]; + v === n && (c = h, v = o), t = wn(v) ? v.call(t) : v; } return t; } - function $y(t, i, o) { + function Oy(t, i, o) { return t == null ? t : fi(t, i, o); } - function Py(t, i, o, c) { + function Ty(t, i, o, c) { return c = typeof c == "function" ? c : n, t == null ? t : fi(t, i, o, c); } - var Wf = Zc(jt), Bf = Zc(pe); - function Fy(t, i, o) { - var c = tt(t), h = c || Nn(t) || Fr(t); + var Uf = Jc(Gt), kf = Jc(pe); + function Ly(t, i, o) { + var c = tt(t), h = c || kn(t) || Pr(t); if (i = K(i, 4), o == null) { var v = t && t.constructor; - h ? o = c ? new v() : [] : Rt(t) ? o = bn(v) ? Tr(Xi(t)) : {} : o = {}; + h ? o = c ? new v() : [] : It(t) ? o = wn(v) ? Or(Xi(t)) : {} : o = {}; } - return (h ? Fe : nn)(t, function(w, _, A) { + return (h ? $e : en)(t, function(w, _, A) { return i(o, w, _, A); }), o; } - function My(t, i) { - return t == null ? !0 : ra(t, i); + function $y(t, i) { + return t == null ? !0 : ta(t, i); } - function Dy(t, i, o) { - return t == null ? t : Mc(t, i, oa(o)); + function Py(t, i, o) { + return t == null ? t : Lc(t, i, ra(o)); } - function Uy(t, i, o, c) { - return c = typeof c == "function" ? c : n, t == null ? t : Mc(t, i, oa(o), c); + function Fy(t, i, o, c) { + return c = typeof c == "function" ? c : n, t == null ? t : Lc(t, i, ra(o), c); } - function Mr(t) { - return t == null ? [] : ko(t, jt(t)); + function Fr(t) { + return t == null ? [] : Mo(t, Gt(t)); } - function ky(t) { - return t == null ? [] : ko(t, pe(t)); + function My(t) { + return t == null ? [] : Mo(t, pe(t)); } - function Ny(t, i, o) { - return o === n && (o = i, i = n), o !== n && (o = qe(o), o = o === o ? o : 0), i !== n && (i = qe(i), i = i === i ? i : 0), nr(qe(t), i, o); + function Dy(t, i, o) { + return o === n && (o = i, i = n), o !== n && (o = ke(o), o = o === o ? o : 0), i !== n && (i = ke(i), i = i === i ? i : 0), nr(ke(t), i, o); } - function qy(t, i, o) { - return i = _n(i), o === n ? (o = i, i = 0) : o = _n(o), t = qe(t), zg(t, i, o); + function Uy(t, i, o) { + return i = bn(i), o === n ? (o = i, i = 0) : o = bn(o), t = ke(t), Hg(t, i, o); } - function Wy(t, i, o) { - if (o && typeof o != "boolean" && fe(t, i, o) && (i = o = n), o === n && (typeof i == "boolean" ? (o = i, i = n) : typeof t == "boolean" && (o = t, t = n)), t === n && i === n ? (t = 0, i = 1) : (t = _n(t), i === n ? (i = t, t = 0) : i = _n(i)), t > i) { + function ky(t, i, o) { + if (o && typeof o != "boolean" && fe(t, i, o) && (i = o = n), o === n && (typeof i == "boolean" ? (o = i, i = n) : typeof t == "boolean" && (o = t, t = n)), t === n && i === n ? (t = 0, i = 1) : (t = bn(t), i === n ? (i = t, t = 0) : i = bn(i)), t > i) { var c = t; t = i, i = c; } if (o || t % 1 || i % 1) { - var h = lc(); - return ne(t + h * (i - t + wp("1e-" + ((h + "").length - 1))), i); + var h = ac(); + return ne(t + h * (i - t + vp("1e-" + ((h + "").length - 1))), i); } - return ta(t, i); + return Vo(t, i); } - var By = $r(function(t, i, o) { - return i = i.toLowerCase(), t + (o ? Hf(i) : i); + var Ny = Lr(function(t, i, o) { + return i = i.toLowerCase(), t + (o ? Nf(i) : i); }); - function Hf(t) { - return Ia(gt(t).toLowerCase()); + function Nf(t) { + return Aa(gt(t).toLowerCase()); } - function Gf(t) { - return t = gt(t), t && t.replace(Gd, $p).replace(cp, ""); + function qf(t) { + return t = gt(t), t && t.replace(Wd, Op).replace(op, ""); } - function Hy(t, i, o) { + function qy(t, i, o) { t = gt(t), i = Ae(i); var c = t.length; o = o === n ? c : nr(nt(o), 0, c); var h = o; return o -= i.length, o >= 0 && t.slice(o, h) == i; } - function Gy(t) { - return t = gt(t), t && Qr.test(t) ? t.replace(Mi, Pp) : t; + function Wy(t) { + return t = gt(t), t && Qr.test(t) ? t.replace(Mi, Tp) : t; } - function jy(t) { - return t = gt(t), t && Ge.test(t) ? t.replace(Pt, "\\$&") : t; + function By(t) { + return t = gt(t), t && Be.test(t) ? t.replace($t, "\\$&") : t; } - var zy = $r(function(t, i, o) { + var Hy = Lr(function(t, i, o) { return t + (o ? "-" : "") + i.toLowerCase(); - }), Ky = $r(function(t, i, o) { + }), Gy = Lr(function(t, i, o) { return t + (o ? " " : "") + i.toLowerCase(); - }), Jy = zc("toLowerCase"); - function Xy(t, i, o) { + }), jy = Bc("toLowerCase"); + function zy(t, i, o) { t = gt(t), i = nt(i); - var c = i ? xr(t) : 0; + var c = i ? Ar(t) : 0; if (!i || c >= i) return t; var h = (i - c) / 2; return hs(Qi(h), o) + t + hs(Zi(h), o); } - function Vy(t, i, o) { + function Ky(t, i, o) { t = gt(t), i = nt(i); - var c = i ? xr(t) : 0; + var c = i ? Ar(t) : 0; return i && c < i ? t + hs(i - c, o) : t; } - function Yy(t, i, o) { + function Jy(t, i, o) { t = gt(t), i = nt(i); - var c = i ? xr(t) : 0; + var c = i ? Ar(t) : 0; return i && c < i ? hs(i - c, o) + t : t; } - function Zy(t, i, o) { - return o || i == null ? i = 0 : i && (i = +i), sg(gt(t).replace(_e, ""), i || 0); + function Xy(t, i, o) { + return o || i == null ? i = 0 : i && (i = +i), ng(gt(t).replace(_e, ""), i || 0); } - function Qy(t, i, o) { - return (o ? fe(t, i, o) : i === n) ? i = 1 : i = nt(i), ea(gt(t), i); + function Yy(t, i, o) { + return (o ? fe(t, i, o) : i === n) ? i = 1 : i = nt(i), Zo(gt(t), i); } - function tw() { + function Vy() { var t = arguments, i = gt(t[0]); return t.length < 3 ? i : i.replace(t[1], t[2]); } - var ew = $r(function(t, i, o) { + var Zy = Lr(function(t, i, o) { return t + (o ? "_" : "") + i.toLowerCase(); }); - function nw(t, i, o) { - return o && typeof o != "number" && fe(t, i, o) && (i = o = n), o = o === n ? kt : o >>> 0, o ? (t = gt(t), t && (typeof i == "string" || i != null && !Aa(i)) && (i = Ae(i), !i && Ar(t)) ? kn(je(t), 0, o) : t.split(i, o)) : []; + function Qy(t, i, o) { + return o && typeof o != "number" && fe(t, i, o) && (i = o = n), o = o === n ? kt : o >>> 0, o ? (t = gt(t), t && (typeof i == "string" || i != null && !_a(i)) && (i = Ae(i), !i && Er(t)) ? Un(He(t), 0, o) : t.split(i, o)) : []; } - var rw = $r(function(t, i, o) { - return t + (o ? " " : "") + Ia(i); + var tw = Lr(function(t, i, o) { + return t + (o ? " " : "") + Aa(i); }); - function iw(t, i, o) { + function ew(t, i, o) { return t = gt(t), o = o == null ? 0 : nr(nt(o), 0, t.length), i = Ae(i), t.slice(o, o + i.length) == i; } - function sw(t, i, o) { + function nw(t, i, o) { var c = g.templateSettings; - o && fe(t, i, o) && (i = n), t = gt(t), i = As({}, i, c, Qc); - var h = As({}, i.imports, c.imports, Qc), v = jt(h), w = ko(h, v), _, A, $ = 0, P = i.interpolate || Ui, F = "__p += '", q = qo( - (i.escape || Ui).source + "|" + P.source + "|" + (P === Tt ? kd : Ui).source + "|" + (i.evaluate || Ui).source + "|$", + o && fe(t, i, o) && (i = n), t = gt(t), i = As({}, i, c, Xc); + var h = As({}, i.imports, c.imports, Xc), v = Gt(h), w = Mo(h, v), _, A, $ = 0, P = i.interpolate || Ui, F = "__p += '", q = Uo( + (i.escape || Ui).source + "|" + P.source + "|" + (P === Ot ? Md : Ui).source + "|" + (i.evaluate || Ui).source + "|$", "g" - ), j = "//# sourceURL=" + (vt.call(i, "sourceURL") ? (i.sourceURL + "").replace(/\s/g, " ") : "lodash.templateSources[" + ++pp + "]") + ` + ), j = "//# sourceURL=" + (vt.call(i, "sourceURL") ? (i.sourceURL + "").replace(/\s/g, " ") : "lodash.templateSources[" + ++lp + "]") + ` `; - t.replace(q, function(X, ot, lt, Se, le, Ie) { - return lt || (lt = Se), F += t.slice($, Ie).replace(jd, Fp), ot && (_ = !0, F += `' + + t.replace(q, function(X, ot, lt, Se, le, Re) { + return lt || (lt = Se), F += t.slice($, Re).replace(Bd, Lp), ot && (_ = !0, F += `' + __e(` + ot + `) + '`), le && (A = !0, F += `'; ` + le + `; __p += '`), lt && (F += `' + ((__t = (` + lt + `)) == null ? '' : __t) + -'`), $ = Ie + X.length, X; +'`), $ = Re + X.length, X; }), F += `'; `; var J = vt.call(i, "variable") && i.variable; @@ -7154,76 +7045,76 @@ __p += '`), lt && (F += `' + ` + F + ` } `; - else if (Dd.test(J)) + else if (Pd.test(J)) throw new Z(l); - F = (A ? F.replace(Jt, "") : F).replace(Zr, "$1").replace(dn, "$1;"), F = "function(" + (J || "obj") + `) { + F = (A ? F.replace(Jt, "") : F).replace(Zr, "$1").replace(hn, "$1;"), F = "function(" + (J || "obj") + `) { ` + (J ? "" : `obj || (obj = {}); `) + "var __t, __p = ''" + (_ ? ", __e = _.escape" : "") + (A ? `, __j = Array.prototype.join; function print() { __p += __j.call(arguments, '') } ` : `; `) + F + `return __p }`; - var rt = zf(function() { + var rt = Bf(function() { return dt(v, j + "return " + F).apply(n, w); }); - if (rt.source = F, Ea(rt)) + if (rt.source = F, ba(rt)) throw rt; return rt; } - function ow(t) { + function rw(t) { return gt(t).toLowerCase(); } - function aw(t) { + function iw(t) { return gt(t).toUpperCase(); } - function uw(t, i, o) { + function sw(t, i, o) { if (t = gt(t), t && (o || i === n)) - return tc(t); + return Yu(t); if (!t || !(i = Ae(i))) return t; - var c = je(t), h = je(i), v = ec(c, h), w = nc(c, h) + 1; - return kn(c, v, w).join(""); + var c = He(t), h = He(i), v = Vu(c, h), w = Zu(c, h) + 1; + return Un(c, v, w).join(""); } - function cw(t, i, o) { + function ow(t, i, o) { if (t = gt(t), t && (o || i === n)) - return t.slice(0, ic(t) + 1); + return t.slice(0, tc(t) + 1); if (!t || !(i = Ae(i))) return t; - var c = je(t), h = nc(c, je(i)) + 1; - return kn(c, 0, h).join(""); + var c = He(t), h = Zu(c, He(i)) + 1; + return Un(c, 0, h).join(""); } - function fw(t, i, o) { + function aw(t, i, o) { if (t = gt(t), t && (o || i === n)) return t.replace(_e, ""); if (!t || !(i = Ae(i))) return t; - var c = je(t), h = ec(c, je(i)); - return kn(c, h).join(""); + var c = He(t), h = Vu(c, He(i)); + return Un(c, h).join(""); } - function lw(t, i) { - var o = Be, c = cn; - if (Rt(i)) { + function uw(t, i) { + var o = qe, c = un; + if (It(i)) { var h = "separator" in i ? i.separator : h; o = "length" in i ? nt(i.length) : o, c = "omission" in i ? Ae(i.omission) : c; } t = gt(t); var v = t.length; - if (Ar(t)) { - var w = je(t); + if (Er(t)) { + var w = He(t); v = w.length; } if (o >= v) return t; - var _ = o - xr(c); + var _ = o - Ar(c); if (_ < 1) return c; - var A = w ? kn(w, 0, _).join("") : t.slice(0, _); + var A = w ? Un(w, 0, _).join("") : t.slice(0, _); if (h === n) return A + c; - if (w && (_ += A.length - _), Aa(h)) { + if (w && (_ += A.length - _), _a(h)) { if (t.slice(_).search(h)) { var $, P = A; - for (h.global || (h = qo(h.source, gt(Cu.exec(h)) + "g")), h.lastIndex = 0; $ = h.exec(P); ) + for (h.global || (h = Uo(h.source, gt(yu.exec(h)) + "g")), h.lastIndex = 0; $ = h.exec(P); ) var F = $.index; A = A.slice(0, F === n ? _ : F); } @@ -7233,31 +7124,31 @@ function print() { __p += __j.call(arguments, '') } } return A + c; } - function hw(t) { - return t = gt(t), t && Di.test(t) ? t.replace(Fi, Wp) : t; + function cw(t) { + return t = gt(t), t && Di.test(t) ? t.replace(Fi, kp) : t; } - var dw = $r(function(t, i, o) { + var fw = Lr(function(t, i, o) { return t + (o ? " " : "") + i.toUpperCase(); - }), Ia = zc("toUpperCase"); - function jf(t, i, o) { - return t = gt(t), i = o ? n : i, i === n ? Dp(t) ? Gp(t) : Ip(t) : t.match(i) || []; + }), Aa = Bc("toUpperCase"); + function Wf(t, i, o) { + return t = gt(t), i = o ? n : i, i === n ? Pp(t) ? Wp(t) : Ap(t) : t.match(i) || []; } - var zf = st(function(t, i) { + var Bf = st(function(t, i) { try { return Ce(t, n, i); } catch (o) { - return Ea(o) ? o : new Z(o); + return ba(o) ? o : new Z(o); } - }), pw = yn(function(t, i) { - return Fe(i, function(o) { - o = sn(o), vn(t, o, _a(t[o], t)); + }), lw = mn(function(t, i) { + return $e(i, function(o) { + o = rn(o), gn(t, o, ya(t[o], t)); }), t; }); - function gw(t) { + function hw(t) { var i = t == null ? 0 : t.length, o = K(); return t = i ? St(t, function(c) { if (typeof c[1] != "function") - throw new Me(f); + throw new Pe(f); return [o(c[0]), c[1]]; }) : [], st(function(c) { for (var h = -1; ++h < i; ) { @@ -7267,44 +7158,44 @@ function print() { __p += __j.call(arguments, '') } } }); } - function vw(t) { - return Wg(Ue(t, m)); + function dw(t) { + return kg(Me(t, m)); } - function Ra(t) { + function xa(t) { return function() { return t; }; } - function mw(t, i) { + function pw(t, i) { return t == null || t !== t ? i : t; } - var yw = Jc(), ww = Jc(!0); + var gw = Gc(), vw = Gc(!0); function ge(t) { return t; } - function Oa(t) { - return Ac(typeof t == "function" ? t : Ue(t, m)); + function Sa(t) { + return bc(typeof t == "function" ? t : Me(t, m)); } - function bw(t) { - return Sc(Ue(t, m)); + function mw(t) { + return Cc(Me(t, m)); } - function _w(t, i) { - return Ic(t, Ue(i, m)); + function yw(t, i) { + return Ec(t, Me(i, m)); } - var Cw = st(function(t, i) { + var ww = st(function(t, i) { return function(o) { return ui(o, t, i); }; - }), Ew = st(function(t, i) { + }), bw = st(function(t, i) { return function(o) { return ui(t, o, i); }; }); - function Ta(t, i, o) { - var c = jt(i), h = ss(i, c); - o == null && !(Rt(i) && (h.length || !c.length)) && (o = i, i = t, t = this, h = ss(i, jt(i))); - var v = !(Rt(o) && "chain" in o) || !!o.chain, w = bn(t); - return Fe(h, function(_) { + function Ra(t, i, o) { + var c = Gt(i), h = ss(i, c); + o == null && !(It(i) && (h.length || !c.length)) && (o = i, i = t, t = this, h = ss(i, Gt(i))); + var v = !(It(o) && "chain" in o) || !!o.chain, w = wn(t); + return $e(h, function(_) { var A = i[_]; t[_] = A, w && (t.prototype[_] = function() { var $ = this.__chain__; @@ -7312,103 +7203,103 @@ function print() { __p += __j.call(arguments, '') } var P = t(this.__wrapped__), F = P.__actions__ = he(this.__actions__); return F.push({ func: A, args: arguments, thisArg: t }), P.__chain__ = $, P; } - return A.apply(t, $n([this.value()], arguments)); + return A.apply(t, Ln([this.value()], arguments)); }); }), t; } - function Aw() { - return Vt._ === this && (Vt._ = Vp), this; + function _w() { + return Yt._ === this && (Yt._ = Kp), this; } - function La() { + function Ia() { } - function xw(t) { + function Cw(t) { return t = nt(t), st(function(i) { - return Rc(i, t); + return Ac(i, t); }); } - var Sw = ua(St), Iw = ua(Xu), Rw = ua(Po); - function Kf(t) { - return ga(t) ? Fo(sn(t)) : i0(t); + var Ew = sa(St), Aw = sa(ju), xw = sa(To); + function Hf(t) { + return ha(t) ? Lo(rn(t)) : e0(t); } - function Ow(t) { + function Sw(t) { return function(i) { return t == null ? n : rr(t, i); }; } - var Tw = Vc(), Lw = Vc(!0); - function $a() { + var Rw = zc(), Iw = zc(!0); + function Oa() { return []; } - function Pa() { + function Ta() { return !1; } - function $w() { + function Ow() { return {}; } - function Pw() { + function Tw() { return ""; } - function Fw() { + function Lw() { return !0; } - function Mw(t, i) { + function $w(t, i) { if (t = nt(t), t < 1 || t > se) return []; var o = kt, c = ne(t, kt); i = K(i), t -= kt; - for (var h = Uo(c, i); ++o < t; ) + for (var h = Fo(c, i); ++o < t; ) i(o); return h; } - function Dw(t) { - return tt(t) ? St(t, sn) : xe(t) ? [t] : he(df(gt(t))); + function Pw(t) { + return tt(t) ? St(t, rn) : xe(t) ? [t] : he(cf(gt(t))); } - function Uw(t) { - var i = ++Jp; + function Fw(t) { + var i = ++jp; return gt(t) + i; } - var kw = ls(function(t, i) { + var Mw = ls(function(t, i) { return t + i; - }, 0), Nw = ca("ceil"), qw = ls(function(t, i) { + }, 0), Dw = oa("ceil"), Uw = ls(function(t, i) { return t / i; - }, 1), Ww = ca("floor"); - function Bw(t) { - return t && t.length ? is(t, ge, Jo) : n; + }, 1), kw = oa("floor"); + function Nw(t) { + return t && t.length ? is(t, ge, jo) : n; } - function Hw(t, i) { - return t && t.length ? is(t, K(i, 2), Jo) : n; + function qw(t, i) { + return t && t.length ? is(t, K(i, 2), jo) : n; } - function Gw(t) { - return Zu(t, ge); + function Ww(t) { + return Ju(t, ge); } - function jw(t, i) { - return Zu(t, K(i, 2)); + function Bw(t, i) { + return Ju(t, K(i, 2)); } - function zw(t) { - return t && t.length ? is(t, ge, Zo) : n; + function Hw(t) { + return t && t.length ? is(t, ge, Xo) : n; } - function Kw(t, i) { - return t && t.length ? is(t, K(i, 2), Zo) : n; + function Gw(t, i) { + return t && t.length ? is(t, K(i, 2), Xo) : n; } - var Jw = ls(function(t, i) { + var jw = ls(function(t, i) { return t * i; - }, 1), Xw = ca("round"), Vw = ls(function(t, i) { + }, 1), zw = oa("round"), Kw = ls(function(t, i) { return t - i; }, 0); - function Yw(t) { - return t && t.length ? Do(t, ge) : 0; + function Jw(t) { + return t && t.length ? Po(t, ge) : 0; } - function Zw(t, i) { - return t && t.length ? Do(t, K(i, 2)) : 0; + function Xw(t, i) { + return t && t.length ? Po(t, K(i, 2)) : 0; } - return g.after = bm, g.ary = Af, g.assign = ay, g.assignIn = kf, g.assignInWith = As, g.assignWith = uy, g.at = cy, g.before = xf, g.bind = _a, g.bindAll = pw, g.bindKey = Sf, g.castArray = $m, g.chain = _f, g.chunk = W0, g.compact = B0, g.concat = H0, g.cond = gw, g.conforms = vw, g.constant = Ra, g.countBy = Yv, g.create = fy, g.curry = If, g.curryRight = Rf, g.debounce = Of, g.defaults = ly, g.defaultsDeep = hy, g.defer = _m, g.delay = Cm, g.difference = G0, g.differenceBy = j0, g.differenceWith = z0, g.drop = K0, g.dropRight = J0, g.dropRightWhile = X0, g.dropWhile = V0, g.fill = Y0, g.filter = Qv, g.flatMap = nm, g.flatMapDeep = rm, g.flatMapDepth = im, g.flatten = mf, g.flattenDeep = Z0, g.flattenDepth = Q0, g.flip = Em, g.flow = yw, g.flowRight = ww, g.fromPairs = tv, g.functions = wy, g.functionsIn = by, g.groupBy = sm, g.initial = nv, g.intersection = rv, g.intersectionBy = iv, g.intersectionWith = sv, g.invert = Cy, g.invertBy = Ey, g.invokeMap = am, g.iteratee = Oa, g.keyBy = um, g.keys = jt, g.keysIn = pe, g.map = ys, g.mapKeys = xy, g.mapValues = Sy, g.matches = bw, g.matchesProperty = _w, g.memoize = bs, g.merge = Iy, g.mergeWith = Nf, g.method = Cw, g.methodOf = Ew, g.mixin = Ta, g.negate = _s, g.nthArg = xw, g.omit = Ry, g.omitBy = Oy, g.once = Am, g.orderBy = cm, g.over = Sw, g.overArgs = xm, g.overEvery = Iw, g.overSome = Rw, g.partial = Ca, g.partialRight = Tf, g.partition = fm, g.pick = Ty, g.pickBy = qf, g.property = Kf, g.propertyOf = Ow, g.pull = cv, g.pullAll = wf, g.pullAllBy = fv, g.pullAllWith = lv, g.pullAt = hv, g.range = Tw, g.rangeRight = Lw, g.rearg = Sm, g.reject = dm, g.remove = dv, g.rest = Im, g.reverse = wa, g.sampleSize = gm, g.set = $y, g.setWith = Py, g.shuffle = vm, g.slice = pv, g.sortBy = wm, g.sortedUniq = _v, g.sortedUniqBy = Cv, g.split = nw, g.spread = Rm, g.tail = Ev, g.take = Av, g.takeRight = xv, g.takeRightWhile = Sv, g.takeWhile = Iv, g.tap = Bv, g.throttle = Om, g.thru = ms, g.toArray = Mf, g.toPairs = Wf, g.toPairsIn = Bf, g.toPath = Dw, g.toPlainObject = Uf, g.transform = Fy, g.unary = Tm, g.union = Rv, g.unionBy = Ov, g.unionWith = Tv, g.uniq = Lv, g.uniqBy = $v, g.uniqWith = Pv, g.unset = My, g.unzip = ba, g.unzipWith = bf, g.update = Dy, g.updateWith = Uy, g.values = Mr, g.valuesIn = ky, g.without = Fv, g.words = jf, g.wrap = Lm, g.xor = Mv, g.xorBy = Dv, g.xorWith = Uv, g.zip = kv, g.zipObject = Nv, g.zipObjectDeep = qv, g.zipWith = Wv, g.entries = Wf, g.entriesIn = Bf, g.extend = kf, g.extendWith = As, Ta(g, g), g.add = kw, g.attempt = zf, g.camelCase = By, g.capitalize = Hf, g.ceil = Nw, g.clamp = Ny, g.clone = Pm, g.cloneDeep = Mm, g.cloneDeepWith = Dm, g.cloneWith = Fm, g.conformsTo = Um, g.deburr = Gf, g.defaultTo = mw, g.divide = qw, g.endsWith = Hy, g.eq = Ke, g.escape = Gy, g.escapeRegExp = jy, g.every = Zv, g.find = tm, g.findIndex = gf, g.findKey = dy, g.findLast = em, g.findLastIndex = vf, g.findLastKey = py, g.floor = Ww, g.forEach = Cf, g.forEachRight = Ef, g.forIn = gy, g.forInRight = vy, g.forOwn = my, g.forOwnRight = yy, g.get = xa, g.gt = km, g.gte = Nm, g.has = _y, g.hasIn = Sa, g.head = yf, g.identity = ge, g.includes = om, g.indexOf = ev, g.inRange = qy, g.invoke = Ay, g.isArguments = or, g.isArray = tt, g.isArrayBuffer = qm, g.isArrayLike = de, g.isArrayLikeObject = Ft, g.isBoolean = Wm, g.isBuffer = Nn, g.isDate = Bm, g.isElement = Hm, g.isEmpty = Gm, g.isEqual = jm, g.isEqualWith = zm, g.isError = Ea, g.isFinite = Km, g.isFunction = bn, g.isInteger = Lf, g.isLength = Cs, g.isMap = $f, g.isMatch = Jm, g.isMatchWith = Xm, g.isNaN = Vm, g.isNative = Ym, g.isNil = Qm, g.isNull = Zm, g.isNumber = Pf, g.isObject = Rt, g.isObjectLike = Lt, g.isPlainObject = pi, g.isRegExp = Aa, g.isSafeInteger = ty, g.isSet = Ff, g.isString = Es, g.isSymbol = xe, g.isTypedArray = Fr, g.isUndefined = ey, g.isWeakMap = ny, g.isWeakSet = ry, g.join = ov, g.kebabCase = zy, g.last = Ne, g.lastIndexOf = av, g.lowerCase = Ky, g.lowerFirst = Jy, g.lt = iy, g.lte = sy, g.max = Bw, g.maxBy = Hw, g.mean = Gw, g.meanBy = jw, g.min = zw, g.minBy = Kw, g.stubArray = $a, g.stubFalse = Pa, g.stubObject = $w, g.stubString = Pw, g.stubTrue = Fw, g.multiply = Jw, g.nth = uv, g.noConflict = Aw, g.noop = La, g.now = ws, g.pad = Xy, g.padEnd = Vy, g.padStart = Yy, g.parseInt = Zy, g.random = Wy, g.reduce = lm, g.reduceRight = hm, g.repeat = Qy, g.replace = tw, g.result = Ly, g.round = Xw, g.runInContext = E, g.sample = pm, g.size = mm, g.snakeCase = ew, g.some = ym, g.sortedIndex = gv, g.sortedIndexBy = vv, g.sortedIndexOf = mv, g.sortedLastIndex = yv, g.sortedLastIndexBy = wv, g.sortedLastIndexOf = bv, g.startCase = rw, g.startsWith = iw, g.subtract = Vw, g.sum = Yw, g.sumBy = Zw, g.template = sw, g.times = Mw, g.toFinite = _n, g.toInteger = nt, g.toLength = Df, g.toLower = ow, g.toNumber = qe, g.toSafeInteger = oy, g.toString = gt, g.toUpper = aw, g.trim = uw, g.trimEnd = cw, g.trimStart = fw, g.truncate = lw, g.unescape = hw, g.uniqueId = Uw, g.upperCase = dw, g.upperFirst = Ia, g.each = Cf, g.eachRight = Ef, g.first = yf, Ta(g, function() { + return g.after = mm, g.ary = bf, g.assign = iy, g.assignIn = Ff, g.assignInWith = As, g.assignWith = sy, g.at = oy, g.before = _f, g.bind = ya, g.bindAll = lw, g.bindKey = Cf, g.castArray = Om, g.chain = mf, g.chunk = k0, g.compact = N0, g.concat = q0, g.cond = hw, g.conforms = dw, g.constant = xa, g.countBy = Jv, g.create = ay, g.curry = Ef, g.curryRight = Af, g.debounce = xf, g.defaults = uy, g.defaultsDeep = cy, g.defer = ym, g.delay = wm, g.difference = W0, g.differenceBy = B0, g.differenceWith = H0, g.drop = G0, g.dropRight = j0, g.dropRightWhile = z0, g.dropWhile = K0, g.fill = J0, g.filter = Yv, g.flatMap = Qv, g.flatMapDeep = tm, g.flatMapDepth = em, g.flatten = df, g.flattenDeep = X0, g.flattenDepth = Y0, g.flip = bm, g.flow = gw, g.flowRight = vw, g.fromPairs = V0, g.functions = vy, g.functionsIn = my, g.groupBy = nm, g.initial = Q0, g.intersection = tv, g.intersectionBy = ev, g.intersectionWith = nv, g.invert = wy, g.invertBy = by, g.invokeMap = im, g.iteratee = Sa, g.keyBy = sm, g.keys = Gt, g.keysIn = pe, g.map = ys, g.mapKeys = Cy, g.mapValues = Ey, g.matches = mw, g.matchesProperty = yw, g.memoize = bs, g.merge = Ay, g.mergeWith = Mf, g.method = ww, g.methodOf = bw, g.mixin = Ra, g.negate = _s, g.nthArg = Cw, g.omit = xy, g.omitBy = Sy, g.once = _m, g.orderBy = om, g.over = Ew, g.overArgs = Cm, g.overEvery = Aw, g.overSome = xw, g.partial = wa, g.partialRight = Sf, g.partition = am, g.pick = Ry, g.pickBy = Df, g.property = Hf, g.propertyOf = Sw, g.pull = ov, g.pullAll = gf, g.pullAllBy = av, g.pullAllWith = uv, g.pullAt = cv, g.range = Rw, g.rangeRight = Iw, g.rearg = Em, g.reject = fm, g.remove = fv, g.rest = Am, g.reverse = va, g.sampleSize = hm, g.set = Oy, g.setWith = Ty, g.shuffle = dm, g.slice = lv, g.sortBy = vm, g.sortedUniq = yv, g.sortedUniqBy = wv, g.split = Qy, g.spread = xm, g.tail = bv, g.take = _v, g.takeRight = Cv, g.takeRightWhile = Ev, g.takeWhile = Av, g.tap = Nv, g.throttle = Sm, g.thru = ms, g.toArray = Lf, g.toPairs = Uf, g.toPairsIn = kf, g.toPath = Pw, g.toPlainObject = Pf, g.transform = Ly, g.unary = Rm, g.union = xv, g.unionBy = Sv, g.unionWith = Rv, g.uniq = Iv, g.uniqBy = Ov, g.uniqWith = Tv, g.unset = $y, g.unzip = ma, g.unzipWith = vf, g.update = Py, g.updateWith = Fy, g.values = Fr, g.valuesIn = My, g.without = Lv, g.words = Wf, g.wrap = Im, g.xor = $v, g.xorBy = Pv, g.xorWith = Fv, g.zip = Mv, g.zipObject = Dv, g.zipObjectDeep = Uv, g.zipWith = kv, g.entries = Uf, g.entriesIn = kf, g.extend = Ff, g.extendWith = As, Ra(g, g), g.add = Mw, g.attempt = Bf, g.camelCase = Ny, g.capitalize = Nf, g.ceil = Dw, g.clamp = Dy, g.clone = Tm, g.cloneDeep = $m, g.cloneDeepWith = Pm, g.cloneWith = Lm, g.conformsTo = Fm, g.deburr = qf, g.defaultTo = pw, g.divide = Uw, g.endsWith = qy, g.eq = je, g.escape = Wy, g.escapeRegExp = By, g.every = Xv, g.find = Vv, g.findIndex = lf, g.findKey = fy, g.findLast = Zv, g.findLastIndex = hf, g.findLastKey = ly, g.floor = kw, g.forEach = yf, g.forEachRight = wf, g.forIn = hy, g.forInRight = dy, g.forOwn = py, g.forOwnRight = gy, g.get = Ca, g.gt = Mm, g.gte = Dm, g.has = yy, g.hasIn = Ea, g.head = pf, g.identity = ge, g.includes = rm, g.indexOf = Z0, g.inRange = Uy, g.invoke = _y, g.isArguments = or, g.isArray = tt, g.isArrayBuffer = Um, g.isArrayLike = de, g.isArrayLikeObject = Pt, g.isBoolean = km, g.isBuffer = kn, g.isDate = Nm, g.isElement = qm, g.isEmpty = Wm, g.isEqual = Bm, g.isEqualWith = Hm, g.isError = ba, g.isFinite = Gm, g.isFunction = wn, g.isInteger = Rf, g.isLength = Cs, g.isMap = If, g.isMatch = jm, g.isMatchWith = zm, g.isNaN = Km, g.isNative = Jm, g.isNil = Ym, g.isNull = Xm, g.isNumber = Of, g.isObject = It, g.isObjectLike = Tt, g.isPlainObject = pi, g.isRegExp = _a, g.isSafeInteger = Vm, g.isSet = Tf, g.isString = Es, g.isSymbol = xe, g.isTypedArray = Pr, g.isUndefined = Zm, g.isWeakMap = Qm, g.isWeakSet = ty, g.join = rv, g.kebabCase = Hy, g.last = Ue, g.lastIndexOf = iv, g.lowerCase = Gy, g.lowerFirst = jy, g.lt = ey, g.lte = ny, g.max = Nw, g.maxBy = qw, g.mean = Ww, g.meanBy = Bw, g.min = Hw, g.minBy = Gw, g.stubArray = Oa, g.stubFalse = Ta, g.stubObject = Ow, g.stubString = Tw, g.stubTrue = Lw, g.multiply = jw, g.nth = sv, g.noConflict = _w, g.noop = Ia, g.now = ws, g.pad = zy, g.padEnd = Ky, g.padStart = Jy, g.parseInt = Xy, g.random = ky, g.reduce = um, g.reduceRight = cm, g.repeat = Yy, g.replace = Vy, g.result = Iy, g.round = zw, g.runInContext = E, g.sample = lm, g.size = pm, g.snakeCase = Zy, g.some = gm, g.sortedIndex = hv, g.sortedIndexBy = dv, g.sortedIndexOf = pv, g.sortedLastIndex = gv, g.sortedLastIndexBy = vv, g.sortedLastIndexOf = mv, g.startCase = tw, g.startsWith = ew, g.subtract = Kw, g.sum = Jw, g.sumBy = Xw, g.template = nw, g.times = $w, g.toFinite = bn, g.toInteger = nt, g.toLength = $f, g.toLower = rw, g.toNumber = ke, g.toSafeInteger = ry, g.toString = gt, g.toUpper = iw, g.trim = sw, g.trimEnd = ow, g.trimStart = aw, g.truncate = uw, g.unescape = cw, g.uniqueId = Fw, g.upperCase = fw, g.upperFirst = Aa, g.each = yf, g.eachRight = wf, g.first = pf, Ra(g, function() { var t = {}; - return nn(g, function(i, o) { + return en(g, function(i, o) { vt.call(g.prototype, o) || (t[o] = i); }), t; - }(), { chain: !1 }), g.VERSION = s, Fe(["bind", "bindKey", "curry", "curryRight", "partial", "partialRight"], function(t) { + }(), { chain: !1 }), g.VERSION = s, $e(["bind", "bindKey", "curry", "curryRight", "partial", "partialRight"], function(t) { g[t].placeholder = g; - }), Fe(["drop", "take"], function(t, i) { + }), $e(["drop", "take"], function(t, i) { ut.prototype[t] = function(o) { o = o === n ? 1 : Wt(nt(o), 0); var c = this.__filtered__ && !i ? new ut(this) : this.clone(); @@ -7419,8 +7310,8 @@ function print() { __p += __j.call(arguments, '') } }, ut.prototype[t + "Right"] = function(o) { return this.reverse()[t](o).reverse(); }; - }), Fe(["filter", "map", "takeWhile"], function(t, i) { - var o = i + 1, c = o == Qt || o == Vr; + }), $e(["filter", "map", "takeWhile"], function(t, i) { + var o = i + 1, c = o == Qt || o == Yr; ut.prototype[t] = function(h) { var v = this.clone(); return v.__iteratees__.push({ @@ -7428,12 +7319,12 @@ function print() { __p += __j.call(arguments, '') } type: o }), v.__filtered__ = v.__filtered__ || c, v; }; - }), Fe(["head", "last"], function(t, i) { + }), $e(["head", "last"], function(t, i) { var o = "take" + (i ? "Right" : ""); ut.prototype[t] = function() { return this[o](1).value()[0]; }; - }), Fe(["initial", "tail"], function(t, i) { + }), $e(["initial", "tail"], function(t, i) { var o = "drop" + (i ? "" : "Right"); ut.prototype[t] = function() { return this.__filtered__ ? new ut(this) : this[o](1); @@ -7458,11 +7349,11 @@ function print() { __p += __j.call(arguments, '') } return this.reverse().takeWhile(t).reverse(); }, ut.prototype.toArray = function() { return this.take(kt); - }, nn(ut.prototype, function(t, i) { + }, en(ut.prototype, function(t, i) { var o = /^(?:filter|find|map|reject)|While$/.test(i), c = /^(?:head|last)$/.test(i), h = g[c ? "take" + (i == "last" ? "Right" : "") : i], v = c || /^find/.test(i); h && (g.prototype[i] = function() { var w = this.__wrapped__, _ = c ? [1] : arguments, A = w instanceof ut, $ = _[0], P = A || tt(w), F = function(ot) { - var lt = h.apply(g, $n([ot], _)); + var lt = h.apply(g, Ln([ot], _)); return c && q ? lt[0] : lt; }; P && o && typeof $ == "function" && $.length != 1 && (A = P = !1); @@ -7470,11 +7361,11 @@ function print() { __p += __j.call(arguments, '') } if (!v && P) { w = rt ? w : new ut(this); var X = t.apply(w, _); - return X.__actions__.push({ func: ms, args: [F], thisArg: n }), new De(X, q); + return X.__actions__.push({ func: ms, args: [F], thisArg: n }), new Fe(X, q); } return J && rt ? t.apply(this, _) : (X = this.thru(F), J ? c ? X.value()[0] : X.value() : X); }); - }), Fe(["pop", "push", "shift", "sort", "splice", "unshift"], function(t) { + }), $e(["pop", "push", "shift", "sort", "splice", "unshift"], function(t) { var i = Hi[t], o = /^(?:push|sort|unshift)$/.test(t) ? "tap" : "thru", c = /^(?:pop|shift)$/.test(t); g.prototype[t] = function() { var h = arguments; @@ -7486,27 +7377,27 @@ function print() { __p += __j.call(arguments, '') } return i.apply(tt(w) ? w : [], h); }); }; - }), nn(ut.prototype, function(t, i) { + }), en(ut.prototype, function(t, i) { var o = g[i]; if (o) { var c = o.name + ""; - vt.call(Or, c) || (Or[c] = []), Or[c].push({ name: i, func: o }); + vt.call(Ir, c) || (Ir[c] = []), Ir[c].push({ name: i, func: o }); } - }), Or[fs(n, x).name] = [{ + }), Ir[fs(n, x).name] = [{ name: "wrapper", func: n - }], ut.prototype.clone = hg, ut.prototype.reverse = dg, ut.prototype.value = pg, g.prototype.at = Hv, g.prototype.chain = Gv, g.prototype.commit = jv, g.prototype.next = zv, g.prototype.plant = Jv, g.prototype.reverse = Xv, g.prototype.toJSON = g.prototype.valueOf = g.prototype.value = Vv, g.prototype.first = g.prototype.head, ei && (g.prototype[ei] = Kv), g; - }, Sr = jp(); - Zn ? ((Zn.exports = Sr)._ = Sr, Oo._ = Sr) : Vt._ = Sr; - }).call(qr); -})(po, po.exports); -var Xn = po.exports, iu = { exports: {} }, Wa, gl; -function uC() { - if (gl) - return Wa; - gl = 1; + }], ut.prototype.clone = cg, ut.prototype.reverse = fg, ut.prototype.value = lg, g.prototype.at = qv, g.prototype.chain = Wv, g.prototype.commit = Bv, g.prototype.next = Hv, g.prototype.plant = jv, g.prototype.reverse = zv, g.prototype.toJSON = g.prototype.valueOf = g.prototype.value = Kv, g.prototype.first = g.prototype.head, ei && (g.prototype[ei] = Gv), g; + }, xr = Bp(); + Zn ? ((Zn.exports = xr)._ = xr, So._ = xr) : Yt._ = xr; + }).call(Nr); +})(fo, fo.exports); +var Xn = fo.exports, eu = { exports: {} }, Ua, ll; +function Z_() { + if (ll) + return Ua; + ll = 1; var r = 1e3, e = r * 60, n = e * 60, s = n * 24, a = s * 7, u = s * 365.25; - Wa = function(p, m) { + Ua = function(p, m) { m = m || {}; var b = typeof p; if (b === "string" && p.length > 0) @@ -7578,13 +7469,13 @@ function uC() { return m >= s ? y(p, m, s, "day") : m >= n ? y(p, m, n, "hour") : m >= e ? y(p, m, e, "minute") : m >= r ? y(p, m, r, "second") : p + " ms"; } function y(p, m, b, C) { - var R = m >= b * 1.5; - return Math.round(p / b) + " " + C + (R ? "s" : ""); + var I = m >= b * 1.5; + return Math.round(p / b) + " " + C + (I ? "s" : ""); } - return Wa; + return Ua; } -function cC(r) { - n.debug = n, n.default = n, n.coerce = d, n.disable = u, n.enable = a, n.enabled = f, n.humanize = uC(), n.destroy = y, Object.keys(r).forEach((p) => { +function Q_(r) { + n.debug = n, n.default = n, n.coerce = d, n.disable = u, n.enable = a, n.enabled = f, n.humanize = Z_(), n.destroy = y, Object.keys(r).forEach((p) => { n[p] = r[p]; }), n.names = [], n.skips = [], n.formatters = {}; function e(p) { @@ -7595,31 +7486,31 @@ function cC(r) { } n.selectColor = e; function n(p) { - let m, b = null, C, R; - function O(...I) { + let m, b = null, C, I; + function O(...R) { if (!O.enabled) return; const x = O, D = Number(/* @__PURE__ */ new Date()), U = D - (m || D); - x.diff = U, x.prev = m, x.curr = D, m = D, I[0] = n.coerce(I[0]), typeof I[0] != "string" && I.unshift("%O"); + x.diff = U, x.prev = m, x.curr = D, m = D, R[0] = n.coerce(R[0]), typeof R[0] != "string" && R.unshift("%O"); let M = 0; - I[0] = I[0].replace(/%([a-zA-Z%])/g, (ht, _t) => { + R[0] = R[0].replace(/%([a-zA-Z%])/g, (ht, _t) => { if (ht === "%%") return "%"; M++; const xt = n.formatters[_t]; if (typeof xt == "function") { - const $e = I[M]; - ht = xt.call(x, $e), I.splice(M, 1), M--; + const Te = R[M]; + ht = xt.call(x, Te), R.splice(M, 1), M--; } return ht; - }), n.formatArgs.call(x, I), (x.log || n.log).apply(x, I); + }), n.formatArgs.call(x, R), (x.log || n.log).apply(x, R); } return O.namespace = p, O.useColors = n.useColors(), O.color = n.selectColor(p), O.extend = s, O.destroy = n.destroy, Object.defineProperty(O, "enabled", { enumerable: !0, configurable: !1, - get: () => b !== null ? b : (C !== n.namespaces && (C = n.namespaces, R = n.enabled(p)), R), - set: (I) => { - b = I; + get: () => b !== null ? b : (C !== n.namespaces && (C = n.namespaces, I = n.enabled(p)), I), + set: (R) => { + b = R; } }), typeof n.init == "function" && n.init(O), O; } @@ -7664,7 +7555,7 @@ function cC(r) { } return n.enable(n.load()), n; } -var fC = cC; +var tC = Q_; (function(r, e) { e.formatArgs = s, e.save = a, e.load = u, e.useColors = n, e.storage = f(), e.destroy = (() => { let d = !1; @@ -7788,7 +7679,7 @@ var fC = cC; } catch { } } - r.exports = fC(e); + r.exports = tC(e); const { formatters: l } = r.exports; l.j = function(d) { try { @@ -7797,10 +7688,10 @@ var fC = cC; return "[UnexpectedJSONParseError]: " + y.message; } }; -})(iu, iu.exports); -var lC = iu.exports; -const hC = /* @__PURE__ */ ld(lC), ct = hC("mutator-document"); -class on { +})(eu, eu.exports); +var eC = eu.exports; +const nC = /* @__PURE__ */ ud(eC), ct = nC("mutator-document"); +class sn { constructor(e, n) { W(this, "_value"); W(this, "path"); @@ -7820,7 +7711,7 @@ class on { return this._value.length; } getIndex(e) { - return Array.isArray(this._value) ? e >= this.length() ? null : new on(this._value[e], this.path.concat(e)) : !1; + return Array.isArray(this._value) ? e >= this.length() ? null : new sn(this._value[e], this.path.concat(e)) : !1; } // Object reader hasAttribute(e) { @@ -7832,11 +7723,11 @@ class on { getAttribute(e) { if (!gi(this._value)) throw new Error("getAttribute only applies to plain objects"); - return this.hasAttribute(e) ? new on(this._value[e], this.path.concat(e)) : null; + return this.hasAttribute(e) ? new sn(this._value[e], this.path.concat(e)) : null; } // Common writer, supported by all containers set(e) { - return e === this._value ? this : new on(e, this.path); + return e === this._value ? this : new sn(e, this.path); } // array writer interface setIndex(e, n) { @@ -7845,7 +7736,7 @@ class on { if (Object.is(n, this._value[e])) return this; const s = this._value.slice(); - return s[e] = n, new on(s, this.path); + return s[e] = n, new sn(s, this.path); } setIndexAccessor(e, n) { return this.setIndex(e, n.get()); @@ -7856,13 +7747,13 @@ class on { const n = this._value.length, s = []; for (let a = 0; a < n; a++) e.indexOf(a) === -1 && s.push(this._value[a]); - return new on(s, this.path); + return new sn(s, this.path); } insertItemsAt(e, n) { if (!Array.isArray(this._value)) throw new Error("insertItemsAt only applies to arrays"); let s; - return this._value.length === 0 && e === 0 ? s = n : s = this._value.slice(0, e).concat(n).concat(this._value.slice(e)), new on(s, this.path); + return this._value.length === 0 && e === 0 ? s = n : s = this._value.slice(0, e).concat(n).concat(this._value.slice(e)), new sn(s, this.path); } // Object writer interface setAttribute(e, n) { @@ -7871,7 +7762,7 @@ class on { if (Object.is(n, this._value[e])) return this; const s = Object.assign({}, this._value, { [e]: n }); - return new on(s, this.path); + return new sn(s, this.path); } setAttributeAccessor(e, n) { return this.setAttribute(e, n.get()); @@ -7880,7 +7771,7 @@ class on { if (!gi(this._value)) throw new Error("Unable to unset attribute of non-object container"); const n = Object.assign({}, this._value); - return delete n[e], new on(n, this.path); + return delete n[e], new sn(n, this.path); } } function gi(r) { @@ -7889,23 +7780,23 @@ function gi(r) { function Js(r) { return r !== null && typeof r == "object"; } -const dC = /^[a-z_$]+/; -function pC(r) { +const rC = /^[a-z_$]+/; +function iC(r) { let e = ""; return r.forEach((n, s) => { - e += gC(n, s === 0); + e += sC(n, s === 0); }), e; } -function gC(r, e) { +function sC(r, e) { if (typeof r == "number") return `[${r}]`; if (Js(r)) { const n = r; - return Object.keys(r).map((s) => vC(n[s]) ? `[${s}=="${n[s]}"]` : "").join(""); + return Object.keys(r).map((s) => oC(n[s]) ? `[${s}=="${n[s]}"]` : "").join(""); } - return typeof r == "string" && dC.test(r) ? e ? r : `.${r}` : `['${r}']`; + return typeof r == "string" && rC.test(r) ? e ? r : `.${r}` : `['${r}']`; } -function vC(r) { +function oC(r) { switch (typeof r) { case "number": case "string": @@ -7915,19 +7806,19 @@ function vC(r) { return !1; } } -function mC(r) { - const [e, n] = hd(r); +function aC(r) { + const [e, n] = cd(r); if (!e) throw new Error("Head cannot be null"); - return wC(e, n); + return cC(e, n); } -function hd(r) { +function cd(r) { if (r.type !== "path") return [r, null]; const e = r.nodes; return e.length === 0 ? [null, null] : e.length === 1 ? [e[0], null] : [e[0], { type: "path", nodes: e.slice(1) }]; } -function yC(r, e) { +function uC(r, e) { if (!r && !e) return null; const n = r ? r.nodes : [], s = e ? e.nodes : []; @@ -7936,16 +7827,16 @@ function yC(r, e) { nodes: n.concat(s) }; } -function wC(r, e) { +function cC(r, e) { return r.type !== "union" ? [[r, e]] : r.nodes.map((n) => { if (n.type === "path") { - const [s, a] = hd(n); - return [s, yC(a, e)]; + const [s, a] = cd(n); + return [s, uC(a, e)]; } return [n, e]; }); } -const bC = /[0-9]/, Ba = /^[a-zA-Z0-9_]$/, _C = /^[a-zA-Z_]$/, dd = { +const fC = /[0-9]/, ka = /^[a-zA-Z0-9_]$/, lC = /^[a-zA-Z_]$/, fd = { // NOTE: These are compared against in order of definition, // thus '==' must come before '=', '>=' before '>', etc. operator: ["..", ".", ",", ":", "?"], @@ -7953,8 +7844,8 @@ const bC = /[0-9]/, Ba = /^[a-zA-Z0-9_]$/, _C = /^[a-zA-Z_]$/, dd = { keyword: ["$", "@"], boolean: ["true", "false"], paren: ["[", "]"] -}, CC = Object.keys(dd); -class EC { +}, hC = Object.keys(fd); +class dC { constructor(e) { W(this, "source"); W(this, "i"); @@ -8010,9 +7901,9 @@ class EC { if (this.i + e.length > this.length) return null; if (e === this.source.slice(this.i, this.i + e.length)) { - if (e[0].match(Ba) && this.length > this.i + e.length) { + if (e[0].match(ka) && this.length > this.i + e.length) { const n = this.source[this.i + e.length]; - if (n && n.match(Ba)) + if (n && n.match(ka)) return null; } return this.i += e.length, e; @@ -8038,7 +7929,7 @@ class EC { } tokenizeIdentifier() { let e = !0; - const n = this.takeWhile((s) => e ? (e = !1, s.match(_C) ? s : null) : s.match(Ba) ? s : null); + const n = this.takeWhile((s) => e ? (e = !1, s.match(lC) ? s : null) : s.match(ka) ? s : null); return n !== null ? { type: "identifier", name: n @@ -8048,7 +7939,7 @@ class EC { const e = this.i; let n = !1, s = !1, a = !1; this.peek() === "-" && (a = !0, this.consume("-")); - const u = this.takeWhile((f) => f === "." && !n && s ? (n = !0, f) : (s = !0, f.match(bC) ? f : null)); + const u = this.takeWhile((f) => f === "." && !n && s ? (n = !0, f) : (s = !0, f.match(fC) ? f : null)); return u !== null ? { type: "number", value: a ? -u : +u, @@ -8056,8 +7947,8 @@ class EC { } : (this.i = e, null); } tokenizeSymbol() { - for (const e of CC) { - const s = dd[e].find((a) => this.tryConsume(a)); + for (const e of hC) { + const s = fd[e].find((a) => this.tryConsume(a)); if (s) return { type: e, @@ -8067,15 +7958,15 @@ class EC { return null; } } -function AC(r) { - return new EC(r).tokenize(); +function pC(r) { + return new dC(r).tokenize(); } -class xC { +class gC { constructor(e) { W(this, "tokens"); W(this, "length"); W(this, "i"); - this.tokens = AC(e), this.length = this.tokens.length, this.i = 0; + this.tokens = pC(e), this.length = this.tokens.length, this.i = 0; } parse() { return this.parsePath(); @@ -8242,16 +8133,16 @@ class xC { }; } } -function pd(r) { - const e = new xC(r).parse(); +function ld(r) { + const e = new gC(r).parse(); if (!e) throw new Error(`Failed to parse JSON path "${r}"`); return e; } -function gd(r) { - return Wr(r, !1); +function hd(r) { + return qr(r, !1); } -function Wr(r, e) { +function qr(r, e) { switch (r.type) { case "attribute": return r.name; @@ -8266,7 +8157,7 @@ function Wr(r, e) { case "index": return e ? `${r.value}` : `[${r.value}]`; case "constraint": { - const n = r.rhs ? ` ${Wr(r.rhs, !1)}` : "", s = `${Wr(r.lhs, !1)} ${r.operator}${n}`; + const n = r.rhs ? ` ${qr(r.rhs, !1)}` : "", s = `${qr(r.lhs, !1)} ${r.operator}${n}`; return e ? s : `[${s}]`; } case "string": @@ -8275,18 +8166,18 @@ function Wr(r, e) { const n = [], s = r.nodes.slice(); for (; s.length > 0; ) { const a = s.shift(); - a && n.push(gd(a)); + a && n.push(hd(a)); const u = s[0]; - u && Wr(u, !1)[0] !== "[" && n.push("."); + u && qr(u, !1)[0] !== "[" && n.push("."); } return n.join(""); } case "union": - return `[${r.nodes.map((n) => Wr(n, !0)).join(",")}]`; + return `[${r.nodes.map((n) => qr(n, !0)).join(",")}]`; default: throw new Error(`Unknown node type ${r.type}`); case "recursive": - return `..${Wr(r.term, !1)}`; + return `..${qr(r.term, !1)}`; } } class Oe { @@ -8328,9 +8219,9 @@ class Oe { return e.length(); }; let s = "start" in this.expr && this.expr.start || 0; - s = Ha(s, e); + s = Na(s, e); let a = "end" in this.expr && this.expr.end || n(); - a = Ha(a, e); + a = Na(a, e); const u = "step" in this.expr && this.expr.step || 1; return { start: s, end: a, step: u }; } @@ -8361,7 +8252,7 @@ class Oe { if (n.type === "constraint" && n.operator === "?") return !0; const f = e.get(), l = n.rhs && "value" in n.rhs ? n.rhs.value : void 0; - return vl(f, n.operator, l); + return hl(f, n.operator, l); } if (n.type !== "constraint") return !1; @@ -8378,7 +8269,7 @@ class Oe { if (this.isExistenceConstraint()) return !0; const u = n.rhs && "value" in n.rhs ? n.rhs.value : void 0; - return vl(a.get(), n.operator, u); + return hl(a.get(), n.operator, u); } pathNodes() { return this.expr.type === "path" ? this.expr.nodes : [this.expr]; @@ -8393,7 +8284,7 @@ class Oe { return e ? e.prepend(this) : this; } descend() { - return mC(this.expr).map((e) => { + return aC(this.expr).map((e) => { const [n, s] = e; return { head: n ? new Oe(n) : null, @@ -8410,7 +8301,7 @@ class Oe { if (this.expr.type !== "index" && this.expr.type !== "range") throw new Error("Node cannot be converted to indexes"); if (this.expr.type === "index") - return [Ha(this.expr.value, e)]; + return [Na(this.expr.value, e)]; const n = [], s = this.expandRange(e); let { start: a, end: u } = s; s.step < 0 && ([a, u] = [u, a]); @@ -8426,10 +8317,10 @@ class Oe { throw new Error(`Can't convert ${this.expr.type} to field references`); } toString() { - return gd(this.expr); + return hd(this.expr); } static fromPath(e) { - const n = pd(e); + const n = ld(e); if (!n) throw new Error(`Failed to parse path "${e}"`); return new Oe(n); @@ -8447,7 +8338,7 @@ class Oe { }); } } -function vl(r, e, n) { +function hl(r, e, n) { switch (e) { case ">": return r > n; @@ -8465,14 +8356,14 @@ function vl(r, e, n) { throw new Error(`Unsupported binary operator ${e}`); } } -function Ha(r, e) { +function Na(r, e) { if (r >= 0) return r; if (!e) throw new Error("interpretNegativeIndex() must have a probe when < 0"); return r + e.length(); } -class Br { +class Wr { constructor(e, n) { W(this, "head"); W(this, "tail"); @@ -8501,7 +8392,7 @@ class Br { extractRecursives() { if (this.head && this.head.isRecursive()) { const e = this.head.unwrapRecursive(); - return new Br(null, e.concat(this.tail)).descend(); + return new Wr(null, e.concat(this.tail)).descend(); } return []; } @@ -8516,14 +8407,14 @@ class Br { const a = e.length(); for (let u = 0; u < a; u++) { const f = e.getIndex(u); - f && n.testConstraint(f) && s.push(new Br(new Oe({ type: "index", value: u }), this.tail)); + f && n.testConstraint(f) && s.push(new Wr(new Oe({ type: "index", value: u }), this.tail)); } return s; } return e.containerType() === "object" ? n.constraintTargetIsSelf() ? [] : n.testConstraint(e) ? this.descend() : s : s; } descend() { - return this.tail ? this.tail.descend().map((e) => new Br(e.head, e.tail)) : [new Br(null, null)]; + return this.tail ? this.tail.descend().map((e) => new Wr(e.head, e.tail)) : [new Wr(null, null)]; } toString() { const e = ["<"]; @@ -8615,14 +8506,14 @@ class gr { return s.length > 0 ? { leads: n, delivery: { targets: s, payload: this.payload } } : { leads: n }; } static fromPath(e) { - const n = pd(e); + const n = ld(e); if (!n) throw new Error(`Failed to parse path from "${e}"`); - const s = new Br(null, new Oe(n)); + const s = new Wr(null, new Oe(n)); return new gr(s.descend()); } } -class go { +class lo { constructor(e, n) { W(this, "_value"); W(this, "path"); @@ -8637,7 +8528,7 @@ class go { return this._value.length; } getIndex(e) { - return Array.isArray(this._value) ? e >= this.length() ? null : new go(this._value[e], this.path.concat(e)) : !1; + return Array.isArray(this._value) ? e >= this.length() ? null : new lo(this._value[e], this.path.concat(e)) : !1; } hasAttribute(e) { return Js(this._value) ? this._value.hasOwnProperty(e) : !1; @@ -8648,29 +8539,29 @@ class go { getAttribute(e) { if (!Js(this._value)) throw new Error("getAttribute only applies to plain objects"); - return this.hasAttribute(e) ? new go(this._value[e], this.path.concat(e)) : null; + return this.hasAttribute(e) ? new lo(this._value[e], this.path.concat(e)) : null; } get() { return this._value; } } -function SC(r, e) { +function vC(r, e) { const n = [], s = gr.fromPath(r).setPayload(function(f) { n.push(...f); - }), a = new go(e); - return vd(s, a), n; + }), a = new lo(e); + return dd(s, a), n; } -function vd(r, e) { +function dd(r, e) { const { leads: n, delivery: s } = r.match(e); n.forEach((a) => { - ml(a.target, e).forEach((u) => { - vd(a.matcher, u); + dl(a.target, e).forEach((u) => { + dd(a.matcher, u); }); }), s && s.targets.forEach((a) => { - typeof s.payload == "function" && s.payload(ml(a, e)); + typeof s.payload == "function" && s.payload(dl(a, e)); }); } -function ml(r, e) { +function dl(r, e) { const n = []; if (r.isIndexReference()) r.toIndicies(e).forEach((s) => { @@ -8684,14 +8575,14 @@ function ml(r, e) { throw new Error(`Unable to derive accessor for target ${r.toString()}`); return Xn.compact(n); } -function IC(r, e) { - return SC(r, e).map((s) => ({ path: s.path, value: s.get() })); +function mC(r, e) { + return vC(r, e).map((s) => ({ path: s.path, value: s.get() })); } -function RC(r) { +function yC(r) { const e = r.charCodeAt(0); return e >= 55296 && e <= 56319; } -function su(r) { +function nu(r) { const e = r.charCodeAt(0); return e >= 56320 && e <= 57343; } @@ -8699,7 +8590,7 @@ function Li(r) { const [e, n] = r; return [e, n]; } -function yl(r, e) { +function pl(r, e) { let n = r, s = e; const a = n.length, u = s.length; if (a === 0 || u === 0) @@ -8717,7 +8608,7 @@ function yl(r, e) { } return l; } -function wu(r, e) { +function gu(r, e) { if (!r || !e || r[0] !== e[0]) return 0; let n = 0, s = Math.min(r.length, e.length), a = s, u = 0; @@ -8725,7 +8616,7 @@ function wu(r, e) { r.substring(u, a) === e.substring(u, a) ? (n = a, u = n) : s = a, a = Math.floor((s - n) / 2 + n); return a; } -function wo(r, e) { +function vo(r, e) { if (!r || !e || r[r.length - 1] !== e[e.length - 1]) return 0; let n = 0, s = Math.min(r.length, e.length), a = s, u = 0; @@ -8733,35 +8624,35 @@ function wo(r, e) { r.substring(r.length - a, r.length - u) === e.substring(e.length - a, e.length - u) ? (n = a, u = n) : s = a, a = Math.floor((s - n) / 2 + n); return a; } -function md(r) { +function pd(r) { let e = r.map((m) => Li(m)), n = !1; const s = []; let a = 0, u = null, f = 0, l = 0, d = 0, y = 0, p = 0; for (; f < e.length; ) - e[f][0] === it ? (s[a++] = f, l = y, d = p, y = 0, p = 0, u = e[f][1]) : (e[f][0] === It ? y += e[f][1].length : p += e[f][1].length, u && u.length <= Math.max(l, d) && u.length <= Math.max(y, p) && (e.splice(s[a - 1], 0, [Et, u]), e[s[a - 1] + 1][0] = It, a--, a--, f = a > 0 ? s[a - 1] : -1, l = 0, d = 0, y = 0, p = 0, u = null, n = !0)), f++; - for (n && (e = bo(e)), e = yd(e), f = 1; f < e.length; ) { - if (e[f - 1][0] === Et && e[f][0] === It) { - const m = e[f - 1][1], b = e[f][1], C = yl(m, b), R = yl(b, m); - C >= R ? (C >= m.length / 2 || C >= b.length / 2) && (e.splice(f, 0, [it, b.substring(0, C)]), e[f - 1][1] = m.substring(0, m.length - C), e[f + 1][1] = b.substring(C), f++) : (R >= m.length / 2 || R >= b.length / 2) && (e.splice(f, 0, [it, m.substring(0, R)]), e[f - 1][0] = It, e[f - 1][1] = b.substring(0, b.length - R), e[f + 1][0] = Et, e[f + 1][1] = m.substring(R), f++), f++; + e[f][0] === it ? (s[a++] = f, l = y, d = p, y = 0, p = 0, u = e[f][1]) : (e[f][0] === Rt ? y += e[f][1].length : p += e[f][1].length, u && u.length <= Math.max(l, d) && u.length <= Math.max(y, p) && (e.splice(s[a - 1], 0, [Et, u]), e[s[a - 1] + 1][0] = Rt, a--, a--, f = a > 0 ? s[a - 1] : -1, l = 0, d = 0, y = 0, p = 0, u = null, n = !0)), f++; + for (n && (e = mo(e)), e = gd(e), f = 1; f < e.length; ) { + if (e[f - 1][0] === Et && e[f][0] === Rt) { + const m = e[f - 1][1], b = e[f][1], C = pl(m, b), I = pl(b, m); + C >= I ? (C >= m.length / 2 || C >= b.length / 2) && (e.splice(f, 0, [it, b.substring(0, C)]), e[f - 1][1] = m.substring(0, m.length - C), e[f + 1][1] = b.substring(C), f++) : (I >= m.length / 2 || I >= b.length / 2) && (e.splice(f, 0, [it, m.substring(0, I)]), e[f - 1][0] = Rt, e[f - 1][1] = b.substring(0, b.length - I), e[f + 1][0] = Et, e[f + 1][1] = m.substring(I), f++), f++; } f++; } return e; } -const wl = /[^a-zA-Z0-9]/, bl = /\s/, _l = /[\r\n]/, OC = /\n\r?\n$/, TC = /^\r?\n\r?\n/; -function yd(r) { +const gl = /[^a-zA-Z0-9]/, vl = /\s/, ml = /[\r\n]/, wC = /\n\r?\n$/, bC = /^\r?\n\r?\n/; +function gd(r) { const e = r.map((a) => Li(a)); function n(a, u) { if (!a || !u) return 6; - const f = a.charAt(a.length - 1), l = u.charAt(0), d = f.match(wl), y = l.match(wl), p = d && f.match(bl), m = y && l.match(bl), b = p && f.match(_l), C = m && l.match(_l), R = b && a.match(OC), O = C && u.match(TC); - return R || O ? 5 : b || C ? 4 : d && !p && m ? 3 : p || m ? 2 : d || y ? 1 : 0; + const f = a.charAt(a.length - 1), l = u.charAt(0), d = f.match(gl), y = l.match(gl), p = d && f.match(vl), m = y && l.match(vl), b = p && f.match(ml), C = m && l.match(ml), I = b && a.match(wC), O = C && u.match(bC); + return I || O ? 5 : b || C ? 4 : d && !p && m ? 3 : p || m ? 2 : d || y ? 1 : 0; } let s = 1; for (; s < e.length - 1; ) { if (e[s - 1][0] === it && e[s + 1][0] === it) { let a = e[s - 1][1], u = e[s][1], f = e[s + 1][1]; - const l = wo(a, u); + const l = vo(a, u); if (l) { const b = u.substring(u.length - l); a = a.substring(0, a.length - l), u = b + u.substring(0, u.length - l), f = b + f; @@ -8778,20 +8669,20 @@ function yd(r) { } return e; } -function bo(r) { +function mo(r) { let e = r.map((y) => Li(y)); e.push([it, ""]); let n = 0, s = 0, a = 0, u = "", f = "", l; for (; n < e.length; ) switch (e[n][0]) { - case It: + case Rt: a++, f += e[n][1], n++; break; case Et: s++, u += e[n][1], n++; break; case it: - s + a > 1 ? (s !== 0 && a !== 0 && (l = wu(f, u), l !== 0 && (n - s - a > 0 && e[n - s - a - 1][0] === it ? e[n - s - a - 1][1] += f.substring(0, l) : (e.splice(0, 0, [it, f.substring(0, l)]), n++), f = f.substring(l), u = u.substring(l)), l = wo(f, u), l !== 0 && (e[n][1] = f.substring(f.length - l) + e[n][1], f = f.substring(0, f.length - l), u = u.substring(0, u.length - l))), n -= s + a, e.splice(n, s + a), u.length && (e.splice(n, 0, [Et, u]), n++), f.length && (e.splice(n, 0, [It, f]), n++), n++) : n !== 0 && e[n - 1][0] === it ? (e[n - 1][1] += e[n][1], e.splice(n, 1)) : n++, a = 0, s = 0, u = "", f = ""; + s + a > 1 ? (s !== 0 && a !== 0 && (l = gu(f, u), l !== 0 && (n - s - a > 0 && e[n - s - a - 1][0] === it ? e[n - s - a - 1][1] += f.substring(0, l) : (e.splice(0, 0, [it, f.substring(0, l)]), n++), f = f.substring(l), u = u.substring(l)), l = vo(f, u), l !== 0 && (e[n][1] = f.substring(f.length - l) + e[n][1], f = f.substring(0, f.length - l), u = u.substring(0, u.length - l))), n -= s + a, e.splice(n, s + a), u.length && (e.splice(n, 0, [Et, u]), n++), f.length && (e.splice(n, 0, [Rt, f]), n++), n++) : n !== 0 && e[n - 1][0] === it ? (e[n - 1][1] += e[n][1], e.splice(n, 1)) : n++, a = 0, s = 0, u = "", f = ""; break; default: throw new Error("Unknown diff operation"); @@ -8800,33 +8691,33 @@ function bo(r) { let d = !1; for (n = 1; n < e.length - 1; ) e[n - 1][0] === it && e[n + 1][0] === it && (e[n][1].substring(e[n][1].length - e[n - 1][1].length) === e[n - 1][1] ? (e[n][1] = e[n - 1][1] + e[n][1].substring(0, e[n][1].length - e[n - 1][1].length), e[n + 1][1] = e[n - 1][1] + e[n + 1][1], e.splice(n - 1, 1), d = !0) : e[n][1].substring(0, e[n + 1][1].length) === e[n + 1][1] && (e[n - 1][1] += e[n + 1][1], e[n][1] = e[n][1].substring(e[n + 1][1].length) + e[n + 1][1], e.splice(n + 1, 1), d = !0)), n++; - return d && (e = bo(e)), e; + return d && (e = mo(e)), e; } -function LC() { +function _C() { for (var r = arguments.length, e = new Array(r), n = 0; n < r; n++) e[n] = arguments[n]; return e.reduce((s, a) => s + (a ? 1 : 0), 0); } -function $C(r) { +function CC(r) { let e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 4, n = r.map((b) => Li(b)), s = !1; const a = []; let u = 0, f = null, l = 0, d = !1, y = !1, p = !1, m = !1; for (; l < n.length; ) - n[l][0] === it ? (n[l][1].length < e && (p || m) ? (a[u++] = l, d = p, y = m, f = n[l][1]) : (u = 0, f = null), p = !1, m = !1) : (n[l][0] === Et ? m = !0 : p = !0, f && (d && y && p && m || f.length < e / 2 && LC(d, y, p, m) === 3) && (n.splice(a[u - 1], 0, [Et, f]), n[a[u - 1] + 1][0] = It, u--, f = null, d && y ? (p = !0, m = !0, u = 0) : (u--, l = u > 0 ? a[u - 1] : -1, p = !1, m = !1), s = !0)), l++; - return s && (n = bo(n)), n; + n[l][0] === it ? (n[l][1].length < e && (p || m) ? (a[u++] = l, d = p, y = m, f = n[l][1]) : (u = 0, f = null), p = !1, m = !1) : (n[l][0] === Et ? m = !0 : p = !0, f && (d && y && p && m || f.length < e / 2 && _C(d, y, p, m) === 3) && (n.splice(a[u - 1], 0, [Et, f]), n[a[u - 1] + 1][0] = Rt, u--, f = null, d && y ? (p = !0, m = !0, u = 0) : (u--, l = u > 0 ? a[u - 1] : -1, p = !1, m = !1), s = !0)), l++; + return s && (n = mo(n)), n; } -function PC(r, e, n) { +function EC(r, e, n) { const s = r.length, a = e.length, u = Math.ceil((s + a) / 2), f = u, l = 2 * u, d = new Array(l), y = new Array(l); - for (let I = 0; I < l; I++) - d[I] = -1, y[I] = -1; + for (let R = 0; R < l; R++) + d[R] = -1, y[R] = -1; d[f + 1] = 0, y[f + 1] = 0; const p = s - a, m = p % 2 !== 0; - let b = 0, C = 0, R = 0, O = 0; - for (let I = 0; I < u && !(Date.now() > n); I++) { - for (let x = -I + b; x <= I - C; x += 2) { + let b = 0, C = 0, I = 0, O = 0; + for (let R = 0; R < u && !(Date.now() > n); R++) { + for (let x = -R + b; x <= R - C; x += 2) { const D = f + x; let U; - x === -I || x !== I && d[D - 1] < d[D + 1] ? U = d[D + 1] : U = d[D - 1] + 1; + x === -R || x !== R && d[D - 1] < d[D + 1] ? U = d[D + 1] : U = d[D - 1] + 1; let M = U - x; for (; U < s && M < a && r.charAt(U) === e.charAt(M); ) U++, M++; @@ -8839,50 +8730,50 @@ function PC(r, e, n) { if (z >= 0 && z < l && y[z] !== -1) { const ht = s - y[z]; if (U >= ht) - return Cl(r, e, U, M, n); + return yl(r, e, U, M, n); } } } - for (let x = -I + R; x <= I - O; x += 2) { + for (let x = -R + I; x <= R - O; x += 2) { const D = f + x; let U; - x === -I || x !== I && y[D - 1] < y[D + 1] ? U = y[D + 1] : U = y[D - 1] + 1; + x === -R || x !== R && y[D - 1] < y[D + 1] ? U = y[D + 1] : U = y[D - 1] + 1; let M = U - x; for (; U < s && M < a && r.charAt(s - U - 1) === e.charAt(a - M - 1); ) U++, M++; if (y[D] = U, U > s) O += 2; else if (M > a) - R += 2; + I += 2; else if (!m) { const z = f + p - x; if (z >= 0 && z < l && d[z] !== -1) { const ht = d[z], _t = f + ht - z; if (U = s - U, ht >= U) - return Cl(r, e, ht, _t, n); + return yl(r, e, ht, _t, n); } } } } - return [[Et, r], [It, e]]; + return [[Et, r], [Rt, e]]; } -function Cl(r, e, n, s, a) { - const u = r.substring(0, n), f = e.substring(0, s), l = r.substring(n), d = e.substring(s), y = mr(u, f, { +function yl(r, e, n, s, a) { + const u = r.substring(0, n), f = e.substring(0, s), l = r.substring(n), d = e.substring(s), y = vr(u, f, { checkLines: !1, deadline: a - }), p = mr(l, d, { + }), p = vr(l, d, { checkLines: !1, deadline: a }); return y.concat(p); } -function FC(r, e) { +function AC(r, e) { if ((arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : 1) <= 0) return null; const s = r.length > e.length ? r : e, a = r.length > e.length ? e : r; if (s.length < 4 || a.length * 2 < s.length) return null; - const u = El(s, a, Math.ceil(s.length / 4)), f = El(s, a, Math.ceil(s.length / 2)); + const u = wl(s, a, Math.ceil(s.length / 4)), f = wl(s, a, Math.ceil(s.length / 2)); let l; if (u && f) l = u[4].length > f[4].length ? u : f; @@ -8898,16 +8789,16 @@ function FC(r, e) { const b = l[4]; return [d, y, p, m, b]; } -function El(r, e, n) { +function wl(r, e, n) { const s = r.slice(n, n + Math.floor(r.length / 4)); let a = -1, u = "", f, l, d, y; for (; (a = e.indexOf(s, a + 1)) !== -1; ) { - const p = wu(r.slice(n), e.slice(a)), m = wo(r.slice(0, n), e.slice(0, a)); + const p = gu(r.slice(n), e.slice(a)), m = vo(r.slice(0, n), e.slice(0, a)); u.length < m + p && (u = e.slice(a - m, a) + e.slice(a, a + p), f = r.slice(0, n - m), l = r.slice(n + p), d = e.slice(0, a - m), y = e.slice(a + p)); } return u.length * 2 >= r.length ? [f || "", l || "", d || "", y || "", u || ""] : null; } -function MC(r, e) { +function xC(r, e) { for (let n = 0; n < r.length; n++) { const s = r[n][1], a = []; for (let u = 0; u < s.length; u++) @@ -8915,7 +8806,7 @@ function MC(r, e) { r[n][1] = a.join(""); } } -function DC(r, e) { +function SC(r, e) { const n = [], s = {}; n[0] = ""; function a(d) { @@ -8938,20 +8829,20 @@ function DC(r, e) { lineArray: n }; } -function UC(r, e, n) { +function RC(r, e, n) { let s = r, a = e; - const u = DC(s, a); + const u = SC(s, a); s = u.chars1, a = u.chars2; const f = u.lineArray; - let l = mr(s, a, { + let l = vr(s, a, { checkLines: !1, deadline: n.deadline }); - MC(l, f), l = md(l), l.push([it, ""]); + xC(l, f), l = pd(l), l.push([it, ""]); let d = 0, y = 0, p = 0, m = "", b = ""; for (; d < l.length; ) { switch (l[d][0]) { - case It: + case Rt: p++, b += l[d][1]; break; case Et: @@ -8960,12 +8851,12 @@ function UC(r, e, n) { case it: if (y >= 1 && p >= 1) { l.splice(d - y - p, y + p), d = d - y - p; - const C = mr(m, b, { + const C = vr(m, b, { checkLines: !1, deadline: n.deadline }); - for (let R = C.length - 1; R >= 0; R--) - l.splice(d, 0, C[R]); + for (let I = C.length - 1; I >= 0; I--) + l.splice(d, 0, C[I]); d += C.length; } p = 0, y = 0, m = "", b = ""; @@ -8977,70 +8868,70 @@ function UC(r, e, n) { } return l.pop(), l; } -function kC(r, e, n) { +function IC(r, e, n) { let s; if (!r) - return [[It, e]]; + return [[Rt, e]]; if (!e) return [[Et, r]]; const a = r.length > e.length ? r : e, u = r.length > e.length ? e : r, f = a.indexOf(u); if (f !== -1) - return s = [[It, a.substring(0, f)], [it, u], [It, a.substring(f + u.length)]], r.length > e.length && (s[0][0] = Et, s[2][0] = Et), s; + return s = [[Rt, a.substring(0, f)], [it, u], [Rt, a.substring(f + u.length)]], r.length > e.length && (s[0][0] = Et, s[2][0] = Et), s; if (u.length === 1) - return [[Et, r], [It, e]]; - const l = FC(r, e); + return [[Et, r], [Rt, e]]; + const l = AC(r, e); if (l) { - const d = l[0], y = l[1], p = l[2], m = l[3], b = l[4], C = mr(d, p, n), R = mr(y, m, n); - return C.concat([[it, b]], R); + const d = l[0], y = l[1], p = l[2], m = l[3], b = l[4], C = vr(d, p, n), I = vr(y, m, n); + return C.concat([[it, b]], I); } - return n.checkLines && r.length > 100 && e.length > 100 ? UC(r, e, n) : PC(r, e, n.deadline); + return n.checkLines && r.length > 100 && e.length > 100 ? RC(r, e, n) : EC(r, e, n.deadline); } -const Et = -1, It = 1, it = 0; -function wd(r, e, n) { +const Et = -1, Rt = 1, it = 0; +function vd(r, e, n) { if (r === null || e === null) throw new Error("Null input. (diff)"); - const s = mr(r, e, qC(n || {})); - return BC(s), s; + const s = vr(r, e, TC(n || {})); + return $C(s), s; } -function mr(r, e, n) { +function vr(r, e, n) { let s = r, a = e; if (s === a) return s ? [[it, s]] : []; - let u = wu(s, a); + let u = gu(s, a); const f = s.substring(0, u); - s = s.substring(u), a = a.substring(u), u = wo(s, a); + s = s.substring(u), a = a.substring(u), u = vo(s, a); const l = s.substring(s.length - u); s = s.substring(0, s.length - u), a = a.substring(0, a.length - u); - let d = kC(s, a, n); - return f && d.unshift([it, f]), l && d.push([it, l]), d = bo(d), d; + let d = IC(s, a, n); + return f && d.unshift([it, f]), l && d.push([it, l]), d = mo(d), d; } -function NC(r) { +function OC(r) { let e = 1; return typeof r < "u" && (e = r <= 0 ? Number.MAX_VALUE : r), Date.now() + e * 1e3; } -function qC(r) { +function TC(r) { return { checkLines: !0, - deadline: NC(r.timeout || 1), + deadline: OC(r.timeout || 1), ...r }; } -function Is(r, e, n) { +function Rs(r, e, n) { return n === 1 ? r + e : e + r; } -function Rs(r, e) { +function Is(r, e) { return e === 1 ? [r.substring(0, r.length - 1), r[r.length - 1]] : [r.substring(1), r[0]]; } -function WC(r, e, n, s) { +function LC(r, e, n, s) { return s === 1 ? r[e][1][r[e][1].length - 1] === r[n][1][r[n][1].length - 1] : r[e][1][0] === r[n][1][0]; } -function Al(r, e, n) { +function bl(r, e, n) { const s = n === 1 ? -1 : 1; let a = null, u = null, f = e + n; for (; f >= 0 && f < r.length && (a === null || u === null); f += n) { const [y, p] = r[f]; if (p.length !== 0) { - if (y === It) { + if (y === Rt) { a === null && (a = f); continue; } else if (y === Et) { @@ -9048,34 +8939,34 @@ function Al(r, e, n) { continue; } else if (y === it) { if (a === null && u === null) { - const [m, b] = Rs(r[e][1], n); - r[e][1] = m, r[f][1] = Is(r[f][1], b, s); + const [m, b] = Is(r[e][1], n); + r[e][1] = m, r[f][1] = Rs(r[f][1], b, s); return; } break; } } } - if (a !== null && u !== null && WC(r, a, u, n)) { - const [y, p] = Rs(r[a][1], s), [m] = Rs(r[u][1], s); - r[a][1] = y, r[u][1] = m, r[e][1] = Is(r[e][1], p, n); + if (a !== null && u !== null && LC(r, a, u, n)) { + const [y, p] = Is(r[a][1], s), [m] = Is(r[u][1], s); + r[a][1] = y, r[u][1] = m, r[e][1] = Rs(r[e][1], p, n); return; } - const [l, d] = Rs(r[e][1], n); - r[e][1] = l, a === null ? (r.splice(f, 0, [It, d]), u !== null && u >= f && u++) : r[a][1] = Is(r[a][1], d, s), u === null ? r.splice(f, 0, [Et, d]) : r[u][1] = Is(r[u][1], d, s); + const [l, d] = Is(r[e][1], n); + r[e][1] = l, a === null ? (r.splice(f, 0, [Rt, d]), u !== null && u >= f && u++) : r[a][1] = Rs(r[a][1], d, s), u === null ? r.splice(f, 0, [Et, d]) : r[u][1] = Rs(r[u][1], d, s); } -function BC(r) { +function $C(r) { for (let e = 0; e < r.length; e++) { const [n, s] = r[e]; if (s.length === 0) continue; const a = s[0], u = s[s.length - 1]; - RC(u) && n === it && Al(r, e, 1), su(a) && n === it && Al(r, e, -1); + yC(u) && n === it && bl(r, e, 1), nu(a) && n === it && bl(r, e, -1); } for (let e = 0; e < r.length; e++) r[e][1].length === 0 && r.splice(e, 1); } -const HC = { +const PC = { /** * At what point is no match declared (0.0 = perfection, 1.0 = very loose). */ @@ -9087,38 +8978,38 @@ const HC = { */ distance: 1e3 }; -function GC(r) { +function FC(r) { return { - ...HC, + ...PC, ...r }; } -const jC = 32; -function zC(r, e, n) { +const MC = 32; +function DC(r, e, n) { let s = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {}; - if (e.length > jC) + if (e.length > MC) throw new Error("Pattern too long for this browser."); - const a = GC(s), u = KC(e); - function f(R, O) { - const I = R / e.length, x = Math.abs(n - O); - return a.distance ? I + x / a.distance : x ? 1 : I; + const a = FC(s), u = UC(e); + function f(I, O) { + const R = I / e.length, x = Math.abs(n - O); + return a.distance ? R + x / a.distance : x ? 1 : R; } let l = a.threshold, d = r.indexOf(e, n); d !== -1 && (l = Math.min(f(0, d), l), d = r.lastIndexOf(e, n + e.length), d !== -1 && (l = Math.min(f(0, d), l))); const y = 1 << e.length - 1; d = -1; let p, m, b = e.length + r.length, C = []; - for (let R = 0; R < e.length; R++) { + for (let I = 0; I < e.length; I++) { for (p = 0, m = b; p < m; ) - f(R, n + m) <= l ? p = m : b = m, m = Math.floor((b - p) / 2 + p); + f(I, n + m) <= l ? p = m : b = m, m = Math.floor((b - p) / 2 + p); b = m; let O = Math.max(1, n - m + 1); - const I = Math.min(n + m, r.length) + e.length, x = new Array(I + 2); - x[I + 1] = (1 << R) - 1; - for (let D = I; D >= O; D--) { + const R = Math.min(n + m, r.length) + e.length, x = new Array(R + 2); + x[R + 1] = (1 << I) - 1; + for (let D = R; D >= O; D--) { const U = u[r.charAt(D - 1)]; - if (R === 0 ? x[D] = (x[D + 1] << 1 | 1) & U : x[D] = (x[D + 1] << 1 | 1) & U | ((C[D + 1] | C[D]) << 1 | 1) | C[D + 1], x[D] & y) { - const M = f(R, D - 1); + if (I === 0 ? x[D] = (x[D + 1] << 1 | 1) & U : x[D] = (x[D + 1] << 1 | 1) & U | ((C[D + 1] | C[D]) << 1 | 1) | C[D + 1], x[D] & y) { + const M = f(I, D - 1); if (M <= l) if (l = M, d = D - 1, d > n) O = Math.max(1, 2 * n - d); @@ -9126,13 +9017,13 @@ function zC(r, e, n) { break; } } - if (f(R + 1, n) > l) + if (f(I + 1, n) > l) break; C = x; } return d; } -function KC(r) { +function UC(r) { const e = {}; for (let n = 0; n < r.length; n++) e[r.charAt(n)] = 0; @@ -9140,7 +9031,7 @@ function KC(r) { e[r.charAt(n)] |= 1 << r.length - n - 1; return e; } -function Ga(r, e, n) { +function qa(r, e, n) { if (r === null || e === null || n === null) throw new Error("Null input. (match())"); const s = Math.max(0, Math.min(n, r.length)); @@ -9151,9 +9042,9 @@ function Ga(r, e, n) { return s; } else return -1; - return zC(r, e, s); + return DC(r, e, s); } -function vo(r, e) { +function ho(r, e) { return { diffs: [], start1: r, @@ -9166,36 +9057,36 @@ function vo(r, e) { utf8Length2: 0 }; } -function bu(r) { +function vu(r) { const e = []; for (let n = 0; n < r.length; n++) - r[n][0] !== It && (e[n] = r[n][1]); + r[n][0] !== Rt && (e[n] = r[n][1]); return e.join(""); } -function bd(r) { +function md(r) { const e = []; for (let n = 0; n < r.length; n++) r[n][0] !== Et && (e[n] = r[n][1]); return e.join(""); } -function Jn(r) { +function Kn(r) { let e = 0; for (let n = 0; n < r.length; n++) { const s = r.codePointAt(n); if (typeof s > "u") throw new Error("Failed to get codepoint"); - e += _d(s); + e += yd(s); } return e; } -function JC(r, e) { +function kC(r, e) { let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, s = 0, a = 0; function u(l) { for (; s < l; ) { const d = e.codePointAt(a); if (typeof d > "u") return a; - s += _d(d), d > 65535 ? a += 2 : a += 1; + s += yd(d), d > 65535 ? a += 2 : a += 1; } if (!n.allowExceedingIndices && s !== l) throw new Error("Failed to determine byte offset"); @@ -9216,81 +9107,81 @@ function JC(r, e) { }); return f; } -function _d(r) { +function yd(r) { return r <= 127 ? 1 : r <= 2047 ? 2 : r <= 65535 ? 3 : 4; } -const Gn = 32, _u = 4, XC = { +const Hn = 32, mu = 4, NC = { margin: 4 }; -function ja() { +function Wa() { let r = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}; return { - ...XC, + ...NC, ...r }; } -function VC(r, e, n) { +function qC(r, e, n) { if (typeof r == "string" && typeof e == "string") { - let s = wd(r, e, { + let s = vd(r, e, { checkLines: !0 }); - return s.length > 2 && (s = md(s), s = $C(s)), za(r, s, ja(n)); + return s.length > 2 && (s = pd(s), s = CC(s)), Ba(r, s, Wa(n)); } if (r && Array.isArray(r) && typeof e > "u") - return za(bu(r), r, ja(n)); + return Ba(vu(r), r, Wa(n)); if (typeof r == "string" && e && Array.isArray(e)) - return za(r, e, ja(n)); + return Ba(r, e, Wa(n)); throw new Error("Unknown call format to make()"); } -function za(r, e, n) { +function Ba(r, e, n) { if (e.length === 0) return []; const s = []; - let a = vo(0, 0), u = 0, f = 0, l = 0, d = 0, y = 0, p = r, m = r; + let a = ho(0, 0), u = 0, f = 0, l = 0, d = 0, y = 0, p = r, m = r; for (let b = 0; b < e.length; b++) { - const C = e[b], [R, O] = C, I = O.length, x = Jn(O); - switch (!u && R !== it && (a.start1 = f, a.start2 = l, a.utf8Start1 = d, a.utf8Start2 = y), R) { - case It: - a.diffs[u++] = C, a.length2 += I, a.utf8Length2 += x, m = m.substring(0, l) + O + m.substring(l); + const C = e[b], [I, O] = C, R = O.length, x = Kn(O); + switch (!u && I !== it && (a.start1 = f, a.start2 = l, a.utf8Start1 = d, a.utf8Start2 = y), I) { + case Rt: + a.diffs[u++] = C, a.length2 += R, a.utf8Length2 += x, m = m.substring(0, l) + O + m.substring(l); break; case Et: - a.length1 += I, a.utf8Length1 += x, a.diffs[u++] = C, m = m.substring(0, l) + m.substring(l + I); + a.length1 += R, a.utf8Length1 += x, a.diffs[u++] = C, m = m.substring(0, l) + m.substring(l + R); break; case it: - I <= 2 * n.margin && u && e.length !== b + 1 ? (a.diffs[u++] = C, a.length1 += I, a.length2 += I, a.utf8Length1 += x, a.utf8Length2 += x) : I >= 2 * n.margin && u && (xl(a, p, n), s.push(a), a = vo(-1, -1), u = 0, p = m, f = l, d = y); + R <= 2 * n.margin && u && e.length !== b + 1 ? (a.diffs[u++] = C, a.length1 += R, a.length2 += R, a.utf8Length1 += x, a.utf8Length2 += x) : R >= 2 * n.margin && u && (_l(a, p, n), s.push(a), a = ho(-1, -1), u = 0, p = m, f = l, d = y); break; default: throw new Error("Unknown diff type"); } - R !== It && (f += I, d += x), R !== Et && (l += I, y += x); + I !== Rt && (f += R, d += x), I !== Et && (l += R, y += x); } - return u && (xl(a, p, n), s.push(a)), s; + return u && (_l(a, p, n), s.push(a)), s; } -function xl(r, e, n) { +function _l(r, e, n) { if (e.length === 0) return; let s = e.substring(r.start2, r.start2 + r.length1), a = 0; - for (; e.indexOf(s) !== e.lastIndexOf(s) && s.length < Gn - n.margin - n.margin; ) + for (; e.indexOf(s) !== e.lastIndexOf(s) && s.length < Hn - n.margin - n.margin; ) a += n.margin, s = e.substring(r.start2 - a, r.start2 + r.length1 + a); a += n.margin; let u = r.start2 - a; - u >= 1 && su(e[u]) && u--; + u >= 1 && nu(e[u]) && u--; const f = e.substring(u, r.start2); f && r.diffs.unshift([it, f]); - const l = f.length, d = Jn(f); + const l = f.length, d = Kn(f); let y = r.start2 + r.length1 + a; - y < e.length && su(e[y]) && y++; + y < e.length && nu(e[y]) && y++; const p = e.substring(r.start2 + r.length1, y); p && r.diffs.push([it, p]); - const m = p.length, b = Jn(p); + const m = p.length, b = Kn(p); r.start1 -= l, r.start2 -= l, r.utf8Start1 -= d, r.utf8Start2 -= d, r.length1 += l + m, r.length2 += l + m, r.utf8Length1 += d + b, r.utf8Length2 += d + b; } -function YC(r) { +function WC(r) { let e = 0, n = 0, s = 0; for (let a = 0; a < r.length; a++) { const u = r[a][0], f = r[a][1]; switch (u) { - case It: + case Rt: n += f.length; break; case Et: @@ -9305,14 +9196,14 @@ function YC(r) { } return e += Math.max(n, s), e; } -function Sl(r, e) { +function Cl(r, e) { let n = 0, s = 0, a = 0, u = 0, f; - for (f = 0; f < r.length && (r[f][0] !== It && (n += r[f][1].length), r[f][0] !== Et && (s += r[f][1].length), !(n > e)); f++) + for (f = 0; f < r.length && (r[f][0] !== Rt && (n += r[f][1].length), r[f][0] !== Et && (s += r[f][1].length), !(n > e)); f++) a = n, u = s; return r.length !== f && r[f][0] === Et ? u : u + (e - a); } -function ZC(r) { - const n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : _u; +function BC(r) { + const n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : mu; let s = ""; for (let f = 1; f <= n; f++) s += String.fromCharCode(f); @@ -9333,9 +9224,9 @@ function ZC(r) { } return s; } -function QC(r) { - let e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : _u; - const n = Gn; +function HC(r) { + let e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : mu; + const n = Hn; for (let s = 0; s < r.length; s++) { if (r[s].length1 <= n) continue; @@ -9343,63 +9234,63 @@ function QC(r) { r.splice(s--, 1); let u = a.start1, f = a.start2, l = ""; for (; a.diffs.length !== 0; ) { - const d = vo(u - l.length, f - l.length); + const d = ho(u - l.length, f - l.length); let y = !0; if (l !== "") { - const b = Jn(l); + const b = Kn(l); d.length1 = l.length, d.utf8Length1 = b, d.length2 = l.length, d.utf8Length2 = b, d.diffs.push([it, l]); } for (; a.diffs.length !== 0 && d.length1 < n - e; ) { const b = a.diffs[0][0]; - let C = a.diffs[0][1], R = Jn(C); - if (b === It) { - d.length2 += C.length, d.utf8Length2 += R, f += C.length; + let C = a.diffs[0][1], I = Kn(C); + if (b === Rt) { + d.length2 += C.length, d.utf8Length2 += I, f += C.length; const O = a.diffs.shift(); O && d.diffs.push(O), y = !1; } else - b === Et && d.diffs.length === 1 && d.diffs[0][0] === it && C.length > 2 * n ? (d.length1 += C.length, d.utf8Length1 += R, u += C.length, y = !1, d.diffs.push([b, C]), a.diffs.shift()) : (C = C.substring(0, n - d.length1 - e), R = Jn(C), d.length1 += C.length, d.utf8Length1 += R, u += C.length, b === it ? (d.length2 += C.length, d.utf8Length2 += R, f += C.length) : y = !1, d.diffs.push([b, C]), C === a.diffs[0][1] ? a.diffs.shift() : a.diffs[0][1] = a.diffs[0][1].substring(C.length)); + b === Et && d.diffs.length === 1 && d.diffs[0][0] === it && C.length > 2 * n ? (d.length1 += C.length, d.utf8Length1 += I, u += C.length, y = !1, d.diffs.push([b, C]), a.diffs.shift()) : (C = C.substring(0, n - d.length1 - e), I = Kn(C), d.length1 += C.length, d.utf8Length1 += I, u += C.length, b === it ? (d.length2 += C.length, d.utf8Length2 += I, f += C.length) : y = !1, d.diffs.push([b, C]), C === a.diffs[0][1] ? a.diffs.shift() : a.diffs[0][1] = a.diffs[0][1].substring(C.length)); } - l = bd(d.diffs), l = l.substring(l.length - e); - const p = bu(a.diffs).substring(0, e), m = Jn(p); + l = md(d.diffs), l = l.substring(l.length - e); + const p = vu(a.diffs).substring(0, e), m = Kn(p); p !== "" && (d.length1 += p.length, d.length2 += p.length, d.utf8Length1 += m, d.utf8Length2 += m, d.diffs.length !== 0 && d.diffs[d.diffs.length - 1][0] === it ? d.diffs[d.diffs.length - 1][1] += p : d.diffs.push([it, p])), y || r.splice(++s, 0, d); } } } -function tE(r, e) { +function GC(r, e) { let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}; if (typeof r == "string") throw new Error("Patches must be an array - pass the patch to `parsePatch()` first"); let s = e; if (r.length === 0) return [s, []]; - const a = JC(r, s, { + const a = kC(r, s, { allowExceedingIndices: n.allowExceedingIndices - }), u = n.margin || _u, f = n.deleteThreshold || 0.4, l = ZC(a, u); - s = l + s + l, QC(a, u); + }), u = n.margin || mu, f = n.deleteThreshold || 0.4, l = BC(a, u); + s = l + s + l, HC(a, u); let d = 0; const y = []; for (let p = 0; p < a.length; p++) { - const m = a[p].start2 + d, b = bu(a[p].diffs); - let C, R = -1; - if (b.length > Gn ? (C = Ga(s, b.substring(0, Gn), m), C !== -1 && (R = Ga(s, b.substring(b.length - Gn), m + b.length - Gn), (R === -1 || C >= R) && (C = -1))) : C = Ga(s, b, m), C === -1) + const m = a[p].start2 + d, b = vu(a[p].diffs); + let C, I = -1; + if (b.length > Hn ? (C = qa(s, b.substring(0, Hn), m), C !== -1 && (I = qa(s, b.substring(b.length - Hn), m + b.length - Hn), (I === -1 || C >= I) && (C = -1))) : C = qa(s, b, m), C === -1) y[p] = !1, d -= a[p].length2 - a[p].length1; else { y[p] = !0, d = C - m; let O; - if (R === -1 ? O = s.substring(C, C + b.length) : O = s.substring(C, R + Gn), b === O) - s = s.substring(0, C) + bd(a[p].diffs) + s.substring(C + b.length); + if (I === -1 ? O = s.substring(C, C + b.length) : O = s.substring(C, I + Hn), b === O) + s = s.substring(0, C) + md(a[p].diffs) + s.substring(C + b.length); else { - let I = wd(b, O, { + let R = vd(b, O, { checkLines: !1 }); - if (b.length > Gn && YC(I) / b.length > f) + if (b.length > Hn && WC(R) / b.length > f) y[p] = !1; else { - I = yd(I); + R = gd(R); let x = 0, D = 0; for (let U = 0; U < a[p].diffs.length; U++) { const M = a[p].diffs[U]; - M[0] !== it && (D = Sl(I, x)), M[0] === It ? s = s.substring(0, C + D) + M[1] + s.substring(C + D) : M[0] === Et && (s = s.substring(0, C + D) + s.substring(C + Sl(I, x + M[1].length))), M[0] !== Et && (x += M[1].length); + M[0] !== it && (D = Cl(R, x)), M[0] === Rt ? s = s.substring(0, C + D) + M[1] + s.substring(C + D) : M[0] === Et && (s = s.substring(0, C + D) + s.substring(C + Cl(R, x + M[1].length))), M[0] !== Et && (x += M[1].length); } } } @@ -9407,10 +9298,10 @@ function tE(r, e) { } return s = s.substring(l.length, s.length - l.length), [s, y]; } -function eE(r) { - return r.map(nE).join(""); +function jC(r) { + return r.map(zC).join(""); } -function nE(r) { +function zC(r) { const { utf8Length1: e, utf8Length2: n, @@ -9427,7 +9318,7 @@ function nE(r) { let y; for (let p = 0; p < u.length; p++) { switch (u[p][0]) { - case It: + case Rt: y = "+"; break; case Et: @@ -9444,18 +9335,18 @@ function nE(r) { } return d.join("").replace(/%20/g, " "); } -const rE = /^@@ -(\d+),?(\d*) \+(\d+),?(\d*) @@$/; -function iE(r) { +const KC = /^@@ -(\d+),?(\d*) \+(\d+),?(\d*) @@$/; +function JC(r) { if (!r) return []; const e = [], n = r.split(` `); let s = 0; for (; s < n.length; ) { - const a = n[s].match(rE); + const a = n[s].match(KC); if (!a) throw new Error("Invalid patch string: ".concat(n[s])); - const u = vo(Os(a[1]), Os(a[3])); + const u = ho(Os(a[1]), Os(a[3])); for (e.push(u), a[2] === "" ? (u.start1--, u.utf8Start1--, u.length1 = 1, u.utf8Length1 = 1) : a[2] === "0" ? (u.length1 = 0, u.utf8Length1 = 0) : (u.start1--, u.utf8Start1--, u.utf8Length1 = Os(a[2]), u.length1 = u.utf8Length1), a[4] === "" ? (u.start2--, u.utf8Start2--, u.length2 = 1, u.utf8Length2 = 1) : a[4] === "0" ? (u.length2 = 0, u.utf8Length2 = 0) : (u.start2--, u.utf8Start2--, u.utf8Length2 = Os(a[4]), u.length2 = u.utf8Length2), s++; s < n.length; ) { const f = n[s], l = f.charAt(0); if (l === "@") @@ -9470,11 +9361,11 @@ function iE(r) { } catch { throw new Error("Illegal escape in parse: ".concat(f)); } - const y = Jn(d) - d.length; + const y = Kn(d) - d.length; if (l === "-") u.diffs.push([Et, d]), u.length1 -= y; else if (l === "+") - u.diffs.push([It, d]), u.length2 -= y; + u.diffs.push([Rt, d]), u.length2 -= y; else if (l === " ") u.diffs.push([it, d]), u.length1 -= y, u.length2 -= y; else @@ -9487,18 +9378,18 @@ function iE(r) { function Os(r) { return parseInt(r, 10); } -function Il(r, e) { +function El(r, e) { if (typeof e != "string") return e; - const [n] = tE(r, e, { allowExceedingIndices: !0 }); + const [n] = GC(r, e, { allowExceedingIndices: !0 }); return n; } -class sE { +class XC { constructor(e, n, s) { W(this, "path"); W(this, "dmpPatch"); W(this, "id"); - this.id = e, this.path = n, this.dmpPatch = iE(s); + this.id = e, this.path = n, this.dmpPatch = JC(s); } apply(e, n) { let s = n; @@ -9510,7 +9401,7 @@ class sE { const f = s.getIndex(u); if (!f) continue; - const l = f.get(), d = Il(this.dmpPatch, l); + const l = f.get(), d = El(this.dmpPatch, l); s = s.setIndex(u, d); } continue; @@ -9519,7 +9410,7 @@ class sE { const u = s.getAttribute(a.name()); if (!u) continue; - const f = u.get(), l = Il(this.dmpPatch, f); + const f = u.get(), l = El(this.dmpPatch, f); s = s.setAttribute(a.name(), l); continue; } @@ -9528,10 +9419,10 @@ class sE { return s; } } -function Rl(r, e) { +function Al(r, e) { return typeof r != "number" || !Number.isFinite(r) ? r : r + e; } -class Ol { +class xl { constructor(e, n, s) { W(this, "path"); W(this, "value"); @@ -9549,7 +9440,7 @@ class Ol { if (!f) continue; const l = f.get(); - s = s.setIndex(u, Rl(l, this.value)); + s = s.setIndex(u, Al(l, this.value)); } continue; } @@ -9558,7 +9449,7 @@ class Ol { if (!u) continue; const f = u.get(); - s = s.setAttribute(a.name(), Rl(f, this.value)); + s = s.setAttribute(a.name(), Al(f, this.value)); continue; } throw new Error(`Unable to apply to target ${a.toString()}`); @@ -9566,13 +9457,13 @@ class Ol { return s; } } -function _o(r, e) { +function yo(r, e) { const n = []; return r.forEach((s) => { s.isIndexReference() && n.push(...s.toIndicies(e)); }), n.sort(); } -class oE { +class YC { constructor(e, n, s, a) { W(this, "location"); W(this, "path"); @@ -9586,17 +9477,17 @@ class oE { throw new Error("Attempt to apply insert patch to non-array value"); switch (this.location) { case "before": { - const a = aE(e, n); + const a = VC(e, n); s = s.insertItemsAt(a, this.items); break; } case "after": { - const a = uE(e, n); + const a = ZC(e, n); s = s.insertItemsAt(a + 1, this.items); break; } case "replace": { - const a = _o(e, n); + const a = yo(e, n); s = s.unsetIndices(a), s = s.insertItemsAt(a[0], this.items); break; } @@ -9606,8 +9497,8 @@ class oE { return s; } } -function aE(r, e) { - let n = Xn.min(_o(r, e)) || 0; +function VC(r, e) { + let n = Xn.min(yo(r, e)) || 0; return r.forEach((s) => { if (s.isRange()) { const { start: a } = s.expandRange(); @@ -9615,8 +9506,8 @@ function aE(r, e) { } }), n; } -function uE(r, e) { - let n = Xn.max(_o(r, e)) || 0; +function ZC(r, e) { + let n = Xn.max(yo(r, e)) || 0; return r.forEach((s) => { if (s.isRange()) { const { end: a } = s.expandRange(); @@ -9624,7 +9515,7 @@ function uE(r, e) { } }), n; } -class Cd { +class wd { constructor(e, n, s) { W(this, "id"); W(this, "path"); @@ -9642,7 +9533,7 @@ class Cd { }), s; } } -class Ed { +class bd { constructor(e, n, s) { W(this, "id"); W(this, "path"); @@ -9665,7 +9556,7 @@ class Ed { }), s; } } -class cE { +class QC { constructor(e, n) { W(this, "id"); W(this, "path"); @@ -9677,7 +9568,7 @@ class cE { let s = n; switch (n.containerType()) { case "array": - s = s.unsetIndices(_o(e, n)); + s = s.unsetIndices(yo(e, n)); break; case "object": e.forEach((a) => { @@ -9692,23 +9583,23 @@ class cE { return s; } } -function Ad(r) { +function _d(r) { const e = []; if (Array.isArray(r)) - return r.reduce((y, p) => y.concat(Ad(p)), e); + return r.reduce((y, p) => y.concat(_d(p)), e); const { set: n, setIfMissing: s, unset: a, diffMatchPatch: u, inc: f, dec: l, insert: d } = r; if (s && Object.keys(s).forEach((y) => { - e.push(new Cd(r.id, y, s[y])); + e.push(new wd(r.id, y, s[y])); }), n && Object.keys(n).forEach((y) => { - e.push(new Ed(r.id, y, n[y])); + e.push(new bd(r.id, y, n[y])); }), a && a.forEach((y) => { - e.push(new cE(r.id, y)); + e.push(new QC(r.id, y)); }), u && Object.keys(u).forEach((y) => { - e.push(new sE(r.id, y, u[y])); + e.push(new XC(r.id, y, u[y])); }), f && Object.keys(f).forEach((y) => { - e.push(new Ol(r.id, y, f[y])); + e.push(new xl(r.id, y, f[y])); }), l && Object.keys(l).forEach((y) => { - e.push(new Ol(r.id, y, -l[y])); + e.push(new xl(r.id, y, -l[y])); }), d) { let y, p; const m = d; @@ -9720,17 +9611,17 @@ function Ad(r) { y = "replace", p = m.replace; else throw new Error("Invalid insert patch"); - e.push(new oE(r.id, y, p, m.items)); + e.push(new YC(r.id, y, p, m.items)); } return e; } -class fE { +class tE { constructor(e) { W(this, "patches"); - this.patches = Ad(e); + this.patches = _d(e); } apply(e) { - const n = new on(e); + const n = new sn(e); return this.applyViaAccessor(n).get(); } // If you want to use your own accessor implementation, you can use this method @@ -9748,13 +9639,13 @@ class fE { if (u.id !== a) continue; const f = gr.fromPath(u.path).setPayload(u); - n = ou(f, n); + n = ru(f, n); } return n; } } -function ou(r, e) { - const n = r.payload instanceof Ed || r.payload instanceof Cd; +function ru(r, e) { + const n = r.payload instanceof bd || r.payload instanceof wd; let s = e; const { leads: a, delivery: u } = r.match(e); return a.forEach((f) => { @@ -9763,54 +9654,54 @@ function ou(r, e) { const d = s.getIndex(l); if (!d) throw new Error("Index out of bounds"); - s = s.setIndexAccessor(l, ou(f.matcher, d)); + s = s.setIndexAccessor(l, ru(f.matcher, d)); }); else if (f.target.isAttributeReference()) { n && s.containerType() === "primitive" && (s = s.set({})); let l = s.getAttribute(f.target.name()); if (!l && n && (s = s.setAttribute(f.target.name(), {}), l = s.getAttribute(f.target.name())), !l) return; - const d = ou(f.matcher, l); + const d = ru(f.matcher, l); l !== d && (s = s.setAttributeAccessor(f.target.name(), d)); } else throw new Error(`Unable to handle target ${f.target.toString()}`); - }), u && lE(u.payload) && (s = u.payload.apply(u.targets, s)), s; + }), u && eE(u.payload) && (s = u.payload.apply(u.targets, s)), s; } -function lE(r) { +function eE(r) { return !!(r && typeof r == "object" && r !== null && "apply" in r && typeof r.apply == "function"); } -var Ts, hE = new Uint8Array(16); -function dE() { +var Ts, nE = new Uint8Array(16); +function rE() { if (!Ts && (Ts = typeof crypto < "u" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto) || typeof msCrypto < "u" && typeof msCrypto.getRandomValues == "function" && msCrypto.getRandomValues.bind(msCrypto), !Ts)) throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported"); - return Ts(hE); + return Ts(nE); } -const pE = /^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i; -function gE(r) { - return typeof r == "string" && pE.test(r); +const iE = /^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i; +function sE(r) { + return typeof r == "string" && iE.test(r); } var Zt = []; -for (var Ka = 0; Ka < 256; ++Ka) - Zt.push((Ka + 256).toString(16).substr(1)); -function vE(r) { +for (var Ha = 0; Ha < 256; ++Ha) + Zt.push((Ha + 256).toString(16).substr(1)); +function oE(r) { var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0, n = (Zt[r[e + 0]] + Zt[r[e + 1]] + Zt[r[e + 2]] + Zt[r[e + 3]] + "-" + Zt[r[e + 4]] + Zt[r[e + 5]] + "-" + Zt[r[e + 6]] + Zt[r[e + 7]] + "-" + Zt[r[e + 8]] + Zt[r[e + 9]] + "-" + Zt[r[e + 10]] + Zt[r[e + 11]] + Zt[r[e + 12]] + Zt[r[e + 13]] + Zt[r[e + 14]] + Zt[r[e + 15]]).toLowerCase(); - if (!gE(n)) + if (!sE(n)) throw TypeError("Stringified UUID is invalid"); return n; } -function mE(r, e, n) { +function aE(r, e, n) { r = r || {}; - var s = r.random || (r.rng || dE)(); + var s = r.random || (r.rng || rE)(); if (s[6] = s[6] & 15 | 64, s[8] = s[8] & 63 | 128, e) { n = n || 0; for (var a = 0; a < 16; ++a) e[n + a] = s[a]; return e; } - return vE(s); + return oE(s); } -const yE = mE; -class un { +const uE = aE; +class an { constructor(e) { W(this, "params"); W(this, "compiled"); @@ -9843,7 +9734,7 @@ class un { return this.params.effects; } assignRandomTransactionId() { - this.params.transactionId = yE(), this.params.resultRev = this.params.transactionId; + this.params.transactionId = uE(), this.params.resultRev = this.params.transactionId; } appliesToMissingDocument() { if (typeof this._appliesToMissingDocument < "u") @@ -9887,7 +9778,7 @@ class un { if (a.patch) { if ("query" in a.patch) return; - const u = new fE(a.patch); + const u = new tE(a.patch); e.push((f) => u.apply(f)); return; } @@ -9922,10 +9813,10 @@ class un { (a, u) => a.concat(...u.mutations), [] ); - return new un({ mutations: s }); + return new an({ mutations: s }); } } -class wE { +class cE { constructor(e) { /** * Incoming patches from the server waiting to be applied to HEAD @@ -10145,7 +10036,7 @@ class wE { } rebase(e) { const n = this.EDGE; - this.EDGE = un.applyAll(this.HEAD, this.submitted.concat(this.pending)), n !== null && this.EDGE !== null && (n._rev = this.EDGE._rev), !Xn.isEqual(this.EDGE, n) && this.onRebase && this.onRebase(this.EDGE, e, this.pending); + this.EDGE = an.applyAll(this.HEAD, this.submitted.concat(this.pending)), n !== null && this.EDGE !== null && (n._rev = this.EDGE._rev), !Xn.isEqual(this.EDGE, n) && this.onRebase && this.onRebase(this.EDGE, e, this.pending); } } class Ls { @@ -10198,7 +10089,7 @@ class Ls { purge(e) { this.stashStagedOperations(); let n = null; - return this.out.length > 0 && (ct("Purged mutation buffer"), n = new un({ + return this.out.length > 0 && (ct("Purged mutation buffer"), n = new an({ mutations: this.out, resultRev: e, transactionId: e @@ -10230,7 +10121,7 @@ class Ls { optimiseSetOperation(e, n) { if (typeof n == "object") return !1; - const s = IC(e, this.PRESTAGE); + const s = mC(e, this.PRESTAGE); if (s.length !== 1) return !1; const a = s[0]; @@ -10241,14 +10132,14 @@ class Ls { u = null; else if (typeof a.value == "string" && typeof n == "string") try { - const l = eE(VC(a.value, n)); + const l = jC(qC(a.value, n)); u = { patch: { id: this.PRESTAGE._id, diffMatchPatch: { [e]: l } } }; } catch { return !1; } else u = { patch: { id: this.PRESTAGE._id, set: { [e]: n } } }; - const f = pC(a.path); + const f = iC(a.path); return u ? this.setOperations[f] = u : delete this.setOperations[f], !0; } stashStagedOperations() { @@ -10256,7 +10147,7 @@ class Ls { Object.keys(this.setOperations).forEach((n) => { const s = this.setOperations[n]; s && e.push(s); - }), e.push(...this.staged), e.length > 0 && (this.PRESTAGE = new un({ mutations: e }).apply(this.PRESTAGE), this.staged = [], this.setOperations = {}), this.out.push(...e); + }), e.push(...this.staged), e.length > 0 && (this.PRESTAGE = new an({ mutations: e }).apply(this.PRESTAGE), this.staged = [], this.setOperations = {}), this.out.push(...e); } /** * Rebases given the new base-document @@ -10265,11 +10156,11 @@ class Ls { * @returns New "edge" document with buffered changes integrated */ rebase(e) { - return this.stashStagedOperations(), e === null ? (this.out = [], this.BASIS = e, this.PRESTAGE = e, this.documentPresent = !1) : (this.BASIS = e, this.out ? this.PRESTAGE = new un({ mutations: this.out }).apply(this.BASIS) : this.PRESTAGE = this.BASIS), this.PRESTAGE; + return this.stashStagedOperations(), e === null ? (this.out = [], this.BASIS = e, this.PRESTAGE = e, this.documentPresent = !1) : (this.BASIS = e, this.out ? this.PRESTAGE = new an({ mutations: this.out }).apply(this.BASIS) : this.PRESTAGE = this.BASIS), this.PRESTAGE; } } -const bE = 1e3 * 60; -class _E { +const fE = 1e3 * 60; +class lE { constructor(e, { resolve: n, reject: s }) { W(this, "mutations"); W(this, "tries"); @@ -10278,15 +10169,15 @@ class _E { this.mutations = e, this.tries = 0, this.resolve = n, this.reject = s; } apply(e) { - return un.applyAll(e, this.mutations); + return an.applyAll(e, this.mutations); } squash(e) { - const n = un.squash(e, this.mutations); + const n = an.squash(e, this.mutations); return n.assignRandomTransactionId(), n; } } -const Tl = (r, e) => r.concat(e.mutations); -class CE { +const Sl = (r, e) => r.concat(e.mutations); +class hE { constructor(e) { W(this, "mutations"); /** @@ -10333,7 +10224,7 @@ class CE { * Whether or not we are currently commiting */ W(this, "committerRunning", !1); - this.buffer = new Ls(e), this.document = new wE(e), this.document.onMutation = (n) => this.handleDocMutation(n), this.document.onRemoteMutation = (n) => this.onRemoteMutation && this.onRemoteMutation(n), this.document.onRebase = (n, s, a) => this.handleDocRebase(n, s, a), this.document.onConsistencyChanged = (n) => this.handleDocConsistencyChanged(n), this.LOCAL = e, this.mutations = [], this.commits = []; + this.buffer = new Ls(e), this.document = new cE(e), this.document.onMutation = (n) => this.handleDocMutation(n), this.document.onRemoteMutation = (n) => this.onRemoteMutation && this.onRemoteMutation(n), this.document.onRebase = (n, s, a) => this.handleDocRebase(n, s, a), this.document.onConsistencyChanged = (n) => this.handleDocConsistencyChanged(n), this.LOCAL = e, this.mutations = [], this.commits = []; } // Used to reset the state of the local document model. If the model has been inconsistent // for too long, it has probably missed a notification, and should reload the document from the server @@ -10367,7 +10258,7 @@ class CE { } ct("Committing local changes"); const s = this.buffer.purge(); - this.commits.push(new _E(s ? [s] : [], { resolve: e, reject: n })), this.buffer = new Ls(this.LOCAL), this.performCommits(); + this.commits.push(new lE(s ? [s] : [], { resolve: e, reject: n })), this.buffer = new Ls(this.LOCAL), this.performCommits(); }); } // Starts the committer that will try to committ all staged commits to the database @@ -10391,7 +10282,7 @@ class CE { ct("Commit succeeded"), s.success(), e.resolve(), this._cycleCommitter(); }, failure: () => { - ct("Commit failed"), e.tries += 1, this.LOCAL !== null && this.commits.unshift(e), s.failure(), e.tries < 200 && setTimeout(() => this._cycleCommitter(), Math.min(e.tries * 1e3, bE)); + ct("Commit failed"), e.tries += 1, this.LOCAL !== null && this.commits.unshift(e), s.failure(), e.tries < 200 && setTimeout(() => this._cycleCommitter(), Math.min(e.tries * 1e3, fE)); }, cancel: (u) => { this.commits.forEach((f) => f.reject(u)), this.commits = [], this.reset(this.document.HEAD), this.buffer = new Ls(this.LOCAL), this.committerRunning = !1; @@ -10422,8 +10313,8 @@ class CE { const s = this.LOCAL; this.LOCAL = this.commits.reduce((u, f) => f.apply(u), this.document.EDGE), this.LOCAL = this.buffer.rebase(this.LOCAL), s !== null && this.LOCAL !== null && (s._rev = this.LOCAL._rev), !Xn.isEqual(this.LOCAL, s) && this.onRebase && this.onRebase( this.LOCAL, - e.reduce(Tl, []), - n.reduce(Tl, []) + e.reduce(Sl, []), + n.reduce(Sl, []) ); } handleDocConsistencyChanged(e) { @@ -10433,7 +10324,7 @@ class CE { e && !n && this.onConsistencyChanged(!0), e || this.onConsistencyChanged(!1); } } -const Ll = (r) => { +const Rl = (r) => { const e = r.LOCAL, n = r.document.HEAD; return e && { ...e, @@ -10441,13 +10332,13 @@ const Ll = (r) => { _rev: (n || e)._rev, _updatedAt: (/* @__PURE__ */ new Date()).toISOString() }; -}, $l = (r) => ({ type: "snapshot", document: r }), Pl = (r) => r.document, EE = (r) => { - const e = new Ve(), n = new J1(!0), s = new Ve(), a = new Ve(), u = new Ve(), f = new Ve(), l = (x) => { - const D = new CE(x); +}, Il = (r) => ({ type: "snapshot", document: r }), Ol = (r) => r.document, dE = (r) => { + const e = new Je(), n = new G1(!0), s = new Je(), a = new Je(), u = new Je(), f = new Je(), l = (x) => { + const D = new hE(x); return D.onMutation = ({ mutation: U, remote: M }) => { s.next({ type: "mutation", - document: Ll(D), + document: Rl(D), mutations: U.mutations, origin: M ? "remote" : "local" }); @@ -10471,59 +10362,59 @@ const Ll = (r) => { n.next(U); }, D.commitHandler = (U) => f.next(U), D; }, d = r.pipe( - _h((x, D) => D.type === "snapshot" ? (x && x.commit(), l(D.document || null)) : x === null ? (console.warn( + yh((x, D) => D.type === "snapshot" ? (x && x.commit(), l(D.document || null)) : x === null ? (console.warn( 'Ignoring event of type "%s" since buffered document has not yet been set up with snapshot', D.type ), null) : x, null), - Ye( + Xe( (x) => x !== null ), - ol(), + nl(), Ss(1), mi() ), y = r.pipe( - Ye((x) => x.type === "mutation"), - al(d), - Ot(([x, D]) => (D.arrive(new un(x)), Ll(D))) + Xe((x) => x.type === "mutation"), + rl(d), + Lt(([x, D]) => (D.arrive(new an(x)), Rl(D))) ), p = e.pipe( - al(d), - eu(([x, D]) => { - x.type === "mutation" && D.add(new un({ mutations: x.mutations })), x.type === "commit" && D.commit(); + rl(d), + Za(([x, D]) => { + x.type === "mutation" && D.add(new an({ mutations: x.mutations })), x.type === "commit" && D.commit(); }), // We subscribe to this only for the side effects - Pb(mo), - tu() - ), m = (x) => e.next(x), b = (x) => m({ type: "mutation", mutations: x }), C = (x) => b([x]), R = () => { + Eb(po), + Va() + ), m = (x) => e.next(x), b = (x) => m({ type: "mutation", mutations: x }), C = (x) => b([x]), I = () => { d.pipe( - bh(1), - eu((x) => x.commit()) + mh(1), + Za((x) => x.commit()) ).subscribe(); - }, O = Gr( - d.pipe(Ot((x) => x.LOCAL)), - s.pipe(Ot(Pl)), - a.pipe(Ot(Pl)), + }, O = Hr( + d.pipe(Lt((x) => x.LOCAL)), + s.pipe(Lt(Ol)), + a.pipe(Lt(Ol)), y - ).pipe(Ot($l), Ss(1), mi()), I = Gr( + ).pipe(Lt(Il), Ss(1), mi()), R = Hr( d.pipe( - Ot((x) => x.document.HEAD), - Ot($l) + Lt((x) => x.document.HEAD), + Lt(Il) ), u ).pipe(Ss(1), mi()); return { - updates$: Gr(O, p, s, a), - consistency$: n.pipe(ol(), Ss(1), mi()), - remoteSnapshot$: I, + updates$: Hr(O, p, s, a), + consistency$: n.pipe(nl(), Ss(1), mi()), + remoteSnapshot$: R, commitRequest$: f, addMutation: C, addMutations: b, - commit: R + commit: I }; -}, AE = (r) => (e) => { +}, pE = (r) => (e) => { const { _id: n, _rev: s, _updatedAt: a, ...u } = e; return { _id: r, ...u }; -}, Fl = (r, e) => { - const n = EE(e), s = AE(r), a = { delete: { id: r } }; +}, Tl = (r, e) => { + const n = dE(e), s = pE(r), a = { delete: { id: r } }; return { events: n.updates$, consistency$: n.consistency$, @@ -10538,14 +10429,14 @@ const Ll = (r) => { mutate: (u) => n.addMutations(u), commit: () => n.commit() }; -}, xE = { type: "pending", phase: "begin" }, SE = { type: "pending", phase: "end" }; -function IE(r) { +}, gE = { type: "pending", phase: "begin" }, vE = { type: "pending", phase: "end" }; +function mE(r) { return r.type === "mutation"; } -function RE(r) { +function yE(r) { return r.transactionTotalEvents > 1; } -function OE(r) { +function wE(r) { const e = Xn.groupBy( r.filter((n) => n.type === "mutation"), (n) => n.transactionId @@ -10554,9 +10445,9 @@ function OE(r) { (n) => n.length === n[0].transactionTotalEvents ); } -function TE(r, e, n = {}) { +function bE(r, e, n = {}) { const { publishedId: s, draftId: a } = e; - return Eb( + return pb( () => r.observable.listen( "*[_id == $publishedId || _id == $draftId]", { @@ -10571,59 +10462,56 @@ function TE(r, e, n = {}) { } ) ).pipe( - ka( + el( (f) => f.type === "welcome" ? u().pipe( - ka((l) => [ - Ml(a, l.draft), - Ml(s, l.published) + el((l) => [ + Ll(a, l.draft), + Ll(s, l.published) ]) - ) : Qa(f) + ) : gh(f) ), - _h( + yh( (f, l) => { - if (!IE(l)) + if (!mE(l)) return { next: [l], buffer: [] }; - const d = f.buffer.length > 0, y = RE(l); + const d = f.buffer.length > 0, y = yE(l); if (!y && !d) return { next: [l], buffer: [] }; if (!y) return { next: [], buffer: f.buffer.concat(l) }; const p = f.buffer.concat(l); - return OE(p) ? { next: p.concat(SE), buffer: [] } : { next: p.length === 1 ? [xE] : [], buffer: p }; + return wE(p) ? { next: p.concat(vE), buffer: [] } : { next: p.length === 1 ? [gE] : [], buffer: p }; }, { next: [], buffer: [] } ), // note: this flattens the array, and in the case of an empty array, no event will be pushed downstream - an((f) => f.next), - ka( - (f) => globalThis.SLOW ? Ab(1e4).pipe(Ot(() => f)) : Qa(f) - ) + on((f) => f.next) ); function u() { return r.observable.getDocuments([a, s], { tag: "document.snapshots" }).pipe( - Ot(([f, l]) => ({ + Lt(([f, l]) => ({ draft: f, published: l })) ); } } -function Ml(r, e) { +function Ll(r, e) { return { type: "snapshot", documentId: r, document: e }; } -const Dl = (r) => (e) => e.type !== "reconnect" && e.type !== "pending" && e.documentId === r; +const $l = (r) => (e) => e.type !== "reconnect" && e.type !== "pending" && e.documentId === r; function $s(r) { return (e) => ({ ...e, version: r }); } -function LE(r) { +function _E(r) { if (!r._id) throw new Error("Expected document to have an _id"); } -function $E(r, e) { +function CE(r, e) { const { resultRev: n, ...s } = r; return s.mutations.flatMap((u) => { const f = Object.values(u); @@ -10632,12 +10520,12 @@ function $E(r, e) { return f[0].id || f[0]._id; }).every((u) => u === e); } -function PE(r, e) { +function EE(r, e) { return e.mutations.flatMap((n) => { if (n.createIfNotExists) return []; if (n.create) - return LE(n.create), { + return _E(n.create), { actionType: "sanity.action.document.create", publishedId: r.publishedId, attributes: n.create, @@ -10653,13 +10541,13 @@ function PE(r, e) { throw new Error("Cannot map mutation to action"); }); } -function FE(r, e, n) { - return $E(n, e.publishedId) ? xd(r, n) : r.observable.action(PE(e, n), { +function AE(r, e, n) { + return CE(n, e.publishedId) ? Cd(r, n) : r.observable.action(EE(e, n), { tag: "document.commit", transactionId: n.transactionId }); } -function xd(r, e) { +function Cd(r, e) { const { resultRev: n, ...s } = e; return r.dataRequest("mutate", s, { visibility: "async", @@ -10670,11 +10558,11 @@ function xd(r, e) { skipCrossDatasetReferenceValidation: !0 }); } -function ME(r, e, n, s) { - return Ri( - s ? FE(r, e, n.mutation.params) : xd(r, n.mutation.params) +function xE(r, e, n, s) { + return Ii( + s ? AE(r, e, n.mutation.params) : Cd(r, n.mutation.params) ).pipe( - eu({ + Za({ error: (a) => { "statusCode" in a && typeof a.statusCode == "number" && a.statusCode >= 400 && a.statusCode <= 500 ? n.cancel(a) : n.failure(a); }, @@ -10682,121 +10570,114 @@ function ME(r, e, n, s) { }) ); } -function DE(r, e, n) { - const { publishedId: s, draftId: a } = e, u = new Ve(), f = TE(r, e).pipe( - tu({ connector: () => u }) +function SE(r, e, n) { + const { publishedId: s, draftId: a } = e, u = new Je(), f = bE(r, e).pipe( + Va({ connector: () => u }) ), l = f.pipe( - Ye((b) => b.type === "reconnect") - ), d = Fl( + Xe((b) => b.type === "reconnect") + ), d = Tl( a, - f.pipe(Ye(Dl(a))) - ), y = Fl( + f.pipe(Xe($l(a))) + ), y = Tl( s, - f.pipe(Ye(Dl(s))) + f.pipe(Xe($l(s))) ), p = f.pipe( - Ye((b) => b.type === "pending") - ), m = Gr(d.commitRequest$, y.commitRequest$).pipe( - an( + Xe((b) => b.type === "pending") + ), m = Hr(d.commitRequest$, y.commitRequest$).pipe( + on( (b) => n.pipe( - bh(1), - an( - (C) => ME(r, e, b, C) + mh(1), + on( + (C) => xE(r, e, b, C) ) ) ), - an(() => mo), - tu() + on(() => po), + Va() ); return { transactionsPendingEvents$: p, draft: { ...d, - events: Gr(m, l, d.events).pipe(Ot($s("draft"))), + events: Hr(m, l, d.events).pipe(Lt($s("draft"))), consistency$: d.consistency$, - remoteSnapshot$: d.remoteSnapshot$.pipe(Ot($s("draft"))) + remoteSnapshot$: d.remoteSnapshot$.pipe(Lt($s("draft"))) }, published: { ...y, - events: Gr(m, l, y.events).pipe(Ot($s("published"))), + events: Hr(m, l, y.events).pipe(Lt($s("published"))), consistency$: y.consistency$, - remoteSnapshot$: y.remoteSnapshot$.pipe(Ot($s("published"))) + remoteSnapshot$: y.remoteSnapshot$.pipe(Lt($s("published"))) }, complete: () => u.complete() }; } -let Bt = null; +let jt = null; self.addEventListener("message", (r) => { - if (console.log("Message received from main thread", r.data, { - unstable__adapter: Vs, - unstable__environment: m1 - }), UE(r.data)) + if (RE(r.data)) if (r.data.type === "construct") { - Bt && (Bt.complete(), Bt = null); - const { clientConfig: e, idPair: n, serverActionsEnabled: s } = r.data, a = aC(e); - console.log("constructing checkout pair on main thread", { - client: a, - idPair: n, - serverActionsEnabled: s - }), Bt = DE(a, n, Qa(s)), console.log("instance on main thread", { instance: Bt }); - const { complete: u } = Bt, f = []; + jt && (jt.complete(), jt = null); + const { clientConfig: e, idPair: n, serverActionsEnabled: s } = r.data, a = V_(e); + jt = SE(a, n, gh(s)); + const { complete: u } = jt, f = []; f.push( - Bt.transactionsPendingEvents$.subscribe((l) => { - console.log("transactionsPendingEvents$", l), ur({ type: "transactionsPendingEvents$", payload: l }); + jt.transactionsPendingEvents$.subscribe((l) => { + ur({ type: "transactionsPendingEvents$", payload: l }); }), - Bt.draft.consistency$.subscribe((l) => { - console.log("draft.consistency$", l), ur({ type: "draft.consistency$", payload: l }); + jt.draft.consistency$.subscribe((l) => { + ur({ type: "draft.consistency$", payload: l }); }), - Bt.draft.events.subscribe((l) => { - console.log("draft.events", l), ur({ type: "draft.events", payload: l }); + jt.draft.events.subscribe((l) => { + ur({ type: "draft.events", payload: l }); }), - Bt.draft.remoteSnapshot$.subscribe((l) => { - console.log("draft.remoteSnapshot$", l), ur({ type: "draft.remoteSnapshot$", payload: l }); + jt.draft.remoteSnapshot$.subscribe((l) => { + ur({ type: "draft.remoteSnapshot$", payload: l }); }), - Bt.published.consistency$.subscribe((l) => { - console.log("published.consistency$", l), ur({ type: "published.consistency$", payload: l }); + jt.published.consistency$.subscribe((l) => { + ur({ type: "published.consistency$", payload: l }); }), - Bt.published.events.subscribe((l) => { - console.log("published.events", l), ur({ type: "published.events", payload: l }); + jt.published.events.subscribe((l) => { + ur({ type: "published.events", payload: l }); }), - Bt.published.remoteSnapshot$.subscribe((l) => { - console.log("published.remoteSnapshot$", l), ur({ type: "published.remoteSnapshot$", payload: l }); + jt.published.remoteSnapshot$.subscribe((l) => { + ur({ type: "published.remoteSnapshot$", payload: l }); }) - ), Bt.complete = () => { + ), jt.complete = () => { for (const l of f) l.unsubscribe(); f.length = 0, u(); }; - } else if (Bt) - switch (console.warn("Handling event", r.data.type, r.data), r.data.type) { + } else if (jt) + switch (r.data.type) { case "draft.commit": - Bt.draft.commit(); + jt.draft.commit(); break; case "draft.mutate": - Bt.draft.mutate(r.data.payload); + jt.draft.mutate(r.data.payload); break; case "published.commit": - Bt.published.commit(); + jt.published.commit(); break; case "published.mutate": - Bt.published.mutate(r.data.payload); + jt.published.mutate(r.data.payload); break; default: throw new TypeError(`Unknown event type: ${r.data.type}`, { cause: r }); } else - throw console.error("Received message before instance was constructed", r.data), new Error("Received message before instance was constructed", { cause: r }); + throw new Error("Received message before instance was constructed", { cause: r }); }); function ur(r) { self.postMessage(r); } -function UE(r) { +function RE(r) { return typeof r == "object" && r && "type" in r && typeof r.type == "string"; } -const Sd = /_key\s*==\s*['"](.*)['"]/; -function kE(r) { - return typeof r == "string" ? Sd.test(r.trim()) : typeof r == "object" && "_key" in r; +const Ed = /_key\s*==\s*['"](.*)['"]/; +function IE(r) { + return typeof r == "string" ? Ed.test(r.trim()) : typeof r == "object" && "_key" in r; } -function Id(r) { +function Ad(r) { if (!Array.isArray(r)) throw new Error("Path is not an array"); return r.reduce((e, n, s) => { @@ -10805,7 +10686,7 @@ function Id(r) { return `${e}[${n}]`; if (a === "string") return `${e}${s === 0 ? "" : "."}${n}`; - if (kE(n) && n._key) + if (IE(n) && n._key) return `${e}[_key=="${n._key}"]`; if (Array.isArray(n)) { const [u, f] = n; @@ -10814,14 +10695,14 @@ function Id(r) { throw new Error(`Unsupported path segment \`${JSON.stringify(n)}\``); }, ""); } -const Ul = { +const Pl = { "\f": "\\f", "\n": "\\n", "\r": "\\r", " ": "\\t", "'": "\\'", "\\": "\\\\" -}, kl = { +}, Fl = { "\\f": "\f", "\\n": ` `, @@ -10830,15 +10711,15 @@ const Ul = { "\\'": "'", "\\\\": "\\" }; -function NE(r) { - return `$${r.map((e) => typeof e == "string" ? `['${e.replace(/[\f\n\r\t'\\]/g, (n) => Ul[n])}']` : typeof e == "number" ? `[${e}]` : e._key !== "" ? `[?(@._key=='${e._key.replace(/['\\]/g, (n) => Ul[n])}')]` : `[${e._index}]`).join("")}`; +function OE(r) { + return `$${r.map((e) => typeof e == "string" ? `['${e.replace(/[\f\n\r\t'\\]/g, (n) => Pl[n])}']` : typeof e == "number" ? `[${e}]` : e._key !== "" ? `[?(@._key=='${e._key.replace(/['\\]/g, (n) => Pl[n])}')]` : `[${e._index}]`).join("")}`; } -function Nl(r) { +function Ml(r) { const e = [], n = /\['(.*?)'\]|\[(\d+)\]|\[\?\(@\._key=='(.*?)'\)\]/g; let s; for (; (s = n.exec(r)) !== null; ) { if (s[1] !== void 0) { - const a = s[1].replace(/\\(\\|f|n|r|t|')/g, (u) => kl[u]); + const a = s[1].replace(/\\(\\|f|n|r|t|')/g, (u) => Fl[u]); e.push(a); continue; } @@ -10847,7 +10728,7 @@ function Nl(r) { continue; } if (s[3] !== void 0) { - const a = s[3].replace(/\\(\\')/g, (u) => kl[u]); + const a = s[3].replace(/\\(\\')/g, (u) => Fl[u]); e.push({ _key: a, _index: -1 @@ -10857,7 +10738,7 @@ function Nl(r) { } return e; } -function Rd(r) { +function xd(r) { return r.map((e) => { if (typeof e == "string" || typeof e == "number") return e; @@ -10868,7 +10749,7 @@ function Rd(r) { throw new Error(`invalid segment:${JSON.stringify(e)}`); }); } -function qE(r) { +function TE(r) { return r.map((e) => { if (typeof e == "string" || typeof e == "number") return e; @@ -10877,10 +10758,10 @@ function qE(r) { throw new Error(`invalid segment:${JSON.stringify(e)}`); }); } -function WE(r, e) { +function LE(r, e) { if (!(e != null && e.mappings)) return; - const n = NE(qE(r)); + const n = OE(TE(r)); if (e.mappings[n] !== void 0) return { mapping: e.mappings[n], @@ -10893,35 +10774,35 @@ function WE(r, e) { const [a, u] = s[0], f = n.substring(a.length); return { mapping: u, matchedPath: a, pathSuffix: f }; } -function BE(r) { +function $E(r) { return r !== null && Array.isArray(r); } -function ql(r) { +function Dl(r) { return typeof r == "object" && r !== null; } function Xs(r, e, n = []) { - return BE(r) ? r.map((s, a) => { - if (ql(s)) { + return $E(r) ? r.map((s, a) => { + if (Dl(s)) { const u = s._key; if (typeof u == "string") return Xs(s, e, n.concat({ _key: u, _index: a })); } return Xs(s, e, n.concat(a)); - }) : ql(r) ? Object.fromEntries( + }) : Dl(r) ? Object.fromEntries( Object.entries(r).map(([s, a]) => [s, Xs(a, e, n.concat(s))]) ) : e(r, n); } -function Od(r, e, n) { +function Sd(r, e, n) { return Xs(r, (s, a) => { if (typeof s != "string") return s; - const u = WE(a, e); + const u = LE(a, e); if (!u) return s; const { mapping: f, matchedPath: l } = u; if (f.type !== "value" || f.source.type !== "documentValue") return s; - const d = e.documents[f.source.document], y = e.paths[f.source.path], p = Nl(l), m = Nl(y).concat(a.slice(p.length)); + const d = e.documents[f.source.document], y = e.paths[f.source.path], p = Ml(l), m = Ml(y).concat(a.slice(p.length)); return n({ sourcePath: m, sourceDocument: d, @@ -10930,11 +10811,11 @@ function Od(r, e, n) { }); }); } -const au = "drafts."; -function HE(r) { - return r.startsWith(au) ? r.slice(au.length) : r; +const iu = "drafts."; +function PE(r) { + return r.startsWith(iu) ? r.slice(iu.length) : r; } -function GE(r) { +function FE(r) { const { baseUrl: e, workspace: n = "default", @@ -10953,35 +10834,35 @@ function GE(r) { throw new Error("id is required"); if (e !== "/" && e.endsWith("/")) throw new Error("baseUrl must not end with a slash"); - const y = n === "default" ? void 0 : n, p = s === "default" ? void 0 : s, m = HE(a), b = Array.isArray(f) ? Id(Rd(f)) : f, C = new URLSearchParams({ + const y = n === "default" ? void 0 : n, p = s === "default" ? void 0 : s, m = PE(a), b = Array.isArray(f) ? Ad(xd(f)) : f, C = new URLSearchParams({ baseUrl: e, id: m, type: u, path: b }); - y && C.set("workspace", y), p && C.set("tool", p), l && C.set("projectId", l), d && C.set("dataset", d), a.startsWith(au) && C.set("isDraft", ""); - const R = [e === "/" ? "" : e]; - y && R.push(y); + y && C.set("workspace", y), p && C.set("tool", p), l && C.set("projectId", l), d && C.set("dataset", d), a.startsWith(iu) && C.set("isDraft", ""); + const I = [e === "/" ? "" : e]; + y && I.push(y); const O = [ "mode=presentation", `id=${m}`, `type=${u}`, `path=${encodeURIComponent(b)}` ]; - return p && O.push(`tool=${p}`), R.push("intent", "edit", `${O.join(";")}?${C}`), R.join("/"); + return p && O.push(`tool=${p}`), I.push("intent", "edit", `${O.join(";")}?${C}`), I.join("/"); } -function jE(r) { +function ME(r) { let e = typeof r == "string" ? r : r.baseUrl; return e !== "/" && (e = e.replace(/\/$/, "")), typeof r == "string" ? { baseUrl: e } : { ...r, baseUrl: e }; } -const Ja = ({ sourcePath: r, resultPath: e, value: n }) => { - if (KE(n) || JE(n)) +const Ga = ({ sourcePath: r, resultPath: e, value: n }) => { + if (UE(n) || kE(n)) return !1; const s = r.at(-1); return !(r.at(-2) === "slug" && s === "current" || typeof s == "string" && s.startsWith("_") || typeof s == "number" && r.at(-2) === "marks" || s === "href" && typeof r.at(-2) == "number" && r.at(-3) === "markDefs" || s === "style" || s === "listItem" || r.some( (a) => a === "meta" || a === "metadata" || a === "openGraph" || a === "seo" - ) || Wl(r) || Wl(e) || typeof s == "string" && zE.has(s)); -}, zE = /* @__PURE__ */ new Set([ + ) || Ul(r) || Ul(e) || typeof s == "string" && DE.has(s)); +}, DE = /* @__PURE__ */ new Set([ "color", "colour", "currency", @@ -11021,10 +10902,10 @@ const Ja = ({ sourcePath: r, resultPath: e, value: n }) => { "variant", "website" ]); -function KE(r) { +function UE(r) { return /^\d{4}-\d{2}-\d{2}/.test(r) ? !!Date.parse(r) : !1; } -function JE(r) { +function kE(r) { try { new URL(r, r.startsWith("/") ? "https://acme.com" : void 0); } catch { @@ -11032,14 +10913,14 @@ function JE(r) { } return !0; } -function Wl(r) { +function Ul(r) { return r.some((e) => typeof e == "string" && e.match(/type/i) !== null); } const Ps = 20; -function Td(r, e, n) { +function Rd(r, e, n) { var s, a, u, f, l, d, y, p, m; - const { filter: b, logger: C, enabled: R } = n; - if (!R) { + const { filter: b, logger: C, enabled: I } = n; + if (!I) { const x = "config.enabled must be true, don't call this function otherwise"; throw (s = C == null ? void 0 : C.error) == null || s.call(C, `[@sanity/client]: ${x}`, { result: r, resultSourceMap: e, config: n }), new TypeError(x); } @@ -11056,39 +10937,39 @@ function Td(r, e, n) { const O = { encoded: [], skipped: [] - }, I = Od( + }, R = Sd( r, e, ({ sourcePath: x, sourceDocument: D, resultPath: U, value: M }) => { - if ((typeof b == "function" ? b({ sourcePath: x, resultPath: U, filterDefault: Ja, sourceDocument: D, value: M }) : Ja({ sourcePath: x, resultPath: U, filterDefault: Ja, sourceDocument: D, value: M })) === !1) + if ((typeof b == "function" ? b({ sourcePath: x, resultPath: U, filterDefault: Ga, sourceDocument: D, value: M }) : Ga({ sourcePath: x, resultPath: U, filterDefault: Ga, sourceDocument: D, value: M })) === !1) return C && O.skipped.push({ - path: Bl(x), + path: kl(x), value: `${M.slice(0, Ps)}${M.length > Ps ? "..." : ""}`, length: M.length }), M; C && O.encoded.push({ - path: Bl(x), + path: kl(x), value: `${M.slice(0, Ps)}${M.length > Ps ? "..." : ""}`, length: M.length }); - const { baseUrl: z, workspace: ht, tool: _t } = jE( + const { baseUrl: z, workspace: ht, tool: _t } = ME( typeof n.studioUrl == "function" ? n.studioUrl(D) : n.studioUrl ); if (!z) return M; - const { _id: xt, _type: $e, _projectId: Be, _dataset: cn } = D; - return Nb( + const { _id: xt, _type: Te, _projectId: qe, _dataset: un } = D; + return Ob( M, { origin: "sanity.io", - href: GE({ + href: FE({ baseUrl: z, workspace: ht, tool: _t, id: xt, - type: $e, + type: Te, path: x, - ...!n.omitCrossDatasetReferenceData && { dataset: cn, projectId: Be } + ...!n.omitCrossDatasetReferenceData && { dataset: un, projectId: qe } }) }, // We use custom logic to determine if we should skip encoding @@ -11104,27 +10985,27 @@ function Td(r, e, n) { )), O.encoded.length > 0 && ((d = C == null ? void 0 : C.log) == null || d.call(C, "[@sanity/client]: Table of encoded paths"), (y = (C == null ? void 0 : C.table) || C.log) == null || y(O.encoded)), O.skipped.length > 0) { const U = /* @__PURE__ */ new Set(); for (const { path: M } of O.skipped) - U.add(M.replace(Sd, "0").replace(/\[\d+\]/g, "[]")); + U.add(M.replace(Ed, "0").replace(/\[\d+\]/g, "[]")); (p = C == null ? void 0 : C.log) == null || p.call(C, "[@sanity/client]: List of skipped paths", [...U.values()]); } (x || D) && ((m = C == null ? void 0 : C.groupEnd) == null || m.call(C)); } - return I; + return R; } -function Bl(r) { - return Id(Rd(r)); +function kl(r) { + return Ad(xd(r)); } -var XE = /* @__PURE__ */ Object.freeze({ +var NE = /* @__PURE__ */ Object.freeze({ __proto__: null, - stegaEncodeSourceMap: Td + stegaEncodeSourceMap: Rd }); -const VE = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ +const qE = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, - encodeIntoResult: Od, - stegaEncodeSourceMap: Td, - stegaEncodeSourceMap$1: XE + encodeIntoResult: Sd, + stegaEncodeSourceMap: Rd, + stegaEncodeSourceMap$1: NE }, Symbol.toStringTag, { value: "Module" })); -var uu = { exports: {} }; +var su = { exports: {} }; /** @license * eventsource.js * Available under MIT License (MIT) @@ -11132,7 +11013,7 @@ var uu = { exports: {} }; */ (function(r, e) { (function(n) { - var s = n.setTimeout, a = n.clearTimeout, u = n.XMLHttpRequest, f = n.XDomainRequest, l = n.ActiveXObject, d = n.EventSource, y = n.document, p = n.Promise, m = n.fetch, b = n.Response, C = n.TextDecoder, R = n.TextEncoder, O = n.AbortController; + var s = n.setTimeout, a = n.clearTimeout, u = n.XMLHttpRequest, f = n.XDomainRequest, l = n.ActiveXObject, d = n.EventSource, y = n.document, p = n.Promise, m = n.fetch, b = n.Response, C = n.TextDecoder, I = n.TextEncoder, O = n.AbortController; if (typeof window < "u" && typeof y < "u" && !("readyState" in y) && y.body == null && (y.readyState = "loading", window.addEventListener("load", function(L) { y.readyState = "complete"; }, !1)), u == null && l != null && (u = function() { @@ -11144,18 +11025,18 @@ var uu = { exports: {} }; }), Date.now || (Date.now = function() { return (/* @__PURE__ */ new Date()).getTime(); }), O == null) { - var I = m; + var R = m; m = function(L, k) { var H = k.signal; - return I(L, { headers: k.headers, credentials: k.credentials, cache: k.cache }).then(function(N) { - var V = N.body.getReader(); - return H._reader = V, H._aborted && H._reader.cancel(), { + return R(L, { headers: k.headers, credentials: k.credentials, cache: k.cache }).then(function(N) { + var Y = N.body.getReader(); + return H._reader = Y, H._aborted && H._reader.cancel(), { status: N.status, statusText: N.statusText, headers: N.headers, body: { getReader: function() { - return V; + return Y; } } }; @@ -11173,12 +11054,12 @@ var uu = { exports: {} }; this.bitsNeeded = 0, this.codePoint = 0; } x.prototype.decode = function(L) { - function k(ft, yt, Y) { - if (Y === 1) + function k(ft, yt, V) { + if (V === 1) return ft >= 128 >> yt && ft << yt <= 2047; - if (Y === 2) + if (V === 2) return ft >= 2048 >> yt && ft << yt <= 55295 || ft >= 57344 >> yt && ft << yt <= 65535; - if (Y === 3) + if (V === 3) return ft >= 65536 >> yt && ft << yt <= 1114111; throw new Error(); } @@ -11191,21 +11072,21 @@ var uu = { exports: {} }; return 3; throw new Error(); } - for (var N = 65533, V = "", G = this.bitsNeeded, Q = this.codePoint, mt = 0; mt < L.length; mt += 1) { + for (var N = 65533, Y = "", G = this.bitsNeeded, Q = this.codePoint, mt = 0; mt < L.length; mt += 1) { var at = L[mt]; - G !== 0 && (at < 128 || at > 191 || !k(Q << 6 | at & 63, G - 6, H(G, Q))) && (G = 0, Q = N, V += String.fromCharCode(Q)), G === 0 ? (at >= 0 && at <= 127 ? (G = 0, Q = at) : at >= 192 && at <= 223 ? (G = 6 * 1, Q = at & 31) : at >= 224 && at <= 239 ? (G = 6 * 2, Q = at & 15) : at >= 240 && at <= 247 ? (G = 6 * 3, Q = at & 7) : (G = 0, Q = N), G !== 0 && !k(Q, G, H(G, Q)) && (G = 0, Q = N)) : (G -= 6, Q = Q << 6 | at & 63), G === 0 && (Q <= 65535 ? V += String.fromCharCode(Q) : (V += String.fromCharCode(55296 + (Q - 65535 - 1 >> 10)), V += String.fromCharCode(56320 + (Q - 65535 - 1 & 1023)))); + G !== 0 && (at < 128 || at > 191 || !k(Q << 6 | at & 63, G - 6, H(G, Q))) && (G = 0, Q = N, Y += String.fromCharCode(Q)), G === 0 ? (at >= 0 && at <= 127 ? (G = 0, Q = at) : at >= 192 && at <= 223 ? (G = 6 * 1, Q = at & 31) : at >= 224 && at <= 239 ? (G = 6 * 2, Q = at & 15) : at >= 240 && at <= 247 ? (G = 6 * 3, Q = at & 7) : (G = 0, Q = N), G !== 0 && !k(Q, G, H(G, Q)) && (G = 0, Q = N)) : (G -= 6, Q = Q << 6 | at & 63), G === 0 && (Q <= 65535 ? Y += String.fromCharCode(Q) : (Y += String.fromCharCode(55296 + (Q - 65535 - 1 >> 10)), Y += String.fromCharCode(56320 + (Q - 65535 - 1 & 1023)))); } - return this.bitsNeeded = G, this.codePoint = Q, V; + return this.bitsNeeded = G, this.codePoint = Q, Y; }; var D = function() { try { - return new C().decode(new R().encode("test"), { stream: !0 }) === "test"; + return new C().decode(new I().encode("test"), { stream: !0 }) === "test"; } catch (L) { console.debug("TextDecoder does not support streaming option. Using polyfill instead: " + L); } return !1; }; - (C == null || R == null || !D()) && (C = x); + (C == null || I == null || !D()) && (C = x); var U = function() { }; function M(L) { @@ -11213,62 +11094,62 @@ var uu = { exports: {} }; } M.prototype.open = function(L, k) { this._abort(!0); - var H = this, N = this._xhr, V = 1, G = 0; - this._abort = function(Y) { - H._sendTimeout !== 0 && (a(H._sendTimeout), H._sendTimeout = 0), (V === 1 || V === 2 || V === 3) && (V = 4, N.onload = U, N.onerror = U, N.onabort = U, N.onprogress = U, N.onreadystatechange = U, N.abort(), G !== 0 && (a(G), G = 0), Y || (H.readyState = 4, H.onabort(null), H.onreadystatechange())), V = 0; + var H = this, N = this._xhr, Y = 1, G = 0; + this._abort = function(V) { + H._sendTimeout !== 0 && (a(H._sendTimeout), H._sendTimeout = 0), (Y === 1 || Y === 2 || Y === 3) && (Y = 4, N.onload = U, N.onerror = U, N.onabort = U, N.onprogress = U, N.onreadystatechange = U, N.abort(), G !== 0 && (a(G), G = 0), V || (H.readyState = 4, H.onabort(null), H.onreadystatechange())), Y = 0; }; var Q = function() { - if (V === 1) { - var Y = 0, pt = "", we = void 0; + if (Y === 1) { + var V = 0, pt = "", we = void 0; if ("contentType" in N) - Y = 200, pt = "OK", we = N.contentType; + V = 200, pt = "OK", we = N.contentType; else try { - Y = N.status, pt = N.statusText, we = N.getResponseHeader("Content-Type"); + V = N.status, pt = N.statusText, we = N.getResponseHeader("Content-Type"); } catch { - Y = 0, pt = "", we = void 0; + V = 0, pt = "", we = void 0; } - Y !== 0 && (V = 2, H.readyState = 2, H.status = Y, H.statusText = pt, H._contentType = we, H.onreadystatechange()); + V !== 0 && (Y = 2, H.readyState = 2, H.status = V, H.statusText = pt, H._contentType = we, H.onreadystatechange()); } }, mt = function() { - if (Q(), V === 2 || V === 3) { - V = 3; - var Y = ""; + if (Q(), Y === 2 || Y === 3) { + Y = 3; + var V = ""; try { - Y = N.responseText; + V = N.responseText; } catch { } - H.readyState = 3, H.responseText = Y, H.onprogress(); + H.readyState = 3, H.responseText = V, H.onprogress(); } - }, at = function(Y, pt) { + }, at = function(V, pt) { if ((pt == null || pt.preventDefault == null) && (pt = { preventDefault: U - }), mt(), V === 1 || V === 2 || V === 3) { - if (V = 4, G !== 0 && (a(G), G = 0), H.readyState = 4, Y === "load") + }), mt(), Y === 1 || Y === 2 || Y === 3) { + if (Y = 4, G !== 0 && (a(G), G = 0), H.readyState = 4, V === "load") H.onload(pt); - else if (Y === "error") + else if (V === "error") H.onerror(pt); - else if (Y === "abort") + else if (V === "abort") H.onabort(pt); else throw new TypeError(); H.onreadystatechange(); } - }, ft = function(Y) { - N != null && (N.readyState === 4 ? (!("onload" in N) || !("onerror" in N) || !("onabort" in N)) && at(N.responseText === "" ? "error" : "load", Y) : N.readyState === 3 ? "onprogress" in N || mt() : N.readyState === 2 && Q()); + }, ft = function(V) { + N != null && (N.readyState === 4 ? (!("onload" in N) || !("onerror" in N) || !("onabort" in N)) && at(N.responseText === "" ? "error" : "load", V) : N.readyState === 3 ? "onprogress" in N || mt() : N.readyState === 2 && Q()); }, yt = function() { G = s(function() { yt(); }, 500), N.readyState === 3 && mt(); }; - "onload" in N && (N.onload = function(Y) { - at("load", Y); - }), "onerror" in N && (N.onerror = function(Y) { - at("error", Y); - }), "onabort" in N && (N.onabort = function(Y) { - at("abort", Y); - }), "onprogress" in N && (N.onprogress = mt), "onreadystatechange" in N && (N.onreadystatechange = function(Y) { - ft(Y); + "onload" in N && (N.onload = function(V) { + at("load", V); + }), "onerror" in N && (N.onerror = function(V) { + at("error", V); + }), "onabort" in N && (N.onabort = function(V) { + at("abort", V); + }), "onprogress" in N && (N.onprogress = mt), "onreadystatechange" in N && (N.onreadystatechange = function(V) { + ft(V); }), ("contentType" in N || !("ontimeout" in u.prototype)) && (k += (k.indexOf("?") === -1 ? "?" : "&") + "padding=true"), N.open(L, k, !0), "readyState" in N && (G = s(function() { yt(); }, 0)); @@ -11305,7 +11186,7 @@ var uu = { exports: {} }; function ht(L) { for (var k = /* @__PURE__ */ Object.create(null), H = L.split(`\r `), N = 0; N < H.length; N += 1) { - var V = H[N], G = V.split(": "), Q = G.shift(), mt = G.join(": "); + var Y = H[N], G = Y.split(": "), Q = G.shift(), mt = G.join(": "); k[z(Q)] = mt; } this._map = k; @@ -11315,8 +11196,8 @@ var uu = { exports: {} }; }, u != null && u.HEADERS_RECEIVED == null && (u.HEADERS_RECEIVED = 2); function _t() { } - _t.prototype.open = function(L, k, H, N, V, G, Q) { - L.open("GET", V); + _t.prototype.open = function(L, k, H, N, Y, G, Q) { + L.open("GET", Y); var mt = 0; L.onprogress = function() { var ft = L.responseText, yt = ft.slice(mt); @@ -11329,8 +11210,8 @@ var uu = { exports: {} }; N(null); }, L.onreadystatechange = function() { if (L.readyState === u.HEADERS_RECEIVED) { - var ft = L.status, yt = L.statusText, Y = L.getResponseHeader("Content-Type"), pt = L.getAllResponseHeaders(); - k(ft, yt, Y, new ht(pt)); + var ft = L.status, yt = L.statusText, V = L.getResponseHeader("Content-Type"), pt = L.getAllResponseHeaders(); + k(ft, yt, V, new ht(pt)); } }, L.withCredentials = G; for (var at in Q) @@ -11343,237 +11224,237 @@ var uu = { exports: {} }; xt.prototype.get = function(L) { return this._headers.get(L); }; - function $e() { + function Te() { } - $e.prototype.open = function(L, k, H, N, V, G, Q) { + Te.prototype.open = function(L, k, H, N, Y, G, Q) { var mt = null, at = new O(), ft = at.signal, yt = new C(); - return m(V, { + return m(Y, { headers: Q, credentials: G ? "include" : "same-origin", signal: ft, cache: "no-store" - }).then(function(Y) { - return mt = Y.body.getReader(), k(Y.status, Y.statusText, Y.headers.get("Content-Type"), new xt(Y.headers)), new p(function(pt, we) { - var hn = function() { + }).then(function(V) { + return mt = V.body.getReader(), k(V.status, V.statusText, V.headers.get("Content-Type"), new xt(V.headers)), new p(function(pt, we) { + var ln = function() { mt.read().then(function(Kt) { if (Kt.done) pt(void 0); else { var Nt = yt.decode(Kt.value, { stream: !0 }); - H(Nt), hn(); + H(Nt), ln(); } }).catch(function(Kt) { we(Kt); }); }; - hn(); + ln(); }); - }).catch(function(Y) { - if (Y.name !== "AbortError") - return Y; - }).then(function(Y) { - N(Y); + }).catch(function(V) { + if (V.name !== "AbortError") + return V; + }).then(function(V) { + N(V); }), { abort: function() { mt != null && mt.cancel(), at.abort(); } }; }; - function Be() { + function qe() { this._listeners = /* @__PURE__ */ Object.create(null); } - function cn(L) { + function un(L) { s(function() { throw L; }, 0); } - Be.prototype.dispatchEvent = function(L) { + qe.prototype.dispatchEvent = function(L) { L.target = this; var k = this._listeners[L.type]; if (k != null) for (var H = k.length, N = 0; N < H; N += 1) { - var V = k[N]; + var Y = k[N]; try { - typeof V.handleEvent == "function" ? V.handleEvent(L) : V.call(this, L); + typeof Y.handleEvent == "function" ? Y.handleEvent(L) : Y.call(this, L); } catch (G) { - cn(G); + un(G); } } - }, Be.prototype.addEventListener = function(L, k) { + }, qe.prototype.addEventListener = function(L, k) { L = String(L); var H = this._listeners, N = H[L]; N == null && (N = [], H[L] = N); - for (var V = !1, G = 0; G < N.length; G += 1) - N[G] === k && (V = !0); - V || N.push(k); - }, Be.prototype.removeEventListener = function(L, k) { + for (var Y = !1, G = 0; G < N.length; G += 1) + N[G] === k && (Y = !0); + Y || N.push(k); + }, qe.prototype.removeEventListener = function(L, k) { L = String(L); var H = this._listeners, N = H[L]; if (N != null) { - for (var V = [], G = 0; G < N.length; G += 1) - N[G] !== k && V.push(N[G]); - V.length === 0 ? delete H[L] : H[L] = V; + for (var Y = [], G = 0; G < N.length; G += 1) + N[G] !== k && Y.push(N[G]); + Y.length === 0 ? delete H[L] : H[L] = Y; } }; - function He(L) { + function We(L) { this.type = L, this.target = void 0; } function zt(L, k) { - He.call(this, L), this.data = k.data, this.lastEventId = k.lastEventId; + We.call(this, L), this.data = k.data, this.lastEventId = k.lastEventId; } - zt.prototype = Object.create(He.prototype); + zt.prototype = Object.create(We.prototype); function Qt(L, k) { - He.call(this, L), this.status = k.status, this.statusText = k.statusText, this.headers = k.headers; + We.call(this, L), this.status = k.status, this.statusText = k.statusText, this.headers = k.headers; } - Qt.prototype = Object.create(He.prototype); - function wr(L, k) { - He.call(this, L), this.error = k.error; + Qt.prototype = Object.create(We.prototype); + function yr(L, k) { + We.call(this, L), this.error = k.error; } - wr.prototype = Object.create(He.prototype); - var Vr = -1, te = 0, se = 1, Vn = 2, An = -1, kt = 0, Yr = 1, $i = 2, Co = 3, xn = /^text\/event\-stream(;.*)?$/i, br = 1e3, Eo = 18e6, fn = function(L, k) { + yr.prototype = Object.create(We.prototype); + var Yr = -1, te = 0, se = 1, Yn = 2, En = -1, kt = 0, Vr = 1, $i = 2, wo = 3, An = /^text\/event\-stream(;.*)?$/i, wr = 1e3, bo = 18e6, cn = function(L, k) { var H = L == null ? k : parseInt(L, 10); - return H !== H && (H = k), ln(H); - }, ln = function(L) { - return Math.min(Math.max(L, br), Eo); - }, Sn = function(L, k, H) { + return H !== H && (H = k), fn(H); + }, fn = function(L) { + return Math.min(Math.max(L, wr), bo); + }, xn = function(L, k, H) { try { typeof k == "function" && k.call(L, H); } catch (N) { - cn(N); + un(N); } }; function ee(L, k) { - Be.call(this), k = k || {}, this.onopen = void 0, this.onmessage = void 0, this.onerror = void 0, this.url = void 0, this.readyState = void 0, this.withCredentials = void 0, this.headers = void 0, this._close = void 0, ye(this, L, k); + qe.call(this), k = k || {}, this.onopen = void 0, this.onmessage = void 0, this.onerror = void 0, this.url = void 0, this.readyState = void 0, this.withCredentials = void 0, this.headers = void 0, this._close = void 0, ye(this, L, k); } - function _r() { + function br() { return u != null && "withCredentials" in u.prototype || f == null ? new u() : new f(); } var Pi = m != null && b != null && "body" in b.prototype; function ye(L, k, H) { k = String(k); - var N = !!H.withCredentials, V = H.lastEventIdQueryParameterName || "lastEventId", G = ln(1e3), Q = fn(H.heartbeatTimeout, 45e3), mt = "", at = G, ft = !1, yt = 0, Y = H.headers || {}, pt = H.Transport, we = Pi && pt == null ? void 0 : new M(pt != null ? new pt() : _r()), hn = pt != null && typeof pt != "string" ? new pt() : we == null ? new $e() : new _t(), Kt = void 0, Nt = 0, oe = Vr, en = "", Rn = "", be = "", On = "", Jt = kt, Zr = 0, dn = 0, Fi = function(Dt, Tt, ae, ue) { + var N = !!H.withCredentials, Y = H.lastEventIdQueryParameterName || "lastEventId", G = fn(1e3), Q = cn(H.heartbeatTimeout, 45e3), mt = "", at = G, ft = !1, yt = 0, V = H.headers || {}, pt = H.Transport, we = Pi && pt == null ? void 0 : new M(pt != null ? new pt() : br()), ln = pt != null && typeof pt != "string" ? new pt() : we == null ? new Te() : new _t(), Kt = void 0, Nt = 0, oe = Yr, tn = "", Rn = "", be = "", In = "", Jt = kt, Zr = 0, hn = 0, Fi = function(Dt, Ot, ae, ue) { if (oe === te) - if (Dt === 200 && ae != null && xn.test(ae)) { + if (Dt === 200 && ae != null && An.test(ae)) { oe = se, ft = Date.now(), at = G, L.readyState = se; var Xt = new Qt("open", { status: Dt, - statusText: Tt, + statusText: Ot, headers: ue }); - L.dispatchEvent(Xt), Sn(L, L.onopen, Xt); + L.dispatchEvent(Xt), xn(L, L.onopen, Xt); } else { - var Pt = ""; - Dt !== 200 ? (Tt && (Tt = Tt.replace(/\s+/g, " ")), Pt = "EventSource's response has a status " + Dt + " " + Tt + " that is not 200. Aborting the connection.") : Pt = "EventSource's response has a Content-Type specifying an unsupported type: " + (ae == null ? "-" : ae.replace(/\s+/g, " ")) + ". Aborting the connection.", Qr(); + var $t = ""; + Dt !== 200 ? (Ot && (Ot = Ot.replace(/\s+/g, " ")), $t = "EventSource's response has a status " + Dt + " " + Ot + " that is not 200. Aborting the connection.") : $t = "EventSource's response has a Content-Type specifying an unsupported type: " + (ae == null ? "-" : ae.replace(/\s+/g, " ")) + ". Aborting the connection.", Qr(); var Xt = new Qt("error", { status: Dt, - statusText: Tt, + statusText: Ot, headers: ue }); - L.dispatchEvent(Xt), Sn(L, L.onerror, Xt), console.error(Pt); + L.dispatchEvent(Xt), xn(L, L.onerror, Xt), console.error($t); } }, Mi = function(Dt) { if (oe === se) { - for (var Tt = -1, ae = 0; ae < Dt.length; ae += 1) { + for (var Ot = -1, ae = 0; ae < Dt.length; ae += 1) { var ue = Dt.charCodeAt(ae); (ue === ` -`.charCodeAt(0) || ue === "\r".charCodeAt(0)) && (Tt = ae); +`.charCodeAt(0) || ue === "\r".charCodeAt(0)) && (Ot = ae); } - var Xt = (Tt !== -1 ? On : "") + Dt.slice(0, Tt + 1); - On = (Tt === -1 ? On : "") + Dt.slice(Tt + 1), Dt !== "" && (ft = Date.now(), yt += Dt.length); - for (var Pt = 0; Pt < Xt.length; Pt += 1) { - var ue = Xt.charCodeAt(Pt); - if (Jt === An && ue === ` + var Xt = (Ot !== -1 ? In : "") + Dt.slice(0, Ot + 1); + In = (Ot === -1 ? In : "") + Dt.slice(Ot + 1), Dt !== "" && (ft = Date.now(), yt += Dt.length); + for (var $t = 0; $t < Xt.length; $t += 1) { + var ue = Xt.charCodeAt($t); + if (Jt === En && ue === ` `.charCodeAt(0)) Jt = kt; - else if (Jt === An && (Jt = kt), ue === "\r".charCodeAt(0) || ue === ` + else if (Jt === En && (Jt = kt), ue === "\r".charCodeAt(0) || ue === ` `.charCodeAt(0)) { if (Jt !== kt) { - Jt === Yr && (dn = Pt + 1); - var Ge = Xt.slice(Zr, dn - 1), _e = Xt.slice(dn + (dn < Pt && Xt.charCodeAt(dn) === " ".charCodeAt(0) ? 1 : 0), Pt); - Ge === "data" ? (en += ` -`, en += _e) : Ge === "id" ? Rn = _e : Ge === "event" ? be = _e : Ge === "retry" ? (G = fn(_e, G), at = G) : Ge === "heartbeatTimeout" && (Q = fn(_e, Q), Nt !== 0 && (a(Nt), Nt = s(function() { - Yn(); + Jt === Vr && (hn = $t + 1); + var Be = Xt.slice(Zr, hn - 1), _e = Xt.slice(hn + (hn < $t && Xt.charCodeAt(hn) === " ".charCodeAt(0) ? 1 : 0), $t); + Be === "data" ? (tn += ` +`, tn += _e) : Be === "id" ? Rn = _e : Be === "event" ? be = _e : Be === "retry" ? (G = cn(_e, G), at = G) : Be === "heartbeatTimeout" && (Q = cn(_e, Q), Nt !== 0 && (a(Nt), Nt = s(function() { + Vn(); }, Q))); } if (Jt === kt) { - if (en !== "") { + if (tn !== "") { mt = Rn, be === "" && (be = "message"); - var Tn = new zt(be, { - data: en.slice(1), + var On = new zt(be, { + data: tn.slice(1), lastEventId: Rn }); - if (L.dispatchEvent(Tn), be === "open" ? Sn(L, L.onopen, Tn) : be === "message" ? Sn(L, L.onmessage, Tn) : be === "error" && Sn(L, L.onerror, Tn), oe === Vn) + if (L.dispatchEvent(On), be === "open" ? xn(L, L.onopen, On) : be === "message" ? xn(L, L.onmessage, On) : be === "error" && xn(L, L.onerror, On), oe === Yn) return; } - en = "", be = ""; + tn = "", be = ""; } - Jt = ue === "\r".charCodeAt(0) ? An : kt; + Jt = ue === "\r".charCodeAt(0) ? En : kt; } else - Jt === kt && (Zr = Pt, Jt = Yr), Jt === Yr ? ue === ":".charCodeAt(0) && (dn = Pt + 1, Jt = $i) : Jt === $i && (Jt = Co); + Jt === kt && (Zr = $t, Jt = Vr), Jt === Vr ? ue === ":".charCodeAt(0) && (hn = $t + 1, Jt = $i) : Jt === $i && (Jt = wo); } } }, Di = function(Dt) { if (oe === se || oe === te) { - oe = Vr, Nt !== 0 && (a(Nt), Nt = 0), Nt = s(function() { - Yn(); - }, at), at = ln(Math.min(G * 16, at * 2)), L.readyState = te; - var Tt = new wr("error", { error: Dt }); - L.dispatchEvent(Tt), Sn(L, L.onerror, Tt), Dt != null && console.error(Dt); + oe = Yr, Nt !== 0 && (a(Nt), Nt = 0), Nt = s(function() { + Vn(); + }, at), at = fn(Math.min(G * 16, at * 2)), L.readyState = te; + var Ot = new yr("error", { error: Dt }); + L.dispatchEvent(Ot), xn(L, L.onerror, Ot), Dt != null && console.error(Dt); } }, Qr = function() { - oe = Vn, Kt != null && (Kt.abort(), Kt = void 0), Nt !== 0 && (a(Nt), Nt = 0), L.readyState = Vn; - }, Yn = function() { - if (Nt = 0, oe !== Vr) { + oe = Yn, Kt != null && (Kt.abort(), Kt = void 0), Nt !== 0 && (a(Nt), Nt = 0), L.readyState = Yn; + }, Vn = function() { + if (Nt = 0, oe !== Yr) { if (!ft && Kt != null) Di(new Error("No activity within " + Q + " milliseconds. " + (oe === te ? "No response received." : yt + " chars received.") + " Reconnecting.")), Kt != null && (Kt.abort(), Kt = void 0); else { var Dt = Math.max((ft || Date.now()) + Q - Date.now(), 1); ft = !1, Nt = s(function() { - Yn(); + Vn(); }, Dt); } return; } ft = !1, yt = 0, Nt = s(function() { - Yn(); - }, Q), oe = te, en = "", be = "", Rn = mt, On = "", Zr = 0, dn = 0, Jt = kt; - var Tt = k; + Vn(); + }, Q), oe = te, tn = "", be = "", Rn = mt, In = "", Zr = 0, hn = 0, Jt = kt; + var Ot = k; if (k.slice(0, 5) !== "data:" && k.slice(0, 5) !== "blob:" && mt !== "") { var ae = k.indexOf("?"); - Tt = ae === -1 ? k : k.slice(0, ae + 1) + k.slice(ae + 1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g, function(_e, Tn) { - return Tn === V ? "" : _e; - }), Tt += (k.indexOf("?") === -1 ? "?" : "&") + V + "=" + encodeURIComponent(mt); + Ot = ae === -1 ? k : k.slice(0, ae + 1) + k.slice(ae + 1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g, function(_e, On) { + return On === Y ? "" : _e; + }), Ot += (k.indexOf("?") === -1 ? "?" : "&") + Y + "=" + encodeURIComponent(mt); } var ue = L.withCredentials, Xt = {}; Xt.Accept = "text/event-stream"; - var Pt = L.headers; - if (Pt != null) - for (var Ge in Pt) - Object.prototype.hasOwnProperty.call(Pt, Ge) && (Xt[Ge] = Pt[Ge]); + var $t = L.headers; + if ($t != null) + for (var Be in $t) + Object.prototype.hasOwnProperty.call($t, Be) && (Xt[Be] = $t[Be]); try { - Kt = hn.open(we, Fi, Mi, Di, Tt, ue, Xt); + Kt = ln.open(we, Fi, Mi, Di, Ot, ue, Xt); } catch (_e) { throw Qr(), _e; } }; - L.url = k, L.readyState = te, L.withCredentials = N, L.headers = Y, L._close = Qr, Yn(); + L.url = k, L.readyState = te, L.withCredentials = N, L.headers = V, L._close = Qr, Vn(); } - ee.prototype = Object.create(Be.prototype), ee.prototype.CONNECTING = te, ee.prototype.OPEN = se, ee.prototype.CLOSED = Vn, ee.prototype.close = function() { + ee.prototype = Object.create(qe.prototype), ee.prototype.CONNECTING = te, ee.prototype.OPEN = se, ee.prototype.CLOSED = Yn, ee.prototype.close = function() { this._close(); - }, ee.CONNECTING = te, ee.OPEN = se, ee.CLOSED = Vn, ee.prototype.withCredentials = void 0; - var In = d; - u != null && (d == null || !("withCredentials" in d.prototype)) && (In = ee), function(L) { + }, ee.CONNECTING = te, ee.OPEN = se, ee.CLOSED = Yn, ee.prototype.withCredentials = void 0; + var Sn = d; + u != null && (d == null || !("withCredentials" in d.prototype)) && (Sn = ee), function(L) { { var k = L(e); k !== void 0 && (r.exports = k); } }(function(L) { - L.EventSourcePolyfill = ee, L.NativeEventSource = d, L.EventSource = In; + L.EventSourcePolyfill = ee, L.NativeEventSource = d, L.EventSource = Sn; }); - })(typeof globalThis > "u" ? typeof window < "u" ? window : typeof self < "u" ? self : qr : globalThis); -})(uu, uu.exports); -var YE = uu.exports, ZE = YE.EventSourcePolyfill; -const QE = /* @__PURE__ */ ld(ZE), Ld = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ + })(typeof globalThis > "u" ? typeof window < "u" ? window : typeof self < "u" ? self : Nr : globalThis); +})(su, su.exports); +var WE = su.exports, BE = WE.EventSourcePolyfill; +const HE = /* @__PURE__ */ ud(BE), Id = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, - default: QE + default: HE }, Symbol.toStringTag, { value: "Module" })); diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 47f243a8ba02..d7966a2f1074 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -8,6 +8,7 @@ overrides: '@typescript-eslint/eslint-plugin': ^7.11.0 '@typescript-eslint/parser': ^7.11.0 '@sanity/ui': 2.6.4-canary.0 + styled-components: npm:speedy-styled-components@6.1.12-canary.0 importers: @@ -67,7 +68,7 @@ importers: version: 0.0.1-alpha.1 '@sanity/tsdoc': specifier: 1.0.83 - version: 1.0.83(@types/node@18.19.31)(debug@4.3.5)(react-dom@18.3.1)(react-is@18.3.1)(react@18.3.1)(sanity@packages+sanity)(styled-components@6.1.11) + version: 1.0.83(@types/node@18.19.31)(react-dom@18.3.1)(react-is@18.3.1)(react@18.3.1)(sanity@packages+sanity)(speedy-styled-components@6.1.12-canary.0) '@sanity/uuid': specifier: ^3.0.2 version: 3.0.2 @@ -243,7 +244,7 @@ importers: version: 3.3.0(react@18.3.1) '@sanity/ui': specifier: 2.6.4-canary.0 - version: 2.6.4-canary.0(react-dom@18.3.1)(react-is@18.3.1)(react@18.3.1)(styled-components@6.1.11) + version: 2.6.4-canary.0(react-dom@18.3.1)(react-is@18.3.1)(react@18.3.1)(speedy-styled-components@6.1.12-canary.0) react: specifier: ^18.3.1 version: 18.3.1 @@ -254,14 +255,14 @@ importers: specifier: workspace:* version: link:../../packages/sanity styled-components: - specifier: ^6.1.0 - version: 6.1.11(react-dom@18.3.1)(react@18.3.1) + specifier: npm:speedy-styled-components@6.1.12-canary.0 + version: /speedy-styled-components@6.1.12-canary.0(react-dom@18.3.1)(react@18.3.1) dev/embedded-studio: dependencies: '@sanity/ui': specifier: 2.6.4-canary.0 - version: 2.6.4-canary.0(react-dom@18.3.1)(react-is@18.3.1)(react@18.3.1)(styled-components@6.1.11) + version: 2.6.4-canary.0(react-dom@18.3.1)(react-is@18.3.1)(react@18.3.1)(speedy-styled-components@6.1.12-canary.0) react: specifier: ^18.3.1 version: 18.3.1 @@ -272,8 +273,8 @@ importers: specifier: workspace:* version: link:../../packages/sanity styled-components: - specifier: ^6.1.0 - version: 6.1.11(react-dom@18.3.1)(react@18.3.1) + specifier: npm:speedy-styled-components@6.1.12-canary.0 + version: /speedy-styled-components@6.1.12-canary.0(react-dom@18.3.1)(react@18.3.1) devDependencies: '@types/react': specifier: ^18.3.3 @@ -309,8 +310,8 @@ importers: specifier: workspace:* version: link:../../packages/sanity styled-components: - specifier: ^6.1.8 - version: 6.1.11(react-dom@18.3.1)(react@18.3.1) + specifier: npm:speedy-styled-components@6.1.12-canary.0 + version: /speedy-styled-components@6.1.12-canary.0(react-dom@18.3.1)(react@18.3.1) dev/starter-next-studio: dependencies: @@ -327,8 +328,8 @@ importers: specifier: workspace:* version: link:../../packages/sanity styled-components: - specifier: ^6.1.0 - version: 6.1.11(react-dom@18.3.1)(react@18.3.1) + specifier: npm:speedy-styled-components@6.1.12-canary.0 + version: /speedy-styled-components@6.1.12-canary.0(react-dom@18.3.1)(react@18.3.1) dev/starter-studio: dependencies: @@ -342,8 +343,8 @@ importers: specifier: workspace:* version: link:../../packages/sanity styled-components: - specifier: ^6.1.0 - version: 6.1.11(react-dom@18.3.1)(react@18.3.1) + specifier: npm:speedy-styled-components@6.1.12-canary.0 + version: /speedy-styled-components@6.1.12-canary.0(react-dom@18.3.1)(react@18.3.1) dev/strict-studio: dependencies: @@ -357,20 +358,20 @@ importers: specifier: workspace:* version: link:../../packages/sanity styled-components: - specifier: ^6.1.0 - version: 6.1.11(react-dom@18.3.1)(react@18.3.1) + specifier: npm:speedy-styled-components@6.1.12-canary.0 + version: /speedy-styled-components@6.1.12-canary.0(react-dom@18.3.1)(react@18.3.1) dev/studio-e2e-testing: dependencies: '@sanity/google-maps-input': specifier: ^4.0.0 - version: 4.0.1(react-dom@18.3.1)(react-is@18.3.1)(react@18.3.1)(sanity@packages+sanity)(styled-components@6.1.11) + version: 4.0.1(react-dom@18.3.1)(react-is@18.3.1)(react@18.3.1)(sanity@packages+sanity)(speedy-styled-components@6.1.12-canary.0) '@sanity/icons': specifier: ^3.3.0 version: 3.3.0(react@18.3.1) '@sanity/ui': specifier: 2.6.4-canary.0 - version: 2.6.4-canary.0(react-dom@18.3.1)(react-is@18.3.1)(react@18.3.1)(styled-components@6.1.11) + version: 2.6.4-canary.0(react-dom@18.3.1)(react-is@18.3.1)(react@18.3.1)(speedy-styled-components@6.1.12-canary.0) '@sanity/vision': specifier: 3.49.0 version: link:../../packages/@sanity/vision @@ -385,13 +386,13 @@ importers: version: link:../../packages/sanity sanity-plugin-mux-input: specifier: ^2.2.1 - version: 2.3.6(@types/react@18.3.3)(react-dom@18.3.1)(react-is@18.3.1)(react@18.3.1)(sanity@packages+sanity)(styled-components@6.1.11) + version: 2.3.6(@types/react@18.3.3)(react-dom@18.3.1)(react-is@18.3.1)(react@18.3.1)(sanity@packages+sanity)(speedy-styled-components@6.1.12-canary.0) sanity-test-studio: specifier: workspace:* version: link:../test-studio styled-components: - specifier: ^6.1.0 - version: 6.1.11(react-dom@18.3.1)(react@18.3.1) + specifier: npm:speedy-styled-components@6.1.12-canary.0 + version: /speedy-styled-components@6.1.12-canary.0(react-dom@18.3.1)(react@18.3.1) dev/test-next-studio: dependencies: @@ -420,8 +421,8 @@ importers: specifier: workspace:* version: link:../test-studio styled-components: - specifier: ^6.1.11 - version: 6.1.11(react-dom@19.0.0-rc-38e3b23483-20240529)(react@19.0.0-rc-38e3b23483-20240529) + specifier: npm:speedy-styled-components@6.1.12-canary.0 + version: /speedy-styled-components@6.1.12-canary.0(react-dom@19.0.0-rc-38e3b23483-20240529)(react@19.0.0-rc-38e3b23483-20240529) typescript: specifier: 5.5.3 version: 5.5.3 @@ -430,7 +431,7 @@ importers: dependencies: '@portabletext/editor': specifier: ^1.0.8 - version: 1.0.8(@sanity/block-tools@packages+@sanity+block-tools)(@sanity/schema@packages+@sanity+schema)(@sanity/types@packages+@sanity+types)(@sanity/util@packages+@sanity+util)(react-dom@18.3.1)(react@18.3.1)(rxjs@7.8.1)(styled-components@6.1.11) + version: 1.0.8(@sanity/block-tools@packages+@sanity+block-tools)(@sanity/schema@packages+@sanity+schema)(@sanity/types@packages+@sanity+types)(@sanity/util@packages+@sanity+util)(react-dom@18.3.1)(react@18.3.1)(rxjs@7.8.1)(speedy-styled-components@6.1.12-canary.0) '@portabletext/react': specifier: ^3.0.0 version: 3.1.0(react@18.3.1) @@ -445,7 +446,7 @@ importers: version: 8.16.8(react-dom@18.3.1)(react@18.3.1)(three@0.166.1) '@sanity/assist': specifier: ^3.0.2 - version: 3.0.4(@sanity/mutator@packages+@sanity+mutator)(react-dom@18.3.1)(react-is@18.3.1)(react@18.3.1)(sanity@packages+sanity)(styled-components@6.1.11) + version: 3.0.4(@sanity/mutator@packages+@sanity+mutator)(react-dom@18.3.1)(react-is@18.3.1)(react@18.3.1)(sanity@packages+sanity)(speedy-styled-components@6.1.12-canary.0) '@sanity/block-tools': specifier: 3.49.0 version: link:../../packages/@sanity/block-tools @@ -457,7 +458,7 @@ importers: version: 3.0.6 '@sanity/google-maps-input': specifier: ^4.0.0 - version: 4.0.1(react-dom@18.3.1)(react-is@18.3.1)(react@18.3.1)(sanity@packages+sanity)(styled-components@6.1.11) + version: 4.0.1(react-dom@18.3.1)(react-is@18.3.1)(react@18.3.1)(sanity@packages+sanity)(speedy-styled-components@6.1.12-canary.0) '@sanity/icons': specifier: ^3.3.0 version: 3.3.0(react@18.3.1) @@ -493,16 +494,16 @@ importers: version: 1.10.4(@sanity/client@6.20.2)(react@18.3.1) '@sanity/tsdoc': specifier: 1.0.83 - version: 1.0.83(@types/node@18.19.31)(debug@4.3.5)(react-dom@18.3.1)(react-is@18.3.1)(react@18.3.1)(sanity@packages+sanity)(styled-components@6.1.11) + version: 1.0.83(@types/node@18.19.31)(react-dom@18.3.1)(react-is@18.3.1)(react@18.3.1)(sanity@packages+sanity)(speedy-styled-components@6.1.12-canary.0) '@sanity/types': specifier: workspace:* version: link:../../packages/@sanity/types '@sanity/ui': specifier: 2.6.4-canary.0 - version: 2.6.4-canary.0(react-dom@18.3.1)(react-is@18.3.1)(react@18.3.1)(styled-components@6.1.11) + version: 2.6.4-canary.0(react-dom@18.3.1)(react-is@18.3.1)(react@18.3.1)(speedy-styled-components@6.1.12-canary.0) '@sanity/ui-workshop': specifier: ^1.0.0 - version: 1.2.11(@sanity/icons@3.3.0)(@sanity/ui@2.6.4-canary.0)(@types/node@18.19.31)(react-dom@18.3.1)(react@18.3.1)(styled-components@6.1.11) + version: 1.2.11(@sanity/icons@3.3.0)(@sanity/ui@2.6.4-canary.0)(@types/node@18.19.31)(react-dom@18.3.1)(react@18.3.1)(speedy-styled-components@6.1.12-canary.0) '@sanity/util': specifier: workspace:* version: link:../../packages/@sanity/util @@ -568,13 +569,13 @@ importers: version: link:../../packages/sanity sanity-plugin-hotspot-array: specifier: ^2.0.0 - version: 2.0.0(@sanity/ui@2.6.4-canary.0)(react-dom@18.3.1)(react@18.3.1)(sanity@packages+sanity)(styled-components@6.1.11) + version: 2.0.0(@sanity/ui@2.6.4-canary.0)(react-dom@18.3.1)(react@18.3.1)(sanity@packages+sanity)(speedy-styled-components@6.1.12-canary.0) sanity-plugin-mux-input: specifier: ^2.2.1 - version: 2.3.6(@types/react@18.3.3)(react-dom@18.3.1)(react-is@18.3.1)(react@18.3.1)(sanity@packages+sanity)(styled-components@6.1.11) + version: 2.3.6(@types/react@18.3.3)(react-dom@18.3.1)(react-is@18.3.1)(react@18.3.1)(sanity@packages+sanity)(speedy-styled-components@6.1.12-canary.0) styled-components: - specifier: ^6.1.11 - version: 6.1.11(react-dom@18.3.1)(react@18.3.1) + specifier: npm:speedy-styled-components@6.1.12-canary.0 + version: /speedy-styled-components@6.1.12-canary.0(react-dom@18.3.1)(react@18.3.1) three: specifier: ^0.166.0 version: 0.166.1 @@ -598,8 +599,8 @@ importers: specifier: workspace:* version: link:../../packages/sanity styled-components: - specifier: ^6.1.0 - version: 6.1.11(react-dom@18.3.1)(react@18.3.1) + specifier: npm:speedy-styled-components@6.1.12-canary.0 + version: /speedy-styled-components@6.1.12-canary.0(react-dom@18.3.1)(react@18.3.1) examples/clean-studio: dependencies: @@ -613,8 +614,8 @@ importers: specifier: workspace:* version: link:../../packages/sanity styled-components: - specifier: ^6.1.0 - version: 6.1.11(react-dom@18.3.1)(react@18.3.1) + specifier: npm:speedy-styled-components@6.1.12-canary.0 + version: /speedy-styled-components@6.1.12-canary.0(react-dom@18.3.1)(react@18.3.1) examples/ecommerce-studio: dependencies: @@ -623,7 +624,7 @@ importers: version: link:../../packages/@sanity/cli '@sanity/ui': specifier: 2.6.4-canary.0 - version: 2.6.4-canary.0(react-dom@18.3.1)(react-is@18.3.1)(react@18.3.1)(styled-components@6.1.11) + version: 2.6.4-canary.0(react-dom@18.3.1)(react-is@18.3.1)(react@18.3.1)(speedy-styled-components@6.1.12-canary.0) react: specifier: ^18.3.1 version: 18.3.1 @@ -637,14 +638,14 @@ importers: specifier: workspace:* version: link:../../packages/sanity styled-components: - specifier: ^6.1.0 - version: 6.1.11(react-dom@18.3.1)(react@18.3.1) + specifier: npm:speedy-styled-components@6.1.12-canary.0 + version: /speedy-styled-components@6.1.12-canary.0(react-dom@18.3.1)(react@18.3.1) examples/movies-studio: dependencies: '@sanity/google-maps-input': specifier: ^4.0.0 - version: 4.0.1(react-dom@18.3.1)(react-is@18.3.1)(react@18.3.1)(sanity@packages+sanity)(styled-components@6.1.11) + version: 4.0.1(react-dom@18.3.1)(react-is@18.3.1)(react@18.3.1)(sanity@packages+sanity)(speedy-styled-components@6.1.12-canary.0) react: specifier: ^18.3.1 version: 18.3.1 @@ -655,8 +656,8 @@ importers: specifier: workspace:* version: link:../../packages/sanity styled-components: - specifier: ^6.1.0 - version: 6.1.11(react-dom@18.3.1)(react@18.3.1) + specifier: npm:speedy-styled-components@6.1.12-canary.0 + version: /speedy-styled-components@6.1.12-canary.0(react-dom@18.3.1)(react@18.3.1) packages/@repo/package.bundle: {} @@ -1203,7 +1204,7 @@ importers: version: link:../../@repo/package.config '@sanity/insert-menu': specifier: 1.0.7 - version: 1.0.7(@sanity/types@packages+@sanity+types)(react-dom@18.3.1)(react-is@18.3.1)(react@18.3.1)(styled-components@6.1.11) + version: 1.0.7(@sanity/types@packages+@sanity+types)(react-dom@18.3.1)(react-is@18.3.1)(react@18.3.1)(speedy-styled-components@6.1.12-canary.0) rimraf: specifier: ^3.0.2 version: 3.0.2 @@ -1282,7 +1283,7 @@ importers: version: 3.3.0(react@18.3.1) '@sanity/ui': specifier: 2.6.4-canary.0 - version: 2.6.4-canary.0(react-dom@18.3.1)(react-is@18.3.1)(react@18.3.1)(styled-components@6.1.11) + version: 2.6.4-canary.0(react-dom@18.3.1)(react-is@18.3.1)(react@18.3.1)(speedy-styled-components@6.1.12-canary.0) '@uiw/react-codemirror': specifier: ^4.11.4 version: 4.21.25(@babel/runtime@7.24.7)(@codemirror/autocomplete@6.17.0)(@codemirror/language@6.10.2)(@codemirror/lint@6.8.1)(@codemirror/search@6.5.6)(@codemirror/state@6.4.1)(@codemirror/theme-one-dark@6.1.2)(@codemirror/view@6.28.4)(codemirror@6.0.1)(react-dom@18.3.1)(react@18.3.1) @@ -1345,8 +1346,8 @@ importers: specifier: workspace:* version: link:../../sanity styled-components: - specifier: ^6.1.11 - version: 6.1.11(react-dom@18.3.1)(react@18.3.1) + specifier: npm:speedy-styled-components@6.1.12-canary.0 + version: /speedy-styled-components@6.1.12-canary.0(react-dom@18.3.1)(react@18.3.1) packages/create-sanity: dependencies: @@ -1382,7 +1383,7 @@ importers: version: 3.4.0 '@portabletext/editor': specifier: ^1.0.8 - version: 1.0.8(@sanity/block-tools@packages+@sanity+block-tools)(@sanity/schema@packages+@sanity+schema)(@sanity/types@packages+@sanity+types)(@sanity/util@packages+@sanity+util)(react-dom@18.3.1)(react@18.3.1)(rxjs@7.8.1)(styled-components@6.1.11) + version: 1.0.8(@sanity/block-tools@packages+@sanity+block-tools)(@sanity/schema@packages+@sanity+schema)(@sanity/types@packages+@sanity+types)(@sanity/util@packages+@sanity+util)(react-dom@18.3.1)(react@18.3.1)(rxjs@7.8.1)(speedy-styled-components@6.1.12-canary.0) '@portabletext/react': specifier: ^3.0.0 version: 3.1.0(react@18.3.1) @@ -1430,7 +1431,7 @@ importers: version: 3.37.5 '@sanity/insert-menu': specifier: 1.0.7 - version: 1.0.7(@sanity/types@packages+@sanity+types)(react-dom@18.3.1)(react-is@18.3.1)(react@18.3.1)(styled-components@6.1.11) + version: 1.0.7(@sanity/types@packages+@sanity+types)(react-dom@18.3.1)(react-is@18.3.1)(react@18.3.1)(speedy-styled-components@6.1.12-canary.0) '@sanity/logos': specifier: ^2.1.4 version: 2.1.12(@sanity/color@3.0.6)(react@18.3.1) @@ -1442,7 +1443,7 @@ importers: version: link:../@sanity/mutator '@sanity/presentation': specifier: 1.16.2 - version: 1.16.2(@sanity/client@6.20.2)(react-dom@18.3.1)(react-is@18.3.1)(react@18.3.1)(styled-components@6.1.11) + version: 1.16.2(@sanity/client@6.20.2)(react-dom@18.3.1)(react-is@18.3.1)(react@18.3.1)(speedy-styled-components@6.1.12-canary.0) '@sanity/schema': specifier: 3.49.0 version: link:../@sanity/schema @@ -1454,7 +1455,7 @@ importers: version: link:../@sanity/types '@sanity/ui': specifier: 2.6.4-canary.0 - version: 2.6.4-canary.0(react-dom@18.3.1)(react-is@18.3.1)(react@18.3.1)(styled-components@6.1.11) + version: 2.6.4-canary.0(react-dom@18.3.1)(react-is@18.3.1)(react@18.3.1)(speedy-styled-components@6.1.12-canary.0) '@sanity/util': specifier: 3.49.0 version: link:../@sanity/util @@ -1734,10 +1735,10 @@ importers: version: 6.9.3(@types/node@18.19.31)(debug@4.3.5)(typescript@5.4.5) '@sanity/tsdoc': specifier: 1.0.83 - version: 1.0.83(@types/node@18.19.31)(debug@4.3.5)(react-dom@18.3.1)(react-is@18.3.1)(react@18.3.1)(sanity@packages+sanity)(styled-components@6.1.11) + version: 1.0.83(@types/node@18.19.31)(debug@4.3.5)(react-dom@18.3.1)(react-is@18.3.1)(react@18.3.1)(sanity@packages+sanity)(speedy-styled-components@6.1.12-canary.0) '@sanity/ui-workshop': specifier: ^1.2.11 - version: 1.2.11(@sanity/icons@3.3.0)(@sanity/ui@2.6.4-canary.0)(@types/node@18.19.31)(react-dom@18.3.1)(react@18.3.1)(styled-components@6.1.11) + version: 1.2.11(@sanity/icons@3.3.0)(@sanity/ui@2.6.4-canary.0)(@types/node@18.19.31)(react-dom@18.3.1)(react@18.3.1)(speedy-styled-components@6.1.12-canary.0) '@sentry/types': specifier: ^8.12.0 version: 8.12.0 @@ -1817,8 +1818,8 @@ importers: specifier: ^10.6.2 version: 10.6.2(rxjs@7.8.1) styled-components: - specifier: ^6.1.11 - version: 6.1.11(react-dom@18.3.1)(react@18.3.1) + specifier: npm:speedy-styled-components@6.1.12-canary.0 + version: /speedy-styled-components@6.1.12-canary.0(react-dom@18.3.1)(react@18.3.1) swr: specifier: 2.2.5 version: 2.2.5(react@18.3.1) @@ -1832,8 +1833,8 @@ importers: specifier: ^18.3.0 version: 18.3.1(react@18.3.1) styled-components: - specifier: ^6.1.0 - version: 6.1.11(react-dom@18.3.1)(react@18.3.1) + specifier: npm:speedy-styled-components@6.1.12-canary.0 + version: /speedy-styled-components@6.1.12-canary.0(react-dom@18.3.1)(react@18.3.1) packages/sanity/fixtures/examples/prj-with-react-19: dependencies: @@ -1844,8 +1845,8 @@ importers: specifier: 19.0.0-rc-f994737d14-20240522 version: 19.0.0-rc-f994737d14-20240522(react@19.0.0-rc-f994737d14-20240522) styled-components: - specifier: ^6.1.0 - version: 6.1.11(react-dom@19.0.0-rc-f994737d14-20240522)(react@19.0.0-rc-f994737d14-20240522) + specifier: npm:speedy-styled-components@6.1.12-canary.0 + version: /speedy-styled-components@6.1.12-canary.0(react-dom@19.0.0-rc-f994737d14-20240522)(react@19.0.0-rc-f994737d14-20240522) packages/sanity/fixtures/examples/prj-with-styled-components-5: dependencies: @@ -1856,8 +1857,8 @@ importers: specifier: ^18.3.0 version: 18.3.1(react@18.3.1) styled-components: - specifier: ^5.3.0 - version: 5.3.11(@babel/core@7.24.7)(react-dom@18.3.1)(react-is@18.3.1)(react@18.3.1) + specifier: npm:speedy-styled-components@6.1.12-canary.0 + version: /speedy-styled-components@6.1.12-canary.0(react-dom@18.3.1)(react@18.3.1) perf/studio: dependencies: @@ -1871,8 +1872,8 @@ importers: specifier: workspace:* version: link:../../packages/sanity styled-components: - specifier: ^6.1.0 - version: 6.1.11(react-dom@18.3.1)(react@18.3.1) + specifier: npm:speedy-styled-components@6.1.12-canary.0 + version: /speedy-styled-components@6.1.12-canary.0(react-dom@18.3.1)(react@18.3.1) perf/tests: dependencies: @@ -2133,16 +2134,6 @@ packages: transitivePeerDependencies: - supports-color - /@babel/helper-module-imports@7.24.7(supports-color@5.5.0): - resolution: {integrity: sha512-8AyH3C+74cgCVVXow/myrynrAGv+nTVg5vKu2nZph9x7RcRwzmh0VFallJuFTZ9mx6u4eSdXZfcOzSqTUm0HCA==} - engines: {node: '>=6.9.0'} - dependencies: - '@babel/traverse': 7.24.7(supports-color@5.5.0) - '@babel/types': 7.24.7 - transitivePeerDependencies: - - supports-color - dev: false - /@babel/helper-module-transforms@7.24.7(@babel/core@7.24.7): resolution: {integrity: sha512-1fuJEwIrp+97rM4RWdO+qrRsZlAeL1lQJoPqtCYWv0NL115XM93hIH4CSRln2w52SqvmY5hqdtauB6QFCDiZNQ==} engines: {node: '>=6.9.0'} @@ -3292,24 +3283,6 @@ packages: transitivePeerDependencies: - supports-color - /@babel/traverse@7.24.7(supports-color@5.5.0): - resolution: {integrity: sha512-yb65Ed5S/QAcewNPh0nZczy9JdYXkkAbIsEo+P7BE7yO3txAY30Y/oPa3QkQ5It3xVG2kpKMg9MsdxZaO31uKA==} - engines: {node: '>=6.9.0'} - dependencies: - '@babel/code-frame': 7.24.7 - '@babel/generator': 7.24.7 - '@babel/helper-environment-visitor': 7.24.7 - '@babel/helper-function-name': 7.24.7 - '@babel/helper-hoist-variables': 7.24.7 - '@babel/helper-split-export-declaration': 7.24.7 - '@babel/parser': 7.24.7 - '@babel/types': 7.24.7 - debug: 4.3.5(supports-color@5.5.0) - globals: 11.12.0 - transitivePeerDependencies: - - supports-color - dev: false - /@babel/types@7.24.7: resolution: {integrity: sha512-XEFXSlxiG5td2EJRe8vOmRbaXVgfcBlszKujvVmWIK/UpywWljQCfzAv3RQCGujWQ1RD4YYWEAqDXfuJiy8f5Q==} engines: {node: '>=6.9.0'} @@ -3503,14 +3476,6 @@ packages: /@emotion/memoize@0.8.1: resolution: {integrity: sha512-W2P2c/VRW1/1tLox0mVUalvnWXxavmv/Oum2aPsRcoDJuob75FC3Y8FbpfLwUegRcxINtGUMPq0tFCvYNTBXNA==} - /@emotion/stylis@0.8.5: - resolution: {integrity: sha512-h6KtPihKFn3T9fuIrwvXXUOwlx3rfUvfZIcP5a6rh8Y7zjE3O06hT5Ss4S/YI1AYhuZ1kjaE/5EaOOI2NqSylQ==} - dev: false - - /@emotion/unitless@0.7.5: - resolution: {integrity: sha512-OWORNpfjMsSSUBVrRBVGECkhWcULOAJz9ZW8uK9qgxD+87M7jHRcvh/A96XXNhXTLmKcoYSQtBEX7lHMO7YRwg==} - dev: false - /@emotion/unitless@0.8.1: resolution: {integrity: sha512-KOEGMu6dmJZtpadb476IsZBclKvILjopjUii3V+7MnXIQCYh8W3NgNcgwo21n9LXZX6EDIKvqfjYxXebDwxKmQ==} @@ -5825,7 +5790,7 @@ packages: '@pnpm/network.ca-file': 1.0.2 config-chain: 1.1.13 - /@portabletext/editor@1.0.8(@sanity/block-tools@packages+@sanity+block-tools)(@sanity/schema@packages+@sanity+schema)(@sanity/types@packages+@sanity+types)(@sanity/util@packages+@sanity+util)(react-dom@18.3.1)(react@18.3.1)(rxjs@7.8.1)(styled-components@6.1.11): + /@portabletext/editor@1.0.8(@sanity/block-tools@packages+@sanity+block-tools)(@sanity/schema@packages+@sanity+schema)(@sanity/types@packages+@sanity+types)(@sanity/util@packages+@sanity+util)(react-dom@18.3.1)(react@18.3.1)(rxjs@7.8.1)(speedy-styled-components@6.1.12-canary.0): resolution: {integrity: sha512-iSCkdsVpMrfwFmxBfb1acbUVPuS13hkwuIS5uR7blt/fFysy+j+IxhH7tJdJt18PISKlWw+1zPfHGz/LoEdrgw==} engines: {node: '>=18'} peerDependencies: @@ -5835,7 +5800,7 @@ packages: '@sanity/util': ^3.47.1 react: '*' rxjs: ^7 - styled-components: ^6.1 + styled-components: npm:speedy-styled-components@6.1.12-canary.0 dependencies: '@portabletext/patches': 1.0.2 '@sanity/block-tools': link:packages/@sanity/block-tools @@ -5849,7 +5814,7 @@ packages: rxjs: 7.8.1 slate: 0.100.0 slate-react: 0.101.0(react-dom@18.3.1)(react@18.3.1)(slate@0.100.0) - styled-components: 6.1.11(react-dom@18.3.1)(react@18.3.1) + styled-components: /speedy-styled-components@6.1.12-canary.0(react-dom@18.3.1)(react@18.3.1) transitivePeerDependencies: - react-dom - supports-color @@ -6731,19 +6696,19 @@ packages: engines: {node: '>=10'} dev: false - /@sanity/assist@3.0.4(@sanity/mutator@packages+@sanity+mutator)(react-dom@18.3.1)(react-is@18.3.1)(react@18.3.1)(sanity@packages+sanity)(styled-components@6.1.11): + /@sanity/assist@3.0.4(@sanity/mutator@packages+@sanity+mutator)(react-dom@18.3.1)(react-is@18.3.1)(react@18.3.1)(sanity@packages+sanity)(speedy-styled-components@6.1.12-canary.0): resolution: {integrity: sha512-2UBznX9EjDwptMjby9x2zNQUoSR3sdgRSpD+AcnfTcnzjBytLTEnXxHr9hWzfRfPO4EDrr8UuxVaRTzHjnRb4Q==} engines: {node: '>=14'} peerDependencies: '@sanity/mutator': ^3.36.4 react: '*' sanity: ^3.36.4 - styled-components: ^6.1 + styled-components: npm:speedy-styled-components@6.1.12-canary.0 dependencies: '@sanity/icons': 2.11.8(react@18.3.1) '@sanity/incompatible-plugin': 1.0.4(react-dom@18.3.1)(react@18.3.1) '@sanity/mutator': link:packages/@sanity/mutator - '@sanity/ui': 2.6.4-canary.0(react-dom@18.3.1)(react-is@18.3.1)(react@18.3.1)(styled-components@6.1.11) + '@sanity/ui': 2.6.4-canary.0(react-dom@18.3.1)(react-is@18.3.1)(react@18.3.1)(speedy-styled-components@6.1.12-canary.0) date-fns: 3.6.0 lodash: 4.17.21 lodash-es: 4.17.21 @@ -6752,7 +6717,7 @@ packages: rxjs: 7.8.1 rxjs-exhaustmap-with-trailing: 2.1.1(rxjs@7.8.1) sanity: link:packages/sanity - styled-components: 6.1.11(react-dom@18.3.1)(react@18.3.1) + styled-components: /speedy-styled-components@6.1.12-canary.0(react-dom@18.3.1)(react@18.3.1) transitivePeerDependencies: - react-dom - react-is @@ -6884,21 +6849,21 @@ packages: /@sanity/generate-help-url@3.0.0: resolution: {integrity: sha512-wtMYcV5GIDIhVyF/jjmdwq1GdlK07dRL40XMns73VbrFI7FteRltxv48bhYVZPcLkRXb0SHjpDS/icj9/yzbVA==} - /@sanity/google-maps-input@4.0.1(react-dom@18.3.1)(react-is@18.3.1)(react@18.3.1)(sanity@packages+sanity)(styled-components@6.1.11): + /@sanity/google-maps-input@4.0.1(react-dom@18.3.1)(react-is@18.3.1)(react@18.3.1)(sanity@packages+sanity)(speedy-styled-components@6.1.12-canary.0): resolution: {integrity: sha512-lYxK1Jfb2Xk3lVVcK/MUdK562qAC3LfSatjbvpDTP4LNwQ1NVvvgwsS2QGiGSQvgSXxGPOaiS40MSMb26X1Vhg==} engines: {node: '>=14'} peerDependencies: react: '*' sanity: ^3.19.0 - styled-components: ^6.1 + styled-components: npm:speedy-styled-components@6.1.12-canary.0 dependencies: '@sanity/icons': 2.11.8(react@18.3.1) '@sanity/incompatible-plugin': 1.0.4(react-dom@18.3.1)(react@18.3.1) - '@sanity/ui': 2.6.4-canary.0(react-dom@18.3.1)(react-is@18.3.1)(react@18.3.1)(styled-components@6.1.11) + '@sanity/ui': 2.6.4-canary.0(react-dom@18.3.1)(react-is@18.3.1)(react@18.3.1)(speedy-styled-components@6.1.12-canary.0) lodash: 4.17.21 react: 18.3.1 sanity: link:packages/sanity - styled-components: 6.1.11(react-dom@18.3.1)(react@18.3.1) + styled-components: /speedy-styled-components@6.1.12-canary.0(react-dom@18.3.1)(react@18.3.1) transitivePeerDependencies: - react-dom - react-is @@ -6976,7 +6941,7 @@ packages: react-dom: 18.3.1(react@18.3.1) dev: false - /@sanity/insert-menu@1.0.7(@sanity/types@packages+@sanity+types)(react-dom@18.3.1)(react-is@18.3.1)(react@18.3.1)(styled-components@6.1.11): + /@sanity/insert-menu@1.0.7(@sanity/types@packages+@sanity+types)(react-dom@18.3.1)(react-is@18.3.1)(react@18.3.1)(speedy-styled-components@6.1.12-canary.0): resolution: {integrity: sha512-KQTRl3T4nQSFDP2FEM85UBTaGdOEJVechSqChSmUohAoMiizRtLGP2CpeK8OMP0jE8Bjshs3Af+5LZ0NY7SVsA==} engines: {node: '>=18.0.0'} peerDependencies: @@ -6987,7 +6952,7 @@ packages: dependencies: '@sanity/icons': 3.3.0(react@18.3.1) '@sanity/types': link:packages/@sanity/types - '@sanity/ui': 2.6.4-canary.0(react-dom@18.3.1)(react-is@18.3.1)(react@18.3.1)(styled-components@6.1.11) + '@sanity/ui': 2.6.4-canary.0(react-dom@18.3.1)(react-is@18.3.1)(react@18.3.1)(speedy-styled-components@6.1.12-canary.0) lodash.startcase: 4.4.0 react: 18.3.1 react-dom: 18.3.1(react@18.3.1) @@ -7170,7 +7135,7 @@ packages: - supports-color dev: true - /@sanity/presentation@1.16.2(@sanity/client@6.20.2)(react-dom@18.3.1)(react-is@18.3.1)(react@18.3.1)(styled-components@6.1.11): + /@sanity/presentation@1.16.2(@sanity/client@6.20.2)(react-dom@18.3.1)(react-is@18.3.1)(react@18.3.1)(speedy-styled-components@6.1.12-canary.0): resolution: {integrity: sha512-mEMHpMNPLG8C5qyNmKir9/I3p9gvC7joYbRdwe0HxGVmFHU28aKhkEFCDJrDwp/Bm5Z7ps8fF1wi5mCt5cBymQ==} engines: {node: '>=16.14'} peerDependencies: @@ -7179,7 +7144,7 @@ packages: '@sanity/client': 6.20.2(debug@4.3.5) '@sanity/icons': 3.3.0(react@18.3.1) '@sanity/preview-url-secret': 1.6.18(@sanity/client@6.20.2) - '@sanity/ui': 2.6.4-canary.0(react-dom@18.3.1)(react-is@18.3.1)(react@18.3.1)(styled-components@6.1.11) + '@sanity/ui': 2.6.4-canary.0(react-dom@18.3.1)(react-is@18.3.1)(react@18.3.1)(speedy-styled-components@6.1.12-canary.0) '@sanity/uuid': 3.0.2 '@types/lodash.isequal': 4.5.8 fast-deep-equal: 3.1.3 @@ -7253,7 +7218,7 @@ packages: - debug dev: true - /@sanity/tsdoc@1.0.83(@types/node@18.19.31)(debug@4.3.5)(react-dom@18.3.1)(react-is@18.3.1)(react@18.3.1)(sanity@packages+sanity)(styled-components@6.1.11): + /@sanity/tsdoc@1.0.83(@types/node@18.19.31)(debug@4.3.5)(react-dom@18.3.1)(react-is@18.3.1)(react@18.3.1)(sanity@packages+sanity)(speedy-styled-components@6.1.12-canary.0): resolution: {integrity: sha512-nIywYVkn6uwxuKOIzowLQM1/26Wq19OT4MMUBrUjjHsAutU9MyGfX7M5rM4rhfbP351N48dHvYCNpMYOWSadjg==} engines: {node: '>=14.0.0'} hasBin: true @@ -7261,7 +7226,7 @@ packages: react: '*' react-dom: '*' sanity: ^3 - styled-components: ^5.2 || ^6 + styled-components: npm:speedy-styled-components@6.1.12-canary.0 dependencies: '@microsoft/api-extractor': 7.47.0(@types/node@18.19.31) '@microsoft/api-extractor-model': 7.29.2(@types/node@18.19.31) @@ -7273,7 +7238,7 @@ packages: '@sanity/color': 3.0.6 '@sanity/icons': 3.3.0(react@18.3.1) '@sanity/pkg-utils': 6.10.2(@types/node@18.19.31)(debug@4.3.5)(typescript@5.5.3) - '@sanity/ui': 2.6.4-canary.0(react-dom@18.3.1)(react-is@18.3.1)(react@18.3.1)(styled-components@6.1.11) + '@sanity/ui': 2.6.4-canary.0(react-dom@18.3.1)(react-is@18.3.1)(react@18.3.1)(speedy-styled-components@6.1.12-canary.0) '@types/cpx': 1.5.5 '@vitejs/plugin-react': 4.3.1(vite@5.3.3) cac: 6.7.14 @@ -7296,7 +7261,68 @@ packages: react-refractor: 2.2.0(react@18.3.1) sanity: link:packages/sanity slugify: 1.6.6 - styled-components: 6.1.11(react-dom@18.3.1)(react@18.3.1) + styled-components: /speedy-styled-components@6.1.12-canary.0(react-dom@18.3.1)(react@18.3.1) + tmp: 0.2.3 + typescript: 5.5.3 + vite: 5.3.3(@types/node@18.19.31) + transitivePeerDependencies: + - '@types/babel__core' + - '@types/node' + - debug + - less + - lightningcss + - react-is + - sass + - stylus + - sugarss + - supports-color + - terser + dev: true + + /@sanity/tsdoc@1.0.83(@types/node@18.19.31)(react-dom@18.3.1)(react-is@18.3.1)(react@18.3.1)(sanity@packages+sanity)(speedy-styled-components@6.1.12-canary.0): + resolution: {integrity: sha512-nIywYVkn6uwxuKOIzowLQM1/26Wq19OT4MMUBrUjjHsAutU9MyGfX7M5rM4rhfbP351N48dHvYCNpMYOWSadjg==} + engines: {node: '>=14.0.0'} + hasBin: true + peerDependencies: + react: '*' + react-dom: '*' + sanity: ^3 + styled-components: npm:speedy-styled-components@6.1.12-canary.0 + dependencies: + '@microsoft/api-extractor': 7.47.0(@types/node@18.19.31) + '@microsoft/api-extractor-model': 7.29.2(@types/node@18.19.31) + '@microsoft/tsdoc': 0.15.0 + '@microsoft/tsdoc-config': 0.17.0 + '@portabletext/react': 3.1.0(react@18.3.1) + '@portabletext/toolkit': 2.0.15 + '@sanity/client': 6.20.2(debug@4.3.5) + '@sanity/color': 3.0.6 + '@sanity/icons': 3.3.0(react@18.3.1) + '@sanity/pkg-utils': 6.10.2(@types/node@18.19.31)(debug@4.3.5)(typescript@5.5.3) + '@sanity/ui': 2.6.4-canary.0(react-dom@18.3.1)(react-is@18.3.1)(react@18.3.1)(speedy-styled-components@6.1.12-canary.0) + '@types/cpx': 1.5.5 + '@vitejs/plugin-react': 4.3.1(vite@5.3.3) + cac: 6.7.14 + chalk: 4.1.2 + chokidar: 3.6.0 + cors: 2.8.5 + dotenv-flow: 3.3.0 + esbuild: 0.23.0 + esbuild-register: 3.5.0(esbuild@0.23.0) + express: 4.19.2 + globby: 11.1.0 + groq: 3.49.0 + groq-js: 1.10.0 + history: 5.3.0 + jsonc-parser: 3.3.1 + mkdirp: 1.0.4 + pkg-up: 3.1.0 + react: 18.3.1 + react-dom: 18.3.1(react@18.3.1) + react-refractor: 2.2.0(react@18.3.1) + sanity: link:packages/sanity + slugify: 1.6.6 + styled-components: /speedy-styled-components@6.1.12-canary.0(react-dom@18.3.1)(react@18.3.1) tmp: 0.2.3 typescript: 5.5.3 vite: 5.3.3(@types/node@18.19.31) @@ -7331,7 +7357,7 @@ packages: - debug dev: false - /@sanity/ui-workshop@1.2.11(@sanity/icons@3.3.0)(@sanity/ui@2.6.4-canary.0)(@types/node@18.19.31)(react-dom@18.3.1)(react@18.3.1)(styled-components@6.1.11): + /@sanity/ui-workshop@1.2.11(@sanity/icons@3.3.0)(@sanity/ui@2.6.4-canary.0)(@types/node@18.19.31)(react-dom@18.3.1)(react@18.3.1)(speedy-styled-components@6.1.12-canary.0): resolution: {integrity: sha512-vzj7upIF7wq2W1HEA0D5VSkR8axaH4Rt07yNTAaas7CLgjSE9r2d+Gnkrq4FIbIuN1GYhhCD+D3/s60GaZrpQw==} hasBin: true peerDependencies: @@ -7339,10 +7365,10 @@ packages: '@sanity/ui': 2.6.4-canary.0 react: '*' react-dom: '*' - styled-components: ^5.2 || ^6 + styled-components: npm:speedy-styled-components@6.1.12-canary.0 dependencies: '@sanity/icons': 3.3.0(react@18.3.1) - '@sanity/ui': 2.6.4-canary.0(react-dom@18.3.1)(react-is@18.3.1)(react@18.3.1)(styled-components@6.1.11) + '@sanity/ui': 2.6.4-canary.0(react-dom@18.3.1)(react-is@18.3.1)(react@18.3.1)(speedy-styled-components@6.1.12-canary.0) '@vitejs/plugin-react': 4.3.1(vite@4.5.3) axe-core: 4.9.0 cac: 6.7.14 @@ -7358,7 +7384,7 @@ packages: react: 18.3.1 react-dom: 18.3.1(react@18.3.1) segmented-property: 3.0.3 - styled-components: 6.1.11(react-dom@18.3.1)(react@18.3.1) + styled-components: /speedy-styled-components@6.1.12-canary.0(react-dom@18.3.1)(react@18.3.1) vite: 4.5.3(@types/node@18.19.31) transitivePeerDependencies: - '@types/node' @@ -7370,14 +7396,14 @@ packages: - supports-color - terser - /@sanity/ui@2.6.4-canary.0(react-dom@18.3.1)(react-is@18.3.1)(react@18.3.1)(styled-components@6.1.11): + /@sanity/ui@2.6.4-canary.0(react-dom@18.3.1)(react-is@18.3.1)(react@18.3.1)(speedy-styled-components@6.1.12-canary.0): resolution: {integrity: sha512-txPWpsLs87Gi/OpKcXvd+iYWSZaAFLHU0Hs8/9WfNb3VzsCqQNaCYbCW0uAx5iMJwrhPbPDJK3gBElGNL74/KA==} engines: {node: '>=14.0.0'} peerDependencies: react: '*' react-dom: '*' react-is: '*' - styled-components: ^5.2 || ^6 + styled-components: npm:speedy-styled-components@6.1.12-canary.0 dependencies: '@floating-ui/react-dom': 2.1.1(react-dom@18.3.1)(react@18.3.1) '@sanity/color': 3.0.6 @@ -7388,7 +7414,7 @@ packages: react-dom: 18.3.1(react@18.3.1) react-is: 18.3.1 react-refractor: 2.2.0(react@18.3.1) - styled-components: 6.1.11(react-dom@18.3.1)(react@18.3.1) + styled-components: /speedy-styled-components@6.1.12-canary.0(react-dom@18.3.1)(react@18.3.1) /@sanity/util@3.37.2(debug@4.3.5): resolution: {integrity: sha512-hq0eLjyV2iaOm9ivtPw12YTQ4QsE3jnV/Ui0zhclEhu8Go5JiaEhFt2+WM2lLGRH6qcSA414QbsCNCcyhJL6rA==} @@ -9298,22 +9324,6 @@ packages: zod: 3.23.8 zod-validation-error: 2.1.0(zod@3.23.8) - /babel-plugin-styled-components@2.1.4(@babel/core@7.24.7)(styled-components@5.3.11)(supports-color@5.5.0): - resolution: {integrity: sha512-Xgp9g+A/cG47sUyRwwYxGM4bR/jDRg5N6it/8+HxCnbT5XNKSKDT9xm4oag/osgqjC2It/vH0yXsomOG6k558g==} - peerDependencies: - styled-components: '>= 2' - dependencies: - '@babel/helper-annotate-as-pure': 7.24.7 - '@babel/helper-module-imports': 7.24.7(supports-color@5.5.0) - '@babel/plugin-syntax-jsx': 7.24.7(@babel/core@7.24.7) - lodash: 4.17.21 - picomatch: 2.3.1 - styled-components: 5.3.11(@babel/core@7.24.7)(react-dom@18.3.1)(react-is@18.3.1)(react@18.3.1) - transitivePeerDependencies: - - '@babel/core' - - supports-color - dev: false - /babel-preset-current-node-syntax@1.0.1(@babel/core@7.24.7): resolution: {integrity: sha512-M7LQ0bxarkxQoN+vz5aJPsLBn77n8QgTFmo8WK0/44auK2xlCXrYcUxHFxgU7qW5Yzw/CjmLRK2uJzaCd7LvqQ==} peerDependencies: @@ -10602,19 +10612,6 @@ packages: ms: 2.1.3 dev: true - /debug@4.3.5(supports-color@5.5.0): - resolution: {integrity: sha512-pt0bNEmneDIvdL1Xsd9oDQ/wrQRkXDT4AUWlNZNPKvW5x/jyO9VFXkJUP07vQ2upmw5PlaITaPKc31jK13V+jg==} - engines: {node: '>=6.0'} - peerDependencies: - supports-color: '*' - peerDependenciesMeta: - supports-color: - optional: true - dependencies: - ms: 2.1.2 - supports-color: 5.5.0 - dev: false - /debug@4.3.5(supports-color@9.4.0): resolution: {integrity: sha512-pt0bNEmneDIvdL1Xsd9oDQ/wrQRkXDT4AUWlNZNPKvW5x/jyO9VFXkJUP07vQ2upmw5PlaITaPKc31jK13V+jg==} engines: {node: '>=6.0'} @@ -18135,45 +18132,45 @@ packages: '@sanity/diff-match-patch': 3.1.1 dev: false - /sanity-plugin-hotspot-array@2.0.0(@sanity/ui@2.6.4-canary.0)(react-dom@18.3.1)(react@18.3.1)(sanity@packages+sanity)(styled-components@6.1.11): + /sanity-plugin-hotspot-array@2.0.0(@sanity/ui@2.6.4-canary.0)(react-dom@18.3.1)(react@18.3.1)(sanity@packages+sanity)(speedy-styled-components@6.1.12-canary.0): resolution: {integrity: sha512-y+FP4JgRaIKO17cBMyzCCVcxwl3fh7DXEp99QlvZSWUFi3NJJg2ZXFIXc2Om66HNkprfH2ORzEmEZMuDShtlTg==} engines: {node: '>=18'} peerDependencies: '@sanity/ui': 2.6.4-canary.0 react: '*' sanity: ^3.0.0 - styled-components: ^6.1 + styled-components: npm:speedy-styled-components@6.1.12-canary.0 dependencies: '@sanity/asset-utils': 1.3.0 '@sanity/image-url': 1.0.2 '@sanity/incompatible-plugin': 1.0.4(react-dom@18.3.1)(react@18.3.1) - '@sanity/ui': 2.6.4-canary.0(react-dom@18.3.1)(react-is@18.3.1)(react@18.3.1)(styled-components@6.1.11) + '@sanity/ui': 2.6.4-canary.0(react-dom@18.3.1)(react-is@18.3.1)(react@18.3.1)(speedy-styled-components@6.1.12-canary.0) '@sanity/util': 3.49.0 '@types/lodash-es': 4.17.12 framer-motion: 11.0.8(react-dom@18.3.1)(react@18.3.1) lodash-es: 4.17.21 react: 18.3.1 sanity: link:packages/sanity - styled-components: 6.1.11(react-dom@18.3.1)(react@18.3.1) + styled-components: /speedy-styled-components@6.1.12-canary.0(react-dom@18.3.1)(react@18.3.1) transitivePeerDependencies: - debug - react-dom dev: false - /sanity-plugin-mux-input@2.3.6(@types/react@18.3.3)(react-dom@18.3.1)(react-is@18.3.1)(react@18.3.1)(sanity@packages+sanity)(styled-components@6.1.11): + /sanity-plugin-mux-input@2.3.6(@types/react@18.3.3)(react-dom@18.3.1)(react-is@18.3.1)(react@18.3.1)(sanity@packages+sanity)(speedy-styled-components@6.1.12-canary.0): resolution: {integrity: sha512-qBiQE6VuVgJ42mfWbw+9T6UVsr5VyRZvs41Qew32XSb0vPlP19yb3eI2Vxxv5ENNTyhaXD5CxMQZOsv+OFADDA==} engines: {node: '>=18'} peerDependencies: react: '*' react-is: '*' sanity: ^3.42.0 - styled-components: ^5 || ^6 + styled-components: npm:speedy-styled-components@6.1.12-canary.0 dependencies: '@mux/mux-player-react': 2.7.0(@types/react@18.3.3)(react-dom@18.3.1)(react@18.3.1) '@mux/upchunk': 3.4.0 '@sanity/icons': 3.3.0(react@18.3.1) '@sanity/incompatible-plugin': 1.0.4(react-dom@18.3.1)(react@18.3.1) - '@sanity/ui': 2.6.4-canary.0(react-dom@18.3.1)(react-is@18.3.1)(react@18.3.1)(styled-components@6.1.11) + '@sanity/ui': 2.6.4-canary.0(react-dom@18.3.1)(react-is@18.3.1)(react@18.3.1)(speedy-styled-components@6.1.12-canary.0) '@sanity/uuid': 3.0.2 iso-639-1: 3.1.2 jsonwebtoken-esm: 1.0.5 @@ -18184,7 +18181,7 @@ packages: rxjs: 7.8.1 sanity: link:packages/sanity scroll-into-view-if-needed: 3.1.0 - styled-components: 6.1.11(react-dom@18.3.1)(react@18.3.1) + styled-components: /speedy-styled-components@6.1.12-canary.0(react-dom@18.3.1)(react@18.3.1) suspend-react: 0.1.3(react@18.3.1) swr: 2.2.5(react@18.3.1) type-fest: 4.20.1 @@ -18682,6 +18679,65 @@ packages: /speedometer@1.0.0: resolution: {integrity: sha512-lgxErLl/7A5+vgIIXsh9MbeukOaCb2axgQ+bKCdIE+ibNT4XNYGNCR1qFEGq6F+YDASXK3Fh/c5FgtZchFolxw==} + /speedy-styled-components@6.1.12-canary.0(react-dom@18.3.1)(react@18.3.1): + resolution: {integrity: sha512-cyZW8M4v9cPKs4xRclK8CfIlOUj77UhGw8Oc7DSN6cY6gkI47HlmetiZZ+RQbpWq2ozfETMDXD1ZjpR/NMQPng==} + engines: {node: '>= 16'} + peerDependencies: + react: '*' + react-dom: '*' + dependencies: + '@emotion/is-prop-valid': 1.2.2 + '@emotion/unitless': 0.8.1 + '@types/stylis': 4.2.5 + css-to-react-native: 3.2.0 + csstype: 3.1.3 + postcss: 8.4.38 + react: 18.3.1 + react-dom: 18.3.1(react@18.3.1) + shallowequal: 1.1.0 + stylis: 4.3.2 + tslib: 2.6.2 + + /speedy-styled-components@6.1.12-canary.0(react-dom@19.0.0-rc-38e3b23483-20240529)(react@19.0.0-rc-38e3b23483-20240529): + resolution: {integrity: sha512-cyZW8M4v9cPKs4xRclK8CfIlOUj77UhGw8Oc7DSN6cY6gkI47HlmetiZZ+RQbpWq2ozfETMDXD1ZjpR/NMQPng==} + engines: {node: '>= 16'} + peerDependencies: + react: '*' + react-dom: '*' + dependencies: + '@emotion/is-prop-valid': 1.2.2 + '@emotion/unitless': 0.8.1 + '@types/stylis': 4.2.5 + css-to-react-native: 3.2.0 + csstype: 3.1.3 + postcss: 8.4.38 + react: 19.0.0-rc-38e3b23483-20240529 + react-dom: 19.0.0-rc-38e3b23483-20240529(react@19.0.0-rc-38e3b23483-20240529) + shallowequal: 1.1.0 + stylis: 4.3.2 + tslib: 2.6.2 + dev: false + + /speedy-styled-components@6.1.12-canary.0(react-dom@19.0.0-rc-f994737d14-20240522)(react@19.0.0-rc-f994737d14-20240522): + resolution: {integrity: sha512-cyZW8M4v9cPKs4xRclK8CfIlOUj77UhGw8Oc7DSN6cY6gkI47HlmetiZZ+RQbpWq2ozfETMDXD1ZjpR/NMQPng==} + engines: {node: '>= 16'} + peerDependencies: + react: '*' + react-dom: '*' + dependencies: + '@emotion/is-prop-valid': 1.2.2 + '@emotion/unitless': 0.8.1 + '@types/stylis': 4.2.5 + css-to-react-native: 3.2.0 + csstype: 3.1.3 + postcss: 8.4.38 + react: 19.0.0-rc-f994737d14-20240522 + react-dom: 19.0.0-rc-f994737d14-20240522(react@19.0.0-rc-f994737d14-20240522) + shallowequal: 1.1.0 + stylis: 4.3.2 + tslib: 2.6.2 + dev: false + /split-string@3.1.0: resolution: {integrity: sha512-NzNVhJDYpwceVVii8/Hu6DKfD2G+NrQHlS/V/qgv763EYudVwEcMQNxd2lh+0VrUByXN/oJkl5grOhYWvQUYiw==} engines: {node: '>=0.10.0'} @@ -18982,90 +19038,6 @@ packages: resolution: {integrity: sha512-wnD1HyVqpJUI2+eKZ+eo1UwghftP6yuFheBqqe+bWCotBjC2K1YnteJILRMs3SM4V/0dLEW1SC27MWP5y+mwmw==} dev: false - /styled-components@5.3.11(@babel/core@7.24.7)(react-dom@18.3.1)(react-is@18.3.1)(react@18.3.1): - resolution: {integrity: sha512-uuzIIfnVkagcVHv9nE0VPlHPSCmXIUGKfJ42LNjxCCTDTL5sgnJ8Z7GZBq0EnLYGln77tPpEpExt2+qa+cZqSw==} - engines: {node: '>=10'} - peerDependencies: - react: '*' - react-dom: '*' - react-is: '*' - dependencies: - '@babel/helper-module-imports': 7.24.7(supports-color@5.5.0) - '@babel/traverse': 7.24.7(supports-color@5.5.0) - '@emotion/is-prop-valid': 1.2.2 - '@emotion/stylis': 0.8.5 - '@emotion/unitless': 0.7.5 - babel-plugin-styled-components: 2.1.4(@babel/core@7.24.7)(styled-components@5.3.11)(supports-color@5.5.0) - css-to-react-native: 3.2.0 - hoist-non-react-statics: 3.3.2 - react: 18.3.1 - react-dom: 18.3.1(react@18.3.1) - react-is: 18.3.1 - shallowequal: 1.1.0 - supports-color: 5.5.0 - transitivePeerDependencies: - - '@babel/core' - dev: false - - /styled-components@6.1.11(react-dom@18.3.1)(react@18.3.1): - resolution: {integrity: sha512-Ui0jXPzbp1phYij90h12ksljKGqF8ncGx+pjrNPsSPhbUUjWT2tD1FwGo2LF6USCnbrsIhNngDfodhxbegfEOA==} - engines: {node: '>= 16'} - peerDependencies: - react: '*' - react-dom: '*' - dependencies: - '@emotion/is-prop-valid': 1.2.2 - '@emotion/unitless': 0.8.1 - '@types/stylis': 4.2.5 - css-to-react-native: 3.2.0 - csstype: 3.1.3 - postcss: 8.4.38 - react: 18.3.1 - react-dom: 18.3.1(react@18.3.1) - shallowequal: 1.1.0 - stylis: 4.3.2 - tslib: 2.6.2 - - /styled-components@6.1.11(react-dom@19.0.0-rc-38e3b23483-20240529)(react@19.0.0-rc-38e3b23483-20240529): - resolution: {integrity: sha512-Ui0jXPzbp1phYij90h12ksljKGqF8ncGx+pjrNPsSPhbUUjWT2tD1FwGo2LF6USCnbrsIhNngDfodhxbegfEOA==} - engines: {node: '>= 16'} - peerDependencies: - react: '*' - react-dom: '*' - dependencies: - '@emotion/is-prop-valid': 1.2.2 - '@emotion/unitless': 0.8.1 - '@types/stylis': 4.2.5 - css-to-react-native: 3.2.0 - csstype: 3.1.3 - postcss: 8.4.38 - react: 19.0.0-rc-38e3b23483-20240529 - react-dom: 19.0.0-rc-38e3b23483-20240529(react@19.0.0-rc-38e3b23483-20240529) - shallowequal: 1.1.0 - stylis: 4.3.2 - tslib: 2.6.2 - dev: false - - /styled-components@6.1.11(react-dom@19.0.0-rc-f994737d14-20240522)(react@19.0.0-rc-f994737d14-20240522): - resolution: {integrity: sha512-Ui0jXPzbp1phYij90h12ksljKGqF8ncGx+pjrNPsSPhbUUjWT2tD1FwGo2LF6USCnbrsIhNngDfodhxbegfEOA==} - engines: {node: '>= 16'} - peerDependencies: - react: '*' - react-dom: '*' - dependencies: - '@emotion/is-prop-valid': 1.2.2 - '@emotion/unitless': 0.8.1 - '@types/stylis': 4.2.5 - css-to-react-native: 3.2.0 - csstype: 3.1.3 - postcss: 8.4.38 - react: 19.0.0-rc-f994737d14-20240522 - react-dom: 19.0.0-rc-f994737d14-20240522(react@19.0.0-rc-f994737d14-20240522) - shallowequal: 1.1.0 - stylis: 4.3.2 - tslib: 2.6.2 - dev: false - /styled-jsx@5.1.1(@babel/core@7.24.7)(react@18.3.1): resolution: {integrity: sha512-pW7uC1l4mBZ8ugbiZrcIsiIvVx1UmTfw7UkC3Um2tmfUq9Bhk8IiyEIPl6F8agHgjzku6j0xQEZbfA5uSgSaCw==} engines: {node: '>= 12.0.0'}