thai-address-autocomplete-react
Version:
[](https://www.npmjs.com/package/thai-address-autocomplete-react) [](https://www.npmjs.com/package/thai-address-autocomplete-rea
1,342 lines • 701 kB
JavaScript
import { jsx as Qr } from "react/jsx-runtime";
import * as d from "react";
import Je, { version as id, isValidElement as od, useContext as Hn, createContext as ko, useRef as Ie, useLayoutEffect as Hl, useEffect as Jt, useState as xn, useMemo as va, useCallback as M1 } from "react";
function jl(e) {
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
}
var qa = { exports: {} };
/*!
Copyright (c) 2018 Jed Watson.
Licensed under the MIT License (MIT), see
http://jedwatson.github.io/classnames
*/
var I1;
function sd() {
return I1 || (I1 = 1, function(e) {
(function() {
var t = {}.hasOwnProperty;
function n() {
for (var i = "", o = 0; o < arguments.length; o++) {
var s = arguments[o];
s && (i = a(i, r(s)));
}
return i;
}
function r(i) {
if (typeof i == "string" || typeof i == "number")
return i;
if (typeof i != "object")
return "";
if (Array.isArray(i))
return n.apply(null, i);
if (i.toString !== Object.prototype.toString && !i.toString.toString().includes("[native code]"))
return i.toString();
var o = "";
for (var s in i)
t.call(i, s) && i[s] && (o = a(o, s));
return o;
}
function a(i, o) {
return o ? i ? i + " " + o : i + o : i;
}
e.exports ? (n.default = n, e.exports = n) : window.classNames = n;
})();
}(qa)), qa.exports;
}
var ld = sd();
const Qe = /* @__PURE__ */ jl(ld);
function Ve() {
return Ve = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
}
return e;
}, Ve.apply(null, arguments);
}
function oe(e) {
"@babel/helpers - typeof";
return oe = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
return typeof t;
} : function(t) {
return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
}, oe(e);
}
var cd = Symbol.for("react.element"), ud = Symbol.for("react.transitional.element"), fd = Symbol.for("react.fragment");
function zl(e) {
return (
// Base object type
e && oe(e) === "object" && // React Element type
(e.$$typeof === cd || e.$$typeof === ud) && // React Fragment type
e.type === fd
);
}
function xi(e) {
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = [];
return Je.Children.forEach(e, function(r) {
r == null && !t.keepEmpty || (Array.isArray(r) ? n = n.concat(xi(r)) : zl(r) && r.props ? n = n.concat(xi(r.props.children, t)) : n.push(r));
}), n;
}
var Oi = {}, Ho = [], dd = function(t) {
Ho.push(t);
};
function vd(e, t) {
if (process.env.NODE_ENV !== "production" && !e && console !== void 0) {
var n = Ho.reduce(function(r, a) {
return a(r ?? "", "warning");
}, t);
n && console.error("Warning: ".concat(n));
}
}
function md(e, t) {
if (process.env.NODE_ENV !== "production" && !e && console !== void 0) {
var n = Ho.reduce(function(r, a) {
return a(r ?? "", "note");
}, t);
n && console.warn("Note: ".concat(n));
}
}
function Wl() {
Oi = {};
}
function Gl(e, t, n) {
!t && !Oi[n] && (e(!1, n), Oi[n] = !0);
}
function E0(e, t) {
Gl(vd, e, t);
}
function hd(e, t) {
Gl(md, e, t);
}
E0.preMessage = dd;
E0.resetWarned = Wl;
E0.noteOnce = hd;
function gd(e, t) {
if (oe(e) != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
var r = n.call(e, t);
if (oe(r) != "object") return r;
throw new TypeError("@@toPrimitive must return a primitive value.");
}
return (t === "string" ? String : Number)(e);
}
function Ul(e) {
var t = gd(e, "string");
return oe(t) == "symbol" ? t : t + "";
}
function R(e, t, n) {
return (t = Ul(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
function $1(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
t && (r = r.filter(function(a) {
return Object.getOwnPropertyDescriptor(e, a).enumerable;
})), n.push.apply(n, r);
}
return n;
}
function A(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] != null ? arguments[t] : {};
t % 2 ? $1(Object(n), !0).forEach(function(r) {
R(e, r, n[r]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : $1(Object(n)).forEach(function(r) {
Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(n, r));
});
}
return e;
}
var N0 = { exports: {} }, Lt = {};
/**
* @license React
* react-dom.production.js
*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
var _1;
function pd() {
if (_1) return Lt;
_1 = 1;
var e = Je;
function t(l) {
var c = "https://react.dev/errors/" + l;
if (1 < arguments.length) {
c += "?args[]=" + encodeURIComponent(arguments[1]);
for (var u = 2; u < arguments.length; u++)
c += "&args[]=" + encodeURIComponent(arguments[u]);
}
return "Minified React error #" + l + "; visit " + c + " for the full message or use the non-minified dev environment for full errors and additional helpful warnings.";
}
function n() {
}
var r = {
d: {
f: n,
r: function() {
throw Error(t(522));
},
D: n,
C: n,
L: n,
m: n,
X: n,
S: n,
M: n
},
p: 0,
findDOMNode: null
}, a = Symbol.for("react.portal");
function i(l, c, u) {
var f = 3 < arguments.length && arguments[3] !== void 0 ? arguments[3] : null;
return {
$$typeof: a,
key: f == null ? null : "" + f,
children: l,
containerInfo: c,
implementation: u
};
}
var o = e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
function s(l, c) {
if (l === "font") return "";
if (typeof c == "string")
return c === "use-credentials" ? c : "";
}
return Lt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = r, Lt.createPortal = function(l, c) {
var u = 2 < arguments.length && arguments[2] !== void 0 ? arguments[2] : null;
if (!c || c.nodeType !== 1 && c.nodeType !== 9 && c.nodeType !== 11)
throw Error(t(299));
return i(l, c, null, u);
}, Lt.flushSync = function(l) {
var c = o.T, u = r.p;
try {
if (o.T = null, r.p = 2, l) return l();
} finally {
o.T = c, r.p = u, r.d.f();
}
}, Lt.preconnect = function(l, c) {
typeof l == "string" && (c ? (c = c.crossOrigin, c = typeof c == "string" ? c === "use-credentials" ? c : "" : void 0) : c = null, r.d.C(l, c));
}, Lt.prefetchDNS = function(l) {
typeof l == "string" && r.d.D(l);
}, Lt.preinit = function(l, c) {
if (typeof l == "string" && c && typeof c.as == "string") {
var u = c.as, f = s(u, c.crossOrigin), v = typeof c.integrity == "string" ? c.integrity : void 0, h = typeof c.fetchPriority == "string" ? c.fetchPriority : void 0;
u === "style" ? r.d.S(
l,
typeof c.precedence == "string" ? c.precedence : void 0,
{
crossOrigin: f,
integrity: v,
fetchPriority: h
}
) : u === "script" && r.d.X(l, {
crossOrigin: f,
integrity: v,
fetchPriority: h,
nonce: typeof c.nonce == "string" ? c.nonce : void 0
});
}
}, Lt.preinitModule = function(l, c) {
if (typeof l == "string")
if (typeof c == "object" && c !== null) {
if (c.as == null || c.as === "script") {
var u = s(
c.as,
c.crossOrigin
);
r.d.M(l, {
crossOrigin: u,
integrity: typeof c.integrity == "string" ? c.integrity : void 0,
nonce: typeof c.nonce == "string" ? c.nonce : void 0
});
}
} else c == null && r.d.M(l);
}, Lt.preload = function(l, c) {
if (typeof l == "string" && typeof c == "object" && c !== null && typeof c.as == "string") {
var u = c.as, f = s(u, c.crossOrigin);
r.d.L(l, u, {
crossOrigin: f,
integrity: typeof c.integrity == "string" ? c.integrity : void 0,
nonce: typeof c.nonce == "string" ? c.nonce : void 0,
type: typeof c.type == "string" ? c.type : void 0,
fetchPriority: typeof c.fetchPriority == "string" ? c.fetchPriority : void 0,
referrerPolicy: typeof c.referrerPolicy == "string" ? c.referrerPolicy : void 0,
imageSrcSet: typeof c.imageSrcSet == "string" ? c.imageSrcSet : void 0,
imageSizes: typeof c.imageSizes == "string" ? c.imageSizes : void 0,
media: typeof c.media == "string" ? c.media : void 0
});
}
}, Lt.preloadModule = function(l, c) {
if (typeof l == "string")
if (c) {
var u = s(c.as, c.crossOrigin);
r.d.m(l, {
as: typeof c.as == "string" && c.as !== "script" ? c.as : void 0,
crossOrigin: u,
integrity: typeof c.integrity == "string" ? c.integrity : void 0
});
} else r.d.m(l);
}, Lt.requestFormReset = function(l) {
r.d.r(l);
}, Lt.unstable_batchedUpdates = function(l, c) {
return l(c);
}, Lt.useFormState = function(l, c, u) {
return o.H.useFormState(l, c, u);
}, Lt.useFormStatus = function() {
return o.H.useHostTransitionStatus();
}, Lt.version = "19.1.1", Lt;
}
var Vt = {};
/**
* @license React
* react-dom.development.js
*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
var T1;
function yd() {
return T1 || (T1 = 1, process.env.NODE_ENV !== "production" && function() {
function e() {
}
function t(f) {
return "" + f;
}
function n(f, v, h) {
var p = 3 < arguments.length && arguments[3] !== void 0 ? arguments[3] : null;
try {
t(p);
var g = !1;
} catch {
g = !0;
}
return g && (console.error(
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
typeof Symbol == "function" && Symbol.toStringTag && p[Symbol.toStringTag] || p.constructor.name || "Object"
), t(p)), {
$$typeof: c,
key: p == null ? null : "" + p,
children: f,
containerInfo: v,
implementation: h
};
}
function r(f, v) {
if (f === "font") return "";
if (typeof v == "string")
return v === "use-credentials" ? v : "";
}
function a(f) {
return f === null ? "`null`" : f === void 0 ? "`undefined`" : f === "" ? "an empty string" : 'something with type "' + typeof f + '"';
}
function i(f) {
return f === null ? "`null`" : f === void 0 ? "`undefined`" : f === "" ? "an empty string" : typeof f == "string" ? JSON.stringify(f) : typeof f == "number" ? "`" + f + "`" : 'something with type "' + typeof f + '"';
}
function o() {
var f = u.H;
return f === null && console.error(
`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
1. You might have mismatching versions of React and the renderer (such as React DOM)
2. You might be breaking the Rules of Hooks
3. You might have more than one copy of React in the same app
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`
), f;
}
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
var s = Je, l = {
d: {
f: e,
r: function() {
throw Error(
"Invalid form element. requestFormReset must be passed a form that was rendered by React."
);
},
D: e,
C: e,
L: e,
m: e,
X: e,
S: e,
M: e
},
p: 0,
findDOMNode: null
}, c = Symbol.for("react.portal"), u = s.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
typeof Map == "function" && Map.prototype != null && typeof Map.prototype.forEach == "function" && typeof Set == "function" && Set.prototype != null && typeof Set.prototype.clear == "function" && typeof Set.prototype.forEach == "function" || console.error(
"React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"
), Vt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = l, Vt.createPortal = function(f, v) {
var h = 2 < arguments.length && arguments[2] !== void 0 ? arguments[2] : null;
if (!v || v.nodeType !== 1 && v.nodeType !== 9 && v.nodeType !== 11)
throw Error("Target container is not a DOM element.");
return n(f, v, null, h);
}, Vt.flushSync = function(f) {
var v = u.T, h = l.p;
try {
if (u.T = null, l.p = 2, f)
return f();
} finally {
u.T = v, l.p = h, l.d.f() && console.error(
"flushSync was called from inside a lifecycle method. React cannot flush when React is already rendering. Consider moving this call to a scheduler task or micro task."
);
}
}, Vt.preconnect = function(f, v) {
typeof f == "string" && f ? v != null && typeof v != "object" ? console.error(
"ReactDOM.preconnect(): Expected the `options` argument (second) to be an object but encountered %s instead. The only supported option at this time is `crossOrigin` which accepts a string.",
i(v)
) : v != null && typeof v.crossOrigin != "string" && console.error(
"ReactDOM.preconnect(): Expected the `crossOrigin` option (second argument) to be a string but encountered %s instead. Try removing this option or passing a string value instead.",
a(v.crossOrigin)
) : console.error(
"ReactDOM.preconnect(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",
a(f)
), typeof f == "string" && (v ? (v = v.crossOrigin, v = typeof v == "string" ? v === "use-credentials" ? v : "" : void 0) : v = null, l.d.C(f, v));
}, Vt.prefetchDNS = function(f) {
if (typeof f != "string" || !f)
console.error(
"ReactDOM.prefetchDNS(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",
a(f)
);
else if (1 < arguments.length) {
var v = arguments[1];
typeof v == "object" && v.hasOwnProperty("crossOrigin") ? console.error(
"ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. It looks like the you are attempting to set a crossOrigin property for this DNS lookup hint. Browsers do not perform DNS queries using CORS and setting this attribute on the resource hint has no effect. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",
i(v)
) : console.error(
"ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",
i(v)
);
}
typeof f == "string" && l.d.D(f);
}, Vt.preinit = function(f, v) {
if (typeof f == "string" && f ? v == null || typeof v != "object" ? console.error(
"ReactDOM.preinit(): Expected the `options` argument (second) to be an object with an `as` property describing the type of resource to be preinitialized but encountered %s instead.",
i(v)
) : v.as !== "style" && v.as !== "script" && console.error(
'ReactDOM.preinit(): Expected the `as` property in the `options` argument (second) to contain a valid value describing the type of resource to be preinitialized but encountered %s instead. Valid values for `as` are "style" and "script".',
i(v.as)
) : console.error(
"ReactDOM.preinit(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",
a(f)
), typeof f == "string" && v && typeof v.as == "string") {
var h = v.as, p = r(h, v.crossOrigin), g = typeof v.integrity == "string" ? v.integrity : void 0, m = typeof v.fetchPriority == "string" ? v.fetchPriority : void 0;
h === "style" ? l.d.S(
f,
typeof v.precedence == "string" ? v.precedence : void 0,
{
crossOrigin: p,
integrity: g,
fetchPriority: m
}
) : h === "script" && l.d.X(f, {
crossOrigin: p,
integrity: g,
fetchPriority: m,
nonce: typeof v.nonce == "string" ? v.nonce : void 0
});
}
}, Vt.preinitModule = function(f, v) {
var h = "";
if (typeof f == "string" && f || (h += " The `href` argument encountered was " + a(f) + "."), v !== void 0 && typeof v != "object" ? h += " The `options` argument encountered was " + a(v) + "." : v && "as" in v && v.as !== "script" && (h += " The `as` option encountered was " + i(v.as) + "."), h)
console.error(
"ReactDOM.preinitModule(): Expected up to two arguments, a non-empty `href` string and, optionally, an `options` object with a valid `as` property.%s",
h
);
else
switch (h = v && typeof v.as == "string" ? v.as : "script", h) {
case "script":
break;
default:
h = i(h), console.error(
'ReactDOM.preinitModule(): Currently the only supported "as" type for this function is "script" but received "%s" instead. This warning was generated for `href` "%s". In the future other module types will be supported, aligning with the import-attributes proposal. Learn more here: (https://github.com/tc39/proposal-import-attributes)',
h,
f
);
}
typeof f == "string" && (typeof v == "object" && v !== null ? (v.as == null || v.as === "script") && (h = r(
v.as,
v.crossOrigin
), l.d.M(f, {
crossOrigin: h,
integrity: typeof v.integrity == "string" ? v.integrity : void 0,
nonce: typeof v.nonce == "string" ? v.nonce : void 0
})) : v == null && l.d.M(f));
}, Vt.preload = function(f, v) {
var h = "";
if (typeof f == "string" && f || (h += " The `href` argument encountered was " + a(f) + "."), v == null || typeof v != "object" ? h += " The `options` argument encountered was " + a(v) + "." : typeof v.as == "string" && v.as || (h += " The `as` option encountered was " + a(v.as) + "."), h && console.error(
'ReactDOM.preload(): Expected two arguments, a non-empty `href` string and an `options` object with an `as` property valid for a `<link rel="preload" as="..." />` tag.%s',
h
), typeof f == "string" && typeof v == "object" && v !== null && typeof v.as == "string") {
h = v.as;
var p = r(
h,
v.crossOrigin
);
l.d.L(f, h, {
crossOrigin: p,
integrity: typeof v.integrity == "string" ? v.integrity : void 0,
nonce: typeof v.nonce == "string" ? v.nonce : void 0,
type: typeof v.type == "string" ? v.type : void 0,
fetchPriority: typeof v.fetchPriority == "string" ? v.fetchPriority : void 0,
referrerPolicy: typeof v.referrerPolicy == "string" ? v.referrerPolicy : void 0,
imageSrcSet: typeof v.imageSrcSet == "string" ? v.imageSrcSet : void 0,
imageSizes: typeof v.imageSizes == "string" ? v.imageSizes : void 0,
media: typeof v.media == "string" ? v.media : void 0
});
}
}, Vt.preloadModule = function(f, v) {
var h = "";
typeof f == "string" && f || (h += " The `href` argument encountered was " + a(f) + "."), v !== void 0 && typeof v != "object" ? h += " The `options` argument encountered was " + a(v) + "." : v && "as" in v && typeof v.as != "string" && (h += " The `as` option encountered was " + a(v.as) + "."), h && console.error(
'ReactDOM.preloadModule(): Expected two arguments, a non-empty `href` string and, optionally, an `options` object with an `as` property valid for a `<link rel="modulepreload" as="..." />` tag.%s',
h
), typeof f == "string" && (v ? (h = r(
v.as,
v.crossOrigin
), l.d.m(f, {
as: typeof v.as == "string" && v.as !== "script" ? v.as : void 0,
crossOrigin: h,
integrity: typeof v.integrity == "string" ? v.integrity : void 0
})) : l.d.m(f));
}, Vt.requestFormReset = function(f) {
l.d.r(f);
}, Vt.unstable_batchedUpdates = function(f, v) {
return f(v);
}, Vt.useFormState = function(f, v, h) {
return o().useFormState(f, v, h);
}, Vt.useFormStatus = function() {
return o().useHostTransitionStatus();
}, Vt.version = "19.1.1", typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
}()), Vt;
}
var D1;
function bd() {
if (D1) return N0.exports;
D1 = 1;
function e() {
if (!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ > "u" || typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE != "function")) {
if (process.env.NODE_ENV !== "production")
throw new Error("^_^");
try {
__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e);
} catch (t) {
console.error(t);
}
}
}
return process.env.NODE_ENV === "production" ? (e(), N0.exports = pd()) : N0.exports = yd(), N0.exports;
}
var l0 = bd();
const ma = /* @__PURE__ */ jl(l0);
function N1(e) {
return e instanceof HTMLElement || e instanceof SVGElement;
}
function Cd(e) {
return e && oe(e) === "object" && N1(e.nativeElement) ? e.nativeElement : N1(e) ? e : null;
}
function Sd(e) {
var t = Cd(e);
if (t)
return t;
if (e instanceof Je.Component) {
var n;
return (n = ma.findDOMNode) === null || n === void 0 ? void 0 : n.call(ma, e);
}
return null;
}
var F0 = { exports: {} }, et = {};
/**
* @license React
* react-is.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
var F1;
function Ed() {
if (F1) return et;
F1 = 1;
var e = Symbol.for("react.element"), t = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), r = Symbol.for("react.strict_mode"), a = Symbol.for("react.profiler"), i = Symbol.for("react.provider"), o = Symbol.for("react.context"), s = Symbol.for("react.server_context"), l = Symbol.for("react.forward_ref"), c = Symbol.for("react.suspense"), u = Symbol.for("react.suspense_list"), f = Symbol.for("react.memo"), v = Symbol.for("react.lazy"), h = Symbol.for("react.offscreen"), p;
p = Symbol.for("react.module.reference");
function g(m) {
if (typeof m == "object" && m !== null) {
var b = m.$$typeof;
switch (b) {
case e:
switch (m = m.type, m) {
case n:
case a:
case r:
case c:
case u:
return m;
default:
switch (m = m && m.$$typeof, m) {
case s:
case o:
case l:
case v:
case f:
case i:
return m;
default:
return b;
}
}
case t:
return b;
}
}
}
return et.ContextConsumer = o, et.ContextProvider = i, et.Element = e, et.ForwardRef = l, et.Fragment = n, et.Lazy = v, et.Memo = f, et.Portal = t, et.Profiler = a, et.StrictMode = r, et.Suspense = c, et.SuspenseList = u, et.isAsyncMode = function() {
return !1;
}, et.isConcurrentMode = function() {
return !1;
}, et.isContextConsumer = function(m) {
return g(m) === o;
}, et.isContextProvider = function(m) {
return g(m) === i;
}, et.isElement = function(m) {
return typeof m == "object" && m !== null && m.$$typeof === e;
}, et.isForwardRef = function(m) {
return g(m) === l;
}, et.isFragment = function(m) {
return g(m) === n;
}, et.isLazy = function(m) {
return g(m) === v;
}, et.isMemo = function(m) {
return g(m) === f;
}, et.isPortal = function(m) {
return g(m) === t;
}, et.isProfiler = function(m) {
return g(m) === a;
}, et.isStrictMode = function(m) {
return g(m) === r;
}, et.isSuspense = function(m) {
return g(m) === c;
}, et.isSuspenseList = function(m) {
return g(m) === u;
}, et.isValidElementType = function(m) {
return typeof m == "string" || typeof m == "function" || m === n || m === a || m === r || m === c || m === u || m === h || typeof m == "object" && m !== null && (m.$$typeof === v || m.$$typeof === f || m.$$typeof === i || m.$$typeof === o || m.$$typeof === l || m.$$typeof === p || m.getModuleId !== void 0);
}, et.typeOf = g, et;
}
var tt = {};
/**
* @license React
* react-is.development.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
var L1;
function wd() {
return L1 || (L1 = 1, process.env.NODE_ENV !== "production" && function() {
var e = Symbol.for("react.element"), t = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), r = Symbol.for("react.strict_mode"), a = Symbol.for("react.profiler"), i = Symbol.for("react.provider"), o = Symbol.for("react.context"), s = Symbol.for("react.server_context"), l = Symbol.for("react.forward_ref"), c = Symbol.for("react.suspense"), u = Symbol.for("react.suspense_list"), f = Symbol.for("react.memo"), v = Symbol.for("react.lazy"), h = Symbol.for("react.offscreen"), p = !1, g = !1, m = !1, b = !1, y = !1, w;
w = Symbol.for("react.module.reference");
function S(L) {
return !!(typeof L == "string" || typeof L == "function" || L === n || L === a || y || L === r || L === c || L === u || b || L === h || p || g || m || typeof L == "object" && L !== null && (L.$$typeof === v || L.$$typeof === f || L.$$typeof === i || L.$$typeof === o || L.$$typeof === l || // 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.
L.$$typeof === w || L.getModuleId !== void 0));
}
function E(L) {
if (typeof L == "object" && L !== null) {
var K = L.$$typeof;
switch (K) {
case e:
var Y = L.type;
switch (Y) {
case n:
case a:
case r:
case c:
case u:
return Y;
default:
var ce = Y && Y.$$typeof;
switch (ce) {
case s:
case o:
case l:
case v:
case f:
case i:
return ce;
default:
return K;
}
}
case t:
return K;
}
}
}
var x = o, C = i, O = e, P = l, I = n, _ = v, T = f, M = t, $ = a, D = r, F = c, V = u, k = !1, W = !1;
function B(L) {
return k || (k = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")), !1;
}
function H(L) {
return W || (W = !0, console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")), !1;
}
function z(L) {
return E(L) === o;
}
function G(L) {
return E(L) === i;
}
function ne(L) {
return typeof L == "object" && L !== null && L.$$typeof === e;
}
function re(L) {
return E(L) === l;
}
function Pe(L) {
return E(L) === n;
}
function ae(L) {
return E(L) === v;
}
function be(L) {
return E(L) === f;
}
function Se(L) {
return E(L) === t;
}
function de(L) {
return E(L) === a;
}
function q(L) {
return E(L) === r;
}
function j(L) {
return E(L) === c;
}
function Q(L) {
return E(L) === u;
}
tt.ContextConsumer = x, tt.ContextProvider = C, tt.Element = O, tt.ForwardRef = P, tt.Fragment = I, tt.Lazy = _, tt.Memo = T, tt.Portal = M, tt.Profiler = $, tt.StrictMode = D, tt.Suspense = F, tt.SuspenseList = V, tt.isAsyncMode = B, tt.isConcurrentMode = H, tt.isContextConsumer = z, tt.isContextProvider = G, tt.isElement = ne, tt.isForwardRef = re, tt.isFragment = Pe, tt.isLazy = ae, tt.isMemo = be, tt.isPortal = Se, tt.isProfiler = de, tt.isStrictMode = q, tt.isSuspense = j, tt.isSuspenseList = Q, tt.isValidElementType = S, tt.typeOf = E;
}()), tt;
}
var V1;
function xd() {
return V1 || (V1 = 1, process.env.NODE_ENV === "production" ? F0.exports = Ed() : F0.exports = wd()), F0.exports;
}
var sr = xd();
function Kl(e, t, n) {
var r = d.useRef({});
return (!("value" in r.current) || n(r.current.condition, t)) && (r.current.value = e(), r.current.condition = t), r.current.value;
}
var Od = Number(id.split(".")[0]), Rd = function(t, n) {
typeof t == "function" ? t(n) : oe(t) === "object" && t && "current" in t && (t.current = n);
}, Ad = function(t) {
var n, r;
if (!t)
return !1;
if (ql(t) && Od >= 19)
return !0;
var a = sr.isMemo(t) ? t.type.type : t.type;
return !(typeof a == "function" && !((n = a.prototype) !== null && n !== void 0 && n.render) && a.$$typeof !== sr.ForwardRef || typeof t == "function" && !((r = t.prototype) !== null && r !== void 0 && r.render) && t.$$typeof !== sr.ForwardRef);
};
function ql(e) {
return /* @__PURE__ */ od(e) && !zl(e);
}
var Pd = function(t) {
if (t && ql(t)) {
var n = t;
return n.props.propertyIsEnumerable("ref") ? n.props.ref : n.ref;
}
return null;
}, Ql = function() {
if (typeof Map < "u")
return Map;
function e(t, n) {
var r = -1;
return t.some(function(a, i) {
return a[0] === n ? (r = i, !0) : !1;
}), r;
}
return (
/** @class */
function() {
function t() {
this.__entries__ = [];
}
return Object.defineProperty(t.prototype, "size", {
/**
* @returns {boolean}
*/
get: function() {
return this.__entries__.length;
},
enumerable: !0,
configurable: !0
}), t.prototype.get = function(n) {
var r = e(this.__entries__, n), a = this.__entries__[r];
return a && a[1];
}, t.prototype.set = function(n, r) {
var a = e(this.__entries__, n);
~a ? this.__entries__[a][1] = r : this.__entries__.push([n, r]);
}, t.prototype.delete = function(n) {
var r = this.__entries__, a = e(r, n);
~a && r.splice(a, 1);
}, t.prototype.has = function(n) {
return !!~e(this.__entries__, n);
}, t.prototype.clear = function() {
this.__entries__.splice(0);
}, t.prototype.forEach = function(n, r) {
r === void 0 && (r = null);
for (var a = 0, i = this.__entries__; a < i.length; a++) {
var o = i[a];
n.call(r, o[1], o[0]);
}
}, t;
}()
);
}(), Ri = typeof window < "u" && typeof document < "u" && window.document === document, ha = function() {
return typeof global < "u" && global.Math === Math ? global : typeof self < "u" && self.Math === Math ? self : typeof window < "u" && window.Math === Math ? window : Function("return this")();
}(), Md = function() {
return typeof requestAnimationFrame == "function" ? requestAnimationFrame.bind(ha) : function(e) {
return setTimeout(function() {
return e(Date.now());
}, 1e3 / 60);
};
}(), Id = 2;
function $d(e, t) {
var n = !1, r = !1, a = 0;
function i() {
n && (n = !1, e()), r && s();
}
function o() {
Md(i);
}
function s() {
var l = Date.now();
if (n) {
if (l - a < Id)
return;
r = !0;
} else
n = !0, r = !1, setTimeout(o, t);
a = l;
}
return s;
}
var _d = 20, Td = ["top", "right", "bottom", "left", "width", "height", "size", "weight"], Dd = typeof MutationObserver < "u", Nd = (
/** @class */
function() {
function e() {
this.connected_ = !1, this.mutationEventsAdded_ = !1, this.mutationsObserver_ = null, this.observers_ = [], this.onTransitionEnd_ = this.onTransitionEnd_.bind(this), this.refresh = $d(this.refresh.bind(this), _d);
}
return e.prototype.addObserver = function(t) {
~this.observers_.indexOf(t) || this.observers_.push(t), this.connected_ || this.connect_();
}, e.prototype.removeObserver = function(t) {
var n = this.observers_, r = n.indexOf(t);
~r && n.splice(r, 1), !n.length && this.connected_ && this.disconnect_();
}, e.prototype.refresh = function() {
var t = this.updateObservers_();
t && this.refresh();
}, e.prototype.updateObservers_ = function() {
var t = this.observers_.filter(function(n) {
return n.gatherActive(), n.hasActive();
});
return t.forEach(function(n) {
return n.broadcastActive();
}), t.length > 0;
}, e.prototype.connect_ = function() {
!Ri || this.connected_ || (document.addEventListener("transitionend", this.onTransitionEnd_), window.addEventListener("resize", this.refresh), Dd ? (this.mutationsObserver_ = new MutationObserver(this.refresh), this.mutationsObserver_.observe(document, {
attributes: !0,
childList: !0,
characterData: !0,
subtree: !0
})) : (document.addEventListener("DOMSubtreeModified", this.refresh), this.mutationEventsAdded_ = !0), this.connected_ = !0);
}, e.prototype.disconnect_ = function() {
!Ri || !this.connected_ || (document.removeEventListener("transitionend", this.onTransitionEnd_), window.removeEventListener("resize", this.refresh), this.mutationsObserver_ && this.mutationsObserver_.disconnect(), this.mutationEventsAdded_ && document.removeEventListener("DOMSubtreeModified", this.refresh), this.mutationsObserver_ = null, this.mutationEventsAdded_ = !1, this.connected_ = !1);
}, e.prototype.onTransitionEnd_ = function(t) {
var n = t.propertyName, r = n === void 0 ? "" : n, a = Td.some(function(i) {
return !!~r.indexOf(i);
});
a && this.refresh();
}, e.getInstance = function() {
return this.instance_ || (this.instance_ = new e()), this.instance_;
}, e.instance_ = null, e;
}()
), Xl = function(e, t) {
for (var n = 0, r = Object.keys(t); n < r.length; n++) {
var a = r[n];
Object.defineProperty(e, a, {
value: t[a],
enumerable: !1,
writable: !1,
configurable: !0
});
}
return e;
}, _r = function(e) {
var t = e && e.ownerDocument && e.ownerDocument.defaultView;
return t || ha;
}, Yl = _a(0, 0, 0, 0);
function ga(e) {
return parseFloat(e) || 0;
}
function B1(e) {
for (var t = [], n = 1; n < arguments.length; n++)
t[n - 1] = arguments[n];
return t.reduce(function(r, a) {
var i = e["border-" + a + "-width"];
return r + ga(i);
}, 0);
}
function Fd(e) {
for (var t = ["top", "right", "bottom", "left"], n = {}, r = 0, a = t; r < a.length; r++) {
var i = a[r], o = e["padding-" + i];
n[i] = ga(o);
}
return n;
}
function Ld(e) {
var t = e.getBBox();
return _a(0, 0, t.width, t.height);
}
function Vd(e) {
var t = e.clientWidth, n = e.clientHeight;
if (!t && !n)
return Yl;
var r = _r(e).getComputedStyle(e), a = Fd(r), i = a.left + a.right, o = a.top + a.bottom, s = ga(r.width), l = ga(r.height);
if (r.boxSizing === "border-box" && (Math.round(s + i) !== t && (s -= B1(r, "left", "right") + i), Math.round(l + o) !== n && (l -= B1(r, "top", "bottom") + o)), !kd(e)) {
var c = Math.round(s + i) - t, u = Math.round(l + o) - n;
Math.abs(c) !== 1 && (s -= c), Math.abs(u) !== 1 && (l -= u);
}
return _a(a.left, a.top, s, l);
}
var Bd = /* @__PURE__ */ function() {
return typeof SVGGraphicsElement < "u" ? function(e) {
return e instanceof _r(e).SVGGraphicsElement;
} : function(e) {
return e instanceof _r(e).SVGElement && typeof e.getBBox == "function";
};
}();
function kd(e) {
return e === _r(e).document.documentElement;
}
function Hd(e) {
return Ri ? Bd(e) ? Ld(e) : Vd(e) : Yl;
}
function jd(e) {
var t = e.x, n = e.y, r = e.width, a = e.height, i = typeof DOMRectReadOnly < "u" ? DOMRectReadOnly : Object, o = Object.create(i.prototype);
return Xl(o, {
x: t,
y: n,
width: r,
height: a,
top: n,
right: t + r,
bottom: a + n,
left: t
}), o;
}
function _a(e, t, n, r) {
return { x: e, y: t, width: n, height: r };
}
var zd = (
/** @class */
function() {
function e(t) {
this.broadcastWidth = 0, this.broadcastHeight = 0, this.contentRect_ = _a(0, 0, 0, 0), this.target = t;
}
return e.prototype.isActive = function() {
var t = Hd(this.target);
return this.contentRect_ = t, t.width !== this.broadcastWidth || t.height !== this.broadcastHeight;
}, e.prototype.broadcastRect = function() {
var t = this.contentRect_;
return this.broadcastWidth = t.width, this.broadcastHeight = t.height, t;
}, e;
}()
), Wd = (
/** @class */
/* @__PURE__ */ function() {
function e(t, n) {
var r = jd(n);
Xl(this, { target: t, contentRect: r });
}
return e;
}()
), Gd = (
/** @class */
function() {
function e(t, n, r) {
if (this.activeObservations_ = [], this.observations_ = new Ql(), typeof t != "function")
throw new TypeError("The callback provided as parameter 1 is not a function.");
this.callback_ = t, this.controller_ = n, this.callbackCtx_ = r;
}
return e.prototype.observe = function(t) {
if (!arguments.length)
throw new TypeError("1 argument required, but only 0 present.");
if (!(typeof Element > "u" || !(Element instanceof Object))) {
if (!(t instanceof _r(t).Element))
throw new TypeError('parameter 1 is not of type "Element".');
var n = this.observations_;
n.has(t) || (n.set(t, new zd(t)), this.controller_.addObserver(this), this.controller_.refresh());
}
}, e.prototype.unobserve = function(t) {
if (!arguments.length)
throw new TypeError("1 argument required, but only 0 present.");
if (!(typeof Element > "u" || !(Element instanceof Object))) {
if (!(t instanceof _r(t).Element))
throw new TypeError('parameter 1 is not of type "Element".');
var n = this.observations_;
n.has(t) && (n.delete(t), n.size || this.controller_.removeObserver(this));
}
}, e.prototype.disconnect = function() {
this.clearActive(), this.observations_.clear(), this.controller_.removeObserver(this);
}, e.prototype.gatherActive = function() {
var t = this;
this.clearActive(), this.observations_.forEach(function(n) {
n.isActive() && t.activeObservations_.push(n);
});
}, e.prototype.broadcastActive = function() {
if (this.hasActive()) {
var t = this.callbackCtx_, n = this.activeObservations_.map(function(r) {
return new Wd(r.target, r.broadcastRect());
});
this.callback_.call(t, n, t), this.clearActive();
}
}, e.prototype.clearActive = function() {
this.activeObservations_.splice(0);
}, e.prototype.hasActive = function() {
return this.activeObservations_.length > 0;
}, e;
}()
), Jl = typeof WeakMap < "u" ? /* @__PURE__ */ new WeakMap() : new Ql(), Zl = (
/** @class */
/* @__PURE__ */ function() {
function e(t) {
if (!(this instanceof e))
throw new TypeError("Cannot call a class as a function.");
if (!arguments.length)
throw new TypeError("1 argument required, but only 0 present.");
var n = Nd.getInstance(), r = new Gd(t, n, this);
Jl.set(this, r);
}
return e;
}()
);
[
"observe",
"unobserve",
"disconnect"
].forEach(function(e) {
Zl.prototype[e] = function() {
var t;
return (t = Jl.get(this))[e].apply(t, arguments);
};
});
var ec = function() {
return typeof ha.ResizeObserver < "u" ? ha.ResizeObserver : Zl;
}();
function St(e, t) {
if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function");
}
function k1(e, t) {
for (var n = 0; n < t.length; n++) {
var r = t[n];
r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, Ul(r.key), r);
}
}
function Et(e, t, n) {
return t && k1(e.prototype, t), n && k1(e, n), Object.defineProperty(e, "prototype", {
writable: !1
}), e;
}
function c0(e, t) {
return c0 = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(n, r) {
return n.__proto__ = r, n;
}, c0(e, t);
}
function Pn(e, t) {
if (typeof t != "function" && t !== null) throw new TypeError("Super expression must either be null or a function");
e.prototype = Object.create(t && t.prototype, {
constructor: {
value: e,
writable: !0,
configurable: !0
}
}), Object.defineProperty(e, "prototype", {
writable: !1
}), t && c0(e, t);
}
function u0(e) {
return u0 = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(t) {
return t.__proto__ || Object.getPrototypeOf(t);
}, u0(e);
}
function jo() {
try {
var e = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
}));
} catch {
}
return (jo = function() {
return !!e;
})();
}
function Te(e) {
if (e === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
return e;
}
function Ud(e, t) {
if (t && (oe(t) == "object" || typeof t == "function")) return t;
if (t !== void 0) throw new TypeError("Derived constructors may only return object or undefined");
return Te(e);
}
function Mn(e) {
var t = jo();
return function() {
var n, r = u0(e);
if (t) {
var a = u0(this).constructor;
n = Reflect.construct(r, arguments, a);
} else n = r.apply(this, arguments);
return Ud(this, n);
};
}
function Ai(e, t) {
(t == null || t > e.length) && (t = e.length);
for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n];
return r;
}
function Kd(e) {
if (Array.isArray(e)) return Ai(e);
}
function tc(e) {
if (typeof Symbol < "u" && e[Symbol.iterator] != null || e["@@iterator"] != null) return Array.from(e);
}
function zo(e, t) {
if (e) {
if (typeof e == "string") return Ai(e, t);
var n = {}.toString.call(e).slice(8, -1);
return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? Ai(e, t) : void 0;
}
}
function qd() {
throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
}
function te(e) {
return Kd(e) || tc(e) || zo(e) || qd();
}
var nc = function(t) {
return +setTimeout(t, 16);
}, rc = function(t) {
return clearTimeout(t);
};
typeof window < "u" && "requestAnimationFrame" in window && (nc = function(t) {
return window.requestAnimationFrame(t);
}, rc = function(t) {
return window.cancelAnimationFrame(t);
});
var H1 = 0, Ta = /* @__PURE__ */ new Map();
function ac(e) {
Ta.delete(e);
}
var pa = function(t) {
var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 1;
H1 += 1;
var r = H1;
function a(i) {
if (i === 0)
ac(r), t();
else {
var o = nc(function() {
a(i - 1);
});
Ta.set(r, o);
}
}
return a(n), r;
};
pa.cancel = function(e) {
var t = Ta.get(e);
return ac(e), rc(t);
};
process.env.NODE_ENV !== "production" && (pa.ids = function() {
return Ta;
});
function ic(e) {
if (Array.isArray(e)) return e;
}
function Qd(e, t) {
var n = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
if (n != null) {
var r, a, i, o, s = [], l = !0, c = !1;
try {
if (i = (n = n.call(e)).next, t === 0) {
if (Object(n) !== n) return;
l = !1;
} else for (; !(l = (r = i.call(n)).done) && (s.push(r.value), s.length !== t); l = !0) ;
} catch (u) {
c = !0, a = u;
} finally {
try {
if (!l && n.return != null && (o = n.return(), Object(o) !== o)) return;
} finally {
if (c) throw a;
}
}
return s;
}
}
function oc() {
throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
}
function N(e, t) {
return ic(e) || Qd(e, t) || zo(e, t) || oc();
}
function Tr(e) {
for (var t = 0, n, r = 0, a = e.length; a >= 4; ++r, a -= 4)
n = e.charCodeAt(r) & 255 | (e.charCodeAt(++r) & 255) << 8 | (e.charCodeAt(++r) & 255) << 16 | (e.charCodeAt(++r) & 255) << 24, n = /* Math.imul(k, m): */
(n & 65535) * 1540483477 + ((n >>> 16) * 59797 << 16), n ^= /* k >>> r: */
n >>> 24, t = /* Math.imul(k, m): */
(n & 65535) * 1540483477 + ((n >>> 16) * 59797 << 16) ^ /* Math.imul(h, m): */
(t & 65535) * 1540483477 + ((t >>> 16) * 59797 << 16);
switch (a) {
case 3:
t ^= (e.charCodeAt(r + 2) & 255) << 16;
case 2:
t ^= (e.charCodeAt(r + 1) & 255) << 8;
case 1:
t ^= e.charCodeAt(r) & 255, t = /* Math.imul(h, m): */
(t & 65535) * 1540483477 + ((t >>> 16) * 59797 << 16);
}
return t ^= t >>> 13, t = /* Math.imul(h, m): */
(t & 65535) * 1540483477 + ((t >>> 16) * 59797 << 16), ((t ^ t >>> 15) >>> 0).toString(36);
}
function Zt() {
return !!(typeof window < "u" && window.document && window.document.createElement);
}
function Xd(e, t) {
if (!e)
return !1;
if (e.contains)
return e.contains(t);
for (var n = t; n; ) {
if (n === e)
return !0;
n = n.parentNode;
}
return !1;
}
var j1 = "data-rc-order", z1 = "data-rc-priority", Yd = "rc-util-key", Pi = /* @__PURE__ */ new Map();
function sc() {
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = e.mark;
return t ? t.startsWith("data-") ? t : "data-".concat(t) : Yd;
}
function Da(e) {
if (e.attachTo)
return e.attachTo;
var t = document.querySelector("head");
return t || document.body;
}
function Jd(e) {
return e === "queue" ? "prependQueue" : e ? "prepend" : "append";
}
function lc(e) {
return Array.from((Pi.get(e) || e).children).filter(function(t) {
return t.tagName === "STYLE";
});
}
function cc(e) {
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
if (!Zt())
return null;
var n = t.csp, r = t.prepend, a = t.priority, i = a === void 0 ? 0 : a, o = Jd(r), s = o === "prependQueue", l = document.createElement("style");
l.setAttribute(j1, o), s && i && l.setAttribute(z1, "".concat(i)), n != null && n.nonce && (l.nonce = n?.nonce), l.innerHTML = e;
var c = Da(t), u = c.firstChild;
if (r) {
if (s) {
var f = lc(c).filter(function(v) {
if (!["prepend", "prependQueue"].includes(v.getAttribute(j1)))
return !1;
var h = Number(v.getAttribute(z1) || 0);
return i >= h;
});
if (f.length)
return c.insertBefore(l, f[f.length - 1].nextSibling), l;
}
c.insertBefore(l, u);
} else
c.appendChild(l);
return l;
}
function uc(e) {
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = Da(t);
return lc(n).find(function(r) {
return r.getAttribute(sc(t)) === e;
});
}
function f0(e) {
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = uc(e, t);
if (n) {
var r = Da(t);
r.removeChild(n);
}
}
function Zd(e, t) {
var n = Pi.get(e);
if (!n || !Xd(document, n)) {
var r = cc("", t), a = r.parentNode;
Pi.set(e, a), e.removeChild(r);
}
}
function On(e, t) {
var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, r = Da(n);
Zd(r, n);
var a = uc(t, n);
if (a) {
var i, o;
if ((i = n.csp) !== null && i !== void 0 && i.nonce && a.nonce !== ((o = n.csp) === null || o === void 0 ? void 0 : o.nonce)) {
var s;
a.nonce = (s = n.csp) === null || s === void 0 ? void 0 : s.nonce;
}
return a.innerHTML !== e && (a.innerHTML = e), a;
}
var l = cc(e, n);
return l.setAttribute(sc(n), t), l;
}
function e2(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
if (t.indexOf(r) !== -1) continue;
n[r] = e[r];
}
return n;
}
function mt(e, t) {
if (e == null) return {};
var n, r, a = e2(e, t);
if (Object.getOwnPropertySymbols) {
var i = Object.getOwnPropertySymbols(e);
for (r = 0; r < i.length; r++) n = i[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (a[n] = e[n]);
}
return a;
}
function t2(e, t, n) {
var r = d.useRef({});
retu