Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@contentful/live-preview

Package Overview
Dependencies
Maintainers
4
Versions
218
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@contentful/live-preview - npm Package Compare versions

Comparing version 3.3.0 to 3.3.1

dist/index-BOw4XuvW.js

2

dist/index.js

@@ -1,2 +0,2 @@

import { C as o, I as t, L as n, b as E, e as a, V as i, a as I, i as r, f as d, o as p, c as R } from "./index-bW8-FZO4.js";
import { C as o, I as t, L as n, b as E, e as a, V as i, a as I, i as r, f as d, o as p, c as R } from "./index-BOw4XuvW.js";
export {

@@ -3,0 +3,0 @@ o as ContentfulLivePreview,

@@ -1,8 +0,8 @@

import Zr, { createContext as xt, useRef as mr, useMemo as $r, useEffect as jt, useState as Dt, useContext as Qr, useCallback as It } from "react";
import { C as Ur, d as Ft } from "./index-bW8-FZO4.js";
var Er = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
function Lt(f) {
return f && f.__esModule && Object.prototype.hasOwnProperty.call(f, "default") ? f.default : f;
import rt, { createContext as xt, useRef as wr, useMemo as Nr, useEffect as jt, useState as Dt, useContext as tt, useCallback as It } from "react";
import { C as Yr, d as Ft } from "./index-BOw4XuvW.js";
var mr = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
function Lt(l) {
return l && l.__esModule && Object.prototype.hasOwnProperty.call(l, "default") ? l.default : l;
}
var Mr = { exports: {} }, Me = {};
var Wr = { exports: {} }, We = {};
/**

@@ -17,21 +17,21 @@ * @license React

*/
var Jr;
var Qr;
function Mt() {
if (Jr)
return Me;
Jr = 1;
var f = Zr, v = Symbol.for("react.element"), A = Symbol.for("react.fragment"), x = Object.prototype.hasOwnProperty, j = f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, I = { key: !0, ref: !0, __self: !0, __source: !0 };
function F(w, g, $) {
var C, L = {}, H = null, ie = null;
$ !== void 0 && (H = "" + $), g.key !== void 0 && (H = "" + g.key), g.ref !== void 0 && (ie = g.ref);
for (C in g)
x.call(g, C) && !I.hasOwnProperty(C) && (L[C] = g[C]);
if (Qr)
return We;
Qr = 1;
var l = rt, p = Symbol.for("react.element"), P = Symbol.for("react.fragment"), A = Object.prototype.hasOwnProperty, x = l.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, I = { key: !0, ref: !0, __self: !0, __source: !0 };
function F(w, g, U) {
var R, L = {}, K = null, oe = null;
U !== void 0 && (K = "" + U), g.key !== void 0 && (K = "" + g.key), g.ref !== void 0 && (oe = g.ref);
for (R in g)
A.call(g, R) && !I.hasOwnProperty(R) && (L[R] = g[R]);
if (w && w.defaultProps)
for (C in g = w.defaultProps, g)
L[C] === void 0 && (L[C] = g[C]);
return { $$typeof: v, type: w, key: H, ref: ie, props: L, _owner: j.current };
for (R in g = w.defaultProps, g)
L[R] === void 0 && (L[R] = g[R]);
return { $$typeof: p, type: w, key: K, ref: oe, props: L, _owner: x.current };
}
return Me.Fragment = A, Me.jsx = F, Me.jsxs = F, Me;
return We.Fragment = P, We.jsx = F, We.jsxs = F, We;
}
var $e = {};
var Ne = {};
/**

@@ -46,53 +46,53 @@ * @license React

*/
var Xr;
var et;
function $t() {
return Xr || (Xr = 1, process.env.NODE_ENV !== "production" && function() {
var f = Zr, v = Symbol.for("react.element"), A = Symbol.for("react.portal"), x = Symbol.for("react.fragment"), j = Symbol.for("react.strict_mode"), I = Symbol.for("react.profiler"), F = Symbol.for("react.provider"), w = Symbol.for("react.context"), g = Symbol.for("react.forward_ref"), $ = Symbol.for("react.suspense"), C = Symbol.for("react.suspense_list"), L = Symbol.for("react.memo"), H = Symbol.for("react.lazy"), ie = Symbol.for("react.offscreen"), Ue = Symbol.iterator, de = "@@iterator";
function Ne(r) {
return et || (et = 1, process.env.NODE_ENV !== "production" && function() {
var l = rt, p = Symbol.for("react.element"), P = Symbol.for("react.portal"), A = Symbol.for("react.fragment"), x = Symbol.for("react.strict_mode"), I = Symbol.for("react.profiler"), F = Symbol.for("react.provider"), w = Symbol.for("react.context"), g = Symbol.for("react.forward_ref"), U = Symbol.for("react.suspense"), R = Symbol.for("react.suspense_list"), L = Symbol.for("react.memo"), K = Symbol.for("react.lazy"), oe = Symbol.for("react.offscreen"), Ye = Symbol.iterator, ve = "@@iterator";
function ze(r) {
if (r === null || typeof r != "object")
return null;
var a = Ue && r[Ue] || r[de];
var a = Ye && r[Ye] || r[ve];
return typeof a == "function" ? a : null;
}
var X = f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
function E(r) {
var Z = l.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
function b(r) {
{
for (var a = arguments.length, i = new Array(a > 1 ? a - 1 : 0), u = 1; u < a; u++)
i[u - 1] = arguments[u];
We("error", r, i);
for (var a = arguments.length, i = new Array(a > 1 ? a - 1 : 0), s = 1; s < a; s++)
i[s - 1] = arguments[s];
Be("error", r, i);
}
}
function We(r, a, i) {
function Be(r, a, i) {
{
var u = X.ReactDebugCurrentFrame, p = u.getStackAddendum();
p !== "" && (a += "%s", i = i.concat([p]));
var c = i.map(function(d) {
var s = Z.ReactDebugCurrentFrame, u = s.getStackAddendum();
u !== "" && (a += "%s", i = i.concat([u]));
var v = i.map(function(d) {
return String(d);
});
c.unshift("Warning: " + a), Function.prototype.apply.call(console[r], console, c);
v.unshift("Warning: " + a), Function.prototype.apply.call(console[r], console, v);
}
}
var wr = !1, Ye = !1, pe = !1, ze = !1, Rr = !1, Be;
Be = Symbol.for("react.module.reference");
function Re(r) {
return !!(typeof r == "string" || typeof r == "function" || r === x || r === I || Rr || r === j || r === $ || r === C || ze || r === ie || wr || Ye || pe || typeof r == "object" && r !== null && (r.$$typeof === H || r.$$typeof === L || r.$$typeof === F || r.$$typeof === w || r.$$typeof === g || // This needs to include all possible module reference object
var Cr = !1, Ge = !1, ge = !1, qe = !1, Sr = !1, Ke;
Ke = Symbol.for("react.module.reference");
function Se(r) {
return !!(typeof r == "string" || typeof r == "function" || r === A || r === I || Sr || r === x || r === U || r === R || qe || r === oe || Cr || Ge || ge || typeof r == "object" && r !== null && (r.$$typeof === K || r.$$typeof === L || r.$$typeof === F || r.$$typeof === w || r.$$typeof === g || // This needs to include all possible module reference object
// types supported by any Flight configuration anywhere since
// we don't know which Flight build this will end up being used
// with.
r.$$typeof === Be || r.getModuleId !== void 0));
r.$$typeof === Ke || r.getModuleId !== void 0));
}
function Ge(r, a, i) {
var u = r.displayName;
if (u)
return u;
var p = a.displayName || a.name || "";
return p !== "" ? i + "(" + p + ")" : i;
function ke(r, a, i) {
var s = r.displayName;
if (s)
return s;
var u = a.displayName || a.name || "";
return u !== "" ? i + "(" + u + ")" : i;
}
function oe(r) {
function se(r) {
return r.displayName || "Context";
}
function z(r) {
function Y(r) {
if (r == null)
return null;
if (typeof r.tag == "number" && E("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof r == "function")
if (typeof r.tag == "number" && b("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof r == "function")
return r.displayName || r.name || null;

@@ -102,13 +102,13 @@ if (typeof r == "string")

switch (r) {
case x:
case A:
return "Fragment";
case A:
case P:
return "Portal";
case I:
return "Profiler";
case j:
case x:
return "StrictMode";
case $:
case U:
return "Suspense";
case C:
case R:
return "SuspenseList";

@@ -120,15 +120,15 @@ }

var a = r;
return oe(a) + ".Consumer";
return se(a) + ".Consumer";
case F:
var i = r;
return oe(i._context) + ".Provider";
return se(i._context) + ".Provider";
case g:
return Ge(r, r.render, "ForwardRef");
return ke(r, r.render, "ForwardRef");
case L:
var u = r.displayName || null;
return u !== null ? u : z(r.type) || "Memo";
case H: {
var p = r, c = p._payload, d = p._init;
var s = r.displayName || null;
return s !== null ? s : Y(r.type) || "Memo";
case K: {
var u = r, v = u._payload, d = u._init;
try {
return z(d(c));
return Y(d(v));
} catch {

@@ -141,14 +141,14 @@ return null;

}
var k = Object.assign, ue = 0, qe, He, Ke, ke, Ve, Je, Xe;
function Ze() {
var H = Object.assign, ue = 0, He, Je, Ve, Xe, Ze, Qe, er;
function rr() {
}
Ze.__reactDisabledLog = !0;
function Cr() {
rr.__reactDisabledLog = !0;
function Or() {
{
if (ue === 0) {
qe = console.log, He = console.info, Ke = console.warn, ke = console.error, Ve = console.group, Je = console.groupCollapsed, Xe = console.groupEnd;
He = console.log, Je = console.info, Ve = console.warn, Xe = console.error, Ze = console.group, Qe = console.groupCollapsed, er = console.groupEnd;
var r = {
configurable: !0,
enumerable: !0,
value: Ze,
value: rr,
writable: !0

@@ -169,3 +169,3 @@ };

}
function _() {
function h() {
{

@@ -179,61 +179,61 @@ if (ue--, ue === 0) {

Object.defineProperties(console, {
log: k({}, r, {
value: qe
}),
info: k({}, r, {
log: H({}, r, {
value: He
}),
warn: k({}, r, {
value: Ke
info: H({}, r, {
value: Je
}),
error: k({}, r, {
value: ke
}),
group: k({}, r, {
warn: H({}, r, {
value: Ve
}),
groupCollapsed: k({}, r, {
value: Je
error: H({}, r, {
value: Xe
}),
groupEnd: k({}, r, {
value: Xe
group: H({}, r, {
value: Ze
}),
groupCollapsed: H({}, r, {
value: Qe
}),
groupEnd: H({}, r, {
value: er
})
});
}
ue < 0 && E("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
ue < 0 && b("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
}
}
var ve = X.ReactCurrentDispatcher, Ce;
var _e = Z.ReactCurrentDispatcher, Oe;
function M(r, a, i) {
{
if (Ce === void 0)
if (Oe === void 0)
try {
throw Error();
} catch (p) {
var u = p.stack.trim().match(/\n( *(at )?)/);
Ce = u && u[1] || "";
} catch (u) {
var s = u.stack.trim().match(/\n( *(at )?)/);
Oe = s && s[1] || "";
}
return `
` + Ce + r;
` + Oe + r;
}
}
var ge = !1, se;
var he = !1, fe;
{
var Qe = typeof WeakMap == "function" ? WeakMap : Map;
se = new Qe();
var tr = typeof WeakMap == "function" ? WeakMap : Map;
fe = new tr();
}
function _e(r, a) {
if (!r || ge)
function ye(r, a) {
if (!r || he)
return "";
{
var i = se.get(r);
var i = fe.get(r);
if (i !== void 0)
return i;
}
var u;
ge = !0;
var p = Error.prepareStackTrace;
var s;
he = !0;
var u = Error.prepareStackTrace;
Error.prepareStackTrace = void 0;
var c;
c = ve.current, ve.current = null, Cr();
var v;
v = _e.current, _e.current = null, Or();
try {

@@ -251,4 +251,4 @@ if (a) {

Reflect.construct(d, []);
} catch (G) {
u = G;
} catch (j) {
s = j;
}

@@ -259,4 +259,4 @@ Reflect.construct(r, [], d);

d.call();
} catch (G) {
u = G;
} catch (j) {
s = j;
}

@@ -268,23 +268,23 @@ r.call(d.prototype);

throw Error();
} catch (G) {
u = G;
} catch (j) {
s = j;
}
r();
}
} catch (G) {
if (G && u && typeof G.stack == "string") {
for (var l = G.stack.split(`
`), O = u.stack.split(`
`), y = l.length - 1, m = O.length - 1; y >= 1 && m >= 0 && l[y] !== O[m]; )
m--;
for (; y >= 1 && m >= 0; y--, m--)
if (l[y] !== O[m]) {
if (y !== 1 || m !== 1)
} catch (j) {
if (j && s && typeof j.stack == "string") {
for (var c = j.stack.split(`
`), S = s.stack.split(`
`), E = c.length - 1, _ = S.length - 1; E >= 1 && _ >= 0 && c[E] !== S[_]; )
_--;
for (; E >= 1 && _ >= 0; E--, _--)
if (c[E] !== S[_]) {
if (E !== 1 || _ !== 1)
do
if (y--, m--, m < 0 || l[y] !== O[m]) {
var R = `
` + l[y].replace(" at new ", " at ");
return r.displayName && R.includes("<anonymous>") && (R = R.replace("<anonymous>", r.displayName)), typeof r == "function" && se.set(r, R), R;
if (E--, _--, _ < 0 || c[E] !== S[_]) {
var $ = `
` + c[E].replace(" at new ", " at ");
return r.displayName && $.includes("<anonymous>") && ($ = $.replace("<anonymous>", r.displayName)), typeof r == "function" && fe.set(r, $), $;
}
while (y >= 1 && m >= 0);
while (E >= 1 && _ >= 0);
break;

@@ -294,25 +294,25 @@ }

} finally {
ge = !1, ve.current = c, _(), Error.prepareStackTrace = p;
he = !1, _e.current = v, h(), Error.prepareStackTrace = u;
}
var re = r ? r.displayName || r.name : "", pr = re ? M(re) : "";
return typeof r == "function" && se.set(r, pr), pr;
var te = r ? r.displayName || r.name : "", V = te ? M(te) : "";
return typeof r == "function" && fe.set(r, V), V;
}
function er(r, a, i) {
return _e(r, !1);
function nr(r, a, i) {
return ye(r, !1);
}
function rr(r) {
function ar(r) {
var a = r.prototype;
return !!(a && a.isReactComponent);
}
function he(r, a, i) {
function be(r, a, i) {
if (r == null)
return "";
if (typeof r == "function")
return _e(r, rr(r));
return ye(r, ar(r));
if (typeof r == "string")
return M(r);
switch (r) {
case $:
case U:
return M("Suspense");
case C:
case R:
return M("SuspenseList");

@@ -323,9 +323,9 @@ }

case g:
return er(r.render);
return nr(r.render);
case L:
return he(r.type, a, i);
case H: {
var u = r, p = u._payload, c = u._init;
return be(r.type, a, i);
case K: {
var s = r, u = s._payload, v = s._init;
try {
return he(c(p), a, i);
return be(v(u), a, i);
} catch {

@@ -337,34 +337,34 @@ }

}
var ye = Object.prototype.hasOwnProperty, tr = {}, nr = X.ReactDebugCurrentFrame;
function be(r) {
var le = Object.prototype.hasOwnProperty, ir = {}, or = Z.ReactDebugCurrentFrame;
function Ee(r) {
if (r) {
var a = r._owner, i = he(r.type, r._source, a ? a.type : null);
nr.setExtraStackFrame(i);
var a = r._owner, i = be(r.type, r._source, a ? a.type : null);
or.setExtraStackFrame(i);
} else
nr.setExtraStackFrame(null);
or.setExtraStackFrame(null);
}
function Sr(r, a, i, u, p) {
function Pr(r, a, i, s, u) {
{
var c = Function.call.bind(ye);
var v = Function.call.bind(le);
for (var d in r)
if (c(r, d)) {
var l = void 0;
if (v(r, d)) {
var c = void 0;
try {
if (typeof r[d] != "function") {
var O = Error((u || "React class") + ": " + i + " type `" + d + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof r[d] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
throw O.name = "Invariant Violation", O;
var S = Error((s || "React class") + ": " + i + " type `" + d + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof r[d] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
throw S.name = "Invariant Violation", S;
}
l = r[d](a, d, u, i, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
} catch (y) {
l = y;
c = r[d](a, d, s, i, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
} catch (E) {
c = E;
}
l && !(l instanceof Error) && (be(p), E("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", u || "React class", i, d, typeof l), be(null)), l instanceof Error && !(l.message in tr) && (tr[l.message] = !0, be(p), E("Failed %s type: %s", i, l.message), be(null));
c && !(c instanceof Error) && (Ee(u), b("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", s || "React class", i, d, typeof c), Ee(null)), c instanceof Error && !(c.message in ir) && (ir[c.message] = !0, Ee(u), b("Failed %s type: %s", i, c.message), Ee(null));
}
}
}
var Or = Array.isArray;
function Se(r) {
return Or(r);
var Ar = Array.isArray;
function Pe(r) {
return Ar(r);
}
function Pr(r) {
function xr(r) {
{

@@ -375,5 +375,5 @@ var a = typeof Symbol == "function" && Symbol.toStringTag, i = a && r[Symbol.toStringTag] || r.constructor.name || "Object";

}
function Ar(r) {
function jr(r) {
try {
return ar(r), !1;
return sr(r), !1;
} catch {

@@ -383,10 +383,10 @@ return !0;

}
function ar(r) {
function sr(r) {
return "" + r;
}
function ir(r) {
if (Ar(r))
return E("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Pr(r)), ar(r);
function ur(r) {
if (jr(r))
return b("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", xr(r)), sr(r);
}
var K = X.ReactCurrentOwner, Oe = {
var k = Z.ReactCurrentOwner, Ae = {
key: !0,

@@ -396,6 +396,6 @@ ref: !0,

__source: !0
}, Pe, U, Ee;
Ee = {};
function or(r) {
if (ye.call(r, "ref")) {
}, xe, W, Te;
Te = {};
function fr(r) {
if (le.call(r, "ref")) {
var a = Object.getOwnPropertyDescriptor(r, "ref").get;

@@ -407,4 +407,4 @@ if (a && a.isReactWarning)

}
function xr(r) {
if (ye.call(r, "key")) {
function Dr(r) {
if (le.call(r, "key")) {
var a = Object.getOwnPropertyDescriptor(r, "key").get;

@@ -416,6 +416,6 @@ if (a && a.isReactWarning)

}
function ur(r, a) {
if (typeof r.ref == "string" && K.current && a && K.current.stateNode !== a) {
var i = z(K.current.type);
Ee[i] || (E('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', z(K.current.type), r.ref), Ee[i] = !0);
function lr(r, a) {
if (typeof r.ref == "string" && k.current && a && k.current.stateNode !== a) {
var i = Y(k.current.type);
Te[i] || (b('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', Y(k.current.type), r.ref), Te[i] = !0);
}

@@ -426,3 +426,3 @@ }

var i = function() {
Pe || (Pe = !0, E("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", a));
xe || (xe = !0, b("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", a));
};

@@ -435,6 +435,6 @@ i.isReactWarning = !0, Object.defineProperty(r, "key", {

}
function sr(r, a) {
function cr(r, a) {
{
var i = function() {
U || (U = !0, E("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", a));
W || (W = !0, b("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", a));
};

@@ -447,6 +447,6 @@ i.isReactWarning = !0, Object.defineProperty(r, "ref", {

}
var fr = function(r, a, i, u, p, c, d) {
var l = {
var dr = function(r, a, i, s, u, v, d) {
var c = {
// This tag allows us to uniquely identify this as a React Element
$$typeof: v,
$$typeof: p,
// Built-in properties that belong on the element

@@ -458,5 +458,5 @@ type: r,

// Record the component responsible for creating this element.
_owner: c
_owner: v
};
return l._store = {}, Object.defineProperty(l._store, "validated", {
return c._store = {}, Object.defineProperty(c._store, "validated", {
configurable: !1,

@@ -466,49 +466,49 @@ enumerable: !1,

value: !1
}), Object.defineProperty(l, "_self", {
}), Object.defineProperty(c, "_self", {
configurable: !1,
enumerable: !1,
writable: !1,
value: u
}), Object.defineProperty(l, "_source", {
value: s
}), Object.defineProperty(c, "_source", {
configurable: !1,
enumerable: !1,
writable: !1,
value: p
}), Object.freeze && (Object.freeze(l.props), Object.freeze(l)), l;
value: u
}), Object.freeze && (Object.freeze(c.props), Object.freeze(c)), c;
};
function jr(r, a, i, u, p) {
function Ir(r, a, i, s, u) {
{
var c, d = {}, l = null, O = null;
i !== void 0 && (ir(i), l = "" + i), xr(a) && (ir(a.key), l = "" + a.key), or(a) && (O = a.ref, ur(a, p));
for (c in a)
ye.call(a, c) && !Oe.hasOwnProperty(c) && (d[c] = a[c]);
var v, d = {}, c = null, S = null;
i !== void 0 && (ur(i), c = "" + i), Dr(a) && (ur(a.key), c = "" + a.key), fr(a) && (S = a.ref, lr(a, u));
for (v in a)
le.call(a, v) && !Ae.hasOwnProperty(v) && (d[v] = a[v]);
if (r && r.defaultProps) {
var y = r.defaultProps;
for (c in y)
d[c] === void 0 && (d[c] = y[c]);
var E = r.defaultProps;
for (v in E)
d[v] === void 0 && (d[v] = E[v]);
}
if (l || O) {
var m = typeof r == "function" ? r.displayName || r.name || "Unknown" : r;
l && me(d, m), O && sr(d, m);
if (c || S) {
var _ = typeof r == "function" ? r.displayName || r.name || "Unknown" : r;
c && me(d, _), S && cr(d, _);
}
return fr(r, l, O, p, u, K.current, d);
return dr(r, c, S, u, s, k.current, d);
}
}
var B = X.ReactCurrentOwner, Ae = X.ReactDebugCurrentFrame;
function Z(r) {
var G = Z.ReactCurrentOwner, je = Z.ReactDebugCurrentFrame;
function Q(r) {
if (r) {
var a = r._owner, i = he(r.type, r._source, a ? a.type : null);
Ae.setExtraStackFrame(i);
var a = r._owner, i = be(r.type, r._source, a ? a.type : null);
je.setExtraStackFrame(i);
} else
Ae.setExtraStackFrame(null);
je.setExtraStackFrame(null);
}
var xe;
xe = !1;
function fe(r) {
return typeof r == "object" && r !== null && r.$$typeof === v;
var De;
De = !1;
function ce(r) {
return typeof r == "object" && r !== null && r.$$typeof === p;
}
function Q() {
function ee() {
{
if (B.current) {
var r = z(B.current.type);
if (G.current) {
var r = Y(G.current.type);
if (r)

@@ -522,3 +522,3 @@ return `

}
function je(r) {
function Ie(r) {
{

@@ -534,6 +534,6 @@ if (r !== void 0) {

}
var Te = {};
function De(r) {
var we = {};
function Fe(r) {
{
var a = Q();
var a = ee();
if (!a) {

@@ -548,3 +548,3 @@ var i = typeof r == "string" ? r : r.displayName || r.name;

}
function ee(r, a) {
function re(r, a) {
{

@@ -554,30 +554,30 @@ if (!r._store || r._store.validated || r.key != null)

r._store.validated = !0;
var i = De(a);
if (Te[i])
var i = Fe(a);
if (we[i])
return;
Te[i] = !0;
var u = "";
r && r._owner && r._owner !== B.current && (u = " It was passed a child from " + z(r._owner.type) + "."), Z(r), E('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', i, u), Z(null);
we[i] = !0;
var s = "";
r && r._owner && r._owner !== G.current && (s = " It was passed a child from " + Y(r._owner.type) + "."), Q(r), b('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', i, s), Q(null);
}
}
function lr(r, a) {
function pr(r, a) {
{
if (typeof r != "object")
return;
if (Se(r))
if (Pe(r))
for (var i = 0; i < r.length; i++) {
var u = r[i];
fe(u) && ee(u, a);
var s = r[i];
ce(s) && re(s, a);
}
else if (fe(r))
else if (ce(r))
r._store && (r._store.validated = !0);
else if (r) {
var p = Ne(r);
if (typeof p == "function" && p !== r.entries)
for (var c = p.call(r), d; !(d = c.next()).done; )
fe(d.value) && ee(d.value, a);
var u = ze(r);
if (typeof u == "function" && u !== r.entries)
for (var v = u.call(r), d; !(d = v.next()).done; )
ce(d.value) && re(d.value, a);
}
}
}
function Dr(r) {
function Fr(r) {
{

@@ -597,89 +597,104 @@ var a = r.type;

if (i) {
var u = z(a);
Sr(i, r.props, "prop", u, r);
} else if (a.PropTypes !== void 0 && !xe) {
xe = !0;
var p = z(a);
E("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", p || "Unknown");
var s = Y(a);
Pr(i, r.props, "prop", s, r);
} else if (a.PropTypes !== void 0 && !De) {
De = !0;
var u = Y(a);
b("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", u || "Unknown");
}
typeof a.getDefaultProps == "function" && !a.getDefaultProps.isReactClassApproved && E("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
typeof a.getDefaultProps == "function" && !a.getDefaultProps.isReactClassApproved && b("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
}
}
function Ir(r) {
function Lr(r) {
{
for (var a = Object.keys(r.props), i = 0; i < a.length; i++) {
var u = a[i];
if (u !== "children" && u !== "key") {
Z(r), E("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", u), Z(null);
var s = a[i];
if (s !== "children" && s !== "key") {
Q(r), b("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", s), Q(null);
break;
}
}
r.ref !== null && (Z(r), E("Invalid attribute `ref` supplied to `React.Fragment`."), Z(null));
r.ref !== null && (Q(r), b("Invalid attribute `ref` supplied to `React.Fragment`."), Q(null));
}
}
function cr(r, a, i, u, p, c) {
var vr = {};
function gr(r, a, i, s, u, v) {
{
var d = Re(r);
var d = Se(r);
if (!d) {
var l = "";
(r === void 0 || typeof r == "object" && r !== null && Object.keys(r).length === 0) && (l += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
var O = je(p);
O ? l += O : l += Q();
var y;
r === null ? y = "null" : Se(r) ? y = "array" : r !== void 0 && r.$$typeof === v ? (y = "<" + (z(r.type) || "Unknown") + " />", l = " Did you accidentally export a JSX literal instead of a component?") : y = typeof r, E("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", y, l);
var c = "";
(r === void 0 || typeof r == "object" && r !== null && Object.keys(r).length === 0) && (c += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
var S = Ie(u);
S ? c += S : c += ee();
var E;
r === null ? E = "null" : Pe(r) ? E = "array" : r !== void 0 && r.$$typeof === p ? (E = "<" + (Y(r.type) || "Unknown") + " />", c = " Did you accidentally export a JSX literal instead of a component?") : E = typeof r, b("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", E, c);
}
var m = jr(r, a, i, p, c);
if (m == null)
return m;
var _ = Ir(r, a, i, u, v);
if (_ == null)
return _;
if (d) {
var R = a.children;
if (R !== void 0)
if (u)
if (Se(R)) {
for (var re = 0; re < R.length; re++)
lr(R[re], r);
Object.freeze && Object.freeze(R);
var $ = a.children;
if ($ !== void 0)
if (s)
if (Pe($)) {
for (var te = 0; te < $.length; te++)
pr($[te], r);
Object.freeze && Object.freeze($);
} else
E("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
b("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
else
lr(R, r);
pr($, r);
}
return r === x ? Ir(m) : Dr(m), m;
if (le.call(a, "key")) {
var V = Y(r), j = Object.keys(a).filter(function($r) {
return $r !== "key";
}), Me = j.length > 0 ? "{key: someKey, " + j.join(": ..., ") + ": ...}" : "{key: someKey}";
if (!vr[V + Me]) {
var Re = j.length > 0 ? "{" + j.join(": ..., ") + ": ...}" : "{}";
b(`A props object containing a "key" prop is being spread into JSX:
let props = %s;
<%s {...props} />
React keys must be passed directly to JSX without using spread:
let props = %s;
<%s key={someKey} {...props} />`, Me, V, Re, V), vr[V + Me] = !0;
}
}
return r === A ? Lr(_) : Fr(_), _;
}
}
function Fr(r, a, i) {
return cr(r, a, i, !0);
function _r(r, a, i) {
return gr(r, a, i, !0);
}
function dr(r, a, i) {
return cr(r, a, i, !1);
function Le(r, a, i) {
return gr(r, a, i, !1);
}
var Ie = dr, V = Fr;
$e.Fragment = x, $e.jsx = Ie, $e.jsxs = V;
}()), $e;
var J = Le, Mr = _r;
Ne.Fragment = A, Ne.jsx = J, Ne.jsxs = Mr;
}()), Ne;
}
process.env.NODE_ENV === "production" ? Mr.exports = Mt() : Mr.exports = $t();
var Ut = Mr.exports, Tr = { exports: {} };
Tr.exports;
(function(f, v) {
var A = 200, x = "__lodash_hash_undefined__", j = 1, I = 2, F = 9007199254740991, w = "[object Arguments]", g = "[object Array]", $ = "[object AsyncFunction]", C = "[object Boolean]", L = "[object Date]", H = "[object Error]", ie = "[object Function]", Ue = "[object GeneratorFunction]", de = "[object Map]", Ne = "[object Number]", X = "[object Null]", E = "[object Object]", We = "[object Promise]", wr = "[object Proxy]", Ye = "[object RegExp]", pe = "[object Set]", ze = "[object String]", Rr = "[object Symbol]", Be = "[object Undefined]", Re = "[object WeakMap]", Ge = "[object ArrayBuffer]", oe = "[object DataView]", z = "[object Float32Array]", k = "[object Float64Array]", ue = "[object Int8Array]", qe = "[object Int16Array]", He = "[object Int32Array]", Ke = "[object Uint8Array]", ke = "[object Uint8ClampedArray]", Ve = "[object Uint16Array]", Je = "[object Uint32Array]", Xe = /[\\^$.*+?()[\]{}|]/g, Ze = /^\[object .+?Constructor\]$/, Cr = /^(?:0|[1-9]\d*)$/, _ = {};
_[z] = _[k] = _[ue] = _[qe] = _[He] = _[Ke] = _[ke] = _[Ve] = _[Je] = !0, _[w] = _[g] = _[Ge] = _[C] = _[oe] = _[L] = _[H] = _[ie] = _[de] = _[Ne] = _[E] = _[Ye] = _[pe] = _[ze] = _[Re] = !1;
var ve = typeof Er == "object" && Er && Er.Object === Object && Er, Ce = typeof self == "object" && self && self.Object === Object && self, M = ve || Ce || Function("return this")(), ge = v && !v.nodeType && v, se = ge && !0 && f && !f.nodeType && f, Qe = se && se.exports === ge, _e = Qe && ve.process, er = function() {
process.env.NODE_ENV === "production" ? Wr.exports = Mt() : Wr.exports = $t();
var Ut = Wr.exports, Rr = { exports: {} };
Rr.exports;
(function(l, p) {
var P = 200, A = "__lodash_hash_undefined__", x = 1, I = 2, F = 9007199254740991, w = "[object Arguments]", g = "[object Array]", U = "[object AsyncFunction]", R = "[object Boolean]", L = "[object Date]", K = "[object Error]", oe = "[object Function]", Ye = "[object GeneratorFunction]", ve = "[object Map]", ze = "[object Number]", Z = "[object Null]", b = "[object Object]", Be = "[object Promise]", Cr = "[object Proxy]", Ge = "[object RegExp]", ge = "[object Set]", qe = "[object String]", Sr = "[object Symbol]", Ke = "[object Undefined]", Se = "[object WeakMap]", ke = "[object ArrayBuffer]", se = "[object DataView]", Y = "[object Float32Array]", H = "[object Float64Array]", ue = "[object Int8Array]", He = "[object Int16Array]", Je = "[object Int32Array]", Ve = "[object Uint8Array]", Xe = "[object Uint8ClampedArray]", Ze = "[object Uint16Array]", Qe = "[object Uint32Array]", er = /[\\^$.*+?()[\]{}|]/g, rr = /^\[object .+?Constructor\]$/, Or = /^(?:0|[1-9]\d*)$/, h = {};
h[Y] = h[H] = h[ue] = h[He] = h[Je] = h[Ve] = h[Xe] = h[Ze] = h[Qe] = !0, h[w] = h[g] = h[ke] = h[R] = h[se] = h[L] = h[K] = h[oe] = h[ve] = h[ze] = h[b] = h[Ge] = h[ge] = h[qe] = h[Se] = !1;
var _e = typeof mr == "object" && mr && mr.Object === Object && mr, Oe = typeof self == "object" && self && self.Object === Object && self, M = _e || Oe || Function("return this")(), he = p && !p.nodeType && p, fe = he && !0 && l && !l.nodeType && l, tr = fe && fe.exports === he, ye = tr && _e.process, nr = function() {
try {
return _e && _e.binding && _e.binding("util");
return ye && ye.binding && ye.binding("util");
} catch {
}
}(), rr = er && er.isTypedArray;
function he(e, t) {
for (var n = -1, o = e == null ? 0 : e.length, h = 0, s = []; ++n < o; ) {
var T = e[n];
t(T, n, e) && (s[h++] = T);
}(), ar = nr && nr.isTypedArray;
function be(e, t) {
for (var n = -1, o = e == null ? 0 : e.length, y = 0, f = []; ++n < o; ) {
var m = e[n];
t(m, n, e) && (f[y++] = m);
}
return s;
return f;
}
function ye(e, t) {
for (var n = -1, o = t.length, h = e.length; ++n < o; )
e[h + n] = t[n];
function le(e, t) {
for (var n = -1, o = t.length, y = e.length; ++n < o; )
e[y + n] = t[n];
return e;
}
function tr(e, t) {
function ir(e, t) {
for (var n = -1, o = e == null ? 0 : e.length; ++n < o; )

@@ -690,3 +705,3 @@ if (t(e[n], n, e))

}
function nr(e, t) {
function or(e, t) {
for (var n = -1, o = Array(e); ++n < e; )

@@ -696,3 +711,3 @@ o[n] = t(n);

}
function be(e) {
function Ee(e) {
return function(t) {

@@ -702,15 +717,15 @@ return e(t);

}
function Sr(e, t) {
function Pr(e, t) {
return e.has(t);
}
function Or(e, t) {
function Ar(e, t) {
return e == null ? void 0 : e[t];
}
function Se(e) {
function Pe(e) {
var t = -1, n = Array(e.size);
return e.forEach(function(o, h) {
n[++t] = [h, o];
return e.forEach(function(o, y) {
n[++t] = [y, o];
}), n;
}
function Pr(e, t) {
function xr(e, t) {
return function(n) {

@@ -720,3 +735,3 @@ return e(t(n));

}
function Ar(e) {
function jr(e) {
var t = -1, n = Array(e.size);

@@ -727,9 +742,9 @@ return e.forEach(function(o) {

}
var ar = Array.prototype, ir = Function.prototype, K = Object.prototype, Oe = M["__core-js_shared__"], Pe = ir.toString, U = K.hasOwnProperty, Ee = function() {
var e = /[^.]+$/.exec(Oe && Oe.keys && Oe.keys.IE_PROTO || "");
var sr = Array.prototype, ur = Function.prototype, k = Object.prototype, Ae = M["__core-js_shared__"], xe = ur.toString, W = k.hasOwnProperty, Te = function() {
var e = /[^.]+$/.exec(Ae && Ae.keys && Ae.keys.IE_PROTO || "");
return e ? "Symbol(src)_1." + e : "";
}(), or = K.toString, xr = RegExp(
"^" + Pe.call(U).replace(Xe, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
), ur = Qe ? M.Buffer : void 0, me = M.Symbol, sr = M.Uint8Array, fr = K.propertyIsEnumerable, jr = ar.splice, B = me ? me.toStringTag : void 0, Ae = Object.getOwnPropertySymbols, Z = ur ? ur.isBuffer : void 0, xe = Pr(Object.keys, Object), fe = we(M, "DataView"), Q = we(M, "Map"), je = we(M, "Promise"), Te = we(M, "Set"), De = we(M, "WeakMap"), ee = we(Object, "create"), lr = le(fe), Dr = le(Q), Ir = le(je), cr = le(Te), Fr = le(De), dr = me ? me.prototype : void 0, Ie = dr ? dr.valueOf : void 0;
function V(e) {
}(), fr = k.toString, Dr = RegExp(
"^" + xe.call(W).replace(er, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
), lr = tr ? M.Buffer : void 0, me = M.Symbol, cr = M.Uint8Array, dr = k.propertyIsEnumerable, Ir = sr.splice, G = me ? me.toStringTag : void 0, je = Object.getOwnPropertySymbols, Q = lr ? lr.isBuffer : void 0, De = xr(Object.keys, Object), ce = Ce(M, "DataView"), ee = Ce(M, "Map"), Ie = Ce(M, "Promise"), we = Ce(M, "Set"), Fe = Ce(M, "WeakMap"), re = Ce(Object, "create"), pr = de(ce), Fr = de(ee), Lr = de(Ie), vr = de(we), gr = de(Fe), _r = me ? me.prototype : void 0, Le = _r ? _r.valueOf : void 0;
function J(e) {
var t = -1, n = e == null ? 0 : e.length;

@@ -741,27 +756,27 @@ for (this.clear(); ++t < n; ) {

}
function r() {
this.__data__ = ee ? ee(null) : {}, this.size = 0;
function Mr() {
this.__data__ = re ? re(null) : {}, this.size = 0;
}
function a(e) {
function r(e) {
var t = this.has(e) && delete this.__data__[e];
return this.size -= t ? 1 : 0, t;
}
function i(e) {
function a(e) {
var t = this.__data__;
if (ee) {
if (re) {
var n = t[e];
return n === x ? void 0 : n;
return n === A ? void 0 : n;
}
return U.call(t, e) ? t[e] : void 0;
return W.call(t, e) ? t[e] : void 0;
}
function u(e) {
function i(e) {
var t = this.__data__;
return ee ? t[e] !== void 0 : U.call(t, e);
return re ? t[e] !== void 0 : W.call(t, e);
}
function p(e, t) {
function s(e, t) {
var n = this.__data__;
return this.size += this.has(e) ? 0 : 1, n[e] = ee && t === void 0 ? x : t, this;
return this.size += this.has(e) ? 0 : 1, n[e] = re && t === void 0 ? A : t, this;
}
V.prototype.clear = r, V.prototype.delete = a, V.prototype.get = i, V.prototype.has = u, V.prototype.set = p;
function c(e) {
J.prototype.clear = Mr, J.prototype.delete = r, J.prototype.get = a, J.prototype.has = i, J.prototype.set = s;
function u(e) {
var t = -1, n = e == null ? 0 : e.length;

@@ -773,25 +788,25 @@ for (this.clear(); ++t < n; ) {

}
function d() {
function v() {
this.__data__ = [], this.size = 0;
}
function l(e) {
var t = this.__data__, n = gr(t, e);
function d(e) {
var t = this.__data__, n = hr(t, e);
if (n < 0)
return !1;
var o = t.length - 1;
return n == o ? t.pop() : jr.call(t, n, 1), --this.size, !0;
return n == o ? t.pop() : Ir.call(t, n, 1), --this.size, !0;
}
function O(e) {
var t = this.__data__, n = gr(t, e);
function c(e) {
var t = this.__data__, n = hr(t, e);
return n < 0 ? void 0 : t[n][1];
}
function y(e) {
return gr(this.__data__, e) > -1;
function S(e) {
return hr(this.__data__, e) > -1;
}
function m(e, t) {
var n = this.__data__, o = gr(n, e);
function E(e, t) {
var n = this.__data__, o = hr(n, e);
return o < 0 ? (++this.size, n.push([e, t])) : n[o][1] = t, this;
}
c.prototype.clear = d, c.prototype.delete = l, c.prototype.get = O, c.prototype.has = y, c.prototype.set = m;
function R(e) {
u.prototype.clear = v, u.prototype.delete = d, u.prototype.get = c, u.prototype.has = S, u.prototype.set = E;
function _(e) {
var t = -1, n = e == null ? 0 : e.length;

@@ -803,31 +818,31 @@ for (this.clear(); ++t < n; ) {

}
function re() {
function $() {
this.size = 0, this.__data__ = {
hash: new V(),
map: new (Q || c)(),
string: new V()
hash: new J(),
map: new (ee || u)(),
string: new J()
};
}
function pr(e) {
var t = _r(this, e).delete(e);
function te(e) {
var t = yr(this, e).delete(e);
return this.size -= t ? 1 : 0, t;
}
function G(e) {
return _r(this, e).get(e);
function V(e) {
return yr(this, e).get(e);
}
function et(e) {
return _r(this, e).has(e);
function j(e) {
return yr(this, e).has(e);
}
function rt(e, t) {
var n = _r(this, e), o = n.size;
function Me(e, t) {
var n = yr(this, e), o = n.size;
return n.set(e, t), this.size += n.size == o ? 0 : 1, this;
}
R.prototype.clear = re, R.prototype.delete = pr, R.prototype.get = G, R.prototype.has = et, R.prototype.set = rt;
function vr(e) {
_.prototype.clear = $, _.prototype.delete = te, _.prototype.get = V, _.prototype.has = j, _.prototype.set = Me;
function Re(e) {
var t = -1, n = e == null ? 0 : e.length;
for (this.__data__ = new R(); ++t < n; )
for (this.__data__ = new _(); ++t < n; )
this.add(e[t]);
}
function tt(e) {
return this.__data__.set(e, x), this;
function $r(e) {
return this.__data__.set(e, A), this;
}

@@ -837,9 +852,9 @@ function nt(e) {

}
vr.prototype.add = vr.prototype.push = tt, vr.prototype.has = nt;
function te(e) {
var t = this.__data__ = new c(e);
Re.prototype.add = Re.prototype.push = $r, Re.prototype.has = nt;
function ne(e) {
var t = this.__data__ = new u(e);
this.size = t.size;
}
function at() {
this.__data__ = new c(), this.size = 0;
this.__data__ = new u(), this.size = 0;
}

@@ -853,29 +868,29 @@ function it(e) {

}
function ut(e) {
function st(e) {
return this.__data__.has(e);
}
function st(e, t) {
function ut(e, t) {
var n = this.__data__;
if (n instanceof c) {
if (n instanceof u) {
var o = n.__data__;
if (!Q || o.length < A - 1)
if (!ee || o.length < P - 1)
return o.push([e, t]), this.size = ++n.size, this;
n = this.__data__ = new R(o);
n = this.__data__ = new _(o);
}
return n.set(e, t), this.size = n.size, this;
}
te.prototype.clear = at, te.prototype.delete = it, te.prototype.get = ot, te.prototype.has = ut, te.prototype.set = st;
ne.prototype.clear = at, ne.prototype.delete = it, ne.prototype.get = ot, ne.prototype.has = st, ne.prototype.set = ut;
function ft(e, t) {
var n = hr(e), o = !n && Rt(e), h = !n && !o && Lr(e), s = !n && !o && !h && kr(e), T = n || o || h || s, S = T ? nr(e.length, String) : [], P = S.length;
for (var b in e)
(t || U.call(e, b)) && !(T && // Safari 9 has enumerable `arguments.length` in strict mode.
(b == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
h && (b == "offset" || b == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
s && (b == "buffer" || b == "byteLength" || b == "byteOffset") || // Skip index properties.
bt(b, P))) && S.push(b);
return S;
var n = br(e), o = !n && Rt(e), y = !n && !o && Ur(e), f = !n && !o && !y && Xr(e), m = n || o || y || f, C = m ? or(e.length, String) : [], O = C.length;
for (var T in e)
(t || W.call(e, T)) && !(m && // Safari 9 has enumerable `arguments.length` in strict mode.
(T == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
y && (T == "offset" || T == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
f && (T == "buffer" || T == "byteLength" || T == "byteOffset") || // Skip index properties.
bt(T, O))) && C.push(T);
return C;
}
function gr(e, t) {
function hr(e, t) {
for (var n = e.length; n--; )
if (Gr(e[n][0], t))
if (kr(e[n][0], t))
return n;

@@ -886,64 +901,64 @@ return -1;

var o = t(e);
return hr(e) ? o : ye(o, n(e));
return br(e) ? o : le(o, n(e));
}
function Fe(e) {
return e == null ? e === void 0 ? Be : X : B && B in Object(e) ? ht(e) : wt(e);
function $e(e) {
return e == null ? e === void 0 ? Ke : Z : G && G in Object(e) ? ht(e) : wt(e);
}
function Wr(e) {
return Le(e) && Fe(e) == w;
function Br(e) {
return Ue(e) && $e(e) == w;
}
function Yr(e, t, n, o, h) {
return e === t ? !0 : e == null || t == null || !Le(e) && !Le(t) ? e !== e && t !== t : ct(e, t, n, o, Yr, h);
function Gr(e, t, n, o, y) {
return e === t ? !0 : e == null || t == null || !Ue(e) && !Ue(t) ? e !== e && t !== t : ct(e, t, n, o, Gr, y);
}
function ct(e, t, n, o, h, s) {
var T = hr(e), S = hr(t), P = T ? g : ne(e), b = S ? g : ne(t);
P = P == w ? E : P, b = b == w ? E : b;
var N = P == E, q = b == E, D = P == b;
if (D && Lr(e)) {
if (!Lr(t))
function ct(e, t, n, o, y, f) {
var m = br(e), C = br(t), O = m ? g : ae(e), T = C ? g : ae(t);
O = O == w ? b : O, T = T == w ? b : T;
var N = O == b, q = T == b, D = O == T;
if (D && Ur(e)) {
if (!Ur(t))
return !1;
T = !0, N = !1;
m = !0, N = !1;
}
if (D && !N)
return s || (s = new te()), T || kr(e) ? zr(e, t, n, o, h, s) : gt(e, t, P, n, o, h, s);
if (!(n & j)) {
var W = N && U.call(e, "__wrapped__"), Y = q && U.call(t, "__wrapped__");
if (W || Y) {
var ae = W ? e.value() : e, J = Y ? t.value() : t;
return s || (s = new te()), h(ae, J, n, o, s);
return f || (f = new ne()), m || Xr(e) ? qr(e, t, n, o, y, f) : gt(e, t, O, n, o, y, f);
if (!(n & x)) {
var z = N && W.call(e, "__wrapped__"), B = q && W.call(t, "__wrapped__");
if (z || B) {
var ie = z ? e.value() : e, X = B ? t.value() : t;
return f || (f = new ne()), y(ie, X, n, o, f);
}
}
return D ? (s || (s = new te()), _t(e, t, n, o, h, s)) : !1;
return D ? (f || (f = new ne()), _t(e, t, n, o, y, f)) : !1;
}
function dt(e) {
if (!Kr(e) || mt(e))
if (!Vr(e) || Tt(e))
return !1;
var t = qr(e) ? xr : Ze;
return t.test(le(e));
var t = Hr(e) ? Dr : rr;
return t.test(de(e));
}
function pt(e) {
return Le(e) && Hr(e.length) && !!_[Fe(e)];
return Ue(e) && Jr(e.length) && !!h[$e(e)];
}
function vt(e) {
if (!Tt(e))
return xe(e);
if (!mt(e))
return De(e);
var t = [];
for (var n in Object(e))
U.call(e, n) && n != "constructor" && t.push(n);
W.call(e, n) && n != "constructor" && t.push(n);
return t;
}
function zr(e, t, n, o, h, s) {
var T = n & j, S = e.length, P = t.length;
if (S != P && !(T && P > S))
function qr(e, t, n, o, y, f) {
var m = n & x, C = e.length, O = t.length;
if (C != O && !(m && O > C))
return !1;
var b = s.get(e);
if (b && s.get(t))
return b == t;
var N = -1, q = !0, D = n & I ? new vr() : void 0;
for (s.set(e, t), s.set(t, e); ++N < S; ) {
var W = e[N], Y = t[N];
var T = f.get(e);
if (T && f.get(t))
return T == t;
var N = -1, q = !0, D = n & I ? new Re() : void 0;
for (f.set(e, t), f.set(t, e); ++N < C; ) {
var z = e[N], B = t[N];
if (o)
var ae = T ? o(Y, W, N, t, e, s) : o(W, Y, N, e, t, s);
if (ae !== void 0) {
if (ae)
var ie = m ? o(B, z, N, t, e, f) : o(z, B, N, e, t, f);
if (ie !== void 0) {
if (ie)
continue;

@@ -954,5 +969,5 @@ q = !1;

if (D) {
if (!tr(t, function(J, ce) {
if (!Sr(D, ce) && (W === J || h(W, J, n, o, s)))
return D.push(ce);
if (!ir(t, function(X, pe) {
if (!Pr(D, pe) && (z === X || y(z, X, n, o, f)))
return D.push(pe);
})) {

@@ -962,3 +977,3 @@ q = !1;

}
} else if (!(W === Y || h(W, Y, n, o, s))) {
} else if (!(z === B || y(z, B, n, o, f))) {
q = !1;

@@ -968,110 +983,110 @@ break;

}
return s.delete(e), s.delete(t), q;
return f.delete(e), f.delete(t), q;
}
function gt(e, t, n, o, h, s, T) {
function gt(e, t, n, o, y, f, m) {
switch (n) {
case oe:
case se:
if (e.byteLength != t.byteLength || e.byteOffset != t.byteOffset)
return !1;
e = e.buffer, t = t.buffer;
case Ge:
return !(e.byteLength != t.byteLength || !s(new sr(e), new sr(t)));
case C:
case ke:
return !(e.byteLength != t.byteLength || !f(new cr(e), new cr(t)));
case R:
case L:
case Ne:
return Gr(+e, +t);
case H:
case ze:
return kr(+e, +t);
case K:
return e.name == t.name && e.message == t.message;
case Ye:
case ze:
case Ge:
case qe:
return e == t + "";
case de:
var S = Se;
case pe:
var P = o & j;
if (S || (S = Ar), e.size != t.size && !P)
case ve:
var C = Pe;
case ge:
var O = o & x;
if (C || (C = jr), e.size != t.size && !O)
return !1;
var b = T.get(e);
if (b)
return b == t;
o |= I, T.set(e, t);
var N = zr(S(e), S(t), o, h, s, T);
return T.delete(e), N;
case Rr:
if (Ie)
return Ie.call(e) == Ie.call(t);
var T = m.get(e);
if (T)
return T == t;
o |= I, m.set(e, t);
var N = qr(C(e), C(t), o, y, f, m);
return m.delete(e), N;
case Sr:
if (Le)
return Le.call(e) == Le.call(t);
}
return !1;
}
function _t(e, t, n, o, h, s) {
var T = n & j, S = Br(e), P = S.length, b = Br(t), N = b.length;
if (P != N && !T)
function _t(e, t, n, o, y, f) {
var m = n & x, C = Kr(e), O = C.length, T = Kr(t), N = T.length;
if (O != N && !m)
return !1;
for (var q = P; q--; ) {
var D = S[q];
if (!(T ? D in t : U.call(t, D)))
for (var q = O; q--; ) {
var D = C[q];
if (!(m ? D in t : W.call(t, D)))
return !1;
}
var W = s.get(e);
if (W && s.get(t))
return W == t;
var Y = !0;
s.set(e, t), s.set(t, e);
for (var ae = T; ++q < P; ) {
D = S[q];
var J = e[D], ce = t[D];
var z = f.get(e);
if (z && f.get(t))
return z == t;
var B = !0;
f.set(e, t), f.set(t, e);
for (var ie = m; ++q < O; ) {
D = C[q];
var X = e[D], pe = t[D];
if (o)
var Vr = T ? o(ce, J, D, t, e, s) : o(J, ce, D, e, t, s);
if (!(Vr === void 0 ? J === ce || h(J, ce, n, o, s) : Vr)) {
Y = !1;
var Zr = m ? o(pe, X, D, t, e, f) : o(X, pe, D, e, t, f);
if (!(Zr === void 0 ? X === pe || y(X, pe, n, o, f) : Zr)) {
B = !1;
break;
}
ae || (ae = D == "constructor");
ie || (ie = D == "constructor");
}
if (Y && !ae) {
var yr = e.constructor, br = t.constructor;
yr != br && "constructor" in e && "constructor" in t && !(typeof yr == "function" && yr instanceof yr && typeof br == "function" && br instanceof br) && (Y = !1);
if (B && !ie) {
var Er = e.constructor, Tr = t.constructor;
Er != Tr && "constructor" in e && "constructor" in t && !(typeof Er == "function" && Er instanceof Er && typeof Tr == "function" && Tr instanceof Tr) && (B = !1);
}
return s.delete(e), s.delete(t), Y;
return f.delete(e), f.delete(t), B;
}
function Br(e) {
function Kr(e) {
return lt(e, Ot, yt);
}
function _r(e, t) {
function yr(e, t) {
var n = e.__data__;
return Et(t) ? n[typeof t == "string" ? "string" : "hash"] : n.map;
}
function we(e, t) {
var n = Or(e, t);
function Ce(e, t) {
var n = Ar(e, t);
return dt(n) ? n : void 0;
}
function ht(e) {
var t = U.call(e, B), n = e[B];
var t = W.call(e, G), n = e[G];
try {
e[B] = void 0;
e[G] = void 0;
var o = !0;
} catch {
}
var h = or.call(e);
return o && (t ? e[B] = n : delete e[B]), h;
var y = fr.call(e);
return o && (t ? e[G] = n : delete e[G]), y;
}
var yt = Ae ? function(e) {
return e == null ? [] : (e = Object(e), he(Ae(e), function(t) {
return fr.call(e, t);
var yt = je ? function(e) {
return e == null ? [] : (e = Object(e), be(je(e), function(t) {
return dr.call(e, t);
}));
} : Pt, ne = Fe;
(fe && ne(new fe(new ArrayBuffer(1))) != oe || Q && ne(new Q()) != de || je && ne(je.resolve()) != We || Te && ne(new Te()) != pe || De && ne(new De()) != Re) && (ne = function(e) {
var t = Fe(e), n = t == E ? e.constructor : void 0, o = n ? le(n) : "";
} : Pt, ae = $e;
(ce && ae(new ce(new ArrayBuffer(1))) != se || ee && ae(new ee()) != ve || Ie && ae(Ie.resolve()) != Be || we && ae(new we()) != ge || Fe && ae(new Fe()) != Se) && (ae = function(e) {
var t = $e(e), n = t == b ? e.constructor : void 0, o = n ? de(n) : "";
if (o)
switch (o) {
case lr:
return oe;
case Dr:
return de;
case Ir:
return We;
case cr:
return pe;
case pr:
return se;
case Fr:
return Re;
return ve;
case Lr:
return Be;
case vr:
return ge;
case gr:
return Se;
}

@@ -1081,3 +1096,3 @@ return t;

function bt(e, t) {
return t = t ?? F, !!t && (typeof e == "number" || Cr.test(e)) && e > -1 && e % 1 == 0 && e < t;
return t = t ?? F, !!t && (typeof e == "number" || Or.test(e)) && e > -1 && e % 1 == 0 && e < t;
}

@@ -1088,16 +1103,16 @@ function Et(e) {

}
function Tt(e) {
return !!Te && Te in e;
}
function mt(e) {
return !!Ee && Ee in e;
}
function Tt(e) {
var t = e && e.constructor, n = typeof t == "function" && t.prototype || K;
var t = e && e.constructor, n = typeof t == "function" && t.prototype || k;
return e === n;
}
function wt(e) {
return or.call(e);
return fr.call(e);
}
function le(e) {
function de(e) {
if (e != null) {
try {
return Pe.call(e);
return xe.call(e);
} catch {

@@ -1112,34 +1127,34 @@ }

}
function Gr(e, t) {
function kr(e, t) {
return e === t || e !== e && t !== t;
}
var Rt = Wr(/* @__PURE__ */ function() {
var Rt = Br(/* @__PURE__ */ function() {
return arguments;
}()) ? Wr : function(e) {
return Le(e) && U.call(e, "callee") && !fr.call(e, "callee");
}, hr = Array.isArray;
}()) ? Br : function(e) {
return Ue(e) && W.call(e, "callee") && !dr.call(e, "callee");
}, br = Array.isArray;
function Ct(e) {
return e != null && Hr(e.length) && !qr(e);
return e != null && Jr(e.length) && !Hr(e);
}
var Lr = Z || At;
var Ur = Q || At;
function St(e, t) {
return Yr(e, t);
return Gr(e, t);
}
function qr(e) {
if (!Kr(e))
function Hr(e) {
if (!Vr(e))
return !1;
var t = Fe(e);
return t == ie || t == Ue || t == $ || t == wr;
var t = $e(e);
return t == oe || t == Ye || t == U || t == Cr;
}
function Hr(e) {
function Jr(e) {
return typeof e == "number" && e > -1 && e % 1 == 0 && e <= F;
}
function Kr(e) {
function Vr(e) {
var t = typeof e;
return e != null && (t == "object" || t == "function");
}
function Le(e) {
function Ue(e) {
return e != null && typeof e == "object";
}
var kr = rr ? be(rr) : pt;
var Xr = ar ? Ee(ar) : pt;
function Ot(e) {

@@ -1154,20 +1169,20 @@ return Ct(e) ? ft(e) : vt(e);

}
f.exports = St;
})(Tr, Tr.exports);
var Nt = Tr.exports;
const Wt = /* @__PURE__ */ Lt(Nt);
function Yt(f) {
const v = mr(f), A = mr(0);
return Wt(f, v.current) || (v.current = f, A.current += 1), $r(() => v.current, [A.current]);
l.exports = St;
})(Rr, Rr.exports);
var Wt = Rr.exports;
const Nt = /* @__PURE__ */ Lt(Wt);
function Yt(l) {
const p = wr(l), P = wr(0);
return Nt(l, p.current) || (p.current = l, P.current += 1), Nr(() => p.current, [P.current]);
}
function zt(f, v) {
return jt(f, Yt(v));
function zt(l, p) {
return jt(l, Yt(p));
}
const Nr = xt(null);
const zr = xt(null);
function qt({
children: f,
locale: v,
space: A,
environment: x,
debugMode: j = !1,
children: l,
locale: p,
space: P,
environment: A,
debugMode: x = !1,
enableInspectorMode: I = !0,

@@ -1178,11 +1193,11 @@ enableLiveUpdates: F = !0,

}) {
if (!v)
if (!p)
throw new Error(
'ContentfulLivePreviewProvider have to be called with a locale property (for example: `<ContentfulLivePreviewProvider locale="en-US">{children}</ContentfulLivePreviewProvider>`'
);
Ur.init({
locale: v,
space: A,
environment: x,
debugMode: j,
Yr.init({
locale: p,
space: P,
environment: A,
debugMode: x,
enableInspectorMode: I,

@@ -1193,8 +1208,8 @@ enableLiveUpdates: F,

});
const $ = $r(
const U = Nr(
() => ({
locale: v,
space: A,
environment: x,
debugMode: j,
locale: p,
space: P,
environment: A,
debugMode: x,
enableInspectorMode: I,

@@ -1204,25 +1219,25 @@ enableLiveUpdates: F,

}),
[v, A, x, j, I, F, w]
[p, P, A, x, I, F, w]
);
return /* @__PURE__ */ Ut.jsx(Nr.Provider, { value: $, children: f });
return /* @__PURE__ */ Ut.jsx(zr.Provider, { value: U, children: l });
}
function Ht(f, v, A = !1) {
const [x, j] = Dt({ data: f, version: 1 }), I = mr(f), F = mr(Ft(j)), w = Qr(Nr), g = typeof v == "object" ? v : { locale: v, skip: A }, $ = $r(() => w && !w.enableLiveUpdates || g.skip ? !1 : !!(Array.isArray(f) && f.length || f && typeof f == "object" && Object.keys(f).length), [w, g.skip, f]);
function Kt(l, p, P = !1) {
const [A, x] = Dt({ data: l, version: 1 }), I = wr(l), F = wr(Ft(x)), w = tt(zr), g = typeof p == "object" ? p : { locale: p, skip: P }, U = Nr(() => w && !w.enableLiveUpdates || g.skip ? !1 : !!(Array.isArray(l) && l.length || l && typeof l == "object" && Object.keys(l).length), [w, g.skip, l]);
return zt(() => {
if (I.current !== f && (j({ data: f, version: 1 }), I.current = f), !!$)
return Ur.subscribe("edit", {
data: f,
if (I.current !== l && (x({ data: l, version: 1 }), I.current = l), !!U)
return Yr.subscribe("edit", {
data: l,
locale: g.locale,
query: g.query,
callback: (C) => {
F.current((L) => ({ data: C, version: L.version + 1 }));
callback: (R) => {
F.current((L) => ({ data: R, version: L.version + 1 }));
}
});
}, [f, $, g.locale, g.query]), x.data;
}, [l, U, g.locale, g.query]), A.data;
}
function Kt(f) {
const v = Qr(Nr);
function kt(l) {
const p = tt(zr);
return It(
(A) => v != null && v.enableInspectorMode ? Ur.getProps({ ...f, ...A }) : null,
[v == null ? void 0 : v.enableInspectorMode, f]
(P) => p != null && p.enableInspectorMode ? Yr.getProps({ ...l, ...P }) : null,
[p == null ? void 0 : p.enableInspectorMode, l]
);

@@ -1232,4 +1247,4 @@ }

qt as ContentfulLivePreviewProvider,
Kt as useContentfulInspectorMode,
Ht as useContentfulLiveUpdates,
kt as useContentfulInspectorMode,
Kt as useContentfulLiveUpdates,
zt as useDeepCompareEffectNoCheck,

@@ -1236,0 +1251,0 @@ Yt as useDeepCompareMemoize

{
"name": "@contentful/live-preview",
"version": "3.3.0",
"version": "3.3.1",
"author": "Contentful GmbH",

@@ -56,3 +56,3 @@ "license": "MIT",

"devDependencies": {
"@testing-library/react": "15.0.2",
"@testing-library/react": "15.0.5",
"@types/json-pointer": "^1.0.34",

@@ -76,3 +76,3 @@ "@types/lodash.isequal": "^4.5.6",

},
"gitHead": "cb580c5ade7c1aef0ee087834cf42e8aa3f8058e"
"gitHead": "51f483c2e35db3aeb39f2e6983315fbf642dcf4e"
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc