@atlassian/aui 7.10.3-alpha-1 → 7.10.3

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.
Files changed (113) hide show
  1. package/changelog.md +10 -0
  2. package/dist/aui/css/aui-experimental.css.map +1 -1
  3. package/dist/aui/css/aui-experimental.min.css +1 -1
  4. package/dist/aui/css/aui-experimental.min.css.map +1 -1
  5. package/dist/aui/css/aui-iconfonts.min.css.map +1 -1
  6. package/dist/aui/css/aui.css.map +1 -1
  7. package/dist/aui/css/aui.min.css +8 -8
  8. package/dist/aui/css/aui.min.css.map +1 -1
  9. package/dist/aui/js/aui-css-deprecations.js +6 -6
  10. package/dist/aui/js/aui-css-deprecations.min.js +1 -1
  11. package/dist/aui/js/aui-datepicker.js +13 -13
  12. package/dist/aui/js/aui-datepicker.min.js +1 -1
  13. package/dist/aui/js/aui-experimental.js +275 -275
  14. package/dist/aui/js/aui-experimental.min.js +1 -1
  15. package/dist/aui/js/aui-header-async.js +6 -6
  16. package/dist/aui/js/aui-header-async.min.js +1 -1
  17. package/dist/aui/js/aui-soy.js +56 -56
  18. package/dist/aui/js/aui-soy.min.js +1 -1
  19. package/dist/aui/js/aui.js +2278 -1544
  20. package/dist/aui/js/aui.min.js +1 -1
  21. package/lib/css/aui-date-picker.css.map +1 -1
  22. package/lib/css/aui-experimental-tooltip.css.map +1 -1
  23. package/lib/css/aui-page-typography-legacy1.css.map +1 -1
  24. package/lib/css/aui-page-typography.css.map +1 -1
  25. package/lib/css/batch/aui-experimental.css.map +1 -1
  26. package/lib/css/batch/aui.css.map +1 -1
  27. package/lib/css/forms.css.map +1 -1
  28. package/lib/css/imports/aui-theme/core/atlaskit-theme/borders.css +2 -0
  29. package/lib/css/imports/aui-theme/core/atlaskit-theme/borders.css.map +1 -0
  30. package/lib/css/imports/aui-theme/core/atlaskit-theme/colors.css +2 -0
  31. package/lib/css/imports/aui-theme/core/atlaskit-theme/colors.css.map +1 -0
  32. package/lib/css/imports/aui-theme/core/atlaskit-theme/fonts.css +2 -0
  33. package/lib/css/imports/aui-theme/core/atlaskit-theme/fonts.css.map +1 -0
  34. package/lib/css/imports/aui-theme/core/colors.css.map +1 -1
  35. package/lib/css/imports/aui-theme/core/text.css.map +1 -1
  36. package/lib/js/aui/backbone.js.map +1 -1
  37. package/lib/js/aui/binder.js.map +1 -1
  38. package/lib/js/aui/binders/placeholder.js.map +1 -1
  39. package/lib/js/aui/button.js.map +1 -1
  40. package/lib/js/aui/checkbox-multiselect.js.map +1 -1
  41. package/lib/js/aui/date-picker.js.map +1 -1
  42. package/lib/js/aui/dialog.js.map +1 -1
  43. package/lib/js/aui/dialog2.js.map +1 -1
  44. package/lib/js/aui/drop-down.js.map +1 -1
  45. package/lib/js/aui/dropdown2.js.map +1 -1
  46. package/lib/js/aui/fancy-file-input.js.map +1 -1
  47. package/lib/js/aui/flag.js.map +1 -1
  48. package/lib/js/aui/focus-manager-global.js.map +1 -1
  49. package/lib/js/aui/focus-manager.js.map +1 -1
  50. package/lib/js/aui/form-notification.js.map +1 -1
  51. package/lib/js/aui/form-validation/basic-validators.js.map +1 -1
  52. package/lib/js/aui/form-validation/validator-register.js.map +1 -1
  53. package/lib/js/aui/form-validation.js.map +1 -1
  54. package/lib/js/aui/header-async.js.map +1 -1
  55. package/lib/js/aui/i18n.js.map +1 -1
  56. package/lib/js/aui/inline-dialog.js.map +1 -1
  57. package/lib/js/aui/inline-dialog2.js.map +1 -1
  58. package/lib/js/aui/internal/alignment.js.map +1 -1
  59. package/lib/js/aui/internal/deprecation.js.map +1 -1
  60. package/lib/js/aui/internal/globalize.js.map +1 -1
  61. package/lib/js/aui/internal/header/create-header.js.map +1 -1
  62. package/lib/js/aui/internal/select/suggestion-model.js.map +1 -1
  63. package/lib/js/aui/internal/select/suggestions-view.js.map +1 -1
  64. package/lib/js/aui/internal/skate.js.map +1 -1
  65. package/lib/js/aui/internal/widget.js.map +1 -1
  66. package/lib/js/aui/label.js.map +1 -1
  67. package/lib/js/aui/layer-manager-global.js.map +1 -1
  68. package/lib/js/aui/layer-manager.js.map +1 -1
  69. package/lib/js/aui/layer.js.map +1 -1
  70. package/lib/js/aui/messages.js.map +1 -1
  71. package/lib/js/aui/navigation.js.map +1 -1
  72. package/lib/js/aui/polyfills/placeholder.js.map +1 -1
  73. package/lib/js/aui/populate-parameters.js.map +1 -1
  74. package/lib/js/aui/progress-indicator.js.map +1 -1
  75. package/lib/js/aui/progressive-data-set.js.map +1 -1
  76. package/lib/js/aui/query-input.js.map +1 -1
  77. package/lib/js/aui/restful-table/custom-create-view.js.map +1 -1
  78. package/lib/js/aui/restful-table/custom-edit-view.js.map +1 -1
  79. package/lib/js/aui/restful-table/custom-read-view.js.map +1 -1
  80. package/lib/js/aui/restful-table/edit-row.js.map +1 -1
  81. package/lib/js/aui/restful-table/entry-model.js.map +1 -1
  82. package/lib/js/aui/restful-table/row.js.map +1 -1
  83. package/lib/js/aui/restful-table.js.map +1 -1
  84. package/lib/js/aui/result-set.js.map +1 -1
  85. package/lib/js/aui/results-list.js.map +1 -1
  86. package/lib/js/aui/select.js.map +1 -1
  87. package/lib/js/aui/select2.js.map +1 -1
  88. package/lib/js/aui/setup.js.map +1 -1
  89. package/lib/js/aui/sidebar.js.map +1 -1
  90. package/lib/js/aui/spin.js.map +1 -1
  91. package/lib/js/aui/spinner.js.map +1 -1
  92. package/lib/js/aui/tables-sortable.js.map +1 -1
  93. package/lib/js/aui/tabs.js.map +1 -1
  94. package/lib/js/aui/template.js.map +1 -1
  95. package/lib/js/aui/toggle.js.map +1 -1
  96. package/lib/js/aui/tooltip.js.map +1 -1
  97. package/lib/js/aui/trigger.js.map +1 -1
  98. package/lib/js/aui/truncating-progressive-data-set.js.map +1 -1
  99. package/lib/js/aui/unbind-text-resize.js.map +1 -1
  100. package/lib/js/aui/underscore.js.map +1 -1
  101. package/lib/js/aui/version.js +1 -1
  102. package/lib/js/aui/version.js.map +1 -1
  103. package/lib/js/aui/when-i-type.js.map +1 -1
  104. package/lib/js/aui-css-deprecations.js.map +1 -1
  105. package/package.json +55 -43
  106. package/src/less/imports/aui-theme/core/atlaskit-theme/borders.less +1 -0
  107. package/src/less/imports/aui-theme/core/atlaskit-theme/colors.less +112 -0
  108. package/src/less/imports/aui-theme/core/atlaskit-theme/fonts.less +3 -0
  109. package/src/less/imports/aui-theme/core/colors.less +1 -1
  110. package/src/less/imports/aui-theme/core/text.less +1 -1
  111. package/yarn.lock +7295 -3224
  112. package/lib/js-vendor/underscorejs/underscore.js +0 -1287
  113. package/src/js-vendor/underscorejs/underscore.js +0 -1287
