(self.webpackChunk_N_E = self.webpackChunk_N_E || []).push([
[8355], {
29203: function(e) {
var t = {
utf8: {
stringToBytes: function(e) {
return t.bin.stringToBytes(unescape(encodeURIComponent(e)))
},
bytesToString: function(e) {
return decodeURIComponent(escape(t.bin.bytesToString(e)))
}
},
bin: {
stringToBytes: function(e) {
for (var t = [], n = 0; n < e.length; n++) t.push(255 & e.charCodeAt(n));
return t
},
bytesToString: function(e) {
for (var t = [], n = 0; n < e.length; n++) t.push(String.fromCharCode(e[n]));
return t.join("")
}
}
};
e.exports = t
},
54274: function(e) {
var t, n;
t = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", n = {
rotl: function(e, t) {
return e << t | e >>> 32 - t
},
rotr: function(e, t) {
return e << 32 - t | e >>> t
},
endian: function(e) {
if (e.constructor == Number) return 16711935 & n.rotl(e, 8) | 4278255360 & n.rotl(e, 24);
for (var t = 0; t < e.length; t++) e[t] = n.endian(e[t]);
return e
},
randomBytes: function(e) {
for (var t = []; e > 0; e--) t.push(Math.floor(256 * Math.random()));
return t
},
bytesToWords: function(e) {
for (var t = [], n = 0, r = 0; n < e.length; n++, r += 8) t[r >>> 5] |= e[n] << 24 - r % 32;
return t
},
wordsToBytes: function(e) {
for (var t = [], n = 0; n < 32 * e.length; n += 8) t.push(e[n >>> 5] >>> 24 - n % 32 & 255);
return t
},
bytesToHex: function(e) {
for (var t = [], n = 0; n < e.length; n++) t.push((e[n] >>> 4).toString(16)), t.push((15 & e[n]).toString(16));
return t.join("")
},
hexToBytes: function(e) {
for (var t = [], n = 0; n < e.length; n += 2) t.push(parseInt(e.substr(n, 2), 16));
return t
},
bytesToBase64: function(e) {
for (var n = [], r = 0; r < e.length; r += 3)
for (var o = e[r] << 16 | e[r + 1] << 8 | e[r + 2], i = 0; i < 4; i++) 8 * r + 6 * i <= 8 * e.length ? n.push(t.charAt(o >>> 6 * (3 - i) & 63)) : n.push("=");
return n.join("")
},
base64ToBytes: function(e) {
e = e.replace(/[^A-Z0-9+\/]/ig, "");
for (var n = [], r = 0, o = 0; r < e.length; o = ++r % 4) 0 != o && n.push((t.indexOf(e.charAt(r - 1)) & Math.pow(2, -2 * o + 8) - 1) << 2 * o | t.indexOf(e.charAt(r)) >>> 6 - 2 * o);
return n
}
}, e.exports = n
},
17476: function(e) {
function isBuffer(e) {
return !!e.constructor && "function" == typeof e.constructor.isBuffer && e.constructor.isBuffer(e)
}
e.exports = function(e) {
return null != e && (isBuffer(e) || "function" == typeof e.readFloatLE && "function" == typeof e.slice && isBuffer(e.slice(0, 0)) || !!e._isBuffer)
}
},
5681: function(e, t, n) {
var r, o, i, a, s;
r = n(54274), o = n(29203).utf8, i = n(17476), a = n(29203).bin, (s = function(e, t) {
e.constructor == String ? e = t && "binary" === t.encoding ? a.stringToBytes(e) : o.stringToBytes(e) : i(e) ? e = Array.prototype.slice.call(e, 0) : Array.isArray(e) || e.constructor === Uint8Array || (e = e.toString());
for (var n = r.bytesToWords(e), f = 8 * e.length, c = 1732584193, u = -271733879, l = -1732584194, p = 271733878, d = 0; d < n.length; d++) n[d] = (n[d] << 8 | n[d] >>> 24) & 16711935 | (n[d] << 24 | n[d] >>> 8) & 4278255360;
n[f >>> 5] |= 128 << f % 32, n[(f + 64 >>> 9 << 4) + 14] = f;
for (var g = s._ff, m = s._gg, h = s._hh, y = s._ii, d = 0; d < n.length; d += 16) {
var v = c,
b = u,
w = l,
O = p;
c = g(c, u, l, p, n[d + 0], 7, -680876936), p = g(p, c, u, l, n[d + 1], 12, -389564586), l = g(l, p, c, u, n[d + 2], 17, 606105819), u = g(u, l, p, c, n[d + 3], 22, -1044525330), c = g(c, u, l, p, n[d + 4], 7, -176418897), p = g(p, c, u, l, n[d + 5], 12, 1200080426), l = g(l, p, c, u, n[d + 6], 17, -1473231341), u = g(u, l, p, c, n[d + 7], 22, -45705983), c = g(c, u, l, p, n[d + 8], 7, 1770035416), p = g(p, c, u, l, n[d + 9], 12, -1958414417), l = g(l, p, c, u, n[d + 10], 17, -42063), u = g(u, l, p, c, n[d + 11], 22, -1990404162), c = g(c, u, l, p, n[d + 12], 7, 1804603682), p = g(p, c, u, l, n[d + 13], 12, -40341101), l = g(l, p, c, u, n[d + 14], 17, -1502002290), u = g(u, l, p, c, n[d + 15], 22, 1236535329), c = m(c, u, l, p, n[d + 1], 5, -165796510), p = m(p, c, u, l, n[d + 6], 9, -1069501632), l = m(l, p, c, u, n[d + 11], 14, 643717713), u = m(u, l, p, c, n[d + 0], 20, -373897302), c = m(c, u, l, p, n[d + 5], 5, -701558691), p = m(p, c, u, l, n[d + 10], 9, 38016083), l = m(l, p, c, u, n[d + 15], 14, -660478335), u = m(u, l, p, c, n[d + 4], 20, -405537848), c = m(c, u, l, p, n[d + 9], 5, 568446438), p = m(p, c, u, l, n[d + 14], 9, -1019803690), l = m(l, p, c, u, n[d + 3], 14, -187363961), u = m(u, l, p, c, n[d + 8], 20, 1163531501), c = m(c, u, l, p, n[d + 13], 5, -1444681467), p = m(p, c, u, l, n[d + 2], 9, -51403784), l = m(l, p, c, u, n[d + 7], 14, 1735328473), u = m(u, l, p, c, n[d + 12], 20, -1926607734), c = h(c, u, l, p, n[d + 5], 4, -378558), p = h(p, c, u, l, n[d + 8], 11, -2022574463), l = h(l, p, c, u, n[d + 11], 16, 1839030562), u = h(u, l, p, c, n[d + 14], 23, -35309556), c = h(c, u, l, p, n[d + 1], 4, -1530992060), p = h(p, c, u, l, n[d + 4], 11, 1272893353), l = h(l, p, c, u, n[d + 7], 16, -155497632), u = h(u, l, p, c, n[d + 10], 23, -1094730640), c = h(c, u, l, p, n[d + 13], 4, 681279174), p = h(p, c, u, l, n[d + 0], 11, -358537222), l = h(l, p, c, u, n[d + 3], 16, -722521979), u = h(u, l, p, c, n[d + 6], 23, 76029189), c = h(c, u, l, p, n[d + 9], 4, -640364487), p = h(p, c, u, l, n[d + 12], 11, -421815835), l = h(l, p, c, u, n[d + 15], 16, 530742520), u = h(u, l, p, c, n[d + 2], 23, -995338651), c = y(c, u, l, p, n[d + 0], 6, -198630844), p = y(p, c, u, l, n[d + 7], 10, 1126891415), l = y(l, p, c, u, n[d + 14], 15, -1416354905), u = y(u, l, p, c, n[d + 5], 21, -57434055), c = y(c, u, l, p, n[d + 12], 6, 1700485571), p = y(p, c, u, l, n[d + 3], 10, -1894986606), l = y(l, p, c, u, n[d + 10], 15, -1051523), u = y(u, l, p, c, n[d + 1], 21, -2054922799), c = y(c, u, l, p, n[d + 8], 6, 1873313359), p = y(p, c, u, l, n[d + 15], 10, -30611744), l = y(l, p, c, u, n[d + 6], 15, -1560198380), u = y(u, l, p, c, n[d + 13], 21, 1309151649), c = y(c, u, l, p, n[d + 4], 6, -145523070), p = y(p, c, u, l, n[d + 11], 10, -1120210379), l = y(l, p, c, u, n[d + 2], 15, 718787259), u = y(u, l, p, c, n[d + 9], 21, -343485551), c = c + v >>> 0, u = u + b >>> 0, l = l + w >>> 0, p = p + O >>> 0
}
return r.endian([c, u, l, p])
})._ff = function(e, t, n, r, o, i, a) {
var s = e + (t & n | ~t & r) + (o >>> 0) + a;
return (s << i | s >>> 32 - i) + t
}, s._gg = function(e, t, n, r, o, i, a) {
var s = e + (t & r | n & ~r) + (o >>> 0) + a;
return (s << i | s >>> 32 - i) + t
}, s._hh = function(e, t, n, r, o, i, a) {
var s = e + (t ^ n ^ r) + (o >>> 0) + a;
return (s << i | s >>> 32 - i) + t
}, s._ii = function(e, t, n, r, o, i, a) {
var s = e + (n ^ (t | ~r)) + (o >>> 0) + a;
return (s << i | s >>> 32 - i) + t
}, s._blocksize = 16, s._digestsize = 16, e.exports = function(e, t) {
if (null == e) throw Error("Illegal argument " + e);
var n = r.wordsToBytes(s(e, t));
return t && t.asBytes ? n : t && t.asString ? a.bytesToString(n) : r.bytesToHex(n)
}
},
81690: function(e) {
var t = "undefined" != typeof Element,
n = "function" == typeof Map,
r = "function" == typeof Set,
o = "function" == typeof ArrayBuffer && !!ArrayBuffer.isView;
e.exports = function(e, i) {
try {
return function equal(e, i) {
if (e === i) return !0;
if (e && i && "object" == typeof e && "object" == typeof i) {
var a, s, f, c;
if (e.constructor !== i.constructor) return !1;
if (Array.isArray(e)) {
if ((a = e.length) != i.length) return !1;
for (s = a; 0 != s--;)
if (!equal(e[s], i[s])) return !1;
return !0
}
if (n && e instanceof Map && i instanceof Map) {
if (e.size !== i.size) return !1;
for (c = e.entries(); !(s = c.next()).done;)
if (!i.has(s.value[0])) return !1;
for (c = e.entries(); !(s = c.next()).done;)
if (!equal(s.value[1], i.get(s.value[0]))) return !1;
return !0
}
if (r && e instanceof Set && i instanceof Set) {
if (e.size !== i.size) return !1;
for (c = e.entries(); !(s = c.next()).done;)
if (!i.has(s.value[0])) return !1;
return !0
}
if (o && ArrayBuffer.isView(e) && ArrayBuffer.isView(i)) {
if ((a = e.length) != i.length) return !1;
for (s = a; 0 != s--;)
if (e[s] !== i[s]) return !1;
return !0
}
if (e.constructor === RegExp) return e.source === i.source && e.flags === i.flags;
if (e.valueOf !== Object.prototype.valueOf && "function" == typeof e.valueOf && "function" == typeof i.valueOf) return e.valueOf() === i.valueOf();
if (e.toString !== Object.prototype.toString && "function" == typeof e.toString && "function" == typeof i.toString) return e.toString() === i.toString();
if ((a = (f = Object.keys(e)).length) !== Object.keys(i).length) return !1;
for (s = a; 0 != s--;)
if (!Object.prototype.hasOwnProperty.call(i, f[s])) return !1;
if (t && e instanceof Element) return !1;
for (s = a; 0 != s--;)
if (("_owner" !== f[s] && "__v" !== f[s] && "__o" !== f[s] || !e.$$typeof) && !equal(e[f[s]], i[f[s]])) return !1;
return !0
}
return e != e && i != i
}(e, i)
} catch (e) {
if ((e.message || "").match(/stack|recursion/i)) return console.warn("react-fast-compare cannot handle circular refs"), !1;
throw e
}
}
},
76897: function(e, t, n) {
"use strict";
n.d(t, {
D: function() {
return usePopper
}
});
var r, o, i, a, s, f = n(52983);
function getWindow(e) {
if (null == e) return window;
if ("[object Window]" !== e.toString()) {
var t = e.ownerDocument;
return t && t.defaultView || window
}
return e
}
function isElement(e) {
var t = getWindow(e).Element;
return e instanceof t || e instanceof Element
}
function isHTMLElement(e) {
var t = getWindow(e).HTMLElement;
return e instanceof t || e instanceof HTMLElement
}
function isShadowRoot(e) {
if ("undefined" == typeof ShadowRoot) return !1;
var t = getWindow(e).ShadowRoot;
return e instanceof t || e instanceof ShadowRoot
}
var c = Math.max,
u = Math.min,
l = Math.round;
function getUAString() {
var e = navigator.userAgentData;
return null != e && e.brands && Array.isArray(e.brands) ? e.brands.map(function(e) {
return e.brand + "/" + e.version
}).join(" ") : navigator.userAgent
}
function isLayoutViewport() {
return !/^((?!chrome|android).)*safari/i.test(getUAString())
}
function getBoundingClientRect(e, t, n) {
void 0 === t && (t = !1), void 0 === n && (n = !1);
var r = e.getBoundingClientRect(),
o = 1,
i = 1;
t && isHTMLElement(e) && (o = e.offsetWidth > 0 && l(r.width) / e.offsetWidth || 1, i = e.offsetHeight > 0 && l(r.height) / e.offsetHeight || 1);
var a = (isElement(e) ? getWindow(e) : window).visualViewport,
s = !isLayoutViewport() && n,
f = (r.left + (s && a ? a.offsetLeft : 0)) / o,
c = (r.top + (s && a ? a.offsetTop : 0)) / i,
u = r.width / o,
p = r.height / i;
return {
width: u,
height: p,
top: c,
right: f + u,
bottom: c + p,
left: f,
x: f,
y: c
}
}
function getWindowScroll(e) {
var t = getWindow(e);
return {
scrollLeft: t.pageXOffset,
scrollTop: t.pageYOffset
}
}
function getNodeName(e) {
return e ? (e.nodeName || "").toLowerCase() : null
}
function getDocumentElement(e) {
return ((isElement(e) ? e.ownerDocument : e.document) || window.document).documentElement
}
function getWindowScrollBarX(e) {
return getBoundingClientRect(getDocumentElement(e)).left + getWindowScroll(e).scrollLeft
}
function getComputedStyle(e) {
return getWindow(e).getComputedStyle(e)
}
function isScrollParent(e) {
var t = getComputedStyle(e),
n = t.overflow,
r = t.overflowX,
o = t.overflowY;
return /auto|scroll|overlay|hidden/.test(n + o + r)
}
function getLayoutRect(e) {
var t = getBoundingClientRect(e),
n = e.offsetWidth,
r = e.offsetHeight;
return 1 >= Math.abs(t.width - n) && (n = t.width), 1 >= Math.abs(t.height - r) && (r = t.height), {
x: e.offsetLeft,
y: e.offsetTop,
width: n,
height: r
}
}
function getParentNode(e) {
return "html" === getNodeName(e) ? e : e.assignedSlot || e.parentNode || (isShadowRoot(e) ? e.host : null) || getDocumentElement(e)
}
function listScrollParents(e, t) {
void 0 === t && (t = []);
var n, r = function getScrollParent(e) {
return ["html", "body", "#document"].indexOf(getNodeName(e)) >= 0 ? e.ownerDocument.body : isHTMLElement(e) && isScrollParent(e) ? e : getScrollParent(getParentNode(e))
}(e),
o = r === (null == (n = e.ownerDocument) ? void 0 : n.body),
i = getWindow(r),
a = o ? [i].concat(i.visualViewport || [], isScrollParent(r) ? r : []) : r,
s = t.concat(a);
return o ? s : s.concat(listScrollParents(getParentNode(a)))
}
function getTrueOffsetParent(e) {
return isHTMLElement(e) && "fixed" !== getComputedStyle(e).position ? e.offsetParent : null
}
function getOffsetParent(e) {
for (var t = getWindow(e), n = getTrueOffsetParent(e); n && ["table", "td", "th"].indexOf(getNodeName(n)) >= 0 && "static" === getComputedStyle(n).position;) n = getTrueOffsetParent(n);
return n && ("html" === getNodeName(n) || "body" === getNodeName(n) && "static" === getComputedStyle(n).position) ? t : n || function(e) {
var t = /firefox/i.test(getUAString());
if (/Trident/i.test(getUAString()) && isHTMLElement(e) && "fixed" === getComputedStyle(e).position) return null;
var n = getParentNode(e);
for (isShadowRoot(n) && (n = n.host); isHTMLElement(n) && 0 > ["html", "body"].indexOf(getNodeName(n));) {
var r = getComputedStyle(n);
if ("none" !== r.transform || "none" !== r.perspective || "paint" === r.contain || -1 !== ["transform", "perspective"].indexOf(r.willChange) || t && "filter" === r.willChange || t && r.filter && "none" !== r.filter) return n;
n = n.parentNode
}
return null
}(e) || t
}
var p = "bottom",
d = "right",
g = "left",
m = "auto",
h = ["top", p, d, g],
y = "start",
v = "viewport",
b = "popper",
w = h.reduce(function(e, t) {
return e.concat([t + "-" + y, t + "-end"])
}, []),
O = [].concat(h, [m]).reduce(function(e, t) {
return e.concat([t, t + "-" + y, t + "-end"])
}, []),
x = ["beforeRead", "read", "afterRead", "beforeMain", "main", "afterMain", "beforeWrite", "write", "afterWrite"],
S = {
placement: "bottom",
modifiers: [],
strategy: "absolute"
};
function areValidElements() {
for (var e = arguments.length, t = Array(e), n = 0; n < e; n++) t[n] = arguments[n];
return !t.some(function(e) {
return !(e && "function" == typeof e.getBoundingClientRect)
})
}
var E = {
passive: !0
};
function getBasePlacement(e) {
return e.split("-")[0]
}
function getVariation(e) {
return e.split("-")[1]
}
function getMainAxisFromPlacement(e) {
return ["top", "bottom"].indexOf(e) >= 0 ? "x" : "y"
}
function computeOffsets(e) {
var t, n = e.reference,
r = e.element,
o = e.placement,
i = o ? getBasePlacement(o) : null,
a = o ? getVariation(o) : null,
s = n.x + n.width / 2 - r.width / 2,
f = n.y + n.height / 2 - r.height / 2;
switch (i) {
case "top":
t = {
x: s,
y: n.y - r.height
};
break;
case p:
t = {
x: s,
y: n.y + n.height
};
break;
case d:
t = {
x: n.x + n.width,
y: f
};
break;
case g:
t = {
x: n.x - r.width,
y: f
};
break;
default:
t = {
x: n.x,
y: n.y
}
}
var c = i ? getMainAxisFromPlacement(i) : null;
if (null != c) {
var u = "y" === c ? "height" : "width";
switch (a) {
case y:
t[c] = t[c] - (n[u] / 2 - r[u] / 2);
break;
case "end":
t[c] = t[c] + (n[u] / 2 - r[u] / 2)
}
}
return t
}
var P = {
top: "auto",
right: "auto",
bottom: "auto",
left: "auto"
};
function mapToStyles(e) {
var t, n, r, o, i, a, s, f = e.popper,
c = e.popperRect,
u = e.placement,
m = e.variation,
h = e.offsets,
y = e.position,
v = e.gpuAcceleration,
b = e.adaptive,
w = e.roundOffsets,
O = e.isFixed,
x = h.x,
S = void 0 === x ? 0 : x,
E = h.y,
T = void 0 === E ? 0 : E,
B = "function" == typeof w ? w({
x: S,
y: T
}) : {
x: S,
y: T
};
S = B.x, T = B.y;
var A = h.hasOwnProperty("x"),
j = h.hasOwnProperty("y"),
M = g,
C = "top",
W = window;
if (b) {
var L = getOffsetParent(f),
R = "clientHeight",
D = "clientWidth";
L === getWindow(f) && "static" !== getComputedStyle(L = getDocumentElement(f)).position && "absolute" === y && (R = "scrollHeight", D = "scrollWidth"), ("top" === u || (u === g || u === d) && "end" === m) && (C = p, T -= (O && L === W && W.visualViewport ? W.visualViewport.height : L[R]) - c.height, T *= v ? 1 : -1), (u === g || ("top" === u || u === p) && "end" === m) && (M = d, S -= (O && L === W && W.visualViewport ? W.visualViewport.width : L[D]) - c.width, S *= v ? 1 : -1)
}
var N = Object.assign({
position: y
}, b && P),
H = !0 === w ? (t = {
x: S,
y: T
}, n = getWindow(f), r = t.x, o = t.y, {
x: l(r * (i = n.devicePixelRatio || 1)) / i || 0,
y: l(o * i) / i || 0
}) : {
x: S,
y: T
};
return (S = H.x, T = H.y, v) ? Object.assign({}, N, ((s = {})[C] = j ? "0" : "", s[M] = A ? "0" : "", s.transform = 1 >= (W.devicePixelRatio || 1) ? "translate(" + S + "px, " + T + "px)" : "translate3d(" + S + "px, " + T + "px, 0)", s)) : Object.assign({}, N, ((a = {})[C] = j ? T + "px" : "", a[M] = A ? S + "px" : "", a.transform = "", a))
}
var T = {
left: "right",
right: "left",
bottom: "top",
top: "bottom"
};
function getOppositePlacement(e) {
return e.replace(/left|right|bottom|top/g, function(e) {
return T[e]
})
}
var B = {
start: "end",
end: "start"
};
function getOppositeVariationPlacement(e) {
return e.replace(/start|end/g, function(e) {
return B[e]
})
}
function contains(e, t) {
var n = t.getRootNode && t.getRootNode();
if (e.contains(t)) return !0;
if (n && isShadowRoot(n)) {
var r = t;
do {
if (r && e.isSameNode(r)) return !0;
r = r.parentNode || r.host
} while (r)
}
return !1
}
function rectToClientRect(e) {
return Object.assign({}, e, {
left: e.x,
top: e.y,
right: e.x + e.width,
bottom: e.y + e.height
})
}
function getClientRectFromMixedType(e, t, n) {
var r, o, i, a, s, f, u, l, p, d;
return t === v ? rectToClientRect(function(e, t) {
var n = getWindow(e),
r = getDocumentElement(e),
o = n.visualViewport,
i = r.clientWidth,
a = r.clientHeight,
s = 0,
f = 0;
if (o) {
i = o.width, a = o.height;
var c = isLayoutViewport();
(c || !c && "fixed" === t) && (s = o.offsetLeft, f = o.offsetTop)
}
return {
width: i,
height: a,
x: s + getWindowScrollBarX(e),
y: f
}
}(e, n)) : isElement(t) ? ((r = getBoundingClientRect(t, !1, "fixed" === n)).top = r.top + t.clientTop, r.left = r.left + t.clientLeft, r.bottom = r.top + t.clientHeight, r.right = r.left + t.clientWidth, r.width = t.clientWidth, r.height = t.clientHeight, r.x = r.left, r.y = r.top, r) : rectToClientRect((o = getDocumentElement(e), a = getDocumentElement(o), s = getWindowScroll(o), f = null == (i = o.ownerDocument) ? void 0 : i.body, u = c(a.scrollWidth, a.clientWidth, f ? f.scrollWidth : 0, f ? f.clientWidth : 0), l = c(a.scrollHeight, a.clientHeight, f ? f.scrollHeight : 0, f ? f.clientHeight : 0), p = -s.scrollLeft + getWindowScrollBarX(o), d = -s.scrollTop, "rtl" === getComputedStyle(f || a).direction && (p += c(a.clientWidth, f ? f.clientWidth : 0) - u), {
width: u,
height: l,
x: p,
y: d
}))
}
function getFreshSideObject() {
return {
top: 0,
right: 0,
bottom: 0,
left: 0
}
}
function mergePaddingObject(e) {
return Object.assign({}, getFreshSideObject(), e)
}
function expandToHashMap(e, t) {
return t.reduce(function(t, n) {
return t[n] = e, t
}, {})
}
function detectOverflow(e, t) {
void 0 === t && (t = {});
var n, r, o, i, a, s, f, l = t,
g = l.placement,
m = void 0 === g ? e.placement : g,
y = l.strategy,
w = void 0 === y ? e.strategy : y,
O = l.boundary,
x = l.rootBoundary,
S = l.elementContext,
E = void 0 === S ? b : S,
P = l.altBoundary,
T = l.padding,
B = void 0 === T ? 0 : T,
A = mergePaddingObject("number" != typeof B ? B : expandToHashMap(B, h)),
j = e.rects.popper,
M = e.elements[void 0 !== P && P ? E === b ? "reference" : b : E],
C = (n = isElement(M) ? M : M.contextElement || getDocumentElement(e.elements.popper), s = (a = [].concat("clippingParents" === (r = void 0 === O ? "clippingParents" : O) ? (o = listScrollParents(getParentNode(n)), isElement(i = ["absolute", "fixed"].indexOf(getComputedStyle(n).position) >= 0 && isHTMLElement(n) ? getOffsetParent(n) : n) ? o.filter(function(e) {
return isElement(e) && contains(e, i) && "body" !== getNodeName(e)
}) : []) : [].concat(r), [void 0 === x ? v : x]))[0], (f = a.reduce(function(e, t) {
var r = getClientRectFromMixedType(n, t, w);
return e.top = c(r.top, e.top), e.right = u(r.right, e.right), e.bottom = u(r.bottom, e.bottom), e.left = c(r.left, e.left), e
}, getClientRectFromMixedType(n, s, w))).width = f.right - f.left, f.height = f.bottom - f.top, f.x = f.left, f.y = f.top, f),
W = getBoundingClientRect(e.elements.reference),
L = computeOffsets({
reference: W,
element: j,
strategy: "absolute",
placement: m
}),
R = rectToClientRect(Object.assign({}, j, L)),
D = E === b ? R : W,
N = {
top: C.top - D.top + A.top,
bottom: D.bottom - C.bottom + A.bottom,
left: C.left - D.left + A.left,
right: D.right - C.right + A.right
},
H = e.modifiersData.offset;
if (E === b && H) {
var V = H[m];
Object.keys(N).forEach(function(e) {
var t = [d, p].indexOf(e) >= 0 ? 1 : -1,
n = ["top", p].indexOf(e) >= 0 ? "y" : "x";
N[e] += V[n] * t
})
}
return N
}
function within(e, t, n) {
return c(e, u(t, n))
}
function getSideOffsets(e, t, n) {
return void 0 === n && (n = {
x: 0,
y: 0
}), {
top: e.top - t.height - n.y,
right: e.right - t.width + n.x,
bottom: e.bottom - t.height + n.y,
left: e.left - t.width - n.x
}
}
function isAnySideFullyClipped(e) {
return ["top", d, p, g].some(function(t) {
return e[t] >= 0
})
}
var A = (i = void 0 === (o = (r = {
defaultModifiers: [{
name: "eventListeners",
enabled: !0,
phase: "write",
fn: function() {},
effect: function(e) {
var t = e.state,
n = e.instance,
r = e.options,
o = r.scroll,
i = void 0 === o || o,
a = r.resize,
s = void 0 === a || a,
f = getWindow(t.elements.popper),
c = [].concat(t.scrollParents.reference, t.scrollParents.popper);
return i && c.forEach(function(e) {
e.addEventListener("scroll", n.update, E)
}), s && f.addEventListener("resize", n.update, E),
function() {
i && c.forEach(function(e) {
e.removeEventListener("scroll", n.update, E)
}), s && f.removeEventListener("resize", n.update, E)
}
},
data: {}
}, {
name: "popperOffsets",
enabled: !0,
phase: "read",
fn: function(e) {
var t = e.state,
n = e.name;
t.modifiersData[n] = computeOffsets({
reference: t.rects.reference,
element: t.rects.popper,
strategy: "absolute",
placement: t.placement
})
},
data: {}
}, {
name: "computeStyles",
enabled: !0,
phase: "beforeWrite",
fn: function(e) {
var t = e.state,
n = e.options,
r = n.gpuAcceleration,
o = n.adaptive,
i = n.roundOffsets,
a = void 0 === i || i,
s = {
placement: getBasePlacement(t.placement),
variation: getVariation(t.placement),
popper: t.elements.popper,
popperRect: t.rects.popper,
gpuAcceleration: void 0 === r || r,
isFixed: "fixed" === t.options.strategy
};
null != t.modifiersData.popperOffsets && (t.styles.popper = Object.assign({}, t.styles.popper, mapToStyles(Object.assign({}, s, {
offsets: t.modifiersData.popperOffsets,
position: t.options.strategy,
adaptive: void 0 === o || o,
roundOffsets: a
})))), null != t.modifiersData.arrow && (t.styles.arrow = Object.assign({}, t.styles.arrow, mapToStyles(Object.assign({}, s, {
offsets: t.modifiersData.arrow,
position: "absolute",
adaptive: !1,
roundOffsets: a
})))), t.attributes.popper = Object.assign({}, t.attributes.popper, {
"data-popper-placement": t.placement
})
},
data: {}
}, {
name: "applyStyles",
enabled: !0,
phase: "write",
fn: function(e) {
var t = e.state;
Object.keys(t.elements).forEach(function(e) {
var n = t.styles[e] || {},
r = t.attributes[e] || {},
o = t.elements[e];
isHTMLElement(o) && getNodeName(o) && (Object.assign(o.style, n), Object.keys(r).forEach(function(e) {
var t = r[e];
!1 === t ? o.removeAttribute(e) : o.setAttribute(e, !0 === t ? "" : t)
}))
})
},
effect: function(e) {
var t = e.state,
n = {
popper: {
position: t.options.strategy,
left: "0",
top: "0",
margin: "0"
},
arrow: {
position: "absolute"
},
reference: {}
};
return Object.assign(t.elements.popper.style, n.popper), t.styles = n, t.elements.arrow && Object.assign(t.elements.arrow.style, n.arrow),
function() {
Object.keys(t.elements).forEach(function(e) {
var r = t.elements[e],
o = t.attributes[e] || {},
i = Object.keys(t.styles.hasOwnProperty(e) ? t.styles[e] : n[e]).reduce(function(e, t) {
return e[t] = "", e
}, {});
isHTMLElement(r) && getNodeName(r) && (Object.assign(r.style, i), Object.keys(o).forEach(function(e) {
r.removeAttribute(e)
}))
})
}
},
requires: ["computeStyles"]
}, {
name: "offset",
enabled: !0,
phase: "main",
requires: ["popperOffsets"],
fn: function(e) {
var t = e.state,
n = e.options,
r = e.name,
o = n.offset,
i = void 0 === o ? [0, 0] : o,
a = O.reduce(function(e, n) {
var r, o, a, s, f, c;
return e[n] = (r = t.rects, a = [g, "top"].indexOf(o = getBasePlacement(n)) >= 0 ? -1 : 1, f = (s = "function" == typeof i ? i(Object.assign({}, r, {
placement: n
})) : i)[0], c = s[1], f = f || 0, c = (c || 0) * a, [g, d].indexOf(o) >= 0 ? {
x: c,
y: f
} : {
x: f,
y: c
}), e
}, {}),
s = a[t.placement],
f = s.x,
c = s.y;
null != t.modifiersData.popperOffsets && (t.modifiersData.popperOffsets.x += f, t.modifiersData.popperOffsets.y += c), t.modifiersData[r] = a
}
}, {
name: "flip",
enabled: !0,
phase: "main",
fn: function(e) {
var t = e.state,
n = e.options,
r = e.name;
if (!t.modifiersData[r]._skip) {
for (var o = n.mainAxis, i = void 0 === o || o, a = n.altAxis, s = void 0 === a || a, f = n.fallbackPlacements, c = n.padding, u = n.boundary, l = n.rootBoundary, v = n.altBoundary, b = n.flipVariations, x = void 0 === b || b, S = n.allowedAutoPlacements, E = t.options.placement, P = getBasePlacement(E) === E, T = f || (P || !x ? [getOppositePlacement(E)] : function(e) {
if (getBasePlacement(e) === m) return [];
var t = getOppositePlacement(e);
return [getOppositeVariationPlacement(e), t, getOppositeVariationPlacement(t)]
}(E)), B = [E].concat(T).reduce(function(e, n) {
var r, o, i, a, s, f, p, d, g, y, v, b;
return e.concat(getBasePlacement(n) === m ? (o = (r = {
placement: n,
boundary: u,
rootBoundary: l,
padding: c,
flipVariations: x,
allowedAutoPlacements: S
}).placement, i = r.boundary, a = r.rootBoundary, s = r.padding, f = r.flipVariations, d = void 0 === (p = r.allowedAutoPlacements) ? O : p, 0 === (v = (y = (g = getVariation(o)) ? f ? w : w.filter(function(e) {
return getVariation(e) === g
}) : h).filter(function(e) {
return d.indexOf(e) >= 0
})).length && (v = y), Object.keys(b = v.reduce(function(e, n) {
return e[n] = detectOverflow(t, {
placement: n,
boundary: i,
rootBoundary: a,
padding: s
})[getBasePlacement(n)], e
}, {})).sort(function(e, t) {
return b[e] - b[t]
})) : n)
}, []), A = t.rects.reference, j = t.rects.popper, M = new Map, C = !0, W = B[0], L = 0; L < B.length; L++) {
var R = B[L],
D = getBasePlacement(R),
N = getVariation(R) === y,
H = ["top", p].indexOf(D) >= 0,
V = H ? "width" : "height",
k = detectOverflow(t, {
placement: R,
boundary: u,
rootBoundary: l,
altBoundary: v,
padding: c
}),
_ = H ? N ? d : g : N ? p : "top";
A[V] > j[V] && (_ = getOppositePlacement(_));
var F = getOppositePlacement(_),
U = [];
if (i && U.push(k[D] <= 0), s && U.push(k[_] <= 0, k[F] <= 0), U.every(function(e) {
return e
})) {
W = R, C = !1;
break
}
M.set(R, U)
}
if (C)
for (var q = x ? 3 : 1, _loop = function(e) {
var t = B.find(function(t) {
var n = M.get(t);
if (n) return n.slice(0, e).every(function(e) {
return e
})
});
if (t) return W = t, "break"
}, z = q; z > 0 && "break" !== _loop(z); z--);
t.placement !== W && (t.modifiersData[r]._skip = !0, t.placement = W, t.reset = !0)
}
},
requiresIfExists: ["offset"],
data: {
_skip: !1
}
}, {
name: "preventOverflow",
enabled: !0,
phase: "main",
fn: function(e) {
var t = e.state,
n = e.options,
r = e.name,
o = n.mainAxis,
i = n.altAxis,
a = n.boundary,
s = n.rootBoundary,
f = n.altBoundary,
l = n.padding,
m = n.tether,
h = void 0 === m || m,
v = n.tetherOffset,
b = void 0 === v ? 0 : v,
w = detectOverflow(t, {
boundary: a,
rootBoundary: s,
padding: l,
altBoundary: f
}),
O = getBasePlacement(t.placement),
x = getVariation(t.placement),
S = !x,
E = getMainAxisFromPlacement(O),
P = "x" === E ? "y" : "x",
T = t.modifiersData.popperOffsets,
B = t.rects.reference,
A = t.rects.popper,
j = "function" == typeof b ? b(Object.assign({}, t.rects, {
placement: t.placement
})) : b,
M = "number" == typeof j ? {
mainAxis: j,
altAxis: j
} : Object.assign({
mainAxis: 0,
altAxis: 0
}, j),
C = t.modifiersData.offset ? t.modifiersData.offset[t.placement] : null,
W = {
x: 0,
y: 0
};
if (T) {
if (void 0 === o || o) {
var L, R = "y" === E ? "top" : g,
D = "y" === E ? p : d,
N = "y" === E ? "height" : "width",
H = T[E],
V = H + w[R],
k = H - w[D],
_ = h ? -A[N] / 2 : 0,
F = x === y ? B[N] : A[N],
U = x === y ? -A[N] : -B[N],
q = t.elements.arrow,
z = h && q ? getLayoutRect(q) : {
width: 0,
height: 0
},
I = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : getFreshSideObject(),
X = I[R],
Y = I[D],
Z = within(0, B[N], z[N]),
$ = S ? B[N] / 2 - _ - Z - X - M.mainAxis : F - Z - X - M.mainAxis,
G = S ? -B[N] / 2 + _ + Z + Y + M.mainAxis : U + Z + Y + M.mainAxis,
J = t.elements.arrow && getOffsetParent(t.elements.arrow),
K = J ? "y" === E ? J.clientTop || 0 : J.clientLeft || 0 : 0,
Q = null != (L = null == C ? void 0 : C[E]) ? L : 0,
ee = H + $ - Q - K,
et = H + G - Q,
en = within(h ? u(V, ee) : V, H, h ? c(k, et) : k);
T[E] = en, W[E] = en - H
}
if (void 0 !== i && i) {
var er, eo, ei = "x" === E ? "top" : g,
ea = "x" === E ? p : d,
es = T[P],
ef = "y" === P ? "height" : "width",
ec = es + w[ei],
eu = es - w[ea],
el = -1 !== ["top", g].indexOf(O),
ep = null != (eo = null == C ? void 0 : C[P]) ? eo : 0,
ed = el ? ec : es - B[ef] - A[ef] - ep + M.altAxis,
eg = el ? es + B[ef] + A[ef] - ep - M.altAxis : eu,
em = h && el ? (er = within(ed, es, eg)) > eg ? eg : er : within(h ? ed : ec, es, h ? eg : eu);
T[P] = em, W[P] = em - es
}
t.modifiersData[r] = W
}
},
requiresIfExists: ["offset"]
}, {
name: "arrow",
enabled: !0,
phase: "main",
fn: function(e) {
var t, n, r = e.state,
o = e.name,
i = e.options,
a = r.elements.arrow,
s = r.modifiersData.popperOffsets,
f = getBasePlacement(r.placement),
c = getMainAxisFromPlacement(f),
u = [g, d].indexOf(f) >= 0 ? "height" : "width";
if (a && s) {
var l = mergePaddingObject("number" != typeof(t = "function" == typeof(t = i.padding) ? t(Object.assign({}, r.rects, {
placement: r.placement
})) : t) ? t : expandToHashMap(t, h)),
m = getLayoutRect(a),
y = "y" === c ? "top" : g,
v = "y" === c ? p : d,
b = r.rects.reference[u] + r.rects.reference[c] - s[c] - r.rects.popper[u],
w = s[c] - r.rects.reference[c],
O = getOffsetParent(a),
x = O ? "y" === c ? O.clientHeight || 0 : O.clientWidth || 0 : 0,
S = l[y],
E = x - m[u] - l[v],
P = x / 2 - m[u] / 2 + (b / 2 - w / 2),
T = within(S, P, E);
r.modifiersData[o] = ((n = {})[c] = T, n.centerOffset = T - P, n)
}
},
effect: function(e) {
var t = e.state,
n = e.options.element,
r = void 0 === n ? "[data-popper-arrow]" : n;
null != r && ("string" != typeof r || (r = t.elements.popper.querySelector(r))) && contains(t.elements.popper, r) && (t.elements.arrow = r)
},
requires: ["popperOffsets"],
requiresIfExists: ["preventOverflow"]
}, {
name: "hide",
enabled: !0,
phase: "main",
requiresIfExists: ["preventOverflow"],
fn: function(e) {
var t = e.state,
n = e.name,
r = t.rects.reference,
o = t.rects.popper,
i = t.modifiersData.preventOverflow,
a = detectOverflow(t, {
elementContext: "reference"
}),
s = detectOverflow(t, {
altBoundary: !0
}),
f = getSideOffsets(a, r),
c = getSideOffsets(s, o, i),
u = isAnySideFullyClipped(f),
l = isAnySideFullyClipped(c);
t.modifiersData[n] = {
referenceClippingOffsets: f,
popperEscapeOffsets: c,
isReferenceHidden: u,
hasPopperEscaped: l
}, t.attributes.popper = Object.assign({}, t.attributes.popper, {
"data-popper-reference-hidden": u,
"data-popper-escaped": l
})
}
}]
}).defaultModifiers) ? [] : o, s = void 0 === (a = r.defaultOptions) ? S : a, function(e, t, n) {
void 0 === n && (n = s);
var r, o = {
placement: "bottom",
orderedModifiers: [],
options: Object.assign({}, S, s),
modifiersData: {},
elements: {
reference: e,
popper: t
},
attributes: {},
styles: {}
},
a = [],
f = !1,
c = {
state: o,
setOptions: function(n) {
var r, f, u, l, p, d = "function" == typeof n ? n(o.options) : n;
cleanupModifierEffects(), o.options = Object.assign({}, s, o.options, d), o.scrollParents = {
reference: isElement(e) ? listScrollParents(e) : e.contextElement ? listScrollParents(e.contextElement) : [],
popper: listScrollParents(t)
};
var g = (f = Object.keys(r = [].concat(i, o.options.modifiers).reduce(function(e, t) {
var n = e[t.name];
return e[t.name] = n ? Object.assign({}, n, t, {
options: Object.assign({}, n.options, t.options),
data: Object.assign({}, n.data, t.data)
}) : t, e
}, {})).map(function(e) {
return r[e]
}), u = new Map, l = new Set, p = [], f.forEach(function(e) {
u.set(e.name, e)
}), f.forEach(function(e) {
l.has(e.name) || function sort(e) {
l.add(e.name), [].concat(e.requires || [], e.requiresIfExists || []).forEach(function(e) {
if (!l.has(e)) {
var t = u.get(e);
t && sort(t)
}
}), p.push(e)
}(e)
}), x.reduce(function(e, t) {
return e.concat(p.filter(function(e) {
return e.phase === t
}))
}, []));
return o.orderedModifiers = g.filter(function(e) {
return e.enabled
}), o.orderedModifiers.forEach(function(e) {
var t = e.name,
n = e.options,
r = e.effect;
if ("function" == typeof r) {
var i = r({
state: o,
name: t,
instance: c,
options: void 0 === n ? {} : n
});
a.push(i || function() {})
}
}), c.update()
},
forceUpdate: function() {
if (!f) {
var e, t, n, r, i, a, s, u, p, d, g, m, h = o.elements,
y = h.reference,
v = h.popper;
if (areValidElements(y, v)) {
;
o.rects = {
reference: (t = getOffsetParent(v), n = "fixed" === o.options.strategy, r = isHTMLElement(t), u = isHTMLElement(t) && (a = l((i = t.getBoundingClientRect()).width) / t.offsetWidth || 1, s = l(i.height) / t.offsetHeight || 1, 1 !== a || 1 !== s), p = getDocumentElement(t), d = getBoundingClientRect(y, u, n), g = {
scrollLeft: 0,
scrollTop: 0
}, m = {
x: 0,
y: 0
}, (r || !r && !n) && (("body" !== getNodeName(t) || isScrollParent(p)) && (g = (e = t) !== getWindow(e) && isHTMLElement(e) ? {
scrollLeft: e.scrollLeft,
scrollTop: e.scrollTop
} : getWindowScroll(e)), isHTMLElement(t) ? (m = getBoundingClientRect(t, !0), m.x += t.clientLeft, m.y += t.clientTop) : p && (m.x = getWindowScrollBarX(p))), {
x: d.left + g.scrollLeft - m.x,
y: d.top + g.scrollTop - m.y,
width: d.width,
height: d.height
}),
popper: getLayoutRect(v)
}, o.reset = !1, o.placement = o.options.placement, o.orderedModifiers.forEach(function(e) {
return o.modifiersData[e.name] = Object.assign({}, e.data)
});
for (var b = 0; b < o.orderedModifiers.length; b++) {
if (!0 === o.reset) {
o.reset = !1, b = -1;
continue
}
var w = o.orderedModifiers[b],
O = w.fn,
x = w.options,
S = void 0 === x ? {} : x,
E = w.name;
"function" == typeof O && (o = O({
state: o,
options: S,
name: E,
instance: c
}) || o)
}
}
}
},
update: function() {
return r || (r = new Promise(function(e) {
Promise.resolve().then(function() {
r = void 0, e(new Promise(function(e) {
c.forceUpdate(), e(o)
}))
})
})), r
},
destroy: function() {
cleanupModifierEffects(), f = !0
}
};
if (!areValidElements(e, t)) return c;
function cleanupModifierEffects() {
a.forEach(function(e) {
return e()
}), a = []
}
return c.setOptions(n).then(function(e) {
!f && n.onFirstUpdate && n.onFirstUpdate(e)
}), c
}),
j = n(81690),
M = n.n(j),
fromEntries = function(e) {
return e.reduce(function(e, t) {
var n = t[0],
r = t[1];
return e[n] = r, e
}, {})
},
C = "undefined" != typeof window && window.document && window.document.createElement ? f.useLayoutEffect : f.useEffect,
W = [],
usePopper = function(e, t, n) {
void 0 === n && (n = {});
var r = f.useRef(null),
o = {
onFirstUpdate: n.onFirstUpdate,
placement: n.placement || "bottom",
strategy: n.strategy || "absolute",
modifiers: n.modifiers || W
},
i = f.useState({
styles: {
popper: {
position: o.strategy,
left: "0",
top: "0"
},
arrow: {
position: "absolute"
}
},
attributes: {}
}),
a = i[0],
s = i[1],
c = f.useMemo(function() {
return {
name: "updateState",
enabled: !0,
phase: "write",
fn: function(e) {
var t = e.state,
n = Object.keys(t.elements);
s({
styles: fromEntries(n.map(function(e) {
return [e, t.styles[e] || {}]
})),
attributes: fromEntries(n.map(function(e) {
return [e, t.attributes[e]]
}))
})
},
requires: ["computeStyles"]
}
}, []),
u = f.useMemo(function() {
var e = {
onFirstUpdate: o.onFirstUpdate,
placement: o.placement,
strategy: o.strategy,
modifiers: [].concat(o.modifiers, [c, {
name: "applyStyles",
enabled: !1
}])
};
return M()(r.current, e) ? r.current || e : (r.current = e, e)
}, [o.onFirstUpdate, o.placement, o.strategy, o.modifiers, c]),
l = f.useRef();
return C(function() {
l.current && l.current.setOptions(u)
}, [u]), C(function() {
if (null != e && null != t) {
var r = (n.createPopper || A)(e, t, u);
return l.current = r,
function() {
r.destroy(), l.current = null
}
}
}, [e, t, n.createPopper]), {
state: l.current ? l.current.state : null,
styles: a.styles,
attributes: a.attributes,
update: l.current ? l.current.update : null,
forceUpdate: l.current ? l.current.forceUpdate : null
}
}
}
}
]);