PageSourceSearch

https://cmcglobal.com.vn/wp-content/themes/cmc-global/assets/js/popper.min.js

js cmcglobal.com.vn collected 2026-10-03 20:30:56 UTC 36,388 bytes, 1,210 lines download raw bytes

1/*
2 Copyright (C) Federico Zivolo 2020
3 Distributed under the MIT License (license terms are at http://opensource.org/licenses/MIT).
4 */ (function (
5  e,
6  t
7) {
8  "object" == typeof exports && "undefined" != typeof module
9    ? (module.exports = t())
10    : "function" == typeof define && define.amd
11    ? define(t)
12    : (e.Popper = t());
13})(this, function () {
14  "use strict";
15  function e(e) {
16    return e && "[object Function]" === {}.toString.call(e);
17  }
18  function t(e, t) {
19    if (1 !== e.nodeType) return [];
20    var o = e.ownerDocument.defaultView,
21      n = o.getComputedStyle(e, null);
22    return t ? n[t] : n;
23  }
24  function o(e) {
25    return "HTML" === e.nodeName ? e : e.parentNode || e.host;
26  }
27  function n(e) {
28    if (!e) return document.body;
29    switch (e.nodeName) {
30      case "HTML":
31      case "BODY":
32        return e.ownerDocument.body;
33      case "#document":
34        return e.body;
35    }
36    var i = t(e),
37      r = i.overflow,
38      p = i.overflowX,
39      s = i.overflowY;
40    return /(auto|scroll|overlay)/.test(r + s + p) ? e : n(o(e));
41  }
42  function i(e) {
43    return e && e.referenceNode ? e.referenceNode : e;
44  }
45  function r(e) {
46    return 11 === e ? re : 10 === e ? pe : re || pe;
47  }
48  function p(e) {
49    if (!e) return document.documentElement;
50    for (
51      var o = r(10) ? document.body : null, n = e.offsetParent || null;
52      n === o && e.nextElementSibling;
53
54    )
55      n = (e = e.nextElementSibling).offsetParent;
56    var i = n && n.nodeName;
57    return i && "BODY" !== i && "HTML" !== i
58      ? -1 !== ["TH", "TD", "TABLE"].indexOf(n.nodeName) &&
59        "static" === t(n, "position")
60        ? p(n)
61        : n
62      : e
63      ? e.ownerDocument.documentElement
64      : document.documentElement;
65  }
66  function s(e) {
67    var t = e.nodeName;
68    return "BODY" !== t && ("HTML" === t || p(e.firstElementChild) === e);
69  }
70  function d(e) {
71    return null === e.parentNode ? e : d(e.parentNode);
72  }
73  function a(e, t) {
74    if (!e || !e.nodeType || !t || !t.nodeType) return document.documentElement;
75    var o = e.compareDocumentPosition(t) & Node.DOCUMENT_POSITION_FOLLOWING,
76      n = o ? e : t,
77      i = o ? t : e,
78      r = document.createRange();
79    r.setStart(n, 0), r.setEnd(i, 0);
80    var l = r.commonAncestorContainer;
81    if ((e !== l && t !== l) || n.contains(i)) return s(l) ? l : p(l);
82    var f = d(e);
83    return f.host ? a(f.host, t) : a(e, d(t).host);
84  }
85  function l(e) {
86    var t =
87        1 < arguments.length && void 0 !== arguments[1] ? arguments[1] : "top",
88      o = "top" === t ? "scrollTop" : "scrollLeft",
89      n = e.nodeName;
90    if ("BODY" === n || "HTML" === n) {
91      var i = e.ownerDocument.documentElement,
92        r = e.ownerDocument.scrollingElement || i;
93      return r[o];
94    }
95    return e[o];
96  }
97  function f(e, t) {
98    var o = 2 < arguments.length && void 0 !== arguments[2] && arguments[2],
99      n = l(t, "top"),
100      i = l(t, "left"),
101      r = o ? -1 : 1;
102    return (
103      (e.top += n * r),
104      (e.bottom += n * r),
105      (e.left += i * r),
106      (e.right += i * r),
107      e
108    );
109  }
110  function m(e, t) {
111    var o = "x" === t ? "Left" : "Top",
112      n = "Left" == o ? "Right" : "Bottom";
113    return (
114      parseFloat(e["border" + o + "Width"]) +
115      parseFloat(e["border" + n + "Width"])
116    );
117  }
118  function h(e, t, o, n) {
119    return ee(
120      t["offset" + e],
121      t["scroll" + e],
122      o["client" + e],
123      o["offset" + e],
124      o["scroll" + e],
125      r(10)
126        ? parseInt(o["offset" + e]) +
127            parseInt(n["margin" + ("Height" === e ? "Top" : "Left")]) +
128            parseInt(n["margin" + ("Height" === e ? "Bottom" : "Right")])
129        : 0
130    );
131  }
132  function c(e) {
133    var t = e.body,
134      o = e.documentElement,
135      n = r(10) && getComputedStyle(o);
136    return { height: h("Height", t, o, n), width: h("Width", t, o, n) };
137  }
138  function g(e) {
139    return le({}, e, { right: e.left + e.width, bottom: e.top + e.height });
140  }
141  function u(e) {
142    var o = {};
143    try {
144      if (r(10)) {
145        o = e.getBoundingClientRect();
146        var n = l(e, "top"),
147          i = l(e, "left");
148        (o.top += n), (o.left += i), (o.bottom += n), (o.right += i);
149      } else o = e.getBoundingClientRect();
150    } catch (t) {}
151    var p = {
152        left: o.left,
153        top: o.top,
154        width: o.right - o.left,
155        height: o.bottom - o.top,
156      },
157      s = "HTML" === e.nodeName ? c(e.ownerDocument) : {},
158      d = s.width || e.clientWidth || p.width,
159      a = s.height || e.clientHeight || p.height,
160      f = e.offsetWidth - d,
161      h = e.offsetHeight - a;
162    if (f || h) {
163      var u = t(e);
164      (f -= m(u, "x")), (h -= m(u, "y")), (p.width -= f), (p.height -= h);
165    }
166    return g(p);
167  }
168  function b(e, o) {
169    var i = 2 < arguments.length && void 0 !== arguments[2] && arguments[2],
170      p = r(10),
171      s = "HTML" === o.nodeName,
172      d = u(e),
173      a = u(o),
174      l = n(e),
175      m = t(o),
176      h = parseFloat(m.borderTopWidth),
177      c = parseFloat(m.borderLeftWidth);
178    i && s && ((a.top = ee(a.top, 0)), (a.left = ee(a.left, 0)));
179    var b = g({
180      top: d.top - a.top - h,
181      left: d.left - a.left - c,
182      width: d.width,
183      height: d.height,
184    });
185    if (((b.marginTop = 0), (b.marginLeft = 0), !p && s)) {
186      var w = parseFloat(m.marginTop),
187        y = parseFloat(m.marginLeft);
188      (b.top -= h - w),
189        (b.bottom -= h - w),
190        (b.left -= c - y),
191        (b.right -= c - y),
192        (b.marginTop = w),
193        (b.marginLeft = y);
194    }
195    return (
196      (p && !i ? o.contains(l) : o === l && "BODY" !== l.nodeName) &&
197        (b = f(b, o)),
198      b
199    );
200  }
201  function w(e) {
202    var t = 1 < arguments.length && void 0 !== arguments[1] && arguments[1],
203      o = e.ownerDocument.documentElement,
204      n = b(e, o),
205      i = ee(o.clientWidth, window.innerWidth || 0),
206      r = ee(o.clientHeight, window.innerHeight || 0),
207      p = t ? 0 : l(o),
208      s = t ? 0 : l(o, "left"),
209      d = {
210        top: p - n.top + n.marginTop,
211        left: s - n.left + n.marginLeft,
212        width: i,
213        height: r,
214      };
215    return g(d);
216  }
217  function y(e) {
218    var n = e.nodeName;
219    if ("BODY" === n || "HTML" === n) return !1;
220    if ("fixed" === t(e, "position")) return !0;
221    var i = o(e);
222    return !!i && y(i);
223  }
224  function E(e) {
225    if (!e || !e.parentElement || r()) return document.documentElement;
226    for (var o = e.parentElement; o && "none" === t(o, "transform"); )
227      o = o.parentElement;
228    return o || document.documentElement;
229  }
230  function v(e, t, r, p) {
231    var s = 4 < arguments.length && void 0 !== arguments[4] && arguments[4],
232      d = { top: 0, left: 0 },
233      l = s ? E(e) : a(e, i(t));
234    if ("viewport" === p) d = w(l, s);
235    else {
236      var f;
237      "scrollParent" === p
238        ? ((f = n(o(t))),
239          "BODY" === f.nodeName && (f = e.ownerDocument.documentElement))
240        : "window" === p
241        ? (f = e.ownerDocument.documentElement)
242        : (f = p);
243      var m = b(f, l, s);
244      if ("HTML" === f.nodeName && !y(l)) {
245        var h = c(e.ownerDocument),
246          g = h.height,
247          u = h.width;
248        (d.top += m.top - m.marginTop),
249          (d.bottom = g + m.top),
250          (d.left += m.left - m.marginLeft),
251          (d.right = u + m.left);
252      } else d = m;
253    }
254    r = r || 0;
255    var v = "number" == typeof r;
256    return (
257      (d.left += v ? r : r.left || 0),
258      (d.top += v ? r : r.top || 0),
259      (d.right -= v ? r : r.right || 0),
260      (d.bottom -= v ? r : r.bottom || 0),
261      d
262    );
263  }
264  function x(e) {
265    var t = e.width,
266      o = e.height;
267    return t * o;
268  }
269  function O(e, t, o, n, i) {
270    var r = 5 < arguments.length && void 0 !== arguments[5] ? arguments[5] : 0;
271    if (-1 === e.indexOf("auto")) return e;
272    var p = v(o, n, r, i),
273      s = {
274        top: { width: p.width, height: t.top - p.top },
275        right: { width: p.right - t.right, height: p.height },
276        bottom: { width: p.width, height: p.bottom - t.bottom },
277        left: { width: t.left - p.left, height: p.height },
278      },
279      d = Object.keys(s)
280        .map(function (e) {
281          return le({ key: e }, s[e], { area: x(s[e]) });
282        })
283        .sort(function (e, t) {
284          return t.area - e.area;
285        }),
286      a = d.filter(function (e) {
287        var t = e.width,
288          n = e.height;
289        return t >= o.clientWidth && n >= o.clientHeight;
290      }),
291      l = 0 < a.length ? a[0].key : d[0].key,
292      f = e.split("-")[1];
293    return l + (f ? "-" + f : "");
294  }
295  function L(e, t, o) {
296    var n =
297        3 < arguments.length && void 0 !== arguments[3] ? arguments[3] : null,
298      r = n ? E(t) : a(t, i(o));
299    return b(o, r, n);
300  }
301  function S(e) {
302    var t = e.ownerDocument.defaultView,
303      o = t.getComputedStyle(e),
304      n = parseFloat(o.marginTop || 0) + parseFloat(o.marginBottom || 0),
305      i = parseFloat(o.marginLeft || 0) + parseFloat(o.marginRight || 0),
306      r = { width: e.offsetWidth + i, height: e.offsetHeight + n };
307    return r;
308  }
309  function T(e) {
310    var t = { left: "right", right: "left", bottom: "top", top: "bottom" };
311    return e.replace(/left|right|bottom|top/g, function (e) {
312      return t[e];
313    });
314  }
315  function C(e, t, o) {
316    o = o.split("-")[0];
317    var n = S(e),
318      i = { width: n.width, height: n.height },
319      r = -1 !== ["right", "left"].indexOf(o),
320      p = r ? "top" : "left",
321      s = r ? "left" : "top",
322      d = r ? "height" : "width",
323      a = r ? "width" : "height";
324    return (
325      (i[p] = t[p] + t[d] / 2 - n[d] / 2),
326      (i[s] = o === s ? t[s] - n[a] : t[T(s)]),
327      i
328    );
329  }
330  function D(e, t) {
331    return Array.prototype.find ? e.find(t) : e.filter(t)[0];
332  }
333  function N(e, t, o) {
334    if (Array.prototype.findIndex)
335      return e.findIndex(function (e) {
336        return e[t] === o;
337      });
338    var n = D(e, function (e) {
339      return e[t] === o;
340    });
341    return e.indexOf(n);
342  }
343  function P(t, o, n) {
344    var i = void 0 === n ? t : t.slice(0, N(t, "name", n));
345    return (
346      i.forEach(function (t) {
347        t["function"] &&
348          console.warn("`modifier.function` is deprecated, use `modifier.fn`!");
349        var n = t["function"] || t.fn;
350        t.enabled &&
351          e(n) &&
352          ((o.offsets.popper = g(o.offsets.popper)),
353          (o.offsets.reference = g(o.offsets.reference)),
354          (o = n(o, t)));
355      }),
356      o
357    );
358  }
359  function k() {
360    if (!this.state.isDestroyed) {
361      var e = {
362        instance: this,
363        styles: {},
364        arrowStyles: {},
365        attributes: {},
366        flipped: !1,
367        offsets: {},
368      };
369      (e.offsets.reference = L(
370        this.state,
371        this.popper,
372        this.reference,
373        this.options.positionFixed
374      )),
375        (e.placement = O(
376          this.options.placement,
377          e.offsets.reference,
378          this.popper,
379          this.reference,
380          this.options.modifiers.flip.boundariesElement,
381          this.options.modifiers.flip.padding
382        )),
383        (e.originalPlacement = e.placement),
384        (e.positionFixed = this.options.positionFixed),
385        (e.offsets.popper = C(this.popper, e.offsets.reference, e.placement)),
386        (e.offsets.popper.position = this.options.positionFixed
387          ? "fixed"
388          : "absolute"),
389        (e = P(this.modifiers, e)),
390        this.state.isCreated
391          ? this.options.onUpdate(e)
392          : ((this.state.isCreated = !0), this.options.onCreate(e));
393    }
394  }
395  function W(e, t) {
396    return e.some(function (e) {
397      var o = e.name,
398        n = e.enabled;
399      return n && o === t;
400    });
401  }
402  function B(e) {
403    for (
404      var t = [!1, "ms", "Webkit", "Moz", "O"],
405        o = e.charAt(0).toUpperCase() + e.slice(1),
406        n = 0;
407      n < t.length;
408      n++
409    ) {
410      var i = t[n],
411        r = i ? "" + i + o : e;
412      if ("undefined" != typeof document.body.style[r]) return r;
413    }
414    return null;
415  }
416  function H() {
417    return (
418      (this.state.isDestroyed = !0),
419      W(this.modifiers, "applyStyle") &&
420        (this.popper.removeAttribute("x-placement"),
421        (this.popper.style.position = ""),
422        (this.popper.style.top = ""),
423        (this.popper.style.left = ""),
424        (this.popper.style.right = ""),
425        (this.popper.style.bottom = ""),
426        (this.popper.style.willChange = ""),
427        (this.popper.style[B("transform")] = "")),
428      this.disableEventListeners(),
429      this.options.removeOnDestroy &&
430        this.popper.parentNode.removeChild(this.popper),
431      this
432    );
433  }
434  function A(e) {
435    var t = e.ownerDocument;
436    return t ? t.defaultView : window;
437  }
438  function M(e, t, o, i) {
439    var r = "BODY" === e.nodeName,
440      p = r ? e.ownerDocument.defaultView : e;
441    p.addEventListener(t, o, { passive: !0 }),
442      r || M(n(p.parentNode), t, o, i),
443      i.push(p);
444  }
445  function F(e, t, o, i) {
446    (o.updateBound = i),
447      A(e).addEventListener("resize", o.updateBound, { passive: !0 });
448    var r = n(e);
449    return (
450      M(r, "scroll", o.updateBound, o.scrollParents),
451      (o.scrollElement = r),
452      (o.eventsEnabled = !0),
453      o
454    );
455  }
456  function I() {
457    this.state.eventsEnabled ||
458      (this.state = F(
459        this.reference,
460        this.options,
461        this.state,
462        this.scheduleUpdate
463      ));
464  }
465  function R(e, t) {
466    return (
467      A(e).removeEventListener("resize", t.updateBound),
468      t.scrollParents.forEach(function (e) {
469        e.removeEventListener("scroll", t.updateBound);
470      }),
471      (t.updateBound = null),
472      (t.scrollParents = []),
473      (t.scrollElement = null),
474      (t.eventsEnabled = !1),
475      t
476    );
477  }
478  function U() {
479    this.state.eventsEnabled &&
480      (cancelAnimationFrame(this.scheduleUpdate),
481      (this.state = R(this.reference, this.state)));
482  }
483  function Y(e) {
484    return "" !== e && !isNaN(parseFloat(e)) && isFinite(e);
485  }
486  function V(e, t) {
487    Object.keys(t).forEach(function (o) {
488      var n = "";
489      -1 !== ["width", "height", "top", "right", "bottom", "left"].indexOf(o) &&
490        Y(t[o]) &&
491        (n = "px"),
492        (e.style[o] = t[o] + n);
493    });
494  }
495  function j(e, t) {
496    Object.keys(t).forEach(function (o) {
497      var n = t[o];
498      !1 === n ? e.removeAttribute(o) : e.setAttribute(o, t[o]);
499    });
500  }
501  function q(e, t) {
502    var o = e.offsets,
503      n = o.popper,
504      i = o.reference,
505      r = $,
506      p = function (e) {
507        return e;
508      },
509      s = r(i.width),
510      d = r(n.width),
511      a = -1 !== ["left", "right"].indexOf(e.placement),
512      l = -1 !== e.placement.indexOf("-"),
513      f = t ? (a || l || s % 2 == d % 2 ? r : Z) : p,
514      m = t ? r : p;
515    return {
516      left: f(1 == s % 2 && 1 == d % 2 && !l && t ? n.left - 1 : n.left),
517      top: m(n.top),
518      bottom: m(n.bottom),
519      right: f(n.right),
520    };
521  }
522  function K(e, t, o) {
523    var n = D(e, function (e) {
524        var o = e.name;
525        return o === t;
526      }),
527      i =
528        !!n &&
529        e.some(function (e) {
530          return e.name === o && e.enabled && e.order < n.order;
531        });
532    if (!i) {
533      var r = "`" + t + "`";
534      console.warn(
535        "`" +
536          o +
537          "`" +
538          " modifier is required by " +
539          r +
540          " modifier in order to work, be sure to include it before " +
541          r +
542          "!"
543      );
544    }
545    return i;
546  }
547  function z(e) {
548    return "end" === e ? "start" : "start" === e ? "end" : e;
549  }
550  function G(e) {
551    var t = 1 < arguments.length && void 0 !== arguments[1] && arguments[1],
552      o = he.indexOf(e),
553      n = he.slice(o + 1).concat(he.slice(0, o));
554    return t ? n.reverse() : n;
555  }
556  function _(e, t, o, n) {
557    var i = e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),
558      r = +i[1],
559      p = i[2];
560    if (!r) return e;
561    if (0 === p.indexOf("%")) {
562      var s;
563      switch (p) {
564        case "%p":
565          s = o;
566          break;
567        case "%":
568        case "%r":
569        default:
570          s = n;
571      }
572      var d = g(s);
573      return (d[t] / 100) * r;
574    }
575    if ("vh" === p || "vw" === p) {
576      var a;
577      return (
578        (a =
579          "vh" === p
580            ? ee(document.documentElement.clientHeight, window.innerHeight || 0)
581            : ee(document.documentElement.clientWidth, window.innerWidth || 0)),
582        (a / 100) * r
583      );
584    }
585    return r;
586  }
587  function X(e, t, o, n) {
588    var i = [0, 0],
589      r = -1 !== ["right", "left"].indexOf(n),
590      p = e.split(/(\+|\-)/).map(function (e) {
591        return e.trim();
592      }),
593      s = p.indexOf(
594        D(p, function (e) {
595          return -1 !== e.search(/,|\s/);
596        })
597      );
598    p[s] &&
599      -1 === p[s].indexOf(",") &&
600      console.warn(
601        "Offsets separated by white space(s) are deprecated, use a comma (,) instead."
602      );
603    var d = /\s*,\s*|\s+/,
604      a =
605        -1 === s
606          ? [p]
607          : [
608              p.slice(0, s).concat([p[s].split(d)[0]]),
609              [p[s].split(d)[1]].concat(p.slice(s + 1)),
610            ];
611    return (
612      (a = a.map(function (e, n) {
613        var i = (1 === n ? !r : r) ? "height" : "width",
614          p = !1;
615        return e
616          .reduce(function (e, t) {
617            return "" === e[e.length - 1] && -1 !== ["+", "-"].indexOf(t)
618              ? ((e[e.length - 1] = t), (p = !0), e)
619              : p
620              ? ((e[e.length - 1] += t), (p = !1), e)
621              : e.concat(t);
622          }, [])
623          .map(function (e) {
624            return _(e, i, t, o);
625          });
626      })),
627      a.forEach(function (e, t) {
628        e.forEach(function (o, n) {
629          Y(o) && (i[t] += o * ("-" === e[n - 1] ? -1 : 1));
630        });
631      }),
632      i
633    );
634  }
635  function J(e, t) {
636    var o,
637      n = t.offset,
638      i = e.placement,
639      r = e.offsets,
640      p = r.popper,
641      s = r.reference,
642      d = i.split("-")[0];
643    return (
644      (o = Y(+n) ? [+n, 0] : X(n, p, s, d)),
645      "left" === d
646        ? ((p.top += o[0]), (p.left -= o[1]))
647        : "right" === d
648        ? ((p.top += o[0]), (p.left += o[1]))
649        : "top" === d
650        ? ((p.left += o[0]), (p.top -= o[1]))
651        : "bottom" === d && ((p.left += o[0]), (p.top += o[1])),
652      (e.popper = p),
653      e
654    );
655  }
656  var Q = Math.min,
657    Z = Math.floor,
658    $ = Math.round,
659    ee = Math.max,
660    te =
661      "undefined" != typeof window &&
662      "undefined" != typeof document &&
663      "undefined" != typeof navigator,
664    oe = (function () {
665      for (var e = ["Edge", "Trident", "Firefox"], t = 0; t < e.length; t += 1)
666        if (te && 0 <= navigator.userAgent.indexOf(e[t])) return 1;
667      return 0;
668    })(),
669    ne = te && window.Promise,
670    ie = ne
671      ? function (e) {
672          var t = !1;
673          return function () {
674            t ||
675              ((t = !0),
676              window.Promise.resolve().then(function () {
677                (t = !1), e();
678              }));
679          };
680        }
681      : function (e) {
682          var t = !1;
683          return function () {
684            t ||
685              ((t = !0),
686              setTimeout(function () {
687                (t = !1), e();
688              }, oe));
689          };
690        },
691    re = te && !!(window.MSInputMethodContext && document.documentMode),
692    pe = te && /MSIE 10/.test(navigator.userAgent),
693    se = function (e, t) {
694      if (!(e instanceof t))
695        throw new TypeError("Cannot call a class as a function");
696    },
697    de = (function () {
698      function e(e, t) {
699        for (var o, n = 0; n < t.length; n++)
700          (o = t[n]),
701            (o.enumerable = o.enumerable || !1),
702            (o.configurable = !0),
703            "value" in o && (o.writable = !0),
704            Object.defineProperty(e, o.key, o);
705      }
706      return function (t, o, n) {
707        return o && e(t.prototype, o), n && e(t, n), t;
708      };
709    })(),
710    ae = function (e, t, o) {
711      return (
712        t in e
713          ? Object.defineProperty(e, t, {
714              value: o,
715              enumerable: !0,
716              configurable: !0,
717              writable: !0,
718            })
719          : (e[t] = o),
720        e
721      );
722    },
723    le =
724      Object.assign ||
725      function (e) {
726        for (var t, o = 1; o < arguments.length; o++)
727          for (var n in ((t = arguments[o]), t))
728            Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n]);
729        return e;
730      },
731    fe = te && /Firefox/i.test(navigator.userAgent),
732    me = [
733      "auto-start",
734      "auto",
735      "auto-end",
736      "top-start",
737      "top",
738      "top-end",
739      "right-start",
740      "right",
741      "right-end",
742      "bottom-end",
743      "bottom",
744      "bottom-start",
745      "left-end",
746      "left",
747      "left-start",
748    ],
749    he = me.slice(3),
750    ce = {
751      FLIP: "flip",
752      CLOCKWISE: "clockwise",
753      COUNTERCLOCKWISE: "counterclockwise",
754    },
755    ge = (function () {
756      function t(o, n) {
757        var i = this,
758          r =
759            2 < arguments.length && void 0 !== arguments[2] ? arguments[2] : {};
760        se(this, t),
761          (this.scheduleUpdate = function () {
762            return requestAnimationFrame(i.update);
763          }),
764          (this.update = ie(this.update.bind(this))),
765          (this.options = le({}, t.Defaults, r)),
766          (this.state = { isDestroyed: !1, isCreated: !1, scrollParents: [] }),
767          (this.reference = o && o.jquery ? o[0] : o),
768          (this.popper = n && n.jquery ? n[0] : n),
769          (this.options.modifiers = {}),
770          Object.keys(le({}, t.Defaults.modifiers, r.modifiers)).forEach(
771            function (e) {
772              i.options.modifiers[e] = le(
773                {},
774                t.Defaults.modifiers[e] || {},
775                r.modifiers ? r.modifiers[e] : {}
776              );
777            }
778          ),
779          (this.modifiers = Object.keys(this.options.modifiers)
780            .map(function (e) {
781              return le({ name: e }, i.options.modifiers[e]);
782            })
783            .sort(function (e, t) {
784              return e.order - t.order;
785            })),
786          this.modifiers.forEach(function (t) {
787            t.enabled &&
788              e(t.onLoad) &&
789              t.onLoad(i.reference, i.popper, i.options, t, i.state);
790          }),
791          this.update();
792        var p = this.options.eventsEnabled;
793        p && this.enableEventListeners(), (this.state.eventsEnabled = p);
794      }
795      return (
796        de(t, [
797          {
798            key: "update",
799            value: function () {
800              return k.call(this);
801            },
802          },
803          {
804            key: "destroy",
805            value: function () {
806              return H.call(this);
807            },
808          },
809          {
810            key: "enableEventListeners",
811            value: function () {
812              return I.call(this);
813            },
814          },
815          {
816            key: "disableEventListeners",
817            value: function () {
818              return U.call(this);
819            },
820          },
821        ]),
822        t
823      );
824    })();
825  return (
826    (ge.Utils = ("undefined" == typeof window ? global : window).PopperUtils),
827    (ge.placements = me),
828    (ge.Defaults = {
829      placement: "bottom",
830      positionFixed: !1,
831      eventsEnabled: !0,
832      removeOnDestroy: !1,
833      onCreate: function () {},
834      onUpdate: function () {},
835      modifiers: {
836        shift: {
837          order: 100,
838          enabled: !0,
839          fn: function (e) {
840            var t = e.placement,
841              o = t.split("-")[0],
842              n = t.split("-")[1];
843            if (n) {
844              var i = e.offsets,
845                r = i.reference,
846                p = i.popper,
847                s = -1 !== ["bottom", "top"].indexOf(o),
848                d = s ? "left" : "top",
849                a = s ? "width" : "height",
850                l = {
851                  start: ae({}, d, r[d]),
852                  end: ae({}, d, r[d] + r[a] - p[a]),
853                };
854              e.offsets.popper = le({}, p, l[n]);
855            }
856            return e;
857          },
858        },
859        offset: { order: 200, enabled: !0, fn: J, offset: 0 },
860        preventOverflow: {
861          order: 300,
862          enabled: !0,
863          fn: function (e, t) {
864            var o = t.boundariesElement || p(e.instance.popper);
865            e.instance.reference === o && (o = p(o));
866            var n = B("transform"),
867              i = e.instance.popper.style,
868              r = i.top,
869              s = i.left,
870              d = i[n];
871            (i.top = ""), (i.left = ""), (i[n] = "");
872            var a = v(
873              e.instance.popper,
874              e.instance.reference,
875              t.padding,
876              o,
877              e.positionFixed
878            );
879            (i.top = r), (i.left = s), (i[n] = d), (t.boundaries = a);
880            var l = t.priority,
881              f = e.offsets.popper,
882              m = {
883                primary: function (e) {
884                  var o = f[e];
885                  return (
886                    f[e] < a[e] &&
887                      !t.escapeWithReference &&
888                      (o = ee(f[e], a[e])),
889                    ae({}, e, o)
890                  );
891                },
892                secondary: function (e) {
893                  var o = "right" === e ? "left" : "top",
894                    n = f[o];
895                  return (
896                    f[e] > a[e] &&
897                      !t.escapeWithReference &&
898                      (n = Q(
899                        f[o],
900                        a[e] - ("right" === e ? f.width : f.height)
901                      )),
902                    ae({}, o, n)
903                  );
904                },
905              };
906            return (
907              l.forEach(function (e) {
908                var t =
909                  -1 === ["left", "top"].indexOf(e) ? "secondary" : "primary";
910                f = le({}, f, m[t](e));
911              }),
912              (e.offsets.popper = f),
913              e
914            );
915          },
916          priority: ["left", "right", "top", "bottom"],
917          padding: 5,
918          boundariesElement: "scrollParent",
919        },
920        keepTogether: {
921          order: 400,
922          enabled: !0,
923          fn: function (e) {
924            var t = e.offsets,
925              o = t.popper,
926              n = t.reference,
927              i = e.placement.split("-")[0],
928              r = Z,
929              p = -1 !== ["top", "bottom"].indexOf(i),
930              s = p ? "right" : "bottom",
931              d = p ? "left" : "top",
932              a = p ? "width" : "height";
933            return (
934              o[s] < r(n[d]) && (e.offsets.popper[d] = r(n[d]) - o[a]),
935              o[d] > r(n[s]) && (e.offsets.popper[d] = r(n[s])),
936              e
937            );
938          },
939        },
940        arrow: {
941          order: 500,
942          enabled: !0,
943          fn: function (e, o) {
944            var n;
945            if (!K(e.instance.modifiers, "arrow", "keepTogether")) return e;
946            var i = o.element;
947            if ("string" == typeof i) {
948              if (((i = e.instance.popper.querySelector(i)), !i)) return e;
949            } else if (!e.instance.popper.contains(i))
950              return (
951                console.warn(
952                  "WARNING: `arrow.element` must be child of its popper element!"
953                ),
954                e
955              );
956            var r = e.placement.split("-")[0],
957              p = e.offsets,
958              s = p.popper,
959              d = p.reference,
960              a = -1 !== ["left", "right"].indexOf(r),
961              l = a ? "height" : "width",
962              f = a ? "Top" : "Left",
963              m = f.toLowerCase(),
964              h = a ? "left" : "top",
965              c = a ? "bottom" : "right",
966              u = S(i)[l];
967            d[c] - u < s[m] && (e.offsets.popper[m] -= s[m] - (d[c] - u)),
968              d[m] + u > s[c] && (e.offsets.popper[m] += d[m] + u - s[c]),
969              (e.offsets.popper = g(e.offsets.popper));
970            var b = d[m] + d[l] / 2 - u / 2,
971              w = t(e.instance.popper),
972              y = parseFloat(w["margin" + f]),
973              E = parseFloat(w["border" + f + "Width"]),
974              v = b - e.offsets.popper[m] - y - E;
975            return (
976              (v = ee(Q(s[l] - u, v), 0)),
977              (e.arrowElement = i),
978              (e.offsets.arrow = ((n = {}), ae(n, m, $(v)), ae(n, h, ""), n)),
979              e
980            );
981          },
982          element: "[x-arrow]",
983        },
984        flip: {
985          order: 600,
986          enabled: !0,
987          fn: function (e, t) {
988            if (W(e.instance.modifiers, "inner")) return e;
989            if (e.flipped && e.placement === e.originalPlacement) return e;
990            var o = v(
991                e.instance.popper,
992                e.instance.reference,
993                t.padding,
994                t.boundariesElement,
995                e.positionFixed
996              ),
997              n = e.placement.split("-")[0],
998              i = T(n),
999              r = e.placement.split("-")[1] || "",
1000              p = [];
1001            switch (t.behavior) {
1002              case ce.FLIP:
1003                p = [n, i];
1004                break;
1005              case ce.CLOCKWISE:
1006                p = G(n);
1007                break;
1008              case ce.COUNTERCLOCKWISE:
1009                p = G(n, !0);
1010                break;
1011              default:
1012                p = t.behavior;
1013            }
1014            return (
1015              p.forEach(function (s, d) {
1016                if (n !== s || p.length === d + 1) return e;
1017                (n = e.placement.split("-")[0]), (i = T(n));
1018                var a = e.offsets.popper,
1019                  l = e.offsets.reference,
1020                  f = Z,
1021                  m =
1022                    ("left" === n && f(a.right) > f(l.left)) ||
1023                    ("right" === n && f(a.left) < f(l.right)) ||
1024                    ("top" === n && f(a.bottom) > f(l.top)) ||
1025                    ("bottom" === n && f(a.top) < f(l.bottom)),
1026                  h = f(a.left) < f(o.left),
1027                  c = f(a.right) > f(o.right),
1028                  g = f(a.top) < f(o.top),
1029                  u = f(a.bottom) > f(o.bottom),
1030                  b =
1031                    ("left" === n && h) ||
1032                    ("right" === n && c) ||
1033                    ("top" === n && g) ||
1034                    ("bottom" === n && u),
1035                  w = -1 !== ["top", "bottom"].indexOf(n),
1036                  y =
1037                    !!t.flipVariations &&
1038                    ((w && "start" === r && h) ||
1039                      (w && "end" === r && c) ||
1040                      (!w && "start" === r && g) ||
1041                      (!w && "end" === r && u)),
1042                  E =
1043                    !!t.flipVariationsByContent &&
1044                    ((w && "start" === r && c) ||
1045                      (w && "end" === r && h) ||
1046                      (!w && "start" === r && u) ||
1047                      (!w && "end" === r && g)),
1048                  v = y || E;
1049                (m || b || v) &&
1050                  ((e.flipped = !0),
1051                  (m || b) && (n = p[d + 1]),
1052                  v && (r = z(r)),
1053                  (e.placement = n + (r ? "-" + r : "")),
1054                  (e.offsets.popper = le(
1055                    {},
1056                    e.offsets.popper,
1057                    C(e.instance.popper, e.offsets.reference, e.placement)
1058                  )),
1059                  (e = P(e.instance.modifiers, e, "flip")));
1060              }),
1061              e
1062            );
1063          },
1064          behavior: "flip",
1065          padding: 5,
1066          boundariesElement: "viewport",
1067          flipVariations: !1,
1068          flipVariationsByContent: !1,
1069        },
1070        inner: {
1071          order: 700,
1072          enabled: !1,
1073          fn: function (e) {
1074            var t = e.placement,
1075              o = t.split("-")[0],
1076              n = e.offsets,
1077              i = n.popper,
1078              r = n.reference,
1079              p = -1 !== ["left", "right"].indexOf(o),
1080              s = -1 === ["top", "left"].indexOf(o);
1081            return (
1082              (i[p ? "left" : "top"] =
1083                r[o] - (s ? i[p ? "width" : "height"] : 0)),
1084              (e.placement = T(t)),
1085              (e.offsets.popper = g(i)),
1086              e
1087            );
1088          },
1089        },
1090        hide: {
1091          order: 800,
1092          enabled: !0,
1093          fn: function (e) {
1094            if (!K(e.instance.modifiers, "hide", "preventOverflow")) return e;
1095            var t = e.offsets.reference,
1096              o = D(e.instance.modifiers, function (e) {
1097                return "preventOverflow" === e.name;
1098              }).boundaries;
1099            if (
1100              t.bottom < o.top ||
1101              t.left > o.right ||
1102              t.top > o.bottom ||
1103              t.right < o.left
1104            ) {
1105              if (!0 === e.hide) return e;
1106              (e.hide = !0), (e.attributes["x-out-of-boundaries"] = "");
1107            } else {
1108              if (!1 === e.hide) return e;
1109              (e.hide = !1), (e.attributes["x-out-of-boundaries"] = !1);
1110            }
1111            return e;
1112          },
1113        },
1114        computeStyle: {
1115          order: 850,
1116          enabled: !0,
1117          fn: function (e, t) {
1118            var o = t.x,
1119              n = t.y,
1120              i = e.offsets.popper,
1121              r = D(e.instance.modifiers, function (e) {
1122                return "applyStyle" === e.name;
1123              }).gpuAcceleration;
1124            void 0 !== r &&
1125              console.warn(
1126                "WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!"
1127              );
1128            var s,
1129              d,
1130              a = void 0 === r ? t.gpuAcceleration : r,
1131              l = p(e.instance.popper),
1132              f = u(l),
1133              m = { position: i.position },
1134              h = q(e, 2 > window.devicePixelRatio || !fe),
1135              c = "bottom" === o ? "top" : "bottom",
1136              g = "right" === n ? "left" : "right",
1137              b = B("transform");
1138            if (
1139              ((d =
1140                "bottom" == c
1141                  ? "HTML" === l.nodeName
1142                    ? -l.clientHeight + h.bottom
1143                    : -f.height + h.bottom
1144                  : h.top),
1145              (s =
1146                "right" == g
1147                  ? "HTML" === l.nodeName
1148                    ? -l.clientWidth + h.right
1149                    : -f.width + h.right
1150                  : h.left),
1151              a && b)
1152            )
1153              (m[b] = "translate3d(" + s + "px, " + d + "px, 0)"),
1154                (m[c] = 0),
1155                (m[g] = 0),
1156                (m.willChange = "transform");
1157            else {
1158              var w = "bottom" == c ? -1 : 1,
1159                y = "right" == g ? -1 : 1;
1160              (m[c] = d * w), (m[g] = s * y), (m.willChange = c + ", " + g);
1161            }
1162            var E = { "x-placement": e.placement };
1163            return (
1164              (e.attributes = le({}, E, e.attributes)),
1165              (e.styles = le({}, m, e.styles)),
1166              (e.arrowStyles = le({}, e.offsets.arrow, e.arrowStyles)),
1167              e
1168            );
1169          },
1170          gpuAcceleration: !0,
1171          x: "bottom",
1172          y: "right",
1173        },
1174        applyStyle: {
1175          order: 900,
1176          enabled: !0,
1177          fn: function (e) {
1178            return (
1179              V(e.instance.popper, e.styles),
1180              j(e.instance.popper, e.attributes),
1181              e.arrowElement &&
1182                Object.keys(e.arrowStyles).length &&
1183                V(e.arrowElement, e.arrowStyles),
1184              e
1185            );
1186          },
1187          onLoad: function (e, t, o, n, i) {
1188            var r = L(i, t, e, o.positionFixed),
1189              p = O(
1190                o.placement,
1191                r,
1192                t,
1193                e,
1194                o.modifiers.flip.boundariesElement,
1195                o.modifiers.flip.padding
1196              );
1197            return (
1198              t.setAttribute("x-placement", p),
1199              V(t, { position: o.positionFixed ? "fixed" : "absolute" }),
1200              o
1201            );
1202          },
1203          gpuAcceleration: void 0,
1204        },
1205      },
1206    }),
1207    ge
1208  );
1209});
1210//# sourceMappingURL=popper.min.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.