PageSourceSearch

https://eihoshop.com/frontend/elegant/js/select2.min.js?v=2303

js eihoshop.com collected 2026-10-02 00:06:37 UTC 238,487 bytes, 4,782 lines download raw bytes

1/*! Select2 4.0.13 | https://github.com/select2/select2/blob/master/LICENSE.md */
2!(function (n) {
3    "function" == typeof define && define.amd
4        ? define(["jquery"], n)
5        : "object" == typeof module && module.exports
6        ? (module.exports = function (e, t) {
7              return (
8                  void 0 === t &&
9                      (t =
10                          "undefined" != typeof window
11                              ? require("jquery")
12                              : require("jquery")(e)),
13                  n(t),
14                  t
15              );
16          })
17        : n(jQuery);
18})(function (u) {
19    var e = (function () {
20            if (u && u.fn && u.fn.select2 && u.fn.select2.amd)
21                var e = u.fn.select2.amd;
22            var t, n, r, h, o, s, f, g, m, v, y, _, i, a, b;
23            function w(e, t) {
24                return i.call(e, t);
25            }
26            function l(e, t) {
27                var n,
28                    r,
29                    i,
30                    o,
31                    s,
32                    a,
33                    l,
34                    c,
35                    u,
36                    d,
37                    p,
38                    h = t && t.split("/"),
39                    f = y.map,
40                    g = (f && f["*"]) || {};
41                if (e) {
42                    for (
43                        s = (e = e.split("/")).length - 1,
44                            y.nodeIdCompat &&
45                                b.test(e[s]) &&
46                                (e[s] = e[s].replace(b, "")),
47                            "." === e[0].charAt(0) &&
48                                h &&
49                                (e = h.slice(0, h.length - 1).concat(e)),
50                            u = 0;
51                        u < e.length;
52                        u++
53                    )
54                        if ("." === (p = e[u])) e.splice(u, 1), --u;
55                        else if (".." === p) {
56                            if (
57                                0 === u ||
58                                (1 === u && ".." === e[2]) ||
59                                ".." === e[u - 1]
60                            )
61                                continue;
62                            0 < u && (e.splice(u - 1, 2), (u -= 2));
63                        }
64                    e = e.join("/");
65                }
66                if ((h || g) && f) {
67                    for (u = (n = e.split("/")).length; 0 < u; --u) {
68                        if (((r = n.slice(0, u).join("/")), h))
69                            for (d = h.length; 0 < d; --d)
70                                if (
71                                    (i =
72                                        (i = f[h.slice(0, d).join("/")]) &&
73                                        i[r])
74                                ) {
75                                    (o = i), (a = u);
76                                    break;
77                                }
78                        if (o) break;
79                        !l && g && g[r] && ((l = g[r]), (c = u));
80                    }
81                    !o && l && ((o = l), (a = c)),
82                        o && (n.splice(0, a, o), (e = n.join("/")));
83                }
84                return e;
85            }
86            function A(t, n) {
87                return function () {
88                    var e = a.call(arguments, 0);
89                    return (
90                        "string" != typeof e[0] &&
91                            1 === e.length &&
92                            e.push(null),
93                        s.apply(h, e.concat([t, n]))
94                    );
95                };
96            }
97            function x(t) {
98                return function (e) {
99                    m[t] = e;
100                };
101            }
102            function D(e) {
103                if (w(v, e)) {
104                    var t = v[e];
105                    delete v[e], (_[e] = !0), o.apply(h, t);
106                }
107                if (!w(m, e) && !w(_, e)) throw new Error("No " + e);
108                return m[e];
109            }
110            function c(e) {
111                var t,
112                    n = e ? e.indexOf("!") : -1;
113                return (
114                    -1 < n &&
115                        ((t = e.substring(0, n)),
116                        (e = e.substring(n + 1, e.length))),
117                    [t, e]
118                );
119            }
120            function S(e) {
121                return e ? c(e) : [];
122            }
123            return (
124                (e && e.requirejs) ||
125                    (e ? (n = e) : (e = {}),
126                    (m = {}),
127                    (v = {}),
128                    (y = {}),
129                    (_ = {}),
130                    (i = Object.prototype.hasOwnProperty),
131                    (a = [].slice),
132                    (b = /\.js$/),
133                    (f = function (e, t) {
134                        var n,
135                            r,
136                            i = c(e),
137                            o = i[0],
138                            s = t[1];
139                        return (
140                            (e = i[1]),
141                            o && (n = D((o = l(o, s)))),
142                            o
143                                ? (e =
144                                      n && n.normalize
145                                          ? n.normalize(
146                                                e,
147                                                ((r = s),
148                                                function (e) {
149                                                    return l(e, r);
150                                                })
151                                            )
152                                          : l(e, s))
153                                : ((o = (i = c((e = l(e, s))))[0]),
154                                  (e = i[1]),
155                                  o && (n = D(o))),
156                            { f: o ? o + "!" + e : e, n: e, pr: o, p: 
156n }
157                        );
158                    }),
159                    (g = {
160                        require: function (e) {
161                            return A(e);
162                        },
163                        exports: function (e) {
164                            var t = m[e];
165                            return void 0 !== t ? t : (m[e] = {});
166                        },
167                        module: function (e) {
168                            return {
169                                id: e,
170                                uri: "",
171                                exports: m[e],
172                                config:
173                                    ((t = e),
174                                    function () {
175                                        return (
176                                            (y && y.config && y.config[t]) || {}
177                                        );
178                                    }),
179                            };
180                            var t;
181                        },
182                    }),
183                    (o = function (e, t, n, r) {
184                        var i,
185                            o,
186                            s,
187                            a,
188                            l,
189                            c,
190                            u,
191                            d = [],
192                            p = typeof n;
193                        if (
194                            ((c = S((r = r || e))),
195                            "undefined" == p || "function" == p)
196                        ) {
197                            for (
198                                t =
199                                    !t.length && n.length
200                                        ? ["require", "exports", "module"]
201                                        : t,
202                                    l = 0;
203                                l < t.length;
204                                l += 1
205                            )
206                                if ("require" === (o = (a = f(t[l], c)).f))
207                                    d[l] = g.require(e);
208                                else if ("exports" === o)
209                                    (d[l] = g.exports(e)), (u = !0);
210                                else if ("module" === o) i = d[l] = g.module(e);
211                                else if (w(m, o) || w(v, o) || w(_, o))
212                                    d[l] = D(o);
213                                else {
214                                    if (!a.p)
215                                        throw new Error(e + " missing " + o);
216                                    a.p.load(a.n, A(r, !0), x(o), {}),
217                                        (d[l] = m[o]);
218                                }
219                            (s = n ? n.apply(m[e], d) : void 0),
220                                e &&
221                                    (i && i.exports !== h && i.exports !== m[e]
222                                        ? (m[e] = i.exports)
223                                        : (s === h && u) || (m[e] = s));
224                        } else e && (m[e] = n);
225                    }),
226                    (t =
227                        n =
228                        s =
229                            function (e, t, n, r, i) {
230                                if ("string" == typeof e)
231                                    return g[e] ? g[e](t) : D(f(e, S(t)).f);
232                                if (!e.splice) {
233                                    if (
234                                        ((y = e).deps && s(y.deps, y.callback),
235                                        !t)
236                                    )
237                                        return;
238                                    t.splice
239                                        ? ((e = t), (t = n), (n = null))
240                                        : (e = h);
241                                }
242                                return (
243                                    (t = t || function () {}),
244                                    "function" == typeof n &&
245                                        ((n = r), (r = i)),
246                                    r
247                                        ? o(h, e, t, n)
248                                        : setTimeout(function () {
249                                              o(h, e, t, n);
250                                          }, 4),
251                                    s
252                                );
253                            }),
254                    (s.config = function (e) {
255                        return s(e);
256                    }),
257                    (t._defined = m),
258                    ((r = function (e, t, n) {
259                        if ("string" != typeof e)
260                            throw new Error(
261                                "See almond README: incorrect module build, no module name"
262                            );
263                        t.splice || ((n = t), (t = [])),
264                            w(m, e) || w(v, e) || (v[e] = [e, t, n]);
265                    }).amd = { jQuery: !0 }),
266                    (e.requirejs = t),
267                    (e.require = n),
268                    (e.define = r)),
269                e.define("almond", function () {}),
270                e.define("jquery", [], function () {
271                    var e = u || $;
272                    return (
273                        null == e &&
274                            console &&
275                            console.error &&
276                            console.error(
277                                "Select2: An instance of jQuery or a jQuery-compatible library was not found. Make sure that you are including jQuery before Select2 on your web page."
278                            ),
279                        e
280                    );
281                }),
282                e.define("select2/utils", ["jquery"], function (o) {
283                    var i = {};
284                    function u(e) {
285                        var t = e.prototype,
286                            n = [];
287                        for (var r in t) {
288                            "function" == typeof t[r] &&
289                                "constructor" !== r &&
290                                n.push(r);
291                        }
292                        return n;
293                    }
294                    (i.Extend = function (e, t) {
295                        var n = {}.hasOwnProperty;
296                        function r() {
297                            this.constructor = e;
298                        }
299                        for (var i in t) n.call(t, i) && (e[i] = t[i]);
300                        return (
301                            (r.prototype = t.prototype),
302                            (e.prototype = new r()),
303                            (e.__super__ = t.prototype),
304                            e
305                        );
306                    }),
307                        (i.Decorate = function (r, i) {
308                            var e = u(i),
309                                t = u(r);
310                            function o() {
311                                var e = Array.prototype.unshift,
312                                    t = i.prototype.constructor.length,
313                                    n = r.prototype.constructor;
314                                0 < t &&
315                                    (e.call(arguments, r.prototype.constructor),
316                                    (n = i.prototype.constructor)),
317                                    n.apply(this, arguments);
318                            }
319                            (i.displayName = r.displayName),
320                                (o.prototype = new (function () {
321                                    this.constructor = o;
322                                })());
323                            for (var n = 0; n < t.length; n++) {
324                                var s = t[n];
325                                o.prototype[s] = r.prototype[s];
326                            }
327                            function a(e) {
328                                var t = function () {};
329                                e in o.prototype && (t = o.prototype[e]);
330                                var n = i.prototype[e];
331                                return function () {
332                                    return (
333                                        Array.prototype.unshift.call(
334                                            arguments,
335                                            t
336                                        ),
337                                        n.apply(this, arguments)
338                                    );
339                                };
340                            }
341                            for (var l = 0; l < e.length; l++) {
342                                var c = e[l];
343                                o.prototype[c] = a(c);
344                            }
345                            return o;
346                        });
347                    function e() {
348                        this.listeners = {};
349                    }
350                    (e.prototype.on = function (e, t) {
351                        (this.listeners = this.listeners || {}),
352                            e in this.listeners
353                                ? this.listeners[e].push(t)
354                                : (this.listeners[e] = [t]);
355                    }),
356                        (e.prototype.trigger = function (e) {
357                            var t = Array.prototype.slice,
358                                n = t.call(arguments, 1);
359                            (this.listeners = this.listeners || {}),
360                                null == n && (n = []),
361                                0 === n.length && n.push({}),
362                                (n[0]._type = e) in this.listeners &&
363                                    this.invoke(
364                                        this.listeners[e],
365                                        t.call(arguments, 1)
366                                    ),
367                                "*" in this.listeners &&
368                                    this.invoke(this.listeners["*"], arguments);
369                        }),
370                        (e.prototype.invoke = function (e, t) {
371                            for (var n = 0, r = e.length; n < r; n++)
372                                e[n].apply(this, t);
373                        }),
374                        (i.Observable = e),
375                        (i.generateChars = function (e) {
376                            for (var t = "", n = 0; n < e; n++) {
377                                t += Math.floor(36 * Math.random()).toString(
378                                    36
379                                );
380                            }
381                            return t;
382                        }),
383                        (i.bind = function (e, t) {
384                            return function () {
385                                e.apply(t, arguments);
386                            };
387                        }),
388                        (i._convertData = function (e) {
389                            for (var t in e) {
390                                var n = t.split("-"),
391                                    r = e;
392                                if (1 !== n.length) {
393                                    for (var i = 0; i < n.length; i++) {
394                                        var o = n[i];
395                                        (o =
396                                            o.substring(0, 1).toLowerCase() +
397                                            o.substring(1)) in r || (r[o] = {}),
398                                            i == n.length - 1 && (r[o] = e[t]),
399                                            (r = r[o]);
400                                    }
401                                    delete e[t];
402                                }
403                            }
404                            return e;
405                        }),
406                        (i.hasScroll = function (e, t) {
407                            var n = o(t),
408                                r = t.style.overflowX,
409                                i = t.style.overflowY;
410                            return (
411                                (r !== i ||
412                                    ("hidden" !== i && "visible" !== i)) &&
413                                ("scroll" === r ||
414                                    "scroll" === i ||
415                                    n.innerHeight() < t.scrollHeight ||
416                                    n.innerWidth() < t.scrollWidth)
417                            );
418                        }),
419                        (i.escapeMarkup = function (e) {
420                            var t = {
421                                "\\": "&#92;",
422                                "&": "&amp;",
423                                "<": "&lt;",
424                                ">": "&gt;",
425                                '"': "&quot;",
426                                "'": "&#39;",
427                                "/": "&#47;",
428                            };
429                            return "string" != typeof e
430                                ? e
431                                : String(e).replace(
432                                      /[&<>"'\/\\]/g,
433                                      function (e) {
434                                          return t[e];
435                                      }
436                                  );
437                        }),
438                        (i.appendMany = function (e, t) {
439                            if ("1.7" === o.fn.jquery.substr(0, 3)) {
440                                var n = o();
441                                o.map(t, function (e) {
442                                    n = n.add(e);
443                                }),
444                                    (t = n);
445                            }
446                            e.append(t);
447                        }),
448                        (i.__cache = {});
449                    var n = 0;
450                    return (
451                        (i.GetUniqueElementId = function (e) {
452                            var t = e.getAttribute("data-select2-id");
453                            return (
454                                null == t &&
455                                    (e.id
456                                        ? ((t = e.id),
457                                          e.setAttribute("data-select2-id", t))
458                                        : (e.setAttribute(
459                                              "data-select2-id",
460                                              ++n
461                                          ),
462                                          (t = n.toString()))),
463                                t
464                            );
465                        }),
466                        (i.StoreData = function (e, t, n) {
467                            var r = i.GetUniqueElementId(e);
468                            i.__cache[r] || (i.__cache[r] = {}),
469                                (i.__cache[r][t] = n);
470                        }),
471                        (i.GetData = function (e, t) {
472                            var n = i.GetUniqueElementId(e);
473                            return t
474                                ? i.__cache[n] && null != i.__cache[n][t]
475                                    ? i.__cache[n][t]
476                                    : o(e).data(t)
477                                : i.__cache[n];
478                        }),
479                        (i.RemoveData = function (e) {
480                            var t = i.GetUniqueElementId(e);
481                            null != i.__cache[t] && delete i.__cache[t],
482                                e.removeAttribute("data-select2-id");
483                        }),
484                        i
485                    );
486                }),
487                e.define(
488                    "select2/results",
489                    ["jquery", "./utils"],
490                    function (h, f) {
491                        function r(e, t, n) {
492                            (this.$element = e),
493                                (this.data = n),
494                                (this.options = t),
495                                r.__super__.constructor.call(this);
496                        }
497                        return (
498                            f.Extend(r, f.Observable),
499                            (r.prototype.render = function () {
500                                var e = h(
501                                    '<ul class="select2-results__options" role="listbox"></ul>'
502                                );
503                                return (
504                                    this.options.get("multiple") &&
505                                        e.attr("aria-multiselectable", "true"),
506                                    (this.$results = e)
507                                );
508                            }),
509                            (r.prototype.clear = function () {
510                                this.$results.empty();
511                            }),
512                            (r.prototype.displayMessage = function (e) {
513                                var t = this.options.get("escapeMarkup");
514                                this.clear(), this.hideLoading();
515                                var n = h(
516                                        '<li role="alert" aria-live="assertive" class="select2-results__option"></li>'
517                                    ),
518                                    r = this.options
519                                        .get("translations")
520                                        .get(e.message);
521                                n.append(t(r(e.args))),
522                                    (n[0].className +=
523                                        " select2-results__message"),
524                                    this.$results.append(n);
525                            }),
526                            (r.prototype.hideMessages = function () {
527                                this.$results
528                                    .find(".select2-results__message")
529                                    .remove();
530                            }),
531                            (r.prototype.append = function (e) {
532                                this.hideLoading();
533                                var t = [];
534                                if (
535                                    null != e.results &&
536                                    0 !== e.results.length
537                                ) {
538                                    e.results = this.sort(e.results);
539                                    for (var n = 0; n < e.results.length; n++) {
540                                        var r = e.results[n],
541                                            i = this.option(r);
542                                        t.push(i);
543                                    }
544                                    this.$results.append(t);
545                                } else
546                                    0 === this.$results.children().length &&
547                                        this.trigger("results:message", {
548                                            message: "noResults",
549                                        });
550                            }),
551                            (r.prototype.position = function (e, t) {
552                                t.find(".select2-results").append(e);
553                            }),
554                            (r.prototype.sort = function (e) {
555                                return this.options.get("sorter")(e);
556                            }),
557                            (r.prototype.highlightFirstItem = function () {
558                                var e = this.$results.find(
559                                        ".select2-results__option[aria-selected]"
560                                    ),
561                                    t = e.filter("[aria-selected=true]");
562                                0 < t.length
563                                    ? t.first().trigger("mouseenter")
564                                    : e.first().trigger("mouseenter"),
565                                    this.ensureHighlightVisible();
566                            }),
567                            (r.prototype.setClasses = function () {
568                                var t = this;
569                                this.data.current(function (e) {
570                                    var r = h.map(e, function (e) {
571                                        return e.id.toString();
572                                    });
573                                    t.$results
574                                        .find(
575                                            ".select2-results__option[aria-selected]"
576                                        )
577                                        .each(function () {
578                                            var e = h(this),
579                                                t = f.GetData(this, "data"),
580                                                n = "" + t.id;
581                                            (null != t.element &&
582                                                t.element.selected) ||
583                                            (null == t.element &&
584                                                -1 < h.inArray(n, r))
585                                                ? e.attr(
586                                                      "aria-selected",
587                                                      "true"
588                                                  )
589                                                : e.attr(
590                                                      "aria-selected",
591                                                      "false"
592                                                  );
593                                        });
594                                });
595                            }),
596                            (r.prototype.showLoading = function (e) {
597                                this.hideLoading();
598                                var t = {
599                                        disabled: !0,
600                                        loading: !0,
601                                        text: this.options
602                                            .get("translations")
603                                            .get("searching")(e),
604                                    },
605                                    n = this.option(t);
606                                (n.className += " loading-results"),
607                                    this.$results.prepend(n);
608                            }),
609                            (r.prototype.hideLoading = function () {
610                                this.$results.find(".loading-results").remove();
611                            }),
612                            (r.prototype.option = function (e) {
613                                var t = document.createElement("li");
614                                t.className = "select2-results__option";
615                                var n = {
616                                        role: "option",
617                                        "aria-selected": "false",
618                                    },
619                                    r =
620                                        window.Element.prototype.matches ||
621                                        window.Element.prototype
622                                            .msMatchesSelector ||
623                                        window.Element.prototype
624                                            .webkitMatchesSelector;
625                                for (var i in (((null != e.element &&
626                                    r.call(e.element, ":disabled")) ||
627                                    (null == e.element && e.disabled)) &&
628                                    (delete n["aria-selected"],
629                                    (n["aria-disabled"] = "true")),
630                                null == e.id && delete n["aria-selected"],
631                                null != e._resultId && (t.id = e._resultId),
632                                e.title && (t.title = e.title),
633                                e.children &&
634                                    ((n.role = "group"),
635                                    (n["aria-label"] = e.text),
636                                    delete n["aria-selected"]),
637                                n)) {
638                                    var o = n[i];
639                                    t.setAttribute(i, o);
640                                }
641                                if (e.children) {
642                                    var s = h(t),
643                                        a = document.createElement("strong");
644                                    a.className = "select2-results__group";
645                                    h(a);
646                                    this.template(e, a);
647                                    for (
648                                        var l = [], c = 0;
649                                        c < e.children.length;
650                                        c++
651                                    ) {
652                                        var u = e.children[c],
653                                            d = this.option(u);
654                                        l.push(d);
655                                    }
656                                    var p = h("<ul></ul>", {
657                                        class: "select2-results__options select2-results__options--nested",
658                                    });
659                                    p.append(l), s.append(a), s.append(p);
660                                } else this.template(e, t);
661                                return f.StoreData(t, "data", e), t;
662                            }),
663                            (r.prototype.bind = function (t, e) {
664                                var l = this,
665                                    n = t.id + "-results";
666                                this.$results.attr("id", n),
667                                    t.on("results:all", function (e) {
668                                        l.clear(),
669                                            l.append(e.data),
670                                            t.isOpen() &&
671                                                (l.setClasses(),
672                                                l.highlightFirstItem());
673                                    }),
674                                    t.on("results:append", function (e) {
675                                        l.append(e.data),
676                                            t.isOpen() && l.setClasses();
677                                    }),
678                                    t.on("query", function (e) {
679                                        l.hideMessages(), l.showLoading(e);
680                                    }),
681                                    t.on("select", function () {
682                                        t.isOpen() &&
683                                            (l.setClasses(),
684                                            l.options.get(
685                                                "scrollAfterSelect"
686                                            ) && l.highlightFirstItem());
687                                    }),
688                                    t.on("unselect", function () {
689                                        t.isOpen() &&
690                                            (l.setClasses(),
691                                            l.options.get(
692                                                "scrollAfterSelect"
693                                            ) && l.highlightFirstItem());
694                                    }),
695                                    t.on("open", function () {
696                                        l.$results.attr(
697                                            "aria-expanded",
698                                            "true"
699                                        ),
700                                            l.$results.attr(
701                                                "aria-hidden",
702                                                "false"
703                                            ),
704                                            l.setClasses(),
705                                            l.ensureHighlightVisible();
706                                    }),
707                                    t.on("close", function () {
708                                        l.$results.attr(
709                                            "aria-expanded",
710                                            "false"
711                                        ),
712                                            l.$results.attr(
713                                                "aria-hidden",
714                                                "true"
715                                            ),
716                                            l.$results.removeAttr(
717                                                "aria-activedescendant"
718                                            );
719                                    }),
720                                    t.on("results:toggle", function () {
721                                        var e = l.getHighlightedResults();
722                                        0 !== e.length && e.trigger("mouseup");
723                                    }),
724                                    t.on("results:select", function () {
725                                        var e = l.getHighlightedResults();
726                                        if (0 !== e.length) {
727                                            var t = f.GetData(e[0], "data");
728                                            "true" == e.attr("aria-selected")
729                                                ? l.trigger("close", {})
730                                                : l.trigger("select", {
731                                                      data: t,
732                                                  });
733                                        }
734                                    }),
735                                    t.on("results:previous", function () {
736                                        var e = l.getHighlightedResults(),
737                                            t =
738                                                l.$results.find(
739                                                    "[aria-selected]"
740                                                ),
741                                            n = t.index(e);
742                                        if (!(n <= 0)) {
743                                            var r = n - 1;
744                                            0 === e.length && (r = 0);
745                                            var i = t.eq(r);
746                                            i.trigger("mouseenter");
747                                            var o = l.$results.offset().top,
748                                                s = i.offset().top,
749                                                a =
750                                                    l.$results.scrollTop() +
751                                                    (s - o);
752                                            0 === r
753                                                ? l.$results.scrollTop(0)
754                                                : s - o < 0 &&
755                                                  l.$results.scrollTop(a);
756                                        }
757                        
757            }),
758                                    t.on("results:next", function () {
759                                        var e = l.getHighlightedResults(),
760                                            t =
761                                                l.$results.find(
762                                                    "[aria-selected]"
763                                                ),
764                                            n = t.index(e) + 1;
765                                        if (!(n >= t.length)) {
766                                            var r = t.eq(n);
767                                            r.trigger("mouseenter");
768                                            var i =
769                                                    l.$results.offset().top +
770                                                    l.$results.outerHeight(!1),
771                                                o =
772                                                    r.offset().top +
773                                                    r.outerHeight(!1),
774                                                s =
775                                                    l.$results.scrollTop() +
776                                                    o -
777                                                    i;
778                                            0 === n
779                                                ? l.$results.scrollTop(0)
780                                                : i < o &&
781                                                  l.$results.scrollTop(s);
782                                        }
783                                    }),
784                                    t.on("results:focus", function (e) {
785                                        e.element.addClass(
786                                            "select2-results__option--highlighted"
787                                        );
788                                    }),
789                                    t.on("results:message", function (e) {
790                                        l.displayMessage(e);
791                                    }),
792                                    h.fn.mousewheel &&
793                                        this.$results.on(
794                                            "mousewheel",
795                                            function (e) {
796                                                var t = l.$results.scrollTop(),
797                                                    n =
798                                                        l.$results.get(0)
799                                                            .scrollHeight -
800                                                        t +
801                                                        e.deltaY,
802                                                    r =
803                                                        0 < e.deltaY &&
804                                                        t - e.deltaY <= 0,
805                                                    i =
806                                                        e.deltaY < 0 &&
807                                                        n <=
808                                                            l.$results.height();
809                                                r
810                                                    ? (l.$results.scrollTop(0),
811                                                      e.preventDefault(),
812                                                      e.stopPropagation())
813                                                    : i &&
814                                                      (l.$results.scrollTop(
815                                                          l.$results.get(0)
816                                                              .scrollHeight -
817                                                              l.$results.height()
818                                                      ),
819                                                      e.preventDefault(),
820                                                      e.stopPropagation());
821                                            }
822                                        ),
823                                    this.$results.on(
824                                        "mouseup",
825                                        ".select2-results__option[aria-selected]",
826                                        function (e) {
827                                            var t = h(this),
828                                                n = f.GetData(this, "data");
829                                            "true" !== t.attr("aria-selected")
830                                                ? l.trigger("select", {
831                                                      originalEvent: e,
832                                                      data: n,
833                                                  })
834                                                : l.options.get("multiple")
835                                                ? l.trigger("unselect", {
836                                                      originalEvent: e,
837                                                      data: n,
838                                                  })
839                                                : l.trigger("close", {});
840                                        }
841                                    ),
842                                    this.$results.on(
843                                        "mouseenter",
844                                        ".select2-results__option[aria-selected]",
845                                        function (e) {
846                                            var t = f.GetData(this, "data");
847                                            l
848                                                .getHighlightedResults()
849                                                .removeClass(
850                                                    "select2-results__option--highlighted"
851                                                ),
852                                                l.trigger("results:focus", {
853                                                    data: t,
854                                                    element: h(this),
855                                                });
856                                        }
857                                    );
858                            }),
859                            (r.prototype.getHighlightedResults = function () {
860                                return this.$results.find(
861                                    ".select2-results__option--highlighted"
862                                );
863                            }),
864                            (r.prototype.destroy = function () {
865                                this.$results.remove();
866                            }),
867                            (r.prototype.ensureHighlightVisible = function () {
868                                var e = this.getHighlightedResults();
869                                if (0 !== e.length) {
870                                    var t = this.$results
871                                            .find("[aria-selected]")
872                                            .index(e),
873                                        n = this.$results.offset().top,
874                                        r = e.offset().top,
875                                        i = this.$results.scrollTop() + (r - n),
876                                        o = r - n;
877                                    (i -= 2 * e.outerHeight(!1)),
878                                        t <= 2
879                                            ? this.$results.scrollTop(0)
880                                            : (o >
881                                                  this.$results.outerHeight() ||
882                                                  o < 0) &&
883                                              this.$results.scrollTop(i);
884                                }
885                            }),
886                            (r.prototype.template = function (e, t) {
887                                var n = this.options.get("templateResult"),
888                                    r = this.options.get("escapeMarkup"),
889                                    i = n(e, t);
890                                null == i
891                                    ? (t.style.display = "none")
892                                    : "string" == typeof i
893                                    ? (t.innerHTML = r(i))
894                                    : h(t).append(i);
895                            }),
896                            r
897                        );
898                    }
899                ),
900                e.define("select2/keys", [], function () {
901                    return {
902                        BACKSPACE: 8,
903                        TAB: 9,
904                        ENTER: 13,
905                        SHIFT: 16,
906                        CTRL: 17,
907                        ALT: 18,
908                        ESC: 27,
909                        SPACE: 32,
910                        PAGE_UP: 33,
911                        PAGE_DOWN: 34,
912                        END: 35,
913                        HOME: 36,
914                        LEFT: 37,
915                        UP: 38,
916                        RIGHT: 39,
917                        DOWN: 40,
918                        DELETE: 46,
919                    };
920                }),
921                e.define(
922                    "select2/selection/base",
923                    ["jquery", "../utils", "../keys"],
924                    function (n, r, i) {
925                        function o(e, t) {
926                            (this.$element = e),
927                                (this.options = t),
928                                o.__super__.constructor.call(this);
929                        }
930                        return (
931                            r.Extend(o, r.Observable),
932                            (o.prototype.render = function () {
933                                var e = n(
934                                    '<span class="select2-selection" role="combobox"  aria-haspopup="true" aria-expanded="false"></span>'
935                                );
936                                return (
937                                    (this._tabindex = 0),
938                                    null !=
939                                    r.GetData(this.$element[0], "old-tabindex")
940                                        ? (this._tabindex = r.GetData(
941                                              this.$element[0],
942                                              "old-tabindex"
943                                          ))
944                                        : null !=
945                                              this.$element.attr("tabindex") &&
946                                          (this._tabindex =
947                                              this.$element.attr("tabindex")),
948                                    e.attr(
949                                        "title",
950                                        this.$element.attr("title")
951                                    ),
952                                    e.attr("tabindex", this._tabindex),
953                                    e.attr("aria-disabled", "false"),
954                                    (this.$selection = e)
955                                );
956                            }),
957                            (o.prototype.bind = function (e, t) {
958                                var n = this,
959                                    r = e.id + "-results";
960                                (this.container = e),
961                                    this.$selection.on("focus", function (e) {
962                                        n.trigger("focus", e);
963                                    }),
964                                    this.$selection.on("blur", function (e) {
965                                        n._handleBlur(e);
966                                    }),
967                                    this.$selection.on("keydown", function (e) {
968                                        n.trigger("keypress", e),
969                                            e.which === i.SPACE &&
970                                                e.preventDefault();
971                                    }),
972                                    e.on("results:focus", function (e) {
973                                        n.$selection.attr(
974                                            "aria-activedescendant",
975                                            e.data._resultId
976                                        );
977                                    }),
978                                    e.on("selection:update", function (e) {
979                                        n.update(e.data);
980                                    }),
981                                    e.on("open", function () {
982                                        n.$selection.attr(
983                                            "aria-expanded",
984                                            "true"
985                                        ),
986                                            n.$selection.attr("aria-owns", r),
987                                            n._attachCloseHandler(e);
988                                    }),
989                                    e.on("close", function () {
990                                        n.$selection.attr(
991                                            "aria-expanded",
992                                            "false"
993                                        ),
994                                            n.$selection.removeAttr(
995                                                "aria-activedescendant"
996                                            ),
997                                            n.$selection.removeAttr(
998                                                "aria-owns"
999                                            ),
1000                                            n.$selection.trigger("focus"),
1001                                            n._detachCloseHandler(e);
1002                                    }),
1003                                    e.on("enable", function () {
1004                                        n.$selection.attr(
1005                                            "tabindex",
1006                                            n._tabindex
1007                                        ),
1008                                            n.$selection.attr(
1009                                                "aria-disabled",
1010                                                "false"
1011                                            );
1012                                    }),
1013                                    e.on("disable", function () {
1014                                        n.$selection.attr("tabindex", "-1"),
1015                                            n.$selection.attr(
1016                                                "aria-disabled",
1017                                                "true"
1018                                            );
1019                                    });
1020                            }),
1021                            (o.prototype._handleBlur = function (e) {
1022                                var t = this;
1023                                window.setTimeout(function () {
1024                                    document.activeElement == t.$selection[0] ||
1025                                        n.contains(
1026                                            t.$selection[0],
1027                                            document.activeElement
1028                                        ) ||
1029                                        t.trigger("blur", e);
1030                                }, 1);
1031                            }),
1032                            (o.prototype._attachCloseHandler = function (e) {
1033                                n(document.body).on(
1034                                    "mousedown.select2." + e.id,
1035                                    function (e) {
1036                                        var t = n(e.target).closest(".select2");
1037                                        n(
1038                                            ".select2.select2-container--open"
1039                                        ).each(function () {
1040                                            this != t[0] &&
1041                                                r
1042                                                    .GetData(this, "element")
1043                                                    .select2("close");
1044                                        });
1045                                    }
1046                                );
1047                            }),
1048                            (o.prototype._detachCloseHandler = function (e) {
1049                                n(document.body).off(
1050                                    "mousedown.select2." + e.id
1051                                );
1052                            }),
1053                            (o.prototype.position = function (e, t) {
1054                                t.find(".selection").append(e);
1055                            }),
1056                            (o.prototype.destroy = function () {
1057                                this._detachCloseHandler(this.container);
1058                            }),
1059                            (o.prototype.update = function (e) {
1060                                throw new Error(
1061                                    "The `update` method must be defined in child classes."
1062                                );
1063                            }),
1064                            (o.prototype.isEnabled = function () {
1065                                return !this.isDisabled();
1066                            }),
1067                            (o.prototype.isDisabled = function () {
1068                                return this.options.get("disabled");
1069                            }),
1070                            o
1071                        );
1072                    }
1073                ),
1074                e.define(
1075                    "select2/selection/single",
1076                    ["jquery", "./base", "../utils", "../keys"],
1077                    function (e, t, n, r) {
1078                        function i() {
1079                            i.__super__.constructor.apply(this, arguments);
1080                        }
1081                        return (
1082                            n.Extend(i, t),
1083                            (i.prototype.render = function () {
1084                                var e = i.__super__.render.call(this);
1085                                return (
1086                                    e.addClass("select2-selection--single"),
1087                                    e.html(
1088                                        '<span class="select2-selection__rendered"></span><span class="select2-selection__arrow" role="presentation"><b role="presentation"></b></span>'
1089                                    ),
1090                                    e
1091                                );
1092                            }),
1093                            (i.prototype.bind = function (t, e) {
1094                                var n = this;
1095                                i.__super__.bind.apply(this, arguments);
1096                                var r = t.id + "-container";
1097                                this.$selection
1098                                    .find(".select2-selection__rendered")
1099                                    .attr("id", r)
1100                                    .attr("role", "textbox")
1101                                    .attr("aria-readonly", "true"),
1102                                    this.$selection.attr("aria-labelledby", r),
1103                                    this.$selection.on(
1104                                        "mousedown",
1105                                        function (e) {
1106                                            1 === e.which &&
1107                                                n.trigger("toggle", {
1108                                                    originalEvent: e,
1109                                                });
1110                                        }
1111                                    ),
1112                                    this.$selection.on(
1113                                        "focus",
1114                                        function (e) {}
1115                                    ),
1116                                    this.$selection.on("blur", function (e) {}),
1117                                    t.on("focus", function (e) {
1118                                        t.isOpen() ||
1119                                            n.$selection.trigger("focus");
1120                                    });
1121                            }),
1122                            (i.prototype.clear = function () {
1123                                var e = this.$selection.find(
1124                                    ".select2-selection__rendered"
1125                                );
1126                                e.empty(), e.removeAttr("title");
1127                            }),
1128                            (i.prototype.display = function (e, t) {
1129                                var n = this.options.get("templateSelection");
1130                                return this.options.get("escapeMarkup")(
1131                                    n(e, t)
1132                                );
1133                            }),
1134                            (i.prototype.selectionContainer = function () {
1135                                return e("<span></span>");
1136                            }),
1137                            (i.prototype.update = function (e) {
1138                                if (0 !== e.length) {
1139                                    var t = e[0],
1140                                        n = this.$selection.find(
1141                                            ".select2-selection__rendered"
1142                                        ),
1143                                        r = this.display(t, n);
1144                                    n.empty().append(r);
1145                                    var i = t.title || t.text;
1146                                    i
1147                                        ? n.attr("title", i)
1148                                        : n.removeAttr("title");
1149                                } else this.clear();
1150                            }),
1151                            i
1152                        );
1153                    }
1154                ),
1155                e.define(
1156                    "select2/selection/multiple",
1157                    ["jquery", "./base", "../utils"],
1158                    function (i, e, l) {
1159                        function n(e, t) {
1160                            n.__super__.constructor.apply(this, arguments);
1161                        }
1162                        return (
1163                            l.Extend(n, e),
1164                            (n.prototype.render = function () {
1165                                var e = n.__super__.render.call(this);
1166                                return (
1167                                    e.addClass("select2-selection--multiple"),
1168                                    e.html(
1169                                        '<ul class="select2-selection__rendered"></ul>'
1170                                    ),
1171                                    e
1172                                );
1173                            }),
1174                            (n.prototype.bind = function (e, t) {
1175                                var r = this;
1176                                n.__super__.bind.apply(this, arguments),
1177                                    this.$selection.on("click", function (e) {
1178                                        r.trigger("toggle", {
1179                                            originalEvent: e,
1180                                        });
1181                                    }),
1182                                    this.$selection.on(
1183                                        "click",
1184                                        ".select2-selection__choice__remove",
1185                                        function (e) {
1186                                            if (!r.isDisabled()) {
1187                                                var t = i(this).parent(),
1188                                                    n = l.GetData(t[0], "data");
1189                                                r.trigger("unselect", {
1190                                                    originalEvent: e,
1191                                                    data: n,
1192                                                });
1193                                            }
1194                                        }
1195                                    );
1196                            }),
1197                            (n.prototype.clear = function () {
1198                                var e = this.$selection.find(
1199                                    ".select2-selection__rendered"
1200                                );
1201                                e.empty(), e.removeAttr("title");
1202                            }),
1203                            (n.prototype.display = function (e, t) {
1204                                var n = this.options.get("templateSelection");
1205                                return this.options.get("escapeMarkup")(
1206                                    n(e, t)
1207                                );
1208                            }),
1209                            (n.prototype.selectionContainer = function () {
1210                                return i(
1211                                    '<li class="select2-selection__choice"><span class="select2-selection__choice__remove" role="presentation">&times;</span></li>'
1212                                );
1213                            }),
1214                            (n.prototype.update = function (e) {
1215                                if ((this.clear(), 0 !== e.length)) {
1216                                    for (var t = [], n = 0; n < e.length; n++) {
1217                                        var r = e[n],
1218                                            i = this.selectionContainer(),
1219                                            o = this.display(r, i);
1220                                        i.append(o);
1221                                        var s = r.title || r.text;
1222                                        s && i.attr("title", s),
1223                                            l.StoreData(i[0], "data", r),
1224                                            t.push(i);
1225                                    }
1226                                    var a = this.$selection.find(
1227                                        ".select2-selection__rendered"
1228                                    );
1229                                    l.appendMany(a, t);
1230                                }
1231                            }),
1232                            n
1233                        );
1234                    }
1235                ),
1236                e.define(
1237                    "select2/selection/placeholder",
1238                    ["../utils"],
1239                    function (e) {
1240                        function t(e, t, n) {
1241                            (this.placeholder = this.normalizePlaceholder(
1242                                n.get("placeholder")
1243                            )),
1244                                e.call(this, t, n);
1245                        }
1246                        return (
1247                            (t.prototype.normalizePlaceholder = function (
1248                                e,
1249                                t
1250                            ) {
1251                                return (
1252                                    "string" == typeof t &&
1253                                        (t = { id: "", text: t }),
1254                                    t
1255                                );
1256                            }),
1257                            (t.prototype.createPlaceholder = function (e, t) {
1258                                var n = this.selectionContainer();
1259                                return (
1260                                    n.html(this.display(t)),
1261                                    n
1262                                        .addClass(
1263                                            "select2-selection__placeholder"
1264                                        )
1265                                        .removeClass(
1266                                            "select2-selection__choice"
1267                                        ),
1268                                    n
1269                                );
1270                            }),
1271                            (t.prototype.update = function (e, t) {
1272        
1272                        var n =
1273                                    1 == t.length &&
1274                                    t[0].id != this.placeholder.id;
1275                                if (1 < t.length || n) return e.call(this, t);
1276                                this.clear();
1277                                var r = this.createPlaceholder(
1278                                    this.placeholder
1279                                );
1280                                this.$selection
1281                                    .find(".select2-selection__rendered")
1282                                    .append(r);
1283                            }),
1284                            t
1285                        );
1286                    }
1287                ),
1288                e.define(
1289                    "select2/selection/allowClear",
1290                    ["jquery", "../keys", "../utils"],
1291                    function (i, r, a) {
1292                        function e() {}
1293                        return (
1294                            (e.prototype.bind = function (e, t, n) {
1295                                var r = this;
1296                                e.call(this, t, n),
1297                                    null == this.placeholder &&
1298                                        this.options.get("debug") &&
1299                                        window.console &&
1300                                        console.error &&
1301                                        console.error(
1302                                            "Select2: The `allowClear` option should be used in combination with the `placeholder` option."
1303                                        ),
1304                                    this.$selection.on(
1305                                        "mousedown",
1306                                        ".select2-selection__clear",
1307                                        function (e) {
1308                                            r._handleClear(e);
1309                                        }
1310                                    ),
1311                                    t.on("keypress", function (e) {
1312                                        r._handleKeyboardClear(e, t);
1313                                    });
1314                            }),
1315                            (e.prototype._handleClear = function (e, t) {
1316                                if (!this.isDisabled()) {
1317                                    var n = this.$selection.find(
1318                                        ".select2-selection__clear"
1319                                    );
1320                                    if (0 !== n.length) {
1321                                        t.stopPropagation();
1322                                        var r = a.GetData(n[0], "data"),
1323                                            i = this.$element.val();
1324                                        this.$element.val(this.placeholder.id);
1325                                        var o = { data: r };
1326                                        if (
1327                                            (this.trigger("clear", o),
1328                                            o.prevented)
1329                                        )
1330                                            this.$element.val(i);
1331                                        else {
1332                                            for (var s = 0; s < r.length; s++)
1333                                                if (
1334                                                    ((o = { data: r[s] }),
1335                                                    this.trigger("unselect", o),
1336                                                    o.prevented)
1337                                                )
1338                                                    return void this.$element.val(
1339                                                        i
1340                                                    );
1341                                            this.$element
1342                                                .trigger("input")
1343                                                .trigger("change"),
1344                                                this.trigger("toggle", {});
1345                                        }
1346                                    }
1347                                }
1348                            }),
1349                            (e.prototype._handleKeyboardClear = function (
1350                                e,
1351                                t,
1352                                n
1353                            ) {
1354                                n.isOpen() ||
1355                                    (t.which != r.DELETE &&
1356                                        t.which != r.BACKSPACE) ||
1357                                    this._handleClear(t);
1358                            }),
1359                            (e.prototype.update = function (e, t) {
1360                                if (
1361                                    (e.call(this, t),
1362                                    !(
1363                                        0 <
1364                                            this.$selection.find(
1365                                                ".select2-selection__placeholder"
1366                                            ).length || 0 === t.length
1367                                    ))
1368                                ) {
1369                                    var n = this.options
1370                                            .get("translations")
1371                                            .get("removeAllItems"),
1372                                        r = i(
1373                                            '<span class="select2-selection__clear" title="' +
1374                                                n() +
1375                                                '">&times;</span>'
1376                                        );
1377                                    a.StoreData(r[0], "data", t),
1378                                        this.$selection
1379                                            .find(
1380                                                ".select2-selection__rendered"
1381                                            )
1382                                            .prepend(r);
1383                                }
1384                            }),
1385                            e
1386                        );
1387                    }
1388                ),
1389                e.define(
1390                    "select2/selection/search",
1391                    ["jquery", "../utils", "../keys"],
1392                    function (r, a, l) {
1393                        function e(e, t, n) {
1394                            e.call(this, t, n);
1395                        }
1396                        return (
1397                            (e.prototype.render = function (e) {
1398                                var t = r(
1399                                    '<li class="select2-search select2-search--inline"><input class="select2-search__field" type="search" tabindex="-1" autocomplete="off" autocorrect="off" autocapitalize="none" spellcheck="false" role="searchbox" aria-autocomplete="list" /></li>'
1400                                );
1401                                (this.$searchContainer = t),
1402                                    (this.$search = t.find("input"));
1403                                var n = e.call(this);
1404                                return this._transferTabIndex(), n;
1405                            }),
1406                            (e.prototype.bind = function (e, t, n) {
1407                                var r = this,
1408                                    i = t.id + "-results";
1409                                e.call(this, t, n),
1410                                    t.on("open", function () {
1411                                        r.$search.attr("aria-controls", i),
1412                                            r.$search.trigger("focus");
1413                                    }),
1414                                    t.on("close", function () {
1415                                        r.$search.val(""),
1416                                            r.$search.removeAttr(
1417                                                "aria-controls"
1418                                            ),
1419                                            r.$search.removeAttr(
1420                                                "aria-activedescendant"
1421                                            ),
1422                                            r.$search.trigger("focus");
1423                                    }),
1424                                    t.on("enable", function () {
1425                                        r.$search.prop("disabled", !1),
1426                                            r._transferTabIndex();
1427                                    }),
1428                                    t.on("disable", function () {
1429                                        r.$search.prop("disabled", !0);
1430                                    }),
1431                                    t.on("focus", function (e) {
1432                                        r.$search.trigger("focus");
1433                                    }),
1434                                    t.on("results:focus", function (e) {
1435                                        e.data._resultId
1436                                            ? r.$search.attr(
1437                                                  "aria-activedescendant",
1438                                                  e.data._resultId
1439                                              )
1440                                            : r.$search.removeAttr(
1441                                                  "aria-activedescendant"
1442                                              );
1443                                    }),
1444                                    this.$selection.on(
1445                                        "focusin",
1446                                        ".select2-search--inline",
1447                                        function (e) {
1448                                            r.trigger("focus", e);
1449                                        }
1450                                    ),
1451                                    this.$selection.on(
1452                                        "focusout",
1453                                        ".select2-search--inline",
1454                                        function (e) {
1455                                            r._handleBlur(e);
1456                                        }
1457                                    ),
1458                                    this.$selection.on(
1459                                        "keydown",
1460                                        ".select2-search--inline",
1461                                        function (e) {
1462                                            if (
1463                                                (e.stopPropagation(),
1464                                                r.trigger("keypress", e),
1465                                                (r._keyUpPrevented =
1466                                                    e.isDefaultPrevented()),
1467                                                e.which === l.BACKSPACE &&
1468                                                    "" === r.$search.val())
1469                                            ) {
1470                                                var t = r.$searchContainer.prev(
1471                                                    ".select2-selection__choice"
1472                                                );
1473                                                if (0 < t.length) {
1474                                                    var n = a.GetData(
1475                                                        t[0],
1476                                                        "data"
1477                                                    );
1478                                                    r.searchRemoveChoice(n),
1479                                                        e.preventDefault();
1480                                                }
1481                                            }
1482                                        }
1483                                    ),
1484                                    this.$selection.on(
1485                                        "click",
1486                                        ".select2-search--inline",
1487                                        function (e) {
1488                                            r.$search.val() &&
1489                                                e.stopPropagation();
1490                                        }
1491                                    );
1492                                var o = document.documentMode,
1493                                    s = o && o <= 11;
1494                                this.$selection.on(
1495                                    "input.searchcheck",
1496                                    ".select2-search--inline",
1497                                    function (e) {
1498                                        s
1499                                            ? r.$selection.off(
1500                                                  "input.search input.searchcheck"
1501                                              )
1502                                            : r.$selection.off("keyup.search");
1503                                    }
1504                                ),
1505                                    this.$selection.on(
1506                                        "keyup.search input.search",
1507                                        ".select2-search--inline",
1508                                        function (e) {
1509                                            if (s && "input" === e.type)
1510                                                r.$selection.off(
1511                                                    "input.search input.searchcheck"
1512                                                );
1513                                            else {
1514                                                var t = e.which;
1515                                                t != l.SHIFT &&
1516                                                    t != l.CTRL &&
1517                                                    t != l.ALT &&
1518                                                    t != l.TAB &&
1519                                                    r.handleSearch(e);
1520                                            }
1521                                        }
1522                                    );
1523                            }),
1524                            (e.prototype._transferTabIndex = function (e) {
1525                                this.$search.attr(
1526                                    "tabindex",
1527                                    this.$selection.attr("tabindex")
1528                                ),
1529                                    this.$selection.attr("tabindex", "-1");
1530                            }),
1531                            (e.prototype.createPlaceholder = function (e, t) {
1532                                this.$search.attr("placeholder", t.text);
1533                            }),
1534                            (e.prototype.update = function (e, t) {
1535                                var n =
1536                                    this.$search[0] == document.activeElement;
1537                                this.$search.attr("placeholder", ""),
1538                                    e.call(this, t),
1539                                    this.$selection
1540                                        .find(".select2-selection__rendered")
1541                                        .append(this.$searchContainer),
1542                                    this.resizeSearch(),
1543                                    n && this.$search.trigger("focus");
1544                            }),
1545                            (e.prototype.handleSearch = function () {
1546                                if (
1547                                    (this.resizeSearch(), !this._keyUpPrevented)
1548                                ) {
1549                                    var e = this.$search.val();
1550                                    this.trigger("query", { term: e });
1551                                }
1552                                this._keyUpPrevented = !1;
1553                            }),
1554                            (e.prototype.searchRemoveChoice = function (e, t) {
1555                                this.trigger("unselect", { data: t }),
1556                                    this.$search.val(t.text),
1557                                    this.handleSearch();
1558                            }),
1559                            (e.prototype.resizeSearch = function () {
1560                                this.$search.css("width", "25px");
1561                                var e = "";
1562                                "" !== this.$search.attr("placeholder")
1563                                    ? (e = this.$selection
1564                                          .find(".select2-selection__rendered")
1565                                          .width())
1566                                    : (e =
1567                                          0.75 *
1568                                              (this.$search.val().length + 1) +
1569                                          "em");
1570                                this.$search.css("width", e);
1571                            }),
1572                            e
1573                        );
1574                    }
1575                ),
1576                e.define(
1577                    "select2/selection/eventRelay",
1578                    ["jquery"],
1579                    function (s) {
1580                        function e() {}
1581                        return (
1582                            (e.prototype.bind = function (e, t, n) {
1583                                var r = this,
1584                                    i = [
1585                                        "open",
1586                                        "opening",
1587                                        "close",
1588                                        "closing",
1589                                        "select",
1590                                        "selecting",
1591                                        "unselect",
1592                                        "unselecting",
1593                                        "clear",
1594                                        "clearing",
1595                                    ],
1596                                    o = [
1597                                        "opening",
1598                                        "closing",
1599                                        "selecting",
1600                                        "unselecting",
1601                                        "clearing",
1602                                    ];
1603                                e.call(this, t, n),
1604                                    t.on("*", function (e, t) {
1605                                        if (-1 !== s.inArray(e, i)) {
1606                                            t = t || {};
1607                                            var n = s.Event("select2:" + e, {
1608                                                params: t,
1609                                            });
1610                                            r.$element.trigger(n),
1611                                                -1 !== s.inArray(e, o) &&
1612                                                    (t.prevented =
1613                                                        n.isDefaultPrevented());
1614                                        }
1615                                    });
1616                            }),
1617                            e
1618                        );
1619                    }
1620                ),
1621                e.define(
1622                    "select2/translation",
1623                    ["jquery", "require"],
1624                    function (t, n) {
1625                        function r(e) {
1626                            this.dict = e || {};
1627                        }
1628                        return (
1629                            (r.prototype.all = function () {
1630                                return this.dict;
1631                            }),
1632                            (r.prototype.get = function (e) {
1633                                return this.dict[e];
1634                            }),
1635                            (r.prototype.extend = function (e) {
1636                                this.dict = t.extend({}, e.all(), this.dict);
1637                            }),
1638                            (r._cache = {}),
1639                            (r.loadPath = function (e) {
1640                                if (!(e in r._cache)) {
1641                                    var t = n(e);
1642                                    r._cache[e] = t;
1643                                }
1644                                return new r(r._cache[e]);
1645                            }),
1646                            r
1647                        );
1648                    }
1649                ),
1650                e.define("select2/diacritics", [], function () {
1651                    return {
1652                        "Ⓐ": "A",
1653                        A: "A",
1654                        À: "A",
1655                        Á: "A",
1656                        Â: "A",
1657                        Ầ: "A",
1658                        Ấ: "A",
1659                        Ẫ: "A",
1660                        Ẩ: "A",
1661                        Ã: "A",
1662                        Ā: "A",
1663                        Ă: "A",
1664                        Ằ: "A",
1665                        Ắ: "A",
1666                        Ẵ: "A",
1667                        Ẳ: "A",
1668                        Ȧ: "A",
1669                        Ç : "A",
1670                        Ä: "A",
1671                        Ǟ: "A",
1672                        Ả: "A",
1673                        Å: "A",
1674                        Ǻ: "A",
1675                        Ǎ: "A",
1676                        Ȁ: "A",
1677                        Ȃ: "A",
1678                        Ạ: "A",
1679                        Ậ: "A",
1680                        Ặ: "A",
1681                        Ḁ: "A",
1682                        Ą: "A",
1683                        Ⱥ: "A",
1684                        Ɐ: "A",
1685                        Ꜳ: "AA",
1686                        Æ: "AE",
1687                        Ǽ: "AE",
1688                        Ǣ: "AE",
1689                        Ꜵ: "AO",
1690                        Ꜷ: "AU",
1691                        Ꜹ: "AV",
1692                        Ꜻ: "AV",
1693                        Ꜽ: "AY",
1694                        "Ⓑ": "B",
1695                        ï¼¢: "B",
1696                        Ḃ: "B",
1697                        Ḅ: "B",
1698                        Ḇ: "B",
1699                        Ƀ: "B",
1700                        Ƃ: "B",
1701                        Ɓ: "B",
1702                        "Ⓒ": "C",
1703                        ï¼£: "C",
1704                        Ć: "C",
1705                        Ĉ: "C",
1706                        Ċ: "C",
1707                        Č: "C",
1708                        Ç: "C",
1709                        Ḉ: "C",
1710                        Ƈ: "C",
1711                        È»: "C",
1712                        Ꜿ: "C",
1713                        "Ⓓ": "D",
1714                        D: "D",
1715                        Ḋ: "D",
1716                        Ď: "D",
1717                        Ḍ: "D",
1718                        Ḑ: "D",
1719                        Ḓ: "D",
1720                        Ḏ: "D",
1721                        Đ: "D",
1722                        Ƌ: "D",
1723                        Ɗ: "D",
1724                        Ɖ: "D",
1725                        Ꝺ: "D",
1726                        DZ: "DZ",
1727                        DŽ: "DZ",
1728                        Dz: "Dz",
1729                        Dž: "Dz",
1730                        "Ⓔ": "E",
1731                        ï¼¥: "E",
1732                        È: "E",
1733                        É: "E",
1734                        Ê: "E",
1735                        Ề: "E",
1736                        Ế: "E",
1737                        Ễ: "E",
1738                        Ể: "E",
1739                        Ẽ: "E",
1740                        Ē: "E",
1741                        Ḕ: "E",
1742                        Ḗ: "E",
1743                        Ĕ: "E",
1744                        Ė: "E",
1745                        Ë: "E",
1746                        Ẻ: "E",
1747                        Ě: "E",
1748                        Ȅ: "E",
1749                        Ȇ: "E",
1750                        Ẹ: "E",
1751                        Ệ: "E",
1752                        Ȩ: "E",
1753                        Ḝ: "E",
1754                        Ę: "E",
1755                        Ḙ: "E",
1756                        Ḛ: "E",
1757                        Ɛ: "E",
1758                        Ǝ: "E",
1759                        "Ⓕ": "F",
1760                        F: "F",
1761                        Ḟ: "F",
1762                        Ƒ: "F",
1763                        Ꝼ: "F",
1764                        "Ⓖ": "G",
1765                        ï¼§: "G",
1766                        Ç´: "G",
1767                        Ĝ: "G",
1768                        Ḡ: "G",
1769                        Ğ: "G",
1770                        Ä : "G",
1771                        Ǧ: "G",
1772                        Ģ: "G",
1773                        Ǥ: "G",
1774                        Ɠ: "G",
1775                        Ꞡ: "G",
1776                        Ᵹ: "G",
1777                        Ꝿ: "G",
1778                        "Ⓗ": "H",
1779                        H: "H",
1780                        Ĥ: "H",
1781                        Ḣ: "H",
1782                        Ḧ: "H",
1783                        Ȟ: "H",
1784                        Ḥ: "H",
1785                        Ḩ: "H",
1786                        Ḫ: "H",
1787                        Ħ: "H",
1788                        â±§: "H",
1789                        â±µ: "H",
1790                        Ɥ: "H",
1791                        "Ⓘ": "I",
1792                        I: "I",
1793                        Ì: "I",
1794                        Í: "I",
1795                        Î: "I",
1796                        Ĩ: "I",
1797                        Ī: "I",
1798                        Ĭ: "I",
1799                        İ: "I",
1800                        Ï: "I",
1801                        Ḯ: "I",
1802                        Ỉ: "I",
1803                        Ǐ: "I",
1804                        Ȉ: "I",
1805                        Ȋ: "I",
1806                        Ị: "I",
1807                        Ä®: "I",
1808                        Ḭ: "I",
1809                        Ɨ: "I",
1810                        "Ⓙ": "J",
1811                        J: "J",
1812                        Ä´: "J",
1813                        Ɉ: "J",
1814                        "Ⓚ": "K",
1815                        K: "K",
1816                        Ḱ: "K",
1817                        Ǩ: "K",
1818                        Ḳ: "K",
1819                        Ķ: "K",
1820                        Ḵ: "K",
1821                        Ƙ: "K",
1822                        Ⱪ: "K",
1823                        Ꝁ: "K",
1824                        Ꝃ: "K",
1825                        Ꝅ: "K",
1826                        Ꞣ: "K",
1827                        "Ⓛ": "L",
1828                        L: "L",
1829                        Ä¿: "L",
1830                        Ĺ: "L",
1831                        Ľ: "L",
1832                        Ḷ: "L",
1833                        Ḹ: "L",
1834                        Ä»: "L",
1835                        Ḽ: "L",
1836                        Ḻ: "L",
1837                        Ł: "L",
1838                        Ƚ: "L",
1839                        â±¢: "L",
1840                        â± : "L",
1841                        Ꝉ: "L",
1842                        Ꝇ: "L",
1843                        Ꞁ: "L",
1844                        LJ: "LJ",
1845                        Lj: "Lj",
1846                        "Ⓜ": "M",
1847                        ï¼­: "M",
1848                        Ḿ: "M",
1849                        Ṁ: "M",
1850                        Ṃ: "M",
1851                        â±®: "M",
1852                        Ɯ: "M",
1853                        "Ⓝ": "N",
1854                        ï¼®: "N",
1855                        Ǹ: "N",
1856                        Ń: "N",
1857                        Ñ: "N",
1858                        Ṅ: "N",
1859                        Ň: "N",
1860                        Ṇ: "N",
1861                        Ņ: "N",
1862                        Ṋ: "N",
1863                        Ṉ: "N",
1864                        È : "N",
1865                        Ɲ: "N",
1866                        Ꞑ: "N",
1867                        Ꞥ: "N",
1868                        NJ: "NJ",
1869                        Nj: "Nj",
1870                        "Ⓞ": "O",
1871                        O: "O",
1872                        Ò: "O",
1873                        Ó: "O",
1874                        Ô: "O",
1875                        Ồ: "O",
1876                        Ố: "O",
1877                        Ỗ: "O",
1878                        Ổ: "O",
1879                        Õ: "O",
1880                        Ṍ: "O",
1881                        Ȭ: "O",
1882                        Ṏ: "O",
1883                        Ō: "O",
1884                        Ṑ: "O",
1885                        Ṓ: "O",
1886                        Ŏ: "O",
1887                        È®: "O",
1888                        Ȱ: "O",
1889                        Ö: "O",
1890                        Ȫ: "O",
1891                        Ỏ: "O",
1892                        Ő: "O",
1893                        Ǒ: "O",
1894                        Ȍ: "O",
1895                        Ȏ: "O",
1896                        Æ : "O",
1897                        Ờ: "O",
1898                        Ớ: "O",
1899                        á» : "O",
1900                        Ở: "O",
1901                        Ợ: "O",
1902                        Ọ: "O",
1903                        Ộ: "O",
1904                        Ǫ: "O",
1905                        Ǭ: "O",
1906                        Ø: "O",
1907                        Ǿ: "O",
1908                        Ɔ: "O",
1909                        Ɵ: "O",
1910                        Ꝋ: "O",
1911                        Ꝍ: "O",
1912                        Œ: "OE",
1913                        Ƣ: "OI",
1914                        Ꝏ: "OO",
1915                        Ȣ: "OU",
1916                        "Ⓟ": "P",
1917                        ï¼°: "P",
1918                        Ṕ: "P",
1919                        Ṗ: "P",
1920                        Ƥ: "P",
1921                        â±£: "P",
1922                        Ꝑ: "P",
1923                        Ꝓ: "P",
1924                        Ꝕ: "P",
1925                        "Ⓠ": "Q",
1926                        ï¼±: "Q",
1927                        Ꝗ: "Q",
1928                        Ꝙ: "Q",
1929                        Ɋ: "Q",
1930                        "Ⓡ": "R",
1931                        ï¼²: "R",
1932                        Ŕ: "R",
1933                        Ṙ: "R",
1934                        Ř: "R",
1935                        Ȑ: "R",
1936                        Ȓ: "R",
1937                        Ṛ: "R",
1938                        Ṝ: "R",
1939                        Ŗ: "R",
1940                        Ṟ: "R",
1941                        Ɍ: "R",
1942                        Ɽ: "R",
1943                        Ꝛ: "R",
1944                        Ꞧ: "R",
1945                        Ꞃ: "R",
1946                        "Ⓢ": "S",
1947                        ï¼³: "S",
1948                        ẞ: "S",
1949                        Ś: "S",
1950                        Ṥ: "S",
1951                        Ŝ: "S",
1952                        á¹ : "S",
1953                        Å : "S",
1954                        Ṧ: "S",
1955                        á¹¢: "S",
1956                        Ṩ: "S",
1957                        Ș: "S",
1958                        Ş: "S",
1959                        â±¾: "S",
1960                        Ꞩ: "S",
1961                        Ꞅ: "S",
1962                        "Ⓣ": "T",
1963                        ï¼´: "T",
1964                        Ṫ: "T",
1965                        Ť: "T",
1966                        Ṭ: "T",
1967                        Ț: "T",
1968                        Ţ: "T",
1969                        á¹°: "T",
1970                        á¹®: "T",
1971                        Ŧ: "T",
1972                        Ƭ: "T",
1973                        Æ®: "T",
1974                        Ⱦ: "T",
1975                        Ꞇ: "T",
1976                        Ꜩ: "TZ",
1977                        "Ⓤ": "U",
1978                        ï¼µ: "U",
1979                        Ù: "U",
1980                        Ú: "U",
1981                        Û: "U",
1982                        Ũ: "U",
1983                        Ṹ: "U",
1984                        Ū: "U",
1985                        Ṻ: "U",
1986                        Ŭ: "U",
1987                        Ü: "U",
1988                        Ǜ: "U",
1989                        Ǘ: "U",
1990                        Ǖ: "U",
1991                        Ǚ: "U",
1992                        Ủ: "U",
1993                        Å®: "U",
1994                        Ű: "U",
1995                        Ǔ: "U",
1996                        Ȕ: "U",
1997                        Ȗ: "U",
1998                        Ư: "U",
1999                        Ừ: "U",
2000                        Ứ: "U",
2001                        á»®: "U",
2002                        Ử: "U",
2003                        á»°: "U",
2004                        Ụ: "U",
2005                        á¹²: "U",
2006                        Ų: "U",
2007                        á¹¶: "U",
2008                        á¹´: "U",
2009                        Ʉ: "U",
2010                        "Ⓥ": "V",
2011                        ï¼¶: "V",
2012                        á¹¼: "V",
2013                        á¹¾: "V",
2014                        Ʋ: "V",
2015                        Ꝟ: "V",
2016                        Ʌ: "V",
2017                        Ꝡ: "VY",
2018                        "Ⓦ": "W",
2019                        ï¼·: "W",
2020                        Ẁ: "W",
2021                        Ẃ: "W",
2022                        Å´: "W",
2023                        Ẇ: "W",
2024                        Ẅ: "W",
2025                        Ẉ: "W",
2026                        â±²: "W",
2027                        "Ⓧ": "X",
2028                        X: "X",
2029                        Ẋ: "X",
2030                        Ẍ: "X",
2031                        "Ⓨ": "Y",
2032                        ï¼¹: "Y",
2033                        Ỳ: "Y",
2034                        Ý: "Y",
2035                        Ŷ: "Y",
2036                        Ỹ: "Y",
2037                        Ȳ: "Y",
2038                        Ẏ: "Y",
2039                        Ÿ: "Y",
2040                        á»¶: "Y",
2041                        á»´: "Y",
2042                        Ƴ: "Y",
2043                        Ɏ: "Y",
2044                        Ỿ: "Y",
2045                        "Ⓩ": "Z",
2046                        Z: "Z",
2047                        Ź: "Z",
2048                        Ẑ: "Z",
2049                        Å»: "Z",
2050                        Ž: "Z",
2051                        Ẓ: "Z",
2052                        Ẕ: "Z",
2053                        Ƶ: "Z",
2054                        Ȥ: "Z",
2055                        Ɀ: "Z",
2056                        Ⱬ: "Z",
2057                        Ꝣ: "Z",
2058                        "ⓐ": "a",
2059                        a: "a",
2060                        ẚ: "a",
2061                        à: "a",
2062                        á: "a",
2063                        â: "a",
2064                        ầ: "a",
2065                        ấ: "a",
2066                        ẫ: "a",
2067                        ẩ: "a",
2068                        ã: "a",
2069                        ā: "a",
2070                        ă: "a",
2071                        ằ: "a",
2072                        ắ: "a",
2073                        ẵ: "a",
2074                        ẳ: "a",
2075                        ȧ: "a",
2076                        Ç¡: "a",
2077                        ä: "a",
2078                        ǟ: "a",
2079                        ả: "a",
2080                        å: "a",
2081                        Ç»: "a",
2082                        ǎ: "a",
2083                        ȁ: "a",
2084                        ȃ: "a",
2085                        ạ: "a",
2086                        ậ: "a",
2087                        ặ: "a",
2088                        ḁ: "a",
2089                        ą: "a",
2090                        â±¥: "a",
2091                        ɐ: "a",
2092                        ꜳ: "aa",
2093                        æ: "ae",
2094                        ǽ: "ae",
2095                        ǣ: "ae",
2096                        ꜵ: "ao",
2097                        ꜷ: "au",
2098                        ꜹ: "av",
2099                        ꜻ: "av",
2100                        ꜽ: "ay",
2101                        "ⓑ": "b",
2102                        b: "b",
2103                        ḃ: "b",
2104                        ḅ: "b",
2105                        ḇ: "b",
2106                        ƀ: "b",
2107                        ƃ: "b",
2108                        ɓ: "b",
2109                        "ⓒ": "c",
2110                        c: "c",
2111                        ć: "c",
2112                        ĉ: "c",
2113                        ċ: "c",
2114                        č: "c",
2115                        ç: "c",
2116                        ḉ: "c",
2117                        ƈ: "c",
2118                        ȼ: "c",
2119                        ꜿ: "c",
2120                        ↄ: "c",
2121                        "ⓓ": "d",
2122                        d: "d",
2123                        ḋ: "d",
2124                        ď: "d",
2125                        ḍ: "d",
2126                        ḑ: "d",
2127                        ḓ: "d",
2128                        ḏ: "d",
2129                        đ: "d",
2130                        ƌ: "d",
2131                        ɖ: "d",
2132                        ɗ: "d",
2133                        ꝺ: "d",
2134                        dz: "dz",
2135                        dž: "dz",
2136                        "ⓔ": "e",
2137                        e: "e",
2138                        è: "e",
2139                        é: "e",
2140                        ê: "e",
2141                        ề: "e",
2142                        ế: "e",
2143                        ễ: "e",
2144                        ể: "e",
2145                        ẽ: "e",
2146                        ē: "e",
2147                        ḕ: "e",
2148                        ḗ: "e",
2149                        ĕ: "e",
2150                        ė: "e",
2151                        ë: "e",
2152                        ẻ: "e",
2153                        ě: "e",
2154                        ȅ: "e",
2155                        ȇ: "e",
2156                        ẹ: "e",
2157                        ệ: "e",
2158                        È©: "e",
2159                        ḝ: "e",
2160                        ę: "e",
2161                        ḙ: "e",
2162                        ḛ: "e",
2163                        ɇ: "e",
2164                        ɛ: "e",
2165                        ǝ: "e",
2166                        "ⓕ": "f",
2167                        f: "f",
2168                        ḟ: "f",
2169                        ƒ: "f",
2170                        ꝼ: "f",
2171                        "ⓖ": "g",
2172                        g: "g",
2173                        ǵ: "g",
2174                        ĝ: "g",
2175                        ḡ: "g",
2176                        ğ: "g",
2177                        Ä¡: "g",
2178                        ǧ: "g",
2179                        ģ: "g",
2180                        ǥ: "g",
2181                        É : "g",
2182                        ꞡ: "g",
2183                        áµ¹: "g",
2184                        ꝿ: "g",
2185                        "ⓗ": "h",
2186                        h: "h",
2187                        ĥ: "h",
2188                        ḣ: "h",
2189                        ḧ: "h",
2190                        ȟ: "h",
2191                        ḥ: "h",
2192                        ḩ: "h",
2193                        ḫ: "h",
2194                        ẖ: "h",
2195                        ħ: "h",
2196                        ⱨ: "h",
2197                        â±¶: "h",
2198                        ɥ: "h",
2199                        ƕ: "hv",
2200                        "ⓘ": "i",
2201                        i: "i",
2202                        ì: "i",
2203                        í: "i",
2204                        î: "i",
2205                        Ä©: "i",
2206                        Ä«: "i",
2207                        Ä­: "i",
2208                        ï: "i",
2209                        ḯ: "i",
2210                        ỉ: "i",
2211                        ǐ: "i",
2212                        ȉ: "i",
2213                        ȋ: "i",
2214                        ị: "i",
2215                        į: "i",
2216                        ḭ: "i",
2217                        ɨ: "i",
2218                        ı: "i",
2219                        "ⓙ": "j",
2220                        j: "j",
2221                        ĵ: "j",
2222                        ǰ: "j",
2223                        ɉ: "j",
2224                        "ⓚ": "k",
2225                        k: "k",
2226                        ḱ: "k",
2227                        Ç©: "k",
2228                        ḳ: "k",
2229                        Ä·: "k",
2230                        ḵ: "k",
2231                        ƙ: "k",
2232                        ⱪ: "k",
2233                        ꝁ: "k",
2234                        ꝃ: "k",
2235                        ꝅ: "k",
2236                        ꞣ: "k",
2237                        "ⓛ": "l",
2238                        l: "l",
2239                        ŀ: "l",
2240                        ĺ: "l",
2241                        ľ: "l",
2242                        ḷ: "l",
2243                        ḹ: "l",
2244                        ļ: "l",
2245                        ḽ: "l",
2246                        ḻ: "l",
2247                        Å¿: "l",
2248                        ł: "l",
2249                        ƚ: "l",
2250                        É«: "l",
2251                        ⱡ: "l",
2252                        ꝉ: "l",
2253                        ꞁ: "l",
2254                        ꝇ: "l",
2255                        lj: "lj",
2256                        "ⓜ": "m",
2257                        m: "m",
2258                        ḿ: "m",
2259                        ṁ: "m",
2260                        ṃ: "m",
2261                        ɱ: "m",
2262                        ɯ: "m",
2263                        "ⓝ": "n",
2264                        n: "n",
2265                        ǹ: "n",
2266                        ń: "n",
2267                        ñ: "n",
2268                        ṅ: "n",
2269                        ň: "n",
2270                        ṇ: "n",
2271                        ņ: "n",
2272                        ṋ: "n",
2273                        ṉ: "n",
2274                        ƞ: "n",
2275                        ɲ: "n",
2276                        ʼn: "n",
2277                        ꞑ: "n",
2278                        ꞥ: "n",
2279                        nj: "nj",
2280                        "ⓞ": "o",
2281                        o: "o",
2282                        ò: "o",
2283                        ó: "o",
2284                        ô: "o",
2285                        ồ: "o",
2286                        ố: "o",
2287                        ỗ: "o",
2288                        ổ: "o",
2289                        õ: "o",
2290                        ṍ: "o",
2291                        È­: "o",
2292                        ṏ: "o",
2293                        ō: "o",
2294                        ṑ: "o",
2295                        ṓ: "o",
2296                        ŏ: "o",
2297                        ȯ: "o",
2298                        ȱ: "o",
2299                        ö: "o",
2300                        È«: "o",
2301                        ỏ: "o",
2302                        ő: "o",
2303                        ǒ: "o",
2304                        ȍ: "o",
2305                        ȏ: "o",
2306                        Æ¡: "o",
2307                        ờ: "o",
2308                        ớ: "o",
2309                        ỡ: "o",
2310                        ở: "o",
2311                        ợ: "o",
2312                        ọ: "o",
2313                        ộ: "o",
2314                        Ç«: "o",
2315                        Ç­: "o",
2316                        ø: "o",
2317                        Ç¿: "o",
2318                        ɔ: "o",
2319                        ꝋ: "o",
2320                        ꝍ: "o",
2321                        ɵ: "o",
2322                        œ: "oe",
2323                        ƣ: "oi",
2324                        ȣ: "ou",
2325                        ꝏ: "oo",
2326                        "ⓟ": "p",
2327                        p: "p",
2328                        ṕ: "p",
2329                        ṗ: "p",
2330                        ƥ: "p",
2331                        áµ½: "p",
2332                        ꝑ: "p",
2333                        ꝓ: "p",
2334                        ꝕ: "p",
2335                        "ⓠ": "q",
2336                        q: "q",
2337                        ɋ: "q",
2338                        ꝗ: "q",
2339                        ꝙ: "q",
2340                        "ⓡ": "r",
2341                        r: "r",
2342                        ŕ: "r",
2343                        ṙ: "r",
2344                        ř: "r",
2345                        ȑ: "r",
2346                        ȓ: "r",
2347                        ṛ: "r",
2348                        ṝ: "r",
2349                        ŗ: "r",
2350                        ṟ: "r",
2351                        ɍ: "r",
2352                        ɽ: "r",
2353                        ꝛ: "r",
2354                        ꞧ: "r",
2355                        ꞃ: "r",
2356                        "ⓢ": "s",
2357                        s: "s",
2358                        ß: "s",
2359                        ś: "s",
2360                        á¹¥: "s",
2361                        ŝ: "s",
2362                        ṡ: "s",
2363                        Å¡: "s",
2364                        á¹§: "s",
2365                        á¹£: "s",
2366                        ṩ: "s",
2367                        ș: "s",
2368                        ş: "s",
2369                        È¿: "s",
2370                        ꞩ: "s",
2371                        ꞅ: "s",
2372                        ẛ: "s",
2373                        "ⓣ": "t",
2374                        t: "t",
2375                        ṫ: "t",
2376                        ẗ: "t",
2377                        ť: "t",
2378                        á¹­: "t",
2379                        ț: "t",
2380                        ţ: "t",
2381                        á¹±: "t",
2382                        ṯ: "t",
2383                        ŧ: "t",
2384                        Æ­: "t",
2385                        ʈ: "t",
2386                        ⱦ: "t",
2387                        ꞇ: "t",
2388                        ꜩ: "tz",
2389                        "ⓤ": "u",
2390                        u: "u",
2391                        ù: "u",
2392                        ú: "u",
2393                        û: "u",
2394                        Å©: "u",
2395                        á¹¹: "u",
2396                        Å«: "u",
2397                        á¹»: "u",
2398                        Å­: "u",
2399                        ü: "u",
2400                        ǜ: "u",
2401                        ǘ: "u",
2402                        ǖ: "u",
2403                        ǚ: "u",
2404                        á»§: "u",
2405                        ů: "u",
2406                        ű: "u",
2407                        ǔ: "u",
2408                        ȕ: "u",
2409                        ȗ: "u",
2410                        ư: "u",
2411                        ừ: "u",
2412                        ứ: "u",
2413                        ữ: "u",
2414                        á»­: "u",
2415                        á»±: "u",
2416                        ụ: "u",
2417                        á¹³: "u",
2418                        ų: "u",
2419                        á¹·: "u",
2420                        á¹µ: "u",
2421                        ʉ: "u",
2422                        "ⓥ": "v",
2423                        v: "v",
2424                        á¹½: "v",
2425                        ṿ: "v",
2426                        ʋ: "v",
2427                        ꝟ: "v",
2428                        ʌ: "v",
2429                        ꝡ: "vy",
2430                        "ⓦ": "w",
2431                        w: "w",
2432                        ẁ: "w",
2433                        ẃ: "w",
2434                        ŵ: "w",
2435                        ẇ: "w",
2436                        ẅ: "w",
2437                        ẘ: "w",
2438                        ẉ: "w",
2439                        â±³: "w",
2440                        "ⓧ": "x",
2441                        x: "x",
2442                        ẋ: "x",
2443                        ẍ: "x",
2444                        "ⓨ": "y",
2445                        y: "y",
2446                        ỳ: "y",
2447                        ý: "y",
2448                        Å·: "y",
2449                        ỹ: "y",
2450                        ȳ: "y",
2451                        ẏ: "y",
2452                        ÿ: "y",
2453                        á»·: "y",
2454                        ẙ: "y",
2455                        ỵ: "y",
2456                        Æ´: "y",
2457                        ɏ: "y",
2458                        ỿ: "y",
2459                        "ⓩ": "z",
2460                        z: "z",
2461                        ź: "z",
2462                        ẑ: "z",
2463                        ż: "z",
2464                        ž: "z",
2465                        ẓ: "z",
2466                        ẕ: "z",
2467                        ƶ: "z",
2468                        ȥ: "z",
2469                        ɀ: "z",
2470                        ⱬ: "z",
2471                        ꝣ: "z",
2472                        Ά: "Α",
2473                        Έ: "Ε",
2474                        Ή: "Η",
2475                        Ί: "Ι",
2476                        Ϊ: "Ι",
2477                        Ό: "Ο",
2478                        Ύ: "Υ",
2479                        Ϋ: "Υ",
2480                        Ώ: "Ω",
2481                        ά: "α",
2482                        έ: "ε",
2483                        ή: "η",
2484                        ί: "ι",
2485                        ϊ: "ι",
2486                        ΐ: "ι",
2487                        ό: "ο",
2488                        ύ: "υ",
2489                        ϋ: "υ",
2490                        ΰ: "υ",
2491                        ώ: "ω",
2492                        ς: "σ",
2493                        "’": "'",
2494                    };
2495                }),
2496                e.define("select2/data/base", ["../utils"], function (r) {
2497                    function n(e, t) {
2498                        n.__super__.constructor.call(this);
2499                    }
2500                    return (
2501                        r.Extend(n, r.Observable),
2502                        (n.prototype.current = function (e) {
2503                            throw new Error(
2504                                "The `current` method must be defined in child classes."
2505                            );
2506                        }),
2507                        (n.prototype.query = function (e, t) {
2508                            throw new Error(
2509                                "The `query` method must be defined in child classes."
2510                            );
2511                        }),
2512                        (n.prototype.bind = function (e, t) {}),
2513                        (n.prototype.destroy = function () {}),
2514                        (n.prototype.generateResultId = function (e, t) {
2515                            var n = e.id + "-result-";
2516                            return (
2517                                (n += r.generateChars(4)),
2518                                null != t.id
2519                                    ? (n += "-" + t.id.toString())
2520                                    : (n += "-" + r.generateChars(4)),
2521                                n
2522                            );
2523                        }),
2524                        n
2525                    );
2526                }),
2527                e.define(
2528                    "select2/data/select",
2529                    ["./base", "../utils", "jquery"],
2530                    function (e, a, l) {
2531                        function n(e, t) {
2532                            (this.$element = e),
2533                                (this.options = t),
2534                                n.__super__.constructor.call(this);
2535                        }
2536                        return (
2537                            a.Extend(n, e),
2538                            (n.prototype.current = function (e) {
2539                                var n = [],
2540                                    r = this;
2541                                this.$element
2542                                    .find(":selected")
2543                                    .each(function () {
2544                                        var e = l(this),
2545                                            t = r.item(e);
2546                                        n.push(t);
2547                                    }),
2548                                    e(n);
2549                            }),
2550                            (n.prototype.select = function (i) {
2551                                var o = this;
2552                                if (
2553                                    ((i.selected = !0),
2554                                    l(i.element).is("option"))
2555                                )
2556                                    return (
2557                                        (i.element.selected = !0),
2558                                        void this.$element
2559                                            .trigger("input")
2560                                            .trigger("change")
2561                                    );
2562                                if (this.$element.prop("multiple"))
2563                                    this.current(function (e) {
2564                                        var t = [];
2565                                        (i = [i]).push.apply(i, e);
2566                                        for (var n = 0; n < i.length; n++) {
2567                                            var r = i[n].id;
2568                                            -1 === l.inArray(r, t) && t.push(r);
2569                                        }
2570                                        o.$element.val(t),
2571                                            o.$element
2572                                                .trigger("input")
2573                                                .trigger("change");
2574                                    });
2575                                else {
2576                                    var e = i.id;
2577                                    this.$element.val(e),
2578                                        this.$element
2579                                            .trigger("input")
2580                                            .trigger("change");
2581                                }
2582                            }),
2583                            (n.prototype.unselect = function (i) {
2584                                var o = this;
2585                                if (this.$element.prop("multiple")) {
2586                                    if (
2587                                        ((i.selected = !1),
2588                                        l(i.element).is("option"))
2589                                    )
2590                                        return (
2591                                            (i.element.selected = !1),
2592                                            void this.$element
2593                                                .trigger("input")
2594                                                .trigger("change")
2595                                        );
2596                                    this.current(function (e) {
2597                                        for (
2598                                            var t = [], n = 0;
2599                                            n < e.length;
2600                                            n++
2601                                        ) {
2602                                            var r = e[n].id;
2603                                            r !== i.id &&
2604                                                -1 === l.inArray(r, t) &&
2605                                                t.push(r);
2606                                        }
2607                                        o.$element.val(t),
2608                                            o.$element
2609                                                .trigger("input")
2610                                                .trigger("change");
2611                                    });
2612                                }
2613                            }),
2614                            (n.prototype.bind = function (e, t) {
2615                                var n = this;
2616                                (this.container = e).on("select", function (e) {
2617                                    n.select(e.data);
2618                                }),
2619                                    e.on("unselect", function (e) {
2620                                        n.unselect(e.data);
2621                                    });
2622                            }),
2623                            (n.prototype.destroy = function () {
2624                                this.$element.find("*").each(function () {
2625                                    a.RemoveData(this);
2626                                });
2627                            }),
2628                            (n.prototype.query = function (r, e) {
2629                                var i = [],
2630                                    o = this;
2631                                this.$element.children().each(function () {
2632                                    var e = l(this);
2633                                    if (e.is("option") || e.is("optgroup")) {
2634                                        var t = o.item(e),
2635                                            n = o.matches(r, t);
2636                                        null !== n && i.push(n);
2637                                    }
2638                                }),
2639                                    e({ results: i });
2640                            }),
2641                            (n.prototype.addOptions = function (e) {
2642                                a.appendMany(this.$element, e);
2643                            }),
2644                            (n.prototype.option = function (e) {
2645                                var t;
2646                                e.children
2647                                    ? ((t =
2648                                          document.createElement(
2649                                              "optgroup"
2650                                          )).label = e.text)
2651                                    : void 0 !==
2652                                      (t = document.createElement("option"))
2653                                          .textContent
2654                                    ? (t.textContent = e.text)
2655                                    : (t.innerText = e.text),
2656                                    void 0 !== e.id && (t.value = e.id),
2657                                    e.disabled && (t.disabled = !0),
2658                                    e.selected && (t.selected = !0),
2659                                    e.title && (t.title = e.title);
2660                                var n = l(t),
2661                                    r = this._normalizeItem(e);
2662                                return (
2663                                    (r.element = t),
2664                                    a.StoreData(t, "data", r),
2665                                    n
2666                                );
2667                            }),
2668                            (n.prototype.item = function (e) {
2669                                var t = {};
2670                                if (null != (t = a.GetData(e[0], "data")))
2671                                    return t;
2672                                if (e.is("option"))
2673                                    t = {
2674                                        id: e.val(),
2675                                        text: e.text(),
2676                                        disabled: e.prop("disabled"),
2677                                        selected: e.prop("selected"),
2678                                        title: e.prop("title"),
2679                                    };
2680                                else if (e.is("optgroup")) {
2681                                    t = {
2682                                        text: e.prop("label"),
2683                                        children: [],
2684                                        title: e.prop("title"),
2685                                    };
2686                                    for (
2687                                        var n = e.children("option"),
2688                                            r = [],
2689                                            i = 0;
2690                                        i < n.length;
2691                                        i++
2692                                    ) {
2693                                        var o = l(n[i]),
2694                                            s = this.item(o);
2695                                        r.push(s);
2696                                    }
2697                                    t.children = r;
2698                                }
2699                                return (
2700                                    ((t = this._normalizeItem(t)).element =
2701                                        e[0]),
2702                                    a.StoreData(e[0], "data", t),
2703                                    t
2704                                );
2705                            }),
2706                            (n.prototype._normalizeItem = function (e) {
2707                                e !== Object(e) && (e = { id: e, text: e });
2708                                return (
2709                                    null !=
2710                                        (e = l.extend({}, { text: "" }, e))
2711                                            .id && (e.id = e.id.toString()),
2712                                    null != e.text &&
2713                                        (e.text = e.text.toString()),
2714                                    null == e._resultId &&
2715                                        e.id &&
2716                                        null != this.container &&
2717                                        (e._resultId = this.generateResultId(
2718                                            this.container,
2719                                            e
2720                                        )),
2721                                    l.extend(
2722                                        {},
2723                                        { selected: !1, disabled: !1 },
2724                                        e
2725                                    )
2726                                );
2727                            }),
2728                            (n.prototype.matches = function (e, t) {
2729                                return this.options.get("matcher")(e, t);
2730                            }),
2731                            n
2732                        );
2733                    }
2734                ),
2735                e.define(
2736                    "select2/data/array",
2737                    ["./select", "../utils", "jquery"],
2738                    function (e, f, g) {
2739                        function r(e, t) {
2740                            (this._dataToConvert = t.get("data") || []),
2741                                r.__super__.constructor.call(this, e, t);
2742                        }
2743                        return (
2744                            f.Extend(r, e),
2745                            (r.prototype.bind = function (e, t) {
2746                                r.__super__.bind.call(this, e, t),
2747                                    this.addOptions(
2748                                        this.convertToOptions(
2749                                            this._dataToConvert
2750                                        )
2751                                    );
2752                            }),
2753                            (r.prototype.select = function (n) {
2754                                var e = this.$element
2755                                    .find("option")
2756                                    .filter(function (e, t) {
2757                                        return t.value == n.id.toString();
2758                                    });
2759                                0 === e.length &&
2760                                    ((e = this.option(n)), this.addOptions(e)),
2761                                    r.__super__.select.call(this, n);
2762                            }),
2763                            (r.prototype.convertToOptions = function (e) {
2764                                var t = this,
2765                                    n = this.$element.find("option"),
2766                                    r = n
2767                                        .map(function () {
2768                                            return t.item(g(this)).id;
2769                                        })
2770                                 
2770       .get(),
2771                                    i = [];
2772                                function o(e) {
2773                                    return function () {
2774                                        return g(this).val() == e.id;
2775                                    };
2776                                }
2777                                for (var s = 0; s < e.length; s++) {
2778                                    var a = this._normalizeItem(e[s]);
2779                                    if (0 <= g.inArray(a.id, r)) {
2780                                        var l = n.filter(o(a)),
2781                                            c = this.item(l),
2782                                            u = g.extend(!0, {}, a, c),
2783                                            d = this.option(u);
2784                                        l.replaceWith(d);
2785                                    } else {
2786                                        var p = this.option(a);
2787                                        if (a.children) {
2788                                            var h = this.convertToOptions(
2789                                                a.children
2790                                            );
2791                                            f.appendMany(p, h);
2792                                        }
2793                                        i.push(p);
2794                                    }
2795                                }
2796                                return i;
2797                            }),
2798                            r
2799                        );
2800                    }
2801                ),
2802                e.define(
2803                    "select2/data/ajax",
2804                    ["./array", "../utils", "jquery"],
2805                    function (e, t, o) {
2806                        function n(e, t) {
2807                            (this.ajaxOptions = this._applyDefaults(
2808                                t.get("ajax")
2809                            )),
2810                                null != this.ajaxOptions.processResults &&
2811                                    (this.processResults =
2812                                        this.ajaxOptions.processResults),
2813                                n.__super__.constructor.call(this, e, t);
2814                        }
2815                        return (
2816                            t.Extend(n, e),
2817                            (n.prototype._applyDefaults = function (e) {
2818                                var t = {
2819                                    data: function (e) {
2820                                        return o.extend({}, e, { q: e.term });
2821                                    },
2822                                    transport: function (e, t, n) {
2823                                        var r = o.ajax(e);
2824                                        return r.then(t), r.fail(n), r;
2825                                    },
2826                                };
2827                                return o.extend({}, t, e, !0);
2828                            }),
2829                            (n.prototype.processResults = function (e) {
2830                                return e;
2831                            }),
2832                            (n.prototype.query = function (n, r) {
2833                                var i = this;
2834                                null != this._request &&
2835                                    (o.isFunction(this._request.abort) &&
2836                                        this._request.abort(),
2837                                    (this._request = null));
2838                                var t = o.extend(
2839                                    { type: "GET" },
2840                                    this.ajaxOptions
2841                                );
2842                                function e() {
2843                                    var e = t.transport(
2844                                        t,
2845                                        function (e) {
2846                                            var t = i.processResults(e, n);
2847                                            i.options.get("debug") &&
2848                                                window.console &&
2849                                                console.error &&
2850                                                ((t &&
2851                                                    t.results &&
2852                                                    o.isArray(t.results)) ||
2853                                                    console.error(
2854                                                        "Select2: The AJAX results did not return an array in the `results` key of the response."
2855                                                    )),
2856                                                r(t);
2857                                        },
2858                                        function () {
2859                                            ("status" in e &&
2860                                                (0 === e.status ||
2861                                                    "0" === e.status)) ||
2862                                                i.trigger("results:message", {
2863                                                    message: "errorLoading",
2864                                                });
2865                                        }
2866                                    );
2867                                    i._request = e;
2868                                }
2869                                "function" == typeof t.url &&
2870                                    (t.url = t.url.call(this.$element, n)),
2871                                    "function" == typeof t.data &&
2872                                        (t.data = t.data.call(
2873                                            this.$element,
2874                                            n
2875                                        )),
2876                                    this.ajaxOptions.delay && null != n.term
2877                                        ? (this._queryTimeout &&
2878                                              window.clearTimeout(
2879                                                  this._queryTimeout
2880                                              ),
2881                                          (this._queryTimeout =
2882                                              window.setTimeout(
2883                                                  e,
2884                                                  this.ajaxOptions.delay
2885                                              )))
2886                                        : e();
2887                            }),
2888                            n
2889                        );
2890                    }
2891                ),
2892                e.define("select2/data/tags", ["jquery"], function (u) {
2893                    function e(e, t, n) {
2894                        var r = n.get("tags"),
2895                            i = n.get("createTag");
2896                        void 0 !== i && (this.createTag = i);
2897                        var o = n.get("insertTag");
2898                        if (
2899                            (void 0 !== o && (this.insertTag = o),
2900                            e.call(this, t, n),
2901                            u.isArray(r))
2902                        )
2903                            for (var s = 0; s < r.length; s++) {
2904                                var a = r[s],
2905                                    l = this._normalizeItem(a),
2906                                    c = this.option(l);
2907                                this.$element.append(c);
2908                            }
2909                    }
2910                    return (
2911                        (e.prototype.query = function (e, c, u) {
2912                            var d = this;
2913                            this._removeOldTags(),
2914                                null != c.term && null == c.page
2915                                    ? e.call(this, c, function e(t, n) {
2916                                          for (
2917                                              var r = t.results, i = 0;
2918                                              i < r.length;
2919                                              i++
2920                                          ) {
2921                                              var o = r[i],
2922                                                  s =
2923                                                      null != o.children &&
2924                                                      !e(
2925                                                          {
2926                                                              results:
2927                                                                  o.children,
2928                                                          },
2929                                                          !0
2930                                                      );
2931                                              if (
2932                                                  (
2933                                                      o.text || ""
2934                                                  ).toUpperCase() ===
2935                                                      (
2936                                                          c.term || ""
2937                                                      ).toUpperCase() ||
2938                                                  s
2939                                              )
2940                                                  return (
2941                                                      !n &&
2942                                                      ((t.data = r), void u(t))
2943                                                  );
2944                                          }
2945                                          if (n) return !0;
2946                                          var a = d.createTag(c);
2947                                          if (null != a) {
2948                                              var l = d.option(a);
2949                                              l.attr("data-select2-tag", !0),
2950                                                  d.addOptions([l]),
2951                                                  d.insertTag(r, a);
2952                                          }
2953                                          (t.results = r), u(t);
2954                                      })
2955                                    : e.call(this, c, u);
2956                        }),
2957                        (e.prototype.createTag = function (e, t) {
2958                            var n = u.trim(t.term);
2959                            return "" === n ? null : { id: n, text: n };
2960                        }),
2961                        (e.prototype.insertTag = function (e, t, n) {
2962                            t.unshift(n);
2963                        }),
2964                        (e.prototype._removeOldTags = function (e) {
2965                            this.$element
2966                                .find("option[data-select2-tag]")
2967                                .each(function () {
2968                                    this.selected || u(this).remove();
2969                                });
2970                        }),
2971                        e
2972                    );
2973                }),
2974                e.define("select2/data/tokenizer", ["jquery"], function (d) {
2975                    function e(e, t, n) {
2976                        var r = n.get("tokenizer");
2977                        void 0 !== r && (this.tokenizer = r),
2978                            e.call(this, t, n);
2979                    }
2980                    return (
2981                        (e.prototype.bind = function (e, t, n) {
2982                            e.call(this, t, n),
2983                                (this.$search =
2984                                    t.dropdown.$search ||
2985                                    t.selection.$search ||
2986                                    n.find(".select2-search__field"));
2987                        }),
2988                        (e.prototype.query = function (e, t, n) {
2989                            var i = this;
2990                            t.term = t.term || "";
2991                            var r = this.tokenizer(
2992                                t,
2993                                this.options,
2994                                function (e) {
2995                                    var t,
2996                                        n = i._normalizeItem(e);
2997                                    if (
2998                                        !i.$element
2999                                            .find("option")
3000                                            .filter(function () {
3001                                                return d(this).val() === n.id;
3002                                            }).length
3003                                    ) {
3004                                        var r = i.option(n);
3005                                        r.attr("data-select2-tag", !0),
3006                                            i._removeOldTags(),
3007                                            i.addOptions([r]);
3008                                    }
3009                                    (t = n), i.trigger("select", { data: t });
3010                                }
3011                            );
3012                            r.term !== t.term &&
3013                                (this.$search.length &&
3014                                    (this.$search.val(r.term),
3015                                    this.$search.trigger("focus")),
3016                                (t.term = r.term)),
3017                                e.call(this, t, n);
3018                        }),
3019                        (e.prototype.tokenizer = function (e, t, n, r) {
3020                            for (
3021                                var i = n.get("tokenSeparators") || [],
3022                                    o = t.term,
3023                                    s = 0,
3024                                    a =
3025                                        this.createTag ||
3026                                        function (e) {
3027                                            return { id: e.term, text: e.term };
3028                                        };
3029                                s < o.length;
3030
3031                            ) {
3032                                var l = o[s];
3033                                if (-1 !== d.inArray(l, i)) {
3034                                    var c = o.substr(0, s),
3035                                        u = a(d.extend({}, t, { term: c }));
3036                                    null != u
3037                                        ? (r(u),
3038                                          (o = o.substr(s + 1) || ""),
3039                                          (s = 0))
3040                                        : s++;
3041                                } else s++;
3042                            }
3043                            return { term: o };
3044                        }),
3045                        e
3046                    );
3047                }),
3048                e.define("select2/data/minimumInputLength", [], function () {
3049                    function e(e, t, n) {
3050                        (this.minimumInputLength = n.get("minimumInputLength")),
3051                            e.call(this, t, n);
3052                    }
3053                    return (
3054                        (e.prototype.query = function (e, t, n) {
3055                            (t.term = t.term || ""),
3056                                t.term.length < this.minimumInputLength
3057                                    ? this.trigger("results:message", {
3058                                          message: "inputTooShort",
3059                                          args: {
3060                                              minimum: this.minimumInputLength,
3061                                              input: t.term,
3062                                              params: t,
3063                                          },
3064                                      })
3065                                    : e.call(this, t, n);
3066                        }),
3067                        e
3068                    );
3069                }),
3070                e.define("select2/data/maximumInputLength", [], function () {
3071                    function e(e, t, n) {
3072                        (this.maximumInputLength = n.get("maximumInputLength")),
3073                            e.call(this, t, n);
3074                    }
3075                    return (
3076                        (e.prototype.query = function (e, t, n) {
3077                            (t.term = t.term || ""),
3078                                0 < this.maximumInputLength &&
3079                                t.term.length > this.maximumInputLength
3080                                    ? this.trigger("results:message", {
3081                                          message: "inputTooLong",
3082                                          args: {
3083                                              maximum: this.maximumInputLength,
3084                                              input: t.term,
3085                                              params: t,
3086                                          },
3087                                      })
3088                                    : e.call(this, t, n);
3089                        }),
3090                        e
3091                    );
3092                }),
3093                e.define(
3094                    "select2/data/maximumSelectionLength",
3095                    [],
3096                    function () {
3097                        function e(e, t, n) {
3098                            (this.maximumSelectionLength = n.get(
3099                                "maximumSelectionLength"
3100                            )),
3101                                e.call(this, t, n);
3102                        }
3103                        return (
3104                            (e.prototype.bind = function (e, t, n) {
3105                                var r = this;
3106                                e.call(this, t, n),
3107                                    t.on("select", function () {
3108                                        r._checkIfMaximumSelected();
3109                                    });
3110                            }),
3111                            (e.prototype.query = function (e, t, n) {
3112                                var r = this;
3113                                this._checkIfMaximumSelected(function () {
3114                                    e.call(r, t, n);
3115                                });
3116                            }),
3117                            (e.prototype._checkIfMaximumSelected = function (
3118                                e,
3119                                n
3120                            ) {
3121                                var r = this;
3122                                this.current(function (e) {
3123                                    var t = null != e ? e.length : 0;
3124                                    0 < r.maximumSelectionLength &&
3125                                    t >= r.maximumSelectionLength
3126                                        ? r.trigger("results:message", {
3127                                              message: "maximumSelected",
3128                                              args: {
3129                                                  maximum:
3130                                                      r.maximumSelectionLength,
3131                                              },
3132                                          })
3133                                        : n && n();
3134                                });
3135                            }),
3136                            e
3137                        );
3138                    }
3139                ),
3140                e.define(
3141                    "select2/dropdown",
3142                    ["jquery", "./utils"],
3143                    function (t, e) {
3144                        function n(e, t) {
3145                            (this.$element = e),
3146                                (this.options = t),
3147                                n.__super__.constructor.call(this);
3148                        }
3149                        return (
3150                            e.Extend(n, e.Observable),
3151                            (n.prototype.render = function () {
3152                                var e = t(
3153                                    '<span class="select2-dropdown"><span class="select2-results"></span></span>'
3154                                );
3155                                return (
3156                                    e.attr("dir", this.options.get("dir")),
3157                                    (this.$dropdown = e)
3158                                );
3159                            }),
3160                            (n.prototype.bind = function () {}),
3161                            (n.prototype.position = function (e, t) {}),
3162                            (n.prototype.destroy = function () {
3163                                this.$dropdown.remove();
3164                            }),
3165                            n
3166                        );
3167                    }
3168                ),
3169                e.define(
3170                    "select2/dropdown/search",
3171                    ["jquery", "../utils"],
3172                    function (o, e) {
3173                        function t() {}
3174                        return (
3175                            (t.prototype.render = function (e) {
3176                                var t = e.call(this),
3177                                    n = o(
3178                                        '<span class="select2-search select2-search--dropdown"><input class="select2-search__field" type="search" tabindex="-1" autocomplete="off" autocorrect="off" autocapitalize="none" spellcheck="false" role="searchbox" aria-autocomplete="list" /></span>'
3179                                    );
3180                                return (
3181                                    (this.$searchContainer = n),
3182                                    (this.$search = n.find("input")),
3183                                    t.prepend(n),
3184                                    t
3185                                );
3186                            }),
3187                            (t.prototype.bind = function (e, t, n) {
3188                                var r = this,
3189                                    i = t.id + "-results";
3190                                e.call(this, t, n),
3191                                    this.$search.on("keydown", function (e) {
3192                                        r.trigger("keypress", e),
3193                                            (r._keyUpPrevented =
3194                                                e.isDefaultPrevented());
3195                                    }),
3196                                    this.$search.on("input", function (e) {
3197                                        o(this).off("keyup");
3198                                    }),
3199                                    this.$search.on(
3200                                        "keyup input",
3201                                        function (e) {
3202                                            r.handleSearch(e);
3203                                        }
3204                                    ),
3205                                    t.on("open", function () {
3206                                        r.$search.attr("tabindex", 0),
3207                                            r.$search.attr("aria-controls", i),
3208                                            r.$search.trigger("focus"),
3209                                            window.setTimeout(function () {
3210                                                r.$search.trigger("focus");
3211                                            }, 0);
3212                                    }),
3213                                    t.on("close", function () {
3214                                        r.$search.attr("tabindex", -1),
3215                                            r.$search.removeAttr(
3216                                                "aria-controls"
3217                                            ),
3218  
3218                                          r.$search.removeAttr(
3219                                                "aria-activedescendant"
3220                                            ),
3221                                            r.$search.val(""),
3222                                            r.$search.trigger("blur");
3223                                    }),
3224                                    t.on("focus", function () {
3225                                        t.isOpen() ||
3226                                            r.$search.trigger("focus");
3227                                    }),
3228                                    t.on("results:all", function (e) {
3229                                        (null != e.query.term &&
3230                                            "" !== e.query.term) ||
3231                                            (r.showSearch(e)
3232                                                ? r.$searchContainer.removeClass(
3233                                                      "select2-search--hide"
3234                                                  )
3235                                                : r.$searchContainer.addClass(
3236                                                      "select2-search--hide"
3237                                                  ));
3238                                    }),
3239                                    t.on("results:focus", function (e) {
3240                                        e.data._resultId
3241                                            ? r.$search.attr(
3242                                                  "aria-activedescendant",
3243                                                  e.data._resultId
3244                                              )
3245                                            : r.$search.removeAttr(
3246                                                  "aria-activedescendant"
3247                                              );
3248                                    });
3249                            }),
3250                            (t.prototype.handleSearch = function (e) {
3251                                if (!this._keyUpPrevented) {
3252                                    var t = this.$search.val();
3253                                    this.trigger("query", { term: t });
3254                                }
3255                                this._keyUpPrevented = !1;
3256                            }),
3257                            (t.prototype.showSearch = function (e, t) {
3258                                return !0;
3259                            }),
3260                            t
3261                        );
3262                    }
3263                ),
3264                e.define("select2/dropdown/hidePlaceholder", [], function () {
3265                    function e(e, t, n, r) {
3266                        (this.placeholder = this.normalizePlaceholder(
3267                            n.get("placeholder")
3268                        )),
3269                            e.call(this, t, n, r);
3270                    }
3271                    return (
3272                        (e.prototype.append = function (e, t) {
3273                            (t.results = this.removePlaceholder(t.results)),
3274                                e.call(this, t);
3275                        }),
3276                        (e.prototype.normalizePlaceholder = function (e, t) {
3277                            return (
3278                                "string" == typeof t &&
3279                                    (t = { id: "", text: t }),
3280                                t
3281                            );
3282                        }),
3283                        (e.prototype.removePlaceholder = function (e, t) {
3284                            for (
3285                                var n = t.slice(0), r = t.length - 1;
3286                                0 <= r;
3287                                r--
3288                            ) {
3289                                var i = t[r];
3290                                this.placeholder.id === i.id && n.splice(r, 1);
3291                            }
3292                            return n;
3293                        }),
3294                        e
3295                    );
3296                }),
3297                e.define(
3298                    "select2/dropdown/infiniteScroll",
3299                    ["jquery"],
3300                    function (n) {
3301                        function e(e, t, n, r) {
3302                            (this.lastParams = {}),
3303                                e.call(this, t, n, r),
3304                                (this.$loadingMore = this.createLoadingMore()),
3305                                (this.loading = !1);
3306                        }
3307                        return (
3308                            (e.prototype.append = function (e, t) {
3309                                this.$loadingMore.remove(),
3310                                    (this.loading = !1),
3311                                    e.call(this, t),
3312                                    this.showLoadingMore(t) &&
3313                                        (this.$results.append(
3314                                            this.$loadingMore
3315                                        ),
3316                                        this.loadMoreIfNeeded());
3317                            }),
3318                            (e.prototype.bind = function (e, t, n) {
3319                                var r = this;
3320                                e.call(this, t, n),
3321                                    t.on("query", function (e) {
3322                                        (r.lastParams = e), (r.loading = !0);
3323                                    }),
3324                                    t.on("query:append", function (e) {
3325                                        (r.lastParams = e), (r.loading = !0);
3326                                    }),
3327                                    this.$results.on(
3328                                        "scroll",
3329                                        this.loadMoreIfNeeded.bind(this)
3330                                    );
3331                            }),
3332                            (e.prototype.loadMoreIfNeeded = function () {
3333                                var e = n.contains(
3334                                    document.documentElement,
3335                                    this.$loadingMore[0]
3336                                );
3337                                if (!this.loading && e) {
3338                                    var t =
3339                                        this.$results.offset().top +
3340                                        this.$results.outerHeight(!1);
3341                                    this.$loadingMore.offset().top +
3342                                        this.$loadingMore.outerHeight(!1) <=
3343                                        t + 50 && this.loadMore();
3344                                }
3345                            }),
3346                            (e.prototype.loadMore = function () {
3347                                this.loading = !0;
3348                                var e = n.extend(
3349                                    {},
3350                                    { page: 1 },
3351                                    this.lastParams
3352                                );
3353                                e.page++, this.trigger("query:append", e);
3354                            }),
3355                            (e.prototype.showLoadingMore = function (e, t) {
3356                                return t.pagination && t.pagination.more;
3357                            }),
3358                            (e.prototype.createLoadingMore = function () {
3359                                var e = n(
3360                                        '<li class="select2-results__option select2-results__option--load-more"role="option" aria-disabled="true"></li>'
3361                                    ),
3362                                    t = this.options
3363                                        .get("translations")
3364                                        .get("loadingMore");
3365                                return e.html(t(this.lastParams)), e;
3366                            }),
3367                            e
3368                        );
3369                    }
3370                ),
3371                e.define(
3372                    "select2/dropdown/attachBody",
3373                    ["jquery", "../utils"],
3374                    function (f, a) {
3375                        function e(e, t, n) {
3376                            (this.$dropdownParent = f(
3377                                n.get("dropdownParent") || document.body
3378                            )),
3379                                e.call(this, t, n);
3380                        }
3381                        return (
3382                            (e.prototype.bind = function (e, t, n) {
3383                                var r = this;
3384                                e.call(this, t, n),
3385                                    t.on("open", function () {
3386                                        r._showDropdown(),
3387                                            r._attachPositioningHandler(t),
3388                                            r._bindContainerResultHandlers(t);
3389                                    }),
3390                                    t.on("close", function () {
3391                                        r._hideDropdown(),
3392                                            r._detachPositioningHandler(t);
3393                                    }),
3394                                    this.$dropdownContainer.on(
3395                                        "mousedown",
3396                                        function (e) {
3397                                            e.stopPropagation();
3398                                        }
3399                                    );
3400                            }),
3401                            (e.prototype.destroy = function (e) {
3402                                e.call(this), this.$dropdownContainer.remove();
3403                            }),
3404                            (e.prototype.position = function (e, t, n) {
3405                                t.attr("class", n.attr("class")),
3406                                    t.removeClass("select2"),
3407                                    t.addClass("select2-container--open"),
3408                                    t.css({
3409                                        position: "absolute",
3410                                        top: -999999,
3411                                    }),
3412                                    (this.$container = n);
3413                            }),
3414                            (e.prototype.render = function (e) {
3415                                var t = f("<span></span>"),
3416                                    n = e.call(this);
3417                                return (
3418                                    t.append(n), (this.$dropdownContainer = t)
3419                                );
3420                            }),
3421                            (e.prototype._hideDropdown = function (e) {
3422                                this.$dropdownContainer.detach();
3423                            }),
3424                            (e.prototype._bindContainerResultHandlers =
3425                                function (e, t) {
3426                                    if (!this._containerResultsHandlersBound) {
3427                                        var n = this;
3428                                        t.on("results:all", function () {
3429                                            n._positionDropdown(),
3430                                                n._resizeDropdown();
3431                                        }),
3432                                            t.on("results:append", function () {
3433                                                n._positionDropdown(),
3434                                                    n._resizeDropdown();
3435                                            }),
3436                                            t.on(
3437                                                "results:message",
3438                                                function () {
3439                                                    n._positionDropdown(),
3440                                                        n._resizeDropdown();
3441                                                }
3442                                            ),
3443                                            t.on("select", function () {
3444                                                n._positionDropdown(),
3445                                                    n._resizeDropdown();
3446                                            }),
3447                                            t.on("unselect", function () {
3448                                                n._positionDropdown(),
3449                                                    n._resizeDropdown();
3450                                            }),
3451                                            (this._containerResultsHandlersBound =
3452                                                !0);
3453                                    }
3454                                }),
3455                            (e.prototype._attachPositioningHandler = function (
3456                                e,
3457                                t
3458                            ) {
3459                                var n = this,
3460                                    r = "scroll.select2." + t.id,
3461                                    i = "resize.select2." + t.id,
3462                                    o = "orientationchange.select2." + t.id,
3463                                    s = this.$container
3464                                        .parents()
3465                                        .filter(a.hasScroll);
3466                                s.each(function () {
3467                                    a.StoreData(
3468                                        this,
3469                                        "select2-scroll-position",
3470                                        {
3471                                            x: f(this).scrollLeft(),
3472                                            y: f(this).scrollTop(),
3473                                        }
3474                                    );
3475                                }),
3476                                    s.on(r, function (e) {
3477                                        var t = a.GetData(
3478                                            this,
3479                                            "select2-scroll-position"
3480                                        );
3481                                        f(this).scrollTop(t.y);
3482                                    }),
3483                                    f(window).on(
3484                                        r + " " + i + " " + o,
3485                                        function (e) {
3486                                            n._positionDropdown(),
3487                                                n._resizeDropdown();
3488                                        }
3489                                    );
3490                            }),
3491                            (e.prototype._detachPositioningHandler = function (
3492                                e,
3493                                t
3494                            ) {
3495                                var n = "scroll.select2." + t.id,
3496                                    r = "resize.select2." + t.id,
3497                                    i = "orientationchange.select2." + t.id;
3498                                this.$container
3499                                    .parents()
3500                                    .filter(a.hasScroll)
3501                                    .off(n),
3502                                    f(window).off(n + " " + r + " " + i);
3503                            }),
3504                            (e.prototype._positionDropdown = function () {
3505                                var e = f(window),
3506                                    t = this.$dropdown.hasClass(
3507                                        "select2-dropdown--above"
3508                                    ),
3509                                    n = this.$dropdown.hasClass(
3510                                        "select2-dropdown--below"
3511                                    ),
3512                                    r = null,
3513                                    i = this.$container.offset();
3514                                i.bottom =
3515                                    i.top + this.$container.outerHeight(!1);
3516                                var o = {
3517                                    height: this.$container.outerHeight(!1),
3518                                };
3519                                (o.top = i.top), (o.bottom = i.top + o.heig
3519ht);
3520                                var s = this.$dropdown.outerHeight(!1),
3521                                    a = e.scrollTop(),
3522                                    l = e.scrollTop() + e.height(),
3523                                    c = a < i.top - s,
3524                                    u = l > i.bottom + s,
3525                                    d = { left: i.left, top: o.bottom },
3526                                    p = this.$dropdownParent;
3527                                "static" === p.css("position") &&
3528                                    (p = p.offsetParent());
3529                                var h = { top: 0, left: 0 };
3530                                (f.contains(document.body, p[0]) ||
3531                                    p[0].isConnected) &&
3532                                    (h = p.offset()),
3533                                    (d.top -= h.top),
3534                                    (d.left -= h.left),
3535                                    t || n || (r = "below"),
3536                                    u || !c || t
3537                                        ? !c && u && t && (r = "below")
3538                                        : (r = "above"),
3539                                    ("above" == r || (t && "below" !== r)) &&
3540                                        (d.top = o.top - h.top - s),
3541                                    null != r &&
3542                                        (this.$dropdown
3543                                            .removeClass(
3544                                                "select2-dropdown--below select2-dropdown--above"
3545                                            )
3546                                            .addClass("select2-dropdown--" + r),
3547                                        this.$container
3548                                            .removeClass(
3549                                                "select2-container--below select2-container--above"
3550                                            )
3551                                            .addClass(
3552                                                "select2-container--" + r
3553                                            )),
3554                                    this.$dropdownContainer.css(d);
3555                            }),
3556                            (e.prototype._resizeDropdown = function () {
3557                                var e = {
3558                                    width:
3559                                        this.$container.outerWidth(!1) + "px",
3560                                };
3561                                this.options.get("dropdownAutoWidth") &&
3562                                    ((e.minWidth = e.width),
3563                                    (e.position = "relative"),
3564                                    (e.width = "auto")),
3565                                    this.$dropdown.css(e);
3566                            }),
3567                            (e.prototype._showDropdown = function (e) {
3568                                this.$dropdownContainer.appendTo(
3569                                    this.$dropdownParent
3570                                ),
3571                                    this._positionDropdown(),
3572                                    this._resizeDropdown();
3573                            }),
3574                            e
3575                        );
3576                    }
3577                ),
3578                e.define(
3579                    "select2/dropdown/minimumResultsForSearch",
3580                    [],
3581                    function () {
3582                        function e(e, t, n, r) {
3583                            (this.minimumResultsForSearch = n.get(
3584                                "minimumResultsForSearch"
3585                            )),
3586                                this.minimumResultsForSearch < 0 &&
3587                                    (this.minimumResultsForSearch = 1 / 0),
3588                                e.call(this, t, n, r);
3589                        }
3590                        return (
3591                            (e.prototype.showSearch = function (e, t) {
3592                                return (
3593                                    !(
3594                                        (function e(t) {
3595                                            for (
3596                                                var n = 0, r = 0;
3597                                                r < t.length;
3598                                                r++
3599                                            ) {
3600                                                var i = t[r];
3601                                                i.children
3602                                                    ? (n += e(i.children))
3603                                                    : n++;
3604                                            }
3605                                            return n;
3606                                        })(t.data.results) <
3607                                        this.minimumResultsForSearch
3608                                    ) && e.call(this, t)
3609                                );
3610                            }),
3611                            e
3612                        );
3613                    }
3614                ),
3615                e.define(
3616                    "select2/dropdown/selectOnClose",
3617                    ["../utils"],
3618                    function (o) {
3619                        function e() {}
3620                        return (
3621                            (e.prototype.bind = function (e, t, n) {
3622                                var r = this;
3623                                e.call(this, t, n),
3624                                    t.on("close", function (e) {
3625                                        r._handleSelectOnClose(e);
3626                                    });
3627                            }),
3628                            (e.prototype._handleSelectOnClose = function (
3629                                e,
3630                                t
3631                            ) {
3632                                if (t && null != t.originalSelect2Event) {
3633                                    var n = t.originalSelect2Event;
3634                                    if (
3635                                        "select" === n._type ||
3636                                        "unselect" === n._type
3637                                    )
3638                                        return;
3639                                }
3640                                var r = this.getHighlightedResults();
3641                                if (!(r.length < 1)) {
3642                                    var i = o.GetData(r[0], "data");
3643                                    (null != i.element && i.element.selected) ||
3644                                        (null == i.element && i.selected) ||
3645                                        this.trigger("select", { data: i });
3646                                }
3647                            }),
3648                            e
3649                        );
3650                    }
3651                ),
3652                e.define("select2/dropdown/closeOnSelect", [], function () {
3653                    function e() {}
3654                    return (
3655                        (e.prototype.bind = function (e, t, n) {
3656                            var r = this;
3657                            e.call(this, t, n),
3658                                t.on("select", function (e) {
3659                                    r._selectTriggered(e);
3660                                }),
3661                                t.on("unselect", function (e) {
3662                                    r._selectTriggered(e);
3663                                });
3664                        }),
3665                        (e.prototype._selectTriggered = function (e, t) {
3666                            var n = t.originalEvent;
3667                            (n && (n.ctrlKey || n.metaKey)) ||
3668                                this.trigger("close", {
3669                                    originalEvent: n,
3670                                    originalSelect2Event: t,
3671                                });
3672                        }),
3673                        e
3674                    );
3675                }),
3676                e.define("select2/i18n/en", [], function () {
3677                    return {
3678                        errorLoading: function () {
3679                            return "The results could not be loaded.";
3680                        },
3681                        inputTooLong: function (e) {
3682                            var t = e.input.length - e.maximum,
3683                                n = "Please delete " + t + " character";
3684                            return 1 != t && (n += "s"), n;
3685                        },
3686                        inputTooShort: function (e) {
3687                            return (
3688                                "Please enter " +
3689                                (e.minimum - e.input.length) +
3690                                " or more characters"
3691                            );
3692                        },
3693                        loadingMore: function () {
3694                            return "Loading more results…";
3695                        },
3696                        maximumSelected: function (e) {
3697                            var t =
3698                                "You can only select " + e.maximum + " item";
3699                            return 1 != e.maximum && (t += "s"), t;
3700                        },
3701                        noResults: function () {
3702                            return "No results found";
3703                        },
3704                        searching: function () {
3705                            return "Searching…";
3706                        },
3707                        removeAllItems: function () {
3708                            return "Remove all items";
3709                        },
3710                    };
3711                }),
3712                e.define(
3713                    "select2/defaults",
3714                    [
3715                        "jquery",
3716                        "require",
3717                        "./results",
3718                        "./selection/single",
3719                        "./selection/multiple",
3720                        "./selection/placeholder",
3721                        "./selection/allowClear",
3722                        "./selection/search",
3723                        "./selection/eventRelay",
3724                        "./utils",
3725                        "./translation",
3726                        "./diacritics",
3727                        "./data/select",
3728                        "./data/array",
3729                        "./data/ajax",
3730                        "./data/tags",
3731                        "./data/tokenizer",
3732                        "./data/minimumInputLength",
3733                        "./data/maximumInputLength",
3734                        "./data/maximumSelectionLength",
3735                        "./dropdown",
3736                        "./dropdown/search",
3737                        "./dropdown/hidePlaceholder",
3738                        "./dropdown/infiniteScroll",
3739                        "./dropdown/attachBody",
3740                        "./dropdown/minimumResultsForSearch",
3741                        "./dropdown/selectOnClose",
3742                        "./dropdown/closeOnSelect",
3743                        "./i18n/en",
3744                    ],
3745                    function (
3746                        c,
3747                        u,
3748                        d,
3749                        p,
3750                        h,
3751                        f,
3752                        g,
3753                        m,
3754                        v,
3755                        y,
3756                        s,
3757                        t,
3758                        _,
3759                        $,
3760                        b,
3761                        w,
3762                        A,
3763                        x,
3764                        D,
3765                        S,
3766                        E,
3767                        C,
3768                        O,
3769                        T,
3770                        q,
3771                        L,
3772                        I,
3773                        j,
3774                        e
3775                    ) {
3776                        function n() {
3777                            this.reset();
3778                        }
3779                        return (
3780                            (n.prototype.apply = function (e) {
3781                                if (
3782                                    null ==
3783                                    (e = c.extend(!0, {}, this.defaults, e))
3784                                        .dataAdapter
3785                                ) {
3786                                    if (
3787                                        (null != e.ajax
3788                                            ? (e.dataAdapter = b)
3789                                            : null != e.data
3790                                            ? (e.dataAdapter = $)
3791                                            : (e.dataAdapter = _),
3792                                        0 < e.minimumInputLength &&
3793                                            (e.dataAdapter = y.Decorate(
3794                                                e.dataAdapter,
3795                                                x
3796                                            )),
3797                                        0 < e.maximumInputLength &&
3798                                            (e.dataAdapter = y.Decorate(
3799                                                e.dataAdapter,
3800                                                D
3801                                            )),
3802                                        0 < e.maximumSelectionLength &&
3803                                            (e.dataAdapter = y.Decorate(
3804                                                e.dataAdapter,
3805                                                S
3806                                            )),
3807                                        e.tags &&
3808                                            (e.dataAdapter = y.Decorate(
3809                                                e.dataAdapter,
3810                                                w
3811                                            )),
3812                                        (null == e.tokenSeparators &&
3813                                            null == e.tokenizer) ||
3814                                            (e.dataAdapter = y.Decorate(
3815                                                e.dataAdapter,
3816                                                A
3817                                            )),
3818                                        null != e.query)
3819                                    ) {
3820                                        var t = u(e.amdBase + "compat/query");
3821                                        e.dataAdapter = y.Decorate(
3822                                            e.dataAdapter,
3823                                            t
3824                                        );
3825                                    }
3826                                    if (null != e.initSelection) {
3827                                        var n = u(
3828                                            e.amdBase + "compat/initSelection"
3829                                        );
3830                                        e.dataAdapter = y.Decorate(
3831                                            e.dataAdapter,
3832                                            n
3833                                        );
3834                                    }
3835                                }
3836                                if (
3837                                    (null == e.resultsAdapter &&
3838                                        ((e.resultsAdapter = d),
3839                                        null != e.ajax &&
3840                                            (e.resultsAdapter = y.Decorate(
3841                                                e.resultsAdapter,
3842                                                T
3843                                            )),
3844                                        null != e.placeholder &&
3845                                            (e.resultsAdapter = y.Decorate(
3846                                                e.resultsAdapter,
3847                                                O
3848                                            )),
3849                                        e.selectOnClose &&
3850                                            (e.resultsAdapter = y.Decorate(
3851                                                e.resultsAdapter,
3852                                                I
3853                  
3853                          ))),
3854                                    null == e.dropdownAdapter)
3855                                ) {
3856                                    if (e.multiple) e.dropdownAdapter = E;
3857                                    else {
3858                                        var r = y.Decorate(E, C);
3859                                        e.dropdownAdapter = r;
3860                                    }
3861                                    if (
3862                                        (0 !== e.minimumResultsForSearch &&
3863                                            (e.dropdownAdapter = y.Decorate(
3864                                                e.dropdownAdapter,
3865                                                L
3866                                            )),
3867                                        e.closeOnSelect &&
3868                                            (e.dropdownAdapter = y.Decorate(
3869                                                e.dropdownAdapter,
3870                                                j
3871                                            )),
3872                                        null != e.dropdownCssClass ||
3873                                            null != e.dropdownCss ||
3874                                            null != e.adaptDropdownCssClass)
3875                                    ) {
3876                                        var i = u(
3877                                            e.amdBase + "compat/dropdownCss"
3878                                        );
3879                                        e.dropdownAdapter = y.Decorate(
3880                                            e.dropdownAdapter,
3881                                            i
3882                                        );
3883                                    }
3884                                    e.dropdownAdapter = y.Decorate(
3885                                        e.dropdownAdapter,
3886                                        q
3887                                    );
3888                                }
3889                                if (null == e.selectionAdapter) {
3890                                    if (
3891                                        (e.multiple
3892                                            ? (e.selectionAdapter = h)
3893                                            : (e.selectionAdapter = p),
3894                                        null != e.placeholder &&
3895                                            (e.selectionAdapter = y.Decorate(
3896                                                e.selectionAdapter,
3897                                                f
3898                                            )),
3899                                        e.allowClear &&
3900                                            (e.selectionAdapter = y.Decorate(
3901                                                e.selectionAdapter,
3902                                                g
3903                                            )),
3904                                        e.multiple &&
3905                                            (e.selectionAdapter = y.Decorate(
3906                                                e.selectionAdapter,
3907                                                m
3908                                            )),
3909                                        null != e.containerCssClass ||
3910                                            null != e.containerCss ||
3911                                            null != e.adaptContainerCssClass)
3912                                    ) {
3913                                        var o = u(
3914                                            e.amdBase + "compat/containerCss"
3915                                        );
3916                                        e.selectionAdapter = y.Decorate(
3917                                            e.selectionAdapter,
3918                                            o
3919                                        );
3920                                    }
3921                                    e.selectionAdapter = y.Decorate(
3922                                        e.selectionAdapter,
3923                                        v
3924                                    );
3925                                }
3926                                (e.language = this._resolveLanguage(
3927                                    e.language
3928                                )),
3929                                    e.language.push("en");
3930                                for (
3931                                    var s = [], a = 0;
3932                                    a < e.language.length;
3933                                    a++
3934                                ) {
3935                                    var l = e.language[a];
3936                                    -1 === s.indexOf(l) && s.push(l);
3937                                }
3938                                return (
3939                                    (e.language = s),
3940                                    (e.translations = this._processTranslations(
3941                                        e.language,
3942                                        e.debug
3943                                    )),
3944                                    e
3945                                );
3946                            }),
3947                            (n.prototype.reset = function () {
3948                                function a(e) {
3949                                    return e.replace(
3950                                        /[^\u0000-\u007E]/g,
3951                                        function (e) {
3952                                            return t[e] || e;
3953                                        }
3954                                    );
3955                                }
3956                                this.defaults = {
3957                                    amdBase: "./",
3958                                    amdLanguageBase: "./i18n/",
3959                                    closeOnSelect: !0,
3960                                    debug: !1,
3961                                    dropdownAutoWidth: !1,
3962                                    escapeMarkup: y.escapeMarkup,
3963                                    language: {},
3964                                    matcher: function e(t, n) {
3965                                        if ("" === c.trim(t.term)) return n;
3966                                        if (
3967                                            n.children &&
3968                                            0 < n.children.length
3969                                        ) {
3970                                            for (
3971                                                var r = c.extend(!0, {}, n),
3972                                                    i = n.children.length - 1;
3973                                                0 <= i;
3974                                                i--
3975                                            )
3976                                                null == e(t, n.children[i]) &&
3977                                                    r.children.splice(i, 1);
3978                                            return 0 < r.children.length
3979                                                ? r
3980                                                : e(t, r);
3981                                        }
3982                                        var o = a(n.text).toUpperCase(),
3983                                            s = a(t.term).toUpperCase();
3984                                        return -1 < o.indexOf(s) ? n : null;
3985                                    },
3986                                    minimumInputLength: 0,
3987                                    maximumInputLength: 0,
3988                                    maximumSelectionLength: 0,
3989                                    minimumResultsForSearch: 0,
3990                                    selectOnClose: !1,
3991                                    scrollAfterSelect: !1,
3992                                    sorter: function (e) {
3993                                        return e;
3994                                    },
3995                                    templateResult: function (e) {
3996                                        return e.text;
3997                                    },
3998                                    templateSelection: function (e) {
3999                                        return e.text;
4000                                    },
4001                                    theme: "default",
4002                                    width: "resolve",
4003                                };
4004                            }),
4005                            (n.prototype.applyFromElement = function (e, t) {
4006                                var n = e.language,
4007                                    r = this.defaults.language,
4008                                    i = t.prop("lang"),
4009                                    o = t.closest("[lang]").prop("lang"),
4010                                    s = Array.prototype.concat.call(
4011                                        this._resolveLanguage(i),
4012                                        this._resolveLanguage(n),
4013                                        this._resolveLanguage(r),
4014                                        this._resolveLanguage(o)
4015                                    );
4016                                return (e.language = s), e;
4017                            }),
4018                            (n.prototype._resolveLanguage = function (e) {
4019                                if (!e) return [];
4020                                if (c.isEmptyObject(e)) return [];
4021                                if (c.isPlainObject(e)) return [e];
4022                                var t;
4023                                t = c.isArray(e) ? e : [e];
4024                                for (var n = [], r = 0; r < t.length; r++)
4025                                    if (
4026                                        (n.push(t[r]),
4027                                        "string" == typeof t[r] &&
4028                                            0 < t[r].indexOf("-"))
4029                                    ) {
4030                                        var i = t[r].split("-")[0];
4031                                        n.push(i);
4032                                    }
4033                                return n;
4034                            }),
4035                            (n.prototype._processTranslations = function (
4036                                e,
4037                                t
4038                            ) {
4039                                for (
4040                                    var n = new s(), r = 0;
4041                                    r < e.length;
4042                                    r++
4043                                ) {
4044                                    var i = new s(),
4045                                        o = e[r];
4046                                    if ("string" == typeof o)
4047                                        try {
4048                                            i = s.loadPath(o);
4049                                        } catch (e) {
4050                                            try {
4051                                                (o =
4052                                                    this.defaults
4053                                                        .amdLanguageBase + o),
4054                                                    (i = s.loadPath(o));
4055                                            } catch (e) {
4056                                                t &&
4057                                                    window.console &&
4058                                                    console.warn &&
4059                                                    console.warn(
4060                                                        'Select2: The language file for "' +
4061                                                            o +
4062                                                            '" could not be automatically loaded. A fallback will be used instead.'
4063                                                    );
4064                                            }
4065                                        }
4066                                    else i = c.isPlainObject(o) ? new s(o) : o;
4067                                    n.extend(i);
4068                                }
4069                                return n;
4070                            }),
4071                            (n.prototype.set = function (e, t) {
4072                                var n = {};
4073                                n[c.camelCase(e)] = t;
4074                                var r = y._convertData(n);
4075                                c.extend(!0, this.defaults, r);
4076                            }),
4077                            new n()
4078                        );
4079                    }
4080                ),
4081                e.define(
4082                    "select2/options",
4083                    ["require", "jquery", "./defaults", "./utils"],
4084                    function (r, d, i, p) {
4085                        function e(e, t) {
4086                            if (
4087                                ((this.options = e),
4088                                null != t && this.fromElement(t),
4089                                null != t &&
4090                                    (this.options = i.applyFromElement(
4091                                        this.options,
4092                                        t
4093                                    )),
4094                                (this.options = i.apply(this.options)),
4095                                t && t.is("input"))
4096                            ) {
4097                                var n = r(
4098                                    this.get("amdBase") + "compat/inputData"
4099                                );
4100                                this.options.dataAdapter = p.Decorate(
4101                                    this.options.dataAdapter,
4102                                    n
4103                                );
4104                            }
4105                        }
4106                        return (
4107                            (e.prototype.fromElement = function (e) {
4108                                var t = ["select2"];
4109                                null == this.options.multiple &&
4110                                    (this.options.multiple =
4111                                        e.prop("multiple")),
4112                                    null == this.options.disabled &&
4113                                        (this.options.disabled =
4114                                            e.prop("disabled")),
4115                                    null == this.options.dir &&
4116                                        (e.prop("dir")
4117                                            ? (this.options.dir = e.prop("dir"))
4118                                            : e.closest("[dir]").prop("dir")
4119                                            ? (this.options.dir = e
4120                                                  .closest("[dir]")
4121                                                  .prop("dir"))
4122                                            : (this.options.dir = "ltr")),
4123                                    e.prop("disabled", this.options.disabled),
4124                                    e.prop("multiple", this.options.multiple),
4125                                    p.GetData(e[0], "select2Tags") &&
4126                                        (this.options.debug &&
4127                                            window.console &&
4128                                            console.warn &&
4129                                            console.warn(
4130                                                'Select2: The `data-select2-tags` attribute has been changed to use the `data-data` and `data-tags="true"` attributes and will be removed in future versions of Select2.'
4131                                            ),
4132                                        p.StoreData(
4133                                            e[0],
4134                                            "data",
4135                                            p.GetData(e[0], "select2Tags")
4136                                        ),
4137                                        p.StoreData(e[0], "tags", !0)),
4138                                    p.GetData(e[0], "ajaxUrl") &&
4139                                        (this.options.debug &&
4140                                            window.console &&
4141                                            console.warn &&
4142                                            console.warn(
4143                                                "Select2: The `data-ajax-url` attribute has been changed to `data-ajax--url` and support for the old attribute will be removed in future versions of Select2."
4144                                            ),
4145                                        e.attr(
4146                                            "ajax--url",
4147                                            p.GetData(e[0], "ajaxUrl")
4148                                        ),
4149                                        p.StoreData(
4150                                            e[0],
4151                                            "ajax-Url",
4152                                            p.GetData(e[0], "ajaxUrl")
4153                                        ));
4154                                var n = {};
4155                                function r(e, t) {
4156                                    return t.toUpperCase();
4157                                }
4158                                for (
4159                                    var i = 0;
4160                                    i < e[0].attributes.length;
4161                                    i++
4162                                ) {
4163                                    var o = e[0].attributes[i].name,
4164                                        s = "data-";
4165                                    if (o.substr(0, s.length) == s) {
4166                                        var a = o.substring(s.length),
4167                                            l = p.GetData(e[0], a);
4168                                        n[a.replace(/-([a-z])/g, r)] = l;
4169                                    }
4170                                }
4171                                d.fn.jquery &&
4172                                    "1." == d.fn.jquery.substr(0, 2) &&
4173                                    e[0].dataset &&
4174                                    (n = d.extend(!0, {}, e[0].dataset, n));
4175                                var c = d.extend(!0, {}, p.GetData(e[0]), n);
4176                                for (var u in (c = p._convertData(c)))
4177                                    -1 < d.inArray(u, t) ||
4178                                        (d.isPlainObject(this.options[u])
4179                                            ? d.extend(this.options[u], c[u])
4180                                            : (this.options[u] = c[u]));
4181                                return this;
4182                            }),
4183                            (e.prototype.get = function (e) {
4184                                return this.options[e];
4185                            }),
4186                            (e.prototype.set = function (e, t) {
4187                                this.options[e] = t;
4188                            }),
4189                            e
4190                        );
4191                    }
4192                ),
4193                e.define(
4194                    "select2/core",
4195                    ["jquery", "./options", "./utils", "./keys"],
4196                    function (o, c, u, r) {
4197                        var d = function (e, t) {
4198                            null != u.GetData(e[0], "select2") &&
4199                                u.GetData(e[0], "select2").destroy(),
4200                                (this.$element = e),
4201                                (this.id = this._generateId(e)),
4202                                (t = t || {}),
4203                                (this.options = new c(t, e)),
4204                                d.__super__.constructor.call(this);
4205                            var n = e.attr("tabindex") || 0;
4206                            u.StoreData(e[0], "old-tabindex", n),
4207                                e.attr("tabindex", "-1");
4208                            var r = this.options.get("dataAdapter");
4209                            this.dataAdapter = new r(e, this.options);
4210                            var i = this.render();
4211                            this._placeContainer(i);
4212                            var o = this.options.get("selectionAdapter");
4213                            (this.selection = new o(e, this.options)),
4214                                (this.$selection = this.selection.render()),
4215                                this.selection.position(this.$selection, i);
4216                            var s = this.options.get("dropdownAdapter");
4217                            (this.dropdown = new s(e, this.options)),
4218                                (this.$dropdown = this.dropdown.render()),
4219                                this.dropdown.position(this.$dropdown, i);
4220                            var a = this.options.get("resultsAdapter");
4221                            (this.results = new a(
4222                                e,
4223                                this.options,
4224                                this.dataAdapter
4225                            )),
4226                                (this.$results = this.results.render()),
4227                                this.results.position(
4228                                    this.$results,
4229                                    this.$dropdown
4230                                );
4231                            var l = this;
4232                            this._bindAdapters(),
4233                                this._registerDomEvents(),
4234                                this._registerDataEvents(),
4235                                this._registerSelectionEvents(),
4236                                this._registerDropdownEvents(),
4237                                this._registerResultsEvents(),
4238                                this._registerEvents(),
4239                                this.dataAdapter.current(function (e) {
4240                                    l.trigger("selection:update", { data: e });
4241                                }),
4242                                e.addClass("select2-hidden-accessible"),
4243                                e.attr("aria-hidden", "true"),
4244                                this._syncAttributes(),
4245                                u.StoreData(e[0], "select2", this),
4246                                e.data("select2", this);
4247                        };
4248                        return (
4249                            u.Extend(d, u.Observable),
4250                            (d.prototype._generateId = function (e) {
4251                                return (
4252                                    "select2-" +
4253                                    (null != e.attr("id")
4254                                        ? e.attr("id")
4255                                        : null != e.attr("name")
4256                                        ? e.attr("name") +
4257                                          "-" +
4258                                          u.generateChars(2)
4259                                        : u.generateChars(4)
4260                                    ).replace(/(:|\.|\[|\]|,)/g, "")
4261                                );
4262                            }),
4263                            (d.prototype._placeContainer = function (e) {
4264                                e.insertAfter(this.$element);
4265                                var t = this._resolveWidth(
4266                                    this.$element,
4267                                    this.options.get("width")
4268                                );
4269                                null != t && e.css("width", t);
4270                            }),
4271                            (d.prototype._resolveWidth = function (e, t) {
4272                                var n =
4273                                    /^width:(([-+]?([0-9]*\.)?[0-9]+)(px|em|ex|%|in|cm|mm|pt|pc))/i;
4274                                if ("resolve" == t) {
4275                                    var r = this._resolveWidth(e, "style");
4276                                    return null != r
4277                                        ? r
4278                                        : this._resolveWidth(e, "element");
4279                                }
4280                                if ("element" == t) {
4281                                    var i = e.outerWidth(!1);
4282                                    return i <= 0 ? "auto" : i + "px";
4283                                }
4284                                if ("style" != t)
4285                                    return "computedstyle" != t
4286                                        ? t
4287                                        : window.getComputedStyle(e[0]).width;
4288                                var o = e.attr("style");
4289                                if ("string" != typeof o) return null;
4290                                for (
4291                                    var s = o.split(";"), a = 0, l = s.length;
4292                                    a < l;
4293                                    a += 1
4294                                ) {
4295                                    var c = s[a].replace(/\s/g, "").match(n);
4296                                    if (null !== c && 1 <= c.length)
4297                                        return c[1];
4298                                }
4299                                return null;
4300                            }),
4301                            (d.prototype._bindAdapters = function () {
4302                                this.dataAdapter.bind(this, this.$container),
4303                                    this.selection.bind(this, this.$container),
4304                                    this.dropdown.bind(this, this.$container),
4305                                    this.results.bind(this, this.$container);
4306                            }),
4307                            (d.prototype._registerDomEvents = function () {
4308                                var t = this;
4309                                this.$element.on("change.select2", function () {
4310                                    t.dataAdapter.current(function (e) {
4311                                        t.trigger("selection:update", {
4312                                            data: e,
4313                                        });
4314                                    });
4315                                }),
4316                                    this.$element.on(
4317                                        "focus.select2",
4318                                        function (e) {
4319                                            t.trigger("focus", e);
4320                                        }
4321                                    ),
4322                                    (this._syncA = u.bind(
4323                                        this._syncAttributes,
4324                                        this
4325                                    )),
4326                                    (this._syncS = u.bind(
4327                                        this._syncSubtree,
4328                                        this
4329                                    )),
4330                                    this.$element[0].attachEvent &&
4331                                        this.$element[0].attachEvent(
4332                                            "onpropertychange",
4333                                            this._syncA
4334                                        );
4335                                var e =
4336                                    window.MutationObserver ||
4337                                    window.WebKitMutationObserver ||
4338                                    window.MozMutationObserver;
4339                                null != e
4340                                    ? ((this._observer = new e(function (e) {
4341                                          t._syncA(), t._syncS(null, e);
4342                                      })),
4343                                      this._observer.observe(this.$element[0], {
4344                                          attributes: !0,
4345                                          childList: !0,
4346                                          subtree: !1,
4347                                      }))
4348                                    : this.$element[0].addEventListener &&
4349                                      (this.$element[0].addEventListener(
4350                                          "DOMAttrModified",
4351                                          t._syncA,
4352                                          !1
4353                                      ),
4354                                      this.$element[0].addEventListener(
4355                                          "DOMNodeInserted",
4356                                          t._syncS,
4357                                          !1
4358                                      ),
4359                                      this.$element[0].addEventListener(
4360                                     
4360     "DOMNodeRemoved",
4361                                          t._syncS,
4362                                          !1
4363                                      ));
4364                            }),
4365                            (d.prototype._registerDataEvents = function () {
4366                                var n = this;
4367                                this.dataAdapter.on("*", function (e, t) {
4368                                    n.trigger(e, t);
4369                                });
4370                            }),
4371                            (d.prototype._registerSelectionEvents =
4372                                function () {
4373                                    var n = this,
4374                                        r = ["toggle", "focus"];
4375                                    this.selection.on("toggle", function () {
4376                                        n.toggleDropdown();
4377                                    }),
4378                                        this.selection.on(
4379                                            "focus",
4380                                            function (e) {
4381                                                n.focus(e);
4382                                            }
4383                                        ),
4384                                        this.selection.on("*", function (e, t) {
4385                                            -1 === o.inArray(e, r) &&
4386                                                n.trigger(e, t);
4387                                        });
4388                                }),
4389                            (d.prototype._registerDropdownEvents = function () {
4390                                var n = this;
4391                                this.dropdown.on("*", function (e, t) {
4392                                    n.trigger(e, t);
4393                                });
4394                            }),
4395                            (d.prototype._registerResultsEvents = function () {
4396                                var n = this;
4397                                this.results.on("*", function (e, t) {
4398                                    n.trigger(e, t);
4399                                });
4400                            }),
4401                            (d.prototype._registerEvents = function () {
4402                                var n = this;
4403                                this.on("open", function () {
4404                                    n.$container.addClass(
4405                                        "select2-container--open"
4406                                    );
4407                                }),
4408                                    this.on("close", function () {
4409                                        n.$container.removeClass(
4410                                            "select2-container--open"
4411                                        );
4412                                    }),
4413                                    this.on("enable", function () {
4414                                        n.$container.removeClass(
4415                                            "select2-container--disabled"
4416                                        );
4417                                    }),
4418                                    this.on("disable", function () {
4419                                        n.$container.addClass(
4420                                            "select2-container--disabled"
4421                                        );
4422                                    }),
4423                                    this.on("blur", function () {
4424                                        n.$container.removeClass(
4425                                            "select2-container--focus"
4426                                        );
4427                                    }),
4428                                    this.on("query", function (t) {
4429                                        n.isOpen() || n.trigger("open", {}),
4430                                            this.dataAdapter.query(
4431                                                t,
4432                                                function (e) {
4433                                                    n.trigger("results:all", {
4434                                                        data: e,
4435                                                        query: t,
4436                                                    });
4437                                                }
4438                                            );
4439                                    }),
4440                                    this.on("query:append", function (t) {
4441                                        this.dataAdapter.query(t, function (e) {
4442                                            n.trigger("results:append", {
4443                                                data: e,
4444                                                query: t,
4445                                            });
4446                                        });
4447                                    }),
4448                                    this.on("keypress", function (e) {
4449                                        var t = e.which;
4450                                        n.isOpen()
4451                                            ? t === r.ESC ||
4452                                              t === r.TAB ||
4453                                              (t === r.UP && e.altKey)
4454                                                ? (n.close(e),
4455                                                  e.preventDefault())
4456                                                : t === r.ENTER
4457                                                ? (n.trigger(
4458                                                      "results:select",
4459                                                      {}
4460                                                  ),
4461                                                  e.preventDefault())
4462                                                : t === r.SPACE && e.ctrlKey
4463                                                ? (n.trigger(
4464                                                      "results:toggle",
4465                                                      {}
4466                                                  ),
4467                                                  e.preventDefault())
4468                                                : t === r.UP
4469                                                ? (n.trigger(
4470                                                      "results:previous",
4471                                                      {}
4472                                                  ),
4473                                                  e.preventDefault())
4474                                                : t === r.DOWN &&
4475                                                  (n.trigger(
4476                                                      "results:next",
4477                                                      {}
4478                                                  ),
4479                                                  e.preventDefault())
4480                                            : (t === r.ENTER ||
4481                                                  t === r.SPACE ||
4482                                                  (t === r.DOWN && e.altKey)) &&
4483                                              (n.open(), e.preventDefault());
4484                                    });
4485                            }),
4486                            (d.prototype._syncAttributes = function () {
4487                                this.options.set(
4488                                    "disabled",
4489                                    this.$element.prop("disabled")
4490                                ),
4491                                    this.isDisabled()
4492                                        ? (this.isOpen() && this.close(),
4493                                          this.trigger("disable", {}))
4494                                        : this.trigger("enable", {});
4495                            }),
4496                            (d.prototype._isChangeMutation = function (e, t) {
4497                                var n = !1,
4498                                    r = this;
4499                                if (
4500                                    !e ||
4501                                    !e.target ||
4502                                    "OPTION" === e.target.nodeName ||
4503                                    "OPTGROUP" === e.target.nodeName
4504                                ) {
4505                                    if (t)
4506                                        if (
4507                                            t.addedNodes &&
4508                                            0 < t.addedNodes.length
4509                                        )
4510                                            for (
4511                                                var i = 0;
4512                                                i < t.addedNodes.length;
4513                                                i++
4514                                            ) {
4515                                                t.addedNodes[i].selected &&
4516                                                    (n = !0);
4517                                            }
4518                                        else
4519                                            t.removedNodes &&
4520                                            0 < t.removedNodes.length
4521                                                ? (n = !0)
4522                                                : o.isArray(t) &&
4523                                                  o.each(t, function (e, t) {
4524                                                      if (
4525                                                          r._isChangeMutation(
4526                                                              e,
4527                                                              t
4528                                                          )
4529                                                      )
4530                                                          return !(n = !0);
4531                                                  });
4532                                    else n = !0;
4533                                    return n;
4534                                }
4535                            }),
4536                            (d.prototype._syncSubtree = function (e, t) {
4537                                var n = this._isChangeMutation(e, t),
4538                                    r = this;
4539                                n &&
4540                                    this.dataAdapter.current(function (e) {
4541                                        r.trigger("selection:update", {
4542                                            data: e,
4543                                        });
4544                                    });
4545                            }),
4546                            (d.prototype.trigger = function (e, t) {
4547                                var n = d.__super__.trigger,
4548                                    r = {
4549                                        open: "opening",
4550                                        close: "closing",
4551                                        select: "selecting",
4552                                        unselect: "unselecting",
4553                                        clear: "clearing",
4554                                    };
4555                                if ((void 0 === t && (t = {}), e in r)) {
4556                                    var i = r[e],
4557                                        o = { prevented: !1, name: e, args: t };
4558                                    if ((n.call(this, i, o), o.prevented))
4559                                        return void (t.prevented = !0);
4560                                }
4561                                n.call(this, e, t);
4562                            }),
4563                            (d.prototype.toggleDropdown = function () {
4564                                this.isDisabled() ||
4565                                    (this.isOpen()
4566                                        ? this.close()
4567                                        : this.open());
4568                            }),
4569                            (d.prototype.open = function () {
4570                                this.isOpen() ||
4571                                    this.isDisabled() ||
4572                                    this.trigger("query", {});
4573                            }),
4574                            (d.prototype.close = function (e) {
4575                                this.isOpen() &&
4576                                    this.trigger("close", { originalEvent: e });
4577                            }),
4578                            (d.prototype.isEnabled = function () {
4579                                return !this.isDisabled();
4580                            }),
4581                            (d.prototype.isDisabled = function () {
4582                                return this.options.get("disabled");
4583                            }),
4584                            (d.prototype.isOpen = function () {
4585                                return this.$container.hasClass(
4586                                    "select2-container--open"
4587                                );
4588                            }),
4589                            (d.prototype.hasFocus = function () {
4590                                return this.$container.hasClass(
4591                                    "select2-container--focus"
4592                                );
4593                            }),
4594                            (d.prototype.focus = function (e) {
4595                                this.hasFocus() ||
4596                                    (this.$container.addClass(
4597                                        "select2-container--focus"
4598                                    ),
4599                                    this.trigger("focus", {}));
4600                            }),
4601                            (d.prototype.enable = function (e) {
4602                                this.options.get("debug") &&
4603                                    window.console &&
4604                                    console.warn &&
4605                                    console.warn(
4606                                        'Select2: The `select2("enable")` method has been deprecated and will be removed in later Select2 versions. Use $element.prop("disabled") instead.'
4607                                    ),
4608                                    (null != e && 0 !== e.length) || (e = [!0]);
4609                                var t = !e[0];
4610                                this.$element.prop("disabled", t);
4611                            }),
4612                            (d.prototype.data = function () {
4613                                this.options.get("debug") &&
4614                                    0 < arguments.length &&
4615                                    window.console &&
4616                                    console.warn &&
4617                                    console.warn(
4618                                        'Select2: Data can no longer be set using `select2("data")`. You should consider setting the value instead using `$element.val()`.'
4619                                    );
4620                                var t = [];
4621                                return (
4622                                    this.dataAdapter.current(function (e) {
4623                                        t = e;
4624                                    }),
4625                                    t
4626                                );
4627                            }),
4628                            (d.prototype.val = function (e) {
4629                                if (
4630                                    (this.options.get("debug") &&
4631                                        window.console &&
4632                                        console.warn &&
4633                                        console.warn(
4634                                            'Select2: The `select2("val")` method has been deprecated and will be removed in later Select2 versions. Use $element.val() instead.'
4635                                        ),
4636                                    null == e || 0 === e.length)
4637                                )
4638                                    return this.$element.val();
4639                                var t = e[0];
4640                                o.isArray(t) &&
4641                                    (t = o.map(t, function (e) {
4642                                        return e.toString();
4643                                    })),
4644                                    this.$element
4645                                        .val(t)
4646                                        .trigger("input")
4647                                        .trigger("change");
4648                            }),
4649                            (d.prototype.destroy = function () {
4650                                this.$container.remove(),
4651                                    this.$element[0].detachEvent &&
4652                                        this.$element[0].detachEvent(
4653                                            "onpropertychange",
4654                                            this._syncA
4655                                        ),
4656                                    null != this._observer
4657                                        ? (this._observer.disconnect(),
4658                                          (this._observer = null))
4659                                        : this.$element[0]
4660                                              .removeEventListener &&
4661                                          (this.$element[0].removeEventListener(
4662                                              "DOMAttrModified",
4663                                              this._syncA,
4664                                              !1
4665                                          ),
4666                                          this.$element[0].removeEventListener(
4667                                              "DOMNodeInserted",
4668                                              this._syncS,
4669                                              !1
4670                                          ),
4671                                          this.$element[0].removeEventListener(
4672                                              "DOMNodeRemoved",
4673                                              this._syncS,
4674                                              !1
4675                                          )),
4676                                    (this._syncA = null),
4677                                    (this._syncS = null),
4678                                    this.$element.off(".select2"),
4679                                    this.$element.attr(
4680                                        "tabindex",
4681                                        u.GetData(
4682                                            this.$element[0],
4683                                            "old-tabindex"
4684                                        )
4685                                    ),
4686                                    this.$element.removeClass(
4687                                        "select2-hidden-accessible"
4688                                    ),
4689                                    this.$element.attr("aria-hidden", "false"),
4690                                    u.RemoveData(this.$element[0]),
4691                                    this.$element.removeData("select2"),
4692                                    this.dataAdapter.destroy(),
4693                                    this.selection.destroy(),
4694                                    this.dropdown.destroy(),
4695                                    this.results.destroy(),
4696                                    (this.dataAdapter = null),
4697                                    (this.selection = null),
4698                                    (this.dropdown = null),
4699                                    (this.results = null);
4700                            }),
4701                            (d.prototype.render = function () {
4702                                var e = o(
4703                                    '<span class="select2 select2-container"><span class="selection"></span><span class="dropdown-wrapper" aria-hidden="true"></span></span>'
4704                                );
4705                                return (
4706                                    e.attr("dir", this.options.get("dir")),
4707                                    (this.$container = e),
4708                                    this.$container.addClass(
4709                                        "select2-container--" +
4710                                            this.options.get("theme")
4711                                    ),
4712                                    u.StoreData(e[0], "element", this.$element),
4713                                    e
4714                                );
4715                            }),
4716                            d
4717                        );
4718                    }
4719                ),
4720                e.define("jquery-mousewheel", ["jquery"], function (e) {
4721                    return e;
4722                }),
4723                e.define(
4724                    "jquery.select2",
4725                    [
4726                        "jquery",
4727                        "jquery-mousewheel",
4728                        "./select2/core",
4729                        "./select2/defaults",
4730                        "./select2/utils",
4731                    ],
4732                    function (i, e, o, t, s) {
4733                        if (null == i.fn.select2) {
4734                            var a = ["open", "close", "destroy"];
4735                            i.fn.select2 = function (t) {
4736                                if ("object" == typeof (t = t || {}))
4737                                    return (
4738                                        this.each(function () {
4739                                            var e = i.extend(!0, {}, t);
4740                                            new o(i(this), e);
4741                                        }),
4742                                        this
4743                                    );
4744                                if ("string" != typeof t)
4745                                    throw new Error(
4746                                        "Invalid arguments for Select2: " + t
4747                                    );
4748                                var n,
4749                                    r = Array.prototype.slice.call(
4750                                        arguments,
4751                                        1
4752                                    );
4753                                return (
4754                                    this.each(function () {
4755                                        var e = s.GetData(this, "select2");
4756                                        null == e &&
4757                                            window.console &&
4758                                            console.error &&
4759                                            console.error(
4760                                                "The select2('" +
4761                                                    t +
4762                                                    "') method was called on an element that is not using Select2."
4763                                            ),
4764                                            (n = e[t].apply(e, r));
4765                                    }),
4766                                    -1 < i.inArray(t, a) ? this : n
4767                                );
4768                            };
4769                        }
4770                        return (
4771                            null == i.fn.select2.defaults &&
4772                                (i.fn.select2.defaults = t),
4773                            o
4774                        );
4775                    }
4776                ),
4777                { define: e.define, require: e.require }
4778            );
4779        })(),
4780        t = e.require("jquery.select2");
4781    return (u.fn.select2.amd = e), t;
4782});

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.