@atlassian/aui 7.10.3 → 7.10.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- ("undefined"==typeof window?global:window).__a9f5cfe0f69683b50ad78b21881f0eb1=function(){var e={},t=s(__fb409c432b53d81bad1e174061f6886c),i=s(__925085afe37c9c6789b788cc0b7c856e);function s(e){return e&&e.__esModule?e:{default:e}}function n(e){String(e.value).trim().length||(e.value=e.getAttribute("placeholder"),(0,t.default)(e).addClass("aui-placeholder-shown"))}return"placeholder"in document.createElement("input")||(0,i.default)("placeholder",{type:i.default.type.ATTRIBUTE,events:{blur:n,focus:function(e){e.value===e.getAttribute("placeholder")&&(e.value="",t.default)(e).removeClass("aui-placeholder-shown")}},created:n}),e}.call(this),("undefined"==typeof window?global:window).__8a2c50eef3814e30c26c4bcbe18cdba2=function(){var e={exports:{}},t=e.exports;Object.defineProperty(t,"__esModule",{value:!0});var i=o(__fb409c432b53d81bad1e174061f6886c),s=__ab0bbf63af28826336f58e93f54499f8,n=o(__1f10abc98a3cd10182350043fad370a4),a=o(__a96071e28d103a38ba4dff141c560d4f),r=o(__9397c270147517d168174a404ebf9121);function o(e){return e&&e.__esModule?e:{default:e}}var l="header";function c(e){e=e,e=(0,i.default)((0,r.default)('<div class="aui-banner aui-banner-{type}" role="banner">{body}</div>').fill({type:"error","body:html":e.body||""}).toString());return d().find(".aui-banner").get().forEach(function(e){"true"===e.getAttribute("aria-hidden")&&(0,i.default)(e).remove()}),function(e){var t=d();if(!t.length)throw new Error("You must implement the application header");e.prependTo(t),(0,s.recomputeStyle)(e),e.attr("aria-hidden","false")}(e),e[0]}function d(){return(0,i.default)("#"+l)}return(0,n.default)("aui/banner",c),(0,a.default)("banner",c),t.default=c,e.exports=t.default,e.exports}.call(this),("undefined"==typeof window?global:window).__c6ac4be8806c2a1d24aa400865249d29=function(){var e={},t=function(e){{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t.default=e,t}}(__56f99f629e22233a92f5a2b763037a87),i=r(__1f10abc98a3cd10182350043fad370a4),s=r(__925085afe37c9c6789b788cc0b7c856e),n=__18561bb4c99d4777e6a5a9fec71bb775,a=r(n);function r(e){return e&&e.__esModule?e:{default:e}}function o(e){return e.hasAttribute("aria-busy")&&"true"===e.getAttribute("aria-busy")}function l(e){return"INPUT"===e.nodeName}return(0,s.default)("aui-button",{type:s.default.type.CLASSNAME,created:function(e){e._spinner=new a.default,e._spinner.setAttribute("size",n.SIZE.SMALL.name)},prototype:{busy:function(){return l(this)||o(this)?t.warn("It is not valid to call busy() on an input button."):(this.appendChild(this._spinner),this.setAttribute("aria-busy",!0),this.setAttribute("busy","")),this},idle:function(){return l(this)||!o(this)?t.warn("It is not valid to call idle() on an input button."):(this.removeChild(this._spinner),this.removeAttribute("aria-busy"),this.removeAttribute("busy")),this},isBusy:function(){return l(this)?(t.warn("It is not valid to call isBusy() on an input button."),!1):o(this)}}}),(0,i.default)("aui/button"),e}.call(this),("undefined"==typeof window?global:window).__7691a83108a01166ebc9ffcd1c8b13c3=function(){var o,l,e={};function c(e,t){return"function"==typeof e?e.call(t):e}function d(e){for(;e=e.parentNode;)if(e==document)return 1}function r(e,t){this.$element=o(e),this.options=t,this.enabled=!0,this.fixTitle()}return o=jQuery,l=0,r.prototype={show:function(){if(d(this.$element[0])){var e=this.getTitle();if(e&&this.enabled){var t=this.tip();t.find(".tipsy-inner")[this.options.html?"html":"text"](e),t[0].className="tipsy",t.remove().css({top:0,left:0,visibility:"hidden",display:"block"}).appendTo(document.body);var i=this;this.options.hoverable&&t.hover(function(){i.hoverTooltip=!0},function(){var e;"in"!=i.hoverState&&(i.hoverTooltip=!1,"manual"!=i.options.trigger&&(e="hover"==i.options.trigger?"mouseleave.tipsy":"blur.tipsy",i.$element.trigger(e)))}),this.options.className&&t.addClass(c(this.options.className,this.$element[0]));var s=o.extend({},this.$element.offset(),{width:this.$element[0].getBoundingClientRect().width,height:this.$element[0].getBoundingClientRect().height}),n={},a=t[0].offsetWidth,r=t[0].offsetHeight,e=c(this.options.gravity,this.$element[0]);switch(2===e.length&&("w"===e.charAt(1)?n.left=s.left+s.width/2-15:n.left=s.left+s.width/2-a+15),e.charAt(0)){case"n":void 0===n.left&&(n.left=s.left+s.width/2-a/2),n.top=s.top+s.height+this.options.offset;break;case"s":void 0===n.left&&(n.left=s.left+s.width/2-a/2,t.css(n),r=t[0].offsetHeight),n.top=s.top-r-this.options.offset;break;case"e":n.left=s.left-a-this.options.offset,n.top=s.top+s.height/2-r/2;break;case"w":n.left=s.left+s.width+this.options.offset,n.top=s.top+s.height/2-r/2}t.css(n).addClass("tipsy-"+e),t.find(".tipsy-arrow")[0].className="tipsy-arrow tipsy-arrow-"+e.charAt(0),this.options.fade?t.stop().css({opacity:0,display:"block",visibility:"visible"}).animate({opacity:this.options.opacity}):t.css({visibility:"visible",opacity:this.options.opacity}),this.options.aria&&(e="tipsyuid"+l++,t.attr("id",e),this.$element.attr("aria-describedby",e))}}},destroy:function(){this.$element.removeData("tipsy"),this.unbindHandlers(),this.hide()},unbindHandlers:function(){this.options.live?o(this.$element.context).off(".tipsy"):this.$element.unbind(".tipsy")},hide:function(){this.options.fade?this.tip().stop().fadeOut(function(){o(this).remove()}):this.tip().remove(),this.options.aria&&this.$element.removeAttr("aria-describedby")},fixTitle:function(){var e=this.$element;!e.attr("title")&&"string"==typeof e.attr("original-title")||e.attr("original-title",e.attr("title")||"").removeAttr("title")},getTitle:function(){var e,t=this.$element,i=this.options;return this.fixTitle(),"string"==typeof(i=this.options).title?e=t.attr("title"==i.title?"original-title":i.title):"function"==typeof i.title&&(e=i.title.call(t[0])),(e=(""+e).replace(/(^\s*|\s*$)/,""))||i.fallback},tip:function(){return this.$tip||(this.$tip=o('<div class="tipsy"></div>').html('<div class="tipsy-arrow"></div><div class="tipsy-inner"></div>').attr("role","tooltip"),this.$tip.data("tipsy-pointee",this.$element[0])),this.$tip},validate:function(){this.$element[0].parentNode||(this.hide(),this.$element=null,this.options=null)},enable:function(){this.enabled=!0},disable:function(){this.enabled=!1},toggleEnabled:function(){this.enabled=!this.enabled}},o.fn.tipsy=function(i){if(!0===i)return this.data("tipsy");if("string"!=typeof i)return(i=o.extend({},o.fn.tipsy.defaults,i)).hoverable&&(i.delayOut=i.delayOut||20),i.live||this.each(function(){t(this)}),"manual"!=i.trigger&&(n="hover"==i.trigger?"mouseenter.tipsy focus.tipsy":"focus.tipsy",a="hover"==i.trigger?"mouseleave.tipsy blur.tipsy":"blur.tipsy",i.live?o(this.context).on(n,this.selector,e).on(a,this.selector,s):this.bind(n,e).bind(a,s)),this;function t(e){var t=o.data(e,"tipsy");return t||(t=new r(e,o.fn.tipsy.elementOptions(e,i)),o.data(e,"tipsy",t)),t}function e(){var e=t(this);e.hoverState="in",0==i.delayIn?e.show():(e.fixTitle(),setTimeout(function(){"in"==e.hoverState&&e.show()},i.delayIn))}function s(){var e=t(this);e.hoverState="out",0==i.delayOut?e.hide():setTimeout(function(){"out"!=e.hoverState||e.hoverTooltip||e.hide()},i.delayOut)}var n,a=this.data("tipsy");return a&&a[i](),this},o.fn.tipsy.defaults={aria:!1,className:null,delayIn:0,delayOut:0,fade:!1,fallback:"",gravity:"n",html:!1,live:!1,hoverable:!1,offset:0,opacity:.8,title:"title",trigger:"hover"},o.fn.tipsy.revalidate=function(){o(".tipsy").each(function(){var e=o.data(this,"tipsy-pointee");e&&d(e)||o(this).remove()})},o.fn.tipsy.elementOptions=function(e,t){return o.metadata?o.extend({},t,o(e).metadata()):t},o.fn.tipsy.autoNS=function(){return o(this).offset().top>o(document).scrollTop()+o(window).height()/2?"s":"n"},o.fn.tipsy.autoWE=function(){return o(this).offset().left>o(document).scrollLeft()+o(window).width()/2?"e":"w"},o.fn.tipsy.autoBounds=function(n,a){return function(){var e={ns:a[0],ew:1<a.length&&a[1]},t=o(document).scrollTop()+n,i=o(document).scrollLeft()+n,s=o(this);return s.offset().top<t&&(e.ns="n"),s.offset().left<i&&(e.ew="w"),o(window).width()+o(document).scrollLeft()-s.offset().left<n&&(e.ew="e"),o(window).height()+o(document).scrollTop()-s.offset().top<n&&(e.ns="s"),e.ns+(e.ew||"")}},e}.call(this),("undefined"==typeof window?global:window).__cad1ff186f64db5847d825980d4e5354=function(){var e,t={},i=__fb409c432b53d81bad1e174061f6886c,s=(e=i)&&e.__esModule?e:{default:e};function n(e,t,i){return e.tipsy(i),"destroy"===i&&(t.live?(0,s.default)(e.context).off(".tipsy",e.selector):e.unbind(".tipsy")),e}function a(e,t){var i;return e.tipsy(t),t&&t.hideOnClick&&("hover"===t.trigger||!t.trigger&&"hover"===e.tipsy.defaults.trigger)&&(i=function(){(0,s.default)(this).tipsy("hide")},t.live?(0,s.default)(e.context).on("click.tipsy",e.selector,i):e.bind("click.tipsy",i)),e}return __7691a83108a01166ebc9ffcd1c8b13c3,s.default.fn.tooltip=function(t){var i=s.default.extend({},s.default.fn.tooltip.defaults,t);return i.live?("string"==typeof t?n(this,i,t):a(this,i),this):this.each(function(){var e=(0,s.default)(this);return"string"==typeof t?n(e,i,t):a(e,i),e})},s.default.fn.tooltip.defaults={opacity:1,offset:1,delayIn:500,hoverable:!0,hideOnClick:!0,aria:!0},t}.call(this),("undefined"==typeof window?global:window).__1986184c1fddc5991cf2a6e87235db47=function(){var e={exports:{}},t=e.exports;Object.defineProperty(t,"__esModule",{value:!0});var a=r(__fb409c432b53d81bad1e174061f6886c);__7ed409ebd01023e531d5eebaaeff5e6e,__cad1ff186f64db5847d825980d4e5354,__51474667125a5bfeb6e78ef22f02f983;var i=r(__1f10abc98a3cd10182350043fad370a4),s=r(__925085afe37c9c6789b788cc0b7c856e),n=r(__7bccc810f667bf7389679255eb7443b5);function r(e){return e&&e.__esModule?e:{default:e}}var o=function(e){function t(){return(0,a.default)('<div class="aui-dropdown2-section">')}var i=t();(0,a.default)("<button />").attr({type:"button","data-aui-checkbox-multiselect-clear":"",class:"aui-button aui-button-link"}).text(AJS.I18n.getText("aui.checkboxmultiselect.clear.selected")).appendTo(i);var s=t(),n=(0,a.default)("<ul />").appendTo(s);return a.default.each(e,function(e,t){var i=(0,a.default)("<li />").attr({class:t.styleClass||""}).appendTo(n),i=(0,a.default)("<a />").text(t.label).attr("data-value",t.value).addClass("aui-dropdown2-checkbox aui-dropdown2-interactive").appendTo(i);t.icon&&(0,a.default)("<span />").addClass("aui-icon").css("backgroundImage","url("+t.icon+')")').appendTo(i),t.selected&&i.addClass("aui-dropdown2-checked")}),(0,a.default)("<div />").append(i).append(s).html()},l=function(e,t){var i=e+"-dropdown",e=(0,a.default)("<select />").attr({name:e,multiple:"multiple"}).html(t),t=(0,a.default)("<div>").attr({id:i,class:"aui-checkbox-multiselect-dropdown aui-dropdown2 aui-style-default"}),i=(0,a.default)("<button />").attr({class:"aui-checkbox-multiselect-btn aui-button aui-dropdown2-trigger",type:"button","aria-owns":i,"aria-haspopup":!0});return(0,a.default)("<div />").append(e).append(i).append(t).html()};function c(e){e=(0,a.default)(e.target);d(this,e.attr("data-value"),e.hasClass("aui-dropdown2-checked"))}function d(e,t,i){var s=e.$select.find("option").filter(function(){var e=(0,a.default)(this);return e.attr("value")===t&&e.prop("selected")!==i});s.length&&(s.prop("selected",i),e.$select.trigger("change"))}function u(e){e.$dropdown.find("[data-aui-checkbox-multiselect-clear]").prop("disabled",function(){return g(e).length<1})}function h(e){return e.map(function(){var e=(0,a.default)(this);return{value:e.val(),label:e.text(),icon:e.data("icon"),styleClass:e.data("styleClass"),title:e.attr("title"),disabled:e.attr("disabled"),selected:e.prop("selected")}})}function f(e){e.$dropdown.html(o(h(e.getOptions()))),u(e)}function p(e){var t,i=b(e),i=0===g(e).length?(t=e,(0,a.default)(t).data("allLabel")||"All"):i.join(", ");e.$btn.text(i)}function g(e){return h(e.getSelectedOptions())}function b(e){return a.default.map(g(e),function(e){return e.label})}s=(0,s.default)("aui-checkbox-multiselect",{attached:function(t){var e=t.getAttribute("name")||(0,n.default)("aui-checkbox-multiselect-");t.innerHTML=l(e,t.innerHTML),t.$select=(0,a.default)("select",t).change(function(){p(t),u(t)}),t.$dropdown=(0,a.default)(".aui-checkbox-multiselect-dropdown",t).on("aui-dropdown2-item-check",c.bind(t)).on("aui-dropdown2-item-uncheck",c.bind(t)).on("click","button[data-aui-checkbox-multiselect-clear]",t.deselectAllOptions.bind(t)),t.$btn=(0,a.default)(".aui-checkbox-multiselect-btn",t).tooltip({title:function(){return(e=t).$dropdown.is("[aria-hidden=false]")?"":b(e).join(", ");var e}}),p(t),f(t)},prototype:{getOptions:function(){return this.$select.find("option")},getSelectedOptions:function(){return this.$select.find("option:selected")},selectOption:function(e){d(this,e,!0)},unselectOption:function(e){d(this,e,!1)},getValue:function(){return this.$select.val()},deselectAllOptions:function(){this.$select.val([]).trigger("change"),this.$dropdown.find(".aui-dropdown2-checked,.checked").removeClass("aui-dropdown2-checked checked")},addOption:function(e){(0,a.default)("<option />").attr({value:e.value,icon:e.icon,disabled:e.disabled,selected:e.selected,title:e.title}).text(e.label).appendTo(this.$select),p(this),f(this)},removeOption:function(e){this.$select.find("[value='"+e+"']").remove(),p(this),f(this)}}});return(0,i.default)("aui/checkbox-multiselect"),t.default=s,e.exports=t.default,e.exports}.call(this),("undefined"==typeof window?global:window).__8e2b9598d39bbcb399462a662bcb6efa=function(){var e={exports:{}},t=e.exports;Object.defineProperty(t,"__esModule",{value:!0});var s=o(__fb409c432b53d81bad1e174061f6886c),i=o(__1f10abc98a3cd10182350043fad370a4),n=o(__a96071e28d103a38ba4dff141c560d4f),a=o(__f0d4aa95850a2ae4149235bd35e6184a),r=o(__e50024e98902e443b4a4d9886bd9a31e);function o(e){return e&&e.__esModule?e:{default:e}}var l={"aui-focus":"false","aui-blanketed":"true"};function c(e){var i;this.$el=e?(0,s.default)(e):(0,s.default)(aui.dialog.dialog2({})),i=this.$el,s.default.each(l,function(e,t){e="data-"+e;i[0].hasAttribute(e)||i.attr(e,t)})}c.prototype.on=function(e,t){return(0,a.default)(this.$el).on(e,t),this},c.prototype.off=function(e,t){return(0,a.default)(this.$el).off(e,t),this},c.prototype.show=function(){return(0,a.default)(this.$el).show(),this},c.prototype.hide=function(){return(0,a.default)(this.$el).hide(),this},c.prototype.remove=function(){return(0,a.default)(this.$el).remove(),this},c.prototype.isVisible=function(){return(0,a.default)(this.$el).isVisible()};var d=(0,r.default)("dialog2",c);return d.on=function(e,t){return a.default.on(e,".aui-dialog2",t),this},d.off=function(e,t){return a.default.off(e,".aui-dialog2",t),this},(0,s.default)(document).on("click",".aui-dialog2-header-close",function(e){e.preventDefault(),d((0,s.default)(this).closest(".aui-dialog2")).hide()}),d.on("show",function(e,t){var i;[".aui-dialog2-content",".aui-dialog2-footer",".aui-dialog2-header"].some(function(e){return(i=t.find(e+" :aui-tabbable")).length}),i&&i.first().focus()}),d.on("hide",function(e,t){var i=(0,a.default)(t);t.data("aui-remove-on-hide")&&i.remove()}),(0,i.default)("aui/dialog2",d),(0,n.default)("dialog2",d),t.default=d,e.exports=t.default,e.exports}.call(this),("undefined"==typeof window?global:window).__d257f32161b95ea71e98d3f8313b87bc=function(){var e,t={},i=__fb409c432b53d81bad1e174061f6886c,s=(e=i)&&e.__esModule?e:{default:e};function n(e){var t={};return t.$trigger=(0,s.default)(e.currentTarget),t.$content=r.find("#"+t.$trigger.attr("aria-controls")),t.triggerIsParent=0!==t.$content.parent().filter(t.$trigger).length,t.$shortContent=t.triggerIsParent?t.$trigger.find(".aui-expander-short-content"):null,t.height=t.$content.css("min-height"),t.isCollapsible=!1!==t.$trigger.data("collapsible"),t.replaceText=t.$trigger.attr("data-replace-text"),t.replaceSelector=t.$trigger.data("replace-selector"),t}function a(e){var t;e.replaceText&&(t=e.replaceSelector?e.$trigger.find(e.replaceSelector):e.$trigger,e.$trigger.attr("data-replace-text",t.text()),t.text(e.replaceText))}var r=(0,s.default)(document),o={"aui-expander-invoke":function(e){var t=(0,s.default)(e.currentTarget),i=r.find("#"+t.attr("aria-controls")),e=!1!==t.data("collapsible");"true"===i.attr("aria-expanded")&&e?t.trigger("aui-expander-collapse"):t.trigger("aui-expander-expand")},"aui-expander-expand":function(e){e=n(e);"true"!==e.$content.attr("aria-expanded")&&(e.$content.attr("aria-expanded","true"),e.$trigger.attr("aria-expanded","true"),0<e.$content.outerHeight()&&e.$content.attr("aria-hidden","false"),a(e),e.triggerIsParent&&e.$shortContent.hide(),e.$trigger.trigger("aui-expander-expanded"))},"aui-expander-collapse":function(e){e=n(e);"true"===e.$content.attr("aria-expanded")&&(a(e),e.$content.attr("aria-expanded","false"),e.$trigger.attr("aria-expanded","false"),e.triggerIsParent&&e.$shortContent.show(),0===e.$content.outerHeight()&&e.$content.attr("aria-hidden","true"),e.$trigger.trigger("aui-expander-collapsed"))},"click.aui-expander":function(e){(0,s.default)(e.currentTarget).trigger("aui-expander-invoke",e.currentTarget)}};return r.on(o,".aui-expander-trigger"),t}.call(this),("undefined"==typeof window?global:window).__c11fe0d363f8ec4cb9088910b6a3a7c1=function(){var e={exports:{}},t=e.exports;Object.defineProperty(t,"__esModule",{value:!0});var n=c(__fb409c432b53d81bad1e174061f6886c),a=__ab0bbf63af28826336f58e93f54499f8,i=c(__1f10abc98a3cd10182350043fad370a4),s=c(__a96071e28d103a38ba4dff141c560d4f),r=c(__f64d3cd498337ca9bb808ad279537d9c),o=c(__9397c270147517d168174a404ebf9121),l=c(__c6533c3b525fc203f79712b45a986b5d);function c(e){return e&&e.__esModule?e:{default:e}}var d=5e3,u="aui-flag-container",h={body:"",close:"manual",title:"",type:"info"};function f(e){var t,i,s=function(e){e=(0,o.default)('<div class="aui-flag"><div class="aui-message aui-message-{type} {type} {closeable} shadowed"><p class="title"><strong>{title}</strong></p>{body}\x3c!-- .aui-message --\x3e</div></div>').fill({"body:html":e.body||"",closeable:"never"===e.close?"":"closeable",title:e.title||"",type:e.type}).toString();return(0,n.default)(e)}(e=n.default.extend({},h,e));return(t=s)[0].close=function(){g(t)},"auto"===e.close?(p(s),(i=s).find(".aui-message").addClass("aui-will-close"),setTimeout(function(){i[0].close()},d)):"manual"===e.close&&p(s),b().find(".aui-flag").get().forEach(function(e){"true"===e.getAttribute("aria-hidden")&&(0,n.default)(e).remove()}),function(e){var t=b();t.length||(t=(0,n.default)('<div id="'+u+'"></div>'),(0,n.default)("body").prepend(t));return e.appendTo(t),(0,a.recomputeStyle)(e),e.attr("aria-hidden","false")[0]}(s)}function p(t){var e=(0,n.default)('<span class="aui-icon icon-close" role="button" tabindex="0"></span>');return e.click(function(){g(t)}),e.keypress(function(e){e.which!==r.default.ENTER&&e.which!==r.default.SPACE||(g(t),e.preventDefault())}),t.find(".aui-message").append(e)[0]}function g(e){e=e.get(0);return e.setAttribute("aria-hidden","true"),e.dispatchEvent(new l.default("aui-flag-close",{bubbles:!0})),e}function b(){return(0,n.default)("#"+u)}return(0,i.default)("aui/flag",f),(0,s.default)("flag",f),t.default=f,e.exports=t.default,e.exports}.call(this),("undefined"==typeof window?global:window).__ab0cf0efb5925a47b585aed60ab1e575=function(){var e={},r=a(__fb409c432b53d81bad1e174061f6886c);__7691a83108a01166ebc9ffcd1c8b13c3;var s=function(e){{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t.default=e,t}}(__56f99f629e22233a92f5a2b763037a87),t=a(__1f10abc98a3cd10182350043fad370a4),n=a(__f64d3cd498337ca9bb808ad279537d9c),i=a(__925085afe37c9c6789b788cc0b7c856e);function a(e){return e&&e.__esModule?e:{default:e}}var o="aui-form-notification",l="_aui-form-notification-initialised",c="aui-icon-notification",d=o+"-tooltip",u=d+"-error",h=d+"-info",d="data-aui-notification-",f=d+"wait",p=d+"info",g=d+"error",b=o+"-position",v=[g,"data-aui-notification-success",f,p],m=[],_=1,w=9,y=3;function x(e){var t,i;C(e)||((i=e).addClass(l),function(e){var t=(0,r.default)('<span class="aui-icon aui-icon-small '+c+'"/>');e.after(t)}(i),M(t=e).tipsy({gravity:function(e){var t=e.data(b)||"side",e={side:"w",top:"se",bottom:"ne"}[t];e||(e="w",s.warn('Invalid notification position: "'+t+'". Valid options are "side", "bottom, "top"'));return e}(t),title:function(){return A(t)},trigger:"manual",offset:function(e){return-1!==E.indexOf(e.attr("type"))}(t)?w:y,opacity:_,className:function(){return"aui-form-notification-tooltip "+function(e){e=T(e);{if(e===g)return u;if(e===p)return h}}(t)},html:!0}),R(i=e)&&function(i){i.on("keydown",function(e){var t;!N(e)||""===A(i)||(t=D(i)).length&&(t.focus(),e.preventDefault())})}(i),F(e)),m.push(e)}function C(e){return e.hasClass(l)}var S,E=["text","url","email","tel","password"];function A(e){var t=T(e);return function(e){if(""===e)return e;e=function(t){var i;try{i=JSON.parse(t)}catch(e){i=[t]}return i}(e);return 1===e.length?e[0]:"<ul><li>"+e.join("</li><li>")+"</li></ul>"}(t?e.attr(t):"")}function T(t){var i;return v.some(function(e){if(t.is("["+e+"]"))return i=e,!0}),i}function R(e){return e.is(":aui-focusable")}function O(e){var s;M(e).tipsy("show"),R(e)&&k(s=e).on("keydown",function(e){var t=L(k(s).find(":aui-tabbable").last()),i=L(D(s));N(e)&&t&&t&&s.focus(),(t=e).keyCode===n.default.TAB&&t.shiftKey&&i&&i&&(s.focus(),e.preventDefault())})}function I(e){M(e).tipsy("hide")}function $(e,t){return 0<(0,r.default)(e.target).closest(t).length}function N(e){return e.keyCode===n.default.TAB&&!e.shiftKey&&!e.altKey}function D(e){return k(e).find(":aui-tabbable").first()}function k(e){e=M(e);if(e.data("tipsy"))return e.data("tipsy").$tip}function M(e){return P(e)}function P(e){return e.next("."+c)}function L(e){e=e instanceof r.default?e[0]:e;return e&&e===document.activeElement}function F(e){var t,i=(0,r.default)(e);C(i)&&(t=T(i),e=i,t===f?P(e).addClass("aui-icon-wait"):P(e).removeClass("aui-icon-wait"),!t?I(i):(t=A(i),((r.default.contains(i[0],document.activeElement)||L(i)||!R(i))&&t?O:I)(i)))}return document.addEventListener("focus",function(a){m.forEach(function(e){var t,i,s=(0,r.default)(e),n=k(s);R(s)&&(t=n&&r.default.contains(n[0],a.target),i=s.is(a.target),e=$(a,s),i||e?O(s):n&&!t&&I(s))})},!0),document.addEventListener("mousedown",function(s){(0,r.default)(s.target).is("a")||0<(0,r.default)(s.target).closest(".aui-form-notification-tooltip").length||(0,r.default)("[data-aui-notification-field]").each(function(){var e=(0,r.default)(this),t=e.is(s.target),i=$(s,e);t||i||I(e),R(e)&&I(e)})}),(0,i.default)("data-aui-notification-field",{attached:function(e){x((0,r.default)(e))},attributes:(S={},v.forEach(function(e){S[e]=F}),S),type:i.default.type.ATTRIBUTE}),(0,t.default)("aui/form-notification"),e}.call(this),("undefined"==typeof window?global:window).__305dacee934322074a7c5ba493b13f53=function(){var e={exports:{}},t=e.exports;Object.defineProperty(t,"__esModule",{value:!0});var a=s(__fb409c432b53d81bad1e174061f6886c),r=function(e){{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t.default=e,t}}(__56f99f629e22233a92f5a2b763037a87),i=s(__1f10abc98a3cd10182350043fad370a4);function s(e){return e&&e.__esModule?e:{default:e}}var o=["displayfield","watchfield","when","novalidate","state"],l=[];var n={register:function(e,t){var i;if("string"==typeof e)n=e;else{var s=(i=!1,e.some(function(e){var t=-1!==a.default.inArray(e,o);return t&&(i=e),t}),i);if(s)return r.warn('Validators cannot be registered with the argument "'+s+'", as it is a reserved argument.'),!1;n="[data-aui-validation-"+e.join("],[data-aui-validation-")+"]"}var n={validatorFunction:t,validatorTrigger:n};return l.push(n),n},validators:function(){return l}};return(0,i.default)("aui/form-validation/validator-register",n),t.default=n,e.exports=t.default,e.exports}.call(this),("undefined"==typeof window?global:window).__384d08a9ea889f95dbeb689d885ef11f=function(){var e={},a=s(__fb409c432b53d81bad1e174061f6886c),t=s(__1f10abc98a3cd10182350043fad370a4),i=(s(__f1a73c548443f7dd9b9314f3b2f6f503),s(__51474667125a5bfeb6e78ef22f02f983),s(__305dacee934322074a7c5ba493b13f53));function s(e){return e&&e.__esModule?e:{default:e}}function n(e){var t,i=e.el.value.length,s=0===i,n=parseInt(e.args("minlength"),10),a=parseInt(e.args("maxlength"),10);n&&a&&n===a&&!s&&i!==n?(t=u("exactlength",e.args,[n]),e.invalidate(t)):n&&i<n&&!s?(s=u("minlength",e.args),e.invalidate(s)):a&&a<i?(i=u("maxlength",e.args),e.invalidate(i)):e.validate()}function r(e){return"password"===e.getAttribute("type")}function o(e,t){t=e.match(t);return!!t&&e===t[0]}function l(e){var t=u("pattern",e.args);o(e.el.value,new RegExp(e.args("pattern")))?e.validate():e.invalidate(t)}function c(e){var t=u("required",e.args);e.el.value?e.validate():e.invalidate(t)}function d(e){var t,i=u("validnumber",e.args),s=parseInt(e.el.value,10);isNaN(s)?e.invalidate(i):(t=e.args("min"),i=e.args("max"),t&&s<parseInt(t,10)?e.invalidate(u("min",e.args)):i&&s>parseInt(i,10)?e.invalidate(u("max",e.args)):e.validate())}function u(e,t,i){var s=void 0!==AJS.I18n.keys?AJS.I18n.keys["aui.validation.message."+e]:h[e],n=i;i||(n=[t(e)]);e=t(e+"-msg"),n=(e?[e]:[s]).concat(n);return AJS.format.apply(null,n)}i.default.register(["maxlength","minlength"],n),i.default.register("[maxlength],[minlength]",n),i.default.register(["matchingfield"],function(e){var t=e.el.value,i=document.getElementById(e.args("matchingfield")),s=i.value,n=u("matchingfield",e.args,[t,s]);(r(e.el)||r(i))&&(n=u("matchingfield-novalue",e.args)),t&&s&&s!==t?e.invalidate(n):e.validate()}),i.default.register(["doesnotcontain"],function(e){var t=u("doesnotcontain",e.args);-1===e.el.value.indexOf(e.args("doesnotcontain"))?e.validate():e.invalidate(t)}),i.default.register(["pattern"],l),i.default.register("[pattern]",l),i.default.register(["required"],c),i.default.register("[required]",c),i.default.register(["min","max"],d),i.default.register("[min],[max]",d),i.default.register(["dateformat"],function(e){var t=e.args("dateformat"),i=u("dateformat",e.args),s={Y:"[0-9]{4}",y:"[0-9]{2}",m:"(0?[1-9]|10|11|12)",M:"[Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec]",D:"[Mon|Tue|Wed|Thu|Fri|Sat|Sun]",d:"([0-2]?[1-9]|10|20|30|31)"},t=t.split(""),n="";t.forEach(function(e){var t=s.hasOwnProperty(e);n+=t?s[e]:e});t=new RegExp(n+"$","i");o(e.el.value,t)?e.validate():e.invalidate(i)}),i.default.register(["minchecked","maxchecked"],function(e){var t=(0,a.default)(e.el).find(":checked").length,i=!e.args("minchecked")||t>=e.args("minchecked"),s=!e.args("maxchecked")||t<=e.args("maxchecked"),n=u("minchecked",e.args),t=u("maxchecked",e.args);i&&s?e.validate():i?s||e.invalidate(t):e.invalidate(n)});var h={minlength:AJS.I18n.getText("aui.validation.message.minlength"),maxlength:AJS.I18n.getText("aui.validation.message.maxlength"),exactlength:AJS.I18n.getText("aui.validation.message.exactlength"),matchingfield:AJS.I18n.getText("aui.validation.message.matchingfield"),"matchingfield-novalue":AJS.I18n.getText("aui.validation.message.matchingfield-novalue"),doesnotcontain:AJS.I18n.getText("aui.validation.message.doesnotcontain"),pattern:AJS.I18n.getText("aui.validation.message.pattern"),required:AJS.I18n.getText("aui.validation.message.required"),validnumber:AJS.I18n.getText("aui.validation.message.validnumber"),min:AJS.I18n.getText("aui.validation.message.min"),max:AJS.I18n.getText("aui.validation.message.max"),dateformat:AJS.I18n.getText("aui.validation.message.dateformat"),minchecked:AJS.I18n.getText("aui.validation.message.minchecked"),maxchecked:AJS.I18n.getText("aui.validation.message.maxchecked")};return(0,t.default)("aui/form-validation/basic-validators"),e}.call(this),("undefined"==typeof window?global:window).__39d83cff5ac029dfa62c3a3f44f98b25=function(){var e={exports:{}},t=e.exports;Object.defineProperty(t,"__esModule",{value:!0});var r=l(__fb409c432b53d81bad1e174061f6886c);__ab0cf0efb5925a47b585aed60ab1e575,__384d08a9ea889f95dbeb689d885ef11f;var i=l(__1f10abc98a3cd10182350043fad370a4),o=function(e){{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t.default=e,t}}(__dc3494b595b6cf86534cbde834ab95b6),s=l(__a96071e28d103a38ba4dff141c560d4f),n=l(__925085afe37c9c6789b788cc0b7c856e),a=l(__305dacee934322074a7c5ba493b13f53);function l(e){return e&&e.__esModule?e:{default:e}}var c="aui-validation-",d="data-aui-notification-",u="aui-validation-state",h="invalid",f="valid",p="validating",g="unvalidated",b="_aui-form-validation-initialised",v="_aui-internal-field-state-changed";function m(e){var t;e.hasClass(b)||(E(e).attr("data-aui-notification-field",""),e.addClass(b),function(e){function t(){e.trigger("aui-stop-typing")}var i;e.on("keyup",function(){clearTimeout(i),i=setTimeout(t,1500)})}(t=e),function(e){var t=w(e,"when"),i=w(e,"watchfield");(i?e.add("#"+i):e).on(t,function(){_(e)})}(t),x(e,g))}function _(e){if(!w(e,"novalidate"))return function(e){!function(e){C(E(e),"none")}(e);var t=function(i){var s=[];return y().forEach(function(e,t){e=e.validatorTrigger;i.is(e)&&s.push(t)}),s}(e);x(e,p);t=function(n,e){var a=[];return e.forEach(function(e){var t,i,s=y()[e].validatorFunction,e=new r.default.Deferred;s((i=e,s={validate:function(){i.resolve()},invalidate:function(e){x(t,h,e),i.reject()},args:function(t){return function(e){return t.attr("data-"+c+e)||t.attr(e)}}(t=n),el:t[0],$el:t},o.prop(s,"$el",{sinceVersion:"5.9.0",removeInVersion:"8.0.0",alternativeName:"el",extraInfo:"See https://ecosystem.atlassian.net/browse/AUI-3263."}),s)),a.push(e)}),a}(e,t),t=r.default.when.apply(r.default,t);return t.done(function(){x(e,f)}),t}(e);x(e,f)}function w(e,t){return e.attr("data-"+c+t)||{when:"change"}[t]}function y(){return a.default.validators()}function x(e,t,i){var s,n,a;e.attr("data-"+u,t),t!==g&&(e.trigger(r.default.Event(v)),s=E(e),(n={})[p]="wait",n[h]="error",n[f]="success",n=n[t],t===p?(a=e,setTimeout(function(){A(a)===p&&C(a,"wait")},500)):C(s,n,i))}function C(e,t,i){var s,n=e.is("["+d+"wait]");S(s=e,"wait"),S(s,"success"),"success"===t&&!n||("none"===t?S(e,"error"):(n=e.attr(d+t)||"[]",n=i?function(e,t){e=JSON.parse(t).concat([e]);return JSON.stringify(e)}(i,n):"",e.attr(d+t,n)))}function S(e,t){e.removeAttr(d+t)}function E(e){var t=w(e,"displayfield");return void 0===t?e:(0,r.default)("#"+t)}function A(e){return e.attr("data-"+u)}function T(e,t){t.preventDefault(),e.one(v,function(){e.trigger("submit")})}function R(e,t){return e.find("[data-"+u+"="+t+"]")}(0,r.default)(document).on("submit",function(e){var t=e.target,i=(0,r.default)(t),t=function(e){var t=-1!==e.indexOf(h),i=-1!==e.indexOf(g),e=-1!==e.indexOf(p);return t?h:i?g:e?p:f}(function(e){return r.default.map(e,function(e){return A((0,r.default)(e))})}(i.find("."+b)));t===g?(T(i,e),R(i,g).each(function(e,t){O.validate((0,r.default)(t))})):t===p?T(i,e):t===h?(e.preventDefault(),R(i,h).first().focus()):t===f&&(t=r.default.Event("aui-valid-submit"),i.trigger(t),t.isDefaultPrevented()&&e.preventDefault())});var O={register:a.default.register,validate:function(e){_(e=(0,r.default)(e))}};return(0,n.default)("data-aui-validation-field",{attached:function(e){e.form&&e.form.setAttribute("novalidate","novalidate"),m((0,r.default)(e)),n.default.init(e)},type:n.default.type.ATTRIBUTE}),(0,i.default)("aui/form-validation",O),(0,s.default)("formValidation",O),t.default=O,e.exports=t.default,e.exports}.call(this),("undefined"==typeof window?global:window).__a255563e8550ec3cb95a1bf95f62d7c1=function(){var e={},t=e;Object.defineProperty(t,"__esModule",{value:!0});return t.INPUT_SUFFIX="-input",e}.call(this),("undefined"==typeof window?global:window).__4138c4c5f11214ec1a3e3c67731835b3=function(){var e={exports:{}},t=e.exports;Object.defineProperty(t,"__esModule",{value:!0});var i=r(__925085afe37c9c6789b788cc0b7c856e),s=r(__14d08a893ec8c5a2f1721a89472bb9e6),n=r(__09b85388a8d04b37e92fac1a13b12753),a=__a255563e8550ec3cb95a1bf95f62d7c1;function r(e){return e&&e.__esModule?e:{default:e}}function o(e){return e.querySelector("label")}s=(0,i.default)("aui-label",{template:(0,s.default)("<label><content></content></label>"),created:function(e){e._label=o(e)},attached:function(e){(0,n.default)(e).attributeExists("for")},attributes:{for:function(e,t){e.hasAttribute("for")?o(e).setAttribute("for",""+t.newValue+a.INPUT_SUFFIX):o(e).removeAttribute("for")},form:function(e,t){e.hasAttribute("form")?o(e).setAttribute("form",t.newValue):o(e).removeAttribute("form")}},prototype:{get disabled(){return this.hasAttribute("disabled")},set disabled(e){e?this.setAttribute("disabled",""):this.removeAttribute("disabled")}},events:{click:function(e,t){e.disabled&&t.preventDefault()}}});return t.default=s,e.exports=t.default,e.exports}.call(this),("undefined"==typeof window?global:window).__68f80d0c0781d8869bd96e6520696e9f=function(){var e={exports:{}},t=e.exports;Object.defineProperty(t,"__esModule",{value:!0});var r=c(__fb409c432b53d81bad1e174061f6886c),i=c(__94836917f25cd6985dba837233d3b857),s=c(__4e48666adde7348532bec900d8746a35),n=__ab0bbf63af28826336f58e93f54499f8,o=__ac4b25bb9b3c22ec7c045898c699fde1,a=function(e){{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t.default=e,t}}(__dc3494b595b6cf86534cbde834ab95b6),l=c(__a96071e28d103a38ba4dff141c560d4f);function c(e){return e&&e.__esModule?e:{default:e}}var d="aui-progress-indicator-after-update",u="aui-progress-indicator-before-update",h="transitionend webkitTransitionEnd";function f(e,t,i){(0,n.recomputeStyle)(e),e.css("width",100*i+"%"),t.attr("data-value",i)}function p(e,t,i){var s=i.currentProgress,n=i.value,e=(0,r.default)(e),a=(0,r.default)(t);"number"==typeof n&&n<=1&&0<=n&&(a.trigger(u,[s,n]),(0,o.supportsCssTransition)()?(e.one(h,function(){a.trigger(d,[s,n])}),f(e,a,n)):(f(e,a,n),a.trigger(d,[s,n])))}function g(e){var t=(0,r.default)(e).first(),e=t.children(".aui-progress-indicator-value");t.removeAttr("data-value"),(0,n.recomputeStyle)(t),e.css("width","")}var b={indeterminate:!1,max:1,val:0};function v(e){return i.default.isNumber(e)&&i.default.isFinite(e)&&!i.default.isNaN(e)}function m(e,t){var i=1<arguments.length&&void 0!==t?t:1,s=parseFloat(e);return v(s)?s:Number(i)}function _(e,t){var i=1<arguments.length&&void 0!==t?t:1;return Number(parseFloat(e).toFixed(i))}function w(e){var t=e.val,i=e.max,i=0<(e=i)?e:b.max,e=(e=t,t=i,Math.max(0,Math.min(e,t))),t=_(e/i,6);return{max:i,val:e,valAsFraction:t,valAsPercent:_(100*t,2)}}function y(e){var t=w(e._data),i=t.val,s=t.valAsFraction,n=t.max,a=e.querySelector(".aui-progress-indicator"),t=a.getAttribute("data-value");e.indeterminate?(a.removeAttribute("aria-valuenow"),g(a)):(a.setAttribute("aria-valuenow",i),a.setAttribute("aria-valuemax",n),p(a.querySelector(".aui-progress-indicator-value"),a,{currentProgress:t,value:s}))}function x(e,t){e._data.val=m(t.newValue,t.oldValue||b.val),y(e)}function C(e,t){e._data.max=m(t.newValue,t.oldValue||b.max),y(e)}(0,s.default)("aui-progressbar",{template:function(e){e._data.max=m(e.getAttribute("max"),b.max),e._data.val=m(e.getAttribute("value"),b.val),e._data.indeterminate=e.hasAttribute("indeterminate");var t=w(e._data),i=t.val,s=t.max,n=t.valAsFraction,t=t.valAsPercent,n=e._data.indeterminate?"":'data-value="'+n+'"';e.innerHTML='<div class="aui-progress-indicator"\n '+n+'\n role="progressbar"\n aria-valuemin="0"\n aria-valuenow="'+i+'"\n aria-valuemax="'+s+'"\n tabindex="0"\n >\n <span class="aui-progress-indicator-value" style="width: '+t+'%"></span>\n </div>'},attached:function(e){y(e)},attributes:{indeterminate:{created:function(e){e.indeterminate=!0},removed:function(e){e.indeterminate=!1}},value:{value:b.val,fallback:function(e,t){if(e._updating)return!1;x(e,t)}},max:{value:b.max,fallback:function(e,t){if(e._updating)return!1;C(e,t)}}},prototype:{get _data(){return this.__data||(this._data=i.default.defaults({},b))},set _data(e){return this.__data=e},get indeterminate(){return this._data.indeterminate},set indeterminate(e){this._data.indeterminate=!!e,y(this)},get value(){return w(this._data).val},set value(e){if(!v(e))return!1;e={newValue:_(e,6)};this._updating=!0,this.setAttribute("value",e.newValue),this._updating=!1,x(this,e)},get max(){return w(this._data).max},set max(e){if(!v(e))return!1;e={newValue:_(e,6)};this._updating=!0,this.setAttribute("max",e.newValue),this._updating=!1,C(this,e)}}});a={update:a.fn(function(e,t){"string"!=typeof e||(a=document.getElementById(e))&&(e=a);var i=(0,r.default)(e).first(),s=i.children(".aui-progress-indicator-value"),n=i.attr("data-value"),a=!n,e=parseFloat(n)||0;if(!(n=(n=n&&e===t)&&e===100*(parseFloat(s.get(0).style.width)||0)))return a&&s.css("width",0),p(s,i,{currentProgress:e,value:t}),i},"AJS.progressBars.update",{sinceVersion:"7.7.0",extraInfo:"Use the <aui-progressbar> web component instead"}),setIndeterminate:a.fn(g,"AJS.progressBars.setIndeterminate",{sinceVersion:"7.7.0",extraInfo:"Use the <aui-progressbar> web component instead"})};return(0,l.default)("progressBars",a),t.default=a,e.exports=t.default,e.exports}.call(this),("undefined"==typeof window?global:window).__05878ccffe855c7a59262e3b6f931a93=function(){var r,o={exports:{}},l=o.exports,c={module:o,exports:l,underscore:__bbccf1f2259ccc564228863bcf091d15,jquery:__fb409c432b53d81bad1e174061f6886c,underscore:__bbccf1f2259ccc564228863bcf091d15,jquery:__fb409c432b53d81bad1e174061f6886c},i=(r="__05878ccffe855c7a59262e3b6f931a93",function(e,t,i){var s,n,a=("undefined"==typeof window?global:window).define;i=[i,t,e].filter(function(e){return"function"==typeof e})[0],t=[t,e,[]].filter(Array.isArray)[0],n=typeof(s=i.apply(null,t.map(function(e){return c[e]}))),"function"==typeof a&&a("string"==typeof e?e:r,t,i),"string"==n?s=String(s):"number"==n?s=Number(s):"boolean"==n&&(s=Boolean(s)),void 0!==s&&(l=o.exports=s)});return i.amd=!0,function(s,n){if("function"==typeof i&&i.amd)i(["underscore","jquery","exports"],function(e,t,i){s.Backbone=n(s,i,e,t)});else if(void 0!==l){var e,t=__bbccf1f2259ccc564228863bcf091d15;try{e=__fb409c432b53d81bad1e174061f6886c}catch(e){}n(s,l,t,e)}else s.Backbone=n(s,{},s._,s.jQuery||s.Zepto||s.ender||s.$)}(this,function(e,r,f,t){var i=(e=this).Backbone,s=[],p=s.push,n=s.slice,g=s.splice;r.VERSION="1.0.0",r.$=t,r.noConflict=function(){return e.Backbone=i,this},r.emulateHTTP=!1,r.emulateJSON=!1;var a=r.Events={on:function(e,t,i){return u(this,"on",e,[t,i])&&t&&(this._events||(this._events={}),(this._events[e]||(this._events[e]=[])).push({callback:t,context:i,ctx:i||this})),this},once:function(e,t,i){if(!u(this,"once",e,[t,i])||!t)return this;var s=this,n=f.once(function(){s.off(e,n),t.apply(this,arguments)});return n._callback=t,this.on(e,n,i)},off:function(e,t,i){var s,n,a,r,o,l,c,d;if(!this._events||!u(this,"off",e,[t,i]))return this;if(!e&&!t&&!i)return this._events={},this;for(o=0,l=(r=e?[e]:f.keys(this._events)).length;o<l;o++)if(e=r[o],a=this._events[e]){if(this._events[e]=s=[],t||i)for(c=0,d=a.length;c<d;c++)n=a[c],(t&&t!==n.callback&&t!==n.callback._callback||i&&i!==n.context)&&s.push(n);s.length||delete this._events[e]}return this},trigger:function(e){if(!this._events)return this;var t=n.call(arguments,1);if(!u(this,"trigger",e,t))return this;var i=this._events[e],s=this._events.all;return i&&o(i,t),s&&o(s,arguments),this},stopListening:function(e,t,i){var s=this._listeners;if(!s)return this;var n,a=!t&&!i;for(n in"object"==typeof t&&(i=this),e&&((s={})[e._listenerId]=e),s)s[n].off(t,i,this),a&&delete this._listeners[n];return this}},l=/\s+/,u=function(e,t,i,s){if(!i)return!0;if("object"==typeof i){for(var n in i)e[t].apply(e,[n,i[n]].concat(s));return!1}if(l.test(i)){for(var a=i.split(l),r=0,o=a.length;r<o;r++)e[t].apply(e,[a[r]].concat(s));return!1}return!0},o=function(e,t){var i,s=-1,n=e.length,a=t[0],r=t[1],o=t[2];switch(t.length){case 0:for(;++s<n;)(i=e[s]).callback.call(i.ctx);return;case 1:for(;++s<n;)(i=e[s]).callback.call(i.ctx,a);return;case 2:for(;++s<n;)(i=e[s]).callback.call(i.ctx,a,r);return;case 3:for(;++s<n;)(i=e[s]).callback.call(i.ctx,a,r,o);return;default:for(;++s<n;)(i=e[s]).callback.apply(i.ctx,t)}};f.each({listenTo:"on",listenToOnce:"once"},function(s,e){a[e]=function(e,t,i){return((this._listeners||(this._listeners={}))[e._listenerId||(e._listenerId=f.uniqueId("l"))]=e)[s](t,i="object"==typeof t?this:i,this),this}}),a.bind=a.on,a.unbind=a.off,f.extend(r,a);var c=r.Model=function(e,t){var i,s=e||{};t=t||{},this.cid=f.uniqueId("c"),this.attributes={},f.extend(this,f.pick(t,d)),t.parse&&(s=this.parse(s,t)||{}),(i=f.result(this,"defaults"))&&(s=f.defaults({},s,i)),this.set(s,t),this.changed={},this.initialize.apply(this,arguments)},d=["url","urlRoot","collection"];f.extend(c.prototype,a,{changed:null,validationError:null,idAttribute:"id",initialize:function(){},toJSON:function(e){return f.clone(this.attributes)},sync:function(){return r.sync.apply(this,arguments)},get:function(e){return this.attributes[e]},escape:function(e){return f.escape(this.get(e))},has:function(e){return null!=this.get(e)},set:function(e,t,i){var s,n,a,r,o,l,c;if(null==e)return this;if("object"==typeof e?(n=e,i=t):(n={})[e]=t,!this._validate(n,i=i||{}))return!1;for(s in a=i.unset,o=i.silent,r=[],e=this._changing,this._changing=!0,e||(this._previousAttributes=f.clone(this.attributes),this.changed={}),c=this.attributes,l=this._previousAttributes,this.idAttribute in n&&(this.id=n[this.idAttribute]),n)t=n[s],f.isEqual(c[s],t)||r.push(s),f.isEqual(l[s],t)?delete this.changed[s]:this.changed[s]=t,a?delete c[s]:c[s]=t;if(!o){r.length&&(this._pending=!0);for(var d=0,u=r.length;d<u;d++)this.trigger("change:"+r[d],this,c[r[d]],i)}if(e)return this;if(!o)for(;this._pending;)this._pending=!1,this.trigger("change",this,i);return this._pending=!1,this._changing=!1,this},unset:function(e,t){return this.set(e,void 0,f.extend({},t,{unset:!0}))},clear:function(e){var t,i={};for(t in this.attributes)i[t]=void 0;return this.set(i,f.extend({},e,{unset:!0}))},hasChanged:function(e){return null==e?!f.isEmpty(this.changed):f.has(this.changed,e)},changedAttributes:function(e){if(!e)return!!this.hasChanged()&&f.clone(this.changed);var t,i,s=!1,n=this._changing?this._previousAttributes:this.attributes;for(i in e)f.isEqual(n[i],t=e[i])||((s=s||{})[i]=t);return s},previous:function(e){return null!=e&&this._previousAttributes?this._previousAttributes[e]:null},previousAttributes:function(){return f.clone(this._previousAttributes)},fetch:function(t){void 0===(t=t?f.clone(t):{}).parse&&(t.parse=!0);var i=this,s=t.success;return t.success=function(e){if(!i.set(i.parse(e,t),t))return!1;s&&s(i,e,t),i.trigger("sync",i,e,t)},$(this,t),this.sync("read",this,t)},save:function(e,t,i){var s,n=this.attributes;if(null==e||"object"==typeof e?(s=e,i=t):(s={})[e]=t,s&&(!i||!i.wait)&&!this.set(s,i))return!1;if(i=f.extend({validate:!0},i),!this._validate(s,i))return!1;s&&i.wait&&(this.attributes=f.extend({},n,s)),void 0===i.parse&&(i.parse=!0);var a=this,r=i.success;return i.success=function(e){a.attributes=n;var t=a.parse(e,i);if(i.wait&&(t=f.extend(s||{},t)),f.isObject(t)&&!a.set(t,i))return!1;r&&r(a,e,i),a.trigger("sync",a,e,i)},$(this,i),"patch"==(t=this.isNew()?"create":i.patch?"patch":"update")&&(i.attrs=s),t=this.sync(t,this,i),s&&i.wait&&(this.attributes=n),t},destroy:function(t){t=t?f.clone(t):{};function i(){s.trigger("destroy",s,s.collection,t)}var s=this,n=t.success;if(t.success=function(e){(t.wait||s.isNew())&&i(),n&&n(s,e,t),s.isNew()||s.trigger("sync",s,e,t)},this.isNew())return t.success(),!1;$(this,t);var e=this.sync("delete",this,t);return t.wait||i(),e},url:function(){var e=f.result(this,"urlRoot")||f.result(this.collection,"url")||I();return this.isNew()?e:e+("/"===e.charAt(e.length-1)?"":"/")+encodeURIComponent(this.id)},parse:function(e,t){return e},clone:function(){return new this.constructor(this.attributes)},isNew:function(){return null==this.id},isValid:function(e){return this._validate({},f.extend(e||{},{validate:!0}))},_validate:function(e,t){if(!t.validate||!this.validate)return!0;e=f.extend({},this.attributes,e);e=this.validationError=this.validate(e,t)||null;return!e||(this.trigger("invalid",this,e,f.extend(t||{},{validationError:e})),!1)}});f.each(["keys","values","pairs","invert","pick","omit"],function(t){c.prototype[t]=function(){var e=n.call(arguments);return e.unshift(this.attributes),f[t].apply(f,e)}});var h=r.Collection=function(e,t){(t=t||{}).url&&(this.url=t.url),t.model&&(this.model=t.model),void 0!==t.comparator&&(this.comparator=t.comparator),this._reset(),this.initialize.apply(this,arguments),e&&this.reset(e,f.extend({silent:!0},t))},b={add:!0,remove:!0,merge:!0},v={add:!0,merge:!1,remove:!1};f.extend(h.prototype,a,{model:c,initialize:function(){},toJSON:function(t){return this.map(function(e){return e.toJSON(t)})},sync:function(){return r.sync.apply(this,arguments)},add:function(e,t){return this.set(e,f.defaults(t||{},v))},remove:function(e,t){var i,s,n,a;for(t=t||{},i=0,s=(e=f.isArray(e)?e.slice():[e]).length;i<s;i++)(a=this.get(e[i]))&&(delete this._byId[a.id],delete this._byId[a.cid],n=this.indexOf(a),this.models.splice(n,1),this.length--,t.silent||(t.index=n,a.trigger("remove",a,this,t)),this._removeReference(a));return this},set:function(e,t){var i,s,n;(t=f.defaults(t||{},b)).parse&&(e=this.parse(e,t)),f.isArray(e)||(e=e?[e]:[]);for(var a=t.at,r=this.comparator&&null==a&&!1!==t.sort,o=f.isString(this.comparator)?this.comparator:null,l=[],c=[],d={},u=0,h=e.length;u<h;u++)(i=this._prepareModel(e[u],t))&&((s=this.get(i))?(t.remove&&(d[s.cid]=!0),t.merge&&(s.set(i.attributes,t),r&&!n&&s.hasChanged(o)&&(n=!0))):t.add&&(l.push(i),i.on("all",this._onModelEvent,this),null!=(this._byId[i.cid]=i).id&&(this._byId[i.id]=i)));if(t.remove){for(u=0,h=this.length;u<h;++u)d[(i=this.models[u]).cid]||c.push(i);c.length&&this.remove(c,t)}if(l.length&&(r&&(n=!0),this.length+=l.length,null!=a?g.apply(this.models,[a,0].concat(l)):p.apply(this.models,l)),n&&this.sort({silent:!0}),t.silent)return this;for(u=0,h=l.length;u<h;u++)(i=l[u]).trigger("add",i,this,t);return n&&this.trigger("sort",this,t),this},reset:function(e,t){t=t||{};for(var i=0,s=this.models.length;i<s;i++)this._removeReference(this.models[i]);return t.previousModels=this.models,this._reset(),this.add(e,f.extend({silent:!0},t)),t.silent||this.trigger("reset",this,t),this},push:function(e,t){return e=this._prepareModel(e,t),this.add(e,f.extend({at:this.length},t)),e},pop:function(e){var t=this.at(this.length-1);return this.remove(t,e),t},unshift:function(e,t){return e=this._prepareModel(e,t),this.add(e,f.extend({at:0},t)),e},shift:function(e){var t=this.at(0);return this.remove(t,e),t},slice:function(e,t){return this.models.slice(e,t)},get:function(e){if(null!=e)return this._byId[null!=e.id?e.id:e.cid||e]},at:function(e){return this.models[e]},where:function(i,e){return f.isEmpty(i)?e?void 0:[]:this[e?"find":"filter"](function(e){for(var t in i)if(i[t]!==e.get(t))return!1;return!0})},findWhere:function(e){return this.where(e,!0)},sort:function(e){if(!this.comparator)throw new Error("Cannot sort a set without a comparator");return e=e||{},f.isString(this.comparator)||1===this.comparator.length?this.models=this.sortBy(this.comparator,this):this.models.sort(f.bind(this.comparator,this)),e.silent||this.trigger("sort",this,e),this},sortedIndex:function(e,t,i){t=t||this.comparator;var s=f.isFunction(t)?t:function(e){return e.get(t)};return f.sortedIndex(this.models,e,s,i)},pluck:function(e){return f.invoke(this.models,"get",e)},fetch:function(i){void 0===(i=i?f.clone(i):{}).parse&&(i.parse=!0);var s=i.success,n=this;return i.success=function(e){var t=i.reset?"reset":"set";n[t](e,i),s&&s(n,e,i),n.trigger("sync",n,e,i)},$(this,i),this.sync("read",this,i)},create:function(e,t){if(t=t?f.clone(t):{},!(e=this._prepareModel(e,t)))return!1;t.wait||this.add(e,t);var s=this,n=t.success;return t.success=function(e,t,i){i.wait&&s.add(e,i),n&&n(e,t,i)},e.save(null,t),e},parse:function(e,t){return e},clone:function(){return new this.constructor(this.models)},_reset:function(){this.length=0,this.models=[],this._byId={}},_prepareModel:function(e,t){if(e instanceof c)return e.collection||(e.collection=this),e;var i=new((t=t||{}).collection=this).model(e,t);return i._validate(e,t)?i:(this.trigger("invalid",this,e,t),!1)},_removeReference:function(e){this===e.collection&&delete e.collection,e.off("all",this._onModelEvent,this)},_onModelEvent:function(e,t,i,s){("add"!==e&&"remove"!==e||i===this)&&("destroy"===e&&this.remove(t,s),t&&e==="change:"+t.idAttribute&&(delete this._byId[t.previous(t.idAttribute)],null!=t.id&&(this._byId[t.id]=t)),this.trigger.apply(this,arguments))}});f.each(["forEach","each","map","collect","reduce","foldl","inject","reduceRight","foldr","find","detect","filter","select","reject","every","all","some","any","include","contains","invoke","max","min","toArray","size","first","head","take","initial","rest","tail","drop","last","without","indexOf","shuffle","lastIndexOf","isEmpty","chain"],function(t){h.prototype[t]=function(){var e=n.call(arguments);return e.unshift(this.models),f[t].apply(f,e)}});f.each(["groupBy","countBy","sortBy"],function(s){h.prototype[s]=function(t,e){var i=f.isFunction(t)?t:function(e){return e.get(t)};return f[s](this.models,i,e)}});var s=r.View=function(e){this.cid=f.uniqueId("view"),this._configure(e||{}),this._ensureElement(),this.initialize.apply(this,arguments),this.delegateEvents()},m=/^(\S+)\s*(.*)$/,_=["model","collection","el","id","attributes","className","tagName","events"];f.extend(s.prototype,a,{tagName:"div",$:function(e){return this.$el.find(e)},initialize:function(){},render:function(){return this},remove:function(){return this.$el.remove(),this.stopListening(),this},setElement:function(e,t){return this.$el&&this.undelegateEvents(),this.$el=e instanceof r.$?e:r.$(e),this.el=this.$el[0],!1!==t&&this.delegateEvents(),this},delegateEvents:function(e){if(!(e=e||f.result(this,"events")))return this;for(var t in this.undelegateEvents(),e){var i,s=e[t];(s=!f.isFunction(s)?this[e[t]]:s)&&(t=(i=t.match(m))[1],i=i[2],s=f.bind(s,this),t+=".delegateEvents"+this.cid,""===i?this.$el.on(t,s):this.$el.on(t,i,s))}return this},undelegateEvents:function(){return this.$el.off(".delegateEvents"+this.cid),this},_configure:function(e){this.options&&(e=f.extend({},f.result(this,"options"),e)),f.extend(this,f.pick(e,_)),this.options=e},_ensureElement:function(){var e;this.el?this.setElement(f.result(this,"el"),!1):(e=f.extend({},f.result(this,"attributes")),this.id&&(e.id=f.result(this,"id")),this.className&&(e.class=f.result(this,"className")),e=r.$("<"+f.result(this,"tagName")+">").attr(e),this.setElement(e,!1))}}),r.sync=function(e,t,i){var s=w[e];f.defaults(i=i||{},{emulateHTTP:r.emulateHTTP,emulateJSON:r.emulateJSON});var n,a={type:s,dataType:"json"};i.url||(a.url=f.result(t,"url")||I()),null!=i.data||!t||"create"!==e&&"update"!==e&&"patch"!==e||(a.contentType="application/json",a.data=JSON.stringify(i.attrs||t.toJSON(i))),i.emulateJSON&&(a.contentType="application/x-www-form-urlencoded",a.data=a.data?{model:a.data}:{}),!i.emulateHTTP||"PUT"!==s&&"DELETE"!==s&&"PATCH"!==s||(a.type="POST",i.emulateJSON&&(a.data._method=s),n=i.beforeSend,i.beforeSend=function(e){if(e.setRequestHeader("X-HTTP-Method-Override",s),n)return n.apply(this,arguments)}),"GET"===a.type||i.emulateJSON||(a.processData=!1),"PATCH"!==a.type||!window.ActiveXObject||window.external&&window.external.msActiveXFilteringEnabled||(a.xhr=function(){return new ActiveXObject("Microsoft.XMLHTTP")});a=i.xhr=r.ajax(f.extend(a,i));return t.trigger("request",t,a,i),a};var w={create:"POST",update:"PUT",patch:"PATCH",delete:"DELETE",read:"GET"};r.ajax=function(){return r.$.ajax.apply(r.$,arguments)};var t=r.Router=function(e){(e=e||{}).routes&&(this.routes=e.routes),this._bindRoutes(),this.initialize.apply(this,arguments)},y=/\((.*?)\)/g,x=/(\(\?)?:\w+/g,C=/\*\w+/g,S=/[\-{}\[\]+?.,\\\^$|#\s]/g;f.extend(t.prototype,a,{initialize:function(){},route:function(t,i,s){f.isRegExp(t)||(t=this._routeToRegExp(t)),f.isFunction(i)&&(s=i,i=""),s=s||this[i];var n=this;return r.history.route(t,function(e){e=n._extractParameters(t,e);s&&s.apply(n,e),n.trigger.apply(n,["route:"+i].concat(e)),n.trigger("route",i,e),r.history.trigger("route",n,i,e)}),this},navigate:function(e,t){return r.history.navigate(e,t),this},_bindRoutes:function(){if(this.routes){this.routes=f.result(this,"routes");for(var e,t=f.keys(this.routes);null!=(e=t.pop());)this.route(e,this.routes[e])}},_routeToRegExp:function(e){return e=e.replace(S,"\\$&").replace(y,"(?:$1)?").replace(x,function(e,t){return t?e:"([^/]+)"}).replace(C,"(.*?)"),new RegExp("^"+e+"$")},_extractParameters:function(e,t){t=e.exec(t).slice(1);return f.map(t,function(e){return e?decodeURIComponent(e):null})}});var E=r.History=function(){this.handlers=[],f.bindAll(this,"checkUrl"),"undefined"!=typeof window&&(this.location=window.location,this.history=window.history)},A=/^[#\/]|\s+$/g,T=/^\/+|\/+$/g,R=/msie [\w.]+/,O=/\/$/;E.started=!1,f.extend(E.prototype,a,{interval:50,getHash:function(e){e=(e||this).location.href.match(/#(.*)$/);return e?e[1]:""},getFragment:function(e,t){return null==e&&(this._hasPushState||!this._wantsHashChange||t?(e=this.location.pathname,t=this.root.replace(O,""),e.indexOf(t)||(e=e.substr(t.length))):e=this.getHash()),e.replace(A,"")},start:function(e){if(E.started)throw new Error("Backbone.history has already been started");E.started=!0,this.options=f.extend({},{root:"/"},this.options,e),this.root=this.options.root,this._wantsHashChange=!1!==this.options.hashChange,this._wantsPushState=!!this.options.pushState,this._hasPushState=!!(this.options.pushState&&this.history&&this.history.pushState);var t=this.getFragment(),e=document.documentMode,e=R.exec(navigator.userAgent.toLowerCase())&&(!e||e<=7);this.root=("/"+this.root+"/").replace(T,"/"),e&&this._wantsHashChange&&(this.iframe=r.$('<iframe src="javascript:0" tabindex="-1" />').hide().appendTo("body")[0].contentWindow,this.navigate(t)),this._hasPushState?r.$(window).on("popstate",this.checkUrl):this._wantsHashChange&&"onhashchange"in window&&!e?r.$(window).on("hashchange",this.checkUrl):this._wantsHashChange&&(this._checkUrlInterval=setInterval(this.checkUrl,this.interval)),this.fragment=t;e=this.location,t=e.pathname.replace(/[^\/]$/,"$&/")===this.root;return this._wantsHashChange&&this._wantsPushState&&!this._hasPushState&&!t?(this.fragment=this.getFragment(null,!0),this.location.replace(this.root+this.location.search+"#"+this.fragment),!0):(this._wantsPushState&&this._hasPushState&&t&&e.hash&&(this.fragment=this.getHash().replace(A,""),this.history.replaceState({},document.title,this.root+this.fragment+e.search)),this.options.silent?void 0:this.loadUrl())},stop:function(){r.$(window).off("popstate",this.checkUrl).off("hashchange",this.checkUrl),clearInterval(this._checkUrlInterval),E.started=!1},route:function(e,t){this.handlers.unshift({route:e,callback:t})},checkUrl:function(e){var t=this.getFragment();if((t=t===this.fragment&&this.iframe?this.getFragment(this.getHash(this.iframe)):t)===this.fragment)return!1;this.iframe&&this.navigate(t),this.loadUrl()||this.loadUrl(this.getHash())},loadUrl:function(e){var t=this.fragment=this.getFragment(e);return f.any(this.handlers,function(e){if(e.route.test(t))return e.callback(t),!0})},navigate:function(e,t){if(!E.started)return!1;if(t&&!0!==t||(t={trigger:t}),e=this.getFragment(e||""),this.fragment!==e){this.fragment=e;var i=this.root+e;if(this._hasPushState)this.history[t.replace?"replaceState":"pushState"]({},document.title,i);else{if(!this._wantsHashChange)return this.location.assign(i);this._updateHash(this.location,e,t.replace),this.iframe&&e!==this.getFragment(this.getHash(this.iframe))&&(t.replace||this.iframe.document.open().close(),this._updateHash(this.iframe.location,e,t.replace))}t.trigger&&this.loadUrl(e)}},_updateHash:function(e,t,i){i?(i=e.href.replace(/(javascript:|#).*$/,""),e.replace(i+"#"+t)):e.hash="#"+t}}),r.history=new E;c.extend=h.extend=t.extend=s.extend=E.extend=function(e,t){var i=this,s=e&&f.has(e,"constructor")?e.constructor:function(){return i.apply(this,arguments)};f.extend(s,i,t);t=function(){this.constructor=s};return t.prototype=i.prototype,s.prototype=new t,e&&f.extend(s.prototype,e),s.__super__=i.prototype,s};var I=function(){throw new Error('A "url" property or function must be specified')},$=function(t,i){var s=i.error;i.error=function(e){s&&s(t,e,i),t.trigger("error",t,e,i)}};return r}),o.exports}.call(this),("undefined"==typeof window?global:window).__0949509ad4a3517d7937c6f249920cf9=function(){var e={exports:{}},t=e.exports;Object.defineProperty(t,"__esModule",{value:!0});s(__94836917f25cd6985dba837233d3b857);var i=s(__05878ccffe855c7a59262e3b6f931a93);function s(e){return e&&e.__esModule?e:{default:e}}return window.Backbone||(window.Backbone=i.default),t.default=window.Backbone,e.exports=t.default,e.exports}.call(this),("undefined"==typeof window?global:window).__700392785077a22a4ccfbe28a1bd95fd=function(){var e={exports:{}},t=e.exports;Object.defineProperty(t,"__esModule",{value:!0});var n=a(__94836917f25cd6985dba837233d3b857),i=a(__0949509ad4a3517d7937c6f249920cf9),s=a(__a96071e28d103a38ba4dff141c560d4f);function a(e){return e&&e.__esModule?e:{default:e}}var r=i.default.Collection.extend({initialize:function(e,t){(t=t||{}).matcher&&(this.matcher=t.matcher),t.model&&(this.model=t.model),this._idAttribute=(new this.model).idAttribute,this._maxResults=t.maxResults||5,this._queryData=t.queryData||{},this._queryParamKey=t.queryParamKey||"q",this._queryEndpoint=t.queryEndpoint||"",this.value=null,this.queryCache={},this.activeQueryCount=0,n.default.bindAll(this,"query","respond")},url:function(){return this._queryEndpoint},query:function(s){var e,t,n=this;this.value=s,t=this.getFilteredResults(s),this.respond(s,t),s&&this._queryEndpoint&&!this.hasQueryCache(s)&&this.shouldGetMoreResults(t)&&(e=this.fetch(s),this.activeQueryCount++,this.trigger("activity",{activity:!0}),e.always(function(){n.activeQueryCount--,n.trigger("activity",{activity:!!n.activeQueryCount})}),e.done(function(e,t,i){n.addQueryCache(s,e,i)}),e.done(function(){s=n.value,t=n.getFilteredResults(s),n.respond(s,t)}))},getQueryData:function(e){var t=n.default.isFunction(this._queryData)?this._queryData(e):this._queryData,t=n.default.extend({},t);return t[this._queryParamKey]=e,t},fetch:function(e){e=this.getQueryData(e);return i.default.Collection.prototype.fetch.call(this,{add:!0,update:!0,remove:!1,data:e})},respond:function(e,t){return this.trigger("respond",{query:e,results:t}),t},matcher:function(e,t){},getFilteredResults:function(t){var e=[];return t?(e=this.filter(function(e){return!!this.matcher(e,t)},this),this._maxResults?n.default.first(e,this._maxResults):e):e},addQueryCache:function(e,t,i){var s=this.queryCache,i=this.parse(t,i);s[e]=n.default.pluck(i,this._idAttribute)},hasQueryCache:function(e){return this.queryCache.hasOwnProperty(e)},findQueryCache:function(e){return this.queryCache[e]},shouldGetMoreResults:function(e){return e.length<this._maxResults},setMaxResults:function(e){this._maxResults=e,this.value&&this.respond(this.value,this.getFilteredResults(this.value))}});return(0,s.default)("ProgressiveDataSet",r),t.default=r,e.exports=t.default,e.exports}.call(this),("undefined"==typeof window?global:window).__9a6ba9185f3485831f82a50e25e354e9=function(){var e={exports:{}},t=e.exports;Object.defineProperty(t,"__esModule",{value:!0});var i=a(__94836917f25cd6985dba837233d3b857),s=a(__0949509ad4a3517d7937c6f249920cf9),n=a(__a96071e28d103a38ba4dff141c560d4f);function a(e){return e&&e.__esModule?e:{default:e}}s=s.default.View.extend({initialize:function(){i.default.bindAll(this,"changed","val"),this._lastValue=this.val(),this.$el.bind("keyup focus",this.changed)},val:function(){return this.$el.val.apply(this.$el,arguments)},changed:function(){this._lastValue!==this.val()&&(this.trigger("change",this.val()),this._lastValue=this.val())}});return(0,n.default)("QueryInput",s),t.default=s,e.exports=t.default,e.exports}.call(this),("undefined"==typeof window?global:window).__49028d82c7df65840596850f9c9fd7d1=function(){var e={exports:{}},t=e.exports;return Object.defineProperty(t,"__esModule",{value:!0}),t.default={NO_VALUE:"aui-restfultable-editable-no-value",NO_ENTRIES:"aui-restfultable-no-entires",RESTFUL_TABLE:"aui-restfultable",ROW:"aui-restfultable-row",READ_ONLY:"aui-restfultable-readonly",ACTIVE:"aui-restfultable-active",ALLOW_HOVER:"aui-restfultable-allowhover",FOCUSED:"aui-restfultable-focused",MOVEABLE:"aui-restfultable-movable",DISABLED:"aui-restfultable-disabled",SUBMIT:"aui-restfultable-submit",CANCEL:"aui-restfultable-cancel",EDIT_ROW:"aui-restfultable-editrow",CREATE:"aui-restfultable-create",DRAG_HANDLE:"aui-restfultable-draghandle",ORDER:"aui-restfultable-order",EDITABLE:"aui-restfultable-editable",ERROR:"error",DELETE:"aui-restfultable-delete",LOADING:"loading"},e.exports=t.default,e.exports}.call(this),("undefined"==typeof window?global:window).__ba286ae5db6a50becb016ca2a78df20e=function(){var e={exports:{}},t=e.exports;Object.defineProperty(t,"__esModule",{value:!0});var i,s=__0949509ad4a3517d7937c6f249920cf9,n=(i=s)&&i.__esModule?i:{default:i};return t.default=n.default.View,e.exports=t.default,e.exports}.call(this),("undefined"==typeof window?global:window).__adc103be1e8e7474c343ec4926b46ce9=function(){var e={exports:{}},t=e.exports;Object.defineProperty(t,"__esModule",{value:!0});var i,s=__0949509ad4a3517d7937c6f249920cf9,n=(i=s)&&i.__esModule?i:{default:i};return t.default=n.default.View,e.exports=t.default,e.exports}.call(this),("undefined"==typeof window?global:window).__f1b91f612e16912556e13d3345b7cc80=function(){var e={exports:{}},t=e.exports;Object.defineProperty(t,"__esModule",{value:!0});var i,s=__0949509ad4a3517d7937c6f249920cf9,n=(i=s)&&i.__esModule?i:{default:i};return t.default=n.default.View,e.exports=t.default,e.exports}.call(this),("undefined"==typeof window?global:window).__51ee3cfbae756f5c58017427566801ae=function(){var e={exports:{}},t=e.exports;return Object.defineProperty(t,"__esModule",{value:!0}),t.default={ENABLED_SUBMIT:"enabledSubmit",ROW_VIEW:"RestfulTable_Row_View"},e.exports=t.default,e.exports}.call(this),("undefined"==typeof window?global:window).__03b0a414899559199a3afa12071bad57=function(){var e={};return jQuery.fn.serializeObject=function(){var i={};return this.find(":input:not(:button):not(:submit):not(:radio):not('select[multiple]')").each(function(){""!==this.name&&(null===this.value&&(this.value=""),i[this.name]=this.value.match(/^(tru|fals)e$/i)?"true"==this.value.toLowerCase():this.value)}),this.find("input:radio:checked").each(function(){i[this.name]=this.value}),this.find("select[multiple]").each(function(){var e=jQuery(this),t=e.val();e.data("aui-ss")?i[this.name]=t?t[0]:"":i[this.name]=null!==t?t:[]}),i},e}.call(this),("undefined"==typeof window?global:window).__f3f2b350f30c84c841b5d0d36113e4f3=function(){var e={exports:{}},t=e.exports;return Object.defineProperty(t,"__esModule",{value:!0}),t.default={REORDER_SUCCESS:"RestfulTable.reorderSuccess",ROW_ADDED:"RestfulTable.rowAdded",ROW_REMOVED:"RestfulTable.rowRemoved",EDIT_ROW:"RestfulTable.switchedToEditMode",SERVER_ERROR:"RestfulTable.serverError",CREATED:"created",UPDATED:"updated",FOCUS:"focus",BLUR:"blur",SUBMIT:"submit",SAVE:"save",MODAL:"modal",MODELESS:"modeless",CANCEL:"cancel",CONTENT_REFRESHED:"contentRefreshed",RENDER:"render",FINISHED_EDITING:"finishedEditing",VALIDATION_ERROR:"validationError",SUBMIT_STARTED:"submitStarted",SUBMIT_FINISHED:"submitFinished",INITIALIZED:"initialized",ROW_INITIALIZED:"rowInitialized",ROW_EDIT:"editRow"},e.exports=t.default,e.exports}.call(this),("undefined"==typeof window?global:window).__0f527cc9ba8ce69ab9d484430cea03a4=function(){var e={exports:{}},t=e.exports;return Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){return'<span class="aui-restfultable-throbber"></span>'},e.exports=t.default,e.exports}.call(this),("undefined"==typeof window?global:window).__8fc25631d57b286ed42e8bdabdbc9b8d=function(){var e={exports:{}},t=e.exports;Object.defineProperty(t,"__esModule",{value:!0});var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l=c(__fb409c432b53d81bad1e174061f6886c);__03b0a414899559199a3afa12071bad57;var i=c(__0949509ad4a3517d7937c6f249920cf9),s=c(__49028d82c7df65840596850f9c9fd7d1),n=c(__51ee3cfbae756f5c58017427566801ae),a=c(__f3f2b350f30c84c841b5d0d36113e4f3),r=(c(__51474667125a5bfeb6e78ef22f02f983),c(__0f527cc9ba8ce69ab9d484430cea03a4));function c(e){return e&&e.__esModule?e:{default:e}}var d=-1!==navigator.userAgent.toLowerCase().indexOf("firefox");return t.default=i.default.View.extend({tagName:"tr",events:{focusin:"_focus",click:"_focus",keyup:"_handleKeyUpEvent"},initialize:function(e){this.$el=(0,l.default)(this.el),this._event=a.default,this.classNames=s.default,this.dataKeys=n.default,this.columns=e.columns,this.isCreateRow=e.isCreateRow,this.allowReorder=e.allowReorder,this.events["click ."+this.classNames.CANCEL]="_cancel",this.delegateEvents(),e.isUpdateMode?this.isUpdateMode=!0:(this._modelClass=e.model,this.model=new this._modelClass),this.fieldFocusSelector=e.fieldFocusSelector,this.bind(this._event.CANCEL,function(){this.disabled=!0}).bind(this._event.SAVE,function(e){this.disabled||this.submit(e)}).bind(this._event.FOCUS,function(e){this.focus(e)}).bind(this._event.BLUR,function(){this.$el.removeClass(this.classNames.FOCUSED),this.disable()}).bind(this._event.SUBMIT_STARTED,function(){this._submitStarted()}).bind(this._event.SUBMIT_FINISHED,function(){this._submitFinished()})},defaultColumnRenderer:function(e){return!1!==e.allowEdit?(0,l.default)("<input type='text' />").addClass("text").attr({name:e.name,value:e.value}):e.value?document.createTextNode(e.value):void 0},renderDragHandle:function(){return'<span class="'+this.classNames.DRAG_HANDLE+'"></span></td>'},_handleKeyUpEvent:function(e){27===e.keyCode&&this.trigger(this._event.CANCEL)},_cancel:function(e){return this.trigger(this._event.CANCEL),e.preventDefault(),this},_submitStarted:function(){return this.submitting=!0,this.showLoading().disable().delegateEvents({}),this},_submitFinished:function(){return this.submitting=!1,this.hideLoading().enable().delegateEvents(this.events),this},_focus:function(e){return this.hasFocus()||this.trigger(this._event.FOCUS,e.target.name),this},hasFocus:function(){return this.$el.hasClass(this.classNames.FOCUSED)},focus:function(e){var t;return this.enable(),t=e?this.$el.find(this.fieldFocusSelector(e)):0===(t=this.$el.find(this.classNames.ERROR+":first")).length?this.$el.find(":input:text:first"):t.parent().find(":input"),this.$el.addClass(this.classNames.FOCUSED),t.focus().trigger("select"),this},disable:function(){var e,t;return d&&(t=this.$el.find(":submit")).length&&(e=(0,l.default)("<input type='submit' class='"+this.classNames.SUBMIT+"' />").addClass(t.attr("class")).val(t.val()).data(this.dataKeys.ENABLED_SUBMIT,t),t.replaceWith(e)),this.$el.addClass(this.classNames.DISABLED).find(":submit").attr("disabled","disabled"),this},enable:function(){var e,t;return d&&(t=(e=this.$el.find(this.classNames.SUBMIT)).data(this.dataKeys.ENABLED_SUBMIT))&&e.length&&e.replaceWith(t),this.$el.removeClass(this.classNames.DISABLED).find(":submit").removeAttr("disabled"),this},showLoading:function(){return this.$el.addClass(this.classNames.LOADING),this},hideLoading:function(){return this.$el.removeClass(this.classNames.LOADING),this},hasUpdates:function(){return!!this.mapSubmitParams(this.serializeObject())},serializeObject:function(){var e=this.$el;return e.serializeObject?e.serializeObject():e.serialize()},mapSubmitParams:function(e){return this.model.changedAttributes(e)},submit:function(e){var t,s=this;if(document.activeElement!==window&&(0,l.default)(document.activeElement).blur(),this.isUpdateMode){if(!(t=this.mapSubmitParams(this.serializeObject())))return s.trigger(s._event.CANCEL)}else this.model.clear(),t=this.mapSubmitParams(this.serializeObject());return this.trigger(this._event.SUBMIT_STARTED),this.model.save(t,{success:function(){s.isUpdateMode?s.trigger(s._event.UPDATED,s.model,e):(s.trigger(s._event.CREATED,s.model.toJSON()),s.model=new s._modelClass,s.render({errors:{},values:{}}),s.trigger(s._event.FOCUS)),s.trigger(s._event.SUBMIT_FINISHED)},error:function(e,t,i){400===i.status&&(s.renderErrors(t.errors),s.trigger(s._event.VALIDATION_ERROR,t.errors)),s.trigger(s._event.SUBMIT_FINISHED)},silent:!0}),this},renderError:function(e,t){return(0,l.default)("<div />").attr("data-field",e).addClass(this.classNames.ERROR).text(t)},renderErrors:function(e){var i=this;return this.$("."+this.classNames.ERROR).remove(),e&&l.default.each(e,function(e,t){i.$el.find("[name='"+e+"']").closest("td").append(i.renderError(e,t))}),this},render:function(a){var r=this;return this.$el.empty(),this.allowReorder&&(0,l.default)('<td class="'+this.classNames.ORDER+'" />').append(this.renderDragHandle()).appendTo(r.$el),l.default.each(this.columns,function(e,t){var i,s=a.values[t.id],n=[{name:t.id,value:s,allowEdit:t.allowEdit},a.values,r.model];s&&r.$el.attr("data-"+t.id,s),n=r.isCreateRow&&t.createView?new t.createView({model:r.model}).render(n[0]):t.editView?new t.editView({model:r.model}).render(n[0]):r.defaultColumnRenderer.apply(r,n),i=(0,l.default)("<td />"),"object"===(void 0===n?"undefined":o(n))&&n.done?n.done(function(e){i.append(e)}):i.append(n),t.styleClass&&i.addClass(t.styleClass),i.appendTo(r.$el)}),this.$el.append(this.renderOperations(a.update,a.values)).addClass(this.classNames.ROW+" "+this.classNames.EDIT_ROW),this.trigger(this._event.RENDER,this.$el,a.values),this.$el.trigger(this._event.CONTENT_REFRESHED,[this.$el]),this},renderOperations:function(e){var t=(0,l.default)('<td class="aui-restfultable-operations" />');return e?t.append((0,l.default)('<input class="aui-button" type="submit" />').attr({accesskey:this.submitAccessKey,value:AJS.I18n.getText("aui.words.update")})).append((0,l.default)('<a class="aui-button aui-button-link" href="#" />').addClass(this.classNames.CANCEL).text(AJS.I18n.getText("aui.words.cancel")).attr({accesskey:this.cancelAccessKey})):t.append((0,l.default)('<input class="aui-button" type="submit" />').attr({accesskey:this.submitAccessKey,value:AJS.I18n.getText("aui.words.add")})),t.add((0,l.default)('<td class="aui-restfultable-status" />').append((0,r.default)()))}}),e.exports=t.default,e.exports}.call(this),("undefined"==typeof window?global:window).__6f519d90e1c063fdd444d423b4cf6552=function(){var e={exports:{}},t=e.exports;Object.defineProperty(t,"__esModule",{value:!0});var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r=i(__fb409c432b53d81bad1e174061f6886c),s=__ff0cdb1caab7baf9fc52ccd524f2f4d2,a=i(__94836917f25cd6985dba837233d3b857),o=i(__0949509ad4a3517d7937c6f249920cf9),l=i(__f3f2b350f30c84c841b5d0d36113e4f3);function i(e){return e&&e.__esModule?e:{default:e}}var c=o.default.Model.extend({sync:function(e,t,i){var s=this,n=i.error;return i.error=function(e){s._serverErrorHandler(e,this),n&&n.apply(this,arguments)},o.default.sync.apply(o.default,arguments)},save:function(e,t){var i,s=this,n=(t=t||{}).error,a=t.success;t.error=function(e,t){var i=r.default.parseJSON(t.responseText||t.data);n&&n.call(s,s,i,t)},this.isNew()?o.default.Model.prototype.save.call(this,e,t):e&&((i=new(c.extend({url:this.url()}))({id:this.id})).save=o.default.Model.prototype.save,t.success=function(e,t){s.clear().set(e.toJSON()),a&&a.call(s,s,t)},i.save(e,t))},destroy:function(t){t=t||{};var e,i=this,s=this.url();return(e=t.data?r.default.param(t.data):e)&&e.length&&(s=s+"?"+e),r.default.ajax({url:s,type:"DELETE",dataType:"json",contentType:"application/json",success:function(e){i.collection&&i.collection.remove(i),t.success&&t.success.call(i,e)},error:function(e){i._serverErrorHandler(e,this),t.error&&t.error.call(i,e)}}),this},changedAttributes:function(e){var i={},s=this.toJSON();if(r.default.each(e,function(e,t){s[e]?s[e]&&s[e]!==t&&("object"===(void 0===t?"undefined":n(t))&&a.default.isEqual(t,s[e])||(i[e]=t)):"string"==typeof t?""!==r.default.trim(t)&&(i[e]=t):r.default.isArray(t)&&0===t.length||(i[e]=t)}),!a.default.isEmpty(i))return this.addExpand(i),i},addExpand:function(e){},_serverErrorHandler:function(e,t){var i;400!==e.status&&(i=r.default.parseJSON(e.responseText||e.data),(0,s.triggerEvtForInst)(l.default.SERVER_ERROR,this,[i,e,t]))},fetch:function(e){e=e||{},this.clear(),o.default.Model.prototype.fetch.call(this,e)}});return t.default=c,e.exports=t.default,e.exports}.call(this),("undefined"==typeof window?global:window).__6214215222d7b9fe370829693a868268=function(){var e={exports:{}},t=e.exports;Object.defineProperty(t,"__esModule",{value:!0});var l=o(__fb409c432b53d81bad1e174061f6886c),i=function(e){{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t.default=e,t}}(__a7159d0779934fc07d0f09b14d02f09b),s=o(__0949509ad4a3517d7937c6f249920cf9),n=o(__49028d82c7df65840596850f9c9fd7d1),a=o(__51ee3cfbae756f5c58017427566801ae),r=o(__f3f2b350f30c84c841b5d0d36113e4f3),c=(o(__51474667125a5bfeb6e78ef22f02f983),o(__0f527cc9ba8ce69ab9d484430cea03a4));function o(e){return e&&e.__esModule?e:{default:e}}return t.default=s.default.View.extend({tagName:"tr",events:{"click .aui-restfultable-editable":"edit"},initialize:function(e){if(e=e||{},this._event=r.default,this.classNames=n.default,this.dataKeys=a.default,this.columns=e.columns,this.allowEdit=e.allowEdit,this.allowDelete=e.allowDelete,!this.events["click .aui-restfultable-editable"])throw new Error("It appears you have overridden the events property. To add events you will need to usea work around. https://github.com/documentcloud/backbone/issues/244");this.index=e.index||0,this.deleteConfirmation=e.deleteConfirmation,this.allowReorder=e.allowReorder,this.$el=(0,l.default)(this.el),this.bind(this._event.CANCEL,function(){this.disabled=!0}).bind(this._event.FOCUS,function(e){this.focus(e)}).bind(this._event.BLUR,function(){this.unfocus()}).bind(this._event.MODAL,function(){this.$el.addClass(this.classNames.ACTIVE)}).bind(this._event.MODELESS,function(){this.$el.removeClass(this.classNames.ACTIVE)})},renderDragHandle:function(){return'<span class="'+this.classNames.DRAG_HANDLE+'"></span></td>'},defaultColumnRenderer:function(e){if(e.value)return document.createTextNode(e.value.toString())},sync:function(e){var t=this;return this.model.addExpand(e),this.showLoading(),this.model.save(e,{success:function(){t.hideLoading().render(),t.trigger(t._event.UPDATED)},error:function(){t.hideLoading()}}),this},refresh:function(e,t){var i=this;return this.showLoading(),this.model.fetch({success:function(){i.hideLoading().render(),e&&e.apply(this,arguments)},error:function(){i.hideLoading(),t&&t.apply(this,arguments)}}),this},hasFocus:function(){return this.$el.hasClass(this.classNames.FOCUSED)},focus:function(){return(0,l.default)(this.el).addClass(this.classNames.FOCUSED),this},unfocus:function(){return(0,l.default)(this.el).removeClass(this.classNames.FOCUSED),this},showLoading:function(){return this.$el.addClass(this.classNames.LOADING),this},hideLoading:function(){return this.$el.removeClass(this.classNames.LOADING),this},edit:function(e){e=((0,l.default)(e.target).is("."+this.classNames.EDITABLE)?(0,l.default)(e.target):(0,l.default)(e.target).closest("."+this.classNames.EDITABLE)).attr("data-field-name");return this.trigger(this._event.ROW_EDIT,e),this},renderOperations:function(){var t=this;if(!1!==this.allowDelete)return(0,l.default)("<a href='#' class='aui-button' />").addClass(this.classNames.DELETE).text(AJS.I18n.getText("aui.words.delete")).click(function(e){e.preventDefault(),t.destroy()})},destroy:function(){var t;this.deleteConfirmation?((t=i.popup(400,200,"delete-entity-"+this.model.get("id"))).element.html(this.deleteConfirmation(this.model.toJSON())),t.show(),t.element.find(".cancel").click(function(){t.hide()}),t.element.find("form").submit(function(e){t.hide(),this.model.destroy(),e.preventDefault()}.bind(this))):this.model.destroy()},render:function(){var r=this,o=this.model.toJSON(),e=(0,l.default)("<td class='aui-restfultable-operations' />").append(this.renderOperations({},o)),t=(0,l.default)("<td class='aui-restfultable-status' />").append((0,c.default)());return this.$el.removeClass(this.classNames.DISABLED+" "+this.classNames.FOCUSED+" "+this.classNames.LOADING+" "+this.classNames.EDIT_ROW).addClass(this.classNames.READ_ONLY).empty(),this.allowReorder&&(0,l.default)('<td class="'+this.classNames.ORDER+'" />').append(this.renderDragHandle()).appendTo(r.$el),this.$el.attr("data-id",this.model.id),l.default.each(this.columns,function(e,t){var i=(0,l.default)("<td />"),s=o[t.id],n=t.fieldName||t.id,a=[{name:n,value:s,allowEdit:t.allowEdit},o,r.model];s&&r.$el.attr("data-"+t.id,s),a=t.readView?new t.readView({model:r.model}).render(a[0]):r.defaultColumnRenderer.apply(r,a),!1!==r.allowEdit&&!1!==t.allowEdit?(n=(0,l.default)("<span />").addClass(r.classNames.EDITABLE).append('<span class="aui-icon aui-icon-small aui-iconfont-edit"></span>').append(a).attr("data-field-name",n),i=(0,l.default)("<td />").append(n).appendTo(r.$el),a&&""!=l.default.trim(a)||(i.addClass(r.classNames.NO_VALUE),n.html((0,l.default)("<em />").text(this.emptyText||AJS.I18n.getText("aui.enter.value"))))):i.append(a),t.styleClass&&i.addClass(t.styleClass),i.appendTo(r.$el)}),this.$el.append(e).append(t).addClass(this.classNames.ROW+" "+this.classNames.READ_ONLY),this.trigger(this._event.RENDER,this.$el,o),this.$el.trigger(this._event.CONTENT_REFRESHED,[this.$el]),this}}),e.exports=t.default,e.exports}.call(this),("undefined"==typeof window?global:window).__37edb2496d2ca3558b8878ff28e4fd8b=function(){var e={exports:{}},t=e.exports;Object.defineProperty(t,"__esModule",{value:!0});var r=b(__fb409c432b53d81bad1e174061f6886c),i=function(e){{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t.default=e,t}}(__56f99f629e22233a92f5a2b763037a87),s=b(__0949509ad4a3517d7937c6f249920cf9),n=b(__49028d82c7df65840596850f9c9fd7d1),a=b(__ba286ae5db6a50becb016ca2a78df20e),o=b(__adc103be1e8e7474c343ec4926b46ce9),l=b(__f1b91f612e16912556e13d3345b7cc80),c=b(__51ee3cfbae756f5c58017427566801ae),d=b(__8fc25631d57b286ed42e8bdabdbc9b8d),u=b(__6f519d90e1c063fdd444d423b4cf6552),h=b(__f3f2b350f30c84c841b5d0d36113e4f3),f=b(__a96071e28d103a38ba4dff141c560d4f),p=(b(__51474667125a5bfeb6e78ef22f02f983),b(__6214215222d7b9fe370829693a868268)),g=b(__0f527cc9ba8ce69ab9d484430cea03a4);function b(e){return e&&e.__esModule?e:{default:e}}function v(e,t){(0,r.default)(document).trigger(e,t)}function m(e,t,i){(0,r.default)(t).trigger(e,i),v(e,i),t.id&&v(t.id+"_"+e,i)}var _=s.default.View.extend({initialize:function(e){var a=this;if(a.options=r.default.extend(!0,a._getDefaultOptions(e),e),a.id=this.options.id,a._event=h.default,a.classNames=n.default,a.dataKeys=c.default,this.$table=(0,r.default)(e.el).addClass(this.classNames.RESTFUL_TABLE).addClass(this.classNames.ALLOW_HOVER).addClass("aui").addClass(a.classNames.LOADING),this.$table.wrapAll("<form class='aui' action='#' />"),this.$thead=(0,r.default)("<thead/>"),this.$theadRow=(0,r.default)("<tr />").appendTo(this.$thead),this.$tbody=(0,r.default)("<tbody/>"),!this.$table.length)throw new Error("RestfulTable: Init failed! The table you have specified ["+this.$table.selector+"] cannot be found.");if(!this.options.columns)throw new Error("RestfulTable: Init failed! You haven't provided any columns to render.");this.showGlobalLoading(),this.options.columns.forEach(function(e){var t=r.default.isFunction(e.header)?e.header():e.header;void 0===t&&(i.warn("You have not specified [header] for column ["+e.id+"]. Using id for now..."),t=e.id),a.$theadRow.append("<th>"+t+"</th>")}),a.$theadRow.append("<th></th><th></th>"),this._models=this._createCollection(),this._rowClass=this.options.views.row,this.editRows=[],this.$table.closest("form").submit(function(e){a.focusedRow&&a.focusedRow.trigger(a._event.SAVE),e.preventDefault()}),this.options.allowReorder&&(this.$theadRow.prepend("<th />"),this.$tbody.sortable({handle:"."+this.classNames.DRAG_HANDLE,helper:function(e,t){var n=(0,r.default)("<div/>").attr("class",t.attr("class")).addClass(a.classNames.MOVEABLE);return t.children().each(function(e){var t=(0,r.default)(this),i=parseInt(0+t.css("border-left-width"),10),s=parseInt(0+t.css("border-right-width"),10),s=t[0].clientWidth+i+s;n.append((0,r.default)("<div/>").html(t.html()).attr("class",t.attr("class")).width(s))}),(n=(0,r.default)("<div class='aui-restfultable-readonly'/>").append(n)).css({left:t.offset().left}),n.appendTo(document.body),n},start:function(e,t){var i=t.helper[0].clientHeight,s=t.placeholder.find("td");t.item.addClass(a.classNames.MOVEABLE).children().each(function(e){(0,r.default)(this).width(s.eq(e).width())});var n='<td colspan="'+a.getColumnCount()+'">&nbsp;</td>';t.placeholder.html(n).css({height:i,visibility:"visible"}),a.getRowFromElement(t.item[0]).trigger(a._event.MODAL)},stop:function(e,t){(0,r.default)(t.item[0]).is(":visible")&&(t.item.removeClass(a.classNames.MOVEABLE).children().attr("style",""),t.placeholder.removeClass(a.classNames.ROW),a.getRowFromElement(t.item[0]).trigger(a._event.MODELESS))},update:function(e,t){t={row:a.getRowFromElement(t.item[0]),item:t.item,nextItem:t.item.next(),prevItem:t.item.prev()};a.move(t)},axis:"y",delay:0,containment:"document",cursor:"move",scroll:!0,zIndex:8e3}),this.$tbody.bind("selectstart mousedown",function(e){return!(0,r.default)(e.target).is("."+a.classNames.DRAG_HANDLE)})),!1!==this.options.allowCreate&&(this._createRow=new this.options.views.editRow({columns:this.options.columns,isCreateRow:!0,model:this.options.model.extend({url:function(){return a.options.resources.self}}),cancelAccessKey:this.options.cancelAccessKey,submitAccessKey:this.options.submitAccessKey,allowReorder:this.options.allowReorder,fieldFocusSelector:this.options.fieldFocusSelector}).bind(this._event.CREATED,function(e){null==a.options.addPosition&&"bottom"===a.options.createPosition||"bottom"===a.options.addPosition?a.addRow(e):a.addRow(e,0)}).bind(this._event.VALIDATION_ERROR,function(){this.trigger(a._event.FOCUS)}).render({errors:{},values:{}}),this.$create=(0,r.default)('<tbody class="'+this.classNames.CREATE+'" />').append(this._createRow.el),this._applyFocusCoordinator(this._createRow),this.options.autoFocus&&this._createRow.trigger(this._event.FOCUS)),this._models.bind("remove",function(t){a.getRows().forEach(function(e){e.model===t&&(e.hasFocus()&&a._createRow&&a._createRow.trigger(a._event.FOCUS),a.removeRow(e))})}),this.fetchInitialResources()},fetchInitialResources:function(){var t=this;r.default.isFunction(this.options.resources.all)?this.options.resources.all(function(e){t.populate(e)}):r.default.get(this.options.resources.all,function(e){t.populate(e)})},move:function(e){var i=this,t=function(e){return e.length?{after:i.getRowFromElement(e).model.url()}:{position:"First"}};e.row&&(t=i.options.reverseOrder?t(e.nextItem):t(e.prevItem),r.default.ajax({url:e.row.model.url()+"/move",type:"POST",dataType:"json",contentType:"application/json",data:JSON.stringify(t),complete:function(){e.row.hideLoading()},success:function(e){m(i._event.REORDER_SUCCESS,i,[e])},error:function(e){var t=r.default.parseJSON(e.responseText||e.data);m(i._event.SERVER_ERROR,i,[t,e,this])}}),e.row.showLoading())},_createCollection:function(){var n=this;return new(this.options.Collection.extend({sort:function(e){if(e=e||{},!this.comparator)throw new Error("Cannot sort a set without a comparator");return this.tableRows=n.getRows(),this.models=this.sortBy(this.comparator,this),this.tableRows=void 0,e.silent||this.trigger("refresh",this,e),this},remove:function(e,t){return this.tableRows=n.getRows(),s.default.Collection.prototype.remove.apply(this,arguments),this.tableRows=void 0,this}}))([],{comparator:function(i){var s;return(this&&void 0!==this.tableRows?this.tableRows:n.getRows()).some(function(e,t){if(e.model.id===i.id)return s=t,!0}),s}})},populate:function(e){this.options.reverseOrder&&e.reverse(),this.hideGlobalLoading(),e&&e.length?(this._models.reset([],{silent:!0}),this.renderRows(e),this.isEmpty()&&this.showNoEntriesMsg()):this.showNoEntriesMsg(),this.$table.append(this.$thead),"bottom"===this.options.createPosition?this.$table.append(this.$tbody).append(this.$create):this.$table.append(this.$create).append(this.$tbody),this.$table.removeClass(this.classNames.LOADING).trigger(this._event.INITIALIZED,[this]),m(this._event.INITIALIZED,this,[this]),this.options.autoFocus&&this.$table.find(":input:text:first").focus()},showGlobalLoading:function(){return this.$loading||(this.$loading=(0,r.default)('<div class="aui-restfultable-init">'+(0,g.default)()+'<span class="aui-restfultable-loading">'+this.options.loadingMsg+"</span></div>")),this.$loading.is(":visible")||this.$loading.insertAfter(this.$table),this},hideGlobalLoading:function(){return this.$loading&&this.$loading.remove(),this},addRow:function(e,t){if(!e.id)throw new Error("RestfulTable.addRow: to add a row values object must contain an id. Maybe you are not returning it from your restend point?Recieved:"+JSON.stringify(e));return e=new this.options.model(e),t=this._renderRow(e,t),this._models.add(e),this.removeNoEntriesMsg(),m(this._event.ROW_ADDED,this,[t,this]),this},removeRow:function(e){this._models.remove(e.model),e.remove(),this.isEmpty()&&this.showNoEntriesMsg(),m(this._event.ROW_REMOVED,this,[e,this])},isEmpty:function(){return 0===this._models.length},getModels:function(){return this._models},getTable:function(){return this.$table},getTableBody:function(){return this.$tbody},getCreateRow:function(){return this._createRow},getColumnCount:function(){var e=2;return this.allowReorder&&++e,this.options.columns.length+e},getRowFromElement:function(e){return(0,r.default)(e).data(this.dataKeys.ROW_VIEW)},showNoEntriesMsg:function(){return this.$noEntries&&this.$noEntries.remove(),this.$noEntries=(0,r.default)("<tr>").addClass(this.classNames.NO_ENTRIES).append((0,r.default)("<td>").attr("colspan",this.getColumnCount()).text(this.options.noEntriesMsg)).appendTo(this.$tbody),this},removeNoEntriesMsg:function(){return this.$noEntries&&0<this._models.length&&this.$noEntries.remove(),this},getRows:function(){var t=this,i=[];return this.$tbody.find("."+this.classNames.READ_ONLY).each(function(){var e=(0,r.default)(this).data(t.dataKeys.ROW_VIEW);e&&i.push(e)}),i},_renderRow:function(e,t){var i=this,s=this.$tbody.find("."+this.classNames.READ_ONLY),n=new this._rowClass({model:e,columns:this.options.columns,allowEdit:this.options.allowEdit,allowDelete:this.options.allowDelete,allowReorder:this.options.allowReorder,deleteConfirmation:this.options.deleteConfirmation});return this.removeNoEntriesMsg(),n.bind(this._event.ROW_EDIT,function(e){m(this._event.EDIT_ROW,{},[this,i]),i.edit(this,e)}),e=n.render().$el,-1!==t&&("number"==typeof t&&0!==s.length?e.insertBefore(s[t]):this.$tbody.append(e)),e.data(this.dataKeys.ROW_VIEW,n),n.bind(this._event.MODAL,function(){i.$table.removeClass(i.classNames.ALLOW_HOVER),i.$tbody.sortable("disable"),i.getRows().forEach(function(e){i.isRowBeingEdited(e)||e.delegateEvents({})})}),n.bind(this._event.MODELESS,function(){i.$table.addClass(i.classNames.ALLOW_HOVER),i.$tbody.sortable("enable"),i.getRows().forEach(function(e){i.isRowBeingEdited(e)||e.delegateEvents()})}),this._applyFocusCoordinator(n),this.trigger(this._event.ROW_INITIALIZED,n),n},isRowBeingEdited:function(t){var i=!1;return this.editRows.some(function(e){if(e.el===t.el)return i=!0}),i},_applyFocusCoordinator:function(e){var t=this;return e.hasFocusBound||(e.hasFocusBound=!0,e.bind(this._event.FOCUS,function(){t.focusedRow&&t.focusedRow!==e&&t.focusedRow.trigger(t._event.BLUR),(t.focusedRow=e)instanceof p.default&&t._createRow&&t._createRow.enable()})),this},_removeEditRow:function(e){e=r.default.inArray(e,this.editRows);return this.editRows.splice(e,1),this},_shiftFocusAfterEdit:function(){return 0<this.editRows.length?this.editRows[this.editRows.length-1].trigger(this._event.FOCUS):this._createRow&&this._createRow.trigger(this._event.FOCUS),this},_saveEditRowOnBlur:function(){return this.editRows.length<=1},dismissEditRows:function(){this.editRows.forEach(function(e){e.hasUpdates()||e.trigger(this._event.FINISHED_EDITING)},this)},edit:function(i,e){var s=this,t=new this.options.views.editRow({el:i.el,columns:this.options.columns,isUpdateMode:!0,allowReorder:this.options.allowReorder,fieldFocusSelector:this.options.fieldFocusSelector,model:i.model,cancelAccessKey:this.options.cancelAccessKey,submitAccessKey:this.options.submitAccessKey}),n=i.model.toJSON();return n.update=!0,t.render({errors:{},update:!0,values:n}).bind(s._event.UPDATED,function(e,t){s._removeEditRow(this),this.unbind(),i.render().delegateEvents(),i.trigger(s._event.UPDATED),!1!==t&&s._shiftFocusAfterEdit()}).bind(s._event.VALIDATION_ERROR,function(){this.trigger(s._event.FOCUS)}).bind(s._event.FINISHED_EDITING,function(){s._removeEditRow(this),i.render().delegateEvents(),this.unbind()}).bind(s._event.CANCEL,function(){s._removeEditRow(this),this.unbind(),i.render().delegateEvents(),s._shiftFocusAfterEdit()}).bind(s._event.BLUR,function(){s.dismissEditRows(),s._saveEditRowOnBlur()&&this.trigger(s._event.SAVE,!1)}),this._applyFocusCoordinator(t),t.trigger(s._event.FOCUS,e),s._createRow&&s._createRow.disable(),this.editRows.push(t),t},renderRows:function(){var t=this,e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:[],i=this._models.comparator,s=[];this._models.comparator=void 0;e=e.map(function(e){e=new t.options.model(e);return s.push(t._renderRow(e,-1).el),e});return this._models.add(e,{silent:!0}),this._models.comparator=i,this.removeNoEntriesMsg(),this.$tbody.append(s),this},_getDefaultOptions:function(e){return{model:e.model||u.default,allowEdit:!0,views:{editRow:d.default,row:p.default},Collection:s.default.Collection.extend({url:e.resources.self,model:e.model||u.default}),allowReorder:!1,fieldFocusSelector:function(e){return":input[name="+e+"], #"+e},loadingMsg:e.loadingMsg||AJS.I18n.getText("aui.words.loading")}}});return _.ClassNames=n.default,_.CustomCreateView=a.default,_.CustomEditView=o.default,_.CustomReadView=l.default,_.DataKeys=c.default,_.EditRow=d.default,_.EntryModel=u.default,_.Events=h.default,_.Row=p.default,_.Throbber=g.default,(0,f.default)("RestfulTable",_),t.default=_,e.exports=t.default,e.exports}.call(this),("undefined"==typeof window?global:window).__180676b36e1b1c0b9c2fb0f41f001c1e=function(){var e={exports:{}},t=e.exports;Object.defineProperty(t,"__esModule",{value:!0});var i=n(__0949509ad4a3517d7937c6f249920cf9),s=n(__a96071e28d103a38ba4dff141c560d4f);function n(e){return e&&e.__esModule?e:{default:e}}var a=i.default.Model.extend({initialize:function(e){this.set("active",null,{silent:!0}),this.collection=new i.default.Collection,this.collection.bind("reset",this.setActive,this),this.source=e.source,this.source.bind("respond",this.process,this)},url:!1,process:function(e){this.set("query",e.query),this.collection.reset(e.results),this.set("length",e.results.length),this.trigger("update",this)},setActive:function(){var e=!(arguments[0]instanceof i.default.Collection)&&arguments[0],e=e?this.collection.get(e):this.collection.first();return this.set("active",e||null),this.get("active")},next:function(){var e=(this.collection.indexOf(this.get("active"))+1)%this.get("length"),t=this.collection.at(e);return this.setActive(t&&t.id)},prev:function(){var e=this.collection.indexOf(this.get("active")),e=(0===e?this.get("length"):e)-1,t=this.collection.at(e);return this.setActive(t&&t.id)},each:function(){return this.collection.each.apply(this.collection,arguments)}});return(0,s.default)("ResultSet",a),t.default=a,e.exports=t.default,e.exports}.call(this),("undefined"==typeof window?global:window).__31a64ad715dc720d44efecd59dcf53a0=function(){var e={exports:{}},t=e.exports;Object.defineProperty(t,"__esModule",{value:!0});var i=r(__94836917f25cd6985dba837233d3b857),s=r(__0949509ad4a3517d7937c6f249920cf9),n=r(__a96071e28d103a38ba4dff141c560d4f),a=r(__180676b36e1b1c0b9c2fb0f41f001c1e);function r(e){return e&&e.__esModule?e:{default:e}}var o=s.default.View.extend({events:{"click [data-id]":"setSelection"},initialize:function(e){if(this.model||(this.model=new a.default({source:e.source})),!(this.model instanceof a.default))throw new Error("model must be set to a ResultSet");this.model.bind("update",this.process,this),this.render=i.default.wrap(this.render,function(e){this.trigger("rendering"),e.apply(this,arguments),this.trigger("rendered")})},process:function(){this._shouldShow(this.model.get("query"))&&this.show()},render:function(){var t=s.default.$("<ul/>");return this.model.each(function(e){s.default.$("<li/>").attr("data-id",e.id).html(this.renderItem(e)).appendTo(t)},this),this.$el.html(t),this},renderItem:function(){},setSelection:function(e){e=e.target.getAttribute("data-id"),e=this.model.setActive(e);this.trigger("selected",e)},show:function(){this.lastQuery=this.model.get("query"),this._hiddenQuery=null,this.render(),this.$el.show()},hide:function(){this.$el.hide(),this._hiddenQuery=this.lastQuery},size:function(){return this.model.get("length")},_shouldShow:function(e){return""===e||!(this._hiddenQuery&&this._hiddenQuery===e)}});return(0,n.default)("ResultsList",o),t.default=o,e.exports=t.default,e.exports}.call(this),("undefined"==typeof window?global:window).__32e2adcaa559420967a219c84a6f5dcf=function(){var e={},i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n=s(__fb409c432b53d81bad1e174061f6886c);__18561bb4c99d4777e6a5a9fec71bb775;var a=s(__925085afe37c9c6789b788cc0b7c856e),t=__dc3494b595b6cf86534cbde834ab95b6;function s(e){return e&&e.__esModule?e:{default:e}}return n.default.fn.spin=(0,t.fn)(function(e,t){var s={size:"small"};return"object"===(void 0===t?"undefined":i(t))&&(s=n.default.extend(s,t)),"object"===(void 0===e?"undefined":i(e))&&(s=n.default.extend(s,e)),"string"==typeof e&&(s.size=e),"boolean"==typeof e&&!1===e?this.spinStop():this.each(function(){var e,t,i;this&&this.nodeType&&((t=(e=(0,n.default)(this)).data())&&((i=(0,n.default)("<aui-spinner filled></aui-spinner>")).attr("size",s.size),i.css("color",s.color),e.spinStop(),e.append(i),a.default.init(this),t.spinner=i))})},"jQuery.fn.spin",{sinceVersion:"7.9.4",removeInVersion:"9",alternativeName:"<aui-spinner>"}),n.default.fn.spinStop=(0,t.fn)(function(){return this.each(function(){var e;this&&this.nodeType&&((e=(0,n.default)(this).data())&&e.spinner&&(e.spinner.remove(),delete e.spinner))})},"jQuery.fn.spinStop",{sinceVersion:"7.9.4",removeInVersion:"9",alternativeName:"<aui-spinner>"}),e}.call(this),("undefined"==typeof window?global:window).__96cf825584236f7ba41af5c30ad9a54a=function(){var e={exports:{}},t=e.exports;Object.defineProperty(t,"__esModule",{value:!0});var i=n(__925085afe37c9c6789b788cc0b7c856e),s=n(__677fa58973cf63645d81fa88c33b9145);function n(e){return e&&e.__esModule?e:{default:e}}return t.default=(0,i.default)("aui-option",{created:function(t){Object.defineProperty(t,"value",{get:function(){return t.getAttribute("value")||(0,s.default)(this.textContent)},set:function(e){t.setAttribute("value",e)}})},prototype:{serialize:function(){var e={};return this.hasAttribute("img-src")&&(e["img-src"]=(0,s.default)(this.getAttribute("img-src"))),e.value=this.value,e.label=(0,s.default)(this.textContent),e}}}),e.exports=t.default,e.exports}.call(this),("undefined"==typeof window?global:window).__c9a737e5240166d82e8a085c313f9197=function(){var e={exports:{}},t=e.exports;Object.defineProperty(t,"__esModule",{value:!0});var i,s=__0949509ad4a3517d7937c6f249920cf9,n=(i=s)&&i.__esModule?i:{default:i};return t.default=n.default.Model.extend({idAttribute:"label",getLabel:function(){return this.get("label")||this.get("value")}}),e.exports=t.default,e.exports}.call(this),("undefined"==typeof window?global:window).__d2b503755d1047e5e8c3699cfd645c65=function(){var e={exports:{}},t=e.exports;function i(){this._suggestions=[],this._activeIndex=-1}return Object.defineProperty(t,"__esModule",{value:!0}),i.prototype={onChange:function(){},onHighlightChange:function(){},get:function(e){return this._suggestions[e]},set:function(e){var t=this._suggestions;return this._suggestions=e||[],this.onChange(t),this},getNumberOfResults:function(){return this._suggestions.length},setHighlighted:function(e){if(e)for(var t=0;t<this._suggestions.length;t++)this._suggestions[t].id===e.id&&this.highlight(t);return this},highlight:function(e){return this._activeIndex=e,this.onHighlightChange(),this},highlightPrevious:function(){var e=this._activeIndex;return this.highlight(0===e?e:e-1),this},highlightNext:function(){var e=this._activeIndex,e=e===this._suggestions.length-1?e:e+1;return this.highlight(e),this},highlighted:function(){return this.get(this._activeIndex)},highlightedIndex:function(){return this._activeIndex}},t.default=i,e.exports=t.default,e.exports}.call(this),("undefined"==typeof window?global:window).__5d664abfaa0fd06753598f7a638b1c2b=function(){var e={exports:{}},t=e.exports;Object.defineProperty(t,"__esModule",{value:!0});var i=a(__fb409c432b53d81bad1e174061f6886c);__51474667125a5bfeb6e78ef22f02f983;var s=a(__4b53fb5f345fea6af9595e80aa5a1cd2),n=a(__f0d4aa95850a2ae4149235bd35e6184a);function a(e){return e&&e.__esModule?e:{default:e}}function r(e,t){this.el=e,this.anchor=t}function o(e){(0,i.default)(e).find(".aui-select-active").removeClass("aui-select-active")}return r.prototype={render:function(e,t,s){this.currListId=s;var n,a="";return e.length?(n=t,e.forEach(function(e){var t=e.getLabel(),i=e.get("img-src"),i=i?'<img src="'+i+'"/>':"",e=e.get("new-value")?" (<em>"+AJS.I18n.getText("aui.select.new.value")+"</em>)":"";a+='<li role="option" class="aui-select-suggestion" id="'+s+"-"+n+'">'+i+t+e+"</li>",n++}),t?this.el.querySelector("ul").innerHTML+=a:this.el.querySelector("ul").innerHTML=a):t||(this.el.querySelector("ul").innerHTML='<li role="option" class="aui-select-no-suggestions">'+AJS.I18n.getText("aui.select.no.suggestions")+"</li>"),this},setActive:function(e){o(this.el),(0,i.default)(this.el).find("#"+this.currListId+"-"+e).addClass("aui-select-active")},getActive:function(){return this.el.querySelector(".aui-select-active")},show:function(){var e;e=this,(0,i.default)(e.el).css("min-width",(0,i.default)(e.anchor).outerWidth()),(0,n.default)(this.el).show(),(e=this).anchor&&!e.auiAlignment&&(e.auiAlignment=new s.default(e.el,e.anchor)),e.auiAlignment&&e.auiAlignment.enable()},hide:function(){var e;o(this.el),(0,n.default)(this.el).hide(),(e=this).auiAlignment&&e.auiAlignment.destroy()},isVisible:function(){return(0,i.default)(this.el).is(":visible")}},t.default=r,e.exports=t.default,e.exports}.call(this),("undefined"==typeof window?global:window).__0d48206e63e4213d7b0b838a5c3607e3=function(){var e={exports:{}},t=e.exports;Object.defineProperty(t,"__esModule",{value:!0});var i,s=__14d08a893ec8c5a2f1721a89472bb9e6,n=(i=s)&&i.__esModule?i:{default:i};return t.default=(0,n.default)('\n <input type="text" class="text" autocomplete="off" role="combobox" aria-autocomplete="list" aria-haspopup="true" aria-expanded="false">\n <select></select>\n <datalist>\n <content select="aui-option"></content>\n </datalist>\n <button class="aui-button" role="button" tabindex="-1" type="button"></button>\n <div class="aui-popover" role="listbox" data-aui-alignment="bottom left">\n <ul class="aui-optionlist" role="presentation"></ul>\n </div>\n <div class="aui-select-status assistive" aria-live="polite" role="status"></div>\n'),e.exports=t.default,e.exports}.call(this),("undefined"==typeof window?global:window).__5e813e404c1e005c8eddb0cb95b526b1=function(){var e={exports:{}},t=e.exports;Object.defineProperty(t,"__esModule",{value:!0});var a=v(__fb409c432b53d81bad1e174061f6886c);__c6ac4be8806c2a1d24aa400865249d29,__51474667125a5bfeb6e78ef22f02f983,__32e2adcaa559420967a219c84a6f5dcf;var r=v(__96cf825584236f7ba41af5c30ad9a54a),i=v(__1f10abc98a3cd10182350043fad370a4),o=v(__c6533c3b525fc203f79712b45a986b5d),s=v(__a96071e28d103a38ba4dff141c560d4f),l=v(__f64d3cd498337ca9bb808ad279537d9c),n=v(__700392785077a22a4ccfbe28a1bd95fd),c=v(__925085afe37c9c6789b788cc0b7c856e),d=v(__ee92283b2d8dd277390f5838ef14fc90),u=v(__c9a737e5240166d82e8a085c313f9197),h=v(__d2b503755d1047e5e8c3699cfd645c65),f=v(__5d664abfaa0fd06753598f7a638b1c2b),p=v(__0d48206e63e4213d7b0b838a5c3607e3),g=v(__7bccc810f667bf7389679255eb7443b5),b=__a255563e8550ec3cb95a1bf95f62d7c1;function v(e){return e&&e.__esModule?e:{default:e}}var m=-1,_=-1;function w(e){e._select.selectedIndex=m,(e=e)._input.removeAttribute("style"),(0,a.default)(e._input).removeClass("aui-select-has-inline-image")}function y(e){return e._suggestionModel.getNumberOfResults()}function x(e){setTimeout(e,50)}function C(e,t){return 0===e.get("label").toLowerCase().indexOf(t.toLowerCase())}function S(e){e._suggestionsView.hide(),e._input.setAttribute("aria-expanded","false")}function E(e){var t=y(e)?0:_;e._suggestionModel.highlight(t),S(e)}function A(e,t,i){e._autoHighlight=t,void 0===i&&(i=e._input.value),e._progressiveDataSet.query(i)}function T(e){var t=e._suggestionModel.highlighted()&&e._suggestionModel.highlighted().get("img-src");t&&(e=e,t=t,(0,a.default)(e._input).addClass("aui-select-has-inline-image"),e._input.setAttribute("style","background-image: url("+t+")"))}function R(e,t){var i,s,n;t&&(i=document.createElement("option"),s=e._select,n=t.get("value")||t.get("label"),i.setAttribute("selected",""),i.setAttribute("value",n),i.textContent=t.getLabel(),e._input.value=i.textContent,s.innerHTML="",s.options.add(i),s.dispatchEvent(new o.default("change",{bubbles:!0})))}function O(e){R(e,e._suggestionModel.highlighted()),T(e),E(e)}function I(e){return new u.default(e.serialize())}function $(e){for(var t=[],i=0;i<e._datalist.children.length;i++){var s=e._datalist.children[i];t.push(I(s))}return t}function N(e){e=e._dropdown.querySelector(".aui-select-active");return e&&e.id}function D(e,t){return a.default.map(t,function(e){return e.id}).indexOf(e)}function k(a){a._progressiveDataSet=new n.default($(a),{model:u.default,matcher:C,queryEndpoint:a._queryEndpoint,maxResults:20}),a._isSync=!a._queryEndpoint,a._progressiveDataSet.on("activity",function(){var e;a._progressiveDataSet.activeQueryCount&&!a._isSync?((e=a)._button.isBusy()||(e._button.busy(),e._input.setAttribute("aria-busy","true"),e._dropdown.setAttribute("aria-busy","true")),(0,d.default)(a).set("should-flag-new-suggestions",!1)):((e=a)._button.idle(),e._input.setAttribute("aria-busy","false"),e._dropdown.setAttribute("aria-busy","false"),(0,d.default)(a).set("should-flag-new-suggestions",!0))}),a._progressiveDataSet.on("respond",function(e){var t,i,s,n;e.query&&!a._input.value||((0,d.default)(a).get("should-cancel-response")?a._progressiveDataSet.activeQueryCount||(0,d.default)(a).set("should-cancel-response",!1):(e.query||(e.results=$(a)),t=-1!==D(a._input.value,e.results),i=!a._input.value,!a.hasAttribute("can-create-values")||t||i||e.results.push((i=a,(n=new r.default).setAttribute("value",i._input.value),(n=I(n)).set("new-value",!0),n)),(0,d.default)(a).get("should-include-selected")||0<=(s=D(a.value,e.results))&&e.results.splice(s,1),n=e,(s=a)._suggestionModel.set(),s._suggestionModel.set(n.results),e=a._suggestionModel.highlighted()||e.results[0],a._autoHighlight&&(a._suggestionModel.setHighlighted(e),x(function(){a._input.setAttribute("aria-activedescendant",N(a))})),a._input.setAttribute("aria-expanded","true"),!a._isSync&&a._suggestionsView.getActive()&&(0,d.default)(a).get("should-flag-new-suggestions")&&(a.querySelector(".aui-select-status").innerHTML=AJS.I18n.getText("aui.select.new.suggestions")),a._suggestionsView.show(),a._autoHighlight&&x(function(){a._input.setAttribute("aria-activedescendant",N(a))})))})}function M(e){var t=e.value?"":e._input.value,i=""===e._input.value;(0,d.default)(e).set("should-include-selected",i),A(e,!0,t)}function P(e){0<e._progressiveDataSet.activeQueryCount&&(0,d.default)(e).set("should-cancel-response",!0)}function L(e){if(0<=e._select.selectedIndex)return e._select.options[e._select.selectedIndex].textContent}function F(e){var t,i,s,n,a;P(e),s=!(t=e).hasAttribute("no-empty-values"),n=!t._input.value,a=t._input.value!==L(t),(n||a)&&(s||void 0===(i=L(t))?w(t):t._input.value=i),e._suggestionModel.highlight(_),S(e)}p=(0,c.default)("aui-select",{template:p.default,created:function(t){t._listId=(0,g.default)(),t._input=t.querySelector("input"),t._select=t.querySelector("select"),t._dropdown=t.querySelector(".aui-popover"),t._datalist=t.querySelector("datalist"),t._button=t.querySelector("button"),t._suggestionsView=new f.default(t._dropdown,t._input),t._suggestionModel=new h.default,t._suggestionModel.onChange=function(e){var i=[];t._suggestionModel._suggestions.forEach(function(t){e.some(function(e){return t.id===e.id})||i.push(t)}),t._suggestionsView.render(i,e.length,t._listId)},t._suggestionModel.onHighlightChange=function(){var e=t._suggestionModel.highlightedIndex();t._suggestionsView.setActive(e),t._input.setAttribute("aria-activedescendant",N(t))}},attached:function(e){var t,i,s,n;c.default.init(e),k(e),(n=e)._dropdown.id=n._listId,n.querySelector("button").setAttribute("aria-controls",n._listId),e._input.setAttribute("aria-controls",e._listId),e.setAttribute("tabindex","-1"),t=e,(0,a.default)(t._dropdown).on("mouseover","li",function(e){y(t)&&t._suggestionModel.highlight((0,a.default)(e.target).index())}),i=e,(0,a.default)(i._dropdown).on("mousedown","li",function(e){return!!y(i)&&(i._suggestionModel.highlight((0,a.default)(e.target).index()),O(i),i._suggestionsView.hide(),void i._input.removeAttribute("aria-activedescendant"))}),(n=(s=e)._datalist.querySelector("aui-option[selected]"))&&R(s,I(n)),E(e),T(e)},attributes:{id:function(e,t){e.id&&(e.querySelector("input").id=t.newValue+b.INPUT_SUFFIX)},name:function(e,t){e.querySelector("select").setAttribute("name",t.newValue)},placeholder:function(e,t){e.querySelector("input").setAttribute("placeholder",t.newValue)},src:function(e,t){e._queryEndpoint=t.newValue}},events:{"blur input":function(e){F(e)},"mousedown button":function(e){document.activeElement===e._input&&"false"===e._dropdown.getAttribute("aria-hidden")&&(0,d.default)(e).set("prevent-open-on-button-click",!0)},"click input":function(e){M(e)},"click button":function(e){var t=(0,d.default)(e);t.get("prevent-open-on-button-click")?t.set("prevent-open-on-button-click",!1):((0,d.default)(e).set("button-clicked-prevent-dropdown-hide",!0),e.focus())},input:function(e){e._input.value?((0,d.default)(e).set("should-include-selected",!0),A(e,!0)):(0,d.default)(e).get("button-clicked-prevent-dropdown-hide")?(0,d.default)(e).set("button-clicked-prevent-dropdown-hide",!1):S(e)},"keydown input":function(e,t){var i,s=e._input.value,n=!1;if(t.keyCode===l.default.ESCAPE)return P(e),void S(e);e._suggestionsView.isVisible()&&y(e)?t.keyCode===l.default.ENTER?(P(e),O(e),t.preventDefault()):t.keyCode===l.default.TAB?((i=e)._suggestionsView.isVisible()&&O(i),n=!0):t.keyCode===l.default.UP?(e._suggestionModel.highlightPrevious(),t.preventDefault()):t.keyCode===l.default.DOWN&&(e._suggestionModel.highlightNext(),t.preventDefault()):t.keyCode!==l.default.UP&&t.keyCode!==l.default.DOWN||(M(e),t.preventDefault()),n=n||t.defaultPrevented,setTimeout(function(){e._input.value===s||n||e.dispatchEvent(new o.default("input",{bubbles:!0}))},0)}},prototype:{get value(){var e=this._select.options[this._select.selectedIndex];return e?e.value:""},set value(e){var t;return""===e?((t=this)._input.value="",t._select.innerHTML=""):e&&(!(t=(t=this._progressiveDataSet).findWhere({value:e})||t.findWhere({label:e}))&&this.hasAttribute("can-create-values")&&(t=new u.default({value:e,label:e})),R(this,t)),this},get displayValue(){return this._input.value},blur:function(){return this._input.blur(),F(this),this},focus:function(){return this._input.focus(),M(this),this}}});return(0,i.default)("aui/select",p),(0,s.default)("select",p),t.default=p,e.exports=t.default,e.exports}.call(this),("undefined"==typeof window?global:window).__8d41b5456e4c15b2ede9f1077d5c1a84=function(){var n,m,g,l,c,d,a,u,_,h,r,e,t,i={};function o(e){var t,i,s,n;if(!e||e.length<1)return e;for(t="",i=0,s=e.length;i<s;i++)n=e.charAt(i),t+=r[n]||n;return t}function f(e,t){for(var i=0,s=t.length;i<s;i+=1)if(b(e,t[i]))return i;return-1}function b(e,t){return e===t||e!==g&&t!==g&&(null!==e&&null!==t&&(e.constructor===String?e+""==t+"":t.constructor===String&&t+""==e+""))}function v(e,t){var i,s,n;if(null===e||e.length<1)return[];for(s=0,n=(i=e.split(t)).length;s<n;s+=1)i[s]=m.trim(i[s]);return i}function p(e){return e.outerWidth(!1)-e.width()}function w(t){var i="keyup-change-value";t.on("keydown",function(){m.data(t,i)===g&&m.data(t,i,t.val())}),t.on("keyup",function(){var e=m.data(t,i);e!==g&&t.val()!==e&&(m.removeData(t,i),t.trigger("keyup-change"))})}function y(t,i,s){var n;return s=s||g,function(){var e=arguments;window.clearTimeout(n),n=window.setTimeout(function(){i.apply(s,e)},t)}}function x(e){e.preventDefault(),e.stopPropagation()}function C(e,t,i){var s,n=[],a=e.attr("class");a&&m((a=""+a).split(" ")).each2(function(){0===this.indexOf("select2-")&&n.push(this)}),(a=t.attr("class"))&&m((a=""+a).split(" ")).each2(function(){0!==this.indexOf("select2-")&&(s=i(this))&&n.push(s)}),e.attr("class",n.join(" "))}function S(e,t,i,s){var n=o(e.toUpperCase()).indexOf(o(t.toUpperCase())),t=t.length;n<0?i.push(s(e)):(i.push(s(e.substring(0,n))),i.push("<span class='select2-match'>"),i.push(s(e.substring(n,n+t))),i.push("</span>"),i.push(s(e.substring(n+t,e.length))))}function s(e){var t={"\\":"&#92;","&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#47;"};return String(e).replace(/[&<>"'\/\\]/g,function(e){return t[e]})}function E(a){var e,r=null,t=a.quietMillis||100,o=a.url,l=this;return function(n){window.clearTimeout(e),e=window.setTimeout(function(){var e=a.data,t=o,i=a.transport||m.fn.select2.ajaxDefaults.transport,s={type:a.type||"GET",cache:a.cache||!1,jsonpCallback:a.jsonpCallback||g,dataType:a.dataType||"json"},s=m.extend({},m.fn.select2.ajaxDefaults.params,s),e=e?e.call(l,n.term,n.page,n.context):null,t="function"==typeof t?t.call(l,n.term,n.page,n.context):t;r&&r.abort(),a.params&&(m.isFunction(a.params)?m.extend(s,a.params.call(l)):m.extend(s,a.params)),m.extend(s,{url:t,dataType:a.dataType,data:e,success:function(e){e=a.results(e,n.page);n.callback(e)}}),r=i.call(l,s)},t)}}function A(e){var t,i,s=e,o=function(e){return""+e.text};m.isArray(s)&&(s={results:i=s}),!1===m.isFunction(s)&&(i=s,s=function(){return i});e=s();return e.text&&(o=e.text,m.isFunction(o)||(t=e.text,o=function(e){return e[t]})),function(n){var a,r=n.term,i={results:[]};""!==r?(a=function(e,t){var i,s;if((e=e[0]).children){for(s in i={},e)e.hasOwnProperty(s)&&(i[s]=e[s]);i.children=[],m(e.children).each2(function(e,t){a(t,i.children)}),(i.children.length||n.matcher(r,o(i),e))&&t.push(i)}else n.matcher(r,o(e),e)&&t.push(e)},m(s().results).each2(function(e,t){a(t,i.results)}),n.callback(i)):n.callback(s())}}function T(e){var t=m.isFunction(e);return function(i){var s=i.term,n={results:[]};m(t?e():e).each(function(){var e=this.text!==g,t=e?this.text:this;""!==s&&!i.matcher(s,t)||n.results.push(e?this:{id:this,text:this})}),i.callback(n)}}function R(e,t){if(m.isFunction(e))return 1;if(e)throw new Error(t+" must be a function or a falsy value")}function O(e){return m.isFunction(e)?e():e}function I(e,t){function i(){}return((i.prototype=new e).constructor=i).prototype.parent=e.prototype,i.prototype=m.extend(i.prototype,t),i}return void 0===(n=jQuery).fn.each2&&n.extend(n.fn,{each2:function(e){for(var t=n([0]),i=-1,s=this.length;++i<s&&(t.context=t[0]=this[i])&&!1!==e.call(t[0],i,t););return this}}),m=jQuery,window.Select2===g&&(u={x:0,y:0},h={TAB:9,ENTER:13,ESC:27,SPACE:32,LEFT:37,UP:38,RIGHT:39,DOWN:40,SHIFT:16,CTRL:17,ALT:18,PAGE_UP:33,PAGE_DOWN:34,HOME:36,END:35,BACKSPACE:8,DELETE:46,isArrow:function(e){switch(e=e.which||e){case h.LEFT:case h.RIGHT:case h.UP:case h.DOWN:return!0}return!1},isControl:function(e){switch(e.which){case h.SHIFT:case h.CTRL:case h.ALT:return!0}return!!e.metaKey},isFunctionKey:function(e){return 112<=(e=e.which||e)&&e<=123}},r={"Ⓐ":"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","Ⓓ":"D","D":"D","Ḋ":"D","Ď":"D","Ḍ":"D","Ḑ":"D","Ḓ":"D","Ḏ":"D","Đ":"D","Ƌ":"D","Ɗ":"D","Ɖ":"D","Ꝺ":"D","DZ":"DZ","DŽ":"DZ","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","Ⓕ":"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","Ⓘ":"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","Ⓚ":"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","LJ":"LJ","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","NJ":"NJ","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","Ƣ":"OI","Ꝏ":"OO","Ȣ":"OU","Ⓟ":"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","Ⓣ":"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","Ⓧ":"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","ƣ":"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"},t=m(document),e=1,d=function(){return e++},t.on("mousemove",function(e){u.x=e.pageX,u.y=e.pageY}),t=I(Object,{bind:function(e){var t=this;return function(){e.apply(t,arguments)}},init:function(e){var a,t,i,s,n,r,o,l,c=".select2-results";this.opts=e=this.prepareOpts(e),this.id=e.id,e.element.data("select2")!==g&&null!==e.element.data("select2")&&e.element.data("select2").destroy(),this.container=this.createContainer(),this.containerId="s2id_"+(e.element.attr("id")||"autogen"+d()),this.containerSelector="#"+this.containerId.replace(/([;&,\.\+\*\~':"\!\^#$%@\[\]\(\)=>\|])/g,"\\$1"),this.container.attr("id",this.containerId),this.body=(n=!(i=function(){return e.element.closest("body")}),function(){return!1===n&&(s=i(),n=!0),s}),C(this.container,this.opts.element,this.opts.adaptContainerCssClass),this.container.attr("style",e.element.attr("style")),this.container.css(O(e.containerCss)),this.container.addClass(O(e.containerCssClass)),this.elementTabIndex=this.opts.element.attr("tabindex"),this.opts.element.data("select2",this).attr("tabindex","-1").before(this.container).on("click.select2",x),this.container.data("select2",this),this.dropdown=this.container.find(".select2-drop"),C(this.dropdown,this.opts.element,this.opts.adaptDropdownCssClass),this.dropdown.addClass(O(e.dropdownCssClass)),this.dropdown.data("select2",this),this.dropdown.on("click",x),this.results=a=this.container.find(c),this.search=t=this.container.find("input.select2-input"),this.queryCount=0,this.resultsPage=0,this.context=null,this.initContainer(),this.container.on("click",x),this.results.on("mousemove",function(e){u!==g&&u.x===e.pageX&&u.y===e.pageY||m(e.target).trigger("mousemove-filtered",e)}),this.dropdown.on("mousemove-filtered touchstart touchmove touchend",c,this.bind(this.highlightUnderEvent)),r=80,o=this.results,l=y(r,function(e){o.trigger("scroll-debounced",e)}),o.on("scroll",function(e){0<=f(e.target,o.get())&&l(e)}),this.dropdown.on("scroll-debounced",c,this.bind(this.loadMoreIfNeeded)),m(this.container).on("change",".select2-input",function(e){e.stopPropagation()}),m(this.dropdown).on("change",".select2-input",function(e){e.stopPropagation()}),m.fn.mousewheel&&a.mousewheel(function(e,t,i,s){var n=a.scrollTop();0<s&&n-s<=0?(a.scrollTop(0),x(e)):s<0&&a.get(0).scrollHeight-a.scrollTop()+s<=a.height()&&(a.scrollTop(a.get(0).scrollHeight-a.height()),x(e))}),w(t),t.on("keyup-change input paste",this.bind(this.updateResults)),t.on("focus",function(){t.addClass("select2-focused")}),t.on("blur",function(){t.removeClass("select2-focused")}),this.dropdown.on("mouseup",c,this.bind(function(e){0<m(e.target).closest(".select2-result-selectable").length&&(this.highlightUnderEvent(e),this.selectHighlighted(e))})),this.dropdown.on("click mouseup mousedown",function(e){e.stopPropagation()}),m.isFunction(this.opts.initSelection)&&(this.initSelection(),this.monitorSource()),null!==e.maximumInputLength&&this.search.attr("maxlength",e.maximumInputLength);c=e.element.prop("disabled");this.enable(!(c=c===g?!1:c));c=e.element.prop("readonly");this.readonly(c=c===g?!1:c),_=_||function(){var e=m("<div class='select2-measure-scrollbar'></div>");e.appendTo("body");var t={width:e.width()-e[0].clientWidth,height:e.height()-e[0].clientHeight};return e.remove(),t}(),this.autofocus=e.element.prop("autofocus"),e.element.prop("autofocus",!1),this.autofocus&&this.focus(),this.nextSearchTerm=g},destroy:function(){var e=this.opts.element,t=e.data("select2");this.close(),this.propertyObserver&&(delete this.propertyObserver,this.propertyObserver=null),t!==g&&(t.container.remove(),t.dropdown.remove(),e.removeClass("select2-offscreen").removeData("select2").off(".select2").prop("autofocus",this.autofocus||!1),this.elementTabIndex?e.attr({tabindex:this.elementTabIndex}):e.removeAttr("tabindex"),e.show())},optionToData:function(e){return e.is("option")?{id:e.prop("value"),text:e.text(),element:e.get(),css:e.attr("class"),disabled:e.prop("disabled"),locked:b(e.attr("locked"),"locked")||b(e.data("locked"),!0)}:e.is("optgroup")?{text:e.attr("label"),children:[],element:e.get(),css:e.attr("class")}:void 0},prepareOpts:function(f){var t,e,p=this,r=f.element;if("select"===r.get(0).tagName.toLowerCase()&&(this.select=e=f.element),e&&m.each(["id","multiple","ajax","query","createSearchChoice","initSelection","data","tags"],function(){if(this in f)throw new Error("Option '"+this+"' is not allowed for Select2 when attached to a <select> element.")}),"function"!=typeof(f=m.extend({},{populateResults:function(e,t,d){var u=this.opts.id,h=function(e,t,i){for(var s,n,a,r,o,l=0,c=(e=f.sortResults(e,t,d)).length;l<c;l+=1)a=!(o=!0===(s=e[l]).disabled)&&u(s)!==g,r=s.children&&0<s.children.length,(n=m("<li></li>")).addClass("select2-results-dept-"+i),n.addClass("select2-result"),n.addClass(a?"select2-result-selectable":"select2-result-unselectable"),o&&n.addClass("select2-disabled"),r&&n.addClass("select2-result-with-children"),n.addClass(p.opts.formatResultCssClass(s)),(a=m(document.createElement("div"))).addClass("select2-result-label"),(o=f.formatResult(s,a,d,p.opts.escapeMarkup))!==g&&a.html(o),n.append(a),r&&((r=m("<ul></ul>")).addClass("select2-result-sub"),h(s.children,r,i+1),n.append(r)),n.data("select2-data",s),t.append(n)};h(t,e,0)}},m.fn.select2.defaults,f)).id&&(t=f.id,f.id=function(e){return e[t]}),m.isArray(f.element.data("select2Tags"))){if("tags"in f)throw"tags specified as both an attribute 'data-select2-tags' and in options of Select2 "+f.element.attr("id");f.tags=f.element.data("select2Tags")}if(e?(f.query=this.bind(function(s){var e,i={results:[],more:!1},n=s.term,a=function(e,t){var i;e.is("option")?s.matcher(n,e.text(),e)&&t.push(p.optionToData(e)):e.is("optgroup")&&(i=p.optionToData(e),e.children().each2(function(e,t){a(t,i.children)}),0<i.children.length&&t.push(i))},t=r.children();(t=this.getPlaceholder()!==g&&0<t.length&&(e=this.getPlaceholderOption())?t.not(e):t).each2(function(e,t){a(t,i.results)}),s.callback(i)}),f.id=function(e){return e.id},f.formatResultCssClass=function(e){return e.css}):"query"in f||("ajax"in f?((e=f.element.data("ajax-url"))&&0<e.length&&(f.ajax.url=e),f.query=E.call(f.element,f.ajax)):"data"in f?f.query=A(f.data):"tags"in f&&(f.query=T(f.tags),f.createSearchChoice===g&&(f.createSearchChoice=function(e){return{id:m.trim(e),text:m.trim(e)}}),f.initSelection===g&&(f.initSelection=function(e,t){var i=[];m(v(e.val(),f.separator)).each(function(){var e={id:this,text:this},t=f.tags;m.isFunction(t)&&(t=t()),m(t).each(function(){if(b(this.id,e.id))return e=this,!1}),i.push(e)}),t(i)}))),"function"!=typeof f.query)throw"query function not defined for Select2 "+f.element.attr("id");return f},monitorSource:function(){var t,e,i=this.opts.element;i.on("change.select2",this.bind(function(e){!0!==this.opts.element.data("select2-change-triggered")&&this.initSelection()})),t=this.bind(function(){var e=i.prop("disabled");this.enable(!(e=e===g?!1:e));e=i.prop("readonly");this.readonly(e=e===g?!1:e),C(this.container,this.opts.element,this.opts.adaptContainerCssClass),this.container.addClass(O(this.opts.containerCssClass)),C(this.dropdown,this.opts.element,this.opts.adaptDropdownCssClass),this.dropdown.addClass(O(this.opts.dropdownCssClass))}),i.on("propertychange.select2",t),this.mutationCallback===g&&(this.mutationCallback=function(e){e.forEach(t)}),(e=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver)!==g&&(this.propertyObserver&&(delete this.propertyObserver,this.propertyObserver=null),this.propertyObserver=new e(this.mutationCallback),this.propertyObserver.observe(i.get(0),{attributes:!0,subtree:!1}))},triggerSelect:function(e){e=m.Event("select2-selecting",{val:this.id(e),object:e});return this.opts.element.trigger(e),!e.isDefaultPrevented()},triggerChange:function(e){e=m.extend({},e=e||{},{type:"change",val:this.val()}),this.opts.element.data("select2-change-triggered",!0),this.opts.element.trigger(e),this.opts.element.data("select2-change-triggered",!1),this.opts.element.click(),this.opts.blurOnChange&&this.opts.element.blur()},isInterfaceEnabled:function(){return!0===this.enabledInterface},enableInterface:function(){var e=this._enabled&&!this._readonly;return e!==this.enabledInterface&&(this.container.toggleClass("select2-container-disabled",!e),this.close(),this.enabledInterface=e,!0)},enable:function(e){this._enabled!==(e=e===g?!0:e)&&(this._enabled=e,this.opts.element.prop("disabled",!e),this.enableInterface())},disable:function(){this.enable(!1)},readonly:function(e){return this._readonly!==(e=e!==g&&e)&&(this._readonly=e,this.opts.element.prop("readonly",e),this.enableInterface(),!0)},opened:function(){return this.container.hasClass("select2-dropdown-open")},positionDropdown:function(){var e,t,i=this.dropdown,s=this.container.offset(),n=this.container.outerHeight(!1),a=this.container.outerWidth(!1),r=i.outerHeight(!1),o=m(window),l=o.width(),c=o.height(),d=o.scrollLeft()+l,u=o.scrollTop()+c,h=s.top+n,f=s.left,p=h+r<=u,g=s.top-r>=this.body().scrollTop(),b=i.outerWidth(!1),v=f+b<=d;i.hasClass("select2-drop-above")?(e=!0,!g&&p&&(e=!(t=!0))):(e=!1,!p&&g&&(e=t=!0)),t&&(i.hide(),s=this.container.offset(),n=this.container.outerHeight(!1),a=this.container.outerWidth(!1),i.outerHeight(!1),d=o.scrollLeft()+l,o.scrollTop(),h=s.top+n,v=(f=s.left)+(b=i.outerWidth(!1))<=d,i.show()),this.opts.dropdownAutoWidth?(n=m(".select2-results",i)[0],i.addClass("select2-drop-auto-width"),i.css("width",""),a<(b=i.outerWidth(!1)+(n.scrollHeight===n.clientHeight?0:_.width))?a=b:b=a,v=f+b<=d):this.container.removeClass("select2-drop-auto-width"),"static"!==this.body().css("position")&&(h-=(d=this.body().offset()).top,f-=d.left),a={left:f=!v?s.left+a-b:f,width:a},e?(a.bottom=c-s.top,a.top="auto",this.container.addClass("select2-drop-above"),i.addClass("select2-drop-above")):(a.top=h,a.bottom="auto",this.container.removeClass("select2-drop-above"),i.removeClass("select2-drop-above")),a=m.extend(a,O(this.opts.dropdownCss)),i.css(a)},shouldOpen:function(){var e;return!this.opened()&&(!1!==this._enabled&&!0!==this._readonly&&(e=m.Event("select2-opening"),this.opts.element.trigger(e),!e.isDefaultPrevented()))},clearDropdownAlignmentPreference:function(){this.container.removeClass("select2-drop-above"),this.dropdown.removeClass("select2-drop-above")},open:function(){return!!this.shouldOpen()&&(this.opening(),!0)},opening:function(){var e=this.containerId,t="scroll."+e,i="resize."+e,s="orientationchange."+e;this.container.addClass("select2-dropdown-open").addClass("select2-container-active"),this.clearDropdownAlignmentPreference(),this.dropdown[0]!==this.body().children().last()[0]&&this.dropdown.detach().appendTo(this.body()),0==(e=m("#select2-drop-mask")).length&&((e=m(document.createElement("div"))).attr("id","select2-drop-mask").attr("class","select2-drop-mask"),e.hide(),e.appendTo(this.body()),e.on("mousedown touchstart click",function(e){var t=m("#select2-drop");0<t.length&&((t=t.data("select2")).opts.selectOnBlur&&t.selectHighlighted({noFocus:!0}),t.close({focus:!0}),e.preventDefault(),e.stopPropagation())})),this.dropdown.prev()[0]!==e[0]&&this.dropdown.before(e),m("#select2-drop").removeAttr("id"),this.dropdown.attr("id","select2-drop"),e.show(),this.positionDropdown(),this.dropdown.show(),this.positionDropdown(),this.dropdown.addClass("select2-drop-active");var n=this;this.container.parents().add(window).each(function(){m(this).on(i+" "+t+" "+s,function(e){n.positionDropdown()})})},close:function(){var e,t,i,s;this.opened()&&(e=this.containerId,t="scroll."+e,i="resize."+e,s="orientationchange."+e,this.container.parents().add(window).each(function(){m(this).off(t).off(i).off(s)}),this.clearDropdownAlignmentPreference(),m("#select2-drop-mask").hide(),this.dropdown.removeAttr("id"),this.dropdown.hide(),this.container.removeClass("select2-dropdown-open").removeClass("select2-container-active"),this.results.empty(),this.clearSearch(),this.search.removeClass("select2-active"),this.opts.element.trigger(m.Event("select2-close")))},externalSearch:function(e){this.open(),this.search.val(e),this.updateResults(!1)},clearSearch:function(){},getMaximumSelectionSize:function(){return O(this.opts.maximumSelectionSize)},ensureHighlightVisible:function(){var e,t,i,s,n=this.results,a=this.highlight();a<0||(0!=a?(e=this.findHighlightableChoices().find(".select2-result-label"),i=(t=m(e[a])).offset().top+t.outerHeight(!0),a===e.length-1&&0<(s=n.find("li.select2-more-results")).length&&(i=s.offset().top+s.outerHeight(!0)),(s=n.offset().top+n.outerHeight(!0))<i&&n.scrollTop(n.scrollTop()+(i-s)),(s=t.offset().top-n.offset().top)<0&&"none"!=t.css("display")&&n.scrollTop(n.scrollTop()+s)):n.scrollTop(0))},findHighlightableChoices:function(){return this.results.find(".select2-result-selectable:not(.select2-disabled, .select2-selected)")},moveHighlight:function(e){for(var t=this.findHighlightableChoices(),i=this.highlight();-1<i&&i<t.length;){var s=m(t[i+=e]);if(s.hasClass("select2-result-selectable")&&!s.hasClass("select2-disabled")&&!s.hasClass("select2-selected")){this.highlight(i);break}}},highlight:function(e){var t=this.findHighlightableChoices();if(0===arguments.length)return f(t.filter(".select2-highlighted")[0],t.get());(e=e>=t.length?t.length-1:e)<0&&(e=0),this.removeHighlight(),(t=m(t[e])).addClass("select2-highlighted"),this.ensureHighlightVisible(),(t=t.data("select2-data"))&&this.opts.element.trigger({type:"select2-highlight",val:this.id(t),choice:t})},removeHighlight:function(){this.results.find(".select2-highlighted").removeClass("select2-highlighted")},countSelectableResults:function(){return this.findHighlightableChoices().length},highlightUnderEvent:function(e){var t=m(e.target).closest(".select2-result-selectable");0<t.length&&!t.is(".select2-highlighted")?(e=this.findHighlightableChoices(),this.highlight(e.index(t))):0==t.length&&this.removeHighlight()},loadMoreIfNeeded:function(){var t=this.results,i=t.find("li.select2-more-results"),s=this.resultsPage+1,n=this,a=this.search.val(),r=this.context;0!==i.length&&i.offset().top-t.offset().top-t.height()<=this.opts.loadMorePadding&&(i.addClass("select2-active"),this.opts.query({element:this.opts.element,term:a,page:s,context:r,matcher:this.opts.matcher,callback:this.bind(function(e){n.opened()&&(n.opts.populateResults.call(this,t,e.results,{term:a,page:s,context:r}),n.postprocessResults(e,!1,!1),!0===e.more?(i.detach().appendTo(t).text(n.opts.formatLoadMore(s+1)),window.setTimeout(function(){n.loadMoreIfNeeded()},10)):i.remove(),n.positionDropdown(),n.resultsPage=s,n.context=e.context,this.opts.element.trigger({type:"select2-loaded",items:e}))})}))},tokenize:function(){},updateResults:function(i){var e,s=this.search,n=this.results,a=this.opts,r=this,t=s.val(),o=m.data(this.container,"select2-last-term");if((!0===i||!o||!b(t,o))&&(m.data(this.container,"select2-last-term",t),!0===i||!1!==this.showSearchInput&&this.opened())){var l=++this.queryCount,t=this.getMaximumSelectionSize();if(!(1<=t&&(e=this.data(),m.isArray(e)&&e.length>=t&&R(a.formatSelectionTooBig,"formatSelectionTooBig"))))return s.val().length<a.minimumInputLength?(R(a.formatInputTooShort,"formatInputTooShort")?d("<li class='select2-no-results'>"+a.formatInputTooShort(s.val(),a.minimumInputLength)+"</li>"):d(""),void(i&&this.showSearch&&this.showSearch(!0))):void(a.maximumInputLength&&s.val().length>a.maximumInputLength?R(a.formatInputTooLong,"formatInputTooLong")?d("<li class='select2-no-results'>"+a.formatInputTooLong(s.val(),a.maximumInputLength)+"</li>"):d(""):(a.formatSearching&&0===this.findHighlightableChoices().length&&d("<li class='select2-searching'>"+a.formatSearching()+"</li>"),s.addClass("select2-active"),this.removeHighlight(),(e=this.tokenize())!=g&&null!=e&&s.val(e),this.resultsPage=1,a.query({element:a.element,term:s.val(),page:this.resultsPage,context:null,matcher:a.matcher,callback:this.bind(function(e){var t;l==this.queryCount&&(this.opened()?(this.context=e.context===g?null:e.context,this.opts.createSearchChoice&&""!==s.val()&&(t=this.opts.createSearchChoice.call(r,s.val(),e.results))!==g&&null!==t&&r.id(t)!==g&&null!==r.id(t)&&0===m(e.results).filter(function(){return b(r.id(this),r.id(t))}).length&&e.results.unshift(t),0===e.results.length&&R(a.formatNoMatches,"formatNoMatches")?d("<li class='select2-no-results'>"+a.formatNoMatches(s.val())+"</li>"):(n.empty(),r.opts.populateResults.call(this,n,e.results,{term:s.val(),page:this.resultsPage,context:null}),!0===e.more&&R(a.formatLoadMore,"formatLoadMore")&&(n.append("<li class='select2-more-results'>"+r.opts.escapeMarkup(a.formatLoadMore(this.resultsPage))+"</li>"),window.setTimeout(function(){r.loadMoreIfNeeded()},10)),this.postprocessResults(e,i),c(),this.opts.element.trigger({type:"select2-loaded",items:e}))):this.search.removeClass("select2-active"))})})));d("<li class='select2-selection-limit'>"+a.formatSelectionTooBig(t)+"</li>")}function c(){s.removeClass("select2-active"),r.positionDropdown()}function d(e){n.html(e),c()}},cancel:function(){this.close()},blur:function(){this.opts.selectOnBlur&&this.selectHighlighted({noFocus:!0}),this.close(),this.container.removeClass("select2-container-active"),this.search[0]===document.activeElement&&this.search.blur(),this.clearSearch(),this.selection.find(".select2-search-choice-focus").removeClass("select2-search-choice-focus")},focusSearch:function(){var i;(i=this.search)[0]!==document.activeElement&&window.setTimeout(function(){var e=i[0],t=i.val().length;i.focus(),i.is(":visible")&&e===document.activeElement&&(e.setSelectionRange?e.setSelectionRange(t,t):e.createTextRange&&((e=e.createTextRange()).collapse(!1),e.select()))},0)},selectHighlighted:function(e){var t=this.highlight(),i=this.results.find(".select2-highlighted").closest(".select2-result").data("select2-data");i?(this.highlight(t),this.onSelect(i,e)):e&&e.noFocus&&this.close()},getPlaceholder:function(){var e;return this.opts.element.attr("placeholder")||this.opts.element.attr("data-placeholder")||this.opts.element.data("placeholder")||this.opts.placeholder||((e=this.getPlaceholderOption())!==g?e.text():g)},getPlaceholderOption:function(){if(this.select){var e=this.select.children("option").first();return this.opts.placeholderOption!==g?"first"===this.opts.placeholderOption&&e||"function"==typeof this.opts.placeholderOption&&this.opts.placeholderOption(this.select):""===e.text()&&""===e.val()?e:void 0}},initContainerWidth:function(){var e=function(){var e,t,i,s,n;if("off"===this.opts.width)return null;if("element"===this.opts.width)return 0===this.opts.element.outerWidth(!1)?"auto":this.opts.element.outerWidth(!1)+"px";if("copy"!==this.opts.width&&"resolve"!==this.opts.width)return m.isFunction(this.opts.width)?this.opts.width():this.opts.width;if((e=this.opts.element.attr("style"))!==g)for(s=0,n=(t=e.split(";")).length;s<n;s+=1)if(null!==(i=t[s].replace(/\s/g,"").match(/^width:(([-+]?([0-9]*\.)?[0-9]+)(px|em|ex|%|in|cm|mm|pt|pc))/i))&&1<=i.length)return i[1];return"resolve"===this.opts.width?0<(e=this.opts.element.css("width")).indexOf("%")?e:0===this.opts.element.outerWidth(!1)?"auto":this.opts.element.outerWidth(!1)+"px":null}.call(this);null!==e&&this.container.css("width",e)}}),l=I(t,{createContainer:function(){return m(document.createElement("div")).attr({class:"select2-container"}).html(["<a href='javascript:void(0)' class='select2-choice' tabindex='-1'>"," <span class='select2-chosen'>&nbsp;</span><abbr class='select2-search-choice-close'></abbr>"," <span class='select2-arrow'><b></b></span>","</a>","<input class='select2-focusser select2-offscreen' type='text'/>","<div class='select2-drop select2-display-none'>"," <div class='select2-search'>"," <input type='text' autocomplete='off' autocorrect='off' autocapitalize='off' spellcheck='false' class='select2-input'/>"," </div>"," <ul class='select2-results'>"," </ul>","</div>"].join(""))},enableInterface:function(){this.parent.enableInterface.apply(this,arguments)&&this.focusser.prop("disabled",!this.isInterfaceEnabled())},opening:function(){var e,t;0<=this.opts.minimumResultsForSearch&&this.showSearch(!0),this.parent.opening.apply(this,arguments),!1!==this.showSearchInput&&this.search.val(this.focusser.val()),this.search.focus(),(e=this.search.get(0)).createTextRange?((t=e.createTextRange()).collapse(!1),t.select()):e.setSelectionRange&&(t=this.search.val().length,e.setSelectionRange(t,t)),""===this.search.val()&&this.nextSearchTerm!=g&&(this.search.val(this.nextSearchTerm),this.search.select()),this.focusser.prop("disabled",!0).val(""),this.updateResults(!0),this.opts.element.trigger(m.Event("select2-open"))},close:function(e){this.opened()&&(this.parent.close.apply(this,arguments),e=e||{focus:!0},this.focusser.removeAttr("disabled"),e.focus&&this.focusser.focus())},focus:function(){this.opened()?this.close():(this.focusser.removeAttr("disabled"),this.focusser.focus())},isFocused:function(){return this.container.hasClass("select2-container-active")},cancel:function(){this.parent.cancel.apply(this,arguments),this.focusser.removeAttr("disabled"),this.focusser.focus()},destroy:function(){m("label[for='"+this.focusser.attr("id")+"']").attr("for",this.opts.element.attr("id")),this.parent.destroy.apply(this,arguments)},initContainer:function(){var e,t=this.container,i=this.dropdown;this.opts.minimumResultsForSearch<0?this.showSearch(!1):this.showSearch(!0),this.selection=e=t.find(".select2-choice"),this.focusser=t.find(".select2-focusser"),this.focusser.attr("id","s2id_autogen"+d()),m("label[for='"+this.opts.element.attr("id")+"']").attr("for",this.focusser.attr("id")),this.focusser.attr("tabindex",this.elementTabIndex),this.search.on("keydown",this.bind(function(e){if(this.isInterfaceEnabled())if(e.which!==h.PAGE_UP&&e.which!==h.PAGE_DOWN)switch(e.which){case h.UP:case h.DOWN:return this.moveHighlight(e.which===h.UP?-1:1),void x(e);case h.ENTER:return this.selectHighlighted(),void x(e);case h.TAB:return void this.selectHighlighted({noFocus:!0});case h.ESC:return this.cancel(e),void x(e)}else x(e)})),this.search.on("blur",this.bind(function(e){document.activeElement===this.body().get(0)&&window.setTimeout(this.bind(function(){this.search.focus()}),0)})),this.focusser.on("keydown",this.bind(function(e){if(this.isInterfaceEnabled()&&e.which!==h.TAB&&!h.isControl(e)&&!h.isFunctionKey(e)&&e.which!==h.ESC){if(!1!==this.opts.openOnEnter||e.which!==h.ENTER)return e.which==h.DOWN||e.which==h.UP||e.which==h.ENTER&&this.opts.openOnEnter?e.altKey||e.ctrlKey||e.shiftKey||e.metaKey?void 0:(this.open(),void x(e)):void(e.which!=h.DELETE&&e.which!=h.BACKSPACE||(this.opts.allowClear&&this.clear(),x(e)));x(e)}})),w(this.focusser),this.focusser.on("keyup-change input",this.bind(function(e){0<=this.opts.minimumResultsForSearch&&(e.stopPropagation(),this.opened()||this.open())})),e.on("mousedown","abbr",this.bind(function(e){this.isInterfaceEnabled()&&(this.clear(),(e=e).preventDefault(),e.stopImmediatePropagation(),this.close(),this.selection.focus())})),e.on("mousedown",this.bind(function(e){this.container.hasClass("select2-container-active")||this.opts.element.trigger(m.Event("select2-focus")),this.opened()?this.close():this.isInterfaceEnabled()&&this.open(),x(e)})),i.on("mousedown",this.bind(function(){this.search.focus()})),e.on("focus",this.bind(function(e){x(e)})),this.focusser.on("focus",this.bind(function(){this.container.hasClass("select2-container-active")||this.opts.element.trigger(m.Event("select2-focus")),this.container.addClass("select2-container-active")})).on("blur",this.bind(function(){this.opened()||(this.container.removeClass("select2-container-active"),this.opts.element.trigger(m.Event("select2-blur")))})),this.search.on("focus",this.bind(function(){this.container.hasClass("select2-container-active")||this.opts.element.trigger(m.Event("select2-focus")),this.container.addClass("select2-container-active")})),this.initContainerWidth(),this.opts.element.addClass("select2-offscreen"),this.setPlaceholder()},clear:function(e){var t,i=this.selection.data("select2-data");i&&(t=m.Event("select2-clearing"),this.opts.element.trigger(t),t.isDefaultPrevented()||(t=this.getPlaceholderOption(),this.opts.element.val(t?t.val():""),this.selection.find(".select2-chosen").empty(),this.selection.removeData("select2-data"),this.setPlaceholder(),!1!==e&&(this.opts.element.trigger({type:"select2-removed",val:this.id(i),choice:i}),this.triggerChange({removed:i}))))},initSelection:function(){var t;this.isPlaceholderOptionSelected()?(this.updateSelection(null),this.close(),this.setPlaceholder()):(t=this).opts.initSelection.call(null,this.opts.element,function(e){e!==g&&null!==e&&(t.updateSelection(e),t.close(),t.setPlaceholder())})},isPlaceholderOptionSelected:function(){var e;return!!this.getPlaceholder()&&((e=this.getPlaceholderOption())!==g&&e.prop("selected")||""===this.opts.element.val()||this.opts.element.val()===g||null===this.opts.element.val())},prepareOpts:function(){var r=this.parent.prepareOpts.apply(this,arguments),i=this;return"select"===r.element.get(0).tagName.toLowerCase()?r.initSelection=function(e,t){e=e.find("option").filter(function(){return this.selected});t(i.optionToData(e))}:"data"in r&&(r.initSelection=r.initSelection||function(e,t){var n=e.val(),a=null;r.query({matcher:function(e,t,i){var s=b(n,r.id(i));return s&&(a=i),s},callback:m.isFunction(t)?function(){t(a)}:m.noop})}),r},getPlaceholder:function(){return this.select&&this.getPlaceholderOption()===g?g:this.parent.getPlaceholder.apply(this,arguments)},setPlaceholder:function(){var e=this.getPlaceholder();this.isPlaceholderOptionSelected()&&e!==g&&(this.select&&this.getPlaceholderOption()===g||(this.selection.find(".select2-chosen").html(this.opts.escapeMarkup(e)),this.selection.addClass("select2-default"),this.container.removeClass("select2-allowclear")))},postprocessResults:function(e,t,i){var s=0,n=this;this.findHighlightableChoices().each2(function(e,t){if(b(n.id(t.data("select2-data")),n.opts.element.val()))return s=e,!1}),!1!==i&&(!0===t&&0<=s?this.highlight(s):this.highlight(0)),!0!==t||0<=(t=this.opts.minimumResultsForSearch)&&this.showSearch(function i(e){var s=0;return m.each(e,function(e,t){t.children?s+=i(t.children):s++}),s}(e.results)>=t)},showSearch:function(e){this.showSearchInput!==e&&(this.showSearchInput=e,this.dropdown.find(".select2-search").toggleClass("select2-search-hidden",!e),this.dropdown.find(".select2-search").toggleClass("select2-offscreen",!e),m(this.dropdown,this.container).toggleClass("select2-with-searchbox",e))},onSelect:function(e,t){var i,s;this.triggerSelect(e)&&(i=this.opts.element.val(),s=this.data(),this.opts.element.val(this.id(e)),this.updateSelection(e),this.opts.element.trigger({type:"select2-selected",val:this.id(e),choice:e}),this.nextSearchTerm=this.opts.nextSearchTerm(e,this.search.val()),this.close(),t&&t.noFocus||this.focusser.focus(),b(i,this.id(e))||this.triggerChange({added:e,removed:s}))},updateSelection:function(e){var t,i=this.selection.find(".select2-chosen");this.selection.data("select2-data",e),i.empty(),(t=null!==e?this.opts.formatSelection(e,i,this.opts.escapeMarkup):t)!==g&&i.append(t),(e=this.opts.formatSelectionCssClass(e,i))!==g&&i.addClass(e),this.selection.removeClass("select2-default"),this.opts.allowClear&&this.getPlaceholder()!==g&&this.container.addClass("select2-allowclear")},val:function(){var e,t=!1,i=null,s=this,n=this.data();if(0===arguments.length)return this.opts.element.val();if(e=arguments[0],1<arguments.length&&(t=arguments[1]),this.select)this.select.val(e).find("option").filter(function(){return this.selected}).each2(function(e,t){return i=s.optionToData(t),!1}),this.updateSelection(i),this.setPlaceholder(),t&&this.triggerChange({added:i,removed:n});else if(e||0===e){if(this.opts.initSelection===g)throw new Error("cannot call val() if initSelection() is not defined");this.opts.element.val(e),this.opts.initSelection(this.opts.element,function(e){s.opts.element.val(e?s.id(e):""),s.updateSelection(e),s.setPlaceholder(),t&&s.triggerChange({added:e,removed:n})})}else this.clear(t)},clearSearch:function(){this.search.val(""),this.focusser.val("")},data:function(e){var t,i=!1;if(0===arguments.length)return t=(t=this.selection.data("select2-data"))==g?null:t;1<arguments.length&&(i=arguments[1]),e?(t=this.data(),this.opts.element.val(e?this.id(e):""),this.updateSelection(e),i&&this.triggerChange({added:e,removed:t})):this.clear(i)}}),c=I(t,{createContainer:function(){return m(document.createElement("div")).attr({class:"select2-container select2-container-multi"}).html(["<ul class='select2-choices'>"," <li class='select2-search-field'>"," <input type='text' autocomplete='off' autocorrect='off' autocapitalize='off' spellcheck='false' class='select2-input'>"," </li>","</ul>","<div class='select2-drop select2-drop-multi select2-display-none'>"," <ul class='select2-results'>"," </ul>","</div>"].join(""))},prepareOpts:function(){var l=this.parent.prepareOpts.apply(this,arguments),s=this;return"select"===l.element.get(0).tagName.toLowerCase()?l.initSelection=function(e,t){var i=[];e.find("option").filter(function(){return this.selected}).each2(function(e,t){i.push(s.optionToData(t))}),t(i)}:"data"in l&&(l.initSelection=l.initSelection||function(e,a){var r=v(e.val(),l.separator),o=[];l.query({matcher:function(e,t,i){var s=m.grep(r,function(e){return b(e,l.id(i))}).length;return s&&o.push(i),s},callback:m.isFunction(a)?function(){for(var e=[],t=0;t<r.length;t++)for(var i=r[t],s=0;s<o.length;s++){var n=o[s];if(b(i,l.id(n))){e.push(n),o.splice(s,1);break}}a(e)}:m.noop})}),l},selectChoice:function(e){var t=this.container.find(".select2-search-choice-focus");t.length&&e&&e[0]==t[0]||(t.length&&this.opts.element.trigger("choice-deselected",t),t.removeClass("select2-search-choice-focus"),e&&e.length&&(this.close(),e.addClass("select2-search-choice-focus"),this.opts.element.trigger("choice-selected",e)))},destroy:function(){m("label[for='"+this.search.attr("id")+"']").attr("for",this.opts.element.attr("id")),this.parent.destroy.apply(this,arguments)},initContainer:function(){var l,e=".select2-choices";this.searchContainer=this.container.find(".select2-search-field"),this.selection=l=this.container.find(e);var t=this;this.selection.on("click",".select2-search-choice:not(.select2-locked)",function(e){t.search[0].focus(),t.selectChoice(m(this))}),this.search.attr("id","s2id_autogen"+d()),m("label[for='"+this.opts.element.attr("id")+"']").attr("for",this.search.attr("id")),this.search.on("input paste",this.bind(function(){this.isInterfaceEnabled()&&(this.opened()||this.open())})),this.search.attr("tabindex",this.elementTabIndex),this.keydowns=0,this.search.on("keydown",this.bind(function(e){if(this.isInterfaceEnabled()){++this.keydowns;var t,i,s,n=l.find(".select2-search-choice-focus"),a=n.prev(".select2-search-choice:not(.select2-locked)"),r=n.next(".select2-search-choice:not(.select2-locked)"),s=(t=this.search,o=s=0,"selectionStart"in(t=m(t)[0])?(s=t.selectionStart,o=t.selectionEnd-s):"selection"in document&&(t.focus(),i=document.selection.createRange(),o=document.selection.createRange().text.length,i.moveStart("character",-t.value.length),s=i.text.length-o),{offset:s,length:o});if(n.length&&(e.which==h.LEFT||e.which==h.RIGHT||e.which==h.BACKSPACE||e.which==h.DELETE||e.which==h.ENTER)){var o=n;return e.which==h.LEFT&&a.length?o=a:e.which==h.RIGHT?o=r.length?r:null:e.which===h.BACKSPACE?(this.unselect(n.first()),this.search.width(10),o=a.length?a:r):e.which==h.DELETE?(this.unselect(n.first()),this.search.width(10),o=r.length?r:null):e.which==h.ENTER&&(o=null),this.selectChoice(o),x(e),void(o&&o.length||this.open())}if((e.which===h.BACKSPACE&&1==this.keydowns||e.which==h.LEFT)&&0==s.offset&&!s.length)return this.selectChoice(l.find(".select2-search-choice:not(.select2-locked)").last()),void x(e);if(this.selectChoice(null),this.opened())switch(e.which){case h.UP:case h.DOWN:return this.moveHighlight(e.which===h.UP?-1:1),void x(e);case h.ENTER:return this.selectHighlighted(),void x(e);case h.TAB:return this.selectHighlighted({noFocus:!0}),void this.close();case h.ESC:return this.cancel(e),void x(e)}if(e.which!==h.TAB&&!h.isControl(e)&&!h.isFunctionKey(e)&&e.which!==h.BACKSPACE&&e.which!==h.ESC){if(e.which===h.ENTER){if(!1===this.opts.openOnEnter)return;if(e.altKey||e.ctrlKey||e.shiftKey||e.metaKey)return}this.open(),e.which!==h.PAGE_UP&&e.which!==h.PAGE_DOWN||x(e),e.which===h.ENTER&&x(e)}}})),this.search.on("keyup",this.bind(function(e){this.keydowns=0,this.resizeSearch()})),this.search.on("blur",this.bind(function(e){this.container.removeClass("select2-container-active"),this.search.removeClass("select2-focused"),this.selectChoice(null),this.opened()||this.clearSearch(),e.stopImmediatePropagation(),this.opts.element.trigger(m.Event("select2-blur"))})),this.container.on("click",e,this.bind(function(e){this.isInterfaceEnabled()&&(0<m(e.target).closest(".select2-search-choice").length||(this.selectChoice(null),this.clearPlaceholder(),this.container.hasClass("select2-container-active")||this.opts.element.trigger(m.Event("select2-focus")),this.open(),this.focusSearch(),e.preventDefault()))})),this.container.on("focus",e,this.bind(function(){this.isInterfaceEnabled()&&(this.container.hasClass("select2-container-active")||this.opts.element.trigger(m.Event("select2-focus")),this.container.addClass("select2-container-active"),this.dropdown.addClass("select2-drop-active"),this.clearPlaceholder())})),this.initContainerWidth(),this.opts.element.addClass("select2-offscreen"),this.clearSearch()},enableInterface:function(){this.parent.enableInterface.apply(this,arguments)&&this.search.prop("disabled",!this.isInterfaceEnabled())},initSelection:function(){var t;""===this.opts.element.val()&&""===this.opts.element.text()&&(this.updateSelection([]),this.close(),this.clearSearch()),!this.select&&""===this.opts.element.val()||(t=this).opts.initSelection.call(null,this.opts.element,function(e){e!==g&&null!==e&&(t.updateSelection(e),t.close(),t.clearSearch())})},clearSearch:function(){var e=this.getPlaceholder(),t=this.getMaxSearchWidth();e!==g&&0===this.getVal().length&&!1===this.search.hasClass("select2-focused")?(this.search.val(e).addClass("select2-default"),this.search.width(0<t?t:this.container.css("width"))):this.search.val("").width(10)},clearPlaceholder:function(){this.search.hasClass("select2-default")&&this.search.val("").removeClass("select2-default")},opening:function(){this.clearPlaceholder(),this.resizeSearch(),this.parent.opening.apply(this,arguments),this.focusSearch(),this.updateResults(!0),this.search.focus(),this.opts.element.trigger(m.Event("select2-open"))},close:function(){this.opened()&&this.parent.close.apply(this,arguments)},focus:function(){this.close(),this.search.focus()},isFocused:function(){return this.search.hasClass("select2-focused")},updateSelection:function(e){var t=[],i=[],s=this;m(e).each(function(){f(s.id(this),t)<0&&(t.push(s.id(this)),i.push(this))}),e=i,this.selection.find(".select2-search-choice").remove(),m(e).each(function(){s.addSelectedChoice(this)}),s.postprocessResults()},tokenize:function(){var e=this.search.val();null!=(e=this.opts.tokenizer.call(this,e,this.data(),this.bind(this.onSelect),this.opts))&&e!=g&&(this.search.val(e),0<e.length&&this.open())},onSelect:function(e,t){this.triggerSelect(e)&&(this.addSelectedChoice(e),this.opts.element.trigger({type:"selected",val:this.id(e),choice:e}),!this.select&&this.opts.closeOnSelect||this.postprocessResults(e,!1,!0===this.opts.closeOnSelect),!this.opts.closeOnSelect&&0<this.countSelectableResults()?(this.search.width(10),this.resizeSearch(),0<this.getMaximumSelectionSize()&&this.val().length>=this.getMaximumSelectionSize()&&this.updateResults(!0),this.positionDropdown()):(this.close(),this.search.width(10)),this.triggerChange({added:e}),t&&t.noFocus||this.focusSearch())},cancel:function(){this.close(),this.focusSearch()},addSelectedChoice:function(e){var t=!e.locked,i=m("<li class='select2-search-choice'> <div></div> <a href='#' class='select2-search-choice-close' tabindex='-1'></a></li>"),s=m("<li class='select2-search-choice select2-locked'><div></div></li>"),n=t?i:s,a=this.id(e),i=this.getVal(),s=this.opts.formatSelection(e,n.find("div"),this.opts.escapeMarkup);s!=g&&n.find("div").replaceWith("<div>"+s+"</div>"),(s=this.opts.formatSelectionCssClass(e,n.find("div")))!=g&&n.addClass(s),t&&n.find(".select2-search-choice-close").on("mousedown",x).on("click dblclick",this.bind(function(e){this.isInterfaceEnabled()&&(m(e.target).closest(".select2-search-choice").fadeOut("fast",this.bind(function(){this.unselect(m(e.target)),this.selection.find(".select2-search-choice-focus").removeClass("select2-search-choice-focus"),this.close(),this.focusSearch()})).dequeue(),x(e))})).on("focus",this.bind(function(){this.isInterfaceEnabled()&&(this.container.addClass("select2-container-active"),this.dropdown.addClass("select2-drop-active"))})),n.data("select2-data",e),n.insertBefore(this.searchContainer),i.push(a),this.setVal(i)},unselect:function(e){var t,i,s=this.getVal();if(0===(e=e.closest(".select2-search-choice")).length)throw"Invalid argument: "+e+". Must be .select2-search-choice";if(t=e.data("select2-data")){for(;0<=(i=f(this.id(t),s));)s.splice(i,1),this.setVal(s),this.select&&this.postprocessResults();var n=m.Event("select2-removing");n.val=this.id(t),n.choice=t,this.opts.element.trigger(n),n.isDefaultPrevented()||(e.remove(),this.opts.element.trigger({type:"select2-removed",val:this.id(t),choice:t}),this.triggerChange({removed:t}))}},postprocessResults:function(e,t,i){var s=this.getVal(),n=this.results.find(".select2-result"),a=this.results.find(".select2-result-with-children"),r=this;n.each2(function(e,t){0<=f(r.id(t.data("select2-data")),s)&&(t.addClass("select2-selected"),t.find(".select2-result-selectable").addClass("select2-selected"))}),a.each2(function(e,t){t.is(".select2-result-selectable")||0!==t.find(".select2-result-selectable:not(.select2-selected)").length||t.addClass("select2-selected")}),-1==this.highlight()&&!1!==i&&r.highlight(0),!this.opts.createSearchChoice&&0<!n.filter(".select2-result:not(.select2-selected)").length&&(!e||e&&!e.more&&0===this.results.find(".select2-no-results").length)&&R(r.opts.formatNoMatches,"formatNoMatches")&&this.results.append("<li class='select2-no-results'>"+r.opts.formatNoMatches(r.search.val())+"</li>")},getMaxSearchWidth:function(){return this.selection.width()-p(this.search)},resizeSearch:function(){var e,t,i,s=p(this.search);t=this.search,a||(i=t[0].currentStyle||window.getComputedStyle(t[0],null),(a=m(document.createElement("div")).css({position:"absolute",left:"-10000px",top:"-10000px",display:"none",fontSize:i.fontSize,fontFamily:i.fontFamily,fontStyle:i.fontStyle,fontWeight:i.fontWeight,letterSpacing:i.letterSpacing,textTransform:i.textTransform,whiteSpace:"nowrap"})).attr("class","select2-sizer"),m("body").append(a)),a.text(t.val()),e=a.width()+10,i=this.search.offset().left,(i=(i=(i=(t=this.selection.width())-(i-this.selection.offset().left)-s)<e?t-s:i)<40?t-s:i)<=0&&(i=e),this.search.width(Math.floor(i))},getVal:function(){var e;return this.select?null===(e=this.select.val())?[]:e:v(e=this.opts.element.val(),this.opts.separator)},setVal:function(e){var t;this.select?this.select.val(e):(t=[],m(e).each(function(){f(this,t)<0&&t.push(this)}),this.opts.element.val(0===t.length?"":t.join(this.opts.separator)))},buildChangeDetails:function(e,t){for(var t=t.slice(0),e=e.slice(0),i=0;i<t.length;i++)for(var s=0;s<e.length;s++)b(this.opts.id(t[i]),this.opts.id(e[s]))&&(t.splice(i,1),0<i&&i--,e.splice(s,1),s--);return{added:t,removed:e}},val:function(e,i){var s,n=this;if(0===arguments.length)return this.getVal();if((s=this.data()).length||(s=[]),!e&&0!==e)return this.opts.element.val(""),this.updateSelection([]),this.clearSearch(),void(i&&this.triggerChange({added:this.data(),removed:s}));if(this.setVal(e),this.select)this.opts.initSelection(this.select,this.bind(this.updateSelection)),i&&this.triggerChange(this.buildChangeDetails(s,this.data()));else{if(this.opts.initSelection===g)throw new Error("val() cannot be called if initSelection() is not defined");this.opts.initSelection(this.opts.element,function(e){var t=m.map(e,n.id);n.setVal(t),n.updateSelection(e),n.clearSearch(),i&&n.triggerChange(n.buildChangeDetails(s,n.data()))})}this.clearSearch()},onSortStart:function(){if(this.select)throw new Error("Sorting of elements is not supported when attached to <select>. Attach to <input type='hidden'/> instead.");this.search.width(0),this.searchContainer.hide()},onSortEnd:function(){var e=[],t=this;this.searchContainer.show(),this.searchContainer.appendTo(this.searchContainer.parent()),this.resizeSearch(),this.selection.find(".select2-search-choice").each(function(){e.push(t.opts.id(m(this).data("select2-data")))}),this.setVal(e),this.triggerChange()},data:function(e,t){var i,s,n=this;if(0===arguments.length)return this.selection.find(".select2-search-choice").map(function(){return m(this).data("select2-data")}).get();s=this.data(),i=m.map(e=e||[],function(e){return n.opts.id(e)}),this.setVal(i),this.updateSelection(e),this.clearSearch(),t&&this.triggerChange(this.buildChangeDetails(s,this.data()))}}),m.fn.select2=function(){var e,t,i,s=Array.prototype.slice.call(arguments,0),n=["val","destroy","opened","open","close","focus","isFocused","container","dropdown","onSortStart","onSortEnd","enable","disable","readonly","positionDropdown","data","search"],a=["opened","isFocused","container","dropdown"],r=["val","data"],o={search:"externalSearch"};return this.each(function(){if(0===s.length||"object"==typeof s[0])(e=0===s.length?{}:m.extend({},s[0])).element=m(this),"select"===e.element.get(0).tagName.toLowerCase()?i=e.element.prop("multiple"):(i=e.multiple||!1,"tags"in e&&(e.multiple=i=!0)),(i=new(i?c:l)).init(e);else{if("string"!=typeof s[0])throw"Invalid arguments to select2 plugin: "+s;if(f(s[0],n)<0)throw"Unknown method: "+s[0];if(t=g,(i=m(this).data("select2"))!==g)return e=s[0],t="container"===e?i.container:"dropdown"===e?i.dropdown:i[e=o[e]?o[e]:e].apply(i,s.slice(1)),!(0<=f(s[0],a)||f(s[0],r)&&1==s.length)&&void 0}}),t===g?this:t},m.fn.select2.defaults={width:"copy",loadMorePadding:0,closeOnSelect:!0,openOnEnter:!0,containerCss:{},dropdownCss:{},containerCssClass:"",dropdownCssClass:"",formatResult:function(e,t,i,s){var n=[];return S(e.text,i.term,n,s),n.join("")},formatSelection:function(e,t,i){return e?i(e.text):g},sortResults:function(e,t,i){return e},formatResultCssClass:function(e){return g},formatSelectionCssClass:function(e,t){return g},formatNoMatches:function(){return"No matches found"},formatInputTooShort:function(e,t){e=t-e.length;return"Please enter "+e+" more character"+(1==e?"":"s")},formatInputTooLong:function(e,t){t=e.length-t;return"Please delete "+t+" character"+(1==t?"":"s")},formatSelectionTooBig:function(e){return"You can only select "+e+" item"+(1==e?"":"s")},formatLoadMore:function(e){return"Loading more results..."},formatSearching:function(){return"Searching..."},minimumResultsForSearch:0,minimumInputLength:0,maximumInputLength:null,maximumSelectionSize:0,id:function(e){return e.id},matcher:function(e,t){return 0<=o(""+t).toUpperCase().indexOf(o(""+e).toUpperCase())},separator:",",tokenSeparators:[],tokenizer:function(e,t,i,s){var n,a,r,o,l,c=e,d=!1;if(!s.createSearchChoice||!s.tokenSeparators||s.tokenSeparators.length<1)return g;for(;;){for(a=-1,r=0,o=s.tokenSeparators.length;r<o&&(l=s.tokenSeparators[r],!(0<=(a=e.indexOf(l))));r++);if(a<0)break;if(n=e.substring(0,a),e=e.substring(a+l.length),0<n.length&&(n=s.createSearchChoice.call(this,n,t))!==g&&null!==n&&s.id(n)!==g&&null!==s.id(n)){for(d=!1,r=0,o=t.length;r<o;r++)if(b(s.id(n),s.id(t[r]))){d=!0;break}d||i(n)}}return c!==e?e:void 0},escapeMarkup:s,blurOnChange:!1,selectOnBlur:!1,adaptContainerCssClass:function(e){return e},adaptDropdownCssClass:function(e){return null},nextSearchTerm:function(e,t){return g}},m.fn.select2.ajaxDefaults={transport:m.ajax,params:{type:"GET",cache:!1,dataType:"json"}},window.Select2={query:{ajax:E,local:A,tags:T},util:{debounce:y,markMatch:S,escapeMarkup:s,stripDiacritics:o},class:{abstract:t,single:l,multi:c}}),i}.call(this),("undefined"==typeof window?global:window).__80baa2484dadc4ad4c61e3508d74abf7=function(){var e,t={},i=__fb409c432b53d81bad1e174061f6886c,s=(e=i)&&e.__esModule?e:{default:e};__8d41b5456e4c15b2ede9f1077d5c1a84;var n=s.default.fn.select2,a="aui-select2-container",r="aui-select2-drop aui-dropdown2 aui-style-default";return s.default.fn.auiSelect2=function(e){var t,i;return s.default.isPlainObject(e)?(i=(t=s.default.extend({},e)).hasAvatar?" aui-has-avatar":"",t.containerCssClass=a+i+(t.containerCssClass?" "+t.containerCssClass:""),t.dropdownCssClass=r+i+(t.dropdownCssClass?" "+t.dropdownCssClass:""),(i=Array.prototype.slice.call(arguments,1)).unshift(t)):i=arguments.length?arguments:[{containerCssClass:a,dropdownCssClass:r}],n.apply(this,i)},t}.call(this),("undefined"==typeof window?global:window).__bf08bcb2bb81b62b4f822bf9d9261047=function(){var e={};return function(e){for(var s=0,t=["webkit","moz"],i=e.requestAnimationFrame,n=e.cancelAnimationFrame,a=t.length;0<=--a&&!i;)i=e[t[a]+"RequestAnimationFrame"],n=e[t[a]+"CancelAnimationFrame"];i&&n||(i=function(e){var t=Date.now(),i=Math.max(s+16,t);return setTimeout(function(){e(s=i)},i-t)},n=clearTimeout),e.requestAnimationFrame=i,e.cancelAnimationFrame=n}(window),e}.call(this),("undefined"==typeof window?global:window).__ff0c35a43eba5536672277979aa4db1c=function(){var e={exports:{}},t=e.exports;Object.defineProperty(t,"__esModule",{value:!0});var i=window.DocumentTouch,i="ontouchstart"in window||i&&document instanceof i;return t.default=i,e.exports=t.default,e.exports}.call(this),("undefined"==typeof window?global:window).__fa5d86e244b58dcaa0398b06a803c47e=function(){var e={exports:{}},t=e.exports;return Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return"value"in e||e.isContentEditable},e.exports=t.default,e.exports}.call(this),("undefined"==typeof window?global:window).__188428585fcd30430035fb888b449914=function(){var e={exports:{}},t=e.exports;return Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if(window.matchMedia)return window.matchMedia(e).matches;var t=document.createElement("style");t.type="text/css",t.id="testMedia",t.innerText="@media "+e+" { #testMedia { width: 1px; } }",document.head.appendChild(t);e="1px"===window.getComputedStyle(t,null).width;return t.parentNode.removeChild(t),e},e.exports=t.default,e.exports}.call(this),("undefined"==typeof window?global:window).__e1b9d3d45790dd062534d0d146377495=function(){var e={exports:{}},t=e.exports;Object.defineProperty(t,"__esModule",{value:!0});var o=a(__fb409c432b53d81bad1e174061f6886c);__7691a83108a01166ebc9ffcd1c8b13c3,__bf08bcb2bb81b62b4f822bf9d9261047,__51474667125a5bfeb6e78ef22f02f983;var l=a(__8eaaed3de9867335cd308bc070dffe60),i=function(e){{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t.default=e,t}}(__dc3494b595b6cf86534cbde834ab95b6),s=a(__a96071e28d103a38ba4dff141c560d4f),c=a(__ff0c35a43eba5536672277979aa4db1c),d=a(__fa5d86e244b58dcaa0398b06a803c47e),u=a(__f64d3cd498337ca9bb808ad279537d9c),h=a(__188428585fcd30430035fb888b449914),f=a(__925085afe37c9c6789b788cc0b7c856e),p=a(__7bccc810f667bf7389679255eb7443b5),n=a(__e50024e98902e443b4a4d9886bd9a31e);function a(e){return e&&e.__esModule?e:{default:e}}var r=void 0!==document.documentElement.style.transition||void 0!==document.documentElement.style.webkitTransition;function g(e){return e.offset().top}function b(e){var a,t,i,s,n;function r(e){return e.keyCode===u.default.TAB&&!e.shiftKey&&!e.altKey}this.$el=(0,o.default)(e),this.$el.length&&(this.$body=(0,o.default)("body"),this.$wrapper=this.$el.children(".aui-sidebar-wrapper"),this.$body.addClass("aui-page-sidebar"),this._previousScrollTop=null,this._previousViewportHeight=null,this._previousViewportWidth=null,this._previousOffsetTop=null,this.submenus=new w,a=this,(0,o.default)(".aui-sidebar").length&&(function(t){t.$el.on("mouseenter mouseleave click focus",t.collapsedTriggersSelector,function(e){e=(0,o.default)(e.target);E(t,e)})}(a),c.default&&(0,h.default)("only screen and (max-device-width:1024px)")&&(0,o.default)("body").addClass("aui-page-sidebar-touch"),i=function(){null===t&&(t=requestAnimationFrame(function(){a.reflow(),t=null}))},(t=null,o.default)(window).on("scroll resize",i),i(),a.isAnimated()&&a.$el.on("transitionend webkitTransitionEnd",function(){a.$el.trigger(o.default.Event(v+(a.isCollapsed()?"collapse-end":"expand-end")))}),a.$el.on("click",".aui-sidebar-toggle",function(e){e.preventDefault(),a.toggle()}),(0,o.default)(".aui-page-panel").click(function(){!a.isCollapsed()&&a.isViewportNarrow()&&a.collapse()}),s=function(e){(e=e).which!==u.default.LEFT_SQUARE_BRACKET||e.shiftKey||e.ctrlKey||e.metaKey||(0,d.default)(e.target)||a.toggle()},(0,o.default)(document).on("keypress",s),a._remove=function(){this._removeAllTooltips(),(0,o.default)(this.inlineDialogSelector).remove(),this.$el.off(),this.$el.remove(),(0,o.default)(document).off("keypress",s),(0,o.default)(window).off("scroll resize",i)},a.$el.on("touchend",function(e){a.isCollapsed()&&(a.expand(),e.preventDefault())}),a.$el.on("mouseenter focus",a.collapsedTriggersSelector,function(){var e;a.isCollapsed()&&(C(e=(0,o.default)(this))||R(e))}),a.$el.on("click blur mouseleave",a.collapsedTriggersSelector,function(){a.isCollapsed()&&O((0,o.default)(this))}),a.$el.on("mouseenter focus",a.toggleSelector,function(){var e=(0,o.default)(this);a.isCollapsed()?e.data("tooltip",AJS.I18n.getText("aui.sidebar.expand.tooltip")):e.data("tooltip",AJS.I18n.getText("aui.sidebar.collapse.tooltip")),R(e)}),a.$el.on("click blur mouseleave",a.toggleSelector,function(){O((0,o.default)(this))}),a.$el.on("keydown",a.collapsedTriggersSelector,function(e){var i,t,s,n;!a.isCollapsed()||(t=x(i=e.target))&&(s=(0,o.default)(t),r(e)&&t.open&&(e.preventDefault(),(n=s).attr("persistent",""),n.find(":aui-tabbable").first().focus(),setTimeout(function(){n.removeAttr("persistent")},100),s.on("keydown",function(e){var t;((t=e).keyCode===u.default.TAB&&t.shiftKey&&e.target===s.find(":aui-tabbable")[0]||r(e)&&e.target===s.find(":aui-tabbable").last()[0])&&(i.focus(),(0,o.default)(this).off("keydown"),S())})))})),n=this,(0,o.default)(n.collapsedTriggersSelector).each(function(){var e=(0,o.default)(this);E(n,e)}))}var v="_aui-internal-sidebar-";function m(e){return o.default.map(e.split(" "),function(e){return v+e}).join(" ")}function _(){return document.querySelectorAll(b.prototype.inlineDialogSelector)}function w(){this.inlineDialog=null}function y(e){return e.is("a")?e.next(".aui-nav"):e.children(".aui-nav, hr")}function x(e){e=e.getAttribute("aria-controls");return document.getElementById(e)}function C(e){return 0!==y(e).length}function S(){var e=_();Array.prototype.forEach.call(e,function(e){e.open=!1})}function E(e,t){if(!t.data("_aui-sidebar-submenu-constructed")&&(t.data("_aui-sidebar-submenu-constructed",!0),C(t))){var i,s,n,a=document.createElement("aui-inline-dialog"),r=(0,p.default)("sidebar-submenu");return t.attr("aria-controls",r),t.attr("data-aui-trigger",""),f.default.init(t),a.setAttribute("id",r),a.setAttribute("alignment","right top"),a.setAttribute("aria-hidden","true"),e.isCollapsed()&&a.setAttribute("responds-to","hover"),(0,o.default)(a).addClass(b.prototype.inlineDialogClass),document.body.appendChild(a),f.default.init(a),i=e,s=t,(n=a).addEventListener("aui-layer-show",function(e){i.isCollapsed()?function(e,t){e.addClass("active"),t.innerHTML=A;var i=(e.is("a")?e:e.children(".aui-nav-heading")).text(),t=(0,o.default)(t).find(".aui-navgroup-inner");t.children(".aui-nav-heading").attr("title",i).children("strong").text(i),function(e){return(e=(0,l.default)(e)).hasClass("aui-expander-content")&&(e.find(".aui-expander-cutoff").remove(),e.removeClass("aui-expander-content")),e}(y(e)).appendTo(t)}(s,n):e.preventDefault()}),n.addEventListener("aui-layer-hide",function(){s.removeClass("active")}),a}}b.prototype.on=function(){var e=arguments[0],t=Array.prototype.slice.call(arguments,1),e=m(e);return this.$el.on.apply(this.$el,[e].concat(t)),this},b.prototype.off=function(){var e=arguments[0],t=Array.prototype.slice.call(arguments,1),e=m(e);return this.$el.off.apply(this.$el,[e].concat(t)),this},b.prototype.setHeight=function(e,t,i){e=Math.max(0,i-e);return this.$wrapper.height(t-e),this},b.prototype.setPosition=i.fn(b.prototype.setTopPosition=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:window.pageYOffset;return this.$wrapper.toggleClass("aui-is-docked",e>g(this.$el)),this},"Sidebar.setPosition",{removeInVersion:"8.0.0",sinceVersion:"7.6.1",alternativeName:"Sidebar.setTopPosition"}),b.prototype.setLeftPosition=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:window.pageXOffset;return this.$wrapper.hasClass("aui-is-docked")&&this.$wrapper.css({left:-e}),this},b.prototype.setCollapsedState=function(t){var e={collapsed:{},expanded:{}};e.collapsed.narrow={narrow:o.default.noop,wide:function(e){e._expand(t,!0)}},e.collapsed.wide={narrow:o.default.noop,wide:o.default.noop},e.expanded.narrow={narrow:o.default.noop,wide:function(e){e.$body.removeClass("aui-sidebar-collapsed"),e.$el.removeClass("aui-sidebar-fly-out")}},e.expanded.wide={narrow:function(e){e._collapse(!0)},wide:o.default.noop};var i=this.isCollapsed()?"collapsed":"expanded",s=this.isViewportNarrow(this._previousViewportWidth)?"narrow":"wide",n=this.isViewportNarrow(t)?"narrow":"wide";return e[i][s][n](this),this},b.prototype._collapse=function(e){if(this.isCollapsed())return this;var t=o.default.Event(v+"collapse-start",{isResponsive:e});return this.$el.trigger(t),t.isDefaultPrevented()||(this.$body.addClass("aui-sidebar-collapsed"),this.$el.attr("aria-expanded","false"),this.$el.removeClass("aui-sidebar-fly-out"),this.$el.find(this.submenuTriggersSelector).attr("tabindex",0),(0,o.default)(this.inlineDialogSelector).attr("responds-to","hover"),this.isAnimated()||this.$el.trigger(o.default.Event(v+"collapse-end",{isResponsive:e}))),this},b.prototype.collapse=function(){return this._collapse(!1)},b.prototype._expand=function(e,t){var i=o.default.Event(v+"expand-start",{isResponsive:t});if(this.$el.trigger(i),i.isDefaultPrevented())return this;e=this.isViewportNarrow(e);return this.$el.attr("aria-expanded","true"),this.$body.toggleClass("aui-sidebar-collapsed",e),this.$el.toggleClass("aui-sidebar-fly-out",e),this.$el.find(this.submenuTriggersSelector).removeAttr("tabindex"),(0,o.default)(this.inlineDialogSelector).removeAttr("responds-to"),this.isAnimated()||this.$el.trigger(o.default.Event(v+"expand-end",{isResponsive:t})),this},b.prototype.expand=function(){return this.isCollapsed()&&this._expand(this._previousViewportWidth,!1),this},b.prototype.isAnimated=function(){return r&&this.$el.hasClass("aui-is-animated")},b.prototype.isCollapsed=function(){return"false"===this.$el.attr("aria-expanded")},b.prototype.isViewportNarrow=function(e){return(e=void 0===e?this._previousViewportWidth:e)<1240},b.prototype._removeAllTooltips=function(){(0,o.default)(this.tooltipSelector).remove()},b.prototype.responsiveReflow=function(e,t){e?!this.isCollapsed()&&this.isViewportNarrow(t)&&((e=this.isAnimated())&&this.$el.removeClass("aui-is-animated"),this.collapse(),e&&(this.$el[0].offsetHeight,this.$el.addClass("aui-is-animated"))):t!==this._previousViewportWidth&&this.setCollapsedState(t)},b.prototype.reflow=function(){var e,t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:window.pageYOffset,i=1<arguments.length&&void 0!==arguments[1]?arguments[1]:document.documentElement.clientHeight,s=2<arguments.length&&void 0!==arguments[2]?arguments[2]:window.innerWidth,n=3<arguments.length&&void 0!==arguments[3]?arguments[3]:document.documentElement.scrollHeight,a=4<arguments.length&&void 0!==arguments[4]?arguments[4]:window.pageXOffset,r=g(this.$el),o=null===this._previousViewportWidth;return t===this._previousScrollTop&&i===this._previousViewportHeight&&r===this._previousOffsetTop||(this.isCollapsed()&&!o&&t!==this._previousScrollTop&&(S(),this._removeAllTooltips()),e=this.$body.hasClass("aui-page-sidebar-touch"),n=t!==this._previousScrollTop&&(t<0||n<t+i),e||!o&&n||(this.setHeight(t,i,r),this.setTopPosition(t))),a!==this._previousScrollLeft&&this.setLeftPosition(a),"false"!==this.$el.attr("data-aui-responsive")?this.responsiveReflow(o,s):(o=!this.isCollapsed()&&this.isViewportNarrow(s),this.$el.toggleClass("aui-sidebar-fly-out",o)),this._previousScrollTop=t,this._previousViewportHeight=i,this._previousViewportWidth=s,this._previousOffsetTop=r,this._previousScrollLeft=a,this},b.prototype.toggle=function(){return this.isCollapsed()?(this.expand(),this._removeAllTooltips()):this.collapse(),this},b.prototype.collapsedTriggersSelector=[b.prototype.submenuTriggersSelector=".aui-sidebar-group:not(.aui-sidebar-group-tier-one)",".aui-sidebar-group.aui-sidebar-group-tier-one > .aui-nav > li > a",".aui-sidebar-footer > .aui-sidebar-settings-button"].join(", "),b.prototype.toggleSelector=".aui-sidebar-footer > .aui-sidebar-toggle",b.prototype.tooltipSelector=".aui-sidebar-section-tooltip",b.prototype.inlineDialogSelector="."+(b.prototype.inlineDialogClass="aui-sidebar-submenu-dialog"),w.prototype.submenu=function(e){return $(),y(e)},w.prototype.hasSubmenu=function(e){return $(),C(e)},w.prototype.submenuHeadingHeight=function(){return $(),34},w.prototype.isShowing=function(){return $(),b.prototype.isSubmenuVisible()},w.prototype.show=function(e,t){$(),x(t).open=!0},w.prototype.hide=function(){$(),S()},w.prototype.inlineDialogShowHandler=function(){$()},w.prototype.inlineDialogHideHandler=function(){$()},w.prototype.moveSubmenuToInlineDialog=function(){$()},w.prototype.restoreSubmenu=function(){$()},b.prototype.getVisibleSubmenus=function(){return Array.prototype.filter.call(_(),function(e){return e.open})},b.prototype.isSubmenuVisible=function(){return 0<this.getVisibleSubmenus().length};var A='<div class="aui-inline-dialog-contents"><div class="aui-sidebar-submenu" ><div class="aui-navgroup aui-navgroup-vertical"><div class="aui-navgroup-inner"><div class="aui-nav-heading"><strong></strong></div></div></div></div></div>';var T={trigger:"manual",gravity:"w",className:"aui-sidebar-section-tooltip",title:function(){var e=(0,o.default)(this);return e.is("a")?e.attr("title")||e.find(".aui-nav-item-label").text()||e.data("tooltip"):e.children(".aui-nav").attr("title")||e.children(".aui-nav-heading").text()}};function R(e){e.tipsy(T).tipsy("show");e=e.data("tipsy")&&e.data("tipsy").$tip;e&&e.css({opacity:""}).addClass("tooltip-shown")}function O(e){var t,i=e.data("tipsy")&&e.data("tipsy").$tip;i&&((t=i.css("transition-duration"))?(t=0<=t.indexOf("ms")?parseInt(t.substring(0,t.length-2),10):1e3*parseInt(t.substring(0,t.length-1),10),setTimeout(function(){i.hasClass("tooltip-shown")&&(e.tipsy("hide"),i.removeClass("tooltip-shown"))},t)):i.removeClass("tooltip-shown"))}var I=(0,n.default)("sidebar",b);(0,o.default)(function(){I(".aui-sidebar")});var $=i.getMessageLogger("Sidebar.submenus",{removeInVersion:"8.0",sinceVersion:"5.8"});return(0,s.default)("sidebar",I),t.default=I,e.exports=t.default,e.exports}.call(this),("undefined"==typeof window?global:window).__54d4ebbe21e9f4e8cfad07adf121ea31=function(){var e={};return function(T){T.extend({tablesorter:new function(){var v=this;function m(){var e=arguments[0],t=1<arguments.length?Array.prototype.slice.call(arguments):e;"undefined"!=typeof console&&void 0!==console.log?console[/error/i.test(e)?"error":/warn/i.test(e)?"warn":"log"](t):alert(t)}function _(e,t){m(e+" ("+((new Date).getTime()-t.getTime())+"ms)")}function b(e){for(var t in e)return;return 1}function w(e,t,i){if(!t)return"";var s=e.config,n=s.textExtraction||"",a="",a="basic"===n?T(t).attr(s.textAttribute)||t.textContent||t.innerText||T(t).text()||"":"function"==typeof n?n(t,e,i):"function"==typeof(n=v.getColumnData(e,n,i))?n(t,e,i):t.textContent||t.innerText||T(t).text()||"";return T.trim(a)}function g(e){var t,i,s,n,a,r,o,l,c,d,u=e.config,h=u.$tbodies=u.$table.children("tbody:not(."+u.cssInfoBlock+")"),f=0,p="",g=h.length;if(0===g)return u.debug&&m("Warning: *Empty table!* Not building a parser cache");for(u.debug&&(d=new Date,m("Detecting parsers for each column")),i={extractors:[],parsers:[]};f<g;){if((t=h[f].rows)[f])for(s=u.columns,n=0;n<s;n++)a=u.$headers.filter('[data-column="'+n+'"]:last'),r=v.getColumnData(e,u.headers,n),c=v.getParserById(v.getData(a,r,"extractor")),l=v.getParserById(v.getData(a,r,"sorter")),o="false"===v.getData(a,r,"parser"),u.empties[n]=v.getData(a,r,"empty")||u.emptyTo||(u.emptyToBottom?"bottom":"top"),u.strings[n]=v.getData(a,r,"string")||u.stringTo||"max",c=c||!1,l=(l=o?v.getParserById("no-parser"):l)||function(e,t,i,s){for(var n,a=v.parsers.length,r=!1,o="",l=!0;""===o&&l;)t[++i]?(o=w(e,r=t[i].cells[s],s),e.config.debug&&m("Checking if value was empty on row "+i+", column: "+s+': "'+o+'"')):l=!1;for(;0<=--a;)if((n=v.parsers[a])&&"text"!==n.id&&n.is&&n.is(o,e,r))return n;return v.getParserById("text")}(e,t,-1,n),u.debug&&(p+="column:"+n+"; extractor:"+c.id+"; parser:"+l.id+"; string:"+u.strings[n]+"; empty: "+u.empties[n]+"\n"),i.parsers[n]=l,i.extractors[n]=c;f+=i.parsers.length?g:1}u.debug&&(m(p||"No parsers detected"),_("Completed detecting parsers",d)),u.parsers=i.parsers,u.extractors=i.extractors}function u(e){var t,i,s,n,a,r,o,l,c,d,u,h,f=e.config,p=f.$table.children("tbody"),g=f.extractors,b=f.parsers;if(f.cache={},f.totalRows=0,!b)return f.debug&&m("Warning: *Empty table!* Not building a cache");for(f.debug&&(c=new Date),f.showProcessing&&v.isProcessing(e,!0),r=0;r<p.length;r++)if(h=[],t=f.cache[r]={normalized:[]},!p.eq(r).hasClass(f.cssInfoBlock)){for(d=p[r]&&p[r].rows.length||0,n=0;n<d;++n)if(u={child:[]},o=T(p[r].rows[n]),new Array(f.columns),l=[],o.hasClass(f.cssChildRow)&&0!==n)i=t.normalized.length-1,t.normalized[i][f.columns].$row=t.normalized[i][f.columns].$row.add(o),o.prev().hasClass(f.cssChildRow)||o.prev().addClass(v.css.cssHasChild),u.child[i]=T.trim(o[0].textContent||o[0].innerText||o.text()||"");else{for(u.$row=o,u.order=n,a=0;a<f.columns;++a)void 0!==b[a]?(i=w(e,o[0].cells[a],a),s=void 0===g[a].id?i:g[a].format(i,e,o[0].cells[a],a),s="no-parser"===b[a].id?"":b[a].format(s,e,o[0].cells[a],a),l.push(f.ignoreCase&&"string"==typeof s?s.toLowerCase():s),"numeric"===(b[a].type||"").toLowerCase()&&(h[a]=Math.max(Math.abs(s)||0,h[a]||0))):f.debug&&m("No parser found for cell:",o[0].cells[a],"does it have a header?");l[f.columns]=u,t.normalized.push(l)}t.colMax=h,f.totalRows+=t.normalized.length}f.showProcessing&&v.isProcessing(e),f.debug&&_("Building cache for "+d+" rows",c)}function y(e,t){var i,s,n,a,r,o,l,c=e.config,d=c.widgetOptions,u=e.tBodies,h=[],f=c.cache;if(b(f))return c.appender?c.appender(e,h):e.isUpdating&&c.$table.trigger("updateComplete",e);for(c.debug&&(l=new Date),o=0;o<u.length;o++)if((n=T(u[o])).length&&!n.hasClass(c.cssInfoBlock)){for(a=v.processTbody(e,n,!0),s=(i=f[o].normalized).length,r=0;r<s;r++)h.push(i[r][c.columns].$row),c.appender&&(!c.pager||c.pager.removeRows&&d.pager_removeRows||c.pager.ajax)||a.append(i[r][c.columns].$row);v.processTbody(e,a,!1)}c.appender&&c.appender(e,h),c.debug&&_("Rebuilt table",l),t||c.appender||v.applyWidget(e),e.isUpdating&&c.$table.trigger("updateComplete",e)}function l(e){return/^d/i.test(e)||1===e}function c(t){var i,s,n,a,r,e,o=t.config;o.headerList=[],o.headerContent=[],o.debug&&(e=new Date),o.columns=v.computeColumnIndex(o.$table.children("thead, tfoot").children("tr")),n=o.cssIcon?'<i class="'+(o.cssIcon===v.css.icon?v.css.icon:o.cssIcon+" "+v.css.icon)+'"></i>':"",o.$headers=T(t).find(o.selectorHeaders).each(function(e){i=T(this),r=v.getColumnData(t,o.headers,e,!0),o.headerContent[e]=T(this).html(),a=o.headerTemplate.replace(/\{content\}/g,T(this).html()).replace(/\{icon\}/g,n),o.onRenderTemplate&&(s=o.onRenderTemplate.apply(i,[e,a]))&&"string"==typeof s&&(a=s),T(this).html('<div class="'+v.css.headerIn+'">'+a+"</div>"),o.onRenderHeader&&o.onRenderHeader.apply(i,[e]),this.column=parseInt(T(this).attr("data-column"),10),this.order=l(v.getData(i,r,"sortInitialOrder")||o.sortInitialOrder)?[1,0,2]:[0,1,2],this.count=-1,this.lockedOrder=!1,void 0!==(r=v.getData(i,r,"lockedOrder")||!1)&&!1!==r&&(this.order=this.lockedOrder=l(r)?[1,1,1]:[0,0,0]),i.addClass(v.css.header+" "+o.cssHeader),o.headerList[e]=this,i.parent().addClass(v.css.headerRow+" "+o.cssHeaderRow).attr("role","row"),o.tabIndex&&i.attr("tabindex",0)}).attr({scope:"col",role:"columnheader"}),C(t),o.debug&&(_("Built headers:",e),m(o.$headers))}function x(e,t,i){var s=e.config;s.$table.find(s.selectorRemove).remove(),g(e),u(e),A(s.$table,t,i)}function C(i){var s,n,a=i.config;a.$headers.each(function(e,t){s=T(t),n=v.getColumnData(i,a.headers,e,!0),n="false"===v.getData(t,n,"sorter")||"false"===v.getData(t,n,"parser"),t.sortDisabled=n,s[n?"addClass":"removeClass"]("sorter-false").attr("aria-disabled",""+n),i.id&&(n?s.removeAttr("aria-controls"):s.attr("aria-controls",i.id))})}function S(e){var t,i,s,n=e.config,a=n.sortList,r=a.length,o=v.css.sortNone+" "+n.cssNone,l=[v.css.sortAsc+" "+n.cssAsc,v.css.sortDesc+" "+n.cssDesc],c=["ascending","descending"],d=T(e).find("tfoot tr").children().add(n.$extraHeaders).removeClass(l.join(" "));for(n.$headers.removeClass(l.join(" ")).addClass(o).attr("aria-sort","none"),i=0;i<r;i++)if(2!==a[i][1]&&(t=n.$headers.not(".sorter-false").filter('[data-column="'+a[i][0]+'"]'+(1===r?":last":""))).length){for(s=0;s<t.length;s++)t[s].sortDisabled||t.eq(s).removeClass(o).addClass(l[a[i][1]]).attr("aria-sort",c[a[i][1]]);d.length&&d.filter('[data-column="'+a[i][0]+'"]').removeClass(o).addClass(l[a[i][1]])}n.$headers.not(".sorter-false").each(function(){var e=T(this),t=this.order[(this.count+1)%(n.sortReset?3:2)],t=e.text()+": "+v.language[e.hasClass(v.css.sortAsc)?"sortAsc":e.hasClass(v.css.sortDesc)?"sortDesc":"sortNone"]+v.language[0===t?"nextAsc":1===t?"nextDesc":"nextNone"];e.attr("aria-label",t)})}function E(n){var a,e,t,r,o,l,c,d,u,h=n.config,f=h.textSorter||"",p=h.sortList,g=p.length,i=n.tBodies.length;if(!h.serverSideSorting&&!b(h.cache)){for(h.debug&&(t=new Date),e=0;e<i;e++)r=h.cache[e].colMax,h.cache[e].normalized.sort(function(e,t){for(a=0;a<g;a++){if(l=p[a][0],o=p[a][1],u=0===o,h.sortStable&&e[l]===t[l]&&1===g)return e[h.columns].order-t[h.columns].order;if(d=/n/i.test((i=h.parsers,s=l,i&&i[s]&&i[s].type||"")),l=d&&h.strings[l]?(d="boolean"==typeof h.string[h.strings[l]]?(u?1:-1)*(h.string[h.strings[l]]?-1:1):h.strings[l]&&h.string[h.strings[l]]||0,h.numberSorter?h.numberSorter(e[l],t[l],u,r[l],n):v["sortNumeric"+(u?"Asc":"Desc")](e[l],t[l],d,r[l],l,n)):(c=u?e:t,d=u?t:e,"function"==typeof f?f(c[l],d[l],u,l,n):"object"==typeof f&&f.hasOwnProperty(l)?f[l](c[l],d[l],u,l,n):v["sortNatural"+(u?"Asc":"Desc")](e[l],t[l],l,n,h)))return l}var i,s;return e[h.columns].order-t[h.columns].order});h.debug&&_("Sorting on "+p.toString()+" and dir "+o+" time",t)}}function n(e,t){e[0].isUpdating&&e.trigger("updateComplete"),T.isFunction(t)&&t(e[0])}function A(e,t,i){var s=e[0].config.sortList;!1!==t&&!e[0].isProcessing&&s.length?e.trigger("sorton",[s,function(){n(e,i)},!0]):(n(e,i),v.applyWidget(e[0],!1))}function d(h){var f=h.config,p=f.$table;p.unbind("sortReset update updateRows updateCell updateAll addRows updateComplete sorton appendCache updateCache applyWidgetId applyWidgets refreshWidgets destroy mouseup mouseleave ".split(" ").join(f.namespace+" ")).bind("sortReset"+f.namespace,function(e,t){e.stopPropagation(),f.sortList=[],S(h),E(h),y(h),T.isFunction(t)&&t(h)}).bind("updateAll"+f.namespace,function(e,t,i){e.stopPropagation(),h.isUpdating=!0,v.refreshWidgets(h,!0,!0),v.restoreHeaders(h),c(h),v.bindEvents(h,f.$headers,!0),d(h),x(h,t,i)}).bind("update"+f.namespace+" updateRows"+f.namespace,function(e,t,i){e.stopPropagation(),h.isUpdating=!0,C(h),x(h,t,i)}).bind("updateCell"+f.namespace,function(e,t,i,s){e.stopPropagation(),h.isUpdating=!0,p.find(f.selectorRemove).remove();var n=p.find("tbody"),a=T(t),r=n.index(T.fn.closest?a.closest("tbody"):a.parents("tbody").filter(":first")),e=T.fn.closest?a.closest("tr"):a.parents("tr").filter(":first");t=a[0],n.length&&0<=r&&(n=n.eq(r).find("tr").index(e),a=a.index(),f.cache[r].normalized[n][f.columns].$row=e,e=void 0===f.extractors[a].id?w(h,t,a):f.extractors[a].format(w(h,t,a),h,t,a),t="no-parser"===f.parsers[a].id?"":f.parsers[a].format(e,h,t,a),f.cache[r].normalized[n][a]=f.ignoreCase&&"string"==typeof t?t.toLowerCase():t,"numeric"===(f.parsers[a].type||"").toLowerCase()&&(f.cache[r].colMax[a]=Math.max(Math.abs(t)||0,f.cache[r].colMax[a]||0)),A(p,i,s))}).bind("addRows"+f.namespace,function(e,t,i,s){if(e.stopPropagation(),h.isUpdating=!0,b(f.cache))C(h),x(h,i,s);else{var n,a,r,o,l,c,d=(t=T(t).attr("role","row")).filter("tr").length,u=p.find("tbody").index(t.parents("tbody").filter(":first"));for(f.parsers&&f.parsers.length||g(h),n=0;n<d;n++){for(r=t[n].cells.length,c=[],l={child:[],$row:t.eq(n),order:f.cache[u].normalized.length},a=0;a<r;a++)o=void 0===f.extractors[a].id?w(h,t[n].cells[a],a):f.extractors[a].format(w(h,t[n].cells[a],a),h,t[n].cells[a],a),o="no-parser"===f.parsers[a].id?"":f.parsers[a].format(o,h,t[n].cells[a],a),c[a]=f.ignoreCase&&"string"==typeof o?o.toLowerCase():o,"numeric"===(f.parsers[a].type||"").toLowerCase()&&(f.cache[u].colMax[a]=Math.max(Math.abs(c[a])||0,f.cache[u].colMax[a]||0));c.push(l),f.cache[u].normalized.push(c)}A(p,i,s)}}).bind("updateComplete"+f.namespace,function(){h.isUpdating=!1}).bind("sorton"+f.namespace,function(e,t,i,s){var n,a,r,o,l,c,d=h.config;e.stopPropagation(),p.trigger("sortStart",this),t=t,c=h.config,t=t||c.sortList,c.sortList=[],T.each(t,function(e,t){if(o=parseInt(t[0],10),r=c.$headers.filter('[data-column="'+o+'"]:last')[0]){switch(a=(a=(""+t[1]).match(/^(1|d|s|o|n)/))?a[0]:""){case"1":case"d":a=1;break;case"s":a=l||0;break;case"o":n=r.order[(l||0)%(c.sortReset?3:2)],a=0===n?1:1===n?0:2;break;case"n":r.count=r.count+1,a=r.order[r.count%(c.sortReset?3:2)];break;default:a=0}l=0===e?a:l,n=[o,parseInt(a,10)||0],c.sortList.push(n),a=T.inArray(n[1],r.order),r.count=0<=a?a:n[1]%(c.sortReset?3:2)}}),S(h),d.delayInit&&b(d.cache)&&u(h),p.trigger("sortBegin",this),E(h),y(h,s),p.trigger("sortEnd",this),v.applyWidget(h),T.isFunction(i)&&i(h)}).bind("appendCache"+f.namespace,function(e,t,i){e.stopPropagation(),y(h,i),T.isFunction(t)&&t(h)}).bind("updateCache"+f.namespace,function(e,t){f.parsers&&f.parsers.length||g(h),u(h),T.isFunction(t)&&t(h)}).bind("applyWidgetId"+f.namespace,function(e,t){e.stopPropagation(),v.getWidgetById(t).format(h,f,f.widgetOptions)}).bind("applyWidgets"+f.namespace,function(e,t){e.stopPropagation(),v.applyWidget(h,t)}).bind("refreshWidgets"+f.namespace,function(e,t,i){e.stopPropagation(),v.refreshWidgets(h,t,i)}).bind("destroy"+f.namespace,function(e,t,i){e.stopPropagation(),v.destroy(h,t,i)}).bind("resetToLoadState"+f.namespace,function(){v.refreshWidgets(h,!0,!0),f=T.extend(!0,v.defaults,f.originalSettings),h.hasInitialized=!1,v.setup(h,f)})}v.version="2.17.7",v.parsers=[],v.widgets=[],v.defaults={theme:"default",widthFixed:!1,showProcessing:!1,headerTemplate:"{content}",onRenderTemplate:null,onRenderHeader:null,cancelSelection:!0,tabIndex:!0,dateFormat:"mmddyyyy",sortMultiSortKey:"shiftKey",sortResetKey:"ctrlKey",usNumberFormat:!0,delayInit:!1,serverSideSorting:!1,headers:{},ignoreCase:!0,sortForce:null,sortList:[],sortAppend:null,sortStable:!1,sortInitialOrder:"asc",sortLocaleCompare:!1,sortReset:!1,sortRestart:!1,emptyTo:"bottom",stringTo:"max",textExtraction:"basic",textAttribute:"data-text",textSorter:null,numberSorter:null,widgets:[],widgetOptions:{zebra:["even","odd"]},initWidgets:!0,initialized:null,tableClass:"",cssAsc:"",cssDesc:"",cssNone:"",cssHeader:"",cssHeaderRow:"",cssProcessing:"",cssChildRow:"tablesorter-childRow",cssIcon:"tablesorter-icon",cssInfoBlock:"tablesorter-infoOnly",selectorHeaders:"> thead th, > thead td",selectorSort:"th, td",selectorRemove:".remove-me",debug:!1,headerList:[],empties:{},strings:{},parsers:[]},v.css={table:"tablesorter",cssHasChild:"tablesorter-hasChildRow",childRow:"tablesorter-childRow",header:"tablesorter-header",headerRow:"tablesorter-headerRow",headerIn:"tablesorter-header-inner",icon:"tablesorter-icon",info:"tablesorter-infoOnly",processing:"tablesorter-processing",sortAsc:"tablesorter-headerAsc",sortDesc:"tablesorter-headerDesc",sortNone:"tablesorter-headerUnSorted"},v.language={sortAsc:"Ascending sort applied, ",sortDesc:"Descending sort applied, ",sortNone:"No sort applied, ",nextAsc:"activate to apply an ascending sort",nextDesc:"activate to apply a descending sort",nextNone:"activate to remove the sort"},v.log=m,v.benchmark=_,v.construct=function(t){return this.each(function(){var e=T.extend(!0,{},v.defaults,t);e.originalSettings=t,!this.hasInitialized&&v.buildTable&&"TABLE"!==this.tagName?v.buildTable(this,e):v.setup(this,e)})},v.setup=function(t,i){if(!t||!t.tHead||0===t.tBodies.length||!0===t.hasInitialized)return i.debug?m("ERROR: stopping initialization! No table, thead, tbody or tablesorter has already been initialized"):"";var e,s,n,a="",r=T(t),o=T.metadata;t.hasInitialized=!1,t.isProcessing=!0,t.config=i,T.data(t,"tablesorter",i),i.debug&&T.data(t,"startoveralltimer",new Date),i.supportsDataObject=((e=T.fn.jquery.split("."))[0]=parseInt(e[0],10),1<e[0]||1===e[0]&&4<=parseInt(e[1],10)),i.string={max:1,min:-1,emptyMin:1,emptyMax:-1,zero:0,none:0,null:0,top:!0,bottom:!1},/tablesorter\-/.test(r.attr("class"))||(a=""!==i.theme?" tablesorter-"+i.theme:""),i.table=t,i.$table=r.addClass(v.css.table+" "+i.tableClass+a).attr("role","grid"),i.$headers=r.find(i.selectorHeaders),i.namespace?i.namespace="."+i.namespace.replace(/\W/g,""):i.namespace=".tablesorter"+Math.random().toString(16).slice(2),i.$table.children().children("tr").attr("role","row"),i.$tbodies=r.children("tbody:not(."+i.cssInfoBlock+")").attr({"aria-live":"polite","aria-relevant":"all"}),i.$table.find("caption").length&&i.$table.attr("aria-labelledby","theCaption"),i.widgetInit={},i.textExtraction=i.$table.attr("data-text-extraction")||i.textExtraction||"basic",c(t),(a=t).config.widthFixed&&0===T(a).find("colgroup").length&&(s=T("<colgroup>"),n=T(a).width(),T(a.tBodies[0]).find("tr:first").children(":visible").each(function(){s.append(T("<col>").css("width",parseInt(T(this).width()/n*1e3,10)/10+"%"))}),T(a).prepend(s)),g(t),i.totalRows=0,i.delayInit||u(t),v.bindEvents(t,i.$headers,!0),d(t),i.supportsDataObject&&void 0!==r.data().sortlist?i.sortList=r.data().sortlist:o&&r.metadata()&&r.metadata().sortlist&&(i.sortList=r.metadata().sortlist),v.applyWidget(t,!0),0<i.sortList.length?r.trigger("sorton",[i.sortList,{},!i.initWidgets,!0]):(S(t),i.initWidgets&&v.applyWidget(t,!1)),i.showProcessing&&r.unbind("sortBegin"+i.namespace+" sortEnd"+i.namespace).bind("sortBegin"+i.namespace+" sortEnd"+i.namespace,function(e){clearTimeout(i.processTimer),v.isProcessing(t),"sortBegin"===e.type&&(i.processTimer=setTimeout(function(){v.isProcessing(t,!0)},500))}),t.hasInitialized=!0,t.isProcessing=!1,i.debug&&v.benchmark("Overall initialization time",T.data(t,"startoveralltimer")),r.trigger("tablesorter-initialized",t),"function"==typeof i.initialized&&i.initialized(t)},v.getColumnData=function(e,t,i,s){if(null!=t){var n,a=(e=T(e)[0]).config;if(t[i])return s?t[i]:t[a.$headers.index(a.$headers.filter('[data-column="'+i+'"]:last'))];for(n in t)if("string"==typeof n&&(s?a.$headers.eq(i):a.$headers.filter('[data-column="'+i+'"]:last')).filter(n).length)return t[n]}},v.computeColumnIndex=function(e){for(var t,i,s,n,a,r,o,l,c,d,u,h,f=[],p={},g=0,b=0;b<e.length;b++)for(r=e[b].cells,t=0;t<r.length;t++){for(a=r[t],n=T(a),l=(o=a.parentNode.rowIndex)+"-"+n.index(),c=a.rowSpan||1,d=a.colSpan||1,void 0===f[o]&&(f[o]=[]),i=0;i<f[o].length+1;i++)if(void 0===f[o][i]){u=i;break}for(p[l]=u,g=Math.max(u,g),n.attr({"data-column":u}),i=o;i<o+c;i++)for(void 0===f[i]&&(f[i]=[]),h=f[i],s=u;s<u+d;s++)h[s]="x"}return g+1},v.isProcessing=function(e,t,i){var s=(e=T(e))[0].config,n=i||e.find("."+v.css.header);t?(void 0!==i&&0<s.sortList.length&&(n=n.filter(function(){return!this.sortDisabled&&0<=v.isValueInArray(parseFloat(T(this).attr("data-column")),s.sortList)})),e.add(n).addClass(v.css.processing+" "+s.cssProcessing)):e.add(n).removeClass(v.css.processing+" "+s.cssProcessing)},v.processTbody=function(e,t,i){var s;if(e=T(e)[0],i)return e.isProcessing=!0,t.before('<span class="tablesorter-savemyplace"/>'),s=T.fn.detach?t.detach():t.remove();s=T(e).find("span.tablesorter-savemyplace"),t.insertAfter(s),s.remove(),e.isProcessing=!1},v.clearTableBody=function(e){T(e)[0].config.$tbodies.children().detach()},v.bindEvents=function(s,n,e){var a,r=(s=T(s)[0]).config;!0!==e&&(r.$extraHeaders=r.$extraHeaders?r.$extraHeaders.add(n):n),n.find(r.selectorSort).add(n.filter(r.selectorSort)).unbind("mousedown mouseup sort keyup ".split(" ").join(r.namespace+" ")).bind("mousedown mouseup sort keyup ".split(" ").join(r.namespace+" "),function(e,t){var i=e.type;if(!(1!==(e.which||e.button)&&!/sort|keyup/.test(i)||"keyup"===i&&13!==e.which||"mouseup"===i&&!0!==t&&250<(new Date).getTime()-a)){if("mousedown"===i)return a=(new Date).getTime(),/(input|select|button|textarea)/i.test(e.target.tagName)?"":!r.cancelSelection;r.delayInit&&b(r.cache)&&u(s),i=T.fn.closest?T(this).closest("th, td")[0]:/TH|TD/.test(this.tagName)?this:T(this).parents("th, td")[0],(i=r.$headers[n.index(i)]).sortDisabled||function e(t,i,s){if(t.isUpdating)return setTimeout(function(){e(t,i,s)},50);var n,a,r,o,l,c=t.config,d=!s[c.sortMultiSortKey],u=c.$table;if(u.trigger("sortStart",t),i.count=s[c.sortResetKey]?2:(i.count+1)%(c.sortReset?3:2),c.sortRestart&&(a=i,c.$headers.each(function(){this===a||!d&&T(this).is("."+v.css.sortDesc+",."+v.css.sortAsc)||(this.count=-1)})),a=i.column,d){if(c.sortList=[],null!==c.sortForce)for(n=c.sortForce,r=0;r<n.length;r++)n[r][0]!==a&&c.sortList.push(n[r]);if(o=i.order[i.count],o<2&&(c.sortList.push([a,o]),1<i.colSpan))for(r=1;r<i.colSpan;r++)c.sortList.push([a+r,o])}else{if(c.sortAppend&&1<c.sortList.length)for(r=0;r<c.sortAppend.length;r++)0<=(l=v.isValueInArray(c.sortAppend[r][0],c.sortList))&&c.sortList.splice(l,1);if(0<=v.isValueInArray(a,c.sortList))for(r=0;r<c.sortList.length;r++)l=c.sortList[r],o=c.$headers.filter('[data-column="'+l[0]+'"]:last')[0],l[0]===a&&(l[1]=o.order[i.count],2===l[1]&&(c.sortList.splice(r,1),o.count=-1));else if(o=i.order[i.count],o<2&&(c.sortList.push([a,o]),1<i.colSpan))for(r=1;r<i.colSpan;r++)c.sortList.push([a+r,o])}if(null!==c.sortAppend)for(n=c.sortAppend,r=0;r<n.length;r++)n[r][0]!==a&&c.sortList.push(n[r]);u.trigger("sortBegin",t),setTimeout(function(){S(t),E(t),y(t),u.trigger("sortEnd",t)},1)}(s,i,e)}}),r.cancelSelection&&n.attr("unselectable","on").bind("selectstart",!1).css({"user-select":"none",MozUserSelect:"none"})},v.restoreHeaders=function(e){var t=T(e)[0].config;t.$table.find(t.selectorHeaders).each(function(e){T(this).find("."+v.css.headerIn).length&&T(this).html(t.headerContent[e])})},v.destroy=function(e,t,i){var s,n,a,r,o;(e=T(e)[0]).hasInitialized&&(v.refreshWidgets(e,!0,!0),s=T(e),n=e.config,r=(a=s.find("thead:first")).find("tr."+v.css.headerRow).removeClass(v.css.headerRow+" "+n.cssHeaderRow),o=s.find("tfoot:first > tr").children("th, td"),!1===t&&0<=T.inArray("uitheme",n.widgets)&&(s.trigger("applyWidgetId",["uitheme"]),s.trigger("applyWidgetId",["zebra"])),a.find("tr").not(r).remove(),s.removeData("tablesorter").unbind("sortReset update updateAll updateRows updateCell addRows updateComplete sorton appendCache updateCache applyWidgetId applyWidgets refreshWidgets destroy mouseup mouseleave keypress sortBegin sortEnd resetToLoadState ".split(" ").join(n.namespace+" ")),n.$headers.add(o).removeClass([v.css.header,n.cssHeader,n.cssAsc,n.cssDesc,v.css.sortAsc,v.css.sortDesc,v.css.sortNone].join(" ")).removeAttr("data-column").removeAttr("aria-label").attr("aria-disabled","true"),r.find(n.selectorSort).unbind("mousedown mouseup keypress ".split(" ").join(n.namespace+" ")),v.restoreHeaders(e),s.toggleClass(v.css.table+" "+n.tableClass+" tablesorter-"+n.theme,!1===t),e.hasInitialized=!1,delete e.config.cache,"function"==typeof i&&i(e))},v.regex={chunk:/(^([+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?)?$|^0x[0-9a-f]+$|\d+)/gi,chunks:/(^\\0|\\0$)/,hex:/^0x[0-9a-f]+$/i},v.sortNatural=function(e,t){if(e===t)return 0;var i,s,n,a,r,o,l,c,d=v.regex;if(d.hex.test(t)){if((s=parseInt(e.match(d.hex),16))<(a=parseInt(t.match(d.hex),16)))return-1;if(a<s)return 1}for(i=e.replace(d.chunk,"\\0$1\\0").replace(d.chunks,"").split("\\0"),n=t.replace(d.chunk,"\\0$1\\0").replace(d.chunks,"").split("\\0"),c=Math.max(i.length,n.length),l=0;l<c;l++){if(r=isNaN(i[l])?i[l]||0:parseFloat(i[l])||0,o=isNaN(n[l])?n[l]||0:parseFloat(n[l])||0,isNaN(r)!==isNaN(o))return isNaN(r)?1:-1;if(typeof r!=typeof o&&(r+="",o+=""),r<o)return-1;if(o<r)return 1}return 0},v.sortNaturalAsc=function(e,t,i,s,n){if(e===t)return 0;n=n.string[n.empties[i]||n.emptyTo];return""===e&&0!==n?"boolean"==typeof n?n?-1:1:-n||-1:""===t&&0!==n?"boolean"==typeof n?n?1:-1:n||1:v.sortNatural(e,t)},v.sortNaturalDesc=function(e,t,i,s,n){if(e===t)return 0;n=n.string[n.empties[i]||n.emptyTo];return""===e&&0!==n?"boolean"==typeof n?n?-1:1:n||1:""===t&&0!==n?"boolean"==typeof n?n?1:-1:-n||-1:v.sortNatural(t,e)},v.sortText=function(e,t){return t<e?1:e<t?-1:0},v.getTextValue=function(e,t,i){if(i){for(var s=e?e.length:0,n=i+t,a=0;a<s;a++)n+=e.charCodeAt(a);return t*n}return 0},v.sortNumericAsc=function(e,t,i,s,n,a){if(e===t)return 0;a=a.config,a=a.string[a.empties[n]||a.emptyTo];return""===e&&0!==a?"boolean"==typeof a?a?-1:1:-a||-1:""===t&&0!==a?"boolean"==typeof a?a?1:-1:a||1:(e=isNaN(e)?v.getTextValue(e,i,s):e)-(t=isNaN(t)?v.getTextValue(t,i,s):t)},v.sortNumericDesc=function(e,t,i,s,n,a){if(e===t)return 0;a=a.config,a=a.string[a.empties[n]||a.emptyTo];return""===e&&0!==a?"boolean"==typeof a?a?-1:1:a||1:""===t&&0!==a?"boolean"==typeof a?a?1:-1:-a||-1:(isNaN(e)&&(e=v.getTextValue(e,i,s)),(t=isNaN(t)?v.getTextValue(t,i,s):t)-e)},v.sortNumeric=function(e,t){return e-t},v.characterEquivalents={a:"áàâãäąå",A:"ÁÀÂÃÄĄÅ",c:"çćč",C:"ÇĆČ",e:"éèêëěę",E:"ÉÈÊËĚĘ",i:"íìİîïı",I:"ÍÌİÎÏ",o:"óòôõö",O:"ÓÒÔÕÖ",ss:"ß",SS:"ẞ",u:"úùûüů",U:"ÚÙÛÜŮ"},v.replaceAccents=function(e){var t,i="[",s=v.characterEquivalents;if(!v.characterRegex){for(t in v.characterRegexArray={},s)"string"==typeof t&&(i+=s[t],v.characterRegexArray[t]=new RegExp("["+s[t]+"]","g"));v.characterRegex=new RegExp(i+"]")}if(v.characterRegex.test(e))for(t in s)"string"==typeof t&&(e=e.replace(v.characterRegexArray[t],t));return e},v.isValueInArray=function(e,t){for(var i=t.length,s=0;s<i;s++)if(t[s][0]===e)return s;return-1},v.addParser=function(e){for(var t=v.parsers.length,i=!0,s=0;s<t;s++)v.parsers[s].id.toLowerCase()===e.id.toLowerCase()&&(i=!1);i&&v.parsers.push(e)},v.getParserById=function(e){if("false"==e)return!1;for(var t=v.parsers.length,i=0;i<t;i++)if(v.parsers[i].id.toLowerCase()===e.toString().toLowerCase())return v.parsers[i];return!1},v.addWidget=function(e){v.widgets.push(e)},v.hasWidget=function(e,t){return(e=T(e)).length&&e[0].config&&e[0].config.widgetInit[t]||!1},v.getWidgetById=function(e){for(var t,i=v.widgets.length,s=0;s<i;s++)if((t=v.widgets[s])&&t.hasOwnProperty("id")&&t.id.toLowerCase()===e.toLowerCase())return t},v.applyWidget=function(i,s){var e,t,n,a=(i=T(i)[0]).config,r=a.widgetOptions,o=[];!1!==s&&i.hasInitialized&&(i.isApplyingWidgets||i.isUpdating)||(a.debug&&(e=new Date),a.widgets.length&&(i.isApplyingWidgets=!0,a.widgets=T.grep(a.widgets,function(e,t){return T.inArray(e,a.widgets)===t}),T.each(a.widgets||[],function(e,t){(n=v.getWidgetById(t))&&n.id&&(n.priority||(n.priority=10),o[e]=n)}),o.sort(function(e,t){return e.priority<t.priority?-1:e.priority===t.priority?0:1}),T.each(o,function(e,t){t&&(!s&&a.widgetInit[t.id]||(a.widgetInit[t.id]=!0,t.hasOwnProperty("options")&&(r=i.config.widgetOptions=T.extend(!0,{},t.options,r)),t.hasOwnProperty("init")&&t.init(i,t,a,r)),!s&&t.hasOwnProperty("format")&&t.format(i,a,r,!1))})),setTimeout(function(){i.isApplyingWidgets=!1},0),a.debug&&(t=a.widgets.length,_("Completed "+(!0===s?"initializing ":"applying ")+t+" widget"+(1!==t?"s":""),e)))},v.refreshWidgets=function(e,t,i){for(var s=(e=T(e)[0]).config,n=s.widgets,a=v.widgets,r=a.length,o=0;o<r;o++)a[o]&&a[o].id&&(t||T.inArray(a[o].id,n)<0)&&(s.debug&&m('Refeshing widgets: Removing "'+a[o].id+'"'),a[o].hasOwnProperty("remove")&&s.widgetInit[a[o].id]&&(a[o].remove(e,s,s.widgetOptions),s.widgetInit[a[o].id]=!1));!0!==i&&v.applyWidget(e,t)},v.getData=function(e,t,i){var s,n="",a=T(e);return a.length?(s=!!T.metadata&&a.metadata(),e=" "+(a.attr("class")||""),void 0!==a.data(i)||void 0!==a.data(i.toLowerCase())?n+=a.data(i)||a.data(i.toLowerCase()):s&&void 0!==s[i]?n+=s[i]:t&&void 0!==t[i]?n+=t[i]:" "!==e&&e.match(" "+i+"-")&&(n=e.match(new RegExp("\\s"+i+"-([\\w-]+)"))[1]||""),T.trim(n)):""},v.formatFloat=function(e,t){return"string"!=typeof e||""===e?e:(e=(t&&t.config?!1!==t.config.usNumberFormat:void 0===t||t)?e.replace(/,/g,""):e.replace(/[\s|\.]/g,"").replace(/,/g,"."),/^\s*\([.\d]+\)/.test(e)&&(e=e.replace(/^\s*\(([.\d]+)\)/,"-$1")),t=parseFloat(e),isNaN(t)?T.trim(e):t)},v.isDigit=function(e){return!isNaN(e)||/^[\-+(]?\d+[)]?$/.test(e.toString().replace(/[,.'"\s]/g,""))}}});var u=T.tablesorter;T.fn.extend({tablesorter:u.construct}),u.addParser({id:"no-parser",is:function(){return!1},format:function(){return""},type:"text"}),u.addParser({id:"text",is:function(){return!0},format:function(e,t){t=t.config;return e&&(e=T.trim(t.ignoreCase?e.toLocaleLowerCase():e),e=t.sortLocaleCompare?u.replaceAccents(e):e),e},type:"text"}),u.addParser({id:"digit",is:function(e){return u.isDigit(e)},format:function(e,t){var i=u.formatFloat((e||"").replace(/[^\w,. \-()]/g,""),t);return e&&"number"==typeof i?i:e&&T.trim(e&&t.config.ignoreCase?e.toLocaleLowerCase():e)},type:"numeric"}),u.addParser({id:"currency",is:function(e){return/^\(?\d+[\u00a3$\u20ac\u00a4\u00a5\u00a2?.]|[\u00a3$\u20ac\u00a4\u00a5\u00a2?.]\d+\)?$/.test((e||"").replace(/[+\-,. ]/g,""))},format:function(e,t){var i=u.formatFloat((e||"").replace(/[^\w,. \-()]/g,""),t);return e&&"number"==typeof i?i:e&&T.trim(e&&t.config.ignoreCase?e.toLocaleLowerCase():e)},type:"numeric"}),u.addParser({id:"ipAddress",is:function(e){return/^\d{1,3}[\.]\d{1,3}[\.]\d{1,3}[\.]\d{1,3}$/.test(e)},format:function(e,t){for(var i=e?e.split("."):"",s="",n=i.length,a=0;a<n;a++)s+=("00"+i[a]).slice(-3);return e&&u.formatFloat(s,t)},type:"numeric"}),u.addParser({id:"url",is:function(e){return/^(https?|ftp|file):\/\//.test(e)},format:function(e){return e&&T.trim(e.replace(/(https?|ftp|file):\/\//,""))},type:"text"}),u.addParser({id:"isoDate",is:function(e){return/^\d{4}[\/\-]\d{1,2}[\/\-]\d{1,2}/.test(e)},format:function(e,t){return e&&u.formatFloat(""!==e?new Date(e.replace(/-/g,"/")).getTime()||e:"",t)},type:"numeric"}),u.addParser({id:"percent",is:function(e){return/(\d\s*?%|%\s*?\d)/.test(e)&&e.length<15},format:function(e,t){return e&&u.formatFloat(e.replace(/%/g,""),t)},type:"numeric"}),u.addParser({id:"usLongDate",is:function(e){return/^[A-Z]{3,10}\.?\s+\d{1,2},?\s+(\d{4})(\s+\d{1,2}:\d{2}(:\d{2})?(\s+[AP]M)?)?$/i.test(e)||/^\d{1,2}\s+[A-Z]{3,10}\s+\d{4}/i.test(e)},format:function(e,t){return e&&u.formatFloat(new Date(e.replace(/(\S)([AP]M)$/i,"$1 $2")).getTime()||e,t)},type:"numeric"}),u.addParser({id:"shortDate",is:function(e){return/(^\d{1,2}[\/\s]\d{1,2}[\/\s]\d{4})|(^\d{4}[\/\s]\d{1,2}[\/\s]\d{1,2})/.test((e||"").replace(/\s+/g," ").replace(/[\-.,]/g,"/"))},format:function(e,t,i,s){var n,a;return e&&(a=(n=(a=t.config).$headers.filter("[data-column="+s+"]:last")).length&&n[0].dateFormat||u.getData(n,u.getColumnData(t,a.headers,s),"dateFormat")||a.dateFormat,e=e.replace(/\s+/g," ").replace(/[\-.,]/g,"/"),"mmddyyyy"===a?e=e.replace(/(\d{1,2})[\/\s](\d{1,2})[\/\s](\d{4})/,"$3/$1/$2"):"ddmmyyyy"===a?e=e.replace(/(\d{1,2})[\/\s](\d{1,2})[\/\s](\d{4})/,"$3/$2/$1"):"yyyymmdd"===a&&(e=e.replace(/(\d{4})[\/\s](\d{1,2})[\/\s](\d{1,2})/,"$1/$2/$3"))),e&&u.formatFloat(new Date(e).getTime()||e,t)},type:"numeric"}),u.addParser({id:"time",is:function(e){return/^(([0-2]?\d:[0-5]\d)|([0-1]?\d:[0-5]\d\s?([AP]M)))$/i.test(e)},format:function(e,t){return e&&u.formatFloat(new Date("2000/01/01 "+e.replace(/(\S)([AP]M)$/i,"$1 $2")).getTime()||e,t)},type:"numeric"}),u.addParser({id:"metadata",is:function(){return!1},format:function(e,t,i){t=t.config,t=t.parserMetadataName||"sortValue";return T(i).metadata()[t]},type:"numeric"}),u.addWidget({id:"zebra",priority:90,format:function(e,t,i){var s,n,a,r,o,l,c=new RegExp(t.cssChildRow,"i"),d=t.$tbodies;for(t.debug&&(o=new Date),l=0;l<d.length;l++)1<(s=d.eq(l)).children("tr").length&&(a=0,s.children("tr:visible").not(t.selectorRemove).each(function(){n=T(this),c.test(this.className)||a++,r=a%2==0,n.removeClass(i.zebra[r?1:0]).addClass(i.zebra[r?0:1])}));t.debug&&u.benchmark("Applying Zebra widget",o)},remove:function(e,t,i){for(var s,n=t.$tbodies,a=(i.zebra||["even","odd"]).join(" "),r=0;r<n.length;r++)(s=T.tablesorter.processTbody(e,n.eq(r),!0)).children().removeClass(a),T.tablesorter.processTbody(e,s,!1)}})}(jQuery),e}.call(this),("undefined"==typeof window?global:window).__78043908fceed95bc02cb2d41de7b4e9=function(){var e={exports:{}},t=e.exports;Object.defineProperty(t,"__esModule",{value:!0});var s=n(__fb409c432b53d81bad1e174061f6886c);__54d4ebbe21e9f4e8cfad07adf121ea31;var i=n(__a96071e28d103a38ba4dff141c560d4f);function n(e){return e&&e.__esModule?e:{default:e}}var a={sortMultiSortKey:"",headers:{},debug:!1,tabIndex:!1};function r(e){var i=a;e.find("th").each(function(e,t){t=(0,s.default)(t);i.headers[e]={},t.hasClass("aui-table-column-unsortable")?i.headers[e].sorter=!1:(t.attr("tabindex","0"),t.wrapInner("<span class='aui-table-header-content'/>"),t.hasClass("aui-table-column-issue-key")&&(i.headers[e].sorter="issue-key"))}),e.tablesorter(i)}var o={setup:function(){s.default.tablesorter.addParser({id:"issue-key",is:function(){return!1},format:function(e){var t=e.split("-"),i=t[0],e=t[1],t="..........",t=(i+t).slice(0,t.length);return t+=("000000"+e).slice(-"000000".length)},type:"text"}),s.default.tablesorter.addParser({id:"textSortAttributeParser",is:function(e,t,i){return i.hasAttribute("data-sort-value")&&(!i.hasAttribute("data-sort-type")||"text"===i.getAttribute("data-sort-type"))},format:function(e,t,i,s){return i.getAttribute("data-sort-value")},type:"text"}),s.default.tablesorter.addParser({id:"numericSortAttributeParser",is:function(e,t,i){return"numeric"===i.getAttribute("data-sort-type")&&i.hasAttribute("data-sort-value")},format:function(e,t,i,s){return i.getAttribute("data-sort-value")},type:"numeric"}),(0,s.default)(".aui-table-sortable").each(function(){r((0,s.default)(this))})},setTableSortable:function(e){r(e)}};return(0,s.default)(o.setup),(0,i.default)("tablessortable",o),t.default=o,e.exports=t.default,e.exports}.call(this),("undefined"==typeof window?global:window).__e38a5266176074f9d0abc658522f22bb=function(){var e={};return __7691a83108a01166ebc9ffcd1c8b13c3,e}.call(this),("undefined"==typeof window?global:window).__42fc4e993e55272e022091467ab42bb2=function(){var e={};__32e2adcaa559420967a219c84a6f5dcf,__cad1ff186f64db5847d825980d4e5354;var n=__f8c6097d83140042571006b68a7d7daf,a=u(__fb409c432b53d81bad1e174061f6886c),t=u(__09b85388a8d04b37e92fac1a13b12753),i=u(__f64d3cd498337ca9bb808ad279537d9c),s=u(__14d08a893ec8c5a2f1721a89472bb9e6),r=u(__925085afe37c9c6789b788cc0b7c856e),o=__a255563e8550ec3cb95a1bf95f62d7c1,l=u(__c6533c3b525fc203f79712b45a986b5d),c=__18561bb4c99d4777e6a5a9fec71bb775,d=u(c);function u(e){return e&&e.__esModule?e:{default:e}}function h(e){e._canFireEventsNow&&e.dispatchEvent(new l.default("change",{bubbles:!0}))}function f(e){return e._input||(e._input=e.querySelector("input"))}function p(e){return e._spinner||(e._spinner=new d.default)}function g(e,t){f(t).removeAttribute(e)}function b(e,t,i){f(t).setAttribute(e,i.newValue)}function v(e){return{removed:g.bind(this,e),fallback:b.bind(this,e)}}var m={removed:function(e){g.call(this,"form",e),e._formId=null},fallback:function(e,t){b.call(this,"form",e,t),e._formId=t.newValue}},_={removed:g.bind(void 0,"id"),fallback:function(e,t){f(e).setAttribute("id",""+t.newValue+o.INPUT_SUFFIX)}},w={removed:function(e){f(e).checked=!1,h(e)},fallback:function(e){f(e).checked=!0,h(e)}},y={removed:function(e){f(e).removeAttribute("aria-label")},fallback:function(e,t){f(e).setAttribute("aria-label",t.newValue)}};return(0,r.default)("aui-toggle",{template:(0,s.default)('<input type="checkbox" class="aui-toggle-input assistive">','<span class="aui-toggle-view">','<span class="aui-toggle-tick aui-icon aui-icon-small aui-iconfont-success"></span>','<span class="aui-toggle-cross aui-icon aui-icon-small aui-iconfont-close-dialog"></span>',"</span>"),created:function(e){var t;f(e),p(e).setAttribute("size",c.SIZE.SMALL.name),(0,a.default)(f(e)).tooltip({title:function(){return this.checked?this.getAttribute("tooltip-on"):this.getAttribute("tooltip-off")},gravity:"s",hoverable:!1}),f(t=e).addEventListener("keydown",function(e){t.busy&&e.keyCode===i.default.SPACE&&e.preventDefault()}),-1<navigator.userAgent.toLowerCase().indexOf("firefox")&&f(t).addEventListener("click",function(e){t.busy&&e.preventDefault()}),e.hasAttribute("checked")&&f(e).setAttribute("checked",""),e._canFireEventsNow=!0},attached:function(e){(0,t.default)(e).attributeExists("label")},events:{click:function(e,t){var i=f(e);e.disabled||e.busy||t.target===i||(i.checked=!i.checked),(0,n.setBooleanAttribute)(e,"checked",i.checked)}},attributes:{id:_,checked:w,disabled:v("disabled"),form:m,name:v("name"),value:v("value"),"tooltip-on":{value:AJS.I18n.getText("aui.toggle.on"),fallback:function(e,t){f(e).setAttribute("tooltip-on",t.newValue||AJS.I18n.getText("aui.toggle.on"))}},"tooltip-off":{value:AJS.I18n.getText("aui.toggle.off"),fallback:function(e,t){f(e).setAttribute("tooltip-off",t.newValue||AJS.I18n.getText("aui.toggle.off"))}},label:y},prototype:{focus:function(){return f(this).focus(),this},get checked(){return f(this).checked},set checked(e){f(this).checked!==e&&(f(this).checked=e,(0,n.setBooleanAttribute)(this,"checked",e))},get disabled(){return f(this).disabled},set disabled(e){return(0,n.setBooleanAttribute)(this,"disabled",e)},get form(){return document.getElementById(this._formId)},set form(e){return m.fallback.call(this,this,{newValue:e||null}),this.form},get name(){return f(this).name},set name(e){return this.setAttribute("name",e),e},get value(){return f(this).value},set value(e){return this.setAttribute("value",null===e?"":e),e},get busy(){return"true"===f(this).getAttribute("aria-busy")},set busy(e){var t,i=f(this),s=p(this);return(0,n.setBooleanAttribute)(this,"busy",e),e?(i.setAttribute("aria-busy","true"),i.indeterminate=!0,this.checked?(i.classList.add("indeterminate-checked"),(0,a.default)(this.querySelector(".aui-toggle-tick")).append(s)):(0,a.default)(this.querySelector(".aui-toggle-cross")).append(s)):(i.classList.remove("indeterminate-checked"),i.indeterminate=!1,i.removeAttribute("aria-busy"),s.parentNode&&s.parentNode.removeChild(this._spinner)),t=!!e,(s=this).id&&Array.prototype.forEach.call(document.querySelectorAll('aui-label[for="'+s.id+'"]'),function(e){e.disabled=t}),e}}}),e}.call(this),("undefined"==typeof window?global:window).__e7267b1c1152eac7940fef452c812cf8=function(){var e={},n=s(__fb409c432b53d81bad1e174061f6886c),t=s(__1f10abc98a3cd10182350043fad370a4),i=s(__925085afe37c9c6789b788cc0b7c856e);function s(e){return e&&e.__esModule?e:{default:e}}function a(e,t){e.isEnabled()&&(e=e,(e=document.getElementById(e.getAttribute("aria-controls")))&&e.message&&e.message(t))}return(0,i.default)("data-aui-trigger",{type:i.default.type.ATTRIBUTE,events:{click:function(e,t){var i,s;i=e,s=t.target,(s=(0,n.default)(s).closest("a[href]",i)).length&&s[0]!==i||(a(e,t),t.preventDefault())},mouseenter:function(e,t){a(e,t)},mouseleave:function(e,t){a(e,t)},focus:function(e,t){a(e,t)},blur:function(e,t){a(e,t)}},prototype:{disable:function(){this.setAttribute("aria-disabled","true")},enable:function(){this.setAttribute("aria-disabled","false")},isEnabled:function(){return"true"!==this.getAttribute("aria-disabled")}}}),(0,t.default)("aui/trigger"),e}.call(this),("undefined"==typeof window?global:window).__77b10f22fe599b8ddb5843e20e529b45=function(){var e={exports:{}},t=e.exports;Object.defineProperty(t,"__esModule",{value:!0});var i=n(__a96071e28d103a38ba4dff141c560d4f),s=n(__700392785077a22a4ccfbe28a1bd95fd);function n(e){return e&&e.__esModule?e:{default:e}}var a=s.default.extend({initialize:function(e,t){this._maxResponseSize=t.maxResponseSize,s.default.prototype.initialize.call(this,e,t)},shouldGetMoreResults:function(e){var t=this.findQueryResponse(this.value);return!t||t.length===this._maxResponseSize},findQueryResponse:function(e){for(;e;){var t=this.findQueryCache(e);if(t)return t;e=e.substr(0,e.length-1)}return null}});return(0,i.default)("TruncatingProgressiveDataSet",a),t.default=a,e.exports=t.default,e.exports}.call(this),("undefined"==typeof window?global:window).__39d90075ccb8f2b95864408a44e2d591=function(){var e={exports:{}},t=e.exports;return Object.defineProperty(t,"__esModule",{value:!0}),__a9f5cfe0f69683b50ad78b21881f0eb1,__8a2c50eef3814e30c26c4bcbe18cdba2,__c6ac4be8806c2a1d24aa400865249d29,__1986184c1fddc5991cf2a6e87235db47,__8e2b9598d39bbcb399462a662bcb6efa,__d257f32161b95ea71e98d3f8313b87bc,__c11fe0d363f8ec4cb9088910b6a3a7c1,__39d83cff5ac029dfa62c3a3f44f98b25,__4138c4c5f11214ec1a3e3c67731835b3,__68f80d0c0781d8869bd96e6520696e9f,__700392785077a22a4ccfbe28a1bd95fd,__9a6ba9185f3485831f82a50e25e354e9,__37edb2496d2ca3558b8878ff28e4fd8b,__180676b36e1b1c0b9c2fb0f41f001c1e,__31a64ad715dc720d44efecd59dcf53a0,__5e813e404c1e005c8eddb0cb95b526b1,__80baa2484dadc4ad4c61e3508d74abf7,__e1b9d3d45790dd062534d0d146377495,__18561bb4c99d4777e6a5a9fec71bb775,__32e2adcaa559420967a219c84a6f5dcf,__78043908fceed95bc02cb2d41de7b4e9,__e38a5266176074f9d0abc658522f22bb,__42fc4e993e55272e022091467ab42bb2,__cad1ff186f64db5847d825980d4e5354,__e7267b1c1152eac7940fef452c812cf8,__77b10f22fe599b8ddb5843e20e529b45,t.default=window.AJS,e.exports=t.default,e.exports}.call(this);
1
+ ("undefined"==typeof window?global:window).__918f70b713bd34fe7e8702570365933c=function(){var e={},t=s(__e3df8976e53f6c32ff37e662cb568ca9),i=s(__bdb175876694f044f0093acbedbfa550);function s(e){return e&&e.__esModule?e:{default:e}}function n(e){String(e.value).trim().length||(e.value=e.getAttribute("placeholder"),(0,t.default)(e).addClass("aui-placeholder-shown"))}return"placeholder"in document.createElement("input")||(0,i.default)("placeholder",{type:i.default.type.ATTRIBUTE,events:{blur:n,focus:function(e){e.value===e.getAttribute("placeholder")&&(e.value="",t.default)(e).removeClass("aui-placeholder-shown")}},created:n}),e}.call(this),("undefined"==typeof window?global:window).__48d539aba4484159a9f16096a9545a62=function(){var e={exports:{}},t=e.exports;Object.defineProperty(t,"__esModule",{value:!0});var i=o(__e3df8976e53f6c32ff37e662cb568ca9),s=__5301031faa4c29027b24a78d0f4e7fbd,n=o(__d6d162a8a9f9da3baf81680da236fddd),a=o(__52119b4b795cb8ac461e4f7c1c107994),r=o(__34a31bed02119b918ec8421610fe5335);function o(e){return e&&e.__esModule?e:{default:e}}var l="header";function c(e){e=e,e=(0,i.default)((0,r.default)('<div class="aui-banner aui-banner-{type}" role="banner">{body}</div>').fill({type:"error","body:html":e.body||""}).toString());return d().find(".aui-banner").get().forEach(function(e){"true"===e.getAttribute("aria-hidden")&&(0,i.default)(e).remove()}),function(e){var t=d();if(!t.length)throw new Error("You must implement the application header");e.prependTo(t),(0,s.recomputeStyle)(e),e.attr("aria-hidden","false")}(e),e[0]}function d(){return(0,i.default)("#"+l)}return(0,n.default)("aui/banner",c),(0,a.default)("banner",c),t.default=c,e.exports=t.default,e.exports}.call(this),("undefined"==typeof window?global:window).__4dd338db884e491026c48ea39a1c3ac0=function(){var e={},t=function(e){{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t.default=e,t}}(__68ec37e88e99d69b4016b052d1029173),i=r(__d6d162a8a9f9da3baf81680da236fddd),s=r(__bdb175876694f044f0093acbedbfa550),n=__e908cae46409563113a74c74753980ed,a=r(n);function r(e){return e&&e.__esModule?e:{default:e}}function o(e){return e.hasAttribute("aria-busy")&&"true"===e.getAttribute("aria-busy")}function l(e){return"INPUT"===e.nodeName}return(0,s.default)("aui-button",{type:s.default.type.CLASSNAME,created:function(e){e._spinner=new a.default,e._spinner.setAttribute("size",n.SIZE.SMALL.name)},prototype:{busy:function(){return l(this)||o(this)?t.warn("It is not valid to call busy() on an input button."):(this.appendChild(this._spinner),this.setAttribute("aria-busy",!0),this.setAttribute("busy","")),this},idle:function(){return l(this)||!o(this)?t.warn("It is not valid to call idle() on an input button."):(this.removeChild(this._spinner),this.removeAttribute("aria-busy"),this.removeAttribute("busy")),this},isBusy:function(){return l(this)?(t.warn("It is not valid to call isBusy() on an input button."),!1):o(this)}}}),(0,i.default)("aui/button"),e}.call(this),("undefined"==typeof window?global:window).__7cb7d30ed8ae8347dded8bce4b37521c=function(){var o,l,e={};function c(e,t){return"function"==typeof e?e.call(t):e}function d(e){for(;e=e.parentNode;)if(e==document)return 1}function r(e,t){this.$element=o(e),this.options=t,this.enabled=!0,this.fixTitle()}return o=jQuery,l=0,r.prototype={show:function(){if(d(this.$element[0])){var e=this.getTitle();if(e&&this.enabled){var t=this.tip();t.find(".tipsy-inner")[this.options.html?"html":"text"](e),t[0].className="tipsy",t.remove().css({top:0,left:0,visibility:"hidden",display:"block"}).appendTo(document.body);var i=this;this.options.hoverable&&t.hover(function(){i.hoverTooltip=!0},function(){var e;"in"!=i.hoverState&&(i.hoverTooltip=!1,"manual"!=i.options.trigger&&(e="hover"==i.options.trigger?"mouseleave.tipsy":"blur.tipsy",i.$element.trigger(e)))}),this.options.className&&t.addClass(c(this.options.className,this.$element[0]));var s=o.extend({},this.$element.offset(),{width:this.$element[0].getBoundingClientRect().width,height:this.$element[0].getBoundingClientRect().height}),n={},a=t[0].offsetWidth,r=t[0].offsetHeight,e=c(this.options.gravity,this.$element[0]);switch(2===e.length&&("w"===e.charAt(1)?n.left=s.left+s.width/2-15:n.left=s.left+s.width/2-a+15),e.charAt(0)){case"n":void 0===n.left&&(n.left=s.left+s.width/2-a/2),n.top=s.top+s.height+this.options.offset;break;case"s":void 0===n.left&&(n.left=s.left+s.width/2-a/2,t.css(n),r=t[0].offsetHeight),n.top=s.top-r-this.options.offset;break;case"e":n.left=s.left-a-this.options.offset,n.top=s.top+s.height/2-r/2;break;case"w":n.left=s.left+s.width+this.options.offset,n.top=s.top+s.height/2-r/2}t.css(n).addClass("tipsy-"+e),t.find(".tipsy-arrow")[0].className="tipsy-arrow tipsy-arrow-"+e.charAt(0),this.options.fade?t.stop().css({opacity:0,display:"block",visibility:"visible"}).animate({opacity:this.options.opacity}):t.css({visibility:"visible",opacity:this.options.opacity}),this.options.aria&&(e="tipsyuid"+l++,t.attr("id",e),this.$element.attr("aria-describedby",e))}}},destroy:function(){this.$element.removeData("tipsy"),this.unbindHandlers(),this.hide()},unbindHandlers:function(){this.options.live?o(this.$element.context).off(".tipsy"):this.$element.unbind(".tipsy")},hide:function(){this.options.fade?this.tip().stop().fadeOut(function(){o(this).remove()}):this.tip().remove(),this.options.aria&&this.$element.removeAttr("aria-describedby")},fixTitle:function(){var e=this.$element;!e.attr("title")&&"string"==typeof e.attr("original-title")||e.attr("original-title",e.attr("title")||"").removeAttr("title")},getTitle:function(){var e,t=this.$element,i=this.options;return this.fixTitle(),"string"==typeof(i=this.options).title?e=t.attr("title"==i.title?"original-title":i.title):"function"==typeof i.title&&(e=i.title.call(t[0])),(e=(""+e).replace(/(^\s*|\s*$)/,""))||i.fallback},tip:function(){return this.$tip||(this.$tip=o('<div class="tipsy"></div>').html('<div class="tipsy-arrow"></div><div class="tipsy-inner"></div>').attr("role","tooltip"),this.$tip.data("tipsy-pointee",this.$element[0])),this.$tip},validate:function(){this.$element[0].parentNode||(this.hide(),this.$element=null,this.options=null)},enable:function(){this.enabled=!0},disable:function(){this.enabled=!1},toggleEnabled:function(){this.enabled=!this.enabled}},o.fn.tipsy=function(i){if(!0===i)return this.data("tipsy");if("string"!=typeof i)return(i=o.extend({},o.fn.tipsy.defaults,i)).hoverable&&(i.delayOut=i.delayOut||20),i.live||this.each(function(){t(this)}),"manual"!=i.trigger&&(n="hover"==i.trigger?"mouseenter.tipsy focus.tipsy":"focus.tipsy",a="hover"==i.trigger?"mouseleave.tipsy blur.tipsy":"blur.tipsy",i.live?o(this.context).on(n,this.selector,e).on(a,this.selector,s):this.bind(n,e).bind(a,s)),this;function t(e){var t=o.data(e,"tipsy");return t||(t=new r(e,o.fn.tipsy.elementOptions(e,i)),o.data(e,"tipsy",t)),t}function e(){var e=t(this);e.hoverState="in",0==i.delayIn?e.show():(e.fixTitle(),setTimeout(function(){"in"==e.hoverState&&e.show()},i.delayIn))}function s(){var e=t(this);e.hoverState="out",0==i.delayOut?e.hide():setTimeout(function(){"out"!=e.hoverState||e.hoverTooltip||e.hide()},i.delayOut)}var n,a=this.data("tipsy");return a&&a[i](),this},o.fn.tipsy.defaults={aria:!1,className:null,delayIn:0,delayOut:0,fade:!1,fallback:"",gravity:"n",html:!1,live:!1,hoverable:!1,offset:0,opacity:.8,title:"title",trigger:"hover"},o.fn.tipsy.revalidate=function(){o(".tipsy").each(function(){var e=o.data(this,"tipsy-pointee");e&&d(e)||o(this).remove()})},o.fn.tipsy.elementOptions=function(e,t){return o.metadata?o.extend({},t,o(e).metadata()):t},o.fn.tipsy.autoNS=function(){return o(this).offset().top>o(document).scrollTop()+o(window).height()/2?"s":"n"},o.fn.tipsy.autoWE=function(){return o(this).offset().left>o(document).scrollLeft()+o(window).width()/2?"e":"w"},o.fn.tipsy.autoBounds=function(n,a){return function(){var e={ns:a[0],ew:1<a.length&&a[1]},t=o(document).scrollTop()+n,i=o(document).scrollLeft()+n,s=o(this);return s.offset().top<t&&(e.ns="n"),s.offset().left<i&&(e.ew="w"),o(window).width()+o(document).scrollLeft()-s.offset().left<n&&(e.ew="e"),o(window).height()+o(document).scrollTop()-s.offset().top<n&&(e.ns="s"),e.ns+(e.ew||"")}},e}.call(this),("undefined"==typeof window?global:window).__eefd09dfedf72f66253e7fd9c618acaf=function(){var e,t={},i=__e3df8976e53f6c32ff37e662cb568ca9,s=(e=i)&&e.__esModule?e:{default:e};function n(e,t,i){return e.tipsy(i),"destroy"===i&&(t.live?(0,s.default)(e.context).off(".tipsy",e.selector):e.unbind(".tipsy")),e}function a(e,t){var i;return e.tipsy(t),t&&t.hideOnClick&&("hover"===t.trigger||!t.trigger&&"hover"===e.tipsy.defaults.trigger)&&(i=function(){(0,s.default)(this).tipsy("hide")},t.live?(0,s.default)(e.context).on("click.tipsy",e.selector,i):e.bind("click.tipsy",i)),e}return __7cb7d30ed8ae8347dded8bce4b37521c,s.default.fn.tooltip=function(t){var i=s.default.extend({},s.default.fn.tooltip.defaults,t);return i.live?("string"==typeof t?n(this,i,t):a(this,i),this):this.each(function(){var e=(0,s.default)(this);return"string"==typeof t?n(e,i,t):a(e,i),e})},s.default.fn.tooltip.defaults={opacity:1,offset:1,delayIn:500,hoverable:!0,hideOnClick:!0,aria:!0},t}.call(this),("undefined"==typeof window?global:window).__7b18d0a3c12ded91239407dad543b3a4=function(){var e={exports:{}},t=e.exports;Object.defineProperty(t,"__esModule",{value:!0});var a=r(__e3df8976e53f6c32ff37e662cb568ca9);__8b47fa2322efed19fdf0afab4784a155,__eefd09dfedf72f66253e7fd9c618acaf,__a73e9e90657a207882cf3eebf38c2b4e;var i=r(__d6d162a8a9f9da3baf81680da236fddd),s=r(__bdb175876694f044f0093acbedbfa550),n=r(__ffdbd56248ebf0f23f53701f7762b6ce);function r(e){return e&&e.__esModule?e:{default:e}}var o=function(e){function t(){return(0,a.default)('<div class="aui-dropdown2-section">')}var i=t();(0,a.default)("<button />").attr({type:"button","data-aui-checkbox-multiselect-clear":"",class:"aui-button aui-button-link"}).text(AJS.I18n.getText("aui.checkboxmultiselect.clear.selected")).appendTo(i);var s=t(),n=(0,a.default)("<ul />").appendTo(s);return a.default.each(e,function(e,t){var i=(0,a.default)("<li />").attr({class:t.styleClass||""}).appendTo(n),i=(0,a.default)("<a />").text(t.label).attr("data-value",t.value).addClass("aui-dropdown2-checkbox aui-dropdown2-interactive").appendTo(i);t.icon&&(0,a.default)("<span />").addClass("aui-icon").css("backgroundImage","url("+t.icon+')")').appendTo(i),t.selected&&i.addClass("aui-dropdown2-checked")}),(0,a.default)("<div />").append(i).append(s).html()},l=function(e,t){var i=e+"-dropdown",e=(0,a.default)("<select />").attr({name:e,multiple:"multiple"}).html(t),t=(0,a.default)("<div>").attr({id:i,class:"aui-checkbox-multiselect-dropdown aui-dropdown2 aui-style-default"}),i=(0,a.default)("<button />").attr({class:"aui-checkbox-multiselect-btn aui-button aui-dropdown2-trigger",type:"button","aria-owns":i,"aria-haspopup":!0});return(0,a.default)("<div />").append(e).append(i).append(t).html()};function c(e){e=(0,a.default)(e.target);d(this,e.attr("data-value"),e.hasClass("aui-dropdown2-checked"))}function d(e,t,i){var s=e.$select.find("option").filter(function(){var e=(0,a.default)(this);return e.attr("value")===t&&e.prop("selected")!==i});s.length&&(s.prop("selected",i),e.$select.trigger("change"))}function u(e){e.$dropdown.find("[data-aui-checkbox-multiselect-clear]").prop("disabled",function(){return g(e).length<1})}function h(e){return e.map(function(){var e=(0,a.default)(this);return{value:e.val(),label:e.text(),icon:e.data("icon"),styleClass:e.data("styleClass"),title:e.attr("title"),disabled:e.attr("disabled"),selected:e.prop("selected")}})}function f(e){e.$dropdown.html(o(h(e.getOptions()))),u(e)}function p(e){var t,i=b(e),i=0===g(e).length?(t=e,(0,a.default)(t).data("allLabel")||"All"):i.join(", ");e.$btn.text(i)}function g(e){return h(e.getSelectedOptions())}function b(e){return a.default.map(g(e),function(e){return e.label})}s=(0,s.default)("aui-checkbox-multiselect",{attached:function(t){var e=t.getAttribute("name")||(0,n.default)("aui-checkbox-multiselect-");t.innerHTML=l(e,t.innerHTML),t.$select=(0,a.default)("select",t).change(function(){p(t),u(t)}),t.$dropdown=(0,a.default)(".aui-checkbox-multiselect-dropdown",t).on("aui-dropdown2-item-check",c.bind(t)).on("aui-dropdown2-item-uncheck",c.bind(t)).on("click","button[data-aui-checkbox-multiselect-clear]",t.deselectAllOptions.bind(t)),t.$btn=(0,a.default)(".aui-checkbox-multiselect-btn",t).tooltip({title:function(){return(e=t).$dropdown.is("[aria-hidden=false]")?"":b(e).join(", ");var e}}),p(t),f(t)},prototype:{getOptions:function(){return this.$select.find("option")},getSelectedOptions:function(){return this.$select.find("option:selected")},selectOption:function(e){d(this,e,!0)},unselectOption:function(e){d(this,e,!1)},getValue:function(){return this.$select.val()},deselectAllOptions:function(){this.$select.val([]).trigger("change"),this.$dropdown.find(".aui-dropdown2-checked,.checked").removeClass("aui-dropdown2-checked checked")},addOption:function(e){(0,a.default)("<option />").attr({value:e.value,icon:e.icon,disabled:e.disabled,selected:e.selected,title:e.title}).text(e.label).appendTo(this.$select),p(this),f(this)},removeOption:function(e){this.$select.find("[value='"+e+"']").remove(),p(this),f(this)}}});return(0,i.default)("aui/checkbox-multiselect"),t.default=s,e.exports=t.default,e.exports}.call(this),("undefined"==typeof window?global:window).__d1eb0c141ea65d752a2c0d3b9d45a5e7=function(){var e={exports:{}},t=e.exports;Object.defineProperty(t,"__esModule",{value:!0});var s=o(__e3df8976e53f6c32ff37e662cb568ca9),i=o(__d6d162a8a9f9da3baf81680da236fddd),n=o(__52119b4b795cb8ac461e4f7c1c107994),a=o(__00700d536822c54d659e0e6b2252cb45),r=o(__c75be7fe5bd097f4cabdbdef53290f30);function o(e){return e&&e.__esModule?e:{default:e}}var l={"aui-focus":"false","aui-blanketed":"true"};function c(e){var i;this.$el=e?(0,s.default)(e):(0,s.default)(aui.dialog.dialog2({})),i=this.$el,s.default.each(l,function(e,t){e="data-"+e;i[0].hasAttribute(e)||i.attr(e,t)})}c.prototype.on=function(e,t){return(0,a.default)(this.$el).on(e,t),this},c.prototype.off=function(e,t){return(0,a.default)(this.$el).off(e,t),this},c.prototype.show=function(){return(0,a.default)(this.$el).show(),this},c.prototype.hide=function(){return(0,a.default)(this.$el).hide(),this},c.prototype.remove=function(){return(0,a.default)(this.$el).remove(),this},c.prototype.isVisible=function(){return(0,a.default)(this.$el).isVisible()};var d=(0,r.default)("dialog2",c);return d.on=function(e,t){return a.default.on(e,".aui-dialog2",t),this},d.off=function(e,t){return a.default.off(e,".aui-dialog2",t),this},(0,s.default)(document).on("click",".aui-dialog2-header-close",function(e){e.preventDefault(),d((0,s.default)(this).closest(".aui-dialog2")).hide()}),d.on("show",function(e,t){var i;[".aui-dialog2-content",".aui-dialog2-footer",".aui-dialog2-header"].some(function(e){return(i=t.find(e+" :aui-tabbable")).length}),i&&i.first().focus()}),d.on("hide",function(e,t){var i=(0,a.default)(t);t.data("aui-remove-on-hide")&&i.remove()}),(0,i.default)("aui/dialog2",d),(0,n.default)("dialog2",d),t.default=d,e.exports=t.default,e.exports}.call(this),("undefined"==typeof window?global:window).__d6337ae9134a6dac91668eda2e5b7e46=function(){var e,t={},i=__e3df8976e53f6c32ff37e662cb568ca9,s=(e=i)&&e.__esModule?e:{default:e};function n(e){var t={};return t.$trigger=(0,s.default)(e.currentTarget),t.$content=r.find("#"+t.$trigger.attr("aria-controls")),t.triggerIsParent=0!==t.$content.parent().filter(t.$trigger).length,t.$shortContent=t.triggerIsParent?t.$trigger.find(".aui-expander-short-content"):null,t.height=t.$content.css("min-height"),t.isCollapsible=!1!==t.$trigger.data("collapsible"),t.replaceText=t.$trigger.attr("data-replace-text"),t.replaceSelector=t.$trigger.data("replace-selector"),t}function a(e){var t;e.replaceText&&(t=e.replaceSelector?e.$trigger.find(e.replaceSelector):e.$trigger,e.$trigger.attr("data-replace-text",t.text()),t.text(e.replaceText))}var r=(0,s.default)(document),o={"aui-expander-invoke":function(e){var t=(0,s.default)(e.currentTarget),i=r.find("#"+t.attr("aria-controls")),e=!1!==t.data("collapsible");"true"===i.attr("aria-expanded")&&e?t.trigger("aui-expander-collapse"):t.trigger("aui-expander-expand")},"aui-expander-expand":function(e){e=n(e);"true"!==e.$content.attr("aria-expanded")&&(e.$content.attr("aria-expanded","true"),e.$trigger.attr("aria-expanded","true"),0<e.$content.outerHeight()&&e.$content.attr("aria-hidden","false"),a(e),e.triggerIsParent&&e.$shortContent.hide(),e.$trigger.trigger("aui-expander-expanded"))},"aui-expander-collapse":function(e){e=n(e);"true"===e.$content.attr("aria-expanded")&&(a(e),e.$content.attr("aria-expanded","false"),e.$trigger.attr("aria-expanded","false"),e.triggerIsParent&&e.$shortContent.show(),0===e.$content.outerHeight()&&e.$content.attr("aria-hidden","true"),e.$trigger.trigger("aui-expander-collapsed"))},"click.aui-expander":function(e){(0,s.default)(e.currentTarget).trigger("aui-expander-invoke",e.currentTarget)}};return r.on(o,".aui-expander-trigger"),t}.call(this),("undefined"==typeof window?global:window).__63842ce3aa76245caa2a9fef29e12d33=function(){var e={exports:{}},t=e.exports;Object.defineProperty(t,"__esModule",{value:!0});var n=c(__e3df8976e53f6c32ff37e662cb568ca9),a=__5301031faa4c29027b24a78d0f4e7fbd,i=c(__d6d162a8a9f9da3baf81680da236fddd),s=c(__52119b4b795cb8ac461e4f7c1c107994),r=c(__65f54629a086aa33db4a64cb0e39ebbe),o=c(__34a31bed02119b918ec8421610fe5335),l=c(__2873350341426b81edda3bd72a380ee0);function c(e){return e&&e.__esModule?e:{default:e}}var d=5e3,u="aui-flag-container",h={body:"",close:"manual",title:"",type:"info"};function f(e){var t,i,s=function(e){e=(0,o.default)('<div class="aui-flag"><div class="aui-message aui-message-{type} {type} {closeable} shadowed"><p class="title"><strong>{title}</strong></p>{body}\x3c!-- .aui-message --\x3e</div></div>').fill({"body:html":e.body||"",closeable:"never"===e.close?"":"closeable",title:e.title||"",type:e.type}).toString();return(0,n.default)(e)}(e=n.default.extend({},h,e));return(t=s)[0].close=function(){g(t)},"auto"===e.close?(p(s),(i=s).find(".aui-message").addClass("aui-will-close"),setTimeout(function(){i[0].close()},d)):"manual"===e.close&&p(s),b().find(".aui-flag").get().forEach(function(e){"true"===e.getAttribute("aria-hidden")&&(0,n.default)(e).remove()}),function(e){var t=b();t.length||(t=(0,n.default)('<div id="'+u+'"></div>'),(0,n.default)("body").prepend(t));return e.appendTo(t),(0,a.recomputeStyle)(e),e.attr("aria-hidden","false")[0]}(s)}function p(t){var e=(0,n.default)('<span class="aui-icon icon-close" role="button" tabindex="0"></span>');return e.click(function(){g(t)}),e.keypress(function(e){e.which!==r.default.ENTER&&e.which!==r.default.SPACE||(g(t),e.preventDefault())}),t.find(".aui-message").append(e)[0]}function g(e){e=e.get(0);return e.setAttribute("aria-hidden","true"),e.dispatchEvent(new l.default("aui-flag-close",{bubbles:!0})),e}function b(){return(0,n.default)("#"+u)}return(0,i.default)("aui/flag",f),(0,s.default)("flag",f),t.default=f,e.exports=t.default,e.exports}.call(this),("undefined"==typeof window?global:window).__5542d305a39e0ddbc246d521520fe23e=function(){var e={},r=a(__e3df8976e53f6c32ff37e662cb568ca9);__7cb7d30ed8ae8347dded8bce4b37521c;var s=function(e){{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t.default=e,t}}(__68ec37e88e99d69b4016b052d1029173),t=a(__d6d162a8a9f9da3baf81680da236fddd),n=a(__65f54629a086aa33db4a64cb0e39ebbe),i=a(__bdb175876694f044f0093acbedbfa550);function a(e){return e&&e.__esModule?e:{default:e}}var o="aui-form-notification",l="_aui-form-notification-initialised",c="aui-icon-notification",d=o+"-tooltip",u=d+"-error",h=d+"-info",d="data-aui-notification-",f=d+"wait",p=d+"info",g=d+"error",b=o+"-position",v=[g,"data-aui-notification-success",f,p],m=[],_=1,w=9,y=3;function x(e){var t,i;C(e)||((i=e).addClass(l),function(e){var t=(0,r.default)('<span class="aui-icon aui-icon-small '+c+'"/>');e.after(t)}(i),M(t=e).tipsy({gravity:function(e){var t=e.data(b)||"side",e={side:"w",top:"se",bottom:"ne"}[t];e||(e="w",s.warn('Invalid notification position: "'+t+'". Valid options are "side", "bottom, "top"'));return e}(t),title:function(){return A(t)},trigger:"manual",offset:function(e){return-1!==E.indexOf(e.attr("type"))}(t)?w:y,opacity:_,className:function(){return"aui-form-notification-tooltip "+function(e){e=T(e);{if(e===g)return u;if(e===p)return h}}(t)},html:!0}),R(i=e)&&function(i){i.on("keydown",function(e){var t;!N(e)||""===A(i)||(t=D(i)).length&&(t.focus(),e.preventDefault())})}(i),F(e)),m.push(e)}function C(e){return e.hasClass(l)}var S,E=["text","url","email","tel","password"];function A(e){var t=T(e);return function(e){if(""===e)return e;e=function(t){var i;try{i=JSON.parse(t)}catch(e){i=[t]}return i}(e);return 1===e.length?e[0]:"<ul><li>"+e.join("</li><li>")+"</li></ul>"}(t?e.attr(t):"")}function T(t){var i;return v.some(function(e){if(t.is("["+e+"]"))return i=e,!0}),i}function R(e){return e.is(":aui-focusable")}function O(e){var s;M(e).tipsy("show"),R(e)&&k(s=e).on("keydown",function(e){var t=L(k(s).find(":aui-tabbable").last()),i=L(D(s));N(e)&&t&&t&&s.focus(),(t=e).keyCode===n.default.TAB&&t.shiftKey&&i&&i&&(s.focus(),e.preventDefault())})}function I(e){M(e).tipsy("hide")}function $(e,t){return 0<(0,r.default)(e.target).closest(t).length}function N(e){return e.keyCode===n.default.TAB&&!e.shiftKey&&!e.altKey}function D(e){return k(e).find(":aui-tabbable").first()}function k(e){e=M(e);if(e.data("tipsy"))return e.data("tipsy").$tip}function M(e){return P(e)}function P(e){return e.next("."+c)}function L(e){e=e instanceof r.default?e[0]:e;return e&&e===document.activeElement}function F(e){var t,i=(0,r.default)(e);C(i)&&(t=T(i),e=i,t===f?P(e).addClass("aui-icon-wait"):P(e).removeClass("aui-icon-wait"),!t?I(i):(t=A(i),((r.default.contains(i[0],document.activeElement)||L(i)||!R(i))&&t?O:I)(i)))}return document.addEventListener("focus",function(a){m.forEach(function(e){var t,i,s=(0,r.default)(e),n=k(s);R(s)&&(t=n&&r.default.contains(n[0],a.target),i=s.is(a.target),e=$(a,s),i||e?O(s):n&&!t&&I(s))})},!0),document.addEventListener("mousedown",function(s){(0,r.default)(s.target).is("a")||0<(0,r.default)(s.target).closest(".aui-form-notification-tooltip").length||(0,r.default)("[data-aui-notification-field]").each(function(){var e=(0,r.default)(this),t=e.is(s.target),i=$(s,e);t||i||I(e),R(e)&&I(e)})}),(0,i.default)("data-aui-notification-field",{attached:function(e){x((0,r.default)(e))},attributes:(S={},v.forEach(function(e){S[e]=F}),S),type:i.default.type.ATTRIBUTE}),(0,t.default)("aui/form-notification"),e}.call(this),("undefined"==typeof window?global:window).__acddd303fba34b0e9271fad3f621e314=function(){var e={exports:{}},t=e.exports;Object.defineProperty(t,"__esModule",{value:!0});var a=s(__e3df8976e53f6c32ff37e662cb568ca9),r=function(e){{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t.default=e,t}}(__68ec37e88e99d69b4016b052d1029173),i=s(__d6d162a8a9f9da3baf81680da236fddd);function s(e){return e&&e.__esModule?e:{default:e}}var o=["displayfield","watchfield","when","novalidate","state"],l=[];var n={register:function(e,t){var i;if("string"==typeof e)n=e;else{var s=(i=!1,e.some(function(e){var t=-1!==a.default.inArray(e,o);return t&&(i=e),t}),i);if(s)return r.warn('Validators cannot be registered with the argument "'+s+'", as it is a reserved argument.'),!1;n="[data-aui-validation-"+e.join("],[data-aui-validation-")+"]"}var n={validatorFunction:t,validatorTrigger:n};return l.push(n),n},validators:function(){return l}};return(0,i.default)("aui/form-validation/validator-register",n),t.default=n,e.exports=t.default,e.exports}.call(this),("undefined"==typeof window?global:window).__4d7e5936b4d8fe2c8bd0c7b0d3e049e5=function(){var e={},a=s(__e3df8976e53f6c32ff37e662cb568ca9),t=s(__d6d162a8a9f9da3baf81680da236fddd),i=(s(__a07072ac984a4655b0f22a349e38e2aa),s(__a73e9e90657a207882cf3eebf38c2b4e),s(__acddd303fba34b0e9271fad3f621e314));function s(e){return e&&e.__esModule?e:{default:e}}function n(e){var t,i=e.el.value.length,s=0===i,n=parseInt(e.args("minlength"),10),a=parseInt(e.args("maxlength"),10);n&&a&&n===a&&!s&&i!==n?(t=u("exactlength",e.args,[n]),e.invalidate(t)):n&&i<n&&!s?(s=u("minlength",e.args),e.invalidate(s)):a&&a<i?(i=u("maxlength",e.args),e.invalidate(i)):e.validate()}function r(e){return"password"===e.getAttribute("type")}function o(e,t){t=e.match(t);return!!t&&e===t[0]}function l(e){var t=u("pattern",e.args);o(e.el.value,new RegExp(e.args("pattern")))?e.validate():e.invalidate(t)}function c(e){var t=u("required",e.args);e.el.value?e.validate():e.invalidate(t)}function d(e){var t,i=u("validnumber",e.args),s=parseInt(e.el.value,10);isNaN(s)?e.invalidate(i):(t=e.args("min"),i=e.args("max"),t&&s<parseInt(t,10)?e.invalidate(u("min",e.args)):i&&s>parseInt(i,10)?e.invalidate(u("max",e.args)):e.validate())}function u(e,t,i){var s=void 0!==AJS.I18n.keys?AJS.I18n.keys["aui.validation.message."+e]:h[e],n=i;i||(n=[t(e)]);e=t(e+"-msg"),n=(e?[e]:[s]).concat(n);return AJS.format.apply(null,n)}i.default.register(["maxlength","minlength"],n),i.default.register("[maxlength],[minlength]",n),i.default.register(["matchingfield"],function(e){var t=e.el.value,i=document.getElementById(e.args("matchingfield")),s=i.value,n=u("matchingfield",e.args,[t,s]);(r(e.el)||r(i))&&(n=u("matchingfield-novalue",e.args)),t&&s&&s!==t?e.invalidate(n):e.validate()}),i.default.register(["doesnotcontain"],function(e){var t=u("doesnotcontain",e.args);-1===e.el.value.indexOf(e.args("doesnotcontain"))?e.validate():e.invalidate(t)}),i.default.register(["pattern"],l),i.default.register("[pattern]",l),i.default.register(["required"],c),i.default.register("[required]",c),i.default.register(["min","max"],d),i.default.register("[min],[max]",d),i.default.register(["dateformat"],function(e){var t=e.args("dateformat"),i=u("dateformat",e.args),s={Y:"[0-9]{4}",y:"[0-9]{2}",m:"(0?[1-9]|10|11|12)",M:"[Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec]",D:"[Mon|Tue|Wed|Thu|Fri|Sat|Sun]",d:"([0-2]?[1-9]|10|20|30|31)"},t=t.split(""),n="";t.forEach(function(e){var t=s.hasOwnProperty(e);n+=t?s[e]:e});t=new RegExp(n+"$","i");o(e.el.value,t)?e.validate():e.invalidate(i)}),i.default.register(["minchecked","maxchecked"],function(e){var t=(0,a.default)(e.el).find(":checked").length,i=!e.args("minchecked")||t>=e.args("minchecked"),s=!e.args("maxchecked")||t<=e.args("maxchecked"),n=u("minchecked",e.args),t=u("maxchecked",e.args);i&&s?e.validate():i?s||e.invalidate(t):e.invalidate(n)});var h={minlength:AJS.I18n.getText("aui.validation.message.minlength"),maxlength:AJS.I18n.getText("aui.validation.message.maxlength"),exactlength:AJS.I18n.getText("aui.validation.message.exactlength"),matchingfield:AJS.I18n.getText("aui.validation.message.matchingfield"),"matchingfield-novalue":AJS.I18n.getText("aui.validation.message.matchingfield-novalue"),doesnotcontain:AJS.I18n.getText("aui.validation.message.doesnotcontain"),pattern:AJS.I18n.getText("aui.validation.message.pattern"),required:AJS.I18n.getText("aui.validation.message.required"),validnumber:AJS.I18n.getText("aui.validation.message.validnumber"),min:AJS.I18n.getText("aui.validation.message.min"),max:AJS.I18n.getText("aui.validation.message.max"),dateformat:AJS.I18n.getText("aui.validation.message.dateformat"),minchecked:AJS.I18n.getText("aui.validation.message.minchecked"),maxchecked:AJS.I18n.getText("aui.validation.message.maxchecked")};return(0,t.default)("aui/form-validation/basic-validators"),e}.call(this),("undefined"==typeof window?global:window).__7b56459c30710d67791b696b2b4232fb=function(){var e={exports:{}},t=e.exports;Object.defineProperty(t,"__esModule",{value:!0});var r=l(__e3df8976e53f6c32ff37e662cb568ca9);__5542d305a39e0ddbc246d521520fe23e,__4d7e5936b4d8fe2c8bd0c7b0d3e049e5;var i=l(__d6d162a8a9f9da3baf81680da236fddd),o=function(e){{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t.default=e,t}}(__29033a6975c2d8d795cf854beedd6f05),s=l(__52119b4b795cb8ac461e4f7c1c107994),n=l(__bdb175876694f044f0093acbedbfa550),a=l(__acddd303fba34b0e9271fad3f621e314);function l(e){return e&&e.__esModule?e:{default:e}}var c="aui-validation-",d="data-aui-notification-",u="aui-validation-state",h="invalid",f="valid",p="validating",g="unvalidated",b="_aui-form-validation-initialised",v="_aui-internal-field-state-changed";function m(e){var t;e.hasClass(b)||(E(e).attr("data-aui-notification-field",""),e.addClass(b),function(e){function t(){e.trigger("aui-stop-typing")}var i;e.on("keyup",function(){clearTimeout(i),i=setTimeout(t,1500)})}(t=e),function(e){var t=w(e,"when"),i=w(e,"watchfield");(i?e.add("#"+i):e).on(t,function(){_(e)})}(t),x(e,g))}function _(e){if(!w(e,"novalidate"))return function(e){!function(e){C(E(e),"none")}(e);var t=function(i){var s=[];return y().forEach(function(e,t){e=e.validatorTrigger;i.is(e)&&s.push(t)}),s}(e);x(e,p);t=function(n,e){var a=[];return e.forEach(function(e){var t,i,s=y()[e].validatorFunction,e=new r.default.Deferred;s((i=e,s={validate:function(){i.resolve()},invalidate:function(e){x(t,h,e),i.reject()},args:function(t){return function(e){return t.attr("data-"+c+e)||t.attr(e)}}(t=n),el:t[0],$el:t},o.prop(s,"$el",{sinceVersion:"5.9.0",removeInVersion:"8.0.0",alternativeName:"el",extraInfo:"See https://ecosystem.atlassian.net/browse/AUI-3263."}),s)),a.push(e)}),a}(e,t),t=r.default.when.apply(r.default,t);return t.done(function(){x(e,f)}),t}(e);x(e,f)}function w(e,t){return e.attr("data-"+c+t)||{when:"change"}[t]}function y(){return a.default.validators()}function x(e,t,i){var s,n,a;e.attr("data-"+u,t),t!==g&&(e.trigger(r.default.Event(v)),s=E(e),(n={})[p]="wait",n[h]="error",n[f]="success",n=n[t],t===p?(a=e,setTimeout(function(){A(a)===p&&C(a,"wait")},500)):C(s,n,i))}function C(e,t,i){var s,n=e.is("["+d+"wait]");S(s=e,"wait"),S(s,"success"),"success"===t&&!n||("none"===t?S(e,"error"):(n=e.attr(d+t)||"[]",n=i?function(e,t){e=JSON.parse(t).concat([e]);return JSON.stringify(e)}(i,n):"",e.attr(d+t,n)))}function S(e,t){e.removeAttr(d+t)}function E(e){var t=w(e,"displayfield");return void 0===t?e:(0,r.default)("#"+t)}function A(e){return e.attr("data-"+u)}function T(e,t){t.preventDefault(),e.one(v,function(){e.trigger("submit")})}function R(e,t){return e.find("[data-"+u+"="+t+"]")}(0,r.default)(document).on("submit",function(e){var t=e.target,i=(0,r.default)(t),t=function(e){var t=-1!==e.indexOf(h),i=-1!==e.indexOf(g),e=-1!==e.indexOf(p);return t?h:i?g:e?p:f}(function(e){return r.default.map(e,function(e){return A((0,r.default)(e))})}(i.find("."+b)));t===g?(T(i,e),R(i,g).each(function(e,t){O.validate((0,r.default)(t))})):t===p?T(i,e):t===h?(e.preventDefault(),R(i,h).first().focus()):t===f&&(t=r.default.Event("aui-valid-submit"),i.trigger(t),t.isDefaultPrevented()&&e.preventDefault())});var O={register:a.default.register,validate:function(e){_(e=(0,r.default)(e))}};return(0,n.default)("data-aui-validation-field",{attached:function(e){e.form&&e.form.setAttribute("novalidate","novalidate"),m((0,r.default)(e)),n.default.init(e)},type:n.default.type.ATTRIBUTE}),(0,i.default)("aui/form-validation",O),(0,s.default)("formValidation",O),t.default=O,e.exports=t.default,e.exports}.call(this),("undefined"==typeof window?global:window).__32c4d04c93f24102de40b3b8d37a29e5=function(){var e={},t=e;Object.defineProperty(t,"__esModule",{value:!0});return t.INPUT_SUFFIX="-input",e}.call(this),("undefined"==typeof window?global:window).__fa2a1b222b12f264e69f851ed5276bdc=function(){var e={exports:{}},t=e.exports;Object.defineProperty(t,"__esModule",{value:!0});var i=r(__bdb175876694f044f0093acbedbfa550),s=r(__d524069b90f4a939cdb32a72c6236eab),n=r(__85962a105802c5c482d32f9293d5849a),a=__32c4d04c93f24102de40b3b8d37a29e5;function r(e){return e&&e.__esModule?e:{default:e}}function o(e){return e.querySelector("label")}s=(0,i.default)("aui-label",{template:(0,s.default)("<label><content></content></label>"),created:function(e){e._label=o(e)},attached:function(e){(0,n.default)(e).attributeExists("for")},attributes:{for:function(e,t){e.hasAttribute("for")?o(e).setAttribute("for",""+t.newValue+a.INPUT_SUFFIX):o(e).removeAttribute("for")},form:function(e,t){e.hasAttribute("form")?o(e).setAttribute("form",t.newValue):o(e).removeAttribute("form")}},prototype:{get disabled(){return this.hasAttribute("disabled")},set disabled(e){e?this.setAttribute("disabled",""):this.removeAttribute("disabled")}},events:{click:function(e,t){e.disabled&&t.preventDefault()}}});return t.default=s,e.exports=t.default,e.exports}.call(this),("undefined"==typeof window?global:window).__6a981215cf2b7f8db2cbb4a4fd701618=function(){var e={exports:{}},t=e.exports;Object.defineProperty(t,"__esModule",{value:!0});var r=c(__e3df8976e53f6c32ff37e662cb568ca9),i=c(__b4cbeb27930fa8e67150d23a610bb0e3),s=c(__aae8fe0fe8752991ddcb3aa81f503f83),n=__5301031faa4c29027b24a78d0f4e7fbd,o=__8bd5a03457d7c8fd60fc97f7bb34600d,a=function(e){{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t.default=e,t}}(__29033a6975c2d8d795cf854beedd6f05),l=c(__52119b4b795cb8ac461e4f7c1c107994);function c(e){return e&&e.__esModule?e:{default:e}}var d="aui-progress-indicator-after-update",u="aui-progress-indicator-before-update",h="transitionend webkitTransitionEnd";function f(e,t,i){(0,n.recomputeStyle)(e),e.css("width",100*i+"%"),t.attr("data-value",i)}function p(e,t,i){var s=i.currentProgress,n=i.value,e=(0,r.default)(e),a=(0,r.default)(t);"number"==typeof n&&n<=1&&0<=n&&(a.trigger(u,[s,n]),(0,o.supportsCssTransition)()?(e.one(h,function(){a.trigger(d,[s,n])}),f(e,a,n)):(f(e,a,n),a.trigger(d,[s,n])))}function g(e){var t=(0,r.default)(e).first(),e=t.children(".aui-progress-indicator-value");t.removeAttr("data-value"),(0,n.recomputeStyle)(t),e.css("width","")}var b={indeterminate:!1,max:1,val:0};function v(e){return i.default.isNumber(e)&&i.default.isFinite(e)&&!i.default.isNaN(e)}function m(e,t){var i=1<arguments.length&&void 0!==t?t:1,s=parseFloat(e);return v(s)?s:Number(i)}function _(e,t){var i=1<arguments.length&&void 0!==t?t:1;return Number(parseFloat(e).toFixed(i))}function w(e){var t=e.val,i=e.max,i=0<(e=i)?e:b.max,e=(e=t,t=i,Math.max(0,Math.min(e,t))),t=_(e/i,6);return{max:i,val:e,valAsFraction:t,valAsPercent:_(100*t,2)}}function y(e){var t=w(e._data),i=t.val,s=t.valAsFraction,n=t.max,a=e.querySelector(".aui-progress-indicator"),t=a.getAttribute("data-value");e.indeterminate?(a.removeAttribute("aria-valuenow"),g(a)):(a.setAttribute("aria-valuenow",i),a.setAttribute("aria-valuemax",n),p(a.querySelector(".aui-progress-indicator-value"),a,{currentProgress:t,value:s}))}function x(e,t){e._data.val=m(t.newValue,t.oldValue||b.val),y(e)}function C(e,t){e._data.max=m(t.newValue,t.oldValue||b.max),y(e)}(0,s.default)("aui-progressbar",{template:function(e){e._data.max=m(e.getAttribute("max"),b.max),e._data.val=m(e.getAttribute("value"),b.val),e._data.indeterminate=e.hasAttribute("indeterminate");var t=w(e._data),i=t.val,s=t.max,n=t.valAsFraction,t=t.valAsPercent,n=e._data.indeterminate?"":'data-value="'+n+'"';e.innerHTML='<div class="aui-progress-indicator"\n '+n+'\n role="progressbar"\n aria-valuemin="0"\n aria-valuenow="'+i+'"\n aria-valuemax="'+s+'"\n tabindex="0"\n >\n <span class="aui-progress-indicator-value" style="width: '+t+'%"></span>\n </div>'},attached:function(e){y(e)},attributes:{indeterminate:{created:function(e){e.indeterminate=!0},removed:function(e){e.indeterminate=!1}},value:{value:b.val,fallback:function(e,t){if(e._updating)return!1;x(e,t)}},max:{value:b.max,fallback:function(e,t){if(e._updating)return!1;C(e,t)}}},prototype:{get _data(){return this.__data||(this._data=i.default.defaults({},b))},set _data(e){return this.__data=e},get indeterminate(){return this._data.indeterminate},set indeterminate(e){this._data.indeterminate=!!e,y(this)},get value(){return w(this._data).val},set value(e){if(!v(e))return!1;e={newValue:_(e,6)};this._updating=!0,this.setAttribute("value",e.newValue),this._updating=!1,x(this,e)},get max(){return w(this._data).max},set max(e){if(!v(e))return!1;e={newValue:_(e,6)};this._updating=!0,this.setAttribute("max",e.newValue),this._updating=!1,C(this,e)}}});a={update:a.fn(function(e,t){"string"!=typeof e||(a=document.getElementById(e))&&(e=a);var i=(0,r.default)(e).first(),s=i.children(".aui-progress-indicator-value"),n=i.attr("data-value"),a=!n,e=parseFloat(n)||0;if(!(n=(n=n&&e===t)&&e===100*(parseFloat(s.get(0).style.width)||0)))return a&&s.css("width",0),p(s,i,{currentProgress:e,value:t}),i},"AJS.progressBars.update",{sinceVersion:"7.7.0",extraInfo:"Use the <aui-progressbar> web component instead"}),setIndeterminate:a.fn(g,"AJS.progressBars.setIndeterminate",{sinceVersion:"7.7.0",extraInfo:"Use the <aui-progressbar> web component instead"})};return(0,l.default)("progressBars",a),t.default=a,e.exports=t.default,e.exports}.call(this),("undefined"==typeof window?global:window).__9c0e4a797159551dfc3473cc5b4fb7db=function(){var r,o={exports:{}},l=o.exports,c={module:o,exports:l,underscore:__ead92f074770cf59bc34a1913cf50658,jquery:__e3df8976e53f6c32ff37e662cb568ca9,underscore:__ead92f074770cf59bc34a1913cf50658,jquery:__e3df8976e53f6c32ff37e662cb568ca9},i=(r="__9c0e4a797159551dfc3473cc5b4fb7db",function(e,t,i){var s,n,a=("undefined"==typeof window?global:window).define;i=[i,t,e].filter(function(e){return"function"==typeof e})[0],t=[t,e,[]].filter(Array.isArray)[0],n=typeof(s=i.apply(null,t.map(function(e){return c[e]}))),"function"==typeof a&&a("string"==typeof e?e:r,t,i),"string"==n?s=String(s):"number"==n?s=Number(s):"boolean"==n&&(s=Boolean(s)),void 0!==s&&(l=o.exports=s)});return i.amd=!0,function(s,n){if("function"==typeof i&&i.amd)i(["underscore","jquery","exports"],function(e,t,i){s.Backbone=n(s,i,e,t)});else if(void 0!==l){var e,t=__ead92f074770cf59bc34a1913cf50658;try{e=__e3df8976e53f6c32ff37e662cb568ca9}catch(e){}n(s,l,t,e)}else s.Backbone=n(s,{},s._,s.jQuery||s.Zepto||s.ender||s.$)}(this,function(e,r,f,t){var i=(e=this).Backbone,s=[],p=s.push,n=s.slice,g=s.splice;r.VERSION="1.0.0",r.$=t,r.noConflict=function(){return e.Backbone=i,this},r.emulateHTTP=!1,r.emulateJSON=!1;var a=r.Events={on:function(e,t,i){return u(this,"on",e,[t,i])&&t&&(this._events||(this._events={}),(this._events[e]||(this._events[e]=[])).push({callback:t,context:i,ctx:i||this})),this},once:function(e,t,i){if(!u(this,"once",e,[t,i])||!t)return this;var s=this,n=f.once(function(){s.off(e,n),t.apply(this,arguments)});return n._callback=t,this.on(e,n,i)},off:function(e,t,i){var s,n,a,r,o,l,c,d;if(!this._events||!u(this,"off",e,[t,i]))return this;if(!e&&!t&&!i)return this._events={},this;for(o=0,l=(r=e?[e]:f.keys(this._events)).length;o<l;o++)if(e=r[o],a=this._events[e]){if(this._events[e]=s=[],t||i)for(c=0,d=a.length;c<d;c++)n=a[c],(t&&t!==n.callback&&t!==n.callback._callback||i&&i!==n.context)&&s.push(n);s.length||delete this._events[e]}return this},trigger:function(e){if(!this._events)return this;var t=n.call(arguments,1);if(!u(this,"trigger",e,t))return this;var i=this._events[e],s=this._events.all;return i&&o(i,t),s&&o(s,arguments),this},stopListening:function(e,t,i){var s=this._listeners;if(!s)return this;var n,a=!t&&!i;for(n in"object"==typeof t&&(i=this),e&&((s={})[e._listenerId]=e),s)s[n].off(t,i,this),a&&delete this._listeners[n];return this}},l=/\s+/,u=function(e,t,i,s){if(!i)return!0;if("object"==typeof i){for(var n in i)e[t].apply(e,[n,i[n]].concat(s));return!1}if(l.test(i)){for(var a=i.split(l),r=0,o=a.length;r<o;r++)e[t].apply(e,[a[r]].concat(s));return!1}return!0},o=function(e,t){var i,s=-1,n=e.length,a=t[0],r=t[1],o=t[2];switch(t.length){case 0:for(;++s<n;)(i=e[s]).callback.call(i.ctx);return;case 1:for(;++s<n;)(i=e[s]).callback.call(i.ctx,a);return;case 2:for(;++s<n;)(i=e[s]).callback.call(i.ctx,a,r);return;case 3:for(;++s<n;)(i=e[s]).callback.call(i.ctx,a,r,o);return;default:for(;++s<n;)(i=e[s]).callback.apply(i.ctx,t)}};f.each({listenTo:"on",listenToOnce:"once"},function(s,e){a[e]=function(e,t,i){return((this._listeners||(this._listeners={}))[e._listenerId||(e._listenerId=f.uniqueId("l"))]=e)[s](t,i="object"==typeof t?this:i,this),this}}),a.bind=a.on,a.unbind=a.off,f.extend(r,a);var c=r.Model=function(e,t){var i,s=e||{};t=t||{},this.cid=f.uniqueId("c"),this.attributes={},f.extend(this,f.pick(t,d)),t.parse&&(s=this.parse(s,t)||{}),(i=f.result(this,"defaults"))&&(s=f.defaults({},s,i)),this.set(s,t),this.changed={},this.initialize.apply(this,arguments)},d=["url","urlRoot","collection"];f.extend(c.prototype,a,{changed:null,validationError:null,idAttribute:"id",initialize:function(){},toJSON:function(e){return f.clone(this.attributes)},sync:function(){return r.sync.apply(this,arguments)},get:function(e){return this.attributes[e]},escape:function(e){return f.escape(this.get(e))},has:function(e){return null!=this.get(e)},set:function(e,t,i){var s,n,a,r,o,l,c;if(null==e)return this;if("object"==typeof e?(n=e,i=t):(n={})[e]=t,!this._validate(n,i=i||{}))return!1;for(s in a=i.unset,o=i.silent,r=[],e=this._changing,this._changing=!0,e||(this._previousAttributes=f.clone(this.attributes),this.changed={}),c=this.attributes,l=this._previousAttributes,this.idAttribute in n&&(this.id=n[this.idAttribute]),n)t=n[s],f.isEqual(c[s],t)||r.push(s),f.isEqual(l[s],t)?delete this.changed[s]:this.changed[s]=t,a?delete c[s]:c[s]=t;if(!o){r.length&&(this._pending=!0);for(var d=0,u=r.length;d<u;d++)this.trigger("change:"+r[d],this,c[r[d]],i)}if(e)return this;if(!o)for(;this._pending;)this._pending=!1,this.trigger("change",this,i);return this._pending=!1,this._changing=!1,this},unset:function(e,t){return this.set(e,void 0,f.extend({},t,{unset:!0}))},clear:function(e){var t,i={};for(t in this.attributes)i[t]=void 0;return this.set(i,f.extend({},e,{unset:!0}))},hasChanged:function(e){return null==e?!f.isEmpty(this.changed):f.has(this.changed,e)},changedAttributes:function(e){if(!e)return!!this.hasChanged()&&f.clone(this.changed);var t,i,s=!1,n=this._changing?this._previousAttributes:this.attributes;for(i in e)f.isEqual(n[i],t=e[i])||((s=s||{})[i]=t);return s},previous:function(e){return null!=e&&this._previousAttributes?this._previousAttributes[e]:null},previousAttributes:function(){return f.clone(this._previousAttributes)},fetch:function(t){void 0===(t=t?f.clone(t):{}).parse&&(t.parse=!0);var i=this,s=t.success;return t.success=function(e){if(!i.set(i.parse(e,t),t))return!1;s&&s(i,e,t),i.trigger("sync",i,e,t)},$(this,t),this.sync("read",this,t)},save:function(e,t,i){var s,n=this.attributes;if(null==e||"object"==typeof e?(s=e,i=t):(s={})[e]=t,s&&(!i||!i.wait)&&!this.set(s,i))return!1;if(i=f.extend({validate:!0},i),!this._validate(s,i))return!1;s&&i.wait&&(this.attributes=f.extend({},n,s)),void 0===i.parse&&(i.parse=!0);var a=this,r=i.success;return i.success=function(e){a.attributes=n;var t=a.parse(e,i);if(i.wait&&(t=f.extend(s||{},t)),f.isObject(t)&&!a.set(t,i))return!1;r&&r(a,e,i),a.trigger("sync",a,e,i)},$(this,i),"patch"==(t=this.isNew()?"create":i.patch?"patch":"update")&&(i.attrs=s),t=this.sync(t,this,i),s&&i.wait&&(this.attributes=n),t},destroy:function(t){t=t?f.clone(t):{};function i(){s.trigger("destroy",s,s.collection,t)}var s=this,n=t.success;if(t.success=function(e){(t.wait||s.isNew())&&i(),n&&n(s,e,t),s.isNew()||s.trigger("sync",s,e,t)},this.isNew())return t.success(),!1;$(this,t);var e=this.sync("delete",this,t);return t.wait||i(),e},url:function(){var e=f.result(this,"urlRoot")||f.result(this.collection,"url")||I();return this.isNew()?e:e+("/"===e.charAt(e.length-1)?"":"/")+encodeURIComponent(this.id)},parse:function(e,t){return e},clone:function(){return new this.constructor(this.attributes)},isNew:function(){return null==this.id},isValid:function(e){return this._validate({},f.extend(e||{},{validate:!0}))},_validate:function(e,t){if(!t.validate||!this.validate)return!0;e=f.extend({},this.attributes,e);e=this.validationError=this.validate(e,t)||null;return!e||(this.trigger("invalid",this,e,f.extend(t||{},{validationError:e})),!1)}});f.each(["keys","values","pairs","invert","pick","omit"],function(t){c.prototype[t]=function(){var e=n.call(arguments);return e.unshift(this.attributes),f[t].apply(f,e)}});var h=r.Collection=function(e,t){(t=t||{}).url&&(this.url=t.url),t.model&&(this.model=t.model),void 0!==t.comparator&&(this.comparator=t.comparator),this._reset(),this.initialize.apply(this,arguments),e&&this.reset(e,f.extend({silent:!0},t))},b={add:!0,remove:!0,merge:!0},v={add:!0,merge:!1,remove:!1};f.extend(h.prototype,a,{model:c,initialize:function(){},toJSON:function(t){return this.map(function(e){return e.toJSON(t)})},sync:function(){return r.sync.apply(this,arguments)},add:function(e,t){return this.set(e,f.defaults(t||{},v))},remove:function(e,t){var i,s,n,a;for(t=t||{},i=0,s=(e=f.isArray(e)?e.slice():[e]).length;i<s;i++)(a=this.get(e[i]))&&(delete this._byId[a.id],delete this._byId[a.cid],n=this.indexOf(a),this.models.splice(n,1),this.length--,t.silent||(t.index=n,a.trigger("remove",a,this,t)),this._removeReference(a));return this},set:function(e,t){var i,s,n;(t=f.defaults(t||{},b)).parse&&(e=this.parse(e,t)),f.isArray(e)||(e=e?[e]:[]);for(var a=t.at,r=this.comparator&&null==a&&!1!==t.sort,o=f.isString(this.comparator)?this.comparator:null,l=[],c=[],d={},u=0,h=e.length;u<h;u++)(i=this._prepareModel(e[u],t))&&((s=this.get(i))?(t.remove&&(d[s.cid]=!0),t.merge&&(s.set(i.attributes,t),r&&!n&&s.hasChanged(o)&&(n=!0))):t.add&&(l.push(i),i.on("all",this._onModelEvent,this),null!=(this._byId[i.cid]=i).id&&(this._byId[i.id]=i)));if(t.remove){for(u=0,h=this.length;u<h;++u)d[(i=this.models[u]).cid]||c.push(i);c.length&&this.remove(c,t)}if(l.length&&(r&&(n=!0),this.length+=l.length,null!=a?g.apply(this.models,[a,0].concat(l)):p.apply(this.models,l)),n&&this.sort({silent:!0}),t.silent)return this;for(u=0,h=l.length;u<h;u++)(i=l[u]).trigger("add",i,this,t);return n&&this.trigger("sort",this,t),this},reset:function(e,t){t=t||{};for(var i=0,s=this.models.length;i<s;i++)this._removeReference(this.models[i]);return t.previousModels=this.models,this._reset(),this.add(e,f.extend({silent:!0},t)),t.silent||this.trigger("reset",this,t),this},push:function(e,t){return e=this._prepareModel(e,t),this.add(e,f.extend({at:this.length},t)),e},pop:function(e){var t=this.at(this.length-1);return this.remove(t,e),t},unshift:function(e,t){return e=this._prepareModel(e,t),this.add(e,f.extend({at:0},t)),e},shift:function(e){var t=this.at(0);return this.remove(t,e),t},slice:function(e,t){return this.models.slice(e,t)},get:function(e){if(null!=e)return this._byId[null!=e.id?e.id:e.cid||e]},at:function(e){return this.models[e]},where:function(i,e){return f.isEmpty(i)?e?void 0:[]:this[e?"find":"filter"](function(e){for(var t in i)if(i[t]!==e.get(t))return!1;return!0})},findWhere:function(e){return this.where(e,!0)},sort:function(e){if(!this.comparator)throw new Error("Cannot sort a set without a comparator");return e=e||{},f.isString(this.comparator)||1===this.comparator.length?this.models=this.sortBy(this.comparator,this):this.models.sort(f.bind(this.comparator,this)),e.silent||this.trigger("sort",this,e),this},sortedIndex:function(e,t,i){t=t||this.comparator;var s=f.isFunction(t)?t:function(e){return e.get(t)};return f.sortedIndex(this.models,e,s,i)},pluck:function(e){return f.invoke(this.models,"get",e)},fetch:function(i){void 0===(i=i?f.clone(i):{}).parse&&(i.parse=!0);var s=i.success,n=this;return i.success=function(e){var t=i.reset?"reset":"set";n[t](e,i),s&&s(n,e,i),n.trigger("sync",n,e,i)},$(this,i),this.sync("read",this,i)},create:function(e,t){if(t=t?f.clone(t):{},!(e=this._prepareModel(e,t)))return!1;t.wait||this.add(e,t);var s=this,n=t.success;return t.success=function(e,t,i){i.wait&&s.add(e,i),n&&n(e,t,i)},e.save(null,t),e},parse:function(e,t){return e},clone:function(){return new this.constructor(this.models)},_reset:function(){this.length=0,this.models=[],this._byId={}},_prepareModel:function(e,t){if(e instanceof c)return e.collection||(e.collection=this),e;var i=new((t=t||{}).collection=this).model(e,t);return i._validate(e,t)?i:(this.trigger("invalid",this,e,t),!1)},_removeReference:function(e){this===e.collection&&delete e.collection,e.off("all",this._onModelEvent,this)},_onModelEvent:function(e,t,i,s){("add"!==e&&"remove"!==e||i===this)&&("destroy"===e&&this.remove(t,s),t&&e==="change:"+t.idAttribute&&(delete this._byId[t.previous(t.idAttribute)],null!=t.id&&(this._byId[t.id]=t)),this.trigger.apply(this,arguments))}});f.each(["forEach","each","map","collect","reduce","foldl","inject","reduceRight","foldr","find","detect","filter","select","reject","every","all","some","any","include","contains","invoke","max","min","toArray","size","first","head","take","initial","rest","tail","drop","last","without","indexOf","shuffle","lastIndexOf","isEmpty","chain"],function(t){h.prototype[t]=function(){var e=n.call(arguments);return e.unshift(this.models),f[t].apply(f,e)}});f.each(["groupBy","countBy","sortBy"],function(s){h.prototype[s]=function(t,e){var i=f.isFunction(t)?t:function(e){return e.get(t)};return f[s](this.models,i,e)}});var s=r.View=function(e){this.cid=f.uniqueId("view"),this._configure(e||{}),this._ensureElement(),this.initialize.apply(this,arguments),this.delegateEvents()},m=/^(\S+)\s*(.*)$/,_=["model","collection","el","id","attributes","className","tagName","events"];f.extend(s.prototype,a,{tagName:"div",$:function(e){return this.$el.find(e)},initialize:function(){},render:function(){return this},remove:function(){return this.$el.remove(),this.stopListening(),this},setElement:function(e,t){return this.$el&&this.undelegateEvents(),this.$el=e instanceof r.$?e:r.$(e),this.el=this.$el[0],!1!==t&&this.delegateEvents(),this},delegateEvents:function(e){if(!(e=e||f.result(this,"events")))return this;for(var t in this.undelegateEvents(),e){var i,s=e[t];(s=!f.isFunction(s)?this[e[t]]:s)&&(t=(i=t.match(m))[1],i=i[2],s=f.bind(s,this),t+=".delegateEvents"+this.cid,""===i?this.$el.on(t,s):this.$el.on(t,i,s))}return this},undelegateEvents:function(){return this.$el.off(".delegateEvents"+this.cid),this},_configure:function(e){this.options&&(e=f.extend({},f.result(this,"options"),e)),f.extend(this,f.pick(e,_)),this.options=e},_ensureElement:function(){var e;this.el?this.setElement(f.result(this,"el"),!1):(e=f.extend({},f.result(this,"attributes")),this.id&&(e.id=f.result(this,"id")),this.className&&(e.class=f.result(this,"className")),e=r.$("<"+f.result(this,"tagName")+">").attr(e),this.setElement(e,!1))}}),r.sync=function(e,t,i){var s=w[e];f.defaults(i=i||{},{emulateHTTP:r.emulateHTTP,emulateJSON:r.emulateJSON});var n,a={type:s,dataType:"json"};i.url||(a.url=f.result(t,"url")||I()),null!=i.data||!t||"create"!==e&&"update"!==e&&"patch"!==e||(a.contentType="application/json",a.data=JSON.stringify(i.attrs||t.toJSON(i))),i.emulateJSON&&(a.contentType="application/x-www-form-urlencoded",a.data=a.data?{model:a.data}:{}),!i.emulateHTTP||"PUT"!==s&&"DELETE"!==s&&"PATCH"!==s||(a.type="POST",i.emulateJSON&&(a.data._method=s),n=i.beforeSend,i.beforeSend=function(e){if(e.setRequestHeader("X-HTTP-Method-Override",s),n)return n.apply(this,arguments)}),"GET"===a.type||i.emulateJSON||(a.processData=!1),"PATCH"!==a.type||!window.ActiveXObject||window.external&&window.external.msActiveXFilteringEnabled||(a.xhr=function(){return new ActiveXObject("Microsoft.XMLHTTP")});a=i.xhr=r.ajax(f.extend(a,i));return t.trigger("request",t,a,i),a};var w={create:"POST",update:"PUT",patch:"PATCH",delete:"DELETE",read:"GET"};r.ajax=function(){return r.$.ajax.apply(r.$,arguments)};var t=r.Router=function(e){(e=e||{}).routes&&(this.routes=e.routes),this._bindRoutes(),this.initialize.apply(this,arguments)},y=/\((.*?)\)/g,x=/(\(\?)?:\w+/g,C=/\*\w+/g,S=/[\-{}\[\]+?.,\\\^$|#\s]/g;f.extend(t.prototype,a,{initialize:function(){},route:function(t,i,s){f.isRegExp(t)||(t=this._routeToRegExp(t)),f.isFunction(i)&&(s=i,i=""),s=s||this[i];var n=this;return r.history.route(t,function(e){e=n._extractParameters(t,e);s&&s.apply(n,e),n.trigger.apply(n,["route:"+i].concat(e)),n.trigger("route",i,e),r.history.trigger("route",n,i,e)}),this},navigate:function(e,t){return r.history.navigate(e,t),this},_bindRoutes:function(){if(this.routes){this.routes=f.result(this,"routes");for(var e,t=f.keys(this.routes);null!=(e=t.pop());)this.route(e,this.routes[e])}},_routeToRegExp:function(e){return e=e.replace(S,"\\$&").replace(y,"(?:$1)?").replace(x,function(e,t){return t?e:"([^/]+)"}).replace(C,"(.*?)"),new RegExp("^"+e+"$")},_extractParameters:function(e,t){t=e.exec(t).slice(1);return f.map(t,function(e){return e?decodeURIComponent(e):null})}});var E=r.History=function(){this.handlers=[],f.bindAll(this,"checkUrl"),"undefined"!=typeof window&&(this.location=window.location,this.history=window.history)},A=/^[#\/]|\s+$/g,T=/^\/+|\/+$/g,R=/msie [\w.]+/,O=/\/$/;E.started=!1,f.extend(E.prototype,a,{interval:50,getHash:function(e){e=(e||this).location.href.match(/#(.*)$/);return e?e[1]:""},getFragment:function(e,t){return null==e&&(this._hasPushState||!this._wantsHashChange||t?(e=this.location.pathname,t=this.root.replace(O,""),e.indexOf(t)||(e=e.substr(t.length))):e=this.getHash()),e.replace(A,"")},start:function(e){if(E.started)throw new Error("Backbone.history has already been started");E.started=!0,this.options=f.extend({},{root:"/"},this.options,e),this.root=this.options.root,this._wantsHashChange=!1!==this.options.hashChange,this._wantsPushState=!!this.options.pushState,this._hasPushState=!!(this.options.pushState&&this.history&&this.history.pushState);var t=this.getFragment(),e=document.documentMode,e=R.exec(navigator.userAgent.toLowerCase())&&(!e||e<=7);this.root=("/"+this.root+"/").replace(T,"/"),e&&this._wantsHashChange&&(this.iframe=r.$('<iframe src="javascript:0" tabindex="-1" />').hide().appendTo("body")[0].contentWindow,this.navigate(t)),this._hasPushState?r.$(window).on("popstate",this.checkUrl):this._wantsHashChange&&"onhashchange"in window&&!e?r.$(window).on("hashchange",this.checkUrl):this._wantsHashChange&&(this._checkUrlInterval=setInterval(this.checkUrl,this.interval)),this.fragment=t;e=this.location,t=e.pathname.replace(/[^\/]$/,"$&/")===this.root;return this._wantsHashChange&&this._wantsPushState&&!this._hasPushState&&!t?(this.fragment=this.getFragment(null,!0),this.location.replace(this.root+this.location.search+"#"+this.fragment),!0):(this._wantsPushState&&this._hasPushState&&t&&e.hash&&(this.fragment=this.getHash().replace(A,""),this.history.replaceState({},document.title,this.root+this.fragment+e.search)),this.options.silent?void 0:this.loadUrl())},stop:function(){r.$(window).off("popstate",this.checkUrl).off("hashchange",this.checkUrl),clearInterval(this._checkUrlInterval),E.started=!1},route:function(e,t){this.handlers.unshift({route:e,callback:t})},checkUrl:function(e){var t=this.getFragment();if((t=t===this.fragment&&this.iframe?this.getFragment(this.getHash(this.iframe)):t)===this.fragment)return!1;this.iframe&&this.navigate(t),this.loadUrl()||this.loadUrl(this.getHash())},loadUrl:function(e){var t=this.fragment=this.getFragment(e);return f.any(this.handlers,function(e){if(e.route.test(t))return e.callback(t),!0})},navigate:function(e,t){if(!E.started)return!1;if(t&&!0!==t||(t={trigger:t}),e=this.getFragment(e||""),this.fragment!==e){this.fragment=e;var i=this.root+e;if(this._hasPushState)this.history[t.replace?"replaceState":"pushState"]({},document.title,i);else{if(!this._wantsHashChange)return this.location.assign(i);this._updateHash(this.location,e,t.replace),this.iframe&&e!==this.getFragment(this.getHash(this.iframe))&&(t.replace||this.iframe.document.open().close(),this._updateHash(this.iframe.location,e,t.replace))}t.trigger&&this.loadUrl(e)}},_updateHash:function(e,t,i){i?(i=e.href.replace(/(javascript:|#).*$/,""),e.replace(i+"#"+t)):e.hash="#"+t}}),r.history=new E;c.extend=h.extend=t.extend=s.extend=E.extend=function(e,t){var i=this,s=e&&f.has(e,"constructor")?e.constructor:function(){return i.apply(this,arguments)};f.extend(s,i,t);t=function(){this.constructor=s};return t.prototype=i.prototype,s.prototype=new t,e&&f.extend(s.prototype,e),s.__super__=i.prototype,s};var I=function(){throw new Error('A "url" property or function must be specified')},$=function(t,i){var s=i.error;i.error=function(e){s&&s(t,e,i),t.trigger("error",t,e,i)}};return r}),o.exports}.call(this),("undefined"==typeof window?global:window).__51d0cd56d56a3db86ad7fa7583b3c04a=function(){var e={exports:{}},t=e.exports;Object.defineProperty(t,"__esModule",{value:!0});s(__b4cbeb27930fa8e67150d23a610bb0e3);var i=s(__9c0e4a797159551dfc3473cc5b4fb7db);function s(e){return e&&e.__esModule?e:{default:e}}return window.Backbone||(window.Backbone=i.default),t.default=window.Backbone,e.exports=t.default,e.exports}.call(this),("undefined"==typeof window?global:window).__3be4b0f5d6f0acfb340d67e10790f13a=function(){var e={exports:{}},t=e.exports;Object.defineProperty(t,"__esModule",{value:!0});var n=a(__b4cbeb27930fa8e67150d23a610bb0e3),i=a(__51d0cd56d56a3db86ad7fa7583b3c04a),s=a(__52119b4b795cb8ac461e4f7c1c107994);function a(e){return e&&e.__esModule?e:{default:e}}var r=i.default.Collection.extend({initialize:function(e,t){(t=t||{}).matcher&&(this.matcher=t.matcher),t.model&&(this.model=t.model),this._idAttribute=(new this.model).idAttribute,this._maxResults=t.maxResults||5,this._queryData=t.queryData||{},this._queryParamKey=t.queryParamKey||"q",this._queryEndpoint=t.queryEndpoint||"",this.value=null,this.queryCache={},this.activeQueryCount=0,n.default.bindAll(this,"query","respond")},url:function(){return this._queryEndpoint},query:function(s){var e,t,n=this;this.value=s,t=this.getFilteredResults(s),this.respond(s,t),s&&this._queryEndpoint&&!this.hasQueryCache(s)&&this.shouldGetMoreResults(t)&&(e=this.fetch(s),this.activeQueryCount++,this.trigger("activity",{activity:!0}),e.always(function(){n.activeQueryCount--,n.trigger("activity",{activity:!!n.activeQueryCount})}),e.done(function(e,t,i){n.addQueryCache(s,e,i)}),e.done(function(){s=n.value,t=n.getFilteredResults(s),n.respond(s,t)}))},getQueryData:function(e){var t=n.default.isFunction(this._queryData)?this._queryData(e):this._queryData,t=n.default.extend({},t);return t[this._queryParamKey]=e,t},fetch:function(e){e=this.getQueryData(e);return i.default.Collection.prototype.fetch.call(this,{add:!0,update:!0,remove:!1,data:e})},respond:function(e,t){return this.trigger("respond",{query:e,results:t}),t},matcher:function(e,t){},getFilteredResults:function(t){var e=[];return t?(e=this.filter(function(e){return!!this.matcher(e,t)},this),this._maxResults?n.default.first(e,this._maxResults):e):e},addQueryCache:function(e,t,i){var s=this.queryCache,i=this.parse(t,i);s[e]=n.default.pluck(i,this._idAttribute)},hasQueryCache:function(e){return this.queryCache.hasOwnProperty(e)},findQueryCache:function(e){return this.queryCache[e]},shouldGetMoreResults:function(e){return e.length<this._maxResults},setMaxResults:function(e){this._maxResults=e,this.value&&this.respond(this.value,this.getFilteredResults(this.value))}});return(0,s.default)("ProgressiveDataSet",r),t.default=r,e.exports=t.default,e.exports}.call(this),("undefined"==typeof window?global:window).__f6ea97a7768d0fbe760a101a6c770451=function(){var e={exports:{}},t=e.exports;Object.defineProperty(t,"__esModule",{value:!0});var i=a(__b4cbeb27930fa8e67150d23a610bb0e3),s=a(__51d0cd56d56a3db86ad7fa7583b3c04a),n=a(__52119b4b795cb8ac461e4f7c1c107994);function a(e){return e&&e.__esModule?e:{default:e}}s=s.default.View.extend({initialize:function(){i.default.bindAll(this,"changed","val"),this._lastValue=this.val(),this.$el.bind("keyup focus",this.changed)},val:function(){return this.$el.val.apply(this.$el,arguments)},changed:function(){this._lastValue!==this.val()&&(this.trigger("change",this.val()),this._lastValue=this.val())}});return(0,n.default)("QueryInput",s),t.default=s,e.exports=t.default,e.exports}.call(this),("undefined"==typeof window?global:window).__9a677de2225d388eb7c0bfedd574ca00=function(){var e={exports:{}},t=e.exports;return Object.defineProperty(t,"__esModule",{value:!0}),t.default={NO_VALUE:"aui-restfultable-editable-no-value",NO_ENTRIES:"aui-restfultable-no-entires",RESTFUL_TABLE:"aui-restfultable",ROW:"aui-restfultable-row",READ_ONLY:"aui-restfultable-readonly",ACTIVE:"aui-restfultable-active",ALLOW_HOVER:"aui-restfultable-allowhover",FOCUSED:"aui-restfultable-focused",MOVEABLE:"aui-restfultable-movable",DISABLED:"aui-restfultable-disabled",SUBMIT:"aui-restfultable-submit",CANCEL:"aui-restfultable-cancel",EDIT_ROW:"aui-restfultable-editrow",CREATE:"aui-restfultable-create",DRAG_HANDLE:"aui-restfultable-draghandle",ORDER:"aui-restfultable-order",EDITABLE:"aui-restfultable-editable",ERROR:"error",DELETE:"aui-restfultable-delete",LOADING:"loading"},e.exports=t.default,e.exports}.call(this),("undefined"==typeof window?global:window).__dcd1a986e3e6c0633954c206292c81b1=function(){var e={exports:{}},t=e.exports;Object.defineProperty(t,"__esModule",{value:!0});var i,s=__51d0cd56d56a3db86ad7fa7583b3c04a,n=(i=s)&&i.__esModule?i:{default:i};return t.default=n.default.View,e.exports=t.default,e.exports}.call(this),("undefined"==typeof window?global:window).__5592084624643cbbfacc387493ecc58f=function(){var e={exports:{}},t=e.exports;Object.defineProperty(t,"__esModule",{value:!0});var i,s=__51d0cd56d56a3db86ad7fa7583b3c04a,n=(i=s)&&i.__esModule?i:{default:i};return t.default=n.default.View,e.exports=t.default,e.exports}.call(this),("undefined"==typeof window?global:window).__d9249b7a4278b4779ef0ab4aa55acaaf=function(){var e={exports:{}},t=e.exports;Object.defineProperty(t,"__esModule",{value:!0});var i,s=__51d0cd56d56a3db86ad7fa7583b3c04a,n=(i=s)&&i.__esModule?i:{default:i};return t.default=n.default.View,e.exports=t.default,e.exports}.call(this),("undefined"==typeof window?global:window).__9da545ebf957dfdc77d388a188cfd596=function(){var e={exports:{}},t=e.exports;return Object.defineProperty(t,"__esModule",{value:!0}),t.default={ENABLED_SUBMIT:"enabledSubmit",ROW_VIEW:"RestfulTable_Row_View"},e.exports=t.default,e.exports}.call(this),("undefined"==typeof window?global:window).__2e1414579075979c139fe63ab0af6b22=function(){var e={};return jQuery.fn.serializeObject=function(){var i={};return this.find(":input:not(:button):not(:submit):not(:radio):not('select[multiple]')").each(function(){""!==this.name&&(null===this.value&&(this.value=""),i[this.name]=this.value.match(/^(tru|fals)e$/i)?"true"==this.value.toLowerCase():this.value)}),this.find("input:radio:checked").each(function(){i[this.name]=this.value}),this.find("select[multiple]").each(function(){var e=jQuery(this),t=e.val();e.data("aui-ss")?i[this.name]=t?t[0]:"":i[this.name]=null!==t?t:[]}),i},e}.call(this),("undefined"==typeof window?global:window).__7866c60e1428c4aaca12bb80a5825f52=function(){var e={exports:{}},t=e.exports;return Object.defineProperty(t,"__esModule",{value:!0}),t.default={REORDER_SUCCESS:"RestfulTable.reorderSuccess",ROW_ADDED:"RestfulTable.rowAdded",ROW_REMOVED:"RestfulTable.rowRemoved",EDIT_ROW:"RestfulTable.switchedToEditMode",SERVER_ERROR:"RestfulTable.serverError",CREATED:"created",UPDATED:"updated",FOCUS:"focus",BLUR:"blur",SUBMIT:"submit",SAVE:"save",MODAL:"modal",MODELESS:"modeless",CANCEL:"cancel",CONTENT_REFRESHED:"contentRefreshed",RENDER:"render",FINISHED_EDITING:"finishedEditing",VALIDATION_ERROR:"validationError",SUBMIT_STARTED:"submitStarted",SUBMIT_FINISHED:"submitFinished",INITIALIZED:"initialized",ROW_INITIALIZED:"rowInitialized",ROW_EDIT:"editRow"},e.exports=t.default,e.exports}.call(this),("undefined"==typeof window?global:window).__64fcc31be5fa9d0def2f07ad9fb65295=function(){var e={exports:{}},t=e.exports;return Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){return'<span class="aui-restfultable-throbber"></span>'},e.exports=t.default,e.exports}.call(this),("undefined"==typeof window?global:window).__21ea49c53122a9b6ba0b18c90df6dc26=function(){var e={exports:{}},t=e.exports;Object.defineProperty(t,"__esModule",{value:!0});var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l=c(__e3df8976e53f6c32ff37e662cb568ca9);__2e1414579075979c139fe63ab0af6b22;var i=c(__51d0cd56d56a3db86ad7fa7583b3c04a),s=c(__9a677de2225d388eb7c0bfedd574ca00),n=c(__9da545ebf957dfdc77d388a188cfd596),a=c(__7866c60e1428c4aaca12bb80a5825f52),r=(c(__a73e9e90657a207882cf3eebf38c2b4e),c(__64fcc31be5fa9d0def2f07ad9fb65295));function c(e){return e&&e.__esModule?e:{default:e}}var d=-1!==navigator.userAgent.toLowerCase().indexOf("firefox");return t.default=i.default.View.extend({tagName:"tr",events:{focusin:"_focus",click:"_focus",keyup:"_handleKeyUpEvent"},initialize:function(e){this.$el=(0,l.default)(this.el),this._event=a.default,this.classNames=s.default,this.dataKeys=n.default,this.columns=e.columns,this.isCreateRow=e.isCreateRow,this.allowReorder=e.allowReorder,this.events["click ."+this.classNames.CANCEL]="_cancel",this.delegateEvents(),e.isUpdateMode?this.isUpdateMode=!0:(this._modelClass=e.model,this.model=new this._modelClass),this.fieldFocusSelector=e.fieldFocusSelector,this.bind(this._event.CANCEL,function(){this.disabled=!0}).bind(this._event.SAVE,function(e){this.disabled||this.submit(e)}).bind(this._event.FOCUS,function(e){this.focus(e)}).bind(this._event.BLUR,function(){this.$el.removeClass(this.classNames.FOCUSED),this.disable()}).bind(this._event.SUBMIT_STARTED,function(){this._submitStarted()}).bind(this._event.SUBMIT_FINISHED,function(){this._submitFinished()})},defaultColumnRenderer:function(e){return!1!==e.allowEdit?(0,l.default)("<input type='text' />").addClass("text").attr({name:e.name,value:e.value}):e.value?document.createTextNode(e.value):void 0},renderDragHandle:function(){return'<span class="'+this.classNames.DRAG_HANDLE+'"></span></td>'},_handleKeyUpEvent:function(e){27===e.keyCode&&this.trigger(this._event.CANCEL)},_cancel:function(e){return this.trigger(this._event.CANCEL),e.preventDefault(),this},_submitStarted:function(){return this.submitting=!0,this.showLoading().disable().delegateEvents({}),this},_submitFinished:function(){return this.submitting=!1,this.hideLoading().enable().delegateEvents(this.events),this},_focus:function(e){return this.hasFocus()||this.trigger(this._event.FOCUS,e.target.name),this},hasFocus:function(){return this.$el.hasClass(this.classNames.FOCUSED)},focus:function(e){var t;return this.enable(),t=e?this.$el.find(this.fieldFocusSelector(e)):0===(t=this.$el.find(this.classNames.ERROR+":first")).length?this.$el.find(":input:text:first"):t.parent().find(":input"),this.$el.addClass(this.classNames.FOCUSED),t.focus().trigger("select"),this},disable:function(){var e,t;return d&&(t=this.$el.find(":submit")).length&&(e=(0,l.default)("<input type='submit' class='"+this.classNames.SUBMIT+"' />").addClass(t.attr("class")).val(t.val()).data(this.dataKeys.ENABLED_SUBMIT,t),t.replaceWith(e)),this.$el.addClass(this.classNames.DISABLED).find(":submit").attr("disabled","disabled"),this},enable:function(){var e,t;return d&&(t=(e=this.$el.find(this.classNames.SUBMIT)).data(this.dataKeys.ENABLED_SUBMIT))&&e.length&&e.replaceWith(t),this.$el.removeClass(this.classNames.DISABLED).find(":submit").removeAttr("disabled"),this},showLoading:function(){return this.$el.addClass(this.classNames.LOADING),this},hideLoading:function(){return this.$el.removeClass(this.classNames.LOADING),this},hasUpdates:function(){return!!this.mapSubmitParams(this.serializeObject())},serializeObject:function(){var e=this.$el;return e.serializeObject?e.serializeObject():e.serialize()},mapSubmitParams:function(e){return this.model.changedAttributes(e)},submit:function(e){var t,s=this;if(document.activeElement!==window&&(0,l.default)(document.activeElement).blur(),this.isUpdateMode){if(!(t=this.mapSubmitParams(this.serializeObject())))return s.trigger(s._event.CANCEL)}else this.model.clear(),t=this.mapSubmitParams(this.serializeObject());return this.trigger(this._event.SUBMIT_STARTED),this.model.save(t,{success:function(){s.isUpdateMode?s.trigger(s._event.UPDATED,s.model,e):(s.trigger(s._event.CREATED,s.model.toJSON()),s.model=new s._modelClass,s.render({errors:{},values:{}}),s.trigger(s._event.FOCUS)),s.trigger(s._event.SUBMIT_FINISHED)},error:function(e,t,i){400===i.status&&(s.renderErrors(t.errors),s.trigger(s._event.VALIDATION_ERROR,t.errors)),s.trigger(s._event.SUBMIT_FINISHED)},silent:!0}),this},renderError:function(e,t){return(0,l.default)("<div />").attr("data-field",e).addClass(this.classNames.ERROR).text(t)},renderErrors:function(e){var i=this;return this.$("."+this.classNames.ERROR).remove(),e&&l.default.each(e,function(e,t){i.$el.find("[name='"+e+"']").closest("td").append(i.renderError(e,t))}),this},render:function(a){var r=this;return this.$el.empty(),this.allowReorder&&(0,l.default)('<td class="'+this.classNames.ORDER+'" />').append(this.renderDragHandle()).appendTo(r.$el),l.default.each(this.columns,function(e,t){var i,s=a.values[t.id],n=[{name:t.id,value:s,allowEdit:t.allowEdit},a.values,r.model];s&&r.$el.attr("data-"+t.id,s),n=r.isCreateRow&&t.createView?new t.createView({model:r.model}).render(n[0]):t.editView?new t.editView({model:r.model}).render(n[0]):r.defaultColumnRenderer.apply(r,n),i=(0,l.default)("<td />"),"object"===(void 0===n?"undefined":o(n))&&n.done?n.done(function(e){i.append(e)}):i.append(n),t.styleClass&&i.addClass(t.styleClass),i.appendTo(r.$el)}),this.$el.append(this.renderOperations(a.update,a.values)).addClass(this.classNames.ROW+" "+this.classNames.EDIT_ROW),this.trigger(this._event.RENDER,this.$el,a.values),this.$el.trigger(this._event.CONTENT_REFRESHED,[this.$el]),this},renderOperations:function(e){var t=(0,l.default)('<td class="aui-restfultable-operations" />');return e?t.append((0,l.default)('<input class="aui-button" type="submit" />').attr({accesskey:this.submitAccessKey,value:AJS.I18n.getText("aui.words.update")})).append((0,l.default)('<a class="aui-button aui-button-link" href="#" />').addClass(this.classNames.CANCEL).text(AJS.I18n.getText("aui.words.cancel")).attr({accesskey:this.cancelAccessKey})):t.append((0,l.default)('<input class="aui-button" type="submit" />').attr({accesskey:this.submitAccessKey,value:AJS.I18n.getText("aui.words.add")})),t.add((0,l.default)('<td class="aui-restfultable-status" />').append((0,r.default)()))}}),e.exports=t.default,e.exports}.call(this),("undefined"==typeof window?global:window).__d420dba40cc8d3ad814740c57deab99e=function(){var e={exports:{}},t=e.exports;Object.defineProperty(t,"__esModule",{value:!0});var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r=i(__e3df8976e53f6c32ff37e662cb568ca9),s=__f3b5eb0c0bb41cae5fee07343c6aeb3e,a=i(__b4cbeb27930fa8e67150d23a610bb0e3),o=i(__51d0cd56d56a3db86ad7fa7583b3c04a),l=i(__7866c60e1428c4aaca12bb80a5825f52);function i(e){return e&&e.__esModule?e:{default:e}}var c=o.default.Model.extend({sync:function(e,t,i){var s=this,n=i.error;return i.error=function(e){s._serverErrorHandler(e,this),n&&n.apply(this,arguments)},o.default.sync.apply(o.default,arguments)},save:function(e,t){var i,s=this,n=(t=t||{}).error,a=t.success;t.error=function(e,t){var i=r.default.parseJSON(t.responseText||t.data);n&&n.call(s,s,i,t)},this.isNew()?o.default.Model.prototype.save.call(this,e,t):e&&((i=new(c.extend({url:this.url()}))({id:this.id})).save=o.default.Model.prototype.save,t.success=function(e,t){s.clear().set(e.toJSON()),a&&a.call(s,s,t)},i.save(e,t))},destroy:function(t){t=t||{};var e,i=this,s=this.url();return(e=t.data?r.default.param(t.data):e)&&e.length&&(s=s+"?"+e),r.default.ajax({url:s,type:"DELETE",dataType:"json",contentType:"application/json",success:function(e){i.collection&&i.collection.remove(i),t.success&&t.success.call(i,e)},error:function(e){i._serverErrorHandler(e,this),t.error&&t.error.call(i,e)}}),this},changedAttributes:function(e){var i={},s=this.toJSON();if(r.default.each(e,function(e,t){s[e]?s[e]&&s[e]!==t&&("object"===(void 0===t?"undefined":n(t))&&a.default.isEqual(t,s[e])||(i[e]=t)):"string"==typeof t?""!==r.default.trim(t)&&(i[e]=t):r.default.isArray(t)&&0===t.length||(i[e]=t)}),!a.default.isEmpty(i))return this.addExpand(i),i},addExpand:function(e){},_serverErrorHandler:function(e,t){var i;400!==e.status&&(i=r.default.parseJSON(e.responseText||e.data),(0,s.triggerEvtForInst)(l.default.SERVER_ERROR,this,[i,e,t]))},fetch:function(e){e=e||{},this.clear(),o.default.Model.prototype.fetch.call(this,e)}});return t.default=c,e.exports=t.default,e.exports}.call(this),("undefined"==typeof window?global:window).__e0300f5ba754e479fef8d5362d73d609=function(){var e={exports:{}},t=e.exports;Object.defineProperty(t,"__esModule",{value:!0});var l=o(__e3df8976e53f6c32ff37e662cb568ca9),i=function(e){{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t.default=e,t}}(__790380c6b36ac6e487c9bb5e6a48f0bb),s=o(__51d0cd56d56a3db86ad7fa7583b3c04a),n=o(__9a677de2225d388eb7c0bfedd574ca00),a=o(__9da545ebf957dfdc77d388a188cfd596),r=o(__7866c60e1428c4aaca12bb80a5825f52),c=(o(__a73e9e90657a207882cf3eebf38c2b4e),o(__64fcc31be5fa9d0def2f07ad9fb65295));function o(e){return e&&e.__esModule?e:{default:e}}return t.default=s.default.View.extend({tagName:"tr",events:{"click .aui-restfultable-editable":"edit"},initialize:function(e){if(e=e||{},this._event=r.default,this.classNames=n.default,this.dataKeys=a.default,this.columns=e.columns,this.allowEdit=e.allowEdit,this.allowDelete=e.allowDelete,!this.events["click .aui-restfultable-editable"])throw new Error("It appears you have overridden the events property. To add events you will need to usea work around. https://github.com/documentcloud/backbone/issues/244");this.index=e.index||0,this.deleteConfirmation=e.deleteConfirmation,this.allowReorder=e.allowReorder,this.$el=(0,l.default)(this.el),this.bind(this._event.CANCEL,function(){this.disabled=!0}).bind(this._event.FOCUS,function(e){this.focus(e)}).bind(this._event.BLUR,function(){this.unfocus()}).bind(this._event.MODAL,function(){this.$el.addClass(this.classNames.ACTIVE)}).bind(this._event.MODELESS,function(){this.$el.removeClass(this.classNames.ACTIVE)})},renderDragHandle:function(){return'<span class="'+this.classNames.DRAG_HANDLE+'"></span></td>'},defaultColumnRenderer:function(e){if(e.value)return document.createTextNode(e.value.toString())},sync:function(e){var t=this;return this.model.addExpand(e),this.showLoading(),this.model.save(e,{success:function(){t.hideLoading().render(),t.trigger(t._event.UPDATED)},error:function(){t.hideLoading()}}),this},refresh:function(e,t){var i=this;return this.showLoading(),this.model.fetch({success:function(){i.hideLoading().render(),e&&e.apply(this,arguments)},error:function(){i.hideLoading(),t&&t.apply(this,arguments)}}),this},hasFocus:function(){return this.$el.hasClass(this.classNames.FOCUSED)},focus:function(){return(0,l.default)(this.el).addClass(this.classNames.FOCUSED),this},unfocus:function(){return(0,l.default)(this.el).removeClass(this.classNames.FOCUSED),this},showLoading:function(){return this.$el.addClass(this.classNames.LOADING),this},hideLoading:function(){return this.$el.removeClass(this.classNames.LOADING),this},edit:function(e){e=((0,l.default)(e.target).is("."+this.classNames.EDITABLE)?(0,l.default)(e.target):(0,l.default)(e.target).closest("."+this.classNames.EDITABLE)).attr("data-field-name");return this.trigger(this._event.ROW_EDIT,e),this},renderOperations:function(){var t=this;if(!1!==this.allowDelete)return(0,l.default)("<a href='#' class='aui-button' />").addClass(this.classNames.DELETE).text(AJS.I18n.getText("aui.words.delete")).click(function(e){e.preventDefault(),t.destroy()})},destroy:function(){var t;this.deleteConfirmation?((t=i.popup(400,200,"delete-entity-"+this.model.get("id"))).element.html(this.deleteConfirmation(this.model.toJSON())),t.show(),t.element.find(".cancel").click(function(){t.hide()}),t.element.find("form").submit(function(e){t.hide(),this.model.destroy(),e.preventDefault()}.bind(this))):this.model.destroy()},render:function(){var r=this,o=this.model.toJSON(),e=(0,l.default)("<td class='aui-restfultable-operations' />").append(this.renderOperations({},o)),t=(0,l.default)("<td class='aui-restfultable-status' />").append((0,c.default)());return this.$el.removeClass(this.classNames.DISABLED+" "+this.classNames.FOCUSED+" "+this.classNames.LOADING+" "+this.classNames.EDIT_ROW).addClass(this.classNames.READ_ONLY).empty(),this.allowReorder&&(0,l.default)('<td class="'+this.classNames.ORDER+'" />').append(this.renderDragHandle()).appendTo(r.$el),this.$el.attr("data-id",this.model.id),l.default.each(this.columns,function(e,t){var i=(0,l.default)("<td />"),s=o[t.id],n=t.fieldName||t.id,a=[{name:n,value:s,allowEdit:t.allowEdit},o,r.model];s&&r.$el.attr("data-"+t.id,s),a=t.readView?new t.readView({model:r.model}).render(a[0]):r.defaultColumnRenderer.apply(r,a),!1!==r.allowEdit&&!1!==t.allowEdit?(n=(0,l.default)("<span />").addClass(r.classNames.EDITABLE).append('<span class="aui-icon aui-icon-small aui-iconfont-edit"></span>').append(a).attr("data-field-name",n),i=(0,l.default)("<td />").append(n).appendTo(r.$el),a&&""!=l.default.trim(a)||(i.addClass(r.classNames.NO_VALUE),n.html((0,l.default)("<em />").text(this.emptyText||AJS.I18n.getText("aui.enter.value"))))):i.append(a),t.styleClass&&i.addClass(t.styleClass),i.appendTo(r.$el)}),this.$el.append(e).append(t).addClass(this.classNames.ROW+" "+this.classNames.READ_ONLY),this.trigger(this._event.RENDER,this.$el,o),this.$el.trigger(this._event.CONTENT_REFRESHED,[this.$el]),this}}),e.exports=t.default,e.exports}.call(this),("undefined"==typeof window?global:window).__b30873e068d74310f73dabac2f246c0c=function(){var e={exports:{}},t=e.exports;Object.defineProperty(t,"__esModule",{value:!0});var r=b(__e3df8976e53f6c32ff37e662cb568ca9),i=function(e){{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t.default=e,t}}(__68ec37e88e99d69b4016b052d1029173),s=b(__51d0cd56d56a3db86ad7fa7583b3c04a),n=b(__9a677de2225d388eb7c0bfedd574ca00),a=b(__dcd1a986e3e6c0633954c206292c81b1),o=b(__5592084624643cbbfacc387493ecc58f),l=b(__d9249b7a4278b4779ef0ab4aa55acaaf),c=b(__9da545ebf957dfdc77d388a188cfd596),d=b(__21ea49c53122a9b6ba0b18c90df6dc26),u=b(__d420dba40cc8d3ad814740c57deab99e),h=b(__7866c60e1428c4aaca12bb80a5825f52),f=b(__52119b4b795cb8ac461e4f7c1c107994),p=(b(__a73e9e90657a207882cf3eebf38c2b4e),b(__e0300f5ba754e479fef8d5362d73d609)),g=b(__64fcc31be5fa9d0def2f07ad9fb65295);function b(e){return e&&e.__esModule?e:{default:e}}function v(e,t){(0,r.default)(document).trigger(e,t)}function m(e,t,i){(0,r.default)(t).trigger(e,i),v(e,i),t.id&&v(t.id+"_"+e,i)}var _=s.default.View.extend({initialize:function(e){var a=this;if(a.options=r.default.extend(!0,a._getDefaultOptions(e),e),a.id=this.options.id,a._event=h.default,a.classNames=n.default,a.dataKeys=c.default,this.$table=(0,r.default)(e.el).addClass(this.classNames.RESTFUL_TABLE).addClass(this.classNames.ALLOW_HOVER).addClass("aui").addClass(a.classNames.LOADING),this.$table.wrapAll("<form class='aui' action='#' />"),this.$thead=(0,r.default)("<thead/>"),this.$theadRow=(0,r.default)("<tr />").appendTo(this.$thead),this.$tbody=(0,r.default)("<tbody/>"),!this.$table.length)throw new Error("RestfulTable: Init failed! The table you have specified ["+this.$table.selector+"] cannot be found.");if(!this.options.columns)throw new Error("RestfulTable: Init failed! You haven't provided any columns to render.");this.showGlobalLoading(),this.options.columns.forEach(function(e){var t=r.default.isFunction(e.header)?e.header():e.header;void 0===t&&(i.warn("You have not specified [header] for column ["+e.id+"]. Using id for now..."),t=e.id),a.$theadRow.append("<th>"+t+"</th>")}),a.$theadRow.append("<th></th><th></th>"),this._models=this._createCollection(),this._rowClass=this.options.views.row,this.editRows=[],this.$table.closest("form").submit(function(e){a.focusedRow&&a.focusedRow.trigger(a._event.SAVE),e.preventDefault()}),this.options.allowReorder&&(this.$theadRow.prepend("<th />"),this.$tbody.sortable({handle:"."+this.classNames.DRAG_HANDLE,helper:function(e,t){var n=(0,r.default)("<div/>").attr("class",t.attr("class")).addClass(a.classNames.MOVEABLE);return t.children().each(function(e){var t=(0,r.default)(this),i=parseInt(0+t.css("border-left-width"),10),s=parseInt(0+t.css("border-right-width"),10),s=t[0].clientWidth+i+s;n.append((0,r.default)("<div/>").html(t.html()).attr("class",t.attr("class")).width(s))}),(n=(0,r.default)("<div class='aui-restfultable-readonly'/>").append(n)).css({left:t.offset().left}),n.appendTo(document.body),n},start:function(e,t){var i=t.helper[0].clientHeight,s=t.placeholder.find("td");t.item.addClass(a.classNames.MOVEABLE).children().each(function(e){(0,r.default)(this).width(s.eq(e).width())});var n='<td colspan="'+a.getColumnCount()+'">&nbsp;</td>';t.placeholder.html(n).css({height:i,visibility:"visible"}),a.getRowFromElement(t.item[0]).trigger(a._event.MODAL)},stop:function(e,t){(0,r.default)(t.item[0]).is(":visible")&&(t.item.removeClass(a.classNames.MOVEABLE).children().attr("style",""),t.placeholder.removeClass(a.classNames.ROW),a.getRowFromElement(t.item[0]).trigger(a._event.MODELESS))},update:function(e,t){t={row:a.getRowFromElement(t.item[0]),item:t.item,nextItem:t.item.next(),prevItem:t.item.prev()};a.move(t)},axis:"y",delay:0,containment:"document",cursor:"move",scroll:!0,zIndex:8e3}),this.$tbody.bind("selectstart mousedown",function(e){return!(0,r.default)(e.target).is("."+a.classNames.DRAG_HANDLE)})),!1!==this.options.allowCreate&&(this._createRow=new this.options.views.editRow({columns:this.options.columns,isCreateRow:!0,model:this.options.model.extend({url:function(){return a.options.resources.self}}),cancelAccessKey:this.options.cancelAccessKey,submitAccessKey:this.options.submitAccessKey,allowReorder:this.options.allowReorder,fieldFocusSelector:this.options.fieldFocusSelector}).bind(this._event.CREATED,function(e){null==a.options.addPosition&&"bottom"===a.options.createPosition||"bottom"===a.options.addPosition?a.addRow(e):a.addRow(e,0)}).bind(this._event.VALIDATION_ERROR,function(){this.trigger(a._event.FOCUS)}).render({errors:{},values:{}}),this.$create=(0,r.default)('<tbody class="'+this.classNames.CREATE+'" />').append(this._createRow.el),this._applyFocusCoordinator(this._createRow),this.options.autoFocus&&this._createRow.trigger(this._event.FOCUS)),this._models.bind("remove",function(t){a.getRows().forEach(function(e){e.model===t&&(e.hasFocus()&&a._createRow&&a._createRow.trigger(a._event.FOCUS),a.removeRow(e))})}),this.fetchInitialResources()},fetchInitialResources:function(){var t=this;r.default.isFunction(this.options.resources.all)?this.options.resources.all(function(e){t.populate(e)}):r.default.get(this.options.resources.all,function(e){t.populate(e)})},move:function(e){var i=this,t=function(e){return e.length?{after:i.getRowFromElement(e).model.url()}:{position:"First"}};e.row&&(t=i.options.reverseOrder?t(e.nextItem):t(e.prevItem),r.default.ajax({url:e.row.model.url()+"/move",type:"POST",dataType:"json",contentType:"application/json",data:JSON.stringify(t),complete:function(){e.row.hideLoading()},success:function(e){m(i._event.REORDER_SUCCESS,i,[e])},error:function(e){var t=r.default.parseJSON(e.responseText||e.data);m(i._event.SERVER_ERROR,i,[t,e,this])}}),e.row.showLoading())},_createCollection:function(){var n=this;return new(this.options.Collection.extend({sort:function(e){if(e=e||{},!this.comparator)throw new Error("Cannot sort a set without a comparator");return this.tableRows=n.getRows(),this.models=this.sortBy(this.comparator,this),this.tableRows=void 0,e.silent||this.trigger("refresh",this,e),this},remove:function(e,t){return this.tableRows=n.getRows(),s.default.Collection.prototype.remove.apply(this,arguments),this.tableRows=void 0,this}}))([],{comparator:function(i){var s;return(this&&void 0!==this.tableRows?this.tableRows:n.getRows()).some(function(e,t){if(e.model.id===i.id)return s=t,!0}),s}})},populate:function(e){this.options.reverseOrder&&e.reverse(),this.hideGlobalLoading(),e&&e.length?(this._models.reset([],{silent:!0}),this.renderRows(e),this.isEmpty()&&this.showNoEntriesMsg()):this.showNoEntriesMsg(),this.$table.append(this.$thead),"bottom"===this.options.createPosition?this.$table.append(this.$tbody).append(this.$create):this.$table.append(this.$create).append(this.$tbody),this.$table.removeClass(this.classNames.LOADING).trigger(this._event.INITIALIZED,[this]),m(this._event.INITIALIZED,this,[this]),this.options.autoFocus&&this.$table.find(":input:text:first").focus()},showGlobalLoading:function(){return this.$loading||(this.$loading=(0,r.default)('<div class="aui-restfultable-init">'+(0,g.default)()+'<span class="aui-restfultable-loading">'+this.options.loadingMsg+"</span></div>")),this.$loading.is(":visible")||this.$loading.insertAfter(this.$table),this},hideGlobalLoading:function(){return this.$loading&&this.$loading.remove(),this},addRow:function(e,t){if(!e.id)throw new Error("RestfulTable.addRow: to add a row values object must contain an id. Maybe you are not returning it from your restend point?Recieved:"+JSON.stringify(e));return e=new this.options.model(e),t=this._renderRow(e,t),this._models.add(e),this.removeNoEntriesMsg(),m(this._event.ROW_ADDED,this,[t,this]),this},removeRow:function(e){this._models.remove(e.model),e.remove(),this.isEmpty()&&this.showNoEntriesMsg(),m(this._event.ROW_REMOVED,this,[e,this])},isEmpty:function(){return 0===this._models.length},getModels:function(){return this._models},getTable:function(){return this.$table},getTableBody:function(){return this.$tbody},getCreateRow:function(){return this._createRow},getColumnCount:function(){var e=2;return this.allowReorder&&++e,this.options.columns.length+e},getRowFromElement:function(e){return(0,r.default)(e).data(this.dataKeys.ROW_VIEW)},showNoEntriesMsg:function(){return this.$noEntries&&this.$noEntries.remove(),this.$noEntries=(0,r.default)("<tr>").addClass(this.classNames.NO_ENTRIES).append((0,r.default)("<td>").attr("colspan",this.getColumnCount()).text(this.options.noEntriesMsg)).appendTo(this.$tbody),this},removeNoEntriesMsg:function(){return this.$noEntries&&0<this._models.length&&this.$noEntries.remove(),this},getRows:function(){var t=this,i=[];return this.$tbody.find("."+this.classNames.READ_ONLY).each(function(){var e=(0,r.default)(this).data(t.dataKeys.ROW_VIEW);e&&i.push(e)}),i},_renderRow:function(e,t){var i=this,s=this.$tbody.find("."+this.classNames.READ_ONLY),n=new this._rowClass({model:e,columns:this.options.columns,allowEdit:this.options.allowEdit,allowDelete:this.options.allowDelete,allowReorder:this.options.allowReorder,deleteConfirmation:this.options.deleteConfirmation});return this.removeNoEntriesMsg(),n.bind(this._event.ROW_EDIT,function(e){m(this._event.EDIT_ROW,{},[this,i]),i.edit(this,e)}),e=n.render().$el,-1!==t&&("number"==typeof t&&0!==s.length?e.insertBefore(s[t]):this.$tbody.append(e)),e.data(this.dataKeys.ROW_VIEW,n),n.bind(this._event.MODAL,function(){i.$table.removeClass(i.classNames.ALLOW_HOVER),i.$tbody.sortable("disable"),i.getRows().forEach(function(e){i.isRowBeingEdited(e)||e.delegateEvents({})})}),n.bind(this._event.MODELESS,function(){i.$table.addClass(i.classNames.ALLOW_HOVER),i.$tbody.sortable("enable"),i.getRows().forEach(function(e){i.isRowBeingEdited(e)||e.delegateEvents()})}),this._applyFocusCoordinator(n),this.trigger(this._event.ROW_INITIALIZED,n),n},isRowBeingEdited:function(t){var i=!1;return this.editRows.some(function(e){if(e.el===t.el)return i=!0}),i},_applyFocusCoordinator:function(e){var t=this;return e.hasFocusBound||(e.hasFocusBound=!0,e.bind(this._event.FOCUS,function(){t.focusedRow&&t.focusedRow!==e&&t.focusedRow.trigger(t._event.BLUR),(t.focusedRow=e)instanceof p.default&&t._createRow&&t._createRow.enable()})),this},_removeEditRow:function(e){e=r.default.inArray(e,this.editRows);return this.editRows.splice(e,1),this},_shiftFocusAfterEdit:function(){return 0<this.editRows.length?this.editRows[this.editRows.length-1].trigger(this._event.FOCUS):this._createRow&&this._createRow.trigger(this._event.FOCUS),this},_saveEditRowOnBlur:function(){return this.editRows.length<=1},dismissEditRows:function(){this.editRows.forEach(function(e){e.hasUpdates()||e.trigger(this._event.FINISHED_EDITING)},this)},edit:function(i,e){var s=this,t=new this.options.views.editRow({el:i.el,columns:this.options.columns,isUpdateMode:!0,allowReorder:this.options.allowReorder,fieldFocusSelector:this.options.fieldFocusSelector,model:i.model,cancelAccessKey:this.options.cancelAccessKey,submitAccessKey:this.options.submitAccessKey}),n=i.model.toJSON();return n.update=!0,t.render({errors:{},update:!0,values:n}).bind(s._event.UPDATED,function(e,t){s._removeEditRow(this),this.unbind(),i.render().delegateEvents(),i.trigger(s._event.UPDATED),!1!==t&&s._shiftFocusAfterEdit()}).bind(s._event.VALIDATION_ERROR,function(){this.trigger(s._event.FOCUS)}).bind(s._event.FINISHED_EDITING,function(){s._removeEditRow(this),i.render().delegateEvents(),this.unbind()}).bind(s._event.CANCEL,function(){s._removeEditRow(this),this.unbind(),i.render().delegateEvents(),s._shiftFocusAfterEdit()}).bind(s._event.BLUR,function(){s.dismissEditRows(),s._saveEditRowOnBlur()&&this.trigger(s._event.SAVE,!1)}),this._applyFocusCoordinator(t),t.trigger(s._event.FOCUS,e),s._createRow&&s._createRow.disable(),this.editRows.push(t),t},renderRows:function(){var t=this,e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:[],i=this._models.comparator,s=[];this._models.comparator=void 0;e=e.map(function(e){e=new t.options.model(e);return s.push(t._renderRow(e,-1).el),e});return this._models.add(e,{silent:!0}),this._models.comparator=i,this.removeNoEntriesMsg(),this.$tbody.append(s),this},_getDefaultOptions:function(e){return{model:e.model||u.default,allowEdit:!0,views:{editRow:d.default,row:p.default},Collection:s.default.Collection.extend({url:e.resources.self,model:e.model||u.default}),allowReorder:!1,fieldFocusSelector:function(e){return":input[name="+e+"], #"+e},loadingMsg:e.loadingMsg||AJS.I18n.getText("aui.words.loading")}}});return _.ClassNames=n.default,_.CustomCreateView=a.default,_.CustomEditView=o.default,_.CustomReadView=l.default,_.DataKeys=c.default,_.EditRow=d.default,_.EntryModel=u.default,_.Events=h.default,_.Row=p.default,_.Throbber=g.default,(0,f.default)("RestfulTable",_),t.default=_,e.exports=t.default,e.exports}.call(this),("undefined"==typeof window?global:window).__c28c2f5d8de29d39c907469deef49d05=function(){var e={exports:{}},t=e.exports;Object.defineProperty(t,"__esModule",{value:!0});var i=n(__51d0cd56d56a3db86ad7fa7583b3c04a),s=n(__52119b4b795cb8ac461e4f7c1c107994);function n(e){return e&&e.__esModule?e:{default:e}}var a=i.default.Model.extend({initialize:function(e){this.set("active",null,{silent:!0}),this.collection=new i.default.Collection,this.collection.bind("reset",this.setActive,this),this.source=e.source,this.source.bind("respond",this.process,this)},url:!1,process:function(e){this.set("query",e.query),this.collection.reset(e.results),this.set("length",e.results.length),this.trigger("update",this)},setActive:function(){var e=!(arguments[0]instanceof i.default.Collection)&&arguments[0],e=e?this.collection.get(e):this.collection.first();return this.set("active",e||null),this.get("active")},next:function(){var e=(this.collection.indexOf(this.get("active"))+1)%this.get("length"),t=this.collection.at(e);return this.setActive(t&&t.id)},prev:function(){var e=this.collection.indexOf(this.get("active")),e=(0===e?this.get("length"):e)-1,t=this.collection.at(e);return this.setActive(t&&t.id)},each:function(){return this.collection.each.apply(this.collection,arguments)}});return(0,s.default)("ResultSet",a),t.default=a,e.exports=t.default,e.exports}.call(this),("undefined"==typeof window?global:window).__44702cc7fa7b358044195cfb6da39670=function(){var e={exports:{}},t=e.exports;Object.defineProperty(t,"__esModule",{value:!0});var i=r(__b4cbeb27930fa8e67150d23a610bb0e3),s=r(__51d0cd56d56a3db86ad7fa7583b3c04a),n=r(__52119b4b795cb8ac461e4f7c1c107994),a=r(__c28c2f5d8de29d39c907469deef49d05);function r(e){return e&&e.__esModule?e:{default:e}}var o=s.default.View.extend({events:{"click [data-id]":"setSelection"},initialize:function(e){if(this.model||(this.model=new a.default({source:e.source})),!(this.model instanceof a.default))throw new Error("model must be set to a ResultSet");this.model.bind("update",this.process,this),this.render=i.default.wrap(this.render,function(e){this.trigger("rendering"),e.apply(this,arguments),this.trigger("rendered")})},process:function(){this._shouldShow(this.model.get("query"))&&this.show()},render:function(){var t=s.default.$("<ul/>");return this.model.each(function(e){s.default.$("<li/>").attr("data-id",e.id).html(this.renderItem(e)).appendTo(t)},this),this.$el.html(t),this},renderItem:function(){},setSelection:function(e){e=e.target.getAttribute("data-id"),e=this.model.setActive(e);this.trigger("selected",e)},show:function(){this.lastQuery=this.model.get("query"),this._hiddenQuery=null,this.render(),this.$el.show()},hide:function(){this.$el.hide(),this._hiddenQuery=this.lastQuery},size:function(){return this.model.get("length")},_shouldShow:function(e){return""===e||!(this._hiddenQuery&&this._hiddenQuery===e)}});return(0,n.default)("ResultsList",o),t.default=o,e.exports=t.default,e.exports}.call(this),("undefined"==typeof window?global:window).__665d767a6bb44da1bffe8e25a1ca47d6=function(){var e={},i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n=s(__e3df8976e53f6c32ff37e662cb568ca9);__e908cae46409563113a74c74753980ed;var a=s(__bdb175876694f044f0093acbedbfa550),t=__29033a6975c2d8d795cf854beedd6f05;function s(e){return e&&e.__esModule?e:{default:e}}return n.default.fn.spin=(0,t.fn)(function(e,t){var s={size:"small"};return"object"===(void 0===t?"undefined":i(t))&&(s=n.default.extend(s,t)),"object"===(void 0===e?"undefined":i(e))&&(s=n.default.extend(s,e)),"string"==typeof e&&(s.size=e),"boolean"==typeof e&&!1===e?this.spinStop():this.each(function(){var e,t,i;this&&this.nodeType&&((t=(e=(0,n.default)(this)).data())&&((i=(0,n.default)("<aui-spinner filled></aui-spinner>")).attr("size",s.size),i.css("color",s.color),e.spinStop(),e.append(i),a.default.init(this),t.spinner=i))})},"jQuery.fn.spin",{sinceVersion:"7.9.4",removeInVersion:"9",alternativeName:"<aui-spinner>"}),n.default.fn.spinStop=(0,t.fn)(function(){return this.each(function(){var e;this&&this.nodeType&&((e=(0,n.default)(this).data())&&e.spinner&&(e.spinner.remove(),delete e.spinner))})},"jQuery.fn.spinStop",{sinceVersion:"7.9.4",removeInVersion:"9",alternativeName:"<aui-spinner>"}),e}.call(this),("undefined"==typeof window?global:window).__3505626fafd30a720600aa36dd42a1fa=function(){var e={exports:{}},t=e.exports;Object.defineProperty(t,"__esModule",{value:!0});var i=n(__bdb175876694f044f0093acbedbfa550),s=n(__d38630e7283c4c1208aad359ac4fb0cd);function n(e){return e&&e.__esModule?e:{default:e}}return t.default=(0,i.default)("aui-option",{created:function(t){Object.defineProperty(t,"value",{get:function(){return t.getAttribute("value")||(0,s.default)(this.textContent)},set:function(e){t.setAttribute("value",e)}})},prototype:{serialize:function(){var e={};return this.hasAttribute("img-src")&&(e["img-src"]=(0,s.default)(this.getAttribute("img-src"))),e.value=this.value,e.label=(0,s.default)(this.textContent),e}}}),e.exports=t.default,e.exports}.call(this),("undefined"==typeof window?global:window).__b1dfe2d6d6369261f50ca3d79ab8b342=function(){var e={exports:{}},t=e.exports;Object.defineProperty(t,"__esModule",{value:!0});var i,s=__51d0cd56d56a3db86ad7fa7583b3c04a,n=(i=s)&&i.__esModule?i:{default:i};return t.default=n.default.Model.extend({idAttribute:"label",getLabel:function(){return this.get("label")||this.get("value")}}),e.exports=t.default,e.exports}.call(this),("undefined"==typeof window?global:window).__35bcb4b319eb1948c3d60b999cb2c0d3=function(){var e={exports:{}},t=e.exports;function i(){this._suggestions=[],this._activeIndex=-1}return Object.defineProperty(t,"__esModule",{value:!0}),i.prototype={onChange:function(){},onHighlightChange:function(){},get:function(e){return this._suggestions[e]},set:function(e){var t=this._suggestions;return this._suggestions=e||[],this.onChange(t),this},getNumberOfResults:function(){return this._suggestions.length},setHighlighted:function(e){if(e)for(var t=0;t<this._suggestions.length;t++)this._suggestions[t].id===e.id&&this.highlight(t);return this},highlight:function(e){return this._activeIndex=e,this.onHighlightChange(),this},highlightPrevious:function(){var e=this._activeIndex;return this.highlight(0===e?e:e-1),this},highlightNext:function(){var e=this._activeIndex,e=e===this._suggestions.length-1?e:e+1;return this.highlight(e),this},highlighted:function(){return this.get(this._activeIndex)},highlightedIndex:function(){return this._activeIndex}},t.default=i,e.exports=t.default,e.exports}.call(this),("undefined"==typeof window?global:window).__4c7549ab1a97ee440e5716feec309edb=function(){var e={exports:{}},t=e.exports;Object.defineProperty(t,"__esModule",{value:!0});var i=a(__e3df8976e53f6c32ff37e662cb568ca9);__a73e9e90657a207882cf3eebf38c2b4e;var s=a(__acfa466fe7cb9052c1474f3b42eb1a09),n=a(__00700d536822c54d659e0e6b2252cb45);function a(e){return e&&e.__esModule?e:{default:e}}function r(e,t){this.el=e,this.anchor=t}function o(e){(0,i.default)(e).find(".aui-select-active").removeClass("aui-select-active")}return r.prototype={render:function(e,t,s){this.currListId=s;var n,a="";return e.length?(n=t,e.forEach(function(e){var t=e.getLabel(),i=e.get("img-src"),i=i?'<img src="'+i+'"/>':"",e=e.get("new-value")?" (<em>"+AJS.I18n.getText("aui.select.new.value")+"</em>)":"";a+='<li role="option" class="aui-select-suggestion" id="'+s+"-"+n+'">'+i+t+e+"</li>",n++}),t?this.el.querySelector("ul").innerHTML+=a:this.el.querySelector("ul").innerHTML=a):t||(this.el.querySelector("ul").innerHTML='<li role="option" class="aui-select-no-suggestions">'+AJS.I18n.getText("aui.select.no.suggestions")+"</li>"),this},setActive:function(e){o(this.el),(0,i.default)(this.el).find("#"+this.currListId+"-"+e).addClass("aui-select-active")},getActive:function(){return this.el.querySelector(".aui-select-active")},show:function(){var e;e=this,(0,i.default)(e.el).css("min-width",(0,i.default)(e.anchor).outerWidth()),(0,n.default)(this.el).show(),(e=this).anchor&&!e.auiAlignment&&(e.auiAlignment=new s.default(e.el,e.anchor)),e.auiAlignment&&e.auiAlignment.enable()},hide:function(){var e;o(this.el),(0,n.default)(this.el).hide(),(e=this).auiAlignment&&e.auiAlignment.destroy()},isVisible:function(){return(0,i.default)(this.el).is(":visible")}},t.default=r,e.exports=t.default,e.exports}.call(this),("undefined"==typeof window?global:window).__c10b1b72a42e23de48b3260170ca4f40=function(){var e={exports:{}},t=e.exports;Object.defineProperty(t,"__esModule",{value:!0});var i,s=__d524069b90f4a939cdb32a72c6236eab,n=(i=s)&&i.__esModule?i:{default:i};return t.default=(0,n.default)('\n <input type="text" class="text" autocomplete="off" role="combobox" aria-autocomplete="list" aria-haspopup="true" aria-expanded="false">\n <select></select>\n <datalist>\n <content select="aui-option"></content>\n </datalist>\n <button class="aui-button" role="button" tabindex="-1" type="button"></button>\n <div class="aui-popover" role="listbox" data-aui-alignment="bottom left">\n <ul class="aui-optionlist" role="presentation"></ul>\n </div>\n <div class="aui-select-status assistive" aria-live="polite" role="status"></div>\n'),e.exports=t.default,e.exports}.call(this),("undefined"==typeof window?global:window).__82b7253585acced2679b0fdf8731ade0=function(){var e={exports:{}},t=e.exports;Object.defineProperty(t,"__esModule",{value:!0});var a=v(__e3df8976e53f6c32ff37e662cb568ca9);__4dd338db884e491026c48ea39a1c3ac0,__a73e9e90657a207882cf3eebf38c2b4e,__665d767a6bb44da1bffe8e25a1ca47d6;var r=v(__3505626fafd30a720600aa36dd42a1fa),i=v(__d6d162a8a9f9da3baf81680da236fddd),o=v(__2873350341426b81edda3bd72a380ee0),s=v(__52119b4b795cb8ac461e4f7c1c107994),l=v(__65f54629a086aa33db4a64cb0e39ebbe),n=v(__3be4b0f5d6f0acfb340d67e10790f13a),c=v(__bdb175876694f044f0093acbedbfa550),d=v(__c70fc06831f08333975ac2a51a793d9b),u=v(__b1dfe2d6d6369261f50ca3d79ab8b342),h=v(__35bcb4b319eb1948c3d60b999cb2c0d3),f=v(__4c7549ab1a97ee440e5716feec309edb),p=v(__c10b1b72a42e23de48b3260170ca4f40),g=v(__ffdbd56248ebf0f23f53701f7762b6ce),b=__32c4d04c93f24102de40b3b8d37a29e5;function v(e){return e&&e.__esModule?e:{default:e}}var m=-1,_=-1;function w(e){e._select.selectedIndex=m,(e=e)._input.removeAttribute("style"),(0,a.default)(e._input).removeClass("aui-select-has-inline-image")}function y(e){return e._suggestionModel.getNumberOfResults()}function x(e){setTimeout(e,50)}function C(e,t){return 0===e.get("label").toLowerCase().indexOf(t.toLowerCase())}function S(e){e._suggestionsView.hide(),e._input.setAttribute("aria-expanded","false")}function E(e){var t=y(e)?0:_;e._suggestionModel.highlight(t),S(e)}function A(e,t,i){e._autoHighlight=t,void 0===i&&(i=e._input.value),e._progressiveDataSet.query(i)}function T(e){var t=e._suggestionModel.highlighted()&&e._suggestionModel.highlighted().get("img-src");t&&(e=e,t=t,(0,a.default)(e._input).addClass("aui-select-has-inline-image"),e._input.setAttribute("style","background-image: url("+t+")"))}function R(e,t){var i,s,n;t&&(i=document.createElement("option"),s=e._select,n=t.get("value")||t.get("label"),i.setAttribute("selected",""),i.setAttribute("value",n),i.textContent=t.getLabel(),e._input.value=i.textContent,s.innerHTML="",s.options.add(i),s.dispatchEvent(new o.default("change",{bubbles:!0})))}function O(e){R(e,e._suggestionModel.highlighted()),T(e),E(e)}function I(e){return new u.default(e.serialize())}function $(e){for(var t=[],i=0;i<e._datalist.children.length;i++){var s=e._datalist.children[i];t.push(I(s))}return t}function N(e){e=e._dropdown.querySelector(".aui-select-active");return e&&e.id}function D(e,t){return a.default.map(t,function(e){return e.id}).indexOf(e)}function k(a){a._progressiveDataSet=new n.default($(a),{model:u.default,matcher:C,queryEndpoint:a._queryEndpoint,maxResults:20}),a._isSync=!a._queryEndpoint,a._progressiveDataSet.on("activity",function(){var e;a._progressiveDataSet.activeQueryCount&&!a._isSync?((e=a)._button.isBusy()||(e._button.busy(),e._input.setAttribute("aria-busy","true"),e._dropdown.setAttribute("aria-busy","true")),(0,d.default)(a).set("should-flag-new-suggestions",!1)):((e=a)._button.idle(),e._input.setAttribute("aria-busy","false"),e._dropdown.setAttribute("aria-busy","false"),(0,d.default)(a).set("should-flag-new-suggestions",!0))}),a._progressiveDataSet.on("respond",function(e){var t,i,s,n;e.query&&!a._input.value||((0,d.default)(a).get("should-cancel-response")?a._progressiveDataSet.activeQueryCount||(0,d.default)(a).set("should-cancel-response",!1):(e.query||(e.results=$(a)),t=-1!==D(a._input.value,e.results),i=!a._input.value,!a.hasAttribute("can-create-values")||t||i||e.results.push((i=a,(n=new r.default).setAttribute("value",i._input.value),(n=I(n)).set("new-value",!0),n)),(0,d.default)(a).get("should-include-selected")||0<=(s=D(a.value,e.results))&&e.results.splice(s,1),n=e,(s=a)._suggestionModel.set(),s._suggestionModel.set(n.results),e=a._suggestionModel.highlighted()||e.results[0],a._autoHighlight&&(a._suggestionModel.setHighlighted(e),x(function(){a._input.setAttribute("aria-activedescendant",N(a))})),a._input.setAttribute("aria-expanded","true"),!a._isSync&&a._suggestionsView.getActive()&&(0,d.default)(a).get("should-flag-new-suggestions")&&(a.querySelector(".aui-select-status").innerHTML=AJS.I18n.getText("aui.select.new.suggestions")),a._suggestionsView.show(),a._autoHighlight&&x(function(){a._input.setAttribute("aria-activedescendant",N(a))})))})}function M(e){var t=e.value?"":e._input.value,i=""===e._input.value;(0,d.default)(e).set("should-include-selected",i),A(e,!0,t)}function P(e){0<e._progressiveDataSet.activeQueryCount&&(0,d.default)(e).set("should-cancel-response",!0)}function L(e){if(0<=e._select.selectedIndex)return e._select.options[e._select.selectedIndex].textContent}function F(e){var t,i,s,n,a;P(e),s=!(t=e).hasAttribute("no-empty-values"),n=!t._input.value,a=t._input.value!==L(t),(n||a)&&(s||void 0===(i=L(t))?w(t):t._input.value=i),e._suggestionModel.highlight(_),S(e)}p=(0,c.default)("aui-select",{template:p.default,created:function(t){t._listId=(0,g.default)(),t._input=t.querySelector("input"),t._select=t.querySelector("select"),t._dropdown=t.querySelector(".aui-popover"),t._datalist=t.querySelector("datalist"),t._button=t.querySelector("button"),t._suggestionsView=new f.default(t._dropdown,t._input),t._suggestionModel=new h.default,t._suggestionModel.onChange=function(e){var i=[];t._suggestionModel._suggestions.forEach(function(t){e.some(function(e){return t.id===e.id})||i.push(t)}),t._suggestionsView.render(i,e.length,t._listId)},t._suggestionModel.onHighlightChange=function(){var e=t._suggestionModel.highlightedIndex();t._suggestionsView.setActive(e),t._input.setAttribute("aria-activedescendant",N(t))}},attached:function(e){var t,i,s,n;c.default.init(e),k(e),(n=e)._dropdown.id=n._listId,n.querySelector("button").setAttribute("aria-controls",n._listId),e._input.setAttribute("aria-controls",e._listId),e.setAttribute("tabindex","-1"),t=e,(0,a.default)(t._dropdown).on("mouseover","li",function(e){y(t)&&t._suggestionModel.highlight((0,a.default)(e.target).index())}),i=e,(0,a.default)(i._dropdown).on("mousedown","li",function(e){return!!y(i)&&(i._suggestionModel.highlight((0,a.default)(e.target).index()),O(i),i._suggestionsView.hide(),void i._input.removeAttribute("aria-activedescendant"))}),(n=(s=e)._datalist.querySelector("aui-option[selected]"))&&R(s,I(n)),E(e),T(e)},attributes:{id:function(e,t){e.id&&(e.querySelector("input").id=t.newValue+b.INPUT_SUFFIX)},name:function(e,t){e.querySelector("select").setAttribute("name",t.newValue)},placeholder:function(e,t){e.querySelector("input").setAttribute("placeholder",t.newValue)},src:function(e,t){e._queryEndpoint=t.newValue}},events:{"blur input":function(e){F(e)},"mousedown button":function(e){document.activeElement===e._input&&"false"===e._dropdown.getAttribute("aria-hidden")&&(0,d.default)(e).set("prevent-open-on-button-click",!0)},"click input":function(e){M(e)},"click button":function(e){var t=(0,d.default)(e);t.get("prevent-open-on-button-click")?t.set("prevent-open-on-button-click",!1):((0,d.default)(e).set("button-clicked-prevent-dropdown-hide",!0),e.focus())},input:function(e){e._input.value?((0,d.default)(e).set("should-include-selected",!0),A(e,!0)):(0,d.default)(e).get("button-clicked-prevent-dropdown-hide")?(0,d.default)(e).set("button-clicked-prevent-dropdown-hide",!1):S(e)},"keydown input":function(e,t){var i,s=e._input.value,n=!1;if(t.keyCode===l.default.ESCAPE)return P(e),void S(e);e._suggestionsView.isVisible()&&y(e)?t.keyCode===l.default.ENTER?(P(e),O(e),t.preventDefault()):t.keyCode===l.default.TAB?((i=e)._suggestionsView.isVisible()&&O(i),n=!0):t.keyCode===l.default.UP?(e._suggestionModel.highlightPrevious(),t.preventDefault()):t.keyCode===l.default.DOWN&&(e._suggestionModel.highlightNext(),t.preventDefault()):t.keyCode!==l.default.UP&&t.keyCode!==l.default.DOWN||(M(e),t.preventDefault()),n=n||t.defaultPrevented,setTimeout(function(){e._input.value===s||n||e.dispatchEvent(new o.default("input",{bubbles:!0}))},0)}},prototype:{get value(){var e=this._select.options[this._select.selectedIndex];return e?e.value:""},set value(e){var t;return""===e?((t=this)._input.value="",t._select.innerHTML=""):e&&(!(t=(t=this._progressiveDataSet).findWhere({value:e})||t.findWhere({label:e}))&&this.hasAttribute("can-create-values")&&(t=new u.default({value:e,label:e})),R(this,t)),this},get displayValue(){return this._input.value},blur:function(){return this._input.blur(),F(this),this},focus:function(){return this._input.focus(),M(this),this}}});return(0,i.default)("aui/select",p),(0,s.default)("select",p),t.default=p,e.exports=t.default,e.exports}.call(this),("undefined"==typeof window?global:window).__1ac9ef5f0fd8200879236ff768944762=function(){var n,m,g,l,c,d,a,u,_,h,r,e,t,i={};function o(e){var t,i,s,n;if(!e||e.length<1)return e;for(t="",i=0,s=e.length;i<s;i++)n=e.charAt(i),t+=r[n]||n;return t}function f(e,t){for(var i=0,s=t.length;i<s;i+=1)if(b(e,t[i]))return i;return-1}function b(e,t){return e===t||e!==g&&t!==g&&(null!==e&&null!==t&&(e.constructor===String?e+""==t+"":t.constructor===String&&t+""==e+""))}function v(e,t){var i,s,n;if(null===e||e.length<1)return[];for(s=0,n=(i=e.split(t)).length;s<n;s+=1)i[s]=m.trim(i[s]);return i}function p(e){return e.outerWidth(!1)-e.width()}function w(t){var i="keyup-change-value";t.on("keydown",function(){m.data(t,i)===g&&m.data(t,i,t.val())}),t.on("keyup",function(){var e=m.data(t,i);e!==g&&t.val()!==e&&(m.removeData(t,i),t.trigger("keyup-change"))})}function y(t,i,s){var n;return s=s||g,function(){var e=arguments;window.clearTimeout(n),n=window.setTimeout(function(){i.apply(s,e)},t)}}function x(e){e.preventDefault(),e.stopPropagation()}function C(e,t,i){var s,n=[],a=e.attr("class");a&&m((a=""+a).split(" ")).each2(function(){0===this.indexOf("select2-")&&n.push(this)}),(a=t.attr("class"))&&m((a=""+a).split(" ")).each2(function(){0!==this.indexOf("select2-")&&(s=i(this))&&n.push(s)}),e.attr("class",n.join(" "))}function S(e,t,i,s){var n=o(e.toUpperCase()).indexOf(o(t.toUpperCase())),t=t.length;n<0?i.push(s(e)):(i.push(s(e.substring(0,n))),i.push("<span class='select2-match'>"),i.push(s(e.substring(n,n+t))),i.push("</span>"),i.push(s(e.substring(n+t,e.length))))}function s(e){var t={"\\":"&#92;","&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#47;"};return String(e).replace(/[&<>"'\/\\]/g,function(e){return t[e]})}function E(a){var e,r=null,t=a.quietMillis||100,o=a.url,l=this;return function(n){window.clearTimeout(e),e=window.setTimeout(function(){var e=a.data,t=o,i=a.transport||m.fn.select2.ajaxDefaults.transport,s={type:a.type||"GET",cache:a.cache||!1,jsonpCallback:a.jsonpCallback||g,dataType:a.dataType||"json"},s=m.extend({},m.fn.select2.ajaxDefaults.params,s),e=e?e.call(l,n.term,n.page,n.context):null,t="function"==typeof t?t.call(l,n.term,n.page,n.context):t;r&&r.abort(),a.params&&(m.isFunction(a.params)?m.extend(s,a.params.call(l)):m.extend(s,a.params)),m.extend(s,{url:t,dataType:a.dataType,data:e,success:function(e){e=a.results(e,n.page);n.callback(e)}}),r=i.call(l,s)},t)}}function A(e){var t,i,s=e,o=function(e){return""+e.text};m.isArray(s)&&(s={results:i=s}),!1===m.isFunction(s)&&(i=s,s=function(){return i});e=s();return e.text&&(o=e.text,m.isFunction(o)||(t=e.text,o=function(e){return e[t]})),function(n){var a,r=n.term,i={results:[]};""!==r?(a=function(e,t){var i,s;if((e=e[0]).children){for(s in i={},e)e.hasOwnProperty(s)&&(i[s]=e[s]);i.children=[],m(e.children).each2(function(e,t){a(t,i.children)}),(i.children.length||n.matcher(r,o(i),e))&&t.push(i)}else n.matcher(r,o(e),e)&&t.push(e)},m(s().results).each2(function(e,t){a(t,i.results)}),n.callback(i)):n.callback(s())}}function T(e){var t=m.isFunction(e);return function(i){var s=i.term,n={results:[]};m(t?e():e).each(function(){var e=this.text!==g,t=e?this.text:this;""!==s&&!i.matcher(s,t)||n.results.push(e?this:{id:this,text:this})}),i.callback(n)}}function R(e,t){if(m.isFunction(e))return 1;if(e)throw new Error(t+" must be a function or a falsy value")}function O(e){return m.isFunction(e)?e():e}function I(e,t){function i(){}return((i.prototype=new e).constructor=i).prototype.parent=e.prototype,i.prototype=m.extend(i.prototype,t),i}return void 0===(n=jQuery).fn.each2&&n.extend(n.fn,{each2:function(e){for(var t=n([0]),i=-1,s=this.length;++i<s&&(t.context=t[0]=this[i])&&!1!==e.call(t[0],i,t););return this}}),m=jQuery,window.Select2===g&&(u={x:0,y:0},h={TAB:9,ENTER:13,ESC:27,SPACE:32,LEFT:37,UP:38,RIGHT:39,DOWN:40,SHIFT:16,CTRL:17,ALT:18,PAGE_UP:33,PAGE_DOWN:34,HOME:36,END:35,BACKSPACE:8,DELETE:46,isArrow:function(e){switch(e=e.which||e){case h.LEFT:case h.RIGHT:case h.UP:case h.DOWN:return!0}return!1},isControl:function(e){switch(e.which){case h.SHIFT:case h.CTRL:case h.ALT:return!0}return!!e.metaKey},isFunctionKey:function(e){return 112<=(e=e.which||e)&&e<=123}},r={"Ⓐ":"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","Ⓓ":"D","D":"D","Ḋ":"D","Ď":"D","Ḍ":"D","Ḑ":"D","Ḓ":"D","Ḏ":"D","Đ":"D","Ƌ":"D","Ɗ":"D","Ɖ":"D","Ꝺ":"D","DZ":"DZ","DŽ":"DZ","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","Ⓕ":"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","Ⓘ":"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","Ⓚ":"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","LJ":"LJ","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","NJ":"NJ","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","Ƣ":"OI","Ꝏ":"OO","Ȣ":"OU","Ⓟ":"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","Ⓣ":"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","Ⓧ":"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","ƣ":"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"},t=m(document),e=1,d=function(){return e++},t.on("mousemove",function(e){u.x=e.pageX,u.y=e.pageY}),t=I(Object,{bind:function(e){var t=this;return function(){e.apply(t,arguments)}},init:function(e){var a,t,i,s,n,r,o,l,c=".select2-results";this.opts=e=this.prepareOpts(e),this.id=e.id,e.element.data("select2")!==g&&null!==e.element.data("select2")&&e.element.data("select2").destroy(),this.container=this.createContainer(),this.containerId="s2id_"+(e.element.attr("id")||"autogen"+d()),this.containerSelector="#"+this.containerId.replace(/([;&,\.\+\*\~':"\!\^#$%@\[\]\(\)=>\|])/g,"\\$1"),this.container.attr("id",this.containerId),this.body=(n=!(i=function(){return e.element.closest("body")}),function(){return!1===n&&(s=i(),n=!0),s}),C(this.container,this.opts.element,this.opts.adaptContainerCssClass),this.container.attr("style",e.element.attr("style")),this.container.css(O(e.containerCss)),this.container.addClass(O(e.containerCssClass)),this.elementTabIndex=this.opts.element.attr("tabindex"),this.opts.element.data("select2",this).attr("tabindex","-1").before(this.container).on("click.select2",x),this.container.data("select2",this),this.dropdown=this.container.find(".select2-drop"),C(this.dropdown,this.opts.element,this.opts.adaptDropdownCssClass),this.dropdown.addClass(O(e.dropdownCssClass)),this.dropdown.data("select2",this),this.dropdown.on("click",x),this.results=a=this.container.find(c),this.search=t=this.container.find("input.select2-input"),this.queryCount=0,this.resultsPage=0,this.context=null,this.initContainer(),this.container.on("click",x),this.results.on("mousemove",function(e){u!==g&&u.x===e.pageX&&u.y===e.pageY||m(e.target).trigger("mousemove-filtered",e)}),this.dropdown.on("mousemove-filtered touchstart touchmove touchend",c,this.bind(this.highlightUnderEvent)),r=80,o=this.results,l=y(r,function(e){o.trigger("scroll-debounced",e)}),o.on("scroll",function(e){0<=f(e.target,o.get())&&l(e)}),this.dropdown.on("scroll-debounced",c,this.bind(this.loadMoreIfNeeded)),m(this.container).on("change",".select2-input",function(e){e.stopPropagation()}),m(this.dropdown).on("change",".select2-input",function(e){e.stopPropagation()}),m.fn.mousewheel&&a.mousewheel(function(e,t,i,s){var n=a.scrollTop();0<s&&n-s<=0?(a.scrollTop(0),x(e)):s<0&&a.get(0).scrollHeight-a.scrollTop()+s<=a.height()&&(a.scrollTop(a.get(0).scrollHeight-a.height()),x(e))}),w(t),t.on("keyup-change input paste",this.bind(this.updateResults)),t.on("focus",function(){t.addClass("select2-focused")}),t.on("blur",function(){t.removeClass("select2-focused")}),this.dropdown.on("mouseup",c,this.bind(function(e){0<m(e.target).closest(".select2-result-selectable").length&&(this.highlightUnderEvent(e),this.selectHighlighted(e))})),this.dropdown.on("click mouseup mousedown",function(e){e.stopPropagation()}),m.isFunction(this.opts.initSelection)&&(this.initSelection(),this.monitorSource()),null!==e.maximumInputLength&&this.search.attr("maxlength",e.maximumInputLength);c=e.element.prop("disabled");this.enable(!(c=c===g?!1:c));c=e.element.prop("readonly");this.readonly(c=c===g?!1:c),_=_||function(){var e=m("<div class='select2-measure-scrollbar'></div>");e.appendTo("body");var t={width:e.width()-e[0].clientWidth,height:e.height()-e[0].clientHeight};return e.remove(),t}(),this.autofocus=e.element.prop("autofocus"),e.element.prop("autofocus",!1),this.autofocus&&this.focus(),this.nextSearchTerm=g},destroy:function(){var e=this.opts.element,t=e.data("select2");this.close(),this.propertyObserver&&(delete this.propertyObserver,this.propertyObserver=null),t!==g&&(t.container.remove(),t.dropdown.remove(),e.removeClass("select2-offscreen").removeData("select2").off(".select2").prop("autofocus",this.autofocus||!1),this.elementTabIndex?e.attr({tabindex:this.elementTabIndex}):e.removeAttr("tabindex"),e.show())},optionToData:function(e){return e.is("option")?{id:e.prop("value"),text:e.text(),element:e.get(),css:e.attr("class"),disabled:e.prop("disabled"),locked:b(e.attr("locked"),"locked")||b(e.data("locked"),!0)}:e.is("optgroup")?{text:e.attr("label"),children:[],element:e.get(),css:e.attr("class")}:void 0},prepareOpts:function(f){var t,e,p=this,r=f.element;if("select"===r.get(0).tagName.toLowerCase()&&(this.select=e=f.element),e&&m.each(["id","multiple","ajax","query","createSearchChoice","initSelection","data","tags"],function(){if(this in f)throw new Error("Option '"+this+"' is not allowed for Select2 when attached to a <select> element.")}),"function"!=typeof(f=m.extend({},{populateResults:function(e,t,d){var u=this.opts.id,h=function(e,t,i){for(var s,n,a,r,o,l=0,c=(e=f.sortResults(e,t,d)).length;l<c;l+=1)a=!(o=!0===(s=e[l]).disabled)&&u(s)!==g,r=s.children&&0<s.children.length,(n=m("<li></li>")).addClass("select2-results-dept-"+i),n.addClass("select2-result"),n.addClass(a?"select2-result-selectable":"select2-result-unselectable"),o&&n.addClass("select2-disabled"),r&&n.addClass("select2-result-with-children"),n.addClass(p.opts.formatResultCssClass(s)),(a=m(document.createElement("div"))).addClass("select2-result-label"),(o=f.formatResult(s,a,d,p.opts.escapeMarkup))!==g&&a.html(o),n.append(a),r&&((r=m("<ul></ul>")).addClass("select2-result-sub"),h(s.children,r,i+1),n.append(r)),n.data("select2-data",s),t.append(n)};h(t,e,0)}},m.fn.select2.defaults,f)).id&&(t=f.id,f.id=function(e){return e[t]}),m.isArray(f.element.data("select2Tags"))){if("tags"in f)throw"tags specified as both an attribute 'data-select2-tags' and in options of Select2 "+f.element.attr("id");f.tags=f.element.data("select2Tags")}if(e?(f.query=this.bind(function(s){var e,i={results:[],more:!1},n=s.term,a=function(e,t){var i;e.is("option")?s.matcher(n,e.text(),e)&&t.push(p.optionToData(e)):e.is("optgroup")&&(i=p.optionToData(e),e.children().each2(function(e,t){a(t,i.children)}),0<i.children.length&&t.push(i))},t=r.children();(t=this.getPlaceholder()!==g&&0<t.length&&(e=this.getPlaceholderOption())?t.not(e):t).each2(function(e,t){a(t,i.results)}),s.callback(i)}),f.id=function(e){return e.id},f.formatResultCssClass=function(e){return e.css}):"query"in f||("ajax"in f?((e=f.element.data("ajax-url"))&&0<e.length&&(f.ajax.url=e),f.query=E.call(f.element,f.ajax)):"data"in f?f.query=A(f.data):"tags"in f&&(f.query=T(f.tags),f.createSearchChoice===g&&(f.createSearchChoice=function(e){return{id:m.trim(e),text:m.trim(e)}}),f.initSelection===g&&(f.initSelection=function(e,t){var i=[];m(v(e.val(),f.separator)).each(function(){var e={id:this,text:this},t=f.tags;m.isFunction(t)&&(t=t()),m(t).each(function(){if(b(this.id,e.id))return e=this,!1}),i.push(e)}),t(i)}))),"function"!=typeof f.query)throw"query function not defined for Select2 "+f.element.attr("id");return f},monitorSource:function(){var t,e,i=this.opts.element;i.on("change.select2",this.bind(function(e){!0!==this.opts.element.data("select2-change-triggered")&&this.initSelection()})),t=this.bind(function(){var e=i.prop("disabled");this.enable(!(e=e===g?!1:e));e=i.prop("readonly");this.readonly(e=e===g?!1:e),C(this.container,this.opts.element,this.opts.adaptContainerCssClass),this.container.addClass(O(this.opts.containerCssClass)),C(this.dropdown,this.opts.element,this.opts.adaptDropdownCssClass),this.dropdown.addClass(O(this.opts.dropdownCssClass))}),i.on("propertychange.select2",t),this.mutationCallback===g&&(this.mutationCallback=function(e){e.forEach(t)}),(e=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver)!==g&&(this.propertyObserver&&(delete this.propertyObserver,this.propertyObserver=null),this.propertyObserver=new e(this.mutationCallback),this.propertyObserver.observe(i.get(0),{attributes:!0,subtree:!1}))},triggerSelect:function(e){e=m.Event("select2-selecting",{val:this.id(e),object:e});return this.opts.element.trigger(e),!e.isDefaultPrevented()},triggerChange:function(e){e=m.extend({},e=e||{},{type:"change",val:this.val()}),this.opts.element.data("select2-change-triggered",!0),this.opts.element.trigger(e),this.opts.element.data("select2-change-triggered",!1),this.opts.element.click(),this.opts.blurOnChange&&this.opts.element.blur()},isInterfaceEnabled:function(){return!0===this.enabledInterface},enableInterface:function(){var e=this._enabled&&!this._readonly;return e!==this.enabledInterface&&(this.container.toggleClass("select2-container-disabled",!e),this.close(),this.enabledInterface=e,!0)},enable:function(e){this._enabled!==(e=e===g?!0:e)&&(this._enabled=e,this.opts.element.prop("disabled",!e),this.enableInterface())},disable:function(){this.enable(!1)},readonly:function(e){return this._readonly!==(e=e!==g&&e)&&(this._readonly=e,this.opts.element.prop("readonly",e),this.enableInterface(),!0)},opened:function(){return this.container.hasClass("select2-dropdown-open")},positionDropdown:function(){var e,t,i=this.dropdown,s=this.container.offset(),n=this.container.outerHeight(!1),a=this.container.outerWidth(!1),r=i.outerHeight(!1),o=m(window),l=o.width(),c=o.height(),d=o.scrollLeft()+l,u=o.scrollTop()+c,h=s.top+n,f=s.left,p=h+r<=u,g=s.top-r>=this.body().scrollTop(),b=i.outerWidth(!1),v=f+b<=d;i.hasClass("select2-drop-above")?(e=!0,!g&&p&&(e=!(t=!0))):(e=!1,!p&&g&&(e=t=!0)),t&&(i.hide(),s=this.container.offset(),n=this.container.outerHeight(!1),a=this.container.outerWidth(!1),i.outerHeight(!1),d=o.scrollLeft()+l,o.scrollTop(),h=s.top+n,v=(f=s.left)+(b=i.outerWidth(!1))<=d,i.show()),this.opts.dropdownAutoWidth?(n=m(".select2-results",i)[0],i.addClass("select2-drop-auto-width"),i.css("width",""),a<(b=i.outerWidth(!1)+(n.scrollHeight===n.clientHeight?0:_.width))?a=b:b=a,v=f+b<=d):this.container.removeClass("select2-drop-auto-width"),"static"!==this.body().css("position")&&(h-=(d=this.body().offset()).top,f-=d.left),a={left:f=!v?s.left+a-b:f,width:a},e?(a.bottom=c-s.top,a.top="auto",this.container.addClass("select2-drop-above"),i.addClass("select2-drop-above")):(a.top=h,a.bottom="auto",this.container.removeClass("select2-drop-above"),i.removeClass("select2-drop-above")),a=m.extend(a,O(this.opts.dropdownCss)),i.css(a)},shouldOpen:function(){var e;return!this.opened()&&(!1!==this._enabled&&!0!==this._readonly&&(e=m.Event("select2-opening"),this.opts.element.trigger(e),!e.isDefaultPrevented()))},clearDropdownAlignmentPreference:function(){this.container.removeClass("select2-drop-above"),this.dropdown.removeClass("select2-drop-above")},open:function(){return!!this.shouldOpen()&&(this.opening(),!0)},opening:function(){var e=this.containerId,t="scroll."+e,i="resize."+e,s="orientationchange."+e;this.container.addClass("select2-dropdown-open").addClass("select2-container-active"),this.clearDropdownAlignmentPreference(),this.dropdown[0]!==this.body().children().last()[0]&&this.dropdown.detach().appendTo(this.body()),0==(e=m("#select2-drop-mask")).length&&((e=m(document.createElement("div"))).attr("id","select2-drop-mask").attr("class","select2-drop-mask"),e.hide(),e.appendTo(this.body()),e.on("mousedown touchstart click",function(e){var t=m("#select2-drop");0<t.length&&((t=t.data("select2")).opts.selectOnBlur&&t.selectHighlighted({noFocus:!0}),t.close({focus:!0}),e.preventDefault(),e.stopPropagation())})),this.dropdown.prev()[0]!==e[0]&&this.dropdown.before(e),m("#select2-drop").removeAttr("id"),this.dropdown.attr("id","select2-drop"),e.show(),this.positionDropdown(),this.dropdown.show(),this.positionDropdown(),this.dropdown.addClass("select2-drop-active");var n=this;this.container.parents().add(window).each(function(){m(this).on(i+" "+t+" "+s,function(e){n.positionDropdown()})})},close:function(){var e,t,i,s;this.opened()&&(e=this.containerId,t="scroll."+e,i="resize."+e,s="orientationchange."+e,this.container.parents().add(window).each(function(){m(this).off(t).off(i).off(s)}),this.clearDropdownAlignmentPreference(),m("#select2-drop-mask").hide(),this.dropdown.removeAttr("id"),this.dropdown.hide(),this.container.removeClass("select2-dropdown-open").removeClass("select2-container-active"),this.results.empty(),this.clearSearch(),this.search.removeClass("select2-active"),this.opts.element.trigger(m.Event("select2-close")))},externalSearch:function(e){this.open(),this.search.val(e),this.updateResults(!1)},clearSearch:function(){},getMaximumSelectionSize:function(){return O(this.opts.maximumSelectionSize)},ensureHighlightVisible:function(){var e,t,i,s,n=this.results,a=this.highlight();a<0||(0!=a?(e=this.findHighlightableChoices().find(".select2-result-label"),i=(t=m(e[a])).offset().top+t.outerHeight(!0),a===e.length-1&&0<(s=n.find("li.select2-more-results")).length&&(i=s.offset().top+s.outerHeight(!0)),(s=n.offset().top+n.outerHeight(!0))<i&&n.scrollTop(n.scrollTop()+(i-s)),(s=t.offset().top-n.offset().top)<0&&"none"!=t.css("display")&&n.scrollTop(n.scrollTop()+s)):n.scrollTop(0))},findHighlightableChoices:function(){return this.results.find(".select2-result-selectable:not(.select2-disabled, .select2-selected)")},moveHighlight:function(e){for(var t=this.findHighlightableChoices(),i=this.highlight();-1<i&&i<t.length;){var s=m(t[i+=e]);if(s.hasClass("select2-result-selectable")&&!s.hasClass("select2-disabled")&&!s.hasClass("select2-selected")){this.highlight(i);break}}},highlight:function(e){var t=this.findHighlightableChoices();if(0===arguments.length)return f(t.filter(".select2-highlighted")[0],t.get());(e=e>=t.length?t.length-1:e)<0&&(e=0),this.removeHighlight(),(t=m(t[e])).addClass("select2-highlighted"),this.ensureHighlightVisible(),(t=t.data("select2-data"))&&this.opts.element.trigger({type:"select2-highlight",val:this.id(t),choice:t})},removeHighlight:function(){this.results.find(".select2-highlighted").removeClass("select2-highlighted")},countSelectableResults:function(){return this.findHighlightableChoices().length},highlightUnderEvent:function(e){var t=m(e.target).closest(".select2-result-selectable");0<t.length&&!t.is(".select2-highlighted")?(e=this.findHighlightableChoices(),this.highlight(e.index(t))):0==t.length&&this.removeHighlight()},loadMoreIfNeeded:function(){var t=this.results,i=t.find("li.select2-more-results"),s=this.resultsPage+1,n=this,a=this.search.val(),r=this.context;0!==i.length&&i.offset().top-t.offset().top-t.height()<=this.opts.loadMorePadding&&(i.addClass("select2-active"),this.opts.query({element:this.opts.element,term:a,page:s,context:r,matcher:this.opts.matcher,callback:this.bind(function(e){n.opened()&&(n.opts.populateResults.call(this,t,e.results,{term:a,page:s,context:r}),n.postprocessResults(e,!1,!1),!0===e.more?(i.detach().appendTo(t).text(n.opts.formatLoadMore(s+1)),window.setTimeout(function(){n.loadMoreIfNeeded()},10)):i.remove(),n.positionDropdown(),n.resultsPage=s,n.context=e.context,this.opts.element.trigger({type:"select2-loaded",items:e}))})}))},tokenize:function(){},updateResults:function(i){var e,s=this.search,n=this.results,a=this.opts,r=this,t=s.val(),o=m.data(this.container,"select2-last-term");if((!0===i||!o||!b(t,o))&&(m.data(this.container,"select2-last-term",t),!0===i||!1!==this.showSearchInput&&this.opened())){var l=++this.queryCount,t=this.getMaximumSelectionSize();if(!(1<=t&&(e=this.data(),m.isArray(e)&&e.length>=t&&R(a.formatSelectionTooBig,"formatSelectionTooBig"))))return s.val().length<a.minimumInputLength?(R(a.formatInputTooShort,"formatInputTooShort")?d("<li class='select2-no-results'>"+a.formatInputTooShort(s.val(),a.minimumInputLength)+"</li>"):d(""),void(i&&this.showSearch&&this.showSearch(!0))):void(a.maximumInputLength&&s.val().length>a.maximumInputLength?R(a.formatInputTooLong,"formatInputTooLong")?d("<li class='select2-no-results'>"+a.formatInputTooLong(s.val(),a.maximumInputLength)+"</li>"):d(""):(a.formatSearching&&0===this.findHighlightableChoices().length&&d("<li class='select2-searching'>"+a.formatSearching()+"</li>"),s.addClass("select2-active"),this.removeHighlight(),(e=this.tokenize())!=g&&null!=e&&s.val(e),this.resultsPage=1,a.query({element:a.element,term:s.val(),page:this.resultsPage,context:null,matcher:a.matcher,callback:this.bind(function(e){var t;l==this.queryCount&&(this.opened()?(this.context=e.context===g?null:e.context,this.opts.createSearchChoice&&""!==s.val()&&(t=this.opts.createSearchChoice.call(r,s.val(),e.results))!==g&&null!==t&&r.id(t)!==g&&null!==r.id(t)&&0===m(e.results).filter(function(){return b(r.id(this),r.id(t))}).length&&e.results.unshift(t),0===e.results.length&&R(a.formatNoMatches,"formatNoMatches")?d("<li class='select2-no-results'>"+a.formatNoMatches(s.val())+"</li>"):(n.empty(),r.opts.populateResults.call(this,n,e.results,{term:s.val(),page:this.resultsPage,context:null}),!0===e.more&&R(a.formatLoadMore,"formatLoadMore")&&(n.append("<li class='select2-more-results'>"+r.opts.escapeMarkup(a.formatLoadMore(this.resultsPage))+"</li>"),window.setTimeout(function(){r.loadMoreIfNeeded()},10)),this.postprocessResults(e,i),c(),this.opts.element.trigger({type:"select2-loaded",items:e}))):this.search.removeClass("select2-active"))})})));d("<li class='select2-selection-limit'>"+a.formatSelectionTooBig(t)+"</li>")}function c(){s.removeClass("select2-active"),r.positionDropdown()}function d(e){n.html(e),c()}},cancel:function(){this.close()},blur:function(){this.opts.selectOnBlur&&this.selectHighlighted({noFocus:!0}),this.close(),this.container.removeClass("select2-container-active"),this.search[0]===document.activeElement&&this.search.blur(),this.clearSearch(),this.selection.find(".select2-search-choice-focus").removeClass("select2-search-choice-focus")},focusSearch:function(){var i;(i=this.search)[0]!==document.activeElement&&window.setTimeout(function(){var e=i[0],t=i.val().length;i.focus(),i.is(":visible")&&e===document.activeElement&&(e.setSelectionRange?e.setSelectionRange(t,t):e.createTextRange&&((e=e.createTextRange()).collapse(!1),e.select()))},0)},selectHighlighted:function(e){var t=this.highlight(),i=this.results.find(".select2-highlighted").closest(".select2-result").data("select2-data");i?(this.highlight(t),this.onSelect(i,e)):e&&e.noFocus&&this.close()},getPlaceholder:function(){var e;return this.opts.element.attr("placeholder")||this.opts.element.attr("data-placeholder")||this.opts.element.data("placeholder")||this.opts.placeholder||((e=this.getPlaceholderOption())!==g?e.text():g)},getPlaceholderOption:function(){if(this.select){var e=this.select.children("option").first();return this.opts.placeholderOption!==g?"first"===this.opts.placeholderOption&&e||"function"==typeof this.opts.placeholderOption&&this.opts.placeholderOption(this.select):""===e.text()&&""===e.val()?e:void 0}},initContainerWidth:function(){var e=function(){var e,t,i,s,n;if("off"===this.opts.width)return null;if("element"===this.opts.width)return 0===this.opts.element.outerWidth(!1)?"auto":this.opts.element.outerWidth(!1)+"px";if("copy"!==this.opts.width&&"resolve"!==this.opts.width)return m.isFunction(this.opts.width)?this.opts.width():this.opts.width;if((e=this.opts.element.attr("style"))!==g)for(s=0,n=(t=e.split(";")).length;s<n;s+=1)if(null!==(i=t[s].replace(/\s/g,"").match(/^width:(([-+]?([0-9]*\.)?[0-9]+)(px|em|ex|%|in|cm|mm|pt|pc))/i))&&1<=i.length)return i[1];return"resolve"===this.opts.width?0<(e=this.opts.element.css("width")).indexOf("%")?e:0===this.opts.element.outerWidth(!1)?"auto":this.opts.element.outerWidth(!1)+"px":null}.call(this);null!==e&&this.container.css("width",e)}}),l=I(t,{createContainer:function(){return m(document.createElement("div")).attr({class:"select2-container"}).html(["<a href='javascript:void(0)' class='select2-choice' tabindex='-1'>"," <span class='select2-chosen'>&nbsp;</span><abbr class='select2-search-choice-close'></abbr>"," <span class='select2-arrow'><b></b></span>","</a>","<input class='select2-focusser select2-offscreen' type='text'/>","<div class='select2-drop select2-display-none'>"," <div class='select2-search'>"," <input type='text' autocomplete='off' autocorrect='off' autocapitalize='off' spellcheck='false' class='select2-input'/>"," </div>"," <ul class='select2-results'>"," </ul>","</div>"].join(""))},enableInterface:function(){this.parent.enableInterface.apply(this,arguments)&&this.focusser.prop("disabled",!this.isInterfaceEnabled())},opening:function(){var e,t;0<=this.opts.minimumResultsForSearch&&this.showSearch(!0),this.parent.opening.apply(this,arguments),!1!==this.showSearchInput&&this.search.val(this.focusser.val()),this.search.focus(),(e=this.search.get(0)).createTextRange?((t=e.createTextRange()).collapse(!1),t.select()):e.setSelectionRange&&(t=this.search.val().length,e.setSelectionRange(t,t)),""===this.search.val()&&this.nextSearchTerm!=g&&(this.search.val(this.nextSearchTerm),this.search.select()),this.focusser.prop("disabled",!0).val(""),this.updateResults(!0),this.opts.element.trigger(m.Event("select2-open"))},close:function(e){this.opened()&&(this.parent.close.apply(this,arguments),e=e||{focus:!0},this.focusser.removeAttr("disabled"),e.focus&&this.focusser.focus())},focus:function(){this.opened()?this.close():(this.focusser.removeAttr("disabled"),this.focusser.focus())},isFocused:function(){return this.container.hasClass("select2-container-active")},cancel:function(){this.parent.cancel.apply(this,arguments),this.focusser.removeAttr("disabled"),this.focusser.focus()},destroy:function(){m("label[for='"+this.focusser.attr("id")+"']").attr("for",this.opts.element.attr("id")),this.parent.destroy.apply(this,arguments)},initContainer:function(){var e,t=this.container,i=this.dropdown;this.opts.minimumResultsForSearch<0?this.showSearch(!1):this.showSearch(!0),this.selection=e=t.find(".select2-choice"),this.focusser=t.find(".select2-focusser"),this.focusser.attr("id","s2id_autogen"+d()),m("label[for='"+this.opts.element.attr("id")+"']").attr("for",this.focusser.attr("id")),this.focusser.attr("tabindex",this.elementTabIndex),this.search.on("keydown",this.bind(function(e){if(this.isInterfaceEnabled())if(e.which!==h.PAGE_UP&&e.which!==h.PAGE_DOWN)switch(e.which){case h.UP:case h.DOWN:return this.moveHighlight(e.which===h.UP?-1:1),void x(e);case h.ENTER:return this.selectHighlighted(),void x(e);case h.TAB:return void this.selectHighlighted({noFocus:!0});case h.ESC:return this.cancel(e),void x(e)}else x(e)})),this.search.on("blur",this.bind(function(e){document.activeElement===this.body().get(0)&&window.setTimeout(this.bind(function(){this.search.focus()}),0)})),this.focusser.on("keydown",this.bind(function(e){if(this.isInterfaceEnabled()&&e.which!==h.TAB&&!h.isControl(e)&&!h.isFunctionKey(e)&&e.which!==h.ESC){if(!1!==this.opts.openOnEnter||e.which!==h.ENTER)return e.which==h.DOWN||e.which==h.UP||e.which==h.ENTER&&this.opts.openOnEnter?e.altKey||e.ctrlKey||e.shiftKey||e.metaKey?void 0:(this.open(),void x(e)):void(e.which!=h.DELETE&&e.which!=h.BACKSPACE||(this.opts.allowClear&&this.clear(),x(e)));x(e)}})),w(this.focusser),this.focusser.on("keyup-change input",this.bind(function(e){0<=this.opts.minimumResultsForSearch&&(e.stopPropagation(),this.opened()||this.open())})),e.on("mousedown","abbr",this.bind(function(e){this.isInterfaceEnabled()&&(this.clear(),(e=e).preventDefault(),e.stopImmediatePropagation(),this.close(),this.selection.focus())})),e.on("mousedown",this.bind(function(e){this.container.hasClass("select2-container-active")||this.opts.element.trigger(m.Event("select2-focus")),this.opened()?this.close():this.isInterfaceEnabled()&&this.open(),x(e)})),i.on("mousedown",this.bind(function(){this.search.focus()})),e.on("focus",this.bind(function(e){x(e)})),this.focusser.on("focus",this.bind(function(){this.container.hasClass("select2-container-active")||this.opts.element.trigger(m.Event("select2-focus")),this.container.addClass("select2-container-active")})).on("blur",this.bind(function(){this.opened()||(this.container.removeClass("select2-container-active"),this.opts.element.trigger(m.Event("select2-blur")))})),this.search.on("focus",this.bind(function(){this.container.hasClass("select2-container-active")||this.opts.element.trigger(m.Event("select2-focus")),this.container.addClass("select2-container-active")})),this.initContainerWidth(),this.opts.element.addClass("select2-offscreen"),this.setPlaceholder()},clear:function(e){var t,i=this.selection.data("select2-data");i&&(t=m.Event("select2-clearing"),this.opts.element.trigger(t),t.isDefaultPrevented()||(t=this.getPlaceholderOption(),this.opts.element.val(t?t.val():""),this.selection.find(".select2-chosen").empty(),this.selection.removeData("select2-data"),this.setPlaceholder(),!1!==e&&(this.opts.element.trigger({type:"select2-removed",val:this.id(i),choice:i}),this.triggerChange({removed:i}))))},initSelection:function(){var t;this.isPlaceholderOptionSelected()?(this.updateSelection(null),this.close(),this.setPlaceholder()):(t=this).opts.initSelection.call(null,this.opts.element,function(e){e!==g&&null!==e&&(t.updateSelection(e),t.close(),t.setPlaceholder())})},isPlaceholderOptionSelected:function(){var e;return!!this.getPlaceholder()&&((e=this.getPlaceholderOption())!==g&&e.prop("selected")||""===this.opts.element.val()||this.opts.element.val()===g||null===this.opts.element.val())},prepareOpts:function(){var r=this.parent.prepareOpts.apply(this,arguments),i=this;return"select"===r.element.get(0).tagName.toLowerCase()?r.initSelection=function(e,t){e=e.find("option").filter(function(){return this.selected});t(i.optionToData(e))}:"data"in r&&(r.initSelection=r.initSelection||function(e,t){var n=e.val(),a=null;r.query({matcher:function(e,t,i){var s=b(n,r.id(i));return s&&(a=i),s},callback:m.isFunction(t)?function(){t(a)}:m.noop})}),r},getPlaceholder:function(){return this.select&&this.getPlaceholderOption()===g?g:this.parent.getPlaceholder.apply(this,arguments)},setPlaceholder:function(){var e=this.getPlaceholder();this.isPlaceholderOptionSelected()&&e!==g&&(this.select&&this.getPlaceholderOption()===g||(this.selection.find(".select2-chosen").html(this.opts.escapeMarkup(e)),this.selection.addClass("select2-default"),this.container.removeClass("select2-allowclear")))},postprocessResults:function(e,t,i){var s=0,n=this;this.findHighlightableChoices().each2(function(e,t){if(b(n.id(t.data("select2-data")),n.opts.element.val()))return s=e,!1}),!1!==i&&(!0===t&&0<=s?this.highlight(s):this.highlight(0)),!0!==t||0<=(t=this.opts.minimumResultsForSearch)&&this.showSearch(function i(e){var s=0;return m.each(e,function(e,t){t.children?s+=i(t.children):s++}),s}(e.results)>=t)},showSearch:function(e){this.showSearchInput!==e&&(this.showSearchInput=e,this.dropdown.find(".select2-search").toggleClass("select2-search-hidden",!e),this.dropdown.find(".select2-search").toggleClass("select2-offscreen",!e),m(this.dropdown,this.container).toggleClass("select2-with-searchbox",e))},onSelect:function(e,t){var i,s;this.triggerSelect(e)&&(i=this.opts.element.val(),s=this.data(),this.opts.element.val(this.id(e)),this.updateSelection(e),this.opts.element.trigger({type:"select2-selected",val:this.id(e),choice:e}),this.nextSearchTerm=this.opts.nextSearchTerm(e,this.search.val()),this.close(),t&&t.noFocus||this.focusser.focus(),b(i,this.id(e))||this.triggerChange({added:e,removed:s}))},updateSelection:function(e){var t,i=this.selection.find(".select2-chosen");this.selection.data("select2-data",e),i.empty(),(t=null!==e?this.opts.formatSelection(e,i,this.opts.escapeMarkup):t)!==g&&i.append(t),(e=this.opts.formatSelectionCssClass(e,i))!==g&&i.addClass(e),this.selection.removeClass("select2-default"),this.opts.allowClear&&this.getPlaceholder()!==g&&this.container.addClass("select2-allowclear")},val:function(){var e,t=!1,i=null,s=this,n=this.data();if(0===arguments.length)return this.opts.element.val();if(e=arguments[0],1<arguments.length&&(t=arguments[1]),this.select)this.select.val(e).find("option").filter(function(){return this.selected}).each2(function(e,t){return i=s.optionToData(t),!1}),this.updateSelection(i),this.setPlaceholder(),t&&this.triggerChange({added:i,removed:n});else if(e||0===e){if(this.opts.initSelection===g)throw new Error("cannot call val() if initSelection() is not defined");this.opts.element.val(e),this.opts.initSelection(this.opts.element,function(e){s.opts.element.val(e?s.id(e):""),s.updateSelection(e),s.setPlaceholder(),t&&s.triggerChange({added:e,removed:n})})}else this.clear(t)},clearSearch:function(){this.search.val(""),this.focusser.val("")},data:function(e){var t,i=!1;if(0===arguments.length)return t=(t=this.selection.data("select2-data"))==g?null:t;1<arguments.length&&(i=arguments[1]),e?(t=this.data(),this.opts.element.val(e?this.id(e):""),this.updateSelection(e),i&&this.triggerChange({added:e,removed:t})):this.clear(i)}}),c=I(t,{createContainer:function(){return m(document.createElement("div")).attr({class:"select2-container select2-container-multi"}).html(["<ul class='select2-choices'>"," <li class='select2-search-field'>"," <input type='text' autocomplete='off' autocorrect='off' autocapitalize='off' spellcheck='false' class='select2-input'>"," </li>","</ul>","<div class='select2-drop select2-drop-multi select2-display-none'>"," <ul class='select2-results'>"," </ul>","</div>"].join(""))},prepareOpts:function(){var l=this.parent.prepareOpts.apply(this,arguments),s=this;return"select"===l.element.get(0).tagName.toLowerCase()?l.initSelection=function(e,t){var i=[];e.find("option").filter(function(){return this.selected}).each2(function(e,t){i.push(s.optionToData(t))}),t(i)}:"data"in l&&(l.initSelection=l.initSelection||function(e,a){var r=v(e.val(),l.separator),o=[];l.query({matcher:function(e,t,i){var s=m.grep(r,function(e){return b(e,l.id(i))}).length;return s&&o.push(i),s},callback:m.isFunction(a)?function(){for(var e=[],t=0;t<r.length;t++)for(var i=r[t],s=0;s<o.length;s++){var n=o[s];if(b(i,l.id(n))){e.push(n),o.splice(s,1);break}}a(e)}:m.noop})}),l},selectChoice:function(e){var t=this.container.find(".select2-search-choice-focus");t.length&&e&&e[0]==t[0]||(t.length&&this.opts.element.trigger("choice-deselected",t),t.removeClass("select2-search-choice-focus"),e&&e.length&&(this.close(),e.addClass("select2-search-choice-focus"),this.opts.element.trigger("choice-selected",e)))},destroy:function(){m("label[for='"+this.search.attr("id")+"']").attr("for",this.opts.element.attr("id")),this.parent.destroy.apply(this,arguments)},initContainer:function(){var l,e=".select2-choices";this.searchContainer=this.container.find(".select2-search-field"),this.selection=l=this.container.find(e);var t=this;this.selection.on("click",".select2-search-choice:not(.select2-locked)",function(e){t.search[0].focus(),t.selectChoice(m(this))}),this.search.attr("id","s2id_autogen"+d()),m("label[for='"+this.opts.element.attr("id")+"']").attr("for",this.search.attr("id")),this.search.on("input paste",this.bind(function(){this.isInterfaceEnabled()&&(this.opened()||this.open())})),this.search.attr("tabindex",this.elementTabIndex),this.keydowns=0,this.search.on("keydown",this.bind(function(e){if(this.isInterfaceEnabled()){++this.keydowns;var t,i,s,n=l.find(".select2-search-choice-focus"),a=n.prev(".select2-search-choice:not(.select2-locked)"),r=n.next(".select2-search-choice:not(.select2-locked)"),s=(t=this.search,o=s=0,"selectionStart"in(t=m(t)[0])?(s=t.selectionStart,o=t.selectionEnd-s):"selection"in document&&(t.focus(),i=document.selection.createRange(),o=document.selection.createRange().text.length,i.moveStart("character",-t.value.length),s=i.text.length-o),{offset:s,length:o});if(n.length&&(e.which==h.LEFT||e.which==h.RIGHT||e.which==h.BACKSPACE||e.which==h.DELETE||e.which==h.ENTER)){var o=n;return e.which==h.LEFT&&a.length?o=a:e.which==h.RIGHT?o=r.length?r:null:e.which===h.BACKSPACE?(this.unselect(n.first()),this.search.width(10),o=a.length?a:r):e.which==h.DELETE?(this.unselect(n.first()),this.search.width(10),o=r.length?r:null):e.which==h.ENTER&&(o=null),this.selectChoice(o),x(e),void(o&&o.length||this.open())}if((e.which===h.BACKSPACE&&1==this.keydowns||e.which==h.LEFT)&&0==s.offset&&!s.length)return this.selectChoice(l.find(".select2-search-choice:not(.select2-locked)").last()),void x(e);if(this.selectChoice(null),this.opened())switch(e.which){case h.UP:case h.DOWN:return this.moveHighlight(e.which===h.UP?-1:1),void x(e);case h.ENTER:return this.selectHighlighted(),void x(e);case h.TAB:return this.selectHighlighted({noFocus:!0}),void this.close();case h.ESC:return this.cancel(e),void x(e)}if(e.which!==h.TAB&&!h.isControl(e)&&!h.isFunctionKey(e)&&e.which!==h.BACKSPACE&&e.which!==h.ESC){if(e.which===h.ENTER){if(!1===this.opts.openOnEnter)return;if(e.altKey||e.ctrlKey||e.shiftKey||e.metaKey)return}this.open(),e.which!==h.PAGE_UP&&e.which!==h.PAGE_DOWN||x(e),e.which===h.ENTER&&x(e)}}})),this.search.on("keyup",this.bind(function(e){this.keydowns=0,this.resizeSearch()})),this.search.on("blur",this.bind(function(e){this.container.removeClass("select2-container-active"),this.search.removeClass("select2-focused"),this.selectChoice(null),this.opened()||this.clearSearch(),e.stopImmediatePropagation(),this.opts.element.trigger(m.Event("select2-blur"))})),this.container.on("click",e,this.bind(function(e){this.isInterfaceEnabled()&&(0<m(e.target).closest(".select2-search-choice").length||(this.selectChoice(null),this.clearPlaceholder(),this.container.hasClass("select2-container-active")||this.opts.element.trigger(m.Event("select2-focus")),this.open(),this.focusSearch(),e.preventDefault()))})),this.container.on("focus",e,this.bind(function(){this.isInterfaceEnabled()&&(this.container.hasClass("select2-container-active")||this.opts.element.trigger(m.Event("select2-focus")),this.container.addClass("select2-container-active"),this.dropdown.addClass("select2-drop-active"),this.clearPlaceholder())})),this.initContainerWidth(),this.opts.element.addClass("select2-offscreen"),this.clearSearch()},enableInterface:function(){this.parent.enableInterface.apply(this,arguments)&&this.search.prop("disabled",!this.isInterfaceEnabled())},initSelection:function(){var t;""===this.opts.element.val()&&""===this.opts.element.text()&&(this.updateSelection([]),this.close(),this.clearSearch()),!this.select&&""===this.opts.element.val()||(t=this).opts.initSelection.call(null,this.opts.element,function(e){e!==g&&null!==e&&(t.updateSelection(e),t.close(),t.clearSearch())})},clearSearch:function(){var e=this.getPlaceholder(),t=this.getMaxSearchWidth();e!==g&&0===this.getVal().length&&!1===this.search.hasClass("select2-focused")?(this.search.val(e).addClass("select2-default"),this.search.width(0<t?t:this.container.css("width"))):this.search.val("").width(10)},clearPlaceholder:function(){this.search.hasClass("select2-default")&&this.search.val("").removeClass("select2-default")},opening:function(){this.clearPlaceholder(),this.resizeSearch(),this.parent.opening.apply(this,arguments),this.focusSearch(),this.updateResults(!0),this.search.focus(),this.opts.element.trigger(m.Event("select2-open"))},close:function(){this.opened()&&this.parent.close.apply(this,arguments)},focus:function(){this.close(),this.search.focus()},isFocused:function(){return this.search.hasClass("select2-focused")},updateSelection:function(e){var t=[],i=[],s=this;m(e).each(function(){f(s.id(this),t)<0&&(t.push(s.id(this)),i.push(this))}),e=i,this.selection.find(".select2-search-choice").remove(),m(e).each(function(){s.addSelectedChoice(this)}),s.postprocessResults()},tokenize:function(){var e=this.search.val();null!=(e=this.opts.tokenizer.call(this,e,this.data(),this.bind(this.onSelect),this.opts))&&e!=g&&(this.search.val(e),0<e.length&&this.open())},onSelect:function(e,t){this.triggerSelect(e)&&(this.addSelectedChoice(e),this.opts.element.trigger({type:"selected",val:this.id(e),choice:e}),!this.select&&this.opts.closeOnSelect||this.postprocessResults(e,!1,!0===this.opts.closeOnSelect),!this.opts.closeOnSelect&&0<this.countSelectableResults()?(this.search.width(10),this.resizeSearch(),0<this.getMaximumSelectionSize()&&this.val().length>=this.getMaximumSelectionSize()&&this.updateResults(!0),this.positionDropdown()):(this.close(),this.search.width(10)),this.triggerChange({added:e}),t&&t.noFocus||this.focusSearch())},cancel:function(){this.close(),this.focusSearch()},addSelectedChoice:function(e){var t=!e.locked,i=m("<li class='select2-search-choice'> <div></div> <a href='#' class='select2-search-choice-close' tabindex='-1'></a></li>"),s=m("<li class='select2-search-choice select2-locked'><div></div></li>"),n=t?i:s,a=this.id(e),i=this.getVal(),s=this.opts.formatSelection(e,n.find("div"),this.opts.escapeMarkup);s!=g&&n.find("div").replaceWith("<div>"+s+"</div>"),(s=this.opts.formatSelectionCssClass(e,n.find("div")))!=g&&n.addClass(s),t&&n.find(".select2-search-choice-close").on("mousedown",x).on("click dblclick",this.bind(function(e){this.isInterfaceEnabled()&&(m(e.target).closest(".select2-search-choice").fadeOut("fast",this.bind(function(){this.unselect(m(e.target)),this.selection.find(".select2-search-choice-focus").removeClass("select2-search-choice-focus"),this.close(),this.focusSearch()})).dequeue(),x(e))})).on("focus",this.bind(function(){this.isInterfaceEnabled()&&(this.container.addClass("select2-container-active"),this.dropdown.addClass("select2-drop-active"))})),n.data("select2-data",e),n.insertBefore(this.searchContainer),i.push(a),this.setVal(i)},unselect:function(e){var t,i,s=this.getVal();if(0===(e=e.closest(".select2-search-choice")).length)throw"Invalid argument: "+e+". Must be .select2-search-choice";if(t=e.data("select2-data")){for(;0<=(i=f(this.id(t),s));)s.splice(i,1),this.setVal(s),this.select&&this.postprocessResults();var n=m.Event("select2-removing");n.val=this.id(t),n.choice=t,this.opts.element.trigger(n),n.isDefaultPrevented()||(e.remove(),this.opts.element.trigger({type:"select2-removed",val:this.id(t),choice:t}),this.triggerChange({removed:t}))}},postprocessResults:function(e,t,i){var s=this.getVal(),n=this.results.find(".select2-result"),a=this.results.find(".select2-result-with-children"),r=this;n.each2(function(e,t){0<=f(r.id(t.data("select2-data")),s)&&(t.addClass("select2-selected"),t.find(".select2-result-selectable").addClass("select2-selected"))}),a.each2(function(e,t){t.is(".select2-result-selectable")||0!==t.find(".select2-result-selectable:not(.select2-selected)").length||t.addClass("select2-selected")}),-1==this.highlight()&&!1!==i&&r.highlight(0),!this.opts.createSearchChoice&&0<!n.filter(".select2-result:not(.select2-selected)").length&&(!e||e&&!e.more&&0===this.results.find(".select2-no-results").length)&&R(r.opts.formatNoMatches,"formatNoMatches")&&this.results.append("<li class='select2-no-results'>"+r.opts.formatNoMatches(r.search.val())+"</li>")},getMaxSearchWidth:function(){return this.selection.width()-p(this.search)},resizeSearch:function(){var e,t,i,s=p(this.search);t=this.search,a||(i=t[0].currentStyle||window.getComputedStyle(t[0],null),(a=m(document.createElement("div")).css({position:"absolute",left:"-10000px",top:"-10000px",display:"none",fontSize:i.fontSize,fontFamily:i.fontFamily,fontStyle:i.fontStyle,fontWeight:i.fontWeight,letterSpacing:i.letterSpacing,textTransform:i.textTransform,whiteSpace:"nowrap"})).attr("class","select2-sizer"),m("body").append(a)),a.text(t.val()),e=a.width()+10,i=this.search.offset().left,(i=(i=(i=(t=this.selection.width())-(i-this.selection.offset().left)-s)<e?t-s:i)<40?t-s:i)<=0&&(i=e),this.search.width(Math.floor(i))},getVal:function(){var e;return this.select?null===(e=this.select.val())?[]:e:v(e=this.opts.element.val(),this.opts.separator)},setVal:function(e){var t;this.select?this.select.val(e):(t=[],m(e).each(function(){f(this,t)<0&&t.push(this)}),this.opts.element.val(0===t.length?"":t.join(this.opts.separator)))},buildChangeDetails:function(e,t){for(var t=t.slice(0),e=e.slice(0),i=0;i<t.length;i++)for(var s=0;s<e.length;s++)b(this.opts.id(t[i]),this.opts.id(e[s]))&&(t.splice(i,1),0<i&&i--,e.splice(s,1),s--);return{added:t,removed:e}},val:function(e,i){var s,n=this;if(0===arguments.length)return this.getVal();if((s=this.data()).length||(s=[]),!e&&0!==e)return this.opts.element.val(""),this.updateSelection([]),this.clearSearch(),void(i&&this.triggerChange({added:this.data(),removed:s}));if(this.setVal(e),this.select)this.opts.initSelection(this.select,this.bind(this.updateSelection)),i&&this.triggerChange(this.buildChangeDetails(s,this.data()));else{if(this.opts.initSelection===g)throw new Error("val() cannot be called if initSelection() is not defined");this.opts.initSelection(this.opts.element,function(e){var t=m.map(e,n.id);n.setVal(t),n.updateSelection(e),n.clearSearch(),i&&n.triggerChange(n.buildChangeDetails(s,n.data()))})}this.clearSearch()},onSortStart:function(){if(this.select)throw new Error("Sorting of elements is not supported when attached to <select>. Attach to <input type='hidden'/> instead.");this.search.width(0),this.searchContainer.hide()},onSortEnd:function(){var e=[],t=this;this.searchContainer.show(),this.searchContainer.appendTo(this.searchContainer.parent()),this.resizeSearch(),this.selection.find(".select2-search-choice").each(function(){e.push(t.opts.id(m(this).data("select2-data")))}),this.setVal(e),this.triggerChange()},data:function(e,t){var i,s,n=this;if(0===arguments.length)return this.selection.find(".select2-search-choice").map(function(){return m(this).data("select2-data")}).get();s=this.data(),i=m.map(e=e||[],function(e){return n.opts.id(e)}),this.setVal(i),this.updateSelection(e),this.clearSearch(),t&&this.triggerChange(this.buildChangeDetails(s,this.data()))}}),m.fn.select2=function(){var e,t,i,s=Array.prototype.slice.call(arguments,0),n=["val","destroy","opened","open","close","focus","isFocused","container","dropdown","onSortStart","onSortEnd","enable","disable","readonly","positionDropdown","data","search"],a=["opened","isFocused","container","dropdown"],r=["val","data"],o={search:"externalSearch"};return this.each(function(){if(0===s.length||"object"==typeof s[0])(e=0===s.length?{}:m.extend({},s[0])).element=m(this),"select"===e.element.get(0).tagName.toLowerCase()?i=e.element.prop("multiple"):(i=e.multiple||!1,"tags"in e&&(e.multiple=i=!0)),(i=new(i?c:l)).init(e);else{if("string"!=typeof s[0])throw"Invalid arguments to select2 plugin: "+s;if(f(s[0],n)<0)throw"Unknown method: "+s[0];if(t=g,(i=m(this).data("select2"))!==g)return e=s[0],t="container"===e?i.container:"dropdown"===e?i.dropdown:i[e=o[e]?o[e]:e].apply(i,s.slice(1)),!(0<=f(s[0],a)||f(s[0],r)&&1==s.length)&&void 0}}),t===g?this:t},m.fn.select2.defaults={width:"copy",loadMorePadding:0,closeOnSelect:!0,openOnEnter:!0,containerCss:{},dropdownCss:{},containerCssClass:"",dropdownCssClass:"",formatResult:function(e,t,i,s){var n=[];return S(e.text,i.term,n,s),n.join("")},formatSelection:function(e,t,i){return e?i(e.text):g},sortResults:function(e,t,i){return e},formatResultCssClass:function(e){return g},formatSelectionCssClass:function(e,t){return g},formatNoMatches:function(){return"No matches found"},formatInputTooShort:function(e,t){e=t-e.length;return"Please enter "+e+" more character"+(1==e?"":"s")},formatInputTooLong:function(e,t){t=e.length-t;return"Please delete "+t+" character"+(1==t?"":"s")},formatSelectionTooBig:function(e){return"You can only select "+e+" item"+(1==e?"":"s")},formatLoadMore:function(e){return"Loading more results..."},formatSearching:function(){return"Searching..."},minimumResultsForSearch:0,minimumInputLength:0,maximumInputLength:null,maximumSelectionSize:0,id:function(e){return e.id},matcher:function(e,t){return 0<=o(""+t).toUpperCase().indexOf(o(""+e).toUpperCase())},separator:",",tokenSeparators:[],tokenizer:function(e,t,i,s){var n,a,r,o,l,c=e,d=!1;if(!s.createSearchChoice||!s.tokenSeparators||s.tokenSeparators.length<1)return g;for(;;){for(a=-1,r=0,o=s.tokenSeparators.length;r<o&&(l=s.tokenSeparators[r],!(0<=(a=e.indexOf(l))));r++);if(a<0)break;if(n=e.substring(0,a),e=e.substring(a+l.length),0<n.length&&(n=s.createSearchChoice.call(this,n,t))!==g&&null!==n&&s.id(n)!==g&&null!==s.id(n)){for(d=!1,r=0,o=t.length;r<o;r++)if(b(s.id(n),s.id(t[r]))){d=!0;break}d||i(n)}}return c!==e?e:void 0},escapeMarkup:s,blurOnChange:!1,selectOnBlur:!1,adaptContainerCssClass:function(e){return e},adaptDropdownCssClass:function(e){return null},nextSearchTerm:function(e,t){return g}},m.fn.select2.ajaxDefaults={transport:m.ajax,params:{type:"GET",cache:!1,dataType:"json"}},window.Select2={query:{ajax:E,local:A,tags:T},util:{debounce:y,markMatch:S,escapeMarkup:s,stripDiacritics:o},class:{abstract:t,single:l,multi:c}}),i}.call(this),("undefined"==typeof window?global:window).__eba27a7823723466531db7fb21e464e1=function(){var e,t={},i=__e3df8976e53f6c32ff37e662cb568ca9,s=(e=i)&&e.__esModule?e:{default:e};__1ac9ef5f0fd8200879236ff768944762;var n=s.default.fn.select2,a="aui-select2-container",r="aui-select2-drop aui-dropdown2 aui-style-default";return s.default.fn.auiSelect2=function(e){var t,i;return s.default.isPlainObject(e)?(i=(t=s.default.extend({},e)).hasAvatar?" aui-has-avatar":"",t.containerCssClass=a+i+(t.containerCssClass?" "+t.containerCssClass:""),t.dropdownCssClass=r+i+(t.dropdownCssClass?" "+t.dropdownCssClass:""),(i=Array.prototype.slice.call(arguments,1)).unshift(t)):i=arguments.length?arguments:[{containerCssClass:a,dropdownCssClass:r}],n.apply(this,i)},t}.call(this),("undefined"==typeof window?global:window).__ff5dff5d440373e9a965b24684185165=function(){var e={};return function(e){for(var s=0,t=["webkit","moz"],i=e.requestAnimationFrame,n=e.cancelAnimationFrame,a=t.length;0<=--a&&!i;)i=e[t[a]+"RequestAnimationFrame"],n=e[t[a]+"CancelAnimationFrame"];i&&n||(i=function(e){var t=Date.now(),i=Math.max(s+16,t);return setTimeout(function(){e(s=i)},i-t)},n=clearTimeout),e.requestAnimationFrame=i,e.cancelAnimationFrame=n}(window),e}.call(this),("undefined"==typeof window?global:window).__54be7dda46dd06f2538615932ac5cbf9=function(){var e={exports:{}},t=e.exports;Object.defineProperty(t,"__esModule",{value:!0});var i=window.DocumentTouch,i="ontouchstart"in window||i&&document instanceof i;return t.default=i,e.exports=t.default,e.exports}.call(this),("undefined"==typeof window?global:window).__62ece9cfedb7f7013798e69055d96322=function(){var e={exports:{}},t=e.exports;return Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return"value"in e||e.isContentEditable},e.exports=t.default,e.exports}.call(this),("undefined"==typeof window?global:window).__21b671983bd0022caa369478b9aff39b=function(){var e={exports:{}},t=e.exports;return Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if(window.matchMedia)return window.matchMedia(e).matches;var t=document.createElement("style");t.type="text/css",t.id="testMedia",t.innerText="@media "+e+" { #testMedia { width: 1px; } }",document.head.appendChild(t);e="1px"===window.getComputedStyle(t,null).width;return t.parentNode.removeChild(t),e},e.exports=t.default,e.exports}.call(this),("undefined"==typeof window?global:window).__7e1dcb63325d8b7713c20e5f45bb31be=function(){var e={exports:{}},t=e.exports;Object.defineProperty(t,"__esModule",{value:!0});var o=a(__e3df8976e53f6c32ff37e662cb568ca9);__7cb7d30ed8ae8347dded8bce4b37521c,__ff5dff5d440373e9a965b24684185165,__a73e9e90657a207882cf3eebf38c2b4e;var l=a(__3dfdca7c9abeedb963f7e73b912fc22e),i=function(e){{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t.default=e,t}}(__29033a6975c2d8d795cf854beedd6f05),s=a(__52119b4b795cb8ac461e4f7c1c107994),c=a(__54be7dda46dd06f2538615932ac5cbf9),d=a(__62ece9cfedb7f7013798e69055d96322),u=a(__65f54629a086aa33db4a64cb0e39ebbe),h=a(__21b671983bd0022caa369478b9aff39b),f=a(__bdb175876694f044f0093acbedbfa550),p=a(__ffdbd56248ebf0f23f53701f7762b6ce),n=a(__c75be7fe5bd097f4cabdbdef53290f30);function a(e){return e&&e.__esModule?e:{default:e}}var r=void 0!==document.documentElement.style.transition||void 0!==document.documentElement.style.webkitTransition;function g(e){return e.offset().top}function b(e){var a,t,i,s,n;function r(e){return e.keyCode===u.default.TAB&&!e.shiftKey&&!e.altKey}this.$el=(0,o.default)(e),this.$el.length&&(this.$body=(0,o.default)("body"),this.$wrapper=this.$el.children(".aui-sidebar-wrapper"),this.$body.addClass("aui-page-sidebar"),this._previousScrollTop=null,this._previousViewportHeight=null,this._previousViewportWidth=null,this._previousOffsetTop=null,this.submenus=new w,a=this,(0,o.default)(".aui-sidebar").length&&(function(t){t.$el.on("mouseenter mouseleave click focus",t.collapsedTriggersSelector,function(e){e=(0,o.default)(e.target);E(t,e)})}(a),c.default&&(0,h.default)("only screen and (max-device-width:1024px)")&&(0,o.default)("body").addClass("aui-page-sidebar-touch"),i=function(){null===t&&(t=requestAnimationFrame(function(){a.reflow(),t=null}))},(t=null,o.default)(window).on("scroll resize",i),i(),a.isAnimated()&&a.$el.on("transitionend webkitTransitionEnd",function(){a.$el.trigger(o.default.Event(v+(a.isCollapsed()?"collapse-end":"expand-end")))}),a.$el.on("click",".aui-sidebar-toggle",function(e){e.preventDefault(),a.toggle()}),(0,o.default)(".aui-page-panel").click(function(){!a.isCollapsed()&&a.isViewportNarrow()&&a.collapse()}),s=function(e){(e=e).which!==u.default.LEFT_SQUARE_BRACKET||e.shiftKey||e.ctrlKey||e.metaKey||(0,d.default)(e.target)||a.toggle()},(0,o.default)(document).on("keypress",s),a._remove=function(){this._removeAllTooltips(),(0,o.default)(this.inlineDialogSelector).remove(),this.$el.off(),this.$el.remove(),(0,o.default)(document).off("keypress",s),(0,o.default)(window).off("scroll resize",i)},a.$el.on("touchend",function(e){a.isCollapsed()&&(a.expand(),e.preventDefault())}),a.$el.on("mouseenter focus",a.collapsedTriggersSelector,function(){var e;a.isCollapsed()&&(C(e=(0,o.default)(this))||R(e))}),a.$el.on("click blur mouseleave",a.collapsedTriggersSelector,function(){a.isCollapsed()&&O((0,o.default)(this))}),a.$el.on("mouseenter focus",a.toggleSelector,function(){var e=(0,o.default)(this);a.isCollapsed()?e.data("tooltip",AJS.I18n.getText("aui.sidebar.expand.tooltip")):e.data("tooltip",AJS.I18n.getText("aui.sidebar.collapse.tooltip")),R(e)}),a.$el.on("click blur mouseleave",a.toggleSelector,function(){O((0,o.default)(this))}),a.$el.on("keydown",a.collapsedTriggersSelector,function(e){var i,t,s,n;!a.isCollapsed()||(t=x(i=e.target))&&(s=(0,o.default)(t),r(e)&&t.open&&(e.preventDefault(),(n=s).attr("persistent",""),n.find(":aui-tabbable").first().focus(),setTimeout(function(){n.removeAttr("persistent")},100),s.on("keydown",function(e){var t;((t=e).keyCode===u.default.TAB&&t.shiftKey&&e.target===s.find(":aui-tabbable")[0]||r(e)&&e.target===s.find(":aui-tabbable").last()[0])&&(i.focus(),(0,o.default)(this).off("keydown"),S())})))})),n=this,(0,o.default)(n.collapsedTriggersSelector).each(function(){var e=(0,o.default)(this);E(n,e)}))}var v="_aui-internal-sidebar-";function m(e){return o.default.map(e.split(" "),function(e){return v+e}).join(" ")}function _(){return document.querySelectorAll(b.prototype.inlineDialogSelector)}function w(){this.inlineDialog=null}function y(e){return e.is("a")?e.next(".aui-nav"):e.children(".aui-nav, hr")}function x(e){e=e.getAttribute("aria-controls");return document.getElementById(e)}function C(e){return 0!==y(e).length}function S(){var e=_();Array.prototype.forEach.call(e,function(e){e.open=!1})}function E(e,t){if(!t.data("_aui-sidebar-submenu-constructed")&&(t.data("_aui-sidebar-submenu-constructed",!0),C(t))){var i,s,n,a=document.createElement("aui-inline-dialog"),r=(0,p.default)("sidebar-submenu");return t.attr("aria-controls",r),t.attr("data-aui-trigger",""),f.default.init(t),a.setAttribute("id",r),a.setAttribute("alignment","right top"),a.setAttribute("aria-hidden","true"),e.isCollapsed()&&a.setAttribute("responds-to","hover"),(0,o.default)(a).addClass(b.prototype.inlineDialogClass),document.body.appendChild(a),f.default.init(a),i=e,s=t,(n=a).addEventListener("aui-layer-show",function(e){i.isCollapsed()?function(e,t){e.addClass("active"),t.innerHTML=A;var i=(e.is("a")?e:e.children(".aui-nav-heading")).text(),t=(0,o.default)(t).find(".aui-navgroup-inner");t.children(".aui-nav-heading").attr("title",i).children("strong").text(i),function(e){return(e=(0,l.default)(e)).hasClass("aui-expander-content")&&(e.find(".aui-expander-cutoff").remove(),e.removeClass("aui-expander-content")),e}(y(e)).appendTo(t)}(s,n):e.preventDefault()}),n.addEventListener("aui-layer-hide",function(){s.removeClass("active")}),a}}b.prototype.on=function(){var e=arguments[0],t=Array.prototype.slice.call(arguments,1),e=m(e);return this.$el.on.apply(this.$el,[e].concat(t)),this},b.prototype.off=function(){var e=arguments[0],t=Array.prototype.slice.call(arguments,1),e=m(e);return this.$el.off.apply(this.$el,[e].concat(t)),this},b.prototype.setHeight=function(e,t,i){e=Math.max(0,i-e);return this.$wrapper.height(t-e),this},b.prototype.setPosition=i.fn(b.prototype.setTopPosition=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:window.pageYOffset;return this.$wrapper.toggleClass("aui-is-docked",e>g(this.$el)),this},"Sidebar.setPosition",{removeInVersion:"8.0.0",sinceVersion:"7.6.1",alternativeName:"Sidebar.setTopPosition"}),b.prototype.setLeftPosition=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:window.pageXOffset;return this.$wrapper.hasClass("aui-is-docked")&&this.$wrapper.css({left:-e}),this},b.prototype.setCollapsedState=function(t){var e={collapsed:{},expanded:{}};e.collapsed.narrow={narrow:o.default.noop,wide:function(e){e._expand(t,!0)}},e.collapsed.wide={narrow:o.default.noop,wide:o.default.noop},e.expanded.narrow={narrow:o.default.noop,wide:function(e){e.$body.removeClass("aui-sidebar-collapsed"),e.$el.removeClass("aui-sidebar-fly-out")}},e.expanded.wide={narrow:function(e){e._collapse(!0)},wide:o.default.noop};var i=this.isCollapsed()?"collapsed":"expanded",s=this.isViewportNarrow(this._previousViewportWidth)?"narrow":"wide",n=this.isViewportNarrow(t)?"narrow":"wide";return e[i][s][n](this),this},b.prototype._collapse=function(e){if(this.isCollapsed())return this;var t=o.default.Event(v+"collapse-start",{isResponsive:e});return this.$el.trigger(t),t.isDefaultPrevented()||(this.$body.addClass("aui-sidebar-collapsed"),this.$el.attr("aria-expanded","false"),this.$el.removeClass("aui-sidebar-fly-out"),this.$el.find(this.submenuTriggersSelector).attr("tabindex",0),(0,o.default)(this.inlineDialogSelector).attr("responds-to","hover"),this.isAnimated()||this.$el.trigger(o.default.Event(v+"collapse-end",{isResponsive:e}))),this},b.prototype.collapse=function(){return this._collapse(!1)},b.prototype._expand=function(e,t){var i=o.default.Event(v+"expand-start",{isResponsive:t});if(this.$el.trigger(i),i.isDefaultPrevented())return this;e=this.isViewportNarrow(e);return this.$el.attr("aria-expanded","true"),this.$body.toggleClass("aui-sidebar-collapsed",e),this.$el.toggleClass("aui-sidebar-fly-out",e),this.$el.find(this.submenuTriggersSelector).removeAttr("tabindex"),(0,o.default)(this.inlineDialogSelector).removeAttr("responds-to"),this.isAnimated()||this.$el.trigger(o.default.Event(v+"expand-end",{isResponsive:t})),this},b.prototype.expand=function(){return this.isCollapsed()&&this._expand(this._previousViewportWidth,!1),this},b.prototype.isAnimated=function(){return r&&this.$el.hasClass("aui-is-animated")},b.prototype.isCollapsed=function(){return"false"===this.$el.attr("aria-expanded")},b.prototype.isViewportNarrow=function(e){return(e=void 0===e?this._previousViewportWidth:e)<1240},b.prototype._removeAllTooltips=function(){(0,o.default)(this.tooltipSelector).remove()},b.prototype.responsiveReflow=function(e,t){e?!this.isCollapsed()&&this.isViewportNarrow(t)&&((e=this.isAnimated())&&this.$el.removeClass("aui-is-animated"),this.collapse(),e&&(this.$el[0].offsetHeight,this.$el.addClass("aui-is-animated"))):t!==this._previousViewportWidth&&this.setCollapsedState(t)},b.prototype.reflow=function(){var e,t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:window.pageYOffset,i=1<arguments.length&&void 0!==arguments[1]?arguments[1]:document.documentElement.clientHeight,s=2<arguments.length&&void 0!==arguments[2]?arguments[2]:window.innerWidth,n=3<arguments.length&&void 0!==arguments[3]?arguments[3]:document.documentElement.scrollHeight,a=4<arguments.length&&void 0!==arguments[4]?arguments[4]:window.pageXOffset,r=g(this.$el),o=null===this._previousViewportWidth;return t===this._previousScrollTop&&i===this._previousViewportHeight&&r===this._previousOffsetTop||(this.isCollapsed()&&!o&&t!==this._previousScrollTop&&(S(),this._removeAllTooltips()),e=this.$body.hasClass("aui-page-sidebar-touch"),n=t!==this._previousScrollTop&&(t<0||n<t+i),e||!o&&n||(this.setHeight(t,i,r),this.setTopPosition(t))),a!==this._previousScrollLeft&&this.setLeftPosition(a),"false"!==this.$el.attr("data-aui-responsive")?this.responsiveReflow(o,s):(o=!this.isCollapsed()&&this.isViewportNarrow(s),this.$el.toggleClass("aui-sidebar-fly-out",o)),this._previousScrollTop=t,this._previousViewportHeight=i,this._previousViewportWidth=s,this._previousOffsetTop=r,this._previousScrollLeft=a,this},b.prototype.toggle=function(){return this.isCollapsed()?(this.expand(),this._removeAllTooltips()):this.collapse(),this},b.prototype.collapsedTriggersSelector=[b.prototype.submenuTriggersSelector=".aui-sidebar-group:not(.aui-sidebar-group-tier-one)",".aui-sidebar-group.aui-sidebar-group-tier-one > .aui-nav > li > a",".aui-sidebar-footer > .aui-sidebar-settings-button"].join(", "),b.prototype.toggleSelector=".aui-sidebar-footer > .aui-sidebar-toggle",b.prototype.tooltipSelector=".aui-sidebar-section-tooltip",b.prototype.inlineDialogSelector="."+(b.prototype.inlineDialogClass="aui-sidebar-submenu-dialog"),w.prototype.submenu=function(e){return $(),y(e)},w.prototype.hasSubmenu=function(e){return $(),C(e)},w.prototype.submenuHeadingHeight=function(){return $(),34},w.prototype.isShowing=function(){return $(),b.prototype.isSubmenuVisible()},w.prototype.show=function(e,t){$(),x(t).open=!0},w.prototype.hide=function(){$(),S()},w.prototype.inlineDialogShowHandler=function(){$()},w.prototype.inlineDialogHideHandler=function(){$()},w.prototype.moveSubmenuToInlineDialog=function(){$()},w.prototype.restoreSubmenu=function(){$()},b.prototype.getVisibleSubmenus=function(){return Array.prototype.filter.call(_(),function(e){return e.open})},b.prototype.isSubmenuVisible=function(){return 0<this.getVisibleSubmenus().length};var A='<div class="aui-inline-dialog-contents"><div class="aui-sidebar-submenu" ><div class="aui-navgroup aui-navgroup-vertical"><div class="aui-navgroup-inner"><div class="aui-nav-heading"><strong></strong></div></div></div></div></div>';var T={trigger:"manual",gravity:"w",className:"aui-sidebar-section-tooltip",title:function(){var e=(0,o.default)(this);return e.is("a")?e.attr("title")||e.find(".aui-nav-item-label").text()||e.data("tooltip"):e.children(".aui-nav").attr("title")||e.children(".aui-nav-heading").text()}};function R(e){e.tipsy(T).tipsy("show");e=e.data("tipsy")&&e.data("tipsy").$tip;e&&e.css({opacity:""}).addClass("tooltip-shown")}function O(e){var t,i=e.data("tipsy")&&e.data("tipsy").$tip;i&&((t=i.css("transition-duration"))?(t=0<=t.indexOf("ms")?parseInt(t.substring(0,t.length-2),10):1e3*parseInt(t.substring(0,t.length-1),10),setTimeout(function(){i.hasClass("tooltip-shown")&&(e.tipsy("hide"),i.removeClass("tooltip-shown"))},t)):i.removeClass("tooltip-shown"))}var I=(0,n.default)("sidebar",b);(0,o.default)(function(){I(".aui-sidebar")});var $=i.getMessageLogger("Sidebar.submenus",{removeInVersion:"8.0",sinceVersion:"5.8"});return(0,s.default)("sidebar",I),t.default=I,e.exports=t.default,e.exports}.call(this),("undefined"==typeof window?global:window).__3106fced7011a69aaf01f679d413da3a=function(){var e={};return function(T){T.extend({tablesorter:new function(){var v=this;function m(){var e=arguments[0],t=1<arguments.length?Array.prototype.slice.call(arguments):e;"undefined"!=typeof console&&void 0!==console.log?console[/error/i.test(e)?"error":/warn/i.test(e)?"warn":"log"](t):alert(t)}function _(e,t){m(e+" ("+((new Date).getTime()-t.getTime())+"ms)")}function b(e){for(var t in e)return;return 1}function w(e,t,i){if(!t)return"";var s=e.config,n=s.textExtraction||"",a="",a="basic"===n?T(t).attr(s.textAttribute)||t.textContent||t.innerText||T(t).text()||"":"function"==typeof n?n(t,e,i):"function"==typeof(n=v.getColumnData(e,n,i))?n(t,e,i):t.textContent||t.innerText||T(t).text()||"";return T.trim(a)}function g(e){var t,i,s,n,a,r,o,l,c,d,u=e.config,h=u.$tbodies=u.$table.children("tbody:not(."+u.cssInfoBlock+")"),f=0,p="",g=h.length;if(0===g)return u.debug&&m("Warning: *Empty table!* Not building a parser cache");for(u.debug&&(d=new Date,m("Detecting parsers for each column")),i={extractors:[],parsers:[]};f<g;){if((t=h[f].rows)[f])for(s=u.columns,n=0;n<s;n++)a=u.$headers.filter('[data-column="'+n+'"]:last'),r=v.getColumnData(e,u.headers,n),c=v.getParserById(v.getData(a,r,"extractor")),l=v.getParserById(v.getData(a,r,"sorter")),o="false"===v.getData(a,r,"parser"),u.empties[n]=v.getData(a,r,"empty")||u.emptyTo||(u.emptyToBottom?"bottom":"top"),u.strings[n]=v.getData(a,r,"string")||u.stringTo||"max",c=c||!1,l=(l=o?v.getParserById("no-parser"):l)||function(e,t,i,s){for(var n,a=v.parsers.length,r=!1,o="",l=!0;""===o&&l;)t[++i]?(o=w(e,r=t[i].cells[s],s),e.config.debug&&m("Checking if value was empty on row "+i+", column: "+s+': "'+o+'"')):l=!1;for(;0<=--a;)if((n=v.parsers[a])&&"text"!==n.id&&n.is&&n.is(o,e,r))return n;return v.getParserById("text")}(e,t,-1,n),u.debug&&(p+="column:"+n+"; extractor:"+c.id+"; parser:"+l.id+"; string:"+u.strings[n]+"; empty: "+u.empties[n]+"\n"),i.parsers[n]=l,i.extractors[n]=c;f+=i.parsers.length?g:1}u.debug&&(m(p||"No parsers detected"),_("Completed detecting parsers",d)),u.parsers=i.parsers,u.extractors=i.extractors}function u(e){var t,i,s,n,a,r,o,l,c,d,u,h,f=e.config,p=f.$table.children("tbody"),g=f.extractors,b=f.parsers;if(f.cache={},f.totalRows=0,!b)return f.debug&&m("Warning: *Empty table!* Not building a cache");for(f.debug&&(c=new Date),f.showProcessing&&v.isProcessing(e,!0),r=0;r<p.length;r++)if(h=[],t=f.cache[r]={normalized:[]},!p.eq(r).hasClass(f.cssInfoBlock)){for(d=p[r]&&p[r].rows.length||0,n=0;n<d;++n)if(u={child:[]},o=T(p[r].rows[n]),new Array(f.columns),l=[],o.hasClass(f.cssChildRow)&&0!==n)i=t.normalized.length-1,t.normalized[i][f.columns].$row=t.normalized[i][f.columns].$row.add(o),o.prev().hasClass(f.cssChildRow)||o.prev().addClass(v.css.cssHasChild),u.child[i]=T.trim(o[0].textContent||o[0].innerText||o.text()||"");else{for(u.$row=o,u.order=n,a=0;a<f.columns;++a)void 0!==b[a]?(i=w(e,o[0].cells[a],a),s=void 0===g[a].id?i:g[a].format(i,e,o[0].cells[a],a),s="no-parser"===b[a].id?"":b[a].format(s,e,o[0].cells[a],a),l.push(f.ignoreCase&&"string"==typeof s?s.toLowerCase():s),"numeric"===(b[a].type||"").toLowerCase()&&(h[a]=Math.max(Math.abs(s)||0,h[a]||0))):f.debug&&m("No parser found for cell:",o[0].cells[a],"does it have a header?");l[f.columns]=u,t.normalized.push(l)}t.colMax=h,f.totalRows+=t.normalized.length}f.showProcessing&&v.isProcessing(e),f.debug&&_("Building cache for "+d+" rows",c)}function y(e,t){var i,s,n,a,r,o,l,c=e.config,d=c.widgetOptions,u=e.tBodies,h=[],f=c.cache;if(b(f))return c.appender?c.appender(e,h):e.isUpdating&&c.$table.trigger("updateComplete",e);for(c.debug&&(l=new Date),o=0;o<u.length;o++)if((n=T(u[o])).length&&!n.hasClass(c.cssInfoBlock)){for(a=v.processTbody(e,n,!0),s=(i=f[o].normalized).length,r=0;r<s;r++)h.push(i[r][c.columns].$row),c.appender&&(!c.pager||c.pager.removeRows&&d.pager_removeRows||c.pager.ajax)||a.append(i[r][c.columns].$row);v.processTbody(e,a,!1)}c.appender&&c.appender(e,h),c.debug&&_("Rebuilt table",l),t||c.appender||v.applyWidget(e),e.isUpdating&&c.$table.trigger("updateComplete",e)}function l(e){return/^d/i.test(e)||1===e}function c(t){var i,s,n,a,r,e,o=t.config;o.headerList=[],o.headerContent=[],o.debug&&(e=new Date),o.columns=v.computeColumnIndex(o.$table.children("thead, tfoot").children("tr")),n=o.cssIcon?'<i class="'+(o.cssIcon===v.css.icon?v.css.icon:o.cssIcon+" "+v.css.icon)+'"></i>':"",o.$headers=T(t).find(o.selectorHeaders).each(function(e){i=T(this),r=v.getColumnData(t,o.headers,e,!0),o.headerContent[e]=T(this).html(),a=o.headerTemplate.replace(/\{content\}/g,T(this).html()).replace(/\{icon\}/g,n),o.onRenderTemplate&&(s=o.onRenderTemplate.apply(i,[e,a]))&&"string"==typeof s&&(a=s),T(this).html('<div class="'+v.css.headerIn+'">'+a+"</div>"),o.onRenderHeader&&o.onRenderHeader.apply(i,[e]),this.column=parseInt(T(this).attr("data-column"),10),this.order=l(v.getData(i,r,"sortInitialOrder")||o.sortInitialOrder)?[1,0,2]:[0,1,2],this.count=-1,this.lockedOrder=!1,void 0!==(r=v.getData(i,r,"lockedOrder")||!1)&&!1!==r&&(this.order=this.lockedOrder=l(r)?[1,1,1]:[0,0,0]),i.addClass(v.css.header+" "+o.cssHeader),o.headerList[e]=this,i.parent().addClass(v.css.headerRow+" "+o.cssHeaderRow).attr("role","row"),o.tabIndex&&i.attr("tabindex",0)}).attr({scope:"col",role:"columnheader"}),C(t),o.debug&&(_("Built headers:",e),m(o.$headers))}function x(e,t,i){var s=e.config;s.$table.find(s.selectorRemove).remove(),g(e),u(e),A(s.$table,t,i)}function C(i){var s,n,a=i.config;a.$headers.each(function(e,t){s=T(t),n=v.getColumnData(i,a.headers,e,!0),n="false"===v.getData(t,n,"sorter")||"false"===v.getData(t,n,"parser"),t.sortDisabled=n,s[n?"addClass":"removeClass"]("sorter-false").attr("aria-disabled",""+n),i.id&&(n?s.removeAttr("aria-controls"):s.attr("aria-controls",i.id))})}function S(e){var t,i,s,n=e.config,a=n.sortList,r=a.length,o=v.css.sortNone+" "+n.cssNone,l=[v.css.sortAsc+" "+n.cssAsc,v.css.sortDesc+" "+n.cssDesc],c=["ascending","descending"],d=T(e).find("tfoot tr").children().add(n.$extraHeaders).removeClass(l.join(" "));for(n.$headers.removeClass(l.join(" ")).addClass(o).attr("aria-sort","none"),i=0;i<r;i++)if(2!==a[i][1]&&(t=n.$headers.not(".sorter-false").filter('[data-column="'+a[i][0]+'"]'+(1===r?":last":""))).length){for(s=0;s<t.length;s++)t[s].sortDisabled||t.eq(s).removeClass(o).addClass(l[a[i][1]]).attr("aria-sort",c[a[i][1]]);d.length&&d.filter('[data-column="'+a[i][0]+'"]').removeClass(o).addClass(l[a[i][1]])}n.$headers.not(".sorter-false").each(function(){var e=T(this),t=this.order[(this.count+1)%(n.sortReset?3:2)],t=e.text()+": "+v.language[e.hasClass(v.css.sortAsc)?"sortAsc":e.hasClass(v.css.sortDesc)?"sortDesc":"sortNone"]+v.language[0===t?"nextAsc":1===t?"nextDesc":"nextNone"];e.attr("aria-label",t)})}function E(n){var a,e,t,r,o,l,c,d,u,h=n.config,f=h.textSorter||"",p=h.sortList,g=p.length,i=n.tBodies.length;if(!h.serverSideSorting&&!b(h.cache)){for(h.debug&&(t=new Date),e=0;e<i;e++)r=h.cache[e].colMax,h.cache[e].normalized.sort(function(e,t){for(a=0;a<g;a++){if(l=p[a][0],o=p[a][1],u=0===o,h.sortStable&&e[l]===t[l]&&1===g)return e[h.columns].order-t[h.columns].order;if(d=/n/i.test((i=h.parsers,s=l,i&&i[s]&&i[s].type||"")),l=d&&h.strings[l]?(d="boolean"==typeof h.string[h.strings[l]]?(u?1:-1)*(h.string[h.strings[l]]?-1:1):h.strings[l]&&h.string[h.strings[l]]||0,h.numberSorter?h.numberSorter(e[l],t[l],u,r[l],n):v["sortNumeric"+(u?"Asc":"Desc")](e[l],t[l],d,r[l],l,n)):(c=u?e:t,d=u?t:e,"function"==typeof f?f(c[l],d[l],u,l,n):"object"==typeof f&&f.hasOwnProperty(l)?f[l](c[l],d[l],u,l,n):v["sortNatural"+(u?"Asc":"Desc")](e[l],t[l],l,n,h)))return l}var i,s;return e[h.columns].order-t[h.columns].order});h.debug&&_("Sorting on "+p.toString()+" and dir "+o+" time",t)}}function n(e,t){e[0].isUpdating&&e.trigger("updateComplete"),T.isFunction(t)&&t(e[0])}function A(e,t,i){var s=e[0].config.sortList;!1!==t&&!e[0].isProcessing&&s.length?e.trigger("sorton",[s,function(){n(e,i)},!0]):(n(e,i),v.applyWidget(e[0],!1))}function d(h){var f=h.config,p=f.$table;p.unbind("sortReset update updateRows updateCell updateAll addRows updateComplete sorton appendCache updateCache applyWidgetId applyWidgets refreshWidgets destroy mouseup mouseleave ".split(" ").join(f.namespace+" ")).bind("sortReset"+f.namespace,function(e,t){e.stopPropagation(),f.sortList=[],S(h),E(h),y(h),T.isFunction(t)&&t(h)}).bind("updateAll"+f.namespace,function(e,t,i){e.stopPropagation(),h.isUpdating=!0,v.refreshWidgets(h,!0,!0),v.restoreHeaders(h),c(h),v.bindEvents(h,f.$headers,!0),d(h),x(h,t,i)}).bind("update"+f.namespace+" updateRows"+f.namespace,function(e,t,i){e.stopPropagation(),h.isUpdating=!0,C(h),x(h,t,i)}).bind("updateCell"+f.namespace,function(e,t,i,s){e.stopPropagation(),h.isUpdating=!0,p.find(f.selectorRemove).remove();var n=p.find("tbody"),a=T(t),r=n.index(T.fn.closest?a.closest("tbody"):a.parents("tbody").filter(":first")),e=T.fn.closest?a.closest("tr"):a.parents("tr").filter(":first");t=a[0],n.length&&0<=r&&(n=n.eq(r).find("tr").index(e),a=a.index(),f.cache[r].normalized[n][f.columns].$row=e,e=void 0===f.extractors[a].id?w(h,t,a):f.extractors[a].format(w(h,t,a),h,t,a),t="no-parser"===f.parsers[a].id?"":f.parsers[a].format(e,h,t,a),f.cache[r].normalized[n][a]=f.ignoreCase&&"string"==typeof t?t.toLowerCase():t,"numeric"===(f.parsers[a].type||"").toLowerCase()&&(f.cache[r].colMax[a]=Math.max(Math.abs(t)||0,f.cache[r].colMax[a]||0)),A(p,i,s))}).bind("addRows"+f.namespace,function(e,t,i,s){if(e.stopPropagation(),h.isUpdating=!0,b(f.cache))C(h),x(h,i,s);else{var n,a,r,o,l,c,d=(t=T(t).attr("role","row")).filter("tr").length,u=p.find("tbody").index(t.parents("tbody").filter(":first"));for(f.parsers&&f.parsers.length||g(h),n=0;n<d;n++){for(r=t[n].cells.length,c=[],l={child:[],$row:t.eq(n),order:f.cache[u].normalized.length},a=0;a<r;a++)o=void 0===f.extractors[a].id?w(h,t[n].cells[a],a):f.extractors[a].format(w(h,t[n].cells[a],a),h,t[n].cells[a],a),o="no-parser"===f.parsers[a].id?"":f.parsers[a].format(o,h,t[n].cells[a],a),c[a]=f.ignoreCase&&"string"==typeof o?o.toLowerCase():o,"numeric"===(f.parsers[a].type||"").toLowerCase()&&(f.cache[u].colMax[a]=Math.max(Math.abs(c[a])||0,f.cache[u].colMax[a]||0));c.push(l),f.cache[u].normalized.push(c)}A(p,i,s)}}).bind("updateComplete"+f.namespace,function(){h.isUpdating=!1}).bind("sorton"+f.namespace,function(e,t,i,s){var n,a,r,o,l,c,d=h.config;e.stopPropagation(),p.trigger("sortStart",this),t=t,c=h.config,t=t||c.sortList,c.sortList=[],T.each(t,function(e,t){if(o=parseInt(t[0],10),r=c.$headers.filter('[data-column="'+o+'"]:last')[0]){switch(a=(a=(""+t[1]).match(/^(1|d|s|o|n)/))?a[0]:""){case"1":case"d":a=1;break;case"s":a=l||0;break;case"o":n=r.order[(l||0)%(c.sortReset?3:2)],a=0===n?1:1===n?0:2;break;case"n":r.count=r.count+1,a=r.order[r.count%(c.sortReset?3:2)];break;default:a=0}l=0===e?a:l,n=[o,parseInt(a,10)||0],c.sortList.push(n),a=T.inArray(n[1],r.order),r.count=0<=a?a:n[1]%(c.sortReset?3:2)}}),S(h),d.delayInit&&b(d.cache)&&u(h),p.trigger("sortBegin",this),E(h),y(h,s),p.trigger("sortEnd",this),v.applyWidget(h),T.isFunction(i)&&i(h)}).bind("appendCache"+f.namespace,function(e,t,i){e.stopPropagation(),y(h,i),T.isFunction(t)&&t(h)}).bind("updateCache"+f.namespace,function(e,t){f.parsers&&f.parsers.length||g(h),u(h),T.isFunction(t)&&t(h)}).bind("applyWidgetId"+f.namespace,function(e,t){e.stopPropagation(),v.getWidgetById(t).format(h,f,f.widgetOptions)}).bind("applyWidgets"+f.namespace,function(e,t){e.stopPropagation(),v.applyWidget(h,t)}).bind("refreshWidgets"+f.namespace,function(e,t,i){e.stopPropagation(),v.refreshWidgets(h,t,i)}).bind("destroy"+f.namespace,function(e,t,i){e.stopPropagation(),v.destroy(h,t,i)}).bind("resetToLoadState"+f.namespace,function(){v.refreshWidgets(h,!0,!0),f=T.extend(!0,v.defaults,f.originalSettings),h.hasInitialized=!1,v.setup(h,f)})}v.version="2.17.7",v.parsers=[],v.widgets=[],v.defaults={theme:"default",widthFixed:!1,showProcessing:!1,headerTemplate:"{content}",onRenderTemplate:null,onRenderHeader:null,cancelSelection:!0,tabIndex:!0,dateFormat:"mmddyyyy",sortMultiSortKey:"shiftKey",sortResetKey:"ctrlKey",usNumberFormat:!0,delayInit:!1,serverSideSorting:!1,headers:{},ignoreCase:!0,sortForce:null,sortList:[],sortAppend:null,sortStable:!1,sortInitialOrder:"asc",sortLocaleCompare:!1,sortReset:!1,sortRestart:!1,emptyTo:"bottom",stringTo:"max",textExtraction:"basic",textAttribute:"data-text",textSorter:null,numberSorter:null,widgets:[],widgetOptions:{zebra:["even","odd"]},initWidgets:!0,initialized:null,tableClass:"",cssAsc:"",cssDesc:"",cssNone:"",cssHeader:"",cssHeaderRow:"",cssProcessing:"",cssChildRow:"tablesorter-childRow",cssIcon:"tablesorter-icon",cssInfoBlock:"tablesorter-infoOnly",selectorHeaders:"> thead th, > thead td",selectorSort:"th, td",selectorRemove:".remove-me",debug:!1,headerList:[],empties:{},strings:{},parsers:[]},v.css={table:"tablesorter",cssHasChild:"tablesorter-hasChildRow",childRow:"tablesorter-childRow",header:"tablesorter-header",headerRow:"tablesorter-headerRow",headerIn:"tablesorter-header-inner",icon:"tablesorter-icon",info:"tablesorter-infoOnly",processing:"tablesorter-processing",sortAsc:"tablesorter-headerAsc",sortDesc:"tablesorter-headerDesc",sortNone:"tablesorter-headerUnSorted"},v.language={sortAsc:"Ascending sort applied, ",sortDesc:"Descending sort applied, ",sortNone:"No sort applied, ",nextAsc:"activate to apply an ascending sort",nextDesc:"activate to apply a descending sort",nextNone:"activate to remove the sort"},v.log=m,v.benchmark=_,v.construct=function(t){return this.each(function(){var e=T.extend(!0,{},v.defaults,t);e.originalSettings=t,!this.hasInitialized&&v.buildTable&&"TABLE"!==this.tagName?v.buildTable(this,e):v.setup(this,e)})},v.setup=function(t,i){if(!t||!t.tHead||0===t.tBodies.length||!0===t.hasInitialized)return i.debug?m("ERROR: stopping initialization! No table, thead, tbody or tablesorter has already been initialized"):"";var e,s,n,a="",r=T(t),o=T.metadata;t.hasInitialized=!1,t.isProcessing=!0,t.config=i,T.data(t,"tablesorter",i),i.debug&&T.data(t,"startoveralltimer",new Date),i.supportsDataObject=((e=T.fn.jquery.split("."))[0]=parseInt(e[0],10),1<e[0]||1===e[0]&&4<=parseInt(e[1],10)),i.string={max:1,min:-1,emptyMin:1,emptyMax:-1,zero:0,none:0,null:0,top:!0,bottom:!1},/tablesorter\-/.test(r.attr("class"))||(a=""!==i.theme?" tablesorter-"+i.theme:""),i.table=t,i.$table=r.addClass(v.css.table+" "+i.tableClass+a).attr("role","grid"),i.$headers=r.find(i.selectorHeaders),i.namespace?i.namespace="."+i.namespace.replace(/\W/g,""):i.namespace=".tablesorter"+Math.random().toString(16).slice(2),i.$table.children().children("tr").attr("role","row"),i.$tbodies=r.children("tbody:not(."+i.cssInfoBlock+")").attr({"aria-live":"polite","aria-relevant":"all"}),i.$table.find("caption").length&&i.$table.attr("aria-labelledby","theCaption"),i.widgetInit={},i.textExtraction=i.$table.attr("data-text-extraction")||i.textExtraction||"basic",c(t),(a=t).config.widthFixed&&0===T(a).find("colgroup").length&&(s=T("<colgroup>"),n=T(a).width(),T(a.tBodies[0]).find("tr:first").children(":visible").each(function(){s.append(T("<col>").css("width",parseInt(T(this).width()/n*1e3,10)/10+"%"))}),T(a).prepend(s)),g(t),i.totalRows=0,i.delayInit||u(t),v.bindEvents(t,i.$headers,!0),d(t),i.supportsDataObject&&void 0!==r.data().sortlist?i.sortList=r.data().sortlist:o&&r.metadata()&&r.metadata().sortlist&&(i.sortList=r.metadata().sortlist),v.applyWidget(t,!0),0<i.sortList.length?r.trigger("sorton",[i.sortList,{},!i.initWidgets,!0]):(S(t),i.initWidgets&&v.applyWidget(t,!1)),i.showProcessing&&r.unbind("sortBegin"+i.namespace+" sortEnd"+i.namespace).bind("sortBegin"+i.namespace+" sortEnd"+i.namespace,function(e){clearTimeout(i.processTimer),v.isProcessing(t),"sortBegin"===e.type&&(i.processTimer=setTimeout(function(){v.isProcessing(t,!0)},500))}),t.hasInitialized=!0,t.isProcessing=!1,i.debug&&v.benchmark("Overall initialization time",T.data(t,"startoveralltimer")),r.trigger("tablesorter-initialized",t),"function"==typeof i.initialized&&i.initialized(t)},v.getColumnData=function(e,t,i,s){if(null!=t){var n,a=(e=T(e)[0]).config;if(t[i])return s?t[i]:t[a.$headers.index(a.$headers.filter('[data-column="'+i+'"]:last'))];for(n in t)if("string"==typeof n&&(s?a.$headers.eq(i):a.$headers.filter('[data-column="'+i+'"]:last')).filter(n).length)return t[n]}},v.computeColumnIndex=function(e){for(var t,i,s,n,a,r,o,l,c,d,u,h,f=[],p={},g=0,b=0;b<e.length;b++)for(r=e[b].cells,t=0;t<r.length;t++){for(a=r[t],n=T(a),l=(o=a.parentNode.rowIndex)+"-"+n.index(),c=a.rowSpan||1,d=a.colSpan||1,void 0===f[o]&&(f[o]=[]),i=0;i<f[o].length+1;i++)if(void 0===f[o][i]){u=i;break}for(p[l]=u,g=Math.max(u,g),n.attr({"data-column":u}),i=o;i<o+c;i++)for(void 0===f[i]&&(f[i]=[]),h=f[i],s=u;s<u+d;s++)h[s]="x"}return g+1},v.isProcessing=function(e,t,i){var s=(e=T(e))[0].config,n=i||e.find("."+v.css.header);t?(void 0!==i&&0<s.sortList.length&&(n=n.filter(function(){return!this.sortDisabled&&0<=v.isValueInArray(parseFloat(T(this).attr("data-column")),s.sortList)})),e.add(n).addClass(v.css.processing+" "+s.cssProcessing)):e.add(n).removeClass(v.css.processing+" "+s.cssProcessing)},v.processTbody=function(e,t,i){var s;if(e=T(e)[0],i)return e.isProcessing=!0,t.before('<span class="tablesorter-savemyplace"/>'),s=T.fn.detach?t.detach():t.remove();s=T(e).find("span.tablesorter-savemyplace"),t.insertAfter(s),s.remove(),e.isProcessing=!1},v.clearTableBody=function(e){T(e)[0].config.$tbodies.children().detach()},v.bindEvents=function(s,n,e){var a,r=(s=T(s)[0]).config;!0!==e&&(r.$extraHeaders=r.$extraHeaders?r.$extraHeaders.add(n):n),n.find(r.selectorSort).add(n.filter(r.selectorSort)).unbind("mousedown mouseup sort keyup ".split(" ").join(r.namespace+" ")).bind("mousedown mouseup sort keyup ".split(" ").join(r.namespace+" "),function(e,t){var i=e.type;if(!(1!==(e.which||e.button)&&!/sort|keyup/.test(i)||"keyup"===i&&13!==e.which||"mouseup"===i&&!0!==t&&250<(new Date).getTime()-a)){if("mousedown"===i)return a=(new Date).getTime(),/(input|select|button|textarea)/i.test(e.target.tagName)?"":!r.cancelSelection;r.delayInit&&b(r.cache)&&u(s),i=T.fn.closest?T(this).closest("th, td")[0]:/TH|TD/.test(this.tagName)?this:T(this).parents("th, td")[0],(i=r.$headers[n.index(i)]).sortDisabled||function e(t,i,s){if(t.isUpdating)return setTimeout(function(){e(t,i,s)},50);var n,a,r,o,l,c=t.config,d=!s[c.sortMultiSortKey],u=c.$table;if(u.trigger("sortStart",t),i.count=s[c.sortResetKey]?2:(i.count+1)%(c.sortReset?3:2),c.sortRestart&&(a=i,c.$headers.each(function(){this===a||!d&&T(this).is("."+v.css.sortDesc+",."+v.css.sortAsc)||(this.count=-1)})),a=i.column,d){if(c.sortList=[],null!==c.sortForce)for(n=c.sortForce,r=0;r<n.length;r++)n[r][0]!==a&&c.sortList.push(n[r]);if(o=i.order[i.count],o<2&&(c.sortList.push([a,o]),1<i.colSpan))for(r=1;r<i.colSpan;r++)c.sortList.push([a+r,o])}else{if(c.sortAppend&&1<c.sortList.length)for(r=0;r<c.sortAppend.length;r++)0<=(l=v.isValueInArray(c.sortAppend[r][0],c.sortList))&&c.sortList.splice(l,1);if(0<=v.isValueInArray(a,c.sortList))for(r=0;r<c.sortList.length;r++)l=c.sortList[r],o=c.$headers.filter('[data-column="'+l[0]+'"]:last')[0],l[0]===a&&(l[1]=o.order[i.count],2===l[1]&&(c.sortList.splice(r,1),o.count=-1));else if(o=i.order[i.count],o<2&&(c.sortList.push([a,o]),1<i.colSpan))for(r=1;r<i.colSpan;r++)c.sortList.push([a+r,o])}if(null!==c.sortAppend)for(n=c.sortAppend,r=0;r<n.length;r++)n[r][0]!==a&&c.sortList.push(n[r]);u.trigger("sortBegin",t),setTimeout(function(){S(t),E(t),y(t),u.trigger("sortEnd",t)},1)}(s,i,e)}}),r.cancelSelection&&n.attr("unselectable","on").bind("selectstart",!1).css({"user-select":"none",MozUserSelect:"none"})},v.restoreHeaders=function(e){var t=T(e)[0].config;t.$table.find(t.selectorHeaders).each(function(e){T(this).find("."+v.css.headerIn).length&&T(this).html(t.headerContent[e])})},v.destroy=function(e,t,i){var s,n,a,r,o;(e=T(e)[0]).hasInitialized&&(v.refreshWidgets(e,!0,!0),s=T(e),n=e.config,r=(a=s.find("thead:first")).find("tr."+v.css.headerRow).removeClass(v.css.headerRow+" "+n.cssHeaderRow),o=s.find("tfoot:first > tr").children("th, td"),!1===t&&0<=T.inArray("uitheme",n.widgets)&&(s.trigger("applyWidgetId",["uitheme"]),s.trigger("applyWidgetId",["zebra"])),a.find("tr").not(r).remove(),s.removeData("tablesorter").unbind("sortReset update updateAll updateRows updateCell addRows updateComplete sorton appendCache updateCache applyWidgetId applyWidgets refreshWidgets destroy mouseup mouseleave keypress sortBegin sortEnd resetToLoadState ".split(" ").join(n.namespace+" ")),n.$headers.add(o).removeClass([v.css.header,n.cssHeader,n.cssAsc,n.cssDesc,v.css.sortAsc,v.css.sortDesc,v.css.sortNone].join(" ")).removeAttr("data-column").removeAttr("aria-label").attr("aria-disabled","true"),r.find(n.selectorSort).unbind("mousedown mouseup keypress ".split(" ").join(n.namespace+" ")),v.restoreHeaders(e),s.toggleClass(v.css.table+" "+n.tableClass+" tablesorter-"+n.theme,!1===t),e.hasInitialized=!1,delete e.config.cache,"function"==typeof i&&i(e))},v.regex={chunk:/(^([+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?)?$|^0x[0-9a-f]+$|\d+)/gi,chunks:/(^\\0|\\0$)/,hex:/^0x[0-9a-f]+$/i},v.sortNatural=function(e,t){if(e===t)return 0;var i,s,n,a,r,o,l,c,d=v.regex;if(d.hex.test(t)){if((s=parseInt(e.match(d.hex),16))<(a=parseInt(t.match(d.hex),16)))return-1;if(a<s)return 1}for(i=e.replace(d.chunk,"\\0$1\\0").replace(d.chunks,"").split("\\0"),n=t.replace(d.chunk,"\\0$1\\0").replace(d.chunks,"").split("\\0"),c=Math.max(i.length,n.length),l=0;l<c;l++){if(r=isNaN(i[l])?i[l]||0:parseFloat(i[l])||0,o=isNaN(n[l])?n[l]||0:parseFloat(n[l])||0,isNaN(r)!==isNaN(o))return isNaN(r)?1:-1;if(typeof r!=typeof o&&(r+="",o+=""),r<o)return-1;if(o<r)return 1}return 0},v.sortNaturalAsc=function(e,t,i,s,n){if(e===t)return 0;n=n.string[n.empties[i]||n.emptyTo];return""===e&&0!==n?"boolean"==typeof n?n?-1:1:-n||-1:""===t&&0!==n?"boolean"==typeof n?n?1:-1:n||1:v.sortNatural(e,t)},v.sortNaturalDesc=function(e,t,i,s,n){if(e===t)return 0;n=n.string[n.empties[i]||n.emptyTo];return""===e&&0!==n?"boolean"==typeof n?n?-1:1:n||1:""===t&&0!==n?"boolean"==typeof n?n?1:-1:-n||-1:v.sortNatural(t,e)},v.sortText=function(e,t){return t<e?1:e<t?-1:0},v.getTextValue=function(e,t,i){if(i){for(var s=e?e.length:0,n=i+t,a=0;a<s;a++)n+=e.charCodeAt(a);return t*n}return 0},v.sortNumericAsc=function(e,t,i,s,n,a){if(e===t)return 0;a=a.config,a=a.string[a.empties[n]||a.emptyTo];return""===e&&0!==a?"boolean"==typeof a?a?-1:1:-a||-1:""===t&&0!==a?"boolean"==typeof a?a?1:-1:a||1:(e=isNaN(e)?v.getTextValue(e,i,s):e)-(t=isNaN(t)?v.getTextValue(t,i,s):t)},v.sortNumericDesc=function(e,t,i,s,n,a){if(e===t)return 0;a=a.config,a=a.string[a.empties[n]||a.emptyTo];return""===e&&0!==a?"boolean"==typeof a?a?-1:1:a||1:""===t&&0!==a?"boolean"==typeof a?a?1:-1:-a||-1:(isNaN(e)&&(e=v.getTextValue(e,i,s)),(t=isNaN(t)?v.getTextValue(t,i,s):t)-e)},v.sortNumeric=function(e,t){return e-t},v.characterEquivalents={a:"áàâãäąå",A:"ÁÀÂÃÄĄÅ",c:"çćč",C:"ÇĆČ",e:"éèêëěę",E:"ÉÈÊËĚĘ",i:"íìİîïı",I:"ÍÌİÎÏ",o:"óòôõö",O:"ÓÒÔÕÖ",ss:"ß",SS:"ẞ",u:"úùûüů",U:"ÚÙÛÜŮ"},v.replaceAccents=function(e){var t,i="[",s=v.characterEquivalents;if(!v.characterRegex){for(t in v.characterRegexArray={},s)"string"==typeof t&&(i+=s[t],v.characterRegexArray[t]=new RegExp("["+s[t]+"]","g"));v.characterRegex=new RegExp(i+"]")}if(v.characterRegex.test(e))for(t in s)"string"==typeof t&&(e=e.replace(v.characterRegexArray[t],t));return e},v.isValueInArray=function(e,t){for(var i=t.length,s=0;s<i;s++)if(t[s][0]===e)return s;return-1},v.addParser=function(e){for(var t=v.parsers.length,i=!0,s=0;s<t;s++)v.parsers[s].id.toLowerCase()===e.id.toLowerCase()&&(i=!1);i&&v.parsers.push(e)},v.getParserById=function(e){if("false"==e)return!1;for(var t=v.parsers.length,i=0;i<t;i++)if(v.parsers[i].id.toLowerCase()===e.toString().toLowerCase())return v.parsers[i];return!1},v.addWidget=function(e){v.widgets.push(e)},v.hasWidget=function(e,t){return(e=T(e)).length&&e[0].config&&e[0].config.widgetInit[t]||!1},v.getWidgetById=function(e){for(var t,i=v.widgets.length,s=0;s<i;s++)if((t=v.widgets[s])&&t.hasOwnProperty("id")&&t.id.toLowerCase()===e.toLowerCase())return t},v.applyWidget=function(i,s){var e,t,n,a=(i=T(i)[0]).config,r=a.widgetOptions,o=[];!1!==s&&i.hasInitialized&&(i.isApplyingWidgets||i.isUpdating)||(a.debug&&(e=new Date),a.widgets.length&&(i.isApplyingWidgets=!0,a.widgets=T.grep(a.widgets,function(e,t){return T.inArray(e,a.widgets)===t}),T.each(a.widgets||[],function(e,t){(n=v.getWidgetById(t))&&n.id&&(n.priority||(n.priority=10),o[e]=n)}),o.sort(function(e,t){return e.priority<t.priority?-1:e.priority===t.priority?0:1}),T.each(o,function(e,t){t&&(!s&&a.widgetInit[t.id]||(a.widgetInit[t.id]=!0,t.hasOwnProperty("options")&&(r=i.config.widgetOptions=T.extend(!0,{},t.options,r)),t.hasOwnProperty("init")&&t.init(i,t,a,r)),!s&&t.hasOwnProperty("format")&&t.format(i,a,r,!1))})),setTimeout(function(){i.isApplyingWidgets=!1},0),a.debug&&(t=a.widgets.length,_("Completed "+(!0===s?"initializing ":"applying ")+t+" widget"+(1!==t?"s":""),e)))},v.refreshWidgets=function(e,t,i){for(var s=(e=T(e)[0]).config,n=s.widgets,a=v.widgets,r=a.length,o=0;o<r;o++)a[o]&&a[o].id&&(t||T.inArray(a[o].id,n)<0)&&(s.debug&&m('Refeshing widgets: Removing "'+a[o].id+'"'),a[o].hasOwnProperty("remove")&&s.widgetInit[a[o].id]&&(a[o].remove(e,s,s.widgetOptions),s.widgetInit[a[o].id]=!1));!0!==i&&v.applyWidget(e,t)},v.getData=function(e,t,i){var s,n="",a=T(e);return a.length?(s=!!T.metadata&&a.metadata(),e=" "+(a.attr("class")||""),void 0!==a.data(i)||void 0!==a.data(i.toLowerCase())?n+=a.data(i)||a.data(i.toLowerCase()):s&&void 0!==s[i]?n+=s[i]:t&&void 0!==t[i]?n+=t[i]:" "!==e&&e.match(" "+i+"-")&&(n=e.match(new RegExp("\\s"+i+"-([\\w-]+)"))[1]||""),T.trim(n)):""},v.formatFloat=function(e,t){return"string"!=typeof e||""===e?e:(e=(t&&t.config?!1!==t.config.usNumberFormat:void 0===t||t)?e.replace(/,/g,""):e.replace(/[\s|\.]/g,"").replace(/,/g,"."),/^\s*\([.\d]+\)/.test(e)&&(e=e.replace(/^\s*\(([.\d]+)\)/,"-$1")),t=parseFloat(e),isNaN(t)?T.trim(e):t)},v.isDigit=function(e){return!isNaN(e)||/^[\-+(]?\d+[)]?$/.test(e.toString().replace(/[,.'"\s]/g,""))}}});var u=T.tablesorter;T.fn.extend({tablesorter:u.construct}),u.addParser({id:"no-parser",is:function(){return!1},format:function(){return""},type:"text"}),u.addParser({id:"text",is:function(){return!0},format:function(e,t){t=t.config;return e&&(e=T.trim(t.ignoreCase?e.toLocaleLowerCase():e),e=t.sortLocaleCompare?u.replaceAccents(e):e),e},type:"text"}),u.addParser({id:"digit",is:function(e){return u.isDigit(e)},format:function(e,t){var i=u.formatFloat((e||"").replace(/[^\w,. \-()]/g,""),t);return e&&"number"==typeof i?i:e&&T.trim(e&&t.config.ignoreCase?e.toLocaleLowerCase():e)},type:"numeric"}),u.addParser({id:"currency",is:function(e){return/^\(?\d+[\u00a3$\u20ac\u00a4\u00a5\u00a2?.]|[\u00a3$\u20ac\u00a4\u00a5\u00a2?.]\d+\)?$/.test((e||"").replace(/[+\-,. ]/g,""))},format:function(e,t){var i=u.formatFloat((e||"").replace(/[^\w,. \-()]/g,""),t);return e&&"number"==typeof i?i:e&&T.trim(e&&t.config.ignoreCase?e.toLocaleLowerCase():e)},type:"numeric"}),u.addParser({id:"ipAddress",is:function(e){return/^\d{1,3}[\.]\d{1,3}[\.]\d{1,3}[\.]\d{1,3}$/.test(e)},format:function(e,t){for(var i=e?e.split("."):"",s="",n=i.length,a=0;a<n;a++)s+=("00"+i[a]).slice(-3);return e&&u.formatFloat(s,t)},type:"numeric"}),u.addParser({id:"url",is:function(e){return/^(https?|ftp|file):\/\//.test(e)},format:function(e){return e&&T.trim(e.replace(/(https?|ftp|file):\/\//,""))},type:"text"}),u.addParser({id:"isoDate",is:function(e){return/^\d{4}[\/\-]\d{1,2}[\/\-]\d{1,2}/.test(e)},format:function(e,t){return e&&u.formatFloat(""!==e?new Date(e.replace(/-/g,"/")).getTime()||e:"",t)},type:"numeric"}),u.addParser({id:"percent",is:function(e){return/(\d\s*?%|%\s*?\d)/.test(e)&&e.length<15},format:function(e,t){return e&&u.formatFloat(e.replace(/%/g,""),t)},type:"numeric"}),u.addParser({id:"usLongDate",is:function(e){return/^[A-Z]{3,10}\.?\s+\d{1,2},?\s+(\d{4})(\s+\d{1,2}:\d{2}(:\d{2})?(\s+[AP]M)?)?$/i.test(e)||/^\d{1,2}\s+[A-Z]{3,10}\s+\d{4}/i.test(e)},format:function(e,t){return e&&u.formatFloat(new Date(e.replace(/(\S)([AP]M)$/i,"$1 $2")).getTime()||e,t)},type:"numeric"}),u.addParser({id:"shortDate",is:function(e){return/(^\d{1,2}[\/\s]\d{1,2}[\/\s]\d{4})|(^\d{4}[\/\s]\d{1,2}[\/\s]\d{1,2})/.test((e||"").replace(/\s+/g," ").replace(/[\-.,]/g,"/"))},format:function(e,t,i,s){var n,a;return e&&(a=(n=(a=t.config).$headers.filter("[data-column="+s+"]:last")).length&&n[0].dateFormat||u.getData(n,u.getColumnData(t,a.headers,s),"dateFormat")||a.dateFormat,e=e.replace(/\s+/g," ").replace(/[\-.,]/g,"/"),"mmddyyyy"===a?e=e.replace(/(\d{1,2})[\/\s](\d{1,2})[\/\s](\d{4})/,"$3/$1/$2"):"ddmmyyyy"===a?e=e.replace(/(\d{1,2})[\/\s](\d{1,2})[\/\s](\d{4})/,"$3/$2/$1"):"yyyymmdd"===a&&(e=e.replace(/(\d{4})[\/\s](\d{1,2})[\/\s](\d{1,2})/,"$1/$2/$3"))),e&&u.formatFloat(new Date(e).getTime()||e,t)},type:"numeric"}),u.addParser({id:"time",is:function(e){return/^(([0-2]?\d:[0-5]\d)|([0-1]?\d:[0-5]\d\s?([AP]M)))$/i.test(e)},format:function(e,t){return e&&u.formatFloat(new Date("2000/01/01 "+e.replace(/(\S)([AP]M)$/i,"$1 $2")).getTime()||e,t)},type:"numeric"}),u.addParser({id:"metadata",is:function(){return!1},format:function(e,t,i){t=t.config,t=t.parserMetadataName||"sortValue";return T(i).metadata()[t]},type:"numeric"}),u.addWidget({id:"zebra",priority:90,format:function(e,t,i){var s,n,a,r,o,l,c=new RegExp(t.cssChildRow,"i"),d=t.$tbodies;for(t.debug&&(o=new Date),l=0;l<d.length;l++)1<(s=d.eq(l)).children("tr").length&&(a=0,s.children("tr:visible").not(t.selectorRemove).each(function(){n=T(this),c.test(this.className)||a++,r=a%2==0,n.removeClass(i.zebra[r?1:0]).addClass(i.zebra[r?0:1])}));t.debug&&u.benchmark("Applying Zebra widget",o)},remove:function(e,t,i){for(var s,n=t.$tbodies,a=(i.zebra||["even","odd"]).join(" "),r=0;r<n.length;r++)(s=T.tablesorter.processTbody(e,n.eq(r),!0)).children().removeClass(a),T.tablesorter.processTbody(e,s,!1)}})}(jQuery),e}.call(this),("undefined"==typeof window?global:window).__94e7328c51480ebb5880fa49490f41f2=function(){var e={exports:{}},t=e.exports;Object.defineProperty(t,"__esModule",{value:!0});var s=n(__e3df8976e53f6c32ff37e662cb568ca9);__3106fced7011a69aaf01f679d413da3a;var i=n(__52119b4b795cb8ac461e4f7c1c107994);function n(e){return e&&e.__esModule?e:{default:e}}var a={sortMultiSortKey:"",headers:{},debug:!1,tabIndex:!1};function r(e){var i=a;e.find("th").each(function(e,t){t=(0,s.default)(t);i.headers[e]={},t.hasClass("aui-table-column-unsortable")?i.headers[e].sorter=!1:(t.attr("tabindex","0"),t.wrapInner("<span class='aui-table-header-content'/>"),t.hasClass("aui-table-column-issue-key")&&(i.headers[e].sorter="issue-key"))}),e.tablesorter(i)}var o={setup:function(){s.default.tablesorter.addParser({id:"issue-key",is:function(){return!1},format:function(e){var t=e.split("-"),i=t[0],e=t[1],t="..........",t=(i+t).slice(0,t.length);return t+=("000000"+e).slice(-"000000".length)},type:"text"}),s.default.tablesorter.addParser({id:"textSortAttributeParser",is:function(e,t,i){return i.hasAttribute("data-sort-value")&&(!i.hasAttribute("data-sort-type")||"text"===i.getAttribute("data-sort-type"))},format:function(e,t,i,s){return i.getAttribute("data-sort-value")},type:"text"}),s.default.tablesorter.addParser({id:"numericSortAttributeParser",is:function(e,t,i){return"numeric"===i.getAttribute("data-sort-type")&&i.hasAttribute("data-sort-value")},format:function(e,t,i,s){return i.getAttribute("data-sort-value")},type:"numeric"}),(0,s.default)(".aui-table-sortable").each(function(){r((0,s.default)(this))})},setTableSortable:function(e){r(e)}};return(0,s.default)(o.setup),(0,i.default)("tablessortable",o),t.default=o,e.exports=t.default,e.exports}.call(this),("undefined"==typeof window?global:window).__ce81acc370afed3a55eb1ea79b256228=function(){var e={};return __7cb7d30ed8ae8347dded8bce4b37521c,e}.call(this),("undefined"==typeof window?global:window).__7524c1c88546b54a60fbf846d2f409f2=function(){var e={};__665d767a6bb44da1bffe8e25a1ca47d6,__eefd09dfedf72f66253e7fd9c618acaf;var n=__44d44318abe25d547e8c0f8bcdd025c3,a=u(__e3df8976e53f6c32ff37e662cb568ca9),t=u(__85962a105802c5c482d32f9293d5849a),i=u(__65f54629a086aa33db4a64cb0e39ebbe),s=u(__d524069b90f4a939cdb32a72c6236eab),r=u(__bdb175876694f044f0093acbedbfa550),o=__32c4d04c93f24102de40b3b8d37a29e5,l=u(__2873350341426b81edda3bd72a380ee0),c=__e908cae46409563113a74c74753980ed,d=u(c);function u(e){return e&&e.__esModule?e:{default:e}}function h(e){e._canFireEventsNow&&e.dispatchEvent(new l.default("change",{bubbles:!0}))}function f(e){return e._input||(e._input=e.querySelector("input"))}function p(e){return e._spinner||(e._spinner=new d.default)}function g(e,t){f(t).removeAttribute(e)}function b(e,t,i){f(t).setAttribute(e,i.newValue)}function v(e){return{removed:g.bind(this,e),fallback:b.bind(this,e)}}var m={removed:function(e){g.call(this,"form",e),e._formId=null},fallback:function(e,t){b.call(this,"form",e,t),e._formId=t.newValue}},_={removed:g.bind(void 0,"id"),fallback:function(e,t){f(e).setAttribute("id",""+t.newValue+o.INPUT_SUFFIX)}},w={removed:function(e){f(e).checked=!1,h(e)},fallback:function(e){f(e).checked=!0,h(e)}},y={removed:function(e){f(e).removeAttribute("aria-label")},fallback:function(e,t){f(e).setAttribute("aria-label",t.newValue)}};return(0,r.default)("aui-toggle",{template:(0,s.default)('<input type="checkbox" class="aui-toggle-input assistive">','<span class="aui-toggle-view">','<span class="aui-toggle-tick aui-icon aui-icon-small aui-iconfont-success"></span>','<span class="aui-toggle-cross aui-icon aui-icon-small aui-iconfont-close-dialog"></span>',"</span>"),created:function(e){var t;f(e),p(e).setAttribute("size",c.SIZE.SMALL.name),(0,a.default)(f(e)).tooltip({title:function(){return this.checked?this.getAttribute("tooltip-on"):this.getAttribute("tooltip-off")},gravity:"s",hoverable:!1}),f(t=e).addEventListener("keydown",function(e){t.busy&&e.keyCode===i.default.SPACE&&e.preventDefault()}),-1<navigator.userAgent.toLowerCase().indexOf("firefox")&&f(t).addEventListener("click",function(e){t.busy&&e.preventDefault()}),e.hasAttribute("checked")&&f(e).setAttribute("checked",""),e._canFireEventsNow=!0},attached:function(e){(0,t.default)(e).attributeExists("label")},events:{click:function(e,t){var i=f(e);e.disabled||e.busy||t.target===i||(i.checked=!i.checked),(0,n.setBooleanAttribute)(e,"checked",i.checked)}},attributes:{id:_,checked:w,disabled:v("disabled"),form:m,name:v("name"),value:v("value"),"tooltip-on":{value:AJS.I18n.getText("aui.toggle.on"),fallback:function(e,t){f(e).setAttribute("tooltip-on",t.newValue||AJS.I18n.getText("aui.toggle.on"))}},"tooltip-off":{value:AJS.I18n.getText("aui.toggle.off"),fallback:function(e,t){f(e).setAttribute("tooltip-off",t.newValue||AJS.I18n.getText("aui.toggle.off"))}},label:y},prototype:{focus:function(){return f(this).focus(),this},get checked(){return f(this).checked},set checked(e){f(this).checked!==e&&(f(this).checked=e,(0,n.setBooleanAttribute)(this,"checked",e))},get disabled(){return f(this).disabled},set disabled(e){return(0,n.setBooleanAttribute)(this,"disabled",e)},get form(){return document.getElementById(this._formId)},set form(e){return m.fallback.call(this,this,{newValue:e||null}),this.form},get name(){return f(this).name},set name(e){return this.setAttribute("name",e),e},get value(){return f(this).value},set value(e){return this.setAttribute("value",null===e?"":e),e},get busy(){return"true"===f(this).getAttribute("aria-busy")},set busy(e){var t,i=f(this),s=p(this);return(0,n.setBooleanAttribute)(this,"busy",e),e?(i.setAttribute("aria-busy","true"),i.indeterminate=!0,this.checked?(i.classList.add("indeterminate-checked"),(0,a.default)(this.querySelector(".aui-toggle-tick")).append(s)):(0,a.default)(this.querySelector(".aui-toggle-cross")).append(s)):(i.classList.remove("indeterminate-checked"),i.indeterminate=!1,i.removeAttribute("aria-busy"),s.parentNode&&s.parentNode.removeChild(this._spinner)),t=!!e,(s=this).id&&Array.prototype.forEach.call(document.querySelectorAll('aui-label[for="'+s.id+'"]'),function(e){e.disabled=t}),e}}}),e}.call(this),("undefined"==typeof window?global:window).__2e92db6fee4148180a625158899d2d84=function(){var e={},n=s(__e3df8976e53f6c32ff37e662cb568ca9),t=s(__d6d162a8a9f9da3baf81680da236fddd),i=s(__bdb175876694f044f0093acbedbfa550);function s(e){return e&&e.__esModule?e:{default:e}}function a(e,t){e.isEnabled()&&(e=e,(e=document.getElementById(e.getAttribute("aria-controls")))&&e.message&&e.message(t))}return(0,i.default)("data-aui-trigger",{type:i.default.type.ATTRIBUTE,events:{click:function(e,t){var i,s;i=e,s=t.target,(s=(0,n.default)(s).closest("a[href]",i)).length&&s[0]!==i||(a(e,t),t.preventDefault())},mouseenter:function(e,t){a(e,t)},mouseleave:function(e,t){a(e,t)},focus:function(e,t){a(e,t)},blur:function(e,t){a(e,t)}},prototype:{disable:function(){this.setAttribute("aria-disabled","true")},enable:function(){this.setAttribute("aria-disabled","false")},isEnabled:function(){return"true"!==this.getAttribute("aria-disabled")}}}),(0,t.default)("aui/trigger"),e}.call(this),("undefined"==typeof window?global:window).__5fff174a62fca9b18830596672739477=function(){var e={exports:{}},t=e.exports;Object.defineProperty(t,"__esModule",{value:!0});var i=n(__52119b4b795cb8ac461e4f7c1c107994),s=n(__3be4b0f5d6f0acfb340d67e10790f13a);function n(e){return e&&e.__esModule?e:{default:e}}var a=s.default.extend({initialize:function(e,t){this._maxResponseSize=t.maxResponseSize,s.default.prototype.initialize.call(this,e,t)},shouldGetMoreResults:function(e){var t=this.findQueryResponse(this.value);return!t||t.length===this._maxResponseSize},findQueryResponse:function(e){for(;e;){var t=this.findQueryCache(e);if(t)return t;e=e.substr(0,e.length-1)}return null}});return(0,i.default)("TruncatingProgressiveDataSet",a),t.default=a,e.exports=t.default,e.exports}.call(this),("undefined"==typeof window?global:window).__5b47982fea34d106051bd9294aceb411=function(){var e={exports:{}},t=e.exports;return Object.defineProperty(t,"__esModule",{value:!0}),__918f70b713bd34fe7e8702570365933c,__48d539aba4484159a9f16096a9545a62,__4dd338db884e491026c48ea39a1c3ac0,__7b18d0a3c12ded91239407dad543b3a4,__d1eb0c141ea65d752a2c0d3b9d45a5e7,__d6337ae9134a6dac91668eda2e5b7e46,__63842ce3aa76245caa2a9fef29e12d33,__7b56459c30710d67791b696b2b4232fb,__fa2a1b222b12f264e69f851ed5276bdc,__6a981215cf2b7f8db2cbb4a4fd701618,__3be4b0f5d6f0acfb340d67e10790f13a,__f6ea97a7768d0fbe760a101a6c770451,__b30873e068d74310f73dabac2f246c0c,__c28c2f5d8de29d39c907469deef49d05,__44702cc7fa7b358044195cfb6da39670,__82b7253585acced2679b0fdf8731ade0,__eba27a7823723466531db7fb21e464e1,__7e1dcb63325d8b7713c20e5f45bb31be,__e908cae46409563113a74c74753980ed,__665d767a6bb44da1bffe8e25a1ca47d6,__94e7328c51480ebb5880fa49490f41f2,__ce81acc370afed3a55eb1ea79b256228,__7524c1c88546b54a60fbf846d2f409f2,__eefd09dfedf72f66253e7fd9c618acaf,__2e92db6fee4148180a625158899d2d84,__5fff174a62fca9b18830596672739477,t.default=window.AJS,e.exports=t.default,e.exports}.call(this);