!function(e){var t=function(t,n){var l=e(n),r=l.val(),a=e.extend({allowClear:!0,closeOnSelect:!1,searchMatchOptGroups:!0,containerCssClass:"",dropdownCssClass:"",templateSelection:function(e,t){return e.length+" > "+t+" total"},templateResult:function(e){return e.text},matcher:function(t,n){var l=(0,e.fn.select2.defaults.defaults.matcher)(t,n);return l&&n.children&&l.children&&n.children.length!=l.children.length&&(l.children=n.children),l}},t);l.removeAttr("multiple");var c=l.select2(a).data("select2");c.$results.off("mouseup").on("mouseup",".select2-results__option[aria-selected]",function(t){return function(n){var l=e(this),r=e.fn.select2.amd.require("select2/utils").GetData(this,"data");"true"!==l.attr("aria-selected")?t.trigger("select",{originalEvent:n,data:r}):t.trigger("unselect",{originalEvent:n,data:r})}}(c)),l.attr("multiple","multiple").val(r).trigger("change.select2")};e.fn.extend({select2MultiCheckboxes:function(e){this.each((function(){new t(e,this)}))}})}(jQuery);