text: (function(t){function e(t,e){return"function"==typeof t?t.call(e):t}function i(t){for(;t=t.parentNode;)if(t==document)return!0;return!1}function r(){var t=s++;return"tipsyuid"+t}function n(e,i){this.$element=t(e),this.options=i,this.enabled=!0,this.fixTitle()}var s=0;n.prototype={show:function(){function i(){o.hoverTooltip=!0}function n(){if("in"!=o.hoverState&&(o.hoverTooltip=!1,"manual"!=o.options.trigger)){var t="hover"==o.options.trigger?"mouseleave.tipsy":"blur.tipsy";o.$element.trigger(t)}}var s=this.getTitle();if(s&&this.enabled){var a=this.tip();a.find(".tipsy-inner")[this.options.html?"html":"text"](s),a[0].className="tipsy",a.remove().css({top:0,left:0,visibility:"hidden",display:"block"}).prependTo(document.body);var o=this;this.options.hoverable&&a.hover(i,n);var l,h=t.extend({},this.$element.offset(),{width:this.$element[0].offsetWidth,height:this.$element[0].offsetHeight}),c=a[0].offsetWidth,u=a[0].offsetHeight,d=e(this.options.gravity,this.$element[0]);switch(d.charAt(0)){case"n":l={top:h.top+h.height+this.options.offset,left:h.left+h.width/2-c/2};break;case"s":l={top:h.top-u-this.options.offset,left:h.left+h.width/2-c/2};break;case"e":l={top:h.top+h.height/2-u/2,left:h.left-c-this.options.offset};break;case"w":l={top:h.top+h.height/2-u/2,left:h.left+h.width+this.options.offset}}if(2==d.length&&(l.left="w"==d.charAt(1)?h.left+h.width/2-15:h.left+h.width/2-c+15),a.css(l).addClass("tipsy-"+d),a.find(".tipsy-arrow")[0].className="tipsy-arrow tipsy-arrow-"+d.charAt(0),this.options.className&&a.addClass(e(this.options.className,this.$element[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 p=r();a.attr("id",p),this.$element.attr("aria-describedby",p)}}},hide:function(){this.options.fade?this.tip().stop().fadeOut(function(){t(this).remove()}):this.tip().remove(),this.options.aria&&this.$element.removeAttr("aria-describedby")},fixTitle:function(){var t=this.$element;(t.attr("title")||"string"!=typeof t.attr("original-title"))&&t.attr("original-title",t.attr("title")||"").removeAttr("title")},getTitle:function(){var t,e=this.$element,i=this.options;this.fixTitle();var t,i=this.options;return"string"==typeof i.title?t=e.attr("title"==i.title?"original-title":i.title):"function"==typeof i.title&&(t=i.title.call(e[0])),t=(""+t).replace(/(^\s*|\s*$)/,""),t||i.fallback},tip:function(){return this.$tip||(this.$tip=t('<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}},t.fn.tipsy=function(e){function i(i){var r=t.data(i,"tipsy");return r||(r=new n(i,t.fn.tipsy.elementOptions(i,e)),t.data(i,"tipsy",r)),r}function r(){var t=i(this);t.hoverState="in",0==e.delayIn?t.show():(t.fixTitle(),setTimeout(function(){"in"==t.hoverState&&t.show()},e.delayIn))}function s(){var t=i(this);t.hoverState="out",0==e.delayOut?t.hide():setTimeout(function(){"out"!=t.hoverState||t.hoverTooltip||t.hide()},e.delayOut)}if(e===!0)return this.data("tipsy");if("string"==typeof e){var a=this.data("tipsy");return a&&a[e](),this}if(e=t.extend({},t.fn.tipsy.defaults,e),e.hoverable&&(e.delayOut=e.delayOut||20),e.live||this.each(function(){i(this)}),"manual"!=e.trigger){var o="hover"==e.trigger?"mouseenter.tipsy":"focus.tipsy",l="hover"==e.trigger?"mouseleave.tipsy":"blur.tipsy";e.live?t(this.context).on(o,this.selector,r).on(l,this.selector,s):this.bind(o,r).bind(l,s)}return this},t.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"},t.fn.tipsy.revalidate=function(){t(".tipsy").each(function(){var e=t.data(this,"tipsy-pointee");e&&i(e)||t(this).remove()})},t.fn.tipsy.elementOptions=function(e,i){return t.metadata?t.extend({},i,t(e).metadata()):i},t.fn.tipsy.autoNS=function(){return t(this).offset().top>t(document).scrollTop()+t(window).height()/2?"s":"n"},t.fn.tipsy.autoWE=function(){return t(this).offset().left>t(document).scrollLeft()+t(window).width()/2?"e":"w"},t.fn.tipsy.autoBounds=function(e,i){return function(){var r={ns:i[0],ew:i.length>1?i[1]:!1},n=t(document).scrollTop()+e,s=t(document).scrollLeft()+e,a=t(this);return n>a.offset().top&&(r.ns="n"),s>a.offset().left&&(r.ew="w"),e>t(window).width()+t(document).scrollLeft()-a.offset().left&&(r.ew="e"),e>t(window).height()+t(document).scrollTop()-a.offset().top&&(r.ns="s"),r.ns+(r.ew?r.ew:"")}}})(jQuery),!function(t){"use strict";t.extend({tablesorter:new function(){function e(t){"undefined"!=typeof console&&console.log!==void 0?console.log(t):alert(t)}function i(t,i){e(t+" ("+((new Date).getTime()-i.getTime())+"ms)")}function r(e,i,r){if(!i)return"";var n=e.config,s=n.textExtraction,a="";return a="simple"===s?n.supportsTextContent?i.textContent:t(i).text():"function"==typeof s?s(i,e,r):"object"==typeof s&&s.hasOwnProperty(r)?s[r](i,e,r):n.supportsTextContent?i.textContent:t(i).text(),t.trim(a)}function n(t,i,n,s){for(var a,o=S.parsers.length,l=!1,h="",c=!0;""===h&&c;)n++,i[n]?(l=i[n].cells[s],h=r(t,l,s),t.config.debug&&e("Checking if value was empty on row "+n+", column: "+s+': "'+h+'"')):c=!1;for(;--o>=0;)if(a=S.parsers[o],a&&"text"!==a.id&&a.is&&a.is(h,t,l))return a;return S.getParserById("text")}function s(t){var i,r,s,a,o,l,h,c=t.config,u=c.$tbodies=c.$table.children("tbody:not(."+c.cssInfoBlock+")"),d="";if(0===u.length)return c.debug?e("*Empty table!* Not building a parser cache"):"";if(i=u[0].rows,i[0])for(r=[],s=i[0].cells.length,a=0;s>a;a++)o=c.$headers.filter(":not([colspan])"),o=o.add(c.$headers.filter('[colspan="1"]')).filter('[data-column="'+a+'"]:last'),l=c.headers[a],h=S.getParserById(S.getData(o,l,"sorter")),c.empties[a]=S.getData(o,l,"empty")||c.emptyTo||(c.emptyToBottom?"bottom":"top"),c.strings[a]=S.getData(o,l,"string")||c.stringTo||"max",h||(h=n(t,i,-1,a)),c.debug&&(d+="column:"+a+"; parser:"+h.id+"; string:"+c.strings[a]+"; empty: "+c.empties[a]+"\n"),r.push(h);c.debug&&e(d),c.parsers=r}function a(n){var s,a,o,l,h,c,u,d,p,f,g=n.tBodies,m=n.config,v=m.parsers,y=[];if(m.cache={},!v)return m.debug?e("*Empty table!* Not building a cache"):"";for(m.debug&&(f=new Date),m.showProcessing&&S.isProcessing(n,!0),u=0;g.length>u;u++)if(m.cache[u]={row:[],normalized:[]},!t(g[u]).hasClass(m.cssInfoBlock)){for(s=g[u]&&g[u].rows.length||0,a=g[u].rows[0]&&g[u].rows[0].cells.length||0,h=0;s>h;++h)if(d=t(g[u].rows[h]),p=[],d.hasClass(m.cssChildRow))m.cache[u].row[m.cache[u].row.length-1]=m.cache[u].row[m.cache[u].row.length-1].add(d);else{for(m.cache[u].row.push(d),c=0;a>c;++c)o=r(n,d[0].cells[c],c),l=v[c].format(o,n,d[0].cells[c],c),p.push(l),"numeric"===(v[c].type||"").toLowerCase()&&(y[c]=Math.max(Math.abs(l)||0,y[c]||0));p.push(m.cache[u].normalized.length),m.cache[u].normalized.push(p)}m.cache[u].colMax=y}m.showProcessing&&S.isProcessing(n),m.debug&&i("Building cache for "+s+" rows",f)}function o(e,r){var n,s,a,o,l,h,c,u,d,p,f,g,m=e.config,v=e.tBodies,y=[],b=m.cache;if(b[0]){for(m.debug&&(g=new Date),d=0;v.length>d;d++)if(l=t(v[d]),l.length&&!l.hasClass(m.cssInfoBlock)){for(h=S.processTbody(e,l,!0),n=b[d].row,s=b[d].normalized,a=s.length,o=a?s[0].length-1:0,c=0;a>c;c++)if(f=s[c][o],y.push(n[f]),!m.appender||!m.removeRows)for(p=n[f].length,u=0;p>u;u++)h.append(n[f][u]);S.processTbody(e,h,!1)}m.appender&&m.appender(e,y),m.debug&&i("Rebuilt table",g),r||S.applyWidget(e),t(e).trigger("sortEnd",e)}}function l(e){var i,r,n,s,a,o,l,h,c,u,d,p,f=[],g={},m=0,v=t(e).find("thead:eq(0), tfoot").children("tr");for(i=0;v.length>i;i++)for(o=v[i].cells,r=0;o.length>r;r++){for(a=o[r],l=a.parentNode.rowIndex,h=l+"-"+a.cellIndex,c=a.rowSpan||1,u=a.colSpan||1,f[l]===void 0&&(f[l]=[]),n=0;f[l].length+1>n;n++)if(f[l][n]===void 0){d=n;break}for(g[h]=d,m=Math.max(d,m),t(a).attr({"data-column":d}),n=l;l+c>n;n++)for(f[n]===void 0&&(f[n]=[]),p=f[n],s=d;d+u>s;s++)p[s]="x"}return e.config.columns=m,g}function h(t){return/^d/i.test(t)||1===t}function c(r){var n,s,a,o,c,u,p,f=l(r),g=r.config;g.headerList=[],g.headerContent=[],g.debug&&(p=new Date),o=g.cssIcon?'<i class="'+g.cssIcon+'"></i>':"",g.$headers=t(r).find(g.selectorHeaders).each(function(e){s=t(this),n=g.headers[e],g.headerContent[e]=this.innerHTML,c=g.headerTemplate.replace(/\{content\}/g,this.innerHTML).replace(/\{icon\}/g,o),g.onRenderTemplate&&(a=g.onRenderTemplate.apply(s,[e,c]),a&&"string"==typeof a&&(c=a)),this.innerHTML='<div class="tablesorter-header-inner">'+c+"</div>",g.onRenderHeader&&g.onRenderHeader.apply(s,[e]),this.column=f[this.parentNode.rowIndex+"-"+this.cellIndex],this.order=h(S.getData(s,n,"sortInitialOrder")||g.sortInitialOrder)?[1,0,2]:[0,1,2],this.count=-1,this.lockedOrder=!1,u=S.getData(s,n,"lockedOrder")||!1,u!==void 0&&u!==!1&&(this.order=this.lockedOrder=h(u)?[1,1,1]:[0,0,0]),s.addClass(g.cssHeader),g.headerList[e]=this,s.parent().addClass(g.cssHeaderRow),s.attr("tabindex",0)}),d(r),g.debug&&(i("Built headers:",p),e(g.$headers))}function u(t,e,i){var r=t.config;r.$table.find(r.selectorRemove).remove(),s(t),a(t),w(r.$table,e,i)}function d(e){var i,r=e.config;r.$headers.each(function(e,n){i="false"===S.getData(n,r.headers[e],"sorter"),n.sortDisabled=i,t(n)[i?"addClass":"removeClass"]("sorter-false")})}function p(e){var i,r,n,s,a=e.config,o=a.sortList,l=[a.cssAsc,a.cssDesc],h=t(e).find("tfoot tr").children().removeClass(l.join(" "));for(a.$headers.removeClass(l.join(" ")),s=o.length,r=0;s>r;r++)if(2!==o[r][1]&&(i=a.$headers.not(".sorter-false").filter('[data-column="'+o[r][0]+'"]'+(1===s?":last":"")),i.length))for(n=0;i.length>n;n++)i[n].sortDisabled||(i.eq(n).addClass(l[o[r][1]]),h.length&&h.filter('[data-column="'+o[r][0]+'"]').eq(n).addClass(l[o[r][1]]))}function f(e){if(e.config.widthFixed&&0===t(e).find("colgroup").length){var i=t("<colgroup>"),r=t(e).width();t(e.tBodies[0]).find("tr:first").children("td").each(function(){i.append(t("<col>").css("width",parseInt(1e3*(t(this).width()/r),10)/10+"%"))}),t(e).prepend(i)}}function g(e,i){var r,n,s,a=e.config,o=i||a.sortList;a.sortList=[],t.each(o,function(e,i){r=[parseInt(i[0],10),parseInt(i[1],10)],s=a.headerList[r[0]],s&&(a.sortList.push(r),n=t.inArray(r[1],s.order),s.count=n>=0?n:r[1]%(a.sortReset?3:2))})}function m(t,e){return t&&t[e]?t[e].type||"":""}function v(e,i,r){var n,s,a,l,h,c=e.config,u=!r[c.sortMultiSortKey],d=t(e);if(d.trigger("sortStart",e),i.count=r[c.sortResetKey]?2:(i.count+1)%(c.sortReset?3:2),c.sortRestart&&(s=i,c.$headers.each(function(){this===s||!u&&t(this).is("."+c.cssDesc+",."+c.cssAsc)||(this.count=-1)})),s=i.column,u){if(c.sortList=[],null!==c.sortForce)for(n=c.sortForce,a=0;n.length>a;a++)n[a][0]!==s&&c.sortList.push(n[a]);if(l=i.order[i.count],2>l&&(c.sortList.push([s,l]),i.colSpan>1))for(a=1;i.colSpan>a;a++)c.sortList.push([s+a,l])}else if(c.sortAppend&&c.sortList.length>1&&S.isValueInArray(c.sortAppend[0][0],c.sortList)&&c.sortList.pop(),S.isValueInArray(s,c.sortList))for(a=0;c.sortList.length>a;a++)h=c.sortList[a],l=c.headerList[h[0]],h[0]===s&&(h[1]=l.order[l.count],2===h[1]&&(c.sortList.splice(a,1),l.count=-1));else if(l=i.order[i.count],2>l&&(c.sortList.push([s,l]),i.colSpan>1))for(a=1;i.colSpan>a;a++)c.sortList.push([s+a,l]);if(null!==c.sortAppend)for(n=c.sortAppend,a=0;n.length>a;a++)n[a][0]!==s&&c.sortList.push(n[a]);d.trigger("sortBegin",e),setTimeout(function(){p(e),y(e),o(e)},1)}function y(e){var r,n,s,a,o,l,h,c,u,d,p=0,f=e.config,g=f.sortList,v=g.length,y=e.tBodies.length;if(!f.serverSideSorting&&f.cache[0]){for(f.debug&&(r=new Date),s=0;y>s;s++)o=f.cache[s].colMax,l=f.cache[s].normalized,h=l.length,d=l&&l[0]?l[0].length-1:0,l.sort(function(i,r){for(n=0;v>n;n++){a=g[n][0],u=g[n][1],c=/n/i.test(m(f.parsers,a))?"Numeric":"Text",c+=0===u?"":"Desc",/Numeric/.test(c)&&f.strings[a]&&(p="boolean"==typeof f.string[f.strings[a]]?(0===u?1:-1)*(f.string[f.strings[a]]?-1:1):f.strings[a]?f.string[f.strings[a]]||0:0);var s=t.tablesorter["sort"+c](e,i[a],r[a],a,o[a],p);if(s)return s}return i[d]-r[d]});f.debug&&i("Sorting on "+(""+g)+" and dir "+u+" time",r)}}function b(t,e){t.trigger("updateComplete"),"function"==typeof e&&e(t[0])}function w(t,e,i){e===!1||t[0].isProcessing?b(t,i):t.trigger("sorton",[t[0].config.sortList,function(){b(t,i)}])}function x(e){var i,n,l=e.config,h=l.$table;l.$headers.find(l.selectorSort).add(l.$headers.filter(l.selectorSort)).unbind("mousedown.tablesorter mouseup.tablesorter sort.tablesorter keypress.tablesorter").bind("mousedown.tablesorter mouseup.tablesorter sort.tablesorter keypress.tablesorter",function(i,r){if(1!==(i.which||i.button)&&!/sort|keypress/.test(i.type)||"keypress"===i.type&&13!==i.which)return!1;if("mouseup"===i.type&&r!==!0&&(new Date).getTime()-n>250)return!1;if("mousedown"===i.type)return n=(new Date).getTime(),"INPUT"===i.target.tagName?"":!l.cancelSelection;l.delayInit&&!l.cache&&a(e);var s=/TH|TD/.test(this.tagName)?t(this):t(this).parents("th, td").filter(":first"),o=s[0];o.sortDisabled||v(e,o,i)}),l.cancelSelection&&l.$headers.attr("unselectable","on").bind("selectstart",!1).css({"user-select":"none",MozUserSelect:"none"}),h.unbind("sortReset update updateRows updateCell updateAll addRows sorton appendCache applyWidgetId applyWidgets refreshWidgets destroy mouseup mouseleave ".split(" ").join(".tablesorter ")).bind("sortReset.tablesorter",function(t){t.stopPropagation(),l.sortList=[],p(e),y(e),o(e)}).bind("updateAll.tablesorter",function(t,i,r){t.stopPropagation(),S.refreshWidgets(e,!0,!0),S.restoreHeaders(e),c(e),x(e),u(e,i,r)}).bind("update.tablesorter updateRows.tablesorter",function(t,i,r){t.stopPropagation(),d(e),u(e,i,r)}).bind("updateCell.tablesorter",function(i,n,s,a){i.stopPropagation(),h.find(l.selectorRemove).remove();var o,c,u,d=h.find("tbody"),p=d.index(t(n).parents("tbody").filter(":first")),f=t(n).parents("tr").filter(":first");n=t(n)[0],d.length&&p>=0&&(c=d.eq(p).find("tr").index(f),u=n.cellIndex,o=l.cache[p].normalized[c].length-1,l.cache[p].row[e.config.cache[p].normalized[c][o]]=f,l.cache[p].normalized[c][u]=l.parsers[u].format(r(e,n,u),e,n,u),w(h,s,a))}).bind("addRows.tablesorter",function(t,n,a,o){t.stopPropagation();var c,u=n.filter("tr").length,d=[],p=n[0].cells.length,f=h.find("tbody").index(n.parents("tbody").filter(":first"));for(l.parsers||s(e),c=0;u>c;c++){for(i=0;p>i;i++)d[i]=l.parsers[i].format(r(e,n[c].cells[i],i),e,n[c].cells[i],i);d.push(l.cache[f].row.length),l.cache[f].row.push([n[c]]),l.cache[f].normalized.push(d),d=[]}w(h,a,o)}).bind("sorton.tablesorter",function(t,i,r,n){t.stopPropagation(),h.trigger("sortStart",this),g(e,i),p(e),h.trigger("sortBegin",this),y(e),o(e,n),"function"==typeof r&&r(e)}).bind("appendCache.tablesorter",function(t,i,r){t.stopPropagation(),o(e,r),"function"==typeof i&&i(e)}).bind("applyWidgetId.tablesorter",function(t,i){t.stopPropagation(),S.getWidgetById(i).format(e,l,l.widgetOptions)}).bind("applyWidgets.tablesorter",function(t,i){t.stopPropagation(),S.applyWidget(e,i)}).bind("refreshWidgets.tablesorter",function(t,i,r){t.stopPropagation(),S.refreshWidgets(e,i,r)}).bind("destroy.tablesorter",function(t,i,r){t.stopPropagation(),S.destroy(e,i,r)})}var S=this;S.version="2.10.8",S.parsers=[],S.widgets=[],S.defaults={theme:"default",widthFixed:!1,showProcessing:!1,headerTemplate:"{content}",onRenderTemplate:null,onRenderHeader:null,cancelSelection:!0,dateFormat:"mmddyyyy",sortMultiSortKey:"shiftKey",sortResetKey:"ctrlKey",usNumberFormat:!0,delayInit:!1,serverSideSorting:!1,headers:{},ignoreCase:!0,sortForce:null,sortList:[],sortAppend:null,sortInitialOrder:"asc",sortLocaleCompare:!1,sortReset:!1,sortRestart:!1,emptyTo:"bottom",stringTo:"max",textExtraction:"simple",textSorter:null,widgets:[],widgetOptions:{zebra:["even","odd"]},initWidgets:!0,initialized:null,tableClass:"tablesorter",cssAsc:"tablesorter-headerAsc",cssChildRow:"tablesorter-childRow",cssDesc:"tablesorter-headerDesc",cssHeader:"tablesorter-header",cssHeaderRow:"tablesorter-headerRow",cssIcon:"tablesorter-icon",cssInfoBlock:"tablesorter-infoOnly",cssProcessing:"tablesorter-processing",selectorHeaders:"> thead th, > thead td",selectorSort:"th, td",selectorRemove:".remove-me",debug:!1,headerList:[],empties:{},strings:{},parsers:[]},S.log=e,S.benchmark=i,S.construct=function(i){return this.each(function(){if(!this.tHead||0===this.tBodies.length||this.hasInitialized===!0)return this.config&&this.config.debug?e("stopping initialization! No thead, tbody or tablesorter has already been initialized"):"";var r,n=t(this),o=this,l="",h=t.metadata;o.hasInitialized=!1,o.isProcessing=!0,o.config={},r=t.extend(!0,o.config,S.defaults,i),t.data(o,"tablesorter",r),r.debug&&t.data(o,"startoveralltimer",new Date),r.supportsTextContent="x"===t("<span>x</span>")[0].textContent,r.supportsDataObject=parseFloat(t.fn.jquery)>=1.4,r.string={max:1,min:-1,"max+":1,"max-":-1,zero:0,none:0,"null":0,top:!0,bottom:!1},/tablesorter\-/.test(n.attr("class"))||(l=""!==r.theme?" tablesorter-"+r.theme:""),r.$table=n.addClass(r.tableClass+l),r.$tbodies=n.children("tbody:not(."+r.cssInfoBlock+")"),c(o),f(o),s(o),r.delayInit||a(o),x(o),r.supportsDataObject&&n.data().sortlist!==void 0?r.sortList=n.data().sortlist:h&&n.metadata()&&n.metadata().sortlist&&(r.sortList=n.metadata().sortlist),S.applyWidget(o,!0),r.sortList.length>0?n.trigger("sorton",[r.sortList,{},!r.initWidgets]):r.initWidgets&&S.applyWidget(o),r.showProcessing&&n.unbind("sortBegin.tablesorter sortEnd.tablesorter").bind("sortBegin.tablesorter sortEnd.tablesorter",function(t){S.isProcessing(o,"sortBegin"===t.type)}),o.hasInitialized=!0,o.isProcessing=!1,r.debug&&S.benchmark("Overall initialization time",t.data(o,"startoveralltimer")),n.trigger("tablesorter-initialized",o),"function"==typeof r.initialized&&r.initialized(o)})},S.isProcessing=function(e,i,r){e=t(e);var n=e[0].config,s=r||e.find("."+n.cssHeader);i?(n.sortList.length>0&&(s=s.filter(function(){return this.sortDisabled?!1:S.isValueInArray(parseFloat(t(this).attr("data-column")),n.sortList)})),s.addClass(n.cssProcessing)):s.removeClass(n.cssProcessing)},S.processTbody=function(e,i,r){var n;return r?(e.isProcessing=!0,i.before('<span class="tablesorter-savemyplace"/>'),n=t.fn.detach?i.detach():i.remove()):(n=t(e).find("span.tablesorter-savemyplace"),i.insertAfter(n),n.remove(),e.isProcessing=!1,void 0)},S.clearTableBody=function(e){t(e)[0].config.$tbodies.empty()},S.restoreHeaders=function(e){var i=e.config;i.$table.find(i.selectorHeaders).each(function(e){t(this).find(".tablesorter-header-inner").length&&t(this).html(i.headerContent[e])})},S.destroy=function(e,i,r){if(e=t(e)[0],e.hasInitialized){S.refreshWidgets(e,!0,!0);var n=t(e),s=e.config,a=n.find("thead:first"),o=a.find("tr."+s.cssHeaderRow).removeClass(s.cssHeaderRow),l=n.find("tfoot:first > tr").children("th, td");a.find("tr").not(o).remove(),n.removeData("tablesorter").unbind("sortReset update updateAll updateRows updateCell addRows sorton appendCache applyWidgetId applyWidgets refreshWidgets destroy mouseup mouseleave keypress sortBegin sortEnd ".split(" ").join(".tablesorter ")),s.$headers.add(l).removeClass(s.cssHeader+" "+s.cssAsc+" "+s.cssDesc).removeAttr("data-column"),o.find(s.selectorSort).unbind("mousedown.tablesorter mouseup.tablesorter keypress.tablesorter"),S.restoreHeaders(e),i!==!1&&n.removeClass(s.tableClass+" tablesorter-"+s.theme),e.hasInitialized=!1,"function"==typeof r&&r(e)}},S.regex=[/(^([+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?)?$|^0x[0-9a-f]+$|\d+)/gi,/(^([\w ]+,?[\w ]+)?[\w ]+,?[\w ]+\d+:\d+(:\d+)?[\w ]?|^\d{1,4}[\/\-]\d{1,4}[\/\-]\d{1,4}|^\w+, \w+ \d+, \d{4})/,/^0x[0-9a-f]+$/i],S.sortText=function(t,e,i,r){if(e===i)return 0;var n,s,a,o,l,h,c,u,d=t.config,p=d.string[d.empties[r]||d.emptyTo],f=S.regex;if(""===e&&0!==p)return"boolean"==typeof p?p?-1:1:-p||-1;if(""===i&&0!==p)return"boolean"==typeof p?p?1:-1:p||1;if("function"==typeof d.textSorter)return d.textSorter(e,i,t,r);if(n=e.replace(f[0],"\\0$1\\0").replace(/\\0$/,"").replace(/^\\0/,"").split("\\0"),a=i.replace(f[0],"\\0$1\\0").replace(/\\0$/,"").replace(/^\\0/,"").split("\\0"),s=parseInt(e.match(f[2]),16)||1!==n.length&&e.match(f[1])&&Date.parse(e),o=parseInt(i.match(f[2]),16)||s&&i.match(f[1])&&Date.parse(i)||null){if(o>s)return-1;if(s>o)return 1}for(u=Math.max(n.length,a.length),c=0;u>c;c++){if(l=isNaN(n[c])?n[c]||0:parseFloat(n[c])||0,h=isNaN(a[c])?a[c]||0:parseFloat(a[c])||0,isNaN(l)!==isNaN(h))return isNaN(l)?1:-1;if(typeof l!=typeof h&&(l+="",h+=""),h>l)return-1;if(l>h)return 1}return 0},S.sortTextDesc=function(t,e,i,r){if(e===i)return 0;var n=t.config,s=n.string[n.empties[r]||n.emptyTo];return""===e&&0!==s?"boolean"==typeof s?s?-1:1:s||1:""===i&&0!==s?"boolean"==typeof s?s?1:-1:-s||-1:"function"==typeof n.textSorter?n.textSorter(i,e,t,r):S.sortText(t,i,e)},S.getTextValue=function(t,e,i){if(e){var r,n=t?t.length:0,s=e+i;for(r=0;n>r;r++)s+=t.charCodeAt(r);return i*s}return 0},S.sortNumeric=function(t,e,i,r,n,s){if(e===i)return 0;var a=t.config,o=a.string[a.empties[r]||a.emptyTo];return""===e&&0!==o?"boolean"==typeof o?o?-1:1:-o||-1:""===i&&0!==o?"boolean"==typeof o?o?1:-1:o||1:(isNaN(e)&&(e=S.getTextValue(e,n,s)),isNaN(i)&&(i=S.getTextValue(i,n,s)),e-i)},S.sortNumericDesc=function(t,e,i,r,n,s){if(e===i)return 0;var a=t.config,o=a.string[a.empties[r]||a.emptyTo];return""===e&&0!==o?"boolean"==typeof o?o?-1:1:o||1:""===i&&0!==o?"boolean"==typeof o?o?1:-1:-o||-1:(isNaN(e)&&(e=S.getTextValue(e,n,s)),isNaN(i)&&(i=S.getTextValue(i,n,s)),i-e)},S.characterEquivalents={a:"\u00e1\u00e0\u00e2\u00e3\u00e4\u0105\u00e5",A:"\u00c1\u00c0\u00c2\u00c3\u00c4\u0104\u00c5",c:"\u00e7\u0107\u010d",C:"\u00c7\u0106\u010c",e:"\u00e9\u00e8\u00ea\u00eb\u011b\u0119",E:"\u00c9\u00c8\u00ca\u00cb\u011a\u0118",i:"\u00ed\u00ec\u0130\u00ee\u00ef\u0131",I:"\u00cd\u00cc\u0130\u00ce\u00cf",o:"\u00f3\u00f2\u00f4\u00f5\u00f6",O:"\u00d3\u00d2\u00d4\u00d5\u00d6",ss:"\u00df",SS:"\u1e9e",u:"\u00fa\u00f9\u00fb\u00fc\u016f",U:"\u00da\u00d9\u00db\u00dc\u016e"},S.replaceAccents=function(t){var e,i="[",r=S.characterEquivalents;if(!S.characterRegex){S.characterRegexArray={};for(e in r)"string"==typeof e&&(i+=r[e],S.characterRegexArray[e]=RegExp("["+r[e]+"]","g"));S.characterRegex=RegExp(i+"]")}if(S.characterRegex.test(t))for(e in r)"string"==typeof e&&(t=t.replace(S.characterRegexArray[e],e));return t},S.isValueInArray=function(t,e){var i,r=e.length;for(i=0;r>i;i++)if(e[i][0]===t)return!0;return!1},S.addParser=function(t){var e,i=S.parsers.length,r=!0;for(e=0;i>e;e++)S.parsers[e].id.toLowerCase()===t.id.toLowerCase()&&(r=!1);r&&S.parsers.push(t)},S.getParserById=function(t){var e,i=S.parsers.length;for(e=0;i>e;e++)if(S.parsers[e].id.toLowerCase()===(""+t).toLowerCase())return S.parsers[e];return!1},S.addWidget=function(t){S.widgets.push(t)},S.getWidgetById=function(t){var e,i,r=S.widgets.length;for(e=0;r>e;e++)if(i=S.widgets[e],i&&i.hasOwnProperty("id")&&i.id.toLowerCase()===t.toLowerCase())return i},S.applyWidget=function(e,r){e=t(e)[0];var n,s,a,o=e.config,l=o.widgetOptions,h=[];o.debug&&(n=new Date),o.widgets.length&&(o.widgets=t.grep(o.widgets,function(e,i){return t.inArray(e,o.widgets)===i}),t.each(o.widgets||[],function(t,e){a=S.getWidgetById(e),a&&a.id&&(a.priority||(a.priority=10),h[t]=a)}),h.sort(function(t,e){return t.priority<e.priority?-1:t.priority===e.priority?0:1}),t.each(h,function(i,n){n&&(r?(n.hasOwnProperty("options")&&(l=e.config.widgetOptions=t.extend(!0,{},n.options,l)),n.hasOwnProperty("init")&&n.init(e,n,o,l)):!r&&n.hasOwnProperty("format")&&n.format(e,o,l,!1))})),o.debug&&(s=o.widgets.length,i("Completed "+(r===!0?"initializing ":"applying ")+s+" widget"+(1!==s?"s":""),n))},S.refreshWidgets=function(i,r,n){i=t(i)[0];var s,a=i.config,o=a.widgets,l=S.widgets,h=l.length;for(s=0;h>s;s++)l[s]&&l[s].id&&(r||0>t.inArray(l[s].id,o))&&(a.debug&&e("Refeshing widgets: Removing "+l[s].id),l[s].hasOwnProperty("remove")&&l[s].remove(i,a,a.widgetOptions));n!==!0&&S.applyWidget(i,r)},S.getData=function(e,i,r){var n,s,a="",o=t(e);return o.length?(n=t.metadata?o.metadata():!1,s=" "+(o.attr("class")||""),o.data(r)!==void 0||o.data(r.toLowerCase())!==void 0?a+=o.data(r)||o.data(r.toLowerCase()):n&&n[r]!==void 0?a+=n[r]:i&&i[r]!==void 0?a+=i[r]:" "!==s&&s.match(" "+r+"-")&&(a=s.match(RegExp("\\s"+r+"-([\\w-]+)"))[1]||""),t.trim(a)):""},S.formatFloat=function(e,i){if("string"!=typeof e||""===e)return e;var r,n=i&&i.config?i.config.usNumberFormat!==!1:i!==void 0?i:!0;return e=n?e.replace(/,/g,""):e.replace(/[\s|\.]/g,"").replace(/,/g,"."),/^\s*\([.\d]+\)/.test(e)&&(e=e.replace(/^\s*\(/,"-").replace(/\)/,"")),r=parseFloat(e),isNaN(r)?t.trim(e):r},S.isDigit=function(t){return isNaN(t)?/^[\-+(]?\d+[)]?$/.test((""+t).replace(/[,.'"\s]/g,"")):!0}}});var e=t.tablesorter;t.fn.extend({tablesorter:e.construct}),e.addParser({id:"text",is:function(){return!0},format:function(i,r){var n=r.config;return i&&(i=t.trim(n.ignoreCase?i.toLocaleLowerCase():i),i=n.sortLocaleCompare?e.replaceAccents(i):i),i},type:"text"}),e.addParser({id:"digit",is:function(t){return e.isDigit(t)},format:function(i,r){var n=e.formatFloat((i||"").replace(/[^\w,. \-()]/g,""),r);return i&&"number"==typeof n?n:i?t.trim(i&&r.config.ignoreCase?i.toLocaleLowerCase():i):i},type:"numeric"}),e.addParser({id:"currency",is:function(t){return/^\(?\d+[\u00a3$\u20ac\u00a4\u00a5\u00a2?.]|[\u00a3$\u20ac\u00a4\u00a5\u00a2?.]\d+\)?$/.test((t||"").replace(/[,. ]/g,""))},format:function(i,r){var n=e.formatFloat((i||"").replace(/[^\w,. \-()]/g,""),r);return i&&"number"==typeof n?n:i?t.trim(i&&r.config.ignoreCase?i.toLocaleLowerCase():i):i},type:"numeric"}),e.addParser({id:"ipAddress",is:function(t){return/^\d{1,3}[\.]\d{1,3}[\.]\d{1,3}[\.]\d{1,3}$/.test(t)},format:function(t,i){var r,n=t?t.split("."):"",s="",a=n.length;for(r=0;a>r;r++)s+=("00"+n[r]).slice(-3);return t?e.formatFloat(s,i):t},type:"numeric"}),e.addParser({id:"url",is:function(t){return/^(https?|ftp|file):\/\//.test(t)},format:function(e){return e?t.trim(e.replace(/(https?|ftp|file):\/\//,"")):e},type:"text"}),e.addParser({id:"isoDate",is:function(t){return/^\d{4}[\/\-]\d{1,2}[\/\-]\d{1,2}/.test(t)},format:function(t,i){return t?e.formatFloat(""!==t?new Date(t.replace(/-/g,"/")).getTime()||"":"",i):t},type:"numeric"}),e.addParser({id:"percent",is:function(t){return/(\d\s*?%|%\s*?\d)/.test(t)&&15>t.length},format:function(t,i){return t?e.formatFloat(t.replace(/%/g,""),i):t},type:"numeric"}),e.addParser({id:"usLongDate",is:function(t){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(t)||/^\d{1,2}\s+[A-Z]{3,10}\s+\d{4}/i.test(t)},format:function(t,i){return t?e.formatFloat(new Date(t.replace(/(\S)([AP]M)$/i,"$1 $2")).getTime()||"",i):t},type:"numeric"}),e.addParser({id:"shortDate",is:function(t){return/(^\d{1,2}[\/\s]\d{1,2}[\/\s]\d{4})|(^\d{4}[\/\s]\d{1,2}[\/\s]\d{1,2})/.test((t||"").replace(/\s+/g," ").replace(/[\-.,]/g,"/"))},format:function(t,i,r,n){if(t){var s=i.config,a=s.headerList[n],o=a.dateFormat||e.getData(a,s.headers[n],"dateFormat")||s.dateFormat;t=t.replace(/\s+/g," ").replace(/[\-.,]/g,"/"),"mmddyyyy"===o?t=t.replace(/(\d{1,2})[\/\s](\d{1,2})[\/\s](\d{4})/,"$3/$1/$2"):"ddmmyyyy"===o?t=t.replace(/(\d{1,2})[\/\s](\d{1,2})[\/\s](\d{4})/,"$3/$2/$1"):"yyyymmdd"===o&&(t=t.replace(/(\d{4})[\/\s](\d{1,2})[\/\s](\d{1,2})/,"$1/$2/$3"))}return t?e.formatFloat(new Date(t).getTime()||"",i):t},type:"numeric"}),e.addParser({id:"time",is:function(t){return/^(([0-2]?\d:[0-5]\d)|([0-1]?\d:[0-5]\d\s?([AP]M)))$/i.test(t)},format:function(t,i){return t?e.formatFloat(new Date("2000/01/01 "+t.replace(/(\S)([AP]M)$/i,"$1 $2")).getTime()||"",i):t},type:"numeric"}),e.addParser({id:"metadata",is:function(){return!1},format:function(e,i,r){var n=i.config,s=n.parserMetadataName?n.parserMetadataName:"sortValue";return t(r).metadata()[s]},type:"numeric"}),e.addWidget({id:"zebra",priority:90,format:function(i,r,n){var s,a,o,l,h,c,u,d,p=RegExp(r.cssChildRow,"i"),f=r.$tbodies;for(r.debug&&(c=new Date),u=0;f.length>u;u++)s=f.eq(u),d=s.children("tr").length,d>1&&(l=0,a=s.children("tr:visible"),a.each(function(){o=t(this),p.test(this.className)||l++,h=0===l%2,o.removeClass(n.zebra[h?1:0]).addClass(n.zebra[h?0:1])}));r.debug&&e.benchmark("Applying Zebra widget",c)},remove:function(e,i,r){var n,s,a=i.$tbodies,o=(r.zebra||["even","odd"]).join(" ");for(n=0;a.length>n;n++)s=t.tablesorter.processTbody(e,a.eq(n),!0),s.children().removeClass(o),t.tablesorter.processTbody(e,s,!1)}})}(jQuery),!function(t,e,i){function r(t,i){var r,n=e.createElement(t||"div");for(r in i)n[r]=i[r];return n}function n(t){for(var e=1,i=arguments.length;i>e;e++)t.appendChild(arguments[e]);return t}function s(t,e,i,r){var n=["opacity",e,~~(100*t),i,r].join("-"),s=.01+100*(i/r),a=Math.max(1-(1-t)/e*(100-s),t),o=c.substring(0,c.indexOf("Animation")).toLowerCase(),l=o&&"-"+o+"-"||"";return d[n]||(p.insertRule("@"+l+"keyframes "+n+"{"+"0%{opacity:"+a+"}"+s+"%{opacity:"+t+"}"+(s+.01)+"%{opacity:1}"+(s+e)%100+"%{opacity:"+t+"}"+"100%{opacity:"+a+"}"+"}",p.cssRules.length),d[n]=1),n}function a(t,e){var r,n,s=t.style;if(s[e]!==i)return e;for(e=e.charAt(0).toUpperCase()+e.slice(1),n=0;u.length>n;n++)if(r=u[n]+e,s[r]!==i)return r}function o(t,e){for(var i in e)t.style[a(t,i)||i]=e[i];return t}function l(t){for(var e=1;arguments.length>e;e++){var r=arguments[e];for(var n in r)t[n]===i&&(t[n]=r[n])}return t}function h(t){for(var e={x:t.offsetLeft,y:t.offsetTop};t=t.offsetParent;)e.x+=t.offsetLeft,e.y+=t.offsetTop;return e}var c,u=["webkit","Moz","ms","O"],d={},p=function(){var t=r("style",{type:"text/css"});return n(e.getElementsByTagName("head")[0],t),t.sheet||t.styleSheet}(),f={lines:12,length:7,width:5,radius:10,rotate:0,corners:1,color:"#000",speed:1,trail:100,opacity:.25,fps:20,zIndex:2e9,className:"spinner",top:"auto",left:"auto",position:"relative"},g=function g(t){return this.spin?(this.opts=l(t||{},g.defaults,f),i):new g(t)};g.defaults={},l(g.prototype,{spin:function(t){this.stop();var e,i,n=this,s=n.opts,a=n.el=o(r(0,{className:s.className}),{position:s.position,width:0,zIndex:s.zIndex}),l=s.radius+s.length+s.width;if(t&&(t.insertBefore(a,t.firstChild||null),i=h(t),e=h(a),o(a,{left:("auto"==s.left?i.x-e.x+(t.offsetWidth>>1):parseInt(s.left,10)+l)+"px",top:("auto"==s.top?i.y-e.y+(t.offsetHeight>>1):parseInt(s.top,10)+l)+"px"})),a.setAttribute("aria-role","progressbar"),n.lines(a,n.opts),!c){var u=0,d=s.fps,p=d/s.speed,f=(1-s.opacity)/(p*s.trail/100),g=p/s.lines;(function m(){u++;for(var t=s.lines;t;t--){var e=Math.max(1-(u+t*g)%p*f,s.opacity);n.opacity(a,s.lines-t,e,s)}n.timeout=n.el&&setTimeout(m,~~(1e3/d))})()}return n},stop:function(){var t=this.el;return t&&(clearTimeout(this.timeout),t.parentNode&&t.parentNode.removeChild(t),this.el=i),this},lines:function(t,e){function i(t,i){return o(r(),{position:"absolute",width:e.length+e.width+"px",height:e.width+"px",background:t,boxShadow:i,transformOrigin:"left",transform:"rotate("+~~(360/e.lines*l+e.rotate)+"deg) translate("+e.radius+"px"+",0)",borderRadius:(e.corners*e.width>>1)+"px"})}for(var a,l=0;e.lines>l;l++)a=o(r(),{position:"absolute",top:1+~(e.width/2)+"px",transform:e.hwaccel?"translate3d(0,0,0)":"",opacity:e.opacity,animation:c&&s(e.opacity,e.trail,l,e.lines)+" "+1/e.speed+"s linear infinite"}),e.shadow&&n(a,o(i("#000","0 0 4px #000"),{top:"2px"})),n(t,n(a,i(e.color,"0 0 1px rgba(0,0,0,.1)")));return t},opacity:function(t,e,i){t.childNodes.length>e&&(t.childNodes[e].style.opacity=i)}}),function(){function t(t,e){return r("<"+t+' xmlns="urn:schemas-microsoft.com:vml" class="spin-vml">',e)}var e=o(r("group"),{behavior:"url(#default#VML)"});!a(e,"transform")&&e.adj?(p.addRule(".spin-vml","behavior:url(#default#VML)"),g.prototype.lines=function(e,i){function r(){return o(t("group",{coordsize:h+" "+h,coordorigin:-l+" "+-l}),{width:h,height:h})
  }function s(e,s,a){n(u,n(o(r(),{rotation:360/i.lines*e+"deg",left:~~s}),n(o(t("roundrect",{arcsize:i.corners}),{width:l,height:i.width,left:i.radius,top:-i.width>>1,filter:a}),t("fill",{color:i.color,opacity:i.opacity}),t("stroke",{opacity:0}))))}var a,l=i.length+i.width,h=2*l,c=2*-(i.width+i.length)+"px",u=o(r(),{position:"absolute",top:c,left:c});if(i.shadow)for(a=1;i.lines>=a;a++)s(a,-2,"progid:DXImageTransform.Microsoft.Blur(pixelradius=2,makeshadow=1,shadowopacity=.3)");for(a=1;i.lines>=a;a++)s(a);return n(e,u)},g.prototype.opacity=function(t,e,i,r){var n=t.firstChild;r=r.shadow&&r.lines||0,n&&n.childNodes.length>e+r&&(n=n.childNodes[e+r],n=n&&n.firstChild,n=n&&n.firstChild,n&&(n.opacity=i))}):c=a(e,"animation")}(),"function"==typeof define&&define.amd?define(function(){return g}):t.Spinner=g}(window,document),function(t){t.fn.spin=function(e,i){var r,n;if("string"==typeof e){if(!e in t.fn.spin.presets)throw Error("Preset '"+e+"' isn't defined");r=t.fn.spin.presets[e],n=i||{}}else{if(i)throw Error("Invalid arguments. Accepted arguments:\n$.spin([String preset[, Object options]]),\n$.spin(Object options),\n$.spin(Boolean shouldSpin)");r=t.fn.spin.presets.small,n=t.isPlainObject(e)?e:{}}if(window.Spinner)return this.each(function(){var i=t(this),s=i.data();s.spinner&&(s.spinner.stop(),delete s.spinner),e!==!1&&(n=t.extend({color:i.css("color")},r,n),s.spinner=new Spinner(n).spin(this))});throw"Spinner class not available."},t.fn.spin.presets={small:{lines:12,length:3,width:2,radius:3,trail:60,speed:1.5},medium:{lines:12,length:5,width:3,radius:8,trail:60,speed:1.5},large:{lines:12,length:8,width:4,radius:10,trail:60,speed:1.5}},t.fn.spinStop=function(){if(window.Spinner)return this.each(function(){var e=t(this),i=e.data();i.spinner&&(i.spinner.stop(),delete i.spinner)});throw"Spinner class not available."}}(jQuery),function(t){t.fn.each2===void 0&&t.extend(t.fn,{each2:function(e){for(var i=t([0]),r=-1,n=this.length;n>++r&&(i.context=i[0]=this[r])&&e.call(i[0],r,i)!==!1;);return this}})}(jQuery),function(t,e){"use strict";function i(t){var e,i,r,n;if(!t||1>t.length)return t;for(e="",i=0,r=t.length;r>i;i++)n=t.charAt(i),e+=F[n]||n;return e}function r(t,e){for(var i=0,r=e.length;r>i;i+=1)if(s(t,e[i]))return i;return-1}function n(){var e=t(R);e.appendTo("body");var i={width:e.width()-e[0].clientWidth,height:e.height()-e[0].clientHeight};return e.remove(),i}function s(t,i){return t===i?!0:t===e||i===e?!1:null===t||null===i?!1:t.constructor===String?t+""==i+"":i.constructor===String?i+""==t+"":!1}function a(e,i){var r,n,s;if(null===e||1>e.length)return[];for(r=e.split(i),n=0,s=r.length;s>n;n+=1)r[n]=t.trim(r[n]);return r}function o(t){return t.outerWidth(!1)-t.width()}function l(i){var r="keyup-change-value";i.on("keydown",function(){t.data(i,r)===e&&t.data(i,r,i.val())}),i.on("keyup",function(){var n=t.data(i,r);n!==e&&i.val()!==n&&(t.removeData(i,r),i.trigger("keyup-change"))})}function h(i){i.on("mousemove",function(i){var r=O;(r===e||r.x!==i.pageX||r.y!==i.pageY)&&t(i.target).trigger("mousemove-filtered",i)})}function c(t,i,r){r=r||e;var n;return function(){var e=arguments;window.clearTimeout(n),n=window.setTimeout(function(){i.apply(r,e)},t)}}function u(t){var e,i=!1;return function(){return i===!1&&(e=t(),i=!0),e}}function d(t,e){var i=c(t,function(t){e.trigger("scroll-debounced",t)});e.on("scroll",function(t){r(t.target,e.get())>=0&&i(t)})}function p(t){t[0]!==document.activeElement&&window.setTimeout(function(){var e,i=t[0],r=t.val().length;t.focus(),t.is(":visible")&&i===document.activeElement&&(i.setSelectionRange?i.setSelectionRange(r,r):i.createTextRange&&(e=i.createTextRange(),e.collapse(!1),e.select()))},0)}function f(e){e=t(e)[0];var i=0,r=0;if("selectionStart"in e)i=e.selectionStart,r=e.selectionEnd-i;else if("selection"in document){e.focus();var n=document.selection.createRange();r=document.selection.createRange().text.length,n.moveStart("character",-e.value.length),i=n.text.length-r}return{offset:i,length:r}}function g(t){t.preventDefault(),t.stopPropagation()}function m(t){t.preventDefault(),t.stopImmediatePropagation()}function v(e){if(!J){var i=e[0].currentStyle||window.getComputedStyle(e[0],null);J=t(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"}),J.attr("class","select2-sizer"),t("body").append(J)}return J.text(e.val()),J.width()}function y(e,i,r){var n,s,a=[];n=e.attr("class"),n&&(n=""+n,t(n.split(" ")).each2(function(){0===this.indexOf("select2-")&&a.push(this)})),n=i.attr("class"),n&&(n=""+n,t(n.split(" ")).each2(function(){0!==this.indexOf("select2-")&&(s=r(this),s&&a.push(s))})),e.attr("class",a.join(" "))}function b(t,r,n,s){var a=i(t.toUpperCase()).indexOf(i(r.toUpperCase())),o=r.length;return 0>a?(n.push(s(t)),e):(n.push(s(t.substring(0,a))),n.push("<span class='select2-match'>"),n.push(s(t.substring(a,a+o))),n.push("</span>"),n.push(s(t.substring(a+o,t.length))),e)}function w(t){var e={"\\":"&#92;","&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#47;"};return(t+"").replace(/[&<>"'\/\\]/g,function(t){return e[t]})}function x(i){var r,n=null,s=i.quietMillis||100,a=i.url,o=this;return function(l){window.clearTimeout(r),r=window.setTimeout(function(){var r=i.data,s=a,h=i.transport||t.fn.select2.ajaxDefaults.transport,c={type:i.type||"GET",cache:i.cache||!1,jsonpCallback:i.jsonpCallback||e,dataType:i.dataType||"json"},u=t.extend({},t.fn.select2.ajaxDefaults.params,c);r=r?r.call(o,l.term,l.page,l.context):null,s="function"==typeof s?s.call(o,l.term,l.page,l.context):s,n&&n.abort(),i.params&&(t.isFunction(i.params)?t.extend(u,i.params.call(o)):t.extend(u,i.params)),t.extend(u,{url:s,dataType:i.dataType,data:r,success:function(t){var e=i.results(t,l.page);l.callback(e)}}),n=h.call(o,u)},s)}}function S(i){var r,n,s=i,a=function(t){return""+t.text};t.isArray(s)&&(n=s,s={results:n}),t.isFunction(s)===!1&&(n=s,s=function(){return n});var o=s();return o.text&&(a=o.text,t.isFunction(a)||(r=o.text,a=function(t){return t[r]})),function(i){var r,n=i.term,o={results:[]};return""===n?(i.callback(s()),e):(r=function(e,s){var o,l;if(e=e[0],e.children){o={};for(l in e)e.hasOwnProperty(l)&&(o[l]=e[l]);o.children=[],t(e.children).each2(function(t,e){r(e,o.children)}),(o.children.length||i.matcher(n,a(o),e))&&s.push(o)}else i.matcher(n,a(e),e)&&s.push(e)},t(s().results).each2(function(t,e){r(e,o.results)}),i.callback(o),e)}}function _(i){var r=t.isFunction(i);return function(n){var s=n.term,a={results:[]};t(r?i():i).each(function(){var t=this.text!==e,i=t?this.text:this;(""===s||n.matcher(s,i))&&a.results.push(t?this:{id:this,text:this})}),n.callback(a)}}function k(e,i){if(t.isFunction(e))return!0;if(!e)return!1;throw Error(i+" must be a function or a falsy value")}function A(e){return t.isFunction(e)?e():e}function C(e){var i=0;return t.each(e,function(t,e){e.children?i+=C(e.children):i++}),i}function D(t,i,r,n){var a,o,l,h,c,u=t,d=!1;if(!n.createSearchChoice||!n.tokenSeparators||1>n.tokenSeparators.length)return e;for(;;){for(o=-1,l=0,h=n.tokenSeparators.length;h>l&&(c=n.tokenSeparators[l],o=t.indexOf(c),!(o>=0));l++);if(0>o)break;if(a=t.substring(0,o),t=t.substring(o+c.length),a.length>0&&(a=n.createSearchChoice.call(this,a,i),a!==e&&null!==a&&n.id(a)!==e&&null!==n.id(a))){for(d=!1,l=0,h=i.length;h>l;l++)if(s(n.id(a),n.id(i[l]))){d=!0;break}d||r(a)}}return u!==t?t:e}function M(e,i){var r=function(){};return r.prototype=new e,r.prototype.constructor=r,r.prototype.parent=e.prototype,r.prototype=t.extend(r.prototype,i),r}if(window.Select2===e){var T,N,P,$,I,J,E,L,O={x:0,y:0},T={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(t){switch(t=t.which?t.which:t){case T.LEFT:case T.RIGHT:case T.UP:case T.DOWN:return!0}return!1},isControl:function(t){var e=t.which;switch(e){case T.SHIFT:case T.CTRL:case T.ALT:return!0}return t.metaKey?!0:!1},isFunctionKey:function(t){return t=t.which?t.which:t,t>=112&&123>=t}},R="<div class='select2-measure-scrollbar'></div>",F={"\u24b6":"A","\uff21":"A","\u00c0":"A","\u00c1":"A","\u00c2":"A","\u1ea6":"A","\u1ea4":"A","\u1eaa":"A","\u1ea8":"A","\u00c3":"A","\u0100":"A","\u0102":"A","\u1eb0":"A","\u1eae":"A","\u1eb4":"A","\u1eb2":"A","\u0226":"A","\u01e0":"A","\u00c4":"A","\u01de":"A","\u1ea2":"A","\u00c5":"A","\u01fa":"A","\u01cd":"A","\u0200":"A","\u0202":"A","\u1ea0":"A","\u1eac":"A","\u1eb6":"A","\u1e00":"A","\u0104":"A","\u023a":"A","\u2c6f":"A","\ua732":"AA","\u00c6":"AE","\u01fc":"AE","\u01e2":"AE","\ua734":"AO","\ua736":"AU","\ua738":"AV","\ua73a":"AV","\ua73c":"AY","\u24b7":"B","\uff22":"B","\u1e02":"B","\u1e04":"B","\u1e06":"B","\u0243":"B","\u0182":"B","\u0181":"B","\u24b8":"C","\uff23":"C","\u0106":"C","\u0108":"C","\u010a":"C","\u010c":"C","\u00c7":"C","\u1e08":"C","\u0187":"C","\u023b":"C","\ua73e":"C","\u24b9":"D","\uff24":"D","\u1e0a":"D","\u010e":"D","\u1e0c":"D","\u1e10":"D","\u1e12":"D","\u1e0e":"D","\u0110":"D","\u018b":"D","\u018a":"D","\u0189":"D","\ua779":"D","\u01f1":"DZ","\u01c4":"DZ","\u01f2":"Dz","\u01c5":"Dz","\u24ba":"E","\uff25":"E","\u00c8":"E","\u00c9":"E","\u00ca":"E","\u1ec0":"E","\u1ebe":"E","\u1ec4":"E","\u1ec2":"E","\u1ebc":"E","\u0112":"E","\u1e14":"E","\u1e16":"E","\u0114":"E","\u0116":"E","\u00cb":"E","\u1eba":"E","\u011a":"E","\u0204":"E","\u0206":"E","\u1eb8":"E","\u1ec6":"E","\u0228":"E","\u1e1c":"E","\u0118":"E","\u1e18":"E","\u1e1a":"E","\u0190":"E","\u018e":"E","\u24bb":"F","\uff26":"F","\u1e1e":"F","\u0191":"F","\ua77b":"F","\u24bc":"G","\uff27":"G","\u01f4":"G","\u011c":"G","\u1e20":"G","\u011e":"G","\u0120":"G","\u01e6":"G","\u0122":"G","\u01e4":"G","\u0193":"G","\ua7a0":"G","\ua77d":"G","\ua77e":"G","\u24bd":"H","\uff28":"H","\u0124":"H","\u1e22":"H","\u1e26":"H","\u021e":"H","\u1e24":"H","\u1e28":"H","\u1e2a":"H","\u0126":"H","\u2c67":"H","\u2c75":"H","\ua78d":"H","\u24be":"I","\uff29":"I","\u00cc":"I","\u00cd":"I","\u00ce":"I","\u0128":"I","\u012a":"I","\u012c":"I","\u0130":"I","\u00cf":"I","\u1e2e":"I","\u1ec8":"I","\u01cf":"I","\u0208":"I","\u020a":"I","\u1eca":"I","\u012e":"I","\u1e2c":"I","\u0197":"I","\u24bf":"J","\uff2a":"J","\u0134":"J","\u0248":"J","\u24c0":"K","\uff2b":"K","\u1e30":"K","\u01e8":"K","\u1e32":"K","\u0136":"K","\u1e34":"K","\u0198":"K","\u2c69":"K","\ua740":"K","\ua742":"K","\ua744":"K","\ua7a2":"K","\u24c1":"L","\uff2c":"L","\u013f":"L","\u0139":"L","\u013d":"L","\u1e36":"L","\u1e38":"L","\u013b":"L","\u1e3c":"L","\u1e3a":"L","\u0141":"L","\u023d":"L","\u2c62":"L","\u2c60":"L","\ua748":"L","\ua746":"L","\ua780":"L","\u01c7":"LJ","\u01c8":"Lj","\u24c2":"M","\uff2d":"M","\u1e3e":"M","\u1e40":"M","\u1e42":"M","\u2c6e":"M","\u019c":"M","\u24c3":"N","\uff2e":"N","\u01f8":"N","\u0143":"N","\u00d1":"N","\u1e44":"N","\u0147":"N","\u1e46":"N","\u0145":"N","\u1e4a":"N","\u1e48":"N","\u0220":"N","\u019d":"N","\ua790":"N","\ua7a4":"N","\u01ca":"NJ","\u01cb":"Nj","\u24c4":"O","\uff2f":"O","\u00d2":"O","\u00d3":"O","\u00d4":"O","\u1ed2":"O","\u1ed0":"O","\u1ed6":"O","\u1ed4":"O","\u00d5":"O","\u1e4c":"O","\u022c":"O","\u1e4e":"O","\u014c":"O","\u1e50":"O","\u1e52":"O","\u014e":"O","\u022e":"O","\u0230":"O","\u00d6":"O","\u022a":"O","\u1ece":"O","\u0150":"O","\u01d1":"O","\u020c":"O","\u020e":"O","\u01a0":"O","\u1edc":"O","\u1eda":"O","\u1ee0":"O","\u1ede":"O","\u1ee2":"O","\u1ecc":"O","\u1ed8":"O","\u01ea":"O","\u01ec":"O","\u00d8":"O","\u01fe":"O","\u0186":"O","\u019f":"O","\ua74a":"O","\ua74c":"O","\u01a2":"OI","\ua74e":"OO","\u0222":"OU","\u24c5":"P","\uff30":"P","\u1e54":"P","\u1e56":"P","\u01a4":"P","\u2c63":"P","\ua750":"P","\ua752":"P","\ua754":"P","\u24c6":"Q","\uff31":"Q","\ua756":"Q","\ua758":"Q","\u024a":"Q","\u24c7":"R","\uff32":"R","\u0154":"R","\u1e58":"R","\u0158":"R","\u0210":"R","\u0212":"R","\u1e5a":"R","\u1e5c":"R","\u0156":"R","\u1e5e":"R","\u024c":"R","\u2c64":"R","\ua75a":"R","\ua7a6":"R","\ua782":"R","\u24c8":"S","\uff33":"S","\u1e9e":"S","\u015a":"S","\u1e64":"S","\u015c":"S","\u1e60":"S","\u0160":"S","\u1e66":"S","\u1e62":"S","\u1e68":"S","\u0218":"S","\u015e":"S","\u2c7e":"S","\ua7a8":"S","\ua784":"S","\u24c9":"T","\uff34":"T","\u1e6a":"T","\u0164":"T","\u1e6c":"T","\u021a":"T","\u0162":"T","\u1e70":"T","\u1e6e":"T","\u0166":"T","\u01ac":"T","\u01ae":"T","\u023e":"T","\ua786":"T","\ua728":"TZ","\u24ca":"U","\uff35":"U","\u00d9":"U","\u00da":"U","\u00db":"U","\u0168":"U","\u1e78":"U","\u016a":"U","\u1e7a":"U","\u016c":"U","\u00dc":"U","\u01db":"U","\u01d7":"U","\u01d5":"U","\u01d9":"U","\u1ee6":"U","\u016e":"U","\u0170":"U","\u01d3":"U","\u0214":"U","\u0216":"U","\u01af":"U","\u1eea":"U","\u1ee8":"U","\u1eee":"U","\u1eec":"U","\u1ef0":"U","\u1ee4":"U","\u1e72":"U","\u0172":"U","\u1e76":"U","\u1e74":"U","\u0244":"U","\u24cb":"V","\uff36":"V","\u1e7c":"V","\u1e7e":"V","\u01b2":"V","\ua75e":"V","\u0245":"V","\ua760":"VY","\u24cc":"W","\uff37":"W","\u1e80":"W","\u1e82":"W","\u0174":"W","\u1e86":"W","\u1e84":"W","\u1e88":"W","\u2c72":"W","\u24cd":"X","\uff38":"X","\u1e8a":"X","\u1e8c":"X","\u24ce":"Y","\uff39":"Y","\u1ef2":"Y","\u00dd":"Y","\u0176":"Y","\u1ef8":"Y","\u0232":"Y","\u1e8e":"Y","\u0178":"Y","\u1ef6":"Y","\u1ef4":"Y","\u01b3":"Y","\u024e":"Y","\u1efe":"Y","\u24cf":"Z","\uff3a":"Z","\u0179":"Z","\u1e90":"Z","\u017b":"Z","\u017d":"Z","\u1e92":"Z","\u1e94":"Z","\u01b5":"Z","\u0224":"Z","\u2c7f":"Z","\u2c6b":"Z","\ua762":"Z","\u24d0":"a","\uff41":"a","\u1e9a":"a","\u00e0":"a","\u00e1":"a","\u00e2":"a","\u1ea7":"a","\u1ea5":"a","\u1eab":"a","\u1ea9":"a","\u00e3":"a","\u0101":"a","\u0103":"a","\u1eb1":"a","\u1eaf":"a","\u1eb5":"a","\u1eb3":"a","\u0227":"a","\u01e1":"a","\u00e4":"a","\u01df":"a","\u1ea3":"a","\u00e5":"a","\u01fb":"a","\u01ce":"a","\u0201":"a","\u0203":"a","\u1ea1":"a","\u1ead":"a","\u1eb7":"a","\u1e01":"a","\u0105":"a","\u2c65":"a","\u0250":"a","\ua733":"aa","\u00e6":"ae","\u01fd":"ae","\u01e3":"ae","\ua735":"ao","\ua737":"au","\ua739":"av","\ua73b":"av","\ua73d":"ay","\u24d1":"b","\uff42":"b","\u1e03":"b","\u1e05":"b","\u1e07":"b","\u0180":"b","\u0183":"b","\u0253":"b","\u24d2":"c","\uff43":"c","\u0107":"c","\u0109":"c","\u010b":"c","\u010d":"c","\u00e7":"c","\u1e09":"c","\u0188":"c","\u023c":"c","\ua73f":"c","\u2184":"c","\u24d3":"d","\uff44":"d","\u1e0b":"d","\u010f":"d","\u1e0d":"d","\u1e11":"d","\u1e13":"d","\u1e0f":"d","\u0111":"d","\u018c":"d","\u0256":"d","\u0257":"d","\ua77a":"d","\u01f3":"dz","\u01c6":"dz","\u24d4":"e","\uff45":"e","\u00e8":"e","\u00e9":"e","\u00ea":"e","\u1ec1":"e","\u1ebf":"e","\u1ec5":"e","\u1ec3":"e","\u1ebd":"e","\u0113":"e","\u1e15":"e","\u1e17":"e","\u0115":"e","\u0117":"e","\u00eb":"e","\u1ebb":"e","\u011b":"e","\u0205":"e","\u0207":"e","\u1eb9":"e","\u1ec7":"e","\u0229":"e","\u1e1d":"e","\u0119":"e","\u1e19":"e","\u1e1b":"e","\u0247":"e","\u025b":"e","\u01dd":"e","\u24d5":"f","\uff46":"f","\u1e1f":"f","\u0192":"f","\ua77c":"f","\u24d6":"g","\uff47":"g","\u01f5":"g","\u011d":"g","\u1e21":"g","\u011f":"g","\u0121":"g","\u01e7":"g","\u0123":"g","\u01e5":"g","\u0260":"g","\ua7a1":"g","\u1d79":"g","\ua77f":"g","\u24d7":"h","\uff48":"h","\u0125":"h","\u1e23":"h","\u1e27":"h","\u021f":"h","\u1e25":"h","\u1e29":"h","\u1e2b":"h","\u1e96":"h","\u0127":"h","\u2c68":"h","\u2c76":"h","\u0265":"h","\u0195":"hv","\u24d8":"i","\uff49":"i","\u00ec":"i","\u00ed":"i","\u00ee":"i","\u0129":"i","\u012b":"i","\u012d":"i","\u00ef":"i","\u1e2f":"i","\u1ec9":"i","\u01d0":"i","\u0209":"i","\u020b":"i","\u1ecb":"i","\u012f":"i","\u1e2d":"i","\u0268":"i","\u0131":"i","\u24d9":"j","\uff4a":"j","\u0135":"j","\u01f0":"j","\u0249":"j","\u24da":"k","\uff4b":"k","\u1e31":"k","\u01e9":"k","\u1e33":"k","\u0137":"k","\u1e35":"k","\u0199":"k","\u2c6a":"k","\ua741":"k","\ua743":"k","\ua745":"k","\ua7a3":"k","\u24db":"l","\uff4c":"l","\u0140":"l","\u013a":"l","\u013e":"l","\u1e37":"l","\u1e39":"l","\u013c":"l","\u1e3d":"l","\u1e3b":"l","\u017f":"l","\u0142":"l","\u019a":"l","\u026b":"l","\u2c61":"l","\ua749":"l","\ua781":"l","\ua747":"l","\u01c9":"lj","\u24dc":"m","\uff4d":"m","\u1e3f":"m","\u1e41":"m","\u1e43":"m","\u0271":"m","\u026f":"m","\u24dd":"n","\uff4e":"n","\u01f9":"n","\u0144":"n","\u00f1":"n","\u1e45":"n","\u0148":"n","\u1e47":"n","\u0146":"n","\u1e4b":"n","\u1e49":"n","\u019e":"n","\u0272":"n","\u0149":"n","\ua791":"n","\ua7a5":"n","\u01cc":"nj","\u24de":"o","\uff4f":"o","\u00f2":"o","\u00f3":"o","\u00f4":"o","\u1ed3":"o","\u1ed1":"o","\u1ed7":"o","\u1ed5":"o","\u00f5":"o","\u1e4d":"o","\u022d":"o","\u1e4f":"o","\u014d":"o","\u1e51":"o","\u1e53":"o","\u014f":"o","\u022f":"o","\u0231":"o","\u00f6":"o","\u022b":"o","\u1ecf":"o","\u0151":"o","\u01d2":"o","\u020d":"o","\u020f":"o","\u01a1":"o","\u1edd":"o","\u1edb":"o","\u1ee1":"o","\u1edf":"o","\u1ee3":"o","\u1ecd":"o","\u1ed9":"o","\u01eb":"o","\u01ed":"o","\u00f8":"o","\u01ff":"o","\u0254":"o","\ua74b":"o","\ua74d":"o","\u0275":"o","\u01a3":"oi","\u0223":"ou","\ua74f":"oo","\u24df":"p","\uff50":"p","\u1e55":"p","\u1e57":"p","\u01a5":"p","\u1d7d":"p","\ua751":"p","\ua753":"p","\ua755":"p","\u24e0":"q","\uff51":"q","\u024b":"q","\ua757":"q","\ua759":"q","\u24e1":"r","\uff52":"r","\u0155":"r","\u1e59":"r","\u0159":"r","\u0211":"r","\u0213":"r","\u1e5b":"r","\u1e5d":"r","\u0157":"r","\u1e5f":"r","\u024d":"r","\u027d":"r","\ua75b":"r","\ua7a7":"r","\ua783":"r","\u24e2":"s","\uff53":"s","\u00df":"s","\u015b":"s","\u1e65":"s","\u015d":"s","\u1e61":"s","\u0161":"s","\u1e67":"s","\u1e63":"s","\u1e69":"s","\u0219":"s","\u015f":"s","\u023f":"s","\ua7a9":"s","\ua785":"s","\u1e9b":"s","\u24e3":"t","\uff54":"t","\u1e6b":"t","\u1e97":"t","\u0165":"t","\u1e6d":"t","\u021b":"t","\u0163":"t","\u1e71":"t","\u1e6f":"t","\u0167":"t","\u01ad":"t","\u0288":"t","\u2c66":"t","\ua787":"t","\ua729":"tz","\u24e4":"u","\uff55":"u","\u00f9":"u","\u00fa":"u","\u00fb":"u","\u0169":"u","\u1e79":"u","\u016b":"u","\u1e7b":"u","\u016d":"u","\u00fc":"u","\u01dc":"u","\u01d8":"u","\u01d6":"u","\u01da":"u","\u1ee7":"u","\u016f":"u","\u0171":"u","\u01d4":"u","\u0215":"u","\u0217":"u","\u01b0":"u","\u1eeb":"u","\u1ee9":"u","\u1eef":"u","\u1eed":"u","\u1ef1":"u","\u1ee5":"u","\u1e73":"u","\u0173":"u","\u1e77":"u","\u1e75":"u","\u0289":"u","\u24e5":"v","\uff56":"v","\u1e7d":"v","\u1e7f":"v","\u028b":"v","\ua75f":"v","\u028c":"v","\ua761":"vy","\u24e6":"w","\uff57":"w","\u1e81":"w","\u1e83":"w","\u0175":"w","\u1e87":"w","\u1e85":"w","\u1e98":"w","\u1e89":"w","\u2c73":"w","\u24e7":"x","\uff58":"x","\u1e8b":"x","\u1e8d":"x","\u24e8":"y","\uff59":"y","\u1ef3":"y","\u00fd":"y","\u0177":"y","\u1ef9":"y","\u0233":"y","\u1e8f":"y","\u00ff":"y","\u1ef7":"y","\u1e99":"y","\u1ef5":"y","\u01b4":"y","\u024f":"y","\u1eff":"y","\u24e9":"z","\uff5a":"z","\u017a":"z","\u1e91":"z","\u017c":"z","\u017e":"z","\u1e93":"z","\u1e95":"z","\u01b6":"z","\u0225":"z","\u0240":"z","\u2c6c":"z","\ua763":"z"};E=t(document),I=function(){var t=1;return function(){return t++}}(),E.on("mousemove",function(t){O.x=t.pageX,O.y=t.pageY}),N=M(Object,{bind:function(t){var e=this;return function(){t.apply(e,arguments)}},init:function(i){var r,s,a=".select2-results";this.opts=i=this.prepareOpts(i),this.id=i.id,i.element.data("select2")!==e&&null!==i.element.data("select2")&&i.element.data("select2").destroy(),this.container=this.createContainer(),this.containerId="s2id_"+(i.element.attr("id")||"autogen"+I()),this.containerSelector="#"+this.containerId.replace(/([;&,\.\+\*\~':"\!\^#$%@\[\]\(\)=>\|])/g,"\\$1"),this.container.attr("id",this.containerId),this.body=u(function(){return i.element.closest("body")}),y(this.container,this.opts.element,this.opts.adaptContainerCssClass),this.container.attr("style",i.element.attr("style")),this.container.css(A(i.containerCss)),this.container.addClass(A(i.containerCssClass)),this.elementTabIndex=this.opts.element.attr("tabindex"),this.opts.element.data("select2",this).attr("tabindex","-1").before(this.container).on("click.select2",g),this.container.data("select2",this),this.dropdown=this.container.find(".select2-drop"),y(this.dropdown,this.opts.element,this.opts.adaptDropdownCssClass),this.dropdown.addClass(A(i.dropdownCssClass)),this.dropdown.data("select2",this),this.dropdown.on("click",g),this.results=r=this.container.find(a),this.search=s=this.container.find("input.select2-input"),this.queryCount=0,this.resultsPage=0,this.context=null,this.initContainer(),this.container.on("click",g),h(this.results),this.dropdown.on("mousemove-filtered touchstart touchmove touchend",a,this.bind(this.highlightUnderEvent)),d(80,this.results),this.dropdown.on("scroll-debounced",a,this.bind(this.loadMoreIfNeeded)),t(this.container).on("change",".select2-input",function(t){t.stopPropagation()}),t(this.dropdown).on("change",".select2-input",function(t){t.stopPropagation()}),t.fn.mousewheel&&r.mousewheel(function(t,e,i,n){var s=r.scrollTop();n>0&&0>=s-n?(r.scrollTop(0),g(t)):0>n&&r.get(0).scrollHeight-r.scrollTop()+n<=r.height()&&(r.scrollTop(r.get(0).scrollHeight-r.height()),g(t))}),l(s),s.on("keyup-change input paste",this.bind(this.updateResults)),s.on("focus",function(){s.addClass("select2-focused")}),s.on("blur",function(){s.removeClass("select2-focused")}),this.dropdown.on("mouseup",a,this.bind(function(e){t(e.target).closest(".select2-result-selectable").length>0&&(this.highlightUnderEvent(e),this.selectHighlighted(e))})),this.dropdown.on("click mouseup mousedown",function(t){t.stopPropagation()}),t.isFunction(this.opts.initSelection)&&(this.initSelection(),this.monitorSource()),null!==i.maximumInputLength&&this.search.attr("maxlength",i.maximumInputLength);var o=i.element.prop("disabled");o===e&&(o=!1),this.enable(!o);var c=i.element.prop("readonly");c===e&&(c=!1),this.readonly(c),L=L||n(),this.autofocus=i.element.prop("autofocus"),i.element.prop("autofocus",!1),this.autofocus&&this.focus(),this.nextSearchTerm=e},destroy:function(){var t=this.opts.element,i=t.data("select2");this.close(),this.propertyObserver&&(delete this.propertyObserver,this.propertyObserver=null),i!==e&&(i.container.remove(),i.dropdown.remove(),t.removeClass("select2-offscreen").removeData("select2").off(".select2").prop("autofocus",this.autofocus||!1),this.elementTabIndex?t.attr({tabindex:this.elementTabIndex}):t.removeAttr("tabindex"),t.show())},optionToData:function(t){return t.is("option")?{id:t.prop("value"),text:t.text(),element:t.get(),css:t.attr("class"),disabled:t.prop("disabled"),locked:s(t.attr("locked"),"locked")||s(t.data("locked"),!0)}:t.is("optgroup")?{text:t.attr("label"),children:[],element:t.get(),css:t.attr("class")}:e},prepareOpts:function(i){var r,n,o,l,h=this;if(r=i.element,"select"===r.get(0).tagName.toLowerCase()&&(this.select=n=i.element),n&&t.each(["id","multiple","ajax","query","createSearchChoice","initSelection","data","tags"],function(){if(this in i)throw Error("Option '"+this+"' is not allowed for Select2 when attached to a <select> element.")}),i=t.extend({},{populateResults:function(r,n,s){var a,o=this.opts.id;a=function(r,n,l){var c,u,d,p,f,g,m,v,y,b;for(r=i.sortResults(r,n,s),c=0,u=r.length;u>c;c+=1)d=r[c],f=d.disabled===!0,p=!f&&o(d)!==e,g=d.children&&d.children.length>0,m=t("<li></li>"),m.addClass("select2-results-dept-"+l),m.addClass("select2-result"),m.addClass(p?"select2-result-selectable":"select2-result-unselectable"),f&&m.addClass("select2-disabled"),g&&m.addClass("select2-result-with-children"),m.addClass(h.opts.formatResultCssClass(d)),v=t(document.createElement("div")),v.addClass("select2-result-label"),b=i.formatResult(d,v,s,h.opts.escapeMarkup),b!==e&&v.html(b),m.append(v),g&&(y=t("<ul></ul>"),y.addClass("select2-result-sub"),a(d.children,y,l+1),m.append(y)),m.data("select2-data",d),n.append(m)},a(n,r,0)}},t.fn.select2.defaults,i),"function"!=typeof i.id&&(o=i.id,i.id=function(t){return t[o]}),t.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(n?(i.query=this.bind(function(t){var i,n,s,a={results:[],more:!1},o=t.term;s=function(e,i){var r;e.is("option")?t.matcher(o,e.text(),e)&&i.push(h.optionToData(e)):e.is("optgroup")&&(r=h.optionToData(e),e.children().each2(function(t,e){s(e,r.children)}),r.children.length>0&&i.push(r))},i=r.children(),this.getPlaceholder()!==e&&i.length>0&&(n=this.getPlaceholderOption(),n&&(i=i.not(n))),i.each2(function(t,e){s(e,a.results)}),t.callback(a)}),i.id=function(t){return t.id},i.formatResultCssClass=function(t){return t.css}):"query"in i||("ajax"in i?(l=i.element.data("ajax-url"),l&&l.length>0&&(i.ajax.url=l),i.query=x.call(i.element,i.ajax)):"data"in i?i.query=S(i.data):"tags"in i&&(i.query=_(i.tags),i.createSearchChoice===e&&(i.createSearchChoice=function(e){return{id:t.trim(e),text:t.trim(e)}}),i.initSelection===e&&(i.initSelection=function(r,n){var o=[];t(a(r.val(),i.separator)).each(function(){var r={id:this,text:this},n=i.tags;t.isFunction(n)&&(n=n()),t(n).each(function(){return s(this.id,r.id)?(r=this,!1):e}),o.push(r)}),n(o)}))),"function"!=typeof i.query)throw"query function not defined for Select2 "+i.element.attr("id");return i},monitorSource:function(){var t,i,r=this.opts.element;r.on("change.select2",this.bind(function(){this.opts.element.data("select2-change-triggered")!==!0&&this.initSelection()})),t=this.bind(function(){var t=r.prop("disabled");t===e&&(t=!1),this.enable(!t);var i=r.prop("readonly");i===e&&(i=!1),this.readonly(i),y(this.container,this.opts.element,this.opts.adaptContainerCssClass),this.container.addClass(A(this.opts.containerCssClass)),y(this.dropdown,this.opts.element,this.opts.adaptDropdownCssClass),this.dropdown.addClass(A(this.opts.dropdownCssClass))}),r.on("propertychange.select2",t),this.mutationCallback===e&&(this.mutationCallback=function(e){e.forEach(t)}),i=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver,i!==e&&(this.propertyObserver&&(delete this.propertyObserver,this.propertyObserver=null),this.propertyObserver=new i(this.mutationCallback),this.propertyObserver.observe(r.get(0),{attributes:!0,subtree:!1}))},triggerSelect:function(e){var i=t.Event("select2-selecting",{val:this.id(e),object:e});return this.opts.element.trigger(i),!i.isDefaultPrevented()},triggerChange:function(e){e=e||{},e=t.extend({},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 this.enabledInterface===!0},enableInterface:function(){var t=this._enabled&&!this._readonly,e=!t;return t===this.enabledInterface?!1:(this.container.toggleClass("select2-container-disabled",e),this.close(),this.enabledInterface=t,!0)},enable:function(t){t===e&&(t=!0),this._enabled!==t&&(this._enabled=t,this.opts.element.prop("disabled",!t),this.enableInterface())},disable:function(){this.enable(!1)},readonly:function(t){return t===e&&(t=!1),this._readonly===t?!1:(this._readonly=t,this.opts.element.prop("readonly",t),this.enableInterface(),!0)},opened:function(){return this.container.hasClass("select2-dropdown-open")},positionDropdown:function(){var e,i,r,n,s,a=this.dropdown,o=this.container.offset(),l=this.container.outerHeight(!1),h=this.container.outerWidth(!1),c=a.outerHeight(!1),u=t(window),d=u.width(),p=u.height(),f=u.scrollLeft()+d,g=u.scrollTop()+p,m=o.top+l,v=o.left,y=g>=m+c,b=o.top-c>=this.body().scrollTop(),w=a.outerWidth(!1),x=f>=v+w,S=a.hasClass("select2-drop-above");S?(i=!0,!b&&y&&(r=!0,i=!1)):(i=!1,!y&&b&&(r=!0,i=!0)),r&&(a.hide(),o=this.container.offset(),l=this.container.outerHeight(!1),h=this.container.outerWidth(!1),c=a.outerHeight(!1),f=u.scrollLeft()+d,g=u.scrollTop()+p,m=o.top+l,v=o.left,w=a.outerWidth(!1),x=f>=v+w,a.show()),this.opts.dropdownAutoWidth?(s=t(".select2-results",a)[0],a.addClass("select2-drop-auto-width"),a.css("width",""),w=a.outerWidth(!1)+(s.scrollHeight===s.clientHeight?0:L.width),w>h?h=w:w=h,x=f>=v+w):this.container.removeClass("select2-drop-auto-width"),"static"!==this.body().css("position")&&(e=this.body().offset(),m-=e.top,v-=e.left),x||(v=o.left+h-w),n={left:v,width:h},i?(n.bottom=p-o.top,n.top="auto",this.container.addClass("select2-drop-above"),a.addClass("select2-drop-above")):(n.top=m,n.bottom="auto",this.container.removeClass("select2-drop-above"),a.removeClass("select2-drop-above")),n=t.extend(n,A(this.opts.dropdownCss)),a.css(n)},shouldOpen:function(){var e;return this.opened()?!1:this._enabled===!1||this._readonly===!0?!1:(e=t.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):!1},opening:function(){var e,i=this.containerId,r="scroll."+i,n="resize."+i,s="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()),e=t("#select2-drop-mask"),0==e.length&&(e=t(document.createElement("div")),e.attr("id","select2-drop-mask").attr("class","select2-drop-mask"),e.hide(),e.appendTo(this.body()),e.on("mousedown touchstart click",function(e){var i,r=t("#select2-drop");r.length>0&&(i=r.data("select2"),i.opts.selectOnBlur&&i.selectHighlighted({noFocus:!0}),i.close({focus:!0}),e.preventDefault(),e.stopPropagation())})),this.dropdown.prev()[0]!==e[0]&&this.dropdown.before(e),t("#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 a=this;this.container.parents().add(window).each(function(){t(this).on(n+" "+r+" "+s,function(){a.positionDropdown()})})},close:function(){if(this.opened()){var e=this.containerId,i="scroll."+e,r="resize."+e,n="orientationchange."+e;this.container.parents().add(window).each(function(){t(this).off(i).off(r).off(n)}),this.clearDropdownAlignmentPreference(),t("#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(t.Event("select2-close"))}},externalSearch:function(t){this.open(),this.search.val(t),this.updateResults(!1)},clearSearch:function(){},getMaximumSelectionSize:function(){return A(this.opts.maximumSelectionSize)},ensureHighlightVisible:function(){var i,r,n,s,a,o,l,h=this.results;if(r=this.highlight(),!(0>r)){if(0==r)return h.scrollTop(0),e;i=this.findHighlightableChoices().find(".select2-result-label"),n=t(i[r]),s=n.offset().top+n.outerHeight(!0),r===i.length-1&&(l=h.find("li.select2-more-results"),l.length>0&&(s=l.offset().top+l.outerHeight(!0))),a=h.offset().top+h.outerHeight(!0),s>a&&h.scrollTop(h.scrollTop()+(s-a)),o=n.offset().top-h.offset().top,0>o&&"none"!=n.css("display")&&h.scrollTop(h.scrollTop()+o)}},findHighlightableChoices:function(){return this.results.find(".select2-result-selectable:not(.select2-disabled, .select2-selected)")},moveHighlight:function(e){for(var i=this.findHighlightableChoices(),r=this.highlight();r>-1&&i.length>r;){r+=e;var n=t(i[r]);if(n.hasClass("select2-result-selectable")&&!n.hasClass("select2-disabled")&&!n.hasClass("select2-selected")){this.highlight(r);break}}},highlight:function(i){var n,s,a=this.findHighlightableChoices();return 0===arguments.length?r(a.filter(".select2-highlighted")[0],a.get()):(i>=a.length&&(i=a.length-1),0>i&&(i=0),this.removeHighlight(),n=t(a[i]),n.addClass("select2-highlighted"),this.ensureHighlightVisible(),s=n.data("select2-data"),s&&this.opts.element.trigger({type:"select2-highlight",val:this.id(s),choice:s}),e)
  },removeHighlight:function(){this.results.find(".select2-highlighted").removeClass("select2-highlighted")},countSelectableResults:function(){return this.findHighlightableChoices().length},highlightUnderEvent:function(e){var i=t(e.target).closest(".select2-result-selectable");if(i.length>0&&!i.is(".select2-highlighted")){var r=this.findHighlightableChoices();this.highlight(r.index(i))}else 0==i.length&&this.removeHighlight()},loadMoreIfNeeded:function(){var t,e=this.results,i=e.find("li.select2-more-results"),r=this.resultsPage+1,n=this,s=this.search.val(),a=this.context;0!==i.length&&(t=i.offset().top-e.offset().top-e.height(),this.opts.loadMorePadding>=t&&(i.addClass("select2-active"),this.opts.query({element:this.opts.element,term:s,page:r,context:a,matcher:this.opts.matcher,callback:this.bind(function(t){n.opened()&&(n.opts.populateResults.call(this,e,t.results,{term:s,page:r,context:a}),n.postprocessResults(t,!1,!1),t.more===!0?(i.detach().appendTo(e).text(n.opts.formatLoadMore(r+1)),window.setTimeout(function(){n.loadMoreIfNeeded()},10)):i.remove(),n.positionDropdown(),n.resultsPage=r,n.context=t.context,this.opts.element.trigger({type:"select2-loaded",items:t}))})})))},tokenize:function(){},updateResults:function(i){function r(){h.removeClass("select2-active"),d.positionDropdown()}function n(t){c.html(t),r()}var a,o,l,h=this.search,c=this.results,u=this.opts,d=this,p=h.val(),f=t.data(this.container,"select2-last-term");if((i===!0||!f||!s(p,f))&&(t.data(this.container,"select2-last-term",p),i===!0||this.showSearchInput!==!1&&this.opened())){l=++this.queryCount;var g=this.getMaximumSelectionSize();if(g>=1&&(a=this.data(),t.isArray(a)&&a.length>=g&&k(u.formatSelectionTooBig,"formatSelectionTooBig")))return n("<li class='select2-selection-limit'>"+u.formatSelectionTooBig(g)+"</li>"),e;if(h.val().length<u.minimumInputLength)return k(u.formatInputTooShort,"formatInputTooShort")?n("<li class='select2-no-results'>"+u.formatInputTooShort(h.val(),u.minimumInputLength)+"</li>"):n(""),i&&this.showSearch&&this.showSearch(!0),e;if(u.maximumInputLength&&h.val().length>u.maximumInputLength)return k(u.formatInputTooLong,"formatInputTooLong")?n("<li class='select2-no-results'>"+u.formatInputTooLong(h.val(),u.maximumInputLength)+"</li>"):n(""),e;u.formatSearching&&0===this.findHighlightableChoices().length&&n("<li class='select2-searching'>"+u.formatSearching()+"</li>"),h.addClass("select2-active"),this.removeHighlight(),o=this.tokenize(),o!=e&&null!=o&&h.val(o),this.resultsPage=1,u.query({element:u.element,term:h.val(),page:this.resultsPage,context:null,matcher:u.matcher,callback:this.bind(function(a){var o;if(l==this.queryCount){if(!this.opened())return this.search.removeClass("select2-active"),e;if(this.context=a.context===e?null:a.context,this.opts.createSearchChoice&&""!==h.val()&&(o=this.opts.createSearchChoice.call(d,h.val(),a.results),o!==e&&null!==o&&d.id(o)!==e&&null!==d.id(o)&&0===t(a.results).filter(function(){return s(d.id(this),d.id(o))}).length&&a.results.unshift(o)),0===a.results.length&&k(u.formatNoMatches,"formatNoMatches"))return n("<li class='select2-no-results'>"+u.formatNoMatches(h.val())+"</li>"),e;c.empty(),d.opts.populateResults.call(this,c,a.results,{term:h.val(),page:this.resultsPage,context:null}),a.more===!0&&k(u.formatLoadMore,"formatLoadMore")&&(c.append("<li class='select2-more-results'>"+d.opts.escapeMarkup(u.formatLoadMore(this.resultsPage))+"</li>"),window.setTimeout(function(){d.loadMoreIfNeeded()},10)),this.postprocessResults(a,i),r(),this.opts.element.trigger({type:"select2-loaded",items:a})}})})}},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(){p(this.search)},selectHighlighted:function(t){var e=this.highlight(),i=this.results.find(".select2-highlighted"),r=i.closest(".select2-result").data("select2-data");r?(this.highlight(e),this.onSelect(r,t)):t&&t.noFocus&&this.close()},getPlaceholder:function(){var t;return this.opts.element.attr("placeholder")||this.opts.element.attr("data-placeholder")||this.opts.element.data("placeholder")||this.opts.placeholder||((t=this.getPlaceholderOption())!==e?t.text():e)},getPlaceholderOption:function(){if(this.select){var t=this.select.children("option").first();if(this.opts.placeholderOption!==e)return"first"===this.opts.placeholderOption&&t||"function"==typeof this.opts.placeholderOption&&this.opts.placeholderOption(this.select);if(""===t.text()&&""===t.val())return t}},initContainerWidth:function(){function i(){var i,r,n,s,a,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"),i!==e)for(r=i.split(";"),s=0,a=r.length;a>s;s+=1)if(o=r[s].replace(/\s/g,""),n=o.match(/^width:(([-+]?([0-9]*\.)?[0-9]+)(px|em|ex|%|in|cm|mm|pt|pc))/i),null!==n&&n.length>=1)return n[1];return"resolve"===this.opts.width?(i=this.opts.element.css("width"),i.indexOf("%")>0?i:0===this.opts.element.outerWidth(!1)?"auto":this.opts.element.outerWidth(!1)+"px"):null}return t.isFunction(this.opts.width)?this.opts.width():this.opts.width}var r=i.call(this);null!==r&&this.container.css("width",r)}}),P=M(N,{createContainer:function(){var e=t(document.createElement("div")).attr({"class":"select2-container"}).html(["<a href='javascript:void(0)' onclick='return false;' 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(""));return e},enableInterface:function(){this.parent.enableInterface.apply(this,arguments)&&this.focusser.prop("disabled",!this.isInterfaceEnabled())},opening:function(){var i,r,n;this.opts.minimumResultsForSearch>=0&&this.showSearch(!0),this.parent.opening.apply(this,arguments),this.showSearchInput!==!1&&this.search.val(this.focusser.val()),this.search.focus(),i=this.search.get(0),i.createTextRange?(r=i.createTextRange(),r.collapse(!1),r.select()):i.setSelectionRange&&(n=this.search.val().length,i.setSelectionRange(n,n)),""===this.search.val()&&this.nextSearchTerm!=e&&(this.search.val(this.nextSearchTerm),this.search.select()),this.focusser.prop("disabled",!0).val(""),this.updateResults(!0),this.opts.element.trigger(t.Event("select2-open"))},close:function(t){this.opened()&&(this.parent.close.apply(this,arguments),t=t||{focus:!0},this.focusser.removeAttr("disabled"),t.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(){t("label[for='"+this.focusser.attr("id")+"']").attr("for",this.opts.element.attr("id")),this.parent.destroy.apply(this,arguments)},initContainer:function(){var i,r=this.container,n=this.dropdown;0>this.opts.minimumResultsForSearch?this.showSearch(!1):this.showSearch(!0),this.selection=i=r.find(".select2-choice"),this.focusser=r.find(".select2-focusser"),this.focusser.attr("id","s2id_autogen"+I()),t("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(t){if(this.isInterfaceEnabled()){if(t.which===T.PAGE_UP||t.which===T.PAGE_DOWN)return g(t),e;switch(t.which){case T.UP:case T.DOWN:return this.moveHighlight(t.which===T.UP?-1:1),g(t),e;case T.ENTER:return this.selectHighlighted(),g(t),e;case T.TAB:return this.selectHighlighted({noFocus:!0}),e;case T.ESC:return this.cancel(t),g(t),e}}})),this.search.on("blur",this.bind(function(){document.activeElement===this.body().get(0)&&window.setTimeout(this.bind(function(){this.search.focus()}),0)})),this.focusser.on("keydown",this.bind(function(t){if(this.isInterfaceEnabled()&&t.which!==T.TAB&&!T.isControl(t)&&!T.isFunctionKey(t)&&t.which!==T.ESC){if(this.opts.openOnEnter===!1&&t.which===T.ENTER)return g(t),e;if(t.which==T.DOWN||t.which==T.UP||t.which==T.ENTER&&this.opts.openOnEnter){if(t.altKey||t.ctrlKey||t.shiftKey||t.metaKey)return;return this.open(),g(t),e}return t.which==T.DELETE||t.which==T.BACKSPACE?(this.opts.allowClear&&this.clear(),g(t),e):e}})),l(this.focusser),this.focusser.on("keyup-change input",this.bind(function(t){if(this.opts.minimumResultsForSearch>=0){if(t.stopPropagation(),this.opened())return;this.open()}})),i.on("mousedown","abbr",this.bind(function(t){this.isInterfaceEnabled()&&(this.clear(),m(t),this.close(),this.selection.focus())})),i.on("mousedown",this.bind(function(e){this.container.hasClass("select2-container-active")||this.opts.element.trigger(t.Event("select2-focus")),this.opened()?this.close():this.isInterfaceEnabled()&&this.open(),g(e)})),n.on("mousedown",this.bind(function(){this.search.focus()})),i.on("focus",this.bind(function(t){g(t)})),this.focusser.on("focus",this.bind(function(){this.container.hasClass("select2-container-active")||this.opts.element.trigger(t.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(t.Event("select2-blur")))})),this.search.on("focus",this.bind(function(){this.container.hasClass("select2-container-active")||this.opts.element.trigger(t.Event("select2-focus")),this.container.addClass("select2-container-active")})),this.initContainerWidth(),this.opts.element.addClass("select2-offscreen"),this.setPlaceholder()},clear:function(e){var i=this.selection.data("select2-data");if(i){var r=t.Event("select2-clearing");if(this.opts.element.trigger(r),r.isDefaultPrevented())return;var n=this.getPlaceholderOption();this.opts.element.val(n?n.val():""),this.selection.find(".select2-chosen").empty(),this.selection.removeData("select2-data"),this.setPlaceholder(),e!==!1&&(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 t=this;this.opts.initSelection.call(null,this.opts.element,function(i){i!==e&&null!==i&&(t.updateSelection(i),t.close(),t.setPlaceholder())})}},isPlaceholderOptionSelected:function(){var t;return this.getPlaceholder()?(t=this.getPlaceholderOption())!==e&&t.prop("selected")||""===this.opts.element.val()||this.opts.element.val()===e||null===this.opts.element.val():!1},prepareOpts:function(){var e=this.parent.prepareOpts.apply(this,arguments),i=this;return"select"===e.element.get(0).tagName.toLowerCase()?e.initSelection=function(t,e){var r=t.find("option").filter(function(){return this.selected});e(i.optionToData(r))}:"data"in e&&(e.initSelection=e.initSelection||function(i,r){var n=i.val(),a=null;e.query({matcher:function(t,i,r){var o=s(n,e.id(r));return o&&(a=r),o},callback:t.isFunction(r)?function(){r(a)}:t.noop})}),e},getPlaceholder:function(){return this.select&&this.getPlaceholderOption()===e?e:this.parent.getPlaceholder.apply(this,arguments)},setPlaceholder:function(){var t=this.getPlaceholder();if(this.isPlaceholderOptionSelected()&&t!==e){if(this.select&&this.getPlaceholderOption()===e)return;this.selection.find(".select2-chosen").html(this.opts.escapeMarkup(t)),this.selection.addClass("select2-default"),this.container.removeClass("select2-allowclear")}},postprocessResults:function(t,i,r){var n=0,a=this;if(this.findHighlightableChoices().each2(function(t,i){return s(a.id(i.data("select2-data")),a.opts.element.val())?(n=t,!1):e}),r!==!1&&(i===!0&&n>=0?this.highlight(n):this.highlight(0)),i===!0){var o=this.opts.minimumResultsForSearch;o>=0&&this.showSearch(C(t.results)>=o)}},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),t(this.dropdown,this.container).toggleClass("select2-with-searchbox",e))},onSelect:function(t,e){if(this.triggerSelect(t)){var i=this.opts.element.val(),r=this.data();this.opts.element.val(this.id(t)),this.updateSelection(t),this.opts.element.trigger({type:"select2-selected",val:this.id(t),choice:t}),this.nextSearchTerm=this.opts.nextSearchTerm(t,this.search.val()),this.close(),e&&e.noFocus||this.focusser.focus(),s(i,this.id(t))||this.triggerChange({added:t,removed:r})}},updateSelection:function(t){var i,r,n=this.selection.find(".select2-chosen");this.selection.data("select2-data",t),n.empty(),null!==t&&(i=this.opts.formatSelection(t,n,this.opts.escapeMarkup)),i!==e&&n.append(i),r=this.opts.formatSelectionCssClass(t,n),r!==e&&n.addClass(r),this.selection.removeClass("select2-default"),this.opts.allowClear&&this.getPlaceholder()!==e&&this.container.addClass("select2-allowclear")},val:function(){var t,i=!1,r=null,n=this,s=this.data();if(0===arguments.length)return this.opts.element.val();if(t=arguments[0],arguments.length>1&&(i=arguments[1]),this.select)this.select.val(t).find("option").filter(function(){return this.selected}).each2(function(t,e){return r=n.optionToData(e),!1}),this.updateSelection(r),this.setPlaceholder(),i&&this.triggerChange({added:r,removed:s});else{if(!t&&0!==t)return this.clear(i),e;if(this.opts.initSelection===e)throw Error("cannot call val() if initSelection() is not defined");this.opts.element.val(t),this.opts.initSelection(this.opts.element,function(t){n.opts.element.val(t?n.id(t):""),n.updateSelection(t),n.setPlaceholder(),i&&n.triggerChange({added:t,removed:s})})}},clearSearch:function(){this.search.val(""),this.focusser.val("")},data:function(t){var i,r=!1;return 0===arguments.length?(i=this.selection.data("select2-data"),i==e&&(i=null),i):(arguments.length>1&&(r=arguments[1]),t?(i=this.data(),this.opts.element.val(t?this.id(t):""),this.updateSelection(t),r&&this.triggerChange({added:t,removed:i})):this.clear(r),e)}}),$=M(N,{createContainer:function(){var e=t(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(""));return e},prepareOpts:function(){var e=this.parent.prepareOpts.apply(this,arguments),i=this;return"select"===e.element.get(0).tagName.toLowerCase()?e.initSelection=function(t,e){var r=[];t.find("option").filter(function(){return this.selected}).each2(function(t,e){r.push(i.optionToData(e))}),e(r)}:"data"in e&&(e.initSelection=e.initSelection||function(i,r){var n=a(i.val(),e.separator),o=[];e.query({matcher:function(i,r,a){var l=t.grep(n,function(t){return s(t,e.id(a))}).length;return l&&o.push(a),l},callback:t.isFunction(r)?function(){for(var t=[],i=0;n.length>i;i++)for(var a=n[i],l=0;o.length>l;l++){var h=o[l];if(s(a,e.id(h))){t.push(h),o.splice(l,1);break}}r(t)}:t.noop})}),e},selectChoice:function(t){var e=this.container.find(".select2-search-choice-focus");e.length&&t&&t[0]==e[0]||(e.length&&this.opts.element.trigger("choice-deselected",e),e.removeClass("select2-search-choice-focus"),t&&t.length&&(this.close(),t.addClass("select2-search-choice-focus"),this.opts.element.trigger("choice-selected",t)))},destroy:function(){t("label[for='"+this.search.attr("id")+"']").attr("for",this.opts.element.attr("id")),this.parent.destroy.apply(this,arguments)},initContainer:function(){var i,r=".select2-choices";this.searchContainer=this.container.find(".select2-search-field"),this.selection=i=this.container.find(r);var n=this;this.selection.on("click",".select2-search-choice:not(.select2-locked)",function(){n.search[0].focus(),n.selectChoice(t(this))}),this.search.attr("id","s2id_autogen"+I()),t("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(t){if(this.isInterfaceEnabled()){++this.keydowns;var r=i.find(".select2-search-choice-focus"),n=r.prev(".select2-search-choice:not(.select2-locked)"),s=r.next(".select2-search-choice:not(.select2-locked)"),a=f(this.search);if(r.length&&(t.which==T.LEFT||t.which==T.RIGHT||t.which==T.BACKSPACE||t.which==T.DELETE||t.which==T.ENTER)){var o=r;return t.which==T.LEFT&&n.length?o=n:t.which==T.RIGHT?o=s.length?s:null:t.which===T.BACKSPACE?(this.unselect(r.first()),this.search.width(10),o=n.length?n:s):t.which==T.DELETE?(this.unselect(r.first()),this.search.width(10),o=s.length?s:null):t.which==T.ENTER&&(o=null),this.selectChoice(o),g(t),o&&o.length||this.open(),e}if((t.which===T.BACKSPACE&&1==this.keydowns||t.which==T.LEFT)&&0==a.offset&&!a.length)return this.selectChoice(i.find(".select2-search-choice:not(.select2-locked)").last()),g(t),e;if(this.selectChoice(null),this.opened())switch(t.which){case T.UP:case T.DOWN:return this.moveHighlight(t.which===T.UP?-1:1),g(t),e;case T.ENTER:return this.selectHighlighted(),g(t),e;case T.TAB:return this.selectHighlighted({noFocus:!0}),this.close(),e;case T.ESC:return this.cancel(t),g(t),e}if(t.which!==T.TAB&&!T.isControl(t)&&!T.isFunctionKey(t)&&t.which!==T.BACKSPACE&&t.which!==T.ESC){if(t.which===T.ENTER){if(this.opts.openOnEnter===!1)return;if(t.altKey||t.ctrlKey||t.shiftKey||t.metaKey)return}this.open(),(t.which===T.PAGE_UP||t.which===T.PAGE_DOWN)&&g(t),t.which===T.ENTER&&g(t)}}})),this.search.on("keyup",this.bind(function(){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(t.Event("select2-blur"))})),this.container.on("click",r,this.bind(function(e){this.isInterfaceEnabled()&&(t(e.target).closest(".select2-search-choice").length>0||(this.selectChoice(null),this.clearPlaceholder(),this.container.hasClass("select2-container-active")||this.opts.element.trigger(t.Event("select2-focus")),this.open(),this.focusSearch(),e.preventDefault()))})),this.container.on("focus",r,this.bind(function(){this.isInterfaceEnabled()&&(this.container.hasClass("select2-container-active")||this.opts.element.trigger(t.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 t=this;this.opts.initSelection.call(null,this.opts.element,function(i){i!==e&&null!==i&&(t.updateSelection(i),t.close(),t.clearSearch())})}},clearSearch:function(){var t=this.getPlaceholder(),i=this.getMaxSearchWidth();t!==e&&0===this.getVal().length&&this.search.hasClass("select2-focused")===!1?(this.search.val(t).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(t.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 i=[],n=[],s=this;t(e).each(function(){0>r(s.id(this),i)&&(i.push(s.id(this)),n.push(this))}),e=n,this.selection.find(".select2-search-choice").remove(),t(e).each(function(){s.addSelectedChoice(this)}),s.postprocessResults()},tokenize:function(){var t=this.search.val();t=this.opts.tokenizer.call(this,t,this.data(),this.bind(this.onSelect),this.opts),null!=t&&t!=e&&(this.search.val(t),t.length>0&&this.open())},onSelect:function(t,e){this.triggerSelect(t)&&(this.addSelectedChoice(t),this.opts.element.trigger({type:"selected",val:this.id(t),choice:t}),(this.select||!this.opts.closeOnSelect)&&this.postprocessResults(t,!1,this.opts.closeOnSelect===!0),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:t}),e&&e.noFocus||this.focusSearch())},cancel:function(){this.close(),this.focusSearch()},addSelectedChoice:function(i){var r,n,s=!i.locked,a=t("<li class='select2-search-choice'>    <div></div>    <a href='#' onclick='return false;' class='select2-search-choice-close' tabindex='-1'></a></li>"),o=t("<li class='select2-search-choice select2-locked'><div></div></li>"),l=s?a:o,h=this.id(i),c=this.getVal();r=this.opts.formatSelection(i,l.find("div"),this.opts.escapeMarkup),r!=e&&l.find("div").replaceWith("<div>"+r+"</div>"),n=this.opts.formatSelectionCssClass(i,l.find("div")),n!=e&&l.addClass(n),s&&l.find(".select2-search-choice-close").on("mousedown",g).on("click dblclick",this.bind(function(e){this.isInterfaceEnabled()&&(t(e.target).closest(".select2-search-choice").fadeOut("fast",this.bind(function(){this.unselect(t(e.target)),this.selection.find(".select2-search-choice-focus").removeClass("select2-search-choice-focus"),this.close(),this.focusSearch()})).dequeue(),g(e))})).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),c.push(h),this.setVal(c)},unselect:function(e){var i,n,s=this.getVal();if(e=e.closest(".select2-search-choice"),0===e.length)throw"Invalid argument: "+e+". Must be .select2-search-choice";if(i=e.data("select2-data")){for(;(n=r(this.id(i),s))>=0;)s.splice(n,1),this.setVal(s),this.select&&this.postprocessResults();var a=t.Event("select2-removing");a.val=this.id(i),a.choice=i,this.opts.element.trigger(a),a.isDefaultPrevented()||(this.opts.element.trigger({type:"select2-removed",val:this.id(i),choice:i}),this.triggerChange({removed:i}))}},postprocessResults:function(t,e,i){var n=this.getVal(),s=this.results.find(".select2-result"),a=this.results.find(".select2-result-with-children"),o=this;s.each2(function(t,e){var i=o.id(e.data("select2-data"));r(i,n)>=0&&(e.addClass("select2-selected"),e.find(".select2-result-selectable").addClass("select2-selected"))}),a.each2(function(t,e){e.is(".select2-result-selectable")||0!==e.find(".select2-result-selectable:not(.select2-selected)").length||e.addClass("select2-selected")}),-1==this.highlight()&&i!==!1&&o.highlight(0),!this.opts.createSearchChoice&&!s.filter(".select2-result:not(.select2-selected)").length>0&&(!t||t&&!t.more&&0===this.results.find(".select2-no-results").length)&&k(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()-o(this.search)},resizeSearch:function(){var t,e,i,r,n,s=o(this.search);t=v(this.search)+10,e=this.search.offset().left,i=this.selection.width(),r=this.selection.offset().left,n=i-(e-r)-s,t>n&&(n=i-s),40>n&&(n=i-s),0>=n&&(n=t),this.search.width(Math.floor(n))},getVal:function(){var t;return this.select?(t=this.select.val(),null===t?[]:t):(t=this.opts.element.val(),a(t,this.opts.separator))},setVal:function(e){var i;this.select?this.select.val(e):(i=[],t(e).each(function(){0>r(this,i)&&i.push(this)}),this.opts.element.val(0===i.length?"":i.join(this.opts.separator)))},buildChangeDetails:function(t,e){for(var e=e.slice(0),t=t.slice(0),i=0;e.length>i;i++)for(var r=0;t.length>r;r++)s(this.opts.id(e[i]),this.opts.id(t[r]))&&(e.splice(i,1),i--,t.splice(r,1),r--);return{added:e,removed:t}},val:function(i,r){var n,s=this;if(0===arguments.length)return this.getVal();if(n=this.data(),n.length||(n=[]),!i&&0!==i)return this.opts.element.val(""),this.updateSelection([]),this.clearSearch(),r&&this.triggerChange({added:this.data(),removed:n}),e;if(this.setVal(i),this.select)this.opts.initSelection(this.select,this.bind(this.updateSelection)),r&&this.triggerChange(this.buildChangeDetails(n,this.data()));else{if(this.opts.initSelection===e)throw Error("val() cannot be called if initSelection() is not defined");this.opts.initSelection(this.opts.element,function(e){var i=t.map(e,s.id);s.setVal(i),s.updateSelection(e),s.clearSearch(),r&&s.triggerChange(s.buildChangeDetails(n,s.data()))})}this.clearSearch()},onSortStart:function(){if(this.select)throw 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=[],i=this;this.searchContainer.show(),this.searchContainer.appendTo(this.searchContainer.parent()),this.resizeSearch(),this.selection.find(".select2-search-choice").each(function(){e.push(i.opts.id(t(this).data("select2-data")))}),this.setVal(e),this.triggerChange()},data:function(i,r){var n,s,a=this;return 0===arguments.length?this.selection.find(".select2-search-choice").map(function(){return t(this).data("select2-data")}).get():(s=this.data(),i||(i=[]),n=t.map(i,function(t){return a.opts.id(t)}),this.setVal(n),this.updateSelection(i),this.clearSearch(),r&&this.triggerChange(this.buildChangeDetails(s,this.data())),e)}}),t.fn.select2=function(){var i,n,s,a,o,l=Array.prototype.slice.call(arguments,0),h=["val","destroy","opened","open","close","focus","isFocused","container","dropdown","onSortStart","onSortEnd","enable","disable","readonly","positionDropdown","data","search"],c=["opened","isFocused","container","dropdown"],u=["val","data"],d={search:"externalSearch"};return this.each(function(){if(0===l.length||"object"==typeof l[0])i=0===l.length?{}:t.extend({},l[0]),i.element=t(this),"select"===i.element.get(0).tagName.toLowerCase()?o=i.element.prop("multiple"):(o=i.multiple||!1,"tags"in i&&(i.multiple=o=!0)),n=o?new $:new P,n.init(i);else{if("string"!=typeof l[0])throw"Invalid arguments to select2 plugin: "+l;if(0>r(l[0],h))throw"Unknown method: "+l[0];if(a=e,n=t(this).data("select2"),n===e)return;if(s=l[0],"container"===s?a=n.container:"dropdown"===s?a=n.dropdown:(d[s]&&(s=d[s]),a=n[s].apply(n,l.slice(1))),r(l[0],c)>=0||r(l[0],u)&&1==l.length)return!1}}),a===e?this:a},t.fn.select2.defaults={width:"copy",loadMorePadding:0,closeOnSelect:!0,openOnEnter:!0,containerCss:{},dropdownCss:{},containerCssClass:"",dropdownCssClass:"",formatResult:function(t,e,i,r){var n=[];return b(t.text,i.term,n,r),n.join("")},formatSelection:function(t,i,r){return t?r(t.text):e},sortResults:function(t){return t},formatResultCssClass:function(){return e},formatSelectionCssClass:function(){return e},formatNoMatches:function(){return"No matches found"},formatInputTooShort:function(t,e){var i=e-t.length;return"Please enter "+i+" more character"+(1==i?"":"s")},formatInputTooLong:function(t,e){var i=t.length-e;return"Please delete "+i+" character"+(1==i?"":"s")},formatSelectionTooBig:function(t){return"You can only select "+t+" item"+(1==t?"":"s")},formatLoadMore:function(){return"Loading more results..."},formatSearching:function(){return"Searching..."},minimumResultsForSearch:0,minimumInputLength:0,maximumInputLength:null,maximumSelectionSize:0,id:function(t){return t.id},matcher:function(t,e){return i(""+e).toUpperCase().indexOf(i(""+t).toUpperCase())>=0},separator:",",tokenSeparators:[],tokenizer:D,escapeMarkup:w,blurOnChange:!1,selectOnBlur:!1,adaptContainerCssClass:function(t){return t},adaptDropdownCssClass:function(){return null},nextSearchTerm:function(){return e}},t.fn.select2.ajaxDefaults={transport:t.ajax,params:{type:"GET",cache:!1,dataType:"json"}},window.Select2={query:{ajax:x,local:S,tags:_},util:{debounce:c,markMatch:b,escapeMarkup:w,stripDiacritics:i},"class":{"abstract":N,single:P,multi:$}}}}(jQuery),function(t){"use strict";t.fn.tooltip=function(e){var i=t.extend({},t.fn.tooltip.defaults,e),r=this.tipsy(i);if(i.hideOnClick&&("hover"==i.trigger||!i.trigger&&"hover"==this.tipsy.defaults.trigger)){var n=function(){t(this).tipsy("hide")};i.live?t(this.context).on("click.tipsy",this.selector,n):this.bind("click.tipsy",n)}return r},t.fn.tooltip.defaults={opacity:1,offset:1,delayIn:500,hoverable:!0,hideOnClick:!0}}(AJS.$),function(){function t(t){var i=e;t.find("th").each(function(t,e){var r=AJS.$(e);i.headers[t]={},r.hasClass("aui-table-column-unsortable")?i.headers[t].sorter=!1:(r.attr("tabindex","0"),r.wrapInner("<span class='aui-table-header-content'/>"),r.hasClass("aui-table-column-issue-key")&&(i.headers[t].sorter="issue-key"))}),t.tablesorter(i)}var e={sortMultiSortKey:"",headers:{},debug:!1};AJS.tablessortable={setup:function(){AJS.$.tablesorter.addParser({id:"issue-key",is:function(){return!1},format:function(t){var e=t.split("-"),i=e[0],r=e[1],n="..........",s="000000",a=(i+n).slice(0,n.length);return a+=(s+r).slice(-s.length)},type:"text"}),AJS.$(".aui-table-sortable").each(function(){t(AJS.$(this))})},setTableSortable:function(e){t(e)}},AJS.$(AJS.tablessortable.setup)}(),function(t){var e=t(document),i=function(i){var r={};return r.$trigger=t(i.currentTarget),r.$content=e.find("#"+r.$trigger.attr("aria-controls")),r.triggerIsParent=0!==r.$content.parent().filter(r.$trigger).length,r.$shortContent=r.triggerIsParent?r.$trigger.find(".aui-expander-short-content"):null,r.height=r.$content.css("min-height"),r.isCollapsible=r.$trigger.data("collapsible")!==!1,r.replaceText=r.$trigger.attr("data-replace-text"),r.replaceSelector=r.$trigger.data("replace-selector"),r},r=function(t){if(t.replaceText){var e=t.replaceSelector?t.$trigger.find(t.replaceSelector):t.$trigger;t.$trigger.attr("data-replace-text",e.text()),e.text(t.replaceText)}},n={"aui-expander-invoke":function(i){var r=t(i.currentTarget),n=e.find("#"+r.attr("aria-controls")),s=r.data("collapsible")!==!1;"true"==n.attr("aria-expanded")&&s?r.trigger("aui-expander-collapse"):r.trigger("aui-expander-expand")},"aui-expander-expand":function(t){var e=i(t);e.$content.attr("aria-expanded","true"),"0px"!=e.height?e.$content.css("height","auto"):e.$content.attr("aria-hidden","false"),r(e),e.triggerIsParent&&e.$shortContent.hide(),e.$trigger.trigger("aui-expander-expanded")},"aui-expander-collapse":function(t){var e=i(t);parseInt(e.$content.css("line-height"),10),e.$content.children().first().height(),"0px"!=e.height?e.$content.css("height",0):e.$content.attr("aria-hidden","true"),r(e),e.$content.attr("aria-expanded","false"),e.triggerIsParent&&e.$shortContent.show(),e.$trigger.trigger("aui-expander-collapsed")
  },"click.aui-expander":function(e){var i=t(e.currentTarget);i.trigger("aui-expander-invoke",e.currentTarget)}};e.on(n,".aui-expander-trigger")}(jQuery),function(){function t(t,e,i){window.setTimeout(function(){t.css("width",100*i+"%"),e.attr("data-value",i)},0)}AJS.progressBars={update:function(e,i){var r=AJS.$(e).first(),n=r.children(".aui-progress-indicator-value"),s=n.attr("data-value")||0,a="aui-progress-indicator-after-update",o="aui-progress-indicator-before-update",l="transitionend webkitTransitionEnd",h=!r.attr("data-value");if(h&&n.detach().css("width",0).appendTo(r),"number"==typeof i&&1>=i&&i>=0){r.trigger(o,[s,i]);var c=document.body||document.documentElement,u=c.style;"string"==typeof u.transition||"string"==typeof u.WebkitTransition?(n.one(l,function(){r.trigger(a,[s,i])}),t(n,r,i)):(t(n,r,i),r.trigger(a,[s,i]))}return r},setIndeterminate:function(t){var e=AJS.$(t).first(),i=e.children(".aui-progress-indicator-value");e.removeAttr("data-value"),i.css("width","100%")}}}(),function(t){var e=t.fn.select2,i="aui-select2-container",r="aui-select2-drop aui-dropdown2 aui-style-default",n="aui-has-avatar";t.fn.auiSelect2=function(s){var a;if(t.isPlainObject(s)){var o=t.extend({},s),l=o.hasAvatar?" "+n:"";o.containerCssClass=i+l+(o.containerCssClass?" "+o.containerCssClass:""),o.dropdownCssClass=r+l+(o.dropdownCssClass?" "+o.dropdownCssClass:""),a=Array.prototype.slice.call(arguments,1),a.unshift(o)}else a=arguments.length?arguments:[{containerCssClass:i,dropdownCssClass:r}];return e.apply(this,a)}}(AJS.$);