@@ -1 +1 @@
1
- ("undefined"==typeof window?global:window).__4cee1c49e56ebf45f2087abbc0c57d21=function(){function e(e){return e&&e.__esModule?e:{default:e}}var t={},i=e(__b096042e9825e59451ac15d5d8ff09dc),n=e(__96e1b5385eb02ea2ccfb53dd1c56831e);return function(){function e(e){String(e.value).trim().length||(e.value=e.getAttribute("placeholder"),(0,i.default)(e).addClass("aui-placeholder-shown"))}"placeholder"in document.createElement("input")||(0,n.default)("placeholder",{type:n.default.type.ATTRIBUTE,events:{blur:e,focus:function(e){e.value===e.getAttribute("placeholder")&&(e.value="",(0,i.default)(e).removeClass("aui-placeholder-shown"))}},created:e})}(),t}.call(this),("undefined"==typeof window?global:window).__2be65c64835353fdfe9052e3a8ec8b34=function(){function e(e){return e&&e.__esModule?e:{default:e}}function t(e){var t=function(e){return(0,a.default)((0,c.default)('<div class="aui-banner aui-banner-{type}" role="banner">{body}</div>').fill({type:"error","body:html":e.body||""}).toString())}(e);return i().find(".aui-banner").get().forEach(function(e){"true"===e.getAttribute("aria-hidden")&&(0,a.default)(e).remove()}),function(e){var t=i();if(!t.length)throw new Error("You must implement the application header");e.prependTo(t),(0,r.recomputeStyle)(e),e.attr("aria-hidden","false")}(t),t[0]}function i(){return(0,a.default)("#"+d)}var n={exports:{}},s=n.exports;Object.defineProperty(s,"__esModule",{value:!0});var a=e(__b096042e9825e59451ac15d5d8ff09dc),r=__72425a3df009ac1a508198e568c97f09,o=e(__72576d6f4213a167d30f7603f3411b23),l=e(__1cc2ffe09696e83b0a9eb0104e2ace69),c=e(__a56a6558bebb2da72d961b3765bc7275),d="header";return(0,o.default)("aui/banner",t),(0,l.default)("banner",t),s.default=t,n.exports=s.default,n.exports}.call(this),("undefined"==typeof window?global:window).__0f553622321953d0eeff163460b8ce9b=function(){function e(e){return e&&e.__esModule?e:{default:e}}function t(e){return e.hasAttribute("aria-busy")&&"true"===e.getAttribute("aria-busy")}function i(e){return"INPUT"===e.nodeName}var n={},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}(__a1782bd17c3175f2fd8fb8505a4b23d5),a=e(__72576d6f4213a167d30f7603f3411b23),r=e(__96e1b5385eb02ea2ccfb53dd1c56831e),o=__17552c5272c171ad452bafa218f51d92,l=e(o);return(0,r.default)("aui-button",{type:r.default.type.CLASSNAME,created:function(e){e._spinner=new l.default,e._spinner.setAttribute("size",o.SIZE.SMALL.name)},prototype:{busy:function(){return i(this)||t(this)?(s.warn("It is not valid to call busy() on an input button."),this):(this.appendChild(this._spinner),this.setAttribute("aria-busy",!0),this.setAttribute("busy",""),this)},idle:function(){return i(this)||!t(this)?(s.warn("It is not valid to call idle() on an input button."),this):(this.removeChild(this._spinner),this.removeAttribute("aria-busy"),this.removeAttribute("busy"),this)},isBusy:function(){return i(this)?(s.warn("It is not valid to call isBusy() on an input button."),!1):t(this)}}}),(0,a.default)("aui/button"),n}.call(this),("undefined"==typeof window?global:window).__88a2b4709d05f96f6d2c02be42e4f84b=function(){var e={};return function(e){function t(e,t){return"function"==typeof e?e.call(t):e}function i(e){for(;e=e.parentNode;)if(e==document)return!0;return!1}function n(t,i){this.$element=e(t),this.options=i,this.enabled=!0,this.fixTitle()}var s=0;n.prototype={show:function(){if(i(this.$element[0])){var n=this.getTitle();if(n&&this.enabled){var a=this.tip();a.find(".tipsy-inner")[this.options.html?"html":"text"](n),a[0].className="tipsy",a.remove().css({top:0,left:0,visibility:"hidden",display:"block"}).appendTo(document.body);var r=this;this.options.hoverable&&a.hover(function(){r.hoverTooltip=!0},function(){if("in"!=r.hoverState&&(r.hoverTooltip=!1,"manual"!=r.options.trigger)){var e="hover"==r.options.trigger?"mouseleave.tipsy":"blur.tipsy";r.$element.trigger(e)}}),this.options.className&&a.addClass(t(this.options.className,this.$element[0]));var o=e.extend({},this.$element.offset(),{width:this.$element[0].getBoundingClientRect().width,height:this.$element[0].getBoundingClientRect().height}),l={},c=a[0].offsetWidth,d=a[0].offsetHeight,u=t(this.options.gravity,this.$element[0]);switch(2===u.length&&("w"===u.charAt(1)?l.left=o.left+o.width/2-15:l.left=o.left+o.width/2-c+15),u.charAt(0)){case"n":void 0===l.left&&(l.left=o.left+o.width/2-c/2),l.top=o.top+o.height+this.options.offset;break;case"s":void 0===l.left&&(l.left=o.left+o.width/2-c/2,a.css(l),d=a[0].offsetHeight),l.top=o.top-d-this.options.offset;break;case"e":l.left=o.left-c-this.options.offset,l.top=o.top+o.height/2-d/2;break;case"w":l.left=o.left+o.width+this.options.offset,l.top=o.top+o.height/2-d/2}if(a.css(l).addClass("tipsy-"+u),a.find(".tipsy-arrow")[0].className="tipsy-arrow tipsy-arrow-"+u.charAt(0),this.options.fade?a.stop().css({opacity:0,display:"block",visibility:"visible"}).animate({opacity:this.options.opacity}):a.css({visibility:"visible",opacity:this.options.opacity}),this.options.aria){var h="tipsyuid"+s++;a.attr("id",h),this.$element.attr("aria-describedby",h)}}}},destroy:function(){this.$element.removeData("tipsy"),this.unbindHandlers(),this.hide()},unbindHandlers:function(){this.options.live?e(this.$element.context).off(".tipsy"):this.$element.unbind(".tipsy")},hide:function(){this.options.fade?this.tip().stop().fadeOut(function(){e(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=this.$element,t=this.options;this.fixTitle();var i;return"string"==typeof(t=this.options).title?i=e.attr("title"==t.title?"original-title":t.title):"function"==typeof t.title&&(i=t.title.call(e[0])),(i=(""+i).replace(/(^\s*|\s*$)/,""))||t.fallback},tip:function(){return this.$tip||(this.$tip=e('<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}},e.fn.tipsy=function(t){function i(i){var s=e.data(i,"tipsy");return s||(s=new n(i,e.fn.tipsy.elementOptions(i,t)),e.data(i,"tipsy",s)),s}function s(){var e=i(this);e.hoverState="in",0==t.delayIn?e.show():(e.fixTitle(),setTimeout(function(){"in"==e.hoverState&&e.show()},t.delayIn))}function a(){var e=i(this);e.hoverState="out",0==t.delayOut?e.hide():setTimeout(function(){"out"!=e.hoverState||e.hoverTooltip||e.hide()},t.delayOut)}if(!0===t)return this.data("tipsy");if("string"==typeof t){var r=this.data("tipsy");return r&&r[t](),this}if((t=e.extend({},e.fn.tipsy.defaults,t)).hoverable&&(t.delayOut=t.delayOut||20),t.live||this.each(function(){i(this)}),"manual"!=t.trigger){var o="hover"==t.trigger?"mouseenter.tipsy focus.tipsy":"focus.tipsy",l="hover"==t.trigger?"mouseleave.tipsy blur.tipsy":"blur.tipsy";t.live?e(this.context).on(o,this.selector,s).on(l,this.selector,a):this.bind(o,s).bind(l,a)}return this},e.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"},e.fn.tipsy.revalidate=function(){e(".tipsy").each(function(){var t=e.data(this,"tipsy-pointee");t&&i(t)||e(this).remove()})},e.fn.tipsy.elementOptions=function(t,i){return e.metadata?e.extend({},i,e(t).metadata()):i},e.fn.tipsy.autoNS=function(){return e(this).offset().top>e(document).scrollTop()+e(window).height()/2?"s":"n"},e.fn.tipsy.autoWE=function(){return e(this).offset().left>e(document).scrollLeft()+e(window).width()/2?"e":"w"},e.fn.tipsy.autoBounds=function(t,i){return function(){var n={ns:i[0],ew:i.length>1&&i[1]},s=e(document).scrollTop()+t,a=e(document).scrollLeft()+t,r=e(this);return r.offset().top<s&&(n.ns="n"),r.offset().left<a&&(n.ew="w"),e(window).width()+e(document).scrollLeft()-r.offset().left<t&&(n.ew="e"),e(window).height()+e(document).scrollTop()-r.offset().top<t&&(n.ns="s"),n.ns+(n.ew?n.ew:"")}}}(jQuery),e}.call(this),("undefined"==typeof window?global:window).__da0f512002b03f5f55d009d4a2e0f40b=function(){function e(e,t,i){return e.tipsy(i),"destroy"===i&&(t.live?(0,n.default)(e.context).off(".tipsy",e.selector):e.unbind(".tipsy")),e}function t(e,t){e.tipsy(t);if(t&&t.hideOnClick&&("hover"===t.trigger||!t.trigger&&"hover"===e.tipsy.defaults.trigger)){var i=function(){(0,n.default)(this).tipsy("hide")};t.live?(0,n.default)(e.context).on("click.tipsy",e.selector,i):e.bind("click.tipsy",i)}return e}var i={},n=function(e){return e&&e.__esModule?e:{default:e}}(__b096042e9825e59451ac15d5d8ff09dc);return __88a2b4709d05f96f6d2c02be42e4f84b,n.default.fn.tooltip=function(i){var s=n.default.extend({},n.default.fn.tooltip.defaults,i);return s.live?("string"==typeof i?e(this,s,i):t(this,s),this):this.each(function(){var a=(0,n.default)(this);return"string"==typeof i?e(a,s,i):t(a,s),a})},n.default.fn.tooltip.defaults={opacity:1,offset:1,delayIn:500,hoverable:!0,hideOnClick:!0,aria:!0},i}.call(this),("undefined"==typeof window?global:window).__bec9afe604c64635a3c7047bb123cd5c=function(){function e(e){return e&&e.__esModule?e:{default:e}}function t(e){var t=(0,u.default)(e.target);i(this,t.attr("data-value"),t.hasClass("aui-dropdown2-checked"))}function i(e,t,i){var n=e.$select.find("option").filter(function(){var e=(0,u.default)(this);return e.attr("value")===t&&e.prop("selected")!==i});n.length&&(n.prop("selected",i),e.$select.trigger("change"))}function n(e){e.$dropdown.find("[data-aui-checkbox-multiselect-clear]").prop("disabled",function(){return o(e).length<1})}function s(e){return e.map(function(){var e=(0,u.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 a(e){e.$dropdown.html(g.dropdown(function(e){return s(e.getOptions())}(e))),n(e)}function r(e){var t=l(e),i=function(e){return 0===o(e).length}(e)?function(e){return(0,u.default)(e).data("allLabel")||"All"}(e):t.join(", ");e.$btn.text(i)}function o(e){return s(e.getSelectedOptions())}function l(e){return u.default.map(o(e),function(e){return e.label})}var c={exports:{}},d=c.exports;Object.defineProperty(d,"__esModule",{value:!0});var u=e(__b096042e9825e59451ac15d5d8ff09dc);__25eaf073e7313772e1cc29ddd5c2474f,__da0f512002b03f5f55d009d4a2e0f40b,__a4a045451ebcbe40dcd4b856d36ef434;var h=e(__72576d6f4213a167d30f7603f3411b23),f=e(__96e1b5385eb02ea2ccfb53dd1c56831e),p=e(__f899d9e32b9794929a5129ab47bb52cb),g={dropdown:function(e){function t(){return(0,u.default)('<div class="aui-dropdown2-section">')}var i=t();(0,u.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 n=t(),s=(0,u.default)("<ul />").appendTo(n);return u.default.each(e,function(e,t){var i=(0,u.default)("<li />").attr({class:t.styleClass||""}).appendTo(s),n=(0,u.default)("<a />").text(t.label).attr("data-value",t.value).addClass("aui-dropdown2-checkbox aui-dropdown2-interactive").appendTo(i);t.icon&&(0,u.default)("<span />").addClass("aui-icon").css("backgroundImage","url("+t.icon+')")').appendTo(n),t.selected&&n.addClass("aui-dropdown2-checked")}),(0,u.default)("<div />").append(i).append(n).html()},furniture:function(e,t){var i=e+"-dropdown",n=(0,u.default)("<select />").attr({name:e,multiple:"multiple"}).html(t),s=(0,u.default)("<div>").attr({id:i,class:"aui-checkbox-multiselect-dropdown aui-dropdown2 aui-style-default"}),a=(0,u.default)("<button />").attr({class:"aui-checkbox-multiselect-btn aui-button aui-dropdown2-trigger",type:"button","aria-owns":i,"aria-haspopup":!0});return(0,u.default)("<div />").append(n).append(a).append(s).html()}},b=(0,f.default)("aui-checkbox-multiselect",{attached:function(e){var i=e.getAttribute("name")||(0,p.default)("aui-checkbox-multiselect-");e.innerHTML=g.furniture(i,e.innerHTML),e.$select=(0,u.default)("select",e).change(function(){r(e),n(e)}),e.$dropdown=(0,u.default)(".aui-checkbox-multiselect-dropdown",e).on("aui-dropdown2-item-check",t.bind(e)).on("aui-dropdown2-item-uncheck",t.bind(e)).on("click","button[data-aui-checkbox-multiselect-clear]",e.deselectAllOptions.bind(e)),e.$btn=(0,u.default)(".aui-checkbox-multiselect-btn",e).tooltip({title:function(){return function(e){return e.$dropdown.is("[aria-hidden=false]")?"":l(e).join(", ")}(e)}}),r(e),a(e)},prototype:{getOptions:function(){return this.$select.find("option")},getSelectedOptions:function(){return this.$select.find("option:selected")},selectOption:function(e){i(this,e,!0)},unselectOption:function(e){i(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,u.default)("<option />").attr({value:e.value,icon:e.icon,disabled:e.disabled,selected:e.selected,title:e.title}).text(e.label).appendTo(this.$select),r(this),a(this)},removeOption:function(e){this.$select.find("[value='"+e+"']").remove(),r(this),a(this)}}});return(0,h.default)("aui/checkbox-multiselect"),d.default=b,c.exports=d.default,c.exports}.call(this),("undefined"==typeof window?global:window).__12f31e70494cde46c604b0e7c0c0e94d=function(){function e(e){return e&&e.__esModule?e:{default:e}}function t(e){this.$el=e?(0,s.default)(e):(0,s.default)(aui.dialog.dialog2({})),function(e){s.default.each(c,function(t,i){var n="data-"+t;e[0].hasAttribute(n)||e.attr(n,i)})}(this.$el)}var i={exports:{}},n=i.exports;Object.defineProperty(n,"__esModule",{value:!0});var s=e(__b096042e9825e59451ac15d5d8ff09dc),a=e(__72576d6f4213a167d30f7603f3411b23),r=e(__1cc2ffe09696e83b0a9eb0104e2ace69),o=e(__17bb3a9aeee1e7ab65bcbc4c6079365a),l=e(__e605936da51d5ea7490bcdc7bb5613ec),c={"aui-focus":"false","aui-blanketed":"true"};t.prototype.on=function(e,t){return(0,o.default)(this.$el).on(e,t),this},t.prototype.off=function(e,t){return(0,o.default)(this.$el).off(e,t),this},t.prototype.show=function(){return(0,o.default)(this.$el).show(),this},t.prototype.hide=function(){return(0,o.default)(this.$el).hide(),this},t.prototype.remove=function(){return(0,o.default)(this.$el).remove(),this},t.prototype.isVisible=function(){return(0,o.default)(this.$el).isVisible()};var d=(0,l.default)("dialog2",t);return d.on=function(e,t){return o.default.on(e,".aui-dialog2",t),this},d.off=function(e,t){return o.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,o.default)(t);t.data("aui-remove-on-hide")&&i.remove()}),(0,a.default)("aui/dialog2",d),(0,r.default)("dialog2",d),n.default=d,i.exports=n.default,i.exports}.call(this),("undefined"==typeof window?global:window).__c5caaaccaec626dab728d897e9697b35=function(){var e={},t=function(e){return e&&e.__esModule?e:{default:e}}(__b096042e9825e59451ac15d5d8ff09dc),i=(0,t.default)(document),n=function(e){var n={};return n.$trigger=(0,t.default)(e.currentTarget),n.$content=i.find("#"+n.$trigger.attr("aria-controls")),n.triggerIsParent=0!==n.$content.parent().filter(n.$trigger).length,n.$shortContent=n.triggerIsParent?n.$trigger.find(".aui-expander-short-content"):null,n.height=n.$content.css("min-height"),n.isCollapsible=!1!==n.$trigger.data("collapsible"),n.replaceText=n.$trigger.attr("data-replace-text"),n.replaceSelector=n.$trigger.data("replace-selector"),n},s=function(e){if(e.replaceText){var t=e.replaceSelector?e.$trigger.find(e.replaceSelector):e.$trigger;e.$trigger.attr("data-replace-text",t.text()),t.text(e.replaceText)}},a={"aui-expander-invoke":function(e){var n=(0,t.default)(e.currentTarget),s=i.find("#"+n.attr("aria-controls")),a=!1!==n.data("collapsible");"true"===s.attr("aria-expanded")&&a?n.trigger("aui-expander-collapse"):n.trigger("aui-expander-expand")},"aui-expander-expand":function(e){var t=n(e);"true"!==t.$content.attr("aria-expanded")&&(t.$content.attr("aria-expanded","true"),t.$trigger.attr("aria-expanded","true"),t.$content.outerHeight()>0&&t.$content.attr("aria-hidden","false"),s(t),t.triggerIsParent&&t.$shortContent.hide(),t.$trigger.trigger("aui-expander-expanded"))},"aui-expander-collapse":function(e){var t=n(e);"true"===t.$content.attr("aria-expanded")&&(s(t),t.$content.attr("aria-expanded","false"),t.$trigger.attr("aria-expanded","false"),t.triggerIsParent&&t.$shortContent.show(),0===t.$content.outerHeight()&&t.$content.attr("aria-hidden","true"),t.$trigger.trigger("aui-expander-collapsed"))},"click.aui-expander":function(e){(0,t.default)(e.currentTarget).trigger("aui-expander-invoke",e.currentTarget)}};return i.on(a,".aui-expander-trigger"),e}.call(this),("undefined"==typeof window?global:window).__f57552e97ebc0bc08f4bf4f9ff92c330=function(){function e(e){return e&&e.__esModule?e:{default:e}}function t(e){var t=function(e){var t=(0,h.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,o.default)(t)}(e=o.default.extend({},b,e));return function(e){e[0].close=function(){n(e)}}(t),"auto"===e.close?(i(t),function(e){e.find(".aui-message").addClass("aui-will-close"),setTimeout(function(){e[0].close()},p)}(t)):"manual"===e.close&&i(t),s().find(".aui-flag").get().forEach(function(e){"true"===e.getAttribute("aria-hidden")&&(0,o.default)(e).remove()}),function(e){var t=s();t.length||(t=(0,o.default)('<div id="'+g+'"></div>'),(0,o.default)("body").prepend(t));return e.appendTo(t),(0,l.recomputeStyle)(e),e.attr("aria-hidden","false")[0]}(t)}function i(e){var t=(0,o.default)('<span class="aui-icon icon-close" role="button" tabindex="0"></span>');return t.click(function(){n(e)}),t.keypress(function(t){t.which!==u.default.ENTER&&t.which!==u.default.SPACE||(n(e),t.preventDefault())}),e.find(".aui-message").append(t)[0]}function n(e){var t=e.get(0);return t.setAttribute("aria-hidden","true"),t.dispatchEvent(new f.default("aui-flag-close",{bubbles:!0})),t}function s(){return(0,o.default)("#"+g)}var a={exports:{}},r=a.exports;Object.defineProperty(r,"__esModule",{value:!0});var o=e(__b096042e9825e59451ac15d5d8ff09dc),l=__72425a3df009ac1a508198e568c97f09,c=e(__72576d6f4213a167d30f7603f3411b23),d=e(__1cc2ffe09696e83b0a9eb0104e2ace69),u=e(__74253ec4f336b25e07683c004a3bb04f),h=e(__a56a6558bebb2da72d961b3765bc7275),f=e(__d1cecf109f102db7135b5def53470e47),p=5e3,g="aui-flag-container",b={body:"",close:"manual",title:"",type:"info"};return(0,c.default)("aui/flag",t),(0,d.default)("flag",t),r.default=t,a.exports=r.default,a.exports}.call(this),("undefined"==typeof window?global:window).__dbeb692dca6fe43aef3c969b48021e1c=function(){function e(e){return e&&e.__esModule?e:{default:e}}function t(e){i(e)||(!function(e){e.addClass(C),function(e){var t=(0,v.default)('<span class="aui-icon aui-icon-small '+S+'"/>');e.after(t)}(e)}(e),function(e){h(e).tipsy({gravity:function(e){var t=e.data(N)||"side",i={side:"w",top:"se",bottom:"ne"}[t];i||(i="w",m.warn('Invalid notification position: "'+t+'". Valid options are "side", "bottom, "top"'));return i}(e),title:function(){return n(e)},trigger:"manual",offset:function(e){return-1!==F.indexOf(e.attr("type"))}(e)?P:L,opacity:M,className:function(){return"aui-form-notification-tooltip "+function(e){var t=s(e);{if(t===$)return A;if(t===I)return T}}(e)},html:!0})}(e),function(e){a(e)&&function(e){e.on("keydown",function(t){if(c(t)&&function(e){return""!==n(e)}(e)){var i=d(e);i.length&&(i.focus(),t.preventDefault())}})}(e)}(e),g(e)),k.push(e)}function i(e){return e.hasClass(C)}function n(e){var t=s(e);return function(e){if(""===e)return e;var t=function(e){var t;try{t=JSON.parse(e)}catch(i){t=[e]}return t}(e);return 1===t.length?t[0]:"<ul><li>"+t.join("</li><li>")+"</li></ul>"}(t?e.attr(t):"")}function s(e){var t;return D.some(function(i){if(e.is("["+i+"]"))return t=i,!0}),t}function a(e){return e.is(":aui-focusable")}function r(e){h(e).tipsy("show"),a(e)&&function(e){u(e).on("keydown",function(t){var i=p(function(e){return u(e).find(":aui-tabbable").last()}(e)),n=p(d(e));c(t)&&i&&i&&e.focus(),function(e){return e.keyCode===w.default.TAB&&e.shiftKey}(t)&&n&&n&&(e.focus(),t.preventDefault())})}(e)}function o(e){h(e).tipsy("hide")}function l(e,t){return(0,v.default)(e.target).closest(t).length>0}function c(e){return e.keyCode===w.default.TAB&&!e.shiftKey&&!e.altKey}function d(e){return u(e).find(":aui-tabbable").first()}function u(e){var t=h(e);if(t.data("tipsy"))return t.data("tipsy").$tip}function h(e){return f(e)}function f(e){return e.next("."+S)}function p(e){var t=e instanceof v.default?e[0]:e;return t&&t===document.activeElement}function g(e){var t=(0,v.default)(e);if(i(t)){var l=s(t);!function(e,t){t?f(e).addClass("aui-icon-wait"):f(e).removeClass("aui-icon-wait")}(t,l===O);if(!l)o(t);else{var c=n(t);(v.default.contains(t[0],document.activeElement)||p(t)||!a(t))&&c?r(t):o(t)}}}var b={},v=e(__b096042e9825e59451ac15d5d8ff09dc);__88a2b4709d05f96f6d2c02be42e4f84b;var m=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}(__a1782bd17c3175f2fd8fb8505a4b23d5),_=e(__72576d6f4213a167d30f7603f3411b23),w=e(__74253ec4f336b25e07683c004a3bb04f),y=e(__96e1b5385eb02ea2ccfb53dd1c56831e),x="aui-form-notification",C="_aui-form-notification-initialised",S="aui-icon-notification",E=x+"-tooltip",A=E+"-error",T=E+"-info",R="data-aui-notification-",O=R+"wait",I=R+"info",$=R+"error",N=x+"-position",D=[$,"data-aui-notification-success",O,I],k=[],M=1,P=9,L=3,F=["text","url","email","tel","password"];return document.addEventListener("focus",function(e){k.forEach(function(t){var i=(0,v.default)(t),n=u(i);if(a(i)){var s=n&&v.default.contains(n[0],e.target),c=i.is(e.target),d=l(e,i);c||d?r(i):n&&!s&&o(i)}})},!0),document.addEventListener("mousedown",function(e){if(!(0,v.default)(e.target).is("a")){if(!((0,v.default)(e.target).closest(".aui-form-notification-tooltip").length>0)){(0,v.default)("[data-aui-notification-field]").each(function(){var t=(0,v.default)(this),i=t.is(e.target),n=l(e,t);i||n||o(t),a(t)&&o(t)})}}}),(0,y.default)("data-aui-notification-field",{attached:function(e){t((0,v.default)(e))},attributes:function(){var e={};return D.forEach(function(t){e[t]=g}),e}(),type:y.default.type.ATTRIBUTE}),(0,_.default)("aui/form-notification"),b}.call(this),("undefined"==typeof window?global:window).__b37aafbdd2869c80db5765f8edd942dc=function(){function e(e){return e&&e.__esModule?e:{default:e}}var t={exports:{}},i=t.exports;Object.defineProperty(i,"__esModule",{value:!0});var n=e(__b096042e9825e59451ac15d5d8ff09dc),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}(__a1782bd17c3175f2fd8fb8505a4b23d5),a=["displayfield","watchfield","when","novalidate","state"],r=[],o={register:function(e,t){var i;if("string"==typeof e)i=e;else{var o=function(t){var i=!1;return e.some(function(e){var t=-1!==n.default.inArray(e,a);return t&&(i=e),t}),i}();if(o)return s.warn('Validators cannot be registered with the argument "'+o+'", as it is a reserved argument.'),!1;i="[data-aui-validation-"+e.join("],[data-aui-validation-")+"]"}var l={validatorFunction:t,validatorTrigger:i};return r.push(l),l},validators:function(){return r}};return(0,e(__72576d6f4213a167d30f7603f3411b23).default)("aui/form-validation/validator-register",o),i.default=o,t.exports=i.default,t.exports}.call(this),("undefined"==typeof window?global:window).__a840d30ab2aeddf546228e88a110c97a=function(){function e(e){return e&&e.__esModule?e:{default:e}}function t(e){var t=e.el.value.length,i=0===t,n=parseInt(e.args("minlength"),10),s=parseInt(e.args("maxlength"),10);if(n&&s&&n===s&&!i&&t!==n){var a=o("exactlength",e.args,[n]);e.invalidate(a)}else if(n&&t<n&&!i){var r=o("minlength",e.args);e.invalidate(r)}else if(s&&t>s){var l=o("maxlength",e.args);e.invalidate(l)}else e.validate()}function i(e){return"password"===e.getAttribute("type")}function n(e,t){var i=e.match(t);if(!i)return!1;return e===i[0]}function s(e){var t=o("pattern",e.args);n(e.el.value,new RegExp(e.args("pattern")))?e.validate():e.invalidate(t)}function a(e){var t=o("required",e.args);e.el.value?e.validate():e.invalidate(t)}function r(e){var t=o("validnumber",e.args),i=parseInt(e.el.value,10);if(isNaN(i))e.invalidate(t);else{var n=e.args("min"),s=e.args("max");n&&i<parseInt(n,10)?e.invalidate(o("min",e.args)):s&&i>parseInt(s,10)?e.invalidate(o("max",e.args)):e.validate()}}function o(e,t,i){var n;n=void 0!==AJS.I18n.keys?AJS.I18n.keys["aui.validation.message."+e]:h[e];var s=i;i||(s=[t(e)]);var a,r=t(e+"-msg");return a=r?[r].concat(s):[n].concat(s),AJS.format.apply(null,a)}var l={},c=e(__b096042e9825e59451ac15d5d8ff09dc),d=e(__72576d6f4213a167d30f7603f3411b23),u=(e(__3bec3b7c0c3a6877469c2705c8a81518),e(__a4a045451ebcbe40dcd4b856d36ef434),e(__b37aafbdd2869c80db5765f8edd942dc));u.default.register(["maxlength","minlength"],t),u.default.register("[maxlength],[minlength]",t),u.default.register(["matchingfield"],function(e){var t=e.el.value,n=document.getElementById(e.args("matchingfield")),s=n.value,a=o("matchingfield",e.args,[t,s]);(i(e.el)||i(n))&&(a=o("matchingfield-novalue",e.args)),t&&s&&s!==t?e.invalidate(a):e.validate()}),u.default.register(["doesnotcontain"],function(e){var t=o("doesnotcontain",e.args);-1===e.el.value.indexOf(e.args("doesnotcontain"))?e.validate():e.invalidate(t)}),u.default.register(["pattern"],s),u.default.register("[pattern]",s),u.default.register(["required"],a),u.default.register("[required]",a),u.default.register(["min","max"],r),u.default.register("[min],[max]",r),u.default.register(["dateformat"],function(e){var t=e.args("dateformat"),i=o("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)"},a="";t.split("").forEach(function(e){var t=s.hasOwnProperty(e);a+=t?s[e]:e});var r=new RegExp(a+"$","i");n(e.el.value,r)?e.validate():e.invalidate(i)}),u.default.register(["minchecked","maxchecked"],function(e){var t=(0,c.default)(e.el).find(":checked").length,i=!e.args("minchecked")||t>=e.args("minchecked"),n=!e.args("maxchecked")||t<=e.args("maxchecked"),s=o("minchecked",e.args),a=o("maxchecked",e.args);i&&n?e.validate():i?n||e.invalidate(a):e.invalidate(s)});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,d.default)("aui/form-validation/basic-validators"),l}.call(this),("undefined"==typeof window?global:window).__12b73994eef57d6502a41d854b9fc6d4=function(){function e(e){return e&&e.__esModule?e:{default:e}}function t(e){(function(e){return e.hasClass(R)})(e)||(!function(e){l(e).attr("data-aui-notification-field","")}(e),function(e){e.addClass(R)}(e),function(e){(function(e){var t,i=function(){e.trigger("aui-stop-typing")};e.on("keyup",function(){clearTimeout(t),t=setTimeout(i,1500)})})(e),function(e){var t=n(e,"when"),s=n(e,"watchfield");(s?e.add("#"+s):e).on(t,function(){i(e)})}(e)}(e),a(e,T))}function i(e){if(!n(e,"novalidate"))return function(e){!function(e){r(l(e),"none")}(e);var t=function(e){var t=[];return s().forEach(function(i,n){var s=i.validatorTrigger;e.is(s)&&t.push(n)}),t}(e);a(e,A);var i=function(e,t){var i=[];return t.forEach(function(t){var n=s()[t].validatorFunction,r=new g.default.Deferred;n(function(e,t){var i={validate:function(){t.resolve()},invalidate:function(i){a(e,S,i),t.reject()},args:function(e){return function(t){return e.attr("data-"+y+t)||e.attr(t)}}(e),el:e[0],$el:e};return v.prop(i,"$el",{sinceVersion:"5.9.0",removeInVersion:"8.0.0",alternativeName:"el",extraInfo:"See https://ecosystem.atlassian.net/browse/AUI-3263."}),i}(e,r)),i.push(r)}),i}(e,t),n=g.default.when.apply(g.default,i);return n.done(function(){a(e,E)}),n}(e);a(e,E)}function n(e,t){var i=e.attr("data-"+y+t);return i||(i={when:"change"}[t]),i}function s(){return w.default.validators()}function a(e,t,i){if(e.attr("data-"+C,t),t!==T){e.trigger(g.default.Event(O));var n=l(e),s={};s[A]="wait",s[S]="error",s[E]="success";var a=s[t];t===A?function(e){setTimeout(function(){c(e)===A&&r(e,"wait")},500)}(e):r(n,a,i)}}function r(e,t,i){var n=function(e){return e.is("["+x+"wait]")}(e);!function(e){o(e,"wait"),o(e,"success")}(e);if(!("success"===t&&!n))if("none"===t)o(e,"error");else{var s=e.attr(x+t)||"[]",a=i?function(e,t){var i=JSON.parse(t).concat([e]);return JSON.stringify(i)}(i,s):"";e.attr(x+t,a)}}function o(e,t){e.removeAttr(x+t)}function l(e){var t=n(e,"displayfield");return void 0===t?e:(0,g.default)("#"+t)}function c(e){return e.attr("data-"+C)}function d(e,t){t.preventDefault(),e.one(O,function(){e.trigger("submit")})}function u(e){return function(e){var t=-1!==e.indexOf(S),i=-1!==e.indexOf(T),n=-1!==e.indexOf(A);return t?S:i?T:n?A:E}(function(e){return g.default.map(e,function(e){return c((0,g.default)(e))})}(e.find("."+R)))}function h(e,t){var i="[data-"+C+"="+t+"]";return e.find(i)}var f={exports:{}},p=f.exports;Object.defineProperty(p,"__esModule",{value:!0});var g=e(__b096042e9825e59451ac15d5d8ff09dc);__dbeb692dca6fe43aef3c969b48021e1c,__a840d30ab2aeddf546228e88a110c97a;var b=e(__72576d6f4213a167d30f7603f3411b23),v=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}(__8bec9a609e12bd1c285d048a3a5e5536),m=e(__1cc2ffe09696e83b0a9eb0104e2ace69),_=e(__96e1b5385eb02ea2ccfb53dd1c56831e),w=e(__b37aafbdd2869c80db5765f8edd942dc),y="aui-validation-",x="data-aui-notification-",C="aui-validation-state",S="invalid",E="valid",A="validating",T="unvalidated",R="_aui-form-validation-initialised",O="_aui-internal-field-state-changed";(0,g.default)(document).on("submit",function(e){var t=e.target,i=(0,g.default)(t),n=u(i);if(n===T)d(i,e),function(e){h(e,T).each(function(e,t){I.validate((0,g.default)(t))})}(i);else if(n===A)d(i,e);else if(n===S)e.preventDefault(),function(e){h(e,S).first().focus()}(i);else if(n===E){var s=g.default.Event("aui-valid-submit");i.trigger(s);s.isDefaultPrevented()&&e.preventDefault()}});var I={register:w.default.register,validate:function(e){i(e=(0,g.default)(e))}};return(0,_.default)("data-aui-validation-field",{attached:function(e){e.form&&e.form.setAttribute("novalidate","novalidate");t((0,g.default)(e)),_.default.init(e)},type:_.default.type.ATTRIBUTE}),(0,b.default)("aui/form-validation",I),(0,m.default)("formValidation",I),p.default=I,f.exports=p.default,f.exports}.call(this),("undefined"==typeof window?global:window).__592b00f120e1c9ea0cff010e190f37bc=function(){var e={},t=e;Object.defineProperty(t,"__esModule",{value:!0});return t.INPUT_SUFFIX="-input",e}.call(this),("undefined"==typeof window?global:window).__4730d9d755e472a421ac607caea0719d=function(){function e(e){return e&&e.__esModule?e:{default:e}}function t(e){return e.querySelector("label")}var i={exports:{}},n=i.exports;Object.defineProperty(n,"__esModule",{value:!0});var s=e(__96e1b5385eb02ea2ccfb53dd1c56831e),a=e(__872e6d068b6f196f53f124fba39e411d),r=e(__2a8b10ed765d77053ff9305996381ba7),o=__592b00f120e1c9ea0cff010e190f37bc,l=(0,s.default)("aui-label",{template:(0,a.default)("<label><content></content></label>"),created:function(e){e._label=t(e)},attached:function(e){(0,r.default)(e).attributeExists("for")},attributes:{for:function(e,i){e.hasAttribute("for")?t(e).setAttribute("for",""+i.newValue+o.INPUT_SUFFIX):t(e).removeAttribute("for")},form:function(e,i){e.hasAttribute("form")?t(e).setAttribute("form",i.newValue):t(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 n.default=l,i.exports=n.default,i.exports}.call(this),("undefined"==typeof window?global:window).__f7f196ddef64ae7816d003411730ef55=function(){function e(e){return e&&e.__esModule?e:{default:e}}function t(e,t,i){(0,b.recomputeStyle)(e),e.css("width",100*i+"%"),t.attr("data-value",i)}function i(e,i,n){var s=n.currentProgress,a=n.value,r=(0,f.default)(e),o=(0,f.default)(i);"number"==typeof a&&a<=1&&a>=0&&(o.trigger(y,[s,a]),(0,v.supportsCssTransition)()?(r.one(x,function(){o.trigger(w,[s,a])}),t(r,o,a)):(t(r,o,a),o.trigger(w,[s,a])))}function n(e){var t=(0,f.default)(e).first(),i=t.children(".aui-progress-indicator-value");t.removeAttr("data-value"),(0,b.recomputeStyle)(t),i.css("width","")}function s(e){return p.default.isNumber(e)&&p.default.isFinite(e)&&!p.default.isNaN(e)}function a(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,i=parseFloat(e);return s(i)?i:Number(t)}function r(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return Number(parseFloat(e).toFixed(t))}function o(e){var t=e.val,i=function(e){return e>0?e:C.max}(e.max),n=function(e,t){return Math.max(0,Math.min(e,t))}(t,i),s=r(n/i,6);return{max:i,val:n,valAsFraction:s,valAsPercent:r(100*s,2)}}function l(e){var t=o(e._data),s=t.val,a=t.valAsFraction,r=t.max,l=e.querySelector(".aui-progress-indicator"),c=l.getAttribute("data-value");e.indeterminate?(l.removeAttribute("aria-valuenow"),n(l)):(l.setAttribute("aria-valuenow",s),l.setAttribute("aria-valuemax",r),i(l.querySelector(".aui-progress-indicator-value"),l,{currentProgress:c,value:a}))}function c(e,t){e._data.val=a(t.newValue,t.oldValue||C.val),l(e)}function d(e,t){e._data.max=a(t.newValue,t.oldValue||C.max),l(e)}var u={exports:{}},h=u.exports;Object.defineProperty(h,"__esModule",{value:!0});var f=e(__b096042e9825e59451ac15d5d8ff09dc),p=e(__ed71803392f7e86c1bd2c5aa6fdac9bb),g=e(__0c0763a9412a06f9a05d8a56db2bc9cd),b=__72425a3df009ac1a508198e568c97f09,v=__87552c6b48c33677154b25f99f408f94,m=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}(__8bec9a609e12bd1c285d048a3a5e5536),_=e(__1cc2ffe09696e83b0a9eb0104e2ace69),w="aui-progress-indicator-after-update",y="aui-progress-indicator-before-update",x="transitionend webkitTransitionEnd",C={indeterminate:!1,max:1,val:0};(0,g.default)("aui-progressbar",{template:function(e){e._data.max=a(e.getAttribute("max"),C.max),e._data.val=a(e.getAttribute("value"),C.val),e._data.indeterminate=e.hasAttribute("indeterminate");var t=o(e._data),i=t.val,n=t.max,s=t.valAsFraction,r=t.valAsPercent,l=e._data.indeterminate?"":'data-value="'+s+'"';e.innerHTML='<div class="aui-progress-indicator"\n '+l+'\n role="progressbar"\n aria-valuemin="0"\n aria-valuenow="'+i+'"\n aria-valuemax="'+n+'"\n tabindex="0"\n >\n <span class="aui-progress-indicator-value" style="width: '+r+'%"></span>\n </div>'},attached:function(e){l(e)},attributes:{indeterminate:{created:function(e){e.indeterminate=!0},removed:function(e){e.indeterminate=!1}},value:{value:C.val,fallback:function(e,t){if(e._updating)return!1;c(e,t)}},max:{value:C.max,fallback:function(e,t){if(e._updating)return!1;d(e,t)}}},prototype:{get _data(){return this.__data||(this._data=p.default.defaults({},C))},set _data(e){return this.__data=e},get indeterminate(){return this._data.indeterminate},set indeterminate(e){this._data.indeterminate=!!e,l(this)},get value(){return o(this._data).val},set value(e){if(!s(e))return!1;var t={newValue:r(e,6)};this._updating=!0,this.setAttribute("value",t.newValue),this._updating=!1,c(this,t)},get max(){return o(this._data).max},set max(e){if(!s(e))return!1;var t={newValue:r(e,6)};this._updating=!0,this.setAttribute("max",t.newValue),this._updating=!1,d(this,t)}}});var S={update:m.fn(function(e,t){if("string"==typeof e){var n=document.getElementById(e);n&&(e=n)}var s=(0,f.default)(e).first(),a=s.children(".aui-progress-indicator-value"),r=s.attr("data-value"),o=!r,l=parseFloat(r)||0,c=r&&l===t;c&&(c=l===100*(parseFloat(a.get(0).style.width)||0));if(!c)return o&&a.css("width",0),i(a,s,{currentProgress:l,value:t}),s},"AJS.progressBars.update",{sinceVersion:"7.7.0",extraInfo:"Use the <aui-progressbar> web component instead"}),setIndeterminate:m.fn(n,"AJS.progressBars.setIndeterminate",{sinceVersion:"7.7.0",extraInfo:"Use the <aui-progressbar> web component instead"})};return(0,_.default)("progressBars",S),h.default=S,u.exports=h.default,u.exports}.call(this),("undefined"==typeof window?global:window).__ac9bbad28680f5a5ab39e114ac20174e=function(){var e={exports:{}},t=e.exports,i={module:e,exports:t,underscore:__b54432cb6203adb1e7aa56419c354583,jquery:__b096042e9825e59451ac15d5d8ff09dc,underscore:__b54432cb6203adb1e7aa56419c354583,jquery:__b096042e9825e59451ac15d5d8ff09dc},n=function(n){return function(s,a,r){var o,l,c=("undefined"==typeof window?global:window).define;r=[r,a,s].filter(function(e){return"function"==typeof e})[0],a=[a,s,[]].filter(Array.isArray)[0],l=typeof(o=r.apply(null,a.map(function(e){return i[e]}))),"function"==typeof c&&c("string"==typeof s?s:n,a,r),"string"===l?o=String(o):"number"===l?o=Number(o):"boolean"===l&&(o=Boolean(o)),void 0!==o&&(t=e.exports=o)}}("__ac9bbad28680f5a5ab39e114ac20174e");return n.amd=!0,function(e,i){if("function"==typeof n&&n.amd)n(["underscore","jquery","exports"],function(t,n,s){e.Backbone=i(e,s,t,n)});else if(void 0!==t){var s,a=__b54432cb6203adb1e7aa56419c354583;try{s=__b096042e9825e59451ac15d5d8ff09dc}catch(e){}i(e,t,a,s)}else e.Backbone=i(e,{},e._,e.jQuery||e.Zepto||e.ender||e.$)}(this,function(e,t,i,n){var s=(e=this).Backbone,a=[],r=a.push,o=a.slice,l=a.splice;t.VERSION="1.0.0",t.$=n,t.noConflict=function(){return e.Backbone=s,this},t.emulateHTTP=!1,t.emulateJSON=!1;var c=t.Events={on:function(e,t,i){if(!u(this,"on",e,[t,i])||!t)return this;this._events||(this._events={});return(this._events[e]||(this._events[e]=[])).push({callback:t,context:i,ctx:i||this}),this},once:function(e,t,n){if(!u(this,"once",e,[t,n])||!t)return this;var s=this,a=i.once(function(){s.off(e,a),t.apply(this,arguments)});return a._callback=t,this.on(e,a,n)},off:function(e,t,n){var s,a,r,o,l,c,d,h;if(!this._events||!u(this,"off",e,[t,n]))return this;if(!e&&!t&&!n)return this._events={},this;for(l=0,c=(o=e?[e]:i.keys(this._events)).length;l<c;l++)if(e=o[l],r=this._events[e]){if(this._events[e]=s=[],t||n)for(d=0,h=r.length;d<h;d++)a=r[d],(t&&t!==a.callback&&t!==a.callback._callback||n&&n!==a.context)&&s.push(a);s.length||delete this._events[e]}return this},trigger:function(e){if(!this._events)return this;var t=o.call(arguments,1);if(!u(this,"trigger",e,t))return this;var i=this._events[e],n=this._events.all;return i&&h(i,t),n&&h(n,arguments),this},stopListening:function(e,t,i){var n=this._listeners;if(!n)return this;var s=!t&&!i;"object"==typeof t&&(i=this),e&&((n={})[e._listenerId]=e);for(var a in n)n[a].off(t,i,this),s&&delete this._listeners[a];return this}},d=/\s+/,u=function(e,t,i,n){if(!i)return!0;if("object"==typeof i){for(var s in i)e[t].apply(e,[s,i[s]].concat(n));return!1}if(d.test(i)){for(var a=i.split(d),r=0,o=a.length;r<o;r++)e[t].apply(e,[a[r]].concat(n));return!1}return!0},h=function(e,t){var i,n=-1,s=e.length,a=t[0],r=t[1],o=t[2];switch(t.length){case 0:for(;++n<s;)(i=e[n]).callback.call(i.ctx);return;case 1:for(;++n<s;)(i=e[n]).callback.call(i.ctx,a);return;case 2:for(;++n<s;)(i=e[n]).callback.call(i.ctx,a,r);return;case 3:for(;++n<s;)(i=e[n]).callback.call(i.ctx,a,r,o);return;default:for(;++n<s;)(i=e[n]).callback.apply(i.ctx,t)}};i.each({listenTo:"on",listenToOnce:"once"},function(e,t){c[t]=function(t,n,s){return(this._listeners||(this._listeners={}))[t._listenerId||(t._listenerId=i.uniqueId("l"))]=t,"object"==typeof n&&(s=this),t[e](n,s,this),this}}),c.bind=c.on,c.unbind=c.off,i.extend(t,c);var f=t.Model=function(e,t){var n,s=e||{};t||(t={}),this.cid=i.uniqueId("c"),this.attributes={},i.extend(this,i.pick(t,p)),t.parse&&(s=this.parse(s,t)||{}),(n=i.result(this,"defaults"))&&(s=i.defaults({},s,n)),this.set(s,t),this.changed={},this.initialize.apply(this,arguments)},p=["url","urlRoot","collection"];i.extend(f.prototype,c,{changed:null,validationError:null,idAttribute:"id",initialize:function(){},toJSON:function(e){return i.clone(this.attributes)},sync:function(){return t.sync.apply(this,arguments)},get:function(e){return this.attributes[e]},escape:function(e){return i.escape(this.get(e))},has:function(e){return null!=this.get(e)},set:function(e,t,n){var s,a,r,o,l,c,d,u;if(null==e)return this;if("object"==typeof e?(a=e,n=t):(a={})[e]=t,n||(n={}),!this._validate(a,n))return!1;r=n.unset,l=n.silent,o=[],c=this._changing,this._changing=!0,c||(this._previousAttributes=i.clone(this.attributes),this.changed={}),u=this.attributes,d=this._previousAttributes,this.idAttribute in a&&(this.id=a[this.idAttribute]);for(s in a)t=a[s],i.isEqual(u[s],t)||o.push(s),i.isEqual(d[s],t)?delete this.changed[s]:this.changed[s]=t,r?delete u[s]:u[s]=t;if(!l){o.length&&(this._pending=!0);for(var h=0,f=o.length;h<f;h++)this.trigger("change:"+o[h],this,u[o[h]],n)}if(c)return this;if(!l)for(;this._pending;)this._pending=!1,this.trigger("change",this,n);return this._pending=!1,this._changing=!1,this},unset:function(e,t){return this.set(e,void 0,i.extend({},t,{unset:!0}))},clear:function(e){var t={};for(var n in this.attributes)t[n]=void 0;return this.set(t,i.extend({},e,{unset:!0}))},hasChanged:function(e){return null==e?!i.isEmpty(this.changed):i.has(this.changed,e)},changedAttributes:function(e){if(!e)return!!this.hasChanged()&&i.clone(this.changed);var t,n=!1,s=this._changing?this._previousAttributes:this.attributes;for(var a in e)i.isEqual(s[a],t=e[a])||((n||(n={}))[a]=t);return n},previous:function(e){return null!=e&&this._previousAttributes?this._previousAttributes[e]:null},previousAttributes:function(){return i.clone(this._previousAttributes)},fetch:function(e){void 0===(e=e?i.clone(e):{}).parse&&(e.parse=!0);var t=this,n=e.success;return e.success=function(i){if(!t.set(t.parse(i,e),e))return!1;n&&n(t,i,e),t.trigger("sync",t,i,e)},D(this,e),this.sync("read",this,e)},save:function(e,t,n){var s,a,r,o=this.attributes;if(null==e||"object"==typeof e?(s=e,n=t):(s={})[e]=t,s&&(!n||!n.wait)&&!this.set(s,n))return!1;if(n=i.extend({validate:!0},n),!this._validate(s,n))return!1;s&&n.wait&&(this.attributes=i.extend({},o,s)),void 0===n.parse&&(n.parse=!0);var l=this,c=n.success;return n.success=function(e){l.attributes=o;var t=l.parse(e,n);if(n.wait&&(t=i.extend(s||{},t)),i.isObject(t)&&!l.set(t,n))return!1;c&&c(l,e,n),l.trigger("sync",l,e,n)},D(this,n),"patch"===(a=this.isNew()?"create":n.patch?"patch":"update")&&(n.attrs=s),r=this.sync(a,this,n),s&&n.wait&&(this.attributes=o),r},destroy:function(e){var t=this,n=(e=e?i.clone(e):{}).success,s=function(){t.trigger("destroy",t,t.collection,e)};if(e.success=function(i){(e.wait||t.isNew())&&s(),n&&n(t,i,e),t.isNew()||t.trigger("sync",t,i,e)},this.isNew())return e.success(),!1;D(this,e);var a=this.sync("delete",this,e);return e.wait||s(),a},url:function(){var e=i.result(this,"urlRoot")||i.result(this.collection,"url")||N();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({},i.extend(e||{},{validate:!0}))},_validate:function(e,t){if(!t.validate||!this.validate)return!0;e=i.extend({},this.attributes,e);var n=this.validationError=this.validate(e,t)||null;return!n||(this.trigger("invalid",this,n,i.extend(t||{},{validationError:n})),!1)}});i.each(["keys","values","pairs","invert","pick","omit"],function(e){f.prototype[e]=function(){var t=o.call(arguments);return t.unshift(this.attributes),i[e].apply(i,t)}});var g=t.Collection=function(e,t){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,i.extend({silent:!0},t))},b={add:!0,remove:!0,merge:!0},v={add:!0,merge:!1,remove:!1};i.extend(g.prototype,c,{model:f,initialize:function(){},toJSON:function(e){return this.map(function(t){return t.toJSON(e)})},sync:function(){return t.sync.apply(this,arguments)},add:function(e,t){return this.set(e,i.defaults(t||{},v))},remove:function(e,t){e=i.isArray(e)?e.slice():[e],t||(t={});var n,s,a,r;for(n=0,s=e.length;n<s;n++)(r=this.get(e[n]))&&(delete this._byId[r.id],delete this._byId[r.cid],a=this.indexOf(r),this.models.splice(a,1),this.length--,t.silent||(t.index=a,r.trigger("remove",r,this,t)),this._removeReference(r));return this},set:function(e,t){(t=i.defaults(t||{},b)).parse&&(e=this.parse(e,t)),i.isArray(e)||(e=e?[e]:[]);var n,s,a,o,c,d=t.at,u=this.comparator&&null==d&&!1!==t.sort,h=i.isString(this.comparator)?this.comparator:null,f=[],p=[],g={};for(n=0,s=e.length;n<s;n++)(a=this._prepareModel(e[n],t))&&((o=this.get(a))?(t.remove&&(g[o.cid]=!0),t.merge&&(o.set(a.attributes,t),u&&!c&&o.hasChanged(h)&&(c=!0))):t.add&&(f.push(a),a.on("all",this._onModelEvent,this),this._byId[a.cid]=a,null!=a.id&&(this._byId[a.id]=a)));if(t.remove){for(n=0,s=this.length;n<s;++n)g[(a=this.models[n]).cid]||p.push(a);p.length&&this.remove(p,t)}if(f.length&&(u&&(c=!0),this.length+=f.length,null!=d?l.apply(this.models,[d,0].concat(f)):r.apply(this.models,f)),c&&this.sort({silent:!0}),t.silent)return this;for(n=0,s=f.length;n<s;n++)(a=f[n]).trigger("add",a,this,t);return c&&this.trigger("sort",this,t),this},reset:function(e,t){t||(t={});for(var n=0,s=this.models.length;n<s;n++)this._removeReference(this.models[n]);return t.previousModels=this.models,this._reset(),this.add(e,i.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,i.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,i.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(e,t){return i.isEmpty(e)?t?void 0:[]:this[t?"find":"filter"](function(t){for(var i in e)if(e[i]!==t.get(i))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={}),i.isString(this.comparator)||1===this.comparator.length?this.models=this.sortBy(this.comparator,this):this.models.sort(i.bind(this.comparator,this)),e.silent||this.trigger("sort",this,e),this},sortedIndex:function(e,t,n){t||(t=this.comparator);var s=i.isFunction(t)?t:function(e){return e.get(t)};return i.sortedIndex(this.models,e,s,n)},pluck:function(e){return i.invoke(this.models,"get",e)},fetch:function(e){void 0===(e=e?i.clone(e):{}).parse&&(e.parse=!0);var t=e.success,n=this;return e.success=function(i){var s=e.reset?"reset":"set";n[s](i,e),t&&t(n,i,e),n.trigger("sync",n,i,e)},D(this,e),this.sync("read",this,e)},create:function(e,t){if(t=t?i.clone(t):{},!(e=this._prepareModel(e,t)))return!1;t.wait||this.add(e,t);var n=this,s=t.success;return t.success=function(e,t,i){i.wait&&n.add(e,i),s&&s(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 f)return e.collection||(e.collection=this),e;t||(t={}),t.collection=this;var i=new 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,n){("add"!==e&&"remove"!==e||i===this)&&("destroy"===e&&this.remove(t,n),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))}});i.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(e){g.prototype[e]=function(){var t=o.call(arguments);return t.unshift(this.models),i[e].apply(i,t)}});i.each(["groupBy","countBy","sortBy"],function(e){g.prototype[e]=function(t,n){var s=i.isFunction(t)?t:function(e){return e.get(t)};return i[e](this.models,s,n)}});var m=t.View=function(e){this.cid=i.uniqueId("view"),this._configure(e||{}),this._ensureElement(),this.initialize.apply(this,arguments),this.delegateEvents()},_=/^(\S+)\s*(.*)$/,w=["model","collection","el","id","attributes","className","tagName","events"];i.extend(m.prototype,c,{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,i){return this.$el&&this.undelegateEvents(),this.$el=e instanceof t.$?e:t.$(e),this.el=this.$el[0],!1!==i&&this.delegateEvents(),this},delegateEvents:function(e){if(!e&&!(e=i.result(this,"events")))return this;this.undelegateEvents();for(var t in e){var n=e[t];if(i.isFunction(n)||(n=this[e[t]]),n){var s=t.match(_),a=s[1],r=s[2];n=i.bind(n,this),a+=".delegateEvents"+this.cid,""===r?this.$el.on(a,n):this.$el.on(a,r,n)}}return this},undelegateEvents:function(){return this.$el.off(".delegateEvents"+this.cid),this},_configure:function(e){this.options&&(e=i.extend({},i.result(this,"options"),e)),i.extend(this,i.pick(e,w)),this.options=e},_ensureElement:function(){if(this.el)this.setElement(i.result(this,"el"),!1);else{var e=i.extend({},i.result(this,"attributes"));this.id&&(e.id=i.result(this,"id")),this.className&&(e.class=i.result(this,"className"));var n=t.$("<"+i.result(this,"tagName")+">").attr(e);this.setElement(n,!1)}}}),t.sync=function(e,n,s){var a=y[e];i.defaults(s||(s={}),{emulateHTTP:t.emulateHTTP,emulateJSON:t.emulateJSON});var r={type:a,dataType:"json"};if(s.url||(r.url=i.result(n,"url")||N()),null!=s.data||!n||"create"!==e&&"update"!==e&&"patch"!==e||(r.contentType="application/json",r.data=JSON.stringify(s.attrs||n.toJSON(s))),s.emulateJSON&&(r.contentType="application/x-www-form-urlencoded",r.data=r.data?{model:r.data}:{}),s.emulateHTTP&&("PUT"===a||"DELETE"===a||"PATCH"===a)){r.type="POST",s.emulateJSON&&(r.data._method=a);var o=s.beforeSend;s.beforeSend=function(e){if(e.setRequestHeader("X-HTTP-Method-Override",a),o)return o.apply(this,arguments)}}"GET"===r.type||s.emulateJSON||(r.processData=!1),"PATCH"!==r.type||!window.ActiveXObject||window.external&&window.external.msActiveXFilteringEnabled||(r.xhr=function(){return new ActiveXObject("Microsoft.XMLHTTP")});var l=s.xhr=t.ajax(i.extend(r,s));return n.trigger("request",n,l,s),l};var y={create:"POST",update:"PUT",patch:"PATCH",delete:"DELETE",read:"GET"};t.ajax=function(){return t.$.ajax.apply(t.$,arguments)};var x=t.Router=function(e){e||(e={}),e.routes&&(this.routes=e.routes),this._bindRoutes(),this.initialize.apply(this,arguments)},C=/\((.*?)\)/g,S=/(\(\?)?:\w+/g,E=/\*\w+/g,A=/[\-{}\[\]+?.,\\\^$|#\s]/g;i.extend(x.prototype,c,{initialize:function(){},route:function(e,n,s){i.isRegExp(e)||(e=this._routeToRegExp(e)),i.isFunction(n)&&(s=n,n=""),s||(s=this[n]);var a=this;return t.history.route(e,function(i){var r=a._extractParameters(e,i);s&&s.apply(a,r),a.trigger.apply(a,["route:"+n].concat(r)),a.trigger("route",n,r),t.history.trigger("route",a,n,r)}),this},navigate:function(e,i){return t.history.navigate(e,i),this},_bindRoutes:function(){if(this.routes){this.routes=i.result(this,"routes");for(var e,t=i.keys(this.routes);null!=(e=t.pop());)this.route(e,this.routes[e])}},_routeToRegExp:function(e){return e=e.replace(A,"\\$&").replace(C,"(?:$1)?").replace(S,function(e,t){return t?e:"([^/]+)"}).replace(E,"(.*?)"),new RegExp("^"+e+"$")},_extractParameters:function(e,t){var n=e.exec(t).slice(1);return i.map(n,function(e){return e?decodeURIComponent(e):null})}});var T=t.History=function(){this.handlers=[],i.bindAll(this,"checkUrl"),"undefined"!=typeof window&&(this.location=window.location,this.history=window.history)},R=/^[#\/]|\s+$/g,O=/^\/+|\/+$/g,I=/msie [\w.]+/,$=/\/$/;T.started=!1,i.extend(T.prototype,c,{interval:50,getHash:function(e){var t=(e||this).location.href.match(/#(.*)$/);return t?t[1]:""},getFragment:function(e,t){if(null==e)if(this._hasPushState||!this._wantsHashChange||t){e=this.location.pathname;var i=this.root.replace($,"");e.indexOf(i)||(e=e.substr(i.length))}else e=this.getHash();return e.replace(R,"")},start:function(e){if(T.started)throw new Error("Backbone.history has already been started");T.started=!0,this.options=i.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 n=this.getFragment(),s=document.documentMode,a=I.exec(navigator.userAgent.toLowerCase())&&(!s||s<=7);this.root=("/"+this.root+"/").replace(O,"/"),a&&this._wantsHashChange&&(this.iframe=t.$('<iframe src="javascript:0" tabindex="-1" />').hide().appendTo("body")[0].contentWindow,this.navigate(n)),this._hasPushState?t.$(window).on("popstate",this.checkUrl):this._wantsHashChange&&"onhashchange"in window&&!a?t.$(window).on("hashchange",this.checkUrl):this._wantsHashChange&&(this._checkUrlInterval=setInterval(this.checkUrl,this.interval)),this.fragment=n;var r=this.location,o=r.pathname.replace(/[^\/]$/,"$&/")===this.root;return this._wantsHashChange&&this._wantsPushState&&!this._hasPushState&&!o?(this.fragment=this.getFragment(null,!0),this.location.replace(this.root+this.location.search+"#"+this.fragment),!0):(this._wantsPushState&&this._hasPushState&&o&&r.hash&&(this.fragment=this.getHash().replace(R,""),this.history.replaceState({},document.title,this.root+this.fragment+r.search)),this.options.silent?void 0:this.loadUrl())},stop:function(){t.$(window).off("popstate",this.checkUrl).off("hashchange",this.checkUrl),clearInterval(this._checkUrlInterval),T.started=!1},route:function(e,t){this.handlers.unshift({route:e,callback:t})},checkUrl:function(e){var t=this.getFragment();if(t===this.fragment&&this.iframe&&(t=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 i.any(this.handlers,function(e){if(e.route.test(t))return e.callback(t),!0})},navigate:function(e,t){if(!T.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){if(i){var n=e.href.replace(/(javascript:|#).*$/,"");e.replace(n+"#"+t)}else e.hash="#"+t}}),t.history=new T;f.extend=g.extend=x.extend=m.extend=T.extend=function(e,t){var n,s=this;n=e&&i.has(e,"constructor")?e.constructor:function(){return s.apply(this,arguments)},i.extend(n,s,t);var a=function(){this.constructor=n};return a.prototype=s.prototype,n.prototype=new a,e&&i.extend(n.prototype,e),n.__super__=s.prototype,n};var N=function(){throw new Error('A "url" property or function must be specified')},D=function(e,t){var i=t.error;t.error=function(n){i&&i(e,n,t),e.trigger("error",e,n,t)}};return t}),e.exports}.call(this),("undefined"==typeof window?global:window).__9c55ee390fed7dba158a3d0f50d3f5b8=function(){function e(e){return e&&e.__esModule?e:{default:e}}var t={exports:{}},i=t.exports;Object.defineProperty(i,"__esModule",{value:!0});e(__ed71803392f7e86c1bd2c5aa6fdac9bb);var n=e(__ac9bbad28680f5a5ab39e114ac20174e);return window.Backbone||(window.Backbone=n.default),i.default=window.Backbone,t.exports=i.default,t.exports}.call(this),("undefined"==typeof window?global:window).__be6065a4cde19964b120567fdf45523d=function(){function e(e){return e&&e.__esModule?e:{default:e}}var t={exports:{}},i=t.exports;Object.defineProperty(i,"__esModule",{value:!0});var n=e(__ed71803392f7e86c1bd2c5aa6fdac9bb),s=e(__9c55ee390fed7dba158a3d0f50d3f5b8),a=e(__1cc2ffe09696e83b0a9eb0104e2ace69),r=s.default.Collection.extend({initialize:function(e,t){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(e){var t,i,n=this;this.value=e,i=this.getFilteredResults(e),this.respond(e,i),e&&this._queryEndpoint&&!this.hasQueryCache(e)&&this.shouldGetMoreResults(i)&&(t=this.fetch(e),this.activeQueryCount++,this.trigger("activity",{activity:!0}),t.always(function(){n.activeQueryCount--,n.trigger("activity",{activity:!!n.activeQueryCount})}),t.done(function(t,i,s){n.addQueryCache(e,t,s)}),t.done(function(){e=n.value,i=n.getFilteredResults(e),n.respond(e,i)}))},getQueryData:function(e){var t=n.default.isFunction(this._queryData)?this._queryData(e):this._queryData,i=n.default.extend({},t);return i[this._queryParamKey]=e,i},fetch:function(e){var t={add:!0,update:!0,remove:!1,data:this.getQueryData(e)};return s.default.Collection.prototype.fetch.call(this,t)},respond:function(e,t){return this.trigger("respond",{query:e,results:t}),t},matcher:function(e,t){},getFilteredResults:function(e){var t=[];return e?(t=this.filter(function(t){return!!this.matcher(t,e)},this),this._maxResults&&(t=n.default.first(t,this._maxResults)),t):t},addQueryCache:function(e,t,i){var s=this.queryCache,a=this.parse(t,i);s[e]=n.default.pluck(a,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,a.default)("ProgressiveDataSet",r),i.default=r,t.exports=i.default,t.exports}.call(this),("undefined"==typeof window?global:window).__6e88cbb41c2fc23ab460ab14f2892a21=function(){function e(e){return e&&e.__esModule?e:{default:e}}var t={exports:{}},i=t.exports;Object.defineProperty(i,"__esModule",{value:!0});var n=e(__ed71803392f7e86c1bd2c5aa6fdac9bb),s=e(__9c55ee390fed7dba158a3d0f50d3f5b8),a=e(__1cc2ffe09696e83b0a9eb0104e2ace69),r=s.default.View.extend({initialize:function(){n.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,a.default)("QueryInput",r),i.default=r,t.exports=i.default,t.exports}.call(this),("undefined"==typeof window?global:window).__2877e2664f88bd4fbf1daa7032e4a681=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).__4312f99aa710bd2532f0ccf76a7d1044=function(){var e={exports:{}},t=e.exports;Object.defineProperty(t,"__esModule",{value:!0});var i=function(e){return e&&e.__esModule?e:{default:e}}(__9c55ee390fed7dba158a3d0f50d3f5b8);return t.default=i.default.View,e.exports=t.default,e.exports}.call(this),("undefined"==typeof window?global:window).__7c3db8e467daf00a518b54bea08ffa18=function(){var e={exports:{}},t=e.exports;Object.defineProperty(t,"__esModule",{value:!0});var i=function(e){return e&&e.__esModule?e:{default:e}}(__9c55ee390fed7dba158a3d0f50d3f5b8);return t.default=i.default.View,e.exports=t.default,e.exports}.call(this),("undefined"==typeof window?global:window).__72cbb140abeb5f1e628634a26111ea54=function(){var e={exports:{}},t=e.exports;Object.defineProperty(t,"__esModule",{value:!0});var i=function(e){return e&&e.__esModule?e:{default:e}}(__9c55ee390fed7dba158a3d0f50d3f5b8);return t.default=i.default.View,e.exports=t.default,e.exports}.call(this),("undefined"==typeof window?global:window).__6a9e92ba28299e2bfbb1f1def63afad9=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).__110ad8ab3f93fca10bad6bf735832dbd=function(){var e={};return jQuery.fn.serializeObject=function(){var e={};return this.find(":input:not(:button):not(:submit):not(:radio):not('select[multiple]')").each(function(){""!==this.name&&(null===this.value&&(this.value=""),e[this.name]=this.value.match(/^(tru|fals)e$/i)?"true"==this.value.toLowerCase():this.value)}),this.find("input:radio:checked").each(function(){e[this.name]=this.value}),this.find("select[multiple]").each(function(){var t=jQuery(this),i=t.val();t.data("aui-ss")?e[this.name]=i?i[0]:"":e[this.name]=null!==i?i:[]}),e},e}.call(this),("undefined"==typeof window?global:window).__193071cfed184109dfefd8bf3971f23e=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).__ed5659cd745b01de28c7c04f18efbc9b=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).__bff010f546c0422814fec0a7ee8ed8ff=function(){function e(e){return e&&e.__esModule?e:{default:e}}var t={exports:{}},i=t.exports;Object.defineProperty(i,"__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},s=e(__b096042e9825e59451ac15d5d8ff09dc);__110ad8ab3f93fca10bad6bf735832dbd;var a=e(__9c55ee390fed7dba158a3d0f50d3f5b8),r=e(__2877e2664f88bd4fbf1daa7032e4a681),o=e(__6a9e92ba28299e2bfbb1f1def63afad9),l=e(__193071cfed184109dfefd8bf3971f23e),c=(e(__a4a045451ebcbe40dcd4b856d36ef434),e(__ed5659cd745b01de28c7c04f18efbc9b)),d=-1!==navigator.userAgent.toLowerCase().indexOf("firefox");return i.default=a.default.View.extend({tagName:"tr",events:{focusin:"_focus",click:"_focus",keyup:"_handleKeyUpEvent"},initialize:function(e){this.$el=(0,s.default)(this.el),this._event=l.default,this.classNames=r.default,this.dataKeys=o.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,s.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,i;return this.enable(),t=e?this.$el.find(this.fieldFocusSelector(e)):0===(i=this.$el.find(this.classNames.ERROR+":first")).length?this.$el.find(":input:text:first"):i.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,s.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,i=this;if(document.activeElement!==window&&(0,s.default)(document.activeElement).blur(),this.isUpdateMode){if(!(t=this.mapSubmitParams(this.serializeObject())))return i.trigger(i._event.CANCEL)}else this.model.clear(),t=this.mapSubmitParams(this.serializeObject());return this.trigger(this._event.SUBMIT_STARTED),this.model.save(t,{success:function(){i.isUpdateMode?i.trigger(i._event.UPDATED,i.model,e):(i.trigger(i._event.CREATED,i.model.toJSON()),i.model=new i._modelClass,i.render({errors:{},values:{}}),i.trigger(i._event.FOCUS)),i.trigger(i._event.SUBMIT_FINISHED)},error:function(e,t,n){400===n.status&&(i.renderErrors(t.errors),i.trigger(i._event.VALIDATION_ERROR,t.errors)),i.trigger(i._event.SUBMIT_FINISHED)},silent:!0}),this},renderError:function(e,t){return(0,s.default)("<div />").attr("data-field",e).addClass(this.classNames.ERROR).text(t)},renderErrors:function(e){var t=this;return this.$("."+this.classNames.ERROR).remove(),e&&s.default.each(e,function(e,i){t.$el.find("[name='"+e+"']").closest("td").append(t.renderError(e,i))}),this},render:function(e){var t=this;return this.$el.empty(),this.allowReorder&&(0,s.default)('<td class="'+this.classNames.ORDER+'" />').append(this.renderDragHandle()).appendTo(t.$el),s.default.each(this.columns,function(i,a){var r,o,l=e.values[a.id],c=[{name:a.id,value:l,allowEdit:a.allowEdit},e.values,t.model];l&&t.$el.attr("data-"+a.id,l),r=t.isCreateRow&&a.createView?new a.createView({model:t.model}).render(c[0]):a.editView?new a.editView({model:t.model}).render(c[0]):t.defaultColumnRenderer.apply(t,c),o=(0,s.default)("<td />"),"object"===(void 0===r?"undefined":n(r))&&r.done?r.done(function(e){o.append(e)}):o.append(r),a.styleClass&&o.addClass(a.styleClass),o.appendTo(t.$el)}),this.$el.append(this.renderOperations(e.update,e.values)).addClass(this.classNames.ROW+" "+this.classNames.EDIT_ROW),this.trigger(this._event.RENDER,this.$el,e.values),this.$el.trigger(this._event.CONTENT_REFRESHED,[this.$el]),this},renderOperations:function(e){var t=(0,s.default)('<td class="aui-restfultable-operations" />');return e?t.append((0,s.default)('<input class="aui-button" type="submit" />').attr({accesskey:this.submitAccessKey,value:AJS.I18n.getText("aui.words.update")})).append((0,s.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,s.default)('<input class="aui-button" type="submit" />').attr({accesskey:this.submitAccessKey,value:AJS.I18n.getText("aui.words.add")})),t.add((0,s.default)('<td class="aui-restfultable-status" />').append((0,c.default)()))}}),t.exports=i.default,t.exports}.call(this),("undefined"==typeof window?global:window).__9ab2142df6a7902349e44b4b4007b228=function(){function e(e){return e&&e.__esModule?e:{default:e}}var t={exports:{}},i=t.exports;Object.defineProperty(i,"__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},s=e(__b096042e9825e59451ac15d5d8ff09dc),a=__753fcc9df59aa10294d11ad5b3802491,r=e(__ed71803392f7e86c1bd2c5aa6fdac9bb),o=e(__9c55ee390fed7dba158a3d0f50d3f5b8),l=e(__193071cfed184109dfefd8bf3971f23e),c=o.default.Model.extend({sync:function(e,t,i){var n=this,s=i.error;return i.error=function(e){n._serverErrorHandler(e,this),s&&s.apply(this,arguments)},o.default.sync.apply(o.default,arguments)},save:function(e,t){var i,n=this,a=(t=t||{}).error,r=t.success;t.error=function(e,t){var i=s.default.parseJSON(t.responseText||t.data);a&&a.call(n,n,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){n.clear().set(e.toJSON()),r&&r.call(n,n,t)},i.save(e,t))},destroy:function(e){e=e||{};var t,i=this,n=this.url();return e.data&&(t=s.default.param(e.data)),t&&t.length&&(n=n+"?"+t),s.default.ajax({url:n,type:"DELETE",dataType:"json",contentType:"application/json",success:function(t){i.collection&&i.collection.remove(i),e.success&&e.success.call(i,t)},error:function(t){i._serverErrorHandler(t,this),e.error&&e.error.call(i,t)}}),this},changedAttributes:function(e){var t={},i=this.toJSON();if(s.default.each(e,function(e,a){i[e]?i[e]&&i[e]!==a&&("object"===(void 0===a?"undefined":n(a))?r.default.isEqual(a,i[e])||(t[e]=a):t[e]=a):"string"==typeof a?""!==s.default.trim(a)&&(t[e]=a):s.default.isArray(a)?0!==a.length&&(t[e]=a):t[e]=a}),!r.default.isEmpty(t))return this.addExpand(t),t},addExpand:function(e){},_serverErrorHandler:function(e,t){var i;400!==e.status&&(i=s.default.parseJSON(e.responseText||e.data),(0,a.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 i.default=c,t.exports=i.default,t.exports}.call(this),("undefined"==typeof window?global:window).__927421b8f98996322a575cec6ab40644=function(){function e(e){return e&&e.__esModule?e:{default:e}}var t={exports:{}},i=t.exports;Object.defineProperty(i,"__esModule",{value:!0});var n=e(__b096042e9825e59451ac15d5d8ff09dc),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}(__fc08efcbd417cb354f4ecd1299a78785),a=e(__9c55ee390fed7dba158a3d0f50d3f5b8),r=e(__2877e2664f88bd4fbf1daa7032e4a681),o=e(__6a9e92ba28299e2bfbb1f1def63afad9),l=e(__193071cfed184109dfefd8bf3971f23e),c=(e(__a4a045451ebcbe40dcd4b856d36ef434),e(__ed5659cd745b01de28c7c04f18efbc9b));return i.default=a.default.View.extend({tagName:"tr",events:{"click .aui-restfultable-editable":"edit"},initialize:function(e){if(e=e||{},this._event=l.default,this.classNames=r.default,this.dataKeys=o.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,n.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,n.default)(this.el).addClass(this.classNames.FOCUSED),this},unfocus:function(){return(0,n.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){var t;return t=(0,n.default)(e.target).is("."+this.classNames.EDITABLE)?(0,n.default)(e.target).attr("data-field-name"):(0,n.default)(e.target).closest("."+this.classNames.EDITABLE).attr("data-field-name"),this.trigger(this._event.ROW_EDIT,t),this},renderOperations:function(){var e=this;if(!1!==this.allowDelete)return(0,n.default)("<a href='#' class='aui-button' />").addClass(this.classNames.DELETE).text(AJS.I18n.getText("aui.words.delete")).click(function(t){t.preventDefault(),e.destroy()})},destroy:function(){if(this.deleteConfirmation){var e=s.popup(400,200,"delete-entity-"+this.model.get("id"));e.element.html(this.deleteConfirmation(this.model.toJSON())),e.show(),e.element.find(".cancel").click(function(){e.hide()}),e.element.find("form").submit(function(t){e.hide(),this.model.destroy(),t.preventDefault()}.bind(this))}else this.model.destroy()},render:function(){var e=this,t=this.model.toJSON(),i=(0,n.default)("<td class='aui-restfultable-operations' />").append(this.renderOperations({},t)),s=(0,n.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,n.default)('<td class="'+this.classNames.ORDER+'" />').append(this.renderDragHandle()).appendTo(e.$el),this.$el.attr("data-id",this.model.id),n.default.each(this.columns,function(i,s){var a,r=(0,n.default)("<td />"),o=t[s.id],l=s.fieldName||s.id,c=[{name:l,value:o,allowEdit:s.allowEdit},t,e.model];if(o&&e.$el.attr("data-"+s.id,o),a=s.readView?new s.readView({model:e.model}).render(c[0]):e.defaultColumnRenderer.apply(e,c),!1!==e.allowEdit&&!1!==s.allowEdit){var d=(0,n.default)("<span />").addClass(e.classNames.EDITABLE).append('<span class="aui-icon aui-icon-small aui-iconfont-edit"></span>').append(a).attr("data-field-name",l);r=(0,n.default)("<td />").append(d).appendTo(e.$el),a&&""!=n.default.trim(a)||(r.addClass(e.classNames.NO_VALUE),d.html((0,n.default)("<em />").text(this.emptyText||AJS.I18n.getText("aui.enter.value"))))}else r.append(a);s.styleClass&&r.addClass(s.styleClass),r.appendTo(e.$el)}),this.$el.append(i).append(s).addClass(this.classNames.ROW+" "+this.classNames.READ_ONLY),this.trigger(this._event.RENDER,this.$el,t),this.$el.trigger(this._event.CONTENT_REFRESHED,[this.$el]),this}}),t.exports=i.default,t.exports}.call(this),("undefined"==typeof window?global:window).__14739ce06a94698ab8e2244b762fdf5a=function(){function e(e){return e&&e.__esModule?e:{default:e}}function t(e,t){(0,a.default)(document).trigger(e,t)}function i(e,i,n){(0,a.default)(i).trigger(e,n),t(e,n),i.id&&t(i.id+"_"+e,n)}var n={exports:{}},s=n.exports;Object.defineProperty(s,"__esModule",{value:!0});var a=e(__b096042e9825e59451ac15d5d8ff09dc),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}(__a1782bd17c3175f2fd8fb8505a4b23d5),o=e(__9c55ee390fed7dba158a3d0f50d3f5b8),l=e(__2877e2664f88bd4fbf1daa7032e4a681),c=e(__4312f99aa710bd2532f0ccf76a7d1044),d=e(__7c3db8e467daf00a518b54bea08ffa18),u=e(__72cbb140abeb5f1e628634a26111ea54),h=e(__6a9e92ba28299e2bfbb1f1def63afad9),f=e(__bff010f546c0422814fec0a7ee8ed8ff),p=e(__9ab2142df6a7902349e44b4b4007b228),g=e(__193071cfed184109dfefd8bf3971f23e),b=e(__1cc2ffe09696e83b0a9eb0104e2ace69),v=(e(__a4a045451ebcbe40dcd4b856d36ef434),e(__927421b8f98996322a575cec6ab40644)),m=e(__ed5659cd745b01de28c7c04f18efbc9b),_=o.default.View.extend({initialize:function(e){var t=this;if(t.options=a.default.extend(!0,t._getDefaultOptions(e),e),t.id=this.options.id,t._event=g.default,t.classNames=l.default,t.dataKeys=h.default,this.$table=(0,a.default)(e.el).addClass(this.classNames.RESTFUL_TABLE).addClass(this.classNames.ALLOW_HOVER).addClass("aui").addClass(t.classNames.LOADING),this.$table.wrapAll("<form class='aui' action='#' />"),this.$thead=(0,a.default)("<thead/>"),this.$theadRow=(0,a.default)("<tr />").appendTo(this.$thead),this.$tbody=(0,a.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 i=a.default.isFunction(e.header)?e.header():e.header;void 0===i&&(r.warn("You have not specified [header] for column ["+e.id+"]. Using id for now..."),i=e.id),t.$theadRow.append("<th>"+i+"</th>")}),t.$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){t.focusedRow&&t.focusedRow.trigger(t._event.SAVE),e.preventDefault()}),this.options.allowReorder&&(this.$theadRow.prepend("<th />"),this.$tbody.sortable({handle:"."+this.classNames.DRAG_HANDLE,helper:function(e,i){var n=(0,a.default)("<div/>").attr("class",i.attr("class")).addClass(t.classNames.MOVEABLE);return i.children().each(function(e){var t=(0,a.default)(this),i=parseInt(0+t.css("border-left-width"),10),s=parseInt(0+t.css("border-right-width"),10),r=t[0].clientWidth+i+s;n.append((0,a.default)("<div/>").html(t.html()).attr("class",t.attr("class")).width(r))}),n=(0,a.default)("<div class='aui-restfultable-readonly'/>").append(n),n.css({left:i.offset().left}),n.appendTo(document.body),n},start:function(e,i){var n=i.helper[0].clientHeight,s=i.placeholder.find("td");i.item.addClass(t.classNames.MOVEABLE).children().each(function(e){(0,a.default)(this).width(s.eq(e).width())});var r='<td colspan="'+t.getColumnCount()+'">&nbsp;</td>';i.placeholder.html(r).css({height:n,visibility:"visible"}),t.getRowFromElement(i.item[0]).trigger(t._event.MODAL)},stop:function(e,i){(0,a.default)(i.item[0]).is(":visible")&&(i.item.removeClass(t.classNames.MOVEABLE).children().attr("style",""),i.placeholder.removeClass(t.classNames.ROW),t.getRowFromElement(i.item[0]).trigger(t._event.MODELESS))},update:function(e,i){var n={row:t.getRowFromElement(i.item[0]),item:i.item,nextItem:i.item.next(),prevItem:i.item.prev()};t.move(n)},axis:"y",delay:0,containment:"document",cursor:"move",scroll:!0,zIndex:8e3}),this.$tbody.bind("selectstart mousedown",function(e){return!(0,a.default)(e.target).is("."+t.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 t.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){void 0==t.options.addPosition&&"bottom"===t.options.createPosition||"bottom"===t.options.addPosition?t.addRow(e):t.addRow(e,0)}).bind(this._event.VALIDATION_ERROR,function(){this.trigger(t._event.FOCUS)}).render({errors:{},values:{}}),this.$create=(0,a.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(e){t.getRows().forEach(function(i){i.model===e&&(i.hasFocus()&&t._createRow&&t._createRow.trigger(t._event.FOCUS),t.removeRow(i))})}),this.fetchInitialResources()},fetchInitialResources:function(){var e=this;a.default.isFunction(this.options.resources.all)?this.options.resources.all(function(t){e.populate(t)}):a.default.get(this.options.resources.all,function(t){e.populate(t)})},move:function(e){var t=this,n=function(e){if(e.length){return{after:t.getRowFromElement(e).model.url()}}return{position:"First"}};if(e.row){var s=n(t.options.reverseOrder?e.nextItem:e.prevItem);a.default.ajax({url:e.row.model.url()+"/move",type:"POST",dataType:"json",contentType:"application/json",data:JSON.stringify(s),complete:function(){e.row.hideLoading()},success:function(e){i(t._event.REORDER_SUCCESS,t,[e])},error:function(e){var n=a.default.parseJSON(e.responseText||e.data);i(t._event.SERVER_ERROR,t,[n,e,this])}}),e.row.showLoading()}},_createCollection:function(){var e=this;return new(this.options.Collection.extend({sort:function(t){if(t||(t={}),!this.comparator)throw new Error("Cannot sort a set without a comparator");return this.tableRows=e.getRows(),this.models=this.sortBy(this.comparator,this),this.tableRows=void 0,t.silent||this.trigger("refresh",this,t),this},remove:function(t,i){return this.tableRows=e.getRows(),o.default.Collection.prototype.remove.apply(this,arguments),this.tableRows=void 0,this}}))([],{comparator:function(t){var i;return(this&&void 0!==this.tableRows?this.tableRows:e.getRows()).some(function(e,n){if(e.model.id===t.id)return i=n,!0}),i}})},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]),i(this._event.INITIALIZED,this,[this]),this.options.autoFocus&&this.$table.find(":input:text:first").focus()},showGlobalLoading:function(){return this.$loading||(this.$loading=(0,a.default)('<div class="aui-restfultable-init">'+(0,m.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){var n,s;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 s=new this.options.model(e),n=this._renderRow(s,t),this._models.add(s),this.removeNoEntriesMsg(),i(this._event.ROW_ADDED,this,[n,this]),this},removeRow:function(e){this._models.remove(e.model),e.remove(),this.isEmpty()&&this.showNoEntriesMsg(),i(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,a.default)(e).data(this.dataKeys.ROW_VIEW)},showNoEntriesMsg:function(){return this.$noEntries&&this.$noEntries.remove(),this.$noEntries=(0,a.default)("<tr>").addClass(this.classNames.NO_ENTRIES).append((0,a.default)("<td>").attr("colspan",this.getColumnCount()).text(this.options.noEntriesMsg)).appendTo(this.$tbody),this},removeNoEntriesMsg:function(){return this.$noEntries&&this._models.length>0&&this.$noEntries.remove(),this},getRows:function(){var e=this,t=[];return this.$tbody.find("."+this.classNames.READ_ONLY).each(function(){var i=(0,a.default)(this).data(e.dataKeys.ROW_VIEW);i&&t.push(i)}),t},_renderRow:function(e,t){var n,s,a=this,r=this.$tbody.find("."+this.classNames.READ_ONLY);return s=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}),this.removeNoEntriesMsg(),s.bind(this._event.ROW_EDIT,function(e){i(this._event.EDIT_ROW,{},[this,a]),a.edit(this,e)}),n=s.render().$el,-1!==t&&("number"==typeof t&&0!==r.length?n.insertBefore(r[t]):this.$tbody.append(n)),n.data(this.dataKeys.ROW_VIEW,s),s.bind(this._event.MODAL,function(){a.$table.removeClass(a.classNames.ALLOW_HOVER),a.$tbody.sortable("disable"),a.getRows().forEach(function(e){a.isRowBeingEdited(e)||e.delegateEvents({})})}),s.bind(this._event.MODELESS,function(){a.$table.addClass(a.classNames.ALLOW_HOVER),a.$tbody.sortable("enable"),a.getRows().forEach(function(e){a.isRowBeingEdited(e)||e.delegateEvents()})}),this._applyFocusCoordinator(s),this.trigger(this._event.ROW_INITIALIZED,s),s},isRowBeingEdited:function(e){var t=!1;return this.editRows.some(function(i){if(i.el===e.el)return t=!0,!0}),t},_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,e instanceof v.default&&t._createRow&&t._createRow.enable()})),this},_removeEditRow:function(e){var t=a.default.inArray(e,this.editRows);return this.editRows.splice(t,1),this},_shiftFocusAfterEdit:function(){return this.editRows.length>0?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(e,t){var i=this,n=new this.options.views.editRow({el:e.el,columns:this.options.columns,isUpdateMode:!0,allowReorder:this.options.allowReorder,fieldFocusSelector:this.options.fieldFocusSelector,model:e.model,cancelAccessKey:this.options.cancelAccessKey,submitAccessKey:this.options.submitAccessKey}),s=e.model.toJSON();return s.update=!0,n.render({errors:{},update:!0,values:s}).bind(i._event.UPDATED,function(t,n){i._removeEditRow(this),this.unbind(),e.render().delegateEvents(),e.trigger(i._event.UPDATED),!1!==n&&i._shiftFocusAfterEdit()}).bind(i._event.VALIDATION_ERROR,function(){this.trigger(i._event.FOCUS)}).bind(i._event.FINISHED_EDITING,function(){i._removeEditRow(this),e.render().delegateEvents(),this.unbind()}).bind(i._event.CANCEL,function(){i._removeEditRow(this),this.unbind(),e.render().delegateEvents(),i._shiftFocusAfterEdit()}).bind(i._event.BLUR,function(){i.dismissEditRows(),i._saveEditRowOnBlur()&&this.trigger(i._event.SAVE,!1)}),this._applyFocusCoordinator(n),n.trigger(i._event.FOCUS,t),i._createRow&&i._createRow.disable(),this.editRows.push(n),n},renderRows:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],i=this._models.comparator,n=[];this._models.comparator=void 0;var s=t.map(function(t){var i=new e.options.model(t);return n.push(e._renderRow(i,-1).el),i});return this._models.add(s,{silent:!0}),this._models.comparator=i,this.removeNoEntriesMsg(),this.$tbody.append(n),this},_getDefaultOptions:function(e){return{model:e.model||p.default,allowEdit:!0,views:{editRow:f.default,row:v.default},Collection:o.default.Collection.extend({url:e.resources.self,model:e.model||p.default}),allowReorder:!1,fieldFocusSelector:function(e){return":input[name="+e+"], #"+e},loadingMsg:e.loadingMsg||AJS.I18n.getText("aui.words.loading")}}});return _.ClassNames=l.default,_.CustomCreateView=c.default,_.CustomEditView=d.default,_.CustomReadView=u.default,_.DataKeys=h.default,_.EditRow=f.default,_.EntryModel=p.default,_.Events=g.default,_.Row=v.default,_.Throbber=m.default,(0,b.default)("RestfulTable",_),s.default=_,n.exports=s.default,n.exports}.call(this),("undefined"==typeof window?global:window).__3c4dc6c0a5cad722aeb177737892d1ff=function(){function e(e){return e&&e.__esModule?e:{default:e}}var t={exports:{}},i=t.exports;Object.defineProperty(i,"__esModule",{value:!0});var n=e(__9c55ee390fed7dba158a3d0f50d3f5b8),s=e(__1cc2ffe09696e83b0a9eb0104e2ace69),a=n.default.Model.extend({initialize:function(e){this.set("active",null,{silent:!0}),this.collection=new n.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 n.default.Collection)&&arguments[0],t=e?this.collection.get(e):this.collection.first();return this.set("active",t||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")),t=(0===e?this.get("length"):e)-1,i=this.collection.at(t);return this.setActive(i&&i.id)},each:function(){return this.collection.each.apply(this.collection,arguments)}});return(0,s.default)("ResultSet",a),i.default=a,t.exports=i.default,t.exports}.call(this),("undefined"==typeof window?global:window).__f6248e99e8df64c089243eb8ea0a88cb=function(){function e(e){return e&&e.__esModule?e:{default:e}}var t={exports:{}},i=t.exports;Object.defineProperty(i,"__esModule",{value:!0});var n=e(__ed71803392f7e86c1bd2c5aa6fdac9bb),s=e(__9c55ee390fed7dba158a3d0f50d3f5b8),a=e(__1cc2ffe09696e83b0a9eb0104e2ace69),r=e(__3c4dc6c0a5cad722aeb177737892d1ff),o=s.default.View.extend({events:{"click [data-id]":"setSelection"},initialize:function(e){if(this.model||(this.model=new r.default({source:e.source})),!(this.model instanceof r.default))throw new Error("model must be set to a ResultSet");this.model.bind("update",this.process,this),this.render=n.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 e=s.default.$("<ul/>");return this.model.each(function(t){s.default.$("<li/>").attr("data-id",t.id).html(this.renderItem(t)).appendTo(e)},this),this.$el.html(e),this},renderItem:function(){},setSelection:function(e){var t=e.target.getAttribute("data-id"),i=this.model.setActive(t);this.trigger("selected",i)},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,a.default)("ResultsList",o),i.default=o,t.exports=i.default,t.exports}.call(this),("undefined"==typeof window?global:window).__49e6b49357b72be05b0a5224e4f5499d=function(){function e(e){return e&&e.__esModule?e:{default:e}}var t={},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=e(__b096042e9825e59451ac15d5d8ff09dc);__17552c5272c171ad452bafa218f51d92;var s=e(__96e1b5385eb02ea2ccfb53dd1c56831e),a=__8bec9a609e12bd1c285d048a3a5e5536;return n.default.fn.spin=(0,a.fn)(function(e,t){var a={size:"small"};return"object"===(void 0===t?"undefined":i(t))&&(a=n.default.extend(a,t)),"object"===(void 0===e?"undefined":i(e))&&(a=n.default.extend(a,e)),"string"==typeof e&&(a.size=e),"boolean"==typeof e&&!1===e?this.spinStop():this.each(function(){if(this&&this.nodeType){var e=(0,n.default)(this),t=e.data();if(t){var i=(0,n.default)("<aui-spinner filled></aui-spinner>");i.attr("size",a.size),i.css("color",a.color),e.spinStop(),e.append(i),s.default.init(this),t.spinner=i}}})},"jQuery.fn.spin",{sinceVersion:"7.9.4",removeInVersion:"9",alternativeName:"<aui-spinner>"}),n.default.fn.spinStop=(0,a.fn)(function(){return this.each(function(){if(this&&this.nodeType){var e=(0,n.default)(this).data();e&&e.spinner&&(e.spinner.remove(),delete e.spinner)}})},"jQuery.fn.spinStop",{sinceVersion:"7.9.4",removeInVersion:"9",alternativeName:"<aui-spinner>"}),t}.call(this),("undefined"==typeof window?global:window).__a74abe95662f70231890f09d0fc17958=function(){function e(e){return e&&e.__esModule?e:{default:e}}var t={exports:{}},i=t.exports;Object.defineProperty(i,"__esModule",{value:!0});var n=e(__96e1b5385eb02ea2ccfb53dd1c56831e),s=e(__5245f3683b6500d90914c4bd8434de4c);return i.default=(0,n.default)("aui-option",{created:function(e){Object.defineProperty(e,"value",{get:function(){return e.getAttribute("value")||(0,s.default)(this.textContent)},set:function(t){e.setAttribute("value",t)}})},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}}}),t.exports=i.default,t.exports}.call(this),("undefined"==typeof window?global:window).__b767de6581218cb9021e9691150bd1e1=function(){var e={exports:{}},t=e.exports;Object.defineProperty(t,"__esModule",{value:!0});var i=function(e){return e&&e.__esModule?e:{default:e}}(__9c55ee390fed7dba158a3d0f50d3f5b8);return t.default=i.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).__0864378a848cc25539f3533d887d0068=function(){function e(){this._suggestions=[],this._activeIndex=-1}var t={exports:{}},i=t.exports;return Object.defineProperty(i,"__esModule",{value:!0}),e.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,t=0===e?e:e-1;return this.highlight(t),this},highlightNext:function(){var e=this._activeIndex,t=e===this._suggestions.length-1?e:e+1;return this.highlight(t),this},highlighted:function(){return this.get(this._activeIndex)},highlightedIndex:function(){return this._activeIndex}},i.default=e,t.exports=i.default,t.exports}.call(this),("undefined"==typeof window?global:window).__b0f681cfb1b6ffa91c89e4cbca61e38e=function(){function e(e){return e&&e.__esModule?e:{default:e}}function t(e,t){return e+"-"+t}function i(e,t){this.el=e,this.anchor=t}function n(e){(0,r.default)(e).find(".aui-select-active").removeClass("aui-select-active")}var s={exports:{}},a=s.exports;Object.defineProperty(a,"__esModule",{value:!0});var r=e(__b096042e9825e59451ac15d5d8ff09dc);__a4a045451ebcbe40dcd4b856d36ef434;var o=e(__fd4a67cb5aef9a6c84bea920911da7e5),l=e(__17bb3a9aeee1e7ab65bcbc4c6079365a);return i.prototype={render:function(e,i,n){this.currListId=n;var s="";if(e.length){var a=i;e.forEach(function(e){var i=e.getLabel(),r=e.get("img-src"),o=r?'<img src="'+r+'"/>':"",l=e.get("new-value")?" (<em>"+AJS.I18n.getText("aui.select.new.value")+"</em>)":"";s+='<li role="option" class="aui-select-suggestion" id="'+t(n,a)+'">'+o+i+l+"</li>",a++}),i?this.el.querySelector("ul").innerHTML+=s:this.el.querySelector("ul").innerHTML=s}else i||(this.el.querySelector("ul").innerHTML='<li role="option" class="aui-select-no-suggestions">'+AJS.I18n.getText("aui.select.no.suggestions")+"</li>");return this},setActive:function(e){n(this.el),(0,r.default)(this.el).find("#"+t(this.currListId,e)).addClass("aui-select-active")},getActive:function(){return this.el.querySelector(".aui-select-active")},show:function(){!function(e){(0,r.default)(e.el).css("min-width",(0,r.default)(e.anchor).outerWidth())}(this),(0,l.default)(this.el).show(),function(e){e.anchor&&!e.auiAlignment&&(e.auiAlignment=new o.default(e.el,e.anchor)),e.auiAlignment&&e.auiAlignment.enable()}(this)},hide:function(){n(this.el),(0,l.default)(this.el).hide(),function(e){e.auiAlignment&&e.auiAlignment.destroy()}(this)},isVisible:function(){return(0,r.default)(this.el).is(":visible")}},a.default=i,s.exports=a.default,s.exports}.call(this),("undefined"==typeof window?global:window).__fc23f93488bda97af487f2a55adee728=function(){var e={exports:{}},t=e.exports;Object.defineProperty(t,"__esModule",{value:!0});var i=function(e){return e&&e.__esModule?e:{default:e}}(__872e6d068b6f196f53f124fba39e411d);return t.default=(0,i.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).__fcad3e16dd4e51983f1e4f9f22e192ba=function(){function e(e){return e&&e.__esModule?e:{default:e}}function t(e){e._select.selectedIndex=L,function(e){e._input.removeAttribute("style"),(0,x.default)(e._input).removeClass("aui-select-has-inline-image")}(e)}function i(e){return e._suggestionModel.getNumberOfResults()}function n(e){setTimeout(e,50)}function s(e,t){return 0===e.get("label").toLowerCase().indexOf(t.toLowerCase())}function a(e){e._suggestionsView.hide(),e._input.setAttribute("aria-expanded","false")}function r(e){var t=i(e)?0:F;e._suggestionModel.highlight(t),a(e)}function o(e,t,i){e._autoHighlight=t,void 0===i&&(i=e._input.value),e._progressiveDataSet.query(i)}function l(e){var t=e._suggestionModel.highlighted()&&e._suggestionModel.highlighted().get("img-src");t&&function(e,t){(0,x.default)(e._input).addClass("aui-select-has-inline-image"),e._input.setAttribute("style","background-image: url("+t+")")}(e,t)}function c(e,t){if(t){var i=document.createElement("option"),n=e._select,s=t.get("value")||t.get("label");i.setAttribute("selected",""),i.setAttribute("value",s),i.textContent=t.getLabel(),e._input.value=i.textContent,n.innerHTML="",n.options.add(i),n.dispatchEvent(new E.default("change",{bubbles:!0}))}}function d(e){c(e,e._suggestionModel.highlighted()),l(e),r(e)}function u(e){return new $.default(e.serialize())}function h(e){for(var t=[],i=0;i<e._datalist.children.length;i++){var n=e._datalist.children[i];t.push(u(n))}return t}function f(e){var t=e._dropdown.querySelector(".aui-select-active");return t&&t.id}function p(e,t){return x.default.map(t,function(e){return e.id}).indexOf(e)}function g(e){e._progressiveDataSet=new R.default(h(e),{model:$.default,matcher:s,queryEndpoint:e._queryEndpoint,maxResults:H}),e._isSync=!e._queryEndpoint,e._progressiveDataSet.on("activity",function(){e._progressiveDataSet.activeQueryCount&&!e._isSync?(!function(e){e._button.isBusy()||(e._button.busy(),e._input.setAttribute("aria-busy","true"),e._dropdown.setAttribute("aria-busy","true"))}(e),(0,I.default)(e).set("should-flag-new-suggestions",!1)):(!function(e){e._button.idle(),e._input.setAttribute("aria-busy","false"),e._dropdown.setAttribute("aria-busy","false")}(e),(0,I.default)(e).set("should-flag-new-suggestions",!0))}),e._progressiveDataSet.on("respond",function(t){var i;if(!t.query||e._input.value)if((0,I.default)(e).get("should-cancel-response"))e._progressiveDataSet.activeQueryCount||(0,I.default)(e).set("should-cancel-response",!1);else{t.query||(t.results=h(e));var s=-1!==p(e._input.value,t.results),a=!e._input.value;if(!e.hasAttribute("can-create-values")||s||a||t.results.push(function(e){var t=new C.default;t.setAttribute("value",e._input.value);var i=u(t);return i.set("new-value",!0),i}(e)),!(0,I.default)(e).get("should-include-selected")){var r=p(e.value,t.results);r>=0&&t.results.splice(r,1)}!function(e,t){e._suggestionModel.set(),e._suggestionModel.set(t.results)}(e,t),i=e._suggestionModel.highlighted()||t.results[0],e._autoHighlight&&(e._suggestionModel.setHighlighted(i),n(function(){e._input.setAttribute("aria-activedescendant",f(e))})),e._input.setAttribute("aria-expanded","true"),!e._isSync&&e._suggestionsView.getActive()&&(0,I.default)(e).get("should-flag-new-suggestions")&&(e.querySelector(".aui-select-status").innerHTML=AJS.I18n.getText("aui.select.new.suggestions")),e._suggestionsView.show(),e._autoHighlight&&n(function(){e._input.setAttribute("aria-activedescendant",f(e))})}})}function b(e){var t=e.value?"":e._input.value,i=""===e._input.value;(0,I.default)(e).set("should-include-selected",i),o(e,!0,t)}function v(e){(function(e){return e._progressiveDataSet.activeQueryCount>0})(e)&&(0,I.default)(e).set("should-cancel-response",!0)}function m(e){if(e._select.selectedIndex>=0)return e._select.options[e._select.selectedIndex].textContent}function _(e){v(e),function(e){var i=!e.hasAttribute("no-empty-values"),n=!e._input.value,s=e._input.value!==m(e);if(n||s)if(i)t(e);else{var a=m(e);void 0===a?t(e):e._input.value=a}}(e),function(e){e._suggestionModel.highlight(F)}(e),a(e)}var w={exports:{}},y=w.exports;Object.defineProperty(y,"__esModule",{value:!0});var x=e(__b096042e9825e59451ac15d5d8ff09dc);__0f553622321953d0eeff163460b8ce9b,__a4a045451ebcbe40dcd4b856d36ef434,__49e6b49357b72be05b0a5224e4f5499d;var C=e(__a74abe95662f70231890f09d0fc17958),S=e(__72576d6f4213a167d30f7603f3411b23),E=e(__d1cecf109f102db7135b5def53470e47),A=e(__1cc2ffe09696e83b0a9eb0104e2ace69),T=e(__74253ec4f336b25e07683c004a3bb04f),R=e(__be6065a4cde19964b120567fdf45523d),O=e(__96e1b5385eb02ea2ccfb53dd1c56831e),I=e(__fc9f29bbbd79be1eb48a65b63fc320d2),$=e(__b767de6581218cb9021e9691150bd1e1),N=e(__0864378a848cc25539f3533d887d0068),D=e(__b0f681cfb1b6ffa91c89e4cbca61e38e),k=e(__fc23f93488bda97af487f2a55adee728),M=e(__f899d9e32b9794929a5129ab47bb52cb),P=__592b00f120e1c9ea0cff010e190f37bc,L=-1,F=-1,H=20,U=(0,O.default)("aui-select",{template:k.default,created:function(e){e._listId=(0,M.default)(),e._input=e.querySelector("input"),e._select=e.querySelector("select"),e._dropdown=e.querySelector(".aui-popover"),e._datalist=e.querySelector("datalist"),e._button=e.querySelector("button"),e._suggestionsView=new D.default(e._dropdown,e._input),e._suggestionModel=new N.default,e._suggestionModel.onChange=function(t){var i=[];e._suggestionModel._suggestions.forEach(function(e){t.some(function(t){return e.id===t.id})||i.push(e)}),e._suggestionsView.render(i,t.length,e._listId)},e._suggestionModel.onHighlightChange=function(){var t=e._suggestionModel.highlightedIndex();e._suggestionsView.setActive(t),e._input.setAttribute("aria-activedescendant",f(e))}},attached:function(e){O.default.init(e),g(e),function(e){e._dropdown.id=e._listId,e.querySelector("button").setAttribute("aria-controls",e._listId)}(e),e._input.setAttribute("aria-controls",e._listId),e.setAttribute("tabindex","-1"),function(e){(0,x.default)(e._dropdown).on("mouseover","li",function(t){i(e)&&e._suggestionModel.highlight((0,x.default)(t.target).index())})}(e),function(e){(0,x.default)(e._dropdown).on("mousedown","li",function(t){if(!i(e))return!1;e._suggestionModel.highlight((0,x.default)(t.target).index()),d(e),e._suggestionsView.hide(),e._input.removeAttribute("aria-activedescendant")})}(e),function(e){var t=e._datalist.querySelector("aui-option[selected]");t&&c(e,u(t))}(e),r(e),l(e)},attributes:{id:function(e,t){e.id&&(e.querySelector("input").id=t.newValue+P.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){_(e)},"mousedown button":function(e){document.activeElement===e._input&&"false"===e._dropdown.getAttribute("aria-hidden")&&(0,I.default)(e).set("prevent-open-on-button-click",!0)},"click input":function(e){b(e)},"click button":function(e){var t=(0,I.default)(e);t.get("prevent-open-on-button-click")?t.set("prevent-open-on-button-click",!1):((0,I.default)(e).set("button-clicked-prevent-dropdown-hide",!0),e.focus())},input:function(e){e._input.value?((0,I.default)(e).set("should-include-selected",!0),o(e,!0)):(0,I.default)(e).get("button-clicked-prevent-dropdown-hide")?(0,I.default)(e).set("button-clicked-prevent-dropdown-hide",!1):a(e)},"keydown input":function(e,t){var n=e._input.value,s=!1;if(t.keyCode===T.default.ESCAPE)return v(e),void a(e);e._suggestionsView.isVisible()&&i(e)?t.keyCode===T.default.ENTER?(v(e),d(e),t.preventDefault()):t.keyCode===T.default.TAB?(!function(e){e._suggestionsView.isVisible()&&d(e)}(e),s=!0):t.keyCode===T.default.UP?(e._suggestionModel.highlightPrevious(),t.preventDefault()):t.keyCode===T.default.DOWN&&(e._suggestionModel.highlightNext(),t.preventDefault()):t.keyCode!==T.default.UP&&t.keyCode!==T.default.DOWN||(b(e),t.preventDefault()),s=s||t.defaultPrevented,setTimeout(function(){e._input.value===n||s||e.dispatchEvent(new E.default("input",{bubbles:!0}))},0)}},prototype:{get value(){var e=this._select.options[this._select.selectedIndex];return e?e.value:""},set value(e){if(""===e)!function(e){e._input.value="",e._select.innerHTML=""}(this);else if(e){var t=this._progressiveDataSet,i=t.findWhere({value:e})||t.findWhere({label:e});!i&&this.hasAttribute("can-create-values")&&(i=new $.default({value:e,label:e})),c(this,i)}return this},get displayValue(){return this._input.value},blur:function(){return this._input.blur(),_(this),this},focus:function(){return this._input.focus(),b(this),this}}});return(0,S.default)("aui/select",U),(0,A.default)("select",U),y.default=U,w.exports=y.default,w.exports}.call(this),("undefined"==typeof window?global:window).__80d80ce642d213694fde6c7805acd41e=function(){var e={};return function(e){void 0===e.fn.each2&&e.extend(e.fn,{each2:function(t){for(var i=e([0]),n=-1,s=this.length;++n<s&&(i.context=i[0]=this[n])&&!1!==t.call(i[0],n,i););return this}})}(jQuery),function(e,t){function i(e){var t,i,n,s;if(!e||e.length<1)return e;for(t="",i=0,n=e.length;i<n;i++)s=e.charAt(i),t+=I[s]||s;return t}function n(e,t){for(var i=0,n=t.length;i<n;i+=1)if(s(e,t[i]))return i;return-1}function s(e,i){return e===i||e!==t&&i!==t&&(null!==e&&null!==i&&(e.constructor===String?e+""==i+"":i.constructor===String&&i+""==e+""))}function a(t,i){var n,s,a;if(null===t||t.length<1)return[];for(s=0,a=(n=t.split(i)).length;s<a;s+=1)n[s]=e.trim(n[s]);return n}function r(e){return e.outerWidth(!1)-e.width()}function o(i){var n="keyup-change-value";i.on("keydown",function(){e.data(i,n)===t&&e.data(i,n,i.val())}),i.on("keyup",function(){var s=e.data(i,n);s!==t&&i.val()!==s&&(e.removeData(i,n),i.trigger("keyup-change"))})}function l(e,i,n){n=n||t;var s;return function(){var t=arguments;window.clearTimeout(s),s=window.setTimeout(function(){i.apply(n,t)},e)}}function c(e){e.preventDefault(),e.stopPropagation()}function d(t,i,n){var s,a,r=[];(s=t.attr("class"))&&e((s=""+s).split(" ")).each2(function(){0===this.indexOf("select2-")&&r.push(this)}),(s=i.attr("class"))&&e((s=""+s).split(" ")).each2(function(){0!==this.indexOf("select2-")&&(a=n(this))&&r.push(a)}),t.attr("class",r.join(" "))}function u(e,t,n,s){var a=i(e.toUpperCase()).indexOf(i(t.toUpperCase())),r=t.length;a<0?n.push(s(e)):(n.push(s(e.substring(0,a))),n.push("<span class='select2-match'>"),n.push(s(e.substring(a,a+r))),n.push("</span>"),n.push(s(e.substring(a+r,e.length))))}function h(e){var t={"\\":"&#92;","&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#47;"};return String(e).replace(/[&<>"'\/\\]/g,function(e){return t[e]})}function f(i){var n,s=null,a=i.quietMillis||100,r=i.url,o=this;return function(l){window.clearTimeout(n),n=window.setTimeout(function(){var n=i.data,a=r,c=i.transport||e.fn.select2.ajaxDefaults.transport,d={type:i.type||"GET",cache:i.cache||!1,jsonpCallback:i.jsonpCallback||t,dataType:i.dataType||"json"},u=e.extend({},e.fn.select2.ajaxDefaults.params,d);n=n?n.call(o,l.term,l.page,l.context):null,a="function"==typeof a?a.call(o,l.term,l.page,l.context):a,s&&s.abort(),i.params&&(e.isFunction(i.params)?e.extend(u,i.params.call(o)):e.extend(u,i.params)),e.extend(u,{url:a,dataType:i.dataType,data:n,success:function(e){var t=i.results(e,l.page);l.callback(t)}}),s=c.call(o,u)},a)}}function p(t){var i,n,s=t,a=function(e){return""+e.text};e.isArray(s)&&(s={results:n=s}),!1===e.isFunction(s)&&(n=s,s=function(){return n});var r=s();return r.text&&(a=r.text,e.isFunction(a)||(i=r.text,a=function(e){return e[i]})),function(t){var i,n=t.term,r={results:[]};""!==n?(i=function(s,r){var o,l;if((s=s[0]).children){o={};for(l in s)s.hasOwnProperty(l)&&(o[l]=s[l]);o.children=[],e(s.children).each2(function(e,t){i(t,o.children)}),(o.children.length||t.matcher(n,a(o),s))&&r.push(o)}else t.matcher(n,a(s),s)&&r.push(s)},e(s().results).each2(function(e,t){i(t,r.results)}),t.callback(r)):t.callback(s())}}function g(i){var n=e.isFunction(i);return function(s){var a=s.term,r={results:[]};e(n?i():i).each(function(){var e=this.text!==t,i=e?this.text:this;(""===a||s.matcher(a,i))&&r.results.push(e?this:{id:this,text:this})}),s.callback(r)}}function b(t,i){if(e.isFunction(t))return!0;if(!t)return!1;throw new Error(i+" must be a function or a falsy value")}function v(t){return e.isFunction(t)?t():t}function m(t){var i=0;return e.each(t,function(e,t){t.children?i+=m(t.children):i++}),i}function _(t,i){var n=function(){};return n.prototype=new t,n.prototype.constructor=n,n.prototype.parent=t.prototype,n.prototype=e.extend(n.prototype,i),n}if(window.Select2===t){var w,y,x,C,S,E,A,T={x:0,y:0},R={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.which:e){case R.LEFT:case R.RIGHT:case R.UP:case R.DOWN:return!0}return!1},isControl:function(e){switch(e.which){case R.SHIFT:case R.CTRL:case R.ALT:return!0}return!!e.metaKey},isFunctionKey:function(e){return(e=e.which?e.which:e)>=112&&e<=123}},O="<div class='select2-measure-scrollbar'></div>",I={"Ⓐ":"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"};E=e(document),C=function(){var e=1;return function(){return e++}}(),E.on("mousemove",function(e){T.x=e.pageX,T.y=e.pageY}),w=_(Object,{bind:function(e){var t=this;return function(){e.apply(t,arguments)}},init:function(i){var s,a,r=".select2-results";this.opts=i=this.prepareOpts(i),this.id=i.id,i.element.data("select2")!==t&&null!==i.element.data("select2")&&i.element.data("select2").destroy(),this.container=this.createContainer(),this.containerId="s2id_"+(i.element.attr("id")||"autogen"+C()),this.containerSelector="#"+this.containerId.replace(/([;&,\.\+\*\~':"\!\^#$%@\[\]\(\)=>\|])/g,"\\$1"),this.container.attr("id",this.containerId),this.body=function(e){var t,i=!1;return function(){return!1===i&&(t=e(),i=!0),t}}(function(){return i.element.closest("body")}),d(this.container,this.opts.element,this.opts.adaptContainerCssClass),this.container.attr("style",i.element.attr("style")),this.container.css(v(i.containerCss)),this.container.addClass(v(i.containerCssClass)),this.elementTabIndex=this.opts.element.attr("tabindex"),this.opts.element.data("select2",this).attr("tabindex","-1").before(this.container).on("click.select2",c),this.container.data("select2",this),this.dropdown=this.container.find(".select2-drop"),d(this.dropdown,this.opts.element,this.opts.adaptDropdownCssClass),this.dropdown.addClass(v(i.dropdownCssClass)),this.dropdown.data("select2",this),this.dropdown.on("click",c),this.results=s=this.container.find(r),this.search=a=this.container.find("input.select2-input"),this.queryCount=0,this.resultsPage=0,this.context=null,this.initContainer(),this.container.on("click",c),function(i){i.on("mousemove",function(i){var n=T;n!==t&&n.x===i.pageX&&n.y===i.pageY||e(i.target).trigger("mousemove-filtered",i)})}(this.results),this.dropdown.on("mousemove-filtered touchstart touchmove touchend",r,this.bind(this.highlightUnderEvent)),function(e,t){var i=l(e,function(e){t.trigger("scroll-debounced",e)});t.on("scroll",function(e){n(e.target,t.get())>=0&&i(e)})}(80,this.results),this.dropdown.on("scroll-debounced",r,this.bind(this.loadMoreIfNeeded)),e(this.container).on("change",".select2-input",function(e){e.stopPropagation()}),e(this.dropdown).on("change",".select2-input",function(e){e.stopPropagation()}),e.fn.mousewheel&&s.mousewheel(function(e,t,i,n){var a=s.scrollTop();n>0&&a-n<=0?(s.scrollTop(0),c(e)):n<0&&s.get(0).scrollHeight-s.scrollTop()+n<=s.height()&&(s.scrollTop(s.get(0).scrollHeight-s.height()),c(e))}),o(a),a.on("keyup-change input paste",this.bind(this.updateResults)),a.on("focus",function(){a.addClass("select2-focused")}),a.on("blur",function(){a.removeClass("select2-focused")}),this.dropdown.on("mouseup",r,this.bind(function(t){e(t.target).closest(".select2-result-selectable").length>0&&(this.highlightUnderEvent(t),this.selectHighlighted(t))})),this.dropdown.on("click mouseup mousedown",function(e){e.stopPropagation()}),e.isFunction(this.opts.initSelection)&&(this.initSelection(),this.monitorSource()),null!==i.maximumInputLength&&this.search.attr("maxlength",i.maximumInputLength);var u=i.element.prop("disabled");u===t&&(u=!1),this.enable(!u);var h=i.element.prop("readonly");h===t&&(h=!1),this.readonly(h),A=A||function(){var t=e(O);t.appendTo("body");var i={width:t.width()-t[0].clientWidth,height:t.height()-t[0].clientHeight};return t.remove(),i}(),this.autofocus=i.element.prop("autofocus"),i.element.prop("autofocus",!1),this.autofocus&&this.focus(),this.nextSearchTerm=t},destroy:function(){var e=this.opts.element,i=e.data("select2");this.close(),this.propertyObserver&&(delete this.propertyObserver,this.propertyObserver=null),i!==t&&(i.container.remove(),i.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:s(e.attr("locked"),"locked")||s(e.data("locked"),!0)}:e.is("optgroup")?{text:e.attr("label"),children:[],element:e.get(),css:e.attr("class")}:void 0},prepareOpts:function(i){var n,r,o,l,c=this;if("select"===(n=i.element).get(0).tagName.toLowerCase()&&(this.select=r=i.element),r&&e.each(["id","multiple","ajax","query","createSearchChoice","initSelection","data","tags"],function(){if(this in i)throw new Error("Option '"+this+"' is not allowed for Select2 when attached to a <select> element.")}),"function"!=typeof(i=e.extend({},{populateResults:function(n,s,a){var r,o=this.opts.id;(r=function(n,s,l){var d,u,h,f,p,g,b,v,m,_;for(d=0,u=(n=i.sortResults(n,s,a)).length;d<u;d+=1)f=!(p=!0===(h=n[d]).disabled)&&o(h)!==t,g=h.children&&h.children.length>0,(b=e("<li></li>")).addClass("select2-results-dept-"+l),b.addClass("select2-result"),b.addClass(f?"select2-result-selectable":"select2-result-unselectable"),p&&b.addClass("select2-disabled"),g&&b.addClass("select2-result-with-children"),b.addClass(c.opts.formatResultCssClass(h)),(v=e(document.createElement("div"))).addClass("select2-result-label"),(_=i.formatResult(h,v,a,c.opts.escapeMarkup))!==t&&v.html(_),b.append(v),g&&((m=e("<ul></ul>")).addClass("select2-result-sub"),r(h.children,m,l+1),b.append(m)),b.data("select2-data",h),s.append(b)})(s,n,0)}},e.fn.select2.defaults,i)).id&&(o=i.id,i.id=function(e){return e[o]}),e.isArray(i.element.data("select2Tags"))){if("tags"in i)throw"tags specified as both an attribute 'data-select2-tags' and in options of Select2 "+i.element.attr("id");i.tags=i.element.data("select2Tags")}if(r?(i.query=this.bind(function(e){var i,s,a,r={results:[],more:!1},o=e.term;a=function(t,i){var n;t.is("option")?e.matcher(o,t.text(),t)&&i.push(c.optionToData(t)):t.is("optgroup")&&(n=c.optionToData(t),t.children().each2(function(e,t){a(t,n.children)}),n.children.length>0&&i.push(n))},i=n.children(),this.getPlaceholder()!==t&&i.length>0&&(s=this.getPlaceholderOption())&&(i=i.not(s)),i.each2(function(e,t){a(t,r.results)}),e.callback(r)}),i.id=function(e){return e.id},i.formatResultCssClass=function(e){return e.css}):"query"in i||("ajax"in i?((l=i.element.data("ajax-url"))&&l.length>0&&(i.ajax.url=l),i.query=f.call(i.element,i.ajax)):"data"in i?i.query=p(i.data):"tags"in i&&(i.query=g(i.tags),i.createSearchChoice===t&&(i.createSearchChoice=function(t){return{id:e.trim(t),text:e.trim(t)}}),i.initSelection===t&&(i.initSelection=function(t,n){var r=[];e(a(t.val(),i.separator)).each(function(){var t={id:this,text:this},n=i.tags;e.isFunction(n)&&(n=n()),e(n).each(function(){if(s(this.id,t.id))return t=this,!1}),r.push(t)}),n(r)}))),"function"!=typeof i.query)throw"query function not defined for Select2 "+i.element.attr("id");return i},monitorSource:function(){var e,i,n=this.opts.element;n.on("change.select2",this.bind(function(e){!0!==this.opts.element.data("select2-change-triggered")&&this.initSelection()})),e=this.bind(function(){var e=n.prop("disabled");e===t&&(e=!1),this.enable(!e);var i=n.prop("readonly");i===t&&(i=!1),this.readonly(i),d(this.container,this.opts.element,this.opts.adaptContainerCssClass),this.container.addClass(v(this.opts.containerCssClass)),d(this.dropdown,this.opts.element,this.opts.adaptDropdownCssClass),this.dropdown.addClass(v(this.opts.dropdownCssClass))}),n.on("propertychange.select2",e),this.mutationCallback===t&&(this.mutationCallback=function(t){t.forEach(e)}),(i=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver)!==t&&(this.propertyObserver&&(delete this.propertyObserver,this.propertyObserver=null),this.propertyObserver=new i(this.mutationCallback),this.propertyObserver.observe(n.get(0),{attributes:!0,subtree:!1}))},triggerSelect:function(t){var i=e.Event("select2-selecting",{val:this.id(t),object:t});return this.opts.element.trigger(i),!i.isDefaultPrevented()},triggerChange:function(t){t=t||{},t=e.extend({},t,{type:"change",val:this.val()}),this.opts.element.data("select2-change-triggered",!0),this.opts.element.trigger(t),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,t=!e;return e!==this.enabledInterface&&(this.container.toggleClass("select2-container-disabled",t),this.close(),this.enabledInterface=e,!0)},enable:function(e){e===t&&(e=!0),this._enabled!==e&&(this._enabled=e,this.opts.element.prop("disabled",!e),this.enableInterface())},disable:function(){this.enable(!1)},readonly:function(e){return e===t&&(e=!1),this._readonly!==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 t,i,n,s,a,r=this.dropdown,o=this.container.offset(),l=this.container.outerHeight(!1),c=this.container.outerWidth(!1),d=r.outerHeight(!1),u=e(window),h=u.width(),f=u.height(),p=u.scrollLeft()+h,g=u.scrollTop()+f,b=o.top+l,m=o.left,_=b+d<=g,w=o.top-d>=this.body().scrollTop(),y=r.outerWidth(!1),x=m+y<=p;r.hasClass("select2-drop-above")?(i=!0,!w&&_&&(n=!0,i=!1)):(i=!1,!_&&w&&(n=!0,i=!0)),n&&(r.hide(),o=this.container.offset(),l=this.container.outerHeight(!1),c=this.container.outerWidth(!1),d=r.outerHeight(!1),p=u.scrollLeft()+h,g=u.scrollTop()+f,b=o.top+l,x=(m=o.left)+(y=r.outerWidth(!1))<=p,r.show()),this.opts.dropdownAutoWidth?(a=e(".select2-results",r)[0],r.addClass("select2-drop-auto-width"),r.css("width",""),(y=r.outerWidth(!1)+(a.scrollHeight===a.clientHeight?0:A.width))>c?c=y:y=c,x=m+y<=p):this.container.removeClass("select2-drop-auto-width"),"static"!==this.body().css("position")&&(b-=(t=this.body().offset()).top,m-=t.left),x||(m=o.left+c-y),s={left:m,width:c},i?(s.bottom=f-o.top,s.top="auto",this.container.addClass("select2-drop-above"),r.addClass("select2-drop-above")):(s.top=b,s.bottom="auto",this.container.removeClass("select2-drop-above"),r.removeClass("select2-drop-above")),s=e.extend(s,v(this.opts.dropdownCss)),r.css(s)},shouldOpen:function(){var t;return!this.opened()&&(!1!==this._enabled&&!0!==this._readonly&&(t=e.Event("select2-opening"),this.opts.element.trigger(t),!t.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 t,i=this.containerId,n="scroll."+i,s="resize."+i,a="orientationchange."+i;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==(t=e("#select2-drop-mask")).length&&((t=e(document.createElement("div"))).attr("id","select2-drop-mask").attr("class","select2-drop-mask"),t.hide(),t.appendTo(this.body()),t.on("mousedown touchstart click",function(t){var i,n=e("#select2-drop");n.length>0&&((i=n.data("select2")).opts.selectOnBlur&&i.selectHighlighted({noFocus:!0}),i.close({focus:!0}),t.preventDefault(),t.stopPropagation())})),this.dropdown.prev()[0]!==t[0]&&this.dropdown.before(t),e("#select2-drop").removeAttr("id"),this.dropdown.attr("id","select2-drop"),t.show(),this.positionDropdown(),this.dropdown.show(),this.positionDropdown(),this.dropdown.addClass("select2-drop-active");var r=this;this.container.parents().add(window).each(function(){e(this).on(s+" "+n+" "+a,function(e){r.positionDropdown()})})},close:function(){if(this.opened()){var t=this.containerId,i="scroll."+t,n="resize."+t,s="orientationchange."+t;this.container.parents().add(window).each(function(){e(this).off(i).off(n).off(s)}),this.clearDropdownAlignmentPreference(),e("#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(e.Event("select2-close"))}},externalSearch:function(e){this.open(),this.search.val(e),this.updateResults(!1)},clearSearch:function(){},getMaximumSelectionSize:function(){return v(this.opts.maximumSelectionSize)},ensureHighlightVisible:function(){var t,i,n,s,a,r,o,l=this.results;(i=this.highlight())<0||(0!=i?(t=this.findHighlightableChoices().find(".select2-result-label"),s=(n=e(t[i])).offset().top+n.outerHeight(!0),i===t.length-1&&(o=l.find("li.select2-more-results")).length>0&&(s=o.offset().top+o.outerHeight(!0)),s>(a=l.offset().top+l.outerHeight(!0))&&l.scrollTop(l.scrollTop()+(s-a)),(r=n.offset().top-l.offset().top)<0&&"none"!=n.css("display")&&l.scrollTop(l.scrollTop()+r)):l.scrollTop(0))},findHighlightableChoices:function(){return this.results.find(".select2-result-selectable:not(.select2-disabled, .select2-selected)")},moveHighlight:function(t){for(var i=this.findHighlightableChoices(),n=this.highlight();n>-1&&n<i.length;){var s=e(i[n+=t]);if(s.hasClass("select2-result-selectable")&&!s.hasClass("select2-disabled")&&!s.hasClass("select2-selected")){this.highlight(n);break}}},highlight:function(t){var i,s,a=this.findHighlightableChoices();if(0===arguments.length)return n(a.filter(".select2-highlighted")[0],a.get());t>=a.length&&(t=a.length-1),t<0&&(t=0),this.removeHighlight(),(i=e(a[t])).addClass("select2-highlighted"),this.ensureHighlightVisible(),(s=i.data("select2-data"))&&this.opts.element.trigger({type:"select2-highlight",val:this.id(s),choice:s})},removeHighlight:function(){this.results.find(".select2-highlighted").removeClass("select2-highlighted")},countSelectableResults:function(){return this.findHighlightableChoices().length},highlightUnderEvent:function(t){var i=e(t.target).closest(".select2-result-selectable");if(i.length>0&&!i.is(".select2-highlighted")){var n=this.findHighlightableChoices();this.highlight(n.index(i))}else 0==i.length&&this.removeHighlight()},loadMoreIfNeeded:function(){var e=this.results,t=e.find("li.select2-more-results"),i=this.resultsPage+1,n=this,s=this.search.val(),a=this.context;0!==t.length&&t.offset().top-e.offset().top-e.height()<=this.opts.loadMorePadding&&(t.addClass("select2-active"),this.opts.query({element:this.opts.element,term:s,page:i,context:a,matcher:this.opts.matcher,callback:this.bind(function(r){n.opened()&&(n.opts.populateResults.call(this,e,r.results,{term:s,page:i,context:a}),n.postprocessResults(r,!1,!1),!0===r.more?(t.detach().appendTo(e).text(n.opts.formatLoadMore(i+1)),window.setTimeout(function(){n.loadMoreIfNeeded()},10)):t.remove(),n.positionDropdown(),n.resultsPage=i,n.context=r.context,this.opts.element.trigger({type:"select2-loaded",items:r}))})}))},tokenize:function(){},updateResults:function(i){function n(){c.removeClass("select2-active"),h.positionDropdown()}function a(e){d.html(e),n()}var r,o,l,c=this.search,d=this.results,u=this.opts,h=this,f=c.val(),p=e.data(this.container,"select2-last-term");if((!0===i||!p||!s(f,p))&&(e.data(this.container,"select2-last-term",f),!0===i||!1!==this.showSearchInput&&this.opened())){l=++this.queryCount;var g=this.getMaximumSelectionSize();if(!(g>=1&&(r=this.data(),e.isArray(r)&&r.length>=g&&b(u.formatSelectionTooBig,"formatSelectionTooBig"))))return c.val().length<u.minimumInputLength?(a(b(u.formatInputTooShort,"formatInputTooShort")?"<li class='select2-no-results'>"+u.formatInputTooShort(c.val(),u.minimumInputLength)+"</li>":""),void(i&&this.showSearch&&this.showSearch(!0))):void(u.maximumInputLength&&c.val().length>u.maximumInputLength?a(b(u.formatInputTooLong,"formatInputTooLong")?"<li class='select2-no-results'>"+u.formatInputTooLong(c.val(),u.maximumInputLength)+"</li>":""):(u.formatSearching&&0===this.findHighlightableChoices().length&&a("<li class='select2-searching'>"+u.formatSearching()+"</li>"),c.addClass("select2-active"),this.removeHighlight(),(o=this.tokenize())!=t&&null!=o&&c.val(o),this.resultsPage=1,u.query({element:u.element,term:c.val(),page:this.resultsPage,context:null,matcher:u.matcher,callback:this.bind(function(r){var o;l==this.queryCount&&(this.opened()?(this.context=r.context===t?null:r.context,this.opts.createSearchChoice&&""!==c.val()&&(o=this.opts.createSearchChoice.call(h,c.val(),r.results))!==t&&null!==o&&h.id(o)!==t&&null!==h.id(o)&&0===e(r.results).filter(function(){return s(h.id(this),h.id(o))}).length&&r.results.unshift(o),0===r.results.length&&b(u.formatNoMatches,"formatNoMatches")?a("<li class='select2-no-results'>"+u.formatNoMatches(c.val())+"</li>"):(d.empty(),h.opts.populateResults.call(this,d,r.results,{term:c.val(),page:this.resultsPage,context:null}),!0===r.more&&b(u.formatLoadMore,"formatLoadMore")&&(d.append("<li class='select2-more-results'>"+h.opts.escapeMarkup(u.formatLoadMore(this.resultsPage))+"</li>"),window.setTimeout(function(){h.loadMoreIfNeeded()},10)),this.postprocessResults(r,i),n(),this.opts.element.trigger({type:"select2-loaded",items:r}))):this.search.removeClass("select2-active"))})})));a("<li class='select2-selection-limit'>"+u.formatSelectionTooBig(g)+"</li>")}},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(){!function(e){e[0]!==document.activeElement&&window.setTimeout(function(){var t,i=e[0],n=e.val().length;e.focus(),e.is(":visible")&&i===document.activeElement&&(i.setSelectionRange?i.setSelectionRange(n,n):i.createTextRange&&((t=i.createTextRange()).collapse(!1),t.select()))},0)}(this.search)},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())!==t?e.text():t)},getPlaceholderOption:function(){if(this.select){var e=this.select.children("option").first();if(this.opts.placeholderOption!==t)return"first"===this.opts.placeholderOption&&e||"function"==typeof this.opts.placeholderOption&&this.opts.placeholderOption(this.select);if(""===e.text()&&""===e.val())return e}},initContainerWidth:function(){var i=function(){var i,n,s,a,r,o;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){if((i=this.opts.element.attr("style"))!==t)for(a=0,r=(n=i.split(";")).length;a<r;a+=1)if(o=n[a].replace(/\s/g,""),null!==(s=o.match(/^width:(([-+]?([0-9]*\.)?[0-9]+)(px|em|ex|%|in|cm|mm|pt|pc))/i))&&s.length>=1)return s[1];return"resolve"===this.opts.width?(i=this.opts.element.css("width")).indexOf("%")>0?i:0===this.opts.element.outerWidth(!1)?"auto":this.opts.element.outerWidth(!1)+"px":null}return e.isFunction(this.opts.width)?this.opts.width():this.opts.width}.call(this);null!==i&&this.container.css("width",i)}}),y=_(w,{createContainer:function(){return e(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 i,n,s;this.opts.minimumResultsForSearch>=0&&this.showSearch(!0),this.parent.opening.apply(this,arguments),!1!==this.showSearchInput&&this.search.val(this.focusser.val()),this.search.focus(),(i=this.search.get(0)).createTextRange?((n=i.createTextRange()).collapse(!1),n.select()):i.setSelectionRange&&(s=this.search.val().length,i.setSelectionRange(s,s)),""===this.search.val()&&this.nextSearchTerm!=t&&(this.search.val(this.nextSearchTerm),this.search.select()),this.focusser.prop("disabled",!0).val(""),this.updateResults(!0),this.opts.element.trigger(e.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(){e("label[for='"+this.focusser.attr("id")+"']").attr("for",this.opts.element.attr("id")),this.parent.destroy.apply(this,arguments)},initContainer:function(){var t,i=this.container,n=this.dropdown;this.opts.minimumResultsForSearch<0?this.showSearch(!1):this.showSearch(!0),this.selection=t=i.find(".select2-choice"),this.focusser=i.find(".select2-focusser"),this.focusser.attr("id","s2id_autogen"+C()),e("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!==R.PAGE_UP&&e.which!==R.PAGE_DOWN)switch(e.which){case R.UP:case R.DOWN:return this.moveHighlight(e.which===R.UP?-1:1),void c(e);case R.ENTER:return this.selectHighlighted(),void c(e);case R.TAB:return void this.selectHighlighted({noFocus:!0});case R.ESC:return this.cancel(e),void c(e)}else c(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!==R.TAB&&!R.isControl(e)&&!R.isFunctionKey(e)&&e.which!==R.ESC){if(!1!==this.opts.openOnEnter||e.which!==R.ENTER){if(e.which==R.DOWN||e.which==R.UP||e.which==R.ENTER&&this.opts.openOnEnter){if(e.altKey||e.ctrlKey||e.shiftKey||e.metaKey)return;return this.open(),void c(e)}return e.which==R.DELETE||e.which==R.BACKSPACE?(this.opts.allowClear&&this.clear(),void c(e)):void 0}c(e)}})),o(this.focusser),this.focusser.on("keyup-change input",this.bind(function(e){if(this.opts.minimumResultsForSearch>=0){if(e.stopPropagation(),this.opened())return;this.open()}})),t.on("mousedown","abbr",this.bind(function(e){this.isInterfaceEnabled()&&(this.clear(),function(e){e.preventDefault(),e.stopImmediatePropagation()}(e),this.close(),this.selection.focus())})),t.on("mousedown",this.bind(function(t){this.container.hasClass("select2-container-active")||this.opts.element.trigger(e.Event("select2-focus")),this.opened()?this.close():this.isInterfaceEnabled()&&this.open(),c(t)})),n.on("mousedown",this.bind(function(){this.search.focus()})),t.on("focus",this.bind(function(e){c(e)})),this.focusser.on("focus",this.bind(function(){this.container.hasClass("select2-container-active")||this.opts.element.trigger(e.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(e.Event("select2-blur")))})),this.search.on("focus",this.bind(function(){this.container.hasClass("select2-container-active")||this.opts.element.trigger(e.Event("select2-focus")),this.container.addClass("select2-container-active")})),this.initContainerWidth(),this.opts.element.addClass("select2-offscreen"),this.setPlaceholder()},clear:function(t){var i=this.selection.data("select2-data");if(i){var n=e.Event("select2-clearing");if(this.opts.element.trigger(n),n.isDefaultPrevented())return;var s=this.getPlaceholderOption();this.opts.element.val(s?s.val():""),this.selection.find(".select2-chosen").empty(),this.selection.removeData("select2-data"),this.setPlaceholder(),!1!==t&&(this.opts.element.trigger({type:"select2-removed",val:this.id(i),choice:i}),this.triggerChange({removed:i}))}},initSelection:function(){if(this.isPlaceholderOptionSelected())this.updateSelection(null),this.close(),this.setPlaceholder();else{var e=this;this.opts.initSelection.call(null,this.opts.element,function(i){i!==t&&null!==i&&(e.updateSelection(i),e.close(),e.setPlaceholder())})}},isPlaceholderOptionSelected:function(){var e;return!!this.getPlaceholder()&&((e=this.getPlaceholderOption())!==t&&e.prop("selected")||""===this.opts.element.val()||this.opts.element.val()===t||null===this.opts.element.val())},prepareOpts:function(){var t=this.parent.prepareOpts.apply(this,arguments),i=this;return"select"===t.element.get(0).tagName.toLowerCase()?t.initSelection=function(e,t){var n=e.find("option").filter(function(){return this.selected});t(i.optionToData(n))}:"data"in t&&(t.initSelection=t.initSelection||function(i,n){var a=i.val(),r=null;t.query({matcher:function(e,i,n){var o=s(a,t.id(n));return o&&(r=n),o},callback:e.isFunction(n)?function(){n(r)}:e.noop})}),t},getPlaceholder:function(){return this.select&&this.getPlaceholderOption()===t?t:this.parent.getPlaceholder.apply(this,arguments)},setPlaceholder:function(){var e=this.getPlaceholder();if(this.isPlaceholderOptionSelected()&&e!==t){if(this.select&&this.getPlaceholderOption()===t)return;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 n=0,a=this;if(this.findHighlightableChoices().each2(function(e,t){if(s(a.id(t.data("select2-data")),a.opts.element.val()))return n=e,!1}),!1!==i&&(!0===t&&n>=0?this.highlight(n):this.highlight(0)),!0===t){var r=this.opts.minimumResultsForSearch;r>=0&&this.showSearch(m(e.results)>=r)}},showSearch:function(t){this.showSearchInput!==t&&(this.showSearchInput=t,this.dropdown.find(".select2-search").toggleClass("select2-search-hidden",!t),this.dropdown.find(".select2-search").toggleClass("select2-offscreen",!t),e(this.dropdown,this.container).toggleClass("select2-with-searchbox",t))},onSelect:function(e,t){if(this.triggerSelect(e)){var i=this.opts.element.val(),n=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(),s(i,this.id(e))||this.triggerChange({added:e,removed:n})}},updateSelection:function(e){var i,n,s=this.selection.find(".select2-chosen");this.selection.data("select2-data",e),s.empty(),null!==e&&(i=this.opts.formatSelection(e,s,this.opts.escapeMarkup)),i!==t&&s.append(i),(n=this.opts.formatSelectionCssClass(e,s))!==t&&s.addClass(n),this.selection.removeClass("select2-default"),this.opts.allowClear&&this.getPlaceholder()!==t&&this.container.addClass("select2-allowclear")},val:function(){var e,i=!1,n=null,s=this,a=this.data();if(0===arguments.length)return this.opts.element.val();if(e=arguments[0],arguments.length>1&&(i=arguments[1]),this.select)this.select.val(e).find("option").filter(function(){return this.selected}).each2(function(e,t){return n=s.optionToData(t),!1}),this.updateSelection(n),this.setPlaceholder(),i&&this.triggerChange({added:n,removed:a});else{if(!e&&0!==e)return void this.clear(i);if(this.opts.initSelection===t)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(),i&&s.triggerChange({added:e,removed:a})})}},clearSearch:function(){this.search.val(""),this.focusser.val("")},data:function(e){var i,n=!1;if(0===arguments.length)return(i=this.selection.data("select2-data"))==t&&(i=null),i;arguments.length>1&&(n=arguments[1]),e?(i=this.data(),this.opts.element.val(e?this.id(e):""),this.updateSelection(e),n&&this.triggerChange({added:e,removed:i})):this.clear(n)}}),x=_(w,{createContainer:function(){return e(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 t=this.parent.prepareOpts.apply(this,arguments),i=this;return"select"===t.element.get(0).tagName.toLowerCase()?t.initSelection=function(e,t){var n=[];e.find("option").filter(function(){return this.selected}).each2(function(e,t){n.push(i.optionToData(t))}),t(n)}:"data"in t&&(t.initSelection=t.initSelection||function(i,n){var r=a(i.val(),t.separator),o=[];t.query({matcher:function(i,n,a){var l=e.grep(r,function(e){return s(e,t.id(a))}).length;return l&&o.push(a),l},callback:e.isFunction(n)?function(){for(var e=[],i=0;i<r.length;i++)for(var a=r[i],l=0;l<o.length;l++){var c=o[l];if(s(a,t.id(c))){e.push(c),o.splice(l,1);break}}n(e)}:e.noop})}),t},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(){e("label[for='"+this.search.attr("id")+"']").attr("for",this.opts.element.attr("id")),this.parent.destroy.apply(this,arguments)},initContainer:function(){var t,i=".select2-choices";this.searchContainer=this.container.find(".select2-search-field"),this.selection=t=this.container.find(i);var n=this;this.selection.on("click",".select2-search-choice:not(.select2-locked)",function(t){n.search[0].focus(),n.selectChoice(e(this))}),this.search.attr("id","s2id_autogen"+C()),e("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(i){if(this.isInterfaceEnabled()){++this.keydowns;var n=t.find(".select2-search-choice-focus"),s=n.prev(".select2-search-choice:not(.select2-locked)"),a=n.next(".select2-search-choice:not(.select2-locked)"),r=function(t){var i=0,n=0;if("selectionStart"in(t=e(t)[0]))i=t.selectionStart,n=t.selectionEnd-i;else if("selection"in document){t.focus();var s=document.selection.createRange();n=document.selection.createRange().text.length,s.moveStart("character",-t.value.length),i=s.text.length-n}return{offset:i,length:n}}(this.search);if(n.length&&(i.which==R.LEFT||i.which==R.RIGHT||i.which==R.BACKSPACE||i.which==R.DELETE||i.which==R.ENTER)){var o=n;return i.which==R.LEFT&&s.length?o=s:i.which==R.RIGHT?o=a.length?a:null:i.which===R.BACKSPACE?(this.unselect(n.first()),this.search.width(10),o=s.length?s:a):i.which==R.DELETE?(this.unselect(n.first()),this.search.width(10),o=a.length?a:null):i.which==R.ENTER&&(o=null),this.selectChoice(o),c(i),void(o&&o.length||this.open())}if((i.which===R.BACKSPACE&&1==this.keydowns||i.which==R.LEFT)&&0==r.offset&&!r.length)return this.selectChoice(t.find(".select2-search-choice:not(.select2-locked)").last()),void c(i);if(this.selectChoice(null),this.opened())switch(i.which){case R.UP:case R.DOWN:return this.moveHighlight(i.which===R.UP?-1:1),void c(i);case R.ENTER:return this.selectHighlighted(),void c(i);case R.TAB:return this.selectHighlighted({noFocus:!0}),void this.close();case R.ESC:return this.cancel(i),void c(i)}if(i.which!==R.TAB&&!R.isControl(i)&&!R.isFunctionKey(i)&&i.which!==R.BACKSPACE&&i.which!==R.ESC){if(i.which===R.ENTER){if(!1===this.opts.openOnEnter)return;if(i.altKey||i.ctrlKey||i.shiftKey||i.metaKey)return}this.open(),i.which!==R.PAGE_UP&&i.which!==R.PAGE_DOWN||c(i),i.which===R.ENTER&&c(i)}}})),this.search.on("keyup",this.bind(function(e){this.keydowns=0,this.resizeSearch()})),this.search.on("blur",this.bind(function(t){this.container.removeClass("select2-container-active"),this.search.removeClass("select2-focused"),this.selectChoice(null),this.opened()||this.clearSearch(),t.stopImmediatePropagation(),this.opts.element.trigger(e.Event("select2-blur"))})),this.container.on("click",i,this.bind(function(t){this.isInterfaceEnabled()&&(e(t.target).closest(".select2-search-choice").length>0||(this.selectChoice(null),this.clearPlaceholder(),this.container.hasClass("select2-container-active")||this.opts.element.trigger(e.Event("select2-focus")),this.open(),this.focusSearch(),t.preventDefault()))})),this.container.on("focus",i,this.bind(function(){this.isInterfaceEnabled()&&(this.container.hasClass("select2-container-active")||this.opts.element.trigger(e.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(){if(""===this.opts.element.val()&&""===this.opts.element.text()&&(this.updateSelection([]),this.close(),this.clearSearch()),this.select||""!==this.opts.element.val()){var e=this;this.opts.initSelection.call(null,this.opts.element,function(i){i!==t&&null!==i&&(e.updateSelection(i),e.close(),e.clearSearch())})}},clearSearch:function(){var e=this.getPlaceholder(),i=this.getMaxSearchWidth();e!==t&&0===this.getVal().length&&!1===this.search.hasClass("select2-focused")?(this.search.val(e).addClass("select2-default"),this.search.width(i>0?i: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(e.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(t){var i=[],s=[],a=this;e(t).each(function(){n(a.id(this),i)<0&&(i.push(a.id(this)),s.push(this))}),t=s,this.selection.find(".select2-search-choice").remove(),e(t).each(function(){a.addSelectedChoice(this)}),a.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!=t&&(this.search.val(e),e.length>0&&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?(this.close(),this.search.width(10)):this.countSelectableResults()>0?(this.search.width(10),this.resizeSearch(),this.getMaximumSelectionSize()>0&&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(i){var n,s,a=!i.locked,r=e("<li class='select2-search-choice'> <div></div> <a href='#' class='select2-search-choice-close' tabindex='-1'></a></li>"),o=e("<li class='select2-search-choice select2-locked'><div></div></li>"),l=a?r:o,d=this.id(i),u=this.getVal();(n=this.opts.formatSelection(i,l.find("div"),this.opts.escapeMarkup))!=t&&l.find("div").replaceWith("<div>"+n+"</div>"),(s=this.opts.formatSelectionCssClass(i,l.find("div")))!=t&&l.addClass(s),a&&l.find(".select2-search-choice-close").on("mousedown",c).on("click dblclick",this.bind(function(t){this.isInterfaceEnabled()&&(e(t.target).closest(".select2-search-choice").fadeOut("fast",this.bind(function(){this.unselect(e(t.target)),this.selection.find(".select2-search-choice-focus").removeClass("select2-search-choice-focus"),this.close(),this.focusSearch()})).dequeue(),c(t))})).on("focus",this.bind(function(){this.isInterfaceEnabled()&&(this.container.addClass("select2-container-active"),this.dropdown.addClass("select2-drop-active"))})),l.data("select2-data",i),l.insertBefore(this.searchContainer),u.push(d),this.setVal(u)},unselect:function(t){var i,s,a=this.getVal();if(0===(t=t.closest(".select2-search-choice")).length)throw"Invalid argument: "+t+". Must be .select2-search-choice";if(i=t.data("select2-data")){for(;(s=n(this.id(i),a))>=0;)a.splice(s,1),this.setVal(a),this.select&&this.postprocessResults();var r=e.Event("select2-removing");r.val=this.id(i),r.choice=i,this.opts.element.trigger(r),r.isDefaultPrevented()||(t.remove(),this.opts.element.trigger({type:"select2-removed",val:this.id(i),choice:i}),this.triggerChange({removed:i}))}},postprocessResults:function(e,t,i){var s=this.getVal(),a=this.results.find(".select2-result"),r=this.results.find(".select2-result-with-children"),o=this;a.each2(function(e,t){n(o.id(t.data("select2-data")),s)>=0&&(t.addClass("select2-selected"),t.find(".select2-result-selectable").addClass("select2-selected"))}),r.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&&o.highlight(0),!this.opts.createSearchChoice&&!a.filter(".select2-result:not(.select2-selected)").length>0&&(!e||e&&!e.more&&0===this.results.find(".select2-no-results").length)&&b(o.opts.formatNoMatches,"formatNoMatches")&&this.results.append("<li class='select2-no-results'>"+o.opts.formatNoMatches(o.search.val())+"</li>")},getMaxSearchWidth:function(){return this.selection.width()-r(this.search)},resizeSearch:function(){var t,i,n,s,a=r(this.search);t=function(t){if(!S){var i=t[0].currentStyle||window.getComputedStyle(t[0],null);(S=e(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"),e("body").append(S)}return S.text(t.val()),S.width()}(this.search)+10,i=this.search.offset().left,(s=(n=this.selection.width())-(i-this.selection.offset().left)-a)<t&&(s=n-a),s<40&&(s=n-a),s<=0&&(s=t),this.search.width(Math.floor(s))},getVal:function(){var e;return this.select?null===(e=this.select.val())?[]:e:(e=this.opts.element.val(),a(e,this.opts.separator))},setVal:function(t){var i;this.select?this.select.val(t):(i=[],e(t).each(function(){n(this,i)<0&&i.push(this)}),this.opts.element.val(0===i.length?"":i.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 n=0;n<e.length;n++)s(this.opts.id(t[i]),this.opts.id(e[n]))&&(t.splice(i,1),i>0&&i--,e.splice(n,1),n--);return{added:t,removed:e}},val:function(i,n){var s,a=this;if(0===arguments.length)return this.getVal();if((s=this.data()).length||(s=[]),!i&&0!==i)return this.opts.element.val(""),this.updateSelection([]),this.clearSearch(),void(n&&this.triggerChange({added:this.data(),removed:s}));if(this.setVal(i),this.select)this.opts.initSelection(this.select,this.bind(this.updateSelection)),n&&this.triggerChange(this.buildChangeDetails(s,this.data()));else{if(this.opts.initSelection===t)throw new Error("val() cannot be called if initSelection() is not defined");this.opts.initSelection(this.opts.element,function(t){var i=e.map(t,a.id);a.setVal(i),a.updateSelection(t),a.clearSearch(),n&&a.triggerChange(a.buildChangeDetails(s,a.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 t=[],i=this;this.searchContainer.show(),this.searchContainer.appendTo(this.searchContainer.parent()),this.resizeSearch(),this.selection.find(".select2-search-choice").each(function(){t.push(i.opts.id(e(this).data("select2-data")))}),this.setVal(t),this.triggerChange()},data:function(t,i){var n,s,a=this;if(0===arguments.length)return this.selection.find(".select2-search-choice").map(function(){return e(this).data("select2-data")}).get();s=this.data(),t||(t=[]),n=e.map(t,function(e){return a.opts.id(e)}),this.setVal(n),this.updateSelection(t),this.clearSearch(),i&&this.triggerChange(this.buildChangeDetails(s,this.data()))}}),e.fn.select2=function(){var i,s,a,r,o,l=Array.prototype.slice.call(arguments,0),c=["val","destroy","opened","open","close","focus","isFocused","container","dropdown","onSortStart","onSortEnd","enable","disable","readonly","positionDropdown","data","search"],d=["opened","isFocused","container","dropdown"],u=["val","data"],h={search:"externalSearch"};return this.each(function(){if(0===l.length||"object"==typeof l[0])(i=0===l.length?{}:e.extend({},l[0])).element=e(this),"select"===i.element.get(0).tagName.toLowerCase()?o=i.element.prop("multiple"):(o=i.multiple||!1,"tags"in i&&(i.multiple=o=!0)),(s=o?new x:new y).init(i);else{if("string"!=typeof l[0])throw"Invalid arguments to select2 plugin: "+l;if(n(l[0],c)<0)throw"Unknown method: "+l[0];if(r=t,(s=e(this).data("select2"))===t)return;if("container"===(a=l[0])?r=s.container:"dropdown"===a?r=s.dropdown:(h[a]&&(a=h[a]),r=s[a].apply(s,l.slice(1))),n(l[0],d)>=0||n(l[0],u)&&1==l.length)return!1}}),r===t?this:r},e.fn.select2.defaults={width:"copy",loadMorePadding:0,closeOnSelect:!0,openOnEnter:!0,containerCss:{},dropdownCss:{},containerCssClass:"",dropdownCssClass:"",formatResult:function(e,t,i,n){var s=[];return u(e.text,i.term,s,n),s.join("")},formatSelection:function(e,i,n){return e?n(e.text):t},sortResults:function(e,t,i){return e},formatResultCssClass:function(e){return t},formatSelectionCssClass:function(e,i){return t},formatNoMatches:function(){return"No matches found"},formatInputTooShort:function(e,t){var i=t-e.length;return"Please enter "+i+" more character"+(1==i?"":"s")},formatInputTooLong:function(e,t){var i=e.length-t;return"Please delete "+i+" character"+(1==i?"":"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 i(""+t).toUpperCase().indexOf(i(""+e).toUpperCase())>=0},separator:",",tokenSeparators:[],tokenizer:function(e,i,n,a){var r,o,l,c,d,u=e,h=!1;if(!a.createSearchChoice||!a.tokenSeparators||a.tokenSeparators.length<1)return t;for(;;){for(o=-1,l=0,c=a.tokenSeparators.length;l<c&&(d=a.tokenSeparators[l],!((o=e.indexOf(d))>=0));l++);if(o<0)break;if(r=e.substring(0,o),e=e.substring(o+d.length),r.length>0&&(r=a.createSearchChoice.call(this,r,i))!==t&&null!==r&&a.id(r)!==t&&null!==a.id(r)){for(h=!1,l=0,c=i.length;l<c;l++)if(s(a.id(r),a.id(i[l]))){h=!0;break}h||n(r)}}return u!==e?e:void 0},escapeMarkup:h,blurOnChange:!1,selectOnBlur:!1,adaptContainerCssClass:function(e){return e},adaptDropdownCssClass:function(e){return null},nextSearchTerm:function(e,i){return t}},e.fn.select2.ajaxDefaults={transport:e.ajax,params:{type:"GET",cache:!1,dataType:"json"}},window.Select2={query:{ajax:f,local:p,tags:g},util:{debounce:l,markMatch:u,escapeMarkup:h,stripDiacritics:i},class:{abstract:w,single:y,multi:x}}}}(jQuery),e}.call(this),("undefined"==typeof window?global:window).__7729f60b57beb6bb95e27e4a7597ac42=function(){var e={},t=function(e){return e&&e.__esModule?e:{default:e}}(__b096042e9825e59451ac15d5d8ff09dc);__80d80ce642d213694fde6c7805acd41e;var i=t.default.fn.select2,n="aui-select2-container",s="aui-select2-drop aui-dropdown2 aui-style-default";return t.default.fn.auiSelect2=function(e){var a;if(t.default.isPlainObject(e)){var r=t.default.extend({},e),o=r.hasAvatar?" aui-has-avatar":"";r.containerCssClass=n+o+(r.containerCssClass?" "+r.containerCssClass:""),r.dropdownCssClass=s+o+(r.dropdownCssClass?" "+r.dropdownCssClass:""),(a=Array.prototype.slice.call(arguments,1)).unshift(r)}else a=arguments.length?arguments:[{containerCssClass:n,dropdownCssClass:s}];return i.apply(this,a)},e}.call(this),("undefined"==typeof window?global:window).__a4f17755649b469027d9ff67fa61ddf5=function(){var e={};return function(e){for(var t=0,i=["webkit","moz"],n=e.requestAnimationFrame,s=e.cancelAnimationFrame,a=i.length;--a>=0&&!n;)n=e[i[a]+"RequestAnimationFrame"],s=e[i[a]+"CancelAnimationFrame"];n&&s||(n=function(e){var i=Date.now(),n=Math.max(t+16,i);return setTimeout(function(){e(t=n)},n-i)},s=clearTimeout),e.requestAnimationFrame=n,e.cancelAnimationFrame=s}(window),e}.call(this),("undefined"==typeof window?global:window).__b547e34048fa1cbf5916ef42a6a3adef=function(){var e={exports:{}},t=e.exports;Object.defineProperty(t,"__esModule",{value:!0});var i=window.DocumentTouch,n="ontouchstart"in window||i&&document instanceof i;return t.default=n,e.exports=t.default,e.exports}.call(this),("undefined"==typeof window?global:window).__4dd04c496ff19006bca775842f612c4b=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).__6ff10f561600cfef7e78c3f000fcfd43=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);var i="1px"===window.getComputedStyle(t,null).width;return t.parentNode.removeChild(t),i},e.exports=t.default,e.exports}.call(this),("undefined"==typeof window?global:window).__84793e01968aa267bfd7cd4de005b68c=function(){function e(e){return e&&e.__esModule?e:{default:e}}function t(e){return e.offset().top}function i(e){this.$el=(0,g.default)(e),this.$el.length&&(this.$body=(0,g.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 a,function(e){function t(e){return e.keyCode===y.default.TAB&&!e.shiftKey&&!e.altKey}if(!(0,g.default)(".aui-sidebar").length)return;(function(e){e.$el.on("mouseenter mouseleave click focus",e.collapsedTriggersSelector,function(t){var i=(0,g.default)(t.target);d(e,i)})})(e),_.default&&(0,x.default)("only screen and (max-device-width:1024px)")&&(0,g.default)("body").addClass("aui-page-sidebar-touch");var i=null,n=function(){null===i&&(i=requestAnimationFrame(function(){e.reflow(),i=null}))};(0,g.default)(window).on("scroll resize",n),n(),e.isAnimated()&&e.$el.on("transitionend webkitTransitionEnd",function(){e.$el.trigger(g.default.Event(T+(e.isCollapsed()?"collapse-end":"expand-end")))});e.$el.on("click",".aui-sidebar-toggle",function(t){t.preventDefault(),e.toggle()}),(0,g.default)(".aui-page-panel").click(function(){!e.isCollapsed()&&e.isViewportNarrow()&&e.collapse()});var s=function(t){(function(e){return!(e.which!==y.default.LEFT_SQUARE_BRACKET||e.shiftKey||e.ctrlKey||e.metaKey||(0,w.default)(e.target))})(t)&&e.toggle()};(0,g.default)(document).on("keypress",s),e._remove=function(){this._removeAllTooltips(),(0,g.default)(this.inlineDialogSelector).remove(),this.$el.off(),this.$el.remove(),(0,g.default)(document).off("keypress",s),(0,g.default)(window).off("scroll resize",n)},e.$el.on("touchend",function(t){e.isCollapsed()&&(e.expand(),t.preventDefault())}),e.$el.on("mouseenter focus",e.collapsedTriggersSelector,function(){if(e.isCollapsed()){var t=(0,g.default)(this);l(t)||u(t)}}),e.$el.on("click blur mouseleave",e.collapsedTriggersSelector,function(){e.isCollapsed()&&h((0,g.default)(this))}),e.$el.on("mouseenter focus",e.toggleSelector,function(){var t=(0,g.default)(this);e.isCollapsed()?t.data("tooltip",AJS.I18n.getText("aui.sidebar.expand.tooltip")):t.data("tooltip",AJS.I18n.getText("aui.sidebar.collapse.tooltip")),u(t)}),e.$el.on("click blur mouseleave",e.toggleSelector,function(){h((0,g.default)(this))});e.$el.on("keydown",e.collapsedTriggersSelector,function(i){if(e.isCollapsed()){var n=i.target,s=o(n);if(!s)return;var a=(0,g.default)(s);t(i)&&s.open&&(i.preventDefault(),function(e){e.attr("persistent",""),e.find(":aui-tabbable").first().focus(),setTimeout(function(){e.removeAttr("persistent")},100)}(a),a.on("keydown",function(e){((function(e){return e.keyCode===y.default.TAB&&e.shiftKey})(e)&&function(e,t){return e===t.find(":aui-tabbable")[0]}(e.target,a)||t(e)&&function(e,t){return e===t.find(":aui-tabbable").last()[0]}(e.target,a))&&(n.focus(),(0,g.default)(this).off("keydown"),c())}))}})}(this),function(e){(0,g.default)(e.collapsedTriggersSelector).each(function(){var t=(0,g.default)(this);d(e,t)})}(this))}function n(e){return g.default.map(e.split(" "),function(e){return T+e}).join(" ")}function s(){return document.querySelectorAll(i.prototype.inlineDialogSelector)}function a(){this.inlineDialog=null}function r(e){return e.is("a")?e.next(".aui-nav"):e.children(".aui-nav, hr")}function o(e){var t=e.getAttribute("aria-controls");return document.getElementById(t)}function l(e){return 0!==r(e).length}function c(){var e=s();Array.prototype.forEach.call(e,function(e){e.open=!1})}function d(e,t){if(!t.data("_aui-sidebar-submenu-constructed")&&(t.data("_aui-sidebar-submenu-constructed",!0),l(t))){var n=document.createElement("aui-inline-dialog"),s=(0,S.default)("sidebar-submenu");return t.attr("aria-controls",s),t.attr("data-aui-trigger",""),C.default.init(t),n.setAttribute("id",s),n.setAttribute("alignment","right top"),n.setAttribute("aria-hidden","true"),e.isCollapsed()&&n.setAttribute("responds-to","hover"),(0,g.default)(n).addClass(i.prototype.inlineDialogClass),document.body.appendChild(n),C.default.init(n),function(e,t,i){i.addEventListener("aui-layer-show",function(n){e.isCollapsed()?function(e,t){e.addClass("active"),t.innerHTML=R;var i=e.is("a")?e.text():e.children(".aui-nav-heading").text(),n=(0,g.default)(t).find(".aui-navgroup-inner");n.children(".aui-nav-heading").attr("title",i).children("strong").text(i);(function(e){var t=(0,b.default)(e);t.hasClass("aui-expander-content")&&(t.find(".aui-expander-cutoff").remove(),t.removeClass("aui-expander-content"));return t})(r(e)).appendTo(n)}(t,i):n.preventDefault()}),i.addEventListener("aui-layer-hide",function(){!function(e){e.removeClass("active")}(t)})}(e,t,n),n}}function u(e){e.tipsy(O).tipsy("show");var t=e.data("tipsy")&&e.data("tipsy").$tip;t&&t.css({opacity:""}).addClass("tooltip-shown")}function h(e){var t=e.data("tipsy")&&e.data("tipsy").$tip;if(t){var i=t.css("transition-duration");if(i){var n=i.indexOf("ms")>=0?parseInt(i.substring(0,i.length-2),10):1e3*parseInt(i.substring(0,i.length-1),10);setTimeout(function(){t.hasClass("tooltip-shown")&&(e.tipsy("hide"),t.removeClass("tooltip-shown"))},n)}else t.removeClass("tooltip-shown")}}var f={exports:{}},p=f.exports;Object.defineProperty(p,"__esModule",{value:!0});var g=e(__b096042e9825e59451ac15d5d8ff09dc);__88a2b4709d05f96f6d2c02be42e4f84b,__a4f17755649b469027d9ff67fa61ddf5,__a4a045451ebcbe40dcd4b856d36ef434;var b=e(__d7ee684e32bfbbefc22783357384e5f1),v=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}(__8bec9a609e12bd1c285d048a3a5e5536),m=e(__1cc2ffe09696e83b0a9eb0104e2ace69),_=e(__b547e34048fa1cbf5916ef42a6a3adef),w=e(__4dd04c496ff19006bca775842f612c4b),y=e(__74253ec4f336b25e07683c004a3bb04f),x=e(__6ff10f561600cfef7e78c3f000fcfd43),C=e(__96e1b5385eb02ea2ccfb53dd1c56831e),S=e(__f899d9e32b9794929a5129ab47bb52cb),E=e(__e605936da51d5ea7490bcdc7bb5613ec),A=void 0!==document.documentElement.style.transition||void 0!==document.documentElement.style.webkitTransition,T="_aui-internal-sidebar-";i.prototype.on=function(){var e=arguments[0],t=Array.prototype.slice.call(arguments,1),i=n(e);return this.$el.on.apply(this.$el,[i].concat(t)),this},i.prototype.off=function(){var e=arguments[0],t=Array.prototype.slice.call(arguments,1),i=n(e);return this.$el.off.apply(this.$el,[i].concat(t)),this},i.prototype.setHeight=function(e,t,i){var n=Math.max(0,i-e);return this.$wrapper.height(t-n),this},i.prototype.setTopPosition=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.pageYOffset;return this.$wrapper.toggleClass("aui-is-docked",e>t(this.$el)),this},i.prototype.setPosition=v.fn(i.prototype.setTopPosition,"Sidebar.setPosition",{removeInVersion:"8.0.0",sinceVersion:"7.6.1",alternativeName:"Sidebar.setTopPosition"}),i.prototype.setLeftPosition=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.pageXOffset;return this.$wrapper.hasClass("aui-is-docked")&&this.$wrapper.css({left:-e}),this},i.prototype.setCollapsedState=function(e){var t={collapsed:{},expanded:{}};t.collapsed.narrow={narrow:g.default.noop,wide:function(t){t._expand(e,!0)}},t.collapsed.wide={narrow:g.default.noop,wide:g.default.noop},t.expanded.narrow={narrow:g.default.noop,wide:function(e){e.$body.removeClass("aui-sidebar-collapsed"),e.$el.removeClass("aui-sidebar-fly-out")}},t.expanded.wide={narrow:function(e){e._collapse(!0)},wide:g.default.noop};var i=this.isCollapsed()?"collapsed":"expanded",n=this.isViewportNarrow(this._previousViewportWidth)?"narrow":"wide",s=this.isViewportNarrow(e)?"narrow":"wide";return t[i][n][s](this),this},i.prototype._collapse=function(e){if(this.isCollapsed())return this;var t=g.default.Event(T+"collapse-start",{isResponsive:e});return this.$el.trigger(t),t.isDefaultPrevented()?this:(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,g.default)(this.inlineDialogSelector).attr("responds-to","hover"),this.isAnimated()||this.$el.trigger(g.default.Event(T+"collapse-end",{isResponsive:e})),this)},i.prototype.collapse=function(){return this._collapse(!1)},i.prototype._expand=function(e,t){var i=g.default.Event(T+"expand-start",{isResponsive:t});if(this.$el.trigger(i),i.isDefaultPrevented())return this;var n=this.isViewportNarrow(e);return this.$el.attr("aria-expanded","true"),this.$body.toggleClass("aui-sidebar-collapsed",n),this.$el.toggleClass("aui-sidebar-fly-out",n),this.$el.find(this.submenuTriggersSelector).removeAttr("tabindex"),(0,g.default)(this.inlineDialogSelector).removeAttr("responds-to"),this.isAnimated()||this.$el.trigger(g.default.Event(T+"expand-end",{isResponsive:t})),this},i.prototype.expand=function(){return this.isCollapsed()&&this._expand(this._previousViewportWidth,!1),this},i.prototype.isAnimated=function(){return A&&this.$el.hasClass("aui-is-animated")},i.prototype.isCollapsed=function(){return"false"===this.$el.attr("aria-expanded")},i.prototype.isViewportNarrow=function(e){return(e=void 0===e?this._previousViewportWidth:e)<1240},i.prototype._removeAllTooltips=function(){(0,g.default)(this.tooltipSelector).remove()},i.prototype.responsiveReflow=function(e,t){if(e){if(!this.isCollapsed()&&this.isViewportNarrow(t)){var i=this.isAnimated();i&&this.$el.removeClass("aui-is-animated"),this.collapse(),i&&(this.$el[0].offsetHeight,this.$el.addClass("aui-is-animated"))}}else t!==this._previousViewportWidth&&this.setCollapsedState(t)},i.prototype.reflow=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.pageYOffset,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document.documentElement.clientHeight,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:window.innerWidth,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:document.documentElement.scrollHeight,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:window.pageXOffset,r=t(this.$el),o=null===this._previousViewportWidth;if(e!==this._previousScrollTop||i!==this._previousViewportHeight||r!==this._previousOffsetTop){this.isCollapsed()&&!o&&e!==this._previousScrollTop&&(c(),this._removeAllTooltips());var l=this.$body.hasClass("aui-page-sidebar-touch"),d=e!==this._previousScrollTop&&(e<0||e+i>s);l||!o&&d||(this.setHeight(e,i,r),this.setTopPosition(e))}a!==this._previousScrollLeft&&this.setLeftPosition(a);if("false"!==this.$el.attr("data-aui-responsive"))this.responsiveReflow(o,n);else{var u=!this.isCollapsed()&&this.isViewportNarrow(n);this.$el.toggleClass("aui-sidebar-fly-out",u)}return this._previousScrollTop=e,this._previousViewportHeight=i,this._previousViewportWidth=n,this._previousOffsetTop=r,this._previousScrollLeft=a,this},i.prototype.toggle=function(){return this.isCollapsed()?(this.expand(),this._removeAllTooltips()):this.collapse(),this},i.prototype.submenuTriggersSelector=".aui-sidebar-group:not(.aui-sidebar-group-tier-one)",i.prototype.collapsedTriggersSelector=[i.prototype.submenuTriggersSelector,".aui-sidebar-group.aui-sidebar-group-tier-one > .aui-nav > li > a",".aui-sidebar-footer > .aui-sidebar-settings-button"].join(", "),i.prototype.toggleSelector=".aui-sidebar-footer > .aui-sidebar-toggle",i.prototype.tooltipSelector=".aui-sidebar-section-tooltip",i.prototype.inlineDialogClass="aui-sidebar-submenu-dialog",i.prototype.inlineDialogSelector="."+i.prototype.inlineDialogClass,a.prototype.submenu=function(e){return $(),r(e)},a.prototype.hasSubmenu=function(e){return $(),l(e)},a.prototype.submenuHeadingHeight=function(){return $(),34},a.prototype.isShowing=function(){return $(),i.prototype.isSubmenuVisible()},a.prototype.show=function(e,t){$(),function(e){o(e).open=!0}(t)},a.prototype.hide=function(){$(),c()},a.prototype.inlineDialogShowHandler=function(){$()},a.prototype.inlineDialogHideHandler=function(){$()},a.prototype.moveSubmenuToInlineDialog=function(){$()},a.prototype.restoreSubmenu=function(){$()},i.prototype.getVisibleSubmenus=function(){return Array.prototype.filter.call(s(),function(e){return e.open})},i.prototype.isSubmenuVisible=function(){return this.getVisibleSubmenus().length>0};var R='<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>',O={trigger:"manual",gravity:"w",className:"aui-sidebar-section-tooltip",title:function(){var e=(0,g.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()}},I=(0,E.default)("sidebar",i);(0,g.default)(function(){I(".aui-sidebar")});var $=v.getMessageLogger("Sidebar.submenus",{removeInVersion:"8.0",sinceVersion:"5.8"});return(0,m.default)("sidebar",I),p.default=I,f.exports=p.default,f.exports}.call(this),("undefined"==typeof window?global:window).__120ad0f8b44a851237d493e6ad27204f=function(){var e={};return function(e){e.extend({tablesorter:new function(){function t(){var e=arguments[0],t=arguments.length>1?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 i(e,i){t(e+" ("+((new Date).getTime()-i.getTime())+"ms)")}function n(e){for(var t in e)return!1;return!0}function s(t,i,n){if(!i)return"";var s,a=t.config,r=a.textExtraction||"",o="";return o="basic"===r?e(i).attr(a.textAttribute)||i.textContent||i.innerText||e(i).text()||"":"function"==typeof r?r(i,t,n):"function"==typeof(s=w.getColumnData(t,r,n))?s(i,t,n):i.textContent||i.innerText||e(i).text()||"",e.trim(o)}function a(e,i,n,a){for(var r,o=w.parsers.length,l=!1,c="",d=!0;""===c&&d;)i[++n]?(c=s(e,l=i[n].cells[a],a),e.config.debug&&t("Checking if value was empty on row "+n+", column: "+a+': "'+c+'"')):d=!1;for(;--o>=0;)if((r=w.parsers[o])&&"text"!==r.id&&r.is&&r.is(c,e,l))return r;return w.getParserById("text")}function r(e){var n,s,r,o,l,c,d,u,h,f,p=e.config,g=p.$tbodies=p.$table.children("tbody:not(."+p.cssInfoBlock+")"),b=0,v="",m=g.length;if(0===m)return p.debug?t("Warning: *Empty table!* Not building a parser cache"):"";for(p.debug&&(f=new Date,t("Detecting parsers for each column")),s={extractors:[],parsers:[]};b<m;){if((n=g[b].rows)[b])for(r=p.columns,o=0;o<r;o++)l=p.$headers.filter('[data-column="'+o+'"]:last'),c=w.getColumnData(e,p.headers,o),h=w.getParserById(w.getData(l,c,"extractor")),u=w.getParserById(w.getData(l,c,"sorter")),d="false"===w.getData(l,c,"parser"),p.empties[o]=w.getData(l,c,"empty")||p.emptyTo||(p.emptyToBottom?"bottom":"top"),p.strings[o]=w.getData(l,c,"string")||p.stringTo||"max",d&&(u=w.getParserById("no-parser")),h||(h=!1),u||(u=a(e,n,-1,o)),p.debug&&(v+="column:"+o+"; extractor:"+h.id+"; parser:"+u.id+"; string:"+p.strings[o]+"; empty: "+p.empties[o]+"\n"),s.parsers[o]=u,s.extractors[o]=h;b+=s.parsers.length?m:1}p.debug&&(t(v||"No parsers detected"),i("Completed detecting parsers",f)),p.parsers=s.parsers,p.extractors=s.extractors}function o(n){var a,r,o,l,c,d,u,h,f,p,g,b,v,m=n.config,_=m.$table.children("tbody"),y=m.extractors,x=m.parsers;if(m.cache={},m.totalRows=0,!x)return m.debug?t("Warning: *Empty table!* Not building a cache"):"";for(m.debug&&(p=new Date),m.showProcessing&&w.isProcessing(n,!0),u=0;u<_.length;u++)if(v=[],a=m.cache[u]={normalized:[]},!_.eq(u).hasClass(m.cssInfoBlock)){for(g=_[u]&&_[u].rows.length||0,c=0;c<g;++c)if(b={child:[]},h=e(_[u].rows[c]),[new Array(m.columns)],f=[],h.hasClass(m.cssChildRow)&&0!==c)r=a.normalized.length-1,a.normalized[r][m.columns].$row=a.normalized[r][m.columns].$row.add(h),h.prev().hasClass(m.cssChildRow)||h.prev().addClass(w.css.cssHasChild),b.child[r]=e.trim(h[0].textContent||h[0].innerText||h.text()||"");else{for(b.$row=h,b.order=c,d=0;d<m.columns;++d)void 0!==x[d]?(r=s(n,h[0].cells[d],d),o=void 0===y[d].id?r:y[d].format(r,n,h[0].cells[d],d),l="no-parser"===x[d].id?"":x[d].format(o,n,h[0].cells[d],d),f.push(m.ignoreCase&&"string"==typeof l?l.toLowerCase():l),"numeric"===(x[d].type||"").toLowerCase()&&(v[d]=Math.max(Math.abs(l)||0,v[d]||0))):m.debug&&t("No parser found for cell:",h[0].cells[d],"does it have a header?");f[m.columns]=b,a.normalized.push(f)}a.colMax=v,m.totalRows+=a.normalized.length}m.showProcessing&&w.isProcessing(n),m.debug&&i("Building cache for "+g+" rows",p)}function l(t,s){var a,r,o,l,c,d,u,h=t.config,f=h.widgetOptions,p=t.tBodies,g=[],b=h.cache;if(n(b))return h.appender?h.appender(t,g):t.isUpdating?h.$table.trigger("updateComplete",t):"";for(h.debug&&(u=new Date),d=0;d<p.length;d++)if((o=e(p[d])).length&&!o.hasClass(h.cssInfoBlock)){for(l=w.processTbody(t,o,!0),r=(a=b[d].normalized).length,c=0;c<r;c++)g.push(a[c][h.columns].$row),h.appender&&(!h.pager||h.pager.removeRows&&f.pager_removeRows||h.pager.ajax)||l.append(a[c][h.columns].$row);w.processTbody(t,l,!1)}h.appender&&h.appender(t,g),h.debug&&i("Rebuilt table",u),s||h.appender||w.applyWidget(t),t.isUpdating&&h.$table.trigger("updateComplete",t)}function c(e){return/^d/i.test(e)||1===e}function d(n){var s,a,r,o,l,d,u,f=n.config;f.headerList=[],f.headerContent=[],f.debug&&(u=new Date),f.columns=w.computeColumnIndex(f.$table.children("thead, tfoot").children("tr")),o=f.cssIcon?'<i class="'+(f.cssIcon===w.css.icon?w.css.icon:f.cssIcon+" "+w.css.icon)+'"></i>':"",f.$headers=e(n).find(f.selectorHeaders).each(function(t){a=e(this),s=w.getColumnData(n,f.headers,t,!0),f.headerContent[t]=e(this).html(),l=f.headerTemplate.replace(/\{content\}/g,e(this).html()).replace(/\{icon\}/g,o),f.onRenderTemplate&&(r=f.onRenderTemplate.apply(a,[t,l]))&&"string"==typeof r&&(l=r),e(this).html('<div class="'+w.css.headerIn+'">'+l+"</div>"),f.onRenderHeader&&f.onRenderHeader.apply(a,[t]),this.column=parseInt(e(this).attr("data-column"),10),this.order=c(w.getData(a,s,"sortInitialOrder")||f.sortInitialOrder)?[1,0,2]:[0,1,2],this.count=-1,this.lockedOrder=!1,void 0!==(d=w.getData(a,s,"lockedOrder")||!1)&&!1!==d&&(this.order=this.lockedOrder=c(d)?[1,1,1]:[0,0,0]),a.addClass(w.css.header+" "+f.cssHeader),f.headerList[t]=this,a.parent().addClass(w.css.headerRow+" "+f.cssHeaderRow).attr("role","row"),f.tabIndex&&a.attr("tabindex",0)}).attr({scope:"col",role:"columnheader"}),h(n),f.debug&&(i("Built headers:",u),t(f.$headers))}function u(e,t,i){var n=e.config;n.$table.find(n.selectorRemove).remove(),r(e),o(e),m(n.$table,t,i)}function h(t){var i,n,s,a=t.config;a.$headers.each(function(r,o){n=e(o),s=w.getColumnData(t,a.headers,r,!0),i="false"===w.getData(o,s,"sorter")||"false"===w.getData(o,s,"parser"),o.sortDisabled=i,n[i?"addClass":"removeClass"]("sorter-false").attr("aria-disabled",""+i),t.id&&(i?n.removeAttr("aria-controls"):n.attr("aria-controls",t.id))})}function f(t){var i,n,s,a=t.config,r=a.sortList,o=r.length,l=w.css.sortNone+" "+a.cssNone,c=[w.css.sortAsc+" "+a.cssAsc,w.css.sortDesc+" "+a.cssDesc],d=["ascending","descending"],u=e(t).find("tfoot tr").children().add(a.$extraHeaders).removeClass(c.join(" "));for(a.$headers.removeClass(c.join(" ")).addClass(l).attr("aria-sort","none"),n=0;n<o;n++)if(2!==r[n][1]&&(i=a.$headers.not(".sorter-false").filter('[data-column="'+r[n][0]+'"]'+(1===o?":last":""))).length){for(s=0;s<i.length;s++)i[s].sortDisabled||i.eq(s).removeClass(l).addClass(c[r[n][1]]).attr("aria-sort",d[r[n][1]]);u.length&&u.filter('[data-column="'+r[n][0]+'"]').removeClass(l).addClass(c[r[n][1]])}a.$headers.not(".sorter-false").each(function(){var t=e(this),i=this.order[(this.count+1)%(a.sortReset?3:2)],n=t.text()+": "+w.language[t.hasClass(w.css.sortAsc)?"sortAsc":t.hasClass(w.css.sortDesc)?"sortDesc":"sortNone"]+w.language[0===i?"nextAsc":1===i?"nextDesc":"nextNone"];t.attr("aria-label",n)})}function p(e,t){return e&&e[t]?e[t].type||"":""}function g(t,i,n){if(t.isUpdating)return setTimeout(function(){g(t,i,n)},50);var s,a,r,o,c,d=t.config,u=!n[d.sortMultiSortKey],h=d.$table;if(h.trigger("sortStart",t),i.count=n[d.sortResetKey]?2:(i.count+1)%(d.sortReset?3:2),d.sortRestart&&(a=i,d.$headers.each(function(){this===a||!u&&e(this).is("."+w.css.sortDesc+",."+w.css.sortAsc)||(this.count=-1)})),a=i.column,u){if(d.sortList=[],null!==d.sortForce)for(s=d.sortForce,r=0;r<s.length;r++)s[r][0]!==a&&d.sortList.push(s[r]);if((o=i.order[i.count])<2&&(d.sortList.push([a,o]),i.colSpan>1))for(r=1;r<i.colSpan;r++)d.sortList.push([a+r,o])}else{if(d.sortAppend&&d.sortList.length>1)for(r=0;r<d.sortAppend.length;r++)(c=w.isValueInArray(d.sortAppend[r][0],d.sortList))>=0&&d.sortList.splice(c,1);if(w.isValueInArray(a,d.sortList)>=0)for(r=0;r<d.sortList.length;r++)c=d.sortList[r],o=d.$headers.filter('[data-column="'+c[0]+'"]:last')[0],c[0]===a&&(c[1]=o.order[i.count],2===c[1]&&(d.sortList.splice(r,1),o.count=-1));else if((o=i.order[i.count])<2&&(d.sortList.push([a,o]),i.colSpan>1))for(r=1;r<i.colSpan;r++)d.sortList.push([a+r,o])}if(null!==d.sortAppend)for(s=d.sortAppend,r=0;r<s.length;r++)s[r][0]!==a&&d.sortList.push(s[r]);h.trigger("sortBegin",t),setTimeout(function(){f(t),b(t),l(t),h.trigger("sortEnd",t)},1)}function b(e){var t,s,a,r,o,l,c,d,u,h,f=0,g=e.config,b=g.textSorter||"",v=g.sortList,m=v.length,_=e.tBodies.length;if(!g.serverSideSorting&&!n(g.cache)){for(g.debug&&(o=new Date),s=0;s<_;s++)l=g.cache[s].colMax,g.cache[s].normalized.sort(function(i,n){for(t=0;t<m;t++){if(r=v[t][0],c=v[t][1],f=0===c,g.sortStable&&i[r]===n[r]&&1===m)return i[g.columns].order-n[g.columns].order;if((a=/n/i.test(p(g.parsers,r)))&&g.strings[r]?(a="boolean"==typeof g.string[g.strings[r]]?(f?1:-1)*(g.string[g.strings[r]]?-1:1):g.strings[r]?g.string[g.strings[r]]||0:0,d=g.numberSorter?g.numberSorter(i[r],n[r],f,l[r],e):w["sortNumeric"+(f?"Asc":"Desc")](i[r],n[r],a,l[r],r,e)):(u=f?i:n,h=f?n:i,d="function"==typeof b?b(u[r],h[r],f,r,e):"object"==typeof b&&b.hasOwnProperty(r)?b[r](u[r],h[r],f,r,e):w["sortNatural"+(f?"Asc":"Desc")](i[r],n[r],r,e,g)),d)return d}return i[g.columns].order-n[g.columns].order});g.debug&&i("Sorting on "+v.toString()+" and dir "+c+" time",o)}}function v(t,i){t[0].isUpdating&&t.trigger("updateComplete"),e.isFunction(i)&&i(t[0])}function m(e,t,i){var n=e[0].config.sortList;!1!==t&&!e[0].isProcessing&&n.length?e.trigger("sorton",[n,function(){v(e,i)},!0]):(v(e,i),w.applyWidget(e[0],!1))}function _(t){var i=t.config,a=i.$table;a.unbind("sortReset update updateRows updateCell updateAll addRows updateComplete sorton appendCache updateCache applyWidgetId applyWidgets refreshWidgets destroy mouseup mouseleave ".split(" ").join(i.namespace+" ")).bind("sortReset"+i.namespace,function(n,s){n.stopPropagation(),i.sortList=[],f(t),b(t),l(t),e.isFunction(s)&&s(t)}).bind("updateAll"+i.namespace,function(e,n,s){e.stopPropagation(),t.isUpdating=!0,w.refreshWidgets(t,!0,!0),w.restoreHeaders(t),d(t),w.bindEvents(t,i.$headers,!0),_(t),u(t,n,s)}).bind("update"+i.namespace+" updateRows"+i.namespace,function(e,i,n){e.stopPropagation(),t.isUpdating=!0,h(t),u(t,i,n)}).bind("updateCell"+i.namespace,function(n,r,o,l){n.stopPropagation(),t.isUpdating=!0,a.find(i.selectorRemove).remove();var c,d,u,h,f=a.find("tbody"),p=e(r),g=f.index(e.fn.closest?p.closest("tbody"):p.parents("tbody").filter(":first")),b=e.fn.closest?p.closest("tr"):p.parents("tr").filter(":first");r=p[0],f.length&&g>=0&&(u=f.eq(g).find("tr").index(b),h=p.index(),i.cache[g].normalized[u][i.columns].$row=b,d=void 0===i.extractors[h].id?s(t,r,h):i.extractors[h].format(s(t,r,h),t,r,h),c="no-parser"===i.parsers[h].id?"":i.parsers[h].format(d,t,r,h),i.cache[g].normalized[u][h]=i.ignoreCase&&"string"==typeof c?c.toLowerCase():c,"numeric"===(i.parsers[h].type||"").toLowerCase()&&(i.cache[g].colMax[h]=Math.max(Math.abs(c)||0,i.cache[g].colMax[h]||0)),m(a,o,l))}).bind("addRows"+i.namespace,function(o,l,c,d){if(o.stopPropagation(),t.isUpdating=!0,n(i.cache))h(t),u(t,c,d);else{var f,p,g,b,v,_,w,y=(l=e(l).attr("role","row")).filter("tr").length,x=a.find("tbody").index(l.parents("tbody").filter(":first"));for(i.parsers&&i.parsers.length||r(t),f=0;f<y;f++){for(g=l[f].cells.length,w=[],_={child:[],$row:l.eq(f),order:i.cache[x].normalized.length},p=0;p<g;p++)b=void 0===i.extractors[p].id?s(t,l[f].cells[p],p):i.extractors[p].format(s(t,l[f].cells[p],p),t,l[f].cells[p],p),v="no-parser"===i.parsers[p].id?"":i.parsers[p].format(b,t,l[f].cells[p],p),w[p]=i.ignoreCase&&"string"==typeof v?v.toLowerCase():v,"numeric"===(i.parsers[p].type||"").toLowerCase()&&(i.cache[x].colMax[p]=Math.max(Math.abs(w[p])||0,i.cache[x].colMax[p]||0));w.push(_),i.cache[x].normalized.push(w)}m(a,c,d)}}).bind("updateComplete"+i.namespace,function(){t.isUpdating=!1}).bind("sorton"+i.namespace,function(i,s,r,c){var d=t.config;i.stopPropagation(),a.trigger("sortStart",this),function(t,i){var n,s,a,r,o,l=t.config,c=i||l.sortList;l.sortList=[],e.each(c,function(t,i){if(r=parseInt(i[0],10),a=l.$headers.filter('[data-column="'+r+'"]:last')[0]){switch(s=(""+i[1]).match(/^(1|d|s|o|n)/),s=s?s[0]:""){case"1":case"d":s=1;break;case"s":s=o||0;break;case"o":n=a.order[(o||0)%(l.sortReset?3:2)],s=0===n?1:1===n?0:2;break;case"n":a.count=a.count+1,s=a.order[a.count%(l.sortReset?3:2)];break;default:s=0}o=0===t?s:o,n=[r,parseInt(s,10)||0],l.sortList.push(n),s=e.inArray(n[1],a.order),a.count=s>=0?s:n[1]%(l.sortReset?3:2)}})}(t,s),f(t),d.delayInit&&n(d.cache)&&o(t),a.trigger("sortBegin",this),b(t),l(t,c),a.trigger("sortEnd",this),w.applyWidget(t),e.isFunction(r)&&r(t)}).bind("appendCache"+i.namespace,function(i,n,s){i.stopPropagation(),l(t,s),e.isFunction(n)&&n(t)}).bind("updateCache"+i.namespace,function(n,s){i.parsers&&i.parsers.length||r(t),o(t),e.isFunction(s)&&s(t)}).bind("applyWidgetId"+i.namespace,function(e,n){e.stopPropagation(),w.getWidgetById(n).format(t,i,i.widgetOptions)}).bind("applyWidgets"+i.namespace,function(e,i){e.stopPropagation(),w.applyWidget(t,i)}).bind("refreshWidgets"+i.namespace,function(e,i,n){e.stopPropagation(),w.refreshWidgets(t,i,n)}).bind("destroy"+i.namespace,function(e,i,n){e.stopPropagation(),w.destroy(t,i,n)}).bind("resetToLoadState"+i.namespace,function(){w.refreshWidgets(t,!0,!0),i=e.extend(!0,w.defaults,i.originalSettings),t.hasInitialized=!1,w.setup(t,i)})}var w=this;w.version="2.17.7",w.parsers=[],w.widgets=[],w.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:[]},w.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"},w.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"},w.log=t,w.benchmark=i,w.construct=function(t){return this.each(function(){var i=e.extend(!0,{},w.defaults,t);i.originalSettings=t,!this.hasInitialized&&w.buildTable&&"TABLE"!==this.tagName?w.buildTable(this,i):w.setup(this,i)})},w.setup=function(i,n){if(!i||!i.tHead||0===i.tBodies.length||!0===i.hasInitialized)return n.debug?t("ERROR: stopping initialization! No table, thead, tbody or tablesorter has already been initialized"):"";var s="",a=e(i),l=e.metadata;i.hasInitialized=!1,i.isProcessing=!0,i.config=n,e.data(i,"tablesorter",n),n.debug&&e.data(i,"startoveralltimer",new Date),n.supportsDataObject=function(e){return e[0]=parseInt(e[0],10),e[0]>1||1===e[0]&&parseInt(e[1],10)>=4}(e.fn.jquery.split(".")),n.string={max:1,min:-1,emptyMin:1,emptyMax:-1,zero:0,none:0,null:0,top:!0,bottom:!1},/tablesorter\-/.test(a.attr("class"))||(s=""!==n.theme?" tablesorter-"+n.theme:""),n.table=i,n.$table=a.addClass(w.css.table+" "+n.tableClass+s).attr("role","grid"),n.$headers=a.find(n.selectorHeaders),n.namespace?n.namespace="."+n.namespace.replace(/\W/g,""):n.namespace=".tablesorter"+Math.random().toString(16).slice(2),n.$table.children().children("tr").attr("role","row"),n.$tbodies=a.children("tbody:not(."+n.cssInfoBlock+")").attr({"aria-live":"polite","aria-relevant":"all"}),n.$table.find("caption").length&&n.$table.attr("aria-labelledby","theCaption"),n.widgetInit={},n.textExtraction=n.$table.attr("data-text-extraction")||n.textExtraction||"basic",d(i),function(t){if(t.config.widthFixed&&0===e(t).find("colgroup").length){var i=e("<colgroup>"),n=e(t).width();e(t.tBodies[0]).find("tr:first").children(":visible").each(function(){i.append(e("<col>").css("width",parseInt(e(this).width()/n*1e3,10)/10+"%"))}),e(t).prepend(i)}}(i),r(i),n.totalRows=0,n.delayInit||o(i),w.bindEvents(i,n.$headers,!0),_(i),n.supportsDataObject&&void 0!==a.data().sortlist?n.sortList=a.data().sortlist:l&&a.metadata()&&a.metadata().sortlist&&(n.sortList=a.metadata().sortlist),w.applyWidget(i,!0),n.sortList.length>0?a.trigger("sorton",[n.sortList,{},!n.initWidgets,!0]):(f(i),n.initWidgets&&w.applyWidget(i,!1)),n.showProcessing&&a.unbind("sortBegin"+n.namespace+" sortEnd"+n.namespace).bind("sortBegin"+n.namespace+" sortEnd"+n.namespace,function(e){clearTimeout(n.processTimer),w.isProcessing(i),"sortBegin"===e.type&&(n.processTimer=setTimeout(function(){w.isProcessing(i,!0)},500))}),i.hasInitialized=!0,i.isProcessing=!1,n.debug&&w.benchmark("Overall initialization time",e.data(i,"startoveralltimer")),a.trigger("tablesorter-initialized",i),"function"==typeof n.initialized&&n.initialized(i)},w.getColumnData=function(t,i,n,s){if(void 0!==i&&null!==i){var a,r=(t=e(t)[0]).config;if(i[n])return s?i[n]:i[r.$headers.index(r.$headers.filter('[data-column="'+n+'"]:last'))];for(a in i)if("string"==typeof a&&(s?r.$headers.eq(n).filter(a):r.$headers.filter('[data-column="'+n+'"]:last').filter(a)).length)return i[a]}},w.computeColumnIndex=function(t){var i,n,s,a,r,o,l,c,d,u,h,f,p,g=[],b={},v=0;for(i=0;i<t.length;i++)for(l=t[i].cells,n=0;n<l.length;n++){for(o=l[n],r=e(o),d=(c=o.parentNode.rowIndex)+"-"+r.index(),u=o.rowSpan||1,h=o.colSpan||1,void 0===g[c]&&(g[c]=[]),s=0;s<g[c].length+1;s++)if(void 0===g[c][s]){f=s;break}for(b[d]=f,v=Math.max(f,v),r.attr({"data-column":f}),s=c;s<c+u;s++)for(void 0===g[s]&&(g[s]=[]),p=g[s],a=f;a<f+h;a++)p[a]="x"}return v+1},w.isProcessing=function(t,i,n){var s=(t=e(t))[0].config,a=n||t.find("."+w.css.header);i?(void 0!==n&&s.sortList.length>0&&(a=a.filter(function(){return!this.sortDisabled&&w.isValueInArray(parseFloat(e(this).attr("data-column")),s.sortList)>=0})),t.add(a).addClass(w.css.processing+" "+s.cssProcessing)):t.add(a).removeClass(w.css.processing+" "+s.cssProcessing)},w.processTbody=function(t,i,n){t=e(t)[0];var s;if(n)return t.isProcessing=!0,i.before('<span class="tablesorter-savemyplace"/>'),s=e.fn.detach?i.detach():i.remove();s=e(t).find("span.tablesorter-savemyplace"),i.insertAfter(s),s.remove(),t.isProcessing=!1},w.clearTableBody=function(t){e(t)[0].config.$tbodies.children().detach()},w.bindEvents=function(t,i,s){var a,r=(t=e(t)[0]).config;!0!==s&&(r.$extraHeaders=r.$extraHeaders?r.$extraHeaders.add(i):i),i.find(r.selectorSort).add(i.filter(r.selectorSort)).unbind("mousedown mouseup sort keyup ".split(" ").join(r.namespace+" ")).bind("mousedown mouseup sort keyup ".split(" ").join(r.namespace+" "),function(s,l){var c,d=s.type;if(!(1!==(s.which||s.button)&&!/sort|keyup/.test(d)||"keyup"===d&&13!==s.which||"mouseup"===d&&!0!==l&&(new Date).getTime()-a>250)){if("mousedown"===d)return a=(new Date).getTime(),/(input|select|button|textarea)/i.test(s.target.tagName)?"":!r.cancelSelection;r.delayInit&&n(r.cache)&&o(t),c=e.fn.closest?e(this).closest("th, td")[0]:/TH|TD/.test(this.tagName)?this:e(this).parents("th, td")[0],(c=r.$headers[i.index(c)]).sortDisabled||g(t,c,s)}}),r.cancelSelection&&i.attr("unselectable","on").bind("selectstart",!1).css({"user-select":"none",MozUserSelect:"none"})},w.restoreHeaders=function(t){var i=e(t)[0].config;i.$table.find(i.selectorHeaders).each(function(t){e(this).find("."+w.css.headerIn).length&&e(this).html(i.headerContent[t])})},w.destroy=function(t,i,n){if((t=e(t)[0]).hasInitialized){w.refreshWidgets(t,!0,!0);var s=e(t),a=t.config,r=s.find("thead:first"),o=r.find("tr."+w.css.headerRow).removeClass(w.css.headerRow+" "+a.cssHeaderRow),l=s.find("tfoot:first > tr").children("th, td");!1===i&&e.inArray("uitheme",a.widgets)>=0&&(s.trigger("applyWidgetId",["uitheme"]),s.trigger("applyWidgetId",["zebra"])),r.find("tr").not(o).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(a.namespace+" ")),a.$headers.add(l).removeClass([w.css.header,a.cssHeader,a.cssAsc,a.cssDesc,w.css.sortAsc,w.css.sortDesc,w.css.sortNone].join(" ")).removeAttr("data-column").removeAttr("aria-label").attr("aria-disabled","true"),o.find(a.selectorSort).unbind("mousedown mouseup keypress ".split(" ").join(a.namespace+" ")),w.restoreHeaders(t),s.toggleClass(w.css.table+" "+a.tableClass+" tablesorter-"+a.theme,!1===i),t.hasInitialized=!1,delete t.config.cache,"function"==typeof n&&n(t)}},w.regex={chunk:/(^([+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?)?$|^0x[0-9a-f]+$|\d+)/gi,chunks:/(^\\0|\\0$)/,hex:/^0x[0-9a-f]+$/i},w.sortNatural=function(e,t){if(e===t)return 0;var i,n,s,a,r,o,l,c,d=w.regex;if(d.hex.test(t)){if(n=parseInt(e.match(d.hex),16),a=parseInt(t.match(d.hex),16),n<a)return-1;if(n>a)return 1}for(i=e.replace(d.chunk,"\\0$1\\0").replace(d.chunks,"").split("\\0"),s=t.replace(d.chunk,"\\0$1\\0").replace(d.chunks,"").split("\\0"),c=Math.max(i.length,s.length),l=0;l<c;l++){if(r=isNaN(i[l])?i[l]||0:parseFloat(i[l])||0,o=isNaN(s[l])?s[l]||0:parseFloat(s[l])||0,isNaN(r)!==isNaN(o))return isNaN(r)?1:-1;if(typeof r!=typeof o&&(r+="",o+=""),r<o)return-1;if(r>o)return 1}return 0},w.sortNaturalAsc=function(e,t,i,n,s){if(e===t)return 0;var a=s.string[s.empties[i]||s.emptyTo];return""===e&&0!==a?"boolean"==typeof a?a?-1:1:-a||-1:""===t&&0!==a?"boolean"==typeof a?a?1:-1:a||1:w.sortNatural(e,t)},w.sortNaturalDesc=function(e,t,i,n,s){if(e===t)return 0;var a=s.string[s.empties[i]||s.emptyTo];return""===e&&0!==a?"boolean"==typeof a?a?-1:1:a||1:""===t&&0!==a?"boolean"==typeof a?a?1:-1:-a||-1:w.sortNatural(t,e)},w.sortText=function(e,t){return e>t?1:e<t?-1:0},w.getTextValue=function(e,t,i){if(i){var n,s=e?e.length:0,a=i+t;for(n=0;n<s;n++)a+=e.charCodeAt(n);return t*a}return 0},w.sortNumericAsc=function(e,t,i,n,s,a){if(e===t)return 0;var r=a.config,o=r.string[r.empties[s]||r.emptyTo];return""===e&&0!==o?"boolean"==typeof o?o?-1:1:-o||-1:""===t&&0!==o?"boolean"==typeof o?o?1:-1:o||1:(isNaN(e)&&(e=w.getTextValue(e,i,n)),isNaN(t)&&(t=w.getTextValue(t,i,n)),e-t)},w.sortNumericDesc=function(e,t,i,n,s,a){if(e===t)return 0;var r=a.config,o=r.string[r.empties[s]||r.emptyTo];return""===e&&0!==o?"boolean"==typeof o?o?-1:1:o||1:""===t&&0!==o?"boolean"==typeof o?o?1:-1:-o||-1:(isNaN(e)&&(e=w.getTextValue(e,i,n)),isNaN(t)&&(t=w.getTextValue(t,i,n)),t-e)},w.sortNumeric=function(e,t){return e-t},w.characterEquivalents={a:"áàâãäąå",A:"ÁÀÂÃÄĄÅ",c:"çćč",C:"ÇĆČ",e:"éèêëěę",E:"ÉÈÊËĚĘ",i:"íìİîïı",I:"ÍÌİÎÏ",o:"óòôõö",O:"ÓÒÔÕÖ",ss:"ß",SS:"ẞ",u:"úùûüů",U:"ÚÙÛÜŮ"},w.replaceAccents=function(e){var t,i="[",n=w.characterEquivalents;if(!w.characterRegex){w.characterRegexArray={};for(t in n)"string"==typeof t&&(i+=n[t],w.characterRegexArray[t]=new RegExp("["+n[t]+"]","g"));w.characterRegex=new RegExp(i+"]")}if(w.characterRegex.test(e))for(t in n)"string"==typeof t&&(e=e.replace(w.characterRegexArray[t],t));return e},w.isValueInArray=function(e,t){var i,n=t.length;for(i=0;i<n;i++)if(t[i][0]===e)return i;return-1},w.addParser=function(e){var t,i=w.parsers.length,n=!0;for(t=0;t<i;t++)w.parsers[t].id.toLowerCase()===e.id.toLowerCase()&&(n=!1);n&&w.parsers.push(e)},w.getParserById=function(e){if("false"==e)return!1;var t,i=w.parsers.length;for(t=0;t<i;t++)if(w.parsers[t].id.toLowerCase()===e.toString().toLowerCase())return w.parsers[t];return!1},w.addWidget=function(e){w.widgets.push(e)},w.hasWidget=function(t,i){return(t=e(t)).length&&t[0].config&&t[0].config.widgetInit[i]||!1},w.getWidgetById=function(e){var t,i,n=w.widgets.length;for(t=0;t<n;t++)if((i=w.widgets[t])&&i.hasOwnProperty("id")&&i.id.toLowerCase()===e.toLowerCase())return i},w.applyWidget=function(t,n){var s,a,r,o=(t=e(t)[0]).config,l=o.widgetOptions,c=[];!1!==n&&t.hasInitialized&&(t.isApplyingWidgets||t.isUpdating)||(o.debug&&(s=new Date),o.widgets.length&&(t.isApplyingWidgets=!0,o.widgets=e.grep(o.widgets,function(t,i){return e.inArray(t,o.widgets)===i}),e.each(o.widgets||[],function(e,t){(r=w.getWidgetById(t))&&r.id&&(r.priority||(r.priority=10),c[e]=r)}),c.sort(function(e,t){return e.priority<t.priority?-1:e.priority===t.priority?0:1}),e.each(c,function(i,s){s&&(!n&&o.widgetInit[s.id]||(o.widgetInit[s.id]=!0,s.hasOwnProperty("options")&&(l=t.config.widgetOptions=e.extend(!0,{},s.options,l)),s.hasOwnProperty("init")&&s.init(t,s,o,l)),!n&&s.hasOwnProperty("format")&&s.format(t,o,l,!1))})),setTimeout(function(){t.isApplyingWidgets=!1},0),o.debug&&(a=o.widgets.length,i("Completed "+(!0===n?"initializing ":"applying ")+a+" widget"+(1!==a?"s":""),s)))},w.refreshWidgets=function(i,n,s){var a,r=(i=e(i)[0]).config,o=r.widgets,l=w.widgets,c=l.length;for(a=0;a<c;a++)l[a]&&l[a].id&&(n||e.inArray(l[a].id,o)<0)&&(r.debug&&t('Refeshing widgets: Removing "'+l[a].id+'"'),l[a].hasOwnProperty("remove")&&r.widgetInit[l[a].id]&&(l[a].remove(i,r,r.widgetOptions),r.widgetInit[l[a].id]=!1));!0!==s&&w.applyWidget(i,n)},w.getData=function(t,i,n){var s,a,r="",o=e(t);return o.length?(s=!!e.metadata&&o.metadata(),a=" "+(o.attr("class")||""),void 0!==o.data(n)||void 0!==o.data(n.toLowerCase())?r+=o.data(n)||o.data(n.toLowerCase()):s&&void 0!==s[n]?r+=s[n]:i&&void 0!==i[n]?r+=i[n]:" "!==a&&a.match(" "+n+"-")&&(r=a.match(new RegExp("\\s"+n+"-([\\w-]+)"))[1]||""),e.trim(r)):""},w.formatFloat=function(t,i){if("string"!=typeof t||""===t)return t;var n;return t=(i&&i.config?!1!==i.config.usNumberFormat:void 0===i||i)?t.replace(/,/g,""):t.replace(/[\s|\.]/g,"").replace(/,/g,"."),/^\s*\([.\d]+\)/.test(t)&&(t=t.replace(/^\s*\(([.\d]+)\)/,"-$1")),n=parseFloat(t),isNaN(n)?e.trim(t):n},w.isDigit=function(e){return!isNaN(e)||/^[\-+(]?\d+[)]?$/.test(e.toString().replace(/[,.'"\s]/g,""))}}});var t=e.tablesorter;e.fn.extend({tablesorter:t.construct}),t.addParser({id:"no-parser",is:function(){return!1},format:function(){return""},type:"text"}),t.addParser({id:"text",is:function(){return!0},format:function(i,n){var s=n.config;return i&&(i=e.trim(s.ignoreCase?i.toLocaleLowerCase():i),i=s.sortLocaleCompare?t.replaceAccents(i):i),i},type:"text"}),t.addParser({id:"digit",is:function(e){return t.isDigit(e)},format:function(i,n){var s=t.formatFloat((i||"").replace(/[^\w,. \-()]/g,""),n);return i&&"number"==typeof s?s:i?e.trim(i&&n.config.ignoreCase?i.toLocaleLowerCase():i):i},type:"numeric"}),t.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(i,n){var s=t.formatFloat((i||"").replace(/[^\w,. \-()]/g,""),n);return i&&"number"==typeof s?s:i?e.trim(i&&n.config.ignoreCase?i.toLocaleLowerCase():i):i},type:"numeric"}),t.addParser({id:"ipAddress",is:function(e){return/^\d{1,3}[\.]\d{1,3}[\.]\d{1,3}[\.]\d{1,3}$/.test(e)},format:function(e,i){var n,s=e?e.split("."):"",a="",r=s.length;for(n=0;n<r;n++)a+=("00"+s[n]).slice(-3);return e?t.formatFloat(a,i):e},type:"numeric"}),t.addParser({id:"url",is:function(e){return/^(https?|ftp|file):\/\//.test(e)},format:function(t){return t?e.trim(t.replace(/(https?|ftp|file):\/\//,"")):t},type:"text"}),t.addParser({id:"isoDate",is:function(e){return/^\d{4}[\/\-]\d{1,2}[\/\-]\d{1,2}/.test(e)},format:function(e,i){return e?t.formatFloat(""!==e?new Date(e.replace(/-/g,"/")).getTime()||e:"",i):e},type:"numeric"}),t.addParser({id:"percent",is:function(e){return/(\d\s*?%|%\s*?\d)/.test(e)&&e.length<15},format:function(e,i){return e?t.formatFloat(e.replace(/%/g,""),i):e},type:"numeric"}),t.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,i){return e?t.formatFloat(new Date(e.replace(/(\S)([AP]M)$/i,"$1 $2")).getTime()||e,i):e},type:"numeric"}),t.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,i,n,s){if(e){var a=i.config,r=a.$headers.filter("[data-column="+s+"]:last"),o=r.length&&r[0].dateFormat||t.getData(r,t.getColumnData(i,a.headers,s),"dateFormat")||a.dateFormat;e=e.replace(/\s+/g," ").replace(/[\-.,]/g,"/"),"mmddyyyy"===o?e=e.replace(/(\d{1,2})[\/\s](\d{1,2})[\/\s](\d{4})/,"$3/$1/$2"):"ddmmyyyy"===o?e=e.replace(/(\d{1,2})[\/\s](\d{1,2})[\/\s](\d{4})/,"$3/$2/$1"):"yyyymmdd"===o&&(e=e.replace(/(\d{4})[\/\s](\d{1,2})[\/\s](\d{1,2})/,"$1/$2/$3"))}return e?t.formatFloat(new Date(e).getTime()||e,i):e},type:"numeric"}),t.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,i){return e?t.formatFloat(new Date("2000/01/01 "+e.replace(/(\S)([AP]M)$/i,"$1 $2")).getTime()||e,i):e},type:"numeric"}),t.addParser({id:"metadata",is:function(){return!1},format:function(t,i,n){var s=i.config,a=s.parserMetadataName?s.parserMetadataName:"sortValue";return e(n).metadata()[a]},type:"numeric"}),t.addWidget({id:"zebra",priority:90,format:function(i,n,s){var a,r,o,l,c,d,u=new RegExp(n.cssChildRow,"i"),h=n.$tbodies;for(n.debug&&(c=new Date),d=0;d<h.length;d++)(a=h.eq(d)).children("tr").length>1&&(o=0,a.children("tr:visible").not(n.selectorRemove).each(function(){r=e(this),u.test(this.className)||o++,l=o%2==0,r.removeClass(s.zebra[l?1:0]).addClass(s.zebra[l?0:1])}));n.debug&&t.benchmark("Applying Zebra widget",c)},remove:function(t,i,n){var s,a,r=i.$tbodies,o=(n.zebra||["even","odd"]).join(" ");for(s=0;s<r.length;s++)(a=e.tablesorter.processTbody(t,r.eq(s),!0)).children().removeClass(o),e.tablesorter.processTbody(t,a,!1)}})}(jQuery),e}.call(this),("undefined"==typeof window?global:window).__ff60ce980f6af8f0fd0b23f66c125494=function(){function e(e){return e&&e.__esModule?e:{default:e}}function t(e){var t=r;e.find("th").each(function(e,i){var n=(0,s.default)(i);t.headers[e]={},n.hasClass("aui-table-column-unsortable")?t.headers[e].sorter=!1:(n.attr("tabindex","0"),n.wrapInner("<span class='aui-table-header-content'/>"),n.hasClass("aui-table-column-issue-key")&&(t.headers[e].sorter="issue-key"))}),e.tablesorter(t)}var i={exports:{}},n=i.exports;Object.defineProperty(n,"__esModule",{value:!0});var s=e(__b096042e9825e59451ac15d5d8ff09dc);__120ad0f8b44a851237d493e6ad27204f;var a=e(__1cc2ffe09696e83b0a9eb0104e2ace69),r={sortMultiSortKey:"",headers:{},debug:!1,tabIndex:!1},o={setup:function(){s.default.tablesorter.addParser({id:"issue-key",is:function(){return!1},format:function(e){var t=e.split("-"),i=t[0],n=t[1],s=(i+"..........").slice(0,"..........".length);return s+=("000000"+n).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,n){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,n){return i.getAttribute("data-sort-value")},type:"numeric"}),(0,s.default)(".aui-table-sortable").each(function(){t((0,s.default)(this))})},setTableSortable:function(e){t(e)}};return(0,s.default)(o.setup),(0,a.default)("tablessortable",o),n.default=o,i.exports=n.default,i.exports}.call(this),("undefined"==typeof window?global:window).__dee2652d626b9aae6cf26a38254ec50c=function(){var e={};return __88a2b4709d05f96f6d2c02be42e4f84b,e}.call(this),("undefined"==typeof window?global:window).__6475d3c96a816bb0c3a9e1fc98460844=function(){function e(e){return e&&e.__esModule?e:{default:e}}function t(e){e._canFireEventsNow&&e.dispatchEvent(new g.default("change",{bubbles:!0}))}function i(e){return e._input||(e._input=e.querySelector("input"))}function n(e){return e._spinner||(e._spinner=new v.default)}function s(e,t){i(t).removeAttribute(e)}function a(e,t,n){i(t).setAttribute(e,n.newValue)}function r(e){return{removed:s.bind(this,e),fallback:a.bind(this,e)}}var o={};__49e6b49357b72be05b0a5224e4f5499d,__da0f512002b03f5f55d009d4a2e0f40b;var l=__2a8f1bbb852fbcf778bd1e737510dfe5,c=e(__b096042e9825e59451ac15d5d8ff09dc),d=e(__2a8b10ed765d77053ff9305996381ba7),u=e(__74253ec4f336b25e07683c004a3bb04f),h=e(__872e6d068b6f196f53f124fba39e411d),f=e(__96e1b5385eb02ea2ccfb53dd1c56831e),p=__592b00f120e1c9ea0cff010e190f37bc,g=e(__d1cecf109f102db7135b5def53470e47),b=__17552c5272c171ad452bafa218f51d92,v=e(b),m={removed:function(e){s.call(this,"form",e),e._formId=null},fallback:function(e,t){a.call(this,"form",e,t),e._formId=t.newValue}},_={removed:s.bind(void 0,"id"),fallback:function(e,t){i(e).setAttribute("id",""+t.newValue+p.INPUT_SUFFIX)}},w={removed:function(e){i(e).checked=!1,t(e)},fallback:function(e){i(e).checked=!0,t(e)}},y={removed:function(e){i(e).removeAttribute("aria-label")},fallback:function(e,t){i(e).setAttribute("aria-label",t.newValue)}};return(0,f.default)("aui-toggle",{template:(0,h.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){i(e),n(e).setAttribute("size",b.SIZE.SMALL.name),(0,c.default)(i(e)).tooltip({title:function(){return this.checked?this.getAttribute("tooltip-on"):this.getAttribute("tooltip-off")},gravity:"s",hoverable:!1}),function(e){i(e).addEventListener("keydown",function(t){e.busy&&t.keyCode===u.default.SPACE&&t.preventDefault()}),navigator.userAgent.toLowerCase().indexOf("firefox")>-1&&i(e).addEventListener("click",function(t){e.busy&&t.preventDefault()})}(e),e.hasAttribute("checked")&&i(e).setAttribute("checked",""),e._canFireEventsNow=!0},attached:function(e){(0,d.default)(e).attributeExists("label")},events:{click:function(e,t){var n=i(e);e.disabled||e.busy||t.target===n||(n.checked=!n.checked),(0,l.setBooleanAttribute)(e,"checked",n.checked)}},attributes:{id:_,checked:w,disabled:r("disabled"),form:m,name:r("name"),value:r("value"),"tooltip-on":{value:AJS.I18n.getText("aui.toggle.on"),fallback:function(e,t){i(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){i(e).setAttribute("tooltip-off",t.newValue||AJS.I18n.getText("aui.toggle.off"))}},label:y},prototype:{focus:function(){return i(this).focus(),this},get checked(){return i(this).checked},set checked(e){i(this).checked!==e&&(i(this).checked=e,(0,l.setBooleanAttribute)(this,"checked",e))},get disabled(){return i(this).disabled},set disabled(e){return(0,l.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 i(this).name},set name(e){return this.setAttribute("name",e),e},get value(){return i(this).value},set value(e){return this.setAttribute("value",null===e?"":e),e},get busy(){return"true"===i(this).getAttribute("aria-busy")},set busy(e){var t=i(this),s=n(this);return(0,l.setBooleanAttribute)(this,"busy",e),e?(t.setAttribute("aria-busy","true"),t.indeterminate=!0,this.checked?(t.classList.add("indeterminate-checked"),(0,c.default)(this.querySelector(".aui-toggle-tick")).append(s)):(0,c.default)(this.querySelector(".aui-toggle-cross")).append(s)):(t.classList.remove("indeterminate-checked"),t.indeterminate=!1,t.removeAttribute("aria-busy"),s.parentNode&&s.parentNode.removeChild(this._spinner)),function(e,t){e.id&&Array.prototype.forEach.call(document.querySelectorAll('aui-label[for="'+e.id+'"]'),function(e){e.disabled=t})}(this,!!e),e}}}),o}.call(this),("undefined"==typeof window?global:window).__4681027354bf725a0491b9c1d6d8f1a7=function(){function e(e){return e&&e.__esModule?e:{default:e}}function t(e,t){if(e.isEnabled()){var i=function(e){return document.getElementById(e.getAttribute("aria-controls"))}(e);i&&i.message&&i.message(t)}}var i={},n=e(__b096042e9825e59451ac15d5d8ff09dc),s=e(__72576d6f4213a167d30f7603f3411b23),a=e(__96e1b5385eb02ea2ccfb53dd1c56831e);return(0,a.default)("data-aui-trigger",{type:a.default.type.ATTRIBUTE,events:{click:function(e,i){(function(e,t){var i=(0,n.default)(t).closest("a[href]",e);return!!i.length&&i[0]!==e})(e,i.target)||(t(e,i),i.preventDefault())},mouseenter:function(e,i){t(e,i)},mouseleave:function(e,i){t(e,i)},focus:function(e,i){t(e,i)},blur:function(e,i){t(e,i)}},prototype:{disable:function(){this.setAttribute("aria-disabled","true")},enable:function(){this.setAttribute("aria-disabled","false")},isEnabled:function(){return"true"!==this.getAttribute("aria-disabled")}}}),(0,s.default)("aui/trigger"),i}.call(this),("undefined"==typeof window?global:window).__410660d6302eab05bab0c81623725322=function(){function e(e){return e&&e.__esModule?e:{default:e}}var t={exports:{}},i=t.exports;Object.defineProperty(i,"__esModule",{value:!0});var n=e(__1cc2ffe09696e83b0a9eb0104e2ace69),s=e(__be6065a4cde19964b120567fdf45523d),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,n.default)("TruncatingProgressiveDataSet",a),i.default=a,t.exports=i.default,t.exports}.call(this),("undefined"==typeof window?global:window).__4d4706be6313f90bcfdc35600e17601c=function(){var e={exports:{}},t=e.exports;return Object.defineProperty(t,"__esModule",{value:!0}),__4cee1c49e56ebf45f2087abbc0c57d21,__2be65c64835353fdfe9052e3a8ec8b34,__0f553622321953d0eeff163460b8ce9b,__bec9afe604c64635a3c7047bb123cd5c,__12f31e70494cde46c604b0e7c0c0e94d,__c5caaaccaec626dab728d897e9697b35,__f57552e97ebc0bc08f4bf4f9ff92c330,__12b73994eef57d6502a41d854b9fc6d4,__4730d9d755e472a421ac607caea0719d,__f7f196ddef64ae7816d003411730ef55,__be6065a4cde19964b120567fdf45523d,__6e88cbb41c2fc23ab460ab14f2892a21,__14739ce06a94698ab8e2244b762fdf5a,__3c4dc6c0a5cad722aeb177737892d1ff,__f6248e99e8df64c089243eb8ea0a88cb,__fcad3e16dd4e51983f1e4f9f22e192ba,__7729f60b57beb6bb95e27e4a7597ac42,__84793e01968aa267bfd7cd4de005b68c,__17552c5272c171ad452bafa218f51d92,__49e6b49357b72be05b0a5224e4f5499d,__ff60ce980f6af8f0fd0b23f66c125494,__dee2652d626b9aae6cf26a38254ec50c,__6475d3c96a816bb0c3a9e1fc98460844,__da0f512002b03f5f55d009d4a2e0f40b,__4681027354bf725a0491b9c1d6d8f1a7,__410660d6302eab05bab0c81623725322,t.default=window.AJS,e.exports=t.default,e.exports}.call(this);
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);