paid membership
paid membership
md */
!function(n) {
"function" == typeof define && define.amd ? define(["jquery"], n) : "object" == typeof module &&
module.exports ? module.exports = function(e, t) {
n(t),
: n(jQuery)
}(function(u) {
var e = function() {
var e = u.fn.select2.amd;
var t, n, r, h, s, o, f, g, m, v, y, _, i, a, w;
function b(e, t) {
return i.call(e, t)
function l(e, t) {
if (e) {
for (o = (e = e.split("/")).length - 1,
e.splice(u, 1),
u -= 1;
if (0 === u || 1 === u && ".." === e[2] || ".." === e[u - 1])
continue;
e = e.join("/")
if ((h || g) && f) {
if (r = n.slice(0, u).join("/"),
h)
s = i,
a = u;
break
if (s)
break;
c = u)
!s && l && (s = l,
a = c),
e = n.join("/"))
return e
function x(t, n) {
return function() {
function A(t) {
return function(e) {
m[t] = e
function D(e) {
if (b(v, e)) {
var t = v[e];
delete v[e],
_[e] = !0,
s.apply(h, t)
return m[e]
function c(e) {
e = e.substring(n + 1, e.length)),
[t, e]
function S(e) {
return e ? c(e) : []
m = {},
v = {},
y = {},
_ = {},
i = Object.prototype.hasOwnProperty,
a = [].slice,
w = /\.js$/,
f = function(e, t) {
return e = r[1],
return function(e) {
return l(e, t)
e = r[1],
i && (n = D(i))),
f: i ? i + "!" + e : e,
n: e,
pr: i,
p: n
g={
require: function(e) {
return x(e)
},
exports: function(e) {
var t = m[e];
},
module: function(e) {
return {
id: e,
uri: "",
exports: m[e],
config: function(e) {
return function() {
}(e)
},
s = function(e, t, n, r) {
if (c = S(r = r || e),
"undefined" == p || "function" == p) {
l = 0; l < t.length; l += 1)
d[l] = g.require(e);
d[l] = g.exports(e),
u = !0;
i = d[l] = g.module(e);
d[l] = D(s);
else {
if (!a.p)
d[l] = m[s]
o = n ? n.apply(m[e], d) : void 0,
e && (i && i.exports !== h && i.exports !== m[e] ? m[e] = i.exports : o === h && u || (m[e] =
o))
} else
e && (m[e] = n)
t = n = o = function(e, t, n, r, i) {
if ("string" == typeof e)
if (!e.splice) {
!t)
return;
t.splice ? (e = t,
t = n,
n = null) : e = h
return t = t || function() {}
r = i),
r ? s(h, e, t, n) : setTimeout(function() {
s(h, e, t, n)
}, 4),
,
o.config = function(e) {
return o(e)
t._defined = m,
(r = function(e, t, n) {
if ("string" != typeof e)
throw new Error("See almond README: incorrect module build, no module name");
t.splice || (n = t,
t = []),
).amd = {
jQuery: !0
},
e.requirejs = t,
e.require = n,
e.define = r),
var e = u || $;
}),
var i = {};
function u(e) {
var t = e.prototype
, n = [];
for (var r in t) {
"function" == typeof t[r] && "constructor" !== r && n.push(r)
return n
i.Extend = function(e, t) {
var n = {}.hasOwnProperty;
function r() {
this.constructor = e
for (var i in t)
e.prototype = new r,
e.__super__ = t.prototype,
i.Decorate = function(r, i) {
var e = u(i)
, t = u(r);
function s() {
var e = Array.prototype.unshift
, t = i.prototype.constructor.length
, n = r.prototype.constructor;
n = i.prototype.constructor),
n.apply(this, arguments)
i.displayName = r.displayName,
this.constructor = s
}
var o = t[n];
s.prototype[o] = r.prototype[o]
function a(e) {
var n = i.prototype[e];
return function() {
n.apply(this, arguments)
var c = e[l];
s.prototype[c] = a(c)
return s
function e() {
this.listeners = {}
e.prototype.on = function(e, t) {
e.prototype.trigger = function(e) {
var t = Array.prototype.slice
, n = t.call(arguments, 1);
e.prototype.invoke = function(e, t) {
e[n].apply(this, t)
i.Observable = e,
i.generateChars = function(e) {
t += Math.floor(36 * Math.random()).toString(36)
return t
i.bind = function(e, t) {
return function() {
e.apply(t, arguments)
i._convertData = function(e) {
for (var t in e) {
var n = t.split("-")
, r = e;
if (1 !== n.length) {
var s = n[i];
r = r[s]
delete e[t]
return e
i.hasScroll = function(e, t) {
var n = s(t)
, r = t.style.overflowX
, i = t.style.overflowY;
return (r !== i || "hidden" !== i && "visible" !== i) && ("scroll" === r || "scroll" === i ||
(n.innerHeight() < t.scrollHeight || n.innerWidth() < t.scrollWidth))
i.escapeMarkup = function(e) {
var t = {
"\\": "\",
"&": "&",
"<": "<",
">": ">",
'"': """,
"'": "'",
"/": "/"
};
return t[e]
})
i.__cache = {};
var n = 0;
var t = e.getAttribute("data-select2-id");
t = n.toString())),
i.StoreData = function(e, t, n) {
var r = i.GetUniqueElementId(e);
i.__cache[r][t] = n
i.GetData = function(e, t) {
var n = i.GetUniqueElementId(e);
i.RemoveData = function(e) {
var t = i.GetUniqueElementId(e);
e.removeAttribute("data-select2-id")
}
i.copyNonInternalCssClasses = function(e, t) {
var n = e.getAttribute("class").trim().split(/\s+/);
n = n.filter(function(e) {
});
var r = t.getAttribute("class").trim().split(/\s+/);
r = r.filter(function(e) {
});
var i = n.concat(r);
}),
function r(e, t, n) {
this.$element = e,
this.data = n,
this.options = t,
r.__super__.constructor.call(this)
r.prototype.render = function() {
this.$results = e
,
r.prototype.clear = function() {
this.$results.empty()
r.prototype.displayMessage = function(e) {
var t = this.options.get("escapeMarkup");
this.clear(),
this.hideLoading();
, r = this.options.get("translations").get(e.message);
n.append(t(r(e.args))),
this.$results.append(n)
r.prototype.hideMessages = function() {
this.$results.find(".select2-results__message").remove()
r.prototype.append = function(e) {
this.hideLoading();
var t = [];
e.results = this.sort(e.results);
var r = e.results[n]
, i = this.option(r);
t.push(i)
this.$results.append(t)
} else
0 === this.$results.children().length && this.trigger("results:message", {
message: "noResults"
})
r.prototype.position = function(e, t) {
t.find(".select2-results").append(e)
r.prototype.sort = function(e) {
return this.options.get("sorter")(e)
r.prototype.highlightFirstItem = function() {
var e = this.$results.find(".select2-results__option[aria-selected]")
, t = e.filter("[aria-selected=true]");
this.ensureHighlightVisible()
r.prototype.setClasses = function() {
var t = this;
this.data.current(function(e) {
var r = e.map(function(e) {
return e.id.toString()
});
t.$results.find(".select2-results__option[aria-selected]").each(function() {
var e = h(this)
, t = f.GetData(this, "data")
, n = "" + t.id;
null != t.element && t.element.selected || null == t.element && -1 < r.indexOf(n) ?
e.attr("aria-selected", "true") : e.attr("aria-selected", "false")
})
})
r.prototype.showLoading = function(e) {
this.hideLoading();
var t = {
disabled: !0,
loading: !0,
text: this.options.get("translations").get("searching")(e)
, n = this.option(t);
this.$results.prepend(n)
r.prototype.hideLoading = function() {
this.$results.find(".loading-results").remove()
r.prototype.option = function(e) {
var t = document.createElement("li");
t.className = "select2-results__option";
var n = {
role: "option",
"aria-selected": "false"
, r = window.Element.prototype.matches ||
window.Element.prototype.msMatchesSelector ||
window.Element.prototype.webkitMatchesSelector;
for (var i in (null != e.element && r.call(e.element, ":disabled") || null == e.element &&
e.disabled) && (delete n["aria-selected"],
n["aria-disabled"] = "true"),
n["aria-label"] = e.text,
delete n["aria-selected"]),
n) {
var s = n[i];
t.setAttribute(i, s)
if (e.children) {
var o = h(t)
, a = document.createElement("strong");
a.className = "select2-results__group";
h(a);
this.template(e, a);
var u = e.children[c]
, d = this.option(u);
l.push(d)
var p = h("<ul></ul>", {
});
p.append(l),
o.append(a),
o.append(p)
} else
this.template(e, t);
r.prototype.bind = function(t, e) {
var l = this
, n = t.id + "-results";
this.$results.attr("id", n),
t.on("results:all", function(e) {
l.clear(),
l.append(e.data),
l.highlightFirstItem())
}),
t.on("results:append", function(e) {
l.append(e.data),
}),
t.on("query", function(e) {
l.hideMessages(),
l.showLoading(e)
}),
t.on("select", function() {
}),
t.on("unselect", function() {
}),
t.on("open", function() {
l.$results.attr("aria-expanded", "true"),
l.$results.attr("aria-hidden", "false"),
l.setClasses(),
l.ensureHighlightVisible()
}),
t.on("close", function() {
l.$results.attr("aria-expanded", "false"),
l.$results.attr("aria-hidden", "true"),
l.$results.removeAttr("aria-activedescendant")
}),
t.on("results:toggle", function() {
var e = l.getHighlightedResults();
}),
t.on("results:select", function() {
var e = l.getHighlightedResults();
if (0 !== e.length) {
data: t
})
}),
t.on("results:previous", function() {
var e = l.getHighlightedResults()
, t = l.$results.find("[aria-selected]")
, n = t.index(e);
var r = n - 1;
i.trigger("mouseenter");
var s = l.$results.offset().top
, o = i.offset().top
, a = l.$results.scrollTop() + (o - s);
}),
t.on("results:next", function() {
var e = l.getHighlightedResults()
, t = l.$results.find("[aria-selected]")
, n = t.index(e) + 1;
var r = t.eq(n);
r.trigger("mouseenter");
, s = r.offset().top + r.outerHeight(!1)
, o = l.$results.scrollTop() + s - i;
}),
t.on("results:focus", function(e) {
e.element[0].classList.add("select2-results__option--highlighted")
}),
t.on("results:message", function(e) {
l.displayMessage(e)
}),
var t = l.$results.scrollTop()
, n = l.$results.get(0).scrollHeight - t + e.deltaY
r ? (l.$results.scrollTop(0),
e.preventDefault(),
e.preventDefault(),
e.stopPropagation())
}),
var t = h(this)
, n = f.GetData(this, "data");
originalEvent: e,
data: n
}) : l.options.get("multiple") ? l.trigger("unselect", {
originalEvent: e,
data: n
}) : l.trigger("close", {})
}),
l.getHighlightedResults().removeClass("select2-results__option--highlighted"),
l.trigger("results:focus", {
data: t,
element: h(this)
})
})
r.prototype.getHighlightedResults = function() {
return this.$results.find(".select2-results__option--highlighted")
}
r.prototype.destroy = function() {
this.$results.remove()
r.prototype.ensureHighlightVisible = function() {
var e = this.getHighlightedResults();
if (0 !== e.length) {
var t = this.$results.find("[aria-selected]").index(e)
, n = this.$results.offset().top
, r = e.offset().top
, i = this.$results.scrollTop() + (r - n)
, s = r - n;
i -= 2 * e.outerHeight(!1),
r.prototype.template = function(e, t) {
var n = this.options.get("templateResult")
, r = this.options.get("escapeMarkup")
, i = n(e, t);
}),
return {
BACKSPACE: 8,
TAB: 9,
ENTER: 13,
SHIFT: 16,
CTRL: 17,
ALT: 18,
ESC: 27,
SPACE: 32,
PAGE_UP: 33,
PAGE_DOWN: 34,
END: 35,
HOME: 36,
LEFT: 37,
UP: 38,
RIGHT: 39,
DOWN: 40,
DELETE: 46
}),
function s(e, t) {
this.$element = e,
this.options = t,
s.__super__.constructor.call(this)
s.prototype.render = function() {
return this._tabindex = 0,
null != r.GetData(this.$element[0], "old-tabindex") ? this._tabindex = r.GetData(this.
$element[0], "old-tabindex") : null != this.$element.attr("tabindex") && (this._tabindex = this.
$element.attr("tabindex")),
e.attr("title", this.$element.attr("title")),
e.attr("tabindex", this._tabindex),
e.attr("aria-disabled", "false"),
this.$selection = e
s.prototype.bind = function(e, t) {
var n = this
, r = e.id + "-results";
this.container = e,
this.$selection.on("focus", function(e) {
n.trigger("focus", e)
}),
this.$selection.on("blur", function(e) {
n._handleBlur(e)
}),
this.$selection.on("keydown", function(e) {
n.trigger("keypress", e),
}),
e.on("results:focus", function(e) {
n.$selection.attr("aria-activedescendant", e.data._resultId)
}),
e.on("selection:update", function(e) {
n.update(e.data)
}),
e.on("open", function() {
n.$selection.attr("aria-expanded", "true"),
n.$selection.attr("aria-owns", r),
n._attachCloseHandler(e)
}),
e.on("close", function() {
n.$selection.attr("aria-expanded", "false"),
n.$selection.removeAttr("aria-activedescendant"),
n.$selection.removeAttr("aria-owns"),
n.$selection.trigger("focus"),
n._detachCloseHandler(e)
}),
e.on("enable", function() {
n.$selection.attr("tabindex", n._tabindex),
n.$selection.attr("aria-disabled", "false")
}),
e.on("disable", function() {
n.$selection.attr("tabindex", "-1"),
n.$selection.attr("aria-disabled", "true")
})
s.prototype._handleBlur = function(e) {
var t = this;
window.setTimeout(function() {
}, 1)
s.prototype._attachCloseHandler = function(e) {
var t = n(e.target).closest(".select2");
n(".select2.select2-container--open").each(function() {
this != t[0] && r.GetData(this, "element").select2("close")
})
})
s.prototype._detachCloseHandler = function(e) {
n(document.body).off("mousedown.select2." + e.id)
s.prototype.position = function(e, t) {
t.find(".selection").append(e)
s.prototype.destroy = function() {
this._detachCloseHandler(this.container)
s.prototype.update = function(e) {
s.prototype.isEnabled = function() {
return !this.isDisabled()
s.prototype.isDisabled = function() {
return this.options.get("disabled")
}),
e.define("select2/selection/single", ["jquery", "./base", "../utils", "../keys"], function(e, t, n, r) {
function i() {
i.__super__.constructor.apply(this, arguments)
i.prototype.render = function() {
var e = i.__super__.render.call(this);
return e[0].classList.add("select2-selection--single"),
i.prototype.bind = function(t, e) {
var n = this;
i.__super__.bind.apply(this, arguments);
this.$selection.find(".select2-selection__rendered").attr("id", r).attr("role",
"textbox").attr("aria-readonly", "true"),
this.$selection.attr("aria-labelledby", r),
this.$selection.on("mousedown", function(e) {
originalEvent: e
})
}),
t.on("focus", function(e) {
t.isOpen() || n.$selection.trigger("focus")
})
,
i.prototype.clear = function() {
var e = this.$selection.find(".select2-selection__rendered");
e.empty(),
e.removeAttr("title")
i.prototype.display = function(e, t) {
var n = this.options.get("templateSelection");
i.prototype.selectionContainer = function() {
return e("<span></span>")
i.prototype.update = function(e) {
if (0 !== e.length) {
var t = e[0]
, n = this.$selection.find(".select2-selection__rendered")
, r = this.display(t, n);
n.empty().append(r);
i ? n.attr("title", i) : n.removeAttr("title")
} else
this.clear()
}),
function n(e, t) {
n.__super__.constructor.apply(this, arguments)
n.prototype.render = function() {
var e = n.__super__.render.call(this);
return e[0].classList.add("select2-selection--multiple"),
e.html('<ul class="select2-selection__rendered"></ul>'),
n.prototype.bind = function(e, t) {
var r = this;
n.__super__.bind.apply(this, arguments),
this.$selection.on("click", function(e) {
r.trigger("toggle", {
originalEvent: e
})
}),
if (!r.isDisabled()) {
var t = i(this).parent()
, n = a.GetData(t[0], "data");
r.trigger("unselect", {
originalEvent: e,
data: n
})
})
n.prototype.clear = function() {
var e = this.$selection.find(".select2-selection__rendered");
e.empty(),
e.removeAttr("title")
n.prototype.display = function(e, t) {
var n = this.options.get("templateSelection");
n.prototype.selectionContainer = function() {
n.prototype.update = function(e) {
if (this.clear(),
0 !== e.length) {
var r = e[n]
, i = this.selectionContainer()
, s = this.display(r, i);
i.append(s);
t.push(i)
this.$selection.find(".select2-selection__rendered").append(t)
}
,
}),
function e(e, t, n) {
this.placeholder = this.normalizePlaceholder(n.get("placeholder")),
e.call(this, t, n)
id: "",
text: t
}),
e.prototype.createPlaceholder = function(e, t) {
var n = this.selectionContainer();
return n.html(this.display(t)),
n[0].classList.add("select2-selection__placeholder"),
n[0].classList.remove("select2-selection__choice"),
e.prototype.update = function(e, t) {
if (1 < t.length || n)
this.clear();
var r = this.createPlaceholder(this.placeholder);
this.$selection.find(".select2-selection__rendered").append(r)
}
}),
function e() {}
var r = this;
e.call(this, t, n),
r._handleClear(e)
}),
t.on("keypress", function(e) {
r._handleKeyboardClear(e, t)
})
e.prototype._handleClear = function(e, t) {
if (!this.isDisabled()) {
var n = this.$selection.find(".select2-selection__clear");
if (0 !== n.length) {
t.stopPropagation();
, i = this.$element.val();
this.$element.val(this.placeholder.id);
var s = {
data: r
};
if (this.trigger("clear", s),
s.prevented)
this.$element.val(i);
else {
if (s = {
data: r[o]
},
this.trigger("unselect", s),
s.prevented)
this.$element.trigger("input").trigger("change"),
this.trigger("toggle", {})
e.prototype._handleKeyboardClear = function(e, t, n) {
e.prototype.update = function(e, t) {
if (e.call(this, t),
var n = this.options.get("translations").get("removeAllItems")
this.$selection.find(".select2-selection__rendered").prepend(r)
,
e
}),
function e(e, t, n) {
e.call(this, t, n)
this.$searchContainer = t,
this.$search = t.find("input");
var n = e.call(this);
return this._transferTabIndex(),
e.prototype.bind = function(e, t, n) {
var r = this
, i = t.id + "-results";
e.call(this, t, n),
t.on("open", function() {
r.$search.attr("aria-controls", i),
r.$search.trigger("focus")
}),
t.on("close", function() {
r.$search.val(""),
r.$search.removeAttr("aria-controls"),
r.$search.removeAttr("aria-activedescendant"),
r.$search.trigger("focus")
}),
t.on("enable", function() {
r.$search.prop("disabled", !1),
r._transferTabIndex()
}),
t.on("disable", function() {
r.$search.prop("disabled", !0)
}),
t.on("focus", function(e) {
r.$search.trigger("focus")
}),
t.on("results:focus", function(e) {
}),
r.trigger("focus", e)
}),
r._handleBlur(e)
}),
if (e.stopPropagation(),
r.trigger("keypress", e),
r._keyUpPrevented = e.isDefaultPrevented(),
var t = r.$searchContainer.prev(".select2-selection__choice");
if (0 < t.length) {
r.searchRemoveChoice(n),
e.preventDefault()
}
}),
});
var s = document.documentMode
}),
r.$selection.off("input.search input.searchcheck");
else {
var t = e.which;
})
e.prototype._transferTabIndex = function(e) {
this.$search.attr("tabindex", this.$selection.attr("tabindex")),
this.$selection.attr("tabindex", "-1")
e.prototype.createPlaceholder = function(e, t) {
this.$search.attr("placeholder", t.text)
e.prototype.update = function(e, t) {
this.$search.attr("placeholder", ""),
e.call(this, t),
this.$selection.find(".select2-selection__rendered").append(this.$searchContainer),
this.resizeSearch(),
n && this.$search.trigger("focus")
e.prototype.handleSearch = function() {
if (this.resizeSearch(),
!this._keyUpPrevented) {
var e = this.$search.val();
this.trigger("query", {
term: e
})
this._keyUpPrevented = !1
e.prototype.searchRemoveChoice = function(e, t) {
this.trigger("unselect", {
data: t
}),
this.$search.val(t.text),
this.handleSearch()
e.prototype.resizeSearch = function() {
this.$search.css("width", "25px");
var e = "";
this.$search.css("width", e)
}
}),
function e() {}
var t = e.call(this)
, n = this.options.get("selectionCssClass") || "";
r.copyNonInternalCssClasses(t[0], this.$element[0])),
t.addClass(n),
}),
function e() {}
var r = this
e.call(this, t, n),
t.on("*", function(e, t) {
t = t || {};
var n = o.Event("select2:" + e, {
params: t
});
r.$element.trigger(n),
})
}),
function r(e) {
this.dict = e || {}
return this.dict
r.prototype.get = function(e) {
return this.dict[e]
r.prototype.extend = function(e) {
r._cache = {},
r.loadPath = function(e) {
if (!(e in r._cache)) {
var t = n(e);
r._cache[e] = t
}),
return {
"Ⓐ": "A",
"A": "A",
"À": "A",
"Á": "A",
"Â": "A",
"Ầ": "A",
"Ấ": "A",
"Ẫ": "A",
"Ẩ": "A",
"Ã": "A",
"Ā": "A",
"Ă": "A",
"Ằ": "A",
"Ắ": "A",
"Ẵ": "A",
"Ẳ": "A",
"Ȧ": "A",
"Ǡ": "A",
"Ä": "A",
"Ǟ": "A",
"Ả": "A",
"Å": "A",
"Ǻ": "A",
"Ǎ": "A",
"Ȁ": "A",
"Ȃ": "A",
"Ạ": "A",
"Ậ": "A",
"Ặ": "A",
"Ḁ": "A",
"Ą": "A",
"Ⱥ": "A",
"Ɐ": "A",
"Ꜳ": "AA",
"Æ": "AE",
"Ǽ": "AE",
"Ǣ": "AE",
"Ꜵ": "AO",
"Ꜷ": "AU",
"Ꜹ": "AV",
"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",
"Ū": "U",
"Ṻ": "U",
"Ŭ": "U",
"Ü": "U",
"Ǜ": "U",
"Ǘ": "U",
"Ǖ": "U",
"Ǚ": "U",
"Ủ": "U",
"Ů": "U",
"Ű": "U",
"Ǔ": "U",
"Ȕ": "U",
"Ȗ": "U",
"Ư": "U",
"Ừ": "U",
"Ứ": "U",
"Ữ": "U",
"Ử": "U",
"Ự": "U",
"Ụ": "U",
"Ṳ": "U",
"Ų": "U",
"Ṷ": "U",
"Ṵ": "U",
"Ʉ": "U",
"Ⓥ": "V",
"V": "V",
"Ṽ": "V",
"Ṿ": "V",
"Ʋ": "V",
"Ꝟ": "V",
"Ʌ": "V",
"Ꝡ": "VY",
"Ⓦ": "W",
"W": "W",
"Ẁ": "W",
"Ẃ": "W",
"Ŵ": "W",
"Ẇ": "W",
"Ẅ": "W",
"Ẉ": "W",
"Ⱳ": "W",
"Ⓧ": "X",
"X": "X",
"Ẋ": "X",
"Ẍ": "X",
"Ⓨ": "Y",
"Y": "Y",
"Ỳ": "Y",
"Ý": "Y",
"Ŷ": "Y",
"Ỹ": "Y",
"Ȳ": "Y",
"Ẏ": "Y",
"Ÿ": "Y",
"Ỷ": "Y",
"Ỵ": "Y",
"Ƴ": "Y",
"Ɏ": "Y",
"Ỿ": "Y",
"Ⓩ": "Z",
"Z": "Z",
"Ź": "Z",
"Ẑ": "Z",
"Ż": "Z",
"Ž": "Z",
"Ẓ": "Z",
"Ẕ": "Z",
"Ƶ": "Z",
"Ȥ": "Z",
"Ɀ": "Z",
"Ⱬ": "Z",
"Ꝣ": "Z",
"ⓐ": "a",
"a": "a",
"ẚ": "a",
"à": "a",
"á": "a",
"â": "a",
"ầ": "a",
"ấ": "a",
"ẫ": "a",
"ẩ": "a",
"ã": "a",
"ā": "a",
"ă": "a",
"ằ": "a",
"ắ": "a",
"ẵ": "a",
"ẳ": "a",
"ȧ": "a",
"ǡ": "a",
"ä": "a",
"ǟ": "a",
"ả": "a",
"å": "a",
"ǻ": "a",
"ǎ": "a",
"ȁ": "a",
"ȃ": "a",
"ạ": "a",
"ậ": "a",
"ặ": "a",
"ḁ": "a",
"ą": "a",
"ⱥ": "a",
"ɐ": "a",
"ꜳ": "aa",
"æ": "ae",
"ǽ": "ae",
"ǣ": "ae",
"ꜵ": "ao",
"ꜷ": "au",
"ꜹ": "av",
"ꜻ": "av",
"ꜽ": "ay",
"ⓑ": "b",
"b": "b",
"ḃ": "b",
"ḅ": "b",
"ḇ": "b",
"ƀ": "b",
"ƃ": "b",
"ɓ": "b",
"ⓒ": "c",
"c": "c",
"ć": "c",
"ĉ": "c",
"ċ": "c",
"č": "c",
"ç": "c",
"ḉ": "c",
"ƈ": "c",
"ȼ": "c",
"ꜿ": "c",
"ↄ": "c",
"ⓓ": "d",
"d": "d",
"ḋ": "d",
"ď": "d",
"ḍ": "d",
"ḑ": "d",
"ḓ": "d",
"ḏ": "d",
"đ": "d",
"ƌ": "d",
"ɖ": "d",
"ɗ": "d",
"ꝺ": "d",
"dz": "dz",
"dž": "dz",
"ⓔ": "e",
"e": "e",
"è": "e",
"é": "e",
"ê": "e",
"ề": "e",
"ế": "e",
"ễ": "e",
"ể": "e",
"ẽ": "e",
"ē": "e",
"ḕ": "e",
"ḗ": "e",
"ĕ": "e",
"ė": "e",
"ë": "e",
"ẻ": "e",
"ě": "e",
"ȅ": "e",
"ȇ": "e",
"ẹ": "e",
"ệ": "e",
"ȩ": "e",
"ḝ": "e",
"ę": "e",
"ḙ": "e",
"ḛ": "e",
"ɇ": "e",
"ɛ": "e",
"ǝ": "e",
"ⓕ": "f",
"f": "f",
"ḟ": "f",
"ƒ": "f",
"ꝼ": "f",
"ⓖ": "g",
"g": "g",
"ǵ": "g",
"ĝ": "g",
"ḡ": "g",
"ğ": "g",
"ġ": "g",
"ǧ": "g",
"ģ": "g",
"ǥ": "g",
"ɠ": "g",
"ꞡ": "g",
"ᵹ": "g",
"ꝿ": "g",
"ⓗ": "h",
"h": "h",
"ĥ": "h",
"ḣ": "h",
"ḧ": "h",
"ȟ": "h",
"ḥ": "h",
"ḩ": "h",
"ḫ": "h",
"ẖ": "h",
"ħ": "h",
"ⱨ": "h",
"ⱶ": "h",
"ɥ": "h",
"ƕ": "hv",
"ⓘ": "i",
"i": "i",
"ì": "i",
"í": "i",
"î": "i",
"ĩ": "i",
"ī": "i",
"ĭ": "i",
"ï": "i",
"ḯ": "i",
"ỉ": "i",
"ǐ": "i",
"ȉ": "i",
"ȋ": "i",
"ị": "i",
"į": "i",
"ḭ": "i",
"ɨ": "i",
"ı": "i",
"ⓙ": "j",
"j": "j",
"ĵ": "j",
"ǰ": "j",
"ɉ": "j",
"ⓚ": "k",
"k": "k",
"ḱ": "k",
"ǩ": "k",
"ḳ": "k",
"ķ": "k",
"ḵ": "k",
"ƙ": "k",
"ⱪ": "k",
"ꝁ": "k",
"ꝃ": "k",
"ꝅ": "k",
"ꞣ": "k",
"ⓛ": "l",
"l": "l",
"ŀ": "l",
"ĺ": "l",
"ľ": "l",
"ḷ": "l",
"ḹ": "l",
"ļ": "l",
"ḽ": "l",
"ḻ": "l",
"ſ": "l",
"ł": "l",
"ƚ": "l",
"ɫ": "l",
"ⱡ": "l",
"ꝉ": "l",
"ꞁ": "l",
"ꝇ": "l",
"lj": "lj",
"ⓜ": "m",
"m": "m",
"ḿ": "m",
"ṁ": "m",
"ṃ": "m",
"ɱ": "m",
"ɯ": "m",
"ⓝ": "n",
"n": "n",
"ǹ": "n",
"ń": "n",
"ñ": "n",
"ṅ": "n",
"ň": "n",
"ṇ": "n",
"ņ": "n",
"ṋ": "n",
"ṉ": "n",
"ƞ": "n",
"ɲ": "n",
"ʼn": "n",
"ꞑ": "n",
"ꞥ": "n",
"nj": "nj",
"ⓞ": "o",
"o": "o",
"ò": "o",
"ó": "o",
"ô": "o",
"ồ": "o",
"ố": "o",
"ỗ": "o",
"ổ": "o",
"õ": "o",
"ṍ": "o",
"ȭ": "o",
"ṏ": "o",
"ō": "o",
"ṑ": "o",
"ṓ": "o",
"ŏ": "o",
"ȯ": "o",
"ȱ": "o",
"ö": "o",
"ȫ": "o",
"ỏ": "o",
"ő": "o",
"ǒ": "o",
"ȍ": "o",
"ȏ": "o",
"ơ": "o",
"ờ": "o",
"ớ": "o",
"ỡ": "o",
"ở": "o",
"ợ": "o",
"ọ": "o",
"ộ": "o",
"ǫ": "o",
"ǭ": "o",
"ø": "o",
"ǿ": "o",
"ɔ": "o",
"ꝋ": "o",
"ꝍ": "o",
"ɵ": "o",
"œ": "oe",
"ƣ": "oi",
"ȣ": "ou",
"ꝏ": "oo",
"ⓟ": "p",
"p": "p",
"ṕ": "p",
"ṗ": "p",
"ƥ": "p",
"ᵽ": "p",
"ꝑ": "p",
"ꝓ": "p",
"ꝕ": "p",
"ⓠ": "q",
"q": "q",
"ɋ": "q",
"ꝗ": "q",
"ꝙ": "q",
"ⓡ": "r",
"r": "r",
"ŕ": "r",
"ṙ": "r",
"ř": "r",
"ȑ": "r",
"ȓ": "r",
"ṛ": "r",
"ṝ": "r",
"ŗ": "r",
"ṟ": "r",
"ɍ": "r",
"ɽ": "r",
"ꝛ": "r",
"ꞧ": "r",
"ꞃ": "r",
"ⓢ": "s",
"s": "s",
"ß": "s",
"ś": "s",
"ṥ": "s",
"ŝ": "s",
"ṡ": "s",
"š": "s",
"ṧ": "s",
"ṣ": "s",
"ṩ": "s",
"ș": "s",
"ş": "s",
"ȿ": "s",
"ꞩ": "s",
"ꞅ": "s",
"ẛ": "s",
"ⓣ": "t",
"t": "t",
"ṫ": "t",
"ẗ": "t",
"ť": "t",
"ṭ": "t",
"ț": "t",
"ţ": "t",
"ṱ": "t",
"ṯ": "t",
"ŧ": "t",
"ƭ": "t",
"ʈ": "t",
"ⱦ": "t",
"ꞇ": "t",
"ꜩ": "tz",
"ⓤ": "u",
"u": "u",
"ù": "u",
"ú": "u",
"û": "u",
"ũ": "u",
"ṹ": "u",
"ū": "u",
"ṻ": "u",
"ŭ": "u",
"ü": "u",
"ǜ": "u",
"ǘ": "u",
"ǖ": "u",
"ǚ": "u",
"ủ": "u",
"ů": "u",
"ű": "u",
"ǔ": "u",
"ȕ": "u",
"ȗ": "u",
"ư": "u",
"ừ": "u",
"ứ": "u",
"ữ": "u",
"ử": "u",
"ự": "u",
"ụ": "u",
"ṳ": "u",
"ų": "u",
"ṷ": "u",
"ṵ": "u",
"ʉ": "u",
"ⓥ": "v",
"v": "v",
"ṽ": "v",
"ṿ": "v",
"ʋ": "v",
"ꝟ": "v",
"ʌ": "v",
"ꝡ": "vy",
"ⓦ": "w",
"w": "w",
"ẁ": "w",
"ẃ": "w",
"ŵ": "w",
"ẇ": "w",
"ẅ": "w",
"ẘ": "w",
"ẉ": "w",
"ⱳ": "w",
"ⓧ": "x",
"x": "x",
"ẋ": "x",
"ẍ": "x",
"ⓨ": "y",
"y": "y",
"ỳ": "y",
"ý": "y",
"ŷ": "y",
"ỹ": "y",
"ȳ": "y",
"ẏ": "y",
"ÿ": "y",
"ỷ": "y",
"ẙ": "y",
"ỵ": "y",
"ƴ": "y",
"ɏ": "y",
"ỿ": "y",
"ⓩ": "z",
"z": "z",
"ź": "z",
"ẑ": "z",
"ż": "z",
"ž": "z",
"ẓ": "z",
"ẕ": "z",
"ƶ": "z",
"ȥ": "z",
"ɀ": "z",
"ⱬ": "z",
"ꝣ": "z",
"Ά": "Α",
"Έ": "Ε",
"Ή": "Η",
"Ί": "Ι",
"Ϊ": "Ι",
"Ό": "Ο",
"Ύ": "Υ",
"Ϋ": "Υ",
"Ώ": "Ω",
"ά": "α",
"έ": "ε",
"ή": "η",
"ί": "ι",
"ϊ": "ι",
"ΐ": "ι",
"ό": "ο",
"ύ": "υ",
"ϋ": "υ",
"ΰ": "υ",
"ώ": "ω",
"ς": "σ",
"’": "'"
}),
function n(e, t) {
n.__super__.constructor.call(this)
n.prototype.current = function(e) {
n.prototype.query = function(e, t) {
n.prototype.bind = function(e, t) {}
n.prototype.destroy = function() {}
n.prototype.generateResultId = function(e, t) {
var n = e.id + "-result-";
return n += r.generateChars(4),
}),
function n(e, t) {
this.$element = e,
this.options = t,
n.__super__.constructor.call(this)
n.prototype.current = function(e) {
var t = this;
e(Array.prototype.map.call(this.$element[0].querySelectorAll(":checked"), function(e) {
return t.item(c(e))
}))
n.prototype.select = function(i) {
var s = this;
if (i.selected = !0,
void this.$element.trigger("input").trigger("change");
if (this.$element.prop("multiple"))
this.current(function(e) {
var t = [];
(i = [i]).push.apply(i, e);
var r = i[n].id;
s.$element.val(t),
s.$element.trigger("input").trigger("change")
});
else {
var e = i.id;
this.$element.val(e),
this.$element.trigger("input").trigger("change")
n.prototype.unselect = function(i) {
var s = this;
if (this.$element.prop("multiple")) {
if (i.selected = !1,
void this.$element.trigger("input").trigger("change");
this.current(function(e) {
var r = e[n].id;
s.$element.val(t),
s.$element.trigger("input").trigger("change")
})
}
}
n.prototype.bind = function(e, t) {
var n = this;
n.select(e.data)
}),
e.on("unselect", function(e) {
n.unselect(e.data)
})
n.prototype.destroy = function() {
this.$element.find("*").each(function() {
l.RemoveData(this)
})
n.prototype.query = function(r, e) {
var i = []
, s = this;
this.$element.children().each(function() {
var e = c(this)
, t = s.item(e)
, n = s.matches(r, t);
}),
e({
results: i
})
n.prototype.addOptions = function(e) {
this.$element.append(e)
n.prototype.option = function(e) {
var t;
var n = this._normalizeItem(e);
return n.element = t,
c(t)
n.prototype.item = function(e) {
var t = {};
return t;
var n = e[0];
t={
id: e.val(),
text: e.text(),
disabled: e.prop("disabled"),
selected: e.prop("selected"),
title: e.prop("title")
};
t={
text: e.prop("label"),
children: [],
title: e.prop("title")
};
var o = c(r[s])
, a = this.item(o);
i.push(a)
t.children = i
n.prototype._normalizeItem = function(e) {
id: e,
text: e
});
text: ""
c.extend({}, {
selected: !1,
disabled: !1
}, e)
n.prototype.matches = function(e, t) {
return this.options.get("matcher")(e, t)
}),
function r(e, t) {
r.__super__.constructor.call(this, e, t)
r.prototype.bind = function(e, t) {
r.__super__.bind.call(this, e, t),
this.addOptions(this.convertToOptions(this._dataToConvert))
r.prototype.select = function(n) {
var e = this.$element.find("option").filter(function(e, t) {
});
this.addOptions(e)),
r.__super__.select.call(this, n)
r.prototype.convertToOptions = function(e) {
var t = this
, n = this.$element.find("option")
, r = n.map(function() {
return t.item(f(this)).id
}).get()
, i = [];
function s(e) {
return function() {
var a = this._normalizeItem(e[o]);
if (0 <= r.indexOf(a.id)) {
var l = n.filter(s(a))
, c = this.item(l)
, u = f.extend(!0, {}, a, c)
, d = this.option(u);
l.replaceWith(d)
} else {
var p = this.option(a);
if (a.children) {
var h = this.convertToOptions(a.children);
p.append(h)
i.push(p)
}
}
return i
}),
function n(e, t) {
this.ajaxOptions = this._applyDefaults(t.get("ajax")),
n.__super__.constructor.call(this, e, t)
n.prototype._applyDefaults = function(e) {
var t = {
data: function(e) {
return s.extend({}, e, {
q: e.term
})
},
transport: function(e, t, n) {
var r = s.ajax(e);
return r.then(t),
r.fail(n),
};
,
n.prototype.processResults = function(e) {
return e
n.prototype.query = function(n, r) {
var i = this;
this._request = null);
var t = s.extend({
type: "GET"
}, this.ajaxOptions);
function e() {
r(t)
}, function() {
message: "errorLoading"
})
});
i._request = e
,
n
}),
function e(e, t, n) {
var r = n.get("tags")
, i = n.get("createTag");
var s = n.get("insertTag");
e.call(this, t, n),
Array.isArray(r))
var a = r[o]
, l = this._normalizeItem(a)
, c = this.option(l);
this.$element.append(c)
var d = this;
this._removeOldTags(),
var s = r[i]
results: s.children
}, !0);
void u(t))
}
if (n)
return !0;
var a = d.createTag(c);
if (null != a) {
var l = d.option(a);
l.attr("data-select2-tag", !0),
d.addOptions([l]),
d.insertTag(r, a)
t.results = r,
u(t)
}) : e.call(this, c, u)
e.prototype.createTag = function(e, t) {
if (null == t.term)
return null;
var n = t.term.trim();
id: n,
text: n
e.prototype.insertTag = function(e, t, n) {
t.unshift(n)
e.prototype._removeOldTags = function(e) {
this.$element.find("option[data-select2-tag]").each(function() {
this.selected || t(this).remove()
})
}),
function e(e, t, n) {
var r = n.get("tokenizer");
e.call(this, t, n)
e.call(this, t, n),
e.prototype.query = function(e, t, n) {
var r = this;
var t = r._normalizeItem(e);
if (!r.$element.find("option").filter(function() {
}).length) {
var n = r.option(t);
n.attr("data-select2-tag", !0),
r._removeOldTags(),
r.addOptions([n])
!function(e) {
r.trigger("select", {
data: e
})
}(t)
});
this.$search.trigger("focus")),
t.term = i.term),
e.call(this, t, n)
e.prototype.tokenizer = function(e, t, n, r) {
return {
id: e.term,
text: e.term
; o < s.length; ) {
var l = s[o];
var c = s.substr(0, o)
, u = a(d.extend({}, t, {
term: c
}));
null != u ? (r(u),
s = s.substr(o + 1) || "",
o = 0) : o++
} else
o++
}
return {
term: s
}),
function e(e, t, n) {
this.minimumInputLength = n.get("minimumInputLength"),
e.call(this, t, n)
message: "inputTooShort",
args: {
minimum: this.minimumInputLength,
input: t.term,
params: t
}) : e.call(this, t, n)
}),
function e(e, t, n) {
this.maximumInputLength = n.get("maximumInputLength"),
e.call(this, t, n)
}
return e.prototype.query = function(e, t, n) {
message: "inputTooLong",
args: {
maximum: this.maximumInputLength,
input: t.term,
params: t
}) : e.call(this, t, n)
}),
function e(e, t, n) {
this.maximumSelectionLength = n.get("maximumSelectionLength"),
e.call(this, t, n)
var r = this;
e.call(this, t, n),
t.on("select", function() {
r._checkIfMaximumSelected()
})
e.prototype.query = function(e, t, n) {
var r = this;
this._checkIfMaximumSelected(function() {
e.call(r, t, n)
})
e.prototype._checkIfMaximumSelected = function(e, n) {
var r = this;
this.current(function(e) {
message: "maximumSelected",
args: {
maximum: r.maximumSelectionLength
}) : n && n()
})
}),
function n(e, t) {
this.$element = e,
this.options = t,
n.__super__.constructor.call(this)
n.prototype.render = function() {
this.$dropdown = e
}
n.prototype.bind = function() {}
n.prototype.position = function(e, t) {}
n.prototype.destroy = function() {
this.$dropdown.remove()
}),
function e() {}
var t = e.call(this)
return this.$searchContainer = n,
this.$search = n.find("input"),
t.prepend(n),
e.prototype.bind = function(e, t, n) {
var r = this
, i = t.id + "-results";
e.call(this, t, n),
this.$search.on("keydown", function(e) {
r.trigger("keypress", e),
r._keyUpPrevented = e.isDefaultPrevented()
}),
this.$search.on("input", function(e) {
s(this).off("keyup")
}),
r.handleSearch(e)
}),
t.on("open", function() {
r.$search.attr("tabindex", 0),
r.$search.attr("aria-controls", i),
r.$search.trigger("focus"),
window.setTimeout(function() {
r.$search.trigger("focus")
}, 0)
}),
t.on("close", function() {
r.$search.attr("tabindex", -1),
r.$search.removeAttr("aria-controls"),
r.$search.removeAttr("aria-activedescendant"),
r.$search.val(""),
r.$search.trigger("blur")
}),
t.on("focus", function() {
t.isOpen() || r.$search.trigger("focus")
}),
t.on("results:all", function(e) {
}),
t.on("results:focus", function(e) {
e.data._resultId ? r.$search.attr("aria-activedescendant", e.data._resultId) : r.
$search.removeAttr("aria-activedescendant")
})
e.prototype.handleSearch = function(e) {
if (!this._keyUpPrevented) {
var t = this.$search.val();
this.trigger("query", {
term: t
})
this._keyUpPrevented = !1
e.prototype.showSearch = function(e, t) {
return !0
}),
function e(e, t, n, r) {
this.placeholder = this.normalizePlaceholder(n.get("placeholder")),
e.call(this, t, n, r)
t.results = this.removePlaceholder(t.results),
e.call(this, t)
,
e.prototype.normalizePlaceholder = function(e, t) {
id: "",
text: t
}),
e.prototype.removePlaceholder = function(e, t) {
var i = t[r];
return n
}),
function e(e, t, n, r) {
this.lastParams = {},
e.call(this, t, n, r),
this.$loadingMore = this.createLoadingMore(),
this.loading = !1
this.$loadingMore.remove(),
this.loading = !1,
e.call(this, t),
this.loadMoreIfNeeded())
}
e.prototype.bind = function(e, t, n) {
var r = this;
e.call(this, t, n),
t.on("query", function(e) {
r.lastParams = e,
r.loading = !0
}),
t.on("query:append", function(e) {
r.lastParams = e,
r.loading = !0
}),
this.$results.on("scroll", this.loadMoreIfNeeded.bind(this))
e.prototype.loadMoreIfNeeded = function() {
if (!this.loading && e) {
e.prototype.loadMore = function() {
this.loading = !0;
var e = n.extend({}, {
page: 1
}, this.lastParams);
e.page++,
this.trigger("query:append", e)
e.prototype.showLoadingMore = function(e, t) {
e.prototype.createLoadingMore = function() {
, t = this.options.get("translations").get("loadingMore");
return e.html(t(this.lastParams)),
}),
function e(e, t, n) {
e.call(this, t, n)
var r = this;
e.call(this, t, n),
t.on("open", function() {
r._showDropdown(),
r._attachPositioningHandler(t),
r._bindContainerResultHandlers(t)
}),
t.on("close", function() {
r._hideDropdown(),
r._detachPositioningHandler(t)
}),
this.$dropdownContainer.on("mousedown", function(e) {
e.stopPropagation()
})
e.prototype.destroy = function(e) {
e.call(this),
this.$dropdownContainer.remove()
e.prototype.position = function(e, t, n) {
t.attr("class", n.attr("class")),
t[0].classList.remove("select2"),
t[0].classList.add("select2-container--open"),
t.css({
position: "absolute",
top: -999999
}),
this.$container = n
e.prototype.render = function(e) {
var t = f("<span></span>")
, n = e.call(this);
return t.append(n),
this.$dropdownContainer = t
,
e.prototype._hideDropdown = function(e) {
this.$dropdownContainer.detach()
e.prototype._bindContainerResultHandlers = function(e, t) {
if (!this._containerResultsHandlersBound) {
var n = this;
t.on("results:all", function() {
n._positionDropdown(),
n._resizeDropdown()
}),
t.on("results:append", function() {
n._positionDropdown(),
n._resizeDropdown()
}),
t.on("results:message", function() {
n._positionDropdown(),
n._resizeDropdown()
}),
t.on("select", function() {
n._positionDropdown(),
n._resizeDropdown()
}),
t.on("unselect", function() {
n._positionDropdown(),
n._resizeDropdown()
}),
this._containerResultsHandlersBound = !0
,
e.prototype._attachPositioningHandler = function(e, t) {
var n = this
, r = "scroll.select2." + t.id
, i = "resize.select2." + t.id
, s = "orientationchange.select2." + t.id
, o = this.$container.parents().filter(a.hasScroll);
o.each(function() {
a.StoreData(this, "select2-scroll-position", {
x: f(this).scrollLeft(),
y: f(this).scrollTop()
})
}),
o.on(r, function(e) {
f(this).scrollTop(t.y)
}),
n._positionDropdown(),
n._resizeDropdown()
})
e.prototype._detachPositioningHandler = function(e, t) {
, r = "resize.select2." + t.id
, i = "orientationchange.select2." + t.id;
this.$container.parents().filter(a.hasScroll).off(n),
e.prototype._positionDropdown = function() {
var e = f(window)
, t = this.$dropdown[0].classList.contains("select2-dropdown--above")
, n = this.$dropdown[0].classList.contains("select2-dropdown--below")
, r = null
, i = this.$container.offset();
var s = {
height: this.$container.outerHeight(!1)
};
s.top = i.top,
var o = this.$dropdown.outerHeight(!1)
, a = e.scrollTop()
, l = e.scrollTop() + e.height()
, c = a < i.top - o
, u = l > i.bottom + o
,d={
left: i.left,
top: s.bottom
, p = this.$dropdownParent;
var h = {
top: 0,
left: 0
};
d.top -= h.top,
d.left -= h.left,
t || n || (r = "below"),
this.$dropdown[0].classList.remove("select2-dropdown--above"),
this.$dropdown[0].classList.add("select2-dropdown--" + r),
this.$container[0].classList.remove("select2-container--below"),
this.$container[0].classList.remove("select2-container--above"),
this.$container[0].classList.add("select2-container--" + r)),
this.$dropdownContainer.css(d)
e.prototype._resizeDropdown = function() {
var e = {
};
e.position = "relative",
e.width = "auto"),
this.$dropdown.css(e)
e.prototype._showDropdown = function(e) {
this.$dropdownContainer.appendTo(this.$dropdownParent),
this._positionDropdown(),
this._resizeDropdown()
}),
function e(e, t, n, r) {
this.minimumResultsForSearch = n.get("minimumResultsForSearch"),
this.minimumResultsForSearch < 0 && (this.minimumResultsForSearch = 1 / 0),
e.call(this, t, n, r)
var i = t[r];
return n
}),
function e() {}
var r = this;
e.call(this, t, n),
t.on("close", function(e) {
r._handleSelectOnClose(e)
})
e.prototype._handleSelectOnClose = function(e, t) {
var n = t.originalSelect2Event;
return
}
var r = this.getHighlightedResults();
data: i
})
}),
function e() {}
var r = this;
e.call(this, t, n),
t.on("select", function(e) {
r._selectTriggered(e)
}),
t.on("unselect", function(e) {
r._selectTriggered(e)
})
e.prototype._selectTriggered = function(e, t) {
var n = t.originalEvent;
originalEvent: n,
originalSelect2Event: t
})
}
}),
function e() {}
var t = e.call(this)
, n = this.options.get("dropdownCssClass") || "";
r.copyNonInternalCssClasses(t[0], this.$element[0])),
t.addClass(n),
}),
return {
errorLoading: function() {
},
inputTooLong: function(e) {
},
inputTooShort: function(e) {
},
loadingMore: function() {
},
maximumSelected: function(e) {
},
noResults: function() {
},
searching: function() {
return "Searching…"
},
removeAllItems: function() {
}),
function n() {
this.reset()
null == e.dropdownAdapter) {
if (e.multiple)
e.dropdownAdapter = A;
else {
e.dropdownAdapter = t
e.dropdownAdapter = f.Decorate(e.dropdownAdapter, E)
e.language = this._resolveLanguage(e.language),
e.language.push("en");
var i = e.language[r];
return e.language = n,
n.prototype.reset = function() {
function a(e) {
return t[e] || e
})
this.defaults = {
amdLanguageBase: "./i18n/",
closeOnSelect: !0,
debug: !1,
dropdownAutoWidth: !1,
escapeMarkup: f.escapeMarkup,
language: {},
return n;
}
var s = a(n.text).toUpperCase()
, o = a(t.term).toUpperCase();
},
minimumInputLength: 0,
maximumInputLength: 0,
maximumSelectionLength: 0,
minimumResultsForSearch: 0,
selectOnClose: !1,
scrollAfterSelect: !1,
sorter: function(e) {
return e
},
templateResult: function(e) {
return e.text
},
templateSelection: function(e) {
return e.text
},
theme: "default",
width: "resolve"
n.prototype.applyFromElement = function(e, t) {
var n = e.language
, r = this.defaults.language
, i = t.prop("lang")
, s = t.closest("[lang]").prop("lang")
, o = Array.prototype.concat.call(this._resolveLanguage(i), this._resolveLanguage(n),
this._resolveLanguage(r), this._resolveLanguage(s));
return e.language = o,
n.prototype._resolveLanguage = function(e) {
if (!e)
return [];
if (l.isEmptyObject(e))
return [];
if (l.isPlainObject(e))
return [e];
var t;
t = Array.isArray(e) ? e : [e];
if (n.push(t[r]),
var i = t[r].split("-")[0];
n.push(i)
return n
n.prototype._processTranslations = function(e, t) {
var i = new g
, s = e[r];
if ("string" == typeof s)
try {
i = g.loadPath(s)
} catch (e) {
try {
s = this.defaults.amdLanguageBase + s,
i = g.loadPath(s)
} catch (e) {
else
n.extend(i)
return n
n.prototype.set = function(e, t) {
var n = {};
n[l.camelCase(e)] = t;
var r = f._convertData(n);
l.extend(!0, this.defaults, r)
new n
}),
function e(e, t) {
this.options = e,
this.options = n.apply(this.options)
e.prop("disabled", this.options.disabled),
e.prop("multiple", this.options.multiple),
var n = {};
function r(e, t) {
return t.toUpperCase()
var s = e[0].attributes[i].name
, o = "data-";
if (s.substr(0, o.length) == o) {
var a = s.substring(o.length)
, l = p.GetData(e[0], a);
n[a.replace(/-([a-z])/g, r)] = l
return this
e.prototype.get = function(e) {
return this.options[e]
e.prototype.set = function(e, t) {
this.options[e] = t
}),
var d = function(e, t) {
this.$element = e,
this.id = this._generateId(e),
t = t || {},
d.__super__.constructor.call(this);
var n = e.attr("tabindex") || 0;
e.attr("tabindex", "-1");
var r = this.options.get("dataAdapter");
var i = this.render();
this._placeContainer(i);
var s = this.options.get("selectionAdapter");
this.$selection = this.selection.render(),
this.selection.position(this.$selection, i);
var o = this.options.get("dropdownAdapter");
this.$dropdown = this.dropdown.render(),
this.dropdown.position(this.$dropdown, i);
var a = this.options.get("resultsAdapter");
this.$results = this.results.render(),
this.results.position(this.$results, this.$dropdown);
var l = this;
this._bindAdapters(),
this._registerDomEvents(),
this._registerDataEvents(),
this._registerSelectionEvents(),
this._registerDropdownEvents(),
this._registerResultsEvents(),
this._registerEvents(),
this.dataAdapter.current(function(e) {
l.trigger("selection:update", {
data: e
})
}),
e[0].classList.add("select2-hidden-accessible"),
e.attr("aria-hidden", "true"),
this._syncAttributes(),
e.data("select2", this)
};
return u.Extend(d, u.Observable),
d.prototype._generateId = function(e) {
d.prototype._placeContainer = function(e) {
e.insertAfter(this.$element);
d.prototype._resolveWidth = function(e, t) {
var n = /^width:(([-+]?([0-9]*\.)?[0-9]+)(px|em|ex|%|in|cm|mm|pt|pc))/i;
if ("resolve" == t) {
if ("element" == t) {
var i = e.outerWidth(!1);
if ("style" != t)
var s = e.attr("style");
if ("string" != typeof s)
return null;
return c[1]
}
return null
d.prototype._bindAdapters = function() {
this.dataAdapter.bind(this, this.$container),
this.selection.bind(this, this.$container),
this.dropdown.bind(this, this.$container),
this.results.bind(this, this.$container)
d.prototype._registerDomEvents = function() {
var t = this;
this.$element.on("change.select2", function() {
t.dataAdapter.current(function(e) {
t.trigger("selection:update", {
data: e
})
})
}),
this.$element.on("focus.select2", function(e) {
t.trigger("focus", e)
}),
t._syncA(),
t._syncS(e)
),
this._observer.observe(this.$element[0], {
attributes: !0,
childList: !0,
subtree: !1
})
d.prototype._registerDataEvents = function() {
var n = this;
this.dataAdapter.on("*", function(e, t) {
n.trigger(e, t)
})
d.prototype._registerSelectionEvents = function() {
var n = this
, r = ["toggle", "focus"];
this.selection.on("toggle", function() {
n.toggleDropdown()
}),
this.selection.on("focus", function(e) {
n.focus(e)
}),
this.selection.on("*", function(e, t) {
})
d.prototype._registerDropdownEvents = function() {
var n = this;
this.dropdown.on("*", function(e, t) {
n.trigger(e, t)
})
d.prototype._registerResultsEvents = function() {
var n = this;
this.results.on("*", function(e, t) {
n.trigger(e, t)
})
d.prototype._registerEvents = function() {
var n = this;
this.on("open", function() {
n.$container[0].classList.add("select2-container--open")
}),
this.on("close", function() {
n.$container[0].classList.remove("select2-container--open")
}),
this.on("enable", function() {
n.$container[0].classList.remove("select2-container--disabled")
}),
this.on("disable", function() {
n.$container[0].classList.add("select2-container--disabled")
}),
this.on("blur", function() {
n.$container[0].classList.remove("select2-container--focus")
}),
this.on("query", function(t) {
this.dataAdapter.query(t, function(e) {
n.trigger("results:all", {
data: e,
query: t
})
})
}),
this.on("query:append", function(t) {
this.dataAdapter.query(t, function(e) {
n.trigger("results:append", {
data: e,
query: t
})
})
}),
this.on("keypress", function(e) {
var t = e.which;
n.isOpen() ? t === r.ESC || t === r.TAB || t === r.UP && e.altKey ? (n.close(e),
e.preventDefault()) : (t === r.ENTER || t === r.SPACE || t === r.DOWN && e.altKey) &&
(n.open(),
e.preventDefault())
})
d.prototype._syncAttributes = function() {
this.options.set("disabled", this.$element.prop("disabled")),
}
,
d.prototype._isChangeMutation = function(e) {
var t = this;
if (e.addedNodes[n].selected)
return !0
else {
return !0;
if (Array.isArray(e))
return e.some(function(e) {
return t._isChangeMutation(e)
})
return !1
d.prototype._syncSubtree = function(e) {
var t = this._isChangeMutation(e)
, n = this;
t && this.dataAdapter.current(function(e) {
n.trigger("selection:update", {
data: e
})
})
d.prototype.trigger = function(e, t) {
var n = d.__super__.trigger
,r={
open: "opening",
close: "closing",
select: "selecting",
unselect: "unselecting",
clear: "clearing"
};
e in r) {
var i = r[e]
,s={
prevented: !1,
name: e,
args: t
};
if (n.call(this, i, s),
s.prevented)
n.call(this, e, t)
d.prototype.toggleDropdown = function() {
d.prototype.open = function() {
d.prototype.close = function(e) {
this.isOpen() && this.trigger("close", {
originalEvent: e
})
d.prototype.isEnabled = function() {
return !this.isDisabled()
d.prototype.isDisabled = function() {
return this.options.get("disabled")
d.prototype.isOpen = function() {
return this.$container[0].classList.contains("select2-container--open")
d.prototype.hasFocus = function() {
return this.$container[0].classList.contains("select2-container--focus")
d.prototype.focus = function(e) {
this.hasFocus() || (this.$container[0].classList.add("select2-container--focus"),
this.trigger("focus", {}))
d.prototype.enable = function(e) {
var t = !e[0];
this.$element.prop("disabled", t)
d.prototype.data = function() {
var t = [];
return this.dataAdapter.current(function(e) {
t=e
}),
d.prototype.val = function(e) {
return this.$element.val();
var t = e[0];
return e.toString()
})),
this.$element.val(t).trigger("input").trigger("change")
d.prototype.destroy = function() {
this.$container.remove(),
this._observer.disconnect(),
this._observer = null,
this._syncA = null,
this._syncS = null,
this.$element.off(".select2"),
this.$element[0].classList.remove("select2-hidden-accessible"),
this.$element.attr("aria-hidden", "false"),
u.RemoveData(this.$element[0]),
this.$element.removeData("select2"),
this.dataAdapter.destroy(),
this.selection.destroy(),
this.dropdown.destroy(),
this.results.destroy(),
this.dataAdapter = null,
this.selection = null,
this.dropdown = null,
this.results = null
d.prototype.render = function() {
this.$container = e,
this.$container[0].classList.add("select2-container--" + this.options.get("theme")),
}),
return e
}),
if (null == i.fn.select2) {
i.fn.select2 = function(t) {
return this.each(function() {
new s(i(this),e)
}),
this;
if ("string" != typeof t)
return this.each(function() {
n = e[t].apply(e, r)
}),
}),
define: e.define,
require: e.require
}()
, t = e.require("jquery.select2");
return u.fn.select2.amd = e,
});